1 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
3 * MAINTAINERS: Update my email address.
5 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
7 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
9 (build_type_psymtabs_reader): Update for std::vector.
10 (build_type_psymtab_dependencies): Likewise.
11 * dwarf2read.h: Remove use of DEF_VEC_P.
12 (typedef sig_type_ptr): Delete.
14 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
16 * btrace.c (btrace_maint_clear): Update to handle change from VEC
18 (btrace_maint_decode_pt): Likewise, and move allocation of the
19 vector outside of the loop.
20 (btrace_maint_update_packets): Update to handle change from VEC to
22 (btrace_maint_print_packets): Likewise.
23 (maint_info_btrace_cmd): Likewise.
24 * btrace.h: Remove use of DEF_VEC_O.
25 (typedef btrace_pt_packet_s): Delete.
26 (struct btrace_maint_info) <packets>: Change fromm VEC to
28 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
30 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
32 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
33 make accesses into the vector constant references.
34 (btrace_add_pc): Update for std::vector.
35 (btrace_stitch_bts): Likewise.
36 (parse_xml_btrace_block): Likewise.
37 (btrace_maint_update_packets): Likewise.
38 (btrace_maint_print_packets): Likewise.
39 (maint_info_btrace_cmd): Likewise.
40 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
42 (btrace_data::empty): Likewise.
43 (btrace_data_append): Likewise.
44 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
45 (typedef btrace_block_s): Delete.
46 (struct btrace_block): Add constructor.
47 (struct btrace_data_bts) <blocks>: Change to std::vector.
48 * nat/linux-btrace.c (perf_event_read_bts): Update for
50 (linux_read_bts): Likewise.
52 2019-10-01 Tom Tromey <tom@tromey.com>
54 * cli/cli-logging.c (show_logging_filename): Use styled_string.
56 2019-10-01 Tom Tromey <tom@tromey.com>
58 * stack.c (print_frame, info_frame_command_core): Use
60 * linux-thread-db.c (try_thread_db_load_1)
61 (try_thread_db_load_from_pdir_1): Use styled_string.
62 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
63 (auto_load_section_scripts, info_auto_load_local_gdbinit)
64 (maybe_print_unsupported_script_warning)
65 (maybe_print_script_not_found_warning): Use styled_string.
66 * ada-lang.c (user_select_syms): Use styled_string.
68 2019-10-01 Tom Tromey <tom@tromey.com>
70 * p-lang.c (pascal_printstr): Use metadata style.
71 * value.c (show_convenience): Use metadata style.
72 * valprint.c (valprint_check_validity, val_print_optimized_out)
73 (val_print_not_saved, val_print_unavailable)
74 (val_print_invalid_address, generic_val_print, val_print)
75 (value_check_printable, val_print_array_elements): Use metadata
77 * ui-out.h (class ui_out) <field_fmt>: New overload.
78 <do_field_fmt>: Add style parameter.
79 * ui-out.c (ui_out::field_fmt): New overload.
80 * typeprint.c (type_print_unknown_return_type)
81 (val_print_not_allocated, val_print_not_associated): Use metadata
83 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
85 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
86 * tracepoint.c (tvariables_info_1): Use metadata style.
87 * stack.c (print_frame_arg, print_frame_info, print_frame)
88 (info_frame_command_core): Use metadata style.
89 * skip.c (info_skip_command): Use metadata style.
90 * rust-lang.c (rust_print_enum): Use metadata style.
91 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
93 * python/py-framefilter.c (py_print_single_arg): Use metadata
95 * printcmd.c (do_one_display, print_variable_and_value): Use
97 * p-valprint.c (pascal_val_print)
98 (pascal_object_print_value_fields): Use metadata style.
99 * p-typeprint.c (pascal_type_print_base): Use metadata style.
100 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
102 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
103 * m2-valprint.c (m2_print_long_set): Use metadata style.
104 * m2-typeprint.c (m2_print_type): Use metadata style.
105 * infcmd.c (print_return_value_1): Use metadata style.
106 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
107 * f-valprint.c (info_common_command_for_block): Use metadata
109 * f-typeprint.c (f_type_print_base): Use metadata style.
110 * expprint.c (print_subexp_standard): Use metadata style.
111 * cp-valprint.c (cp_print_value_fields): Use metadata style.
112 * cli/cli-style.h (class cli_style_option): Add constructor.
113 (metadata_style): Declare.
114 * cli/cli-style.c (metadata_style): New global.
115 (_initialize_cli_style): Register metadata style.
116 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
118 * cli-out.c (cli_ui_out::do_field_fmt): Update.
119 * c-typeprint.c (c_type_print_base_struct_union)
120 (c_type_print_base_1): Use metadata style.
121 * breakpoint.c (watchpoint_value_print)
122 (print_one_breakpoint_location): Use metadata style.
123 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
125 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
127 * ada-valprint.c (val_print_packed_array_elements, printstr)
128 (print_field_values, ada_val_print_ref, ada_val_print): Use
130 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
132 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
134 * ada-lang.c (user_select_syms): Use metadata style.
136 2019-10-01 Tom Tromey <tom@tromey.com>
138 * cli/cli-cmds.c (pwd_command): Style output.
140 2019-10-01 Pedro Alves <palves@redhat.com>
141 Tom Tromey <tom@tromey.com>
143 * symtab.c (print_symbol_info): Use %ps.
144 (print_msymbol_info): Use %ps.
145 * symfile.c (symbol_file_add_with_addrs): Use %ps.
146 * printcmd.c (print_variable_and_value): Use %ps.
147 * macrocmd.c (show_pp_source_pos): Use %ps.
148 * infrun.c (print_exited_reason): Use ui_out::message.
149 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
150 (describe_other_breakpoints): Use ui_out::message and new
152 (say_where): Use new formats.
153 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
156 2019-10-01 Pedro Alves <palves@redhat.com>
157 Tom Tromey <tom@tromey.com>
159 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
160 (test_gdb_formats): New function.
161 (run_tests): Call it.
162 (test_format_specifier): Update.
163 * utils.h (fputs_filtered): Update comment.
164 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
165 (fputs_styled_unfiltered): Declare.
166 * utils.c (fputs_styled_unfiltered): New function.
167 (vfprintf_maybe_filtered): Add gdbfmt parameter.
168 (vfprintf_filtered): Update.
169 (vfprintf_unfiltered, vprintf_filtered): Update.
170 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
171 * ui-out.h (enum ui_out_flag) <unfiltered_output,
172 disallow_ui_out_field>: New constants.
173 (enum class field_kind): New.
174 (struct base_field_s, struct signed_field_s): New.
175 (signed_field): New function.
176 (struct string_field_s): New.
177 (string_field): New function.
178 (struct styled_string_s): New.
179 (styled_string): New function.
180 (class ui_out) <message>: Add comment.
181 <vmessage, call_do_message>: New methods.
182 <do_message>: Add style parameter.
183 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
185 (ui_out::message): Rewrite.
186 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
188 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
189 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
190 gdb_extensions parameter.
191 (class format_piece): Add parameter to constructor.
192 (n_int_args): New field.
193 * gdbsupport/format.c (format_pieces::format_pieces): Add
194 gdb_extensions parameter. Handle '*'.
195 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
196 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
197 vfprintf_styled_no_gdbfmt.
198 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
199 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
201 * ui-style.h (struct ui_file_style) <ptr>: New method.
203 2019-10-01 Tom Tromey <tom@tromey.com>
205 * unittests/format_pieces-selftests.c: Update. Add final format.
206 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
207 empty literal pieces.
209 2019-10-01 Tom Tromey <tom@tromey.com>
211 * ui-out.h (enum class ui_out_style_kind): Remove.
212 (class ui_out) <field_string, field_stsream, do_field_string>:
213 Change type of "style".
214 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
215 (ui_out::field_string): Update.
216 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
218 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
219 * tracepoint.c (print_one_static_tracepoint_marker): Update.
220 * stack.c (print_frame_arg, print_frame_info, print_frame):
222 * source.c (print_source_lines_base): Update.
223 * solib.c (info_sharedlibrary_command): Update.
224 * skip.c (info_skip_command): Update.
225 * record-btrace.c (btrace_call_history_src_line)
226 (btrace_call_history): Update.
227 * python/py-framefilter.c (py_print_frame): Update.
228 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
230 * mi/mi-out.c (mi_ui_out::do_table_header)
231 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
232 (mi_ui_out::do_field_string): Update.
233 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
235 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
237 * cli-out.c (cli_ui_out::do_table_header)
238 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
239 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
240 (cli_ui_out::do_field_fmt): Update.
241 * breakpoint.c (print_breakpoint_location): Update.
242 (update_static_tracepoint): Update.
244 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
246 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
247 conversion of gdb_datadir.
248 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
249 remove not needed c_str ().
251 2019-09-30 Ali Tamur <tamur@google.com>
253 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
254 (dwarf2_string_attr): Likewise.
256 2019-09-30 Ali Tamur <tamur@google.com>
258 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
259 (process_full_type_unit): Likewise.
260 (dump_die_shallow): Likewise.
261 (cu_debug_loc_section): Likewise.
263 2019-09-28 Christian Biesinger <cbiesinger@google.com>
265 * minsyms.c (compare_minimal_symbols): Rename to...
266 (minimal_symbol_is_less_than): ...this, and adjust to STL
267 conventions (return bool, take arguments as references)
268 (minimal_symbol_reader::install): Call std::sort instead
271 2019-09-29 Christian Biesinger <cbiesinger@google.com>
273 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
275 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
276 msymbol_hash, msymbol_demangled_hash>: Improve comments.
278 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
280 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
281 * psympriv.h (add_psymbol_to_list): Move comment here and update
284 2019-09-29 Tom de Vries <tdevries@suse.de>
286 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
287 Use $tmpdir/$(basename "$output_file").dwz instead of
288 "${output_file}.dwz".
290 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
293 * hppa-linux-nat.c: Include gdbarch.h.
295 2019-09-26 Christian Biesinger <cbiesinger@google.com>
297 * blockframe.c (find_pc_partial_function): Change return type to bool.
298 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
299 * minsyms.c (in_gnu_ifunc_stub): Likewise.
300 (stub_gnu_ifunc_resolve_name): Likewise.
301 * symtab.c (compare_filenames_for_search): Likewise.
302 (compare_glob_filenames_for_search): Likewise.
303 (matching_obj_sections): Likewise.
304 (symbol_matches_domain): Likewise.
305 (find_line_symtab): Change out param EXACT_MATCH to bool *.
306 (find_line_pc): Change return type to bool.
307 (find_line_pc_range): Likewise.
308 (producer_is_realview): Likewise.
309 * symtab.h (symbol_matches_domain): Likewise.
310 (find_pc_partial_function): Likewise.
311 (find_pc_line_pc_range): Likewise.
312 (in_gnu_ifunc_stub): Likewise.
313 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
314 (find_line_pc): Likewise.
315 (find_line_pc_range): Likewise.
316 (matching_obj_sections): Likewise.
317 (find_line_symtab): Change out parameter to bool.
318 (producer_is_realview): Change return type to bool.
319 (compare_filenames_for_search): Likewise.
320 (compare_glob_filenames_for_search): Likewise.
322 2019-09-26 Tom Tromey <tom@tromey.com>
324 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
325 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
326 * gdb_usleep.h: Remove.
327 * gdb_usleep.c: Remove.
328 * utils.c: Don't include gdb_usleep.h.
330 2019-09-26 Tom Tromey <tromey@adacore.com>
332 * python/py-type.c (type_to_type_object): Call check_typedef
335 2019-09-26 Tom Tromey <tom@tromey.com>
337 * utils.h (initialize_utils): Don't declare.
338 * top.c (gdb_init): Don't call initialize_utils.
339 * utils.c (initialize_utils): Remove. Move contents...
340 (_initialize_utils): ... here.
342 2019-09-25 Tom Tromey <tom@tromey.com>
344 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
345 * utils.h (make_hex_string): Don't declare.
346 * utils.c (make_hex_string): Remove.
348 2019-09-24 Tom de Vries <tdevries@suse.de>
351 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
352 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
354 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
356 * NEWS: Mention new simulator port for PRU.
358 2019-09-23 Christian Biesinger <cbiesinger@google.com>
360 * ada-exp.y (write_object_remaining): Update.
361 * ada-lang.c (ada_decode): Return a std::string instead of a char*
362 and eliminate the static buffer.
363 (ada_decode_symbol): Update.
364 (ada_la_decode): Update.
365 (ada_sniff_from_mangled_name): Update.
366 (is_valid_name_for_wild_match): Update.
367 (ada_lookup_name_info::matches): Update and simplify.
368 (name_matches_regex): Update.
369 (ada_add_global_exceptions): Update.
370 * ada-lang.h (ada_decode): Update signature.
371 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
372 * dwarf-index-write.c (debug_names::insert): Update.
374 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
376 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
379 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
381 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
382 Change "nonzero" to "true" in documentation.
384 2019-09-20 Christian Biesinger <cbiesinger@google.com>
386 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
387 (_initialize_darwin_solib): Don't set
388 darwin_so_ops.lookup_lib_global_symbol.
389 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
390 set_gdbarch_iterate_over_objfiles_in_search_order.
391 (elf_lookup_lib_symbol): Rename to...
392 (svr4_iterate_over_objfiles_in_search_order): this, and update
393 to iterate semantics.
394 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
395 * solib.c (solib_global_lookup): Remove.
396 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
397 (solib_global_lookup): Remove.
398 * symtab.c (lookup_global_or_static_symbol): Remove call to
401 2019-09-20 Joel Brobecker <brobecker@adacore.com>
403 * NEWS: Move entries about default MI version now being
404 version 3, and about the GDB/MI fix for multi-location
405 breakpoints to the "since GDB 8.3" section.
407 2019-09-20 Joel Brobecker <brobecker@adacore.com>
411 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
413 * NEWS: Mention that Cell/B.E. debugging support was removed.
414 * MAINTAINERS: Remove spu target.
416 * config/djgpp/fnchange.lst: Remove entries for removed files.
418 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
419 spu-multiarch.o, and spu-tdep.o.
420 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
421 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
422 spu-multiarch.c, and spu-tdep.c.
423 * spu-linux-nat.c: Remove file.
424 * spu-multiarch.c: Remove file.
425 * spu-tdep.c: Remove file.
426 * spu-tdep.h: Remove file.
427 * solib-spu.c: Remove file.
428 * solib-spu.h: Remove file.
430 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
431 * configure.nat (spu-linux): Remove.
432 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
433 solib-multiarch.o from gdb_target_obs.
436 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
438 (ppc_linux_no_features): Update.
439 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
441 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
442 (tdesc_powerpc_cell64l): Likewise.
443 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
444 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
446 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
447 Do not include "features/rs6000/powerpc-cell32l.c" or
448 "features/rs6000/powerpc-cell64l.c".
449 (ppc_linux_spu_section): Remove.
450 (ppc_linux_core_read_description): Remove Cell/B.E. support.
451 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
452 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
453 (ppc_linux_spe_context_lookup): Remove.
454 (ppc_linux_spe_context_inferior_created): Remove.
455 (ppc_linux_spe_context_solib_loaded): Remove.
456 (ppc_linux_spe_context_solib_unloaded): Remove.
457 (ppc_linux_spe_context): Remove.
458 (struct ppu2spu_cache): Remove.
459 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
460 (struct ppu2spu_data): Remove.
461 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
462 ppu2spu_unwind): Remove.
463 (ppc_linux_init_abi): Remove Cell/B.E. support.
464 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
466 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
467 (rs6000/powerpc-cell64l-expedite): Likewise
468 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
469 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
470 rs6000/powerpc-cell64l.xml.
471 * features/rs6000/powerpc-cell32l.xml: Remove.
472 * features/rs6000/powerpc-cell64l.xml: Likewise.
473 * features/rs6000/powerpc-cell32l.c: Remove generated file.
474 * features/rs6000/powerpc-cell64l.c: Likewise.
475 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
476 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
477 * regformats/reg-spu.dat: Remove.
479 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
480 * corelow.c (struct spuid_list): Remove.
481 (add_to_spuid_list): Remove.
482 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
483 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
484 (remote_protocol_features): Remove associated entries.
485 (_initialize_remote): No longer initialize them.
486 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
487 * linux-nat.c (SPUFS_MAGIC): Remove.
488 (linux_proc_xfer_spu): Remove.
489 (spu_enumerate_spu_ids): Remove.
490 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
491 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
492 (linux_make_corefile_notes): No longer call it.
494 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
495 (cooked_write_test): Likewise.
497 2019-09-20 Tom Tromey <tom@tromey.com>
499 * NEWS: Mention case-sensitivity of TUI commands.
500 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
501 (tui_set_win_height_command, parse_scrolling_args): Likewise.
502 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
504 2019-09-20 Tom Tromey <tom@tromey.com>
506 * tui/tui-source.c (tui_source_window::set_contents): Use
508 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
511 2019-09-20 Tom Tromey <tom@tromey.com>
513 * tui/tui-data.c: Remove separator comments.
514 * tui/tui-layout.c: Remove separator comments.
515 * tui/tui-win.c: Remove separator comments.
516 * tui/tui-wingeneral.c: Remove separator comments.
518 2019-09-20 Tom Tromey <tom@tromey.com>
520 * tui/tui.h (strcat_to_buf): Don't declare.
521 * tui/tui.c (strcat_to_buf): Remove.
523 2019-09-20 Tom Tromey <tom@tromey.com>
525 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
527 * tui/tui-source.c (tui_source_window::set_contents)
528 (tui_source_window::location_matches_p)
529 (tui_source_window::maybe_update): Update.
531 2019-09-20 Tom Tromey <tom@tromey.com>
533 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
535 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
537 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
538 (tui_data_window::line_from_reg_element_no)
539 (tui_data_window::first_reg_element_no_inline)
540 (tui_data_window::show_registers)
541 (tui_data_window::show_register_group)
542 (tui_data_window::display_registers_from)
543 (tui_data_window::display_registers_from_line)
544 (tui_data_window::first_data_item_displayed)
545 (tui_data_window::delete_data_content_windows)
546 (tui_data_window::erase_data_content)
547 (tui_data_window::do_scroll_vertical)
548 (tui_data_window::refresh_window)
549 (tui_data_window::check_register_values): Update.
551 2019-09-20 Tom Tromey <tom@tromey.com>
553 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
554 (struct tui_locator_window) <full_name, proc_name>: Now
556 * tui/tui-stack.c (tui_locator_window::make_status_line)
557 (tui_locator_window::set_locator_fullname)
558 (tui_locator_window::set_locator_info): Update.
559 * tui/tui-source.c (tui_source_window::set_contents)
560 (tui_source_window::showing_source_p): Update.
562 2019-09-20 Tom Tromey <tom@tromey.com>
564 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
565 Don't call tui_locator_win_info_ptr.
567 2019-09-20 Tom Tromey <tom@tromey.com>
569 * tui/tui-win.c (tui_resize_all): Don't call refresh.
571 2019-09-20 Tom Tromey <tom@tromey.com>
573 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
575 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
576 * tui/tui-layout.c (show_source_disasm_command, show_data)
577 (show_source_or_disasm_and_command): Use 1 as height for locator.
579 2019-09-20 Tom Tromey <tom@tromey.com>
581 * tui/tui.c (tui_enable): Update.
582 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
584 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
586 * tui/tui-data.c (win_resized): Now bool.
587 (tui_win_resized): Return bool.
588 (tui_set_win_resized_to): Accept a bool.
590 2019-09-20 Tom Tromey <tom@tromey.com>
592 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
593 Change type of "refresh_values_only".
594 * tui/tui-regs.c (tui_data_window::show_register_group): Change
595 type of "refresh_values_only".
597 2019-09-20 Tom Tromey <tom@tromey.com>
599 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
601 (tui_disassemble): Add "pos" parameter.
602 (tui_disasm_window::set_contents): Simplify.
604 2019-09-20 Tom Tromey <tom@tromey.com>
606 * tui/tui-winsource.h (struct tui_source_window_base)
607 <show_source_content>: Now private.
608 * tui/tui-winsource.c
609 (tui_source_window_base::show_source_content): Don't handle empty
612 2019-09-20 Tom Tromey <tom@tromey.com>
614 * tui/tui-layout.c (show_source_disasm_command)
615 (show_source_or_disasm_and_command): Don't call
618 2019-09-20 Tom Tromey <tom@tromey.com>
620 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
622 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
623 from tui_make_status_line.
624 (tui_locator_window::rerender): Update.
626 2019-09-20 Tom Tromey <tom@tromey.com>
628 * tui/tui-stack.c (tui_make_status_line): Return std::string.
629 (tui_locator_window::rerender): Update.
631 2019-09-20 Tom Tromey <tom@tromey.com>
633 * tui/tui-winsource.h (struct tui_source_window_base)
634 <~tui_source_window_base>: Don't declare.
636 * tui/tui-winsource.c (~tui_source_window_base): Remove.
637 * tui/tui-source.h (struct tui_source_window) <fullname>: New
639 * tui/tui-source.c (tui_source_window::set_contents): Update.
640 (tui_source_window::location_matches_p)
641 (tui_source_window::maybe_update): Update.
643 2019-09-20 Tom Tromey <tom@tromey.com>
645 * tui/tui-winsource.h (~tui_source_element): Remove.
646 (tui_source_element): Update.
647 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
648 * tui/tui-winsource.c (tui_show_source_line): Update.
649 * tui/tui-source.c (tui_source_window::set_contents): Update.
650 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
652 2019-09-20 Tom Tromey <tom@tromey.com>
654 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
656 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
657 tui_clear_source_windows_detail.
658 * tui/tui-winsource.h (struct tui_source_window_base)
659 <clear_detail>: Don't declare.
660 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
662 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
664 2019-09-20 Tom Tromey <tromey@adacore.com>
667 * block.c (contained_in): Fix final return value.
669 2019-09-20 Alan Modra <amodra@gmail.com>
671 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
672 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
673 (read_indirect_string_from_dwz): Use bfd accessor.
674 * dwarf2read.h (struct dwz_file <filename>): Likewise.
675 * machoread.c (macho_symfile_read_all_oso): Likewise.
676 * solib.c (solib_bfd_open): Likewise.
678 2019-09-19 Christian Biesinger <cbiesinger@google.com>
680 * eval.c: Move declaration of overload_resolution to...
683 2019-09-19 Christian Biesinger <cbiesinger@google.com>
685 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
686 * arm-linux-tdep.c: Likewise.
687 * arm-nbsd-nat.c: Likewise.
688 * arm-tdep.h: Declare arm_apcs_32.
689 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
691 2019-09-19 Christian Biesinger <cbiesinger@google.com>
693 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
694 * dwarf2read.h: Declare dwarf_always_disassemble.
696 2019-09-19 Tom de Vries <tdevries@suse.de>
699 * source-cache.c (source_cache::ensure): Catch exception thrown during
700 construction of the highlighter.
702 2019-09-18 Alan Modra <amodra@gmail.com>
704 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
705 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
706 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
707 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
708 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
709 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
710 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
711 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
712 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
713 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
714 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
715 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
716 * solib-spu.c, * solib-svr4.c, * solib-target.c,
717 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
718 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
719 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
720 * mi/mi-interp.c: Update throughout for bfd section macro and
722 * gcore (gcore_create_callback): Use bfd_set_section_lma.
723 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
725 2019-09-18 Tom Tromey <tom@tromey.com>
728 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
730 (tui_enable): Do not call rl_initialize.
732 2019-09-18 Christian Groessler <chris@groessler.org>
734 * alpha-linux-nat.c: Include gdbarch.h.
736 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
738 * ui-file.c: Include cli/cli-style.h.
739 (term_cli_styling): Remove cli_styling declaration.
741 2019-09-18 Alan Modra <amodra@gmail.com>
743 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
744 to bfd_asymbol_section.
746 2019-09-18 Alan Modra <amodra@gmail.com>
748 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
749 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
750 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
752 2019-09-18 Alan Modra <amodra@gmail.com>
754 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
755 * spu-linux-nat.c (spu_bfd_open): Likewise.
757 2019-09-18 Christian Biesinger <cbiesinger@google.com>
759 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
760 to bool to match definition in dwarf2read.c.
762 2019-09-17 Christian Biesinger <cbiesinger@google.com>
764 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
765 (print_signatures): Likewise.
766 (trust_pad_over_xvs): Likewise.
767 * arch/aarch64-insn.c (aarch64_debug): Likewise.
768 * arch/aarch64-insn.h (aarch64_debug): Likewise.
769 * arm-linux-nat.c (arm_apcs_32): Likewise.
770 * arm-linux-tdep.c (arm_apcs_32): Likewise.
771 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
772 * arm-tdep.c (arm_debug): Likewise.
773 (arm_apcs_32): Likewise.
774 * auto-load.c (debug_auto_load): Likewise.
775 (auto_load_gdb_scripts): Likewise.
776 (global_auto_load): Likewise.
777 (auto_load_local_gdbinit): Likewise.
778 (auto_load_local_gdbinit_loaded): Likewise.
779 * auto-load.h (global_auto_load): Likewise.
780 (auto_load_local_gdbinit): Likewise.
781 (auto_load_local_gdbinit_loaded): Likewise.
782 * breakpoint.c (disconnected_dprintf): Likewise.
783 (breakpoint_proceeded): Likewise.
784 (automatic_hardware_breakpoints): Likewise.
785 (always_inserted_mode): Likewise.
786 (target_exact_watchpoints): Likewise.
787 (_initialize_breakpoint): Update.
788 * breakpoint.h (target_exact_watchpoints): Change to bool.
789 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
790 * cli/cli-cmds.c (trace_commands): Likewise.
791 * cli/cli-cmds.h (trace_commands): Likewise.
792 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
794 * cli/cli-logging.c (logging_overwrite): Change to bool.
795 (logging_redirect): Likewise.
796 (debug_redirect): Likewise.
797 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
798 (struct boolean_option_def) <get_var_address_cb_>: Change return type
800 <boolean_option_def>: Update.
801 (struct flag_option_def): Change default type of Context to bool
803 <flag_option_def>: Change return type of var_address_cb_ to bool*.
804 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
805 (get_setshow_command_value_string): Likewise.
806 * cli/cli-style.c (cli_styling): Change to bool.
807 (source_styling): Likewise.
808 * cli/cli-style.h (source_styling): Likewise.
809 (cli_styling): Likewise.
810 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
812 * command.h (var_types): Update comment.
813 (add_setshow_boolean_cmd): Change int* var argument to bool*.
814 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
816 (debug_compile_cplus_scopes): Likewise.
817 * compile/compile-internal.h (compile_debug): Likewise.
818 * compile/compile.c (compile_debug): Likewise.
819 (struct compile_options) <raw>: Likewise.
820 * cp-support.c (catch_demangler_crashes): Likewise.
821 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
822 (usr_cmd_cris_dwarf2_cfi): Likewise.
823 * csky-tdep.c (csky_debug): Likewise.
824 * darwin-nat.c (enable_mach_exceptions): Likewise.
825 * dcache.c (dcache_enabled_p): Likewise.
826 * defs.h (info_verbose): Likewise.
827 * demangle.c (demangle): Likewise.
828 (asm_demangle): Likewise.
829 * dwarf-index-cache.c (debug_index_cache): Likewise.
830 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
831 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
832 * dwarf2read.c (check_physname): Likewise.
833 (use_deprecated_index_sections): Likewise.
834 (dwarf_always_disassemble): Likewise.
835 * eval.c (overload_resolution): Likewise.
836 * event-top.c (set_editing_cmd_var): Likewise.
837 (exec_done_display_p): Likewise.
838 * event-top.h (set_editing_cmd_var): Likewise.
839 (exec_done_display_p): Likewise.
840 * exec.c (write_files): Likewise.
841 * fbsd-nat.c (debug_fbsd_lwp): Likewise
842 (debug_fbsd_nat): Likewise.
843 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
845 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
846 <backtrace_past_entry> Likewise.
847 * gdb-demangle.h (demangle): Likewise.
848 (asm_demangle): Likewise.
849 * gdb_bfd.c (bfd_sharing): Likewise.
850 * gdbcore.h (write_files): Likewise.
851 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
852 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
853 * gdbthread.h (print_thread_events): Likewise.
854 * gdbtypes.c (opaque_type_resolution): Likewise.
855 (strict_type_checking): Likewise.
856 * gnu-nat.c (gnu_debug_flag): Likewise.
857 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
858 * guile/scm-param.c (pascm_variable): Add boolval.
859 (add_setshow_generic): Update.
860 (pascm_param_value): Update.
861 (pascm_set_param_value_x): Update.
862 * hppa-tdep.c (hppa_debug): Change to bool..
863 * infcall.c (may_call_functions_p): Likewise.
864 (coerce_float_to_double_p): Likewise.
865 (unwind_on_signal_p): Likewise.
866 (unwind_on_terminating_exception_p): Likewise.
867 * infcmd.c (startup_with_shell): Likewise.
868 * inferior.c (print_inferior_events): Likewise.
869 * inferior.h (startup_with_shell): Likewise.
870 (print_inferior_events): Likewise.
871 * infrun.c (step_stop_if_no_debug): Likewise.
872 (detach_fork): Likewise.
873 (debug_displaced): Likewise.
874 (disable_randomization): Likewise.
875 (non_stop): Likewise.
876 (non_stop_1): Likewise.
877 (observer_mode): Likewise.
878 (observer_mode_1): Likewise.
879 (set_observer_mode): Update.
880 (sched_multi): Change to bool.
881 * infrun.h (debug_displaced): Likewise.
882 (sched_multi): Likewise.
883 (step_stop_if_no_debug): Likewise.
884 (non_stop): Likewise.
885 (disable_randomization): Likewise.
886 * linux-tdep.c (use_coredump_filter): Likewise.
887 (dump_excluded_mappings): Likewise.
888 * linux-thread-db.c (auto_load_thread_db): Likewise.
889 (check_thread_db_on_load): Likewise.
890 * main.c (captured_main_1): Update.
891 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
892 xx2_opt, boolean_opt>: Change to bool.
893 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
894 * maint.c (maintenance_profile_p): Likewise.
895 (per_command_time): Likewise.
896 (per_command_space): Likewise.
897 (per_command_symtab): Likewise.
898 * memattr.c (inaccessible_by_default): Likewise.
899 * mi/mi-main.c (mi_async): Likewise.
900 (mi_async_1): Likewise.
901 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
902 * nat/fork-inferior.h (startup_with_shell): Likewise.
903 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
904 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
905 * nios2-tdep.c (nios2_debug): Likewise.
906 * or1k-tdep.c (or1k_debug): Likewise.
907 * parse.c (parser_debug): Likewise.
908 * parser-defs.h (parser_debug): Likewise.
909 * printcmd.c (print_symbol_filename): Likewise.
910 * proc-api.c (procfs_trace): Likewise.
911 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
912 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
913 (set_parameter_value): Update.
914 (add_setshow_generic): Update.
915 * python/py-value.c (copy_py_bool_obj): Change argument from int*
917 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
919 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
920 * record-btrace.c (record_btrace_target::store_registers): Update.
921 * record-full.c (record_full_memory_query): Change to bool.
922 (record_full_stop_at_limit): Likewise.
923 * record-full.h (record_full_memory_query): Likewise.
924 * remote-notif.c (notif_debug): Likewise.
925 * remote-notif.h (notif_debug): Likewise.
926 * remote.c (use_range_stepping): Likewise.
927 (interrupt_on_connect): Likewise.
928 (remote_break): Likewise.
929 * ser-tcp.c (tcp_auto_retry): Likewise.
930 * ser-unix.c (serial_hwflow): Likewise.
931 * skip.c (debug_skip): Likewise.
932 * solib-aix.c (solib_aix_debug): Likewise.
933 * spu-tdep.c (spu_stop_on_load_p): Likewise.
934 (spu_auto_flush_cache_p): Likewise.
935 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
937 (struct info_print_options) <quiet>: Likewise.
938 * symfile-debug.c (debug_symfile): Likewise.
939 * symfile.c (auto_solib_add): Likewise.
940 (separate_debug_file_debug): Likewise.
941 * symfile.h (auto_solib_add): Likewise.
942 (separate_debug_file_debug): Likewise.
943 * symtab.c (basenames_may_differ): Likewise.
944 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
945 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
946 (struct info_types_options) <quiet>: Likewise.
947 * symtab.h (demangle): Likewise.
948 (basenames_may_differ): Likewise.
949 * target-dcache.c (stack_cache_enabled_1): Likewise.
950 (code_cache_enabled_1): Likewise.
951 * target.c (trust_readonly): Likewise.
952 (may_write_registers): Likewise.
953 (may_write_memory): Likewise.
954 (may_insert_breakpoints): Likewise.
955 (may_insert_tracepoints): Likewise.
956 (may_insert_fast_tracepoints): Likewise.
957 (may_stop): Likewise.
958 (auto_connect_native_target): Likewise.
959 (target_stop_and_wait): Update.
960 (target_async_permitted): Change to bool.
961 (target_async_permitted_1): Likewise.
962 (may_write_registers_1): Likewise.
963 (may_write_memory_1): Likewise.
964 (may_insert_breakpoints_1): Likewise.
965 (may_insert_tracepoints_1): Likewise.
966 (may_insert_fast_tracepoints_1): Likewise.
967 (may_stop_1): Likewise.
968 * target.h (target_async_permitted): Likewise.
969 (may_write_registers): Likewise.
970 (may_write_memory): Likewise.
971 (may_insert_breakpoints): Likewise.
972 (may_insert_tracepoints): Likewise.
973 (may_insert_fast_tracepoints): Likewise.
974 (may_stop): Likewise.
975 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
976 (make_thread_apply_all_options_def_group): Change argument from int*
978 (thread_apply_all_command): Update.
979 (print_thread_events): Change to bool.
980 * top.c (confirm): Likewise.
981 (command_editing_p): Likewise.
982 (history_expansion_p): Likewise.
983 (write_history_p): Likewise.
984 (info_verbose): Likewise.
985 * top.h (confirm): Likewise.
986 (history_expansion_p): Likewise.
987 * tracepoint.c (disconnected_tracing): Likewise.
988 (circular_trace_buffer): Likewise.
989 * typeprint.c (print_methods): Likewise.
990 (print_typedefs): Likewise.
991 * utils.c (debug_timestamp): Likewise.
992 (sevenbit_strings): Likewise.
993 (pagination_enabled): Likewise.
994 * utils.h (sevenbit_strings): Likewise.
995 (pagination_enabled): Likewise.
996 * valops.c (overload_resolution): Likewise.
997 * valprint.h (struct value_print_options) <prettyformat_arrays,
998 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
999 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
1000 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
1002 * windows-nat.c (new_console): Likewise.
1003 (cygwin_exceptions): Likewise.
1004 (new_group): Likewise.
1005 (debug_exec): Likewise.
1006 (debug_events): Likewise.
1007 (debug_memory): Likewise.
1008 (debug_exceptions): Likewise.
1009 (useshell): Likewise.
1010 * windows-tdep.c (maint_display_all_tib): Likewise.
1011 * xml-support.c (debug_xml): Likewise.
1013 2019-09-17 Mike Gulick <mgulick@mathworks.com>
1015 * source.c (prepare_path_for_appending): New function.
1016 (openp): Make use of new function.
1017 (find_and_open_source): Search for the compilation directory and
1018 source file as a relative path beneath the directory search path.
1020 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
1022 * source-cache.c (source_cache::get_line_charpos): Catch
1023 exceptions and return false, this matches the behaviour documented
1026 2019-09-17 Joel Brobecker <brobecker@adacore.com>
1028 * ada-tasks.c (info_task): Remove quoting of the task's name.
1030 2019-09-16 Christian Biesinger <cbiesinger@google.com>
1032 * symfile.c (auto_solib_add): Replace comment with a reference
1035 2019-09-14 Christian Biesinger <cbiesinger@google.com>
1037 * NEWS: Mention that gdb can now be compiled with Python 3
1040 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1042 * maint.c (maint_print_section_data::maint_print_section_data):
1043 Force use of 'float log10 (float)' by casting the argument to
1046 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1048 * maint.c: Add 'cmath' include.
1049 (struct maint_print_section_data): New structure.
1050 (print_section_index): New function.
1051 (print_bfd_section_info): Add header comment, small whitespace
1052 cleanup, and update to call new print_section_index function.
1053 (print_objfile_section_info): Likewise.
1054 (maint_obj_section_from_bfd_section): New function.
1055 (print_bfd_section_info_maybe_relocated): New function.
1056 (maintenance_info_sections): Add header comment, always use
1057 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
1059 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1061 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
1062 inner scope, add check that the objfile has psymtabs before
1063 checking psymtabs_addrmap.
1064 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
1066 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1068 * NEWS: Announce that Ada task names are now shown at more places,
1069 and between quotes (except in info task output).
1070 * gdb/ada-tasks.c (task_to_str): New function.
1071 (display_current_task_id): Call task_to_str.
1072 (task_command_1): Likewise.
1073 (print_ada_task_info): In non-mi mode, Properly align headers and data
1074 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
1076 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1078 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
1079 prstatus.pr_lwp.pr_info instead of making it up.
1081 2019-09-11 Christian Biesinger <cbiesinger@google.com>
1083 * auto-load.c (auto_load_expand_dir_vars): Update.
1084 * defs.h (gdb_datadir): Change to std::string.
1085 (python_libdir): Likewise.
1086 (relocate_gdb_directory): Change return type to std::string.
1087 * guile/guile.c (gdbscm_data_directory): Update.
1088 (initialize_scheme_side): Update.
1089 * jit.c (jit_reader_dir): Change to std::string.
1090 (jit_reader_load_command): Update.
1091 * main.c (gdb_datadir): Change to std::string.
1092 (python_libdir): Likewise.
1093 (set_gdb_data_directory): Update.
1094 (relocate_path): Change to return std::string.
1095 (relocate_gdb_directory): Change to return std::string.
1096 (relocate_gdbinit_path_maybe_in_datadir): Update.
1097 (captured_main_1): Update.
1098 * python/python.c (do_start_initialization): Update.
1099 * top.c (show_gdb_datadir): Update.
1100 * xml-syscall.c (xml_init_syscalls_info): Update.
1101 (init_syscalls_info): Update.
1103 2019-09-11 Christian Biesinger <cbiesinger@google.com>
1105 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
1106 out of get_init_files.
1107 (get_init_files): Update.
1109 2019-09-11 Christian Biesinger <cbiesinger@google.com>
1111 * main.c (get_init_files): Change to use std::string.
1112 (captured_main_1): Update.
1113 (print_gdb_help): Update.
1115 2019-09-11 Ali Tamur <tamur@google.com>
1117 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
1120 2019-09-11 Christian Biesinger <cbiesinger@google.com>
1122 * dbxread.c (read_dbx_symtab): Update.
1123 * dwarf2read.c (load_partial_dies): Update.
1124 * mdebugread.c (parse_partial_symbols): Update.
1125 (handle_psymbol_enumerators): Update.
1126 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
1127 * psymtab.c (add_psymbol_to_bcache): Likewise.
1128 (add_psymbol_to_list): Likewise.
1129 * symtab.c (symbol_set_names): Likewise.
1130 * symtab.h (symbol_set_names): Likewise.
1131 * xcoffread.c (scan_xcoff_symtab): Update.
1133 2019-09-11 Tom Tromey <tom@tromey.com>
1135 * symfile-mem.c (symbol_file_add_from_memory): Use
1137 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
1138 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
1140 2019-09-10 Tom Tromey <tromey@adacore.com>
1142 * dwarf-index-write.c (write_psymbols): Extend error message.
1143 (debug_names::insert): Add Ada code.
1144 (debug_names::write_psymbols): Remove Ada check.
1145 (debug_names) <m_string_obstack>: New member.
1146 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
1147 (gdb_index_symbol_name_matcher::matches): Remove.
1148 (mapped_index_base::find_name_components_bounds): Add "lang"
1150 (mapped_index_base::build_name_components): Also split names
1151 according to Ada syntax.
1152 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
1153 type of "match_callback".
1154 (check_match, check_find_bounds_finds)
1155 (dw2_expand_symtabs_matching): Update.
1156 (dw2_debug_names_iterator): Add new constructor.
1157 (dw2_debug_names_map_matching_symbols): New function.
1158 (dw2_debug_names_expand_symtabs_matching): Update.
1159 (dwarf2_debug_names_functions): Use
1160 dw2_debug_names_map_matching_symbols.
1162 2019-09-10 Tom Tromey <tromey@adacore.com>
1164 * dwarf2read.c (dw2_get_file_names_reader): Add the
1165 CU's file name to the results.
1167 2019-09-10 Tom Tromey <tromey@adacore.com>
1169 * ada-lang.c (add_nonlocal_symbols): Combine calls to
1170 map_matching_symbols. Update.
1171 * dwarf2read.c (dw2_map_matching_symbols): Update.
1172 * psymtab.c (match_partial_symbol): Change type; update.
1173 (psym_map_matching_symbols): Likewise.
1174 * symfile-debug.c (debug_qf_map_matching_symbols): Change
1176 * symfile.h (struct quick_symbol_functions)
1177 <map_matching_symbols>: Change "name" to be a lookup_name_info.
1180 2019-09-10 Tom Tromey <tromey@adacore.com>
1182 * psymtab.c (map_block): Remove.
1183 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
1184 * symtab.c (iterate_over_symbols_terminated): New function.
1185 * symtab.c (iterate_over_symbols_terminated): Declare.
1187 2019-09-10 Tom Tromey <tromey@adacore.com>
1189 * ada-lang.c (ada_iterate_over_symbols): Return bool.
1190 * language.h (struct language_defn) <la_iterate_over_symbols>:
1192 * symtab.c (iterate_over_symbols): Return bool.
1193 * symtab.h (iterate_over_symbols): Return bool.
1195 2019-09-10 Tom Tromey <tromey@adacore.com>
1197 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
1198 (add_nonlocal_symbols): Update.
1199 * dwarf2read.c (dw2_map_matching_symbols): Change type.
1200 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
1201 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
1202 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
1203 Change type of "callback". Remove "data".
1206 2019-09-09 Ali Tamur <tamur@google.com>
1208 * dwarf2read.c (comp_unit_head): Update comment.
1209 (dwarf2_dwo_name): New function declaration.
1210 (dwarf_unit_type_name): New function declaration.
1211 (read_comp_unit_head): Add support for new compilation units,
1212 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
1213 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
1214 (currently named as "signature") in their header. Also clarify error
1216 (lookup_dwo_id): New function. Returns the dwo id of the given
1218 (lookup_dwo_unit): Use the new lookup_dwo_id function.
1219 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
1221 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
1222 (dwarf2_dwo_name): Get the dwo name if present.
1223 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
1226 2019-09-09 Tom Tromey <tom@tromey.com>
1228 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
1230 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1232 * python/python.c (do_start_initialization): Make progname_copy static,
1233 to avoid a leak report.
1235 2019-09-08 Tom Tromey <tom@tromey.com>
1237 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
1239 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
1241 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
1242 Change type to gdb::optional<block_enum>.
1243 (dw2_symtab_iter_init): Change block_index parameter type
1244 to gdb::optional<block_enum>.
1245 (dw2_lookup_symbol): Change block_index parameter
1246 type to block_enum.c
1247 (dw2_debug_names_lookup_symbol): Likewise.
1248 * psymtab.c (psym_lookup_symbol): Likewise.
1249 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
1250 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
1253 2019-09-06 Christian Biesinger <cbiesinger@google.com>
1255 * defs.h (relocate_gdb_directory): Change int to bool in
1256 signature and rename flag to relocatable.
1257 * main.c (relocate_path): Likewise.
1258 (relocate_gdb_directory): Likewise.
1260 2019-09-06 Alan Modra <amodra@gmail.com>
1262 * coffread.c (coff_symfile_read): Constify filename variable.
1263 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
1264 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
1265 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
1266 * solib.c (reload_shared_libraries_1): Likewise.
1267 * symfile.c (reread_symbols): Likewise.
1268 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
1269 * solib-darwin.c (darwin_bfd_open): Likewise.
1270 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
1272 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1274 * psymtab.c (print_partial_symbols): Handle missing domain_enum
1275 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
1277 2019-09-03 Tom Tromey <tromey@adacore.com>
1279 * ada-valprint.c (ada_val_print_num): Don't recurse for range
1281 (has_negatives): Unbias a range type bound.
1282 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
1283 * gdbtypes.c (operator==): Handle new field.
1284 (create_range_type): Add "bias" parameter.
1285 (create_static_range_type, resolve_dynamic_range): Update.
1286 * gdbtypes.h (struct range_bounds) <bias>: New member.
1287 (create_range_type): Add bias parameter.
1288 * printcmd.c (print_scalar_formatted): Unbias range types.
1289 * value.c (unpack_long): Unbias range types.
1290 (pack_long): Bias range types.
1292 2019-09-02 Alan Hayward <alan.hayward@arm.com>
1294 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
1297 2019-09-02 Alan Hayward <alan.hayward@arm.com>
1299 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
1300 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
1301 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
1302 (compile_probe_arg): Likewise.
1303 * probe.h (get_argument_count): Likewise.
1304 * solib-svr4.c (solib_event_probe_action): Likewise.
1305 * stap-probe.c (stap_probe::get_argument_count): Likewise.
1307 2019-09-02 Alan Hayward <alan.hayward@arm.com>
1309 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
1311 (svr4_create_solib_event_breakpoints): ...from here.
1313 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
1315 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
1316 suffix from warning message.
1318 2019-08-30 Tom Tromey <tom@tromey.com>
1320 * tui/tui-winsource.h (struct tui_source_window_base)
1321 <refresh_all>: Don't declare.
1322 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
1324 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
1325 tui_show_locator_content.
1326 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
1328 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
1329 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
1332 2019-08-30 Tom Tromey <tom@tromey.com>
1334 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
1336 2019-08-30 Tom Tromey <tom@tromey.com>
1338 * tui/tui-stack.c (_initialize_tui_stack): Move later.
1339 Remove unnecessary forward declarations.
1341 2019-08-30 Tom Tromey <tom@tromey.com>
1343 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
1345 (tui_update_locator_fullname, tui_show_frame_info): Don't call
1346 tui_show_locator_content.
1348 2019-08-30 Tom Tromey <tom@tromey.com>
1350 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
1351 (tui_locator_window::rerender): Rewrite using body of previous
1352 tui_show_locator_content.
1354 2019-08-30 Tom Tromey <tom@tromey.com>
1356 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
1357 set_locator_fullname>: New methods.
1358 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
1359 Rename from tui_set_locator_fullname.
1360 (tui_locator_window::set_locator_info): Rename from
1361 tui_set_locator_info. Return bool.
1362 (tui_update_locator_fullname, tui_show_frame_info): Update.
1364 2019-08-30 Tom Tromey <tom@tromey.com>
1366 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
1368 2019-08-30 Tom Tromey <tom@tromey.com>
1370 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
1373 2019-08-30 Tom Tromey <tom@tromey.com>
1375 * tui/tui-wingeneral.c (box_win): Assume win_info and
1376 win_info->handle cannot be NULL.
1378 2019-08-30 Tom Tromey <tom@tromey.com>
1380 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
1381 refresh_window>: Declare.
1382 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
1384 (tui_data_item_window::rerender): Rename from
1385 tui_display_register.
1386 (tui_data_item_window::refresh_window): New method.
1387 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
1390 2019-08-30 Tom Tromey <tom@tromey.com>
1392 * tui/tui-regs.h (struct tui_data_window) <regs_content,
1393 regs_column_count, current_group>: Move later. Now private.
1394 <get_current_group>: New method.
1395 * tui/tui-regs.c (tui_reg_command): Update.
1396 * tui/tui-layout.c (tui_set_layout): Update.
1398 2019-08-30 Tom Tromey <tom@tromey.com>
1400 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
1401 (tui_data_window::rerender): Don't call
1402 check_and_display_highlight_if_needed.
1403 (tui_data_window::refresh_all): Remove call to
1406 2019-08-30 Tom Tromey <tom@tromey.com>
1408 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
1409 (tui_data_window::display_registers_from)
1410 (tui_data_window::display_reg_element_at_line)
1411 (tui_data_window::display_registers_from_line): Remove checks of
1414 2019-08-30 Tom Tromey <tom@tromey.com>
1416 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
1418 * tui/tui-regs.c (tui_data_window::show_registers): Call
1420 (tui_data_window::rerender): Rename from display_all_data.
1421 (tui_data_window::rerender): Remove old implementation.
1423 2019-08-30 Tom Tromey <tom@tromey.com>
1425 * tui/tui-regs.c (tui_data_window::display_all_data): Change
1427 * tui/tui-data.h (NO_DATA_STRING): Remove define.
1429 2019-08-29 Bernhard Wodok <barto@gmx.net>
1430 Sergio Durigan Junior <sergiodj@redhat.com>
1433 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
1435 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
1437 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
1438 when searching for types.
1440 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
1442 * f-lang.c (f_language_defn): Use f_print_typedef.
1443 * f-lang.h (f_print_typedef): Declare.
1444 * f-typeprint.c (f_print_typedef): Define.
1446 2019-08-27 Christian Biesinger <cbiesinger@google.com>
1448 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
1450 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
1452 * cli/cli-utils.c (info_print_options_defs): Delete.
1453 (make_info_print_options_def_group): Delete.
1454 (extract_info_print_options): Delete.
1455 (info_print_command_completer): Delete.
1456 (info_print_args_help): Add extra parameter, and optionally
1457 include text about -n flag.
1458 * cli/cli-utils.h (struct info_print_options): Delete.
1459 (extract_info_print_options): Delete declaration.
1460 (info_print_command_completer): Delete declaration.
1461 (info_print_args_help): Add extra parameter, extend header
1463 * python/python.c (gdbpy_rbreak): Pass additional parameter to
1465 * stack.c (struct info_print_options): New type.
1466 (info_print_options_defs): New file scoped variable.
1467 (make_info_print_options_def_group): New static function.
1468 (info_print_command_completer): New static function.
1469 (info_locals_command): Update to use new local functions.
1470 (info_args_command): Likewise.
1471 (_initialize_stack): Add extra parameter to calls to
1472 info_print_args_help.
1473 * symtab.c (search_symbols): Add extra parameter, use this to
1474 possibly excluse non-debug symbols.
1475 (symtab_symbol_info): Add extra parameter, which is passed on to
1477 (struct info_print_options): New type.
1478 (info_print_options_defs): New file scoped variable.
1479 (make_info_print_options_def_group): New static function.
1480 (info_print_command_completer): New static function.
1481 (info_variables_command): Update to use local functions, and pass
1482 extra parameter through to symtab_symbol_info.
1483 (info_functions_command): Likewise.
1484 (info_types_command): Pass additional argument through to
1486 (rbreak_command): Pass extra argument to search_symbols.
1487 (_initialize_symtab): Add extra arguments for calls to
1488 info_print_args_help, and update help text for 'info variables',
1489 'whereis', and 'info functions' commands.
1490 * symtab.h (search_symbols): Add extra argument to declaration.
1491 * NEWS: Mention new flags.
1493 2019-08-26 Christian Biesinger <cbiesinger@google.com>
1495 * symtab.c (lookup_static_symbol): Call the new function (and move
1496 it down to be next to lookup_global_symbol).
1497 (struct global_sym_lookup_data): Add block_enum member and rename to...
1498 (struct global_or_static_sym_lookup_data): ...this.
1499 (lookup_symbol_global_iterator_cb): Pass block_index instead of
1500 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
1501 (lookup_symbol_global_or_static_iterator_cb): ...this.
1502 (lookup_global_or_static_symbol): New function.
1503 (lookup_global_symbol): Call new function.
1505 2019-08-26 Tom de Vries <tdevries@suse.de>
1508 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
1509 when pc_probe.prob == NULL.
1511 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
1513 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
1514 variable symbol_linkage to symbol_linkage_.
1516 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
1518 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
1519 represent whether the symbol is static, dynamic, or we don't
1522 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
1524 * gdb/rx-tdep.c (rx_register_names): New.
1525 (rx_register_name): Delete.
1526 (rx_psw_type): Delete.
1527 (rx_fpsw_type): Delete.
1528 (rx_register_type): Delete.
1529 (rx_gdbarch_init): Convert target-descriptions.
1530 (_initialize_rx_tdep): Add initialize_tdesc_rx.
1531 * gdb/features/Makefile: Add rx.xml.
1532 * gdb/features/rx.xml: New.
1533 * gdb/features/rx.c: Generated.
1534 * gdb/NEWS: Mention target description support.
1536 2019-08-22 Christian Biesinger <cbiesinger@google.com>
1538 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
1541 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
1543 * configure.ac: Don't check for 'dlfcn.h' (moved to
1544 gdbsupport/common.m4).
1545 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
1547 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
1548 * compile/compile-c-support.c: Include
1549 'gdbsupport/gdb-dlfcn.h'.
1550 * gdbsupport/common.m4: Check for 'dlfcn.h'.
1551 * gdb-dlfcn.c: Move to...
1552 * gdbsupport/gdb-dlfcn.c: ... here.
1553 * gdb-dlfcn.h: Move to...
1554 * gdbsupport/gdb-dlfcn.h: ... here.
1556 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
1558 * nios2-tdep.c (struct reg_value): Improve comments. Make
1559 the offset field signed.
1561 2019-08-22 Christian Biesinger <cbiesinger@google.com>
1563 * python/lib/gdb/__init__.py (_execute_file): New function.
1564 * python/python.c (python_run_simple_file): Call gdb._execute_file
1567 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
1569 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
1570 all uses as this was never set to anything but a zero value.
1572 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
1574 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
1576 2019-08-21 Christian Biesinger <cbiesinger@google.com>
1578 * tui/tui-data.h (tui_gen_win_info): Add an =default
1579 move constructor, required by some GCC versions.
1581 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
1583 * go32-nat.c (go32_sysinfo): Add hygon_p.
1585 2019-08-20 Tom Tromey <tom@tromey.com>
1587 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
1588 line_from_reg_element_no, first_reg_element_no_inline,
1589 display_all_data, delete_data_content_windows,
1590 erase_data_content>: Now private.
1592 2019-08-20 Tom Tromey <tom@tromey.com>
1594 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
1595 (tui_unhighlight_win, tui_highlight_win)
1596 (tui_win_info::make_window): Update.
1597 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
1599 2019-08-20 Tom Tromey <tom@tromey.com>
1601 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
1602 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
1603 (MAX_PID_WIDTH): Move to tui-stack.c.
1604 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
1605 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
1606 (MAX_PID_WIDTH): Move from tui-data.h.
1608 2019-08-20 Tom Tromey <tom@tromey.com>
1610 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
1611 * tui/tui-wingeneral.c (box_win): Change type of win_info.
1613 (tui_gen_win_info::make_window): Rename from tui_make_window.
1614 (tui_win_info::make_window): New method.
1615 (tui_gen_win_info::make_visible): Update.
1616 * tui/tui-source.c (tui_source_window::set_contents): Update.
1617 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1618 (tui_data_window::display_registers_from): Update.
1619 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1620 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
1624 (struct tui_win_info) <make_window>: Declare.
1625 <can_box>: Now virtual.
1626 <title>: New member.
1627 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
1628 * tui/tui-command.c (tui_cmd_window::resize): Update.
1630 2019-08-20 Tom Tromey <tom@tromey.com>
1632 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
1633 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1634 (tui_data_window::check_register_values): Update.
1636 2019-08-20 Tom Tromey <tom@tromey.com>
1638 * tui/tui-regs.h (struct tui_data_window): Use
1639 DISABLE_COPY_AND_ASSIGN.
1640 <regs_content>: Change type, removing unique_ptr.
1641 <tui_data_window>: Add move constructor.
1642 * tui/tui-regs.c (tui_data_window::show_registers)
1643 (tui_data_window::show_register_group)
1644 (tui_data_window::display_registers_from)
1645 (tui_data_window::display_registers_from)
1646 (tui_data_window::first_data_item_displayed)
1647 (tui_data_window::delete_data_content_windows)
1648 (tui_data_window::rerender, tui_data_window::refresh_window)
1649 (tui_data_window::check_register_values): Update.
1651 2019-08-20 Tom Tromey <tom@tromey.com>
1653 * tui/tui-regs.h (struct tui_data_window) <show_registers,
1654 show_register_group>: Declare.
1655 (tui_show_register_group): Don't declare.
1656 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
1658 (tui_data_window::show_register_group): Rename from
1659 tui_show_register_group.
1660 (tui_data_window::check_register_values, tui_reg_command):
1662 * tui/tui-layout.c (tui_set_layout): Update.
1664 2019-08-20 Tom Tromey <tom@tromey.com>
1666 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
1668 (tui_check_register_values): Don't declare.
1669 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
1670 from tui_check_register_values.
1671 * tui/tui-hooks.c (tui_register_changed): Update.
1673 2019-08-20 Tom Tromey <tom@tromey.com>
1675 * tui/tui-regs.c (tui_reg_layout): Move later.
1676 (tui_show_registers): Don't enable TUI mode or change layout.
1678 2019-08-20 Tom Tromey <tom@tromey.com>
1680 * tui/tui-regs.h (struct tui_data_item_window)
1681 <~tui_data_item_window>: Remove.
1682 <content>: Now a unique_xmalloc_ptr.
1683 * tui/tui-regs.c (tui_register_format): Return a
1685 (tui_get_register): Update.
1686 (~tui_data_item_window): Remove.
1687 (tui_data_window::display_registers_from, tui_display_register):
1689 * tui/tui-io.h (tui_expand_tabs): Update.
1690 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
1691 Remove "col" parameter.
1693 2019-08-20 Tom Tromey <tom@tromey.com>
1695 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
1697 * tui/tui-regs.c (~tui_data_item_window): Update.
1699 2019-08-20 Tom Tromey <tom@tromey.com>
1701 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
1704 2019-08-20 Tom Tromey <tom@tromey.com>
1706 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
1708 2019-08-20 Tom Tromey <tom@tromey.com>
1710 * tui/tui-source.h (struct tui_source_window): Update.
1711 * tui/tui-regs.c (tui_show_registers): Update.
1712 * tui/tui-disasm.h (struct tui_disasm_window): Update.
1713 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
1714 (NO_REGS_STRING): Remove defines.
1716 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
1718 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
1719 unnecessary thread walk if remote doesn't support the packet.
1721 2019-08-19 Tom Tromey <tromey@adacore.com>
1723 * python/py-value.c (value_has_field): Fix indentation.
1725 2019-08-19 Tom Tromey <tromey@adacore.com>
1727 * printcmd.c (do_one_display, info_display_command): Update.
1728 * block.h (contained_in): Return bool. Add allow_nested
1730 * block.c (contained_in): Return bool. Add allow_nested
1733 2019-08-19 Tom Tromey <tom@tromey.com>
1735 * configure: Rebuild.
1736 * configure.ac: Disallow the combination of -static-libstdc++ and
1738 * source-cache.c (get_language_name): Handle rust.
1739 (source_cache::get_source_lines): Ignore highlighting exceptions.
1741 2019-08-16 Tom Tromey <tom@tromey.com>
1743 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
1744 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
1745 (struct tui_source_window_base) <make_visible, refresh_window,
1746 resize>: Remove methods.
1747 <execution_info>: Remove field.
1748 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
1749 (tui_show_source_line, tui_source_window_base)
1750 (~tui_source_window_base): Update.
1751 (tui_source_window_base::resize)
1752 (tui_source_window_base::make_visible)
1753 (tui_source_window_base::refresh_window): Remove.
1754 (tui_source_window_base::update_exec_info): Update.
1755 * tui/tui-source.c (tui_source_window::set_contents): Update.
1756 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1758 2019-08-16 Tom Tromey <tom@tromey.com>
1760 * tui/tui-hooks.c (tui_remove_hooks): Don't set
1761 deprecated_query_hook.
1763 2019-08-16 Tom Tromey <tom@tromey.com>
1765 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
1766 (tui_update_source_windows_with_line): Update.
1767 * tui/tui-source.h (struct tui_source_window)
1768 <show_symtab_source>: Declare.
1769 (tui_show_symtab_source): Don't declare.
1770 * tui/tui-source.c (tui_show_symtab_source): Rename from
1771 tui_show_symtab_source.
1773 2019-08-16 Tom Tromey <tom@tromey.com>
1775 * tui/tui-winsource.h (struct tui_source_window_base)
1776 <set_contents>: Declare.
1777 * tui/tui-winsource.c
1778 (tui_source_window_base::update_source_window_as_is): Update.
1779 * tui/tui-source.h (struct tui_source_window) <set_contents>:
1781 (tui_set_source_content): Don't declare.
1782 * tui/tui-source.c (tui_source_window::set_contents): Rename from
1783 tui_set_source_content.
1784 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
1786 (tui_set_disassem_content): Don't declare.
1787 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
1788 tui_set_disassem_content.
1790 2019-08-16 Tom Tromey <tom@tromey.com>
1792 * tui/tui-winsource.h (struct tui_source_window_base)
1793 <update_breakpoint_info>: Declare.
1794 (tui_update_breakpoint_info): Don't declare.
1795 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
1796 (tui_update_all_breakpoint_info): Update.
1797 (tui_source_window_base::update_breakpoint_info): Rename from
1798 tui_update_breakpoint_info.
1799 (tui_source_window_base::update_exec_info): Update.
1801 2019-08-16 Tom Tromey <tom@tromey.com>
1803 * tui/tui-winsource.h (struct tui_source_window_base)
1804 <update_source_window>: Declare.
1805 (tui_update_source_window): Don't declare.
1806 * tui/tui-winsource.c
1807 (tui_source_window_base::update_source_window): Rename from
1808 tui_update_source_window.
1809 (tui_source_window_base::rerender): Update.
1810 * tui/tui-source.c (tui_source_window::maybe_update): Update.
1811 * tui/tui-disasm.c (tui_show_disassem)
1812 (tui_show_disassem_and_update_source)
1813 (tui_disasm_window::maybe_update): Update.
1815 2019-08-16 Tom Tromey <tom@tromey.com>
1817 * tui/tui-winsource.h (struct tui_source_window_base)
1818 <update_source_window_as_is>: Declare.
1819 (tui_update_source_window_as_is): Don't declare.
1820 * tui/tui-winsource.c (tui_update_source_window): Update
1821 (tui_source_window_base::update_source_window_as_is): Rename from
1822 tui_update_source_window_as_is.
1823 (tui_source_window_base::refill): Update.
1824 * tui/tui-source.c (tui_show_symtab_source): Update.
1825 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
1828 2019-08-16 Tom Tromey <tom@tromey.com>
1830 * tui/tui-winsource.h (tui_update_source_window)
1831 (tui_update_source_window_as_is): Remove "noerror" parameter.
1832 * tui/tui-winsource.c (tui_update_source_window)
1833 (tui_update_source_window_as_is): Remove "noerror" parameter.
1834 (tui_update_source_windows_with_addr)
1835 (tui_update_source_windows_with_line)
1836 (tui_source_window_base::rerender)
1837 (tui_source_window_base::refill): Update.
1838 * tui/tui-source.h (tui_set_source_content)
1839 (tui_show_symtab_source): Remove "noerror" parameter.
1840 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
1842 (tui_show_symtab_source): Likewise.
1843 (tui_source_window::maybe_update): Update.
1844 * tui/tui-disasm.c (tui_show_disassem)
1845 (tui_show_disassem_and_update_source)
1846 (tui_disasm_window::do_scroll_vertical)
1847 (tui_disasm_window::maybe_update): Update.
1849 2019-08-16 Tom Tromey <tom@tromey.com>
1851 * tui/tui.c (tui_is_window_visible): Update.
1852 * tui/tui-wingeneral.c (tui_make_window)
1853 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
1854 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
1855 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
1856 (tui_set_win_height_command, parse_scrolling_args): Update.
1857 * tui/tui-source.c (tui_source_window::style_changed): Update.
1858 * tui/tui-regs.c (tui_show_registers)
1859 (tui_data_window::first_data_item_displayed)
1860 (tui_data_window::delete_data_content_windows)
1861 (tui_check_register_values, tui_reg_command): Update.
1862 * tui/tui-disasm.c (tui_show_disassem): Update.
1863 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
1865 <is_visible>: Remove field.
1866 * tui/tui-data.c (tui_next_win, tui_prev_win)
1867 (tui_delete_invisible_windows): Update.
1869 2019-08-16 Tom Tromey <tom@tromey.com>
1871 * tui/tui-winsource.h (struct tui_source_window_base)
1872 <m_has_locator>: Remove.
1873 * tui/tui-layout.c (show_source_disasm_command, show_data)
1874 (show_source_or_disasm_and_command): Update.
1876 2019-08-16 Alan Hayward <alan.hayward@arm.com>
1878 * NEWS (Other MI changes): New subsection.
1879 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
1880 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
1881 * arch-utils.c (default_get_pc_address_flags): New function.
1882 * arch-utils.h (default_get_pc_address_flags): New declaration.
1883 * gdbarch.sh: Add get_pc_address_flags.
1884 * gdbarch.c: Regenerate.
1885 * gdbarch.h: Likewise.
1886 * stack.c (print_pc): New function.
1887 (print_frame_info) (print_frame): Call print_pc.
1889 2019-08-16 Tom de Vries <tdevries@suse.de>
1891 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
1892 print_objfile_section_info.
1894 2019-08-15 Tom Tromey <tom@tromey.com>
1896 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
1897 calling update_cmdwin_start_line.
1898 * tui/tui-winsource.h (struct tui_source_window_base)
1899 <do_make_visible_with_new_height, set_new_height>: Don't declare.
1900 <rerender>: Declare.
1901 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
1903 (tui_source_window_base::set_new_height): Remove.
1904 (tui_source_window_base::rerender): Rename from
1905 do_make_visible_with_new_height.
1906 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
1908 (tui_win_info::make_invisible_and_set_new_height)
1909 (tui_win_info::make_visible_with_new_height): Remove.
1910 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
1912 * tui/tui-stack.c (tui_locator_window::rerender): New method.
1913 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
1914 do_make_visible_with_new_height>: Don't declare.
1915 <rerender>: Declare.
1916 * tui/tui-regs.c (tui_data_window::rerender): Rename from
1918 (tui_data_window::do_make_visible_with_new_height): Remove.
1919 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
1920 call tui_show_locator_content.
1921 (tui_gen_win_info::resize): Call rerender.
1922 (show_source_or_disasm_and_command): Don't call
1923 tui_show_locator_content.
1924 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
1926 (struct tui_win_info) <rerender>: Declare.
1927 <set_new_height, make_invisible_and_set_new_height,
1928 make_visible_with_new_height>: Don't declare.
1929 * tui/tui-data.c (tui_win_list::rerender): New method.
1930 * tui/tui-command.h (struct tui_cmd_window)
1931 <do_make_visible_with_new_height>: Don't declare.
1933 (tui_cmd_window::do_make_visible_with_new_height): Remove.
1935 2019-08-15 Tom Tromey <tromey@adacore.com>
1937 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
1938 * ada-lang.c (ada_enum_name): Likewise.
1940 2019-08-15 Christian Biesinger <cbiesinger@google.com>
1942 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
1944 (GdbOutputErrorFile): Likewise.
1945 (global scope): Adjust constructor calls to GdbOutput{,Error}File
1947 (execute_unwinders): Rename to have a leading underscore.
1948 (auto_load_packages): Likewise.
1949 (global scope): Adjust call to auto_load_packages accordingly.
1950 (GdbSetPythonDirectory): Likewise.
1951 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
1952 instead of execute_unwinders.
1954 2019-08-15 Tom Tromey <tom@tromey.com>
1956 * tui/tui-layout.c (show_layout, show_source_disasm_command)
1957 (show_data): Don't change window visibility.
1958 (tui_gen_win_info::resize): Remove special case for command
1959 window. Use wresize, when available.
1960 (show_source_or_disasm_and_command): Don't change window
1962 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
1963 <make_visible>: New method.
1964 * tui/tui-command.c (tui_cmd_window::resize): New method.
1966 2019-08-15 Tom Tromey <tom@tromey.com>
1968 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
1969 (struct tui_source_windows): New.
1970 * tui/tui-winsource.c (tui_display_main): Update.
1971 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
1972 (new_height_ok, parse_scrolling_args): Update.
1973 * tui/tui-layout.c (show_layout, show_data): Update.
1974 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
1975 (tui_add_to_source_windows): Don't declare.
1976 * tui/tui-data.c (source_windows, tui_source_windows)
1977 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
1979 2019-08-15 Tom Tromey <tom@tromey.com>
1981 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
1983 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
1984 * tui/tui-layout.c (show_source_disasm_command, show_data):
1986 (tui_gen_win_info::resize): Rename.
1987 (show_source_or_disasm_and_command): Update.
1988 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
1991 2019-08-15 Tom Tromey <tom@tromey.com>
1993 * tui/tui-stack.c (tui_initialize_static_data): Remove.
1994 * tui/tui-interp.c (tui_interp::init): Don't call
1995 tui_initialize_static_data.
1996 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
1998 2019-08-15 Tom Tromey <tom@tromey.com>
2000 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
2001 examine tui_win_list.
2003 2019-08-15 Tom Tromey <tom@tromey.com>
2005 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
2006 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
2007 tui_clear_source_content.
2008 (tui_clear_source_content): Remove.
2009 (tui_source_window_base::do_erase_source_content): Hoist call to
2011 * tui/tui-stack.c (tui_show_frame_info): Don't call
2012 tui_clear_source_content.
2014 2019-08-15 Tom Tromey <tom@tromey.com>
2016 * tui/tui-winsource.h (struct tui_source_window_base)
2017 <do_erase_source_content>: New method.
2018 <erase_source_content>: New method.
2019 (tui_erase_source_content): Don't declare.
2020 * tui/tui-winsource.c (tui_clear_source_content): Update.
2021 (tui_source_window_base::do_erase_source_content): Rename from
2022 tui_erase_source_content.
2023 (tui_source_window_base::show_source_content): Update.
2024 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2025 * tui/tui-source.h (struct tui_source_window)
2026 <erase_source_content>: New method.
2027 * tui/tui-disasm.h (struct tui_disasm_window)
2028 <erase_source_content>: New method.
2030 2019-08-15 Tom Tromey <tom@tromey.com>
2032 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
2033 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
2035 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
2036 * tui/tui-source.c (tui_set_source_content): Update.
2037 * tui/tui-disasm.c (tui_set_disassem_content): Update.
2039 2019-08-15 Tom Tromey <tom@tromey.com>
2041 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
2042 * tui/tui-winsource.c (tui_line_is_displayed): Move to
2044 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
2046 * tui/tui-source.c (tui_source_window::line_is_displayed): New
2048 (tui_source_window::maybe_update): Update.
2050 2019-08-15 Tom Tromey <tom@tromey.com>
2052 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
2053 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
2055 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
2057 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
2059 (tui_disasm_window::maybe_update): Update.
2061 2019-08-15 Tom Tromey <tom@tromey.com>
2063 * tui/tui-winsource.h (struct tui_source_window_base)
2064 <maybe_update>: Declare.
2065 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
2067 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
2069 * tui/tui-source.c (tui_source_window::maybe_update): New method.
2070 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
2072 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
2074 2019-08-15 Tom Tromey <tom@tromey.com>
2076 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
2078 2019-08-15 Tom Tromey <tom@tromey.com>
2080 * tui/tui-wingeneral.c: Include tui-stack.h.
2081 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
2082 (struct tui_locator_window): Move from tui-data.h.
2083 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
2084 (tui_initialize_static_data): Move from tui-data.c.
2085 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
2086 (struct tui_locator_window): Move to tui-stack.c.
2087 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
2088 (tui_initialize_static_data): Move to tui-stack.c.
2090 2019-08-15 Tom Tromey <tom@tromey.com>
2092 * tui/tui-layout.c (show_source_disasm_command)
2093 (show_source_or_disasm_and_command): Use make_visible method, not
2095 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
2098 2019-08-15 Tom Tromey <tom@tromey.com>
2100 * tui/tui-wingeneral.h (tui_make_window): Update.
2101 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
2103 (tui_gen_win_info::make_visible): Update.
2104 * tui/tui-regs.c (tui_data_window::display_registers_from):
2106 * tui/tui-layout.c (show_source_disasm_command)
2107 (show_source_or_disasm_and_command): Update.
2108 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
2109 (enum tui_box): Remove.
2110 (struct tui_win_info) <can_box>: New method.
2111 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
2114 2019-08-15 Tom de Vries <tdevries@suse.de>
2116 * linux-nat-trad.c: Include gdbarch.h.
2118 2019-08-14 Alan Hayward <alan.hayward@arm.com>
2120 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
2123 2019-08-14 Tom Tromey <tromey@adacore.com>
2125 * darwin-nat.c: Include gdbarch.h.
2126 * darwin-nat-info.c: Include gdbarch.h.
2128 2019-08-13 Tom Tromey <tom@tromey.com>
2130 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
2132 * tui/tui-data.c (tui_initialize_static_data): Update.
2134 2019-08-13 Tom Tromey <tom@tromey.com>
2136 * tui/tui-winsource.h (struct tui_exec_info_window)
2137 <~tui_exec_info_window, maybe_allocate_content, get_content,
2139 (struct tui_source_window_base) <set_exec_info_content,
2140 show_exec_info_content>: Don't declare.
2141 * tui/tui-winsource.c
2142 (tui_exec_info_window::maybe_allocate_content): Remove.
2143 (tui_source_window_base::update_exec_info): Rename from
2144 set_exec_info_content.
2145 (tui_source_window_base::show_exec_info_content)
2146 (tui_source_window_base::update_exec_info): Remove.
2148 2019-08-13 Tom Tromey <tom@tromey.com>
2150 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
2152 * tui/tui-winsource.c (tui_update_source_window_as_is)
2153 (tui_update_source_windows_with_addr, tui_erase_source_content):
2155 (tui_clear_exec_info_content): Remove.
2157 2019-08-13 Tom Tromey <tom@tromey.com>
2159 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
2161 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
2162 call tui_erase_exec_info_content.
2163 (tui_clear_exec_info_content): Rename from
2164 tui_erase_exec_info_content.
2165 (tui_clear_exec_info_content): Delete.
2167 2019-08-13 Tom Tromey <tom@tromey.com>
2169 * tui/tui-winsource.h (struct tui_source_window_base)
2170 <show_exec_info_content>: Declare.
2171 (tui_show_exec_info_content): Don't declare.
2172 * tui/tui-winsource.c
2173 (tui_source_window_base::show_exec_info_content): Rename from
2174 tui_show_exec_info_content.
2175 (tui_source_window_base::update_exec_info): Update.
2177 2019-08-13 Tom Tromey <tom@tromey.com>
2179 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
2180 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
2181 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
2182 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
2183 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
2184 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
2187 2019-08-13 Tom Tromey <tom@tromey.com>
2189 * tui/tui-winsource.h (struct tui_source_window_base)
2190 <update_exec_info>: Declare.
2191 (tui_update_exec_info): Don't declare.
2192 * tui/tui-winsource.c (tui_update_source_window_as_is)
2193 (tui_source_window_base::refresh_all)
2194 (tui_update_all_breakpoint_info): Update.
2195 (tui_source_window_base::update_exec_info): Rename from
2196 tui_update_exec_info.
2197 * tui/tui-stack.c (tui_show_frame_info): Update.
2199 2019-08-13 Tom Tromey <tom@tromey.com>
2201 * tui/tui-winsource.h (struct tui_source_window_base)
2202 <set_exec_info_content>: Declare.
2203 (tui_set_exec_info_content): Don't declare.
2204 * tui/tui-winsource.c
2205 (tui_source_window_base::set_exec_info_content): Rename from
2206 tui_set_exec_info_content.
2207 (tui_update_exec_info): Update.
2209 2019-08-13 Tom Tromey <tom@tromey.com>
2211 * tui/tui-winsource.h (struct tui_source_window_base)
2212 <show_source_content>: Declare.
2213 (tui_show_source_content): Don't declare.
2214 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2215 (tui_source_window_base::show_source_content): Rename from
2216 tui_show_source_content.
2217 (tui_source_window_base::refresh_all): Update.
2218 * tui/tui-layout.c (show_source_disasm_command)
2219 (show_source_or_disasm_and_command): Update.
2221 2019-08-13 Tom Tromey <tom@tromey.com>
2223 * tui/tui-winsource.c (tui_erase_source_content)
2224 (tui_show_source_content, tui_source_window_base::refresh_all):
2226 * tui/tui-wingeneral.h
2227 (tui_check_and_display_highlight_if_needed): Don't declare.
2228 * tui/tui-wingeneral.c
2229 (tui_win_info::check_and_display_highlight_if_needed): Rename from
2230 check_and_display_highlight_if_needed.
2231 * tui/tui-win.c (tui_rehighlight_all)
2232 (tui_win_info::make_visible_with_new_height): Update.
2233 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
2234 (tui_data_window::erase_data_content)
2235 (tui_data_window::display_all_data): Update.
2236 * tui/tui-data.h (struct tui_win_info)
2237 <check_and_display_highlight_if_needed>: Declare.
2239 2019-08-13 Tom Tromey <tom@tromey.com>
2241 * tui/tui-win.c (tui_resize_all): Call
2242 tui_delete_invisible_windows.
2243 * tui/tui-layout.c (show_layout): Call
2244 tui_delete_invisible_windows.
2245 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
2246 * tui/tui-data.c (tui_delete_invisible_windows): New function.
2248 2019-08-13 Tom Tromey <tom@tromey.com>
2250 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
2251 tui_add_win_to_layout.
2253 2019-08-13 Tom Tromey <tom@tromey.com>
2255 * tui/tui-layout.h (tui_default_win_height): Don't declare.
2256 * tui/tui-layout.c (tui_default_win_height): Now static.
2258 2019-08-13 Tom Tromey <tom@tromey.com>
2260 * tui/tui-layout.c (show_layout): Unify all layout cases into a
2262 (show_source_disasm_command, show_source_or_disasm_and_command):
2263 Don't check current layout.
2265 2019-08-13 Tom Tromey <tom@tromey.com>
2267 * tui/tui-wingeneral.c (make_all_visible): Remove.
2268 (tui_make_all_invisible): Simplify.
2269 * tui/tui-layout.c (tui_make_all_invisible): Move from
2270 tui-wingeneral.c; simplify.
2271 (show_layout): Hoist call to tui_make_all_invisible.
2272 (show_data): Don't call tui_make_all_invisible.
2274 2019-08-13 Tom Tromey <tom@tromey.com>
2276 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
2277 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
2279 2019-08-13 Tom Tromey <tom@tromey.com>
2281 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
2283 (show_source_disasm_command, show_data)
2284 (show_source_or_disasm_and_command): Don't use
2285 tui_set_current_layout_to.
2286 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
2287 * tui/tui-data.c (current_layout, tui_current_layout): Move to
2289 (tui_set_current_layout_to): Remove.
2291 2019-08-13 Tom Tromey <tom@tromey.com>
2293 * tui/tui-layout.c (tui_set_layout): Update.
2294 * tui/tui-data.h (struct tui_layout_def): Remove.
2295 (tui_layout_def): Don't declare.
2296 * tui/tui-data.c (layout_def): Remove.
2297 (tui_layout_def): Remove.
2299 2019-08-13 Tom Tromey <tom@tromey.com>
2301 * tui/tui-winsource.h (struct tui_source_window_base)
2302 <clear_detail>: No longer "override".
2303 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
2304 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
2305 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
2306 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
2308 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
2310 2019-08-13 Tom Tromey <tromey@adacore.com>
2312 * tracepoint.c: Don't include readline.h or history.h.
2314 2019-08-12 Tom Tromey <tom@tromey.com>
2316 * configure: Rebuild.
2317 * configure.ac: Check for readline 7.
2318 * NEWS: Mention readline 7 requirement.
2321 2019-08-12 Tom Tromey <tom@tromey.com>
2323 * mingw-hdep.c (gdb_select): Remove readline hack.
2325 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2327 * blockframe.c (find_pc_partial_function): Set *block to nullptr
2328 when the function fails.
2330 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
2332 * s390-tdep.c (s390_type_align): New function.
2333 (s390_gdbarch_init): Set it as type_align gdbarch method.
2335 2019-08-09 Tom de Vries <tdevries@suse.de>
2338 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
2339 pc_low with relocation offset.
2341 2019-08-07 Tom Tromey <tromey@adacore.com>
2343 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
2344 (print_frame_args): Update.
2345 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
2347 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
2348 * frame.h (struct frame_arg): Add initializers.
2349 <error>: Now a unique_xmalloc_ptr.
2351 2019-08-07 Alan Hayward <alan.hayward@arm.com>
2353 * NEWS: Expand the Pointer Authentication entry.
2354 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
2355 (aarch64_frame_unmask_lr): ... to this.
2356 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
2357 Call aarch64_frame_unmask_lr.
2358 * frame.c (struct frame_info): Add "masked" variable.
2359 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
2360 (fprint_frame): Check for masked pc.
2361 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
2363 * python/py-framefilter.c (py_print_frame): Check for masked pc.
2364 * stack.c (print_frame): Check for masked pc.
2366 2019-08-06 Tom Tromey <tom@tromey.com>
2368 * stabsread.c (patch_block_stabs, read_one_struct_field)
2369 (read_enum_type): Use obstack_strndup.
2370 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
2371 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
2372 * dwarf2read.c (guess_full_die_structure_name)
2373 (anonymous_struct_prefix): Use obstack_strndup.
2374 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
2375 * c-exp.y (yylex): Use obstack_strndup.
2376 * ada-exp.y (write_object_renaming, write_ambiguous_var)
2377 (write_var_or_type): Use obstack_strndup.
2379 2019-08-06 Tom Tromey <tom@tromey.com>
2381 * symfile.c (reread_symbols): Use obstack_strdup.
2382 * stabsread.c (read_type): Use obstack_strdup.
2383 * gdb_obstack.h (obstack_strdup): New overload.
2384 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
2385 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
2386 (dwarf2_canonicalize_name): Use obstack_strdup.
2387 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
2388 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
2391 2019-08-06 Tom Tromey <tom@tromey.com>
2393 * gdb_obstack.h (obstack_strdup): Define.
2394 * gdb_obstack.c (obstack_strdup): Don't define.
2396 2019-08-06 Tom Tromey <tom@tromey.com>
2398 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
2400 * typeprint.c (typedef_hash_table::find_global_typedef): Use
2402 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
2403 * stabsread.c (common_block_start): Use obstack_strdup.
2404 * objfiles.c (set_objfile_main_name, objfile): Use
2406 * namespace.c (add_using_directive): Use obstack_strdup.
2407 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
2408 * jit.c (finalize_symtab): Use obstack_strdup.
2409 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
2410 (guess_partial_die_structure_name, partial_die_info::fixup)
2411 (dwarf2_name): Use obstack_strdup.
2412 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
2414 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
2415 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
2417 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
2419 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2421 * unittests/help-doc-selftests.c: New file.
2422 * Makefile.in: Add the new file.
2424 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2426 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
2427 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
2428 the full first line, except when FOR_VALUE_PREFIX. In this case,
2429 the trailing '.' is not output, and the first character is uppercased.
2430 (print_help_for_command): Update call to print_doc_line.
2431 (print_doc_of_command): Likewise.
2432 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
2433 * cli/cli-option.c (append_indented_doc): Do not append newline.
2434 (build_help_option): Append newline after first appended_indented_doc
2435 only if a second call is done.
2436 (build_help): Append 2 new lines before each option, except the first
2438 * compile/compile.c (_initialize_compile): Add new lines after
2439 %OPTIONS%, when not at the end of the help.
2440 Change help doc or code
2441 producing the help doc to respect the invariants.
2442 * maint-test-options.c (_initialize_maint_test_options): Likewise.
2443 Also removed the new line after 'Options:', as all other commands
2444 do not put an empty line between 'Options:' and the first option.
2445 * printcmd.c (_initialize_printcmd): Likewise.
2446 * stack.c (_initialize_stack): Likewise.
2447 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
2448 incorrectly telling COMMAND is optional.
2449 * ada-lang.c (_initialize_ada_language): Change help doc or code
2450 producing the help doc to respect the invariants.
2451 * ada-tasks.c (_initialize_ada_tasks): Likewise.
2452 * breakpoint.c (_initialize_breakpoint): Likewise.
2453 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
2454 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
2455 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
2456 * cli/cli-style.c (cli_style_option::add_setshow_commands,
2457 _initialize_cli_style): Likewise.
2458 * corelow.c (core_target_info): Likewise.
2459 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
2460 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
2461 * filesystem.c (_initialize_filesystem): Likewise.
2462 * frame.c (_initialize_frame): Likewise.
2463 * gnu-nat.c (add_task_commands): Likewise.
2464 * infcall.c (_initialize_infcall): Likewise.
2465 * infcmd.c (_initialize_infcmd): Likewise.
2466 * interps.c (_initialize_interpreter): Likewise.
2467 * language.c (_initialize_language): Likewise.
2468 * linux-fork.c (_initialize_linux_fork): Likewise.
2469 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
2470 * maint.c (_initialize_maint_cmds): Likewise.
2471 * memattr.c (_initialize_mem): Likewise.
2472 * printcmd.c (_initialize_printcmd): Likewise.
2473 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
2475 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
2476 * record-btrace.c (_initialize_record_btrace): Likewise.
2477 * record-full.c (_initialize_record_full): Likewise.
2478 * record.c (_initialize_record): Likewise.
2479 * regcache-dump.c (_initialize_regcache_dump): Likewise.
2480 * regcache.c (_initialize_regcache): Likewise.
2481 * remote.c (add_packet_config_cmd, init_remote_threadtests,
2482 _initialize_remote): Likewise.
2483 * ser-tcp.c (_initialize_ser_tcp): Likewise.
2484 * serial.c (_initialize_serial): Likewise.
2485 * skip.c (_initialize_step_skip): Likewise.
2486 * source.c (_initialize_source): Likewise.
2487 * stack.c (_initialize_stack): Likewise.
2488 * symfile.c (_initialize_symfile): Likewise.
2489 * symtab.c (_initialize_symtab): Likewise.
2490 * target-descriptions.c (_initialize_target_descriptions): Likewise.
2491 * top.c (init_main): Likewise.
2492 * tracefile-tfile.c (tfile_target_info): Likewise.
2493 * tracepoint.c (_initialize_tracepoint): Likewise.
2494 * tui/tui-win.c (_initialize_tui_win): Likewise.
2495 * utils.c (add_internal_problem_command): Likewise.
2496 * valprint.c (value_print_option_defs): Likewise.
2498 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
2501 * configure.ac: Drop enable-libmcheck support.
2502 * configure, config.in: Rebuild.
2503 * libmcheck.m4: Remove.
2504 * acinclude.m4: Don't include it.
2505 * Makefile.in: Don't distribute it.
2506 * top.c (print_gdb_configuration): Don't mention it.
2508 2019-08-06 Tom Tromey <tom@tromey.com>
2510 * utils.c (set_output_style): Sometimes pass stream to
2512 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
2513 * record-btrace.c (btrace_insn_history): Update.
2514 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
2516 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
2517 Update initializers.
2518 <m_uiout>: New field.
2520 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2521 Remove "uiout" parameter.
2522 (dump_insns): Update.
2523 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
2524 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
2526 2019-08-06 Christian Biesinger <cbiesinger@google.com>
2528 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
2529 (error_in_psymtab_expansion): Likewise.
2530 (lookup_symbol_via_quick_fns): Likewise.
2531 (basic_lookup_transparent_type_quick): Likewise.
2532 (basic_lookup_transparent_type_1): Likewise.
2534 2019-08-06 Tom Tromey <tromey@adacore.com>
2536 * source.c (last_source_error): Now bool.
2537 (print_source_lines_base): Make "noprint" bool. Only open
2538 source file when last_source_visited changes.
2540 2019-08-06 Tom Tromey <tromey@adacore.com>
2542 * annotate.c (annotate_source_line): Use g_source_cache.
2543 * source-cache.c (source_cache::get_plain_source_lines): Change
2544 parameters. Populate m_offset_cache.
2545 (source_cache::ensure): New method.
2546 (source_cache::get_line_charpos): New method.
2547 (extract_lines): Move lower. Change parameters.
2548 (source_cache::get_source_lines): Move lower.
2549 * source-cache.h (class source_cache): Update comment.
2550 <get_line_charpos>: New method.
2551 <get_source_lines>: Update comment.
2552 <clear>: Clear m_offset_cache.
2553 <get_plain_source_lines>: Change parameters.
2554 <ensure>: New method
2555 <m_offset_cache>: New member.
2556 * source.c (forget_cached_source_info_for_objfile): Update.
2557 (info_source_command): Use g_source_cache.
2558 (find_source_lines, open_source_file_with_line_charpos): Remove.
2559 (print_source_lines_base, search_command_helper): Use g_source_cache.
2560 * source.h (open_source_file_with_line_charpos): Don't declare.
2561 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
2562 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
2565 2019-08-06 Tom Tromey <tromey@adacore.com>
2567 * source-cache.c (source_cache::get_plain_source_lines):
2568 Remove "first_line" and "last_line" parameters.
2569 (source_cache::get_source_lines): Cache plain text.
2570 * source-cache.h (class source_cache)
2571 <get_plain_source_lines>: Update.
2573 2019-08-06 Tom Tromey <tromey@adacore.com>
2575 * source-cache.c (extract_lines): No longer a method.
2576 Changed type of parameter. Include final newline.
2577 (selftests::extract_lines_test): New function.
2578 (_initialize_source_cache): Likewise.
2579 * source-cache.h (class source_cache)
2580 <extract_lines>: Don't declare.
2582 2019-08-06 Tom Tromey <tromey@adacore.com>
2584 * breakpoint.c (init_breakpoint_sal): Update.
2585 (breakpoint): Update.
2586 * breakpoint.h (struct breakpoint) <filter>: Now a
2589 2019-08-05 Christian Biesinger <cbiesinger@google.com>
2591 * NEWS: Mention dictionary access on blocks.
2592 * python/py-block.c (blpy_getitem): New function.
2593 (block_object_as_mapping): New struct.
2594 (block_object_type): Use new struct for tp_as_mapping field.
2596 2019-08-05 Christian Biesinger <cbiesinger@google.com>
2598 * objfiles.h (objfile): Add a comment describing partial symbols.
2600 2019-08-05 Tom Tromey <tromey@adacore.com>
2602 * compile/compile.c (_initialize_compile): Use _(), not N_().
2603 * thread.c (_initialize_thread): Use _(), not N_().
2604 * stack.c (_initialize_stack): Use _(), not N_().
2605 * printcmd.c (_initialize_printcmd): Use _(), not N_().
2607 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2609 * dwarf2read.c (struct dw2_symtab_iterator):
2610 <want_specific_block>: Remove.
2611 <block_index>: Change type to gdb::optional.
2612 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
2613 change type of BLOCK_INDEX parameter to gdb::optional.
2614 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
2615 (dw2_lookup_symbol): Don't pass argument for
2616 WANT_SPECIFIC_BLOCK.
2617 (dw2_expand_symtabs_for_function): Don't pass argument for
2618 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
2619 (class dw2_debug_names_iterator)
2620 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
2621 parameter, change BLOCK_INDEX type to gdb::optional.
2622 <m_want_specific_block>: Remove.
2623 <m_block_index>: Change type to gdb::optional.
2624 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
2625 gdb::optional. Re-write in function of gdb::optional.
2626 (dw2_debug_names_lookup_symbol): Don't pass argument for
2627 WANT_SPECIFIC_BLOCK.
2628 (dw2_debug_names_expand_symtabs_for_function): Don't pass
2629 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
2632 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2634 * NEWS: Mention changes to "info sources" command.
2636 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2638 * symtab.c (filename_partial_match_opts): New struct type.
2639 (struct output_source_filename_data): New members
2640 regexp, c_regexp, partial_match.
2641 (output_source_filename): Use new members to decide to print file.
2642 (info_sources_option_defs): New variable.
2643 (make_info_sources_options_def_group, print_info_sources_header,
2644 info_sources_command_completer):
2646 (info_sources_command): Read new optional arguments.
2647 (_initialize_symtab): Update info sources help.
2649 2019-08-02 Alexandre Oliva <oliva@adacore.com>
2651 * ada-lang.c (exception_support_info_v0): Renamed from...
2652 (default_exception_support_info): ... this. Create new
2654 (ada_has_this_exception_support): Look up catch_handlers_sym.
2655 (ada_exception_support_info_sniffer): Try v0 after default.
2657 2019-08-01 Tom Tromey <tromey@adacore.com>
2659 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
2662 2019-08-01 Christian Biesinger <cbiesinger@google.com>
2664 * s12z-tdep.c: Fix include path for s12z-opc.h.
2666 2019-08-01 Alan Hayward <alan.hayward@arm.com>
2668 * NEWS: Require GNU make 3.82.
2670 2019-07-16 Tom Tromey <tom@tromey.com>
2672 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
2675 2019-07-30 Tom Tromey <tromey@adacore.com>
2677 * block.c (contained_in): Remove BLOCK_FUNCTION check.
2679 2019-07-30 Kevin Buettner <kevinb@redhat.com>
2681 * printcmd.c (print_address_symbolic): Print negative offsets.
2682 (build_address_symbolic): Force signed arithmetic when computing
2685 2019-07-30 Christian Biesinger <cbiesinger@google.com>
2687 PR/24474: Add a function to lookup static variables.
2688 * NEWS: Mention this new function.
2689 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
2690 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
2691 * python/python.c (python_GdbMethods): Add new function.
2693 2019-07-29 Christian Biesinger <cbiesinger@google.com>
2695 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
2696 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
2697 (objfpy_lookup_static_symbol): New function.
2698 (objfile_object_methods): Add new functions.
2700 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2702 * NEWS: Mention 'set|show print frame-info'. Mention new
2703 'presence' value for 'frame-arguments'. Mention new '-frame-info'
2704 backtrace argument. Mention that python frame filtering code
2705 is now consistent with what 'backtrace' command prints.
2707 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2709 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
2711 (print_frame_info_auto, print_frame_info_source_line,
2712 print_frame_info_location, print_frame_info_source_and_location,
2713 print_frame_info_location_and_address, print_frame_info_short_location):
2715 (struct frame_print_options): New member print_frame_info.
2716 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
2717 * stack.h (get_user_print_what_frame_info): New declaration.
2718 (frame_show_address): New declaration.
2719 * stack.c (print_frame_arguments_choices): New value 'presence'.
2720 (print_frame_info_auto, print_frame_info_source_line,
2721 print_frame_info_location, print_frame_info_source_and_location,
2722 print_frame_info_location_and_address, print_frame_info_short_location,
2723 print_frame_info_choices, print_frame_info_print_what): New definitions.
2724 (print_frame_args): Only print dots for args if print frame-arguments
2726 (frame_print_option_defs): New element for "frame-info".
2727 (get_user_print_what_frame_info): New function.
2728 (frame_show_address): Make non static. Move comment to stack.h.
2729 (print_frame_info_to_print_what): New function.
2730 (print_frame_info): Update comment. Use fp_opts.print_frame_info
2731 to decide what to print.
2732 (backtrace_command_1): Handle the new print_frame_arguments_presence
2734 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
2735 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
2736 (py_print_frame): In non-mi mode, use LOCATION as default for
2737 print_what, similarly to frame information printed directly by
2738 backtrace command. Handle frame-info user option in non MI mode.
2740 2019-07-27 Kevin Buettner <kevinb@redhat.com>
2742 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
2743 Add case for debugging 32-bit target on 64-bit host. Revise
2746 2019-07-27 Kevin Buettner <kevinb@redhat.com>
2748 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
2749 instead of find_function_entry_range_from_pc.
2751 2019-07-27 Kevin Buettner <kevinb@redhat.com>
2753 * stack.c (find_frame_funname): Remove code which preferred
2754 minsym over symtab sym in "certain pathological cases".
2756 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
2757 parameter. Change type of "do_demangle" to bool.
2758 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2759 Pass suitable "prefer_sym_over_minsym" flag to
2760 build_address_symbolic(). Don't output "+" for negative offsets.
2761 * printcmd.c (print_address_symbolic): Update invocation of
2762 build_address_symbolic to include a "prefer_sym_over_minsym"
2764 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
2765 Restrict cases in which use of minimal symbol is preferred to that
2766 of a found symbol. Update comments.
2768 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
2769 for entry pc when entry pc is out of range for that FDE.
2771 2019-07-26 Brian Callahan <bcallah@openbsd.org>
2774 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
2777 2019-07-25 Christian Biesinger <cbiesinger@google.com>
2779 * python/py-objfile.c (add_separate_debug_file): Fix comment about
2780 this function's Python signature.
2783 2019-07-24 Christian Biesinger <cbiesinger@google.com>
2785 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
2786 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
2787 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
2788 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
2789 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
2792 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
2794 * h8300-tdep.c (h8300_register_name_common): New.
2795 h8300_register_name): Use h8300_register_name_common.
2796 (h8300s_register_name): Likewise.
2797 (h8300sx_register_name): Likewise.
2798 (h8300h_register_nam): New.
2799 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
2802 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
2804 * arm-tdep.c (arm_skip_cmse_entry): New function.
2805 (arm_is_sgstubs_section): New function.
2806 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
2808 2019-07-22 Tom Tromey <tom@tromey.com>
2810 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
2813 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2815 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
2818 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2820 * symtab.c (search_symbols): Adjust msymbol matching type arrays
2821 so that GDB doesn't match any msymbols when searching in the
2823 (print_symbol_info): Print using typedef_print or type_print based
2824 on the type of the symbol. Add updated FIXME comment moved from...
2825 (_initialize_symtab): ... move and update FIXME comment to above.
2827 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2829 * NEWS: Mention adding -q option to "info types".
2830 * symtab.c (struct info_types_options): New struct.
2831 (info_types_options_defs): New variable.
2832 (make_info_types_options_def_group): New function.
2833 (info_types_command): Use gdb::option framework to parse options.
2834 (info_types_command_completer): New function.
2835 (_initialize_symtab): Extend the help text on "info types" and
2836 register command completer.
2838 2019-07-21 Christian Biesinger <cbiesinger@google.com>
2840 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
2841 (lookup_symbol_in_objfile): Change int to block_enum and add a
2842 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
2844 2019-07-20 Christian Biesinger <cbiesinger@google.com>
2846 * MAINTAINERS (Write After Approval): Add self.
2848 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
2850 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
2851 instruction to the dummy code region.
2853 2019-07-19 Tom Tromey <tromey@adacore.com>
2855 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
2856 (ARGSUSED, PARAMS, __func__): Remove rules.
2858 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2860 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
2861 * features/arm/arm-with-iwmmxt.c: Remove.
2862 * features/arm/arm-with-iwmmxt.xml: Remove.
2863 * features/arm/arm-with-m-fpa-layout.c: Remove.
2864 * features/arm/arm-with-m-fpa-layout.xml: Remove.
2865 * features/arm/arm-with-m-vfp-d16.c: Remove.
2866 * features/arm/arm-with-m-vfp-d16.xml: Remove.
2867 * features/arm/arm-with-m.c: Remove.
2868 * features/arm/arm-with-m.xml: Remove.
2869 * features/arm/arm-with-neon.c: Remove.
2870 * features/arm/arm-with-neon.xml: Remove.
2871 * features/arm/arm-with-vfpv2.c: Remove.
2872 * features/arm/arm-with-vfpv2.xml: Remove.
2873 * features/arm/arm-with-vfpv3.c: Remove.
2874 * features/arm/arm-with-vfpv3.xml: Remove.
2876 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2878 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
2880 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2882 * arch/aarch32.c (aarch32_create_target_description): Create
2883 target descriptions using features.
2884 * arch/arm.c (arm_create_target_description)
2885 (arm_create_mprofile_target_description): Likewise.
2886 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
2888 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2890 * Makefile.in: Add new files.
2891 * aarch32-tdep.c: New file.
2892 * aarch32-tdep.h: New file.
2893 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
2894 Call aarch32_read_description.
2895 * arch/aarch32.c: New file.
2896 * arch/aarch32.h: New file.
2897 * arch/arm.c (arm_create_target_description)
2898 (arm_create_mprofile_target_description): New function.
2899 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
2900 (arm_create_target_description)
2901 (arm_create_mprofile_target_description): New declaration.
2902 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
2903 read_description functions.
2904 * arm-linux-nat.c (arm_linux_nat_target::read_description):
2906 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
2907 * arm-tdep.c (tdesc_arm_list): New variable.
2908 (arm_register_g_packet_guesses): Call create description functions.
2909 (arm_read_description) (arm_read_mprofile_description): New
2911 * arm-tdep.h (arm_read_description)
2912 (arm_read_mprofile_description): Add declaration.
2913 * configure.tgt: Add new files.
2915 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
2917 * top.c (new_ui_command): Open specified terminal just once.
2919 2019-07-18 Tom Tromey <tromey@adacore.com>
2921 * symtab.c (main_name): Constify return type.
2922 * symfile.c (set_initial_language): Update.
2923 * symtab.h (main_name): Constify return type.
2925 2019-07-17 Tom Tromey <tom@tromey.com>
2927 * tui/tui-winsource.c (tui_update_source_window)
2928 (tui_update_source_window_as_is)
2929 (tui_update_source_windows_with_line): Remove return.
2930 * tui/tui-disasm.c (tui_show_disassem)
2931 (tui_show_disassem_and_update_source): Remove return.
2932 * tui/tui.c (tui_reset): Remove return.
2933 * tui/tui-wingeneral.c
2934 (tui_check_and_display_highlight_if_needed): Remove return.
2936 2019-07-17 Tom Tromey <tom@tromey.com>
2938 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
2940 2019-07-17 Tom Tromey <tom@tromey.com>
2942 * tui/tui-winsource.h (struct tui_exec_info_window)
2943 (struct tui_source_window_base): Move from tui-data.h.
2944 * tui/tui-winsource.c: Move many method definitions from
2945 elsewhere. Remove "structuring" comments.
2946 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
2947 (tui_source_window_base::refresh_window): Move to
2949 * tui/tui-win.c (tui_source_window_base::refresh_all)
2950 (tui_source_window_base::update_tab_width)
2951 (tui_source_window_base::set_new_height)
2952 (tui_source_window_base::do_make_visible_with_new_height): Move to
2954 * tui/tui-source.h: Update.
2955 * tui/tui-source.c (tui_source_window_base::reset): Move to
2957 * tui/tui-disasm.h: Update.
2958 * tui/tui-data.h (struct tui_exec_info_window): Move to
2960 (struct tui_source_window_base): Likewise.
2961 * tui/tui-data.c (tui_source_window_base::clear_detail)
2962 (tui_source_window_base, ~tui_source_window_base): Move to
2965 2019-07-17 Tom Tromey <tom@tromey.com>
2967 * tui/tui-win.c (tui_resize_all)
2968 (tui_source_window_base::update_tab_width)
2969 (tui_adjust_win_heights): Update.
2970 (tui_win_info::make_invisible_and_set_new_height): Rename from
2971 make_invisible_and_set_new_height.
2972 * tui/tui-data.h (struct tui_win_info)
2973 <make_invisible_and_set_new_height>: New method.
2975 2019-07-17 Tom Tromey <tom@tromey.com>
2977 * tui/tui.c: Update.
2978 * tui/tui-source.h (struct tui_source_window): Move from
2980 * tui/tui-layout.c: Update.
2981 * tui/tui-disasm.c: Update.
2982 * tui/tui-data.h (struct tui_source_window): Move to
2985 2019-07-17 Tom Tromey <tom@tromey.com>
2987 * tui/tui-disasm.h (struct tui_disasm_window): Move from
2989 * tui/tui-data.h (struct tui_disasm_window): Move to
2992 2019-07-17 Tom Tromey <tom@tromey.com>
2994 * tui/tui-regs.h (struct tui_data_item_window): Move from
2996 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
2997 * tui/tui-data.h (struct tui_data_item_window): Move to
2999 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
3001 2019-07-17 Tom Tromey <tom@tromey.com>
3003 * tui/tui.c: Update.
3004 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
3005 (tui_cmd_window::max_height): Move to tui-command.c.
3006 * tui/tui-layout.c: Update.
3007 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
3008 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
3010 * tui/tui-command.h (struct tui_cmd_window): Move from
3012 * tui/tui-command.c: Remove "structuring" comments.
3013 (tui_cmd_window::clear_detail)
3014 (tui_cmd_window::do_make_visible_with_new_height)
3015 (tui_cmd_window::max_height): Move from elsewhere.
3017 2019-07-17 Tom Tromey <tom@tromey.com>
3019 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
3021 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
3022 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
3024 2019-07-17 Tom Tromey <tom@tromey.com>
3026 * tui/tui.c: Update.
3027 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
3029 * tui/tui-windata.h: Remove file.
3030 * tui/tui-windata.c: Remove file.
3031 * tui/tui-win.c (tui_data_window::set_new_height)
3032 (tui_data_window::do_make_visible_with_new_height): Move to
3034 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
3035 * tui/tui-regs.c: Remove "structuring" comments.
3036 (tui_data_window::first_data_item_displayed)
3037 (tui_data_window::delete_data_content_windows)
3038 (tui_data_window::erase_data_content)
3039 (tui_data_window::display_all_data)
3040 (tui_data_window::refresh_all)
3041 (tui_data_window::do_scroll_vertical)
3042 (tui_data_window::clear_detail, tui_data_window::set_new_height)
3043 (tui_data_window::do_make_visible_with_new_height)
3044 (tui_data_window::refresh_window): Move from elsewhere.
3045 (_initialize_tui_regs): Move to end of file.
3046 * tui/tui-layout.c: Update.
3047 * tui/tui-hooks.c: Update.
3048 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
3049 * tui/tui-data.c (tui_data_window::clear_detail): Move to
3051 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
3053 2019-07-17 Tom Tromey <tom@tromey.com>
3055 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
3058 2019-07-17 Tom Tromey <tom@tromey.com>
3060 * tui/tui-win.c (tui_source_window_base::set_new_height)
3061 (tui_source_window_base::do_make_visible_with_new_height): Use
3062 m_has_locator field directly.
3063 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
3065 (struct tui_source_window_base) <has_locator>: Likewise.
3067 2019-07-17 Tom Tromey <tom@tromey.com>
3069 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
3071 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
3073 * tui/tui-win.c (tui_source_window_base::set_new_height)
3074 (tui_source_window_base::set_new_height)
3075 (make_invisible_and_set_new_height)
3076 (tui_source_window_base::do_make_visible_with_new_height)
3077 (tui_source_window_base::do_make_visible_with_new_height):
3079 * tui/tui-layout.c (show_source_disasm_command, show_data)
3080 (show_source_or_disasm_and_command): Update.
3081 * tui/tui-layout.c (show_layout): Update.
3083 2019-07-17 Tom Tromey <tom@tromey.com>
3085 * tui/tui-layout.c (make_data_window): Remove.
3086 (show_data): Unify creation and re-initialization cases.
3088 2019-07-17 Tom Tromey <tom@tromey.com>
3090 * tui/tui-layout.c (make_source_window, make_disasm_window):
3092 (show_data): Unify creation and re-initialization cases.
3094 2019-07-17 Tom Tromey <tom@tromey.com>
3096 * tui/tui-layout.c (make_command_window): Remove.
3097 (show_source_disasm_command, show_source_or_disasm_and_command):
3098 Unify creation and re-initialization cases.
3100 2019-07-17 Tom Tromey <tom@tromey.com>
3102 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
3103 creation and re-initialization cases.
3105 2019-07-17 Tom Tromey <tom@tromey.com>
3107 * tui/tui-regs.c (tui_get_register): Return void.
3109 2019-07-17 Tom Tromey <tom@tromey.com>
3111 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
3114 2019-07-17 Tom Tromey <tom@tromey.com>
3116 * tui/tui-layout.c (show_source_disasm_command): Simplify window
3119 2019-07-17 Tom Tromey <tom@tromey.com>
3121 * tui/tui.h (tui_set_layout_by_name): Don't declare.
3122 * tui/tui-regs.c (tui_reg_layout): New function.
3123 (tui_show_registers, tui_reg_command): Use it.
3124 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
3125 (tui_layout_command): Rename from tui_set_layout_by_name. Change
3127 (tui_layout_command): Remove.
3129 2019-07-17 Tom Tromey <tom@tromey.com>
3131 * tui/tui-layout.h (tui/tui-layout): Return void.
3132 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
3134 2019-07-17 Tom Tromey <tom@tromey.com>
3136 * tui/tui-layout.c (show_source_disasm_command, show_data):
3138 (reset_locator): Remove.
3139 (show_source_or_disasm_and_command): Update.
3141 2019-07-17 Tom Tromey <tom@tromey.com>
3143 * tui/tui-source.c (tui_source_window_base::reset): Remove
3145 * tui/tui-layout.c (make_command_window, make_source_window)
3146 (make_disasm_window, make_data_window)
3147 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
3148 (reset_locator, show_source_or_disasm_and_command): Update.
3149 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
3151 (struct tui_source_window_base) <reset>: Likewise.
3153 2019-07-17 Tom Tromey <tom@tromey.com>
3155 * tui/tui-layout.c (show_source_disasm_command): Use
3157 (reset_locator): New function.
3158 (init_and_make_win): Remove.
3159 (show_source_or_disasm_and_command): Use reset_locator.
3161 2019-07-17 Tom Tromey <tom@tromey.com>
3163 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
3165 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
3167 * tui/tui-source.c (tui_source_window_base::reset): New method.
3168 * tui/tui-layout.c (make_command_window): Don't call
3170 (make_source_window, make_disasm_window): Don't call
3171 make_source_or_disasm_window.
3172 (make_data_window): Don't call init_and_make_win. Change calling
3174 (show_source_disasm_command, show_data): Simplify.
3175 (make_source_or_disasm_window): Remove.
3176 (show_source_or_disasm_and_command): Simplify.
3177 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
3178 (struct tui_source_window_base) <reset>: Likewise.
3179 <execution_info>: Remove initializer.
3180 * tui/tui-data.c (tui_source_window_base): Initialize
3183 2019-07-17 Tom Tromey <tom@tromey.com>
3185 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
3188 2019-07-17 Tom Tromey <tom@tromey.com>
3190 * tui/tui.c (tui_rl_other_window): Update.
3191 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
3192 superclass method first. Always iterate over regs_content.
3193 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
3195 * tui/tui-win.c (tui_set_focus_command): Update.
3197 2019-07-17 Tom Tromey <tom@tromey.com>
3199 * tui/tui-win.c (tui_set_focus_command): Rename from
3200 tui_set_focus. Call tui_enable.
3201 (tui_set_focus_command): Remove.
3203 2019-07-17 Tom Tromey <tom@tromey.com>
3205 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
3207 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
3209 (tui_data_window::refresh_window): Call refresh_window on data
3210 items. Always call superclass refresh_window.
3211 (tui_win_info::refresh): Remove.
3212 (tui_source_window_base::refresh_window): Update.
3213 (tui_refresh_all): Update.
3214 * tui/tui-layout.c (show_source_disasm_command): Remove call to
3216 (show_source_or_disasm_and_command): Likewise.
3217 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
3218 (struct tui_source_window_base) <refresh>: Likewise.
3220 2019-07-17 Tom Tromey <tom@tromey.com>
3222 * tui/tui-winsource.c (tui_clear_source_content)
3223 (tui_show_source_content): Update.
3224 * tui/tui-source.c (tui_source_window::showing_source_p): Check
3225 whether content is empty.
3226 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
3229 2019-07-17 Tom Tromey <tom@tromey.com>
3231 * tui/tui-winsource.c (tui_erase_source_content): Clear the
3233 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
3234 * tui/tui-source.c (tui_set_source_content_nil): Remove.
3236 2019-07-17 Tom Tromey <tom@tromey.com>
3238 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
3239 (struct tui_data_item_window): Update.
3241 2019-07-17 Tom Tromey <tom@tromey.com>
3243 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
3244 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
3247 2019-07-17 Tom Tromey <tom@tromey.com>
3249 * tui/tui-winsource.h (tui_erase_source_content)
3250 (tui_clear_source_content): Remove "display_prompt" parameter.
3251 * tui/tui-winsource.c (tui_update_source_window_as_is)
3252 (tui_update_source_windows_with_addr): Update.
3253 (tui_clear_source_content): Remove "display_prompt" parameter.
3254 (tui_erase_source_content): Likewise. Simplify.
3255 (tui_show_source_content): Update.
3256 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3257 * tui/tui-stack.c (tui_show_frame_info): Update.
3258 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
3261 2019-07-17 Tom Tromey <tom@tromey.com>
3263 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3264 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
3266 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
3269 2019-07-17 Tom Tromey <tom@tromey.com>
3271 * tui/tui-winsource.c (tui_clear_source_content)
3272 (tui_show_source_content, tui_show_exec_info_content)
3273 (tui_clear_exec_info_content): Update.
3274 * tui/tui-stack.c (tui_show_locator_content): Update.
3275 (tui_show_frame_info): Update.
3276 * tui/tui-source.h (tui_source_window): Don't declare.
3277 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
3278 from tui_source_is_displayed.
3279 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
3281 (struct tui_source_window_base) <content_in_use>: New field. Now
3283 (struct tui_source_window) <showing_source_p>: New method.
3284 (TUI_SRC_WIN): Change cast.
3285 * tui/tui-data.c (tui_initialize_static_data): Update.
3287 2019-07-17 Tom Tromey <tom@tromey.com>
3289 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
3291 * tui/tui-source.c (tui_source_window::location_matches_p): New
3293 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
3295 * tui/tui-data.h (struct tui_source_window_base)
3296 <location_matches_p>: New method.
3297 (struct tui_source_window, struct tui_disasm_window)
3298 <location_matches_p>: Likewise.
3300 2019-07-17 Tom Tromey <tom@tromey.com>
3302 * tui/tui-win.c (tui_set_win_height_command): Rename from
3304 (tui_set_win_height_command): Remove.
3306 2019-07-17 Tom Tromey <tom@tromey.com>
3308 * tui/tui-source.c (tui_source_window): New constructor. Add
3310 (~tui_source_window): New destructor.
3311 (tui_source_window::style_changed): New method.
3312 * tui/tui-hooks.c (tui_redisplay_source): Remove.
3313 (tui_attach_detach_observers): Update.
3314 * tui/tui-data.h (struct tui_source_window): Make constructor not
3315 inline. Add destructor.
3316 (struct tui_source_window) <style_changed>: New method.
3317 <m_observable>: New member.
3319 2019-07-17 Tom Tromey <tom@tromey.com>
3321 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
3322 * tui/tui-win.c (tui_resize_all): Fix typo.
3324 2019-07-17 Tom Tromey <tom@tromey.com>
3326 * tui/tui-wingeneral.h (tui_refresh_all): Update.
3327 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
3328 (tui_refresh_all): Remove "list" parameter. Use foreach.
3329 * tui/tui-win.c (window_name_completer): Use foreach.
3330 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
3331 (update_tab_width): Likewise.
3332 * tui/tui-layout.c (show_layout): Update.
3333 * tui/tui-data.h (class tui_window_iterator): New.
3334 (struct all_tui_windows): New.
3335 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
3337 2019-07-17 Tom Tromey <tom@tromey.com>
3339 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
3340 parameter. Don't reference globals.
3341 (tui_reg_command): Update.
3343 2019-07-17 Tom Tromey <tom@tromey.com>
3345 * tui/tui-regs.c (tui_show_registers): Simplify.
3347 2019-07-17 Tom Tromey <tom@tromey.com>
3349 * tui/tui-regs.c (tui_show_registers): Update.
3350 (tui_show_register_group): Add win_info parameter.
3352 2019-07-17 Tom Tromey <tom@tromey.com>
3354 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
3355 Rename from tui_display_reg_element_at_line.
3356 (tui_data_window::display_registers_from_line): Update.
3357 * tui/tui-data.h (struct tui_data_window)
3358 <display_reg_element_at_line>: New method.
3360 2019-07-17 Tom Tromey <tom@tromey.com>
3362 * tui/tui-regs.h (tui_display_registers_from)
3363 (tui_display_registers_from_line): Don't declare.
3364 * tui/tui-windata.c (tui_data_window::display_all_data)
3365 (tui_data_window::refresh_all)
3366 (tui_data_window::do_scroll_vertical): Update.
3367 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
3368 from tui_display_registers_from.
3369 (tui_display_reg_element_at_line): Update.
3370 (tui_data_window::display_registers_from_line): Rename from
3371 tui_display_registers_from_line.
3372 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
3373 display_registers_from_line>: New methods.
3375 2019-07-17 Tom Tromey <tom@tromey.com>
3377 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
3378 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
3379 from tui_erase_data_content.
3380 (tui_data_window::display_all_data)
3381 (tui_data_window::refresh_all)
3382 (tui_data_window::do_scroll_vertical): Update.
3383 * tui/tui-regs.c (tui_show_registers): Update.
3384 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
3387 2019-07-17 Tom Tromey <tom@tromey.com>
3389 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
3392 (tui_data_window::delete_data_content_windows): Rename from
3393 tui_delete_data_content_windows.
3394 (tui_data_window::display_all_data)
3395 (tui_data_window::do_scroll_vertical): Update.
3396 * tui/tui-data.h (struct tui_data_window)
3397 <delete_data_content_windows>: New method.
3399 2019-07-17 Tom Tromey <tom@tromey.com>
3401 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
3402 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
3404 2019-07-17 Tom Tromey <tom@tromey.com>
3406 * tui/tui-windata.h (tui_display_all_data): Don't declare.
3407 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
3408 from tui_display_all_data.
3410 (tui_data_window::do_make_visible_with_new_height): Update.
3411 * tui/tui-regs.c (tui_show_registers): Update.
3412 * tui/tui-layout.c (tui_set_layout): Update.
3413 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
3416 2019-07-17 Tom Tromey <tom@tromey.com>
3418 * tui/tui-windata.h (tui_display_data_from): Don't declare.
3419 * tui/tui-windata.c (tui_display_data_from): Remove.
3420 (tui_data_window::refresh_all): Update.
3422 2019-07-17 Tom Tromey <tom@tromey.com>
3424 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
3425 * tui/tui-windata.c (tui_display_data_from_line): Remove.
3426 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
3427 tui_display_registers_from_line.
3428 * tui/tui-regs.h (tui_display_registers_from_line): Update.
3429 * tui/tui-regs.c (tui_display_registers_from_line): Remove
3430 "force_display" parameter.
3432 2019-07-17 Tom Tromey <tom@tromey.com>
3434 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
3436 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
3437 Rename from tui_first_reg_element_no_inline.
3438 (tui_display_reg_element_at_line)
3439 (tui_display_registers_from_line): Update.
3440 * tui/tui-data.h (struct tui_data_window)
3441 <first_reg_element_no_inline>: New method.
3443 2019-07-17 Tom Tromey <tom@tromey.com>
3445 * tui/tui-windata.c (tui_display_data_from)
3446 (tui_data_window::do_scroll_vertical): Update.
3447 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
3448 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
3449 Rename from tui_line_from_reg_element_no.
3450 (tui_display_registers_from_line): Update.
3451 * tui/tui-data.h (struct tui_data_window)
3452 <line_from_reg_element_no>: New method.
3454 2019-07-17 Tom Tromey <tom@tromey.com>
3456 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
3457 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
3458 tui_last_regs_line_no.
3459 (tui_display_reg_element_at_line)
3460 (tui_display_registers_from_line): Update.
3461 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
3464 2019-07-17 Tom Tromey <tom@tromey.com>
3467 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
3468 (tui_update_breakpoint_info): Add "being_deleted" parameter.
3469 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3470 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
3471 (tui_update_breakpoint_info): Likewise.
3472 * tui/tui-hooks.c (tui_event_create_breakpoint)
3473 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
3476 2019-07-17 Tom Tromey <tom@tromey.com>
3478 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
3480 2019-07-17 Tom Tromey <tom@tromey.com>
3482 * tui/tui-winsource.c (tui_update_source_window_as_is)
3483 (tui_update_source_windows_with_addr): Update.
3484 * tui/tui-source.h (tui_set_source_content)
3485 (tui_show_symtab_source): Add "win_info" parameter.
3486 * tui/tui-source.c (tui_set_source_content): Add "win_info"
3488 (tui_show_symtab_source): Likewise.
3490 2019-07-17 Tom Tromey <tom@tromey.com>
3492 * tui/tui-wingeneral.c
3493 (tui_check_and_display_highlight_if_needed): Check can_highlight.
3495 2019-07-17 Tom Tromey <tom@tromey.com>
3497 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
3498 (struct tui_cmd_window) <can_scroll>: New method.
3499 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
3502 2019-07-17 Tom Tromey <tromey@adacore.com>
3504 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
3505 do_field_signed>: Rename. Change type of "value".
3506 * ui-out.c (ui_out::field_signed): Rename from field_int.
3507 Change type of "value".
3508 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
3510 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
3511 do_field_int. Change type of "value".
3512 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
3513 do_field_int. Change type of "value".
3514 * tracepoint.c (trace_status_mi, tfind_1)
3515 (print_one_static_tracepoint_marker): Update.
3516 * thread.c (print_thread_info_1, print_selected_thread_frame):
3518 * stack.c (print_frame, print_frame_info): Update.
3519 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
3521 * source.c (print_source_lines_base): Update.
3522 * skip.c (info_skip_command): Update.
3523 * record-btrace.c (btrace_ui_out_decode_error)
3524 (btrace_call_history_src_line): Update.
3525 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
3527 * progspace.c (print_program_space): Update.
3528 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
3529 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
3530 do_field_int. Change type of "value".
3531 * mi/mi-out.c (mi_ui_out::do_table_begin)
3532 (mi_ui_out::do_table_header): Update.
3533 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
3535 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
3536 (mi_cmd_data_list_changed_registers, output_register)
3537 (mi_cmd_data_read_memory, mi_load_progress)
3538 (mi_cmd_trace_frame_collected): Update.
3539 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
3541 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3542 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
3543 (mi_cmd_var_list_children, varobj_update_one): Update.
3544 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
3545 (mi_cmd_stack_list_args, list_arg_or_local): Update.
3546 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
3547 * inferior.c (print_inferior): Update.
3548 * gdb_bfd.c (print_one_bfd): Update.
3549 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3551 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
3552 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
3553 do_field_int. Change type of "value".
3554 * cli-out.c (cli_ui_out::do_field_signed): Rename from
3555 do_field_int. Change type of "value".
3556 * breakpoint.c (watchpoint_check, print_breakpoint_location)
3557 (print_one_breakpoint_location, print_it_catch_fork)
3558 (print_one_catch_fork, print_it_catch_vfork)
3559 (print_one_catch_vfork, print_it_catch_solib)
3560 (print_it_catch_exec, print_it_ranged_breakpoint)
3561 (print_mention_watchpoint, print_mention_masked_watchpoint)
3562 (bkpt_print_it, update_static_tracepoint): Update.
3563 * break-catch-throw.c (print_it_exception_catchpoint): Update.
3564 * break-catch-syscall.c (print_it_catch_syscall): Update.
3565 * ada-tasks.c (print_ada_task_info): Update.
3566 * ada-lang.c (print_it_exception, print_mention_exception):
3569 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3571 PR breakpoints/24541
3572 * gdbarch.c: Regenerate.
3573 * gdbarch.h: Regenerate.
3574 * gdbarch.sh: Adjust return type and parameter types for
3575 'stap_adjust_register'.
3576 (i386_stap_adjust_register): Adjust signature and return new
3578 * stap-probe.c (stap_parse_register_operand): Adjust use of
3579 'gdbarch_stap_adjust_register'.
3581 2019-07-17 Tom Tromey <tromey@adacore.com>
3583 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
3585 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
3587 (struct s390_process_info): Add initializers.
3588 (s390_add_process): Use new.
3589 (s390_linux_nat_target::low_forget_process): Use delete.
3590 (s390_linux_nat_target::low_new_fork)
3591 (s390_linux_nat_target::stopped_by_watchpoint)
3592 (s390_linux_nat_target::low_prepare_to_resume)
3593 (s390_linux_nat_target::insert_watchpoint)
3594 (s390_linux_nat_target::insert_hw_breakpoint)
3595 (s390_linux_nat_target::remove_watchpoint)
3596 (s390_linux_nat_target::remove_hw_breakpoint): Update.
3598 2019-07-16 John Baldwin <jhb@FreeBSD.org>
3600 * aarch64-fbsd-nat.c: Include regcache.h.
3601 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
3603 (aarch64_fbsd_nat_target::fetch_registers)
3604 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
3606 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
3608 2019-07-16 John Baldwin <jhb@FreeBSD.org>
3610 * fbsd-nat.c: Include gdbarch.h.
3612 2019-07-15 Tom Tromey <tromey@adacore.com>
3614 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
3616 2019-07-15 Tom Tromey <tromey@adacore.com>
3618 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
3619 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
3620 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
3621 * cli-out.c (cli_ui_out::do_field_int): New method.
3622 * ui-out.c (ui_out::field_unsigned): New method.
3623 * symfile.c (generic_load): Use field_unsigned.
3624 (print_transfer_performance): Likewise.
3625 * record-btrace.c (ui_out_field_uint): Remove.
3626 (btrace_call_history_insn_range, btrace_call_history): Use
3628 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
3630 * ui-out.h (class ui_out) <field_unsigned>: New method.
3631 <do_field_unsigned>: Likewise.
3633 2019-07-15 Tom Tromey <tromey@adacore.com>
3635 * mi/mi-main.c (list_available_thread_groups): Use field_string.
3636 * mi/mi-interp.c (mi_memory_changed): Use field_string.
3637 * target.c (flash_erase_command): Use field_string.
3638 * infrun.c (print_signal_received_reason): Use field_string.
3639 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
3640 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
3642 * ada-tasks.c (print_ada_task_info): Use field_string.
3644 2019-07-15 Tom Tromey <tromey@adacore.com>
3646 * target.c (flash_erase_command): Use field_core_addr.
3647 * symfile.c (generic_load): Use field_core_addr.
3648 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3649 Use field_core_addr.
3650 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
3653 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3655 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
3656 value if its desired type is smaller than a CORE_ADDR and signed.
3658 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3660 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
3661 of changes to field names, and use new is_reference field to
3662 decide if a property is a reference or not.
3663 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
3665 (struct dwarf2_property_baton): Update header comment, rename
3666 'referenced_type' to 'property_type' and update comments.
3667 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
3668 default property type, store in property baton, update to take
3669 accound of renamed field.
3670 (read_func_scope): Update call to attr_to_dynamic_prop.
3671 (read_array_type): Likewise.
3672 (dwarf2_per_cu_addr_sized_int_type): New function.
3673 (read_subrange_index_type): Move type finding code to
3674 dwarf2_per_cu_addr_sized_int_type.
3675 (read_subrange_type): Update calls to attr_to_dynamic_prop.
3676 (dwarf2_per_cu_addr_type): New function.
3677 (set_die_type): Update calls to attr_to_dynamic_prop.
3679 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3681 * dwarf2read.c (read_subrange_index_type): New function.
3682 (read_subrange_type): Move code into new function and call it.
3683 * gdbtypes.c (create_range_type): Add some asserts.
3685 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3687 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
3688 update return statements.
3689 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
3690 declaration, and update comment to match.
3691 * gdbtypes.c (resolve_dynamic_array): Update call to
3692 dwarf2_evaluate_property to match new return type.
3694 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3696 * valarith.c (value_subscripted_rvalue): Change lowerbound
3697 parameter type from int to LONGEST.
3698 * value.h (value_subscripted_rvalue): Likewise in declaration.
3700 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3702 * cli/cli-utils.c (info_print_command_completer): New function.
3703 * cli/cli-utils.h: Add 'completer.h' include, and forward
3704 declaration for 'struct cmd_list_element'.
3705 (info_print_command_completer): Declare.
3706 * stack.c (_initialize_stack): Add completer for 'info locals' and
3708 * symtab.c (_initialize_symtab): Add completer for 'info
3709 variables' and 'info functions'.
3710 * NEWS: Mention completion for additional info commands.
3712 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3714 * cli/cli-utils.c (extract_info_print_args): Delete.
3715 (extract_arg_maybe_quoted): Delete.
3716 (info_print_options_defs): New variable.
3717 (make_info_print_options_def_group): New function.
3718 (extract_info_print_options): Define new function.
3719 * cli/cli-utils.h (extract_info_print_args): Delete.
3720 (struct info_print_options): New structure.
3721 (extract_info_print_options): Declare new function.
3722 * stack.c (info_locals_command): Update to use new
3723 extract_info_print_options, also add a header comment.
3724 (info_args_command): Likewise.
3725 * symtab.c (info_variables_command): Likewise.
3726 (info_functions_command): Likewise.
3728 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3730 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
3731 to extract string arguments.
3732 * common/common-utils.c (extract_string_maybe_quoted): New function.
3733 * common/common-utils.h (extract_string_maybe_quoted): Declare.
3735 2019-07-11 Tom Tromey <tromey@adacore.com>
3737 * main.c (get_init_files): Use GDBINIT, not gdbinit.
3738 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
3739 * top.h (gdbinit): Don't declare.
3740 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
3742 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
3743 * top.c (gdb_init): Don't call init_cli_cmds.
3745 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
3747 2019-07-11 Tom Tromey <tromey@adacore.com>
3749 * python/py-inferior.c (add_thread_object): Don't use thread_obj
3750 after it has been moved.
3752 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3754 * valops.c (value_must_coerce_to_target): Change return type to
3756 * value.h (value_must_coerce_to_target): Likewise.
3758 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
3760 * breakpoint.c (is_hardware_watchpoint): Remove
3761 forward-declaration.
3762 (is_masked_watchpoint): Change return type to bool.
3763 (is_tracepoint): Likewise.
3764 (is_breakpoint): Likewise.
3765 (is_hardware_watchpoint): Likewise.
3766 (is_watchpoint): Likewise.
3767 (is_no_memory_software_watchpoint): Likewise.
3768 (is_catchpoint): Likewise.
3769 (breakpoint_1): Make FILTER parameter's return type bool.
3770 is_masked_watchpoint): Change return type to bool.
3771 (save_breakpoints): Make FILTER parameter's return type bool.
3772 * breakpoint.h (is_breakpoint): Change return type to bool.
3773 (is_watchpoint): Likewise.
3774 (is_catchpoint): Likewise.
3775 (is_tracepoint): Likewise.
3777 2019-07-10 Tom Tromey <tom@tromey.com>
3779 * defs.h: Don't include gdbarch.h.
3780 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
3781 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
3782 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
3783 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
3784 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
3785 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
3786 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
3787 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
3788 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
3789 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
3790 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
3791 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
3792 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
3793 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
3794 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
3795 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
3796 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
3797 record-btrace.c, record.h, regcache-dump.c, regcache.h,
3798 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
3799 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
3800 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
3801 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
3802 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
3803 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
3804 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
3805 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
3806 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
3808 2019-07-10 Tom Tromey <tromey@adacore.com>
3810 * ada-lang.h (is_ada_exception_catchpoint): Declare.
3811 * breakpoint.c (init_ada_exception_breakpoint): Register as
3813 (print_one_breakpoint_location, print_one_breakpoint): Use
3814 is_ada_exception_catchpoint.
3815 * ada-lang.c (class ada_catchpoint_location): Pass
3816 bp_loc_software_breakpoint to bp_location constructor.
3817 (is_ada_exception_catchpoint): New function.
3819 2019-07-10 Tom Tromey <tromey@adacore.com>
3821 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
3823 (struct arm_exidx_entry): New method operator<.
3824 (struct arm_exidx_data) <section_maps>: Change type.
3825 (arm_exidx_data_free): Remove.
3826 (arm_exidx_data_key): Change type. Move lower.
3827 (arm_exidx_new_objfile): Update.
3828 (arm_compare_exidx_entries): Remove.
3829 (arm_find_exidx_entry, _initialize_arm_tdep)
3831 2019-07-10 Tom Tromey <tromey@adacore.com>
3833 * solib-spu.c (ocl_program_data_key): Change type.
3834 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
3837 2019-07-10 Tom Tromey <tromey@adacore.com>
3839 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
3840 (struct solib_aix_inferior_data) <library_list>: Change type.
3841 (solib_aix_inferior_data_handle): Change type.
3842 (get_solib_aix_inferior_data): Update.
3843 (solib_aix_free_library_list): Remove.
3844 (library_list_start_library): Update.
3845 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
3847 (solib_aix_get_library_list)
3848 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
3849 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
3851 2019-07-10 Tom Tromey <tromey@adacore.com>
3853 * solib-dsbt.c (struct dsbt_info): Add initializers.
3854 (solib_dsbt_pspace_data): Change type.
3855 (dsbt_pspace_data_cleanup): Remove.
3856 (get_dsbt_info, _initialize_dsbt_solib): Update.
3858 2019-07-10 Tom Tromey <tromey@adacore.com>
3860 * spu-tdep.c (spu_overlay_data): Change type.
3861 (spu_get_overlay_table, spu_overlay_new_objfile)
3862 (_initialize_spu_tdep): Update.
3864 2019-07-10 Tom Tromey <tromey@adacore.com>
3866 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
3868 (dbx_objfile_data_key): Change type and declare later.
3869 (DBX_SYMFILE_INFO): Rewrite.
3870 * dbxread.c (dbx_objfile_data_key): Change type.
3871 (dbx_symfile_init): Update.
3872 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
3873 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3874 (stabsect_build_psymtabs, _initialize_dbxread): Update.
3876 2019-07-10 Tom Tromey <tromey@adacore.com>
3878 * jit.c (jit_program_space_key): Change type. Move lower.
3879 (get_jit_program_space_data): Update.
3880 (jit_program_space_data_cleanup): Remove.
3881 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
3883 (struct jit_program_space_data): Add initializers.
3885 2019-07-10 Tom Tromey <tromey@adacore.com>
3887 * solib-darwin.c (struct darwin_info): Add initializers.
3888 (solib_darwin_pspace_data): Change type.
3889 (darwin_pspace_data_cleanup): Remove.
3890 (get_darwin_info, _initialize_darwin_solib): Update.
3892 2019-07-10 Tom Tromey <tromey@adacore.com>
3894 * remote-sim.c (struct sim_inferior_data): Add initializers,
3895 constructor, and destructor.
3896 (sim_inferior_data_key): Change type. Move lower.
3897 (check_for_duplicate_sim_descriptor): Update.
3898 (get_sim_inferior_data): Use new. Update.
3899 (~sim_inferior_data_cleanup): Rename from
3900 sim_inferior_data_cleanup. Simplify.
3901 (gdbsim_close_inferior, simulator_command)
3902 (sim_command_completer, _initialize_remote_sim): Update.
3903 (next_pid, INITIAL_PID): Move earlier.
3905 2019-07-10 Tom Tromey <tromey@adacore.com>
3907 * python/python-internal.h (create_thread_object): Return
3909 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
3910 * python/py-inferior.c (struct threadlist_entry): Add
3912 <thread_obj>: Now a gdbpy_ref.
3913 (thread_to_thread_object): Update.
3914 (add_thread_object): Use new.
3915 (delete_thread_object): Use delete.
3916 (infpy_threads): Update.
3917 (py_free_inferior): Update. Construct "inf_obj" after acquiring
3920 2019-07-10 Tom Tromey <tromey@adacore.com>
3922 * valops.c (value_cast): Specialize error message for Ada.
3924 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3926 * breakpoint.c (breakpoint_1): Update doc and parameter names.
3928 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3930 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
3931 bpstat_should_step): Return bool, adjust comments.
3932 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
3933 bpstat_should_step): Likewise.
3935 2019-07-10 Alan Hayward <alan.hayward@arm.com>
3937 * features/Makefile: Use feature target descriptions for Arm.
3938 * features/arm/arm-core.c: Generate new file.
3939 * features/arm/arm-fpa.c: Likewise.
3940 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
3941 * features/arm/arm-m-profile.c: Likewise.
3942 * features/arm/arm-vfpv2.c: Likewise.
3943 * features/arm/arm-vfpv3.c: Likewise.
3944 * features/arm/xscale-iwmmxt.c: Likewise.
3945 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
3947 2019-07-10 Alan Hayward <alan.hayward@arm.com>
3949 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
3952 2019-07-10 Alan Hayward <alan.hayward@arm.com>
3954 * features/aarch64-pauth.c: Regenerate.
3956 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
3958 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
3960 (bpstat_what): Use false instead of 0.
3962 2019-07-09 Pedro Alves <palves@redhat.com>
3964 * break-catch-throw.c (is_exception_catchpoint): New.
3965 * breakpoint.c (print_one_breakpoint_location): New parameter
3966 'raw_loc'. Handle it. Use
3967 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
3968 looking at the breakpoint's type.
3969 (print_one_breakpoint): If handling "maint info breakpoints", also
3970 print locations of exception catchpoints.
3971 * breakpoint.h (is_exception_catchpoint): Declare.
3973 2019-07-09 Pedro Alves <palves@redhat.com>
3975 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
3977 (allocate_location_exception_catchpoint): New.
3978 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
3979 (initialize_throw_catchpoint_ops): Install
3980 allocate_location_exception_catchpoint as allocate_location
3982 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
3983 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
3985 (breakpoint_address_is_meaningful): Delete.
3986 (bl_address_is_meaningful): New.
3987 (breakpoint_locations_match): Adjust comment.
3988 (bp_location_from_bp_type): New, factored out of...
3989 (bp_location::bp_location(breakpoint *)): ... this.
3990 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
3992 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
3993 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
3994 breakpoint_address_is_meaningful.
3995 (bp_locations_compare): Adjust comment.
3996 (update_global_location_list): Use bl_address_is_meaningful
3997 instead of breakpoint_address_is_meaningful.
3998 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
4000 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
4001 * python/py-breakpoint.c (bppy_get_location): No longer check
4002 whether location is null.
4004 2019-07-09 Pedro Alves <palves@redhat.com>
4007 * breakpoint.c (print_one_breakpoint_location): Remove
4008 single-location assert.
4010 2019-07-09 Tom Tromey <tom@tromey.com>
4012 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
4013 * configure: Rebuild.
4014 * configure.ac: Change common to gdbsupport.
4015 * gdbsupport: Rename from common.
4016 * acinclude.m4: Change common to gdbsupport.
4017 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
4018 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
4020 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
4021 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
4022 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
4023 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
4024 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
4025 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
4026 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
4027 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
4028 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
4029 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
4030 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
4031 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
4032 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
4033 coff-pe-read.c, command.h, compile/compile-c-support.c,
4034 compile/compile-c.h, compile/compile-cplus-symbols.c,
4035 compile/compile-cplus-types.c, compile/compile-cplus.h,
4036 compile/compile-loc2c.c, compile/compile.c, completer.c,
4037 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
4038 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
4039 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
4040 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
4041 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
4042 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
4043 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
4044 features/aarch64-core.c, features/aarch64-fpu.c,
4045 features/aarch64-pauth.c, features/aarch64-sve.c,
4046 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
4047 features/i386/32bit-core.c, features/i386/32bit-linux.c,
4048 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
4049 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
4050 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
4051 features/i386/64bit-core.c, features/i386/64bit-linux.c,
4052 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
4053 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
4054 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
4055 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
4056 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
4057 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
4058 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
4059 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
4060 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
4061 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
4062 go32-nat.c, guile/guile.c, guile/scm-ports.c,
4063 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
4064 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
4065 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
4066 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
4067 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
4068 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
4069 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
4070 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
4071 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
4072 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
4073 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
4074 minsyms.c, mips-linux-tdep.c, namespace.h,
4075 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
4076 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
4077 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
4078 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
4079 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
4080 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
4081 nat/linux-waitpid.c, nat/mips-linux-watch.c,
4082 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
4083 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
4084 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
4085 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
4086 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
4087 procfs.c, producer.c, progspace.h, psymtab.h,
4088 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
4089 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
4090 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
4091 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
4092 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
4093 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
4094 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
4095 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
4096 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
4097 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
4098 target-memory.c, target.c, target.h, target/waitstatus.c,
4099 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
4100 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
4101 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
4102 unittests/array-view-selftests.c,
4103 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
4104 unittests/common-utils-selftests.c,
4105 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
4106 unittests/format_pieces-selftests.c,
4107 unittests/function-view-selftests.c,
4108 unittests/lookup_name_info-selftests.c,
4109 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
4110 unittests/mkdir-recursive-selftests.c,
4111 unittests/observable-selftests.c,
4112 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
4113 unittests/parse-connection-spec-selftests.c,
4114 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
4115 unittests/scoped_fd-selftests.c,
4116 unittests/scoped_mmap-selftests.c,
4117 unittests/scoped_restore-selftests.c,
4118 unittests/string_view-selftests.c, unittests/style-selftests.c,
4119 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
4120 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
4121 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
4122 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
4123 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
4124 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
4126 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4128 * linespec.c (decode_digits_list_mode): Set explicit_line to a
4130 (decode_digits_ordinary): Set explicit_line field in sal.
4131 * symtab.c (skip_prologue_sal): Don't skip prologue for a
4132 symtab_and_line that was set on an explicit line number in
4133 assembler code. Do always update the recorded symtab and line if
4134 we do skip the prologue.
4136 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4138 * breakpoint.c (set_breakpoint_location_function): Remove
4139 explicit_loc parameter.
4140 (momentary_breakpoint_from_master): Update call to
4141 set_breakpoint_location_function.
4142 (add_location_to_breakpoint): Likewise.
4144 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4146 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
4147 required features based on default bfd type when no specific bfd
4150 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4152 * NEWS: Mention that GDB printf and eval commands can now print
4153 C-style and Ada-style convenience var strings without
4154 calling the inferior.
4155 * printcmd.c (printf_c_string): Locally print GDB internal var
4156 instead of transiting via the inferior.
4157 (printf_wide_c_string): Likewise.
4159 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4161 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
4163 2019-07-04 Tom Tromey <tom@tromey.com>
4166 * tui/tui-winsource.c (tui_clear_source_content): Update.
4167 (tui_source_window_base::set_is_exec_point_at): Fix comment.
4168 (tui_update_breakpoint_info): Update.
4169 (tui_set_exec_info_content): Update.
4170 * tui/tui-source.c (tui_set_source_content_nil): Update.
4171 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
4173 * tui/tui-data.h (enum tui_bp_flag): New.
4174 (tui_bp_flags): New enum flags type.
4175 (struct tui_source_element) <break_mode>: Change type. Rename
4177 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
4178 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
4180 * tui/tui-winsource.h: Fix comment.
4182 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4184 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
4185 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
4186 (store_fpregs_to_thread)
4187 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
4188 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
4189 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
4190 (IWMMXT_REGS_SIZE): Add define.
4191 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
4192 (fetch_vfp_regs, store_vfp_regs)
4193 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
4194 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
4196 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4198 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
4200 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
4201 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
4202 (ARM_INT_REGISTER_SIZE): ...to this.
4203 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
4204 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
4205 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
4206 (arm_linux_collect_gregset, supply_nwfpe_register)
4207 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
4209 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
4210 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
4211 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
4212 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
4213 (arm_return_in_memory, arm_store_return_value)
4214 (arm_get_longjmp_target, arm_register_g_packet_guesses)
4215 (arm_record_ld_st_multiple): Likewise.
4216 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
4217 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
4219 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4221 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
4222 AARCH64_DISPLACED_MODIFIED_INSNS.
4223 * aarch64-tdep.c (struct aarch64_displaced_step_data)
4224 (aarch64_displaced_step_copy_insn): Likewise.
4225 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
4226 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
4227 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
4228 ARM_DISPLACED_MODIFIED_INSNS.
4229 * arm-tdep.c (arm_gdbarch_init): Likewise.
4230 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
4231 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
4232 (struct arm_displaced_step_closure): Use
4233 ARM_DISPLACED_MODIFIED_INSNS.
4235 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4237 * features/Makefile: Remove unused xml files.
4238 * features/aarch64.xml: Remove.
4239 * features/i386/amd64-avx-avx512-linux.xml: Remove.
4240 * features/i386/amd64-avx-avx512.xml: Remove.
4241 * features/i386/amd64-avx-linux.xml: Remove.
4242 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
4243 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
4244 * features/i386/amd64-avx-mpx-linux.xml: Remove.
4245 * features/i386/amd64-avx-mpx.xml: Remove.
4246 * features/i386/amd64-avx.xml: Remove.
4247 * features/i386/amd64-linux.xml: Remove.
4248 * features/i386/amd64-mpx-linux.xml: Remove.
4249 * features/i386/amd64-mpx.xml: Remove.
4250 * features/i386/amd64.xml: Remove.
4251 * features/i386/i386-avx-avx512-linux.xml: Remove.
4252 * features/i386/i386-avx-avx512.xml: Remove.
4253 * features/i386/i386-avx-linux.xml: Remove.
4254 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
4255 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
4256 * features/i386/i386-avx-mpx-linux.xml: Remove.
4257 * features/i386/i386-avx-mpx.xml: Remove.
4258 * features/i386/i386-avx.xml: Remove.
4259 * features/i386/i386-linux.xml: Remove.
4260 * features/i386/i386-mmx-linux.xml: Remove.
4261 * features/i386/i386-mmx.xml: Remove.
4262 * features/i386/i386-mpx-linux.xml: Remove.
4263 * features/i386/i386-mpx.xml: Remove.
4264 * features/i386/i386.xml: Remove.
4265 * features/i386/x32-avx-avx512-linux.xml: Remove.
4266 * features/i386/x32-avx-linux.xml: Remove.
4267 * features/i386/x32-linux.xml: Remove.
4269 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4271 * regformats/aarch64.dat: Remove.
4272 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
4273 * regformats/i386/amd64-avx-linux.dat: Remove.
4274 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
4275 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
4276 * regformats/i386/amd64-linux.dat: Remove.
4277 * regformats/i386/amd64-mpx-linux.dat: Remove.
4278 * regformats/i386/amd64.dat: Remove.
4279 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
4280 * regformats/i386/i386-avx-linux.dat: Remove.
4281 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
4282 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
4283 * regformats/i386/i386-linux.dat: Remove.
4284 * regformats/i386/i386-mmx-linux.dat: Remove.
4285 * regformats/i386/i386-mpx-linux.dat: Remove.
4286 * regformats/i386/i386.dat: Remove.
4287 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
4288 * regformats/i386/x32-avx-linux.dat: Remove.
4289 * regformats/i386/x32-linux.dat: Remove.
4291 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4293 * aarch64-tdep.c: Remove xml self tests.
4294 * amd64-linux-tdep.c: Likewise.
4295 * amd64-tdep.c: Likewise.
4296 * i386-linux-tdep.c: Likewise.
4297 * i386-tdep.c: Likewise.
4299 2019-07-03 Pedro Alves <palves@redhat.com>
4302 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
4303 (pipe_cmd_option_defs): New.
4304 (make_pipe_cmd_options_def_group): New.
4305 (pipe_command): Use gdb::option::process_options.
4306 (pipe_command_completer): New function.
4307 (_initialize_cli_cmds): Install completer for "pipe" command.
4309 2019-07-03 Pedro Alves <palves@redhat.com>
4311 * cli/cli-option.c (union option_value) <string>: New field.
4312 (struct option_def_and_value): Add ctor, move ctor, dtor and
4313 use DISABLE_COPY_AND_ASSIGN.
4314 (option_def_and_value::clear_value): New.
4315 (parse_option, save_option_value_in_ctx, get_val_type_str)
4316 (add_setshow_cmds_for_options): Handle var_string.
4317 * cli-option.h (union option_def::var_address) <string>: New
4319 (struct string_option_def): New.
4320 * maint-test-options.c (struct test_options_opts): Add default
4321 ctor and use DISABLE_COPY_AND_ASSIGN.
4322 <string_opt>: New field.
4323 (test_options_opts::~test_options_opts): New.
4324 (test_options_opts::dump): Also dump "-string".
4325 (test_options_option_defs): Install "string.
4327 2019-07-03 Pedro Alves <palves@redhat.com>
4329 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
4330 option_value with a null enumeration.
4331 (complete_options): Save the option values in the context.
4332 (save_option_value_in_ctx): New, factored out from ...
4333 (process_options): ... here.
4334 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
4336 * maint-test-options.c (test_options_opts::dump): New, factored
4338 (maintenance_test_options_command_mode): ... here.
4339 (maintenance_test_options_command_completion_result): Delete.
4340 (maintenance_test_options_command_completion_text): Update
4342 (maintenance_show_test_options_completion_result): Change
4343 prototype. Just print
4344 maintenance_test_options_command_completion_text.
4345 (save_completion_result): New.
4346 (maintenance_test_options_completer_mode): Pass options context to
4347 complete_options, and then save a dump.
4348 (_initialize_maint_test_options): Use add_cmd to install "maint
4349 show test-options-completion-result".
4351 2019-07-03 Pedro Alves <palves@redhat.com>
4353 * NEWS (New commands): Mention "with" and "maint with".
4354 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
4355 (with_command, with_command_completer): New.
4356 (pipe_command): Adjust to new repeat_previous
4358 (_initialize_cli_cmds): Install the "with" command and its "w"
4360 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
4362 * cli/cli-setshow.c (parse_cli_var_uinteger)
4363 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
4364 argument strings for all var_types.
4365 (get_setshow_command_value_string): New, factored out from ...
4366 (do_show_command): ... this.
4367 * cli/cli-setshow.h: Include <string>.
4368 (get_setshow_command_value_string): Declare.
4369 * command.h (repeat_previous): Now returns const char *. Adjust
4371 * maint.c: Include "cli/cli-cmds.h".
4372 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
4373 (_initialize_maint_cmds): Register the "maintenance with" command.
4374 * top.c (repeat_previous): Move bits from pipe_command here:
4375 Return the saved command line, if any; error out if there's no
4376 command to relaunch.
4378 2019-07-03 Pedro Alves <palves@redhat.com>
4380 * NEWS (New commands): Mention "maint set/show test-settings"
4381 instead of "maint test-settings".
4382 * maint-test-settings.c (maintenance_test_settings_list): Delete.
4383 (maintenance_test_settings_set_list): Rename to ...
4384 (maintenance_set_test_settings_list): ... this.
4385 (maintenance_test_settings_show_list): Rename to ...
4386 (maintenance_show_test_settings_list): ... this.
4387 (maintenance_test_settings_cmd): Delete.
4388 (maintenance_test_settings_set_cmd): ...
4389 (maintenance_set_test_settings_cmd): ... this.
4390 (maintenance_test_settings_show_cmd): ...
4391 (maintenance_show_test_settings_cmd): ... this.
4392 (maintenance_test_settings_show_value_cmd):
4393 (maintenance_show_test_settings_value_cmd): ... this.
4394 (_initialize_maint_test_settings): No longer install the "maint
4395 test-settings" prefix command. Rename "maint test-settings set"
4396 to "maint set test-settings", and "maint test-settings show" to
4397 "maint show test-settings". Adjust all subcommands.
4399 2019-07-03 Pedro Alves <palves@redhat.com>
4401 * maint-test-settings.c: Fix file's intro comment. Replace all
4402 references to "test-options" with references to "test-settings",
4405 2019-07-03 Pedro Alves <palves@redhat.com>
4407 * maint-test-settings.c (maintenance_test_settings_xxx)
4408 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
4410 (maintenance_test_settings_enums): Use them.
4411 (maintenance_test_settings_enum): Default to
4412 maintenance_test_settings_xxx.
4413 (_initialize_maint_test_settings): Initialize
4414 MAINTENANCE_TEST_SETTINGS_FILENAME.
4416 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4418 * breakpoint.h (remove_breakpoints_inf): Change return type to
4419 void, move function documentation here.
4420 * breakpoint.c (remove_breakpoints_inf): Change return type to
4421 void, move function documentation to header.
4423 2019-07-02 Pedro Alves <palves@redhat.com>
4425 * NEWS (Completion improvements): Mention "info threads".
4426 * thread.c (struct info_threads_opts, info_threads_option_defs)
4427 (make_info_threads_options_def_group): New.
4428 (info_threads_command): Use gdb::option::process_options.
4429 (info_threads_command_completer): New.
4430 (_initialize_thread): Use gdb::option::build_help to build the
4431 help text for "info threads".
4433 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4435 * defs.h (generic_load): Move from here...
4436 * symfile.h (generic_load): ... to here. Rename name parameter
4438 * symfile.c (generic_load): Add comment.
4440 2019-07-01 Tom Tromey <tromey@adacore.com>
4443 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
4444 declaration of without_params. Fix formatting.
4446 2019-07-01 Tom Tromey <tromey@adacore.com>
4448 * ada-exp.y (find_primitive_type): Update.
4449 * ada-lang.h (ada_lookup_symbol): Update.
4450 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
4452 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
4454 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
4456 PR breakpoints/24541
4457 * gdbarch.c: Regenerate.
4458 * gdbarch.h: Regenerate.
4459 * gdbarch.sh: Add 'stap_adjust_register'.
4460 * i386-tdep.c: Include '<unordered_set>'.
4461 (i386_stap_adjust_register): New function.
4462 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
4463 * stap-probe.c (stap_parse_register_operand): Call
4464 'gdbarch_stap_adjust_register'.
4466 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
4469 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
4470 * python/python.c (do_start_initialization): Use 'xmalloc'
4471 instead of 'PyMem_Malloc'.
4473 2019-06-28 Tom Tromey <tromey@adacore.com>
4475 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
4478 2019-06-27 Tom Tromey <tromey@adacore.com>
4480 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
4482 (arm_find_mapping_symbol, arm_record_special_symbol)
4483 (_initialize_arm_tdep): Update.
4484 (arm_objfile_data_free): Remove.
4486 2019-06-27 Tom Tromey <tromey@adacore.com>
4488 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
4489 to cp_print_static_field.
4491 2019-06-26 Tom Tromey <tromey@adacore.com>
4493 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
4494 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
4497 2019-06-26 Alan Hayward <alan.hayward@arm.com>
4499 * features/aarch64-core.c (create_feature_aarch64_core):
4501 * features/aarch64-core.xml: Add cpsr flags.
4503 2019-06-26 Alan Hayward <alan.hayward@arm.com>
4505 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
4506 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
4508 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
4510 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
4512 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
4514 (arm_record_special_symbol): Don't insert new symbol in sorted
4515 position, push it at the end.
4517 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
4519 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
4520 (arm_mapping_symbol_s): Remove.
4521 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
4522 (arm_mapping_symbol_vec): New typedef.
4523 (struct arm_per_objfile): Add constructor.
4524 <section_maps>: Change type to
4525 std::unique_ptr<arm_mapping_symbol_vec[]>.
4526 (arm_compare_mapping_symbols): Remove.
4527 (arm_find_mapping_symbol): Adjust to section_maps type change.
4528 (arm_objfile_data_free): Call delete on arm_per_objfile.
4529 (arm_record_special_symbol): Adjust to section_maps type change.
4530 Allocate arm_per_objfile with new.
4532 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4534 * cli/cli-cmds.c (alias_command): Compare the alias prefix
4535 with the command prefix.
4537 2019-06-25 Tom Tromey <tom@tromey.com>
4539 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
4540 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
4542 2019-06-25 Tom Tromey <tom@tromey.com>
4544 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
4546 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
4549 2019-06-25 Tom Tromey <tom@tromey.com>
4551 * tui/tui-winsource.c
4552 (tui_source_window_base::set_is_exec_point_at): Add check against
4555 2019-06-25 Tom Tromey <tom@tromey.com>
4557 * tui/tui-source.c (tui_set_source_content): Don't check before
4559 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
4561 2019-06-25 Tom Tromey <tom@tromey.com>
4563 * tui/tui-winsource.h (tui_update_source_window_as_is)
4564 (tui_alloc_source_buffer, tui_line_is_displayed)
4565 (tui_addr_is_displayed): Change type of win_info.
4566 * tui/tui-winsource.c (tui_update_source_window_as_is)
4567 (tui_clear_source_content, tui_show_source_line)
4568 (tui_show_source_content, tui_source_window_base::refill)
4569 (tui_source_window_base::set_is_exec_point_at)
4570 (tui_source_window_base::set_is_exec_point_at)
4571 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
4572 (tui_alloc_source_buffer, tui_line_is_displayed)
4573 (tui_addr_is_displayed): Change type of win_info. Update.
4574 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4575 (tui_source_window_base::do_make_visible_with_new_height):
4577 * tui/tui-source.c (tui_set_source_content)
4578 (tui_set_source_content_nil)
4579 (tui_source_window::do_scroll_vertical): Update.
4580 * tui/tui-layout.c (show_layout): Update.
4581 * tui/tui-disasm.c (tui_set_disassem_content)
4582 (tui_disasm_window::do_scroll_vertical): Update.
4583 * tui/tui-data.h (tui_win_content): Remove.
4584 (struct tui_gen_win_info) <content, content_size>: Remove.
4585 (struct tui_source_element): Add initializers and destructor.
4586 (union tui_which_element, struct tui_win_element): Remove.
4587 (struct tui_source_window_base) <content>: New field.
4588 (struct tui_data_window): Remove destructor.
4589 (tui_alloc_content, tui_free_win_content)
4590 (tui_free_all_source_wins_content): Don't declare.
4591 * tui/tui-data.c (tui_initialize_static_data): Update.
4592 (init_content_element, tui_alloc_content): Remove.
4593 (~tui_gen_win_info): Update.
4594 (~tui_data_window, tui_free_all_source_wins_content)
4595 (tui_free_win_content, free_content, free_content_elements):
4598 2019-06-25 Tom Tromey <tom@tromey.com>
4600 * tui/tui-winsource.h (tui_clear_source_content)
4601 (tui_erase_source_content, tui_show_source_content): Change type
4603 * tui/tui-winsource.c (tui_clear_source_content)
4604 (tui_erase_source_content, tui_show_source_content): Change type
4606 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4607 * tui/tui-source.h (tui_set_source_content_nil): Change type of
4609 * tui/tui-source.c (tui_set_source_content_nil): Change type of
4611 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
4613 2019-06-25 Tom Tromey <tom@tromey.com>
4615 * tui/tui-winsource.c (tui_clear_source_content)
4616 (tui_source_window_base::set_is_exec_point_at): Update.
4617 * tui/tui-source.c (tui_set_source_content_nil): Update.
4618 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
4620 * tui/tui-data.c (init_content_element): Update.
4622 2019-06-25 Tom Tromey <tom@tromey.com>
4624 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
4625 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
4626 * tui/tui-layout.c (init_and_make_win): Update.
4627 * tui/tui.h (enum tui_win_type): Update.
4628 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
4629 tui_win_is_auxillary.
4630 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
4631 tui_win_is_auxillary.
4633 2019-06-25 Tom Tromey <tom@tromey.com>
4635 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
4636 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
4637 (tui_delete_data_content_windows, tui_display_all_data)
4638 (tui_data_window::do_scroll_vertical, tui_display_data_from):
4640 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
4641 * tui/tui-regs.c (tui_last_regs_line_no)
4642 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
4643 (tui_show_registers): Update.
4644 (tui_show_register_group): Return void. Update.
4645 (tui_display_registers_from, tui_display_reg_element_at_line)
4646 (tui_display_registers_from_line, tui_check_register_values):
4648 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
4650 (struct tui_data_window) <regs_content>: Now a std::vector.
4651 <regs_content_count>: Remove.
4652 (tui_add_content_elements, tui_free_data_content): Don't declare.
4653 * tui/tui-data.c (tui_data_window::clear_detail): Update.
4654 (init_content_element): Remove DATA_WIN case. Add assert.
4655 (tui_add_content_elements): Remove.
4656 (tui_data_window): Update.
4657 (tui_free_data_content): Remove.
4658 (free_content_elements): Remove DATA_WIN case.
4660 2019-06-25 Tom Tromey <tom@tromey.com>
4662 * tui/tui-data.c (tui_data_item_window): Update.
4663 * tui/tui-windata.h (tui_check_data_values): Don't declare.
4664 * tui/tui-windata.c (tui_display_all_data)
4665 (tui_display_data_from_line): Update.
4666 (tui_check_data_values): Remove.
4667 * tui/tui-regs.c (tui_show_register_group)
4668 (tui_display_reg_element_at_line): Update.
4669 * tui/tui-hooks.c (tui_register_changed)
4670 (tui_refresh_frame_and_register_information): Call
4671 tui_check_register_values.
4672 * tui/tui-data.h (struct tui_data_window) <data_content,
4673 data_content_count, data_type>: Remove.
4674 (enum tui_data_type): Remove.
4676 * tui/tui-data.c (tui_data_window::clear_detail)
4677 (~tui_data_window): Update.
4679 2019-06-25 Tom Tromey <tom@tromey.com>
4681 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
4683 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
4684 Rename from tui_first_data_item_displayed. Update.
4685 (tui_data_window::refresh_all)
4686 (tui_data_window::do_scroll_vertical): Update.
4687 * tui/tui-data.h (struct tui_data_window)
4688 <first_data_item_displayed>: Declare new method.
4690 2019-06-25 Tom Tromey <tom@tromey.com>
4692 * tui/tui-data.h (tui_init_generic_part): Don't declare.
4693 * tui/tui-data.c (tui_init_generic_part): Remove, moving
4695 (tui_initialize_static_data): ...here.
4697 2019-06-25 Tom Tromey <tom@tromey.com>
4699 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4700 (tui_display_registers_from, tui_check_register_values): Update.
4701 (tui_display_register): Remove win_info parameter; update.
4702 (tui_get_register): Change type of parameters.
4703 * tui/tui-data.h (struct tui_data_element): Remove.
4704 (union tui_which_element) <data>: Remove.
4705 <data_window>: Change type.
4706 (struct tui_data_item_window): New.
4707 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
4709 (~tui_data_item_window): New destructor.
4710 (free_content_elements): Remove DATA_ITEM_WIN case.
4712 2019-06-25 Tom Tromey <tom@tromey.com>
4714 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
4717 2019-06-25 Tom Tromey <tom@tromey.com>
4719 * tui/tui-data.h (struct tui_command_element): Remove.
4720 (union tui_which_element) <command>: Remove.
4721 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
4723 (free_content_elements): Remove CMD_WIN case.
4725 2019-06-25 Tom Tromey <tom@tromey.com>
4727 * tui/tui-layout.c (tui_set_layout): Update.
4728 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
4729 * tui/tui-data.c (layout_def): Update.
4731 2019-06-25 Tom Tromey <tom@tromey.com>
4733 * tui/tui-wingeneral.c (tui_refresh_all): Update.
4734 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4735 (tui_source_window_base::set_new_height): Update.
4736 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
4738 (tui_set_locator_fullname, tui_set_locator_info)
4739 (tui_show_frame_info): Update.
4740 * tui/tui-source.c (tui_set_source_content)
4741 (tui_source_is_displayed): Update.
4742 * tui/tui-layout.c (show_source_disasm_command, show_data)
4743 (show_source_or_disasm_and_command): Update.
4744 * tui/tui-disasm.c (tui_set_disassem_content)
4745 (tui_get_begin_asm_address): Update.
4746 * tui/tui-data.h (struct tui_locator_element): Remove.
4747 (union tui_which_element) <locator>: Remove.
4748 (struct tui_locator_window): New.
4749 (tui_locator_win_info_ptr): Change return type.
4750 * tui/tui-data.c (_locator): Change type.
4751 (tui_locator_win_info_ptr): Change return type.
4752 (init_content_element): Remove LOCATOR_WIN case. Add assert.
4753 (tui_alloc_content): Add assert.
4755 2019-06-25 Tom Tromey <tom@tromey.com>
4757 * tui/tui-winsource.c
4758 (tui_exec_info_window::maybe_allocate_content): New method.
4759 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
4760 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
4761 (make_source_or_disasm_window): Add cast.
4762 * tui/tui-data.h (union tui_which_element) <simple_string>:
4764 (struct tui_source_info): New.
4765 (struct tui_source_window_base) <execution_info>: Change type.
4766 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
4767 case, and add assert.
4768 (tui_alloc_content): Add assert.
4770 2019-06-25 Tom Tromey <tom@tromey.com>
4772 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
4773 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
4774 * tui/tui-data.c (tui_alloc_win_info): Remove.
4776 2019-06-25 Tom Tromey <tom@tromey.com>
4778 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
4779 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
4782 2019-06-25 Tom Tromey <tom@tromey.com>
4784 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
4785 make_visible_with_new_height method.
4786 (tui_win_info::make_visible_with_new_height): New method.
4787 (tui_source_window_base::do_make_visible_with_new_height)
4788 (tui_data_window::do_make_visible_with_new_height)
4789 (tui_cmd_window::do_make_visible_with_new_height): New methods.
4790 (make_visible_with_new_height): Remove.
4791 (tui_resize_all, tui_adjust_win_heights): Use
4792 make_visible_with_new_height method.
4793 * tui/tui-data.h (struct tui_win_info)
4794 <do_make_visible_with_new_height, make_visible_with_new_height>:
4796 (struct tui_source_window_base, struct tui_data_window)
4797 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
4800 2019-06-25 Tom Tromey <tom@tromey.com>
4802 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
4804 (update_tab_width): Call update_tab_width method.
4805 * tui/tui-data.h (struct tui_win_info)
4806 (struct tui_source_window_base) <update_tab_width>: New methods.
4808 2019-06-25 Tom Tromey <tom@tromey.com>
4810 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
4812 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
4814 (tui_gen_win_info::make_visible): Update.
4815 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
4817 * tui/tui-data.h (enum tui_box): New enum.
4818 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
4820 2019-06-25 Tom Tromey <tom@tromey.com>
4822 * tui/tui-layout.c (make_source_or_disasm_window): Always use
4823 init_and_make_win for EXEC_INFO_WIN.
4824 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
4826 (struct tui_win_info) <~tui_win_info>: Inline.
4827 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4829 * tui/tui-data.c (source_win, disasm_win): Remove globals.
4830 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4832 (tui_initialize_static_data): Update.
4833 (~tui_gen_win_info): Handle more cleanup here.
4834 (~tui_source_window_base): Delete "execution_info".
4835 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
4837 2019-06-25 Tom Tromey <tom@tromey.com>
4839 * tui/tui-layout.c (make_command_window): Don't set
4841 (show_source_disasm_command): Call the reset method.
4842 (show_data): Don't set can_highlight. Call the reset method.
4843 (tui_gen_win_info::reset): Rename from init_gen_win_info
4844 (init_and_make_win): Simplify. Return tui_gen_win_info.
4845 (show_source_or_disasm_and_command): Call the reset method.
4846 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
4847 (struct tui_cmd_window): Set can_highlight.
4849 2019-06-25 Tom Tromey <tom@tromey.com>
4851 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
4853 (tui_make_visible, tui_make_invisible): Rewrite.
4854 (tui_win_info::make_visible): Remove.
4855 (tui_source_window_base::make_visible): Update.
4856 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
4857 method. Moved from...
4858 (struct tui_win_info) <make_visible>: ...here.
4860 2019-06-25 Tom Tromey <tom@tromey.com>
4862 * tui/tui-winsource.c
4863 (tui_source_window_base::do_scroll_horizontal): Remove direction
4865 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
4866 direction parameter.
4867 * tui/tui-win.c (tui_win_info::forward_scroll)
4868 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
4869 (tui_win_info::right_scroll): Update.
4870 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
4871 direction parameter.
4872 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
4873 direction parameter.
4874 * tui/tui-data.h (enum tui_scroll_direction): Remove.
4875 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
4876 Remove direction parameter.
4877 (struct tui_source_window_base, struct tui_source_window)
4878 (struct tui_disasm_window, struct tui_data_window)
4879 (struct tui_cmd_window): Update.
4881 2019-06-25 Tom Tromey <tom@tromey.com>
4883 * tui/tui-winsource.h (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.
4887 * tui/tui-winsource.c (tui_set_exec_info_content)
4888 (tui_show_exec_info_content, tui_erase_exec_info_content)
4889 (tui_clear_exec_info_content, tui_update_exec_info): Change
4890 argument to tui_source_window_base.
4892 2019-06-25 Tom Tromey <tom@tromey.com>
4894 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
4895 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
4897 2019-06-25 Tom Tromey <tom@tromey.com>
4899 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
4902 2019-06-25 Tom Tromey <tom@tromey.com>
4904 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
4906 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
4908 * tui/tui-source.c (tui_set_source_content): Update.
4909 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4911 2019-06-25 Tom Tromey <tom@tromey.com>
4913 * tui/tui-win.c (window_name_completer, tui_set_focus)
4914 (tui_all_windows_info): Use name method.
4915 * tui/tui-data.h (struct tui_gen_win_info)
4916 (struct tui_source_window, struct tui_disasm_window)
4917 (struct tui_data_window, struct tui_cmd_window) <name>: New
4919 (tui_win_name): Don't declare.
4920 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
4921 (tui_win_name): Remove.
4923 2019-06-25 Tom Tromey <tom@tromey.com>
4925 * tui/tui-winsource.h (tui_update_source_window)
4926 (tui_update_source_window_as_is): Change parameter type.
4927 * tui/tui-winsource.c (tui_update_source_window): Change win_info
4928 to be a tui_source_window_base.
4929 (tui_update_source_window_as_is): Likewise.
4930 * tui/tui-win.c (make_visible_with_new_height): Update.
4932 2019-06-25 Tom Tromey <tom@tromey.com>
4934 * tui/tui-winsource.c (tui_erase_source_content)
4935 (tui_show_source_content, tui_show_exec_info_content)
4936 (tui_erase_exec_info_content): Use refresh_window method.
4937 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
4938 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
4939 from tui_refresh_win.
4940 (tui_data_window::refresh_window): New method.
4941 (tui_win_info::refresh, tui_source_window_base::refresh)
4942 (tui_refresh_all): Use refresh_window method.
4943 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
4945 * tui/tui-regs.c (tui_display_register): Call refresh_window
4947 * tui/tui-layout.c (show_source_disasm_command)
4948 (show_source_or_disasm_and_command): Call refresh_window method.
4949 * tui/tui-data.h (struct tui_gen_win_info)
4950 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
4953 2019-06-25 Tom Tromey <tom@tromey.com>
4955 * tui/tui.c (tui_rl_other_window, tui_enable)
4956 (tui_is_window_visible, tui_get_command_dimension): Update.
4957 * tui/tui-winsource.c (tui_update_source_window_as_is)
4958 (tui_clear_source_content, tui_erase_source_content)
4959 (tui_show_source_line, tui_source_window_base::refill)
4960 (tui_source_window_base::do_scroll_horizontal)
4961 (tui_source_window_base::set_is_exec_point_at)
4962 (tui_update_breakpoint_info, tui_set_exec_info_content)
4963 (tui_alloc_source_buffer, tui_line_is_displayed)
4964 (tui_addr_is_displayed): Update.
4965 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
4966 (tui_check_and_display_highlight_if_needed)
4967 (tui_win_info::make_visible, tui_win_info::refresh)
4968 (tui_refresh_all): Update.
4969 * tui/tui-windata.c (tui_first_data_item_displayed)
4970 (tui_delete_data_content_windows, tui_erase_data_content)
4971 (tui_display_all_data, tui_data_window::refresh_all)
4972 (tui_check_data_values): Update.
4973 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
4974 (tui_set_win_focus_to, tui_win_info::forward_scroll)
4975 (tui_win_info::backward_scroll, tui_refresh_all_win)
4976 (tui_resize_all, tui_set_focus, tui_all_windows_info)
4977 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
4978 (tui_source_window_base::set_new_height)
4979 (tui_data_window::set_new_height)
4980 (make_invisible_and_set_new_height)
4981 (make_visible_with_new_height, new_height_ok)
4982 (parse_scrolling_args): Update.
4983 * tui/tui-stack.c (tui_show_frame_info): Update.
4984 * tui/tui-source.c (tui_set_source_content)
4985 (tui_set_source_content_nil, tui_source_is_displayed)
4986 (tui_source_window::do_scroll_vertical): Update.
4987 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4988 (tui_display_registers_from, tui_display_reg_element_at_line)
4989 (tui_check_register_values, tui_reg_command): Update.
4990 * tui/tui-layout.c (tui_default_win_height)
4991 (show_source_disasm_command, show_data, init_and_make_win)
4992 (show_source_or_disasm_and_command): Update.
4993 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
4994 (tui_redisplay_readline, tui_mld_flush)
4995 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
4997 * tui/tui-disasm.c (tui_set_disassem_content)
4998 (tui_disasm_window::do_scroll_vertical): Update.
4999 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
5001 (struct tui_win_info): Derive from tui_gen_win_info.
5002 <~tui_win_info>: Mark as override.
5003 <generic>: Remove member.
5004 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
5005 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
5006 (~tui_data_window, ~tui_win_info)
5007 (tui_free_all_source_wins_content): Update.
5008 * tui/tui-command.c (tui_refresh_cmd_win): Update.
5010 2019-06-25 Tom Tromey <tom@tromey.com>
5012 * tui/tui-layout.c (init_and_make_win): Use new.
5013 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
5014 destructor, initializers.
5015 (tui_alloc_generic_win_info): Don't declare.
5016 * tui/tui-data.c (_locator): Add argument to constructor.
5017 (source_win, disasm_win): New globals.
5018 (exec_info): Remove.
5019 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5021 (tui_alloc_generic_win_info): Remove.
5022 (init_content_element): Use new.
5023 (tui_win_info::tui_win_info): Update.
5024 (free_content_elements) <case DATA_WIN>: Use delete.
5026 2019-06-25 Tom Tromey <tom@tromey.com>
5028 * tui/tui-wingeneral.c (tui_refresh_win): Update.
5029 * tui/tui-windata.c (tui_first_data_item_displayed)
5030 (tui_delete_data_content_windows): Update.
5031 * tui/tui-win.c (tui_data_window::set_new_height): Update.
5032 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5033 (tui_display_registers_from, tui_check_register_values): Update.
5034 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
5036 * tui/tui-data.c (init_content_element): Update. Allocate the new
5038 (tui_free_data_content): Update.
5039 (free_content_elements) <case DATA_WIN>: Free the window.
5041 2019-06-25 Tom Tromey <tom@tromey.com>
5043 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
5045 * tui/tui-layout.c (make_command_window)
5046 (show_source_disasm_command, show_data, init_and_make_win)
5047 (show_source_or_disasm_and_command): Update.
5048 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
5050 <can_highight, is_highlighted>: Now bool.
5051 (tui_set_win_highlight): Don't declare.
5052 * tui/tui-data.c (tui_set_win_highlight): Remove.
5054 2019-06-25 Tom Tromey <tom@tromey.com>
5056 * tui/tui-wingeneral.c (make_visible): Remove check of window
5059 2019-06-25 Tom Tromey <tom@tromey.com>
5061 * tui/tui-win.c (tui_win_info::max_height)
5062 (tui_cmd_window::max_height): New methods.
5063 (new_height_ok): Call max_height.
5064 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
5065 <max_height>: New method.
5067 2019-06-25 Tom Tromey <tom@tromey.com>
5069 * tui/tui-win.c (tui_source_window_base::set_new_height)
5070 (tui_data_window::set_new_height): New methods.
5071 (make_invisible_and_set_new_height): Call set_new_height method.
5072 * tui/tui-data.h (struct tui_win_info)
5073 (struct tui_source_window_base, struct tui_data_window)
5074 <set_new_height>: New method.
5076 2019-06-25 Tom Tromey <tom@tromey.com>
5078 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
5079 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
5080 tui_refresh_data_win.
5081 * tui/tui-win.c (tui_source_window_base::refresh_all): New
5083 (tui_refresh_all_win): Call the refresh_all method.
5084 (tui_set_focus): Likewise.
5085 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
5086 (struct tui_source_window_base, struct tui_data_window) <refresh>:
5089 2019-06-25 Tom Tromey <tom@tromey.com>
5091 * tui/tui-winsource.h (tui_refill_source_window)
5092 (tui_set_is_exec_point_at): Don't declare.
5093 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
5094 (tui_source_window_base::refill): Rename from
5095 tui_refill_source_window.
5096 (tui_source_window_base::do_scroll_horizontal): Update.
5097 (tui_source_window_base::set_is_exec_point_at): Rename from
5098 tui_set_is_exec_point_at.
5099 (tui_update_all_breakpoint_info): Update.
5100 * tui/tui-stack.c (tui_show_frame_info): Update.
5101 * tui/tui-layout.c (show_data): Add cast.
5102 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
5103 * tui/tui-data.h (struct tui_source_window_base) <refill,
5104 set_is_exec_point_at>: New methods.
5105 (tui_source_windows, tui_add_to_source_windows): Update types.
5106 (tui_add_to_source_windows): Remove redundant declaration.
5107 * tui/tui-data.c (source_windows): Store tui_source_window_base.
5108 (tui_source_windows): Change return type.
5109 (tui_clear_source_windows_detail): Update.
5110 (tui_add_to_source_windows): Change type of parameter.
5111 (tui_free_all_source_wins_content): Update.
5113 2019-06-25 Tom Tromey <tom@tromey.com>
5115 * tui/tui-wingeneral.c (tui_win_info::refresh)
5116 (tui_source_window_base::refresh): New methods.
5117 (tui_refresh_all): Call the refresh method.
5118 * tui/tui-data.h (struct tui_win_info)
5119 (struct tui_source_window_base) <refresh>: New method.
5121 2019-06-25 Tom Tromey <tom@tromey.com>
5123 * tui/tui.h (tui_is_window_visible): Return bool.
5124 * tui/tui.c (tui_is_window_visible): Return bool.
5125 * tui/tui-wingeneral.c (tui_make_window, make_visible)
5126 (tui_make_visible, tui_make_invisible)
5127 (tui_win_info::make_visible)
5128 (tui_source_window_base::make_visible, make_all_visible)
5129 (tui_make_all_visible, tui_make_all_invisible): Update.
5130 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
5131 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
5133 (struct tui_win_info, struct tui_source_window_base)
5134 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
5135 * tui/tui-data.c (tui_init_generic_part): Update.
5137 2019-06-25 Tom Tromey <tom@tromey.com>
5139 * tui/tui-wingeneral.c (tui_win_info::make_visible)
5140 (tui_source_window_base::make_visible): New methods.
5141 (make_all_visible): Make method call.
5142 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
5143 (struct tui_source_window_base, struct tui_cmd_window): Override
5145 (tui_win_is_source_type): Don't declare.
5146 * tui/tui-data.c (tui_win_is_source_type): Remove.
5148 2019-06-25 Tom Tromey <tom@tromey.com>
5150 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
5153 2019-06-25 Tom Tromey <tom@tromey.com>
5155 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
5156 Inline constructor. Add initializers for members.
5157 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
5158 constructors; now inline in class.
5160 2019-06-25 Tom Tromey <tom@tromey.com>
5162 * tui/tui-regs.c (tui_show_registers): Update.
5163 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
5165 * tui/tui-data.c (tui_data_window::clear_detail)
5166 (tui_data_window): Update.
5168 2019-06-25 Tom Tromey <tom@tromey.com>
5170 * tui/tui-windata.c (tui_display_all_data)
5171 (tui_display_data_from_line, tui_display_data_from)
5172 (tui_check_data_values, tui_data_window::do_scroll_vertical):
5174 * tui/tui-regs.c (tui_last_regs_line_no)
5175 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
5176 (tui_show_registers, tui_show_register_group)
5177 (tui_display_registers_from, tui_display_reg_element_at_line)
5178 (tui_display_registers_from_line, tui_check_register_values)
5179 (tui_reg_next, tui_reg_prev): Update.
5180 * tui/tui-layout.c (tui_set_layout, show_data): Update.
5181 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
5183 (struct tui_win_info) <detail>: Remove. Add new fields from
5185 (TUI_DATA_WIN): Add cast.
5186 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
5187 (~tui_data_window): Simplify.
5189 2019-06-25 Tom Tromey <tom@tromey.com>
5191 * tui/tui-layout.c (show_source_disasm_command)
5192 (show_source_or_disasm_and_command): Update.
5193 * tui/tui-io.c (update_cmdwin_start_line)
5194 (tui_redisplay_readline): Update.
5195 * tui/tui-data.h (struct tui_command_info): Remove.
5196 (struct tui_win_info) <detail>: Remove command_info member.
5197 (struct tui_data_window) <start_line>: New member, from
5199 (TUI_CMD_WIN): Add casts.
5201 2019-06-25 Tom Tromey <tom@tromey.com>
5203 * tui/tui-winsource.c (tui_update_source_window)
5204 (tui_refill_source_window)
5205 (tui_source_window_base::do_scroll_horizontal)
5206 (tui_update_breakpoint_info, tui_set_exec_info_content)
5207 (tui_show_exec_info_content, tui_erase_exec_info_content)
5208 (tui_clear_exec_info_content): Update.
5209 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
5211 * tui/tui-win.c (make_invisible_and_set_new_height)
5212 (make_visible_with_new_height): Update.
5213 * tui/tui-source.c (tui_set_source_content)
5214 (tui_show_symtab_source): Update.
5215 * tui/tui-layout.c (extract_display_start_addr)
5216 (show_source_disasm_command, show_data)
5217 (make_source_or_disasm_window)
5218 (show_source_or_disasm_and_command): Update.
5219 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
5220 (tui_disasm_window::do_scroll_vertical): Remove shadowing
5222 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
5223 to tui_source_window_base.
5224 (struct tui_win_info) <detail>: Remove source_info member.
5225 (struct tui_source_window_base) <has_locator>: Inline.
5226 Move contents from tui_source_info; rename has_locator member to
5228 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
5229 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
5231 (tui_source_window_base::clear_detail, ~tui_source_window_base):
5233 (tui_free_all_source_wins_content): Cast to
5234 tui_source_window_base.
5236 2019-06-25 Tom Tromey <tom@tromey.com>
5238 * tui/tui-win.c (make_invisible_and_set_new_height)
5239 (make_visible_with_new_height): Call has_locator method.
5240 * tui/tui-layout.c (show_source_disasm_command, show_data)
5241 (show_source_or_disasm_and_command): Update for bool change.
5242 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
5243 (tui_win_info) <has_locator>: New method.
5244 (struct tui_source_window_base) <has_locator>: New method.
5245 (tui_win_has_locator): Don't declare.
5246 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
5247 from tui_win_has_locator.
5248 (tui_source_window_base): Use false, not FALSE.
5250 2019-06-25 Tom Tromey <tom@tromey.com>
5252 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
5253 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
5254 clear_detail method directly.
5255 (tui_clear_win_detail): Remove.
5257 2019-06-25 Tom Tromey <tom@tromey.com>
5259 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
5260 "this", not TUI_DISASM_WIN.
5262 2019-06-25 Tom Tromey <tom@tromey.com>
5264 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
5266 * tui/tui-winsource.c
5267 (tui_source_window_base::do_scroll_horizontal): Rename from
5268 tui_horizontal_source_scroll.
5269 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
5270 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
5271 from tui_vertical_data_scroll.
5272 * tui/tui-win.h (tui_scroll): Don't declare.
5273 * tui/tui-win.c (tui_win_info::forward_scroll)
5274 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
5275 (tui_win_info::right_scroll): Rename and update.
5276 (tui_scroll_forward_command, tui_scroll_backward_command)
5277 (tui_scroll_left_command, tui_scroll_right_command): Update.
5278 (tui_scroll): Remove.
5279 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
5280 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
5281 from tui_vertical_source_scroll.
5282 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
5283 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
5284 from tui_vertical_disassem_scroll.
5285 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
5286 do_scroll_horizontal>: New methods.
5287 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
5289 (struct tui_source_window_base): Add do_scroll_horizontal.
5290 (struct tui_source_window, struct tui_disasm_window): Add
5292 (struct tui_data_window, struct tui_cmd_window): Add
5293 do_scroll_horizontal and do_scroll_vertical.
5294 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
5296 2019-06-25 Tom Tromey <tom@tromey.com>
5298 * tui/tui-data.h (struct tui_source_window_base): New struct.
5299 (struct tui_source_window): Derive from tui_source_window_base.
5300 (struct tui_disasm_window): New struct.
5301 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
5302 from tui_source_window::clear_detail.
5303 (tui_source_window_base): Rename from tui_source_window.
5304 (~tui_source_window_base): Rename from ~tui_source_window.
5305 (tui_alloc_win_info): Create a tui_disasm_window.
5307 2019-06-25 Tom Tromey <tom@tromey.com>
5309 * tui/tui-data.h (struct tui_source_window)
5310 (struct tui_data_window): Declare destructors.
5311 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
5313 (tui_win_info): Simplify.
5315 2019-06-25 Tom Tromey <tom@tromey.com>
5317 * tui/tui-winsource.c (tui_display_main)
5318 (tui_update_source_windows_with_addr)
5319 (tui_update_all_breakpoint_info): Update.
5320 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5321 (new_height_ok, parse_scrolling_args): Update.
5322 * tui/tui-stack.c (tui_show_frame_info): Update.
5323 * tui/tui-data.h (struct tui_list): Remove.
5324 (tui_source_windows): Return a reference to a std::vector.
5325 * tui/tui-data.c (source_windows): Now a std::vector.
5326 (tui_source_windows): Change return type.
5327 (tui_clear_source_windows): Rewrite.
5328 (tui_clear_source_windows_detail, tui_add_to_source_windows)
5329 (tui_free_all_source_wins_content): Rewrite.
5331 2019-06-25 Tom Tromey <tom@tromey.com>
5333 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
5334 (struct tui_data_window, struct tui_cmd_window): Declare
5335 clear_detail method.
5336 * tui/tui-data.c (tui_source_window::clear_detail)
5337 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
5339 (tui_clear_win_detail): Simplify.
5341 2019-06-25 Tom Tromey <tom@tromey.com>
5343 * tui/tui-layout.c (make_source_window, make_disasm_window)
5344 (make_source_or_disasm_window): Remove win_info_ptr parameter.
5345 Return the new window.
5346 (show_source_disasm_command, show_data)
5347 (show_source_or_disasm_and_command): Update.
5349 2019-06-25 Tom Tromey <tom@tromey.com>
5351 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
5352 parameter. Return the new window.
5353 (show_source_disasm_command): Update and remove NULL check.
5354 (show_source_or_disasm_and_command): Update.
5356 2019-06-25 Tom Tromey <tom@tromey.com>
5358 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
5360 2019-06-25 Tom Tromey <tom@tromey.com>
5362 * tui/tui-data.h (struct tui_win_info): Make constructor
5363 protected. Make destructor virtual. Add initializers.
5364 (tui_source_window, tui_data_window, tui_cmd_window): New
5366 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
5367 constructor. Add "type" parameter.
5368 (tui_source_window, tui_data_window, tui_cmd_window): New
5370 (tui_alloc_win_info): Instantiate the appropriate subclass.
5372 2019-06-25 Tom Tromey <tom@tromey.com>
5374 * tui/tui-win.c (tui_resize_all): Use delete.
5375 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
5377 (tui_free_window): Don't declare.
5378 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
5381 2019-06-25 Tom Tromey <tom@tromey.com>
5383 * tui/tui-data.h (struct tui_win_info): Add constructor.
5384 * tui/tui-data.c (tui_alloc_win_info): Use new.
5385 (tui_free_window): Use delete.
5387 2019-06-22 Tom Tromey <tom@tromey.com>
5389 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
5391 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
5393 2019-06-22 Tom Tromey <tom@tromey.com>
5395 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
5397 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
5399 2019-06-22 Tom de Vries <tdevries@suse.de>
5401 * dwarf2read.c (create_addrmap_from_aranges)
5402 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
5405 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
5407 * dwarf2read.h (dwarf2_section_info_def): Remove.
5408 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
5409 * dwarf2read.c (struct dwo_sections) <types>: Change type to
5410 std::vector<dwarf2_section_info>.
5411 (struct dwo_file) <~dwo_file>: Remove.
5412 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
5414 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
5415 (dwarf2_read_debug_names): Likewise.
5416 (create_debug_types_hash_table): Change parameter type to
5417 array_view, adjust code accordingly.
5418 (dwarf2_locate_dwo_sections): Adjust to std::vector.
5419 (partial_die_info::fixup): Likewise.
5420 (determine_prefix): Likewise.
5421 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
5423 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5425 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
5427 <~dwo_file>: Remove call to gdb_bfd_unref.
5428 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
5429 gdb_bfd_ref_ptr::get.
5431 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5433 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
5435 * dwarf2read.c (struct dwo_file): Initialize fields.
5437 (free_dwo_file): Remove, move content to ~dwo_file.
5438 (struct dwo_file_deleter): Remove.
5439 (dwo_file_up>: Remove custom deleter.
5440 (free_dwo_files): Remove.
5441 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
5443 (process_skeletonless_type_units): Call unique_ptr::get.
5444 (allocate_dwo_file_hash_table): Add deleter to created hash
5445 table. Change return type to htab_up.
5446 (lookup_dwo_file_slot): Don't memset dwo_file, call
5448 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
5449 (create_dwo_unit_in_dwp_v2): Likewise.
5450 (open_and_init_dwo_file): Likewise.
5451 (free_dwo_file_from_slot): Remove.
5453 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5455 * dwarf2read.h (struct dwarf2_section_info) <readin,
5456 is_virtual>: Change type to bool.
5457 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
5460 2019-06-19 Tom Tromey <tom@tromey.com>
5462 * tui/tui-data.h (tui_init_content_element): Don't declare.
5464 2019-06-19 Tom Tromey <tom@tromey.com>
5466 * tui/tui-data.h (tui_init_win_info): Don't declare.
5468 2019-06-19 Tom de Vries <tdevries@suse.de>
5470 * dwarf2read.h (abstract_to_concrete): Change type to
5471 std::unordered_map<sect_offset, std::vector<sect_offset>,
5472 gdb::hash_enum<sect_offset>>.
5474 2019-06-19 Tom Tromey <tromey@adacore.com>
5476 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
5477 EVAL_AVOID_SIDE_EFFECTS specially.
5479 2019-06-19 Tom Tromey <tromey@adacore.com>
5481 * source-cache.c (highlighter): New global.
5482 (source_cache::get_source_lines): Create a highlighter on demand.
5484 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
5486 * defs.h (deprecated_interactive_hook): Delete declaration.
5487 * interps.c (clear_interpreter_hooks): Remove use of
5488 deprecated_interactive_hook.
5489 * top.c (deprecated_interactive_hook): Delete definition.
5490 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
5492 2019-06-18 Tom de Vries <tdevries@suse.de>
5495 * dwarf2read.h (abstract_to_concrete): Change type from
5496 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
5497 std::unordered_map<sect_offset, std::vector<sect_offset>>.
5498 * dwarf2read.c (read_variable): Update.
5499 (dwarf2_fetch_die_loc_sect_off): Update.
5501 2019-06-17 Tom de Vries <tdevries@suse.de>
5504 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
5505 accessing parent[parent_len - 1].
5507 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
5510 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
5511 call dtrace_process_dof with NULL dof.
5513 2019-06-16 Tom de Vries <tdevries@suse.de>
5516 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
5518 2019-06-16 Tom Tromey <tom@tromey.com>
5520 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
5521 (make_all_visible): Use address of member.
5523 2019-06-16 Tom Tromey <tom@tromey.com>
5525 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
5526 (tui_free_window, free_content, free_content_elements): Remove
5528 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
5530 * tui/tui-regs.c (tui_show_register_group)
5531 (tui_display_registers_from, tui_display_reg_element_at_line):
5532 Remove unnecessary cast.
5534 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5536 * linux-nat.c (normal_mask): Delete.
5537 (_initialize_linux_nat): Don't initialise normal_mask.
5539 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
5542 * dwarf-index-write.h (write_psymtabs_to_index): Add
5543 dwz_basename parameter.
5544 * dwarf-index-write.c (write_gdbindex): Move file writing to
5545 write_gdbindex_1. Change return type void.
5546 (assert_file_size): Move up, remove filename parameter.
5547 (write_gdbindex_1): New function.
5548 (write_debug_names): Change return type to void, call
5550 (struct index_wip_file): New struct.
5551 (write_psymtabs_to_index): Add dwz_basename parameter. Move
5552 file logic to index_wip_file. Write index for dwz file if
5554 (save_gdb_index_command): Pass basename of dwz file, if present.
5555 * dwarf-index-cache.c (index_cache::store): Obtain and pass
5556 build-id of dwz file, if present.
5557 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
5558 (dwarf2_get_dwz_file): Likewise.
5559 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
5560 (dwarf2_get_dwz_file): Likewise.
5562 2019-06-16 Tom Tromey <tom@tromey.com>
5564 * coffread.c (process_coff_symbol): Use xstrdup.
5565 * value.c (create_internalvar): Use xstrdup.
5567 2019-06-16 Tom Tromey <tom@tromey.com>
5569 * valops.c (value_cast, value_slice): Remove unnecessary cast.
5570 * breakpoint.c (stopin_command, stopat_command)
5571 (until_break_command, decode_location_default): Remove unnecessary
5573 * utils.c (subset_compare): Remove unnecessary cast.
5574 * ada-lang.c (ada_update_initial_language): Remove unnecessary
5576 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
5578 * infcmd.c (path_command): Remove unnecessary cast.
5579 * coffread.c (decode_type): Remove unnecessary cast.
5580 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
5581 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
5582 * tui/tui-stack.c (tui_show_locator_content)
5583 (tui_show_frame_info): Remove unnecessary cast.
5584 * tui/tui-win.c (tui_scroll_forward_command)
5585 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
5586 (parse_scrolling_args): Remove unnecessary cast.
5587 * tui/tui-data.c (init_win_info, tui_del_window)
5588 (tui_free_window, tui_del_data_windows, tui_free_data_content)
5589 (free_content_elements): Remove unnecessary cast.
5590 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
5592 * tui/tui-source.c (tui_set_source_content)
5593 (tui_vertical_source_scroll): Remove unnecessary cast.
5594 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
5596 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
5597 * tui/tui-regs.c (tui_display_registers_from)
5598 (tui_display_register): Remove unnecessary cast.
5599 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
5600 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
5601 (make_visible): Remove unnecessary cast.
5602 * tui/tui-winsource.c (tui_erase_source_content)
5603 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
5605 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
5606 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
5607 * stabsread.c (read_type, read_array_type, read_range_type):
5608 Remove unnecessary cast.
5609 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
5610 (parse_symbol, parse_type, upgrade_type, parse_external)
5611 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
5613 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
5615 2019-06-16 Tom Tromey <tom@tromey.com>
5617 * tui/tui-data.c (tui_alloc_generic_win_info)
5618 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
5621 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
5622 Andrew Burgess <andrew.burgess@embecosm.com>
5624 * f-typeprint.c (f_print_type): Don't return early for not
5625 associated or not allocated types.
5626 (f_type_print_varspec_suffix): Add print_rank parameter and print
5627 ranks of array types in case they dangling.
5628 (f_type_print_base): Add print_rank parameter.
5630 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5632 * NEWS: Mention new MI commands.
5633 * break-catch-throw.c (enum exception_event_kind): Move to
5635 (print_mention_exception_catchpoint): Output text as a single
5637 (catch_exception_command_1): Rename to...
5638 (catch_exception_event): ...this, make non-static, update header
5639 command, and change some parameter types.
5640 (catch_catch_command): Update for changes to
5641 catch_exception_command_1.
5642 (catch_throw_command): Likewise.
5643 (catch_rethrow_command): Likewise.
5644 * breakpoint.c (enum exception_event_kind): Delete.
5645 * breakpoint.h (enum exception_event_kind): Moved here from
5646 break-catch-throw.c.
5647 (catch_exception_event): Declare.
5648 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
5649 (mi_cmd_catch_throw): New function.
5650 (mi_cmd_catch_rethrow): New function.
5651 (mi_cmd_catch_catch): New function.
5652 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
5653 'catch-catch' entries.
5654 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
5655 (mi_cmd_catch_rethrow): Declare.
5656 (mi_cmd_catch_catch): Declare.
5658 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5660 * annotate.c (annotate_source_line): Change return type to void,
5661 update implementation to match.
5662 * annotate.h (annotate_source_line): Change return type to void,
5663 update header comment.
5664 * stack.c (print_frame_info): Don't change what frame information
5665 is printed based on whether annotations are on or not.
5667 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5669 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
5670 (annotate_source): Make static.
5671 (annotate_source_line): Moved from source.c and renamed from
5672 identify_source_line. Update the return type.
5673 * annotate.h (annotate_source): Delete declaration.
5674 (annotate_source_line): Declaration moved from source.h, and
5675 renamed from identify_source_line. Return type updated.
5676 * source.c (identify_source_line): Moved to annotate.c and renamed
5677 to annotate_source_line.
5678 (info_line_command): Remove check of annotation_level.
5679 * source.h (identify_source_line): Move declaration to annotate.h
5680 and rename to annotate_source_line.
5681 * stack.c: Add 'annotate.h' include.
5682 (print_frame_info): Remove check of annotation_level before
5683 calling annotate_source_line.
5685 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5687 * source-cache.c (source_cache::get_plain_source_lines): Use
5688 open_source_file_with_line_charpos instead of just
5689 open_source_file, remove call to find_source_lines.
5690 (source_cache::get_source_lines): Likewise.
5691 * source.c (find_source_lines): Make static.
5692 (get_filename_and_charpos): Renamed into...
5693 (open_source_file_with_line_charpos): ..this along with changes to
5694 return a scoped_fd, and some other minor clean ups.
5695 (identify_source_line): Use open_source_file_with_line_charpos.
5696 (search_command_helper): Use open_source_file_with_line_charpos
5697 instead of just open_source_file, remove call to
5699 * source.h (open_source_file_with_line_charpos): Declare new
5701 (find_source_lines): Delete declaration.
5703 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5705 * source.c (get_filename_and_charpos): Remove fullname
5707 (identify_source_line): Update call to get_filename_and_charpos.
5709 2019-06-14 Tom Tromey <tromey@adacore.com>
5712 * ui-style.h (skip_ansi_escape): Update comment.
5713 * ui-file.h (class no_terminal_escape_file): New class.
5714 * ui-file.c (no_terminal_escape_file::write)
5715 (no_terminal_escape_file::puts): New methods.
5716 * cli/cli-logging.c (handle_redirections): Use
5717 no_terminal_escape_file.
5719 2019-06-14 Tom Tromey <tromey@adacore.com>
5721 * NEWS: Move convenience variable news above Python news.
5723 2019-06-14 Tom Tromey <tom@tromey.com>
5725 * gnulib: Move directory to top-level.
5726 * configure.ac: Don't configure gnulib.
5727 * configure: Rebuild.
5728 * common/common-defs.h: Use new path to gnulib.
5729 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
5731 (INCGNU): Look in new gnulib location.
5732 (HFILES_NO_SRCDIR): Remove gnulib files.
5733 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
5734 (generated_files): Remove GNULIB_H.
5735 ($(LIBGNU), all-lib): Remove targets.
5736 (distclean): Don't mention GNULIB_BUILDDIR.
5737 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
5739 2019-06-14 Tom Tromey <tromey@adacore.com>
5741 * symfile.c (add_symbol_file_command): Remove obsolete comment.
5742 Warn if symbol file does not provide any symbols.
5744 2019-06-14 Tom Tromey <tromey@adacore.com>
5746 * source.c (find_and_open_source): Respect basenames_may_differ.
5748 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
5750 * annotate.c (annotate_breakpoints_invalid): Make use of
5751 scoped_restore_terminal_state.
5752 (annotate_frames_invalid): Likewise.
5754 2019-06-14 Tom Tromey <tromey@adacore.com>
5756 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
5757 allow assignment to an internalvar.
5759 2019-06-14 Tom Tromey <tromey@adacore.com>
5761 * ada-lex.l: Allow "_" in attribute names.
5763 2019-06-14 Tom Tromey <tromey@adacore.com>
5766 * regcache.c (registers_changed): Don't call alloca.
5767 * top.c (execute_command): Don't call alloca.
5769 2019-06-13 Pedro Alves <palves@redhat.com>
5771 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
5772 'expression'. When parsing an expression, error out if there's
5773 junk after "unlimited".
5774 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5775 (do_set_command): Adjust calls to is_unlimited_literal.
5777 2019-06-13 Pedro Alves <palves@redhat.com>
5779 * compile/compile.c (make_compile_options_def_group): Add braces
5780 around array_view initializer.
5781 * thread.c (make_thread_apply_all_options_def_group)
5782 (make_thread_apply_all_options_def_group): Likewise.
5784 2019-06-13 Pedro Alves <palves@redhat.com>
5786 * NEWS (New commands): Mention "maint test-options
5787 require-delimiter", "maint test-options unknown-is-error", "maint
5788 test-options unknown-is-operand" and "maint show
5789 test-options-completion-result".
5790 (New command options, command completion): New section.
5791 (Completion improvements): New section.
5792 Mention that you can abbreviate "unlimited".
5794 2019-06-13 Pedro Alves <palves@redhat.com>
5796 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
5797 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
5798 * unittests/cli-utils-selftests.c (test_parse_flags)
5799 (test_parse_flags_qcs): Delete.
5800 (test_cli_utils): Don't call deleted functions.
5802 2019-06-13 Pedro Alves <palves@redhat.com>
5804 * thread.c: Include "cli/cli-option.h".
5805 (tp_array_compar_ascending): Global.
5806 (tp_array_compar): Delete function.
5807 (tp_array_compar_ascending, tp_array_compar_descending): New
5809 (ascending_option_def, qcs_flag_option_def)
5810 (thr_qcs_flags_option_defs)
5811 (make_thread_apply_all_options_def_group)
5812 (make_thread_apply_options_def_group): New.
5813 (thread_apply_all_command): Use gdb::option::process_options.
5814 (thread_apply_command_completer)
5815 (thread_apply_all_command_completer): New.
5816 (thread_apply_command): Use gdb::option::process_options.
5817 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
5818 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
5819 to generate help text of "thread apply". Adjust "taas"'s help.
5820 * tid-parse.c (tid_range_parser::in_thread_range): New method.
5821 * tid-parse.h (tid_range_parser::in_thread_range): New method.
5823 2019-06-13 Pedro Alves <palves@redhat.com>
5825 * thread.c (thread_apply_command): Check for invalid TID with
5826 isdigit instead of !isalpha.
5828 2019-06-13 Pedro Alves <palves@redhat.com>
5830 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
5831 (validate_flags_qcs): New.
5832 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
5833 (validate_flags_qcs): Declare.
5834 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
5835 (make_frame_apply_options_def_group): New.
5836 (frame_apply_command_count): Process options with
5837 gdb::option::process_options.
5838 (frame_apply_completer): New.
5839 (frame_apply_level_completer, frame_apply_all_completer)
5840 (frame_apply_completer): New.
5841 (_initialize_stack): Update help of "frame apply", "frame apply
5842 level", "frame apply all" and "faas" to mention supported options
5843 and install command completers.
5844 * stack.h (frame_apply_all_completer): Declare.
5845 * thread.c: Include "stack.h".
5846 (tfaas_command): Add "--".
5847 (_initialize_thread): Update help "tfaas" to mention supported
5848 options and install command completer.
5850 2019-06-13 Pedro Alves <palves@redhat.com>
5852 * completer.c (complete_nested_command_line): New.
5853 (gdb_completion_word_break_characters_throw): Add assertion.
5854 * completer.h (complete_nested_command_line): Declare.
5856 2019-06-13 Pedro Alves <palves@redhat.com>
5858 * stack.c (parse_backtrace_qualifiers): New.
5859 (backtrace_command): Use it.
5860 (backtrace_command_completer): Complete on qualifiers.
5862 2019-06-13 Pedro Alves <palves@redhat.com>
5864 * frame.c: Include "cli/cli-option.h.
5865 (user_set_backtrace_options): New.
5866 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
5868 (get_prev_frame): Adjust.
5869 (boolean_option_def, uinteger_option_def)
5870 (set_backtrace_option_defs): New.
5871 (_initialize_frame): Adjust and use
5872 gdb::option::add_setshow_cmds_for_options to install "set
5873 backtrace past-main" and "set backtrace past-entry".
5874 * frame.h: Include "cli/cli-option.h".
5875 (struct frame_print_options): Forward declare.
5876 (print_frame_arguments_all, print_frame_arguments_scalars)
5877 (print_frame_arguments_none): Declare.
5878 (print_entry_values): Delete declaration.
5879 (struct frame_print_options, user_frame_print_options): New.
5880 (struct set_backtrace_options): New.
5881 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
5882 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
5883 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
5884 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
5885 (list_args_or_locals): Add frame_print_options parameter.
5886 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
5887 * python/py-framefilter.c (enumerate_args): Pass down
5888 USER_FRAME_PRINT_OPTIONS.
5889 * stack.c: Include "cli/cli-option.h".
5890 (print_frame_arguments_all, print_frame_arguments_scalars)
5891 (print_frame_arguments_none): Declare.
5892 (print_raw_frame_arguments, print_entry_values): Delete.
5893 (user_frame_print_options): New.
5894 (boolean_option_def, enum_option_def, frame_print_option_defs):
5896 (struct backtrace_cmd_options): New.
5897 (bt_flag_option_def): New.
5898 (backtrace_command_option_defs): New.
5899 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
5900 (print_frame_arg, read_frame_arg, print_frame_args)
5901 (print_frame_info, print_frame): Add frame_print_options parameter
5903 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
5904 (backtrace_command_1): Add frame_print_options and
5905 backtrace_cmd_options parameters and use them.
5906 (make_backtrace_options_def_group): New.
5907 (backtrace_command): Process command options with
5908 gdb::option::process_options.
5909 (backtrace_command_completer): New.
5910 (_initialize_stack): Extend "backtrace"'s help to mention
5911 supported options. Install completer for "backtrace".
5912 Install some settings commands with add_setshow_cmds_for_options.
5914 2019-06-13 Pedro Alves <palves@redhat.com>
5916 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
5917 and that "set/show print raw frame-arguments" are now deprecated.
5919 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
5921 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
5922 * stack.c (_initialize_stack): Install "set/show print
5923 raw-frame-arguments", and deprecate "set/show print raw
5925 * valprint.c (_initialize_valprint): Deprecate "set/show print
5928 2019-06-13 Pedro Alves <palves@redhat.com>
5930 * compile/compile.c (struct compile_options): New.
5931 (compile_flag_option_def, compile_command_option_defs)
5932 (make_compile_options_def_group): New.
5933 (compile_file_command): Handle options with
5934 gdb::option::process_options.
5935 (compile_file_command_completer): New function.
5936 (compile_code_command): Handle options with
5937 gdb::option::process_options.
5938 (compile_code_command_completer): New function.
5939 (_initialize_compiler): Install completers for "compile code" and
5940 "compile file". Mention available options in "compile code" and
5941 "compile code"'s help.
5942 * completer.c (advance_to_completion_word): New, factored out from
5944 (advance_to_expression_complete_word_point): ... this.
5945 (advance_to_filename_complete_word_point): New.
5946 * completer.h (advance_to_filename_complete_word_point): New
5949 2019-06-13 Pedro Alves <palves@redhat.com>
5951 * compile/compile.c: Include "cli/cli-option.h".
5952 (compile_print_value): Scope data pointer is now a
5953 value_print_options pointer; adjust.
5954 (compile_print_command): Process options. Scope data pointer is
5955 now a value_print_options pointer; adjust.
5956 (_initialize_compile): Update "compile print"'s help to include
5957 supported options. Install a completer for "compile print".
5958 * cp-valprint.c (show_vtblprint, show_objectprint)
5959 (show_static_field_print): Delete.
5960 (_initialize_cp_valprint): Don't install "set print
5961 static-members", "set print vtbl", "set print object" here.
5962 * printcmd.c: Include "cli/cli-option.h" and
5963 "common/gdb_optional.h".
5964 (print_command_parse_format): Rework to fill in a
5965 value_print_options instead of a format_data.
5966 (print_value): Change parameter type from format_data pointer to
5967 value_print_options reference. Adjust.
5968 (print_command_1): Process options. Adjust to pass down a
5969 value_print_options.
5970 (print_command_completer): New.
5971 (_initialize_printcmd): Install print_command_completer as
5972 handle_brkchars completer for the "print" command. Update
5973 "print"'s help to include supported options.
5974 * valprint.c: Include "cli/cli-option.h".
5975 (show_vtblprint, show_objectprint, show_static_field_print): Moved
5976 here from cp-valprint.c.
5977 (boolean_option_def, uinteger_option_def)
5978 (value_print_option_defs, make_value_print_options_def_group):
5979 New. Use gdb::option::add_setshow_cmds_for_options to install
5980 "set print elements", "set print null-stop", "set print repeats",
5981 "set print pretty", "set print union", "set print array", "set
5982 print address", "set print symbol", "set print array-indexes".
5983 * valprint.h: Include <string> and "cli/cli-option.h".
5984 (make_value_print_options_def_group): Declare.
5985 (print_value): Change parameter type from format_data pointer to
5986 value_print_options reference.
5987 (print_command_completer): Declare.
5989 2019-06-13 Pedro Alves <palves@redhat.com>
5991 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
5992 (COMMON_SFILES): Add maint-test-settings.c.
5993 * cli/cli-decode.c (boolean_enums): New global, factored out from
5995 (add_setshow_boolean_cmd): ... here.
5996 * cli/cli-decode.h (boolean_enums): Declare.
5997 * cli/cli-option.c: New file.
5998 * cli/cli-option.h: New file.
5999 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
6000 factored out from ...
6001 (parse_cli_boolean_value(const char *)): ... this.
6002 (is_unlimited_literal): Change parameter type to pointer to
6003 pointer. Adjust and advance ARG pointer.
6004 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6005 (parse_cli_var_enum): New, factored out from ...
6006 (do_set_command): ... this. Adjust.
6007 * cli/cli-setshow.h (parse_cli_boolean_value)
6008 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6009 (parse_cli_var_enum): Declare.
6010 * cli/cli-utils.c: Include "cli/cli-option.h".
6011 (get_ulongest): New.
6012 * cli/cli-utils.h (get_ulongest): Declare.
6013 (check_for_argument): New overloads.
6014 * maint-test-options.c: New file.
6016 2019-06-13 Pedro Alves <palves@redhat.com>
6018 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
6019 parse a range if "-" is at the end of the string.
6021 2019-06-13 Pedro Alves <palves@redhat.com>
6023 * cli/cli-setshow.c (parse_auto_binary_operation)
6024 (parse_cli_boolean_value): Don't allow "o".
6026 2019-06-13 Pedro Alves <palves@redhat.com>
6028 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
6029 * NEWS: Mention maint test-settings KIND.
6030 * maint-test-settings.c: New file.
6032 2019-06-13 Pedro Alves <palves@redhat.com>
6034 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
6036 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
6039 2019-06-13 Pedro Alves <palves@redhat.com>
6041 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
6044 2019-06-13 Pedro Alves <palves@redhat.com>
6046 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
6048 2019-06-13 Pedro Alves <palves@redhat.com>
6050 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
6051 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
6053 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
6054 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
6056 (check_for_argument): Skip spaces after argument.
6058 2019-06-13 Pedro Alves <palves@redhat.com>
6060 * thread.c (thread_apply_command): Adjust TID parsing.
6061 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
6062 detected before end of string.
6063 (tid_is_in_list): Error out if LIST is invalid.
6065 2019-06-13 Pedro Alves <palves@redhat.com>
6067 * completer.c (complete_line_internal_1): Rewind completion word
6069 (completion_tracker::advance_custom_word_point_by): Change
6070 parameter type to int.
6071 * completer.h (completion_tracker::advance_custom_word_point_by):
6074 2019-06-13 Pedro Alves <palves@redhat.com>
6076 * completer.c (advance_to_completion_word): Handle delimiters.
6078 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
6080 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
6082 2019-06-11 Tom Tromey <tom@tromey.com>
6084 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
6085 (xmalloc_failed): Move to alloc.c.
6086 * alloc.c: New file.
6087 * Makefile.in (COMMON_SFILES): Add alloc.c.
6089 2019-06-11 Tom Tromey <tom@tromey.com>
6091 * nat/linux-waitpid.c: Don't include server.h.
6092 (linux_debug): Remove.
6093 (my_waitpid): Update.
6095 2019-06-11 Tom Tromey <tromey@adacore.com>
6097 * infcall.c (_initialize_infcall): Remove trailing newline from
6099 * user-regs.c (_initialize_user_regs): Remove trailing newline
6101 * typeprint.c (_initialize_typeprint): Remove trailing newline
6103 * reverse.c (_initialize_reverse): Remove trailing newlines from
6105 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
6107 * language.c (add_set_language_command): Remove trailing newline
6109 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
6111 * disasm.c (_initialize_disasm): Remove trailing newline from
6113 * top.c (init_main): Remove trailing newline from help.
6114 * interps.c (_initialize_interpreter): Remove trailing newline
6116 * btrace.c (_initialize_btrace): Remove trailing newlines from
6118 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
6120 * python/python.c (_initialize_python): Remove trailing newline
6122 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
6124 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
6125 from help. Reformat some text.
6126 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
6128 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
6131 2019-06-11 Tom Tromey <tromey@adacore.com>
6133 * darwin-nat.c (darwin_decode_exception_message)
6134 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
6136 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
6138 * valops.c (value_slice): Check for not allocated or not
6141 2019-06-10 Tom de Vries <tdevries@suse.de>
6144 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
6145 sure an empty slot (defined by a 32-bit zero pair) is recognized as
6148 2019-06-10 Tom de Vries <tdevries@suse.de>
6151 * linespec.c (linespec_lexer_lex_string): Remove incorrect
6152 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
6154 2019-06-10 Tom de Vries <tdevries@suse.de>
6157 * symtab.c (struct demangled_name_entry): Add language field.
6158 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
6159 static minimal symbol". Set and use language field.
6161 2019-06-10 Tom Tromey <tromey@adacore.com>
6163 * ada-lang.c (_initialize_ada_language): Update help text.
6165 2019-06-10 Tom Tromey <tromey@adacore.com>
6167 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
6169 * guile/guile.c (handle_boot_error): Don't end warning with a
6171 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
6172 warning with a newline.
6173 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
6175 (s12z_frame_cache): Likewise.
6176 * dwarf-index-cache.c (index_cache::store): Don't end warning with
6178 * solib-svr4.c (disable_probes_interface): Don't end warning with
6180 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
6182 * python/python.c (do_finish_initialization): Don't end warning
6185 2019-06-10 Tom Tromey <tom@tromey.com>
6187 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6188 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
6191 2019-06-10 Tom Tromey <tromey@adacore.com>
6193 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
6195 (elf_new_init): Don't call stabsread_new_init.
6196 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
6197 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
6198 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
6200 2019-06-10 Tom de Vries <tdevries@suse.de>
6204 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
6206 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
6208 * source.c (find_and_open_source): Also rewrite relative file
6211 2019-04-26 Amos Bird <amosbird@gmail.com>
6213 * annotate.c (annotate_thread_exited): Add "thread-exited"
6216 2019-06-06 Tom Tromey <tromey@adacore.com>
6218 * maint.h (class scoped_command_stats): Use
6219 DISABLE_COPY_AND_ASSIGN.
6220 <print_time>: New method.
6221 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
6223 (scoped_command_stats::print_time): New method.
6225 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6227 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
6228 instructions of lengths 6 or 8 bytes.
6230 2019-06-04 Pedro Alves <palves@redhat.com>
6232 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
6234 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
6235 * breakpoint.c (condition_completer): Likewise.
6236 * cli/cli-dump.c (scan_expression): Likewise.
6237 * common/filestuff.c (mkdir_recursive): Likewise.
6238 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
6239 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
6240 (gdb_abspath): Likewise.
6241 * compile/compile-cplus-types.c
6242 (compile_cplus_instance::decl_name): Likewise.
6243 * completer.c (complete_explicit_location):
6244 (signal_completer, reg_or_group_completer_1): Likewise.
6245 * cp-support.c (cp_remove_params_if_any): Likewise.
6246 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
6247 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
6248 * infcmd.c (strip_bg_char): Likewise.
6249 * linespec.c (copy_token_string): Likewise.
6250 * mi/mi-main.c (output_cores): Likewise.
6251 * psymtab.c (psymtab_search_name):
6252 * symfile.c (test_set_ext_lang_command): Likewise.
6253 * target.c (target_fileio_read_stralloc): Likewise.
6254 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
6255 * value.c (complete_internalvar): Likewise.
6257 2019-06-04 Christian Biesinger <cbiesinger@google.com>
6259 Add objfile property to gdb.Type.
6260 * NEWS: Mention Python API addition.
6261 * python/py-type.c (typy_get_objfile): New method.
6263 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6265 * NEWS: Mention the new set|show style [title|highlight].
6266 Mention changes to "show style", "help" and "apropos".
6268 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6270 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
6271 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
6272 instead of print_help_for_command.
6273 (print_doc_of_command): New function.
6274 (help_list): Add 'apropos -v word' suggestion.
6275 (print_help_for_command): Style the command name using title style.
6276 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
6277 (_initialize_cli_cmds): Describe -v in apropos_command help.
6279 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6281 * cli/cli-style.h (cli_style_option): Add name in constructor,
6282 add m_name class member, add constructor with intensity,
6283 add name class function.
6284 (cli_style_option::add_setshow_commands): Remove name argument.
6285 (highlight_style, title_style): New styles.
6286 * cli/cli-style.c (do_show): New function that shows a style
6287 characteristic styling the style name with itself.
6288 (set_style_name): New function.
6289 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
6290 Update all callers according to the changes in cli/cli-style.h.
6291 * utils.h (fputs_highlighted): New function.
6292 * utils.c (fputs_highlighted): Likewise.
6294 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6296 * NEWS: Mention new pipe command and new convenience variables.
6298 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6300 * cli/cli-cmds.c (pipe_command): New function.
6301 (_initialize_cli_cmds): Call add_com for pipe_command.
6302 Define | as an alias for pipe.
6303 (exit_status_set_internal_vars): New function.
6304 (shell_escape): Call exit_status_set_internal_vars.
6305 cli/cli-decode.c (find_command_name_length): Recognize | as
6306 a single character command.
6308 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6310 * gdbcmd.h (execute_command_to_ui_file): New declaration.
6311 top.c (execute_command_to_ui_file): New function, mostly a copy
6312 of execute_command_to_string.
6313 (execute_command_to_string): Implement by calling
6314 execute_command_to_ui_file.
6316 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6318 * top.h (saved_command_line): Remove declaration.
6319 * top.c (previous_saved_command_line, previous_repeat_arguments):
6321 (saved_command_line): Make static, define together with other
6323 (dont_repeat): Clear repeat_arguments.
6324 (repeat_previous, get_saved_command_line, save_command_line):
6326 (gdb_init): Initialize saved_command_line
6327 and previous_saved_command_line.
6328 * main.c (captured_main_1): Remove saved_command_line initialization.
6329 * event-top.c (handle_line_of_input): Update to use
6330 the new 'repeat' related functions instead of direct access to
6332 * command.h (repeat_previous, get_saved_command_line,
6333 save_command_line): New declarations.
6334 (dont_repeat): Add comment.
6336 2019-05-30 Tom Tromey <tromey@adacore.com>
6338 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
6340 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
6342 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
6345 * completer.c (complete): Initialize variable word.
6347 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
6349 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
6350 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
6351 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
6352 'body' is NULL to the outter 'if', protecting the '!is_define'
6355 2019-05-29 Tom Tromey <tromey@adacore.com>
6357 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
6358 (dwarf_unknown): New function.
6359 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
6360 (dwarf_type_encoding_name): Use dwarf_unknown.
6362 2019-05-29 Tom Tromey <tromey@adacore.com>
6365 * cp-valprint.c (cp_print_value_fields): Call
6366 cp_print_static_field inside "try".
6368 2019-05-29 Tom Tromey <tromey@adacore.com>
6370 * inflow.c (struct terminal_info): Add default operator=.
6371 * configure: Rebuild.
6372 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
6373 -Wdeprecated-copy-dtor, -Wredundant-move.
6375 2019-05-29 Tom Tromey <tromey@adacore.com>
6378 * infcmd.c (print_return_value_1): Handle finish_print
6380 (show_print_finish): New function.
6381 (_initialize_infcmd): Add "set/show print finish" commands.
6382 * valprint.c (user_print_options): Initialize new member.
6383 * valprint.h (struct value_print_options) <finish_print>: New
6386 2019-05-28 Tom Tromey <tromey@adacore.com>
6388 * ada-lang.c (ada_remove_Xbn_suffix)
6389 (find_old_style_renaming_symbol)
6390 (parse_old_style_renaming): Remove.
6391 (ada_find_renaming_symbol): Don't call
6392 find_old_style_renaming_symbol.
6393 (ada_is_renaming_symbol): Rename from
6394 ada_find_renaming_symbol. Remove "block" parameter. Return
6396 (ada_read_var_value): Update and simplify.
6397 * ada-exp.y (write_var_or_type): Remove old code.
6399 2019-05-28 Alan Hayward <alan.hayward@arm.com>
6401 * event-top.c: Remove include comment.
6402 * inflow.c (class scoped_ignore_sigttou): Move from here...
6403 * inflow.h (class scoped_ignore_sigttou): ...to here.
6404 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
6405 * top.c: Remove include comment.
6407 2019-05-27 Tom Tromey <tom@tromey.com>
6411 2019-05-22 Tom Tromey <tromey@adacore.com>
6413 * target.c (target_follow_exec): Constify parameter.
6414 * target-delegates.c: Rebuild.
6415 * remote.c (remote_target::follow_exec): Constify parameter.
6416 * infrun.c (follow_exec): Constify parameter.
6417 * target.h (struct target_ops) <follow_exec>: Constify parameter.
6418 (target_follow_exec): Likewise.
6420 2019-05-22 Alan Hayward <alan.hayward@arm.com>
6422 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
6423 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
6425 2019-05-22 Alan Hayward <alan.hayward@arm.com>
6427 * NEWS: Add debugredirect and testsuite sections.
6429 2019-05-22 Simon Cook <simon.cook@embecosm.com>
6431 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
6432 target descriptions using exclusively floating point register name
6435 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
6438 * f-lang.c (build_fortran_types): Handle the case where
6439 gdbarch_floatformat_for_type returns a nullptr.
6441 2019-05-21 Tom de Vries <tdevries@suse.de>
6444 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
6446 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
6449 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
6451 * i386-tdep.c (i386_floatformat_for_type): Use
6452 floatformats_ia64_quad for the 16-byte floating point component
6453 within a fortran 32-byte complex number.
6455 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
6457 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
6458 delete default constructor.
6459 (find_partial_die): Update to return const struct.
6460 (partial_die_parent_scope): Move variable declaration into scope
6461 of its use and change its type to auto.
6462 (guess_partial_die_structure_name): Likewise.
6463 (partial_die_info::fixup): Likewise.
6465 2019-05-17 Tom Tromey <tromey@adacore.com>
6467 * source.c (find_and_open_source): Remove cast.
6469 2019-05-17 Tom Tromey <tromey@adacore.com>
6471 * annotate.c (annotate_source): Make "filename" const.
6472 * annotate.h (annotate_source): Use const.
6474 2019-05-17 Alan Hayward <alan.hayward@arm.com>
6476 * disasm.c (set_disassembler_options): Send errors to stderr.
6478 2019-05-17 Alan Hayward <alan.hayward@arm.com>
6480 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
6481 (cli_interp_base::set_logging): Check debug_redirect.
6482 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
6483 * cli/cli-logging.c (debug_redirect): Add static variable.
6484 (pop_output_files): Add default param.
6485 (handle_redirections): Print debug setting.
6486 (show_logging_command): Likewise.
6487 (_initialize_cli_logging): Add debugredirect command.
6488 * interps.c (current_interp_set_logging): Add debug_redirect
6490 * interps.h (set_logging): Add debug_redirect parameter.
6491 (current_interp_set_logging): Likewise.
6492 * mi/mi-common.h: Likewise.
6493 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
6495 2019-05-17 Alan Hayward <alan.hayward@arm.com>
6496 Tom Tromey <tromey@adacore.com>
6498 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
6500 * cli/cli-interp.h (make_logging_output): Remove declaration.
6501 * cli/cli-logging.c (make_logging_output): Remove function.
6502 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
6504 * ui-file.c (tee_file::tee_file): Remove bools.
6505 (tee_file::~tee_file): Remove deletes.
6506 * ui-file.h (tee_file): Remove bools.
6508 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
6510 * mi/mi-cmds.h (mi_cmd_complete): New function.
6511 * mi/mi-main.c (mi_cmd_complete): Likewise.
6512 * mi/mi-cmds.c: Define new MI command -complete.
6513 * NEWS: Mention new -complete command.
6515 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
6517 * completer.h (complete): New function.
6518 * completer.c (complete): Likewise.
6519 * cli/cli-cmds.c: (complete_command): Update to use new complete()
6520 function defined in completer.h.
6522 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
6524 * MAINTAINERS (Write After Approval): Add myself.
6526 2019-05-17 Tom de Vries <tdevries@suse.de>
6529 * dwarf2read.c (struct cu_partial_die_info): New struct.
6530 (find_partial_die): Return cu_partial_die_info.
6531 (partial_die_parent_scope, guess_partial_die_structure_name)
6532 (partial_die_info::fixup): Handle new return type of find_partial_die.
6534 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6536 PR breakpoints/24541
6537 * stap-probe.c (stap_parse_register_operand): Make "regname" an
6538 "std::string", simplifying the algorithm.
6540 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6542 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
6543 (stap_static_probe_ops::get_probes): Likewise.
6545 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6547 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
6548 '-')" and "else if".
6549 (stap_parse_single_operand): Join checks for
6550 "gdbarch_stap_parse_special_token_p" and
6551 "gdbarch_stap_parse_special_token" in the same "if" statement.
6552 Invert check when verifying for operation on register
6555 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6557 * stap-probe.c (stap_get_opcode): Update comment.
6558 (stap_get_expected_argument_type): Likewise.
6559 (handle_stap_probe): Likewise.
6561 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6563 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
6564 return type to 'bool'. Adjust comment. Use 'bool' when
6566 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6567 * stap-probe.c (stap_parse_argument_1): Likewise.
6568 (stap_is_operator): Likewise.
6569 (stap_is_generic_prefix): Likewise.
6570 (stap_is_register_prefix): Likewise.
6571 (stap_is_register_indirection_prefix): Likewise.
6572 (stap_is_integer_prefix): Likewise.
6573 (stap_generic_check_suffix): Likewise.
6574 (stap_check_integer_suffix): Likewise.
6575 (stap_check_register_suffix): Likewise.
6576 (stap_check_register_indirection_suffix): Likewise.
6577 (stap_parse_register_operand): Likewise.
6578 (stap_parse_single_operand): Likewise.
6579 (stap_parse_argument_1): Likewise.
6580 (stap_probe::get_argument_count): Likewise.
6581 (stap_is_operator): Likewise.
6583 2019-05-16 Tom Tromey <tromey@adacore.com>
6585 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
6588 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
6590 * linux-thread-db.c (try_thread_db_load_1): Change return type
6592 (try_thread_db_load): Likewise.
6593 (try_thread_db_load_from_pdir_1): Likewise.
6594 (try_thread_db_load_from_pdir): Likewise.
6595 (try_thread_db_load_from_sdir): Likewise.
6596 (try_thread_db_load_from_dir): Likewise.
6597 (thread_db_load_search): Likewise.
6598 (has_libpthread): Likewise.
6599 (thread_db_load): Likewise.
6601 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
6603 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
6604 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
6605 NULL, and complain/return if that's the case.
6607 2019-05-15 John Darrington <john@darrington.wattle.id.au>
6609 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
6610 (advance, posn, abstract_read_memory): New functions.
6611 [struct mem_read_abstraction]: New struct.
6612 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
6614 2019-05-14 Tom Tromey <tromey@adacore.com>
6616 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
6617 value is not lval_memory.
6619 2019-05-14 Tom Tromey <tromey@adacore.com>
6621 * solib.c (info_sharedlibrary_command): Style the file name.
6623 2019-05-14 Alan Hayward <alan.hayward@arm.com>
6625 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
6626 (aarch64_vnv_type): Likewise.
6627 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
6628 * common/tdesc.c: Likewise.
6629 * common/tdesc.h (enum tdesc_type_kind): Likewise.
6630 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
6631 * features/aarch64-fpu.xml: Add ieee half view.
6632 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
6633 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
6634 * gdbtypes.h (struct builtin_type): Likewise.
6635 (struct objfile_type): Likewise.
6637 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
6639 * language.c (language_sniff_from_mangled_name): Fix "langauge"
6641 * location.h (string_to_event_location): Likewise.
6643 2019-05-11 Joel Brobecker <brobecker@adacore.com>
6647 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
6649 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
6650 New variable declaration.
6651 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
6653 (print_one_breakpoint): Use ui_out::test_flags and new global
6654 variable to compute use_fixed_output.
6655 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
6657 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
6658 (mi_multi_location_breakpoint_output_fixed): Remove.
6659 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
6661 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
6662 fix_multi_location_breakpoint_output flag if version >= 3.
6663 * ui-out.h (enum ui_out_flag)
6664 <fix_multi_location_breakpoint_output>: New enumerator.
6666 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
6668 * contrib/cc-with-tweaks.sh: Validate dwz's work.
6670 2019-05-10 Tom Tromey <tromey@adacore.com>
6672 * ada-lang.c (catch_ada_completer): New function.
6673 (_initialize_ada_language): Use it.
6675 2019-05-10 Tom Tromey <tromey@adacore.com>
6677 * thread.c (print_thread_info): Make "requested_threads" const.
6678 * gdbthread.h (print_thread_info): Make "requested_threads"
6680 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
6681 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
6683 2019-05-08 Tom Tromey <tom@tromey.com>
6685 * gdbtypes.c (objfile_type_data): Change type.
6686 (objfile_type, _initialize_gdbtypes): Update.
6688 2019-05-08 Tom Tromey <tom@tromey.com>
6690 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
6691 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
6692 (_initialize_dwarf2_frame): Update.
6694 2019-05-08 Tom Tromey <tom@tromey.com>
6696 * objc-lang.c (objc_objfile_data): Change type.
6697 (find_methods): Update.
6698 (_initialize_objc_lang): Remove.
6700 2019-05-08 Tom Tromey <tom@tromey.com>
6702 * stabsread.c (rs6000_builtin_type_data): Change type.
6703 (rs6000_builtin_type, _initialize_stabsread): Update.
6705 2019-05-08 Tom Tromey <tom@tromey.com>
6707 * mips-tdep.c (mips_pdr_data): Remove.
6708 (_initialize_mips_tdep): Update.
6710 2019-05-08 Tom Tromey <tom@tromey.com>
6712 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
6713 (hppa_init_objfile_priv_data, read_unwind_info)
6714 (find_unwind_entry, _initialize_hppa_tdep): Update.
6716 2019-05-08 Tom Tromey <tom@tromey.com>
6718 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
6719 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
6721 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
6723 2019-05-08 Tom Tromey <tom@tromey.com>
6725 * mdebugread.c (basic_type_data): Change type.
6726 (basic_type, _initialize_mdebugread): Update.
6728 2019-05-08 Tom Tromey <tom@tromey.com>
6730 * common/gdb_unique_ptr.h (struct noop_deleter): New.
6732 2019-05-08 Tom Tromey <tom@tromey.com>
6734 * nto-tdep.c (nto_inferior_data_reg): Change type.
6735 (nto_inferior_data): Update.
6736 (nto_inferior_data_cleanup, nto_new_inferior_data)
6737 (_initialize_nto_tdep): Remove.
6738 * nto-tdep.h (struct nto_inferior_data): Add initializers.
6740 2019-05-08 Tom Tromey <tom@tromey.com>
6742 * ada-lang.c (struct ada_inferior_data): Add initializers.
6743 (ada_inferior_data): Change type.
6744 (ada_inferior_data_cleanup): Remove.
6745 (get_ada_inferior_data, ada_inferior_exit)
6746 (struct ada_pspace_data): Add initializers, destructor.
6747 (ada_pspace_data_handle): Change type.
6748 (get_ada_pspace_data): Update.
6749 (ada_pspace_data_cleanup): Remove.
6751 2019-05-08 Tom Tromey <tom@tromey.com>
6753 * coffread.c (struct coff_symfile_info): Add initializers.
6754 (coff_objfile_data_key): Move lower. Change type.
6755 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
6757 (coff_free_info): Remove.
6759 2019-05-08 Tom Tromey <tom@tromey.com>
6761 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
6762 (fbsd_pspace_data_handle): Move lower. Change type.
6763 (get_fbsd_pspace_data): Update.
6764 (fbsd_pspace_data_cleanup): Remove.
6765 (_initialize_fbsd_tdep): Update.
6767 2019-05-08 Tom Tromey <tom@tromey.com>
6769 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
6770 (get_ada_tasks_pspace_data): Update.
6771 (ada_tasks_pspace_data_cleanup): Remove.
6772 (_initialize_tasks): Update.
6773 (ada_tasks_inferior_data_handle): Change type.
6774 (get_ada_tasks_inferior_data): Update.
6775 (ada_tasks_inferior_data_cleanup): Remove.
6776 (struct ada_tasks_pspace_data): Add initializers.
6778 2019-05-08 Tom Tromey <tom@tromey.com>
6780 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
6781 * symfile-debug.c (debug_sym_get_probes): Change type.
6782 * stap-probe.c (handle_stap_probe):
6783 (stap_static_probe_ops::get_probes): Change type.
6784 * probe.h (class static_probe_ops) <get_probes>: Change type.
6785 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
6786 (parse_probes_in_pspace): Update.
6787 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
6789 (any_static_probe_ops::get_probes): Change type.
6790 * elfread.c (elfread_data): New typedef.
6791 (probe_key): Change type.
6792 (elf_get_probes): Likewise. Update.
6793 (probe_key_free): Remove.
6794 (_initialize_elfread): Update.
6795 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
6797 (dtrace_process_dof_probe, dtrace_process_dof)
6798 (dtrace_static_probe_ops::get_probe): Change type.
6800 2019-05-08 Tom Tromey <tom@tromey.com>
6802 * xcoffread.c (struct xcoff_symfile_info): Rename from
6803 coff_symfile_info. Add initializers.
6804 (xcoff_objfile_data_key): Move lower. Change type.
6805 (XCOFF_DATA): Rewrite.
6806 (xcoff_free_info): Remove.
6807 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
6808 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
6809 (xcoff_initial_scan): Update.
6811 2019-05-08 Tom Tromey <tom@tromey.com>
6813 * solib-svr4.c (struct svr4_info): Add initializers and
6815 <probes_table>: Now an htab_up.
6816 (solib_svr4_pspace_data): Change type.
6817 (free_probes_table): Simplify.
6818 (~svr4_info): Rename from svr4_pspace_data_cleanup.
6819 (get_svr4_info, probes_table_htab_remove_objfile_probes)
6820 (probes_table_remove_objfile_probes, register_solib_event_probe)
6821 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
6822 (_initialize_svr4_solib): Update.
6824 2019-05-08 Tom Tromey <tom@tromey.com>
6826 * remote.c (remote_pspace_data): Change type.
6827 (remote_pspace_data_cleanup): Remove.
6828 (get_remote_exec_file, set_pspace_remote_exec_file)
6829 (_initialize_remote): Update.
6831 2019-05-08 Tom Tromey <tom@tromey.com>
6833 * breakpoint.c (breakpoint_objfile_key): Change type.
6834 (get_breakpoint_objfile_data): Update.
6835 (free_breakpoint_objfile_data): Remove.
6836 (_initialize_breakpoint): Update.
6838 2019-05-08 Tom Tromey <tom@tromey.com>
6840 * linux-tdep.c (struct linux_info): Add initializers.
6841 (linux_inferior_data): Move. Change type.
6842 (invalidate_linux_cache_inf): Update.
6843 (linux_inferior_data_cleanup): Remove.
6844 (get_linux_inferior_data, _initialize_linux_tdep): Update.
6846 2019-05-08 Tom Tromey <tom@tromey.com>
6848 * auxv.c (auxv_inferior_data): Move. Change type.
6849 (auxv_inferior_data_cleanup): Remove.
6850 (invalidate_auxv_cache_inf): Rewrite.
6851 (get_auxv_inferior_data, _initialize_auxv): Update.
6853 2019-05-08 Tom Tromey <tom@tromey.com>
6855 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
6856 (symfile_debug_objfile_data_key): Change type.
6857 (symfile_debug_installed, debug_qf_has_symbols)
6858 (debug_qf_find_last_source_symtab)
6859 (debug_qf_forget_cached_source_info)
6860 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
6861 (debug_qf_print_stats, debug_qf_dump)
6862 (debug_qf_expand_symtabs_for_function)
6863 (debug_qf_expand_all_symtabs)
6864 (debug_qf_expand_symtabs_with_fullname)
6865 (debug_qf_map_matching_symbols)
6866 (debug_qf_expand_symtabs_matching)
6867 (debug_qf_find_pc_sect_compunit_symtab)
6868 (debug_qf_map_symbol_filenames)
6869 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
6870 (debug_sym_new_init, debug_sym_init, debug_sym_read)
6871 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
6872 (debug_sym_read_linetable, debug_sym_relocate): Update.
6873 (symfile_debug_free_objfile): Remove.
6874 (install_symfile_debug_logging, _initialize_symfile_debug):
6877 2019-05-08 Tom Tromey <tom@tromey.com>
6879 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
6880 allocate_on_obstack.
6881 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
6882 (get_dwarf2_per_objfile): Update.
6883 (set_dwarf2_per_objfile): Remove.
6884 (dwarf2_has_info, dwarf2_get_section_info): Update.
6885 (dwarf2_free_objfile): Remove.
6886 (_initialize_dwarf2_read): Update.
6888 2019-05-08 Tom Tromey <tom@tromey.com>
6890 * auto-load.c (struct auto_load_pspace_info): Add destructor and
6892 <unsupported_script_warning_printed,
6893 script_not_found_warning_printed>: Now bool.
6894 (auto_load_pspace_data): Change type.
6895 (~auto_load_pspace_info): Rename from
6896 auto_load_pspace_data_cleanup.
6897 (get_auto_load_pspace_data, init_loaded_scripts_info)
6898 (clear_section_scripts, maybe_print_unsupported_script_warning)
6899 (maybe_print_script_not_found_warning, _initialize_auto_load):
6902 2019-05-08 Tom Tromey <tom@tromey.com>
6904 * objfiles.c (objfile_pspace_info): Add destructor and
6906 (objfiles_pspace_data): Change type.
6907 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
6908 (get_objfile_pspace_data): Update.
6909 (objfiles_bfd_data): Change type.
6910 (get_objfile_bfd_data): Update.
6911 (objfile_bfd_data_free, _initialize_objfiles): Remove.
6913 2019-05-08 Tom Tromey <tom@tromey.com>
6915 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
6917 (get_catch_syscall_inferior_data): Update.
6918 (catch_syscall_inferior_data_cleanup): Remove.
6919 (_initialize_break_catch_syscall): Update.
6921 2019-05-08 Tom Tromey <tom@tromey.com>
6923 * inflow.c (struct terminal_info): Add destructor and
6925 (inflow_inferior_data): Change type.
6926 (~terminal_info): Rename from inflow_inferior_data_cleanup.
6927 (get_inflow_inferior_data, inflow_inferior_exit)
6928 (swap_terminal_info, _initialize_inflow): Update.
6930 2019-05-08 Tom Tromey <tom@tromey.com>
6932 * target-dcache.c (target_dcache_cleanup): Remove.
6933 (target_dcache_aspace_key): Change type.
6934 (target_dcache_init_p, target_dcache_invalidate)
6935 (target_dcache_get, target_dcache_get_or_init)
6936 (_initialize_target_dcache): Update.
6937 * dcache.h (struct dcache_deleter): New.
6939 2019-05-08 Tom Tromey <tom@tromey.com>
6941 * symtab.c (struct symbol_cache): Add destructor and
6943 (symbol_cache_key): Move. Change type.
6944 (make_symbol_cache, free_symbol_cache): Remove.
6945 (get_symbol_cache): Update.
6946 (symbol_cache_cleanup): Remove.
6947 (ALL_PSPACES, symbol_cache_flush)
6948 (maintenance_print_symbol_cache)
6949 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
6952 2019-05-08 Tom Tromey <tom@tromey.com>
6954 * symtab.c (struct main_info): Add destructor and initializers.
6955 (main_progspace_key): Move. Change type.
6956 (get_main_info): Update.
6957 (main_info_cleanup): Remove.
6958 (_initialize_symtab): Update.
6960 2019-05-08 Tom Tromey <tom@tromey.com>
6962 * registry.h (DECLARE_REGISTRY): Define the _key class.
6964 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6966 * NEWS: Merge two 'New commands' sections.
6968 2019-05-08 Joel Brobecker <brobecker@adacore.com>
6970 * ada-valprint.c (ada_val_print_gnat_array): Remove language
6971 parameter and use Ada language definition instead.
6972 (ada_val_print_ptr): Remove unused language parameter.
6973 (ada_val_print_num): Remove language parameter and use Ada language
6975 (ada_val_print_enum, ada_val_print_flt): Remove unused language
6977 (ada_val_print_struct_union, ada_val_print_ref): Remove language
6978 parameter and use Ada language definition instead.
6979 (ada_val_print_1): Update all ada_val_print_xxx calls.
6980 Remove language parameter.
6981 (ada_val_print): Update ada_val_print_1 call.
6983 2019-05-08 Tom Tromey <tromey@adacore.com>
6985 * remote.c (remote_hw_watchpoint_limit)
6986 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
6989 2019-05-08 Tom Tromey <tromey@adacore.com>
6991 * maint.c (_initialize_maint_cmds): Move initialization code to
6993 (watchdog, show_watchdog): Move to remote.c.
6994 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
6996 (_initialize_remote): Move initialization code from maint.c.
6997 * defs.h (watchdog): Don't declare.
6999 2019-05-08 Tom Tromey <tromey@adacore.com>
7001 * tui/tui-interp.c: Include main.h.
7002 * interps.c: Include main.h.
7003 * main.h (interpreter_p): Declare.
7004 * defs.h (interpreter_p): Don't declare.
7006 2019-05-08 Tom Tromey <tromey@adacore.com>
7008 * dwarf2loc.c: Include dwarf2read.h.
7009 * defs.h (read_unsigned_leb128): Don't declare.
7010 * dwarf2read.h (read_unsigned_leb128): Declare.
7012 2019-05-08 Tom Tromey <tromey@adacore.com>
7014 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
7017 2019-05-08 Tom Tromey <tromey@adacore.com>
7019 * utils.c (fputs_maybe_filtered): Reset style after paging, even
7020 when no wrap column is set.
7022 2019-05-08 Tom Tromey <tromey@adacore.com>
7024 * c-lang.c (c_get_string): Handle non-C-style arrays.
7026 2019-05-08 Tom Tromey <tromey@adacore.com>
7028 * typeprint.c (print_offset_data::update): Print the bit offset,
7029 not the number of bits remaining.
7031 2019-05-08 Tom Tromey <tromey@adacore.com>
7033 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
7034 padding at end of comment.
7036 2019-05-08 Tom Tromey <tromey@adacore.com>
7038 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
7041 2019-05-06 Tom Tromey <tom@tromey.com>
7043 * common/scoped_mmap.c: Include common-defs.h.
7044 * common/scoped_mmap.h: Don't include config.h.
7046 2019-05-04 Tom Tromey <tom@tromey.com>
7048 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
7049 (struct aarch64_call_info): Add initializers.
7050 <si>: Now a std::vector.
7051 (pass_on_stack, aarch64_push_dummy_call): Update.
7053 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
7054 Tom Tromey <tom@tromey.com>
7056 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
7057 (ppc_threads): Now a std::vector. Now static.
7058 (hwdebug_find_thread_points_by_tid)
7059 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
7062 2019-05-04 Tom Tromey <tom@tromey.com>
7064 * arc-tdep.c (arc_tdesc_init): Return bool.
7066 2019-05-04 Tom Tromey <tom@tromey.com>
7068 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
7069 Use gdb_assert_not_reached.
7071 2019-05-04 Tom Tromey <tom@tromey.com>
7073 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
7076 2019-05-04 Tom Tromey <tom@tromey.com>
7078 * arc-tdep.c (arc_tdesc_init): Use bool.
7080 2019-05-04 Tom Tromey <tom@tromey.com>
7082 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
7084 2019-05-04 Tom Tromey <tom@tromey.com>
7086 * cli/cli-cmds.c (valid_command_p): Return bool.
7088 2019-05-04 Tom Tromey <tom@tromey.com>
7090 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
7091 * command.h (valid_user_defined_cmd_name_p): Channge return type.
7093 2019-05-04 Raul Tambre <raul@tambre.ee>
7095 * python/lib/gdb/prompt.py (_ExtendedPrompt)
7096 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
7097 operator for comparison.
7099 2019-05-04 Tom Tromey <tom@tromey.com>
7101 * psymtab.c (psymbol_name_matches, match_partial_symbol)
7102 (lookup_partial_symbol, print_partial_symbols)
7103 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
7104 (psymbol_compare): Update.
7105 (add_psymbol_to_bcache): Clear the entire psymbol.
7106 (maintenance_check_psymtabs): Update.
7107 * psympriv.h (struct partial_symbol): Don't derive from
7108 general_symbol_info.
7109 <obj_section, unrelocated_address, address,
7110 set_unrelocated_address>: Update.
7111 <ginfo>: New member.
7112 * dwarf-index-write.c (write_psymbols, debug_names::insert)
7113 (debug_names::write_psymbols): Update.
7115 2019-05-04 Tom de Vries <tdevries@suse.de>
7117 * contrib/cc-with-tweaks.sh: Support -n arg.
7119 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7121 * corelow.c (core_target::detach): Ensure frame cache and
7122 register caches are cleared.
7123 inferior.c (exit_inferior_1): Likewise.
7125 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
7126 Tom Tromey <tom@tromey.com>
7128 * dictionary.c (collate_pending_symbols_by_language): Remove
7129 "struct" from foreach.
7130 * symtab.c (lookup_global_symbol_from_objfile)
7131 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
7133 * ser-tcp.c (net_open): Remove "struct" from foreach.
7134 * objfiles.c (objfile_relocate, objfile_rebase)
7135 (objfile_has_symbols): Remove "struct" from foreach.
7136 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
7138 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
7140 * darwin-nat.c (thread_info_from_private_thread_info): Remove
7141 "struct" from foreach.
7142 * ada-lang.c (create_excep_cond_exprs)
7143 (ada_exception_catchpoint_cond_string): Remove "struct" from
7146 2019-05-03 Tom Tromey <tromey@adacore.com>
7148 * ada-exp.y (convert_char_literal): Check suffix of each
7151 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
7154 * ada-exp.y (yywrap): Don't define.
7155 * ada-lex.l (%option): Add noyywrap
7158 2019-05-03 Eli Zaretskii <eliz@gnu.org>
7160 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
7161 _WIN32_WINNT to the XP level, unless already defined to a higher
7164 * unittests/parse-connection-spec-selftests.c:
7166 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
7169 * symfile.c (find_separate_debug_file): Remove colon from the
7170 drive spec of DOS/Windows file names of the target, so that the
7171 file name produced from DEBUGDIR and the target's directory will
7172 be valid on DOS/Windows systems.
7174 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
7176 * rust-lang.c (val_print_struct): Handle printing structures
7179 2019-05-02 Tom Tromey <tromey@adacore.com>
7181 * valarith.c (_initialize_valarith): Remove.
7183 2019-05-01 Tom Tromey <tromey@adacore.com>
7185 * ada-lang.c (ada_value_primitive_field): Treat more fields as
7188 2019-05-01 Tom Tromey <tromey@adacore.com>
7190 * ada-lang.c (ada_value_assign): Correctly compute starting offset
7191 for big-endian copies.
7193 2019-04-30 Ali Tamur <tamur@google.com>
7194 * gdb/dwarf2read.c (read_3_bytes): New declaration.
7195 (read_attribute_value): Added DW_FORM_strx1-4 cases.
7196 (read_3_bytes): New function.
7198 2019-04-30 Joel Brobecker <brobecker@adacore.com>
7200 * windows-nat.c (main_thread_id): Delete.
7201 (handle_output_debug_string): Replace main_thread_id by
7202 current_event.dwThreadId.
7203 (fake_create_process): Likewise.
7204 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
7205 Do not set main_thread_id.
7206 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
7207 current_event.dwThreadId.
7208 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
7210 2019-04-30 Joel Brobecker <brobecker@adacore.com>
7212 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
7213 Use current_event.dwThreadId instead of main_thread_id.
7215 2019-04-30 Tom Tromey <tromey@adacore.com>
7217 * ada-lang.c (ada_lookup_simple_minsyms): New function.
7218 (create_excep_cond_exprs): Iterate over program spaces.
7219 (ada_exception_catchpoint_cond_string): Examine all minimal
7220 symbols for exception types.
7222 2019-04-30 Tom Tromey <tromey@adacore.com>
7225 * dwarf2read.c (process_structure_scope): Handle case where type
7226 has template parameters but no symbol was created.
7228 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7229 Chris January <chris.january@arm.com>
7231 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
7233 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
7235 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7237 * f-typeprint.c (f_print_type): Update rules for printing
7239 (f_type_print_varspec_suffix): Likewise.
7241 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7242 Chris January <chris.january@arm.com>
7244 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
7247 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7249 * f-lang.c (build_fortran_types): Change name of void type to
7251 * f-typeprint.c (f_type_print_base): Print the name of the void
7252 type, rather than a fixed string.
7253 * f-valprint.c (f_decorations): Use lower case void string.
7255 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7256 Chris January <chris.january@arm.com>
7258 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
7261 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7262 Chris January <chris.january@arm.com>
7263 David Lecomber <david.lecomber@arm.com>
7265 * f-exp.y (BINOP_INTRINSIC): New token.
7266 (exp): New parser rule handling BINOP_INTRINSIC.
7267 (f77_keywords): Add new builtin procedures.
7268 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
7269 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7270 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
7271 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7272 (print_unop_subexp_f): New function.
7273 (print_binop_subexp_f): New function.
7274 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
7275 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7276 (dump_subexp_body_f): Likewise.
7277 (operator_check_f): Likewise.
7278 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
7279 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
7281 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7283 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
7285 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
7286 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
7287 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
7288 (operator_length_f): New fuction.
7289 (print_subexp_f): New function.
7290 (op_name_f): New function.
7291 (dump_subexp_body_f): New function.
7292 (operator_check_f): New function.
7293 (exp_descriptor_f): Replace standard expression handling functions
7295 * gdb/fortran-operator.def: New file.
7296 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
7297 * gdb/std-operator.def: Remove UNOP_KIND.
7299 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7301 * std-operator.def: Remove unbalanced, stray double quote
7304 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7305 Chris January <chris.january@arm.com>
7306 Daniel Everett <daniel.everett@arm.com>
7307 Nick Forrington <nick.forrington@arm.com>
7308 Richard Bunt <richard.bunt@arm.com>
7310 * cp-valprint.c (cp_print_value_fields): Allow an additional level
7311 of depth when printing anonymous structs or unions.
7312 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
7313 Don't print either the top-level value, or the children if the
7314 max-depth is exceeded.
7315 (ppscm_print_children): When printing the key of a map, allow one
7316 extra level of depth.
7317 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
7318 print either the top-level value, or the children if the max-depth
7320 (print_children): When printing the key of a map, allow one extra
7322 * python/py-value.c (valpy_format_string): Add max_depth keyword.
7323 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
7324 (user_print_options): Initialise max_depth field.
7325 (val_print_scalar_or_string_type_p): New function.
7326 (val_print): Check to see if the max depth has been reached.
7327 (val_print_check_max_depth): Define new function.
7328 (show_print_max_depth): New function.
7329 (_initialize_valprint): Add 'print max-depth' option.
7330 * valprint.h (struct value_print_options) <max_depth>: New field.
7331 (val_print_check_max_depth): Declare new function.
7332 * NEWS: Document new feature.
7334 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7336 * ada-lang.c (ada_language_defn): Initialise new field.
7337 * c-lang.c (c_is_string_type_p): New function.
7338 (c_language_defn): Initialise new field.
7339 (cplus_language_defn): Initialise new field.
7340 (asm_language_defn): Initialise new field.
7341 (minimal_language_defn): Initialise new field.
7342 * c-lang.h (c_is_string_type_p): Declare new function.
7343 * d-lang.c (d_language_defn): Initialise new field.
7344 * f-lang.c (f_is_string_type_p): New function.
7345 (f_language_defn): Initialise new field.
7346 * go-lang.c (go_is_string_type_p): New function.
7347 (go_language_defn): Initialise new field.
7348 * language.c (default_is_string_type_p): New function.
7349 (unknown_language_defn): Initialise new field.
7350 (auto_language_defn): Initialise new field.
7351 * language.h (struct language_defn) <la_is_string_type_p>: New
7353 (default_is_string_type_p): Declare new function.
7354 * m2-lang.c (m2_language_defn): Initialise new field.
7355 * objc-lang.c (objc_language_defn): Initialise new field.
7356 * opencl-lang.c (opencl_language_defn): Initialise new field.
7357 * p-lang.c (pascal_is_string_type_p): New function.
7358 (pascal_language_defn): Initialise new field.
7359 * rust-lang.c (rust_is_string_type_p): New function.
7360 (rust_language_defn): Initialise new field.
7362 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7364 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
7366 * ada-lang.c (ada_language_defn): Initialise new field.
7367 * c-lang.c (c_language_defn): Likewise.
7368 (cplus_language_defn): Likewise.
7369 (asm_language_defn): Likewise.
7370 (minimal_language_defn): Likewise.
7371 * d-lang.c (d_language_defn): Likewise.
7372 * f-lang.c (f_language_defn): Likewise.
7373 * go-lang.c (go_language_defn): Likewise.
7374 * language.c (unknown_language_defn): Likewise.
7375 (auto_language_defn): Likewise.
7376 * m2-lang.c (m2_language_defn): Likewise.
7377 * objc-lang.c (objc_language_defn): Likewise.
7378 * opencl-lang.c (opencl_language_defn): Likewise.
7379 * p-lang.c (pascal_language_defn): Likewise.
7380 * rust-lang.c (rust_language_defn): Likewise.
7382 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7384 * ada-lang.c (ada_is_character_type): Change return type to bool.
7385 (ada_is_string_type): Likewise.
7386 * ada-lang.h (ada_is_character_type): Update declaration
7387 (ada_is_string_type): Likewise.
7389 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7391 Support style in 'frame|thread apply'
7393 * gdbcmd.h (execute_command_to_string): New term_out parameter.
7394 * record.c (record_start, record_stop): Update callers of
7395 execute_command_to_string with false.
7396 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
7397 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
7399 (class string_file): New constructor with term_out parameter.
7400 Override methods term_out and can_emit_style_escape. New member
7402 (class stdio_file): Override can_emit_style_escape.
7403 (class tee_file): Override term_out and can_emit_style_escape.
7404 * utils.h (can_emit_style_escape): Remove.
7405 * utils.c (can_emit_style_escape): Likewise.
7406 Update all callers of can_emit_style_escape (SOMESTREAM) to
7407 SOMESTREAM->can_emit_style_escape.
7408 * source-cache.c (source_cache::get_source_lines): Likewise.
7409 * stack.c (frame_apply_command_count): Call execute_command_to_string
7410 passing the term_out characteristic of the current gdb_stdout.
7411 * thread.c (thr_try_catch_cmd): Likewise.
7412 * top.c (execute_command_to_string): pass term_out parameter
7413 to construct the string_file for the command output.
7414 * ui-file.c (term_cli_styling): New function (most code moved
7415 from utils.c can_emit_style_escape).
7416 (string_file::string_file, string_file::can_emit_style_escape,
7417 stdio_file::can_emit_style_escape, tee_file::term_out,
7418 tee_file::can_emit_style_escape): New functions.
7420 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7422 * NEWS: Mention the new set|show may-call-functions.
7423 * infcall.c (may_call_functions_p): New variable.
7424 (show_may_call_functions_p): New function.
7425 (call_function_by_hand_dummy): Throws an error if not
7427 (_initialize_infcall): Call add_setshow_boolean_cmd for
7430 2019-04-25 Keith Seitz <keiths@redhat.com>
7433 * cp-support.c (inspect_type): Don't attempt substitutions
7434 of symbol with the same name.
7436 2019-04-25 Tom Tromey <tromey@adacore.com>
7439 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
7442 2019-04-25 Tom Tromey <tromey@adacore.com>
7444 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
7446 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
7447 (gdb_xml_parser::parse): Use std::move.
7448 * python/python-internal.h (gdbpy_convert_exception): Take a const
7450 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
7452 * python/py-utils.c (gdbpy_convert_exception): Take a const
7454 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
7456 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
7458 * mi/mi-main.c (mi_print_exception): Take a const reference.
7459 * main.c (handle_command_errors): Take a const reference.
7460 * linespec.c (parse_linespec): Use std::move.
7461 * infcall.c (run_inferior_call): Use std::move.
7462 (call_function_by_hand_dummy): Use std::move.
7463 * exec.c (try_open_exec_file): Use std::move.
7464 * exceptions.h (exception_print, exception_fprintf)
7465 (exception_print_same): Update.
7466 * exceptions.c (print_exception, exception_print)
7467 (exception_fprintf, exception_print_same): Change parameters to
7469 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
7470 * common/new-op.c: Use std::move.
7471 * common/common-exceptions.h (struct gdb_exception): Add move
7473 (struct gdb_exception_error, struct gdb_exception_quit, struct
7474 gdb_quit_bad_alloc): Change constructor to move constructor.
7475 (throw_exception): Change parameter to rvalue reference.
7476 * common/common-exceptions.c (throw_exception): Take rvalue
7478 * cli/cli-interp.c (safe_execute_command): Use std::move.
7479 * breakpoint.c (insert_bp_location, location_to_sals): Use
7482 2019-04-25 Tom Tromey <tromey@adacore.com>
7484 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
7485 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
7486 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
7487 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
7488 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
7489 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
7490 guile/scm-value.c: Use unpack.
7491 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
7492 gdbscm_gdb_exception.
7493 (gdbscm_throw_gdb_exception): Likewise.
7494 (struct gdbscm_gdb_exception): New.
7495 (unpack): New function.
7496 (gdbscm_wrap): Use unpack.
7498 2019-04-25 Tom Tromey <tromey@adacore.com>
7500 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
7501 (gdb_rl_callback_handler): Use std::move.
7502 * common/common-exceptions.h (struct gdb_exception): Add move
7503 assignment operator.
7504 (throw_exception_sjlj): Change "exception" to const reference.
7505 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
7506 (throw_exception_sjlj): Change "exception" to const reference.
7508 2019-04-25 Tom Tromey <tromey@adacore.com>
7510 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
7511 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
7512 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
7514 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
7516 * mi/mi-interp.c (mi_interp::exec): Update.
7517 * linespec.c (parse_linespec): Update.
7518 * infcall.c (run_inferior_call): Update.
7519 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
7520 * guile/scm-symbol.c (gdbscm_lookup_symbol)
7521 (gdbscm_lookup_global_symbol): Update.
7522 * guile/scm-param.c (gdbscm_parameter_value): Update.
7523 * guile/scm-frame.c (gdbscm_frame_read_register)
7524 (gdbscm_frame_read_var): Update.
7525 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
7526 * exec.c (try_open_exec_file): Update.
7527 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
7528 (gdb_rl_callback_handler): Update.
7529 * common/common-exceptions.h (exception_none): Don't declare.
7530 * common/common-exceptions.c (exception_none): Don't define.
7531 (struct catcher) <exception>: Update.
7532 * cli/cli-interp.c (safe_execute_command): Update.
7533 * breakpoint.c (insert_bp_location, location_to_sals): Update.
7535 2019-04-25 Ali Tamur <tamur@google.com>
7537 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
7538 (read_attribute_value): Likewise.
7539 (dwarf2_read_addr_index): Update comment.
7540 (read_str_index): Add DW_FORM_strx.
7541 (dwarf2_string_attr): Likewise.
7542 (dwarf2_const_value_attr): Likewise.
7543 (dump_die_shallow): Likewise.
7544 (dwarf2_fetch_constant_bytes): Likewise.
7545 (skip_form_bytes): Likewise.
7546 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
7548 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
7552 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
7553 OFFSET. Verify if current mapping contains an ELF header.
7554 (linux_find_memory_regions_full): Adjust call to
7557 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
7558 Kang Li <kanglictf@gmail.com>
7562 * dwarf2-frame.c (read_initial_length): Be consistent about using
7563 unsigned representation of length.
7564 (decode_frame_entry_1): Likewise. Check for wraparound of
7565 end pointer as well as buffer overflow.
7567 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
7569 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
7572 2019-04-24 Tom Tromey <tromey@adacore.com>
7574 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
7576 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7578 * s12z-tdep.c (s12z_unwind_pc): Delete.
7579 (s12z_unwind_sp): Delete.
7580 (s12z_gdbarch_init): Don't register deleted functions with
7583 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7585 * rl78-tdep.c (rl78_unwind_sp): Delete.
7586 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
7588 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7590 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
7591 (xstormy16_unwind_pc): Delete.
7592 (xstormy16_dummy_id): Delete.
7593 (xstormy16_gdbarch_init): Don't register deleted functions with
7596 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7598 * vax-tdep.c (vax_unwind_pc): Delete.
7599 (vax_gdbarch_init): Don't register deleted function with gdbarch.
7601 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7603 * v850-tdep.c (v850_unwind_sp): Delete.
7604 (v850_unwind_pc): Delete.
7605 (v850_dummy_id): Delete.
7606 (v850_gdbarch_init): Don't register deleted functions with
7609 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7611 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
7612 (tilegx_unwind_pc): Delete.
7613 (tilegx_unwind_dummy_id): Delete.
7614 (tilegx_gdbarch_init): Don't register deleted functions with
7617 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7619 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
7620 (tic6x_dummy_id): Delete.
7621 (tic6x_gdbarch_init): Don't register deleted functions with
7624 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7626 * sparc-tdep.c (sparc_unwind_pc): Delete.
7627 (sparc32_gdbarch_init): Don't register deleted function with
7630 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7632 * sh-tdep.c (sh_unwind_sp): Delete.
7633 (sh_unwind_pc): Delete.
7634 (sh_dummy_id): Delete.
7635 (sh_gdbarch_init): Don't register deleted functions with
7638 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7640 * score-tdep.c (score_unwind_sp): Delete.
7641 (score_unwind_pc): Delete.
7642 (score_dummy_id): Delete.
7643 (score_gdbarch_init): Don't register deleted functions with
7646 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7648 * rx-tdep.c (rx_unwind_pc): Delete.
7649 (rx_unwind_sp): Delete.
7650 (rx_dummy_id): Delete.
7651 (rx_gdbarch_init): Don't register deleted functions with
7652 gdbarch. Update comment.
7654 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7656 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
7657 (rs6000_dummy_id): Delete.
7658 (rs6000_gdbarch_init): Don't register deleted functions with
7661 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7663 * or1k-tdep.c (or1k_dummy_id): Delete.
7664 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
7666 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7668 * nios2-tdep.c (nios2_dummy_id): Delete.
7669 (nios2_unwind_sp): Delete.
7670 (nios2_gdbarch_init): Don't register deleted functions with
7673 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7675 * nds32-tdep.c (nds32_dummy_id): Delete.
7676 (nds32_unwind_pc): Delete.
7677 (nds32_unwind_sp): Delete.
7678 (nds32_gdbarch_init): Don't register deleted functions with
7681 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7683 * msp430-tdep.c (msp430_unwind_pc): Delete.
7684 (msp430_unwind_sp): Delete.
7685 (msp430_dummy_id): Delete.
7686 (msp430_gdbarch_init): Don't register deleted functions with
7689 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7691 * moxie-tdep.c (moxie_unwind_sp): Delete.
7692 (moxie_unwind_pc): Delete.
7693 (moxie_dummy_id): Delete.
7694 (moxie_gdbarch_init): Don't register deleted functions with
7697 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7699 * mn10300-tdep.c (mn10300_dummy_id): Delete.
7700 (mn10300_unwind_pc): Delete.
7701 (mn10300_unwind_sp): Delete.
7702 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
7704 (mn10300_frame_unwind_init): Don't register deleted functions with
7707 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7709 * mep-tdep.c (mep_unwind_pc): Delete.
7710 (mep_unwind_sp): Delete.
7711 (mep_dummy_id): Delete.
7712 (mep_gdbarch_init): Don't register deleted functions with
7715 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7717 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
7718 (m68hc11_unwind_sp): Delete.
7719 (m68hc11_gdbarch_init): Don't register deleted functions with
7722 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7724 * m32r-tdep.c (m32r_unwind_sp): Delete.
7725 (m32r_unwind_pc): Delete.
7726 (m32r_dummy_id): Delete.
7727 (m32r_gdbarch_init): Don't register deleted functions with
7730 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7732 * m32c-tdep.c (m32c_unwind_pc): Delete.
7733 (m32c_unwind_sp): Delete.
7734 (m32c_dummy_id): Delete.
7735 (m32c_gdbarch_init): Don't register deleted functions with
7738 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7740 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
7741 (lm32_unwind_pc): Delete.
7742 (lm32_dummy_id): Delete.
7743 (lm32_gdbarch_init): Don't register deleted functions with
7746 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7748 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
7749 (iq2000_unwind_pc): Delete.
7750 (iq2000_dummy_id): Delete.
7751 (iq2000_gdbarch_init): Don't register deleted functions with
7754 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7756 * nds32-tdep.c (nds32_type_align): Delete.
7757 (nds32_push_dummy_call): Use type_align instead.
7759 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7761 * arm-tdep.c (arm_type_align): Only handle vector override case.
7762 (arm_push_dummy_call): Use type_align.
7763 (arm_gdbarch_init): Register arm_type_align gdbarch function.
7765 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7767 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
7769 (pass_on_stack): Use type_align.
7770 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
7773 2019-04-23 Tom Tromey <tromey@adacore.com>
7775 * dwarf2read.c (line_header::file_name_at): Remove unused
7778 2019-04-23 Tom de Vries <tdevries@suse.de>
7781 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
7785 2019-03-27 Ali Tamur <tamur@google.com>
7787 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
7788 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
7789 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
7790 (dwarf_expr_context::get_addr_index): Likewise
7791 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
7792 (symbol_needs_eval_context::get_addr_index): Likewise
7793 (disassemble_dwarf_expression): Add DW_OP_addrx
7794 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
7795 (read_cutu_die_from_dwo): Update comment
7796 (skip_one_die): Add DW_FORM_addrx
7797 (read_attribute_value): Likewise
7798 (var_decode_location): Add DW_OP_addrx
7799 (dwarf2_const_value_attr): Add DW_FORM_addrx
7800 (dump_die_shallow): Likewise
7801 (dwarf2_fetch_constant_bytes): Likewise
7802 (decode_locdesc): Add DW_OP_addrx
7803 (skip_form_bytes): Add DW_FORM_addrx
7805 2019-04-22 Ali Tamur <tamur@google.com>
7807 * MAINTAINERS (Write After Approval): Add self.
7809 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
7811 * solib-svr4.c (get_svr4_info): Add pspace parameter.
7812 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
7813 (open_symbol_file_object): Likewise.
7814 (svr4_default_sos): Add info parameter.
7815 (svr4_read_so_list): Likewise.
7816 (svr4_current_sos_direct): Adjust functions calls to pass down
7818 (svr4_current_sos_1): Add info parameter.
7819 (svr4_current_sos): Call get_svr4_info, pass info down to
7821 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
7823 (svr4_in_dynsym_resolve_code): Pass current_program_space to
7825 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
7827 (probes_table_remove_objfile_probes): Likewise.
7828 (register_solib_event_probe): Add info parameter.
7829 (solist_update_incremental): Pass info parameter down to
7831 (disable_probes_interface): Add info parameter.
7832 (svr4_handle_solib_event): Pass current_program_space to
7833 get_svr4_info. Adjust disable_probes_interface cleanup.
7834 (svr4_create_probe_breakpoints): Add info parameter, pass it
7835 down to register_solib_event_probe.
7836 (svr4_create_solib_event_breakpoints): Add info parameter,
7837 pass it down to svr4_create_probe_breakpoints.
7838 (enable_break): Pass info down to
7839 svr4_create_solib_event_breakpoints.
7840 (svr4_solib_create_inferior_hook): Pass current_program_space to
7842 (svr4_clear_solib): Likewise.
7844 2019-04-22 Pedro Alves <palves@redhat.com>
7846 * solib-svr4.c (svr4_free_objfile_observer): New.
7847 (probe_and_action::objfile): New field.
7848 (probes_table_htab_remove_objfile_probes)
7849 (probes_table_remove_objfile_probes): New functions.
7850 (register_solib_event_probe): Add 'objfile' parameter. Store it
7851 in the new probe_and_action. Don't store the probe in 'lookup'.
7852 (svr4_create_probe_breakpoints): Pass objfile to
7853 register_solib_event_probe.
7854 (_initialize_svr4_solib): Register a free_objfile observer.
7856 2019-04-19 Tom Tromey <tom@tromey.com>
7858 * common/queue.h: Remove.
7860 2019-04-19 Tom Tromey <tom@tromey.com>
7862 * event-loop.c: Don't include "common/queue.h".
7864 2019-04-19 Tom Tromey <tom@tromey.com>
7866 * remote.c (remote_target): Use delete.
7867 * remote-notif.h: Include <list>, not "common/queue.h".
7868 (notif_client_p): Remove typedef.
7869 (remote_notif_state): Add constructor, destructor, initializer.
7870 <notif_queue>: Now a std::list.
7871 (remote_notif_state_xfree): Don't declare.
7872 * remote-notif.c (remote_notif_process, handle_notification)
7873 (remote_notif_state_allocate): Update.
7874 (~remote_notif_state): Rename from remote_notif_state_xfree.
7876 2019-04-19 Tom Tromey <tom@tromey.com>
7878 * symfile.c (reread_symbols): Update.
7879 * objfiles.c (objfile_register_static_link)
7880 (objfile_lookup_static_link): Update
7881 (~objfile) Don't delete static_links.
7882 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
7884 2019-04-19 Tom Tromey <tom@tromey.com>
7886 * type-stack.h (struct type_stack) <insert>: Constify string.
7887 * type-stack.c (type_stack::insert): Constify string.
7888 * gdbtypes.h (lookup_template_type): Update.
7889 (address_space_name_to_int): Update.
7890 * gdbtypes.c (address_space_name_to_int): Make space_identifier
7892 (lookup_template_type): Make name const.
7893 * c-exp.y: Update rules.
7894 (lex_one_token, classify_name, classify_inner_name)
7895 (c_print_token): Update.
7896 * p-exp.y: Update rules.
7898 * f-exp.y: Update rules.
7900 * d-exp.y: Update rules.
7901 (lex_one_token, classify_name, classify_inner_name): Update.
7902 * parse.c (write_dollar_variable, copy_name): Return std::string.
7903 * parser-defs.h (copy_name): Change return type.
7904 * m2-exp.y: Update rules.
7906 * go-exp.y (lex_one_token): Update.
7908 (classify_unsafe_function, classify_packaged_name)
7909 (classify_name, yylex): Update.
7911 2019-04-19 Sergei Trofimovich <siarheit@google.com>
7913 * configure.ac: add --enable-source-highlight switch.
7914 * configure: Regenerate.
7915 * top.c (print_gdb_version): plumb --enable-source-highlight
7916 status to "show configuration".
7918 2019-04-19 Tom Tromey <tromey@adacore.com>
7920 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
7922 (empty_record, ada_template_to_fixed_record_type_1)
7923 (template_to_static_fixed_type)
7924 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
7925 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
7926 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
7929 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
7932 * source.c (print_source_lines_base): Advance "iter" when a
7933 control character is seen.
7935 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7937 * inferior.h (struct infcall_suspend_state_deleter):
7938 Catch exception in destructor to avoid crash.
7940 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7942 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
7943 close to the add_com "shell".
7945 2019-04-18 Tom Tromey <tromey@adacore.com>
7947 * process-stratum-target.h (class process_stratum_target)
7948 <stratum>: Add "final".
7950 2019-04-17 Tom Tromey <tromey@adacore.com>
7952 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
7953 against nullptr before use.
7955 2019-04-17 Alan Hayward <alan.hayward@arm.com>
7957 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
7959 2019-04-17 Jim Wilson <jimw@sifive.com>
7960 Andrew Burgess <andrew.burgess@embecosm.com>
7962 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
7963 code read might fail, assume 4-byte breakpoint in that case.
7965 2019-04-15 Leszek Swirski <leszeks@google.com>
7967 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
7968 rather than a hand-rolled POD check when checking for forced MEMORY
7971 2019-04-15 Alan Hayward <alan.hayward@arm.com>
7973 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
7974 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
7976 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
7977 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
7978 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
7981 2019-04-15 Alan Hayward <alan.hayward@arm.com>
7983 * aarch64-linux-nat.c
7984 (aarch64_linux_nat_target::thread_architecture): Add override.
7985 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
7988 2019-04-15 Alan Hayward <alan.hayward@arm.com>
7990 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
7992 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
7994 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
7995 target types of size 96-bits, add some additional comments, and
7996 check that the builtin type we found was the correct size.
7998 2019-04-12 Eli Zaretskii <eliz@gnu.org>
8000 * utils.c (prompt_for_continue): Don't restore the styling at the
8001 end, as applied_style has the wrong value. This fixes styling in
8002 long lists of file names that are interrupted by the "Continue?"
8005 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
8007 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
8008 * c-lang.c (c_language_defn): Likewise.
8009 (cplus_language_defn): Likewise.
8010 (asm_language_defn): Likewise.
8011 (minimal_language_defn): Likewise.
8012 * d-lang.c (d_language_defn): Likewise.
8013 * f-lang.c (f_language_defn): Likewise.
8014 * go-lang.c (go_language_defn): Likewise.
8015 * language.c (unknown_language_defn): Likewise.
8016 (auto_language_defn): Likewise.
8017 * language.h (struct language_defn): Remove la_magic field.
8018 (LANG_MAGIC): Delete.
8019 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
8020 * objc-lang.c (objc_language_defn): Likewise.
8021 * opencl-lang.c (opencl_language_defn): Likewise.
8022 * p-lang.c (pascal_language_defn): Likewise.
8023 * rust-lang.c (rust_language_defn): Likewise.
8025 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8027 * riscv-tdep.c (riscv_type_align): New function.
8028 (riscv_type_alignment): Delete.
8029 (riscv_arg_location): Use 'type_align'.
8030 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
8032 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8034 * gdbtypes.c (type_align): A struct with no non-static fields also
8037 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8039 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
8041 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
8043 (riscv_struct_info::analyse): New implementation using new
8044 analyse_inner member function.
8045 (riscv_struct_info::field_offset): New member function.
8046 (riscv_struct_info::m_offsets): New member variable.
8047 (riscv_struct_info::analyse_inner): New private member function,
8048 takes the old implementation of riscv_struct_info::analyse but
8049 extended to track field offsets.
8050 (riscv_call_arg_struct): Update the struct folding special cases
8051 to handle cases where empty C++ structs, which are non-zero
8053 (riscv_arg_location): Initialise the length of each location, a
8054 non-zero length now indicates the location is in use.
8055 (riscv_push_dummy_call): Allow for the first location having a
8056 non-zero offset when setting up arguments.
8057 (riscv_return_value): Likewise, but for return values.
8059 2019-04-11 Tom Tromey <tromey@adacore.com>
8061 * utils.c (internal_vproblem): Make "msg" const.
8063 2019-04-11 Alan Hayward <alan.hayward@arm.com>
8065 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
8066 * trad-frame.c (trad_frame_reset_saved_regs): New function.
8067 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
8068 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
8070 2019-04-10 Kevin Buettner <kevinb@redhat.com>
8072 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
8074 (fill_gregset): Call amd64_linux_collect_native_gregset instead
8075 of amd64_collect_native_gregset.
8076 (amd64_linux_nat_target::store_registers): Likewise.
8078 2019-04-10 Tom Tromey <tom@tromey.com>
8080 * symtab.c (lookup_global_symbol_from_objfile)
8081 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
8082 * objfiles.h (class separate_debug_iterator): New.
8083 (class separate_debug_range): New.
8084 (struct objfile) <separate_debug_objfiles>: New method.
8085 (objfile_separate_debug_iterate): Don't declare.
8086 * objfiles.c (separate_debug_iterator::operator++): Rename from
8087 objfile_separate_debug_iterate.
8088 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
8090 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
8093 2019-04-10 Tom Tromey <tom@tromey.com>
8095 * symfile.c (reread_symbols): Remove old comment.
8096 * objfiles.c (free_all_objfiles): Fix a typo.
8098 2019-04-10 Tom Tromey <tom@tromey.com>
8100 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
8101 * minsyms.c (lookup_minimal_symbol): Use foreach.
8102 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8103 (lookup_minimal_symbol_solib_trampoline): Likewise.
8104 * symfile.c (reread_symbols): Use foreach.
8106 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
8107 Tom Tromey <tromey@adacore.com>
8110 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
8111 (rust_lex_int_test): Change "value" to be LONGEST.
8112 (rust_lex_tests): Add test for long integer literal.
8114 2019-04-09 Tom Tromey <tromey@adacore.com>
8116 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
8118 (extended_remote_target::attach): Update.
8119 (remote_target::remote_notice_new_inferior): Update.
8120 (remote_target::add_current_inferior_and_thread): Update.
8121 * inferior.c (exit_inferior_1): Use "false".
8122 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
8124 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
8126 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
8127 the "start" command.
8129 2019-04-08 Kevin Buettner <kevinb@redhat.com>
8131 * python/py-inferior.c (infpy_thread_from_thread_handle):
8132 Adjust comments to reflect renaming of thread_from_thread_handle
8133 to thread_from_handle. Adjust keywords. Fix type error message.
8134 (inferior_object_methods): Add thread_from_handle. Retain
8135 thread_from_thread_handle, but mark it as deprecated.
8137 2019-04-08 Kevin Buettner <kevinb@redhat.com>
8139 * gdbthread.h (find_thread_by_handle): Revise declaration.
8140 * thread.c (find_thread_by_handle): Likewise. Adjust
8142 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
8143 support for buffer objects as handles.
8145 2019-04-08 Kevin Buettner <kevinb@redhat.com>
8147 * python/py-infthread.c (thpy_thread_handle): New function.
8148 (thread_object_methods): Register thpy_thread_handle.
8150 2019-04-08 Kevin Buettner <kevinb@redhat.com>
8152 * gdbthread.h (thread_to_thread_handle): Declare.
8153 * thread.c (gdbtypes.h): Include.
8154 (thread_to_thread_handle): New function.
8156 * target.h (struct target_ops): Add thread_info_to_thread_handle.
8157 (target_thread_info_to_thread_handle): Declare.
8158 * target.c (target_thread_info_to_thread_handle): New function.
8159 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
8160 * target-delegates.c: Regenerate.
8162 * linux-thread-db.c (class thread_db_target): Add method
8163 thread_info_to_thread_handle.
8164 (thread_db_target::thread_info_to_thread_handle): Define.
8165 * remote.c (class remote_target): Add new method
8166 thread_info_to_thread_handle.
8167 (remote_target::thread_info_to_thread_handle): Define.
8169 2019-04-08 Pedro Alves <palves@redhat.com>
8171 * common/common-exceptions.c (throw_exception): Don't create
8172 named object to throw; throw directly.
8173 (throw_it): Likewise. Don't initialize gdb_exception::message
8174 here, with new; pass FMT and AP to the ctor instead.
8175 * common/common-exceptions.h: Include <string>.
8176 (gdb_exception::gdb_exception(enum return_reason, enum errors,
8177 const char *, va_list)): New ctor. Use std::make_shared.
8178 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
8180 (gdb_exception_error::gdb_exception_error(enum errors, const char
8182 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
8184 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
8186 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
8187 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
8190 2019-04-08 Tom Tromey <tom@tromey.com>
8192 * valops.c (value_rtti_indirect_type): Replace throw_exception
8194 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
8196 * thread.c (thr_try_catch_cmd): Replace throw_exception with
8198 * target.c (target_translate_tls_address): Replace throw_exception
8200 * stack.c (frame_apply_command_count): Replace throw_exception
8202 * solib-spu.c (append_ocl_sos): Replace throw_exception with
8204 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
8206 * rs6000-tdep.c (rs6000_frame_cache)
8207 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
8208 * remote.c: Replace throw_exception with throw.
8209 * record-full.c (record_full_message, record_full_wait_1)
8210 (record_full_restore): Replace throw_exception with throw.
8212 (get_thread_current_frame_id, record_btrace_start_replaying)
8213 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
8214 (cmd_record_btrace_start): Replace throw_exception with throw.
8215 * parse.c (parse_exp_in_context_1): Replace throw_exception with
8217 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
8218 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
8220 (find_linespec_symbols): Replace throw_exception with throw.
8221 * infrun.c (displaced_step_prepare, resume): Replace
8222 throw_exception with throw.
8223 * infcmd.c (post_create_inferior): Replace throw_exception with
8225 * inf-loop.c (inferior_event_handler): Replace throw_exception
8227 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
8228 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
8229 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
8230 (get_prev_frame_always, get_frame_pc_if_available)
8231 (get_frame_address_in_block_if_available, get_frame_language):
8232 Replace throw_exception with throw.
8233 * frame-unwind.c (frame_unwind_try_unwinder): Replace
8234 throw_exception with throw.
8235 * eval.c (fetch_subexp_value, evaluate_var_value)
8236 (evaluate_funcall, evaluate_subexp_standard): Replace
8237 throw_exception with throw.
8238 * dwarf2loc.c (call_site_find_chain)
8239 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
8240 Replace throw_exception with throw.
8241 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
8243 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
8245 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
8246 * completer.c (complete_line_internal): Replace throw_exception
8248 * compile/compile-object-run.c (compile_object_run): Replace
8249 throw_exception with throw.
8250 * cli/cli-script.c (process_next_line): Replace throw_exception
8252 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
8253 (btrace_enable, btrace_maint_update_pt_packets): Replace
8254 throw_exception with throw.
8255 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
8256 throw_exception with throw.
8257 * break-catch-throw.c (re_set_exception_catchpoint): Replace
8258 throw_exception with throw.
8259 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
8260 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
8261 * aarch64-tdep.c (aarch64_make_prologue_cache)
8262 (aarch64_make_stub_cache): Replace throw_exception with throw.
8264 2019-04-08 Tom Tromey <tom@tromey.com>
8266 * common/common-exceptions.c (throw_exception): Rename from
8267 throw_exception_cxx. Remove old copy. Make argument const.
8268 (throw_it): Create and throw exception objects directly.
8269 * common/common-exceptions.h (throw_exception): Make argument
8271 (struct gdb_exception_error): Add constructor.
8272 (struct gdb_exception_quit): Add constructor.
8274 2019-04-08 Tom Tromey <tom@tromey.com>
8276 * common/common-exceptions.h (exception_rethrow): Don't declare.
8277 (TRY_SJLJ): Update comment.
8278 (TRY, CATCH, END_CATCH): Remove.
8279 * common/common-exceptions.c (exception_rethrow): Remove.
8281 2019-04-08 Tom Tromey <tom@tromey.com>
8283 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
8285 (gdb_exception_error): Rename from
8286 gdb_exception_RETURN_MASK_ERROR.
8287 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
8288 (gdb_quit_bad_alloc): Update.
8289 * aarch64-tdep.c: Update.
8290 * ada-lang.c: Update.
8291 * ada-typeprint.c: Update.
8292 * ada-valprint.c: Update.
8293 * amd64-tdep.c: Update.
8294 * arch-utils.c: Update.
8295 * break-catch-throw.c: Update.
8296 * breakpoint.c: Update.
8298 * c-varobj.c: Update.
8299 * cli/cli-cmds.c: Update.
8300 * cli/cli-interp.c: Update.
8301 * cli/cli-script.c: Update.
8302 * common/common-exceptions.c: Update.
8303 * common/new-op.c: Update.
8304 * common/selftest.c: Update.
8305 * compile/compile-c-symbols.c: Update.
8306 * compile/compile-cplus-symbols.c: Update.
8307 * compile/compile-object-load.c: Update.
8308 * compile/compile-object-run.c: Update.
8309 * completer.c: Update.
8310 * corelow.c: Update.
8312 * cp-support.c: Update.
8313 * cp-valprint.c: Update.
8314 * darwin-nat.c: Update.
8315 * disasm-selftests.c: Update.
8316 * dtrace-probe.c: Update.
8317 * dwarf-index-cache.c: Update.
8318 * dwarf-index-write.c: Update.
8319 * dwarf2-frame-tailcall.c: Update.
8320 * dwarf2-frame.c: Update.
8321 * dwarf2loc.c: Update.
8322 * dwarf2read.c: Update.
8324 * event-loop.c: Update.
8325 * event-top.c: Update.
8327 * f-valprint.c: Update.
8328 * fbsd-tdep.c: Update.
8329 * frame-unwind.c: Update.
8331 * gdbtypes.c: Update.
8332 * gnu-v3-abi.c: Update.
8333 * guile/guile-internal.h: Update.
8334 * guile/scm-block.c: Update.
8335 * guile/scm-breakpoint.c: Update.
8336 * guile/scm-cmd.c: Update.
8337 * guile/scm-disasm.c: Update.
8338 * guile/scm-frame.c: Update.
8339 * guile/scm-lazy-string.c: Update.
8340 * guile/scm-math.c: Update.
8341 * guile/scm-param.c: Update.
8342 * guile/scm-ports.c: Update.
8343 * guile/scm-pretty-print.c: Update.
8344 * guile/scm-symbol.c: Update.
8345 * guile/scm-symtab.c: Update.
8346 * guile/scm-type.c: Update.
8347 * guile/scm-value.c: Update.
8348 * i386-linux-tdep.c: Update.
8349 * i386-tdep.c: Update.
8350 * inf-loop.c: Update.
8351 * infcall.c: Update.
8355 * language.c: Update.
8356 * linespec.c: Update.
8357 * linux-fork.c: Update.
8358 * linux-nat.c: Update.
8359 * linux-tdep.c: Update.
8360 * linux-thread-db.c: Update.
8362 * mi/mi-cmd-break.c: Update.
8363 * mi/mi-cmd-stack.c: Update.
8364 * mi/mi-interp.c: Update.
8365 * mi/mi-main.c: Update.
8366 * objc-lang.c: Update.
8367 * p-valprint.c: Update.
8369 * ppc-linux-tdep.c: Update.
8370 * printcmd.c: Update.
8371 * python/py-arch.c: Update.
8372 * python/py-breakpoint.c: Update.
8373 * python/py-cmd.c: Update.
8374 * python/py-finishbreakpoint.c: Update.
8375 * python/py-frame.c: Update.
8376 * python/py-framefilter.c: Update.
8377 * python/py-gdb-readline.c: Update.
8378 * python/py-inferior.c: Update.
8379 * python/py-infthread.c: Update.
8380 * python/py-lazy-string.c: Update.
8381 * python/py-linetable.c: Update.
8382 * python/py-objfile.c: Update.
8383 * python/py-param.c: Update.
8384 * python/py-prettyprint.c: Update.
8385 * python/py-progspace.c: Update.
8386 * python/py-record-btrace.c: Update.
8387 * python/py-record.c: Update.
8388 * python/py-symbol.c: Update.
8389 * python/py-type.c: Update.
8390 * python/py-unwind.c: Update.
8391 * python/py-utils.c: Update.
8392 * python/py-value.c: Update.
8393 * python/python.c: Update.
8394 * record-btrace.c: Update.
8395 * record-full.c: Update.
8396 * remote-fileio.c: Update.
8398 * riscv-tdep.c: Update.
8399 * rs6000-aix-tdep.c: Update.
8400 * rs6000-tdep.c: Update.
8401 * rust-exp.y: Update.
8402 * rust-lang.c: Update.
8403 * s390-tdep.c: Update.
8404 * selftest-arch.c: Update.
8405 * solib-dsbt.c: Update.
8406 * solib-frv.c: Update.
8407 * solib-spu.c: Update.
8408 * solib-svr4.c: Update.
8410 * sparc64-linux-tdep.c: Update.
8412 * symfile-mem.c: Update.
8413 * symmisc.c: Update.
8417 * tracefile-tfile.c: Update.
8418 * tui/tui.c: Update.
8419 * typeprint.c: Update.
8420 * unittests/cli-utils-selftests.c: Update.
8421 * unittests/parse-connection-spec-selftests.c: Update.
8423 * valprint.c: Update.
8426 * windows-nat.c: Update.
8427 * x86-linux-nat.c: Update.
8428 * xml-support.c: Update.
8430 2019-04-08 Tom Tromey <tom@tromey.com>
8432 * xml-support.c: Use C++ exception handling.
8433 * x86-linux-nat.c: Use C++ exception handling.
8434 * windows-nat.c: Use C++ exception handling.
8435 * varobj.c: Use C++ exception handling.
8436 * value.c: Use C++ exception handling.
8437 * valprint.c: Use C++ exception handling.
8438 * valops.c: Use C++ exception handling.
8439 * unittests/parse-connection-spec-selftests.c: Use C++ exception
8441 * unittests/cli-utils-selftests.c: Use C++ exception handling.
8442 * typeprint.c: Use C++ exception handling.
8443 * tui/tui.c: Use C++ exception handling.
8444 * tracefile-tfile.c: Use C++ exception handling.
8445 * top.c: Use C++ exception handling.
8446 * thread.c: Use C++ exception handling.
8447 * target.c: Use C++ exception handling.
8448 * symmisc.c: Use C++ exception handling.
8449 * symfile-mem.c: Use C++ exception handling.
8450 * stack.c: Use C++ exception handling.
8451 * sparc64-linux-tdep.c: Use C++ exception handling.
8452 * solib.c: Use C++ exception handling.
8453 * solib-svr4.c: Use C++ exception handling.
8454 * solib-spu.c: Use C++ exception handling.
8455 * solib-frv.c: Use C++ exception handling.
8456 * solib-dsbt.c: Use C++ exception handling.
8457 * selftest-arch.c: Use C++ exception handling.
8458 * s390-tdep.c: Use C++ exception handling.
8459 * rust-lang.c: Use C++ exception handling.
8460 * rust-exp.y: Use C++ exception handling.
8461 * rs6000-tdep.c: Use C++ exception handling.
8462 * rs6000-aix-tdep.c: Use C++ exception handling.
8463 * riscv-tdep.c: Use C++ exception handling.
8464 * remote.c: Use C++ exception handling.
8465 * remote-fileio.c: Use C++ exception handling.
8466 * record-full.c: Use C++ exception handling.
8467 * record-btrace.c: Use C++ exception handling.
8468 * python/python.c: Use C++ exception handling.
8469 * python/py-value.c: Use C++ exception handling.
8470 * python/py-utils.c: Use C++ exception handling.
8471 * python/py-unwind.c: Use C++ exception handling.
8472 * python/py-type.c: Use C++ exception handling.
8473 * python/py-symbol.c: Use C++ exception handling.
8474 * python/py-record.c: Use C++ exception handling.
8475 * python/py-record-btrace.c: Use C++ exception handling.
8476 * python/py-progspace.c: Use C++ exception handling.
8477 * python/py-prettyprint.c: Use C++ exception handling.
8478 * python/py-param.c: Use C++ exception handling.
8479 * python/py-objfile.c: Use C++ exception handling.
8480 * python/py-linetable.c: Use C++ exception handling.
8481 * python/py-lazy-string.c: Use C++ exception handling.
8482 * python/py-infthread.c: Use C++ exception handling.
8483 * python/py-inferior.c: Use C++ exception handling.
8484 * python/py-gdb-readline.c: Use C++ exception handling.
8485 * python/py-framefilter.c: Use C++ exception handling.
8486 * python/py-frame.c: Use C++ exception handling.
8487 * python/py-finishbreakpoint.c: Use C++ exception handling.
8488 * python/py-cmd.c: Use C++ exception handling.
8489 * python/py-breakpoint.c: Use C++ exception handling.
8490 * python/py-arch.c: Use C++ exception handling.
8491 * printcmd.c: Use C++ exception handling.
8492 * ppc-linux-tdep.c: Use C++ exception handling.
8493 * parse.c: Use C++ exception handling.
8494 * p-valprint.c: Use C++ exception handling.
8495 * objc-lang.c: Use C++ exception handling.
8496 * mi/mi-main.c: Use C++ exception handling.
8497 * mi/mi-interp.c: Use C++ exception handling.
8498 * mi/mi-cmd-stack.c: Use C++ exception handling.
8499 * mi/mi-cmd-break.c: Use C++ exception handling.
8500 * main.c: Use C++ exception handling.
8501 * linux-thread-db.c: Use C++ exception handling.
8502 * linux-tdep.c: Use C++ exception handling.
8503 * linux-nat.c: Use C++ exception handling.
8504 * linux-fork.c: Use C++ exception handling.
8505 * linespec.c: Use C++ exception handling.
8506 * language.c: Use C++ exception handling.
8507 * jit.c: Use C++ exception handling.
8508 * infrun.c: Use C++ exception handling.
8509 * infcmd.c: Use C++ exception handling.
8510 * infcall.c: Use C++ exception handling.
8511 * inf-loop.c: Use C++ exception handling.
8512 * i386-tdep.c: Use C++ exception handling.
8513 * i386-linux-tdep.c: Use C++ exception handling.
8514 * guile/scm-value.c: Use C++ exception handling.
8515 * guile/scm-type.c: Use C++ exception handling.
8516 * guile/scm-symtab.c: Use C++ exception handling.
8517 * guile/scm-symbol.c: Use C++ exception handling.
8518 * guile/scm-pretty-print.c: Use C++ exception handling.
8519 * guile/scm-ports.c: Use C++ exception handling.
8520 * guile/scm-param.c: Use C++ exception handling.
8521 * guile/scm-math.c: Use C++ exception handling.
8522 * guile/scm-lazy-string.c: Use C++ exception handling.
8523 * guile/scm-frame.c: Use C++ exception handling.
8524 * guile/scm-disasm.c: Use C++ exception handling.
8525 * guile/scm-cmd.c: Use C++ exception handling.
8526 * guile/scm-breakpoint.c: Use C++ exception handling.
8527 * guile/scm-block.c: Use C++ exception handling.
8528 * guile/guile-internal.h: Use C++ exception handling.
8529 * gnu-v3-abi.c: Use C++ exception handling.
8530 * gdbtypes.c: Use C++ exception handling.
8531 * frame.c: Use C++ exception handling.
8532 * frame-unwind.c: Use C++ exception handling.
8533 * fbsd-tdep.c: Use C++ exception handling.
8534 * f-valprint.c: Use C++ exception handling.
8535 * exec.c: Use C++ exception handling.
8536 * event-top.c: Use C++ exception handling.
8537 * event-loop.c: Use C++ exception handling.
8538 * eval.c: Use C++ exception handling.
8539 * dwarf2read.c: Use C++ exception handling.
8540 * dwarf2loc.c: Use C++ exception handling.
8541 * dwarf2-frame.c: Use C++ exception handling.
8542 * dwarf2-frame-tailcall.c: Use C++ exception handling.
8543 * dwarf-index-write.c: Use C++ exception handling.
8544 * dwarf-index-cache.c: Use C++ exception handling.
8545 * dtrace-probe.c: Use C++ exception handling.
8546 * disasm-selftests.c: Use C++ exception handling.
8547 * darwin-nat.c: Use C++ exception handling.
8548 * cp-valprint.c: Use C++ exception handling.
8549 * cp-support.c: Use C++ exception handling.
8550 * cp-abi.c: Use C++ exception handling.
8551 * corelow.c: Use C++ exception handling.
8552 * completer.c: Use C++ exception handling.
8553 * compile/compile-object-run.c: Use C++ exception handling.
8554 * compile/compile-object-load.c: Use C++ exception handling.
8555 * compile/compile-cplus-symbols.c: Use C++ exception handling.
8556 * compile/compile-c-symbols.c: Use C++ exception handling.
8557 * common/selftest.c: Use C++ exception handling.
8558 * common/new-op.c: Use C++ exception handling.
8559 * cli/cli-script.c: Use C++ exception handling.
8560 * cli/cli-interp.c: Use C++ exception handling.
8561 * cli/cli-cmds.c: Use C++ exception handling.
8562 * c-varobj.c: Use C++ exception handling.
8563 * btrace.c: Use C++ exception handling.
8564 * breakpoint.c: Use C++ exception handling.
8565 * break-catch-throw.c: Use C++ exception handling.
8566 * arch-utils.c: Use C++ exception handling.
8567 * amd64-tdep.c: Use C++ exception handling.
8568 * ada-valprint.c: Use C++ exception handling.
8569 * ada-typeprint.c: Use C++ exception handling.
8570 * ada-lang.c: Use C++ exception handling.
8571 * aarch64-tdep.c: Use C++ exception handling.
8573 2019-04-08 Tom Tromey <tom@tromey.com>
8575 * xml-support.c (gdb_xml_parser::parse): Update.
8576 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
8577 * value.c (show_convenience): Update.
8578 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
8579 (test_parse_flags_qcs): Update.
8580 * thread.c (thr_try_catch_cmd): Update.
8581 * target.c (target_translate_tls_address): Update.
8582 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
8583 (info_frame_command_core, frame_apply_command_count): Update.
8584 * rust-exp.y (rust_lex_exception_test): Update.
8585 * riscv-tdep.c (riscv_print_one_register_info): Update.
8586 * remote.c (remote_target::enable_btrace): Update.
8587 * record-btrace.c (record_btrace_enable_warn): Update.
8588 * python/py-utils.c (gdbpy_convert_exception): Update.
8589 * printcmd.c (do_one_display, print_variable_and_value): Update.
8590 * mi/mi-main.c (mi_print_exception): Update.
8591 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
8592 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
8593 * linux-nat.c (linux_nat_target::attach): Update.
8594 * linux-fork.c (class scoped_switch_fork_info): Update.
8595 * infrun.c (displaced_step_prepare): Update.
8596 * infcall.c (call_function_by_hand_dummy): Update.
8597 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
8598 * gnu-v3-abi.c (print_one_vtable): Update.
8599 * frame.c (get_prev_frame_always): Update.
8600 * f-valprint.c (info_common_command_for_block): Update.
8601 * exec.c (try_open_exec_file): Update.
8602 * exceptions.c (print_exception, exception_print)
8603 (exception_fprintf, exception_print_same): Update.
8604 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
8605 * dwarf-index-cache.c (index_cache::store)
8606 (index_cache::lookup_gdb_index): Update.
8607 * darwin-nat.c (maybe_cache_shell): Update.
8608 * cp-valprint.c (cp_print_value_fields): Update.
8609 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
8610 (gcc_cplus_symbol_address): Update.
8611 * compile/compile-c-symbols.c (gcc_convert_symbol)
8612 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
8613 * common/selftest.c: Update.
8614 * common/common-exceptions.h (struct gdb_exception) <message>: Now
8616 (exception_try_scope_entry, exception_try_scope_exit): Don't
8618 (struct exception_try_scope): Remove.
8619 (TRY): Don't use exception_try_scope.
8620 (struct gdb_exception): Add constructor, operator=.
8622 (struct gdb_exception_RETURN_MASK_ALL)
8623 (struct gdb_exception_RETURN_MASK_ERROR)
8624 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
8625 (struct gdb_quit_bad_alloc): Update.
8626 * common/common-exceptions.c (exception_none): Change
8628 (struct catcher) <state, exception>: Initialize inline.
8629 <prev>: Remove member.
8630 (current_catcher): Remove.
8631 (catchers): New global.
8632 (exceptions_state_mc_init): Simplify.
8633 (catcher_pop): Remove.
8634 (exceptions_state_mc, exceptions_state_mc_catch): Update.
8635 (try_scope_depth, exception_try_scope_entry)
8636 (exception_try_scope_exit): Remove.
8637 (throw_exception_sjlj): Update.
8638 (exception_messages, exception_messages_size): Remove.
8639 (throw_it): Simplify.
8640 (gdb_exception_sliced_copy): Remove.
8641 (throw_exception_cxx): Update.
8642 * cli/cli-script.c (script_from_file): Update.
8643 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
8645 * ada-valprint.c (ada_val_print): Update.
8646 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
8647 (create_excep_cond_exprs): Update.
8649 2019-04-08 Tom Tromey <tom@tromey.com>
8651 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
8652 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
8653 (TRY, CATCH, END_CATCH): Remove some definitions.
8654 * common/common-exceptions.c: Don't use GDB_XCPT.
8655 (catcher_list_size): Remove.
8656 (throw_exception, throw_it): Simplify.
8658 2019-04-05 Tom Tromey <tom@tromey.com>
8660 Revert the header-sorting patch.
8661 * ft32-tdep.c: Revert.
8662 * frv-tdep.c: Revert.
8663 * frv-linux-tdep.c: Revert.
8665 * frame-unwind.c: Revert.
8666 * frame-base.c: Revert.
8667 * fork-child.c: Revert.
8668 * findvar.c: Revert.
8669 * findcmd.c: Revert.
8670 * filesystem.c: Revert.
8671 * filename-seen-cache.h: Revert.
8672 * filename-seen-cache.c: Revert.
8673 * fbsd-tdep.c: Revert.
8674 * fbsd-nat.h: Revert.
8675 * fbsd-nat.c: Revert.
8676 * f-valprint.c: Revert.
8677 * f-typeprint.c: Revert.
8679 * extension.h: Revert.
8680 * extension.c: Revert.
8681 * extension-priv.h: Revert.
8682 * expprint.c: Revert.
8685 * exceptions.c: Revert.
8686 * event-top.c: Revert.
8687 * event-loop.c: Revert.
8689 * elfread.c: Revert.
8690 * dwarf2read.h: Revert.
8691 * dwarf2read.c: Revert.
8692 * dwarf2loc.c: Revert.
8693 * dwarf2expr.h: Revert.
8694 * dwarf2expr.c: Revert.
8695 * dwarf2-frame.c: Revert.
8696 * dwarf2-frame-tailcall.c: Revert.
8697 * dwarf-index-write.h: Revert.
8698 * dwarf-index-write.c: Revert.
8699 * dwarf-index-common.c: Revert.
8700 * dwarf-index-cache.h: Revert.
8701 * dwarf-index-cache.c: Revert.
8702 * dummy-frame.c: Revert.
8703 * dtrace-probe.c: Revert.
8706 * disasm-selftests.c: Revert.
8707 * dictionary.c: Revert.
8708 * dicos-tdep.c: Revert.
8709 * demangle.c: Revert.
8712 * darwin-nat.h: Revert.
8713 * darwin-nat.c: Revert.
8714 * darwin-nat-info.c: Revert.
8715 * d-valprint.c: Revert.
8716 * d-namespace.c: Revert.
8719 * csky-tdep.c: Revert.
8720 * csky-linux-tdep.c: Revert.
8721 * cris-tdep.c: Revert.
8722 * cris-linux-tdep.c: Revert.
8723 * cp-valprint.c: Revert.
8724 * cp-support.c: Revert.
8725 * cp-namespace.c: Revert.
8727 * corelow.c: Revert.
8728 * corefile.c: Revert.
8729 * continuations.c: Revert.
8730 * completer.h: Revert.
8731 * completer.c: Revert.
8732 * complaints.c: Revert.
8733 * coffread.c: Revert.
8734 * coff-pe-read.c: Revert.
8735 * cli-out.h: Revert.
8736 * cli-out.c: Revert.
8737 * charset.c: Revert.
8738 * c-varobj.c: Revert.
8739 * c-valprint.c: Revert.
8740 * c-typeprint.c: Revert.
8742 * buildsym.c: Revert.
8743 * buildsym-legacy.c: Revert.
8744 * build-id.h: Revert.
8745 * build-id.c: Revert.
8747 * bsd-uthread.c: Revert.
8748 * breakpoint.h: Revert.
8749 * breakpoint.c: Revert.
8750 * break-catch-throw.c: Revert.
8751 * break-catch-syscall.c: Revert.
8752 * break-catch-sig.c: Revert.
8753 * blockframe.c: Revert.
8755 * bfin-tdep.c: Revert.
8756 * bfin-linux-tdep.c: Revert.
8757 * bfd-target.c: Revert.
8759 * ax-general.c: Revert.
8762 * avr-tdep.c: Revert.
8764 * auto-load.c: Revert.
8765 * arm-wince-tdep.c: Revert.
8766 * arm-tdep.c: Revert.
8767 * arm-symbian-tdep.c: Revert.
8768 * arm-pikeos-tdep.c: Revert.
8769 * arm-obsd-tdep.c: Revert.
8770 * arm-nbsd-tdep.c: Revert.
8771 * arm-nbsd-nat.c: Revert.
8772 * arm-linux-tdep.c: Revert.
8773 * arm-linux-nat.c: Revert.
8774 * arm-fbsd-tdep.c: Revert.
8775 * arm-fbsd-nat.c: Revert.
8776 * arm-bsd-tdep.c: Revert.
8777 * arch-utils.c: Revert.
8778 * arc-tdep.c: Revert.
8779 * arc-newlib-tdep.c: Revert.
8780 * annotate.h: Revert.
8781 * annotate.c: Revert.
8782 * amd64-windows-tdep.c: Revert.
8783 * amd64-windows-nat.c: Revert.
8784 * amd64-tdep.c: Revert.
8785 * amd64-sol2-tdep.c: Revert.
8786 * amd64-obsd-tdep.c: Revert.
8787 * amd64-obsd-nat.c: Revert.
8788 * amd64-nbsd-tdep.c: Revert.
8789 * amd64-nbsd-nat.c: Revert.
8790 * amd64-nat.c: Revert.
8791 * amd64-linux-tdep.c: Revert.
8792 * amd64-linux-nat.c: Revert.
8793 * amd64-fbsd-tdep.c: Revert.
8794 * amd64-fbsd-nat.c: Revert.
8795 * amd64-dicos-tdep.c: Revert.
8796 * amd64-darwin-tdep.c: Revert.
8797 * amd64-bsd-nat.c: Revert.
8798 * alpha-tdep.c: Revert.
8799 * alpha-obsd-tdep.c: Revert.
8800 * alpha-nbsd-tdep.c: Revert.
8801 * alpha-mdebug-tdep.c: Revert.
8802 * alpha-linux-tdep.c: Revert.
8803 * alpha-linux-nat.c: Revert.
8804 * alpha-bsd-tdep.c: Revert.
8805 * alpha-bsd-nat.c: Revert.
8806 * aix-thread.c: Revert.
8808 * addrmap.c: Revert.
8809 * ada-varobj.c: Revert.
8810 * ada-valprint.c: Revert.
8811 * ada-typeprint.c: Revert.
8812 * ada-tasks.c: Revert.
8813 * ada-lang.c: Revert.
8814 * aarch64-tdep.c: Revert.
8815 * aarch64-ravenscar-thread.c: Revert.
8816 * aarch64-newlib-tdep.c: Revert.
8817 * aarch64-linux-tdep.c: Revert.
8818 * aarch64-linux-nat.c: Revert.
8819 * aarch64-fbsd-tdep.c: Revert.
8820 * aarch64-fbsd-nat.c: Revert.
8821 * aarch32-linux-nat.c: Revert.
8823 2019-04-05 Tom Tromey <tom@tromey.com>
8825 * ft32-tdep.c: Sort headers.
8826 * frv-tdep.c: Sort headers.
8827 * frv-linux-tdep.c: Sort headers.
8828 * frame.c: Sort headers.
8829 * frame-unwind.c: Sort headers.
8830 * frame-base.c: Sort headers.
8831 * fork-child.c: Sort headers.
8832 * findvar.c: Sort headers.
8833 * findcmd.c: Sort headers.
8834 * filesystem.c: Sort headers.
8835 * filename-seen-cache.h: Sort headers.
8836 * filename-seen-cache.c: Sort headers.
8837 * fbsd-tdep.c: Sort headers.
8838 * fbsd-nat.h: Sort headers.
8839 * fbsd-nat.c: Sort headers.
8840 * f-valprint.c: Sort headers.
8841 * f-typeprint.c: Sort headers.
8842 * f-lang.c: Sort headers.
8843 * extension.h: Sort headers.
8844 * extension.c: Sort headers.
8845 * extension-priv.h: Sort headers.
8846 * expprint.c: Sort headers.
8847 * exec.h: Sort headers.
8848 * exec.c: Sort headers.
8849 * exceptions.c: Sort headers.
8850 * event-top.c: Sort headers.
8851 * event-loop.c: Sort headers.
8852 * eval.c: Sort headers.
8853 * elfread.c: Sort headers.
8854 * dwarf2read.h: Sort headers.
8855 * dwarf2read.c: Sort headers.
8856 * dwarf2loc.c: Sort headers.
8857 * dwarf2expr.h: Sort headers.
8858 * dwarf2expr.c: Sort headers.
8859 * dwarf2-frame.c: Sort headers.
8860 * dwarf2-frame-tailcall.c: Sort headers.
8861 * dwarf-index-write.h: Sort headers.
8862 * dwarf-index-write.c: Sort headers.
8863 * dwarf-index-common.c: Sort headers.
8864 * dwarf-index-cache.h: Sort headers.
8865 * dwarf-index-cache.c: Sort headers.
8866 * dummy-frame.c: Sort headers.
8867 * dtrace-probe.c: Sort headers.
8868 * disasm.h: Sort headers.
8869 * disasm.c: Sort headers.
8870 * disasm-selftests.c: Sort headers.
8871 * dictionary.c: Sort headers.
8872 * dicos-tdep.c: Sort headers.
8873 * demangle.c: Sort headers.
8874 * dcache.h: Sort headers.
8875 * dcache.c: Sort headers.
8876 * darwin-nat.h: Sort headers.
8877 * darwin-nat.c: Sort headers.
8878 * darwin-nat-info.c: Sort headers.
8879 * d-valprint.c: Sort headers.
8880 * d-namespace.c: Sort headers.
8881 * d-lang.c: Sort headers.
8882 * ctf.c: Sort headers.
8883 * csky-tdep.c: Sort headers.
8884 * csky-linux-tdep.c: Sort headers.
8885 * cris-tdep.c: Sort headers.
8886 * cris-linux-tdep.c: Sort headers.
8887 * cp-valprint.c: Sort headers.
8888 * cp-support.c: Sort headers.
8889 * cp-namespace.c: Sort headers.
8890 * cp-abi.c: Sort headers.
8891 * corelow.c: Sort headers.
8892 * corefile.c: Sort headers.
8893 * continuations.c: Sort headers.
8894 * completer.h: Sort headers.
8895 * completer.c: Sort headers.
8896 * complaints.c: Sort headers.
8897 * coffread.c: Sort headers.
8898 * coff-pe-read.c: Sort headers.
8899 * cli-out.h: Sort headers.
8900 * cli-out.c: Sort headers.
8901 * charset.c: Sort headers.
8902 * c-varobj.c: Sort headers.
8903 * c-valprint.c: Sort headers.
8904 * c-typeprint.c: Sort headers.
8905 * c-lang.c: Sort headers.
8906 * buildsym.c: Sort headers.
8907 * buildsym-legacy.c: Sort headers.
8908 * build-id.h: Sort headers.
8909 * build-id.c: Sort headers.
8910 * btrace.c: Sort headers.
8911 * bsd-uthread.c: Sort headers.
8912 * breakpoint.h: Sort headers.
8913 * breakpoint.c: Sort headers.
8914 * break-catch-throw.c: Sort headers.
8915 * break-catch-syscall.c: Sort headers.
8916 * break-catch-sig.c: Sort headers.
8917 * blockframe.c: Sort headers.
8918 * block.c: Sort headers.
8919 * bfin-tdep.c: Sort headers.
8920 * bfin-linux-tdep.c: Sort headers.
8921 * bfd-target.c: Sort headers.
8922 * bcache.c: Sort headers.
8923 * ax-general.c: Sort headers.
8924 * ax-gdb.h: Sort headers.
8925 * ax-gdb.c: Sort headers.
8926 * avr-tdep.c: Sort headers.
8927 * auxv.c: Sort headers.
8928 * auto-load.c: Sort headers.
8929 * arm-wince-tdep.c: Sort headers.
8930 * arm-tdep.c: Sort headers.
8931 * arm-symbian-tdep.c: Sort headers.
8932 * arm-pikeos-tdep.c: Sort headers.
8933 * arm-obsd-tdep.c: Sort headers.
8934 * arm-nbsd-tdep.c: Sort headers.
8935 * arm-nbsd-nat.c: Sort headers.
8936 * arm-linux-tdep.c: Sort headers.
8937 * arm-linux-nat.c: Sort headers.
8938 * arm-fbsd-tdep.c: Sort headers.
8939 * arm-fbsd-nat.c: Sort headers.
8940 * arm-bsd-tdep.c: Sort headers.
8941 * arch-utils.c: Sort headers.
8942 * arc-tdep.c: Sort headers.
8943 * arc-newlib-tdep.c: Sort headers.
8944 * annotate.h: Sort headers.
8945 * annotate.c: Sort headers.
8946 * amd64-windows-tdep.c: Sort headers.
8947 * amd64-windows-nat.c: Sort headers.
8948 * amd64-tdep.c: Sort headers.
8949 * amd64-sol2-tdep.c: Sort headers.
8950 * amd64-obsd-tdep.c: Sort headers.
8951 * amd64-obsd-nat.c: Sort headers.
8952 * amd64-nbsd-tdep.c: Sort headers.
8953 * amd64-nbsd-nat.c: Sort headers.
8954 * amd64-nat.c: Sort headers.
8955 * amd64-linux-tdep.c: Sort headers.
8956 * amd64-linux-nat.c: Sort headers.
8957 * amd64-fbsd-tdep.c: Sort headers.
8958 * amd64-fbsd-nat.c: Sort headers.
8959 * amd64-dicos-tdep.c: Sort headers.
8960 * amd64-darwin-tdep.c: Sort headers.
8961 * amd64-bsd-nat.c: Sort headers.
8962 * alpha-tdep.c: Sort headers.
8963 * alpha-obsd-tdep.c: Sort headers.
8964 * alpha-nbsd-tdep.c: Sort headers.
8965 * alpha-mdebug-tdep.c: Sort headers.
8966 * alpha-linux-tdep.c: Sort headers.
8967 * alpha-linux-nat.c: Sort headers.
8968 * alpha-bsd-tdep.c: Sort headers.
8969 * alpha-bsd-nat.c: Sort headers.
8970 * aix-thread.c: Sort headers.
8971 * agent.c: Sort headers.
8972 * addrmap.c: Sort headers.
8973 * ada-varobj.c: Sort headers.
8974 * ada-valprint.c: Sort headers.
8975 * ada-typeprint.c: Sort headers.
8976 * ada-tasks.c: Sort headers.
8977 * ada-lang.c: Sort headers.
8978 * aarch64-tdep.c: Sort headers.
8979 * aarch64-ravenscar-thread.c: Sort headers.
8980 * aarch64-newlib-tdep.c: Sort headers.
8981 * aarch64-linux-tdep.c: Sort headers.
8982 * aarch64-linux-nat.c: Sort headers.
8983 * aarch64-fbsd-tdep.c: Sort headers.
8984 * aarch64-fbsd-nat.c: Sort headers.
8985 * aarch32-linux-nat.c: Sort headers.
8987 2019-04-04 Tom Tromey <tom@tromey.com>
8989 * varobj.c (varobj_create): Update.
8990 * rust-exp.y (struct rust_parser) <update_innermost_block,
8991 lookup_symbol>: New methods.
8992 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
8994 (rust_parser::rust_lookup_type)
8995 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
8996 * printcmd.c (display_command, do_one_display): Update.
8997 * parser-defs.h (struct parser_state) <parser_state>: Add
8998 "tracker" parameter.
8999 (block_tracker): New member.
9000 (class innermost_block_tracker) <innermost_block_tracker>: Add
9002 <reset>: Remove method.
9003 (innermost_block): Don't declare.
9004 (null_post_parser): Update.
9005 * parse.c (innermost_block): Remove global.
9006 (write_dollar_variable): Update.
9007 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
9008 Remove "tracker_types" parameter.
9009 (parse_expression): Add "tracker" parameter.
9010 (parse_expression_for_completion): Update.
9011 (null_post_parser): Add "tracker" parameter.
9012 * p-exp.y: Update rules.
9013 * m2-exp.y: Update rules.
9014 * language.h (struct language_defn) <la_post_parser>: Add
9015 "tracker" parameter.
9016 * go-exp.y: Update rules.
9017 * f-exp.y: Update rules.
9018 * expression.h (parse_expression, parse_exp_1): Add "tracker"
9020 * d-exp.y: Update rules.
9021 * c-exp.y: Update rules.
9022 * breakpoint.c (set_breakpoint_condition): Create an
9023 innermost_block_tracker.
9024 (watch_command_1): Likewise.
9025 * ada-lang.c (resolve): Add "tracker" parameter.
9026 (resolve_subexp): Likewise.
9027 * ada-exp.y (write_var_from_sym): Update.
9029 2019-04-04 Tom Tromey <tom@tromey.com>
9031 * type-stack.h: New file.
9032 * type-stack.c: New file.
9033 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
9035 (insert_into_type_stack, insert_type, push_type, push_type_int)
9036 (insert_type_address_space, pop_type, pop_type_int)
9037 (pop_typelist, pop_type_stack, append_type_stack)
9038 (push_type_stack, get_type_stack, push_typelist)
9039 (follow_type_instance_flags, follow_types): Don't declare.
9040 * parse.c (type_stack): Remove global.
9041 (parse_exp_in_context): Update.
9042 (insert_into_type_stack, insert_type, push_type, push_type_int)
9043 (insert_type_address_space, pop_type, pop_type_int)
9044 (pop_typelist, pop_type_stack, append_type_stack)
9045 (push_type_stack, get_type_stack, push_typelist)
9046 (follow_type_instance_flags, follow_types): Remove (moved to
9048 * f-exp.y (type_stack): New global.
9050 (push_kind_type, f_parse): Update.
9051 * d-exp.y (type_stack): New global.
9054 * c-exp.y (struct c_parse_state) <type_stack>: New member.
9056 * Makefile.in (COMMON_SFILES): Add type-stack.c.
9057 (HFILES_NO_SRCDIR): Add type-stack.h.
9059 2019-04-04 Tom Tromey <tom@tromey.com>
9061 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
9062 (rust_parser::convert_ast_to_expression, rust_parse)
9063 (rust_lex_test_completion, rust_lex_tests): Update.
9064 * parser-defs.h (struct expr_completion_state): New.
9065 (struct parser_state) <parser_state>: Add completion parameter.
9066 <mark_struct_expression, mark_completion_tag>: New methods.
9067 <parse_completion, m_completion_state>: New members.
9068 (prefixify_expression, null_post_parser): Update.
9069 (mark_struct_expression, mark_completion_tag): Don't declare.
9070 * parse.c (parse_completion, expout_last_struct)
9071 (expout_tag_completion_type, expout_completion_name): Remove
9073 (parser_state::mark_struct_expression)
9074 (parser_state::mark_completion_tag): Now methods.
9075 (prefixify_expression): Add last_struct parameter.
9076 (prefixify_subexp): Likewise.
9077 (parse_exp_1): Update.
9078 (parse_exp_in_context): Add cstate parameter. Update.
9079 (parse_expression_for_completion): Create an
9080 expr_completion_state.
9081 (null_post_parser): Add "completion" parameter.
9082 * p-exp.y: Update rules.
9084 * language.h (struct language_defn) <la_post_parser>: Add
9085 "completing" parameter.
9086 * go-exp.y: Update rules.
9087 (lex_one_token): Update.
9088 * expression.h (parse_completion): Don't declare.
9089 * d-exp.y: Update rules.
9090 (lex_one_token): Update rules.
9091 * c-exp.y: Update rules.
9092 (lex_one_token): Update.
9093 * ada-lang.c (resolve): Add "parse_completion" parameter.
9094 (resolve_subexp): Likewise.
9095 (ada_resolve_function): Likewise.
9097 2019-04-04 Tom Tromey <tom@tromey.com>
9099 * parser-defs.h (struct parser_state) <start_arglist,
9100 end_arglist>: New methods.
9101 <arglist_len, m_funcall_chain>: New members.
9102 (arglist_len, start_arglist, end_arglist): Don't declare.
9103 * parse.c (arglist_len, funcall_chain): Remove global.
9104 (start_arglist, end_arglist): Remove functions.
9105 (parse_exp_in_context): Update.
9106 * p-exp.y: Update rules.
9107 * m2-exp.y: Update rules.
9108 * go-exp.y: Update rules.
9109 * f-exp.y: Update rules.
9110 * d-exp.y: Update rules.
9111 * c-exp.y: Update rules.
9113 2019-04-04 Tom Tromey <tom@tromey.com>
9115 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
9116 lex_operator, push_back>: New methods.
9118 (rust_parser::lex_hex, lex_escape): Rename and update.
9119 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
9120 (rust_parser::lex_operator): Rename and update.
9121 (rust_parser::lex_number, rustyylex, rustyyerror)
9122 (rust_lex_test_init, rust_lex_test_sequence)
9123 (rust_lex_test_push_back, rust_lex_tests): Update.
9124 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
9126 <lexptr, prev_lexptr>: New members.
9127 (lexptr, prev_lexptr): Don't declare.
9128 * parse.c (lexptr, prev_lexptr): Remove globals.
9129 (parse_exp_in_context): Update.
9130 * p-exp.y (yylex, yyerror): Update.
9131 * m2-exp.y (parse_number, yylex, yyerror): Update.
9132 * go-exp.y (lex_one_token, yyerror): Update.
9133 * f-exp.y (match_string_literal, yylex, yyerror): Update.
9134 * d-exp.y (lex_one_token, yyerror): Update.
9135 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
9136 (lex_one_token, yyerror): Update.
9137 * ada-lex.l (YY_INPUT): Update.
9138 (rewind_to_char): Update.
9139 * ada-exp.y (yyerror): Update.
9141 2019-04-04 Tom Tromey <tom@tromey.com>
9143 * rust-exp.y (rustyylex, rust_lex_tests): Update.
9144 * parser-defs.h (struct parser_state) <parser_state>: Add new
9146 <comma_terminates>: New member.
9147 (comma_terminates): Don't declare global.
9148 * parse.c (comma_terminates): Remove global.
9149 (parse_exp_in_context): Update.
9150 * p-exp.y (yylex): Update.
9151 * m2-exp.y (yylex): Update.
9152 * go-exp.y (lex_one_token): Update.
9153 * f-exp.y (yylex): Update.
9154 * d-exp.y (lex_one_token): Update.
9155 * c-exp.y (lex_one_token): Update.
9156 * ada-lex.l: Update.
9158 2019-04-04 Tom Tromey <tom@tromey.com>
9160 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
9161 (rustyylex, rust_lex_test_init, rust_lex_test_one)
9162 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
9163 * parser-defs.h (paren_depth): Don't declare.
9164 * parse.c (paren_depth): Remove global.
9165 (parse_exp_in_context): Update.
9166 * p-exp.y (paren_depth): New global.
9167 (pascal_parse): Initialize it.
9168 * m2-exp.y (paren_depth): New global.
9169 (m2_parse): Initialize it.
9170 * go-exp.y (paren_depth): New global.
9171 (go_parse): Initialize it.
9172 * f-exp.y (paren_depth): New global.
9173 (f_parse): Initialize it.
9174 * d-exp.y (paren_depth): New global.
9175 (d_parse): Initialize it.
9176 * c-exp.y (paren_depth): New global.
9177 (c_parse): Initialize it.
9178 * ada-lex.l (paren_depth): New global.
9179 (lexer_init): Initialize it.
9181 2019-04-04 Tom Tromey <tom@tromey.com>
9183 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
9184 (rust_parser::convert_ast_to_type)
9185 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
9186 * parser-defs.h (struct parser_state) <parser_state>: Add
9187 parameters. Initialize new members.
9188 <expression_context_block, expression_context_pc>: New members.
9189 * parse.c (expression_context_block, expression_context_pc):
9191 (parse_exp_in_context): Update.
9192 * p-exp.y: Update all rules.
9194 * m2-exp.y: Update all rules.
9196 * go-exp.y (yylex): Update.
9197 * f-exp.y (yylex): Update.
9198 * d-exp.y: Update all rules.
9200 * c-exp.y: Update all rules.
9201 (lex_one_token, classify_name, yylex, c_parse): Update.
9202 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
9204 2019-04-04 Tom Tromey <tom@tromey.com>
9206 * gdbarch.h, gdbarch.c: Rebuild.
9207 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
9209 (struct stap_parse_info): Replace "parser_state" with
9211 * parser-defs.h (struct expr_builder): Rename from "parser_state".
9212 (parser_state): New class.
9213 * parse.c (expr_builder): Rename.
9214 (expr_builder::release): Rename.
9215 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
9216 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
9217 (write_exp_elt_longcst, write_exp_elt_floatcst)
9218 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
9219 (write_exp_string_vector, write_exp_bitstring)
9220 (write_exp_msymbol, mark_struct_expression)
9221 (write_dollar_variable)
9222 (insert_type_address_space, increase_expout_size): Replace
9223 "parser_state" with "expr_builder".
9224 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
9225 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
9226 "parser_state" with "expr_builder".
9228 2019-04-04 Tom Tromey <tom@tromey.com>
9230 * rust-exp.y: Replace "parse_language" with method call.
9232 (yylex): Replace "parse_language" with method call.
9234 (yylex): Replace "parse_language" with method call.
9235 * go-exp.y (classify_name): Replace "parse_language" with method
9237 * f-exp.y (yylex): Replace "parse_language" with method call.
9238 * d-exp.y (lex_one_token): Replace "parse_language" with method
9241 (lex_one_token, classify_name, yylex): Replace "parse_language"
9243 * ada-exp.y (find_primitive_type, type_char)
9244 (type_system_address): Replace "parse_language" with method call.
9246 2019-04-04 Tom Tromey <tom@tromey.com>
9248 * rust-exp.y: Replace "parse_gdbarch" with method call.
9249 * parse.c (write_dollar_variable, insert_type_address_space):
9250 Replace "parse_gdbarch" with method call.
9251 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
9253 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
9255 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
9256 "parse_gdbarch" with method call.
9257 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
9259 * f-exp.y (parse_type, parse_f_type, yylex): Replace
9260 "parse_gdbarch" with method call.
9261 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
9262 "parse_gdbarch" with method call.
9263 * c-exp.y (parse_type, parse_number, classify_name): Replace
9264 "parse_gdbarch" with method call.
9265 * ada-lex.l: Replace "parse_gdbarch" with method call.
9266 * ada-exp.y (parse_type, find_primitive_type, type_char)
9267 (type_system_address): Replace "parse_gdbarch" with method call.
9269 2019-04-04 Tom Tromey <tom@tromey.com>
9271 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
9272 * stap-probe.c (stap_parse_argument): Update.
9273 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
9274 initial_size parameter.
9275 * rust-exp.y (rust_lex_tests): Update.
9276 * parse.c (parser_state): Update.
9277 (parse_exp_in_context): Update.
9278 * parser-defs.h (struct parser_state) <parser_state>: Remove
9279 "initial_size" parameter.
9281 2019-04-04 Tom Tromey <tom@tromey.com>
9283 * parser-defs.h (increase_expout_size): Don't declare.
9284 * parse.c (increase_expout_size): Now static.
9286 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
9288 * gnu-nat.c (gnu_nat_target::wait): Fix
9289 target_waitstatus_to_string call.
9291 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
9293 * eval.c (evaluate_subexp_standard): Handle internal functions
9294 during Fortran function call handling.
9296 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
9298 * NEWS: Mention new internal functions.
9299 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
9300 (read_base_type): Use dwarf2_init_complex_target_type.
9301 * value.c (creal_internal_fn): New function.
9302 (cimag_internal_fn): New function.
9303 (_initialize_values): Register new internal functions.
9305 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9307 * infrun.c (stop_all_threads): If debug_infrun, always
9308 trace the wait status after wait_one, using
9309 target_waitstatus_to_string and target_pid_to_str.
9310 (handle_inferior_event): Replace various trace of
9311 wait status kind by a single trace.
9312 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
9313 wait status kind image by target_waitstatus_to_string.
9314 * target/waitstatus.c (target_waitstatus_to_string): Fix
9317 2019-04-01 Tom Tromey <tromey@adacore.com>
9320 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
9322 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
9323 Pedro Alves <palves@redhat.com>
9325 * top.c (quit_force): Call 'finalize_values'.
9326 * value.c (finalize_values): New function.
9327 * value.h (finalize_values): Declare.
9329 2019-03-30 Eli Zaretskii <eliz@gnu.org>
9331 * NEWS: Announce $_gdb_major and $_gdb_minor.
9333 * top.c (init_gdb_version_vars): New function.
9334 (gdb_init): Call init_gdb_version_vars.
9336 2019-03-29 Tom Tromey <tromey@adacore.com>
9338 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
9339 help text. Remove dead code.
9341 2019-03-29 Keith Seitz <keiths@redhat.com>
9343 From Siddhesh Poyarekar:
9344 * f-lang.h (f77_get_upperbound): Return LONGEST.
9345 (f77_get_lowerbound): Likewise.
9346 * f-typeprint.c (f_type_print_varspec_suffix): Expand
9347 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
9349 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
9350 plongest to format print it.
9351 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
9352 (f77_get_upperbound): Likewise.
9353 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
9354 LOWER_BOUND to LONGEST.
9355 (f77_create_arrayprint_offset_tbl): Likewise.
9357 2019-03-29 Keith Seitz <keiths@redhat.com>
9359 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
9360 %s/pulongest for TYPE_LENGTH instead of %d in format
9362 * ada-typerint.c (ada_print_type): Likewise.
9363 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
9364 * compile/compile-c-support.c (generate_register_struct): Likewise.
9365 * gdbtypes.c (recursive_dump_type): Likewise.
9366 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
9367 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
9368 instead of %d in format strings.
9369 * riscv-tdep.c (riscv_type_alignment): Cast second argument
9370 to std::min to ULONGEST.
9371 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
9372 instead of %d in format strings.
9373 * tracepoint.c (info_scope_command): Likewise.
9374 * typeprint.c (print_offset_data::update)
9375 (print_offset_data::finish): Likewise.
9376 * xtensa-tdep.c (xtensa_store_return_value)
9377 (xtensa_push_dummy_call): Likewise.
9379 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
9381 * windows-nat.c (display_selector): Fixed format specifications
9384 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9386 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
9388 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
9390 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
9391 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
9392 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
9393 (nios2_linux_init_abi): Install it.
9395 2019-03-28 Alan Hayward <alan.hayward@arm.com>
9397 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
9399 2019-03-28 Alan Hayward <alan.hayward@arm.com>
9401 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
9403 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9404 Tom Tromey <tromey@adacore.com>
9406 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
9408 2019-03-26 Joel Brobecker <brobecker@adacore.com>
9410 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
9411 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
9412 method to compute the bounds of range types. Also print "[evaluated]"
9413 if the bounds' values come from a dynamic evaluation.
9415 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
9417 * cp-valprint.c (cp_print_value_fields): Don't print trailing
9418 whitespace when pretty printing is on.
9420 2019-03-26 Alan Hayward <alan.hayward@arm.com>
9422 * ppc-linux-nat.c: Add include.
9424 2019-03-26 Alan Hayward <alan.hayward@arm.com>
9426 * NEWS: Mention AArch64 Pointer Authentication.
9428 2019-03-26 Alan Hayward <alan.hayward@arm.com>
9430 * arm-linux-nat.c: Add include.
9432 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
9434 * source-cache.c (source_cache::get_source_lines): Re-read
9435 fullname after calling open_source_file.
9437 2019-03-25 John Baldwin <jhb@FreeBSD.org>
9439 * NEWS: Mention TLS support for FreeBSD.
9441 2019-03-25 Tom Tromey <tromey@adacore.com>
9443 * minsyms.c (BUNCH_SIZE): Update comment.
9444 (~minimal_symbol_reader): Remove old comment.
9445 (compact_minimal_symbols): Update comment.
9446 (minimal_symbol_reader::install): Remove old comment. Update
9449 2019-03-25 Alan Hayward <alan.hayward@arm.com>
9451 * s390-linux-nat.c: Add include.
9453 2019-03-25 Alan Hayward <alan.hayward@arm.com>
9455 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
9456 Call linux_get_hwcap.
9457 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
9459 (aarch64_linux_get_hwcap): Remove function.
9460 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
9462 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
9464 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
9465 * linux-tdep.c (linux_get_hwcap): Add function.
9466 (linux_get_hwcap2): Likewise.
9467 * linux-tdep.h (linux_get_hwcap): Add declaration.
9468 (linux_get_hwcap2): Likewise.
9469 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
9470 (ppc_linux_get_hwcap2): Likewise.
9471 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
9473 (ppc_linux_nat_target::insert_watchpoint): Likewise.
9474 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
9475 (ppc_linux_nat_target::read_description): Likewise.
9476 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
9477 * s390-linux-nat.c: Likewise.
9478 * s390-linux-tdep.c (s390_core_read_description): Likewise.
9480 2019-03-24 Tom Tromey <tom@tromey.com>
9482 * ada-lang.c (standard_lookup): Simplify initialization.
9483 (ada_lookup_symbol_nonlocal): Simplify return.
9484 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
9485 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
9486 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
9487 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
9489 * solib.c (solib_global_lookup): Simplify.
9490 * symtab.c (null_block_symbol): Remove.
9491 (symbol_cache_lookup): Simplify returns.
9492 (lookup_language_this): Simplify returns.
9493 (lookup_symbol_aux): Simplify return.
9494 (lookup_local_symbol): Simplify returns.
9495 (lookup_global_symbol_from_objfile): Simplify return.
9496 (lookup_symbol_in_objfile_symtabs)
9497 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
9498 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
9499 (lookup_static_symbol, lookup_global_symbol): Simplify return.
9500 * cp-namespace.c (cp_lookup_bare_symbol)
9501 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
9502 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
9503 (cp_lookup_nested_symbol): Don't use null_block_symbol.
9504 (cp_lookup_symbol_via_imports): Simplify initialization.
9505 (find_symbol_in_baseclass): Likewise.
9506 * symtab.h (null_block_symbol): Remove.
9507 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
9508 (d_lookup_nested_symbol, d_lookup_symbol_imports)
9509 (d_lookup_symbol_module): Likewise.
9510 (find_symbol_in_baseclass): Simplify initialization.
9512 2019-03-24 Tom Tromey <tom@tromey.com>
9514 * expression.h: Don't include symtab.h.
9515 (struct block): Forward declare.
9517 2019-03-24 Tom Tromey <tom@tromey.com>
9519 * c-exp.y (typebase): Remove casts.
9520 * gdbtypes.c (lookup_unsigned_typename, )
9521 (lookup_signed_typename): Remove cast.
9522 * eval.c (parse_to_comma_and_eval): Remove cast.
9523 * parse.c (write_dollar_variable): Remove cast.
9524 * block.h (struct block) <superblock>: Now const.
9525 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
9526 * psymtab.c (psym_map_matching_symbols): Make "block" const.
9527 (map_block): Make "block" const.
9528 * symfile.h (struct quick_symbol_functions)
9529 <map_matching_symbols>: Constify block argument to "callback".
9530 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
9532 (find_pc_sect_compunit_symtab): Make "b" const.
9533 (find_symbol_at_address): Likewise.
9534 (search_symbols): Likewise.
9535 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
9536 (dw2_debug_names_lookup_symbol): Likewise.
9537 (dw2_map_matching_symbols): Update.
9538 * p-valprint.c (pascal_val_print): Remove "block".
9539 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
9540 (aux_add_nonlocal_symbols): Make "block" const.
9541 (resolve_subexp): Remove cast.
9542 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
9544 (iterate_over_file_blocks): Likewise.
9545 * f-exp.y (%union) <bval>: Remove.
9546 * coffread.c (patch_opaque_types): Make "b" const.
9547 * spu-tdep.c (spu_catch_start): Make "block" const.
9548 * c-valprint.c (print_unpacked_pointer): Remove "block".
9549 * symmisc.c (dump_symtab_1): Make "b" const.
9550 (block_depth): Make "block" const.
9551 * d-exp.y (%union) <bval>: Remove.
9552 * cp-support.h (cp_lookup_rtti_type): Update.
9553 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
9554 * psymtab.c (psym_lookup_symbol): Make "block" const.
9555 (maintenance_check_psymtabs): Make "b" const.
9556 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
9557 (enumerate_locals, enumerate_args): Update.
9558 * python/py-symtab.c (stpy_global_block): Make "block" const.
9559 (stpy_static_block): Likewise.
9560 * inline-frame.c (block_starting_point_at): Make "new_block"
9562 * block.c (find_block_in_blockvector): Make return type const.
9563 (blockvector_for_pc_sect): Make "b" const.
9564 (find_block_in_blockvector): Make "b" const.
9566 2019-03-23 Tom Tromey <tom@tromey.com>
9568 * varobj.c (varobj_create): Update.
9569 * symfile.c (clear_symtab_users): Don't reset innermost_block.
9570 * printcmd.c (display_command, do_one_display): Don't reset
9572 * parser-defs.h (enum innermost_block_tracker_type): Move to
9574 (innermost_block): Update comment.
9575 * parse.c (parse_exp_1): Add tracker_types parameter.
9576 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
9577 tracker_types parameter. Reset innermost_block.
9578 (parse_exp_in_context): Remove.
9579 (parse_expression_for_completion): Update.
9580 * objfiles.c (~objfile): Don't reset expression_context_block or
9582 * expression.h (enum innermost_block_tracker_type): Move from
9584 (parse_exp_1): Add tracker_types parameter.
9585 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
9586 reset innermost_block.
9588 2019-03-23 Tom Tromey <tom@tromey.com>
9590 * objfiles.h: Include bcache.h.
9592 2019-03-23 Tom Tromey <tom@tromey.com>
9594 * linespec.c (get_current_search_block): Use
9595 scoped_restore_current_language.
9596 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
9598 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9599 Jiong Wang <jiong.wang@arm.com>
9601 * aarch64-linux-tdep.c
9602 (aarch64_linux_iterate_over_regset_sections): Check for pauth
9604 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
9606 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9607 Jiong Wang <jiong.wang@arm.com>
9609 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
9611 (aarch64_analyze_prologue_test): Add PACIASP test.
9612 (aarch64_prologue_prev_register): Unmask PC value.
9614 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9615 Jiong Wang <jiong.wang@arm.com>
9617 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
9618 (aarch64_dwarf2_prev_register): Unmask PC value.
9619 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
9620 (aarch64_execute_dwarf_cfa_vendor_op): Check for
9621 DW_CFA_AARCH64_negate_ra_state.
9622 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
9624 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9625 Jiong Wang <jiong.wang@arm.com>
9627 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
9629 (aarch64_pseudo_register_name): Likewise.
9630 (aarch64_pseudo_register_type): Likewise.
9631 (aarch64_pseudo_register_reggroup_p): Likewise.
9632 (aarch64_gdbarch_init): Add pauth registers.
9633 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
9634 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
9635 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
9636 (struct gdbarch_tdep): Add regnum for ra_state.
9638 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9639 Jiong Wang <jiong.wang@arm.com>
9641 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
9643 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9644 Jiong Wang <jiong.wang@arm.com>
9646 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
9648 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
9649 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
9650 (aarch64_gdbarch_init): Add puth registers.
9651 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
9652 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
9653 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
9655 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9656 Jiong Wang <jiong.wang@arm.com>
9658 * aarch64-linux-nat.c
9659 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
9660 * aarch64-linux-tdep.c
9661 (aarch64_linux_core_read_description): Likewise.
9662 (aarch64_linux_get_hwcap): New function.
9663 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
9664 (aarch64_linux_get_hwcap): New declaration.
9666 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9667 Jiong Wang <jiong.wang@arm.com>
9669 * aarch64-linux-nat.c
9670 (aarch64_linux_nat_target::read_description): Add pauth param.
9671 * aarch64-linux-tdep.c
9672 (aarch64_linux_core_read_description): Likewise.
9673 * aarch64-tdep.c (struct target_desc): Add in pauth.
9674 (aarch64_read_description): Add pauth param.
9675 (aarch64_gdbarch_init): Likewise.
9676 * aarch64-tdep.h (aarch64_read_description): Likewise.
9677 * arch/aarch64.c (aarch64_create_target_description): Likewise.
9678 * arch/aarch64.h (aarch64_create_target_description): Likewise.
9679 * features/Makefile: Add new files.
9680 * features/aarch64-pauth.c: New file.
9681 * features/aarch64-pauth.xml: New file.
9683 2019-03-20 Tom Tromey <tromey@adacore.com>
9685 * infrun.c (handle_inferior_event): Rename from
9686 handle_inferior_event_1. Create a scoped_value_mark.
9687 (handle_inferior_event): Remove.
9689 2019-03-19 Tom Tromey <tromey@adacore.com>
9691 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
9692 * infrun.h (print_stop_event): Add "displays" parameter.
9693 * infrun.c (print_stop_event): Add "displays" parameter.
9695 2019-03-19 Pedro Alves <palves@redhat.com>
9697 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
9698 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
9699 to -1. Fix TABs vs spaces.
9700 (tui_ui_out::tui_ui_out): Don't initialize fields here.
9701 * tui/tui-out.h (tui_ui_out) Add intro comments.
9702 <m_line, m_start_of_line>: In-class initialize, and add describing
9705 2019-03-18 Alan Hayward <alan.hayward@arm.com>
9707 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
9709 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
9711 2019-03-18 Pedro Alves <palves@redhat.com>
9712 Eli Zaretskii <eliz@gnu.org>
9714 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
9715 m_line and m_start_of_line.
9717 2019-03-18 Eli Zaretskii <eliz@gnu.org>
9719 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
9720 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
9721 it returns a newline. This fixes a regression in TU mode, whereby
9722 the next line is output on the same screen line as the user input.
9724 2019-03-18 Tom Tromey <tromey@adacore.com>
9726 * minsyms.c (minimal_symbol_reader::install): Remove call to
9729 2019-03-18 Pedro Alves <palves@redhat.com>
9731 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
9733 (apply_style): New, factored out from ...
9734 (apply_ansi_escape): ... this. Handle reverse video mode.
9735 (tui_set_reverse_mode): New function.
9736 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
9737 * tui/tui-winsource.c (tui_show_source_line): Use
9738 tui_set_reverse_mode instead of setting A_STANDOUT.
9739 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
9742 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
9744 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
9747 2019-03-18 Tom Tromey <tromey@adacore.com>
9749 * ada-lang.c (empty_array): Add "high" parameter.
9750 (ada_evaluate_subexp): Update.
9752 2019-03-17 Sergei Trofimovich <siarheit@google.com>
9754 * unittests/string_view-selftests.c: Define
9755 _initialize_string_view_selftests unconditionally.
9757 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9760 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
9762 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9765 * windows-nat.c (display_selector): Fix format specifiers.
9767 2019-03-17 Eli Zaretskii <eliz@gnu.org>
9769 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
9770 tui_refill_source_window instead of tui_refresh_win, to update the
9771 current execution line. This fixes redisplay of the current line
9772 when stepping through the code with "next" or "step".
9774 2019-03-16 Eli Zaretskii <eliz@gnu.org>
9776 * source-cache.c (source_cache::get_source_lines): Call
9777 find_source_lines to initialize s->nlines. This fixes vertical
9778 scrolling of TUI source window when the DOWN arrow is pressed.
9780 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9782 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
9783 linux-thread-db.c (_initialize_thread_db): Likewise.
9785 2019-03-16 Eli Zaretskii <eliz@gnu.org>
9787 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
9788 wclrtoeol in tui_show_source_line". This reverts changes made in
9789 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
9791 2019-03-15 Tom Tromey <tom@tromey.com>
9793 * symtab.h (struct minimal_symbol): Derive from
9794 general_symbol_info.
9795 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
9796 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9797 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9798 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9799 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
9800 (MSYMBOL_SEARCH_NAME): Update.
9801 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
9802 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
9803 * minsyms.c (minimal_symbol_reader::record_full): Update.
9805 2019-03-15 Tom Tromey <tom@tromey.com>
9807 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
9809 2019-03-15 Tom Tromey <tom@tromey.com>
9811 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
9813 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
9815 * minsyms.c (lookup_minimal_symbol_by_pc_section)
9816 (build_minimal_symbol_hash_tables)
9817 (minimal_symbol_reader::install): Update.
9819 2019-03-15 Tom Tromey <tom@tromey.com>
9821 * symtab.c (create_demangled_names_hash): Update.
9822 (symbol_set_names): Update.
9823 * objfiles.h (struct objfile_per_bfd_storage)
9824 <demangled_names_hash>: Now an htab_up.
9825 * objfiles.c (objfile_per_bfd_storage): Simplify.
9827 2019-03-15 Tom Tromey <tom@tromey.com>
9829 * objfiles.h (struct objfile_per_bfd_storage): Declare
9831 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
9833 (get_objfile_bfd_data): Use new. Don't initialize
9835 (free_objfile_per_bfd_storage): Remove.
9836 (objfile_bfd_data_free, objfile::~objfile): Use delete.
9838 2019-03-15 Tom Tromey <tom@tromey.com>
9840 * symfile.c (reread_symbols): Update.
9841 * objfiles.c (objfile::objfile): Update.
9842 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
9843 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
9845 (minimal_symbol_reader::install): Update.
9846 (terminate_minimal_symbol_table): Remove.
9847 * jit.c (jit_object_close_impl): Update.
9849 2019-03-15 Tom Tromey <tom@tromey.com>
9851 * minsyms.c (minimal_symbol_reader::record_full): Remove some
9854 2019-03-15 Tom Tromey <tom@tromey.com>
9856 * objfiles.h (struct objfile_per_bfd_storage)
9857 <demangled_hash_languages>: Now a bitset.
9858 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
9859 (lookup_minimal_symbol): Update.
9861 2019-03-15 Tom Tromey <tom@tromey.com>
9863 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
9864 Don't return the symbol.
9865 * coffread.c (record_minimal_symbol): Use record_full.
9867 2019-03-14 Eli Zaretskii <eliz@gnu.org>
9869 The MS-Windows port of ncurses fails to switch to a color pair if
9870 one or both of the colors are the implicit default colors. This
9871 change records the default colors when TUI is initialized, and
9872 then specifies them explicitly when a color pair uses the default
9873 colors. This allows color styling in TUI mode on MS-Windows.
9875 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
9877 (tui_initialize_io) [__MINGW32__]: Record the default terminal
9878 colors in ncurses_norm_attr.
9879 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
9880 "none", replace it with the default color recorded in
9883 2019-03-14 Tom Tromey <tromey@adacore.com>
9885 * source-cache.h (class source_cache) <get_source_lines>: Return
9887 * source-cache.c (source_cache::extract_lines): Handle case where
9888 first_pos==npos. Return std::string.
9889 (source_cache::get_source_lines): Update.
9891 2019-03-14 Tom Tromey <tromey@adacore.com>
9893 * NEWS: Add item for "style sources" commands.
9894 * source-cache.c (source_cache::get_source_lines): Check
9896 * cli/cli-style.c (source_styling): New global.
9897 (_initialize_cli_style): Add "style sources" commands.
9898 (show_style_sources): New function.
9899 * cli/cli-style.h (source_styling): Declare.
9901 2019-03-14 Pedro Alves <palves@redhat.com>
9902 Tom Tromey <tromey@adacore.com>
9904 * tui/tui-winsource.h (tui_refill_source_window): Declare.
9905 * tui/tui-winsource.c (tui_refill_source_window): New function,
9907 (tui_horizontal_source_scroll): ... here. Move some logic.
9908 * cli/cli-style.c (set_style_enabled): Notify new observable.
9909 * tui/tui-hooks.c (tui_redisplay_source): New function.
9910 (tui_attach_detach_observers): Attach or detach
9911 tui_redisplay_source.
9912 * observable.h (source_styling_changed): New observable.
9913 * observable.c: Define source_styling_changed observable.
9915 2019-03-13 Tom Tromey <tromey@adacore.com>
9917 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
9918 (i386_gnu_nat_target::store_registers): Update.
9919 * target-debug.h (target_debug_print_std_string): New macro.
9920 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
9921 * windows-tdep.c (display_one_tib): Update.
9922 * tui/tui-stack.c (tui_make_status_line): Update.
9923 * top.c (print_inferior_quit_action): Update.
9924 * thread.c (thr_try_catch_cmd): Update.
9925 (add_thread_with_info): Update.
9926 (thread_target_id_str): Update.
9927 (thr_try_catch_cmd): Update.
9928 (thread_command): Update.
9929 (thread_find_command): Update.
9930 * record-btrace.c (record_btrace_target::info_record)
9931 (record_btrace_resume_thread, record_btrace_target::resume)
9932 (record_btrace_cancel_resume, record_btrace_step_thread)
9933 (record_btrace_target::wait, record_btrace_target::wait)
9934 (record_btrace_target::wait, record_btrace_target::stop): Update.
9935 * progspace.c (print_program_space): Update.
9936 * process-stratum-target.c
9937 (process_stratum_target::thread_address_space): Update.
9938 * linux-fork.c (linux_fork_mourn_inferior)
9939 (detach_checkpoint_command, info_checkpoints_command)
9940 (linux_fork_context): Update.
9941 (linux_fork_detach): Update.
9942 (class scoped_switch_fork_info): Update.
9943 (delete_checkpoint_command): Update.
9944 * infrun.c (follow_fork_inferior): Update.
9945 (follow_fork_inferior): Update.
9946 (proceed_after_vfork_done): Update.
9947 (handle_vfork_child_exec_or_exit): Update.
9948 (follow_exec): Update.
9949 (displaced_step_prepare_throw): Update.
9950 (displaced_step_restore): Update.
9951 (start_step_over): Update.
9953 (clear_proceed_status_thread): Update.
9955 (print_target_wait_results): Update.
9956 (do_target_wait): Update.
9957 (context_switch): Update.
9958 (stop_all_threads): Update.
9959 (restart_threads): Update.
9960 (finish_step_over): Update.
9961 (handle_signal_stop): Update.
9962 (switch_back_to_stepped_thread): Update.
9963 (keep_going_pass_signal): Update.
9964 (print_exited_reason): Update.
9965 (normal_stop): Update.
9966 * inferior.c (inferior_pid_to_str): Change return type.
9967 (print_selected_inferior): Update.
9968 (add_inferior): Update.
9969 (detach_inferior): Update.
9970 * dummy-frame.c (fprint_dummy_frames): Update.
9971 * dcache.c (dcache_info_1): Update.
9972 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
9973 (btrace_fetch, btrace_clear): Update.
9974 * linux-tdep.c (linux_core_pid_to_str): Change return type.
9975 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
9977 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
9978 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
9979 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
9980 * gdbarch.c, gdbarch.h: Rebuild.
9981 * gdbarch.sh (core_pid_to_str): Change return type.
9982 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
9984 (windows_nat_target::pid_to_str): Change return type.
9985 (windows_delete_thread): Update.
9986 (windows_nat_target::attach): Update.
9987 (windows_nat_target::files_info): Update.
9988 * target-delegates.c: Rebuild.
9989 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
9991 (sol_thread_target::pid_to_str): Change return type.
9992 * remote.c (class remote_target) <pid_to_str>: Change return
9994 (remote_target::pid_to_str): Change return type.
9995 (extended_remote_target::attach, remote_target::remote_stop_ns)
9996 (remote_target::remote_notif_remove_queued_reply)
9997 (remote_target::push_stop_reply, remote_target::disable_btrace):
9999 (extended_remote_target::attach): Update.
10000 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
10002 (gdbsim_target::pid_to_str): Change return type.
10003 * ravenscar-thread.c (struct ravenscar_thread_target)
10004 <pid_to_str>: Change return type.
10005 (ravenscar_thread_target::pid_to_str): Change return type.
10006 * procfs.c (class procfs_target) <pid_to_str>: Change return
10008 (procfs_target::pid_to_str): Change return type.
10009 (procfs_target::attach): Update.
10010 (procfs_target::detach): Update.
10011 (procfs_target::fetch_registers): Update.
10012 (procfs_target::store_registers): Update.
10013 (procfs_target::wait): Update.
10014 (procfs_target::files_info): Update.
10015 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
10016 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
10018 (nto_procfs_target::pid_to_str): Change return type.
10019 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
10020 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
10022 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
10023 (exit_lwp): Update.
10024 (attach_proc_task_lwp_callback, get_detach_signal)
10025 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
10026 (linux_nat_target::resume, wait_lwp, stop_callback)
10027 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
10028 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
10029 (linux_nat_wait_1, resume_stopped_resumed_lwps)
10030 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
10031 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
10033 (inf_ptrace_target::attach): Update.
10034 (inf_ptrace_target::files_info): Update.
10035 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
10037 (go32_nat_target::pid_to_str): Change return type.
10038 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
10039 (gnu_nat_target::wait): Update.
10040 (gnu_nat_target::wait): Update.
10041 (gnu_nat_target::resume): Update.
10042 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
10043 (fbsd_nat_target::wait): Update.
10044 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
10046 (darwin_nat_target::attach): Update.
10047 * corelow.c (class core_target) <pid_to_str>: Change return type.
10048 (core_target::pid_to_str): Change return type.
10049 * target.c (normal_pid_to_str): Change return type.
10050 (default_pid_to_str): Likewise.
10051 (target_pid_to_str): Change return type.
10052 (target_translate_tls_address): Update.
10053 (target_announce_detach): Update.
10054 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
10056 (bsd_uthread_target::pid_to_str): Change return type.
10057 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
10059 (bsd_kvm_target::pid_to_str): Change return type.
10060 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
10062 (aix_thread_target::pid_to_str): Change return type.
10063 * target.h (struct target_ops) <pid_to_str>: Change return type.
10064 (target_pid_to_str, normal_pid_to_str): Likewise.
10065 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
10067 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
10069 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
10071 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
10073 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
10075 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
10078 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
10080 * NEWS: Mention that the new default MI version is 3. Mention
10081 changes to the output of commands and events that deal with
10082 multi-location breakpoints.
10083 * breakpoint.c: Include "mi/mi-out.h".
10084 (print_one_breakpoint): Change output syntax if using MI version
10086 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
10088 (mi_multi_location_breakpoint_output_fixed): New.
10089 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
10090 (mi_cmd_fix_multi_location_breakpoint_output): New.
10091 (mi_multi_location_breakpoint_output_fixed): New.
10092 * mi/mi-cmds.c (mi_cmds): Register command
10093 -fix-multi-location-breakpoint-output.
10094 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
10097 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10099 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
10100 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
10101 instantiate mi_ui_out based on interpreter name.
10102 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
10103 * mi/mi-main.c (mi_load_progress): Likewise.
10105 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10107 * NEWS: Combine separate "New targets" sections for 8.3.
10109 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10111 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
10112 (ppcfbsd_init_abi): Install gdbarch
10113 "fetch_tls_load_module_address" and "get_thread_local_address"
10116 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10118 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
10119 (riscv_fbsd_init_abi): Install gdbarch
10120 "fetch_tls_load_module_address" and "get_thread_local_address"
10123 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10125 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
10126 (i386fbsd_init_abi): Install gdbarch
10127 "fetch_tls_load_module_address" and "get_thread_local_address"
10130 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10132 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
10133 (amd64fbsd_init_abi): Install gdbarch
10134 "fetch_tls_load_module_address" and "get_thread_local_address"
10137 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10139 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
10140 (struct fbsd_pspace_data): New type.
10141 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
10142 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
10143 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
10144 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
10145 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
10147 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10149 * gdbtypes.c (lookup_struct_elt): New function.
10150 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
10151 * gdbtypes.h (struct struct_elt): New type.
10152 (lookup_struct_elt): New prototype.
10154 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10156 * gdbtypes.c (lookup_struct_elt_type): Update comment and
10157 remove disabled code block.
10159 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10161 * gdbarch.sh (get_thread_local_address): New method.
10162 * gdbarch.h, gdbarch.c: Regenerate.
10163 * target.c (target_translate_tls_address): Use
10164 gdbarch_get_thread_local_address if present instead of
10165 target::get_thread_local_address.
10167 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10169 * target.h (target::get_thread_local_address): Update comment.
10171 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10173 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
10174 objfile->separate_debug_objfile_backlink if not NULL.
10176 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10178 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
10179 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
10180 (amd64bsd_store_inferior_registers): Likewise.
10181 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
10182 Enable segment base registers.
10183 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
10184 PT_GETFSBASE and PT_GETGSBASE.
10185 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
10187 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
10188 segment base registers.
10189 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
10191 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10193 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
10194 Update calls to i386_target_description to add 'segments'
10196 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
10197 add segment base registers.
10198 * arch/i386.c (i386_create_target_description): Add 'segments'
10199 parameter to enable segment base registers.
10200 * arch/i386.h (i386_create_target_description): Likewise.
10201 * features/i386/32bit-segments.xml: New file.
10202 * features/i386/32bit-segments.c: Generate.
10203 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
10204 call to i386_target_description to add 'segments' parameter.
10205 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
10206 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
10207 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
10208 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
10209 if feature is present.
10210 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
10211 Add 'segments' parameter to call to i386_target_description.
10212 (i386_target_description): Add 'segments' parameter to enable
10213 segment base registers.
10214 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
10215 to call to i386_target_description.
10216 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
10217 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
10218 Define I386_NUM_REGS.
10219 (i386_target_description): Add 'segments' parameter to enable
10220 segment base registers.
10222 2019-03-12 Eli Zaretskii <eliz@gnu.org>
10225 * source-cache.c: #undef open and close, to avoid unresolved
10226 externals during linking.
10228 2019-03-12 Tom Tromey <tromey@adacore.com>
10230 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
10231 const. Add initializers.
10232 (_initialize_remote): Don't initialize ptid globals.
10234 2019-03-12 Pedro Alves <palves@redhat.com>
10236 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
10238 2019-03-12 Pedro Alves <palves@redhat.com>
10240 * cp-name-parser.y (main): Remove unused 'len' variable.
10242 2019-03-12 Tom Tromey <tromey@adacore.com>
10244 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
10245 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
10247 2019-03-12 Tom Tromey <tromey@adacore.com>
10249 * linux-nat.c (iterate_over_lwps): Update.
10250 (stop_callback): Remove parameter.
10251 (stop_wait_callback, detach_callback, resume_set_callback)
10252 (select_singlestep_lwp_callback, set_ignore_sigint)
10253 (status_callback, resumed_callback, resume_clear_callback)
10254 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
10256 (linux_nat_target::detach, linux_nat_target::resume)
10257 (linux_stop_and_wait_all_lwps, select_event_lwp)
10258 (linux_nat_filter_event, linux_nat_wait_1)
10259 (linux_nat_target::kill, linux_nat_target::stop)
10260 (linux_nat_target::stop): Update.
10261 (linux_nat_resume_callback): Change type.
10262 (resume_stopped_resumed_lwps, count_events_callback)
10263 (select_event_lwp_callback): Likewise.
10264 (linux_stop_lwp, linux_nat_stop_lwp): Update.
10265 * arm-linux-nat.c (struct update_registers_data): Remove.
10266 (update_registers_callback): Change type.
10267 (arm_linux_insert_hw_breakpoint1): Update.
10268 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
10270 (x86_linux_dr_set_addr): Update.
10271 (x86_linux_dr_set_control): Update.
10272 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
10273 (iterate_over_lwps): Use gdb::function_view.
10274 * nat/aarch64-linux-hw-point.c (struct
10275 aarch64_dr_update_callback_param): Remove.
10276 (debug_reg_change_callback): Change type.
10277 (aarch64_notify_debug_reg_change): Update.
10278 * s390-linux-nat.c (s390_refresh_per_info): Update.
10280 2019-03-11 Tom Tromey <tromey@adacore.com>
10282 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
10283 redundant assignment to "this_cu".
10285 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10287 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
10289 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10291 * gdbtypes.c (rank_one_type_parm_set): New function extracted
10293 (rank_one_type): ... this.
10295 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10297 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
10299 (rank_one_type): ... this.
10301 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10303 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
10305 (rank_one_type): ... this.
10307 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10309 * gdbtypes.c (rank_one_type_parm_float): New function extracted
10311 (rank_one_type): ... this.
10313 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10315 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
10317 (rank_one_type): ... this.
10319 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10321 * gdbtypes.c (rank_one_type_parm_range): New function extracted
10323 (rank_one_type): ... this.
10325 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10327 * gdbtypes.c (rank_one_type_parm_char): New function extracted
10329 (rank_one_type): ... this.
10331 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10333 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
10335 (rank_one_type): ... this.
10337 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10339 * gdbtypes.c (rank_one_type_parm_int): New function extracted
10341 (rank_one_type): ... this.
10343 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10345 * gdbtypes.c (rank_one_type_parm_func): New function extracted
10347 (rank_one_type): ... this.
10349 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10351 * gdbtypes.c (rank_one_type_parm_array): New function extracted
10353 (rank_one_type): ... this.
10355 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10357 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
10359 (rank_one_type): ... this.
10361 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10363 * inferior.c (initialize_inferiors): Ensure 'help set/show print
10364 inferior-events' shows the example events.
10366 2019-03-08 Eli Zaretskii <eliz@gnu.org>
10368 Support styling on native MS-Windows console
10371 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
10372 on MS-Windows if $TERM is not defined.
10374 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
10376 * posix-hdep.c (gdb_console_fputs):
10377 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
10379 * ui-file.h (gdb_console_fputs): Add prototype.
10381 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
10382 back to fputs only if the former returns zero.
10384 2019-03-07 Tom Tromey <tom@tromey.com>
10386 * symmisc.c (print_symbol_bcache_statistics): Update.
10387 (print_objfile_statistics): Update.
10388 * symfile.c (allocate_symtab): Update.
10389 * stabsread.c: Don't include bcache.h.
10390 * psymtab.h (struct psymbol_bcache): Don't declare.
10391 (class psymtab_storage) <psymbol_cache>: Now a bcache.
10392 (psymbol_bcache_init, psymbol_bcache_free)
10393 (psymbol_bcache_get_bcache): Don't declare.
10394 * psymtab.c (struct psymbol_bcache): Remove.
10395 (psymtab_storage::psymtab_storage): Update.
10396 (psymtab_storage::~psymtab_storage): Update.
10397 (psymbol_bcache_init, psymbol_bcache_free)
10398 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
10399 (add_psymbol_to_bcache): Update.
10400 (allocate_psymtab): Update.
10401 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10402 macro_cache>: No longer pointers.
10403 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
10404 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
10405 * macrotab.c (macro_bcache): Update.
10406 * macroexp.c: Don't include bcache.h.
10407 * gdbtypes.c (check_types_worklist): Update.
10408 (types_deeply_equal): Remove TRY/CATCH. Update.
10409 * elfread.c (elf_symtab_read): Update.
10410 * dwarf2read.c: Don't include bcache.h.
10411 * buildsym.c (buildsym_compunit::get_macro_table): Update.
10412 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
10413 (print_bcache_statistics, bcache_memory_used): Don't declare.
10414 (struct bcache): Move from bcache.c. Add constructor, destructor,
10415 methods. Rename all data members.
10416 * bcache.c (struct bcache): Move to bcache.h.
10417 (bcache::expand_hash_table): Rename from expand_hash_table.
10419 (bcache::insert): Rename from bcache_full.
10420 (bcache::compare): Rename from bcache_compare.
10421 (bcache_xmalloc): Remove.
10422 (bcache::~bcache): Rename from bcache_xfree.
10423 (bcache::print_statistics): Rename from print_bcache_statistics.
10424 (bcache::memory_used): Rename from bcache_memory_used.
10426 2019-03-07 Pedro Alves <palves@redhat.com>
10428 * infrun.c (normal_stop): Also check for
10429 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
10431 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
10433 * f-lang.c (value_from_host_double): Moved to...
10434 * value.c (value_from_host_double): ...here.
10435 * value.h (value_from_host_double): Declare.
10436 * guile/scm-math.c (vlscm_convert_typed_number): Use
10437 value_from_host_double.
10438 (vlscm_convert_number): Likewise.
10439 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
10440 * python/py-value.c (convert_value_from_python): Likewise.
10442 2019-03-06 Tom Tromey <tom@tromey.com>
10444 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
10446 2019-03-06 Tom Tromey <tom@tromey.com>
10448 * utils.h (free_current_contents): Don't declare.
10449 * utils.c (free_current_contents): Remove.
10451 2019-03-06 Tom Tromey <tom@tromey.com>
10453 * top.c (quit_force): Update.
10454 * main.c (captured_command_loop): Update.
10455 * common/new-op.c (operator new): Update.
10456 * common/common-exceptions.c (struct catcher)
10457 <save_cleanup_chain>: Remove member.
10458 (exceptions_state_mc_init): Update.
10459 (exception_try_scope_entry): Return nullptr.
10460 (exception_try_scope_exit, exception_rethrow)
10461 (throw_exception_sjlj, throw_exception_cxx): Update.
10462 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
10463 (all_cleanups, do_cleanups, discard_cleanups)
10464 (discard_final_cleanups, save_cleanups, save_final_cleanups)
10465 (restore_cleanups, restore_final_cleanups): Don't declare.
10466 (do_final_cleanups): Remove parameter.
10467 * common/cleanups.c (cleanup_chain, make_cleanup)
10468 (make_cleanup_dtor, all_cleanups, do_cleanups)
10469 (discard_my_cleanups, discard_cleanups)
10470 (discard_final_cleanups, save_my_cleanups, save_cleanups)
10471 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
10472 (null_cleanup): Remove.
10473 (do_final_cleanups): Remove parameter.
10475 2019-03-06 Tom Tromey <tom@tromey.com>
10477 * remote.c (remote_target::remote_parse_stop_reply): Use
10478 unique_xmalloc_ptr.
10480 2019-03-06 Tom Tromey <tom@tromey.com>
10482 * stabsread.c (struct stabs_field_info): Rename from field_info.
10483 <list, fnlist>: Add initializers.
10484 <obstack>: New member.
10485 (read_member_functions, read_struct_fields, read_baseclasses):
10486 Allocate on obstack. Don't use cleanups.
10487 (read_one_struct_field, read_member_functions, read_struct_fields)
10488 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
10489 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
10490 (read_struct_type): Update.
10492 2019-03-06 Tom Tromey <tom@tromey.com>
10494 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
10495 * common/filestuff.h (make_cleanup_close): Don't declare.
10496 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
10499 2019-03-06 Tom Tromey <tom@tromey.com>
10501 * solib-aix.c: Use make_scope_exit.
10503 2019-03-06 Tom Tromey <tom@tromey.com>
10505 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
10506 Use make_scope_exit.
10508 2019-03-06 Tom Tromey <tom@tromey.com>
10510 * solib-svr4.c (disable_probes_interface): Remove parameter.
10511 (svr4_handle_solib_event): Use make_scope_exit.
10513 2019-03-06 Tom Tromey <tom@tromey.com>
10515 * remote.c (struct stop_reply_deleter): Remove.
10516 (stop_reply_up): Update.
10517 (struct stop_reply): Derive from notif_event. Don't typedef.
10518 <regcache>: Now a std::vector.
10519 (stop_reply_xfree): Remove.
10520 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
10521 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
10522 (remote_target::discard_pending_stop_replies): Use delete.
10523 (remote_target::remote_parse_stop_reply): Update.
10524 (remote_target::process_stop_reply): Update.
10525 * remote-notif.h (struct notif_event): Add virtual destructor.
10526 Remove "dtr" member.
10527 (struct notif_client) <alloc_event>: Return a unique_ptr.
10528 (notif_event_xfree): Don't declare.
10529 (notif_event_up): New typedef.
10530 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
10531 (notif_event_xfree, do_notif_event_xfree): Remove.
10532 (remote_notif_state_xfree): Update.
10534 2019-03-06 Tom Tromey <tom@tromey.com>
10536 * infrun.c (displaced_step_clear_cleanup): Now a
10537 forward_scope_exit type.
10538 (displaced_step_prepare_throw): Update.
10539 (displaced_step_fixup): Update.
10541 2019-03-06 Tom Tromey <tom@tromey.com>
10543 * inferior.h (class inferior): Update comment.
10544 * gdbthread.h (class thread_info): Update comment.
10546 2019-03-06 Joel Brobecker <brobecker@adacore.com>
10547 Tom Tromey <tom@tromey.com>
10549 * stabsread.h (struct stab_section_list): Remove.
10550 (coffstab_build_psymtabs): Update.
10551 * dbxread.c (symbuf_sections): Now a std::vector.
10552 (sect_idx): New global.
10553 (fill_symbuf): Update.
10554 (coffstab_build_psymtabs): Change type of stabsects parameter.
10556 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
10558 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
10559 (coff_locate_sections): Update.
10560 (coff_symfile_read): Remove cleanups. Update.
10561 (init_stringtab): Add storage parameter.
10562 (free_stringtab, free_stringtab_cleanup): Remove.
10563 (init_lineno): Add storage parameter.
10564 (free_linetab, free_linetab_cleanup): Remove.
10566 2019-03-06 Pedro Alves <palves@redhat.com>
10568 * linux-fork.c (fork_info::clobber_regs): Delete.
10569 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
10570 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
10572 (scoped_switch_fork_info::scoped_switch_fork_info)
10573 (checkpoint_command, linux_fork_context): Adjust
10574 fork_save_infrun_state calls.
10576 2019-03-06 Pedro Alves <palves@redhat.com>
10578 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
10579 (inf_has_multiple_threads): Return 'bool' and rewrite using
10580 inferior_info::threads().
10582 2019-03-06 Pedro Alves <palves@redhat.com>
10584 * linux-fork.c: Include <list>.
10585 (fork_list): Now a std::list instance.
10586 (fork_info): Add ctor, dtor, and in-class initialize all fields.
10587 (forks_exist_p, find_last_fork): Adjust.
10588 (new_fork): Delete.
10590 (add_fork): Adjust.
10591 (free_fork): Delete, folded into fork_info::~fork_info().
10592 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
10594 (init_fork_list): Delete.
10595 (linux_fork_killall, linux_fork_mourn_inferior)
10596 (linux_fork_detach, info_checkpoints_command): Adjust.
10597 (_initialize_linux_fork): No longer call init_fork_list.
10599 2019-03-06 Pedro Alves <palves@redhat.com>
10601 * linux-fork.c (new_fork): New, split out of ...
10602 (add_fork): ... this. Return void. Move "first fork" special
10603 case from here, to ...
10604 (checkpoint_command): ... here.
10605 * linux-linux.h (add_fork): Return void.
10607 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10609 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
10611 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10612 Chris January <chris.january@arm.com>
10613 David Lecomber <david.lecomber@arm.com>
10615 * f-exp.y: New token, UNOP_INTRINSIC.
10616 (exp): New pattern using UNOP_INTRINSIC token.
10617 (f77_keywords): Add 'abs' keyword.
10618 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
10619 (value_from_host_double): New function.
10620 (evaluate_subexp_f): Support UNOP_ABS.
10622 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10624 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
10627 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10629 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
10630 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
10631 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
10633 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10635 * f-exp.y (convert_to_kind_type): Handle more type kinds.
10637 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10638 Chris January <chris.january@arm.com>
10640 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
10641 * f-exp.y: Define 'KIND' token.
10642 (exp): New pattern for KIND expressions.
10643 (ptype): Handle types with a kind extension.
10644 (direct_abs_decl): Extend to spot kind extensions.
10645 (f77_keywords): Add 'kind' to the list.
10646 (push_kind_type): New function.
10647 (convert_to_kind_type): New function.
10648 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
10649 * parse.c (operator_length_standard): Likewise.
10650 * parser-defs.h (enum type_pieces): Add tp_kind.
10651 * std-operator.def: Add UNOP_KIND.
10653 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10655 * f-exp.y (f_parse): Set yydebug.
10657 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10659 * f-lang.c (evaluate_subexp_f): New function.
10660 (exp_descriptor_f): New global.
10661 (f_language_defn): Use exp_descriptor_f instead of
10662 exp_descriptor_standard.
10664 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10666 * f-exp.y (struct token): Add comments.
10667 (dot_ops): Remove uppercase versions and the end marker.
10668 (f77_keywords): Likewise.
10669 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
10670 entries in the dot_ops array are case insensitive, and use
10671 strncasecmp to compare strings. Also some whitespace cleanup in
10672 this area. Similar for the f77_keywords array, except entries in
10673 this list might be case sensitive.
10675 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10677 * f-exp.y (struct f77_boolean_val): Add comments.
10678 (boolean_values): Remove uppercase versions, and end marker.
10679 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
10680 and use strncasecmp to achieve case insensitivity. Additionally,
10681 perform whitespace cleanup around this code.
10683 2019-03-06 Tom Tromey <tromey@adacore.com>
10685 * remote-sim.c (gdbsim_target_open): Use result of
10688 2019-03-06 Richard Bunt <richard.bunt@arm.com>
10689 Dirk Schubert <dirk.schubert@arm.com>
10690 Chris January <chris.january@arm.com>
10692 * eval.c (evaluate_subexp_standard): Call Fortran argument
10694 * f-lang.c (struct value): A value which can be passed into a
10695 Fortran function call.
10696 (fortran_argument_convert): Wrap Fortran arguments in a pointer
10698 (struct type): Value ready for a Fortran function call.
10699 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
10701 * f-lang.h (fortran_argument_convert): Declaration.
10702 (fortran_preserve_arg_pointer): Declaration.
10703 * infcall.c (value_arg_coerce): Call Fortran argument logic.
10705 2019-03-05 Tom Tromey <tromey@adacore.com>
10707 * python/py-prettyprint.c (print_string_repr): Remove #if.
10708 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
10710 2019-03-05 Tom Tromey <tromey@adacore.com>
10712 * target.c (the_dummy_target): Move later. Change type to
10714 (initialize_targets): Don't initialize the_dummy_target.
10716 2019-03-05 Tom Tromey <tromey@adacore.com>
10718 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
10719 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
10721 2019-03-05 Tom Tromey <tromey@adacore.com>
10723 * windows-nat.c (windows_nat_target::attach)
10724 (windows_nat_target::detach): Don't call gdb_flush.
10725 * valprint.c (generic_val_print, val_print, val_print_string):
10726 Don't call gdb_flush.
10727 * utils.c (defaulted_query): Don't call gdb_flush.
10728 * typeprint.c (print_type_scalar): Don't call gdb_flush.
10729 * target.c (target_announce_detach): Don't call gdb_flush.
10730 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
10731 * remote.c (extended_remote_target::attach): Don't call
10733 * procfs.c (procfs_target::detach): Don't call gdb_flush.
10734 * printcmd.c (do_examine): Don't call gdb_flush.
10735 (info_display_command): Don't call gdb_flush.
10736 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
10737 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
10738 * memattr.c (info_mem_command): Don't call gdb_flush.
10739 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
10740 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
10741 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
10742 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
10743 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
10744 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
10745 (gnu_nat_target::detach): Don't call gdb_flush.
10746 * f-valprint.c (f_val_print): Don't call gdb_flush.
10747 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
10748 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
10749 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
10751 * c-valprint.c (c_val_print): Don't call gdb_flush.
10752 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
10754 2019-03-05 Tom Tromey <tromey@adacore.com>
10756 * varobj.c (update_dynamic_varobj_children): Update.
10757 (install_default_visualizer): Use reset, not release.
10758 * value.c (set_internalvar): Update.
10759 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
10760 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
10761 ATTRIBUTE_UNUSED_RESULT.
10763 2019-03-05 Tom Tromey <tromey@adacore.com>
10765 * remote.c (class scoped_remote_fd) <release>: Add
10766 ATTRIBUTE_UNUSED_RESULT.
10768 2019-03-05 Tom Tromey <tromey@adacore.com>
10770 * macroexp.c (struct macro_buffer) <release>: Add
10771 ATTRIBUTE_UNUSED_RESULT.
10773 2019-03-05 Tom Tromey <tromey@adacore.com>
10775 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
10776 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
10777 ATTRIBUTE_UNUSED_RESULT.
10779 2019-03-05 Tom Tromey <tromey@adacore.com>
10781 * common/scoped_fd.h (class scoped_fd) <release>: Add
10782 ATTRIBUTE_UNUSED_RESULT.
10784 2019-03-05 Tom Tromey <tromey@adacore.com>
10786 * parser-defs.h (struct parser_state) <release>: Add
10787 ATTRIBUTE_UNUSED_RESULT.
10789 2019-03-05 Tom Tromey <tromey@adacore.com>
10791 * utils.h (class gdb_argv) <release>: Add
10792 ATTRIBUTE_UNUSED_RESULT.
10793 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
10795 2019-03-02 Eli Zaretskii <eliz@gnu.org>
10797 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
10798 for-loop range, to avoid compiler warnings.
10800 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
10801 avoid compiler warnings about unused variables.
10803 * NEWS: Mention end of support for native debugging on MS-Windows
10807 * common/netstuff.c:
10808 * gdbserver/gdbreplay.c
10809 * gdbserver/remote-utils.c:
10811 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
10812 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
10813 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
10814 'getaddrinfo' and 'freeaddrinfo' were not available before
10815 Windows XP, and mingw.org's MinGW headers by default define
10816 _WIN32_WINNT to 0x500.
10818 2019-03-01 Gary Benson <gbenson@redhat.com>
10820 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
10822 2019-02-28 Brian Vandenberg <phantall@gmail.com>
10823 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10826 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
10827 set_sigint_trap, clear_sigint_trap.
10829 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10831 * target.c (target_detach): Clear the regcache and the
10834 2019-02-27 Pedro Alves <palves@redhat.com>
10836 * utils.c (set_screen_size): When we cap the height/width sizes,
10837 tweak the corresponding command variable to show "unlimited":
10839 2019-02-27 Saagar Jha <saagar@saagarjha.com>
10840 Pedro Alves <palves@redhat.com>
10842 * utils.c (set_screen_size): Reduce "infinite" rows and columns
10843 before calling rl_set_screen_size.
10845 2019-02-27 Tom Tromey <tromey@adacore.com>
10847 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
10849 * python/py-value.c: Remove Python 2.4 workaround.
10850 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
10852 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
10853 Python 2.4 workaround.
10854 * python/python-internal.h: Remove Python 2.4 comment.
10855 (Py_ssize_t): Don't define.
10856 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
10857 (gdb_Py_DECREF): Remove Python 2.4 workaround.
10858 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
10859 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
10860 * python/python.c (do_start_initialization): Remove Python 2.4
10862 * python/py-prettyprint.c (class dummy_python_frame): Remove.
10863 (print_children): Remove Python 2.4 workaround.
10864 * python/py-inferior.c (buffer_procs): Remove Python 2.4
10866 (CHARBUFFERPROC_NAME): Remove.
10867 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
10868 Python 2.4 workaround.
10870 2019-02-27 Kevin Buettner <kevinb@redhat.com>
10872 * NEWS: Note minimum Python version.
10874 2019-02-27 Kevin Buettner <kevinb@redhat.com>
10876 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
10877 code from these functions. Remove corresponding ifdefs. Use
10878 Py_buffer_up instead of explicit calls to PyBuffer_Release.
10879 Remove gotos and target of gotos.
10880 (infpy_search_memory): Likewise.
10882 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10884 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
10885 (hppa_gdbarch_init): Don't register deleted functions with
10888 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10890 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
10891 (h8300_unwind_sp): Delete.
10892 (h8300_dummy_id): Delete.
10893 (h8300_gdbarch_init): Don't register deleted functions with
10896 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10898 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
10899 (ft32_unwind_pc): Delete.
10900 (ft32_unwind_sp): Delete.
10901 (ft32_gdbarch_init): Don't register deleted functions with
10904 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10906 * gdb/frv-tdep.c (frv_dummy_id): Delete.
10907 (frv_unwind_pc): Delete.
10908 (frv_unwind_sp): Delete.
10909 (frv_gdbarch_init): Don't register deleted functions with
10912 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10914 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
10915 (riscv_unwind_pc): Delete.
10916 (riscv_unwind_sp): Delete.
10917 (riscv_gdbarch_init): Don't register deleted functions with
10920 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10922 * gdb/csky-tdep.c (csky_dummy_id): Delete.
10923 (csky_unwind_pc): Delete.
10924 (csky_unwind_sp): Delete.
10925 (csky_gdbarch_init): Don't register deleted functions with
10928 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10930 * gdb/cris-tdep.c (cris_dummy_id): Delete.
10931 (cris_unwind_pc): Delete.
10932 (cris_unwind_sp): Delete.
10933 (cris_gdbarch_init): Don't register deleted functions with
10936 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10938 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
10939 (bfin_unwind_pc): Delete.
10940 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
10942 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10944 * gdb/arm-tdep.c (arm_dummy_id): Delete.
10945 (arm_unwind_pc): Delete.
10946 (arm_unwind_sp): Delete.
10947 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
10949 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10951 * gdb/arc-tdep.c (arc_dummy_id): Delete.
10952 (arc_unwind_pc): Delete.
10953 (arc_unwind_sp): Delete.
10954 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
10956 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10958 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
10959 (alpha_unwind_pc): Delete.
10960 (alpha_gdbarch_init): Don't register deleted functions with
10963 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10965 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
10966 (aarch64_unwind_pc): Delete.
10967 (aarch64_unwind_sp): Delete.
10968 (aarch64_gdbarch_init): Don't register deleted functions with
10971 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10973 * gdbtypes.c (type_align): Don't consider static members when
10974 computing structure alignment.
10976 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10978 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
10979 return 0 for other types.
10980 * arch-utils.c (default_type_align): Always return 0.
10981 * gdbarch.h: Regenerate.
10982 * gdbarch.sh (type_align): Extend comment.
10983 * gdbtypes.c (type_align): Add additional comments, always call
10984 gdbarch_type_align before applying the default rules.
10985 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
10986 generic code will then apply a suitable default.
10987 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
10988 types, return 0 for other types.
10990 2019-02-27 Joel Brobecker <brobecker@adacore.com>
10992 * NEWS: Create a new section for the next release branch.
10993 Rename the section of the current branch, now that it has
10996 2019-02-27 Joel Brobecker <brobecker@adacore.com>
10998 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
10999 * version.in: Bump version to 8.3.50.DATE-git.
11001 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
11003 * aix-thread.c (ptid_cmp): Remove unused variable.
11004 (get_signaled_thread): Likewise.
11005 (store_regs_user_thread): Likewise.
11006 (store_regs_kernel_thread): Likewise.
11007 (fetch_regs_kernel_thread): Remove shadowed variable.
11009 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
11011 * features/riscv/32bit-cpu.xml: Add register numbers.
11012 * features/riscv/32bit-fpu.c: Regenerate.
11013 * features/riscv/32bit-fpu.xml: Add register numbers.
11014 * features/riscv/64bit-cpu.xml: Add register numbers.
11015 * features/riscv/64bit-fpu.c: Regenerate.
11016 * features/riscv/64bit-fpu.xml: Add register numbers.
11018 2019-02-26 Kevin Buettner <kevinb@redhat.com>
11020 * NEWS: Mention two argument form of gdb.Value constructor.
11021 * python/py-value.c (convert_buffer_and_type_to_value): New
11023 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
11024 Add support for handling an optional second argument. Call
11025 convert_buffer_and_type_to_value as appropriate.
11026 * python/python-internal.h (Py_buffer_deleter): New struct.
11027 (Py_buffer_up): New typedef.
11029 2019-02-25 John Baldwin <jhb@FreeBSD.org>
11031 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
11032 instead of releasing ownership.
11034 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
11036 * dwarf2read.c (open_and_init_dwp_file): Call
11037 elf_numsections instead of bfd_count_sections to initialize
11038 dwp_file->num_sections.
11040 2019-02-25 Tom Tromey <tromey@adacore.com>
11042 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
11044 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
11046 * gcore.in: Add '--readnever' option when invoking GDB.
11048 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
11050 * MAINTAINERS: Update my email address.
11052 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
11054 * build-id.c (build_id_to_debug_bfd_1): New function.
11055 (build_id_to_debug_bfd): Look for separate debug file in
11058 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
11060 * gdbarch.sh: Update the copyright year range that is placed into
11063 2019-02-22 Keith Seitz <keiths@redhat.com>
11066 * linespec.c (create_sals_line_offset): Search for the default
11067 symtab's filename instead of its fullname.
11069 2019-02-21 Alan Hayward <alan.hayward@arm.com>
11071 * NEWS: Update style defaults.
11073 2019-02-21 Alan Hayward <alan.hayward@arm.com>
11075 * main.c (captured_main_1): Disable styling in batch mode.
11077 2019-02-20 Tom Tromey <tom@tromey.com>
11079 * symtab.c (symtab_symbol_info): Fix typos.
11081 2019-02-20 Tom Tromey <tromey@adacore.com>
11083 * findcmd.c (_initialize_mem_search): Use upper case for
11084 metasyntactic variables.
11086 2019-02-20 Alan Hayward <alan.hayward@arm.com>
11088 * aarch64-tdep.c (aarch64_add_reggroups): New function.
11089 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
11091 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
11093 * top.h (source_file_name): Change to std::string.
11094 * top.c (source_file_name): Likewise.
11095 (command_line_input): Adjust.
11096 * cli/cli-script.c (script_from_file): Adjust.
11098 2019-02-19 Tom Tromey <tromey@adacore.com>
11100 * ravenscar-thread.c
11101 (ravenscar_thread_target::update_thread_list): Don't call
11102 ada_build_task_list.
11103 * ada-lang.h (ada_build_task_list): Don't declare.
11104 * ada-tasks.c (struct ada_tasks_inferior_data)
11105 <task_list_valid_p>: Now bool.
11106 (read_known_tasks, ada_task_list_changed)
11107 (ada_tasks_invalidate_inferior_data): Update.
11108 (read_known_tasks_array): Return bool.
11109 (read_known_tasks_list): Likewise.
11110 (read_known_tasks): Return void.
11111 (ada_build_task_list): Now static.
11113 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
11115 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
11116 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
11118 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11120 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
11121 variant for ada_tasks_pspace_data_handle and
11122 ada_tasks_inferior_data_handle.
11123 (ada_tasks_pspace_data_cleanup): New function.
11124 (ada_tasks_inferior_data_cleanup): New function.
11126 2019-02-17 Tom Tromey <tom@tromey.com>
11128 * macrotab.h (macro_source_fullname): Return a std::string.
11129 * macrotab.c (macro_include, check_for_redefinition)
11130 (macro_undef, macro_lookup_definition, foreach_macro)
11131 (foreach_macro_in_scope): Update.
11132 (macro_source_fullname): Return a std::string.
11133 * macrocmd.c (show_pp_source_pos): Update.
11135 2019-02-17 Tom Tromey <tom@tromey.com>
11137 * macrocmd.c (show_pp_source_pos): Style the file names.
11139 2019-02-17 Tom Tromey <tom@tromey.com>
11142 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
11144 2019-02-17 Tom Tromey <tom@tromey.com>
11146 * ada-lang.c (user_select_syms): Use filtered printing.
11147 * utils.c (wrap_style): New global.
11148 (desired_style): Remove.
11149 (emit_style_escape): Add stream parameter.
11150 (set_output_style, reset_terminal_style, prompt_for_continue):
11152 (flush_wrap_buffer): Only flush gdb_stdout.
11153 (wrap_here): Set wrap_style.
11154 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
11155 treat escape sequences as a character. Change when wrap buffer is
11157 (fputs_styled): Do not set the output style when the default is
11159 * ui-style.h (struct ui_file_style) <is_default>: New method.
11160 * source.c (print_source_lines_base): Emit escape sequences in one
11163 2019-02-17 Joel Brobecker <brobecker@adacore.com>
11165 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
11166 integers and enumeration types.
11168 2019-02-17 Joel Brobecker <brobecker@adacore.com>
11170 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
11171 instead of lookup_symbol_in_language
11172 (do_exact_match): New function.
11173 (ada_get_symbol_name_matcher): Return do_exact_match when
11174 doing a verbatim match.
11176 2019-02-15 Tom Tromey <tromey@adacore.com>
11178 * ravenscar-thread.c (ravenscar_thread_target::resume)
11179 (ravenscar_thread_target::wait): Special case wildcard requests.
11181 2019-02-15 Tom Tromey <tromey@adacore.com>
11183 * ravenscar-thread.c (base_ptid): Remove.
11184 (struct ravenscar_thread_target) <close>: New method.
11185 <m_base_ptid>: New member.
11186 <update_inferior_ptid, active_task, task_is_currently_active,
11187 runtime_initialized>: Declare methods.
11188 <ravenscar_thread_target>: Add constructor.
11189 (ravenscar_thread_target::task_is_currently_active)
11190 (ravenscar_thread_target::update_inferior_ptid)
11191 (ravenscar_runtime_initialized): Rename. Now methods.
11192 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
11193 (ravenscar_thread_target::update_thread_list): Update.
11194 (ravenscar_thread_target::active_task): Now method.
11195 (ravenscar_thread_target::store_registers)
11196 (ravenscar_thread_target::prepare_to_store)
11197 (ravenscar_thread_target::prepare_to_store)
11198 (ravenscar_thread_target::mourn_inferior): Update.
11199 (ravenscar_inferior_created): Use "new" to create target.
11200 (ravenscar_thread_target::get_ada_task_ptid): Update.
11201 (_initialize_ravenscar): Don't initialize base_ptid.
11202 (ravenscar_ops): Remove global.
11204 2019-02-15 Tom Tromey <tromey@adacore.com>
11206 * target.h (push_target): Declare new overload.
11207 * target.c (push_target): New overload, taking an rvalue reference.
11208 * remote.c (remote_target::open_1): Use push_target overload.
11209 * corelow.c (core_target_open): Use push_target overload.
11211 2019-02-15 Tom Tromey <tromey@adacore.com>
11213 * ravenscar-thread.c (is_ravenscar_task)
11214 (ravenscar_task_is_currently_active): Return bool.
11215 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
11216 (_initialize_ravenscar): Remove "(void)".
11217 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
11220 2019-02-15 Tom Tromey <tromey@adacore.com>
11222 * ravenscar-thread.c (ravenscar_runtime_initializer)
11223 (has_ravenscar_runtime, get_running_thread_id)
11224 (ravenscar_thread_target::resume): Fix indentation.
11226 2019-02-15 Tom Tromey <tromey@adacore.com>
11228 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
11229 from ravenscar_arch_ops.
11230 (sparc_ravenscar_ops::fetch_registers)
11231 (sparc_ravenscar_ops::store_registers): Now methods.
11232 (sparc_ravenscar_prepare_to_store): Remove.
11233 (sparc_ravenscar_ops): Redefine.
11234 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
11235 methods and destructor. Remove members.
11236 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
11237 (ravenscar_thread_target::store_registers)
11238 (ravenscar_thread_target::prepare_to_store): Update.
11239 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
11241 (struct ppc_ravenscar_powerpc_ops): Derive from
11242 ravenscar_arch_ops.
11243 (ppc_ravenscar_powerpc_ops::fetch_registers)
11244 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
11245 (ppc_ravenscar_powerpc_ops): Redefine.
11246 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
11247 (ppc_ravenscar_e500_ops::fetch_registers)
11248 (ppc_ravenscar_e500_ops::store_registers): Now methods.
11249 (ppc_ravenscar_e500_ops): Redefine.
11250 * aarch64-ravenscar-thread.c
11251 (aarch64_ravenscar_generic_prepare_to_store): Remove.
11252 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
11253 (aarch64_ravenscar_fetch_registers)
11254 (aarch64_ravenscar_store_registers): Now methods.
11255 (aarch64_ravenscar_ops): Redefine.
11257 2019-02-15 Tom Tromey <tromey@adacore.com>
11259 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
11260 (ravenscar_thread_target::stopped_by_hw_breakpoint)
11261 (ravenscar_thread_target::stopped_by_watchpoint)
11262 (ravenscar_thread_target::stopped_data_address)
11263 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
11265 2019-02-15 Tom Tromey <tromey@adacore.com>
11267 * ravenscar-thread.c: Fix some typos.
11269 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11270 Tom Tromey <tromey@adacore.com>
11272 * ada-lang.c (ada_exception_sal): Change addr_string to a
11274 (create_ada_exception_catchpoint): Update.
11276 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11277 Tom Tromey <tromey@adacore.com>
11279 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
11280 (bp_location_ops): Remove.
11281 (base_breakpoint_allocate_location): Update.
11282 (free_bp_location): Update.
11283 * ada-lang.c (class ada_catchpoint_location)
11284 <ada_catchpoint_location>: Remove ops parameter.
11285 (ada_catchpoint_location_dtor): Remove.
11286 (ada_catchpoint_location_ops): Remove.
11287 (allocate_location_exception): Update.
11288 * breakpoint.h (struct bp_location_ops): Remove.
11289 (class bp_location) <bp_location>: Remove bp_location_ops
11291 <~bp_location>: Add destructor.
11294 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
11295 Pedro Alves <palves@redhat.com>
11297 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
11300 2019-02-14 David Michael <fedora.dm0@gmail.com>
11301 Samuel Thibault <samuel.thibault@gnu.org>
11302 Thomas Schwinge <thomas@codesourcery.com>
11304 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
11305 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
11307 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
11309 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
11310 (check_empty): Use "const char *".
11312 * gnu-nat.c (gnu_nat_target::detach): Instead of
11313 'detach_inferior (pid)' call
11314 'detach_inferior (find_inferior_pid (pid))'.
11316 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
11317 'nat/fork-inferior.o'.
11318 * gnu-nat.c: #include "nat/fork-inferior.h".
11320 * gnu-nat.c (gnu_nat_target::detach): Instead of
11321 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
11322 * gnu-nat.h: #include "inf-child.h".
11323 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
11324 'i386_gnu_nat_target::fetch_registers'.
11325 (gnu_store_registers): Rename/move to
11326 'i386_gnu_nat_target::store_registers'.
11328 * config/i386/nm-i386gnu.h: Don't "#include" any files.
11329 * gnu-nat.h (mach_thread_info): New function.
11330 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
11332 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
11334 2019-02-14 Frederic Konrad <konrad@adacore.com>
11336 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
11338 2019-02-14 Joel Brobecker <brobecker@adacore.com>
11340 * windows-nat.c (windows_add_thread): Add new parameter
11341 "main_thread_p" with default value set to false. Update
11342 function documentation as well as all callers.
11343 (windows_delete_thread): Likewise.
11344 (fake_create_process): Update call to windows_add_thread.
11345 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
11346 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
11347 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
11348 call to windows_delete_thread.
11350 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
11352 * MAINTAINERS: Add Andrew Burgess as global maintainer.
11354 2019-02-12 John Baldwin <jhb@FreeBSD.org>
11356 * symfile.c (find_separate_debug_file): Use canonical path of
11357 sysroot with child_path instead of gdb_sysroot if it is valid.
11359 2019-02-12 John Baldwin <jhb@FreeBSD.org>
11361 * symfile.c (find_separate_debug_file): Use child_path to
11362 determine if an object file is under a sysroot.
11364 2019-02-12 John Baldwin <jhb@FreeBSD.org>
11366 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11367 unittests/child-path-selftests.c.
11368 * common/pathstuff.c (child_path): New function.
11369 * common/pathstuff.h (child_path): New prototype.
11370 * unittests/child-path-selftests.c: New file.
11372 2019-02-12 John Baldwin <jhb@FreeBSD.org>
11374 * symfile.c (find_separate_debug_file): Look for separate debug
11375 files in debug directories under the sysroot.
11377 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11379 * symtab.h (struct minimal_symbol data_p): New const method.
11380 (struct minimal_symbol text_p): Likewise.
11381 * symtab.c (output_source_filename): Use file name style
11382 to print file name.
11383 (print_symbol_info): Likewise.
11384 (print_msymbol_info): Use address style to print addresses.
11385 Use function name style to print executable text symbols.
11386 (expand_symtab_containing_pc): Use data_p.
11387 (find_pc_sect_compunit_symtab): Likewise.
11389 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11391 * breakpoint.c (describe_other_breakpoints): Use address style
11392 to print addresses.
11393 (say_where): Likewise.
11395 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11397 * ada-typeprint.c (print_func_type): Print function name
11398 style to print function name.
11399 * c-typeprint.c (c_print_type_1): Likewise.
11401 2019-02-11 Alan Hayward <alan.hayward@arm.com>
11403 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
11406 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11408 * c-exp.y (direct_abs_decl): Use emplace_back to record the
11411 2019-02-10 Joel Brobecker <brobecker@adacore.com>
11413 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
11414 TYPE_CODE_REF types.
11416 2019-02-08 Jim Wilson <jimw@sifive.com>
11418 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
11419 (riscv_linux_fregset): New.
11420 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
11422 2019-02-07 Tom Tromey <tom@tromey.com>
11424 * thread.c (thread_cancel_execution_command): Update.
11425 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
11427 (struct thread_fsm_ops): Remove.
11428 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
11429 (thread_fsm_should_stop, thread_fsm_return_value)
11430 (thread_fsm_set_finished, thread_fsm_finished_p)
11431 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
11433 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
11434 * infrun.c (clear_proceed_status_thread)
11435 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
11436 (print_stop_event): Update.
11437 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
11439 (step_command_fsm_ops): Remove.
11440 (new_step_command_fsm): Remove.
11442 (step_command_fsm::should_stop): Rename from
11443 step_command_fsm_should_stop.
11444 (step_command_fsm::clean_up): Rename from
11445 step_command_fsm_clean_up.
11446 (step_command_fsm::do_async_reply_reason): Rename from
11447 step_command_fsm_async_reply_reason.
11448 (struct until_next_fsm): Inherit from thread_fsm. Add
11450 (until_next_fsm_ops): Remove.
11451 (new_until_next_fsm): Remove.
11452 (until_next_fsm::should_stop): Rename from
11453 until_next_fsm_should_stop.
11454 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
11455 (until_next_fsm::do_async_reply_reason): Rename from
11456 until_next_fsm_async_reply_reason.
11457 (struct finish_command_fsm): Inherit from thread_fsm. Add
11458 constructor. Change type of breakpoint.
11459 (finish_command_fsm_ops): Remove.
11460 (new_finish_command_fsm): Remove.
11461 (finish_command_fsm::should_stop): Rename from
11462 finish_command_fsm_should_stop.
11463 (finish_command_fsm::clean_up): Rename from
11464 finish_command_fsm_clean_up.
11465 (finish_command_fsm::return_value): Rename from
11466 finish_command_fsm_return_value.
11467 (finish_command_fsm::do_async_reply_reason): Rename from
11468 finish_command_fsm_async_reply_reason.
11469 (finish_command): Update.
11470 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
11472 (call_thread_fsm_ops): Remove.
11473 (call_thread_fsm::call_thread_fsm): Rename from
11474 new_call_thread_fsm.
11475 (call_thread_fsm::should_stop): Rename from
11476 call_thread_fsm_should_stop.
11477 (call_thread_fsm::should_notify_stop): Rename from
11478 call_thread_fsm_should_notify_stop.
11479 (run_inferior_call, call_function_by_hand_dummy): Update.
11480 * cli/cli-interp.c (should_print_stop_to_console): Update.
11481 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
11482 Add constructor. Change type of location_breakpoint,
11484 (until_break_fsm_ops): Remove.
11485 (new_until_break_fsm): Remove.
11486 (until_break_fsm::should_stop): Rename from
11487 until_break_fsm_should_stop.
11488 (until_break_fsm::clean_up): Rename from
11489 until_break_fsm_clean_up.
11490 (until_break_fsm::do_async_reply_reason): Rename from
11491 until_break_fsm_async_reply_reason.
11492 (until_break_command): Update.
11493 * thread-fsm.c: Remove.
11494 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
11496 2019-02-07 Tom Tromey <tom@tromey.com>
11498 * yy-remap.h: Add include guard.
11499 * xtensa-tdep.h: Add include guard.
11500 * xcoffread.h: Rename include guard.
11501 * varobj-iter.h: Add include guard.
11502 * tui/tui.h: Rename include guard.
11503 * tui/tui-winsource.h: Rename include guard.
11504 * tui/tui-wingeneral.h: Rename include guard.
11505 * tui/tui-windata.h: Rename include guard.
11506 * tui/tui-win.h: Rename include guard.
11507 * tui/tui-stack.h: Rename include guard.
11508 * tui/tui-source.h: Rename include guard.
11509 * tui/tui-regs.h: Rename include guard.
11510 * tui/tui-out.h: Rename include guard.
11511 * tui/tui-layout.h: Rename include guard.
11512 * tui/tui-io.h: Rename include guard.
11513 * tui/tui-hooks.h: Rename include guard.
11514 * tui/tui-file.h: Rename include guard.
11515 * tui/tui-disasm.h: Rename include guard.
11516 * tui/tui-data.h: Rename include guard.
11517 * tui/tui-command.h: Rename include guard.
11518 * tic6x-tdep.h: Add include guard.
11519 * target/waitstatus.h: Rename include guard.
11520 * target/wait.h: Rename include guard.
11521 * target/target.h: Rename include guard.
11522 * target/resume.h: Rename include guard.
11523 * target-float.h: Rename include guard.
11524 * stabsread.h: Add include guard.
11525 * rs6000-tdep.h: Add include guard.
11526 * riscv-fbsd-tdep.h: Add include guard.
11527 * regformats/regdef.h: Rename include guard.
11528 * record.h: Rename include guard.
11529 * python/python.h: Rename include guard.
11530 * python/python-internal.h: Rename include guard.
11531 * python/py-stopevent.h: Rename include guard.
11532 * python/py-ref.h: Rename include guard.
11533 * python/py-record.h: Rename include guard.
11534 * python/py-record-full.h: Rename include guard.
11535 * python/py-record-btrace.h: Rename include guard.
11536 * python/py-instruction.h: Rename include guard.
11537 * python/py-events.h: Rename include guard.
11538 * python/py-event.h: Rename include guard.
11539 * procfs.h: Add include guard.
11540 * proc-utils.h: Add include guard.
11541 * p-lang.h: Add include guard.
11542 * or1k-tdep.h: Rename include guard.
11543 * observable.h: Rename include guard.
11544 * nto-tdep.h: Rename include guard.
11545 * nat/x86-linux.h: Rename include guard.
11546 * nat/x86-linux-dregs.h: Rename include guard.
11547 * nat/x86-gcc-cpuid.h: Add include guard.
11548 * nat/x86-dregs.h: Rename include guard.
11549 * nat/x86-cpuid.h: Rename include guard.
11550 * nat/ppc-linux.h: Rename include guard.
11551 * nat/mips-linux-watch.h: Rename include guard.
11552 * nat/linux-waitpid.h: Rename include guard.
11553 * nat/linux-ptrace.h: Rename include guard.
11554 * nat/linux-procfs.h: Rename include guard.
11555 * nat/linux-osdata.h: Rename include guard.
11556 * nat/linux-nat.h: Rename include guard.
11557 * nat/linux-namespaces.h: Rename include guard.
11558 * nat/linux-btrace.h: Rename include guard.
11559 * nat/glibc_thread_db.h: Rename include guard.
11560 * nat/gdb_thread_db.h: Rename include guard.
11561 * nat/gdb_ptrace.h: Rename include guard.
11562 * nat/fork-inferior.h: Rename include guard.
11563 * nat/amd64-linux-siginfo.h: Rename include guard.
11564 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
11565 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
11566 * nat/aarch64-linux.h: Rename include guard.
11567 * nat/aarch64-linux-hw-point.h: Rename include guard.
11568 * mn10300-tdep.h: Add include guard.
11569 * mips-linux-tdep.h: Add include guard.
11570 * mi/mi-parse.h: Rename include guard.
11571 * mi/mi-out.h: Rename include guard.
11572 * mi/mi-main.h: Rename include guard.
11573 * mi/mi-interp.h: Rename include guard.
11574 * mi/mi-getopt.h: Rename include guard.
11575 * mi/mi-console.h: Rename include guard.
11576 * mi/mi-common.h: Rename include guard.
11577 * mi/mi-cmds.h: Rename include guard.
11578 * mi/mi-cmd-break.h: Rename include guard.
11579 * m2-lang.h: Add include guard.
11580 * location.h: Rename include guard.
11581 * linux-record.h: Rename include guard.
11582 * linux-nat.h: Add include guard.
11583 * linux-fork.h: Add include guard.
11584 * i386-darwin-tdep.h: Rename include guard.
11585 * hppa-linux-offsets.h: Add include guard.
11586 * guile/guile.h: Rename include guard.
11587 * guile/guile-internal.h: Rename include guard.
11588 * gnu-nat.h: Rename include guard.
11589 * gdb-stabs.h: Rename include guard.
11590 * frv-tdep.h: Add include guard.
11591 * f-lang.h: Add include guard.
11592 * event-loop.h: Add include guard.
11593 * darwin-nat.h: Rename include guard.
11594 * cp-abi.h: Rename include guard.
11595 * config/sparc/nm-sol2.h: Rename include guard.
11596 * config/nm-nto.h: Rename include guard.
11597 * config/nm-linux.h: Add include guard.
11598 * config/i386/nm-i386gnu.h: Rename include guard.
11599 * config/djgpp/nl_types.h: Rename include guard.
11600 * config/djgpp/langinfo.h: Rename include guard.
11601 * compile/gcc-cp-plugin.h: Add include guard.
11602 * compile/gcc-c-plugin.h: Add include guard.
11603 * compile/compile.h: Rename include guard.
11604 * compile/compile-object-run.h: Rename include guard.
11605 * compile/compile-object-load.h: Rename include guard.
11606 * compile/compile-internal.h: Rename include guard.
11607 * compile/compile-cplus.h: Rename include guard.
11608 * compile/compile-c.h: Rename include guard.
11609 * common/xml-utils.h: Rename include guard.
11610 * common/x86-xstate.h: Rename include guard.
11611 * common/version.h: Rename include guard.
11612 * common/vec.h: Rename include guard.
11613 * common/tdesc.h: Rename include guard.
11614 * common/selftest.h: Rename include guard.
11615 * common/scoped_restore.h: Rename include guard.
11616 * common/scoped_mmap.h: Rename include guard.
11617 * common/scoped_fd.h: Rename include guard.
11618 * common/safe-iterator.h: Rename include guard.
11619 * common/run-time-clock.h: Rename include guard.
11620 * common/refcounted-object.h: Rename include guard.
11621 * common/queue.h: Rename include guard.
11622 * common/ptid.h: Rename include guard.
11623 * common/print-utils.h: Rename include guard.
11624 * common/preprocessor.h: Rename include guard.
11625 * common/pathstuff.h: Rename include guard.
11626 * common/observable.h: Rename include guard.
11627 * common/netstuff.h: Rename include guard.
11628 * common/job-control.h: Rename include guard.
11629 * common/host-defs.h: Rename include guard.
11630 * common/gdb_wait.h: Rename include guard.
11631 * common/gdb_vecs.h: Rename include guard.
11632 * common/gdb_unlinker.h: Rename include guard.
11633 * common/gdb_unique_ptr.h: Rename include guard.
11634 * common/gdb_tilde_expand.h: Rename include guard.
11635 * common/gdb_sys_time.h: Rename include guard.
11636 * common/gdb_string_view.h: Rename include guard.
11637 * common/gdb_splay_tree.h: Rename include guard.
11638 * common/gdb_setjmp.h: Rename include guard.
11639 * common/gdb_ref_ptr.h: Rename include guard.
11640 * common/gdb_optional.h: Rename include guard.
11641 * common/gdb_locale.h: Rename include guard.
11642 * common/gdb_assert.h: Rename include guard.
11643 * common/filtered-iterator.h: Rename include guard.
11644 * common/filestuff.h: Rename include guard.
11645 * common/fileio.h: Rename include guard.
11646 * common/environ.h: Rename include guard.
11647 * common/common-utils.h: Rename include guard.
11648 * common/common-types.h: Rename include guard.
11649 * common/common-regcache.h: Rename include guard.
11650 * common/common-inferior.h: Rename include guard.
11651 * common/common-gdbthread.h: Rename include guard.
11652 * common/common-exceptions.h: Rename include guard.
11653 * common/common-defs.h: Rename include guard.
11654 * common/common-debug.h: Rename include guard.
11655 * common/cleanups.h: Rename include guard.
11656 * common/buffer.h: Rename include guard.
11657 * common/btrace-common.h: Rename include guard.
11658 * common/break-common.h: Rename include guard.
11659 * cli/cli-utils.h: Rename include guard.
11660 * cli/cli-style.h: Rename include guard.
11661 * cli/cli-setshow.h: Rename include guard.
11662 * cli/cli-script.h: Rename include guard.
11663 * cli/cli-interp.h: Rename include guard.
11664 * cli/cli-decode.h: Rename include guard.
11665 * cli/cli-cmds.h: Rename include guard.
11666 * charset-list.h: Add include guard.
11667 * buildsym-legacy.h: Rename include guard.
11668 * bfin-tdep.h: Add include guard.
11669 * ax.h: Rename include guard.
11670 * arm-linux-tdep.h: Add include guard.
11671 * arm-fbsd-tdep.h: Add include guard.
11672 * arch/xtensa.h: Rename include guard.
11673 * arch/tic6x.h: Add include guard.
11674 * arch/i386.h: Add include guard.
11675 * arch/arm.h: Rename include guard.
11676 * arch/arm-linux.h: Rename include guard.
11677 * arch/arm-get-next-pcs.h: Rename include guard.
11678 * arch/amd64.h: Add include guard.
11679 * arch/aarch64-insn.h: Rename include guard.
11680 * arch-utils.h: Rename include guard.
11681 * annotate.h: Add include guard.
11682 * amd64-darwin-tdep.h: Rename include guard.
11683 * aarch64-linux-tdep.h: Add include guard.
11684 * aarch64-fbsd-tdep.h: Add include guard.
11685 * aarch32-linux-nat.h: Add include guard.
11687 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11689 * macrotab.c (macro_define_internal): New function that
11690 factorizes macro_define_object_internal and macro_define_function
11692 (macro_define_object_internal): Use macro_define_internal.
11693 (macro_define_function): Likewise.
11695 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11697 * macrocmd.c (extract_identifier): Return
11698 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
11701 2019-02-06 John Baldwin <jhb@FreeBSD.org>
11703 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
11705 2019-02-05 Tom Tromey <tom@tromey.com>
11707 * target.c (target_stack::unpush): Move assertion earlier.
11709 2019-01-30 Tom Tromey <tom@tromey.com>
11712 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
11713 (gdbpy_parse_and_eval): Likewise.
11714 * python/python-internal.h (gdbpy_allow_threads): New class.
11716 2019-01-28 John Baldwin <jhb@FreeBSD.org>
11718 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
11719 (aarch64_fbsd_fpregmap): Move earlier.
11720 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
11721 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
11722 instead of individual calls to trad_frame_set_reg_addr.
11723 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
11725 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
11726 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
11727 instead of individual calls to trad_frame_set_reg_addr.
11729 2019-01-28 Alan Hayward <alan.hayward@arm.com>
11731 * CONTRIBUTE: Replace contribution list with wiki link.
11733 2019-01-25 Tom Tromey <tom@tromey.com>
11735 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
11737 2019-01-25 Tom Tromey <tom@tromey.com>
11739 * xtensa-linux-nat.c: Fix common/ includes.
11740 * xml-support.h: Fix common/ includes.
11741 * xml-support.c: Fix common/ includes.
11742 * x86-linux-nat.c: Fix common/ includes.
11743 * windows-nat.c: Fix common/ includes.
11744 * varobj.h: Fix common/ includes.
11745 * varobj.c: Fix common/ includes.
11746 * value.c: Fix common/ includes.
11747 * valops.c: Fix common/ includes.
11748 * utils.c: Fix common/ includes.
11749 * unittests/xml-utils-selftests.c: Fix common/ includes.
11750 * unittests/utils-selftests.c: Fix common/ includes.
11751 * unittests/unpack-selftests.c: Fix common/ includes.
11752 * unittests/tracepoint-selftests.c: Fix common/ includes.
11753 * unittests/style-selftests.c: Fix common/ includes.
11754 * unittests/string_view-selftests.c: Fix common/ includes.
11755 * unittests/scoped_restore-selftests.c: Fix common/ includes.
11756 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
11757 * unittests/scoped_fd-selftests.c: Fix common/ includes.
11758 * unittests/rsp-low-selftests.c: Fix common/ includes.
11759 * unittests/parse-connection-spec-selftests.c: Fix common/
11761 * unittests/optional-selftests.c: Fix common/ includes.
11762 * unittests/offset-type-selftests.c: Fix common/ includes.
11763 * unittests/observable-selftests.c: Fix common/ includes.
11764 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
11765 * unittests/memrange-selftests.c: Fix common/ includes.
11766 * unittests/memory-map-selftests.c: Fix common/ includes.
11767 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
11768 * unittests/function-view-selftests.c: Fix common/ includes.
11769 * unittests/environ-selftests.c: Fix common/ includes.
11770 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
11771 * unittests/common-utils-selftests.c: Fix common/ includes.
11772 * unittests/cli-utils-selftests.c: Fix common/ includes.
11773 * unittests/array-view-selftests.c: Fix common/ includes.
11774 * ui-file.c: Fix common/ includes.
11775 * tui/tui-io.c: Fix common/ includes.
11776 * tracepoint.h: Fix common/ includes.
11777 * tracepoint.c: Fix common/ includes.
11778 * tracefile-tfile.c: Fix common/ includes.
11779 * top.h: Fix common/ includes.
11780 * top.c: Fix common/ includes.
11781 * thread.c: Fix common/ includes.
11782 * target/waitstatus.h: Fix common/ includes.
11783 * target/waitstatus.c: Fix common/ includes.
11784 * target.h: Fix common/ includes.
11785 * target.c: Fix common/ includes.
11786 * target-memory.c: Fix common/ includes.
11787 * target-descriptions.c: Fix common/ includes.
11788 * symtab.h: Fix common/ includes.
11789 * symfile.c: Fix common/ includes.
11790 * stap-probe.c: Fix common/ includes.
11791 * spu-linux-nat.c: Fix common/ includes.
11792 * sparc-nat.c: Fix common/ includes.
11793 * source.c: Fix common/ includes.
11794 * solib.c: Fix common/ includes.
11795 * solib-target.c: Fix common/ includes.
11796 * ser-unix.c: Fix common/ includes.
11797 * ser-tcp.c: Fix common/ includes.
11798 * ser-pipe.c: Fix common/ includes.
11799 * ser-base.c: Fix common/ includes.
11800 * selftest-arch.c: Fix common/ includes.
11801 * s12z-tdep.c: Fix common/ includes.
11802 * rust-exp.y: Fix common/ includes.
11803 * rs6000-aix-tdep.c: Fix common/ includes.
11804 * riscv-tdep.c: Fix common/ includes.
11805 * remote.c: Fix common/ includes.
11806 * remote-notif.h: Fix common/ includes.
11807 * remote-fileio.h: Fix common/ includes.
11808 * remote-fileio.c: Fix common/ includes.
11809 * regcache.h: Fix common/ includes.
11810 * regcache.c: Fix common/ includes.
11811 * record-btrace.c: Fix common/ includes.
11812 * python/python.c: Fix common/ includes.
11813 * python/py-type.c: Fix common/ includes.
11814 * python/py-inferior.c: Fix common/ includes.
11815 * progspace.h: Fix common/ includes.
11816 * producer.c: Fix common/ includes.
11817 * procfs.c: Fix common/ includes.
11818 * proc-api.c: Fix common/ includes.
11819 * printcmd.c: Fix common/ includes.
11820 * ppc-linux-nat.c: Fix common/ includes.
11821 * parser-defs.h: Fix common/ includes.
11822 * osdata.c: Fix common/ includes.
11823 * obsd-nat.c: Fix common/ includes.
11824 * nat/x86-linux.c: Fix common/ includes.
11825 * nat/x86-linux-dregs.c: Fix common/ includes.
11826 * nat/x86-dregs.h: Fix common/ includes.
11827 * nat/x86-dregs.c: Fix common/ includes.
11828 * nat/ppc-linux.c: Fix common/ includes.
11829 * nat/mips-linux-watch.h: Fix common/ includes.
11830 * nat/mips-linux-watch.c: Fix common/ includes.
11831 * nat/linux-waitpid.c: Fix common/ includes.
11832 * nat/linux-ptrace.h: Fix common/ includes.
11833 * nat/linux-ptrace.c: Fix common/ includes.
11834 * nat/linux-procfs.c: Fix common/ includes.
11835 * nat/linux-personality.c: Fix common/ includes.
11836 * nat/linux-osdata.c: Fix common/ includes.
11837 * nat/linux-namespaces.c: Fix common/ includes.
11838 * nat/linux-btrace.h: Fix common/ includes.
11839 * nat/linux-btrace.c: Fix common/ includes.
11840 * nat/fork-inferior.c: Fix common/ includes.
11841 * nat/amd64-linux-siginfo.c: Fix common/ includes.
11842 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
11843 * nat/aarch64-linux.c: Fix common/ includes.
11844 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
11845 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
11846 * namespace.h: Fix common/ includes.
11847 * mips-linux-tdep.c: Fix common/ includes.
11848 * minsyms.c: Fix common/ includes.
11849 * mi/mi-parse.h: Fix common/ includes.
11850 * mi/mi-main.c: Fix common/ includes.
11851 * mi/mi-cmd-env.c: Fix common/ includes.
11852 * memrange.h: Fix common/ includes.
11853 * memattr.c: Fix common/ includes.
11854 * maint.h: Fix common/ includes.
11855 * maint.c: Fix common/ includes.
11856 * main.c: Fix common/ includes.
11857 * machoread.c: Fix common/ includes.
11858 * location.c: Fix common/ includes.
11859 * linux-thread-db.c: Fix common/ includes.
11860 * linux-nat.c: Fix common/ includes.
11861 * linux-fork.c: Fix common/ includes.
11862 * inline-frame.c: Fix common/ includes.
11863 * infrun.c: Fix common/ includes.
11864 * inflow.c: Fix common/ includes.
11865 * inferior.h: Fix common/ includes.
11866 * inferior.c: Fix common/ includes.
11867 * infcmd.c: Fix common/ includes.
11868 * inf-ptrace.c: Fix common/ includes.
11869 * inf-child.c: Fix common/ includes.
11870 * ia64-linux-nat.c: Fix common/ includes.
11871 * i387-tdep.c: Fix common/ includes.
11872 * i386-tdep.c: Fix common/ includes.
11873 * i386-linux-tdep.c: Fix common/ includes.
11874 * i386-linux-nat.c: Fix common/ includes.
11875 * i386-go32-tdep.c: Fix common/ includes.
11876 * i386-fbsd-tdep.c: Fix common/ includes.
11877 * i386-fbsd-nat.c: Fix common/ includes.
11878 * guile/scm-type.c: Fix common/ includes.
11879 * guile/guile.c: Fix common/ includes.
11880 * go32-nat.c: Fix common/ includes.
11881 * gnu-nat.c: Fix common/ includes.
11882 * gdbthread.h: Fix common/ includes.
11883 * gdbarch-selftests.c: Fix common/ includes.
11884 * gdb_usleep.c: Fix common/ includes.
11885 * gdb_select.h: Fix common/ includes.
11886 * gdb_bfd.c: Fix common/ includes.
11887 * gcore.c: Fix common/ includes.
11888 * fork-child.c: Fix common/ includes.
11889 * findvar.c: Fix common/ includes.
11890 * fbsd-nat.c: Fix common/ includes.
11891 * event-top.c: Fix common/ includes.
11892 * event-loop.c: Fix common/ includes.
11893 * dwarf2read.c: Fix common/ includes.
11894 * dwarf2loc.c: Fix common/ includes.
11895 * dwarf2-frame.c: Fix common/ includes.
11896 * dwarf-index-cache.c: Fix common/ includes.
11897 * dtrace-probe.c: Fix common/ includes.
11898 * disasm-selftests.c: Fix common/ includes.
11899 * defs.h: Fix common/ includes.
11900 * csky-tdep.c: Fix common/ includes.
11901 * cp-valprint.c: Fix common/ includes.
11902 * cp-support.h: Fix common/ includes.
11903 * cp-support.c: Fix common/ includes.
11904 * corelow.c: Fix common/ includes.
11905 * completer.h: Fix common/ includes.
11906 * completer.c: Fix common/ includes.
11907 * compile/compile.c: Fix common/ includes.
11908 * compile/compile-loc2c.c: Fix common/ includes.
11909 * compile/compile-cplus-types.c: Fix common/ includes.
11910 * compile/compile-cplus-symbols.c: Fix common/ includes.
11911 * command.h: Fix common/ includes.
11912 * cli/cli-dump.c: Fix common/ includes.
11913 * cli/cli-cmds.c: Fix common/ includes.
11914 * charset.c: Fix common/ includes.
11915 * build-id.c: Fix common/ includes.
11916 * btrace.h: Fix common/ includes.
11917 * btrace.c: Fix common/ includes.
11918 * breakpoint.h: Fix common/ includes.
11919 * breakpoint.c: Fix common/ includes.
11921 (enum agent_op): Fix common/ includes.
11922 * ax-general.c (struct aop_map): Fix common/ includes.
11923 * ax-gdb.c: Fix common/ includes.
11924 * auxv.c: Fix common/ includes.
11925 * auto-load.c: Fix common/ includes.
11926 * arm-tdep.c: Fix common/ includes.
11927 * arch/riscv.c: Fix common/ includes.
11928 * arch/ppc-linux-common.c: Fix common/ includes.
11929 * arch/i386.c: Fix common/ includes.
11930 * arch/arm.c: Fix common/ includes.
11931 * arch/arm-linux.c: Fix common/ includes.
11932 * arch/arm-get-next-pcs.c: Fix common/ includes.
11933 * arch/amd64.c: Fix common/ includes.
11934 * arch/aarch64.c: Fix common/ includes.
11935 * arch/aarch64-insn.c: Fix common/ includes.
11936 * arch-utils.c: Fix common/ includes.
11937 * amd64-windows-tdep.c: Fix common/ includes.
11938 * amd64-tdep.c: Fix common/ includes.
11939 * amd64-sol2-tdep.c: Fix common/ includes.
11940 * amd64-obsd-tdep.c: Fix common/ includes.
11941 * amd64-nbsd-tdep.c: Fix common/ includes.
11942 * amd64-linux-tdep.c: Fix common/ includes.
11943 * amd64-linux-nat.c: Fix common/ includes.
11944 * amd64-fbsd-tdep.c: Fix common/ includes.
11945 * amd64-fbsd-nat.c: Fix common/ includes.
11946 * amd64-dicos-tdep.c: Fix common/ includes.
11947 * amd64-darwin-tdep.c: Fix common/ includes.
11948 * agent.c: Fix common/ includes.
11949 * ada-lang.h: Fix common/ includes.
11950 * ada-lang.c: Fix common/ includes.
11951 * aarch64-tdep.c: Fix common/ includes.
11953 2019-01-25 Tom Tromey <tom@tromey.com>
11955 * common/create-version.sh: Use common/version.h.
11957 2019-01-24 Pedro Alves <palves@redhat.com>
11959 * infrun.c (signal_stop, signal_print, signal_program)
11960 (signal_catch, signal_pass): Now arrays instead of pointers.
11961 (update_signals_program_target, do_target_resume)
11962 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
11963 * linux-nat.c (linux_nat_target::pass_signals)
11964 (linux_nat_target::create_inferior, linux_nat_target::attach):
11966 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
11967 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
11968 * procfs.c (procfs_target::pass_signals): Adjust.
11969 * record-full.c (record_full_target::resume): Adjust.
11970 * remote.c (remote_target::pass_signals)
11971 (remote_target::program_signals): Adjust.
11972 * target-debug.h (target_debug_print_signals): Now takes a
11973 gdb::array_view as parameter. Adjust.
11974 * target.h (target_ops) <pass_signals, program_signals>: Replace
11975 pointer and length parameters with gdb::array_view.
11976 (target_pass_signals, target_program_signals): Likewise.
11977 * target-delegates.c: Regenerate.
11979 2019-01-24 Pedro Alves <palves@redhat.com>
11981 * common/forward-scope-exit.h
11982 (forward_scope_exit::forward_scope_exit): Pass arguments to
11983 m_bind_function directly, instead of creating a std::bind and
11986 2019-01-24 Alan Hayward <alan.hayward@arm.com>
11988 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
11989 for static members.
11990 (pass_in_v_vfp_candidate): Likewise.
11992 2019-01-23 Tom Tromey <tom@tromey.com>
11993 Pedro Alves <palves@redhat.com>
11995 * regcache.c (class regcache_invalidator): Remove.
11996 (regcache::raw_write): Use make_scope_exit.
11998 2019-01-23 Tom Tromey <tom@tromey.com>
12000 * ui-out.h (class ui_out_emit_type): Update comment.
12002 2019-01-23 Tom Tromey <tom@tromey.com>
12004 * infrun.c (fetch_inferior_event): Update comment.
12006 2019-01-23 Tom Tromey <tom@tromey.com>
12007 Pedro Alves <palves@redhat.com>
12009 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
12011 (fetch_inferior_event): Use SCOPE_EXIT.
12014 2019-01-23 Tom Tromey <tom@tromey.com>
12015 Pedro Alves <palves@redhat.com>
12017 * infrun.c (disable_thread_events): Delete.
12018 (stop_all_threads): Use SCOPE_EXIT.
12020 2019-01-23 Tom Tromey <tom@tromey.com>
12021 Pedro Alves <palves@redhat.com>
12023 * symfile.c: Include forward-scope-exit.h.
12024 (clear_symtab_users_cleanup): Replace forward declaration with
12025 a FORWARD_SCOPE_EXIT.
12026 (syms_from_objfile_1): Use the forward_scope_exit and
12027 gdb::optional instead of cleanup_function.
12028 (reread_symbols): Use the forward_scope_exit instead of
12030 (clear_symtab_users_cleanup): Remove function.
12032 2019-01-23 Tom Tromey <tom@tromey.com>
12033 Pedro Alves <palves@redhat.com>
12035 * linux-nat.c: Include scope-exit.h.
12036 (cleanup_target_stop): Remove.
12037 (linux_nat_target::static_tracepoint_markers_by_strid): Use
12040 2019-01-23 Tom Tromey <tom@tromey.com>
12041 Pedro Alves <palves@redhat.com>
12043 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
12044 (call_function_by_hand_dummy): Use SCOPE_EXIT.
12046 2019-01-23 Tom Tromey <tom@tromey.com>
12047 Andrew Burgess <andrew.burgess@embecosm.com>
12048 Pedro Alves <palves@redhat.com>
12050 * infrun.c (fetch_inferior_event): Use scope_exit.
12051 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
12052 * top.c (execute_command): Use scope_exit.
12053 * breakpoint.c (bpstat_do_actions): Use scope_exit.
12054 * utils.c (do_bpstat_clear_actions_cleanup)
12055 (make_bpstat_clear_actions_cleanup): Remove.
12057 2019-01-23 Tom Tromey <tom@tromey.com>
12058 Pedro Alves <palves@redhat.com>
12060 * infrun.c: Include "common/scope-exit.h"
12061 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
12062 (wait_for_inferior): Use SCOPE_EXIT.
12063 (fetch_inferior_event): Use scope_exit.
12065 2019-01-23 Tom Tromey <tom@tromey.com>
12066 Pedro Alves <palves@redhat.com>
12068 * breakpoint.c (create_breakpoint): Remove cleanup.
12070 2019-01-23 Tom Tromey <tom@tromey.com>
12071 Andrew Burgess <andrew.burgess@embecosm.com>
12072 Pedro Alves <palves@redhat.com>
12074 2019-01-23 Pedro Alves <palves@redhat.com>
12076 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
12078 2019-01-23 Pedro Alves <palves@redhat.com>
12079 Andrew Burgess <andrew.burgess@embecosm.com>
12081 * gdbthread.h: Include "common/forward-scope-exit.h".
12082 (scoped_finish_thread_state): Redefine custom class in terms of
12083 forward_scope_exit.
12085 2019-01-23 Pedro Alves <palves@redhat.com>
12086 Andrew Burgess <andrew.burgess@embecosm.com>
12088 * common/forward-scope-exit.h: New file.
12090 2019-01-23 Pedro Alves <palves@redhat.com>
12091 Andrew Burgess <andrew.burgess@embecosm.com>
12092 Tom Tromey <tom@tromey.com>
12094 * common/scope-exit.h: New file.
12096 2019-01-23 Pedro Alves <palves@redhat.com>
12098 * common/preprocessor.h (ESC): Rename to ...
12099 (ESC_PARENS): ... this.
12100 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
12101 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
12103 2019-01-23 Tom Tromey <tom@tromey.com>
12105 * language.h (class scoped_switch_to_sym_language_if_auto):
12106 Initialize m_lang in both cases.
12108 2019-01-23 Alan Hayward <alan.hayward@arm.com>
12110 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
12113 2019-01-22 Tom Tromey <tom@tromey.com>
12115 * corelow.c: Do not include sys/file.h.
12117 2019-01-22 Tom Tromey <tom@tromey.com>
12119 * tui/tui-wingeneral.h: Include gdb_curses.h.
12121 2019-01-22 Tom Tromey <tom@tromey.com>
12123 * source-cache.h (class source_cache) <get_source_lines,
12124 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
12126 2019-01-22 Tom Tromey <tom@tromey.com>
12128 * remote-fileio.h (struct remote_target): Declare.
12130 2019-01-22 Tom Tromey <tom@tromey.com>
12132 * python/py-arch.c: Do not include py-ref.h.
12133 * python/py-bpevent.c: Do not include py-ref.h.
12134 * python/py-cmd.c: Do not include py-ref.h.
12135 * python/py-continueevent.c: Do not include py-ref.h.
12136 * python/py-event.h: Do not include py-ref.h.
12137 * python/py-evtregistry.c: Do not include py-ref.h.
12138 * python/py-finishbreakpoint.c: Do not include py-ref.h.
12139 * python/py-frame.c: Do not include py-ref.h.
12140 * python/py-framefilter.c: Do not include py-ref.h.
12141 * python/py-function.c: Do not include py-ref.h.
12142 * python/py-infevents.c: Do not include py-ref.h.
12143 * python/py-linetable.c: Do not include py-ref.h.
12144 * python/py-objfile.c: Do not include py-ref.h.
12145 * python/py-param.c: Do not include py-ref.h.
12146 * python/py-prettyprint.c: Do not include py-ref.h.
12147 * python/py-progspace.c: Do not include py-ref.h.
12148 * python/py-symbol.c: Do not include py-ref.h.
12149 * python/py-symtab.c: Do not include py-ref.h.
12150 * python/py-type.c: Do not include py-ref.h.
12151 * python/py-unwind.c: Do not include py-ref.h.
12152 * python/py-utils.c: Do not include py-ref.h.
12153 * python/py-value.c: Do not include py-ref.h.
12154 * python/py-varobj.c: Do not include py-ref.h.
12155 * python/py-xmethods.c: Do not include py-ref.h.
12156 * python/python.c: Do not include py-ref.h.
12157 * varobj.c: Do not include py-ref.h.
12159 2019-01-22 Tom Tromey <tom@tromey.com>
12161 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
12162 keyword for bcache.
12164 2019-01-22 Tom Tromey <tom@tromey.com>
12166 * compile/compile-cplus-types.c: Remove a comment by #include.
12168 2019-01-22 Tom Tromey <tom@tromey.com>
12170 * compile/gcc-c-plugin.h: Include compile-internal.h.
12172 2019-01-22 Tom Tromey <tom@tromey.com>
12174 * stabsread.c (EXTERN): Do not define.
12175 (symnum, next_symbol_text_func, processing_gcc_compilation)
12176 (within_function, global_sym_chain, global_stabs)
12177 (previous_stab_code, this_object_header_files)
12178 (n_this_object_header_files)
12179 (n_allocated_this_object_header_files): Define.
12180 * stabsread.h (EXTERN): Never define. Use "extern".
12182 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12184 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
12187 2019-01-21 Tom Tromey <tom@tromey.com>
12189 * ui-out.c: Fix includes.
12190 * tui/tui-source.c: Fix includes.
12191 * target.c: Fix includes.
12192 * remote.c: Fix includes.
12193 * regcache.c: Fix includes.
12194 * python/py-block.c: Fix includes.
12195 * printcmd.c: Fix includes.
12196 * or1k-tdep.c: Fix includes.
12197 * mi/mi-main.c: Fix includes.
12198 * m32r-tdep.c: Fix includes.
12199 * csky-tdep.c: Fix includes.
12200 * compile/compile-cplus-types.c: Fix includes.
12201 * cli/cli-interp.c: Fix includes.
12203 2019-01-21 Alan Hayward <alan.hayward@arm.com>
12205 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
12208 2019-01-16 Tom Tromey <tom@tromey.com>
12210 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
12212 (struct objfile) <msymbols_range>: Move from top level.
12213 <msymbols>: New method.
12214 (class objfile_msymbols): Remove.
12215 * symtab.c (default_collect_symbol_completion_matches_break_on):
12217 * symmisc.c (dump_msymbols): Update.
12218 * stabsread.c (scan_file_globals): Update.
12219 * objc-lang.c (info_selectors_command, info_classes_command)
12220 (find_methods): Update.
12221 * minsyms.c (find_solib_trampoline_target): Update.
12222 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
12223 * coffread.c (coff_symfile_read): Update.
12224 * ada-lang.c (ada_lookup_simple_minsym)
12225 (ada_collect_symbol_completion_matches): Update.
12227 2019-01-16 Tom Tromey <tom@tromey.com>
12229 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
12230 type. Remove no-argument constructor.
12231 <iterator::operator++>: Simplify.
12233 <end>: Use minimal_symbol_count.
12235 2019-01-16 Tom Tromey <tom@tromey.com>
12237 * objfiles.h (struct objfile) <psymtabs>: New method.
12238 (class objfile_psymtabs): Remove.
12239 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
12241 <range>: New method.
12242 (require_partial_symbols): Change return type.
12243 * psymtab.c (require_partial_symbols)
12244 (psym_expand_symtabs_matching): Update.
12245 * mdebugread.c (parse_partial_symbols): Update.
12246 * dbxread.c (dbx_end_psymtab): Update.
12248 2019-01-15 Tom Tromey <tom@tromey.com>
12250 * symtab.c (lookup_objfile_from_block)
12251 (lookup_symbol_in_objfile_symtabs)
12252 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
12253 (find_line_symtab, info_sources_command)
12254 (default_collect_symbol_completion_matches_break_on)
12255 (make_source_files_completion_list): Update.
12256 * symmisc.c (print_objfile_statistics, dump_objfile)
12257 (maintenance_print_symbols, maintenance_info_symtabs)
12258 (maintenance_check_symtabs, maintenance_info_line_tables):
12260 * source.c (select_source_symtab)
12261 (forget_cached_source_info_for_objfile): Update.
12262 * objfiles.h (class objfile_compunits): Remove.
12263 (struct objfile) <compunits_range>: New typedef.
12264 (compunits): New method.
12265 * objfiles.c (objfile_relocate1): Update.
12266 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
12267 * maint.c (count_symtabs_and_blocks): Update.
12268 * linespec.c (iterate_over_all_matching_symtabs): Update.
12269 * cp-support.c (add_symbol_overload_list_qualified): Update.
12270 * coffread.c (coff_symtab_read): Update.
12271 * ada-lang.c (add_nonlocal_symbols)
12272 (ada_collect_symbol_completion_matches)
12273 (ada_add_global_exceptions): Update.
12275 2019-01-15 Tom Tromey <tom@tromey.com>
12277 * progspace.h (program_space) <objfiles_safe_range>: New
12279 <objfiles_safe>: New method.
12280 * objfiles.h (class all_objfiles_safe): Remove.
12281 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
12282 * jit.c (jit_inferior_exit_hook): Update.
12284 2019-01-17 Tom Tromey <tom@tromey.com>
12286 * progspace.h (program_space) <objfiles_range>: New typedef.
12287 <objfiles>: New method.
12288 <objfiles_head>: Rename from objfiles.
12289 (object_files): Update.
12290 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
12291 * guile/scm-pretty-print.c
12292 (ppscm_find_pretty_printer_from_objfiles): Update.
12293 * guile/scm-objfile.c (gdbscm_objfiles): Update.
12294 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
12296 * python/py-progspace.c (pspy_get_objfiles): Update.
12297 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
12299 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
12300 (objfpy_lookup_objfile_by_build_id): Update.
12301 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
12302 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
12304 * symtab.c (iterate_over_symtabs, matching_obj_sections)
12305 (expand_symtab_containing_pc, lookup_objfile_from_block)
12306 (lookup_static_symbol, basic_lookup_transparent_type)
12307 (find_pc_sect_compunit_symtab, find_symbol_at_address)
12308 (find_line_symtab, info_sources_command)
12309 (default_collect_symbol_completion_matches_break_on)
12310 (make_source_files_completion_list, find_main_name): Update.
12311 * symmisc.c (print_symbol_bcache_statistics)
12312 (print_objfile_statistics, maintenance_print_symbols)
12313 (maintenance_print_msymbols, maintenance_print_objfiles)
12314 (maintenance_info_symtabs, maintenance_check_symtabs)
12315 (maintenance_expand_symtabs, maintenance_info_line_tables):
12317 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
12318 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
12319 (map_overlay_command, unmap_overlay_command)
12320 (simple_overlay_update, expand_symtabs_matching)
12321 (map_symbol_filenames): Update.
12322 * symfile-debug.c (set_debug_symfile): Update.
12323 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
12325 * source.c (select_source_symtab, forget_cached_source_info):
12327 * solib.c (solib_read_symbols): Update.
12328 * solib-spu.c (append_ocl_sos): Update.
12329 * psymtab.c (maintenance_print_psymbols)
12330 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
12331 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
12332 * printcmd.c (info_symbol_command): Update.
12333 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
12335 * objfiles.h (class all_objfiles): Remove.
12336 * objfiles.c (have_partial_symbols, have_full_symbols)
12337 (have_minimal_symbols, qsort_cmp, update_section_map)
12338 (shared_objfile_contains_address_p)
12339 (default_iterate_over_objfiles_in_search_order): Update.
12340 * objc-lang.c (info_selectors_command, info_classes_command)
12341 (find_methods): Update.
12342 * minsyms.c (find_solib_trampoline_target): Update.
12343 * maint.c (maintenance_info_sections)
12344 (maintenance_translate_address, count_symtabs_and_blocks):
12346 * main.c (captured_main_1): Update.
12347 * linux-thread-db.c (try_thread_db_load_from_pdir)
12348 (has_libpthread): Update.
12349 * linespec.c (iterate_over_all_matching_symtabs)
12350 (search_minsyms_for_name): Update.
12351 * jit.c (jit_find_objf_with_entry_addr): Update.
12352 * hppa-tdep.c (find_unwind_entry)
12353 (hppa_lookup_stub_minimal_symbol): Update.
12354 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
12356 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
12357 (elf_gnu_ifunc_resolve_by_got): Update.
12358 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
12359 * dwarf-index-write.c (save_gdb_index_command): Update.
12360 * cp-support.c (add_symbol_overload_list_qualified): Update.
12361 * breakpoint.c (create_overlay_event_breakpoint)
12362 (create_longjmp_master_breakpoint)
12363 (create_std_terminate_master_breakpoint)
12364 (create_exception_master_breakpoint): Update.
12365 * blockframe.c (find_pc_partial_function): Update.
12366 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
12367 (ada_collect_symbol_completion_matches)
12368 (ada_add_global_exceptions): Update.
12370 2019-01-17 Tom Tromey <tom@tromey.com>
12372 * solib-target.c (lm_info_target_p): Remove typedef. Don't
12374 (solib_target_parse_libraries): Change return type.
12375 (library_list_start_segment, library_list_start_section)
12376 (library_list_end_library, library_list_start_library); Update.
12377 (solib_target_free_library_list): Remove.
12378 (solib_target_parse_libraries): Remove cleanup. Change return
12380 (solib_target_current_sos): Update.
12382 2019-01-17 Tom Tromey <tromey@bapiya>
12384 * valprint.c: Replace "the the" with "the".
12385 * symtab.c: Replace "the the" with "the".
12386 * solib.c: Replace "the the" with "the".
12387 * solib-dsbt.c: Replace "the the" with "the".
12388 * linespec.c: Replace "the the" with "the".
12389 * dwarf2loc.h: Replace "the the" with "the".
12390 * amd64-windows-tdep.c: Replace "the the" with "the".
12391 * aarch64-tdep.c: Replace "the the" with "the".
12393 2019-01-16 Keith Seitz <keiths@redhat.com>
12396 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
12397 <builder>: Rename to ..
12398 <m_builder>: ... this and make private.
12399 (dwarf2_cu::get_builder): New method. Change all users of
12400 `builder' to use this method.
12401 (dwarf2_start_symtab): Move to ...
12402 (dwarf2_cu::start_symtab): ... here. Update all callers
12403 (setup_type_unit_groups): Move to ...
12404 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
12406 (dwarf2_cu::reset_builder): New method.
12407 (process_full_compunit, process_full_type_unit): Use
12408 dwarf2_cu::reset_builder.
12409 (follow_die_offset): Record the ancestor CU if it is different
12410 from the followed DIE's CU.
12411 (follow_die_sig_1): Likewise.
12413 2019-01-15 Tom Tromey <tom@tromey.com>
12415 * remote.c (class remote_state) <buf>: Now a char_vector.
12416 <buf_size>: Remove.
12417 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
12419 (remote_target::getpkt_or_notif_sane_1)
12420 (remote_target::getpkt_sane)
12421 (remote_target::getpkt_or_notif_sane): Likewise.
12422 (class remote_target) <putpkt>: New overload.
12423 (remote_target::read_frame): Change type of "buf_p". Remove
12424 sizeof_p parameter.
12425 (packet_ok): New overload.
12426 (packet_check_result): New overload.
12429 2019-01-14 Tom Tromey <tom@tromey.com>
12431 * remote-notif.c (handle_notification, remote_notif_ack)
12432 (remote_notif_parse): Make "buf" const.
12433 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
12435 (remote_notif_parse, remote_notif_ack, handle_notification):
12437 * remote.c (remote_notif_stop_parse): Make "buf" const.
12438 (remote_target::remote_parse_stop_reply): Make "buf" const.
12439 (remote_notif_stop_ack): Make "buf" const.
12441 2019-01-14 Tom Tromey <tom@tromey.com>
12443 * remote.c (remote_console_output): Make parameter const.
12445 2019-01-14 Tom Tromey <tom@tromey.com>
12447 * target-debug.h (target_debug_print_signals): Constify.
12448 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
12449 * procfs.c (procfs_target::pass_signals): Update.
12450 * linux-nat.c (linux_nat_target::pass_signals): Update.
12451 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
12452 * target-delegates.c: Rebuild.
12453 * remote.c (remote_target::program_signals): Update.
12454 (remote_target::pass_signals): Update.
12455 * target.c (target_pass_signals): Constify argument.
12456 (target_program_signals): Likewise.
12457 * target.h (struct target_ops) <pass_signals, program_signals>:
12459 (target_pass_signals, target_program_signals): Constify argument.
12461 2019-01-14 Tom Tromey <tom@tromey.com>
12464 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
12466 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12468 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
12470 * rs6000-tdep.c: Include reggroups.h.
12471 (IS_V_ALIAS_PSEUDOREG): Define.
12472 (rs6000_register_name): Return names for the "vX" aliases.
12473 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
12474 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
12475 aliases. Call default_register_reggroup_p for all other
12477 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
12479 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
12480 Handle "vX" aliases.
12481 (v_alias_pseudo_register_collect): New function.
12482 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
12483 (rs6000_gdbarch_init): Initialize "vX" aliases as
12484 pseudo-registers. Restore registration of
12485 rs6000_pseudo_register_reggroup_p with
12486 set_tdesc_pseudo_register_reggroup_p.
12488 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
12490 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
12491 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
12492 set_gdbarch_num_pseudo_regs.
12494 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12496 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
12497 Remove arg prefixname, add do_set and do_show.
12498 Add member functions set_list and show_list.
12499 * cli/cli-style.c (class cli_style_option): Update accordingly.
12500 (style_set_list): Move to file scope.
12501 (style_show_list): Likewise.
12502 (set_style): Call help_list.
12503 (show_style): Call cmd_show_list.
12504 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
12505 Update to use the new macro.
12507 2019-10-12 Joel Brobecker <brobecker@adacore.com>
12509 * ada-lang.c (_initialize_ada_language): Expand the help text
12510 for the "catch exception" command.
12512 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12514 * symtab.c (matching_obj_sections): Initialize obj,
12515 declare it closer to its usage.
12517 2019-01-10 Tom Tromey <tom@tromey.com>
12519 * thread-iter.h (inf_threads_iterator): Use next_iterator.
12520 (basic_inf_threads_range): Remove.
12521 (inf_threads_range, inf_non_exited_threads_range)
12522 (safe_inf_threads_range): Use next_adapter.
12524 2019-01-10 Keith Seitz <keiths@redhat.com>
12528 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
12529 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
12531 2019-01-10 Keith Seitz <keiths@redhat.com>
12535 * dictionary.c (pending_to_vector): Remove.
12536 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12537 Remove _1 suffix, replacing functions of the same name. Update
12539 (dict_create_hashed, dict_create_hashed_expandable)
12540 (dict_create_linear, dict_create_linear_expandable, dict_free)
12541 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
12542 Make functions static.
12544 2019-01-10 Keith Seitz <keiths@redhat.com>
12548 * dictionary.h (struct dictionary): Replace declaration with
12550 (dict_create_hashed, dict_create_hashed_expandable)
12551 (dict_create_linear, dict_create_linear_expandable)
12552 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
12553 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
12554 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
12555 taking multidictionary argument.
12556 [ALL_DICT_SYMBOLS]: Update for multidictionary.
12557 * block.h (struct block) <dict>: Change to multidictionary
12558 and rename `multidict'.
12559 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
12560 symmisc.c: Update all dictionary references to multidictionary.
12562 2019-01-10 Keith Seitz <keiths@redhat.com>
12566 * dictionary.c: Include unordered_map.
12567 (pending_to_vector): New function.
12568 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12569 Rewrite the non-"_1" functions to take vector instead
12571 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
12572 "new" _1 versions of the same name.
12573 (multidictionary): Define.
12574 (std::hash<enum language): New definition.
12575 (collate_pending_symbols_by_language, mdict_create_hashed)
12576 (mdict_create_hashed_expandable, mdict_create_linear)
12577 (mdict_create_linear_expandable, mdict_free)
12578 (find_language_dictionary, create_new_language_dictionary)
12579 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
12580 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
12581 (mdict_size, mdict_empty): New functions.
12582 * dictionary.h (mdict_iterator): Define.
12584 2019-01-10 Pedro Alves <palves@redhat.com>
12586 * breakpoint.c (read_uploaded_action)
12587 (create_tracepoint_from_upload): Adjust to use
12588 gdb::unique_xmalloc_ptr.
12589 * ctf.c (ctf_write_uploaded_tp):
12590 (SET_ARRAY_FIELD): Use emplace_back.
12591 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
12592 * tracefile-tfile.c (tfile_write_uploaded_tp):
12593 * tracepoint.c (parse_tracepoint_definition): Adjust to use
12594 gdb::unique_xmalloc_ptr.
12595 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
12596 at_string, cond_string, cmd_strings>: Replace char pointers
12597 with gdb::unique_xmalloc_ptr.
12599 2019-01-10 Pedro Alves <palves@redhat.com>
12601 * solib-target.c (library_list_start_library): Don't xstrdup name.
12603 2019-01-10 Pedro Alves <palves@redhat.com>
12605 * mdebugread.c (parse_partial_symbols): Use
12606 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
12608 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
12610 * linux-fork.c (scoped_switch_fork_info)
12611 <~scoped_switch_fork_info>: Fix incorrect variable name.
12613 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
12615 * linux-fork.c (scoped_switch_fork_info)
12616 <scoped_switch_fork_info>: Make explicit.
12617 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
12619 2019-01-10 Tom Tromey <tom@tromey.com>
12621 * objfiles.h (objfile::reset_psymtabs): Update.
12622 * objfiles.c (objfile::objfile): Update.
12623 * psymtab.h (psymtab_storage::obstack): Update.
12624 (psymtab_storage::m_obstack): Use gdb::optional.
12625 (class psymtab_storage): Update comment. Remove objfile
12627 * psymtab.c (psymtab_storage::psymtab_storage): Update.
12629 2019-01-10 Tom Tromey <tom@tromey.com>
12631 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
12632 <free_psymtabs>: Now private.
12633 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
12634 (allocate_psymtab): Use new method.
12636 2019-01-10 Tom Tromey <tom@tromey.com>
12638 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
12639 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
12640 * mdebugread.c (parse_partial_symbols): Use
12641 allocate_dependencies.
12642 * dwarf2read.c (dwarf2_create_include_psymtab): Use
12643 allocate_dependencies.
12644 (process_psymtab_comp_unit_reader)
12645 (build_type_psymtab_dependencies): Likewise.
12646 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
12648 2019-01-10 Tom Tromey <tom@tromey.com>
12650 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
12651 PSYMBOL_SET_LANGUAGE.
12652 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
12654 2019-01-10 Tom Tromey <tom@tromey.com>
12656 * psymtab.h (psymtab_storage::obstack): New method.
12657 <m_obstack>: Rename from obstack; now private.
12658 * psymtab.c (psymtab_storage): Update.
12659 * dwarf2read.c (create_addrmap_from_index)
12660 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
12663 2019-01-10 Tom Tromey <tom@tromey.com>
12665 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
12666 * objfiles.h (objfile::reset_psymtabs): New method.
12668 2019-01-10 Tom Tromey <tom@tromey.com>
12670 * symmisc.c (print_symbol_bcache_statistics): Update.
12671 (print_objfile_statistics): Update.
12672 * symfile.c (reread_symbols): Update.
12673 * psymtab.h (class psymtab_storage): New.
12674 * psymtab.c (psymtab_storage): New constructor.
12675 (~psymtab_storage): New destructor.
12676 (require_partial_symbols): Update.
12677 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
12678 (find_pc_sect_psymtab, find_pc_sect_psymbol)
12679 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
12680 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
12681 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
12682 (start_psymtab_common, end_psymtab_common)
12683 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
12684 (allocate_psymtab): Update.
12685 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
12687 (dump_psymtab_addrmap, maintenance_print_psymbols)
12688 (maintenance_check_psymtabs): Update.
12689 (class objfile_psymtabs): Move to objfiles.h.
12690 * psympriv.h (discard_psymtab): Now inline.
12691 (psymtab_discarder::psymtab_discarder): Update.
12692 (psymtab_discarder::~psymtab_discarder): Update.
12693 (ALL_OBJFILE_PSYMTABS): Rewrite.
12694 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
12695 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
12697 <partial_symtabs>: New field.
12698 (class objfile_psymtabs): Move from psymtab.h. Update.
12699 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
12701 (objfile::~objfile): Don't destroy psymbol_cache.
12702 * mdebugread.c (parse_partial_symbols): Update.
12703 * dwarf2read.c (create_addrmap_from_index)
12704 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12705 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
12706 (add_partial_subprogram, dwarf2_ranges_read): Update.
12707 * dwarf-index-write.c (write_address_map)
12708 (write_one_signatured_type, recursively_write_psymbols)
12709 (class debug_names, class debug_names, write_psymtabs_to_index):
12712 2019-01-10 Tom Tromey <tom@tromey.com>
12714 * symtab.h (SYMBOL_SET_NAMES): Update.
12715 (symbol_set_names): Update.
12716 (MSYMBOL_SET_NAMES): Update.
12717 * symtab.c (symbol_set_names): Change argument to be an
12718 objfile_per_bfd_storage.
12719 * psymtab.c (add_psymbol_to_bcache): Update.
12720 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
12722 2019-01-10 Tom Tromey <tom@tromey.com>
12724 * symtab.c (create_demangled_names_hash): Change argument to be an
12725 objfile_per_bfd_storage.
12726 (symbol_set_names): Update.
12728 2019-01-10 Tom Tromey <tom@tromey.com>
12730 * xcoffread.c (xcoff_initial_scan): Unconditionally call
12732 * psymtab.c (init_psymbol_list): Do nothing if already called.
12733 * psympriv.h (init_psymbol_list): Add comment.
12734 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
12736 * dbxread.c (dbx_symfile_read): Unconditionally call
12739 2019-01-10 Tom Tromey <tom@tromey.com>
12741 * xcoffread.c (scan_xcoff_symtab): Update.
12742 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
12744 * mdebugread.c (parse_partial_symbols)
12745 (handle_psymbol_enumerators): Update.
12746 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
12747 * dbxread.c (read_dbx_symtab): Update.
12748 * psympriv.h (psymbol_placement): New enum.
12749 (add_psymbol_to_list): Update.
12751 2019-01-10 Tom Tromey <tom@tromey.com>
12753 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
12754 static_psymbols parameters.
12755 (scan_xcoff_symtab): Update.
12756 * psymtab.c (start_psymtab_common): Remove global_psymbols and
12757 static_psymbols parameters.
12758 * psympriv.h (start_psymtab_common): Update.
12759 * mdebugread.c (parse_partial_symbols): Update.
12760 * dwarf2read.c (create_partial_symtab): Update.
12761 * dbxread.c (read_dbx_symtab): Update.
12762 (start_psymtab): Remove global_psymbols and static_psymbols
12765 2019-01-10 Tom Tromey <tom@tromey.com>
12767 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
12768 * psymtab.c (allocate_psymtab): Add comment.
12769 * psympriv.h (allocate_psymtab): Add comment.
12770 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
12772 * dbxread.c (dbx_end_psymtab): Remove some initializations.
12774 2019-01-10 Tom Tromey <tom@tromey.com>
12776 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12778 * mipsread.c: Include mdebugread.h.
12779 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12781 * elfread.c: Include mdebugread.h.
12783 2019-01-09 Tom Tromey <tom@tromey.com>
12785 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
12786 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
12787 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
12788 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
12789 (psym_lookup_symbol, psym_find_last_source_symtab)
12790 (psym_forget_cached_source_info, psym_print_stats)
12791 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
12792 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
12793 (psym_map_matching_symbols, psym_expand_symtabs_matching)
12794 (psym_find_compunit_symtab_by_address)
12795 (maintenance_print_psymbols, maintenance_info_psymtabs)
12796 (maintenance_check_psymtabs): Use ranged for.
12797 * psymtab.h (class objfile_psymtabs): New.
12798 (require_partial_symbols): Return objfile_psymtabs.
12799 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
12801 2019-01-09 Tom Tromey <tom@tromey.com>
12803 * symfile.c (overlay_invalidate_all, find_pc_overlay)
12804 (find_pc_mapped_section, list_overlays_command)
12805 (map_overlay_command, unmap_overlay_command)
12806 (simple_overlay_update): Use all_objfiles.
12807 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
12808 * printcmd.c (info_symbol_command): Use all_objfiles.
12809 * objfiles.h (ALL_OBJSECTIONS): Remove.
12810 * maint.c (maintenance_translate_address): Use all_objfiles.
12811 * gcore.c (gcore_create_callback): Use all_objfiles.
12812 (objfile_find_memory_regions): Likewise.
12814 2019-01-09 Tom Tromey <tom@tromey.com>
12816 * symtab.c (find_line_symtab, info_sources_command)
12817 (make_source_files_completion_list): Use objfile_compunits.
12818 * source.c (select_source_symtab): Use objfile_compunits.
12819 * objfiles.h (struct objfile): Update comment.
12820 (ALL_OBJFILES): Remove.
12821 (ALL_FILETABS): Remove.
12822 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
12825 2019-01-09 Tom Tromey <tom@tromey.com>
12827 * symmisc.c (print_objfile_statistics, dump_objfile)
12828 (maintenance_print_symbols): Use compunit_filetabs.
12829 * source.c (forget_cached_source_info_for_objfile): Use
12831 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
12832 (ALL_FILETABS): Use compunit_filetabs.
12833 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
12834 * coffread.c (coff_symtab_read): Use compunit_filetabs.
12836 2019-01-09 Tom Tromey <tom@tromey.com>
12838 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
12839 (compunit_filetabs): New.
12840 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
12842 (info_sources_command, make_source_files_completion_list): Remove
12844 * symmisc.c (print_objfile_statistics, dump_objfile)
12845 (maintenance_print_symbols): Remove declaration.
12846 (maintenance_info_symtabs): Use compunit_filetabs.
12847 (maintenance_info_line_tables): Likewise.
12848 * source.c (select_source_symtab): Change local variable name.
12849 (forget_cached_source_info_for_objfile): Remove declaration.
12850 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
12851 * objfiles.c (objfile_relocate1): Remove declaration.
12852 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
12854 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
12855 * coffread.c (coff_symtab_read): Remove declaration.
12856 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
12859 2019-01-09 Tom Tromey <tom@tromey.com>
12861 * symtab.c (lookup_objfile_from_block)
12862 (find_pc_sect_compunit_symtab, search_symbols)
12863 (default_collect_symbol_completion_matches_break_on): Use
12865 * objfiles.h (ALL_COMPUNITS): Remove.
12866 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
12867 * cp-support.c (add_symbol_overload_list_qualified): Use
12869 * ada-lang.c (ada_collect_symbol_completion_matches)
12870 (ada_add_global_exceptions): Use objfile_compunits.
12872 2019-01-09 Tom Tromey <tom@tromey.com>
12874 * source.c (select_source_symtab)
12875 (forget_cached_source_info_for_objfile): Remove declaration.
12876 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
12878 * maint.c (count_symtabs_and_blocks): Remove declaration.
12879 * cp-support.c (add_symbol_overload_list_qualified): Remove
12881 * coffread.c (coff_symtab_read): Remove declaration.
12882 * symtab.c (lookup_symbol_in_objfile_symtabs)
12883 (basic_lookup_transparent_type_1): Use objfile_compunits.
12884 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
12885 (info_sources_command, search_symbols)
12886 (default_collect_symbol_completion_matches_break_on)
12887 (make_source_files_completion_list): Remove declaration.
12888 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
12889 (ada_collect_symbol_completion_matches)
12890 (ada_add_global_exceptions): Remove declaration.
12891 * linespec.c (iterate_over_all_matching_symtabs): Use
12893 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
12894 (class objfile_compunits): New.
12895 (ALL_COMPUNITS): Use objfile_compunits.
12896 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
12897 (maintenance_check_symtabs, maintenance_info_line_tables): Use
12899 * objfiles.c (objfile_relocate1): Use objfile_compunits.
12901 2019-01-09 Tom Tromey <tom@tromey.com>
12903 * symtab.c (search_symbols)
12904 (default_collect_symbol_completion_matches_break_on): Use
12906 * ada-lang.c (ada_lookup_simple_minsym)
12907 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
12908 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
12909 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
12911 * coffread.c (coff_symfile_read): Use objfile_msymbols.
12912 * symmisc.c (dump_msymbols): Use objfile_msymbols.
12913 * objc-lang.c (find_methods): Use objfile_msymbols.
12914 (info_selectors_command, info_classes_command): Likewise.
12915 * stabsread.c (scan_file_globals): Use objfile_msymbols.
12916 * objfiles.h (class objfile_msymbols): New.
12917 (ALL_OBJFILE_MSYMBOLS): Remove.
12918 (ALL_MSYMBOLS): Remove.
12920 2019-01-09 Tom Tromey <tom@tromey.com>
12922 * common/next-iterator.h (next_adapter): Add Iterator template
12924 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
12925 (class all_objfiles_safe): New.
12926 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
12927 * objfiles.c (put_objfile_before): Update comment.
12928 (add_separate_debug_objfile): Likewise.
12929 (free_all_objfiles): Use all_objfiles_safe.
12930 (objfile_purge_solibs): Likewise.
12932 2019-01-09 Tom Tromey <tom@tromey.com>
12934 * symtab.c (iterate_over_symtabs, matching_obj_sections)
12935 (expand_symtab_containing_pc, lookup_static_symbol)
12936 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
12937 (find_symbol_at_address, find_line_symtab, find_main_name): Use
12939 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
12940 * breakpoint.c (create_overlay_event_breakpoint)
12941 (create_longjmp_master_breakpoint)
12942 (create_std_terminate_master_breakpoint)
12943 (create_exception_master_breakpoint): Use all_objfiles.
12944 * linux-thread-db.c (try_thread_db_load_from_pdir)
12945 (has_libpthread): Use all_objfiles.
12946 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
12947 * linespec.c (iterate_over_all_matching_symtabs)
12948 (search_minsyms_for_name): Use all_objfiles.
12949 * maint.c (maintenance_info_sections): Use all_objfiles.
12950 * main.c (captured_main_1): Use all_objfiles.
12951 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
12952 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
12953 * guile/scm-pretty-print.c
12954 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
12955 * solib-spu.c (append_ocl_sos): Use all_objfiles.
12956 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
12957 (maintenance_print_msymbols): Use all_objfiles.
12958 * source.c (select_source_symtab): Use all_objfiles.
12959 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
12960 * symfile.c (remove_symbol_file_command)
12961 (expand_symtabs_matching, map_symbol_filenames): Use
12963 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
12965 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
12966 * objc-lang.c (find_methods): Use all_objfiles.
12967 * objfiles.c (have_partial_symbols, have_full_symbols)
12968 (have_minimal_symbols, qsort_cmp)
12969 (default_iterate_over_objfiles_in_search_order): Use
12971 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
12972 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
12973 (maintenance_check_psymtabs): Use all_objfiles.
12974 (ALL_PSYMTABS): Remove.
12975 * compile/compile-object-run.c (do_module_cleanup): Use
12977 * blockframe.c (find_pc_partial_function): Use all_objfiles.
12978 * cp-support.c (add_symbol_overload_list_qualified): Use
12980 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
12982 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
12983 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
12985 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
12986 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
12987 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
12989 * solib.c (solib_read_symbols): Use all_objfiles
12991 2019-01-09 Tom Tromey <tom@tromey.com>
12993 * probe.c (parse_probes_in_pspace): Use all_objfiles.
12994 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
12996 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
12997 * symmisc.c (print_symbol_bcache_statistics)
12998 (print_objfile_statistics, maintenance_print_objfiles)
12999 (maintenance_info_symtabs, maintenance_check_symtabs)
13000 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
13002 * source.c (forget_cached_source_info): Use all_objfiles.
13003 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
13004 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
13005 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
13006 * objfiles.c (update_section_map): Use all_objfiles.
13007 (shared_objfile_contains_address_p): Likewise.
13008 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
13009 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
13011 2019-01-09 Tom Tromey <tom@tromey.com>
13013 * common/next-iterator.h: New file.
13014 * objfiles.h (class all_objfiles): New.
13015 (struct objfile_iterator): New.
13017 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13019 * NEWS: Move the description of the changed "frame", "select-frame",
13020 and "info frame" commands to the Changed commands section.
13022 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
13024 * gdbtypes.c (check_stub_method_group): Remove handling of old
13026 * linespec.c (find_methods): Likewise.
13027 * stabsread.c (read_member_functions): Likewise.
13028 * valops.c (search_struct_method): Likewise.
13029 (value_struct_elt_for_reference): Likewise.
13030 * NEWS: Mention this change.
13032 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13034 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
13035 print_source_lines.
13036 * source.c (print_source_lines_base): Update line number check.
13037 (print_source_lines): New function.
13038 (source_lines_range::source_lines_range): New function.
13039 * source.h (class source_lines_range): New class.
13040 (print_source_lines): New declaration.
13042 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13044 * linespec.c (linespec_state_destructor): Free self->canonical_names.
13046 2019-01-08 Tom Tromey <tom@tromey.com>
13047 Simon Marchi <simon.marchi@ericsson.com>
13050 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
13051 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
13052 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
13053 * f-exp.y (DOLLAR_VARIABLE): Likewise.
13054 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
13055 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
13057 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13059 * source.c (select_source_symtab): Move header comment to
13060 declaration in source.h.
13061 (forget_cached_source_info_for_objfile): Likewise.
13062 (forget_cached_source_info): Likewise.
13063 (identify_source_line): Likewise.
13064 * source.h (identify_source_line): Move declaration from symtab.h
13065 and add comment from source.c
13066 (print_source_lines): Likewise.
13067 (forget_cached_source_info_for_objfile): Likewise.
13068 (forget_cached_source_info): Likewise.
13069 (select_source_symtab): Likewise.
13070 (enum print_source_lines_flag): Move definition from symtab.h.
13071 * symtab.h (identify_source_line): Move declaration to source.h.
13072 (print_source_lines): Likewise.
13073 (forget_cached_source_info_for_objfile): Likewise.
13074 (forget_cached_source_info): Likewise.
13075 (select_source_symtab): Likewise.
13076 (enum print_source_lines_flag): Move definition to source.h.
13077 * tui/tui-hooks.c: Add 'source.h' include.
13079 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13081 * source.c (print_source_lines_base): Handle requests to print
13082 reverse line number sequences, and guard against empty lines
13085 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13087 * source.c (print_source_lines_base): Fix skip of '\r' if next
13090 2019-01-06 Tom Tromey <tom@tromey.com>
13092 * c-exp.y (struct c_parse_state) <macro_original_text,
13093 expansion_obstack>: New member.
13094 (macro_original_text, expansion_obstack): Remove globals.
13095 (scan_macro_expansion, scanning_macro_expansion)
13096 (finished_macro_expansion): Update.
13097 (scan_macro_cleanup): Remove.
13098 (yylex, c_parse): Update.
13100 2019-01-06 Tom Tromey <tom@tromey.com>
13102 * c-exp.y (struct c_parse_state) <strings>: New member.
13103 (operator_stoken): Update.
13105 2019-01-06 Tom Tromey <tom@tromey.com>
13107 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
13108 (union type_stack_elt) <typelist_val>: Now a pointer to
13110 (type_stack_cleanup): Don't declare.
13111 (push_typelist): Update.
13112 * parse.c (pop_typelist): Return a std::vector.
13113 (push_typelist): Take a std::vector.
13114 (follow_types): Update. Do not free args.
13115 (type_stack_cleanup): Remove.
13116 * c-exp.y (struct c_parse_state): New.
13117 (cpstate): New global.
13118 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
13119 (nonempty_typelist): Update.
13120 (func_mod): Create a new vector.
13121 (c_parse): Create a c_parse_state.
13122 (check_parameter_typelist): Do not delete params.
13123 (function_method): Update. Do not delete type_list.
13125 2019-01-06 Tom Tromey <tom@tromey.com>
13128 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
13130 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
13131 (print_return_value): Likewise.
13133 2019-01-05 Tom Tromey <tom@tromey.com>
13135 * contrib/cleanup_check.py: Remove.
13136 * contrib/gcc-with-excheck: Remove.
13137 * contrib/exsummary.py: Remove.
13138 * contrib/excheck.py: Remove.
13140 2019-01-05 Joel Brobecker <brobecker@adacore.com>
13142 * thread.c (delete_thread_1): Add gdb_assert that THR is not
13143 NULL. Initialize tpprev to NULL instead of assigning it
13144 to NULL on the next statement.
13145 * windows-nat.c (windows_delete_thread): Remove check for
13146 main_thread_id before printing thread exit notifications.
13147 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
13148 Remove thread ID check against main_thread_id.
13149 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
13150 windows_delete_thread.
13151 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
13153 2019-01-04 Tom Tromey <tom@tromey.com>
13155 * compile/compile.c (_initialize_compile): Use upper case for
13156 metasyntactic variables.
13157 * symmisc.c (_initialize_symmisc): Use upper case for
13158 metasyntactic variables.
13159 * psymtab.c (_initialize_psymtab): Use upper case for
13160 metasyntactic variables.
13161 * demangle.c (demangle_command): Use upper case for metasyntactic
13163 (_initialize_demangler): Likewise.
13164 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
13167 2019-01-03 Tom Tromey <tom@tromey.com>
13169 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
13171 2019-01-03 Tom Tromey <tom@tromey.com>
13173 * python/py-symtab.c (salpy_str): Update.
13174 (struct salpy_sal_object) <symtab>: Now a PyObject.
13175 (salpy_dealloc): Update.
13176 (del_objfile_sal): Use gdbpy_ref.
13178 2019-01-03 Tom Tromey <tom@tromey.com>
13180 * python/py-type.c (convert_field): Use new_reference. Return
13182 (make_fielditem): Return gdbpy_ref.
13183 (typy_fields): Update.
13184 (typy_getitem): Update.
13185 (field_name): Return gdbpy_ref. Use new_reference.
13186 (typy_iterator_iternext): Update.
13188 2019-01-03 Tom Tromey <tom@tromey.com>
13190 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
13192 2019-01-03 Tom Tromey <tom@tromey.com>
13194 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
13195 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
13196 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
13197 (pspy_set_frame_filters, pspy_set_frame_unwinders)
13198 (pspy_set_type_printers): Likewise.
13199 * python/py-function.c (fnpy_init): Use gdbpy_ref.
13200 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
13201 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
13202 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
13203 (objfpy_set_type_printers): Likewise.
13205 2019-01-03 Tom Tromey <tom@tromey.com>
13207 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
13208 (gdbpy_print_stack): Use gdbpy_err_fetch.
13209 * python/python-internal.h (class gdbpy_err_fetch): New class.
13210 (class gdbpy_enter) <m_error_type, m_error_value,
13211 m_error_traceback>: Remove.
13212 <m_error>: New member.
13213 (gdbpy_exception_to_string): Don't declare.
13214 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
13215 * python/py-value.c (convert_value_from_python): Use
13217 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
13218 gdbpy_exception_to_string.
13219 (gdbpy_handle_exception): Use gdbpy_err_fetch.
13220 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
13223 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13225 * linux-nat.c (delete_lwp_cleanup): Delete.
13226 (struct lwp_deleter): New struct.
13227 (lwp_info_up): New typedef.
13228 (linux_nat_target::follow_fork): Delete cleanup, and make use of
13231 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13233 * linux-fork.c (class scoped_switch_fork_info): New class.
13234 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
13236 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13238 * valops.c (find_overload_match): Remove use of null_cleanup, and
13239 calls to do_cleanups.
13241 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13243 * compile/compile-cplus-types.c
13244 (compile_cplus_instance::decl_name): Handle changes to
13246 * cp-support.c (cp_func_name): Update header comment, update
13248 * cp-support.h (cp_func_name): Update return type in declaration.
13249 * valops.c (find_overload_match): Move temp_func local to top
13250 level of function and change its type. Use temp_func to hold and
13251 delete temporary string obtained from cp_func_name.
13253 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13255 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
13256 gdb::char_vector, remove cleanup, and update uses of `msg`.
13258 2019-01-03 Jim Wilson <jimw@sifive.com>
13260 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
13262 2019-01-02 Tom Tromey <tom@tromey.com>
13264 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
13265 (tdesc_parse_xml): Remove cleanups.
13266 * target-descriptions.h (make_cleanup_free_target_description):
13268 (target_desc_deleter): New struct.
13269 (target_desc_up): New typedef.
13270 * target-descriptions.c (target_desc_deleter::operator()): Rename
13271 from free_target_description.
13272 (make_cleanup_free_target_description): Remove.
13274 2019-01-02 Tom Tromey <tom@tromey.com>
13276 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
13277 constructor, destructor.
13278 (linespec_parser): Remove typedef.
13279 (~linespec_parser): Rename from linespec_parser_delete.
13280 (linespec_lex_to_end, linespec_complete_label)
13281 (linespec_complete): Update.
13282 (decode_line_full): Remove cleanups.
13283 (decode_line_1): Update.
13285 2019-01-02 Tom Tromey <tom@tromey.com>
13287 * python/python-internal.h (inferior_to_inferior_object): Change
13289 * python/py-exitedevent.c (create_exited_event_object): Update.
13290 * python/py-inferior.c (inferior_to_inferior_object): Return
13292 (python_new_inferior, python_inferior_deleted)
13293 (thread_to_thread_object, delete_thread_object)
13294 (build_inferior_list, gdbpy_selected_inferior): Update.
13295 * python/py-infthread.c (create_thread_object): Update. Also fail
13296 if inferior_to_inferior_object fails.
13298 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
13300 * inferior.h (class inferior) <displaced_step_state>: New field.
13301 * infrun.h (struct displaced_step_state): Move here from
13302 infrun.c. Initialize fields, add constructor.
13303 <inf>: Remove field.
13304 <reset>: New method.
13305 * infrun.c (struct displaced_step_inferior_state): Move to
13307 (displaced_step_inferior_states): Remove.
13308 (get_displaced_stepping_state): Adust.
13309 (displaced_step_in_progress_any_inferior): Adjust.
13310 (displaced_step_in_progress_thread): Adjust.
13311 (displaced_step_in_progress): Adjust.
13312 (add_displaced_stepping_state): Remove.
13313 (get_displaced_step_closure_by_addr): Adjust.
13314 (remove_displaced_stepping_state): Remove.
13315 (infrun_inferior_exit): Call displaced_step_state.reset.
13316 (use_displaced_stepping): Don't check for NULL.
13317 (displaced_step_prepare_throw): Call
13318 get_displaced_stepping_state.
13319 (displaced_step_fixup): Don't check for NULL.
13320 (prepare_for_detach): Don't check for NULL.
13322 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13324 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
13325 in case of call that did not complete.
13327 2019-01-02 Andrey Utkin <autkin@undo.io>
13329 * symfile.c (find_separate_debug_file): Fix search of debug files for
13332 2019-01-02 Tom Tromey <tom@tromey.com>
13334 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
13336 * python/py-frame.c (frapy_older): Remove cast.
13337 (frapy_newer): Likewise.
13338 * python/py-breakpoint.c (local_setattro): Remove cast.
13339 * python/py-arch.c (archpy_name): Remove local variable.
13340 * python/py-type.c (gdbpy_lookup_type): Remove cast.
13342 2019-01-02 Joel Brobecker <brobecker@adacore.com>
13344 * unittests/basic_string_view/element_access/char/empty.cc:
13345 Fix year range in copyright header.
13347 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
13349 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
13351 <operator==>: Update with for removed field.
13353 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
13354 <isa_features>: ...this.
13355 <abi_features>: New field.
13356 (riscv_isa_flen): Update comment.
13357 (riscv_abi_xlen): New declaration.
13358 (riscv_abi_flen): New declaration.
13359 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
13361 (riscv_abi_xlen): New function.
13362 (riscv_isa_flen): Update to get answer from isa_features.
13363 (riscv_abi_flen): New function.
13364 (riscv_has_fp_abi): Update to get answer from abi_features.
13365 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
13367 (riscv_call_info) <xlen, flen>: Update comment.
13368 (riscv_call_arg_struct): Remove invalid assertions
13369 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
13371 (riscv_gdbarch_init): Gather isa features and abi features
13372 separately, ensure both match on the gdbarch when reusing an old
13373 gdbarch. Relax an error check to allow 32-bit abi float to run on
13374 a target with 64-bit float hardware.
13376 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13378 * source.c (search_command_helper): Stop reverse search
13379 when line 1 has been searched.
13381 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13383 * record-full.c (record_full_base_target::close): Rewrite
13384 record_full_core_buf_list free logic.
13386 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13388 * break-catch-syscall.c (print_one_catch_syscall): xfree
13391 2019-01-01 Joel Brobecker <brobecker@adacore.com>
13393 * top.c (print_gdb_version): Update Copyright year in version
13396 2019-01-01 Joel Brobecker <brobecker@adacore.com>
13398 Update copyright year range in all GDB files.
13400 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
13402 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
13404 For older changes see ChangeLog-2018.
13410 version-control: never