1 2019-09-18 Alan Modra <amodra@gmail.com>
3 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
4 * spu-linux-nat.c (spu_bfd_open): Likewise.
6 2019-09-18 Christian Biesinger <cbiesinger@google.com>
8 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
9 to bool to match definition in dwarf2read.c.
11 2019-09-17 Christian Biesinger <cbiesinger@google.com>
13 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
14 (print_signatures): Likewise.
15 (trust_pad_over_xvs): Likewise.
16 * arch/aarch64-insn.c (aarch64_debug): Likewise.
17 * arch/aarch64-insn.h (aarch64_debug): Likewise.
18 * arm-linux-nat.c (arm_apcs_32): Likewise.
19 * arm-linux-tdep.c (arm_apcs_32): Likewise.
20 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
21 * arm-tdep.c (arm_debug): Likewise.
22 (arm_apcs_32): Likewise.
23 * auto-load.c (debug_auto_load): Likewise.
24 (auto_load_gdb_scripts): Likewise.
25 (global_auto_load): Likewise.
26 (auto_load_local_gdbinit): Likewise.
27 (auto_load_local_gdbinit_loaded): Likewise.
28 * auto-load.h (global_auto_load): Likewise.
29 (auto_load_local_gdbinit): Likewise.
30 (auto_load_local_gdbinit_loaded): Likewise.
31 * breakpoint.c (disconnected_dprintf): Likewise.
32 (breakpoint_proceeded): Likewise.
33 (automatic_hardware_breakpoints): Likewise.
34 (always_inserted_mode): Likewise.
35 (target_exact_watchpoints): Likewise.
36 (_initialize_breakpoint): Update.
37 * breakpoint.h (target_exact_watchpoints): Change to bool.
38 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
39 * cli/cli-cmds.c (trace_commands): Likewise.
40 * cli/cli-cmds.h (trace_commands): Likewise.
41 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
43 * cli/cli-logging.c (logging_overwrite): Change to bool.
44 (logging_redirect): Likewise.
45 (debug_redirect): Likewise.
46 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
47 (struct boolean_option_def) <get_var_address_cb_>: Change return type
49 <boolean_option_def>: Update.
50 (struct flag_option_def): Change default type of Context to bool
52 <flag_option_def>: Change return type of var_address_cb_ to bool*.
53 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
54 (get_setshow_command_value_string): Likewise.
55 * cli/cli-style.c (cli_styling): Change to bool.
56 (source_styling): Likewise.
57 * cli/cli-style.h (source_styling): Likewise.
58 (cli_styling): Likewise.
59 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
61 * command.h (var_types): Update comment.
62 (add_setshow_boolean_cmd): Change int* var argument to bool*.
63 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
65 (debug_compile_cplus_scopes): Likewise.
66 * compile/compile-internal.h (compile_debug): Likewise.
67 * compile/compile.c (compile_debug): Likewise.
68 (struct compile_options) <raw>: Likewise.
69 * cp-support.c (catch_demangler_crashes): Likewise.
70 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
71 (usr_cmd_cris_dwarf2_cfi): Likewise.
72 * csky-tdep.c (csky_debug): Likewise.
73 * darwin-nat.c (enable_mach_exceptions): Likewise.
74 * dcache.c (dcache_enabled_p): Likewise.
75 * defs.h (info_verbose): Likewise.
76 * demangle.c (demangle): Likewise.
77 (asm_demangle): Likewise.
78 * dwarf-index-cache.c (debug_index_cache): Likewise.
79 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
80 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
81 * dwarf2read.c (check_physname): Likewise.
82 (use_deprecated_index_sections): Likewise.
83 (dwarf_always_disassemble): Likewise.
84 * eval.c (overload_resolution): Likewise.
85 * event-top.c (set_editing_cmd_var): Likewise.
86 (exec_done_display_p): Likewise.
87 * event-top.h (set_editing_cmd_var): Likewise.
88 (exec_done_display_p): Likewise.
89 * exec.c (write_files): Likewise.
90 * fbsd-nat.c (debug_fbsd_lwp): Likewise
91 (debug_fbsd_nat): Likewise.
92 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
94 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
95 <backtrace_past_entry> Likewise.
96 * gdb-demangle.h (demangle): Likewise.
97 (asm_demangle): Likewise.
98 * gdb_bfd.c (bfd_sharing): Likewise.
99 * gdbcore.h (write_files): Likewise.
100 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
101 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
102 * gdbthread.h (print_thread_events): Likewise.
103 * gdbtypes.c (opaque_type_resolution): Likewise.
104 (strict_type_checking): Likewise.
105 * gnu-nat.c (gnu_debug_flag): Likewise.
106 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
107 * guile/scm-param.c (pascm_variable): Add boolval.
108 (add_setshow_generic): Update.
109 (pascm_param_value): Update.
110 (pascm_set_param_value_x): Update.
111 * hppa-tdep.c (hppa_debug): Change to bool..
112 * infcall.c (may_call_functions_p): Likewise.
113 (coerce_float_to_double_p): Likewise.
114 (unwind_on_signal_p): Likewise.
115 (unwind_on_terminating_exception_p): Likewise.
116 * infcmd.c (startup_with_shell): Likewise.
117 * inferior.c (print_inferior_events): Likewise.
118 * inferior.h (startup_with_shell): Likewise.
119 (print_inferior_events): Likewise.
120 * infrun.c (step_stop_if_no_debug): Likewise.
121 (detach_fork): Likewise.
122 (debug_displaced): Likewise.
123 (disable_randomization): Likewise.
124 (non_stop): Likewise.
125 (non_stop_1): Likewise.
126 (observer_mode): Likewise.
127 (observer_mode_1): Likewise.
128 (set_observer_mode): Update.
129 (sched_multi): Change to bool.
130 * infrun.h (debug_displaced): Likewise.
131 (sched_multi): Likewise.
132 (step_stop_if_no_debug): Likewise.
133 (non_stop): Likewise.
134 (disable_randomization): Likewise.
135 * linux-tdep.c (use_coredump_filter): Likewise.
136 (dump_excluded_mappings): Likewise.
137 * linux-thread-db.c (auto_load_thread_db): Likewise.
138 (check_thread_db_on_load): Likewise.
139 * main.c (captured_main_1): Update.
140 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
141 xx2_opt, boolean_opt>: Change to bool.
142 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
143 * maint.c (maintenance_profile_p): Likewise.
144 (per_command_time): Likewise.
145 (per_command_space): Likewise.
146 (per_command_symtab): Likewise.
147 * memattr.c (inaccessible_by_default): Likewise.
148 * mi/mi-main.c (mi_async): Likewise.
149 (mi_async_1): Likewise.
150 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
151 * nat/fork-inferior.h (startup_with_shell): Likewise.
152 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
153 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
154 * nios2-tdep.c (nios2_debug): Likewise.
155 * or1k-tdep.c (or1k_debug): Likewise.
156 * parse.c (parser_debug): Likewise.
157 * parser-defs.h (parser_debug): Likewise.
158 * printcmd.c (print_symbol_filename): Likewise.
159 * proc-api.c (procfs_trace): Likewise.
160 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
161 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
162 (set_parameter_value): Update.
163 (add_setshow_generic): Update.
164 * python/py-value.c (copy_py_bool_obj): Change argument from int*
166 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
168 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
169 * record-btrace.c (record_btrace_target::store_registers): Update.
170 * record-full.c (record_full_memory_query): Change to bool.
171 (record_full_stop_at_limit): Likewise.
172 * record-full.h (record_full_memory_query): Likewise.
173 * remote-notif.c (notif_debug): Likewise.
174 * remote-notif.h (notif_debug): Likewise.
175 * remote.c (use_range_stepping): Likewise.
176 (interrupt_on_connect): Likewise.
177 (remote_break): Likewise.
178 * ser-tcp.c (tcp_auto_retry): Likewise.
179 * ser-unix.c (serial_hwflow): Likewise.
180 * skip.c (debug_skip): Likewise.
181 * solib-aix.c (solib_aix_debug): Likewise.
182 * spu-tdep.c (spu_stop_on_load_p): Likewise.
183 (spu_auto_flush_cache_p): Likewise.
184 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
186 (struct info_print_options) <quiet>: Likewise.
187 * symfile-debug.c (debug_symfile): Likewise.
188 * symfile.c (auto_solib_add): Likewise.
189 (separate_debug_file_debug): Likewise.
190 * symfile.h (auto_solib_add): Likewise.
191 (separate_debug_file_debug): Likewise.
192 * symtab.c (basenames_may_differ): Likewise.
193 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
194 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
195 (struct info_types_options) <quiet>: Likewise.
196 * symtab.h (demangle): Likewise.
197 (basenames_may_differ): Likewise.
198 * target-dcache.c (stack_cache_enabled_1): Likewise.
199 (code_cache_enabled_1): Likewise.
200 * target.c (trust_readonly): Likewise.
201 (may_write_registers): Likewise.
202 (may_write_memory): Likewise.
203 (may_insert_breakpoints): Likewise.
204 (may_insert_tracepoints): Likewise.
205 (may_insert_fast_tracepoints): Likewise.
206 (may_stop): Likewise.
207 (auto_connect_native_target): Likewise.
208 (target_stop_and_wait): Update.
209 (target_async_permitted): Change to bool.
210 (target_async_permitted_1): Likewise.
211 (may_write_registers_1): Likewise.
212 (may_write_memory_1): Likewise.
213 (may_insert_breakpoints_1): Likewise.
214 (may_insert_tracepoints_1): Likewise.
215 (may_insert_fast_tracepoints_1): Likewise.
216 (may_stop_1): Likewise.
217 * target.h (target_async_permitted): Likewise.
218 (may_write_registers): Likewise.
219 (may_write_memory): Likewise.
220 (may_insert_breakpoints): Likewise.
221 (may_insert_tracepoints): Likewise.
222 (may_insert_fast_tracepoints): Likewise.
223 (may_stop): Likewise.
224 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
225 (make_thread_apply_all_options_def_group): Change argument from int*
227 (thread_apply_all_command): Update.
228 (print_thread_events): Change to bool.
229 * top.c (confirm): Likewise.
230 (command_editing_p): Likewise.
231 (history_expansion_p): Likewise.
232 (write_history_p): Likewise.
233 (info_verbose): Likewise.
234 * top.h (confirm): Likewise.
235 (history_expansion_p): Likewise.
236 * tracepoint.c (disconnected_tracing): Likewise.
237 (circular_trace_buffer): Likewise.
238 * typeprint.c (print_methods): Likewise.
239 (print_typedefs): Likewise.
240 * utils.c (debug_timestamp): Likewise.
241 (sevenbit_strings): Likewise.
242 (pagination_enabled): Likewise.
243 * utils.h (sevenbit_strings): Likewise.
244 (pagination_enabled): Likewise.
245 * valops.c (overload_resolution): Likewise.
246 * valprint.h (struct value_print_options) <prettyformat_arrays,
247 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
248 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
249 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
251 * windows-nat.c (new_console): Likewise.
252 (cygwin_exceptions): Likewise.
253 (new_group): Likewise.
254 (debug_exec): Likewise.
255 (debug_events): Likewise.
256 (debug_memory): Likewise.
257 (debug_exceptions): Likewise.
258 (useshell): Likewise.
259 * windows-tdep.c (maint_display_all_tib): Likewise.
260 * xml-support.c (debug_xml): Likewise.
262 2019-09-17 Mike Gulick <mgulick@mathworks.com>
264 * source.c (prepare_path_for_appending): New function.
265 (openp): Make use of new function.
266 (find_and_open_source): Search for the compilation directory and
267 source file as a relative path beneath the directory search path.
269 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
271 * source-cache.c (source_cache::get_line_charpos): Catch
272 exceptions and return false, this matches the behaviour documented
275 2019-09-17 Joel Brobecker <brobecker@adacore.com>
277 * ada-tasks.c (info_task): Remove quoting of the task's name.
279 2019-09-16 Christian Biesinger <cbiesinger@google.com>
281 * symfile.c (auto_solib_add): Replace comment with a reference
284 2019-09-14 Christian Biesinger <cbiesinger@google.com>
286 * NEWS: Mention that gdb can now be compiled with Python 3
289 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
291 * maint.c (maint_print_section_data::maint_print_section_data):
292 Force use of 'float log10 (float)' by casting the argument to
295 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
297 * maint.c: Add 'cmath' include.
298 (struct maint_print_section_data): New structure.
299 (print_section_index): New function.
300 (print_bfd_section_info): Add header comment, small whitespace
301 cleanup, and update to call new print_section_index function.
302 (print_objfile_section_info): Likewise.
303 (maint_obj_section_from_bfd_section): New function.
304 (print_bfd_section_info_maybe_relocated): New function.
305 (maintenance_info_sections): Add header comment, always use
306 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
308 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
310 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
311 inner scope, add check that the objfile has psymtabs before
312 checking psymtabs_addrmap.
313 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
315 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
317 * NEWS: Announce that Ada task names are now shown at more places,
318 and between quotes (except in info task output).
319 * gdb/ada-tasks.c (task_to_str): New function.
320 (display_current_task_id): Call task_to_str.
321 (task_command_1): Likewise.
322 (print_ada_task_info): In non-mi mode, Properly align headers and data
323 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
325 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
327 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
328 prstatus.pr_lwp.pr_info instead of making it up.
330 2019-09-11 Christian Biesinger <cbiesinger@google.com>
332 * auto-load.c (auto_load_expand_dir_vars): Update.
333 * defs.h (gdb_datadir): Change to std::string.
334 (python_libdir): Likewise.
335 (relocate_gdb_directory): Change return type to std::string.
336 * guile/guile.c (gdbscm_data_directory): Update.
337 (initialize_scheme_side): Update.
338 * jit.c (jit_reader_dir): Change to std::string.
339 (jit_reader_load_command): Update.
340 * main.c (gdb_datadir): Change to std::string.
341 (python_libdir): Likewise.
342 (set_gdb_data_directory): Update.
343 (relocate_path): Change to return std::string.
344 (relocate_gdb_directory): Change to return std::string.
345 (relocate_gdbinit_path_maybe_in_datadir): Update.
346 (captured_main_1): Update.
347 * python/python.c (do_start_initialization): Update.
348 * top.c (show_gdb_datadir): Update.
349 * xml-syscall.c (xml_init_syscalls_info): Update.
350 (init_syscalls_info): Update.
352 2019-09-11 Christian Biesinger <cbiesinger@google.com>
354 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
355 out of get_init_files.
356 (get_init_files): Update.
358 2019-09-11 Christian Biesinger <cbiesinger@google.com>
360 * main.c (get_init_files): Change to use std::string.
361 (captured_main_1): Update.
362 (print_gdb_help): Update.
364 2019-09-11 Ali Tamur <tamur@google.com>
366 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
369 2019-09-11 Christian Biesinger <cbiesinger@google.com>
371 * dbxread.c (read_dbx_symtab): Update.
372 * dwarf2read.c (load_partial_dies): Update.
373 * mdebugread.c (parse_partial_symbols): Update.
374 (handle_psymbol_enumerators): Update.
375 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
376 * psymtab.c (add_psymbol_to_bcache): Likewise.
377 (add_psymbol_to_list): Likewise.
378 * symtab.c (symbol_set_names): Likewise.
379 * symtab.h (symbol_set_names): Likewise.
380 * xcoffread.c (scan_xcoff_symtab): Update.
382 2019-09-11 Tom Tromey <tom@tromey.com>
384 * symfile-mem.c (symbol_file_add_from_memory): Use
386 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
387 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
389 2019-09-10 Tom Tromey <tromey@adacore.com>
391 * dwarf-index-write.c (write_psymbols): Extend error message.
392 (debug_names::insert): Add Ada code.
393 (debug_names::write_psymbols): Remove Ada check.
394 (debug_names) <m_string_obstack>: New member.
395 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
396 (gdb_index_symbol_name_matcher::matches): Remove.
397 (mapped_index_base::find_name_components_bounds): Add "lang"
399 (mapped_index_base::build_name_components): Also split names
400 according to Ada syntax.
401 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
402 type of "match_callback".
403 (check_match, check_find_bounds_finds)
404 (dw2_expand_symtabs_matching): Update.
405 (dw2_debug_names_iterator): Add new constructor.
406 (dw2_debug_names_map_matching_symbols): New function.
407 (dw2_debug_names_expand_symtabs_matching): Update.
408 (dwarf2_debug_names_functions): Use
409 dw2_debug_names_map_matching_symbols.
411 2019-09-10 Tom Tromey <tromey@adacore.com>
413 * dwarf2read.c (dw2_get_file_names_reader): Add the
414 CU's file name to the results.
416 2019-09-10 Tom Tromey <tromey@adacore.com>
418 * ada-lang.c (add_nonlocal_symbols): Combine calls to
419 map_matching_symbols. Update.
420 * dwarf2read.c (dw2_map_matching_symbols): Update.
421 * psymtab.c (match_partial_symbol): Change type; update.
422 (psym_map_matching_symbols): Likewise.
423 * symfile-debug.c (debug_qf_map_matching_symbols): Change
425 * symfile.h (struct quick_symbol_functions)
426 <map_matching_symbols>: Change "name" to be a lookup_name_info.
429 2019-09-10 Tom Tromey <tromey@adacore.com>
431 * psymtab.c (map_block): Remove.
432 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
433 * symtab.c (iterate_over_symbols_terminated): New function.
434 * symtab.c (iterate_over_symbols_terminated): Declare.
436 2019-09-10 Tom Tromey <tromey@adacore.com>
438 * ada-lang.c (ada_iterate_over_symbols): Return bool.
439 * language.h (struct language_defn) <la_iterate_over_symbols>:
441 * symtab.c (iterate_over_symbols): Return bool.
442 * symtab.h (iterate_over_symbols): Return bool.
444 2019-09-10 Tom Tromey <tromey@adacore.com>
446 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
447 (add_nonlocal_symbols): Update.
448 * dwarf2read.c (dw2_map_matching_symbols): Change type.
449 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
450 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
451 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
452 Change type of "callback". Remove "data".
455 2019-09-09 Ali Tamur <tamur@google.com>
457 * dwarf2read.c (comp_unit_head): Update comment.
458 (dwarf2_dwo_name): New function declaration.
459 (dwarf_unit_type_name): New function declaration.
460 (read_comp_unit_head): Add support for new compilation units,
461 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
462 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
463 (currently named as "signature") in their header. Also clarify error
465 (lookup_dwo_id): New function. Returns the dwo id of the given
467 (lookup_dwo_unit): Use the new lookup_dwo_id function.
468 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
470 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
471 (dwarf2_dwo_name): Get the dwo name if present.
472 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
475 2019-09-09 Tom Tromey <tom@tromey.com>
477 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
479 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
481 * python/python.c (do_start_initialization): Make progname_copy static,
482 to avoid a leak report.
484 2019-09-08 Tom Tromey <tom@tromey.com>
486 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
488 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
490 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
491 Change type to gdb::optional<block_enum>.
492 (dw2_symtab_iter_init): Change block_index parameter type
493 to gdb::optional<block_enum>.
494 (dw2_lookup_symbol): Change block_index parameter
496 (dw2_debug_names_lookup_symbol): Likewise.
497 * psymtab.c (psym_lookup_symbol): Likewise.
498 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
499 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
502 2019-09-06 Christian Biesinger <cbiesinger@google.com>
504 * defs.h (relocate_gdb_directory): Change int to bool in
505 signature and rename flag to relocatable.
506 * main.c (relocate_path): Likewise.
507 (relocate_gdb_directory): Likewise.
509 2019-09-06 Alan Modra <amodra@gmail.com>
511 * coffread.c (coff_symfile_read): Constify filename variable.
512 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
513 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
514 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
515 * solib.c (reload_shared_libraries_1): Likewise.
516 * symfile.c (reread_symbols): Likewise.
517 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
518 * solib-darwin.c (darwin_bfd_open): Likewise.
519 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
521 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
523 * psymtab.c (print_partial_symbols): Handle missing domain_enum
524 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
526 2019-09-03 Tom Tromey <tromey@adacore.com>
528 * ada-valprint.c (ada_val_print_num): Don't recurse for range
530 (has_negatives): Unbias a range type bound.
531 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
532 * gdbtypes.c (operator==): Handle new field.
533 (create_range_type): Add "bias" parameter.
534 (create_static_range_type, resolve_dynamic_range): Update.
535 * gdbtypes.h (struct range_bounds) <bias>: New member.
536 (create_range_type): Add bias parameter.
537 * printcmd.c (print_scalar_formatted): Unbias range types.
538 * value.c (unpack_long): Unbias range types.
539 (pack_long): Bias range types.
541 2019-09-02 Alan Hayward <alan.hayward@arm.com>
543 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
546 2019-09-02 Alan Hayward <alan.hayward@arm.com>
548 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
549 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
550 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
551 (compile_probe_arg): Likewise.
552 * probe.h (get_argument_count): Likewise.
553 * solib-svr4.c (solib_event_probe_action): Likewise.
554 * stap-probe.c (stap_probe::get_argument_count): Likewise.
556 2019-09-02 Alan Hayward <alan.hayward@arm.com>
558 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
560 (svr4_create_solib_event_breakpoints): ...from here.
562 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
564 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
565 suffix from warning message.
567 2019-08-30 Tom Tromey <tom@tromey.com>
569 * tui/tui-winsource.h (struct tui_source_window_base)
570 <refresh_all>: Don't declare.
571 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
573 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
574 tui_show_locator_content.
575 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
577 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
578 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
581 2019-08-30 Tom Tromey <tom@tromey.com>
583 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
585 2019-08-30 Tom Tromey <tom@tromey.com>
587 * tui/tui-stack.c (_initialize_tui_stack): Move later.
588 Remove unnecessary forward declarations.
590 2019-08-30 Tom Tromey <tom@tromey.com>
592 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
594 (tui_update_locator_fullname, tui_show_frame_info): Don't call
595 tui_show_locator_content.
597 2019-08-30 Tom Tromey <tom@tromey.com>
599 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
600 (tui_locator_window::rerender): Rewrite using body of previous
601 tui_show_locator_content.
603 2019-08-30 Tom Tromey <tom@tromey.com>
605 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
606 set_locator_fullname>: New methods.
607 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
608 Rename from tui_set_locator_fullname.
609 (tui_locator_window::set_locator_info): Rename from
610 tui_set_locator_info. Return bool.
611 (tui_update_locator_fullname, tui_show_frame_info): Update.
613 2019-08-30 Tom Tromey <tom@tromey.com>
615 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
617 2019-08-30 Tom Tromey <tom@tromey.com>
619 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
622 2019-08-30 Tom Tromey <tom@tromey.com>
624 * tui/tui-wingeneral.c (box_win): Assume win_info and
625 win_info->handle cannot be NULL.
627 2019-08-30 Tom Tromey <tom@tromey.com>
629 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
630 refresh_window>: Declare.
631 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
633 (tui_data_item_window::rerender): Rename from
634 tui_display_register.
635 (tui_data_item_window::refresh_window): New method.
636 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
639 2019-08-30 Tom Tromey <tom@tromey.com>
641 * tui/tui-regs.h (struct tui_data_window) <regs_content,
642 regs_column_count, current_group>: Move later. Now private.
643 <get_current_group>: New method.
644 * tui/tui-regs.c (tui_reg_command): Update.
645 * tui/tui-layout.c (tui_set_layout): Update.
647 2019-08-30 Tom Tromey <tom@tromey.com>
649 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
650 (tui_data_window::rerender): Don't call
651 check_and_display_highlight_if_needed.
652 (tui_data_window::refresh_all): Remove call to
655 2019-08-30 Tom Tromey <tom@tromey.com>
657 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
658 (tui_data_window::display_registers_from)
659 (tui_data_window::display_reg_element_at_line)
660 (tui_data_window::display_registers_from_line): Remove checks of
663 2019-08-30 Tom Tromey <tom@tromey.com>
665 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
667 * tui/tui-regs.c (tui_data_window::show_registers): Call
669 (tui_data_window::rerender): Rename from display_all_data.
670 (tui_data_window::rerender): Remove old implementation.
672 2019-08-30 Tom Tromey <tom@tromey.com>
674 * tui/tui-regs.c (tui_data_window::display_all_data): Change
676 * tui/tui-data.h (NO_DATA_STRING): Remove define.
678 2019-08-29 Bernhard Wodok <barto@gmx.net>
679 Sergio Durigan Junior <sergiodj@redhat.com>
682 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
684 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
686 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
687 when searching for types.
689 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
691 * f-lang.c (f_language_defn): Use f_print_typedef.
692 * f-lang.h (f_print_typedef): Declare.
693 * f-typeprint.c (f_print_typedef): Define.
695 2019-08-27 Christian Biesinger <cbiesinger@google.com>
697 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
699 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
701 * cli/cli-utils.c (info_print_options_defs): Delete.
702 (make_info_print_options_def_group): Delete.
703 (extract_info_print_options): Delete.
704 (info_print_command_completer): Delete.
705 (info_print_args_help): Add extra parameter, and optionally
706 include text about -n flag.
707 * cli/cli-utils.h (struct info_print_options): Delete.
708 (extract_info_print_options): Delete declaration.
709 (info_print_command_completer): Delete declaration.
710 (info_print_args_help): Add extra parameter, extend header
712 * python/python.c (gdbpy_rbreak): Pass additional parameter to
714 * stack.c (struct info_print_options): New type.
715 (info_print_options_defs): New file scoped variable.
716 (make_info_print_options_def_group): New static function.
717 (info_print_command_completer): New static function.
718 (info_locals_command): Update to use new local functions.
719 (info_args_command): Likewise.
720 (_initialize_stack): Add extra parameter to calls to
721 info_print_args_help.
722 * symtab.c (search_symbols): Add extra parameter, use this to
723 possibly excluse non-debug symbols.
724 (symtab_symbol_info): Add extra parameter, which is passed on to
726 (struct info_print_options): New type.
727 (info_print_options_defs): New file scoped variable.
728 (make_info_print_options_def_group): New static function.
729 (info_print_command_completer): New static function.
730 (info_variables_command): Update to use local functions, and pass
731 extra parameter through to symtab_symbol_info.
732 (info_functions_command): Likewise.
733 (info_types_command): Pass additional argument through to
735 (rbreak_command): Pass extra argument to search_symbols.
736 (_initialize_symtab): Add extra arguments for calls to
737 info_print_args_help, and update help text for 'info variables',
738 'whereis', and 'info functions' commands.
739 * symtab.h (search_symbols): Add extra argument to declaration.
740 * NEWS: Mention new flags.
742 2019-08-26 Christian Biesinger <cbiesinger@google.com>
744 * symtab.c (lookup_static_symbol): Call the new function (and move
745 it down to be next to lookup_global_symbol).
746 (struct global_sym_lookup_data): Add block_enum member and rename to...
747 (struct global_or_static_sym_lookup_data): ...this.
748 (lookup_symbol_global_iterator_cb): Pass block_index instead of
749 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
750 (lookup_symbol_global_or_static_iterator_cb): ...this.
751 (lookup_global_or_static_symbol): New function.
752 (lookup_global_symbol): Call new function.
754 2019-08-26 Tom de Vries <tdevries@suse.de>
757 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
758 when pc_probe.prob == NULL.
760 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
762 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
763 variable symbol_linkage to symbol_linkage_.
765 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
767 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
768 represent whether the symbol is static, dynamic, or we don't
771 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
773 * gdb/rx-tdep.c (rx_register_names): New.
774 (rx_register_name): Delete.
775 (rx_psw_type): Delete.
776 (rx_fpsw_type): Delete.
777 (rx_register_type): Delete.
778 (rx_gdbarch_init): Convert target-descriptions.
779 (_initialize_rx_tdep): Add initialize_tdesc_rx.
780 * gdb/features/Makefile: Add rx.xml.
781 * gdb/features/rx.xml: New.
782 * gdb/features/rx.c: Generated.
783 * gdb/NEWS: Mention target description support.
785 2019-08-22 Christian Biesinger <cbiesinger@google.com>
787 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
790 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
792 * configure.ac: Don't check for 'dlfcn.h' (moved to
793 gdbsupport/common.m4).
794 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
796 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
797 * compile/compile-c-support.c: Include
798 'gdbsupport/gdb-dlfcn.h'.
799 * gdbsupport/common.m4: Check for 'dlfcn.h'.
800 * gdb-dlfcn.c: Move to...
801 * gdbsupport/gdb-dlfcn.c: ... here.
802 * gdb-dlfcn.h: Move to...
803 * gdbsupport/gdb-dlfcn.h: ... here.
805 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
807 * nios2-tdep.c (struct reg_value): Improve comments. Make
808 the offset field signed.
810 2019-08-22 Christian Biesinger <cbiesinger@google.com>
812 * python/lib/gdb/__init__.py (_execute_file): New function.
813 * python/python.c (python_run_simple_file): Call gdb._execute_file
816 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
818 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
819 all uses as this was never set to anything but a zero value.
821 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
823 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
825 2019-08-21 Christian Biesinger <cbiesinger@google.com>
827 * tui/tui-data.h (tui_gen_win_info): Add an =default
828 move constructor, required by some GCC versions.
830 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
832 * go32-nat.c (go32_sysinfo): Add hygon_p.
834 2019-08-20 Tom Tromey <tom@tromey.com>
836 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
837 line_from_reg_element_no, first_reg_element_no_inline,
838 display_all_data, delete_data_content_windows,
839 erase_data_content>: Now private.
841 2019-08-20 Tom Tromey <tom@tromey.com>
843 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
844 (tui_unhighlight_win, tui_highlight_win)
845 (tui_win_info::make_window): Update.
846 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
848 2019-08-20 Tom Tromey <tom@tromey.com>
850 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
851 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
852 (MAX_PID_WIDTH): Move to tui-stack.c.
853 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
854 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
855 (MAX_PID_WIDTH): Move from tui-data.h.
857 2019-08-20 Tom Tromey <tom@tromey.com>
859 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
860 * tui/tui-wingeneral.c (box_win): Change type of win_info.
862 (tui_gen_win_info::make_window): Rename from tui_make_window.
863 (tui_win_info::make_window): New method.
864 (tui_gen_win_info::make_visible): Update.
865 * tui/tui-source.c (tui_source_window::set_contents): Update.
866 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
867 (tui_data_window::display_registers_from): Update.
868 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
869 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
873 (struct tui_win_info) <make_window>: Declare.
874 <can_box>: Now virtual.
876 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
877 * tui/tui-command.c (tui_cmd_window::resize): Update.
879 2019-08-20 Tom Tromey <tom@tromey.com>
881 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
882 * tui/tui-regs.c (tui_data_window::show_registers): Update.
883 (tui_data_window::check_register_values): Update.
885 2019-08-20 Tom Tromey <tom@tromey.com>
887 * tui/tui-regs.h (struct tui_data_window): Use
888 DISABLE_COPY_AND_ASSIGN.
889 <regs_content>: Change type, removing unique_ptr.
890 <tui_data_window>: Add move constructor.
891 * tui/tui-regs.c (tui_data_window::show_registers)
892 (tui_data_window::show_register_group)
893 (tui_data_window::display_registers_from)
894 (tui_data_window::display_registers_from)
895 (tui_data_window::first_data_item_displayed)
896 (tui_data_window::delete_data_content_windows)
897 (tui_data_window::rerender, tui_data_window::refresh_window)
898 (tui_data_window::check_register_values): Update.
900 2019-08-20 Tom Tromey <tom@tromey.com>
902 * tui/tui-regs.h (struct tui_data_window) <show_registers,
903 show_register_group>: Declare.
904 (tui_show_register_group): Don't declare.
905 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
907 (tui_data_window::show_register_group): Rename from
908 tui_show_register_group.
909 (tui_data_window::check_register_values, tui_reg_command):
911 * tui/tui-layout.c (tui_set_layout): Update.
913 2019-08-20 Tom Tromey <tom@tromey.com>
915 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
917 (tui_check_register_values): Don't declare.
918 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
919 from tui_check_register_values.
920 * tui/tui-hooks.c (tui_register_changed): Update.
922 2019-08-20 Tom Tromey <tom@tromey.com>
924 * tui/tui-regs.c (tui_reg_layout): Move later.
925 (tui_show_registers): Don't enable TUI mode or change layout.
927 2019-08-20 Tom Tromey <tom@tromey.com>
929 * tui/tui-regs.h (struct tui_data_item_window)
930 <~tui_data_item_window>: Remove.
931 <content>: Now a unique_xmalloc_ptr.
932 * tui/tui-regs.c (tui_register_format): Return a
934 (tui_get_register): Update.
935 (~tui_data_item_window): Remove.
936 (tui_data_window::display_registers_from, tui_display_register):
938 * tui/tui-io.h (tui_expand_tabs): Update.
939 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
940 Remove "col" parameter.
942 2019-08-20 Tom Tromey <tom@tromey.com>
944 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
946 * tui/tui-regs.c (~tui_data_item_window): Update.
948 2019-08-20 Tom Tromey <tom@tromey.com>
950 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
953 2019-08-20 Tom Tromey <tom@tromey.com>
955 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
957 2019-08-20 Tom Tromey <tom@tromey.com>
959 * tui/tui-source.h (struct tui_source_window): Update.
960 * tui/tui-regs.c (tui_show_registers): Update.
961 * tui/tui-disasm.h (struct tui_disasm_window): Update.
962 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
963 (NO_REGS_STRING): Remove defines.
965 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
967 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
968 unnecessary thread walk if remote doesn't support the packet.
970 2019-08-19 Tom Tromey <tromey@adacore.com>
972 * python/py-value.c (value_has_field): Fix indentation.
974 2019-08-19 Tom Tromey <tromey@adacore.com>
976 * printcmd.c (do_one_display, info_display_command): Update.
977 * block.h (contained_in): Return bool. Add allow_nested
979 * block.c (contained_in): Return bool. Add allow_nested
982 2019-08-19 Tom Tromey <tom@tromey.com>
984 * configure: Rebuild.
985 * configure.ac: Disallow the combination of -static-libstdc++ and
987 * source-cache.c (get_language_name): Handle rust.
988 (source_cache::get_source_lines): Ignore highlighting exceptions.
990 2019-08-16 Tom Tromey <tom@tromey.com>
992 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
993 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
994 (struct tui_source_window_base) <make_visible, refresh_window,
995 resize>: Remove methods.
996 <execution_info>: Remove field.
997 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
998 (tui_show_source_line, tui_source_window_base)
999 (~tui_source_window_base): Update.
1000 (tui_source_window_base::resize)
1001 (tui_source_window_base::make_visible)
1002 (tui_source_window_base::refresh_window): Remove.
1003 (tui_source_window_base::update_exec_info): Update.
1004 * tui/tui-source.c (tui_source_window::set_contents): Update.
1005 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1007 2019-08-16 Tom Tromey <tom@tromey.com>
1009 * tui/tui-hooks.c (tui_remove_hooks): Don't set
1010 deprecated_query_hook.
1012 2019-08-16 Tom Tromey <tom@tromey.com>
1014 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
1015 (tui_update_source_windows_with_line): Update.
1016 * tui/tui-source.h (struct tui_source_window)
1017 <show_symtab_source>: Declare.
1018 (tui_show_symtab_source): Don't declare.
1019 * tui/tui-source.c (tui_show_symtab_source): Rename from
1020 tui_show_symtab_source.
1022 2019-08-16 Tom Tromey <tom@tromey.com>
1024 * tui/tui-winsource.h (struct tui_source_window_base)
1025 <set_contents>: Declare.
1026 * tui/tui-winsource.c
1027 (tui_source_window_base::update_source_window_as_is): Update.
1028 * tui/tui-source.h (struct tui_source_window) <set_contents>:
1030 (tui_set_source_content): Don't declare.
1031 * tui/tui-source.c (tui_source_window::set_contents): Rename from
1032 tui_set_source_content.
1033 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
1035 (tui_set_disassem_content): Don't declare.
1036 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
1037 tui_set_disassem_content.
1039 2019-08-16 Tom Tromey <tom@tromey.com>
1041 * tui/tui-winsource.h (struct tui_source_window_base)
1042 <update_breakpoint_info>: Declare.
1043 (tui_update_breakpoint_info): Don't declare.
1044 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
1045 (tui_update_all_breakpoint_info): Update.
1046 (tui_source_window_base::update_breakpoint_info): Rename from
1047 tui_update_breakpoint_info.
1048 (tui_source_window_base::update_exec_info): Update.
1050 2019-08-16 Tom Tromey <tom@tromey.com>
1052 * tui/tui-winsource.h (struct tui_source_window_base)
1053 <update_source_window>: Declare.
1054 (tui_update_source_window): Don't declare.
1055 * tui/tui-winsource.c
1056 (tui_source_window_base::update_source_window): Rename from
1057 tui_update_source_window.
1058 (tui_source_window_base::rerender): Update.
1059 * tui/tui-source.c (tui_source_window::maybe_update): Update.
1060 * tui/tui-disasm.c (tui_show_disassem)
1061 (tui_show_disassem_and_update_source)
1062 (tui_disasm_window::maybe_update): Update.
1064 2019-08-16 Tom Tromey <tom@tromey.com>
1066 * tui/tui-winsource.h (struct tui_source_window_base)
1067 <update_source_window_as_is>: Declare.
1068 (tui_update_source_window_as_is): Don't declare.
1069 * tui/tui-winsource.c (tui_update_source_window): Update
1070 (tui_source_window_base::update_source_window_as_is): Rename from
1071 tui_update_source_window_as_is.
1072 (tui_source_window_base::refill): Update.
1073 * tui/tui-source.c (tui_show_symtab_source): Update.
1074 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
1077 2019-08-16 Tom Tromey <tom@tromey.com>
1079 * tui/tui-winsource.h (tui_update_source_window)
1080 (tui_update_source_window_as_is): Remove "noerror" parameter.
1081 * tui/tui-winsource.c (tui_update_source_window)
1082 (tui_update_source_window_as_is): Remove "noerror" parameter.
1083 (tui_update_source_windows_with_addr)
1084 (tui_update_source_windows_with_line)
1085 (tui_source_window_base::rerender)
1086 (tui_source_window_base::refill): Update.
1087 * tui/tui-source.h (tui_set_source_content)
1088 (tui_show_symtab_source): Remove "noerror" parameter.
1089 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
1091 (tui_show_symtab_source): Likewise.
1092 (tui_source_window::maybe_update): Update.
1093 * tui/tui-disasm.c (tui_show_disassem)
1094 (tui_show_disassem_and_update_source)
1095 (tui_disasm_window::do_scroll_vertical)
1096 (tui_disasm_window::maybe_update): Update.
1098 2019-08-16 Tom Tromey <tom@tromey.com>
1100 * tui/tui.c (tui_is_window_visible): Update.
1101 * tui/tui-wingeneral.c (tui_make_window)
1102 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
1103 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
1104 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
1105 (tui_set_win_height_command, parse_scrolling_args): Update.
1106 * tui/tui-source.c (tui_source_window::style_changed): Update.
1107 * tui/tui-regs.c (tui_show_registers)
1108 (tui_data_window::first_data_item_displayed)
1109 (tui_data_window::delete_data_content_windows)
1110 (tui_check_register_values, tui_reg_command): Update.
1111 * tui/tui-disasm.c (tui_show_disassem): Update.
1112 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
1114 <is_visible>: Remove field.
1115 * tui/tui-data.c (tui_next_win, tui_prev_win)
1116 (tui_delete_invisible_windows): Update.
1118 2019-08-16 Tom Tromey <tom@tromey.com>
1120 * tui/tui-winsource.h (struct tui_source_window_base)
1121 <m_has_locator>: Remove.
1122 * tui/tui-layout.c (show_source_disasm_command, show_data)
1123 (show_source_or_disasm_and_command): Update.
1125 2019-08-16 Alan Hayward <alan.hayward@arm.com>
1127 * NEWS (Other MI changes): New subsection.
1128 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
1129 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
1130 * arch-utils.c (default_get_pc_address_flags): New function.
1131 * arch-utils.h (default_get_pc_address_flags): New declaration.
1132 * gdbarch.sh: Add get_pc_address_flags.
1133 * gdbarch.c: Regenerate.
1134 * gdbarch.h: Likewise.
1135 * stack.c (print_pc): New function.
1136 (print_frame_info) (print_frame): Call print_pc.
1138 2019-08-16 Tom de Vries <tdevries@suse.de>
1140 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
1141 print_objfile_section_info.
1143 2019-08-15 Tom Tromey <tom@tromey.com>
1145 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
1146 calling update_cmdwin_start_line.
1147 * tui/tui-winsource.h (struct tui_source_window_base)
1148 <do_make_visible_with_new_height, set_new_height>: Don't declare.
1149 <rerender>: Declare.
1150 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
1152 (tui_source_window_base::set_new_height): Remove.
1153 (tui_source_window_base::rerender): Rename from
1154 do_make_visible_with_new_height.
1155 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
1157 (tui_win_info::make_invisible_and_set_new_height)
1158 (tui_win_info::make_visible_with_new_height): Remove.
1159 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
1161 * tui/tui-stack.c (tui_locator_window::rerender): New method.
1162 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
1163 do_make_visible_with_new_height>: Don't declare.
1164 <rerender>: Declare.
1165 * tui/tui-regs.c (tui_data_window::rerender): Rename from
1167 (tui_data_window::do_make_visible_with_new_height): Remove.
1168 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
1169 call tui_show_locator_content.
1170 (tui_gen_win_info::resize): Call rerender.
1171 (show_source_or_disasm_and_command): Don't call
1172 tui_show_locator_content.
1173 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
1175 (struct tui_win_info) <rerender>: Declare.
1176 <set_new_height, make_invisible_and_set_new_height,
1177 make_visible_with_new_height>: Don't declare.
1178 * tui/tui-data.c (tui_win_list::rerender): New method.
1179 * tui/tui-command.h (struct tui_cmd_window)
1180 <do_make_visible_with_new_height>: Don't declare.
1182 (tui_cmd_window::do_make_visible_with_new_height): Remove.
1184 2019-08-15 Tom Tromey <tromey@adacore.com>
1186 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
1187 * ada-lang.c (ada_enum_name): Likewise.
1189 2019-08-15 Christian Biesinger <cbiesinger@google.com>
1191 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
1193 (GdbOutputErrorFile): Likewise.
1194 (global scope): Adjust constructor calls to GdbOutput{,Error}File
1196 (execute_unwinders): Rename to have a leading underscore.
1197 (auto_load_packages): Likewise.
1198 (global scope): Adjust call to auto_load_packages accordingly.
1199 (GdbSetPythonDirectory): Likewise.
1200 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
1201 instead of execute_unwinders.
1203 2019-08-15 Tom Tromey <tom@tromey.com>
1205 * tui/tui-layout.c (show_layout, show_source_disasm_command)
1206 (show_data): Don't change window visibility.
1207 (tui_gen_win_info::resize): Remove special case for command
1208 window. Use wresize, when available.
1209 (show_source_or_disasm_and_command): Don't change window
1211 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
1212 <make_visible>: New method.
1213 * tui/tui-command.c (tui_cmd_window::resize): New method.
1215 2019-08-15 Tom Tromey <tom@tromey.com>
1217 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
1218 (struct tui_source_windows): New.
1219 * tui/tui-winsource.c (tui_display_main): Update.
1220 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
1221 (new_height_ok, parse_scrolling_args): Update.
1222 * tui/tui-layout.c (show_layout, show_data): Update.
1223 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
1224 (tui_add_to_source_windows): Don't declare.
1225 * tui/tui-data.c (source_windows, tui_source_windows)
1226 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
1228 2019-08-15 Tom Tromey <tom@tromey.com>
1230 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
1232 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
1233 * tui/tui-layout.c (show_source_disasm_command, show_data):
1235 (tui_gen_win_info::resize): Rename.
1236 (show_source_or_disasm_and_command): Update.
1237 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
1240 2019-08-15 Tom Tromey <tom@tromey.com>
1242 * tui/tui-stack.c (tui_initialize_static_data): Remove.
1243 * tui/tui-interp.c (tui_interp::init): Don't call
1244 tui_initialize_static_data.
1245 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
1247 2019-08-15 Tom Tromey <tom@tromey.com>
1249 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
1250 examine tui_win_list.
1252 2019-08-15 Tom Tromey <tom@tromey.com>
1254 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
1255 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
1256 tui_clear_source_content.
1257 (tui_clear_source_content): Remove.
1258 (tui_source_window_base::do_erase_source_content): Hoist call to
1260 * tui/tui-stack.c (tui_show_frame_info): Don't call
1261 tui_clear_source_content.
1263 2019-08-15 Tom Tromey <tom@tromey.com>
1265 * tui/tui-winsource.h (struct tui_source_window_base)
1266 <do_erase_source_content>: New method.
1267 <erase_source_content>: New method.
1268 (tui_erase_source_content): Don't declare.
1269 * tui/tui-winsource.c (tui_clear_source_content): Update.
1270 (tui_source_window_base::do_erase_source_content): Rename from
1271 tui_erase_source_content.
1272 (tui_source_window_base::show_source_content): Update.
1273 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
1274 * tui/tui-source.h (struct tui_source_window)
1275 <erase_source_content>: New method.
1276 * tui/tui-disasm.h (struct tui_disasm_window)
1277 <erase_source_content>: New method.
1279 2019-08-15 Tom Tromey <tom@tromey.com>
1281 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
1282 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
1284 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
1285 * tui/tui-source.c (tui_set_source_content): Update.
1286 * tui/tui-disasm.c (tui_set_disassem_content): Update.
1288 2019-08-15 Tom Tromey <tom@tromey.com>
1290 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
1291 * tui/tui-winsource.c (tui_line_is_displayed): Move to
1293 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
1295 * tui/tui-source.c (tui_source_window::line_is_displayed): New
1297 (tui_source_window::maybe_update): Update.
1299 2019-08-15 Tom Tromey <tom@tromey.com>
1301 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
1302 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
1304 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
1306 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
1308 (tui_disasm_window::maybe_update): Update.
1310 2019-08-15 Tom Tromey <tom@tromey.com>
1312 * tui/tui-winsource.h (struct tui_source_window_base)
1313 <maybe_update>: Declare.
1314 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
1316 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
1318 * tui/tui-source.c (tui_source_window::maybe_update): New method.
1319 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
1321 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
1323 2019-08-15 Tom Tromey <tom@tromey.com>
1325 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
1327 2019-08-15 Tom Tromey <tom@tromey.com>
1329 * tui/tui-wingeneral.c: Include tui-stack.h.
1330 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
1331 (struct tui_locator_window): Move from tui-data.h.
1332 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
1333 (tui_initialize_static_data): Move from tui-data.c.
1334 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
1335 (struct tui_locator_window): Move to tui-stack.c.
1336 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
1337 (tui_initialize_static_data): Move to tui-stack.c.
1339 2019-08-15 Tom Tromey <tom@tromey.com>
1341 * tui/tui-layout.c (show_source_disasm_command)
1342 (show_source_or_disasm_and_command): Use make_visible method, not
1344 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
1347 2019-08-15 Tom Tromey <tom@tromey.com>
1349 * tui/tui-wingeneral.h (tui_make_window): Update.
1350 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
1352 (tui_gen_win_info::make_visible): Update.
1353 * tui/tui-regs.c (tui_data_window::display_registers_from):
1355 * tui/tui-layout.c (show_source_disasm_command)
1356 (show_source_or_disasm_and_command): Update.
1357 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
1358 (enum tui_box): Remove.
1359 (struct tui_win_info) <can_box>: New method.
1360 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
1363 2019-08-15 Tom de Vries <tdevries@suse.de>
1365 * linux-nat-trad.c: Include gdbarch.h.
1367 2019-08-14 Alan Hayward <alan.hayward@arm.com>
1369 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
1372 2019-08-14 Tom Tromey <tromey@adacore.com>
1374 * darwin-nat.c: Include gdbarch.h.
1375 * darwin-nat-info.c: Include gdbarch.h.
1377 2019-08-13 Tom Tromey <tom@tromey.com>
1379 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
1381 * tui/tui-data.c (tui_initialize_static_data): Update.
1383 2019-08-13 Tom Tromey <tom@tromey.com>
1385 * tui/tui-winsource.h (struct tui_exec_info_window)
1386 <~tui_exec_info_window, maybe_allocate_content, get_content,
1388 (struct tui_source_window_base) <set_exec_info_content,
1389 show_exec_info_content>: Don't declare.
1390 * tui/tui-winsource.c
1391 (tui_exec_info_window::maybe_allocate_content): Remove.
1392 (tui_source_window_base::update_exec_info): Rename from
1393 set_exec_info_content.
1394 (tui_source_window_base::show_exec_info_content)
1395 (tui_source_window_base::update_exec_info): Remove.
1397 2019-08-13 Tom Tromey <tom@tromey.com>
1399 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
1401 * tui/tui-winsource.c (tui_update_source_window_as_is)
1402 (tui_update_source_windows_with_addr, tui_erase_source_content):
1404 (tui_clear_exec_info_content): Remove.
1406 2019-08-13 Tom Tromey <tom@tromey.com>
1408 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
1410 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
1411 call tui_erase_exec_info_content.
1412 (tui_clear_exec_info_content): Rename from
1413 tui_erase_exec_info_content.
1414 (tui_clear_exec_info_content): Delete.
1416 2019-08-13 Tom Tromey <tom@tromey.com>
1418 * tui/tui-winsource.h (struct tui_source_window_base)
1419 <show_exec_info_content>: Declare.
1420 (tui_show_exec_info_content): Don't declare.
1421 * tui/tui-winsource.c
1422 (tui_source_window_base::show_exec_info_content): Rename from
1423 tui_show_exec_info_content.
1424 (tui_source_window_base::update_exec_info): Update.
1426 2019-08-13 Tom Tromey <tom@tromey.com>
1428 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
1429 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
1430 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
1431 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
1432 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
1433 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
1436 2019-08-13 Tom Tromey <tom@tromey.com>
1438 * tui/tui-winsource.h (struct tui_source_window_base)
1439 <update_exec_info>: Declare.
1440 (tui_update_exec_info): Don't declare.
1441 * tui/tui-winsource.c (tui_update_source_window_as_is)
1442 (tui_source_window_base::refresh_all)
1443 (tui_update_all_breakpoint_info): Update.
1444 (tui_source_window_base::update_exec_info): Rename from
1445 tui_update_exec_info.
1446 * tui/tui-stack.c (tui_show_frame_info): Update.
1448 2019-08-13 Tom Tromey <tom@tromey.com>
1450 * tui/tui-winsource.h (struct tui_source_window_base)
1451 <set_exec_info_content>: Declare.
1452 (tui_set_exec_info_content): Don't declare.
1453 * tui/tui-winsource.c
1454 (tui_source_window_base::set_exec_info_content): Rename from
1455 tui_set_exec_info_content.
1456 (tui_update_exec_info): Update.
1458 2019-08-13 Tom Tromey <tom@tromey.com>
1460 * tui/tui-winsource.h (struct tui_source_window_base)
1461 <show_source_content>: Declare.
1462 (tui_show_source_content): Don't declare.
1463 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1464 (tui_source_window_base::show_source_content): Rename from
1465 tui_show_source_content.
1466 (tui_source_window_base::refresh_all): Update.
1467 * tui/tui-layout.c (show_source_disasm_command)
1468 (show_source_or_disasm_and_command): Update.
1470 2019-08-13 Tom Tromey <tom@tromey.com>
1472 * tui/tui-winsource.c (tui_erase_source_content)
1473 (tui_show_source_content, tui_source_window_base::refresh_all):
1475 * tui/tui-wingeneral.h
1476 (tui_check_and_display_highlight_if_needed): Don't declare.
1477 * tui/tui-wingeneral.c
1478 (tui_win_info::check_and_display_highlight_if_needed): Rename from
1479 check_and_display_highlight_if_needed.
1480 * tui/tui-win.c (tui_rehighlight_all)
1481 (tui_win_info::make_visible_with_new_height): Update.
1482 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
1483 (tui_data_window::erase_data_content)
1484 (tui_data_window::display_all_data): Update.
1485 * tui/tui-data.h (struct tui_win_info)
1486 <check_and_display_highlight_if_needed>: Declare.
1488 2019-08-13 Tom Tromey <tom@tromey.com>
1490 * tui/tui-win.c (tui_resize_all): Call
1491 tui_delete_invisible_windows.
1492 * tui/tui-layout.c (show_layout): Call
1493 tui_delete_invisible_windows.
1494 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
1495 * tui/tui-data.c (tui_delete_invisible_windows): New function.
1497 2019-08-13 Tom Tromey <tom@tromey.com>
1499 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
1500 tui_add_win_to_layout.
1502 2019-08-13 Tom Tromey <tom@tromey.com>
1504 * tui/tui-layout.h (tui_default_win_height): Don't declare.
1505 * tui/tui-layout.c (tui_default_win_height): Now static.
1507 2019-08-13 Tom Tromey <tom@tromey.com>
1509 * tui/tui-layout.c (show_layout): Unify all layout cases into a
1511 (show_source_disasm_command, show_source_or_disasm_and_command):
1512 Don't check current layout.
1514 2019-08-13 Tom Tromey <tom@tromey.com>
1516 * tui/tui-wingeneral.c (make_all_visible): Remove.
1517 (tui_make_all_invisible): Simplify.
1518 * tui/tui-layout.c (tui_make_all_invisible): Move from
1519 tui-wingeneral.c; simplify.
1520 (show_layout): Hoist call to tui_make_all_invisible.
1521 (show_data): Don't call tui_make_all_invisible.
1523 2019-08-13 Tom Tromey <tom@tromey.com>
1525 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
1526 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
1528 2019-08-13 Tom Tromey <tom@tromey.com>
1530 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
1532 (show_source_disasm_command, show_data)
1533 (show_source_or_disasm_and_command): Don't use
1534 tui_set_current_layout_to.
1535 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
1536 * tui/tui-data.c (current_layout, tui_current_layout): Move to
1538 (tui_set_current_layout_to): Remove.
1540 2019-08-13 Tom Tromey <tom@tromey.com>
1542 * tui/tui-layout.c (tui_set_layout): Update.
1543 * tui/tui-data.h (struct tui_layout_def): Remove.
1544 (tui_layout_def): Don't declare.
1545 * tui/tui-data.c (layout_def): Remove.
1546 (tui_layout_def): Remove.
1548 2019-08-13 Tom Tromey <tom@tromey.com>
1550 * tui/tui-winsource.h (struct tui_source_window_base)
1551 <clear_detail>: No longer "override".
1552 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
1553 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
1554 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
1555 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
1557 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
1559 2019-08-13 Tom Tromey <tromey@adacore.com>
1561 * tracepoint.c: Don't include readline.h or history.h.
1563 2019-08-12 Tom Tromey <tom@tromey.com>
1565 * configure: Rebuild.
1566 * configure.ac: Check for readline 7.
1567 * NEWS: Mention readline 7 requirement.
1570 2019-08-12 Tom Tromey <tom@tromey.com>
1572 * mingw-hdep.c (gdb_select): Remove readline hack.
1574 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1576 * blockframe.c (find_pc_partial_function): Set *block to nullptr
1577 when the function fails.
1579 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
1581 * s390-tdep.c (s390_type_align): New function.
1582 (s390_gdbarch_init): Set it as type_align gdbarch method.
1584 2019-08-09 Tom de Vries <tdevries@suse.de>
1587 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
1588 pc_low with relocation offset.
1590 2019-08-07 Tom Tromey <tromey@adacore.com>
1592 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
1593 (print_frame_args): Update.
1594 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
1596 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1597 * frame.h (struct frame_arg): Add initializers.
1598 <error>: Now a unique_xmalloc_ptr.
1600 2019-08-07 Alan Hayward <alan.hayward@arm.com>
1602 * NEWS: Expand the Pointer Authentication entry.
1603 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
1604 (aarch64_frame_unmask_lr): ... to this.
1605 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
1606 Call aarch64_frame_unmask_lr.
1607 * frame.c (struct frame_info): Add "masked" variable.
1608 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
1609 (fprint_frame): Check for masked pc.
1610 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
1612 * python/py-framefilter.c (py_print_frame): Check for masked pc.
1613 * stack.c (print_frame): Check for masked pc.
1615 2019-08-06 Tom Tromey <tom@tromey.com>
1617 * stabsread.c (patch_block_stabs, read_one_struct_field)
1618 (read_enum_type): Use obstack_strndup.
1619 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
1620 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
1621 * dwarf2read.c (guess_full_die_structure_name)
1622 (anonymous_struct_prefix): Use obstack_strndup.
1623 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
1624 * c-exp.y (yylex): Use obstack_strndup.
1625 * ada-exp.y (write_object_renaming, write_ambiguous_var)
1626 (write_var_or_type): Use obstack_strndup.
1628 2019-08-06 Tom Tromey <tom@tromey.com>
1630 * symfile.c (reread_symbols): Use obstack_strdup.
1631 * stabsread.c (read_type): Use obstack_strdup.
1632 * gdb_obstack.h (obstack_strdup): New overload.
1633 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
1634 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
1635 (dwarf2_canonicalize_name): Use obstack_strdup.
1636 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
1637 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
1640 2019-08-06 Tom Tromey <tom@tromey.com>
1642 * gdb_obstack.h (obstack_strdup): Define.
1643 * gdb_obstack.c (obstack_strdup): Don't define.
1645 2019-08-06 Tom Tromey <tom@tromey.com>
1647 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
1649 * typeprint.c (typedef_hash_table::find_global_typedef): Use
1651 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
1652 * stabsread.c (common_block_start): Use obstack_strdup.
1653 * objfiles.c (set_objfile_main_name, objfile): Use
1655 * namespace.c (add_using_directive): Use obstack_strdup.
1656 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
1657 * jit.c (finalize_symtab): Use obstack_strdup.
1658 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
1659 (guess_partial_die_structure_name, partial_die_info::fixup)
1660 (dwarf2_name): Use obstack_strdup.
1661 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
1663 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
1664 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
1666 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
1668 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1670 * unittests/help-doc-selftests.c: New file.
1671 * Makefile.in: Add the new file.
1673 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1675 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
1676 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
1677 the full first line, except when FOR_VALUE_PREFIX. In this case,
1678 the trailing '.' is not output, and the first character is uppercased.
1679 (print_help_for_command): Update call to print_doc_line.
1680 (print_doc_of_command): Likewise.
1681 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
1682 * cli/cli-option.c (append_indented_doc): Do not append newline.
1683 (build_help_option): Append newline after first appended_indented_doc
1684 only if a second call is done.
1685 (build_help): Append 2 new lines before each option, except the first
1687 * compile/compile.c (_initialize_compile): Add new lines after
1688 %OPTIONS%, when not at the end of the help.
1689 Change help doc or code
1690 producing the help doc to respect the invariants.
1691 * maint-test-options.c (_initialize_maint_test_options): Likewise.
1692 Also removed the new line after 'Options:', as all other commands
1693 do not put an empty line between 'Options:' and the first option.
1694 * printcmd.c (_initialize_printcmd): Likewise.
1695 * stack.c (_initialize_stack): Likewise.
1696 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
1697 incorrectly telling COMMAND is optional.
1698 * ada-lang.c (_initialize_ada_language): Change help doc or code
1699 producing the help doc to respect the invariants.
1700 * ada-tasks.c (_initialize_ada_tasks): Likewise.
1701 * breakpoint.c (_initialize_breakpoint): Likewise.
1702 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
1703 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
1704 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
1705 * cli/cli-style.c (cli_style_option::add_setshow_commands,
1706 _initialize_cli_style): Likewise.
1707 * corelow.c (core_target_info): Likewise.
1708 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
1709 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
1710 * filesystem.c (_initialize_filesystem): Likewise.
1711 * frame.c (_initialize_frame): Likewise.
1712 * gnu-nat.c (add_task_commands): Likewise.
1713 * infcall.c (_initialize_infcall): Likewise.
1714 * infcmd.c (_initialize_infcmd): Likewise.
1715 * interps.c (_initialize_interpreter): Likewise.
1716 * language.c (_initialize_language): Likewise.
1717 * linux-fork.c (_initialize_linux_fork): Likewise.
1718 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
1719 * maint.c (_initialize_maint_cmds): Likewise.
1720 * memattr.c (_initialize_mem): Likewise.
1721 * printcmd.c (_initialize_printcmd): Likewise.
1722 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
1724 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
1725 * record-btrace.c (_initialize_record_btrace): Likewise.
1726 * record-full.c (_initialize_record_full): Likewise.
1727 * record.c (_initialize_record): Likewise.
1728 * regcache-dump.c (_initialize_regcache_dump): Likewise.
1729 * regcache.c (_initialize_regcache): Likewise.
1730 * remote.c (add_packet_config_cmd, init_remote_threadtests,
1731 _initialize_remote): Likewise.
1732 * ser-tcp.c (_initialize_ser_tcp): Likewise.
1733 * serial.c (_initialize_serial): Likewise.
1734 * skip.c (_initialize_step_skip): Likewise.
1735 * source.c (_initialize_source): Likewise.
1736 * stack.c (_initialize_stack): Likewise.
1737 * symfile.c (_initialize_symfile): Likewise.
1738 * symtab.c (_initialize_symtab): Likewise.
1739 * target-descriptions.c (_initialize_target_descriptions): Likewise.
1740 * top.c (init_main): Likewise.
1741 * tracefile-tfile.c (tfile_target_info): Likewise.
1742 * tracepoint.c (_initialize_tracepoint): Likewise.
1743 * tui/tui-win.c (_initialize_tui_win): Likewise.
1744 * utils.c (add_internal_problem_command): Likewise.
1745 * valprint.c (value_print_option_defs): Likewise.
1747 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
1750 * configure.ac: Drop enable-libmcheck support.
1751 * configure, config.in: Rebuild.
1752 * libmcheck.m4: Remove.
1753 * acinclude.m4: Don't include it.
1754 * Makefile.in: Don't distribute it.
1755 * top.c (print_gdb_configuration): Don't mention it.
1757 2019-08-06 Tom Tromey <tom@tromey.com>
1759 * utils.c (set_output_style): Sometimes pass stream to
1761 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
1762 * record-btrace.c (btrace_insn_history): Update.
1763 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
1765 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
1766 Update initializers.
1767 <m_uiout>: New field.
1769 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1770 Remove "uiout" parameter.
1771 (dump_insns): Update.
1772 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
1773 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
1775 2019-08-06 Christian Biesinger <cbiesinger@google.com>
1777 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
1778 (error_in_psymtab_expansion): Likewise.
1779 (lookup_symbol_via_quick_fns): Likewise.
1780 (basic_lookup_transparent_type_quick): Likewise.
1781 (basic_lookup_transparent_type_1): Likewise.
1783 2019-08-06 Tom Tromey <tromey@adacore.com>
1785 * source.c (last_source_error): Now bool.
1786 (print_source_lines_base): Make "noprint" bool. Only open
1787 source file when last_source_visited changes.
1789 2019-08-06 Tom Tromey <tromey@adacore.com>
1791 * annotate.c (annotate_source_line): Use g_source_cache.
1792 * source-cache.c (source_cache::get_plain_source_lines): Change
1793 parameters. Populate m_offset_cache.
1794 (source_cache::ensure): New method.
1795 (source_cache::get_line_charpos): New method.
1796 (extract_lines): Move lower. Change parameters.
1797 (source_cache::get_source_lines): Move lower.
1798 * source-cache.h (class source_cache): Update comment.
1799 <get_line_charpos>: New method.
1800 <get_source_lines>: Update comment.
1801 <clear>: Clear m_offset_cache.
1802 <get_plain_source_lines>: Change parameters.
1803 <ensure>: New method
1804 <m_offset_cache>: New member.
1805 * source.c (forget_cached_source_info_for_objfile): Update.
1806 (info_source_command): Use g_source_cache.
1807 (find_source_lines, open_source_file_with_line_charpos): Remove.
1808 (print_source_lines_base, search_command_helper): Use g_source_cache.
1809 * source.h (open_source_file_with_line_charpos): Don't declare.
1810 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
1811 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
1814 2019-08-06 Tom Tromey <tromey@adacore.com>
1816 * source-cache.c (source_cache::get_plain_source_lines):
1817 Remove "first_line" and "last_line" parameters.
1818 (source_cache::get_source_lines): Cache plain text.
1819 * source-cache.h (class source_cache)
1820 <get_plain_source_lines>: Update.
1822 2019-08-06 Tom Tromey <tromey@adacore.com>
1824 * source-cache.c (extract_lines): No longer a method.
1825 Changed type of parameter. Include final newline.
1826 (selftests::extract_lines_test): New function.
1827 (_initialize_source_cache): Likewise.
1828 * source-cache.h (class source_cache)
1829 <extract_lines>: Don't declare.
1831 2019-08-06 Tom Tromey <tromey@adacore.com>
1833 * breakpoint.c (init_breakpoint_sal): Update.
1834 (breakpoint): Update.
1835 * breakpoint.h (struct breakpoint) <filter>: Now a
1838 2019-08-05 Christian Biesinger <cbiesinger@google.com>
1840 * NEWS: Mention dictionary access on blocks.
1841 * python/py-block.c (blpy_getitem): New function.
1842 (block_object_as_mapping): New struct.
1843 (block_object_type): Use new struct for tp_as_mapping field.
1845 2019-08-05 Christian Biesinger <cbiesinger@google.com>
1847 * objfiles.h (objfile): Add a comment describing partial symbols.
1849 2019-08-05 Tom Tromey <tromey@adacore.com>
1851 * compile/compile.c (_initialize_compile): Use _(), not N_().
1852 * thread.c (_initialize_thread): Use _(), not N_().
1853 * stack.c (_initialize_stack): Use _(), not N_().
1854 * printcmd.c (_initialize_printcmd): Use _(), not N_().
1856 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1858 * dwarf2read.c (struct dw2_symtab_iterator):
1859 <want_specific_block>: Remove.
1860 <block_index>: Change type to gdb::optional.
1861 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
1862 change type of BLOCK_INDEX parameter to gdb::optional.
1863 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
1864 (dw2_lookup_symbol): Don't pass argument for
1865 WANT_SPECIFIC_BLOCK.
1866 (dw2_expand_symtabs_for_function): Don't pass argument for
1867 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
1868 (class dw2_debug_names_iterator)
1869 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
1870 parameter, change BLOCK_INDEX type to gdb::optional.
1871 <m_want_specific_block>: Remove.
1872 <m_block_index>: Change type to gdb::optional.
1873 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
1874 gdb::optional. Re-write in function of gdb::optional.
1875 (dw2_debug_names_lookup_symbol): Don't pass argument for
1876 WANT_SPECIFIC_BLOCK.
1877 (dw2_debug_names_expand_symtabs_for_function): Don't pass
1878 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
1881 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1883 * NEWS: Mention changes to "info sources" command.
1885 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1887 * symtab.c (filename_partial_match_opts): New struct type.
1888 (struct output_source_filename_data): New members
1889 regexp, c_regexp, partial_match.
1890 (output_source_filename): Use new members to decide to print file.
1891 (info_sources_option_defs): New variable.
1892 (make_info_sources_options_def_group, print_info_sources_header,
1893 info_sources_command_completer):
1895 (info_sources_command): Read new optional arguments.
1896 (_initialize_symtab): Update info sources help.
1898 2019-08-02 Alexandre Oliva <oliva@adacore.com>
1900 * ada-lang.c (exception_support_info_v0): Renamed from...
1901 (default_exception_support_info): ... this. Create new
1903 (ada_has_this_exception_support): Look up catch_handlers_sym.
1904 (ada_exception_support_info_sniffer): Try v0 after default.
1906 2019-08-01 Tom Tromey <tromey@adacore.com>
1908 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
1911 2019-08-01 Christian Biesinger <cbiesinger@google.com>
1913 * s12z-tdep.c: Fix include path for s12z-opc.h.
1915 2019-08-01 Alan Hayward <alan.hayward@arm.com>
1917 * NEWS: Require GNU make 3.82.
1919 2019-07-16 Tom Tromey <tom@tromey.com>
1921 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
1924 2019-07-30 Tom Tromey <tromey@adacore.com>
1926 * block.c (contained_in): Remove BLOCK_FUNCTION check.
1928 2019-07-30 Kevin Buettner <kevinb@redhat.com>
1930 * printcmd.c (print_address_symbolic): Print negative offsets.
1931 (build_address_symbolic): Force signed arithmetic when computing
1934 2019-07-30 Christian Biesinger <cbiesinger@google.com>
1936 PR/24474: Add a function to lookup static variables.
1937 * NEWS: Mention this new function.
1938 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
1939 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
1940 * python/python.c (python_GdbMethods): Add new function.
1942 2019-07-29 Christian Biesinger <cbiesinger@google.com>
1944 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
1945 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
1946 (objfpy_lookup_static_symbol): New function.
1947 (objfile_object_methods): Add new functions.
1949 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1951 * NEWS: Mention 'set|show print frame-info'. Mention new
1952 'presence' value for 'frame-arguments'. Mention new '-frame-info'
1953 backtrace argument. Mention that python frame filtering code
1954 is now consistent with what 'backtrace' command prints.
1956 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1958 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
1960 (print_frame_info_auto, print_frame_info_source_line,
1961 print_frame_info_location, print_frame_info_source_and_location,
1962 print_frame_info_location_and_address, print_frame_info_short_location):
1964 (struct frame_print_options): New member print_frame_info.
1965 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
1966 * stack.h (get_user_print_what_frame_info): New declaration.
1967 (frame_show_address): New declaration.
1968 * stack.c (print_frame_arguments_choices): New value 'presence'.
1969 (print_frame_info_auto, print_frame_info_source_line,
1970 print_frame_info_location, print_frame_info_source_and_location,
1971 print_frame_info_location_and_address, print_frame_info_short_location,
1972 print_frame_info_choices, print_frame_info_print_what): New definitions.
1973 (print_frame_args): Only print dots for args if print frame-arguments
1975 (frame_print_option_defs): New element for "frame-info".
1976 (get_user_print_what_frame_info): New function.
1977 (frame_show_address): Make non static. Move comment to stack.h.
1978 (print_frame_info_to_print_what): New function.
1979 (print_frame_info): Update comment. Use fp_opts.print_frame_info
1980 to decide what to print.
1981 (backtrace_command_1): Handle the new print_frame_arguments_presence
1983 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
1984 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
1985 (py_print_frame): In non-mi mode, use LOCATION as default for
1986 print_what, similarly to frame information printed directly by
1987 backtrace command. Handle frame-info user option in non MI mode.
1989 2019-07-27 Kevin Buettner <kevinb@redhat.com>
1991 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
1992 Add case for debugging 32-bit target on 64-bit host. Revise
1995 2019-07-27 Kevin Buettner <kevinb@redhat.com>
1997 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
1998 instead of find_function_entry_range_from_pc.
2000 2019-07-27 Kevin Buettner <kevinb@redhat.com>
2002 * stack.c (find_frame_funname): Remove code which preferred
2003 minsym over symtab sym in "certain pathological cases".
2005 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
2006 parameter. Change type of "do_demangle" to bool.
2007 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2008 Pass suitable "prefer_sym_over_minsym" flag to
2009 build_address_symbolic(). Don't output "+" for negative offsets.
2010 * printcmd.c (print_address_symbolic): Update invocation of
2011 build_address_symbolic to include a "prefer_sym_over_minsym"
2013 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
2014 Restrict cases in which use of minimal symbol is preferred to that
2015 of a found symbol. Update comments.
2017 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
2018 for entry pc when entry pc is out of range for that FDE.
2020 2019-07-26 Brian Callahan <bcallah@openbsd.org>
2023 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
2026 2019-07-25 Christian Biesinger <cbiesinger@google.com>
2028 * python/py-objfile.c (add_separate_debug_file): Fix comment about
2029 this function's Python signature.
2032 2019-07-24 Christian Biesinger <cbiesinger@google.com>
2034 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
2035 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
2036 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
2037 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
2038 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
2041 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
2043 * h8300-tdep.c (h8300_register_name_common): New.
2044 h8300_register_name): Use h8300_register_name_common.
2045 (h8300s_register_name): Likewise.
2046 (h8300sx_register_name): Likewise.
2047 (h8300h_register_nam): New.
2048 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
2051 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
2053 * arm-tdep.c (arm_skip_cmse_entry): New function.
2054 (arm_is_sgstubs_section): New function.
2055 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
2057 2019-07-22 Tom Tromey <tom@tromey.com>
2059 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
2062 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2064 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
2067 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2069 * symtab.c (search_symbols): Adjust msymbol matching type arrays
2070 so that GDB doesn't match any msymbols when searching in the
2072 (print_symbol_info): Print using typedef_print or type_print based
2073 on the type of the symbol. Add updated FIXME comment moved from...
2074 (_initialize_symtab): ... move and update FIXME comment to above.
2076 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2078 * NEWS: Mention adding -q option to "info types".
2079 * symtab.c (struct info_types_options): New struct.
2080 (info_types_options_defs): New variable.
2081 (make_info_types_options_def_group): New function.
2082 (info_types_command): Use gdb::option framework to parse options.
2083 (info_types_command_completer): New function.
2084 (_initialize_symtab): Extend the help text on "info types" and
2085 register command completer.
2087 2019-07-21 Christian Biesinger <cbiesinger@google.com>
2089 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
2090 (lookup_symbol_in_objfile): Change int to block_enum and add a
2091 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
2093 2019-07-20 Christian Biesinger <cbiesinger@google.com>
2095 * MAINTAINERS (Write After Approval): Add self.
2097 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
2099 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
2100 instruction to the dummy code region.
2102 2019-07-19 Tom Tromey <tromey@adacore.com>
2104 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
2105 (ARGSUSED, PARAMS, __func__): Remove rules.
2107 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2109 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
2110 * features/arm/arm-with-iwmmxt.c: Remove.
2111 * features/arm/arm-with-iwmmxt.xml: Remove.
2112 * features/arm/arm-with-m-fpa-layout.c: Remove.
2113 * features/arm/arm-with-m-fpa-layout.xml: Remove.
2114 * features/arm/arm-with-m-vfp-d16.c: Remove.
2115 * features/arm/arm-with-m-vfp-d16.xml: Remove.
2116 * features/arm/arm-with-m.c: Remove.
2117 * features/arm/arm-with-m.xml: Remove.
2118 * features/arm/arm-with-neon.c: Remove.
2119 * features/arm/arm-with-neon.xml: Remove.
2120 * features/arm/arm-with-vfpv2.c: Remove.
2121 * features/arm/arm-with-vfpv2.xml: Remove.
2122 * features/arm/arm-with-vfpv3.c: Remove.
2123 * features/arm/arm-with-vfpv3.xml: Remove.
2125 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2127 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
2129 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2131 * arch/aarch32.c (aarch32_create_target_description): Create
2132 target descriptions using features.
2133 * arch/arm.c (arm_create_target_description)
2134 (arm_create_mprofile_target_description): Likewise.
2135 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
2137 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2139 * Makefile.in: Add new files.
2140 * aarch32-tdep.c: New file.
2141 * aarch32-tdep.h: New file.
2142 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
2143 Call aarch32_read_description.
2144 * arch/aarch32.c: New file.
2145 * arch/aarch32.h: New file.
2146 * arch/arm.c (arm_create_target_description)
2147 (arm_create_mprofile_target_description): New function.
2148 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
2149 (arm_create_target_description)
2150 (arm_create_mprofile_target_description): New declaration.
2151 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
2152 read_description functions.
2153 * arm-linux-nat.c (arm_linux_nat_target::read_description):
2155 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
2156 * arm-tdep.c (tdesc_arm_list): New variable.
2157 (arm_register_g_packet_guesses): Call create description functions.
2158 (arm_read_description) (arm_read_mprofile_description): New
2160 * arm-tdep.h (arm_read_description)
2161 (arm_read_mprofile_description): Add declaration.
2162 * configure.tgt: Add new files.
2164 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
2166 * top.c (new_ui_command): Open specified terminal just once.
2168 2019-07-18 Tom Tromey <tromey@adacore.com>
2170 * symtab.c (main_name): Constify return type.
2171 * symfile.c (set_initial_language): Update.
2172 * symtab.h (main_name): Constify return type.
2174 2019-07-17 Tom Tromey <tom@tromey.com>
2176 * tui/tui-winsource.c (tui_update_source_window)
2177 (tui_update_source_window_as_is)
2178 (tui_update_source_windows_with_line): Remove return.
2179 * tui/tui-disasm.c (tui_show_disassem)
2180 (tui_show_disassem_and_update_source): Remove return.
2181 * tui/tui.c (tui_reset): Remove return.
2182 * tui/tui-wingeneral.c
2183 (tui_check_and_display_highlight_if_needed): Remove return.
2185 2019-07-17 Tom Tromey <tom@tromey.com>
2187 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
2189 2019-07-17 Tom Tromey <tom@tromey.com>
2191 * tui/tui-winsource.h (struct tui_exec_info_window)
2192 (struct tui_source_window_base): Move from tui-data.h.
2193 * tui/tui-winsource.c: Move many method definitions from
2194 elsewhere. Remove "structuring" comments.
2195 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
2196 (tui_source_window_base::refresh_window): Move to
2198 * tui/tui-win.c (tui_source_window_base::refresh_all)
2199 (tui_source_window_base::update_tab_width)
2200 (tui_source_window_base::set_new_height)
2201 (tui_source_window_base::do_make_visible_with_new_height): Move to
2203 * tui/tui-source.h: Update.
2204 * tui/tui-source.c (tui_source_window_base::reset): Move to
2206 * tui/tui-disasm.h: Update.
2207 * tui/tui-data.h (struct tui_exec_info_window): Move to
2209 (struct tui_source_window_base): Likewise.
2210 * tui/tui-data.c (tui_source_window_base::clear_detail)
2211 (tui_source_window_base, ~tui_source_window_base): Move to
2214 2019-07-17 Tom Tromey <tom@tromey.com>
2216 * tui/tui-win.c (tui_resize_all)
2217 (tui_source_window_base::update_tab_width)
2218 (tui_adjust_win_heights): Update.
2219 (tui_win_info::make_invisible_and_set_new_height): Rename from
2220 make_invisible_and_set_new_height.
2221 * tui/tui-data.h (struct tui_win_info)
2222 <make_invisible_and_set_new_height>: New method.
2224 2019-07-17 Tom Tromey <tom@tromey.com>
2226 * tui/tui.c: Update.
2227 * tui/tui-source.h (struct tui_source_window): Move from
2229 * tui/tui-layout.c: Update.
2230 * tui/tui-disasm.c: Update.
2231 * tui/tui-data.h (struct tui_source_window): Move to
2234 2019-07-17 Tom Tromey <tom@tromey.com>
2236 * tui/tui-disasm.h (struct tui_disasm_window): Move from
2238 * tui/tui-data.h (struct tui_disasm_window): Move to
2241 2019-07-17 Tom Tromey <tom@tromey.com>
2243 * tui/tui-regs.h (struct tui_data_item_window): Move from
2245 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
2246 * tui/tui-data.h (struct tui_data_item_window): Move to
2248 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
2250 2019-07-17 Tom Tromey <tom@tromey.com>
2252 * tui/tui.c: Update.
2253 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
2254 (tui_cmd_window::max_height): Move to tui-command.c.
2255 * tui/tui-layout.c: Update.
2256 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
2257 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
2259 * tui/tui-command.h (struct tui_cmd_window): Move from
2261 * tui/tui-command.c: Remove "structuring" comments.
2262 (tui_cmd_window::clear_detail)
2263 (tui_cmd_window::do_make_visible_with_new_height)
2264 (tui_cmd_window::max_height): Move from elsewhere.
2266 2019-07-17 Tom Tromey <tom@tromey.com>
2268 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
2270 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
2271 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
2273 2019-07-17 Tom Tromey <tom@tromey.com>
2275 * tui/tui.c: Update.
2276 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
2278 * tui/tui-windata.h: Remove file.
2279 * tui/tui-windata.c: Remove file.
2280 * tui/tui-win.c (tui_data_window::set_new_height)
2281 (tui_data_window::do_make_visible_with_new_height): Move to
2283 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
2284 * tui/tui-regs.c: Remove "structuring" comments.
2285 (tui_data_window::first_data_item_displayed)
2286 (tui_data_window::delete_data_content_windows)
2287 (tui_data_window::erase_data_content)
2288 (tui_data_window::display_all_data)
2289 (tui_data_window::refresh_all)
2290 (tui_data_window::do_scroll_vertical)
2291 (tui_data_window::clear_detail, tui_data_window::set_new_height)
2292 (tui_data_window::do_make_visible_with_new_height)
2293 (tui_data_window::refresh_window): Move from elsewhere.
2294 (_initialize_tui_regs): Move to end of file.
2295 * tui/tui-layout.c: Update.
2296 * tui/tui-hooks.c: Update.
2297 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
2298 * tui/tui-data.c (tui_data_window::clear_detail): Move to
2300 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
2302 2019-07-17 Tom Tromey <tom@tromey.com>
2304 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
2307 2019-07-17 Tom Tromey <tom@tromey.com>
2309 * tui/tui-win.c (tui_source_window_base::set_new_height)
2310 (tui_source_window_base::do_make_visible_with_new_height): Use
2311 m_has_locator field directly.
2312 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
2314 (struct tui_source_window_base) <has_locator>: Likewise.
2316 2019-07-17 Tom Tromey <tom@tromey.com>
2318 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
2320 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
2322 * tui/tui-win.c (tui_source_window_base::set_new_height)
2323 (tui_source_window_base::set_new_height)
2324 (make_invisible_and_set_new_height)
2325 (tui_source_window_base::do_make_visible_with_new_height)
2326 (tui_source_window_base::do_make_visible_with_new_height):
2328 * tui/tui-layout.c (show_source_disasm_command, show_data)
2329 (show_source_or_disasm_and_command): Update.
2330 * tui/tui-layout.c (show_layout): Update.
2332 2019-07-17 Tom Tromey <tom@tromey.com>
2334 * tui/tui-layout.c (make_data_window): Remove.
2335 (show_data): Unify creation and re-initialization cases.
2337 2019-07-17 Tom Tromey <tom@tromey.com>
2339 * tui/tui-layout.c (make_source_window, make_disasm_window):
2341 (show_data): Unify creation and re-initialization cases.
2343 2019-07-17 Tom Tromey <tom@tromey.com>
2345 * tui/tui-layout.c (make_command_window): Remove.
2346 (show_source_disasm_command, show_source_or_disasm_and_command):
2347 Unify creation and re-initialization cases.
2349 2019-07-17 Tom Tromey <tom@tromey.com>
2351 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
2352 creation and re-initialization cases.
2354 2019-07-17 Tom Tromey <tom@tromey.com>
2356 * tui/tui-regs.c (tui_get_register): Return void.
2358 2019-07-17 Tom Tromey <tom@tromey.com>
2360 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
2363 2019-07-17 Tom Tromey <tom@tromey.com>
2365 * tui/tui-layout.c (show_source_disasm_command): Simplify window
2368 2019-07-17 Tom Tromey <tom@tromey.com>
2370 * tui/tui.h (tui_set_layout_by_name): Don't declare.
2371 * tui/tui-regs.c (tui_reg_layout): New function.
2372 (tui_show_registers, tui_reg_command): Use it.
2373 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
2374 (tui_layout_command): Rename from tui_set_layout_by_name. Change
2376 (tui_layout_command): Remove.
2378 2019-07-17 Tom Tromey <tom@tromey.com>
2380 * tui/tui-layout.h (tui/tui-layout): Return void.
2381 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
2383 2019-07-17 Tom Tromey <tom@tromey.com>
2385 * tui/tui-layout.c (show_source_disasm_command, show_data):
2387 (reset_locator): Remove.
2388 (show_source_or_disasm_and_command): Update.
2390 2019-07-17 Tom Tromey <tom@tromey.com>
2392 * tui/tui-source.c (tui_source_window_base::reset): Remove
2394 * tui/tui-layout.c (make_command_window, make_source_window)
2395 (make_disasm_window, make_data_window)
2396 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
2397 (reset_locator, show_source_or_disasm_and_command): Update.
2398 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
2400 (struct tui_source_window_base) <reset>: Likewise.
2402 2019-07-17 Tom Tromey <tom@tromey.com>
2404 * tui/tui-layout.c (show_source_disasm_command): Use
2406 (reset_locator): New function.
2407 (init_and_make_win): Remove.
2408 (show_source_or_disasm_and_command): Use reset_locator.
2410 2019-07-17 Tom Tromey <tom@tromey.com>
2412 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
2414 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
2416 * tui/tui-source.c (tui_source_window_base::reset): New method.
2417 * tui/tui-layout.c (make_command_window): Don't call
2419 (make_source_window, make_disasm_window): Don't call
2420 make_source_or_disasm_window.
2421 (make_data_window): Don't call init_and_make_win. Change calling
2423 (show_source_disasm_command, show_data): Simplify.
2424 (make_source_or_disasm_window): Remove.
2425 (show_source_or_disasm_and_command): Simplify.
2426 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
2427 (struct tui_source_window_base) <reset>: Likewise.
2428 <execution_info>: Remove initializer.
2429 * tui/tui-data.c (tui_source_window_base): Initialize
2432 2019-07-17 Tom Tromey <tom@tromey.com>
2434 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
2437 2019-07-17 Tom Tromey <tom@tromey.com>
2439 * tui/tui.c (tui_rl_other_window): Update.
2440 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
2441 superclass method first. Always iterate over regs_content.
2442 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
2444 * tui/tui-win.c (tui_set_focus_command): Update.
2446 2019-07-17 Tom Tromey <tom@tromey.com>
2448 * tui/tui-win.c (tui_set_focus_command): Rename from
2449 tui_set_focus. Call tui_enable.
2450 (tui_set_focus_command): Remove.
2452 2019-07-17 Tom Tromey <tom@tromey.com>
2454 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
2456 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
2458 (tui_data_window::refresh_window): Call refresh_window on data
2459 items. Always call superclass refresh_window.
2460 (tui_win_info::refresh): Remove.
2461 (tui_source_window_base::refresh_window): Update.
2462 (tui_refresh_all): Update.
2463 * tui/tui-layout.c (show_source_disasm_command): Remove call to
2465 (show_source_or_disasm_and_command): Likewise.
2466 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
2467 (struct tui_source_window_base) <refresh>: Likewise.
2469 2019-07-17 Tom Tromey <tom@tromey.com>
2471 * tui/tui-winsource.c (tui_clear_source_content)
2472 (tui_show_source_content): Update.
2473 * tui/tui-source.c (tui_source_window::showing_source_p): Check
2474 whether content is empty.
2475 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
2478 2019-07-17 Tom Tromey <tom@tromey.com>
2480 * tui/tui-winsource.c (tui_erase_source_content): Clear the
2482 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
2483 * tui/tui-source.c (tui_set_source_content_nil): Remove.
2485 2019-07-17 Tom Tromey <tom@tromey.com>
2487 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
2488 (struct tui_data_item_window): Update.
2490 2019-07-17 Tom Tromey <tom@tromey.com>
2492 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
2493 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
2496 2019-07-17 Tom Tromey <tom@tromey.com>
2498 * tui/tui-winsource.h (tui_erase_source_content)
2499 (tui_clear_source_content): Remove "display_prompt" parameter.
2500 * tui/tui-winsource.c (tui_update_source_window_as_is)
2501 (tui_update_source_windows_with_addr): Update.
2502 (tui_clear_source_content): Remove "display_prompt" parameter.
2503 (tui_erase_source_content): Likewise. Simplify.
2504 (tui_show_source_content): Update.
2505 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2506 * tui/tui-stack.c (tui_show_frame_info): Update.
2507 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
2510 2019-07-17 Tom Tromey <tom@tromey.com>
2512 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2513 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
2515 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
2518 2019-07-17 Tom Tromey <tom@tromey.com>
2520 * tui/tui-winsource.c (tui_clear_source_content)
2521 (tui_show_source_content, tui_show_exec_info_content)
2522 (tui_clear_exec_info_content): Update.
2523 * tui/tui-stack.c (tui_show_locator_content): Update.
2524 (tui_show_frame_info): Update.
2525 * tui/tui-source.h (tui_source_window): Don't declare.
2526 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
2527 from tui_source_is_displayed.
2528 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
2530 (struct tui_source_window_base) <content_in_use>: New field. Now
2532 (struct tui_source_window) <showing_source_p>: New method.
2533 (TUI_SRC_WIN): Change cast.
2534 * tui/tui-data.c (tui_initialize_static_data): Update.
2536 2019-07-17 Tom Tromey <tom@tromey.com>
2538 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
2540 * tui/tui-source.c (tui_source_window::location_matches_p): New
2542 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
2544 * tui/tui-data.h (struct tui_source_window_base)
2545 <location_matches_p>: New method.
2546 (struct tui_source_window, struct tui_disasm_window)
2547 <location_matches_p>: Likewise.
2549 2019-07-17 Tom Tromey <tom@tromey.com>
2551 * tui/tui-win.c (tui_set_win_height_command): Rename from
2553 (tui_set_win_height_command): Remove.
2555 2019-07-17 Tom Tromey <tom@tromey.com>
2557 * tui/tui-source.c (tui_source_window): New constructor. Add
2559 (~tui_source_window): New destructor.
2560 (tui_source_window::style_changed): New method.
2561 * tui/tui-hooks.c (tui_redisplay_source): Remove.
2562 (tui_attach_detach_observers): Update.
2563 * tui/tui-data.h (struct tui_source_window): Make constructor not
2564 inline. Add destructor.
2565 (struct tui_source_window) <style_changed>: New method.
2566 <m_observable>: New member.
2568 2019-07-17 Tom Tromey <tom@tromey.com>
2570 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
2571 * tui/tui-win.c (tui_resize_all): Fix typo.
2573 2019-07-17 Tom Tromey <tom@tromey.com>
2575 * tui/tui-wingeneral.h (tui_refresh_all): Update.
2576 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
2577 (tui_refresh_all): Remove "list" parameter. Use foreach.
2578 * tui/tui-win.c (window_name_completer): Use foreach.
2579 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
2580 (update_tab_width): Likewise.
2581 * tui/tui-layout.c (show_layout): Update.
2582 * tui/tui-data.h (class tui_window_iterator): New.
2583 (struct all_tui_windows): New.
2584 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
2586 2019-07-17 Tom Tromey <tom@tromey.com>
2588 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
2589 parameter. Don't reference globals.
2590 (tui_reg_command): Update.
2592 2019-07-17 Tom Tromey <tom@tromey.com>
2594 * tui/tui-regs.c (tui_show_registers): Simplify.
2596 2019-07-17 Tom Tromey <tom@tromey.com>
2598 * tui/tui-regs.c (tui_show_registers): Update.
2599 (tui_show_register_group): Add win_info parameter.
2601 2019-07-17 Tom Tromey <tom@tromey.com>
2603 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
2604 Rename from tui_display_reg_element_at_line.
2605 (tui_data_window::display_registers_from_line): Update.
2606 * tui/tui-data.h (struct tui_data_window)
2607 <display_reg_element_at_line>: New method.
2609 2019-07-17 Tom Tromey <tom@tromey.com>
2611 * tui/tui-regs.h (tui_display_registers_from)
2612 (tui_display_registers_from_line): Don't declare.
2613 * tui/tui-windata.c (tui_data_window::display_all_data)
2614 (tui_data_window::refresh_all)
2615 (tui_data_window::do_scroll_vertical): Update.
2616 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
2617 from tui_display_registers_from.
2618 (tui_display_reg_element_at_line): Update.
2619 (tui_data_window::display_registers_from_line): Rename from
2620 tui_display_registers_from_line.
2621 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
2622 display_registers_from_line>: New methods.
2624 2019-07-17 Tom Tromey <tom@tromey.com>
2626 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
2627 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
2628 from tui_erase_data_content.
2629 (tui_data_window::display_all_data)
2630 (tui_data_window::refresh_all)
2631 (tui_data_window::do_scroll_vertical): Update.
2632 * tui/tui-regs.c (tui_show_registers): Update.
2633 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
2636 2019-07-17 Tom Tromey <tom@tromey.com>
2638 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
2641 (tui_data_window::delete_data_content_windows): Rename from
2642 tui_delete_data_content_windows.
2643 (tui_data_window::display_all_data)
2644 (tui_data_window::do_scroll_vertical): Update.
2645 * tui/tui-data.h (struct tui_data_window)
2646 <delete_data_content_windows>: New method.
2648 2019-07-17 Tom Tromey <tom@tromey.com>
2650 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
2651 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
2653 2019-07-17 Tom Tromey <tom@tromey.com>
2655 * tui/tui-windata.h (tui_display_all_data): Don't declare.
2656 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
2657 from tui_display_all_data.
2659 (tui_data_window::do_make_visible_with_new_height): Update.
2660 * tui/tui-regs.c (tui_show_registers): Update.
2661 * tui/tui-layout.c (tui_set_layout): Update.
2662 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
2665 2019-07-17 Tom Tromey <tom@tromey.com>
2667 * tui/tui-windata.h (tui_display_data_from): Don't declare.
2668 * tui/tui-windata.c (tui_display_data_from): Remove.
2669 (tui_data_window::refresh_all): Update.
2671 2019-07-17 Tom Tromey <tom@tromey.com>
2673 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
2674 * tui/tui-windata.c (tui_display_data_from_line): Remove.
2675 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
2676 tui_display_registers_from_line.
2677 * tui/tui-regs.h (tui_display_registers_from_line): Update.
2678 * tui/tui-regs.c (tui_display_registers_from_line): Remove
2679 "force_display" parameter.
2681 2019-07-17 Tom Tromey <tom@tromey.com>
2683 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
2685 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
2686 Rename from tui_first_reg_element_no_inline.
2687 (tui_display_reg_element_at_line)
2688 (tui_display_registers_from_line): Update.
2689 * tui/tui-data.h (struct tui_data_window)
2690 <first_reg_element_no_inline>: New method.
2692 2019-07-17 Tom Tromey <tom@tromey.com>
2694 * tui/tui-windata.c (tui_display_data_from)
2695 (tui_data_window::do_scroll_vertical): Update.
2696 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
2697 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
2698 Rename from tui_line_from_reg_element_no.
2699 (tui_display_registers_from_line): Update.
2700 * tui/tui-data.h (struct tui_data_window)
2701 <line_from_reg_element_no>: New method.
2703 2019-07-17 Tom Tromey <tom@tromey.com>
2705 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
2706 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
2707 tui_last_regs_line_no.
2708 (tui_display_reg_element_at_line)
2709 (tui_display_registers_from_line): Update.
2710 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
2713 2019-07-17 Tom Tromey <tom@tromey.com>
2716 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
2717 (tui_update_breakpoint_info): Add "being_deleted" parameter.
2718 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2719 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
2720 (tui_update_breakpoint_info): Likewise.
2721 * tui/tui-hooks.c (tui_event_create_breakpoint)
2722 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
2725 2019-07-17 Tom Tromey <tom@tromey.com>
2727 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
2729 2019-07-17 Tom Tromey <tom@tromey.com>
2731 * tui/tui-winsource.c (tui_update_source_window_as_is)
2732 (tui_update_source_windows_with_addr): Update.
2733 * tui/tui-source.h (tui_set_source_content)
2734 (tui_show_symtab_source): Add "win_info" parameter.
2735 * tui/tui-source.c (tui_set_source_content): Add "win_info"
2737 (tui_show_symtab_source): Likewise.
2739 2019-07-17 Tom Tromey <tom@tromey.com>
2741 * tui/tui-wingeneral.c
2742 (tui_check_and_display_highlight_if_needed): Check can_highlight.
2744 2019-07-17 Tom Tromey <tom@tromey.com>
2746 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
2747 (struct tui_cmd_window) <can_scroll>: New method.
2748 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
2751 2019-07-17 Tom Tromey <tromey@adacore.com>
2753 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
2754 do_field_signed>: Rename. Change type of "value".
2755 * ui-out.c (ui_out::field_signed): Rename from field_int.
2756 Change type of "value".
2757 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
2759 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
2760 do_field_int. Change type of "value".
2761 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
2762 do_field_int. Change type of "value".
2763 * tracepoint.c (trace_status_mi, tfind_1)
2764 (print_one_static_tracepoint_marker): Update.
2765 * thread.c (print_thread_info_1, print_selected_thread_frame):
2767 * stack.c (print_frame, print_frame_info): Update.
2768 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
2770 * source.c (print_source_lines_base): Update.
2771 * skip.c (info_skip_command): Update.
2772 * record-btrace.c (btrace_ui_out_decode_error)
2773 (btrace_call_history_src_line): Update.
2774 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
2776 * progspace.c (print_program_space): Update.
2777 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
2778 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
2779 do_field_int. Change type of "value".
2780 * mi/mi-out.c (mi_ui_out::do_table_begin)
2781 (mi_ui_out::do_table_header): Update.
2782 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
2784 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
2785 (mi_cmd_data_list_changed_registers, output_register)
2786 (mi_cmd_data_read_memory, mi_load_progress)
2787 (mi_cmd_trace_frame_collected): Update.
2788 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
2790 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
2791 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
2792 (mi_cmd_var_list_children, varobj_update_one): Update.
2793 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
2794 (mi_cmd_stack_list_args, list_arg_or_local): Update.
2795 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
2796 * inferior.c (print_inferior): Update.
2797 * gdb_bfd.c (print_one_bfd): Update.
2798 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2800 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
2801 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
2802 do_field_int. Change type of "value".
2803 * cli-out.c (cli_ui_out::do_field_signed): Rename from
2804 do_field_int. Change type of "value".
2805 * breakpoint.c (watchpoint_check, print_breakpoint_location)
2806 (print_one_breakpoint_location, print_it_catch_fork)
2807 (print_one_catch_fork, print_it_catch_vfork)
2808 (print_one_catch_vfork, print_it_catch_solib)
2809 (print_it_catch_exec, print_it_ranged_breakpoint)
2810 (print_mention_watchpoint, print_mention_masked_watchpoint)
2811 (bkpt_print_it, update_static_tracepoint): Update.
2812 * break-catch-throw.c (print_it_exception_catchpoint): Update.
2813 * break-catch-syscall.c (print_it_catch_syscall): Update.
2814 * ada-tasks.c (print_ada_task_info): Update.
2815 * ada-lang.c (print_it_exception, print_mention_exception):
2818 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2820 PR breakpoints/24541
2821 * gdbarch.c: Regenerate.
2822 * gdbarch.h: Regenerate.
2823 * gdbarch.sh: Adjust return type and parameter types for
2824 'stap_adjust_register'.
2825 (i386_stap_adjust_register): Adjust signature and return new
2827 * stap-probe.c (stap_parse_register_operand): Adjust use of
2828 'gdbarch_stap_adjust_register'.
2830 2019-07-17 Tom Tromey <tromey@adacore.com>
2832 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
2834 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
2836 (struct s390_process_info): Add initializers.
2837 (s390_add_process): Use new.
2838 (s390_linux_nat_target::low_forget_process): Use delete.
2839 (s390_linux_nat_target::low_new_fork)
2840 (s390_linux_nat_target::stopped_by_watchpoint)
2841 (s390_linux_nat_target::low_prepare_to_resume)
2842 (s390_linux_nat_target::insert_watchpoint)
2843 (s390_linux_nat_target::insert_hw_breakpoint)
2844 (s390_linux_nat_target::remove_watchpoint)
2845 (s390_linux_nat_target::remove_hw_breakpoint): Update.
2847 2019-07-16 John Baldwin <jhb@FreeBSD.org>
2849 * aarch64-fbsd-nat.c: Include regcache.h.
2850 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
2852 (aarch64_fbsd_nat_target::fetch_registers)
2853 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
2855 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
2857 2019-07-16 John Baldwin <jhb@FreeBSD.org>
2859 * fbsd-nat.c: Include gdbarch.h.
2861 2019-07-15 Tom Tromey <tromey@adacore.com>
2863 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
2865 2019-07-15 Tom Tromey <tromey@adacore.com>
2867 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
2868 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
2869 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
2870 * cli-out.c (cli_ui_out::do_field_int): New method.
2871 * ui-out.c (ui_out::field_unsigned): New method.
2872 * symfile.c (generic_load): Use field_unsigned.
2873 (print_transfer_performance): Likewise.
2874 * record-btrace.c (ui_out_field_uint): Remove.
2875 (btrace_call_history_insn_range, btrace_call_history): Use
2877 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
2879 * ui-out.h (class ui_out) <field_unsigned>: New method.
2880 <do_field_unsigned>: Likewise.
2882 2019-07-15 Tom Tromey <tromey@adacore.com>
2884 * mi/mi-main.c (list_available_thread_groups): Use field_string.
2885 * mi/mi-interp.c (mi_memory_changed): Use field_string.
2886 * target.c (flash_erase_command): Use field_string.
2887 * infrun.c (print_signal_received_reason): Use field_string.
2888 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
2889 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
2891 * ada-tasks.c (print_ada_task_info): Use field_string.
2893 2019-07-15 Tom Tromey <tromey@adacore.com>
2895 * target.c (flash_erase_command): Use field_core_addr.
2896 * symfile.c (generic_load): Use field_core_addr.
2897 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2898 Use field_core_addr.
2899 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
2902 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2904 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
2905 value if its desired type is smaller than a CORE_ADDR and signed.
2907 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2909 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
2910 of changes to field names, and use new is_reference field to
2911 decide if a property is a reference or not.
2912 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
2914 (struct dwarf2_property_baton): Update header comment, rename
2915 'referenced_type' to 'property_type' and update comments.
2916 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
2917 default property type, store in property baton, update to take
2918 accound of renamed field.
2919 (read_func_scope): Update call to attr_to_dynamic_prop.
2920 (read_array_type): Likewise.
2921 (dwarf2_per_cu_addr_sized_int_type): New function.
2922 (read_subrange_index_type): Move type finding code to
2923 dwarf2_per_cu_addr_sized_int_type.
2924 (read_subrange_type): Update calls to attr_to_dynamic_prop.
2925 (dwarf2_per_cu_addr_type): New function.
2926 (set_die_type): Update calls to attr_to_dynamic_prop.
2928 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2930 * dwarf2read.c (read_subrange_index_type): New function.
2931 (read_subrange_type): Move code into new function and call it.
2932 * gdbtypes.c (create_range_type): Add some asserts.
2934 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2936 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
2937 update return statements.
2938 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
2939 declaration, and update comment to match.
2940 * gdbtypes.c (resolve_dynamic_array): Update call to
2941 dwarf2_evaluate_property to match new return type.
2943 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2945 * valarith.c (value_subscripted_rvalue): Change lowerbound
2946 parameter type from int to LONGEST.
2947 * value.h (value_subscripted_rvalue): Likewise in declaration.
2949 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
2951 * cli/cli-utils.c (info_print_command_completer): New function.
2952 * cli/cli-utils.h: Add 'completer.h' include, and forward
2953 declaration for 'struct cmd_list_element'.
2954 (info_print_command_completer): Declare.
2955 * stack.c (_initialize_stack): Add completer for 'info locals' and
2957 * symtab.c (_initialize_symtab): Add completer for 'info
2958 variables' and 'info functions'.
2959 * NEWS: Mention completion for additional info commands.
2961 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
2963 * cli/cli-utils.c (extract_info_print_args): Delete.
2964 (extract_arg_maybe_quoted): Delete.
2965 (info_print_options_defs): New variable.
2966 (make_info_print_options_def_group): New function.
2967 (extract_info_print_options): Define new function.
2968 * cli/cli-utils.h (extract_info_print_args): Delete.
2969 (struct info_print_options): New structure.
2970 (extract_info_print_options): Declare new function.
2971 * stack.c (info_locals_command): Update to use new
2972 extract_info_print_options, also add a header comment.
2973 (info_args_command): Likewise.
2974 * symtab.c (info_variables_command): Likewise.
2975 (info_functions_command): Likewise.
2977 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
2979 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
2980 to extract string arguments.
2981 * common/common-utils.c (extract_string_maybe_quoted): New function.
2982 * common/common-utils.h (extract_string_maybe_quoted): Declare.
2984 2019-07-11 Tom Tromey <tromey@adacore.com>
2986 * main.c (get_init_files): Use GDBINIT, not gdbinit.
2987 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
2988 * top.h (gdbinit): Don't declare.
2989 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
2991 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
2992 * top.c (gdb_init): Don't call init_cli_cmds.
2994 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
2996 2019-07-11 Tom Tromey <tromey@adacore.com>
2998 * python/py-inferior.c (add_thread_object): Don't use thread_obj
2999 after it has been moved.
3001 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3003 * valops.c (value_must_coerce_to_target): Change return type to
3005 * value.h (value_must_coerce_to_target): Likewise.
3007 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
3009 * breakpoint.c (is_hardware_watchpoint): Remove
3010 forward-declaration.
3011 (is_masked_watchpoint): Change return type to bool.
3012 (is_tracepoint): Likewise.
3013 (is_breakpoint): Likewise.
3014 (is_hardware_watchpoint): Likewise.
3015 (is_watchpoint): Likewise.
3016 (is_no_memory_software_watchpoint): Likewise.
3017 (is_catchpoint): Likewise.
3018 (breakpoint_1): Make FILTER parameter's return type bool.
3019 is_masked_watchpoint): Change return type to bool.
3020 (save_breakpoints): Make FILTER parameter's return type bool.
3021 * breakpoint.h (is_breakpoint): Change return type to bool.
3022 (is_watchpoint): Likewise.
3023 (is_catchpoint): Likewise.
3024 (is_tracepoint): Likewise.
3026 2019-07-10 Tom Tromey <tom@tromey.com>
3028 * defs.h: Don't include gdbarch.h.
3029 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
3030 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
3031 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
3032 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
3033 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
3034 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
3035 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
3036 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
3037 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
3038 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
3039 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
3040 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
3041 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
3042 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
3043 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
3044 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
3045 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
3046 record-btrace.c, record.h, regcache-dump.c, regcache.h,
3047 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
3048 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
3049 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
3050 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
3051 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
3052 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
3053 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
3054 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
3055 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
3057 2019-07-10 Tom Tromey <tromey@adacore.com>
3059 * ada-lang.h (is_ada_exception_catchpoint): Declare.
3060 * breakpoint.c (init_ada_exception_breakpoint): Register as
3062 (print_one_breakpoint_location, print_one_breakpoint): Use
3063 is_ada_exception_catchpoint.
3064 * ada-lang.c (class ada_catchpoint_location): Pass
3065 bp_loc_software_breakpoint to bp_location constructor.
3066 (is_ada_exception_catchpoint): New function.
3068 2019-07-10 Tom Tromey <tromey@adacore.com>
3070 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
3072 (struct arm_exidx_entry): New method operator<.
3073 (struct arm_exidx_data) <section_maps>: Change type.
3074 (arm_exidx_data_free): Remove.
3075 (arm_exidx_data_key): Change type. Move lower.
3076 (arm_exidx_new_objfile): Update.
3077 (arm_compare_exidx_entries): Remove.
3078 (arm_find_exidx_entry, _initialize_arm_tdep)
3080 2019-07-10 Tom Tromey <tromey@adacore.com>
3082 * solib-spu.c (ocl_program_data_key): Change type.
3083 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
3086 2019-07-10 Tom Tromey <tromey@adacore.com>
3088 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
3089 (struct solib_aix_inferior_data) <library_list>: Change type.
3090 (solib_aix_inferior_data_handle): Change type.
3091 (get_solib_aix_inferior_data): Update.
3092 (solib_aix_free_library_list): Remove.
3093 (library_list_start_library): Update.
3094 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
3096 (solib_aix_get_library_list)
3097 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
3098 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
3100 2019-07-10 Tom Tromey <tromey@adacore.com>
3102 * solib-dsbt.c (struct dsbt_info): Add initializers.
3103 (solib_dsbt_pspace_data): Change type.
3104 (dsbt_pspace_data_cleanup): Remove.
3105 (get_dsbt_info, _initialize_dsbt_solib): Update.
3107 2019-07-10 Tom Tromey <tromey@adacore.com>
3109 * spu-tdep.c (spu_overlay_data): Change type.
3110 (spu_get_overlay_table, spu_overlay_new_objfile)
3111 (_initialize_spu_tdep): Update.
3113 2019-07-10 Tom Tromey <tromey@adacore.com>
3115 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
3117 (dbx_objfile_data_key): Change type and declare later.
3118 (DBX_SYMFILE_INFO): Rewrite.
3119 * dbxread.c (dbx_objfile_data_key): Change type.
3120 (dbx_symfile_init): Update.
3121 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
3122 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3123 (stabsect_build_psymtabs, _initialize_dbxread): Update.
3125 2019-07-10 Tom Tromey <tromey@adacore.com>
3127 * jit.c (jit_program_space_key): Change type. Move lower.
3128 (get_jit_program_space_data): Update.
3129 (jit_program_space_data_cleanup): Remove.
3130 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
3132 (struct jit_program_space_data): Add initializers.
3134 2019-07-10 Tom Tromey <tromey@adacore.com>
3136 * solib-darwin.c (struct darwin_info): Add initializers.
3137 (solib_darwin_pspace_data): Change type.
3138 (darwin_pspace_data_cleanup): Remove.
3139 (get_darwin_info, _initialize_darwin_solib): Update.
3141 2019-07-10 Tom Tromey <tromey@adacore.com>
3143 * remote-sim.c (struct sim_inferior_data): Add initializers,
3144 constructor, and destructor.
3145 (sim_inferior_data_key): Change type. Move lower.
3146 (check_for_duplicate_sim_descriptor): Update.
3147 (get_sim_inferior_data): Use new. Update.
3148 (~sim_inferior_data_cleanup): Rename from
3149 sim_inferior_data_cleanup. Simplify.
3150 (gdbsim_close_inferior, simulator_command)
3151 (sim_command_completer, _initialize_remote_sim): Update.
3152 (next_pid, INITIAL_PID): Move earlier.
3154 2019-07-10 Tom Tromey <tromey@adacore.com>
3156 * python/python-internal.h (create_thread_object): Return
3158 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
3159 * python/py-inferior.c (struct threadlist_entry): Add
3161 <thread_obj>: Now a gdbpy_ref.
3162 (thread_to_thread_object): Update.
3163 (add_thread_object): Use new.
3164 (delete_thread_object): Use delete.
3165 (infpy_threads): Update.
3166 (py_free_inferior): Update. Construct "inf_obj" after acquiring
3169 2019-07-10 Tom Tromey <tromey@adacore.com>
3171 * valops.c (value_cast): Specialize error message for Ada.
3173 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3175 * breakpoint.c (breakpoint_1): Update doc and parameter names.
3177 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3179 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
3180 bpstat_should_step): Return bool, adjust comments.
3181 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
3182 bpstat_should_step): Likewise.
3184 2019-07-10 Alan Hayward <alan.hayward@arm.com>
3186 * features/Makefile: Use feature target descriptions for Arm.
3187 * features/arm/arm-core.c: Generate new file.
3188 * features/arm/arm-fpa.c: Likewise.
3189 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
3190 * features/arm/arm-m-profile.c: Likewise.
3191 * features/arm/arm-vfpv2.c: Likewise.
3192 * features/arm/arm-vfpv3.c: Likewise.
3193 * features/arm/xscale-iwmmxt.c: Likewise.
3194 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
3196 2019-07-10 Alan Hayward <alan.hayward@arm.com>
3198 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
3201 2019-07-10 Alan Hayward <alan.hayward@arm.com>
3203 * features/aarch64-pauth.c: Regenerate.
3205 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
3207 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
3209 (bpstat_what): Use false instead of 0.
3211 2019-07-09 Pedro Alves <palves@redhat.com>
3213 * break-catch-throw.c (is_exception_catchpoint): New.
3214 * breakpoint.c (print_one_breakpoint_location): New parameter
3215 'raw_loc'. Handle it. Use
3216 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
3217 looking at the breakpoint's type.
3218 (print_one_breakpoint): If handling "maint info breakpoints", also
3219 print locations of exception catchpoints.
3220 * breakpoint.h (is_exception_catchpoint): Declare.
3222 2019-07-09 Pedro Alves <palves@redhat.com>
3224 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
3226 (allocate_location_exception_catchpoint): New.
3227 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
3228 (initialize_throw_catchpoint_ops): Install
3229 allocate_location_exception_catchpoint as allocate_location
3231 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
3232 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
3234 (breakpoint_address_is_meaningful): Delete.
3235 (bl_address_is_meaningful): New.
3236 (breakpoint_locations_match): Adjust comment.
3237 (bp_location_from_bp_type): New, factored out of...
3238 (bp_location::bp_location(breakpoint *)): ... this.
3239 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
3241 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
3242 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
3243 breakpoint_address_is_meaningful.
3244 (bp_locations_compare): Adjust comment.
3245 (update_global_location_list): Use bl_address_is_meaningful
3246 instead of breakpoint_address_is_meaningful.
3247 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
3249 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
3250 * python/py-breakpoint.c (bppy_get_location): No longer check
3251 whether location is null.
3253 2019-07-09 Pedro Alves <palves@redhat.com>
3256 * breakpoint.c (print_one_breakpoint_location): Remove
3257 single-location assert.
3259 2019-07-09 Tom Tromey <tom@tromey.com>
3261 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
3262 * configure: Rebuild.
3263 * configure.ac: Change common to gdbsupport.
3264 * gdbsupport: Rename from common.
3265 * acinclude.m4: Change common to gdbsupport.
3266 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
3267 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
3269 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
3270 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
3271 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
3272 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
3273 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
3274 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
3275 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
3276 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
3277 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
3278 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
3279 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
3280 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
3281 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
3282 coff-pe-read.c, command.h, compile/compile-c-support.c,
3283 compile/compile-c.h, compile/compile-cplus-symbols.c,
3284 compile/compile-cplus-types.c, compile/compile-cplus.h,
3285 compile/compile-loc2c.c, compile/compile.c, completer.c,
3286 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
3287 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
3288 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
3289 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
3290 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
3291 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
3292 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
3293 features/aarch64-core.c, features/aarch64-fpu.c,
3294 features/aarch64-pauth.c, features/aarch64-sve.c,
3295 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
3296 features/i386/32bit-core.c, features/i386/32bit-linux.c,
3297 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
3298 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
3299 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
3300 features/i386/64bit-core.c, features/i386/64bit-linux.c,
3301 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
3302 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
3303 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
3304 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
3305 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
3306 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
3307 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
3308 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
3309 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
3310 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
3311 go32-nat.c, guile/guile.c, guile/scm-ports.c,
3312 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
3313 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
3314 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
3315 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
3316 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
3317 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
3318 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
3319 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
3320 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
3321 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
3322 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
3323 minsyms.c, mips-linux-tdep.c, namespace.h,
3324 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
3325 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
3326 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
3327 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
3328 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
3329 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
3330 nat/linux-waitpid.c, nat/mips-linux-watch.c,
3331 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
3332 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
3333 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
3334 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
3335 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
3336 procfs.c, producer.c, progspace.h, psymtab.h,
3337 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
3338 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
3339 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
3340 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
3341 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
3342 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
3343 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
3344 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
3345 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
3346 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
3347 target-memory.c, target.c, target.h, target/waitstatus.c,
3348 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
3349 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
3350 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
3351 unittests/array-view-selftests.c,
3352 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
3353 unittests/common-utils-selftests.c,
3354 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
3355 unittests/format_pieces-selftests.c,
3356 unittests/function-view-selftests.c,
3357 unittests/lookup_name_info-selftests.c,
3358 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
3359 unittests/mkdir-recursive-selftests.c,
3360 unittests/observable-selftests.c,
3361 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
3362 unittests/parse-connection-spec-selftests.c,
3363 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
3364 unittests/scoped_fd-selftests.c,
3365 unittests/scoped_mmap-selftests.c,
3366 unittests/scoped_restore-selftests.c,
3367 unittests/string_view-selftests.c, unittests/style-selftests.c,
3368 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
3369 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
3370 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
3371 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
3372 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
3373 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
3375 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3377 * linespec.c (decode_digits_list_mode): Set explicit_line to a
3379 (decode_digits_ordinary): Set explicit_line field in sal.
3380 * symtab.c (skip_prologue_sal): Don't skip prologue for a
3381 symtab_and_line that was set on an explicit line number in
3382 assembler code. Do always update the recorded symtab and line if
3383 we do skip the prologue.
3385 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3387 * breakpoint.c (set_breakpoint_location_function): Remove
3388 explicit_loc parameter.
3389 (momentary_breakpoint_from_master): Update call to
3390 set_breakpoint_location_function.
3391 (add_location_to_breakpoint): Likewise.
3393 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3395 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
3396 required features based on default bfd type when no specific bfd
3399 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3401 * NEWS: Mention that GDB printf and eval commands can now print
3402 C-style and Ada-style convenience var strings without
3403 calling the inferior.
3404 * printcmd.c (printf_c_string): Locally print GDB internal var
3405 instead of transiting via the inferior.
3406 (printf_wide_c_string): Likewise.
3408 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3410 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
3412 2019-07-04 Tom Tromey <tom@tromey.com>
3415 * tui/tui-winsource.c (tui_clear_source_content): Update.
3416 (tui_source_window_base::set_is_exec_point_at): Fix comment.
3417 (tui_update_breakpoint_info): Update.
3418 (tui_set_exec_info_content): Update.
3419 * tui/tui-source.c (tui_set_source_content_nil): Update.
3420 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
3422 * tui/tui-data.h (enum tui_bp_flag): New.
3423 (tui_bp_flags): New enum flags type.
3424 (struct tui_source_element) <break_mode>: Change type. Rename
3426 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
3427 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
3429 * tui/tui-winsource.h: Fix comment.
3431 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3433 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
3434 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
3435 (store_fpregs_to_thread)
3436 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
3437 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
3438 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
3439 (IWMMXT_REGS_SIZE): Add define.
3440 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
3441 (fetch_vfp_regs, store_vfp_regs)
3442 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
3443 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
3445 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3447 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
3449 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
3450 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
3451 (ARM_INT_REGISTER_SIZE): ...to this.
3452 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
3453 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
3454 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
3455 (arm_linux_collect_gregset, supply_nwfpe_register)
3456 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
3458 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
3459 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
3460 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
3461 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
3462 (arm_return_in_memory, arm_store_return_value)
3463 (arm_get_longjmp_target, arm_register_g_packet_guesses)
3464 (arm_record_ld_st_multiple): Likewise.
3465 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
3466 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
3468 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3470 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
3471 AARCH64_DISPLACED_MODIFIED_INSNS.
3472 * aarch64-tdep.c (struct aarch64_displaced_step_data)
3473 (aarch64_displaced_step_copy_insn): Likewise.
3474 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
3475 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
3476 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
3477 ARM_DISPLACED_MODIFIED_INSNS.
3478 * arm-tdep.c (arm_gdbarch_init): Likewise.
3479 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
3480 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
3481 (struct arm_displaced_step_closure): Use
3482 ARM_DISPLACED_MODIFIED_INSNS.
3484 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3486 * features/Makefile: Remove unused xml files.
3487 * features/aarch64.xml: Remove.
3488 * features/i386/amd64-avx-avx512-linux.xml: Remove.
3489 * features/i386/amd64-avx-avx512.xml: Remove.
3490 * features/i386/amd64-avx-linux.xml: Remove.
3491 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
3492 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
3493 * features/i386/amd64-avx-mpx-linux.xml: Remove.
3494 * features/i386/amd64-avx-mpx.xml: Remove.
3495 * features/i386/amd64-avx.xml: Remove.
3496 * features/i386/amd64-linux.xml: Remove.
3497 * features/i386/amd64-mpx-linux.xml: Remove.
3498 * features/i386/amd64-mpx.xml: Remove.
3499 * features/i386/amd64.xml: Remove.
3500 * features/i386/i386-avx-avx512-linux.xml: Remove.
3501 * features/i386/i386-avx-avx512.xml: Remove.
3502 * features/i386/i386-avx-linux.xml: Remove.
3503 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
3504 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
3505 * features/i386/i386-avx-mpx-linux.xml: Remove.
3506 * features/i386/i386-avx-mpx.xml: Remove.
3507 * features/i386/i386-avx.xml: Remove.
3508 * features/i386/i386-linux.xml: Remove.
3509 * features/i386/i386-mmx-linux.xml: Remove.
3510 * features/i386/i386-mmx.xml: Remove.
3511 * features/i386/i386-mpx-linux.xml: Remove.
3512 * features/i386/i386-mpx.xml: Remove.
3513 * features/i386/i386.xml: Remove.
3514 * features/i386/x32-avx-avx512-linux.xml: Remove.
3515 * features/i386/x32-avx-linux.xml: Remove.
3516 * features/i386/x32-linux.xml: Remove.
3518 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3520 * regformats/aarch64.dat: Remove.
3521 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
3522 * regformats/i386/amd64-avx-linux.dat: Remove.
3523 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
3524 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
3525 * regformats/i386/amd64-linux.dat: Remove.
3526 * regformats/i386/amd64-mpx-linux.dat: Remove.
3527 * regformats/i386/amd64.dat: Remove.
3528 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
3529 * regformats/i386/i386-avx-linux.dat: Remove.
3530 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
3531 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
3532 * regformats/i386/i386-linux.dat: Remove.
3533 * regformats/i386/i386-mmx-linux.dat: Remove.
3534 * regformats/i386/i386-mpx-linux.dat: Remove.
3535 * regformats/i386/i386.dat: Remove.
3536 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
3537 * regformats/i386/x32-avx-linux.dat: Remove.
3538 * regformats/i386/x32-linux.dat: Remove.
3540 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3542 * aarch64-tdep.c: Remove xml self tests.
3543 * amd64-linux-tdep.c: Likewise.
3544 * amd64-tdep.c: Likewise.
3545 * i386-linux-tdep.c: Likewise.
3546 * i386-tdep.c: Likewise.
3548 2019-07-03 Pedro Alves <palves@redhat.com>
3551 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
3552 (pipe_cmd_option_defs): New.
3553 (make_pipe_cmd_options_def_group): New.
3554 (pipe_command): Use gdb::option::process_options.
3555 (pipe_command_completer): New function.
3556 (_initialize_cli_cmds): Install completer for "pipe" command.
3558 2019-07-03 Pedro Alves <palves@redhat.com>
3560 * cli/cli-option.c (union option_value) <string>: New field.
3561 (struct option_def_and_value): Add ctor, move ctor, dtor and
3562 use DISABLE_COPY_AND_ASSIGN.
3563 (option_def_and_value::clear_value): New.
3564 (parse_option, save_option_value_in_ctx, get_val_type_str)
3565 (add_setshow_cmds_for_options): Handle var_string.
3566 * cli-option.h (union option_def::var_address) <string>: New
3568 (struct string_option_def): New.
3569 * maint-test-options.c (struct test_options_opts): Add default
3570 ctor and use DISABLE_COPY_AND_ASSIGN.
3571 <string_opt>: New field.
3572 (test_options_opts::~test_options_opts): New.
3573 (test_options_opts::dump): Also dump "-string".
3574 (test_options_option_defs): Install "string.
3576 2019-07-03 Pedro Alves <palves@redhat.com>
3578 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
3579 option_value with a null enumeration.
3580 (complete_options): Save the option values in the context.
3581 (save_option_value_in_ctx): New, factored out from ...
3582 (process_options): ... here.
3583 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
3585 * maint-test-options.c (test_options_opts::dump): New, factored
3587 (maintenance_test_options_command_mode): ... here.
3588 (maintenance_test_options_command_completion_result): Delete.
3589 (maintenance_test_options_command_completion_text): Update
3591 (maintenance_show_test_options_completion_result): Change
3592 prototype. Just print
3593 maintenance_test_options_command_completion_text.
3594 (save_completion_result): New.
3595 (maintenance_test_options_completer_mode): Pass options context to
3596 complete_options, and then save a dump.
3597 (_initialize_maint_test_options): Use add_cmd to install "maint
3598 show test-options-completion-result".
3600 2019-07-03 Pedro Alves <palves@redhat.com>
3602 * NEWS (New commands): Mention "with" and "maint with".
3603 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
3604 (with_command, with_command_completer): New.
3605 (pipe_command): Adjust to new repeat_previous
3607 (_initialize_cli_cmds): Install the "with" command and its "w"
3609 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
3611 * cli/cli-setshow.c (parse_cli_var_uinteger)
3612 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
3613 argument strings for all var_types.
3614 (get_setshow_command_value_string): New, factored out from ...
3615 (do_show_command): ... this.
3616 * cli/cli-setshow.h: Include <string>.
3617 (get_setshow_command_value_string): Declare.
3618 * command.h (repeat_previous): Now returns const char *. Adjust
3620 * maint.c: Include "cli/cli-cmds.h".
3621 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
3622 (_initialize_maint_cmds): Register the "maintenance with" command.
3623 * top.c (repeat_previous): Move bits from pipe_command here:
3624 Return the saved command line, if any; error out if there's no
3625 command to relaunch.
3627 2019-07-03 Pedro Alves <palves@redhat.com>
3629 * NEWS (New commands): Mention "maint set/show test-settings"
3630 instead of "maint test-settings".
3631 * maint-test-settings.c (maintenance_test_settings_list): Delete.
3632 (maintenance_test_settings_set_list): Rename to ...
3633 (maintenance_set_test_settings_list): ... this.
3634 (maintenance_test_settings_show_list): Rename to ...
3635 (maintenance_show_test_settings_list): ... this.
3636 (maintenance_test_settings_cmd): Delete.
3637 (maintenance_test_settings_set_cmd): ...
3638 (maintenance_set_test_settings_cmd): ... this.
3639 (maintenance_test_settings_show_cmd): ...
3640 (maintenance_show_test_settings_cmd): ... this.
3641 (maintenance_test_settings_show_value_cmd):
3642 (maintenance_show_test_settings_value_cmd): ... this.
3643 (_initialize_maint_test_settings): No longer install the "maint
3644 test-settings" prefix command. Rename "maint test-settings set"
3645 to "maint set test-settings", and "maint test-settings show" to
3646 "maint show test-settings". Adjust all subcommands.
3648 2019-07-03 Pedro Alves <palves@redhat.com>
3650 * maint-test-settings.c: Fix file's intro comment. Replace all
3651 references to "test-options" with references to "test-settings",
3654 2019-07-03 Pedro Alves <palves@redhat.com>
3656 * maint-test-settings.c (maintenance_test_settings_xxx)
3657 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
3659 (maintenance_test_settings_enums): Use them.
3660 (maintenance_test_settings_enum): Default to
3661 maintenance_test_settings_xxx.
3662 (_initialize_maint_test_settings): Initialize
3663 MAINTENANCE_TEST_SETTINGS_FILENAME.
3665 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3667 * breakpoint.h (remove_breakpoints_inf): Change return type to
3668 void, move function documentation here.
3669 * breakpoint.c (remove_breakpoints_inf): Change return type to
3670 void, move function documentation to header.
3672 2019-07-02 Pedro Alves <palves@redhat.com>
3674 * NEWS (Completion improvements): Mention "info threads".
3675 * thread.c (struct info_threads_opts, info_threads_option_defs)
3676 (make_info_threads_options_def_group): New.
3677 (info_threads_command): Use gdb::option::process_options.
3678 (info_threads_command_completer): New.
3679 (_initialize_thread): Use gdb::option::build_help to build the
3680 help text for "info threads".
3682 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3684 * defs.h (generic_load): Move from here...
3685 * symfile.h (generic_load): ... to here. Rename name parameter
3687 * symfile.c (generic_load): Add comment.
3689 2019-07-01 Tom Tromey <tromey@adacore.com>
3692 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
3693 declaration of without_params. Fix formatting.
3695 2019-07-01 Tom Tromey <tromey@adacore.com>
3697 * ada-exp.y (find_primitive_type): Update.
3698 * ada-lang.h (ada_lookup_symbol): Update.
3699 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
3701 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
3703 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
3705 PR breakpoints/24541
3706 * gdbarch.c: Regenerate.
3707 * gdbarch.h: Regenerate.
3708 * gdbarch.sh: Add 'stap_adjust_register'.
3709 * i386-tdep.c: Include '<unordered_set>'.
3710 (i386_stap_adjust_register): New function.
3711 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
3712 * stap-probe.c (stap_parse_register_operand): Call
3713 'gdbarch_stap_adjust_register'.
3715 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
3718 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
3719 * python/python.c (do_start_initialization): Use 'xmalloc'
3720 instead of 'PyMem_Malloc'.
3722 2019-06-28 Tom Tromey <tromey@adacore.com>
3724 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
3727 2019-06-27 Tom Tromey <tromey@adacore.com>
3729 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
3731 (arm_find_mapping_symbol, arm_record_special_symbol)
3732 (_initialize_arm_tdep): Update.
3733 (arm_objfile_data_free): Remove.
3735 2019-06-27 Tom Tromey <tromey@adacore.com>
3737 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
3738 to cp_print_static_field.
3740 2019-06-26 Tom Tromey <tromey@adacore.com>
3742 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
3743 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
3746 2019-06-26 Alan Hayward <alan.hayward@arm.com>
3748 * features/aarch64-core.c (create_feature_aarch64_core):
3750 * features/aarch64-core.xml: Add cpsr flags.
3752 2019-06-26 Alan Hayward <alan.hayward@arm.com>
3754 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
3755 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
3757 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
3759 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
3761 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
3763 (arm_record_special_symbol): Don't insert new symbol in sorted
3764 position, push it at the end.
3766 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
3768 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
3769 (arm_mapping_symbol_s): Remove.
3770 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
3771 (arm_mapping_symbol_vec): New typedef.
3772 (struct arm_per_objfile): Add constructor.
3773 <section_maps>: Change type to
3774 std::unique_ptr<arm_mapping_symbol_vec[]>.
3775 (arm_compare_mapping_symbols): Remove.
3776 (arm_find_mapping_symbol): Adjust to section_maps type change.
3777 (arm_objfile_data_free): Call delete on arm_per_objfile.
3778 (arm_record_special_symbol): Adjust to section_maps type change.
3779 Allocate arm_per_objfile with new.
3781 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3783 * cli/cli-cmds.c (alias_command): Compare the alias prefix
3784 with the command prefix.
3786 2019-06-25 Tom Tromey <tom@tromey.com>
3788 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
3789 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
3791 2019-06-25 Tom Tromey <tom@tromey.com>
3793 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
3795 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
3798 2019-06-25 Tom Tromey <tom@tromey.com>
3800 * tui/tui-winsource.c
3801 (tui_source_window_base::set_is_exec_point_at): Add check against
3804 2019-06-25 Tom Tromey <tom@tromey.com>
3806 * tui/tui-source.c (tui_set_source_content): Don't check before
3808 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
3810 2019-06-25 Tom Tromey <tom@tromey.com>
3812 * tui/tui-winsource.h (tui_update_source_window_as_is)
3813 (tui_alloc_source_buffer, tui_line_is_displayed)
3814 (tui_addr_is_displayed): Change type of win_info.
3815 * tui/tui-winsource.c (tui_update_source_window_as_is)
3816 (tui_clear_source_content, tui_show_source_line)
3817 (tui_show_source_content, tui_source_window_base::refill)
3818 (tui_source_window_base::set_is_exec_point_at)
3819 (tui_source_window_base::set_is_exec_point_at)
3820 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
3821 (tui_alloc_source_buffer, tui_line_is_displayed)
3822 (tui_addr_is_displayed): Change type of win_info. Update.
3823 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3824 (tui_source_window_base::do_make_visible_with_new_height):
3826 * tui/tui-source.c (tui_set_source_content)
3827 (tui_set_source_content_nil)
3828 (tui_source_window::do_scroll_vertical): Update.
3829 * tui/tui-layout.c (show_layout): Update.
3830 * tui/tui-disasm.c (tui_set_disassem_content)
3831 (tui_disasm_window::do_scroll_vertical): Update.
3832 * tui/tui-data.h (tui_win_content): Remove.
3833 (struct tui_gen_win_info) <content, content_size>: Remove.
3834 (struct tui_source_element): Add initializers and destructor.
3835 (union tui_which_element, struct tui_win_element): Remove.
3836 (struct tui_source_window_base) <content>: New field.
3837 (struct tui_data_window): Remove destructor.
3838 (tui_alloc_content, tui_free_win_content)
3839 (tui_free_all_source_wins_content): Don't declare.
3840 * tui/tui-data.c (tui_initialize_static_data): Update.
3841 (init_content_element, tui_alloc_content): Remove.
3842 (~tui_gen_win_info): Update.
3843 (~tui_data_window, tui_free_all_source_wins_content)
3844 (tui_free_win_content, free_content, free_content_elements):
3847 2019-06-25 Tom Tromey <tom@tromey.com>
3849 * tui/tui-winsource.h (tui_clear_source_content)
3850 (tui_erase_source_content, tui_show_source_content): Change type
3852 * tui/tui-winsource.c (tui_clear_source_content)
3853 (tui_erase_source_content, tui_show_source_content): Change type
3855 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3856 * tui/tui-source.h (tui_set_source_content_nil): Change type of
3858 * tui/tui-source.c (tui_set_source_content_nil): Change type of
3860 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
3862 2019-06-25 Tom Tromey <tom@tromey.com>
3864 * tui/tui-winsource.c (tui_clear_source_content)
3865 (tui_source_window_base::set_is_exec_point_at): Update.
3866 * tui/tui-source.c (tui_set_source_content_nil): Update.
3867 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
3869 * tui/tui-data.c (init_content_element): Update.
3871 2019-06-25 Tom Tromey <tom@tromey.com>
3873 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
3874 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
3875 * tui/tui-layout.c (init_and_make_win): Update.
3876 * tui/tui.h (enum tui_win_type): Update.
3877 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
3878 tui_win_is_auxillary.
3879 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
3880 tui_win_is_auxillary.
3882 2019-06-25 Tom Tromey <tom@tromey.com>
3884 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
3885 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
3886 (tui_delete_data_content_windows, tui_display_all_data)
3887 (tui_data_window::do_scroll_vertical, tui_display_data_from):
3889 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
3890 * tui/tui-regs.c (tui_last_regs_line_no)
3891 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
3892 (tui_show_registers): Update.
3893 (tui_show_register_group): Return void. Update.
3894 (tui_display_registers_from, tui_display_reg_element_at_line)
3895 (tui_display_registers_from_line, tui_check_register_values):
3897 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
3899 (struct tui_data_window) <regs_content>: Now a std::vector.
3900 <regs_content_count>: Remove.
3901 (tui_add_content_elements, tui_free_data_content): Don't declare.
3902 * tui/tui-data.c (tui_data_window::clear_detail): Update.
3903 (init_content_element): Remove DATA_WIN case. Add assert.
3904 (tui_add_content_elements): Remove.
3905 (tui_data_window): Update.
3906 (tui_free_data_content): Remove.
3907 (free_content_elements): Remove DATA_WIN case.
3909 2019-06-25 Tom Tromey <tom@tromey.com>
3911 * tui/tui-data.c (tui_data_item_window): Update.
3912 * tui/tui-windata.h (tui_check_data_values): Don't declare.
3913 * tui/tui-windata.c (tui_display_all_data)
3914 (tui_display_data_from_line): Update.
3915 (tui_check_data_values): Remove.
3916 * tui/tui-regs.c (tui_show_register_group)
3917 (tui_display_reg_element_at_line): Update.
3918 * tui/tui-hooks.c (tui_register_changed)
3919 (tui_refresh_frame_and_register_information): Call
3920 tui_check_register_values.
3921 * tui/tui-data.h (struct tui_data_window) <data_content,
3922 data_content_count, data_type>: Remove.
3923 (enum tui_data_type): Remove.
3925 * tui/tui-data.c (tui_data_window::clear_detail)
3926 (~tui_data_window): Update.
3928 2019-06-25 Tom Tromey <tom@tromey.com>
3930 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
3932 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
3933 Rename from tui_first_data_item_displayed. Update.
3934 (tui_data_window::refresh_all)
3935 (tui_data_window::do_scroll_vertical): Update.
3936 * tui/tui-data.h (struct tui_data_window)
3937 <first_data_item_displayed>: Declare new method.
3939 2019-06-25 Tom Tromey <tom@tromey.com>
3941 * tui/tui-data.h (tui_init_generic_part): Don't declare.
3942 * tui/tui-data.c (tui_init_generic_part): Remove, moving
3944 (tui_initialize_static_data): ...here.
3946 2019-06-25 Tom Tromey <tom@tromey.com>
3948 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
3949 (tui_display_registers_from, tui_check_register_values): Update.
3950 (tui_display_register): Remove win_info parameter; update.
3951 (tui_get_register): Change type of parameters.
3952 * tui/tui-data.h (struct tui_data_element): Remove.
3953 (union tui_which_element) <data>: Remove.
3954 <data_window>: Change type.
3955 (struct tui_data_item_window): New.
3956 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
3958 (~tui_data_item_window): New destructor.
3959 (free_content_elements): Remove DATA_ITEM_WIN case.
3961 2019-06-25 Tom Tromey <tom@tromey.com>
3963 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
3966 2019-06-25 Tom Tromey <tom@tromey.com>
3968 * tui/tui-data.h (struct tui_command_element): Remove.
3969 (union tui_which_element) <command>: Remove.
3970 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
3972 (free_content_elements): Remove CMD_WIN case.
3974 2019-06-25 Tom Tromey <tom@tromey.com>
3976 * tui/tui-layout.c (tui_set_layout): Update.
3977 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
3978 * tui/tui-data.c (layout_def): Update.
3980 2019-06-25 Tom Tromey <tom@tromey.com>
3982 * tui/tui-wingeneral.c (tui_refresh_all): Update.
3983 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3984 (tui_source_window_base::set_new_height): Update.
3985 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
3987 (tui_set_locator_fullname, tui_set_locator_info)
3988 (tui_show_frame_info): Update.
3989 * tui/tui-source.c (tui_set_source_content)
3990 (tui_source_is_displayed): Update.
3991 * tui/tui-layout.c (show_source_disasm_command, show_data)
3992 (show_source_or_disasm_and_command): Update.
3993 * tui/tui-disasm.c (tui_set_disassem_content)
3994 (tui_get_begin_asm_address): Update.
3995 * tui/tui-data.h (struct tui_locator_element): Remove.
3996 (union tui_which_element) <locator>: Remove.
3997 (struct tui_locator_window): New.
3998 (tui_locator_win_info_ptr): Change return type.
3999 * tui/tui-data.c (_locator): Change type.
4000 (tui_locator_win_info_ptr): Change return type.
4001 (init_content_element): Remove LOCATOR_WIN case. Add assert.
4002 (tui_alloc_content): Add assert.
4004 2019-06-25 Tom Tromey <tom@tromey.com>
4006 * tui/tui-winsource.c
4007 (tui_exec_info_window::maybe_allocate_content): New method.
4008 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
4009 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
4010 (make_source_or_disasm_window): Add cast.
4011 * tui/tui-data.h (union tui_which_element) <simple_string>:
4013 (struct tui_source_info): New.
4014 (struct tui_source_window_base) <execution_info>: Change type.
4015 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
4016 case, and add assert.
4017 (tui_alloc_content): Add assert.
4019 2019-06-25 Tom Tromey <tom@tromey.com>
4021 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
4022 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
4023 * tui/tui-data.c (tui_alloc_win_info): Remove.
4025 2019-06-25 Tom Tromey <tom@tromey.com>
4027 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
4028 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
4031 2019-06-25 Tom Tromey <tom@tromey.com>
4033 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
4034 make_visible_with_new_height method.
4035 (tui_win_info::make_visible_with_new_height): New method.
4036 (tui_source_window_base::do_make_visible_with_new_height)
4037 (tui_data_window::do_make_visible_with_new_height)
4038 (tui_cmd_window::do_make_visible_with_new_height): New methods.
4039 (make_visible_with_new_height): Remove.
4040 (tui_resize_all, tui_adjust_win_heights): Use
4041 make_visible_with_new_height method.
4042 * tui/tui-data.h (struct tui_win_info)
4043 <do_make_visible_with_new_height, make_visible_with_new_height>:
4045 (struct tui_source_window_base, struct tui_data_window)
4046 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
4049 2019-06-25 Tom Tromey <tom@tromey.com>
4051 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
4053 (update_tab_width): Call update_tab_width method.
4054 * tui/tui-data.h (struct tui_win_info)
4055 (struct tui_source_window_base) <update_tab_width>: New methods.
4057 2019-06-25 Tom Tromey <tom@tromey.com>
4059 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
4061 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
4063 (tui_gen_win_info::make_visible): Update.
4064 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
4066 * tui/tui-data.h (enum tui_box): New enum.
4067 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
4069 2019-06-25 Tom Tromey <tom@tromey.com>
4071 * tui/tui-layout.c (make_source_or_disasm_window): Always use
4072 init_and_make_win for EXEC_INFO_WIN.
4073 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
4075 (struct tui_win_info) <~tui_win_info>: Inline.
4076 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4078 * tui/tui-data.c (source_win, disasm_win): Remove globals.
4079 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4081 (tui_initialize_static_data): Update.
4082 (~tui_gen_win_info): Handle more cleanup here.
4083 (~tui_source_window_base): Delete "execution_info".
4084 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
4086 2019-06-25 Tom Tromey <tom@tromey.com>
4088 * tui/tui-layout.c (make_command_window): Don't set
4090 (show_source_disasm_command): Call the reset method.
4091 (show_data): Don't set can_highlight. Call the reset method.
4092 (tui_gen_win_info::reset): Rename from init_gen_win_info
4093 (init_and_make_win): Simplify. Return tui_gen_win_info.
4094 (show_source_or_disasm_and_command): Call the reset method.
4095 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
4096 (struct tui_cmd_window): Set can_highlight.
4098 2019-06-25 Tom Tromey <tom@tromey.com>
4100 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
4102 (tui_make_visible, tui_make_invisible): Rewrite.
4103 (tui_win_info::make_visible): Remove.
4104 (tui_source_window_base::make_visible): Update.
4105 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
4106 method. Moved from...
4107 (struct tui_win_info) <make_visible>: ...here.
4109 2019-06-25 Tom Tromey <tom@tromey.com>
4111 * tui/tui-winsource.c
4112 (tui_source_window_base::do_scroll_horizontal): Remove direction
4114 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
4115 direction parameter.
4116 * tui/tui-win.c (tui_win_info::forward_scroll)
4117 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
4118 (tui_win_info::right_scroll): Update.
4119 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
4120 direction parameter.
4121 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
4122 direction parameter.
4123 * tui/tui-data.h (enum tui_scroll_direction): Remove.
4124 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
4125 Remove direction parameter.
4126 (struct tui_source_window_base, struct tui_source_window)
4127 (struct tui_disasm_window, struct tui_data_window)
4128 (struct tui_cmd_window): Update.
4130 2019-06-25 Tom Tromey <tom@tromey.com>
4132 * tui/tui-winsource.h (tui_set_exec_info_content)
4133 (tui_show_exec_info_content, tui_erase_exec_info_content)
4134 (tui_clear_exec_info_content, tui_update_exec_info): Change
4135 argument to tui_source_window_base.
4136 * tui/tui-winsource.c (tui_set_exec_info_content)
4137 (tui_show_exec_info_content, tui_erase_exec_info_content)
4138 (tui_clear_exec_info_content, tui_update_exec_info): Change
4139 argument to tui_source_window_base.
4141 2019-06-25 Tom Tromey <tom@tromey.com>
4143 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
4144 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
4146 2019-06-25 Tom Tromey <tom@tromey.com>
4148 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
4151 2019-06-25 Tom Tromey <tom@tromey.com>
4153 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
4155 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
4157 * tui/tui-source.c (tui_set_source_content): Update.
4158 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4160 2019-06-25 Tom Tromey <tom@tromey.com>
4162 * tui/tui-win.c (window_name_completer, tui_set_focus)
4163 (tui_all_windows_info): Use name method.
4164 * tui/tui-data.h (struct tui_gen_win_info)
4165 (struct tui_source_window, struct tui_disasm_window)
4166 (struct tui_data_window, struct tui_cmd_window) <name>: New
4168 (tui_win_name): Don't declare.
4169 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
4170 (tui_win_name): Remove.
4172 2019-06-25 Tom Tromey <tom@tromey.com>
4174 * tui/tui-winsource.h (tui_update_source_window)
4175 (tui_update_source_window_as_is): Change parameter type.
4176 * tui/tui-winsource.c (tui_update_source_window): Change win_info
4177 to be a tui_source_window_base.
4178 (tui_update_source_window_as_is): Likewise.
4179 * tui/tui-win.c (make_visible_with_new_height): Update.
4181 2019-06-25 Tom Tromey <tom@tromey.com>
4183 * tui/tui-winsource.c (tui_erase_source_content)
4184 (tui_show_source_content, tui_show_exec_info_content)
4185 (tui_erase_exec_info_content): Use refresh_window method.
4186 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
4187 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
4188 from tui_refresh_win.
4189 (tui_data_window::refresh_window): New method.
4190 (tui_win_info::refresh, tui_source_window_base::refresh)
4191 (tui_refresh_all): Use refresh_window method.
4192 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
4194 * tui/tui-regs.c (tui_display_register): Call refresh_window
4196 * tui/tui-layout.c (show_source_disasm_command)
4197 (show_source_or_disasm_and_command): Call refresh_window method.
4198 * tui/tui-data.h (struct tui_gen_win_info)
4199 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
4202 2019-06-25 Tom Tromey <tom@tromey.com>
4204 * tui/tui.c (tui_rl_other_window, tui_enable)
4205 (tui_is_window_visible, tui_get_command_dimension): Update.
4206 * tui/tui-winsource.c (tui_update_source_window_as_is)
4207 (tui_clear_source_content, tui_erase_source_content)
4208 (tui_show_source_line, tui_source_window_base::refill)
4209 (tui_source_window_base::do_scroll_horizontal)
4210 (tui_source_window_base::set_is_exec_point_at)
4211 (tui_update_breakpoint_info, tui_set_exec_info_content)
4212 (tui_alloc_source_buffer, tui_line_is_displayed)
4213 (tui_addr_is_displayed): Update.
4214 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
4215 (tui_check_and_display_highlight_if_needed)
4216 (tui_win_info::make_visible, tui_win_info::refresh)
4217 (tui_refresh_all): Update.
4218 * tui/tui-windata.c (tui_first_data_item_displayed)
4219 (tui_delete_data_content_windows, tui_erase_data_content)
4220 (tui_display_all_data, tui_data_window::refresh_all)
4221 (tui_check_data_values): Update.
4222 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
4223 (tui_set_win_focus_to, tui_win_info::forward_scroll)
4224 (tui_win_info::backward_scroll, tui_refresh_all_win)
4225 (tui_resize_all, tui_set_focus, tui_all_windows_info)
4226 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
4227 (tui_source_window_base::set_new_height)
4228 (tui_data_window::set_new_height)
4229 (make_invisible_and_set_new_height)
4230 (make_visible_with_new_height, new_height_ok)
4231 (parse_scrolling_args): Update.
4232 * tui/tui-stack.c (tui_show_frame_info): Update.
4233 * tui/tui-source.c (tui_set_source_content)
4234 (tui_set_source_content_nil, tui_source_is_displayed)
4235 (tui_source_window::do_scroll_vertical): Update.
4236 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4237 (tui_display_registers_from, tui_display_reg_element_at_line)
4238 (tui_check_register_values, tui_reg_command): Update.
4239 * tui/tui-layout.c (tui_default_win_height)
4240 (show_source_disasm_command, show_data, init_and_make_win)
4241 (show_source_or_disasm_and_command): Update.
4242 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
4243 (tui_redisplay_readline, tui_mld_flush)
4244 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
4246 * tui/tui-disasm.c (tui_set_disassem_content)
4247 (tui_disasm_window::do_scroll_vertical): Update.
4248 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
4250 (struct tui_win_info): Derive from tui_gen_win_info.
4251 <~tui_win_info>: Mark as override.
4252 <generic>: Remove member.
4253 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
4254 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
4255 (~tui_data_window, ~tui_win_info)
4256 (tui_free_all_source_wins_content): Update.
4257 * tui/tui-command.c (tui_refresh_cmd_win): Update.
4259 2019-06-25 Tom Tromey <tom@tromey.com>
4261 * tui/tui-layout.c (init_and_make_win): Use new.
4262 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
4263 destructor, initializers.
4264 (tui_alloc_generic_win_info): Don't declare.
4265 * tui/tui-data.c (_locator): Add argument to constructor.
4266 (source_win, disasm_win): New globals.
4267 (exec_info): Remove.
4268 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4270 (tui_alloc_generic_win_info): Remove.
4271 (init_content_element): Use new.
4272 (tui_win_info::tui_win_info): Update.
4273 (free_content_elements) <case DATA_WIN>: Use delete.
4275 2019-06-25 Tom Tromey <tom@tromey.com>
4277 * tui/tui-wingeneral.c (tui_refresh_win): Update.
4278 * tui/tui-windata.c (tui_first_data_item_displayed)
4279 (tui_delete_data_content_windows): Update.
4280 * tui/tui-win.c (tui_data_window::set_new_height): Update.
4281 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4282 (tui_display_registers_from, tui_check_register_values): Update.
4283 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
4285 * tui/tui-data.c (init_content_element): Update. Allocate the new
4287 (tui_free_data_content): Update.
4288 (free_content_elements) <case DATA_WIN>: Free the window.
4290 2019-06-25 Tom Tromey <tom@tromey.com>
4292 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
4294 * tui/tui-layout.c (make_command_window)
4295 (show_source_disasm_command, show_data, init_and_make_win)
4296 (show_source_or_disasm_and_command): Update.
4297 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
4299 <can_highight, is_highlighted>: Now bool.
4300 (tui_set_win_highlight): Don't declare.
4301 * tui/tui-data.c (tui_set_win_highlight): Remove.
4303 2019-06-25 Tom Tromey <tom@tromey.com>
4305 * tui/tui-wingeneral.c (make_visible): Remove check of window
4308 2019-06-25 Tom Tromey <tom@tromey.com>
4310 * tui/tui-win.c (tui_win_info::max_height)
4311 (tui_cmd_window::max_height): New methods.
4312 (new_height_ok): Call max_height.
4313 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
4314 <max_height>: New method.
4316 2019-06-25 Tom Tromey <tom@tromey.com>
4318 * tui/tui-win.c (tui_source_window_base::set_new_height)
4319 (tui_data_window::set_new_height): New methods.
4320 (make_invisible_and_set_new_height): Call set_new_height method.
4321 * tui/tui-data.h (struct tui_win_info)
4322 (struct tui_source_window_base, struct tui_data_window)
4323 <set_new_height>: New method.
4325 2019-06-25 Tom Tromey <tom@tromey.com>
4327 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
4328 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
4329 tui_refresh_data_win.
4330 * tui/tui-win.c (tui_source_window_base::refresh_all): New
4332 (tui_refresh_all_win): Call the refresh_all method.
4333 (tui_set_focus): Likewise.
4334 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
4335 (struct tui_source_window_base, struct tui_data_window) <refresh>:
4338 2019-06-25 Tom Tromey <tom@tromey.com>
4340 * tui/tui-winsource.h (tui_refill_source_window)
4341 (tui_set_is_exec_point_at): Don't declare.
4342 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4343 (tui_source_window_base::refill): Rename from
4344 tui_refill_source_window.
4345 (tui_source_window_base::do_scroll_horizontal): Update.
4346 (tui_source_window_base::set_is_exec_point_at): Rename from
4347 tui_set_is_exec_point_at.
4348 (tui_update_all_breakpoint_info): Update.
4349 * tui/tui-stack.c (tui_show_frame_info): Update.
4350 * tui/tui-layout.c (show_data): Add cast.
4351 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
4352 * tui/tui-data.h (struct tui_source_window_base) <refill,
4353 set_is_exec_point_at>: New methods.
4354 (tui_source_windows, tui_add_to_source_windows): Update types.
4355 (tui_add_to_source_windows): Remove redundant declaration.
4356 * tui/tui-data.c (source_windows): Store tui_source_window_base.
4357 (tui_source_windows): Change return type.
4358 (tui_clear_source_windows_detail): Update.
4359 (tui_add_to_source_windows): Change type of parameter.
4360 (tui_free_all_source_wins_content): Update.
4362 2019-06-25 Tom Tromey <tom@tromey.com>
4364 * tui/tui-wingeneral.c (tui_win_info::refresh)
4365 (tui_source_window_base::refresh): New methods.
4366 (tui_refresh_all): Call the refresh method.
4367 * tui/tui-data.h (struct tui_win_info)
4368 (struct tui_source_window_base) <refresh>: New method.
4370 2019-06-25 Tom Tromey <tom@tromey.com>
4372 * tui/tui.h (tui_is_window_visible): Return bool.
4373 * tui/tui.c (tui_is_window_visible): Return bool.
4374 * tui/tui-wingeneral.c (tui_make_window, make_visible)
4375 (tui_make_visible, tui_make_invisible)
4376 (tui_win_info::make_visible)
4377 (tui_source_window_base::make_visible, make_all_visible)
4378 (tui_make_all_visible, tui_make_all_invisible): Update.
4379 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
4380 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
4382 (struct tui_win_info, struct tui_source_window_base)
4383 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
4384 * tui/tui-data.c (tui_init_generic_part): Update.
4386 2019-06-25 Tom Tromey <tom@tromey.com>
4388 * tui/tui-wingeneral.c (tui_win_info::make_visible)
4389 (tui_source_window_base::make_visible): New methods.
4390 (make_all_visible): Make method call.
4391 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
4392 (struct tui_source_window_base, struct tui_cmd_window): Override
4394 (tui_win_is_source_type): Don't declare.
4395 * tui/tui-data.c (tui_win_is_source_type): Remove.
4397 2019-06-25 Tom Tromey <tom@tromey.com>
4399 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
4402 2019-06-25 Tom Tromey <tom@tromey.com>
4404 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
4405 Inline constructor. Add initializers for members.
4406 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
4407 constructors; now inline in class.
4409 2019-06-25 Tom Tromey <tom@tromey.com>
4411 * tui/tui-regs.c (tui_show_registers): Update.
4412 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
4414 * tui/tui-data.c (tui_data_window::clear_detail)
4415 (tui_data_window): Update.
4417 2019-06-25 Tom Tromey <tom@tromey.com>
4419 * tui/tui-windata.c (tui_display_all_data)
4420 (tui_display_data_from_line, tui_display_data_from)
4421 (tui_check_data_values, tui_data_window::do_scroll_vertical):
4423 * tui/tui-regs.c (tui_last_regs_line_no)
4424 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
4425 (tui_show_registers, tui_show_register_group)
4426 (tui_display_registers_from, tui_display_reg_element_at_line)
4427 (tui_display_registers_from_line, tui_check_register_values)
4428 (tui_reg_next, tui_reg_prev): Update.
4429 * tui/tui-layout.c (tui_set_layout, show_data): Update.
4430 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
4432 (struct tui_win_info) <detail>: Remove. Add new fields from
4434 (TUI_DATA_WIN): Add cast.
4435 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
4436 (~tui_data_window): Simplify.
4438 2019-06-25 Tom Tromey <tom@tromey.com>
4440 * tui/tui-layout.c (show_source_disasm_command)
4441 (show_source_or_disasm_and_command): Update.
4442 * tui/tui-io.c (update_cmdwin_start_line)
4443 (tui_redisplay_readline): Update.
4444 * tui/tui-data.h (struct tui_command_info): Remove.
4445 (struct tui_win_info) <detail>: Remove command_info member.
4446 (struct tui_data_window) <start_line>: New member, from
4448 (TUI_CMD_WIN): Add casts.
4450 2019-06-25 Tom Tromey <tom@tromey.com>
4452 * tui/tui-winsource.c (tui_update_source_window)
4453 (tui_refill_source_window)
4454 (tui_source_window_base::do_scroll_horizontal)
4455 (tui_update_breakpoint_info, tui_set_exec_info_content)
4456 (tui_show_exec_info_content, tui_erase_exec_info_content)
4457 (tui_clear_exec_info_content): Update.
4458 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
4460 * tui/tui-win.c (make_invisible_and_set_new_height)
4461 (make_visible_with_new_height): Update.
4462 * tui/tui-source.c (tui_set_source_content)
4463 (tui_show_symtab_source): Update.
4464 * tui/tui-layout.c (extract_display_start_addr)
4465 (show_source_disasm_command, show_data)
4466 (make_source_or_disasm_window)
4467 (show_source_or_disasm_and_command): Update.
4468 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
4469 (tui_disasm_window::do_scroll_vertical): Remove shadowing
4471 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
4472 to tui_source_window_base.
4473 (struct tui_win_info) <detail>: Remove source_info member.
4474 (struct tui_source_window_base) <has_locator>: Inline.
4475 Move contents from tui_source_info; rename has_locator member to
4477 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
4478 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
4480 (tui_source_window_base::clear_detail, ~tui_source_window_base):
4482 (tui_free_all_source_wins_content): Cast to
4483 tui_source_window_base.
4485 2019-06-25 Tom Tromey <tom@tromey.com>
4487 * tui/tui-win.c (make_invisible_and_set_new_height)
4488 (make_visible_with_new_height): Call has_locator method.
4489 * tui/tui-layout.c (show_source_disasm_command, show_data)
4490 (show_source_or_disasm_and_command): Update for bool change.
4491 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
4492 (tui_win_info) <has_locator>: New method.
4493 (struct tui_source_window_base) <has_locator>: New method.
4494 (tui_win_has_locator): Don't declare.
4495 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
4496 from tui_win_has_locator.
4497 (tui_source_window_base): Use false, not FALSE.
4499 2019-06-25 Tom Tromey <tom@tromey.com>
4501 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
4502 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
4503 clear_detail method directly.
4504 (tui_clear_win_detail): Remove.
4506 2019-06-25 Tom Tromey <tom@tromey.com>
4508 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
4509 "this", not TUI_DISASM_WIN.
4511 2019-06-25 Tom Tromey <tom@tromey.com>
4513 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
4515 * tui/tui-winsource.c
4516 (tui_source_window_base::do_scroll_horizontal): Rename from
4517 tui_horizontal_source_scroll.
4518 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
4519 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
4520 from tui_vertical_data_scroll.
4521 * tui/tui-win.h (tui_scroll): Don't declare.
4522 * tui/tui-win.c (tui_win_info::forward_scroll)
4523 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
4524 (tui_win_info::right_scroll): Rename and update.
4525 (tui_scroll_forward_command, tui_scroll_backward_command)
4526 (tui_scroll_left_command, tui_scroll_right_command): Update.
4527 (tui_scroll): Remove.
4528 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
4529 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
4530 from tui_vertical_source_scroll.
4531 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
4532 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
4533 from tui_vertical_disassem_scroll.
4534 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
4535 do_scroll_horizontal>: New methods.
4536 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
4538 (struct tui_source_window_base): Add do_scroll_horizontal.
4539 (struct tui_source_window, struct tui_disasm_window): Add
4541 (struct tui_data_window, struct tui_cmd_window): Add
4542 do_scroll_horizontal and do_scroll_vertical.
4543 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
4545 2019-06-25 Tom Tromey <tom@tromey.com>
4547 * tui/tui-data.h (struct tui_source_window_base): New struct.
4548 (struct tui_source_window): Derive from tui_source_window_base.
4549 (struct tui_disasm_window): New struct.
4550 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
4551 from tui_source_window::clear_detail.
4552 (tui_source_window_base): Rename from tui_source_window.
4553 (~tui_source_window_base): Rename from ~tui_source_window.
4554 (tui_alloc_win_info): Create a tui_disasm_window.
4556 2019-06-25 Tom Tromey <tom@tromey.com>
4558 * tui/tui-data.h (struct tui_source_window)
4559 (struct tui_data_window): Declare destructors.
4560 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
4562 (tui_win_info): Simplify.
4564 2019-06-25 Tom Tromey <tom@tromey.com>
4566 * tui/tui-winsource.c (tui_display_main)
4567 (tui_update_source_windows_with_addr)
4568 (tui_update_all_breakpoint_info): Update.
4569 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4570 (new_height_ok, parse_scrolling_args): Update.
4571 * tui/tui-stack.c (tui_show_frame_info): Update.
4572 * tui/tui-data.h (struct tui_list): Remove.
4573 (tui_source_windows): Return a reference to a std::vector.
4574 * tui/tui-data.c (source_windows): Now a std::vector.
4575 (tui_source_windows): Change return type.
4576 (tui_clear_source_windows): Rewrite.
4577 (tui_clear_source_windows_detail, tui_add_to_source_windows)
4578 (tui_free_all_source_wins_content): Rewrite.
4580 2019-06-25 Tom Tromey <tom@tromey.com>
4582 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
4583 (struct tui_data_window, struct tui_cmd_window): Declare
4584 clear_detail method.
4585 * tui/tui-data.c (tui_source_window::clear_detail)
4586 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
4588 (tui_clear_win_detail): Simplify.
4590 2019-06-25 Tom Tromey <tom@tromey.com>
4592 * tui/tui-layout.c (make_source_window, make_disasm_window)
4593 (make_source_or_disasm_window): Remove win_info_ptr parameter.
4594 Return the new window.
4595 (show_source_disasm_command, show_data)
4596 (show_source_or_disasm_and_command): Update.
4598 2019-06-25 Tom Tromey <tom@tromey.com>
4600 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
4601 parameter. Return the new window.
4602 (show_source_disasm_command): Update and remove NULL check.
4603 (show_source_or_disasm_and_command): Update.
4605 2019-06-25 Tom Tromey <tom@tromey.com>
4607 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
4609 2019-06-25 Tom Tromey <tom@tromey.com>
4611 * tui/tui-data.h (struct tui_win_info): Make constructor
4612 protected. Make destructor virtual. Add initializers.
4613 (tui_source_window, tui_data_window, tui_cmd_window): New
4615 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
4616 constructor. Add "type" parameter.
4617 (tui_source_window, tui_data_window, tui_cmd_window): New
4619 (tui_alloc_win_info): Instantiate the appropriate subclass.
4621 2019-06-25 Tom Tromey <tom@tromey.com>
4623 * tui/tui-win.c (tui_resize_all): Use delete.
4624 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
4626 (tui_free_window): Don't declare.
4627 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
4630 2019-06-25 Tom Tromey <tom@tromey.com>
4632 * tui/tui-data.h (struct tui_win_info): Add constructor.
4633 * tui/tui-data.c (tui_alloc_win_info): Use new.
4634 (tui_free_window): Use delete.
4636 2019-06-22 Tom Tromey <tom@tromey.com>
4638 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
4640 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
4642 2019-06-22 Tom Tromey <tom@tromey.com>
4644 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
4646 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
4648 2019-06-22 Tom de Vries <tdevries@suse.de>
4650 * dwarf2read.c (create_addrmap_from_aranges)
4651 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
4654 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
4656 * dwarf2read.h (dwarf2_section_info_def): Remove.
4657 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
4658 * dwarf2read.c (struct dwo_sections) <types>: Change type to
4659 std::vector<dwarf2_section_info>.
4660 (struct dwo_file) <~dwo_file>: Remove.
4661 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
4663 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
4664 (dwarf2_read_debug_names): Likewise.
4665 (create_debug_types_hash_table): Change parameter type to
4666 array_view, adjust code accordingly.
4667 (dwarf2_locate_dwo_sections): Adjust to std::vector.
4668 (partial_die_info::fixup): Likewise.
4669 (determine_prefix): Likewise.
4670 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
4672 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4674 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
4676 <~dwo_file>: Remove call to gdb_bfd_unref.
4677 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
4678 gdb_bfd_ref_ptr::get.
4680 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4682 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
4684 * dwarf2read.c (struct dwo_file): Initialize fields.
4686 (free_dwo_file): Remove, move content to ~dwo_file.
4687 (struct dwo_file_deleter): Remove.
4688 (dwo_file_up>: Remove custom deleter.
4689 (free_dwo_files): Remove.
4690 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
4692 (process_skeletonless_type_units): Call unique_ptr::get.
4693 (allocate_dwo_file_hash_table): Add deleter to created hash
4694 table. Change return type to htab_up.
4695 (lookup_dwo_file_slot): Don't memset dwo_file, call
4697 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
4698 (create_dwo_unit_in_dwp_v2): Likewise.
4699 (open_and_init_dwo_file): Likewise.
4700 (free_dwo_file_from_slot): Remove.
4702 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4704 * dwarf2read.h (struct dwarf2_section_info) <readin,
4705 is_virtual>: Change type to bool.
4706 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
4709 2019-06-19 Tom Tromey <tom@tromey.com>
4711 * tui/tui-data.h (tui_init_content_element): Don't declare.
4713 2019-06-19 Tom Tromey <tom@tromey.com>
4715 * tui/tui-data.h (tui_init_win_info): Don't declare.
4717 2019-06-19 Tom de Vries <tdevries@suse.de>
4719 * dwarf2read.h (abstract_to_concrete): Change type to
4720 std::unordered_map<sect_offset, std::vector<sect_offset>,
4721 gdb::hash_enum<sect_offset>>.
4723 2019-06-19 Tom Tromey <tromey@adacore.com>
4725 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
4726 EVAL_AVOID_SIDE_EFFECTS specially.
4728 2019-06-19 Tom Tromey <tromey@adacore.com>
4730 * source-cache.c (highlighter): New global.
4731 (source_cache::get_source_lines): Create a highlighter on demand.
4733 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
4735 * defs.h (deprecated_interactive_hook): Delete declaration.
4736 * interps.c (clear_interpreter_hooks): Remove use of
4737 deprecated_interactive_hook.
4738 * top.c (deprecated_interactive_hook): Delete definition.
4739 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
4741 2019-06-18 Tom de Vries <tdevries@suse.de>
4744 * dwarf2read.h (abstract_to_concrete): Change type from
4745 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
4746 std::unordered_map<sect_offset, std::vector<sect_offset>>.
4747 * dwarf2read.c (read_variable): Update.
4748 (dwarf2_fetch_die_loc_sect_off): Update.
4750 2019-06-17 Tom de Vries <tdevries@suse.de>
4753 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
4754 accessing parent[parent_len - 1].
4756 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
4759 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
4760 call dtrace_process_dof with NULL dof.
4762 2019-06-16 Tom de Vries <tdevries@suse.de>
4765 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
4767 2019-06-16 Tom Tromey <tom@tromey.com>
4769 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
4770 (make_all_visible): Use address of member.
4772 2019-06-16 Tom Tromey <tom@tromey.com>
4774 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
4775 (tui_free_window, free_content, free_content_elements): Remove
4777 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
4779 * tui/tui-regs.c (tui_show_register_group)
4780 (tui_display_registers_from, tui_display_reg_element_at_line):
4781 Remove unnecessary cast.
4783 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
4785 * linux-nat.c (normal_mask): Delete.
4786 (_initialize_linux_nat): Don't initialise normal_mask.
4788 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
4791 * dwarf-index-write.h (write_psymtabs_to_index): Add
4792 dwz_basename parameter.
4793 * dwarf-index-write.c (write_gdbindex): Move file writing to
4794 write_gdbindex_1. Change return type void.
4795 (assert_file_size): Move up, remove filename parameter.
4796 (write_gdbindex_1): New function.
4797 (write_debug_names): Change return type to void, call
4799 (struct index_wip_file): New struct.
4800 (write_psymtabs_to_index): Add dwz_basename parameter. Move
4801 file logic to index_wip_file. Write index for dwz file if
4803 (save_gdb_index_command): Pass basename of dwz file, if present.
4804 * dwarf-index-cache.c (index_cache::store): Obtain and pass
4805 build-id of dwz file, if present.
4806 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
4807 (dwarf2_get_dwz_file): Likewise.
4808 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
4809 (dwarf2_get_dwz_file): Likewise.
4811 2019-06-16 Tom Tromey <tom@tromey.com>
4813 * coffread.c (process_coff_symbol): Use xstrdup.
4814 * value.c (create_internalvar): Use xstrdup.
4816 2019-06-16 Tom Tromey <tom@tromey.com>
4818 * valops.c (value_cast, value_slice): Remove unnecessary cast.
4819 * breakpoint.c (stopin_command, stopat_command)
4820 (until_break_command, decode_location_default): Remove unnecessary
4822 * utils.c (subset_compare): Remove unnecessary cast.
4823 * ada-lang.c (ada_update_initial_language): Remove unnecessary
4825 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
4827 * infcmd.c (path_command): Remove unnecessary cast.
4828 * coffread.c (decode_type): Remove unnecessary cast.
4829 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
4830 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
4831 * tui/tui-stack.c (tui_show_locator_content)
4832 (tui_show_frame_info): Remove unnecessary cast.
4833 * tui/tui-win.c (tui_scroll_forward_command)
4834 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
4835 (parse_scrolling_args): Remove unnecessary cast.
4836 * tui/tui-data.c (init_win_info, tui_del_window)
4837 (tui_free_window, tui_del_data_windows, tui_free_data_content)
4838 (free_content_elements): Remove unnecessary cast.
4839 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
4841 * tui/tui-source.c (tui_set_source_content)
4842 (tui_vertical_source_scroll): Remove unnecessary cast.
4843 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
4845 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
4846 * tui/tui-regs.c (tui_display_registers_from)
4847 (tui_display_register): Remove unnecessary cast.
4848 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
4849 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
4850 (make_visible): Remove unnecessary cast.
4851 * tui/tui-winsource.c (tui_erase_source_content)
4852 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
4854 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
4855 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
4856 * stabsread.c (read_type, read_array_type, read_range_type):
4857 Remove unnecessary cast.
4858 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
4859 (parse_symbol, parse_type, upgrade_type, parse_external)
4860 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
4862 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
4864 2019-06-16 Tom Tromey <tom@tromey.com>
4866 * tui/tui-data.c (tui_alloc_generic_win_info)
4867 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
4870 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
4871 Andrew Burgess <andrew.burgess@embecosm.com>
4873 * f-typeprint.c (f_print_type): Don't return early for not
4874 associated or not allocated types.
4875 (f_type_print_varspec_suffix): Add print_rank parameter and print
4876 ranks of array types in case they dangling.
4877 (f_type_print_base): Add print_rank parameter.
4879 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4881 * NEWS: Mention new MI commands.
4882 * break-catch-throw.c (enum exception_event_kind): Move to
4884 (print_mention_exception_catchpoint): Output text as a single
4886 (catch_exception_command_1): Rename to...
4887 (catch_exception_event): ...this, make non-static, update header
4888 command, and change some parameter types.
4889 (catch_catch_command): Update for changes to
4890 catch_exception_command_1.
4891 (catch_throw_command): Likewise.
4892 (catch_rethrow_command): Likewise.
4893 * breakpoint.c (enum exception_event_kind): Delete.
4894 * breakpoint.h (enum exception_event_kind): Moved here from
4895 break-catch-throw.c.
4896 (catch_exception_event): Declare.
4897 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
4898 (mi_cmd_catch_throw): New function.
4899 (mi_cmd_catch_rethrow): New function.
4900 (mi_cmd_catch_catch): New function.
4901 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
4902 'catch-catch' entries.
4903 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
4904 (mi_cmd_catch_rethrow): Declare.
4905 (mi_cmd_catch_catch): Declare.
4907 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4909 * annotate.c (annotate_source_line): Change return type to void,
4910 update implementation to match.
4911 * annotate.h (annotate_source_line): Change return type to void,
4912 update header comment.
4913 * stack.c (print_frame_info): Don't change what frame information
4914 is printed based on whether annotations are on or not.
4916 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4918 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
4919 (annotate_source): Make static.
4920 (annotate_source_line): Moved from source.c and renamed from
4921 identify_source_line. Update the return type.
4922 * annotate.h (annotate_source): Delete declaration.
4923 (annotate_source_line): Declaration moved from source.h, and
4924 renamed from identify_source_line. Return type updated.
4925 * source.c (identify_source_line): Moved to annotate.c and renamed
4926 to annotate_source_line.
4927 (info_line_command): Remove check of annotation_level.
4928 * source.h (identify_source_line): Move declaration to annotate.h
4929 and rename to annotate_source_line.
4930 * stack.c: Add 'annotate.h' include.
4931 (print_frame_info): Remove check of annotation_level before
4932 calling annotate_source_line.
4934 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4936 * source-cache.c (source_cache::get_plain_source_lines): Use
4937 open_source_file_with_line_charpos instead of just
4938 open_source_file, remove call to find_source_lines.
4939 (source_cache::get_source_lines): Likewise.
4940 * source.c (find_source_lines): Make static.
4941 (get_filename_and_charpos): Renamed into...
4942 (open_source_file_with_line_charpos): ..this along with changes to
4943 return a scoped_fd, and some other minor clean ups.
4944 (identify_source_line): Use open_source_file_with_line_charpos.
4945 (search_command_helper): Use open_source_file_with_line_charpos
4946 instead of just open_source_file, remove call to
4948 * source.h (open_source_file_with_line_charpos): Declare new
4950 (find_source_lines): Delete declaration.
4952 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4954 * source.c (get_filename_and_charpos): Remove fullname
4956 (identify_source_line): Update call to get_filename_and_charpos.
4958 2019-06-14 Tom Tromey <tromey@adacore.com>
4961 * ui-style.h (skip_ansi_escape): Update comment.
4962 * ui-file.h (class no_terminal_escape_file): New class.
4963 * ui-file.c (no_terminal_escape_file::write)
4964 (no_terminal_escape_file::puts): New methods.
4965 * cli/cli-logging.c (handle_redirections): Use
4966 no_terminal_escape_file.
4968 2019-06-14 Tom Tromey <tromey@adacore.com>
4970 * NEWS: Move convenience variable news above Python news.
4972 2019-06-14 Tom Tromey <tom@tromey.com>
4974 * gnulib: Move directory to top-level.
4975 * configure.ac: Don't configure gnulib.
4976 * configure: Rebuild.
4977 * common/common-defs.h: Use new path to gnulib.
4978 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
4980 (INCGNU): Look in new gnulib location.
4981 (HFILES_NO_SRCDIR): Remove gnulib files.
4982 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
4983 (generated_files): Remove GNULIB_H.
4984 ($(LIBGNU), all-lib): Remove targets.
4985 (distclean): Don't mention GNULIB_BUILDDIR.
4986 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
4988 2019-06-14 Tom Tromey <tromey@adacore.com>
4990 * symfile.c (add_symbol_file_command): Remove obsolete comment.
4991 Warn if symbol file does not provide any symbols.
4993 2019-06-14 Tom Tromey <tromey@adacore.com>
4995 * source.c (find_and_open_source): Respect basenames_may_differ.
4997 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
4999 * annotate.c (annotate_breakpoints_invalid): Make use of
5000 scoped_restore_terminal_state.
5001 (annotate_frames_invalid): Likewise.
5003 2019-06-14 Tom Tromey <tromey@adacore.com>
5005 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
5006 allow assignment to an internalvar.
5008 2019-06-14 Tom Tromey <tromey@adacore.com>
5010 * ada-lex.l: Allow "_" in attribute names.
5012 2019-06-14 Tom Tromey <tromey@adacore.com>
5015 * regcache.c (registers_changed): Don't call alloca.
5016 * top.c (execute_command): Don't call alloca.
5018 2019-06-13 Pedro Alves <palves@redhat.com>
5020 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
5021 'expression'. When parsing an expression, error out if there's
5022 junk after "unlimited".
5023 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5024 (do_set_command): Adjust calls to is_unlimited_literal.
5026 2019-06-13 Pedro Alves <palves@redhat.com>
5028 * compile/compile.c (make_compile_options_def_group): Add braces
5029 around array_view initializer.
5030 * thread.c (make_thread_apply_all_options_def_group)
5031 (make_thread_apply_all_options_def_group): Likewise.
5033 2019-06-13 Pedro Alves <palves@redhat.com>
5035 * NEWS (New commands): Mention "maint test-options
5036 require-delimiter", "maint test-options unknown-is-error", "maint
5037 test-options unknown-is-operand" and "maint show
5038 test-options-completion-result".
5039 (New command options, command completion): New section.
5040 (Completion improvements): New section.
5041 Mention that you can abbreviate "unlimited".
5043 2019-06-13 Pedro Alves <palves@redhat.com>
5045 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
5046 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
5047 * unittests/cli-utils-selftests.c (test_parse_flags)
5048 (test_parse_flags_qcs): Delete.
5049 (test_cli_utils): Don't call deleted functions.
5051 2019-06-13 Pedro Alves <palves@redhat.com>
5053 * thread.c: Include "cli/cli-option.h".
5054 (tp_array_compar_ascending): Global.
5055 (tp_array_compar): Delete function.
5056 (tp_array_compar_ascending, tp_array_compar_descending): New
5058 (ascending_option_def, qcs_flag_option_def)
5059 (thr_qcs_flags_option_defs)
5060 (make_thread_apply_all_options_def_group)
5061 (make_thread_apply_options_def_group): New.
5062 (thread_apply_all_command): Use gdb::option::process_options.
5063 (thread_apply_command_completer)
5064 (thread_apply_all_command_completer): New.
5065 (thread_apply_command): Use gdb::option::process_options.
5066 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
5067 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
5068 to generate help text of "thread apply". Adjust "taas"'s help.
5069 * tid-parse.c (tid_range_parser::in_thread_range): New method.
5070 * tid-parse.h (tid_range_parser::in_thread_range): New method.
5072 2019-06-13 Pedro Alves <palves@redhat.com>
5074 * thread.c (thread_apply_command): Check for invalid TID with
5075 isdigit instead of !isalpha.
5077 2019-06-13 Pedro Alves <palves@redhat.com>
5079 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
5080 (validate_flags_qcs): New.
5081 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
5082 (validate_flags_qcs): Declare.
5083 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
5084 (make_frame_apply_options_def_group): New.
5085 (frame_apply_command_count): Process options with
5086 gdb::option::process_options.
5087 (frame_apply_completer): New.
5088 (frame_apply_level_completer, frame_apply_all_completer)
5089 (frame_apply_completer): New.
5090 (_initialize_stack): Update help of "frame apply", "frame apply
5091 level", "frame apply all" and "faas" to mention supported options
5092 and install command completers.
5093 * stack.h (frame_apply_all_completer): Declare.
5094 * thread.c: Include "stack.h".
5095 (tfaas_command): Add "--".
5096 (_initialize_thread): Update help "tfaas" to mention supported
5097 options and install command completer.
5099 2019-06-13 Pedro Alves <palves@redhat.com>
5101 * completer.c (complete_nested_command_line): New.
5102 (gdb_completion_word_break_characters_throw): Add assertion.
5103 * completer.h (complete_nested_command_line): Declare.
5105 2019-06-13 Pedro Alves <palves@redhat.com>
5107 * stack.c (parse_backtrace_qualifiers): New.
5108 (backtrace_command): Use it.
5109 (backtrace_command_completer): Complete on qualifiers.
5111 2019-06-13 Pedro Alves <palves@redhat.com>
5113 * frame.c: Include "cli/cli-option.h.
5114 (user_set_backtrace_options): New.
5115 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
5117 (get_prev_frame): Adjust.
5118 (boolean_option_def, uinteger_option_def)
5119 (set_backtrace_option_defs): New.
5120 (_initialize_frame): Adjust and use
5121 gdb::option::add_setshow_cmds_for_options to install "set
5122 backtrace past-main" and "set backtrace past-entry".
5123 * frame.h: Include "cli/cli-option.h".
5124 (struct frame_print_options): Forward declare.
5125 (print_frame_arguments_all, print_frame_arguments_scalars)
5126 (print_frame_arguments_none): Declare.
5127 (print_entry_values): Delete declaration.
5128 (struct frame_print_options, user_frame_print_options): New.
5129 (struct set_backtrace_options): New.
5130 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
5131 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
5132 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
5133 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
5134 (list_args_or_locals): Add frame_print_options parameter.
5135 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
5136 * python/py-framefilter.c (enumerate_args): Pass down
5137 USER_FRAME_PRINT_OPTIONS.
5138 * stack.c: Include "cli/cli-option.h".
5139 (print_frame_arguments_all, print_frame_arguments_scalars)
5140 (print_frame_arguments_none): Declare.
5141 (print_raw_frame_arguments, print_entry_values): Delete.
5142 (user_frame_print_options): New.
5143 (boolean_option_def, enum_option_def, frame_print_option_defs):
5145 (struct backtrace_cmd_options): New.
5146 (bt_flag_option_def): New.
5147 (backtrace_command_option_defs): New.
5148 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
5149 (print_frame_arg, read_frame_arg, print_frame_args)
5150 (print_frame_info, print_frame): Add frame_print_options parameter
5152 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
5153 (backtrace_command_1): Add frame_print_options and
5154 backtrace_cmd_options parameters and use them.
5155 (make_backtrace_options_def_group): New.
5156 (backtrace_command): Process command options with
5157 gdb::option::process_options.
5158 (backtrace_command_completer): New.
5159 (_initialize_stack): Extend "backtrace"'s help to mention
5160 supported options. Install completer for "backtrace".
5161 Install some settings commands with add_setshow_cmds_for_options.
5163 2019-06-13 Pedro Alves <palves@redhat.com>
5165 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
5166 and that "set/show print raw frame-arguments" are now deprecated.
5168 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
5170 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
5171 * stack.c (_initialize_stack): Install "set/show print
5172 raw-frame-arguments", and deprecate "set/show print raw
5174 * valprint.c (_initialize_valprint): Deprecate "set/show print
5177 2019-06-13 Pedro Alves <palves@redhat.com>
5179 * compile/compile.c (struct compile_options): New.
5180 (compile_flag_option_def, compile_command_option_defs)
5181 (make_compile_options_def_group): New.
5182 (compile_file_command): Handle options with
5183 gdb::option::process_options.
5184 (compile_file_command_completer): New function.
5185 (compile_code_command): Handle options with
5186 gdb::option::process_options.
5187 (compile_code_command_completer): New function.
5188 (_initialize_compiler): Install completers for "compile code" and
5189 "compile file". Mention available options in "compile code" and
5190 "compile code"'s help.
5191 * completer.c (advance_to_completion_word): New, factored out from
5193 (advance_to_expression_complete_word_point): ... this.
5194 (advance_to_filename_complete_word_point): New.
5195 * completer.h (advance_to_filename_complete_word_point): New
5198 2019-06-13 Pedro Alves <palves@redhat.com>
5200 * compile/compile.c: Include "cli/cli-option.h".
5201 (compile_print_value): Scope data pointer is now a
5202 value_print_options pointer; adjust.
5203 (compile_print_command): Process options. Scope data pointer is
5204 now a value_print_options pointer; adjust.
5205 (_initialize_compile): Update "compile print"'s help to include
5206 supported options. Install a completer for "compile print".
5207 * cp-valprint.c (show_vtblprint, show_objectprint)
5208 (show_static_field_print): Delete.
5209 (_initialize_cp_valprint): Don't install "set print
5210 static-members", "set print vtbl", "set print object" here.
5211 * printcmd.c: Include "cli/cli-option.h" and
5212 "common/gdb_optional.h".
5213 (print_command_parse_format): Rework to fill in a
5214 value_print_options instead of a format_data.
5215 (print_value): Change parameter type from format_data pointer to
5216 value_print_options reference. Adjust.
5217 (print_command_1): Process options. Adjust to pass down a
5218 value_print_options.
5219 (print_command_completer): New.
5220 (_initialize_printcmd): Install print_command_completer as
5221 handle_brkchars completer for the "print" command. Update
5222 "print"'s help to include supported options.
5223 * valprint.c: Include "cli/cli-option.h".
5224 (show_vtblprint, show_objectprint, show_static_field_print): Moved
5225 here from cp-valprint.c.
5226 (boolean_option_def, uinteger_option_def)
5227 (value_print_option_defs, make_value_print_options_def_group):
5228 New. Use gdb::option::add_setshow_cmds_for_options to install
5229 "set print elements", "set print null-stop", "set print repeats",
5230 "set print pretty", "set print union", "set print array", "set
5231 print address", "set print symbol", "set print array-indexes".
5232 * valprint.h: Include <string> and "cli/cli-option.h".
5233 (make_value_print_options_def_group): Declare.
5234 (print_value): Change parameter type from format_data pointer to
5235 value_print_options reference.
5236 (print_command_completer): Declare.
5238 2019-06-13 Pedro Alves <palves@redhat.com>
5240 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
5241 (COMMON_SFILES): Add maint-test-settings.c.
5242 * cli/cli-decode.c (boolean_enums): New global, factored out from
5244 (add_setshow_boolean_cmd): ... here.
5245 * cli/cli-decode.h (boolean_enums): Declare.
5246 * cli/cli-option.c: New file.
5247 * cli/cli-option.h: New file.
5248 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
5249 factored out from ...
5250 (parse_cli_boolean_value(const char *)): ... this.
5251 (is_unlimited_literal): Change parameter type to pointer to
5252 pointer. Adjust and advance ARG pointer.
5253 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5254 (parse_cli_var_enum): New, factored out from ...
5255 (do_set_command): ... this. Adjust.
5256 * cli/cli-setshow.h (parse_cli_boolean_value)
5257 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5258 (parse_cli_var_enum): Declare.
5259 * cli/cli-utils.c: Include "cli/cli-option.h".
5260 (get_ulongest): New.
5261 * cli/cli-utils.h (get_ulongest): Declare.
5262 (check_for_argument): New overloads.
5263 * maint-test-options.c: New file.
5265 2019-06-13 Pedro Alves <palves@redhat.com>
5267 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
5268 parse a range if "-" is at the end of the string.
5270 2019-06-13 Pedro Alves <palves@redhat.com>
5272 * cli/cli-setshow.c (parse_auto_binary_operation)
5273 (parse_cli_boolean_value): Don't allow "o".
5275 2019-06-13 Pedro Alves <palves@redhat.com>
5277 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
5278 * NEWS: Mention maint test-settings KIND.
5279 * maint-test-settings.c: New file.
5281 2019-06-13 Pedro Alves <palves@redhat.com>
5283 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
5285 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
5288 2019-06-13 Pedro Alves <palves@redhat.com>
5290 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
5293 2019-06-13 Pedro Alves <palves@redhat.com>
5295 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
5297 2019-06-13 Pedro Alves <palves@redhat.com>
5299 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
5300 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
5302 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
5303 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
5305 (check_for_argument): Skip spaces after argument.
5307 2019-06-13 Pedro Alves <palves@redhat.com>
5309 * thread.c (thread_apply_command): Adjust TID parsing.
5310 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
5311 detected before end of string.
5312 (tid_is_in_list): Error out if LIST is invalid.
5314 2019-06-13 Pedro Alves <palves@redhat.com>
5316 * completer.c (complete_line_internal_1): Rewind completion word
5318 (completion_tracker::advance_custom_word_point_by): Change
5319 parameter type to int.
5320 * completer.h (completion_tracker::advance_custom_word_point_by):
5323 2019-06-13 Pedro Alves <palves@redhat.com>
5325 * completer.c (advance_to_completion_word): Handle delimiters.
5327 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
5329 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
5331 2019-06-11 Tom Tromey <tom@tromey.com>
5333 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
5334 (xmalloc_failed): Move to alloc.c.
5335 * alloc.c: New file.
5336 * Makefile.in (COMMON_SFILES): Add alloc.c.
5338 2019-06-11 Tom Tromey <tom@tromey.com>
5340 * nat/linux-waitpid.c: Don't include server.h.
5341 (linux_debug): Remove.
5342 (my_waitpid): Update.
5344 2019-06-11 Tom Tromey <tromey@adacore.com>
5346 * infcall.c (_initialize_infcall): Remove trailing newline from
5348 * user-regs.c (_initialize_user_regs): Remove trailing newline
5350 * typeprint.c (_initialize_typeprint): Remove trailing newline
5352 * reverse.c (_initialize_reverse): Remove trailing newlines from
5354 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
5356 * language.c (add_set_language_command): Remove trailing newline
5358 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
5360 * disasm.c (_initialize_disasm): Remove trailing newline from
5362 * top.c (init_main): Remove trailing newline from help.
5363 * interps.c (_initialize_interpreter): Remove trailing newline
5365 * btrace.c (_initialize_btrace): Remove trailing newlines from
5367 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
5369 * python/python.c (_initialize_python): Remove trailing newline
5371 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
5373 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
5374 from help. Reformat some text.
5375 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
5377 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
5380 2019-06-11 Tom Tromey <tromey@adacore.com>
5382 * darwin-nat.c (darwin_decode_exception_message)
5383 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
5385 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
5387 * valops.c (value_slice): Check for not allocated or not
5390 2019-06-10 Tom de Vries <tdevries@suse.de>
5393 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
5394 sure an empty slot (defined by a 32-bit zero pair) is recognized as
5397 2019-06-10 Tom de Vries <tdevries@suse.de>
5400 * linespec.c (linespec_lexer_lex_string): Remove incorrect
5401 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
5403 2019-06-10 Tom de Vries <tdevries@suse.de>
5406 * symtab.c (struct demangled_name_entry): Add language field.
5407 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
5408 static minimal symbol". Set and use language field.
5410 2019-06-10 Tom Tromey <tromey@adacore.com>
5412 * ada-lang.c (_initialize_ada_language): Update help text.
5414 2019-06-10 Tom Tromey <tromey@adacore.com>
5416 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
5418 * guile/guile.c (handle_boot_error): Don't end warning with a
5420 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
5421 warning with a newline.
5422 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
5424 (s12z_frame_cache): Likewise.
5425 * dwarf-index-cache.c (index_cache::store): Don't end warning with
5427 * solib-svr4.c (disable_probes_interface): Don't end warning with
5429 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
5431 * python/python.c (do_finish_initialization): Don't end warning
5434 2019-06-10 Tom Tromey <tom@tromey.com>
5436 * python/py-breakpoint.c (gdbpy_breakpoint_created)
5437 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
5440 2019-06-10 Tom Tromey <tromey@adacore.com>
5442 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
5444 (elf_new_init): Don't call stabsread_new_init.
5445 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
5446 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
5447 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
5449 2019-06-10 Tom de Vries <tdevries@suse.de>
5453 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
5455 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
5457 * source.c (find_and_open_source): Also rewrite relative file
5460 2019-04-26 Amos Bird <amosbird@gmail.com>
5462 * annotate.c (annotate_thread_exited): Add "thread-exited"
5465 2019-06-06 Tom Tromey <tromey@adacore.com>
5467 * maint.h (class scoped_command_stats): Use
5468 DISABLE_COPY_AND_ASSIGN.
5469 <print_time>: New method.
5470 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
5472 (scoped_command_stats::print_time): New method.
5474 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5476 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
5477 instructions of lengths 6 or 8 bytes.
5479 2019-06-04 Pedro Alves <palves@redhat.com>
5481 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
5483 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
5484 * breakpoint.c (condition_completer): Likewise.
5485 * cli/cli-dump.c (scan_expression): Likewise.
5486 * common/filestuff.c (mkdir_recursive): Likewise.
5487 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
5488 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
5489 (gdb_abspath): Likewise.
5490 * compile/compile-cplus-types.c
5491 (compile_cplus_instance::decl_name): Likewise.
5492 * completer.c (complete_explicit_location):
5493 (signal_completer, reg_or_group_completer_1): Likewise.
5494 * cp-support.c (cp_remove_params_if_any): Likewise.
5495 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
5496 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
5497 * infcmd.c (strip_bg_char): Likewise.
5498 * linespec.c (copy_token_string): Likewise.
5499 * mi/mi-main.c (output_cores): Likewise.
5500 * psymtab.c (psymtab_search_name):
5501 * symfile.c (test_set_ext_lang_command): Likewise.
5502 * target.c (target_fileio_read_stralloc): Likewise.
5503 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
5504 * value.c (complete_internalvar): Likewise.
5506 2019-06-04 Christian Biesinger <cbiesinger@google.com>
5508 Add objfile property to gdb.Type.
5509 * NEWS: Mention Python API addition.
5510 * python/py-type.c (typy_get_objfile): New method.
5512 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5514 * NEWS: Mention the new set|show style [title|highlight].
5515 Mention changes to "show style", "help" and "apropos".
5517 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5519 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
5520 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
5521 instead of print_help_for_command.
5522 (print_doc_of_command): New function.
5523 (help_list): Add 'apropos -v word' suggestion.
5524 (print_help_for_command): Style the command name using title style.
5525 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
5526 (_initialize_cli_cmds): Describe -v in apropos_command help.
5528 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5530 * cli/cli-style.h (cli_style_option): Add name in constructor,
5531 add m_name class member, add constructor with intensity,
5532 add name class function.
5533 (cli_style_option::add_setshow_commands): Remove name argument.
5534 (highlight_style, title_style): New styles.
5535 * cli/cli-style.c (do_show): New function that shows a style
5536 characteristic styling the style name with itself.
5537 (set_style_name): New function.
5538 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
5539 Update all callers according to the changes in cli/cli-style.h.
5540 * utils.h (fputs_highlighted): New function.
5541 * utils.c (fputs_highlighted): Likewise.
5543 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5545 * NEWS: Mention new pipe command and new convenience variables.
5547 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5549 * cli/cli-cmds.c (pipe_command): New function.
5550 (_initialize_cli_cmds): Call add_com for pipe_command.
5551 Define | as an alias for pipe.
5552 (exit_status_set_internal_vars): New function.
5553 (shell_escape): Call exit_status_set_internal_vars.
5554 cli/cli-decode.c (find_command_name_length): Recognize | as
5555 a single character command.
5557 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5559 * gdbcmd.h (execute_command_to_ui_file): New declaration.
5560 top.c (execute_command_to_ui_file): New function, mostly a copy
5561 of execute_command_to_string.
5562 (execute_command_to_string): Implement by calling
5563 execute_command_to_ui_file.
5565 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5567 * top.h (saved_command_line): Remove declaration.
5568 * top.c (previous_saved_command_line, previous_repeat_arguments):
5570 (saved_command_line): Make static, define together with other
5572 (dont_repeat): Clear repeat_arguments.
5573 (repeat_previous, get_saved_command_line, save_command_line):
5575 (gdb_init): Initialize saved_command_line
5576 and previous_saved_command_line.
5577 * main.c (captured_main_1): Remove saved_command_line initialization.
5578 * event-top.c (handle_line_of_input): Update to use
5579 the new 'repeat' related functions instead of direct access to
5581 * command.h (repeat_previous, get_saved_command_line,
5582 save_command_line): New declarations.
5583 (dont_repeat): Add comment.
5585 2019-05-30 Tom Tromey <tromey@adacore.com>
5587 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
5589 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
5591 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
5594 * completer.c (complete): Initialize variable word.
5596 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
5598 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
5599 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
5600 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
5601 'body' is NULL to the outter 'if', protecting the '!is_define'
5604 2019-05-29 Tom Tromey <tromey@adacore.com>
5606 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
5607 (dwarf_unknown): New function.
5608 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
5609 (dwarf_type_encoding_name): Use dwarf_unknown.
5611 2019-05-29 Tom Tromey <tromey@adacore.com>
5614 * cp-valprint.c (cp_print_value_fields): Call
5615 cp_print_static_field inside "try".
5617 2019-05-29 Tom Tromey <tromey@adacore.com>
5619 * inflow.c (struct terminal_info): Add default operator=.
5620 * configure: Rebuild.
5621 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
5622 -Wdeprecated-copy-dtor, -Wredundant-move.
5624 2019-05-29 Tom Tromey <tromey@adacore.com>
5627 * infcmd.c (print_return_value_1): Handle finish_print
5629 (show_print_finish): New function.
5630 (_initialize_infcmd): Add "set/show print finish" commands.
5631 * valprint.c (user_print_options): Initialize new member.
5632 * valprint.h (struct value_print_options) <finish_print>: New
5635 2019-05-28 Tom Tromey <tromey@adacore.com>
5637 * ada-lang.c (ada_remove_Xbn_suffix)
5638 (find_old_style_renaming_symbol)
5639 (parse_old_style_renaming): Remove.
5640 (ada_find_renaming_symbol): Don't call
5641 find_old_style_renaming_symbol.
5642 (ada_is_renaming_symbol): Rename from
5643 ada_find_renaming_symbol. Remove "block" parameter. Return
5645 (ada_read_var_value): Update and simplify.
5646 * ada-exp.y (write_var_or_type): Remove old code.
5648 2019-05-28 Alan Hayward <alan.hayward@arm.com>
5650 * event-top.c: Remove include comment.
5651 * inflow.c (class scoped_ignore_sigttou): Move from here...
5652 * inflow.h (class scoped_ignore_sigttou): ...to here.
5653 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
5654 * top.c: Remove include comment.
5656 2019-05-27 Tom Tromey <tom@tromey.com>
5660 2019-05-22 Tom Tromey <tromey@adacore.com>
5662 * target.c (target_follow_exec): Constify parameter.
5663 * target-delegates.c: Rebuild.
5664 * remote.c (remote_target::follow_exec): Constify parameter.
5665 * infrun.c (follow_exec): Constify parameter.
5666 * target.h (struct target_ops) <follow_exec>: Constify parameter.
5667 (target_follow_exec): Likewise.
5669 2019-05-22 Alan Hayward <alan.hayward@arm.com>
5671 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
5672 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
5674 2019-05-22 Alan Hayward <alan.hayward@arm.com>
5676 * NEWS: Add debugredirect and testsuite sections.
5678 2019-05-22 Simon Cook <simon.cook@embecosm.com>
5680 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
5681 target descriptions using exclusively floating point register name
5684 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
5687 * f-lang.c (build_fortran_types): Handle the case where
5688 gdbarch_floatformat_for_type returns a nullptr.
5690 2019-05-21 Tom de Vries <tdevries@suse.de>
5693 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
5695 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
5698 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
5700 * i386-tdep.c (i386_floatformat_for_type): Use
5701 floatformats_ia64_quad for the 16-byte floating point component
5702 within a fortran 32-byte complex number.
5704 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
5706 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
5707 delete default constructor.
5708 (find_partial_die): Update to return const struct.
5709 (partial_die_parent_scope): Move variable declaration into scope
5710 of its use and change its type to auto.
5711 (guess_partial_die_structure_name): Likewise.
5712 (partial_die_info::fixup): Likewise.
5714 2019-05-17 Tom Tromey <tromey@adacore.com>
5716 * source.c (find_and_open_source): Remove cast.
5718 2019-05-17 Tom Tromey <tromey@adacore.com>
5720 * annotate.c (annotate_source): Make "filename" const.
5721 * annotate.h (annotate_source): Use const.
5723 2019-05-17 Alan Hayward <alan.hayward@arm.com>
5725 * disasm.c (set_disassembler_options): Send errors to stderr.
5727 2019-05-17 Alan Hayward <alan.hayward@arm.com>
5729 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
5730 (cli_interp_base::set_logging): Check debug_redirect.
5731 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
5732 * cli/cli-logging.c (debug_redirect): Add static variable.
5733 (pop_output_files): Add default param.
5734 (handle_redirections): Print debug setting.
5735 (show_logging_command): Likewise.
5736 (_initialize_cli_logging): Add debugredirect command.
5737 * interps.c (current_interp_set_logging): Add debug_redirect
5739 * interps.h (set_logging): Add debug_redirect parameter.
5740 (current_interp_set_logging): Likewise.
5741 * mi/mi-common.h: Likewise.
5742 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
5744 2019-05-17 Alan Hayward <alan.hayward@arm.com>
5745 Tom Tromey <tromey@adacore.com>
5747 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
5749 * cli/cli-interp.h (make_logging_output): Remove declaration.
5750 * cli/cli-logging.c (make_logging_output): Remove function.
5751 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
5753 * ui-file.c (tee_file::tee_file): Remove bools.
5754 (tee_file::~tee_file): Remove deletes.
5755 * ui-file.h (tee_file): Remove bools.
5757 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
5759 * mi/mi-cmds.h (mi_cmd_complete): New function.
5760 * mi/mi-main.c (mi_cmd_complete): Likewise.
5761 * mi/mi-cmds.c: Define new MI command -complete.
5762 * NEWS: Mention new -complete command.
5764 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
5766 * completer.h (complete): New function.
5767 * completer.c (complete): Likewise.
5768 * cli/cli-cmds.c: (complete_command): Update to use new complete()
5769 function defined in completer.h.
5771 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
5773 * MAINTAINERS (Write After Approval): Add myself.
5775 2019-05-17 Tom de Vries <tdevries@suse.de>
5778 * dwarf2read.c (struct cu_partial_die_info): New struct.
5779 (find_partial_die): Return cu_partial_die_info.
5780 (partial_die_parent_scope, guess_partial_die_structure_name)
5781 (partial_die_info::fixup): Handle new return type of find_partial_die.
5783 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5785 * stap-probe.c (stap_parse_register_operand): Make "regname" an
5786 "std::string", simplifying the algorithm.
5788 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5790 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
5791 (stap_static_probe_ops::get_probes): Likewise.
5793 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5795 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
5796 '-')" and "else if".
5797 (stap_parse_single_operand): Join checks for
5798 "gdbarch_stap_parse_special_token_p" and
5799 "gdbarch_stap_parse_special_token" in the same "if" statement.
5800 Invert check when verifying for operation on register
5803 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5805 * stap-probe.c (stap_get_opcode): Update comment.
5806 (stap_get_expected_argument_type): Likewise.
5807 (handle_stap_probe): Likewise.
5809 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5811 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
5812 return type to 'bool'. Adjust comment. Use 'bool' when
5814 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5815 * stap-probe.c (stap_parse_argument_1): Likewise.
5816 (stap_is_operator): Likewise.
5817 (stap_is_generic_prefix): Likewise.
5818 (stap_is_register_prefix): Likewise.
5819 (stap_is_register_indirection_prefix): Likewise.
5820 (stap_is_integer_prefix): Likewise.
5821 (stap_generic_check_suffix): Likewise.
5822 (stap_check_integer_suffix): Likewise.
5823 (stap_check_register_suffix): Likewise.
5824 (stap_check_register_indirection_suffix): Likewise.
5825 (stap_parse_register_operand): Likewise.
5826 (stap_parse_single_operand): Likewise.
5827 (stap_parse_argument_1): Likewise.
5828 (stap_probe::get_argument_count): Likewise.
5829 (stap_is_operator): Likewise.
5831 2019-05-16 Tom Tromey <tromey@adacore.com>
5833 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
5836 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
5838 * linux-thread-db.c (try_thread_db_load_1): Change return type
5840 (try_thread_db_load): Likewise.
5841 (try_thread_db_load_from_pdir_1): Likewise.
5842 (try_thread_db_load_from_pdir): Likewise.
5843 (try_thread_db_load_from_sdir): Likewise.
5844 (try_thread_db_load_from_dir): Likewise.
5845 (thread_db_load_search): Likewise.
5846 (has_libpthread): Likewise.
5847 (thread_db_load): Likewise.
5849 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
5851 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
5852 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
5853 NULL, and complain/return if that's the case.
5855 2019-05-15 John Darrington <john@darrington.wattle.id.au>
5857 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
5858 (advance, posn, abstract_read_memory): New functions.
5859 [struct mem_read_abstraction]: New struct.
5860 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
5862 2019-05-14 Tom Tromey <tromey@adacore.com>
5864 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
5865 value is not lval_memory.
5867 2019-05-14 Tom Tromey <tromey@adacore.com>
5869 * solib.c (info_sharedlibrary_command): Style the file name.
5871 2019-05-14 Alan Hayward <alan.hayward@arm.com>
5873 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
5874 (aarch64_vnv_type): Likewise.
5875 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
5876 * common/tdesc.c: Likewise.
5877 * common/tdesc.h (enum tdesc_type_kind): Likewise.
5878 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
5879 * features/aarch64-fpu.xml: Add ieee half view.
5880 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
5881 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
5882 * gdbtypes.h (struct builtin_type): Likewise.
5883 (struct objfile_type): Likewise.
5885 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
5887 * language.c (language_sniff_from_mangled_name): Fix "langauge"
5889 * location.h (string_to_event_location): Likewise.
5891 2019-05-11 Joel Brobecker <brobecker@adacore.com>
5895 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
5897 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
5898 New variable declaration.
5899 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
5901 (print_one_breakpoint): Use ui_out::test_flags and new global
5902 variable to compute use_fixed_output.
5903 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
5905 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
5906 (mi_multi_location_breakpoint_output_fixed): Remove.
5907 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
5909 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
5910 fix_multi_location_breakpoint_output flag if version >= 3.
5911 * ui-out.h (enum ui_out_flag)
5912 <fix_multi_location_breakpoint_output>: New enumerator.
5914 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
5916 * contrib/cc-with-tweaks.sh: Validate dwz's work.
5918 2019-05-10 Tom Tromey <tromey@adacore.com>
5920 * ada-lang.c (catch_ada_completer): New function.
5921 (_initialize_ada_language): Use it.
5923 2019-05-10 Tom Tromey <tromey@adacore.com>
5925 * thread.c (print_thread_info): Make "requested_threads" const.
5926 * gdbthread.h (print_thread_info): Make "requested_threads"
5928 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
5929 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
5931 2019-05-08 Tom Tromey <tom@tromey.com>
5933 * gdbtypes.c (objfile_type_data): Change type.
5934 (objfile_type, _initialize_gdbtypes): Update.
5936 2019-05-08 Tom Tromey <tom@tromey.com>
5938 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
5939 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
5940 (_initialize_dwarf2_frame): Update.
5942 2019-05-08 Tom Tromey <tom@tromey.com>
5944 * objc-lang.c (objc_objfile_data): Change type.
5945 (find_methods): Update.
5946 (_initialize_objc_lang): Remove.
5948 2019-05-08 Tom Tromey <tom@tromey.com>
5950 * stabsread.c (rs6000_builtin_type_data): Change type.
5951 (rs6000_builtin_type, _initialize_stabsread): Update.
5953 2019-05-08 Tom Tromey <tom@tromey.com>
5955 * mips-tdep.c (mips_pdr_data): Remove.
5956 (_initialize_mips_tdep): Update.
5958 2019-05-08 Tom Tromey <tom@tromey.com>
5960 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
5961 (hppa_init_objfile_priv_data, read_unwind_info)
5962 (find_unwind_entry, _initialize_hppa_tdep): Update.
5964 2019-05-08 Tom Tromey <tom@tromey.com>
5966 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
5967 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
5969 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
5971 2019-05-08 Tom Tromey <tom@tromey.com>
5973 * mdebugread.c (basic_type_data): Change type.
5974 (basic_type, _initialize_mdebugread): Update.
5976 2019-05-08 Tom Tromey <tom@tromey.com>
5978 * common/gdb_unique_ptr.h (struct noop_deleter): New.
5980 2019-05-08 Tom Tromey <tom@tromey.com>
5982 * nto-tdep.c (nto_inferior_data_reg): Change type.
5983 (nto_inferior_data): Update.
5984 (nto_inferior_data_cleanup, nto_new_inferior_data)
5985 (_initialize_nto_tdep): Remove.
5986 * nto-tdep.h (struct nto_inferior_data): Add initializers.
5988 2019-05-08 Tom Tromey <tom@tromey.com>
5990 * ada-lang.c (struct ada_inferior_data): Add initializers.
5991 (ada_inferior_data): Change type.
5992 (ada_inferior_data_cleanup): Remove.
5993 (get_ada_inferior_data, ada_inferior_exit)
5994 (struct ada_pspace_data): Add initializers, destructor.
5995 (ada_pspace_data_handle): Change type.
5996 (get_ada_pspace_data): Update.
5997 (ada_pspace_data_cleanup): Remove.
5999 2019-05-08 Tom Tromey <tom@tromey.com>
6001 * coffread.c (struct coff_symfile_info): Add initializers.
6002 (coff_objfile_data_key): Move lower. Change type.
6003 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
6005 (coff_free_info): Remove.
6007 2019-05-08 Tom Tromey <tom@tromey.com>
6009 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
6010 (fbsd_pspace_data_handle): Move lower. Change type.
6011 (get_fbsd_pspace_data): Update.
6012 (fbsd_pspace_data_cleanup): Remove.
6013 (_initialize_fbsd_tdep): Update.
6015 2019-05-08 Tom Tromey <tom@tromey.com>
6017 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
6018 (get_ada_tasks_pspace_data): Update.
6019 (ada_tasks_pspace_data_cleanup): Remove.
6020 (_initialize_tasks): Update.
6021 (ada_tasks_inferior_data_handle): Change type.
6022 (get_ada_tasks_inferior_data): Update.
6023 (ada_tasks_inferior_data_cleanup): Remove.
6024 (struct ada_tasks_pspace_data): Add initializers.
6026 2019-05-08 Tom Tromey <tom@tromey.com>
6028 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
6029 * symfile-debug.c (debug_sym_get_probes): Change type.
6030 * stap-probe.c (handle_stap_probe):
6031 (stap_static_probe_ops::get_probes): Change type.
6032 * probe.h (class static_probe_ops) <get_probes>: Change type.
6033 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
6034 (parse_probes_in_pspace): Update.
6035 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
6037 (any_static_probe_ops::get_probes): Change type.
6038 * elfread.c (elfread_data): New typedef.
6039 (probe_key): Change type.
6040 (elf_get_probes): Likewise. Update.
6041 (probe_key_free): Remove.
6042 (_initialize_elfread): Update.
6043 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
6045 (dtrace_process_dof_probe, dtrace_process_dof)
6046 (dtrace_static_probe_ops::get_probe): Change type.
6048 2019-05-08 Tom Tromey <tom@tromey.com>
6050 * xcoffread.c (struct xcoff_symfile_info): Rename from
6051 coff_symfile_info. Add initializers.
6052 (xcoff_objfile_data_key): Move lower. Change type.
6053 (XCOFF_DATA): Rewrite.
6054 (xcoff_free_info): Remove.
6055 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
6056 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
6057 (xcoff_initial_scan): Update.
6059 2019-05-08 Tom Tromey <tom@tromey.com>
6061 * solib-svr4.c (struct svr4_info): Add initializers and
6063 <probes_table>: Now an htab_up.
6064 (solib_svr4_pspace_data): Change type.
6065 (free_probes_table): Simplify.
6066 (~svr4_info): Rename from svr4_pspace_data_cleanup.
6067 (get_svr4_info, probes_table_htab_remove_objfile_probes)
6068 (probes_table_remove_objfile_probes, register_solib_event_probe)
6069 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
6070 (_initialize_svr4_solib): Update.
6072 2019-05-08 Tom Tromey <tom@tromey.com>
6074 * remote.c (remote_pspace_data): Change type.
6075 (remote_pspace_data_cleanup): Remove.
6076 (get_remote_exec_file, set_pspace_remote_exec_file)
6077 (_initialize_remote): Update.
6079 2019-05-08 Tom Tromey <tom@tromey.com>
6081 * breakpoint.c (breakpoint_objfile_key): Change type.
6082 (get_breakpoint_objfile_data): Update.
6083 (free_breakpoint_objfile_data): Remove.
6084 (_initialize_breakpoint): Update.
6086 2019-05-08 Tom Tromey <tom@tromey.com>
6088 * linux-tdep.c (struct linux_info): Add initializers.
6089 (linux_inferior_data): Move. Change type.
6090 (invalidate_linux_cache_inf): Update.
6091 (linux_inferior_data_cleanup): Remove.
6092 (get_linux_inferior_data, _initialize_linux_tdep): Update.
6094 2019-05-08 Tom Tromey <tom@tromey.com>
6096 * auxv.c (auxv_inferior_data): Move. Change type.
6097 (auxv_inferior_data_cleanup): Remove.
6098 (invalidate_auxv_cache_inf): Rewrite.
6099 (get_auxv_inferior_data, _initialize_auxv): Update.
6101 2019-05-08 Tom Tromey <tom@tromey.com>
6103 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
6104 (symfile_debug_objfile_data_key): Change type.
6105 (symfile_debug_installed, debug_qf_has_symbols)
6106 (debug_qf_find_last_source_symtab)
6107 (debug_qf_forget_cached_source_info)
6108 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
6109 (debug_qf_print_stats, debug_qf_dump)
6110 (debug_qf_expand_symtabs_for_function)
6111 (debug_qf_expand_all_symtabs)
6112 (debug_qf_expand_symtabs_with_fullname)
6113 (debug_qf_map_matching_symbols)
6114 (debug_qf_expand_symtabs_matching)
6115 (debug_qf_find_pc_sect_compunit_symtab)
6116 (debug_qf_map_symbol_filenames)
6117 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
6118 (debug_sym_new_init, debug_sym_init, debug_sym_read)
6119 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
6120 (debug_sym_read_linetable, debug_sym_relocate): Update.
6121 (symfile_debug_free_objfile): Remove.
6122 (install_symfile_debug_logging, _initialize_symfile_debug):
6125 2019-05-08 Tom Tromey <tom@tromey.com>
6127 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
6128 allocate_on_obstack.
6129 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
6130 (get_dwarf2_per_objfile): Update.
6131 (set_dwarf2_per_objfile): Remove.
6132 (dwarf2_has_info, dwarf2_get_section_info): Update.
6133 (dwarf2_free_objfile): Remove.
6134 (_initialize_dwarf2_read): Update.
6136 2019-05-08 Tom Tromey <tom@tromey.com>
6138 * auto-load.c (struct auto_load_pspace_info): Add destructor and
6140 <unsupported_script_warning_printed,
6141 script_not_found_warning_printed>: Now bool.
6142 (auto_load_pspace_data): Change type.
6143 (~auto_load_pspace_info): Rename from
6144 auto_load_pspace_data_cleanup.
6145 (get_auto_load_pspace_data, init_loaded_scripts_info)
6146 (clear_section_scripts, maybe_print_unsupported_script_warning)
6147 (maybe_print_script_not_found_warning, _initialize_auto_load):
6150 2019-05-08 Tom Tromey <tom@tromey.com>
6152 * objfiles.c (objfile_pspace_info): Add destructor and
6154 (objfiles_pspace_data): Change type.
6155 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
6156 (get_objfile_pspace_data): Update.
6157 (objfiles_bfd_data): Change type.
6158 (get_objfile_bfd_data): Update.
6159 (objfile_bfd_data_free, _initialize_objfiles): Remove.
6161 2019-05-08 Tom Tromey <tom@tromey.com>
6163 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
6165 (get_catch_syscall_inferior_data): Update.
6166 (catch_syscall_inferior_data_cleanup): Remove.
6167 (_initialize_break_catch_syscall): Update.
6169 2019-05-08 Tom Tromey <tom@tromey.com>
6171 * inflow.c (struct terminal_info): Add destructor and
6173 (inflow_inferior_data): Change type.
6174 (~terminal_info): Rename from inflow_inferior_data_cleanup.
6175 (get_inflow_inferior_data, inflow_inferior_exit)
6176 (swap_terminal_info, _initialize_inflow): Update.
6178 2019-05-08 Tom Tromey <tom@tromey.com>
6180 * target-dcache.c (target_dcache_cleanup): Remove.
6181 (target_dcache_aspace_key): Change type.
6182 (target_dcache_init_p, target_dcache_invalidate)
6183 (target_dcache_get, target_dcache_get_or_init)
6184 (_initialize_target_dcache): Update.
6185 * dcache.h (struct dcache_deleter): New.
6187 2019-05-08 Tom Tromey <tom@tromey.com>
6189 * symtab.c (struct symbol_cache): Add destructor and
6191 (symbol_cache_key): Move. Change type.
6192 (make_symbol_cache, free_symbol_cache): Remove.
6193 (get_symbol_cache): Update.
6194 (symbol_cache_cleanup): Remove.
6195 (ALL_PSPACES, symbol_cache_flush)
6196 (maintenance_print_symbol_cache)
6197 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
6200 2019-05-08 Tom Tromey <tom@tromey.com>
6202 * symtab.c (struct main_info): Add destructor and initializers.
6203 (main_progspace_key): Move. Change type.
6204 (get_main_info): Update.
6205 (main_info_cleanup): Remove.
6206 (_initialize_symtab): Update.
6208 2019-05-08 Tom Tromey <tom@tromey.com>
6210 * registry.h (DECLARE_REGISTRY): Define the _key class.
6212 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6214 * NEWS: Merge two 'New commands' sections.
6216 2019-05-08 Joel Brobecker <brobecker@adacore.com>
6218 * ada-valprint.c (ada_val_print_gnat_array): Remove language
6219 parameter and use Ada language definition instead.
6220 (ada_val_print_ptr): Remove unused language parameter.
6221 (ada_val_print_num): Remove language parameter and use Ada language
6223 (ada_val_print_enum, ada_val_print_flt): Remove unused language
6225 (ada_val_print_struct_union, ada_val_print_ref): Remove language
6226 parameter and use Ada language definition instead.
6227 (ada_val_print_1): Update all ada_val_print_xxx calls.
6228 Remove language parameter.
6229 (ada_val_print): Update ada_val_print_1 call.
6231 2019-05-08 Tom Tromey <tromey@adacore.com>
6233 * remote.c (remote_hw_watchpoint_limit)
6234 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
6237 2019-05-08 Tom Tromey <tromey@adacore.com>
6239 * maint.c (_initialize_maint_cmds): Move initialization code to
6241 (watchdog, show_watchdog): Move to remote.c.
6242 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
6244 (_initialize_remote): Move initialization code from maint.c.
6245 * defs.h (watchdog): Don't declare.
6247 2019-05-08 Tom Tromey <tromey@adacore.com>
6249 * tui/tui-interp.c: Include main.h.
6250 * interps.c: Include main.h.
6251 * main.h (interpreter_p): Declare.
6252 * defs.h (interpreter_p): Don't declare.
6254 2019-05-08 Tom Tromey <tromey@adacore.com>
6256 * dwarf2loc.c: Include dwarf2read.h.
6257 * defs.h (read_unsigned_leb128): Don't declare.
6258 * dwarf2read.h (read_unsigned_leb128): Declare.
6260 2019-05-08 Tom Tromey <tromey@adacore.com>
6262 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
6265 2019-05-08 Tom Tromey <tromey@adacore.com>
6267 * utils.c (fputs_maybe_filtered): Reset style after paging, even
6268 when no wrap column is set.
6270 2019-05-08 Tom Tromey <tromey@adacore.com>
6272 * c-lang.c (c_get_string): Handle non-C-style arrays.
6274 2019-05-08 Tom Tromey <tromey@adacore.com>
6276 * typeprint.c (print_offset_data::update): Print the bit offset,
6277 not the number of bits remaining.
6279 2019-05-08 Tom Tromey <tromey@adacore.com>
6281 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
6282 padding at end of comment.
6284 2019-05-08 Tom Tromey <tromey@adacore.com>
6286 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
6289 2019-05-06 Tom Tromey <tom@tromey.com>
6291 * common/scoped_mmap.c: Include common-defs.h.
6292 * common/scoped_mmap.h: Don't include config.h.
6294 2019-05-04 Tom Tromey <tom@tromey.com>
6296 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
6297 (struct aarch64_call_info): Add initializers.
6298 <si>: Now a std::vector.
6299 (pass_on_stack, aarch64_push_dummy_call): Update.
6301 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
6302 Tom Tromey <tom@tromey.com>
6304 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
6305 (ppc_threads): Now a std::vector. Now static.
6306 (hwdebug_find_thread_points_by_tid)
6307 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
6310 2019-05-04 Tom Tromey <tom@tromey.com>
6312 * arc-tdep.c (arc_tdesc_init): Return bool.
6314 2019-05-04 Tom Tromey <tom@tromey.com>
6316 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
6317 Use gdb_assert_not_reached.
6319 2019-05-04 Tom Tromey <tom@tromey.com>
6321 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
6324 2019-05-04 Tom Tromey <tom@tromey.com>
6326 * arc-tdep.c (arc_tdesc_init): Use bool.
6328 2019-05-04 Tom Tromey <tom@tromey.com>
6330 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
6332 2019-05-04 Tom Tromey <tom@tromey.com>
6334 * cli/cli-cmds.c (valid_command_p): Return bool.
6336 2019-05-04 Tom Tromey <tom@tromey.com>
6338 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
6339 * command.h (valid_user_defined_cmd_name_p): Channge return type.
6341 2019-05-04 Raul Tambre <raul@tambre.ee>
6343 * python/lib/gdb/prompt.py (_ExtendedPrompt)
6344 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
6345 operator for comparison.
6347 2019-05-04 Tom Tromey <tom@tromey.com>
6349 * psymtab.c (psymbol_name_matches, match_partial_symbol)
6350 (lookup_partial_symbol, print_partial_symbols)
6351 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
6352 (psymbol_compare): Update.
6353 (add_psymbol_to_bcache): Clear the entire psymbol.
6354 (maintenance_check_psymtabs): Update.
6355 * psympriv.h (struct partial_symbol): Don't derive from
6356 general_symbol_info.
6357 <obj_section, unrelocated_address, address,
6358 set_unrelocated_address>: Update.
6359 <ginfo>: New member.
6360 * dwarf-index-write.c (write_psymbols, debug_names::insert)
6361 (debug_names::write_psymbols): Update.
6363 2019-05-04 Tom de Vries <tdevries@suse.de>
6365 * contrib/cc-with-tweaks.sh: Support -n arg.
6367 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6369 * corelow.c (core_target::detach): Ensure frame cache and
6370 register caches are cleared.
6371 inferior.c (exit_inferior_1): Likewise.
6373 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
6374 Tom Tromey <tom@tromey.com>
6376 * dictionary.c (collate_pending_symbols_by_language): Remove
6377 "struct" from foreach.
6378 * symtab.c (lookup_global_symbol_from_objfile)
6379 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
6381 * ser-tcp.c (net_open): Remove "struct" from foreach.
6382 * objfiles.c (objfile_relocate, objfile_rebase)
6383 (objfile_has_symbols): Remove "struct" from foreach.
6384 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
6386 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
6388 * darwin-nat.c (thread_info_from_private_thread_info): Remove
6389 "struct" from foreach.
6390 * ada-lang.c (create_excep_cond_exprs)
6391 (ada_exception_catchpoint_cond_string): Remove "struct" from
6394 2019-05-03 Tom Tromey <tromey@adacore.com>
6396 * ada-exp.y (convert_char_literal): Check suffix of each
6399 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
6402 * ada-exp.y (yywrap): Don't define.
6403 * ada-lex.l (%option): Add noyywrap
6406 2019-05-03 Eli Zaretskii <eliz@gnu.org>
6408 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
6409 _WIN32_WINNT to the XP level, unless already defined to a higher
6412 * unittests/parse-connection-spec-selftests.c:
6414 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
6417 * symfile.c (find_separate_debug_file): Remove colon from the
6418 drive spec of DOS/Windows file names of the target, so that the
6419 file name produced from DEBUGDIR and the target's directory will
6420 be valid on DOS/Windows systems.
6422 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
6424 * rust-lang.c (val_print_struct): Handle printing structures
6427 2019-05-02 Tom Tromey <tromey@adacore.com>
6429 * valarith.c (_initialize_valarith): Remove.
6431 2019-05-01 Tom Tromey <tromey@adacore.com>
6433 * ada-lang.c (ada_value_primitive_field): Treat more fields as
6436 2019-05-01 Tom Tromey <tromey@adacore.com>
6438 * ada-lang.c (ada_value_assign): Correctly compute starting offset
6439 for big-endian copies.
6441 2019-04-30 Ali Tamur <tamur@google.com>
6442 * gdb/dwarf2read.c (read_3_bytes): New declaration.
6443 (read_attribute_value): Added DW_FORM_strx1-4 cases.
6444 (read_3_bytes): New function.
6446 2019-04-30 Joel Brobecker <brobecker@adacore.com>
6448 * windows-nat.c (main_thread_id): Delete.
6449 (handle_output_debug_string): Replace main_thread_id by
6450 current_event.dwThreadId.
6451 (fake_create_process): Likewise.
6452 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
6453 Do not set main_thread_id.
6454 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
6455 current_event.dwThreadId.
6456 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
6458 2019-04-30 Joel Brobecker <brobecker@adacore.com>
6460 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
6461 Use current_event.dwThreadId instead of main_thread_id.
6463 2019-04-30 Tom Tromey <tromey@adacore.com>
6465 * ada-lang.c (ada_lookup_simple_minsyms): New function.
6466 (create_excep_cond_exprs): Iterate over program spaces.
6467 (ada_exception_catchpoint_cond_string): Examine all minimal
6468 symbols for exception types.
6470 2019-04-30 Tom Tromey <tromey@adacore.com>
6473 * dwarf2read.c (process_structure_scope): Handle case where type
6474 has template parameters but no symbol was created.
6476 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6477 Chris January <chris.january@arm.com>
6479 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
6481 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
6483 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6485 * f-typeprint.c (f_print_type): Update rules for printing
6487 (f_type_print_varspec_suffix): Likewise.
6489 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6490 Chris January <chris.january@arm.com>
6492 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
6495 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6497 * f-lang.c (build_fortran_types): Change name of void type to
6499 * f-typeprint.c (f_type_print_base): Print the name of the void
6500 type, rather than a fixed string.
6501 * f-valprint.c (f_decorations): Use lower case void string.
6503 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6504 Chris January <chris.january@arm.com>
6506 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
6509 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6510 Chris January <chris.january@arm.com>
6511 David Lecomber <david.lecomber@arm.com>
6513 * f-exp.y (BINOP_INTRINSIC): New token.
6514 (exp): New parser rule handling BINOP_INTRINSIC.
6515 (f77_keywords): Add new builtin procedures.
6516 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
6517 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6518 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
6519 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6520 (print_unop_subexp_f): New function.
6521 (print_binop_subexp_f): New function.
6522 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6523 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6524 (dump_subexp_body_f): Likewise.
6525 (operator_check_f): Likewise.
6526 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6527 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
6529 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6531 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
6533 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
6534 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
6535 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
6536 (operator_length_f): New fuction.
6537 (print_subexp_f): New function.
6538 (op_name_f): New function.
6539 (dump_subexp_body_f): New function.
6540 (operator_check_f): New function.
6541 (exp_descriptor_f): Replace standard expression handling functions
6543 * gdb/fortran-operator.def: New file.
6544 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
6545 * gdb/std-operator.def: Remove UNOP_KIND.
6547 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6549 * std-operator.def: Remove unbalanced, stray double quote
6552 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6553 Chris January <chris.january@arm.com>
6554 Daniel Everett <daniel.everett@arm.com>
6555 Nick Forrington <nick.forrington@arm.com>
6556 Richard Bunt <richard.bunt@arm.com>
6558 * cp-valprint.c (cp_print_value_fields): Allow an additional level
6559 of depth when printing anonymous structs or unions.
6560 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
6561 Don't print either the top-level value, or the children if the
6562 max-depth is exceeded.
6563 (ppscm_print_children): When printing the key of a map, allow one
6564 extra level of depth.
6565 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
6566 print either the top-level value, or the children if the max-depth
6568 (print_children): When printing the key of a map, allow one extra
6570 * python/py-value.c (valpy_format_string): Add max_depth keyword.
6571 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
6572 (user_print_options): Initialise max_depth field.
6573 (val_print_scalar_or_string_type_p): New function.
6574 (val_print): Check to see if the max depth has been reached.
6575 (val_print_check_max_depth): Define new function.
6576 (show_print_max_depth): New function.
6577 (_initialize_valprint): Add 'print max-depth' option.
6578 * valprint.h (struct value_print_options) <max_depth>: New field.
6579 (val_print_check_max_depth): Declare new function.
6580 * NEWS: Document new feature.
6582 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6584 * ada-lang.c (ada_language_defn): Initialise new field.
6585 * c-lang.c (c_is_string_type_p): New function.
6586 (c_language_defn): Initialise new field.
6587 (cplus_language_defn): Initialise new field.
6588 (asm_language_defn): Initialise new field.
6589 (minimal_language_defn): Initialise new field.
6590 * c-lang.h (c_is_string_type_p): Declare new function.
6591 * d-lang.c (d_language_defn): Initialise new field.
6592 * f-lang.c (f_is_string_type_p): New function.
6593 (f_language_defn): Initialise new field.
6594 * go-lang.c (go_is_string_type_p): New function.
6595 (go_language_defn): Initialise new field.
6596 * language.c (default_is_string_type_p): New function.
6597 (unknown_language_defn): Initialise new field.
6598 (auto_language_defn): Initialise new field.
6599 * language.h (struct language_defn) <la_is_string_type_p>: New
6601 (default_is_string_type_p): Declare new function.
6602 * m2-lang.c (m2_language_defn): Initialise new field.
6603 * objc-lang.c (objc_language_defn): Initialise new field.
6604 * opencl-lang.c (opencl_language_defn): Initialise new field.
6605 * p-lang.c (pascal_is_string_type_p): New function.
6606 (pascal_language_defn): Initialise new field.
6607 * rust-lang.c (rust_is_string_type_p): New function.
6608 (rust_language_defn): Initialise new field.
6610 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6612 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
6614 * ada-lang.c (ada_language_defn): Initialise new field.
6615 * c-lang.c (c_language_defn): Likewise.
6616 (cplus_language_defn): Likewise.
6617 (asm_language_defn): Likewise.
6618 (minimal_language_defn): Likewise.
6619 * d-lang.c (d_language_defn): Likewise.
6620 * f-lang.c (f_language_defn): Likewise.
6621 * go-lang.c (go_language_defn): Likewise.
6622 * language.c (unknown_language_defn): Likewise.
6623 (auto_language_defn): Likewise.
6624 * m2-lang.c (m2_language_defn): Likewise.
6625 * objc-lang.c (objc_language_defn): Likewise.
6626 * opencl-lang.c (opencl_language_defn): Likewise.
6627 * p-lang.c (pascal_language_defn): Likewise.
6628 * rust-lang.c (rust_language_defn): Likewise.
6630 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6632 * ada-lang.c (ada_is_character_type): Change return type to bool.
6633 (ada_is_string_type): Likewise.
6634 * ada-lang.h (ada_is_character_type): Update declaration
6635 (ada_is_string_type): Likewise.
6637 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6639 Support style in 'frame|thread apply'
6641 * gdbcmd.h (execute_command_to_string): New term_out parameter.
6642 * record.c (record_start, record_stop): Update callers of
6643 execute_command_to_string with false.
6644 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
6645 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
6647 (class string_file): New constructor with term_out parameter.
6648 Override methods term_out and can_emit_style_escape. New member
6650 (class stdio_file): Override can_emit_style_escape.
6651 (class tee_file): Override term_out and can_emit_style_escape.
6652 * utils.h (can_emit_style_escape): Remove.
6653 * utils.c (can_emit_style_escape): Likewise.
6654 Update all callers of can_emit_style_escape (SOMESTREAM) to
6655 SOMESTREAM->can_emit_style_escape.
6656 * source-cache.c (source_cache::get_source_lines): Likewise.
6657 * stack.c (frame_apply_command_count): Call execute_command_to_string
6658 passing the term_out characteristic of the current gdb_stdout.
6659 * thread.c (thr_try_catch_cmd): Likewise.
6660 * top.c (execute_command_to_string): pass term_out parameter
6661 to construct the string_file for the command output.
6662 * ui-file.c (term_cli_styling): New function (most code moved
6663 from utils.c can_emit_style_escape).
6664 (string_file::string_file, string_file::can_emit_style_escape,
6665 stdio_file::can_emit_style_escape, tee_file::term_out,
6666 tee_file::can_emit_style_escape): New functions.
6668 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6670 * NEWS: Mention the new set|show may-call-functions.
6671 * infcall.c (may_call_functions_p): New variable.
6672 (show_may_call_functions_p): New function.
6673 (call_function_by_hand_dummy): Throws an error if not
6675 (_initialize_infcall): Call add_setshow_boolean_cmd for
6678 2019-04-25 Keith Seitz <keiths@redhat.com>
6681 * cp-support.c (inspect_type): Don't attempt substitutions
6682 of symbol with the same name.
6684 2019-04-25 Tom Tromey <tromey@adacore.com>
6687 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
6690 2019-04-25 Tom Tromey <tromey@adacore.com>
6692 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
6694 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
6695 (gdb_xml_parser::parse): Use std::move.
6696 * python/python-internal.h (gdbpy_convert_exception): Take a const
6698 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
6700 * python/py-utils.c (gdbpy_convert_exception): Take a const
6702 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
6704 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
6706 * mi/mi-main.c (mi_print_exception): Take a const reference.
6707 * main.c (handle_command_errors): Take a const reference.
6708 * linespec.c (parse_linespec): Use std::move.
6709 * infcall.c (run_inferior_call): Use std::move.
6710 (call_function_by_hand_dummy): Use std::move.
6711 * exec.c (try_open_exec_file): Use std::move.
6712 * exceptions.h (exception_print, exception_fprintf)
6713 (exception_print_same): Update.
6714 * exceptions.c (print_exception, exception_print)
6715 (exception_fprintf, exception_print_same): Change parameters to
6717 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
6718 * common/new-op.c: Use std::move.
6719 * common/common-exceptions.h (struct gdb_exception): Add move
6721 (struct gdb_exception_error, struct gdb_exception_quit, struct
6722 gdb_quit_bad_alloc): Change constructor to move constructor.
6723 (throw_exception): Change parameter to rvalue reference.
6724 * common/common-exceptions.c (throw_exception): Take rvalue
6726 * cli/cli-interp.c (safe_execute_command): Use std::move.
6727 * breakpoint.c (insert_bp_location, location_to_sals): Use
6730 2019-04-25 Tom Tromey <tromey@adacore.com>
6732 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
6733 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
6734 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
6735 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
6736 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
6737 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
6738 guile/scm-value.c: Use unpack.
6739 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
6740 gdbscm_gdb_exception.
6741 (gdbscm_throw_gdb_exception): Likewise.
6742 (struct gdbscm_gdb_exception): New.
6743 (unpack): New function.
6744 (gdbscm_wrap): Use unpack.
6746 2019-04-25 Tom Tromey <tromey@adacore.com>
6748 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
6749 (gdb_rl_callback_handler): Use std::move.
6750 * common/common-exceptions.h (struct gdb_exception): Add move
6751 assignment operator.
6752 (throw_exception_sjlj): Change "exception" to const reference.
6753 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
6754 (throw_exception_sjlj): Change "exception" to const reference.
6756 2019-04-25 Tom Tromey <tromey@adacore.com>
6758 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
6759 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
6760 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
6762 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
6764 * mi/mi-interp.c (mi_interp::exec): Update.
6765 * linespec.c (parse_linespec): Update.
6766 * infcall.c (run_inferior_call): Update.
6767 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
6768 * guile/scm-symbol.c (gdbscm_lookup_symbol)
6769 (gdbscm_lookup_global_symbol): Update.
6770 * guile/scm-param.c (gdbscm_parameter_value): Update.
6771 * guile/scm-frame.c (gdbscm_frame_read_register)
6772 (gdbscm_frame_read_var): Update.
6773 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
6774 * exec.c (try_open_exec_file): Update.
6775 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
6776 (gdb_rl_callback_handler): Update.
6777 * common/common-exceptions.h (exception_none): Don't declare.
6778 * common/common-exceptions.c (exception_none): Don't define.
6779 (struct catcher) <exception>: Update.
6780 * cli/cli-interp.c (safe_execute_command): Update.
6781 * breakpoint.c (insert_bp_location, location_to_sals): Update.
6783 2019-04-25 Ali Tamur <tamur@google.com>
6785 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
6786 (read_attribute_value): Likewise.
6787 (dwarf2_read_addr_index): Update comment.
6788 (read_str_index): Add DW_FORM_strx.
6789 (dwarf2_string_attr): Likewise.
6790 (dwarf2_const_value_attr): Likewise.
6791 (dump_die_shallow): Likewise.
6792 (dwarf2_fetch_constant_bytes): Likewise.
6793 (skip_form_bytes): Likewise.
6794 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
6796 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6800 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
6801 OFFSET. Verify if current mapping contains an ELF header.
6802 (linux_find_memory_regions_full): Adjust call to
6805 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
6806 Kang Li <kanglictf@gmail.com>
6810 * dwarf2-frame.c (read_initial_length): Be consistent about using
6811 unsigned representation of length.
6812 (decode_frame_entry_1): Likewise. Check for wraparound of
6813 end pointer as well as buffer overflow.
6815 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6817 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
6820 2019-04-24 Tom Tromey <tromey@adacore.com>
6822 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
6824 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6826 * s12z-tdep.c (s12z_unwind_pc): Delete.
6827 (s12z_unwind_sp): Delete.
6828 (s12z_gdbarch_init): Don't register deleted functions with
6831 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6833 * rl78-tdep.c (rl78_unwind_sp): Delete.
6834 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
6836 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6838 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
6839 (xstormy16_unwind_pc): Delete.
6840 (xstormy16_dummy_id): Delete.
6841 (xstormy16_gdbarch_init): Don't register deleted functions with
6844 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6846 * vax-tdep.c (vax_unwind_pc): Delete.
6847 (vax_gdbarch_init): Don't register deleted function with gdbarch.
6849 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6851 * v850-tdep.c (v850_unwind_sp): Delete.
6852 (v850_unwind_pc): Delete.
6853 (v850_dummy_id): Delete.
6854 (v850_gdbarch_init): Don't register deleted functions with
6857 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6859 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
6860 (tilegx_unwind_pc): Delete.
6861 (tilegx_unwind_dummy_id): Delete.
6862 (tilegx_gdbarch_init): Don't register deleted functions with
6865 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6867 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
6868 (tic6x_dummy_id): Delete.
6869 (tic6x_gdbarch_init): Don't register deleted functions with
6872 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6874 * sparc-tdep.c (sparc_unwind_pc): Delete.
6875 (sparc32_gdbarch_init): Don't register deleted function with
6878 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6880 * sh-tdep.c (sh_unwind_sp): Delete.
6881 (sh_unwind_pc): Delete.
6882 (sh_dummy_id): Delete.
6883 (sh_gdbarch_init): Don't register deleted functions with
6886 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6888 * score-tdep.c (score_unwind_sp): Delete.
6889 (score_unwind_pc): Delete.
6890 (score_dummy_id): Delete.
6891 (score_gdbarch_init): Don't register deleted functions with
6894 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6896 * rx-tdep.c (rx_unwind_pc): Delete.
6897 (rx_unwind_sp): Delete.
6898 (rx_dummy_id): Delete.
6899 (rx_gdbarch_init): Don't register deleted functions with
6900 gdbarch. Update comment.
6902 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6904 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
6905 (rs6000_dummy_id): Delete.
6906 (rs6000_gdbarch_init): Don't register deleted functions with
6909 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6911 * or1k-tdep.c (or1k_dummy_id): Delete.
6912 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
6914 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6916 * nios2-tdep.c (nios2_dummy_id): Delete.
6917 (nios2_unwind_sp): Delete.
6918 (nios2_gdbarch_init): Don't register deleted functions with
6921 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6923 * nds32-tdep.c (nds32_dummy_id): Delete.
6924 (nds32_unwind_pc): Delete.
6925 (nds32_unwind_sp): Delete.
6926 (nds32_gdbarch_init): Don't register deleted functions with
6929 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6931 * msp430-tdep.c (msp430_unwind_pc): Delete.
6932 (msp430_unwind_sp): Delete.
6933 (msp430_dummy_id): Delete.
6934 (msp430_gdbarch_init): Don't register deleted functions with
6937 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6939 * moxie-tdep.c (moxie_unwind_sp): Delete.
6940 (moxie_unwind_pc): Delete.
6941 (moxie_dummy_id): Delete.
6942 (moxie_gdbarch_init): Don't register deleted functions with
6945 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6947 * mn10300-tdep.c (mn10300_dummy_id): Delete.
6948 (mn10300_unwind_pc): Delete.
6949 (mn10300_unwind_sp): Delete.
6950 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
6952 (mn10300_frame_unwind_init): Don't register deleted functions with
6955 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6957 * mep-tdep.c (mep_unwind_pc): Delete.
6958 (mep_unwind_sp): Delete.
6959 (mep_dummy_id): Delete.
6960 (mep_gdbarch_init): Don't register deleted functions with
6963 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6965 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
6966 (m68hc11_unwind_sp): Delete.
6967 (m68hc11_gdbarch_init): Don't register deleted functions with
6970 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6972 * m32r-tdep.c (m32r_unwind_sp): Delete.
6973 (m32r_unwind_pc): Delete.
6974 (m32r_dummy_id): Delete.
6975 (m32r_gdbarch_init): Don't register deleted functions with
6978 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6980 * m32c-tdep.c (m32c_unwind_pc): Delete.
6981 (m32c_unwind_sp): Delete.
6982 (m32c_dummy_id): Delete.
6983 (m32c_gdbarch_init): Don't register deleted functions with
6986 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6988 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
6989 (lm32_unwind_pc): Delete.
6990 (lm32_dummy_id): Delete.
6991 (lm32_gdbarch_init): Don't register deleted functions with
6994 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6996 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
6997 (iq2000_unwind_pc): Delete.
6998 (iq2000_dummy_id): Delete.
6999 (iq2000_gdbarch_init): Don't register deleted functions with
7002 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7004 * nds32-tdep.c (nds32_type_align): Delete.
7005 (nds32_push_dummy_call): Use type_align instead.
7007 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7009 * arm-tdep.c (arm_type_align): Only handle vector override case.
7010 (arm_push_dummy_call): Use type_align.
7011 (arm_gdbarch_init): Register arm_type_align gdbarch function.
7013 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7015 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
7017 (pass_on_stack): Use type_align.
7018 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
7021 2019-04-23 Tom Tromey <tromey@adacore.com>
7023 * dwarf2read.c (line_header::file_name_at): Remove unused
7026 2019-04-23 Tom de Vries <tdevries@suse.de>
7029 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
7033 2019-03-27 Ali Tamur <tamur@google.com>
7035 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
7036 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
7037 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
7038 (dwarf_expr_context::get_addr_index): Likewise
7039 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
7040 (symbol_needs_eval_context::get_addr_index): Likewise
7041 (disassemble_dwarf_expression): Add DW_OP_addrx
7042 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
7043 (read_cutu_die_from_dwo): Update comment
7044 (skip_one_die): Add DW_FORM_addrx
7045 (read_attribute_value): Likewise
7046 (var_decode_location): Add DW_OP_addrx
7047 (dwarf2_const_value_attr): Add DW_FORM_addrx
7048 (dump_die_shallow): Likewise
7049 (dwarf2_fetch_constant_bytes): Likewise
7050 (decode_locdesc): Add DW_OP_addrx
7051 (skip_form_bytes): Add DW_FORM_addrx
7053 2019-04-22 Ali Tamur <tamur@google.com>
7055 * MAINTAINERS (Write After Approval): Add self.
7057 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
7059 * solib-svr4.c (get_svr4_info): Add pspace parameter.
7060 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
7061 (open_symbol_file_object): Likewise.
7062 (svr4_default_sos): Add info parameter.
7063 (svr4_read_so_list): Likewise.
7064 (svr4_current_sos_direct): Adjust functions calls to pass down
7066 (svr4_current_sos_1): Add info parameter.
7067 (svr4_current_sos): Call get_svr4_info, pass info down to
7069 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
7071 (svr4_in_dynsym_resolve_code): Pass current_program_space to
7073 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
7075 (probes_table_remove_objfile_probes): Likewise.
7076 (register_solib_event_probe): Add info parameter.
7077 (solist_update_incremental): Pass info parameter down to
7079 (disable_probes_interface): Add info parameter.
7080 (svr4_handle_solib_event): Pass current_program_space to
7081 get_svr4_info. Adjust disable_probes_interface cleanup.
7082 (svr4_create_probe_breakpoints): Add info parameter, pass it
7083 down to register_solib_event_probe.
7084 (svr4_create_solib_event_breakpoints): Add info parameter,
7085 pass it down to svr4_create_probe_breakpoints.
7086 (enable_break): Pass info down to
7087 svr4_create_solib_event_breakpoints.
7088 (svr4_solib_create_inferior_hook): Pass current_program_space to
7090 (svr4_clear_solib): Likewise.
7092 2019-04-22 Pedro Alves <palves@redhat.com>
7094 * solib-svr4.c (svr4_free_objfile_observer): New.
7095 (probe_and_action::objfile): New field.
7096 (probes_table_htab_remove_objfile_probes)
7097 (probes_table_remove_objfile_probes): New functions.
7098 (register_solib_event_probe): Add 'objfile' parameter. Store it
7099 in the new probe_and_action. Don't store the probe in 'lookup'.
7100 (svr4_create_probe_breakpoints): Pass objfile to
7101 register_solib_event_probe.
7102 (_initialize_svr4_solib): Register a free_objfile observer.
7104 2019-04-19 Tom Tromey <tom@tromey.com>
7106 * common/queue.h: Remove.
7108 2019-04-19 Tom Tromey <tom@tromey.com>
7110 * event-loop.c: Don't include "common/queue.h".
7112 2019-04-19 Tom Tromey <tom@tromey.com>
7114 * remote.c (remote_target): Use delete.
7115 * remote-notif.h: Include <list>, not "common/queue.h".
7116 (notif_client_p): Remove typedef.
7117 (remote_notif_state): Add constructor, destructor, initializer.
7118 <notif_queue>: Now a std::list.
7119 (remote_notif_state_xfree): Don't declare.
7120 * remote-notif.c (remote_notif_process, handle_notification)
7121 (remote_notif_state_allocate): Update.
7122 (~remote_notif_state): Rename from remote_notif_state_xfree.
7124 2019-04-19 Tom Tromey <tom@tromey.com>
7126 * symfile.c (reread_symbols): Update.
7127 * objfiles.c (objfile_register_static_link)
7128 (objfile_lookup_static_link): Update
7129 (~objfile) Don't delete static_links.
7130 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
7132 2019-04-19 Tom Tromey <tom@tromey.com>
7134 * type-stack.h (struct type_stack) <insert>: Constify string.
7135 * type-stack.c (type_stack::insert): Constify string.
7136 * gdbtypes.h (lookup_template_type): Update.
7137 (address_space_name_to_int): Update.
7138 * gdbtypes.c (address_space_name_to_int): Make space_identifier
7140 (lookup_template_type): Make name const.
7141 * c-exp.y: Update rules.
7142 (lex_one_token, classify_name, classify_inner_name)
7143 (c_print_token): Update.
7144 * p-exp.y: Update rules.
7146 * f-exp.y: Update rules.
7148 * d-exp.y: Update rules.
7149 (lex_one_token, classify_name, classify_inner_name): Update.
7150 * parse.c (write_dollar_variable, copy_name): Return std::string.
7151 * parser-defs.h (copy_name): Change return type.
7152 * m2-exp.y: Update rules.
7154 * go-exp.y (lex_one_token): Update.
7156 (classify_unsafe_function, classify_packaged_name)
7157 (classify_name, yylex): Update.
7159 2019-04-19 Sergei Trofimovich <siarheit@google.com>
7161 * configure.ac: add --enable-source-highlight switch.
7162 * configure: Regenerate.
7163 * top.c (print_gdb_version): plumb --enable-source-highlight
7164 status to "show configuration".
7166 2019-04-19 Tom Tromey <tromey@adacore.com>
7168 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
7170 (empty_record, ada_template_to_fixed_record_type_1)
7171 (template_to_static_fixed_type)
7172 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
7173 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
7174 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
7177 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
7180 * source.c (print_source_lines_base): Advance "iter" when a
7181 control character is seen.
7183 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7185 * inferior.h (struct infcall_suspend_state_deleter):
7186 Catch exception in destructor to avoid crash.
7188 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7190 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
7191 close to the add_com "shell".
7193 2019-04-18 Tom Tromey <tromey@adacore.com>
7195 * process-stratum-target.h (class process_stratum_target)
7196 <stratum>: Add "final".
7198 2019-04-17 Tom Tromey <tromey@adacore.com>
7200 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
7201 against nullptr before use.
7203 2019-04-17 Alan Hayward <alan.hayward@arm.com>
7205 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
7207 2019-04-17 Jim Wilson <jimw@sifive.com>
7208 Andrew Burgess <andrew.burgess@embecosm.com>
7210 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
7211 code read might fail, assume 4-byte breakpoint in that case.
7213 2019-04-15 Leszek Swirski <leszeks@google.com>
7215 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
7216 rather than a hand-rolled POD check when checking for forced MEMORY
7219 2019-04-15 Alan Hayward <alan.hayward@arm.com>
7221 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
7222 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
7224 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
7225 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
7226 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
7229 2019-04-15 Alan Hayward <alan.hayward@arm.com>
7231 * aarch64-linux-nat.c
7232 (aarch64_linux_nat_target::thread_architecture): Add override.
7233 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
7236 2019-04-15 Alan Hayward <alan.hayward@arm.com>
7238 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
7240 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
7242 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
7243 target types of size 96-bits, add some additional comments, and
7244 check that the builtin type we found was the correct size.
7246 2019-04-12 Eli Zaretskii <eliz@gnu.org>
7248 * utils.c (prompt_for_continue): Don't restore the styling at the
7249 end, as applied_style has the wrong value. This fixes styling in
7250 long lists of file names that are interrupted by the "Continue?"
7253 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
7255 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
7256 * c-lang.c (c_language_defn): Likewise.
7257 (cplus_language_defn): Likewise.
7258 (asm_language_defn): Likewise.
7259 (minimal_language_defn): Likewise.
7260 * d-lang.c (d_language_defn): Likewise.
7261 * f-lang.c (f_language_defn): Likewise.
7262 * go-lang.c (go_language_defn): Likewise.
7263 * language.c (unknown_language_defn): Likewise.
7264 (auto_language_defn): Likewise.
7265 * language.h (struct language_defn): Remove la_magic field.
7266 (LANG_MAGIC): Delete.
7267 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
7268 * objc-lang.c (objc_language_defn): Likewise.
7269 * opencl-lang.c (opencl_language_defn): Likewise.
7270 * p-lang.c (pascal_language_defn): Likewise.
7271 * rust-lang.c (rust_language_defn): Likewise.
7273 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7275 * riscv-tdep.c (riscv_type_align): New function.
7276 (riscv_type_alignment): Delete.
7277 (riscv_arg_location): Use 'type_align'.
7278 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
7280 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7282 * gdbtypes.c (type_align): A struct with no non-static fields also
7285 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7287 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
7289 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
7291 (riscv_struct_info::analyse): New implementation using new
7292 analyse_inner member function.
7293 (riscv_struct_info::field_offset): New member function.
7294 (riscv_struct_info::m_offsets): New member variable.
7295 (riscv_struct_info::analyse_inner): New private member function,
7296 takes the old implementation of riscv_struct_info::analyse but
7297 extended to track field offsets.
7298 (riscv_call_arg_struct): Update the struct folding special cases
7299 to handle cases where empty C++ structs, which are non-zero
7301 (riscv_arg_location): Initialise the length of each location, a
7302 non-zero length now indicates the location is in use.
7303 (riscv_push_dummy_call): Allow for the first location having a
7304 non-zero offset when setting up arguments.
7305 (riscv_return_value): Likewise, but for return values.
7307 2019-04-11 Tom Tromey <tromey@adacore.com>
7309 * utils.c (internal_vproblem): Make "msg" const.
7311 2019-04-11 Alan Hayward <alan.hayward@arm.com>
7313 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
7314 * trad-frame.c (trad_frame_reset_saved_regs): New function.
7315 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
7316 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
7318 2019-04-10 Kevin Buettner <kevinb@redhat.com>
7320 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
7322 (fill_gregset): Call amd64_linux_collect_native_gregset instead
7323 of amd64_collect_native_gregset.
7324 (amd64_linux_nat_target::store_registers): Likewise.
7326 2019-04-10 Tom Tromey <tom@tromey.com>
7328 * symtab.c (lookup_global_symbol_from_objfile)
7329 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
7330 * objfiles.h (class separate_debug_iterator): New.
7331 (class separate_debug_range): New.
7332 (struct objfile) <separate_debug_objfiles>: New method.
7333 (objfile_separate_debug_iterate): Don't declare.
7334 * objfiles.c (separate_debug_iterator::operator++): Rename from
7335 objfile_separate_debug_iterate.
7336 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
7338 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
7341 2019-04-10 Tom Tromey <tom@tromey.com>
7343 * symfile.c (reread_symbols): Remove old comment.
7344 * objfiles.c (free_all_objfiles): Fix a typo.
7346 2019-04-10 Tom Tromey <tom@tromey.com>
7348 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
7349 * minsyms.c (lookup_minimal_symbol): Use foreach.
7350 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7351 (lookup_minimal_symbol_solib_trampoline): Likewise.
7352 * symfile.c (reread_symbols): Use foreach.
7354 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
7355 Tom Tromey <tromey@adacore.com>
7358 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
7359 (rust_lex_int_test): Change "value" to be LONGEST.
7360 (rust_lex_tests): Add test for long integer literal.
7362 2019-04-09 Tom Tromey <tromey@adacore.com>
7364 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
7366 (extended_remote_target::attach): Update.
7367 (remote_target::remote_notice_new_inferior): Update.
7368 (remote_target::add_current_inferior_and_thread): Update.
7369 * inferior.c (exit_inferior_1): Use "false".
7370 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
7372 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
7374 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
7375 the "start" command.
7377 2019-04-08 Kevin Buettner <kevinb@redhat.com>
7379 * python/py-inferior.c (infpy_thread_from_thread_handle):
7380 Adjust comments to reflect renaming of thread_from_thread_handle
7381 to thread_from_handle. Adjust keywords. Fix type error message.
7382 (inferior_object_methods): Add thread_from_handle. Retain
7383 thread_from_thread_handle, but mark it as deprecated.
7385 2019-04-08 Kevin Buettner <kevinb@redhat.com>
7387 * gdbthread.h (find_thread_by_handle): Revise declaration.
7388 * thread.c (find_thread_by_handle): Likewise. Adjust
7390 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
7391 support for buffer objects as handles.
7393 2019-04-08 Kevin Buettner <kevinb@redhat.com>
7395 * python/py-infthread.c (thpy_thread_handle): New function.
7396 (thread_object_methods): Register thpy_thread_handle.
7398 2019-04-08 Kevin Buettner <kevinb@redhat.com>
7400 * gdbthread.h (thread_to_thread_handle): Declare.
7401 * thread.c (gdbtypes.h): Include.
7402 (thread_to_thread_handle): New function.
7404 * target.h (struct target_ops): Add thread_info_to_thread_handle.
7405 (target_thread_info_to_thread_handle): Declare.
7406 * target.c (target_thread_info_to_thread_handle): New function.
7407 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
7408 * target-delegates.c: Regenerate.
7410 * linux-thread-db.c (class thread_db_target): Add method
7411 thread_info_to_thread_handle.
7412 (thread_db_target::thread_info_to_thread_handle): Define.
7413 * remote.c (class remote_target): Add new method
7414 thread_info_to_thread_handle.
7415 (remote_target::thread_info_to_thread_handle): Define.
7417 2019-04-08 Pedro Alves <palves@redhat.com>
7419 * common/common-exceptions.c (throw_exception): Don't create
7420 named object to throw; throw directly.
7421 (throw_it): Likewise. Don't initialize gdb_exception::message
7422 here, with new; pass FMT and AP to the ctor instead.
7423 * common/common-exceptions.h: Include <string>.
7424 (gdb_exception::gdb_exception(enum return_reason, enum errors,
7425 const char *, va_list)): New ctor. Use std::make_shared.
7426 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
7428 (gdb_exception_error::gdb_exception_error(enum errors, const char
7430 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
7432 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
7434 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
7435 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
7438 2019-04-08 Tom Tromey <tom@tromey.com>
7440 * valops.c (value_rtti_indirect_type): Replace throw_exception
7442 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
7444 * thread.c (thr_try_catch_cmd): Replace throw_exception with
7446 * target.c (target_translate_tls_address): Replace throw_exception
7448 * stack.c (frame_apply_command_count): Replace throw_exception
7450 * solib-spu.c (append_ocl_sos): Replace throw_exception with
7452 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
7454 * rs6000-tdep.c (rs6000_frame_cache)
7455 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
7456 * remote.c: Replace throw_exception with throw.
7457 * record-full.c (record_full_message, record_full_wait_1)
7458 (record_full_restore): Replace throw_exception with throw.
7460 (get_thread_current_frame_id, record_btrace_start_replaying)
7461 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
7462 (cmd_record_btrace_start): Replace throw_exception with throw.
7463 * parse.c (parse_exp_in_context_1): Replace throw_exception with
7465 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
7466 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
7468 (find_linespec_symbols): Replace throw_exception with throw.
7469 * infrun.c (displaced_step_prepare, resume): Replace
7470 throw_exception with throw.
7471 * infcmd.c (post_create_inferior): Replace throw_exception with
7473 * inf-loop.c (inferior_event_handler): Replace throw_exception
7475 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
7476 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
7477 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
7478 (get_prev_frame_always, get_frame_pc_if_available)
7479 (get_frame_address_in_block_if_available, get_frame_language):
7480 Replace throw_exception with throw.
7481 * frame-unwind.c (frame_unwind_try_unwinder): Replace
7482 throw_exception with throw.
7483 * eval.c (fetch_subexp_value, evaluate_var_value)
7484 (evaluate_funcall, evaluate_subexp_standard): Replace
7485 throw_exception with throw.
7486 * dwarf2loc.c (call_site_find_chain)
7487 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
7488 Replace throw_exception with throw.
7489 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
7491 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
7493 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
7494 * completer.c (complete_line_internal): Replace throw_exception
7496 * compile/compile-object-run.c (compile_object_run): Replace
7497 throw_exception with throw.
7498 * cli/cli-script.c (process_next_line): Replace throw_exception
7500 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
7501 (btrace_enable, btrace_maint_update_pt_packets): Replace
7502 throw_exception with throw.
7503 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
7504 throw_exception with throw.
7505 * break-catch-throw.c (re_set_exception_catchpoint): Replace
7506 throw_exception with throw.
7507 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
7508 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
7509 * aarch64-tdep.c (aarch64_make_prologue_cache)
7510 (aarch64_make_stub_cache): Replace throw_exception with throw.
7512 2019-04-08 Tom Tromey <tom@tromey.com>
7514 * common/common-exceptions.c (throw_exception): Rename from
7515 throw_exception_cxx. Remove old copy. Make argument const.
7516 (throw_it): Create and throw exception objects directly.
7517 * common/common-exceptions.h (throw_exception): Make argument
7519 (struct gdb_exception_error): Add constructor.
7520 (struct gdb_exception_quit): Add constructor.
7522 2019-04-08 Tom Tromey <tom@tromey.com>
7524 * common/common-exceptions.h (exception_rethrow): Don't declare.
7525 (TRY_SJLJ): Update comment.
7526 (TRY, CATCH, END_CATCH): Remove.
7527 * common/common-exceptions.c (exception_rethrow): Remove.
7529 2019-04-08 Tom Tromey <tom@tromey.com>
7531 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
7533 (gdb_exception_error): Rename from
7534 gdb_exception_RETURN_MASK_ERROR.
7535 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
7536 (gdb_quit_bad_alloc): Update.
7537 * aarch64-tdep.c: Update.
7538 * ada-lang.c: Update.
7539 * ada-typeprint.c: Update.
7540 * ada-valprint.c: Update.
7541 * amd64-tdep.c: Update.
7542 * arch-utils.c: Update.
7543 * break-catch-throw.c: Update.
7544 * breakpoint.c: Update.
7546 * c-varobj.c: Update.
7547 * cli/cli-cmds.c: Update.
7548 * cli/cli-interp.c: Update.
7549 * cli/cli-script.c: Update.
7550 * common/common-exceptions.c: Update.
7551 * common/new-op.c: Update.
7552 * common/selftest.c: Update.
7553 * compile/compile-c-symbols.c: Update.
7554 * compile/compile-cplus-symbols.c: Update.
7555 * compile/compile-object-load.c: Update.
7556 * compile/compile-object-run.c: Update.
7557 * completer.c: Update.
7558 * corelow.c: Update.
7560 * cp-support.c: Update.
7561 * cp-valprint.c: Update.
7562 * darwin-nat.c: Update.
7563 * disasm-selftests.c: Update.
7564 * dtrace-probe.c: Update.
7565 * dwarf-index-cache.c: Update.
7566 * dwarf-index-write.c: Update.
7567 * dwarf2-frame-tailcall.c: Update.
7568 * dwarf2-frame.c: Update.
7569 * dwarf2loc.c: Update.
7570 * dwarf2read.c: Update.
7572 * event-loop.c: Update.
7573 * event-top.c: Update.
7575 * f-valprint.c: Update.
7576 * fbsd-tdep.c: Update.
7577 * frame-unwind.c: Update.
7579 * gdbtypes.c: Update.
7580 * gnu-v3-abi.c: Update.
7581 * guile/guile-internal.h: Update.
7582 * guile/scm-block.c: Update.
7583 * guile/scm-breakpoint.c: Update.
7584 * guile/scm-cmd.c: Update.
7585 * guile/scm-disasm.c: Update.
7586 * guile/scm-frame.c: Update.
7587 * guile/scm-lazy-string.c: Update.
7588 * guile/scm-math.c: Update.
7589 * guile/scm-param.c: Update.
7590 * guile/scm-ports.c: Update.
7591 * guile/scm-pretty-print.c: Update.
7592 * guile/scm-symbol.c: Update.
7593 * guile/scm-symtab.c: Update.
7594 * guile/scm-type.c: Update.
7595 * guile/scm-value.c: Update.
7596 * i386-linux-tdep.c: Update.
7597 * i386-tdep.c: Update.
7598 * inf-loop.c: Update.
7599 * infcall.c: Update.
7603 * language.c: Update.
7604 * linespec.c: Update.
7605 * linux-fork.c: Update.
7606 * linux-nat.c: Update.
7607 * linux-tdep.c: Update.
7608 * linux-thread-db.c: Update.
7610 * mi/mi-cmd-break.c: Update.
7611 * mi/mi-cmd-stack.c: Update.
7612 * mi/mi-interp.c: Update.
7613 * mi/mi-main.c: Update.
7614 * objc-lang.c: Update.
7615 * p-valprint.c: Update.
7617 * ppc-linux-tdep.c: Update.
7618 * printcmd.c: Update.
7619 * python/py-arch.c: Update.
7620 * python/py-breakpoint.c: Update.
7621 * python/py-cmd.c: Update.
7622 * python/py-finishbreakpoint.c: Update.
7623 * python/py-frame.c: Update.
7624 * python/py-framefilter.c: Update.
7625 * python/py-gdb-readline.c: Update.
7626 * python/py-inferior.c: Update.
7627 * python/py-infthread.c: Update.
7628 * python/py-lazy-string.c: Update.
7629 * python/py-linetable.c: Update.
7630 * python/py-objfile.c: Update.
7631 * python/py-param.c: Update.
7632 * python/py-prettyprint.c: Update.
7633 * python/py-progspace.c: Update.
7634 * python/py-record-btrace.c: Update.
7635 * python/py-record.c: Update.
7636 * python/py-symbol.c: Update.
7637 * python/py-type.c: Update.
7638 * python/py-unwind.c: Update.
7639 * python/py-utils.c: Update.
7640 * python/py-value.c: Update.
7641 * python/python.c: Update.
7642 * record-btrace.c: Update.
7643 * record-full.c: Update.
7644 * remote-fileio.c: Update.
7646 * riscv-tdep.c: Update.
7647 * rs6000-aix-tdep.c: Update.
7648 * rs6000-tdep.c: Update.
7649 * rust-exp.y: Update.
7650 * rust-lang.c: Update.
7651 * s390-tdep.c: Update.
7652 * selftest-arch.c: Update.
7653 * solib-dsbt.c: Update.
7654 * solib-frv.c: Update.
7655 * solib-spu.c: Update.
7656 * solib-svr4.c: Update.
7658 * sparc64-linux-tdep.c: Update.
7660 * symfile-mem.c: Update.
7661 * symmisc.c: Update.
7665 * tracefile-tfile.c: Update.
7666 * tui/tui.c: Update.
7667 * typeprint.c: Update.
7668 * unittests/cli-utils-selftests.c: Update.
7669 * unittests/parse-connection-spec-selftests.c: Update.
7671 * valprint.c: Update.
7674 * windows-nat.c: Update.
7675 * x86-linux-nat.c: Update.
7676 * xml-support.c: Update.
7678 2019-04-08 Tom Tromey <tom@tromey.com>
7680 * xml-support.c: Use C++ exception handling.
7681 * x86-linux-nat.c: Use C++ exception handling.
7682 * windows-nat.c: Use C++ exception handling.
7683 * varobj.c: Use C++ exception handling.
7684 * value.c: Use C++ exception handling.
7685 * valprint.c: Use C++ exception handling.
7686 * valops.c: Use C++ exception handling.
7687 * unittests/parse-connection-spec-selftests.c: Use C++ exception
7689 * unittests/cli-utils-selftests.c: Use C++ exception handling.
7690 * typeprint.c: Use C++ exception handling.
7691 * tui/tui.c: Use C++ exception handling.
7692 * tracefile-tfile.c: Use C++ exception handling.
7693 * top.c: Use C++ exception handling.
7694 * thread.c: Use C++ exception handling.
7695 * target.c: Use C++ exception handling.
7696 * symmisc.c: Use C++ exception handling.
7697 * symfile-mem.c: Use C++ exception handling.
7698 * stack.c: Use C++ exception handling.
7699 * sparc64-linux-tdep.c: Use C++ exception handling.
7700 * solib.c: Use C++ exception handling.
7701 * solib-svr4.c: Use C++ exception handling.
7702 * solib-spu.c: Use C++ exception handling.
7703 * solib-frv.c: Use C++ exception handling.
7704 * solib-dsbt.c: Use C++ exception handling.
7705 * selftest-arch.c: Use C++ exception handling.
7706 * s390-tdep.c: Use C++ exception handling.
7707 * rust-lang.c: Use C++ exception handling.
7708 * rust-exp.y: Use C++ exception handling.
7709 * rs6000-tdep.c: Use C++ exception handling.
7710 * rs6000-aix-tdep.c: Use C++ exception handling.
7711 * riscv-tdep.c: Use C++ exception handling.
7712 * remote.c: Use C++ exception handling.
7713 * remote-fileio.c: Use C++ exception handling.
7714 * record-full.c: Use C++ exception handling.
7715 * record-btrace.c: Use C++ exception handling.
7716 * python/python.c: Use C++ exception handling.
7717 * python/py-value.c: Use C++ exception handling.
7718 * python/py-utils.c: Use C++ exception handling.
7719 * python/py-unwind.c: Use C++ exception handling.
7720 * python/py-type.c: Use C++ exception handling.
7721 * python/py-symbol.c: Use C++ exception handling.
7722 * python/py-record.c: Use C++ exception handling.
7723 * python/py-record-btrace.c: Use C++ exception handling.
7724 * python/py-progspace.c: Use C++ exception handling.
7725 * python/py-prettyprint.c: Use C++ exception handling.
7726 * python/py-param.c: Use C++ exception handling.
7727 * python/py-objfile.c: Use C++ exception handling.
7728 * python/py-linetable.c: Use C++ exception handling.
7729 * python/py-lazy-string.c: Use C++ exception handling.
7730 * python/py-infthread.c: Use C++ exception handling.
7731 * python/py-inferior.c: Use C++ exception handling.
7732 * python/py-gdb-readline.c: Use C++ exception handling.
7733 * python/py-framefilter.c: Use C++ exception handling.
7734 * python/py-frame.c: Use C++ exception handling.
7735 * python/py-finishbreakpoint.c: Use C++ exception handling.
7736 * python/py-cmd.c: Use C++ exception handling.
7737 * python/py-breakpoint.c: Use C++ exception handling.
7738 * python/py-arch.c: Use C++ exception handling.
7739 * printcmd.c: Use C++ exception handling.
7740 * ppc-linux-tdep.c: Use C++ exception handling.
7741 * parse.c: Use C++ exception handling.
7742 * p-valprint.c: Use C++ exception handling.
7743 * objc-lang.c: Use C++ exception handling.
7744 * mi/mi-main.c: Use C++ exception handling.
7745 * mi/mi-interp.c: Use C++ exception handling.
7746 * mi/mi-cmd-stack.c: Use C++ exception handling.
7747 * mi/mi-cmd-break.c: Use C++ exception handling.
7748 * main.c: Use C++ exception handling.
7749 * linux-thread-db.c: Use C++ exception handling.
7750 * linux-tdep.c: Use C++ exception handling.
7751 * linux-nat.c: Use C++ exception handling.
7752 * linux-fork.c: Use C++ exception handling.
7753 * linespec.c: Use C++ exception handling.
7754 * language.c: Use C++ exception handling.
7755 * jit.c: Use C++ exception handling.
7756 * infrun.c: Use C++ exception handling.
7757 * infcmd.c: Use C++ exception handling.
7758 * infcall.c: Use C++ exception handling.
7759 * inf-loop.c: Use C++ exception handling.
7760 * i386-tdep.c: Use C++ exception handling.
7761 * i386-linux-tdep.c: Use C++ exception handling.
7762 * guile/scm-value.c: Use C++ exception handling.
7763 * guile/scm-type.c: Use C++ exception handling.
7764 * guile/scm-symtab.c: Use C++ exception handling.
7765 * guile/scm-symbol.c: Use C++ exception handling.
7766 * guile/scm-pretty-print.c: Use C++ exception handling.
7767 * guile/scm-ports.c: Use C++ exception handling.
7768 * guile/scm-param.c: Use C++ exception handling.
7769 * guile/scm-math.c: Use C++ exception handling.
7770 * guile/scm-lazy-string.c: Use C++ exception handling.
7771 * guile/scm-frame.c: Use C++ exception handling.
7772 * guile/scm-disasm.c: Use C++ exception handling.
7773 * guile/scm-cmd.c: Use C++ exception handling.
7774 * guile/scm-breakpoint.c: Use C++ exception handling.
7775 * guile/scm-block.c: Use C++ exception handling.
7776 * guile/guile-internal.h: Use C++ exception handling.
7777 * gnu-v3-abi.c: Use C++ exception handling.
7778 * gdbtypes.c: Use C++ exception handling.
7779 * frame.c: Use C++ exception handling.
7780 * frame-unwind.c: Use C++ exception handling.
7781 * fbsd-tdep.c: Use C++ exception handling.
7782 * f-valprint.c: Use C++ exception handling.
7783 * exec.c: Use C++ exception handling.
7784 * event-top.c: Use C++ exception handling.
7785 * event-loop.c: Use C++ exception handling.
7786 * eval.c: Use C++ exception handling.
7787 * dwarf2read.c: Use C++ exception handling.
7788 * dwarf2loc.c: Use C++ exception handling.
7789 * dwarf2-frame.c: Use C++ exception handling.
7790 * dwarf2-frame-tailcall.c: Use C++ exception handling.
7791 * dwarf-index-write.c: Use C++ exception handling.
7792 * dwarf-index-cache.c: Use C++ exception handling.
7793 * dtrace-probe.c: Use C++ exception handling.
7794 * disasm-selftests.c: Use C++ exception handling.
7795 * darwin-nat.c: Use C++ exception handling.
7796 * cp-valprint.c: Use C++ exception handling.
7797 * cp-support.c: Use C++ exception handling.
7798 * cp-abi.c: Use C++ exception handling.
7799 * corelow.c: Use C++ exception handling.
7800 * completer.c: Use C++ exception handling.
7801 * compile/compile-object-run.c: Use C++ exception handling.
7802 * compile/compile-object-load.c: Use C++ exception handling.
7803 * compile/compile-cplus-symbols.c: Use C++ exception handling.
7804 * compile/compile-c-symbols.c: Use C++ exception handling.
7805 * common/selftest.c: Use C++ exception handling.
7806 * common/new-op.c: Use C++ exception handling.
7807 * cli/cli-script.c: Use C++ exception handling.
7808 * cli/cli-interp.c: Use C++ exception handling.
7809 * cli/cli-cmds.c: Use C++ exception handling.
7810 * c-varobj.c: Use C++ exception handling.
7811 * btrace.c: Use C++ exception handling.
7812 * breakpoint.c: Use C++ exception handling.
7813 * break-catch-throw.c: Use C++ exception handling.
7814 * arch-utils.c: Use C++ exception handling.
7815 * amd64-tdep.c: Use C++ exception handling.
7816 * ada-valprint.c: Use C++ exception handling.
7817 * ada-typeprint.c: Use C++ exception handling.
7818 * ada-lang.c: Use C++ exception handling.
7819 * aarch64-tdep.c: Use C++ exception handling.
7821 2019-04-08 Tom Tromey <tom@tromey.com>
7823 * xml-support.c (gdb_xml_parser::parse): Update.
7824 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
7825 * value.c (show_convenience): Update.
7826 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
7827 (test_parse_flags_qcs): Update.
7828 * thread.c (thr_try_catch_cmd): Update.
7829 * target.c (target_translate_tls_address): Update.
7830 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
7831 (info_frame_command_core, frame_apply_command_count): Update.
7832 * rust-exp.y (rust_lex_exception_test): Update.
7833 * riscv-tdep.c (riscv_print_one_register_info): Update.
7834 * remote.c (remote_target::enable_btrace): Update.
7835 * record-btrace.c (record_btrace_enable_warn): Update.
7836 * python/py-utils.c (gdbpy_convert_exception): Update.
7837 * printcmd.c (do_one_display, print_variable_and_value): Update.
7838 * mi/mi-main.c (mi_print_exception): Update.
7839 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
7840 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
7841 * linux-nat.c (linux_nat_target::attach): Update.
7842 * linux-fork.c (class scoped_switch_fork_info): Update.
7843 * infrun.c (displaced_step_prepare): Update.
7844 * infcall.c (call_function_by_hand_dummy): Update.
7845 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
7846 * gnu-v3-abi.c (print_one_vtable): Update.
7847 * frame.c (get_prev_frame_always): Update.
7848 * f-valprint.c (info_common_command_for_block): Update.
7849 * exec.c (try_open_exec_file): Update.
7850 * exceptions.c (print_exception, exception_print)
7851 (exception_fprintf, exception_print_same): Update.
7852 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
7853 * dwarf-index-cache.c (index_cache::store)
7854 (index_cache::lookup_gdb_index): Update.
7855 * darwin-nat.c (maybe_cache_shell): Update.
7856 * cp-valprint.c (cp_print_value_fields): Update.
7857 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
7858 (gcc_cplus_symbol_address): Update.
7859 * compile/compile-c-symbols.c (gcc_convert_symbol)
7860 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
7861 * common/selftest.c: Update.
7862 * common/common-exceptions.h (struct gdb_exception) <message>: Now
7864 (exception_try_scope_entry, exception_try_scope_exit): Don't
7866 (struct exception_try_scope): Remove.
7867 (TRY): Don't use exception_try_scope.
7868 (struct gdb_exception): Add constructor, operator=.
7870 (struct gdb_exception_RETURN_MASK_ALL)
7871 (struct gdb_exception_RETURN_MASK_ERROR)
7872 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
7873 (struct gdb_quit_bad_alloc): Update.
7874 * common/common-exceptions.c (exception_none): Change
7876 (struct catcher) <state, exception>: Initialize inline.
7877 <prev>: Remove member.
7878 (current_catcher): Remove.
7879 (catchers): New global.
7880 (exceptions_state_mc_init): Simplify.
7881 (catcher_pop): Remove.
7882 (exceptions_state_mc, exceptions_state_mc_catch): Update.
7883 (try_scope_depth, exception_try_scope_entry)
7884 (exception_try_scope_exit): Remove.
7885 (throw_exception_sjlj): Update.
7886 (exception_messages, exception_messages_size): Remove.
7887 (throw_it): Simplify.
7888 (gdb_exception_sliced_copy): Remove.
7889 (throw_exception_cxx): Update.
7890 * cli/cli-script.c (script_from_file): Update.
7891 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
7893 * ada-valprint.c (ada_val_print): Update.
7894 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
7895 (create_excep_cond_exprs): Update.
7897 2019-04-08 Tom Tromey <tom@tromey.com>
7899 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
7900 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
7901 (TRY, CATCH, END_CATCH): Remove some definitions.
7902 * common/common-exceptions.c: Don't use GDB_XCPT.
7903 (catcher_list_size): Remove.
7904 (throw_exception, throw_it): Simplify.
7906 2019-04-05 Tom Tromey <tom@tromey.com>
7908 Revert the header-sorting patch.
7909 * ft32-tdep.c: Revert.
7910 * frv-tdep.c: Revert.
7911 * frv-linux-tdep.c: Revert.
7913 * frame-unwind.c: Revert.
7914 * frame-base.c: Revert.
7915 * fork-child.c: Revert.
7916 * findvar.c: Revert.
7917 * findcmd.c: Revert.
7918 * filesystem.c: Revert.
7919 * filename-seen-cache.h: Revert.
7920 * filename-seen-cache.c: Revert.
7921 * fbsd-tdep.c: Revert.
7922 * fbsd-nat.h: Revert.
7923 * fbsd-nat.c: Revert.
7924 * f-valprint.c: Revert.
7925 * f-typeprint.c: Revert.
7927 * extension.h: Revert.
7928 * extension.c: Revert.
7929 * extension-priv.h: Revert.
7930 * expprint.c: Revert.
7933 * exceptions.c: Revert.
7934 * event-top.c: Revert.
7935 * event-loop.c: Revert.
7937 * elfread.c: Revert.
7938 * dwarf2read.h: Revert.
7939 * dwarf2read.c: Revert.
7940 * dwarf2loc.c: Revert.
7941 * dwarf2expr.h: Revert.
7942 * dwarf2expr.c: Revert.
7943 * dwarf2-frame.c: Revert.
7944 * dwarf2-frame-tailcall.c: Revert.
7945 * dwarf-index-write.h: Revert.
7946 * dwarf-index-write.c: Revert.
7947 * dwarf-index-common.c: Revert.
7948 * dwarf-index-cache.h: Revert.
7949 * dwarf-index-cache.c: Revert.
7950 * dummy-frame.c: Revert.
7951 * dtrace-probe.c: Revert.
7954 * disasm-selftests.c: Revert.
7955 * dictionary.c: Revert.
7956 * dicos-tdep.c: Revert.
7957 * demangle.c: Revert.
7960 * darwin-nat.h: Revert.
7961 * darwin-nat.c: Revert.
7962 * darwin-nat-info.c: Revert.
7963 * d-valprint.c: Revert.
7964 * d-namespace.c: Revert.
7967 * csky-tdep.c: Revert.
7968 * csky-linux-tdep.c: Revert.
7969 * cris-tdep.c: Revert.
7970 * cris-linux-tdep.c: Revert.
7971 * cp-valprint.c: Revert.
7972 * cp-support.c: Revert.
7973 * cp-namespace.c: Revert.
7975 * corelow.c: Revert.
7976 * corefile.c: Revert.
7977 * continuations.c: Revert.
7978 * completer.h: Revert.
7979 * completer.c: Revert.
7980 * complaints.c: Revert.
7981 * coffread.c: Revert.
7982 * coff-pe-read.c: Revert.
7983 * cli-out.h: Revert.
7984 * cli-out.c: Revert.
7985 * charset.c: Revert.
7986 * c-varobj.c: Revert.
7987 * c-valprint.c: Revert.
7988 * c-typeprint.c: Revert.
7990 * buildsym.c: Revert.
7991 * buildsym-legacy.c: Revert.
7992 * build-id.h: Revert.
7993 * build-id.c: Revert.
7995 * bsd-uthread.c: Revert.
7996 * breakpoint.h: Revert.
7997 * breakpoint.c: Revert.
7998 * break-catch-throw.c: Revert.
7999 * break-catch-syscall.c: Revert.
8000 * break-catch-sig.c: Revert.
8001 * blockframe.c: Revert.
8003 * bfin-tdep.c: Revert.
8004 * bfin-linux-tdep.c: Revert.
8005 * bfd-target.c: Revert.
8007 * ax-general.c: Revert.
8010 * avr-tdep.c: Revert.
8012 * auto-load.c: Revert.
8013 * arm-wince-tdep.c: Revert.
8014 * arm-tdep.c: Revert.
8015 * arm-symbian-tdep.c: Revert.
8016 * arm-pikeos-tdep.c: Revert.
8017 * arm-obsd-tdep.c: Revert.
8018 * arm-nbsd-tdep.c: Revert.
8019 * arm-nbsd-nat.c: Revert.
8020 * arm-linux-tdep.c: Revert.
8021 * arm-linux-nat.c: Revert.
8022 * arm-fbsd-tdep.c: Revert.
8023 * arm-fbsd-nat.c: Revert.
8024 * arm-bsd-tdep.c: Revert.
8025 * arch-utils.c: Revert.
8026 * arc-tdep.c: Revert.
8027 * arc-newlib-tdep.c: Revert.
8028 * annotate.h: Revert.
8029 * annotate.c: Revert.
8030 * amd64-windows-tdep.c: Revert.
8031 * amd64-windows-nat.c: Revert.
8032 * amd64-tdep.c: Revert.
8033 * amd64-sol2-tdep.c: Revert.
8034 * amd64-obsd-tdep.c: Revert.
8035 * amd64-obsd-nat.c: Revert.
8036 * amd64-nbsd-tdep.c: Revert.
8037 * amd64-nbsd-nat.c: Revert.
8038 * amd64-nat.c: Revert.
8039 * amd64-linux-tdep.c: Revert.
8040 * amd64-linux-nat.c: Revert.
8041 * amd64-fbsd-tdep.c: Revert.
8042 * amd64-fbsd-nat.c: Revert.
8043 * amd64-dicos-tdep.c: Revert.
8044 * amd64-darwin-tdep.c: Revert.
8045 * amd64-bsd-nat.c: Revert.
8046 * alpha-tdep.c: Revert.
8047 * alpha-obsd-tdep.c: Revert.
8048 * alpha-nbsd-tdep.c: Revert.
8049 * alpha-mdebug-tdep.c: Revert.
8050 * alpha-linux-tdep.c: Revert.
8051 * alpha-linux-nat.c: Revert.
8052 * alpha-bsd-tdep.c: Revert.
8053 * alpha-bsd-nat.c: Revert.
8054 * aix-thread.c: Revert.
8056 * addrmap.c: Revert.
8057 * ada-varobj.c: Revert.
8058 * ada-valprint.c: Revert.
8059 * ada-typeprint.c: Revert.
8060 * ada-tasks.c: Revert.
8061 * ada-lang.c: Revert.
8062 * aarch64-tdep.c: Revert.
8063 * aarch64-ravenscar-thread.c: Revert.
8064 * aarch64-newlib-tdep.c: Revert.
8065 * aarch64-linux-tdep.c: Revert.
8066 * aarch64-linux-nat.c: Revert.
8067 * aarch64-fbsd-tdep.c: Revert.
8068 * aarch64-fbsd-nat.c: Revert.
8069 * aarch32-linux-nat.c: Revert.
8071 2019-04-05 Tom Tromey <tom@tromey.com>
8073 * ft32-tdep.c: Sort headers.
8074 * frv-tdep.c: Sort headers.
8075 * frv-linux-tdep.c: Sort headers.
8076 * frame.c: Sort headers.
8077 * frame-unwind.c: Sort headers.
8078 * frame-base.c: Sort headers.
8079 * fork-child.c: Sort headers.
8080 * findvar.c: Sort headers.
8081 * findcmd.c: Sort headers.
8082 * filesystem.c: Sort headers.
8083 * filename-seen-cache.h: Sort headers.
8084 * filename-seen-cache.c: Sort headers.
8085 * fbsd-tdep.c: Sort headers.
8086 * fbsd-nat.h: Sort headers.
8087 * fbsd-nat.c: Sort headers.
8088 * f-valprint.c: Sort headers.
8089 * f-typeprint.c: Sort headers.
8090 * f-lang.c: Sort headers.
8091 * extension.h: Sort headers.
8092 * extension.c: Sort headers.
8093 * extension-priv.h: Sort headers.
8094 * expprint.c: Sort headers.
8095 * exec.h: Sort headers.
8096 * exec.c: Sort headers.
8097 * exceptions.c: Sort headers.
8098 * event-top.c: Sort headers.
8099 * event-loop.c: Sort headers.
8100 * eval.c: Sort headers.
8101 * elfread.c: Sort headers.
8102 * dwarf2read.h: Sort headers.
8103 * dwarf2read.c: Sort headers.
8104 * dwarf2loc.c: Sort headers.
8105 * dwarf2expr.h: Sort headers.
8106 * dwarf2expr.c: Sort headers.
8107 * dwarf2-frame.c: Sort headers.
8108 * dwarf2-frame-tailcall.c: Sort headers.
8109 * dwarf-index-write.h: Sort headers.
8110 * dwarf-index-write.c: Sort headers.
8111 * dwarf-index-common.c: Sort headers.
8112 * dwarf-index-cache.h: Sort headers.
8113 * dwarf-index-cache.c: Sort headers.
8114 * dummy-frame.c: Sort headers.
8115 * dtrace-probe.c: Sort headers.
8116 * disasm.h: Sort headers.
8117 * disasm.c: Sort headers.
8118 * disasm-selftests.c: Sort headers.
8119 * dictionary.c: Sort headers.
8120 * dicos-tdep.c: Sort headers.
8121 * demangle.c: Sort headers.
8122 * dcache.h: Sort headers.
8123 * dcache.c: Sort headers.
8124 * darwin-nat.h: Sort headers.
8125 * darwin-nat.c: Sort headers.
8126 * darwin-nat-info.c: Sort headers.
8127 * d-valprint.c: Sort headers.
8128 * d-namespace.c: Sort headers.
8129 * d-lang.c: Sort headers.
8130 * ctf.c: Sort headers.
8131 * csky-tdep.c: Sort headers.
8132 * csky-linux-tdep.c: Sort headers.
8133 * cris-tdep.c: Sort headers.
8134 * cris-linux-tdep.c: Sort headers.
8135 * cp-valprint.c: Sort headers.
8136 * cp-support.c: Sort headers.
8137 * cp-namespace.c: Sort headers.
8138 * cp-abi.c: Sort headers.
8139 * corelow.c: Sort headers.
8140 * corefile.c: Sort headers.
8141 * continuations.c: Sort headers.
8142 * completer.h: Sort headers.
8143 * completer.c: Sort headers.
8144 * complaints.c: Sort headers.
8145 * coffread.c: Sort headers.
8146 * coff-pe-read.c: Sort headers.
8147 * cli-out.h: Sort headers.
8148 * cli-out.c: Sort headers.
8149 * charset.c: Sort headers.
8150 * c-varobj.c: Sort headers.
8151 * c-valprint.c: Sort headers.
8152 * c-typeprint.c: Sort headers.
8153 * c-lang.c: Sort headers.
8154 * buildsym.c: Sort headers.
8155 * buildsym-legacy.c: Sort headers.
8156 * build-id.h: Sort headers.
8157 * build-id.c: Sort headers.
8158 * btrace.c: Sort headers.
8159 * bsd-uthread.c: Sort headers.
8160 * breakpoint.h: Sort headers.
8161 * breakpoint.c: Sort headers.
8162 * break-catch-throw.c: Sort headers.
8163 * break-catch-syscall.c: Sort headers.
8164 * break-catch-sig.c: Sort headers.
8165 * blockframe.c: Sort headers.
8166 * block.c: Sort headers.
8167 * bfin-tdep.c: Sort headers.
8168 * bfin-linux-tdep.c: Sort headers.
8169 * bfd-target.c: Sort headers.
8170 * bcache.c: Sort headers.
8171 * ax-general.c: Sort headers.
8172 * ax-gdb.h: Sort headers.
8173 * ax-gdb.c: Sort headers.
8174 * avr-tdep.c: Sort headers.
8175 * auxv.c: Sort headers.
8176 * auto-load.c: Sort headers.
8177 * arm-wince-tdep.c: Sort headers.
8178 * arm-tdep.c: Sort headers.
8179 * arm-symbian-tdep.c: Sort headers.
8180 * arm-pikeos-tdep.c: Sort headers.
8181 * arm-obsd-tdep.c: Sort headers.
8182 * arm-nbsd-tdep.c: Sort headers.
8183 * arm-nbsd-nat.c: Sort headers.
8184 * arm-linux-tdep.c: Sort headers.
8185 * arm-linux-nat.c: Sort headers.
8186 * arm-fbsd-tdep.c: Sort headers.
8187 * arm-fbsd-nat.c: Sort headers.
8188 * arm-bsd-tdep.c: Sort headers.
8189 * arch-utils.c: Sort headers.
8190 * arc-tdep.c: Sort headers.
8191 * arc-newlib-tdep.c: Sort headers.
8192 * annotate.h: Sort headers.
8193 * annotate.c: Sort headers.
8194 * amd64-windows-tdep.c: Sort headers.
8195 * amd64-windows-nat.c: Sort headers.
8196 * amd64-tdep.c: Sort headers.
8197 * amd64-sol2-tdep.c: Sort headers.
8198 * amd64-obsd-tdep.c: Sort headers.
8199 * amd64-obsd-nat.c: Sort headers.
8200 * amd64-nbsd-tdep.c: Sort headers.
8201 * amd64-nbsd-nat.c: Sort headers.
8202 * amd64-nat.c: Sort headers.
8203 * amd64-linux-tdep.c: Sort headers.
8204 * amd64-linux-nat.c: Sort headers.
8205 * amd64-fbsd-tdep.c: Sort headers.
8206 * amd64-fbsd-nat.c: Sort headers.
8207 * amd64-dicos-tdep.c: Sort headers.
8208 * amd64-darwin-tdep.c: Sort headers.
8209 * amd64-bsd-nat.c: Sort headers.
8210 * alpha-tdep.c: Sort headers.
8211 * alpha-obsd-tdep.c: Sort headers.
8212 * alpha-nbsd-tdep.c: Sort headers.
8213 * alpha-mdebug-tdep.c: Sort headers.
8214 * alpha-linux-tdep.c: Sort headers.
8215 * alpha-linux-nat.c: Sort headers.
8216 * alpha-bsd-tdep.c: Sort headers.
8217 * alpha-bsd-nat.c: Sort headers.
8218 * aix-thread.c: Sort headers.
8219 * agent.c: Sort headers.
8220 * addrmap.c: Sort headers.
8221 * ada-varobj.c: Sort headers.
8222 * ada-valprint.c: Sort headers.
8223 * ada-typeprint.c: Sort headers.
8224 * ada-tasks.c: Sort headers.
8225 * ada-lang.c: Sort headers.
8226 * aarch64-tdep.c: Sort headers.
8227 * aarch64-ravenscar-thread.c: Sort headers.
8228 * aarch64-newlib-tdep.c: Sort headers.
8229 * aarch64-linux-tdep.c: Sort headers.
8230 * aarch64-linux-nat.c: Sort headers.
8231 * aarch64-fbsd-tdep.c: Sort headers.
8232 * aarch64-fbsd-nat.c: Sort headers.
8233 * aarch32-linux-nat.c: Sort headers.
8235 2019-04-04 Tom Tromey <tom@tromey.com>
8237 * varobj.c (varobj_create): Update.
8238 * rust-exp.y (struct rust_parser) <update_innermost_block,
8239 lookup_symbol>: New methods.
8240 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
8242 (rust_parser::rust_lookup_type)
8243 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
8244 * printcmd.c (display_command, do_one_display): Update.
8245 * parser-defs.h (struct parser_state) <parser_state>: Add
8246 "tracker" parameter.
8247 (block_tracker): New member.
8248 (class innermost_block_tracker) <innermost_block_tracker>: Add
8250 <reset>: Remove method.
8251 (innermost_block): Don't declare.
8252 (null_post_parser): Update.
8253 * parse.c (innermost_block): Remove global.
8254 (write_dollar_variable): Update.
8255 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
8256 Remove "tracker_types" parameter.
8257 (parse_expression): Add "tracker" parameter.
8258 (parse_expression_for_completion): Update.
8259 (null_post_parser): Add "tracker" parameter.
8260 * p-exp.y: Update rules.
8261 * m2-exp.y: Update rules.
8262 * language.h (struct language_defn) <la_post_parser>: Add
8263 "tracker" parameter.
8264 * go-exp.y: Update rules.
8265 * f-exp.y: Update rules.
8266 * expression.h (parse_expression, parse_exp_1): Add "tracker"
8268 * d-exp.y: Update rules.
8269 * c-exp.y: Update rules.
8270 * breakpoint.c (set_breakpoint_condition): Create an
8271 innermost_block_tracker.
8272 (watch_command_1): Likewise.
8273 * ada-lang.c (resolve): Add "tracker" parameter.
8274 (resolve_subexp): Likewise.
8275 * ada-exp.y (write_var_from_sym): Update.
8277 2019-04-04 Tom Tromey <tom@tromey.com>
8279 * type-stack.h: New file.
8280 * type-stack.c: New file.
8281 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
8283 (insert_into_type_stack, insert_type, push_type, push_type_int)
8284 (insert_type_address_space, pop_type, pop_type_int)
8285 (pop_typelist, pop_type_stack, append_type_stack)
8286 (push_type_stack, get_type_stack, push_typelist)
8287 (follow_type_instance_flags, follow_types): Don't declare.
8288 * parse.c (type_stack): Remove global.
8289 (parse_exp_in_context): Update.
8290 (insert_into_type_stack, insert_type, push_type, push_type_int)
8291 (insert_type_address_space, pop_type, pop_type_int)
8292 (pop_typelist, pop_type_stack, append_type_stack)
8293 (push_type_stack, get_type_stack, push_typelist)
8294 (follow_type_instance_flags, follow_types): Remove (moved to
8296 * f-exp.y (type_stack): New global.
8298 (push_kind_type, f_parse): Update.
8299 * d-exp.y (type_stack): New global.
8302 * c-exp.y (struct c_parse_state) <type_stack>: New member.
8304 * Makefile.in (COMMON_SFILES): Add type-stack.c.
8305 (HFILES_NO_SRCDIR): Add type-stack.h.
8307 2019-04-04 Tom Tromey <tom@tromey.com>
8309 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
8310 (rust_parser::convert_ast_to_expression, rust_parse)
8311 (rust_lex_test_completion, rust_lex_tests): Update.
8312 * parser-defs.h (struct expr_completion_state): New.
8313 (struct parser_state) <parser_state>: Add completion parameter.
8314 <mark_struct_expression, mark_completion_tag>: New methods.
8315 <parse_completion, m_completion_state>: New members.
8316 (prefixify_expression, null_post_parser): Update.
8317 (mark_struct_expression, mark_completion_tag): Don't declare.
8318 * parse.c (parse_completion, expout_last_struct)
8319 (expout_tag_completion_type, expout_completion_name): Remove
8321 (parser_state::mark_struct_expression)
8322 (parser_state::mark_completion_tag): Now methods.
8323 (prefixify_expression): Add last_struct parameter.
8324 (prefixify_subexp): Likewise.
8325 (parse_exp_1): Update.
8326 (parse_exp_in_context): Add cstate parameter. Update.
8327 (parse_expression_for_completion): Create an
8328 expr_completion_state.
8329 (null_post_parser): Add "completion" parameter.
8330 * p-exp.y: Update rules.
8332 * language.h (struct language_defn) <la_post_parser>: Add
8333 "completing" parameter.
8334 * go-exp.y: Update rules.
8335 (lex_one_token): Update.
8336 * expression.h (parse_completion): Don't declare.
8337 * d-exp.y: Update rules.
8338 (lex_one_token): Update rules.
8339 * c-exp.y: Update rules.
8340 (lex_one_token): Update.
8341 * ada-lang.c (resolve): Add "parse_completion" parameter.
8342 (resolve_subexp): Likewise.
8343 (ada_resolve_function): Likewise.
8345 2019-04-04 Tom Tromey <tom@tromey.com>
8347 * parser-defs.h (struct parser_state) <start_arglist,
8348 end_arglist>: New methods.
8349 <arglist_len, m_funcall_chain>: New members.
8350 (arglist_len, start_arglist, end_arglist): Don't declare.
8351 * parse.c (arglist_len, funcall_chain): Remove global.
8352 (start_arglist, end_arglist): Remove functions.
8353 (parse_exp_in_context): Update.
8354 * p-exp.y: Update rules.
8355 * m2-exp.y: Update rules.
8356 * go-exp.y: Update rules.
8357 * f-exp.y: Update rules.
8358 * d-exp.y: Update rules.
8359 * c-exp.y: Update rules.
8361 2019-04-04 Tom Tromey <tom@tromey.com>
8363 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
8364 lex_operator, push_back>: New methods.
8366 (rust_parser::lex_hex, lex_escape): Rename and update.
8367 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
8368 (rust_parser::lex_operator): Rename and update.
8369 (rust_parser::lex_number, rustyylex, rustyyerror)
8370 (rust_lex_test_init, rust_lex_test_sequence)
8371 (rust_lex_test_push_back, rust_lex_tests): Update.
8372 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
8374 <lexptr, prev_lexptr>: New members.
8375 (lexptr, prev_lexptr): Don't declare.
8376 * parse.c (lexptr, prev_lexptr): Remove globals.
8377 (parse_exp_in_context): Update.
8378 * p-exp.y (yylex, yyerror): Update.
8379 * m2-exp.y (parse_number, yylex, yyerror): Update.
8380 * go-exp.y (lex_one_token, yyerror): Update.
8381 * f-exp.y (match_string_literal, yylex, yyerror): Update.
8382 * d-exp.y (lex_one_token, yyerror): Update.
8383 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
8384 (lex_one_token, yyerror): Update.
8385 * ada-lex.l (YY_INPUT): Update.
8386 (rewind_to_char): Update.
8387 * ada-exp.y (yyerror): Update.
8389 2019-04-04 Tom Tromey <tom@tromey.com>
8391 * rust-exp.y (rustyylex, rust_lex_tests): Update.
8392 * parser-defs.h (struct parser_state) <parser_state>: Add new
8394 <comma_terminates>: New member.
8395 (comma_terminates): Don't declare global.
8396 * parse.c (comma_terminates): Remove global.
8397 (parse_exp_in_context): Update.
8398 * p-exp.y (yylex): Update.
8399 * m2-exp.y (yylex): Update.
8400 * go-exp.y (lex_one_token): Update.
8401 * f-exp.y (yylex): Update.
8402 * d-exp.y (lex_one_token): Update.
8403 * c-exp.y (lex_one_token): Update.
8404 * ada-lex.l: Update.
8406 2019-04-04 Tom Tromey <tom@tromey.com>
8408 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
8409 (rustyylex, rust_lex_test_init, rust_lex_test_one)
8410 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
8411 * parser-defs.h (paren_depth): Don't declare.
8412 * parse.c (paren_depth): Remove global.
8413 (parse_exp_in_context): Update.
8414 * p-exp.y (paren_depth): New global.
8415 (pascal_parse): Initialize it.
8416 * m2-exp.y (paren_depth): New global.
8417 (m2_parse): Initialize it.
8418 * go-exp.y (paren_depth): New global.
8419 (go_parse): Initialize it.
8420 * f-exp.y (paren_depth): New global.
8421 (f_parse): Initialize it.
8422 * d-exp.y (paren_depth): New global.
8423 (d_parse): Initialize it.
8424 * c-exp.y (paren_depth): New global.
8425 (c_parse): Initialize it.
8426 * ada-lex.l (paren_depth): New global.
8427 (lexer_init): Initialize it.
8429 2019-04-04 Tom Tromey <tom@tromey.com>
8431 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
8432 (rust_parser::convert_ast_to_type)
8433 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
8434 * parser-defs.h (struct parser_state) <parser_state>: Add
8435 parameters. Initialize new members.
8436 <expression_context_block, expression_context_pc>: New members.
8437 * parse.c (expression_context_block, expression_context_pc):
8439 (parse_exp_in_context): Update.
8440 * p-exp.y: Update all rules.
8442 * m2-exp.y: Update all rules.
8444 * go-exp.y (yylex): Update.
8445 * f-exp.y (yylex): Update.
8446 * d-exp.y: Update all rules.
8448 * c-exp.y: Update all rules.
8449 (lex_one_token, classify_name, yylex, c_parse): Update.
8450 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
8452 2019-04-04 Tom Tromey <tom@tromey.com>
8454 * gdbarch.h, gdbarch.c: Rebuild.
8455 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
8457 (struct stap_parse_info): Replace "parser_state" with
8459 * parser-defs.h (struct expr_builder): Rename from "parser_state".
8460 (parser_state): New class.
8461 * parse.c (expr_builder): Rename.
8462 (expr_builder::release): Rename.
8463 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
8464 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
8465 (write_exp_elt_longcst, write_exp_elt_floatcst)
8466 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
8467 (write_exp_string_vector, write_exp_bitstring)
8468 (write_exp_msymbol, mark_struct_expression)
8469 (write_dollar_variable)
8470 (insert_type_address_space, increase_expout_size): Replace
8471 "parser_state" with "expr_builder".
8472 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
8473 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
8474 "parser_state" with "expr_builder".
8476 2019-04-04 Tom Tromey <tom@tromey.com>
8478 * rust-exp.y: Replace "parse_language" with method call.
8480 (yylex): Replace "parse_language" with method call.
8482 (yylex): Replace "parse_language" with method call.
8483 * go-exp.y (classify_name): Replace "parse_language" with method
8485 * f-exp.y (yylex): Replace "parse_language" with method call.
8486 * d-exp.y (lex_one_token): Replace "parse_language" with method
8489 (lex_one_token, classify_name, yylex): Replace "parse_language"
8491 * ada-exp.y (find_primitive_type, type_char)
8492 (type_system_address): Replace "parse_language" with method call.
8494 2019-04-04 Tom Tromey <tom@tromey.com>
8496 * rust-exp.y: Replace "parse_gdbarch" with method call.
8497 * parse.c (write_dollar_variable, insert_type_address_space):
8498 Replace "parse_gdbarch" with method call.
8499 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
8501 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
8503 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
8504 "parse_gdbarch" with method call.
8505 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
8507 * f-exp.y (parse_type, parse_f_type, yylex): Replace
8508 "parse_gdbarch" with method call.
8509 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
8510 "parse_gdbarch" with method call.
8511 * c-exp.y (parse_type, parse_number, classify_name): Replace
8512 "parse_gdbarch" with method call.
8513 * ada-lex.l: Replace "parse_gdbarch" with method call.
8514 * ada-exp.y (parse_type, find_primitive_type, type_char)
8515 (type_system_address): Replace "parse_gdbarch" with method call.
8517 2019-04-04 Tom Tromey <tom@tromey.com>
8519 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
8520 * stap-probe.c (stap_parse_argument): Update.
8521 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
8522 initial_size parameter.
8523 * rust-exp.y (rust_lex_tests): Update.
8524 * parse.c (parser_state): Update.
8525 (parse_exp_in_context): Update.
8526 * parser-defs.h (struct parser_state) <parser_state>: Remove
8527 "initial_size" parameter.
8529 2019-04-04 Tom Tromey <tom@tromey.com>
8531 * parser-defs.h (increase_expout_size): Don't declare.
8532 * parse.c (increase_expout_size): Now static.
8534 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
8536 * gnu-nat.c (gnu_nat_target::wait): Fix
8537 target_waitstatus_to_string call.
8539 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8541 * eval.c (evaluate_subexp_standard): Handle internal functions
8542 during Fortran function call handling.
8544 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8546 * NEWS: Mention new internal functions.
8547 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
8548 (read_base_type): Use dwarf2_init_complex_target_type.
8549 * value.c (creal_internal_fn): New function.
8550 (cimag_internal_fn): New function.
8551 (_initialize_values): Register new internal functions.
8553 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8555 * infrun.c (stop_all_threads): If debug_infrun, always
8556 trace the wait status after wait_one, using
8557 target_waitstatus_to_string and target_pid_to_str.
8558 (handle_inferior_event): Replace various trace of
8559 wait status kind by a single trace.
8560 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
8561 wait status kind image by target_waitstatus_to_string.
8562 * target/waitstatus.c (target_waitstatus_to_string): Fix
8565 2019-04-01 Tom Tromey <tromey@adacore.com>
8568 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
8570 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
8571 Pedro Alves <palves@redhat.com>
8573 * top.c (quit_force): Call 'finalize_values'.
8574 * value.c (finalize_values): New function.
8575 * value.h (finalize_values): Declare.
8577 2019-03-30 Eli Zaretskii <eliz@gnu.org>
8579 * NEWS: Announce $_gdb_major and $_gdb_minor.
8581 * top.c (init_gdb_version_vars): New function.
8582 (gdb_init): Call init_gdb_version_vars.
8584 2019-03-29 Tom Tromey <tromey@adacore.com>
8586 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
8587 help text. Remove dead code.
8589 2019-03-29 Keith Seitz <keiths@redhat.com>
8591 From Siddhesh Poyarekar:
8592 * f-lang.h (f77_get_upperbound): Return LONGEST.
8593 (f77_get_lowerbound): Likewise.
8594 * f-typeprint.c (f_type_print_varspec_suffix): Expand
8595 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
8597 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
8598 plongest to format print it.
8599 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
8600 (f77_get_upperbound): Likewise.
8601 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
8602 LOWER_BOUND to LONGEST.
8603 (f77_create_arrayprint_offset_tbl): Likewise.
8605 2019-03-29 Keith Seitz <keiths@redhat.com>
8607 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
8608 %s/pulongest for TYPE_LENGTH instead of %d in format
8610 * ada-typerint.c (ada_print_type): Likewise.
8611 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
8612 * compile/compile-c-support.c (generate_register_struct): Likewise.
8613 * gdbtypes.c (recursive_dump_type): Likewise.
8614 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
8615 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
8616 instead of %d in format strings.
8617 * riscv-tdep.c (riscv_type_alignment): Cast second argument
8618 to std::min to ULONGEST.
8619 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
8620 instead of %d in format strings.
8621 * tracepoint.c (info_scope_command): Likewise.
8622 * typeprint.c (print_offset_data::update)
8623 (print_offset_data::finish): Likewise.
8624 * xtensa-tdep.c (xtensa_store_return_value)
8625 (xtensa_push_dummy_call): Likewise.
8627 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
8629 * windows-nat.c (display_selector): Fixed format specifications
8632 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8634 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
8636 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
8638 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
8639 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
8640 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
8641 (nios2_linux_init_abi): Install it.
8643 2019-03-28 Alan Hayward <alan.hayward@arm.com>
8645 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
8647 2019-03-28 Alan Hayward <alan.hayward@arm.com>
8649 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
8651 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8652 Tom Tromey <tromey@adacore.com>
8654 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
8656 2019-03-26 Joel Brobecker <brobecker@adacore.com>
8658 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
8659 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
8660 method to compute the bounds of range types. Also print "[evaluated]"
8661 if the bounds' values come from a dynamic evaluation.
8663 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
8665 * cp-valprint.c (cp_print_value_fields): Don't print trailing
8666 whitespace when pretty printing is on.
8668 2019-03-26 Alan Hayward <alan.hayward@arm.com>
8670 * ppc-linux-nat.c: Add include.
8672 2019-03-26 Alan Hayward <alan.hayward@arm.com>
8674 * NEWS: Mention AArch64 Pointer Authentication.
8676 2019-03-26 Alan Hayward <alan.hayward@arm.com>
8678 * arm-linux-nat.c: Add include.
8680 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
8682 * source-cache.c (source_cache::get_source_lines): Re-read
8683 fullname after calling open_source_file.
8685 2019-03-25 John Baldwin <jhb@FreeBSD.org>
8687 * NEWS: Mention TLS support for FreeBSD.
8689 2019-03-25 Tom Tromey <tromey@adacore.com>
8691 * minsyms.c (BUNCH_SIZE): Update comment.
8692 (~minimal_symbol_reader): Remove old comment.
8693 (compact_minimal_symbols): Update comment.
8694 (minimal_symbol_reader::install): Remove old comment. Update
8697 2019-03-25 Alan Hayward <alan.hayward@arm.com>
8699 * s390-linux-nat.c: Add include.
8701 2019-03-25 Alan Hayward <alan.hayward@arm.com>
8703 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
8704 Call linux_get_hwcap.
8705 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
8707 (aarch64_linux_get_hwcap): Remove function.
8708 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
8710 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
8712 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
8713 * linux-tdep.c (linux_get_hwcap): Add function.
8714 (linux_get_hwcap2): Likewise.
8715 * linux-tdep.h (linux_get_hwcap): Add declaration.
8716 (linux_get_hwcap2): Likewise.
8717 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
8718 (ppc_linux_get_hwcap2): Likewise.
8719 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
8721 (ppc_linux_nat_target::insert_watchpoint): Likewise.
8722 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
8723 (ppc_linux_nat_target::read_description): Likewise.
8724 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
8725 * s390-linux-nat.c: Likewise.
8726 * s390-linux-tdep.c (s390_core_read_description): Likewise.
8728 2019-03-24 Tom Tromey <tom@tromey.com>
8730 * ada-lang.c (standard_lookup): Simplify initialization.
8731 (ada_lookup_symbol_nonlocal): Simplify return.
8732 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
8733 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
8734 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
8735 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
8737 * solib.c (solib_global_lookup): Simplify.
8738 * symtab.c (null_block_symbol): Remove.
8739 (symbol_cache_lookup): Simplify returns.
8740 (lookup_language_this): Simplify returns.
8741 (lookup_symbol_aux): Simplify return.
8742 (lookup_local_symbol): Simplify returns.
8743 (lookup_global_symbol_from_objfile): Simplify return.
8744 (lookup_symbol_in_objfile_symtabs)
8745 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
8746 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
8747 (lookup_static_symbol, lookup_global_symbol): Simplify return.
8748 * cp-namespace.c (cp_lookup_bare_symbol)
8749 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
8750 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
8751 (cp_lookup_nested_symbol): Don't use null_block_symbol.
8752 (cp_lookup_symbol_via_imports): Simplify initialization.
8753 (find_symbol_in_baseclass): Likewise.
8754 * symtab.h (null_block_symbol): Remove.
8755 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
8756 (d_lookup_nested_symbol, d_lookup_symbol_imports)
8757 (d_lookup_symbol_module): Likewise.
8758 (find_symbol_in_baseclass): Simplify initialization.
8760 2019-03-24 Tom Tromey <tom@tromey.com>
8762 * expression.h: Don't include symtab.h.
8763 (struct block): Forward declare.
8765 2019-03-24 Tom Tromey <tom@tromey.com>
8767 * c-exp.y (typebase): Remove casts.
8768 * gdbtypes.c (lookup_unsigned_typename, )
8769 (lookup_signed_typename): Remove cast.
8770 * eval.c (parse_to_comma_and_eval): Remove cast.
8771 * parse.c (write_dollar_variable): Remove cast.
8772 * block.h (struct block) <superblock>: Now const.
8773 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
8774 * psymtab.c (psym_map_matching_symbols): Make "block" const.
8775 (map_block): Make "block" const.
8776 * symfile.h (struct quick_symbol_functions)
8777 <map_matching_symbols>: Constify block argument to "callback".
8778 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
8780 (find_pc_sect_compunit_symtab): Make "b" const.
8781 (find_symbol_at_address): Likewise.
8782 (search_symbols): Likewise.
8783 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
8784 (dw2_debug_names_lookup_symbol): Likewise.
8785 (dw2_map_matching_symbols): Update.
8786 * p-valprint.c (pascal_val_print): Remove "block".
8787 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
8788 (aux_add_nonlocal_symbols): Make "block" const.
8789 (resolve_subexp): Remove cast.
8790 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
8792 (iterate_over_file_blocks): Likewise.
8793 * f-exp.y (%union) <bval>: Remove.
8794 * coffread.c (patch_opaque_types): Make "b" const.
8795 * spu-tdep.c (spu_catch_start): Make "block" const.
8796 * c-valprint.c (print_unpacked_pointer): Remove "block".
8797 * symmisc.c (dump_symtab_1): Make "b" const.
8798 (block_depth): Make "block" const.
8799 * d-exp.y (%union) <bval>: Remove.
8800 * cp-support.h (cp_lookup_rtti_type): Update.
8801 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
8802 * psymtab.c (psym_lookup_symbol): Make "block" const.
8803 (maintenance_check_psymtabs): Make "b" const.
8804 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
8805 (enumerate_locals, enumerate_args): Update.
8806 * python/py-symtab.c (stpy_global_block): Make "block" const.
8807 (stpy_static_block): Likewise.
8808 * inline-frame.c (block_starting_point_at): Make "new_block"
8810 * block.c (find_block_in_blockvector): Make return type const.
8811 (blockvector_for_pc_sect): Make "b" const.
8812 (find_block_in_blockvector): Make "b" const.
8814 2019-03-23 Tom Tromey <tom@tromey.com>
8816 * varobj.c (varobj_create): Update.
8817 * symfile.c (clear_symtab_users): Don't reset innermost_block.
8818 * printcmd.c (display_command, do_one_display): Don't reset
8820 * parser-defs.h (enum innermost_block_tracker_type): Move to
8822 (innermost_block): Update comment.
8823 * parse.c (parse_exp_1): Add tracker_types parameter.
8824 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
8825 tracker_types parameter. Reset innermost_block.
8826 (parse_exp_in_context): Remove.
8827 (parse_expression_for_completion): Update.
8828 * objfiles.c (~objfile): Don't reset expression_context_block or
8830 * expression.h (enum innermost_block_tracker_type): Move from
8832 (parse_exp_1): Add tracker_types parameter.
8833 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
8834 reset innermost_block.
8836 2019-03-23 Tom Tromey <tom@tromey.com>
8838 * objfiles.h: Include bcache.h.
8840 2019-03-23 Tom Tromey <tom@tromey.com>
8842 * linespec.c (get_current_search_block): Use
8843 scoped_restore_current_language.
8844 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
8846 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8847 Jiong Wang <jiong.wang@arm.com>
8849 * aarch64-linux-tdep.c
8850 (aarch64_linux_iterate_over_regset_sections): Check for pauth
8852 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
8854 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8855 Jiong Wang <jiong.wang@arm.com>
8857 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
8859 (aarch64_analyze_prologue_test): Add PACIASP test.
8860 (aarch64_prologue_prev_register): Unmask PC value.
8862 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8863 Jiong Wang <jiong.wang@arm.com>
8865 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
8866 (aarch64_dwarf2_prev_register): Unmask PC value.
8867 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
8868 (aarch64_execute_dwarf_cfa_vendor_op): Check for
8869 DW_CFA_AARCH64_negate_ra_state.
8870 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
8872 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8873 Jiong Wang <jiong.wang@arm.com>
8875 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
8877 (aarch64_pseudo_register_name): Likewise.
8878 (aarch64_pseudo_register_type): Likewise.
8879 (aarch64_pseudo_register_reggroup_p): Likewise.
8880 (aarch64_gdbarch_init): Add pauth registers.
8881 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
8882 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
8883 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
8884 (struct gdbarch_tdep): Add regnum for ra_state.
8886 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8887 Jiong Wang <jiong.wang@arm.com>
8889 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
8891 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8892 Jiong Wang <jiong.wang@arm.com>
8894 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
8896 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
8897 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
8898 (aarch64_gdbarch_init): Add puth registers.
8899 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
8900 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
8901 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
8903 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8904 Jiong Wang <jiong.wang@arm.com>
8906 * aarch64-linux-nat.c
8907 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
8908 * aarch64-linux-tdep.c
8909 (aarch64_linux_core_read_description): Likewise.
8910 (aarch64_linux_get_hwcap): New function.
8911 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
8912 (aarch64_linux_get_hwcap): New declaration.
8914 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8915 Jiong Wang <jiong.wang@arm.com>
8917 * aarch64-linux-nat.c
8918 (aarch64_linux_nat_target::read_description): Add pauth param.
8919 * aarch64-linux-tdep.c
8920 (aarch64_linux_core_read_description): Likewise.
8921 * aarch64-tdep.c (struct target_desc): Add in pauth.
8922 (aarch64_read_description): Add pauth param.
8923 (aarch64_gdbarch_init): Likewise.
8924 * aarch64-tdep.h (aarch64_read_description): Likewise.
8925 * arch/aarch64.c (aarch64_create_target_description): Likewise.
8926 * arch/aarch64.h (aarch64_create_target_description): Likewise.
8927 * features/Makefile: Add new files.
8928 * features/aarch64-pauth.c: New file.
8929 * features/aarch64-pauth.xml: New file.
8931 2019-03-20 Tom Tromey <tromey@adacore.com>
8933 * infrun.c (handle_inferior_event): Rename from
8934 handle_inferior_event_1. Create a scoped_value_mark.
8935 (handle_inferior_event): Remove.
8937 2019-03-19 Tom Tromey <tromey@adacore.com>
8939 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
8940 * infrun.h (print_stop_event): Add "displays" parameter.
8941 * infrun.c (print_stop_event): Add "displays" parameter.
8943 2019-03-19 Pedro Alves <palves@redhat.com>
8945 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
8946 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
8947 to -1. Fix TABs vs spaces.
8948 (tui_ui_out::tui_ui_out): Don't initialize fields here.
8949 * tui/tui-out.h (tui_ui_out) Add intro comments.
8950 <m_line, m_start_of_line>: In-class initialize, and add describing
8953 2019-03-18 Alan Hayward <alan.hayward@arm.com>
8955 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
8957 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
8959 2019-03-18 Pedro Alves <palves@redhat.com>
8960 Eli Zaretskii <eliz@gnu.org>
8962 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
8963 m_line and m_start_of_line.
8965 2019-03-18 Eli Zaretskii <eliz@gnu.org>
8967 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
8968 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
8969 it returns a newline. This fixes a regression in TU mode, whereby
8970 the next line is output on the same screen line as the user input.
8972 2019-03-18 Tom Tromey <tromey@adacore.com>
8974 * minsyms.c (minimal_symbol_reader::install): Remove call to
8977 2019-03-18 Pedro Alves <palves@redhat.com>
8979 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
8981 (apply_style): New, factored out from ...
8982 (apply_ansi_escape): ... this. Handle reverse video mode.
8983 (tui_set_reverse_mode): New function.
8984 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
8985 * tui/tui-winsource.c (tui_show_source_line): Use
8986 tui_set_reverse_mode instead of setting A_STANDOUT.
8987 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
8990 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
8992 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
8995 2019-03-18 Tom Tromey <tromey@adacore.com>
8997 * ada-lang.c (empty_array): Add "high" parameter.
8998 (ada_evaluate_subexp): Update.
9000 2019-03-17 Sergei Trofimovich <siarheit@google.com>
9002 * unittests/string_view-selftests.c: Define
9003 _initialize_string_view_selftests unconditionally.
9005 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9008 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
9010 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9013 * windows-nat.c (display_selector): Fix format specifiers.
9015 2019-03-17 Eli Zaretskii <eliz@gnu.org>
9017 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
9018 tui_refill_source_window instead of tui_refresh_win, to update the
9019 current execution line. This fixes redisplay of the current line
9020 when stepping through the code with "next" or "step".
9022 2019-03-16 Eli Zaretskii <eliz@gnu.org>
9024 * source-cache.c (source_cache::get_source_lines): Call
9025 find_source_lines to initialize s->nlines. This fixes vertical
9026 scrolling of TUI source window when the DOWN arrow is pressed.
9028 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9030 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
9031 linux-thread-db.c (_initialize_thread_db): Likewise.
9033 2019-03-16 Eli Zaretskii <eliz@gnu.org>
9035 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
9036 wclrtoeol in tui_show_source_line". This reverts changes made in
9037 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
9039 2019-03-15 Tom Tromey <tom@tromey.com>
9041 * symtab.h (struct minimal_symbol): Derive from
9042 general_symbol_info.
9043 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
9044 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9045 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9046 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9047 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
9048 (MSYMBOL_SEARCH_NAME): Update.
9049 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
9050 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
9051 * minsyms.c (minimal_symbol_reader::record_full): Update.
9053 2019-03-15 Tom Tromey <tom@tromey.com>
9055 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
9057 2019-03-15 Tom Tromey <tom@tromey.com>
9059 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
9061 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
9063 * minsyms.c (lookup_minimal_symbol_by_pc_section)
9064 (build_minimal_symbol_hash_tables)
9065 (minimal_symbol_reader::install): Update.
9067 2019-03-15 Tom Tromey <tom@tromey.com>
9069 * symtab.c (create_demangled_names_hash): Update.
9070 (symbol_set_names): Update.
9071 * objfiles.h (struct objfile_per_bfd_storage)
9072 <demangled_names_hash>: Now an htab_up.
9073 * objfiles.c (objfile_per_bfd_storage): Simplify.
9075 2019-03-15 Tom Tromey <tom@tromey.com>
9077 * objfiles.h (struct objfile_per_bfd_storage): Declare
9079 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
9081 (get_objfile_bfd_data): Use new. Don't initialize
9083 (free_objfile_per_bfd_storage): Remove.
9084 (objfile_bfd_data_free, objfile::~objfile): Use delete.
9086 2019-03-15 Tom Tromey <tom@tromey.com>
9088 * symfile.c (reread_symbols): Update.
9089 * objfiles.c (objfile::objfile): Update.
9090 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
9091 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
9093 (minimal_symbol_reader::install): Update.
9094 (terminate_minimal_symbol_table): Remove.
9095 * jit.c (jit_object_close_impl): Update.
9097 2019-03-15 Tom Tromey <tom@tromey.com>
9099 * minsyms.c (minimal_symbol_reader::record_full): Remove some
9102 2019-03-15 Tom Tromey <tom@tromey.com>
9104 * objfiles.h (struct objfile_per_bfd_storage)
9105 <demangled_hash_languages>: Now a bitset.
9106 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
9107 (lookup_minimal_symbol): Update.
9109 2019-03-15 Tom Tromey <tom@tromey.com>
9111 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
9112 Don't return the symbol.
9113 * coffread.c (record_minimal_symbol): Use record_full.
9115 2019-03-14 Eli Zaretskii <eliz@gnu.org>
9117 The MS-Windows port of ncurses fails to switch to a color pair if
9118 one or both of the colors are the implicit default colors. This
9119 change records the default colors when TUI is initialized, and
9120 then specifies them explicitly when a color pair uses the default
9121 colors. This allows color styling in TUI mode on MS-Windows.
9123 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
9125 (tui_initialize_io) [__MINGW32__]: Record the default terminal
9126 colors in ncurses_norm_attr.
9127 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
9128 "none", replace it with the default color recorded in
9131 2019-03-14 Tom Tromey <tromey@adacore.com>
9133 * source-cache.h (class source_cache) <get_source_lines>: Return
9135 * source-cache.c (source_cache::extract_lines): Handle case where
9136 first_pos==npos. Return std::string.
9137 (source_cache::get_source_lines): Update.
9139 2019-03-14 Tom Tromey <tromey@adacore.com>
9141 * NEWS: Add item for "style sources" commands.
9142 * source-cache.c (source_cache::get_source_lines): Check
9144 * cli/cli-style.c (source_styling): New global.
9145 (_initialize_cli_style): Add "style sources" commands.
9146 (show_style_sources): New function.
9147 * cli/cli-style.h (source_styling): Declare.
9149 2019-03-14 Pedro Alves <palves@redhat.com>
9150 Tom Tromey <tromey@adacore.com>
9152 * tui/tui-winsource.h (tui_refill_source_window): Declare.
9153 * tui/tui-winsource.c (tui_refill_source_window): New function,
9155 (tui_horizontal_source_scroll): ... here. Move some logic.
9156 * cli/cli-style.c (set_style_enabled): Notify new observable.
9157 * tui/tui-hooks.c (tui_redisplay_source): New function.
9158 (tui_attach_detach_observers): Attach or detach
9159 tui_redisplay_source.
9160 * observable.h (source_styling_changed): New observable.
9161 * observable.c: Define source_styling_changed observable.
9163 2019-03-13 Tom Tromey <tromey@adacore.com>
9165 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
9166 (i386_gnu_nat_target::store_registers): Update.
9167 * target-debug.h (target_debug_print_std_string): New macro.
9168 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
9169 * windows-tdep.c (display_one_tib): Update.
9170 * tui/tui-stack.c (tui_make_status_line): Update.
9171 * top.c (print_inferior_quit_action): Update.
9172 * thread.c (thr_try_catch_cmd): Update.
9173 (add_thread_with_info): Update.
9174 (thread_target_id_str): Update.
9175 (thr_try_catch_cmd): Update.
9176 (thread_command): Update.
9177 (thread_find_command): Update.
9178 * record-btrace.c (record_btrace_target::info_record)
9179 (record_btrace_resume_thread, record_btrace_target::resume)
9180 (record_btrace_cancel_resume, record_btrace_step_thread)
9181 (record_btrace_target::wait, record_btrace_target::wait)
9182 (record_btrace_target::wait, record_btrace_target::stop): Update.
9183 * progspace.c (print_program_space): Update.
9184 * process-stratum-target.c
9185 (process_stratum_target::thread_address_space): Update.
9186 * linux-fork.c (linux_fork_mourn_inferior)
9187 (detach_checkpoint_command, info_checkpoints_command)
9188 (linux_fork_context): Update.
9189 (linux_fork_detach): Update.
9190 (class scoped_switch_fork_info): Update.
9191 (delete_checkpoint_command): Update.
9192 * infrun.c (follow_fork_inferior): Update.
9193 (follow_fork_inferior): Update.
9194 (proceed_after_vfork_done): Update.
9195 (handle_vfork_child_exec_or_exit): Update.
9196 (follow_exec): Update.
9197 (displaced_step_prepare_throw): Update.
9198 (displaced_step_restore): Update.
9199 (start_step_over): Update.
9201 (clear_proceed_status_thread): Update.
9203 (print_target_wait_results): Update.
9204 (do_target_wait): Update.
9205 (context_switch): Update.
9206 (stop_all_threads): Update.
9207 (restart_threads): Update.
9208 (finish_step_over): Update.
9209 (handle_signal_stop): Update.
9210 (switch_back_to_stepped_thread): Update.
9211 (keep_going_pass_signal): Update.
9212 (print_exited_reason): Update.
9213 (normal_stop): Update.
9214 * inferior.c (inferior_pid_to_str): Change return type.
9215 (print_selected_inferior): Update.
9216 (add_inferior): Update.
9217 (detach_inferior): Update.
9218 * dummy-frame.c (fprint_dummy_frames): Update.
9219 * dcache.c (dcache_info_1): Update.
9220 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
9221 (btrace_fetch, btrace_clear): Update.
9222 * linux-tdep.c (linux_core_pid_to_str): Change return type.
9223 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
9225 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
9226 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
9227 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
9228 * gdbarch.c, gdbarch.h: Rebuild.
9229 * gdbarch.sh (core_pid_to_str): Change return type.
9230 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
9232 (windows_nat_target::pid_to_str): Change return type.
9233 (windows_delete_thread): Update.
9234 (windows_nat_target::attach): Update.
9235 (windows_nat_target::files_info): Update.
9236 * target-delegates.c: Rebuild.
9237 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
9239 (sol_thread_target::pid_to_str): Change return type.
9240 * remote.c (class remote_target) <pid_to_str>: Change return
9242 (remote_target::pid_to_str): Change return type.
9243 (extended_remote_target::attach, remote_target::remote_stop_ns)
9244 (remote_target::remote_notif_remove_queued_reply)
9245 (remote_target::push_stop_reply, remote_target::disable_btrace):
9247 (extended_remote_target::attach): Update.
9248 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
9250 (gdbsim_target::pid_to_str): Change return type.
9251 * ravenscar-thread.c (struct ravenscar_thread_target)
9252 <pid_to_str>: Change return type.
9253 (ravenscar_thread_target::pid_to_str): Change return type.
9254 * procfs.c (class procfs_target) <pid_to_str>: Change return
9256 (procfs_target::pid_to_str): Change return type.
9257 (procfs_target::attach): Update.
9258 (procfs_target::detach): Update.
9259 (procfs_target::fetch_registers): Update.
9260 (procfs_target::store_registers): Update.
9261 (procfs_target::wait): Update.
9262 (procfs_target::files_info): Update.
9263 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
9264 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
9266 (nto_procfs_target::pid_to_str): Change return type.
9267 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
9268 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
9270 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
9272 (attach_proc_task_lwp_callback, get_detach_signal)
9273 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
9274 (linux_nat_target::resume, wait_lwp, stop_callback)
9275 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
9276 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
9277 (linux_nat_wait_1, resume_stopped_resumed_lwps)
9278 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
9279 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
9281 (inf_ptrace_target::attach): Update.
9282 (inf_ptrace_target::files_info): Update.
9283 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
9285 (go32_nat_target::pid_to_str): Change return type.
9286 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
9287 (gnu_nat_target::wait): Update.
9288 (gnu_nat_target::wait): Update.
9289 (gnu_nat_target::resume): Update.
9290 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
9291 (fbsd_nat_target::wait): Update.
9292 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
9294 (darwin_nat_target::attach): Update.
9295 * corelow.c (class core_target) <pid_to_str>: Change return type.
9296 (core_target::pid_to_str): Change return type.
9297 * target.c (normal_pid_to_str): Change return type.
9298 (default_pid_to_str): Likewise.
9299 (target_pid_to_str): Change return type.
9300 (target_translate_tls_address): Update.
9301 (target_announce_detach): Update.
9302 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
9304 (bsd_uthread_target::pid_to_str): Change return type.
9305 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
9307 (bsd_kvm_target::pid_to_str): Change return type.
9308 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
9310 (aix_thread_target::pid_to_str): Change return type.
9311 * target.h (struct target_ops) <pid_to_str>: Change return type.
9312 (target_pid_to_str, normal_pid_to_str): Likewise.
9313 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
9315 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
9317 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
9319 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
9321 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
9323 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
9326 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
9328 * NEWS: Mention that the new default MI version is 3. Mention
9329 changes to the output of commands and events that deal with
9330 multi-location breakpoints.
9331 * breakpoint.c: Include "mi/mi-out.h".
9332 (print_one_breakpoint): Change output syntax if using MI version
9334 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
9336 (mi_multi_location_breakpoint_output_fixed): New.
9337 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
9338 (mi_cmd_fix_multi_location_breakpoint_output): New.
9339 (mi_multi_location_breakpoint_output_fixed): New.
9340 * mi/mi-cmds.c (mi_cmds): Register command
9341 -fix-multi-location-breakpoint-output.
9342 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
9345 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9347 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
9348 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
9349 instantiate mi_ui_out based on interpreter name.
9350 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
9351 * mi/mi-main.c (mi_load_progress): Likewise.
9353 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9355 * NEWS: Combine separate "New targets" sections for 8.3.
9357 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9359 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
9360 (ppcfbsd_init_abi): Install gdbarch
9361 "fetch_tls_load_module_address" and "get_thread_local_address"
9364 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9366 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
9367 (riscv_fbsd_init_abi): Install gdbarch
9368 "fetch_tls_load_module_address" and "get_thread_local_address"
9371 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9373 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
9374 (i386fbsd_init_abi): Install gdbarch
9375 "fetch_tls_load_module_address" and "get_thread_local_address"
9378 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9380 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
9381 (amd64fbsd_init_abi): Install gdbarch
9382 "fetch_tls_load_module_address" and "get_thread_local_address"
9385 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9387 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
9388 (struct fbsd_pspace_data): New type.
9389 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
9390 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
9391 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
9392 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
9393 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
9395 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9397 * gdbtypes.c (lookup_struct_elt): New function.
9398 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
9399 * gdbtypes.h (struct struct_elt): New type.
9400 (lookup_struct_elt): New prototype.
9402 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9404 * gdbtypes.c (lookup_struct_elt_type): Update comment and
9405 remove disabled code block.
9407 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9409 * gdbarch.sh (get_thread_local_address): New method.
9410 * gdbarch.h, gdbarch.c: Regenerate.
9411 * target.c (target_translate_tls_address): Use
9412 gdbarch_get_thread_local_address if present instead of
9413 target::get_thread_local_address.
9415 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9417 * target.h (target::get_thread_local_address): Update comment.
9419 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9421 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
9422 objfile->separate_debug_objfile_backlink if not NULL.
9424 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9426 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
9427 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
9428 (amd64bsd_store_inferior_registers): Likewise.
9429 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
9430 Enable segment base registers.
9431 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
9432 PT_GETFSBASE and PT_GETGSBASE.
9433 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
9435 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
9436 segment base registers.
9437 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
9439 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9441 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
9442 Update calls to i386_target_description to add 'segments'
9444 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
9445 add segment base registers.
9446 * arch/i386.c (i386_create_target_description): Add 'segments'
9447 parameter to enable segment base registers.
9448 * arch/i386.h (i386_create_target_description): Likewise.
9449 * features/i386/32bit-segments.xml: New file.
9450 * features/i386/32bit-segments.c: Generate.
9451 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
9452 call to i386_target_description to add 'segments' parameter.
9453 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
9454 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
9455 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
9456 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
9457 if feature is present.
9458 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
9459 Add 'segments' parameter to call to i386_target_description.
9460 (i386_target_description): Add 'segments' parameter to enable
9461 segment base registers.
9462 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
9463 to call to i386_target_description.
9464 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
9465 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
9466 Define I386_NUM_REGS.
9467 (i386_target_description): Add 'segments' parameter to enable
9468 segment base registers.
9470 2019-03-12 Eli Zaretskii <eliz@gnu.org>
9473 * source-cache.c: #undef open and close, to avoid unresolved
9474 externals during linking.
9476 2019-03-12 Tom Tromey <tromey@adacore.com>
9478 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
9479 const. Add initializers.
9480 (_initialize_remote): Don't initialize ptid globals.
9482 2019-03-12 Pedro Alves <palves@redhat.com>
9484 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
9486 2019-03-12 Pedro Alves <palves@redhat.com>
9488 * cp-name-parser.y (main): Remove unused 'len' variable.
9490 2019-03-12 Tom Tromey <tromey@adacore.com>
9492 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
9493 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
9495 2019-03-12 Tom Tromey <tromey@adacore.com>
9497 * linux-nat.c (iterate_over_lwps): Update.
9498 (stop_callback): Remove parameter.
9499 (stop_wait_callback, detach_callback, resume_set_callback)
9500 (select_singlestep_lwp_callback, set_ignore_sigint)
9501 (status_callback, resumed_callback, resume_clear_callback)
9502 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
9504 (linux_nat_target::detach, linux_nat_target::resume)
9505 (linux_stop_and_wait_all_lwps, select_event_lwp)
9506 (linux_nat_filter_event, linux_nat_wait_1)
9507 (linux_nat_target::kill, linux_nat_target::stop)
9508 (linux_nat_target::stop): Update.
9509 (linux_nat_resume_callback): Change type.
9510 (resume_stopped_resumed_lwps, count_events_callback)
9511 (select_event_lwp_callback): Likewise.
9512 (linux_stop_lwp, linux_nat_stop_lwp): Update.
9513 * arm-linux-nat.c (struct update_registers_data): Remove.
9514 (update_registers_callback): Change type.
9515 (arm_linux_insert_hw_breakpoint1): Update.
9516 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
9518 (x86_linux_dr_set_addr): Update.
9519 (x86_linux_dr_set_control): Update.
9520 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
9521 (iterate_over_lwps): Use gdb::function_view.
9522 * nat/aarch64-linux-hw-point.c (struct
9523 aarch64_dr_update_callback_param): Remove.
9524 (debug_reg_change_callback): Change type.
9525 (aarch64_notify_debug_reg_change): Update.
9526 * s390-linux-nat.c (s390_refresh_per_info): Update.
9528 2019-03-11 Tom Tromey <tromey@adacore.com>
9530 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
9531 redundant assignment to "this_cu".
9533 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9535 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
9537 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9539 * gdbtypes.c (rank_one_type_parm_set): New function extracted
9541 (rank_one_type): ... this.
9543 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9545 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
9547 (rank_one_type): ... this.
9549 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9551 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
9553 (rank_one_type): ... this.
9555 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9557 * gdbtypes.c (rank_one_type_parm_float): New function extracted
9559 (rank_one_type): ... this.
9561 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9563 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
9565 (rank_one_type): ... this.
9567 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9569 * gdbtypes.c (rank_one_type_parm_range): New function extracted
9571 (rank_one_type): ... this.
9573 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9575 * gdbtypes.c (rank_one_type_parm_char): New function extracted
9577 (rank_one_type): ... this.
9579 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9581 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
9583 (rank_one_type): ... this.
9585 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9587 * gdbtypes.c (rank_one_type_parm_int): New function extracted
9589 (rank_one_type): ... this.
9591 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9593 * gdbtypes.c (rank_one_type_parm_func): New function extracted
9595 (rank_one_type): ... this.
9597 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9599 * gdbtypes.c (rank_one_type_parm_array): New function extracted
9601 (rank_one_type): ... this.
9603 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9605 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
9607 (rank_one_type): ... this.
9609 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9611 * inferior.c (initialize_inferiors): Ensure 'help set/show print
9612 inferior-events' shows the example events.
9614 2019-03-08 Eli Zaretskii <eliz@gnu.org>
9616 Support styling on native MS-Windows console
9619 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
9620 on MS-Windows if $TERM is not defined.
9622 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
9624 * posix-hdep.c (gdb_console_fputs):
9625 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
9627 * ui-file.h (gdb_console_fputs): Add prototype.
9629 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
9630 back to fputs only if the former returns zero.
9632 2019-03-07 Tom Tromey <tom@tromey.com>
9634 * symmisc.c (print_symbol_bcache_statistics): Update.
9635 (print_objfile_statistics): Update.
9636 * symfile.c (allocate_symtab): Update.
9637 * stabsread.c: Don't include bcache.h.
9638 * psymtab.h (struct psymbol_bcache): Don't declare.
9639 (class psymtab_storage) <psymbol_cache>: Now a bcache.
9640 (psymbol_bcache_init, psymbol_bcache_free)
9641 (psymbol_bcache_get_bcache): Don't declare.
9642 * psymtab.c (struct psymbol_bcache): Remove.
9643 (psymtab_storage::psymtab_storage): Update.
9644 (psymtab_storage::~psymtab_storage): Update.
9645 (psymbol_bcache_init, psymbol_bcache_free)
9646 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
9647 (add_psymbol_to_bcache): Update.
9648 (allocate_psymtab): Update.
9649 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
9650 macro_cache>: No longer pointers.
9651 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
9652 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
9653 * macrotab.c (macro_bcache): Update.
9654 * macroexp.c: Don't include bcache.h.
9655 * gdbtypes.c (check_types_worklist): Update.
9656 (types_deeply_equal): Remove TRY/CATCH. Update.
9657 * elfread.c (elf_symtab_read): Update.
9658 * dwarf2read.c: Don't include bcache.h.
9659 * buildsym.c (buildsym_compunit::get_macro_table): Update.
9660 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
9661 (print_bcache_statistics, bcache_memory_used): Don't declare.
9662 (struct bcache): Move from bcache.c. Add constructor, destructor,
9663 methods. Rename all data members.
9664 * bcache.c (struct bcache): Move to bcache.h.
9665 (bcache::expand_hash_table): Rename from expand_hash_table.
9667 (bcache::insert): Rename from bcache_full.
9668 (bcache::compare): Rename from bcache_compare.
9669 (bcache_xmalloc): Remove.
9670 (bcache::~bcache): Rename from bcache_xfree.
9671 (bcache::print_statistics): Rename from print_bcache_statistics.
9672 (bcache::memory_used): Rename from bcache_memory_used.
9674 2019-03-07 Pedro Alves <palves@redhat.com>
9676 * infrun.c (normal_stop): Also check for
9677 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
9679 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
9681 * f-lang.c (value_from_host_double): Moved to...
9682 * value.c (value_from_host_double): ...here.
9683 * value.h (value_from_host_double): Declare.
9684 * guile/scm-math.c (vlscm_convert_typed_number): Use
9685 value_from_host_double.
9686 (vlscm_convert_number): Likewise.
9687 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
9688 * python/py-value.c (convert_value_from_python): Likewise.
9690 2019-03-06 Tom Tromey <tom@tromey.com>
9692 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
9694 2019-03-06 Tom Tromey <tom@tromey.com>
9696 * utils.h (free_current_contents): Don't declare.
9697 * utils.c (free_current_contents): Remove.
9699 2019-03-06 Tom Tromey <tom@tromey.com>
9701 * top.c (quit_force): Update.
9702 * main.c (captured_command_loop): Update.
9703 * common/new-op.c (operator new): Update.
9704 * common/common-exceptions.c (struct catcher)
9705 <save_cleanup_chain>: Remove member.
9706 (exceptions_state_mc_init): Update.
9707 (exception_try_scope_entry): Return nullptr.
9708 (exception_try_scope_exit, exception_rethrow)
9709 (throw_exception_sjlj, throw_exception_cxx): Update.
9710 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
9711 (all_cleanups, do_cleanups, discard_cleanups)
9712 (discard_final_cleanups, save_cleanups, save_final_cleanups)
9713 (restore_cleanups, restore_final_cleanups): Don't declare.
9714 (do_final_cleanups): Remove parameter.
9715 * common/cleanups.c (cleanup_chain, make_cleanup)
9716 (make_cleanup_dtor, all_cleanups, do_cleanups)
9717 (discard_my_cleanups, discard_cleanups)
9718 (discard_final_cleanups, save_my_cleanups, save_cleanups)
9719 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
9720 (null_cleanup): Remove.
9721 (do_final_cleanups): Remove parameter.
9723 2019-03-06 Tom Tromey <tom@tromey.com>
9725 * remote.c (remote_target::remote_parse_stop_reply): Use
9728 2019-03-06 Tom Tromey <tom@tromey.com>
9730 * stabsread.c (struct stabs_field_info): Rename from field_info.
9731 <list, fnlist>: Add initializers.
9732 <obstack>: New member.
9733 (read_member_functions, read_struct_fields, read_baseclasses):
9734 Allocate on obstack. Don't use cleanups.
9735 (read_one_struct_field, read_member_functions, read_struct_fields)
9736 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
9737 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
9738 (read_struct_type): Update.
9740 2019-03-06 Tom Tromey <tom@tromey.com>
9742 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
9743 * common/filestuff.h (make_cleanup_close): Don't declare.
9744 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
9747 2019-03-06 Tom Tromey <tom@tromey.com>
9749 * solib-aix.c: Use make_scope_exit.
9751 2019-03-06 Tom Tromey <tom@tromey.com>
9753 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
9754 Use make_scope_exit.
9756 2019-03-06 Tom Tromey <tom@tromey.com>
9758 * solib-svr4.c (disable_probes_interface): Remove parameter.
9759 (svr4_handle_solib_event): Use make_scope_exit.
9761 2019-03-06 Tom Tromey <tom@tromey.com>
9763 * remote.c (struct stop_reply_deleter): Remove.
9764 (stop_reply_up): Update.
9765 (struct stop_reply): Derive from notif_event. Don't typedef.
9766 <regcache>: Now a std::vector.
9767 (stop_reply_xfree): Remove.
9768 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
9769 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
9770 (remote_target::discard_pending_stop_replies): Use delete.
9771 (remote_target::remote_parse_stop_reply): Update.
9772 (remote_target::process_stop_reply): Update.
9773 * remote-notif.h (struct notif_event): Add virtual destructor.
9774 Remove "dtr" member.
9775 (struct notif_client) <alloc_event>: Return a unique_ptr.
9776 (notif_event_xfree): Don't declare.
9777 (notif_event_up): New typedef.
9778 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
9779 (notif_event_xfree, do_notif_event_xfree): Remove.
9780 (remote_notif_state_xfree): Update.
9782 2019-03-06 Tom Tromey <tom@tromey.com>
9784 * infrun.c (displaced_step_clear_cleanup): Now a
9785 forward_scope_exit type.
9786 (displaced_step_prepare_throw): Update.
9787 (displaced_step_fixup): Update.
9789 2019-03-06 Tom Tromey <tom@tromey.com>
9791 * inferior.h (class inferior): Update comment.
9792 * gdbthread.h (class thread_info): Update comment.
9794 2019-03-06 Joel Brobecker <brobecker@adacore.com>
9795 Tom Tromey <tom@tromey.com>
9797 * stabsread.h (struct stab_section_list): Remove.
9798 (coffstab_build_psymtabs): Update.
9799 * dbxread.c (symbuf_sections): Now a std::vector.
9800 (sect_idx): New global.
9801 (fill_symbuf): Update.
9802 (coffstab_build_psymtabs): Change type of stabsects parameter.
9804 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
9806 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
9807 (coff_locate_sections): Update.
9808 (coff_symfile_read): Remove cleanups. Update.
9809 (init_stringtab): Add storage parameter.
9810 (free_stringtab, free_stringtab_cleanup): Remove.
9811 (init_lineno): Add storage parameter.
9812 (free_linetab, free_linetab_cleanup): Remove.
9814 2019-03-06 Pedro Alves <palves@redhat.com>
9816 * linux-fork.c (fork_info::clobber_regs): Delete.
9817 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
9818 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
9820 (scoped_switch_fork_info::scoped_switch_fork_info)
9821 (checkpoint_command, linux_fork_context): Adjust
9822 fork_save_infrun_state calls.
9824 2019-03-06 Pedro Alves <palves@redhat.com>
9826 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
9827 (inf_has_multiple_threads): Return 'bool' and rewrite using
9828 inferior_info::threads().
9830 2019-03-06 Pedro Alves <palves@redhat.com>
9832 * linux-fork.c: Include <list>.
9833 (fork_list): Now a std::list instance.
9834 (fork_info): Add ctor, dtor, and in-class initialize all fields.
9835 (forks_exist_p, find_last_fork): Adjust.
9839 (free_fork): Delete, folded into fork_info::~fork_info().
9840 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
9842 (init_fork_list): Delete.
9843 (linux_fork_killall, linux_fork_mourn_inferior)
9844 (linux_fork_detach, info_checkpoints_command): Adjust.
9845 (_initialize_linux_fork): No longer call init_fork_list.
9847 2019-03-06 Pedro Alves <palves@redhat.com>
9849 * linux-fork.c (new_fork): New, split out of ...
9850 (add_fork): ... this. Return void. Move "first fork" special
9851 case from here, to ...
9852 (checkpoint_command): ... here.
9853 * linux-linux.h (add_fork): Return void.
9855 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9857 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
9859 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9860 Chris January <chris.january@arm.com>
9861 David Lecomber <david.lecomber@arm.com>
9863 * f-exp.y: New token, UNOP_INTRINSIC.
9864 (exp): New pattern using UNOP_INTRINSIC token.
9865 (f77_keywords): Add 'abs' keyword.
9866 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
9867 (value_from_host_double): New function.
9868 (evaluate_subexp_f): Support UNOP_ABS.
9870 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9872 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
9875 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9877 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
9878 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
9879 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
9881 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9883 * f-exp.y (convert_to_kind_type): Handle more type kinds.
9885 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9886 Chris January <chris.january@arm.com>
9888 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
9889 * f-exp.y: Define 'KIND' token.
9890 (exp): New pattern for KIND expressions.
9891 (ptype): Handle types with a kind extension.
9892 (direct_abs_decl): Extend to spot kind extensions.
9893 (f77_keywords): Add 'kind' to the list.
9894 (push_kind_type): New function.
9895 (convert_to_kind_type): New function.
9896 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
9897 * parse.c (operator_length_standard): Likewise.
9898 * parser-defs.h (enum type_pieces): Add tp_kind.
9899 * std-operator.def: Add UNOP_KIND.
9901 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9903 * f-exp.y (f_parse): Set yydebug.
9905 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9907 * f-lang.c (evaluate_subexp_f): New function.
9908 (exp_descriptor_f): New global.
9909 (f_language_defn): Use exp_descriptor_f instead of
9910 exp_descriptor_standard.
9912 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9914 * f-exp.y (struct token): Add comments.
9915 (dot_ops): Remove uppercase versions and the end marker.
9916 (f77_keywords): Likewise.
9917 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
9918 entries in the dot_ops array are case insensitive, and use
9919 strncasecmp to compare strings. Also some whitespace cleanup in
9920 this area. Similar for the f77_keywords array, except entries in
9921 this list might be case sensitive.
9923 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9925 * f-exp.y (struct f77_boolean_val): Add comments.
9926 (boolean_values): Remove uppercase versions, and end marker.
9927 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
9928 and use strncasecmp to achieve case insensitivity. Additionally,
9929 perform whitespace cleanup around this code.
9931 2019-03-06 Tom Tromey <tromey@adacore.com>
9933 * remote-sim.c (gdbsim_target_open): Use result of
9936 2019-03-06 Richard Bunt <richard.bunt@arm.com>
9937 Dirk Schubert <dirk.schubert@arm.com>
9938 Chris January <chris.january@arm.com>
9940 * eval.c (evaluate_subexp_standard): Call Fortran argument
9942 * f-lang.c (struct value): A value which can be passed into a
9943 Fortran function call.
9944 (fortran_argument_convert): Wrap Fortran arguments in a pointer
9946 (struct type): Value ready for a Fortran function call.
9947 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
9949 * f-lang.h (fortran_argument_convert): Declaration.
9950 (fortran_preserve_arg_pointer): Declaration.
9951 * infcall.c (value_arg_coerce): Call Fortran argument logic.
9953 2019-03-05 Tom Tromey <tromey@adacore.com>
9955 * python/py-prettyprint.c (print_string_repr): Remove #if.
9956 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
9958 2019-03-05 Tom Tromey <tromey@adacore.com>
9960 * target.c (the_dummy_target): Move later. Change type to
9962 (initialize_targets): Don't initialize the_dummy_target.
9964 2019-03-05 Tom Tromey <tromey@adacore.com>
9966 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
9967 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
9969 2019-03-05 Tom Tromey <tromey@adacore.com>
9971 * windows-nat.c (windows_nat_target::attach)
9972 (windows_nat_target::detach): Don't call gdb_flush.
9973 * valprint.c (generic_val_print, val_print, val_print_string):
9974 Don't call gdb_flush.
9975 * utils.c (defaulted_query): Don't call gdb_flush.
9976 * typeprint.c (print_type_scalar): Don't call gdb_flush.
9977 * target.c (target_announce_detach): Don't call gdb_flush.
9978 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
9979 * remote.c (extended_remote_target::attach): Don't call
9981 * procfs.c (procfs_target::detach): Don't call gdb_flush.
9982 * printcmd.c (do_examine): Don't call gdb_flush.
9983 (info_display_command): Don't call gdb_flush.
9984 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
9985 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
9986 * memattr.c (info_mem_command): Don't call gdb_flush.
9987 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
9988 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
9989 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
9990 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
9991 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
9992 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
9993 (gnu_nat_target::detach): Don't call gdb_flush.
9994 * f-valprint.c (f_val_print): Don't call gdb_flush.
9995 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
9996 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
9997 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
9999 * c-valprint.c (c_val_print): Don't call gdb_flush.
10000 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
10002 2019-03-05 Tom Tromey <tromey@adacore.com>
10004 * varobj.c (update_dynamic_varobj_children): Update.
10005 (install_default_visualizer): Use reset, not release.
10006 * value.c (set_internalvar): Update.
10007 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
10008 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
10009 ATTRIBUTE_UNUSED_RESULT.
10011 2019-03-05 Tom Tromey <tromey@adacore.com>
10013 * remote.c (class scoped_remote_fd) <release>: Add
10014 ATTRIBUTE_UNUSED_RESULT.
10016 2019-03-05 Tom Tromey <tromey@adacore.com>
10018 * macroexp.c (struct macro_buffer) <release>: Add
10019 ATTRIBUTE_UNUSED_RESULT.
10021 2019-03-05 Tom Tromey <tromey@adacore.com>
10023 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
10024 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
10025 ATTRIBUTE_UNUSED_RESULT.
10027 2019-03-05 Tom Tromey <tromey@adacore.com>
10029 * common/scoped_fd.h (class scoped_fd) <release>: Add
10030 ATTRIBUTE_UNUSED_RESULT.
10032 2019-03-05 Tom Tromey <tromey@adacore.com>
10034 * parser-defs.h (struct parser_state) <release>: Add
10035 ATTRIBUTE_UNUSED_RESULT.
10037 2019-03-05 Tom Tromey <tromey@adacore.com>
10039 * utils.h (class gdb_argv) <release>: Add
10040 ATTRIBUTE_UNUSED_RESULT.
10041 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
10043 2019-03-02 Eli Zaretskii <eliz@gnu.org>
10045 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
10046 for-loop range, to avoid compiler warnings.
10048 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
10049 avoid compiler warnings about unused variables.
10051 * NEWS: Mention end of support for native debugging on MS-Windows
10055 * common/netstuff.c:
10056 * gdbserver/gdbreplay.c
10057 * gdbserver/remote-utils.c:
10059 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
10060 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
10061 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
10062 'getaddrinfo' and 'freeaddrinfo' were not available before
10063 Windows XP, and mingw.org's MinGW headers by default define
10064 _WIN32_WINNT to 0x500.
10066 2019-03-01 Gary Benson <gbenson@redhat.com>
10068 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
10070 2019-02-28 Brian Vandenberg <phantall@gmail.com>
10071 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10074 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
10075 set_sigint_trap, clear_sigint_trap.
10077 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10079 * target.c (target_detach): Clear the regcache and the
10082 2019-02-27 Pedro Alves <palves@redhat.com>
10084 * utils.c (set_screen_size): When we cap the height/width sizes,
10085 tweak the corresponding command variable to show "unlimited":
10087 2019-02-27 Saagar Jha <saagar@saagarjha.com>
10088 Pedro Alves <palves@redhat.com>
10090 * utils.c (set_screen_size): Reduce "infinite" rows and columns
10091 before calling rl_set_screen_size.
10093 2019-02-27 Tom Tromey <tromey@adacore.com>
10095 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
10097 * python/py-value.c: Remove Python 2.4 workaround.
10098 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
10100 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
10101 Python 2.4 workaround.
10102 * python/python-internal.h: Remove Python 2.4 comment.
10103 (Py_ssize_t): Don't define.
10104 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
10105 (gdb_Py_DECREF): Remove Python 2.4 workaround.
10106 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
10107 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
10108 * python/python.c (do_start_initialization): Remove Python 2.4
10110 * python/py-prettyprint.c (class dummy_python_frame): Remove.
10111 (print_children): Remove Python 2.4 workaround.
10112 * python/py-inferior.c (buffer_procs): Remove Python 2.4
10114 (CHARBUFFERPROC_NAME): Remove.
10115 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
10116 Python 2.4 workaround.
10118 2019-02-27 Kevin Buettner <kevinb@redhat.com>
10120 * NEWS: Note minimum Python version.
10122 2019-02-27 Kevin Buettner <kevinb@redhat.com>
10124 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
10125 code from these functions. Remove corresponding ifdefs. Use
10126 Py_buffer_up instead of explicit calls to PyBuffer_Release.
10127 Remove gotos and target of gotos.
10128 (infpy_search_memory): Likewise.
10130 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10132 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
10133 (hppa_gdbarch_init): Don't register deleted functions with
10136 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10138 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
10139 (h8300_unwind_sp): Delete.
10140 (h8300_dummy_id): Delete.
10141 (h8300_gdbarch_init): Don't register deleted functions with
10144 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10146 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
10147 (ft32_unwind_pc): Delete.
10148 (ft32_unwind_sp): Delete.
10149 (ft32_gdbarch_init): Don't register deleted functions with
10152 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10154 * gdb/frv-tdep.c (frv_dummy_id): Delete.
10155 (frv_unwind_pc): Delete.
10156 (frv_unwind_sp): Delete.
10157 (frv_gdbarch_init): Don't register deleted functions with
10160 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10162 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
10163 (riscv_unwind_pc): Delete.
10164 (riscv_unwind_sp): Delete.
10165 (riscv_gdbarch_init): Don't register deleted functions with
10168 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10170 * gdb/csky-tdep.c (csky_dummy_id): Delete.
10171 (csky_unwind_pc): Delete.
10172 (csky_unwind_sp): Delete.
10173 (csky_gdbarch_init): Don't register deleted functions with
10176 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10178 * gdb/cris-tdep.c (cris_dummy_id): Delete.
10179 (cris_unwind_pc): Delete.
10180 (cris_unwind_sp): Delete.
10181 (cris_gdbarch_init): Don't register deleted functions with
10184 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10186 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
10187 (bfin_unwind_pc): Delete.
10188 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
10190 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10192 * gdb/arm-tdep.c (arm_dummy_id): Delete.
10193 (arm_unwind_pc): Delete.
10194 (arm_unwind_sp): Delete.
10195 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
10197 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10199 * gdb/arc-tdep.c (arc_dummy_id): Delete.
10200 (arc_unwind_pc): Delete.
10201 (arc_unwind_sp): Delete.
10202 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
10204 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10206 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
10207 (alpha_unwind_pc): Delete.
10208 (alpha_gdbarch_init): Don't register deleted functions with
10211 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10213 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
10214 (aarch64_unwind_pc): Delete.
10215 (aarch64_unwind_sp): Delete.
10216 (aarch64_gdbarch_init): Don't register deleted functions with
10219 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10221 * gdbtypes.c (type_align): Don't consider static members when
10222 computing structure alignment.
10224 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10226 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
10227 return 0 for other types.
10228 * arch-utils.c (default_type_align): Always return 0.
10229 * gdbarch.h: Regenerate.
10230 * gdbarch.sh (type_align): Extend comment.
10231 * gdbtypes.c (type_align): Add additional comments, always call
10232 gdbarch_type_align before applying the default rules.
10233 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
10234 generic code will then apply a suitable default.
10235 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
10236 types, return 0 for other types.
10238 2019-02-27 Joel Brobecker <brobecker@adacore.com>
10240 * NEWS: Create a new section for the next release branch.
10241 Rename the section of the current branch, now that it has
10244 2019-02-27 Joel Brobecker <brobecker@adacore.com>
10246 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
10247 * version.in: Bump version to 8.3.50.DATE-git.
10249 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
10251 * aix-thread.c (ptid_cmp): Remove unused variable.
10252 (get_signaled_thread): Likewise.
10253 (store_regs_user_thread): Likewise.
10254 (store_regs_kernel_thread): Likewise.
10255 (fetch_regs_kernel_thread): Remove shadowed variable.
10257 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
10259 * features/riscv/32bit-cpu.xml: Add register numbers.
10260 * features/riscv/32bit-fpu.c: Regenerate.
10261 * features/riscv/32bit-fpu.xml: Add register numbers.
10262 * features/riscv/64bit-cpu.xml: Add register numbers.
10263 * features/riscv/64bit-fpu.c: Regenerate.
10264 * features/riscv/64bit-fpu.xml: Add register numbers.
10266 2019-02-26 Kevin Buettner <kevinb@redhat.com>
10268 * NEWS: Mention two argument form of gdb.Value constructor.
10269 * python/py-value.c (convert_buffer_and_type_to_value): New
10271 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
10272 Add support for handling an optional second argument. Call
10273 convert_buffer_and_type_to_value as appropriate.
10274 * python/python-internal.h (Py_buffer_deleter): New struct.
10275 (Py_buffer_up): New typedef.
10277 2019-02-25 John Baldwin <jhb@FreeBSD.org>
10279 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
10280 instead of releasing ownership.
10282 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
10284 * dwarf2read.c (open_and_init_dwp_file): Call
10285 elf_numsections instead of bfd_count_sections to initialize
10286 dwp_file->num_sections.
10288 2019-02-25 Tom Tromey <tromey@adacore.com>
10290 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
10292 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
10294 * gcore.in: Add '--readnever' option when invoking GDB.
10296 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
10298 * MAINTAINERS: Update my email address.
10300 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
10302 * build-id.c (build_id_to_debug_bfd_1): New function.
10303 (build_id_to_debug_bfd): Look for separate debug file in
10306 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
10308 * gdbarch.sh: Update the copyright year range that is placed into
10311 2019-02-22 Keith Seitz <keiths@redhat.com>
10314 * linespec.c (create_sals_line_offset): Search for the default
10315 symtab's filename instead of its fullname.
10317 2019-02-21 Alan Hayward <alan.hayward@arm.com>
10319 * NEWS: Update style defaults.
10321 2019-02-21 Alan Hayward <alan.hayward@arm.com>
10323 * main.c (captured_main_1): Disable styling in batch mode.
10325 2019-02-20 Tom Tromey <tom@tromey.com>
10327 * symtab.c (symtab_symbol_info): Fix typos.
10329 2019-02-20 Tom Tromey <tromey@adacore.com>
10331 * findcmd.c (_initialize_mem_search): Use upper case for
10332 metasyntactic variables.
10334 2019-02-20 Alan Hayward <alan.hayward@arm.com>
10336 * aarch64-tdep.c (aarch64_add_reggroups): New function.
10337 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
10339 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
10341 * top.h (source_file_name): Change to std::string.
10342 * top.c (source_file_name): Likewise.
10343 (command_line_input): Adjust.
10344 * cli/cli-script.c (script_from_file): Adjust.
10346 2019-02-19 Tom Tromey <tromey@adacore.com>
10348 * ravenscar-thread.c
10349 (ravenscar_thread_target::update_thread_list): Don't call
10350 ada_build_task_list.
10351 * ada-lang.h (ada_build_task_list): Don't declare.
10352 * ada-tasks.c (struct ada_tasks_inferior_data)
10353 <task_list_valid_p>: Now bool.
10354 (read_known_tasks, ada_task_list_changed)
10355 (ada_tasks_invalidate_inferior_data): Update.
10356 (read_known_tasks_array): Return bool.
10357 (read_known_tasks_list): Likewise.
10358 (read_known_tasks): Return void.
10359 (ada_build_task_list): Now static.
10361 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
10363 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
10364 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
10366 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10368 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
10369 variant for ada_tasks_pspace_data_handle and
10370 ada_tasks_inferior_data_handle.
10371 (ada_tasks_pspace_data_cleanup): New function.
10372 (ada_tasks_inferior_data_cleanup): New function.
10374 2019-02-17 Tom Tromey <tom@tromey.com>
10376 * macrotab.h (macro_source_fullname): Return a std::string.
10377 * macrotab.c (macro_include, check_for_redefinition)
10378 (macro_undef, macro_lookup_definition, foreach_macro)
10379 (foreach_macro_in_scope): Update.
10380 (macro_source_fullname): Return a std::string.
10381 * macrocmd.c (show_pp_source_pos): Update.
10383 2019-02-17 Tom Tromey <tom@tromey.com>
10385 * macrocmd.c (show_pp_source_pos): Style the file names.
10387 2019-02-17 Tom Tromey <tom@tromey.com>
10390 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
10392 2019-02-17 Tom Tromey <tom@tromey.com>
10394 * ada-lang.c (user_select_syms): Use filtered printing.
10395 * utils.c (wrap_style): New global.
10396 (desired_style): Remove.
10397 (emit_style_escape): Add stream parameter.
10398 (set_output_style, reset_terminal_style, prompt_for_continue):
10400 (flush_wrap_buffer): Only flush gdb_stdout.
10401 (wrap_here): Set wrap_style.
10402 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
10403 treat escape sequences as a character. Change when wrap buffer is
10405 (fputs_styled): Do not set the output style when the default is
10407 * ui-style.h (struct ui_file_style) <is_default>: New method.
10408 * source.c (print_source_lines_base): Emit escape sequences in one
10411 2019-02-17 Joel Brobecker <brobecker@adacore.com>
10413 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
10414 integers and enumeration types.
10416 2019-02-17 Joel Brobecker <brobecker@adacore.com>
10418 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
10419 instead of lookup_symbol_in_language
10420 (do_exact_match): New function.
10421 (ada_get_symbol_name_matcher): Return do_exact_match when
10422 doing a verbatim match.
10424 2019-02-15 Tom Tromey <tromey@adacore.com>
10426 * ravenscar-thread.c (ravenscar_thread_target::resume)
10427 (ravenscar_thread_target::wait): Special case wildcard requests.
10429 2019-02-15 Tom Tromey <tromey@adacore.com>
10431 * ravenscar-thread.c (base_ptid): Remove.
10432 (struct ravenscar_thread_target) <close>: New method.
10433 <m_base_ptid>: New member.
10434 <update_inferior_ptid, active_task, task_is_currently_active,
10435 runtime_initialized>: Declare methods.
10436 <ravenscar_thread_target>: Add constructor.
10437 (ravenscar_thread_target::task_is_currently_active)
10438 (ravenscar_thread_target::update_inferior_ptid)
10439 (ravenscar_runtime_initialized): Rename. Now methods.
10440 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
10441 (ravenscar_thread_target::update_thread_list): Update.
10442 (ravenscar_thread_target::active_task): Now method.
10443 (ravenscar_thread_target::store_registers)
10444 (ravenscar_thread_target::prepare_to_store)
10445 (ravenscar_thread_target::prepare_to_store)
10446 (ravenscar_thread_target::mourn_inferior): Update.
10447 (ravenscar_inferior_created): Use "new" to create target.
10448 (ravenscar_thread_target::get_ada_task_ptid): Update.
10449 (_initialize_ravenscar): Don't initialize base_ptid.
10450 (ravenscar_ops): Remove global.
10452 2019-02-15 Tom Tromey <tromey@adacore.com>
10454 * target.h (push_target): Declare new overload.
10455 * target.c (push_target): New overload, taking an rvalue reference.
10456 * remote.c (remote_target::open_1): Use push_target overload.
10457 * corelow.c (core_target_open): Use push_target overload.
10459 2019-02-15 Tom Tromey <tromey@adacore.com>
10461 * ravenscar-thread.c (is_ravenscar_task)
10462 (ravenscar_task_is_currently_active): Return bool.
10463 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
10464 (_initialize_ravenscar): Remove "(void)".
10465 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
10468 2019-02-15 Tom Tromey <tromey@adacore.com>
10470 * ravenscar-thread.c (ravenscar_runtime_initializer)
10471 (has_ravenscar_runtime, get_running_thread_id)
10472 (ravenscar_thread_target::resume): Fix indentation.
10474 2019-02-15 Tom Tromey <tromey@adacore.com>
10476 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
10477 from ravenscar_arch_ops.
10478 (sparc_ravenscar_ops::fetch_registers)
10479 (sparc_ravenscar_ops::store_registers): Now methods.
10480 (sparc_ravenscar_prepare_to_store): Remove.
10481 (sparc_ravenscar_ops): Redefine.
10482 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
10483 methods and destructor. Remove members.
10484 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
10485 (ravenscar_thread_target::store_registers)
10486 (ravenscar_thread_target::prepare_to_store): Update.
10487 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
10489 (struct ppc_ravenscar_powerpc_ops): Derive from
10490 ravenscar_arch_ops.
10491 (ppc_ravenscar_powerpc_ops::fetch_registers)
10492 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
10493 (ppc_ravenscar_powerpc_ops): Redefine.
10494 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
10495 (ppc_ravenscar_e500_ops::fetch_registers)
10496 (ppc_ravenscar_e500_ops::store_registers): Now methods.
10497 (ppc_ravenscar_e500_ops): Redefine.
10498 * aarch64-ravenscar-thread.c
10499 (aarch64_ravenscar_generic_prepare_to_store): Remove.
10500 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
10501 (aarch64_ravenscar_fetch_registers)
10502 (aarch64_ravenscar_store_registers): Now methods.
10503 (aarch64_ravenscar_ops): Redefine.
10505 2019-02-15 Tom Tromey <tromey@adacore.com>
10507 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
10508 (ravenscar_thread_target::stopped_by_hw_breakpoint)
10509 (ravenscar_thread_target::stopped_by_watchpoint)
10510 (ravenscar_thread_target::stopped_data_address)
10511 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
10513 2019-02-15 Tom Tromey <tromey@adacore.com>
10515 * ravenscar-thread.c: Fix some typos.
10517 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10518 Tom Tromey <tromey@adacore.com>
10520 * ada-lang.c (ada_exception_sal): Change addr_string to a
10522 (create_ada_exception_catchpoint): Update.
10524 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10525 Tom Tromey <tromey@adacore.com>
10527 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
10528 (bp_location_ops): Remove.
10529 (base_breakpoint_allocate_location): Update.
10530 (free_bp_location): Update.
10531 * ada-lang.c (class ada_catchpoint_location)
10532 <ada_catchpoint_location>: Remove ops parameter.
10533 (ada_catchpoint_location_dtor): Remove.
10534 (ada_catchpoint_location_ops): Remove.
10535 (allocate_location_exception): Update.
10536 * breakpoint.h (struct bp_location_ops): Remove.
10537 (class bp_location) <bp_location>: Remove bp_location_ops
10539 <~bp_location>: Add destructor.
10542 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10543 Pedro Alves <palves@redhat.com>
10545 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
10548 2019-02-14 David Michael <fedora.dm0@gmail.com>
10549 Samuel Thibault <samuel.thibault@gnu.org>
10550 Thomas Schwinge <thomas@codesourcery.com>
10552 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
10553 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
10555 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10557 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
10558 (check_empty): Use "const char *".
10560 * gnu-nat.c (gnu_nat_target::detach): Instead of
10561 'detach_inferior (pid)' call
10562 'detach_inferior (find_inferior_pid (pid))'.
10564 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
10565 'nat/fork-inferior.o'.
10566 * gnu-nat.c: #include "nat/fork-inferior.h".
10568 * gnu-nat.c (gnu_nat_target::detach): Instead of
10569 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
10570 * gnu-nat.h: #include "inf-child.h".
10571 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
10572 'i386_gnu_nat_target::fetch_registers'.
10573 (gnu_store_registers): Rename/move to
10574 'i386_gnu_nat_target::store_registers'.
10576 * config/i386/nm-i386gnu.h: Don't "#include" any files.
10577 * gnu-nat.h (mach_thread_info): New function.
10578 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
10580 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
10582 2019-02-14 Frederic Konrad <konrad@adacore.com>
10584 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
10586 2019-02-14 Joel Brobecker <brobecker@adacore.com>
10588 * windows-nat.c (windows_add_thread): Add new parameter
10589 "main_thread_p" with default value set to false. Update
10590 function documentation as well as all callers.
10591 (windows_delete_thread): Likewise.
10592 (fake_create_process): Update call to windows_add_thread.
10593 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
10594 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
10595 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
10596 call to windows_delete_thread.
10598 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
10600 * MAINTAINERS: Add Andrew Burgess as global maintainer.
10602 2019-02-12 John Baldwin <jhb@FreeBSD.org>
10604 * symfile.c (find_separate_debug_file): Use canonical path of
10605 sysroot with child_path instead of gdb_sysroot if it is valid.
10607 2019-02-12 John Baldwin <jhb@FreeBSD.org>
10609 * symfile.c (find_separate_debug_file): Use child_path to
10610 determine if an object file is under a sysroot.
10612 2019-02-12 John Baldwin <jhb@FreeBSD.org>
10614 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10615 unittests/child-path-selftests.c.
10616 * common/pathstuff.c (child_path): New function.
10617 * common/pathstuff.h (child_path): New prototype.
10618 * unittests/child-path-selftests.c: New file.
10620 2019-02-12 John Baldwin <jhb@FreeBSD.org>
10622 * symfile.c (find_separate_debug_file): Look for separate debug
10623 files in debug directories under the sysroot.
10625 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10627 * symtab.h (struct minimal_symbol data_p): New const method.
10628 (struct minimal_symbol text_p): Likewise.
10629 * symtab.c (output_source_filename): Use file name style
10630 to print file name.
10631 (print_symbol_info): Likewise.
10632 (print_msymbol_info): Use address style to print addresses.
10633 Use function name style to print executable text symbols.
10634 (expand_symtab_containing_pc): Use data_p.
10635 (find_pc_sect_compunit_symtab): Likewise.
10637 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10639 * breakpoint.c (describe_other_breakpoints): Use address style
10640 to print addresses.
10641 (say_where): Likewise.
10643 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10645 * ada-typeprint.c (print_func_type): Print function name
10646 style to print function name.
10647 * c-typeprint.c (c_print_type_1): Likewise.
10649 2019-02-11 Alan Hayward <alan.hayward@arm.com>
10651 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
10654 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10656 * c-exp.y (direct_abs_decl): Use emplace_back to record the
10659 2019-02-10 Joel Brobecker <brobecker@adacore.com>
10661 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
10662 TYPE_CODE_REF types.
10664 2019-02-08 Jim Wilson <jimw@sifive.com>
10666 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
10667 (riscv_linux_fregset): New.
10668 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
10670 2019-02-07 Tom Tromey <tom@tromey.com>
10672 * thread.c (thread_cancel_execution_command): Update.
10673 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
10675 (struct thread_fsm_ops): Remove.
10676 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
10677 (thread_fsm_should_stop, thread_fsm_return_value)
10678 (thread_fsm_set_finished, thread_fsm_finished_p)
10679 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
10681 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
10682 * infrun.c (clear_proceed_status_thread)
10683 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
10684 (print_stop_event): Update.
10685 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
10687 (step_command_fsm_ops): Remove.
10688 (new_step_command_fsm): Remove.
10690 (step_command_fsm::should_stop): Rename from
10691 step_command_fsm_should_stop.
10692 (step_command_fsm::clean_up): Rename from
10693 step_command_fsm_clean_up.
10694 (step_command_fsm::do_async_reply_reason): Rename from
10695 step_command_fsm_async_reply_reason.
10696 (struct until_next_fsm): Inherit from thread_fsm. Add
10698 (until_next_fsm_ops): Remove.
10699 (new_until_next_fsm): Remove.
10700 (until_next_fsm::should_stop): Rename from
10701 until_next_fsm_should_stop.
10702 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
10703 (until_next_fsm::do_async_reply_reason): Rename from
10704 until_next_fsm_async_reply_reason.
10705 (struct finish_command_fsm): Inherit from thread_fsm. Add
10706 constructor. Change type of breakpoint.
10707 (finish_command_fsm_ops): Remove.
10708 (new_finish_command_fsm): Remove.
10709 (finish_command_fsm::should_stop): Rename from
10710 finish_command_fsm_should_stop.
10711 (finish_command_fsm::clean_up): Rename from
10712 finish_command_fsm_clean_up.
10713 (finish_command_fsm::return_value): Rename from
10714 finish_command_fsm_return_value.
10715 (finish_command_fsm::do_async_reply_reason): Rename from
10716 finish_command_fsm_async_reply_reason.
10717 (finish_command): Update.
10718 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
10720 (call_thread_fsm_ops): Remove.
10721 (call_thread_fsm::call_thread_fsm): Rename from
10722 new_call_thread_fsm.
10723 (call_thread_fsm::should_stop): Rename from
10724 call_thread_fsm_should_stop.
10725 (call_thread_fsm::should_notify_stop): Rename from
10726 call_thread_fsm_should_notify_stop.
10727 (run_inferior_call, call_function_by_hand_dummy): Update.
10728 * cli/cli-interp.c (should_print_stop_to_console): Update.
10729 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
10730 Add constructor. Change type of location_breakpoint,
10732 (until_break_fsm_ops): Remove.
10733 (new_until_break_fsm): Remove.
10734 (until_break_fsm::should_stop): Rename from
10735 until_break_fsm_should_stop.
10736 (until_break_fsm::clean_up): Rename from
10737 until_break_fsm_clean_up.
10738 (until_break_fsm::do_async_reply_reason): Rename from
10739 until_break_fsm_async_reply_reason.
10740 (until_break_command): Update.
10741 * thread-fsm.c: Remove.
10742 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
10744 2019-02-07 Tom Tromey <tom@tromey.com>
10746 * yy-remap.h: Add include guard.
10747 * xtensa-tdep.h: Add include guard.
10748 * xcoffread.h: Rename include guard.
10749 * varobj-iter.h: Add include guard.
10750 * tui/tui.h: Rename include guard.
10751 * tui/tui-winsource.h: Rename include guard.
10752 * tui/tui-wingeneral.h: Rename include guard.
10753 * tui/tui-windata.h: Rename include guard.
10754 * tui/tui-win.h: Rename include guard.
10755 * tui/tui-stack.h: Rename include guard.
10756 * tui/tui-source.h: Rename include guard.
10757 * tui/tui-regs.h: Rename include guard.
10758 * tui/tui-out.h: Rename include guard.
10759 * tui/tui-layout.h: Rename include guard.
10760 * tui/tui-io.h: Rename include guard.
10761 * tui/tui-hooks.h: Rename include guard.
10762 * tui/tui-file.h: Rename include guard.
10763 * tui/tui-disasm.h: Rename include guard.
10764 * tui/tui-data.h: Rename include guard.
10765 * tui/tui-command.h: Rename include guard.
10766 * tic6x-tdep.h: Add include guard.
10767 * target/waitstatus.h: Rename include guard.
10768 * target/wait.h: Rename include guard.
10769 * target/target.h: Rename include guard.
10770 * target/resume.h: Rename include guard.
10771 * target-float.h: Rename include guard.
10772 * stabsread.h: Add include guard.
10773 * rs6000-tdep.h: Add include guard.
10774 * riscv-fbsd-tdep.h: Add include guard.
10775 * regformats/regdef.h: Rename include guard.
10776 * record.h: Rename include guard.
10777 * python/python.h: Rename include guard.
10778 * python/python-internal.h: Rename include guard.
10779 * python/py-stopevent.h: Rename include guard.
10780 * python/py-ref.h: Rename include guard.
10781 * python/py-record.h: Rename include guard.
10782 * python/py-record-full.h: Rename include guard.
10783 * python/py-record-btrace.h: Rename include guard.
10784 * python/py-instruction.h: Rename include guard.
10785 * python/py-events.h: Rename include guard.
10786 * python/py-event.h: Rename include guard.
10787 * procfs.h: Add include guard.
10788 * proc-utils.h: Add include guard.
10789 * p-lang.h: Add include guard.
10790 * or1k-tdep.h: Rename include guard.
10791 * observable.h: Rename include guard.
10792 * nto-tdep.h: Rename include guard.
10793 * nat/x86-linux.h: Rename include guard.
10794 * nat/x86-linux-dregs.h: Rename include guard.
10795 * nat/x86-gcc-cpuid.h: Add include guard.
10796 * nat/x86-dregs.h: Rename include guard.
10797 * nat/x86-cpuid.h: Rename include guard.
10798 * nat/ppc-linux.h: Rename include guard.
10799 * nat/mips-linux-watch.h: Rename include guard.
10800 * nat/linux-waitpid.h: Rename include guard.
10801 * nat/linux-ptrace.h: Rename include guard.
10802 * nat/linux-procfs.h: Rename include guard.
10803 * nat/linux-osdata.h: Rename include guard.
10804 * nat/linux-nat.h: Rename include guard.
10805 * nat/linux-namespaces.h: Rename include guard.
10806 * nat/linux-btrace.h: Rename include guard.
10807 * nat/glibc_thread_db.h: Rename include guard.
10808 * nat/gdb_thread_db.h: Rename include guard.
10809 * nat/gdb_ptrace.h: Rename include guard.
10810 * nat/fork-inferior.h: Rename include guard.
10811 * nat/amd64-linux-siginfo.h: Rename include guard.
10812 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
10813 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
10814 * nat/aarch64-linux.h: Rename include guard.
10815 * nat/aarch64-linux-hw-point.h: Rename include guard.
10816 * mn10300-tdep.h: Add include guard.
10817 * mips-linux-tdep.h: Add include guard.
10818 * mi/mi-parse.h: Rename include guard.
10819 * mi/mi-out.h: Rename include guard.
10820 * mi/mi-main.h: Rename include guard.
10821 * mi/mi-interp.h: Rename include guard.
10822 * mi/mi-getopt.h: Rename include guard.
10823 * mi/mi-console.h: Rename include guard.
10824 * mi/mi-common.h: Rename include guard.
10825 * mi/mi-cmds.h: Rename include guard.
10826 * mi/mi-cmd-break.h: Rename include guard.
10827 * m2-lang.h: Add include guard.
10828 * location.h: Rename include guard.
10829 * linux-record.h: Rename include guard.
10830 * linux-nat.h: Add include guard.
10831 * linux-fork.h: Add include guard.
10832 * i386-darwin-tdep.h: Rename include guard.
10833 * hppa-linux-offsets.h: Add include guard.
10834 * guile/guile.h: Rename include guard.
10835 * guile/guile-internal.h: Rename include guard.
10836 * gnu-nat.h: Rename include guard.
10837 * gdb-stabs.h: Rename include guard.
10838 * frv-tdep.h: Add include guard.
10839 * f-lang.h: Add include guard.
10840 * event-loop.h: Add include guard.
10841 * darwin-nat.h: Rename include guard.
10842 * cp-abi.h: Rename include guard.
10843 * config/sparc/nm-sol2.h: Rename include guard.
10844 * config/nm-nto.h: Rename include guard.
10845 * config/nm-linux.h: Add include guard.
10846 * config/i386/nm-i386gnu.h: Rename include guard.
10847 * config/djgpp/nl_types.h: Rename include guard.
10848 * config/djgpp/langinfo.h: Rename include guard.
10849 * compile/gcc-cp-plugin.h: Add include guard.
10850 * compile/gcc-c-plugin.h: Add include guard.
10851 * compile/compile.h: Rename include guard.
10852 * compile/compile-object-run.h: Rename include guard.
10853 * compile/compile-object-load.h: Rename include guard.
10854 * compile/compile-internal.h: Rename include guard.
10855 * compile/compile-cplus.h: Rename include guard.
10856 * compile/compile-c.h: Rename include guard.
10857 * common/xml-utils.h: Rename include guard.
10858 * common/x86-xstate.h: Rename include guard.
10859 * common/version.h: Rename include guard.
10860 * common/vec.h: Rename include guard.
10861 * common/tdesc.h: Rename include guard.
10862 * common/selftest.h: Rename include guard.
10863 * common/scoped_restore.h: Rename include guard.
10864 * common/scoped_mmap.h: Rename include guard.
10865 * common/scoped_fd.h: Rename include guard.
10866 * common/safe-iterator.h: Rename include guard.
10867 * common/run-time-clock.h: Rename include guard.
10868 * common/refcounted-object.h: Rename include guard.
10869 * common/queue.h: Rename include guard.
10870 * common/ptid.h: Rename include guard.
10871 * common/print-utils.h: Rename include guard.
10872 * common/preprocessor.h: Rename include guard.
10873 * common/pathstuff.h: Rename include guard.
10874 * common/observable.h: Rename include guard.
10875 * common/netstuff.h: Rename include guard.
10876 * common/job-control.h: Rename include guard.
10877 * common/host-defs.h: Rename include guard.
10878 * common/gdb_wait.h: Rename include guard.
10879 * common/gdb_vecs.h: Rename include guard.
10880 * common/gdb_unlinker.h: Rename include guard.
10881 * common/gdb_unique_ptr.h: Rename include guard.
10882 * common/gdb_tilde_expand.h: Rename include guard.
10883 * common/gdb_sys_time.h: Rename include guard.
10884 * common/gdb_string_view.h: Rename include guard.
10885 * common/gdb_splay_tree.h: Rename include guard.
10886 * common/gdb_setjmp.h: Rename include guard.
10887 * common/gdb_ref_ptr.h: Rename include guard.
10888 * common/gdb_optional.h: Rename include guard.
10889 * common/gdb_locale.h: Rename include guard.
10890 * common/gdb_assert.h: Rename include guard.
10891 * common/filtered-iterator.h: Rename include guard.
10892 * common/filestuff.h: Rename include guard.
10893 * common/fileio.h: Rename include guard.
10894 * common/environ.h: Rename include guard.
10895 * common/common-utils.h: Rename include guard.
10896 * common/common-types.h: Rename include guard.
10897 * common/common-regcache.h: Rename include guard.
10898 * common/common-inferior.h: Rename include guard.
10899 * common/common-gdbthread.h: Rename include guard.
10900 * common/common-exceptions.h: Rename include guard.
10901 * common/common-defs.h: Rename include guard.
10902 * common/common-debug.h: Rename include guard.
10903 * common/cleanups.h: Rename include guard.
10904 * common/buffer.h: Rename include guard.
10905 * common/btrace-common.h: Rename include guard.
10906 * common/break-common.h: Rename include guard.
10907 * cli/cli-utils.h: Rename include guard.
10908 * cli/cli-style.h: Rename include guard.
10909 * cli/cli-setshow.h: Rename include guard.
10910 * cli/cli-script.h: Rename include guard.
10911 * cli/cli-interp.h: Rename include guard.
10912 * cli/cli-decode.h: Rename include guard.
10913 * cli/cli-cmds.h: Rename include guard.
10914 * charset-list.h: Add include guard.
10915 * buildsym-legacy.h: Rename include guard.
10916 * bfin-tdep.h: Add include guard.
10917 * ax.h: Rename include guard.
10918 * arm-linux-tdep.h: Add include guard.
10919 * arm-fbsd-tdep.h: Add include guard.
10920 * arch/xtensa.h: Rename include guard.
10921 * arch/tic6x.h: Add include guard.
10922 * arch/i386.h: Add include guard.
10923 * arch/arm.h: Rename include guard.
10924 * arch/arm-linux.h: Rename include guard.
10925 * arch/arm-get-next-pcs.h: Rename include guard.
10926 * arch/amd64.h: Add include guard.
10927 * arch/aarch64-insn.h: Rename include guard.
10928 * arch-utils.h: Rename include guard.
10929 * annotate.h: Add include guard.
10930 * amd64-darwin-tdep.h: Rename include guard.
10931 * aarch64-linux-tdep.h: Add include guard.
10932 * aarch64-fbsd-tdep.h: Add include guard.
10933 * aarch32-linux-nat.h: Add include guard.
10935 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10937 * macrotab.c (macro_define_internal): New function that
10938 factorizes macro_define_object_internal and macro_define_function
10940 (macro_define_object_internal): Use macro_define_internal.
10941 (macro_define_function): Likewise.
10943 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10945 * macrocmd.c (extract_identifier): Return
10946 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
10949 2019-02-06 John Baldwin <jhb@FreeBSD.org>
10951 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
10953 2019-02-05 Tom Tromey <tom@tromey.com>
10955 * target.c (target_stack::unpush): Move assertion earlier.
10957 2019-01-30 Tom Tromey <tom@tromey.com>
10960 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
10961 (gdbpy_parse_and_eval): Likewise.
10962 * python/python-internal.h (gdbpy_allow_threads): New class.
10964 2019-01-28 John Baldwin <jhb@FreeBSD.org>
10966 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
10967 (aarch64_fbsd_fpregmap): Move earlier.
10968 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
10969 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
10970 instead of individual calls to trad_frame_set_reg_addr.
10971 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
10973 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
10974 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
10975 instead of individual calls to trad_frame_set_reg_addr.
10977 2019-01-28 Alan Hayward <alan.hayward@arm.com>
10979 * CONTRIBUTE: Replace contribution list with wiki link.
10981 2019-01-25 Tom Tromey <tom@tromey.com>
10983 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
10985 2019-01-25 Tom Tromey <tom@tromey.com>
10987 * xtensa-linux-nat.c: Fix common/ includes.
10988 * xml-support.h: Fix common/ includes.
10989 * xml-support.c: Fix common/ includes.
10990 * x86-linux-nat.c: Fix common/ includes.
10991 * windows-nat.c: Fix common/ includes.
10992 * varobj.h: Fix common/ includes.
10993 * varobj.c: Fix common/ includes.
10994 * value.c: Fix common/ includes.
10995 * valops.c: Fix common/ includes.
10996 * utils.c: Fix common/ includes.
10997 * unittests/xml-utils-selftests.c: Fix common/ includes.
10998 * unittests/utils-selftests.c: Fix common/ includes.
10999 * unittests/unpack-selftests.c: Fix common/ includes.
11000 * unittests/tracepoint-selftests.c: Fix common/ includes.
11001 * unittests/style-selftests.c: Fix common/ includes.
11002 * unittests/string_view-selftests.c: Fix common/ includes.
11003 * unittests/scoped_restore-selftests.c: Fix common/ includes.
11004 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
11005 * unittests/scoped_fd-selftests.c: Fix common/ includes.
11006 * unittests/rsp-low-selftests.c: Fix common/ includes.
11007 * unittests/parse-connection-spec-selftests.c: Fix common/
11009 * unittests/optional-selftests.c: Fix common/ includes.
11010 * unittests/offset-type-selftests.c: Fix common/ includes.
11011 * unittests/observable-selftests.c: Fix common/ includes.
11012 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
11013 * unittests/memrange-selftests.c: Fix common/ includes.
11014 * unittests/memory-map-selftests.c: Fix common/ includes.
11015 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
11016 * unittests/function-view-selftests.c: Fix common/ includes.
11017 * unittests/environ-selftests.c: Fix common/ includes.
11018 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
11019 * unittests/common-utils-selftests.c: Fix common/ includes.
11020 * unittests/cli-utils-selftests.c: Fix common/ includes.
11021 * unittests/array-view-selftests.c: Fix common/ includes.
11022 * ui-file.c: Fix common/ includes.
11023 * tui/tui-io.c: Fix common/ includes.
11024 * tracepoint.h: Fix common/ includes.
11025 * tracepoint.c: Fix common/ includes.
11026 * tracefile-tfile.c: Fix common/ includes.
11027 * top.h: Fix common/ includes.
11028 * top.c: Fix common/ includes.
11029 * thread.c: Fix common/ includes.
11030 * target/waitstatus.h: Fix common/ includes.
11031 * target/waitstatus.c: Fix common/ includes.
11032 * target.h: Fix common/ includes.
11033 * target.c: Fix common/ includes.
11034 * target-memory.c: Fix common/ includes.
11035 * target-descriptions.c: Fix common/ includes.
11036 * symtab.h: Fix common/ includes.
11037 * symfile.c: Fix common/ includes.
11038 * stap-probe.c: Fix common/ includes.
11039 * spu-linux-nat.c: Fix common/ includes.
11040 * sparc-nat.c: Fix common/ includes.
11041 * source.c: Fix common/ includes.
11042 * solib.c: Fix common/ includes.
11043 * solib-target.c: Fix common/ includes.
11044 * ser-unix.c: Fix common/ includes.
11045 * ser-tcp.c: Fix common/ includes.
11046 * ser-pipe.c: Fix common/ includes.
11047 * ser-base.c: Fix common/ includes.
11048 * selftest-arch.c: Fix common/ includes.
11049 * s12z-tdep.c: Fix common/ includes.
11050 * rust-exp.y: Fix common/ includes.
11051 * rs6000-aix-tdep.c: Fix common/ includes.
11052 * riscv-tdep.c: Fix common/ includes.
11053 * remote.c: Fix common/ includes.
11054 * remote-notif.h: Fix common/ includes.
11055 * remote-fileio.h: Fix common/ includes.
11056 * remote-fileio.c: Fix common/ includes.
11057 * regcache.h: Fix common/ includes.
11058 * regcache.c: Fix common/ includes.
11059 * record-btrace.c: Fix common/ includes.
11060 * python/python.c: Fix common/ includes.
11061 * python/py-type.c: Fix common/ includes.
11062 * python/py-inferior.c: Fix common/ includes.
11063 * progspace.h: Fix common/ includes.
11064 * producer.c: Fix common/ includes.
11065 * procfs.c: Fix common/ includes.
11066 * proc-api.c: Fix common/ includes.
11067 * printcmd.c: Fix common/ includes.
11068 * ppc-linux-nat.c: Fix common/ includes.
11069 * parser-defs.h: Fix common/ includes.
11070 * osdata.c: Fix common/ includes.
11071 * obsd-nat.c: Fix common/ includes.
11072 * nat/x86-linux.c: Fix common/ includes.
11073 * nat/x86-linux-dregs.c: Fix common/ includes.
11074 * nat/x86-dregs.h: Fix common/ includes.
11075 * nat/x86-dregs.c: Fix common/ includes.
11076 * nat/ppc-linux.c: Fix common/ includes.
11077 * nat/mips-linux-watch.h: Fix common/ includes.
11078 * nat/mips-linux-watch.c: Fix common/ includes.
11079 * nat/linux-waitpid.c: Fix common/ includes.
11080 * nat/linux-ptrace.h: Fix common/ includes.
11081 * nat/linux-ptrace.c: Fix common/ includes.
11082 * nat/linux-procfs.c: Fix common/ includes.
11083 * nat/linux-personality.c: Fix common/ includes.
11084 * nat/linux-osdata.c: Fix common/ includes.
11085 * nat/linux-namespaces.c: Fix common/ includes.
11086 * nat/linux-btrace.h: Fix common/ includes.
11087 * nat/linux-btrace.c: Fix common/ includes.
11088 * nat/fork-inferior.c: Fix common/ includes.
11089 * nat/amd64-linux-siginfo.c: Fix common/ includes.
11090 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
11091 * nat/aarch64-linux.c: Fix common/ includes.
11092 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
11093 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
11094 * namespace.h: Fix common/ includes.
11095 * mips-linux-tdep.c: Fix common/ includes.
11096 * minsyms.c: Fix common/ includes.
11097 * mi/mi-parse.h: Fix common/ includes.
11098 * mi/mi-main.c: Fix common/ includes.
11099 * mi/mi-cmd-env.c: Fix common/ includes.
11100 * memrange.h: Fix common/ includes.
11101 * memattr.c: Fix common/ includes.
11102 * maint.h: Fix common/ includes.
11103 * maint.c: Fix common/ includes.
11104 * main.c: Fix common/ includes.
11105 * machoread.c: Fix common/ includes.
11106 * location.c: Fix common/ includes.
11107 * linux-thread-db.c: Fix common/ includes.
11108 * linux-nat.c: Fix common/ includes.
11109 * linux-fork.c: Fix common/ includes.
11110 * inline-frame.c: Fix common/ includes.
11111 * infrun.c: Fix common/ includes.
11112 * inflow.c: Fix common/ includes.
11113 * inferior.h: Fix common/ includes.
11114 * inferior.c: Fix common/ includes.
11115 * infcmd.c: Fix common/ includes.
11116 * inf-ptrace.c: Fix common/ includes.
11117 * inf-child.c: Fix common/ includes.
11118 * ia64-linux-nat.c: Fix common/ includes.
11119 * i387-tdep.c: Fix common/ includes.
11120 * i386-tdep.c: Fix common/ includes.
11121 * i386-linux-tdep.c: Fix common/ includes.
11122 * i386-linux-nat.c: Fix common/ includes.
11123 * i386-go32-tdep.c: Fix common/ includes.
11124 * i386-fbsd-tdep.c: Fix common/ includes.
11125 * i386-fbsd-nat.c: Fix common/ includes.
11126 * guile/scm-type.c: Fix common/ includes.
11127 * guile/guile.c: Fix common/ includes.
11128 * go32-nat.c: Fix common/ includes.
11129 * gnu-nat.c: Fix common/ includes.
11130 * gdbthread.h: Fix common/ includes.
11131 * gdbarch-selftests.c: Fix common/ includes.
11132 * gdb_usleep.c: Fix common/ includes.
11133 * gdb_select.h: Fix common/ includes.
11134 * gdb_bfd.c: Fix common/ includes.
11135 * gcore.c: Fix common/ includes.
11136 * fork-child.c: Fix common/ includes.
11137 * findvar.c: Fix common/ includes.
11138 * fbsd-nat.c: Fix common/ includes.
11139 * event-top.c: Fix common/ includes.
11140 * event-loop.c: Fix common/ includes.
11141 * dwarf2read.c: Fix common/ includes.
11142 * dwarf2loc.c: Fix common/ includes.
11143 * dwarf2-frame.c: Fix common/ includes.
11144 * dwarf-index-cache.c: Fix common/ includes.
11145 * dtrace-probe.c: Fix common/ includes.
11146 * disasm-selftests.c: Fix common/ includes.
11147 * defs.h: Fix common/ includes.
11148 * csky-tdep.c: Fix common/ includes.
11149 * cp-valprint.c: Fix common/ includes.
11150 * cp-support.h: Fix common/ includes.
11151 * cp-support.c: Fix common/ includes.
11152 * corelow.c: Fix common/ includes.
11153 * completer.h: Fix common/ includes.
11154 * completer.c: Fix common/ includes.
11155 * compile/compile.c: Fix common/ includes.
11156 * compile/compile-loc2c.c: Fix common/ includes.
11157 * compile/compile-cplus-types.c: Fix common/ includes.
11158 * compile/compile-cplus-symbols.c: Fix common/ includes.
11159 * command.h: Fix common/ includes.
11160 * cli/cli-dump.c: Fix common/ includes.
11161 * cli/cli-cmds.c: Fix common/ includes.
11162 * charset.c: Fix common/ includes.
11163 * build-id.c: Fix common/ includes.
11164 * btrace.h: Fix common/ includes.
11165 * btrace.c: Fix common/ includes.
11166 * breakpoint.h: Fix common/ includes.
11167 * breakpoint.c: Fix common/ includes.
11169 (enum agent_op): Fix common/ includes.
11170 * ax-general.c (struct aop_map): Fix common/ includes.
11171 * ax-gdb.c: Fix common/ includes.
11172 * auxv.c: Fix common/ includes.
11173 * auto-load.c: Fix common/ includes.
11174 * arm-tdep.c: Fix common/ includes.
11175 * arch/riscv.c: Fix common/ includes.
11176 * arch/ppc-linux-common.c: Fix common/ includes.
11177 * arch/i386.c: Fix common/ includes.
11178 * arch/arm.c: Fix common/ includes.
11179 * arch/arm-linux.c: Fix common/ includes.
11180 * arch/arm-get-next-pcs.c: Fix common/ includes.
11181 * arch/amd64.c: Fix common/ includes.
11182 * arch/aarch64.c: Fix common/ includes.
11183 * arch/aarch64-insn.c: Fix common/ includes.
11184 * arch-utils.c: Fix common/ includes.
11185 * amd64-windows-tdep.c: Fix common/ includes.
11186 * amd64-tdep.c: Fix common/ includes.
11187 * amd64-sol2-tdep.c: Fix common/ includes.
11188 * amd64-obsd-tdep.c: Fix common/ includes.
11189 * amd64-nbsd-tdep.c: Fix common/ includes.
11190 * amd64-linux-tdep.c: Fix common/ includes.
11191 * amd64-linux-nat.c: Fix common/ includes.
11192 * amd64-fbsd-tdep.c: Fix common/ includes.
11193 * amd64-fbsd-nat.c: Fix common/ includes.
11194 * amd64-dicos-tdep.c: Fix common/ includes.
11195 * amd64-darwin-tdep.c: Fix common/ includes.
11196 * agent.c: Fix common/ includes.
11197 * ada-lang.h: Fix common/ includes.
11198 * ada-lang.c: Fix common/ includes.
11199 * aarch64-tdep.c: Fix common/ includes.
11201 2019-01-25 Tom Tromey <tom@tromey.com>
11203 * common/create-version.sh: Use common/version.h.
11205 2019-01-24 Pedro Alves <palves@redhat.com>
11207 * infrun.c (signal_stop, signal_print, signal_program)
11208 (signal_catch, signal_pass): Now arrays instead of pointers.
11209 (update_signals_program_target, do_target_resume)
11210 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
11211 * linux-nat.c (linux_nat_target::pass_signals)
11212 (linux_nat_target::create_inferior, linux_nat_target::attach):
11214 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
11215 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
11216 * procfs.c (procfs_target::pass_signals): Adjust.
11217 * record-full.c (record_full_target::resume): Adjust.
11218 * remote.c (remote_target::pass_signals)
11219 (remote_target::program_signals): Adjust.
11220 * target-debug.h (target_debug_print_signals): Now takes a
11221 gdb::array_view as parameter. Adjust.
11222 * target.h (target_ops) <pass_signals, program_signals>: Replace
11223 pointer and length parameters with gdb::array_view.
11224 (target_pass_signals, target_program_signals): Likewise.
11225 * target-delegates.c: Regenerate.
11227 2019-01-24 Pedro Alves <palves@redhat.com>
11229 * common/forward-scope-exit.h
11230 (forward_scope_exit::forward_scope_exit): Pass arguments to
11231 m_bind_function directly, instead of creating a std::bind and
11234 2019-01-24 Alan Hayward <alan.hayward@arm.com>
11236 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
11237 for static members.
11238 (pass_in_v_vfp_candidate): Likewise.
11240 2019-01-23 Tom Tromey <tom@tromey.com>
11241 Pedro Alves <palves@redhat.com>
11243 * regcache.c (class regcache_invalidator): Remove.
11244 (regcache::raw_write): Use make_scope_exit.
11246 2019-01-23 Tom Tromey <tom@tromey.com>
11248 * ui-out.h (class ui_out_emit_type): Update comment.
11250 2019-01-23 Tom Tromey <tom@tromey.com>
11252 * infrun.c (fetch_inferior_event): Update comment.
11254 2019-01-23 Tom Tromey <tom@tromey.com>
11255 Pedro Alves <palves@redhat.com>
11257 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
11259 (fetch_inferior_event): Use SCOPE_EXIT.
11262 2019-01-23 Tom Tromey <tom@tromey.com>
11263 Pedro Alves <palves@redhat.com>
11265 * infrun.c (disable_thread_events): Delete.
11266 (stop_all_threads): Use SCOPE_EXIT.
11268 2019-01-23 Tom Tromey <tom@tromey.com>
11269 Pedro Alves <palves@redhat.com>
11271 * symfile.c: Include forward-scope-exit.h.
11272 (clear_symtab_users_cleanup): Replace forward declaration with
11273 a FORWARD_SCOPE_EXIT.
11274 (syms_from_objfile_1): Use the forward_scope_exit and
11275 gdb::optional instead of cleanup_function.
11276 (reread_symbols): Use the forward_scope_exit instead of
11278 (clear_symtab_users_cleanup): Remove function.
11280 2019-01-23 Tom Tromey <tom@tromey.com>
11281 Pedro Alves <palves@redhat.com>
11283 * linux-nat.c: Include scope-exit.h.
11284 (cleanup_target_stop): Remove.
11285 (linux_nat_target::static_tracepoint_markers_by_strid): Use
11288 2019-01-23 Tom Tromey <tom@tromey.com>
11289 Pedro Alves <palves@redhat.com>
11291 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
11292 (call_function_by_hand_dummy): Use SCOPE_EXIT.
11294 2019-01-23 Tom Tromey <tom@tromey.com>
11295 Andrew Burgess <andrew.burgess@embecosm.com>
11296 Pedro Alves <palves@redhat.com>
11298 * infrun.c (fetch_inferior_event): Use scope_exit.
11299 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
11300 * top.c (execute_command): Use scope_exit.
11301 * breakpoint.c (bpstat_do_actions): Use scope_exit.
11302 * utils.c (do_bpstat_clear_actions_cleanup)
11303 (make_bpstat_clear_actions_cleanup): Remove.
11305 2019-01-23 Tom Tromey <tom@tromey.com>
11306 Pedro Alves <palves@redhat.com>
11308 * infrun.c: Include "common/scope-exit.h"
11309 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
11310 (wait_for_inferior): Use SCOPE_EXIT.
11311 (fetch_inferior_event): Use scope_exit.
11313 2019-01-23 Tom Tromey <tom@tromey.com>
11314 Pedro Alves <palves@redhat.com>
11316 * breakpoint.c (create_breakpoint): Remove cleanup.
11318 2019-01-23 Tom Tromey <tom@tromey.com>
11319 Andrew Burgess <andrew.burgess@embecosm.com>
11320 Pedro Alves <palves@redhat.com>
11322 2019-01-23 Pedro Alves <palves@redhat.com>
11324 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
11326 2019-01-23 Pedro Alves <palves@redhat.com>
11327 Andrew Burgess <andrew.burgess@embecosm.com>
11329 * gdbthread.h: Include "common/forward-scope-exit.h".
11330 (scoped_finish_thread_state): Redefine custom class in terms of
11331 forward_scope_exit.
11333 2019-01-23 Pedro Alves <palves@redhat.com>
11334 Andrew Burgess <andrew.burgess@embecosm.com>
11336 * common/forward-scope-exit.h: New file.
11338 2019-01-23 Pedro Alves <palves@redhat.com>
11339 Andrew Burgess <andrew.burgess@embecosm.com>
11340 Tom Tromey <tom@tromey.com>
11342 * common/scope-exit.h: New file.
11344 2019-01-23 Pedro Alves <palves@redhat.com>
11346 * common/preprocessor.h (ESC): Rename to ...
11347 (ESC_PARENS): ... this.
11348 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
11349 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
11351 2019-01-23 Tom Tromey <tom@tromey.com>
11353 * language.h (class scoped_switch_to_sym_language_if_auto):
11354 Initialize m_lang in both cases.
11356 2019-01-23 Alan Hayward <alan.hayward@arm.com>
11358 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
11361 2019-01-22 Tom Tromey <tom@tromey.com>
11363 * corelow.c: Do not include sys/file.h.
11365 2019-01-22 Tom Tromey <tom@tromey.com>
11367 * tui/tui-wingeneral.h: Include gdb_curses.h.
11369 2019-01-22 Tom Tromey <tom@tromey.com>
11371 * source-cache.h (class source_cache) <get_source_lines,
11372 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
11374 2019-01-22 Tom Tromey <tom@tromey.com>
11376 * remote-fileio.h (struct remote_target): Declare.
11378 2019-01-22 Tom Tromey <tom@tromey.com>
11380 * python/py-arch.c: Do not include py-ref.h.
11381 * python/py-bpevent.c: Do not include py-ref.h.
11382 * python/py-cmd.c: Do not include py-ref.h.
11383 * python/py-continueevent.c: Do not include py-ref.h.
11384 * python/py-event.h: Do not include py-ref.h.
11385 * python/py-evtregistry.c: Do not include py-ref.h.
11386 * python/py-finishbreakpoint.c: Do not include py-ref.h.
11387 * python/py-frame.c: Do not include py-ref.h.
11388 * python/py-framefilter.c: Do not include py-ref.h.
11389 * python/py-function.c: Do not include py-ref.h.
11390 * python/py-infevents.c: Do not include py-ref.h.
11391 * python/py-linetable.c: Do not include py-ref.h.
11392 * python/py-objfile.c: Do not include py-ref.h.
11393 * python/py-param.c: Do not include py-ref.h.
11394 * python/py-prettyprint.c: Do not include py-ref.h.
11395 * python/py-progspace.c: Do not include py-ref.h.
11396 * python/py-symbol.c: Do not include py-ref.h.
11397 * python/py-symtab.c: Do not include py-ref.h.
11398 * python/py-type.c: Do not include py-ref.h.
11399 * python/py-unwind.c: Do not include py-ref.h.
11400 * python/py-utils.c: Do not include py-ref.h.
11401 * python/py-value.c: Do not include py-ref.h.
11402 * python/py-varobj.c: Do not include py-ref.h.
11403 * python/py-xmethods.c: Do not include py-ref.h.
11404 * python/python.c: Do not include py-ref.h.
11405 * varobj.c: Do not include py-ref.h.
11407 2019-01-22 Tom Tromey <tom@tromey.com>
11409 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
11410 keyword for bcache.
11412 2019-01-22 Tom Tromey <tom@tromey.com>
11414 * compile/compile-cplus-types.c: Remove a comment by #include.
11416 2019-01-22 Tom Tromey <tom@tromey.com>
11418 * compile/gcc-c-plugin.h: Include compile-internal.h.
11420 2019-01-22 Tom Tromey <tom@tromey.com>
11422 * stabsread.c (EXTERN): Do not define.
11423 (symnum, next_symbol_text_func, processing_gcc_compilation)
11424 (within_function, global_sym_chain, global_stabs)
11425 (previous_stab_code, this_object_header_files)
11426 (n_this_object_header_files)
11427 (n_allocated_this_object_header_files): Define.
11428 * stabsread.h (EXTERN): Never define. Use "extern".
11430 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11432 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
11435 2019-01-21 Tom Tromey <tom@tromey.com>
11437 * ui-out.c: Fix includes.
11438 * tui/tui-source.c: Fix includes.
11439 * target.c: Fix includes.
11440 * remote.c: Fix includes.
11441 * regcache.c: Fix includes.
11442 * python/py-block.c: Fix includes.
11443 * printcmd.c: Fix includes.
11444 * or1k-tdep.c: Fix includes.
11445 * mi/mi-main.c: Fix includes.
11446 * m32r-tdep.c: Fix includes.
11447 * csky-tdep.c: Fix includes.
11448 * compile/compile-cplus-types.c: Fix includes.
11449 * cli/cli-interp.c: Fix includes.
11451 2019-01-21 Alan Hayward <alan.hayward@arm.com>
11453 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
11456 2019-01-16 Tom Tromey <tom@tromey.com>
11458 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
11460 (struct objfile) <msymbols_range>: Move from top level.
11461 <msymbols>: New method.
11462 (class objfile_msymbols): Remove.
11463 * symtab.c (default_collect_symbol_completion_matches_break_on):
11465 * symmisc.c (dump_msymbols): Update.
11466 * stabsread.c (scan_file_globals): Update.
11467 * objc-lang.c (info_selectors_command, info_classes_command)
11468 (find_methods): Update.
11469 * minsyms.c (find_solib_trampoline_target): Update.
11470 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
11471 * coffread.c (coff_symfile_read): Update.
11472 * ada-lang.c (ada_lookup_simple_minsym)
11473 (ada_collect_symbol_completion_matches): Update.
11475 2019-01-16 Tom Tromey <tom@tromey.com>
11477 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
11478 type. Remove no-argument constructor.
11479 <iterator::operator++>: Simplify.
11481 <end>: Use minimal_symbol_count.
11483 2019-01-16 Tom Tromey <tom@tromey.com>
11485 * objfiles.h (struct objfile) <psymtabs>: New method.
11486 (class objfile_psymtabs): Remove.
11487 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
11489 <range>: New method.
11490 (require_partial_symbols): Change return type.
11491 * psymtab.c (require_partial_symbols)
11492 (psym_expand_symtabs_matching): Update.
11493 * mdebugread.c (parse_partial_symbols): Update.
11494 * dbxread.c (dbx_end_psymtab): Update.
11496 2019-01-15 Tom Tromey <tom@tromey.com>
11498 * symtab.c (lookup_objfile_from_block)
11499 (lookup_symbol_in_objfile_symtabs)
11500 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
11501 (find_line_symtab, info_sources_command)
11502 (default_collect_symbol_completion_matches_break_on)
11503 (make_source_files_completion_list): Update.
11504 * symmisc.c (print_objfile_statistics, dump_objfile)
11505 (maintenance_print_symbols, maintenance_info_symtabs)
11506 (maintenance_check_symtabs, maintenance_info_line_tables):
11508 * source.c (select_source_symtab)
11509 (forget_cached_source_info_for_objfile): Update.
11510 * objfiles.h (class objfile_compunits): Remove.
11511 (struct objfile) <compunits_range>: New typedef.
11512 (compunits): New method.
11513 * objfiles.c (objfile_relocate1): Update.
11514 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11515 * maint.c (count_symtabs_and_blocks): Update.
11516 * linespec.c (iterate_over_all_matching_symtabs): Update.
11517 * cp-support.c (add_symbol_overload_list_qualified): Update.
11518 * coffread.c (coff_symtab_read): Update.
11519 * ada-lang.c (add_nonlocal_symbols)
11520 (ada_collect_symbol_completion_matches)
11521 (ada_add_global_exceptions): Update.
11523 2019-01-15 Tom Tromey <tom@tromey.com>
11525 * progspace.h (program_space) <objfiles_safe_range>: New
11527 <objfiles_safe>: New method.
11528 * objfiles.h (class all_objfiles_safe): Remove.
11529 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
11530 * jit.c (jit_inferior_exit_hook): Update.
11532 2019-01-17 Tom Tromey <tom@tromey.com>
11534 * progspace.h (program_space) <objfiles_range>: New typedef.
11535 <objfiles>: New method.
11536 <objfiles_head>: Rename from objfiles.
11537 (object_files): Update.
11538 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
11539 * guile/scm-pretty-print.c
11540 (ppscm_find_pretty_printer_from_objfiles): Update.
11541 * guile/scm-objfile.c (gdbscm_objfiles): Update.
11542 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
11544 * python/py-progspace.c (pspy_get_objfiles): Update.
11545 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
11547 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
11548 (objfpy_lookup_objfile_by_build_id): Update.
11549 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11550 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
11552 * symtab.c (iterate_over_symtabs, matching_obj_sections)
11553 (expand_symtab_containing_pc, lookup_objfile_from_block)
11554 (lookup_static_symbol, basic_lookup_transparent_type)
11555 (find_pc_sect_compunit_symtab, find_symbol_at_address)
11556 (find_line_symtab, info_sources_command)
11557 (default_collect_symbol_completion_matches_break_on)
11558 (make_source_files_completion_list, find_main_name): Update.
11559 * symmisc.c (print_symbol_bcache_statistics)
11560 (print_objfile_statistics, maintenance_print_symbols)
11561 (maintenance_print_msymbols, maintenance_print_objfiles)
11562 (maintenance_info_symtabs, maintenance_check_symtabs)
11563 (maintenance_expand_symtabs, maintenance_info_line_tables):
11565 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
11566 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
11567 (map_overlay_command, unmap_overlay_command)
11568 (simple_overlay_update, expand_symtabs_matching)
11569 (map_symbol_filenames): Update.
11570 * symfile-debug.c (set_debug_symfile): Update.
11571 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
11573 * source.c (select_source_symtab, forget_cached_source_info):
11575 * solib.c (solib_read_symbols): Update.
11576 * solib-spu.c (append_ocl_sos): Update.
11577 * psymtab.c (maintenance_print_psymbols)
11578 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
11579 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
11580 * printcmd.c (info_symbol_command): Update.
11581 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
11583 * objfiles.h (class all_objfiles): Remove.
11584 * objfiles.c (have_partial_symbols, have_full_symbols)
11585 (have_minimal_symbols, qsort_cmp, update_section_map)
11586 (shared_objfile_contains_address_p)
11587 (default_iterate_over_objfiles_in_search_order): Update.
11588 * objc-lang.c (info_selectors_command, info_classes_command)
11589 (find_methods): Update.
11590 * minsyms.c (find_solib_trampoline_target): Update.
11591 * maint.c (maintenance_info_sections)
11592 (maintenance_translate_address, count_symtabs_and_blocks):
11594 * main.c (captured_main_1): Update.
11595 * linux-thread-db.c (try_thread_db_load_from_pdir)
11596 (has_libpthread): Update.
11597 * linespec.c (iterate_over_all_matching_symtabs)
11598 (search_minsyms_for_name): Update.
11599 * jit.c (jit_find_objf_with_entry_addr): Update.
11600 * hppa-tdep.c (find_unwind_entry)
11601 (hppa_lookup_stub_minimal_symbol): Update.
11602 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
11604 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
11605 (elf_gnu_ifunc_resolve_by_got): Update.
11606 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
11607 * dwarf-index-write.c (save_gdb_index_command): Update.
11608 * cp-support.c (add_symbol_overload_list_qualified): Update.
11609 * breakpoint.c (create_overlay_event_breakpoint)
11610 (create_longjmp_master_breakpoint)
11611 (create_std_terminate_master_breakpoint)
11612 (create_exception_master_breakpoint): Update.
11613 * blockframe.c (find_pc_partial_function): Update.
11614 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
11615 (ada_collect_symbol_completion_matches)
11616 (ada_add_global_exceptions): Update.
11618 2019-01-17 Tom Tromey <tom@tromey.com>
11620 * solib-target.c (lm_info_target_p): Remove typedef. Don't
11622 (solib_target_parse_libraries): Change return type.
11623 (library_list_start_segment, library_list_start_section)
11624 (library_list_end_library, library_list_start_library); Update.
11625 (solib_target_free_library_list): Remove.
11626 (solib_target_parse_libraries): Remove cleanup. Change return
11628 (solib_target_current_sos): Update.
11630 2019-01-17 Tom Tromey <tromey@bapiya>
11632 * valprint.c: Replace "the the" with "the".
11633 * symtab.c: Replace "the the" with "the".
11634 * solib.c: Replace "the the" with "the".
11635 * solib-dsbt.c: Replace "the the" with "the".
11636 * linespec.c: Replace "the the" with "the".
11637 * dwarf2loc.h: Replace "the the" with "the".
11638 * amd64-windows-tdep.c: Replace "the the" with "the".
11639 * aarch64-tdep.c: Replace "the the" with "the".
11641 2019-01-16 Keith Seitz <keiths@redhat.com>
11644 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
11645 <builder>: Rename to ..
11646 <m_builder>: ... this and make private.
11647 (dwarf2_cu::get_builder): New method. Change all users of
11648 `builder' to use this method.
11649 (dwarf2_start_symtab): Move to ...
11650 (dwarf2_cu::start_symtab): ... here. Update all callers
11651 (setup_type_unit_groups): Move to ...
11652 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
11654 (dwarf2_cu::reset_builder): New method.
11655 (process_full_compunit, process_full_type_unit): Use
11656 dwarf2_cu::reset_builder.
11657 (follow_die_offset): Record the ancestor CU if it is different
11658 from the followed DIE's CU.
11659 (follow_die_sig_1): Likewise.
11661 2019-01-15 Tom Tromey <tom@tromey.com>
11663 * remote.c (class remote_state) <buf>: Now a char_vector.
11664 <buf_size>: Remove.
11665 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
11667 (remote_target::getpkt_or_notif_sane_1)
11668 (remote_target::getpkt_sane)
11669 (remote_target::getpkt_or_notif_sane): Likewise.
11670 (class remote_target) <putpkt>: New overload.
11671 (remote_target::read_frame): Change type of "buf_p". Remove
11672 sizeof_p parameter.
11673 (packet_ok): New overload.
11674 (packet_check_result): New overload.
11677 2019-01-14 Tom Tromey <tom@tromey.com>
11679 * remote-notif.c (handle_notification, remote_notif_ack)
11680 (remote_notif_parse): Make "buf" const.
11681 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
11683 (remote_notif_parse, remote_notif_ack, handle_notification):
11685 * remote.c (remote_notif_stop_parse): Make "buf" const.
11686 (remote_target::remote_parse_stop_reply): Make "buf" const.
11687 (remote_notif_stop_ack): Make "buf" const.
11689 2019-01-14 Tom Tromey <tom@tromey.com>
11691 * remote.c (remote_console_output): Make parameter const.
11693 2019-01-14 Tom Tromey <tom@tromey.com>
11695 * target-debug.h (target_debug_print_signals): Constify.
11696 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
11697 * procfs.c (procfs_target::pass_signals): Update.
11698 * linux-nat.c (linux_nat_target::pass_signals): Update.
11699 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
11700 * target-delegates.c: Rebuild.
11701 * remote.c (remote_target::program_signals): Update.
11702 (remote_target::pass_signals): Update.
11703 * target.c (target_pass_signals): Constify argument.
11704 (target_program_signals): Likewise.
11705 * target.h (struct target_ops) <pass_signals, program_signals>:
11707 (target_pass_signals, target_program_signals): Constify argument.
11709 2019-01-14 Tom Tromey <tom@tromey.com>
11712 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
11714 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11716 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
11718 * rs6000-tdep.c: Include reggroups.h.
11719 (IS_V_ALIAS_PSEUDOREG): Define.
11720 (rs6000_register_name): Return names for the "vX" aliases.
11721 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
11722 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
11723 aliases. Call default_register_reggroup_p for all other
11725 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
11727 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
11728 Handle "vX" aliases.
11729 (v_alias_pseudo_register_collect): New function.
11730 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
11731 (rs6000_gdbarch_init): Initialize "vX" aliases as
11732 pseudo-registers. Restore registration of
11733 rs6000_pseudo_register_reggroup_p with
11734 set_tdesc_pseudo_register_reggroup_p.
11736 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
11738 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
11739 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
11740 set_gdbarch_num_pseudo_regs.
11742 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11744 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
11745 Remove arg prefixname, add do_set and do_show.
11746 Add member functions set_list and show_list.
11747 * cli/cli-style.c (class cli_style_option): Update accordingly.
11748 (style_set_list): Move to file scope.
11749 (style_show_list): Likewise.
11750 (set_style): Call help_list.
11751 (show_style): Call cmd_show_list.
11752 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
11753 Update to use the new macro.
11755 2019-10-12 Joel Brobecker <brobecker@adacore.com>
11757 * ada-lang.c (_initialize_ada_language): Expand the help text
11758 for the "catch exception" command.
11760 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11762 * symtab.c (matching_obj_sections): Initialize obj,
11763 declare it closer to its usage.
11765 2019-01-10 Tom Tromey <tom@tromey.com>
11767 * thread-iter.h (inf_threads_iterator): Use next_iterator.
11768 (basic_inf_threads_range): Remove.
11769 (inf_threads_range, inf_non_exited_threads_range)
11770 (safe_inf_threads_range): Use next_adapter.
11772 2019-01-10 Keith Seitz <keiths@redhat.com>
11776 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
11777 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
11779 2019-01-10 Keith Seitz <keiths@redhat.com>
11783 * dictionary.c (pending_to_vector): Remove.
11784 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
11785 Remove _1 suffix, replacing functions of the same name. Update
11787 (dict_create_hashed, dict_create_hashed_expandable)
11788 (dict_create_linear, dict_create_linear_expandable, dict_free)
11789 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
11790 Make functions static.
11792 2019-01-10 Keith Seitz <keiths@redhat.com>
11796 * dictionary.h (struct dictionary): Replace declaration with
11798 (dict_create_hashed, dict_create_hashed_expandable)
11799 (dict_create_linear, dict_create_linear_expandable)
11800 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
11801 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
11802 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
11803 taking multidictionary argument.
11804 [ALL_DICT_SYMBOLS]: Update for multidictionary.
11805 * block.h (struct block) <dict>: Change to multidictionary
11806 and rename `multidict'.
11807 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
11808 symmisc.c: Update all dictionary references to multidictionary.
11810 2019-01-10 Keith Seitz <keiths@redhat.com>
11814 * dictionary.c: Include unordered_map.
11815 (pending_to_vector): New function.
11816 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
11817 Rewrite the non-"_1" functions to take vector instead
11819 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
11820 "new" _1 versions of the same name.
11821 (multidictionary): Define.
11822 (std::hash<enum language): New definition.
11823 (collate_pending_symbols_by_language, mdict_create_hashed)
11824 (mdict_create_hashed_expandable, mdict_create_linear)
11825 (mdict_create_linear_expandable, mdict_free)
11826 (find_language_dictionary, create_new_language_dictionary)
11827 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
11828 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
11829 (mdict_size, mdict_empty): New functions.
11830 * dictionary.h (mdict_iterator): Define.
11832 2019-01-10 Pedro Alves <palves@redhat.com>
11834 * breakpoint.c (read_uploaded_action)
11835 (create_tracepoint_from_upload): Adjust to use
11836 gdb::unique_xmalloc_ptr.
11837 * ctf.c (ctf_write_uploaded_tp):
11838 (SET_ARRAY_FIELD): Use emplace_back.
11839 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
11840 * tracefile-tfile.c (tfile_write_uploaded_tp):
11841 * tracepoint.c (parse_tracepoint_definition): Adjust to use
11842 gdb::unique_xmalloc_ptr.
11843 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
11844 at_string, cond_string, cmd_strings>: Replace char pointers
11845 with gdb::unique_xmalloc_ptr.
11847 2019-01-10 Pedro Alves <palves@redhat.com>
11849 * solib-target.c (library_list_start_library): Don't xstrdup name.
11851 2019-01-10 Pedro Alves <palves@redhat.com>
11853 * mdebugread.c (parse_partial_symbols): Use
11854 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
11856 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
11858 * linux-fork.c (scoped_switch_fork_info)
11859 <~scoped_switch_fork_info>: Fix incorrect variable name.
11861 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
11863 * linux-fork.c (scoped_switch_fork_info)
11864 <scoped_switch_fork_info>: Make explicit.
11865 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
11867 2019-01-10 Tom Tromey <tom@tromey.com>
11869 * objfiles.h (objfile::reset_psymtabs): Update.
11870 * objfiles.c (objfile::objfile): Update.
11871 * psymtab.h (psymtab_storage::obstack): Update.
11872 (psymtab_storage::m_obstack): Use gdb::optional.
11873 (class psymtab_storage): Update comment. Remove objfile
11875 * psymtab.c (psymtab_storage::psymtab_storage): Update.
11877 2019-01-10 Tom Tromey <tom@tromey.com>
11879 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
11880 <free_psymtabs>: Now private.
11881 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
11882 (allocate_psymtab): Use new method.
11884 2019-01-10 Tom Tromey <tom@tromey.com>
11886 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
11887 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
11888 * mdebugread.c (parse_partial_symbols): Use
11889 allocate_dependencies.
11890 * dwarf2read.c (dwarf2_create_include_psymtab): Use
11891 allocate_dependencies.
11892 (process_psymtab_comp_unit_reader)
11893 (build_type_psymtab_dependencies): Likewise.
11894 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
11896 2019-01-10 Tom Tromey <tom@tromey.com>
11898 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
11899 PSYMBOL_SET_LANGUAGE.
11900 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
11902 2019-01-10 Tom Tromey <tom@tromey.com>
11904 * psymtab.h (psymtab_storage::obstack): New method.
11905 <m_obstack>: Rename from obstack; now private.
11906 * psymtab.c (psymtab_storage): Update.
11907 * dwarf2read.c (create_addrmap_from_index)
11908 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
11911 2019-01-10 Tom Tromey <tom@tromey.com>
11913 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
11914 * objfiles.h (objfile::reset_psymtabs): New method.
11916 2019-01-10 Tom Tromey <tom@tromey.com>
11918 * symmisc.c (print_symbol_bcache_statistics): Update.
11919 (print_objfile_statistics): Update.
11920 * symfile.c (reread_symbols): Update.
11921 * psymtab.h (class psymtab_storage): New.
11922 * psymtab.c (psymtab_storage): New constructor.
11923 (~psymtab_storage): New destructor.
11924 (require_partial_symbols): Update.
11925 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
11926 (find_pc_sect_psymtab, find_pc_sect_psymbol)
11927 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
11928 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
11929 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
11930 (start_psymtab_common, end_psymtab_common)
11931 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
11932 (allocate_psymtab): Update.
11933 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
11935 (dump_psymtab_addrmap, maintenance_print_psymbols)
11936 (maintenance_check_psymtabs): Update.
11937 (class objfile_psymtabs): Move to objfiles.h.
11938 * psympriv.h (discard_psymtab): Now inline.
11939 (psymtab_discarder::psymtab_discarder): Update.
11940 (psymtab_discarder::~psymtab_discarder): Update.
11941 (ALL_OBJFILE_PSYMTABS): Rewrite.
11942 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
11943 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
11945 <partial_symtabs>: New field.
11946 (class objfile_psymtabs): Move from psymtab.h. Update.
11947 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
11949 (objfile::~objfile): Don't destroy psymbol_cache.
11950 * mdebugread.c (parse_partial_symbols): Update.
11951 * dwarf2read.c (create_addrmap_from_index)
11952 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11953 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
11954 (add_partial_subprogram, dwarf2_ranges_read): Update.
11955 * dwarf-index-write.c (write_address_map)
11956 (write_one_signatured_type, recursively_write_psymbols)
11957 (class debug_names, class debug_names, write_psymtabs_to_index):
11960 2019-01-10 Tom Tromey <tom@tromey.com>
11962 * symtab.h (SYMBOL_SET_NAMES): Update.
11963 (symbol_set_names): Update.
11964 (MSYMBOL_SET_NAMES): Update.
11965 * symtab.c (symbol_set_names): Change argument to be an
11966 objfile_per_bfd_storage.
11967 * psymtab.c (add_psymbol_to_bcache): Update.
11968 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
11970 2019-01-10 Tom Tromey <tom@tromey.com>
11972 * symtab.c (create_demangled_names_hash): Change argument to be an
11973 objfile_per_bfd_storage.
11974 (symbol_set_names): Update.
11976 2019-01-10 Tom Tromey <tom@tromey.com>
11978 * xcoffread.c (xcoff_initial_scan): Unconditionally call
11980 * psymtab.c (init_psymbol_list): Do nothing if already called.
11981 * psympriv.h (init_psymbol_list): Add comment.
11982 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
11984 * dbxread.c (dbx_symfile_read): Unconditionally call
11987 2019-01-10 Tom Tromey <tom@tromey.com>
11989 * xcoffread.c (scan_xcoff_symtab): Update.
11990 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
11992 * mdebugread.c (parse_partial_symbols)
11993 (handle_psymbol_enumerators): Update.
11994 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
11995 * dbxread.c (read_dbx_symtab): Update.
11996 * psympriv.h (psymbol_placement): New enum.
11997 (add_psymbol_to_list): Update.
11999 2019-01-10 Tom Tromey <tom@tromey.com>
12001 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
12002 static_psymbols parameters.
12003 (scan_xcoff_symtab): Update.
12004 * psymtab.c (start_psymtab_common): Remove global_psymbols and
12005 static_psymbols parameters.
12006 * psympriv.h (start_psymtab_common): Update.
12007 * mdebugread.c (parse_partial_symbols): Update.
12008 * dwarf2read.c (create_partial_symtab): Update.
12009 * dbxread.c (read_dbx_symtab): Update.
12010 (start_psymtab): Remove global_psymbols and static_psymbols
12013 2019-01-10 Tom Tromey <tom@tromey.com>
12015 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
12016 * psymtab.c (allocate_psymtab): Add comment.
12017 * psympriv.h (allocate_psymtab): Add comment.
12018 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
12020 * dbxread.c (dbx_end_psymtab): Remove some initializations.
12022 2019-01-10 Tom Tromey <tom@tromey.com>
12024 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12026 * mipsread.c: Include mdebugread.h.
12027 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12029 * elfread.c: Include mdebugread.h.
12031 2019-01-09 Tom Tromey <tom@tromey.com>
12033 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
12034 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
12035 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
12036 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
12037 (psym_lookup_symbol, psym_find_last_source_symtab)
12038 (psym_forget_cached_source_info, psym_print_stats)
12039 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
12040 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
12041 (psym_map_matching_symbols, psym_expand_symtabs_matching)
12042 (psym_find_compunit_symtab_by_address)
12043 (maintenance_print_psymbols, maintenance_info_psymtabs)
12044 (maintenance_check_psymtabs): Use ranged for.
12045 * psymtab.h (class objfile_psymtabs): New.
12046 (require_partial_symbols): Return objfile_psymtabs.
12047 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
12049 2019-01-09 Tom Tromey <tom@tromey.com>
12051 * symfile.c (overlay_invalidate_all, find_pc_overlay)
12052 (find_pc_mapped_section, list_overlays_command)
12053 (map_overlay_command, unmap_overlay_command)
12054 (simple_overlay_update): Use all_objfiles.
12055 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
12056 * printcmd.c (info_symbol_command): Use all_objfiles.
12057 * objfiles.h (ALL_OBJSECTIONS): Remove.
12058 * maint.c (maintenance_translate_address): Use all_objfiles.
12059 * gcore.c (gcore_create_callback): Use all_objfiles.
12060 (objfile_find_memory_regions): Likewise.
12062 2019-01-09 Tom Tromey <tom@tromey.com>
12064 * symtab.c (find_line_symtab, info_sources_command)
12065 (make_source_files_completion_list): Use objfile_compunits.
12066 * source.c (select_source_symtab): Use objfile_compunits.
12067 * objfiles.h (struct objfile): Update comment.
12068 (ALL_OBJFILES): Remove.
12069 (ALL_FILETABS): Remove.
12070 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
12073 2019-01-09 Tom Tromey <tom@tromey.com>
12075 * symmisc.c (print_objfile_statistics, dump_objfile)
12076 (maintenance_print_symbols): Use compunit_filetabs.
12077 * source.c (forget_cached_source_info_for_objfile): Use
12079 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
12080 (ALL_FILETABS): Use compunit_filetabs.
12081 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
12082 * coffread.c (coff_symtab_read): Use compunit_filetabs.
12084 2019-01-09 Tom Tromey <tom@tromey.com>
12086 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
12087 (compunit_filetabs): New.
12088 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
12090 (info_sources_command, make_source_files_completion_list): Remove
12092 * symmisc.c (print_objfile_statistics, dump_objfile)
12093 (maintenance_print_symbols): Remove declaration.
12094 (maintenance_info_symtabs): Use compunit_filetabs.
12095 (maintenance_info_line_tables): Likewise.
12096 * source.c (select_source_symtab): Change local variable name.
12097 (forget_cached_source_info_for_objfile): Remove declaration.
12098 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
12099 * objfiles.c (objfile_relocate1): Remove declaration.
12100 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
12102 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
12103 * coffread.c (coff_symtab_read): Remove declaration.
12104 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
12107 2019-01-09 Tom Tromey <tom@tromey.com>
12109 * symtab.c (lookup_objfile_from_block)
12110 (find_pc_sect_compunit_symtab, search_symbols)
12111 (default_collect_symbol_completion_matches_break_on): Use
12113 * objfiles.h (ALL_COMPUNITS): Remove.
12114 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
12115 * cp-support.c (add_symbol_overload_list_qualified): Use
12117 * ada-lang.c (ada_collect_symbol_completion_matches)
12118 (ada_add_global_exceptions): Use objfile_compunits.
12120 2019-01-09 Tom Tromey <tom@tromey.com>
12122 * source.c (select_source_symtab)
12123 (forget_cached_source_info_for_objfile): Remove declaration.
12124 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
12126 * maint.c (count_symtabs_and_blocks): Remove declaration.
12127 * cp-support.c (add_symbol_overload_list_qualified): Remove
12129 * coffread.c (coff_symtab_read): Remove declaration.
12130 * symtab.c (lookup_symbol_in_objfile_symtabs)
12131 (basic_lookup_transparent_type_1): Use objfile_compunits.
12132 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
12133 (info_sources_command, search_symbols)
12134 (default_collect_symbol_completion_matches_break_on)
12135 (make_source_files_completion_list): Remove declaration.
12136 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
12137 (ada_collect_symbol_completion_matches)
12138 (ada_add_global_exceptions): Remove declaration.
12139 * linespec.c (iterate_over_all_matching_symtabs): Use
12141 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
12142 (class objfile_compunits): New.
12143 (ALL_COMPUNITS): Use objfile_compunits.
12144 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
12145 (maintenance_check_symtabs, maintenance_info_line_tables): Use
12147 * objfiles.c (objfile_relocate1): Use objfile_compunits.
12149 2019-01-09 Tom Tromey <tom@tromey.com>
12151 * symtab.c (search_symbols)
12152 (default_collect_symbol_completion_matches_break_on): Use
12154 * ada-lang.c (ada_lookup_simple_minsym)
12155 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
12156 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
12157 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
12159 * coffread.c (coff_symfile_read): Use objfile_msymbols.
12160 * symmisc.c (dump_msymbols): Use objfile_msymbols.
12161 * objc-lang.c (find_methods): Use objfile_msymbols.
12162 (info_selectors_command, info_classes_command): Likewise.
12163 * stabsread.c (scan_file_globals): Use objfile_msymbols.
12164 * objfiles.h (class objfile_msymbols): New.
12165 (ALL_OBJFILE_MSYMBOLS): Remove.
12166 (ALL_MSYMBOLS): Remove.
12168 2019-01-09 Tom Tromey <tom@tromey.com>
12170 * common/next-iterator.h (next_adapter): Add Iterator template
12172 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
12173 (class all_objfiles_safe): New.
12174 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
12175 * objfiles.c (put_objfile_before): Update comment.
12176 (add_separate_debug_objfile): Likewise.
12177 (free_all_objfiles): Use all_objfiles_safe.
12178 (objfile_purge_solibs): Likewise.
12180 2019-01-09 Tom Tromey <tom@tromey.com>
12182 * symtab.c (iterate_over_symtabs, matching_obj_sections)
12183 (expand_symtab_containing_pc, lookup_static_symbol)
12184 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
12185 (find_symbol_at_address, find_line_symtab, find_main_name): Use
12187 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
12188 * breakpoint.c (create_overlay_event_breakpoint)
12189 (create_longjmp_master_breakpoint)
12190 (create_std_terminate_master_breakpoint)
12191 (create_exception_master_breakpoint): Use all_objfiles.
12192 * linux-thread-db.c (try_thread_db_load_from_pdir)
12193 (has_libpthread): Use all_objfiles.
12194 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
12195 * linespec.c (iterate_over_all_matching_symtabs)
12196 (search_minsyms_for_name): Use all_objfiles.
12197 * maint.c (maintenance_info_sections): Use all_objfiles.
12198 * main.c (captured_main_1): Use all_objfiles.
12199 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
12200 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
12201 * guile/scm-pretty-print.c
12202 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
12203 * solib-spu.c (append_ocl_sos): Use all_objfiles.
12204 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
12205 (maintenance_print_msymbols): Use all_objfiles.
12206 * source.c (select_source_symtab): Use all_objfiles.
12207 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
12208 * symfile.c (remove_symbol_file_command)
12209 (expand_symtabs_matching, map_symbol_filenames): Use
12211 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
12213 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
12214 * objc-lang.c (find_methods): Use all_objfiles.
12215 * objfiles.c (have_partial_symbols, have_full_symbols)
12216 (have_minimal_symbols, qsort_cmp)
12217 (default_iterate_over_objfiles_in_search_order): Use
12219 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
12220 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
12221 (maintenance_check_psymtabs): Use all_objfiles.
12222 (ALL_PSYMTABS): Remove.
12223 * compile/compile-object-run.c (do_module_cleanup): Use
12225 * blockframe.c (find_pc_partial_function): Use all_objfiles.
12226 * cp-support.c (add_symbol_overload_list_qualified): Use
12228 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
12230 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
12231 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
12233 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
12234 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
12235 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
12237 * solib.c (solib_read_symbols): Use all_objfiles
12239 2019-01-09 Tom Tromey <tom@tromey.com>
12241 * probe.c (parse_probes_in_pspace): Use all_objfiles.
12242 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
12244 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
12245 * symmisc.c (print_symbol_bcache_statistics)
12246 (print_objfile_statistics, maintenance_print_objfiles)
12247 (maintenance_info_symtabs, maintenance_check_symtabs)
12248 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
12250 * source.c (forget_cached_source_info): Use all_objfiles.
12251 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
12252 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
12253 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
12254 * objfiles.c (update_section_map): Use all_objfiles.
12255 (shared_objfile_contains_address_p): Likewise.
12256 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
12257 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
12259 2019-01-09 Tom Tromey <tom@tromey.com>
12261 * common/next-iterator.h: New file.
12262 * objfiles.h (class all_objfiles): New.
12263 (struct objfile_iterator): New.
12265 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12267 * NEWS: Move the description of the changed "frame", "select-frame",
12268 and "info frame" commands to the Changed commands section.
12270 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
12272 * gdbtypes.c (check_stub_method_group): Remove handling of old
12274 * linespec.c (find_methods): Likewise.
12275 * stabsread.c (read_member_functions): Likewise.
12276 * valops.c (search_struct_method): Likewise.
12277 (value_struct_elt_for_reference): Likewise.
12278 * NEWS: Mention this change.
12280 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12282 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
12283 print_source_lines.
12284 * source.c (print_source_lines_base): Update line number check.
12285 (print_source_lines): New function.
12286 (source_lines_range::source_lines_range): New function.
12287 * source.h (class source_lines_range): New class.
12288 (print_source_lines): New declaration.
12290 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12292 * linespec.c (linespec_state_destructor): Free self->canonical_names.
12294 2019-01-08 Tom Tromey <tom@tromey.com>
12295 Simon Marchi <simon.marchi@ericsson.com>
12298 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
12299 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
12300 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
12301 * f-exp.y (DOLLAR_VARIABLE): Likewise.
12302 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
12303 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
12305 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12307 * source.c (select_source_symtab): Move header comment to
12308 declaration in source.h.
12309 (forget_cached_source_info_for_objfile): Likewise.
12310 (forget_cached_source_info): Likewise.
12311 (identify_source_line): Likewise.
12312 * source.h (identify_source_line): Move declaration from symtab.h
12313 and add comment from source.c
12314 (print_source_lines): Likewise.
12315 (forget_cached_source_info_for_objfile): Likewise.
12316 (forget_cached_source_info): Likewise.
12317 (select_source_symtab): Likewise.
12318 (enum print_source_lines_flag): Move definition from symtab.h.
12319 * symtab.h (identify_source_line): Move declaration to source.h.
12320 (print_source_lines): Likewise.
12321 (forget_cached_source_info_for_objfile): Likewise.
12322 (forget_cached_source_info): Likewise.
12323 (select_source_symtab): Likewise.
12324 (enum print_source_lines_flag): Move definition to source.h.
12325 * tui/tui-hooks.c: Add 'source.h' include.
12327 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12329 * source.c (print_source_lines_base): Handle requests to print
12330 reverse line number sequences, and guard against empty lines
12333 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12335 * source.c (print_source_lines_base): Fix skip of '\r' if next
12338 2019-01-06 Tom Tromey <tom@tromey.com>
12340 * c-exp.y (struct c_parse_state) <macro_original_text,
12341 expansion_obstack>: New member.
12342 (macro_original_text, expansion_obstack): Remove globals.
12343 (scan_macro_expansion, scanning_macro_expansion)
12344 (finished_macro_expansion): Update.
12345 (scan_macro_cleanup): Remove.
12346 (yylex, c_parse): Update.
12348 2019-01-06 Tom Tromey <tom@tromey.com>
12350 * c-exp.y (struct c_parse_state) <strings>: New member.
12351 (operator_stoken): Update.
12353 2019-01-06 Tom Tromey <tom@tromey.com>
12355 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
12356 (union type_stack_elt) <typelist_val>: Now a pointer to
12358 (type_stack_cleanup): Don't declare.
12359 (push_typelist): Update.
12360 * parse.c (pop_typelist): Return a std::vector.
12361 (push_typelist): Take a std::vector.
12362 (follow_types): Update. Do not free args.
12363 (type_stack_cleanup): Remove.
12364 * c-exp.y (struct c_parse_state): New.
12365 (cpstate): New global.
12366 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
12367 (nonempty_typelist): Update.
12368 (func_mod): Create a new vector.
12369 (c_parse): Create a c_parse_state.
12370 (check_parameter_typelist): Do not delete params.
12371 (function_method): Update. Do not delete type_list.
12373 2019-01-06 Tom Tromey <tom@tromey.com>
12376 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
12378 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
12379 (print_return_value): Likewise.
12381 2019-01-05 Tom Tromey <tom@tromey.com>
12383 * contrib/cleanup_check.py: Remove.
12384 * contrib/gcc-with-excheck: Remove.
12385 * contrib/exsummary.py: Remove.
12386 * contrib/excheck.py: Remove.
12388 2019-01-05 Joel Brobecker <brobecker@adacore.com>
12390 * thread.c (delete_thread_1): Add gdb_assert that THR is not
12391 NULL. Initialize tpprev to NULL instead of assigning it
12392 to NULL on the next statement.
12393 * windows-nat.c (windows_delete_thread): Remove check for
12394 main_thread_id before printing thread exit notifications.
12395 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
12396 Remove thread ID check against main_thread_id.
12397 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
12398 windows_delete_thread.
12399 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
12401 2019-01-04 Tom Tromey <tom@tromey.com>
12403 * compile/compile.c (_initialize_compile): Use upper case for
12404 metasyntactic variables.
12405 * symmisc.c (_initialize_symmisc): Use upper case for
12406 metasyntactic variables.
12407 * psymtab.c (_initialize_psymtab): Use upper case for
12408 metasyntactic variables.
12409 * demangle.c (demangle_command): Use upper case for metasyntactic
12411 (_initialize_demangler): Likewise.
12412 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
12415 2019-01-03 Tom Tromey <tom@tromey.com>
12417 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
12419 2019-01-03 Tom Tromey <tom@tromey.com>
12421 * python/py-symtab.c (salpy_str): Update.
12422 (struct salpy_sal_object) <symtab>: Now a PyObject.
12423 (salpy_dealloc): Update.
12424 (del_objfile_sal): Use gdbpy_ref.
12426 2019-01-03 Tom Tromey <tom@tromey.com>
12428 * python/py-type.c (convert_field): Use new_reference. Return
12430 (make_fielditem): Return gdbpy_ref.
12431 (typy_fields): Update.
12432 (typy_getitem): Update.
12433 (field_name): Return gdbpy_ref. Use new_reference.
12434 (typy_iterator_iternext): Update.
12436 2019-01-03 Tom Tromey <tom@tromey.com>
12438 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
12440 2019-01-03 Tom Tromey <tom@tromey.com>
12442 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
12443 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
12444 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
12445 (pspy_set_frame_filters, pspy_set_frame_unwinders)
12446 (pspy_set_type_printers): Likewise.
12447 * python/py-function.c (fnpy_init): Use gdbpy_ref.
12448 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
12449 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
12450 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
12451 (objfpy_set_type_printers): Likewise.
12453 2019-01-03 Tom Tromey <tom@tromey.com>
12455 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
12456 (gdbpy_print_stack): Use gdbpy_err_fetch.
12457 * python/python-internal.h (class gdbpy_err_fetch): New class.
12458 (class gdbpy_enter) <m_error_type, m_error_value,
12459 m_error_traceback>: Remove.
12460 <m_error>: New member.
12461 (gdbpy_exception_to_string): Don't declare.
12462 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
12463 * python/py-value.c (convert_value_from_python): Use
12465 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
12466 gdbpy_exception_to_string.
12467 (gdbpy_handle_exception): Use gdbpy_err_fetch.
12468 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
12471 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12473 * linux-nat.c (delete_lwp_cleanup): Delete.
12474 (struct lwp_deleter): New struct.
12475 (lwp_info_up): New typedef.
12476 (linux_nat_target::follow_fork): Delete cleanup, and make use of
12479 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12481 * linux-fork.c (class scoped_switch_fork_info): New class.
12482 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
12484 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12486 * valops.c (find_overload_match): Remove use of null_cleanup, and
12487 calls to do_cleanups.
12489 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12491 * compile/compile-cplus-types.c
12492 (compile_cplus_instance::decl_name): Handle changes to
12494 * cp-support.c (cp_func_name): Update header comment, update
12496 * cp-support.h (cp_func_name): Update return type in declaration.
12497 * valops.c (find_overload_match): Move temp_func local to top
12498 level of function and change its type. Use temp_func to hold and
12499 delete temporary string obtained from cp_func_name.
12501 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12503 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
12504 gdb::char_vector, remove cleanup, and update uses of `msg`.
12506 2019-01-03 Jim Wilson <jimw@sifive.com>
12508 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
12510 2019-01-02 Tom Tromey <tom@tromey.com>
12512 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
12513 (tdesc_parse_xml): Remove cleanups.
12514 * target-descriptions.h (make_cleanup_free_target_description):
12516 (target_desc_deleter): New struct.
12517 (target_desc_up): New typedef.
12518 * target-descriptions.c (target_desc_deleter::operator()): Rename
12519 from free_target_description.
12520 (make_cleanup_free_target_description): Remove.
12522 2019-01-02 Tom Tromey <tom@tromey.com>
12524 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
12525 constructor, destructor.
12526 (linespec_parser): Remove typedef.
12527 (~linespec_parser): Rename from linespec_parser_delete.
12528 (linespec_lex_to_end, linespec_complete_label)
12529 (linespec_complete): Update.
12530 (decode_line_full): Remove cleanups.
12531 (decode_line_1): Update.
12533 2019-01-02 Tom Tromey <tom@tromey.com>
12535 * python/python-internal.h (inferior_to_inferior_object): Change
12537 * python/py-exitedevent.c (create_exited_event_object): Update.
12538 * python/py-inferior.c (inferior_to_inferior_object): Return
12540 (python_new_inferior, python_inferior_deleted)
12541 (thread_to_thread_object, delete_thread_object)
12542 (build_inferior_list, gdbpy_selected_inferior): Update.
12543 * python/py-infthread.c (create_thread_object): Update. Also fail
12544 if inferior_to_inferior_object fails.
12546 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
12548 * inferior.h (class inferior) <displaced_step_state>: New field.
12549 * infrun.h (struct displaced_step_state): Move here from
12550 infrun.c. Initialize fields, add constructor.
12551 <inf>: Remove field.
12552 <reset>: New method.
12553 * infrun.c (struct displaced_step_inferior_state): Move to
12555 (displaced_step_inferior_states): Remove.
12556 (get_displaced_stepping_state): Adust.
12557 (displaced_step_in_progress_any_inferior): Adjust.
12558 (displaced_step_in_progress_thread): Adjust.
12559 (displaced_step_in_progress): Adjust.
12560 (add_displaced_stepping_state): Remove.
12561 (get_displaced_step_closure_by_addr): Adjust.
12562 (remove_displaced_stepping_state): Remove.
12563 (infrun_inferior_exit): Call displaced_step_state.reset.
12564 (use_displaced_stepping): Don't check for NULL.
12565 (displaced_step_prepare_throw): Call
12566 get_displaced_stepping_state.
12567 (displaced_step_fixup): Don't check for NULL.
12568 (prepare_for_detach): Don't check for NULL.
12570 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12572 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
12573 in case of call that did not complete.
12575 2019-01-02 Andrey Utkin <autkin@undo.io>
12577 * symfile.c (find_separate_debug_file): Fix search of debug files for
12580 2019-01-02 Tom Tromey <tom@tromey.com>
12582 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
12584 * python/py-frame.c (frapy_older): Remove cast.
12585 (frapy_newer): Likewise.
12586 * python/py-breakpoint.c (local_setattro): Remove cast.
12587 * python/py-arch.c (archpy_name): Remove local variable.
12588 * python/py-type.c (gdbpy_lookup_type): Remove cast.
12590 2019-01-02 Joel Brobecker <brobecker@adacore.com>
12592 * unittests/basic_string_view/element_access/char/empty.cc:
12593 Fix year range in copyright header.
12595 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
12597 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
12599 <operator==>: Update with for removed field.
12601 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
12602 <isa_features>: ...this.
12603 <abi_features>: New field.
12604 (riscv_isa_flen): Update comment.
12605 (riscv_abi_xlen): New declaration.
12606 (riscv_abi_flen): New declaration.
12607 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
12609 (riscv_abi_xlen): New function.
12610 (riscv_isa_flen): Update to get answer from isa_features.
12611 (riscv_abi_flen): New function.
12612 (riscv_has_fp_abi): Update to get answer from abi_features.
12613 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
12615 (riscv_call_info) <xlen, flen>: Update comment.
12616 (riscv_call_arg_struct): Remove invalid assertions
12617 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
12619 (riscv_gdbarch_init): Gather isa features and abi features
12620 separately, ensure both match on the gdbarch when reusing an old
12621 gdbarch. Relax an error check to allow 32-bit abi float to run on
12622 a target with 64-bit float hardware.
12624 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12626 * source.c (search_command_helper): Stop reverse search
12627 when line 1 has been searched.
12629 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12631 * record-full.c (record_full_base_target::close): Rewrite
12632 record_full_core_buf_list free logic.
12634 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12636 * break-catch-syscall.c (print_one_catch_syscall): xfree
12639 2019-01-01 Joel Brobecker <brobecker@adacore.com>
12641 * top.c (print_gdb_version): Update Copyright year in version
12644 2019-01-01 Joel Brobecker <brobecker@adacore.com>
12646 Update copyright year range in all GDB files.
12648 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
12650 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
12652 For older changes see ChangeLog-2018.
12658 version-control: never