1 2019-09-18 Tom Tromey <tom@tromey.com>
4 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
6 (tui_enable): Do not call rl_initialize.
8 2019-09-18 Christian Groessler <chris@groessler.org>
10 * alpha-linux-nat.c: Include gdbarch.h.
12 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
14 * ui-file.c: Include cli/cli-style.h.
15 (term_cli_styling): Remove cli_styling declaration.
17 2019-09-18 Alan Modra <amodra@gmail.com>
19 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
20 to bfd_asymbol_section.
22 2019-09-18 Alan Modra <amodra@gmail.com>
24 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
25 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
26 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
28 2019-09-18 Alan Modra <amodra@gmail.com>
30 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
31 * spu-linux-nat.c (spu_bfd_open): Likewise.
33 2019-09-18 Christian Biesinger <cbiesinger@google.com>
35 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
36 to bool to match definition in dwarf2read.c.
38 2019-09-17 Christian Biesinger <cbiesinger@google.com>
40 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
41 (print_signatures): Likewise.
42 (trust_pad_over_xvs): Likewise.
43 * arch/aarch64-insn.c (aarch64_debug): Likewise.
44 * arch/aarch64-insn.h (aarch64_debug): Likewise.
45 * arm-linux-nat.c (arm_apcs_32): Likewise.
46 * arm-linux-tdep.c (arm_apcs_32): Likewise.
47 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
48 * arm-tdep.c (arm_debug): Likewise.
49 (arm_apcs_32): Likewise.
50 * auto-load.c (debug_auto_load): Likewise.
51 (auto_load_gdb_scripts): Likewise.
52 (global_auto_load): Likewise.
53 (auto_load_local_gdbinit): Likewise.
54 (auto_load_local_gdbinit_loaded): Likewise.
55 * auto-load.h (global_auto_load): Likewise.
56 (auto_load_local_gdbinit): Likewise.
57 (auto_load_local_gdbinit_loaded): Likewise.
58 * breakpoint.c (disconnected_dprintf): Likewise.
59 (breakpoint_proceeded): Likewise.
60 (automatic_hardware_breakpoints): Likewise.
61 (always_inserted_mode): Likewise.
62 (target_exact_watchpoints): Likewise.
63 (_initialize_breakpoint): Update.
64 * breakpoint.h (target_exact_watchpoints): Change to bool.
65 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
66 * cli/cli-cmds.c (trace_commands): Likewise.
67 * cli/cli-cmds.h (trace_commands): Likewise.
68 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
70 * cli/cli-logging.c (logging_overwrite): Change to bool.
71 (logging_redirect): Likewise.
72 (debug_redirect): Likewise.
73 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
74 (struct boolean_option_def) <get_var_address_cb_>: Change return type
76 <boolean_option_def>: Update.
77 (struct flag_option_def): Change default type of Context to bool
79 <flag_option_def>: Change return type of var_address_cb_ to bool*.
80 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
81 (get_setshow_command_value_string): Likewise.
82 * cli/cli-style.c (cli_styling): Change to bool.
83 (source_styling): Likewise.
84 * cli/cli-style.h (source_styling): Likewise.
85 (cli_styling): Likewise.
86 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
88 * command.h (var_types): Update comment.
89 (add_setshow_boolean_cmd): Change int* var argument to bool*.
90 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
92 (debug_compile_cplus_scopes): Likewise.
93 * compile/compile-internal.h (compile_debug): Likewise.
94 * compile/compile.c (compile_debug): Likewise.
95 (struct compile_options) <raw>: Likewise.
96 * cp-support.c (catch_demangler_crashes): Likewise.
97 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
98 (usr_cmd_cris_dwarf2_cfi): Likewise.
99 * csky-tdep.c (csky_debug): Likewise.
100 * darwin-nat.c (enable_mach_exceptions): Likewise.
101 * dcache.c (dcache_enabled_p): Likewise.
102 * defs.h (info_verbose): Likewise.
103 * demangle.c (demangle): Likewise.
104 (asm_demangle): Likewise.
105 * dwarf-index-cache.c (debug_index_cache): Likewise.
106 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
107 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
108 * dwarf2read.c (check_physname): Likewise.
109 (use_deprecated_index_sections): Likewise.
110 (dwarf_always_disassemble): Likewise.
111 * eval.c (overload_resolution): Likewise.
112 * event-top.c (set_editing_cmd_var): Likewise.
113 (exec_done_display_p): Likewise.
114 * event-top.h (set_editing_cmd_var): Likewise.
115 (exec_done_display_p): Likewise.
116 * exec.c (write_files): Likewise.
117 * fbsd-nat.c (debug_fbsd_lwp): Likewise
118 (debug_fbsd_nat): Likewise.
119 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
121 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
122 <backtrace_past_entry> Likewise.
123 * gdb-demangle.h (demangle): Likewise.
124 (asm_demangle): Likewise.
125 * gdb_bfd.c (bfd_sharing): Likewise.
126 * gdbcore.h (write_files): Likewise.
127 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
128 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
129 * gdbthread.h (print_thread_events): Likewise.
130 * gdbtypes.c (opaque_type_resolution): Likewise.
131 (strict_type_checking): Likewise.
132 * gnu-nat.c (gnu_debug_flag): Likewise.
133 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
134 * guile/scm-param.c (pascm_variable): Add boolval.
135 (add_setshow_generic): Update.
136 (pascm_param_value): Update.
137 (pascm_set_param_value_x): Update.
138 * hppa-tdep.c (hppa_debug): Change to bool..
139 * infcall.c (may_call_functions_p): Likewise.
140 (coerce_float_to_double_p): Likewise.
141 (unwind_on_signal_p): Likewise.
142 (unwind_on_terminating_exception_p): Likewise.
143 * infcmd.c (startup_with_shell): Likewise.
144 * inferior.c (print_inferior_events): Likewise.
145 * inferior.h (startup_with_shell): Likewise.
146 (print_inferior_events): Likewise.
147 * infrun.c (step_stop_if_no_debug): Likewise.
148 (detach_fork): Likewise.
149 (debug_displaced): Likewise.
150 (disable_randomization): Likewise.
151 (non_stop): Likewise.
152 (non_stop_1): Likewise.
153 (observer_mode): Likewise.
154 (observer_mode_1): Likewise.
155 (set_observer_mode): Update.
156 (sched_multi): Change to bool.
157 * infrun.h (debug_displaced): Likewise.
158 (sched_multi): Likewise.
159 (step_stop_if_no_debug): Likewise.
160 (non_stop): Likewise.
161 (disable_randomization): Likewise.
162 * linux-tdep.c (use_coredump_filter): Likewise.
163 (dump_excluded_mappings): Likewise.
164 * linux-thread-db.c (auto_load_thread_db): Likewise.
165 (check_thread_db_on_load): Likewise.
166 * main.c (captured_main_1): Update.
167 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
168 xx2_opt, boolean_opt>: Change to bool.
169 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
170 * maint.c (maintenance_profile_p): Likewise.
171 (per_command_time): Likewise.
172 (per_command_space): Likewise.
173 (per_command_symtab): Likewise.
174 * memattr.c (inaccessible_by_default): Likewise.
175 * mi/mi-main.c (mi_async): Likewise.
176 (mi_async_1): Likewise.
177 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
178 * nat/fork-inferior.h (startup_with_shell): Likewise.
179 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
180 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
181 * nios2-tdep.c (nios2_debug): Likewise.
182 * or1k-tdep.c (or1k_debug): Likewise.
183 * parse.c (parser_debug): Likewise.
184 * parser-defs.h (parser_debug): Likewise.
185 * printcmd.c (print_symbol_filename): Likewise.
186 * proc-api.c (procfs_trace): Likewise.
187 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
188 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
189 (set_parameter_value): Update.
190 (add_setshow_generic): Update.
191 * python/py-value.c (copy_py_bool_obj): Change argument from int*
193 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
195 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
196 * record-btrace.c (record_btrace_target::store_registers): Update.
197 * record-full.c (record_full_memory_query): Change to bool.
198 (record_full_stop_at_limit): Likewise.
199 * record-full.h (record_full_memory_query): Likewise.
200 * remote-notif.c (notif_debug): Likewise.
201 * remote-notif.h (notif_debug): Likewise.
202 * remote.c (use_range_stepping): Likewise.
203 (interrupt_on_connect): Likewise.
204 (remote_break): Likewise.
205 * ser-tcp.c (tcp_auto_retry): Likewise.
206 * ser-unix.c (serial_hwflow): Likewise.
207 * skip.c (debug_skip): Likewise.
208 * solib-aix.c (solib_aix_debug): Likewise.
209 * spu-tdep.c (spu_stop_on_load_p): Likewise.
210 (spu_auto_flush_cache_p): Likewise.
211 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
213 (struct info_print_options) <quiet>: Likewise.
214 * symfile-debug.c (debug_symfile): Likewise.
215 * symfile.c (auto_solib_add): Likewise.
216 (separate_debug_file_debug): Likewise.
217 * symfile.h (auto_solib_add): Likewise.
218 (separate_debug_file_debug): Likewise.
219 * symtab.c (basenames_may_differ): Likewise.
220 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
221 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
222 (struct info_types_options) <quiet>: Likewise.
223 * symtab.h (demangle): Likewise.
224 (basenames_may_differ): Likewise.
225 * target-dcache.c (stack_cache_enabled_1): Likewise.
226 (code_cache_enabled_1): Likewise.
227 * target.c (trust_readonly): Likewise.
228 (may_write_registers): Likewise.
229 (may_write_memory): Likewise.
230 (may_insert_breakpoints): Likewise.
231 (may_insert_tracepoints): Likewise.
232 (may_insert_fast_tracepoints): Likewise.
233 (may_stop): Likewise.
234 (auto_connect_native_target): Likewise.
235 (target_stop_and_wait): Update.
236 (target_async_permitted): Change to bool.
237 (target_async_permitted_1): Likewise.
238 (may_write_registers_1): Likewise.
239 (may_write_memory_1): Likewise.
240 (may_insert_breakpoints_1): Likewise.
241 (may_insert_tracepoints_1): Likewise.
242 (may_insert_fast_tracepoints_1): Likewise.
243 (may_stop_1): Likewise.
244 * target.h (target_async_permitted): Likewise.
245 (may_write_registers): Likewise.
246 (may_write_memory): Likewise.
247 (may_insert_breakpoints): Likewise.
248 (may_insert_tracepoints): Likewise.
249 (may_insert_fast_tracepoints): Likewise.
250 (may_stop): Likewise.
251 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
252 (make_thread_apply_all_options_def_group): Change argument from int*
254 (thread_apply_all_command): Update.
255 (print_thread_events): Change to bool.
256 * top.c (confirm): Likewise.
257 (command_editing_p): Likewise.
258 (history_expansion_p): Likewise.
259 (write_history_p): Likewise.
260 (info_verbose): Likewise.
261 * top.h (confirm): Likewise.
262 (history_expansion_p): Likewise.
263 * tracepoint.c (disconnected_tracing): Likewise.
264 (circular_trace_buffer): Likewise.
265 * typeprint.c (print_methods): Likewise.
266 (print_typedefs): Likewise.
267 * utils.c (debug_timestamp): Likewise.
268 (sevenbit_strings): Likewise.
269 (pagination_enabled): Likewise.
270 * utils.h (sevenbit_strings): Likewise.
271 (pagination_enabled): Likewise.
272 * valops.c (overload_resolution): Likewise.
273 * valprint.h (struct value_print_options) <prettyformat_arrays,
274 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
275 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
276 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
278 * windows-nat.c (new_console): Likewise.
279 (cygwin_exceptions): Likewise.
280 (new_group): Likewise.
281 (debug_exec): Likewise.
282 (debug_events): Likewise.
283 (debug_memory): Likewise.
284 (debug_exceptions): Likewise.
285 (useshell): Likewise.
286 * windows-tdep.c (maint_display_all_tib): Likewise.
287 * xml-support.c (debug_xml): Likewise.
289 2019-09-17 Mike Gulick <mgulick@mathworks.com>
291 * source.c (prepare_path_for_appending): New function.
292 (openp): Make use of new function.
293 (find_and_open_source): Search for the compilation directory and
294 source file as a relative path beneath the directory search path.
296 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
298 * source-cache.c (source_cache::get_line_charpos): Catch
299 exceptions and return false, this matches the behaviour documented
302 2019-09-17 Joel Brobecker <brobecker@adacore.com>
304 * ada-tasks.c (info_task): Remove quoting of the task's name.
306 2019-09-16 Christian Biesinger <cbiesinger@google.com>
308 * symfile.c (auto_solib_add): Replace comment with a reference
311 2019-09-14 Christian Biesinger <cbiesinger@google.com>
313 * NEWS: Mention that gdb can now be compiled with Python 3
316 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
318 * maint.c (maint_print_section_data::maint_print_section_data):
319 Force use of 'float log10 (float)' by casting the argument to
322 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
324 * maint.c: Add 'cmath' include.
325 (struct maint_print_section_data): New structure.
326 (print_section_index): New function.
327 (print_bfd_section_info): Add header comment, small whitespace
328 cleanup, and update to call new print_section_index function.
329 (print_objfile_section_info): Likewise.
330 (maint_obj_section_from_bfd_section): New function.
331 (print_bfd_section_info_maybe_relocated): New function.
332 (maintenance_info_sections): Add header comment, always use
333 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
335 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
337 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
338 inner scope, add check that the objfile has psymtabs before
339 checking psymtabs_addrmap.
340 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
342 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
344 * NEWS: Announce that Ada task names are now shown at more places,
345 and between quotes (except in info task output).
346 * gdb/ada-tasks.c (task_to_str): New function.
347 (display_current_task_id): Call task_to_str.
348 (task_command_1): Likewise.
349 (print_ada_task_info): In non-mi mode, Properly align headers and data
350 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
352 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
354 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
355 prstatus.pr_lwp.pr_info instead of making it up.
357 2019-09-11 Christian Biesinger <cbiesinger@google.com>
359 * auto-load.c (auto_load_expand_dir_vars): Update.
360 * defs.h (gdb_datadir): Change to std::string.
361 (python_libdir): Likewise.
362 (relocate_gdb_directory): Change return type to std::string.
363 * guile/guile.c (gdbscm_data_directory): Update.
364 (initialize_scheme_side): Update.
365 * jit.c (jit_reader_dir): Change to std::string.
366 (jit_reader_load_command): Update.
367 * main.c (gdb_datadir): Change to std::string.
368 (python_libdir): Likewise.
369 (set_gdb_data_directory): Update.
370 (relocate_path): Change to return std::string.
371 (relocate_gdb_directory): Change to return std::string.
372 (relocate_gdbinit_path_maybe_in_datadir): Update.
373 (captured_main_1): Update.
374 * python/python.c (do_start_initialization): Update.
375 * top.c (show_gdb_datadir): Update.
376 * xml-syscall.c (xml_init_syscalls_info): Update.
377 (init_syscalls_info): Update.
379 2019-09-11 Christian Biesinger <cbiesinger@google.com>
381 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
382 out of get_init_files.
383 (get_init_files): Update.
385 2019-09-11 Christian Biesinger <cbiesinger@google.com>
387 * main.c (get_init_files): Change to use std::string.
388 (captured_main_1): Update.
389 (print_gdb_help): Update.
391 2019-09-11 Ali Tamur <tamur@google.com>
393 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
396 2019-09-11 Christian Biesinger <cbiesinger@google.com>
398 * dbxread.c (read_dbx_symtab): Update.
399 * dwarf2read.c (load_partial_dies): Update.
400 * mdebugread.c (parse_partial_symbols): Update.
401 (handle_psymbol_enumerators): Update.
402 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
403 * psymtab.c (add_psymbol_to_bcache): Likewise.
404 (add_psymbol_to_list): Likewise.
405 * symtab.c (symbol_set_names): Likewise.
406 * symtab.h (symbol_set_names): Likewise.
407 * xcoffread.c (scan_xcoff_symtab): Update.
409 2019-09-11 Tom Tromey <tom@tromey.com>
411 * symfile-mem.c (symbol_file_add_from_memory): Use
413 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
414 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
416 2019-09-10 Tom Tromey <tromey@adacore.com>
418 * dwarf-index-write.c (write_psymbols): Extend error message.
419 (debug_names::insert): Add Ada code.
420 (debug_names::write_psymbols): Remove Ada check.
421 (debug_names) <m_string_obstack>: New member.
422 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
423 (gdb_index_symbol_name_matcher::matches): Remove.
424 (mapped_index_base::find_name_components_bounds): Add "lang"
426 (mapped_index_base::build_name_components): Also split names
427 according to Ada syntax.
428 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
429 type of "match_callback".
430 (check_match, check_find_bounds_finds)
431 (dw2_expand_symtabs_matching): Update.
432 (dw2_debug_names_iterator): Add new constructor.
433 (dw2_debug_names_map_matching_symbols): New function.
434 (dw2_debug_names_expand_symtabs_matching): Update.
435 (dwarf2_debug_names_functions): Use
436 dw2_debug_names_map_matching_symbols.
438 2019-09-10 Tom Tromey <tromey@adacore.com>
440 * dwarf2read.c (dw2_get_file_names_reader): Add the
441 CU's file name to the results.
443 2019-09-10 Tom Tromey <tromey@adacore.com>
445 * ada-lang.c (add_nonlocal_symbols): Combine calls to
446 map_matching_symbols. Update.
447 * dwarf2read.c (dw2_map_matching_symbols): Update.
448 * psymtab.c (match_partial_symbol): Change type; update.
449 (psym_map_matching_symbols): Likewise.
450 * symfile-debug.c (debug_qf_map_matching_symbols): Change
452 * symfile.h (struct quick_symbol_functions)
453 <map_matching_symbols>: Change "name" to be a lookup_name_info.
456 2019-09-10 Tom Tromey <tromey@adacore.com>
458 * psymtab.c (map_block): Remove.
459 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
460 * symtab.c (iterate_over_symbols_terminated): New function.
461 * symtab.c (iterate_over_symbols_terminated): Declare.
463 2019-09-10 Tom Tromey <tromey@adacore.com>
465 * ada-lang.c (ada_iterate_over_symbols): Return bool.
466 * language.h (struct language_defn) <la_iterate_over_symbols>:
468 * symtab.c (iterate_over_symbols): Return bool.
469 * symtab.h (iterate_over_symbols): Return bool.
471 2019-09-10 Tom Tromey <tromey@adacore.com>
473 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
474 (add_nonlocal_symbols): Update.
475 * dwarf2read.c (dw2_map_matching_symbols): Change type.
476 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
477 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
478 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
479 Change type of "callback". Remove "data".
482 2019-09-09 Ali Tamur <tamur@google.com>
484 * dwarf2read.c (comp_unit_head): Update comment.
485 (dwarf2_dwo_name): New function declaration.
486 (dwarf_unit_type_name): New function declaration.
487 (read_comp_unit_head): Add support for new compilation units,
488 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
489 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
490 (currently named as "signature") in their header. Also clarify error
492 (lookup_dwo_id): New function. Returns the dwo id of the given
494 (lookup_dwo_unit): Use the new lookup_dwo_id function.
495 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
497 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
498 (dwarf2_dwo_name): Get the dwo name if present.
499 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
502 2019-09-09 Tom Tromey <tom@tromey.com>
504 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
506 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
508 * python/python.c (do_start_initialization): Make progname_copy static,
509 to avoid a leak report.
511 2019-09-08 Tom Tromey <tom@tromey.com>
513 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
515 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
517 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
518 Change type to gdb::optional<block_enum>.
519 (dw2_symtab_iter_init): Change block_index parameter type
520 to gdb::optional<block_enum>.
521 (dw2_lookup_symbol): Change block_index parameter
523 (dw2_debug_names_lookup_symbol): Likewise.
524 * psymtab.c (psym_lookup_symbol): Likewise.
525 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
526 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
529 2019-09-06 Christian Biesinger <cbiesinger@google.com>
531 * defs.h (relocate_gdb_directory): Change int to bool in
532 signature and rename flag to relocatable.
533 * main.c (relocate_path): Likewise.
534 (relocate_gdb_directory): Likewise.
536 2019-09-06 Alan Modra <amodra@gmail.com>
538 * coffread.c (coff_symfile_read): Constify filename variable.
539 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
540 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
541 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
542 * solib.c (reload_shared_libraries_1): Likewise.
543 * symfile.c (reread_symbols): Likewise.
544 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
545 * solib-darwin.c (darwin_bfd_open): Likewise.
546 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
548 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
550 * psymtab.c (print_partial_symbols): Handle missing domain_enum
551 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
553 2019-09-03 Tom Tromey <tromey@adacore.com>
555 * ada-valprint.c (ada_val_print_num): Don't recurse for range
557 (has_negatives): Unbias a range type bound.
558 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
559 * gdbtypes.c (operator==): Handle new field.
560 (create_range_type): Add "bias" parameter.
561 (create_static_range_type, resolve_dynamic_range): Update.
562 * gdbtypes.h (struct range_bounds) <bias>: New member.
563 (create_range_type): Add bias parameter.
564 * printcmd.c (print_scalar_formatted): Unbias range types.
565 * value.c (unpack_long): Unbias range types.
566 (pack_long): Bias range types.
568 2019-09-02 Alan Hayward <alan.hayward@arm.com>
570 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
573 2019-09-02 Alan Hayward <alan.hayward@arm.com>
575 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
576 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
577 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
578 (compile_probe_arg): Likewise.
579 * probe.h (get_argument_count): Likewise.
580 * solib-svr4.c (solib_event_probe_action): Likewise.
581 * stap-probe.c (stap_probe::get_argument_count): Likewise.
583 2019-09-02 Alan Hayward <alan.hayward@arm.com>
585 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
587 (svr4_create_solib_event_breakpoints): ...from here.
589 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
591 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
592 suffix from warning message.
594 2019-08-30 Tom Tromey <tom@tromey.com>
596 * tui/tui-winsource.h (struct tui_source_window_base)
597 <refresh_all>: Don't declare.
598 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
600 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
601 tui_show_locator_content.
602 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
604 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
605 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
608 2019-08-30 Tom Tromey <tom@tromey.com>
610 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
612 2019-08-30 Tom Tromey <tom@tromey.com>
614 * tui/tui-stack.c (_initialize_tui_stack): Move later.
615 Remove unnecessary forward declarations.
617 2019-08-30 Tom Tromey <tom@tromey.com>
619 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
621 (tui_update_locator_fullname, tui_show_frame_info): Don't call
622 tui_show_locator_content.
624 2019-08-30 Tom Tromey <tom@tromey.com>
626 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
627 (tui_locator_window::rerender): Rewrite using body of previous
628 tui_show_locator_content.
630 2019-08-30 Tom Tromey <tom@tromey.com>
632 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
633 set_locator_fullname>: New methods.
634 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
635 Rename from tui_set_locator_fullname.
636 (tui_locator_window::set_locator_info): Rename from
637 tui_set_locator_info. Return bool.
638 (tui_update_locator_fullname, tui_show_frame_info): Update.
640 2019-08-30 Tom Tromey <tom@tromey.com>
642 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
644 2019-08-30 Tom Tromey <tom@tromey.com>
646 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
649 2019-08-30 Tom Tromey <tom@tromey.com>
651 * tui/tui-wingeneral.c (box_win): Assume win_info and
652 win_info->handle cannot be NULL.
654 2019-08-30 Tom Tromey <tom@tromey.com>
656 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
657 refresh_window>: Declare.
658 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
660 (tui_data_item_window::rerender): Rename from
661 tui_display_register.
662 (tui_data_item_window::refresh_window): New method.
663 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
666 2019-08-30 Tom Tromey <tom@tromey.com>
668 * tui/tui-regs.h (struct tui_data_window) <regs_content,
669 regs_column_count, current_group>: Move later. Now private.
670 <get_current_group>: New method.
671 * tui/tui-regs.c (tui_reg_command): Update.
672 * tui/tui-layout.c (tui_set_layout): Update.
674 2019-08-30 Tom Tromey <tom@tromey.com>
676 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
677 (tui_data_window::rerender): Don't call
678 check_and_display_highlight_if_needed.
679 (tui_data_window::refresh_all): Remove call to
682 2019-08-30 Tom Tromey <tom@tromey.com>
684 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
685 (tui_data_window::display_registers_from)
686 (tui_data_window::display_reg_element_at_line)
687 (tui_data_window::display_registers_from_line): Remove checks of
690 2019-08-30 Tom Tromey <tom@tromey.com>
692 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
694 * tui/tui-regs.c (tui_data_window::show_registers): Call
696 (tui_data_window::rerender): Rename from display_all_data.
697 (tui_data_window::rerender): Remove old implementation.
699 2019-08-30 Tom Tromey <tom@tromey.com>
701 * tui/tui-regs.c (tui_data_window::display_all_data): Change
703 * tui/tui-data.h (NO_DATA_STRING): Remove define.
705 2019-08-29 Bernhard Wodok <barto@gmx.net>
706 Sergio Durigan Junior <sergiodj@redhat.com>
709 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
711 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
713 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
714 when searching for types.
716 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
718 * f-lang.c (f_language_defn): Use f_print_typedef.
719 * f-lang.h (f_print_typedef): Declare.
720 * f-typeprint.c (f_print_typedef): Define.
722 2019-08-27 Christian Biesinger <cbiesinger@google.com>
724 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
726 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
728 * cli/cli-utils.c (info_print_options_defs): Delete.
729 (make_info_print_options_def_group): Delete.
730 (extract_info_print_options): Delete.
731 (info_print_command_completer): Delete.
732 (info_print_args_help): Add extra parameter, and optionally
733 include text about -n flag.
734 * cli/cli-utils.h (struct info_print_options): Delete.
735 (extract_info_print_options): Delete declaration.
736 (info_print_command_completer): Delete declaration.
737 (info_print_args_help): Add extra parameter, extend header
739 * python/python.c (gdbpy_rbreak): Pass additional parameter to
741 * stack.c (struct info_print_options): New type.
742 (info_print_options_defs): New file scoped variable.
743 (make_info_print_options_def_group): New static function.
744 (info_print_command_completer): New static function.
745 (info_locals_command): Update to use new local functions.
746 (info_args_command): Likewise.
747 (_initialize_stack): Add extra parameter to calls to
748 info_print_args_help.
749 * symtab.c (search_symbols): Add extra parameter, use this to
750 possibly excluse non-debug symbols.
751 (symtab_symbol_info): Add extra parameter, which is passed on to
753 (struct info_print_options): New type.
754 (info_print_options_defs): New file scoped variable.
755 (make_info_print_options_def_group): New static function.
756 (info_print_command_completer): New static function.
757 (info_variables_command): Update to use local functions, and pass
758 extra parameter through to symtab_symbol_info.
759 (info_functions_command): Likewise.
760 (info_types_command): Pass additional argument through to
762 (rbreak_command): Pass extra argument to search_symbols.
763 (_initialize_symtab): Add extra arguments for calls to
764 info_print_args_help, and update help text for 'info variables',
765 'whereis', and 'info functions' commands.
766 * symtab.h (search_symbols): Add extra argument to declaration.
767 * NEWS: Mention new flags.
769 2019-08-26 Christian Biesinger <cbiesinger@google.com>
771 * symtab.c (lookup_static_symbol): Call the new function (and move
772 it down to be next to lookup_global_symbol).
773 (struct global_sym_lookup_data): Add block_enum member and rename to...
774 (struct global_or_static_sym_lookup_data): ...this.
775 (lookup_symbol_global_iterator_cb): Pass block_index instead of
776 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
777 (lookup_symbol_global_or_static_iterator_cb): ...this.
778 (lookup_global_or_static_symbol): New function.
779 (lookup_global_symbol): Call new function.
781 2019-08-26 Tom de Vries <tdevries@suse.de>
784 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
785 when pc_probe.prob == NULL.
787 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
789 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
790 variable symbol_linkage to symbol_linkage_.
792 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
794 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
795 represent whether the symbol is static, dynamic, or we don't
798 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
800 * gdb/rx-tdep.c (rx_register_names): New.
801 (rx_register_name): Delete.
802 (rx_psw_type): Delete.
803 (rx_fpsw_type): Delete.
804 (rx_register_type): Delete.
805 (rx_gdbarch_init): Convert target-descriptions.
806 (_initialize_rx_tdep): Add initialize_tdesc_rx.
807 * gdb/features/Makefile: Add rx.xml.
808 * gdb/features/rx.xml: New.
809 * gdb/features/rx.c: Generated.
810 * gdb/NEWS: Mention target description support.
812 2019-08-22 Christian Biesinger <cbiesinger@google.com>
814 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
817 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
819 * configure.ac: Don't check for 'dlfcn.h' (moved to
820 gdbsupport/common.m4).
821 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
823 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
824 * compile/compile-c-support.c: Include
825 'gdbsupport/gdb-dlfcn.h'.
826 * gdbsupport/common.m4: Check for 'dlfcn.h'.
827 * gdb-dlfcn.c: Move to...
828 * gdbsupport/gdb-dlfcn.c: ... here.
829 * gdb-dlfcn.h: Move to...
830 * gdbsupport/gdb-dlfcn.h: ... here.
832 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
834 * nios2-tdep.c (struct reg_value): Improve comments. Make
835 the offset field signed.
837 2019-08-22 Christian Biesinger <cbiesinger@google.com>
839 * python/lib/gdb/__init__.py (_execute_file): New function.
840 * python/python.c (python_run_simple_file): Call gdb._execute_file
843 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
845 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
846 all uses as this was never set to anything but a zero value.
848 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
850 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
852 2019-08-21 Christian Biesinger <cbiesinger@google.com>
854 * tui/tui-data.h (tui_gen_win_info): Add an =default
855 move constructor, required by some GCC versions.
857 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
859 * go32-nat.c (go32_sysinfo): Add hygon_p.
861 2019-08-20 Tom Tromey <tom@tromey.com>
863 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
864 line_from_reg_element_no, first_reg_element_no_inline,
865 display_all_data, delete_data_content_windows,
866 erase_data_content>: Now private.
868 2019-08-20 Tom Tromey <tom@tromey.com>
870 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
871 (tui_unhighlight_win, tui_highlight_win)
872 (tui_win_info::make_window): Update.
873 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
875 2019-08-20 Tom Tromey <tom@tromey.com>
877 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
878 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
879 (MAX_PID_WIDTH): Move to tui-stack.c.
880 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
881 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
882 (MAX_PID_WIDTH): Move from tui-data.h.
884 2019-08-20 Tom Tromey <tom@tromey.com>
886 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
887 * tui/tui-wingeneral.c (box_win): Change type of win_info.
889 (tui_gen_win_info::make_window): Rename from tui_make_window.
890 (tui_win_info::make_window): New method.
891 (tui_gen_win_info::make_visible): Update.
892 * tui/tui-source.c (tui_source_window::set_contents): Update.
893 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
894 (tui_data_window::display_registers_from): Update.
895 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
896 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
900 (struct tui_win_info) <make_window>: Declare.
901 <can_box>: Now virtual.
903 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
904 * tui/tui-command.c (tui_cmd_window::resize): Update.
906 2019-08-20 Tom Tromey <tom@tromey.com>
908 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
909 * tui/tui-regs.c (tui_data_window::show_registers): Update.
910 (tui_data_window::check_register_values): Update.
912 2019-08-20 Tom Tromey <tom@tromey.com>
914 * tui/tui-regs.h (struct tui_data_window): Use
915 DISABLE_COPY_AND_ASSIGN.
916 <regs_content>: Change type, removing unique_ptr.
917 <tui_data_window>: Add move constructor.
918 * tui/tui-regs.c (tui_data_window::show_registers)
919 (tui_data_window::show_register_group)
920 (tui_data_window::display_registers_from)
921 (tui_data_window::display_registers_from)
922 (tui_data_window::first_data_item_displayed)
923 (tui_data_window::delete_data_content_windows)
924 (tui_data_window::rerender, tui_data_window::refresh_window)
925 (tui_data_window::check_register_values): Update.
927 2019-08-20 Tom Tromey <tom@tromey.com>
929 * tui/tui-regs.h (struct tui_data_window) <show_registers,
930 show_register_group>: Declare.
931 (tui_show_register_group): Don't declare.
932 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
934 (tui_data_window::show_register_group): Rename from
935 tui_show_register_group.
936 (tui_data_window::check_register_values, tui_reg_command):
938 * tui/tui-layout.c (tui_set_layout): Update.
940 2019-08-20 Tom Tromey <tom@tromey.com>
942 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
944 (tui_check_register_values): Don't declare.
945 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
946 from tui_check_register_values.
947 * tui/tui-hooks.c (tui_register_changed): Update.
949 2019-08-20 Tom Tromey <tom@tromey.com>
951 * tui/tui-regs.c (tui_reg_layout): Move later.
952 (tui_show_registers): Don't enable TUI mode or change layout.
954 2019-08-20 Tom Tromey <tom@tromey.com>
956 * tui/tui-regs.h (struct tui_data_item_window)
957 <~tui_data_item_window>: Remove.
958 <content>: Now a unique_xmalloc_ptr.
959 * tui/tui-regs.c (tui_register_format): Return a
961 (tui_get_register): Update.
962 (~tui_data_item_window): Remove.
963 (tui_data_window::display_registers_from, tui_display_register):
965 * tui/tui-io.h (tui_expand_tabs): Update.
966 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
967 Remove "col" parameter.
969 2019-08-20 Tom Tromey <tom@tromey.com>
971 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
973 * tui/tui-regs.c (~tui_data_item_window): Update.
975 2019-08-20 Tom Tromey <tom@tromey.com>
977 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
980 2019-08-20 Tom Tromey <tom@tromey.com>
982 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
984 2019-08-20 Tom Tromey <tom@tromey.com>
986 * tui/tui-source.h (struct tui_source_window): Update.
987 * tui/tui-regs.c (tui_show_registers): Update.
988 * tui/tui-disasm.h (struct tui_disasm_window): Update.
989 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
990 (NO_REGS_STRING): Remove defines.
992 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
994 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
995 unnecessary thread walk if remote doesn't support the packet.
997 2019-08-19 Tom Tromey <tromey@adacore.com>
999 * python/py-value.c (value_has_field): Fix indentation.
1001 2019-08-19 Tom Tromey <tromey@adacore.com>
1003 * printcmd.c (do_one_display, info_display_command): Update.
1004 * block.h (contained_in): Return bool. Add allow_nested
1006 * block.c (contained_in): Return bool. Add allow_nested
1009 2019-08-19 Tom Tromey <tom@tromey.com>
1011 * configure: Rebuild.
1012 * configure.ac: Disallow the combination of -static-libstdc++ and
1014 * source-cache.c (get_language_name): Handle rust.
1015 (source_cache::get_source_lines): Ignore highlighting exceptions.
1017 2019-08-16 Tom Tromey <tom@tromey.com>
1019 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
1020 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
1021 (struct tui_source_window_base) <make_visible, refresh_window,
1022 resize>: Remove methods.
1023 <execution_info>: Remove field.
1024 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
1025 (tui_show_source_line, tui_source_window_base)
1026 (~tui_source_window_base): Update.
1027 (tui_source_window_base::resize)
1028 (tui_source_window_base::make_visible)
1029 (tui_source_window_base::refresh_window): Remove.
1030 (tui_source_window_base::update_exec_info): Update.
1031 * tui/tui-source.c (tui_source_window::set_contents): Update.
1032 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1034 2019-08-16 Tom Tromey <tom@tromey.com>
1036 * tui/tui-hooks.c (tui_remove_hooks): Don't set
1037 deprecated_query_hook.
1039 2019-08-16 Tom Tromey <tom@tromey.com>
1041 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
1042 (tui_update_source_windows_with_line): Update.
1043 * tui/tui-source.h (struct tui_source_window)
1044 <show_symtab_source>: Declare.
1045 (tui_show_symtab_source): Don't declare.
1046 * tui/tui-source.c (tui_show_symtab_source): Rename from
1047 tui_show_symtab_source.
1049 2019-08-16 Tom Tromey <tom@tromey.com>
1051 * tui/tui-winsource.h (struct tui_source_window_base)
1052 <set_contents>: Declare.
1053 * tui/tui-winsource.c
1054 (tui_source_window_base::update_source_window_as_is): Update.
1055 * tui/tui-source.h (struct tui_source_window) <set_contents>:
1057 (tui_set_source_content): Don't declare.
1058 * tui/tui-source.c (tui_source_window::set_contents): Rename from
1059 tui_set_source_content.
1060 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
1062 (tui_set_disassem_content): Don't declare.
1063 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
1064 tui_set_disassem_content.
1066 2019-08-16 Tom Tromey <tom@tromey.com>
1068 * tui/tui-winsource.h (struct tui_source_window_base)
1069 <update_breakpoint_info>: Declare.
1070 (tui_update_breakpoint_info): Don't declare.
1071 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
1072 (tui_update_all_breakpoint_info): Update.
1073 (tui_source_window_base::update_breakpoint_info): Rename from
1074 tui_update_breakpoint_info.
1075 (tui_source_window_base::update_exec_info): Update.
1077 2019-08-16 Tom Tromey <tom@tromey.com>
1079 * tui/tui-winsource.h (struct tui_source_window_base)
1080 <update_source_window>: Declare.
1081 (tui_update_source_window): Don't declare.
1082 * tui/tui-winsource.c
1083 (tui_source_window_base::update_source_window): Rename from
1084 tui_update_source_window.
1085 (tui_source_window_base::rerender): Update.
1086 * tui/tui-source.c (tui_source_window::maybe_update): Update.
1087 * tui/tui-disasm.c (tui_show_disassem)
1088 (tui_show_disassem_and_update_source)
1089 (tui_disasm_window::maybe_update): Update.
1091 2019-08-16 Tom Tromey <tom@tromey.com>
1093 * tui/tui-winsource.h (struct tui_source_window_base)
1094 <update_source_window_as_is>: Declare.
1095 (tui_update_source_window_as_is): Don't declare.
1096 * tui/tui-winsource.c (tui_update_source_window): Update
1097 (tui_source_window_base::update_source_window_as_is): Rename from
1098 tui_update_source_window_as_is.
1099 (tui_source_window_base::refill): Update.
1100 * tui/tui-source.c (tui_show_symtab_source): Update.
1101 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
1104 2019-08-16 Tom Tromey <tom@tromey.com>
1106 * tui/tui-winsource.h (tui_update_source_window)
1107 (tui_update_source_window_as_is): Remove "noerror" parameter.
1108 * tui/tui-winsource.c (tui_update_source_window)
1109 (tui_update_source_window_as_is): Remove "noerror" parameter.
1110 (tui_update_source_windows_with_addr)
1111 (tui_update_source_windows_with_line)
1112 (tui_source_window_base::rerender)
1113 (tui_source_window_base::refill): Update.
1114 * tui/tui-source.h (tui_set_source_content)
1115 (tui_show_symtab_source): Remove "noerror" parameter.
1116 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
1118 (tui_show_symtab_source): Likewise.
1119 (tui_source_window::maybe_update): Update.
1120 * tui/tui-disasm.c (tui_show_disassem)
1121 (tui_show_disassem_and_update_source)
1122 (tui_disasm_window::do_scroll_vertical)
1123 (tui_disasm_window::maybe_update): Update.
1125 2019-08-16 Tom Tromey <tom@tromey.com>
1127 * tui/tui.c (tui_is_window_visible): Update.
1128 * tui/tui-wingeneral.c (tui_make_window)
1129 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
1130 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
1131 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
1132 (tui_set_win_height_command, parse_scrolling_args): Update.
1133 * tui/tui-source.c (tui_source_window::style_changed): Update.
1134 * tui/tui-regs.c (tui_show_registers)
1135 (tui_data_window::first_data_item_displayed)
1136 (tui_data_window::delete_data_content_windows)
1137 (tui_check_register_values, tui_reg_command): Update.
1138 * tui/tui-disasm.c (tui_show_disassem): Update.
1139 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
1141 <is_visible>: Remove field.
1142 * tui/tui-data.c (tui_next_win, tui_prev_win)
1143 (tui_delete_invisible_windows): Update.
1145 2019-08-16 Tom Tromey <tom@tromey.com>
1147 * tui/tui-winsource.h (struct tui_source_window_base)
1148 <m_has_locator>: Remove.
1149 * tui/tui-layout.c (show_source_disasm_command, show_data)
1150 (show_source_or_disasm_and_command): Update.
1152 2019-08-16 Alan Hayward <alan.hayward@arm.com>
1154 * NEWS (Other MI changes): New subsection.
1155 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
1156 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
1157 * arch-utils.c (default_get_pc_address_flags): New function.
1158 * arch-utils.h (default_get_pc_address_flags): New declaration.
1159 * gdbarch.sh: Add get_pc_address_flags.
1160 * gdbarch.c: Regenerate.
1161 * gdbarch.h: Likewise.
1162 * stack.c (print_pc): New function.
1163 (print_frame_info) (print_frame): Call print_pc.
1165 2019-08-16 Tom de Vries <tdevries@suse.de>
1167 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
1168 print_objfile_section_info.
1170 2019-08-15 Tom Tromey <tom@tromey.com>
1172 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
1173 calling update_cmdwin_start_line.
1174 * tui/tui-winsource.h (struct tui_source_window_base)
1175 <do_make_visible_with_new_height, set_new_height>: Don't declare.
1176 <rerender>: Declare.
1177 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
1179 (tui_source_window_base::set_new_height): Remove.
1180 (tui_source_window_base::rerender): Rename from
1181 do_make_visible_with_new_height.
1182 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
1184 (tui_win_info::make_invisible_and_set_new_height)
1185 (tui_win_info::make_visible_with_new_height): Remove.
1186 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
1188 * tui/tui-stack.c (tui_locator_window::rerender): New method.
1189 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
1190 do_make_visible_with_new_height>: Don't declare.
1191 <rerender>: Declare.
1192 * tui/tui-regs.c (tui_data_window::rerender): Rename from
1194 (tui_data_window::do_make_visible_with_new_height): Remove.
1195 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
1196 call tui_show_locator_content.
1197 (tui_gen_win_info::resize): Call rerender.
1198 (show_source_or_disasm_and_command): Don't call
1199 tui_show_locator_content.
1200 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
1202 (struct tui_win_info) <rerender>: Declare.
1203 <set_new_height, make_invisible_and_set_new_height,
1204 make_visible_with_new_height>: Don't declare.
1205 * tui/tui-data.c (tui_win_list::rerender): New method.
1206 * tui/tui-command.h (struct tui_cmd_window)
1207 <do_make_visible_with_new_height>: Don't declare.
1209 (tui_cmd_window::do_make_visible_with_new_height): Remove.
1211 2019-08-15 Tom Tromey <tromey@adacore.com>
1213 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
1214 * ada-lang.c (ada_enum_name): Likewise.
1216 2019-08-15 Christian Biesinger <cbiesinger@google.com>
1218 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
1220 (GdbOutputErrorFile): Likewise.
1221 (global scope): Adjust constructor calls to GdbOutput{,Error}File
1223 (execute_unwinders): Rename to have a leading underscore.
1224 (auto_load_packages): Likewise.
1225 (global scope): Adjust call to auto_load_packages accordingly.
1226 (GdbSetPythonDirectory): Likewise.
1227 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
1228 instead of execute_unwinders.
1230 2019-08-15 Tom Tromey <tom@tromey.com>
1232 * tui/tui-layout.c (show_layout, show_source_disasm_command)
1233 (show_data): Don't change window visibility.
1234 (tui_gen_win_info::resize): Remove special case for command
1235 window. Use wresize, when available.
1236 (show_source_or_disasm_and_command): Don't change window
1238 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
1239 <make_visible>: New method.
1240 * tui/tui-command.c (tui_cmd_window::resize): New method.
1242 2019-08-15 Tom Tromey <tom@tromey.com>
1244 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
1245 (struct tui_source_windows): New.
1246 * tui/tui-winsource.c (tui_display_main): Update.
1247 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
1248 (new_height_ok, parse_scrolling_args): Update.
1249 * tui/tui-layout.c (show_layout, show_data): Update.
1250 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
1251 (tui_add_to_source_windows): Don't declare.
1252 * tui/tui-data.c (source_windows, tui_source_windows)
1253 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
1255 2019-08-15 Tom Tromey <tom@tromey.com>
1257 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
1259 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
1260 * tui/tui-layout.c (show_source_disasm_command, show_data):
1262 (tui_gen_win_info::resize): Rename.
1263 (show_source_or_disasm_and_command): Update.
1264 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
1267 2019-08-15 Tom Tromey <tom@tromey.com>
1269 * tui/tui-stack.c (tui_initialize_static_data): Remove.
1270 * tui/tui-interp.c (tui_interp::init): Don't call
1271 tui_initialize_static_data.
1272 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
1274 2019-08-15 Tom Tromey <tom@tromey.com>
1276 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
1277 examine tui_win_list.
1279 2019-08-15 Tom Tromey <tom@tromey.com>
1281 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
1282 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
1283 tui_clear_source_content.
1284 (tui_clear_source_content): Remove.
1285 (tui_source_window_base::do_erase_source_content): Hoist call to
1287 * tui/tui-stack.c (tui_show_frame_info): Don't call
1288 tui_clear_source_content.
1290 2019-08-15 Tom Tromey <tom@tromey.com>
1292 * tui/tui-winsource.h (struct tui_source_window_base)
1293 <do_erase_source_content>: New method.
1294 <erase_source_content>: New method.
1295 (tui_erase_source_content): Don't declare.
1296 * tui/tui-winsource.c (tui_clear_source_content): Update.
1297 (tui_source_window_base::do_erase_source_content): Rename from
1298 tui_erase_source_content.
1299 (tui_source_window_base::show_source_content): Update.
1300 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
1301 * tui/tui-source.h (struct tui_source_window)
1302 <erase_source_content>: New method.
1303 * tui/tui-disasm.h (struct tui_disasm_window)
1304 <erase_source_content>: New method.
1306 2019-08-15 Tom Tromey <tom@tromey.com>
1308 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
1309 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
1311 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
1312 * tui/tui-source.c (tui_set_source_content): Update.
1313 * tui/tui-disasm.c (tui_set_disassem_content): Update.
1315 2019-08-15 Tom Tromey <tom@tromey.com>
1317 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
1318 * tui/tui-winsource.c (tui_line_is_displayed): Move to
1320 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
1322 * tui/tui-source.c (tui_source_window::line_is_displayed): New
1324 (tui_source_window::maybe_update): Update.
1326 2019-08-15 Tom Tromey <tom@tromey.com>
1328 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
1329 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
1331 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
1333 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
1335 (tui_disasm_window::maybe_update): Update.
1337 2019-08-15 Tom Tromey <tom@tromey.com>
1339 * tui/tui-winsource.h (struct tui_source_window_base)
1340 <maybe_update>: Declare.
1341 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
1343 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
1345 * tui/tui-source.c (tui_source_window::maybe_update): New method.
1346 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
1348 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
1350 2019-08-15 Tom Tromey <tom@tromey.com>
1352 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
1354 2019-08-15 Tom Tromey <tom@tromey.com>
1356 * tui/tui-wingeneral.c: Include tui-stack.h.
1357 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
1358 (struct tui_locator_window): Move from tui-data.h.
1359 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
1360 (tui_initialize_static_data): Move from tui-data.c.
1361 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
1362 (struct tui_locator_window): Move to tui-stack.c.
1363 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
1364 (tui_initialize_static_data): Move to tui-stack.c.
1366 2019-08-15 Tom Tromey <tom@tromey.com>
1368 * tui/tui-layout.c (show_source_disasm_command)
1369 (show_source_or_disasm_and_command): Use make_visible method, not
1371 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
1374 2019-08-15 Tom Tromey <tom@tromey.com>
1376 * tui/tui-wingeneral.h (tui_make_window): Update.
1377 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
1379 (tui_gen_win_info::make_visible): Update.
1380 * tui/tui-regs.c (tui_data_window::display_registers_from):
1382 * tui/tui-layout.c (show_source_disasm_command)
1383 (show_source_or_disasm_and_command): Update.
1384 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
1385 (enum tui_box): Remove.
1386 (struct tui_win_info) <can_box>: New method.
1387 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
1390 2019-08-15 Tom de Vries <tdevries@suse.de>
1392 * linux-nat-trad.c: Include gdbarch.h.
1394 2019-08-14 Alan Hayward <alan.hayward@arm.com>
1396 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
1399 2019-08-14 Tom Tromey <tromey@adacore.com>
1401 * darwin-nat.c: Include gdbarch.h.
1402 * darwin-nat-info.c: Include gdbarch.h.
1404 2019-08-13 Tom Tromey <tom@tromey.com>
1406 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
1408 * tui/tui-data.c (tui_initialize_static_data): Update.
1410 2019-08-13 Tom Tromey <tom@tromey.com>
1412 * tui/tui-winsource.h (struct tui_exec_info_window)
1413 <~tui_exec_info_window, maybe_allocate_content, get_content,
1415 (struct tui_source_window_base) <set_exec_info_content,
1416 show_exec_info_content>: Don't declare.
1417 * tui/tui-winsource.c
1418 (tui_exec_info_window::maybe_allocate_content): Remove.
1419 (tui_source_window_base::update_exec_info): Rename from
1420 set_exec_info_content.
1421 (tui_source_window_base::show_exec_info_content)
1422 (tui_source_window_base::update_exec_info): Remove.
1424 2019-08-13 Tom Tromey <tom@tromey.com>
1426 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
1428 * tui/tui-winsource.c (tui_update_source_window_as_is)
1429 (tui_update_source_windows_with_addr, tui_erase_source_content):
1431 (tui_clear_exec_info_content): Remove.
1433 2019-08-13 Tom Tromey <tom@tromey.com>
1435 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
1437 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
1438 call tui_erase_exec_info_content.
1439 (tui_clear_exec_info_content): Rename from
1440 tui_erase_exec_info_content.
1441 (tui_clear_exec_info_content): Delete.
1443 2019-08-13 Tom Tromey <tom@tromey.com>
1445 * tui/tui-winsource.h (struct tui_source_window_base)
1446 <show_exec_info_content>: Declare.
1447 (tui_show_exec_info_content): Don't declare.
1448 * tui/tui-winsource.c
1449 (tui_source_window_base::show_exec_info_content): Rename from
1450 tui_show_exec_info_content.
1451 (tui_source_window_base::update_exec_info): Update.
1453 2019-08-13 Tom Tromey <tom@tromey.com>
1455 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
1456 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
1457 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
1458 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
1459 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
1460 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
1463 2019-08-13 Tom Tromey <tom@tromey.com>
1465 * tui/tui-winsource.h (struct tui_source_window_base)
1466 <update_exec_info>: Declare.
1467 (tui_update_exec_info): Don't declare.
1468 * tui/tui-winsource.c (tui_update_source_window_as_is)
1469 (tui_source_window_base::refresh_all)
1470 (tui_update_all_breakpoint_info): Update.
1471 (tui_source_window_base::update_exec_info): Rename from
1472 tui_update_exec_info.
1473 * tui/tui-stack.c (tui_show_frame_info): Update.
1475 2019-08-13 Tom Tromey <tom@tromey.com>
1477 * tui/tui-winsource.h (struct tui_source_window_base)
1478 <set_exec_info_content>: Declare.
1479 (tui_set_exec_info_content): Don't declare.
1480 * tui/tui-winsource.c
1481 (tui_source_window_base::set_exec_info_content): Rename from
1482 tui_set_exec_info_content.
1483 (tui_update_exec_info): Update.
1485 2019-08-13 Tom Tromey <tom@tromey.com>
1487 * tui/tui-winsource.h (struct tui_source_window_base)
1488 <show_source_content>: Declare.
1489 (tui_show_source_content): Don't declare.
1490 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1491 (tui_source_window_base::show_source_content): Rename from
1492 tui_show_source_content.
1493 (tui_source_window_base::refresh_all): Update.
1494 * tui/tui-layout.c (show_source_disasm_command)
1495 (show_source_or_disasm_and_command): Update.
1497 2019-08-13 Tom Tromey <tom@tromey.com>
1499 * tui/tui-winsource.c (tui_erase_source_content)
1500 (tui_show_source_content, tui_source_window_base::refresh_all):
1502 * tui/tui-wingeneral.h
1503 (tui_check_and_display_highlight_if_needed): Don't declare.
1504 * tui/tui-wingeneral.c
1505 (tui_win_info::check_and_display_highlight_if_needed): Rename from
1506 check_and_display_highlight_if_needed.
1507 * tui/tui-win.c (tui_rehighlight_all)
1508 (tui_win_info::make_visible_with_new_height): Update.
1509 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
1510 (tui_data_window::erase_data_content)
1511 (tui_data_window::display_all_data): Update.
1512 * tui/tui-data.h (struct tui_win_info)
1513 <check_and_display_highlight_if_needed>: Declare.
1515 2019-08-13 Tom Tromey <tom@tromey.com>
1517 * tui/tui-win.c (tui_resize_all): Call
1518 tui_delete_invisible_windows.
1519 * tui/tui-layout.c (show_layout): Call
1520 tui_delete_invisible_windows.
1521 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
1522 * tui/tui-data.c (tui_delete_invisible_windows): New function.
1524 2019-08-13 Tom Tromey <tom@tromey.com>
1526 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
1527 tui_add_win_to_layout.
1529 2019-08-13 Tom Tromey <tom@tromey.com>
1531 * tui/tui-layout.h (tui_default_win_height): Don't declare.
1532 * tui/tui-layout.c (tui_default_win_height): Now static.
1534 2019-08-13 Tom Tromey <tom@tromey.com>
1536 * tui/tui-layout.c (show_layout): Unify all layout cases into a
1538 (show_source_disasm_command, show_source_or_disasm_and_command):
1539 Don't check current layout.
1541 2019-08-13 Tom Tromey <tom@tromey.com>
1543 * tui/tui-wingeneral.c (make_all_visible): Remove.
1544 (tui_make_all_invisible): Simplify.
1545 * tui/tui-layout.c (tui_make_all_invisible): Move from
1546 tui-wingeneral.c; simplify.
1547 (show_layout): Hoist call to tui_make_all_invisible.
1548 (show_data): Don't call tui_make_all_invisible.
1550 2019-08-13 Tom Tromey <tom@tromey.com>
1552 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
1553 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
1555 2019-08-13 Tom Tromey <tom@tromey.com>
1557 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
1559 (show_source_disasm_command, show_data)
1560 (show_source_or_disasm_and_command): Don't use
1561 tui_set_current_layout_to.
1562 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
1563 * tui/tui-data.c (current_layout, tui_current_layout): Move to
1565 (tui_set_current_layout_to): Remove.
1567 2019-08-13 Tom Tromey <tom@tromey.com>
1569 * tui/tui-layout.c (tui_set_layout): Update.
1570 * tui/tui-data.h (struct tui_layout_def): Remove.
1571 (tui_layout_def): Don't declare.
1572 * tui/tui-data.c (layout_def): Remove.
1573 (tui_layout_def): Remove.
1575 2019-08-13 Tom Tromey <tom@tromey.com>
1577 * tui/tui-winsource.h (struct tui_source_window_base)
1578 <clear_detail>: No longer "override".
1579 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
1580 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
1581 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
1582 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
1584 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
1586 2019-08-13 Tom Tromey <tromey@adacore.com>
1588 * tracepoint.c: Don't include readline.h or history.h.
1590 2019-08-12 Tom Tromey <tom@tromey.com>
1592 * configure: Rebuild.
1593 * configure.ac: Check for readline 7.
1594 * NEWS: Mention readline 7 requirement.
1597 2019-08-12 Tom Tromey <tom@tromey.com>
1599 * mingw-hdep.c (gdb_select): Remove readline hack.
1601 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1603 * blockframe.c (find_pc_partial_function): Set *block to nullptr
1604 when the function fails.
1606 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
1608 * s390-tdep.c (s390_type_align): New function.
1609 (s390_gdbarch_init): Set it as type_align gdbarch method.
1611 2019-08-09 Tom de Vries <tdevries@suse.de>
1614 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
1615 pc_low with relocation offset.
1617 2019-08-07 Tom Tromey <tromey@adacore.com>
1619 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
1620 (print_frame_args): Update.
1621 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
1623 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1624 * frame.h (struct frame_arg): Add initializers.
1625 <error>: Now a unique_xmalloc_ptr.
1627 2019-08-07 Alan Hayward <alan.hayward@arm.com>
1629 * NEWS: Expand the Pointer Authentication entry.
1630 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
1631 (aarch64_frame_unmask_lr): ... to this.
1632 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
1633 Call aarch64_frame_unmask_lr.
1634 * frame.c (struct frame_info): Add "masked" variable.
1635 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
1636 (fprint_frame): Check for masked pc.
1637 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
1639 * python/py-framefilter.c (py_print_frame): Check for masked pc.
1640 * stack.c (print_frame): Check for masked pc.
1642 2019-08-06 Tom Tromey <tom@tromey.com>
1644 * stabsread.c (patch_block_stabs, read_one_struct_field)
1645 (read_enum_type): Use obstack_strndup.
1646 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
1647 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
1648 * dwarf2read.c (guess_full_die_structure_name)
1649 (anonymous_struct_prefix): Use obstack_strndup.
1650 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
1651 * c-exp.y (yylex): Use obstack_strndup.
1652 * ada-exp.y (write_object_renaming, write_ambiguous_var)
1653 (write_var_or_type): Use obstack_strndup.
1655 2019-08-06 Tom Tromey <tom@tromey.com>
1657 * symfile.c (reread_symbols): Use obstack_strdup.
1658 * stabsread.c (read_type): Use obstack_strdup.
1659 * gdb_obstack.h (obstack_strdup): New overload.
1660 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
1661 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
1662 (dwarf2_canonicalize_name): Use obstack_strdup.
1663 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
1664 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
1667 2019-08-06 Tom Tromey <tom@tromey.com>
1669 * gdb_obstack.h (obstack_strdup): Define.
1670 * gdb_obstack.c (obstack_strdup): Don't define.
1672 2019-08-06 Tom Tromey <tom@tromey.com>
1674 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
1676 * typeprint.c (typedef_hash_table::find_global_typedef): Use
1678 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
1679 * stabsread.c (common_block_start): Use obstack_strdup.
1680 * objfiles.c (set_objfile_main_name, objfile): Use
1682 * namespace.c (add_using_directive): Use obstack_strdup.
1683 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
1684 * jit.c (finalize_symtab): Use obstack_strdup.
1685 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
1686 (guess_partial_die_structure_name, partial_die_info::fixup)
1687 (dwarf2_name): Use obstack_strdup.
1688 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
1690 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
1691 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
1693 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
1695 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1697 * unittests/help-doc-selftests.c: New file.
1698 * Makefile.in: Add the new file.
1700 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1702 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
1703 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
1704 the full first line, except when FOR_VALUE_PREFIX. In this case,
1705 the trailing '.' is not output, and the first character is uppercased.
1706 (print_help_for_command): Update call to print_doc_line.
1707 (print_doc_of_command): Likewise.
1708 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
1709 * cli/cli-option.c (append_indented_doc): Do not append newline.
1710 (build_help_option): Append newline after first appended_indented_doc
1711 only if a second call is done.
1712 (build_help): Append 2 new lines before each option, except the first
1714 * compile/compile.c (_initialize_compile): Add new lines after
1715 %OPTIONS%, when not at the end of the help.
1716 Change help doc or code
1717 producing the help doc to respect the invariants.
1718 * maint-test-options.c (_initialize_maint_test_options): Likewise.
1719 Also removed the new line after 'Options:', as all other commands
1720 do not put an empty line between 'Options:' and the first option.
1721 * printcmd.c (_initialize_printcmd): Likewise.
1722 * stack.c (_initialize_stack): Likewise.
1723 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
1724 incorrectly telling COMMAND is optional.
1725 * ada-lang.c (_initialize_ada_language): Change help doc or code
1726 producing the help doc to respect the invariants.
1727 * ada-tasks.c (_initialize_ada_tasks): Likewise.
1728 * breakpoint.c (_initialize_breakpoint): Likewise.
1729 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
1730 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
1731 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
1732 * cli/cli-style.c (cli_style_option::add_setshow_commands,
1733 _initialize_cli_style): Likewise.
1734 * corelow.c (core_target_info): Likewise.
1735 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
1736 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
1737 * filesystem.c (_initialize_filesystem): Likewise.
1738 * frame.c (_initialize_frame): Likewise.
1739 * gnu-nat.c (add_task_commands): Likewise.
1740 * infcall.c (_initialize_infcall): Likewise.
1741 * infcmd.c (_initialize_infcmd): Likewise.
1742 * interps.c (_initialize_interpreter): Likewise.
1743 * language.c (_initialize_language): Likewise.
1744 * linux-fork.c (_initialize_linux_fork): Likewise.
1745 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
1746 * maint.c (_initialize_maint_cmds): Likewise.
1747 * memattr.c (_initialize_mem): Likewise.
1748 * printcmd.c (_initialize_printcmd): Likewise.
1749 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
1751 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
1752 * record-btrace.c (_initialize_record_btrace): Likewise.
1753 * record-full.c (_initialize_record_full): Likewise.
1754 * record.c (_initialize_record): Likewise.
1755 * regcache-dump.c (_initialize_regcache_dump): Likewise.
1756 * regcache.c (_initialize_regcache): Likewise.
1757 * remote.c (add_packet_config_cmd, init_remote_threadtests,
1758 _initialize_remote): Likewise.
1759 * ser-tcp.c (_initialize_ser_tcp): Likewise.
1760 * serial.c (_initialize_serial): Likewise.
1761 * skip.c (_initialize_step_skip): Likewise.
1762 * source.c (_initialize_source): Likewise.
1763 * stack.c (_initialize_stack): Likewise.
1764 * symfile.c (_initialize_symfile): Likewise.
1765 * symtab.c (_initialize_symtab): Likewise.
1766 * target-descriptions.c (_initialize_target_descriptions): Likewise.
1767 * top.c (init_main): Likewise.
1768 * tracefile-tfile.c (tfile_target_info): Likewise.
1769 * tracepoint.c (_initialize_tracepoint): Likewise.
1770 * tui/tui-win.c (_initialize_tui_win): Likewise.
1771 * utils.c (add_internal_problem_command): Likewise.
1772 * valprint.c (value_print_option_defs): Likewise.
1774 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
1777 * configure.ac: Drop enable-libmcheck support.
1778 * configure, config.in: Rebuild.
1779 * libmcheck.m4: Remove.
1780 * acinclude.m4: Don't include it.
1781 * Makefile.in: Don't distribute it.
1782 * top.c (print_gdb_configuration): Don't mention it.
1784 2019-08-06 Tom Tromey <tom@tromey.com>
1786 * utils.c (set_output_style): Sometimes pass stream to
1788 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
1789 * record-btrace.c (btrace_insn_history): Update.
1790 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
1792 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
1793 Update initializers.
1794 <m_uiout>: New field.
1796 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1797 Remove "uiout" parameter.
1798 (dump_insns): Update.
1799 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
1800 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
1802 2019-08-06 Christian Biesinger <cbiesinger@google.com>
1804 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
1805 (error_in_psymtab_expansion): Likewise.
1806 (lookup_symbol_via_quick_fns): Likewise.
1807 (basic_lookup_transparent_type_quick): Likewise.
1808 (basic_lookup_transparent_type_1): Likewise.
1810 2019-08-06 Tom Tromey <tromey@adacore.com>
1812 * source.c (last_source_error): Now bool.
1813 (print_source_lines_base): Make "noprint" bool. Only open
1814 source file when last_source_visited changes.
1816 2019-08-06 Tom Tromey <tromey@adacore.com>
1818 * annotate.c (annotate_source_line): Use g_source_cache.
1819 * source-cache.c (source_cache::get_plain_source_lines): Change
1820 parameters. Populate m_offset_cache.
1821 (source_cache::ensure): New method.
1822 (source_cache::get_line_charpos): New method.
1823 (extract_lines): Move lower. Change parameters.
1824 (source_cache::get_source_lines): Move lower.
1825 * source-cache.h (class source_cache): Update comment.
1826 <get_line_charpos>: New method.
1827 <get_source_lines>: Update comment.
1828 <clear>: Clear m_offset_cache.
1829 <get_plain_source_lines>: Change parameters.
1830 <ensure>: New method
1831 <m_offset_cache>: New member.
1832 * source.c (forget_cached_source_info_for_objfile): Update.
1833 (info_source_command): Use g_source_cache.
1834 (find_source_lines, open_source_file_with_line_charpos): Remove.
1835 (print_source_lines_base, search_command_helper): Use g_source_cache.
1836 * source.h (open_source_file_with_line_charpos): Don't declare.
1837 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
1838 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
1841 2019-08-06 Tom Tromey <tromey@adacore.com>
1843 * source-cache.c (source_cache::get_plain_source_lines):
1844 Remove "first_line" and "last_line" parameters.
1845 (source_cache::get_source_lines): Cache plain text.
1846 * source-cache.h (class source_cache)
1847 <get_plain_source_lines>: Update.
1849 2019-08-06 Tom Tromey <tromey@adacore.com>
1851 * source-cache.c (extract_lines): No longer a method.
1852 Changed type of parameter. Include final newline.
1853 (selftests::extract_lines_test): New function.
1854 (_initialize_source_cache): Likewise.
1855 * source-cache.h (class source_cache)
1856 <extract_lines>: Don't declare.
1858 2019-08-06 Tom Tromey <tromey@adacore.com>
1860 * breakpoint.c (init_breakpoint_sal): Update.
1861 (breakpoint): Update.
1862 * breakpoint.h (struct breakpoint) <filter>: Now a
1865 2019-08-05 Christian Biesinger <cbiesinger@google.com>
1867 * NEWS: Mention dictionary access on blocks.
1868 * python/py-block.c (blpy_getitem): New function.
1869 (block_object_as_mapping): New struct.
1870 (block_object_type): Use new struct for tp_as_mapping field.
1872 2019-08-05 Christian Biesinger <cbiesinger@google.com>
1874 * objfiles.h (objfile): Add a comment describing partial symbols.
1876 2019-08-05 Tom Tromey <tromey@adacore.com>
1878 * compile/compile.c (_initialize_compile): Use _(), not N_().
1879 * thread.c (_initialize_thread): Use _(), not N_().
1880 * stack.c (_initialize_stack): Use _(), not N_().
1881 * printcmd.c (_initialize_printcmd): Use _(), not N_().
1883 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1885 * dwarf2read.c (struct dw2_symtab_iterator):
1886 <want_specific_block>: Remove.
1887 <block_index>: Change type to gdb::optional.
1888 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
1889 change type of BLOCK_INDEX parameter to gdb::optional.
1890 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
1891 (dw2_lookup_symbol): Don't pass argument for
1892 WANT_SPECIFIC_BLOCK.
1893 (dw2_expand_symtabs_for_function): Don't pass argument for
1894 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
1895 (class dw2_debug_names_iterator)
1896 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
1897 parameter, change BLOCK_INDEX type to gdb::optional.
1898 <m_want_specific_block>: Remove.
1899 <m_block_index>: Change type to gdb::optional.
1900 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
1901 gdb::optional. Re-write in function of gdb::optional.
1902 (dw2_debug_names_lookup_symbol): Don't pass argument for
1903 WANT_SPECIFIC_BLOCK.
1904 (dw2_debug_names_expand_symtabs_for_function): Don't pass
1905 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
1908 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1910 * NEWS: Mention changes to "info sources" command.
1912 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1914 * symtab.c (filename_partial_match_opts): New struct type.
1915 (struct output_source_filename_data): New members
1916 regexp, c_regexp, partial_match.
1917 (output_source_filename): Use new members to decide to print file.
1918 (info_sources_option_defs): New variable.
1919 (make_info_sources_options_def_group, print_info_sources_header,
1920 info_sources_command_completer):
1922 (info_sources_command): Read new optional arguments.
1923 (_initialize_symtab): Update info sources help.
1925 2019-08-02 Alexandre Oliva <oliva@adacore.com>
1927 * ada-lang.c (exception_support_info_v0): Renamed from...
1928 (default_exception_support_info): ... this. Create new
1930 (ada_has_this_exception_support): Look up catch_handlers_sym.
1931 (ada_exception_support_info_sniffer): Try v0 after default.
1933 2019-08-01 Tom Tromey <tromey@adacore.com>
1935 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
1938 2019-08-01 Christian Biesinger <cbiesinger@google.com>
1940 * s12z-tdep.c: Fix include path for s12z-opc.h.
1942 2019-08-01 Alan Hayward <alan.hayward@arm.com>
1944 * NEWS: Require GNU make 3.82.
1946 2019-07-16 Tom Tromey <tom@tromey.com>
1948 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
1951 2019-07-30 Tom Tromey <tromey@adacore.com>
1953 * block.c (contained_in): Remove BLOCK_FUNCTION check.
1955 2019-07-30 Kevin Buettner <kevinb@redhat.com>
1957 * printcmd.c (print_address_symbolic): Print negative offsets.
1958 (build_address_symbolic): Force signed arithmetic when computing
1961 2019-07-30 Christian Biesinger <cbiesinger@google.com>
1963 PR/24474: Add a function to lookup static variables.
1964 * NEWS: Mention this new function.
1965 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
1966 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
1967 * python/python.c (python_GdbMethods): Add new function.
1969 2019-07-29 Christian Biesinger <cbiesinger@google.com>
1971 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
1972 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
1973 (objfpy_lookup_static_symbol): New function.
1974 (objfile_object_methods): Add new functions.
1976 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1978 * NEWS: Mention 'set|show print frame-info'. Mention new
1979 'presence' value for 'frame-arguments'. Mention new '-frame-info'
1980 backtrace argument. Mention that python frame filtering code
1981 is now consistent with what 'backtrace' command prints.
1983 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1985 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
1987 (print_frame_info_auto, print_frame_info_source_line,
1988 print_frame_info_location, print_frame_info_source_and_location,
1989 print_frame_info_location_and_address, print_frame_info_short_location):
1991 (struct frame_print_options): New member print_frame_info.
1992 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
1993 * stack.h (get_user_print_what_frame_info): New declaration.
1994 (frame_show_address): New declaration.
1995 * stack.c (print_frame_arguments_choices): New value 'presence'.
1996 (print_frame_info_auto, print_frame_info_source_line,
1997 print_frame_info_location, print_frame_info_source_and_location,
1998 print_frame_info_location_and_address, print_frame_info_short_location,
1999 print_frame_info_choices, print_frame_info_print_what): New definitions.
2000 (print_frame_args): Only print dots for args if print frame-arguments
2002 (frame_print_option_defs): New element for "frame-info".
2003 (get_user_print_what_frame_info): New function.
2004 (frame_show_address): Make non static. Move comment to stack.h.
2005 (print_frame_info_to_print_what): New function.
2006 (print_frame_info): Update comment. Use fp_opts.print_frame_info
2007 to decide what to print.
2008 (backtrace_command_1): Handle the new print_frame_arguments_presence
2010 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
2011 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
2012 (py_print_frame): In non-mi mode, use LOCATION as default for
2013 print_what, similarly to frame information printed directly by
2014 backtrace command. Handle frame-info user option in non MI mode.
2016 2019-07-27 Kevin Buettner <kevinb@redhat.com>
2018 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
2019 Add case for debugging 32-bit target on 64-bit host. Revise
2022 2019-07-27 Kevin Buettner <kevinb@redhat.com>
2024 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
2025 instead of find_function_entry_range_from_pc.
2027 2019-07-27 Kevin Buettner <kevinb@redhat.com>
2029 * stack.c (find_frame_funname): Remove code which preferred
2030 minsym over symtab sym in "certain pathological cases".
2032 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
2033 parameter. Change type of "do_demangle" to bool.
2034 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2035 Pass suitable "prefer_sym_over_minsym" flag to
2036 build_address_symbolic(). Don't output "+" for negative offsets.
2037 * printcmd.c (print_address_symbolic): Update invocation of
2038 build_address_symbolic to include a "prefer_sym_over_minsym"
2040 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
2041 Restrict cases in which use of minimal symbol is preferred to that
2042 of a found symbol. Update comments.
2044 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
2045 for entry pc when entry pc is out of range for that FDE.
2047 2019-07-26 Brian Callahan <bcallah@openbsd.org>
2050 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
2053 2019-07-25 Christian Biesinger <cbiesinger@google.com>
2055 * python/py-objfile.c (add_separate_debug_file): Fix comment about
2056 this function's Python signature.
2059 2019-07-24 Christian Biesinger <cbiesinger@google.com>
2061 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
2062 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
2063 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
2064 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
2065 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
2068 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
2070 * h8300-tdep.c (h8300_register_name_common): New.
2071 h8300_register_name): Use h8300_register_name_common.
2072 (h8300s_register_name): Likewise.
2073 (h8300sx_register_name): Likewise.
2074 (h8300h_register_nam): New.
2075 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
2078 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
2080 * arm-tdep.c (arm_skip_cmse_entry): New function.
2081 (arm_is_sgstubs_section): New function.
2082 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
2084 2019-07-22 Tom Tromey <tom@tromey.com>
2086 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
2089 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2091 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
2094 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2096 * symtab.c (search_symbols): Adjust msymbol matching type arrays
2097 so that GDB doesn't match any msymbols when searching in the
2099 (print_symbol_info): Print using typedef_print or type_print based
2100 on the type of the symbol. Add updated FIXME comment moved from...
2101 (_initialize_symtab): ... move and update FIXME comment to above.
2103 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2105 * NEWS: Mention adding -q option to "info types".
2106 * symtab.c (struct info_types_options): New struct.
2107 (info_types_options_defs): New variable.
2108 (make_info_types_options_def_group): New function.
2109 (info_types_command): Use gdb::option framework to parse options.
2110 (info_types_command_completer): New function.
2111 (_initialize_symtab): Extend the help text on "info types" and
2112 register command completer.
2114 2019-07-21 Christian Biesinger <cbiesinger@google.com>
2116 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
2117 (lookup_symbol_in_objfile): Change int to block_enum and add a
2118 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
2120 2019-07-20 Christian Biesinger <cbiesinger@google.com>
2122 * MAINTAINERS (Write After Approval): Add self.
2124 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
2126 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
2127 instruction to the dummy code region.
2129 2019-07-19 Tom Tromey <tromey@adacore.com>
2131 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
2132 (ARGSUSED, PARAMS, __func__): Remove rules.
2134 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2136 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
2137 * features/arm/arm-with-iwmmxt.c: Remove.
2138 * features/arm/arm-with-iwmmxt.xml: Remove.
2139 * features/arm/arm-with-m-fpa-layout.c: Remove.
2140 * features/arm/arm-with-m-fpa-layout.xml: Remove.
2141 * features/arm/arm-with-m-vfp-d16.c: Remove.
2142 * features/arm/arm-with-m-vfp-d16.xml: Remove.
2143 * features/arm/arm-with-m.c: Remove.
2144 * features/arm/arm-with-m.xml: Remove.
2145 * features/arm/arm-with-neon.c: Remove.
2146 * features/arm/arm-with-neon.xml: Remove.
2147 * features/arm/arm-with-vfpv2.c: Remove.
2148 * features/arm/arm-with-vfpv2.xml: Remove.
2149 * features/arm/arm-with-vfpv3.c: Remove.
2150 * features/arm/arm-with-vfpv3.xml: Remove.
2152 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2154 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
2156 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2158 * arch/aarch32.c (aarch32_create_target_description): Create
2159 target descriptions using features.
2160 * arch/arm.c (arm_create_target_description)
2161 (arm_create_mprofile_target_description): Likewise.
2162 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
2164 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2166 * Makefile.in: Add new files.
2167 * aarch32-tdep.c: New file.
2168 * aarch32-tdep.h: New file.
2169 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
2170 Call aarch32_read_description.
2171 * arch/aarch32.c: New file.
2172 * arch/aarch32.h: New file.
2173 * arch/arm.c (arm_create_target_description)
2174 (arm_create_mprofile_target_description): New function.
2175 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
2176 (arm_create_target_description)
2177 (arm_create_mprofile_target_description): New declaration.
2178 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
2179 read_description functions.
2180 * arm-linux-nat.c (arm_linux_nat_target::read_description):
2182 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
2183 * arm-tdep.c (tdesc_arm_list): New variable.
2184 (arm_register_g_packet_guesses): Call create description functions.
2185 (arm_read_description) (arm_read_mprofile_description): New
2187 * arm-tdep.h (arm_read_description)
2188 (arm_read_mprofile_description): Add declaration.
2189 * configure.tgt: Add new files.
2191 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
2193 * top.c (new_ui_command): Open specified terminal just once.
2195 2019-07-18 Tom Tromey <tromey@adacore.com>
2197 * symtab.c (main_name): Constify return type.
2198 * symfile.c (set_initial_language): Update.
2199 * symtab.h (main_name): Constify return type.
2201 2019-07-17 Tom Tromey <tom@tromey.com>
2203 * tui/tui-winsource.c (tui_update_source_window)
2204 (tui_update_source_window_as_is)
2205 (tui_update_source_windows_with_line): Remove return.
2206 * tui/tui-disasm.c (tui_show_disassem)
2207 (tui_show_disassem_and_update_source): Remove return.
2208 * tui/tui.c (tui_reset): Remove return.
2209 * tui/tui-wingeneral.c
2210 (tui_check_and_display_highlight_if_needed): Remove return.
2212 2019-07-17 Tom Tromey <tom@tromey.com>
2214 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
2216 2019-07-17 Tom Tromey <tom@tromey.com>
2218 * tui/tui-winsource.h (struct tui_exec_info_window)
2219 (struct tui_source_window_base): Move from tui-data.h.
2220 * tui/tui-winsource.c: Move many method definitions from
2221 elsewhere. Remove "structuring" comments.
2222 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
2223 (tui_source_window_base::refresh_window): Move to
2225 * tui/tui-win.c (tui_source_window_base::refresh_all)
2226 (tui_source_window_base::update_tab_width)
2227 (tui_source_window_base::set_new_height)
2228 (tui_source_window_base::do_make_visible_with_new_height): Move to
2230 * tui/tui-source.h: Update.
2231 * tui/tui-source.c (tui_source_window_base::reset): Move to
2233 * tui/tui-disasm.h: Update.
2234 * tui/tui-data.h (struct tui_exec_info_window): Move to
2236 (struct tui_source_window_base): Likewise.
2237 * tui/tui-data.c (tui_source_window_base::clear_detail)
2238 (tui_source_window_base, ~tui_source_window_base): Move to
2241 2019-07-17 Tom Tromey <tom@tromey.com>
2243 * tui/tui-win.c (tui_resize_all)
2244 (tui_source_window_base::update_tab_width)
2245 (tui_adjust_win_heights): Update.
2246 (tui_win_info::make_invisible_and_set_new_height): Rename from
2247 make_invisible_and_set_new_height.
2248 * tui/tui-data.h (struct tui_win_info)
2249 <make_invisible_and_set_new_height>: New method.
2251 2019-07-17 Tom Tromey <tom@tromey.com>
2253 * tui/tui.c: Update.
2254 * tui/tui-source.h (struct tui_source_window): Move from
2256 * tui/tui-layout.c: Update.
2257 * tui/tui-disasm.c: Update.
2258 * tui/tui-data.h (struct tui_source_window): Move to
2261 2019-07-17 Tom Tromey <tom@tromey.com>
2263 * tui/tui-disasm.h (struct tui_disasm_window): Move from
2265 * tui/tui-data.h (struct tui_disasm_window): Move to
2268 2019-07-17 Tom Tromey <tom@tromey.com>
2270 * tui/tui-regs.h (struct tui_data_item_window): Move from
2272 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
2273 * tui/tui-data.h (struct tui_data_item_window): Move to
2275 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
2277 2019-07-17 Tom Tromey <tom@tromey.com>
2279 * tui/tui.c: Update.
2280 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
2281 (tui_cmd_window::max_height): Move to tui-command.c.
2282 * tui/tui-layout.c: Update.
2283 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
2284 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
2286 * tui/tui-command.h (struct tui_cmd_window): Move from
2288 * tui/tui-command.c: Remove "structuring" comments.
2289 (tui_cmd_window::clear_detail)
2290 (tui_cmd_window::do_make_visible_with_new_height)
2291 (tui_cmd_window::max_height): Move from elsewhere.
2293 2019-07-17 Tom Tromey <tom@tromey.com>
2295 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
2297 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
2298 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
2300 2019-07-17 Tom Tromey <tom@tromey.com>
2302 * tui/tui.c: Update.
2303 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
2305 * tui/tui-windata.h: Remove file.
2306 * tui/tui-windata.c: Remove file.
2307 * tui/tui-win.c (tui_data_window::set_new_height)
2308 (tui_data_window::do_make_visible_with_new_height): Move to
2310 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
2311 * tui/tui-regs.c: Remove "structuring" comments.
2312 (tui_data_window::first_data_item_displayed)
2313 (tui_data_window::delete_data_content_windows)
2314 (tui_data_window::erase_data_content)
2315 (tui_data_window::display_all_data)
2316 (tui_data_window::refresh_all)
2317 (tui_data_window::do_scroll_vertical)
2318 (tui_data_window::clear_detail, tui_data_window::set_new_height)
2319 (tui_data_window::do_make_visible_with_new_height)
2320 (tui_data_window::refresh_window): Move from elsewhere.
2321 (_initialize_tui_regs): Move to end of file.
2322 * tui/tui-layout.c: Update.
2323 * tui/tui-hooks.c: Update.
2324 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
2325 * tui/tui-data.c (tui_data_window::clear_detail): Move to
2327 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
2329 2019-07-17 Tom Tromey <tom@tromey.com>
2331 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
2334 2019-07-17 Tom Tromey <tom@tromey.com>
2336 * tui/tui-win.c (tui_source_window_base::set_new_height)
2337 (tui_source_window_base::do_make_visible_with_new_height): Use
2338 m_has_locator field directly.
2339 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
2341 (struct tui_source_window_base) <has_locator>: Likewise.
2343 2019-07-17 Tom Tromey <tom@tromey.com>
2345 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
2347 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
2349 * tui/tui-win.c (tui_source_window_base::set_new_height)
2350 (tui_source_window_base::set_new_height)
2351 (make_invisible_and_set_new_height)
2352 (tui_source_window_base::do_make_visible_with_new_height)
2353 (tui_source_window_base::do_make_visible_with_new_height):
2355 * tui/tui-layout.c (show_source_disasm_command, show_data)
2356 (show_source_or_disasm_and_command): Update.
2357 * tui/tui-layout.c (show_layout): Update.
2359 2019-07-17 Tom Tromey <tom@tromey.com>
2361 * tui/tui-layout.c (make_data_window): Remove.
2362 (show_data): Unify creation and re-initialization cases.
2364 2019-07-17 Tom Tromey <tom@tromey.com>
2366 * tui/tui-layout.c (make_source_window, make_disasm_window):
2368 (show_data): Unify creation and re-initialization cases.
2370 2019-07-17 Tom Tromey <tom@tromey.com>
2372 * tui/tui-layout.c (make_command_window): Remove.
2373 (show_source_disasm_command, show_source_or_disasm_and_command):
2374 Unify creation and re-initialization cases.
2376 2019-07-17 Tom Tromey <tom@tromey.com>
2378 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
2379 creation and re-initialization cases.
2381 2019-07-17 Tom Tromey <tom@tromey.com>
2383 * tui/tui-regs.c (tui_get_register): Return void.
2385 2019-07-17 Tom Tromey <tom@tromey.com>
2387 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
2390 2019-07-17 Tom Tromey <tom@tromey.com>
2392 * tui/tui-layout.c (show_source_disasm_command): Simplify window
2395 2019-07-17 Tom Tromey <tom@tromey.com>
2397 * tui/tui.h (tui_set_layout_by_name): Don't declare.
2398 * tui/tui-regs.c (tui_reg_layout): New function.
2399 (tui_show_registers, tui_reg_command): Use it.
2400 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
2401 (tui_layout_command): Rename from tui_set_layout_by_name. Change
2403 (tui_layout_command): Remove.
2405 2019-07-17 Tom Tromey <tom@tromey.com>
2407 * tui/tui-layout.h (tui/tui-layout): Return void.
2408 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
2410 2019-07-17 Tom Tromey <tom@tromey.com>
2412 * tui/tui-layout.c (show_source_disasm_command, show_data):
2414 (reset_locator): Remove.
2415 (show_source_or_disasm_and_command): Update.
2417 2019-07-17 Tom Tromey <tom@tromey.com>
2419 * tui/tui-source.c (tui_source_window_base::reset): Remove
2421 * tui/tui-layout.c (make_command_window, make_source_window)
2422 (make_disasm_window, make_data_window)
2423 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
2424 (reset_locator, show_source_or_disasm_and_command): Update.
2425 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
2427 (struct tui_source_window_base) <reset>: Likewise.
2429 2019-07-17 Tom Tromey <tom@tromey.com>
2431 * tui/tui-layout.c (show_source_disasm_command): Use
2433 (reset_locator): New function.
2434 (init_and_make_win): Remove.
2435 (show_source_or_disasm_and_command): Use reset_locator.
2437 2019-07-17 Tom Tromey <tom@tromey.com>
2439 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
2441 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
2443 * tui/tui-source.c (tui_source_window_base::reset): New method.
2444 * tui/tui-layout.c (make_command_window): Don't call
2446 (make_source_window, make_disasm_window): Don't call
2447 make_source_or_disasm_window.
2448 (make_data_window): Don't call init_and_make_win. Change calling
2450 (show_source_disasm_command, show_data): Simplify.
2451 (make_source_or_disasm_window): Remove.
2452 (show_source_or_disasm_and_command): Simplify.
2453 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
2454 (struct tui_source_window_base) <reset>: Likewise.
2455 <execution_info>: Remove initializer.
2456 * tui/tui-data.c (tui_source_window_base): Initialize
2459 2019-07-17 Tom Tromey <tom@tromey.com>
2461 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
2464 2019-07-17 Tom Tromey <tom@tromey.com>
2466 * tui/tui.c (tui_rl_other_window): Update.
2467 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
2468 superclass method first. Always iterate over regs_content.
2469 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
2471 * tui/tui-win.c (tui_set_focus_command): Update.
2473 2019-07-17 Tom Tromey <tom@tromey.com>
2475 * tui/tui-win.c (tui_set_focus_command): Rename from
2476 tui_set_focus. Call tui_enable.
2477 (tui_set_focus_command): Remove.
2479 2019-07-17 Tom Tromey <tom@tromey.com>
2481 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
2483 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
2485 (tui_data_window::refresh_window): Call refresh_window on data
2486 items. Always call superclass refresh_window.
2487 (tui_win_info::refresh): Remove.
2488 (tui_source_window_base::refresh_window): Update.
2489 (tui_refresh_all): Update.
2490 * tui/tui-layout.c (show_source_disasm_command): Remove call to
2492 (show_source_or_disasm_and_command): Likewise.
2493 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
2494 (struct tui_source_window_base) <refresh>: Likewise.
2496 2019-07-17 Tom Tromey <tom@tromey.com>
2498 * tui/tui-winsource.c (tui_clear_source_content)
2499 (tui_show_source_content): Update.
2500 * tui/tui-source.c (tui_source_window::showing_source_p): Check
2501 whether content is empty.
2502 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
2505 2019-07-17 Tom Tromey <tom@tromey.com>
2507 * tui/tui-winsource.c (tui_erase_source_content): Clear the
2509 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
2510 * tui/tui-source.c (tui_set_source_content_nil): Remove.
2512 2019-07-17 Tom Tromey <tom@tromey.com>
2514 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
2515 (struct tui_data_item_window): Update.
2517 2019-07-17 Tom Tromey <tom@tromey.com>
2519 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
2520 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
2523 2019-07-17 Tom Tromey <tom@tromey.com>
2525 * tui/tui-winsource.h (tui_erase_source_content)
2526 (tui_clear_source_content): Remove "display_prompt" parameter.
2527 * tui/tui-winsource.c (tui_update_source_window_as_is)
2528 (tui_update_source_windows_with_addr): Update.
2529 (tui_clear_source_content): Remove "display_prompt" parameter.
2530 (tui_erase_source_content): Likewise. Simplify.
2531 (tui_show_source_content): Update.
2532 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2533 * tui/tui-stack.c (tui_show_frame_info): Update.
2534 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
2537 2019-07-17 Tom Tromey <tom@tromey.com>
2539 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2540 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
2542 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
2545 2019-07-17 Tom Tromey <tom@tromey.com>
2547 * tui/tui-winsource.c (tui_clear_source_content)
2548 (tui_show_source_content, tui_show_exec_info_content)
2549 (tui_clear_exec_info_content): Update.
2550 * tui/tui-stack.c (tui_show_locator_content): Update.
2551 (tui_show_frame_info): Update.
2552 * tui/tui-source.h (tui_source_window): Don't declare.
2553 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
2554 from tui_source_is_displayed.
2555 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
2557 (struct tui_source_window_base) <content_in_use>: New field. Now
2559 (struct tui_source_window) <showing_source_p>: New method.
2560 (TUI_SRC_WIN): Change cast.
2561 * tui/tui-data.c (tui_initialize_static_data): Update.
2563 2019-07-17 Tom Tromey <tom@tromey.com>
2565 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
2567 * tui/tui-source.c (tui_source_window::location_matches_p): New
2569 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
2571 * tui/tui-data.h (struct tui_source_window_base)
2572 <location_matches_p>: New method.
2573 (struct tui_source_window, struct tui_disasm_window)
2574 <location_matches_p>: Likewise.
2576 2019-07-17 Tom Tromey <tom@tromey.com>
2578 * tui/tui-win.c (tui_set_win_height_command): Rename from
2580 (tui_set_win_height_command): Remove.
2582 2019-07-17 Tom Tromey <tom@tromey.com>
2584 * tui/tui-source.c (tui_source_window): New constructor. Add
2586 (~tui_source_window): New destructor.
2587 (tui_source_window::style_changed): New method.
2588 * tui/tui-hooks.c (tui_redisplay_source): Remove.
2589 (tui_attach_detach_observers): Update.
2590 * tui/tui-data.h (struct tui_source_window): Make constructor not
2591 inline. Add destructor.
2592 (struct tui_source_window) <style_changed>: New method.
2593 <m_observable>: New member.
2595 2019-07-17 Tom Tromey <tom@tromey.com>
2597 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
2598 * tui/tui-win.c (tui_resize_all): Fix typo.
2600 2019-07-17 Tom Tromey <tom@tromey.com>
2602 * tui/tui-wingeneral.h (tui_refresh_all): Update.
2603 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
2604 (tui_refresh_all): Remove "list" parameter. Use foreach.
2605 * tui/tui-win.c (window_name_completer): Use foreach.
2606 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
2607 (update_tab_width): Likewise.
2608 * tui/tui-layout.c (show_layout): Update.
2609 * tui/tui-data.h (class tui_window_iterator): New.
2610 (struct all_tui_windows): New.
2611 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
2613 2019-07-17 Tom Tromey <tom@tromey.com>
2615 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
2616 parameter. Don't reference globals.
2617 (tui_reg_command): Update.
2619 2019-07-17 Tom Tromey <tom@tromey.com>
2621 * tui/tui-regs.c (tui_show_registers): Simplify.
2623 2019-07-17 Tom Tromey <tom@tromey.com>
2625 * tui/tui-regs.c (tui_show_registers): Update.
2626 (tui_show_register_group): Add win_info parameter.
2628 2019-07-17 Tom Tromey <tom@tromey.com>
2630 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
2631 Rename from tui_display_reg_element_at_line.
2632 (tui_data_window::display_registers_from_line): Update.
2633 * tui/tui-data.h (struct tui_data_window)
2634 <display_reg_element_at_line>: New method.
2636 2019-07-17 Tom Tromey <tom@tromey.com>
2638 * tui/tui-regs.h (tui_display_registers_from)
2639 (tui_display_registers_from_line): Don't declare.
2640 * tui/tui-windata.c (tui_data_window::display_all_data)
2641 (tui_data_window::refresh_all)
2642 (tui_data_window::do_scroll_vertical): Update.
2643 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
2644 from tui_display_registers_from.
2645 (tui_display_reg_element_at_line): Update.
2646 (tui_data_window::display_registers_from_line): Rename from
2647 tui_display_registers_from_line.
2648 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
2649 display_registers_from_line>: New methods.
2651 2019-07-17 Tom Tromey <tom@tromey.com>
2653 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
2654 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
2655 from tui_erase_data_content.
2656 (tui_data_window::display_all_data)
2657 (tui_data_window::refresh_all)
2658 (tui_data_window::do_scroll_vertical): Update.
2659 * tui/tui-regs.c (tui_show_registers): Update.
2660 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
2663 2019-07-17 Tom Tromey <tom@tromey.com>
2665 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
2668 (tui_data_window::delete_data_content_windows): Rename from
2669 tui_delete_data_content_windows.
2670 (tui_data_window::display_all_data)
2671 (tui_data_window::do_scroll_vertical): Update.
2672 * tui/tui-data.h (struct tui_data_window)
2673 <delete_data_content_windows>: New method.
2675 2019-07-17 Tom Tromey <tom@tromey.com>
2677 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
2678 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
2680 2019-07-17 Tom Tromey <tom@tromey.com>
2682 * tui/tui-windata.h (tui_display_all_data): Don't declare.
2683 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
2684 from tui_display_all_data.
2686 (tui_data_window::do_make_visible_with_new_height): Update.
2687 * tui/tui-regs.c (tui_show_registers): Update.
2688 * tui/tui-layout.c (tui_set_layout): Update.
2689 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
2692 2019-07-17 Tom Tromey <tom@tromey.com>
2694 * tui/tui-windata.h (tui_display_data_from): Don't declare.
2695 * tui/tui-windata.c (tui_display_data_from): Remove.
2696 (tui_data_window::refresh_all): Update.
2698 2019-07-17 Tom Tromey <tom@tromey.com>
2700 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
2701 * tui/tui-windata.c (tui_display_data_from_line): Remove.
2702 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
2703 tui_display_registers_from_line.
2704 * tui/tui-regs.h (tui_display_registers_from_line): Update.
2705 * tui/tui-regs.c (tui_display_registers_from_line): Remove
2706 "force_display" parameter.
2708 2019-07-17 Tom Tromey <tom@tromey.com>
2710 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
2712 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
2713 Rename from tui_first_reg_element_no_inline.
2714 (tui_display_reg_element_at_line)
2715 (tui_display_registers_from_line): Update.
2716 * tui/tui-data.h (struct tui_data_window)
2717 <first_reg_element_no_inline>: New method.
2719 2019-07-17 Tom Tromey <tom@tromey.com>
2721 * tui/tui-windata.c (tui_display_data_from)
2722 (tui_data_window::do_scroll_vertical): Update.
2723 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
2724 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
2725 Rename from tui_line_from_reg_element_no.
2726 (tui_display_registers_from_line): Update.
2727 * tui/tui-data.h (struct tui_data_window)
2728 <line_from_reg_element_no>: New method.
2730 2019-07-17 Tom Tromey <tom@tromey.com>
2732 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
2733 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
2734 tui_last_regs_line_no.
2735 (tui_display_reg_element_at_line)
2736 (tui_display_registers_from_line): Update.
2737 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
2740 2019-07-17 Tom Tromey <tom@tromey.com>
2743 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
2744 (tui_update_breakpoint_info): Add "being_deleted" parameter.
2745 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2746 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
2747 (tui_update_breakpoint_info): Likewise.
2748 * tui/tui-hooks.c (tui_event_create_breakpoint)
2749 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
2752 2019-07-17 Tom Tromey <tom@tromey.com>
2754 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
2756 2019-07-17 Tom Tromey <tom@tromey.com>
2758 * tui/tui-winsource.c (tui_update_source_window_as_is)
2759 (tui_update_source_windows_with_addr): Update.
2760 * tui/tui-source.h (tui_set_source_content)
2761 (tui_show_symtab_source): Add "win_info" parameter.
2762 * tui/tui-source.c (tui_set_source_content): Add "win_info"
2764 (tui_show_symtab_source): Likewise.
2766 2019-07-17 Tom Tromey <tom@tromey.com>
2768 * tui/tui-wingeneral.c
2769 (tui_check_and_display_highlight_if_needed): Check can_highlight.
2771 2019-07-17 Tom Tromey <tom@tromey.com>
2773 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
2774 (struct tui_cmd_window) <can_scroll>: New method.
2775 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
2778 2019-07-17 Tom Tromey <tromey@adacore.com>
2780 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
2781 do_field_signed>: Rename. Change type of "value".
2782 * ui-out.c (ui_out::field_signed): Rename from field_int.
2783 Change type of "value".
2784 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
2786 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
2787 do_field_int. Change type of "value".
2788 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
2789 do_field_int. Change type of "value".
2790 * tracepoint.c (trace_status_mi, tfind_1)
2791 (print_one_static_tracepoint_marker): Update.
2792 * thread.c (print_thread_info_1, print_selected_thread_frame):
2794 * stack.c (print_frame, print_frame_info): Update.
2795 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
2797 * source.c (print_source_lines_base): Update.
2798 * skip.c (info_skip_command): Update.
2799 * record-btrace.c (btrace_ui_out_decode_error)
2800 (btrace_call_history_src_line): Update.
2801 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
2803 * progspace.c (print_program_space): Update.
2804 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
2805 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
2806 do_field_int. Change type of "value".
2807 * mi/mi-out.c (mi_ui_out::do_table_begin)
2808 (mi_ui_out::do_table_header): Update.
2809 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
2811 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
2812 (mi_cmd_data_list_changed_registers, output_register)
2813 (mi_cmd_data_read_memory, mi_load_progress)
2814 (mi_cmd_trace_frame_collected): Update.
2815 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
2817 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
2818 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
2819 (mi_cmd_var_list_children, varobj_update_one): Update.
2820 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
2821 (mi_cmd_stack_list_args, list_arg_or_local): Update.
2822 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
2823 * inferior.c (print_inferior): Update.
2824 * gdb_bfd.c (print_one_bfd): Update.
2825 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2827 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
2828 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
2829 do_field_int. Change type of "value".
2830 * cli-out.c (cli_ui_out::do_field_signed): Rename from
2831 do_field_int. Change type of "value".
2832 * breakpoint.c (watchpoint_check, print_breakpoint_location)
2833 (print_one_breakpoint_location, print_it_catch_fork)
2834 (print_one_catch_fork, print_it_catch_vfork)
2835 (print_one_catch_vfork, print_it_catch_solib)
2836 (print_it_catch_exec, print_it_ranged_breakpoint)
2837 (print_mention_watchpoint, print_mention_masked_watchpoint)
2838 (bkpt_print_it, update_static_tracepoint): Update.
2839 * break-catch-throw.c (print_it_exception_catchpoint): Update.
2840 * break-catch-syscall.c (print_it_catch_syscall): Update.
2841 * ada-tasks.c (print_ada_task_info): Update.
2842 * ada-lang.c (print_it_exception, print_mention_exception):
2845 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2847 PR breakpoints/24541
2848 * gdbarch.c: Regenerate.
2849 * gdbarch.h: Regenerate.
2850 * gdbarch.sh: Adjust return type and parameter types for
2851 'stap_adjust_register'.
2852 (i386_stap_adjust_register): Adjust signature and return new
2854 * stap-probe.c (stap_parse_register_operand): Adjust use of
2855 'gdbarch_stap_adjust_register'.
2857 2019-07-17 Tom Tromey <tromey@adacore.com>
2859 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
2861 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
2863 (struct s390_process_info): Add initializers.
2864 (s390_add_process): Use new.
2865 (s390_linux_nat_target::low_forget_process): Use delete.
2866 (s390_linux_nat_target::low_new_fork)
2867 (s390_linux_nat_target::stopped_by_watchpoint)
2868 (s390_linux_nat_target::low_prepare_to_resume)
2869 (s390_linux_nat_target::insert_watchpoint)
2870 (s390_linux_nat_target::insert_hw_breakpoint)
2871 (s390_linux_nat_target::remove_watchpoint)
2872 (s390_linux_nat_target::remove_hw_breakpoint): Update.
2874 2019-07-16 John Baldwin <jhb@FreeBSD.org>
2876 * aarch64-fbsd-nat.c: Include regcache.h.
2877 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
2879 (aarch64_fbsd_nat_target::fetch_registers)
2880 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
2882 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
2884 2019-07-16 John Baldwin <jhb@FreeBSD.org>
2886 * fbsd-nat.c: Include gdbarch.h.
2888 2019-07-15 Tom Tromey <tromey@adacore.com>
2890 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
2892 2019-07-15 Tom Tromey <tromey@adacore.com>
2894 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
2895 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
2896 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
2897 * cli-out.c (cli_ui_out::do_field_int): New method.
2898 * ui-out.c (ui_out::field_unsigned): New method.
2899 * symfile.c (generic_load): Use field_unsigned.
2900 (print_transfer_performance): Likewise.
2901 * record-btrace.c (ui_out_field_uint): Remove.
2902 (btrace_call_history_insn_range, btrace_call_history): Use
2904 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
2906 * ui-out.h (class ui_out) <field_unsigned>: New method.
2907 <do_field_unsigned>: Likewise.
2909 2019-07-15 Tom Tromey <tromey@adacore.com>
2911 * mi/mi-main.c (list_available_thread_groups): Use field_string.
2912 * mi/mi-interp.c (mi_memory_changed): Use field_string.
2913 * target.c (flash_erase_command): Use field_string.
2914 * infrun.c (print_signal_received_reason): Use field_string.
2915 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
2916 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
2918 * ada-tasks.c (print_ada_task_info): Use field_string.
2920 2019-07-15 Tom Tromey <tromey@adacore.com>
2922 * target.c (flash_erase_command): Use field_core_addr.
2923 * symfile.c (generic_load): Use field_core_addr.
2924 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2925 Use field_core_addr.
2926 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
2929 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2931 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
2932 value if its desired type is smaller than a CORE_ADDR and signed.
2934 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2936 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
2937 of changes to field names, and use new is_reference field to
2938 decide if a property is a reference or not.
2939 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
2941 (struct dwarf2_property_baton): Update header comment, rename
2942 'referenced_type' to 'property_type' and update comments.
2943 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
2944 default property type, store in property baton, update to take
2945 accound of renamed field.
2946 (read_func_scope): Update call to attr_to_dynamic_prop.
2947 (read_array_type): Likewise.
2948 (dwarf2_per_cu_addr_sized_int_type): New function.
2949 (read_subrange_index_type): Move type finding code to
2950 dwarf2_per_cu_addr_sized_int_type.
2951 (read_subrange_type): Update calls to attr_to_dynamic_prop.
2952 (dwarf2_per_cu_addr_type): New function.
2953 (set_die_type): Update calls to attr_to_dynamic_prop.
2955 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2957 * dwarf2read.c (read_subrange_index_type): New function.
2958 (read_subrange_type): Move code into new function and call it.
2959 * gdbtypes.c (create_range_type): Add some asserts.
2961 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2963 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
2964 update return statements.
2965 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
2966 declaration, and update comment to match.
2967 * gdbtypes.c (resolve_dynamic_array): Update call to
2968 dwarf2_evaluate_property to match new return type.
2970 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2972 * valarith.c (value_subscripted_rvalue): Change lowerbound
2973 parameter type from int to LONGEST.
2974 * value.h (value_subscripted_rvalue): Likewise in declaration.
2976 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
2978 * cli/cli-utils.c (info_print_command_completer): New function.
2979 * cli/cli-utils.h: Add 'completer.h' include, and forward
2980 declaration for 'struct cmd_list_element'.
2981 (info_print_command_completer): Declare.
2982 * stack.c (_initialize_stack): Add completer for 'info locals' and
2984 * symtab.c (_initialize_symtab): Add completer for 'info
2985 variables' and 'info functions'.
2986 * NEWS: Mention completion for additional info commands.
2988 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
2990 * cli/cli-utils.c (extract_info_print_args): Delete.
2991 (extract_arg_maybe_quoted): Delete.
2992 (info_print_options_defs): New variable.
2993 (make_info_print_options_def_group): New function.
2994 (extract_info_print_options): Define new function.
2995 * cli/cli-utils.h (extract_info_print_args): Delete.
2996 (struct info_print_options): New structure.
2997 (extract_info_print_options): Declare new function.
2998 * stack.c (info_locals_command): Update to use new
2999 extract_info_print_options, also add a header comment.
3000 (info_args_command): Likewise.
3001 * symtab.c (info_variables_command): Likewise.
3002 (info_functions_command): Likewise.
3004 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3006 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
3007 to extract string arguments.
3008 * common/common-utils.c (extract_string_maybe_quoted): New function.
3009 * common/common-utils.h (extract_string_maybe_quoted): Declare.
3011 2019-07-11 Tom Tromey <tromey@adacore.com>
3013 * main.c (get_init_files): Use GDBINIT, not gdbinit.
3014 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
3015 * top.h (gdbinit): Don't declare.
3016 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
3018 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
3019 * top.c (gdb_init): Don't call init_cli_cmds.
3021 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
3023 2019-07-11 Tom Tromey <tromey@adacore.com>
3025 * python/py-inferior.c (add_thread_object): Don't use thread_obj
3026 after it has been moved.
3028 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3030 * valops.c (value_must_coerce_to_target): Change return type to
3032 * value.h (value_must_coerce_to_target): Likewise.
3034 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
3036 * breakpoint.c (is_hardware_watchpoint): Remove
3037 forward-declaration.
3038 (is_masked_watchpoint): Change return type to bool.
3039 (is_tracepoint): Likewise.
3040 (is_breakpoint): Likewise.
3041 (is_hardware_watchpoint): Likewise.
3042 (is_watchpoint): Likewise.
3043 (is_no_memory_software_watchpoint): Likewise.
3044 (is_catchpoint): Likewise.
3045 (breakpoint_1): Make FILTER parameter's return type bool.
3046 is_masked_watchpoint): Change return type to bool.
3047 (save_breakpoints): Make FILTER parameter's return type bool.
3048 * breakpoint.h (is_breakpoint): Change return type to bool.
3049 (is_watchpoint): Likewise.
3050 (is_catchpoint): Likewise.
3051 (is_tracepoint): Likewise.
3053 2019-07-10 Tom Tromey <tom@tromey.com>
3055 * defs.h: Don't include gdbarch.h.
3056 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
3057 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
3058 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
3059 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
3060 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
3061 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
3062 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
3063 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
3064 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
3065 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
3066 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
3067 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
3068 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
3069 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
3070 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
3071 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
3072 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
3073 record-btrace.c, record.h, regcache-dump.c, regcache.h,
3074 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
3075 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
3076 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
3077 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
3078 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
3079 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
3080 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
3081 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
3082 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
3084 2019-07-10 Tom Tromey <tromey@adacore.com>
3086 * ada-lang.h (is_ada_exception_catchpoint): Declare.
3087 * breakpoint.c (init_ada_exception_breakpoint): Register as
3089 (print_one_breakpoint_location, print_one_breakpoint): Use
3090 is_ada_exception_catchpoint.
3091 * ada-lang.c (class ada_catchpoint_location): Pass
3092 bp_loc_software_breakpoint to bp_location constructor.
3093 (is_ada_exception_catchpoint): New function.
3095 2019-07-10 Tom Tromey <tromey@adacore.com>
3097 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
3099 (struct arm_exidx_entry): New method operator<.
3100 (struct arm_exidx_data) <section_maps>: Change type.
3101 (arm_exidx_data_free): Remove.
3102 (arm_exidx_data_key): Change type. Move lower.
3103 (arm_exidx_new_objfile): Update.
3104 (arm_compare_exidx_entries): Remove.
3105 (arm_find_exidx_entry, _initialize_arm_tdep)
3107 2019-07-10 Tom Tromey <tromey@adacore.com>
3109 * solib-spu.c (ocl_program_data_key): Change type.
3110 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
3113 2019-07-10 Tom Tromey <tromey@adacore.com>
3115 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
3116 (struct solib_aix_inferior_data) <library_list>: Change type.
3117 (solib_aix_inferior_data_handle): Change type.
3118 (get_solib_aix_inferior_data): Update.
3119 (solib_aix_free_library_list): Remove.
3120 (library_list_start_library): Update.
3121 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
3123 (solib_aix_get_library_list)
3124 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
3125 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
3127 2019-07-10 Tom Tromey <tromey@adacore.com>
3129 * solib-dsbt.c (struct dsbt_info): Add initializers.
3130 (solib_dsbt_pspace_data): Change type.
3131 (dsbt_pspace_data_cleanup): Remove.
3132 (get_dsbt_info, _initialize_dsbt_solib): Update.
3134 2019-07-10 Tom Tromey <tromey@adacore.com>
3136 * spu-tdep.c (spu_overlay_data): Change type.
3137 (spu_get_overlay_table, spu_overlay_new_objfile)
3138 (_initialize_spu_tdep): Update.
3140 2019-07-10 Tom Tromey <tromey@adacore.com>
3142 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
3144 (dbx_objfile_data_key): Change type and declare later.
3145 (DBX_SYMFILE_INFO): Rewrite.
3146 * dbxread.c (dbx_objfile_data_key): Change type.
3147 (dbx_symfile_init): Update.
3148 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
3149 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3150 (stabsect_build_psymtabs, _initialize_dbxread): Update.
3152 2019-07-10 Tom Tromey <tromey@adacore.com>
3154 * jit.c (jit_program_space_key): Change type. Move lower.
3155 (get_jit_program_space_data): Update.
3156 (jit_program_space_data_cleanup): Remove.
3157 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
3159 (struct jit_program_space_data): Add initializers.
3161 2019-07-10 Tom Tromey <tromey@adacore.com>
3163 * solib-darwin.c (struct darwin_info): Add initializers.
3164 (solib_darwin_pspace_data): Change type.
3165 (darwin_pspace_data_cleanup): Remove.
3166 (get_darwin_info, _initialize_darwin_solib): Update.
3168 2019-07-10 Tom Tromey <tromey@adacore.com>
3170 * remote-sim.c (struct sim_inferior_data): Add initializers,
3171 constructor, and destructor.
3172 (sim_inferior_data_key): Change type. Move lower.
3173 (check_for_duplicate_sim_descriptor): Update.
3174 (get_sim_inferior_data): Use new. Update.
3175 (~sim_inferior_data_cleanup): Rename from
3176 sim_inferior_data_cleanup. Simplify.
3177 (gdbsim_close_inferior, simulator_command)
3178 (sim_command_completer, _initialize_remote_sim): Update.
3179 (next_pid, INITIAL_PID): Move earlier.
3181 2019-07-10 Tom Tromey <tromey@adacore.com>
3183 * python/python-internal.h (create_thread_object): Return
3185 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
3186 * python/py-inferior.c (struct threadlist_entry): Add
3188 <thread_obj>: Now a gdbpy_ref.
3189 (thread_to_thread_object): Update.
3190 (add_thread_object): Use new.
3191 (delete_thread_object): Use delete.
3192 (infpy_threads): Update.
3193 (py_free_inferior): Update. Construct "inf_obj" after acquiring
3196 2019-07-10 Tom Tromey <tromey@adacore.com>
3198 * valops.c (value_cast): Specialize error message for Ada.
3200 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3202 * breakpoint.c (breakpoint_1): Update doc and parameter names.
3204 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3206 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
3207 bpstat_should_step): Return bool, adjust comments.
3208 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
3209 bpstat_should_step): Likewise.
3211 2019-07-10 Alan Hayward <alan.hayward@arm.com>
3213 * features/Makefile: Use feature target descriptions for Arm.
3214 * features/arm/arm-core.c: Generate new file.
3215 * features/arm/arm-fpa.c: Likewise.
3216 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
3217 * features/arm/arm-m-profile.c: Likewise.
3218 * features/arm/arm-vfpv2.c: Likewise.
3219 * features/arm/arm-vfpv3.c: Likewise.
3220 * features/arm/xscale-iwmmxt.c: Likewise.
3221 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
3223 2019-07-10 Alan Hayward <alan.hayward@arm.com>
3225 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
3228 2019-07-10 Alan Hayward <alan.hayward@arm.com>
3230 * features/aarch64-pauth.c: Regenerate.
3232 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
3234 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
3236 (bpstat_what): Use false instead of 0.
3238 2019-07-09 Pedro Alves <palves@redhat.com>
3240 * break-catch-throw.c (is_exception_catchpoint): New.
3241 * breakpoint.c (print_one_breakpoint_location): New parameter
3242 'raw_loc'. Handle it. Use
3243 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
3244 looking at the breakpoint's type.
3245 (print_one_breakpoint): If handling "maint info breakpoints", also
3246 print locations of exception catchpoints.
3247 * breakpoint.h (is_exception_catchpoint): Declare.
3249 2019-07-09 Pedro Alves <palves@redhat.com>
3251 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
3253 (allocate_location_exception_catchpoint): New.
3254 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
3255 (initialize_throw_catchpoint_ops): Install
3256 allocate_location_exception_catchpoint as allocate_location
3258 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
3259 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
3261 (breakpoint_address_is_meaningful): Delete.
3262 (bl_address_is_meaningful): New.
3263 (breakpoint_locations_match): Adjust comment.
3264 (bp_location_from_bp_type): New, factored out of...
3265 (bp_location::bp_location(breakpoint *)): ... this.
3266 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
3268 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
3269 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
3270 breakpoint_address_is_meaningful.
3271 (bp_locations_compare): Adjust comment.
3272 (update_global_location_list): Use bl_address_is_meaningful
3273 instead of breakpoint_address_is_meaningful.
3274 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
3276 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
3277 * python/py-breakpoint.c (bppy_get_location): No longer check
3278 whether location is null.
3280 2019-07-09 Pedro Alves <palves@redhat.com>
3283 * breakpoint.c (print_one_breakpoint_location): Remove
3284 single-location assert.
3286 2019-07-09 Tom Tromey <tom@tromey.com>
3288 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
3289 * configure: Rebuild.
3290 * configure.ac: Change common to gdbsupport.
3291 * gdbsupport: Rename from common.
3292 * acinclude.m4: Change common to gdbsupport.
3293 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
3294 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
3296 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
3297 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
3298 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
3299 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
3300 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
3301 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
3302 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
3303 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
3304 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
3305 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
3306 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
3307 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
3308 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
3309 coff-pe-read.c, command.h, compile/compile-c-support.c,
3310 compile/compile-c.h, compile/compile-cplus-symbols.c,
3311 compile/compile-cplus-types.c, compile/compile-cplus.h,
3312 compile/compile-loc2c.c, compile/compile.c, completer.c,
3313 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
3314 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
3315 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
3316 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
3317 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
3318 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
3319 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
3320 features/aarch64-core.c, features/aarch64-fpu.c,
3321 features/aarch64-pauth.c, features/aarch64-sve.c,
3322 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
3323 features/i386/32bit-core.c, features/i386/32bit-linux.c,
3324 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
3325 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
3326 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
3327 features/i386/64bit-core.c, features/i386/64bit-linux.c,
3328 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
3329 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
3330 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
3331 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
3332 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
3333 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
3334 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
3335 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
3336 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
3337 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
3338 go32-nat.c, guile/guile.c, guile/scm-ports.c,
3339 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
3340 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
3341 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
3342 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
3343 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
3344 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
3345 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
3346 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
3347 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
3348 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
3349 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
3350 minsyms.c, mips-linux-tdep.c, namespace.h,
3351 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
3352 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
3353 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
3354 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
3355 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
3356 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
3357 nat/linux-waitpid.c, nat/mips-linux-watch.c,
3358 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
3359 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
3360 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
3361 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
3362 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
3363 procfs.c, producer.c, progspace.h, psymtab.h,
3364 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
3365 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
3366 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
3367 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
3368 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
3369 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
3370 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
3371 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
3372 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
3373 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
3374 target-memory.c, target.c, target.h, target/waitstatus.c,
3375 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
3376 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
3377 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
3378 unittests/array-view-selftests.c,
3379 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
3380 unittests/common-utils-selftests.c,
3381 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
3382 unittests/format_pieces-selftests.c,
3383 unittests/function-view-selftests.c,
3384 unittests/lookup_name_info-selftests.c,
3385 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
3386 unittests/mkdir-recursive-selftests.c,
3387 unittests/observable-selftests.c,
3388 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
3389 unittests/parse-connection-spec-selftests.c,
3390 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
3391 unittests/scoped_fd-selftests.c,
3392 unittests/scoped_mmap-selftests.c,
3393 unittests/scoped_restore-selftests.c,
3394 unittests/string_view-selftests.c, unittests/style-selftests.c,
3395 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
3396 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
3397 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
3398 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
3399 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
3400 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
3402 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3404 * linespec.c (decode_digits_list_mode): Set explicit_line to a
3406 (decode_digits_ordinary): Set explicit_line field in sal.
3407 * symtab.c (skip_prologue_sal): Don't skip prologue for a
3408 symtab_and_line that was set on an explicit line number in
3409 assembler code. Do always update the recorded symtab and line if
3410 we do skip the prologue.
3412 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3414 * breakpoint.c (set_breakpoint_location_function): Remove
3415 explicit_loc parameter.
3416 (momentary_breakpoint_from_master): Update call to
3417 set_breakpoint_location_function.
3418 (add_location_to_breakpoint): Likewise.
3420 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3422 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
3423 required features based on default bfd type when no specific bfd
3426 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3428 * NEWS: Mention that GDB printf and eval commands can now print
3429 C-style and Ada-style convenience var strings without
3430 calling the inferior.
3431 * printcmd.c (printf_c_string): Locally print GDB internal var
3432 instead of transiting via the inferior.
3433 (printf_wide_c_string): Likewise.
3435 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3437 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
3439 2019-07-04 Tom Tromey <tom@tromey.com>
3442 * tui/tui-winsource.c (tui_clear_source_content): Update.
3443 (tui_source_window_base::set_is_exec_point_at): Fix comment.
3444 (tui_update_breakpoint_info): Update.
3445 (tui_set_exec_info_content): Update.
3446 * tui/tui-source.c (tui_set_source_content_nil): Update.
3447 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
3449 * tui/tui-data.h (enum tui_bp_flag): New.
3450 (tui_bp_flags): New enum flags type.
3451 (struct tui_source_element) <break_mode>: Change type. Rename
3453 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
3454 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
3456 * tui/tui-winsource.h: Fix comment.
3458 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3460 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
3461 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
3462 (store_fpregs_to_thread)
3463 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
3464 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
3465 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
3466 (IWMMXT_REGS_SIZE): Add define.
3467 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
3468 (fetch_vfp_regs, store_vfp_regs)
3469 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
3470 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
3472 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3474 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
3476 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
3477 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
3478 (ARM_INT_REGISTER_SIZE): ...to this.
3479 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
3480 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
3481 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
3482 (arm_linux_collect_gregset, supply_nwfpe_register)
3483 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
3485 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
3486 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
3487 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
3488 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
3489 (arm_return_in_memory, arm_store_return_value)
3490 (arm_get_longjmp_target, arm_register_g_packet_guesses)
3491 (arm_record_ld_st_multiple): Likewise.
3492 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
3493 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
3495 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3497 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
3498 AARCH64_DISPLACED_MODIFIED_INSNS.
3499 * aarch64-tdep.c (struct aarch64_displaced_step_data)
3500 (aarch64_displaced_step_copy_insn): Likewise.
3501 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
3502 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
3503 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
3504 ARM_DISPLACED_MODIFIED_INSNS.
3505 * arm-tdep.c (arm_gdbarch_init): Likewise.
3506 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
3507 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
3508 (struct arm_displaced_step_closure): Use
3509 ARM_DISPLACED_MODIFIED_INSNS.
3511 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3513 * features/Makefile: Remove unused xml files.
3514 * features/aarch64.xml: Remove.
3515 * features/i386/amd64-avx-avx512-linux.xml: Remove.
3516 * features/i386/amd64-avx-avx512.xml: Remove.
3517 * features/i386/amd64-avx-linux.xml: Remove.
3518 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
3519 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
3520 * features/i386/amd64-avx-mpx-linux.xml: Remove.
3521 * features/i386/amd64-avx-mpx.xml: Remove.
3522 * features/i386/amd64-avx.xml: Remove.
3523 * features/i386/amd64-linux.xml: Remove.
3524 * features/i386/amd64-mpx-linux.xml: Remove.
3525 * features/i386/amd64-mpx.xml: Remove.
3526 * features/i386/amd64.xml: Remove.
3527 * features/i386/i386-avx-avx512-linux.xml: Remove.
3528 * features/i386/i386-avx-avx512.xml: Remove.
3529 * features/i386/i386-avx-linux.xml: Remove.
3530 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
3531 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
3532 * features/i386/i386-avx-mpx-linux.xml: Remove.
3533 * features/i386/i386-avx-mpx.xml: Remove.
3534 * features/i386/i386-avx.xml: Remove.
3535 * features/i386/i386-linux.xml: Remove.
3536 * features/i386/i386-mmx-linux.xml: Remove.
3537 * features/i386/i386-mmx.xml: Remove.
3538 * features/i386/i386-mpx-linux.xml: Remove.
3539 * features/i386/i386-mpx.xml: Remove.
3540 * features/i386/i386.xml: Remove.
3541 * features/i386/x32-avx-avx512-linux.xml: Remove.
3542 * features/i386/x32-avx-linux.xml: Remove.
3543 * features/i386/x32-linux.xml: Remove.
3545 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3547 * regformats/aarch64.dat: Remove.
3548 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
3549 * regformats/i386/amd64-avx-linux.dat: Remove.
3550 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
3551 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
3552 * regformats/i386/amd64-linux.dat: Remove.
3553 * regformats/i386/amd64-mpx-linux.dat: Remove.
3554 * regformats/i386/amd64.dat: Remove.
3555 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
3556 * regformats/i386/i386-avx-linux.dat: Remove.
3557 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
3558 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
3559 * regformats/i386/i386-linux.dat: Remove.
3560 * regformats/i386/i386-mmx-linux.dat: Remove.
3561 * regformats/i386/i386-mpx-linux.dat: Remove.
3562 * regformats/i386/i386.dat: Remove.
3563 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
3564 * regformats/i386/x32-avx-linux.dat: Remove.
3565 * regformats/i386/x32-linux.dat: Remove.
3567 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3569 * aarch64-tdep.c: Remove xml self tests.
3570 * amd64-linux-tdep.c: Likewise.
3571 * amd64-tdep.c: Likewise.
3572 * i386-linux-tdep.c: Likewise.
3573 * i386-tdep.c: Likewise.
3575 2019-07-03 Pedro Alves <palves@redhat.com>
3578 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
3579 (pipe_cmd_option_defs): New.
3580 (make_pipe_cmd_options_def_group): New.
3581 (pipe_command): Use gdb::option::process_options.
3582 (pipe_command_completer): New function.
3583 (_initialize_cli_cmds): Install completer for "pipe" command.
3585 2019-07-03 Pedro Alves <palves@redhat.com>
3587 * cli/cli-option.c (union option_value) <string>: New field.
3588 (struct option_def_and_value): Add ctor, move ctor, dtor and
3589 use DISABLE_COPY_AND_ASSIGN.
3590 (option_def_and_value::clear_value): New.
3591 (parse_option, save_option_value_in_ctx, get_val_type_str)
3592 (add_setshow_cmds_for_options): Handle var_string.
3593 * cli-option.h (union option_def::var_address) <string>: New
3595 (struct string_option_def): New.
3596 * maint-test-options.c (struct test_options_opts): Add default
3597 ctor and use DISABLE_COPY_AND_ASSIGN.
3598 <string_opt>: New field.
3599 (test_options_opts::~test_options_opts): New.
3600 (test_options_opts::dump): Also dump "-string".
3601 (test_options_option_defs): Install "string.
3603 2019-07-03 Pedro Alves <palves@redhat.com>
3605 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
3606 option_value with a null enumeration.
3607 (complete_options): Save the option values in the context.
3608 (save_option_value_in_ctx): New, factored out from ...
3609 (process_options): ... here.
3610 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
3612 * maint-test-options.c (test_options_opts::dump): New, factored
3614 (maintenance_test_options_command_mode): ... here.
3615 (maintenance_test_options_command_completion_result): Delete.
3616 (maintenance_test_options_command_completion_text): Update
3618 (maintenance_show_test_options_completion_result): Change
3619 prototype. Just print
3620 maintenance_test_options_command_completion_text.
3621 (save_completion_result): New.
3622 (maintenance_test_options_completer_mode): Pass options context to
3623 complete_options, and then save a dump.
3624 (_initialize_maint_test_options): Use add_cmd to install "maint
3625 show test-options-completion-result".
3627 2019-07-03 Pedro Alves <palves@redhat.com>
3629 * NEWS (New commands): Mention "with" and "maint with".
3630 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
3631 (with_command, with_command_completer): New.
3632 (pipe_command): Adjust to new repeat_previous
3634 (_initialize_cli_cmds): Install the "with" command and its "w"
3636 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
3638 * cli/cli-setshow.c (parse_cli_var_uinteger)
3639 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
3640 argument strings for all var_types.
3641 (get_setshow_command_value_string): New, factored out from ...
3642 (do_show_command): ... this.
3643 * cli/cli-setshow.h: Include <string>.
3644 (get_setshow_command_value_string): Declare.
3645 * command.h (repeat_previous): Now returns const char *. Adjust
3647 * maint.c: Include "cli/cli-cmds.h".
3648 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
3649 (_initialize_maint_cmds): Register the "maintenance with" command.
3650 * top.c (repeat_previous): Move bits from pipe_command here:
3651 Return the saved command line, if any; error out if there's no
3652 command to relaunch.
3654 2019-07-03 Pedro Alves <palves@redhat.com>
3656 * NEWS (New commands): Mention "maint set/show test-settings"
3657 instead of "maint test-settings".
3658 * maint-test-settings.c (maintenance_test_settings_list): Delete.
3659 (maintenance_test_settings_set_list): Rename to ...
3660 (maintenance_set_test_settings_list): ... this.
3661 (maintenance_test_settings_show_list): Rename to ...
3662 (maintenance_show_test_settings_list): ... this.
3663 (maintenance_test_settings_cmd): Delete.
3664 (maintenance_test_settings_set_cmd): ...
3665 (maintenance_set_test_settings_cmd): ... this.
3666 (maintenance_test_settings_show_cmd): ...
3667 (maintenance_show_test_settings_cmd): ... this.
3668 (maintenance_test_settings_show_value_cmd):
3669 (maintenance_show_test_settings_value_cmd): ... this.
3670 (_initialize_maint_test_settings): No longer install the "maint
3671 test-settings" prefix command. Rename "maint test-settings set"
3672 to "maint set test-settings", and "maint test-settings show" to
3673 "maint show test-settings". Adjust all subcommands.
3675 2019-07-03 Pedro Alves <palves@redhat.com>
3677 * maint-test-settings.c: Fix file's intro comment. Replace all
3678 references to "test-options" with references to "test-settings",
3681 2019-07-03 Pedro Alves <palves@redhat.com>
3683 * maint-test-settings.c (maintenance_test_settings_xxx)
3684 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
3686 (maintenance_test_settings_enums): Use them.
3687 (maintenance_test_settings_enum): Default to
3688 maintenance_test_settings_xxx.
3689 (_initialize_maint_test_settings): Initialize
3690 MAINTENANCE_TEST_SETTINGS_FILENAME.
3692 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3694 * breakpoint.h (remove_breakpoints_inf): Change return type to
3695 void, move function documentation here.
3696 * breakpoint.c (remove_breakpoints_inf): Change return type to
3697 void, move function documentation to header.
3699 2019-07-02 Pedro Alves <palves@redhat.com>
3701 * NEWS (Completion improvements): Mention "info threads".
3702 * thread.c (struct info_threads_opts, info_threads_option_defs)
3703 (make_info_threads_options_def_group): New.
3704 (info_threads_command): Use gdb::option::process_options.
3705 (info_threads_command_completer): New.
3706 (_initialize_thread): Use gdb::option::build_help to build the
3707 help text for "info threads".
3709 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3711 * defs.h (generic_load): Move from here...
3712 * symfile.h (generic_load): ... to here. Rename name parameter
3714 * symfile.c (generic_load): Add comment.
3716 2019-07-01 Tom Tromey <tromey@adacore.com>
3719 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
3720 declaration of without_params. Fix formatting.
3722 2019-07-01 Tom Tromey <tromey@adacore.com>
3724 * ada-exp.y (find_primitive_type): Update.
3725 * ada-lang.h (ada_lookup_symbol): Update.
3726 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
3728 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
3730 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
3732 PR breakpoints/24541
3733 * gdbarch.c: Regenerate.
3734 * gdbarch.h: Regenerate.
3735 * gdbarch.sh: Add 'stap_adjust_register'.
3736 * i386-tdep.c: Include '<unordered_set>'.
3737 (i386_stap_adjust_register): New function.
3738 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
3739 * stap-probe.c (stap_parse_register_operand): Call
3740 'gdbarch_stap_adjust_register'.
3742 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
3745 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
3746 * python/python.c (do_start_initialization): Use 'xmalloc'
3747 instead of 'PyMem_Malloc'.
3749 2019-06-28 Tom Tromey <tromey@adacore.com>
3751 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
3754 2019-06-27 Tom Tromey <tromey@adacore.com>
3756 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
3758 (arm_find_mapping_symbol, arm_record_special_symbol)
3759 (_initialize_arm_tdep): Update.
3760 (arm_objfile_data_free): Remove.
3762 2019-06-27 Tom Tromey <tromey@adacore.com>
3764 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
3765 to cp_print_static_field.
3767 2019-06-26 Tom Tromey <tromey@adacore.com>
3769 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
3770 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
3773 2019-06-26 Alan Hayward <alan.hayward@arm.com>
3775 * features/aarch64-core.c (create_feature_aarch64_core):
3777 * features/aarch64-core.xml: Add cpsr flags.
3779 2019-06-26 Alan Hayward <alan.hayward@arm.com>
3781 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
3782 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
3784 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
3786 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
3788 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
3790 (arm_record_special_symbol): Don't insert new symbol in sorted
3791 position, push it at the end.
3793 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
3795 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
3796 (arm_mapping_symbol_s): Remove.
3797 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
3798 (arm_mapping_symbol_vec): New typedef.
3799 (struct arm_per_objfile): Add constructor.
3800 <section_maps>: Change type to
3801 std::unique_ptr<arm_mapping_symbol_vec[]>.
3802 (arm_compare_mapping_symbols): Remove.
3803 (arm_find_mapping_symbol): Adjust to section_maps type change.
3804 (arm_objfile_data_free): Call delete on arm_per_objfile.
3805 (arm_record_special_symbol): Adjust to section_maps type change.
3806 Allocate arm_per_objfile with new.
3808 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3810 * cli/cli-cmds.c (alias_command): Compare the alias prefix
3811 with the command prefix.
3813 2019-06-25 Tom Tromey <tom@tromey.com>
3815 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
3816 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
3818 2019-06-25 Tom Tromey <tom@tromey.com>
3820 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
3822 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
3825 2019-06-25 Tom Tromey <tom@tromey.com>
3827 * tui/tui-winsource.c
3828 (tui_source_window_base::set_is_exec_point_at): Add check against
3831 2019-06-25 Tom Tromey <tom@tromey.com>
3833 * tui/tui-source.c (tui_set_source_content): Don't check before
3835 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
3837 2019-06-25 Tom Tromey <tom@tromey.com>
3839 * tui/tui-winsource.h (tui_update_source_window_as_is)
3840 (tui_alloc_source_buffer, tui_line_is_displayed)
3841 (tui_addr_is_displayed): Change type of win_info.
3842 * tui/tui-winsource.c (tui_update_source_window_as_is)
3843 (tui_clear_source_content, tui_show_source_line)
3844 (tui_show_source_content, tui_source_window_base::refill)
3845 (tui_source_window_base::set_is_exec_point_at)
3846 (tui_source_window_base::set_is_exec_point_at)
3847 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
3848 (tui_alloc_source_buffer, tui_line_is_displayed)
3849 (tui_addr_is_displayed): Change type of win_info. Update.
3850 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3851 (tui_source_window_base::do_make_visible_with_new_height):
3853 * tui/tui-source.c (tui_set_source_content)
3854 (tui_set_source_content_nil)
3855 (tui_source_window::do_scroll_vertical): Update.
3856 * tui/tui-layout.c (show_layout): Update.
3857 * tui/tui-disasm.c (tui_set_disassem_content)
3858 (tui_disasm_window::do_scroll_vertical): Update.
3859 * tui/tui-data.h (tui_win_content): Remove.
3860 (struct tui_gen_win_info) <content, content_size>: Remove.
3861 (struct tui_source_element): Add initializers and destructor.
3862 (union tui_which_element, struct tui_win_element): Remove.
3863 (struct tui_source_window_base) <content>: New field.
3864 (struct tui_data_window): Remove destructor.
3865 (tui_alloc_content, tui_free_win_content)
3866 (tui_free_all_source_wins_content): Don't declare.
3867 * tui/tui-data.c (tui_initialize_static_data): Update.
3868 (init_content_element, tui_alloc_content): Remove.
3869 (~tui_gen_win_info): Update.
3870 (~tui_data_window, tui_free_all_source_wins_content)
3871 (tui_free_win_content, free_content, free_content_elements):
3874 2019-06-25 Tom Tromey <tom@tromey.com>
3876 * tui/tui-winsource.h (tui_clear_source_content)
3877 (tui_erase_source_content, tui_show_source_content): Change type
3879 * tui/tui-winsource.c (tui_clear_source_content)
3880 (tui_erase_source_content, tui_show_source_content): Change type
3882 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3883 * tui/tui-source.h (tui_set_source_content_nil): Change type of
3885 * tui/tui-source.c (tui_set_source_content_nil): Change type of
3887 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
3889 2019-06-25 Tom Tromey <tom@tromey.com>
3891 * tui/tui-winsource.c (tui_clear_source_content)
3892 (tui_source_window_base::set_is_exec_point_at): Update.
3893 * tui/tui-source.c (tui_set_source_content_nil): Update.
3894 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
3896 * tui/tui-data.c (init_content_element): Update.
3898 2019-06-25 Tom Tromey <tom@tromey.com>
3900 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
3901 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
3902 * tui/tui-layout.c (init_and_make_win): Update.
3903 * tui/tui.h (enum tui_win_type): Update.
3904 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
3905 tui_win_is_auxillary.
3906 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
3907 tui_win_is_auxillary.
3909 2019-06-25 Tom Tromey <tom@tromey.com>
3911 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
3912 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
3913 (tui_delete_data_content_windows, tui_display_all_data)
3914 (tui_data_window::do_scroll_vertical, tui_display_data_from):
3916 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
3917 * tui/tui-regs.c (tui_last_regs_line_no)
3918 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
3919 (tui_show_registers): Update.
3920 (tui_show_register_group): Return void. Update.
3921 (tui_display_registers_from, tui_display_reg_element_at_line)
3922 (tui_display_registers_from_line, tui_check_register_values):
3924 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
3926 (struct tui_data_window) <regs_content>: Now a std::vector.
3927 <regs_content_count>: Remove.
3928 (tui_add_content_elements, tui_free_data_content): Don't declare.
3929 * tui/tui-data.c (tui_data_window::clear_detail): Update.
3930 (init_content_element): Remove DATA_WIN case. Add assert.
3931 (tui_add_content_elements): Remove.
3932 (tui_data_window): Update.
3933 (tui_free_data_content): Remove.
3934 (free_content_elements): Remove DATA_WIN case.
3936 2019-06-25 Tom Tromey <tom@tromey.com>
3938 * tui/tui-data.c (tui_data_item_window): Update.
3939 * tui/tui-windata.h (tui_check_data_values): Don't declare.
3940 * tui/tui-windata.c (tui_display_all_data)
3941 (tui_display_data_from_line): Update.
3942 (tui_check_data_values): Remove.
3943 * tui/tui-regs.c (tui_show_register_group)
3944 (tui_display_reg_element_at_line): Update.
3945 * tui/tui-hooks.c (tui_register_changed)
3946 (tui_refresh_frame_and_register_information): Call
3947 tui_check_register_values.
3948 * tui/tui-data.h (struct tui_data_window) <data_content,
3949 data_content_count, data_type>: Remove.
3950 (enum tui_data_type): Remove.
3952 * tui/tui-data.c (tui_data_window::clear_detail)
3953 (~tui_data_window): Update.
3955 2019-06-25 Tom Tromey <tom@tromey.com>
3957 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
3959 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
3960 Rename from tui_first_data_item_displayed. Update.
3961 (tui_data_window::refresh_all)
3962 (tui_data_window::do_scroll_vertical): Update.
3963 * tui/tui-data.h (struct tui_data_window)
3964 <first_data_item_displayed>: Declare new method.
3966 2019-06-25 Tom Tromey <tom@tromey.com>
3968 * tui/tui-data.h (tui_init_generic_part): Don't declare.
3969 * tui/tui-data.c (tui_init_generic_part): Remove, moving
3971 (tui_initialize_static_data): ...here.
3973 2019-06-25 Tom Tromey <tom@tromey.com>
3975 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
3976 (tui_display_registers_from, tui_check_register_values): Update.
3977 (tui_display_register): Remove win_info parameter; update.
3978 (tui_get_register): Change type of parameters.
3979 * tui/tui-data.h (struct tui_data_element): Remove.
3980 (union tui_which_element) <data>: Remove.
3981 <data_window>: Change type.
3982 (struct tui_data_item_window): New.
3983 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
3985 (~tui_data_item_window): New destructor.
3986 (free_content_elements): Remove DATA_ITEM_WIN case.
3988 2019-06-25 Tom Tromey <tom@tromey.com>
3990 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
3993 2019-06-25 Tom Tromey <tom@tromey.com>
3995 * tui/tui-data.h (struct tui_command_element): Remove.
3996 (union tui_which_element) <command>: Remove.
3997 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
3999 (free_content_elements): Remove CMD_WIN case.
4001 2019-06-25 Tom Tromey <tom@tromey.com>
4003 * tui/tui-layout.c (tui_set_layout): Update.
4004 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
4005 * tui/tui-data.c (layout_def): Update.
4007 2019-06-25 Tom Tromey <tom@tromey.com>
4009 * tui/tui-wingeneral.c (tui_refresh_all): Update.
4010 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4011 (tui_source_window_base::set_new_height): Update.
4012 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
4014 (tui_set_locator_fullname, tui_set_locator_info)
4015 (tui_show_frame_info): Update.
4016 * tui/tui-source.c (tui_set_source_content)
4017 (tui_source_is_displayed): Update.
4018 * tui/tui-layout.c (show_source_disasm_command, show_data)
4019 (show_source_or_disasm_and_command): Update.
4020 * tui/tui-disasm.c (tui_set_disassem_content)
4021 (tui_get_begin_asm_address): Update.
4022 * tui/tui-data.h (struct tui_locator_element): Remove.
4023 (union tui_which_element) <locator>: Remove.
4024 (struct tui_locator_window): New.
4025 (tui_locator_win_info_ptr): Change return type.
4026 * tui/tui-data.c (_locator): Change type.
4027 (tui_locator_win_info_ptr): Change return type.
4028 (init_content_element): Remove LOCATOR_WIN case. Add assert.
4029 (tui_alloc_content): Add assert.
4031 2019-06-25 Tom Tromey <tom@tromey.com>
4033 * tui/tui-winsource.c
4034 (tui_exec_info_window::maybe_allocate_content): New method.
4035 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
4036 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
4037 (make_source_or_disasm_window): Add cast.
4038 * tui/tui-data.h (union tui_which_element) <simple_string>:
4040 (struct tui_source_info): New.
4041 (struct tui_source_window_base) <execution_info>: Change type.
4042 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
4043 case, and add assert.
4044 (tui_alloc_content): Add assert.
4046 2019-06-25 Tom Tromey <tom@tromey.com>
4048 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
4049 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
4050 * tui/tui-data.c (tui_alloc_win_info): Remove.
4052 2019-06-25 Tom Tromey <tom@tromey.com>
4054 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
4055 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
4058 2019-06-25 Tom Tromey <tom@tromey.com>
4060 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
4061 make_visible_with_new_height method.
4062 (tui_win_info::make_visible_with_new_height): New method.
4063 (tui_source_window_base::do_make_visible_with_new_height)
4064 (tui_data_window::do_make_visible_with_new_height)
4065 (tui_cmd_window::do_make_visible_with_new_height): New methods.
4066 (make_visible_with_new_height): Remove.
4067 (tui_resize_all, tui_adjust_win_heights): Use
4068 make_visible_with_new_height method.
4069 * tui/tui-data.h (struct tui_win_info)
4070 <do_make_visible_with_new_height, make_visible_with_new_height>:
4072 (struct tui_source_window_base, struct tui_data_window)
4073 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
4076 2019-06-25 Tom Tromey <tom@tromey.com>
4078 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
4080 (update_tab_width): Call update_tab_width method.
4081 * tui/tui-data.h (struct tui_win_info)
4082 (struct tui_source_window_base) <update_tab_width>: New methods.
4084 2019-06-25 Tom Tromey <tom@tromey.com>
4086 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
4088 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
4090 (tui_gen_win_info::make_visible): Update.
4091 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
4093 * tui/tui-data.h (enum tui_box): New enum.
4094 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
4096 2019-06-25 Tom Tromey <tom@tromey.com>
4098 * tui/tui-layout.c (make_source_or_disasm_window): Always use
4099 init_and_make_win for EXEC_INFO_WIN.
4100 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
4102 (struct tui_win_info) <~tui_win_info>: Inline.
4103 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4105 * tui/tui-data.c (source_win, disasm_win): Remove globals.
4106 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4108 (tui_initialize_static_data): Update.
4109 (~tui_gen_win_info): Handle more cleanup here.
4110 (~tui_source_window_base): Delete "execution_info".
4111 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
4113 2019-06-25 Tom Tromey <tom@tromey.com>
4115 * tui/tui-layout.c (make_command_window): Don't set
4117 (show_source_disasm_command): Call the reset method.
4118 (show_data): Don't set can_highlight. Call the reset method.
4119 (tui_gen_win_info::reset): Rename from init_gen_win_info
4120 (init_and_make_win): Simplify. Return tui_gen_win_info.
4121 (show_source_or_disasm_and_command): Call the reset method.
4122 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
4123 (struct tui_cmd_window): Set can_highlight.
4125 2019-06-25 Tom Tromey <tom@tromey.com>
4127 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
4129 (tui_make_visible, tui_make_invisible): Rewrite.
4130 (tui_win_info::make_visible): Remove.
4131 (tui_source_window_base::make_visible): Update.
4132 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
4133 method. Moved from...
4134 (struct tui_win_info) <make_visible>: ...here.
4136 2019-06-25 Tom Tromey <tom@tromey.com>
4138 * tui/tui-winsource.c
4139 (tui_source_window_base::do_scroll_horizontal): Remove direction
4141 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
4142 direction parameter.
4143 * tui/tui-win.c (tui_win_info::forward_scroll)
4144 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
4145 (tui_win_info::right_scroll): Update.
4146 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
4147 direction parameter.
4148 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
4149 direction parameter.
4150 * tui/tui-data.h (enum tui_scroll_direction): Remove.
4151 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
4152 Remove direction parameter.
4153 (struct tui_source_window_base, struct tui_source_window)
4154 (struct tui_disasm_window, struct tui_data_window)
4155 (struct tui_cmd_window): Update.
4157 2019-06-25 Tom Tromey <tom@tromey.com>
4159 * tui/tui-winsource.h (tui_set_exec_info_content)
4160 (tui_show_exec_info_content, tui_erase_exec_info_content)
4161 (tui_clear_exec_info_content, tui_update_exec_info): Change
4162 argument to tui_source_window_base.
4163 * tui/tui-winsource.c (tui_set_exec_info_content)
4164 (tui_show_exec_info_content, tui_erase_exec_info_content)
4165 (tui_clear_exec_info_content, tui_update_exec_info): Change
4166 argument to tui_source_window_base.
4168 2019-06-25 Tom Tromey <tom@tromey.com>
4170 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
4171 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
4173 2019-06-25 Tom Tromey <tom@tromey.com>
4175 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
4178 2019-06-25 Tom Tromey <tom@tromey.com>
4180 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
4182 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
4184 * tui/tui-source.c (tui_set_source_content): Update.
4185 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4187 2019-06-25 Tom Tromey <tom@tromey.com>
4189 * tui/tui-win.c (window_name_completer, tui_set_focus)
4190 (tui_all_windows_info): Use name method.
4191 * tui/tui-data.h (struct tui_gen_win_info)
4192 (struct tui_source_window, struct tui_disasm_window)
4193 (struct tui_data_window, struct tui_cmd_window) <name>: New
4195 (tui_win_name): Don't declare.
4196 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
4197 (tui_win_name): Remove.
4199 2019-06-25 Tom Tromey <tom@tromey.com>
4201 * tui/tui-winsource.h (tui_update_source_window)
4202 (tui_update_source_window_as_is): Change parameter type.
4203 * tui/tui-winsource.c (tui_update_source_window): Change win_info
4204 to be a tui_source_window_base.
4205 (tui_update_source_window_as_is): Likewise.
4206 * tui/tui-win.c (make_visible_with_new_height): Update.
4208 2019-06-25 Tom Tromey <tom@tromey.com>
4210 * tui/tui-winsource.c (tui_erase_source_content)
4211 (tui_show_source_content, tui_show_exec_info_content)
4212 (tui_erase_exec_info_content): Use refresh_window method.
4213 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
4214 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
4215 from tui_refresh_win.
4216 (tui_data_window::refresh_window): New method.
4217 (tui_win_info::refresh, tui_source_window_base::refresh)
4218 (tui_refresh_all): Use refresh_window method.
4219 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
4221 * tui/tui-regs.c (tui_display_register): Call refresh_window
4223 * tui/tui-layout.c (show_source_disasm_command)
4224 (show_source_or_disasm_and_command): Call refresh_window method.
4225 * tui/tui-data.h (struct tui_gen_win_info)
4226 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
4229 2019-06-25 Tom Tromey <tom@tromey.com>
4231 * tui/tui.c (tui_rl_other_window, tui_enable)
4232 (tui_is_window_visible, tui_get_command_dimension): Update.
4233 * tui/tui-winsource.c (tui_update_source_window_as_is)
4234 (tui_clear_source_content, tui_erase_source_content)
4235 (tui_show_source_line, tui_source_window_base::refill)
4236 (tui_source_window_base::do_scroll_horizontal)
4237 (tui_source_window_base::set_is_exec_point_at)
4238 (tui_update_breakpoint_info, tui_set_exec_info_content)
4239 (tui_alloc_source_buffer, tui_line_is_displayed)
4240 (tui_addr_is_displayed): Update.
4241 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
4242 (tui_check_and_display_highlight_if_needed)
4243 (tui_win_info::make_visible, tui_win_info::refresh)
4244 (tui_refresh_all): Update.
4245 * tui/tui-windata.c (tui_first_data_item_displayed)
4246 (tui_delete_data_content_windows, tui_erase_data_content)
4247 (tui_display_all_data, tui_data_window::refresh_all)
4248 (tui_check_data_values): Update.
4249 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
4250 (tui_set_win_focus_to, tui_win_info::forward_scroll)
4251 (tui_win_info::backward_scroll, tui_refresh_all_win)
4252 (tui_resize_all, tui_set_focus, tui_all_windows_info)
4253 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
4254 (tui_source_window_base::set_new_height)
4255 (tui_data_window::set_new_height)
4256 (make_invisible_and_set_new_height)
4257 (make_visible_with_new_height, new_height_ok)
4258 (parse_scrolling_args): Update.
4259 * tui/tui-stack.c (tui_show_frame_info): Update.
4260 * tui/tui-source.c (tui_set_source_content)
4261 (tui_set_source_content_nil, tui_source_is_displayed)
4262 (tui_source_window::do_scroll_vertical): Update.
4263 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4264 (tui_display_registers_from, tui_display_reg_element_at_line)
4265 (tui_check_register_values, tui_reg_command): Update.
4266 * tui/tui-layout.c (tui_default_win_height)
4267 (show_source_disasm_command, show_data, init_and_make_win)
4268 (show_source_or_disasm_and_command): Update.
4269 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
4270 (tui_redisplay_readline, tui_mld_flush)
4271 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
4273 * tui/tui-disasm.c (tui_set_disassem_content)
4274 (tui_disasm_window::do_scroll_vertical): Update.
4275 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
4277 (struct tui_win_info): Derive from tui_gen_win_info.
4278 <~tui_win_info>: Mark as override.
4279 <generic>: Remove member.
4280 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
4281 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
4282 (~tui_data_window, ~tui_win_info)
4283 (tui_free_all_source_wins_content): Update.
4284 * tui/tui-command.c (tui_refresh_cmd_win): Update.
4286 2019-06-25 Tom Tromey <tom@tromey.com>
4288 * tui/tui-layout.c (init_and_make_win): Use new.
4289 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
4290 destructor, initializers.
4291 (tui_alloc_generic_win_info): Don't declare.
4292 * tui/tui-data.c (_locator): Add argument to constructor.
4293 (source_win, disasm_win): New globals.
4294 (exec_info): Remove.
4295 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4297 (tui_alloc_generic_win_info): Remove.
4298 (init_content_element): Use new.
4299 (tui_win_info::tui_win_info): Update.
4300 (free_content_elements) <case DATA_WIN>: Use delete.
4302 2019-06-25 Tom Tromey <tom@tromey.com>
4304 * tui/tui-wingeneral.c (tui_refresh_win): Update.
4305 * tui/tui-windata.c (tui_first_data_item_displayed)
4306 (tui_delete_data_content_windows): Update.
4307 * tui/tui-win.c (tui_data_window::set_new_height): Update.
4308 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4309 (tui_display_registers_from, tui_check_register_values): Update.
4310 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
4312 * tui/tui-data.c (init_content_element): Update. Allocate the new
4314 (tui_free_data_content): Update.
4315 (free_content_elements) <case DATA_WIN>: Free the window.
4317 2019-06-25 Tom Tromey <tom@tromey.com>
4319 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
4321 * tui/tui-layout.c (make_command_window)
4322 (show_source_disasm_command, show_data, init_and_make_win)
4323 (show_source_or_disasm_and_command): Update.
4324 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
4326 <can_highight, is_highlighted>: Now bool.
4327 (tui_set_win_highlight): Don't declare.
4328 * tui/tui-data.c (tui_set_win_highlight): Remove.
4330 2019-06-25 Tom Tromey <tom@tromey.com>
4332 * tui/tui-wingeneral.c (make_visible): Remove check of window
4335 2019-06-25 Tom Tromey <tom@tromey.com>
4337 * tui/tui-win.c (tui_win_info::max_height)
4338 (tui_cmd_window::max_height): New methods.
4339 (new_height_ok): Call max_height.
4340 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
4341 <max_height>: New method.
4343 2019-06-25 Tom Tromey <tom@tromey.com>
4345 * tui/tui-win.c (tui_source_window_base::set_new_height)
4346 (tui_data_window::set_new_height): New methods.
4347 (make_invisible_and_set_new_height): Call set_new_height method.
4348 * tui/tui-data.h (struct tui_win_info)
4349 (struct tui_source_window_base, struct tui_data_window)
4350 <set_new_height>: New method.
4352 2019-06-25 Tom Tromey <tom@tromey.com>
4354 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
4355 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
4356 tui_refresh_data_win.
4357 * tui/tui-win.c (tui_source_window_base::refresh_all): New
4359 (tui_refresh_all_win): Call the refresh_all method.
4360 (tui_set_focus): Likewise.
4361 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
4362 (struct tui_source_window_base, struct tui_data_window) <refresh>:
4365 2019-06-25 Tom Tromey <tom@tromey.com>
4367 * tui/tui-winsource.h (tui_refill_source_window)
4368 (tui_set_is_exec_point_at): Don't declare.
4369 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4370 (tui_source_window_base::refill): Rename from
4371 tui_refill_source_window.
4372 (tui_source_window_base::do_scroll_horizontal): Update.
4373 (tui_source_window_base::set_is_exec_point_at): Rename from
4374 tui_set_is_exec_point_at.
4375 (tui_update_all_breakpoint_info): Update.
4376 * tui/tui-stack.c (tui_show_frame_info): Update.
4377 * tui/tui-layout.c (show_data): Add cast.
4378 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
4379 * tui/tui-data.h (struct tui_source_window_base) <refill,
4380 set_is_exec_point_at>: New methods.
4381 (tui_source_windows, tui_add_to_source_windows): Update types.
4382 (tui_add_to_source_windows): Remove redundant declaration.
4383 * tui/tui-data.c (source_windows): Store tui_source_window_base.
4384 (tui_source_windows): Change return type.
4385 (tui_clear_source_windows_detail): Update.
4386 (tui_add_to_source_windows): Change type of parameter.
4387 (tui_free_all_source_wins_content): Update.
4389 2019-06-25 Tom Tromey <tom@tromey.com>
4391 * tui/tui-wingeneral.c (tui_win_info::refresh)
4392 (tui_source_window_base::refresh): New methods.
4393 (tui_refresh_all): Call the refresh method.
4394 * tui/tui-data.h (struct tui_win_info)
4395 (struct tui_source_window_base) <refresh>: New method.
4397 2019-06-25 Tom Tromey <tom@tromey.com>
4399 * tui/tui.h (tui_is_window_visible): Return bool.
4400 * tui/tui.c (tui_is_window_visible): Return bool.
4401 * tui/tui-wingeneral.c (tui_make_window, make_visible)
4402 (tui_make_visible, tui_make_invisible)
4403 (tui_win_info::make_visible)
4404 (tui_source_window_base::make_visible, make_all_visible)
4405 (tui_make_all_visible, tui_make_all_invisible): Update.
4406 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
4407 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
4409 (struct tui_win_info, struct tui_source_window_base)
4410 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
4411 * tui/tui-data.c (tui_init_generic_part): Update.
4413 2019-06-25 Tom Tromey <tom@tromey.com>
4415 * tui/tui-wingeneral.c (tui_win_info::make_visible)
4416 (tui_source_window_base::make_visible): New methods.
4417 (make_all_visible): Make method call.
4418 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
4419 (struct tui_source_window_base, struct tui_cmd_window): Override
4421 (tui_win_is_source_type): Don't declare.
4422 * tui/tui-data.c (tui_win_is_source_type): Remove.
4424 2019-06-25 Tom Tromey <tom@tromey.com>
4426 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
4429 2019-06-25 Tom Tromey <tom@tromey.com>
4431 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
4432 Inline constructor. Add initializers for members.
4433 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
4434 constructors; now inline in class.
4436 2019-06-25 Tom Tromey <tom@tromey.com>
4438 * tui/tui-regs.c (tui_show_registers): Update.
4439 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
4441 * tui/tui-data.c (tui_data_window::clear_detail)
4442 (tui_data_window): Update.
4444 2019-06-25 Tom Tromey <tom@tromey.com>
4446 * tui/tui-windata.c (tui_display_all_data)
4447 (tui_display_data_from_line, tui_display_data_from)
4448 (tui_check_data_values, tui_data_window::do_scroll_vertical):
4450 * tui/tui-regs.c (tui_last_regs_line_no)
4451 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
4452 (tui_show_registers, tui_show_register_group)
4453 (tui_display_registers_from, tui_display_reg_element_at_line)
4454 (tui_display_registers_from_line, tui_check_register_values)
4455 (tui_reg_next, tui_reg_prev): Update.
4456 * tui/tui-layout.c (tui_set_layout, show_data): Update.
4457 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
4459 (struct tui_win_info) <detail>: Remove. Add new fields from
4461 (TUI_DATA_WIN): Add cast.
4462 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
4463 (~tui_data_window): Simplify.
4465 2019-06-25 Tom Tromey <tom@tromey.com>
4467 * tui/tui-layout.c (show_source_disasm_command)
4468 (show_source_or_disasm_and_command): Update.
4469 * tui/tui-io.c (update_cmdwin_start_line)
4470 (tui_redisplay_readline): Update.
4471 * tui/tui-data.h (struct tui_command_info): Remove.
4472 (struct tui_win_info) <detail>: Remove command_info member.
4473 (struct tui_data_window) <start_line>: New member, from
4475 (TUI_CMD_WIN): Add casts.
4477 2019-06-25 Tom Tromey <tom@tromey.com>
4479 * tui/tui-winsource.c (tui_update_source_window)
4480 (tui_refill_source_window)
4481 (tui_source_window_base::do_scroll_horizontal)
4482 (tui_update_breakpoint_info, tui_set_exec_info_content)
4483 (tui_show_exec_info_content, tui_erase_exec_info_content)
4484 (tui_clear_exec_info_content): Update.
4485 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
4487 * tui/tui-win.c (make_invisible_and_set_new_height)
4488 (make_visible_with_new_height): Update.
4489 * tui/tui-source.c (tui_set_source_content)
4490 (tui_show_symtab_source): Update.
4491 * tui/tui-layout.c (extract_display_start_addr)
4492 (show_source_disasm_command, show_data)
4493 (make_source_or_disasm_window)
4494 (show_source_or_disasm_and_command): Update.
4495 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
4496 (tui_disasm_window::do_scroll_vertical): Remove shadowing
4498 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
4499 to tui_source_window_base.
4500 (struct tui_win_info) <detail>: Remove source_info member.
4501 (struct tui_source_window_base) <has_locator>: Inline.
4502 Move contents from tui_source_info; rename has_locator member to
4504 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
4505 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
4507 (tui_source_window_base::clear_detail, ~tui_source_window_base):
4509 (tui_free_all_source_wins_content): Cast to
4510 tui_source_window_base.
4512 2019-06-25 Tom Tromey <tom@tromey.com>
4514 * tui/tui-win.c (make_invisible_and_set_new_height)
4515 (make_visible_with_new_height): Call has_locator method.
4516 * tui/tui-layout.c (show_source_disasm_command, show_data)
4517 (show_source_or_disasm_and_command): Update for bool change.
4518 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
4519 (tui_win_info) <has_locator>: New method.
4520 (struct tui_source_window_base) <has_locator>: New method.
4521 (tui_win_has_locator): Don't declare.
4522 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
4523 from tui_win_has_locator.
4524 (tui_source_window_base): Use false, not FALSE.
4526 2019-06-25 Tom Tromey <tom@tromey.com>
4528 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
4529 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
4530 clear_detail method directly.
4531 (tui_clear_win_detail): Remove.
4533 2019-06-25 Tom Tromey <tom@tromey.com>
4535 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
4536 "this", not TUI_DISASM_WIN.
4538 2019-06-25 Tom Tromey <tom@tromey.com>
4540 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
4542 * tui/tui-winsource.c
4543 (tui_source_window_base::do_scroll_horizontal): Rename from
4544 tui_horizontal_source_scroll.
4545 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
4546 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
4547 from tui_vertical_data_scroll.
4548 * tui/tui-win.h (tui_scroll): Don't declare.
4549 * tui/tui-win.c (tui_win_info::forward_scroll)
4550 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
4551 (tui_win_info::right_scroll): Rename and update.
4552 (tui_scroll_forward_command, tui_scroll_backward_command)
4553 (tui_scroll_left_command, tui_scroll_right_command): Update.
4554 (tui_scroll): Remove.
4555 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
4556 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
4557 from tui_vertical_source_scroll.
4558 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
4559 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
4560 from tui_vertical_disassem_scroll.
4561 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
4562 do_scroll_horizontal>: New methods.
4563 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
4565 (struct tui_source_window_base): Add do_scroll_horizontal.
4566 (struct tui_source_window, struct tui_disasm_window): Add
4568 (struct tui_data_window, struct tui_cmd_window): Add
4569 do_scroll_horizontal and do_scroll_vertical.
4570 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
4572 2019-06-25 Tom Tromey <tom@tromey.com>
4574 * tui/tui-data.h (struct tui_source_window_base): New struct.
4575 (struct tui_source_window): Derive from tui_source_window_base.
4576 (struct tui_disasm_window): New struct.
4577 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
4578 from tui_source_window::clear_detail.
4579 (tui_source_window_base): Rename from tui_source_window.
4580 (~tui_source_window_base): Rename from ~tui_source_window.
4581 (tui_alloc_win_info): Create a tui_disasm_window.
4583 2019-06-25 Tom Tromey <tom@tromey.com>
4585 * tui/tui-data.h (struct tui_source_window)
4586 (struct tui_data_window): Declare destructors.
4587 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
4589 (tui_win_info): Simplify.
4591 2019-06-25 Tom Tromey <tom@tromey.com>
4593 * tui/tui-winsource.c (tui_display_main)
4594 (tui_update_source_windows_with_addr)
4595 (tui_update_all_breakpoint_info): Update.
4596 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4597 (new_height_ok, parse_scrolling_args): Update.
4598 * tui/tui-stack.c (tui_show_frame_info): Update.
4599 * tui/tui-data.h (struct tui_list): Remove.
4600 (tui_source_windows): Return a reference to a std::vector.
4601 * tui/tui-data.c (source_windows): Now a std::vector.
4602 (tui_source_windows): Change return type.
4603 (tui_clear_source_windows): Rewrite.
4604 (tui_clear_source_windows_detail, tui_add_to_source_windows)
4605 (tui_free_all_source_wins_content): Rewrite.
4607 2019-06-25 Tom Tromey <tom@tromey.com>
4609 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
4610 (struct tui_data_window, struct tui_cmd_window): Declare
4611 clear_detail method.
4612 * tui/tui-data.c (tui_source_window::clear_detail)
4613 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
4615 (tui_clear_win_detail): Simplify.
4617 2019-06-25 Tom Tromey <tom@tromey.com>
4619 * tui/tui-layout.c (make_source_window, make_disasm_window)
4620 (make_source_or_disasm_window): Remove win_info_ptr parameter.
4621 Return the new window.
4622 (show_source_disasm_command, show_data)
4623 (show_source_or_disasm_and_command): Update.
4625 2019-06-25 Tom Tromey <tom@tromey.com>
4627 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
4628 parameter. Return the new window.
4629 (show_source_disasm_command): Update and remove NULL check.
4630 (show_source_or_disasm_and_command): Update.
4632 2019-06-25 Tom Tromey <tom@tromey.com>
4634 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
4636 2019-06-25 Tom Tromey <tom@tromey.com>
4638 * tui/tui-data.h (struct tui_win_info): Make constructor
4639 protected. Make destructor virtual. Add initializers.
4640 (tui_source_window, tui_data_window, tui_cmd_window): New
4642 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
4643 constructor. Add "type" parameter.
4644 (tui_source_window, tui_data_window, tui_cmd_window): New
4646 (tui_alloc_win_info): Instantiate the appropriate subclass.
4648 2019-06-25 Tom Tromey <tom@tromey.com>
4650 * tui/tui-win.c (tui_resize_all): Use delete.
4651 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
4653 (tui_free_window): Don't declare.
4654 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
4657 2019-06-25 Tom Tromey <tom@tromey.com>
4659 * tui/tui-data.h (struct tui_win_info): Add constructor.
4660 * tui/tui-data.c (tui_alloc_win_info): Use new.
4661 (tui_free_window): Use delete.
4663 2019-06-22 Tom Tromey <tom@tromey.com>
4665 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
4667 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
4669 2019-06-22 Tom Tromey <tom@tromey.com>
4671 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
4673 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
4675 2019-06-22 Tom de Vries <tdevries@suse.de>
4677 * dwarf2read.c (create_addrmap_from_aranges)
4678 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
4681 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
4683 * dwarf2read.h (dwarf2_section_info_def): Remove.
4684 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
4685 * dwarf2read.c (struct dwo_sections) <types>: Change type to
4686 std::vector<dwarf2_section_info>.
4687 (struct dwo_file) <~dwo_file>: Remove.
4688 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
4690 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
4691 (dwarf2_read_debug_names): Likewise.
4692 (create_debug_types_hash_table): Change parameter type to
4693 array_view, adjust code accordingly.
4694 (dwarf2_locate_dwo_sections): Adjust to std::vector.
4695 (partial_die_info::fixup): Likewise.
4696 (determine_prefix): Likewise.
4697 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
4699 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4701 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
4703 <~dwo_file>: Remove call to gdb_bfd_unref.
4704 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
4705 gdb_bfd_ref_ptr::get.
4707 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4709 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
4711 * dwarf2read.c (struct dwo_file): Initialize fields.
4713 (free_dwo_file): Remove, move content to ~dwo_file.
4714 (struct dwo_file_deleter): Remove.
4715 (dwo_file_up>: Remove custom deleter.
4716 (free_dwo_files): Remove.
4717 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
4719 (process_skeletonless_type_units): Call unique_ptr::get.
4720 (allocate_dwo_file_hash_table): Add deleter to created hash
4721 table. Change return type to htab_up.
4722 (lookup_dwo_file_slot): Don't memset dwo_file, call
4724 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
4725 (create_dwo_unit_in_dwp_v2): Likewise.
4726 (open_and_init_dwo_file): Likewise.
4727 (free_dwo_file_from_slot): Remove.
4729 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4731 * dwarf2read.h (struct dwarf2_section_info) <readin,
4732 is_virtual>: Change type to bool.
4733 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
4736 2019-06-19 Tom Tromey <tom@tromey.com>
4738 * tui/tui-data.h (tui_init_content_element): Don't declare.
4740 2019-06-19 Tom Tromey <tom@tromey.com>
4742 * tui/tui-data.h (tui_init_win_info): Don't declare.
4744 2019-06-19 Tom de Vries <tdevries@suse.de>
4746 * dwarf2read.h (abstract_to_concrete): Change type to
4747 std::unordered_map<sect_offset, std::vector<sect_offset>,
4748 gdb::hash_enum<sect_offset>>.
4750 2019-06-19 Tom Tromey <tromey@adacore.com>
4752 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
4753 EVAL_AVOID_SIDE_EFFECTS specially.
4755 2019-06-19 Tom Tromey <tromey@adacore.com>
4757 * source-cache.c (highlighter): New global.
4758 (source_cache::get_source_lines): Create a highlighter on demand.
4760 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
4762 * defs.h (deprecated_interactive_hook): Delete declaration.
4763 * interps.c (clear_interpreter_hooks): Remove use of
4764 deprecated_interactive_hook.
4765 * top.c (deprecated_interactive_hook): Delete definition.
4766 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
4768 2019-06-18 Tom de Vries <tdevries@suse.de>
4771 * dwarf2read.h (abstract_to_concrete): Change type from
4772 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
4773 std::unordered_map<sect_offset, std::vector<sect_offset>>.
4774 * dwarf2read.c (read_variable): Update.
4775 (dwarf2_fetch_die_loc_sect_off): Update.
4777 2019-06-17 Tom de Vries <tdevries@suse.de>
4780 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
4781 accessing parent[parent_len - 1].
4783 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
4786 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
4787 call dtrace_process_dof with NULL dof.
4789 2019-06-16 Tom de Vries <tdevries@suse.de>
4792 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
4794 2019-06-16 Tom Tromey <tom@tromey.com>
4796 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
4797 (make_all_visible): Use address of member.
4799 2019-06-16 Tom Tromey <tom@tromey.com>
4801 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
4802 (tui_free_window, free_content, free_content_elements): Remove
4804 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
4806 * tui/tui-regs.c (tui_show_register_group)
4807 (tui_display_registers_from, tui_display_reg_element_at_line):
4808 Remove unnecessary cast.
4810 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
4812 * linux-nat.c (normal_mask): Delete.
4813 (_initialize_linux_nat): Don't initialise normal_mask.
4815 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
4818 * dwarf-index-write.h (write_psymtabs_to_index): Add
4819 dwz_basename parameter.
4820 * dwarf-index-write.c (write_gdbindex): Move file writing to
4821 write_gdbindex_1. Change return type void.
4822 (assert_file_size): Move up, remove filename parameter.
4823 (write_gdbindex_1): New function.
4824 (write_debug_names): Change return type to void, call
4826 (struct index_wip_file): New struct.
4827 (write_psymtabs_to_index): Add dwz_basename parameter. Move
4828 file logic to index_wip_file. Write index for dwz file if
4830 (save_gdb_index_command): Pass basename of dwz file, if present.
4831 * dwarf-index-cache.c (index_cache::store): Obtain and pass
4832 build-id of dwz file, if present.
4833 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
4834 (dwarf2_get_dwz_file): Likewise.
4835 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
4836 (dwarf2_get_dwz_file): Likewise.
4838 2019-06-16 Tom Tromey <tom@tromey.com>
4840 * coffread.c (process_coff_symbol): Use xstrdup.
4841 * value.c (create_internalvar): Use xstrdup.
4843 2019-06-16 Tom Tromey <tom@tromey.com>
4845 * valops.c (value_cast, value_slice): Remove unnecessary cast.
4846 * breakpoint.c (stopin_command, stopat_command)
4847 (until_break_command, decode_location_default): Remove unnecessary
4849 * utils.c (subset_compare): Remove unnecessary cast.
4850 * ada-lang.c (ada_update_initial_language): Remove unnecessary
4852 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
4854 * infcmd.c (path_command): Remove unnecessary cast.
4855 * coffread.c (decode_type): Remove unnecessary cast.
4856 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
4857 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
4858 * tui/tui-stack.c (tui_show_locator_content)
4859 (tui_show_frame_info): Remove unnecessary cast.
4860 * tui/tui-win.c (tui_scroll_forward_command)
4861 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
4862 (parse_scrolling_args): Remove unnecessary cast.
4863 * tui/tui-data.c (init_win_info, tui_del_window)
4864 (tui_free_window, tui_del_data_windows, tui_free_data_content)
4865 (free_content_elements): Remove unnecessary cast.
4866 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
4868 * tui/tui-source.c (tui_set_source_content)
4869 (tui_vertical_source_scroll): Remove unnecessary cast.
4870 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
4872 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
4873 * tui/tui-regs.c (tui_display_registers_from)
4874 (tui_display_register): Remove unnecessary cast.
4875 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
4876 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
4877 (make_visible): Remove unnecessary cast.
4878 * tui/tui-winsource.c (tui_erase_source_content)
4879 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
4881 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
4882 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
4883 * stabsread.c (read_type, read_array_type, read_range_type):
4884 Remove unnecessary cast.
4885 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
4886 (parse_symbol, parse_type, upgrade_type, parse_external)
4887 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
4889 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
4891 2019-06-16 Tom Tromey <tom@tromey.com>
4893 * tui/tui-data.c (tui_alloc_generic_win_info)
4894 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
4897 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
4898 Andrew Burgess <andrew.burgess@embecosm.com>
4900 * f-typeprint.c (f_print_type): Don't return early for not
4901 associated or not allocated types.
4902 (f_type_print_varspec_suffix): Add print_rank parameter and print
4903 ranks of array types in case they dangling.
4904 (f_type_print_base): Add print_rank parameter.
4906 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4908 * NEWS: Mention new MI commands.
4909 * break-catch-throw.c (enum exception_event_kind): Move to
4911 (print_mention_exception_catchpoint): Output text as a single
4913 (catch_exception_command_1): Rename to...
4914 (catch_exception_event): ...this, make non-static, update header
4915 command, and change some parameter types.
4916 (catch_catch_command): Update for changes to
4917 catch_exception_command_1.
4918 (catch_throw_command): Likewise.
4919 (catch_rethrow_command): Likewise.
4920 * breakpoint.c (enum exception_event_kind): Delete.
4921 * breakpoint.h (enum exception_event_kind): Moved here from
4922 break-catch-throw.c.
4923 (catch_exception_event): Declare.
4924 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
4925 (mi_cmd_catch_throw): New function.
4926 (mi_cmd_catch_rethrow): New function.
4927 (mi_cmd_catch_catch): New function.
4928 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
4929 'catch-catch' entries.
4930 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
4931 (mi_cmd_catch_rethrow): Declare.
4932 (mi_cmd_catch_catch): Declare.
4934 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4936 * annotate.c (annotate_source_line): Change return type to void,
4937 update implementation to match.
4938 * annotate.h (annotate_source_line): Change return type to void,
4939 update header comment.
4940 * stack.c (print_frame_info): Don't change what frame information
4941 is printed based on whether annotations are on or not.
4943 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4945 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
4946 (annotate_source): Make static.
4947 (annotate_source_line): Moved from source.c and renamed from
4948 identify_source_line. Update the return type.
4949 * annotate.h (annotate_source): Delete declaration.
4950 (annotate_source_line): Declaration moved from source.h, and
4951 renamed from identify_source_line. Return type updated.
4952 * source.c (identify_source_line): Moved to annotate.c and renamed
4953 to annotate_source_line.
4954 (info_line_command): Remove check of annotation_level.
4955 * source.h (identify_source_line): Move declaration to annotate.h
4956 and rename to annotate_source_line.
4957 * stack.c: Add 'annotate.h' include.
4958 (print_frame_info): Remove check of annotation_level before
4959 calling annotate_source_line.
4961 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4963 * source-cache.c (source_cache::get_plain_source_lines): Use
4964 open_source_file_with_line_charpos instead of just
4965 open_source_file, remove call to find_source_lines.
4966 (source_cache::get_source_lines): Likewise.
4967 * source.c (find_source_lines): Make static.
4968 (get_filename_and_charpos): Renamed into...
4969 (open_source_file_with_line_charpos): ..this along with changes to
4970 return a scoped_fd, and some other minor clean ups.
4971 (identify_source_line): Use open_source_file_with_line_charpos.
4972 (search_command_helper): Use open_source_file_with_line_charpos
4973 instead of just open_source_file, remove call to
4975 * source.h (open_source_file_with_line_charpos): Declare new
4977 (find_source_lines): Delete declaration.
4979 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4981 * source.c (get_filename_and_charpos): Remove fullname
4983 (identify_source_line): Update call to get_filename_and_charpos.
4985 2019-06-14 Tom Tromey <tromey@adacore.com>
4988 * ui-style.h (skip_ansi_escape): Update comment.
4989 * ui-file.h (class no_terminal_escape_file): New class.
4990 * ui-file.c (no_terminal_escape_file::write)
4991 (no_terminal_escape_file::puts): New methods.
4992 * cli/cli-logging.c (handle_redirections): Use
4993 no_terminal_escape_file.
4995 2019-06-14 Tom Tromey <tromey@adacore.com>
4997 * NEWS: Move convenience variable news above Python news.
4999 2019-06-14 Tom Tromey <tom@tromey.com>
5001 * gnulib: Move directory to top-level.
5002 * configure.ac: Don't configure gnulib.
5003 * configure: Rebuild.
5004 * common/common-defs.h: Use new path to gnulib.
5005 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
5007 (INCGNU): Look in new gnulib location.
5008 (HFILES_NO_SRCDIR): Remove gnulib files.
5009 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
5010 (generated_files): Remove GNULIB_H.
5011 ($(LIBGNU), all-lib): Remove targets.
5012 (distclean): Don't mention GNULIB_BUILDDIR.
5013 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
5015 2019-06-14 Tom Tromey <tromey@adacore.com>
5017 * symfile.c (add_symbol_file_command): Remove obsolete comment.
5018 Warn if symbol file does not provide any symbols.
5020 2019-06-14 Tom Tromey <tromey@adacore.com>
5022 * source.c (find_and_open_source): Respect basenames_may_differ.
5024 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
5026 * annotate.c (annotate_breakpoints_invalid): Make use of
5027 scoped_restore_terminal_state.
5028 (annotate_frames_invalid): Likewise.
5030 2019-06-14 Tom Tromey <tromey@adacore.com>
5032 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
5033 allow assignment to an internalvar.
5035 2019-06-14 Tom Tromey <tromey@adacore.com>
5037 * ada-lex.l: Allow "_" in attribute names.
5039 2019-06-14 Tom Tromey <tromey@adacore.com>
5042 * regcache.c (registers_changed): Don't call alloca.
5043 * top.c (execute_command): Don't call alloca.
5045 2019-06-13 Pedro Alves <palves@redhat.com>
5047 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
5048 'expression'. When parsing an expression, error out if there's
5049 junk after "unlimited".
5050 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5051 (do_set_command): Adjust calls to is_unlimited_literal.
5053 2019-06-13 Pedro Alves <palves@redhat.com>
5055 * compile/compile.c (make_compile_options_def_group): Add braces
5056 around array_view initializer.
5057 * thread.c (make_thread_apply_all_options_def_group)
5058 (make_thread_apply_all_options_def_group): Likewise.
5060 2019-06-13 Pedro Alves <palves@redhat.com>
5062 * NEWS (New commands): Mention "maint test-options
5063 require-delimiter", "maint test-options unknown-is-error", "maint
5064 test-options unknown-is-operand" and "maint show
5065 test-options-completion-result".
5066 (New command options, command completion): New section.
5067 (Completion improvements): New section.
5068 Mention that you can abbreviate "unlimited".
5070 2019-06-13 Pedro Alves <palves@redhat.com>
5072 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
5073 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
5074 * unittests/cli-utils-selftests.c (test_parse_flags)
5075 (test_parse_flags_qcs): Delete.
5076 (test_cli_utils): Don't call deleted functions.
5078 2019-06-13 Pedro Alves <palves@redhat.com>
5080 * thread.c: Include "cli/cli-option.h".
5081 (tp_array_compar_ascending): Global.
5082 (tp_array_compar): Delete function.
5083 (tp_array_compar_ascending, tp_array_compar_descending): New
5085 (ascending_option_def, qcs_flag_option_def)
5086 (thr_qcs_flags_option_defs)
5087 (make_thread_apply_all_options_def_group)
5088 (make_thread_apply_options_def_group): New.
5089 (thread_apply_all_command): Use gdb::option::process_options.
5090 (thread_apply_command_completer)
5091 (thread_apply_all_command_completer): New.
5092 (thread_apply_command): Use gdb::option::process_options.
5093 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
5094 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
5095 to generate help text of "thread apply". Adjust "taas"'s help.
5096 * tid-parse.c (tid_range_parser::in_thread_range): New method.
5097 * tid-parse.h (tid_range_parser::in_thread_range): New method.
5099 2019-06-13 Pedro Alves <palves@redhat.com>
5101 * thread.c (thread_apply_command): Check for invalid TID with
5102 isdigit instead of !isalpha.
5104 2019-06-13 Pedro Alves <palves@redhat.com>
5106 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
5107 (validate_flags_qcs): New.
5108 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
5109 (validate_flags_qcs): Declare.
5110 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
5111 (make_frame_apply_options_def_group): New.
5112 (frame_apply_command_count): Process options with
5113 gdb::option::process_options.
5114 (frame_apply_completer): New.
5115 (frame_apply_level_completer, frame_apply_all_completer)
5116 (frame_apply_completer): New.
5117 (_initialize_stack): Update help of "frame apply", "frame apply
5118 level", "frame apply all" and "faas" to mention supported options
5119 and install command completers.
5120 * stack.h (frame_apply_all_completer): Declare.
5121 * thread.c: Include "stack.h".
5122 (tfaas_command): Add "--".
5123 (_initialize_thread): Update help "tfaas" to mention supported
5124 options and install command completer.
5126 2019-06-13 Pedro Alves <palves@redhat.com>
5128 * completer.c (complete_nested_command_line): New.
5129 (gdb_completion_word_break_characters_throw): Add assertion.
5130 * completer.h (complete_nested_command_line): Declare.
5132 2019-06-13 Pedro Alves <palves@redhat.com>
5134 * stack.c (parse_backtrace_qualifiers): New.
5135 (backtrace_command): Use it.
5136 (backtrace_command_completer): Complete on qualifiers.
5138 2019-06-13 Pedro Alves <palves@redhat.com>
5140 * frame.c: Include "cli/cli-option.h.
5141 (user_set_backtrace_options): New.
5142 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
5144 (get_prev_frame): Adjust.
5145 (boolean_option_def, uinteger_option_def)
5146 (set_backtrace_option_defs): New.
5147 (_initialize_frame): Adjust and use
5148 gdb::option::add_setshow_cmds_for_options to install "set
5149 backtrace past-main" and "set backtrace past-entry".
5150 * frame.h: Include "cli/cli-option.h".
5151 (struct frame_print_options): Forward declare.
5152 (print_frame_arguments_all, print_frame_arguments_scalars)
5153 (print_frame_arguments_none): Declare.
5154 (print_entry_values): Delete declaration.
5155 (struct frame_print_options, user_frame_print_options): New.
5156 (struct set_backtrace_options): New.
5157 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
5158 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
5159 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
5160 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
5161 (list_args_or_locals): Add frame_print_options parameter.
5162 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
5163 * python/py-framefilter.c (enumerate_args): Pass down
5164 USER_FRAME_PRINT_OPTIONS.
5165 * stack.c: Include "cli/cli-option.h".
5166 (print_frame_arguments_all, print_frame_arguments_scalars)
5167 (print_frame_arguments_none): Declare.
5168 (print_raw_frame_arguments, print_entry_values): Delete.
5169 (user_frame_print_options): New.
5170 (boolean_option_def, enum_option_def, frame_print_option_defs):
5172 (struct backtrace_cmd_options): New.
5173 (bt_flag_option_def): New.
5174 (backtrace_command_option_defs): New.
5175 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
5176 (print_frame_arg, read_frame_arg, print_frame_args)
5177 (print_frame_info, print_frame): Add frame_print_options parameter
5179 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
5180 (backtrace_command_1): Add frame_print_options and
5181 backtrace_cmd_options parameters and use them.
5182 (make_backtrace_options_def_group): New.
5183 (backtrace_command): Process command options with
5184 gdb::option::process_options.
5185 (backtrace_command_completer): New.
5186 (_initialize_stack): Extend "backtrace"'s help to mention
5187 supported options. Install completer for "backtrace".
5188 Install some settings commands with add_setshow_cmds_for_options.
5190 2019-06-13 Pedro Alves <palves@redhat.com>
5192 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
5193 and that "set/show print raw frame-arguments" are now deprecated.
5195 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
5197 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
5198 * stack.c (_initialize_stack): Install "set/show print
5199 raw-frame-arguments", and deprecate "set/show print raw
5201 * valprint.c (_initialize_valprint): Deprecate "set/show print
5204 2019-06-13 Pedro Alves <palves@redhat.com>
5206 * compile/compile.c (struct compile_options): New.
5207 (compile_flag_option_def, compile_command_option_defs)
5208 (make_compile_options_def_group): New.
5209 (compile_file_command): Handle options with
5210 gdb::option::process_options.
5211 (compile_file_command_completer): New function.
5212 (compile_code_command): Handle options with
5213 gdb::option::process_options.
5214 (compile_code_command_completer): New function.
5215 (_initialize_compiler): Install completers for "compile code" and
5216 "compile file". Mention available options in "compile code" and
5217 "compile code"'s help.
5218 * completer.c (advance_to_completion_word): New, factored out from
5220 (advance_to_expression_complete_word_point): ... this.
5221 (advance_to_filename_complete_word_point): New.
5222 * completer.h (advance_to_filename_complete_word_point): New
5225 2019-06-13 Pedro Alves <palves@redhat.com>
5227 * compile/compile.c: Include "cli/cli-option.h".
5228 (compile_print_value): Scope data pointer is now a
5229 value_print_options pointer; adjust.
5230 (compile_print_command): Process options. Scope data pointer is
5231 now a value_print_options pointer; adjust.
5232 (_initialize_compile): Update "compile print"'s help to include
5233 supported options. Install a completer for "compile print".
5234 * cp-valprint.c (show_vtblprint, show_objectprint)
5235 (show_static_field_print): Delete.
5236 (_initialize_cp_valprint): Don't install "set print
5237 static-members", "set print vtbl", "set print object" here.
5238 * printcmd.c: Include "cli/cli-option.h" and
5239 "common/gdb_optional.h".
5240 (print_command_parse_format): Rework to fill in a
5241 value_print_options instead of a format_data.
5242 (print_value): Change parameter type from format_data pointer to
5243 value_print_options reference. Adjust.
5244 (print_command_1): Process options. Adjust to pass down a
5245 value_print_options.
5246 (print_command_completer): New.
5247 (_initialize_printcmd): Install print_command_completer as
5248 handle_brkchars completer for the "print" command. Update
5249 "print"'s help to include supported options.
5250 * valprint.c: Include "cli/cli-option.h".
5251 (show_vtblprint, show_objectprint, show_static_field_print): Moved
5252 here from cp-valprint.c.
5253 (boolean_option_def, uinteger_option_def)
5254 (value_print_option_defs, make_value_print_options_def_group):
5255 New. Use gdb::option::add_setshow_cmds_for_options to install
5256 "set print elements", "set print null-stop", "set print repeats",
5257 "set print pretty", "set print union", "set print array", "set
5258 print address", "set print symbol", "set print array-indexes".
5259 * valprint.h: Include <string> and "cli/cli-option.h".
5260 (make_value_print_options_def_group): Declare.
5261 (print_value): Change parameter type from format_data pointer to
5262 value_print_options reference.
5263 (print_command_completer): Declare.
5265 2019-06-13 Pedro Alves <palves@redhat.com>
5267 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
5268 (COMMON_SFILES): Add maint-test-settings.c.
5269 * cli/cli-decode.c (boolean_enums): New global, factored out from
5271 (add_setshow_boolean_cmd): ... here.
5272 * cli/cli-decode.h (boolean_enums): Declare.
5273 * cli/cli-option.c: New file.
5274 * cli/cli-option.h: New file.
5275 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
5276 factored out from ...
5277 (parse_cli_boolean_value(const char *)): ... this.
5278 (is_unlimited_literal): Change parameter type to pointer to
5279 pointer. Adjust and advance ARG pointer.
5280 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5281 (parse_cli_var_enum): New, factored out from ...
5282 (do_set_command): ... this. Adjust.
5283 * cli/cli-setshow.h (parse_cli_boolean_value)
5284 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5285 (parse_cli_var_enum): Declare.
5286 * cli/cli-utils.c: Include "cli/cli-option.h".
5287 (get_ulongest): New.
5288 * cli/cli-utils.h (get_ulongest): Declare.
5289 (check_for_argument): New overloads.
5290 * maint-test-options.c: New file.
5292 2019-06-13 Pedro Alves <palves@redhat.com>
5294 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
5295 parse a range if "-" is at the end of the string.
5297 2019-06-13 Pedro Alves <palves@redhat.com>
5299 * cli/cli-setshow.c (parse_auto_binary_operation)
5300 (parse_cli_boolean_value): Don't allow "o".
5302 2019-06-13 Pedro Alves <palves@redhat.com>
5304 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
5305 * NEWS: Mention maint test-settings KIND.
5306 * maint-test-settings.c: New file.
5308 2019-06-13 Pedro Alves <palves@redhat.com>
5310 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
5312 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
5315 2019-06-13 Pedro Alves <palves@redhat.com>
5317 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
5320 2019-06-13 Pedro Alves <palves@redhat.com>
5322 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
5324 2019-06-13 Pedro Alves <palves@redhat.com>
5326 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
5327 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
5329 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
5330 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
5332 (check_for_argument): Skip spaces after argument.
5334 2019-06-13 Pedro Alves <palves@redhat.com>
5336 * thread.c (thread_apply_command): Adjust TID parsing.
5337 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
5338 detected before end of string.
5339 (tid_is_in_list): Error out if LIST is invalid.
5341 2019-06-13 Pedro Alves <palves@redhat.com>
5343 * completer.c (complete_line_internal_1): Rewind completion word
5345 (completion_tracker::advance_custom_word_point_by): Change
5346 parameter type to int.
5347 * completer.h (completion_tracker::advance_custom_word_point_by):
5350 2019-06-13 Pedro Alves <palves@redhat.com>
5352 * completer.c (advance_to_completion_word): Handle delimiters.
5354 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
5356 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
5358 2019-06-11 Tom Tromey <tom@tromey.com>
5360 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
5361 (xmalloc_failed): Move to alloc.c.
5362 * alloc.c: New file.
5363 * Makefile.in (COMMON_SFILES): Add alloc.c.
5365 2019-06-11 Tom Tromey <tom@tromey.com>
5367 * nat/linux-waitpid.c: Don't include server.h.
5368 (linux_debug): Remove.
5369 (my_waitpid): Update.
5371 2019-06-11 Tom Tromey <tromey@adacore.com>
5373 * infcall.c (_initialize_infcall): Remove trailing newline from
5375 * user-regs.c (_initialize_user_regs): Remove trailing newline
5377 * typeprint.c (_initialize_typeprint): Remove trailing newline
5379 * reverse.c (_initialize_reverse): Remove trailing newlines from
5381 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
5383 * language.c (add_set_language_command): Remove trailing newline
5385 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
5387 * disasm.c (_initialize_disasm): Remove trailing newline from
5389 * top.c (init_main): Remove trailing newline from help.
5390 * interps.c (_initialize_interpreter): Remove trailing newline
5392 * btrace.c (_initialize_btrace): Remove trailing newlines from
5394 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
5396 * python/python.c (_initialize_python): Remove trailing newline
5398 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
5400 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
5401 from help. Reformat some text.
5402 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
5404 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
5407 2019-06-11 Tom Tromey <tromey@adacore.com>
5409 * darwin-nat.c (darwin_decode_exception_message)
5410 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
5412 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
5414 * valops.c (value_slice): Check for not allocated or not
5417 2019-06-10 Tom de Vries <tdevries@suse.de>
5420 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
5421 sure an empty slot (defined by a 32-bit zero pair) is recognized as
5424 2019-06-10 Tom de Vries <tdevries@suse.de>
5427 * linespec.c (linespec_lexer_lex_string): Remove incorrect
5428 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
5430 2019-06-10 Tom de Vries <tdevries@suse.de>
5433 * symtab.c (struct demangled_name_entry): Add language field.
5434 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
5435 static minimal symbol". Set and use language field.
5437 2019-06-10 Tom Tromey <tromey@adacore.com>
5439 * ada-lang.c (_initialize_ada_language): Update help text.
5441 2019-06-10 Tom Tromey <tromey@adacore.com>
5443 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
5445 * guile/guile.c (handle_boot_error): Don't end warning with a
5447 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
5448 warning with a newline.
5449 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
5451 (s12z_frame_cache): Likewise.
5452 * dwarf-index-cache.c (index_cache::store): Don't end warning with
5454 * solib-svr4.c (disable_probes_interface): Don't end warning with
5456 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
5458 * python/python.c (do_finish_initialization): Don't end warning
5461 2019-06-10 Tom Tromey <tom@tromey.com>
5463 * python/py-breakpoint.c (gdbpy_breakpoint_created)
5464 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
5467 2019-06-10 Tom Tromey <tromey@adacore.com>
5469 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
5471 (elf_new_init): Don't call stabsread_new_init.
5472 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
5473 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
5474 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
5476 2019-06-10 Tom de Vries <tdevries@suse.de>
5480 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
5482 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
5484 * source.c (find_and_open_source): Also rewrite relative file
5487 2019-04-26 Amos Bird <amosbird@gmail.com>
5489 * annotate.c (annotate_thread_exited): Add "thread-exited"
5492 2019-06-06 Tom Tromey <tromey@adacore.com>
5494 * maint.h (class scoped_command_stats): Use
5495 DISABLE_COPY_AND_ASSIGN.
5496 <print_time>: New method.
5497 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
5499 (scoped_command_stats::print_time): New method.
5501 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5503 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
5504 instructions of lengths 6 or 8 bytes.
5506 2019-06-04 Pedro Alves <palves@redhat.com>
5508 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
5510 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
5511 * breakpoint.c (condition_completer): Likewise.
5512 * cli/cli-dump.c (scan_expression): Likewise.
5513 * common/filestuff.c (mkdir_recursive): Likewise.
5514 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
5515 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
5516 (gdb_abspath): Likewise.
5517 * compile/compile-cplus-types.c
5518 (compile_cplus_instance::decl_name): Likewise.
5519 * completer.c (complete_explicit_location):
5520 (signal_completer, reg_or_group_completer_1): Likewise.
5521 * cp-support.c (cp_remove_params_if_any): Likewise.
5522 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
5523 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
5524 * infcmd.c (strip_bg_char): Likewise.
5525 * linespec.c (copy_token_string): Likewise.
5526 * mi/mi-main.c (output_cores): Likewise.
5527 * psymtab.c (psymtab_search_name):
5528 * symfile.c (test_set_ext_lang_command): Likewise.
5529 * target.c (target_fileio_read_stralloc): Likewise.
5530 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
5531 * value.c (complete_internalvar): Likewise.
5533 2019-06-04 Christian Biesinger <cbiesinger@google.com>
5535 Add objfile property to gdb.Type.
5536 * NEWS: Mention Python API addition.
5537 * python/py-type.c (typy_get_objfile): New method.
5539 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5541 * NEWS: Mention the new set|show style [title|highlight].
5542 Mention changes to "show style", "help" and "apropos".
5544 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5546 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
5547 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
5548 instead of print_help_for_command.
5549 (print_doc_of_command): New function.
5550 (help_list): Add 'apropos -v word' suggestion.
5551 (print_help_for_command): Style the command name using title style.
5552 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
5553 (_initialize_cli_cmds): Describe -v in apropos_command help.
5555 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5557 * cli/cli-style.h (cli_style_option): Add name in constructor,
5558 add m_name class member, add constructor with intensity,
5559 add name class function.
5560 (cli_style_option::add_setshow_commands): Remove name argument.
5561 (highlight_style, title_style): New styles.
5562 * cli/cli-style.c (do_show): New function that shows a style
5563 characteristic styling the style name with itself.
5564 (set_style_name): New function.
5565 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
5566 Update all callers according to the changes in cli/cli-style.h.
5567 * utils.h (fputs_highlighted): New function.
5568 * utils.c (fputs_highlighted): Likewise.
5570 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5572 * NEWS: Mention new pipe command and new convenience variables.
5574 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5576 * cli/cli-cmds.c (pipe_command): New function.
5577 (_initialize_cli_cmds): Call add_com for pipe_command.
5578 Define | as an alias for pipe.
5579 (exit_status_set_internal_vars): New function.
5580 (shell_escape): Call exit_status_set_internal_vars.
5581 cli/cli-decode.c (find_command_name_length): Recognize | as
5582 a single character command.
5584 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5586 * gdbcmd.h (execute_command_to_ui_file): New declaration.
5587 top.c (execute_command_to_ui_file): New function, mostly a copy
5588 of execute_command_to_string.
5589 (execute_command_to_string): Implement by calling
5590 execute_command_to_ui_file.
5592 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5594 * top.h (saved_command_line): Remove declaration.
5595 * top.c (previous_saved_command_line, previous_repeat_arguments):
5597 (saved_command_line): Make static, define together with other
5599 (dont_repeat): Clear repeat_arguments.
5600 (repeat_previous, get_saved_command_line, save_command_line):
5602 (gdb_init): Initialize saved_command_line
5603 and previous_saved_command_line.
5604 * main.c (captured_main_1): Remove saved_command_line initialization.
5605 * event-top.c (handle_line_of_input): Update to use
5606 the new 'repeat' related functions instead of direct access to
5608 * command.h (repeat_previous, get_saved_command_line,
5609 save_command_line): New declarations.
5610 (dont_repeat): Add comment.
5612 2019-05-30 Tom Tromey <tromey@adacore.com>
5614 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
5616 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
5618 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
5621 * completer.c (complete): Initialize variable word.
5623 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
5625 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
5626 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
5627 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
5628 'body' is NULL to the outter 'if', protecting the '!is_define'
5631 2019-05-29 Tom Tromey <tromey@adacore.com>
5633 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
5634 (dwarf_unknown): New function.
5635 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
5636 (dwarf_type_encoding_name): Use dwarf_unknown.
5638 2019-05-29 Tom Tromey <tromey@adacore.com>
5641 * cp-valprint.c (cp_print_value_fields): Call
5642 cp_print_static_field inside "try".
5644 2019-05-29 Tom Tromey <tromey@adacore.com>
5646 * inflow.c (struct terminal_info): Add default operator=.
5647 * configure: Rebuild.
5648 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
5649 -Wdeprecated-copy-dtor, -Wredundant-move.
5651 2019-05-29 Tom Tromey <tromey@adacore.com>
5654 * infcmd.c (print_return_value_1): Handle finish_print
5656 (show_print_finish): New function.
5657 (_initialize_infcmd): Add "set/show print finish" commands.
5658 * valprint.c (user_print_options): Initialize new member.
5659 * valprint.h (struct value_print_options) <finish_print>: New
5662 2019-05-28 Tom Tromey <tromey@adacore.com>
5664 * ada-lang.c (ada_remove_Xbn_suffix)
5665 (find_old_style_renaming_symbol)
5666 (parse_old_style_renaming): Remove.
5667 (ada_find_renaming_symbol): Don't call
5668 find_old_style_renaming_symbol.
5669 (ada_is_renaming_symbol): Rename from
5670 ada_find_renaming_symbol. Remove "block" parameter. Return
5672 (ada_read_var_value): Update and simplify.
5673 * ada-exp.y (write_var_or_type): Remove old code.
5675 2019-05-28 Alan Hayward <alan.hayward@arm.com>
5677 * event-top.c: Remove include comment.
5678 * inflow.c (class scoped_ignore_sigttou): Move from here...
5679 * inflow.h (class scoped_ignore_sigttou): ...to here.
5680 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
5681 * top.c: Remove include comment.
5683 2019-05-27 Tom Tromey <tom@tromey.com>
5687 2019-05-22 Tom Tromey <tromey@adacore.com>
5689 * target.c (target_follow_exec): Constify parameter.
5690 * target-delegates.c: Rebuild.
5691 * remote.c (remote_target::follow_exec): Constify parameter.
5692 * infrun.c (follow_exec): Constify parameter.
5693 * target.h (struct target_ops) <follow_exec>: Constify parameter.
5694 (target_follow_exec): Likewise.
5696 2019-05-22 Alan Hayward <alan.hayward@arm.com>
5698 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
5699 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
5701 2019-05-22 Alan Hayward <alan.hayward@arm.com>
5703 * NEWS: Add debugredirect and testsuite sections.
5705 2019-05-22 Simon Cook <simon.cook@embecosm.com>
5707 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
5708 target descriptions using exclusively floating point register name
5711 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
5714 * f-lang.c (build_fortran_types): Handle the case where
5715 gdbarch_floatformat_for_type returns a nullptr.
5717 2019-05-21 Tom de Vries <tdevries@suse.de>
5720 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
5722 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
5725 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
5727 * i386-tdep.c (i386_floatformat_for_type): Use
5728 floatformats_ia64_quad for the 16-byte floating point component
5729 within a fortran 32-byte complex number.
5731 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
5733 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
5734 delete default constructor.
5735 (find_partial_die): Update to return const struct.
5736 (partial_die_parent_scope): Move variable declaration into scope
5737 of its use and change its type to auto.
5738 (guess_partial_die_structure_name): Likewise.
5739 (partial_die_info::fixup): Likewise.
5741 2019-05-17 Tom Tromey <tromey@adacore.com>
5743 * source.c (find_and_open_source): Remove cast.
5745 2019-05-17 Tom Tromey <tromey@adacore.com>
5747 * annotate.c (annotate_source): Make "filename" const.
5748 * annotate.h (annotate_source): Use const.
5750 2019-05-17 Alan Hayward <alan.hayward@arm.com>
5752 * disasm.c (set_disassembler_options): Send errors to stderr.
5754 2019-05-17 Alan Hayward <alan.hayward@arm.com>
5756 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
5757 (cli_interp_base::set_logging): Check debug_redirect.
5758 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
5759 * cli/cli-logging.c (debug_redirect): Add static variable.
5760 (pop_output_files): Add default param.
5761 (handle_redirections): Print debug setting.
5762 (show_logging_command): Likewise.
5763 (_initialize_cli_logging): Add debugredirect command.
5764 * interps.c (current_interp_set_logging): Add debug_redirect
5766 * interps.h (set_logging): Add debug_redirect parameter.
5767 (current_interp_set_logging): Likewise.
5768 * mi/mi-common.h: Likewise.
5769 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
5771 2019-05-17 Alan Hayward <alan.hayward@arm.com>
5772 Tom Tromey <tromey@adacore.com>
5774 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
5776 * cli/cli-interp.h (make_logging_output): Remove declaration.
5777 * cli/cli-logging.c (make_logging_output): Remove function.
5778 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
5780 * ui-file.c (tee_file::tee_file): Remove bools.
5781 (tee_file::~tee_file): Remove deletes.
5782 * ui-file.h (tee_file): Remove bools.
5784 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
5786 * mi/mi-cmds.h (mi_cmd_complete): New function.
5787 * mi/mi-main.c (mi_cmd_complete): Likewise.
5788 * mi/mi-cmds.c: Define new MI command -complete.
5789 * NEWS: Mention new -complete command.
5791 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
5793 * completer.h (complete): New function.
5794 * completer.c (complete): Likewise.
5795 * cli/cli-cmds.c: (complete_command): Update to use new complete()
5796 function defined in completer.h.
5798 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
5800 * MAINTAINERS (Write After Approval): Add myself.
5802 2019-05-17 Tom de Vries <tdevries@suse.de>
5805 * dwarf2read.c (struct cu_partial_die_info): New struct.
5806 (find_partial_die): Return cu_partial_die_info.
5807 (partial_die_parent_scope, guess_partial_die_structure_name)
5808 (partial_die_info::fixup): Handle new return type of find_partial_die.
5810 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5812 * stap-probe.c (stap_parse_register_operand): Make "regname" an
5813 "std::string", simplifying the algorithm.
5815 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5817 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
5818 (stap_static_probe_ops::get_probes): Likewise.
5820 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5822 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
5823 '-')" and "else if".
5824 (stap_parse_single_operand): Join checks for
5825 "gdbarch_stap_parse_special_token_p" and
5826 "gdbarch_stap_parse_special_token" in the same "if" statement.
5827 Invert check when verifying for operation on register
5830 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5832 * stap-probe.c (stap_get_opcode): Update comment.
5833 (stap_get_expected_argument_type): Likewise.
5834 (handle_stap_probe): Likewise.
5836 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5838 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
5839 return type to 'bool'. Adjust comment. Use 'bool' when
5841 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5842 * stap-probe.c (stap_parse_argument_1): Likewise.
5843 (stap_is_operator): Likewise.
5844 (stap_is_generic_prefix): Likewise.
5845 (stap_is_register_prefix): Likewise.
5846 (stap_is_register_indirection_prefix): Likewise.
5847 (stap_is_integer_prefix): Likewise.
5848 (stap_generic_check_suffix): Likewise.
5849 (stap_check_integer_suffix): Likewise.
5850 (stap_check_register_suffix): Likewise.
5851 (stap_check_register_indirection_suffix): Likewise.
5852 (stap_parse_register_operand): Likewise.
5853 (stap_parse_single_operand): Likewise.
5854 (stap_parse_argument_1): Likewise.
5855 (stap_probe::get_argument_count): Likewise.
5856 (stap_is_operator): Likewise.
5858 2019-05-16 Tom Tromey <tromey@adacore.com>
5860 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
5863 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
5865 * linux-thread-db.c (try_thread_db_load_1): Change return type
5867 (try_thread_db_load): Likewise.
5868 (try_thread_db_load_from_pdir_1): Likewise.
5869 (try_thread_db_load_from_pdir): Likewise.
5870 (try_thread_db_load_from_sdir): Likewise.
5871 (try_thread_db_load_from_dir): Likewise.
5872 (thread_db_load_search): Likewise.
5873 (has_libpthread): Likewise.
5874 (thread_db_load): Likewise.
5876 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
5878 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
5879 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
5880 NULL, and complain/return if that's the case.
5882 2019-05-15 John Darrington <john@darrington.wattle.id.au>
5884 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
5885 (advance, posn, abstract_read_memory): New functions.
5886 [struct mem_read_abstraction]: New struct.
5887 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
5889 2019-05-14 Tom Tromey <tromey@adacore.com>
5891 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
5892 value is not lval_memory.
5894 2019-05-14 Tom Tromey <tromey@adacore.com>
5896 * solib.c (info_sharedlibrary_command): Style the file name.
5898 2019-05-14 Alan Hayward <alan.hayward@arm.com>
5900 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
5901 (aarch64_vnv_type): Likewise.
5902 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
5903 * common/tdesc.c: Likewise.
5904 * common/tdesc.h (enum tdesc_type_kind): Likewise.
5905 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
5906 * features/aarch64-fpu.xml: Add ieee half view.
5907 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
5908 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
5909 * gdbtypes.h (struct builtin_type): Likewise.
5910 (struct objfile_type): Likewise.
5912 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
5914 * language.c (language_sniff_from_mangled_name): Fix "langauge"
5916 * location.h (string_to_event_location): Likewise.
5918 2019-05-11 Joel Brobecker <brobecker@adacore.com>
5922 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
5924 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
5925 New variable declaration.
5926 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
5928 (print_one_breakpoint): Use ui_out::test_flags and new global
5929 variable to compute use_fixed_output.
5930 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
5932 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
5933 (mi_multi_location_breakpoint_output_fixed): Remove.
5934 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
5936 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
5937 fix_multi_location_breakpoint_output flag if version >= 3.
5938 * ui-out.h (enum ui_out_flag)
5939 <fix_multi_location_breakpoint_output>: New enumerator.
5941 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
5943 * contrib/cc-with-tweaks.sh: Validate dwz's work.
5945 2019-05-10 Tom Tromey <tromey@adacore.com>
5947 * ada-lang.c (catch_ada_completer): New function.
5948 (_initialize_ada_language): Use it.
5950 2019-05-10 Tom Tromey <tromey@adacore.com>
5952 * thread.c (print_thread_info): Make "requested_threads" const.
5953 * gdbthread.h (print_thread_info): Make "requested_threads"
5955 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
5956 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
5958 2019-05-08 Tom Tromey <tom@tromey.com>
5960 * gdbtypes.c (objfile_type_data): Change type.
5961 (objfile_type, _initialize_gdbtypes): Update.
5963 2019-05-08 Tom Tromey <tom@tromey.com>
5965 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
5966 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
5967 (_initialize_dwarf2_frame): Update.
5969 2019-05-08 Tom Tromey <tom@tromey.com>
5971 * objc-lang.c (objc_objfile_data): Change type.
5972 (find_methods): Update.
5973 (_initialize_objc_lang): Remove.
5975 2019-05-08 Tom Tromey <tom@tromey.com>
5977 * stabsread.c (rs6000_builtin_type_data): Change type.
5978 (rs6000_builtin_type, _initialize_stabsread): Update.
5980 2019-05-08 Tom Tromey <tom@tromey.com>
5982 * mips-tdep.c (mips_pdr_data): Remove.
5983 (_initialize_mips_tdep): Update.
5985 2019-05-08 Tom Tromey <tom@tromey.com>
5987 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
5988 (hppa_init_objfile_priv_data, read_unwind_info)
5989 (find_unwind_entry, _initialize_hppa_tdep): Update.
5991 2019-05-08 Tom Tromey <tom@tromey.com>
5993 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
5994 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
5996 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
5998 2019-05-08 Tom Tromey <tom@tromey.com>
6000 * mdebugread.c (basic_type_data): Change type.
6001 (basic_type, _initialize_mdebugread): Update.
6003 2019-05-08 Tom Tromey <tom@tromey.com>
6005 * common/gdb_unique_ptr.h (struct noop_deleter): New.
6007 2019-05-08 Tom Tromey <tom@tromey.com>
6009 * nto-tdep.c (nto_inferior_data_reg): Change type.
6010 (nto_inferior_data): Update.
6011 (nto_inferior_data_cleanup, nto_new_inferior_data)
6012 (_initialize_nto_tdep): Remove.
6013 * nto-tdep.h (struct nto_inferior_data): Add initializers.
6015 2019-05-08 Tom Tromey <tom@tromey.com>
6017 * ada-lang.c (struct ada_inferior_data): Add initializers.
6018 (ada_inferior_data): Change type.
6019 (ada_inferior_data_cleanup): Remove.
6020 (get_ada_inferior_data, ada_inferior_exit)
6021 (struct ada_pspace_data): Add initializers, destructor.
6022 (ada_pspace_data_handle): Change type.
6023 (get_ada_pspace_data): Update.
6024 (ada_pspace_data_cleanup): Remove.
6026 2019-05-08 Tom Tromey <tom@tromey.com>
6028 * coffread.c (struct coff_symfile_info): Add initializers.
6029 (coff_objfile_data_key): Move lower. Change type.
6030 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
6032 (coff_free_info): Remove.
6034 2019-05-08 Tom Tromey <tom@tromey.com>
6036 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
6037 (fbsd_pspace_data_handle): Move lower. Change type.
6038 (get_fbsd_pspace_data): Update.
6039 (fbsd_pspace_data_cleanup): Remove.
6040 (_initialize_fbsd_tdep): Update.
6042 2019-05-08 Tom Tromey <tom@tromey.com>
6044 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
6045 (get_ada_tasks_pspace_data): Update.
6046 (ada_tasks_pspace_data_cleanup): Remove.
6047 (_initialize_tasks): Update.
6048 (ada_tasks_inferior_data_handle): Change type.
6049 (get_ada_tasks_inferior_data): Update.
6050 (ada_tasks_inferior_data_cleanup): Remove.
6051 (struct ada_tasks_pspace_data): Add initializers.
6053 2019-05-08 Tom Tromey <tom@tromey.com>
6055 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
6056 * symfile-debug.c (debug_sym_get_probes): Change type.
6057 * stap-probe.c (handle_stap_probe):
6058 (stap_static_probe_ops::get_probes): Change type.
6059 * probe.h (class static_probe_ops) <get_probes>: Change type.
6060 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
6061 (parse_probes_in_pspace): Update.
6062 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
6064 (any_static_probe_ops::get_probes): Change type.
6065 * elfread.c (elfread_data): New typedef.
6066 (probe_key): Change type.
6067 (elf_get_probes): Likewise. Update.
6068 (probe_key_free): Remove.
6069 (_initialize_elfread): Update.
6070 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
6072 (dtrace_process_dof_probe, dtrace_process_dof)
6073 (dtrace_static_probe_ops::get_probe): Change type.
6075 2019-05-08 Tom Tromey <tom@tromey.com>
6077 * xcoffread.c (struct xcoff_symfile_info): Rename from
6078 coff_symfile_info. Add initializers.
6079 (xcoff_objfile_data_key): Move lower. Change type.
6080 (XCOFF_DATA): Rewrite.
6081 (xcoff_free_info): Remove.
6082 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
6083 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
6084 (xcoff_initial_scan): Update.
6086 2019-05-08 Tom Tromey <tom@tromey.com>
6088 * solib-svr4.c (struct svr4_info): Add initializers and
6090 <probes_table>: Now an htab_up.
6091 (solib_svr4_pspace_data): Change type.
6092 (free_probes_table): Simplify.
6093 (~svr4_info): Rename from svr4_pspace_data_cleanup.
6094 (get_svr4_info, probes_table_htab_remove_objfile_probes)
6095 (probes_table_remove_objfile_probes, register_solib_event_probe)
6096 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
6097 (_initialize_svr4_solib): Update.
6099 2019-05-08 Tom Tromey <tom@tromey.com>
6101 * remote.c (remote_pspace_data): Change type.
6102 (remote_pspace_data_cleanup): Remove.
6103 (get_remote_exec_file, set_pspace_remote_exec_file)
6104 (_initialize_remote): Update.
6106 2019-05-08 Tom Tromey <tom@tromey.com>
6108 * breakpoint.c (breakpoint_objfile_key): Change type.
6109 (get_breakpoint_objfile_data): Update.
6110 (free_breakpoint_objfile_data): Remove.
6111 (_initialize_breakpoint): Update.
6113 2019-05-08 Tom Tromey <tom@tromey.com>
6115 * linux-tdep.c (struct linux_info): Add initializers.
6116 (linux_inferior_data): Move. Change type.
6117 (invalidate_linux_cache_inf): Update.
6118 (linux_inferior_data_cleanup): Remove.
6119 (get_linux_inferior_data, _initialize_linux_tdep): Update.
6121 2019-05-08 Tom Tromey <tom@tromey.com>
6123 * auxv.c (auxv_inferior_data): Move. Change type.
6124 (auxv_inferior_data_cleanup): Remove.
6125 (invalidate_auxv_cache_inf): Rewrite.
6126 (get_auxv_inferior_data, _initialize_auxv): Update.
6128 2019-05-08 Tom Tromey <tom@tromey.com>
6130 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
6131 (symfile_debug_objfile_data_key): Change type.
6132 (symfile_debug_installed, debug_qf_has_symbols)
6133 (debug_qf_find_last_source_symtab)
6134 (debug_qf_forget_cached_source_info)
6135 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
6136 (debug_qf_print_stats, debug_qf_dump)
6137 (debug_qf_expand_symtabs_for_function)
6138 (debug_qf_expand_all_symtabs)
6139 (debug_qf_expand_symtabs_with_fullname)
6140 (debug_qf_map_matching_symbols)
6141 (debug_qf_expand_symtabs_matching)
6142 (debug_qf_find_pc_sect_compunit_symtab)
6143 (debug_qf_map_symbol_filenames)
6144 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
6145 (debug_sym_new_init, debug_sym_init, debug_sym_read)
6146 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
6147 (debug_sym_read_linetable, debug_sym_relocate): Update.
6148 (symfile_debug_free_objfile): Remove.
6149 (install_symfile_debug_logging, _initialize_symfile_debug):
6152 2019-05-08 Tom Tromey <tom@tromey.com>
6154 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
6155 allocate_on_obstack.
6156 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
6157 (get_dwarf2_per_objfile): Update.
6158 (set_dwarf2_per_objfile): Remove.
6159 (dwarf2_has_info, dwarf2_get_section_info): Update.
6160 (dwarf2_free_objfile): Remove.
6161 (_initialize_dwarf2_read): Update.
6163 2019-05-08 Tom Tromey <tom@tromey.com>
6165 * auto-load.c (struct auto_load_pspace_info): Add destructor and
6167 <unsupported_script_warning_printed,
6168 script_not_found_warning_printed>: Now bool.
6169 (auto_load_pspace_data): Change type.
6170 (~auto_load_pspace_info): Rename from
6171 auto_load_pspace_data_cleanup.
6172 (get_auto_load_pspace_data, init_loaded_scripts_info)
6173 (clear_section_scripts, maybe_print_unsupported_script_warning)
6174 (maybe_print_script_not_found_warning, _initialize_auto_load):
6177 2019-05-08 Tom Tromey <tom@tromey.com>
6179 * objfiles.c (objfile_pspace_info): Add destructor and
6181 (objfiles_pspace_data): Change type.
6182 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
6183 (get_objfile_pspace_data): Update.
6184 (objfiles_bfd_data): Change type.
6185 (get_objfile_bfd_data): Update.
6186 (objfile_bfd_data_free, _initialize_objfiles): Remove.
6188 2019-05-08 Tom Tromey <tom@tromey.com>
6190 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
6192 (get_catch_syscall_inferior_data): Update.
6193 (catch_syscall_inferior_data_cleanup): Remove.
6194 (_initialize_break_catch_syscall): Update.
6196 2019-05-08 Tom Tromey <tom@tromey.com>
6198 * inflow.c (struct terminal_info): Add destructor and
6200 (inflow_inferior_data): Change type.
6201 (~terminal_info): Rename from inflow_inferior_data_cleanup.
6202 (get_inflow_inferior_data, inflow_inferior_exit)
6203 (swap_terminal_info, _initialize_inflow): Update.
6205 2019-05-08 Tom Tromey <tom@tromey.com>
6207 * target-dcache.c (target_dcache_cleanup): Remove.
6208 (target_dcache_aspace_key): Change type.
6209 (target_dcache_init_p, target_dcache_invalidate)
6210 (target_dcache_get, target_dcache_get_or_init)
6211 (_initialize_target_dcache): Update.
6212 * dcache.h (struct dcache_deleter): New.
6214 2019-05-08 Tom Tromey <tom@tromey.com>
6216 * symtab.c (struct symbol_cache): Add destructor and
6218 (symbol_cache_key): Move. Change type.
6219 (make_symbol_cache, free_symbol_cache): Remove.
6220 (get_symbol_cache): Update.
6221 (symbol_cache_cleanup): Remove.
6222 (ALL_PSPACES, symbol_cache_flush)
6223 (maintenance_print_symbol_cache)
6224 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
6227 2019-05-08 Tom Tromey <tom@tromey.com>
6229 * symtab.c (struct main_info): Add destructor and initializers.
6230 (main_progspace_key): Move. Change type.
6231 (get_main_info): Update.
6232 (main_info_cleanup): Remove.
6233 (_initialize_symtab): Update.
6235 2019-05-08 Tom Tromey <tom@tromey.com>
6237 * registry.h (DECLARE_REGISTRY): Define the _key class.
6239 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6241 * NEWS: Merge two 'New commands' sections.
6243 2019-05-08 Joel Brobecker <brobecker@adacore.com>
6245 * ada-valprint.c (ada_val_print_gnat_array): Remove language
6246 parameter and use Ada language definition instead.
6247 (ada_val_print_ptr): Remove unused language parameter.
6248 (ada_val_print_num): Remove language parameter and use Ada language
6250 (ada_val_print_enum, ada_val_print_flt): Remove unused language
6252 (ada_val_print_struct_union, ada_val_print_ref): Remove language
6253 parameter and use Ada language definition instead.
6254 (ada_val_print_1): Update all ada_val_print_xxx calls.
6255 Remove language parameter.
6256 (ada_val_print): Update ada_val_print_1 call.
6258 2019-05-08 Tom Tromey <tromey@adacore.com>
6260 * remote.c (remote_hw_watchpoint_limit)
6261 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
6264 2019-05-08 Tom Tromey <tromey@adacore.com>
6266 * maint.c (_initialize_maint_cmds): Move initialization code to
6268 (watchdog, show_watchdog): Move to remote.c.
6269 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
6271 (_initialize_remote): Move initialization code from maint.c.
6272 * defs.h (watchdog): Don't declare.
6274 2019-05-08 Tom Tromey <tromey@adacore.com>
6276 * tui/tui-interp.c: Include main.h.
6277 * interps.c: Include main.h.
6278 * main.h (interpreter_p): Declare.
6279 * defs.h (interpreter_p): Don't declare.
6281 2019-05-08 Tom Tromey <tromey@adacore.com>
6283 * dwarf2loc.c: Include dwarf2read.h.
6284 * defs.h (read_unsigned_leb128): Don't declare.
6285 * dwarf2read.h (read_unsigned_leb128): Declare.
6287 2019-05-08 Tom Tromey <tromey@adacore.com>
6289 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
6292 2019-05-08 Tom Tromey <tromey@adacore.com>
6294 * utils.c (fputs_maybe_filtered): Reset style after paging, even
6295 when no wrap column is set.
6297 2019-05-08 Tom Tromey <tromey@adacore.com>
6299 * c-lang.c (c_get_string): Handle non-C-style arrays.
6301 2019-05-08 Tom Tromey <tromey@adacore.com>
6303 * typeprint.c (print_offset_data::update): Print the bit offset,
6304 not the number of bits remaining.
6306 2019-05-08 Tom Tromey <tromey@adacore.com>
6308 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
6309 padding at end of comment.
6311 2019-05-08 Tom Tromey <tromey@adacore.com>
6313 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
6316 2019-05-06 Tom Tromey <tom@tromey.com>
6318 * common/scoped_mmap.c: Include common-defs.h.
6319 * common/scoped_mmap.h: Don't include config.h.
6321 2019-05-04 Tom Tromey <tom@tromey.com>
6323 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
6324 (struct aarch64_call_info): Add initializers.
6325 <si>: Now a std::vector.
6326 (pass_on_stack, aarch64_push_dummy_call): Update.
6328 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
6329 Tom Tromey <tom@tromey.com>
6331 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
6332 (ppc_threads): Now a std::vector. Now static.
6333 (hwdebug_find_thread_points_by_tid)
6334 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
6337 2019-05-04 Tom Tromey <tom@tromey.com>
6339 * arc-tdep.c (arc_tdesc_init): Return bool.
6341 2019-05-04 Tom Tromey <tom@tromey.com>
6343 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
6344 Use gdb_assert_not_reached.
6346 2019-05-04 Tom Tromey <tom@tromey.com>
6348 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
6351 2019-05-04 Tom Tromey <tom@tromey.com>
6353 * arc-tdep.c (arc_tdesc_init): Use bool.
6355 2019-05-04 Tom Tromey <tom@tromey.com>
6357 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
6359 2019-05-04 Tom Tromey <tom@tromey.com>
6361 * cli/cli-cmds.c (valid_command_p): Return bool.
6363 2019-05-04 Tom Tromey <tom@tromey.com>
6365 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
6366 * command.h (valid_user_defined_cmd_name_p): Channge return type.
6368 2019-05-04 Raul Tambre <raul@tambre.ee>
6370 * python/lib/gdb/prompt.py (_ExtendedPrompt)
6371 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
6372 operator for comparison.
6374 2019-05-04 Tom Tromey <tom@tromey.com>
6376 * psymtab.c (psymbol_name_matches, match_partial_symbol)
6377 (lookup_partial_symbol, print_partial_symbols)
6378 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
6379 (psymbol_compare): Update.
6380 (add_psymbol_to_bcache): Clear the entire psymbol.
6381 (maintenance_check_psymtabs): Update.
6382 * psympriv.h (struct partial_symbol): Don't derive from
6383 general_symbol_info.
6384 <obj_section, unrelocated_address, address,
6385 set_unrelocated_address>: Update.
6386 <ginfo>: New member.
6387 * dwarf-index-write.c (write_psymbols, debug_names::insert)
6388 (debug_names::write_psymbols): Update.
6390 2019-05-04 Tom de Vries <tdevries@suse.de>
6392 * contrib/cc-with-tweaks.sh: Support -n arg.
6394 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6396 * corelow.c (core_target::detach): Ensure frame cache and
6397 register caches are cleared.
6398 inferior.c (exit_inferior_1): Likewise.
6400 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
6401 Tom Tromey <tom@tromey.com>
6403 * dictionary.c (collate_pending_symbols_by_language): Remove
6404 "struct" from foreach.
6405 * symtab.c (lookup_global_symbol_from_objfile)
6406 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
6408 * ser-tcp.c (net_open): Remove "struct" from foreach.
6409 * objfiles.c (objfile_relocate, objfile_rebase)
6410 (objfile_has_symbols): Remove "struct" from foreach.
6411 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
6413 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
6415 * darwin-nat.c (thread_info_from_private_thread_info): Remove
6416 "struct" from foreach.
6417 * ada-lang.c (create_excep_cond_exprs)
6418 (ada_exception_catchpoint_cond_string): Remove "struct" from
6421 2019-05-03 Tom Tromey <tromey@adacore.com>
6423 * ada-exp.y (convert_char_literal): Check suffix of each
6426 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
6429 * ada-exp.y (yywrap): Don't define.
6430 * ada-lex.l (%option): Add noyywrap
6433 2019-05-03 Eli Zaretskii <eliz@gnu.org>
6435 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
6436 _WIN32_WINNT to the XP level, unless already defined to a higher
6439 * unittests/parse-connection-spec-selftests.c:
6441 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
6444 * symfile.c (find_separate_debug_file): Remove colon from the
6445 drive spec of DOS/Windows file names of the target, so that the
6446 file name produced from DEBUGDIR and the target's directory will
6447 be valid on DOS/Windows systems.
6449 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
6451 * rust-lang.c (val_print_struct): Handle printing structures
6454 2019-05-02 Tom Tromey <tromey@adacore.com>
6456 * valarith.c (_initialize_valarith): Remove.
6458 2019-05-01 Tom Tromey <tromey@adacore.com>
6460 * ada-lang.c (ada_value_primitive_field): Treat more fields as
6463 2019-05-01 Tom Tromey <tromey@adacore.com>
6465 * ada-lang.c (ada_value_assign): Correctly compute starting offset
6466 for big-endian copies.
6468 2019-04-30 Ali Tamur <tamur@google.com>
6469 * gdb/dwarf2read.c (read_3_bytes): New declaration.
6470 (read_attribute_value): Added DW_FORM_strx1-4 cases.
6471 (read_3_bytes): New function.
6473 2019-04-30 Joel Brobecker <brobecker@adacore.com>
6475 * windows-nat.c (main_thread_id): Delete.
6476 (handle_output_debug_string): Replace main_thread_id by
6477 current_event.dwThreadId.
6478 (fake_create_process): Likewise.
6479 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
6480 Do not set main_thread_id.
6481 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
6482 current_event.dwThreadId.
6483 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
6485 2019-04-30 Joel Brobecker <brobecker@adacore.com>
6487 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
6488 Use current_event.dwThreadId instead of main_thread_id.
6490 2019-04-30 Tom Tromey <tromey@adacore.com>
6492 * ada-lang.c (ada_lookup_simple_minsyms): New function.
6493 (create_excep_cond_exprs): Iterate over program spaces.
6494 (ada_exception_catchpoint_cond_string): Examine all minimal
6495 symbols for exception types.
6497 2019-04-30 Tom Tromey <tromey@adacore.com>
6500 * dwarf2read.c (process_structure_scope): Handle case where type
6501 has template parameters but no symbol was created.
6503 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6504 Chris January <chris.january@arm.com>
6506 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
6508 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
6510 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6512 * f-typeprint.c (f_print_type): Update rules for printing
6514 (f_type_print_varspec_suffix): Likewise.
6516 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6517 Chris January <chris.january@arm.com>
6519 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
6522 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6524 * f-lang.c (build_fortran_types): Change name of void type to
6526 * f-typeprint.c (f_type_print_base): Print the name of the void
6527 type, rather than a fixed string.
6528 * f-valprint.c (f_decorations): Use lower case void string.
6530 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6531 Chris January <chris.january@arm.com>
6533 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
6536 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6537 Chris January <chris.january@arm.com>
6538 David Lecomber <david.lecomber@arm.com>
6540 * f-exp.y (BINOP_INTRINSIC): New token.
6541 (exp): New parser rule handling BINOP_INTRINSIC.
6542 (f77_keywords): Add new builtin procedures.
6543 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
6544 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6545 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
6546 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6547 (print_unop_subexp_f): New function.
6548 (print_binop_subexp_f): New function.
6549 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6550 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6551 (dump_subexp_body_f): Likewise.
6552 (operator_check_f): Likewise.
6553 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6554 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
6556 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6558 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
6560 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
6561 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
6562 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
6563 (operator_length_f): New fuction.
6564 (print_subexp_f): New function.
6565 (op_name_f): New function.
6566 (dump_subexp_body_f): New function.
6567 (operator_check_f): New function.
6568 (exp_descriptor_f): Replace standard expression handling functions
6570 * gdb/fortran-operator.def: New file.
6571 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
6572 * gdb/std-operator.def: Remove UNOP_KIND.
6574 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6576 * std-operator.def: Remove unbalanced, stray double quote
6579 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6580 Chris January <chris.january@arm.com>
6581 Daniel Everett <daniel.everett@arm.com>
6582 Nick Forrington <nick.forrington@arm.com>
6583 Richard Bunt <richard.bunt@arm.com>
6585 * cp-valprint.c (cp_print_value_fields): Allow an additional level
6586 of depth when printing anonymous structs or unions.
6587 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
6588 Don't print either the top-level value, or the children if the
6589 max-depth is exceeded.
6590 (ppscm_print_children): When printing the key of a map, allow one
6591 extra level of depth.
6592 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
6593 print either the top-level value, or the children if the max-depth
6595 (print_children): When printing the key of a map, allow one extra
6597 * python/py-value.c (valpy_format_string): Add max_depth keyword.
6598 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
6599 (user_print_options): Initialise max_depth field.
6600 (val_print_scalar_or_string_type_p): New function.
6601 (val_print): Check to see if the max depth has been reached.
6602 (val_print_check_max_depth): Define new function.
6603 (show_print_max_depth): New function.
6604 (_initialize_valprint): Add 'print max-depth' option.
6605 * valprint.h (struct value_print_options) <max_depth>: New field.
6606 (val_print_check_max_depth): Declare new function.
6607 * NEWS: Document new feature.
6609 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6611 * ada-lang.c (ada_language_defn): Initialise new field.
6612 * c-lang.c (c_is_string_type_p): New function.
6613 (c_language_defn): Initialise new field.
6614 (cplus_language_defn): Initialise new field.
6615 (asm_language_defn): Initialise new field.
6616 (minimal_language_defn): Initialise new field.
6617 * c-lang.h (c_is_string_type_p): Declare new function.
6618 * d-lang.c (d_language_defn): Initialise new field.
6619 * f-lang.c (f_is_string_type_p): New function.
6620 (f_language_defn): Initialise new field.
6621 * go-lang.c (go_is_string_type_p): New function.
6622 (go_language_defn): Initialise new field.
6623 * language.c (default_is_string_type_p): New function.
6624 (unknown_language_defn): Initialise new field.
6625 (auto_language_defn): Initialise new field.
6626 * language.h (struct language_defn) <la_is_string_type_p>: New
6628 (default_is_string_type_p): Declare new function.
6629 * m2-lang.c (m2_language_defn): Initialise new field.
6630 * objc-lang.c (objc_language_defn): Initialise new field.
6631 * opencl-lang.c (opencl_language_defn): Initialise new field.
6632 * p-lang.c (pascal_is_string_type_p): New function.
6633 (pascal_language_defn): Initialise new field.
6634 * rust-lang.c (rust_is_string_type_p): New function.
6635 (rust_language_defn): Initialise new field.
6637 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6639 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
6641 * ada-lang.c (ada_language_defn): Initialise new field.
6642 * c-lang.c (c_language_defn): Likewise.
6643 (cplus_language_defn): Likewise.
6644 (asm_language_defn): Likewise.
6645 (minimal_language_defn): Likewise.
6646 * d-lang.c (d_language_defn): Likewise.
6647 * f-lang.c (f_language_defn): Likewise.
6648 * go-lang.c (go_language_defn): Likewise.
6649 * language.c (unknown_language_defn): Likewise.
6650 (auto_language_defn): Likewise.
6651 * m2-lang.c (m2_language_defn): Likewise.
6652 * objc-lang.c (objc_language_defn): Likewise.
6653 * opencl-lang.c (opencl_language_defn): Likewise.
6654 * p-lang.c (pascal_language_defn): Likewise.
6655 * rust-lang.c (rust_language_defn): Likewise.
6657 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6659 * ada-lang.c (ada_is_character_type): Change return type to bool.
6660 (ada_is_string_type): Likewise.
6661 * ada-lang.h (ada_is_character_type): Update declaration
6662 (ada_is_string_type): Likewise.
6664 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6666 Support style in 'frame|thread apply'
6668 * gdbcmd.h (execute_command_to_string): New term_out parameter.
6669 * record.c (record_start, record_stop): Update callers of
6670 execute_command_to_string with false.
6671 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
6672 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
6674 (class string_file): New constructor with term_out parameter.
6675 Override methods term_out and can_emit_style_escape. New member
6677 (class stdio_file): Override can_emit_style_escape.
6678 (class tee_file): Override term_out and can_emit_style_escape.
6679 * utils.h (can_emit_style_escape): Remove.
6680 * utils.c (can_emit_style_escape): Likewise.
6681 Update all callers of can_emit_style_escape (SOMESTREAM) to
6682 SOMESTREAM->can_emit_style_escape.
6683 * source-cache.c (source_cache::get_source_lines): Likewise.
6684 * stack.c (frame_apply_command_count): Call execute_command_to_string
6685 passing the term_out characteristic of the current gdb_stdout.
6686 * thread.c (thr_try_catch_cmd): Likewise.
6687 * top.c (execute_command_to_string): pass term_out parameter
6688 to construct the string_file for the command output.
6689 * ui-file.c (term_cli_styling): New function (most code moved
6690 from utils.c can_emit_style_escape).
6691 (string_file::string_file, string_file::can_emit_style_escape,
6692 stdio_file::can_emit_style_escape, tee_file::term_out,
6693 tee_file::can_emit_style_escape): New functions.
6695 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6697 * NEWS: Mention the new set|show may-call-functions.
6698 * infcall.c (may_call_functions_p): New variable.
6699 (show_may_call_functions_p): New function.
6700 (call_function_by_hand_dummy): Throws an error if not
6702 (_initialize_infcall): Call add_setshow_boolean_cmd for
6705 2019-04-25 Keith Seitz <keiths@redhat.com>
6708 * cp-support.c (inspect_type): Don't attempt substitutions
6709 of symbol with the same name.
6711 2019-04-25 Tom Tromey <tromey@adacore.com>
6714 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
6717 2019-04-25 Tom Tromey <tromey@adacore.com>
6719 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
6721 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
6722 (gdb_xml_parser::parse): Use std::move.
6723 * python/python-internal.h (gdbpy_convert_exception): Take a const
6725 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
6727 * python/py-utils.c (gdbpy_convert_exception): Take a const
6729 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
6731 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
6733 * mi/mi-main.c (mi_print_exception): Take a const reference.
6734 * main.c (handle_command_errors): Take a const reference.
6735 * linespec.c (parse_linespec): Use std::move.
6736 * infcall.c (run_inferior_call): Use std::move.
6737 (call_function_by_hand_dummy): Use std::move.
6738 * exec.c (try_open_exec_file): Use std::move.
6739 * exceptions.h (exception_print, exception_fprintf)
6740 (exception_print_same): Update.
6741 * exceptions.c (print_exception, exception_print)
6742 (exception_fprintf, exception_print_same): Change parameters to
6744 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
6745 * common/new-op.c: Use std::move.
6746 * common/common-exceptions.h (struct gdb_exception): Add move
6748 (struct gdb_exception_error, struct gdb_exception_quit, struct
6749 gdb_quit_bad_alloc): Change constructor to move constructor.
6750 (throw_exception): Change parameter to rvalue reference.
6751 * common/common-exceptions.c (throw_exception): Take rvalue
6753 * cli/cli-interp.c (safe_execute_command): Use std::move.
6754 * breakpoint.c (insert_bp_location, location_to_sals): Use
6757 2019-04-25 Tom Tromey <tromey@adacore.com>
6759 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
6760 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
6761 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
6762 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
6763 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
6764 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
6765 guile/scm-value.c: Use unpack.
6766 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
6767 gdbscm_gdb_exception.
6768 (gdbscm_throw_gdb_exception): Likewise.
6769 (struct gdbscm_gdb_exception): New.
6770 (unpack): New function.
6771 (gdbscm_wrap): Use unpack.
6773 2019-04-25 Tom Tromey <tromey@adacore.com>
6775 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
6776 (gdb_rl_callback_handler): Use std::move.
6777 * common/common-exceptions.h (struct gdb_exception): Add move
6778 assignment operator.
6779 (throw_exception_sjlj): Change "exception" to const reference.
6780 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
6781 (throw_exception_sjlj): Change "exception" to const reference.
6783 2019-04-25 Tom Tromey <tromey@adacore.com>
6785 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
6786 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
6787 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
6789 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
6791 * mi/mi-interp.c (mi_interp::exec): Update.
6792 * linespec.c (parse_linespec): Update.
6793 * infcall.c (run_inferior_call): Update.
6794 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
6795 * guile/scm-symbol.c (gdbscm_lookup_symbol)
6796 (gdbscm_lookup_global_symbol): Update.
6797 * guile/scm-param.c (gdbscm_parameter_value): Update.
6798 * guile/scm-frame.c (gdbscm_frame_read_register)
6799 (gdbscm_frame_read_var): Update.
6800 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
6801 * exec.c (try_open_exec_file): Update.
6802 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
6803 (gdb_rl_callback_handler): Update.
6804 * common/common-exceptions.h (exception_none): Don't declare.
6805 * common/common-exceptions.c (exception_none): Don't define.
6806 (struct catcher) <exception>: Update.
6807 * cli/cli-interp.c (safe_execute_command): Update.
6808 * breakpoint.c (insert_bp_location, location_to_sals): Update.
6810 2019-04-25 Ali Tamur <tamur@google.com>
6812 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
6813 (read_attribute_value): Likewise.
6814 (dwarf2_read_addr_index): Update comment.
6815 (read_str_index): Add DW_FORM_strx.
6816 (dwarf2_string_attr): Likewise.
6817 (dwarf2_const_value_attr): Likewise.
6818 (dump_die_shallow): Likewise.
6819 (dwarf2_fetch_constant_bytes): Likewise.
6820 (skip_form_bytes): Likewise.
6821 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
6823 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6827 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
6828 OFFSET. Verify if current mapping contains an ELF header.
6829 (linux_find_memory_regions_full): Adjust call to
6832 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
6833 Kang Li <kanglictf@gmail.com>
6837 * dwarf2-frame.c (read_initial_length): Be consistent about using
6838 unsigned representation of length.
6839 (decode_frame_entry_1): Likewise. Check for wraparound of
6840 end pointer as well as buffer overflow.
6842 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6844 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
6847 2019-04-24 Tom Tromey <tromey@adacore.com>
6849 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
6851 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6853 * s12z-tdep.c (s12z_unwind_pc): Delete.
6854 (s12z_unwind_sp): Delete.
6855 (s12z_gdbarch_init): Don't register deleted functions with
6858 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6860 * rl78-tdep.c (rl78_unwind_sp): Delete.
6861 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
6863 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6865 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
6866 (xstormy16_unwind_pc): Delete.
6867 (xstormy16_dummy_id): Delete.
6868 (xstormy16_gdbarch_init): Don't register deleted functions with
6871 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6873 * vax-tdep.c (vax_unwind_pc): Delete.
6874 (vax_gdbarch_init): Don't register deleted function with gdbarch.
6876 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6878 * v850-tdep.c (v850_unwind_sp): Delete.
6879 (v850_unwind_pc): Delete.
6880 (v850_dummy_id): Delete.
6881 (v850_gdbarch_init): Don't register deleted functions with
6884 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6886 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
6887 (tilegx_unwind_pc): Delete.
6888 (tilegx_unwind_dummy_id): Delete.
6889 (tilegx_gdbarch_init): Don't register deleted functions with
6892 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6894 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
6895 (tic6x_dummy_id): Delete.
6896 (tic6x_gdbarch_init): Don't register deleted functions with
6899 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6901 * sparc-tdep.c (sparc_unwind_pc): Delete.
6902 (sparc32_gdbarch_init): Don't register deleted function with
6905 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6907 * sh-tdep.c (sh_unwind_sp): Delete.
6908 (sh_unwind_pc): Delete.
6909 (sh_dummy_id): Delete.
6910 (sh_gdbarch_init): Don't register deleted functions with
6913 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6915 * score-tdep.c (score_unwind_sp): Delete.
6916 (score_unwind_pc): Delete.
6917 (score_dummy_id): Delete.
6918 (score_gdbarch_init): Don't register deleted functions with
6921 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6923 * rx-tdep.c (rx_unwind_pc): Delete.
6924 (rx_unwind_sp): Delete.
6925 (rx_dummy_id): Delete.
6926 (rx_gdbarch_init): Don't register deleted functions with
6927 gdbarch. Update comment.
6929 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6931 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
6932 (rs6000_dummy_id): Delete.
6933 (rs6000_gdbarch_init): Don't register deleted functions with
6936 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6938 * or1k-tdep.c (or1k_dummy_id): Delete.
6939 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
6941 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6943 * nios2-tdep.c (nios2_dummy_id): Delete.
6944 (nios2_unwind_sp): Delete.
6945 (nios2_gdbarch_init): Don't register deleted functions with
6948 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6950 * nds32-tdep.c (nds32_dummy_id): Delete.
6951 (nds32_unwind_pc): Delete.
6952 (nds32_unwind_sp): Delete.
6953 (nds32_gdbarch_init): Don't register deleted functions with
6956 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6958 * msp430-tdep.c (msp430_unwind_pc): Delete.
6959 (msp430_unwind_sp): Delete.
6960 (msp430_dummy_id): Delete.
6961 (msp430_gdbarch_init): Don't register deleted functions with
6964 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6966 * moxie-tdep.c (moxie_unwind_sp): Delete.
6967 (moxie_unwind_pc): Delete.
6968 (moxie_dummy_id): Delete.
6969 (moxie_gdbarch_init): Don't register deleted functions with
6972 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6974 * mn10300-tdep.c (mn10300_dummy_id): Delete.
6975 (mn10300_unwind_pc): Delete.
6976 (mn10300_unwind_sp): Delete.
6977 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
6979 (mn10300_frame_unwind_init): Don't register deleted functions with
6982 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6984 * mep-tdep.c (mep_unwind_pc): Delete.
6985 (mep_unwind_sp): Delete.
6986 (mep_dummy_id): Delete.
6987 (mep_gdbarch_init): Don't register deleted functions with
6990 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6992 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
6993 (m68hc11_unwind_sp): Delete.
6994 (m68hc11_gdbarch_init): Don't register deleted functions with
6997 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6999 * m32r-tdep.c (m32r_unwind_sp): Delete.
7000 (m32r_unwind_pc): Delete.
7001 (m32r_dummy_id): Delete.
7002 (m32r_gdbarch_init): Don't register deleted functions with
7005 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7007 * m32c-tdep.c (m32c_unwind_pc): Delete.
7008 (m32c_unwind_sp): Delete.
7009 (m32c_dummy_id): Delete.
7010 (m32c_gdbarch_init): Don't register deleted functions with
7013 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7015 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
7016 (lm32_unwind_pc): Delete.
7017 (lm32_dummy_id): Delete.
7018 (lm32_gdbarch_init): Don't register deleted functions with
7021 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7023 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
7024 (iq2000_unwind_pc): Delete.
7025 (iq2000_dummy_id): Delete.
7026 (iq2000_gdbarch_init): Don't register deleted functions with
7029 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7031 * nds32-tdep.c (nds32_type_align): Delete.
7032 (nds32_push_dummy_call): Use type_align instead.
7034 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7036 * arm-tdep.c (arm_type_align): Only handle vector override case.
7037 (arm_push_dummy_call): Use type_align.
7038 (arm_gdbarch_init): Register arm_type_align gdbarch function.
7040 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7042 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
7044 (pass_on_stack): Use type_align.
7045 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
7048 2019-04-23 Tom Tromey <tromey@adacore.com>
7050 * dwarf2read.c (line_header::file_name_at): Remove unused
7053 2019-04-23 Tom de Vries <tdevries@suse.de>
7056 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
7060 2019-03-27 Ali Tamur <tamur@google.com>
7062 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
7063 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
7064 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
7065 (dwarf_expr_context::get_addr_index): Likewise
7066 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
7067 (symbol_needs_eval_context::get_addr_index): Likewise
7068 (disassemble_dwarf_expression): Add DW_OP_addrx
7069 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
7070 (read_cutu_die_from_dwo): Update comment
7071 (skip_one_die): Add DW_FORM_addrx
7072 (read_attribute_value): Likewise
7073 (var_decode_location): Add DW_OP_addrx
7074 (dwarf2_const_value_attr): Add DW_FORM_addrx
7075 (dump_die_shallow): Likewise
7076 (dwarf2_fetch_constant_bytes): Likewise
7077 (decode_locdesc): Add DW_OP_addrx
7078 (skip_form_bytes): Add DW_FORM_addrx
7080 2019-04-22 Ali Tamur <tamur@google.com>
7082 * MAINTAINERS (Write After Approval): Add self.
7084 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
7086 * solib-svr4.c (get_svr4_info): Add pspace parameter.
7087 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
7088 (open_symbol_file_object): Likewise.
7089 (svr4_default_sos): Add info parameter.
7090 (svr4_read_so_list): Likewise.
7091 (svr4_current_sos_direct): Adjust functions calls to pass down
7093 (svr4_current_sos_1): Add info parameter.
7094 (svr4_current_sos): Call get_svr4_info, pass info down to
7096 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
7098 (svr4_in_dynsym_resolve_code): Pass current_program_space to
7100 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
7102 (probes_table_remove_objfile_probes): Likewise.
7103 (register_solib_event_probe): Add info parameter.
7104 (solist_update_incremental): Pass info parameter down to
7106 (disable_probes_interface): Add info parameter.
7107 (svr4_handle_solib_event): Pass current_program_space to
7108 get_svr4_info. Adjust disable_probes_interface cleanup.
7109 (svr4_create_probe_breakpoints): Add info parameter, pass it
7110 down to register_solib_event_probe.
7111 (svr4_create_solib_event_breakpoints): Add info parameter,
7112 pass it down to svr4_create_probe_breakpoints.
7113 (enable_break): Pass info down to
7114 svr4_create_solib_event_breakpoints.
7115 (svr4_solib_create_inferior_hook): Pass current_program_space to
7117 (svr4_clear_solib): Likewise.
7119 2019-04-22 Pedro Alves <palves@redhat.com>
7121 * solib-svr4.c (svr4_free_objfile_observer): New.
7122 (probe_and_action::objfile): New field.
7123 (probes_table_htab_remove_objfile_probes)
7124 (probes_table_remove_objfile_probes): New functions.
7125 (register_solib_event_probe): Add 'objfile' parameter. Store it
7126 in the new probe_and_action. Don't store the probe in 'lookup'.
7127 (svr4_create_probe_breakpoints): Pass objfile to
7128 register_solib_event_probe.
7129 (_initialize_svr4_solib): Register a free_objfile observer.
7131 2019-04-19 Tom Tromey <tom@tromey.com>
7133 * common/queue.h: Remove.
7135 2019-04-19 Tom Tromey <tom@tromey.com>
7137 * event-loop.c: Don't include "common/queue.h".
7139 2019-04-19 Tom Tromey <tom@tromey.com>
7141 * remote.c (remote_target): Use delete.
7142 * remote-notif.h: Include <list>, not "common/queue.h".
7143 (notif_client_p): Remove typedef.
7144 (remote_notif_state): Add constructor, destructor, initializer.
7145 <notif_queue>: Now a std::list.
7146 (remote_notif_state_xfree): Don't declare.
7147 * remote-notif.c (remote_notif_process, handle_notification)
7148 (remote_notif_state_allocate): Update.
7149 (~remote_notif_state): Rename from remote_notif_state_xfree.
7151 2019-04-19 Tom Tromey <tom@tromey.com>
7153 * symfile.c (reread_symbols): Update.
7154 * objfiles.c (objfile_register_static_link)
7155 (objfile_lookup_static_link): Update
7156 (~objfile) Don't delete static_links.
7157 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
7159 2019-04-19 Tom Tromey <tom@tromey.com>
7161 * type-stack.h (struct type_stack) <insert>: Constify string.
7162 * type-stack.c (type_stack::insert): Constify string.
7163 * gdbtypes.h (lookup_template_type): Update.
7164 (address_space_name_to_int): Update.
7165 * gdbtypes.c (address_space_name_to_int): Make space_identifier
7167 (lookup_template_type): Make name const.
7168 * c-exp.y: Update rules.
7169 (lex_one_token, classify_name, classify_inner_name)
7170 (c_print_token): Update.
7171 * p-exp.y: Update rules.
7173 * f-exp.y: Update rules.
7175 * d-exp.y: Update rules.
7176 (lex_one_token, classify_name, classify_inner_name): Update.
7177 * parse.c (write_dollar_variable, copy_name): Return std::string.
7178 * parser-defs.h (copy_name): Change return type.
7179 * m2-exp.y: Update rules.
7181 * go-exp.y (lex_one_token): Update.
7183 (classify_unsafe_function, classify_packaged_name)
7184 (classify_name, yylex): Update.
7186 2019-04-19 Sergei Trofimovich <siarheit@google.com>
7188 * configure.ac: add --enable-source-highlight switch.
7189 * configure: Regenerate.
7190 * top.c (print_gdb_version): plumb --enable-source-highlight
7191 status to "show configuration".
7193 2019-04-19 Tom Tromey <tromey@adacore.com>
7195 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
7197 (empty_record, ada_template_to_fixed_record_type_1)
7198 (template_to_static_fixed_type)
7199 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
7200 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
7201 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
7204 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
7207 * source.c (print_source_lines_base): Advance "iter" when a
7208 control character is seen.
7210 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7212 * inferior.h (struct infcall_suspend_state_deleter):
7213 Catch exception in destructor to avoid crash.
7215 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7217 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
7218 close to the add_com "shell".
7220 2019-04-18 Tom Tromey <tromey@adacore.com>
7222 * process-stratum-target.h (class process_stratum_target)
7223 <stratum>: Add "final".
7225 2019-04-17 Tom Tromey <tromey@adacore.com>
7227 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
7228 against nullptr before use.
7230 2019-04-17 Alan Hayward <alan.hayward@arm.com>
7232 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
7234 2019-04-17 Jim Wilson <jimw@sifive.com>
7235 Andrew Burgess <andrew.burgess@embecosm.com>
7237 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
7238 code read might fail, assume 4-byte breakpoint in that case.
7240 2019-04-15 Leszek Swirski <leszeks@google.com>
7242 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
7243 rather than a hand-rolled POD check when checking for forced MEMORY
7246 2019-04-15 Alan Hayward <alan.hayward@arm.com>
7248 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
7249 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
7251 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
7252 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
7253 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
7256 2019-04-15 Alan Hayward <alan.hayward@arm.com>
7258 * aarch64-linux-nat.c
7259 (aarch64_linux_nat_target::thread_architecture): Add override.
7260 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
7263 2019-04-15 Alan Hayward <alan.hayward@arm.com>
7265 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
7267 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
7269 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
7270 target types of size 96-bits, add some additional comments, and
7271 check that the builtin type we found was the correct size.
7273 2019-04-12 Eli Zaretskii <eliz@gnu.org>
7275 * utils.c (prompt_for_continue): Don't restore the styling at the
7276 end, as applied_style has the wrong value. This fixes styling in
7277 long lists of file names that are interrupted by the "Continue?"
7280 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
7282 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
7283 * c-lang.c (c_language_defn): Likewise.
7284 (cplus_language_defn): Likewise.
7285 (asm_language_defn): Likewise.
7286 (minimal_language_defn): Likewise.
7287 * d-lang.c (d_language_defn): Likewise.
7288 * f-lang.c (f_language_defn): Likewise.
7289 * go-lang.c (go_language_defn): Likewise.
7290 * language.c (unknown_language_defn): Likewise.
7291 (auto_language_defn): Likewise.
7292 * language.h (struct language_defn): Remove la_magic field.
7293 (LANG_MAGIC): Delete.
7294 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
7295 * objc-lang.c (objc_language_defn): Likewise.
7296 * opencl-lang.c (opencl_language_defn): Likewise.
7297 * p-lang.c (pascal_language_defn): Likewise.
7298 * rust-lang.c (rust_language_defn): Likewise.
7300 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7302 * riscv-tdep.c (riscv_type_align): New function.
7303 (riscv_type_alignment): Delete.
7304 (riscv_arg_location): Use 'type_align'.
7305 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
7307 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7309 * gdbtypes.c (type_align): A struct with no non-static fields also
7312 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7314 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
7316 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
7318 (riscv_struct_info::analyse): New implementation using new
7319 analyse_inner member function.
7320 (riscv_struct_info::field_offset): New member function.
7321 (riscv_struct_info::m_offsets): New member variable.
7322 (riscv_struct_info::analyse_inner): New private member function,
7323 takes the old implementation of riscv_struct_info::analyse but
7324 extended to track field offsets.
7325 (riscv_call_arg_struct): Update the struct folding special cases
7326 to handle cases where empty C++ structs, which are non-zero
7328 (riscv_arg_location): Initialise the length of each location, a
7329 non-zero length now indicates the location is in use.
7330 (riscv_push_dummy_call): Allow for the first location having a
7331 non-zero offset when setting up arguments.
7332 (riscv_return_value): Likewise, but for return values.
7334 2019-04-11 Tom Tromey <tromey@adacore.com>
7336 * utils.c (internal_vproblem): Make "msg" const.
7338 2019-04-11 Alan Hayward <alan.hayward@arm.com>
7340 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
7341 * trad-frame.c (trad_frame_reset_saved_regs): New function.
7342 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
7343 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
7345 2019-04-10 Kevin Buettner <kevinb@redhat.com>
7347 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
7349 (fill_gregset): Call amd64_linux_collect_native_gregset instead
7350 of amd64_collect_native_gregset.
7351 (amd64_linux_nat_target::store_registers): Likewise.
7353 2019-04-10 Tom Tromey <tom@tromey.com>
7355 * symtab.c (lookup_global_symbol_from_objfile)
7356 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
7357 * objfiles.h (class separate_debug_iterator): New.
7358 (class separate_debug_range): New.
7359 (struct objfile) <separate_debug_objfiles>: New method.
7360 (objfile_separate_debug_iterate): Don't declare.
7361 * objfiles.c (separate_debug_iterator::operator++): Rename from
7362 objfile_separate_debug_iterate.
7363 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
7365 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
7368 2019-04-10 Tom Tromey <tom@tromey.com>
7370 * symfile.c (reread_symbols): Remove old comment.
7371 * objfiles.c (free_all_objfiles): Fix a typo.
7373 2019-04-10 Tom Tromey <tom@tromey.com>
7375 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
7376 * minsyms.c (lookup_minimal_symbol): Use foreach.
7377 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7378 (lookup_minimal_symbol_solib_trampoline): Likewise.
7379 * symfile.c (reread_symbols): Use foreach.
7381 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
7382 Tom Tromey <tromey@adacore.com>
7385 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
7386 (rust_lex_int_test): Change "value" to be LONGEST.
7387 (rust_lex_tests): Add test for long integer literal.
7389 2019-04-09 Tom Tromey <tromey@adacore.com>
7391 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
7393 (extended_remote_target::attach): Update.
7394 (remote_target::remote_notice_new_inferior): Update.
7395 (remote_target::add_current_inferior_and_thread): Update.
7396 * inferior.c (exit_inferior_1): Use "false".
7397 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
7399 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
7401 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
7402 the "start" command.
7404 2019-04-08 Kevin Buettner <kevinb@redhat.com>
7406 * python/py-inferior.c (infpy_thread_from_thread_handle):
7407 Adjust comments to reflect renaming of thread_from_thread_handle
7408 to thread_from_handle. Adjust keywords. Fix type error message.
7409 (inferior_object_methods): Add thread_from_handle. Retain
7410 thread_from_thread_handle, but mark it as deprecated.
7412 2019-04-08 Kevin Buettner <kevinb@redhat.com>
7414 * gdbthread.h (find_thread_by_handle): Revise declaration.
7415 * thread.c (find_thread_by_handle): Likewise. Adjust
7417 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
7418 support for buffer objects as handles.
7420 2019-04-08 Kevin Buettner <kevinb@redhat.com>
7422 * python/py-infthread.c (thpy_thread_handle): New function.
7423 (thread_object_methods): Register thpy_thread_handle.
7425 2019-04-08 Kevin Buettner <kevinb@redhat.com>
7427 * gdbthread.h (thread_to_thread_handle): Declare.
7428 * thread.c (gdbtypes.h): Include.
7429 (thread_to_thread_handle): New function.
7431 * target.h (struct target_ops): Add thread_info_to_thread_handle.
7432 (target_thread_info_to_thread_handle): Declare.
7433 * target.c (target_thread_info_to_thread_handle): New function.
7434 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
7435 * target-delegates.c: Regenerate.
7437 * linux-thread-db.c (class thread_db_target): Add method
7438 thread_info_to_thread_handle.
7439 (thread_db_target::thread_info_to_thread_handle): Define.
7440 * remote.c (class remote_target): Add new method
7441 thread_info_to_thread_handle.
7442 (remote_target::thread_info_to_thread_handle): Define.
7444 2019-04-08 Pedro Alves <palves@redhat.com>
7446 * common/common-exceptions.c (throw_exception): Don't create
7447 named object to throw; throw directly.
7448 (throw_it): Likewise. Don't initialize gdb_exception::message
7449 here, with new; pass FMT and AP to the ctor instead.
7450 * common/common-exceptions.h: Include <string>.
7451 (gdb_exception::gdb_exception(enum return_reason, enum errors,
7452 const char *, va_list)): New ctor. Use std::make_shared.
7453 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
7455 (gdb_exception_error::gdb_exception_error(enum errors, const char
7457 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
7459 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
7461 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
7462 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
7465 2019-04-08 Tom Tromey <tom@tromey.com>
7467 * valops.c (value_rtti_indirect_type): Replace throw_exception
7469 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
7471 * thread.c (thr_try_catch_cmd): Replace throw_exception with
7473 * target.c (target_translate_tls_address): Replace throw_exception
7475 * stack.c (frame_apply_command_count): Replace throw_exception
7477 * solib-spu.c (append_ocl_sos): Replace throw_exception with
7479 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
7481 * rs6000-tdep.c (rs6000_frame_cache)
7482 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
7483 * remote.c: Replace throw_exception with throw.
7484 * record-full.c (record_full_message, record_full_wait_1)
7485 (record_full_restore): Replace throw_exception with throw.
7487 (get_thread_current_frame_id, record_btrace_start_replaying)
7488 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
7489 (cmd_record_btrace_start): Replace throw_exception with throw.
7490 * parse.c (parse_exp_in_context_1): Replace throw_exception with
7492 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
7493 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
7495 (find_linespec_symbols): Replace throw_exception with throw.
7496 * infrun.c (displaced_step_prepare, resume): Replace
7497 throw_exception with throw.
7498 * infcmd.c (post_create_inferior): Replace throw_exception with
7500 * inf-loop.c (inferior_event_handler): Replace throw_exception
7502 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
7503 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
7504 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
7505 (get_prev_frame_always, get_frame_pc_if_available)
7506 (get_frame_address_in_block_if_available, get_frame_language):
7507 Replace throw_exception with throw.
7508 * frame-unwind.c (frame_unwind_try_unwinder): Replace
7509 throw_exception with throw.
7510 * eval.c (fetch_subexp_value, evaluate_var_value)
7511 (evaluate_funcall, evaluate_subexp_standard): Replace
7512 throw_exception with throw.
7513 * dwarf2loc.c (call_site_find_chain)
7514 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
7515 Replace throw_exception with throw.
7516 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
7518 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
7520 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
7521 * completer.c (complete_line_internal): Replace throw_exception
7523 * compile/compile-object-run.c (compile_object_run): Replace
7524 throw_exception with throw.
7525 * cli/cli-script.c (process_next_line): Replace throw_exception
7527 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
7528 (btrace_enable, btrace_maint_update_pt_packets): Replace
7529 throw_exception with throw.
7530 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
7531 throw_exception with throw.
7532 * break-catch-throw.c (re_set_exception_catchpoint): Replace
7533 throw_exception with throw.
7534 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
7535 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
7536 * aarch64-tdep.c (aarch64_make_prologue_cache)
7537 (aarch64_make_stub_cache): Replace throw_exception with throw.
7539 2019-04-08 Tom Tromey <tom@tromey.com>
7541 * common/common-exceptions.c (throw_exception): Rename from
7542 throw_exception_cxx. Remove old copy. Make argument const.
7543 (throw_it): Create and throw exception objects directly.
7544 * common/common-exceptions.h (throw_exception): Make argument
7546 (struct gdb_exception_error): Add constructor.
7547 (struct gdb_exception_quit): Add constructor.
7549 2019-04-08 Tom Tromey <tom@tromey.com>
7551 * common/common-exceptions.h (exception_rethrow): Don't declare.
7552 (TRY_SJLJ): Update comment.
7553 (TRY, CATCH, END_CATCH): Remove.
7554 * common/common-exceptions.c (exception_rethrow): Remove.
7556 2019-04-08 Tom Tromey <tom@tromey.com>
7558 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
7560 (gdb_exception_error): Rename from
7561 gdb_exception_RETURN_MASK_ERROR.
7562 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
7563 (gdb_quit_bad_alloc): Update.
7564 * aarch64-tdep.c: Update.
7565 * ada-lang.c: Update.
7566 * ada-typeprint.c: Update.
7567 * ada-valprint.c: Update.
7568 * amd64-tdep.c: Update.
7569 * arch-utils.c: Update.
7570 * break-catch-throw.c: Update.
7571 * breakpoint.c: Update.
7573 * c-varobj.c: Update.
7574 * cli/cli-cmds.c: Update.
7575 * cli/cli-interp.c: Update.
7576 * cli/cli-script.c: Update.
7577 * common/common-exceptions.c: Update.
7578 * common/new-op.c: Update.
7579 * common/selftest.c: Update.
7580 * compile/compile-c-symbols.c: Update.
7581 * compile/compile-cplus-symbols.c: Update.
7582 * compile/compile-object-load.c: Update.
7583 * compile/compile-object-run.c: Update.
7584 * completer.c: Update.
7585 * corelow.c: Update.
7587 * cp-support.c: Update.
7588 * cp-valprint.c: Update.
7589 * darwin-nat.c: Update.
7590 * disasm-selftests.c: Update.
7591 * dtrace-probe.c: Update.
7592 * dwarf-index-cache.c: Update.
7593 * dwarf-index-write.c: Update.
7594 * dwarf2-frame-tailcall.c: Update.
7595 * dwarf2-frame.c: Update.
7596 * dwarf2loc.c: Update.
7597 * dwarf2read.c: Update.
7599 * event-loop.c: Update.
7600 * event-top.c: Update.
7602 * f-valprint.c: Update.
7603 * fbsd-tdep.c: Update.
7604 * frame-unwind.c: Update.
7606 * gdbtypes.c: Update.
7607 * gnu-v3-abi.c: Update.
7608 * guile/guile-internal.h: Update.
7609 * guile/scm-block.c: Update.
7610 * guile/scm-breakpoint.c: Update.
7611 * guile/scm-cmd.c: Update.
7612 * guile/scm-disasm.c: Update.
7613 * guile/scm-frame.c: Update.
7614 * guile/scm-lazy-string.c: Update.
7615 * guile/scm-math.c: Update.
7616 * guile/scm-param.c: Update.
7617 * guile/scm-ports.c: Update.
7618 * guile/scm-pretty-print.c: Update.
7619 * guile/scm-symbol.c: Update.
7620 * guile/scm-symtab.c: Update.
7621 * guile/scm-type.c: Update.
7622 * guile/scm-value.c: Update.
7623 * i386-linux-tdep.c: Update.
7624 * i386-tdep.c: Update.
7625 * inf-loop.c: Update.
7626 * infcall.c: Update.
7630 * language.c: Update.
7631 * linespec.c: Update.
7632 * linux-fork.c: Update.
7633 * linux-nat.c: Update.
7634 * linux-tdep.c: Update.
7635 * linux-thread-db.c: Update.
7637 * mi/mi-cmd-break.c: Update.
7638 * mi/mi-cmd-stack.c: Update.
7639 * mi/mi-interp.c: Update.
7640 * mi/mi-main.c: Update.
7641 * objc-lang.c: Update.
7642 * p-valprint.c: Update.
7644 * ppc-linux-tdep.c: Update.
7645 * printcmd.c: Update.
7646 * python/py-arch.c: Update.
7647 * python/py-breakpoint.c: Update.
7648 * python/py-cmd.c: Update.
7649 * python/py-finishbreakpoint.c: Update.
7650 * python/py-frame.c: Update.
7651 * python/py-framefilter.c: Update.
7652 * python/py-gdb-readline.c: Update.
7653 * python/py-inferior.c: Update.
7654 * python/py-infthread.c: Update.
7655 * python/py-lazy-string.c: Update.
7656 * python/py-linetable.c: Update.
7657 * python/py-objfile.c: Update.
7658 * python/py-param.c: Update.
7659 * python/py-prettyprint.c: Update.
7660 * python/py-progspace.c: Update.
7661 * python/py-record-btrace.c: Update.
7662 * python/py-record.c: Update.
7663 * python/py-symbol.c: Update.
7664 * python/py-type.c: Update.
7665 * python/py-unwind.c: Update.
7666 * python/py-utils.c: Update.
7667 * python/py-value.c: Update.
7668 * python/python.c: Update.
7669 * record-btrace.c: Update.
7670 * record-full.c: Update.
7671 * remote-fileio.c: Update.
7673 * riscv-tdep.c: Update.
7674 * rs6000-aix-tdep.c: Update.
7675 * rs6000-tdep.c: Update.
7676 * rust-exp.y: Update.
7677 * rust-lang.c: Update.
7678 * s390-tdep.c: Update.
7679 * selftest-arch.c: Update.
7680 * solib-dsbt.c: Update.
7681 * solib-frv.c: Update.
7682 * solib-spu.c: Update.
7683 * solib-svr4.c: Update.
7685 * sparc64-linux-tdep.c: Update.
7687 * symfile-mem.c: Update.
7688 * symmisc.c: Update.
7692 * tracefile-tfile.c: Update.
7693 * tui/tui.c: Update.
7694 * typeprint.c: Update.
7695 * unittests/cli-utils-selftests.c: Update.
7696 * unittests/parse-connection-spec-selftests.c: Update.
7698 * valprint.c: Update.
7701 * windows-nat.c: Update.
7702 * x86-linux-nat.c: Update.
7703 * xml-support.c: Update.
7705 2019-04-08 Tom Tromey <tom@tromey.com>
7707 * xml-support.c: Use C++ exception handling.
7708 * x86-linux-nat.c: Use C++ exception handling.
7709 * windows-nat.c: Use C++ exception handling.
7710 * varobj.c: Use C++ exception handling.
7711 * value.c: Use C++ exception handling.
7712 * valprint.c: Use C++ exception handling.
7713 * valops.c: Use C++ exception handling.
7714 * unittests/parse-connection-spec-selftests.c: Use C++ exception
7716 * unittests/cli-utils-selftests.c: Use C++ exception handling.
7717 * typeprint.c: Use C++ exception handling.
7718 * tui/tui.c: Use C++ exception handling.
7719 * tracefile-tfile.c: Use C++ exception handling.
7720 * top.c: Use C++ exception handling.
7721 * thread.c: Use C++ exception handling.
7722 * target.c: Use C++ exception handling.
7723 * symmisc.c: Use C++ exception handling.
7724 * symfile-mem.c: Use C++ exception handling.
7725 * stack.c: Use C++ exception handling.
7726 * sparc64-linux-tdep.c: Use C++ exception handling.
7727 * solib.c: Use C++ exception handling.
7728 * solib-svr4.c: Use C++ exception handling.
7729 * solib-spu.c: Use C++ exception handling.
7730 * solib-frv.c: Use C++ exception handling.
7731 * solib-dsbt.c: Use C++ exception handling.
7732 * selftest-arch.c: Use C++ exception handling.
7733 * s390-tdep.c: Use C++ exception handling.
7734 * rust-lang.c: Use C++ exception handling.
7735 * rust-exp.y: Use C++ exception handling.
7736 * rs6000-tdep.c: Use C++ exception handling.
7737 * rs6000-aix-tdep.c: Use C++ exception handling.
7738 * riscv-tdep.c: Use C++ exception handling.
7739 * remote.c: Use C++ exception handling.
7740 * remote-fileio.c: Use C++ exception handling.
7741 * record-full.c: Use C++ exception handling.
7742 * record-btrace.c: Use C++ exception handling.
7743 * python/python.c: Use C++ exception handling.
7744 * python/py-value.c: Use C++ exception handling.
7745 * python/py-utils.c: Use C++ exception handling.
7746 * python/py-unwind.c: Use C++ exception handling.
7747 * python/py-type.c: Use C++ exception handling.
7748 * python/py-symbol.c: Use C++ exception handling.
7749 * python/py-record.c: Use C++ exception handling.
7750 * python/py-record-btrace.c: Use C++ exception handling.
7751 * python/py-progspace.c: Use C++ exception handling.
7752 * python/py-prettyprint.c: Use C++ exception handling.
7753 * python/py-param.c: Use C++ exception handling.
7754 * python/py-objfile.c: Use C++ exception handling.
7755 * python/py-linetable.c: Use C++ exception handling.
7756 * python/py-lazy-string.c: Use C++ exception handling.
7757 * python/py-infthread.c: Use C++ exception handling.
7758 * python/py-inferior.c: Use C++ exception handling.
7759 * python/py-gdb-readline.c: Use C++ exception handling.
7760 * python/py-framefilter.c: Use C++ exception handling.
7761 * python/py-frame.c: Use C++ exception handling.
7762 * python/py-finishbreakpoint.c: Use C++ exception handling.
7763 * python/py-cmd.c: Use C++ exception handling.
7764 * python/py-breakpoint.c: Use C++ exception handling.
7765 * python/py-arch.c: Use C++ exception handling.
7766 * printcmd.c: Use C++ exception handling.
7767 * ppc-linux-tdep.c: Use C++ exception handling.
7768 * parse.c: Use C++ exception handling.
7769 * p-valprint.c: Use C++ exception handling.
7770 * objc-lang.c: Use C++ exception handling.
7771 * mi/mi-main.c: Use C++ exception handling.
7772 * mi/mi-interp.c: Use C++ exception handling.
7773 * mi/mi-cmd-stack.c: Use C++ exception handling.
7774 * mi/mi-cmd-break.c: Use C++ exception handling.
7775 * main.c: Use C++ exception handling.
7776 * linux-thread-db.c: Use C++ exception handling.
7777 * linux-tdep.c: Use C++ exception handling.
7778 * linux-nat.c: Use C++ exception handling.
7779 * linux-fork.c: Use C++ exception handling.
7780 * linespec.c: Use C++ exception handling.
7781 * language.c: Use C++ exception handling.
7782 * jit.c: Use C++ exception handling.
7783 * infrun.c: Use C++ exception handling.
7784 * infcmd.c: Use C++ exception handling.
7785 * infcall.c: Use C++ exception handling.
7786 * inf-loop.c: Use C++ exception handling.
7787 * i386-tdep.c: Use C++ exception handling.
7788 * i386-linux-tdep.c: Use C++ exception handling.
7789 * guile/scm-value.c: Use C++ exception handling.
7790 * guile/scm-type.c: Use C++ exception handling.
7791 * guile/scm-symtab.c: Use C++ exception handling.
7792 * guile/scm-symbol.c: Use C++ exception handling.
7793 * guile/scm-pretty-print.c: Use C++ exception handling.
7794 * guile/scm-ports.c: Use C++ exception handling.
7795 * guile/scm-param.c: Use C++ exception handling.
7796 * guile/scm-math.c: Use C++ exception handling.
7797 * guile/scm-lazy-string.c: Use C++ exception handling.
7798 * guile/scm-frame.c: Use C++ exception handling.
7799 * guile/scm-disasm.c: Use C++ exception handling.
7800 * guile/scm-cmd.c: Use C++ exception handling.
7801 * guile/scm-breakpoint.c: Use C++ exception handling.
7802 * guile/scm-block.c: Use C++ exception handling.
7803 * guile/guile-internal.h: Use C++ exception handling.
7804 * gnu-v3-abi.c: Use C++ exception handling.
7805 * gdbtypes.c: Use C++ exception handling.
7806 * frame.c: Use C++ exception handling.
7807 * frame-unwind.c: Use C++ exception handling.
7808 * fbsd-tdep.c: Use C++ exception handling.
7809 * f-valprint.c: Use C++ exception handling.
7810 * exec.c: Use C++ exception handling.
7811 * event-top.c: Use C++ exception handling.
7812 * event-loop.c: Use C++ exception handling.
7813 * eval.c: Use C++ exception handling.
7814 * dwarf2read.c: Use C++ exception handling.
7815 * dwarf2loc.c: Use C++ exception handling.
7816 * dwarf2-frame.c: Use C++ exception handling.
7817 * dwarf2-frame-tailcall.c: Use C++ exception handling.
7818 * dwarf-index-write.c: Use C++ exception handling.
7819 * dwarf-index-cache.c: Use C++ exception handling.
7820 * dtrace-probe.c: Use C++ exception handling.
7821 * disasm-selftests.c: Use C++ exception handling.
7822 * darwin-nat.c: Use C++ exception handling.
7823 * cp-valprint.c: Use C++ exception handling.
7824 * cp-support.c: Use C++ exception handling.
7825 * cp-abi.c: Use C++ exception handling.
7826 * corelow.c: Use C++ exception handling.
7827 * completer.c: Use C++ exception handling.
7828 * compile/compile-object-run.c: Use C++ exception handling.
7829 * compile/compile-object-load.c: Use C++ exception handling.
7830 * compile/compile-cplus-symbols.c: Use C++ exception handling.
7831 * compile/compile-c-symbols.c: Use C++ exception handling.
7832 * common/selftest.c: Use C++ exception handling.
7833 * common/new-op.c: Use C++ exception handling.
7834 * cli/cli-script.c: Use C++ exception handling.
7835 * cli/cli-interp.c: Use C++ exception handling.
7836 * cli/cli-cmds.c: Use C++ exception handling.
7837 * c-varobj.c: Use C++ exception handling.
7838 * btrace.c: Use C++ exception handling.
7839 * breakpoint.c: Use C++ exception handling.
7840 * break-catch-throw.c: Use C++ exception handling.
7841 * arch-utils.c: Use C++ exception handling.
7842 * amd64-tdep.c: Use C++ exception handling.
7843 * ada-valprint.c: Use C++ exception handling.
7844 * ada-typeprint.c: Use C++ exception handling.
7845 * ada-lang.c: Use C++ exception handling.
7846 * aarch64-tdep.c: Use C++ exception handling.
7848 2019-04-08 Tom Tromey <tom@tromey.com>
7850 * xml-support.c (gdb_xml_parser::parse): Update.
7851 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
7852 * value.c (show_convenience): Update.
7853 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
7854 (test_parse_flags_qcs): Update.
7855 * thread.c (thr_try_catch_cmd): Update.
7856 * target.c (target_translate_tls_address): Update.
7857 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
7858 (info_frame_command_core, frame_apply_command_count): Update.
7859 * rust-exp.y (rust_lex_exception_test): Update.
7860 * riscv-tdep.c (riscv_print_one_register_info): Update.
7861 * remote.c (remote_target::enable_btrace): Update.
7862 * record-btrace.c (record_btrace_enable_warn): Update.
7863 * python/py-utils.c (gdbpy_convert_exception): Update.
7864 * printcmd.c (do_one_display, print_variable_and_value): Update.
7865 * mi/mi-main.c (mi_print_exception): Update.
7866 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
7867 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
7868 * linux-nat.c (linux_nat_target::attach): Update.
7869 * linux-fork.c (class scoped_switch_fork_info): Update.
7870 * infrun.c (displaced_step_prepare): Update.
7871 * infcall.c (call_function_by_hand_dummy): Update.
7872 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
7873 * gnu-v3-abi.c (print_one_vtable): Update.
7874 * frame.c (get_prev_frame_always): Update.
7875 * f-valprint.c (info_common_command_for_block): Update.
7876 * exec.c (try_open_exec_file): Update.
7877 * exceptions.c (print_exception, exception_print)
7878 (exception_fprintf, exception_print_same): Update.
7879 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
7880 * dwarf-index-cache.c (index_cache::store)
7881 (index_cache::lookup_gdb_index): Update.
7882 * darwin-nat.c (maybe_cache_shell): Update.
7883 * cp-valprint.c (cp_print_value_fields): Update.
7884 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
7885 (gcc_cplus_symbol_address): Update.
7886 * compile/compile-c-symbols.c (gcc_convert_symbol)
7887 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
7888 * common/selftest.c: Update.
7889 * common/common-exceptions.h (struct gdb_exception) <message>: Now
7891 (exception_try_scope_entry, exception_try_scope_exit): Don't
7893 (struct exception_try_scope): Remove.
7894 (TRY): Don't use exception_try_scope.
7895 (struct gdb_exception): Add constructor, operator=.
7897 (struct gdb_exception_RETURN_MASK_ALL)
7898 (struct gdb_exception_RETURN_MASK_ERROR)
7899 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
7900 (struct gdb_quit_bad_alloc): Update.
7901 * common/common-exceptions.c (exception_none): Change
7903 (struct catcher) <state, exception>: Initialize inline.
7904 <prev>: Remove member.
7905 (current_catcher): Remove.
7906 (catchers): New global.
7907 (exceptions_state_mc_init): Simplify.
7908 (catcher_pop): Remove.
7909 (exceptions_state_mc, exceptions_state_mc_catch): Update.
7910 (try_scope_depth, exception_try_scope_entry)
7911 (exception_try_scope_exit): Remove.
7912 (throw_exception_sjlj): Update.
7913 (exception_messages, exception_messages_size): Remove.
7914 (throw_it): Simplify.
7915 (gdb_exception_sliced_copy): Remove.
7916 (throw_exception_cxx): Update.
7917 * cli/cli-script.c (script_from_file): Update.
7918 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
7920 * ada-valprint.c (ada_val_print): Update.
7921 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
7922 (create_excep_cond_exprs): Update.
7924 2019-04-08 Tom Tromey <tom@tromey.com>
7926 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
7927 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
7928 (TRY, CATCH, END_CATCH): Remove some definitions.
7929 * common/common-exceptions.c: Don't use GDB_XCPT.
7930 (catcher_list_size): Remove.
7931 (throw_exception, throw_it): Simplify.
7933 2019-04-05 Tom Tromey <tom@tromey.com>
7935 Revert the header-sorting patch.
7936 * ft32-tdep.c: Revert.
7937 * frv-tdep.c: Revert.
7938 * frv-linux-tdep.c: Revert.
7940 * frame-unwind.c: Revert.
7941 * frame-base.c: Revert.
7942 * fork-child.c: Revert.
7943 * findvar.c: Revert.
7944 * findcmd.c: Revert.
7945 * filesystem.c: Revert.
7946 * filename-seen-cache.h: Revert.
7947 * filename-seen-cache.c: Revert.
7948 * fbsd-tdep.c: Revert.
7949 * fbsd-nat.h: Revert.
7950 * fbsd-nat.c: Revert.
7951 * f-valprint.c: Revert.
7952 * f-typeprint.c: Revert.
7954 * extension.h: Revert.
7955 * extension.c: Revert.
7956 * extension-priv.h: Revert.
7957 * expprint.c: Revert.
7960 * exceptions.c: Revert.
7961 * event-top.c: Revert.
7962 * event-loop.c: Revert.
7964 * elfread.c: Revert.
7965 * dwarf2read.h: Revert.
7966 * dwarf2read.c: Revert.
7967 * dwarf2loc.c: Revert.
7968 * dwarf2expr.h: Revert.
7969 * dwarf2expr.c: Revert.
7970 * dwarf2-frame.c: Revert.
7971 * dwarf2-frame-tailcall.c: Revert.
7972 * dwarf-index-write.h: Revert.
7973 * dwarf-index-write.c: Revert.
7974 * dwarf-index-common.c: Revert.
7975 * dwarf-index-cache.h: Revert.
7976 * dwarf-index-cache.c: Revert.
7977 * dummy-frame.c: Revert.
7978 * dtrace-probe.c: Revert.
7981 * disasm-selftests.c: Revert.
7982 * dictionary.c: Revert.
7983 * dicos-tdep.c: Revert.
7984 * demangle.c: Revert.
7987 * darwin-nat.h: Revert.
7988 * darwin-nat.c: Revert.
7989 * darwin-nat-info.c: Revert.
7990 * d-valprint.c: Revert.
7991 * d-namespace.c: Revert.
7994 * csky-tdep.c: Revert.
7995 * csky-linux-tdep.c: Revert.
7996 * cris-tdep.c: Revert.
7997 * cris-linux-tdep.c: Revert.
7998 * cp-valprint.c: Revert.
7999 * cp-support.c: Revert.
8000 * cp-namespace.c: Revert.
8002 * corelow.c: Revert.
8003 * corefile.c: Revert.
8004 * continuations.c: Revert.
8005 * completer.h: Revert.
8006 * completer.c: Revert.
8007 * complaints.c: Revert.
8008 * coffread.c: Revert.
8009 * coff-pe-read.c: Revert.
8010 * cli-out.h: Revert.
8011 * cli-out.c: Revert.
8012 * charset.c: Revert.
8013 * c-varobj.c: Revert.
8014 * c-valprint.c: Revert.
8015 * c-typeprint.c: Revert.
8017 * buildsym.c: Revert.
8018 * buildsym-legacy.c: Revert.
8019 * build-id.h: Revert.
8020 * build-id.c: Revert.
8022 * bsd-uthread.c: Revert.
8023 * breakpoint.h: Revert.
8024 * breakpoint.c: Revert.
8025 * break-catch-throw.c: Revert.
8026 * break-catch-syscall.c: Revert.
8027 * break-catch-sig.c: Revert.
8028 * blockframe.c: Revert.
8030 * bfin-tdep.c: Revert.
8031 * bfin-linux-tdep.c: Revert.
8032 * bfd-target.c: Revert.
8034 * ax-general.c: Revert.
8037 * avr-tdep.c: Revert.
8039 * auto-load.c: Revert.
8040 * arm-wince-tdep.c: Revert.
8041 * arm-tdep.c: Revert.
8042 * arm-symbian-tdep.c: Revert.
8043 * arm-pikeos-tdep.c: Revert.
8044 * arm-obsd-tdep.c: Revert.
8045 * arm-nbsd-tdep.c: Revert.
8046 * arm-nbsd-nat.c: Revert.
8047 * arm-linux-tdep.c: Revert.
8048 * arm-linux-nat.c: Revert.
8049 * arm-fbsd-tdep.c: Revert.
8050 * arm-fbsd-nat.c: Revert.
8051 * arm-bsd-tdep.c: Revert.
8052 * arch-utils.c: Revert.
8053 * arc-tdep.c: Revert.
8054 * arc-newlib-tdep.c: Revert.
8055 * annotate.h: Revert.
8056 * annotate.c: Revert.
8057 * amd64-windows-tdep.c: Revert.
8058 * amd64-windows-nat.c: Revert.
8059 * amd64-tdep.c: Revert.
8060 * amd64-sol2-tdep.c: Revert.
8061 * amd64-obsd-tdep.c: Revert.
8062 * amd64-obsd-nat.c: Revert.
8063 * amd64-nbsd-tdep.c: Revert.
8064 * amd64-nbsd-nat.c: Revert.
8065 * amd64-nat.c: Revert.
8066 * amd64-linux-tdep.c: Revert.
8067 * amd64-linux-nat.c: Revert.
8068 * amd64-fbsd-tdep.c: Revert.
8069 * amd64-fbsd-nat.c: Revert.
8070 * amd64-dicos-tdep.c: Revert.
8071 * amd64-darwin-tdep.c: Revert.
8072 * amd64-bsd-nat.c: Revert.
8073 * alpha-tdep.c: Revert.
8074 * alpha-obsd-tdep.c: Revert.
8075 * alpha-nbsd-tdep.c: Revert.
8076 * alpha-mdebug-tdep.c: Revert.
8077 * alpha-linux-tdep.c: Revert.
8078 * alpha-linux-nat.c: Revert.
8079 * alpha-bsd-tdep.c: Revert.
8080 * alpha-bsd-nat.c: Revert.
8081 * aix-thread.c: Revert.
8083 * addrmap.c: Revert.
8084 * ada-varobj.c: Revert.
8085 * ada-valprint.c: Revert.
8086 * ada-typeprint.c: Revert.
8087 * ada-tasks.c: Revert.
8088 * ada-lang.c: Revert.
8089 * aarch64-tdep.c: Revert.
8090 * aarch64-ravenscar-thread.c: Revert.
8091 * aarch64-newlib-tdep.c: Revert.
8092 * aarch64-linux-tdep.c: Revert.
8093 * aarch64-linux-nat.c: Revert.
8094 * aarch64-fbsd-tdep.c: Revert.
8095 * aarch64-fbsd-nat.c: Revert.
8096 * aarch32-linux-nat.c: Revert.
8098 2019-04-05 Tom Tromey <tom@tromey.com>
8100 * ft32-tdep.c: Sort headers.
8101 * frv-tdep.c: Sort headers.
8102 * frv-linux-tdep.c: Sort headers.
8103 * frame.c: Sort headers.
8104 * frame-unwind.c: Sort headers.
8105 * frame-base.c: Sort headers.
8106 * fork-child.c: Sort headers.
8107 * findvar.c: Sort headers.
8108 * findcmd.c: Sort headers.
8109 * filesystem.c: Sort headers.
8110 * filename-seen-cache.h: Sort headers.
8111 * filename-seen-cache.c: Sort headers.
8112 * fbsd-tdep.c: Sort headers.
8113 * fbsd-nat.h: Sort headers.
8114 * fbsd-nat.c: Sort headers.
8115 * f-valprint.c: Sort headers.
8116 * f-typeprint.c: Sort headers.
8117 * f-lang.c: Sort headers.
8118 * extension.h: Sort headers.
8119 * extension.c: Sort headers.
8120 * extension-priv.h: Sort headers.
8121 * expprint.c: Sort headers.
8122 * exec.h: Sort headers.
8123 * exec.c: Sort headers.
8124 * exceptions.c: Sort headers.
8125 * event-top.c: Sort headers.
8126 * event-loop.c: Sort headers.
8127 * eval.c: Sort headers.
8128 * elfread.c: Sort headers.
8129 * dwarf2read.h: Sort headers.
8130 * dwarf2read.c: Sort headers.
8131 * dwarf2loc.c: Sort headers.
8132 * dwarf2expr.h: Sort headers.
8133 * dwarf2expr.c: Sort headers.
8134 * dwarf2-frame.c: Sort headers.
8135 * dwarf2-frame-tailcall.c: Sort headers.
8136 * dwarf-index-write.h: Sort headers.
8137 * dwarf-index-write.c: Sort headers.
8138 * dwarf-index-common.c: Sort headers.
8139 * dwarf-index-cache.h: Sort headers.
8140 * dwarf-index-cache.c: Sort headers.
8141 * dummy-frame.c: Sort headers.
8142 * dtrace-probe.c: Sort headers.
8143 * disasm.h: Sort headers.
8144 * disasm.c: Sort headers.
8145 * disasm-selftests.c: Sort headers.
8146 * dictionary.c: Sort headers.
8147 * dicos-tdep.c: Sort headers.
8148 * demangle.c: Sort headers.
8149 * dcache.h: Sort headers.
8150 * dcache.c: Sort headers.
8151 * darwin-nat.h: Sort headers.
8152 * darwin-nat.c: Sort headers.
8153 * darwin-nat-info.c: Sort headers.
8154 * d-valprint.c: Sort headers.
8155 * d-namespace.c: Sort headers.
8156 * d-lang.c: Sort headers.
8157 * ctf.c: Sort headers.
8158 * csky-tdep.c: Sort headers.
8159 * csky-linux-tdep.c: Sort headers.
8160 * cris-tdep.c: Sort headers.
8161 * cris-linux-tdep.c: Sort headers.
8162 * cp-valprint.c: Sort headers.
8163 * cp-support.c: Sort headers.
8164 * cp-namespace.c: Sort headers.
8165 * cp-abi.c: Sort headers.
8166 * corelow.c: Sort headers.
8167 * corefile.c: Sort headers.
8168 * continuations.c: Sort headers.
8169 * completer.h: Sort headers.
8170 * completer.c: Sort headers.
8171 * complaints.c: Sort headers.
8172 * coffread.c: Sort headers.
8173 * coff-pe-read.c: Sort headers.
8174 * cli-out.h: Sort headers.
8175 * cli-out.c: Sort headers.
8176 * charset.c: Sort headers.
8177 * c-varobj.c: Sort headers.
8178 * c-valprint.c: Sort headers.
8179 * c-typeprint.c: Sort headers.
8180 * c-lang.c: Sort headers.
8181 * buildsym.c: Sort headers.
8182 * buildsym-legacy.c: Sort headers.
8183 * build-id.h: Sort headers.
8184 * build-id.c: Sort headers.
8185 * btrace.c: Sort headers.
8186 * bsd-uthread.c: Sort headers.
8187 * breakpoint.h: Sort headers.
8188 * breakpoint.c: Sort headers.
8189 * break-catch-throw.c: Sort headers.
8190 * break-catch-syscall.c: Sort headers.
8191 * break-catch-sig.c: Sort headers.
8192 * blockframe.c: Sort headers.
8193 * block.c: Sort headers.
8194 * bfin-tdep.c: Sort headers.
8195 * bfin-linux-tdep.c: Sort headers.
8196 * bfd-target.c: Sort headers.
8197 * bcache.c: Sort headers.
8198 * ax-general.c: Sort headers.
8199 * ax-gdb.h: Sort headers.
8200 * ax-gdb.c: Sort headers.
8201 * avr-tdep.c: Sort headers.
8202 * auxv.c: Sort headers.
8203 * auto-load.c: Sort headers.
8204 * arm-wince-tdep.c: Sort headers.
8205 * arm-tdep.c: Sort headers.
8206 * arm-symbian-tdep.c: Sort headers.
8207 * arm-pikeos-tdep.c: Sort headers.
8208 * arm-obsd-tdep.c: Sort headers.
8209 * arm-nbsd-tdep.c: Sort headers.
8210 * arm-nbsd-nat.c: Sort headers.
8211 * arm-linux-tdep.c: Sort headers.
8212 * arm-linux-nat.c: Sort headers.
8213 * arm-fbsd-tdep.c: Sort headers.
8214 * arm-fbsd-nat.c: Sort headers.
8215 * arm-bsd-tdep.c: Sort headers.
8216 * arch-utils.c: Sort headers.
8217 * arc-tdep.c: Sort headers.
8218 * arc-newlib-tdep.c: Sort headers.
8219 * annotate.h: Sort headers.
8220 * annotate.c: Sort headers.
8221 * amd64-windows-tdep.c: Sort headers.
8222 * amd64-windows-nat.c: Sort headers.
8223 * amd64-tdep.c: Sort headers.
8224 * amd64-sol2-tdep.c: Sort headers.
8225 * amd64-obsd-tdep.c: Sort headers.
8226 * amd64-obsd-nat.c: Sort headers.
8227 * amd64-nbsd-tdep.c: Sort headers.
8228 * amd64-nbsd-nat.c: Sort headers.
8229 * amd64-nat.c: Sort headers.
8230 * amd64-linux-tdep.c: Sort headers.
8231 * amd64-linux-nat.c: Sort headers.
8232 * amd64-fbsd-tdep.c: Sort headers.
8233 * amd64-fbsd-nat.c: Sort headers.
8234 * amd64-dicos-tdep.c: Sort headers.
8235 * amd64-darwin-tdep.c: Sort headers.
8236 * amd64-bsd-nat.c: Sort headers.
8237 * alpha-tdep.c: Sort headers.
8238 * alpha-obsd-tdep.c: Sort headers.
8239 * alpha-nbsd-tdep.c: Sort headers.
8240 * alpha-mdebug-tdep.c: Sort headers.
8241 * alpha-linux-tdep.c: Sort headers.
8242 * alpha-linux-nat.c: Sort headers.
8243 * alpha-bsd-tdep.c: Sort headers.
8244 * alpha-bsd-nat.c: Sort headers.
8245 * aix-thread.c: Sort headers.
8246 * agent.c: Sort headers.
8247 * addrmap.c: Sort headers.
8248 * ada-varobj.c: Sort headers.
8249 * ada-valprint.c: Sort headers.
8250 * ada-typeprint.c: Sort headers.
8251 * ada-tasks.c: Sort headers.
8252 * ada-lang.c: Sort headers.
8253 * aarch64-tdep.c: Sort headers.
8254 * aarch64-ravenscar-thread.c: Sort headers.
8255 * aarch64-newlib-tdep.c: Sort headers.
8256 * aarch64-linux-tdep.c: Sort headers.
8257 * aarch64-linux-nat.c: Sort headers.
8258 * aarch64-fbsd-tdep.c: Sort headers.
8259 * aarch64-fbsd-nat.c: Sort headers.
8260 * aarch32-linux-nat.c: Sort headers.
8262 2019-04-04 Tom Tromey <tom@tromey.com>
8264 * varobj.c (varobj_create): Update.
8265 * rust-exp.y (struct rust_parser) <update_innermost_block,
8266 lookup_symbol>: New methods.
8267 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
8269 (rust_parser::rust_lookup_type)
8270 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
8271 * printcmd.c (display_command, do_one_display): Update.
8272 * parser-defs.h (struct parser_state) <parser_state>: Add
8273 "tracker" parameter.
8274 (block_tracker): New member.
8275 (class innermost_block_tracker) <innermost_block_tracker>: Add
8277 <reset>: Remove method.
8278 (innermost_block): Don't declare.
8279 (null_post_parser): Update.
8280 * parse.c (innermost_block): Remove global.
8281 (write_dollar_variable): Update.
8282 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
8283 Remove "tracker_types" parameter.
8284 (parse_expression): Add "tracker" parameter.
8285 (parse_expression_for_completion): Update.
8286 (null_post_parser): Add "tracker" parameter.
8287 * p-exp.y: Update rules.
8288 * m2-exp.y: Update rules.
8289 * language.h (struct language_defn) <la_post_parser>: Add
8290 "tracker" parameter.
8291 * go-exp.y: Update rules.
8292 * f-exp.y: Update rules.
8293 * expression.h (parse_expression, parse_exp_1): Add "tracker"
8295 * d-exp.y: Update rules.
8296 * c-exp.y: Update rules.
8297 * breakpoint.c (set_breakpoint_condition): Create an
8298 innermost_block_tracker.
8299 (watch_command_1): Likewise.
8300 * ada-lang.c (resolve): Add "tracker" parameter.
8301 (resolve_subexp): Likewise.
8302 * ada-exp.y (write_var_from_sym): Update.
8304 2019-04-04 Tom Tromey <tom@tromey.com>
8306 * type-stack.h: New file.
8307 * type-stack.c: New file.
8308 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
8310 (insert_into_type_stack, insert_type, push_type, push_type_int)
8311 (insert_type_address_space, pop_type, pop_type_int)
8312 (pop_typelist, pop_type_stack, append_type_stack)
8313 (push_type_stack, get_type_stack, push_typelist)
8314 (follow_type_instance_flags, follow_types): Don't declare.
8315 * parse.c (type_stack): Remove global.
8316 (parse_exp_in_context): Update.
8317 (insert_into_type_stack, insert_type, push_type, push_type_int)
8318 (insert_type_address_space, pop_type, pop_type_int)
8319 (pop_typelist, pop_type_stack, append_type_stack)
8320 (push_type_stack, get_type_stack, push_typelist)
8321 (follow_type_instance_flags, follow_types): Remove (moved to
8323 * f-exp.y (type_stack): New global.
8325 (push_kind_type, f_parse): Update.
8326 * d-exp.y (type_stack): New global.
8329 * c-exp.y (struct c_parse_state) <type_stack>: New member.
8331 * Makefile.in (COMMON_SFILES): Add type-stack.c.
8332 (HFILES_NO_SRCDIR): Add type-stack.h.
8334 2019-04-04 Tom Tromey <tom@tromey.com>
8336 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
8337 (rust_parser::convert_ast_to_expression, rust_parse)
8338 (rust_lex_test_completion, rust_lex_tests): Update.
8339 * parser-defs.h (struct expr_completion_state): New.
8340 (struct parser_state) <parser_state>: Add completion parameter.
8341 <mark_struct_expression, mark_completion_tag>: New methods.
8342 <parse_completion, m_completion_state>: New members.
8343 (prefixify_expression, null_post_parser): Update.
8344 (mark_struct_expression, mark_completion_tag): Don't declare.
8345 * parse.c (parse_completion, expout_last_struct)
8346 (expout_tag_completion_type, expout_completion_name): Remove
8348 (parser_state::mark_struct_expression)
8349 (parser_state::mark_completion_tag): Now methods.
8350 (prefixify_expression): Add last_struct parameter.
8351 (prefixify_subexp): Likewise.
8352 (parse_exp_1): Update.
8353 (parse_exp_in_context): Add cstate parameter. Update.
8354 (parse_expression_for_completion): Create an
8355 expr_completion_state.
8356 (null_post_parser): Add "completion" parameter.
8357 * p-exp.y: Update rules.
8359 * language.h (struct language_defn) <la_post_parser>: Add
8360 "completing" parameter.
8361 * go-exp.y: Update rules.
8362 (lex_one_token): Update.
8363 * expression.h (parse_completion): Don't declare.
8364 * d-exp.y: Update rules.
8365 (lex_one_token): Update rules.
8366 * c-exp.y: Update rules.
8367 (lex_one_token): Update.
8368 * ada-lang.c (resolve): Add "parse_completion" parameter.
8369 (resolve_subexp): Likewise.
8370 (ada_resolve_function): Likewise.
8372 2019-04-04 Tom Tromey <tom@tromey.com>
8374 * parser-defs.h (struct parser_state) <start_arglist,
8375 end_arglist>: New methods.
8376 <arglist_len, m_funcall_chain>: New members.
8377 (arglist_len, start_arglist, end_arglist): Don't declare.
8378 * parse.c (arglist_len, funcall_chain): Remove global.
8379 (start_arglist, end_arglist): Remove functions.
8380 (parse_exp_in_context): Update.
8381 * p-exp.y: Update rules.
8382 * m2-exp.y: Update rules.
8383 * go-exp.y: Update rules.
8384 * f-exp.y: Update rules.
8385 * d-exp.y: Update rules.
8386 * c-exp.y: Update rules.
8388 2019-04-04 Tom Tromey <tom@tromey.com>
8390 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
8391 lex_operator, push_back>: New methods.
8393 (rust_parser::lex_hex, lex_escape): Rename and update.
8394 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
8395 (rust_parser::lex_operator): Rename and update.
8396 (rust_parser::lex_number, rustyylex, rustyyerror)
8397 (rust_lex_test_init, rust_lex_test_sequence)
8398 (rust_lex_test_push_back, rust_lex_tests): Update.
8399 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
8401 <lexptr, prev_lexptr>: New members.
8402 (lexptr, prev_lexptr): Don't declare.
8403 * parse.c (lexptr, prev_lexptr): Remove globals.
8404 (parse_exp_in_context): Update.
8405 * p-exp.y (yylex, yyerror): Update.
8406 * m2-exp.y (parse_number, yylex, yyerror): Update.
8407 * go-exp.y (lex_one_token, yyerror): Update.
8408 * f-exp.y (match_string_literal, yylex, yyerror): Update.
8409 * d-exp.y (lex_one_token, yyerror): Update.
8410 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
8411 (lex_one_token, yyerror): Update.
8412 * ada-lex.l (YY_INPUT): Update.
8413 (rewind_to_char): Update.
8414 * ada-exp.y (yyerror): Update.
8416 2019-04-04 Tom Tromey <tom@tromey.com>
8418 * rust-exp.y (rustyylex, rust_lex_tests): Update.
8419 * parser-defs.h (struct parser_state) <parser_state>: Add new
8421 <comma_terminates>: New member.
8422 (comma_terminates): Don't declare global.
8423 * parse.c (comma_terminates): Remove global.
8424 (parse_exp_in_context): Update.
8425 * p-exp.y (yylex): Update.
8426 * m2-exp.y (yylex): Update.
8427 * go-exp.y (lex_one_token): Update.
8428 * f-exp.y (yylex): Update.
8429 * d-exp.y (lex_one_token): Update.
8430 * c-exp.y (lex_one_token): Update.
8431 * ada-lex.l: Update.
8433 2019-04-04 Tom Tromey <tom@tromey.com>
8435 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
8436 (rustyylex, rust_lex_test_init, rust_lex_test_one)
8437 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
8438 * parser-defs.h (paren_depth): Don't declare.
8439 * parse.c (paren_depth): Remove global.
8440 (parse_exp_in_context): Update.
8441 * p-exp.y (paren_depth): New global.
8442 (pascal_parse): Initialize it.
8443 * m2-exp.y (paren_depth): New global.
8444 (m2_parse): Initialize it.
8445 * go-exp.y (paren_depth): New global.
8446 (go_parse): Initialize it.
8447 * f-exp.y (paren_depth): New global.
8448 (f_parse): Initialize it.
8449 * d-exp.y (paren_depth): New global.
8450 (d_parse): Initialize it.
8451 * c-exp.y (paren_depth): New global.
8452 (c_parse): Initialize it.
8453 * ada-lex.l (paren_depth): New global.
8454 (lexer_init): Initialize it.
8456 2019-04-04 Tom Tromey <tom@tromey.com>
8458 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
8459 (rust_parser::convert_ast_to_type)
8460 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
8461 * parser-defs.h (struct parser_state) <parser_state>: Add
8462 parameters. Initialize new members.
8463 <expression_context_block, expression_context_pc>: New members.
8464 * parse.c (expression_context_block, expression_context_pc):
8466 (parse_exp_in_context): Update.
8467 * p-exp.y: Update all rules.
8469 * m2-exp.y: Update all rules.
8471 * go-exp.y (yylex): Update.
8472 * f-exp.y (yylex): Update.
8473 * d-exp.y: Update all rules.
8475 * c-exp.y: Update all rules.
8476 (lex_one_token, classify_name, yylex, c_parse): Update.
8477 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
8479 2019-04-04 Tom Tromey <tom@tromey.com>
8481 * gdbarch.h, gdbarch.c: Rebuild.
8482 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
8484 (struct stap_parse_info): Replace "parser_state" with
8486 * parser-defs.h (struct expr_builder): Rename from "parser_state".
8487 (parser_state): New class.
8488 * parse.c (expr_builder): Rename.
8489 (expr_builder::release): Rename.
8490 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
8491 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
8492 (write_exp_elt_longcst, write_exp_elt_floatcst)
8493 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
8494 (write_exp_string_vector, write_exp_bitstring)
8495 (write_exp_msymbol, mark_struct_expression)
8496 (write_dollar_variable)
8497 (insert_type_address_space, increase_expout_size): Replace
8498 "parser_state" with "expr_builder".
8499 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
8500 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
8501 "parser_state" with "expr_builder".
8503 2019-04-04 Tom Tromey <tom@tromey.com>
8505 * rust-exp.y: Replace "parse_language" with method call.
8507 (yylex): Replace "parse_language" with method call.
8509 (yylex): Replace "parse_language" with method call.
8510 * go-exp.y (classify_name): Replace "parse_language" with method
8512 * f-exp.y (yylex): Replace "parse_language" with method call.
8513 * d-exp.y (lex_one_token): Replace "parse_language" with method
8516 (lex_one_token, classify_name, yylex): Replace "parse_language"
8518 * ada-exp.y (find_primitive_type, type_char)
8519 (type_system_address): Replace "parse_language" with method call.
8521 2019-04-04 Tom Tromey <tom@tromey.com>
8523 * rust-exp.y: Replace "parse_gdbarch" with method call.
8524 * parse.c (write_dollar_variable, insert_type_address_space):
8525 Replace "parse_gdbarch" with method call.
8526 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
8528 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
8530 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
8531 "parse_gdbarch" with method call.
8532 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
8534 * f-exp.y (parse_type, parse_f_type, yylex): Replace
8535 "parse_gdbarch" with method call.
8536 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
8537 "parse_gdbarch" with method call.
8538 * c-exp.y (parse_type, parse_number, classify_name): Replace
8539 "parse_gdbarch" with method call.
8540 * ada-lex.l: Replace "parse_gdbarch" with method call.
8541 * ada-exp.y (parse_type, find_primitive_type, type_char)
8542 (type_system_address): Replace "parse_gdbarch" with method call.
8544 2019-04-04 Tom Tromey <tom@tromey.com>
8546 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
8547 * stap-probe.c (stap_parse_argument): Update.
8548 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
8549 initial_size parameter.
8550 * rust-exp.y (rust_lex_tests): Update.
8551 * parse.c (parser_state): Update.
8552 (parse_exp_in_context): Update.
8553 * parser-defs.h (struct parser_state) <parser_state>: Remove
8554 "initial_size" parameter.
8556 2019-04-04 Tom Tromey <tom@tromey.com>
8558 * parser-defs.h (increase_expout_size): Don't declare.
8559 * parse.c (increase_expout_size): Now static.
8561 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
8563 * gnu-nat.c (gnu_nat_target::wait): Fix
8564 target_waitstatus_to_string call.
8566 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8568 * eval.c (evaluate_subexp_standard): Handle internal functions
8569 during Fortran function call handling.
8571 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8573 * NEWS: Mention new internal functions.
8574 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
8575 (read_base_type): Use dwarf2_init_complex_target_type.
8576 * value.c (creal_internal_fn): New function.
8577 (cimag_internal_fn): New function.
8578 (_initialize_values): Register new internal functions.
8580 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8582 * infrun.c (stop_all_threads): If debug_infrun, always
8583 trace the wait status after wait_one, using
8584 target_waitstatus_to_string and target_pid_to_str.
8585 (handle_inferior_event): Replace various trace of
8586 wait status kind by a single trace.
8587 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
8588 wait status kind image by target_waitstatus_to_string.
8589 * target/waitstatus.c (target_waitstatus_to_string): Fix
8592 2019-04-01 Tom Tromey <tromey@adacore.com>
8595 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
8597 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
8598 Pedro Alves <palves@redhat.com>
8600 * top.c (quit_force): Call 'finalize_values'.
8601 * value.c (finalize_values): New function.
8602 * value.h (finalize_values): Declare.
8604 2019-03-30 Eli Zaretskii <eliz@gnu.org>
8606 * NEWS: Announce $_gdb_major and $_gdb_minor.
8608 * top.c (init_gdb_version_vars): New function.
8609 (gdb_init): Call init_gdb_version_vars.
8611 2019-03-29 Tom Tromey <tromey@adacore.com>
8613 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
8614 help text. Remove dead code.
8616 2019-03-29 Keith Seitz <keiths@redhat.com>
8618 From Siddhesh Poyarekar:
8619 * f-lang.h (f77_get_upperbound): Return LONGEST.
8620 (f77_get_lowerbound): Likewise.
8621 * f-typeprint.c (f_type_print_varspec_suffix): Expand
8622 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
8624 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
8625 plongest to format print it.
8626 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
8627 (f77_get_upperbound): Likewise.
8628 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
8629 LOWER_BOUND to LONGEST.
8630 (f77_create_arrayprint_offset_tbl): Likewise.
8632 2019-03-29 Keith Seitz <keiths@redhat.com>
8634 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
8635 %s/pulongest for TYPE_LENGTH instead of %d in format
8637 * ada-typerint.c (ada_print_type): Likewise.
8638 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
8639 * compile/compile-c-support.c (generate_register_struct): Likewise.
8640 * gdbtypes.c (recursive_dump_type): Likewise.
8641 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
8642 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
8643 instead of %d in format strings.
8644 * riscv-tdep.c (riscv_type_alignment): Cast second argument
8645 to std::min to ULONGEST.
8646 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
8647 instead of %d in format strings.
8648 * tracepoint.c (info_scope_command): Likewise.
8649 * typeprint.c (print_offset_data::update)
8650 (print_offset_data::finish): Likewise.
8651 * xtensa-tdep.c (xtensa_store_return_value)
8652 (xtensa_push_dummy_call): Likewise.
8654 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
8656 * windows-nat.c (display_selector): Fixed format specifications
8659 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8661 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
8663 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
8665 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
8666 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
8667 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
8668 (nios2_linux_init_abi): Install it.
8670 2019-03-28 Alan Hayward <alan.hayward@arm.com>
8672 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
8674 2019-03-28 Alan Hayward <alan.hayward@arm.com>
8676 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
8678 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8679 Tom Tromey <tromey@adacore.com>
8681 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
8683 2019-03-26 Joel Brobecker <brobecker@adacore.com>
8685 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
8686 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
8687 method to compute the bounds of range types. Also print "[evaluated]"
8688 if the bounds' values come from a dynamic evaluation.
8690 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
8692 * cp-valprint.c (cp_print_value_fields): Don't print trailing
8693 whitespace when pretty printing is on.
8695 2019-03-26 Alan Hayward <alan.hayward@arm.com>
8697 * ppc-linux-nat.c: Add include.
8699 2019-03-26 Alan Hayward <alan.hayward@arm.com>
8701 * NEWS: Mention AArch64 Pointer Authentication.
8703 2019-03-26 Alan Hayward <alan.hayward@arm.com>
8705 * arm-linux-nat.c: Add include.
8707 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
8709 * source-cache.c (source_cache::get_source_lines): Re-read
8710 fullname after calling open_source_file.
8712 2019-03-25 John Baldwin <jhb@FreeBSD.org>
8714 * NEWS: Mention TLS support for FreeBSD.
8716 2019-03-25 Tom Tromey <tromey@adacore.com>
8718 * minsyms.c (BUNCH_SIZE): Update comment.
8719 (~minimal_symbol_reader): Remove old comment.
8720 (compact_minimal_symbols): Update comment.
8721 (minimal_symbol_reader::install): Remove old comment. Update
8724 2019-03-25 Alan Hayward <alan.hayward@arm.com>
8726 * s390-linux-nat.c: Add include.
8728 2019-03-25 Alan Hayward <alan.hayward@arm.com>
8730 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
8731 Call linux_get_hwcap.
8732 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
8734 (aarch64_linux_get_hwcap): Remove function.
8735 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
8737 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
8739 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
8740 * linux-tdep.c (linux_get_hwcap): Add function.
8741 (linux_get_hwcap2): Likewise.
8742 * linux-tdep.h (linux_get_hwcap): Add declaration.
8743 (linux_get_hwcap2): Likewise.
8744 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
8745 (ppc_linux_get_hwcap2): Likewise.
8746 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
8748 (ppc_linux_nat_target::insert_watchpoint): Likewise.
8749 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
8750 (ppc_linux_nat_target::read_description): Likewise.
8751 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
8752 * s390-linux-nat.c: Likewise.
8753 * s390-linux-tdep.c (s390_core_read_description): Likewise.
8755 2019-03-24 Tom Tromey <tom@tromey.com>
8757 * ada-lang.c (standard_lookup): Simplify initialization.
8758 (ada_lookup_symbol_nonlocal): Simplify return.
8759 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
8760 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
8761 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
8762 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
8764 * solib.c (solib_global_lookup): Simplify.
8765 * symtab.c (null_block_symbol): Remove.
8766 (symbol_cache_lookup): Simplify returns.
8767 (lookup_language_this): Simplify returns.
8768 (lookup_symbol_aux): Simplify return.
8769 (lookup_local_symbol): Simplify returns.
8770 (lookup_global_symbol_from_objfile): Simplify return.
8771 (lookup_symbol_in_objfile_symtabs)
8772 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
8773 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
8774 (lookup_static_symbol, lookup_global_symbol): Simplify return.
8775 * cp-namespace.c (cp_lookup_bare_symbol)
8776 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
8777 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
8778 (cp_lookup_nested_symbol): Don't use null_block_symbol.
8779 (cp_lookup_symbol_via_imports): Simplify initialization.
8780 (find_symbol_in_baseclass): Likewise.
8781 * symtab.h (null_block_symbol): Remove.
8782 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
8783 (d_lookup_nested_symbol, d_lookup_symbol_imports)
8784 (d_lookup_symbol_module): Likewise.
8785 (find_symbol_in_baseclass): Simplify initialization.
8787 2019-03-24 Tom Tromey <tom@tromey.com>
8789 * expression.h: Don't include symtab.h.
8790 (struct block): Forward declare.
8792 2019-03-24 Tom Tromey <tom@tromey.com>
8794 * c-exp.y (typebase): Remove casts.
8795 * gdbtypes.c (lookup_unsigned_typename, )
8796 (lookup_signed_typename): Remove cast.
8797 * eval.c (parse_to_comma_and_eval): Remove cast.
8798 * parse.c (write_dollar_variable): Remove cast.
8799 * block.h (struct block) <superblock>: Now const.
8800 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
8801 * psymtab.c (psym_map_matching_symbols): Make "block" const.
8802 (map_block): Make "block" const.
8803 * symfile.h (struct quick_symbol_functions)
8804 <map_matching_symbols>: Constify block argument to "callback".
8805 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
8807 (find_pc_sect_compunit_symtab): Make "b" const.
8808 (find_symbol_at_address): Likewise.
8809 (search_symbols): Likewise.
8810 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
8811 (dw2_debug_names_lookup_symbol): Likewise.
8812 (dw2_map_matching_symbols): Update.
8813 * p-valprint.c (pascal_val_print): Remove "block".
8814 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
8815 (aux_add_nonlocal_symbols): Make "block" const.
8816 (resolve_subexp): Remove cast.
8817 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
8819 (iterate_over_file_blocks): Likewise.
8820 * f-exp.y (%union) <bval>: Remove.
8821 * coffread.c (patch_opaque_types): Make "b" const.
8822 * spu-tdep.c (spu_catch_start): Make "block" const.
8823 * c-valprint.c (print_unpacked_pointer): Remove "block".
8824 * symmisc.c (dump_symtab_1): Make "b" const.
8825 (block_depth): Make "block" const.
8826 * d-exp.y (%union) <bval>: Remove.
8827 * cp-support.h (cp_lookup_rtti_type): Update.
8828 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
8829 * psymtab.c (psym_lookup_symbol): Make "block" const.
8830 (maintenance_check_psymtabs): Make "b" const.
8831 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
8832 (enumerate_locals, enumerate_args): Update.
8833 * python/py-symtab.c (stpy_global_block): Make "block" const.
8834 (stpy_static_block): Likewise.
8835 * inline-frame.c (block_starting_point_at): Make "new_block"
8837 * block.c (find_block_in_blockvector): Make return type const.
8838 (blockvector_for_pc_sect): Make "b" const.
8839 (find_block_in_blockvector): Make "b" const.
8841 2019-03-23 Tom Tromey <tom@tromey.com>
8843 * varobj.c (varobj_create): Update.
8844 * symfile.c (clear_symtab_users): Don't reset innermost_block.
8845 * printcmd.c (display_command, do_one_display): Don't reset
8847 * parser-defs.h (enum innermost_block_tracker_type): Move to
8849 (innermost_block): Update comment.
8850 * parse.c (parse_exp_1): Add tracker_types parameter.
8851 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
8852 tracker_types parameter. Reset innermost_block.
8853 (parse_exp_in_context): Remove.
8854 (parse_expression_for_completion): Update.
8855 * objfiles.c (~objfile): Don't reset expression_context_block or
8857 * expression.h (enum innermost_block_tracker_type): Move from
8859 (parse_exp_1): Add tracker_types parameter.
8860 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
8861 reset innermost_block.
8863 2019-03-23 Tom Tromey <tom@tromey.com>
8865 * objfiles.h: Include bcache.h.
8867 2019-03-23 Tom Tromey <tom@tromey.com>
8869 * linespec.c (get_current_search_block): Use
8870 scoped_restore_current_language.
8871 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
8873 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8874 Jiong Wang <jiong.wang@arm.com>
8876 * aarch64-linux-tdep.c
8877 (aarch64_linux_iterate_over_regset_sections): Check for pauth
8879 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
8881 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8882 Jiong Wang <jiong.wang@arm.com>
8884 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
8886 (aarch64_analyze_prologue_test): Add PACIASP test.
8887 (aarch64_prologue_prev_register): Unmask PC value.
8889 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8890 Jiong Wang <jiong.wang@arm.com>
8892 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
8893 (aarch64_dwarf2_prev_register): Unmask PC value.
8894 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
8895 (aarch64_execute_dwarf_cfa_vendor_op): Check for
8896 DW_CFA_AARCH64_negate_ra_state.
8897 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
8899 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8900 Jiong Wang <jiong.wang@arm.com>
8902 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
8904 (aarch64_pseudo_register_name): Likewise.
8905 (aarch64_pseudo_register_type): Likewise.
8906 (aarch64_pseudo_register_reggroup_p): Likewise.
8907 (aarch64_gdbarch_init): Add pauth registers.
8908 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
8909 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
8910 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
8911 (struct gdbarch_tdep): Add regnum for ra_state.
8913 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8914 Jiong Wang <jiong.wang@arm.com>
8916 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
8918 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8919 Jiong Wang <jiong.wang@arm.com>
8921 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
8923 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
8924 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
8925 (aarch64_gdbarch_init): Add puth registers.
8926 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
8927 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
8928 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
8930 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8931 Jiong Wang <jiong.wang@arm.com>
8933 * aarch64-linux-nat.c
8934 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
8935 * aarch64-linux-tdep.c
8936 (aarch64_linux_core_read_description): Likewise.
8937 (aarch64_linux_get_hwcap): New function.
8938 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
8939 (aarch64_linux_get_hwcap): New declaration.
8941 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8942 Jiong Wang <jiong.wang@arm.com>
8944 * aarch64-linux-nat.c
8945 (aarch64_linux_nat_target::read_description): Add pauth param.
8946 * aarch64-linux-tdep.c
8947 (aarch64_linux_core_read_description): Likewise.
8948 * aarch64-tdep.c (struct target_desc): Add in pauth.
8949 (aarch64_read_description): Add pauth param.
8950 (aarch64_gdbarch_init): Likewise.
8951 * aarch64-tdep.h (aarch64_read_description): Likewise.
8952 * arch/aarch64.c (aarch64_create_target_description): Likewise.
8953 * arch/aarch64.h (aarch64_create_target_description): Likewise.
8954 * features/Makefile: Add new files.
8955 * features/aarch64-pauth.c: New file.
8956 * features/aarch64-pauth.xml: New file.
8958 2019-03-20 Tom Tromey <tromey@adacore.com>
8960 * infrun.c (handle_inferior_event): Rename from
8961 handle_inferior_event_1. Create a scoped_value_mark.
8962 (handle_inferior_event): Remove.
8964 2019-03-19 Tom Tromey <tromey@adacore.com>
8966 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
8967 * infrun.h (print_stop_event): Add "displays" parameter.
8968 * infrun.c (print_stop_event): Add "displays" parameter.
8970 2019-03-19 Pedro Alves <palves@redhat.com>
8972 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
8973 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
8974 to -1. Fix TABs vs spaces.
8975 (tui_ui_out::tui_ui_out): Don't initialize fields here.
8976 * tui/tui-out.h (tui_ui_out) Add intro comments.
8977 <m_line, m_start_of_line>: In-class initialize, and add describing
8980 2019-03-18 Alan Hayward <alan.hayward@arm.com>
8982 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
8984 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
8986 2019-03-18 Pedro Alves <palves@redhat.com>
8987 Eli Zaretskii <eliz@gnu.org>
8989 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
8990 m_line and m_start_of_line.
8992 2019-03-18 Eli Zaretskii <eliz@gnu.org>
8994 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
8995 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
8996 it returns a newline. This fixes a regression in TU mode, whereby
8997 the next line is output on the same screen line as the user input.
8999 2019-03-18 Tom Tromey <tromey@adacore.com>
9001 * minsyms.c (minimal_symbol_reader::install): Remove call to
9004 2019-03-18 Pedro Alves <palves@redhat.com>
9006 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
9008 (apply_style): New, factored out from ...
9009 (apply_ansi_escape): ... this. Handle reverse video mode.
9010 (tui_set_reverse_mode): New function.
9011 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
9012 * tui/tui-winsource.c (tui_show_source_line): Use
9013 tui_set_reverse_mode instead of setting A_STANDOUT.
9014 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
9017 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
9019 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
9022 2019-03-18 Tom Tromey <tromey@adacore.com>
9024 * ada-lang.c (empty_array): Add "high" parameter.
9025 (ada_evaluate_subexp): Update.
9027 2019-03-17 Sergei Trofimovich <siarheit@google.com>
9029 * unittests/string_view-selftests.c: Define
9030 _initialize_string_view_selftests unconditionally.
9032 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9035 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
9037 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9040 * windows-nat.c (display_selector): Fix format specifiers.
9042 2019-03-17 Eli Zaretskii <eliz@gnu.org>
9044 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
9045 tui_refill_source_window instead of tui_refresh_win, to update the
9046 current execution line. This fixes redisplay of the current line
9047 when stepping through the code with "next" or "step".
9049 2019-03-16 Eli Zaretskii <eliz@gnu.org>
9051 * source-cache.c (source_cache::get_source_lines): Call
9052 find_source_lines to initialize s->nlines. This fixes vertical
9053 scrolling of TUI source window when the DOWN arrow is pressed.
9055 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9057 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
9058 linux-thread-db.c (_initialize_thread_db): Likewise.
9060 2019-03-16 Eli Zaretskii <eliz@gnu.org>
9062 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
9063 wclrtoeol in tui_show_source_line". This reverts changes made in
9064 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
9066 2019-03-15 Tom Tromey <tom@tromey.com>
9068 * symtab.h (struct minimal_symbol): Derive from
9069 general_symbol_info.
9070 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
9071 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9072 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9073 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9074 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
9075 (MSYMBOL_SEARCH_NAME): Update.
9076 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
9077 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
9078 * minsyms.c (minimal_symbol_reader::record_full): Update.
9080 2019-03-15 Tom Tromey <tom@tromey.com>
9082 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
9084 2019-03-15 Tom Tromey <tom@tromey.com>
9086 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
9088 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
9090 * minsyms.c (lookup_minimal_symbol_by_pc_section)
9091 (build_minimal_symbol_hash_tables)
9092 (minimal_symbol_reader::install): Update.
9094 2019-03-15 Tom Tromey <tom@tromey.com>
9096 * symtab.c (create_demangled_names_hash): Update.
9097 (symbol_set_names): Update.
9098 * objfiles.h (struct objfile_per_bfd_storage)
9099 <demangled_names_hash>: Now an htab_up.
9100 * objfiles.c (objfile_per_bfd_storage): Simplify.
9102 2019-03-15 Tom Tromey <tom@tromey.com>
9104 * objfiles.h (struct objfile_per_bfd_storage): Declare
9106 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
9108 (get_objfile_bfd_data): Use new. Don't initialize
9110 (free_objfile_per_bfd_storage): Remove.
9111 (objfile_bfd_data_free, objfile::~objfile): Use delete.
9113 2019-03-15 Tom Tromey <tom@tromey.com>
9115 * symfile.c (reread_symbols): Update.
9116 * objfiles.c (objfile::objfile): Update.
9117 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
9118 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
9120 (minimal_symbol_reader::install): Update.
9121 (terminate_minimal_symbol_table): Remove.
9122 * jit.c (jit_object_close_impl): Update.
9124 2019-03-15 Tom Tromey <tom@tromey.com>
9126 * minsyms.c (minimal_symbol_reader::record_full): Remove some
9129 2019-03-15 Tom Tromey <tom@tromey.com>
9131 * objfiles.h (struct objfile_per_bfd_storage)
9132 <demangled_hash_languages>: Now a bitset.
9133 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
9134 (lookup_minimal_symbol): Update.
9136 2019-03-15 Tom Tromey <tom@tromey.com>
9138 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
9139 Don't return the symbol.
9140 * coffread.c (record_minimal_symbol): Use record_full.
9142 2019-03-14 Eli Zaretskii <eliz@gnu.org>
9144 The MS-Windows port of ncurses fails to switch to a color pair if
9145 one or both of the colors are the implicit default colors. This
9146 change records the default colors when TUI is initialized, and
9147 then specifies them explicitly when a color pair uses the default
9148 colors. This allows color styling in TUI mode on MS-Windows.
9150 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
9152 (tui_initialize_io) [__MINGW32__]: Record the default terminal
9153 colors in ncurses_norm_attr.
9154 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
9155 "none", replace it with the default color recorded in
9158 2019-03-14 Tom Tromey <tromey@adacore.com>
9160 * source-cache.h (class source_cache) <get_source_lines>: Return
9162 * source-cache.c (source_cache::extract_lines): Handle case where
9163 first_pos==npos. Return std::string.
9164 (source_cache::get_source_lines): Update.
9166 2019-03-14 Tom Tromey <tromey@adacore.com>
9168 * NEWS: Add item for "style sources" commands.
9169 * source-cache.c (source_cache::get_source_lines): Check
9171 * cli/cli-style.c (source_styling): New global.
9172 (_initialize_cli_style): Add "style sources" commands.
9173 (show_style_sources): New function.
9174 * cli/cli-style.h (source_styling): Declare.
9176 2019-03-14 Pedro Alves <palves@redhat.com>
9177 Tom Tromey <tromey@adacore.com>
9179 * tui/tui-winsource.h (tui_refill_source_window): Declare.
9180 * tui/tui-winsource.c (tui_refill_source_window): New function,
9182 (tui_horizontal_source_scroll): ... here. Move some logic.
9183 * cli/cli-style.c (set_style_enabled): Notify new observable.
9184 * tui/tui-hooks.c (tui_redisplay_source): New function.
9185 (tui_attach_detach_observers): Attach or detach
9186 tui_redisplay_source.
9187 * observable.h (source_styling_changed): New observable.
9188 * observable.c: Define source_styling_changed observable.
9190 2019-03-13 Tom Tromey <tromey@adacore.com>
9192 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
9193 (i386_gnu_nat_target::store_registers): Update.
9194 * target-debug.h (target_debug_print_std_string): New macro.
9195 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
9196 * windows-tdep.c (display_one_tib): Update.
9197 * tui/tui-stack.c (tui_make_status_line): Update.
9198 * top.c (print_inferior_quit_action): Update.
9199 * thread.c (thr_try_catch_cmd): Update.
9200 (add_thread_with_info): Update.
9201 (thread_target_id_str): Update.
9202 (thr_try_catch_cmd): Update.
9203 (thread_command): Update.
9204 (thread_find_command): Update.
9205 * record-btrace.c (record_btrace_target::info_record)
9206 (record_btrace_resume_thread, record_btrace_target::resume)
9207 (record_btrace_cancel_resume, record_btrace_step_thread)
9208 (record_btrace_target::wait, record_btrace_target::wait)
9209 (record_btrace_target::wait, record_btrace_target::stop): Update.
9210 * progspace.c (print_program_space): Update.
9211 * process-stratum-target.c
9212 (process_stratum_target::thread_address_space): Update.
9213 * linux-fork.c (linux_fork_mourn_inferior)
9214 (detach_checkpoint_command, info_checkpoints_command)
9215 (linux_fork_context): Update.
9216 (linux_fork_detach): Update.
9217 (class scoped_switch_fork_info): Update.
9218 (delete_checkpoint_command): Update.
9219 * infrun.c (follow_fork_inferior): Update.
9220 (follow_fork_inferior): Update.
9221 (proceed_after_vfork_done): Update.
9222 (handle_vfork_child_exec_or_exit): Update.
9223 (follow_exec): Update.
9224 (displaced_step_prepare_throw): Update.
9225 (displaced_step_restore): Update.
9226 (start_step_over): Update.
9228 (clear_proceed_status_thread): Update.
9230 (print_target_wait_results): Update.
9231 (do_target_wait): Update.
9232 (context_switch): Update.
9233 (stop_all_threads): Update.
9234 (restart_threads): Update.
9235 (finish_step_over): Update.
9236 (handle_signal_stop): Update.
9237 (switch_back_to_stepped_thread): Update.
9238 (keep_going_pass_signal): Update.
9239 (print_exited_reason): Update.
9240 (normal_stop): Update.
9241 * inferior.c (inferior_pid_to_str): Change return type.
9242 (print_selected_inferior): Update.
9243 (add_inferior): Update.
9244 (detach_inferior): Update.
9245 * dummy-frame.c (fprint_dummy_frames): Update.
9246 * dcache.c (dcache_info_1): Update.
9247 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
9248 (btrace_fetch, btrace_clear): Update.
9249 * linux-tdep.c (linux_core_pid_to_str): Change return type.
9250 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
9252 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
9253 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
9254 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
9255 * gdbarch.c, gdbarch.h: Rebuild.
9256 * gdbarch.sh (core_pid_to_str): Change return type.
9257 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
9259 (windows_nat_target::pid_to_str): Change return type.
9260 (windows_delete_thread): Update.
9261 (windows_nat_target::attach): Update.
9262 (windows_nat_target::files_info): Update.
9263 * target-delegates.c: Rebuild.
9264 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
9266 (sol_thread_target::pid_to_str): Change return type.
9267 * remote.c (class remote_target) <pid_to_str>: Change return
9269 (remote_target::pid_to_str): Change return type.
9270 (extended_remote_target::attach, remote_target::remote_stop_ns)
9271 (remote_target::remote_notif_remove_queued_reply)
9272 (remote_target::push_stop_reply, remote_target::disable_btrace):
9274 (extended_remote_target::attach): Update.
9275 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
9277 (gdbsim_target::pid_to_str): Change return type.
9278 * ravenscar-thread.c (struct ravenscar_thread_target)
9279 <pid_to_str>: Change return type.
9280 (ravenscar_thread_target::pid_to_str): Change return type.
9281 * procfs.c (class procfs_target) <pid_to_str>: Change return
9283 (procfs_target::pid_to_str): Change return type.
9284 (procfs_target::attach): Update.
9285 (procfs_target::detach): Update.
9286 (procfs_target::fetch_registers): Update.
9287 (procfs_target::store_registers): Update.
9288 (procfs_target::wait): Update.
9289 (procfs_target::files_info): Update.
9290 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
9291 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
9293 (nto_procfs_target::pid_to_str): Change return type.
9294 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
9295 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
9297 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
9299 (attach_proc_task_lwp_callback, get_detach_signal)
9300 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
9301 (linux_nat_target::resume, wait_lwp, stop_callback)
9302 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
9303 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
9304 (linux_nat_wait_1, resume_stopped_resumed_lwps)
9305 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
9306 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
9308 (inf_ptrace_target::attach): Update.
9309 (inf_ptrace_target::files_info): Update.
9310 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
9312 (go32_nat_target::pid_to_str): Change return type.
9313 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
9314 (gnu_nat_target::wait): Update.
9315 (gnu_nat_target::wait): Update.
9316 (gnu_nat_target::resume): Update.
9317 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
9318 (fbsd_nat_target::wait): Update.
9319 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
9321 (darwin_nat_target::attach): Update.
9322 * corelow.c (class core_target) <pid_to_str>: Change return type.
9323 (core_target::pid_to_str): Change return type.
9324 * target.c (normal_pid_to_str): Change return type.
9325 (default_pid_to_str): Likewise.
9326 (target_pid_to_str): Change return type.
9327 (target_translate_tls_address): Update.
9328 (target_announce_detach): Update.
9329 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
9331 (bsd_uthread_target::pid_to_str): Change return type.
9332 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
9334 (bsd_kvm_target::pid_to_str): Change return type.
9335 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
9337 (aix_thread_target::pid_to_str): Change return type.
9338 * target.h (struct target_ops) <pid_to_str>: Change return type.
9339 (target_pid_to_str, normal_pid_to_str): Likewise.
9340 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
9342 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
9344 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
9346 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
9348 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
9350 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
9353 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
9355 * NEWS: Mention that the new default MI version is 3. Mention
9356 changes to the output of commands and events that deal with
9357 multi-location breakpoints.
9358 * breakpoint.c: Include "mi/mi-out.h".
9359 (print_one_breakpoint): Change output syntax if using MI version
9361 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
9363 (mi_multi_location_breakpoint_output_fixed): New.
9364 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
9365 (mi_cmd_fix_multi_location_breakpoint_output): New.
9366 (mi_multi_location_breakpoint_output_fixed): New.
9367 * mi/mi-cmds.c (mi_cmds): Register command
9368 -fix-multi-location-breakpoint-output.
9369 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
9372 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9374 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
9375 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
9376 instantiate mi_ui_out based on interpreter name.
9377 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
9378 * mi/mi-main.c (mi_load_progress): Likewise.
9380 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9382 * NEWS: Combine separate "New targets" sections for 8.3.
9384 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9386 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
9387 (ppcfbsd_init_abi): Install gdbarch
9388 "fetch_tls_load_module_address" and "get_thread_local_address"
9391 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9393 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
9394 (riscv_fbsd_init_abi): Install gdbarch
9395 "fetch_tls_load_module_address" and "get_thread_local_address"
9398 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9400 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
9401 (i386fbsd_init_abi): Install gdbarch
9402 "fetch_tls_load_module_address" and "get_thread_local_address"
9405 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9407 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
9408 (amd64fbsd_init_abi): Install gdbarch
9409 "fetch_tls_load_module_address" and "get_thread_local_address"
9412 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9414 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
9415 (struct fbsd_pspace_data): New type.
9416 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
9417 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
9418 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
9419 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
9420 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
9422 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9424 * gdbtypes.c (lookup_struct_elt): New function.
9425 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
9426 * gdbtypes.h (struct struct_elt): New type.
9427 (lookup_struct_elt): New prototype.
9429 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9431 * gdbtypes.c (lookup_struct_elt_type): Update comment and
9432 remove disabled code block.
9434 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9436 * gdbarch.sh (get_thread_local_address): New method.
9437 * gdbarch.h, gdbarch.c: Regenerate.
9438 * target.c (target_translate_tls_address): Use
9439 gdbarch_get_thread_local_address if present instead of
9440 target::get_thread_local_address.
9442 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9444 * target.h (target::get_thread_local_address): Update comment.
9446 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9448 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
9449 objfile->separate_debug_objfile_backlink if not NULL.
9451 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9453 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
9454 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
9455 (amd64bsd_store_inferior_registers): Likewise.
9456 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
9457 Enable segment base registers.
9458 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
9459 PT_GETFSBASE and PT_GETGSBASE.
9460 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
9462 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
9463 segment base registers.
9464 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
9466 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9468 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
9469 Update calls to i386_target_description to add 'segments'
9471 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
9472 add segment base registers.
9473 * arch/i386.c (i386_create_target_description): Add 'segments'
9474 parameter to enable segment base registers.
9475 * arch/i386.h (i386_create_target_description): Likewise.
9476 * features/i386/32bit-segments.xml: New file.
9477 * features/i386/32bit-segments.c: Generate.
9478 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
9479 call to i386_target_description to add 'segments' parameter.
9480 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
9481 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
9482 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
9483 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
9484 if feature is present.
9485 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
9486 Add 'segments' parameter to call to i386_target_description.
9487 (i386_target_description): Add 'segments' parameter to enable
9488 segment base registers.
9489 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
9490 to call to i386_target_description.
9491 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
9492 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
9493 Define I386_NUM_REGS.
9494 (i386_target_description): Add 'segments' parameter to enable
9495 segment base registers.
9497 2019-03-12 Eli Zaretskii <eliz@gnu.org>
9500 * source-cache.c: #undef open and close, to avoid unresolved
9501 externals during linking.
9503 2019-03-12 Tom Tromey <tromey@adacore.com>
9505 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
9506 const. Add initializers.
9507 (_initialize_remote): Don't initialize ptid globals.
9509 2019-03-12 Pedro Alves <palves@redhat.com>
9511 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
9513 2019-03-12 Pedro Alves <palves@redhat.com>
9515 * cp-name-parser.y (main): Remove unused 'len' variable.
9517 2019-03-12 Tom Tromey <tromey@adacore.com>
9519 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
9520 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
9522 2019-03-12 Tom Tromey <tromey@adacore.com>
9524 * linux-nat.c (iterate_over_lwps): Update.
9525 (stop_callback): Remove parameter.
9526 (stop_wait_callback, detach_callback, resume_set_callback)
9527 (select_singlestep_lwp_callback, set_ignore_sigint)
9528 (status_callback, resumed_callback, resume_clear_callback)
9529 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
9531 (linux_nat_target::detach, linux_nat_target::resume)
9532 (linux_stop_and_wait_all_lwps, select_event_lwp)
9533 (linux_nat_filter_event, linux_nat_wait_1)
9534 (linux_nat_target::kill, linux_nat_target::stop)
9535 (linux_nat_target::stop): Update.
9536 (linux_nat_resume_callback): Change type.
9537 (resume_stopped_resumed_lwps, count_events_callback)
9538 (select_event_lwp_callback): Likewise.
9539 (linux_stop_lwp, linux_nat_stop_lwp): Update.
9540 * arm-linux-nat.c (struct update_registers_data): Remove.
9541 (update_registers_callback): Change type.
9542 (arm_linux_insert_hw_breakpoint1): Update.
9543 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
9545 (x86_linux_dr_set_addr): Update.
9546 (x86_linux_dr_set_control): Update.
9547 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
9548 (iterate_over_lwps): Use gdb::function_view.
9549 * nat/aarch64-linux-hw-point.c (struct
9550 aarch64_dr_update_callback_param): Remove.
9551 (debug_reg_change_callback): Change type.
9552 (aarch64_notify_debug_reg_change): Update.
9553 * s390-linux-nat.c (s390_refresh_per_info): Update.
9555 2019-03-11 Tom Tromey <tromey@adacore.com>
9557 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
9558 redundant assignment to "this_cu".
9560 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9562 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
9564 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9566 * gdbtypes.c (rank_one_type_parm_set): New function extracted
9568 (rank_one_type): ... this.
9570 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9572 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
9574 (rank_one_type): ... this.
9576 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9578 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
9580 (rank_one_type): ... this.
9582 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9584 * gdbtypes.c (rank_one_type_parm_float): New function extracted
9586 (rank_one_type): ... this.
9588 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9590 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
9592 (rank_one_type): ... this.
9594 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9596 * gdbtypes.c (rank_one_type_parm_range): New function extracted
9598 (rank_one_type): ... this.
9600 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9602 * gdbtypes.c (rank_one_type_parm_char): New function extracted
9604 (rank_one_type): ... this.
9606 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9608 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
9610 (rank_one_type): ... this.
9612 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9614 * gdbtypes.c (rank_one_type_parm_int): New function extracted
9616 (rank_one_type): ... this.
9618 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9620 * gdbtypes.c (rank_one_type_parm_func): New function extracted
9622 (rank_one_type): ... this.
9624 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9626 * gdbtypes.c (rank_one_type_parm_array): New function extracted
9628 (rank_one_type): ... this.
9630 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9632 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
9634 (rank_one_type): ... this.
9636 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9638 * inferior.c (initialize_inferiors): Ensure 'help set/show print
9639 inferior-events' shows the example events.
9641 2019-03-08 Eli Zaretskii <eliz@gnu.org>
9643 Support styling on native MS-Windows console
9646 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
9647 on MS-Windows if $TERM is not defined.
9649 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
9651 * posix-hdep.c (gdb_console_fputs):
9652 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
9654 * ui-file.h (gdb_console_fputs): Add prototype.
9656 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
9657 back to fputs only if the former returns zero.
9659 2019-03-07 Tom Tromey <tom@tromey.com>
9661 * symmisc.c (print_symbol_bcache_statistics): Update.
9662 (print_objfile_statistics): Update.
9663 * symfile.c (allocate_symtab): Update.
9664 * stabsread.c: Don't include bcache.h.
9665 * psymtab.h (struct psymbol_bcache): Don't declare.
9666 (class psymtab_storage) <psymbol_cache>: Now a bcache.
9667 (psymbol_bcache_init, psymbol_bcache_free)
9668 (psymbol_bcache_get_bcache): Don't declare.
9669 * psymtab.c (struct psymbol_bcache): Remove.
9670 (psymtab_storage::psymtab_storage): Update.
9671 (psymtab_storage::~psymtab_storage): Update.
9672 (psymbol_bcache_init, psymbol_bcache_free)
9673 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
9674 (add_psymbol_to_bcache): Update.
9675 (allocate_psymtab): Update.
9676 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
9677 macro_cache>: No longer pointers.
9678 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
9679 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
9680 * macrotab.c (macro_bcache): Update.
9681 * macroexp.c: Don't include bcache.h.
9682 * gdbtypes.c (check_types_worklist): Update.
9683 (types_deeply_equal): Remove TRY/CATCH. Update.
9684 * elfread.c (elf_symtab_read): Update.
9685 * dwarf2read.c: Don't include bcache.h.
9686 * buildsym.c (buildsym_compunit::get_macro_table): Update.
9687 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
9688 (print_bcache_statistics, bcache_memory_used): Don't declare.
9689 (struct bcache): Move from bcache.c. Add constructor, destructor,
9690 methods. Rename all data members.
9691 * bcache.c (struct bcache): Move to bcache.h.
9692 (bcache::expand_hash_table): Rename from expand_hash_table.
9694 (bcache::insert): Rename from bcache_full.
9695 (bcache::compare): Rename from bcache_compare.
9696 (bcache_xmalloc): Remove.
9697 (bcache::~bcache): Rename from bcache_xfree.
9698 (bcache::print_statistics): Rename from print_bcache_statistics.
9699 (bcache::memory_used): Rename from bcache_memory_used.
9701 2019-03-07 Pedro Alves <palves@redhat.com>
9703 * infrun.c (normal_stop): Also check for
9704 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
9706 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
9708 * f-lang.c (value_from_host_double): Moved to...
9709 * value.c (value_from_host_double): ...here.
9710 * value.h (value_from_host_double): Declare.
9711 * guile/scm-math.c (vlscm_convert_typed_number): Use
9712 value_from_host_double.
9713 (vlscm_convert_number): Likewise.
9714 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
9715 * python/py-value.c (convert_value_from_python): Likewise.
9717 2019-03-06 Tom Tromey <tom@tromey.com>
9719 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
9721 2019-03-06 Tom Tromey <tom@tromey.com>
9723 * utils.h (free_current_contents): Don't declare.
9724 * utils.c (free_current_contents): Remove.
9726 2019-03-06 Tom Tromey <tom@tromey.com>
9728 * top.c (quit_force): Update.
9729 * main.c (captured_command_loop): Update.
9730 * common/new-op.c (operator new): Update.
9731 * common/common-exceptions.c (struct catcher)
9732 <save_cleanup_chain>: Remove member.
9733 (exceptions_state_mc_init): Update.
9734 (exception_try_scope_entry): Return nullptr.
9735 (exception_try_scope_exit, exception_rethrow)
9736 (throw_exception_sjlj, throw_exception_cxx): Update.
9737 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
9738 (all_cleanups, do_cleanups, discard_cleanups)
9739 (discard_final_cleanups, save_cleanups, save_final_cleanups)
9740 (restore_cleanups, restore_final_cleanups): Don't declare.
9741 (do_final_cleanups): Remove parameter.
9742 * common/cleanups.c (cleanup_chain, make_cleanup)
9743 (make_cleanup_dtor, all_cleanups, do_cleanups)
9744 (discard_my_cleanups, discard_cleanups)
9745 (discard_final_cleanups, save_my_cleanups, save_cleanups)
9746 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
9747 (null_cleanup): Remove.
9748 (do_final_cleanups): Remove parameter.
9750 2019-03-06 Tom Tromey <tom@tromey.com>
9752 * remote.c (remote_target::remote_parse_stop_reply): Use
9755 2019-03-06 Tom Tromey <tom@tromey.com>
9757 * stabsread.c (struct stabs_field_info): Rename from field_info.
9758 <list, fnlist>: Add initializers.
9759 <obstack>: New member.
9760 (read_member_functions, read_struct_fields, read_baseclasses):
9761 Allocate on obstack. Don't use cleanups.
9762 (read_one_struct_field, read_member_functions, read_struct_fields)
9763 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
9764 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
9765 (read_struct_type): Update.
9767 2019-03-06 Tom Tromey <tom@tromey.com>
9769 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
9770 * common/filestuff.h (make_cleanup_close): Don't declare.
9771 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
9774 2019-03-06 Tom Tromey <tom@tromey.com>
9776 * solib-aix.c: Use make_scope_exit.
9778 2019-03-06 Tom Tromey <tom@tromey.com>
9780 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
9781 Use make_scope_exit.
9783 2019-03-06 Tom Tromey <tom@tromey.com>
9785 * solib-svr4.c (disable_probes_interface): Remove parameter.
9786 (svr4_handle_solib_event): Use make_scope_exit.
9788 2019-03-06 Tom Tromey <tom@tromey.com>
9790 * remote.c (struct stop_reply_deleter): Remove.
9791 (stop_reply_up): Update.
9792 (struct stop_reply): Derive from notif_event. Don't typedef.
9793 <regcache>: Now a std::vector.
9794 (stop_reply_xfree): Remove.
9795 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
9796 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
9797 (remote_target::discard_pending_stop_replies): Use delete.
9798 (remote_target::remote_parse_stop_reply): Update.
9799 (remote_target::process_stop_reply): Update.
9800 * remote-notif.h (struct notif_event): Add virtual destructor.
9801 Remove "dtr" member.
9802 (struct notif_client) <alloc_event>: Return a unique_ptr.
9803 (notif_event_xfree): Don't declare.
9804 (notif_event_up): New typedef.
9805 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
9806 (notif_event_xfree, do_notif_event_xfree): Remove.
9807 (remote_notif_state_xfree): Update.
9809 2019-03-06 Tom Tromey <tom@tromey.com>
9811 * infrun.c (displaced_step_clear_cleanup): Now a
9812 forward_scope_exit type.
9813 (displaced_step_prepare_throw): Update.
9814 (displaced_step_fixup): Update.
9816 2019-03-06 Tom Tromey <tom@tromey.com>
9818 * inferior.h (class inferior): Update comment.
9819 * gdbthread.h (class thread_info): Update comment.
9821 2019-03-06 Joel Brobecker <brobecker@adacore.com>
9822 Tom Tromey <tom@tromey.com>
9824 * stabsread.h (struct stab_section_list): Remove.
9825 (coffstab_build_psymtabs): Update.
9826 * dbxread.c (symbuf_sections): Now a std::vector.
9827 (sect_idx): New global.
9828 (fill_symbuf): Update.
9829 (coffstab_build_psymtabs): Change type of stabsects parameter.
9831 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
9833 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
9834 (coff_locate_sections): Update.
9835 (coff_symfile_read): Remove cleanups. Update.
9836 (init_stringtab): Add storage parameter.
9837 (free_stringtab, free_stringtab_cleanup): Remove.
9838 (init_lineno): Add storage parameter.
9839 (free_linetab, free_linetab_cleanup): Remove.
9841 2019-03-06 Pedro Alves <palves@redhat.com>
9843 * linux-fork.c (fork_info::clobber_regs): Delete.
9844 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
9845 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
9847 (scoped_switch_fork_info::scoped_switch_fork_info)
9848 (checkpoint_command, linux_fork_context): Adjust
9849 fork_save_infrun_state calls.
9851 2019-03-06 Pedro Alves <palves@redhat.com>
9853 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
9854 (inf_has_multiple_threads): Return 'bool' and rewrite using
9855 inferior_info::threads().
9857 2019-03-06 Pedro Alves <palves@redhat.com>
9859 * linux-fork.c: Include <list>.
9860 (fork_list): Now a std::list instance.
9861 (fork_info): Add ctor, dtor, and in-class initialize all fields.
9862 (forks_exist_p, find_last_fork): Adjust.
9866 (free_fork): Delete, folded into fork_info::~fork_info().
9867 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
9869 (init_fork_list): Delete.
9870 (linux_fork_killall, linux_fork_mourn_inferior)
9871 (linux_fork_detach, info_checkpoints_command): Adjust.
9872 (_initialize_linux_fork): No longer call init_fork_list.
9874 2019-03-06 Pedro Alves <palves@redhat.com>
9876 * linux-fork.c (new_fork): New, split out of ...
9877 (add_fork): ... this. Return void. Move "first fork" special
9878 case from here, to ...
9879 (checkpoint_command): ... here.
9880 * linux-linux.h (add_fork): Return void.
9882 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9884 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
9886 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9887 Chris January <chris.january@arm.com>
9888 David Lecomber <david.lecomber@arm.com>
9890 * f-exp.y: New token, UNOP_INTRINSIC.
9891 (exp): New pattern using UNOP_INTRINSIC token.
9892 (f77_keywords): Add 'abs' keyword.
9893 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
9894 (value_from_host_double): New function.
9895 (evaluate_subexp_f): Support UNOP_ABS.
9897 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9899 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
9902 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9904 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
9905 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
9906 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
9908 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9910 * f-exp.y (convert_to_kind_type): Handle more type kinds.
9912 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9913 Chris January <chris.january@arm.com>
9915 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
9916 * f-exp.y: Define 'KIND' token.
9917 (exp): New pattern for KIND expressions.
9918 (ptype): Handle types with a kind extension.
9919 (direct_abs_decl): Extend to spot kind extensions.
9920 (f77_keywords): Add 'kind' to the list.
9921 (push_kind_type): New function.
9922 (convert_to_kind_type): New function.
9923 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
9924 * parse.c (operator_length_standard): Likewise.
9925 * parser-defs.h (enum type_pieces): Add tp_kind.
9926 * std-operator.def: Add UNOP_KIND.
9928 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9930 * f-exp.y (f_parse): Set yydebug.
9932 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9934 * f-lang.c (evaluate_subexp_f): New function.
9935 (exp_descriptor_f): New global.
9936 (f_language_defn): Use exp_descriptor_f instead of
9937 exp_descriptor_standard.
9939 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9941 * f-exp.y (struct token): Add comments.
9942 (dot_ops): Remove uppercase versions and the end marker.
9943 (f77_keywords): Likewise.
9944 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
9945 entries in the dot_ops array are case insensitive, and use
9946 strncasecmp to compare strings. Also some whitespace cleanup in
9947 this area. Similar for the f77_keywords array, except entries in
9948 this list might be case sensitive.
9950 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9952 * f-exp.y (struct f77_boolean_val): Add comments.
9953 (boolean_values): Remove uppercase versions, and end marker.
9954 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
9955 and use strncasecmp to achieve case insensitivity. Additionally,
9956 perform whitespace cleanup around this code.
9958 2019-03-06 Tom Tromey <tromey@adacore.com>
9960 * remote-sim.c (gdbsim_target_open): Use result of
9963 2019-03-06 Richard Bunt <richard.bunt@arm.com>
9964 Dirk Schubert <dirk.schubert@arm.com>
9965 Chris January <chris.january@arm.com>
9967 * eval.c (evaluate_subexp_standard): Call Fortran argument
9969 * f-lang.c (struct value): A value which can be passed into a
9970 Fortran function call.
9971 (fortran_argument_convert): Wrap Fortran arguments in a pointer
9973 (struct type): Value ready for a Fortran function call.
9974 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
9976 * f-lang.h (fortran_argument_convert): Declaration.
9977 (fortran_preserve_arg_pointer): Declaration.
9978 * infcall.c (value_arg_coerce): Call Fortran argument logic.
9980 2019-03-05 Tom Tromey <tromey@adacore.com>
9982 * python/py-prettyprint.c (print_string_repr): Remove #if.
9983 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
9985 2019-03-05 Tom Tromey <tromey@adacore.com>
9987 * target.c (the_dummy_target): Move later. Change type to
9989 (initialize_targets): Don't initialize the_dummy_target.
9991 2019-03-05 Tom Tromey <tromey@adacore.com>
9993 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
9994 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
9996 2019-03-05 Tom Tromey <tromey@adacore.com>
9998 * windows-nat.c (windows_nat_target::attach)
9999 (windows_nat_target::detach): Don't call gdb_flush.
10000 * valprint.c (generic_val_print, val_print, val_print_string):
10001 Don't call gdb_flush.
10002 * utils.c (defaulted_query): Don't call gdb_flush.
10003 * typeprint.c (print_type_scalar): Don't call gdb_flush.
10004 * target.c (target_announce_detach): Don't call gdb_flush.
10005 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
10006 * remote.c (extended_remote_target::attach): Don't call
10008 * procfs.c (procfs_target::detach): Don't call gdb_flush.
10009 * printcmd.c (do_examine): Don't call gdb_flush.
10010 (info_display_command): Don't call gdb_flush.
10011 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
10012 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
10013 * memattr.c (info_mem_command): Don't call gdb_flush.
10014 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
10015 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
10016 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
10017 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
10018 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
10019 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
10020 (gnu_nat_target::detach): Don't call gdb_flush.
10021 * f-valprint.c (f_val_print): Don't call gdb_flush.
10022 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
10023 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
10024 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
10026 * c-valprint.c (c_val_print): Don't call gdb_flush.
10027 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
10029 2019-03-05 Tom Tromey <tromey@adacore.com>
10031 * varobj.c (update_dynamic_varobj_children): Update.
10032 (install_default_visualizer): Use reset, not release.
10033 * value.c (set_internalvar): Update.
10034 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
10035 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
10036 ATTRIBUTE_UNUSED_RESULT.
10038 2019-03-05 Tom Tromey <tromey@adacore.com>
10040 * remote.c (class scoped_remote_fd) <release>: Add
10041 ATTRIBUTE_UNUSED_RESULT.
10043 2019-03-05 Tom Tromey <tromey@adacore.com>
10045 * macroexp.c (struct macro_buffer) <release>: Add
10046 ATTRIBUTE_UNUSED_RESULT.
10048 2019-03-05 Tom Tromey <tromey@adacore.com>
10050 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
10051 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
10052 ATTRIBUTE_UNUSED_RESULT.
10054 2019-03-05 Tom Tromey <tromey@adacore.com>
10056 * common/scoped_fd.h (class scoped_fd) <release>: Add
10057 ATTRIBUTE_UNUSED_RESULT.
10059 2019-03-05 Tom Tromey <tromey@adacore.com>
10061 * parser-defs.h (struct parser_state) <release>: Add
10062 ATTRIBUTE_UNUSED_RESULT.
10064 2019-03-05 Tom Tromey <tromey@adacore.com>
10066 * utils.h (class gdb_argv) <release>: Add
10067 ATTRIBUTE_UNUSED_RESULT.
10068 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
10070 2019-03-02 Eli Zaretskii <eliz@gnu.org>
10072 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
10073 for-loop range, to avoid compiler warnings.
10075 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
10076 avoid compiler warnings about unused variables.
10078 * NEWS: Mention end of support for native debugging on MS-Windows
10082 * common/netstuff.c:
10083 * gdbserver/gdbreplay.c
10084 * gdbserver/remote-utils.c:
10086 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
10087 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
10088 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
10089 'getaddrinfo' and 'freeaddrinfo' were not available before
10090 Windows XP, and mingw.org's MinGW headers by default define
10091 _WIN32_WINNT to 0x500.
10093 2019-03-01 Gary Benson <gbenson@redhat.com>
10095 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
10097 2019-02-28 Brian Vandenberg <phantall@gmail.com>
10098 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10101 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
10102 set_sigint_trap, clear_sigint_trap.
10104 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10106 * target.c (target_detach): Clear the regcache and the
10109 2019-02-27 Pedro Alves <palves@redhat.com>
10111 * utils.c (set_screen_size): When we cap the height/width sizes,
10112 tweak the corresponding command variable to show "unlimited":
10114 2019-02-27 Saagar Jha <saagar@saagarjha.com>
10115 Pedro Alves <palves@redhat.com>
10117 * utils.c (set_screen_size): Reduce "infinite" rows and columns
10118 before calling rl_set_screen_size.
10120 2019-02-27 Tom Tromey <tromey@adacore.com>
10122 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
10124 * python/py-value.c: Remove Python 2.4 workaround.
10125 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
10127 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
10128 Python 2.4 workaround.
10129 * python/python-internal.h: Remove Python 2.4 comment.
10130 (Py_ssize_t): Don't define.
10131 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
10132 (gdb_Py_DECREF): Remove Python 2.4 workaround.
10133 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
10134 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
10135 * python/python.c (do_start_initialization): Remove Python 2.4
10137 * python/py-prettyprint.c (class dummy_python_frame): Remove.
10138 (print_children): Remove Python 2.4 workaround.
10139 * python/py-inferior.c (buffer_procs): Remove Python 2.4
10141 (CHARBUFFERPROC_NAME): Remove.
10142 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
10143 Python 2.4 workaround.
10145 2019-02-27 Kevin Buettner <kevinb@redhat.com>
10147 * NEWS: Note minimum Python version.
10149 2019-02-27 Kevin Buettner <kevinb@redhat.com>
10151 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
10152 code from these functions. Remove corresponding ifdefs. Use
10153 Py_buffer_up instead of explicit calls to PyBuffer_Release.
10154 Remove gotos and target of gotos.
10155 (infpy_search_memory): Likewise.
10157 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10159 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
10160 (hppa_gdbarch_init): Don't register deleted functions with
10163 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10165 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
10166 (h8300_unwind_sp): Delete.
10167 (h8300_dummy_id): Delete.
10168 (h8300_gdbarch_init): Don't register deleted functions with
10171 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10173 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
10174 (ft32_unwind_pc): Delete.
10175 (ft32_unwind_sp): Delete.
10176 (ft32_gdbarch_init): Don't register deleted functions with
10179 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10181 * gdb/frv-tdep.c (frv_dummy_id): Delete.
10182 (frv_unwind_pc): Delete.
10183 (frv_unwind_sp): Delete.
10184 (frv_gdbarch_init): Don't register deleted functions with
10187 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10189 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
10190 (riscv_unwind_pc): Delete.
10191 (riscv_unwind_sp): Delete.
10192 (riscv_gdbarch_init): Don't register deleted functions with
10195 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10197 * gdb/csky-tdep.c (csky_dummy_id): Delete.
10198 (csky_unwind_pc): Delete.
10199 (csky_unwind_sp): Delete.
10200 (csky_gdbarch_init): Don't register deleted functions with
10203 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10205 * gdb/cris-tdep.c (cris_dummy_id): Delete.
10206 (cris_unwind_pc): Delete.
10207 (cris_unwind_sp): Delete.
10208 (cris_gdbarch_init): Don't register deleted functions with
10211 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10213 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
10214 (bfin_unwind_pc): Delete.
10215 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
10217 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10219 * gdb/arm-tdep.c (arm_dummy_id): Delete.
10220 (arm_unwind_pc): Delete.
10221 (arm_unwind_sp): Delete.
10222 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
10224 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10226 * gdb/arc-tdep.c (arc_dummy_id): Delete.
10227 (arc_unwind_pc): Delete.
10228 (arc_unwind_sp): Delete.
10229 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
10231 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10233 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
10234 (alpha_unwind_pc): Delete.
10235 (alpha_gdbarch_init): Don't register deleted functions with
10238 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10240 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
10241 (aarch64_unwind_pc): Delete.
10242 (aarch64_unwind_sp): Delete.
10243 (aarch64_gdbarch_init): Don't register deleted functions with
10246 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10248 * gdbtypes.c (type_align): Don't consider static members when
10249 computing structure alignment.
10251 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10253 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
10254 return 0 for other types.
10255 * arch-utils.c (default_type_align): Always return 0.
10256 * gdbarch.h: Regenerate.
10257 * gdbarch.sh (type_align): Extend comment.
10258 * gdbtypes.c (type_align): Add additional comments, always call
10259 gdbarch_type_align before applying the default rules.
10260 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
10261 generic code will then apply a suitable default.
10262 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
10263 types, return 0 for other types.
10265 2019-02-27 Joel Brobecker <brobecker@adacore.com>
10267 * NEWS: Create a new section for the next release branch.
10268 Rename the section of the current branch, now that it has
10271 2019-02-27 Joel Brobecker <brobecker@adacore.com>
10273 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
10274 * version.in: Bump version to 8.3.50.DATE-git.
10276 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
10278 * aix-thread.c (ptid_cmp): Remove unused variable.
10279 (get_signaled_thread): Likewise.
10280 (store_regs_user_thread): Likewise.
10281 (store_regs_kernel_thread): Likewise.
10282 (fetch_regs_kernel_thread): Remove shadowed variable.
10284 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
10286 * features/riscv/32bit-cpu.xml: Add register numbers.
10287 * features/riscv/32bit-fpu.c: Regenerate.
10288 * features/riscv/32bit-fpu.xml: Add register numbers.
10289 * features/riscv/64bit-cpu.xml: Add register numbers.
10290 * features/riscv/64bit-fpu.c: Regenerate.
10291 * features/riscv/64bit-fpu.xml: Add register numbers.
10293 2019-02-26 Kevin Buettner <kevinb@redhat.com>
10295 * NEWS: Mention two argument form of gdb.Value constructor.
10296 * python/py-value.c (convert_buffer_and_type_to_value): New
10298 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
10299 Add support for handling an optional second argument. Call
10300 convert_buffer_and_type_to_value as appropriate.
10301 * python/python-internal.h (Py_buffer_deleter): New struct.
10302 (Py_buffer_up): New typedef.
10304 2019-02-25 John Baldwin <jhb@FreeBSD.org>
10306 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
10307 instead of releasing ownership.
10309 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
10311 * dwarf2read.c (open_and_init_dwp_file): Call
10312 elf_numsections instead of bfd_count_sections to initialize
10313 dwp_file->num_sections.
10315 2019-02-25 Tom Tromey <tromey@adacore.com>
10317 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
10319 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
10321 * gcore.in: Add '--readnever' option when invoking GDB.
10323 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
10325 * MAINTAINERS: Update my email address.
10327 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
10329 * build-id.c (build_id_to_debug_bfd_1): New function.
10330 (build_id_to_debug_bfd): Look for separate debug file in
10333 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
10335 * gdbarch.sh: Update the copyright year range that is placed into
10338 2019-02-22 Keith Seitz <keiths@redhat.com>
10341 * linespec.c (create_sals_line_offset): Search for the default
10342 symtab's filename instead of its fullname.
10344 2019-02-21 Alan Hayward <alan.hayward@arm.com>
10346 * NEWS: Update style defaults.
10348 2019-02-21 Alan Hayward <alan.hayward@arm.com>
10350 * main.c (captured_main_1): Disable styling in batch mode.
10352 2019-02-20 Tom Tromey <tom@tromey.com>
10354 * symtab.c (symtab_symbol_info): Fix typos.
10356 2019-02-20 Tom Tromey <tromey@adacore.com>
10358 * findcmd.c (_initialize_mem_search): Use upper case for
10359 metasyntactic variables.
10361 2019-02-20 Alan Hayward <alan.hayward@arm.com>
10363 * aarch64-tdep.c (aarch64_add_reggroups): New function.
10364 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
10366 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
10368 * top.h (source_file_name): Change to std::string.
10369 * top.c (source_file_name): Likewise.
10370 (command_line_input): Adjust.
10371 * cli/cli-script.c (script_from_file): Adjust.
10373 2019-02-19 Tom Tromey <tromey@adacore.com>
10375 * ravenscar-thread.c
10376 (ravenscar_thread_target::update_thread_list): Don't call
10377 ada_build_task_list.
10378 * ada-lang.h (ada_build_task_list): Don't declare.
10379 * ada-tasks.c (struct ada_tasks_inferior_data)
10380 <task_list_valid_p>: Now bool.
10381 (read_known_tasks, ada_task_list_changed)
10382 (ada_tasks_invalidate_inferior_data): Update.
10383 (read_known_tasks_array): Return bool.
10384 (read_known_tasks_list): Likewise.
10385 (read_known_tasks): Return void.
10386 (ada_build_task_list): Now static.
10388 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
10390 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
10391 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
10393 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10395 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
10396 variant for ada_tasks_pspace_data_handle and
10397 ada_tasks_inferior_data_handle.
10398 (ada_tasks_pspace_data_cleanup): New function.
10399 (ada_tasks_inferior_data_cleanup): New function.
10401 2019-02-17 Tom Tromey <tom@tromey.com>
10403 * macrotab.h (macro_source_fullname): Return a std::string.
10404 * macrotab.c (macro_include, check_for_redefinition)
10405 (macro_undef, macro_lookup_definition, foreach_macro)
10406 (foreach_macro_in_scope): Update.
10407 (macro_source_fullname): Return a std::string.
10408 * macrocmd.c (show_pp_source_pos): Update.
10410 2019-02-17 Tom Tromey <tom@tromey.com>
10412 * macrocmd.c (show_pp_source_pos): Style the file names.
10414 2019-02-17 Tom Tromey <tom@tromey.com>
10417 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
10419 2019-02-17 Tom Tromey <tom@tromey.com>
10421 * ada-lang.c (user_select_syms): Use filtered printing.
10422 * utils.c (wrap_style): New global.
10423 (desired_style): Remove.
10424 (emit_style_escape): Add stream parameter.
10425 (set_output_style, reset_terminal_style, prompt_for_continue):
10427 (flush_wrap_buffer): Only flush gdb_stdout.
10428 (wrap_here): Set wrap_style.
10429 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
10430 treat escape sequences as a character. Change when wrap buffer is
10432 (fputs_styled): Do not set the output style when the default is
10434 * ui-style.h (struct ui_file_style) <is_default>: New method.
10435 * source.c (print_source_lines_base): Emit escape sequences in one
10438 2019-02-17 Joel Brobecker <brobecker@adacore.com>
10440 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
10441 integers and enumeration types.
10443 2019-02-17 Joel Brobecker <brobecker@adacore.com>
10445 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
10446 instead of lookup_symbol_in_language
10447 (do_exact_match): New function.
10448 (ada_get_symbol_name_matcher): Return do_exact_match when
10449 doing a verbatim match.
10451 2019-02-15 Tom Tromey <tromey@adacore.com>
10453 * ravenscar-thread.c (ravenscar_thread_target::resume)
10454 (ravenscar_thread_target::wait): Special case wildcard requests.
10456 2019-02-15 Tom Tromey <tromey@adacore.com>
10458 * ravenscar-thread.c (base_ptid): Remove.
10459 (struct ravenscar_thread_target) <close>: New method.
10460 <m_base_ptid>: New member.
10461 <update_inferior_ptid, active_task, task_is_currently_active,
10462 runtime_initialized>: Declare methods.
10463 <ravenscar_thread_target>: Add constructor.
10464 (ravenscar_thread_target::task_is_currently_active)
10465 (ravenscar_thread_target::update_inferior_ptid)
10466 (ravenscar_runtime_initialized): Rename. Now methods.
10467 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
10468 (ravenscar_thread_target::update_thread_list): Update.
10469 (ravenscar_thread_target::active_task): Now method.
10470 (ravenscar_thread_target::store_registers)
10471 (ravenscar_thread_target::prepare_to_store)
10472 (ravenscar_thread_target::prepare_to_store)
10473 (ravenscar_thread_target::mourn_inferior): Update.
10474 (ravenscar_inferior_created): Use "new" to create target.
10475 (ravenscar_thread_target::get_ada_task_ptid): Update.
10476 (_initialize_ravenscar): Don't initialize base_ptid.
10477 (ravenscar_ops): Remove global.
10479 2019-02-15 Tom Tromey <tromey@adacore.com>
10481 * target.h (push_target): Declare new overload.
10482 * target.c (push_target): New overload, taking an rvalue reference.
10483 * remote.c (remote_target::open_1): Use push_target overload.
10484 * corelow.c (core_target_open): Use push_target overload.
10486 2019-02-15 Tom Tromey <tromey@adacore.com>
10488 * ravenscar-thread.c (is_ravenscar_task)
10489 (ravenscar_task_is_currently_active): Return bool.
10490 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
10491 (_initialize_ravenscar): Remove "(void)".
10492 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
10495 2019-02-15 Tom Tromey <tromey@adacore.com>
10497 * ravenscar-thread.c (ravenscar_runtime_initializer)
10498 (has_ravenscar_runtime, get_running_thread_id)
10499 (ravenscar_thread_target::resume): Fix indentation.
10501 2019-02-15 Tom Tromey <tromey@adacore.com>
10503 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
10504 from ravenscar_arch_ops.
10505 (sparc_ravenscar_ops::fetch_registers)
10506 (sparc_ravenscar_ops::store_registers): Now methods.
10507 (sparc_ravenscar_prepare_to_store): Remove.
10508 (sparc_ravenscar_ops): Redefine.
10509 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
10510 methods and destructor. Remove members.
10511 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
10512 (ravenscar_thread_target::store_registers)
10513 (ravenscar_thread_target::prepare_to_store): Update.
10514 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
10516 (struct ppc_ravenscar_powerpc_ops): Derive from
10517 ravenscar_arch_ops.
10518 (ppc_ravenscar_powerpc_ops::fetch_registers)
10519 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
10520 (ppc_ravenscar_powerpc_ops): Redefine.
10521 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
10522 (ppc_ravenscar_e500_ops::fetch_registers)
10523 (ppc_ravenscar_e500_ops::store_registers): Now methods.
10524 (ppc_ravenscar_e500_ops): Redefine.
10525 * aarch64-ravenscar-thread.c
10526 (aarch64_ravenscar_generic_prepare_to_store): Remove.
10527 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
10528 (aarch64_ravenscar_fetch_registers)
10529 (aarch64_ravenscar_store_registers): Now methods.
10530 (aarch64_ravenscar_ops): Redefine.
10532 2019-02-15 Tom Tromey <tromey@adacore.com>
10534 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
10535 (ravenscar_thread_target::stopped_by_hw_breakpoint)
10536 (ravenscar_thread_target::stopped_by_watchpoint)
10537 (ravenscar_thread_target::stopped_data_address)
10538 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
10540 2019-02-15 Tom Tromey <tromey@adacore.com>
10542 * ravenscar-thread.c: Fix some typos.
10544 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10545 Tom Tromey <tromey@adacore.com>
10547 * ada-lang.c (ada_exception_sal): Change addr_string to a
10549 (create_ada_exception_catchpoint): Update.
10551 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10552 Tom Tromey <tromey@adacore.com>
10554 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
10555 (bp_location_ops): Remove.
10556 (base_breakpoint_allocate_location): Update.
10557 (free_bp_location): Update.
10558 * ada-lang.c (class ada_catchpoint_location)
10559 <ada_catchpoint_location>: Remove ops parameter.
10560 (ada_catchpoint_location_dtor): Remove.
10561 (ada_catchpoint_location_ops): Remove.
10562 (allocate_location_exception): Update.
10563 * breakpoint.h (struct bp_location_ops): Remove.
10564 (class bp_location) <bp_location>: Remove bp_location_ops
10566 <~bp_location>: Add destructor.
10569 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10570 Pedro Alves <palves@redhat.com>
10572 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
10575 2019-02-14 David Michael <fedora.dm0@gmail.com>
10576 Samuel Thibault <samuel.thibault@gnu.org>
10577 Thomas Schwinge <thomas@codesourcery.com>
10579 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
10580 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
10582 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10584 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
10585 (check_empty): Use "const char *".
10587 * gnu-nat.c (gnu_nat_target::detach): Instead of
10588 'detach_inferior (pid)' call
10589 'detach_inferior (find_inferior_pid (pid))'.
10591 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
10592 'nat/fork-inferior.o'.
10593 * gnu-nat.c: #include "nat/fork-inferior.h".
10595 * gnu-nat.c (gnu_nat_target::detach): Instead of
10596 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
10597 * gnu-nat.h: #include "inf-child.h".
10598 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
10599 'i386_gnu_nat_target::fetch_registers'.
10600 (gnu_store_registers): Rename/move to
10601 'i386_gnu_nat_target::store_registers'.
10603 * config/i386/nm-i386gnu.h: Don't "#include" any files.
10604 * gnu-nat.h (mach_thread_info): New function.
10605 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
10607 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
10609 2019-02-14 Frederic Konrad <konrad@adacore.com>
10611 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
10613 2019-02-14 Joel Brobecker <brobecker@adacore.com>
10615 * windows-nat.c (windows_add_thread): Add new parameter
10616 "main_thread_p" with default value set to false. Update
10617 function documentation as well as all callers.
10618 (windows_delete_thread): Likewise.
10619 (fake_create_process): Update call to windows_add_thread.
10620 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
10621 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
10622 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
10623 call to windows_delete_thread.
10625 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
10627 * MAINTAINERS: Add Andrew Burgess as global maintainer.
10629 2019-02-12 John Baldwin <jhb@FreeBSD.org>
10631 * symfile.c (find_separate_debug_file): Use canonical path of
10632 sysroot with child_path instead of gdb_sysroot if it is valid.
10634 2019-02-12 John Baldwin <jhb@FreeBSD.org>
10636 * symfile.c (find_separate_debug_file): Use child_path to
10637 determine if an object file is under a sysroot.
10639 2019-02-12 John Baldwin <jhb@FreeBSD.org>
10641 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10642 unittests/child-path-selftests.c.
10643 * common/pathstuff.c (child_path): New function.
10644 * common/pathstuff.h (child_path): New prototype.
10645 * unittests/child-path-selftests.c: New file.
10647 2019-02-12 John Baldwin <jhb@FreeBSD.org>
10649 * symfile.c (find_separate_debug_file): Look for separate debug
10650 files in debug directories under the sysroot.
10652 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10654 * symtab.h (struct minimal_symbol data_p): New const method.
10655 (struct minimal_symbol text_p): Likewise.
10656 * symtab.c (output_source_filename): Use file name style
10657 to print file name.
10658 (print_symbol_info): Likewise.
10659 (print_msymbol_info): Use address style to print addresses.
10660 Use function name style to print executable text symbols.
10661 (expand_symtab_containing_pc): Use data_p.
10662 (find_pc_sect_compunit_symtab): Likewise.
10664 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10666 * breakpoint.c (describe_other_breakpoints): Use address style
10667 to print addresses.
10668 (say_where): Likewise.
10670 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10672 * ada-typeprint.c (print_func_type): Print function name
10673 style to print function name.
10674 * c-typeprint.c (c_print_type_1): Likewise.
10676 2019-02-11 Alan Hayward <alan.hayward@arm.com>
10678 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
10681 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10683 * c-exp.y (direct_abs_decl): Use emplace_back to record the
10686 2019-02-10 Joel Brobecker <brobecker@adacore.com>
10688 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
10689 TYPE_CODE_REF types.
10691 2019-02-08 Jim Wilson <jimw@sifive.com>
10693 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
10694 (riscv_linux_fregset): New.
10695 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
10697 2019-02-07 Tom Tromey <tom@tromey.com>
10699 * thread.c (thread_cancel_execution_command): Update.
10700 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
10702 (struct thread_fsm_ops): Remove.
10703 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
10704 (thread_fsm_should_stop, thread_fsm_return_value)
10705 (thread_fsm_set_finished, thread_fsm_finished_p)
10706 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
10708 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
10709 * infrun.c (clear_proceed_status_thread)
10710 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
10711 (print_stop_event): Update.
10712 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
10714 (step_command_fsm_ops): Remove.
10715 (new_step_command_fsm): Remove.
10717 (step_command_fsm::should_stop): Rename from
10718 step_command_fsm_should_stop.
10719 (step_command_fsm::clean_up): Rename from
10720 step_command_fsm_clean_up.
10721 (step_command_fsm::do_async_reply_reason): Rename from
10722 step_command_fsm_async_reply_reason.
10723 (struct until_next_fsm): Inherit from thread_fsm. Add
10725 (until_next_fsm_ops): Remove.
10726 (new_until_next_fsm): Remove.
10727 (until_next_fsm::should_stop): Rename from
10728 until_next_fsm_should_stop.
10729 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
10730 (until_next_fsm::do_async_reply_reason): Rename from
10731 until_next_fsm_async_reply_reason.
10732 (struct finish_command_fsm): Inherit from thread_fsm. Add
10733 constructor. Change type of breakpoint.
10734 (finish_command_fsm_ops): Remove.
10735 (new_finish_command_fsm): Remove.
10736 (finish_command_fsm::should_stop): Rename from
10737 finish_command_fsm_should_stop.
10738 (finish_command_fsm::clean_up): Rename from
10739 finish_command_fsm_clean_up.
10740 (finish_command_fsm::return_value): Rename from
10741 finish_command_fsm_return_value.
10742 (finish_command_fsm::do_async_reply_reason): Rename from
10743 finish_command_fsm_async_reply_reason.
10744 (finish_command): Update.
10745 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
10747 (call_thread_fsm_ops): Remove.
10748 (call_thread_fsm::call_thread_fsm): Rename from
10749 new_call_thread_fsm.
10750 (call_thread_fsm::should_stop): Rename from
10751 call_thread_fsm_should_stop.
10752 (call_thread_fsm::should_notify_stop): Rename from
10753 call_thread_fsm_should_notify_stop.
10754 (run_inferior_call, call_function_by_hand_dummy): Update.
10755 * cli/cli-interp.c (should_print_stop_to_console): Update.
10756 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
10757 Add constructor. Change type of location_breakpoint,
10759 (until_break_fsm_ops): Remove.
10760 (new_until_break_fsm): Remove.
10761 (until_break_fsm::should_stop): Rename from
10762 until_break_fsm_should_stop.
10763 (until_break_fsm::clean_up): Rename from
10764 until_break_fsm_clean_up.
10765 (until_break_fsm::do_async_reply_reason): Rename from
10766 until_break_fsm_async_reply_reason.
10767 (until_break_command): Update.
10768 * thread-fsm.c: Remove.
10769 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
10771 2019-02-07 Tom Tromey <tom@tromey.com>
10773 * yy-remap.h: Add include guard.
10774 * xtensa-tdep.h: Add include guard.
10775 * xcoffread.h: Rename include guard.
10776 * varobj-iter.h: Add include guard.
10777 * tui/tui.h: Rename include guard.
10778 * tui/tui-winsource.h: Rename include guard.
10779 * tui/tui-wingeneral.h: Rename include guard.
10780 * tui/tui-windata.h: Rename include guard.
10781 * tui/tui-win.h: Rename include guard.
10782 * tui/tui-stack.h: Rename include guard.
10783 * tui/tui-source.h: Rename include guard.
10784 * tui/tui-regs.h: Rename include guard.
10785 * tui/tui-out.h: Rename include guard.
10786 * tui/tui-layout.h: Rename include guard.
10787 * tui/tui-io.h: Rename include guard.
10788 * tui/tui-hooks.h: Rename include guard.
10789 * tui/tui-file.h: Rename include guard.
10790 * tui/tui-disasm.h: Rename include guard.
10791 * tui/tui-data.h: Rename include guard.
10792 * tui/tui-command.h: Rename include guard.
10793 * tic6x-tdep.h: Add include guard.
10794 * target/waitstatus.h: Rename include guard.
10795 * target/wait.h: Rename include guard.
10796 * target/target.h: Rename include guard.
10797 * target/resume.h: Rename include guard.
10798 * target-float.h: Rename include guard.
10799 * stabsread.h: Add include guard.
10800 * rs6000-tdep.h: Add include guard.
10801 * riscv-fbsd-tdep.h: Add include guard.
10802 * regformats/regdef.h: Rename include guard.
10803 * record.h: Rename include guard.
10804 * python/python.h: Rename include guard.
10805 * python/python-internal.h: Rename include guard.
10806 * python/py-stopevent.h: Rename include guard.
10807 * python/py-ref.h: Rename include guard.
10808 * python/py-record.h: Rename include guard.
10809 * python/py-record-full.h: Rename include guard.
10810 * python/py-record-btrace.h: Rename include guard.
10811 * python/py-instruction.h: Rename include guard.
10812 * python/py-events.h: Rename include guard.
10813 * python/py-event.h: Rename include guard.
10814 * procfs.h: Add include guard.
10815 * proc-utils.h: Add include guard.
10816 * p-lang.h: Add include guard.
10817 * or1k-tdep.h: Rename include guard.
10818 * observable.h: Rename include guard.
10819 * nto-tdep.h: Rename include guard.
10820 * nat/x86-linux.h: Rename include guard.
10821 * nat/x86-linux-dregs.h: Rename include guard.
10822 * nat/x86-gcc-cpuid.h: Add include guard.
10823 * nat/x86-dregs.h: Rename include guard.
10824 * nat/x86-cpuid.h: Rename include guard.
10825 * nat/ppc-linux.h: Rename include guard.
10826 * nat/mips-linux-watch.h: Rename include guard.
10827 * nat/linux-waitpid.h: Rename include guard.
10828 * nat/linux-ptrace.h: Rename include guard.
10829 * nat/linux-procfs.h: Rename include guard.
10830 * nat/linux-osdata.h: Rename include guard.
10831 * nat/linux-nat.h: Rename include guard.
10832 * nat/linux-namespaces.h: Rename include guard.
10833 * nat/linux-btrace.h: Rename include guard.
10834 * nat/glibc_thread_db.h: Rename include guard.
10835 * nat/gdb_thread_db.h: Rename include guard.
10836 * nat/gdb_ptrace.h: Rename include guard.
10837 * nat/fork-inferior.h: Rename include guard.
10838 * nat/amd64-linux-siginfo.h: Rename include guard.
10839 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
10840 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
10841 * nat/aarch64-linux.h: Rename include guard.
10842 * nat/aarch64-linux-hw-point.h: Rename include guard.
10843 * mn10300-tdep.h: Add include guard.
10844 * mips-linux-tdep.h: Add include guard.
10845 * mi/mi-parse.h: Rename include guard.
10846 * mi/mi-out.h: Rename include guard.
10847 * mi/mi-main.h: Rename include guard.
10848 * mi/mi-interp.h: Rename include guard.
10849 * mi/mi-getopt.h: Rename include guard.
10850 * mi/mi-console.h: Rename include guard.
10851 * mi/mi-common.h: Rename include guard.
10852 * mi/mi-cmds.h: Rename include guard.
10853 * mi/mi-cmd-break.h: Rename include guard.
10854 * m2-lang.h: Add include guard.
10855 * location.h: Rename include guard.
10856 * linux-record.h: Rename include guard.
10857 * linux-nat.h: Add include guard.
10858 * linux-fork.h: Add include guard.
10859 * i386-darwin-tdep.h: Rename include guard.
10860 * hppa-linux-offsets.h: Add include guard.
10861 * guile/guile.h: Rename include guard.
10862 * guile/guile-internal.h: Rename include guard.
10863 * gnu-nat.h: Rename include guard.
10864 * gdb-stabs.h: Rename include guard.
10865 * frv-tdep.h: Add include guard.
10866 * f-lang.h: Add include guard.
10867 * event-loop.h: Add include guard.
10868 * darwin-nat.h: Rename include guard.
10869 * cp-abi.h: Rename include guard.
10870 * config/sparc/nm-sol2.h: Rename include guard.
10871 * config/nm-nto.h: Rename include guard.
10872 * config/nm-linux.h: Add include guard.
10873 * config/i386/nm-i386gnu.h: Rename include guard.
10874 * config/djgpp/nl_types.h: Rename include guard.
10875 * config/djgpp/langinfo.h: Rename include guard.
10876 * compile/gcc-cp-plugin.h: Add include guard.
10877 * compile/gcc-c-plugin.h: Add include guard.
10878 * compile/compile.h: Rename include guard.
10879 * compile/compile-object-run.h: Rename include guard.
10880 * compile/compile-object-load.h: Rename include guard.
10881 * compile/compile-internal.h: Rename include guard.
10882 * compile/compile-cplus.h: Rename include guard.
10883 * compile/compile-c.h: Rename include guard.
10884 * common/xml-utils.h: Rename include guard.
10885 * common/x86-xstate.h: Rename include guard.
10886 * common/version.h: Rename include guard.
10887 * common/vec.h: Rename include guard.
10888 * common/tdesc.h: Rename include guard.
10889 * common/selftest.h: Rename include guard.
10890 * common/scoped_restore.h: Rename include guard.
10891 * common/scoped_mmap.h: Rename include guard.
10892 * common/scoped_fd.h: Rename include guard.
10893 * common/safe-iterator.h: Rename include guard.
10894 * common/run-time-clock.h: Rename include guard.
10895 * common/refcounted-object.h: Rename include guard.
10896 * common/queue.h: Rename include guard.
10897 * common/ptid.h: Rename include guard.
10898 * common/print-utils.h: Rename include guard.
10899 * common/preprocessor.h: Rename include guard.
10900 * common/pathstuff.h: Rename include guard.
10901 * common/observable.h: Rename include guard.
10902 * common/netstuff.h: Rename include guard.
10903 * common/job-control.h: Rename include guard.
10904 * common/host-defs.h: Rename include guard.
10905 * common/gdb_wait.h: Rename include guard.
10906 * common/gdb_vecs.h: Rename include guard.
10907 * common/gdb_unlinker.h: Rename include guard.
10908 * common/gdb_unique_ptr.h: Rename include guard.
10909 * common/gdb_tilde_expand.h: Rename include guard.
10910 * common/gdb_sys_time.h: Rename include guard.
10911 * common/gdb_string_view.h: Rename include guard.
10912 * common/gdb_splay_tree.h: Rename include guard.
10913 * common/gdb_setjmp.h: Rename include guard.
10914 * common/gdb_ref_ptr.h: Rename include guard.
10915 * common/gdb_optional.h: Rename include guard.
10916 * common/gdb_locale.h: Rename include guard.
10917 * common/gdb_assert.h: Rename include guard.
10918 * common/filtered-iterator.h: Rename include guard.
10919 * common/filestuff.h: Rename include guard.
10920 * common/fileio.h: Rename include guard.
10921 * common/environ.h: Rename include guard.
10922 * common/common-utils.h: Rename include guard.
10923 * common/common-types.h: Rename include guard.
10924 * common/common-regcache.h: Rename include guard.
10925 * common/common-inferior.h: Rename include guard.
10926 * common/common-gdbthread.h: Rename include guard.
10927 * common/common-exceptions.h: Rename include guard.
10928 * common/common-defs.h: Rename include guard.
10929 * common/common-debug.h: Rename include guard.
10930 * common/cleanups.h: Rename include guard.
10931 * common/buffer.h: Rename include guard.
10932 * common/btrace-common.h: Rename include guard.
10933 * common/break-common.h: Rename include guard.
10934 * cli/cli-utils.h: Rename include guard.
10935 * cli/cli-style.h: Rename include guard.
10936 * cli/cli-setshow.h: Rename include guard.
10937 * cli/cli-script.h: Rename include guard.
10938 * cli/cli-interp.h: Rename include guard.
10939 * cli/cli-decode.h: Rename include guard.
10940 * cli/cli-cmds.h: Rename include guard.
10941 * charset-list.h: Add include guard.
10942 * buildsym-legacy.h: Rename include guard.
10943 * bfin-tdep.h: Add include guard.
10944 * ax.h: Rename include guard.
10945 * arm-linux-tdep.h: Add include guard.
10946 * arm-fbsd-tdep.h: Add include guard.
10947 * arch/xtensa.h: Rename include guard.
10948 * arch/tic6x.h: Add include guard.
10949 * arch/i386.h: Add include guard.
10950 * arch/arm.h: Rename include guard.
10951 * arch/arm-linux.h: Rename include guard.
10952 * arch/arm-get-next-pcs.h: Rename include guard.
10953 * arch/amd64.h: Add include guard.
10954 * arch/aarch64-insn.h: Rename include guard.
10955 * arch-utils.h: Rename include guard.
10956 * annotate.h: Add include guard.
10957 * amd64-darwin-tdep.h: Rename include guard.
10958 * aarch64-linux-tdep.h: Add include guard.
10959 * aarch64-fbsd-tdep.h: Add include guard.
10960 * aarch32-linux-nat.h: Add include guard.
10962 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10964 * macrotab.c (macro_define_internal): New function that
10965 factorizes macro_define_object_internal and macro_define_function
10967 (macro_define_object_internal): Use macro_define_internal.
10968 (macro_define_function): Likewise.
10970 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10972 * macrocmd.c (extract_identifier): Return
10973 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
10976 2019-02-06 John Baldwin <jhb@FreeBSD.org>
10978 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
10980 2019-02-05 Tom Tromey <tom@tromey.com>
10982 * target.c (target_stack::unpush): Move assertion earlier.
10984 2019-01-30 Tom Tromey <tom@tromey.com>
10987 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
10988 (gdbpy_parse_and_eval): Likewise.
10989 * python/python-internal.h (gdbpy_allow_threads): New class.
10991 2019-01-28 John Baldwin <jhb@FreeBSD.org>
10993 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
10994 (aarch64_fbsd_fpregmap): Move earlier.
10995 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
10996 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
10997 instead of individual calls to trad_frame_set_reg_addr.
10998 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
11000 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
11001 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
11002 instead of individual calls to trad_frame_set_reg_addr.
11004 2019-01-28 Alan Hayward <alan.hayward@arm.com>
11006 * CONTRIBUTE: Replace contribution list with wiki link.
11008 2019-01-25 Tom Tromey <tom@tromey.com>
11010 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
11012 2019-01-25 Tom Tromey <tom@tromey.com>
11014 * xtensa-linux-nat.c: Fix common/ includes.
11015 * xml-support.h: Fix common/ includes.
11016 * xml-support.c: Fix common/ includes.
11017 * x86-linux-nat.c: Fix common/ includes.
11018 * windows-nat.c: Fix common/ includes.
11019 * varobj.h: Fix common/ includes.
11020 * varobj.c: Fix common/ includes.
11021 * value.c: Fix common/ includes.
11022 * valops.c: Fix common/ includes.
11023 * utils.c: Fix common/ includes.
11024 * unittests/xml-utils-selftests.c: Fix common/ includes.
11025 * unittests/utils-selftests.c: Fix common/ includes.
11026 * unittests/unpack-selftests.c: Fix common/ includes.
11027 * unittests/tracepoint-selftests.c: Fix common/ includes.
11028 * unittests/style-selftests.c: Fix common/ includes.
11029 * unittests/string_view-selftests.c: Fix common/ includes.
11030 * unittests/scoped_restore-selftests.c: Fix common/ includes.
11031 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
11032 * unittests/scoped_fd-selftests.c: Fix common/ includes.
11033 * unittests/rsp-low-selftests.c: Fix common/ includes.
11034 * unittests/parse-connection-spec-selftests.c: Fix common/
11036 * unittests/optional-selftests.c: Fix common/ includes.
11037 * unittests/offset-type-selftests.c: Fix common/ includes.
11038 * unittests/observable-selftests.c: Fix common/ includes.
11039 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
11040 * unittests/memrange-selftests.c: Fix common/ includes.
11041 * unittests/memory-map-selftests.c: Fix common/ includes.
11042 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
11043 * unittests/function-view-selftests.c: Fix common/ includes.
11044 * unittests/environ-selftests.c: Fix common/ includes.
11045 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
11046 * unittests/common-utils-selftests.c: Fix common/ includes.
11047 * unittests/cli-utils-selftests.c: Fix common/ includes.
11048 * unittests/array-view-selftests.c: Fix common/ includes.
11049 * ui-file.c: Fix common/ includes.
11050 * tui/tui-io.c: Fix common/ includes.
11051 * tracepoint.h: Fix common/ includes.
11052 * tracepoint.c: Fix common/ includes.
11053 * tracefile-tfile.c: Fix common/ includes.
11054 * top.h: Fix common/ includes.
11055 * top.c: Fix common/ includes.
11056 * thread.c: Fix common/ includes.
11057 * target/waitstatus.h: Fix common/ includes.
11058 * target/waitstatus.c: Fix common/ includes.
11059 * target.h: Fix common/ includes.
11060 * target.c: Fix common/ includes.
11061 * target-memory.c: Fix common/ includes.
11062 * target-descriptions.c: Fix common/ includes.
11063 * symtab.h: Fix common/ includes.
11064 * symfile.c: Fix common/ includes.
11065 * stap-probe.c: Fix common/ includes.
11066 * spu-linux-nat.c: Fix common/ includes.
11067 * sparc-nat.c: Fix common/ includes.
11068 * source.c: Fix common/ includes.
11069 * solib.c: Fix common/ includes.
11070 * solib-target.c: Fix common/ includes.
11071 * ser-unix.c: Fix common/ includes.
11072 * ser-tcp.c: Fix common/ includes.
11073 * ser-pipe.c: Fix common/ includes.
11074 * ser-base.c: Fix common/ includes.
11075 * selftest-arch.c: Fix common/ includes.
11076 * s12z-tdep.c: Fix common/ includes.
11077 * rust-exp.y: Fix common/ includes.
11078 * rs6000-aix-tdep.c: Fix common/ includes.
11079 * riscv-tdep.c: Fix common/ includes.
11080 * remote.c: Fix common/ includes.
11081 * remote-notif.h: Fix common/ includes.
11082 * remote-fileio.h: Fix common/ includes.
11083 * remote-fileio.c: Fix common/ includes.
11084 * regcache.h: Fix common/ includes.
11085 * regcache.c: Fix common/ includes.
11086 * record-btrace.c: Fix common/ includes.
11087 * python/python.c: Fix common/ includes.
11088 * python/py-type.c: Fix common/ includes.
11089 * python/py-inferior.c: Fix common/ includes.
11090 * progspace.h: Fix common/ includes.
11091 * producer.c: Fix common/ includes.
11092 * procfs.c: Fix common/ includes.
11093 * proc-api.c: Fix common/ includes.
11094 * printcmd.c: Fix common/ includes.
11095 * ppc-linux-nat.c: Fix common/ includes.
11096 * parser-defs.h: Fix common/ includes.
11097 * osdata.c: Fix common/ includes.
11098 * obsd-nat.c: Fix common/ includes.
11099 * nat/x86-linux.c: Fix common/ includes.
11100 * nat/x86-linux-dregs.c: Fix common/ includes.
11101 * nat/x86-dregs.h: Fix common/ includes.
11102 * nat/x86-dregs.c: Fix common/ includes.
11103 * nat/ppc-linux.c: Fix common/ includes.
11104 * nat/mips-linux-watch.h: Fix common/ includes.
11105 * nat/mips-linux-watch.c: Fix common/ includes.
11106 * nat/linux-waitpid.c: Fix common/ includes.
11107 * nat/linux-ptrace.h: Fix common/ includes.
11108 * nat/linux-ptrace.c: Fix common/ includes.
11109 * nat/linux-procfs.c: Fix common/ includes.
11110 * nat/linux-personality.c: Fix common/ includes.
11111 * nat/linux-osdata.c: Fix common/ includes.
11112 * nat/linux-namespaces.c: Fix common/ includes.
11113 * nat/linux-btrace.h: Fix common/ includes.
11114 * nat/linux-btrace.c: Fix common/ includes.
11115 * nat/fork-inferior.c: Fix common/ includes.
11116 * nat/amd64-linux-siginfo.c: Fix common/ includes.
11117 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
11118 * nat/aarch64-linux.c: Fix common/ includes.
11119 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
11120 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
11121 * namespace.h: Fix common/ includes.
11122 * mips-linux-tdep.c: Fix common/ includes.
11123 * minsyms.c: Fix common/ includes.
11124 * mi/mi-parse.h: Fix common/ includes.
11125 * mi/mi-main.c: Fix common/ includes.
11126 * mi/mi-cmd-env.c: Fix common/ includes.
11127 * memrange.h: Fix common/ includes.
11128 * memattr.c: Fix common/ includes.
11129 * maint.h: Fix common/ includes.
11130 * maint.c: Fix common/ includes.
11131 * main.c: Fix common/ includes.
11132 * machoread.c: Fix common/ includes.
11133 * location.c: Fix common/ includes.
11134 * linux-thread-db.c: Fix common/ includes.
11135 * linux-nat.c: Fix common/ includes.
11136 * linux-fork.c: Fix common/ includes.
11137 * inline-frame.c: Fix common/ includes.
11138 * infrun.c: Fix common/ includes.
11139 * inflow.c: Fix common/ includes.
11140 * inferior.h: Fix common/ includes.
11141 * inferior.c: Fix common/ includes.
11142 * infcmd.c: Fix common/ includes.
11143 * inf-ptrace.c: Fix common/ includes.
11144 * inf-child.c: Fix common/ includes.
11145 * ia64-linux-nat.c: Fix common/ includes.
11146 * i387-tdep.c: Fix common/ includes.
11147 * i386-tdep.c: Fix common/ includes.
11148 * i386-linux-tdep.c: Fix common/ includes.
11149 * i386-linux-nat.c: Fix common/ includes.
11150 * i386-go32-tdep.c: Fix common/ includes.
11151 * i386-fbsd-tdep.c: Fix common/ includes.
11152 * i386-fbsd-nat.c: Fix common/ includes.
11153 * guile/scm-type.c: Fix common/ includes.
11154 * guile/guile.c: Fix common/ includes.
11155 * go32-nat.c: Fix common/ includes.
11156 * gnu-nat.c: Fix common/ includes.
11157 * gdbthread.h: Fix common/ includes.
11158 * gdbarch-selftests.c: Fix common/ includes.
11159 * gdb_usleep.c: Fix common/ includes.
11160 * gdb_select.h: Fix common/ includes.
11161 * gdb_bfd.c: Fix common/ includes.
11162 * gcore.c: Fix common/ includes.
11163 * fork-child.c: Fix common/ includes.
11164 * findvar.c: Fix common/ includes.
11165 * fbsd-nat.c: Fix common/ includes.
11166 * event-top.c: Fix common/ includes.
11167 * event-loop.c: Fix common/ includes.
11168 * dwarf2read.c: Fix common/ includes.
11169 * dwarf2loc.c: Fix common/ includes.
11170 * dwarf2-frame.c: Fix common/ includes.
11171 * dwarf-index-cache.c: Fix common/ includes.
11172 * dtrace-probe.c: Fix common/ includes.
11173 * disasm-selftests.c: Fix common/ includes.
11174 * defs.h: Fix common/ includes.
11175 * csky-tdep.c: Fix common/ includes.
11176 * cp-valprint.c: Fix common/ includes.
11177 * cp-support.h: Fix common/ includes.
11178 * cp-support.c: Fix common/ includes.
11179 * corelow.c: Fix common/ includes.
11180 * completer.h: Fix common/ includes.
11181 * completer.c: Fix common/ includes.
11182 * compile/compile.c: Fix common/ includes.
11183 * compile/compile-loc2c.c: Fix common/ includes.
11184 * compile/compile-cplus-types.c: Fix common/ includes.
11185 * compile/compile-cplus-symbols.c: Fix common/ includes.
11186 * command.h: Fix common/ includes.
11187 * cli/cli-dump.c: Fix common/ includes.
11188 * cli/cli-cmds.c: Fix common/ includes.
11189 * charset.c: Fix common/ includes.
11190 * build-id.c: Fix common/ includes.
11191 * btrace.h: Fix common/ includes.
11192 * btrace.c: Fix common/ includes.
11193 * breakpoint.h: Fix common/ includes.
11194 * breakpoint.c: Fix common/ includes.
11196 (enum agent_op): Fix common/ includes.
11197 * ax-general.c (struct aop_map): Fix common/ includes.
11198 * ax-gdb.c: Fix common/ includes.
11199 * auxv.c: Fix common/ includes.
11200 * auto-load.c: Fix common/ includes.
11201 * arm-tdep.c: Fix common/ includes.
11202 * arch/riscv.c: Fix common/ includes.
11203 * arch/ppc-linux-common.c: Fix common/ includes.
11204 * arch/i386.c: Fix common/ includes.
11205 * arch/arm.c: Fix common/ includes.
11206 * arch/arm-linux.c: Fix common/ includes.
11207 * arch/arm-get-next-pcs.c: Fix common/ includes.
11208 * arch/amd64.c: Fix common/ includes.
11209 * arch/aarch64.c: Fix common/ includes.
11210 * arch/aarch64-insn.c: Fix common/ includes.
11211 * arch-utils.c: Fix common/ includes.
11212 * amd64-windows-tdep.c: Fix common/ includes.
11213 * amd64-tdep.c: Fix common/ includes.
11214 * amd64-sol2-tdep.c: Fix common/ includes.
11215 * amd64-obsd-tdep.c: Fix common/ includes.
11216 * amd64-nbsd-tdep.c: Fix common/ includes.
11217 * amd64-linux-tdep.c: Fix common/ includes.
11218 * amd64-linux-nat.c: Fix common/ includes.
11219 * amd64-fbsd-tdep.c: Fix common/ includes.
11220 * amd64-fbsd-nat.c: Fix common/ includes.
11221 * amd64-dicos-tdep.c: Fix common/ includes.
11222 * amd64-darwin-tdep.c: Fix common/ includes.
11223 * agent.c: Fix common/ includes.
11224 * ada-lang.h: Fix common/ includes.
11225 * ada-lang.c: Fix common/ includes.
11226 * aarch64-tdep.c: Fix common/ includes.
11228 2019-01-25 Tom Tromey <tom@tromey.com>
11230 * common/create-version.sh: Use common/version.h.
11232 2019-01-24 Pedro Alves <palves@redhat.com>
11234 * infrun.c (signal_stop, signal_print, signal_program)
11235 (signal_catch, signal_pass): Now arrays instead of pointers.
11236 (update_signals_program_target, do_target_resume)
11237 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
11238 * linux-nat.c (linux_nat_target::pass_signals)
11239 (linux_nat_target::create_inferior, linux_nat_target::attach):
11241 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
11242 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
11243 * procfs.c (procfs_target::pass_signals): Adjust.
11244 * record-full.c (record_full_target::resume): Adjust.
11245 * remote.c (remote_target::pass_signals)
11246 (remote_target::program_signals): Adjust.
11247 * target-debug.h (target_debug_print_signals): Now takes a
11248 gdb::array_view as parameter. Adjust.
11249 * target.h (target_ops) <pass_signals, program_signals>: Replace
11250 pointer and length parameters with gdb::array_view.
11251 (target_pass_signals, target_program_signals): Likewise.
11252 * target-delegates.c: Regenerate.
11254 2019-01-24 Pedro Alves <palves@redhat.com>
11256 * common/forward-scope-exit.h
11257 (forward_scope_exit::forward_scope_exit): Pass arguments to
11258 m_bind_function directly, instead of creating a std::bind and
11261 2019-01-24 Alan Hayward <alan.hayward@arm.com>
11263 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
11264 for static members.
11265 (pass_in_v_vfp_candidate): Likewise.
11267 2019-01-23 Tom Tromey <tom@tromey.com>
11268 Pedro Alves <palves@redhat.com>
11270 * regcache.c (class regcache_invalidator): Remove.
11271 (regcache::raw_write): Use make_scope_exit.
11273 2019-01-23 Tom Tromey <tom@tromey.com>
11275 * ui-out.h (class ui_out_emit_type): Update comment.
11277 2019-01-23 Tom Tromey <tom@tromey.com>
11279 * infrun.c (fetch_inferior_event): Update comment.
11281 2019-01-23 Tom Tromey <tom@tromey.com>
11282 Pedro Alves <palves@redhat.com>
11284 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
11286 (fetch_inferior_event): Use SCOPE_EXIT.
11289 2019-01-23 Tom Tromey <tom@tromey.com>
11290 Pedro Alves <palves@redhat.com>
11292 * infrun.c (disable_thread_events): Delete.
11293 (stop_all_threads): Use SCOPE_EXIT.
11295 2019-01-23 Tom Tromey <tom@tromey.com>
11296 Pedro Alves <palves@redhat.com>
11298 * symfile.c: Include forward-scope-exit.h.
11299 (clear_symtab_users_cleanup): Replace forward declaration with
11300 a FORWARD_SCOPE_EXIT.
11301 (syms_from_objfile_1): Use the forward_scope_exit and
11302 gdb::optional instead of cleanup_function.
11303 (reread_symbols): Use the forward_scope_exit instead of
11305 (clear_symtab_users_cleanup): Remove function.
11307 2019-01-23 Tom Tromey <tom@tromey.com>
11308 Pedro Alves <palves@redhat.com>
11310 * linux-nat.c: Include scope-exit.h.
11311 (cleanup_target_stop): Remove.
11312 (linux_nat_target::static_tracepoint_markers_by_strid): Use
11315 2019-01-23 Tom Tromey <tom@tromey.com>
11316 Pedro Alves <palves@redhat.com>
11318 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
11319 (call_function_by_hand_dummy): Use SCOPE_EXIT.
11321 2019-01-23 Tom Tromey <tom@tromey.com>
11322 Andrew Burgess <andrew.burgess@embecosm.com>
11323 Pedro Alves <palves@redhat.com>
11325 * infrun.c (fetch_inferior_event): Use scope_exit.
11326 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
11327 * top.c (execute_command): Use scope_exit.
11328 * breakpoint.c (bpstat_do_actions): Use scope_exit.
11329 * utils.c (do_bpstat_clear_actions_cleanup)
11330 (make_bpstat_clear_actions_cleanup): Remove.
11332 2019-01-23 Tom Tromey <tom@tromey.com>
11333 Pedro Alves <palves@redhat.com>
11335 * infrun.c: Include "common/scope-exit.h"
11336 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
11337 (wait_for_inferior): Use SCOPE_EXIT.
11338 (fetch_inferior_event): Use scope_exit.
11340 2019-01-23 Tom Tromey <tom@tromey.com>
11341 Pedro Alves <palves@redhat.com>
11343 * breakpoint.c (create_breakpoint): Remove cleanup.
11345 2019-01-23 Tom Tromey <tom@tromey.com>
11346 Andrew Burgess <andrew.burgess@embecosm.com>
11347 Pedro Alves <palves@redhat.com>
11349 2019-01-23 Pedro Alves <palves@redhat.com>
11351 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
11353 2019-01-23 Pedro Alves <palves@redhat.com>
11354 Andrew Burgess <andrew.burgess@embecosm.com>
11356 * gdbthread.h: Include "common/forward-scope-exit.h".
11357 (scoped_finish_thread_state): Redefine custom class in terms of
11358 forward_scope_exit.
11360 2019-01-23 Pedro Alves <palves@redhat.com>
11361 Andrew Burgess <andrew.burgess@embecosm.com>
11363 * common/forward-scope-exit.h: New file.
11365 2019-01-23 Pedro Alves <palves@redhat.com>
11366 Andrew Burgess <andrew.burgess@embecosm.com>
11367 Tom Tromey <tom@tromey.com>
11369 * common/scope-exit.h: New file.
11371 2019-01-23 Pedro Alves <palves@redhat.com>
11373 * common/preprocessor.h (ESC): Rename to ...
11374 (ESC_PARENS): ... this.
11375 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
11376 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
11378 2019-01-23 Tom Tromey <tom@tromey.com>
11380 * language.h (class scoped_switch_to_sym_language_if_auto):
11381 Initialize m_lang in both cases.
11383 2019-01-23 Alan Hayward <alan.hayward@arm.com>
11385 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
11388 2019-01-22 Tom Tromey <tom@tromey.com>
11390 * corelow.c: Do not include sys/file.h.
11392 2019-01-22 Tom Tromey <tom@tromey.com>
11394 * tui/tui-wingeneral.h: Include gdb_curses.h.
11396 2019-01-22 Tom Tromey <tom@tromey.com>
11398 * source-cache.h (class source_cache) <get_source_lines,
11399 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
11401 2019-01-22 Tom Tromey <tom@tromey.com>
11403 * remote-fileio.h (struct remote_target): Declare.
11405 2019-01-22 Tom Tromey <tom@tromey.com>
11407 * python/py-arch.c: Do not include py-ref.h.
11408 * python/py-bpevent.c: Do not include py-ref.h.
11409 * python/py-cmd.c: Do not include py-ref.h.
11410 * python/py-continueevent.c: Do not include py-ref.h.
11411 * python/py-event.h: Do not include py-ref.h.
11412 * python/py-evtregistry.c: Do not include py-ref.h.
11413 * python/py-finishbreakpoint.c: Do not include py-ref.h.
11414 * python/py-frame.c: Do not include py-ref.h.
11415 * python/py-framefilter.c: Do not include py-ref.h.
11416 * python/py-function.c: Do not include py-ref.h.
11417 * python/py-infevents.c: Do not include py-ref.h.
11418 * python/py-linetable.c: Do not include py-ref.h.
11419 * python/py-objfile.c: Do not include py-ref.h.
11420 * python/py-param.c: Do not include py-ref.h.
11421 * python/py-prettyprint.c: Do not include py-ref.h.
11422 * python/py-progspace.c: Do not include py-ref.h.
11423 * python/py-symbol.c: Do not include py-ref.h.
11424 * python/py-symtab.c: Do not include py-ref.h.
11425 * python/py-type.c: Do not include py-ref.h.
11426 * python/py-unwind.c: Do not include py-ref.h.
11427 * python/py-utils.c: Do not include py-ref.h.
11428 * python/py-value.c: Do not include py-ref.h.
11429 * python/py-varobj.c: Do not include py-ref.h.
11430 * python/py-xmethods.c: Do not include py-ref.h.
11431 * python/python.c: Do not include py-ref.h.
11432 * varobj.c: Do not include py-ref.h.
11434 2019-01-22 Tom Tromey <tom@tromey.com>
11436 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
11437 keyword for bcache.
11439 2019-01-22 Tom Tromey <tom@tromey.com>
11441 * compile/compile-cplus-types.c: Remove a comment by #include.
11443 2019-01-22 Tom Tromey <tom@tromey.com>
11445 * compile/gcc-c-plugin.h: Include compile-internal.h.
11447 2019-01-22 Tom Tromey <tom@tromey.com>
11449 * stabsread.c (EXTERN): Do not define.
11450 (symnum, next_symbol_text_func, processing_gcc_compilation)
11451 (within_function, global_sym_chain, global_stabs)
11452 (previous_stab_code, this_object_header_files)
11453 (n_this_object_header_files)
11454 (n_allocated_this_object_header_files): Define.
11455 * stabsread.h (EXTERN): Never define. Use "extern".
11457 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11459 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
11462 2019-01-21 Tom Tromey <tom@tromey.com>
11464 * ui-out.c: Fix includes.
11465 * tui/tui-source.c: Fix includes.
11466 * target.c: Fix includes.
11467 * remote.c: Fix includes.
11468 * regcache.c: Fix includes.
11469 * python/py-block.c: Fix includes.
11470 * printcmd.c: Fix includes.
11471 * or1k-tdep.c: Fix includes.
11472 * mi/mi-main.c: Fix includes.
11473 * m32r-tdep.c: Fix includes.
11474 * csky-tdep.c: Fix includes.
11475 * compile/compile-cplus-types.c: Fix includes.
11476 * cli/cli-interp.c: Fix includes.
11478 2019-01-21 Alan Hayward <alan.hayward@arm.com>
11480 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
11483 2019-01-16 Tom Tromey <tom@tromey.com>
11485 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
11487 (struct objfile) <msymbols_range>: Move from top level.
11488 <msymbols>: New method.
11489 (class objfile_msymbols): Remove.
11490 * symtab.c (default_collect_symbol_completion_matches_break_on):
11492 * symmisc.c (dump_msymbols): Update.
11493 * stabsread.c (scan_file_globals): Update.
11494 * objc-lang.c (info_selectors_command, info_classes_command)
11495 (find_methods): Update.
11496 * minsyms.c (find_solib_trampoline_target): Update.
11497 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
11498 * coffread.c (coff_symfile_read): Update.
11499 * ada-lang.c (ada_lookup_simple_minsym)
11500 (ada_collect_symbol_completion_matches): Update.
11502 2019-01-16 Tom Tromey <tom@tromey.com>
11504 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
11505 type. Remove no-argument constructor.
11506 <iterator::operator++>: Simplify.
11508 <end>: Use minimal_symbol_count.
11510 2019-01-16 Tom Tromey <tom@tromey.com>
11512 * objfiles.h (struct objfile) <psymtabs>: New method.
11513 (class objfile_psymtabs): Remove.
11514 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
11516 <range>: New method.
11517 (require_partial_symbols): Change return type.
11518 * psymtab.c (require_partial_symbols)
11519 (psym_expand_symtabs_matching): Update.
11520 * mdebugread.c (parse_partial_symbols): Update.
11521 * dbxread.c (dbx_end_psymtab): Update.
11523 2019-01-15 Tom Tromey <tom@tromey.com>
11525 * symtab.c (lookup_objfile_from_block)
11526 (lookup_symbol_in_objfile_symtabs)
11527 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
11528 (find_line_symtab, info_sources_command)
11529 (default_collect_symbol_completion_matches_break_on)
11530 (make_source_files_completion_list): Update.
11531 * symmisc.c (print_objfile_statistics, dump_objfile)
11532 (maintenance_print_symbols, maintenance_info_symtabs)
11533 (maintenance_check_symtabs, maintenance_info_line_tables):
11535 * source.c (select_source_symtab)
11536 (forget_cached_source_info_for_objfile): Update.
11537 * objfiles.h (class objfile_compunits): Remove.
11538 (struct objfile) <compunits_range>: New typedef.
11539 (compunits): New method.
11540 * objfiles.c (objfile_relocate1): Update.
11541 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11542 * maint.c (count_symtabs_and_blocks): Update.
11543 * linespec.c (iterate_over_all_matching_symtabs): Update.
11544 * cp-support.c (add_symbol_overload_list_qualified): Update.
11545 * coffread.c (coff_symtab_read): Update.
11546 * ada-lang.c (add_nonlocal_symbols)
11547 (ada_collect_symbol_completion_matches)
11548 (ada_add_global_exceptions): Update.
11550 2019-01-15 Tom Tromey <tom@tromey.com>
11552 * progspace.h (program_space) <objfiles_safe_range>: New
11554 <objfiles_safe>: New method.
11555 * objfiles.h (class all_objfiles_safe): Remove.
11556 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
11557 * jit.c (jit_inferior_exit_hook): Update.
11559 2019-01-17 Tom Tromey <tom@tromey.com>
11561 * progspace.h (program_space) <objfiles_range>: New typedef.
11562 <objfiles>: New method.
11563 <objfiles_head>: Rename from objfiles.
11564 (object_files): Update.
11565 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
11566 * guile/scm-pretty-print.c
11567 (ppscm_find_pretty_printer_from_objfiles): Update.
11568 * guile/scm-objfile.c (gdbscm_objfiles): Update.
11569 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
11571 * python/py-progspace.c (pspy_get_objfiles): Update.
11572 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
11574 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
11575 (objfpy_lookup_objfile_by_build_id): Update.
11576 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11577 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
11579 * symtab.c (iterate_over_symtabs, matching_obj_sections)
11580 (expand_symtab_containing_pc, lookup_objfile_from_block)
11581 (lookup_static_symbol, basic_lookup_transparent_type)
11582 (find_pc_sect_compunit_symtab, find_symbol_at_address)
11583 (find_line_symtab, info_sources_command)
11584 (default_collect_symbol_completion_matches_break_on)
11585 (make_source_files_completion_list, find_main_name): Update.
11586 * symmisc.c (print_symbol_bcache_statistics)
11587 (print_objfile_statistics, maintenance_print_symbols)
11588 (maintenance_print_msymbols, maintenance_print_objfiles)
11589 (maintenance_info_symtabs, maintenance_check_symtabs)
11590 (maintenance_expand_symtabs, maintenance_info_line_tables):
11592 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
11593 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
11594 (map_overlay_command, unmap_overlay_command)
11595 (simple_overlay_update, expand_symtabs_matching)
11596 (map_symbol_filenames): Update.
11597 * symfile-debug.c (set_debug_symfile): Update.
11598 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
11600 * source.c (select_source_symtab, forget_cached_source_info):
11602 * solib.c (solib_read_symbols): Update.
11603 * solib-spu.c (append_ocl_sos): Update.
11604 * psymtab.c (maintenance_print_psymbols)
11605 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
11606 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
11607 * printcmd.c (info_symbol_command): Update.
11608 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
11610 * objfiles.h (class all_objfiles): Remove.
11611 * objfiles.c (have_partial_symbols, have_full_symbols)
11612 (have_minimal_symbols, qsort_cmp, update_section_map)
11613 (shared_objfile_contains_address_p)
11614 (default_iterate_over_objfiles_in_search_order): Update.
11615 * objc-lang.c (info_selectors_command, info_classes_command)
11616 (find_methods): Update.
11617 * minsyms.c (find_solib_trampoline_target): Update.
11618 * maint.c (maintenance_info_sections)
11619 (maintenance_translate_address, count_symtabs_and_blocks):
11621 * main.c (captured_main_1): Update.
11622 * linux-thread-db.c (try_thread_db_load_from_pdir)
11623 (has_libpthread): Update.
11624 * linespec.c (iterate_over_all_matching_symtabs)
11625 (search_minsyms_for_name): Update.
11626 * jit.c (jit_find_objf_with_entry_addr): Update.
11627 * hppa-tdep.c (find_unwind_entry)
11628 (hppa_lookup_stub_minimal_symbol): Update.
11629 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
11631 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
11632 (elf_gnu_ifunc_resolve_by_got): Update.
11633 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
11634 * dwarf-index-write.c (save_gdb_index_command): Update.
11635 * cp-support.c (add_symbol_overload_list_qualified): Update.
11636 * breakpoint.c (create_overlay_event_breakpoint)
11637 (create_longjmp_master_breakpoint)
11638 (create_std_terminate_master_breakpoint)
11639 (create_exception_master_breakpoint): Update.
11640 * blockframe.c (find_pc_partial_function): Update.
11641 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
11642 (ada_collect_symbol_completion_matches)
11643 (ada_add_global_exceptions): Update.
11645 2019-01-17 Tom Tromey <tom@tromey.com>
11647 * solib-target.c (lm_info_target_p): Remove typedef. Don't
11649 (solib_target_parse_libraries): Change return type.
11650 (library_list_start_segment, library_list_start_section)
11651 (library_list_end_library, library_list_start_library); Update.
11652 (solib_target_free_library_list): Remove.
11653 (solib_target_parse_libraries): Remove cleanup. Change return
11655 (solib_target_current_sos): Update.
11657 2019-01-17 Tom Tromey <tromey@bapiya>
11659 * valprint.c: Replace "the the" with "the".
11660 * symtab.c: Replace "the the" with "the".
11661 * solib.c: Replace "the the" with "the".
11662 * solib-dsbt.c: Replace "the the" with "the".
11663 * linespec.c: Replace "the the" with "the".
11664 * dwarf2loc.h: Replace "the the" with "the".
11665 * amd64-windows-tdep.c: Replace "the the" with "the".
11666 * aarch64-tdep.c: Replace "the the" with "the".
11668 2019-01-16 Keith Seitz <keiths@redhat.com>
11671 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
11672 <builder>: Rename to ..
11673 <m_builder>: ... this and make private.
11674 (dwarf2_cu::get_builder): New method. Change all users of
11675 `builder' to use this method.
11676 (dwarf2_start_symtab): Move to ...
11677 (dwarf2_cu::start_symtab): ... here. Update all callers
11678 (setup_type_unit_groups): Move to ...
11679 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
11681 (dwarf2_cu::reset_builder): New method.
11682 (process_full_compunit, process_full_type_unit): Use
11683 dwarf2_cu::reset_builder.
11684 (follow_die_offset): Record the ancestor CU if it is different
11685 from the followed DIE's CU.
11686 (follow_die_sig_1): Likewise.
11688 2019-01-15 Tom Tromey <tom@tromey.com>
11690 * remote.c (class remote_state) <buf>: Now a char_vector.
11691 <buf_size>: Remove.
11692 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
11694 (remote_target::getpkt_or_notif_sane_1)
11695 (remote_target::getpkt_sane)
11696 (remote_target::getpkt_or_notif_sane): Likewise.
11697 (class remote_target) <putpkt>: New overload.
11698 (remote_target::read_frame): Change type of "buf_p". Remove
11699 sizeof_p parameter.
11700 (packet_ok): New overload.
11701 (packet_check_result): New overload.
11704 2019-01-14 Tom Tromey <tom@tromey.com>
11706 * remote-notif.c (handle_notification, remote_notif_ack)
11707 (remote_notif_parse): Make "buf" const.
11708 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
11710 (remote_notif_parse, remote_notif_ack, handle_notification):
11712 * remote.c (remote_notif_stop_parse): Make "buf" const.
11713 (remote_target::remote_parse_stop_reply): Make "buf" const.
11714 (remote_notif_stop_ack): Make "buf" const.
11716 2019-01-14 Tom Tromey <tom@tromey.com>
11718 * remote.c (remote_console_output): Make parameter const.
11720 2019-01-14 Tom Tromey <tom@tromey.com>
11722 * target-debug.h (target_debug_print_signals): Constify.
11723 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
11724 * procfs.c (procfs_target::pass_signals): Update.
11725 * linux-nat.c (linux_nat_target::pass_signals): Update.
11726 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
11727 * target-delegates.c: Rebuild.
11728 * remote.c (remote_target::program_signals): Update.
11729 (remote_target::pass_signals): Update.
11730 * target.c (target_pass_signals): Constify argument.
11731 (target_program_signals): Likewise.
11732 * target.h (struct target_ops) <pass_signals, program_signals>:
11734 (target_pass_signals, target_program_signals): Constify argument.
11736 2019-01-14 Tom Tromey <tom@tromey.com>
11739 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
11741 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11743 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
11745 * rs6000-tdep.c: Include reggroups.h.
11746 (IS_V_ALIAS_PSEUDOREG): Define.
11747 (rs6000_register_name): Return names for the "vX" aliases.
11748 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
11749 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
11750 aliases. Call default_register_reggroup_p for all other
11752 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
11754 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
11755 Handle "vX" aliases.
11756 (v_alias_pseudo_register_collect): New function.
11757 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
11758 (rs6000_gdbarch_init): Initialize "vX" aliases as
11759 pseudo-registers. Restore registration of
11760 rs6000_pseudo_register_reggroup_p with
11761 set_tdesc_pseudo_register_reggroup_p.
11763 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
11765 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
11766 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
11767 set_gdbarch_num_pseudo_regs.
11769 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11771 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
11772 Remove arg prefixname, add do_set and do_show.
11773 Add member functions set_list and show_list.
11774 * cli/cli-style.c (class cli_style_option): Update accordingly.
11775 (style_set_list): Move to file scope.
11776 (style_show_list): Likewise.
11777 (set_style): Call help_list.
11778 (show_style): Call cmd_show_list.
11779 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
11780 Update to use the new macro.
11782 2019-10-12 Joel Brobecker <brobecker@adacore.com>
11784 * ada-lang.c (_initialize_ada_language): Expand the help text
11785 for the "catch exception" command.
11787 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11789 * symtab.c (matching_obj_sections): Initialize obj,
11790 declare it closer to its usage.
11792 2019-01-10 Tom Tromey <tom@tromey.com>
11794 * thread-iter.h (inf_threads_iterator): Use next_iterator.
11795 (basic_inf_threads_range): Remove.
11796 (inf_threads_range, inf_non_exited_threads_range)
11797 (safe_inf_threads_range): Use next_adapter.
11799 2019-01-10 Keith Seitz <keiths@redhat.com>
11803 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
11804 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
11806 2019-01-10 Keith Seitz <keiths@redhat.com>
11810 * dictionary.c (pending_to_vector): Remove.
11811 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
11812 Remove _1 suffix, replacing functions of the same name. Update
11814 (dict_create_hashed, dict_create_hashed_expandable)
11815 (dict_create_linear, dict_create_linear_expandable, dict_free)
11816 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
11817 Make functions static.
11819 2019-01-10 Keith Seitz <keiths@redhat.com>
11823 * dictionary.h (struct dictionary): Replace declaration with
11825 (dict_create_hashed, dict_create_hashed_expandable)
11826 (dict_create_linear, dict_create_linear_expandable)
11827 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
11828 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
11829 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
11830 taking multidictionary argument.
11831 [ALL_DICT_SYMBOLS]: Update for multidictionary.
11832 * block.h (struct block) <dict>: Change to multidictionary
11833 and rename `multidict'.
11834 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
11835 symmisc.c: Update all dictionary references to multidictionary.
11837 2019-01-10 Keith Seitz <keiths@redhat.com>
11841 * dictionary.c: Include unordered_map.
11842 (pending_to_vector): New function.
11843 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
11844 Rewrite the non-"_1" functions to take vector instead
11846 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
11847 "new" _1 versions of the same name.
11848 (multidictionary): Define.
11849 (std::hash<enum language): New definition.
11850 (collate_pending_symbols_by_language, mdict_create_hashed)
11851 (mdict_create_hashed_expandable, mdict_create_linear)
11852 (mdict_create_linear_expandable, mdict_free)
11853 (find_language_dictionary, create_new_language_dictionary)
11854 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
11855 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
11856 (mdict_size, mdict_empty): New functions.
11857 * dictionary.h (mdict_iterator): Define.
11859 2019-01-10 Pedro Alves <palves@redhat.com>
11861 * breakpoint.c (read_uploaded_action)
11862 (create_tracepoint_from_upload): Adjust to use
11863 gdb::unique_xmalloc_ptr.
11864 * ctf.c (ctf_write_uploaded_tp):
11865 (SET_ARRAY_FIELD): Use emplace_back.
11866 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
11867 * tracefile-tfile.c (tfile_write_uploaded_tp):
11868 * tracepoint.c (parse_tracepoint_definition): Adjust to use
11869 gdb::unique_xmalloc_ptr.
11870 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
11871 at_string, cond_string, cmd_strings>: Replace char pointers
11872 with gdb::unique_xmalloc_ptr.
11874 2019-01-10 Pedro Alves <palves@redhat.com>
11876 * solib-target.c (library_list_start_library): Don't xstrdup name.
11878 2019-01-10 Pedro Alves <palves@redhat.com>
11880 * mdebugread.c (parse_partial_symbols): Use
11881 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
11883 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
11885 * linux-fork.c (scoped_switch_fork_info)
11886 <~scoped_switch_fork_info>: Fix incorrect variable name.
11888 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
11890 * linux-fork.c (scoped_switch_fork_info)
11891 <scoped_switch_fork_info>: Make explicit.
11892 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
11894 2019-01-10 Tom Tromey <tom@tromey.com>
11896 * objfiles.h (objfile::reset_psymtabs): Update.
11897 * objfiles.c (objfile::objfile): Update.
11898 * psymtab.h (psymtab_storage::obstack): Update.
11899 (psymtab_storage::m_obstack): Use gdb::optional.
11900 (class psymtab_storage): Update comment. Remove objfile
11902 * psymtab.c (psymtab_storage::psymtab_storage): Update.
11904 2019-01-10 Tom Tromey <tom@tromey.com>
11906 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
11907 <free_psymtabs>: Now private.
11908 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
11909 (allocate_psymtab): Use new method.
11911 2019-01-10 Tom Tromey <tom@tromey.com>
11913 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
11914 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
11915 * mdebugread.c (parse_partial_symbols): Use
11916 allocate_dependencies.
11917 * dwarf2read.c (dwarf2_create_include_psymtab): Use
11918 allocate_dependencies.
11919 (process_psymtab_comp_unit_reader)
11920 (build_type_psymtab_dependencies): Likewise.
11921 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
11923 2019-01-10 Tom Tromey <tom@tromey.com>
11925 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
11926 PSYMBOL_SET_LANGUAGE.
11927 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
11929 2019-01-10 Tom Tromey <tom@tromey.com>
11931 * psymtab.h (psymtab_storage::obstack): New method.
11932 <m_obstack>: Rename from obstack; now private.
11933 * psymtab.c (psymtab_storage): Update.
11934 * dwarf2read.c (create_addrmap_from_index)
11935 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
11938 2019-01-10 Tom Tromey <tom@tromey.com>
11940 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
11941 * objfiles.h (objfile::reset_psymtabs): New method.
11943 2019-01-10 Tom Tromey <tom@tromey.com>
11945 * symmisc.c (print_symbol_bcache_statistics): Update.
11946 (print_objfile_statistics): Update.
11947 * symfile.c (reread_symbols): Update.
11948 * psymtab.h (class psymtab_storage): New.
11949 * psymtab.c (psymtab_storage): New constructor.
11950 (~psymtab_storage): New destructor.
11951 (require_partial_symbols): Update.
11952 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
11953 (find_pc_sect_psymtab, find_pc_sect_psymbol)
11954 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
11955 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
11956 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
11957 (start_psymtab_common, end_psymtab_common)
11958 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
11959 (allocate_psymtab): Update.
11960 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
11962 (dump_psymtab_addrmap, maintenance_print_psymbols)
11963 (maintenance_check_psymtabs): Update.
11964 (class objfile_psymtabs): Move to objfiles.h.
11965 * psympriv.h (discard_psymtab): Now inline.
11966 (psymtab_discarder::psymtab_discarder): Update.
11967 (psymtab_discarder::~psymtab_discarder): Update.
11968 (ALL_OBJFILE_PSYMTABS): Rewrite.
11969 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
11970 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
11972 <partial_symtabs>: New field.
11973 (class objfile_psymtabs): Move from psymtab.h. Update.
11974 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
11976 (objfile::~objfile): Don't destroy psymbol_cache.
11977 * mdebugread.c (parse_partial_symbols): Update.
11978 * dwarf2read.c (create_addrmap_from_index)
11979 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11980 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
11981 (add_partial_subprogram, dwarf2_ranges_read): Update.
11982 * dwarf-index-write.c (write_address_map)
11983 (write_one_signatured_type, recursively_write_psymbols)
11984 (class debug_names, class debug_names, write_psymtabs_to_index):
11987 2019-01-10 Tom Tromey <tom@tromey.com>
11989 * symtab.h (SYMBOL_SET_NAMES): Update.
11990 (symbol_set_names): Update.
11991 (MSYMBOL_SET_NAMES): Update.
11992 * symtab.c (symbol_set_names): Change argument to be an
11993 objfile_per_bfd_storage.
11994 * psymtab.c (add_psymbol_to_bcache): Update.
11995 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
11997 2019-01-10 Tom Tromey <tom@tromey.com>
11999 * symtab.c (create_demangled_names_hash): Change argument to be an
12000 objfile_per_bfd_storage.
12001 (symbol_set_names): Update.
12003 2019-01-10 Tom Tromey <tom@tromey.com>
12005 * xcoffread.c (xcoff_initial_scan): Unconditionally call
12007 * psymtab.c (init_psymbol_list): Do nothing if already called.
12008 * psympriv.h (init_psymbol_list): Add comment.
12009 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
12011 * dbxread.c (dbx_symfile_read): Unconditionally call
12014 2019-01-10 Tom Tromey <tom@tromey.com>
12016 * xcoffread.c (scan_xcoff_symtab): Update.
12017 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
12019 * mdebugread.c (parse_partial_symbols)
12020 (handle_psymbol_enumerators): Update.
12021 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
12022 * dbxread.c (read_dbx_symtab): Update.
12023 * psympriv.h (psymbol_placement): New enum.
12024 (add_psymbol_to_list): Update.
12026 2019-01-10 Tom Tromey <tom@tromey.com>
12028 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
12029 static_psymbols parameters.
12030 (scan_xcoff_symtab): Update.
12031 * psymtab.c (start_psymtab_common): Remove global_psymbols and
12032 static_psymbols parameters.
12033 * psympriv.h (start_psymtab_common): Update.
12034 * mdebugread.c (parse_partial_symbols): Update.
12035 * dwarf2read.c (create_partial_symtab): Update.
12036 * dbxread.c (read_dbx_symtab): Update.
12037 (start_psymtab): Remove global_psymbols and static_psymbols
12040 2019-01-10 Tom Tromey <tom@tromey.com>
12042 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
12043 * psymtab.c (allocate_psymtab): Add comment.
12044 * psympriv.h (allocate_psymtab): Add comment.
12045 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
12047 * dbxread.c (dbx_end_psymtab): Remove some initializations.
12049 2019-01-10 Tom Tromey <tom@tromey.com>
12051 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12053 * mipsread.c: Include mdebugread.h.
12054 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12056 * elfread.c: Include mdebugread.h.
12058 2019-01-09 Tom Tromey <tom@tromey.com>
12060 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
12061 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
12062 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
12063 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
12064 (psym_lookup_symbol, psym_find_last_source_symtab)
12065 (psym_forget_cached_source_info, psym_print_stats)
12066 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
12067 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
12068 (psym_map_matching_symbols, psym_expand_symtabs_matching)
12069 (psym_find_compunit_symtab_by_address)
12070 (maintenance_print_psymbols, maintenance_info_psymtabs)
12071 (maintenance_check_psymtabs): Use ranged for.
12072 * psymtab.h (class objfile_psymtabs): New.
12073 (require_partial_symbols): Return objfile_psymtabs.
12074 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
12076 2019-01-09 Tom Tromey <tom@tromey.com>
12078 * symfile.c (overlay_invalidate_all, find_pc_overlay)
12079 (find_pc_mapped_section, list_overlays_command)
12080 (map_overlay_command, unmap_overlay_command)
12081 (simple_overlay_update): Use all_objfiles.
12082 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
12083 * printcmd.c (info_symbol_command): Use all_objfiles.
12084 * objfiles.h (ALL_OBJSECTIONS): Remove.
12085 * maint.c (maintenance_translate_address): Use all_objfiles.
12086 * gcore.c (gcore_create_callback): Use all_objfiles.
12087 (objfile_find_memory_regions): Likewise.
12089 2019-01-09 Tom Tromey <tom@tromey.com>
12091 * symtab.c (find_line_symtab, info_sources_command)
12092 (make_source_files_completion_list): Use objfile_compunits.
12093 * source.c (select_source_symtab): Use objfile_compunits.
12094 * objfiles.h (struct objfile): Update comment.
12095 (ALL_OBJFILES): Remove.
12096 (ALL_FILETABS): Remove.
12097 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
12100 2019-01-09 Tom Tromey <tom@tromey.com>
12102 * symmisc.c (print_objfile_statistics, dump_objfile)
12103 (maintenance_print_symbols): Use compunit_filetabs.
12104 * source.c (forget_cached_source_info_for_objfile): Use
12106 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
12107 (ALL_FILETABS): Use compunit_filetabs.
12108 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
12109 * coffread.c (coff_symtab_read): Use compunit_filetabs.
12111 2019-01-09 Tom Tromey <tom@tromey.com>
12113 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
12114 (compunit_filetabs): New.
12115 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
12117 (info_sources_command, make_source_files_completion_list): Remove
12119 * symmisc.c (print_objfile_statistics, dump_objfile)
12120 (maintenance_print_symbols): Remove declaration.
12121 (maintenance_info_symtabs): Use compunit_filetabs.
12122 (maintenance_info_line_tables): Likewise.
12123 * source.c (select_source_symtab): Change local variable name.
12124 (forget_cached_source_info_for_objfile): Remove declaration.
12125 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
12126 * objfiles.c (objfile_relocate1): Remove declaration.
12127 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
12129 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
12130 * coffread.c (coff_symtab_read): Remove declaration.
12131 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
12134 2019-01-09 Tom Tromey <tom@tromey.com>
12136 * symtab.c (lookup_objfile_from_block)
12137 (find_pc_sect_compunit_symtab, search_symbols)
12138 (default_collect_symbol_completion_matches_break_on): Use
12140 * objfiles.h (ALL_COMPUNITS): Remove.
12141 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
12142 * cp-support.c (add_symbol_overload_list_qualified): Use
12144 * ada-lang.c (ada_collect_symbol_completion_matches)
12145 (ada_add_global_exceptions): Use objfile_compunits.
12147 2019-01-09 Tom Tromey <tom@tromey.com>
12149 * source.c (select_source_symtab)
12150 (forget_cached_source_info_for_objfile): Remove declaration.
12151 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
12153 * maint.c (count_symtabs_and_blocks): Remove declaration.
12154 * cp-support.c (add_symbol_overload_list_qualified): Remove
12156 * coffread.c (coff_symtab_read): Remove declaration.
12157 * symtab.c (lookup_symbol_in_objfile_symtabs)
12158 (basic_lookup_transparent_type_1): Use objfile_compunits.
12159 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
12160 (info_sources_command, search_symbols)
12161 (default_collect_symbol_completion_matches_break_on)
12162 (make_source_files_completion_list): Remove declaration.
12163 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
12164 (ada_collect_symbol_completion_matches)
12165 (ada_add_global_exceptions): Remove declaration.
12166 * linespec.c (iterate_over_all_matching_symtabs): Use
12168 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
12169 (class objfile_compunits): New.
12170 (ALL_COMPUNITS): Use objfile_compunits.
12171 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
12172 (maintenance_check_symtabs, maintenance_info_line_tables): Use
12174 * objfiles.c (objfile_relocate1): Use objfile_compunits.
12176 2019-01-09 Tom Tromey <tom@tromey.com>
12178 * symtab.c (search_symbols)
12179 (default_collect_symbol_completion_matches_break_on): Use
12181 * ada-lang.c (ada_lookup_simple_minsym)
12182 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
12183 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
12184 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
12186 * coffread.c (coff_symfile_read): Use objfile_msymbols.
12187 * symmisc.c (dump_msymbols): Use objfile_msymbols.
12188 * objc-lang.c (find_methods): Use objfile_msymbols.
12189 (info_selectors_command, info_classes_command): Likewise.
12190 * stabsread.c (scan_file_globals): Use objfile_msymbols.
12191 * objfiles.h (class objfile_msymbols): New.
12192 (ALL_OBJFILE_MSYMBOLS): Remove.
12193 (ALL_MSYMBOLS): Remove.
12195 2019-01-09 Tom Tromey <tom@tromey.com>
12197 * common/next-iterator.h (next_adapter): Add Iterator template
12199 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
12200 (class all_objfiles_safe): New.
12201 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
12202 * objfiles.c (put_objfile_before): Update comment.
12203 (add_separate_debug_objfile): Likewise.
12204 (free_all_objfiles): Use all_objfiles_safe.
12205 (objfile_purge_solibs): Likewise.
12207 2019-01-09 Tom Tromey <tom@tromey.com>
12209 * symtab.c (iterate_over_symtabs, matching_obj_sections)
12210 (expand_symtab_containing_pc, lookup_static_symbol)
12211 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
12212 (find_symbol_at_address, find_line_symtab, find_main_name): Use
12214 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
12215 * breakpoint.c (create_overlay_event_breakpoint)
12216 (create_longjmp_master_breakpoint)
12217 (create_std_terminate_master_breakpoint)
12218 (create_exception_master_breakpoint): Use all_objfiles.
12219 * linux-thread-db.c (try_thread_db_load_from_pdir)
12220 (has_libpthread): Use all_objfiles.
12221 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
12222 * linespec.c (iterate_over_all_matching_symtabs)
12223 (search_minsyms_for_name): Use all_objfiles.
12224 * maint.c (maintenance_info_sections): Use all_objfiles.
12225 * main.c (captured_main_1): Use all_objfiles.
12226 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
12227 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
12228 * guile/scm-pretty-print.c
12229 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
12230 * solib-spu.c (append_ocl_sos): Use all_objfiles.
12231 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
12232 (maintenance_print_msymbols): Use all_objfiles.
12233 * source.c (select_source_symtab): Use all_objfiles.
12234 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
12235 * symfile.c (remove_symbol_file_command)
12236 (expand_symtabs_matching, map_symbol_filenames): Use
12238 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
12240 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
12241 * objc-lang.c (find_methods): Use all_objfiles.
12242 * objfiles.c (have_partial_symbols, have_full_symbols)
12243 (have_minimal_symbols, qsort_cmp)
12244 (default_iterate_over_objfiles_in_search_order): Use
12246 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
12247 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
12248 (maintenance_check_psymtabs): Use all_objfiles.
12249 (ALL_PSYMTABS): Remove.
12250 * compile/compile-object-run.c (do_module_cleanup): Use
12252 * blockframe.c (find_pc_partial_function): Use all_objfiles.
12253 * cp-support.c (add_symbol_overload_list_qualified): Use
12255 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
12257 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
12258 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
12260 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
12261 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
12262 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
12264 * solib.c (solib_read_symbols): Use all_objfiles
12266 2019-01-09 Tom Tromey <tom@tromey.com>
12268 * probe.c (parse_probes_in_pspace): Use all_objfiles.
12269 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
12271 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
12272 * symmisc.c (print_symbol_bcache_statistics)
12273 (print_objfile_statistics, maintenance_print_objfiles)
12274 (maintenance_info_symtabs, maintenance_check_symtabs)
12275 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
12277 * source.c (forget_cached_source_info): Use all_objfiles.
12278 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
12279 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
12280 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
12281 * objfiles.c (update_section_map): Use all_objfiles.
12282 (shared_objfile_contains_address_p): Likewise.
12283 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
12284 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
12286 2019-01-09 Tom Tromey <tom@tromey.com>
12288 * common/next-iterator.h: New file.
12289 * objfiles.h (class all_objfiles): New.
12290 (struct objfile_iterator): New.
12292 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12294 * NEWS: Move the description of the changed "frame", "select-frame",
12295 and "info frame" commands to the Changed commands section.
12297 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
12299 * gdbtypes.c (check_stub_method_group): Remove handling of old
12301 * linespec.c (find_methods): Likewise.
12302 * stabsread.c (read_member_functions): Likewise.
12303 * valops.c (search_struct_method): Likewise.
12304 (value_struct_elt_for_reference): Likewise.
12305 * NEWS: Mention this change.
12307 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12309 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
12310 print_source_lines.
12311 * source.c (print_source_lines_base): Update line number check.
12312 (print_source_lines): New function.
12313 (source_lines_range::source_lines_range): New function.
12314 * source.h (class source_lines_range): New class.
12315 (print_source_lines): New declaration.
12317 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12319 * linespec.c (linespec_state_destructor): Free self->canonical_names.
12321 2019-01-08 Tom Tromey <tom@tromey.com>
12322 Simon Marchi <simon.marchi@ericsson.com>
12325 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
12326 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
12327 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
12328 * f-exp.y (DOLLAR_VARIABLE): Likewise.
12329 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
12330 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
12332 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12334 * source.c (select_source_symtab): Move header comment to
12335 declaration in source.h.
12336 (forget_cached_source_info_for_objfile): Likewise.
12337 (forget_cached_source_info): Likewise.
12338 (identify_source_line): Likewise.
12339 * source.h (identify_source_line): Move declaration from symtab.h
12340 and add comment from source.c
12341 (print_source_lines): Likewise.
12342 (forget_cached_source_info_for_objfile): Likewise.
12343 (forget_cached_source_info): Likewise.
12344 (select_source_symtab): Likewise.
12345 (enum print_source_lines_flag): Move definition from symtab.h.
12346 * symtab.h (identify_source_line): Move declaration to source.h.
12347 (print_source_lines): Likewise.
12348 (forget_cached_source_info_for_objfile): Likewise.
12349 (forget_cached_source_info): Likewise.
12350 (select_source_symtab): Likewise.
12351 (enum print_source_lines_flag): Move definition to source.h.
12352 * tui/tui-hooks.c: Add 'source.h' include.
12354 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12356 * source.c (print_source_lines_base): Handle requests to print
12357 reverse line number sequences, and guard against empty lines
12360 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12362 * source.c (print_source_lines_base): Fix skip of '\r' if next
12365 2019-01-06 Tom Tromey <tom@tromey.com>
12367 * c-exp.y (struct c_parse_state) <macro_original_text,
12368 expansion_obstack>: New member.
12369 (macro_original_text, expansion_obstack): Remove globals.
12370 (scan_macro_expansion, scanning_macro_expansion)
12371 (finished_macro_expansion): Update.
12372 (scan_macro_cleanup): Remove.
12373 (yylex, c_parse): Update.
12375 2019-01-06 Tom Tromey <tom@tromey.com>
12377 * c-exp.y (struct c_parse_state) <strings>: New member.
12378 (operator_stoken): Update.
12380 2019-01-06 Tom Tromey <tom@tromey.com>
12382 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
12383 (union type_stack_elt) <typelist_val>: Now a pointer to
12385 (type_stack_cleanup): Don't declare.
12386 (push_typelist): Update.
12387 * parse.c (pop_typelist): Return a std::vector.
12388 (push_typelist): Take a std::vector.
12389 (follow_types): Update. Do not free args.
12390 (type_stack_cleanup): Remove.
12391 * c-exp.y (struct c_parse_state): New.
12392 (cpstate): New global.
12393 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
12394 (nonempty_typelist): Update.
12395 (func_mod): Create a new vector.
12396 (c_parse): Create a c_parse_state.
12397 (check_parameter_typelist): Do not delete params.
12398 (function_method): Update. Do not delete type_list.
12400 2019-01-06 Tom Tromey <tom@tromey.com>
12403 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
12405 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
12406 (print_return_value): Likewise.
12408 2019-01-05 Tom Tromey <tom@tromey.com>
12410 * contrib/cleanup_check.py: Remove.
12411 * contrib/gcc-with-excheck: Remove.
12412 * contrib/exsummary.py: Remove.
12413 * contrib/excheck.py: Remove.
12415 2019-01-05 Joel Brobecker <brobecker@adacore.com>
12417 * thread.c (delete_thread_1): Add gdb_assert that THR is not
12418 NULL. Initialize tpprev to NULL instead of assigning it
12419 to NULL on the next statement.
12420 * windows-nat.c (windows_delete_thread): Remove check for
12421 main_thread_id before printing thread exit notifications.
12422 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
12423 Remove thread ID check against main_thread_id.
12424 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
12425 windows_delete_thread.
12426 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
12428 2019-01-04 Tom Tromey <tom@tromey.com>
12430 * compile/compile.c (_initialize_compile): Use upper case for
12431 metasyntactic variables.
12432 * symmisc.c (_initialize_symmisc): Use upper case for
12433 metasyntactic variables.
12434 * psymtab.c (_initialize_psymtab): Use upper case for
12435 metasyntactic variables.
12436 * demangle.c (demangle_command): Use upper case for metasyntactic
12438 (_initialize_demangler): Likewise.
12439 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
12442 2019-01-03 Tom Tromey <tom@tromey.com>
12444 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
12446 2019-01-03 Tom Tromey <tom@tromey.com>
12448 * python/py-symtab.c (salpy_str): Update.
12449 (struct salpy_sal_object) <symtab>: Now a PyObject.
12450 (salpy_dealloc): Update.
12451 (del_objfile_sal): Use gdbpy_ref.
12453 2019-01-03 Tom Tromey <tom@tromey.com>
12455 * python/py-type.c (convert_field): Use new_reference. Return
12457 (make_fielditem): Return gdbpy_ref.
12458 (typy_fields): Update.
12459 (typy_getitem): Update.
12460 (field_name): Return gdbpy_ref. Use new_reference.
12461 (typy_iterator_iternext): Update.
12463 2019-01-03 Tom Tromey <tom@tromey.com>
12465 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
12467 2019-01-03 Tom Tromey <tom@tromey.com>
12469 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
12470 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
12471 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
12472 (pspy_set_frame_filters, pspy_set_frame_unwinders)
12473 (pspy_set_type_printers): Likewise.
12474 * python/py-function.c (fnpy_init): Use gdbpy_ref.
12475 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
12476 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
12477 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
12478 (objfpy_set_type_printers): Likewise.
12480 2019-01-03 Tom Tromey <tom@tromey.com>
12482 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
12483 (gdbpy_print_stack): Use gdbpy_err_fetch.
12484 * python/python-internal.h (class gdbpy_err_fetch): New class.
12485 (class gdbpy_enter) <m_error_type, m_error_value,
12486 m_error_traceback>: Remove.
12487 <m_error>: New member.
12488 (gdbpy_exception_to_string): Don't declare.
12489 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
12490 * python/py-value.c (convert_value_from_python): Use
12492 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
12493 gdbpy_exception_to_string.
12494 (gdbpy_handle_exception): Use gdbpy_err_fetch.
12495 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
12498 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12500 * linux-nat.c (delete_lwp_cleanup): Delete.
12501 (struct lwp_deleter): New struct.
12502 (lwp_info_up): New typedef.
12503 (linux_nat_target::follow_fork): Delete cleanup, and make use of
12506 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12508 * linux-fork.c (class scoped_switch_fork_info): New class.
12509 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
12511 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12513 * valops.c (find_overload_match): Remove use of null_cleanup, and
12514 calls to do_cleanups.
12516 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12518 * compile/compile-cplus-types.c
12519 (compile_cplus_instance::decl_name): Handle changes to
12521 * cp-support.c (cp_func_name): Update header comment, update
12523 * cp-support.h (cp_func_name): Update return type in declaration.
12524 * valops.c (find_overload_match): Move temp_func local to top
12525 level of function and change its type. Use temp_func to hold and
12526 delete temporary string obtained from cp_func_name.
12528 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12530 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
12531 gdb::char_vector, remove cleanup, and update uses of `msg`.
12533 2019-01-03 Jim Wilson <jimw@sifive.com>
12535 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
12537 2019-01-02 Tom Tromey <tom@tromey.com>
12539 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
12540 (tdesc_parse_xml): Remove cleanups.
12541 * target-descriptions.h (make_cleanup_free_target_description):
12543 (target_desc_deleter): New struct.
12544 (target_desc_up): New typedef.
12545 * target-descriptions.c (target_desc_deleter::operator()): Rename
12546 from free_target_description.
12547 (make_cleanup_free_target_description): Remove.
12549 2019-01-02 Tom Tromey <tom@tromey.com>
12551 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
12552 constructor, destructor.
12553 (linespec_parser): Remove typedef.
12554 (~linespec_parser): Rename from linespec_parser_delete.
12555 (linespec_lex_to_end, linespec_complete_label)
12556 (linespec_complete): Update.
12557 (decode_line_full): Remove cleanups.
12558 (decode_line_1): Update.
12560 2019-01-02 Tom Tromey <tom@tromey.com>
12562 * python/python-internal.h (inferior_to_inferior_object): Change
12564 * python/py-exitedevent.c (create_exited_event_object): Update.
12565 * python/py-inferior.c (inferior_to_inferior_object): Return
12567 (python_new_inferior, python_inferior_deleted)
12568 (thread_to_thread_object, delete_thread_object)
12569 (build_inferior_list, gdbpy_selected_inferior): Update.
12570 * python/py-infthread.c (create_thread_object): Update. Also fail
12571 if inferior_to_inferior_object fails.
12573 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
12575 * inferior.h (class inferior) <displaced_step_state>: New field.
12576 * infrun.h (struct displaced_step_state): Move here from
12577 infrun.c. Initialize fields, add constructor.
12578 <inf>: Remove field.
12579 <reset>: New method.
12580 * infrun.c (struct displaced_step_inferior_state): Move to
12582 (displaced_step_inferior_states): Remove.
12583 (get_displaced_stepping_state): Adust.
12584 (displaced_step_in_progress_any_inferior): Adjust.
12585 (displaced_step_in_progress_thread): Adjust.
12586 (displaced_step_in_progress): Adjust.
12587 (add_displaced_stepping_state): Remove.
12588 (get_displaced_step_closure_by_addr): Adjust.
12589 (remove_displaced_stepping_state): Remove.
12590 (infrun_inferior_exit): Call displaced_step_state.reset.
12591 (use_displaced_stepping): Don't check for NULL.
12592 (displaced_step_prepare_throw): Call
12593 get_displaced_stepping_state.
12594 (displaced_step_fixup): Don't check for NULL.
12595 (prepare_for_detach): Don't check for NULL.
12597 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12599 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
12600 in case of call that did not complete.
12602 2019-01-02 Andrey Utkin <autkin@undo.io>
12604 * symfile.c (find_separate_debug_file): Fix search of debug files for
12607 2019-01-02 Tom Tromey <tom@tromey.com>
12609 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
12611 * python/py-frame.c (frapy_older): Remove cast.
12612 (frapy_newer): Likewise.
12613 * python/py-breakpoint.c (local_setattro): Remove cast.
12614 * python/py-arch.c (archpy_name): Remove local variable.
12615 * python/py-type.c (gdbpy_lookup_type): Remove cast.
12617 2019-01-02 Joel Brobecker <brobecker@adacore.com>
12619 * unittests/basic_string_view/element_access/char/empty.cc:
12620 Fix year range in copyright header.
12622 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
12624 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
12626 <operator==>: Update with for removed field.
12628 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
12629 <isa_features>: ...this.
12630 <abi_features>: New field.
12631 (riscv_isa_flen): Update comment.
12632 (riscv_abi_xlen): New declaration.
12633 (riscv_abi_flen): New declaration.
12634 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
12636 (riscv_abi_xlen): New function.
12637 (riscv_isa_flen): Update to get answer from isa_features.
12638 (riscv_abi_flen): New function.
12639 (riscv_has_fp_abi): Update to get answer from abi_features.
12640 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
12642 (riscv_call_info) <xlen, flen>: Update comment.
12643 (riscv_call_arg_struct): Remove invalid assertions
12644 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
12646 (riscv_gdbarch_init): Gather isa features and abi features
12647 separately, ensure both match on the gdbarch when reusing an old
12648 gdbarch. Relax an error check to allow 32-bit abi float to run on
12649 a target with 64-bit float hardware.
12651 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12653 * source.c (search_command_helper): Stop reverse search
12654 when line 1 has been searched.
12656 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12658 * record-full.c (record_full_base_target::close): Rewrite
12659 record_full_core_buf_list free logic.
12661 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12663 * break-catch-syscall.c (print_one_catch_syscall): xfree
12666 2019-01-01 Joel Brobecker <brobecker@adacore.com>
12668 * top.c (print_gdb_version): Update Copyright year in version
12671 2019-01-01 Joel Brobecker <brobecker@adacore.com>
12673 Update copyright year range in all GDB files.
12675 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
12677 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
12679 For older changes see ChangeLog-2018.
12685 version-control: never