1 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
5 (build_type_psymtabs_reader): Update for std::vector.
6 (build_type_psymtab_dependencies): Likewise.
7 * dwarf2read.h: Remove use of DEF_VEC_P.
8 (typedef sig_type_ptr): Delete.
10 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
12 * btrace.c (btrace_maint_clear): Update to handle change from VEC
14 (btrace_maint_decode_pt): Likewise, and move allocation of the
15 vector outside of the loop.
16 (btrace_maint_update_packets): Update to handle change from VEC to
18 (btrace_maint_print_packets): Likewise.
19 (maint_info_btrace_cmd): Likewise.
20 * btrace.h: Remove use of DEF_VEC_O.
21 (typedef btrace_pt_packet_s): Delete.
22 (struct btrace_maint_info) <packets>: Change fromm VEC to
24 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
26 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
28 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
29 make accesses into the vector constant references.
30 (btrace_add_pc): Update for std::vector.
31 (btrace_stitch_bts): Likewise.
32 (parse_xml_btrace_block): Likewise.
33 (btrace_maint_update_packets): Likewise.
34 (btrace_maint_print_packets): Likewise.
35 (maint_info_btrace_cmd): Likewise.
36 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
38 (btrace_data::empty): Likewise.
39 (btrace_data_append): Likewise.
40 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
41 (typedef btrace_block_s): Delete.
42 (struct btrace_block): Add constructor.
43 (struct btrace_data_bts) <blocks>: Change to std::vector.
44 * nat/linux-btrace.c (perf_event_read_bts): Update for
46 (linux_read_bts): Likewise.
48 2019-10-01 Tom Tromey <tom@tromey.com>
50 * cli/cli-logging.c (show_logging_filename): Use styled_string.
52 2019-10-01 Tom Tromey <tom@tromey.com>
54 * stack.c (print_frame, info_frame_command_core): Use
56 * linux-thread-db.c (try_thread_db_load_1)
57 (try_thread_db_load_from_pdir_1): Use styled_string.
58 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
59 (auto_load_section_scripts, info_auto_load_local_gdbinit)
60 (maybe_print_unsupported_script_warning)
61 (maybe_print_script_not_found_warning): Use styled_string.
62 * ada-lang.c (user_select_syms): Use styled_string.
64 2019-10-01 Tom Tromey <tom@tromey.com>
66 * p-lang.c (pascal_printstr): Use metadata style.
67 * value.c (show_convenience): Use metadata style.
68 * valprint.c (valprint_check_validity, val_print_optimized_out)
69 (val_print_not_saved, val_print_unavailable)
70 (val_print_invalid_address, generic_val_print, val_print)
71 (value_check_printable, val_print_array_elements): Use metadata
73 * ui-out.h (class ui_out) <field_fmt>: New overload.
74 <do_field_fmt>: Add style parameter.
75 * ui-out.c (ui_out::field_fmt): New overload.
76 * typeprint.c (type_print_unknown_return_type)
77 (val_print_not_allocated, val_print_not_associated): Use metadata
79 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
81 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
82 * tracepoint.c (tvariables_info_1): Use metadata style.
83 * stack.c (print_frame_arg, print_frame_info, print_frame)
84 (info_frame_command_core): Use metadata style.
85 * skip.c (info_skip_command): Use metadata style.
86 * rust-lang.c (rust_print_enum): Use metadata style.
87 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
89 * python/py-framefilter.c (py_print_single_arg): Use metadata
91 * printcmd.c (do_one_display, print_variable_and_value): Use
93 * p-valprint.c (pascal_val_print)
94 (pascal_object_print_value_fields): Use metadata style.
95 * p-typeprint.c (pascal_type_print_base): Use metadata style.
96 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
98 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
99 * m2-valprint.c (m2_print_long_set): Use metadata style.
100 * m2-typeprint.c (m2_print_type): Use metadata style.
101 * infcmd.c (print_return_value_1): Use metadata style.
102 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
103 * f-valprint.c (info_common_command_for_block): Use metadata
105 * f-typeprint.c (f_type_print_base): Use metadata style.
106 * expprint.c (print_subexp_standard): Use metadata style.
107 * cp-valprint.c (cp_print_value_fields): Use metadata style.
108 * cli/cli-style.h (class cli_style_option): Add constructor.
109 (metadata_style): Declare.
110 * cli/cli-style.c (metadata_style): New global.
111 (_initialize_cli_style): Register metadata style.
112 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
114 * cli-out.c (cli_ui_out::do_field_fmt): Update.
115 * c-typeprint.c (c_type_print_base_struct_union)
116 (c_type_print_base_1): Use metadata style.
117 * breakpoint.c (watchpoint_value_print)
118 (print_one_breakpoint_location): Use metadata style.
119 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
121 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
123 * ada-valprint.c (val_print_packed_array_elements, printstr)
124 (print_field_values, ada_val_print_ref, ada_val_print): Use
126 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
128 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
130 * ada-lang.c (user_select_syms): Use metadata style.
132 2019-10-01 Tom Tromey <tom@tromey.com>
134 * cli/cli-cmds.c (pwd_command): Style output.
136 2019-10-01 Pedro Alves <palves@redhat.com>
137 Tom Tromey <tom@tromey.com>
139 * symtab.c (print_symbol_info): Use %ps.
140 (print_msymbol_info): Use %ps.
141 * symfile.c (symbol_file_add_with_addrs): Use %ps.
142 * printcmd.c (print_variable_and_value): Use %ps.
143 * macrocmd.c (show_pp_source_pos): Use %ps.
144 * infrun.c (print_exited_reason): Use ui_out::message.
145 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
146 (describe_other_breakpoints): Use ui_out::message and new
148 (say_where): Use new formats.
149 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
152 2019-10-01 Pedro Alves <palves@redhat.com>
153 Tom Tromey <tom@tromey.com>
155 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
156 (test_gdb_formats): New function.
157 (run_tests): Call it.
158 (test_format_specifier): Update.
159 * utils.h (fputs_filtered): Update comment.
160 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
161 (fputs_styled_unfiltered): Declare.
162 * utils.c (fputs_styled_unfiltered): New function.
163 (vfprintf_maybe_filtered): Add gdbfmt parameter.
164 (vfprintf_filtered): Update.
165 (vfprintf_unfiltered, vprintf_filtered): Update.
166 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
167 * ui-out.h (enum ui_out_flag) <unfiltered_output,
168 disallow_ui_out_field>: New constants.
169 (enum class field_kind): New.
170 (struct base_field_s, struct signed_field_s): New.
171 (signed_field): New function.
172 (struct string_field_s): New.
173 (string_field): New function.
174 (struct styled_string_s): New.
175 (styled_string): New function.
176 (class ui_out) <message>: Add comment.
177 <vmessage, call_do_message>: New methods.
178 <do_message>: Add style parameter.
179 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
181 (ui_out::message): Rewrite.
182 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
184 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
185 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
186 gdb_extensions parameter.
187 (class format_piece): Add parameter to constructor.
188 (n_int_args): New field.
189 * gdbsupport/format.c (format_pieces::format_pieces): Add
190 gdb_extensions parameter. Handle '*'.
191 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
192 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
193 vfprintf_styled_no_gdbfmt.
194 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
195 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
197 * ui-style.h (struct ui_file_style) <ptr>: New method.
199 2019-10-01 Tom Tromey <tom@tromey.com>
201 * unittests/format_pieces-selftests.c: Update. Add final format.
202 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
203 empty literal pieces.
205 2019-10-01 Tom Tromey <tom@tromey.com>
207 * ui-out.h (enum class ui_out_style_kind): Remove.
208 (class ui_out) <field_string, field_stsream, do_field_string>:
209 Change type of "style".
210 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
211 (ui_out::field_string): Update.
212 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
214 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
215 * tracepoint.c (print_one_static_tracepoint_marker): Update.
216 * stack.c (print_frame_arg, print_frame_info, print_frame):
218 * source.c (print_source_lines_base): Update.
219 * solib.c (info_sharedlibrary_command): Update.
220 * skip.c (info_skip_command): Update.
221 * record-btrace.c (btrace_call_history_src_line)
222 (btrace_call_history): Update.
223 * python/py-framefilter.c (py_print_frame): Update.
224 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
226 * mi/mi-out.c (mi_ui_out::do_table_header)
227 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
228 (mi_ui_out::do_field_string): Update.
229 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
231 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
233 * cli-out.c (cli_ui_out::do_table_header)
234 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
235 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
236 (cli_ui_out::do_field_fmt): Update.
237 * breakpoint.c (print_breakpoint_location): Update.
238 (update_static_tracepoint): Update.
240 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
242 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
243 conversion of gdb_datadir.
244 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
245 remove not needed c_str ().
247 2019-09-30 Ali Tamur <tamur@google.com>
249 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
250 (dwarf2_string_attr): Likewise.
252 2019-09-30 Ali Tamur <tamur@google.com>
254 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
255 (process_full_type_unit): Likewise.
256 (dump_die_shallow): Likewise.
257 (cu_debug_loc_section): Likewise.
259 2019-09-28 Christian Biesinger <cbiesinger@google.com>
261 * minsyms.c (compare_minimal_symbols): Rename to...
262 (minimal_symbol_is_less_than): ...this, and adjust to STL
263 conventions (return bool, take arguments as references)
264 (minimal_symbol_reader::install): Call std::sort instead
267 2019-09-29 Christian Biesinger <cbiesinger@google.com>
269 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
271 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
272 msymbol_hash, msymbol_demangled_hash>: Improve comments.
274 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
276 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
277 * psympriv.h (add_psymbol_to_list): Move comment here and update
280 2019-09-29 Tom de Vries <tdevries@suse.de>
282 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
283 Use $tmpdir/$(basename "$output_file").dwz instead of
284 "${output_file}.dwz".
286 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
289 * hppa-linux-nat.c: Include gdbarch.h.
291 2019-09-26 Christian Biesinger <cbiesinger@google.com>
293 * blockframe.c (find_pc_partial_function): Change return type to bool.
294 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
295 * minsyms.c (in_gnu_ifunc_stub): Likewise.
296 (stub_gnu_ifunc_resolve_name): Likewise.
297 * symtab.c (compare_filenames_for_search): Likewise.
298 (compare_glob_filenames_for_search): Likewise.
299 (matching_obj_sections): Likewise.
300 (symbol_matches_domain): Likewise.
301 (find_line_symtab): Change out param EXACT_MATCH to bool *.
302 (find_line_pc): Change return type to bool.
303 (find_line_pc_range): Likewise.
304 (producer_is_realview): Likewise.
305 * symtab.h (symbol_matches_domain): Likewise.
306 (find_pc_partial_function): Likewise.
307 (find_pc_line_pc_range): Likewise.
308 (in_gnu_ifunc_stub): Likewise.
309 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
310 (find_line_pc): Likewise.
311 (find_line_pc_range): Likewise.
312 (matching_obj_sections): Likewise.
313 (find_line_symtab): Change out parameter to bool.
314 (producer_is_realview): Change return type to bool.
315 (compare_filenames_for_search): Likewise.
316 (compare_glob_filenames_for_search): Likewise.
318 2019-09-26 Tom Tromey <tom@tromey.com>
320 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
321 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
322 * gdb_usleep.h: Remove.
323 * gdb_usleep.c: Remove.
324 * utils.c: Don't include gdb_usleep.h.
326 2019-09-26 Tom Tromey <tromey@adacore.com>
328 * python/py-type.c (type_to_type_object): Call check_typedef
331 2019-09-26 Tom Tromey <tom@tromey.com>
333 * utils.h (initialize_utils): Don't declare.
334 * top.c (gdb_init): Don't call initialize_utils.
335 * utils.c (initialize_utils): Remove. Move contents...
336 (_initialize_utils): ... here.
338 2019-09-25 Tom Tromey <tom@tromey.com>
340 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
341 * utils.h (make_hex_string): Don't declare.
342 * utils.c (make_hex_string): Remove.
344 2019-09-24 Tom de Vries <tdevries@suse.de>
347 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
348 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
350 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
352 * NEWS: Mention new simulator port for PRU.
354 2019-09-23 Christian Biesinger <cbiesinger@google.com>
356 * ada-exp.y (write_object_remaining): Update.
357 * ada-lang.c (ada_decode): Return a std::string instead of a char*
358 and eliminate the static buffer.
359 (ada_decode_symbol): Update.
360 (ada_la_decode): Update.
361 (ada_sniff_from_mangled_name): Update.
362 (is_valid_name_for_wild_match): Update.
363 (ada_lookup_name_info::matches): Update and simplify.
364 (name_matches_regex): Update.
365 (ada_add_global_exceptions): Update.
366 * ada-lang.h (ada_decode): Update signature.
367 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
368 * dwarf-index-write.c (debug_names::insert): Update.
370 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
372 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
375 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
377 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
378 Change "nonzero" to "true" in documentation.
380 2019-09-20 Christian Biesinger <cbiesinger@google.com>
382 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
383 (_initialize_darwin_solib): Don't set
384 darwin_so_ops.lookup_lib_global_symbol.
385 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
386 set_gdbarch_iterate_over_objfiles_in_search_order.
387 (elf_lookup_lib_symbol): Rename to...
388 (svr4_iterate_over_objfiles_in_search_order): this, and update
389 to iterate semantics.
390 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
391 * solib.c (solib_global_lookup): Remove.
392 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
393 (solib_global_lookup): Remove.
394 * symtab.c (lookup_global_or_static_symbol): Remove call to
397 2019-09-20 Joel Brobecker <brobecker@adacore.com>
399 * NEWS: Move entries about default MI version now being
400 version 3, and about the GDB/MI fix for multi-location
401 breakpoints to the "since GDB 8.3" section.
403 2019-09-20 Joel Brobecker <brobecker@adacore.com>
407 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
409 * NEWS: Mention that Cell/B.E. debugging support was removed.
410 * MAINTAINERS: Remove spu target.
412 * config/djgpp/fnchange.lst: Remove entries for removed files.
414 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
415 spu-multiarch.o, and spu-tdep.o.
416 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
417 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
418 spu-multiarch.c, and spu-tdep.c.
419 * spu-linux-nat.c: Remove file.
420 * spu-multiarch.c: Remove file.
421 * spu-tdep.c: Remove file.
422 * spu-tdep.h: Remove file.
423 * solib-spu.c: Remove file.
424 * solib-spu.h: Remove file.
426 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
427 * configure.nat (spu-linux): Remove.
428 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
429 solib-multiarch.o from gdb_target_obs.
432 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
434 (ppc_linux_no_features): Update.
435 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
437 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
438 (tdesc_powerpc_cell64l): Likewise.
439 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
440 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
442 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
443 Do not include "features/rs6000/powerpc-cell32l.c" or
444 "features/rs6000/powerpc-cell64l.c".
445 (ppc_linux_spu_section): Remove.
446 (ppc_linux_core_read_description): Remove Cell/B.E. support.
447 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
448 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
449 (ppc_linux_spe_context_lookup): Remove.
450 (ppc_linux_spe_context_inferior_created): Remove.
451 (ppc_linux_spe_context_solib_loaded): Remove.
452 (ppc_linux_spe_context_solib_unloaded): Remove.
453 (ppc_linux_spe_context): Remove.
454 (struct ppu2spu_cache): Remove.
455 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
456 (struct ppu2spu_data): Remove.
457 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
458 ppu2spu_unwind): Remove.
459 (ppc_linux_init_abi): Remove Cell/B.E. support.
460 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
462 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
463 (rs6000/powerpc-cell64l-expedite): Likewise
464 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
465 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
466 rs6000/powerpc-cell64l.xml.
467 * features/rs6000/powerpc-cell32l.xml: Remove.
468 * features/rs6000/powerpc-cell64l.xml: Likewise.
469 * features/rs6000/powerpc-cell32l.c: Remove generated file.
470 * features/rs6000/powerpc-cell64l.c: Likewise.
471 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
472 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
473 * regformats/reg-spu.dat: Remove.
475 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
476 * corelow.c (struct spuid_list): Remove.
477 (add_to_spuid_list): Remove.
478 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
479 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
480 (remote_protocol_features): Remove associated entries.
481 (_initialize_remote): No longer initialize them.
482 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
483 * linux-nat.c (SPUFS_MAGIC): Remove.
484 (linux_proc_xfer_spu): Remove.
485 (spu_enumerate_spu_ids): Remove.
486 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
487 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
488 (linux_make_corefile_notes): No longer call it.
490 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
491 (cooked_write_test): Likewise.
493 2019-09-20 Tom Tromey <tom@tromey.com>
495 * NEWS: Mention case-sensitivity of TUI commands.
496 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
497 (tui_set_win_height_command, parse_scrolling_args): Likewise.
498 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
500 2019-09-20 Tom Tromey <tom@tromey.com>
502 * tui/tui-source.c (tui_source_window::set_contents): Use
504 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
507 2019-09-20 Tom Tromey <tom@tromey.com>
509 * tui/tui-data.c: Remove separator comments.
510 * tui/tui-layout.c: Remove separator comments.
511 * tui/tui-win.c: Remove separator comments.
512 * tui/tui-wingeneral.c: Remove separator comments.
514 2019-09-20 Tom Tromey <tom@tromey.com>
516 * tui/tui.h (strcat_to_buf): Don't declare.
517 * tui/tui.c (strcat_to_buf): Remove.
519 2019-09-20 Tom Tromey <tom@tromey.com>
521 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
523 * tui/tui-source.c (tui_source_window::set_contents)
524 (tui_source_window::location_matches_p)
525 (tui_source_window::maybe_update): Update.
527 2019-09-20 Tom Tromey <tom@tromey.com>
529 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
531 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
533 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
534 (tui_data_window::line_from_reg_element_no)
535 (tui_data_window::first_reg_element_no_inline)
536 (tui_data_window::show_registers)
537 (tui_data_window::show_register_group)
538 (tui_data_window::display_registers_from)
539 (tui_data_window::display_registers_from_line)
540 (tui_data_window::first_data_item_displayed)
541 (tui_data_window::delete_data_content_windows)
542 (tui_data_window::erase_data_content)
543 (tui_data_window::do_scroll_vertical)
544 (tui_data_window::refresh_window)
545 (tui_data_window::check_register_values): Update.
547 2019-09-20 Tom Tromey <tom@tromey.com>
549 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
550 (struct tui_locator_window) <full_name, proc_name>: Now
552 * tui/tui-stack.c (tui_locator_window::make_status_line)
553 (tui_locator_window::set_locator_fullname)
554 (tui_locator_window::set_locator_info): Update.
555 * tui/tui-source.c (tui_source_window::set_contents)
556 (tui_source_window::showing_source_p): Update.
558 2019-09-20 Tom Tromey <tom@tromey.com>
560 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
561 Don't call tui_locator_win_info_ptr.
563 2019-09-20 Tom Tromey <tom@tromey.com>
565 * tui/tui-win.c (tui_resize_all): Don't call refresh.
567 2019-09-20 Tom Tromey <tom@tromey.com>
569 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
571 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
572 * tui/tui-layout.c (show_source_disasm_command, show_data)
573 (show_source_or_disasm_and_command): Use 1 as height for locator.
575 2019-09-20 Tom Tromey <tom@tromey.com>
577 * tui/tui.c (tui_enable): Update.
578 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
580 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
582 * tui/tui-data.c (win_resized): Now bool.
583 (tui_win_resized): Return bool.
584 (tui_set_win_resized_to): Accept a bool.
586 2019-09-20 Tom Tromey <tom@tromey.com>
588 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
589 Change type of "refresh_values_only".
590 * tui/tui-regs.c (tui_data_window::show_register_group): Change
591 type of "refresh_values_only".
593 2019-09-20 Tom Tromey <tom@tromey.com>
595 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
597 (tui_disassemble): Add "pos" parameter.
598 (tui_disasm_window::set_contents): Simplify.
600 2019-09-20 Tom Tromey <tom@tromey.com>
602 * tui/tui-winsource.h (struct tui_source_window_base)
603 <show_source_content>: Now private.
604 * tui/tui-winsource.c
605 (tui_source_window_base::show_source_content): Don't handle empty
608 2019-09-20 Tom Tromey <tom@tromey.com>
610 * tui/tui-layout.c (show_source_disasm_command)
611 (show_source_or_disasm_and_command): Don't call
614 2019-09-20 Tom Tromey <tom@tromey.com>
616 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
618 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
619 from tui_make_status_line.
620 (tui_locator_window::rerender): Update.
622 2019-09-20 Tom Tromey <tom@tromey.com>
624 * tui/tui-stack.c (tui_make_status_line): Return std::string.
625 (tui_locator_window::rerender): Update.
627 2019-09-20 Tom Tromey <tom@tromey.com>
629 * tui/tui-winsource.h (struct tui_source_window_base)
630 <~tui_source_window_base>: Don't declare.
632 * tui/tui-winsource.c (~tui_source_window_base): Remove.
633 * tui/tui-source.h (struct tui_source_window) <fullname>: New
635 * tui/tui-source.c (tui_source_window::set_contents): Update.
636 (tui_source_window::location_matches_p)
637 (tui_source_window::maybe_update): Update.
639 2019-09-20 Tom Tromey <tom@tromey.com>
641 * tui/tui-winsource.h (~tui_source_element): Remove.
642 (tui_source_element): Update.
643 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
644 * tui/tui-winsource.c (tui_show_source_line): Update.
645 * tui/tui-source.c (tui_source_window::set_contents): Update.
646 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
648 2019-09-20 Tom Tromey <tom@tromey.com>
650 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
652 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
653 tui_clear_source_windows_detail.
654 * tui/tui-winsource.h (struct tui_source_window_base)
655 <clear_detail>: Don't declare.
656 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
658 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
660 2019-09-20 Tom Tromey <tromey@adacore.com>
663 * block.c (contained_in): Fix final return value.
665 2019-09-20 Alan Modra <amodra@gmail.com>
667 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
668 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
669 (read_indirect_string_from_dwz): Use bfd accessor.
670 * dwarf2read.h (struct dwz_file <filename>): Likewise.
671 * machoread.c (macho_symfile_read_all_oso): Likewise.
672 * solib.c (solib_bfd_open): Likewise.
674 2019-09-19 Christian Biesinger <cbiesinger@google.com>
676 * eval.c: Move declaration of overload_resolution to...
679 2019-09-19 Christian Biesinger <cbiesinger@google.com>
681 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
682 * arm-linux-tdep.c: Likewise.
683 * arm-nbsd-nat.c: Likewise.
684 * arm-tdep.h: Declare arm_apcs_32.
685 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
687 2019-09-19 Christian Biesinger <cbiesinger@google.com>
689 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
690 * dwarf2read.h: Declare dwarf_always_disassemble.
692 2019-09-19 Tom de Vries <tdevries@suse.de>
695 * source-cache.c (source_cache::ensure): Catch exception thrown during
696 construction of the highlighter.
698 2019-09-18 Alan Modra <amodra@gmail.com>
700 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
701 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
702 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
703 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
704 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
705 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
706 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
707 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
708 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
709 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
710 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
711 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
712 * solib-spu.c, * solib-svr4.c, * solib-target.c,
713 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
714 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
715 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
716 * mi/mi-interp.c: Update throughout for bfd section macro and
718 * gcore (gcore_create_callback): Use bfd_set_section_lma.
719 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
721 2019-09-18 Tom Tromey <tom@tromey.com>
724 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
726 (tui_enable): Do not call rl_initialize.
728 2019-09-18 Christian Groessler <chris@groessler.org>
730 * alpha-linux-nat.c: Include gdbarch.h.
732 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
734 * ui-file.c: Include cli/cli-style.h.
735 (term_cli_styling): Remove cli_styling declaration.
737 2019-09-18 Alan Modra <amodra@gmail.com>
739 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
740 to bfd_asymbol_section.
742 2019-09-18 Alan Modra <amodra@gmail.com>
744 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
745 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
746 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
748 2019-09-18 Alan Modra <amodra@gmail.com>
750 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
751 * spu-linux-nat.c (spu_bfd_open): Likewise.
753 2019-09-18 Christian Biesinger <cbiesinger@google.com>
755 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
756 to bool to match definition in dwarf2read.c.
758 2019-09-17 Christian Biesinger <cbiesinger@google.com>
760 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
761 (print_signatures): Likewise.
762 (trust_pad_over_xvs): Likewise.
763 * arch/aarch64-insn.c (aarch64_debug): Likewise.
764 * arch/aarch64-insn.h (aarch64_debug): Likewise.
765 * arm-linux-nat.c (arm_apcs_32): Likewise.
766 * arm-linux-tdep.c (arm_apcs_32): Likewise.
767 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
768 * arm-tdep.c (arm_debug): Likewise.
769 (arm_apcs_32): Likewise.
770 * auto-load.c (debug_auto_load): Likewise.
771 (auto_load_gdb_scripts): Likewise.
772 (global_auto_load): Likewise.
773 (auto_load_local_gdbinit): Likewise.
774 (auto_load_local_gdbinit_loaded): Likewise.
775 * auto-load.h (global_auto_load): Likewise.
776 (auto_load_local_gdbinit): Likewise.
777 (auto_load_local_gdbinit_loaded): Likewise.
778 * breakpoint.c (disconnected_dprintf): Likewise.
779 (breakpoint_proceeded): Likewise.
780 (automatic_hardware_breakpoints): Likewise.
781 (always_inserted_mode): Likewise.
782 (target_exact_watchpoints): Likewise.
783 (_initialize_breakpoint): Update.
784 * breakpoint.h (target_exact_watchpoints): Change to bool.
785 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
786 * cli/cli-cmds.c (trace_commands): Likewise.
787 * cli/cli-cmds.h (trace_commands): Likewise.
788 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
790 * cli/cli-logging.c (logging_overwrite): Change to bool.
791 (logging_redirect): Likewise.
792 (debug_redirect): Likewise.
793 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
794 (struct boolean_option_def) <get_var_address_cb_>: Change return type
796 <boolean_option_def>: Update.
797 (struct flag_option_def): Change default type of Context to bool
799 <flag_option_def>: Change return type of var_address_cb_ to bool*.
800 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
801 (get_setshow_command_value_string): Likewise.
802 * cli/cli-style.c (cli_styling): Change to bool.
803 (source_styling): Likewise.
804 * cli/cli-style.h (source_styling): Likewise.
805 (cli_styling): Likewise.
806 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
808 * command.h (var_types): Update comment.
809 (add_setshow_boolean_cmd): Change int* var argument to bool*.
810 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
812 (debug_compile_cplus_scopes): Likewise.
813 * compile/compile-internal.h (compile_debug): Likewise.
814 * compile/compile.c (compile_debug): Likewise.
815 (struct compile_options) <raw>: Likewise.
816 * cp-support.c (catch_demangler_crashes): Likewise.
817 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
818 (usr_cmd_cris_dwarf2_cfi): Likewise.
819 * csky-tdep.c (csky_debug): Likewise.
820 * darwin-nat.c (enable_mach_exceptions): Likewise.
821 * dcache.c (dcache_enabled_p): Likewise.
822 * defs.h (info_verbose): Likewise.
823 * demangle.c (demangle): Likewise.
824 (asm_demangle): Likewise.
825 * dwarf-index-cache.c (debug_index_cache): Likewise.
826 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
827 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
828 * dwarf2read.c (check_physname): Likewise.
829 (use_deprecated_index_sections): Likewise.
830 (dwarf_always_disassemble): Likewise.
831 * eval.c (overload_resolution): Likewise.
832 * event-top.c (set_editing_cmd_var): Likewise.
833 (exec_done_display_p): Likewise.
834 * event-top.h (set_editing_cmd_var): Likewise.
835 (exec_done_display_p): Likewise.
836 * exec.c (write_files): Likewise.
837 * fbsd-nat.c (debug_fbsd_lwp): Likewise
838 (debug_fbsd_nat): Likewise.
839 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
841 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
842 <backtrace_past_entry> Likewise.
843 * gdb-demangle.h (demangle): Likewise.
844 (asm_demangle): Likewise.
845 * gdb_bfd.c (bfd_sharing): Likewise.
846 * gdbcore.h (write_files): Likewise.
847 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
848 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
849 * gdbthread.h (print_thread_events): Likewise.
850 * gdbtypes.c (opaque_type_resolution): Likewise.
851 (strict_type_checking): Likewise.
852 * gnu-nat.c (gnu_debug_flag): Likewise.
853 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
854 * guile/scm-param.c (pascm_variable): Add boolval.
855 (add_setshow_generic): Update.
856 (pascm_param_value): Update.
857 (pascm_set_param_value_x): Update.
858 * hppa-tdep.c (hppa_debug): Change to bool..
859 * infcall.c (may_call_functions_p): Likewise.
860 (coerce_float_to_double_p): Likewise.
861 (unwind_on_signal_p): Likewise.
862 (unwind_on_terminating_exception_p): Likewise.
863 * infcmd.c (startup_with_shell): Likewise.
864 * inferior.c (print_inferior_events): Likewise.
865 * inferior.h (startup_with_shell): Likewise.
866 (print_inferior_events): Likewise.
867 * infrun.c (step_stop_if_no_debug): Likewise.
868 (detach_fork): Likewise.
869 (debug_displaced): Likewise.
870 (disable_randomization): Likewise.
871 (non_stop): Likewise.
872 (non_stop_1): Likewise.
873 (observer_mode): Likewise.
874 (observer_mode_1): Likewise.
875 (set_observer_mode): Update.
876 (sched_multi): Change to bool.
877 * infrun.h (debug_displaced): Likewise.
878 (sched_multi): Likewise.
879 (step_stop_if_no_debug): Likewise.
880 (non_stop): Likewise.
881 (disable_randomization): Likewise.
882 * linux-tdep.c (use_coredump_filter): Likewise.
883 (dump_excluded_mappings): Likewise.
884 * linux-thread-db.c (auto_load_thread_db): Likewise.
885 (check_thread_db_on_load): Likewise.
886 * main.c (captured_main_1): Update.
887 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
888 xx2_opt, boolean_opt>: Change to bool.
889 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
890 * maint.c (maintenance_profile_p): Likewise.
891 (per_command_time): Likewise.
892 (per_command_space): Likewise.
893 (per_command_symtab): Likewise.
894 * memattr.c (inaccessible_by_default): Likewise.
895 * mi/mi-main.c (mi_async): Likewise.
896 (mi_async_1): Likewise.
897 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
898 * nat/fork-inferior.h (startup_with_shell): Likewise.
899 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
900 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
901 * nios2-tdep.c (nios2_debug): Likewise.
902 * or1k-tdep.c (or1k_debug): Likewise.
903 * parse.c (parser_debug): Likewise.
904 * parser-defs.h (parser_debug): Likewise.
905 * printcmd.c (print_symbol_filename): Likewise.
906 * proc-api.c (procfs_trace): Likewise.
907 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
908 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
909 (set_parameter_value): Update.
910 (add_setshow_generic): Update.
911 * python/py-value.c (copy_py_bool_obj): Change argument from int*
913 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
915 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
916 * record-btrace.c (record_btrace_target::store_registers): Update.
917 * record-full.c (record_full_memory_query): Change to bool.
918 (record_full_stop_at_limit): Likewise.
919 * record-full.h (record_full_memory_query): Likewise.
920 * remote-notif.c (notif_debug): Likewise.
921 * remote-notif.h (notif_debug): Likewise.
922 * remote.c (use_range_stepping): Likewise.
923 (interrupt_on_connect): Likewise.
924 (remote_break): Likewise.
925 * ser-tcp.c (tcp_auto_retry): Likewise.
926 * ser-unix.c (serial_hwflow): Likewise.
927 * skip.c (debug_skip): Likewise.
928 * solib-aix.c (solib_aix_debug): Likewise.
929 * spu-tdep.c (spu_stop_on_load_p): Likewise.
930 (spu_auto_flush_cache_p): Likewise.
931 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
933 (struct info_print_options) <quiet>: Likewise.
934 * symfile-debug.c (debug_symfile): Likewise.
935 * symfile.c (auto_solib_add): Likewise.
936 (separate_debug_file_debug): Likewise.
937 * symfile.h (auto_solib_add): Likewise.
938 (separate_debug_file_debug): Likewise.
939 * symtab.c (basenames_may_differ): Likewise.
940 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
941 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
942 (struct info_types_options) <quiet>: Likewise.
943 * symtab.h (demangle): Likewise.
944 (basenames_may_differ): Likewise.
945 * target-dcache.c (stack_cache_enabled_1): Likewise.
946 (code_cache_enabled_1): Likewise.
947 * target.c (trust_readonly): Likewise.
948 (may_write_registers): Likewise.
949 (may_write_memory): Likewise.
950 (may_insert_breakpoints): Likewise.
951 (may_insert_tracepoints): Likewise.
952 (may_insert_fast_tracepoints): Likewise.
953 (may_stop): Likewise.
954 (auto_connect_native_target): Likewise.
955 (target_stop_and_wait): Update.
956 (target_async_permitted): Change to bool.
957 (target_async_permitted_1): Likewise.
958 (may_write_registers_1): Likewise.
959 (may_write_memory_1): Likewise.
960 (may_insert_breakpoints_1): Likewise.
961 (may_insert_tracepoints_1): Likewise.
962 (may_insert_fast_tracepoints_1): Likewise.
963 (may_stop_1): Likewise.
964 * target.h (target_async_permitted): Likewise.
965 (may_write_registers): Likewise.
966 (may_write_memory): Likewise.
967 (may_insert_breakpoints): Likewise.
968 (may_insert_tracepoints): Likewise.
969 (may_insert_fast_tracepoints): Likewise.
970 (may_stop): Likewise.
971 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
972 (make_thread_apply_all_options_def_group): Change argument from int*
974 (thread_apply_all_command): Update.
975 (print_thread_events): Change to bool.
976 * top.c (confirm): Likewise.
977 (command_editing_p): Likewise.
978 (history_expansion_p): Likewise.
979 (write_history_p): Likewise.
980 (info_verbose): Likewise.
981 * top.h (confirm): Likewise.
982 (history_expansion_p): Likewise.
983 * tracepoint.c (disconnected_tracing): Likewise.
984 (circular_trace_buffer): Likewise.
985 * typeprint.c (print_methods): Likewise.
986 (print_typedefs): Likewise.
987 * utils.c (debug_timestamp): Likewise.
988 (sevenbit_strings): Likewise.
989 (pagination_enabled): Likewise.
990 * utils.h (sevenbit_strings): Likewise.
991 (pagination_enabled): Likewise.
992 * valops.c (overload_resolution): Likewise.
993 * valprint.h (struct value_print_options) <prettyformat_arrays,
994 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
995 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
996 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
998 * windows-nat.c (new_console): Likewise.
999 (cygwin_exceptions): Likewise.
1000 (new_group): Likewise.
1001 (debug_exec): Likewise.
1002 (debug_events): Likewise.
1003 (debug_memory): Likewise.
1004 (debug_exceptions): Likewise.
1005 (useshell): Likewise.
1006 * windows-tdep.c (maint_display_all_tib): Likewise.
1007 * xml-support.c (debug_xml): Likewise.
1009 2019-09-17 Mike Gulick <mgulick@mathworks.com>
1011 * source.c (prepare_path_for_appending): New function.
1012 (openp): Make use of new function.
1013 (find_and_open_source): Search for the compilation directory and
1014 source file as a relative path beneath the directory search path.
1016 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
1018 * source-cache.c (source_cache::get_line_charpos): Catch
1019 exceptions and return false, this matches the behaviour documented
1022 2019-09-17 Joel Brobecker <brobecker@adacore.com>
1024 * ada-tasks.c (info_task): Remove quoting of the task's name.
1026 2019-09-16 Christian Biesinger <cbiesinger@google.com>
1028 * symfile.c (auto_solib_add): Replace comment with a reference
1031 2019-09-14 Christian Biesinger <cbiesinger@google.com>
1033 * NEWS: Mention that gdb can now be compiled with Python 3
1036 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1038 * maint.c (maint_print_section_data::maint_print_section_data):
1039 Force use of 'float log10 (float)' by casting the argument to
1042 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1044 * maint.c: Add 'cmath' include.
1045 (struct maint_print_section_data): New structure.
1046 (print_section_index): New function.
1047 (print_bfd_section_info): Add header comment, small whitespace
1048 cleanup, and update to call new print_section_index function.
1049 (print_objfile_section_info): Likewise.
1050 (maint_obj_section_from_bfd_section): New function.
1051 (print_bfd_section_info_maybe_relocated): New function.
1052 (maintenance_info_sections): Add header comment, always use
1053 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
1055 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1057 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
1058 inner scope, add check that the objfile has psymtabs before
1059 checking psymtabs_addrmap.
1060 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
1062 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1064 * NEWS: Announce that Ada task names are now shown at more places,
1065 and between quotes (except in info task output).
1066 * gdb/ada-tasks.c (task_to_str): New function.
1067 (display_current_task_id): Call task_to_str.
1068 (task_command_1): Likewise.
1069 (print_ada_task_info): In non-mi mode, Properly align headers and data
1070 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
1072 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1074 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
1075 prstatus.pr_lwp.pr_info instead of making it up.
1077 2019-09-11 Christian Biesinger <cbiesinger@google.com>
1079 * auto-load.c (auto_load_expand_dir_vars): Update.
1080 * defs.h (gdb_datadir): Change to std::string.
1081 (python_libdir): Likewise.
1082 (relocate_gdb_directory): Change return type to std::string.
1083 * guile/guile.c (gdbscm_data_directory): Update.
1084 (initialize_scheme_side): Update.
1085 * jit.c (jit_reader_dir): Change to std::string.
1086 (jit_reader_load_command): Update.
1087 * main.c (gdb_datadir): Change to std::string.
1088 (python_libdir): Likewise.
1089 (set_gdb_data_directory): Update.
1090 (relocate_path): Change to return std::string.
1091 (relocate_gdb_directory): Change to return std::string.
1092 (relocate_gdbinit_path_maybe_in_datadir): Update.
1093 (captured_main_1): Update.
1094 * python/python.c (do_start_initialization): Update.
1095 * top.c (show_gdb_datadir): Update.
1096 * xml-syscall.c (xml_init_syscalls_info): Update.
1097 (init_syscalls_info): Update.
1099 2019-09-11 Christian Biesinger <cbiesinger@google.com>
1101 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
1102 out of get_init_files.
1103 (get_init_files): Update.
1105 2019-09-11 Christian Biesinger <cbiesinger@google.com>
1107 * main.c (get_init_files): Change to use std::string.
1108 (captured_main_1): Update.
1109 (print_gdb_help): Update.
1111 2019-09-11 Ali Tamur <tamur@google.com>
1113 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
1116 2019-09-11 Christian Biesinger <cbiesinger@google.com>
1118 * dbxread.c (read_dbx_symtab): Update.
1119 * dwarf2read.c (load_partial_dies): Update.
1120 * mdebugread.c (parse_partial_symbols): Update.
1121 (handle_psymbol_enumerators): Update.
1122 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
1123 * psymtab.c (add_psymbol_to_bcache): Likewise.
1124 (add_psymbol_to_list): Likewise.
1125 * symtab.c (symbol_set_names): Likewise.
1126 * symtab.h (symbol_set_names): Likewise.
1127 * xcoffread.c (scan_xcoff_symtab): Update.
1129 2019-09-11 Tom Tromey <tom@tromey.com>
1131 * symfile-mem.c (symbol_file_add_from_memory): Use
1133 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
1134 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
1136 2019-09-10 Tom Tromey <tromey@adacore.com>
1138 * dwarf-index-write.c (write_psymbols): Extend error message.
1139 (debug_names::insert): Add Ada code.
1140 (debug_names::write_psymbols): Remove Ada check.
1141 (debug_names) <m_string_obstack>: New member.
1142 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
1143 (gdb_index_symbol_name_matcher::matches): Remove.
1144 (mapped_index_base::find_name_components_bounds): Add "lang"
1146 (mapped_index_base::build_name_components): Also split names
1147 according to Ada syntax.
1148 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
1149 type of "match_callback".
1150 (check_match, check_find_bounds_finds)
1151 (dw2_expand_symtabs_matching): Update.
1152 (dw2_debug_names_iterator): Add new constructor.
1153 (dw2_debug_names_map_matching_symbols): New function.
1154 (dw2_debug_names_expand_symtabs_matching): Update.
1155 (dwarf2_debug_names_functions): Use
1156 dw2_debug_names_map_matching_symbols.
1158 2019-09-10 Tom Tromey <tromey@adacore.com>
1160 * dwarf2read.c (dw2_get_file_names_reader): Add the
1161 CU's file name to the results.
1163 2019-09-10 Tom Tromey <tromey@adacore.com>
1165 * ada-lang.c (add_nonlocal_symbols): Combine calls to
1166 map_matching_symbols. Update.
1167 * dwarf2read.c (dw2_map_matching_symbols): Update.
1168 * psymtab.c (match_partial_symbol): Change type; update.
1169 (psym_map_matching_symbols): Likewise.
1170 * symfile-debug.c (debug_qf_map_matching_symbols): Change
1172 * symfile.h (struct quick_symbol_functions)
1173 <map_matching_symbols>: Change "name" to be a lookup_name_info.
1176 2019-09-10 Tom Tromey <tromey@adacore.com>
1178 * psymtab.c (map_block): Remove.
1179 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
1180 * symtab.c (iterate_over_symbols_terminated): New function.
1181 * symtab.c (iterate_over_symbols_terminated): Declare.
1183 2019-09-10 Tom Tromey <tromey@adacore.com>
1185 * ada-lang.c (ada_iterate_over_symbols): Return bool.
1186 * language.h (struct language_defn) <la_iterate_over_symbols>:
1188 * symtab.c (iterate_over_symbols): Return bool.
1189 * symtab.h (iterate_over_symbols): Return bool.
1191 2019-09-10 Tom Tromey <tromey@adacore.com>
1193 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
1194 (add_nonlocal_symbols): Update.
1195 * dwarf2read.c (dw2_map_matching_symbols): Change type.
1196 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
1197 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
1198 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
1199 Change type of "callback". Remove "data".
1202 2019-09-09 Ali Tamur <tamur@google.com>
1204 * dwarf2read.c (comp_unit_head): Update comment.
1205 (dwarf2_dwo_name): New function declaration.
1206 (dwarf_unit_type_name): New function declaration.
1207 (read_comp_unit_head): Add support for new compilation units,
1208 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
1209 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
1210 (currently named as "signature") in their header. Also clarify error
1212 (lookup_dwo_id): New function. Returns the dwo id of the given
1214 (lookup_dwo_unit): Use the new lookup_dwo_id function.
1215 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
1217 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
1218 (dwarf2_dwo_name): Get the dwo name if present.
1219 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
1222 2019-09-09 Tom Tromey <tom@tromey.com>
1224 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
1226 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1228 * python/python.c (do_start_initialization): Make progname_copy static,
1229 to avoid a leak report.
1231 2019-09-08 Tom Tromey <tom@tromey.com>
1233 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
1235 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
1237 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
1238 Change type to gdb::optional<block_enum>.
1239 (dw2_symtab_iter_init): Change block_index parameter type
1240 to gdb::optional<block_enum>.
1241 (dw2_lookup_symbol): Change block_index parameter
1242 type to block_enum.c
1243 (dw2_debug_names_lookup_symbol): Likewise.
1244 * psymtab.c (psym_lookup_symbol): Likewise.
1245 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
1246 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
1249 2019-09-06 Christian Biesinger <cbiesinger@google.com>
1251 * defs.h (relocate_gdb_directory): Change int to bool in
1252 signature and rename flag to relocatable.
1253 * main.c (relocate_path): Likewise.
1254 (relocate_gdb_directory): Likewise.
1256 2019-09-06 Alan Modra <amodra@gmail.com>
1258 * coffread.c (coff_symfile_read): Constify filename variable.
1259 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
1260 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
1261 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
1262 * solib.c (reload_shared_libraries_1): Likewise.
1263 * symfile.c (reread_symbols): Likewise.
1264 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
1265 * solib-darwin.c (darwin_bfd_open): Likewise.
1266 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
1268 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1270 * psymtab.c (print_partial_symbols): Handle missing domain_enum
1271 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
1273 2019-09-03 Tom Tromey <tromey@adacore.com>
1275 * ada-valprint.c (ada_val_print_num): Don't recurse for range
1277 (has_negatives): Unbias a range type bound.
1278 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
1279 * gdbtypes.c (operator==): Handle new field.
1280 (create_range_type): Add "bias" parameter.
1281 (create_static_range_type, resolve_dynamic_range): Update.
1282 * gdbtypes.h (struct range_bounds) <bias>: New member.
1283 (create_range_type): Add bias parameter.
1284 * printcmd.c (print_scalar_formatted): Unbias range types.
1285 * value.c (unpack_long): Unbias range types.
1286 (pack_long): Bias range types.
1288 2019-09-02 Alan Hayward <alan.hayward@arm.com>
1290 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
1293 2019-09-02 Alan Hayward <alan.hayward@arm.com>
1295 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
1296 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
1297 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
1298 (compile_probe_arg): Likewise.
1299 * probe.h (get_argument_count): Likewise.
1300 * solib-svr4.c (solib_event_probe_action): Likewise.
1301 * stap-probe.c (stap_probe::get_argument_count): Likewise.
1303 2019-09-02 Alan Hayward <alan.hayward@arm.com>
1305 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
1307 (svr4_create_solib_event_breakpoints): ...from here.
1309 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
1311 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
1312 suffix from warning message.
1314 2019-08-30 Tom Tromey <tom@tromey.com>
1316 * tui/tui-winsource.h (struct tui_source_window_base)
1317 <refresh_all>: Don't declare.
1318 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
1320 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
1321 tui_show_locator_content.
1322 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
1324 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
1325 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
1328 2019-08-30 Tom Tromey <tom@tromey.com>
1330 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
1332 2019-08-30 Tom Tromey <tom@tromey.com>
1334 * tui/tui-stack.c (_initialize_tui_stack): Move later.
1335 Remove unnecessary forward declarations.
1337 2019-08-30 Tom Tromey <tom@tromey.com>
1339 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
1341 (tui_update_locator_fullname, tui_show_frame_info): Don't call
1342 tui_show_locator_content.
1344 2019-08-30 Tom Tromey <tom@tromey.com>
1346 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
1347 (tui_locator_window::rerender): Rewrite using body of previous
1348 tui_show_locator_content.
1350 2019-08-30 Tom Tromey <tom@tromey.com>
1352 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
1353 set_locator_fullname>: New methods.
1354 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
1355 Rename from tui_set_locator_fullname.
1356 (tui_locator_window::set_locator_info): Rename from
1357 tui_set_locator_info. Return bool.
1358 (tui_update_locator_fullname, tui_show_frame_info): Update.
1360 2019-08-30 Tom Tromey <tom@tromey.com>
1362 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
1364 2019-08-30 Tom Tromey <tom@tromey.com>
1366 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
1369 2019-08-30 Tom Tromey <tom@tromey.com>
1371 * tui/tui-wingeneral.c (box_win): Assume win_info and
1372 win_info->handle cannot be NULL.
1374 2019-08-30 Tom Tromey <tom@tromey.com>
1376 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
1377 refresh_window>: Declare.
1378 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
1380 (tui_data_item_window::rerender): Rename from
1381 tui_display_register.
1382 (tui_data_item_window::refresh_window): New method.
1383 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
1386 2019-08-30 Tom Tromey <tom@tromey.com>
1388 * tui/tui-regs.h (struct tui_data_window) <regs_content,
1389 regs_column_count, current_group>: Move later. Now private.
1390 <get_current_group>: New method.
1391 * tui/tui-regs.c (tui_reg_command): Update.
1392 * tui/tui-layout.c (tui_set_layout): Update.
1394 2019-08-30 Tom Tromey <tom@tromey.com>
1396 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
1397 (tui_data_window::rerender): Don't call
1398 check_and_display_highlight_if_needed.
1399 (tui_data_window::refresh_all): Remove call to
1402 2019-08-30 Tom Tromey <tom@tromey.com>
1404 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
1405 (tui_data_window::display_registers_from)
1406 (tui_data_window::display_reg_element_at_line)
1407 (tui_data_window::display_registers_from_line): Remove checks of
1410 2019-08-30 Tom Tromey <tom@tromey.com>
1412 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
1414 * tui/tui-regs.c (tui_data_window::show_registers): Call
1416 (tui_data_window::rerender): Rename from display_all_data.
1417 (tui_data_window::rerender): Remove old implementation.
1419 2019-08-30 Tom Tromey <tom@tromey.com>
1421 * tui/tui-regs.c (tui_data_window::display_all_data): Change
1423 * tui/tui-data.h (NO_DATA_STRING): Remove define.
1425 2019-08-29 Bernhard Wodok <barto@gmx.net>
1426 Sergio Durigan Junior <sergiodj@redhat.com>
1429 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
1431 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
1433 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
1434 when searching for types.
1436 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
1438 * f-lang.c (f_language_defn): Use f_print_typedef.
1439 * f-lang.h (f_print_typedef): Declare.
1440 * f-typeprint.c (f_print_typedef): Define.
1442 2019-08-27 Christian Biesinger <cbiesinger@google.com>
1444 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
1446 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
1448 * cli/cli-utils.c (info_print_options_defs): Delete.
1449 (make_info_print_options_def_group): Delete.
1450 (extract_info_print_options): Delete.
1451 (info_print_command_completer): Delete.
1452 (info_print_args_help): Add extra parameter, and optionally
1453 include text about -n flag.
1454 * cli/cli-utils.h (struct info_print_options): Delete.
1455 (extract_info_print_options): Delete declaration.
1456 (info_print_command_completer): Delete declaration.
1457 (info_print_args_help): Add extra parameter, extend header
1459 * python/python.c (gdbpy_rbreak): Pass additional parameter to
1461 * stack.c (struct info_print_options): New type.
1462 (info_print_options_defs): New file scoped variable.
1463 (make_info_print_options_def_group): New static function.
1464 (info_print_command_completer): New static function.
1465 (info_locals_command): Update to use new local functions.
1466 (info_args_command): Likewise.
1467 (_initialize_stack): Add extra parameter to calls to
1468 info_print_args_help.
1469 * symtab.c (search_symbols): Add extra parameter, use this to
1470 possibly excluse non-debug symbols.
1471 (symtab_symbol_info): Add extra parameter, which is passed on to
1473 (struct info_print_options): New type.
1474 (info_print_options_defs): New file scoped variable.
1475 (make_info_print_options_def_group): New static function.
1476 (info_print_command_completer): New static function.
1477 (info_variables_command): Update to use local functions, and pass
1478 extra parameter through to symtab_symbol_info.
1479 (info_functions_command): Likewise.
1480 (info_types_command): Pass additional argument through to
1482 (rbreak_command): Pass extra argument to search_symbols.
1483 (_initialize_symtab): Add extra arguments for calls to
1484 info_print_args_help, and update help text for 'info variables',
1485 'whereis', and 'info functions' commands.
1486 * symtab.h (search_symbols): Add extra argument to declaration.
1487 * NEWS: Mention new flags.
1489 2019-08-26 Christian Biesinger <cbiesinger@google.com>
1491 * symtab.c (lookup_static_symbol): Call the new function (and move
1492 it down to be next to lookup_global_symbol).
1493 (struct global_sym_lookup_data): Add block_enum member and rename to...
1494 (struct global_or_static_sym_lookup_data): ...this.
1495 (lookup_symbol_global_iterator_cb): Pass block_index instead of
1496 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
1497 (lookup_symbol_global_or_static_iterator_cb): ...this.
1498 (lookup_global_or_static_symbol): New function.
1499 (lookup_global_symbol): Call new function.
1501 2019-08-26 Tom de Vries <tdevries@suse.de>
1504 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
1505 when pc_probe.prob == NULL.
1507 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
1509 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
1510 variable symbol_linkage to symbol_linkage_.
1512 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
1514 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
1515 represent whether the symbol is static, dynamic, or we don't
1518 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
1520 * gdb/rx-tdep.c (rx_register_names): New.
1521 (rx_register_name): Delete.
1522 (rx_psw_type): Delete.
1523 (rx_fpsw_type): Delete.
1524 (rx_register_type): Delete.
1525 (rx_gdbarch_init): Convert target-descriptions.
1526 (_initialize_rx_tdep): Add initialize_tdesc_rx.
1527 * gdb/features/Makefile: Add rx.xml.
1528 * gdb/features/rx.xml: New.
1529 * gdb/features/rx.c: Generated.
1530 * gdb/NEWS: Mention target description support.
1532 2019-08-22 Christian Biesinger <cbiesinger@google.com>
1534 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
1537 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
1539 * configure.ac: Don't check for 'dlfcn.h' (moved to
1540 gdbsupport/common.m4).
1541 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
1543 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
1544 * compile/compile-c-support.c: Include
1545 'gdbsupport/gdb-dlfcn.h'.
1546 * gdbsupport/common.m4: Check for 'dlfcn.h'.
1547 * gdb-dlfcn.c: Move to...
1548 * gdbsupport/gdb-dlfcn.c: ... here.
1549 * gdb-dlfcn.h: Move to...
1550 * gdbsupport/gdb-dlfcn.h: ... here.
1552 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
1554 * nios2-tdep.c (struct reg_value): Improve comments. Make
1555 the offset field signed.
1557 2019-08-22 Christian Biesinger <cbiesinger@google.com>
1559 * python/lib/gdb/__init__.py (_execute_file): New function.
1560 * python/python.c (python_run_simple_file): Call gdb._execute_file
1563 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
1565 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
1566 all uses as this was never set to anything but a zero value.
1568 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
1570 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
1572 2019-08-21 Christian Biesinger <cbiesinger@google.com>
1574 * tui/tui-data.h (tui_gen_win_info): Add an =default
1575 move constructor, required by some GCC versions.
1577 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
1579 * go32-nat.c (go32_sysinfo): Add hygon_p.
1581 2019-08-20 Tom Tromey <tom@tromey.com>
1583 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
1584 line_from_reg_element_no, first_reg_element_no_inline,
1585 display_all_data, delete_data_content_windows,
1586 erase_data_content>: Now private.
1588 2019-08-20 Tom Tromey <tom@tromey.com>
1590 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
1591 (tui_unhighlight_win, tui_highlight_win)
1592 (tui_win_info::make_window): Update.
1593 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
1595 2019-08-20 Tom Tromey <tom@tromey.com>
1597 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
1598 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
1599 (MAX_PID_WIDTH): Move to tui-stack.c.
1600 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
1601 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
1602 (MAX_PID_WIDTH): Move from tui-data.h.
1604 2019-08-20 Tom Tromey <tom@tromey.com>
1606 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
1607 * tui/tui-wingeneral.c (box_win): Change type of win_info.
1609 (tui_gen_win_info::make_window): Rename from tui_make_window.
1610 (tui_win_info::make_window): New method.
1611 (tui_gen_win_info::make_visible): Update.
1612 * tui/tui-source.c (tui_source_window::set_contents): Update.
1613 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1614 (tui_data_window::display_registers_from): Update.
1615 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1616 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
1620 (struct tui_win_info) <make_window>: Declare.
1621 <can_box>: Now virtual.
1622 <title>: New member.
1623 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
1624 * tui/tui-command.c (tui_cmd_window::resize): Update.
1626 2019-08-20 Tom Tromey <tom@tromey.com>
1628 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
1629 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1630 (tui_data_window::check_register_values): Update.
1632 2019-08-20 Tom Tromey <tom@tromey.com>
1634 * tui/tui-regs.h (struct tui_data_window): Use
1635 DISABLE_COPY_AND_ASSIGN.
1636 <regs_content>: Change type, removing unique_ptr.
1637 <tui_data_window>: Add move constructor.
1638 * tui/tui-regs.c (tui_data_window::show_registers)
1639 (tui_data_window::show_register_group)
1640 (tui_data_window::display_registers_from)
1641 (tui_data_window::display_registers_from)
1642 (tui_data_window::first_data_item_displayed)
1643 (tui_data_window::delete_data_content_windows)
1644 (tui_data_window::rerender, tui_data_window::refresh_window)
1645 (tui_data_window::check_register_values): Update.
1647 2019-08-20 Tom Tromey <tom@tromey.com>
1649 * tui/tui-regs.h (struct tui_data_window) <show_registers,
1650 show_register_group>: Declare.
1651 (tui_show_register_group): Don't declare.
1652 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
1654 (tui_data_window::show_register_group): Rename from
1655 tui_show_register_group.
1656 (tui_data_window::check_register_values, tui_reg_command):
1658 * tui/tui-layout.c (tui_set_layout): Update.
1660 2019-08-20 Tom Tromey <tom@tromey.com>
1662 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
1664 (tui_check_register_values): Don't declare.
1665 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
1666 from tui_check_register_values.
1667 * tui/tui-hooks.c (tui_register_changed): Update.
1669 2019-08-20 Tom Tromey <tom@tromey.com>
1671 * tui/tui-regs.c (tui_reg_layout): Move later.
1672 (tui_show_registers): Don't enable TUI mode or change layout.
1674 2019-08-20 Tom Tromey <tom@tromey.com>
1676 * tui/tui-regs.h (struct tui_data_item_window)
1677 <~tui_data_item_window>: Remove.
1678 <content>: Now a unique_xmalloc_ptr.
1679 * tui/tui-regs.c (tui_register_format): Return a
1681 (tui_get_register): Update.
1682 (~tui_data_item_window): Remove.
1683 (tui_data_window::display_registers_from, tui_display_register):
1685 * tui/tui-io.h (tui_expand_tabs): Update.
1686 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
1687 Remove "col" parameter.
1689 2019-08-20 Tom Tromey <tom@tromey.com>
1691 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
1693 * tui/tui-regs.c (~tui_data_item_window): Update.
1695 2019-08-20 Tom Tromey <tom@tromey.com>
1697 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
1700 2019-08-20 Tom Tromey <tom@tromey.com>
1702 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
1704 2019-08-20 Tom Tromey <tom@tromey.com>
1706 * tui/tui-source.h (struct tui_source_window): Update.
1707 * tui/tui-regs.c (tui_show_registers): Update.
1708 * tui/tui-disasm.h (struct tui_disasm_window): Update.
1709 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
1710 (NO_REGS_STRING): Remove defines.
1712 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
1714 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
1715 unnecessary thread walk if remote doesn't support the packet.
1717 2019-08-19 Tom Tromey <tromey@adacore.com>
1719 * python/py-value.c (value_has_field): Fix indentation.
1721 2019-08-19 Tom Tromey <tromey@adacore.com>
1723 * printcmd.c (do_one_display, info_display_command): Update.
1724 * block.h (contained_in): Return bool. Add allow_nested
1726 * block.c (contained_in): Return bool. Add allow_nested
1729 2019-08-19 Tom Tromey <tom@tromey.com>
1731 * configure: Rebuild.
1732 * configure.ac: Disallow the combination of -static-libstdc++ and
1734 * source-cache.c (get_language_name): Handle rust.
1735 (source_cache::get_source_lines): Ignore highlighting exceptions.
1737 2019-08-16 Tom Tromey <tom@tromey.com>
1739 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
1740 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
1741 (struct tui_source_window_base) <make_visible, refresh_window,
1742 resize>: Remove methods.
1743 <execution_info>: Remove field.
1744 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
1745 (tui_show_source_line, tui_source_window_base)
1746 (~tui_source_window_base): Update.
1747 (tui_source_window_base::resize)
1748 (tui_source_window_base::make_visible)
1749 (tui_source_window_base::refresh_window): Remove.
1750 (tui_source_window_base::update_exec_info): Update.
1751 * tui/tui-source.c (tui_source_window::set_contents): Update.
1752 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1754 2019-08-16 Tom Tromey <tom@tromey.com>
1756 * tui/tui-hooks.c (tui_remove_hooks): Don't set
1757 deprecated_query_hook.
1759 2019-08-16 Tom Tromey <tom@tromey.com>
1761 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
1762 (tui_update_source_windows_with_line): Update.
1763 * tui/tui-source.h (struct tui_source_window)
1764 <show_symtab_source>: Declare.
1765 (tui_show_symtab_source): Don't declare.
1766 * tui/tui-source.c (tui_show_symtab_source): Rename from
1767 tui_show_symtab_source.
1769 2019-08-16 Tom Tromey <tom@tromey.com>
1771 * tui/tui-winsource.h (struct tui_source_window_base)
1772 <set_contents>: Declare.
1773 * tui/tui-winsource.c
1774 (tui_source_window_base::update_source_window_as_is): Update.
1775 * tui/tui-source.h (struct tui_source_window) <set_contents>:
1777 (tui_set_source_content): Don't declare.
1778 * tui/tui-source.c (tui_source_window::set_contents): Rename from
1779 tui_set_source_content.
1780 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
1782 (tui_set_disassem_content): Don't declare.
1783 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
1784 tui_set_disassem_content.
1786 2019-08-16 Tom Tromey <tom@tromey.com>
1788 * tui/tui-winsource.h (struct tui_source_window_base)
1789 <update_breakpoint_info>: Declare.
1790 (tui_update_breakpoint_info): Don't declare.
1791 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
1792 (tui_update_all_breakpoint_info): Update.
1793 (tui_source_window_base::update_breakpoint_info): Rename from
1794 tui_update_breakpoint_info.
1795 (tui_source_window_base::update_exec_info): Update.
1797 2019-08-16 Tom Tromey <tom@tromey.com>
1799 * tui/tui-winsource.h (struct tui_source_window_base)
1800 <update_source_window>: Declare.
1801 (tui_update_source_window): Don't declare.
1802 * tui/tui-winsource.c
1803 (tui_source_window_base::update_source_window): Rename from
1804 tui_update_source_window.
1805 (tui_source_window_base::rerender): Update.
1806 * tui/tui-source.c (tui_source_window::maybe_update): Update.
1807 * tui/tui-disasm.c (tui_show_disassem)
1808 (tui_show_disassem_and_update_source)
1809 (tui_disasm_window::maybe_update): Update.
1811 2019-08-16 Tom Tromey <tom@tromey.com>
1813 * tui/tui-winsource.h (struct tui_source_window_base)
1814 <update_source_window_as_is>: Declare.
1815 (tui_update_source_window_as_is): Don't declare.
1816 * tui/tui-winsource.c (tui_update_source_window): Update
1817 (tui_source_window_base::update_source_window_as_is): Rename from
1818 tui_update_source_window_as_is.
1819 (tui_source_window_base::refill): Update.
1820 * tui/tui-source.c (tui_show_symtab_source): Update.
1821 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
1824 2019-08-16 Tom Tromey <tom@tromey.com>
1826 * tui/tui-winsource.h (tui_update_source_window)
1827 (tui_update_source_window_as_is): Remove "noerror" parameter.
1828 * tui/tui-winsource.c (tui_update_source_window)
1829 (tui_update_source_window_as_is): Remove "noerror" parameter.
1830 (tui_update_source_windows_with_addr)
1831 (tui_update_source_windows_with_line)
1832 (tui_source_window_base::rerender)
1833 (tui_source_window_base::refill): Update.
1834 * tui/tui-source.h (tui_set_source_content)
1835 (tui_show_symtab_source): Remove "noerror" parameter.
1836 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
1838 (tui_show_symtab_source): Likewise.
1839 (tui_source_window::maybe_update): Update.
1840 * tui/tui-disasm.c (tui_show_disassem)
1841 (tui_show_disassem_and_update_source)
1842 (tui_disasm_window::do_scroll_vertical)
1843 (tui_disasm_window::maybe_update): Update.
1845 2019-08-16 Tom Tromey <tom@tromey.com>
1847 * tui/tui.c (tui_is_window_visible): Update.
1848 * tui/tui-wingeneral.c (tui_make_window)
1849 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
1850 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
1851 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
1852 (tui_set_win_height_command, parse_scrolling_args): Update.
1853 * tui/tui-source.c (tui_source_window::style_changed): Update.
1854 * tui/tui-regs.c (tui_show_registers)
1855 (tui_data_window::first_data_item_displayed)
1856 (tui_data_window::delete_data_content_windows)
1857 (tui_check_register_values, tui_reg_command): Update.
1858 * tui/tui-disasm.c (tui_show_disassem): Update.
1859 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
1861 <is_visible>: Remove field.
1862 * tui/tui-data.c (tui_next_win, tui_prev_win)
1863 (tui_delete_invisible_windows): Update.
1865 2019-08-16 Tom Tromey <tom@tromey.com>
1867 * tui/tui-winsource.h (struct tui_source_window_base)
1868 <m_has_locator>: Remove.
1869 * tui/tui-layout.c (show_source_disasm_command, show_data)
1870 (show_source_or_disasm_and_command): Update.
1872 2019-08-16 Alan Hayward <alan.hayward@arm.com>
1874 * NEWS (Other MI changes): New subsection.
1875 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
1876 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
1877 * arch-utils.c (default_get_pc_address_flags): New function.
1878 * arch-utils.h (default_get_pc_address_flags): New declaration.
1879 * gdbarch.sh: Add get_pc_address_flags.
1880 * gdbarch.c: Regenerate.
1881 * gdbarch.h: Likewise.
1882 * stack.c (print_pc): New function.
1883 (print_frame_info) (print_frame): Call print_pc.
1885 2019-08-16 Tom de Vries <tdevries@suse.de>
1887 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
1888 print_objfile_section_info.
1890 2019-08-15 Tom Tromey <tom@tromey.com>
1892 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
1893 calling update_cmdwin_start_line.
1894 * tui/tui-winsource.h (struct tui_source_window_base)
1895 <do_make_visible_with_new_height, set_new_height>: Don't declare.
1896 <rerender>: Declare.
1897 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
1899 (tui_source_window_base::set_new_height): Remove.
1900 (tui_source_window_base::rerender): Rename from
1901 do_make_visible_with_new_height.
1902 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
1904 (tui_win_info::make_invisible_and_set_new_height)
1905 (tui_win_info::make_visible_with_new_height): Remove.
1906 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
1908 * tui/tui-stack.c (tui_locator_window::rerender): New method.
1909 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
1910 do_make_visible_with_new_height>: Don't declare.
1911 <rerender>: Declare.
1912 * tui/tui-regs.c (tui_data_window::rerender): Rename from
1914 (tui_data_window::do_make_visible_with_new_height): Remove.
1915 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
1916 call tui_show_locator_content.
1917 (tui_gen_win_info::resize): Call rerender.
1918 (show_source_or_disasm_and_command): Don't call
1919 tui_show_locator_content.
1920 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
1922 (struct tui_win_info) <rerender>: Declare.
1923 <set_new_height, make_invisible_and_set_new_height,
1924 make_visible_with_new_height>: Don't declare.
1925 * tui/tui-data.c (tui_win_list::rerender): New method.
1926 * tui/tui-command.h (struct tui_cmd_window)
1927 <do_make_visible_with_new_height>: Don't declare.
1929 (tui_cmd_window::do_make_visible_with_new_height): Remove.
1931 2019-08-15 Tom Tromey <tromey@adacore.com>
1933 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
1934 * ada-lang.c (ada_enum_name): Likewise.
1936 2019-08-15 Christian Biesinger <cbiesinger@google.com>
1938 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
1940 (GdbOutputErrorFile): Likewise.
1941 (global scope): Adjust constructor calls to GdbOutput{,Error}File
1943 (execute_unwinders): Rename to have a leading underscore.
1944 (auto_load_packages): Likewise.
1945 (global scope): Adjust call to auto_load_packages accordingly.
1946 (GdbSetPythonDirectory): Likewise.
1947 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
1948 instead of execute_unwinders.
1950 2019-08-15 Tom Tromey <tom@tromey.com>
1952 * tui/tui-layout.c (show_layout, show_source_disasm_command)
1953 (show_data): Don't change window visibility.
1954 (tui_gen_win_info::resize): Remove special case for command
1955 window. Use wresize, when available.
1956 (show_source_or_disasm_and_command): Don't change window
1958 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
1959 <make_visible>: New method.
1960 * tui/tui-command.c (tui_cmd_window::resize): New method.
1962 2019-08-15 Tom Tromey <tom@tromey.com>
1964 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
1965 (struct tui_source_windows): New.
1966 * tui/tui-winsource.c (tui_display_main): Update.
1967 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
1968 (new_height_ok, parse_scrolling_args): Update.
1969 * tui/tui-layout.c (show_layout, show_data): Update.
1970 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
1971 (tui_add_to_source_windows): Don't declare.
1972 * tui/tui-data.c (source_windows, tui_source_windows)
1973 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
1975 2019-08-15 Tom Tromey <tom@tromey.com>
1977 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
1979 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
1980 * tui/tui-layout.c (show_source_disasm_command, show_data):
1982 (tui_gen_win_info::resize): Rename.
1983 (show_source_or_disasm_and_command): Update.
1984 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
1987 2019-08-15 Tom Tromey <tom@tromey.com>
1989 * tui/tui-stack.c (tui_initialize_static_data): Remove.
1990 * tui/tui-interp.c (tui_interp::init): Don't call
1991 tui_initialize_static_data.
1992 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
1994 2019-08-15 Tom Tromey <tom@tromey.com>
1996 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
1997 examine tui_win_list.
1999 2019-08-15 Tom Tromey <tom@tromey.com>
2001 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
2002 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
2003 tui_clear_source_content.
2004 (tui_clear_source_content): Remove.
2005 (tui_source_window_base::do_erase_source_content): Hoist call to
2007 * tui/tui-stack.c (tui_show_frame_info): Don't call
2008 tui_clear_source_content.
2010 2019-08-15 Tom Tromey <tom@tromey.com>
2012 * tui/tui-winsource.h (struct tui_source_window_base)
2013 <do_erase_source_content>: New method.
2014 <erase_source_content>: New method.
2015 (tui_erase_source_content): Don't declare.
2016 * tui/tui-winsource.c (tui_clear_source_content): Update.
2017 (tui_source_window_base::do_erase_source_content): Rename from
2018 tui_erase_source_content.
2019 (tui_source_window_base::show_source_content): Update.
2020 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2021 * tui/tui-source.h (struct tui_source_window)
2022 <erase_source_content>: New method.
2023 * tui/tui-disasm.h (struct tui_disasm_window)
2024 <erase_source_content>: New method.
2026 2019-08-15 Tom Tromey <tom@tromey.com>
2028 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
2029 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
2031 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
2032 * tui/tui-source.c (tui_set_source_content): Update.
2033 * tui/tui-disasm.c (tui_set_disassem_content): Update.
2035 2019-08-15 Tom Tromey <tom@tromey.com>
2037 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
2038 * tui/tui-winsource.c (tui_line_is_displayed): Move to
2040 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
2042 * tui/tui-source.c (tui_source_window::line_is_displayed): New
2044 (tui_source_window::maybe_update): Update.
2046 2019-08-15 Tom Tromey <tom@tromey.com>
2048 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
2049 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
2051 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
2053 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
2055 (tui_disasm_window::maybe_update): Update.
2057 2019-08-15 Tom Tromey <tom@tromey.com>
2059 * tui/tui-winsource.h (struct tui_source_window_base)
2060 <maybe_update>: Declare.
2061 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
2063 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
2065 * tui/tui-source.c (tui_source_window::maybe_update): New method.
2066 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
2068 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
2070 2019-08-15 Tom Tromey <tom@tromey.com>
2072 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
2074 2019-08-15 Tom Tromey <tom@tromey.com>
2076 * tui/tui-wingeneral.c: Include tui-stack.h.
2077 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
2078 (struct tui_locator_window): Move from tui-data.h.
2079 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
2080 (tui_initialize_static_data): Move from tui-data.c.
2081 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
2082 (struct tui_locator_window): Move to tui-stack.c.
2083 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
2084 (tui_initialize_static_data): Move to tui-stack.c.
2086 2019-08-15 Tom Tromey <tom@tromey.com>
2088 * tui/tui-layout.c (show_source_disasm_command)
2089 (show_source_or_disasm_and_command): Use make_visible method, not
2091 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
2094 2019-08-15 Tom Tromey <tom@tromey.com>
2096 * tui/tui-wingeneral.h (tui_make_window): Update.
2097 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
2099 (tui_gen_win_info::make_visible): Update.
2100 * tui/tui-regs.c (tui_data_window::display_registers_from):
2102 * tui/tui-layout.c (show_source_disasm_command)
2103 (show_source_or_disasm_and_command): Update.
2104 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
2105 (enum tui_box): Remove.
2106 (struct tui_win_info) <can_box>: New method.
2107 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
2110 2019-08-15 Tom de Vries <tdevries@suse.de>
2112 * linux-nat-trad.c: Include gdbarch.h.
2114 2019-08-14 Alan Hayward <alan.hayward@arm.com>
2116 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
2119 2019-08-14 Tom Tromey <tromey@adacore.com>
2121 * darwin-nat.c: Include gdbarch.h.
2122 * darwin-nat-info.c: Include gdbarch.h.
2124 2019-08-13 Tom Tromey <tom@tromey.com>
2126 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
2128 * tui/tui-data.c (tui_initialize_static_data): Update.
2130 2019-08-13 Tom Tromey <tom@tromey.com>
2132 * tui/tui-winsource.h (struct tui_exec_info_window)
2133 <~tui_exec_info_window, maybe_allocate_content, get_content,
2135 (struct tui_source_window_base) <set_exec_info_content,
2136 show_exec_info_content>: Don't declare.
2137 * tui/tui-winsource.c
2138 (tui_exec_info_window::maybe_allocate_content): Remove.
2139 (tui_source_window_base::update_exec_info): Rename from
2140 set_exec_info_content.
2141 (tui_source_window_base::show_exec_info_content)
2142 (tui_source_window_base::update_exec_info): Remove.
2144 2019-08-13 Tom Tromey <tom@tromey.com>
2146 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
2148 * tui/tui-winsource.c (tui_update_source_window_as_is)
2149 (tui_update_source_windows_with_addr, tui_erase_source_content):
2151 (tui_clear_exec_info_content): Remove.
2153 2019-08-13 Tom Tromey <tom@tromey.com>
2155 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
2157 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
2158 call tui_erase_exec_info_content.
2159 (tui_clear_exec_info_content): Rename from
2160 tui_erase_exec_info_content.
2161 (tui_clear_exec_info_content): Delete.
2163 2019-08-13 Tom Tromey <tom@tromey.com>
2165 * tui/tui-winsource.h (struct tui_source_window_base)
2166 <show_exec_info_content>: Declare.
2167 (tui_show_exec_info_content): Don't declare.
2168 * tui/tui-winsource.c
2169 (tui_source_window_base::show_exec_info_content): Rename from
2170 tui_show_exec_info_content.
2171 (tui_source_window_base::update_exec_info): Update.
2173 2019-08-13 Tom Tromey <tom@tromey.com>
2175 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
2176 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
2177 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
2178 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
2179 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
2180 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
2183 2019-08-13 Tom Tromey <tom@tromey.com>
2185 * tui/tui-winsource.h (struct tui_source_window_base)
2186 <update_exec_info>: Declare.
2187 (tui_update_exec_info): Don't declare.
2188 * tui/tui-winsource.c (tui_update_source_window_as_is)
2189 (tui_source_window_base::refresh_all)
2190 (tui_update_all_breakpoint_info): Update.
2191 (tui_source_window_base::update_exec_info): Rename from
2192 tui_update_exec_info.
2193 * tui/tui-stack.c (tui_show_frame_info): Update.
2195 2019-08-13 Tom Tromey <tom@tromey.com>
2197 * tui/tui-winsource.h (struct tui_source_window_base)
2198 <set_exec_info_content>: Declare.
2199 (tui_set_exec_info_content): Don't declare.
2200 * tui/tui-winsource.c
2201 (tui_source_window_base::set_exec_info_content): Rename from
2202 tui_set_exec_info_content.
2203 (tui_update_exec_info): Update.
2205 2019-08-13 Tom Tromey <tom@tromey.com>
2207 * tui/tui-winsource.h (struct tui_source_window_base)
2208 <show_source_content>: Declare.
2209 (tui_show_source_content): Don't declare.
2210 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2211 (tui_source_window_base::show_source_content): Rename from
2212 tui_show_source_content.
2213 (tui_source_window_base::refresh_all): Update.
2214 * tui/tui-layout.c (show_source_disasm_command)
2215 (show_source_or_disasm_and_command): Update.
2217 2019-08-13 Tom Tromey <tom@tromey.com>
2219 * tui/tui-winsource.c (tui_erase_source_content)
2220 (tui_show_source_content, tui_source_window_base::refresh_all):
2222 * tui/tui-wingeneral.h
2223 (tui_check_and_display_highlight_if_needed): Don't declare.
2224 * tui/tui-wingeneral.c
2225 (tui_win_info::check_and_display_highlight_if_needed): Rename from
2226 check_and_display_highlight_if_needed.
2227 * tui/tui-win.c (tui_rehighlight_all)
2228 (tui_win_info::make_visible_with_new_height): Update.
2229 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
2230 (tui_data_window::erase_data_content)
2231 (tui_data_window::display_all_data): Update.
2232 * tui/tui-data.h (struct tui_win_info)
2233 <check_and_display_highlight_if_needed>: Declare.
2235 2019-08-13 Tom Tromey <tom@tromey.com>
2237 * tui/tui-win.c (tui_resize_all): Call
2238 tui_delete_invisible_windows.
2239 * tui/tui-layout.c (show_layout): Call
2240 tui_delete_invisible_windows.
2241 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
2242 * tui/tui-data.c (tui_delete_invisible_windows): New function.
2244 2019-08-13 Tom Tromey <tom@tromey.com>
2246 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
2247 tui_add_win_to_layout.
2249 2019-08-13 Tom Tromey <tom@tromey.com>
2251 * tui/tui-layout.h (tui_default_win_height): Don't declare.
2252 * tui/tui-layout.c (tui_default_win_height): Now static.
2254 2019-08-13 Tom Tromey <tom@tromey.com>
2256 * tui/tui-layout.c (show_layout): Unify all layout cases into a
2258 (show_source_disasm_command, show_source_or_disasm_and_command):
2259 Don't check current layout.
2261 2019-08-13 Tom Tromey <tom@tromey.com>
2263 * tui/tui-wingeneral.c (make_all_visible): Remove.
2264 (tui_make_all_invisible): Simplify.
2265 * tui/tui-layout.c (tui_make_all_invisible): Move from
2266 tui-wingeneral.c; simplify.
2267 (show_layout): Hoist call to tui_make_all_invisible.
2268 (show_data): Don't call tui_make_all_invisible.
2270 2019-08-13 Tom Tromey <tom@tromey.com>
2272 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
2273 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
2275 2019-08-13 Tom Tromey <tom@tromey.com>
2277 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
2279 (show_source_disasm_command, show_data)
2280 (show_source_or_disasm_and_command): Don't use
2281 tui_set_current_layout_to.
2282 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
2283 * tui/tui-data.c (current_layout, tui_current_layout): Move to
2285 (tui_set_current_layout_to): Remove.
2287 2019-08-13 Tom Tromey <tom@tromey.com>
2289 * tui/tui-layout.c (tui_set_layout): Update.
2290 * tui/tui-data.h (struct tui_layout_def): Remove.
2291 (tui_layout_def): Don't declare.
2292 * tui/tui-data.c (layout_def): Remove.
2293 (tui_layout_def): Remove.
2295 2019-08-13 Tom Tromey <tom@tromey.com>
2297 * tui/tui-winsource.h (struct tui_source_window_base)
2298 <clear_detail>: No longer "override".
2299 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
2300 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
2301 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
2302 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
2304 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
2306 2019-08-13 Tom Tromey <tromey@adacore.com>
2308 * tracepoint.c: Don't include readline.h or history.h.
2310 2019-08-12 Tom Tromey <tom@tromey.com>
2312 * configure: Rebuild.
2313 * configure.ac: Check for readline 7.
2314 * NEWS: Mention readline 7 requirement.
2317 2019-08-12 Tom Tromey <tom@tromey.com>
2319 * mingw-hdep.c (gdb_select): Remove readline hack.
2321 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2323 * blockframe.c (find_pc_partial_function): Set *block to nullptr
2324 when the function fails.
2326 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
2328 * s390-tdep.c (s390_type_align): New function.
2329 (s390_gdbarch_init): Set it as type_align gdbarch method.
2331 2019-08-09 Tom de Vries <tdevries@suse.de>
2334 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
2335 pc_low with relocation offset.
2337 2019-08-07 Tom Tromey <tromey@adacore.com>
2339 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
2340 (print_frame_args): Update.
2341 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
2343 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
2344 * frame.h (struct frame_arg): Add initializers.
2345 <error>: Now a unique_xmalloc_ptr.
2347 2019-08-07 Alan Hayward <alan.hayward@arm.com>
2349 * NEWS: Expand the Pointer Authentication entry.
2350 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
2351 (aarch64_frame_unmask_lr): ... to this.
2352 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
2353 Call aarch64_frame_unmask_lr.
2354 * frame.c (struct frame_info): Add "masked" variable.
2355 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
2356 (fprint_frame): Check for masked pc.
2357 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
2359 * python/py-framefilter.c (py_print_frame): Check for masked pc.
2360 * stack.c (print_frame): Check for masked pc.
2362 2019-08-06 Tom Tromey <tom@tromey.com>
2364 * stabsread.c (patch_block_stabs, read_one_struct_field)
2365 (read_enum_type): Use obstack_strndup.
2366 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
2367 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
2368 * dwarf2read.c (guess_full_die_structure_name)
2369 (anonymous_struct_prefix): Use obstack_strndup.
2370 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
2371 * c-exp.y (yylex): Use obstack_strndup.
2372 * ada-exp.y (write_object_renaming, write_ambiguous_var)
2373 (write_var_or_type): Use obstack_strndup.
2375 2019-08-06 Tom Tromey <tom@tromey.com>
2377 * symfile.c (reread_symbols): Use obstack_strdup.
2378 * stabsread.c (read_type): Use obstack_strdup.
2379 * gdb_obstack.h (obstack_strdup): New overload.
2380 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
2381 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
2382 (dwarf2_canonicalize_name): Use obstack_strdup.
2383 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
2384 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
2387 2019-08-06 Tom Tromey <tom@tromey.com>
2389 * gdb_obstack.h (obstack_strdup): Define.
2390 * gdb_obstack.c (obstack_strdup): Don't define.
2392 2019-08-06 Tom Tromey <tom@tromey.com>
2394 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
2396 * typeprint.c (typedef_hash_table::find_global_typedef): Use
2398 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
2399 * stabsread.c (common_block_start): Use obstack_strdup.
2400 * objfiles.c (set_objfile_main_name, objfile): Use
2402 * namespace.c (add_using_directive): Use obstack_strdup.
2403 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
2404 * jit.c (finalize_symtab): Use obstack_strdup.
2405 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
2406 (guess_partial_die_structure_name, partial_die_info::fixup)
2407 (dwarf2_name): Use obstack_strdup.
2408 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
2410 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
2411 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
2413 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
2415 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2417 * unittests/help-doc-selftests.c: New file.
2418 * Makefile.in: Add the new file.
2420 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2422 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
2423 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
2424 the full first line, except when FOR_VALUE_PREFIX. In this case,
2425 the trailing '.' is not output, and the first character is uppercased.
2426 (print_help_for_command): Update call to print_doc_line.
2427 (print_doc_of_command): Likewise.
2428 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
2429 * cli/cli-option.c (append_indented_doc): Do not append newline.
2430 (build_help_option): Append newline after first appended_indented_doc
2431 only if a second call is done.
2432 (build_help): Append 2 new lines before each option, except the first
2434 * compile/compile.c (_initialize_compile): Add new lines after
2435 %OPTIONS%, when not at the end of the help.
2436 Change help doc or code
2437 producing the help doc to respect the invariants.
2438 * maint-test-options.c (_initialize_maint_test_options): Likewise.
2439 Also removed the new line after 'Options:', as all other commands
2440 do not put an empty line between 'Options:' and the first option.
2441 * printcmd.c (_initialize_printcmd): Likewise.
2442 * stack.c (_initialize_stack): Likewise.
2443 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
2444 incorrectly telling COMMAND is optional.
2445 * ada-lang.c (_initialize_ada_language): Change help doc or code
2446 producing the help doc to respect the invariants.
2447 * ada-tasks.c (_initialize_ada_tasks): Likewise.
2448 * breakpoint.c (_initialize_breakpoint): Likewise.
2449 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
2450 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
2451 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
2452 * cli/cli-style.c (cli_style_option::add_setshow_commands,
2453 _initialize_cli_style): Likewise.
2454 * corelow.c (core_target_info): Likewise.
2455 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
2456 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
2457 * filesystem.c (_initialize_filesystem): Likewise.
2458 * frame.c (_initialize_frame): Likewise.
2459 * gnu-nat.c (add_task_commands): Likewise.
2460 * infcall.c (_initialize_infcall): Likewise.
2461 * infcmd.c (_initialize_infcmd): Likewise.
2462 * interps.c (_initialize_interpreter): Likewise.
2463 * language.c (_initialize_language): Likewise.
2464 * linux-fork.c (_initialize_linux_fork): Likewise.
2465 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
2466 * maint.c (_initialize_maint_cmds): Likewise.
2467 * memattr.c (_initialize_mem): Likewise.
2468 * printcmd.c (_initialize_printcmd): Likewise.
2469 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
2471 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
2472 * record-btrace.c (_initialize_record_btrace): Likewise.
2473 * record-full.c (_initialize_record_full): Likewise.
2474 * record.c (_initialize_record): Likewise.
2475 * regcache-dump.c (_initialize_regcache_dump): Likewise.
2476 * regcache.c (_initialize_regcache): Likewise.
2477 * remote.c (add_packet_config_cmd, init_remote_threadtests,
2478 _initialize_remote): Likewise.
2479 * ser-tcp.c (_initialize_ser_tcp): Likewise.
2480 * serial.c (_initialize_serial): Likewise.
2481 * skip.c (_initialize_step_skip): Likewise.
2482 * source.c (_initialize_source): Likewise.
2483 * stack.c (_initialize_stack): Likewise.
2484 * symfile.c (_initialize_symfile): Likewise.
2485 * symtab.c (_initialize_symtab): Likewise.
2486 * target-descriptions.c (_initialize_target_descriptions): Likewise.
2487 * top.c (init_main): Likewise.
2488 * tracefile-tfile.c (tfile_target_info): Likewise.
2489 * tracepoint.c (_initialize_tracepoint): Likewise.
2490 * tui/tui-win.c (_initialize_tui_win): Likewise.
2491 * utils.c (add_internal_problem_command): Likewise.
2492 * valprint.c (value_print_option_defs): Likewise.
2494 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
2497 * configure.ac: Drop enable-libmcheck support.
2498 * configure, config.in: Rebuild.
2499 * libmcheck.m4: Remove.
2500 * acinclude.m4: Don't include it.
2501 * Makefile.in: Don't distribute it.
2502 * top.c (print_gdb_configuration): Don't mention it.
2504 2019-08-06 Tom Tromey <tom@tromey.com>
2506 * utils.c (set_output_style): Sometimes pass stream to
2508 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
2509 * record-btrace.c (btrace_insn_history): Update.
2510 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
2512 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
2513 Update initializers.
2514 <m_uiout>: New field.
2516 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2517 Remove "uiout" parameter.
2518 (dump_insns): Update.
2519 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
2520 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
2522 2019-08-06 Christian Biesinger <cbiesinger@google.com>
2524 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
2525 (error_in_psymtab_expansion): Likewise.
2526 (lookup_symbol_via_quick_fns): Likewise.
2527 (basic_lookup_transparent_type_quick): Likewise.
2528 (basic_lookup_transparent_type_1): Likewise.
2530 2019-08-06 Tom Tromey <tromey@adacore.com>
2532 * source.c (last_source_error): Now bool.
2533 (print_source_lines_base): Make "noprint" bool. Only open
2534 source file when last_source_visited changes.
2536 2019-08-06 Tom Tromey <tromey@adacore.com>
2538 * annotate.c (annotate_source_line): Use g_source_cache.
2539 * source-cache.c (source_cache::get_plain_source_lines): Change
2540 parameters. Populate m_offset_cache.
2541 (source_cache::ensure): New method.
2542 (source_cache::get_line_charpos): New method.
2543 (extract_lines): Move lower. Change parameters.
2544 (source_cache::get_source_lines): Move lower.
2545 * source-cache.h (class source_cache): Update comment.
2546 <get_line_charpos>: New method.
2547 <get_source_lines>: Update comment.
2548 <clear>: Clear m_offset_cache.
2549 <get_plain_source_lines>: Change parameters.
2550 <ensure>: New method
2551 <m_offset_cache>: New member.
2552 * source.c (forget_cached_source_info_for_objfile): Update.
2553 (info_source_command): Use g_source_cache.
2554 (find_source_lines, open_source_file_with_line_charpos): Remove.
2555 (print_source_lines_base, search_command_helper): Use g_source_cache.
2556 * source.h (open_source_file_with_line_charpos): Don't declare.
2557 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
2558 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
2561 2019-08-06 Tom Tromey <tromey@adacore.com>
2563 * source-cache.c (source_cache::get_plain_source_lines):
2564 Remove "first_line" and "last_line" parameters.
2565 (source_cache::get_source_lines): Cache plain text.
2566 * source-cache.h (class source_cache)
2567 <get_plain_source_lines>: Update.
2569 2019-08-06 Tom Tromey <tromey@adacore.com>
2571 * source-cache.c (extract_lines): No longer a method.
2572 Changed type of parameter. Include final newline.
2573 (selftests::extract_lines_test): New function.
2574 (_initialize_source_cache): Likewise.
2575 * source-cache.h (class source_cache)
2576 <extract_lines>: Don't declare.
2578 2019-08-06 Tom Tromey <tromey@adacore.com>
2580 * breakpoint.c (init_breakpoint_sal): Update.
2581 (breakpoint): Update.
2582 * breakpoint.h (struct breakpoint) <filter>: Now a
2585 2019-08-05 Christian Biesinger <cbiesinger@google.com>
2587 * NEWS: Mention dictionary access on blocks.
2588 * python/py-block.c (blpy_getitem): New function.
2589 (block_object_as_mapping): New struct.
2590 (block_object_type): Use new struct for tp_as_mapping field.
2592 2019-08-05 Christian Biesinger <cbiesinger@google.com>
2594 * objfiles.h (objfile): Add a comment describing partial symbols.
2596 2019-08-05 Tom Tromey <tromey@adacore.com>
2598 * compile/compile.c (_initialize_compile): Use _(), not N_().
2599 * thread.c (_initialize_thread): Use _(), not N_().
2600 * stack.c (_initialize_stack): Use _(), not N_().
2601 * printcmd.c (_initialize_printcmd): Use _(), not N_().
2603 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2605 * dwarf2read.c (struct dw2_symtab_iterator):
2606 <want_specific_block>: Remove.
2607 <block_index>: Change type to gdb::optional.
2608 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
2609 change type of BLOCK_INDEX parameter to gdb::optional.
2610 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
2611 (dw2_lookup_symbol): Don't pass argument for
2612 WANT_SPECIFIC_BLOCK.
2613 (dw2_expand_symtabs_for_function): Don't pass argument for
2614 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
2615 (class dw2_debug_names_iterator)
2616 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
2617 parameter, change BLOCK_INDEX type to gdb::optional.
2618 <m_want_specific_block>: Remove.
2619 <m_block_index>: Change type to gdb::optional.
2620 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
2621 gdb::optional. Re-write in function of gdb::optional.
2622 (dw2_debug_names_lookup_symbol): Don't pass argument for
2623 WANT_SPECIFIC_BLOCK.
2624 (dw2_debug_names_expand_symtabs_for_function): Don't pass
2625 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
2628 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2630 * NEWS: Mention changes to "info sources" command.
2632 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2634 * symtab.c (filename_partial_match_opts): New struct type.
2635 (struct output_source_filename_data): New members
2636 regexp, c_regexp, partial_match.
2637 (output_source_filename): Use new members to decide to print file.
2638 (info_sources_option_defs): New variable.
2639 (make_info_sources_options_def_group, print_info_sources_header,
2640 info_sources_command_completer):
2642 (info_sources_command): Read new optional arguments.
2643 (_initialize_symtab): Update info sources help.
2645 2019-08-02 Alexandre Oliva <oliva@adacore.com>
2647 * ada-lang.c (exception_support_info_v0): Renamed from...
2648 (default_exception_support_info): ... this. Create new
2650 (ada_has_this_exception_support): Look up catch_handlers_sym.
2651 (ada_exception_support_info_sniffer): Try v0 after default.
2653 2019-08-01 Tom Tromey <tromey@adacore.com>
2655 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
2658 2019-08-01 Christian Biesinger <cbiesinger@google.com>
2660 * s12z-tdep.c: Fix include path for s12z-opc.h.
2662 2019-08-01 Alan Hayward <alan.hayward@arm.com>
2664 * NEWS: Require GNU make 3.82.
2666 2019-07-16 Tom Tromey <tom@tromey.com>
2668 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
2671 2019-07-30 Tom Tromey <tromey@adacore.com>
2673 * block.c (contained_in): Remove BLOCK_FUNCTION check.
2675 2019-07-30 Kevin Buettner <kevinb@redhat.com>
2677 * printcmd.c (print_address_symbolic): Print negative offsets.
2678 (build_address_symbolic): Force signed arithmetic when computing
2681 2019-07-30 Christian Biesinger <cbiesinger@google.com>
2683 PR/24474: Add a function to lookup static variables.
2684 * NEWS: Mention this new function.
2685 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
2686 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
2687 * python/python.c (python_GdbMethods): Add new function.
2689 2019-07-29 Christian Biesinger <cbiesinger@google.com>
2691 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
2692 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
2693 (objfpy_lookup_static_symbol): New function.
2694 (objfile_object_methods): Add new functions.
2696 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2698 * NEWS: Mention 'set|show print frame-info'. Mention new
2699 'presence' value for 'frame-arguments'. Mention new '-frame-info'
2700 backtrace argument. Mention that python frame filtering code
2701 is now consistent with what 'backtrace' command prints.
2703 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2705 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
2707 (print_frame_info_auto, print_frame_info_source_line,
2708 print_frame_info_location, print_frame_info_source_and_location,
2709 print_frame_info_location_and_address, print_frame_info_short_location):
2711 (struct frame_print_options): New member print_frame_info.
2712 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
2713 * stack.h (get_user_print_what_frame_info): New declaration.
2714 (frame_show_address): New declaration.
2715 * stack.c (print_frame_arguments_choices): New value 'presence'.
2716 (print_frame_info_auto, print_frame_info_source_line,
2717 print_frame_info_location, print_frame_info_source_and_location,
2718 print_frame_info_location_and_address, print_frame_info_short_location,
2719 print_frame_info_choices, print_frame_info_print_what): New definitions.
2720 (print_frame_args): Only print dots for args if print frame-arguments
2722 (frame_print_option_defs): New element for "frame-info".
2723 (get_user_print_what_frame_info): New function.
2724 (frame_show_address): Make non static. Move comment to stack.h.
2725 (print_frame_info_to_print_what): New function.
2726 (print_frame_info): Update comment. Use fp_opts.print_frame_info
2727 to decide what to print.
2728 (backtrace_command_1): Handle the new print_frame_arguments_presence
2730 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
2731 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
2732 (py_print_frame): In non-mi mode, use LOCATION as default for
2733 print_what, similarly to frame information printed directly by
2734 backtrace command. Handle frame-info user option in non MI mode.
2736 2019-07-27 Kevin Buettner <kevinb@redhat.com>
2738 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
2739 Add case for debugging 32-bit target on 64-bit host. Revise
2742 2019-07-27 Kevin Buettner <kevinb@redhat.com>
2744 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
2745 instead of find_function_entry_range_from_pc.
2747 2019-07-27 Kevin Buettner <kevinb@redhat.com>
2749 * stack.c (find_frame_funname): Remove code which preferred
2750 minsym over symtab sym in "certain pathological cases".
2752 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
2753 parameter. Change type of "do_demangle" to bool.
2754 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2755 Pass suitable "prefer_sym_over_minsym" flag to
2756 build_address_symbolic(). Don't output "+" for negative offsets.
2757 * printcmd.c (print_address_symbolic): Update invocation of
2758 build_address_symbolic to include a "prefer_sym_over_minsym"
2760 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
2761 Restrict cases in which use of minimal symbol is preferred to that
2762 of a found symbol. Update comments.
2764 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
2765 for entry pc when entry pc is out of range for that FDE.
2767 2019-07-26 Brian Callahan <bcallah@openbsd.org>
2770 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
2773 2019-07-25 Christian Biesinger <cbiesinger@google.com>
2775 * python/py-objfile.c (add_separate_debug_file): Fix comment about
2776 this function's Python signature.
2779 2019-07-24 Christian Biesinger <cbiesinger@google.com>
2781 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
2782 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
2783 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
2784 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
2785 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
2788 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
2790 * h8300-tdep.c (h8300_register_name_common): New.
2791 h8300_register_name): Use h8300_register_name_common.
2792 (h8300s_register_name): Likewise.
2793 (h8300sx_register_name): Likewise.
2794 (h8300h_register_nam): New.
2795 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
2798 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
2800 * arm-tdep.c (arm_skip_cmse_entry): New function.
2801 (arm_is_sgstubs_section): New function.
2802 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
2804 2019-07-22 Tom Tromey <tom@tromey.com>
2806 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
2809 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2811 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
2814 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2816 * symtab.c (search_symbols): Adjust msymbol matching type arrays
2817 so that GDB doesn't match any msymbols when searching in the
2819 (print_symbol_info): Print using typedef_print or type_print based
2820 on the type of the symbol. Add updated FIXME comment moved from...
2821 (_initialize_symtab): ... move and update FIXME comment to above.
2823 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2825 * NEWS: Mention adding -q option to "info types".
2826 * symtab.c (struct info_types_options): New struct.
2827 (info_types_options_defs): New variable.
2828 (make_info_types_options_def_group): New function.
2829 (info_types_command): Use gdb::option framework to parse options.
2830 (info_types_command_completer): New function.
2831 (_initialize_symtab): Extend the help text on "info types" and
2832 register command completer.
2834 2019-07-21 Christian Biesinger <cbiesinger@google.com>
2836 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
2837 (lookup_symbol_in_objfile): Change int to block_enum and add a
2838 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
2840 2019-07-20 Christian Biesinger <cbiesinger@google.com>
2842 * MAINTAINERS (Write After Approval): Add self.
2844 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
2846 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
2847 instruction to the dummy code region.
2849 2019-07-19 Tom Tromey <tromey@adacore.com>
2851 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
2852 (ARGSUSED, PARAMS, __func__): Remove rules.
2854 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2856 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
2857 * features/arm/arm-with-iwmmxt.c: Remove.
2858 * features/arm/arm-with-iwmmxt.xml: Remove.
2859 * features/arm/arm-with-m-fpa-layout.c: Remove.
2860 * features/arm/arm-with-m-fpa-layout.xml: Remove.
2861 * features/arm/arm-with-m-vfp-d16.c: Remove.
2862 * features/arm/arm-with-m-vfp-d16.xml: Remove.
2863 * features/arm/arm-with-m.c: Remove.
2864 * features/arm/arm-with-m.xml: Remove.
2865 * features/arm/arm-with-neon.c: Remove.
2866 * features/arm/arm-with-neon.xml: Remove.
2867 * features/arm/arm-with-vfpv2.c: Remove.
2868 * features/arm/arm-with-vfpv2.xml: Remove.
2869 * features/arm/arm-with-vfpv3.c: Remove.
2870 * features/arm/arm-with-vfpv3.xml: Remove.
2872 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2874 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
2876 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2878 * arch/aarch32.c (aarch32_create_target_description): Create
2879 target descriptions using features.
2880 * arch/arm.c (arm_create_target_description)
2881 (arm_create_mprofile_target_description): Likewise.
2882 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
2884 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2886 * Makefile.in: Add new files.
2887 * aarch32-tdep.c: New file.
2888 * aarch32-tdep.h: New file.
2889 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
2890 Call aarch32_read_description.
2891 * arch/aarch32.c: New file.
2892 * arch/aarch32.h: New file.
2893 * arch/arm.c (arm_create_target_description)
2894 (arm_create_mprofile_target_description): New function.
2895 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
2896 (arm_create_target_description)
2897 (arm_create_mprofile_target_description): New declaration.
2898 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
2899 read_description functions.
2900 * arm-linux-nat.c (arm_linux_nat_target::read_description):
2902 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
2903 * arm-tdep.c (tdesc_arm_list): New variable.
2904 (arm_register_g_packet_guesses): Call create description functions.
2905 (arm_read_description) (arm_read_mprofile_description): New
2907 * arm-tdep.h (arm_read_description)
2908 (arm_read_mprofile_description): Add declaration.
2909 * configure.tgt: Add new files.
2911 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
2913 * top.c (new_ui_command): Open specified terminal just once.
2915 2019-07-18 Tom Tromey <tromey@adacore.com>
2917 * symtab.c (main_name): Constify return type.
2918 * symfile.c (set_initial_language): Update.
2919 * symtab.h (main_name): Constify return type.
2921 2019-07-17 Tom Tromey <tom@tromey.com>
2923 * tui/tui-winsource.c (tui_update_source_window)
2924 (tui_update_source_window_as_is)
2925 (tui_update_source_windows_with_line): Remove return.
2926 * tui/tui-disasm.c (tui_show_disassem)
2927 (tui_show_disassem_and_update_source): Remove return.
2928 * tui/tui.c (tui_reset): Remove return.
2929 * tui/tui-wingeneral.c
2930 (tui_check_and_display_highlight_if_needed): Remove return.
2932 2019-07-17 Tom Tromey <tom@tromey.com>
2934 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
2936 2019-07-17 Tom Tromey <tom@tromey.com>
2938 * tui/tui-winsource.h (struct tui_exec_info_window)
2939 (struct tui_source_window_base): Move from tui-data.h.
2940 * tui/tui-winsource.c: Move many method definitions from
2941 elsewhere. Remove "structuring" comments.
2942 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
2943 (tui_source_window_base::refresh_window): Move to
2945 * tui/tui-win.c (tui_source_window_base::refresh_all)
2946 (tui_source_window_base::update_tab_width)
2947 (tui_source_window_base::set_new_height)
2948 (tui_source_window_base::do_make_visible_with_new_height): Move to
2950 * tui/tui-source.h: Update.
2951 * tui/tui-source.c (tui_source_window_base::reset): Move to
2953 * tui/tui-disasm.h: Update.
2954 * tui/tui-data.h (struct tui_exec_info_window): Move to
2956 (struct tui_source_window_base): Likewise.
2957 * tui/tui-data.c (tui_source_window_base::clear_detail)
2958 (tui_source_window_base, ~tui_source_window_base): Move to
2961 2019-07-17 Tom Tromey <tom@tromey.com>
2963 * tui/tui-win.c (tui_resize_all)
2964 (tui_source_window_base::update_tab_width)
2965 (tui_adjust_win_heights): Update.
2966 (tui_win_info::make_invisible_and_set_new_height): Rename from
2967 make_invisible_and_set_new_height.
2968 * tui/tui-data.h (struct tui_win_info)
2969 <make_invisible_and_set_new_height>: New method.
2971 2019-07-17 Tom Tromey <tom@tromey.com>
2973 * tui/tui.c: Update.
2974 * tui/tui-source.h (struct tui_source_window): Move from
2976 * tui/tui-layout.c: Update.
2977 * tui/tui-disasm.c: Update.
2978 * tui/tui-data.h (struct tui_source_window): Move to
2981 2019-07-17 Tom Tromey <tom@tromey.com>
2983 * tui/tui-disasm.h (struct tui_disasm_window): Move from
2985 * tui/tui-data.h (struct tui_disasm_window): Move to
2988 2019-07-17 Tom Tromey <tom@tromey.com>
2990 * tui/tui-regs.h (struct tui_data_item_window): Move from
2992 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
2993 * tui/tui-data.h (struct tui_data_item_window): Move to
2995 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
2997 2019-07-17 Tom Tromey <tom@tromey.com>
2999 * tui/tui.c: Update.
3000 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
3001 (tui_cmd_window::max_height): Move to tui-command.c.
3002 * tui/tui-layout.c: Update.
3003 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
3004 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
3006 * tui/tui-command.h (struct tui_cmd_window): Move from
3008 * tui/tui-command.c: Remove "structuring" comments.
3009 (tui_cmd_window::clear_detail)
3010 (tui_cmd_window::do_make_visible_with_new_height)
3011 (tui_cmd_window::max_height): Move from elsewhere.
3013 2019-07-17 Tom Tromey <tom@tromey.com>
3015 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
3017 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
3018 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
3020 2019-07-17 Tom Tromey <tom@tromey.com>
3022 * tui/tui.c: Update.
3023 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
3025 * tui/tui-windata.h: Remove file.
3026 * tui/tui-windata.c: Remove file.
3027 * tui/tui-win.c (tui_data_window::set_new_height)
3028 (tui_data_window::do_make_visible_with_new_height): Move to
3030 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
3031 * tui/tui-regs.c: Remove "structuring" comments.
3032 (tui_data_window::first_data_item_displayed)
3033 (tui_data_window::delete_data_content_windows)
3034 (tui_data_window::erase_data_content)
3035 (tui_data_window::display_all_data)
3036 (tui_data_window::refresh_all)
3037 (tui_data_window::do_scroll_vertical)
3038 (tui_data_window::clear_detail, tui_data_window::set_new_height)
3039 (tui_data_window::do_make_visible_with_new_height)
3040 (tui_data_window::refresh_window): Move from elsewhere.
3041 (_initialize_tui_regs): Move to end of file.
3042 * tui/tui-layout.c: Update.
3043 * tui/tui-hooks.c: Update.
3044 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
3045 * tui/tui-data.c (tui_data_window::clear_detail): Move to
3047 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
3049 2019-07-17 Tom Tromey <tom@tromey.com>
3051 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
3054 2019-07-17 Tom Tromey <tom@tromey.com>
3056 * tui/tui-win.c (tui_source_window_base::set_new_height)
3057 (tui_source_window_base::do_make_visible_with_new_height): Use
3058 m_has_locator field directly.
3059 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
3061 (struct tui_source_window_base) <has_locator>: Likewise.
3063 2019-07-17 Tom Tromey <tom@tromey.com>
3065 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
3067 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
3069 * tui/tui-win.c (tui_source_window_base::set_new_height)
3070 (tui_source_window_base::set_new_height)
3071 (make_invisible_and_set_new_height)
3072 (tui_source_window_base::do_make_visible_with_new_height)
3073 (tui_source_window_base::do_make_visible_with_new_height):
3075 * tui/tui-layout.c (show_source_disasm_command, show_data)
3076 (show_source_or_disasm_and_command): Update.
3077 * tui/tui-layout.c (show_layout): Update.
3079 2019-07-17 Tom Tromey <tom@tromey.com>
3081 * tui/tui-layout.c (make_data_window): Remove.
3082 (show_data): Unify creation and re-initialization cases.
3084 2019-07-17 Tom Tromey <tom@tromey.com>
3086 * tui/tui-layout.c (make_source_window, make_disasm_window):
3088 (show_data): Unify creation and re-initialization cases.
3090 2019-07-17 Tom Tromey <tom@tromey.com>
3092 * tui/tui-layout.c (make_command_window): Remove.
3093 (show_source_disasm_command, show_source_or_disasm_and_command):
3094 Unify creation and re-initialization cases.
3096 2019-07-17 Tom Tromey <tom@tromey.com>
3098 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
3099 creation and re-initialization cases.
3101 2019-07-17 Tom Tromey <tom@tromey.com>
3103 * tui/tui-regs.c (tui_get_register): Return void.
3105 2019-07-17 Tom Tromey <tom@tromey.com>
3107 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
3110 2019-07-17 Tom Tromey <tom@tromey.com>
3112 * tui/tui-layout.c (show_source_disasm_command): Simplify window
3115 2019-07-17 Tom Tromey <tom@tromey.com>
3117 * tui/tui.h (tui_set_layout_by_name): Don't declare.
3118 * tui/tui-regs.c (tui_reg_layout): New function.
3119 (tui_show_registers, tui_reg_command): Use it.
3120 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
3121 (tui_layout_command): Rename from tui_set_layout_by_name. Change
3123 (tui_layout_command): Remove.
3125 2019-07-17 Tom Tromey <tom@tromey.com>
3127 * tui/tui-layout.h (tui/tui-layout): Return void.
3128 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
3130 2019-07-17 Tom Tromey <tom@tromey.com>
3132 * tui/tui-layout.c (show_source_disasm_command, show_data):
3134 (reset_locator): Remove.
3135 (show_source_or_disasm_and_command): Update.
3137 2019-07-17 Tom Tromey <tom@tromey.com>
3139 * tui/tui-source.c (tui_source_window_base::reset): Remove
3141 * tui/tui-layout.c (make_command_window, make_source_window)
3142 (make_disasm_window, make_data_window)
3143 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
3144 (reset_locator, show_source_or_disasm_and_command): Update.
3145 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
3147 (struct tui_source_window_base) <reset>: Likewise.
3149 2019-07-17 Tom Tromey <tom@tromey.com>
3151 * tui/tui-layout.c (show_source_disasm_command): Use
3153 (reset_locator): New function.
3154 (init_and_make_win): Remove.
3155 (show_source_or_disasm_and_command): Use reset_locator.
3157 2019-07-17 Tom Tromey <tom@tromey.com>
3159 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
3161 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
3163 * tui/tui-source.c (tui_source_window_base::reset): New method.
3164 * tui/tui-layout.c (make_command_window): Don't call
3166 (make_source_window, make_disasm_window): Don't call
3167 make_source_or_disasm_window.
3168 (make_data_window): Don't call init_and_make_win. Change calling
3170 (show_source_disasm_command, show_data): Simplify.
3171 (make_source_or_disasm_window): Remove.
3172 (show_source_or_disasm_and_command): Simplify.
3173 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
3174 (struct tui_source_window_base) <reset>: Likewise.
3175 <execution_info>: Remove initializer.
3176 * tui/tui-data.c (tui_source_window_base): Initialize
3179 2019-07-17 Tom Tromey <tom@tromey.com>
3181 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
3184 2019-07-17 Tom Tromey <tom@tromey.com>
3186 * tui/tui.c (tui_rl_other_window): Update.
3187 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
3188 superclass method first. Always iterate over regs_content.
3189 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
3191 * tui/tui-win.c (tui_set_focus_command): Update.
3193 2019-07-17 Tom Tromey <tom@tromey.com>
3195 * tui/tui-win.c (tui_set_focus_command): Rename from
3196 tui_set_focus. Call tui_enable.
3197 (tui_set_focus_command): Remove.
3199 2019-07-17 Tom Tromey <tom@tromey.com>
3201 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
3203 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
3205 (tui_data_window::refresh_window): Call refresh_window on data
3206 items. Always call superclass refresh_window.
3207 (tui_win_info::refresh): Remove.
3208 (tui_source_window_base::refresh_window): Update.
3209 (tui_refresh_all): Update.
3210 * tui/tui-layout.c (show_source_disasm_command): Remove call to
3212 (show_source_or_disasm_and_command): Likewise.
3213 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
3214 (struct tui_source_window_base) <refresh>: Likewise.
3216 2019-07-17 Tom Tromey <tom@tromey.com>
3218 * tui/tui-winsource.c (tui_clear_source_content)
3219 (tui_show_source_content): Update.
3220 * tui/tui-source.c (tui_source_window::showing_source_p): Check
3221 whether content is empty.
3222 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
3225 2019-07-17 Tom Tromey <tom@tromey.com>
3227 * tui/tui-winsource.c (tui_erase_source_content): Clear the
3229 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
3230 * tui/tui-source.c (tui_set_source_content_nil): Remove.
3232 2019-07-17 Tom Tromey <tom@tromey.com>
3234 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
3235 (struct tui_data_item_window): Update.
3237 2019-07-17 Tom Tromey <tom@tromey.com>
3239 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
3240 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
3243 2019-07-17 Tom Tromey <tom@tromey.com>
3245 * tui/tui-winsource.h (tui_erase_source_content)
3246 (tui_clear_source_content): Remove "display_prompt" parameter.
3247 * tui/tui-winsource.c (tui_update_source_window_as_is)
3248 (tui_update_source_windows_with_addr): Update.
3249 (tui_clear_source_content): Remove "display_prompt" parameter.
3250 (tui_erase_source_content): Likewise. Simplify.
3251 (tui_show_source_content): Update.
3252 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3253 * tui/tui-stack.c (tui_show_frame_info): Update.
3254 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
3257 2019-07-17 Tom Tromey <tom@tromey.com>
3259 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3260 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
3262 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
3265 2019-07-17 Tom Tromey <tom@tromey.com>
3267 * tui/tui-winsource.c (tui_clear_source_content)
3268 (tui_show_source_content, tui_show_exec_info_content)
3269 (tui_clear_exec_info_content): Update.
3270 * tui/tui-stack.c (tui_show_locator_content): Update.
3271 (tui_show_frame_info): Update.
3272 * tui/tui-source.h (tui_source_window): Don't declare.
3273 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
3274 from tui_source_is_displayed.
3275 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
3277 (struct tui_source_window_base) <content_in_use>: New field. Now
3279 (struct tui_source_window) <showing_source_p>: New method.
3280 (TUI_SRC_WIN): Change cast.
3281 * tui/tui-data.c (tui_initialize_static_data): Update.
3283 2019-07-17 Tom Tromey <tom@tromey.com>
3285 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
3287 * tui/tui-source.c (tui_source_window::location_matches_p): New
3289 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
3291 * tui/tui-data.h (struct tui_source_window_base)
3292 <location_matches_p>: New method.
3293 (struct tui_source_window, struct tui_disasm_window)
3294 <location_matches_p>: Likewise.
3296 2019-07-17 Tom Tromey <tom@tromey.com>
3298 * tui/tui-win.c (tui_set_win_height_command): Rename from
3300 (tui_set_win_height_command): Remove.
3302 2019-07-17 Tom Tromey <tom@tromey.com>
3304 * tui/tui-source.c (tui_source_window): New constructor. Add
3306 (~tui_source_window): New destructor.
3307 (tui_source_window::style_changed): New method.
3308 * tui/tui-hooks.c (tui_redisplay_source): Remove.
3309 (tui_attach_detach_observers): Update.
3310 * tui/tui-data.h (struct tui_source_window): Make constructor not
3311 inline. Add destructor.
3312 (struct tui_source_window) <style_changed>: New method.
3313 <m_observable>: New member.
3315 2019-07-17 Tom Tromey <tom@tromey.com>
3317 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
3318 * tui/tui-win.c (tui_resize_all): Fix typo.
3320 2019-07-17 Tom Tromey <tom@tromey.com>
3322 * tui/tui-wingeneral.h (tui_refresh_all): Update.
3323 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
3324 (tui_refresh_all): Remove "list" parameter. Use foreach.
3325 * tui/tui-win.c (window_name_completer): Use foreach.
3326 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
3327 (update_tab_width): Likewise.
3328 * tui/tui-layout.c (show_layout): Update.
3329 * tui/tui-data.h (class tui_window_iterator): New.
3330 (struct all_tui_windows): New.
3331 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
3333 2019-07-17 Tom Tromey <tom@tromey.com>
3335 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
3336 parameter. Don't reference globals.
3337 (tui_reg_command): Update.
3339 2019-07-17 Tom Tromey <tom@tromey.com>
3341 * tui/tui-regs.c (tui_show_registers): Simplify.
3343 2019-07-17 Tom Tromey <tom@tromey.com>
3345 * tui/tui-regs.c (tui_show_registers): Update.
3346 (tui_show_register_group): Add win_info parameter.
3348 2019-07-17 Tom Tromey <tom@tromey.com>
3350 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
3351 Rename from tui_display_reg_element_at_line.
3352 (tui_data_window::display_registers_from_line): Update.
3353 * tui/tui-data.h (struct tui_data_window)
3354 <display_reg_element_at_line>: New method.
3356 2019-07-17 Tom Tromey <tom@tromey.com>
3358 * tui/tui-regs.h (tui_display_registers_from)
3359 (tui_display_registers_from_line): Don't declare.
3360 * tui/tui-windata.c (tui_data_window::display_all_data)
3361 (tui_data_window::refresh_all)
3362 (tui_data_window::do_scroll_vertical): Update.
3363 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
3364 from tui_display_registers_from.
3365 (tui_display_reg_element_at_line): Update.
3366 (tui_data_window::display_registers_from_line): Rename from
3367 tui_display_registers_from_line.
3368 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
3369 display_registers_from_line>: New methods.
3371 2019-07-17 Tom Tromey <tom@tromey.com>
3373 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
3374 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
3375 from tui_erase_data_content.
3376 (tui_data_window::display_all_data)
3377 (tui_data_window::refresh_all)
3378 (tui_data_window::do_scroll_vertical): Update.
3379 * tui/tui-regs.c (tui_show_registers): Update.
3380 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
3383 2019-07-17 Tom Tromey <tom@tromey.com>
3385 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
3388 (tui_data_window::delete_data_content_windows): Rename from
3389 tui_delete_data_content_windows.
3390 (tui_data_window::display_all_data)
3391 (tui_data_window::do_scroll_vertical): Update.
3392 * tui/tui-data.h (struct tui_data_window)
3393 <delete_data_content_windows>: New method.
3395 2019-07-17 Tom Tromey <tom@tromey.com>
3397 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
3398 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
3400 2019-07-17 Tom Tromey <tom@tromey.com>
3402 * tui/tui-windata.h (tui_display_all_data): Don't declare.
3403 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
3404 from tui_display_all_data.
3406 (tui_data_window::do_make_visible_with_new_height): Update.
3407 * tui/tui-regs.c (tui_show_registers): Update.
3408 * tui/tui-layout.c (tui_set_layout): Update.
3409 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
3412 2019-07-17 Tom Tromey <tom@tromey.com>
3414 * tui/tui-windata.h (tui_display_data_from): Don't declare.
3415 * tui/tui-windata.c (tui_display_data_from): Remove.
3416 (tui_data_window::refresh_all): Update.
3418 2019-07-17 Tom Tromey <tom@tromey.com>
3420 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
3421 * tui/tui-windata.c (tui_display_data_from_line): Remove.
3422 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
3423 tui_display_registers_from_line.
3424 * tui/tui-regs.h (tui_display_registers_from_line): Update.
3425 * tui/tui-regs.c (tui_display_registers_from_line): Remove
3426 "force_display" parameter.
3428 2019-07-17 Tom Tromey <tom@tromey.com>
3430 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
3432 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
3433 Rename from tui_first_reg_element_no_inline.
3434 (tui_display_reg_element_at_line)
3435 (tui_display_registers_from_line): Update.
3436 * tui/tui-data.h (struct tui_data_window)
3437 <first_reg_element_no_inline>: New method.
3439 2019-07-17 Tom Tromey <tom@tromey.com>
3441 * tui/tui-windata.c (tui_display_data_from)
3442 (tui_data_window::do_scroll_vertical): Update.
3443 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
3444 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
3445 Rename from tui_line_from_reg_element_no.
3446 (tui_display_registers_from_line): Update.
3447 * tui/tui-data.h (struct tui_data_window)
3448 <line_from_reg_element_no>: New method.
3450 2019-07-17 Tom Tromey <tom@tromey.com>
3452 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
3453 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
3454 tui_last_regs_line_no.
3455 (tui_display_reg_element_at_line)
3456 (tui_display_registers_from_line): Update.
3457 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
3460 2019-07-17 Tom Tromey <tom@tromey.com>
3463 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
3464 (tui_update_breakpoint_info): Add "being_deleted" parameter.
3465 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3466 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
3467 (tui_update_breakpoint_info): Likewise.
3468 * tui/tui-hooks.c (tui_event_create_breakpoint)
3469 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
3472 2019-07-17 Tom Tromey <tom@tromey.com>
3474 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
3476 2019-07-17 Tom Tromey <tom@tromey.com>
3478 * tui/tui-winsource.c (tui_update_source_window_as_is)
3479 (tui_update_source_windows_with_addr): Update.
3480 * tui/tui-source.h (tui_set_source_content)
3481 (tui_show_symtab_source): Add "win_info" parameter.
3482 * tui/tui-source.c (tui_set_source_content): Add "win_info"
3484 (tui_show_symtab_source): Likewise.
3486 2019-07-17 Tom Tromey <tom@tromey.com>
3488 * tui/tui-wingeneral.c
3489 (tui_check_and_display_highlight_if_needed): Check can_highlight.
3491 2019-07-17 Tom Tromey <tom@tromey.com>
3493 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
3494 (struct tui_cmd_window) <can_scroll>: New method.
3495 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
3498 2019-07-17 Tom Tromey <tromey@adacore.com>
3500 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
3501 do_field_signed>: Rename. Change type of "value".
3502 * ui-out.c (ui_out::field_signed): Rename from field_int.
3503 Change type of "value".
3504 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
3506 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
3507 do_field_int. Change type of "value".
3508 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
3509 do_field_int. Change type of "value".
3510 * tracepoint.c (trace_status_mi, tfind_1)
3511 (print_one_static_tracepoint_marker): Update.
3512 * thread.c (print_thread_info_1, print_selected_thread_frame):
3514 * stack.c (print_frame, print_frame_info): Update.
3515 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
3517 * source.c (print_source_lines_base): Update.
3518 * skip.c (info_skip_command): Update.
3519 * record-btrace.c (btrace_ui_out_decode_error)
3520 (btrace_call_history_src_line): Update.
3521 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
3523 * progspace.c (print_program_space): Update.
3524 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
3525 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
3526 do_field_int. Change type of "value".
3527 * mi/mi-out.c (mi_ui_out::do_table_begin)
3528 (mi_ui_out::do_table_header): Update.
3529 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
3531 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
3532 (mi_cmd_data_list_changed_registers, output_register)
3533 (mi_cmd_data_read_memory, mi_load_progress)
3534 (mi_cmd_trace_frame_collected): Update.
3535 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
3537 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3538 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
3539 (mi_cmd_var_list_children, varobj_update_one): Update.
3540 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
3541 (mi_cmd_stack_list_args, list_arg_or_local): Update.
3542 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
3543 * inferior.c (print_inferior): Update.
3544 * gdb_bfd.c (print_one_bfd): Update.
3545 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3547 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
3548 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
3549 do_field_int. Change type of "value".
3550 * cli-out.c (cli_ui_out::do_field_signed): Rename from
3551 do_field_int. Change type of "value".
3552 * breakpoint.c (watchpoint_check, print_breakpoint_location)
3553 (print_one_breakpoint_location, print_it_catch_fork)
3554 (print_one_catch_fork, print_it_catch_vfork)
3555 (print_one_catch_vfork, print_it_catch_solib)
3556 (print_it_catch_exec, print_it_ranged_breakpoint)
3557 (print_mention_watchpoint, print_mention_masked_watchpoint)
3558 (bkpt_print_it, update_static_tracepoint): Update.
3559 * break-catch-throw.c (print_it_exception_catchpoint): Update.
3560 * break-catch-syscall.c (print_it_catch_syscall): Update.
3561 * ada-tasks.c (print_ada_task_info): Update.
3562 * ada-lang.c (print_it_exception, print_mention_exception):
3565 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3567 PR breakpoints/24541
3568 * gdbarch.c: Regenerate.
3569 * gdbarch.h: Regenerate.
3570 * gdbarch.sh: Adjust return type and parameter types for
3571 'stap_adjust_register'.
3572 (i386_stap_adjust_register): Adjust signature and return new
3574 * stap-probe.c (stap_parse_register_operand): Adjust use of
3575 'gdbarch_stap_adjust_register'.
3577 2019-07-17 Tom Tromey <tromey@adacore.com>
3579 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
3581 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
3583 (struct s390_process_info): Add initializers.
3584 (s390_add_process): Use new.
3585 (s390_linux_nat_target::low_forget_process): Use delete.
3586 (s390_linux_nat_target::low_new_fork)
3587 (s390_linux_nat_target::stopped_by_watchpoint)
3588 (s390_linux_nat_target::low_prepare_to_resume)
3589 (s390_linux_nat_target::insert_watchpoint)
3590 (s390_linux_nat_target::insert_hw_breakpoint)
3591 (s390_linux_nat_target::remove_watchpoint)
3592 (s390_linux_nat_target::remove_hw_breakpoint): Update.
3594 2019-07-16 John Baldwin <jhb@FreeBSD.org>
3596 * aarch64-fbsd-nat.c: Include regcache.h.
3597 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
3599 (aarch64_fbsd_nat_target::fetch_registers)
3600 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
3602 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
3604 2019-07-16 John Baldwin <jhb@FreeBSD.org>
3606 * fbsd-nat.c: Include gdbarch.h.
3608 2019-07-15 Tom Tromey <tromey@adacore.com>
3610 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
3612 2019-07-15 Tom Tromey <tromey@adacore.com>
3614 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
3615 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
3616 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
3617 * cli-out.c (cli_ui_out::do_field_int): New method.
3618 * ui-out.c (ui_out::field_unsigned): New method.
3619 * symfile.c (generic_load): Use field_unsigned.
3620 (print_transfer_performance): Likewise.
3621 * record-btrace.c (ui_out_field_uint): Remove.
3622 (btrace_call_history_insn_range, btrace_call_history): Use
3624 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
3626 * ui-out.h (class ui_out) <field_unsigned>: New method.
3627 <do_field_unsigned>: Likewise.
3629 2019-07-15 Tom Tromey <tromey@adacore.com>
3631 * mi/mi-main.c (list_available_thread_groups): Use field_string.
3632 * mi/mi-interp.c (mi_memory_changed): Use field_string.
3633 * target.c (flash_erase_command): Use field_string.
3634 * infrun.c (print_signal_received_reason): Use field_string.
3635 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
3636 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
3638 * ada-tasks.c (print_ada_task_info): Use field_string.
3640 2019-07-15 Tom Tromey <tromey@adacore.com>
3642 * target.c (flash_erase_command): Use field_core_addr.
3643 * symfile.c (generic_load): Use field_core_addr.
3644 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3645 Use field_core_addr.
3646 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
3649 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3651 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
3652 value if its desired type is smaller than a CORE_ADDR and signed.
3654 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3656 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
3657 of changes to field names, and use new is_reference field to
3658 decide if a property is a reference or not.
3659 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
3661 (struct dwarf2_property_baton): Update header comment, rename
3662 'referenced_type' to 'property_type' and update comments.
3663 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
3664 default property type, store in property baton, update to take
3665 accound of renamed field.
3666 (read_func_scope): Update call to attr_to_dynamic_prop.
3667 (read_array_type): Likewise.
3668 (dwarf2_per_cu_addr_sized_int_type): New function.
3669 (read_subrange_index_type): Move type finding code to
3670 dwarf2_per_cu_addr_sized_int_type.
3671 (read_subrange_type): Update calls to attr_to_dynamic_prop.
3672 (dwarf2_per_cu_addr_type): New function.
3673 (set_die_type): Update calls to attr_to_dynamic_prop.
3675 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3677 * dwarf2read.c (read_subrange_index_type): New function.
3678 (read_subrange_type): Move code into new function and call it.
3679 * gdbtypes.c (create_range_type): Add some asserts.
3681 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3683 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
3684 update return statements.
3685 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
3686 declaration, and update comment to match.
3687 * gdbtypes.c (resolve_dynamic_array): Update call to
3688 dwarf2_evaluate_property to match new return type.
3690 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3692 * valarith.c (value_subscripted_rvalue): Change lowerbound
3693 parameter type from int to LONGEST.
3694 * value.h (value_subscripted_rvalue): Likewise in declaration.
3696 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3698 * cli/cli-utils.c (info_print_command_completer): New function.
3699 * cli/cli-utils.h: Add 'completer.h' include, and forward
3700 declaration for 'struct cmd_list_element'.
3701 (info_print_command_completer): Declare.
3702 * stack.c (_initialize_stack): Add completer for 'info locals' and
3704 * symtab.c (_initialize_symtab): Add completer for 'info
3705 variables' and 'info functions'.
3706 * NEWS: Mention completion for additional info commands.
3708 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3710 * cli/cli-utils.c (extract_info_print_args): Delete.
3711 (extract_arg_maybe_quoted): Delete.
3712 (info_print_options_defs): New variable.
3713 (make_info_print_options_def_group): New function.
3714 (extract_info_print_options): Define new function.
3715 * cli/cli-utils.h (extract_info_print_args): Delete.
3716 (struct info_print_options): New structure.
3717 (extract_info_print_options): Declare new function.
3718 * stack.c (info_locals_command): Update to use new
3719 extract_info_print_options, also add a header comment.
3720 (info_args_command): Likewise.
3721 * symtab.c (info_variables_command): Likewise.
3722 (info_functions_command): Likewise.
3724 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3726 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
3727 to extract string arguments.
3728 * common/common-utils.c (extract_string_maybe_quoted): New function.
3729 * common/common-utils.h (extract_string_maybe_quoted): Declare.
3731 2019-07-11 Tom Tromey <tromey@adacore.com>
3733 * main.c (get_init_files): Use GDBINIT, not gdbinit.
3734 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
3735 * top.h (gdbinit): Don't declare.
3736 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
3738 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
3739 * top.c (gdb_init): Don't call init_cli_cmds.
3741 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
3743 2019-07-11 Tom Tromey <tromey@adacore.com>
3745 * python/py-inferior.c (add_thread_object): Don't use thread_obj
3746 after it has been moved.
3748 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3750 * valops.c (value_must_coerce_to_target): Change return type to
3752 * value.h (value_must_coerce_to_target): Likewise.
3754 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
3756 * breakpoint.c (is_hardware_watchpoint): Remove
3757 forward-declaration.
3758 (is_masked_watchpoint): Change return type to bool.
3759 (is_tracepoint): Likewise.
3760 (is_breakpoint): Likewise.
3761 (is_hardware_watchpoint): Likewise.
3762 (is_watchpoint): Likewise.
3763 (is_no_memory_software_watchpoint): Likewise.
3764 (is_catchpoint): Likewise.
3765 (breakpoint_1): Make FILTER parameter's return type bool.
3766 is_masked_watchpoint): Change return type to bool.
3767 (save_breakpoints): Make FILTER parameter's return type bool.
3768 * breakpoint.h (is_breakpoint): Change return type to bool.
3769 (is_watchpoint): Likewise.
3770 (is_catchpoint): Likewise.
3771 (is_tracepoint): Likewise.
3773 2019-07-10 Tom Tromey <tom@tromey.com>
3775 * defs.h: Don't include gdbarch.h.
3776 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
3777 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
3778 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
3779 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
3780 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
3781 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
3782 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
3783 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
3784 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
3785 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
3786 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
3787 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
3788 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
3789 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
3790 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
3791 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
3792 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
3793 record-btrace.c, record.h, regcache-dump.c, regcache.h,
3794 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
3795 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
3796 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
3797 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
3798 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
3799 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
3800 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
3801 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
3802 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
3804 2019-07-10 Tom Tromey <tromey@adacore.com>
3806 * ada-lang.h (is_ada_exception_catchpoint): Declare.
3807 * breakpoint.c (init_ada_exception_breakpoint): Register as
3809 (print_one_breakpoint_location, print_one_breakpoint): Use
3810 is_ada_exception_catchpoint.
3811 * ada-lang.c (class ada_catchpoint_location): Pass
3812 bp_loc_software_breakpoint to bp_location constructor.
3813 (is_ada_exception_catchpoint): New function.
3815 2019-07-10 Tom Tromey <tromey@adacore.com>
3817 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
3819 (struct arm_exidx_entry): New method operator<.
3820 (struct arm_exidx_data) <section_maps>: Change type.
3821 (arm_exidx_data_free): Remove.
3822 (arm_exidx_data_key): Change type. Move lower.
3823 (arm_exidx_new_objfile): Update.
3824 (arm_compare_exidx_entries): Remove.
3825 (arm_find_exidx_entry, _initialize_arm_tdep)
3827 2019-07-10 Tom Tromey <tromey@adacore.com>
3829 * solib-spu.c (ocl_program_data_key): Change type.
3830 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
3833 2019-07-10 Tom Tromey <tromey@adacore.com>
3835 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
3836 (struct solib_aix_inferior_data) <library_list>: Change type.
3837 (solib_aix_inferior_data_handle): Change type.
3838 (get_solib_aix_inferior_data): Update.
3839 (solib_aix_free_library_list): Remove.
3840 (library_list_start_library): Update.
3841 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
3843 (solib_aix_get_library_list)
3844 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
3845 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
3847 2019-07-10 Tom Tromey <tromey@adacore.com>
3849 * solib-dsbt.c (struct dsbt_info): Add initializers.
3850 (solib_dsbt_pspace_data): Change type.
3851 (dsbt_pspace_data_cleanup): Remove.
3852 (get_dsbt_info, _initialize_dsbt_solib): Update.
3854 2019-07-10 Tom Tromey <tromey@adacore.com>
3856 * spu-tdep.c (spu_overlay_data): Change type.
3857 (spu_get_overlay_table, spu_overlay_new_objfile)
3858 (_initialize_spu_tdep): Update.
3860 2019-07-10 Tom Tromey <tromey@adacore.com>
3862 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
3864 (dbx_objfile_data_key): Change type and declare later.
3865 (DBX_SYMFILE_INFO): Rewrite.
3866 * dbxread.c (dbx_objfile_data_key): Change type.
3867 (dbx_symfile_init): Update.
3868 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
3869 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3870 (stabsect_build_psymtabs, _initialize_dbxread): Update.
3872 2019-07-10 Tom Tromey <tromey@adacore.com>
3874 * jit.c (jit_program_space_key): Change type. Move lower.
3875 (get_jit_program_space_data): Update.
3876 (jit_program_space_data_cleanup): Remove.
3877 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
3879 (struct jit_program_space_data): Add initializers.
3881 2019-07-10 Tom Tromey <tromey@adacore.com>
3883 * solib-darwin.c (struct darwin_info): Add initializers.
3884 (solib_darwin_pspace_data): Change type.
3885 (darwin_pspace_data_cleanup): Remove.
3886 (get_darwin_info, _initialize_darwin_solib): Update.
3888 2019-07-10 Tom Tromey <tromey@adacore.com>
3890 * remote-sim.c (struct sim_inferior_data): Add initializers,
3891 constructor, and destructor.
3892 (sim_inferior_data_key): Change type. Move lower.
3893 (check_for_duplicate_sim_descriptor): Update.
3894 (get_sim_inferior_data): Use new. Update.
3895 (~sim_inferior_data_cleanup): Rename from
3896 sim_inferior_data_cleanup. Simplify.
3897 (gdbsim_close_inferior, simulator_command)
3898 (sim_command_completer, _initialize_remote_sim): Update.
3899 (next_pid, INITIAL_PID): Move earlier.
3901 2019-07-10 Tom Tromey <tromey@adacore.com>
3903 * python/python-internal.h (create_thread_object): Return
3905 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
3906 * python/py-inferior.c (struct threadlist_entry): Add
3908 <thread_obj>: Now a gdbpy_ref.
3909 (thread_to_thread_object): Update.
3910 (add_thread_object): Use new.
3911 (delete_thread_object): Use delete.
3912 (infpy_threads): Update.
3913 (py_free_inferior): Update. Construct "inf_obj" after acquiring
3916 2019-07-10 Tom Tromey <tromey@adacore.com>
3918 * valops.c (value_cast): Specialize error message for Ada.
3920 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3922 * breakpoint.c (breakpoint_1): Update doc and parameter names.
3924 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3926 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
3927 bpstat_should_step): Return bool, adjust comments.
3928 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
3929 bpstat_should_step): Likewise.
3931 2019-07-10 Alan Hayward <alan.hayward@arm.com>
3933 * features/Makefile: Use feature target descriptions for Arm.
3934 * features/arm/arm-core.c: Generate new file.
3935 * features/arm/arm-fpa.c: Likewise.
3936 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
3937 * features/arm/arm-m-profile.c: Likewise.
3938 * features/arm/arm-vfpv2.c: Likewise.
3939 * features/arm/arm-vfpv3.c: Likewise.
3940 * features/arm/xscale-iwmmxt.c: Likewise.
3941 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
3943 2019-07-10 Alan Hayward <alan.hayward@arm.com>
3945 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
3948 2019-07-10 Alan Hayward <alan.hayward@arm.com>
3950 * features/aarch64-pauth.c: Regenerate.
3952 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
3954 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
3956 (bpstat_what): Use false instead of 0.
3958 2019-07-09 Pedro Alves <palves@redhat.com>
3960 * break-catch-throw.c (is_exception_catchpoint): New.
3961 * breakpoint.c (print_one_breakpoint_location): New parameter
3962 'raw_loc'. Handle it. Use
3963 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
3964 looking at the breakpoint's type.
3965 (print_one_breakpoint): If handling "maint info breakpoints", also
3966 print locations of exception catchpoints.
3967 * breakpoint.h (is_exception_catchpoint): Declare.
3969 2019-07-09 Pedro Alves <palves@redhat.com>
3971 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
3973 (allocate_location_exception_catchpoint): New.
3974 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
3975 (initialize_throw_catchpoint_ops): Install
3976 allocate_location_exception_catchpoint as allocate_location
3978 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
3979 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
3981 (breakpoint_address_is_meaningful): Delete.
3982 (bl_address_is_meaningful): New.
3983 (breakpoint_locations_match): Adjust comment.
3984 (bp_location_from_bp_type): New, factored out of...
3985 (bp_location::bp_location(breakpoint *)): ... this.
3986 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
3988 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
3989 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
3990 breakpoint_address_is_meaningful.
3991 (bp_locations_compare): Adjust comment.
3992 (update_global_location_list): Use bl_address_is_meaningful
3993 instead of breakpoint_address_is_meaningful.
3994 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
3996 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
3997 * python/py-breakpoint.c (bppy_get_location): No longer check
3998 whether location is null.
4000 2019-07-09 Pedro Alves <palves@redhat.com>
4003 * breakpoint.c (print_one_breakpoint_location): Remove
4004 single-location assert.
4006 2019-07-09 Tom Tromey <tom@tromey.com>
4008 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
4009 * configure: Rebuild.
4010 * configure.ac: Change common to gdbsupport.
4011 * gdbsupport: Rename from common.
4012 * acinclude.m4: Change common to gdbsupport.
4013 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
4014 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
4016 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
4017 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
4018 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
4019 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
4020 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
4021 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
4022 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
4023 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
4024 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
4025 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
4026 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
4027 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
4028 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
4029 coff-pe-read.c, command.h, compile/compile-c-support.c,
4030 compile/compile-c.h, compile/compile-cplus-symbols.c,
4031 compile/compile-cplus-types.c, compile/compile-cplus.h,
4032 compile/compile-loc2c.c, compile/compile.c, completer.c,
4033 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
4034 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
4035 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
4036 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
4037 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
4038 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
4039 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
4040 features/aarch64-core.c, features/aarch64-fpu.c,
4041 features/aarch64-pauth.c, features/aarch64-sve.c,
4042 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
4043 features/i386/32bit-core.c, features/i386/32bit-linux.c,
4044 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
4045 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
4046 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
4047 features/i386/64bit-core.c, features/i386/64bit-linux.c,
4048 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
4049 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
4050 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
4051 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
4052 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
4053 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
4054 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
4055 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
4056 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
4057 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
4058 go32-nat.c, guile/guile.c, guile/scm-ports.c,
4059 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
4060 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
4061 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
4062 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
4063 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
4064 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
4065 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
4066 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
4067 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
4068 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
4069 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
4070 minsyms.c, mips-linux-tdep.c, namespace.h,
4071 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
4072 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
4073 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
4074 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
4075 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
4076 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
4077 nat/linux-waitpid.c, nat/mips-linux-watch.c,
4078 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
4079 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
4080 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
4081 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
4082 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
4083 procfs.c, producer.c, progspace.h, psymtab.h,
4084 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
4085 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
4086 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
4087 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
4088 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
4089 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
4090 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
4091 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
4092 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
4093 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
4094 target-memory.c, target.c, target.h, target/waitstatus.c,
4095 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
4096 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
4097 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
4098 unittests/array-view-selftests.c,
4099 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
4100 unittests/common-utils-selftests.c,
4101 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
4102 unittests/format_pieces-selftests.c,
4103 unittests/function-view-selftests.c,
4104 unittests/lookup_name_info-selftests.c,
4105 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
4106 unittests/mkdir-recursive-selftests.c,
4107 unittests/observable-selftests.c,
4108 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
4109 unittests/parse-connection-spec-selftests.c,
4110 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
4111 unittests/scoped_fd-selftests.c,
4112 unittests/scoped_mmap-selftests.c,
4113 unittests/scoped_restore-selftests.c,
4114 unittests/string_view-selftests.c, unittests/style-selftests.c,
4115 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
4116 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
4117 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
4118 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
4119 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
4120 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
4122 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4124 * linespec.c (decode_digits_list_mode): Set explicit_line to a
4126 (decode_digits_ordinary): Set explicit_line field in sal.
4127 * symtab.c (skip_prologue_sal): Don't skip prologue for a
4128 symtab_and_line that was set on an explicit line number in
4129 assembler code. Do always update the recorded symtab and line if
4130 we do skip the prologue.
4132 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4134 * breakpoint.c (set_breakpoint_location_function): Remove
4135 explicit_loc parameter.
4136 (momentary_breakpoint_from_master): Update call to
4137 set_breakpoint_location_function.
4138 (add_location_to_breakpoint): Likewise.
4140 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4142 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
4143 required features based on default bfd type when no specific bfd
4146 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4148 * NEWS: Mention that GDB printf and eval commands can now print
4149 C-style and Ada-style convenience var strings without
4150 calling the inferior.
4151 * printcmd.c (printf_c_string): Locally print GDB internal var
4152 instead of transiting via the inferior.
4153 (printf_wide_c_string): Likewise.
4155 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4157 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
4159 2019-07-04 Tom Tromey <tom@tromey.com>
4162 * tui/tui-winsource.c (tui_clear_source_content): Update.
4163 (tui_source_window_base::set_is_exec_point_at): Fix comment.
4164 (tui_update_breakpoint_info): Update.
4165 (tui_set_exec_info_content): Update.
4166 * tui/tui-source.c (tui_set_source_content_nil): Update.
4167 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
4169 * tui/tui-data.h (enum tui_bp_flag): New.
4170 (tui_bp_flags): New enum flags type.
4171 (struct tui_source_element) <break_mode>: Change type. Rename
4173 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
4174 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
4176 * tui/tui-winsource.h: Fix comment.
4178 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4180 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
4181 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
4182 (store_fpregs_to_thread)
4183 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
4184 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
4185 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
4186 (IWMMXT_REGS_SIZE): Add define.
4187 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
4188 (fetch_vfp_regs, store_vfp_regs)
4189 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
4190 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
4192 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4194 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
4196 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
4197 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
4198 (ARM_INT_REGISTER_SIZE): ...to this.
4199 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
4200 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
4201 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
4202 (arm_linux_collect_gregset, supply_nwfpe_register)
4203 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
4205 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
4206 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
4207 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
4208 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
4209 (arm_return_in_memory, arm_store_return_value)
4210 (arm_get_longjmp_target, arm_register_g_packet_guesses)
4211 (arm_record_ld_st_multiple): Likewise.
4212 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
4213 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
4215 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4217 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
4218 AARCH64_DISPLACED_MODIFIED_INSNS.
4219 * aarch64-tdep.c (struct aarch64_displaced_step_data)
4220 (aarch64_displaced_step_copy_insn): Likewise.
4221 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
4222 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
4223 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
4224 ARM_DISPLACED_MODIFIED_INSNS.
4225 * arm-tdep.c (arm_gdbarch_init): Likewise.
4226 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
4227 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
4228 (struct arm_displaced_step_closure): Use
4229 ARM_DISPLACED_MODIFIED_INSNS.
4231 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4233 * features/Makefile: Remove unused xml files.
4234 * features/aarch64.xml: Remove.
4235 * features/i386/amd64-avx-avx512-linux.xml: Remove.
4236 * features/i386/amd64-avx-avx512.xml: Remove.
4237 * features/i386/amd64-avx-linux.xml: Remove.
4238 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
4239 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
4240 * features/i386/amd64-avx-mpx-linux.xml: Remove.
4241 * features/i386/amd64-avx-mpx.xml: Remove.
4242 * features/i386/amd64-avx.xml: Remove.
4243 * features/i386/amd64-linux.xml: Remove.
4244 * features/i386/amd64-mpx-linux.xml: Remove.
4245 * features/i386/amd64-mpx.xml: Remove.
4246 * features/i386/amd64.xml: Remove.
4247 * features/i386/i386-avx-avx512-linux.xml: Remove.
4248 * features/i386/i386-avx-avx512.xml: Remove.
4249 * features/i386/i386-avx-linux.xml: Remove.
4250 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
4251 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
4252 * features/i386/i386-avx-mpx-linux.xml: Remove.
4253 * features/i386/i386-avx-mpx.xml: Remove.
4254 * features/i386/i386-avx.xml: Remove.
4255 * features/i386/i386-linux.xml: Remove.
4256 * features/i386/i386-mmx-linux.xml: Remove.
4257 * features/i386/i386-mmx.xml: Remove.
4258 * features/i386/i386-mpx-linux.xml: Remove.
4259 * features/i386/i386-mpx.xml: Remove.
4260 * features/i386/i386.xml: Remove.
4261 * features/i386/x32-avx-avx512-linux.xml: Remove.
4262 * features/i386/x32-avx-linux.xml: Remove.
4263 * features/i386/x32-linux.xml: Remove.
4265 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4267 * regformats/aarch64.dat: Remove.
4268 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
4269 * regformats/i386/amd64-avx-linux.dat: Remove.
4270 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
4271 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
4272 * regformats/i386/amd64-linux.dat: Remove.
4273 * regformats/i386/amd64-mpx-linux.dat: Remove.
4274 * regformats/i386/amd64.dat: Remove.
4275 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
4276 * regformats/i386/i386-avx-linux.dat: Remove.
4277 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
4278 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
4279 * regformats/i386/i386-linux.dat: Remove.
4280 * regformats/i386/i386-mmx-linux.dat: Remove.
4281 * regformats/i386/i386-mpx-linux.dat: Remove.
4282 * regformats/i386/i386.dat: Remove.
4283 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
4284 * regformats/i386/x32-avx-linux.dat: Remove.
4285 * regformats/i386/x32-linux.dat: Remove.
4287 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4289 * aarch64-tdep.c: Remove xml self tests.
4290 * amd64-linux-tdep.c: Likewise.
4291 * amd64-tdep.c: Likewise.
4292 * i386-linux-tdep.c: Likewise.
4293 * i386-tdep.c: Likewise.
4295 2019-07-03 Pedro Alves <palves@redhat.com>
4298 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
4299 (pipe_cmd_option_defs): New.
4300 (make_pipe_cmd_options_def_group): New.
4301 (pipe_command): Use gdb::option::process_options.
4302 (pipe_command_completer): New function.
4303 (_initialize_cli_cmds): Install completer for "pipe" command.
4305 2019-07-03 Pedro Alves <palves@redhat.com>
4307 * cli/cli-option.c (union option_value) <string>: New field.
4308 (struct option_def_and_value): Add ctor, move ctor, dtor and
4309 use DISABLE_COPY_AND_ASSIGN.
4310 (option_def_and_value::clear_value): New.
4311 (parse_option, save_option_value_in_ctx, get_val_type_str)
4312 (add_setshow_cmds_for_options): Handle var_string.
4313 * cli-option.h (union option_def::var_address) <string>: New
4315 (struct string_option_def): New.
4316 * maint-test-options.c (struct test_options_opts): Add default
4317 ctor and use DISABLE_COPY_AND_ASSIGN.
4318 <string_opt>: New field.
4319 (test_options_opts::~test_options_opts): New.
4320 (test_options_opts::dump): Also dump "-string".
4321 (test_options_option_defs): Install "string.
4323 2019-07-03 Pedro Alves <palves@redhat.com>
4325 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
4326 option_value with a null enumeration.
4327 (complete_options): Save the option values in the context.
4328 (save_option_value_in_ctx): New, factored out from ...
4329 (process_options): ... here.
4330 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
4332 * maint-test-options.c (test_options_opts::dump): New, factored
4334 (maintenance_test_options_command_mode): ... here.
4335 (maintenance_test_options_command_completion_result): Delete.
4336 (maintenance_test_options_command_completion_text): Update
4338 (maintenance_show_test_options_completion_result): Change
4339 prototype. Just print
4340 maintenance_test_options_command_completion_text.
4341 (save_completion_result): New.
4342 (maintenance_test_options_completer_mode): Pass options context to
4343 complete_options, and then save a dump.
4344 (_initialize_maint_test_options): Use add_cmd to install "maint
4345 show test-options-completion-result".
4347 2019-07-03 Pedro Alves <palves@redhat.com>
4349 * NEWS (New commands): Mention "with" and "maint with".
4350 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
4351 (with_command, with_command_completer): New.
4352 (pipe_command): Adjust to new repeat_previous
4354 (_initialize_cli_cmds): Install the "with" command and its "w"
4356 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
4358 * cli/cli-setshow.c (parse_cli_var_uinteger)
4359 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
4360 argument strings for all var_types.
4361 (get_setshow_command_value_string): New, factored out from ...
4362 (do_show_command): ... this.
4363 * cli/cli-setshow.h: Include <string>.
4364 (get_setshow_command_value_string): Declare.
4365 * command.h (repeat_previous): Now returns const char *. Adjust
4367 * maint.c: Include "cli/cli-cmds.h".
4368 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
4369 (_initialize_maint_cmds): Register the "maintenance with" command.
4370 * top.c (repeat_previous): Move bits from pipe_command here:
4371 Return the saved command line, if any; error out if there's no
4372 command to relaunch.
4374 2019-07-03 Pedro Alves <palves@redhat.com>
4376 * NEWS (New commands): Mention "maint set/show test-settings"
4377 instead of "maint test-settings".
4378 * maint-test-settings.c (maintenance_test_settings_list): Delete.
4379 (maintenance_test_settings_set_list): Rename to ...
4380 (maintenance_set_test_settings_list): ... this.
4381 (maintenance_test_settings_show_list): Rename to ...
4382 (maintenance_show_test_settings_list): ... this.
4383 (maintenance_test_settings_cmd): Delete.
4384 (maintenance_test_settings_set_cmd): ...
4385 (maintenance_set_test_settings_cmd): ... this.
4386 (maintenance_test_settings_show_cmd): ...
4387 (maintenance_show_test_settings_cmd): ... this.
4388 (maintenance_test_settings_show_value_cmd):
4389 (maintenance_show_test_settings_value_cmd): ... this.
4390 (_initialize_maint_test_settings): No longer install the "maint
4391 test-settings" prefix command. Rename "maint test-settings set"
4392 to "maint set test-settings", and "maint test-settings show" to
4393 "maint show test-settings". Adjust all subcommands.
4395 2019-07-03 Pedro Alves <palves@redhat.com>
4397 * maint-test-settings.c: Fix file's intro comment. Replace all
4398 references to "test-options" with references to "test-settings",
4401 2019-07-03 Pedro Alves <palves@redhat.com>
4403 * maint-test-settings.c (maintenance_test_settings_xxx)
4404 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
4406 (maintenance_test_settings_enums): Use them.
4407 (maintenance_test_settings_enum): Default to
4408 maintenance_test_settings_xxx.
4409 (_initialize_maint_test_settings): Initialize
4410 MAINTENANCE_TEST_SETTINGS_FILENAME.
4412 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4414 * breakpoint.h (remove_breakpoints_inf): Change return type to
4415 void, move function documentation here.
4416 * breakpoint.c (remove_breakpoints_inf): Change return type to
4417 void, move function documentation to header.
4419 2019-07-02 Pedro Alves <palves@redhat.com>
4421 * NEWS (Completion improvements): Mention "info threads".
4422 * thread.c (struct info_threads_opts, info_threads_option_defs)
4423 (make_info_threads_options_def_group): New.
4424 (info_threads_command): Use gdb::option::process_options.
4425 (info_threads_command_completer): New.
4426 (_initialize_thread): Use gdb::option::build_help to build the
4427 help text for "info threads".
4429 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4431 * defs.h (generic_load): Move from here...
4432 * symfile.h (generic_load): ... to here. Rename name parameter
4434 * symfile.c (generic_load): Add comment.
4436 2019-07-01 Tom Tromey <tromey@adacore.com>
4439 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
4440 declaration of without_params. Fix formatting.
4442 2019-07-01 Tom Tromey <tromey@adacore.com>
4444 * ada-exp.y (find_primitive_type): Update.
4445 * ada-lang.h (ada_lookup_symbol): Update.
4446 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
4448 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
4450 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
4452 PR breakpoints/24541
4453 * gdbarch.c: Regenerate.
4454 * gdbarch.h: Regenerate.
4455 * gdbarch.sh: Add 'stap_adjust_register'.
4456 * i386-tdep.c: Include '<unordered_set>'.
4457 (i386_stap_adjust_register): New function.
4458 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
4459 * stap-probe.c (stap_parse_register_operand): Call
4460 'gdbarch_stap_adjust_register'.
4462 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
4465 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
4466 * python/python.c (do_start_initialization): Use 'xmalloc'
4467 instead of 'PyMem_Malloc'.
4469 2019-06-28 Tom Tromey <tromey@adacore.com>
4471 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
4474 2019-06-27 Tom Tromey <tromey@adacore.com>
4476 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
4478 (arm_find_mapping_symbol, arm_record_special_symbol)
4479 (_initialize_arm_tdep): Update.
4480 (arm_objfile_data_free): Remove.
4482 2019-06-27 Tom Tromey <tromey@adacore.com>
4484 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
4485 to cp_print_static_field.
4487 2019-06-26 Tom Tromey <tromey@adacore.com>
4489 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
4490 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
4493 2019-06-26 Alan Hayward <alan.hayward@arm.com>
4495 * features/aarch64-core.c (create_feature_aarch64_core):
4497 * features/aarch64-core.xml: Add cpsr flags.
4499 2019-06-26 Alan Hayward <alan.hayward@arm.com>
4501 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
4502 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
4504 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
4506 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
4508 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
4510 (arm_record_special_symbol): Don't insert new symbol in sorted
4511 position, push it at the end.
4513 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
4515 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
4516 (arm_mapping_symbol_s): Remove.
4517 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
4518 (arm_mapping_symbol_vec): New typedef.
4519 (struct arm_per_objfile): Add constructor.
4520 <section_maps>: Change type to
4521 std::unique_ptr<arm_mapping_symbol_vec[]>.
4522 (arm_compare_mapping_symbols): Remove.
4523 (arm_find_mapping_symbol): Adjust to section_maps type change.
4524 (arm_objfile_data_free): Call delete on arm_per_objfile.
4525 (arm_record_special_symbol): Adjust to section_maps type change.
4526 Allocate arm_per_objfile with new.
4528 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4530 * cli/cli-cmds.c (alias_command): Compare the alias prefix
4531 with the command prefix.
4533 2019-06-25 Tom Tromey <tom@tromey.com>
4535 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
4536 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
4538 2019-06-25 Tom Tromey <tom@tromey.com>
4540 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
4542 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
4545 2019-06-25 Tom Tromey <tom@tromey.com>
4547 * tui/tui-winsource.c
4548 (tui_source_window_base::set_is_exec_point_at): Add check against
4551 2019-06-25 Tom Tromey <tom@tromey.com>
4553 * tui/tui-source.c (tui_set_source_content): Don't check before
4555 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
4557 2019-06-25 Tom Tromey <tom@tromey.com>
4559 * tui/tui-winsource.h (tui_update_source_window_as_is)
4560 (tui_alloc_source_buffer, tui_line_is_displayed)
4561 (tui_addr_is_displayed): Change type of win_info.
4562 * tui/tui-winsource.c (tui_update_source_window_as_is)
4563 (tui_clear_source_content, tui_show_source_line)
4564 (tui_show_source_content, tui_source_window_base::refill)
4565 (tui_source_window_base::set_is_exec_point_at)
4566 (tui_source_window_base::set_is_exec_point_at)
4567 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
4568 (tui_alloc_source_buffer, tui_line_is_displayed)
4569 (tui_addr_is_displayed): Change type of win_info. Update.
4570 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4571 (tui_source_window_base::do_make_visible_with_new_height):
4573 * tui/tui-source.c (tui_set_source_content)
4574 (tui_set_source_content_nil)
4575 (tui_source_window::do_scroll_vertical): Update.
4576 * tui/tui-layout.c (show_layout): Update.
4577 * tui/tui-disasm.c (tui_set_disassem_content)
4578 (tui_disasm_window::do_scroll_vertical): Update.
4579 * tui/tui-data.h (tui_win_content): Remove.
4580 (struct tui_gen_win_info) <content, content_size>: Remove.
4581 (struct tui_source_element): Add initializers and destructor.
4582 (union tui_which_element, struct tui_win_element): Remove.
4583 (struct tui_source_window_base) <content>: New field.
4584 (struct tui_data_window): Remove destructor.
4585 (tui_alloc_content, tui_free_win_content)
4586 (tui_free_all_source_wins_content): Don't declare.
4587 * tui/tui-data.c (tui_initialize_static_data): Update.
4588 (init_content_element, tui_alloc_content): Remove.
4589 (~tui_gen_win_info): Update.
4590 (~tui_data_window, tui_free_all_source_wins_content)
4591 (tui_free_win_content, free_content, free_content_elements):
4594 2019-06-25 Tom Tromey <tom@tromey.com>
4596 * tui/tui-winsource.h (tui_clear_source_content)
4597 (tui_erase_source_content, tui_show_source_content): Change type
4599 * tui/tui-winsource.c (tui_clear_source_content)
4600 (tui_erase_source_content, tui_show_source_content): Change type
4602 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4603 * tui/tui-source.h (tui_set_source_content_nil): Change type of
4605 * tui/tui-source.c (tui_set_source_content_nil): Change type of
4607 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
4609 2019-06-25 Tom Tromey <tom@tromey.com>
4611 * tui/tui-winsource.c (tui_clear_source_content)
4612 (tui_source_window_base::set_is_exec_point_at): Update.
4613 * tui/tui-source.c (tui_set_source_content_nil): Update.
4614 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
4616 * tui/tui-data.c (init_content_element): Update.
4618 2019-06-25 Tom Tromey <tom@tromey.com>
4620 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
4621 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
4622 * tui/tui-layout.c (init_and_make_win): Update.
4623 * tui/tui.h (enum tui_win_type): Update.
4624 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
4625 tui_win_is_auxillary.
4626 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
4627 tui_win_is_auxillary.
4629 2019-06-25 Tom Tromey <tom@tromey.com>
4631 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
4632 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
4633 (tui_delete_data_content_windows, tui_display_all_data)
4634 (tui_data_window::do_scroll_vertical, tui_display_data_from):
4636 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
4637 * tui/tui-regs.c (tui_last_regs_line_no)
4638 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
4639 (tui_show_registers): Update.
4640 (tui_show_register_group): Return void. Update.
4641 (tui_display_registers_from, tui_display_reg_element_at_line)
4642 (tui_display_registers_from_line, tui_check_register_values):
4644 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
4646 (struct tui_data_window) <regs_content>: Now a std::vector.
4647 <regs_content_count>: Remove.
4648 (tui_add_content_elements, tui_free_data_content): Don't declare.
4649 * tui/tui-data.c (tui_data_window::clear_detail): Update.
4650 (init_content_element): Remove DATA_WIN case. Add assert.
4651 (tui_add_content_elements): Remove.
4652 (tui_data_window): Update.
4653 (tui_free_data_content): Remove.
4654 (free_content_elements): Remove DATA_WIN case.
4656 2019-06-25 Tom Tromey <tom@tromey.com>
4658 * tui/tui-data.c (tui_data_item_window): Update.
4659 * tui/tui-windata.h (tui_check_data_values): Don't declare.
4660 * tui/tui-windata.c (tui_display_all_data)
4661 (tui_display_data_from_line): Update.
4662 (tui_check_data_values): Remove.
4663 * tui/tui-regs.c (tui_show_register_group)
4664 (tui_display_reg_element_at_line): Update.
4665 * tui/tui-hooks.c (tui_register_changed)
4666 (tui_refresh_frame_and_register_information): Call
4667 tui_check_register_values.
4668 * tui/tui-data.h (struct tui_data_window) <data_content,
4669 data_content_count, data_type>: Remove.
4670 (enum tui_data_type): Remove.
4672 * tui/tui-data.c (tui_data_window::clear_detail)
4673 (~tui_data_window): Update.
4675 2019-06-25 Tom Tromey <tom@tromey.com>
4677 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
4679 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
4680 Rename from tui_first_data_item_displayed. Update.
4681 (tui_data_window::refresh_all)
4682 (tui_data_window::do_scroll_vertical): Update.
4683 * tui/tui-data.h (struct tui_data_window)
4684 <first_data_item_displayed>: Declare new method.
4686 2019-06-25 Tom Tromey <tom@tromey.com>
4688 * tui/tui-data.h (tui_init_generic_part): Don't declare.
4689 * tui/tui-data.c (tui_init_generic_part): Remove, moving
4691 (tui_initialize_static_data): ...here.
4693 2019-06-25 Tom Tromey <tom@tromey.com>
4695 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4696 (tui_display_registers_from, tui_check_register_values): Update.
4697 (tui_display_register): Remove win_info parameter; update.
4698 (tui_get_register): Change type of parameters.
4699 * tui/tui-data.h (struct tui_data_element): Remove.
4700 (union tui_which_element) <data>: Remove.
4701 <data_window>: Change type.
4702 (struct tui_data_item_window): New.
4703 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
4705 (~tui_data_item_window): New destructor.
4706 (free_content_elements): Remove DATA_ITEM_WIN case.
4708 2019-06-25 Tom Tromey <tom@tromey.com>
4710 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
4713 2019-06-25 Tom Tromey <tom@tromey.com>
4715 * tui/tui-data.h (struct tui_command_element): Remove.
4716 (union tui_which_element) <command>: Remove.
4717 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
4719 (free_content_elements): Remove CMD_WIN case.
4721 2019-06-25 Tom Tromey <tom@tromey.com>
4723 * tui/tui-layout.c (tui_set_layout): Update.
4724 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
4725 * tui/tui-data.c (layout_def): Update.
4727 2019-06-25 Tom Tromey <tom@tromey.com>
4729 * tui/tui-wingeneral.c (tui_refresh_all): Update.
4730 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4731 (tui_source_window_base::set_new_height): Update.
4732 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
4734 (tui_set_locator_fullname, tui_set_locator_info)
4735 (tui_show_frame_info): Update.
4736 * tui/tui-source.c (tui_set_source_content)
4737 (tui_source_is_displayed): Update.
4738 * tui/tui-layout.c (show_source_disasm_command, show_data)
4739 (show_source_or_disasm_and_command): Update.
4740 * tui/tui-disasm.c (tui_set_disassem_content)
4741 (tui_get_begin_asm_address): Update.
4742 * tui/tui-data.h (struct tui_locator_element): Remove.
4743 (union tui_which_element) <locator>: Remove.
4744 (struct tui_locator_window): New.
4745 (tui_locator_win_info_ptr): Change return type.
4746 * tui/tui-data.c (_locator): Change type.
4747 (tui_locator_win_info_ptr): Change return type.
4748 (init_content_element): Remove LOCATOR_WIN case. Add assert.
4749 (tui_alloc_content): Add assert.
4751 2019-06-25 Tom Tromey <tom@tromey.com>
4753 * tui/tui-winsource.c
4754 (tui_exec_info_window::maybe_allocate_content): New method.
4755 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
4756 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
4757 (make_source_or_disasm_window): Add cast.
4758 * tui/tui-data.h (union tui_which_element) <simple_string>:
4760 (struct tui_source_info): New.
4761 (struct tui_source_window_base) <execution_info>: Change type.
4762 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
4763 case, and add assert.
4764 (tui_alloc_content): Add assert.
4766 2019-06-25 Tom Tromey <tom@tromey.com>
4768 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
4769 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
4770 * tui/tui-data.c (tui_alloc_win_info): Remove.
4772 2019-06-25 Tom Tromey <tom@tromey.com>
4774 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
4775 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
4778 2019-06-25 Tom Tromey <tom@tromey.com>
4780 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
4781 make_visible_with_new_height method.
4782 (tui_win_info::make_visible_with_new_height): New method.
4783 (tui_source_window_base::do_make_visible_with_new_height)
4784 (tui_data_window::do_make_visible_with_new_height)
4785 (tui_cmd_window::do_make_visible_with_new_height): New methods.
4786 (make_visible_with_new_height): Remove.
4787 (tui_resize_all, tui_adjust_win_heights): Use
4788 make_visible_with_new_height method.
4789 * tui/tui-data.h (struct tui_win_info)
4790 <do_make_visible_with_new_height, make_visible_with_new_height>:
4792 (struct tui_source_window_base, struct tui_data_window)
4793 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
4796 2019-06-25 Tom Tromey <tom@tromey.com>
4798 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
4800 (update_tab_width): Call update_tab_width method.
4801 * tui/tui-data.h (struct tui_win_info)
4802 (struct tui_source_window_base) <update_tab_width>: New methods.
4804 2019-06-25 Tom Tromey <tom@tromey.com>
4806 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
4808 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
4810 (tui_gen_win_info::make_visible): Update.
4811 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
4813 * tui/tui-data.h (enum tui_box): New enum.
4814 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
4816 2019-06-25 Tom Tromey <tom@tromey.com>
4818 * tui/tui-layout.c (make_source_or_disasm_window): Always use
4819 init_and_make_win for EXEC_INFO_WIN.
4820 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
4822 (struct tui_win_info) <~tui_win_info>: Inline.
4823 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4825 * tui/tui-data.c (source_win, disasm_win): Remove globals.
4826 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4828 (tui_initialize_static_data): Update.
4829 (~tui_gen_win_info): Handle more cleanup here.
4830 (~tui_source_window_base): Delete "execution_info".
4831 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
4833 2019-06-25 Tom Tromey <tom@tromey.com>
4835 * tui/tui-layout.c (make_command_window): Don't set
4837 (show_source_disasm_command): Call the reset method.
4838 (show_data): Don't set can_highlight. Call the reset method.
4839 (tui_gen_win_info::reset): Rename from init_gen_win_info
4840 (init_and_make_win): Simplify. Return tui_gen_win_info.
4841 (show_source_or_disasm_and_command): Call the reset method.
4842 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
4843 (struct tui_cmd_window): Set can_highlight.
4845 2019-06-25 Tom Tromey <tom@tromey.com>
4847 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
4849 (tui_make_visible, tui_make_invisible): Rewrite.
4850 (tui_win_info::make_visible): Remove.
4851 (tui_source_window_base::make_visible): Update.
4852 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
4853 method. Moved from...
4854 (struct tui_win_info) <make_visible>: ...here.
4856 2019-06-25 Tom Tromey <tom@tromey.com>
4858 * tui/tui-winsource.c
4859 (tui_source_window_base::do_scroll_horizontal): Remove direction
4861 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
4862 direction parameter.
4863 * tui/tui-win.c (tui_win_info::forward_scroll)
4864 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
4865 (tui_win_info::right_scroll): Update.
4866 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
4867 direction parameter.
4868 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
4869 direction parameter.
4870 * tui/tui-data.h (enum tui_scroll_direction): Remove.
4871 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
4872 Remove direction parameter.
4873 (struct tui_source_window_base, struct tui_source_window)
4874 (struct tui_disasm_window, struct tui_data_window)
4875 (struct tui_cmd_window): Update.
4877 2019-06-25 Tom Tromey <tom@tromey.com>
4879 * tui/tui-winsource.h (tui_set_exec_info_content)
4880 (tui_show_exec_info_content, tui_erase_exec_info_content)
4881 (tui_clear_exec_info_content, tui_update_exec_info): Change
4882 argument to tui_source_window_base.
4883 * tui/tui-winsource.c (tui_set_exec_info_content)
4884 (tui_show_exec_info_content, tui_erase_exec_info_content)
4885 (tui_clear_exec_info_content, tui_update_exec_info): Change
4886 argument to tui_source_window_base.
4888 2019-06-25 Tom Tromey <tom@tromey.com>
4890 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
4891 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
4893 2019-06-25 Tom Tromey <tom@tromey.com>
4895 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
4898 2019-06-25 Tom Tromey <tom@tromey.com>
4900 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
4902 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
4904 * tui/tui-source.c (tui_set_source_content): Update.
4905 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4907 2019-06-25 Tom Tromey <tom@tromey.com>
4909 * tui/tui-win.c (window_name_completer, tui_set_focus)
4910 (tui_all_windows_info): Use name method.
4911 * tui/tui-data.h (struct tui_gen_win_info)
4912 (struct tui_source_window, struct tui_disasm_window)
4913 (struct tui_data_window, struct tui_cmd_window) <name>: New
4915 (tui_win_name): Don't declare.
4916 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
4917 (tui_win_name): Remove.
4919 2019-06-25 Tom Tromey <tom@tromey.com>
4921 * tui/tui-winsource.h (tui_update_source_window)
4922 (tui_update_source_window_as_is): Change parameter type.
4923 * tui/tui-winsource.c (tui_update_source_window): Change win_info
4924 to be a tui_source_window_base.
4925 (tui_update_source_window_as_is): Likewise.
4926 * tui/tui-win.c (make_visible_with_new_height): Update.
4928 2019-06-25 Tom Tromey <tom@tromey.com>
4930 * tui/tui-winsource.c (tui_erase_source_content)
4931 (tui_show_source_content, tui_show_exec_info_content)
4932 (tui_erase_exec_info_content): Use refresh_window method.
4933 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
4934 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
4935 from tui_refresh_win.
4936 (tui_data_window::refresh_window): New method.
4937 (tui_win_info::refresh, tui_source_window_base::refresh)
4938 (tui_refresh_all): Use refresh_window method.
4939 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
4941 * tui/tui-regs.c (tui_display_register): Call refresh_window
4943 * tui/tui-layout.c (show_source_disasm_command)
4944 (show_source_or_disasm_and_command): Call refresh_window method.
4945 * tui/tui-data.h (struct tui_gen_win_info)
4946 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
4949 2019-06-25 Tom Tromey <tom@tromey.com>
4951 * tui/tui.c (tui_rl_other_window, tui_enable)
4952 (tui_is_window_visible, tui_get_command_dimension): Update.
4953 * tui/tui-winsource.c (tui_update_source_window_as_is)
4954 (tui_clear_source_content, tui_erase_source_content)
4955 (tui_show_source_line, tui_source_window_base::refill)
4956 (tui_source_window_base::do_scroll_horizontal)
4957 (tui_source_window_base::set_is_exec_point_at)
4958 (tui_update_breakpoint_info, tui_set_exec_info_content)
4959 (tui_alloc_source_buffer, tui_line_is_displayed)
4960 (tui_addr_is_displayed): Update.
4961 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
4962 (tui_check_and_display_highlight_if_needed)
4963 (tui_win_info::make_visible, tui_win_info::refresh)
4964 (tui_refresh_all): Update.
4965 * tui/tui-windata.c (tui_first_data_item_displayed)
4966 (tui_delete_data_content_windows, tui_erase_data_content)
4967 (tui_display_all_data, tui_data_window::refresh_all)
4968 (tui_check_data_values): Update.
4969 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
4970 (tui_set_win_focus_to, tui_win_info::forward_scroll)
4971 (tui_win_info::backward_scroll, tui_refresh_all_win)
4972 (tui_resize_all, tui_set_focus, tui_all_windows_info)
4973 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
4974 (tui_source_window_base::set_new_height)
4975 (tui_data_window::set_new_height)
4976 (make_invisible_and_set_new_height)
4977 (make_visible_with_new_height, new_height_ok)
4978 (parse_scrolling_args): Update.
4979 * tui/tui-stack.c (tui_show_frame_info): Update.
4980 * tui/tui-source.c (tui_set_source_content)
4981 (tui_set_source_content_nil, tui_source_is_displayed)
4982 (tui_source_window::do_scroll_vertical): Update.
4983 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4984 (tui_display_registers_from, tui_display_reg_element_at_line)
4985 (tui_check_register_values, tui_reg_command): Update.
4986 * tui/tui-layout.c (tui_default_win_height)
4987 (show_source_disasm_command, show_data, init_and_make_win)
4988 (show_source_or_disasm_and_command): Update.
4989 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
4990 (tui_redisplay_readline, tui_mld_flush)
4991 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
4993 * tui/tui-disasm.c (tui_set_disassem_content)
4994 (tui_disasm_window::do_scroll_vertical): Update.
4995 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
4997 (struct tui_win_info): Derive from tui_gen_win_info.
4998 <~tui_win_info>: Mark as override.
4999 <generic>: Remove member.
5000 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
5001 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
5002 (~tui_data_window, ~tui_win_info)
5003 (tui_free_all_source_wins_content): Update.
5004 * tui/tui-command.c (tui_refresh_cmd_win): Update.
5006 2019-06-25 Tom Tromey <tom@tromey.com>
5008 * tui/tui-layout.c (init_and_make_win): Use new.
5009 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
5010 destructor, initializers.
5011 (tui_alloc_generic_win_info): Don't declare.
5012 * tui/tui-data.c (_locator): Add argument to constructor.
5013 (source_win, disasm_win): New globals.
5014 (exec_info): Remove.
5015 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5017 (tui_alloc_generic_win_info): Remove.
5018 (init_content_element): Use new.
5019 (tui_win_info::tui_win_info): Update.
5020 (free_content_elements) <case DATA_WIN>: Use delete.
5022 2019-06-25 Tom Tromey <tom@tromey.com>
5024 * tui/tui-wingeneral.c (tui_refresh_win): Update.
5025 * tui/tui-windata.c (tui_first_data_item_displayed)
5026 (tui_delete_data_content_windows): Update.
5027 * tui/tui-win.c (tui_data_window::set_new_height): Update.
5028 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5029 (tui_display_registers_from, tui_check_register_values): Update.
5030 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
5032 * tui/tui-data.c (init_content_element): Update. Allocate the new
5034 (tui_free_data_content): Update.
5035 (free_content_elements) <case DATA_WIN>: Free the window.
5037 2019-06-25 Tom Tromey <tom@tromey.com>
5039 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
5041 * tui/tui-layout.c (make_command_window)
5042 (show_source_disasm_command, show_data, init_and_make_win)
5043 (show_source_or_disasm_and_command): Update.
5044 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
5046 <can_highight, is_highlighted>: Now bool.
5047 (tui_set_win_highlight): Don't declare.
5048 * tui/tui-data.c (tui_set_win_highlight): Remove.
5050 2019-06-25 Tom Tromey <tom@tromey.com>
5052 * tui/tui-wingeneral.c (make_visible): Remove check of window
5055 2019-06-25 Tom Tromey <tom@tromey.com>
5057 * tui/tui-win.c (tui_win_info::max_height)
5058 (tui_cmd_window::max_height): New methods.
5059 (new_height_ok): Call max_height.
5060 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
5061 <max_height>: New method.
5063 2019-06-25 Tom Tromey <tom@tromey.com>
5065 * tui/tui-win.c (tui_source_window_base::set_new_height)
5066 (tui_data_window::set_new_height): New methods.
5067 (make_invisible_and_set_new_height): Call set_new_height method.
5068 * tui/tui-data.h (struct tui_win_info)
5069 (struct tui_source_window_base, struct tui_data_window)
5070 <set_new_height>: New method.
5072 2019-06-25 Tom Tromey <tom@tromey.com>
5074 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
5075 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
5076 tui_refresh_data_win.
5077 * tui/tui-win.c (tui_source_window_base::refresh_all): New
5079 (tui_refresh_all_win): Call the refresh_all method.
5080 (tui_set_focus): Likewise.
5081 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
5082 (struct tui_source_window_base, struct tui_data_window) <refresh>:
5085 2019-06-25 Tom Tromey <tom@tromey.com>
5087 * tui/tui-winsource.h (tui_refill_source_window)
5088 (tui_set_is_exec_point_at): Don't declare.
5089 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
5090 (tui_source_window_base::refill): Rename from
5091 tui_refill_source_window.
5092 (tui_source_window_base::do_scroll_horizontal): Update.
5093 (tui_source_window_base::set_is_exec_point_at): Rename from
5094 tui_set_is_exec_point_at.
5095 (tui_update_all_breakpoint_info): Update.
5096 * tui/tui-stack.c (tui_show_frame_info): Update.
5097 * tui/tui-layout.c (show_data): Add cast.
5098 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
5099 * tui/tui-data.h (struct tui_source_window_base) <refill,
5100 set_is_exec_point_at>: New methods.
5101 (tui_source_windows, tui_add_to_source_windows): Update types.
5102 (tui_add_to_source_windows): Remove redundant declaration.
5103 * tui/tui-data.c (source_windows): Store tui_source_window_base.
5104 (tui_source_windows): Change return type.
5105 (tui_clear_source_windows_detail): Update.
5106 (tui_add_to_source_windows): Change type of parameter.
5107 (tui_free_all_source_wins_content): Update.
5109 2019-06-25 Tom Tromey <tom@tromey.com>
5111 * tui/tui-wingeneral.c (tui_win_info::refresh)
5112 (tui_source_window_base::refresh): New methods.
5113 (tui_refresh_all): Call the refresh method.
5114 * tui/tui-data.h (struct tui_win_info)
5115 (struct tui_source_window_base) <refresh>: New method.
5117 2019-06-25 Tom Tromey <tom@tromey.com>
5119 * tui/tui.h (tui_is_window_visible): Return bool.
5120 * tui/tui.c (tui_is_window_visible): Return bool.
5121 * tui/tui-wingeneral.c (tui_make_window, make_visible)
5122 (tui_make_visible, tui_make_invisible)
5123 (tui_win_info::make_visible)
5124 (tui_source_window_base::make_visible, make_all_visible)
5125 (tui_make_all_visible, tui_make_all_invisible): Update.
5126 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
5127 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
5129 (struct tui_win_info, struct tui_source_window_base)
5130 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
5131 * tui/tui-data.c (tui_init_generic_part): Update.
5133 2019-06-25 Tom Tromey <tom@tromey.com>
5135 * tui/tui-wingeneral.c (tui_win_info::make_visible)
5136 (tui_source_window_base::make_visible): New methods.
5137 (make_all_visible): Make method call.
5138 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
5139 (struct tui_source_window_base, struct tui_cmd_window): Override
5141 (tui_win_is_source_type): Don't declare.
5142 * tui/tui-data.c (tui_win_is_source_type): Remove.
5144 2019-06-25 Tom Tromey <tom@tromey.com>
5146 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
5149 2019-06-25 Tom Tromey <tom@tromey.com>
5151 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
5152 Inline constructor. Add initializers for members.
5153 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
5154 constructors; now inline in class.
5156 2019-06-25 Tom Tromey <tom@tromey.com>
5158 * tui/tui-regs.c (tui_show_registers): Update.
5159 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
5161 * tui/tui-data.c (tui_data_window::clear_detail)
5162 (tui_data_window): Update.
5164 2019-06-25 Tom Tromey <tom@tromey.com>
5166 * tui/tui-windata.c (tui_display_all_data)
5167 (tui_display_data_from_line, tui_display_data_from)
5168 (tui_check_data_values, tui_data_window::do_scroll_vertical):
5170 * tui/tui-regs.c (tui_last_regs_line_no)
5171 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
5172 (tui_show_registers, tui_show_register_group)
5173 (tui_display_registers_from, tui_display_reg_element_at_line)
5174 (tui_display_registers_from_line, tui_check_register_values)
5175 (tui_reg_next, tui_reg_prev): Update.
5176 * tui/tui-layout.c (tui_set_layout, show_data): Update.
5177 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
5179 (struct tui_win_info) <detail>: Remove. Add new fields from
5181 (TUI_DATA_WIN): Add cast.
5182 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
5183 (~tui_data_window): Simplify.
5185 2019-06-25 Tom Tromey <tom@tromey.com>
5187 * tui/tui-layout.c (show_source_disasm_command)
5188 (show_source_or_disasm_and_command): Update.
5189 * tui/tui-io.c (update_cmdwin_start_line)
5190 (tui_redisplay_readline): Update.
5191 * tui/tui-data.h (struct tui_command_info): Remove.
5192 (struct tui_win_info) <detail>: Remove command_info member.
5193 (struct tui_data_window) <start_line>: New member, from
5195 (TUI_CMD_WIN): Add casts.
5197 2019-06-25 Tom Tromey <tom@tromey.com>
5199 * tui/tui-winsource.c (tui_update_source_window)
5200 (tui_refill_source_window)
5201 (tui_source_window_base::do_scroll_horizontal)
5202 (tui_update_breakpoint_info, tui_set_exec_info_content)
5203 (tui_show_exec_info_content, tui_erase_exec_info_content)
5204 (tui_clear_exec_info_content): Update.
5205 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
5207 * tui/tui-win.c (make_invisible_and_set_new_height)
5208 (make_visible_with_new_height): Update.
5209 * tui/tui-source.c (tui_set_source_content)
5210 (tui_show_symtab_source): Update.
5211 * tui/tui-layout.c (extract_display_start_addr)
5212 (show_source_disasm_command, show_data)
5213 (make_source_or_disasm_window)
5214 (show_source_or_disasm_and_command): Update.
5215 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
5216 (tui_disasm_window::do_scroll_vertical): Remove shadowing
5218 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
5219 to tui_source_window_base.
5220 (struct tui_win_info) <detail>: Remove source_info member.
5221 (struct tui_source_window_base) <has_locator>: Inline.
5222 Move contents from tui_source_info; rename has_locator member to
5224 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
5225 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
5227 (tui_source_window_base::clear_detail, ~tui_source_window_base):
5229 (tui_free_all_source_wins_content): Cast to
5230 tui_source_window_base.
5232 2019-06-25 Tom Tromey <tom@tromey.com>
5234 * tui/tui-win.c (make_invisible_and_set_new_height)
5235 (make_visible_with_new_height): Call has_locator method.
5236 * tui/tui-layout.c (show_source_disasm_command, show_data)
5237 (show_source_or_disasm_and_command): Update for bool change.
5238 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
5239 (tui_win_info) <has_locator>: New method.
5240 (struct tui_source_window_base) <has_locator>: New method.
5241 (tui_win_has_locator): Don't declare.
5242 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
5243 from tui_win_has_locator.
5244 (tui_source_window_base): Use false, not FALSE.
5246 2019-06-25 Tom Tromey <tom@tromey.com>
5248 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
5249 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
5250 clear_detail method directly.
5251 (tui_clear_win_detail): Remove.
5253 2019-06-25 Tom Tromey <tom@tromey.com>
5255 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
5256 "this", not TUI_DISASM_WIN.
5258 2019-06-25 Tom Tromey <tom@tromey.com>
5260 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
5262 * tui/tui-winsource.c
5263 (tui_source_window_base::do_scroll_horizontal): Rename from
5264 tui_horizontal_source_scroll.
5265 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
5266 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
5267 from tui_vertical_data_scroll.
5268 * tui/tui-win.h (tui_scroll): Don't declare.
5269 * tui/tui-win.c (tui_win_info::forward_scroll)
5270 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
5271 (tui_win_info::right_scroll): Rename and update.
5272 (tui_scroll_forward_command, tui_scroll_backward_command)
5273 (tui_scroll_left_command, tui_scroll_right_command): Update.
5274 (tui_scroll): Remove.
5275 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
5276 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
5277 from tui_vertical_source_scroll.
5278 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
5279 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
5280 from tui_vertical_disassem_scroll.
5281 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
5282 do_scroll_horizontal>: New methods.
5283 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
5285 (struct tui_source_window_base): Add do_scroll_horizontal.
5286 (struct tui_source_window, struct tui_disasm_window): Add
5288 (struct tui_data_window, struct tui_cmd_window): Add
5289 do_scroll_horizontal and do_scroll_vertical.
5290 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
5292 2019-06-25 Tom Tromey <tom@tromey.com>
5294 * tui/tui-data.h (struct tui_source_window_base): New struct.
5295 (struct tui_source_window): Derive from tui_source_window_base.
5296 (struct tui_disasm_window): New struct.
5297 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
5298 from tui_source_window::clear_detail.
5299 (tui_source_window_base): Rename from tui_source_window.
5300 (~tui_source_window_base): Rename from ~tui_source_window.
5301 (tui_alloc_win_info): Create a tui_disasm_window.
5303 2019-06-25 Tom Tromey <tom@tromey.com>
5305 * tui/tui-data.h (struct tui_source_window)
5306 (struct tui_data_window): Declare destructors.
5307 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
5309 (tui_win_info): Simplify.
5311 2019-06-25 Tom Tromey <tom@tromey.com>
5313 * tui/tui-winsource.c (tui_display_main)
5314 (tui_update_source_windows_with_addr)
5315 (tui_update_all_breakpoint_info): Update.
5316 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5317 (new_height_ok, parse_scrolling_args): Update.
5318 * tui/tui-stack.c (tui_show_frame_info): Update.
5319 * tui/tui-data.h (struct tui_list): Remove.
5320 (tui_source_windows): Return a reference to a std::vector.
5321 * tui/tui-data.c (source_windows): Now a std::vector.
5322 (tui_source_windows): Change return type.
5323 (tui_clear_source_windows): Rewrite.
5324 (tui_clear_source_windows_detail, tui_add_to_source_windows)
5325 (tui_free_all_source_wins_content): Rewrite.
5327 2019-06-25 Tom Tromey <tom@tromey.com>
5329 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
5330 (struct tui_data_window, struct tui_cmd_window): Declare
5331 clear_detail method.
5332 * tui/tui-data.c (tui_source_window::clear_detail)
5333 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
5335 (tui_clear_win_detail): Simplify.
5337 2019-06-25 Tom Tromey <tom@tromey.com>
5339 * tui/tui-layout.c (make_source_window, make_disasm_window)
5340 (make_source_or_disasm_window): Remove win_info_ptr parameter.
5341 Return the new window.
5342 (show_source_disasm_command, show_data)
5343 (show_source_or_disasm_and_command): Update.
5345 2019-06-25 Tom Tromey <tom@tromey.com>
5347 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
5348 parameter. Return the new window.
5349 (show_source_disasm_command): Update and remove NULL check.
5350 (show_source_or_disasm_and_command): Update.
5352 2019-06-25 Tom Tromey <tom@tromey.com>
5354 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
5356 2019-06-25 Tom Tromey <tom@tromey.com>
5358 * tui/tui-data.h (struct tui_win_info): Make constructor
5359 protected. Make destructor virtual. Add initializers.
5360 (tui_source_window, tui_data_window, tui_cmd_window): New
5362 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
5363 constructor. Add "type" parameter.
5364 (tui_source_window, tui_data_window, tui_cmd_window): New
5366 (tui_alloc_win_info): Instantiate the appropriate subclass.
5368 2019-06-25 Tom Tromey <tom@tromey.com>
5370 * tui/tui-win.c (tui_resize_all): Use delete.
5371 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
5373 (tui_free_window): Don't declare.
5374 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
5377 2019-06-25 Tom Tromey <tom@tromey.com>
5379 * tui/tui-data.h (struct tui_win_info): Add constructor.
5380 * tui/tui-data.c (tui_alloc_win_info): Use new.
5381 (tui_free_window): Use delete.
5383 2019-06-22 Tom Tromey <tom@tromey.com>
5385 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
5387 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
5389 2019-06-22 Tom Tromey <tom@tromey.com>
5391 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
5393 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
5395 2019-06-22 Tom de Vries <tdevries@suse.de>
5397 * dwarf2read.c (create_addrmap_from_aranges)
5398 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
5401 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
5403 * dwarf2read.h (dwarf2_section_info_def): Remove.
5404 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
5405 * dwarf2read.c (struct dwo_sections) <types>: Change type to
5406 std::vector<dwarf2_section_info>.
5407 (struct dwo_file) <~dwo_file>: Remove.
5408 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
5410 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
5411 (dwarf2_read_debug_names): Likewise.
5412 (create_debug_types_hash_table): Change parameter type to
5413 array_view, adjust code accordingly.
5414 (dwarf2_locate_dwo_sections): Adjust to std::vector.
5415 (partial_die_info::fixup): Likewise.
5416 (determine_prefix): Likewise.
5417 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
5419 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5421 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
5423 <~dwo_file>: Remove call to gdb_bfd_unref.
5424 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
5425 gdb_bfd_ref_ptr::get.
5427 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5429 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
5431 * dwarf2read.c (struct dwo_file): Initialize fields.
5433 (free_dwo_file): Remove, move content to ~dwo_file.
5434 (struct dwo_file_deleter): Remove.
5435 (dwo_file_up>: Remove custom deleter.
5436 (free_dwo_files): Remove.
5437 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
5439 (process_skeletonless_type_units): Call unique_ptr::get.
5440 (allocate_dwo_file_hash_table): Add deleter to created hash
5441 table. Change return type to htab_up.
5442 (lookup_dwo_file_slot): Don't memset dwo_file, call
5444 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
5445 (create_dwo_unit_in_dwp_v2): Likewise.
5446 (open_and_init_dwo_file): Likewise.
5447 (free_dwo_file_from_slot): Remove.
5449 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5451 * dwarf2read.h (struct dwarf2_section_info) <readin,
5452 is_virtual>: Change type to bool.
5453 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
5456 2019-06-19 Tom Tromey <tom@tromey.com>
5458 * tui/tui-data.h (tui_init_content_element): Don't declare.
5460 2019-06-19 Tom Tromey <tom@tromey.com>
5462 * tui/tui-data.h (tui_init_win_info): Don't declare.
5464 2019-06-19 Tom de Vries <tdevries@suse.de>
5466 * dwarf2read.h (abstract_to_concrete): Change type to
5467 std::unordered_map<sect_offset, std::vector<sect_offset>,
5468 gdb::hash_enum<sect_offset>>.
5470 2019-06-19 Tom Tromey <tromey@adacore.com>
5472 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
5473 EVAL_AVOID_SIDE_EFFECTS specially.
5475 2019-06-19 Tom Tromey <tromey@adacore.com>
5477 * source-cache.c (highlighter): New global.
5478 (source_cache::get_source_lines): Create a highlighter on demand.
5480 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
5482 * defs.h (deprecated_interactive_hook): Delete declaration.
5483 * interps.c (clear_interpreter_hooks): Remove use of
5484 deprecated_interactive_hook.
5485 * top.c (deprecated_interactive_hook): Delete definition.
5486 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
5488 2019-06-18 Tom de Vries <tdevries@suse.de>
5491 * dwarf2read.h (abstract_to_concrete): Change type from
5492 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
5493 std::unordered_map<sect_offset, std::vector<sect_offset>>.
5494 * dwarf2read.c (read_variable): Update.
5495 (dwarf2_fetch_die_loc_sect_off): Update.
5497 2019-06-17 Tom de Vries <tdevries@suse.de>
5500 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
5501 accessing parent[parent_len - 1].
5503 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
5506 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
5507 call dtrace_process_dof with NULL dof.
5509 2019-06-16 Tom de Vries <tdevries@suse.de>
5512 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
5514 2019-06-16 Tom Tromey <tom@tromey.com>
5516 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
5517 (make_all_visible): Use address of member.
5519 2019-06-16 Tom Tromey <tom@tromey.com>
5521 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
5522 (tui_free_window, free_content, free_content_elements): Remove
5524 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
5526 * tui/tui-regs.c (tui_show_register_group)
5527 (tui_display_registers_from, tui_display_reg_element_at_line):
5528 Remove unnecessary cast.
5530 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5532 * linux-nat.c (normal_mask): Delete.
5533 (_initialize_linux_nat): Don't initialise normal_mask.
5535 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
5538 * dwarf-index-write.h (write_psymtabs_to_index): Add
5539 dwz_basename parameter.
5540 * dwarf-index-write.c (write_gdbindex): Move file writing to
5541 write_gdbindex_1. Change return type void.
5542 (assert_file_size): Move up, remove filename parameter.
5543 (write_gdbindex_1): New function.
5544 (write_debug_names): Change return type to void, call
5546 (struct index_wip_file): New struct.
5547 (write_psymtabs_to_index): Add dwz_basename parameter. Move
5548 file logic to index_wip_file. Write index for dwz file if
5550 (save_gdb_index_command): Pass basename of dwz file, if present.
5551 * dwarf-index-cache.c (index_cache::store): Obtain and pass
5552 build-id of dwz file, if present.
5553 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
5554 (dwarf2_get_dwz_file): Likewise.
5555 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
5556 (dwarf2_get_dwz_file): Likewise.
5558 2019-06-16 Tom Tromey <tom@tromey.com>
5560 * coffread.c (process_coff_symbol): Use xstrdup.
5561 * value.c (create_internalvar): Use xstrdup.
5563 2019-06-16 Tom Tromey <tom@tromey.com>
5565 * valops.c (value_cast, value_slice): Remove unnecessary cast.
5566 * breakpoint.c (stopin_command, stopat_command)
5567 (until_break_command, decode_location_default): Remove unnecessary
5569 * utils.c (subset_compare): Remove unnecessary cast.
5570 * ada-lang.c (ada_update_initial_language): Remove unnecessary
5572 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
5574 * infcmd.c (path_command): Remove unnecessary cast.
5575 * coffread.c (decode_type): Remove unnecessary cast.
5576 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
5577 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
5578 * tui/tui-stack.c (tui_show_locator_content)
5579 (tui_show_frame_info): Remove unnecessary cast.
5580 * tui/tui-win.c (tui_scroll_forward_command)
5581 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
5582 (parse_scrolling_args): Remove unnecessary cast.
5583 * tui/tui-data.c (init_win_info, tui_del_window)
5584 (tui_free_window, tui_del_data_windows, tui_free_data_content)
5585 (free_content_elements): Remove unnecessary cast.
5586 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
5588 * tui/tui-source.c (tui_set_source_content)
5589 (tui_vertical_source_scroll): Remove unnecessary cast.
5590 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
5592 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
5593 * tui/tui-regs.c (tui_display_registers_from)
5594 (tui_display_register): Remove unnecessary cast.
5595 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
5596 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
5597 (make_visible): Remove unnecessary cast.
5598 * tui/tui-winsource.c (tui_erase_source_content)
5599 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
5601 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
5602 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
5603 * stabsread.c (read_type, read_array_type, read_range_type):
5604 Remove unnecessary cast.
5605 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
5606 (parse_symbol, parse_type, upgrade_type, parse_external)
5607 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
5609 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
5611 2019-06-16 Tom Tromey <tom@tromey.com>
5613 * tui/tui-data.c (tui_alloc_generic_win_info)
5614 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
5617 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
5618 Andrew Burgess <andrew.burgess@embecosm.com>
5620 * f-typeprint.c (f_print_type): Don't return early for not
5621 associated or not allocated types.
5622 (f_type_print_varspec_suffix): Add print_rank parameter and print
5623 ranks of array types in case they dangling.
5624 (f_type_print_base): Add print_rank parameter.
5626 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5628 * NEWS: Mention new MI commands.
5629 * break-catch-throw.c (enum exception_event_kind): Move to
5631 (print_mention_exception_catchpoint): Output text as a single
5633 (catch_exception_command_1): Rename to...
5634 (catch_exception_event): ...this, make non-static, update header
5635 command, and change some parameter types.
5636 (catch_catch_command): Update for changes to
5637 catch_exception_command_1.
5638 (catch_throw_command): Likewise.
5639 (catch_rethrow_command): Likewise.
5640 * breakpoint.c (enum exception_event_kind): Delete.
5641 * breakpoint.h (enum exception_event_kind): Moved here from
5642 break-catch-throw.c.
5643 (catch_exception_event): Declare.
5644 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
5645 (mi_cmd_catch_throw): New function.
5646 (mi_cmd_catch_rethrow): New function.
5647 (mi_cmd_catch_catch): New function.
5648 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
5649 'catch-catch' entries.
5650 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
5651 (mi_cmd_catch_rethrow): Declare.
5652 (mi_cmd_catch_catch): Declare.
5654 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5656 * annotate.c (annotate_source_line): Change return type to void,
5657 update implementation to match.
5658 * annotate.h (annotate_source_line): Change return type to void,
5659 update header comment.
5660 * stack.c (print_frame_info): Don't change what frame information
5661 is printed based on whether annotations are on or not.
5663 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5665 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
5666 (annotate_source): Make static.
5667 (annotate_source_line): Moved from source.c and renamed from
5668 identify_source_line. Update the return type.
5669 * annotate.h (annotate_source): Delete declaration.
5670 (annotate_source_line): Declaration moved from source.h, and
5671 renamed from identify_source_line. Return type updated.
5672 * source.c (identify_source_line): Moved to annotate.c and renamed
5673 to annotate_source_line.
5674 (info_line_command): Remove check of annotation_level.
5675 * source.h (identify_source_line): Move declaration to annotate.h
5676 and rename to annotate_source_line.
5677 * stack.c: Add 'annotate.h' include.
5678 (print_frame_info): Remove check of annotation_level before
5679 calling annotate_source_line.
5681 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5683 * source-cache.c (source_cache::get_plain_source_lines): Use
5684 open_source_file_with_line_charpos instead of just
5685 open_source_file, remove call to find_source_lines.
5686 (source_cache::get_source_lines): Likewise.
5687 * source.c (find_source_lines): Make static.
5688 (get_filename_and_charpos): Renamed into...
5689 (open_source_file_with_line_charpos): ..this along with changes to
5690 return a scoped_fd, and some other minor clean ups.
5691 (identify_source_line): Use open_source_file_with_line_charpos.
5692 (search_command_helper): Use open_source_file_with_line_charpos
5693 instead of just open_source_file, remove call to
5695 * source.h (open_source_file_with_line_charpos): Declare new
5697 (find_source_lines): Delete declaration.
5699 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5701 * source.c (get_filename_and_charpos): Remove fullname
5703 (identify_source_line): Update call to get_filename_and_charpos.
5705 2019-06-14 Tom Tromey <tromey@adacore.com>
5708 * ui-style.h (skip_ansi_escape): Update comment.
5709 * ui-file.h (class no_terminal_escape_file): New class.
5710 * ui-file.c (no_terminal_escape_file::write)
5711 (no_terminal_escape_file::puts): New methods.
5712 * cli/cli-logging.c (handle_redirections): Use
5713 no_terminal_escape_file.
5715 2019-06-14 Tom Tromey <tromey@adacore.com>
5717 * NEWS: Move convenience variable news above Python news.
5719 2019-06-14 Tom Tromey <tom@tromey.com>
5721 * gnulib: Move directory to top-level.
5722 * configure.ac: Don't configure gnulib.
5723 * configure: Rebuild.
5724 * common/common-defs.h: Use new path to gnulib.
5725 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
5727 (INCGNU): Look in new gnulib location.
5728 (HFILES_NO_SRCDIR): Remove gnulib files.
5729 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
5730 (generated_files): Remove GNULIB_H.
5731 ($(LIBGNU), all-lib): Remove targets.
5732 (distclean): Don't mention GNULIB_BUILDDIR.
5733 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
5735 2019-06-14 Tom Tromey <tromey@adacore.com>
5737 * symfile.c (add_symbol_file_command): Remove obsolete comment.
5738 Warn if symbol file does not provide any symbols.
5740 2019-06-14 Tom Tromey <tromey@adacore.com>
5742 * source.c (find_and_open_source): Respect basenames_may_differ.
5744 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
5746 * annotate.c (annotate_breakpoints_invalid): Make use of
5747 scoped_restore_terminal_state.
5748 (annotate_frames_invalid): Likewise.
5750 2019-06-14 Tom Tromey <tromey@adacore.com>
5752 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
5753 allow assignment to an internalvar.
5755 2019-06-14 Tom Tromey <tromey@adacore.com>
5757 * ada-lex.l: Allow "_" in attribute names.
5759 2019-06-14 Tom Tromey <tromey@adacore.com>
5762 * regcache.c (registers_changed): Don't call alloca.
5763 * top.c (execute_command): Don't call alloca.
5765 2019-06-13 Pedro Alves <palves@redhat.com>
5767 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
5768 'expression'. When parsing an expression, error out if there's
5769 junk after "unlimited".
5770 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5771 (do_set_command): Adjust calls to is_unlimited_literal.
5773 2019-06-13 Pedro Alves <palves@redhat.com>
5775 * compile/compile.c (make_compile_options_def_group): Add braces
5776 around array_view initializer.
5777 * thread.c (make_thread_apply_all_options_def_group)
5778 (make_thread_apply_all_options_def_group): Likewise.
5780 2019-06-13 Pedro Alves <palves@redhat.com>
5782 * NEWS (New commands): Mention "maint test-options
5783 require-delimiter", "maint test-options unknown-is-error", "maint
5784 test-options unknown-is-operand" and "maint show
5785 test-options-completion-result".
5786 (New command options, command completion): New section.
5787 (Completion improvements): New section.
5788 Mention that you can abbreviate "unlimited".
5790 2019-06-13 Pedro Alves <palves@redhat.com>
5792 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
5793 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
5794 * unittests/cli-utils-selftests.c (test_parse_flags)
5795 (test_parse_flags_qcs): Delete.
5796 (test_cli_utils): Don't call deleted functions.
5798 2019-06-13 Pedro Alves <palves@redhat.com>
5800 * thread.c: Include "cli/cli-option.h".
5801 (tp_array_compar_ascending): Global.
5802 (tp_array_compar): Delete function.
5803 (tp_array_compar_ascending, tp_array_compar_descending): New
5805 (ascending_option_def, qcs_flag_option_def)
5806 (thr_qcs_flags_option_defs)
5807 (make_thread_apply_all_options_def_group)
5808 (make_thread_apply_options_def_group): New.
5809 (thread_apply_all_command): Use gdb::option::process_options.
5810 (thread_apply_command_completer)
5811 (thread_apply_all_command_completer): New.
5812 (thread_apply_command): Use gdb::option::process_options.
5813 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
5814 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
5815 to generate help text of "thread apply". Adjust "taas"'s help.
5816 * tid-parse.c (tid_range_parser::in_thread_range): New method.
5817 * tid-parse.h (tid_range_parser::in_thread_range): New method.
5819 2019-06-13 Pedro Alves <palves@redhat.com>
5821 * thread.c (thread_apply_command): Check for invalid TID with
5822 isdigit instead of !isalpha.
5824 2019-06-13 Pedro Alves <palves@redhat.com>
5826 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
5827 (validate_flags_qcs): New.
5828 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
5829 (validate_flags_qcs): Declare.
5830 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
5831 (make_frame_apply_options_def_group): New.
5832 (frame_apply_command_count): Process options with
5833 gdb::option::process_options.
5834 (frame_apply_completer): New.
5835 (frame_apply_level_completer, frame_apply_all_completer)
5836 (frame_apply_completer): New.
5837 (_initialize_stack): Update help of "frame apply", "frame apply
5838 level", "frame apply all" and "faas" to mention supported options
5839 and install command completers.
5840 * stack.h (frame_apply_all_completer): Declare.
5841 * thread.c: Include "stack.h".
5842 (tfaas_command): Add "--".
5843 (_initialize_thread): Update help "tfaas" to mention supported
5844 options and install command completer.
5846 2019-06-13 Pedro Alves <palves@redhat.com>
5848 * completer.c (complete_nested_command_line): New.
5849 (gdb_completion_word_break_characters_throw): Add assertion.
5850 * completer.h (complete_nested_command_line): Declare.
5852 2019-06-13 Pedro Alves <palves@redhat.com>
5854 * stack.c (parse_backtrace_qualifiers): New.
5855 (backtrace_command): Use it.
5856 (backtrace_command_completer): Complete on qualifiers.
5858 2019-06-13 Pedro Alves <palves@redhat.com>
5860 * frame.c: Include "cli/cli-option.h.
5861 (user_set_backtrace_options): New.
5862 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
5864 (get_prev_frame): Adjust.
5865 (boolean_option_def, uinteger_option_def)
5866 (set_backtrace_option_defs): New.
5867 (_initialize_frame): Adjust and use
5868 gdb::option::add_setshow_cmds_for_options to install "set
5869 backtrace past-main" and "set backtrace past-entry".
5870 * frame.h: Include "cli/cli-option.h".
5871 (struct frame_print_options): Forward declare.
5872 (print_frame_arguments_all, print_frame_arguments_scalars)
5873 (print_frame_arguments_none): Declare.
5874 (print_entry_values): Delete declaration.
5875 (struct frame_print_options, user_frame_print_options): New.
5876 (struct set_backtrace_options): New.
5877 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
5878 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
5879 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
5880 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
5881 (list_args_or_locals): Add frame_print_options parameter.
5882 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
5883 * python/py-framefilter.c (enumerate_args): Pass down
5884 USER_FRAME_PRINT_OPTIONS.
5885 * stack.c: Include "cli/cli-option.h".
5886 (print_frame_arguments_all, print_frame_arguments_scalars)
5887 (print_frame_arguments_none): Declare.
5888 (print_raw_frame_arguments, print_entry_values): Delete.
5889 (user_frame_print_options): New.
5890 (boolean_option_def, enum_option_def, frame_print_option_defs):
5892 (struct backtrace_cmd_options): New.
5893 (bt_flag_option_def): New.
5894 (backtrace_command_option_defs): New.
5895 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
5896 (print_frame_arg, read_frame_arg, print_frame_args)
5897 (print_frame_info, print_frame): Add frame_print_options parameter
5899 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
5900 (backtrace_command_1): Add frame_print_options and
5901 backtrace_cmd_options parameters and use them.
5902 (make_backtrace_options_def_group): New.
5903 (backtrace_command): Process command options with
5904 gdb::option::process_options.
5905 (backtrace_command_completer): New.
5906 (_initialize_stack): Extend "backtrace"'s help to mention
5907 supported options. Install completer for "backtrace".
5908 Install some settings commands with add_setshow_cmds_for_options.
5910 2019-06-13 Pedro Alves <palves@redhat.com>
5912 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
5913 and that "set/show print raw frame-arguments" are now deprecated.
5915 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
5917 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
5918 * stack.c (_initialize_stack): Install "set/show print
5919 raw-frame-arguments", and deprecate "set/show print raw
5921 * valprint.c (_initialize_valprint): Deprecate "set/show print
5924 2019-06-13 Pedro Alves <palves@redhat.com>
5926 * compile/compile.c (struct compile_options): New.
5927 (compile_flag_option_def, compile_command_option_defs)
5928 (make_compile_options_def_group): New.
5929 (compile_file_command): Handle options with
5930 gdb::option::process_options.
5931 (compile_file_command_completer): New function.
5932 (compile_code_command): Handle options with
5933 gdb::option::process_options.
5934 (compile_code_command_completer): New function.
5935 (_initialize_compiler): Install completers for "compile code" and
5936 "compile file". Mention available options in "compile code" and
5937 "compile code"'s help.
5938 * completer.c (advance_to_completion_word): New, factored out from
5940 (advance_to_expression_complete_word_point): ... this.
5941 (advance_to_filename_complete_word_point): New.
5942 * completer.h (advance_to_filename_complete_word_point): New
5945 2019-06-13 Pedro Alves <palves@redhat.com>
5947 * compile/compile.c: Include "cli/cli-option.h".
5948 (compile_print_value): Scope data pointer is now a
5949 value_print_options pointer; adjust.
5950 (compile_print_command): Process options. Scope data pointer is
5951 now a value_print_options pointer; adjust.
5952 (_initialize_compile): Update "compile print"'s help to include
5953 supported options. Install a completer for "compile print".
5954 * cp-valprint.c (show_vtblprint, show_objectprint)
5955 (show_static_field_print): Delete.
5956 (_initialize_cp_valprint): Don't install "set print
5957 static-members", "set print vtbl", "set print object" here.
5958 * printcmd.c: Include "cli/cli-option.h" and
5959 "common/gdb_optional.h".
5960 (print_command_parse_format): Rework to fill in a
5961 value_print_options instead of a format_data.
5962 (print_value): Change parameter type from format_data pointer to
5963 value_print_options reference. Adjust.
5964 (print_command_1): Process options. Adjust to pass down a
5965 value_print_options.
5966 (print_command_completer): New.
5967 (_initialize_printcmd): Install print_command_completer as
5968 handle_brkchars completer for the "print" command. Update
5969 "print"'s help to include supported options.
5970 * valprint.c: Include "cli/cli-option.h".
5971 (show_vtblprint, show_objectprint, show_static_field_print): Moved
5972 here from cp-valprint.c.
5973 (boolean_option_def, uinteger_option_def)
5974 (value_print_option_defs, make_value_print_options_def_group):
5975 New. Use gdb::option::add_setshow_cmds_for_options to install
5976 "set print elements", "set print null-stop", "set print repeats",
5977 "set print pretty", "set print union", "set print array", "set
5978 print address", "set print symbol", "set print array-indexes".
5979 * valprint.h: Include <string> and "cli/cli-option.h".
5980 (make_value_print_options_def_group): Declare.
5981 (print_value): Change parameter type from format_data pointer to
5982 value_print_options reference.
5983 (print_command_completer): Declare.
5985 2019-06-13 Pedro Alves <palves@redhat.com>
5987 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
5988 (COMMON_SFILES): Add maint-test-settings.c.
5989 * cli/cli-decode.c (boolean_enums): New global, factored out from
5991 (add_setshow_boolean_cmd): ... here.
5992 * cli/cli-decode.h (boolean_enums): Declare.
5993 * cli/cli-option.c: New file.
5994 * cli/cli-option.h: New file.
5995 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
5996 factored out from ...
5997 (parse_cli_boolean_value(const char *)): ... this.
5998 (is_unlimited_literal): Change parameter type to pointer to
5999 pointer. Adjust and advance ARG pointer.
6000 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6001 (parse_cli_var_enum): New, factored out from ...
6002 (do_set_command): ... this. Adjust.
6003 * cli/cli-setshow.h (parse_cli_boolean_value)
6004 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6005 (parse_cli_var_enum): Declare.
6006 * cli/cli-utils.c: Include "cli/cli-option.h".
6007 (get_ulongest): New.
6008 * cli/cli-utils.h (get_ulongest): Declare.
6009 (check_for_argument): New overloads.
6010 * maint-test-options.c: New file.
6012 2019-06-13 Pedro Alves <palves@redhat.com>
6014 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
6015 parse a range if "-" is at the end of the string.
6017 2019-06-13 Pedro Alves <palves@redhat.com>
6019 * cli/cli-setshow.c (parse_auto_binary_operation)
6020 (parse_cli_boolean_value): Don't allow "o".
6022 2019-06-13 Pedro Alves <palves@redhat.com>
6024 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
6025 * NEWS: Mention maint test-settings KIND.
6026 * maint-test-settings.c: New file.
6028 2019-06-13 Pedro Alves <palves@redhat.com>
6030 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
6032 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
6035 2019-06-13 Pedro Alves <palves@redhat.com>
6037 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
6040 2019-06-13 Pedro Alves <palves@redhat.com>
6042 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
6044 2019-06-13 Pedro Alves <palves@redhat.com>
6046 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
6047 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
6049 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
6050 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
6052 (check_for_argument): Skip spaces after argument.
6054 2019-06-13 Pedro Alves <palves@redhat.com>
6056 * thread.c (thread_apply_command): Adjust TID parsing.
6057 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
6058 detected before end of string.
6059 (tid_is_in_list): Error out if LIST is invalid.
6061 2019-06-13 Pedro Alves <palves@redhat.com>
6063 * completer.c (complete_line_internal_1): Rewind completion word
6065 (completion_tracker::advance_custom_word_point_by): Change
6066 parameter type to int.
6067 * completer.h (completion_tracker::advance_custom_word_point_by):
6070 2019-06-13 Pedro Alves <palves@redhat.com>
6072 * completer.c (advance_to_completion_word): Handle delimiters.
6074 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
6076 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
6078 2019-06-11 Tom Tromey <tom@tromey.com>
6080 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
6081 (xmalloc_failed): Move to alloc.c.
6082 * alloc.c: New file.
6083 * Makefile.in (COMMON_SFILES): Add alloc.c.
6085 2019-06-11 Tom Tromey <tom@tromey.com>
6087 * nat/linux-waitpid.c: Don't include server.h.
6088 (linux_debug): Remove.
6089 (my_waitpid): Update.
6091 2019-06-11 Tom Tromey <tromey@adacore.com>
6093 * infcall.c (_initialize_infcall): Remove trailing newline from
6095 * user-regs.c (_initialize_user_regs): Remove trailing newline
6097 * typeprint.c (_initialize_typeprint): Remove trailing newline
6099 * reverse.c (_initialize_reverse): Remove trailing newlines from
6101 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
6103 * language.c (add_set_language_command): Remove trailing newline
6105 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
6107 * disasm.c (_initialize_disasm): Remove trailing newline from
6109 * top.c (init_main): Remove trailing newline from help.
6110 * interps.c (_initialize_interpreter): Remove trailing newline
6112 * btrace.c (_initialize_btrace): Remove trailing newlines from
6114 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
6116 * python/python.c (_initialize_python): Remove trailing newline
6118 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
6120 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
6121 from help. Reformat some text.
6122 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
6124 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
6127 2019-06-11 Tom Tromey <tromey@adacore.com>
6129 * darwin-nat.c (darwin_decode_exception_message)
6130 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
6132 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
6134 * valops.c (value_slice): Check for not allocated or not
6137 2019-06-10 Tom de Vries <tdevries@suse.de>
6140 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
6141 sure an empty slot (defined by a 32-bit zero pair) is recognized as
6144 2019-06-10 Tom de Vries <tdevries@suse.de>
6147 * linespec.c (linespec_lexer_lex_string): Remove incorrect
6148 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
6150 2019-06-10 Tom de Vries <tdevries@suse.de>
6153 * symtab.c (struct demangled_name_entry): Add language field.
6154 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
6155 static minimal symbol". Set and use language field.
6157 2019-06-10 Tom Tromey <tromey@adacore.com>
6159 * ada-lang.c (_initialize_ada_language): Update help text.
6161 2019-06-10 Tom Tromey <tromey@adacore.com>
6163 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
6165 * guile/guile.c (handle_boot_error): Don't end warning with a
6167 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
6168 warning with a newline.
6169 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
6171 (s12z_frame_cache): Likewise.
6172 * dwarf-index-cache.c (index_cache::store): Don't end warning with
6174 * solib-svr4.c (disable_probes_interface): Don't end warning with
6176 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
6178 * python/python.c (do_finish_initialization): Don't end warning
6181 2019-06-10 Tom Tromey <tom@tromey.com>
6183 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6184 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
6187 2019-06-10 Tom Tromey <tromey@adacore.com>
6189 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
6191 (elf_new_init): Don't call stabsread_new_init.
6192 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
6193 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
6194 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
6196 2019-06-10 Tom de Vries <tdevries@suse.de>
6200 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
6202 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
6204 * source.c (find_and_open_source): Also rewrite relative file
6207 2019-04-26 Amos Bird <amosbird@gmail.com>
6209 * annotate.c (annotate_thread_exited): Add "thread-exited"
6212 2019-06-06 Tom Tromey <tromey@adacore.com>
6214 * maint.h (class scoped_command_stats): Use
6215 DISABLE_COPY_AND_ASSIGN.
6216 <print_time>: New method.
6217 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
6219 (scoped_command_stats::print_time): New method.
6221 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6223 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
6224 instructions of lengths 6 or 8 bytes.
6226 2019-06-04 Pedro Alves <palves@redhat.com>
6228 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
6230 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
6231 * breakpoint.c (condition_completer): Likewise.
6232 * cli/cli-dump.c (scan_expression): Likewise.
6233 * common/filestuff.c (mkdir_recursive): Likewise.
6234 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
6235 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
6236 (gdb_abspath): Likewise.
6237 * compile/compile-cplus-types.c
6238 (compile_cplus_instance::decl_name): Likewise.
6239 * completer.c (complete_explicit_location):
6240 (signal_completer, reg_or_group_completer_1): Likewise.
6241 * cp-support.c (cp_remove_params_if_any): Likewise.
6242 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
6243 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
6244 * infcmd.c (strip_bg_char): Likewise.
6245 * linespec.c (copy_token_string): Likewise.
6246 * mi/mi-main.c (output_cores): Likewise.
6247 * psymtab.c (psymtab_search_name):
6248 * symfile.c (test_set_ext_lang_command): Likewise.
6249 * target.c (target_fileio_read_stralloc): Likewise.
6250 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
6251 * value.c (complete_internalvar): Likewise.
6253 2019-06-04 Christian Biesinger <cbiesinger@google.com>
6255 Add objfile property to gdb.Type.
6256 * NEWS: Mention Python API addition.
6257 * python/py-type.c (typy_get_objfile): New method.
6259 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6261 * NEWS: Mention the new set|show style [title|highlight].
6262 Mention changes to "show style", "help" and "apropos".
6264 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6266 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
6267 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
6268 instead of print_help_for_command.
6269 (print_doc_of_command): New function.
6270 (help_list): Add 'apropos -v word' suggestion.
6271 (print_help_for_command): Style the command name using title style.
6272 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
6273 (_initialize_cli_cmds): Describe -v in apropos_command help.
6275 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6277 * cli/cli-style.h (cli_style_option): Add name in constructor,
6278 add m_name class member, add constructor with intensity,
6279 add name class function.
6280 (cli_style_option::add_setshow_commands): Remove name argument.
6281 (highlight_style, title_style): New styles.
6282 * cli/cli-style.c (do_show): New function that shows a style
6283 characteristic styling the style name with itself.
6284 (set_style_name): New function.
6285 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
6286 Update all callers according to the changes in cli/cli-style.h.
6287 * utils.h (fputs_highlighted): New function.
6288 * utils.c (fputs_highlighted): Likewise.
6290 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6292 * NEWS: Mention new pipe command and new convenience variables.
6294 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6296 * cli/cli-cmds.c (pipe_command): New function.
6297 (_initialize_cli_cmds): Call add_com for pipe_command.
6298 Define | as an alias for pipe.
6299 (exit_status_set_internal_vars): New function.
6300 (shell_escape): Call exit_status_set_internal_vars.
6301 cli/cli-decode.c (find_command_name_length): Recognize | as
6302 a single character command.
6304 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6306 * gdbcmd.h (execute_command_to_ui_file): New declaration.
6307 top.c (execute_command_to_ui_file): New function, mostly a copy
6308 of execute_command_to_string.
6309 (execute_command_to_string): Implement by calling
6310 execute_command_to_ui_file.
6312 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6314 * top.h (saved_command_line): Remove declaration.
6315 * top.c (previous_saved_command_line, previous_repeat_arguments):
6317 (saved_command_line): Make static, define together with other
6319 (dont_repeat): Clear repeat_arguments.
6320 (repeat_previous, get_saved_command_line, save_command_line):
6322 (gdb_init): Initialize saved_command_line
6323 and previous_saved_command_line.
6324 * main.c (captured_main_1): Remove saved_command_line initialization.
6325 * event-top.c (handle_line_of_input): Update to use
6326 the new 'repeat' related functions instead of direct access to
6328 * command.h (repeat_previous, get_saved_command_line,
6329 save_command_line): New declarations.
6330 (dont_repeat): Add comment.
6332 2019-05-30 Tom Tromey <tromey@adacore.com>
6334 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
6336 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
6338 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
6341 * completer.c (complete): Initialize variable word.
6343 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
6345 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
6346 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
6347 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
6348 'body' is NULL to the outter 'if', protecting the '!is_define'
6351 2019-05-29 Tom Tromey <tromey@adacore.com>
6353 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
6354 (dwarf_unknown): New function.
6355 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
6356 (dwarf_type_encoding_name): Use dwarf_unknown.
6358 2019-05-29 Tom Tromey <tromey@adacore.com>
6361 * cp-valprint.c (cp_print_value_fields): Call
6362 cp_print_static_field inside "try".
6364 2019-05-29 Tom Tromey <tromey@adacore.com>
6366 * inflow.c (struct terminal_info): Add default operator=.
6367 * configure: Rebuild.
6368 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
6369 -Wdeprecated-copy-dtor, -Wredundant-move.
6371 2019-05-29 Tom Tromey <tromey@adacore.com>
6374 * infcmd.c (print_return_value_1): Handle finish_print
6376 (show_print_finish): New function.
6377 (_initialize_infcmd): Add "set/show print finish" commands.
6378 * valprint.c (user_print_options): Initialize new member.
6379 * valprint.h (struct value_print_options) <finish_print>: New
6382 2019-05-28 Tom Tromey <tromey@adacore.com>
6384 * ada-lang.c (ada_remove_Xbn_suffix)
6385 (find_old_style_renaming_symbol)
6386 (parse_old_style_renaming): Remove.
6387 (ada_find_renaming_symbol): Don't call
6388 find_old_style_renaming_symbol.
6389 (ada_is_renaming_symbol): Rename from
6390 ada_find_renaming_symbol. Remove "block" parameter. Return
6392 (ada_read_var_value): Update and simplify.
6393 * ada-exp.y (write_var_or_type): Remove old code.
6395 2019-05-28 Alan Hayward <alan.hayward@arm.com>
6397 * event-top.c: Remove include comment.
6398 * inflow.c (class scoped_ignore_sigttou): Move from here...
6399 * inflow.h (class scoped_ignore_sigttou): ...to here.
6400 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
6401 * top.c: Remove include comment.
6403 2019-05-27 Tom Tromey <tom@tromey.com>
6407 2019-05-22 Tom Tromey <tromey@adacore.com>
6409 * target.c (target_follow_exec): Constify parameter.
6410 * target-delegates.c: Rebuild.
6411 * remote.c (remote_target::follow_exec): Constify parameter.
6412 * infrun.c (follow_exec): Constify parameter.
6413 * target.h (struct target_ops) <follow_exec>: Constify parameter.
6414 (target_follow_exec): Likewise.
6416 2019-05-22 Alan Hayward <alan.hayward@arm.com>
6418 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
6419 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
6421 2019-05-22 Alan Hayward <alan.hayward@arm.com>
6423 * NEWS: Add debugredirect and testsuite sections.
6425 2019-05-22 Simon Cook <simon.cook@embecosm.com>
6427 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
6428 target descriptions using exclusively floating point register name
6431 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
6434 * f-lang.c (build_fortran_types): Handle the case where
6435 gdbarch_floatformat_for_type returns a nullptr.
6437 2019-05-21 Tom de Vries <tdevries@suse.de>
6440 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
6442 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
6445 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
6447 * i386-tdep.c (i386_floatformat_for_type): Use
6448 floatformats_ia64_quad for the 16-byte floating point component
6449 within a fortran 32-byte complex number.
6451 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
6453 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
6454 delete default constructor.
6455 (find_partial_die): Update to return const struct.
6456 (partial_die_parent_scope): Move variable declaration into scope
6457 of its use and change its type to auto.
6458 (guess_partial_die_structure_name): Likewise.
6459 (partial_die_info::fixup): Likewise.
6461 2019-05-17 Tom Tromey <tromey@adacore.com>
6463 * source.c (find_and_open_source): Remove cast.
6465 2019-05-17 Tom Tromey <tromey@adacore.com>
6467 * annotate.c (annotate_source): Make "filename" const.
6468 * annotate.h (annotate_source): Use const.
6470 2019-05-17 Alan Hayward <alan.hayward@arm.com>
6472 * disasm.c (set_disassembler_options): Send errors to stderr.
6474 2019-05-17 Alan Hayward <alan.hayward@arm.com>
6476 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
6477 (cli_interp_base::set_logging): Check debug_redirect.
6478 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
6479 * cli/cli-logging.c (debug_redirect): Add static variable.
6480 (pop_output_files): Add default param.
6481 (handle_redirections): Print debug setting.
6482 (show_logging_command): Likewise.
6483 (_initialize_cli_logging): Add debugredirect command.
6484 * interps.c (current_interp_set_logging): Add debug_redirect
6486 * interps.h (set_logging): Add debug_redirect parameter.
6487 (current_interp_set_logging): Likewise.
6488 * mi/mi-common.h: Likewise.
6489 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
6491 2019-05-17 Alan Hayward <alan.hayward@arm.com>
6492 Tom Tromey <tromey@adacore.com>
6494 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
6496 * cli/cli-interp.h (make_logging_output): Remove declaration.
6497 * cli/cli-logging.c (make_logging_output): Remove function.
6498 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
6500 * ui-file.c (tee_file::tee_file): Remove bools.
6501 (tee_file::~tee_file): Remove deletes.
6502 * ui-file.h (tee_file): Remove bools.
6504 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
6506 * mi/mi-cmds.h (mi_cmd_complete): New function.
6507 * mi/mi-main.c (mi_cmd_complete): Likewise.
6508 * mi/mi-cmds.c: Define new MI command -complete.
6509 * NEWS: Mention new -complete command.
6511 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
6513 * completer.h (complete): New function.
6514 * completer.c (complete): Likewise.
6515 * cli/cli-cmds.c: (complete_command): Update to use new complete()
6516 function defined in completer.h.
6518 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
6520 * MAINTAINERS (Write After Approval): Add myself.
6522 2019-05-17 Tom de Vries <tdevries@suse.de>
6525 * dwarf2read.c (struct cu_partial_die_info): New struct.
6526 (find_partial_die): Return cu_partial_die_info.
6527 (partial_die_parent_scope, guess_partial_die_structure_name)
6528 (partial_die_info::fixup): Handle new return type of find_partial_die.
6530 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6532 PR breakpoints/24541
6533 * stap-probe.c (stap_parse_register_operand): Make "regname" an
6534 "std::string", simplifying the algorithm.
6536 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6538 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
6539 (stap_static_probe_ops::get_probes): Likewise.
6541 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6543 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
6544 '-')" and "else if".
6545 (stap_parse_single_operand): Join checks for
6546 "gdbarch_stap_parse_special_token_p" and
6547 "gdbarch_stap_parse_special_token" in the same "if" statement.
6548 Invert check when verifying for operation on register
6551 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6553 * stap-probe.c (stap_get_opcode): Update comment.
6554 (stap_get_expected_argument_type): Likewise.
6555 (handle_stap_probe): Likewise.
6557 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6559 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
6560 return type to 'bool'. Adjust comment. Use 'bool' when
6562 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6563 * stap-probe.c (stap_parse_argument_1): Likewise.
6564 (stap_is_operator): Likewise.
6565 (stap_is_generic_prefix): Likewise.
6566 (stap_is_register_prefix): Likewise.
6567 (stap_is_register_indirection_prefix): Likewise.
6568 (stap_is_integer_prefix): Likewise.
6569 (stap_generic_check_suffix): Likewise.
6570 (stap_check_integer_suffix): Likewise.
6571 (stap_check_register_suffix): Likewise.
6572 (stap_check_register_indirection_suffix): Likewise.
6573 (stap_parse_register_operand): Likewise.
6574 (stap_parse_single_operand): Likewise.
6575 (stap_parse_argument_1): Likewise.
6576 (stap_probe::get_argument_count): Likewise.
6577 (stap_is_operator): Likewise.
6579 2019-05-16 Tom Tromey <tromey@adacore.com>
6581 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
6584 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
6586 * linux-thread-db.c (try_thread_db_load_1): Change return type
6588 (try_thread_db_load): Likewise.
6589 (try_thread_db_load_from_pdir_1): Likewise.
6590 (try_thread_db_load_from_pdir): Likewise.
6591 (try_thread_db_load_from_sdir): Likewise.
6592 (try_thread_db_load_from_dir): Likewise.
6593 (thread_db_load_search): Likewise.
6594 (has_libpthread): Likewise.
6595 (thread_db_load): Likewise.
6597 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
6599 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
6600 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
6601 NULL, and complain/return if that's the case.
6603 2019-05-15 John Darrington <john@darrington.wattle.id.au>
6605 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
6606 (advance, posn, abstract_read_memory): New functions.
6607 [struct mem_read_abstraction]: New struct.
6608 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
6610 2019-05-14 Tom Tromey <tromey@adacore.com>
6612 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
6613 value is not lval_memory.
6615 2019-05-14 Tom Tromey <tromey@adacore.com>
6617 * solib.c (info_sharedlibrary_command): Style the file name.
6619 2019-05-14 Alan Hayward <alan.hayward@arm.com>
6621 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
6622 (aarch64_vnv_type): Likewise.
6623 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
6624 * common/tdesc.c: Likewise.
6625 * common/tdesc.h (enum tdesc_type_kind): Likewise.
6626 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
6627 * features/aarch64-fpu.xml: Add ieee half view.
6628 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
6629 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
6630 * gdbtypes.h (struct builtin_type): Likewise.
6631 (struct objfile_type): Likewise.
6633 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
6635 * language.c (language_sniff_from_mangled_name): Fix "langauge"
6637 * location.h (string_to_event_location): Likewise.
6639 2019-05-11 Joel Brobecker <brobecker@adacore.com>
6643 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
6645 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
6646 New variable declaration.
6647 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
6649 (print_one_breakpoint): Use ui_out::test_flags and new global
6650 variable to compute use_fixed_output.
6651 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
6653 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
6654 (mi_multi_location_breakpoint_output_fixed): Remove.
6655 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
6657 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
6658 fix_multi_location_breakpoint_output flag if version >= 3.
6659 * ui-out.h (enum ui_out_flag)
6660 <fix_multi_location_breakpoint_output>: New enumerator.
6662 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
6664 * contrib/cc-with-tweaks.sh: Validate dwz's work.
6666 2019-05-10 Tom Tromey <tromey@adacore.com>
6668 * ada-lang.c (catch_ada_completer): New function.
6669 (_initialize_ada_language): Use it.
6671 2019-05-10 Tom Tromey <tromey@adacore.com>
6673 * thread.c (print_thread_info): Make "requested_threads" const.
6674 * gdbthread.h (print_thread_info): Make "requested_threads"
6676 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
6677 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
6679 2019-05-08 Tom Tromey <tom@tromey.com>
6681 * gdbtypes.c (objfile_type_data): Change type.
6682 (objfile_type, _initialize_gdbtypes): Update.
6684 2019-05-08 Tom Tromey <tom@tromey.com>
6686 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
6687 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
6688 (_initialize_dwarf2_frame): Update.
6690 2019-05-08 Tom Tromey <tom@tromey.com>
6692 * objc-lang.c (objc_objfile_data): Change type.
6693 (find_methods): Update.
6694 (_initialize_objc_lang): Remove.
6696 2019-05-08 Tom Tromey <tom@tromey.com>
6698 * stabsread.c (rs6000_builtin_type_data): Change type.
6699 (rs6000_builtin_type, _initialize_stabsread): Update.
6701 2019-05-08 Tom Tromey <tom@tromey.com>
6703 * mips-tdep.c (mips_pdr_data): Remove.
6704 (_initialize_mips_tdep): Update.
6706 2019-05-08 Tom Tromey <tom@tromey.com>
6708 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
6709 (hppa_init_objfile_priv_data, read_unwind_info)
6710 (find_unwind_entry, _initialize_hppa_tdep): Update.
6712 2019-05-08 Tom Tromey <tom@tromey.com>
6714 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
6715 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
6717 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
6719 2019-05-08 Tom Tromey <tom@tromey.com>
6721 * mdebugread.c (basic_type_data): Change type.
6722 (basic_type, _initialize_mdebugread): Update.
6724 2019-05-08 Tom Tromey <tom@tromey.com>
6726 * common/gdb_unique_ptr.h (struct noop_deleter): New.
6728 2019-05-08 Tom Tromey <tom@tromey.com>
6730 * nto-tdep.c (nto_inferior_data_reg): Change type.
6731 (nto_inferior_data): Update.
6732 (nto_inferior_data_cleanup, nto_new_inferior_data)
6733 (_initialize_nto_tdep): Remove.
6734 * nto-tdep.h (struct nto_inferior_data): Add initializers.
6736 2019-05-08 Tom Tromey <tom@tromey.com>
6738 * ada-lang.c (struct ada_inferior_data): Add initializers.
6739 (ada_inferior_data): Change type.
6740 (ada_inferior_data_cleanup): Remove.
6741 (get_ada_inferior_data, ada_inferior_exit)
6742 (struct ada_pspace_data): Add initializers, destructor.
6743 (ada_pspace_data_handle): Change type.
6744 (get_ada_pspace_data): Update.
6745 (ada_pspace_data_cleanup): Remove.
6747 2019-05-08 Tom Tromey <tom@tromey.com>
6749 * coffread.c (struct coff_symfile_info): Add initializers.
6750 (coff_objfile_data_key): Move lower. Change type.
6751 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
6753 (coff_free_info): Remove.
6755 2019-05-08 Tom Tromey <tom@tromey.com>
6757 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
6758 (fbsd_pspace_data_handle): Move lower. Change type.
6759 (get_fbsd_pspace_data): Update.
6760 (fbsd_pspace_data_cleanup): Remove.
6761 (_initialize_fbsd_tdep): Update.
6763 2019-05-08 Tom Tromey <tom@tromey.com>
6765 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
6766 (get_ada_tasks_pspace_data): Update.
6767 (ada_tasks_pspace_data_cleanup): Remove.
6768 (_initialize_tasks): Update.
6769 (ada_tasks_inferior_data_handle): Change type.
6770 (get_ada_tasks_inferior_data): Update.
6771 (ada_tasks_inferior_data_cleanup): Remove.
6772 (struct ada_tasks_pspace_data): Add initializers.
6774 2019-05-08 Tom Tromey <tom@tromey.com>
6776 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
6777 * symfile-debug.c (debug_sym_get_probes): Change type.
6778 * stap-probe.c (handle_stap_probe):
6779 (stap_static_probe_ops::get_probes): Change type.
6780 * probe.h (class static_probe_ops) <get_probes>: Change type.
6781 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
6782 (parse_probes_in_pspace): Update.
6783 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
6785 (any_static_probe_ops::get_probes): Change type.
6786 * elfread.c (elfread_data): New typedef.
6787 (probe_key): Change type.
6788 (elf_get_probes): Likewise. Update.
6789 (probe_key_free): Remove.
6790 (_initialize_elfread): Update.
6791 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
6793 (dtrace_process_dof_probe, dtrace_process_dof)
6794 (dtrace_static_probe_ops::get_probe): Change type.
6796 2019-05-08 Tom Tromey <tom@tromey.com>
6798 * xcoffread.c (struct xcoff_symfile_info): Rename from
6799 coff_symfile_info. Add initializers.
6800 (xcoff_objfile_data_key): Move lower. Change type.
6801 (XCOFF_DATA): Rewrite.
6802 (xcoff_free_info): Remove.
6803 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
6804 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
6805 (xcoff_initial_scan): Update.
6807 2019-05-08 Tom Tromey <tom@tromey.com>
6809 * solib-svr4.c (struct svr4_info): Add initializers and
6811 <probes_table>: Now an htab_up.
6812 (solib_svr4_pspace_data): Change type.
6813 (free_probes_table): Simplify.
6814 (~svr4_info): Rename from svr4_pspace_data_cleanup.
6815 (get_svr4_info, probes_table_htab_remove_objfile_probes)
6816 (probes_table_remove_objfile_probes, register_solib_event_probe)
6817 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
6818 (_initialize_svr4_solib): Update.
6820 2019-05-08 Tom Tromey <tom@tromey.com>
6822 * remote.c (remote_pspace_data): Change type.
6823 (remote_pspace_data_cleanup): Remove.
6824 (get_remote_exec_file, set_pspace_remote_exec_file)
6825 (_initialize_remote): Update.
6827 2019-05-08 Tom Tromey <tom@tromey.com>
6829 * breakpoint.c (breakpoint_objfile_key): Change type.
6830 (get_breakpoint_objfile_data): Update.
6831 (free_breakpoint_objfile_data): Remove.
6832 (_initialize_breakpoint): Update.
6834 2019-05-08 Tom Tromey <tom@tromey.com>
6836 * linux-tdep.c (struct linux_info): Add initializers.
6837 (linux_inferior_data): Move. Change type.
6838 (invalidate_linux_cache_inf): Update.
6839 (linux_inferior_data_cleanup): Remove.
6840 (get_linux_inferior_data, _initialize_linux_tdep): Update.
6842 2019-05-08 Tom Tromey <tom@tromey.com>
6844 * auxv.c (auxv_inferior_data): Move. Change type.
6845 (auxv_inferior_data_cleanup): Remove.
6846 (invalidate_auxv_cache_inf): Rewrite.
6847 (get_auxv_inferior_data, _initialize_auxv): Update.
6849 2019-05-08 Tom Tromey <tom@tromey.com>
6851 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
6852 (symfile_debug_objfile_data_key): Change type.
6853 (symfile_debug_installed, debug_qf_has_symbols)
6854 (debug_qf_find_last_source_symtab)
6855 (debug_qf_forget_cached_source_info)
6856 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
6857 (debug_qf_print_stats, debug_qf_dump)
6858 (debug_qf_expand_symtabs_for_function)
6859 (debug_qf_expand_all_symtabs)
6860 (debug_qf_expand_symtabs_with_fullname)
6861 (debug_qf_map_matching_symbols)
6862 (debug_qf_expand_symtabs_matching)
6863 (debug_qf_find_pc_sect_compunit_symtab)
6864 (debug_qf_map_symbol_filenames)
6865 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
6866 (debug_sym_new_init, debug_sym_init, debug_sym_read)
6867 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
6868 (debug_sym_read_linetable, debug_sym_relocate): Update.
6869 (symfile_debug_free_objfile): Remove.
6870 (install_symfile_debug_logging, _initialize_symfile_debug):
6873 2019-05-08 Tom Tromey <tom@tromey.com>
6875 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
6876 allocate_on_obstack.
6877 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
6878 (get_dwarf2_per_objfile): Update.
6879 (set_dwarf2_per_objfile): Remove.
6880 (dwarf2_has_info, dwarf2_get_section_info): Update.
6881 (dwarf2_free_objfile): Remove.
6882 (_initialize_dwarf2_read): Update.
6884 2019-05-08 Tom Tromey <tom@tromey.com>
6886 * auto-load.c (struct auto_load_pspace_info): Add destructor and
6888 <unsupported_script_warning_printed,
6889 script_not_found_warning_printed>: Now bool.
6890 (auto_load_pspace_data): Change type.
6891 (~auto_load_pspace_info): Rename from
6892 auto_load_pspace_data_cleanup.
6893 (get_auto_load_pspace_data, init_loaded_scripts_info)
6894 (clear_section_scripts, maybe_print_unsupported_script_warning)
6895 (maybe_print_script_not_found_warning, _initialize_auto_load):
6898 2019-05-08 Tom Tromey <tom@tromey.com>
6900 * objfiles.c (objfile_pspace_info): Add destructor and
6902 (objfiles_pspace_data): Change type.
6903 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
6904 (get_objfile_pspace_data): Update.
6905 (objfiles_bfd_data): Change type.
6906 (get_objfile_bfd_data): Update.
6907 (objfile_bfd_data_free, _initialize_objfiles): Remove.
6909 2019-05-08 Tom Tromey <tom@tromey.com>
6911 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
6913 (get_catch_syscall_inferior_data): Update.
6914 (catch_syscall_inferior_data_cleanup): Remove.
6915 (_initialize_break_catch_syscall): Update.
6917 2019-05-08 Tom Tromey <tom@tromey.com>
6919 * inflow.c (struct terminal_info): Add destructor and
6921 (inflow_inferior_data): Change type.
6922 (~terminal_info): Rename from inflow_inferior_data_cleanup.
6923 (get_inflow_inferior_data, inflow_inferior_exit)
6924 (swap_terminal_info, _initialize_inflow): Update.
6926 2019-05-08 Tom Tromey <tom@tromey.com>
6928 * target-dcache.c (target_dcache_cleanup): Remove.
6929 (target_dcache_aspace_key): Change type.
6930 (target_dcache_init_p, target_dcache_invalidate)
6931 (target_dcache_get, target_dcache_get_or_init)
6932 (_initialize_target_dcache): Update.
6933 * dcache.h (struct dcache_deleter): New.
6935 2019-05-08 Tom Tromey <tom@tromey.com>
6937 * symtab.c (struct symbol_cache): Add destructor and
6939 (symbol_cache_key): Move. Change type.
6940 (make_symbol_cache, free_symbol_cache): Remove.
6941 (get_symbol_cache): Update.
6942 (symbol_cache_cleanup): Remove.
6943 (ALL_PSPACES, symbol_cache_flush)
6944 (maintenance_print_symbol_cache)
6945 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
6948 2019-05-08 Tom Tromey <tom@tromey.com>
6950 * symtab.c (struct main_info): Add destructor and initializers.
6951 (main_progspace_key): Move. Change type.
6952 (get_main_info): Update.
6953 (main_info_cleanup): Remove.
6954 (_initialize_symtab): Update.
6956 2019-05-08 Tom Tromey <tom@tromey.com>
6958 * registry.h (DECLARE_REGISTRY): Define the _key class.
6960 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6962 * NEWS: Merge two 'New commands' sections.
6964 2019-05-08 Joel Brobecker <brobecker@adacore.com>
6966 * ada-valprint.c (ada_val_print_gnat_array): Remove language
6967 parameter and use Ada language definition instead.
6968 (ada_val_print_ptr): Remove unused language parameter.
6969 (ada_val_print_num): Remove language parameter and use Ada language
6971 (ada_val_print_enum, ada_val_print_flt): Remove unused language
6973 (ada_val_print_struct_union, ada_val_print_ref): Remove language
6974 parameter and use Ada language definition instead.
6975 (ada_val_print_1): Update all ada_val_print_xxx calls.
6976 Remove language parameter.
6977 (ada_val_print): Update ada_val_print_1 call.
6979 2019-05-08 Tom Tromey <tromey@adacore.com>
6981 * remote.c (remote_hw_watchpoint_limit)
6982 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
6985 2019-05-08 Tom Tromey <tromey@adacore.com>
6987 * maint.c (_initialize_maint_cmds): Move initialization code to
6989 (watchdog, show_watchdog): Move to remote.c.
6990 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
6992 (_initialize_remote): Move initialization code from maint.c.
6993 * defs.h (watchdog): Don't declare.
6995 2019-05-08 Tom Tromey <tromey@adacore.com>
6997 * tui/tui-interp.c: Include main.h.
6998 * interps.c: Include main.h.
6999 * main.h (interpreter_p): Declare.
7000 * defs.h (interpreter_p): Don't declare.
7002 2019-05-08 Tom Tromey <tromey@adacore.com>
7004 * dwarf2loc.c: Include dwarf2read.h.
7005 * defs.h (read_unsigned_leb128): Don't declare.
7006 * dwarf2read.h (read_unsigned_leb128): Declare.
7008 2019-05-08 Tom Tromey <tromey@adacore.com>
7010 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
7013 2019-05-08 Tom Tromey <tromey@adacore.com>
7015 * utils.c (fputs_maybe_filtered): Reset style after paging, even
7016 when no wrap column is set.
7018 2019-05-08 Tom Tromey <tromey@adacore.com>
7020 * c-lang.c (c_get_string): Handle non-C-style arrays.
7022 2019-05-08 Tom Tromey <tromey@adacore.com>
7024 * typeprint.c (print_offset_data::update): Print the bit offset,
7025 not the number of bits remaining.
7027 2019-05-08 Tom Tromey <tromey@adacore.com>
7029 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
7030 padding at end of comment.
7032 2019-05-08 Tom Tromey <tromey@adacore.com>
7034 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
7037 2019-05-06 Tom Tromey <tom@tromey.com>
7039 * common/scoped_mmap.c: Include common-defs.h.
7040 * common/scoped_mmap.h: Don't include config.h.
7042 2019-05-04 Tom Tromey <tom@tromey.com>
7044 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
7045 (struct aarch64_call_info): Add initializers.
7046 <si>: Now a std::vector.
7047 (pass_on_stack, aarch64_push_dummy_call): Update.
7049 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
7050 Tom Tromey <tom@tromey.com>
7052 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
7053 (ppc_threads): Now a std::vector. Now static.
7054 (hwdebug_find_thread_points_by_tid)
7055 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
7058 2019-05-04 Tom Tromey <tom@tromey.com>
7060 * arc-tdep.c (arc_tdesc_init): Return bool.
7062 2019-05-04 Tom Tromey <tom@tromey.com>
7064 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
7065 Use gdb_assert_not_reached.
7067 2019-05-04 Tom Tromey <tom@tromey.com>
7069 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
7072 2019-05-04 Tom Tromey <tom@tromey.com>
7074 * arc-tdep.c (arc_tdesc_init): Use bool.
7076 2019-05-04 Tom Tromey <tom@tromey.com>
7078 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
7080 2019-05-04 Tom Tromey <tom@tromey.com>
7082 * cli/cli-cmds.c (valid_command_p): Return bool.
7084 2019-05-04 Tom Tromey <tom@tromey.com>
7086 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
7087 * command.h (valid_user_defined_cmd_name_p): Channge return type.
7089 2019-05-04 Raul Tambre <raul@tambre.ee>
7091 * python/lib/gdb/prompt.py (_ExtendedPrompt)
7092 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
7093 operator for comparison.
7095 2019-05-04 Tom Tromey <tom@tromey.com>
7097 * psymtab.c (psymbol_name_matches, match_partial_symbol)
7098 (lookup_partial_symbol, print_partial_symbols)
7099 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
7100 (psymbol_compare): Update.
7101 (add_psymbol_to_bcache): Clear the entire psymbol.
7102 (maintenance_check_psymtabs): Update.
7103 * psympriv.h (struct partial_symbol): Don't derive from
7104 general_symbol_info.
7105 <obj_section, unrelocated_address, address,
7106 set_unrelocated_address>: Update.
7107 <ginfo>: New member.
7108 * dwarf-index-write.c (write_psymbols, debug_names::insert)
7109 (debug_names::write_psymbols): Update.
7111 2019-05-04 Tom de Vries <tdevries@suse.de>
7113 * contrib/cc-with-tweaks.sh: Support -n arg.
7115 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7117 * corelow.c (core_target::detach): Ensure frame cache and
7118 register caches are cleared.
7119 inferior.c (exit_inferior_1): Likewise.
7121 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
7122 Tom Tromey <tom@tromey.com>
7124 * dictionary.c (collate_pending_symbols_by_language): Remove
7125 "struct" from foreach.
7126 * symtab.c (lookup_global_symbol_from_objfile)
7127 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
7129 * ser-tcp.c (net_open): Remove "struct" from foreach.
7130 * objfiles.c (objfile_relocate, objfile_rebase)
7131 (objfile_has_symbols): Remove "struct" from foreach.
7132 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
7134 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
7136 * darwin-nat.c (thread_info_from_private_thread_info): Remove
7137 "struct" from foreach.
7138 * ada-lang.c (create_excep_cond_exprs)
7139 (ada_exception_catchpoint_cond_string): Remove "struct" from
7142 2019-05-03 Tom Tromey <tromey@adacore.com>
7144 * ada-exp.y (convert_char_literal): Check suffix of each
7147 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
7150 * ada-exp.y (yywrap): Don't define.
7151 * ada-lex.l (%option): Add noyywrap
7154 2019-05-03 Eli Zaretskii <eliz@gnu.org>
7156 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
7157 _WIN32_WINNT to the XP level, unless already defined to a higher
7160 * unittests/parse-connection-spec-selftests.c:
7162 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
7165 * symfile.c (find_separate_debug_file): Remove colon from the
7166 drive spec of DOS/Windows file names of the target, so that the
7167 file name produced from DEBUGDIR and the target's directory will
7168 be valid on DOS/Windows systems.
7170 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
7172 * rust-lang.c (val_print_struct): Handle printing structures
7175 2019-05-02 Tom Tromey <tromey@adacore.com>
7177 * valarith.c (_initialize_valarith): Remove.
7179 2019-05-01 Tom Tromey <tromey@adacore.com>
7181 * ada-lang.c (ada_value_primitive_field): Treat more fields as
7184 2019-05-01 Tom Tromey <tromey@adacore.com>
7186 * ada-lang.c (ada_value_assign): Correctly compute starting offset
7187 for big-endian copies.
7189 2019-04-30 Ali Tamur <tamur@google.com>
7190 * gdb/dwarf2read.c (read_3_bytes): New declaration.
7191 (read_attribute_value): Added DW_FORM_strx1-4 cases.
7192 (read_3_bytes): New function.
7194 2019-04-30 Joel Brobecker <brobecker@adacore.com>
7196 * windows-nat.c (main_thread_id): Delete.
7197 (handle_output_debug_string): Replace main_thread_id by
7198 current_event.dwThreadId.
7199 (fake_create_process): Likewise.
7200 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
7201 Do not set main_thread_id.
7202 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
7203 current_event.dwThreadId.
7204 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
7206 2019-04-30 Joel Brobecker <brobecker@adacore.com>
7208 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
7209 Use current_event.dwThreadId instead of main_thread_id.
7211 2019-04-30 Tom Tromey <tromey@adacore.com>
7213 * ada-lang.c (ada_lookup_simple_minsyms): New function.
7214 (create_excep_cond_exprs): Iterate over program spaces.
7215 (ada_exception_catchpoint_cond_string): Examine all minimal
7216 symbols for exception types.
7218 2019-04-30 Tom Tromey <tromey@adacore.com>
7221 * dwarf2read.c (process_structure_scope): Handle case where type
7222 has template parameters but no symbol was created.
7224 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7225 Chris January <chris.january@arm.com>
7227 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
7229 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
7231 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7233 * f-typeprint.c (f_print_type): Update rules for printing
7235 (f_type_print_varspec_suffix): Likewise.
7237 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7238 Chris January <chris.january@arm.com>
7240 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
7243 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7245 * f-lang.c (build_fortran_types): Change name of void type to
7247 * f-typeprint.c (f_type_print_base): Print the name of the void
7248 type, rather than a fixed string.
7249 * f-valprint.c (f_decorations): Use lower case void string.
7251 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7252 Chris January <chris.january@arm.com>
7254 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
7257 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7258 Chris January <chris.january@arm.com>
7259 David Lecomber <david.lecomber@arm.com>
7261 * f-exp.y (BINOP_INTRINSIC): New token.
7262 (exp): New parser rule handling BINOP_INTRINSIC.
7263 (f77_keywords): Add new builtin procedures.
7264 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
7265 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7266 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
7267 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7268 (print_unop_subexp_f): New function.
7269 (print_binop_subexp_f): New function.
7270 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
7271 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7272 (dump_subexp_body_f): Likewise.
7273 (operator_check_f): Likewise.
7274 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
7275 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
7277 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7279 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
7281 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
7282 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
7283 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
7284 (operator_length_f): New fuction.
7285 (print_subexp_f): New function.
7286 (op_name_f): New function.
7287 (dump_subexp_body_f): New function.
7288 (operator_check_f): New function.
7289 (exp_descriptor_f): Replace standard expression handling functions
7291 * gdb/fortran-operator.def: New file.
7292 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
7293 * gdb/std-operator.def: Remove UNOP_KIND.
7295 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7297 * std-operator.def: Remove unbalanced, stray double quote
7300 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7301 Chris January <chris.january@arm.com>
7302 Daniel Everett <daniel.everett@arm.com>
7303 Nick Forrington <nick.forrington@arm.com>
7304 Richard Bunt <richard.bunt@arm.com>
7306 * cp-valprint.c (cp_print_value_fields): Allow an additional level
7307 of depth when printing anonymous structs or unions.
7308 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
7309 Don't print either the top-level value, or the children if the
7310 max-depth is exceeded.
7311 (ppscm_print_children): When printing the key of a map, allow one
7312 extra level of depth.
7313 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
7314 print either the top-level value, or the children if the max-depth
7316 (print_children): When printing the key of a map, allow one extra
7318 * python/py-value.c (valpy_format_string): Add max_depth keyword.
7319 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
7320 (user_print_options): Initialise max_depth field.
7321 (val_print_scalar_or_string_type_p): New function.
7322 (val_print): Check to see if the max depth has been reached.
7323 (val_print_check_max_depth): Define new function.
7324 (show_print_max_depth): New function.
7325 (_initialize_valprint): Add 'print max-depth' option.
7326 * valprint.h (struct value_print_options) <max_depth>: New field.
7327 (val_print_check_max_depth): Declare new function.
7328 * NEWS: Document new feature.
7330 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7332 * ada-lang.c (ada_language_defn): Initialise new field.
7333 * c-lang.c (c_is_string_type_p): New function.
7334 (c_language_defn): Initialise new field.
7335 (cplus_language_defn): Initialise new field.
7336 (asm_language_defn): Initialise new field.
7337 (minimal_language_defn): Initialise new field.
7338 * c-lang.h (c_is_string_type_p): Declare new function.
7339 * d-lang.c (d_language_defn): Initialise new field.
7340 * f-lang.c (f_is_string_type_p): New function.
7341 (f_language_defn): Initialise new field.
7342 * go-lang.c (go_is_string_type_p): New function.
7343 (go_language_defn): Initialise new field.
7344 * language.c (default_is_string_type_p): New function.
7345 (unknown_language_defn): Initialise new field.
7346 (auto_language_defn): Initialise new field.
7347 * language.h (struct language_defn) <la_is_string_type_p>: New
7349 (default_is_string_type_p): Declare new function.
7350 * m2-lang.c (m2_language_defn): Initialise new field.
7351 * objc-lang.c (objc_language_defn): Initialise new field.
7352 * opencl-lang.c (opencl_language_defn): Initialise new field.
7353 * p-lang.c (pascal_is_string_type_p): New function.
7354 (pascal_language_defn): Initialise new field.
7355 * rust-lang.c (rust_is_string_type_p): New function.
7356 (rust_language_defn): Initialise new field.
7358 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7360 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
7362 * ada-lang.c (ada_language_defn): Initialise new field.
7363 * c-lang.c (c_language_defn): Likewise.
7364 (cplus_language_defn): Likewise.
7365 (asm_language_defn): Likewise.
7366 (minimal_language_defn): Likewise.
7367 * d-lang.c (d_language_defn): Likewise.
7368 * f-lang.c (f_language_defn): Likewise.
7369 * go-lang.c (go_language_defn): Likewise.
7370 * language.c (unknown_language_defn): Likewise.
7371 (auto_language_defn): Likewise.
7372 * m2-lang.c (m2_language_defn): Likewise.
7373 * objc-lang.c (objc_language_defn): Likewise.
7374 * opencl-lang.c (opencl_language_defn): Likewise.
7375 * p-lang.c (pascal_language_defn): Likewise.
7376 * rust-lang.c (rust_language_defn): Likewise.
7378 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7380 * ada-lang.c (ada_is_character_type): Change return type to bool.
7381 (ada_is_string_type): Likewise.
7382 * ada-lang.h (ada_is_character_type): Update declaration
7383 (ada_is_string_type): Likewise.
7385 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7387 Support style in 'frame|thread apply'
7389 * gdbcmd.h (execute_command_to_string): New term_out parameter.
7390 * record.c (record_start, record_stop): Update callers of
7391 execute_command_to_string with false.
7392 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
7393 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
7395 (class string_file): New constructor with term_out parameter.
7396 Override methods term_out and can_emit_style_escape. New member
7398 (class stdio_file): Override can_emit_style_escape.
7399 (class tee_file): Override term_out and can_emit_style_escape.
7400 * utils.h (can_emit_style_escape): Remove.
7401 * utils.c (can_emit_style_escape): Likewise.
7402 Update all callers of can_emit_style_escape (SOMESTREAM) to
7403 SOMESTREAM->can_emit_style_escape.
7404 * source-cache.c (source_cache::get_source_lines): Likewise.
7405 * stack.c (frame_apply_command_count): Call execute_command_to_string
7406 passing the term_out characteristic of the current gdb_stdout.
7407 * thread.c (thr_try_catch_cmd): Likewise.
7408 * top.c (execute_command_to_string): pass term_out parameter
7409 to construct the string_file for the command output.
7410 * ui-file.c (term_cli_styling): New function (most code moved
7411 from utils.c can_emit_style_escape).
7412 (string_file::string_file, string_file::can_emit_style_escape,
7413 stdio_file::can_emit_style_escape, tee_file::term_out,
7414 tee_file::can_emit_style_escape): New functions.
7416 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7418 * NEWS: Mention the new set|show may-call-functions.
7419 * infcall.c (may_call_functions_p): New variable.
7420 (show_may_call_functions_p): New function.
7421 (call_function_by_hand_dummy): Throws an error if not
7423 (_initialize_infcall): Call add_setshow_boolean_cmd for
7426 2019-04-25 Keith Seitz <keiths@redhat.com>
7429 * cp-support.c (inspect_type): Don't attempt substitutions
7430 of symbol with the same name.
7432 2019-04-25 Tom Tromey <tromey@adacore.com>
7435 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
7438 2019-04-25 Tom Tromey <tromey@adacore.com>
7440 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
7442 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
7443 (gdb_xml_parser::parse): Use std::move.
7444 * python/python-internal.h (gdbpy_convert_exception): Take a const
7446 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
7448 * python/py-utils.c (gdbpy_convert_exception): Take a const
7450 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
7452 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
7454 * mi/mi-main.c (mi_print_exception): Take a const reference.
7455 * main.c (handle_command_errors): Take a const reference.
7456 * linespec.c (parse_linespec): Use std::move.
7457 * infcall.c (run_inferior_call): Use std::move.
7458 (call_function_by_hand_dummy): Use std::move.
7459 * exec.c (try_open_exec_file): Use std::move.
7460 * exceptions.h (exception_print, exception_fprintf)
7461 (exception_print_same): Update.
7462 * exceptions.c (print_exception, exception_print)
7463 (exception_fprintf, exception_print_same): Change parameters to
7465 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
7466 * common/new-op.c: Use std::move.
7467 * common/common-exceptions.h (struct gdb_exception): Add move
7469 (struct gdb_exception_error, struct gdb_exception_quit, struct
7470 gdb_quit_bad_alloc): Change constructor to move constructor.
7471 (throw_exception): Change parameter to rvalue reference.
7472 * common/common-exceptions.c (throw_exception): Take rvalue
7474 * cli/cli-interp.c (safe_execute_command): Use std::move.
7475 * breakpoint.c (insert_bp_location, location_to_sals): Use
7478 2019-04-25 Tom Tromey <tromey@adacore.com>
7480 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
7481 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
7482 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
7483 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
7484 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
7485 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
7486 guile/scm-value.c: Use unpack.
7487 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
7488 gdbscm_gdb_exception.
7489 (gdbscm_throw_gdb_exception): Likewise.
7490 (struct gdbscm_gdb_exception): New.
7491 (unpack): New function.
7492 (gdbscm_wrap): Use unpack.
7494 2019-04-25 Tom Tromey <tromey@adacore.com>
7496 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
7497 (gdb_rl_callback_handler): Use std::move.
7498 * common/common-exceptions.h (struct gdb_exception): Add move
7499 assignment operator.
7500 (throw_exception_sjlj): Change "exception" to const reference.
7501 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
7502 (throw_exception_sjlj): Change "exception" to const reference.
7504 2019-04-25 Tom Tromey <tromey@adacore.com>
7506 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
7507 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
7508 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
7510 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
7512 * mi/mi-interp.c (mi_interp::exec): Update.
7513 * linespec.c (parse_linespec): Update.
7514 * infcall.c (run_inferior_call): Update.
7515 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
7516 * guile/scm-symbol.c (gdbscm_lookup_symbol)
7517 (gdbscm_lookup_global_symbol): Update.
7518 * guile/scm-param.c (gdbscm_parameter_value): Update.
7519 * guile/scm-frame.c (gdbscm_frame_read_register)
7520 (gdbscm_frame_read_var): Update.
7521 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
7522 * exec.c (try_open_exec_file): Update.
7523 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
7524 (gdb_rl_callback_handler): Update.
7525 * common/common-exceptions.h (exception_none): Don't declare.
7526 * common/common-exceptions.c (exception_none): Don't define.
7527 (struct catcher) <exception>: Update.
7528 * cli/cli-interp.c (safe_execute_command): Update.
7529 * breakpoint.c (insert_bp_location, location_to_sals): Update.
7531 2019-04-25 Ali Tamur <tamur@google.com>
7533 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
7534 (read_attribute_value): Likewise.
7535 (dwarf2_read_addr_index): Update comment.
7536 (read_str_index): Add DW_FORM_strx.
7537 (dwarf2_string_attr): Likewise.
7538 (dwarf2_const_value_attr): Likewise.
7539 (dump_die_shallow): Likewise.
7540 (dwarf2_fetch_constant_bytes): Likewise.
7541 (skip_form_bytes): Likewise.
7542 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
7544 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
7548 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
7549 OFFSET. Verify if current mapping contains an ELF header.
7550 (linux_find_memory_regions_full): Adjust call to
7553 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
7554 Kang Li <kanglictf@gmail.com>
7558 * dwarf2-frame.c (read_initial_length): Be consistent about using
7559 unsigned representation of length.
7560 (decode_frame_entry_1): Likewise. Check for wraparound of
7561 end pointer as well as buffer overflow.
7563 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
7565 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
7568 2019-04-24 Tom Tromey <tromey@adacore.com>
7570 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
7572 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7574 * s12z-tdep.c (s12z_unwind_pc): Delete.
7575 (s12z_unwind_sp): Delete.
7576 (s12z_gdbarch_init): Don't register deleted functions with
7579 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7581 * rl78-tdep.c (rl78_unwind_sp): Delete.
7582 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
7584 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7586 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
7587 (xstormy16_unwind_pc): Delete.
7588 (xstormy16_dummy_id): Delete.
7589 (xstormy16_gdbarch_init): Don't register deleted functions with
7592 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7594 * vax-tdep.c (vax_unwind_pc): Delete.
7595 (vax_gdbarch_init): Don't register deleted function with gdbarch.
7597 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7599 * v850-tdep.c (v850_unwind_sp): Delete.
7600 (v850_unwind_pc): Delete.
7601 (v850_dummy_id): Delete.
7602 (v850_gdbarch_init): Don't register deleted functions with
7605 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7607 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
7608 (tilegx_unwind_pc): Delete.
7609 (tilegx_unwind_dummy_id): Delete.
7610 (tilegx_gdbarch_init): Don't register deleted functions with
7613 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7615 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
7616 (tic6x_dummy_id): Delete.
7617 (tic6x_gdbarch_init): Don't register deleted functions with
7620 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7622 * sparc-tdep.c (sparc_unwind_pc): Delete.
7623 (sparc32_gdbarch_init): Don't register deleted function with
7626 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7628 * sh-tdep.c (sh_unwind_sp): Delete.
7629 (sh_unwind_pc): Delete.
7630 (sh_dummy_id): Delete.
7631 (sh_gdbarch_init): Don't register deleted functions with
7634 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7636 * score-tdep.c (score_unwind_sp): Delete.
7637 (score_unwind_pc): Delete.
7638 (score_dummy_id): Delete.
7639 (score_gdbarch_init): Don't register deleted functions with
7642 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7644 * rx-tdep.c (rx_unwind_pc): Delete.
7645 (rx_unwind_sp): Delete.
7646 (rx_dummy_id): Delete.
7647 (rx_gdbarch_init): Don't register deleted functions with
7648 gdbarch. Update comment.
7650 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7652 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
7653 (rs6000_dummy_id): Delete.
7654 (rs6000_gdbarch_init): Don't register deleted functions with
7657 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7659 * or1k-tdep.c (or1k_dummy_id): Delete.
7660 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
7662 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7664 * nios2-tdep.c (nios2_dummy_id): Delete.
7665 (nios2_unwind_sp): Delete.
7666 (nios2_gdbarch_init): Don't register deleted functions with
7669 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7671 * nds32-tdep.c (nds32_dummy_id): Delete.
7672 (nds32_unwind_pc): Delete.
7673 (nds32_unwind_sp): Delete.
7674 (nds32_gdbarch_init): Don't register deleted functions with
7677 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7679 * msp430-tdep.c (msp430_unwind_pc): Delete.
7680 (msp430_unwind_sp): Delete.
7681 (msp430_dummy_id): Delete.
7682 (msp430_gdbarch_init): Don't register deleted functions with
7685 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7687 * moxie-tdep.c (moxie_unwind_sp): Delete.
7688 (moxie_unwind_pc): Delete.
7689 (moxie_dummy_id): Delete.
7690 (moxie_gdbarch_init): Don't register deleted functions with
7693 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7695 * mn10300-tdep.c (mn10300_dummy_id): Delete.
7696 (mn10300_unwind_pc): Delete.
7697 (mn10300_unwind_sp): Delete.
7698 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
7700 (mn10300_frame_unwind_init): Don't register deleted functions with
7703 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7705 * mep-tdep.c (mep_unwind_pc): Delete.
7706 (mep_unwind_sp): Delete.
7707 (mep_dummy_id): Delete.
7708 (mep_gdbarch_init): Don't register deleted functions with
7711 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7713 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
7714 (m68hc11_unwind_sp): Delete.
7715 (m68hc11_gdbarch_init): Don't register deleted functions with
7718 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7720 * m32r-tdep.c (m32r_unwind_sp): Delete.
7721 (m32r_unwind_pc): Delete.
7722 (m32r_dummy_id): Delete.
7723 (m32r_gdbarch_init): Don't register deleted functions with
7726 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7728 * m32c-tdep.c (m32c_unwind_pc): Delete.
7729 (m32c_unwind_sp): Delete.
7730 (m32c_dummy_id): Delete.
7731 (m32c_gdbarch_init): Don't register deleted functions with
7734 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7736 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
7737 (lm32_unwind_pc): Delete.
7738 (lm32_dummy_id): Delete.
7739 (lm32_gdbarch_init): Don't register deleted functions with
7742 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7744 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
7745 (iq2000_unwind_pc): Delete.
7746 (iq2000_dummy_id): Delete.
7747 (iq2000_gdbarch_init): Don't register deleted functions with
7750 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7752 * nds32-tdep.c (nds32_type_align): Delete.
7753 (nds32_push_dummy_call): Use type_align instead.
7755 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7757 * arm-tdep.c (arm_type_align): Only handle vector override case.
7758 (arm_push_dummy_call): Use type_align.
7759 (arm_gdbarch_init): Register arm_type_align gdbarch function.
7761 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7763 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
7765 (pass_on_stack): Use type_align.
7766 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
7769 2019-04-23 Tom Tromey <tromey@adacore.com>
7771 * dwarf2read.c (line_header::file_name_at): Remove unused
7774 2019-04-23 Tom de Vries <tdevries@suse.de>
7777 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
7781 2019-03-27 Ali Tamur <tamur@google.com>
7783 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
7784 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
7785 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
7786 (dwarf_expr_context::get_addr_index): Likewise
7787 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
7788 (symbol_needs_eval_context::get_addr_index): Likewise
7789 (disassemble_dwarf_expression): Add DW_OP_addrx
7790 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
7791 (read_cutu_die_from_dwo): Update comment
7792 (skip_one_die): Add DW_FORM_addrx
7793 (read_attribute_value): Likewise
7794 (var_decode_location): Add DW_OP_addrx
7795 (dwarf2_const_value_attr): Add DW_FORM_addrx
7796 (dump_die_shallow): Likewise
7797 (dwarf2_fetch_constant_bytes): Likewise
7798 (decode_locdesc): Add DW_OP_addrx
7799 (skip_form_bytes): Add DW_FORM_addrx
7801 2019-04-22 Ali Tamur <tamur@google.com>
7803 * MAINTAINERS (Write After Approval): Add self.
7805 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
7807 * solib-svr4.c (get_svr4_info): Add pspace parameter.
7808 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
7809 (open_symbol_file_object): Likewise.
7810 (svr4_default_sos): Add info parameter.
7811 (svr4_read_so_list): Likewise.
7812 (svr4_current_sos_direct): Adjust functions calls to pass down
7814 (svr4_current_sos_1): Add info parameter.
7815 (svr4_current_sos): Call get_svr4_info, pass info down to
7817 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
7819 (svr4_in_dynsym_resolve_code): Pass current_program_space to
7821 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
7823 (probes_table_remove_objfile_probes): Likewise.
7824 (register_solib_event_probe): Add info parameter.
7825 (solist_update_incremental): Pass info parameter down to
7827 (disable_probes_interface): Add info parameter.
7828 (svr4_handle_solib_event): Pass current_program_space to
7829 get_svr4_info. Adjust disable_probes_interface cleanup.
7830 (svr4_create_probe_breakpoints): Add info parameter, pass it
7831 down to register_solib_event_probe.
7832 (svr4_create_solib_event_breakpoints): Add info parameter,
7833 pass it down to svr4_create_probe_breakpoints.
7834 (enable_break): Pass info down to
7835 svr4_create_solib_event_breakpoints.
7836 (svr4_solib_create_inferior_hook): Pass current_program_space to
7838 (svr4_clear_solib): Likewise.
7840 2019-04-22 Pedro Alves <palves@redhat.com>
7842 * solib-svr4.c (svr4_free_objfile_observer): New.
7843 (probe_and_action::objfile): New field.
7844 (probes_table_htab_remove_objfile_probes)
7845 (probes_table_remove_objfile_probes): New functions.
7846 (register_solib_event_probe): Add 'objfile' parameter. Store it
7847 in the new probe_and_action. Don't store the probe in 'lookup'.
7848 (svr4_create_probe_breakpoints): Pass objfile to
7849 register_solib_event_probe.
7850 (_initialize_svr4_solib): Register a free_objfile observer.
7852 2019-04-19 Tom Tromey <tom@tromey.com>
7854 * common/queue.h: Remove.
7856 2019-04-19 Tom Tromey <tom@tromey.com>
7858 * event-loop.c: Don't include "common/queue.h".
7860 2019-04-19 Tom Tromey <tom@tromey.com>
7862 * remote.c (remote_target): Use delete.
7863 * remote-notif.h: Include <list>, not "common/queue.h".
7864 (notif_client_p): Remove typedef.
7865 (remote_notif_state): Add constructor, destructor, initializer.
7866 <notif_queue>: Now a std::list.
7867 (remote_notif_state_xfree): Don't declare.
7868 * remote-notif.c (remote_notif_process, handle_notification)
7869 (remote_notif_state_allocate): Update.
7870 (~remote_notif_state): Rename from remote_notif_state_xfree.
7872 2019-04-19 Tom Tromey <tom@tromey.com>
7874 * symfile.c (reread_symbols): Update.
7875 * objfiles.c (objfile_register_static_link)
7876 (objfile_lookup_static_link): Update
7877 (~objfile) Don't delete static_links.
7878 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
7880 2019-04-19 Tom Tromey <tom@tromey.com>
7882 * type-stack.h (struct type_stack) <insert>: Constify string.
7883 * type-stack.c (type_stack::insert): Constify string.
7884 * gdbtypes.h (lookup_template_type): Update.
7885 (address_space_name_to_int): Update.
7886 * gdbtypes.c (address_space_name_to_int): Make space_identifier
7888 (lookup_template_type): Make name const.
7889 * c-exp.y: Update rules.
7890 (lex_one_token, classify_name, classify_inner_name)
7891 (c_print_token): Update.
7892 * p-exp.y: Update rules.
7894 * f-exp.y: Update rules.
7896 * d-exp.y: Update rules.
7897 (lex_one_token, classify_name, classify_inner_name): Update.
7898 * parse.c (write_dollar_variable, copy_name): Return std::string.
7899 * parser-defs.h (copy_name): Change return type.
7900 * m2-exp.y: Update rules.
7902 * go-exp.y (lex_one_token): Update.
7904 (classify_unsafe_function, classify_packaged_name)
7905 (classify_name, yylex): Update.
7907 2019-04-19 Sergei Trofimovich <siarheit@google.com>
7909 * configure.ac: add --enable-source-highlight switch.
7910 * configure: Regenerate.
7911 * top.c (print_gdb_version): plumb --enable-source-highlight
7912 status to "show configuration".
7914 2019-04-19 Tom Tromey <tromey@adacore.com>
7916 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
7918 (empty_record, ada_template_to_fixed_record_type_1)
7919 (template_to_static_fixed_type)
7920 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
7921 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
7922 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
7925 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
7928 * source.c (print_source_lines_base): Advance "iter" when a
7929 control character is seen.
7931 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7933 * inferior.h (struct infcall_suspend_state_deleter):
7934 Catch exception in destructor to avoid crash.
7936 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7938 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
7939 close to the add_com "shell".
7941 2019-04-18 Tom Tromey <tromey@adacore.com>
7943 * process-stratum-target.h (class process_stratum_target)
7944 <stratum>: Add "final".
7946 2019-04-17 Tom Tromey <tromey@adacore.com>
7948 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
7949 against nullptr before use.
7951 2019-04-17 Alan Hayward <alan.hayward@arm.com>
7953 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
7955 2019-04-17 Jim Wilson <jimw@sifive.com>
7956 Andrew Burgess <andrew.burgess@embecosm.com>
7958 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
7959 code read might fail, assume 4-byte breakpoint in that case.
7961 2019-04-15 Leszek Swirski <leszeks@google.com>
7963 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
7964 rather than a hand-rolled POD check when checking for forced MEMORY
7967 2019-04-15 Alan Hayward <alan.hayward@arm.com>
7969 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
7970 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
7972 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
7973 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
7974 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
7977 2019-04-15 Alan Hayward <alan.hayward@arm.com>
7979 * aarch64-linux-nat.c
7980 (aarch64_linux_nat_target::thread_architecture): Add override.
7981 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
7984 2019-04-15 Alan Hayward <alan.hayward@arm.com>
7986 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
7988 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
7990 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
7991 target types of size 96-bits, add some additional comments, and
7992 check that the builtin type we found was the correct size.
7994 2019-04-12 Eli Zaretskii <eliz@gnu.org>
7996 * utils.c (prompt_for_continue): Don't restore the styling at the
7997 end, as applied_style has the wrong value. This fixes styling in
7998 long lists of file names that are interrupted by the "Continue?"
8001 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
8003 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
8004 * c-lang.c (c_language_defn): Likewise.
8005 (cplus_language_defn): Likewise.
8006 (asm_language_defn): Likewise.
8007 (minimal_language_defn): Likewise.
8008 * d-lang.c (d_language_defn): Likewise.
8009 * f-lang.c (f_language_defn): Likewise.
8010 * go-lang.c (go_language_defn): Likewise.
8011 * language.c (unknown_language_defn): Likewise.
8012 (auto_language_defn): Likewise.
8013 * language.h (struct language_defn): Remove la_magic field.
8014 (LANG_MAGIC): Delete.
8015 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
8016 * objc-lang.c (objc_language_defn): Likewise.
8017 * opencl-lang.c (opencl_language_defn): Likewise.
8018 * p-lang.c (pascal_language_defn): Likewise.
8019 * rust-lang.c (rust_language_defn): Likewise.
8021 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8023 * riscv-tdep.c (riscv_type_align): New function.
8024 (riscv_type_alignment): Delete.
8025 (riscv_arg_location): Use 'type_align'.
8026 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
8028 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8030 * gdbtypes.c (type_align): A struct with no non-static fields also
8033 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8035 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
8037 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
8039 (riscv_struct_info::analyse): New implementation using new
8040 analyse_inner member function.
8041 (riscv_struct_info::field_offset): New member function.
8042 (riscv_struct_info::m_offsets): New member variable.
8043 (riscv_struct_info::analyse_inner): New private member function,
8044 takes the old implementation of riscv_struct_info::analyse but
8045 extended to track field offsets.
8046 (riscv_call_arg_struct): Update the struct folding special cases
8047 to handle cases where empty C++ structs, which are non-zero
8049 (riscv_arg_location): Initialise the length of each location, a
8050 non-zero length now indicates the location is in use.
8051 (riscv_push_dummy_call): Allow for the first location having a
8052 non-zero offset when setting up arguments.
8053 (riscv_return_value): Likewise, but for return values.
8055 2019-04-11 Tom Tromey <tromey@adacore.com>
8057 * utils.c (internal_vproblem): Make "msg" const.
8059 2019-04-11 Alan Hayward <alan.hayward@arm.com>
8061 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
8062 * trad-frame.c (trad_frame_reset_saved_regs): New function.
8063 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
8064 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
8066 2019-04-10 Kevin Buettner <kevinb@redhat.com>
8068 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
8070 (fill_gregset): Call amd64_linux_collect_native_gregset instead
8071 of amd64_collect_native_gregset.
8072 (amd64_linux_nat_target::store_registers): Likewise.
8074 2019-04-10 Tom Tromey <tom@tromey.com>
8076 * symtab.c (lookup_global_symbol_from_objfile)
8077 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
8078 * objfiles.h (class separate_debug_iterator): New.
8079 (class separate_debug_range): New.
8080 (struct objfile) <separate_debug_objfiles>: New method.
8081 (objfile_separate_debug_iterate): Don't declare.
8082 * objfiles.c (separate_debug_iterator::operator++): Rename from
8083 objfile_separate_debug_iterate.
8084 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
8086 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
8089 2019-04-10 Tom Tromey <tom@tromey.com>
8091 * symfile.c (reread_symbols): Remove old comment.
8092 * objfiles.c (free_all_objfiles): Fix a typo.
8094 2019-04-10 Tom Tromey <tom@tromey.com>
8096 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
8097 * minsyms.c (lookup_minimal_symbol): Use foreach.
8098 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8099 (lookup_minimal_symbol_solib_trampoline): Likewise.
8100 * symfile.c (reread_symbols): Use foreach.
8102 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
8103 Tom Tromey <tromey@adacore.com>
8106 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
8107 (rust_lex_int_test): Change "value" to be LONGEST.
8108 (rust_lex_tests): Add test for long integer literal.
8110 2019-04-09 Tom Tromey <tromey@adacore.com>
8112 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
8114 (extended_remote_target::attach): Update.
8115 (remote_target::remote_notice_new_inferior): Update.
8116 (remote_target::add_current_inferior_and_thread): Update.
8117 * inferior.c (exit_inferior_1): Use "false".
8118 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
8120 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
8122 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
8123 the "start" command.
8125 2019-04-08 Kevin Buettner <kevinb@redhat.com>
8127 * python/py-inferior.c (infpy_thread_from_thread_handle):
8128 Adjust comments to reflect renaming of thread_from_thread_handle
8129 to thread_from_handle. Adjust keywords. Fix type error message.
8130 (inferior_object_methods): Add thread_from_handle. Retain
8131 thread_from_thread_handle, but mark it as deprecated.
8133 2019-04-08 Kevin Buettner <kevinb@redhat.com>
8135 * gdbthread.h (find_thread_by_handle): Revise declaration.
8136 * thread.c (find_thread_by_handle): Likewise. Adjust
8138 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
8139 support for buffer objects as handles.
8141 2019-04-08 Kevin Buettner <kevinb@redhat.com>
8143 * python/py-infthread.c (thpy_thread_handle): New function.
8144 (thread_object_methods): Register thpy_thread_handle.
8146 2019-04-08 Kevin Buettner <kevinb@redhat.com>
8148 * gdbthread.h (thread_to_thread_handle): Declare.
8149 * thread.c (gdbtypes.h): Include.
8150 (thread_to_thread_handle): New function.
8152 * target.h (struct target_ops): Add thread_info_to_thread_handle.
8153 (target_thread_info_to_thread_handle): Declare.
8154 * target.c (target_thread_info_to_thread_handle): New function.
8155 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
8156 * target-delegates.c: Regenerate.
8158 * linux-thread-db.c (class thread_db_target): Add method
8159 thread_info_to_thread_handle.
8160 (thread_db_target::thread_info_to_thread_handle): Define.
8161 * remote.c (class remote_target): Add new method
8162 thread_info_to_thread_handle.
8163 (remote_target::thread_info_to_thread_handle): Define.
8165 2019-04-08 Pedro Alves <palves@redhat.com>
8167 * common/common-exceptions.c (throw_exception): Don't create
8168 named object to throw; throw directly.
8169 (throw_it): Likewise. Don't initialize gdb_exception::message
8170 here, with new; pass FMT and AP to the ctor instead.
8171 * common/common-exceptions.h: Include <string>.
8172 (gdb_exception::gdb_exception(enum return_reason, enum errors,
8173 const char *, va_list)): New ctor. Use std::make_shared.
8174 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
8176 (gdb_exception_error::gdb_exception_error(enum errors, const char
8178 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
8180 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
8182 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
8183 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
8186 2019-04-08 Tom Tromey <tom@tromey.com>
8188 * valops.c (value_rtti_indirect_type): Replace throw_exception
8190 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
8192 * thread.c (thr_try_catch_cmd): Replace throw_exception with
8194 * target.c (target_translate_tls_address): Replace throw_exception
8196 * stack.c (frame_apply_command_count): Replace throw_exception
8198 * solib-spu.c (append_ocl_sos): Replace throw_exception with
8200 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
8202 * rs6000-tdep.c (rs6000_frame_cache)
8203 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
8204 * remote.c: Replace throw_exception with throw.
8205 * record-full.c (record_full_message, record_full_wait_1)
8206 (record_full_restore): Replace throw_exception with throw.
8208 (get_thread_current_frame_id, record_btrace_start_replaying)
8209 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
8210 (cmd_record_btrace_start): Replace throw_exception with throw.
8211 * parse.c (parse_exp_in_context_1): Replace throw_exception with
8213 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
8214 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
8216 (find_linespec_symbols): Replace throw_exception with throw.
8217 * infrun.c (displaced_step_prepare, resume): Replace
8218 throw_exception with throw.
8219 * infcmd.c (post_create_inferior): Replace throw_exception with
8221 * inf-loop.c (inferior_event_handler): Replace throw_exception
8223 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
8224 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
8225 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
8226 (get_prev_frame_always, get_frame_pc_if_available)
8227 (get_frame_address_in_block_if_available, get_frame_language):
8228 Replace throw_exception with throw.
8229 * frame-unwind.c (frame_unwind_try_unwinder): Replace
8230 throw_exception with throw.
8231 * eval.c (fetch_subexp_value, evaluate_var_value)
8232 (evaluate_funcall, evaluate_subexp_standard): Replace
8233 throw_exception with throw.
8234 * dwarf2loc.c (call_site_find_chain)
8235 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
8236 Replace throw_exception with throw.
8237 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
8239 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
8241 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
8242 * completer.c (complete_line_internal): Replace throw_exception
8244 * compile/compile-object-run.c (compile_object_run): Replace
8245 throw_exception with throw.
8246 * cli/cli-script.c (process_next_line): Replace throw_exception
8248 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
8249 (btrace_enable, btrace_maint_update_pt_packets): Replace
8250 throw_exception with throw.
8251 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
8252 throw_exception with throw.
8253 * break-catch-throw.c (re_set_exception_catchpoint): Replace
8254 throw_exception with throw.
8255 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
8256 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
8257 * aarch64-tdep.c (aarch64_make_prologue_cache)
8258 (aarch64_make_stub_cache): Replace throw_exception with throw.
8260 2019-04-08 Tom Tromey <tom@tromey.com>
8262 * common/common-exceptions.c (throw_exception): Rename from
8263 throw_exception_cxx. Remove old copy. Make argument const.
8264 (throw_it): Create and throw exception objects directly.
8265 * common/common-exceptions.h (throw_exception): Make argument
8267 (struct gdb_exception_error): Add constructor.
8268 (struct gdb_exception_quit): Add constructor.
8270 2019-04-08 Tom Tromey <tom@tromey.com>
8272 * common/common-exceptions.h (exception_rethrow): Don't declare.
8273 (TRY_SJLJ): Update comment.
8274 (TRY, CATCH, END_CATCH): Remove.
8275 * common/common-exceptions.c (exception_rethrow): Remove.
8277 2019-04-08 Tom Tromey <tom@tromey.com>
8279 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
8281 (gdb_exception_error): Rename from
8282 gdb_exception_RETURN_MASK_ERROR.
8283 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
8284 (gdb_quit_bad_alloc): Update.
8285 * aarch64-tdep.c: Update.
8286 * ada-lang.c: Update.
8287 * ada-typeprint.c: Update.
8288 * ada-valprint.c: Update.
8289 * amd64-tdep.c: Update.
8290 * arch-utils.c: Update.
8291 * break-catch-throw.c: Update.
8292 * breakpoint.c: Update.
8294 * c-varobj.c: Update.
8295 * cli/cli-cmds.c: Update.
8296 * cli/cli-interp.c: Update.
8297 * cli/cli-script.c: Update.
8298 * common/common-exceptions.c: Update.
8299 * common/new-op.c: Update.
8300 * common/selftest.c: Update.
8301 * compile/compile-c-symbols.c: Update.
8302 * compile/compile-cplus-symbols.c: Update.
8303 * compile/compile-object-load.c: Update.
8304 * compile/compile-object-run.c: Update.
8305 * completer.c: Update.
8306 * corelow.c: Update.
8308 * cp-support.c: Update.
8309 * cp-valprint.c: Update.
8310 * darwin-nat.c: Update.
8311 * disasm-selftests.c: Update.
8312 * dtrace-probe.c: Update.
8313 * dwarf-index-cache.c: Update.
8314 * dwarf-index-write.c: Update.
8315 * dwarf2-frame-tailcall.c: Update.
8316 * dwarf2-frame.c: Update.
8317 * dwarf2loc.c: Update.
8318 * dwarf2read.c: Update.
8320 * event-loop.c: Update.
8321 * event-top.c: Update.
8323 * f-valprint.c: Update.
8324 * fbsd-tdep.c: Update.
8325 * frame-unwind.c: Update.
8327 * gdbtypes.c: Update.
8328 * gnu-v3-abi.c: Update.
8329 * guile/guile-internal.h: Update.
8330 * guile/scm-block.c: Update.
8331 * guile/scm-breakpoint.c: Update.
8332 * guile/scm-cmd.c: Update.
8333 * guile/scm-disasm.c: Update.
8334 * guile/scm-frame.c: Update.
8335 * guile/scm-lazy-string.c: Update.
8336 * guile/scm-math.c: Update.
8337 * guile/scm-param.c: Update.
8338 * guile/scm-ports.c: Update.
8339 * guile/scm-pretty-print.c: Update.
8340 * guile/scm-symbol.c: Update.
8341 * guile/scm-symtab.c: Update.
8342 * guile/scm-type.c: Update.
8343 * guile/scm-value.c: Update.
8344 * i386-linux-tdep.c: Update.
8345 * i386-tdep.c: Update.
8346 * inf-loop.c: Update.
8347 * infcall.c: Update.
8351 * language.c: Update.
8352 * linespec.c: Update.
8353 * linux-fork.c: Update.
8354 * linux-nat.c: Update.
8355 * linux-tdep.c: Update.
8356 * linux-thread-db.c: Update.
8358 * mi/mi-cmd-break.c: Update.
8359 * mi/mi-cmd-stack.c: Update.
8360 * mi/mi-interp.c: Update.
8361 * mi/mi-main.c: Update.
8362 * objc-lang.c: Update.
8363 * p-valprint.c: Update.
8365 * ppc-linux-tdep.c: Update.
8366 * printcmd.c: Update.
8367 * python/py-arch.c: Update.
8368 * python/py-breakpoint.c: Update.
8369 * python/py-cmd.c: Update.
8370 * python/py-finishbreakpoint.c: Update.
8371 * python/py-frame.c: Update.
8372 * python/py-framefilter.c: Update.
8373 * python/py-gdb-readline.c: Update.
8374 * python/py-inferior.c: Update.
8375 * python/py-infthread.c: Update.
8376 * python/py-lazy-string.c: Update.
8377 * python/py-linetable.c: Update.
8378 * python/py-objfile.c: Update.
8379 * python/py-param.c: Update.
8380 * python/py-prettyprint.c: Update.
8381 * python/py-progspace.c: Update.
8382 * python/py-record-btrace.c: Update.
8383 * python/py-record.c: Update.
8384 * python/py-symbol.c: Update.
8385 * python/py-type.c: Update.
8386 * python/py-unwind.c: Update.
8387 * python/py-utils.c: Update.
8388 * python/py-value.c: Update.
8389 * python/python.c: Update.
8390 * record-btrace.c: Update.
8391 * record-full.c: Update.
8392 * remote-fileio.c: Update.
8394 * riscv-tdep.c: Update.
8395 * rs6000-aix-tdep.c: Update.
8396 * rs6000-tdep.c: Update.
8397 * rust-exp.y: Update.
8398 * rust-lang.c: Update.
8399 * s390-tdep.c: Update.
8400 * selftest-arch.c: Update.
8401 * solib-dsbt.c: Update.
8402 * solib-frv.c: Update.
8403 * solib-spu.c: Update.
8404 * solib-svr4.c: Update.
8406 * sparc64-linux-tdep.c: Update.
8408 * symfile-mem.c: Update.
8409 * symmisc.c: Update.
8413 * tracefile-tfile.c: Update.
8414 * tui/tui.c: Update.
8415 * typeprint.c: Update.
8416 * unittests/cli-utils-selftests.c: Update.
8417 * unittests/parse-connection-spec-selftests.c: Update.
8419 * valprint.c: Update.
8422 * windows-nat.c: Update.
8423 * x86-linux-nat.c: Update.
8424 * xml-support.c: Update.
8426 2019-04-08 Tom Tromey <tom@tromey.com>
8428 * xml-support.c: Use C++ exception handling.
8429 * x86-linux-nat.c: Use C++ exception handling.
8430 * windows-nat.c: Use C++ exception handling.
8431 * varobj.c: Use C++ exception handling.
8432 * value.c: Use C++ exception handling.
8433 * valprint.c: Use C++ exception handling.
8434 * valops.c: Use C++ exception handling.
8435 * unittests/parse-connection-spec-selftests.c: Use C++ exception
8437 * unittests/cli-utils-selftests.c: Use C++ exception handling.
8438 * typeprint.c: Use C++ exception handling.
8439 * tui/tui.c: Use C++ exception handling.
8440 * tracefile-tfile.c: Use C++ exception handling.
8441 * top.c: Use C++ exception handling.
8442 * thread.c: Use C++ exception handling.
8443 * target.c: Use C++ exception handling.
8444 * symmisc.c: Use C++ exception handling.
8445 * symfile-mem.c: Use C++ exception handling.
8446 * stack.c: Use C++ exception handling.
8447 * sparc64-linux-tdep.c: Use C++ exception handling.
8448 * solib.c: Use C++ exception handling.
8449 * solib-svr4.c: Use C++ exception handling.
8450 * solib-spu.c: Use C++ exception handling.
8451 * solib-frv.c: Use C++ exception handling.
8452 * solib-dsbt.c: Use C++ exception handling.
8453 * selftest-arch.c: Use C++ exception handling.
8454 * s390-tdep.c: Use C++ exception handling.
8455 * rust-lang.c: Use C++ exception handling.
8456 * rust-exp.y: Use C++ exception handling.
8457 * rs6000-tdep.c: Use C++ exception handling.
8458 * rs6000-aix-tdep.c: Use C++ exception handling.
8459 * riscv-tdep.c: Use C++ exception handling.
8460 * remote.c: Use C++ exception handling.
8461 * remote-fileio.c: Use C++ exception handling.
8462 * record-full.c: Use C++ exception handling.
8463 * record-btrace.c: Use C++ exception handling.
8464 * python/python.c: Use C++ exception handling.
8465 * python/py-value.c: Use C++ exception handling.
8466 * python/py-utils.c: Use C++ exception handling.
8467 * python/py-unwind.c: Use C++ exception handling.
8468 * python/py-type.c: Use C++ exception handling.
8469 * python/py-symbol.c: Use C++ exception handling.
8470 * python/py-record.c: Use C++ exception handling.
8471 * python/py-record-btrace.c: Use C++ exception handling.
8472 * python/py-progspace.c: Use C++ exception handling.
8473 * python/py-prettyprint.c: Use C++ exception handling.
8474 * python/py-param.c: Use C++ exception handling.
8475 * python/py-objfile.c: Use C++ exception handling.
8476 * python/py-linetable.c: Use C++ exception handling.
8477 * python/py-lazy-string.c: Use C++ exception handling.
8478 * python/py-infthread.c: Use C++ exception handling.
8479 * python/py-inferior.c: Use C++ exception handling.
8480 * python/py-gdb-readline.c: Use C++ exception handling.
8481 * python/py-framefilter.c: Use C++ exception handling.
8482 * python/py-frame.c: Use C++ exception handling.
8483 * python/py-finishbreakpoint.c: Use C++ exception handling.
8484 * python/py-cmd.c: Use C++ exception handling.
8485 * python/py-breakpoint.c: Use C++ exception handling.
8486 * python/py-arch.c: Use C++ exception handling.
8487 * printcmd.c: Use C++ exception handling.
8488 * ppc-linux-tdep.c: Use C++ exception handling.
8489 * parse.c: Use C++ exception handling.
8490 * p-valprint.c: Use C++ exception handling.
8491 * objc-lang.c: Use C++ exception handling.
8492 * mi/mi-main.c: Use C++ exception handling.
8493 * mi/mi-interp.c: Use C++ exception handling.
8494 * mi/mi-cmd-stack.c: Use C++ exception handling.
8495 * mi/mi-cmd-break.c: Use C++ exception handling.
8496 * main.c: Use C++ exception handling.
8497 * linux-thread-db.c: Use C++ exception handling.
8498 * linux-tdep.c: Use C++ exception handling.
8499 * linux-nat.c: Use C++ exception handling.
8500 * linux-fork.c: Use C++ exception handling.
8501 * linespec.c: Use C++ exception handling.
8502 * language.c: Use C++ exception handling.
8503 * jit.c: Use C++ exception handling.
8504 * infrun.c: Use C++ exception handling.
8505 * infcmd.c: Use C++ exception handling.
8506 * infcall.c: Use C++ exception handling.
8507 * inf-loop.c: Use C++ exception handling.
8508 * i386-tdep.c: Use C++ exception handling.
8509 * i386-linux-tdep.c: Use C++ exception handling.
8510 * guile/scm-value.c: Use C++ exception handling.
8511 * guile/scm-type.c: Use C++ exception handling.
8512 * guile/scm-symtab.c: Use C++ exception handling.
8513 * guile/scm-symbol.c: Use C++ exception handling.
8514 * guile/scm-pretty-print.c: Use C++ exception handling.
8515 * guile/scm-ports.c: Use C++ exception handling.
8516 * guile/scm-param.c: Use C++ exception handling.
8517 * guile/scm-math.c: Use C++ exception handling.
8518 * guile/scm-lazy-string.c: Use C++ exception handling.
8519 * guile/scm-frame.c: Use C++ exception handling.
8520 * guile/scm-disasm.c: Use C++ exception handling.
8521 * guile/scm-cmd.c: Use C++ exception handling.
8522 * guile/scm-breakpoint.c: Use C++ exception handling.
8523 * guile/scm-block.c: Use C++ exception handling.
8524 * guile/guile-internal.h: Use C++ exception handling.
8525 * gnu-v3-abi.c: Use C++ exception handling.
8526 * gdbtypes.c: Use C++ exception handling.
8527 * frame.c: Use C++ exception handling.
8528 * frame-unwind.c: Use C++ exception handling.
8529 * fbsd-tdep.c: Use C++ exception handling.
8530 * f-valprint.c: Use C++ exception handling.
8531 * exec.c: Use C++ exception handling.
8532 * event-top.c: Use C++ exception handling.
8533 * event-loop.c: Use C++ exception handling.
8534 * eval.c: Use C++ exception handling.
8535 * dwarf2read.c: Use C++ exception handling.
8536 * dwarf2loc.c: Use C++ exception handling.
8537 * dwarf2-frame.c: Use C++ exception handling.
8538 * dwarf2-frame-tailcall.c: Use C++ exception handling.
8539 * dwarf-index-write.c: Use C++ exception handling.
8540 * dwarf-index-cache.c: Use C++ exception handling.
8541 * dtrace-probe.c: Use C++ exception handling.
8542 * disasm-selftests.c: Use C++ exception handling.
8543 * darwin-nat.c: Use C++ exception handling.
8544 * cp-valprint.c: Use C++ exception handling.
8545 * cp-support.c: Use C++ exception handling.
8546 * cp-abi.c: Use C++ exception handling.
8547 * corelow.c: Use C++ exception handling.
8548 * completer.c: Use C++ exception handling.
8549 * compile/compile-object-run.c: Use C++ exception handling.
8550 * compile/compile-object-load.c: Use C++ exception handling.
8551 * compile/compile-cplus-symbols.c: Use C++ exception handling.
8552 * compile/compile-c-symbols.c: Use C++ exception handling.
8553 * common/selftest.c: Use C++ exception handling.
8554 * common/new-op.c: Use C++ exception handling.
8555 * cli/cli-script.c: Use C++ exception handling.
8556 * cli/cli-interp.c: Use C++ exception handling.
8557 * cli/cli-cmds.c: Use C++ exception handling.
8558 * c-varobj.c: Use C++ exception handling.
8559 * btrace.c: Use C++ exception handling.
8560 * breakpoint.c: Use C++ exception handling.
8561 * break-catch-throw.c: Use C++ exception handling.
8562 * arch-utils.c: Use C++ exception handling.
8563 * amd64-tdep.c: Use C++ exception handling.
8564 * ada-valprint.c: Use C++ exception handling.
8565 * ada-typeprint.c: Use C++ exception handling.
8566 * ada-lang.c: Use C++ exception handling.
8567 * aarch64-tdep.c: Use C++ exception handling.
8569 2019-04-08 Tom Tromey <tom@tromey.com>
8571 * xml-support.c (gdb_xml_parser::parse): Update.
8572 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
8573 * value.c (show_convenience): Update.
8574 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
8575 (test_parse_flags_qcs): Update.
8576 * thread.c (thr_try_catch_cmd): Update.
8577 * target.c (target_translate_tls_address): Update.
8578 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
8579 (info_frame_command_core, frame_apply_command_count): Update.
8580 * rust-exp.y (rust_lex_exception_test): Update.
8581 * riscv-tdep.c (riscv_print_one_register_info): Update.
8582 * remote.c (remote_target::enable_btrace): Update.
8583 * record-btrace.c (record_btrace_enable_warn): Update.
8584 * python/py-utils.c (gdbpy_convert_exception): Update.
8585 * printcmd.c (do_one_display, print_variable_and_value): Update.
8586 * mi/mi-main.c (mi_print_exception): Update.
8587 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
8588 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
8589 * linux-nat.c (linux_nat_target::attach): Update.
8590 * linux-fork.c (class scoped_switch_fork_info): Update.
8591 * infrun.c (displaced_step_prepare): Update.
8592 * infcall.c (call_function_by_hand_dummy): Update.
8593 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
8594 * gnu-v3-abi.c (print_one_vtable): Update.
8595 * frame.c (get_prev_frame_always): Update.
8596 * f-valprint.c (info_common_command_for_block): Update.
8597 * exec.c (try_open_exec_file): Update.
8598 * exceptions.c (print_exception, exception_print)
8599 (exception_fprintf, exception_print_same): Update.
8600 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
8601 * dwarf-index-cache.c (index_cache::store)
8602 (index_cache::lookup_gdb_index): Update.
8603 * darwin-nat.c (maybe_cache_shell): Update.
8604 * cp-valprint.c (cp_print_value_fields): Update.
8605 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
8606 (gcc_cplus_symbol_address): Update.
8607 * compile/compile-c-symbols.c (gcc_convert_symbol)
8608 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
8609 * common/selftest.c: Update.
8610 * common/common-exceptions.h (struct gdb_exception) <message>: Now
8612 (exception_try_scope_entry, exception_try_scope_exit): Don't
8614 (struct exception_try_scope): Remove.
8615 (TRY): Don't use exception_try_scope.
8616 (struct gdb_exception): Add constructor, operator=.
8618 (struct gdb_exception_RETURN_MASK_ALL)
8619 (struct gdb_exception_RETURN_MASK_ERROR)
8620 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
8621 (struct gdb_quit_bad_alloc): Update.
8622 * common/common-exceptions.c (exception_none): Change
8624 (struct catcher) <state, exception>: Initialize inline.
8625 <prev>: Remove member.
8626 (current_catcher): Remove.
8627 (catchers): New global.
8628 (exceptions_state_mc_init): Simplify.
8629 (catcher_pop): Remove.
8630 (exceptions_state_mc, exceptions_state_mc_catch): Update.
8631 (try_scope_depth, exception_try_scope_entry)
8632 (exception_try_scope_exit): Remove.
8633 (throw_exception_sjlj): Update.
8634 (exception_messages, exception_messages_size): Remove.
8635 (throw_it): Simplify.
8636 (gdb_exception_sliced_copy): Remove.
8637 (throw_exception_cxx): Update.
8638 * cli/cli-script.c (script_from_file): Update.
8639 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
8641 * ada-valprint.c (ada_val_print): Update.
8642 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
8643 (create_excep_cond_exprs): Update.
8645 2019-04-08 Tom Tromey <tom@tromey.com>
8647 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
8648 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
8649 (TRY, CATCH, END_CATCH): Remove some definitions.
8650 * common/common-exceptions.c: Don't use GDB_XCPT.
8651 (catcher_list_size): Remove.
8652 (throw_exception, throw_it): Simplify.
8654 2019-04-05 Tom Tromey <tom@tromey.com>
8656 Revert the header-sorting patch.
8657 * ft32-tdep.c: Revert.
8658 * frv-tdep.c: Revert.
8659 * frv-linux-tdep.c: Revert.
8661 * frame-unwind.c: Revert.
8662 * frame-base.c: Revert.
8663 * fork-child.c: Revert.
8664 * findvar.c: Revert.
8665 * findcmd.c: Revert.
8666 * filesystem.c: Revert.
8667 * filename-seen-cache.h: Revert.
8668 * filename-seen-cache.c: Revert.
8669 * fbsd-tdep.c: Revert.
8670 * fbsd-nat.h: Revert.
8671 * fbsd-nat.c: Revert.
8672 * f-valprint.c: Revert.
8673 * f-typeprint.c: Revert.
8675 * extension.h: Revert.
8676 * extension.c: Revert.
8677 * extension-priv.h: Revert.
8678 * expprint.c: Revert.
8681 * exceptions.c: Revert.
8682 * event-top.c: Revert.
8683 * event-loop.c: Revert.
8685 * elfread.c: Revert.
8686 * dwarf2read.h: Revert.
8687 * dwarf2read.c: Revert.
8688 * dwarf2loc.c: Revert.
8689 * dwarf2expr.h: Revert.
8690 * dwarf2expr.c: Revert.
8691 * dwarf2-frame.c: Revert.
8692 * dwarf2-frame-tailcall.c: Revert.
8693 * dwarf-index-write.h: Revert.
8694 * dwarf-index-write.c: Revert.
8695 * dwarf-index-common.c: Revert.
8696 * dwarf-index-cache.h: Revert.
8697 * dwarf-index-cache.c: Revert.
8698 * dummy-frame.c: Revert.
8699 * dtrace-probe.c: Revert.
8702 * disasm-selftests.c: Revert.
8703 * dictionary.c: Revert.
8704 * dicos-tdep.c: Revert.
8705 * demangle.c: Revert.
8708 * darwin-nat.h: Revert.
8709 * darwin-nat.c: Revert.
8710 * darwin-nat-info.c: Revert.
8711 * d-valprint.c: Revert.
8712 * d-namespace.c: Revert.
8715 * csky-tdep.c: Revert.
8716 * csky-linux-tdep.c: Revert.
8717 * cris-tdep.c: Revert.
8718 * cris-linux-tdep.c: Revert.
8719 * cp-valprint.c: Revert.
8720 * cp-support.c: Revert.
8721 * cp-namespace.c: Revert.
8723 * corelow.c: Revert.
8724 * corefile.c: Revert.
8725 * continuations.c: Revert.
8726 * completer.h: Revert.
8727 * completer.c: Revert.
8728 * complaints.c: Revert.
8729 * coffread.c: Revert.
8730 * coff-pe-read.c: Revert.
8731 * cli-out.h: Revert.
8732 * cli-out.c: Revert.
8733 * charset.c: Revert.
8734 * c-varobj.c: Revert.
8735 * c-valprint.c: Revert.
8736 * c-typeprint.c: Revert.
8738 * buildsym.c: Revert.
8739 * buildsym-legacy.c: Revert.
8740 * build-id.h: Revert.
8741 * build-id.c: Revert.
8743 * bsd-uthread.c: Revert.
8744 * breakpoint.h: Revert.
8745 * breakpoint.c: Revert.
8746 * break-catch-throw.c: Revert.
8747 * break-catch-syscall.c: Revert.
8748 * break-catch-sig.c: Revert.
8749 * blockframe.c: Revert.
8751 * bfin-tdep.c: Revert.
8752 * bfin-linux-tdep.c: Revert.
8753 * bfd-target.c: Revert.
8755 * ax-general.c: Revert.
8758 * avr-tdep.c: Revert.
8760 * auto-load.c: Revert.
8761 * arm-wince-tdep.c: Revert.
8762 * arm-tdep.c: Revert.
8763 * arm-symbian-tdep.c: Revert.
8764 * arm-pikeos-tdep.c: Revert.
8765 * arm-obsd-tdep.c: Revert.
8766 * arm-nbsd-tdep.c: Revert.
8767 * arm-nbsd-nat.c: Revert.
8768 * arm-linux-tdep.c: Revert.
8769 * arm-linux-nat.c: Revert.
8770 * arm-fbsd-tdep.c: Revert.
8771 * arm-fbsd-nat.c: Revert.
8772 * arm-bsd-tdep.c: Revert.
8773 * arch-utils.c: Revert.
8774 * arc-tdep.c: Revert.
8775 * arc-newlib-tdep.c: Revert.
8776 * annotate.h: Revert.
8777 * annotate.c: Revert.
8778 * amd64-windows-tdep.c: Revert.
8779 * amd64-windows-nat.c: Revert.
8780 * amd64-tdep.c: Revert.
8781 * amd64-sol2-tdep.c: Revert.
8782 * amd64-obsd-tdep.c: Revert.
8783 * amd64-obsd-nat.c: Revert.
8784 * amd64-nbsd-tdep.c: Revert.
8785 * amd64-nbsd-nat.c: Revert.
8786 * amd64-nat.c: Revert.
8787 * amd64-linux-tdep.c: Revert.
8788 * amd64-linux-nat.c: Revert.
8789 * amd64-fbsd-tdep.c: Revert.
8790 * amd64-fbsd-nat.c: Revert.
8791 * amd64-dicos-tdep.c: Revert.
8792 * amd64-darwin-tdep.c: Revert.
8793 * amd64-bsd-nat.c: Revert.
8794 * alpha-tdep.c: Revert.
8795 * alpha-obsd-tdep.c: Revert.
8796 * alpha-nbsd-tdep.c: Revert.
8797 * alpha-mdebug-tdep.c: Revert.
8798 * alpha-linux-tdep.c: Revert.
8799 * alpha-linux-nat.c: Revert.
8800 * alpha-bsd-tdep.c: Revert.
8801 * alpha-bsd-nat.c: Revert.
8802 * aix-thread.c: Revert.
8804 * addrmap.c: Revert.
8805 * ada-varobj.c: Revert.
8806 * ada-valprint.c: Revert.
8807 * ada-typeprint.c: Revert.
8808 * ada-tasks.c: Revert.
8809 * ada-lang.c: Revert.
8810 * aarch64-tdep.c: Revert.
8811 * aarch64-ravenscar-thread.c: Revert.
8812 * aarch64-newlib-tdep.c: Revert.
8813 * aarch64-linux-tdep.c: Revert.
8814 * aarch64-linux-nat.c: Revert.
8815 * aarch64-fbsd-tdep.c: Revert.
8816 * aarch64-fbsd-nat.c: Revert.
8817 * aarch32-linux-nat.c: Revert.
8819 2019-04-05 Tom Tromey <tom@tromey.com>
8821 * ft32-tdep.c: Sort headers.
8822 * frv-tdep.c: Sort headers.
8823 * frv-linux-tdep.c: Sort headers.
8824 * frame.c: Sort headers.
8825 * frame-unwind.c: Sort headers.
8826 * frame-base.c: Sort headers.
8827 * fork-child.c: Sort headers.
8828 * findvar.c: Sort headers.
8829 * findcmd.c: Sort headers.
8830 * filesystem.c: Sort headers.
8831 * filename-seen-cache.h: Sort headers.
8832 * filename-seen-cache.c: Sort headers.
8833 * fbsd-tdep.c: Sort headers.
8834 * fbsd-nat.h: Sort headers.
8835 * fbsd-nat.c: Sort headers.
8836 * f-valprint.c: Sort headers.
8837 * f-typeprint.c: Sort headers.
8838 * f-lang.c: Sort headers.
8839 * extension.h: Sort headers.
8840 * extension.c: Sort headers.
8841 * extension-priv.h: Sort headers.
8842 * expprint.c: Sort headers.
8843 * exec.h: Sort headers.
8844 * exec.c: Sort headers.
8845 * exceptions.c: Sort headers.
8846 * event-top.c: Sort headers.
8847 * event-loop.c: Sort headers.
8848 * eval.c: Sort headers.
8849 * elfread.c: Sort headers.
8850 * dwarf2read.h: Sort headers.
8851 * dwarf2read.c: Sort headers.
8852 * dwarf2loc.c: Sort headers.
8853 * dwarf2expr.h: Sort headers.
8854 * dwarf2expr.c: Sort headers.
8855 * dwarf2-frame.c: Sort headers.
8856 * dwarf2-frame-tailcall.c: Sort headers.
8857 * dwarf-index-write.h: Sort headers.
8858 * dwarf-index-write.c: Sort headers.
8859 * dwarf-index-common.c: Sort headers.
8860 * dwarf-index-cache.h: Sort headers.
8861 * dwarf-index-cache.c: Sort headers.
8862 * dummy-frame.c: Sort headers.
8863 * dtrace-probe.c: Sort headers.
8864 * disasm.h: Sort headers.
8865 * disasm.c: Sort headers.
8866 * disasm-selftests.c: Sort headers.
8867 * dictionary.c: Sort headers.
8868 * dicos-tdep.c: Sort headers.
8869 * demangle.c: Sort headers.
8870 * dcache.h: Sort headers.
8871 * dcache.c: Sort headers.
8872 * darwin-nat.h: Sort headers.
8873 * darwin-nat.c: Sort headers.
8874 * darwin-nat-info.c: Sort headers.
8875 * d-valprint.c: Sort headers.
8876 * d-namespace.c: Sort headers.
8877 * d-lang.c: Sort headers.
8878 * ctf.c: Sort headers.
8879 * csky-tdep.c: Sort headers.
8880 * csky-linux-tdep.c: Sort headers.
8881 * cris-tdep.c: Sort headers.
8882 * cris-linux-tdep.c: Sort headers.
8883 * cp-valprint.c: Sort headers.
8884 * cp-support.c: Sort headers.
8885 * cp-namespace.c: Sort headers.
8886 * cp-abi.c: Sort headers.
8887 * corelow.c: Sort headers.
8888 * corefile.c: Sort headers.
8889 * continuations.c: Sort headers.
8890 * completer.h: Sort headers.
8891 * completer.c: Sort headers.
8892 * complaints.c: Sort headers.
8893 * coffread.c: Sort headers.
8894 * coff-pe-read.c: Sort headers.
8895 * cli-out.h: Sort headers.
8896 * cli-out.c: Sort headers.
8897 * charset.c: Sort headers.
8898 * c-varobj.c: Sort headers.
8899 * c-valprint.c: Sort headers.
8900 * c-typeprint.c: Sort headers.
8901 * c-lang.c: Sort headers.
8902 * buildsym.c: Sort headers.
8903 * buildsym-legacy.c: Sort headers.
8904 * build-id.h: Sort headers.
8905 * build-id.c: Sort headers.
8906 * btrace.c: Sort headers.
8907 * bsd-uthread.c: Sort headers.
8908 * breakpoint.h: Sort headers.
8909 * breakpoint.c: Sort headers.
8910 * break-catch-throw.c: Sort headers.
8911 * break-catch-syscall.c: Sort headers.
8912 * break-catch-sig.c: Sort headers.
8913 * blockframe.c: Sort headers.
8914 * block.c: Sort headers.
8915 * bfin-tdep.c: Sort headers.
8916 * bfin-linux-tdep.c: Sort headers.
8917 * bfd-target.c: Sort headers.
8918 * bcache.c: Sort headers.
8919 * ax-general.c: Sort headers.
8920 * ax-gdb.h: Sort headers.
8921 * ax-gdb.c: Sort headers.
8922 * avr-tdep.c: Sort headers.
8923 * auxv.c: Sort headers.
8924 * auto-load.c: Sort headers.
8925 * arm-wince-tdep.c: Sort headers.
8926 * arm-tdep.c: Sort headers.
8927 * arm-symbian-tdep.c: Sort headers.
8928 * arm-pikeos-tdep.c: Sort headers.
8929 * arm-obsd-tdep.c: Sort headers.
8930 * arm-nbsd-tdep.c: Sort headers.
8931 * arm-nbsd-nat.c: Sort headers.
8932 * arm-linux-tdep.c: Sort headers.
8933 * arm-linux-nat.c: Sort headers.
8934 * arm-fbsd-tdep.c: Sort headers.
8935 * arm-fbsd-nat.c: Sort headers.
8936 * arm-bsd-tdep.c: Sort headers.
8937 * arch-utils.c: Sort headers.
8938 * arc-tdep.c: Sort headers.
8939 * arc-newlib-tdep.c: Sort headers.
8940 * annotate.h: Sort headers.
8941 * annotate.c: Sort headers.
8942 * amd64-windows-tdep.c: Sort headers.
8943 * amd64-windows-nat.c: Sort headers.
8944 * amd64-tdep.c: Sort headers.
8945 * amd64-sol2-tdep.c: Sort headers.
8946 * amd64-obsd-tdep.c: Sort headers.
8947 * amd64-obsd-nat.c: Sort headers.
8948 * amd64-nbsd-tdep.c: Sort headers.
8949 * amd64-nbsd-nat.c: Sort headers.
8950 * amd64-nat.c: Sort headers.
8951 * amd64-linux-tdep.c: Sort headers.
8952 * amd64-linux-nat.c: Sort headers.
8953 * amd64-fbsd-tdep.c: Sort headers.
8954 * amd64-fbsd-nat.c: Sort headers.
8955 * amd64-dicos-tdep.c: Sort headers.
8956 * amd64-darwin-tdep.c: Sort headers.
8957 * amd64-bsd-nat.c: Sort headers.
8958 * alpha-tdep.c: Sort headers.
8959 * alpha-obsd-tdep.c: Sort headers.
8960 * alpha-nbsd-tdep.c: Sort headers.
8961 * alpha-mdebug-tdep.c: Sort headers.
8962 * alpha-linux-tdep.c: Sort headers.
8963 * alpha-linux-nat.c: Sort headers.
8964 * alpha-bsd-tdep.c: Sort headers.
8965 * alpha-bsd-nat.c: Sort headers.
8966 * aix-thread.c: Sort headers.
8967 * agent.c: Sort headers.
8968 * addrmap.c: Sort headers.
8969 * ada-varobj.c: Sort headers.
8970 * ada-valprint.c: Sort headers.
8971 * ada-typeprint.c: Sort headers.
8972 * ada-tasks.c: Sort headers.
8973 * ada-lang.c: Sort headers.
8974 * aarch64-tdep.c: Sort headers.
8975 * aarch64-ravenscar-thread.c: Sort headers.
8976 * aarch64-newlib-tdep.c: Sort headers.
8977 * aarch64-linux-tdep.c: Sort headers.
8978 * aarch64-linux-nat.c: Sort headers.
8979 * aarch64-fbsd-tdep.c: Sort headers.
8980 * aarch64-fbsd-nat.c: Sort headers.
8981 * aarch32-linux-nat.c: Sort headers.
8983 2019-04-04 Tom Tromey <tom@tromey.com>
8985 * varobj.c (varobj_create): Update.
8986 * rust-exp.y (struct rust_parser) <update_innermost_block,
8987 lookup_symbol>: New methods.
8988 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
8990 (rust_parser::rust_lookup_type)
8991 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
8992 * printcmd.c (display_command, do_one_display): Update.
8993 * parser-defs.h (struct parser_state) <parser_state>: Add
8994 "tracker" parameter.
8995 (block_tracker): New member.
8996 (class innermost_block_tracker) <innermost_block_tracker>: Add
8998 <reset>: Remove method.
8999 (innermost_block): Don't declare.
9000 (null_post_parser): Update.
9001 * parse.c (innermost_block): Remove global.
9002 (write_dollar_variable): Update.
9003 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
9004 Remove "tracker_types" parameter.
9005 (parse_expression): Add "tracker" parameter.
9006 (parse_expression_for_completion): Update.
9007 (null_post_parser): Add "tracker" parameter.
9008 * p-exp.y: Update rules.
9009 * m2-exp.y: Update rules.
9010 * language.h (struct language_defn) <la_post_parser>: Add
9011 "tracker" parameter.
9012 * go-exp.y: Update rules.
9013 * f-exp.y: Update rules.
9014 * expression.h (parse_expression, parse_exp_1): Add "tracker"
9016 * d-exp.y: Update rules.
9017 * c-exp.y: Update rules.
9018 * breakpoint.c (set_breakpoint_condition): Create an
9019 innermost_block_tracker.
9020 (watch_command_1): Likewise.
9021 * ada-lang.c (resolve): Add "tracker" parameter.
9022 (resolve_subexp): Likewise.
9023 * ada-exp.y (write_var_from_sym): Update.
9025 2019-04-04 Tom Tromey <tom@tromey.com>
9027 * type-stack.h: New file.
9028 * type-stack.c: New file.
9029 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
9031 (insert_into_type_stack, insert_type, push_type, push_type_int)
9032 (insert_type_address_space, pop_type, pop_type_int)
9033 (pop_typelist, pop_type_stack, append_type_stack)
9034 (push_type_stack, get_type_stack, push_typelist)
9035 (follow_type_instance_flags, follow_types): Don't declare.
9036 * parse.c (type_stack): Remove global.
9037 (parse_exp_in_context): Update.
9038 (insert_into_type_stack, insert_type, push_type, push_type_int)
9039 (insert_type_address_space, pop_type, pop_type_int)
9040 (pop_typelist, pop_type_stack, append_type_stack)
9041 (push_type_stack, get_type_stack, push_typelist)
9042 (follow_type_instance_flags, follow_types): Remove (moved to
9044 * f-exp.y (type_stack): New global.
9046 (push_kind_type, f_parse): Update.
9047 * d-exp.y (type_stack): New global.
9050 * c-exp.y (struct c_parse_state) <type_stack>: New member.
9052 * Makefile.in (COMMON_SFILES): Add type-stack.c.
9053 (HFILES_NO_SRCDIR): Add type-stack.h.
9055 2019-04-04 Tom Tromey <tom@tromey.com>
9057 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
9058 (rust_parser::convert_ast_to_expression, rust_parse)
9059 (rust_lex_test_completion, rust_lex_tests): Update.
9060 * parser-defs.h (struct expr_completion_state): New.
9061 (struct parser_state) <parser_state>: Add completion parameter.
9062 <mark_struct_expression, mark_completion_tag>: New methods.
9063 <parse_completion, m_completion_state>: New members.
9064 (prefixify_expression, null_post_parser): Update.
9065 (mark_struct_expression, mark_completion_tag): Don't declare.
9066 * parse.c (parse_completion, expout_last_struct)
9067 (expout_tag_completion_type, expout_completion_name): Remove
9069 (parser_state::mark_struct_expression)
9070 (parser_state::mark_completion_tag): Now methods.
9071 (prefixify_expression): Add last_struct parameter.
9072 (prefixify_subexp): Likewise.
9073 (parse_exp_1): Update.
9074 (parse_exp_in_context): Add cstate parameter. Update.
9075 (parse_expression_for_completion): Create an
9076 expr_completion_state.
9077 (null_post_parser): Add "completion" parameter.
9078 * p-exp.y: Update rules.
9080 * language.h (struct language_defn) <la_post_parser>: Add
9081 "completing" parameter.
9082 * go-exp.y: Update rules.
9083 (lex_one_token): Update.
9084 * expression.h (parse_completion): Don't declare.
9085 * d-exp.y: Update rules.
9086 (lex_one_token): Update rules.
9087 * c-exp.y: Update rules.
9088 (lex_one_token): Update.
9089 * ada-lang.c (resolve): Add "parse_completion" parameter.
9090 (resolve_subexp): Likewise.
9091 (ada_resolve_function): Likewise.
9093 2019-04-04 Tom Tromey <tom@tromey.com>
9095 * parser-defs.h (struct parser_state) <start_arglist,
9096 end_arglist>: New methods.
9097 <arglist_len, m_funcall_chain>: New members.
9098 (arglist_len, start_arglist, end_arglist): Don't declare.
9099 * parse.c (arglist_len, funcall_chain): Remove global.
9100 (start_arglist, end_arglist): Remove functions.
9101 (parse_exp_in_context): Update.
9102 * p-exp.y: Update rules.
9103 * m2-exp.y: Update rules.
9104 * go-exp.y: Update rules.
9105 * f-exp.y: Update rules.
9106 * d-exp.y: Update rules.
9107 * c-exp.y: Update rules.
9109 2019-04-04 Tom Tromey <tom@tromey.com>
9111 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
9112 lex_operator, push_back>: New methods.
9114 (rust_parser::lex_hex, lex_escape): Rename and update.
9115 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
9116 (rust_parser::lex_operator): Rename and update.
9117 (rust_parser::lex_number, rustyylex, rustyyerror)
9118 (rust_lex_test_init, rust_lex_test_sequence)
9119 (rust_lex_test_push_back, rust_lex_tests): Update.
9120 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
9122 <lexptr, prev_lexptr>: New members.
9123 (lexptr, prev_lexptr): Don't declare.
9124 * parse.c (lexptr, prev_lexptr): Remove globals.
9125 (parse_exp_in_context): Update.
9126 * p-exp.y (yylex, yyerror): Update.
9127 * m2-exp.y (parse_number, yylex, yyerror): Update.
9128 * go-exp.y (lex_one_token, yyerror): Update.
9129 * f-exp.y (match_string_literal, yylex, yyerror): Update.
9130 * d-exp.y (lex_one_token, yyerror): Update.
9131 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
9132 (lex_one_token, yyerror): Update.
9133 * ada-lex.l (YY_INPUT): Update.
9134 (rewind_to_char): Update.
9135 * ada-exp.y (yyerror): Update.
9137 2019-04-04 Tom Tromey <tom@tromey.com>
9139 * rust-exp.y (rustyylex, rust_lex_tests): Update.
9140 * parser-defs.h (struct parser_state) <parser_state>: Add new
9142 <comma_terminates>: New member.
9143 (comma_terminates): Don't declare global.
9144 * parse.c (comma_terminates): Remove global.
9145 (parse_exp_in_context): Update.
9146 * p-exp.y (yylex): Update.
9147 * m2-exp.y (yylex): Update.
9148 * go-exp.y (lex_one_token): Update.
9149 * f-exp.y (yylex): Update.
9150 * d-exp.y (lex_one_token): Update.
9151 * c-exp.y (lex_one_token): Update.
9152 * ada-lex.l: Update.
9154 2019-04-04 Tom Tromey <tom@tromey.com>
9156 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
9157 (rustyylex, rust_lex_test_init, rust_lex_test_one)
9158 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
9159 * parser-defs.h (paren_depth): Don't declare.
9160 * parse.c (paren_depth): Remove global.
9161 (parse_exp_in_context): Update.
9162 * p-exp.y (paren_depth): New global.
9163 (pascal_parse): Initialize it.
9164 * m2-exp.y (paren_depth): New global.
9165 (m2_parse): Initialize it.
9166 * go-exp.y (paren_depth): New global.
9167 (go_parse): Initialize it.
9168 * f-exp.y (paren_depth): New global.
9169 (f_parse): Initialize it.
9170 * d-exp.y (paren_depth): New global.
9171 (d_parse): Initialize it.
9172 * c-exp.y (paren_depth): New global.
9173 (c_parse): Initialize it.
9174 * ada-lex.l (paren_depth): New global.
9175 (lexer_init): Initialize it.
9177 2019-04-04 Tom Tromey <tom@tromey.com>
9179 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
9180 (rust_parser::convert_ast_to_type)
9181 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
9182 * parser-defs.h (struct parser_state) <parser_state>: Add
9183 parameters. Initialize new members.
9184 <expression_context_block, expression_context_pc>: New members.
9185 * parse.c (expression_context_block, expression_context_pc):
9187 (parse_exp_in_context): Update.
9188 * p-exp.y: Update all rules.
9190 * m2-exp.y: Update all rules.
9192 * go-exp.y (yylex): Update.
9193 * f-exp.y (yylex): Update.
9194 * d-exp.y: Update all rules.
9196 * c-exp.y: Update all rules.
9197 (lex_one_token, classify_name, yylex, c_parse): Update.
9198 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
9200 2019-04-04 Tom Tromey <tom@tromey.com>
9202 * gdbarch.h, gdbarch.c: Rebuild.
9203 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
9205 (struct stap_parse_info): Replace "parser_state" with
9207 * parser-defs.h (struct expr_builder): Rename from "parser_state".
9208 (parser_state): New class.
9209 * parse.c (expr_builder): Rename.
9210 (expr_builder::release): Rename.
9211 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
9212 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
9213 (write_exp_elt_longcst, write_exp_elt_floatcst)
9214 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
9215 (write_exp_string_vector, write_exp_bitstring)
9216 (write_exp_msymbol, mark_struct_expression)
9217 (write_dollar_variable)
9218 (insert_type_address_space, increase_expout_size): Replace
9219 "parser_state" with "expr_builder".
9220 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
9221 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
9222 "parser_state" with "expr_builder".
9224 2019-04-04 Tom Tromey <tom@tromey.com>
9226 * rust-exp.y: Replace "parse_language" with method call.
9228 (yylex): Replace "parse_language" with method call.
9230 (yylex): Replace "parse_language" with method call.
9231 * go-exp.y (classify_name): Replace "parse_language" with method
9233 * f-exp.y (yylex): Replace "parse_language" with method call.
9234 * d-exp.y (lex_one_token): Replace "parse_language" with method
9237 (lex_one_token, classify_name, yylex): Replace "parse_language"
9239 * ada-exp.y (find_primitive_type, type_char)
9240 (type_system_address): Replace "parse_language" with method call.
9242 2019-04-04 Tom Tromey <tom@tromey.com>
9244 * rust-exp.y: Replace "parse_gdbarch" with method call.
9245 * parse.c (write_dollar_variable, insert_type_address_space):
9246 Replace "parse_gdbarch" with method call.
9247 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
9249 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
9251 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
9252 "parse_gdbarch" with method call.
9253 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
9255 * f-exp.y (parse_type, parse_f_type, yylex): Replace
9256 "parse_gdbarch" with method call.
9257 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
9258 "parse_gdbarch" with method call.
9259 * c-exp.y (parse_type, parse_number, classify_name): Replace
9260 "parse_gdbarch" with method call.
9261 * ada-lex.l: Replace "parse_gdbarch" with method call.
9262 * ada-exp.y (parse_type, find_primitive_type, type_char)
9263 (type_system_address): Replace "parse_gdbarch" with method call.
9265 2019-04-04 Tom Tromey <tom@tromey.com>
9267 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
9268 * stap-probe.c (stap_parse_argument): Update.
9269 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
9270 initial_size parameter.
9271 * rust-exp.y (rust_lex_tests): Update.
9272 * parse.c (parser_state): Update.
9273 (parse_exp_in_context): Update.
9274 * parser-defs.h (struct parser_state) <parser_state>: Remove
9275 "initial_size" parameter.
9277 2019-04-04 Tom Tromey <tom@tromey.com>
9279 * parser-defs.h (increase_expout_size): Don't declare.
9280 * parse.c (increase_expout_size): Now static.
9282 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
9284 * gnu-nat.c (gnu_nat_target::wait): Fix
9285 target_waitstatus_to_string call.
9287 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
9289 * eval.c (evaluate_subexp_standard): Handle internal functions
9290 during Fortran function call handling.
9292 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
9294 * NEWS: Mention new internal functions.
9295 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
9296 (read_base_type): Use dwarf2_init_complex_target_type.
9297 * value.c (creal_internal_fn): New function.
9298 (cimag_internal_fn): New function.
9299 (_initialize_values): Register new internal functions.
9301 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9303 * infrun.c (stop_all_threads): If debug_infrun, always
9304 trace the wait status after wait_one, using
9305 target_waitstatus_to_string and target_pid_to_str.
9306 (handle_inferior_event): Replace various trace of
9307 wait status kind by a single trace.
9308 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
9309 wait status kind image by target_waitstatus_to_string.
9310 * target/waitstatus.c (target_waitstatus_to_string): Fix
9313 2019-04-01 Tom Tromey <tromey@adacore.com>
9316 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
9318 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
9319 Pedro Alves <palves@redhat.com>
9321 * top.c (quit_force): Call 'finalize_values'.
9322 * value.c (finalize_values): New function.
9323 * value.h (finalize_values): Declare.
9325 2019-03-30 Eli Zaretskii <eliz@gnu.org>
9327 * NEWS: Announce $_gdb_major and $_gdb_minor.
9329 * top.c (init_gdb_version_vars): New function.
9330 (gdb_init): Call init_gdb_version_vars.
9332 2019-03-29 Tom Tromey <tromey@adacore.com>
9334 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
9335 help text. Remove dead code.
9337 2019-03-29 Keith Seitz <keiths@redhat.com>
9339 From Siddhesh Poyarekar:
9340 * f-lang.h (f77_get_upperbound): Return LONGEST.
9341 (f77_get_lowerbound): Likewise.
9342 * f-typeprint.c (f_type_print_varspec_suffix): Expand
9343 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
9345 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
9346 plongest to format print it.
9347 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
9348 (f77_get_upperbound): Likewise.
9349 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
9350 LOWER_BOUND to LONGEST.
9351 (f77_create_arrayprint_offset_tbl): Likewise.
9353 2019-03-29 Keith Seitz <keiths@redhat.com>
9355 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
9356 %s/pulongest for TYPE_LENGTH instead of %d in format
9358 * ada-typerint.c (ada_print_type): Likewise.
9359 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
9360 * compile/compile-c-support.c (generate_register_struct): Likewise.
9361 * gdbtypes.c (recursive_dump_type): Likewise.
9362 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
9363 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
9364 instead of %d in format strings.
9365 * riscv-tdep.c (riscv_type_alignment): Cast second argument
9366 to std::min to ULONGEST.
9367 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
9368 instead of %d in format strings.
9369 * tracepoint.c (info_scope_command): Likewise.
9370 * typeprint.c (print_offset_data::update)
9371 (print_offset_data::finish): Likewise.
9372 * xtensa-tdep.c (xtensa_store_return_value)
9373 (xtensa_push_dummy_call): Likewise.
9375 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
9377 * windows-nat.c (display_selector): Fixed format specifications
9380 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9382 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
9384 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
9386 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
9387 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
9388 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
9389 (nios2_linux_init_abi): Install it.
9391 2019-03-28 Alan Hayward <alan.hayward@arm.com>
9393 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
9395 2019-03-28 Alan Hayward <alan.hayward@arm.com>
9397 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
9399 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9400 Tom Tromey <tromey@adacore.com>
9402 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
9404 2019-03-26 Joel Brobecker <brobecker@adacore.com>
9406 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
9407 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
9408 method to compute the bounds of range types. Also print "[evaluated]"
9409 if the bounds' values come from a dynamic evaluation.
9411 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
9413 * cp-valprint.c (cp_print_value_fields): Don't print trailing
9414 whitespace when pretty printing is on.
9416 2019-03-26 Alan Hayward <alan.hayward@arm.com>
9418 * ppc-linux-nat.c: Add include.
9420 2019-03-26 Alan Hayward <alan.hayward@arm.com>
9422 * NEWS: Mention AArch64 Pointer Authentication.
9424 2019-03-26 Alan Hayward <alan.hayward@arm.com>
9426 * arm-linux-nat.c: Add include.
9428 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
9430 * source-cache.c (source_cache::get_source_lines): Re-read
9431 fullname after calling open_source_file.
9433 2019-03-25 John Baldwin <jhb@FreeBSD.org>
9435 * NEWS: Mention TLS support for FreeBSD.
9437 2019-03-25 Tom Tromey <tromey@adacore.com>
9439 * minsyms.c (BUNCH_SIZE): Update comment.
9440 (~minimal_symbol_reader): Remove old comment.
9441 (compact_minimal_symbols): Update comment.
9442 (minimal_symbol_reader::install): Remove old comment. Update
9445 2019-03-25 Alan Hayward <alan.hayward@arm.com>
9447 * s390-linux-nat.c: Add include.
9449 2019-03-25 Alan Hayward <alan.hayward@arm.com>
9451 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
9452 Call linux_get_hwcap.
9453 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
9455 (aarch64_linux_get_hwcap): Remove function.
9456 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
9458 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
9460 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
9461 * linux-tdep.c (linux_get_hwcap): Add function.
9462 (linux_get_hwcap2): Likewise.
9463 * linux-tdep.h (linux_get_hwcap): Add declaration.
9464 (linux_get_hwcap2): Likewise.
9465 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
9466 (ppc_linux_get_hwcap2): Likewise.
9467 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
9469 (ppc_linux_nat_target::insert_watchpoint): Likewise.
9470 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
9471 (ppc_linux_nat_target::read_description): Likewise.
9472 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
9473 * s390-linux-nat.c: Likewise.
9474 * s390-linux-tdep.c (s390_core_read_description): Likewise.
9476 2019-03-24 Tom Tromey <tom@tromey.com>
9478 * ada-lang.c (standard_lookup): Simplify initialization.
9479 (ada_lookup_symbol_nonlocal): Simplify return.
9480 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
9481 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
9482 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
9483 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
9485 * solib.c (solib_global_lookup): Simplify.
9486 * symtab.c (null_block_symbol): Remove.
9487 (symbol_cache_lookup): Simplify returns.
9488 (lookup_language_this): Simplify returns.
9489 (lookup_symbol_aux): Simplify return.
9490 (lookup_local_symbol): Simplify returns.
9491 (lookup_global_symbol_from_objfile): Simplify return.
9492 (lookup_symbol_in_objfile_symtabs)
9493 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
9494 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
9495 (lookup_static_symbol, lookup_global_symbol): Simplify return.
9496 * cp-namespace.c (cp_lookup_bare_symbol)
9497 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
9498 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
9499 (cp_lookup_nested_symbol): Don't use null_block_symbol.
9500 (cp_lookup_symbol_via_imports): Simplify initialization.
9501 (find_symbol_in_baseclass): Likewise.
9502 * symtab.h (null_block_symbol): Remove.
9503 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
9504 (d_lookup_nested_symbol, d_lookup_symbol_imports)
9505 (d_lookup_symbol_module): Likewise.
9506 (find_symbol_in_baseclass): Simplify initialization.
9508 2019-03-24 Tom Tromey <tom@tromey.com>
9510 * expression.h: Don't include symtab.h.
9511 (struct block): Forward declare.
9513 2019-03-24 Tom Tromey <tom@tromey.com>
9515 * c-exp.y (typebase): Remove casts.
9516 * gdbtypes.c (lookup_unsigned_typename, )
9517 (lookup_signed_typename): Remove cast.
9518 * eval.c (parse_to_comma_and_eval): Remove cast.
9519 * parse.c (write_dollar_variable): Remove cast.
9520 * block.h (struct block) <superblock>: Now const.
9521 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
9522 * psymtab.c (psym_map_matching_symbols): Make "block" const.
9523 (map_block): Make "block" const.
9524 * symfile.h (struct quick_symbol_functions)
9525 <map_matching_symbols>: Constify block argument to "callback".
9526 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
9528 (find_pc_sect_compunit_symtab): Make "b" const.
9529 (find_symbol_at_address): Likewise.
9530 (search_symbols): Likewise.
9531 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
9532 (dw2_debug_names_lookup_symbol): Likewise.
9533 (dw2_map_matching_symbols): Update.
9534 * p-valprint.c (pascal_val_print): Remove "block".
9535 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
9536 (aux_add_nonlocal_symbols): Make "block" const.
9537 (resolve_subexp): Remove cast.
9538 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
9540 (iterate_over_file_blocks): Likewise.
9541 * f-exp.y (%union) <bval>: Remove.
9542 * coffread.c (patch_opaque_types): Make "b" const.
9543 * spu-tdep.c (spu_catch_start): Make "block" const.
9544 * c-valprint.c (print_unpacked_pointer): Remove "block".
9545 * symmisc.c (dump_symtab_1): Make "b" const.
9546 (block_depth): Make "block" const.
9547 * d-exp.y (%union) <bval>: Remove.
9548 * cp-support.h (cp_lookup_rtti_type): Update.
9549 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
9550 * psymtab.c (psym_lookup_symbol): Make "block" const.
9551 (maintenance_check_psymtabs): Make "b" const.
9552 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
9553 (enumerate_locals, enumerate_args): Update.
9554 * python/py-symtab.c (stpy_global_block): Make "block" const.
9555 (stpy_static_block): Likewise.
9556 * inline-frame.c (block_starting_point_at): Make "new_block"
9558 * block.c (find_block_in_blockvector): Make return type const.
9559 (blockvector_for_pc_sect): Make "b" const.
9560 (find_block_in_blockvector): Make "b" const.
9562 2019-03-23 Tom Tromey <tom@tromey.com>
9564 * varobj.c (varobj_create): Update.
9565 * symfile.c (clear_symtab_users): Don't reset innermost_block.
9566 * printcmd.c (display_command, do_one_display): Don't reset
9568 * parser-defs.h (enum innermost_block_tracker_type): Move to
9570 (innermost_block): Update comment.
9571 * parse.c (parse_exp_1): Add tracker_types parameter.
9572 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
9573 tracker_types parameter. Reset innermost_block.
9574 (parse_exp_in_context): Remove.
9575 (parse_expression_for_completion): Update.
9576 * objfiles.c (~objfile): Don't reset expression_context_block or
9578 * expression.h (enum innermost_block_tracker_type): Move from
9580 (parse_exp_1): Add tracker_types parameter.
9581 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
9582 reset innermost_block.
9584 2019-03-23 Tom Tromey <tom@tromey.com>
9586 * objfiles.h: Include bcache.h.
9588 2019-03-23 Tom Tromey <tom@tromey.com>
9590 * linespec.c (get_current_search_block): Use
9591 scoped_restore_current_language.
9592 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
9594 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9595 Jiong Wang <jiong.wang@arm.com>
9597 * aarch64-linux-tdep.c
9598 (aarch64_linux_iterate_over_regset_sections): Check for pauth
9600 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
9602 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9603 Jiong Wang <jiong.wang@arm.com>
9605 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
9607 (aarch64_analyze_prologue_test): Add PACIASP test.
9608 (aarch64_prologue_prev_register): Unmask PC value.
9610 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9611 Jiong Wang <jiong.wang@arm.com>
9613 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
9614 (aarch64_dwarf2_prev_register): Unmask PC value.
9615 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
9616 (aarch64_execute_dwarf_cfa_vendor_op): Check for
9617 DW_CFA_AARCH64_negate_ra_state.
9618 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
9620 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9621 Jiong Wang <jiong.wang@arm.com>
9623 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
9625 (aarch64_pseudo_register_name): Likewise.
9626 (aarch64_pseudo_register_type): Likewise.
9627 (aarch64_pseudo_register_reggroup_p): Likewise.
9628 (aarch64_gdbarch_init): Add pauth registers.
9629 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
9630 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
9631 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
9632 (struct gdbarch_tdep): Add regnum for ra_state.
9634 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9635 Jiong Wang <jiong.wang@arm.com>
9637 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
9639 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9640 Jiong Wang <jiong.wang@arm.com>
9642 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
9644 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
9645 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
9646 (aarch64_gdbarch_init): Add puth registers.
9647 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
9648 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
9649 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
9651 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9652 Jiong Wang <jiong.wang@arm.com>
9654 * aarch64-linux-nat.c
9655 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
9656 * aarch64-linux-tdep.c
9657 (aarch64_linux_core_read_description): Likewise.
9658 (aarch64_linux_get_hwcap): New function.
9659 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
9660 (aarch64_linux_get_hwcap): New declaration.
9662 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9663 Jiong Wang <jiong.wang@arm.com>
9665 * aarch64-linux-nat.c
9666 (aarch64_linux_nat_target::read_description): Add pauth param.
9667 * aarch64-linux-tdep.c
9668 (aarch64_linux_core_read_description): Likewise.
9669 * aarch64-tdep.c (struct target_desc): Add in pauth.
9670 (aarch64_read_description): Add pauth param.
9671 (aarch64_gdbarch_init): Likewise.
9672 * aarch64-tdep.h (aarch64_read_description): Likewise.
9673 * arch/aarch64.c (aarch64_create_target_description): Likewise.
9674 * arch/aarch64.h (aarch64_create_target_description): Likewise.
9675 * features/Makefile: Add new files.
9676 * features/aarch64-pauth.c: New file.
9677 * features/aarch64-pauth.xml: New file.
9679 2019-03-20 Tom Tromey <tromey@adacore.com>
9681 * infrun.c (handle_inferior_event): Rename from
9682 handle_inferior_event_1. Create a scoped_value_mark.
9683 (handle_inferior_event): Remove.
9685 2019-03-19 Tom Tromey <tromey@adacore.com>
9687 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
9688 * infrun.h (print_stop_event): Add "displays" parameter.
9689 * infrun.c (print_stop_event): Add "displays" parameter.
9691 2019-03-19 Pedro Alves <palves@redhat.com>
9693 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
9694 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
9695 to -1. Fix TABs vs spaces.
9696 (tui_ui_out::tui_ui_out): Don't initialize fields here.
9697 * tui/tui-out.h (tui_ui_out) Add intro comments.
9698 <m_line, m_start_of_line>: In-class initialize, and add describing
9701 2019-03-18 Alan Hayward <alan.hayward@arm.com>
9703 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
9705 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
9707 2019-03-18 Pedro Alves <palves@redhat.com>
9708 Eli Zaretskii <eliz@gnu.org>
9710 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
9711 m_line and m_start_of_line.
9713 2019-03-18 Eli Zaretskii <eliz@gnu.org>
9715 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
9716 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
9717 it returns a newline. This fixes a regression in TU mode, whereby
9718 the next line is output on the same screen line as the user input.
9720 2019-03-18 Tom Tromey <tromey@adacore.com>
9722 * minsyms.c (minimal_symbol_reader::install): Remove call to
9725 2019-03-18 Pedro Alves <palves@redhat.com>
9727 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
9729 (apply_style): New, factored out from ...
9730 (apply_ansi_escape): ... this. Handle reverse video mode.
9731 (tui_set_reverse_mode): New function.
9732 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
9733 * tui/tui-winsource.c (tui_show_source_line): Use
9734 tui_set_reverse_mode instead of setting A_STANDOUT.
9735 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
9738 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
9740 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
9743 2019-03-18 Tom Tromey <tromey@adacore.com>
9745 * ada-lang.c (empty_array): Add "high" parameter.
9746 (ada_evaluate_subexp): Update.
9748 2019-03-17 Sergei Trofimovich <siarheit@google.com>
9750 * unittests/string_view-selftests.c: Define
9751 _initialize_string_view_selftests unconditionally.
9753 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9756 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
9758 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9761 * windows-nat.c (display_selector): Fix format specifiers.
9763 2019-03-17 Eli Zaretskii <eliz@gnu.org>
9765 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
9766 tui_refill_source_window instead of tui_refresh_win, to update the
9767 current execution line. This fixes redisplay of the current line
9768 when stepping through the code with "next" or "step".
9770 2019-03-16 Eli Zaretskii <eliz@gnu.org>
9772 * source-cache.c (source_cache::get_source_lines): Call
9773 find_source_lines to initialize s->nlines. This fixes vertical
9774 scrolling of TUI source window when the DOWN arrow is pressed.
9776 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9778 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
9779 linux-thread-db.c (_initialize_thread_db): Likewise.
9781 2019-03-16 Eli Zaretskii <eliz@gnu.org>
9783 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
9784 wclrtoeol in tui_show_source_line". This reverts changes made in
9785 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
9787 2019-03-15 Tom Tromey <tom@tromey.com>
9789 * symtab.h (struct minimal_symbol): Derive from
9790 general_symbol_info.
9791 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
9792 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9793 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9794 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9795 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
9796 (MSYMBOL_SEARCH_NAME): Update.
9797 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
9798 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
9799 * minsyms.c (minimal_symbol_reader::record_full): Update.
9801 2019-03-15 Tom Tromey <tom@tromey.com>
9803 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
9805 2019-03-15 Tom Tromey <tom@tromey.com>
9807 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
9809 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
9811 * minsyms.c (lookup_minimal_symbol_by_pc_section)
9812 (build_minimal_symbol_hash_tables)
9813 (minimal_symbol_reader::install): Update.
9815 2019-03-15 Tom Tromey <tom@tromey.com>
9817 * symtab.c (create_demangled_names_hash): Update.
9818 (symbol_set_names): Update.
9819 * objfiles.h (struct objfile_per_bfd_storage)
9820 <demangled_names_hash>: Now an htab_up.
9821 * objfiles.c (objfile_per_bfd_storage): Simplify.
9823 2019-03-15 Tom Tromey <tom@tromey.com>
9825 * objfiles.h (struct objfile_per_bfd_storage): Declare
9827 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
9829 (get_objfile_bfd_data): Use new. Don't initialize
9831 (free_objfile_per_bfd_storage): Remove.
9832 (objfile_bfd_data_free, objfile::~objfile): Use delete.
9834 2019-03-15 Tom Tromey <tom@tromey.com>
9836 * symfile.c (reread_symbols): Update.
9837 * objfiles.c (objfile::objfile): Update.
9838 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
9839 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
9841 (minimal_symbol_reader::install): Update.
9842 (terminate_minimal_symbol_table): Remove.
9843 * jit.c (jit_object_close_impl): Update.
9845 2019-03-15 Tom Tromey <tom@tromey.com>
9847 * minsyms.c (minimal_symbol_reader::record_full): Remove some
9850 2019-03-15 Tom Tromey <tom@tromey.com>
9852 * objfiles.h (struct objfile_per_bfd_storage)
9853 <demangled_hash_languages>: Now a bitset.
9854 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
9855 (lookup_minimal_symbol): Update.
9857 2019-03-15 Tom Tromey <tom@tromey.com>
9859 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
9860 Don't return the symbol.
9861 * coffread.c (record_minimal_symbol): Use record_full.
9863 2019-03-14 Eli Zaretskii <eliz@gnu.org>
9865 The MS-Windows port of ncurses fails to switch to a color pair if
9866 one or both of the colors are the implicit default colors. This
9867 change records the default colors when TUI is initialized, and
9868 then specifies them explicitly when a color pair uses the default
9869 colors. This allows color styling in TUI mode on MS-Windows.
9871 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
9873 (tui_initialize_io) [__MINGW32__]: Record the default terminal
9874 colors in ncurses_norm_attr.
9875 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
9876 "none", replace it with the default color recorded in
9879 2019-03-14 Tom Tromey <tromey@adacore.com>
9881 * source-cache.h (class source_cache) <get_source_lines>: Return
9883 * source-cache.c (source_cache::extract_lines): Handle case where
9884 first_pos==npos. Return std::string.
9885 (source_cache::get_source_lines): Update.
9887 2019-03-14 Tom Tromey <tromey@adacore.com>
9889 * NEWS: Add item for "style sources" commands.
9890 * source-cache.c (source_cache::get_source_lines): Check
9892 * cli/cli-style.c (source_styling): New global.
9893 (_initialize_cli_style): Add "style sources" commands.
9894 (show_style_sources): New function.
9895 * cli/cli-style.h (source_styling): Declare.
9897 2019-03-14 Pedro Alves <palves@redhat.com>
9898 Tom Tromey <tromey@adacore.com>
9900 * tui/tui-winsource.h (tui_refill_source_window): Declare.
9901 * tui/tui-winsource.c (tui_refill_source_window): New function,
9903 (tui_horizontal_source_scroll): ... here. Move some logic.
9904 * cli/cli-style.c (set_style_enabled): Notify new observable.
9905 * tui/tui-hooks.c (tui_redisplay_source): New function.
9906 (tui_attach_detach_observers): Attach or detach
9907 tui_redisplay_source.
9908 * observable.h (source_styling_changed): New observable.
9909 * observable.c: Define source_styling_changed observable.
9911 2019-03-13 Tom Tromey <tromey@adacore.com>
9913 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
9914 (i386_gnu_nat_target::store_registers): Update.
9915 * target-debug.h (target_debug_print_std_string): New macro.
9916 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
9917 * windows-tdep.c (display_one_tib): Update.
9918 * tui/tui-stack.c (tui_make_status_line): Update.
9919 * top.c (print_inferior_quit_action): Update.
9920 * thread.c (thr_try_catch_cmd): Update.
9921 (add_thread_with_info): Update.
9922 (thread_target_id_str): Update.
9923 (thr_try_catch_cmd): Update.
9924 (thread_command): Update.
9925 (thread_find_command): Update.
9926 * record-btrace.c (record_btrace_target::info_record)
9927 (record_btrace_resume_thread, record_btrace_target::resume)
9928 (record_btrace_cancel_resume, record_btrace_step_thread)
9929 (record_btrace_target::wait, record_btrace_target::wait)
9930 (record_btrace_target::wait, record_btrace_target::stop): Update.
9931 * progspace.c (print_program_space): Update.
9932 * process-stratum-target.c
9933 (process_stratum_target::thread_address_space): Update.
9934 * linux-fork.c (linux_fork_mourn_inferior)
9935 (detach_checkpoint_command, info_checkpoints_command)
9936 (linux_fork_context): Update.
9937 (linux_fork_detach): Update.
9938 (class scoped_switch_fork_info): Update.
9939 (delete_checkpoint_command): Update.
9940 * infrun.c (follow_fork_inferior): Update.
9941 (follow_fork_inferior): Update.
9942 (proceed_after_vfork_done): Update.
9943 (handle_vfork_child_exec_or_exit): Update.
9944 (follow_exec): Update.
9945 (displaced_step_prepare_throw): Update.
9946 (displaced_step_restore): Update.
9947 (start_step_over): Update.
9949 (clear_proceed_status_thread): Update.
9951 (print_target_wait_results): Update.
9952 (do_target_wait): Update.
9953 (context_switch): Update.
9954 (stop_all_threads): Update.
9955 (restart_threads): Update.
9956 (finish_step_over): Update.
9957 (handle_signal_stop): Update.
9958 (switch_back_to_stepped_thread): Update.
9959 (keep_going_pass_signal): Update.
9960 (print_exited_reason): Update.
9961 (normal_stop): Update.
9962 * inferior.c (inferior_pid_to_str): Change return type.
9963 (print_selected_inferior): Update.
9964 (add_inferior): Update.
9965 (detach_inferior): Update.
9966 * dummy-frame.c (fprint_dummy_frames): Update.
9967 * dcache.c (dcache_info_1): Update.
9968 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
9969 (btrace_fetch, btrace_clear): Update.
9970 * linux-tdep.c (linux_core_pid_to_str): Change return type.
9971 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
9973 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
9974 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
9975 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
9976 * gdbarch.c, gdbarch.h: Rebuild.
9977 * gdbarch.sh (core_pid_to_str): Change return type.
9978 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
9980 (windows_nat_target::pid_to_str): Change return type.
9981 (windows_delete_thread): Update.
9982 (windows_nat_target::attach): Update.
9983 (windows_nat_target::files_info): Update.
9984 * target-delegates.c: Rebuild.
9985 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
9987 (sol_thread_target::pid_to_str): Change return type.
9988 * remote.c (class remote_target) <pid_to_str>: Change return
9990 (remote_target::pid_to_str): Change return type.
9991 (extended_remote_target::attach, remote_target::remote_stop_ns)
9992 (remote_target::remote_notif_remove_queued_reply)
9993 (remote_target::push_stop_reply, remote_target::disable_btrace):
9995 (extended_remote_target::attach): Update.
9996 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
9998 (gdbsim_target::pid_to_str): Change return type.
9999 * ravenscar-thread.c (struct ravenscar_thread_target)
10000 <pid_to_str>: Change return type.
10001 (ravenscar_thread_target::pid_to_str): Change return type.
10002 * procfs.c (class procfs_target) <pid_to_str>: Change return
10004 (procfs_target::pid_to_str): Change return type.
10005 (procfs_target::attach): Update.
10006 (procfs_target::detach): Update.
10007 (procfs_target::fetch_registers): Update.
10008 (procfs_target::store_registers): Update.
10009 (procfs_target::wait): Update.
10010 (procfs_target::files_info): Update.
10011 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
10012 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
10014 (nto_procfs_target::pid_to_str): Change return type.
10015 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
10016 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
10018 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
10019 (exit_lwp): Update.
10020 (attach_proc_task_lwp_callback, get_detach_signal)
10021 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
10022 (linux_nat_target::resume, wait_lwp, stop_callback)
10023 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
10024 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
10025 (linux_nat_wait_1, resume_stopped_resumed_lwps)
10026 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
10027 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
10029 (inf_ptrace_target::attach): Update.
10030 (inf_ptrace_target::files_info): Update.
10031 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
10033 (go32_nat_target::pid_to_str): Change return type.
10034 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
10035 (gnu_nat_target::wait): Update.
10036 (gnu_nat_target::wait): Update.
10037 (gnu_nat_target::resume): Update.
10038 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
10039 (fbsd_nat_target::wait): Update.
10040 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
10042 (darwin_nat_target::attach): Update.
10043 * corelow.c (class core_target) <pid_to_str>: Change return type.
10044 (core_target::pid_to_str): Change return type.
10045 * target.c (normal_pid_to_str): Change return type.
10046 (default_pid_to_str): Likewise.
10047 (target_pid_to_str): Change return type.
10048 (target_translate_tls_address): Update.
10049 (target_announce_detach): Update.
10050 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
10052 (bsd_uthread_target::pid_to_str): Change return type.
10053 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
10055 (bsd_kvm_target::pid_to_str): Change return type.
10056 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
10058 (aix_thread_target::pid_to_str): Change return type.
10059 * target.h (struct target_ops) <pid_to_str>: Change return type.
10060 (target_pid_to_str, normal_pid_to_str): Likewise.
10061 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
10063 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
10065 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
10067 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
10069 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
10071 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
10074 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
10076 * NEWS: Mention that the new default MI version is 3. Mention
10077 changes to the output of commands and events that deal with
10078 multi-location breakpoints.
10079 * breakpoint.c: Include "mi/mi-out.h".
10080 (print_one_breakpoint): Change output syntax if using MI version
10082 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
10084 (mi_multi_location_breakpoint_output_fixed): New.
10085 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
10086 (mi_cmd_fix_multi_location_breakpoint_output): New.
10087 (mi_multi_location_breakpoint_output_fixed): New.
10088 * mi/mi-cmds.c (mi_cmds): Register command
10089 -fix-multi-location-breakpoint-output.
10090 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
10093 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10095 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
10096 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
10097 instantiate mi_ui_out based on interpreter name.
10098 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
10099 * mi/mi-main.c (mi_load_progress): Likewise.
10101 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10103 * NEWS: Combine separate "New targets" sections for 8.3.
10105 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10107 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
10108 (ppcfbsd_init_abi): Install gdbarch
10109 "fetch_tls_load_module_address" and "get_thread_local_address"
10112 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10114 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
10115 (riscv_fbsd_init_abi): Install gdbarch
10116 "fetch_tls_load_module_address" and "get_thread_local_address"
10119 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10121 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
10122 (i386fbsd_init_abi): Install gdbarch
10123 "fetch_tls_load_module_address" and "get_thread_local_address"
10126 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10128 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
10129 (amd64fbsd_init_abi): Install gdbarch
10130 "fetch_tls_load_module_address" and "get_thread_local_address"
10133 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10135 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
10136 (struct fbsd_pspace_data): New type.
10137 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
10138 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
10139 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
10140 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
10141 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
10143 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10145 * gdbtypes.c (lookup_struct_elt): New function.
10146 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
10147 * gdbtypes.h (struct struct_elt): New type.
10148 (lookup_struct_elt): New prototype.
10150 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10152 * gdbtypes.c (lookup_struct_elt_type): Update comment and
10153 remove disabled code block.
10155 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10157 * gdbarch.sh (get_thread_local_address): New method.
10158 * gdbarch.h, gdbarch.c: Regenerate.
10159 * target.c (target_translate_tls_address): Use
10160 gdbarch_get_thread_local_address if present instead of
10161 target::get_thread_local_address.
10163 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10165 * target.h (target::get_thread_local_address): Update comment.
10167 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10169 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
10170 objfile->separate_debug_objfile_backlink if not NULL.
10172 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10174 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
10175 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
10176 (amd64bsd_store_inferior_registers): Likewise.
10177 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
10178 Enable segment base registers.
10179 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
10180 PT_GETFSBASE and PT_GETGSBASE.
10181 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
10183 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
10184 segment base registers.
10185 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
10187 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10189 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
10190 Update calls to i386_target_description to add 'segments'
10192 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
10193 add segment base registers.
10194 * arch/i386.c (i386_create_target_description): Add 'segments'
10195 parameter to enable segment base registers.
10196 * arch/i386.h (i386_create_target_description): Likewise.
10197 * features/i386/32bit-segments.xml: New file.
10198 * features/i386/32bit-segments.c: Generate.
10199 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
10200 call to i386_target_description to add 'segments' parameter.
10201 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
10202 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
10203 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
10204 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
10205 if feature is present.
10206 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
10207 Add 'segments' parameter to call to i386_target_description.
10208 (i386_target_description): Add 'segments' parameter to enable
10209 segment base registers.
10210 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
10211 to call to i386_target_description.
10212 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
10213 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
10214 Define I386_NUM_REGS.
10215 (i386_target_description): Add 'segments' parameter to enable
10216 segment base registers.
10218 2019-03-12 Eli Zaretskii <eliz@gnu.org>
10221 * source-cache.c: #undef open and close, to avoid unresolved
10222 externals during linking.
10224 2019-03-12 Tom Tromey <tromey@adacore.com>
10226 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
10227 const. Add initializers.
10228 (_initialize_remote): Don't initialize ptid globals.
10230 2019-03-12 Pedro Alves <palves@redhat.com>
10232 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
10234 2019-03-12 Pedro Alves <palves@redhat.com>
10236 * cp-name-parser.y (main): Remove unused 'len' variable.
10238 2019-03-12 Tom Tromey <tromey@adacore.com>
10240 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
10241 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
10243 2019-03-12 Tom Tromey <tromey@adacore.com>
10245 * linux-nat.c (iterate_over_lwps): Update.
10246 (stop_callback): Remove parameter.
10247 (stop_wait_callback, detach_callback, resume_set_callback)
10248 (select_singlestep_lwp_callback, set_ignore_sigint)
10249 (status_callback, resumed_callback, resume_clear_callback)
10250 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
10252 (linux_nat_target::detach, linux_nat_target::resume)
10253 (linux_stop_and_wait_all_lwps, select_event_lwp)
10254 (linux_nat_filter_event, linux_nat_wait_1)
10255 (linux_nat_target::kill, linux_nat_target::stop)
10256 (linux_nat_target::stop): Update.
10257 (linux_nat_resume_callback): Change type.
10258 (resume_stopped_resumed_lwps, count_events_callback)
10259 (select_event_lwp_callback): Likewise.
10260 (linux_stop_lwp, linux_nat_stop_lwp): Update.
10261 * arm-linux-nat.c (struct update_registers_data): Remove.
10262 (update_registers_callback): Change type.
10263 (arm_linux_insert_hw_breakpoint1): Update.
10264 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
10266 (x86_linux_dr_set_addr): Update.
10267 (x86_linux_dr_set_control): Update.
10268 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
10269 (iterate_over_lwps): Use gdb::function_view.
10270 * nat/aarch64-linux-hw-point.c (struct
10271 aarch64_dr_update_callback_param): Remove.
10272 (debug_reg_change_callback): Change type.
10273 (aarch64_notify_debug_reg_change): Update.
10274 * s390-linux-nat.c (s390_refresh_per_info): Update.
10276 2019-03-11 Tom Tromey <tromey@adacore.com>
10278 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
10279 redundant assignment to "this_cu".
10281 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10283 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
10285 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10287 * gdbtypes.c (rank_one_type_parm_set): New function extracted
10289 (rank_one_type): ... this.
10291 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10293 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
10295 (rank_one_type): ... this.
10297 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10299 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
10301 (rank_one_type): ... this.
10303 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10305 * gdbtypes.c (rank_one_type_parm_float): New function extracted
10307 (rank_one_type): ... this.
10309 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10311 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
10313 (rank_one_type): ... this.
10315 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10317 * gdbtypes.c (rank_one_type_parm_range): New function extracted
10319 (rank_one_type): ... this.
10321 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10323 * gdbtypes.c (rank_one_type_parm_char): New function extracted
10325 (rank_one_type): ... this.
10327 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10329 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
10331 (rank_one_type): ... this.
10333 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10335 * gdbtypes.c (rank_one_type_parm_int): New function extracted
10337 (rank_one_type): ... this.
10339 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10341 * gdbtypes.c (rank_one_type_parm_func): New function extracted
10343 (rank_one_type): ... this.
10345 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10347 * gdbtypes.c (rank_one_type_parm_array): New function extracted
10349 (rank_one_type): ... this.
10351 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10353 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
10355 (rank_one_type): ... this.
10357 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10359 * inferior.c (initialize_inferiors): Ensure 'help set/show print
10360 inferior-events' shows the example events.
10362 2019-03-08 Eli Zaretskii <eliz@gnu.org>
10364 Support styling on native MS-Windows console
10367 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
10368 on MS-Windows if $TERM is not defined.
10370 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
10372 * posix-hdep.c (gdb_console_fputs):
10373 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
10375 * ui-file.h (gdb_console_fputs): Add prototype.
10377 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
10378 back to fputs only if the former returns zero.
10380 2019-03-07 Tom Tromey <tom@tromey.com>
10382 * symmisc.c (print_symbol_bcache_statistics): Update.
10383 (print_objfile_statistics): Update.
10384 * symfile.c (allocate_symtab): Update.
10385 * stabsread.c: Don't include bcache.h.
10386 * psymtab.h (struct psymbol_bcache): Don't declare.
10387 (class psymtab_storage) <psymbol_cache>: Now a bcache.
10388 (psymbol_bcache_init, psymbol_bcache_free)
10389 (psymbol_bcache_get_bcache): Don't declare.
10390 * psymtab.c (struct psymbol_bcache): Remove.
10391 (psymtab_storage::psymtab_storage): Update.
10392 (psymtab_storage::~psymtab_storage): Update.
10393 (psymbol_bcache_init, psymbol_bcache_free)
10394 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
10395 (add_psymbol_to_bcache): Update.
10396 (allocate_psymtab): Update.
10397 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10398 macro_cache>: No longer pointers.
10399 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
10400 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
10401 * macrotab.c (macro_bcache): Update.
10402 * macroexp.c: Don't include bcache.h.
10403 * gdbtypes.c (check_types_worklist): Update.
10404 (types_deeply_equal): Remove TRY/CATCH. Update.
10405 * elfread.c (elf_symtab_read): Update.
10406 * dwarf2read.c: Don't include bcache.h.
10407 * buildsym.c (buildsym_compunit::get_macro_table): Update.
10408 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
10409 (print_bcache_statistics, bcache_memory_used): Don't declare.
10410 (struct bcache): Move from bcache.c. Add constructor, destructor,
10411 methods. Rename all data members.
10412 * bcache.c (struct bcache): Move to bcache.h.
10413 (bcache::expand_hash_table): Rename from expand_hash_table.
10415 (bcache::insert): Rename from bcache_full.
10416 (bcache::compare): Rename from bcache_compare.
10417 (bcache_xmalloc): Remove.
10418 (bcache::~bcache): Rename from bcache_xfree.
10419 (bcache::print_statistics): Rename from print_bcache_statistics.
10420 (bcache::memory_used): Rename from bcache_memory_used.
10422 2019-03-07 Pedro Alves <palves@redhat.com>
10424 * infrun.c (normal_stop): Also check for
10425 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
10427 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
10429 * f-lang.c (value_from_host_double): Moved to...
10430 * value.c (value_from_host_double): ...here.
10431 * value.h (value_from_host_double): Declare.
10432 * guile/scm-math.c (vlscm_convert_typed_number): Use
10433 value_from_host_double.
10434 (vlscm_convert_number): Likewise.
10435 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
10436 * python/py-value.c (convert_value_from_python): Likewise.
10438 2019-03-06 Tom Tromey <tom@tromey.com>
10440 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
10442 2019-03-06 Tom Tromey <tom@tromey.com>
10444 * utils.h (free_current_contents): Don't declare.
10445 * utils.c (free_current_contents): Remove.
10447 2019-03-06 Tom Tromey <tom@tromey.com>
10449 * top.c (quit_force): Update.
10450 * main.c (captured_command_loop): Update.
10451 * common/new-op.c (operator new): Update.
10452 * common/common-exceptions.c (struct catcher)
10453 <save_cleanup_chain>: Remove member.
10454 (exceptions_state_mc_init): Update.
10455 (exception_try_scope_entry): Return nullptr.
10456 (exception_try_scope_exit, exception_rethrow)
10457 (throw_exception_sjlj, throw_exception_cxx): Update.
10458 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
10459 (all_cleanups, do_cleanups, discard_cleanups)
10460 (discard_final_cleanups, save_cleanups, save_final_cleanups)
10461 (restore_cleanups, restore_final_cleanups): Don't declare.
10462 (do_final_cleanups): Remove parameter.
10463 * common/cleanups.c (cleanup_chain, make_cleanup)
10464 (make_cleanup_dtor, all_cleanups, do_cleanups)
10465 (discard_my_cleanups, discard_cleanups)
10466 (discard_final_cleanups, save_my_cleanups, save_cleanups)
10467 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
10468 (null_cleanup): Remove.
10469 (do_final_cleanups): Remove parameter.
10471 2019-03-06 Tom Tromey <tom@tromey.com>
10473 * remote.c (remote_target::remote_parse_stop_reply): Use
10474 unique_xmalloc_ptr.
10476 2019-03-06 Tom Tromey <tom@tromey.com>
10478 * stabsread.c (struct stabs_field_info): Rename from field_info.
10479 <list, fnlist>: Add initializers.
10480 <obstack>: New member.
10481 (read_member_functions, read_struct_fields, read_baseclasses):
10482 Allocate on obstack. Don't use cleanups.
10483 (read_one_struct_field, read_member_functions, read_struct_fields)
10484 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
10485 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
10486 (read_struct_type): Update.
10488 2019-03-06 Tom Tromey <tom@tromey.com>
10490 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
10491 * common/filestuff.h (make_cleanup_close): Don't declare.
10492 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
10495 2019-03-06 Tom Tromey <tom@tromey.com>
10497 * solib-aix.c: Use make_scope_exit.
10499 2019-03-06 Tom Tromey <tom@tromey.com>
10501 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
10502 Use make_scope_exit.
10504 2019-03-06 Tom Tromey <tom@tromey.com>
10506 * solib-svr4.c (disable_probes_interface): Remove parameter.
10507 (svr4_handle_solib_event): Use make_scope_exit.
10509 2019-03-06 Tom Tromey <tom@tromey.com>
10511 * remote.c (struct stop_reply_deleter): Remove.
10512 (stop_reply_up): Update.
10513 (struct stop_reply): Derive from notif_event. Don't typedef.
10514 <regcache>: Now a std::vector.
10515 (stop_reply_xfree): Remove.
10516 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
10517 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
10518 (remote_target::discard_pending_stop_replies): Use delete.
10519 (remote_target::remote_parse_stop_reply): Update.
10520 (remote_target::process_stop_reply): Update.
10521 * remote-notif.h (struct notif_event): Add virtual destructor.
10522 Remove "dtr" member.
10523 (struct notif_client) <alloc_event>: Return a unique_ptr.
10524 (notif_event_xfree): Don't declare.
10525 (notif_event_up): New typedef.
10526 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
10527 (notif_event_xfree, do_notif_event_xfree): Remove.
10528 (remote_notif_state_xfree): Update.
10530 2019-03-06 Tom Tromey <tom@tromey.com>
10532 * infrun.c (displaced_step_clear_cleanup): Now a
10533 forward_scope_exit type.
10534 (displaced_step_prepare_throw): Update.
10535 (displaced_step_fixup): Update.
10537 2019-03-06 Tom Tromey <tom@tromey.com>
10539 * inferior.h (class inferior): Update comment.
10540 * gdbthread.h (class thread_info): Update comment.
10542 2019-03-06 Joel Brobecker <brobecker@adacore.com>
10543 Tom Tromey <tom@tromey.com>
10545 * stabsread.h (struct stab_section_list): Remove.
10546 (coffstab_build_psymtabs): Update.
10547 * dbxread.c (symbuf_sections): Now a std::vector.
10548 (sect_idx): New global.
10549 (fill_symbuf): Update.
10550 (coffstab_build_psymtabs): Change type of stabsects parameter.
10552 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
10554 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
10555 (coff_locate_sections): Update.
10556 (coff_symfile_read): Remove cleanups. Update.
10557 (init_stringtab): Add storage parameter.
10558 (free_stringtab, free_stringtab_cleanup): Remove.
10559 (init_lineno): Add storage parameter.
10560 (free_linetab, free_linetab_cleanup): Remove.
10562 2019-03-06 Pedro Alves <palves@redhat.com>
10564 * linux-fork.c (fork_info::clobber_regs): Delete.
10565 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
10566 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
10568 (scoped_switch_fork_info::scoped_switch_fork_info)
10569 (checkpoint_command, linux_fork_context): Adjust
10570 fork_save_infrun_state calls.
10572 2019-03-06 Pedro Alves <palves@redhat.com>
10574 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
10575 (inf_has_multiple_threads): Return 'bool' and rewrite using
10576 inferior_info::threads().
10578 2019-03-06 Pedro Alves <palves@redhat.com>
10580 * linux-fork.c: Include <list>.
10581 (fork_list): Now a std::list instance.
10582 (fork_info): Add ctor, dtor, and in-class initialize all fields.
10583 (forks_exist_p, find_last_fork): Adjust.
10584 (new_fork): Delete.
10586 (add_fork): Adjust.
10587 (free_fork): Delete, folded into fork_info::~fork_info().
10588 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
10590 (init_fork_list): Delete.
10591 (linux_fork_killall, linux_fork_mourn_inferior)
10592 (linux_fork_detach, info_checkpoints_command): Adjust.
10593 (_initialize_linux_fork): No longer call init_fork_list.
10595 2019-03-06 Pedro Alves <palves@redhat.com>
10597 * linux-fork.c (new_fork): New, split out of ...
10598 (add_fork): ... this. Return void. Move "first fork" special
10599 case from here, to ...
10600 (checkpoint_command): ... here.
10601 * linux-linux.h (add_fork): Return void.
10603 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10605 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
10607 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10608 Chris January <chris.january@arm.com>
10609 David Lecomber <david.lecomber@arm.com>
10611 * f-exp.y: New token, UNOP_INTRINSIC.
10612 (exp): New pattern using UNOP_INTRINSIC token.
10613 (f77_keywords): Add 'abs' keyword.
10614 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
10615 (value_from_host_double): New function.
10616 (evaluate_subexp_f): Support UNOP_ABS.
10618 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10620 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
10623 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10625 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
10626 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
10627 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
10629 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10631 * f-exp.y (convert_to_kind_type): Handle more type kinds.
10633 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10634 Chris January <chris.january@arm.com>
10636 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
10637 * f-exp.y: Define 'KIND' token.
10638 (exp): New pattern for KIND expressions.
10639 (ptype): Handle types with a kind extension.
10640 (direct_abs_decl): Extend to spot kind extensions.
10641 (f77_keywords): Add 'kind' to the list.
10642 (push_kind_type): New function.
10643 (convert_to_kind_type): New function.
10644 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
10645 * parse.c (operator_length_standard): Likewise.
10646 * parser-defs.h (enum type_pieces): Add tp_kind.
10647 * std-operator.def: Add UNOP_KIND.
10649 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10651 * f-exp.y (f_parse): Set yydebug.
10653 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10655 * f-lang.c (evaluate_subexp_f): New function.
10656 (exp_descriptor_f): New global.
10657 (f_language_defn): Use exp_descriptor_f instead of
10658 exp_descriptor_standard.
10660 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10662 * f-exp.y (struct token): Add comments.
10663 (dot_ops): Remove uppercase versions and the end marker.
10664 (f77_keywords): Likewise.
10665 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
10666 entries in the dot_ops array are case insensitive, and use
10667 strncasecmp to compare strings. Also some whitespace cleanup in
10668 this area. Similar for the f77_keywords array, except entries in
10669 this list might be case sensitive.
10671 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10673 * f-exp.y (struct f77_boolean_val): Add comments.
10674 (boolean_values): Remove uppercase versions, and end marker.
10675 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
10676 and use strncasecmp to achieve case insensitivity. Additionally,
10677 perform whitespace cleanup around this code.
10679 2019-03-06 Tom Tromey <tromey@adacore.com>
10681 * remote-sim.c (gdbsim_target_open): Use result of
10684 2019-03-06 Richard Bunt <richard.bunt@arm.com>
10685 Dirk Schubert <dirk.schubert@arm.com>
10686 Chris January <chris.january@arm.com>
10688 * eval.c (evaluate_subexp_standard): Call Fortran argument
10690 * f-lang.c (struct value): A value which can be passed into a
10691 Fortran function call.
10692 (fortran_argument_convert): Wrap Fortran arguments in a pointer
10694 (struct type): Value ready for a Fortran function call.
10695 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
10697 * f-lang.h (fortran_argument_convert): Declaration.
10698 (fortran_preserve_arg_pointer): Declaration.
10699 * infcall.c (value_arg_coerce): Call Fortran argument logic.
10701 2019-03-05 Tom Tromey <tromey@adacore.com>
10703 * python/py-prettyprint.c (print_string_repr): Remove #if.
10704 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
10706 2019-03-05 Tom Tromey <tromey@adacore.com>
10708 * target.c (the_dummy_target): Move later. Change type to
10710 (initialize_targets): Don't initialize the_dummy_target.
10712 2019-03-05 Tom Tromey <tromey@adacore.com>
10714 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
10715 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
10717 2019-03-05 Tom Tromey <tromey@adacore.com>
10719 * windows-nat.c (windows_nat_target::attach)
10720 (windows_nat_target::detach): Don't call gdb_flush.
10721 * valprint.c (generic_val_print, val_print, val_print_string):
10722 Don't call gdb_flush.
10723 * utils.c (defaulted_query): Don't call gdb_flush.
10724 * typeprint.c (print_type_scalar): Don't call gdb_flush.
10725 * target.c (target_announce_detach): Don't call gdb_flush.
10726 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
10727 * remote.c (extended_remote_target::attach): Don't call
10729 * procfs.c (procfs_target::detach): Don't call gdb_flush.
10730 * printcmd.c (do_examine): Don't call gdb_flush.
10731 (info_display_command): Don't call gdb_flush.
10732 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
10733 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
10734 * memattr.c (info_mem_command): Don't call gdb_flush.
10735 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
10736 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
10737 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
10738 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
10739 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
10740 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
10741 (gnu_nat_target::detach): Don't call gdb_flush.
10742 * f-valprint.c (f_val_print): Don't call gdb_flush.
10743 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
10744 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
10745 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
10747 * c-valprint.c (c_val_print): Don't call gdb_flush.
10748 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
10750 2019-03-05 Tom Tromey <tromey@adacore.com>
10752 * varobj.c (update_dynamic_varobj_children): Update.
10753 (install_default_visualizer): Use reset, not release.
10754 * value.c (set_internalvar): Update.
10755 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
10756 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
10757 ATTRIBUTE_UNUSED_RESULT.
10759 2019-03-05 Tom Tromey <tromey@adacore.com>
10761 * remote.c (class scoped_remote_fd) <release>: Add
10762 ATTRIBUTE_UNUSED_RESULT.
10764 2019-03-05 Tom Tromey <tromey@adacore.com>
10766 * macroexp.c (struct macro_buffer) <release>: Add
10767 ATTRIBUTE_UNUSED_RESULT.
10769 2019-03-05 Tom Tromey <tromey@adacore.com>
10771 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
10772 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
10773 ATTRIBUTE_UNUSED_RESULT.
10775 2019-03-05 Tom Tromey <tromey@adacore.com>
10777 * common/scoped_fd.h (class scoped_fd) <release>: Add
10778 ATTRIBUTE_UNUSED_RESULT.
10780 2019-03-05 Tom Tromey <tromey@adacore.com>
10782 * parser-defs.h (struct parser_state) <release>: Add
10783 ATTRIBUTE_UNUSED_RESULT.
10785 2019-03-05 Tom Tromey <tromey@adacore.com>
10787 * utils.h (class gdb_argv) <release>: Add
10788 ATTRIBUTE_UNUSED_RESULT.
10789 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
10791 2019-03-02 Eli Zaretskii <eliz@gnu.org>
10793 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
10794 for-loop range, to avoid compiler warnings.
10796 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
10797 avoid compiler warnings about unused variables.
10799 * NEWS: Mention end of support for native debugging on MS-Windows
10803 * common/netstuff.c:
10804 * gdbserver/gdbreplay.c
10805 * gdbserver/remote-utils.c:
10807 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
10808 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
10809 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
10810 'getaddrinfo' and 'freeaddrinfo' were not available before
10811 Windows XP, and mingw.org's MinGW headers by default define
10812 _WIN32_WINNT to 0x500.
10814 2019-03-01 Gary Benson <gbenson@redhat.com>
10816 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
10818 2019-02-28 Brian Vandenberg <phantall@gmail.com>
10819 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10822 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
10823 set_sigint_trap, clear_sigint_trap.
10825 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10827 * target.c (target_detach): Clear the regcache and the
10830 2019-02-27 Pedro Alves <palves@redhat.com>
10832 * utils.c (set_screen_size): When we cap the height/width sizes,
10833 tweak the corresponding command variable to show "unlimited":
10835 2019-02-27 Saagar Jha <saagar@saagarjha.com>
10836 Pedro Alves <palves@redhat.com>
10838 * utils.c (set_screen_size): Reduce "infinite" rows and columns
10839 before calling rl_set_screen_size.
10841 2019-02-27 Tom Tromey <tromey@adacore.com>
10843 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
10845 * python/py-value.c: Remove Python 2.4 workaround.
10846 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
10848 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
10849 Python 2.4 workaround.
10850 * python/python-internal.h: Remove Python 2.4 comment.
10851 (Py_ssize_t): Don't define.
10852 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
10853 (gdb_Py_DECREF): Remove Python 2.4 workaround.
10854 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
10855 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
10856 * python/python.c (do_start_initialization): Remove Python 2.4
10858 * python/py-prettyprint.c (class dummy_python_frame): Remove.
10859 (print_children): Remove Python 2.4 workaround.
10860 * python/py-inferior.c (buffer_procs): Remove Python 2.4
10862 (CHARBUFFERPROC_NAME): Remove.
10863 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
10864 Python 2.4 workaround.
10866 2019-02-27 Kevin Buettner <kevinb@redhat.com>
10868 * NEWS: Note minimum Python version.
10870 2019-02-27 Kevin Buettner <kevinb@redhat.com>
10872 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
10873 code from these functions. Remove corresponding ifdefs. Use
10874 Py_buffer_up instead of explicit calls to PyBuffer_Release.
10875 Remove gotos and target of gotos.
10876 (infpy_search_memory): Likewise.
10878 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10880 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
10881 (hppa_gdbarch_init): Don't register deleted functions with
10884 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10886 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
10887 (h8300_unwind_sp): Delete.
10888 (h8300_dummy_id): Delete.
10889 (h8300_gdbarch_init): Don't register deleted functions with
10892 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10894 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
10895 (ft32_unwind_pc): Delete.
10896 (ft32_unwind_sp): Delete.
10897 (ft32_gdbarch_init): Don't register deleted functions with
10900 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10902 * gdb/frv-tdep.c (frv_dummy_id): Delete.
10903 (frv_unwind_pc): Delete.
10904 (frv_unwind_sp): Delete.
10905 (frv_gdbarch_init): Don't register deleted functions with
10908 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10910 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
10911 (riscv_unwind_pc): Delete.
10912 (riscv_unwind_sp): Delete.
10913 (riscv_gdbarch_init): Don't register deleted functions with
10916 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10918 * gdb/csky-tdep.c (csky_dummy_id): Delete.
10919 (csky_unwind_pc): Delete.
10920 (csky_unwind_sp): Delete.
10921 (csky_gdbarch_init): Don't register deleted functions with
10924 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10926 * gdb/cris-tdep.c (cris_dummy_id): Delete.
10927 (cris_unwind_pc): Delete.
10928 (cris_unwind_sp): Delete.
10929 (cris_gdbarch_init): Don't register deleted functions with
10932 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10934 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
10935 (bfin_unwind_pc): Delete.
10936 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
10938 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10940 * gdb/arm-tdep.c (arm_dummy_id): Delete.
10941 (arm_unwind_pc): Delete.
10942 (arm_unwind_sp): Delete.
10943 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
10945 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10947 * gdb/arc-tdep.c (arc_dummy_id): Delete.
10948 (arc_unwind_pc): Delete.
10949 (arc_unwind_sp): Delete.
10950 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
10952 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10954 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
10955 (alpha_unwind_pc): Delete.
10956 (alpha_gdbarch_init): Don't register deleted functions with
10959 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10961 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
10962 (aarch64_unwind_pc): Delete.
10963 (aarch64_unwind_sp): Delete.
10964 (aarch64_gdbarch_init): Don't register deleted functions with
10967 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10969 * gdbtypes.c (type_align): Don't consider static members when
10970 computing structure alignment.
10972 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10974 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
10975 return 0 for other types.
10976 * arch-utils.c (default_type_align): Always return 0.
10977 * gdbarch.h: Regenerate.
10978 * gdbarch.sh (type_align): Extend comment.
10979 * gdbtypes.c (type_align): Add additional comments, always call
10980 gdbarch_type_align before applying the default rules.
10981 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
10982 generic code will then apply a suitable default.
10983 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
10984 types, return 0 for other types.
10986 2019-02-27 Joel Brobecker <brobecker@adacore.com>
10988 * NEWS: Create a new section for the next release branch.
10989 Rename the section of the current branch, now that it has
10992 2019-02-27 Joel Brobecker <brobecker@adacore.com>
10994 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
10995 * version.in: Bump version to 8.3.50.DATE-git.
10997 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
10999 * aix-thread.c (ptid_cmp): Remove unused variable.
11000 (get_signaled_thread): Likewise.
11001 (store_regs_user_thread): Likewise.
11002 (store_regs_kernel_thread): Likewise.
11003 (fetch_regs_kernel_thread): Remove shadowed variable.
11005 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
11007 * features/riscv/32bit-cpu.xml: Add register numbers.
11008 * features/riscv/32bit-fpu.c: Regenerate.
11009 * features/riscv/32bit-fpu.xml: Add register numbers.
11010 * features/riscv/64bit-cpu.xml: Add register numbers.
11011 * features/riscv/64bit-fpu.c: Regenerate.
11012 * features/riscv/64bit-fpu.xml: Add register numbers.
11014 2019-02-26 Kevin Buettner <kevinb@redhat.com>
11016 * NEWS: Mention two argument form of gdb.Value constructor.
11017 * python/py-value.c (convert_buffer_and_type_to_value): New
11019 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
11020 Add support for handling an optional second argument. Call
11021 convert_buffer_and_type_to_value as appropriate.
11022 * python/python-internal.h (Py_buffer_deleter): New struct.
11023 (Py_buffer_up): New typedef.
11025 2019-02-25 John Baldwin <jhb@FreeBSD.org>
11027 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
11028 instead of releasing ownership.
11030 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
11032 * dwarf2read.c (open_and_init_dwp_file): Call
11033 elf_numsections instead of bfd_count_sections to initialize
11034 dwp_file->num_sections.
11036 2019-02-25 Tom Tromey <tromey@adacore.com>
11038 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
11040 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
11042 * gcore.in: Add '--readnever' option when invoking GDB.
11044 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
11046 * MAINTAINERS: Update my email address.
11048 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
11050 * build-id.c (build_id_to_debug_bfd_1): New function.
11051 (build_id_to_debug_bfd): Look for separate debug file in
11054 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
11056 * gdbarch.sh: Update the copyright year range that is placed into
11059 2019-02-22 Keith Seitz <keiths@redhat.com>
11062 * linespec.c (create_sals_line_offset): Search for the default
11063 symtab's filename instead of its fullname.
11065 2019-02-21 Alan Hayward <alan.hayward@arm.com>
11067 * NEWS: Update style defaults.
11069 2019-02-21 Alan Hayward <alan.hayward@arm.com>
11071 * main.c (captured_main_1): Disable styling in batch mode.
11073 2019-02-20 Tom Tromey <tom@tromey.com>
11075 * symtab.c (symtab_symbol_info): Fix typos.
11077 2019-02-20 Tom Tromey <tromey@adacore.com>
11079 * findcmd.c (_initialize_mem_search): Use upper case for
11080 metasyntactic variables.
11082 2019-02-20 Alan Hayward <alan.hayward@arm.com>
11084 * aarch64-tdep.c (aarch64_add_reggroups): New function.
11085 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
11087 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
11089 * top.h (source_file_name): Change to std::string.
11090 * top.c (source_file_name): Likewise.
11091 (command_line_input): Adjust.
11092 * cli/cli-script.c (script_from_file): Adjust.
11094 2019-02-19 Tom Tromey <tromey@adacore.com>
11096 * ravenscar-thread.c
11097 (ravenscar_thread_target::update_thread_list): Don't call
11098 ada_build_task_list.
11099 * ada-lang.h (ada_build_task_list): Don't declare.
11100 * ada-tasks.c (struct ada_tasks_inferior_data)
11101 <task_list_valid_p>: Now bool.
11102 (read_known_tasks, ada_task_list_changed)
11103 (ada_tasks_invalidate_inferior_data): Update.
11104 (read_known_tasks_array): Return bool.
11105 (read_known_tasks_list): Likewise.
11106 (read_known_tasks): Return void.
11107 (ada_build_task_list): Now static.
11109 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
11111 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
11112 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
11114 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11116 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
11117 variant for ada_tasks_pspace_data_handle and
11118 ada_tasks_inferior_data_handle.
11119 (ada_tasks_pspace_data_cleanup): New function.
11120 (ada_tasks_inferior_data_cleanup): New function.
11122 2019-02-17 Tom Tromey <tom@tromey.com>
11124 * macrotab.h (macro_source_fullname): Return a std::string.
11125 * macrotab.c (macro_include, check_for_redefinition)
11126 (macro_undef, macro_lookup_definition, foreach_macro)
11127 (foreach_macro_in_scope): Update.
11128 (macro_source_fullname): Return a std::string.
11129 * macrocmd.c (show_pp_source_pos): Update.
11131 2019-02-17 Tom Tromey <tom@tromey.com>
11133 * macrocmd.c (show_pp_source_pos): Style the file names.
11135 2019-02-17 Tom Tromey <tom@tromey.com>
11138 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
11140 2019-02-17 Tom Tromey <tom@tromey.com>
11142 * ada-lang.c (user_select_syms): Use filtered printing.
11143 * utils.c (wrap_style): New global.
11144 (desired_style): Remove.
11145 (emit_style_escape): Add stream parameter.
11146 (set_output_style, reset_terminal_style, prompt_for_continue):
11148 (flush_wrap_buffer): Only flush gdb_stdout.
11149 (wrap_here): Set wrap_style.
11150 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
11151 treat escape sequences as a character. Change when wrap buffer is
11153 (fputs_styled): Do not set the output style when the default is
11155 * ui-style.h (struct ui_file_style) <is_default>: New method.
11156 * source.c (print_source_lines_base): Emit escape sequences in one
11159 2019-02-17 Joel Brobecker <brobecker@adacore.com>
11161 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
11162 integers and enumeration types.
11164 2019-02-17 Joel Brobecker <brobecker@adacore.com>
11166 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
11167 instead of lookup_symbol_in_language
11168 (do_exact_match): New function.
11169 (ada_get_symbol_name_matcher): Return do_exact_match when
11170 doing a verbatim match.
11172 2019-02-15 Tom Tromey <tromey@adacore.com>
11174 * ravenscar-thread.c (ravenscar_thread_target::resume)
11175 (ravenscar_thread_target::wait): Special case wildcard requests.
11177 2019-02-15 Tom Tromey <tromey@adacore.com>
11179 * ravenscar-thread.c (base_ptid): Remove.
11180 (struct ravenscar_thread_target) <close>: New method.
11181 <m_base_ptid>: New member.
11182 <update_inferior_ptid, active_task, task_is_currently_active,
11183 runtime_initialized>: Declare methods.
11184 <ravenscar_thread_target>: Add constructor.
11185 (ravenscar_thread_target::task_is_currently_active)
11186 (ravenscar_thread_target::update_inferior_ptid)
11187 (ravenscar_runtime_initialized): Rename. Now methods.
11188 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
11189 (ravenscar_thread_target::update_thread_list): Update.
11190 (ravenscar_thread_target::active_task): Now method.
11191 (ravenscar_thread_target::store_registers)
11192 (ravenscar_thread_target::prepare_to_store)
11193 (ravenscar_thread_target::prepare_to_store)
11194 (ravenscar_thread_target::mourn_inferior): Update.
11195 (ravenscar_inferior_created): Use "new" to create target.
11196 (ravenscar_thread_target::get_ada_task_ptid): Update.
11197 (_initialize_ravenscar): Don't initialize base_ptid.
11198 (ravenscar_ops): Remove global.
11200 2019-02-15 Tom Tromey <tromey@adacore.com>
11202 * target.h (push_target): Declare new overload.
11203 * target.c (push_target): New overload, taking an rvalue reference.
11204 * remote.c (remote_target::open_1): Use push_target overload.
11205 * corelow.c (core_target_open): Use push_target overload.
11207 2019-02-15 Tom Tromey <tromey@adacore.com>
11209 * ravenscar-thread.c (is_ravenscar_task)
11210 (ravenscar_task_is_currently_active): Return bool.
11211 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
11212 (_initialize_ravenscar): Remove "(void)".
11213 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
11216 2019-02-15 Tom Tromey <tromey@adacore.com>
11218 * ravenscar-thread.c (ravenscar_runtime_initializer)
11219 (has_ravenscar_runtime, get_running_thread_id)
11220 (ravenscar_thread_target::resume): Fix indentation.
11222 2019-02-15 Tom Tromey <tromey@adacore.com>
11224 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
11225 from ravenscar_arch_ops.
11226 (sparc_ravenscar_ops::fetch_registers)
11227 (sparc_ravenscar_ops::store_registers): Now methods.
11228 (sparc_ravenscar_prepare_to_store): Remove.
11229 (sparc_ravenscar_ops): Redefine.
11230 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
11231 methods and destructor. Remove members.
11232 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
11233 (ravenscar_thread_target::store_registers)
11234 (ravenscar_thread_target::prepare_to_store): Update.
11235 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
11237 (struct ppc_ravenscar_powerpc_ops): Derive from
11238 ravenscar_arch_ops.
11239 (ppc_ravenscar_powerpc_ops::fetch_registers)
11240 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
11241 (ppc_ravenscar_powerpc_ops): Redefine.
11242 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
11243 (ppc_ravenscar_e500_ops::fetch_registers)
11244 (ppc_ravenscar_e500_ops::store_registers): Now methods.
11245 (ppc_ravenscar_e500_ops): Redefine.
11246 * aarch64-ravenscar-thread.c
11247 (aarch64_ravenscar_generic_prepare_to_store): Remove.
11248 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
11249 (aarch64_ravenscar_fetch_registers)
11250 (aarch64_ravenscar_store_registers): Now methods.
11251 (aarch64_ravenscar_ops): Redefine.
11253 2019-02-15 Tom Tromey <tromey@adacore.com>
11255 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
11256 (ravenscar_thread_target::stopped_by_hw_breakpoint)
11257 (ravenscar_thread_target::stopped_by_watchpoint)
11258 (ravenscar_thread_target::stopped_data_address)
11259 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
11261 2019-02-15 Tom Tromey <tromey@adacore.com>
11263 * ravenscar-thread.c: Fix some typos.
11265 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11266 Tom Tromey <tromey@adacore.com>
11268 * ada-lang.c (ada_exception_sal): Change addr_string to a
11270 (create_ada_exception_catchpoint): Update.
11272 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11273 Tom Tromey <tromey@adacore.com>
11275 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
11276 (bp_location_ops): Remove.
11277 (base_breakpoint_allocate_location): Update.
11278 (free_bp_location): Update.
11279 * ada-lang.c (class ada_catchpoint_location)
11280 <ada_catchpoint_location>: Remove ops parameter.
11281 (ada_catchpoint_location_dtor): Remove.
11282 (ada_catchpoint_location_ops): Remove.
11283 (allocate_location_exception): Update.
11284 * breakpoint.h (struct bp_location_ops): Remove.
11285 (class bp_location) <bp_location>: Remove bp_location_ops
11287 <~bp_location>: Add destructor.
11290 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
11291 Pedro Alves <palves@redhat.com>
11293 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
11296 2019-02-14 David Michael <fedora.dm0@gmail.com>
11297 Samuel Thibault <samuel.thibault@gnu.org>
11298 Thomas Schwinge <thomas@codesourcery.com>
11300 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
11301 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
11303 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
11305 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
11306 (check_empty): Use "const char *".
11308 * gnu-nat.c (gnu_nat_target::detach): Instead of
11309 'detach_inferior (pid)' call
11310 'detach_inferior (find_inferior_pid (pid))'.
11312 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
11313 'nat/fork-inferior.o'.
11314 * gnu-nat.c: #include "nat/fork-inferior.h".
11316 * gnu-nat.c (gnu_nat_target::detach): Instead of
11317 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
11318 * gnu-nat.h: #include "inf-child.h".
11319 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
11320 'i386_gnu_nat_target::fetch_registers'.
11321 (gnu_store_registers): Rename/move to
11322 'i386_gnu_nat_target::store_registers'.
11324 * config/i386/nm-i386gnu.h: Don't "#include" any files.
11325 * gnu-nat.h (mach_thread_info): New function.
11326 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
11328 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
11330 2019-02-14 Frederic Konrad <konrad@adacore.com>
11332 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
11334 2019-02-14 Joel Brobecker <brobecker@adacore.com>
11336 * windows-nat.c (windows_add_thread): Add new parameter
11337 "main_thread_p" with default value set to false. Update
11338 function documentation as well as all callers.
11339 (windows_delete_thread): Likewise.
11340 (fake_create_process): Update call to windows_add_thread.
11341 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
11342 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
11343 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
11344 call to windows_delete_thread.
11346 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
11348 * MAINTAINERS: Add Andrew Burgess as global maintainer.
11350 2019-02-12 John Baldwin <jhb@FreeBSD.org>
11352 * symfile.c (find_separate_debug_file): Use canonical path of
11353 sysroot with child_path instead of gdb_sysroot if it is valid.
11355 2019-02-12 John Baldwin <jhb@FreeBSD.org>
11357 * symfile.c (find_separate_debug_file): Use child_path to
11358 determine if an object file is under a sysroot.
11360 2019-02-12 John Baldwin <jhb@FreeBSD.org>
11362 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11363 unittests/child-path-selftests.c.
11364 * common/pathstuff.c (child_path): New function.
11365 * common/pathstuff.h (child_path): New prototype.
11366 * unittests/child-path-selftests.c: New file.
11368 2019-02-12 John Baldwin <jhb@FreeBSD.org>
11370 * symfile.c (find_separate_debug_file): Look for separate debug
11371 files in debug directories under the sysroot.
11373 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11375 * symtab.h (struct minimal_symbol data_p): New const method.
11376 (struct minimal_symbol text_p): Likewise.
11377 * symtab.c (output_source_filename): Use file name style
11378 to print file name.
11379 (print_symbol_info): Likewise.
11380 (print_msymbol_info): Use address style to print addresses.
11381 Use function name style to print executable text symbols.
11382 (expand_symtab_containing_pc): Use data_p.
11383 (find_pc_sect_compunit_symtab): Likewise.
11385 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11387 * breakpoint.c (describe_other_breakpoints): Use address style
11388 to print addresses.
11389 (say_where): Likewise.
11391 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11393 * ada-typeprint.c (print_func_type): Print function name
11394 style to print function name.
11395 * c-typeprint.c (c_print_type_1): Likewise.
11397 2019-02-11 Alan Hayward <alan.hayward@arm.com>
11399 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
11402 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11404 * c-exp.y (direct_abs_decl): Use emplace_back to record the
11407 2019-02-10 Joel Brobecker <brobecker@adacore.com>
11409 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
11410 TYPE_CODE_REF types.
11412 2019-02-08 Jim Wilson <jimw@sifive.com>
11414 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
11415 (riscv_linux_fregset): New.
11416 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
11418 2019-02-07 Tom Tromey <tom@tromey.com>
11420 * thread.c (thread_cancel_execution_command): Update.
11421 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
11423 (struct thread_fsm_ops): Remove.
11424 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
11425 (thread_fsm_should_stop, thread_fsm_return_value)
11426 (thread_fsm_set_finished, thread_fsm_finished_p)
11427 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
11429 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
11430 * infrun.c (clear_proceed_status_thread)
11431 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
11432 (print_stop_event): Update.
11433 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
11435 (step_command_fsm_ops): Remove.
11436 (new_step_command_fsm): Remove.
11438 (step_command_fsm::should_stop): Rename from
11439 step_command_fsm_should_stop.
11440 (step_command_fsm::clean_up): Rename from
11441 step_command_fsm_clean_up.
11442 (step_command_fsm::do_async_reply_reason): Rename from
11443 step_command_fsm_async_reply_reason.
11444 (struct until_next_fsm): Inherit from thread_fsm. Add
11446 (until_next_fsm_ops): Remove.
11447 (new_until_next_fsm): Remove.
11448 (until_next_fsm::should_stop): Rename from
11449 until_next_fsm_should_stop.
11450 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
11451 (until_next_fsm::do_async_reply_reason): Rename from
11452 until_next_fsm_async_reply_reason.
11453 (struct finish_command_fsm): Inherit from thread_fsm. Add
11454 constructor. Change type of breakpoint.
11455 (finish_command_fsm_ops): Remove.
11456 (new_finish_command_fsm): Remove.
11457 (finish_command_fsm::should_stop): Rename from
11458 finish_command_fsm_should_stop.
11459 (finish_command_fsm::clean_up): Rename from
11460 finish_command_fsm_clean_up.
11461 (finish_command_fsm::return_value): Rename from
11462 finish_command_fsm_return_value.
11463 (finish_command_fsm::do_async_reply_reason): Rename from
11464 finish_command_fsm_async_reply_reason.
11465 (finish_command): Update.
11466 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
11468 (call_thread_fsm_ops): Remove.
11469 (call_thread_fsm::call_thread_fsm): Rename from
11470 new_call_thread_fsm.
11471 (call_thread_fsm::should_stop): Rename from
11472 call_thread_fsm_should_stop.
11473 (call_thread_fsm::should_notify_stop): Rename from
11474 call_thread_fsm_should_notify_stop.
11475 (run_inferior_call, call_function_by_hand_dummy): Update.
11476 * cli/cli-interp.c (should_print_stop_to_console): Update.
11477 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
11478 Add constructor. Change type of location_breakpoint,
11480 (until_break_fsm_ops): Remove.
11481 (new_until_break_fsm): Remove.
11482 (until_break_fsm::should_stop): Rename from
11483 until_break_fsm_should_stop.
11484 (until_break_fsm::clean_up): Rename from
11485 until_break_fsm_clean_up.
11486 (until_break_fsm::do_async_reply_reason): Rename from
11487 until_break_fsm_async_reply_reason.
11488 (until_break_command): Update.
11489 * thread-fsm.c: Remove.
11490 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
11492 2019-02-07 Tom Tromey <tom@tromey.com>
11494 * yy-remap.h: Add include guard.
11495 * xtensa-tdep.h: Add include guard.
11496 * xcoffread.h: Rename include guard.
11497 * varobj-iter.h: Add include guard.
11498 * tui/tui.h: Rename include guard.
11499 * tui/tui-winsource.h: Rename include guard.
11500 * tui/tui-wingeneral.h: Rename include guard.
11501 * tui/tui-windata.h: Rename include guard.
11502 * tui/tui-win.h: Rename include guard.
11503 * tui/tui-stack.h: Rename include guard.
11504 * tui/tui-source.h: Rename include guard.
11505 * tui/tui-regs.h: Rename include guard.
11506 * tui/tui-out.h: Rename include guard.
11507 * tui/tui-layout.h: Rename include guard.
11508 * tui/tui-io.h: Rename include guard.
11509 * tui/tui-hooks.h: Rename include guard.
11510 * tui/tui-file.h: Rename include guard.
11511 * tui/tui-disasm.h: Rename include guard.
11512 * tui/tui-data.h: Rename include guard.
11513 * tui/tui-command.h: Rename include guard.
11514 * tic6x-tdep.h: Add include guard.
11515 * target/waitstatus.h: Rename include guard.
11516 * target/wait.h: Rename include guard.
11517 * target/target.h: Rename include guard.
11518 * target/resume.h: Rename include guard.
11519 * target-float.h: Rename include guard.
11520 * stabsread.h: Add include guard.
11521 * rs6000-tdep.h: Add include guard.
11522 * riscv-fbsd-tdep.h: Add include guard.
11523 * regformats/regdef.h: Rename include guard.
11524 * record.h: Rename include guard.
11525 * python/python.h: Rename include guard.
11526 * python/python-internal.h: Rename include guard.
11527 * python/py-stopevent.h: Rename include guard.
11528 * python/py-ref.h: Rename include guard.
11529 * python/py-record.h: Rename include guard.
11530 * python/py-record-full.h: Rename include guard.
11531 * python/py-record-btrace.h: Rename include guard.
11532 * python/py-instruction.h: Rename include guard.
11533 * python/py-events.h: Rename include guard.
11534 * python/py-event.h: Rename include guard.
11535 * procfs.h: Add include guard.
11536 * proc-utils.h: Add include guard.
11537 * p-lang.h: Add include guard.
11538 * or1k-tdep.h: Rename include guard.
11539 * observable.h: Rename include guard.
11540 * nto-tdep.h: Rename include guard.
11541 * nat/x86-linux.h: Rename include guard.
11542 * nat/x86-linux-dregs.h: Rename include guard.
11543 * nat/x86-gcc-cpuid.h: Add include guard.
11544 * nat/x86-dregs.h: Rename include guard.
11545 * nat/x86-cpuid.h: Rename include guard.
11546 * nat/ppc-linux.h: Rename include guard.
11547 * nat/mips-linux-watch.h: Rename include guard.
11548 * nat/linux-waitpid.h: Rename include guard.
11549 * nat/linux-ptrace.h: Rename include guard.
11550 * nat/linux-procfs.h: Rename include guard.
11551 * nat/linux-osdata.h: Rename include guard.
11552 * nat/linux-nat.h: Rename include guard.
11553 * nat/linux-namespaces.h: Rename include guard.
11554 * nat/linux-btrace.h: Rename include guard.
11555 * nat/glibc_thread_db.h: Rename include guard.
11556 * nat/gdb_thread_db.h: Rename include guard.
11557 * nat/gdb_ptrace.h: Rename include guard.
11558 * nat/fork-inferior.h: Rename include guard.
11559 * nat/amd64-linux-siginfo.h: Rename include guard.
11560 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
11561 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
11562 * nat/aarch64-linux.h: Rename include guard.
11563 * nat/aarch64-linux-hw-point.h: Rename include guard.
11564 * mn10300-tdep.h: Add include guard.
11565 * mips-linux-tdep.h: Add include guard.
11566 * mi/mi-parse.h: Rename include guard.
11567 * mi/mi-out.h: Rename include guard.
11568 * mi/mi-main.h: Rename include guard.
11569 * mi/mi-interp.h: Rename include guard.
11570 * mi/mi-getopt.h: Rename include guard.
11571 * mi/mi-console.h: Rename include guard.
11572 * mi/mi-common.h: Rename include guard.
11573 * mi/mi-cmds.h: Rename include guard.
11574 * mi/mi-cmd-break.h: Rename include guard.
11575 * m2-lang.h: Add include guard.
11576 * location.h: Rename include guard.
11577 * linux-record.h: Rename include guard.
11578 * linux-nat.h: Add include guard.
11579 * linux-fork.h: Add include guard.
11580 * i386-darwin-tdep.h: Rename include guard.
11581 * hppa-linux-offsets.h: Add include guard.
11582 * guile/guile.h: Rename include guard.
11583 * guile/guile-internal.h: Rename include guard.
11584 * gnu-nat.h: Rename include guard.
11585 * gdb-stabs.h: Rename include guard.
11586 * frv-tdep.h: Add include guard.
11587 * f-lang.h: Add include guard.
11588 * event-loop.h: Add include guard.
11589 * darwin-nat.h: Rename include guard.
11590 * cp-abi.h: Rename include guard.
11591 * config/sparc/nm-sol2.h: Rename include guard.
11592 * config/nm-nto.h: Rename include guard.
11593 * config/nm-linux.h: Add include guard.
11594 * config/i386/nm-i386gnu.h: Rename include guard.
11595 * config/djgpp/nl_types.h: Rename include guard.
11596 * config/djgpp/langinfo.h: Rename include guard.
11597 * compile/gcc-cp-plugin.h: Add include guard.
11598 * compile/gcc-c-plugin.h: Add include guard.
11599 * compile/compile.h: Rename include guard.
11600 * compile/compile-object-run.h: Rename include guard.
11601 * compile/compile-object-load.h: Rename include guard.
11602 * compile/compile-internal.h: Rename include guard.
11603 * compile/compile-cplus.h: Rename include guard.
11604 * compile/compile-c.h: Rename include guard.
11605 * common/xml-utils.h: Rename include guard.
11606 * common/x86-xstate.h: Rename include guard.
11607 * common/version.h: Rename include guard.
11608 * common/vec.h: Rename include guard.
11609 * common/tdesc.h: Rename include guard.
11610 * common/selftest.h: Rename include guard.
11611 * common/scoped_restore.h: Rename include guard.
11612 * common/scoped_mmap.h: Rename include guard.
11613 * common/scoped_fd.h: Rename include guard.
11614 * common/safe-iterator.h: Rename include guard.
11615 * common/run-time-clock.h: Rename include guard.
11616 * common/refcounted-object.h: Rename include guard.
11617 * common/queue.h: Rename include guard.
11618 * common/ptid.h: Rename include guard.
11619 * common/print-utils.h: Rename include guard.
11620 * common/preprocessor.h: Rename include guard.
11621 * common/pathstuff.h: Rename include guard.
11622 * common/observable.h: Rename include guard.
11623 * common/netstuff.h: Rename include guard.
11624 * common/job-control.h: Rename include guard.
11625 * common/host-defs.h: Rename include guard.
11626 * common/gdb_wait.h: Rename include guard.
11627 * common/gdb_vecs.h: Rename include guard.
11628 * common/gdb_unlinker.h: Rename include guard.
11629 * common/gdb_unique_ptr.h: Rename include guard.
11630 * common/gdb_tilde_expand.h: Rename include guard.
11631 * common/gdb_sys_time.h: Rename include guard.
11632 * common/gdb_string_view.h: Rename include guard.
11633 * common/gdb_splay_tree.h: Rename include guard.
11634 * common/gdb_setjmp.h: Rename include guard.
11635 * common/gdb_ref_ptr.h: Rename include guard.
11636 * common/gdb_optional.h: Rename include guard.
11637 * common/gdb_locale.h: Rename include guard.
11638 * common/gdb_assert.h: Rename include guard.
11639 * common/filtered-iterator.h: Rename include guard.
11640 * common/filestuff.h: Rename include guard.
11641 * common/fileio.h: Rename include guard.
11642 * common/environ.h: Rename include guard.
11643 * common/common-utils.h: Rename include guard.
11644 * common/common-types.h: Rename include guard.
11645 * common/common-regcache.h: Rename include guard.
11646 * common/common-inferior.h: Rename include guard.
11647 * common/common-gdbthread.h: Rename include guard.
11648 * common/common-exceptions.h: Rename include guard.
11649 * common/common-defs.h: Rename include guard.
11650 * common/common-debug.h: Rename include guard.
11651 * common/cleanups.h: Rename include guard.
11652 * common/buffer.h: Rename include guard.
11653 * common/btrace-common.h: Rename include guard.
11654 * common/break-common.h: Rename include guard.
11655 * cli/cli-utils.h: Rename include guard.
11656 * cli/cli-style.h: Rename include guard.
11657 * cli/cli-setshow.h: Rename include guard.
11658 * cli/cli-script.h: Rename include guard.
11659 * cli/cli-interp.h: Rename include guard.
11660 * cli/cli-decode.h: Rename include guard.
11661 * cli/cli-cmds.h: Rename include guard.
11662 * charset-list.h: Add include guard.
11663 * buildsym-legacy.h: Rename include guard.
11664 * bfin-tdep.h: Add include guard.
11665 * ax.h: Rename include guard.
11666 * arm-linux-tdep.h: Add include guard.
11667 * arm-fbsd-tdep.h: Add include guard.
11668 * arch/xtensa.h: Rename include guard.
11669 * arch/tic6x.h: Add include guard.
11670 * arch/i386.h: Add include guard.
11671 * arch/arm.h: Rename include guard.
11672 * arch/arm-linux.h: Rename include guard.
11673 * arch/arm-get-next-pcs.h: Rename include guard.
11674 * arch/amd64.h: Add include guard.
11675 * arch/aarch64-insn.h: Rename include guard.
11676 * arch-utils.h: Rename include guard.
11677 * annotate.h: Add include guard.
11678 * amd64-darwin-tdep.h: Rename include guard.
11679 * aarch64-linux-tdep.h: Add include guard.
11680 * aarch64-fbsd-tdep.h: Add include guard.
11681 * aarch32-linux-nat.h: Add include guard.
11683 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11685 * macrotab.c (macro_define_internal): New function that
11686 factorizes macro_define_object_internal and macro_define_function
11688 (macro_define_object_internal): Use macro_define_internal.
11689 (macro_define_function): Likewise.
11691 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11693 * macrocmd.c (extract_identifier): Return
11694 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
11697 2019-02-06 John Baldwin <jhb@FreeBSD.org>
11699 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
11701 2019-02-05 Tom Tromey <tom@tromey.com>
11703 * target.c (target_stack::unpush): Move assertion earlier.
11705 2019-01-30 Tom Tromey <tom@tromey.com>
11708 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
11709 (gdbpy_parse_and_eval): Likewise.
11710 * python/python-internal.h (gdbpy_allow_threads): New class.
11712 2019-01-28 John Baldwin <jhb@FreeBSD.org>
11714 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
11715 (aarch64_fbsd_fpregmap): Move earlier.
11716 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
11717 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
11718 instead of individual calls to trad_frame_set_reg_addr.
11719 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
11721 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
11722 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
11723 instead of individual calls to trad_frame_set_reg_addr.
11725 2019-01-28 Alan Hayward <alan.hayward@arm.com>
11727 * CONTRIBUTE: Replace contribution list with wiki link.
11729 2019-01-25 Tom Tromey <tom@tromey.com>
11731 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
11733 2019-01-25 Tom Tromey <tom@tromey.com>
11735 * xtensa-linux-nat.c: Fix common/ includes.
11736 * xml-support.h: Fix common/ includes.
11737 * xml-support.c: Fix common/ includes.
11738 * x86-linux-nat.c: Fix common/ includes.
11739 * windows-nat.c: Fix common/ includes.
11740 * varobj.h: Fix common/ includes.
11741 * varobj.c: Fix common/ includes.
11742 * value.c: Fix common/ includes.
11743 * valops.c: Fix common/ includes.
11744 * utils.c: Fix common/ includes.
11745 * unittests/xml-utils-selftests.c: Fix common/ includes.
11746 * unittests/utils-selftests.c: Fix common/ includes.
11747 * unittests/unpack-selftests.c: Fix common/ includes.
11748 * unittests/tracepoint-selftests.c: Fix common/ includes.
11749 * unittests/style-selftests.c: Fix common/ includes.
11750 * unittests/string_view-selftests.c: Fix common/ includes.
11751 * unittests/scoped_restore-selftests.c: Fix common/ includes.
11752 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
11753 * unittests/scoped_fd-selftests.c: Fix common/ includes.
11754 * unittests/rsp-low-selftests.c: Fix common/ includes.
11755 * unittests/parse-connection-spec-selftests.c: Fix common/
11757 * unittests/optional-selftests.c: Fix common/ includes.
11758 * unittests/offset-type-selftests.c: Fix common/ includes.
11759 * unittests/observable-selftests.c: Fix common/ includes.
11760 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
11761 * unittests/memrange-selftests.c: Fix common/ includes.
11762 * unittests/memory-map-selftests.c: Fix common/ includes.
11763 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
11764 * unittests/function-view-selftests.c: Fix common/ includes.
11765 * unittests/environ-selftests.c: Fix common/ includes.
11766 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
11767 * unittests/common-utils-selftests.c: Fix common/ includes.
11768 * unittests/cli-utils-selftests.c: Fix common/ includes.
11769 * unittests/array-view-selftests.c: Fix common/ includes.
11770 * ui-file.c: Fix common/ includes.
11771 * tui/tui-io.c: Fix common/ includes.
11772 * tracepoint.h: Fix common/ includes.
11773 * tracepoint.c: Fix common/ includes.
11774 * tracefile-tfile.c: Fix common/ includes.
11775 * top.h: Fix common/ includes.
11776 * top.c: Fix common/ includes.
11777 * thread.c: Fix common/ includes.
11778 * target/waitstatus.h: Fix common/ includes.
11779 * target/waitstatus.c: Fix common/ includes.
11780 * target.h: Fix common/ includes.
11781 * target.c: Fix common/ includes.
11782 * target-memory.c: Fix common/ includes.
11783 * target-descriptions.c: Fix common/ includes.
11784 * symtab.h: Fix common/ includes.
11785 * symfile.c: Fix common/ includes.
11786 * stap-probe.c: Fix common/ includes.
11787 * spu-linux-nat.c: Fix common/ includes.
11788 * sparc-nat.c: Fix common/ includes.
11789 * source.c: Fix common/ includes.
11790 * solib.c: Fix common/ includes.
11791 * solib-target.c: Fix common/ includes.
11792 * ser-unix.c: Fix common/ includes.
11793 * ser-tcp.c: Fix common/ includes.
11794 * ser-pipe.c: Fix common/ includes.
11795 * ser-base.c: Fix common/ includes.
11796 * selftest-arch.c: Fix common/ includes.
11797 * s12z-tdep.c: Fix common/ includes.
11798 * rust-exp.y: Fix common/ includes.
11799 * rs6000-aix-tdep.c: Fix common/ includes.
11800 * riscv-tdep.c: Fix common/ includes.
11801 * remote.c: Fix common/ includes.
11802 * remote-notif.h: Fix common/ includes.
11803 * remote-fileio.h: Fix common/ includes.
11804 * remote-fileio.c: Fix common/ includes.
11805 * regcache.h: Fix common/ includes.
11806 * regcache.c: Fix common/ includes.
11807 * record-btrace.c: Fix common/ includes.
11808 * python/python.c: Fix common/ includes.
11809 * python/py-type.c: Fix common/ includes.
11810 * python/py-inferior.c: Fix common/ includes.
11811 * progspace.h: Fix common/ includes.
11812 * producer.c: Fix common/ includes.
11813 * procfs.c: Fix common/ includes.
11814 * proc-api.c: Fix common/ includes.
11815 * printcmd.c: Fix common/ includes.
11816 * ppc-linux-nat.c: Fix common/ includes.
11817 * parser-defs.h: Fix common/ includes.
11818 * osdata.c: Fix common/ includes.
11819 * obsd-nat.c: Fix common/ includes.
11820 * nat/x86-linux.c: Fix common/ includes.
11821 * nat/x86-linux-dregs.c: Fix common/ includes.
11822 * nat/x86-dregs.h: Fix common/ includes.
11823 * nat/x86-dregs.c: Fix common/ includes.
11824 * nat/ppc-linux.c: Fix common/ includes.
11825 * nat/mips-linux-watch.h: Fix common/ includes.
11826 * nat/mips-linux-watch.c: Fix common/ includes.
11827 * nat/linux-waitpid.c: Fix common/ includes.
11828 * nat/linux-ptrace.h: Fix common/ includes.
11829 * nat/linux-ptrace.c: Fix common/ includes.
11830 * nat/linux-procfs.c: Fix common/ includes.
11831 * nat/linux-personality.c: Fix common/ includes.
11832 * nat/linux-osdata.c: Fix common/ includes.
11833 * nat/linux-namespaces.c: Fix common/ includes.
11834 * nat/linux-btrace.h: Fix common/ includes.
11835 * nat/linux-btrace.c: Fix common/ includes.
11836 * nat/fork-inferior.c: Fix common/ includes.
11837 * nat/amd64-linux-siginfo.c: Fix common/ includes.
11838 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
11839 * nat/aarch64-linux.c: Fix common/ includes.
11840 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
11841 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
11842 * namespace.h: Fix common/ includes.
11843 * mips-linux-tdep.c: Fix common/ includes.
11844 * minsyms.c: Fix common/ includes.
11845 * mi/mi-parse.h: Fix common/ includes.
11846 * mi/mi-main.c: Fix common/ includes.
11847 * mi/mi-cmd-env.c: Fix common/ includes.
11848 * memrange.h: Fix common/ includes.
11849 * memattr.c: Fix common/ includes.
11850 * maint.h: Fix common/ includes.
11851 * maint.c: Fix common/ includes.
11852 * main.c: Fix common/ includes.
11853 * machoread.c: Fix common/ includes.
11854 * location.c: Fix common/ includes.
11855 * linux-thread-db.c: Fix common/ includes.
11856 * linux-nat.c: Fix common/ includes.
11857 * linux-fork.c: Fix common/ includes.
11858 * inline-frame.c: Fix common/ includes.
11859 * infrun.c: Fix common/ includes.
11860 * inflow.c: Fix common/ includes.
11861 * inferior.h: Fix common/ includes.
11862 * inferior.c: Fix common/ includes.
11863 * infcmd.c: Fix common/ includes.
11864 * inf-ptrace.c: Fix common/ includes.
11865 * inf-child.c: Fix common/ includes.
11866 * ia64-linux-nat.c: Fix common/ includes.
11867 * i387-tdep.c: Fix common/ includes.
11868 * i386-tdep.c: Fix common/ includes.
11869 * i386-linux-tdep.c: Fix common/ includes.
11870 * i386-linux-nat.c: Fix common/ includes.
11871 * i386-go32-tdep.c: Fix common/ includes.
11872 * i386-fbsd-tdep.c: Fix common/ includes.
11873 * i386-fbsd-nat.c: Fix common/ includes.
11874 * guile/scm-type.c: Fix common/ includes.
11875 * guile/guile.c: Fix common/ includes.
11876 * go32-nat.c: Fix common/ includes.
11877 * gnu-nat.c: Fix common/ includes.
11878 * gdbthread.h: Fix common/ includes.
11879 * gdbarch-selftests.c: Fix common/ includes.
11880 * gdb_usleep.c: Fix common/ includes.
11881 * gdb_select.h: Fix common/ includes.
11882 * gdb_bfd.c: Fix common/ includes.
11883 * gcore.c: Fix common/ includes.
11884 * fork-child.c: Fix common/ includes.
11885 * findvar.c: Fix common/ includes.
11886 * fbsd-nat.c: Fix common/ includes.
11887 * event-top.c: Fix common/ includes.
11888 * event-loop.c: Fix common/ includes.
11889 * dwarf2read.c: Fix common/ includes.
11890 * dwarf2loc.c: Fix common/ includes.
11891 * dwarf2-frame.c: Fix common/ includes.
11892 * dwarf-index-cache.c: Fix common/ includes.
11893 * dtrace-probe.c: Fix common/ includes.
11894 * disasm-selftests.c: Fix common/ includes.
11895 * defs.h: Fix common/ includes.
11896 * csky-tdep.c: Fix common/ includes.
11897 * cp-valprint.c: Fix common/ includes.
11898 * cp-support.h: Fix common/ includes.
11899 * cp-support.c: Fix common/ includes.
11900 * corelow.c: Fix common/ includes.
11901 * completer.h: Fix common/ includes.
11902 * completer.c: Fix common/ includes.
11903 * compile/compile.c: Fix common/ includes.
11904 * compile/compile-loc2c.c: Fix common/ includes.
11905 * compile/compile-cplus-types.c: Fix common/ includes.
11906 * compile/compile-cplus-symbols.c: Fix common/ includes.
11907 * command.h: Fix common/ includes.
11908 * cli/cli-dump.c: Fix common/ includes.
11909 * cli/cli-cmds.c: Fix common/ includes.
11910 * charset.c: Fix common/ includes.
11911 * build-id.c: Fix common/ includes.
11912 * btrace.h: Fix common/ includes.
11913 * btrace.c: Fix common/ includes.
11914 * breakpoint.h: Fix common/ includes.
11915 * breakpoint.c: Fix common/ includes.
11917 (enum agent_op): Fix common/ includes.
11918 * ax-general.c (struct aop_map): Fix common/ includes.
11919 * ax-gdb.c: Fix common/ includes.
11920 * auxv.c: Fix common/ includes.
11921 * auto-load.c: Fix common/ includes.
11922 * arm-tdep.c: Fix common/ includes.
11923 * arch/riscv.c: Fix common/ includes.
11924 * arch/ppc-linux-common.c: Fix common/ includes.
11925 * arch/i386.c: Fix common/ includes.
11926 * arch/arm.c: Fix common/ includes.
11927 * arch/arm-linux.c: Fix common/ includes.
11928 * arch/arm-get-next-pcs.c: Fix common/ includes.
11929 * arch/amd64.c: Fix common/ includes.
11930 * arch/aarch64.c: Fix common/ includes.
11931 * arch/aarch64-insn.c: Fix common/ includes.
11932 * arch-utils.c: Fix common/ includes.
11933 * amd64-windows-tdep.c: Fix common/ includes.
11934 * amd64-tdep.c: Fix common/ includes.
11935 * amd64-sol2-tdep.c: Fix common/ includes.
11936 * amd64-obsd-tdep.c: Fix common/ includes.
11937 * amd64-nbsd-tdep.c: Fix common/ includes.
11938 * amd64-linux-tdep.c: Fix common/ includes.
11939 * amd64-linux-nat.c: Fix common/ includes.
11940 * amd64-fbsd-tdep.c: Fix common/ includes.
11941 * amd64-fbsd-nat.c: Fix common/ includes.
11942 * amd64-dicos-tdep.c: Fix common/ includes.
11943 * amd64-darwin-tdep.c: Fix common/ includes.
11944 * agent.c: Fix common/ includes.
11945 * ada-lang.h: Fix common/ includes.
11946 * ada-lang.c: Fix common/ includes.
11947 * aarch64-tdep.c: Fix common/ includes.
11949 2019-01-25 Tom Tromey <tom@tromey.com>
11951 * common/create-version.sh: Use common/version.h.
11953 2019-01-24 Pedro Alves <palves@redhat.com>
11955 * infrun.c (signal_stop, signal_print, signal_program)
11956 (signal_catch, signal_pass): Now arrays instead of pointers.
11957 (update_signals_program_target, do_target_resume)
11958 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
11959 * linux-nat.c (linux_nat_target::pass_signals)
11960 (linux_nat_target::create_inferior, linux_nat_target::attach):
11962 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
11963 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
11964 * procfs.c (procfs_target::pass_signals): Adjust.
11965 * record-full.c (record_full_target::resume): Adjust.
11966 * remote.c (remote_target::pass_signals)
11967 (remote_target::program_signals): Adjust.
11968 * target-debug.h (target_debug_print_signals): Now takes a
11969 gdb::array_view as parameter. Adjust.
11970 * target.h (target_ops) <pass_signals, program_signals>: Replace
11971 pointer and length parameters with gdb::array_view.
11972 (target_pass_signals, target_program_signals): Likewise.
11973 * target-delegates.c: Regenerate.
11975 2019-01-24 Pedro Alves <palves@redhat.com>
11977 * common/forward-scope-exit.h
11978 (forward_scope_exit::forward_scope_exit): Pass arguments to
11979 m_bind_function directly, instead of creating a std::bind and
11982 2019-01-24 Alan Hayward <alan.hayward@arm.com>
11984 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
11985 for static members.
11986 (pass_in_v_vfp_candidate): Likewise.
11988 2019-01-23 Tom Tromey <tom@tromey.com>
11989 Pedro Alves <palves@redhat.com>
11991 * regcache.c (class regcache_invalidator): Remove.
11992 (regcache::raw_write): Use make_scope_exit.
11994 2019-01-23 Tom Tromey <tom@tromey.com>
11996 * ui-out.h (class ui_out_emit_type): Update comment.
11998 2019-01-23 Tom Tromey <tom@tromey.com>
12000 * infrun.c (fetch_inferior_event): Update comment.
12002 2019-01-23 Tom Tromey <tom@tromey.com>
12003 Pedro Alves <palves@redhat.com>
12005 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
12007 (fetch_inferior_event): Use SCOPE_EXIT.
12010 2019-01-23 Tom Tromey <tom@tromey.com>
12011 Pedro Alves <palves@redhat.com>
12013 * infrun.c (disable_thread_events): Delete.
12014 (stop_all_threads): Use SCOPE_EXIT.
12016 2019-01-23 Tom Tromey <tom@tromey.com>
12017 Pedro Alves <palves@redhat.com>
12019 * symfile.c: Include forward-scope-exit.h.
12020 (clear_symtab_users_cleanup): Replace forward declaration with
12021 a FORWARD_SCOPE_EXIT.
12022 (syms_from_objfile_1): Use the forward_scope_exit and
12023 gdb::optional instead of cleanup_function.
12024 (reread_symbols): Use the forward_scope_exit instead of
12026 (clear_symtab_users_cleanup): Remove function.
12028 2019-01-23 Tom Tromey <tom@tromey.com>
12029 Pedro Alves <palves@redhat.com>
12031 * linux-nat.c: Include scope-exit.h.
12032 (cleanup_target_stop): Remove.
12033 (linux_nat_target::static_tracepoint_markers_by_strid): Use
12036 2019-01-23 Tom Tromey <tom@tromey.com>
12037 Pedro Alves <palves@redhat.com>
12039 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
12040 (call_function_by_hand_dummy): Use SCOPE_EXIT.
12042 2019-01-23 Tom Tromey <tom@tromey.com>
12043 Andrew Burgess <andrew.burgess@embecosm.com>
12044 Pedro Alves <palves@redhat.com>
12046 * infrun.c (fetch_inferior_event): Use scope_exit.
12047 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
12048 * top.c (execute_command): Use scope_exit.
12049 * breakpoint.c (bpstat_do_actions): Use scope_exit.
12050 * utils.c (do_bpstat_clear_actions_cleanup)
12051 (make_bpstat_clear_actions_cleanup): Remove.
12053 2019-01-23 Tom Tromey <tom@tromey.com>
12054 Pedro Alves <palves@redhat.com>
12056 * infrun.c: Include "common/scope-exit.h"
12057 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
12058 (wait_for_inferior): Use SCOPE_EXIT.
12059 (fetch_inferior_event): Use scope_exit.
12061 2019-01-23 Tom Tromey <tom@tromey.com>
12062 Pedro Alves <palves@redhat.com>
12064 * breakpoint.c (create_breakpoint): Remove cleanup.
12066 2019-01-23 Tom Tromey <tom@tromey.com>
12067 Andrew Burgess <andrew.burgess@embecosm.com>
12068 Pedro Alves <palves@redhat.com>
12070 2019-01-23 Pedro Alves <palves@redhat.com>
12072 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
12074 2019-01-23 Pedro Alves <palves@redhat.com>
12075 Andrew Burgess <andrew.burgess@embecosm.com>
12077 * gdbthread.h: Include "common/forward-scope-exit.h".
12078 (scoped_finish_thread_state): Redefine custom class in terms of
12079 forward_scope_exit.
12081 2019-01-23 Pedro Alves <palves@redhat.com>
12082 Andrew Burgess <andrew.burgess@embecosm.com>
12084 * common/forward-scope-exit.h: New file.
12086 2019-01-23 Pedro Alves <palves@redhat.com>
12087 Andrew Burgess <andrew.burgess@embecosm.com>
12088 Tom Tromey <tom@tromey.com>
12090 * common/scope-exit.h: New file.
12092 2019-01-23 Pedro Alves <palves@redhat.com>
12094 * common/preprocessor.h (ESC): Rename to ...
12095 (ESC_PARENS): ... this.
12096 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
12097 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
12099 2019-01-23 Tom Tromey <tom@tromey.com>
12101 * language.h (class scoped_switch_to_sym_language_if_auto):
12102 Initialize m_lang in both cases.
12104 2019-01-23 Alan Hayward <alan.hayward@arm.com>
12106 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
12109 2019-01-22 Tom Tromey <tom@tromey.com>
12111 * corelow.c: Do not include sys/file.h.
12113 2019-01-22 Tom Tromey <tom@tromey.com>
12115 * tui/tui-wingeneral.h: Include gdb_curses.h.
12117 2019-01-22 Tom Tromey <tom@tromey.com>
12119 * source-cache.h (class source_cache) <get_source_lines,
12120 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
12122 2019-01-22 Tom Tromey <tom@tromey.com>
12124 * remote-fileio.h (struct remote_target): Declare.
12126 2019-01-22 Tom Tromey <tom@tromey.com>
12128 * python/py-arch.c: Do not include py-ref.h.
12129 * python/py-bpevent.c: Do not include py-ref.h.
12130 * python/py-cmd.c: Do not include py-ref.h.
12131 * python/py-continueevent.c: Do not include py-ref.h.
12132 * python/py-event.h: Do not include py-ref.h.
12133 * python/py-evtregistry.c: Do not include py-ref.h.
12134 * python/py-finishbreakpoint.c: Do not include py-ref.h.
12135 * python/py-frame.c: Do not include py-ref.h.
12136 * python/py-framefilter.c: Do not include py-ref.h.
12137 * python/py-function.c: Do not include py-ref.h.
12138 * python/py-infevents.c: Do not include py-ref.h.
12139 * python/py-linetable.c: Do not include py-ref.h.
12140 * python/py-objfile.c: Do not include py-ref.h.
12141 * python/py-param.c: Do not include py-ref.h.
12142 * python/py-prettyprint.c: Do not include py-ref.h.
12143 * python/py-progspace.c: Do not include py-ref.h.
12144 * python/py-symbol.c: Do not include py-ref.h.
12145 * python/py-symtab.c: Do not include py-ref.h.
12146 * python/py-type.c: Do not include py-ref.h.
12147 * python/py-unwind.c: Do not include py-ref.h.
12148 * python/py-utils.c: Do not include py-ref.h.
12149 * python/py-value.c: Do not include py-ref.h.
12150 * python/py-varobj.c: Do not include py-ref.h.
12151 * python/py-xmethods.c: Do not include py-ref.h.
12152 * python/python.c: Do not include py-ref.h.
12153 * varobj.c: Do not include py-ref.h.
12155 2019-01-22 Tom Tromey <tom@tromey.com>
12157 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
12158 keyword for bcache.
12160 2019-01-22 Tom Tromey <tom@tromey.com>
12162 * compile/compile-cplus-types.c: Remove a comment by #include.
12164 2019-01-22 Tom Tromey <tom@tromey.com>
12166 * compile/gcc-c-plugin.h: Include compile-internal.h.
12168 2019-01-22 Tom Tromey <tom@tromey.com>
12170 * stabsread.c (EXTERN): Do not define.
12171 (symnum, next_symbol_text_func, processing_gcc_compilation)
12172 (within_function, global_sym_chain, global_stabs)
12173 (previous_stab_code, this_object_header_files)
12174 (n_this_object_header_files)
12175 (n_allocated_this_object_header_files): Define.
12176 * stabsread.h (EXTERN): Never define. Use "extern".
12178 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12180 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
12183 2019-01-21 Tom Tromey <tom@tromey.com>
12185 * ui-out.c: Fix includes.
12186 * tui/tui-source.c: Fix includes.
12187 * target.c: Fix includes.
12188 * remote.c: Fix includes.
12189 * regcache.c: Fix includes.
12190 * python/py-block.c: Fix includes.
12191 * printcmd.c: Fix includes.
12192 * or1k-tdep.c: Fix includes.
12193 * mi/mi-main.c: Fix includes.
12194 * m32r-tdep.c: Fix includes.
12195 * csky-tdep.c: Fix includes.
12196 * compile/compile-cplus-types.c: Fix includes.
12197 * cli/cli-interp.c: Fix includes.
12199 2019-01-21 Alan Hayward <alan.hayward@arm.com>
12201 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
12204 2019-01-16 Tom Tromey <tom@tromey.com>
12206 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
12208 (struct objfile) <msymbols_range>: Move from top level.
12209 <msymbols>: New method.
12210 (class objfile_msymbols): Remove.
12211 * symtab.c (default_collect_symbol_completion_matches_break_on):
12213 * symmisc.c (dump_msymbols): Update.
12214 * stabsread.c (scan_file_globals): Update.
12215 * objc-lang.c (info_selectors_command, info_classes_command)
12216 (find_methods): Update.
12217 * minsyms.c (find_solib_trampoline_target): Update.
12218 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
12219 * coffread.c (coff_symfile_read): Update.
12220 * ada-lang.c (ada_lookup_simple_minsym)
12221 (ada_collect_symbol_completion_matches): Update.
12223 2019-01-16 Tom Tromey <tom@tromey.com>
12225 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
12226 type. Remove no-argument constructor.
12227 <iterator::operator++>: Simplify.
12229 <end>: Use minimal_symbol_count.
12231 2019-01-16 Tom Tromey <tom@tromey.com>
12233 * objfiles.h (struct objfile) <psymtabs>: New method.
12234 (class objfile_psymtabs): Remove.
12235 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
12237 <range>: New method.
12238 (require_partial_symbols): Change return type.
12239 * psymtab.c (require_partial_symbols)
12240 (psym_expand_symtabs_matching): Update.
12241 * mdebugread.c (parse_partial_symbols): Update.
12242 * dbxread.c (dbx_end_psymtab): Update.
12244 2019-01-15 Tom Tromey <tom@tromey.com>
12246 * symtab.c (lookup_objfile_from_block)
12247 (lookup_symbol_in_objfile_symtabs)
12248 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
12249 (find_line_symtab, info_sources_command)
12250 (default_collect_symbol_completion_matches_break_on)
12251 (make_source_files_completion_list): Update.
12252 * symmisc.c (print_objfile_statistics, dump_objfile)
12253 (maintenance_print_symbols, maintenance_info_symtabs)
12254 (maintenance_check_symtabs, maintenance_info_line_tables):
12256 * source.c (select_source_symtab)
12257 (forget_cached_source_info_for_objfile): Update.
12258 * objfiles.h (class objfile_compunits): Remove.
12259 (struct objfile) <compunits_range>: New typedef.
12260 (compunits): New method.
12261 * objfiles.c (objfile_relocate1): Update.
12262 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
12263 * maint.c (count_symtabs_and_blocks): Update.
12264 * linespec.c (iterate_over_all_matching_symtabs): Update.
12265 * cp-support.c (add_symbol_overload_list_qualified): Update.
12266 * coffread.c (coff_symtab_read): Update.
12267 * ada-lang.c (add_nonlocal_symbols)
12268 (ada_collect_symbol_completion_matches)
12269 (ada_add_global_exceptions): Update.
12271 2019-01-15 Tom Tromey <tom@tromey.com>
12273 * progspace.h (program_space) <objfiles_safe_range>: New
12275 <objfiles_safe>: New method.
12276 * objfiles.h (class all_objfiles_safe): Remove.
12277 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
12278 * jit.c (jit_inferior_exit_hook): Update.
12280 2019-01-17 Tom Tromey <tom@tromey.com>
12282 * progspace.h (program_space) <objfiles_range>: New typedef.
12283 <objfiles>: New method.
12284 <objfiles_head>: Rename from objfiles.
12285 (object_files): Update.
12286 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
12287 * guile/scm-pretty-print.c
12288 (ppscm_find_pretty_printer_from_objfiles): Update.
12289 * guile/scm-objfile.c (gdbscm_objfiles): Update.
12290 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
12292 * python/py-progspace.c (pspy_get_objfiles): Update.
12293 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
12295 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
12296 (objfpy_lookup_objfile_by_build_id): Update.
12297 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
12298 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
12300 * symtab.c (iterate_over_symtabs, matching_obj_sections)
12301 (expand_symtab_containing_pc, lookup_objfile_from_block)
12302 (lookup_static_symbol, basic_lookup_transparent_type)
12303 (find_pc_sect_compunit_symtab, find_symbol_at_address)
12304 (find_line_symtab, info_sources_command)
12305 (default_collect_symbol_completion_matches_break_on)
12306 (make_source_files_completion_list, find_main_name): Update.
12307 * symmisc.c (print_symbol_bcache_statistics)
12308 (print_objfile_statistics, maintenance_print_symbols)
12309 (maintenance_print_msymbols, maintenance_print_objfiles)
12310 (maintenance_info_symtabs, maintenance_check_symtabs)
12311 (maintenance_expand_symtabs, maintenance_info_line_tables):
12313 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
12314 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
12315 (map_overlay_command, unmap_overlay_command)
12316 (simple_overlay_update, expand_symtabs_matching)
12317 (map_symbol_filenames): Update.
12318 * symfile-debug.c (set_debug_symfile): Update.
12319 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
12321 * source.c (select_source_symtab, forget_cached_source_info):
12323 * solib.c (solib_read_symbols): Update.
12324 * solib-spu.c (append_ocl_sos): Update.
12325 * psymtab.c (maintenance_print_psymbols)
12326 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
12327 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
12328 * printcmd.c (info_symbol_command): Update.
12329 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
12331 * objfiles.h (class all_objfiles): Remove.
12332 * objfiles.c (have_partial_symbols, have_full_symbols)
12333 (have_minimal_symbols, qsort_cmp, update_section_map)
12334 (shared_objfile_contains_address_p)
12335 (default_iterate_over_objfiles_in_search_order): Update.
12336 * objc-lang.c (info_selectors_command, info_classes_command)
12337 (find_methods): Update.
12338 * minsyms.c (find_solib_trampoline_target): Update.
12339 * maint.c (maintenance_info_sections)
12340 (maintenance_translate_address, count_symtabs_and_blocks):
12342 * main.c (captured_main_1): Update.
12343 * linux-thread-db.c (try_thread_db_load_from_pdir)
12344 (has_libpthread): Update.
12345 * linespec.c (iterate_over_all_matching_symtabs)
12346 (search_minsyms_for_name): Update.
12347 * jit.c (jit_find_objf_with_entry_addr): Update.
12348 * hppa-tdep.c (find_unwind_entry)
12349 (hppa_lookup_stub_minimal_symbol): Update.
12350 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
12352 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
12353 (elf_gnu_ifunc_resolve_by_got): Update.
12354 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
12355 * dwarf-index-write.c (save_gdb_index_command): Update.
12356 * cp-support.c (add_symbol_overload_list_qualified): Update.
12357 * breakpoint.c (create_overlay_event_breakpoint)
12358 (create_longjmp_master_breakpoint)
12359 (create_std_terminate_master_breakpoint)
12360 (create_exception_master_breakpoint): Update.
12361 * blockframe.c (find_pc_partial_function): Update.
12362 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
12363 (ada_collect_symbol_completion_matches)
12364 (ada_add_global_exceptions): Update.
12366 2019-01-17 Tom Tromey <tom@tromey.com>
12368 * solib-target.c (lm_info_target_p): Remove typedef. Don't
12370 (solib_target_parse_libraries): Change return type.
12371 (library_list_start_segment, library_list_start_section)
12372 (library_list_end_library, library_list_start_library); Update.
12373 (solib_target_free_library_list): Remove.
12374 (solib_target_parse_libraries): Remove cleanup. Change return
12376 (solib_target_current_sos): Update.
12378 2019-01-17 Tom Tromey <tromey@bapiya>
12380 * valprint.c: Replace "the the" with "the".
12381 * symtab.c: Replace "the the" with "the".
12382 * solib.c: Replace "the the" with "the".
12383 * solib-dsbt.c: Replace "the the" with "the".
12384 * linespec.c: Replace "the the" with "the".
12385 * dwarf2loc.h: Replace "the the" with "the".
12386 * amd64-windows-tdep.c: Replace "the the" with "the".
12387 * aarch64-tdep.c: Replace "the the" with "the".
12389 2019-01-16 Keith Seitz <keiths@redhat.com>
12392 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
12393 <builder>: Rename to ..
12394 <m_builder>: ... this and make private.
12395 (dwarf2_cu::get_builder): New method. Change all users of
12396 `builder' to use this method.
12397 (dwarf2_start_symtab): Move to ...
12398 (dwarf2_cu::start_symtab): ... here. Update all callers
12399 (setup_type_unit_groups): Move to ...
12400 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
12402 (dwarf2_cu::reset_builder): New method.
12403 (process_full_compunit, process_full_type_unit): Use
12404 dwarf2_cu::reset_builder.
12405 (follow_die_offset): Record the ancestor CU if it is different
12406 from the followed DIE's CU.
12407 (follow_die_sig_1): Likewise.
12409 2019-01-15 Tom Tromey <tom@tromey.com>
12411 * remote.c (class remote_state) <buf>: Now a char_vector.
12412 <buf_size>: Remove.
12413 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
12415 (remote_target::getpkt_or_notif_sane_1)
12416 (remote_target::getpkt_sane)
12417 (remote_target::getpkt_or_notif_sane): Likewise.
12418 (class remote_target) <putpkt>: New overload.
12419 (remote_target::read_frame): Change type of "buf_p". Remove
12420 sizeof_p parameter.
12421 (packet_ok): New overload.
12422 (packet_check_result): New overload.
12425 2019-01-14 Tom Tromey <tom@tromey.com>
12427 * remote-notif.c (handle_notification, remote_notif_ack)
12428 (remote_notif_parse): Make "buf" const.
12429 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
12431 (remote_notif_parse, remote_notif_ack, handle_notification):
12433 * remote.c (remote_notif_stop_parse): Make "buf" const.
12434 (remote_target::remote_parse_stop_reply): Make "buf" const.
12435 (remote_notif_stop_ack): Make "buf" const.
12437 2019-01-14 Tom Tromey <tom@tromey.com>
12439 * remote.c (remote_console_output): Make parameter const.
12441 2019-01-14 Tom Tromey <tom@tromey.com>
12443 * target-debug.h (target_debug_print_signals): Constify.
12444 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
12445 * procfs.c (procfs_target::pass_signals): Update.
12446 * linux-nat.c (linux_nat_target::pass_signals): Update.
12447 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
12448 * target-delegates.c: Rebuild.
12449 * remote.c (remote_target::program_signals): Update.
12450 (remote_target::pass_signals): Update.
12451 * target.c (target_pass_signals): Constify argument.
12452 (target_program_signals): Likewise.
12453 * target.h (struct target_ops) <pass_signals, program_signals>:
12455 (target_pass_signals, target_program_signals): Constify argument.
12457 2019-01-14 Tom Tromey <tom@tromey.com>
12460 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
12462 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12464 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
12466 * rs6000-tdep.c: Include reggroups.h.
12467 (IS_V_ALIAS_PSEUDOREG): Define.
12468 (rs6000_register_name): Return names for the "vX" aliases.
12469 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
12470 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
12471 aliases. Call default_register_reggroup_p for all other
12473 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
12475 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
12476 Handle "vX" aliases.
12477 (v_alias_pseudo_register_collect): New function.
12478 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
12479 (rs6000_gdbarch_init): Initialize "vX" aliases as
12480 pseudo-registers. Restore registration of
12481 rs6000_pseudo_register_reggroup_p with
12482 set_tdesc_pseudo_register_reggroup_p.
12484 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
12486 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
12487 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
12488 set_gdbarch_num_pseudo_regs.
12490 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12492 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
12493 Remove arg prefixname, add do_set and do_show.
12494 Add member functions set_list and show_list.
12495 * cli/cli-style.c (class cli_style_option): Update accordingly.
12496 (style_set_list): Move to file scope.
12497 (style_show_list): Likewise.
12498 (set_style): Call help_list.
12499 (show_style): Call cmd_show_list.
12500 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
12501 Update to use the new macro.
12503 2019-10-12 Joel Brobecker <brobecker@adacore.com>
12505 * ada-lang.c (_initialize_ada_language): Expand the help text
12506 for the "catch exception" command.
12508 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12510 * symtab.c (matching_obj_sections): Initialize obj,
12511 declare it closer to its usage.
12513 2019-01-10 Tom Tromey <tom@tromey.com>
12515 * thread-iter.h (inf_threads_iterator): Use next_iterator.
12516 (basic_inf_threads_range): Remove.
12517 (inf_threads_range, inf_non_exited_threads_range)
12518 (safe_inf_threads_range): Use next_adapter.
12520 2019-01-10 Keith Seitz <keiths@redhat.com>
12524 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
12525 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
12527 2019-01-10 Keith Seitz <keiths@redhat.com>
12531 * dictionary.c (pending_to_vector): Remove.
12532 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12533 Remove _1 suffix, replacing functions of the same name. Update
12535 (dict_create_hashed, dict_create_hashed_expandable)
12536 (dict_create_linear, dict_create_linear_expandable, dict_free)
12537 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
12538 Make functions static.
12540 2019-01-10 Keith Seitz <keiths@redhat.com>
12544 * dictionary.h (struct dictionary): Replace declaration with
12546 (dict_create_hashed, dict_create_hashed_expandable)
12547 (dict_create_linear, dict_create_linear_expandable)
12548 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
12549 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
12550 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
12551 taking multidictionary argument.
12552 [ALL_DICT_SYMBOLS]: Update for multidictionary.
12553 * block.h (struct block) <dict>: Change to multidictionary
12554 and rename `multidict'.
12555 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
12556 symmisc.c: Update all dictionary references to multidictionary.
12558 2019-01-10 Keith Seitz <keiths@redhat.com>
12562 * dictionary.c: Include unordered_map.
12563 (pending_to_vector): New function.
12564 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12565 Rewrite the non-"_1" functions to take vector instead
12567 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
12568 "new" _1 versions of the same name.
12569 (multidictionary): Define.
12570 (std::hash<enum language): New definition.
12571 (collate_pending_symbols_by_language, mdict_create_hashed)
12572 (mdict_create_hashed_expandable, mdict_create_linear)
12573 (mdict_create_linear_expandable, mdict_free)
12574 (find_language_dictionary, create_new_language_dictionary)
12575 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
12576 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
12577 (mdict_size, mdict_empty): New functions.
12578 * dictionary.h (mdict_iterator): Define.
12580 2019-01-10 Pedro Alves <palves@redhat.com>
12582 * breakpoint.c (read_uploaded_action)
12583 (create_tracepoint_from_upload): Adjust to use
12584 gdb::unique_xmalloc_ptr.
12585 * ctf.c (ctf_write_uploaded_tp):
12586 (SET_ARRAY_FIELD): Use emplace_back.
12587 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
12588 * tracefile-tfile.c (tfile_write_uploaded_tp):
12589 * tracepoint.c (parse_tracepoint_definition): Adjust to use
12590 gdb::unique_xmalloc_ptr.
12591 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
12592 at_string, cond_string, cmd_strings>: Replace char pointers
12593 with gdb::unique_xmalloc_ptr.
12595 2019-01-10 Pedro Alves <palves@redhat.com>
12597 * solib-target.c (library_list_start_library): Don't xstrdup name.
12599 2019-01-10 Pedro Alves <palves@redhat.com>
12601 * mdebugread.c (parse_partial_symbols): Use
12602 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
12604 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
12606 * linux-fork.c (scoped_switch_fork_info)
12607 <~scoped_switch_fork_info>: Fix incorrect variable name.
12609 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
12611 * linux-fork.c (scoped_switch_fork_info)
12612 <scoped_switch_fork_info>: Make explicit.
12613 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
12615 2019-01-10 Tom Tromey <tom@tromey.com>
12617 * objfiles.h (objfile::reset_psymtabs): Update.
12618 * objfiles.c (objfile::objfile): Update.
12619 * psymtab.h (psymtab_storage::obstack): Update.
12620 (psymtab_storage::m_obstack): Use gdb::optional.
12621 (class psymtab_storage): Update comment. Remove objfile
12623 * psymtab.c (psymtab_storage::psymtab_storage): Update.
12625 2019-01-10 Tom Tromey <tom@tromey.com>
12627 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
12628 <free_psymtabs>: Now private.
12629 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
12630 (allocate_psymtab): Use new method.
12632 2019-01-10 Tom Tromey <tom@tromey.com>
12634 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
12635 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
12636 * mdebugread.c (parse_partial_symbols): Use
12637 allocate_dependencies.
12638 * dwarf2read.c (dwarf2_create_include_psymtab): Use
12639 allocate_dependencies.
12640 (process_psymtab_comp_unit_reader)
12641 (build_type_psymtab_dependencies): Likewise.
12642 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
12644 2019-01-10 Tom Tromey <tom@tromey.com>
12646 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
12647 PSYMBOL_SET_LANGUAGE.
12648 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
12650 2019-01-10 Tom Tromey <tom@tromey.com>
12652 * psymtab.h (psymtab_storage::obstack): New method.
12653 <m_obstack>: Rename from obstack; now private.
12654 * psymtab.c (psymtab_storage): Update.
12655 * dwarf2read.c (create_addrmap_from_index)
12656 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
12659 2019-01-10 Tom Tromey <tom@tromey.com>
12661 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
12662 * objfiles.h (objfile::reset_psymtabs): New method.
12664 2019-01-10 Tom Tromey <tom@tromey.com>
12666 * symmisc.c (print_symbol_bcache_statistics): Update.
12667 (print_objfile_statistics): Update.
12668 * symfile.c (reread_symbols): Update.
12669 * psymtab.h (class psymtab_storage): New.
12670 * psymtab.c (psymtab_storage): New constructor.
12671 (~psymtab_storage): New destructor.
12672 (require_partial_symbols): Update.
12673 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
12674 (find_pc_sect_psymtab, find_pc_sect_psymbol)
12675 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
12676 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
12677 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
12678 (start_psymtab_common, end_psymtab_common)
12679 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
12680 (allocate_psymtab): Update.
12681 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
12683 (dump_psymtab_addrmap, maintenance_print_psymbols)
12684 (maintenance_check_psymtabs): Update.
12685 (class objfile_psymtabs): Move to objfiles.h.
12686 * psympriv.h (discard_psymtab): Now inline.
12687 (psymtab_discarder::psymtab_discarder): Update.
12688 (psymtab_discarder::~psymtab_discarder): Update.
12689 (ALL_OBJFILE_PSYMTABS): Rewrite.
12690 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
12691 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
12693 <partial_symtabs>: New field.
12694 (class objfile_psymtabs): Move from psymtab.h. Update.
12695 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
12697 (objfile::~objfile): Don't destroy psymbol_cache.
12698 * mdebugread.c (parse_partial_symbols): Update.
12699 * dwarf2read.c (create_addrmap_from_index)
12700 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12701 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
12702 (add_partial_subprogram, dwarf2_ranges_read): Update.
12703 * dwarf-index-write.c (write_address_map)
12704 (write_one_signatured_type, recursively_write_psymbols)
12705 (class debug_names, class debug_names, write_psymtabs_to_index):
12708 2019-01-10 Tom Tromey <tom@tromey.com>
12710 * symtab.h (SYMBOL_SET_NAMES): Update.
12711 (symbol_set_names): Update.
12712 (MSYMBOL_SET_NAMES): Update.
12713 * symtab.c (symbol_set_names): Change argument to be an
12714 objfile_per_bfd_storage.
12715 * psymtab.c (add_psymbol_to_bcache): Update.
12716 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
12718 2019-01-10 Tom Tromey <tom@tromey.com>
12720 * symtab.c (create_demangled_names_hash): Change argument to be an
12721 objfile_per_bfd_storage.
12722 (symbol_set_names): Update.
12724 2019-01-10 Tom Tromey <tom@tromey.com>
12726 * xcoffread.c (xcoff_initial_scan): Unconditionally call
12728 * psymtab.c (init_psymbol_list): Do nothing if already called.
12729 * psympriv.h (init_psymbol_list): Add comment.
12730 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
12732 * dbxread.c (dbx_symfile_read): Unconditionally call
12735 2019-01-10 Tom Tromey <tom@tromey.com>
12737 * xcoffread.c (scan_xcoff_symtab): Update.
12738 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
12740 * mdebugread.c (parse_partial_symbols)
12741 (handle_psymbol_enumerators): Update.
12742 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
12743 * dbxread.c (read_dbx_symtab): Update.
12744 * psympriv.h (psymbol_placement): New enum.
12745 (add_psymbol_to_list): Update.
12747 2019-01-10 Tom Tromey <tom@tromey.com>
12749 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
12750 static_psymbols parameters.
12751 (scan_xcoff_symtab): Update.
12752 * psymtab.c (start_psymtab_common): Remove global_psymbols and
12753 static_psymbols parameters.
12754 * psympriv.h (start_psymtab_common): Update.
12755 * mdebugread.c (parse_partial_symbols): Update.
12756 * dwarf2read.c (create_partial_symtab): Update.
12757 * dbxread.c (read_dbx_symtab): Update.
12758 (start_psymtab): Remove global_psymbols and static_psymbols
12761 2019-01-10 Tom Tromey <tom@tromey.com>
12763 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
12764 * psymtab.c (allocate_psymtab): Add comment.
12765 * psympriv.h (allocate_psymtab): Add comment.
12766 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
12768 * dbxread.c (dbx_end_psymtab): Remove some initializations.
12770 2019-01-10 Tom Tromey <tom@tromey.com>
12772 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12774 * mipsread.c: Include mdebugread.h.
12775 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12777 * elfread.c: Include mdebugread.h.
12779 2019-01-09 Tom Tromey <tom@tromey.com>
12781 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
12782 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
12783 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
12784 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
12785 (psym_lookup_symbol, psym_find_last_source_symtab)
12786 (psym_forget_cached_source_info, psym_print_stats)
12787 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
12788 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
12789 (psym_map_matching_symbols, psym_expand_symtabs_matching)
12790 (psym_find_compunit_symtab_by_address)
12791 (maintenance_print_psymbols, maintenance_info_psymtabs)
12792 (maintenance_check_psymtabs): Use ranged for.
12793 * psymtab.h (class objfile_psymtabs): New.
12794 (require_partial_symbols): Return objfile_psymtabs.
12795 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
12797 2019-01-09 Tom Tromey <tom@tromey.com>
12799 * symfile.c (overlay_invalidate_all, find_pc_overlay)
12800 (find_pc_mapped_section, list_overlays_command)
12801 (map_overlay_command, unmap_overlay_command)
12802 (simple_overlay_update): Use all_objfiles.
12803 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
12804 * printcmd.c (info_symbol_command): Use all_objfiles.
12805 * objfiles.h (ALL_OBJSECTIONS): Remove.
12806 * maint.c (maintenance_translate_address): Use all_objfiles.
12807 * gcore.c (gcore_create_callback): Use all_objfiles.
12808 (objfile_find_memory_regions): Likewise.
12810 2019-01-09 Tom Tromey <tom@tromey.com>
12812 * symtab.c (find_line_symtab, info_sources_command)
12813 (make_source_files_completion_list): Use objfile_compunits.
12814 * source.c (select_source_symtab): Use objfile_compunits.
12815 * objfiles.h (struct objfile): Update comment.
12816 (ALL_OBJFILES): Remove.
12817 (ALL_FILETABS): Remove.
12818 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
12821 2019-01-09 Tom Tromey <tom@tromey.com>
12823 * symmisc.c (print_objfile_statistics, dump_objfile)
12824 (maintenance_print_symbols): Use compunit_filetabs.
12825 * source.c (forget_cached_source_info_for_objfile): Use
12827 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
12828 (ALL_FILETABS): Use compunit_filetabs.
12829 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
12830 * coffread.c (coff_symtab_read): Use compunit_filetabs.
12832 2019-01-09 Tom Tromey <tom@tromey.com>
12834 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
12835 (compunit_filetabs): New.
12836 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
12838 (info_sources_command, make_source_files_completion_list): Remove
12840 * symmisc.c (print_objfile_statistics, dump_objfile)
12841 (maintenance_print_symbols): Remove declaration.
12842 (maintenance_info_symtabs): Use compunit_filetabs.
12843 (maintenance_info_line_tables): Likewise.
12844 * source.c (select_source_symtab): Change local variable name.
12845 (forget_cached_source_info_for_objfile): Remove declaration.
12846 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
12847 * objfiles.c (objfile_relocate1): Remove declaration.
12848 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
12850 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
12851 * coffread.c (coff_symtab_read): Remove declaration.
12852 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
12855 2019-01-09 Tom Tromey <tom@tromey.com>
12857 * symtab.c (lookup_objfile_from_block)
12858 (find_pc_sect_compunit_symtab, search_symbols)
12859 (default_collect_symbol_completion_matches_break_on): Use
12861 * objfiles.h (ALL_COMPUNITS): Remove.
12862 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
12863 * cp-support.c (add_symbol_overload_list_qualified): Use
12865 * ada-lang.c (ada_collect_symbol_completion_matches)
12866 (ada_add_global_exceptions): Use objfile_compunits.
12868 2019-01-09 Tom Tromey <tom@tromey.com>
12870 * source.c (select_source_symtab)
12871 (forget_cached_source_info_for_objfile): Remove declaration.
12872 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
12874 * maint.c (count_symtabs_and_blocks): Remove declaration.
12875 * cp-support.c (add_symbol_overload_list_qualified): Remove
12877 * coffread.c (coff_symtab_read): Remove declaration.
12878 * symtab.c (lookup_symbol_in_objfile_symtabs)
12879 (basic_lookup_transparent_type_1): Use objfile_compunits.
12880 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
12881 (info_sources_command, search_symbols)
12882 (default_collect_symbol_completion_matches_break_on)
12883 (make_source_files_completion_list): Remove declaration.
12884 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
12885 (ada_collect_symbol_completion_matches)
12886 (ada_add_global_exceptions): Remove declaration.
12887 * linespec.c (iterate_over_all_matching_symtabs): Use
12889 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
12890 (class objfile_compunits): New.
12891 (ALL_COMPUNITS): Use objfile_compunits.
12892 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
12893 (maintenance_check_symtabs, maintenance_info_line_tables): Use
12895 * objfiles.c (objfile_relocate1): Use objfile_compunits.
12897 2019-01-09 Tom Tromey <tom@tromey.com>
12899 * symtab.c (search_symbols)
12900 (default_collect_symbol_completion_matches_break_on): Use
12902 * ada-lang.c (ada_lookup_simple_minsym)
12903 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
12904 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
12905 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
12907 * coffread.c (coff_symfile_read): Use objfile_msymbols.
12908 * symmisc.c (dump_msymbols): Use objfile_msymbols.
12909 * objc-lang.c (find_methods): Use objfile_msymbols.
12910 (info_selectors_command, info_classes_command): Likewise.
12911 * stabsread.c (scan_file_globals): Use objfile_msymbols.
12912 * objfiles.h (class objfile_msymbols): New.
12913 (ALL_OBJFILE_MSYMBOLS): Remove.
12914 (ALL_MSYMBOLS): Remove.
12916 2019-01-09 Tom Tromey <tom@tromey.com>
12918 * common/next-iterator.h (next_adapter): Add Iterator template
12920 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
12921 (class all_objfiles_safe): New.
12922 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
12923 * objfiles.c (put_objfile_before): Update comment.
12924 (add_separate_debug_objfile): Likewise.
12925 (free_all_objfiles): Use all_objfiles_safe.
12926 (objfile_purge_solibs): Likewise.
12928 2019-01-09 Tom Tromey <tom@tromey.com>
12930 * symtab.c (iterate_over_symtabs, matching_obj_sections)
12931 (expand_symtab_containing_pc, lookup_static_symbol)
12932 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
12933 (find_symbol_at_address, find_line_symtab, find_main_name): Use
12935 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
12936 * breakpoint.c (create_overlay_event_breakpoint)
12937 (create_longjmp_master_breakpoint)
12938 (create_std_terminate_master_breakpoint)
12939 (create_exception_master_breakpoint): Use all_objfiles.
12940 * linux-thread-db.c (try_thread_db_load_from_pdir)
12941 (has_libpthread): Use all_objfiles.
12942 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
12943 * linespec.c (iterate_over_all_matching_symtabs)
12944 (search_minsyms_for_name): Use all_objfiles.
12945 * maint.c (maintenance_info_sections): Use all_objfiles.
12946 * main.c (captured_main_1): Use all_objfiles.
12947 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
12948 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
12949 * guile/scm-pretty-print.c
12950 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
12951 * solib-spu.c (append_ocl_sos): Use all_objfiles.
12952 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
12953 (maintenance_print_msymbols): Use all_objfiles.
12954 * source.c (select_source_symtab): Use all_objfiles.
12955 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
12956 * symfile.c (remove_symbol_file_command)
12957 (expand_symtabs_matching, map_symbol_filenames): Use
12959 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
12961 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
12962 * objc-lang.c (find_methods): Use all_objfiles.
12963 * objfiles.c (have_partial_symbols, have_full_symbols)
12964 (have_minimal_symbols, qsort_cmp)
12965 (default_iterate_over_objfiles_in_search_order): Use
12967 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
12968 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
12969 (maintenance_check_psymtabs): Use all_objfiles.
12970 (ALL_PSYMTABS): Remove.
12971 * compile/compile-object-run.c (do_module_cleanup): Use
12973 * blockframe.c (find_pc_partial_function): Use all_objfiles.
12974 * cp-support.c (add_symbol_overload_list_qualified): Use
12976 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
12978 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
12979 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
12981 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
12982 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
12983 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
12985 * solib.c (solib_read_symbols): Use all_objfiles
12987 2019-01-09 Tom Tromey <tom@tromey.com>
12989 * probe.c (parse_probes_in_pspace): Use all_objfiles.
12990 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
12992 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
12993 * symmisc.c (print_symbol_bcache_statistics)
12994 (print_objfile_statistics, maintenance_print_objfiles)
12995 (maintenance_info_symtabs, maintenance_check_symtabs)
12996 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
12998 * source.c (forget_cached_source_info): Use all_objfiles.
12999 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
13000 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
13001 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
13002 * objfiles.c (update_section_map): Use all_objfiles.
13003 (shared_objfile_contains_address_p): Likewise.
13004 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
13005 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
13007 2019-01-09 Tom Tromey <tom@tromey.com>
13009 * common/next-iterator.h: New file.
13010 * objfiles.h (class all_objfiles): New.
13011 (struct objfile_iterator): New.
13013 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13015 * NEWS: Move the description of the changed "frame", "select-frame",
13016 and "info frame" commands to the Changed commands section.
13018 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
13020 * gdbtypes.c (check_stub_method_group): Remove handling of old
13022 * linespec.c (find_methods): Likewise.
13023 * stabsread.c (read_member_functions): Likewise.
13024 * valops.c (search_struct_method): Likewise.
13025 (value_struct_elt_for_reference): Likewise.
13026 * NEWS: Mention this change.
13028 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13030 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
13031 print_source_lines.
13032 * source.c (print_source_lines_base): Update line number check.
13033 (print_source_lines): New function.
13034 (source_lines_range::source_lines_range): New function.
13035 * source.h (class source_lines_range): New class.
13036 (print_source_lines): New declaration.
13038 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13040 * linespec.c (linespec_state_destructor): Free self->canonical_names.
13042 2019-01-08 Tom Tromey <tom@tromey.com>
13043 Simon Marchi <simon.marchi@ericsson.com>
13046 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
13047 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
13048 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
13049 * f-exp.y (DOLLAR_VARIABLE): Likewise.
13050 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
13051 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
13053 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13055 * source.c (select_source_symtab): Move header comment to
13056 declaration in source.h.
13057 (forget_cached_source_info_for_objfile): Likewise.
13058 (forget_cached_source_info): Likewise.
13059 (identify_source_line): Likewise.
13060 * source.h (identify_source_line): Move declaration from symtab.h
13061 and add comment from source.c
13062 (print_source_lines): Likewise.
13063 (forget_cached_source_info_for_objfile): Likewise.
13064 (forget_cached_source_info): Likewise.
13065 (select_source_symtab): Likewise.
13066 (enum print_source_lines_flag): Move definition from symtab.h.
13067 * symtab.h (identify_source_line): Move declaration to source.h.
13068 (print_source_lines): Likewise.
13069 (forget_cached_source_info_for_objfile): Likewise.
13070 (forget_cached_source_info): Likewise.
13071 (select_source_symtab): Likewise.
13072 (enum print_source_lines_flag): Move definition to source.h.
13073 * tui/tui-hooks.c: Add 'source.h' include.
13075 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13077 * source.c (print_source_lines_base): Handle requests to print
13078 reverse line number sequences, and guard against empty lines
13081 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13083 * source.c (print_source_lines_base): Fix skip of '\r' if next
13086 2019-01-06 Tom Tromey <tom@tromey.com>
13088 * c-exp.y (struct c_parse_state) <macro_original_text,
13089 expansion_obstack>: New member.
13090 (macro_original_text, expansion_obstack): Remove globals.
13091 (scan_macro_expansion, scanning_macro_expansion)
13092 (finished_macro_expansion): Update.
13093 (scan_macro_cleanup): Remove.
13094 (yylex, c_parse): Update.
13096 2019-01-06 Tom Tromey <tom@tromey.com>
13098 * c-exp.y (struct c_parse_state) <strings>: New member.
13099 (operator_stoken): Update.
13101 2019-01-06 Tom Tromey <tom@tromey.com>
13103 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
13104 (union type_stack_elt) <typelist_val>: Now a pointer to
13106 (type_stack_cleanup): Don't declare.
13107 (push_typelist): Update.
13108 * parse.c (pop_typelist): Return a std::vector.
13109 (push_typelist): Take a std::vector.
13110 (follow_types): Update. Do not free args.
13111 (type_stack_cleanup): Remove.
13112 * c-exp.y (struct c_parse_state): New.
13113 (cpstate): New global.
13114 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
13115 (nonempty_typelist): Update.
13116 (func_mod): Create a new vector.
13117 (c_parse): Create a c_parse_state.
13118 (check_parameter_typelist): Do not delete params.
13119 (function_method): Update. Do not delete type_list.
13121 2019-01-06 Tom Tromey <tom@tromey.com>
13124 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
13126 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
13127 (print_return_value): Likewise.
13129 2019-01-05 Tom Tromey <tom@tromey.com>
13131 * contrib/cleanup_check.py: Remove.
13132 * contrib/gcc-with-excheck: Remove.
13133 * contrib/exsummary.py: Remove.
13134 * contrib/excheck.py: Remove.
13136 2019-01-05 Joel Brobecker <brobecker@adacore.com>
13138 * thread.c (delete_thread_1): Add gdb_assert that THR is not
13139 NULL. Initialize tpprev to NULL instead of assigning it
13140 to NULL on the next statement.
13141 * windows-nat.c (windows_delete_thread): Remove check for
13142 main_thread_id before printing thread exit notifications.
13143 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
13144 Remove thread ID check against main_thread_id.
13145 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
13146 windows_delete_thread.
13147 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
13149 2019-01-04 Tom Tromey <tom@tromey.com>
13151 * compile/compile.c (_initialize_compile): Use upper case for
13152 metasyntactic variables.
13153 * symmisc.c (_initialize_symmisc): Use upper case for
13154 metasyntactic variables.
13155 * psymtab.c (_initialize_psymtab): Use upper case for
13156 metasyntactic variables.
13157 * demangle.c (demangle_command): Use upper case for metasyntactic
13159 (_initialize_demangler): Likewise.
13160 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
13163 2019-01-03 Tom Tromey <tom@tromey.com>
13165 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
13167 2019-01-03 Tom Tromey <tom@tromey.com>
13169 * python/py-symtab.c (salpy_str): Update.
13170 (struct salpy_sal_object) <symtab>: Now a PyObject.
13171 (salpy_dealloc): Update.
13172 (del_objfile_sal): Use gdbpy_ref.
13174 2019-01-03 Tom Tromey <tom@tromey.com>
13176 * python/py-type.c (convert_field): Use new_reference. Return
13178 (make_fielditem): Return gdbpy_ref.
13179 (typy_fields): Update.
13180 (typy_getitem): Update.
13181 (field_name): Return gdbpy_ref. Use new_reference.
13182 (typy_iterator_iternext): Update.
13184 2019-01-03 Tom Tromey <tom@tromey.com>
13186 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
13188 2019-01-03 Tom Tromey <tom@tromey.com>
13190 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
13191 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
13192 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
13193 (pspy_set_frame_filters, pspy_set_frame_unwinders)
13194 (pspy_set_type_printers): Likewise.
13195 * python/py-function.c (fnpy_init): Use gdbpy_ref.
13196 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
13197 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
13198 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
13199 (objfpy_set_type_printers): Likewise.
13201 2019-01-03 Tom Tromey <tom@tromey.com>
13203 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
13204 (gdbpy_print_stack): Use gdbpy_err_fetch.
13205 * python/python-internal.h (class gdbpy_err_fetch): New class.
13206 (class gdbpy_enter) <m_error_type, m_error_value,
13207 m_error_traceback>: Remove.
13208 <m_error>: New member.
13209 (gdbpy_exception_to_string): Don't declare.
13210 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
13211 * python/py-value.c (convert_value_from_python): Use
13213 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
13214 gdbpy_exception_to_string.
13215 (gdbpy_handle_exception): Use gdbpy_err_fetch.
13216 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
13219 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13221 * linux-nat.c (delete_lwp_cleanup): Delete.
13222 (struct lwp_deleter): New struct.
13223 (lwp_info_up): New typedef.
13224 (linux_nat_target::follow_fork): Delete cleanup, and make use of
13227 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13229 * linux-fork.c (class scoped_switch_fork_info): New class.
13230 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
13232 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13234 * valops.c (find_overload_match): Remove use of null_cleanup, and
13235 calls to do_cleanups.
13237 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13239 * compile/compile-cplus-types.c
13240 (compile_cplus_instance::decl_name): Handle changes to
13242 * cp-support.c (cp_func_name): Update header comment, update
13244 * cp-support.h (cp_func_name): Update return type in declaration.
13245 * valops.c (find_overload_match): Move temp_func local to top
13246 level of function and change its type. Use temp_func to hold and
13247 delete temporary string obtained from cp_func_name.
13249 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13251 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
13252 gdb::char_vector, remove cleanup, and update uses of `msg`.
13254 2019-01-03 Jim Wilson <jimw@sifive.com>
13256 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
13258 2019-01-02 Tom Tromey <tom@tromey.com>
13260 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
13261 (tdesc_parse_xml): Remove cleanups.
13262 * target-descriptions.h (make_cleanup_free_target_description):
13264 (target_desc_deleter): New struct.
13265 (target_desc_up): New typedef.
13266 * target-descriptions.c (target_desc_deleter::operator()): Rename
13267 from free_target_description.
13268 (make_cleanup_free_target_description): Remove.
13270 2019-01-02 Tom Tromey <tom@tromey.com>
13272 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
13273 constructor, destructor.
13274 (linespec_parser): Remove typedef.
13275 (~linespec_parser): Rename from linespec_parser_delete.
13276 (linespec_lex_to_end, linespec_complete_label)
13277 (linespec_complete): Update.
13278 (decode_line_full): Remove cleanups.
13279 (decode_line_1): Update.
13281 2019-01-02 Tom Tromey <tom@tromey.com>
13283 * python/python-internal.h (inferior_to_inferior_object): Change
13285 * python/py-exitedevent.c (create_exited_event_object): Update.
13286 * python/py-inferior.c (inferior_to_inferior_object): Return
13288 (python_new_inferior, python_inferior_deleted)
13289 (thread_to_thread_object, delete_thread_object)
13290 (build_inferior_list, gdbpy_selected_inferior): Update.
13291 * python/py-infthread.c (create_thread_object): Update. Also fail
13292 if inferior_to_inferior_object fails.
13294 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
13296 * inferior.h (class inferior) <displaced_step_state>: New field.
13297 * infrun.h (struct displaced_step_state): Move here from
13298 infrun.c. Initialize fields, add constructor.
13299 <inf>: Remove field.
13300 <reset>: New method.
13301 * infrun.c (struct displaced_step_inferior_state): Move to
13303 (displaced_step_inferior_states): Remove.
13304 (get_displaced_stepping_state): Adust.
13305 (displaced_step_in_progress_any_inferior): Adjust.
13306 (displaced_step_in_progress_thread): Adjust.
13307 (displaced_step_in_progress): Adjust.
13308 (add_displaced_stepping_state): Remove.
13309 (get_displaced_step_closure_by_addr): Adjust.
13310 (remove_displaced_stepping_state): Remove.
13311 (infrun_inferior_exit): Call displaced_step_state.reset.
13312 (use_displaced_stepping): Don't check for NULL.
13313 (displaced_step_prepare_throw): Call
13314 get_displaced_stepping_state.
13315 (displaced_step_fixup): Don't check for NULL.
13316 (prepare_for_detach): Don't check for NULL.
13318 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13320 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
13321 in case of call that did not complete.
13323 2019-01-02 Andrey Utkin <autkin@undo.io>
13325 * symfile.c (find_separate_debug_file): Fix search of debug files for
13328 2019-01-02 Tom Tromey <tom@tromey.com>
13330 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
13332 * python/py-frame.c (frapy_older): Remove cast.
13333 (frapy_newer): Likewise.
13334 * python/py-breakpoint.c (local_setattro): Remove cast.
13335 * python/py-arch.c (archpy_name): Remove local variable.
13336 * python/py-type.c (gdbpy_lookup_type): Remove cast.
13338 2019-01-02 Joel Brobecker <brobecker@adacore.com>
13340 * unittests/basic_string_view/element_access/char/empty.cc:
13341 Fix year range in copyright header.
13343 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
13345 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
13347 <operator==>: Update with for removed field.
13349 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
13350 <isa_features>: ...this.
13351 <abi_features>: New field.
13352 (riscv_isa_flen): Update comment.
13353 (riscv_abi_xlen): New declaration.
13354 (riscv_abi_flen): New declaration.
13355 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
13357 (riscv_abi_xlen): New function.
13358 (riscv_isa_flen): Update to get answer from isa_features.
13359 (riscv_abi_flen): New function.
13360 (riscv_has_fp_abi): Update to get answer from abi_features.
13361 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
13363 (riscv_call_info) <xlen, flen>: Update comment.
13364 (riscv_call_arg_struct): Remove invalid assertions
13365 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
13367 (riscv_gdbarch_init): Gather isa features and abi features
13368 separately, ensure both match on the gdbarch when reusing an old
13369 gdbarch. Relax an error check to allow 32-bit abi float to run on
13370 a target with 64-bit float hardware.
13372 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13374 * source.c (search_command_helper): Stop reverse search
13375 when line 1 has been searched.
13377 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13379 * record-full.c (record_full_base_target::close): Rewrite
13380 record_full_core_buf_list free logic.
13382 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13384 * break-catch-syscall.c (print_one_catch_syscall): xfree
13387 2019-01-01 Joel Brobecker <brobecker@adacore.com>
13389 * top.c (print_gdb_version): Update Copyright year in version
13392 2019-01-01 Joel Brobecker <brobecker@adacore.com>
13394 Update copyright year range in all GDB files.
13396 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
13398 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
13400 For older changes see ChangeLog-2018.
13406 version-control: never