1 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
4 * dwarf2read.h: Declare dwarf_always_disassemble.
6 2019-09-19 Tom de Vries <tdevries@suse.de>
9 * source-cache.c (source_cache::ensure): Catch exception thrown during
10 construction of the highlighter.
12 2019-09-18 Alan Modra <amodra@gmail.com>
14 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
15 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
16 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
17 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
18 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
19 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
20 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
21 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
22 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
23 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
24 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
25 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
26 * solib-spu.c, * solib-svr4.c, * solib-target.c,
27 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
28 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
29 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
30 * mi/mi-interp.c: Update throughout for bfd section macro and
32 * gcore (gcore_create_callback): Use bfd_set_section_lma.
33 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
35 2019-09-18 Tom Tromey <tom@tromey.com>
38 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
40 (tui_enable): Do not call rl_initialize.
42 2019-09-18 Christian Groessler <chris@groessler.org>
44 * alpha-linux-nat.c: Include gdbarch.h.
46 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
48 * ui-file.c: Include cli/cli-style.h.
49 (term_cli_styling): Remove cli_styling declaration.
51 2019-09-18 Alan Modra <amodra@gmail.com>
53 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
54 to bfd_asymbol_section.
56 2019-09-18 Alan Modra <amodra@gmail.com>
58 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
59 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
60 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
62 2019-09-18 Alan Modra <amodra@gmail.com>
64 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
65 * spu-linux-nat.c (spu_bfd_open): Likewise.
67 2019-09-18 Christian Biesinger <cbiesinger@google.com>
69 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
70 to bool to match definition in dwarf2read.c.
72 2019-09-17 Christian Biesinger <cbiesinger@google.com>
74 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
75 (print_signatures): Likewise.
76 (trust_pad_over_xvs): Likewise.
77 * arch/aarch64-insn.c (aarch64_debug): Likewise.
78 * arch/aarch64-insn.h (aarch64_debug): Likewise.
79 * arm-linux-nat.c (arm_apcs_32): Likewise.
80 * arm-linux-tdep.c (arm_apcs_32): Likewise.
81 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
82 * arm-tdep.c (arm_debug): Likewise.
83 (arm_apcs_32): Likewise.
84 * auto-load.c (debug_auto_load): Likewise.
85 (auto_load_gdb_scripts): Likewise.
86 (global_auto_load): Likewise.
87 (auto_load_local_gdbinit): Likewise.
88 (auto_load_local_gdbinit_loaded): Likewise.
89 * auto-load.h (global_auto_load): Likewise.
90 (auto_load_local_gdbinit): Likewise.
91 (auto_load_local_gdbinit_loaded): Likewise.
92 * breakpoint.c (disconnected_dprintf): Likewise.
93 (breakpoint_proceeded): Likewise.
94 (automatic_hardware_breakpoints): Likewise.
95 (always_inserted_mode): Likewise.
96 (target_exact_watchpoints): Likewise.
97 (_initialize_breakpoint): Update.
98 * breakpoint.h (target_exact_watchpoints): Change to bool.
99 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
100 * cli/cli-cmds.c (trace_commands): Likewise.
101 * cli/cli-cmds.h (trace_commands): Likewise.
102 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
104 * cli/cli-logging.c (logging_overwrite): Change to bool.
105 (logging_redirect): Likewise.
106 (debug_redirect): Likewise.
107 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
108 (struct boolean_option_def) <get_var_address_cb_>: Change return type
110 <boolean_option_def>: Update.
111 (struct flag_option_def): Change default type of Context to bool
113 <flag_option_def>: Change return type of var_address_cb_ to bool*.
114 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
115 (get_setshow_command_value_string): Likewise.
116 * cli/cli-style.c (cli_styling): Change to bool.
117 (source_styling): Likewise.
118 * cli/cli-style.h (source_styling): Likewise.
119 (cli_styling): Likewise.
120 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
122 * command.h (var_types): Update comment.
123 (add_setshow_boolean_cmd): Change int* var argument to bool*.
124 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
126 (debug_compile_cplus_scopes): Likewise.
127 * compile/compile-internal.h (compile_debug): Likewise.
128 * compile/compile.c (compile_debug): Likewise.
129 (struct compile_options) <raw>: Likewise.
130 * cp-support.c (catch_demangler_crashes): Likewise.
131 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
132 (usr_cmd_cris_dwarf2_cfi): Likewise.
133 * csky-tdep.c (csky_debug): Likewise.
134 * darwin-nat.c (enable_mach_exceptions): Likewise.
135 * dcache.c (dcache_enabled_p): Likewise.
136 * defs.h (info_verbose): Likewise.
137 * demangle.c (demangle): Likewise.
138 (asm_demangle): Likewise.
139 * dwarf-index-cache.c (debug_index_cache): Likewise.
140 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
141 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
142 * dwarf2read.c (check_physname): Likewise.
143 (use_deprecated_index_sections): Likewise.
144 (dwarf_always_disassemble): Likewise.
145 * eval.c (overload_resolution): Likewise.
146 * event-top.c (set_editing_cmd_var): Likewise.
147 (exec_done_display_p): Likewise.
148 * event-top.h (set_editing_cmd_var): Likewise.
149 (exec_done_display_p): Likewise.
150 * exec.c (write_files): Likewise.
151 * fbsd-nat.c (debug_fbsd_lwp): Likewise
152 (debug_fbsd_nat): Likewise.
153 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
155 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
156 <backtrace_past_entry> Likewise.
157 * gdb-demangle.h (demangle): Likewise.
158 (asm_demangle): Likewise.
159 * gdb_bfd.c (bfd_sharing): Likewise.
160 * gdbcore.h (write_files): Likewise.
161 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
162 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
163 * gdbthread.h (print_thread_events): Likewise.
164 * gdbtypes.c (opaque_type_resolution): Likewise.
165 (strict_type_checking): Likewise.
166 * gnu-nat.c (gnu_debug_flag): Likewise.
167 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
168 * guile/scm-param.c (pascm_variable): Add boolval.
169 (add_setshow_generic): Update.
170 (pascm_param_value): Update.
171 (pascm_set_param_value_x): Update.
172 * hppa-tdep.c (hppa_debug): Change to bool..
173 * infcall.c (may_call_functions_p): Likewise.
174 (coerce_float_to_double_p): Likewise.
175 (unwind_on_signal_p): Likewise.
176 (unwind_on_terminating_exception_p): Likewise.
177 * infcmd.c (startup_with_shell): Likewise.
178 * inferior.c (print_inferior_events): Likewise.
179 * inferior.h (startup_with_shell): Likewise.
180 (print_inferior_events): Likewise.
181 * infrun.c (step_stop_if_no_debug): Likewise.
182 (detach_fork): Likewise.
183 (debug_displaced): Likewise.
184 (disable_randomization): Likewise.
185 (non_stop): Likewise.
186 (non_stop_1): Likewise.
187 (observer_mode): Likewise.
188 (observer_mode_1): Likewise.
189 (set_observer_mode): Update.
190 (sched_multi): Change to bool.
191 * infrun.h (debug_displaced): Likewise.
192 (sched_multi): Likewise.
193 (step_stop_if_no_debug): Likewise.
194 (non_stop): Likewise.
195 (disable_randomization): Likewise.
196 * linux-tdep.c (use_coredump_filter): Likewise.
197 (dump_excluded_mappings): Likewise.
198 * linux-thread-db.c (auto_load_thread_db): Likewise.
199 (check_thread_db_on_load): Likewise.
200 * main.c (captured_main_1): Update.
201 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
202 xx2_opt, boolean_opt>: Change to bool.
203 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
204 * maint.c (maintenance_profile_p): Likewise.
205 (per_command_time): Likewise.
206 (per_command_space): Likewise.
207 (per_command_symtab): Likewise.
208 * memattr.c (inaccessible_by_default): Likewise.
209 * mi/mi-main.c (mi_async): Likewise.
210 (mi_async_1): Likewise.
211 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
212 * nat/fork-inferior.h (startup_with_shell): Likewise.
213 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
214 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
215 * nios2-tdep.c (nios2_debug): Likewise.
216 * or1k-tdep.c (or1k_debug): Likewise.
217 * parse.c (parser_debug): Likewise.
218 * parser-defs.h (parser_debug): Likewise.
219 * printcmd.c (print_symbol_filename): Likewise.
220 * proc-api.c (procfs_trace): Likewise.
221 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
222 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
223 (set_parameter_value): Update.
224 (add_setshow_generic): Update.
225 * python/py-value.c (copy_py_bool_obj): Change argument from int*
227 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
229 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
230 * record-btrace.c (record_btrace_target::store_registers): Update.
231 * record-full.c (record_full_memory_query): Change to bool.
232 (record_full_stop_at_limit): Likewise.
233 * record-full.h (record_full_memory_query): Likewise.
234 * remote-notif.c (notif_debug): Likewise.
235 * remote-notif.h (notif_debug): Likewise.
236 * remote.c (use_range_stepping): Likewise.
237 (interrupt_on_connect): Likewise.
238 (remote_break): Likewise.
239 * ser-tcp.c (tcp_auto_retry): Likewise.
240 * ser-unix.c (serial_hwflow): Likewise.
241 * skip.c (debug_skip): Likewise.
242 * solib-aix.c (solib_aix_debug): Likewise.
243 * spu-tdep.c (spu_stop_on_load_p): Likewise.
244 (spu_auto_flush_cache_p): Likewise.
245 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
247 (struct info_print_options) <quiet>: Likewise.
248 * symfile-debug.c (debug_symfile): Likewise.
249 * symfile.c (auto_solib_add): Likewise.
250 (separate_debug_file_debug): Likewise.
251 * symfile.h (auto_solib_add): Likewise.
252 (separate_debug_file_debug): Likewise.
253 * symtab.c (basenames_may_differ): Likewise.
254 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
255 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
256 (struct info_types_options) <quiet>: Likewise.
257 * symtab.h (demangle): Likewise.
258 (basenames_may_differ): Likewise.
259 * target-dcache.c (stack_cache_enabled_1): Likewise.
260 (code_cache_enabled_1): Likewise.
261 * target.c (trust_readonly): Likewise.
262 (may_write_registers): Likewise.
263 (may_write_memory): Likewise.
264 (may_insert_breakpoints): Likewise.
265 (may_insert_tracepoints): Likewise.
266 (may_insert_fast_tracepoints): Likewise.
267 (may_stop): Likewise.
268 (auto_connect_native_target): Likewise.
269 (target_stop_and_wait): Update.
270 (target_async_permitted): Change to bool.
271 (target_async_permitted_1): Likewise.
272 (may_write_registers_1): Likewise.
273 (may_write_memory_1): Likewise.
274 (may_insert_breakpoints_1): Likewise.
275 (may_insert_tracepoints_1): Likewise.
276 (may_insert_fast_tracepoints_1): Likewise.
277 (may_stop_1): Likewise.
278 * target.h (target_async_permitted): Likewise.
279 (may_write_registers): Likewise.
280 (may_write_memory): Likewise.
281 (may_insert_breakpoints): Likewise.
282 (may_insert_tracepoints): Likewise.
283 (may_insert_fast_tracepoints): Likewise.
284 (may_stop): Likewise.
285 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
286 (make_thread_apply_all_options_def_group): Change argument from int*
288 (thread_apply_all_command): Update.
289 (print_thread_events): Change to bool.
290 * top.c (confirm): Likewise.
291 (command_editing_p): Likewise.
292 (history_expansion_p): Likewise.
293 (write_history_p): Likewise.
294 (info_verbose): Likewise.
295 * top.h (confirm): Likewise.
296 (history_expansion_p): Likewise.
297 * tracepoint.c (disconnected_tracing): Likewise.
298 (circular_trace_buffer): Likewise.
299 * typeprint.c (print_methods): Likewise.
300 (print_typedefs): Likewise.
301 * utils.c (debug_timestamp): Likewise.
302 (sevenbit_strings): Likewise.
303 (pagination_enabled): Likewise.
304 * utils.h (sevenbit_strings): Likewise.
305 (pagination_enabled): Likewise.
306 * valops.c (overload_resolution): Likewise.
307 * valprint.h (struct value_print_options) <prettyformat_arrays,
308 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
309 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
310 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
312 * windows-nat.c (new_console): Likewise.
313 (cygwin_exceptions): Likewise.
314 (new_group): Likewise.
315 (debug_exec): Likewise.
316 (debug_events): Likewise.
317 (debug_memory): Likewise.
318 (debug_exceptions): Likewise.
319 (useshell): Likewise.
320 * windows-tdep.c (maint_display_all_tib): Likewise.
321 * xml-support.c (debug_xml): Likewise.
323 2019-09-17 Mike Gulick <mgulick@mathworks.com>
325 * source.c (prepare_path_for_appending): New function.
326 (openp): Make use of new function.
327 (find_and_open_source): Search for the compilation directory and
328 source file as a relative path beneath the directory search path.
330 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
332 * source-cache.c (source_cache::get_line_charpos): Catch
333 exceptions and return false, this matches the behaviour documented
336 2019-09-17 Joel Brobecker <brobecker@adacore.com>
338 * ada-tasks.c (info_task): Remove quoting of the task's name.
340 2019-09-16 Christian Biesinger <cbiesinger@google.com>
342 * symfile.c (auto_solib_add): Replace comment with a reference
345 2019-09-14 Christian Biesinger <cbiesinger@google.com>
347 * NEWS: Mention that gdb can now be compiled with Python 3
350 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
352 * maint.c (maint_print_section_data::maint_print_section_data):
353 Force use of 'float log10 (float)' by casting the argument to
356 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
358 * maint.c: Add 'cmath' include.
359 (struct maint_print_section_data): New structure.
360 (print_section_index): New function.
361 (print_bfd_section_info): Add header comment, small whitespace
362 cleanup, and update to call new print_section_index function.
363 (print_objfile_section_info): Likewise.
364 (maint_obj_section_from_bfd_section): New function.
365 (print_bfd_section_info_maybe_relocated): New function.
366 (maintenance_info_sections): Add header comment, always use
367 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
369 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
371 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
372 inner scope, add check that the objfile has psymtabs before
373 checking psymtabs_addrmap.
374 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
376 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
378 * NEWS: Announce that Ada task names are now shown at more places,
379 and between quotes (except in info task output).
380 * gdb/ada-tasks.c (task_to_str): New function.
381 (display_current_task_id): Call task_to_str.
382 (task_command_1): Likewise.
383 (print_ada_task_info): In non-mi mode, Properly align headers and data
384 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
386 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
388 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
389 prstatus.pr_lwp.pr_info instead of making it up.
391 2019-09-11 Christian Biesinger <cbiesinger@google.com>
393 * auto-load.c (auto_load_expand_dir_vars): Update.
394 * defs.h (gdb_datadir): Change to std::string.
395 (python_libdir): Likewise.
396 (relocate_gdb_directory): Change return type to std::string.
397 * guile/guile.c (gdbscm_data_directory): Update.
398 (initialize_scheme_side): Update.
399 * jit.c (jit_reader_dir): Change to std::string.
400 (jit_reader_load_command): Update.
401 * main.c (gdb_datadir): Change to std::string.
402 (python_libdir): Likewise.
403 (set_gdb_data_directory): Update.
404 (relocate_path): Change to return std::string.
405 (relocate_gdb_directory): Change to return std::string.
406 (relocate_gdbinit_path_maybe_in_datadir): Update.
407 (captured_main_1): Update.
408 * python/python.c (do_start_initialization): Update.
409 * top.c (show_gdb_datadir): Update.
410 * xml-syscall.c (xml_init_syscalls_info): Update.
411 (init_syscalls_info): Update.
413 2019-09-11 Christian Biesinger <cbiesinger@google.com>
415 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
416 out of get_init_files.
417 (get_init_files): Update.
419 2019-09-11 Christian Biesinger <cbiesinger@google.com>
421 * main.c (get_init_files): Change to use std::string.
422 (captured_main_1): Update.
423 (print_gdb_help): Update.
425 2019-09-11 Ali Tamur <tamur@google.com>
427 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
430 2019-09-11 Christian Biesinger <cbiesinger@google.com>
432 * dbxread.c (read_dbx_symtab): Update.
433 * dwarf2read.c (load_partial_dies): Update.
434 * mdebugread.c (parse_partial_symbols): Update.
435 (handle_psymbol_enumerators): Update.
436 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
437 * psymtab.c (add_psymbol_to_bcache): Likewise.
438 (add_psymbol_to_list): Likewise.
439 * symtab.c (symbol_set_names): Likewise.
440 * symtab.h (symbol_set_names): Likewise.
441 * xcoffread.c (scan_xcoff_symtab): Update.
443 2019-09-11 Tom Tromey <tom@tromey.com>
445 * symfile-mem.c (symbol_file_add_from_memory): Use
447 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
448 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
450 2019-09-10 Tom Tromey <tromey@adacore.com>
452 * dwarf-index-write.c (write_psymbols): Extend error message.
453 (debug_names::insert): Add Ada code.
454 (debug_names::write_psymbols): Remove Ada check.
455 (debug_names) <m_string_obstack>: New member.
456 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
457 (gdb_index_symbol_name_matcher::matches): Remove.
458 (mapped_index_base::find_name_components_bounds): Add "lang"
460 (mapped_index_base::build_name_components): Also split names
461 according to Ada syntax.
462 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
463 type of "match_callback".
464 (check_match, check_find_bounds_finds)
465 (dw2_expand_symtabs_matching): Update.
466 (dw2_debug_names_iterator): Add new constructor.
467 (dw2_debug_names_map_matching_symbols): New function.
468 (dw2_debug_names_expand_symtabs_matching): Update.
469 (dwarf2_debug_names_functions): Use
470 dw2_debug_names_map_matching_symbols.
472 2019-09-10 Tom Tromey <tromey@adacore.com>
474 * dwarf2read.c (dw2_get_file_names_reader): Add the
475 CU's file name to the results.
477 2019-09-10 Tom Tromey <tromey@adacore.com>
479 * ada-lang.c (add_nonlocal_symbols): Combine calls to
480 map_matching_symbols. Update.
481 * dwarf2read.c (dw2_map_matching_symbols): Update.
482 * psymtab.c (match_partial_symbol): Change type; update.
483 (psym_map_matching_symbols): Likewise.
484 * symfile-debug.c (debug_qf_map_matching_symbols): Change
486 * symfile.h (struct quick_symbol_functions)
487 <map_matching_symbols>: Change "name" to be a lookup_name_info.
490 2019-09-10 Tom Tromey <tromey@adacore.com>
492 * psymtab.c (map_block): Remove.
493 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
494 * symtab.c (iterate_over_symbols_terminated): New function.
495 * symtab.c (iterate_over_symbols_terminated): Declare.
497 2019-09-10 Tom Tromey <tromey@adacore.com>
499 * ada-lang.c (ada_iterate_over_symbols): Return bool.
500 * language.h (struct language_defn) <la_iterate_over_symbols>:
502 * symtab.c (iterate_over_symbols): Return bool.
503 * symtab.h (iterate_over_symbols): Return bool.
505 2019-09-10 Tom Tromey <tromey@adacore.com>
507 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
508 (add_nonlocal_symbols): Update.
509 * dwarf2read.c (dw2_map_matching_symbols): Change type.
510 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
511 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
512 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
513 Change type of "callback". Remove "data".
516 2019-09-09 Ali Tamur <tamur@google.com>
518 * dwarf2read.c (comp_unit_head): Update comment.
519 (dwarf2_dwo_name): New function declaration.
520 (dwarf_unit_type_name): New function declaration.
521 (read_comp_unit_head): Add support for new compilation units,
522 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
523 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
524 (currently named as "signature") in their header. Also clarify error
526 (lookup_dwo_id): New function. Returns the dwo id of the given
528 (lookup_dwo_unit): Use the new lookup_dwo_id function.
529 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
531 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
532 (dwarf2_dwo_name): Get the dwo name if present.
533 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
536 2019-09-09 Tom Tromey <tom@tromey.com>
538 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
540 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
542 * python/python.c (do_start_initialization): Make progname_copy static,
543 to avoid a leak report.
545 2019-09-08 Tom Tromey <tom@tromey.com>
547 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
549 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
551 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
552 Change type to gdb::optional<block_enum>.
553 (dw2_symtab_iter_init): Change block_index parameter type
554 to gdb::optional<block_enum>.
555 (dw2_lookup_symbol): Change block_index parameter
557 (dw2_debug_names_lookup_symbol): Likewise.
558 * psymtab.c (psym_lookup_symbol): Likewise.
559 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
560 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
563 2019-09-06 Christian Biesinger <cbiesinger@google.com>
565 * defs.h (relocate_gdb_directory): Change int to bool in
566 signature and rename flag to relocatable.
567 * main.c (relocate_path): Likewise.
568 (relocate_gdb_directory): Likewise.
570 2019-09-06 Alan Modra <amodra@gmail.com>
572 * coffread.c (coff_symfile_read): Constify filename variable.
573 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
574 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
575 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
576 * solib.c (reload_shared_libraries_1): Likewise.
577 * symfile.c (reread_symbols): Likewise.
578 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
579 * solib-darwin.c (darwin_bfd_open): Likewise.
580 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
582 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
584 * psymtab.c (print_partial_symbols): Handle missing domain_enum
585 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
587 2019-09-03 Tom Tromey <tromey@adacore.com>
589 * ada-valprint.c (ada_val_print_num): Don't recurse for range
591 (has_negatives): Unbias a range type bound.
592 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
593 * gdbtypes.c (operator==): Handle new field.
594 (create_range_type): Add "bias" parameter.
595 (create_static_range_type, resolve_dynamic_range): Update.
596 * gdbtypes.h (struct range_bounds) <bias>: New member.
597 (create_range_type): Add bias parameter.
598 * printcmd.c (print_scalar_formatted): Unbias range types.
599 * value.c (unpack_long): Unbias range types.
600 (pack_long): Bias range types.
602 2019-09-02 Alan Hayward <alan.hayward@arm.com>
604 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
607 2019-09-02 Alan Hayward <alan.hayward@arm.com>
609 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
610 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
611 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
612 (compile_probe_arg): Likewise.
613 * probe.h (get_argument_count): Likewise.
614 * solib-svr4.c (solib_event_probe_action): Likewise.
615 * stap-probe.c (stap_probe::get_argument_count): Likewise.
617 2019-09-02 Alan Hayward <alan.hayward@arm.com>
619 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
621 (svr4_create_solib_event_breakpoints): ...from here.
623 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
625 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
626 suffix from warning message.
628 2019-08-30 Tom Tromey <tom@tromey.com>
630 * tui/tui-winsource.h (struct tui_source_window_base)
631 <refresh_all>: Don't declare.
632 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
634 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
635 tui_show_locator_content.
636 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
638 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
639 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
642 2019-08-30 Tom Tromey <tom@tromey.com>
644 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
646 2019-08-30 Tom Tromey <tom@tromey.com>
648 * tui/tui-stack.c (_initialize_tui_stack): Move later.
649 Remove unnecessary forward declarations.
651 2019-08-30 Tom Tromey <tom@tromey.com>
653 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
655 (tui_update_locator_fullname, tui_show_frame_info): Don't call
656 tui_show_locator_content.
658 2019-08-30 Tom Tromey <tom@tromey.com>
660 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
661 (tui_locator_window::rerender): Rewrite using body of previous
662 tui_show_locator_content.
664 2019-08-30 Tom Tromey <tom@tromey.com>
666 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
667 set_locator_fullname>: New methods.
668 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
669 Rename from tui_set_locator_fullname.
670 (tui_locator_window::set_locator_info): Rename from
671 tui_set_locator_info. Return bool.
672 (tui_update_locator_fullname, tui_show_frame_info): Update.
674 2019-08-30 Tom Tromey <tom@tromey.com>
676 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
678 2019-08-30 Tom Tromey <tom@tromey.com>
680 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
683 2019-08-30 Tom Tromey <tom@tromey.com>
685 * tui/tui-wingeneral.c (box_win): Assume win_info and
686 win_info->handle cannot be NULL.
688 2019-08-30 Tom Tromey <tom@tromey.com>
690 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
691 refresh_window>: Declare.
692 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
694 (tui_data_item_window::rerender): Rename from
695 tui_display_register.
696 (tui_data_item_window::refresh_window): New method.
697 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
700 2019-08-30 Tom Tromey <tom@tromey.com>
702 * tui/tui-regs.h (struct tui_data_window) <regs_content,
703 regs_column_count, current_group>: Move later. Now private.
704 <get_current_group>: New method.
705 * tui/tui-regs.c (tui_reg_command): Update.
706 * tui/tui-layout.c (tui_set_layout): Update.
708 2019-08-30 Tom Tromey <tom@tromey.com>
710 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
711 (tui_data_window::rerender): Don't call
712 check_and_display_highlight_if_needed.
713 (tui_data_window::refresh_all): Remove call to
716 2019-08-30 Tom Tromey <tom@tromey.com>
718 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
719 (tui_data_window::display_registers_from)
720 (tui_data_window::display_reg_element_at_line)
721 (tui_data_window::display_registers_from_line): Remove checks of
724 2019-08-30 Tom Tromey <tom@tromey.com>
726 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
728 * tui/tui-regs.c (tui_data_window::show_registers): Call
730 (tui_data_window::rerender): Rename from display_all_data.
731 (tui_data_window::rerender): Remove old implementation.
733 2019-08-30 Tom Tromey <tom@tromey.com>
735 * tui/tui-regs.c (tui_data_window::display_all_data): Change
737 * tui/tui-data.h (NO_DATA_STRING): Remove define.
739 2019-08-29 Bernhard Wodok <barto@gmx.net>
740 Sergio Durigan Junior <sergiodj@redhat.com>
743 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
745 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
747 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
748 when searching for types.
750 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
752 * f-lang.c (f_language_defn): Use f_print_typedef.
753 * f-lang.h (f_print_typedef): Declare.
754 * f-typeprint.c (f_print_typedef): Define.
756 2019-08-27 Christian Biesinger <cbiesinger@google.com>
758 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
760 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
762 * cli/cli-utils.c (info_print_options_defs): Delete.
763 (make_info_print_options_def_group): Delete.
764 (extract_info_print_options): Delete.
765 (info_print_command_completer): Delete.
766 (info_print_args_help): Add extra parameter, and optionally
767 include text about -n flag.
768 * cli/cli-utils.h (struct info_print_options): Delete.
769 (extract_info_print_options): Delete declaration.
770 (info_print_command_completer): Delete declaration.
771 (info_print_args_help): Add extra parameter, extend header
773 * python/python.c (gdbpy_rbreak): Pass additional parameter to
775 * stack.c (struct info_print_options): New type.
776 (info_print_options_defs): New file scoped variable.
777 (make_info_print_options_def_group): New static function.
778 (info_print_command_completer): New static function.
779 (info_locals_command): Update to use new local functions.
780 (info_args_command): Likewise.
781 (_initialize_stack): Add extra parameter to calls to
782 info_print_args_help.
783 * symtab.c (search_symbols): Add extra parameter, use this to
784 possibly excluse non-debug symbols.
785 (symtab_symbol_info): Add extra parameter, which is passed on to
787 (struct info_print_options): New type.
788 (info_print_options_defs): New file scoped variable.
789 (make_info_print_options_def_group): New static function.
790 (info_print_command_completer): New static function.
791 (info_variables_command): Update to use local functions, and pass
792 extra parameter through to symtab_symbol_info.
793 (info_functions_command): Likewise.
794 (info_types_command): Pass additional argument through to
796 (rbreak_command): Pass extra argument to search_symbols.
797 (_initialize_symtab): Add extra arguments for calls to
798 info_print_args_help, and update help text for 'info variables',
799 'whereis', and 'info functions' commands.
800 * symtab.h (search_symbols): Add extra argument to declaration.
801 * NEWS: Mention new flags.
803 2019-08-26 Christian Biesinger <cbiesinger@google.com>
805 * symtab.c (lookup_static_symbol): Call the new function (and move
806 it down to be next to lookup_global_symbol).
807 (struct global_sym_lookup_data): Add block_enum member and rename to...
808 (struct global_or_static_sym_lookup_data): ...this.
809 (lookup_symbol_global_iterator_cb): Pass block_index instead of
810 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
811 (lookup_symbol_global_or_static_iterator_cb): ...this.
812 (lookup_global_or_static_symbol): New function.
813 (lookup_global_symbol): Call new function.
815 2019-08-26 Tom de Vries <tdevries@suse.de>
818 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
819 when pc_probe.prob == NULL.
821 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
823 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
824 variable symbol_linkage to symbol_linkage_.
826 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
828 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
829 represent whether the symbol is static, dynamic, or we don't
832 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
834 * gdb/rx-tdep.c (rx_register_names): New.
835 (rx_register_name): Delete.
836 (rx_psw_type): Delete.
837 (rx_fpsw_type): Delete.
838 (rx_register_type): Delete.
839 (rx_gdbarch_init): Convert target-descriptions.
840 (_initialize_rx_tdep): Add initialize_tdesc_rx.
841 * gdb/features/Makefile: Add rx.xml.
842 * gdb/features/rx.xml: New.
843 * gdb/features/rx.c: Generated.
844 * gdb/NEWS: Mention target description support.
846 2019-08-22 Christian Biesinger <cbiesinger@google.com>
848 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
851 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
853 * configure.ac: Don't check for 'dlfcn.h' (moved to
854 gdbsupport/common.m4).
855 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
857 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
858 * compile/compile-c-support.c: Include
859 'gdbsupport/gdb-dlfcn.h'.
860 * gdbsupport/common.m4: Check for 'dlfcn.h'.
861 * gdb-dlfcn.c: Move to...
862 * gdbsupport/gdb-dlfcn.c: ... here.
863 * gdb-dlfcn.h: Move to...
864 * gdbsupport/gdb-dlfcn.h: ... here.
866 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
868 * nios2-tdep.c (struct reg_value): Improve comments. Make
869 the offset field signed.
871 2019-08-22 Christian Biesinger <cbiesinger@google.com>
873 * python/lib/gdb/__init__.py (_execute_file): New function.
874 * python/python.c (python_run_simple_file): Call gdb._execute_file
877 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
879 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
880 all uses as this was never set to anything but a zero value.
882 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
884 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
886 2019-08-21 Christian Biesinger <cbiesinger@google.com>
888 * tui/tui-data.h (tui_gen_win_info): Add an =default
889 move constructor, required by some GCC versions.
891 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
893 * go32-nat.c (go32_sysinfo): Add hygon_p.
895 2019-08-20 Tom Tromey <tom@tromey.com>
897 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
898 line_from_reg_element_no, first_reg_element_no_inline,
899 display_all_data, delete_data_content_windows,
900 erase_data_content>: Now private.
902 2019-08-20 Tom Tromey <tom@tromey.com>
904 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
905 (tui_unhighlight_win, tui_highlight_win)
906 (tui_win_info::make_window): Update.
907 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
909 2019-08-20 Tom Tromey <tom@tromey.com>
911 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
912 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
913 (MAX_PID_WIDTH): Move to tui-stack.c.
914 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
915 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
916 (MAX_PID_WIDTH): Move from tui-data.h.
918 2019-08-20 Tom Tromey <tom@tromey.com>
920 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
921 * tui/tui-wingeneral.c (box_win): Change type of win_info.
923 (tui_gen_win_info::make_window): Rename from tui_make_window.
924 (tui_win_info::make_window): New method.
925 (tui_gen_win_info::make_visible): Update.
926 * tui/tui-source.c (tui_source_window::set_contents): Update.
927 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
928 (tui_data_window::display_registers_from): Update.
929 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
930 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
934 (struct tui_win_info) <make_window>: Declare.
935 <can_box>: Now virtual.
937 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
938 * tui/tui-command.c (tui_cmd_window::resize): Update.
940 2019-08-20 Tom Tromey <tom@tromey.com>
942 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
943 * tui/tui-regs.c (tui_data_window::show_registers): Update.
944 (tui_data_window::check_register_values): Update.
946 2019-08-20 Tom Tromey <tom@tromey.com>
948 * tui/tui-regs.h (struct tui_data_window): Use
949 DISABLE_COPY_AND_ASSIGN.
950 <regs_content>: Change type, removing unique_ptr.
951 <tui_data_window>: Add move constructor.
952 * tui/tui-regs.c (tui_data_window::show_registers)
953 (tui_data_window::show_register_group)
954 (tui_data_window::display_registers_from)
955 (tui_data_window::display_registers_from)
956 (tui_data_window::first_data_item_displayed)
957 (tui_data_window::delete_data_content_windows)
958 (tui_data_window::rerender, tui_data_window::refresh_window)
959 (tui_data_window::check_register_values): Update.
961 2019-08-20 Tom Tromey <tom@tromey.com>
963 * tui/tui-regs.h (struct tui_data_window) <show_registers,
964 show_register_group>: Declare.
965 (tui_show_register_group): Don't declare.
966 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
968 (tui_data_window::show_register_group): Rename from
969 tui_show_register_group.
970 (tui_data_window::check_register_values, tui_reg_command):
972 * tui/tui-layout.c (tui_set_layout): Update.
974 2019-08-20 Tom Tromey <tom@tromey.com>
976 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
978 (tui_check_register_values): Don't declare.
979 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
980 from tui_check_register_values.
981 * tui/tui-hooks.c (tui_register_changed): Update.
983 2019-08-20 Tom Tromey <tom@tromey.com>
985 * tui/tui-regs.c (tui_reg_layout): Move later.
986 (tui_show_registers): Don't enable TUI mode or change layout.
988 2019-08-20 Tom Tromey <tom@tromey.com>
990 * tui/tui-regs.h (struct tui_data_item_window)
991 <~tui_data_item_window>: Remove.
992 <content>: Now a unique_xmalloc_ptr.
993 * tui/tui-regs.c (tui_register_format): Return a
995 (tui_get_register): Update.
996 (~tui_data_item_window): Remove.
997 (tui_data_window::display_registers_from, tui_display_register):
999 * tui/tui-io.h (tui_expand_tabs): Update.
1000 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
1001 Remove "col" parameter.
1003 2019-08-20 Tom Tromey <tom@tromey.com>
1005 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
1007 * tui/tui-regs.c (~tui_data_item_window): Update.
1009 2019-08-20 Tom Tromey <tom@tromey.com>
1011 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
1014 2019-08-20 Tom Tromey <tom@tromey.com>
1016 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
1018 2019-08-20 Tom Tromey <tom@tromey.com>
1020 * tui/tui-source.h (struct tui_source_window): Update.
1021 * tui/tui-regs.c (tui_show_registers): Update.
1022 * tui/tui-disasm.h (struct tui_disasm_window): Update.
1023 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
1024 (NO_REGS_STRING): Remove defines.
1026 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
1028 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
1029 unnecessary thread walk if remote doesn't support the packet.
1031 2019-08-19 Tom Tromey <tromey@adacore.com>
1033 * python/py-value.c (value_has_field): Fix indentation.
1035 2019-08-19 Tom Tromey <tromey@adacore.com>
1037 * printcmd.c (do_one_display, info_display_command): Update.
1038 * block.h (contained_in): Return bool. Add allow_nested
1040 * block.c (contained_in): Return bool. Add allow_nested
1043 2019-08-19 Tom Tromey <tom@tromey.com>
1045 * configure: Rebuild.
1046 * configure.ac: Disallow the combination of -static-libstdc++ and
1048 * source-cache.c (get_language_name): Handle rust.
1049 (source_cache::get_source_lines): Ignore highlighting exceptions.
1051 2019-08-16 Tom Tromey <tom@tromey.com>
1053 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
1054 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
1055 (struct tui_source_window_base) <make_visible, refresh_window,
1056 resize>: Remove methods.
1057 <execution_info>: Remove field.
1058 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
1059 (tui_show_source_line, tui_source_window_base)
1060 (~tui_source_window_base): Update.
1061 (tui_source_window_base::resize)
1062 (tui_source_window_base::make_visible)
1063 (tui_source_window_base::refresh_window): Remove.
1064 (tui_source_window_base::update_exec_info): Update.
1065 * tui/tui-source.c (tui_source_window::set_contents): Update.
1066 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1068 2019-08-16 Tom Tromey <tom@tromey.com>
1070 * tui/tui-hooks.c (tui_remove_hooks): Don't set
1071 deprecated_query_hook.
1073 2019-08-16 Tom Tromey <tom@tromey.com>
1075 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
1076 (tui_update_source_windows_with_line): Update.
1077 * tui/tui-source.h (struct tui_source_window)
1078 <show_symtab_source>: Declare.
1079 (tui_show_symtab_source): Don't declare.
1080 * tui/tui-source.c (tui_show_symtab_source): Rename from
1081 tui_show_symtab_source.
1083 2019-08-16 Tom Tromey <tom@tromey.com>
1085 * tui/tui-winsource.h (struct tui_source_window_base)
1086 <set_contents>: Declare.
1087 * tui/tui-winsource.c
1088 (tui_source_window_base::update_source_window_as_is): Update.
1089 * tui/tui-source.h (struct tui_source_window) <set_contents>:
1091 (tui_set_source_content): Don't declare.
1092 * tui/tui-source.c (tui_source_window::set_contents): Rename from
1093 tui_set_source_content.
1094 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
1096 (tui_set_disassem_content): Don't declare.
1097 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
1098 tui_set_disassem_content.
1100 2019-08-16 Tom Tromey <tom@tromey.com>
1102 * tui/tui-winsource.h (struct tui_source_window_base)
1103 <update_breakpoint_info>: Declare.
1104 (tui_update_breakpoint_info): Don't declare.
1105 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
1106 (tui_update_all_breakpoint_info): Update.
1107 (tui_source_window_base::update_breakpoint_info): Rename from
1108 tui_update_breakpoint_info.
1109 (tui_source_window_base::update_exec_info): Update.
1111 2019-08-16 Tom Tromey <tom@tromey.com>
1113 * tui/tui-winsource.h (struct tui_source_window_base)
1114 <update_source_window>: Declare.
1115 (tui_update_source_window): Don't declare.
1116 * tui/tui-winsource.c
1117 (tui_source_window_base::update_source_window): Rename from
1118 tui_update_source_window.
1119 (tui_source_window_base::rerender): Update.
1120 * tui/tui-source.c (tui_source_window::maybe_update): Update.
1121 * tui/tui-disasm.c (tui_show_disassem)
1122 (tui_show_disassem_and_update_source)
1123 (tui_disasm_window::maybe_update): Update.
1125 2019-08-16 Tom Tromey <tom@tromey.com>
1127 * tui/tui-winsource.h (struct tui_source_window_base)
1128 <update_source_window_as_is>: Declare.
1129 (tui_update_source_window_as_is): Don't declare.
1130 * tui/tui-winsource.c (tui_update_source_window): Update
1131 (tui_source_window_base::update_source_window_as_is): Rename from
1132 tui_update_source_window_as_is.
1133 (tui_source_window_base::refill): Update.
1134 * tui/tui-source.c (tui_show_symtab_source): Update.
1135 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
1138 2019-08-16 Tom Tromey <tom@tromey.com>
1140 * tui/tui-winsource.h (tui_update_source_window)
1141 (tui_update_source_window_as_is): Remove "noerror" parameter.
1142 * tui/tui-winsource.c (tui_update_source_window)
1143 (tui_update_source_window_as_is): Remove "noerror" parameter.
1144 (tui_update_source_windows_with_addr)
1145 (tui_update_source_windows_with_line)
1146 (tui_source_window_base::rerender)
1147 (tui_source_window_base::refill): Update.
1148 * tui/tui-source.h (tui_set_source_content)
1149 (tui_show_symtab_source): Remove "noerror" parameter.
1150 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
1152 (tui_show_symtab_source): Likewise.
1153 (tui_source_window::maybe_update): Update.
1154 * tui/tui-disasm.c (tui_show_disassem)
1155 (tui_show_disassem_and_update_source)
1156 (tui_disasm_window::do_scroll_vertical)
1157 (tui_disasm_window::maybe_update): Update.
1159 2019-08-16 Tom Tromey <tom@tromey.com>
1161 * tui/tui.c (tui_is_window_visible): Update.
1162 * tui/tui-wingeneral.c (tui_make_window)
1163 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
1164 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
1165 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
1166 (tui_set_win_height_command, parse_scrolling_args): Update.
1167 * tui/tui-source.c (tui_source_window::style_changed): Update.
1168 * tui/tui-regs.c (tui_show_registers)
1169 (tui_data_window::first_data_item_displayed)
1170 (tui_data_window::delete_data_content_windows)
1171 (tui_check_register_values, tui_reg_command): Update.
1172 * tui/tui-disasm.c (tui_show_disassem): Update.
1173 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
1175 <is_visible>: Remove field.
1176 * tui/tui-data.c (tui_next_win, tui_prev_win)
1177 (tui_delete_invisible_windows): Update.
1179 2019-08-16 Tom Tromey <tom@tromey.com>
1181 * tui/tui-winsource.h (struct tui_source_window_base)
1182 <m_has_locator>: Remove.
1183 * tui/tui-layout.c (show_source_disasm_command, show_data)
1184 (show_source_or_disasm_and_command): Update.
1186 2019-08-16 Alan Hayward <alan.hayward@arm.com>
1188 * NEWS (Other MI changes): New subsection.
1189 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
1190 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
1191 * arch-utils.c (default_get_pc_address_flags): New function.
1192 * arch-utils.h (default_get_pc_address_flags): New declaration.
1193 * gdbarch.sh: Add get_pc_address_flags.
1194 * gdbarch.c: Regenerate.
1195 * gdbarch.h: Likewise.
1196 * stack.c (print_pc): New function.
1197 (print_frame_info) (print_frame): Call print_pc.
1199 2019-08-16 Tom de Vries <tdevries@suse.de>
1201 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
1202 print_objfile_section_info.
1204 2019-08-15 Tom Tromey <tom@tromey.com>
1206 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
1207 calling update_cmdwin_start_line.
1208 * tui/tui-winsource.h (struct tui_source_window_base)
1209 <do_make_visible_with_new_height, set_new_height>: Don't declare.
1210 <rerender>: Declare.
1211 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
1213 (tui_source_window_base::set_new_height): Remove.
1214 (tui_source_window_base::rerender): Rename from
1215 do_make_visible_with_new_height.
1216 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
1218 (tui_win_info::make_invisible_and_set_new_height)
1219 (tui_win_info::make_visible_with_new_height): Remove.
1220 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
1222 * tui/tui-stack.c (tui_locator_window::rerender): New method.
1223 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
1224 do_make_visible_with_new_height>: Don't declare.
1225 <rerender>: Declare.
1226 * tui/tui-regs.c (tui_data_window::rerender): Rename from
1228 (tui_data_window::do_make_visible_with_new_height): Remove.
1229 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
1230 call tui_show_locator_content.
1231 (tui_gen_win_info::resize): Call rerender.
1232 (show_source_or_disasm_and_command): Don't call
1233 tui_show_locator_content.
1234 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
1236 (struct tui_win_info) <rerender>: Declare.
1237 <set_new_height, make_invisible_and_set_new_height,
1238 make_visible_with_new_height>: Don't declare.
1239 * tui/tui-data.c (tui_win_list::rerender): New method.
1240 * tui/tui-command.h (struct tui_cmd_window)
1241 <do_make_visible_with_new_height>: Don't declare.
1243 (tui_cmd_window::do_make_visible_with_new_height): Remove.
1245 2019-08-15 Tom Tromey <tromey@adacore.com>
1247 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
1248 * ada-lang.c (ada_enum_name): Likewise.
1250 2019-08-15 Christian Biesinger <cbiesinger@google.com>
1252 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
1254 (GdbOutputErrorFile): Likewise.
1255 (global scope): Adjust constructor calls to GdbOutput{,Error}File
1257 (execute_unwinders): Rename to have a leading underscore.
1258 (auto_load_packages): Likewise.
1259 (global scope): Adjust call to auto_load_packages accordingly.
1260 (GdbSetPythonDirectory): Likewise.
1261 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
1262 instead of execute_unwinders.
1264 2019-08-15 Tom Tromey <tom@tromey.com>
1266 * tui/tui-layout.c (show_layout, show_source_disasm_command)
1267 (show_data): Don't change window visibility.
1268 (tui_gen_win_info::resize): Remove special case for command
1269 window. Use wresize, when available.
1270 (show_source_or_disasm_and_command): Don't change window
1272 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
1273 <make_visible>: New method.
1274 * tui/tui-command.c (tui_cmd_window::resize): New method.
1276 2019-08-15 Tom Tromey <tom@tromey.com>
1278 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
1279 (struct tui_source_windows): New.
1280 * tui/tui-winsource.c (tui_display_main): Update.
1281 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
1282 (new_height_ok, parse_scrolling_args): Update.
1283 * tui/tui-layout.c (show_layout, show_data): Update.
1284 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
1285 (tui_add_to_source_windows): Don't declare.
1286 * tui/tui-data.c (source_windows, tui_source_windows)
1287 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
1289 2019-08-15 Tom Tromey <tom@tromey.com>
1291 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
1293 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
1294 * tui/tui-layout.c (show_source_disasm_command, show_data):
1296 (tui_gen_win_info::resize): Rename.
1297 (show_source_or_disasm_and_command): Update.
1298 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
1301 2019-08-15 Tom Tromey <tom@tromey.com>
1303 * tui/tui-stack.c (tui_initialize_static_data): Remove.
1304 * tui/tui-interp.c (tui_interp::init): Don't call
1305 tui_initialize_static_data.
1306 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
1308 2019-08-15 Tom Tromey <tom@tromey.com>
1310 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
1311 examine tui_win_list.
1313 2019-08-15 Tom Tromey <tom@tromey.com>
1315 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
1316 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
1317 tui_clear_source_content.
1318 (tui_clear_source_content): Remove.
1319 (tui_source_window_base::do_erase_source_content): Hoist call to
1321 * tui/tui-stack.c (tui_show_frame_info): Don't call
1322 tui_clear_source_content.
1324 2019-08-15 Tom Tromey <tom@tromey.com>
1326 * tui/tui-winsource.h (struct tui_source_window_base)
1327 <do_erase_source_content>: New method.
1328 <erase_source_content>: New method.
1329 (tui_erase_source_content): Don't declare.
1330 * tui/tui-winsource.c (tui_clear_source_content): Update.
1331 (tui_source_window_base::do_erase_source_content): Rename from
1332 tui_erase_source_content.
1333 (tui_source_window_base::show_source_content): Update.
1334 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
1335 * tui/tui-source.h (struct tui_source_window)
1336 <erase_source_content>: New method.
1337 * tui/tui-disasm.h (struct tui_disasm_window)
1338 <erase_source_content>: New method.
1340 2019-08-15 Tom Tromey <tom@tromey.com>
1342 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
1343 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
1345 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
1346 * tui/tui-source.c (tui_set_source_content): Update.
1347 * tui/tui-disasm.c (tui_set_disassem_content): Update.
1349 2019-08-15 Tom Tromey <tom@tromey.com>
1351 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
1352 * tui/tui-winsource.c (tui_line_is_displayed): Move to
1354 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
1356 * tui/tui-source.c (tui_source_window::line_is_displayed): New
1358 (tui_source_window::maybe_update): Update.
1360 2019-08-15 Tom Tromey <tom@tromey.com>
1362 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
1363 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
1365 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
1367 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
1369 (tui_disasm_window::maybe_update): Update.
1371 2019-08-15 Tom Tromey <tom@tromey.com>
1373 * tui/tui-winsource.h (struct tui_source_window_base)
1374 <maybe_update>: Declare.
1375 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
1377 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
1379 * tui/tui-source.c (tui_source_window::maybe_update): New method.
1380 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
1382 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
1384 2019-08-15 Tom Tromey <tom@tromey.com>
1386 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
1388 2019-08-15 Tom Tromey <tom@tromey.com>
1390 * tui/tui-wingeneral.c: Include tui-stack.h.
1391 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
1392 (struct tui_locator_window): Move from tui-data.h.
1393 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
1394 (tui_initialize_static_data): Move from tui-data.c.
1395 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
1396 (struct tui_locator_window): Move to tui-stack.c.
1397 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
1398 (tui_initialize_static_data): Move to tui-stack.c.
1400 2019-08-15 Tom Tromey <tom@tromey.com>
1402 * tui/tui-layout.c (show_source_disasm_command)
1403 (show_source_or_disasm_and_command): Use make_visible method, not
1405 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
1408 2019-08-15 Tom Tromey <tom@tromey.com>
1410 * tui/tui-wingeneral.h (tui_make_window): Update.
1411 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
1413 (tui_gen_win_info::make_visible): Update.
1414 * tui/tui-regs.c (tui_data_window::display_registers_from):
1416 * tui/tui-layout.c (show_source_disasm_command)
1417 (show_source_or_disasm_and_command): Update.
1418 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
1419 (enum tui_box): Remove.
1420 (struct tui_win_info) <can_box>: New method.
1421 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
1424 2019-08-15 Tom de Vries <tdevries@suse.de>
1426 * linux-nat-trad.c: Include gdbarch.h.
1428 2019-08-14 Alan Hayward <alan.hayward@arm.com>
1430 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
1433 2019-08-14 Tom Tromey <tromey@adacore.com>
1435 * darwin-nat.c: Include gdbarch.h.
1436 * darwin-nat-info.c: Include gdbarch.h.
1438 2019-08-13 Tom Tromey <tom@tromey.com>
1440 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
1442 * tui/tui-data.c (tui_initialize_static_data): Update.
1444 2019-08-13 Tom Tromey <tom@tromey.com>
1446 * tui/tui-winsource.h (struct tui_exec_info_window)
1447 <~tui_exec_info_window, maybe_allocate_content, get_content,
1449 (struct tui_source_window_base) <set_exec_info_content,
1450 show_exec_info_content>: Don't declare.
1451 * tui/tui-winsource.c
1452 (tui_exec_info_window::maybe_allocate_content): Remove.
1453 (tui_source_window_base::update_exec_info): Rename from
1454 set_exec_info_content.
1455 (tui_source_window_base::show_exec_info_content)
1456 (tui_source_window_base::update_exec_info): Remove.
1458 2019-08-13 Tom Tromey <tom@tromey.com>
1460 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
1462 * tui/tui-winsource.c (tui_update_source_window_as_is)
1463 (tui_update_source_windows_with_addr, tui_erase_source_content):
1465 (tui_clear_exec_info_content): Remove.
1467 2019-08-13 Tom Tromey <tom@tromey.com>
1469 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
1471 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
1472 call tui_erase_exec_info_content.
1473 (tui_clear_exec_info_content): Rename from
1474 tui_erase_exec_info_content.
1475 (tui_clear_exec_info_content): Delete.
1477 2019-08-13 Tom Tromey <tom@tromey.com>
1479 * tui/tui-winsource.h (struct tui_source_window_base)
1480 <show_exec_info_content>: Declare.
1481 (tui_show_exec_info_content): Don't declare.
1482 * tui/tui-winsource.c
1483 (tui_source_window_base::show_exec_info_content): Rename from
1484 tui_show_exec_info_content.
1485 (tui_source_window_base::update_exec_info): Update.
1487 2019-08-13 Tom Tromey <tom@tromey.com>
1489 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
1490 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
1491 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
1492 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
1493 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
1494 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
1497 2019-08-13 Tom Tromey <tom@tromey.com>
1499 * tui/tui-winsource.h (struct tui_source_window_base)
1500 <update_exec_info>: Declare.
1501 (tui_update_exec_info): Don't declare.
1502 * tui/tui-winsource.c (tui_update_source_window_as_is)
1503 (tui_source_window_base::refresh_all)
1504 (tui_update_all_breakpoint_info): Update.
1505 (tui_source_window_base::update_exec_info): Rename from
1506 tui_update_exec_info.
1507 * tui/tui-stack.c (tui_show_frame_info): Update.
1509 2019-08-13 Tom Tromey <tom@tromey.com>
1511 * tui/tui-winsource.h (struct tui_source_window_base)
1512 <set_exec_info_content>: Declare.
1513 (tui_set_exec_info_content): Don't declare.
1514 * tui/tui-winsource.c
1515 (tui_source_window_base::set_exec_info_content): Rename from
1516 tui_set_exec_info_content.
1517 (tui_update_exec_info): Update.
1519 2019-08-13 Tom Tromey <tom@tromey.com>
1521 * tui/tui-winsource.h (struct tui_source_window_base)
1522 <show_source_content>: Declare.
1523 (tui_show_source_content): Don't declare.
1524 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1525 (tui_source_window_base::show_source_content): Rename from
1526 tui_show_source_content.
1527 (tui_source_window_base::refresh_all): Update.
1528 * tui/tui-layout.c (show_source_disasm_command)
1529 (show_source_or_disasm_and_command): Update.
1531 2019-08-13 Tom Tromey <tom@tromey.com>
1533 * tui/tui-winsource.c (tui_erase_source_content)
1534 (tui_show_source_content, tui_source_window_base::refresh_all):
1536 * tui/tui-wingeneral.h
1537 (tui_check_and_display_highlight_if_needed): Don't declare.
1538 * tui/tui-wingeneral.c
1539 (tui_win_info::check_and_display_highlight_if_needed): Rename from
1540 check_and_display_highlight_if_needed.
1541 * tui/tui-win.c (tui_rehighlight_all)
1542 (tui_win_info::make_visible_with_new_height): Update.
1543 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
1544 (tui_data_window::erase_data_content)
1545 (tui_data_window::display_all_data): Update.
1546 * tui/tui-data.h (struct tui_win_info)
1547 <check_and_display_highlight_if_needed>: Declare.
1549 2019-08-13 Tom Tromey <tom@tromey.com>
1551 * tui/tui-win.c (tui_resize_all): Call
1552 tui_delete_invisible_windows.
1553 * tui/tui-layout.c (show_layout): Call
1554 tui_delete_invisible_windows.
1555 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
1556 * tui/tui-data.c (tui_delete_invisible_windows): New function.
1558 2019-08-13 Tom Tromey <tom@tromey.com>
1560 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
1561 tui_add_win_to_layout.
1563 2019-08-13 Tom Tromey <tom@tromey.com>
1565 * tui/tui-layout.h (tui_default_win_height): Don't declare.
1566 * tui/tui-layout.c (tui_default_win_height): Now static.
1568 2019-08-13 Tom Tromey <tom@tromey.com>
1570 * tui/tui-layout.c (show_layout): Unify all layout cases into a
1572 (show_source_disasm_command, show_source_or_disasm_and_command):
1573 Don't check current layout.
1575 2019-08-13 Tom Tromey <tom@tromey.com>
1577 * tui/tui-wingeneral.c (make_all_visible): Remove.
1578 (tui_make_all_invisible): Simplify.
1579 * tui/tui-layout.c (tui_make_all_invisible): Move from
1580 tui-wingeneral.c; simplify.
1581 (show_layout): Hoist call to tui_make_all_invisible.
1582 (show_data): Don't call tui_make_all_invisible.
1584 2019-08-13 Tom Tromey <tom@tromey.com>
1586 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
1587 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
1589 2019-08-13 Tom Tromey <tom@tromey.com>
1591 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
1593 (show_source_disasm_command, show_data)
1594 (show_source_or_disasm_and_command): Don't use
1595 tui_set_current_layout_to.
1596 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
1597 * tui/tui-data.c (current_layout, tui_current_layout): Move to
1599 (tui_set_current_layout_to): Remove.
1601 2019-08-13 Tom Tromey <tom@tromey.com>
1603 * tui/tui-layout.c (tui_set_layout): Update.
1604 * tui/tui-data.h (struct tui_layout_def): Remove.
1605 (tui_layout_def): Don't declare.
1606 * tui/tui-data.c (layout_def): Remove.
1607 (tui_layout_def): Remove.
1609 2019-08-13 Tom Tromey <tom@tromey.com>
1611 * tui/tui-winsource.h (struct tui_source_window_base)
1612 <clear_detail>: No longer "override".
1613 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
1614 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
1615 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
1616 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
1618 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
1620 2019-08-13 Tom Tromey <tromey@adacore.com>
1622 * tracepoint.c: Don't include readline.h or history.h.
1624 2019-08-12 Tom Tromey <tom@tromey.com>
1626 * configure: Rebuild.
1627 * configure.ac: Check for readline 7.
1628 * NEWS: Mention readline 7 requirement.
1631 2019-08-12 Tom Tromey <tom@tromey.com>
1633 * mingw-hdep.c (gdb_select): Remove readline hack.
1635 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1637 * blockframe.c (find_pc_partial_function): Set *block to nullptr
1638 when the function fails.
1640 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
1642 * s390-tdep.c (s390_type_align): New function.
1643 (s390_gdbarch_init): Set it as type_align gdbarch method.
1645 2019-08-09 Tom de Vries <tdevries@suse.de>
1648 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
1649 pc_low with relocation offset.
1651 2019-08-07 Tom Tromey <tromey@adacore.com>
1653 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
1654 (print_frame_args): Update.
1655 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
1657 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1658 * frame.h (struct frame_arg): Add initializers.
1659 <error>: Now a unique_xmalloc_ptr.
1661 2019-08-07 Alan Hayward <alan.hayward@arm.com>
1663 * NEWS: Expand the Pointer Authentication entry.
1664 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
1665 (aarch64_frame_unmask_lr): ... to this.
1666 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
1667 Call aarch64_frame_unmask_lr.
1668 * frame.c (struct frame_info): Add "masked" variable.
1669 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
1670 (fprint_frame): Check for masked pc.
1671 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
1673 * python/py-framefilter.c (py_print_frame): Check for masked pc.
1674 * stack.c (print_frame): Check for masked pc.
1676 2019-08-06 Tom Tromey <tom@tromey.com>
1678 * stabsread.c (patch_block_stabs, read_one_struct_field)
1679 (read_enum_type): Use obstack_strndup.
1680 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
1681 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
1682 * dwarf2read.c (guess_full_die_structure_name)
1683 (anonymous_struct_prefix): Use obstack_strndup.
1684 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
1685 * c-exp.y (yylex): Use obstack_strndup.
1686 * ada-exp.y (write_object_renaming, write_ambiguous_var)
1687 (write_var_or_type): Use obstack_strndup.
1689 2019-08-06 Tom Tromey <tom@tromey.com>
1691 * symfile.c (reread_symbols): Use obstack_strdup.
1692 * stabsread.c (read_type): Use obstack_strdup.
1693 * gdb_obstack.h (obstack_strdup): New overload.
1694 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
1695 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
1696 (dwarf2_canonicalize_name): Use obstack_strdup.
1697 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
1698 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
1701 2019-08-06 Tom Tromey <tom@tromey.com>
1703 * gdb_obstack.h (obstack_strdup): Define.
1704 * gdb_obstack.c (obstack_strdup): Don't define.
1706 2019-08-06 Tom Tromey <tom@tromey.com>
1708 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
1710 * typeprint.c (typedef_hash_table::find_global_typedef): Use
1712 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
1713 * stabsread.c (common_block_start): Use obstack_strdup.
1714 * objfiles.c (set_objfile_main_name, objfile): Use
1716 * namespace.c (add_using_directive): Use obstack_strdup.
1717 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
1718 * jit.c (finalize_symtab): Use obstack_strdup.
1719 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
1720 (guess_partial_die_structure_name, partial_die_info::fixup)
1721 (dwarf2_name): Use obstack_strdup.
1722 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
1724 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
1725 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
1727 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
1729 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1731 * unittests/help-doc-selftests.c: New file.
1732 * Makefile.in: Add the new file.
1734 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1736 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
1737 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
1738 the full first line, except when FOR_VALUE_PREFIX. In this case,
1739 the trailing '.' is not output, and the first character is uppercased.
1740 (print_help_for_command): Update call to print_doc_line.
1741 (print_doc_of_command): Likewise.
1742 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
1743 * cli/cli-option.c (append_indented_doc): Do not append newline.
1744 (build_help_option): Append newline after first appended_indented_doc
1745 only if a second call is done.
1746 (build_help): Append 2 new lines before each option, except the first
1748 * compile/compile.c (_initialize_compile): Add new lines after
1749 %OPTIONS%, when not at the end of the help.
1750 Change help doc or code
1751 producing the help doc to respect the invariants.
1752 * maint-test-options.c (_initialize_maint_test_options): Likewise.
1753 Also removed the new line after 'Options:', as all other commands
1754 do not put an empty line between 'Options:' and the first option.
1755 * printcmd.c (_initialize_printcmd): Likewise.
1756 * stack.c (_initialize_stack): Likewise.
1757 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
1758 incorrectly telling COMMAND is optional.
1759 * ada-lang.c (_initialize_ada_language): Change help doc or code
1760 producing the help doc to respect the invariants.
1761 * ada-tasks.c (_initialize_ada_tasks): Likewise.
1762 * breakpoint.c (_initialize_breakpoint): Likewise.
1763 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
1764 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
1765 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
1766 * cli/cli-style.c (cli_style_option::add_setshow_commands,
1767 _initialize_cli_style): Likewise.
1768 * corelow.c (core_target_info): Likewise.
1769 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
1770 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
1771 * filesystem.c (_initialize_filesystem): Likewise.
1772 * frame.c (_initialize_frame): Likewise.
1773 * gnu-nat.c (add_task_commands): Likewise.
1774 * infcall.c (_initialize_infcall): Likewise.
1775 * infcmd.c (_initialize_infcmd): Likewise.
1776 * interps.c (_initialize_interpreter): Likewise.
1777 * language.c (_initialize_language): Likewise.
1778 * linux-fork.c (_initialize_linux_fork): Likewise.
1779 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
1780 * maint.c (_initialize_maint_cmds): Likewise.
1781 * memattr.c (_initialize_mem): Likewise.
1782 * printcmd.c (_initialize_printcmd): Likewise.
1783 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
1785 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
1786 * record-btrace.c (_initialize_record_btrace): Likewise.
1787 * record-full.c (_initialize_record_full): Likewise.
1788 * record.c (_initialize_record): Likewise.
1789 * regcache-dump.c (_initialize_regcache_dump): Likewise.
1790 * regcache.c (_initialize_regcache): Likewise.
1791 * remote.c (add_packet_config_cmd, init_remote_threadtests,
1792 _initialize_remote): Likewise.
1793 * ser-tcp.c (_initialize_ser_tcp): Likewise.
1794 * serial.c (_initialize_serial): Likewise.
1795 * skip.c (_initialize_step_skip): Likewise.
1796 * source.c (_initialize_source): Likewise.
1797 * stack.c (_initialize_stack): Likewise.
1798 * symfile.c (_initialize_symfile): Likewise.
1799 * symtab.c (_initialize_symtab): Likewise.
1800 * target-descriptions.c (_initialize_target_descriptions): Likewise.
1801 * top.c (init_main): Likewise.
1802 * tracefile-tfile.c (tfile_target_info): Likewise.
1803 * tracepoint.c (_initialize_tracepoint): Likewise.
1804 * tui/tui-win.c (_initialize_tui_win): Likewise.
1805 * utils.c (add_internal_problem_command): Likewise.
1806 * valprint.c (value_print_option_defs): Likewise.
1808 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
1811 * configure.ac: Drop enable-libmcheck support.
1812 * configure, config.in: Rebuild.
1813 * libmcheck.m4: Remove.
1814 * acinclude.m4: Don't include it.
1815 * Makefile.in: Don't distribute it.
1816 * top.c (print_gdb_configuration): Don't mention it.
1818 2019-08-06 Tom Tromey <tom@tromey.com>
1820 * utils.c (set_output_style): Sometimes pass stream to
1822 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
1823 * record-btrace.c (btrace_insn_history): Update.
1824 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
1826 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
1827 Update initializers.
1828 <m_uiout>: New field.
1830 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1831 Remove "uiout" parameter.
1832 (dump_insns): Update.
1833 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
1834 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
1836 2019-08-06 Christian Biesinger <cbiesinger@google.com>
1838 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
1839 (error_in_psymtab_expansion): Likewise.
1840 (lookup_symbol_via_quick_fns): Likewise.
1841 (basic_lookup_transparent_type_quick): Likewise.
1842 (basic_lookup_transparent_type_1): Likewise.
1844 2019-08-06 Tom Tromey <tromey@adacore.com>
1846 * source.c (last_source_error): Now bool.
1847 (print_source_lines_base): Make "noprint" bool. Only open
1848 source file when last_source_visited changes.
1850 2019-08-06 Tom Tromey <tromey@adacore.com>
1852 * annotate.c (annotate_source_line): Use g_source_cache.
1853 * source-cache.c (source_cache::get_plain_source_lines): Change
1854 parameters. Populate m_offset_cache.
1855 (source_cache::ensure): New method.
1856 (source_cache::get_line_charpos): New method.
1857 (extract_lines): Move lower. Change parameters.
1858 (source_cache::get_source_lines): Move lower.
1859 * source-cache.h (class source_cache): Update comment.
1860 <get_line_charpos>: New method.
1861 <get_source_lines>: Update comment.
1862 <clear>: Clear m_offset_cache.
1863 <get_plain_source_lines>: Change parameters.
1864 <ensure>: New method
1865 <m_offset_cache>: New member.
1866 * source.c (forget_cached_source_info_for_objfile): Update.
1867 (info_source_command): Use g_source_cache.
1868 (find_source_lines, open_source_file_with_line_charpos): Remove.
1869 (print_source_lines_base, search_command_helper): Use g_source_cache.
1870 * source.h (open_source_file_with_line_charpos): Don't declare.
1871 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
1872 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
1875 2019-08-06 Tom Tromey <tromey@adacore.com>
1877 * source-cache.c (source_cache::get_plain_source_lines):
1878 Remove "first_line" and "last_line" parameters.
1879 (source_cache::get_source_lines): Cache plain text.
1880 * source-cache.h (class source_cache)
1881 <get_plain_source_lines>: Update.
1883 2019-08-06 Tom Tromey <tromey@adacore.com>
1885 * source-cache.c (extract_lines): No longer a method.
1886 Changed type of parameter. Include final newline.
1887 (selftests::extract_lines_test): New function.
1888 (_initialize_source_cache): Likewise.
1889 * source-cache.h (class source_cache)
1890 <extract_lines>: Don't declare.
1892 2019-08-06 Tom Tromey <tromey@adacore.com>
1894 * breakpoint.c (init_breakpoint_sal): Update.
1895 (breakpoint): Update.
1896 * breakpoint.h (struct breakpoint) <filter>: Now a
1899 2019-08-05 Christian Biesinger <cbiesinger@google.com>
1901 * NEWS: Mention dictionary access on blocks.
1902 * python/py-block.c (blpy_getitem): New function.
1903 (block_object_as_mapping): New struct.
1904 (block_object_type): Use new struct for tp_as_mapping field.
1906 2019-08-05 Christian Biesinger <cbiesinger@google.com>
1908 * objfiles.h (objfile): Add a comment describing partial symbols.
1910 2019-08-05 Tom Tromey <tromey@adacore.com>
1912 * compile/compile.c (_initialize_compile): Use _(), not N_().
1913 * thread.c (_initialize_thread): Use _(), not N_().
1914 * stack.c (_initialize_stack): Use _(), not N_().
1915 * printcmd.c (_initialize_printcmd): Use _(), not N_().
1917 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1919 * dwarf2read.c (struct dw2_symtab_iterator):
1920 <want_specific_block>: Remove.
1921 <block_index>: Change type to gdb::optional.
1922 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
1923 change type of BLOCK_INDEX parameter to gdb::optional.
1924 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
1925 (dw2_lookup_symbol): Don't pass argument for
1926 WANT_SPECIFIC_BLOCK.
1927 (dw2_expand_symtabs_for_function): Don't pass argument for
1928 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
1929 (class dw2_debug_names_iterator)
1930 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
1931 parameter, change BLOCK_INDEX type to gdb::optional.
1932 <m_want_specific_block>: Remove.
1933 <m_block_index>: Change type to gdb::optional.
1934 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
1935 gdb::optional. Re-write in function of gdb::optional.
1936 (dw2_debug_names_lookup_symbol): Don't pass argument for
1937 WANT_SPECIFIC_BLOCK.
1938 (dw2_debug_names_expand_symtabs_for_function): Don't pass
1939 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
1942 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1944 * NEWS: Mention changes to "info sources" command.
1946 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1948 * symtab.c (filename_partial_match_opts): New struct type.
1949 (struct output_source_filename_data): New members
1950 regexp, c_regexp, partial_match.
1951 (output_source_filename): Use new members to decide to print file.
1952 (info_sources_option_defs): New variable.
1953 (make_info_sources_options_def_group, print_info_sources_header,
1954 info_sources_command_completer):
1956 (info_sources_command): Read new optional arguments.
1957 (_initialize_symtab): Update info sources help.
1959 2019-08-02 Alexandre Oliva <oliva@adacore.com>
1961 * ada-lang.c (exception_support_info_v0): Renamed from...
1962 (default_exception_support_info): ... this. Create new
1964 (ada_has_this_exception_support): Look up catch_handlers_sym.
1965 (ada_exception_support_info_sniffer): Try v0 after default.
1967 2019-08-01 Tom Tromey <tromey@adacore.com>
1969 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
1972 2019-08-01 Christian Biesinger <cbiesinger@google.com>
1974 * s12z-tdep.c: Fix include path for s12z-opc.h.
1976 2019-08-01 Alan Hayward <alan.hayward@arm.com>
1978 * NEWS: Require GNU make 3.82.
1980 2019-07-16 Tom Tromey <tom@tromey.com>
1982 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
1985 2019-07-30 Tom Tromey <tromey@adacore.com>
1987 * block.c (contained_in): Remove BLOCK_FUNCTION check.
1989 2019-07-30 Kevin Buettner <kevinb@redhat.com>
1991 * printcmd.c (print_address_symbolic): Print negative offsets.
1992 (build_address_symbolic): Force signed arithmetic when computing
1995 2019-07-30 Christian Biesinger <cbiesinger@google.com>
1997 PR/24474: Add a function to lookup static variables.
1998 * NEWS: Mention this new function.
1999 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
2000 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
2001 * python/python.c (python_GdbMethods): Add new function.
2003 2019-07-29 Christian Biesinger <cbiesinger@google.com>
2005 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
2006 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
2007 (objfpy_lookup_static_symbol): New function.
2008 (objfile_object_methods): Add new functions.
2010 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2012 * NEWS: Mention 'set|show print frame-info'. Mention new
2013 'presence' value for 'frame-arguments'. Mention new '-frame-info'
2014 backtrace argument. Mention that python frame filtering code
2015 is now consistent with what 'backtrace' command prints.
2017 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2019 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
2021 (print_frame_info_auto, print_frame_info_source_line,
2022 print_frame_info_location, print_frame_info_source_and_location,
2023 print_frame_info_location_and_address, print_frame_info_short_location):
2025 (struct frame_print_options): New member print_frame_info.
2026 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
2027 * stack.h (get_user_print_what_frame_info): New declaration.
2028 (frame_show_address): New declaration.
2029 * stack.c (print_frame_arguments_choices): New value 'presence'.
2030 (print_frame_info_auto, print_frame_info_source_line,
2031 print_frame_info_location, print_frame_info_source_and_location,
2032 print_frame_info_location_and_address, print_frame_info_short_location,
2033 print_frame_info_choices, print_frame_info_print_what): New definitions.
2034 (print_frame_args): Only print dots for args if print frame-arguments
2036 (frame_print_option_defs): New element for "frame-info".
2037 (get_user_print_what_frame_info): New function.
2038 (frame_show_address): Make non static. Move comment to stack.h.
2039 (print_frame_info_to_print_what): New function.
2040 (print_frame_info): Update comment. Use fp_opts.print_frame_info
2041 to decide what to print.
2042 (backtrace_command_1): Handle the new print_frame_arguments_presence
2044 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
2045 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
2046 (py_print_frame): In non-mi mode, use LOCATION as default for
2047 print_what, similarly to frame information printed directly by
2048 backtrace command. Handle frame-info user option in non MI mode.
2050 2019-07-27 Kevin Buettner <kevinb@redhat.com>
2052 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
2053 Add case for debugging 32-bit target on 64-bit host. Revise
2056 2019-07-27 Kevin Buettner <kevinb@redhat.com>
2058 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
2059 instead of find_function_entry_range_from_pc.
2061 2019-07-27 Kevin Buettner <kevinb@redhat.com>
2063 * stack.c (find_frame_funname): Remove code which preferred
2064 minsym over symtab sym in "certain pathological cases".
2066 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
2067 parameter. Change type of "do_demangle" to bool.
2068 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2069 Pass suitable "prefer_sym_over_minsym" flag to
2070 build_address_symbolic(). Don't output "+" for negative offsets.
2071 * printcmd.c (print_address_symbolic): Update invocation of
2072 build_address_symbolic to include a "prefer_sym_over_minsym"
2074 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
2075 Restrict cases in which use of minimal symbol is preferred to that
2076 of a found symbol. Update comments.
2078 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
2079 for entry pc when entry pc is out of range for that FDE.
2081 2019-07-26 Brian Callahan <bcallah@openbsd.org>
2084 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
2087 2019-07-25 Christian Biesinger <cbiesinger@google.com>
2089 * python/py-objfile.c (add_separate_debug_file): Fix comment about
2090 this function's Python signature.
2093 2019-07-24 Christian Biesinger <cbiesinger@google.com>
2095 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
2096 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
2097 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
2098 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
2099 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
2102 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
2104 * h8300-tdep.c (h8300_register_name_common): New.
2105 h8300_register_name): Use h8300_register_name_common.
2106 (h8300s_register_name): Likewise.
2107 (h8300sx_register_name): Likewise.
2108 (h8300h_register_nam): New.
2109 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
2112 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
2114 * arm-tdep.c (arm_skip_cmse_entry): New function.
2115 (arm_is_sgstubs_section): New function.
2116 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
2118 2019-07-22 Tom Tromey <tom@tromey.com>
2120 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
2123 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2125 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
2128 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2130 * symtab.c (search_symbols): Adjust msymbol matching type arrays
2131 so that GDB doesn't match any msymbols when searching in the
2133 (print_symbol_info): Print using typedef_print or type_print based
2134 on the type of the symbol. Add updated FIXME comment moved from...
2135 (_initialize_symtab): ... move and update FIXME comment to above.
2137 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2139 * NEWS: Mention adding -q option to "info types".
2140 * symtab.c (struct info_types_options): New struct.
2141 (info_types_options_defs): New variable.
2142 (make_info_types_options_def_group): New function.
2143 (info_types_command): Use gdb::option framework to parse options.
2144 (info_types_command_completer): New function.
2145 (_initialize_symtab): Extend the help text on "info types" and
2146 register command completer.
2148 2019-07-21 Christian Biesinger <cbiesinger@google.com>
2150 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
2151 (lookup_symbol_in_objfile): Change int to block_enum and add a
2152 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
2154 2019-07-20 Christian Biesinger <cbiesinger@google.com>
2156 * MAINTAINERS (Write After Approval): Add self.
2158 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
2160 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
2161 instruction to the dummy code region.
2163 2019-07-19 Tom Tromey <tromey@adacore.com>
2165 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
2166 (ARGSUSED, PARAMS, __func__): Remove rules.
2168 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2170 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
2171 * features/arm/arm-with-iwmmxt.c: Remove.
2172 * features/arm/arm-with-iwmmxt.xml: Remove.
2173 * features/arm/arm-with-m-fpa-layout.c: Remove.
2174 * features/arm/arm-with-m-fpa-layout.xml: Remove.
2175 * features/arm/arm-with-m-vfp-d16.c: Remove.
2176 * features/arm/arm-with-m-vfp-d16.xml: Remove.
2177 * features/arm/arm-with-m.c: Remove.
2178 * features/arm/arm-with-m.xml: Remove.
2179 * features/arm/arm-with-neon.c: Remove.
2180 * features/arm/arm-with-neon.xml: Remove.
2181 * features/arm/arm-with-vfpv2.c: Remove.
2182 * features/arm/arm-with-vfpv2.xml: Remove.
2183 * features/arm/arm-with-vfpv3.c: Remove.
2184 * features/arm/arm-with-vfpv3.xml: Remove.
2186 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2188 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
2190 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2192 * arch/aarch32.c (aarch32_create_target_description): Create
2193 target descriptions using features.
2194 * arch/arm.c (arm_create_target_description)
2195 (arm_create_mprofile_target_description): Likewise.
2196 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
2198 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2200 * Makefile.in: Add new files.
2201 * aarch32-tdep.c: New file.
2202 * aarch32-tdep.h: New file.
2203 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
2204 Call aarch32_read_description.
2205 * arch/aarch32.c: New file.
2206 * arch/aarch32.h: New file.
2207 * arch/arm.c (arm_create_target_description)
2208 (arm_create_mprofile_target_description): New function.
2209 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
2210 (arm_create_target_description)
2211 (arm_create_mprofile_target_description): New declaration.
2212 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
2213 read_description functions.
2214 * arm-linux-nat.c (arm_linux_nat_target::read_description):
2216 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
2217 * arm-tdep.c (tdesc_arm_list): New variable.
2218 (arm_register_g_packet_guesses): Call create description functions.
2219 (arm_read_description) (arm_read_mprofile_description): New
2221 * arm-tdep.h (arm_read_description)
2222 (arm_read_mprofile_description): Add declaration.
2223 * configure.tgt: Add new files.
2225 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
2227 * top.c (new_ui_command): Open specified terminal just once.
2229 2019-07-18 Tom Tromey <tromey@adacore.com>
2231 * symtab.c (main_name): Constify return type.
2232 * symfile.c (set_initial_language): Update.
2233 * symtab.h (main_name): Constify return type.
2235 2019-07-17 Tom Tromey <tom@tromey.com>
2237 * tui/tui-winsource.c (tui_update_source_window)
2238 (tui_update_source_window_as_is)
2239 (tui_update_source_windows_with_line): Remove return.
2240 * tui/tui-disasm.c (tui_show_disassem)
2241 (tui_show_disassem_and_update_source): Remove return.
2242 * tui/tui.c (tui_reset): Remove return.
2243 * tui/tui-wingeneral.c
2244 (tui_check_and_display_highlight_if_needed): Remove return.
2246 2019-07-17 Tom Tromey <tom@tromey.com>
2248 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
2250 2019-07-17 Tom Tromey <tom@tromey.com>
2252 * tui/tui-winsource.h (struct tui_exec_info_window)
2253 (struct tui_source_window_base): Move from tui-data.h.
2254 * tui/tui-winsource.c: Move many method definitions from
2255 elsewhere. Remove "structuring" comments.
2256 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
2257 (tui_source_window_base::refresh_window): Move to
2259 * tui/tui-win.c (tui_source_window_base::refresh_all)
2260 (tui_source_window_base::update_tab_width)
2261 (tui_source_window_base::set_new_height)
2262 (tui_source_window_base::do_make_visible_with_new_height): Move to
2264 * tui/tui-source.h: Update.
2265 * tui/tui-source.c (tui_source_window_base::reset): Move to
2267 * tui/tui-disasm.h: Update.
2268 * tui/tui-data.h (struct tui_exec_info_window): Move to
2270 (struct tui_source_window_base): Likewise.
2271 * tui/tui-data.c (tui_source_window_base::clear_detail)
2272 (tui_source_window_base, ~tui_source_window_base): Move to
2275 2019-07-17 Tom Tromey <tom@tromey.com>
2277 * tui/tui-win.c (tui_resize_all)
2278 (tui_source_window_base::update_tab_width)
2279 (tui_adjust_win_heights): Update.
2280 (tui_win_info::make_invisible_and_set_new_height): Rename from
2281 make_invisible_and_set_new_height.
2282 * tui/tui-data.h (struct tui_win_info)
2283 <make_invisible_and_set_new_height>: New method.
2285 2019-07-17 Tom Tromey <tom@tromey.com>
2287 * tui/tui.c: Update.
2288 * tui/tui-source.h (struct tui_source_window): Move from
2290 * tui/tui-layout.c: Update.
2291 * tui/tui-disasm.c: Update.
2292 * tui/tui-data.h (struct tui_source_window): Move to
2295 2019-07-17 Tom Tromey <tom@tromey.com>
2297 * tui/tui-disasm.h (struct tui_disasm_window): Move from
2299 * tui/tui-data.h (struct tui_disasm_window): Move to
2302 2019-07-17 Tom Tromey <tom@tromey.com>
2304 * tui/tui-regs.h (struct tui_data_item_window): Move from
2306 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
2307 * tui/tui-data.h (struct tui_data_item_window): Move to
2309 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
2311 2019-07-17 Tom Tromey <tom@tromey.com>
2313 * tui/tui.c: Update.
2314 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
2315 (tui_cmd_window::max_height): Move to tui-command.c.
2316 * tui/tui-layout.c: Update.
2317 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
2318 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
2320 * tui/tui-command.h (struct tui_cmd_window): Move from
2322 * tui/tui-command.c: Remove "structuring" comments.
2323 (tui_cmd_window::clear_detail)
2324 (tui_cmd_window::do_make_visible_with_new_height)
2325 (tui_cmd_window::max_height): Move from elsewhere.
2327 2019-07-17 Tom Tromey <tom@tromey.com>
2329 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
2331 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
2332 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
2334 2019-07-17 Tom Tromey <tom@tromey.com>
2336 * tui/tui.c: Update.
2337 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
2339 * tui/tui-windata.h: Remove file.
2340 * tui/tui-windata.c: Remove file.
2341 * tui/tui-win.c (tui_data_window::set_new_height)
2342 (tui_data_window::do_make_visible_with_new_height): Move to
2344 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
2345 * tui/tui-regs.c: Remove "structuring" comments.
2346 (tui_data_window::first_data_item_displayed)
2347 (tui_data_window::delete_data_content_windows)
2348 (tui_data_window::erase_data_content)
2349 (tui_data_window::display_all_data)
2350 (tui_data_window::refresh_all)
2351 (tui_data_window::do_scroll_vertical)
2352 (tui_data_window::clear_detail, tui_data_window::set_new_height)
2353 (tui_data_window::do_make_visible_with_new_height)
2354 (tui_data_window::refresh_window): Move from elsewhere.
2355 (_initialize_tui_regs): Move to end of file.
2356 * tui/tui-layout.c: Update.
2357 * tui/tui-hooks.c: Update.
2358 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
2359 * tui/tui-data.c (tui_data_window::clear_detail): Move to
2361 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
2363 2019-07-17 Tom Tromey <tom@tromey.com>
2365 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
2368 2019-07-17 Tom Tromey <tom@tromey.com>
2370 * tui/tui-win.c (tui_source_window_base::set_new_height)
2371 (tui_source_window_base::do_make_visible_with_new_height): Use
2372 m_has_locator field directly.
2373 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
2375 (struct tui_source_window_base) <has_locator>: Likewise.
2377 2019-07-17 Tom Tromey <tom@tromey.com>
2379 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
2381 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
2383 * tui/tui-win.c (tui_source_window_base::set_new_height)
2384 (tui_source_window_base::set_new_height)
2385 (make_invisible_and_set_new_height)
2386 (tui_source_window_base::do_make_visible_with_new_height)
2387 (tui_source_window_base::do_make_visible_with_new_height):
2389 * tui/tui-layout.c (show_source_disasm_command, show_data)
2390 (show_source_or_disasm_and_command): Update.
2391 * tui/tui-layout.c (show_layout): Update.
2393 2019-07-17 Tom Tromey <tom@tromey.com>
2395 * tui/tui-layout.c (make_data_window): Remove.
2396 (show_data): Unify creation and re-initialization cases.
2398 2019-07-17 Tom Tromey <tom@tromey.com>
2400 * tui/tui-layout.c (make_source_window, make_disasm_window):
2402 (show_data): Unify creation and re-initialization cases.
2404 2019-07-17 Tom Tromey <tom@tromey.com>
2406 * tui/tui-layout.c (make_command_window): Remove.
2407 (show_source_disasm_command, show_source_or_disasm_and_command):
2408 Unify creation and re-initialization cases.
2410 2019-07-17 Tom Tromey <tom@tromey.com>
2412 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
2413 creation and re-initialization cases.
2415 2019-07-17 Tom Tromey <tom@tromey.com>
2417 * tui/tui-regs.c (tui_get_register): Return void.
2419 2019-07-17 Tom Tromey <tom@tromey.com>
2421 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
2424 2019-07-17 Tom Tromey <tom@tromey.com>
2426 * tui/tui-layout.c (show_source_disasm_command): Simplify window
2429 2019-07-17 Tom Tromey <tom@tromey.com>
2431 * tui/tui.h (tui_set_layout_by_name): Don't declare.
2432 * tui/tui-regs.c (tui_reg_layout): New function.
2433 (tui_show_registers, tui_reg_command): Use it.
2434 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
2435 (tui_layout_command): Rename from tui_set_layout_by_name. Change
2437 (tui_layout_command): Remove.
2439 2019-07-17 Tom Tromey <tom@tromey.com>
2441 * tui/tui-layout.h (tui/tui-layout): Return void.
2442 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
2444 2019-07-17 Tom Tromey <tom@tromey.com>
2446 * tui/tui-layout.c (show_source_disasm_command, show_data):
2448 (reset_locator): Remove.
2449 (show_source_or_disasm_and_command): Update.
2451 2019-07-17 Tom Tromey <tom@tromey.com>
2453 * tui/tui-source.c (tui_source_window_base::reset): Remove
2455 * tui/tui-layout.c (make_command_window, make_source_window)
2456 (make_disasm_window, make_data_window)
2457 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
2458 (reset_locator, show_source_or_disasm_and_command): Update.
2459 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
2461 (struct tui_source_window_base) <reset>: Likewise.
2463 2019-07-17 Tom Tromey <tom@tromey.com>
2465 * tui/tui-layout.c (show_source_disasm_command): Use
2467 (reset_locator): New function.
2468 (init_and_make_win): Remove.
2469 (show_source_or_disasm_and_command): Use reset_locator.
2471 2019-07-17 Tom Tromey <tom@tromey.com>
2473 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
2475 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
2477 * tui/tui-source.c (tui_source_window_base::reset): New method.
2478 * tui/tui-layout.c (make_command_window): Don't call
2480 (make_source_window, make_disasm_window): Don't call
2481 make_source_or_disasm_window.
2482 (make_data_window): Don't call init_and_make_win. Change calling
2484 (show_source_disasm_command, show_data): Simplify.
2485 (make_source_or_disasm_window): Remove.
2486 (show_source_or_disasm_and_command): Simplify.
2487 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
2488 (struct tui_source_window_base) <reset>: Likewise.
2489 <execution_info>: Remove initializer.
2490 * tui/tui-data.c (tui_source_window_base): Initialize
2493 2019-07-17 Tom Tromey <tom@tromey.com>
2495 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
2498 2019-07-17 Tom Tromey <tom@tromey.com>
2500 * tui/tui.c (tui_rl_other_window): Update.
2501 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
2502 superclass method first. Always iterate over regs_content.
2503 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
2505 * tui/tui-win.c (tui_set_focus_command): Update.
2507 2019-07-17 Tom Tromey <tom@tromey.com>
2509 * tui/tui-win.c (tui_set_focus_command): Rename from
2510 tui_set_focus. Call tui_enable.
2511 (tui_set_focus_command): Remove.
2513 2019-07-17 Tom Tromey <tom@tromey.com>
2515 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
2517 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
2519 (tui_data_window::refresh_window): Call refresh_window on data
2520 items. Always call superclass refresh_window.
2521 (tui_win_info::refresh): Remove.
2522 (tui_source_window_base::refresh_window): Update.
2523 (tui_refresh_all): Update.
2524 * tui/tui-layout.c (show_source_disasm_command): Remove call to
2526 (show_source_or_disasm_and_command): Likewise.
2527 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
2528 (struct tui_source_window_base) <refresh>: Likewise.
2530 2019-07-17 Tom Tromey <tom@tromey.com>
2532 * tui/tui-winsource.c (tui_clear_source_content)
2533 (tui_show_source_content): Update.
2534 * tui/tui-source.c (tui_source_window::showing_source_p): Check
2535 whether content is empty.
2536 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
2539 2019-07-17 Tom Tromey <tom@tromey.com>
2541 * tui/tui-winsource.c (tui_erase_source_content): Clear the
2543 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
2544 * tui/tui-source.c (tui_set_source_content_nil): Remove.
2546 2019-07-17 Tom Tromey <tom@tromey.com>
2548 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
2549 (struct tui_data_item_window): Update.
2551 2019-07-17 Tom Tromey <tom@tromey.com>
2553 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
2554 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
2557 2019-07-17 Tom Tromey <tom@tromey.com>
2559 * tui/tui-winsource.h (tui_erase_source_content)
2560 (tui_clear_source_content): Remove "display_prompt" parameter.
2561 * tui/tui-winsource.c (tui_update_source_window_as_is)
2562 (tui_update_source_windows_with_addr): Update.
2563 (tui_clear_source_content): Remove "display_prompt" parameter.
2564 (tui_erase_source_content): Likewise. Simplify.
2565 (tui_show_source_content): Update.
2566 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2567 * tui/tui-stack.c (tui_show_frame_info): Update.
2568 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
2571 2019-07-17 Tom Tromey <tom@tromey.com>
2573 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2574 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
2576 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
2579 2019-07-17 Tom Tromey <tom@tromey.com>
2581 * tui/tui-winsource.c (tui_clear_source_content)
2582 (tui_show_source_content, tui_show_exec_info_content)
2583 (tui_clear_exec_info_content): Update.
2584 * tui/tui-stack.c (tui_show_locator_content): Update.
2585 (tui_show_frame_info): Update.
2586 * tui/tui-source.h (tui_source_window): Don't declare.
2587 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
2588 from tui_source_is_displayed.
2589 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
2591 (struct tui_source_window_base) <content_in_use>: New field. Now
2593 (struct tui_source_window) <showing_source_p>: New method.
2594 (TUI_SRC_WIN): Change cast.
2595 * tui/tui-data.c (tui_initialize_static_data): Update.
2597 2019-07-17 Tom Tromey <tom@tromey.com>
2599 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
2601 * tui/tui-source.c (tui_source_window::location_matches_p): New
2603 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
2605 * tui/tui-data.h (struct tui_source_window_base)
2606 <location_matches_p>: New method.
2607 (struct tui_source_window, struct tui_disasm_window)
2608 <location_matches_p>: Likewise.
2610 2019-07-17 Tom Tromey <tom@tromey.com>
2612 * tui/tui-win.c (tui_set_win_height_command): Rename from
2614 (tui_set_win_height_command): Remove.
2616 2019-07-17 Tom Tromey <tom@tromey.com>
2618 * tui/tui-source.c (tui_source_window): New constructor. Add
2620 (~tui_source_window): New destructor.
2621 (tui_source_window::style_changed): New method.
2622 * tui/tui-hooks.c (tui_redisplay_source): Remove.
2623 (tui_attach_detach_observers): Update.
2624 * tui/tui-data.h (struct tui_source_window): Make constructor not
2625 inline. Add destructor.
2626 (struct tui_source_window) <style_changed>: New method.
2627 <m_observable>: New member.
2629 2019-07-17 Tom Tromey <tom@tromey.com>
2631 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
2632 * tui/tui-win.c (tui_resize_all): Fix typo.
2634 2019-07-17 Tom Tromey <tom@tromey.com>
2636 * tui/tui-wingeneral.h (tui_refresh_all): Update.
2637 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
2638 (tui_refresh_all): Remove "list" parameter. Use foreach.
2639 * tui/tui-win.c (window_name_completer): Use foreach.
2640 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
2641 (update_tab_width): Likewise.
2642 * tui/tui-layout.c (show_layout): Update.
2643 * tui/tui-data.h (class tui_window_iterator): New.
2644 (struct all_tui_windows): New.
2645 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
2647 2019-07-17 Tom Tromey <tom@tromey.com>
2649 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
2650 parameter. Don't reference globals.
2651 (tui_reg_command): Update.
2653 2019-07-17 Tom Tromey <tom@tromey.com>
2655 * tui/tui-regs.c (tui_show_registers): Simplify.
2657 2019-07-17 Tom Tromey <tom@tromey.com>
2659 * tui/tui-regs.c (tui_show_registers): Update.
2660 (tui_show_register_group): Add win_info parameter.
2662 2019-07-17 Tom Tromey <tom@tromey.com>
2664 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
2665 Rename from tui_display_reg_element_at_line.
2666 (tui_data_window::display_registers_from_line): Update.
2667 * tui/tui-data.h (struct tui_data_window)
2668 <display_reg_element_at_line>: New method.
2670 2019-07-17 Tom Tromey <tom@tromey.com>
2672 * tui/tui-regs.h (tui_display_registers_from)
2673 (tui_display_registers_from_line): Don't declare.
2674 * tui/tui-windata.c (tui_data_window::display_all_data)
2675 (tui_data_window::refresh_all)
2676 (tui_data_window::do_scroll_vertical): Update.
2677 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
2678 from tui_display_registers_from.
2679 (tui_display_reg_element_at_line): Update.
2680 (tui_data_window::display_registers_from_line): Rename from
2681 tui_display_registers_from_line.
2682 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
2683 display_registers_from_line>: New methods.
2685 2019-07-17 Tom Tromey <tom@tromey.com>
2687 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
2688 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
2689 from tui_erase_data_content.
2690 (tui_data_window::display_all_data)
2691 (tui_data_window::refresh_all)
2692 (tui_data_window::do_scroll_vertical): Update.
2693 * tui/tui-regs.c (tui_show_registers): Update.
2694 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
2697 2019-07-17 Tom Tromey <tom@tromey.com>
2699 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
2702 (tui_data_window::delete_data_content_windows): Rename from
2703 tui_delete_data_content_windows.
2704 (tui_data_window::display_all_data)
2705 (tui_data_window::do_scroll_vertical): Update.
2706 * tui/tui-data.h (struct tui_data_window)
2707 <delete_data_content_windows>: New method.
2709 2019-07-17 Tom Tromey <tom@tromey.com>
2711 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
2712 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
2714 2019-07-17 Tom Tromey <tom@tromey.com>
2716 * tui/tui-windata.h (tui_display_all_data): Don't declare.
2717 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
2718 from tui_display_all_data.
2720 (tui_data_window::do_make_visible_with_new_height): Update.
2721 * tui/tui-regs.c (tui_show_registers): Update.
2722 * tui/tui-layout.c (tui_set_layout): Update.
2723 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
2726 2019-07-17 Tom Tromey <tom@tromey.com>
2728 * tui/tui-windata.h (tui_display_data_from): Don't declare.
2729 * tui/tui-windata.c (tui_display_data_from): Remove.
2730 (tui_data_window::refresh_all): Update.
2732 2019-07-17 Tom Tromey <tom@tromey.com>
2734 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
2735 * tui/tui-windata.c (tui_display_data_from_line): Remove.
2736 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
2737 tui_display_registers_from_line.
2738 * tui/tui-regs.h (tui_display_registers_from_line): Update.
2739 * tui/tui-regs.c (tui_display_registers_from_line): Remove
2740 "force_display" parameter.
2742 2019-07-17 Tom Tromey <tom@tromey.com>
2744 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
2746 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
2747 Rename from tui_first_reg_element_no_inline.
2748 (tui_display_reg_element_at_line)
2749 (tui_display_registers_from_line): Update.
2750 * tui/tui-data.h (struct tui_data_window)
2751 <first_reg_element_no_inline>: New method.
2753 2019-07-17 Tom Tromey <tom@tromey.com>
2755 * tui/tui-windata.c (tui_display_data_from)
2756 (tui_data_window::do_scroll_vertical): Update.
2757 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
2758 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
2759 Rename from tui_line_from_reg_element_no.
2760 (tui_display_registers_from_line): Update.
2761 * tui/tui-data.h (struct tui_data_window)
2762 <line_from_reg_element_no>: New method.
2764 2019-07-17 Tom Tromey <tom@tromey.com>
2766 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
2767 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
2768 tui_last_regs_line_no.
2769 (tui_display_reg_element_at_line)
2770 (tui_display_registers_from_line): Update.
2771 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
2774 2019-07-17 Tom Tromey <tom@tromey.com>
2777 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
2778 (tui_update_breakpoint_info): Add "being_deleted" parameter.
2779 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2780 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
2781 (tui_update_breakpoint_info): Likewise.
2782 * tui/tui-hooks.c (tui_event_create_breakpoint)
2783 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
2786 2019-07-17 Tom Tromey <tom@tromey.com>
2788 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
2790 2019-07-17 Tom Tromey <tom@tromey.com>
2792 * tui/tui-winsource.c (tui_update_source_window_as_is)
2793 (tui_update_source_windows_with_addr): Update.
2794 * tui/tui-source.h (tui_set_source_content)
2795 (tui_show_symtab_source): Add "win_info" parameter.
2796 * tui/tui-source.c (tui_set_source_content): Add "win_info"
2798 (tui_show_symtab_source): Likewise.
2800 2019-07-17 Tom Tromey <tom@tromey.com>
2802 * tui/tui-wingeneral.c
2803 (tui_check_and_display_highlight_if_needed): Check can_highlight.
2805 2019-07-17 Tom Tromey <tom@tromey.com>
2807 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
2808 (struct tui_cmd_window) <can_scroll>: New method.
2809 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
2812 2019-07-17 Tom Tromey <tromey@adacore.com>
2814 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
2815 do_field_signed>: Rename. Change type of "value".
2816 * ui-out.c (ui_out::field_signed): Rename from field_int.
2817 Change type of "value".
2818 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
2820 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
2821 do_field_int. Change type of "value".
2822 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
2823 do_field_int. Change type of "value".
2824 * tracepoint.c (trace_status_mi, tfind_1)
2825 (print_one_static_tracepoint_marker): Update.
2826 * thread.c (print_thread_info_1, print_selected_thread_frame):
2828 * stack.c (print_frame, print_frame_info): Update.
2829 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
2831 * source.c (print_source_lines_base): Update.
2832 * skip.c (info_skip_command): Update.
2833 * record-btrace.c (btrace_ui_out_decode_error)
2834 (btrace_call_history_src_line): Update.
2835 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
2837 * progspace.c (print_program_space): Update.
2838 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
2839 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
2840 do_field_int. Change type of "value".
2841 * mi/mi-out.c (mi_ui_out::do_table_begin)
2842 (mi_ui_out::do_table_header): Update.
2843 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
2845 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
2846 (mi_cmd_data_list_changed_registers, output_register)
2847 (mi_cmd_data_read_memory, mi_load_progress)
2848 (mi_cmd_trace_frame_collected): Update.
2849 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
2851 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
2852 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
2853 (mi_cmd_var_list_children, varobj_update_one): Update.
2854 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
2855 (mi_cmd_stack_list_args, list_arg_or_local): Update.
2856 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
2857 * inferior.c (print_inferior): Update.
2858 * gdb_bfd.c (print_one_bfd): Update.
2859 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2861 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
2862 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
2863 do_field_int. Change type of "value".
2864 * cli-out.c (cli_ui_out::do_field_signed): Rename from
2865 do_field_int. Change type of "value".
2866 * breakpoint.c (watchpoint_check, print_breakpoint_location)
2867 (print_one_breakpoint_location, print_it_catch_fork)
2868 (print_one_catch_fork, print_it_catch_vfork)
2869 (print_one_catch_vfork, print_it_catch_solib)
2870 (print_it_catch_exec, print_it_ranged_breakpoint)
2871 (print_mention_watchpoint, print_mention_masked_watchpoint)
2872 (bkpt_print_it, update_static_tracepoint): Update.
2873 * break-catch-throw.c (print_it_exception_catchpoint): Update.
2874 * break-catch-syscall.c (print_it_catch_syscall): Update.
2875 * ada-tasks.c (print_ada_task_info): Update.
2876 * ada-lang.c (print_it_exception, print_mention_exception):
2879 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2881 PR breakpoints/24541
2882 * gdbarch.c: Regenerate.
2883 * gdbarch.h: Regenerate.
2884 * gdbarch.sh: Adjust return type and parameter types for
2885 'stap_adjust_register'.
2886 (i386_stap_adjust_register): Adjust signature and return new
2888 * stap-probe.c (stap_parse_register_operand): Adjust use of
2889 'gdbarch_stap_adjust_register'.
2891 2019-07-17 Tom Tromey <tromey@adacore.com>
2893 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
2895 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
2897 (struct s390_process_info): Add initializers.
2898 (s390_add_process): Use new.
2899 (s390_linux_nat_target::low_forget_process): Use delete.
2900 (s390_linux_nat_target::low_new_fork)
2901 (s390_linux_nat_target::stopped_by_watchpoint)
2902 (s390_linux_nat_target::low_prepare_to_resume)
2903 (s390_linux_nat_target::insert_watchpoint)
2904 (s390_linux_nat_target::insert_hw_breakpoint)
2905 (s390_linux_nat_target::remove_watchpoint)
2906 (s390_linux_nat_target::remove_hw_breakpoint): Update.
2908 2019-07-16 John Baldwin <jhb@FreeBSD.org>
2910 * aarch64-fbsd-nat.c: Include regcache.h.
2911 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
2913 (aarch64_fbsd_nat_target::fetch_registers)
2914 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
2916 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
2918 2019-07-16 John Baldwin <jhb@FreeBSD.org>
2920 * fbsd-nat.c: Include gdbarch.h.
2922 2019-07-15 Tom Tromey <tromey@adacore.com>
2924 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
2926 2019-07-15 Tom Tromey <tromey@adacore.com>
2928 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
2929 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
2930 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
2931 * cli-out.c (cli_ui_out::do_field_int): New method.
2932 * ui-out.c (ui_out::field_unsigned): New method.
2933 * symfile.c (generic_load): Use field_unsigned.
2934 (print_transfer_performance): Likewise.
2935 * record-btrace.c (ui_out_field_uint): Remove.
2936 (btrace_call_history_insn_range, btrace_call_history): Use
2938 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
2940 * ui-out.h (class ui_out) <field_unsigned>: New method.
2941 <do_field_unsigned>: Likewise.
2943 2019-07-15 Tom Tromey <tromey@adacore.com>
2945 * mi/mi-main.c (list_available_thread_groups): Use field_string.
2946 * mi/mi-interp.c (mi_memory_changed): Use field_string.
2947 * target.c (flash_erase_command): Use field_string.
2948 * infrun.c (print_signal_received_reason): Use field_string.
2949 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
2950 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
2952 * ada-tasks.c (print_ada_task_info): Use field_string.
2954 2019-07-15 Tom Tromey <tromey@adacore.com>
2956 * target.c (flash_erase_command): Use field_core_addr.
2957 * symfile.c (generic_load): Use field_core_addr.
2958 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2959 Use field_core_addr.
2960 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
2963 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2965 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
2966 value if its desired type is smaller than a CORE_ADDR and signed.
2968 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2970 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
2971 of changes to field names, and use new is_reference field to
2972 decide if a property is a reference or not.
2973 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
2975 (struct dwarf2_property_baton): Update header comment, rename
2976 'referenced_type' to 'property_type' and update comments.
2977 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
2978 default property type, store in property baton, update to take
2979 accound of renamed field.
2980 (read_func_scope): Update call to attr_to_dynamic_prop.
2981 (read_array_type): Likewise.
2982 (dwarf2_per_cu_addr_sized_int_type): New function.
2983 (read_subrange_index_type): Move type finding code to
2984 dwarf2_per_cu_addr_sized_int_type.
2985 (read_subrange_type): Update calls to attr_to_dynamic_prop.
2986 (dwarf2_per_cu_addr_type): New function.
2987 (set_die_type): Update calls to attr_to_dynamic_prop.
2989 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2991 * dwarf2read.c (read_subrange_index_type): New function.
2992 (read_subrange_type): Move code into new function and call it.
2993 * gdbtypes.c (create_range_type): Add some asserts.
2995 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2997 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
2998 update return statements.
2999 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
3000 declaration, and update comment to match.
3001 * gdbtypes.c (resolve_dynamic_array): Update call to
3002 dwarf2_evaluate_property to match new return type.
3004 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3006 * valarith.c (value_subscripted_rvalue): Change lowerbound
3007 parameter type from int to LONGEST.
3008 * value.h (value_subscripted_rvalue): Likewise in declaration.
3010 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3012 * cli/cli-utils.c (info_print_command_completer): New function.
3013 * cli/cli-utils.h: Add 'completer.h' include, and forward
3014 declaration for 'struct cmd_list_element'.
3015 (info_print_command_completer): Declare.
3016 * stack.c (_initialize_stack): Add completer for 'info locals' and
3018 * symtab.c (_initialize_symtab): Add completer for 'info
3019 variables' and 'info functions'.
3020 * NEWS: Mention completion for additional info commands.
3022 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3024 * cli/cli-utils.c (extract_info_print_args): Delete.
3025 (extract_arg_maybe_quoted): Delete.
3026 (info_print_options_defs): New variable.
3027 (make_info_print_options_def_group): New function.
3028 (extract_info_print_options): Define new function.
3029 * cli/cli-utils.h (extract_info_print_args): Delete.
3030 (struct info_print_options): New structure.
3031 (extract_info_print_options): Declare new function.
3032 * stack.c (info_locals_command): Update to use new
3033 extract_info_print_options, also add a header comment.
3034 (info_args_command): Likewise.
3035 * symtab.c (info_variables_command): Likewise.
3036 (info_functions_command): Likewise.
3038 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3040 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
3041 to extract string arguments.
3042 * common/common-utils.c (extract_string_maybe_quoted): New function.
3043 * common/common-utils.h (extract_string_maybe_quoted): Declare.
3045 2019-07-11 Tom Tromey <tromey@adacore.com>
3047 * main.c (get_init_files): Use GDBINIT, not gdbinit.
3048 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
3049 * top.h (gdbinit): Don't declare.
3050 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
3052 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
3053 * top.c (gdb_init): Don't call init_cli_cmds.
3055 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
3057 2019-07-11 Tom Tromey <tromey@adacore.com>
3059 * python/py-inferior.c (add_thread_object): Don't use thread_obj
3060 after it has been moved.
3062 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3064 * valops.c (value_must_coerce_to_target): Change return type to
3066 * value.h (value_must_coerce_to_target): Likewise.
3068 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
3070 * breakpoint.c (is_hardware_watchpoint): Remove
3071 forward-declaration.
3072 (is_masked_watchpoint): Change return type to bool.
3073 (is_tracepoint): Likewise.
3074 (is_breakpoint): Likewise.
3075 (is_hardware_watchpoint): Likewise.
3076 (is_watchpoint): Likewise.
3077 (is_no_memory_software_watchpoint): Likewise.
3078 (is_catchpoint): Likewise.
3079 (breakpoint_1): Make FILTER parameter's return type bool.
3080 is_masked_watchpoint): Change return type to bool.
3081 (save_breakpoints): Make FILTER parameter's return type bool.
3082 * breakpoint.h (is_breakpoint): Change return type to bool.
3083 (is_watchpoint): Likewise.
3084 (is_catchpoint): Likewise.
3085 (is_tracepoint): Likewise.
3087 2019-07-10 Tom Tromey <tom@tromey.com>
3089 * defs.h: Don't include gdbarch.h.
3090 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
3091 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
3092 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
3093 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
3094 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
3095 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
3096 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
3097 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
3098 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
3099 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
3100 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
3101 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
3102 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
3103 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
3104 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
3105 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
3106 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
3107 record-btrace.c, record.h, regcache-dump.c, regcache.h,
3108 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
3109 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
3110 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
3111 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
3112 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
3113 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
3114 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
3115 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
3116 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
3118 2019-07-10 Tom Tromey <tromey@adacore.com>
3120 * ada-lang.h (is_ada_exception_catchpoint): Declare.
3121 * breakpoint.c (init_ada_exception_breakpoint): Register as
3123 (print_one_breakpoint_location, print_one_breakpoint): Use
3124 is_ada_exception_catchpoint.
3125 * ada-lang.c (class ada_catchpoint_location): Pass
3126 bp_loc_software_breakpoint to bp_location constructor.
3127 (is_ada_exception_catchpoint): New function.
3129 2019-07-10 Tom Tromey <tromey@adacore.com>
3131 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
3133 (struct arm_exidx_entry): New method operator<.
3134 (struct arm_exidx_data) <section_maps>: Change type.
3135 (arm_exidx_data_free): Remove.
3136 (arm_exidx_data_key): Change type. Move lower.
3137 (arm_exidx_new_objfile): Update.
3138 (arm_compare_exidx_entries): Remove.
3139 (arm_find_exidx_entry, _initialize_arm_tdep)
3141 2019-07-10 Tom Tromey <tromey@adacore.com>
3143 * solib-spu.c (ocl_program_data_key): Change type.
3144 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
3147 2019-07-10 Tom Tromey <tromey@adacore.com>
3149 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
3150 (struct solib_aix_inferior_data) <library_list>: Change type.
3151 (solib_aix_inferior_data_handle): Change type.
3152 (get_solib_aix_inferior_data): Update.
3153 (solib_aix_free_library_list): Remove.
3154 (library_list_start_library): Update.
3155 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
3157 (solib_aix_get_library_list)
3158 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
3159 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
3161 2019-07-10 Tom Tromey <tromey@adacore.com>
3163 * solib-dsbt.c (struct dsbt_info): Add initializers.
3164 (solib_dsbt_pspace_data): Change type.
3165 (dsbt_pspace_data_cleanup): Remove.
3166 (get_dsbt_info, _initialize_dsbt_solib): Update.
3168 2019-07-10 Tom Tromey <tromey@adacore.com>
3170 * spu-tdep.c (spu_overlay_data): Change type.
3171 (spu_get_overlay_table, spu_overlay_new_objfile)
3172 (_initialize_spu_tdep): Update.
3174 2019-07-10 Tom Tromey <tromey@adacore.com>
3176 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
3178 (dbx_objfile_data_key): Change type and declare later.
3179 (DBX_SYMFILE_INFO): Rewrite.
3180 * dbxread.c (dbx_objfile_data_key): Change type.
3181 (dbx_symfile_init): Update.
3182 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
3183 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3184 (stabsect_build_psymtabs, _initialize_dbxread): Update.
3186 2019-07-10 Tom Tromey <tromey@adacore.com>
3188 * jit.c (jit_program_space_key): Change type. Move lower.
3189 (get_jit_program_space_data): Update.
3190 (jit_program_space_data_cleanup): Remove.
3191 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
3193 (struct jit_program_space_data): Add initializers.
3195 2019-07-10 Tom Tromey <tromey@adacore.com>
3197 * solib-darwin.c (struct darwin_info): Add initializers.
3198 (solib_darwin_pspace_data): Change type.
3199 (darwin_pspace_data_cleanup): Remove.
3200 (get_darwin_info, _initialize_darwin_solib): Update.
3202 2019-07-10 Tom Tromey <tromey@adacore.com>
3204 * remote-sim.c (struct sim_inferior_data): Add initializers,
3205 constructor, and destructor.
3206 (sim_inferior_data_key): Change type. Move lower.
3207 (check_for_duplicate_sim_descriptor): Update.
3208 (get_sim_inferior_data): Use new. Update.
3209 (~sim_inferior_data_cleanup): Rename from
3210 sim_inferior_data_cleanup. Simplify.
3211 (gdbsim_close_inferior, simulator_command)
3212 (sim_command_completer, _initialize_remote_sim): Update.
3213 (next_pid, INITIAL_PID): Move earlier.
3215 2019-07-10 Tom Tromey <tromey@adacore.com>
3217 * python/python-internal.h (create_thread_object): Return
3219 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
3220 * python/py-inferior.c (struct threadlist_entry): Add
3222 <thread_obj>: Now a gdbpy_ref.
3223 (thread_to_thread_object): Update.
3224 (add_thread_object): Use new.
3225 (delete_thread_object): Use delete.
3226 (infpy_threads): Update.
3227 (py_free_inferior): Update. Construct "inf_obj" after acquiring
3230 2019-07-10 Tom Tromey <tromey@adacore.com>
3232 * valops.c (value_cast): Specialize error message for Ada.
3234 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3236 * breakpoint.c (breakpoint_1): Update doc and parameter names.
3238 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3240 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
3241 bpstat_should_step): Return bool, adjust comments.
3242 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
3243 bpstat_should_step): Likewise.
3245 2019-07-10 Alan Hayward <alan.hayward@arm.com>
3247 * features/Makefile: Use feature target descriptions for Arm.
3248 * features/arm/arm-core.c: Generate new file.
3249 * features/arm/arm-fpa.c: Likewise.
3250 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
3251 * features/arm/arm-m-profile.c: Likewise.
3252 * features/arm/arm-vfpv2.c: Likewise.
3253 * features/arm/arm-vfpv3.c: Likewise.
3254 * features/arm/xscale-iwmmxt.c: Likewise.
3255 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
3257 2019-07-10 Alan Hayward <alan.hayward@arm.com>
3259 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
3262 2019-07-10 Alan Hayward <alan.hayward@arm.com>
3264 * features/aarch64-pauth.c: Regenerate.
3266 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
3268 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
3270 (bpstat_what): Use false instead of 0.
3272 2019-07-09 Pedro Alves <palves@redhat.com>
3274 * break-catch-throw.c (is_exception_catchpoint): New.
3275 * breakpoint.c (print_one_breakpoint_location): New parameter
3276 'raw_loc'. Handle it. Use
3277 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
3278 looking at the breakpoint's type.
3279 (print_one_breakpoint): If handling "maint info breakpoints", also
3280 print locations of exception catchpoints.
3281 * breakpoint.h (is_exception_catchpoint): Declare.
3283 2019-07-09 Pedro Alves <palves@redhat.com>
3285 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
3287 (allocate_location_exception_catchpoint): New.
3288 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
3289 (initialize_throw_catchpoint_ops): Install
3290 allocate_location_exception_catchpoint as allocate_location
3292 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
3293 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
3295 (breakpoint_address_is_meaningful): Delete.
3296 (bl_address_is_meaningful): New.
3297 (breakpoint_locations_match): Adjust comment.
3298 (bp_location_from_bp_type): New, factored out of...
3299 (bp_location::bp_location(breakpoint *)): ... this.
3300 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
3302 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
3303 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
3304 breakpoint_address_is_meaningful.
3305 (bp_locations_compare): Adjust comment.
3306 (update_global_location_list): Use bl_address_is_meaningful
3307 instead of breakpoint_address_is_meaningful.
3308 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
3310 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
3311 * python/py-breakpoint.c (bppy_get_location): No longer check
3312 whether location is null.
3314 2019-07-09 Pedro Alves <palves@redhat.com>
3317 * breakpoint.c (print_one_breakpoint_location): Remove
3318 single-location assert.
3320 2019-07-09 Tom Tromey <tom@tromey.com>
3322 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
3323 * configure: Rebuild.
3324 * configure.ac: Change common to gdbsupport.
3325 * gdbsupport: Rename from common.
3326 * acinclude.m4: Change common to gdbsupport.
3327 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
3328 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
3330 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
3331 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
3332 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
3333 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
3334 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
3335 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
3336 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
3337 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
3338 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
3339 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
3340 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
3341 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
3342 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
3343 coff-pe-read.c, command.h, compile/compile-c-support.c,
3344 compile/compile-c.h, compile/compile-cplus-symbols.c,
3345 compile/compile-cplus-types.c, compile/compile-cplus.h,
3346 compile/compile-loc2c.c, compile/compile.c, completer.c,
3347 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
3348 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
3349 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
3350 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
3351 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
3352 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
3353 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
3354 features/aarch64-core.c, features/aarch64-fpu.c,
3355 features/aarch64-pauth.c, features/aarch64-sve.c,
3356 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
3357 features/i386/32bit-core.c, features/i386/32bit-linux.c,
3358 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
3359 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
3360 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
3361 features/i386/64bit-core.c, features/i386/64bit-linux.c,
3362 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
3363 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
3364 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
3365 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
3366 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
3367 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
3368 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
3369 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
3370 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
3371 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
3372 go32-nat.c, guile/guile.c, guile/scm-ports.c,
3373 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
3374 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
3375 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
3376 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
3377 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
3378 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
3379 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
3380 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
3381 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
3382 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
3383 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
3384 minsyms.c, mips-linux-tdep.c, namespace.h,
3385 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
3386 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
3387 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
3388 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
3389 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
3390 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
3391 nat/linux-waitpid.c, nat/mips-linux-watch.c,
3392 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
3393 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
3394 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
3395 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
3396 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
3397 procfs.c, producer.c, progspace.h, psymtab.h,
3398 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
3399 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
3400 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
3401 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
3402 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
3403 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
3404 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
3405 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
3406 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
3407 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
3408 target-memory.c, target.c, target.h, target/waitstatus.c,
3409 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
3410 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
3411 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
3412 unittests/array-view-selftests.c,
3413 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
3414 unittests/common-utils-selftests.c,
3415 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
3416 unittests/format_pieces-selftests.c,
3417 unittests/function-view-selftests.c,
3418 unittests/lookup_name_info-selftests.c,
3419 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
3420 unittests/mkdir-recursive-selftests.c,
3421 unittests/observable-selftests.c,
3422 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
3423 unittests/parse-connection-spec-selftests.c,
3424 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
3425 unittests/scoped_fd-selftests.c,
3426 unittests/scoped_mmap-selftests.c,
3427 unittests/scoped_restore-selftests.c,
3428 unittests/string_view-selftests.c, unittests/style-selftests.c,
3429 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
3430 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
3431 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
3432 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
3433 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
3434 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
3436 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3438 * linespec.c (decode_digits_list_mode): Set explicit_line to a
3440 (decode_digits_ordinary): Set explicit_line field in sal.
3441 * symtab.c (skip_prologue_sal): Don't skip prologue for a
3442 symtab_and_line that was set on an explicit line number in
3443 assembler code. Do always update the recorded symtab and line if
3444 we do skip the prologue.
3446 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3448 * breakpoint.c (set_breakpoint_location_function): Remove
3449 explicit_loc parameter.
3450 (momentary_breakpoint_from_master): Update call to
3451 set_breakpoint_location_function.
3452 (add_location_to_breakpoint): Likewise.
3454 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3456 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
3457 required features based on default bfd type when no specific bfd
3460 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3462 * NEWS: Mention that GDB printf and eval commands can now print
3463 C-style and Ada-style convenience var strings without
3464 calling the inferior.
3465 * printcmd.c (printf_c_string): Locally print GDB internal var
3466 instead of transiting via the inferior.
3467 (printf_wide_c_string): Likewise.
3469 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3471 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
3473 2019-07-04 Tom Tromey <tom@tromey.com>
3476 * tui/tui-winsource.c (tui_clear_source_content): Update.
3477 (tui_source_window_base::set_is_exec_point_at): Fix comment.
3478 (tui_update_breakpoint_info): Update.
3479 (tui_set_exec_info_content): Update.
3480 * tui/tui-source.c (tui_set_source_content_nil): Update.
3481 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
3483 * tui/tui-data.h (enum tui_bp_flag): New.
3484 (tui_bp_flags): New enum flags type.
3485 (struct tui_source_element) <break_mode>: Change type. Rename
3487 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
3488 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
3490 * tui/tui-winsource.h: Fix comment.
3492 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3494 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
3495 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
3496 (store_fpregs_to_thread)
3497 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
3498 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
3499 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
3500 (IWMMXT_REGS_SIZE): Add define.
3501 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
3502 (fetch_vfp_regs, store_vfp_regs)
3503 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
3504 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
3506 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3508 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
3510 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
3511 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
3512 (ARM_INT_REGISTER_SIZE): ...to this.
3513 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
3514 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
3515 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
3516 (arm_linux_collect_gregset, supply_nwfpe_register)
3517 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
3519 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
3520 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
3521 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
3522 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
3523 (arm_return_in_memory, arm_store_return_value)
3524 (arm_get_longjmp_target, arm_register_g_packet_guesses)
3525 (arm_record_ld_st_multiple): Likewise.
3526 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
3527 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
3529 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3531 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
3532 AARCH64_DISPLACED_MODIFIED_INSNS.
3533 * aarch64-tdep.c (struct aarch64_displaced_step_data)
3534 (aarch64_displaced_step_copy_insn): Likewise.
3535 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
3536 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
3537 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
3538 ARM_DISPLACED_MODIFIED_INSNS.
3539 * arm-tdep.c (arm_gdbarch_init): Likewise.
3540 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
3541 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
3542 (struct arm_displaced_step_closure): Use
3543 ARM_DISPLACED_MODIFIED_INSNS.
3545 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3547 * features/Makefile: Remove unused xml files.
3548 * features/aarch64.xml: Remove.
3549 * features/i386/amd64-avx-avx512-linux.xml: Remove.
3550 * features/i386/amd64-avx-avx512.xml: Remove.
3551 * features/i386/amd64-avx-linux.xml: Remove.
3552 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
3553 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
3554 * features/i386/amd64-avx-mpx-linux.xml: Remove.
3555 * features/i386/amd64-avx-mpx.xml: Remove.
3556 * features/i386/amd64-avx.xml: Remove.
3557 * features/i386/amd64-linux.xml: Remove.
3558 * features/i386/amd64-mpx-linux.xml: Remove.
3559 * features/i386/amd64-mpx.xml: Remove.
3560 * features/i386/amd64.xml: Remove.
3561 * features/i386/i386-avx-avx512-linux.xml: Remove.
3562 * features/i386/i386-avx-avx512.xml: Remove.
3563 * features/i386/i386-avx-linux.xml: Remove.
3564 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
3565 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
3566 * features/i386/i386-avx-mpx-linux.xml: Remove.
3567 * features/i386/i386-avx-mpx.xml: Remove.
3568 * features/i386/i386-avx.xml: Remove.
3569 * features/i386/i386-linux.xml: Remove.
3570 * features/i386/i386-mmx-linux.xml: Remove.
3571 * features/i386/i386-mmx.xml: Remove.
3572 * features/i386/i386-mpx-linux.xml: Remove.
3573 * features/i386/i386-mpx.xml: Remove.
3574 * features/i386/i386.xml: Remove.
3575 * features/i386/x32-avx-avx512-linux.xml: Remove.
3576 * features/i386/x32-avx-linux.xml: Remove.
3577 * features/i386/x32-linux.xml: Remove.
3579 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3581 * regformats/aarch64.dat: Remove.
3582 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
3583 * regformats/i386/amd64-avx-linux.dat: Remove.
3584 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
3585 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
3586 * regformats/i386/amd64-linux.dat: Remove.
3587 * regformats/i386/amd64-mpx-linux.dat: Remove.
3588 * regformats/i386/amd64.dat: Remove.
3589 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
3590 * regformats/i386/i386-avx-linux.dat: Remove.
3591 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
3592 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
3593 * regformats/i386/i386-linux.dat: Remove.
3594 * regformats/i386/i386-mmx-linux.dat: Remove.
3595 * regformats/i386/i386-mpx-linux.dat: Remove.
3596 * regformats/i386/i386.dat: Remove.
3597 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
3598 * regformats/i386/x32-avx-linux.dat: Remove.
3599 * regformats/i386/x32-linux.dat: Remove.
3601 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3603 * aarch64-tdep.c: Remove xml self tests.
3604 * amd64-linux-tdep.c: Likewise.
3605 * amd64-tdep.c: Likewise.
3606 * i386-linux-tdep.c: Likewise.
3607 * i386-tdep.c: Likewise.
3609 2019-07-03 Pedro Alves <palves@redhat.com>
3612 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
3613 (pipe_cmd_option_defs): New.
3614 (make_pipe_cmd_options_def_group): New.
3615 (pipe_command): Use gdb::option::process_options.
3616 (pipe_command_completer): New function.
3617 (_initialize_cli_cmds): Install completer for "pipe" command.
3619 2019-07-03 Pedro Alves <palves@redhat.com>
3621 * cli/cli-option.c (union option_value) <string>: New field.
3622 (struct option_def_and_value): Add ctor, move ctor, dtor and
3623 use DISABLE_COPY_AND_ASSIGN.
3624 (option_def_and_value::clear_value): New.
3625 (parse_option, save_option_value_in_ctx, get_val_type_str)
3626 (add_setshow_cmds_for_options): Handle var_string.
3627 * cli-option.h (union option_def::var_address) <string>: New
3629 (struct string_option_def): New.
3630 * maint-test-options.c (struct test_options_opts): Add default
3631 ctor and use DISABLE_COPY_AND_ASSIGN.
3632 <string_opt>: New field.
3633 (test_options_opts::~test_options_opts): New.
3634 (test_options_opts::dump): Also dump "-string".
3635 (test_options_option_defs): Install "string.
3637 2019-07-03 Pedro Alves <palves@redhat.com>
3639 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
3640 option_value with a null enumeration.
3641 (complete_options): Save the option values in the context.
3642 (save_option_value_in_ctx): New, factored out from ...
3643 (process_options): ... here.
3644 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
3646 * maint-test-options.c (test_options_opts::dump): New, factored
3648 (maintenance_test_options_command_mode): ... here.
3649 (maintenance_test_options_command_completion_result): Delete.
3650 (maintenance_test_options_command_completion_text): Update
3652 (maintenance_show_test_options_completion_result): Change
3653 prototype. Just print
3654 maintenance_test_options_command_completion_text.
3655 (save_completion_result): New.
3656 (maintenance_test_options_completer_mode): Pass options context to
3657 complete_options, and then save a dump.
3658 (_initialize_maint_test_options): Use add_cmd to install "maint
3659 show test-options-completion-result".
3661 2019-07-03 Pedro Alves <palves@redhat.com>
3663 * NEWS (New commands): Mention "with" and "maint with".
3664 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
3665 (with_command, with_command_completer): New.
3666 (pipe_command): Adjust to new repeat_previous
3668 (_initialize_cli_cmds): Install the "with" command and its "w"
3670 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
3672 * cli/cli-setshow.c (parse_cli_var_uinteger)
3673 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
3674 argument strings for all var_types.
3675 (get_setshow_command_value_string): New, factored out from ...
3676 (do_show_command): ... this.
3677 * cli/cli-setshow.h: Include <string>.
3678 (get_setshow_command_value_string): Declare.
3679 * command.h (repeat_previous): Now returns const char *. Adjust
3681 * maint.c: Include "cli/cli-cmds.h".
3682 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
3683 (_initialize_maint_cmds): Register the "maintenance with" command.
3684 * top.c (repeat_previous): Move bits from pipe_command here:
3685 Return the saved command line, if any; error out if there's no
3686 command to relaunch.
3688 2019-07-03 Pedro Alves <palves@redhat.com>
3690 * NEWS (New commands): Mention "maint set/show test-settings"
3691 instead of "maint test-settings".
3692 * maint-test-settings.c (maintenance_test_settings_list): Delete.
3693 (maintenance_test_settings_set_list): Rename to ...
3694 (maintenance_set_test_settings_list): ... this.
3695 (maintenance_test_settings_show_list): Rename to ...
3696 (maintenance_show_test_settings_list): ... this.
3697 (maintenance_test_settings_cmd): Delete.
3698 (maintenance_test_settings_set_cmd): ...
3699 (maintenance_set_test_settings_cmd): ... this.
3700 (maintenance_test_settings_show_cmd): ...
3701 (maintenance_show_test_settings_cmd): ... this.
3702 (maintenance_test_settings_show_value_cmd):
3703 (maintenance_show_test_settings_value_cmd): ... this.
3704 (_initialize_maint_test_settings): No longer install the "maint
3705 test-settings" prefix command. Rename "maint test-settings set"
3706 to "maint set test-settings", and "maint test-settings show" to
3707 "maint show test-settings". Adjust all subcommands.
3709 2019-07-03 Pedro Alves <palves@redhat.com>
3711 * maint-test-settings.c: Fix file's intro comment. Replace all
3712 references to "test-options" with references to "test-settings",
3715 2019-07-03 Pedro Alves <palves@redhat.com>
3717 * maint-test-settings.c (maintenance_test_settings_xxx)
3718 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
3720 (maintenance_test_settings_enums): Use them.
3721 (maintenance_test_settings_enum): Default to
3722 maintenance_test_settings_xxx.
3723 (_initialize_maint_test_settings): Initialize
3724 MAINTENANCE_TEST_SETTINGS_FILENAME.
3726 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3728 * breakpoint.h (remove_breakpoints_inf): Change return type to
3729 void, move function documentation here.
3730 * breakpoint.c (remove_breakpoints_inf): Change return type to
3731 void, move function documentation to header.
3733 2019-07-02 Pedro Alves <palves@redhat.com>
3735 * NEWS (Completion improvements): Mention "info threads".
3736 * thread.c (struct info_threads_opts, info_threads_option_defs)
3737 (make_info_threads_options_def_group): New.
3738 (info_threads_command): Use gdb::option::process_options.
3739 (info_threads_command_completer): New.
3740 (_initialize_thread): Use gdb::option::build_help to build the
3741 help text for "info threads".
3743 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3745 * defs.h (generic_load): Move from here...
3746 * symfile.h (generic_load): ... to here. Rename name parameter
3748 * symfile.c (generic_load): Add comment.
3750 2019-07-01 Tom Tromey <tromey@adacore.com>
3753 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
3754 declaration of without_params. Fix formatting.
3756 2019-07-01 Tom Tromey <tromey@adacore.com>
3758 * ada-exp.y (find_primitive_type): Update.
3759 * ada-lang.h (ada_lookup_symbol): Update.
3760 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
3762 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
3764 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
3766 PR breakpoints/24541
3767 * gdbarch.c: Regenerate.
3768 * gdbarch.h: Regenerate.
3769 * gdbarch.sh: Add 'stap_adjust_register'.
3770 * i386-tdep.c: Include '<unordered_set>'.
3771 (i386_stap_adjust_register): New function.
3772 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
3773 * stap-probe.c (stap_parse_register_operand): Call
3774 'gdbarch_stap_adjust_register'.
3776 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
3779 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
3780 * python/python.c (do_start_initialization): Use 'xmalloc'
3781 instead of 'PyMem_Malloc'.
3783 2019-06-28 Tom Tromey <tromey@adacore.com>
3785 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
3788 2019-06-27 Tom Tromey <tromey@adacore.com>
3790 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
3792 (arm_find_mapping_symbol, arm_record_special_symbol)
3793 (_initialize_arm_tdep): Update.
3794 (arm_objfile_data_free): Remove.
3796 2019-06-27 Tom Tromey <tromey@adacore.com>
3798 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
3799 to cp_print_static_field.
3801 2019-06-26 Tom Tromey <tromey@adacore.com>
3803 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
3804 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
3807 2019-06-26 Alan Hayward <alan.hayward@arm.com>
3809 * features/aarch64-core.c (create_feature_aarch64_core):
3811 * features/aarch64-core.xml: Add cpsr flags.
3813 2019-06-26 Alan Hayward <alan.hayward@arm.com>
3815 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
3816 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
3818 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
3820 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
3822 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
3824 (arm_record_special_symbol): Don't insert new symbol in sorted
3825 position, push it at the end.
3827 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
3829 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
3830 (arm_mapping_symbol_s): Remove.
3831 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
3832 (arm_mapping_symbol_vec): New typedef.
3833 (struct arm_per_objfile): Add constructor.
3834 <section_maps>: Change type to
3835 std::unique_ptr<arm_mapping_symbol_vec[]>.
3836 (arm_compare_mapping_symbols): Remove.
3837 (arm_find_mapping_symbol): Adjust to section_maps type change.
3838 (arm_objfile_data_free): Call delete on arm_per_objfile.
3839 (arm_record_special_symbol): Adjust to section_maps type change.
3840 Allocate arm_per_objfile with new.
3842 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3844 * cli/cli-cmds.c (alias_command): Compare the alias prefix
3845 with the command prefix.
3847 2019-06-25 Tom Tromey <tom@tromey.com>
3849 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
3850 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
3852 2019-06-25 Tom Tromey <tom@tromey.com>
3854 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
3856 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
3859 2019-06-25 Tom Tromey <tom@tromey.com>
3861 * tui/tui-winsource.c
3862 (tui_source_window_base::set_is_exec_point_at): Add check against
3865 2019-06-25 Tom Tromey <tom@tromey.com>
3867 * tui/tui-source.c (tui_set_source_content): Don't check before
3869 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
3871 2019-06-25 Tom Tromey <tom@tromey.com>
3873 * tui/tui-winsource.h (tui_update_source_window_as_is)
3874 (tui_alloc_source_buffer, tui_line_is_displayed)
3875 (tui_addr_is_displayed): Change type of win_info.
3876 * tui/tui-winsource.c (tui_update_source_window_as_is)
3877 (tui_clear_source_content, tui_show_source_line)
3878 (tui_show_source_content, tui_source_window_base::refill)
3879 (tui_source_window_base::set_is_exec_point_at)
3880 (tui_source_window_base::set_is_exec_point_at)
3881 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
3882 (tui_alloc_source_buffer, tui_line_is_displayed)
3883 (tui_addr_is_displayed): Change type of win_info. Update.
3884 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3885 (tui_source_window_base::do_make_visible_with_new_height):
3887 * tui/tui-source.c (tui_set_source_content)
3888 (tui_set_source_content_nil)
3889 (tui_source_window::do_scroll_vertical): Update.
3890 * tui/tui-layout.c (show_layout): Update.
3891 * tui/tui-disasm.c (tui_set_disassem_content)
3892 (tui_disasm_window::do_scroll_vertical): Update.
3893 * tui/tui-data.h (tui_win_content): Remove.
3894 (struct tui_gen_win_info) <content, content_size>: Remove.
3895 (struct tui_source_element): Add initializers and destructor.
3896 (union tui_which_element, struct tui_win_element): Remove.
3897 (struct tui_source_window_base) <content>: New field.
3898 (struct tui_data_window): Remove destructor.
3899 (tui_alloc_content, tui_free_win_content)
3900 (tui_free_all_source_wins_content): Don't declare.
3901 * tui/tui-data.c (tui_initialize_static_data): Update.
3902 (init_content_element, tui_alloc_content): Remove.
3903 (~tui_gen_win_info): Update.
3904 (~tui_data_window, tui_free_all_source_wins_content)
3905 (tui_free_win_content, free_content, free_content_elements):
3908 2019-06-25 Tom Tromey <tom@tromey.com>
3910 * tui/tui-winsource.h (tui_clear_source_content)
3911 (tui_erase_source_content, tui_show_source_content): Change type
3913 * tui/tui-winsource.c (tui_clear_source_content)
3914 (tui_erase_source_content, tui_show_source_content): Change type
3916 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3917 * tui/tui-source.h (tui_set_source_content_nil): Change type of
3919 * tui/tui-source.c (tui_set_source_content_nil): Change type of
3921 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
3923 2019-06-25 Tom Tromey <tom@tromey.com>
3925 * tui/tui-winsource.c (tui_clear_source_content)
3926 (tui_source_window_base::set_is_exec_point_at): Update.
3927 * tui/tui-source.c (tui_set_source_content_nil): Update.
3928 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
3930 * tui/tui-data.c (init_content_element): Update.
3932 2019-06-25 Tom Tromey <tom@tromey.com>
3934 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
3935 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
3936 * tui/tui-layout.c (init_and_make_win): Update.
3937 * tui/tui.h (enum tui_win_type): Update.
3938 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
3939 tui_win_is_auxillary.
3940 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
3941 tui_win_is_auxillary.
3943 2019-06-25 Tom Tromey <tom@tromey.com>
3945 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
3946 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
3947 (tui_delete_data_content_windows, tui_display_all_data)
3948 (tui_data_window::do_scroll_vertical, tui_display_data_from):
3950 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
3951 * tui/tui-regs.c (tui_last_regs_line_no)
3952 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
3953 (tui_show_registers): Update.
3954 (tui_show_register_group): Return void. Update.
3955 (tui_display_registers_from, tui_display_reg_element_at_line)
3956 (tui_display_registers_from_line, tui_check_register_values):
3958 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
3960 (struct tui_data_window) <regs_content>: Now a std::vector.
3961 <regs_content_count>: Remove.
3962 (tui_add_content_elements, tui_free_data_content): Don't declare.
3963 * tui/tui-data.c (tui_data_window::clear_detail): Update.
3964 (init_content_element): Remove DATA_WIN case. Add assert.
3965 (tui_add_content_elements): Remove.
3966 (tui_data_window): Update.
3967 (tui_free_data_content): Remove.
3968 (free_content_elements): Remove DATA_WIN case.
3970 2019-06-25 Tom Tromey <tom@tromey.com>
3972 * tui/tui-data.c (tui_data_item_window): Update.
3973 * tui/tui-windata.h (tui_check_data_values): Don't declare.
3974 * tui/tui-windata.c (tui_display_all_data)
3975 (tui_display_data_from_line): Update.
3976 (tui_check_data_values): Remove.
3977 * tui/tui-regs.c (tui_show_register_group)
3978 (tui_display_reg_element_at_line): Update.
3979 * tui/tui-hooks.c (tui_register_changed)
3980 (tui_refresh_frame_and_register_information): Call
3981 tui_check_register_values.
3982 * tui/tui-data.h (struct tui_data_window) <data_content,
3983 data_content_count, data_type>: Remove.
3984 (enum tui_data_type): Remove.
3986 * tui/tui-data.c (tui_data_window::clear_detail)
3987 (~tui_data_window): Update.
3989 2019-06-25 Tom Tromey <tom@tromey.com>
3991 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
3993 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
3994 Rename from tui_first_data_item_displayed. Update.
3995 (tui_data_window::refresh_all)
3996 (tui_data_window::do_scroll_vertical): Update.
3997 * tui/tui-data.h (struct tui_data_window)
3998 <first_data_item_displayed>: Declare new method.
4000 2019-06-25 Tom Tromey <tom@tromey.com>
4002 * tui/tui-data.h (tui_init_generic_part): Don't declare.
4003 * tui/tui-data.c (tui_init_generic_part): Remove, moving
4005 (tui_initialize_static_data): ...here.
4007 2019-06-25 Tom Tromey <tom@tromey.com>
4009 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4010 (tui_display_registers_from, tui_check_register_values): Update.
4011 (tui_display_register): Remove win_info parameter; update.
4012 (tui_get_register): Change type of parameters.
4013 * tui/tui-data.h (struct tui_data_element): Remove.
4014 (union tui_which_element) <data>: Remove.
4015 <data_window>: Change type.
4016 (struct tui_data_item_window): New.
4017 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
4019 (~tui_data_item_window): New destructor.
4020 (free_content_elements): Remove DATA_ITEM_WIN case.
4022 2019-06-25 Tom Tromey <tom@tromey.com>
4024 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
4027 2019-06-25 Tom Tromey <tom@tromey.com>
4029 * tui/tui-data.h (struct tui_command_element): Remove.
4030 (union tui_which_element) <command>: Remove.
4031 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
4033 (free_content_elements): Remove CMD_WIN case.
4035 2019-06-25 Tom Tromey <tom@tromey.com>
4037 * tui/tui-layout.c (tui_set_layout): Update.
4038 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
4039 * tui/tui-data.c (layout_def): Update.
4041 2019-06-25 Tom Tromey <tom@tromey.com>
4043 * tui/tui-wingeneral.c (tui_refresh_all): Update.
4044 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4045 (tui_source_window_base::set_new_height): Update.
4046 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
4048 (tui_set_locator_fullname, tui_set_locator_info)
4049 (tui_show_frame_info): Update.
4050 * tui/tui-source.c (tui_set_source_content)
4051 (tui_source_is_displayed): Update.
4052 * tui/tui-layout.c (show_source_disasm_command, show_data)
4053 (show_source_or_disasm_and_command): Update.
4054 * tui/tui-disasm.c (tui_set_disassem_content)
4055 (tui_get_begin_asm_address): Update.
4056 * tui/tui-data.h (struct tui_locator_element): Remove.
4057 (union tui_which_element) <locator>: Remove.
4058 (struct tui_locator_window): New.
4059 (tui_locator_win_info_ptr): Change return type.
4060 * tui/tui-data.c (_locator): Change type.
4061 (tui_locator_win_info_ptr): Change return type.
4062 (init_content_element): Remove LOCATOR_WIN case. Add assert.
4063 (tui_alloc_content): Add assert.
4065 2019-06-25 Tom Tromey <tom@tromey.com>
4067 * tui/tui-winsource.c
4068 (tui_exec_info_window::maybe_allocate_content): New method.
4069 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
4070 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
4071 (make_source_or_disasm_window): Add cast.
4072 * tui/tui-data.h (union tui_which_element) <simple_string>:
4074 (struct tui_source_info): New.
4075 (struct tui_source_window_base) <execution_info>: Change type.
4076 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
4077 case, and add assert.
4078 (tui_alloc_content): Add assert.
4080 2019-06-25 Tom Tromey <tom@tromey.com>
4082 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
4083 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
4084 * tui/tui-data.c (tui_alloc_win_info): Remove.
4086 2019-06-25 Tom Tromey <tom@tromey.com>
4088 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
4089 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
4092 2019-06-25 Tom Tromey <tom@tromey.com>
4094 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
4095 make_visible_with_new_height method.
4096 (tui_win_info::make_visible_with_new_height): New method.
4097 (tui_source_window_base::do_make_visible_with_new_height)
4098 (tui_data_window::do_make_visible_with_new_height)
4099 (tui_cmd_window::do_make_visible_with_new_height): New methods.
4100 (make_visible_with_new_height): Remove.
4101 (tui_resize_all, tui_adjust_win_heights): Use
4102 make_visible_with_new_height method.
4103 * tui/tui-data.h (struct tui_win_info)
4104 <do_make_visible_with_new_height, make_visible_with_new_height>:
4106 (struct tui_source_window_base, struct tui_data_window)
4107 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
4110 2019-06-25 Tom Tromey <tom@tromey.com>
4112 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
4114 (update_tab_width): Call update_tab_width method.
4115 * tui/tui-data.h (struct tui_win_info)
4116 (struct tui_source_window_base) <update_tab_width>: New methods.
4118 2019-06-25 Tom Tromey <tom@tromey.com>
4120 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
4122 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
4124 (tui_gen_win_info::make_visible): Update.
4125 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
4127 * tui/tui-data.h (enum tui_box): New enum.
4128 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
4130 2019-06-25 Tom Tromey <tom@tromey.com>
4132 * tui/tui-layout.c (make_source_or_disasm_window): Always use
4133 init_and_make_win for EXEC_INFO_WIN.
4134 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
4136 (struct tui_win_info) <~tui_win_info>: Inline.
4137 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4139 * tui/tui-data.c (source_win, disasm_win): Remove globals.
4140 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4142 (tui_initialize_static_data): Update.
4143 (~tui_gen_win_info): Handle more cleanup here.
4144 (~tui_source_window_base): Delete "execution_info".
4145 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
4147 2019-06-25 Tom Tromey <tom@tromey.com>
4149 * tui/tui-layout.c (make_command_window): Don't set
4151 (show_source_disasm_command): Call the reset method.
4152 (show_data): Don't set can_highlight. Call the reset method.
4153 (tui_gen_win_info::reset): Rename from init_gen_win_info
4154 (init_and_make_win): Simplify. Return tui_gen_win_info.
4155 (show_source_or_disasm_and_command): Call the reset method.
4156 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
4157 (struct tui_cmd_window): Set can_highlight.
4159 2019-06-25 Tom Tromey <tom@tromey.com>
4161 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
4163 (tui_make_visible, tui_make_invisible): Rewrite.
4164 (tui_win_info::make_visible): Remove.
4165 (tui_source_window_base::make_visible): Update.
4166 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
4167 method. Moved from...
4168 (struct tui_win_info) <make_visible>: ...here.
4170 2019-06-25 Tom Tromey <tom@tromey.com>
4172 * tui/tui-winsource.c
4173 (tui_source_window_base::do_scroll_horizontal): Remove direction
4175 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
4176 direction parameter.
4177 * tui/tui-win.c (tui_win_info::forward_scroll)
4178 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
4179 (tui_win_info::right_scroll): Update.
4180 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
4181 direction parameter.
4182 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
4183 direction parameter.
4184 * tui/tui-data.h (enum tui_scroll_direction): Remove.
4185 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
4186 Remove direction parameter.
4187 (struct tui_source_window_base, struct tui_source_window)
4188 (struct tui_disasm_window, struct tui_data_window)
4189 (struct tui_cmd_window): Update.
4191 2019-06-25 Tom Tromey <tom@tromey.com>
4193 * tui/tui-winsource.h (tui_set_exec_info_content)
4194 (tui_show_exec_info_content, tui_erase_exec_info_content)
4195 (tui_clear_exec_info_content, tui_update_exec_info): Change
4196 argument to tui_source_window_base.
4197 * tui/tui-winsource.c (tui_set_exec_info_content)
4198 (tui_show_exec_info_content, tui_erase_exec_info_content)
4199 (tui_clear_exec_info_content, tui_update_exec_info): Change
4200 argument to tui_source_window_base.
4202 2019-06-25 Tom Tromey <tom@tromey.com>
4204 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
4205 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
4207 2019-06-25 Tom Tromey <tom@tromey.com>
4209 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
4212 2019-06-25 Tom Tromey <tom@tromey.com>
4214 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
4216 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
4218 * tui/tui-source.c (tui_set_source_content): Update.
4219 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4221 2019-06-25 Tom Tromey <tom@tromey.com>
4223 * tui/tui-win.c (window_name_completer, tui_set_focus)
4224 (tui_all_windows_info): Use name method.
4225 * tui/tui-data.h (struct tui_gen_win_info)
4226 (struct tui_source_window, struct tui_disasm_window)
4227 (struct tui_data_window, struct tui_cmd_window) <name>: New
4229 (tui_win_name): Don't declare.
4230 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
4231 (tui_win_name): Remove.
4233 2019-06-25 Tom Tromey <tom@tromey.com>
4235 * tui/tui-winsource.h (tui_update_source_window)
4236 (tui_update_source_window_as_is): Change parameter type.
4237 * tui/tui-winsource.c (tui_update_source_window): Change win_info
4238 to be a tui_source_window_base.
4239 (tui_update_source_window_as_is): Likewise.
4240 * tui/tui-win.c (make_visible_with_new_height): Update.
4242 2019-06-25 Tom Tromey <tom@tromey.com>
4244 * tui/tui-winsource.c (tui_erase_source_content)
4245 (tui_show_source_content, tui_show_exec_info_content)
4246 (tui_erase_exec_info_content): Use refresh_window method.
4247 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
4248 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
4249 from tui_refresh_win.
4250 (tui_data_window::refresh_window): New method.
4251 (tui_win_info::refresh, tui_source_window_base::refresh)
4252 (tui_refresh_all): Use refresh_window method.
4253 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
4255 * tui/tui-regs.c (tui_display_register): Call refresh_window
4257 * tui/tui-layout.c (show_source_disasm_command)
4258 (show_source_or_disasm_and_command): Call refresh_window method.
4259 * tui/tui-data.h (struct tui_gen_win_info)
4260 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
4263 2019-06-25 Tom Tromey <tom@tromey.com>
4265 * tui/tui.c (tui_rl_other_window, tui_enable)
4266 (tui_is_window_visible, tui_get_command_dimension): Update.
4267 * tui/tui-winsource.c (tui_update_source_window_as_is)
4268 (tui_clear_source_content, tui_erase_source_content)
4269 (tui_show_source_line, tui_source_window_base::refill)
4270 (tui_source_window_base::do_scroll_horizontal)
4271 (tui_source_window_base::set_is_exec_point_at)
4272 (tui_update_breakpoint_info, tui_set_exec_info_content)
4273 (tui_alloc_source_buffer, tui_line_is_displayed)
4274 (tui_addr_is_displayed): Update.
4275 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
4276 (tui_check_and_display_highlight_if_needed)
4277 (tui_win_info::make_visible, tui_win_info::refresh)
4278 (tui_refresh_all): Update.
4279 * tui/tui-windata.c (tui_first_data_item_displayed)
4280 (tui_delete_data_content_windows, tui_erase_data_content)
4281 (tui_display_all_data, tui_data_window::refresh_all)
4282 (tui_check_data_values): Update.
4283 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
4284 (tui_set_win_focus_to, tui_win_info::forward_scroll)
4285 (tui_win_info::backward_scroll, tui_refresh_all_win)
4286 (tui_resize_all, tui_set_focus, tui_all_windows_info)
4287 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
4288 (tui_source_window_base::set_new_height)
4289 (tui_data_window::set_new_height)
4290 (make_invisible_and_set_new_height)
4291 (make_visible_with_new_height, new_height_ok)
4292 (parse_scrolling_args): Update.
4293 * tui/tui-stack.c (tui_show_frame_info): Update.
4294 * tui/tui-source.c (tui_set_source_content)
4295 (tui_set_source_content_nil, tui_source_is_displayed)
4296 (tui_source_window::do_scroll_vertical): Update.
4297 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4298 (tui_display_registers_from, tui_display_reg_element_at_line)
4299 (tui_check_register_values, tui_reg_command): Update.
4300 * tui/tui-layout.c (tui_default_win_height)
4301 (show_source_disasm_command, show_data, init_and_make_win)
4302 (show_source_or_disasm_and_command): Update.
4303 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
4304 (tui_redisplay_readline, tui_mld_flush)
4305 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
4307 * tui/tui-disasm.c (tui_set_disassem_content)
4308 (tui_disasm_window::do_scroll_vertical): Update.
4309 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
4311 (struct tui_win_info): Derive from tui_gen_win_info.
4312 <~tui_win_info>: Mark as override.
4313 <generic>: Remove member.
4314 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
4315 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
4316 (~tui_data_window, ~tui_win_info)
4317 (tui_free_all_source_wins_content): Update.
4318 * tui/tui-command.c (tui_refresh_cmd_win): Update.
4320 2019-06-25 Tom Tromey <tom@tromey.com>
4322 * tui/tui-layout.c (init_and_make_win): Use new.
4323 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
4324 destructor, initializers.
4325 (tui_alloc_generic_win_info): Don't declare.
4326 * tui/tui-data.c (_locator): Add argument to constructor.
4327 (source_win, disasm_win): New globals.
4328 (exec_info): Remove.
4329 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4331 (tui_alloc_generic_win_info): Remove.
4332 (init_content_element): Use new.
4333 (tui_win_info::tui_win_info): Update.
4334 (free_content_elements) <case DATA_WIN>: Use delete.
4336 2019-06-25 Tom Tromey <tom@tromey.com>
4338 * tui/tui-wingeneral.c (tui_refresh_win): Update.
4339 * tui/tui-windata.c (tui_first_data_item_displayed)
4340 (tui_delete_data_content_windows): Update.
4341 * tui/tui-win.c (tui_data_window::set_new_height): Update.
4342 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4343 (tui_display_registers_from, tui_check_register_values): Update.
4344 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
4346 * tui/tui-data.c (init_content_element): Update. Allocate the new
4348 (tui_free_data_content): Update.
4349 (free_content_elements) <case DATA_WIN>: Free the window.
4351 2019-06-25 Tom Tromey <tom@tromey.com>
4353 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
4355 * tui/tui-layout.c (make_command_window)
4356 (show_source_disasm_command, show_data, init_and_make_win)
4357 (show_source_or_disasm_and_command): Update.
4358 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
4360 <can_highight, is_highlighted>: Now bool.
4361 (tui_set_win_highlight): Don't declare.
4362 * tui/tui-data.c (tui_set_win_highlight): Remove.
4364 2019-06-25 Tom Tromey <tom@tromey.com>
4366 * tui/tui-wingeneral.c (make_visible): Remove check of window
4369 2019-06-25 Tom Tromey <tom@tromey.com>
4371 * tui/tui-win.c (tui_win_info::max_height)
4372 (tui_cmd_window::max_height): New methods.
4373 (new_height_ok): Call max_height.
4374 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
4375 <max_height>: New method.
4377 2019-06-25 Tom Tromey <tom@tromey.com>
4379 * tui/tui-win.c (tui_source_window_base::set_new_height)
4380 (tui_data_window::set_new_height): New methods.
4381 (make_invisible_and_set_new_height): Call set_new_height method.
4382 * tui/tui-data.h (struct tui_win_info)
4383 (struct tui_source_window_base, struct tui_data_window)
4384 <set_new_height>: New method.
4386 2019-06-25 Tom Tromey <tom@tromey.com>
4388 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
4389 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
4390 tui_refresh_data_win.
4391 * tui/tui-win.c (tui_source_window_base::refresh_all): New
4393 (tui_refresh_all_win): Call the refresh_all method.
4394 (tui_set_focus): Likewise.
4395 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
4396 (struct tui_source_window_base, struct tui_data_window) <refresh>:
4399 2019-06-25 Tom Tromey <tom@tromey.com>
4401 * tui/tui-winsource.h (tui_refill_source_window)
4402 (tui_set_is_exec_point_at): Don't declare.
4403 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4404 (tui_source_window_base::refill): Rename from
4405 tui_refill_source_window.
4406 (tui_source_window_base::do_scroll_horizontal): Update.
4407 (tui_source_window_base::set_is_exec_point_at): Rename from
4408 tui_set_is_exec_point_at.
4409 (tui_update_all_breakpoint_info): Update.
4410 * tui/tui-stack.c (tui_show_frame_info): Update.
4411 * tui/tui-layout.c (show_data): Add cast.
4412 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
4413 * tui/tui-data.h (struct tui_source_window_base) <refill,
4414 set_is_exec_point_at>: New methods.
4415 (tui_source_windows, tui_add_to_source_windows): Update types.
4416 (tui_add_to_source_windows): Remove redundant declaration.
4417 * tui/tui-data.c (source_windows): Store tui_source_window_base.
4418 (tui_source_windows): Change return type.
4419 (tui_clear_source_windows_detail): Update.
4420 (tui_add_to_source_windows): Change type of parameter.
4421 (tui_free_all_source_wins_content): Update.
4423 2019-06-25 Tom Tromey <tom@tromey.com>
4425 * tui/tui-wingeneral.c (tui_win_info::refresh)
4426 (tui_source_window_base::refresh): New methods.
4427 (tui_refresh_all): Call the refresh method.
4428 * tui/tui-data.h (struct tui_win_info)
4429 (struct tui_source_window_base) <refresh>: New method.
4431 2019-06-25 Tom Tromey <tom@tromey.com>
4433 * tui/tui.h (tui_is_window_visible): Return bool.
4434 * tui/tui.c (tui_is_window_visible): Return bool.
4435 * tui/tui-wingeneral.c (tui_make_window, make_visible)
4436 (tui_make_visible, tui_make_invisible)
4437 (tui_win_info::make_visible)
4438 (tui_source_window_base::make_visible, make_all_visible)
4439 (tui_make_all_visible, tui_make_all_invisible): Update.
4440 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
4441 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
4443 (struct tui_win_info, struct tui_source_window_base)
4444 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
4445 * tui/tui-data.c (tui_init_generic_part): Update.
4447 2019-06-25 Tom Tromey <tom@tromey.com>
4449 * tui/tui-wingeneral.c (tui_win_info::make_visible)
4450 (tui_source_window_base::make_visible): New methods.
4451 (make_all_visible): Make method call.
4452 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
4453 (struct tui_source_window_base, struct tui_cmd_window): Override
4455 (tui_win_is_source_type): Don't declare.
4456 * tui/tui-data.c (tui_win_is_source_type): Remove.
4458 2019-06-25 Tom Tromey <tom@tromey.com>
4460 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
4463 2019-06-25 Tom Tromey <tom@tromey.com>
4465 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
4466 Inline constructor. Add initializers for members.
4467 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
4468 constructors; now inline in class.
4470 2019-06-25 Tom Tromey <tom@tromey.com>
4472 * tui/tui-regs.c (tui_show_registers): Update.
4473 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
4475 * tui/tui-data.c (tui_data_window::clear_detail)
4476 (tui_data_window): Update.
4478 2019-06-25 Tom Tromey <tom@tromey.com>
4480 * tui/tui-windata.c (tui_display_all_data)
4481 (tui_display_data_from_line, tui_display_data_from)
4482 (tui_check_data_values, tui_data_window::do_scroll_vertical):
4484 * tui/tui-regs.c (tui_last_regs_line_no)
4485 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
4486 (tui_show_registers, tui_show_register_group)
4487 (tui_display_registers_from, tui_display_reg_element_at_line)
4488 (tui_display_registers_from_line, tui_check_register_values)
4489 (tui_reg_next, tui_reg_prev): Update.
4490 * tui/tui-layout.c (tui_set_layout, show_data): Update.
4491 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
4493 (struct tui_win_info) <detail>: Remove. Add new fields from
4495 (TUI_DATA_WIN): Add cast.
4496 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
4497 (~tui_data_window): Simplify.
4499 2019-06-25 Tom Tromey <tom@tromey.com>
4501 * tui/tui-layout.c (show_source_disasm_command)
4502 (show_source_or_disasm_and_command): Update.
4503 * tui/tui-io.c (update_cmdwin_start_line)
4504 (tui_redisplay_readline): Update.
4505 * tui/tui-data.h (struct tui_command_info): Remove.
4506 (struct tui_win_info) <detail>: Remove command_info member.
4507 (struct tui_data_window) <start_line>: New member, from
4509 (TUI_CMD_WIN): Add casts.
4511 2019-06-25 Tom Tromey <tom@tromey.com>
4513 * tui/tui-winsource.c (tui_update_source_window)
4514 (tui_refill_source_window)
4515 (tui_source_window_base::do_scroll_horizontal)
4516 (tui_update_breakpoint_info, tui_set_exec_info_content)
4517 (tui_show_exec_info_content, tui_erase_exec_info_content)
4518 (tui_clear_exec_info_content): Update.
4519 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
4521 * tui/tui-win.c (make_invisible_and_set_new_height)
4522 (make_visible_with_new_height): Update.
4523 * tui/tui-source.c (tui_set_source_content)
4524 (tui_show_symtab_source): Update.
4525 * tui/tui-layout.c (extract_display_start_addr)
4526 (show_source_disasm_command, show_data)
4527 (make_source_or_disasm_window)
4528 (show_source_or_disasm_and_command): Update.
4529 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
4530 (tui_disasm_window::do_scroll_vertical): Remove shadowing
4532 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
4533 to tui_source_window_base.
4534 (struct tui_win_info) <detail>: Remove source_info member.
4535 (struct tui_source_window_base) <has_locator>: Inline.
4536 Move contents from tui_source_info; rename has_locator member to
4538 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
4539 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
4541 (tui_source_window_base::clear_detail, ~tui_source_window_base):
4543 (tui_free_all_source_wins_content): Cast to
4544 tui_source_window_base.
4546 2019-06-25 Tom Tromey <tom@tromey.com>
4548 * tui/tui-win.c (make_invisible_and_set_new_height)
4549 (make_visible_with_new_height): Call has_locator method.
4550 * tui/tui-layout.c (show_source_disasm_command, show_data)
4551 (show_source_or_disasm_and_command): Update for bool change.
4552 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
4553 (tui_win_info) <has_locator>: New method.
4554 (struct tui_source_window_base) <has_locator>: New method.
4555 (tui_win_has_locator): Don't declare.
4556 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
4557 from tui_win_has_locator.
4558 (tui_source_window_base): Use false, not FALSE.
4560 2019-06-25 Tom Tromey <tom@tromey.com>
4562 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
4563 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
4564 clear_detail method directly.
4565 (tui_clear_win_detail): Remove.
4567 2019-06-25 Tom Tromey <tom@tromey.com>
4569 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
4570 "this", not TUI_DISASM_WIN.
4572 2019-06-25 Tom Tromey <tom@tromey.com>
4574 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
4576 * tui/tui-winsource.c
4577 (tui_source_window_base::do_scroll_horizontal): Rename from
4578 tui_horizontal_source_scroll.
4579 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
4580 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
4581 from tui_vertical_data_scroll.
4582 * tui/tui-win.h (tui_scroll): Don't declare.
4583 * tui/tui-win.c (tui_win_info::forward_scroll)
4584 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
4585 (tui_win_info::right_scroll): Rename and update.
4586 (tui_scroll_forward_command, tui_scroll_backward_command)
4587 (tui_scroll_left_command, tui_scroll_right_command): Update.
4588 (tui_scroll): Remove.
4589 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
4590 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
4591 from tui_vertical_source_scroll.
4592 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
4593 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
4594 from tui_vertical_disassem_scroll.
4595 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
4596 do_scroll_horizontal>: New methods.
4597 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
4599 (struct tui_source_window_base): Add do_scroll_horizontal.
4600 (struct tui_source_window, struct tui_disasm_window): Add
4602 (struct tui_data_window, struct tui_cmd_window): Add
4603 do_scroll_horizontal and do_scroll_vertical.
4604 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
4606 2019-06-25 Tom Tromey <tom@tromey.com>
4608 * tui/tui-data.h (struct tui_source_window_base): New struct.
4609 (struct tui_source_window): Derive from tui_source_window_base.
4610 (struct tui_disasm_window): New struct.
4611 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
4612 from tui_source_window::clear_detail.
4613 (tui_source_window_base): Rename from tui_source_window.
4614 (~tui_source_window_base): Rename from ~tui_source_window.
4615 (tui_alloc_win_info): Create a tui_disasm_window.
4617 2019-06-25 Tom Tromey <tom@tromey.com>
4619 * tui/tui-data.h (struct tui_source_window)
4620 (struct tui_data_window): Declare destructors.
4621 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
4623 (tui_win_info): Simplify.
4625 2019-06-25 Tom Tromey <tom@tromey.com>
4627 * tui/tui-winsource.c (tui_display_main)
4628 (tui_update_source_windows_with_addr)
4629 (tui_update_all_breakpoint_info): Update.
4630 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4631 (new_height_ok, parse_scrolling_args): Update.
4632 * tui/tui-stack.c (tui_show_frame_info): Update.
4633 * tui/tui-data.h (struct tui_list): Remove.
4634 (tui_source_windows): Return a reference to a std::vector.
4635 * tui/tui-data.c (source_windows): Now a std::vector.
4636 (tui_source_windows): Change return type.
4637 (tui_clear_source_windows): Rewrite.
4638 (tui_clear_source_windows_detail, tui_add_to_source_windows)
4639 (tui_free_all_source_wins_content): Rewrite.
4641 2019-06-25 Tom Tromey <tom@tromey.com>
4643 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
4644 (struct tui_data_window, struct tui_cmd_window): Declare
4645 clear_detail method.
4646 * tui/tui-data.c (tui_source_window::clear_detail)
4647 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
4649 (tui_clear_win_detail): Simplify.
4651 2019-06-25 Tom Tromey <tom@tromey.com>
4653 * tui/tui-layout.c (make_source_window, make_disasm_window)
4654 (make_source_or_disasm_window): Remove win_info_ptr parameter.
4655 Return the new window.
4656 (show_source_disasm_command, show_data)
4657 (show_source_or_disasm_and_command): Update.
4659 2019-06-25 Tom Tromey <tom@tromey.com>
4661 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
4662 parameter. Return the new window.
4663 (show_source_disasm_command): Update and remove NULL check.
4664 (show_source_or_disasm_and_command): Update.
4666 2019-06-25 Tom Tromey <tom@tromey.com>
4668 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
4670 2019-06-25 Tom Tromey <tom@tromey.com>
4672 * tui/tui-data.h (struct tui_win_info): Make constructor
4673 protected. Make destructor virtual. Add initializers.
4674 (tui_source_window, tui_data_window, tui_cmd_window): New
4676 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
4677 constructor. Add "type" parameter.
4678 (tui_source_window, tui_data_window, tui_cmd_window): New
4680 (tui_alloc_win_info): Instantiate the appropriate subclass.
4682 2019-06-25 Tom Tromey <tom@tromey.com>
4684 * tui/tui-win.c (tui_resize_all): Use delete.
4685 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
4687 (tui_free_window): Don't declare.
4688 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
4691 2019-06-25 Tom Tromey <tom@tromey.com>
4693 * tui/tui-data.h (struct tui_win_info): Add constructor.
4694 * tui/tui-data.c (tui_alloc_win_info): Use new.
4695 (tui_free_window): Use delete.
4697 2019-06-22 Tom Tromey <tom@tromey.com>
4699 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
4701 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
4703 2019-06-22 Tom Tromey <tom@tromey.com>
4705 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
4707 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
4709 2019-06-22 Tom de Vries <tdevries@suse.de>
4711 * dwarf2read.c (create_addrmap_from_aranges)
4712 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
4715 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
4717 * dwarf2read.h (dwarf2_section_info_def): Remove.
4718 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
4719 * dwarf2read.c (struct dwo_sections) <types>: Change type to
4720 std::vector<dwarf2_section_info>.
4721 (struct dwo_file) <~dwo_file>: Remove.
4722 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
4724 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
4725 (dwarf2_read_debug_names): Likewise.
4726 (create_debug_types_hash_table): Change parameter type to
4727 array_view, adjust code accordingly.
4728 (dwarf2_locate_dwo_sections): Adjust to std::vector.
4729 (partial_die_info::fixup): Likewise.
4730 (determine_prefix): Likewise.
4731 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
4733 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4735 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
4737 <~dwo_file>: Remove call to gdb_bfd_unref.
4738 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
4739 gdb_bfd_ref_ptr::get.
4741 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4743 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
4745 * dwarf2read.c (struct dwo_file): Initialize fields.
4747 (free_dwo_file): Remove, move content to ~dwo_file.
4748 (struct dwo_file_deleter): Remove.
4749 (dwo_file_up>: Remove custom deleter.
4750 (free_dwo_files): Remove.
4751 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
4753 (process_skeletonless_type_units): Call unique_ptr::get.
4754 (allocate_dwo_file_hash_table): Add deleter to created hash
4755 table. Change return type to htab_up.
4756 (lookup_dwo_file_slot): Don't memset dwo_file, call
4758 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
4759 (create_dwo_unit_in_dwp_v2): Likewise.
4760 (open_and_init_dwo_file): Likewise.
4761 (free_dwo_file_from_slot): Remove.
4763 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4765 * dwarf2read.h (struct dwarf2_section_info) <readin,
4766 is_virtual>: Change type to bool.
4767 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
4770 2019-06-19 Tom Tromey <tom@tromey.com>
4772 * tui/tui-data.h (tui_init_content_element): Don't declare.
4774 2019-06-19 Tom Tromey <tom@tromey.com>
4776 * tui/tui-data.h (tui_init_win_info): Don't declare.
4778 2019-06-19 Tom de Vries <tdevries@suse.de>
4780 * dwarf2read.h (abstract_to_concrete): Change type to
4781 std::unordered_map<sect_offset, std::vector<sect_offset>,
4782 gdb::hash_enum<sect_offset>>.
4784 2019-06-19 Tom Tromey <tromey@adacore.com>
4786 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
4787 EVAL_AVOID_SIDE_EFFECTS specially.
4789 2019-06-19 Tom Tromey <tromey@adacore.com>
4791 * source-cache.c (highlighter): New global.
4792 (source_cache::get_source_lines): Create a highlighter on demand.
4794 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
4796 * defs.h (deprecated_interactive_hook): Delete declaration.
4797 * interps.c (clear_interpreter_hooks): Remove use of
4798 deprecated_interactive_hook.
4799 * top.c (deprecated_interactive_hook): Delete definition.
4800 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
4802 2019-06-18 Tom de Vries <tdevries@suse.de>
4805 * dwarf2read.h (abstract_to_concrete): Change type from
4806 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
4807 std::unordered_map<sect_offset, std::vector<sect_offset>>.
4808 * dwarf2read.c (read_variable): Update.
4809 (dwarf2_fetch_die_loc_sect_off): Update.
4811 2019-06-17 Tom de Vries <tdevries@suse.de>
4814 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
4815 accessing parent[parent_len - 1].
4817 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
4820 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
4821 call dtrace_process_dof with NULL dof.
4823 2019-06-16 Tom de Vries <tdevries@suse.de>
4826 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
4828 2019-06-16 Tom Tromey <tom@tromey.com>
4830 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
4831 (make_all_visible): Use address of member.
4833 2019-06-16 Tom Tromey <tom@tromey.com>
4835 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
4836 (tui_free_window, free_content, free_content_elements): Remove
4838 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
4840 * tui/tui-regs.c (tui_show_register_group)
4841 (tui_display_registers_from, tui_display_reg_element_at_line):
4842 Remove unnecessary cast.
4844 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
4846 * linux-nat.c (normal_mask): Delete.
4847 (_initialize_linux_nat): Don't initialise normal_mask.
4849 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
4852 * dwarf-index-write.h (write_psymtabs_to_index): Add
4853 dwz_basename parameter.
4854 * dwarf-index-write.c (write_gdbindex): Move file writing to
4855 write_gdbindex_1. Change return type void.
4856 (assert_file_size): Move up, remove filename parameter.
4857 (write_gdbindex_1): New function.
4858 (write_debug_names): Change return type to void, call
4860 (struct index_wip_file): New struct.
4861 (write_psymtabs_to_index): Add dwz_basename parameter. Move
4862 file logic to index_wip_file. Write index for dwz file if
4864 (save_gdb_index_command): Pass basename of dwz file, if present.
4865 * dwarf-index-cache.c (index_cache::store): Obtain and pass
4866 build-id of dwz file, if present.
4867 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
4868 (dwarf2_get_dwz_file): Likewise.
4869 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
4870 (dwarf2_get_dwz_file): Likewise.
4872 2019-06-16 Tom Tromey <tom@tromey.com>
4874 * coffread.c (process_coff_symbol): Use xstrdup.
4875 * value.c (create_internalvar): Use xstrdup.
4877 2019-06-16 Tom Tromey <tom@tromey.com>
4879 * valops.c (value_cast, value_slice): Remove unnecessary cast.
4880 * breakpoint.c (stopin_command, stopat_command)
4881 (until_break_command, decode_location_default): Remove unnecessary
4883 * utils.c (subset_compare): Remove unnecessary cast.
4884 * ada-lang.c (ada_update_initial_language): Remove unnecessary
4886 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
4888 * infcmd.c (path_command): Remove unnecessary cast.
4889 * coffread.c (decode_type): Remove unnecessary cast.
4890 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
4891 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
4892 * tui/tui-stack.c (tui_show_locator_content)
4893 (tui_show_frame_info): Remove unnecessary cast.
4894 * tui/tui-win.c (tui_scroll_forward_command)
4895 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
4896 (parse_scrolling_args): Remove unnecessary cast.
4897 * tui/tui-data.c (init_win_info, tui_del_window)
4898 (tui_free_window, tui_del_data_windows, tui_free_data_content)
4899 (free_content_elements): Remove unnecessary cast.
4900 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
4902 * tui/tui-source.c (tui_set_source_content)
4903 (tui_vertical_source_scroll): Remove unnecessary cast.
4904 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
4906 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
4907 * tui/tui-regs.c (tui_display_registers_from)
4908 (tui_display_register): Remove unnecessary cast.
4909 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
4910 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
4911 (make_visible): Remove unnecessary cast.
4912 * tui/tui-winsource.c (tui_erase_source_content)
4913 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
4915 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
4916 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
4917 * stabsread.c (read_type, read_array_type, read_range_type):
4918 Remove unnecessary cast.
4919 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
4920 (parse_symbol, parse_type, upgrade_type, parse_external)
4921 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
4923 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
4925 2019-06-16 Tom Tromey <tom@tromey.com>
4927 * tui/tui-data.c (tui_alloc_generic_win_info)
4928 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
4931 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
4932 Andrew Burgess <andrew.burgess@embecosm.com>
4934 * f-typeprint.c (f_print_type): Don't return early for not
4935 associated or not allocated types.
4936 (f_type_print_varspec_suffix): Add print_rank parameter and print
4937 ranks of array types in case they dangling.
4938 (f_type_print_base): Add print_rank parameter.
4940 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4942 * NEWS: Mention new MI commands.
4943 * break-catch-throw.c (enum exception_event_kind): Move to
4945 (print_mention_exception_catchpoint): Output text as a single
4947 (catch_exception_command_1): Rename to...
4948 (catch_exception_event): ...this, make non-static, update header
4949 command, and change some parameter types.
4950 (catch_catch_command): Update for changes to
4951 catch_exception_command_1.
4952 (catch_throw_command): Likewise.
4953 (catch_rethrow_command): Likewise.
4954 * breakpoint.c (enum exception_event_kind): Delete.
4955 * breakpoint.h (enum exception_event_kind): Moved here from
4956 break-catch-throw.c.
4957 (catch_exception_event): Declare.
4958 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
4959 (mi_cmd_catch_throw): New function.
4960 (mi_cmd_catch_rethrow): New function.
4961 (mi_cmd_catch_catch): New function.
4962 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
4963 'catch-catch' entries.
4964 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
4965 (mi_cmd_catch_rethrow): Declare.
4966 (mi_cmd_catch_catch): Declare.
4968 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4970 * annotate.c (annotate_source_line): Change return type to void,
4971 update implementation to match.
4972 * annotate.h (annotate_source_line): Change return type to void,
4973 update header comment.
4974 * stack.c (print_frame_info): Don't change what frame information
4975 is printed based on whether annotations are on or not.
4977 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4979 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
4980 (annotate_source): Make static.
4981 (annotate_source_line): Moved from source.c and renamed from
4982 identify_source_line. Update the return type.
4983 * annotate.h (annotate_source): Delete declaration.
4984 (annotate_source_line): Declaration moved from source.h, and
4985 renamed from identify_source_line. Return type updated.
4986 * source.c (identify_source_line): Moved to annotate.c and renamed
4987 to annotate_source_line.
4988 (info_line_command): Remove check of annotation_level.
4989 * source.h (identify_source_line): Move declaration to annotate.h
4990 and rename to annotate_source_line.
4991 * stack.c: Add 'annotate.h' include.
4992 (print_frame_info): Remove check of annotation_level before
4993 calling annotate_source_line.
4995 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4997 * source-cache.c (source_cache::get_plain_source_lines): Use
4998 open_source_file_with_line_charpos instead of just
4999 open_source_file, remove call to find_source_lines.
5000 (source_cache::get_source_lines): Likewise.
5001 * source.c (find_source_lines): Make static.
5002 (get_filename_and_charpos): Renamed into...
5003 (open_source_file_with_line_charpos): ..this along with changes to
5004 return a scoped_fd, and some other minor clean ups.
5005 (identify_source_line): Use open_source_file_with_line_charpos.
5006 (search_command_helper): Use open_source_file_with_line_charpos
5007 instead of just open_source_file, remove call to
5009 * source.h (open_source_file_with_line_charpos): Declare new
5011 (find_source_lines): Delete declaration.
5013 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5015 * source.c (get_filename_and_charpos): Remove fullname
5017 (identify_source_line): Update call to get_filename_and_charpos.
5019 2019-06-14 Tom Tromey <tromey@adacore.com>
5022 * ui-style.h (skip_ansi_escape): Update comment.
5023 * ui-file.h (class no_terminal_escape_file): New class.
5024 * ui-file.c (no_terminal_escape_file::write)
5025 (no_terminal_escape_file::puts): New methods.
5026 * cli/cli-logging.c (handle_redirections): Use
5027 no_terminal_escape_file.
5029 2019-06-14 Tom Tromey <tromey@adacore.com>
5031 * NEWS: Move convenience variable news above Python news.
5033 2019-06-14 Tom Tromey <tom@tromey.com>
5035 * gnulib: Move directory to top-level.
5036 * configure.ac: Don't configure gnulib.
5037 * configure: Rebuild.
5038 * common/common-defs.h: Use new path to gnulib.
5039 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
5041 (INCGNU): Look in new gnulib location.
5042 (HFILES_NO_SRCDIR): Remove gnulib files.
5043 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
5044 (generated_files): Remove GNULIB_H.
5045 ($(LIBGNU), all-lib): Remove targets.
5046 (distclean): Don't mention GNULIB_BUILDDIR.
5047 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
5049 2019-06-14 Tom Tromey <tromey@adacore.com>
5051 * symfile.c (add_symbol_file_command): Remove obsolete comment.
5052 Warn if symbol file does not provide any symbols.
5054 2019-06-14 Tom Tromey <tromey@adacore.com>
5056 * source.c (find_and_open_source): Respect basenames_may_differ.
5058 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
5060 * annotate.c (annotate_breakpoints_invalid): Make use of
5061 scoped_restore_terminal_state.
5062 (annotate_frames_invalid): Likewise.
5064 2019-06-14 Tom Tromey <tromey@adacore.com>
5066 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
5067 allow assignment to an internalvar.
5069 2019-06-14 Tom Tromey <tromey@adacore.com>
5071 * ada-lex.l: Allow "_" in attribute names.
5073 2019-06-14 Tom Tromey <tromey@adacore.com>
5076 * regcache.c (registers_changed): Don't call alloca.
5077 * top.c (execute_command): Don't call alloca.
5079 2019-06-13 Pedro Alves <palves@redhat.com>
5081 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
5082 'expression'. When parsing an expression, error out if there's
5083 junk after "unlimited".
5084 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5085 (do_set_command): Adjust calls to is_unlimited_literal.
5087 2019-06-13 Pedro Alves <palves@redhat.com>
5089 * compile/compile.c (make_compile_options_def_group): Add braces
5090 around array_view initializer.
5091 * thread.c (make_thread_apply_all_options_def_group)
5092 (make_thread_apply_all_options_def_group): Likewise.
5094 2019-06-13 Pedro Alves <palves@redhat.com>
5096 * NEWS (New commands): Mention "maint test-options
5097 require-delimiter", "maint test-options unknown-is-error", "maint
5098 test-options unknown-is-operand" and "maint show
5099 test-options-completion-result".
5100 (New command options, command completion): New section.
5101 (Completion improvements): New section.
5102 Mention that you can abbreviate "unlimited".
5104 2019-06-13 Pedro Alves <palves@redhat.com>
5106 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
5107 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
5108 * unittests/cli-utils-selftests.c (test_parse_flags)
5109 (test_parse_flags_qcs): Delete.
5110 (test_cli_utils): Don't call deleted functions.
5112 2019-06-13 Pedro Alves <palves@redhat.com>
5114 * thread.c: Include "cli/cli-option.h".
5115 (tp_array_compar_ascending): Global.
5116 (tp_array_compar): Delete function.
5117 (tp_array_compar_ascending, tp_array_compar_descending): New
5119 (ascending_option_def, qcs_flag_option_def)
5120 (thr_qcs_flags_option_defs)
5121 (make_thread_apply_all_options_def_group)
5122 (make_thread_apply_options_def_group): New.
5123 (thread_apply_all_command): Use gdb::option::process_options.
5124 (thread_apply_command_completer)
5125 (thread_apply_all_command_completer): New.
5126 (thread_apply_command): Use gdb::option::process_options.
5127 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
5128 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
5129 to generate help text of "thread apply". Adjust "taas"'s help.
5130 * tid-parse.c (tid_range_parser::in_thread_range): New method.
5131 * tid-parse.h (tid_range_parser::in_thread_range): New method.
5133 2019-06-13 Pedro Alves <palves@redhat.com>
5135 * thread.c (thread_apply_command): Check for invalid TID with
5136 isdigit instead of !isalpha.
5138 2019-06-13 Pedro Alves <palves@redhat.com>
5140 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
5141 (validate_flags_qcs): New.
5142 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
5143 (validate_flags_qcs): Declare.
5144 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
5145 (make_frame_apply_options_def_group): New.
5146 (frame_apply_command_count): Process options with
5147 gdb::option::process_options.
5148 (frame_apply_completer): New.
5149 (frame_apply_level_completer, frame_apply_all_completer)
5150 (frame_apply_completer): New.
5151 (_initialize_stack): Update help of "frame apply", "frame apply
5152 level", "frame apply all" and "faas" to mention supported options
5153 and install command completers.
5154 * stack.h (frame_apply_all_completer): Declare.
5155 * thread.c: Include "stack.h".
5156 (tfaas_command): Add "--".
5157 (_initialize_thread): Update help "tfaas" to mention supported
5158 options and install command completer.
5160 2019-06-13 Pedro Alves <palves@redhat.com>
5162 * completer.c (complete_nested_command_line): New.
5163 (gdb_completion_word_break_characters_throw): Add assertion.
5164 * completer.h (complete_nested_command_line): Declare.
5166 2019-06-13 Pedro Alves <palves@redhat.com>
5168 * stack.c (parse_backtrace_qualifiers): New.
5169 (backtrace_command): Use it.
5170 (backtrace_command_completer): Complete on qualifiers.
5172 2019-06-13 Pedro Alves <palves@redhat.com>
5174 * frame.c: Include "cli/cli-option.h.
5175 (user_set_backtrace_options): New.
5176 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
5178 (get_prev_frame): Adjust.
5179 (boolean_option_def, uinteger_option_def)
5180 (set_backtrace_option_defs): New.
5181 (_initialize_frame): Adjust and use
5182 gdb::option::add_setshow_cmds_for_options to install "set
5183 backtrace past-main" and "set backtrace past-entry".
5184 * frame.h: Include "cli/cli-option.h".
5185 (struct frame_print_options): Forward declare.
5186 (print_frame_arguments_all, print_frame_arguments_scalars)
5187 (print_frame_arguments_none): Declare.
5188 (print_entry_values): Delete declaration.
5189 (struct frame_print_options, user_frame_print_options): New.
5190 (struct set_backtrace_options): New.
5191 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
5192 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
5193 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
5194 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
5195 (list_args_or_locals): Add frame_print_options parameter.
5196 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
5197 * python/py-framefilter.c (enumerate_args): Pass down
5198 USER_FRAME_PRINT_OPTIONS.
5199 * stack.c: Include "cli/cli-option.h".
5200 (print_frame_arguments_all, print_frame_arguments_scalars)
5201 (print_frame_arguments_none): Declare.
5202 (print_raw_frame_arguments, print_entry_values): Delete.
5203 (user_frame_print_options): New.
5204 (boolean_option_def, enum_option_def, frame_print_option_defs):
5206 (struct backtrace_cmd_options): New.
5207 (bt_flag_option_def): New.
5208 (backtrace_command_option_defs): New.
5209 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
5210 (print_frame_arg, read_frame_arg, print_frame_args)
5211 (print_frame_info, print_frame): Add frame_print_options parameter
5213 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
5214 (backtrace_command_1): Add frame_print_options and
5215 backtrace_cmd_options parameters and use them.
5216 (make_backtrace_options_def_group): New.
5217 (backtrace_command): Process command options with
5218 gdb::option::process_options.
5219 (backtrace_command_completer): New.
5220 (_initialize_stack): Extend "backtrace"'s help to mention
5221 supported options. Install completer for "backtrace".
5222 Install some settings commands with add_setshow_cmds_for_options.
5224 2019-06-13 Pedro Alves <palves@redhat.com>
5226 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
5227 and that "set/show print raw frame-arguments" are now deprecated.
5229 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
5231 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
5232 * stack.c (_initialize_stack): Install "set/show print
5233 raw-frame-arguments", and deprecate "set/show print raw
5235 * valprint.c (_initialize_valprint): Deprecate "set/show print
5238 2019-06-13 Pedro Alves <palves@redhat.com>
5240 * compile/compile.c (struct compile_options): New.
5241 (compile_flag_option_def, compile_command_option_defs)
5242 (make_compile_options_def_group): New.
5243 (compile_file_command): Handle options with
5244 gdb::option::process_options.
5245 (compile_file_command_completer): New function.
5246 (compile_code_command): Handle options with
5247 gdb::option::process_options.
5248 (compile_code_command_completer): New function.
5249 (_initialize_compiler): Install completers for "compile code" and
5250 "compile file". Mention available options in "compile code" and
5251 "compile code"'s help.
5252 * completer.c (advance_to_completion_word): New, factored out from
5254 (advance_to_expression_complete_word_point): ... this.
5255 (advance_to_filename_complete_word_point): New.
5256 * completer.h (advance_to_filename_complete_word_point): New
5259 2019-06-13 Pedro Alves <palves@redhat.com>
5261 * compile/compile.c: Include "cli/cli-option.h".
5262 (compile_print_value): Scope data pointer is now a
5263 value_print_options pointer; adjust.
5264 (compile_print_command): Process options. Scope data pointer is
5265 now a value_print_options pointer; adjust.
5266 (_initialize_compile): Update "compile print"'s help to include
5267 supported options. Install a completer for "compile print".
5268 * cp-valprint.c (show_vtblprint, show_objectprint)
5269 (show_static_field_print): Delete.
5270 (_initialize_cp_valprint): Don't install "set print
5271 static-members", "set print vtbl", "set print object" here.
5272 * printcmd.c: Include "cli/cli-option.h" and
5273 "common/gdb_optional.h".
5274 (print_command_parse_format): Rework to fill in a
5275 value_print_options instead of a format_data.
5276 (print_value): Change parameter type from format_data pointer to
5277 value_print_options reference. Adjust.
5278 (print_command_1): Process options. Adjust to pass down a
5279 value_print_options.
5280 (print_command_completer): New.
5281 (_initialize_printcmd): Install print_command_completer as
5282 handle_brkchars completer for the "print" command. Update
5283 "print"'s help to include supported options.
5284 * valprint.c: Include "cli/cli-option.h".
5285 (show_vtblprint, show_objectprint, show_static_field_print): Moved
5286 here from cp-valprint.c.
5287 (boolean_option_def, uinteger_option_def)
5288 (value_print_option_defs, make_value_print_options_def_group):
5289 New. Use gdb::option::add_setshow_cmds_for_options to install
5290 "set print elements", "set print null-stop", "set print repeats",
5291 "set print pretty", "set print union", "set print array", "set
5292 print address", "set print symbol", "set print array-indexes".
5293 * valprint.h: Include <string> and "cli/cli-option.h".
5294 (make_value_print_options_def_group): Declare.
5295 (print_value): Change parameter type from format_data pointer to
5296 value_print_options reference.
5297 (print_command_completer): Declare.
5299 2019-06-13 Pedro Alves <palves@redhat.com>
5301 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
5302 (COMMON_SFILES): Add maint-test-settings.c.
5303 * cli/cli-decode.c (boolean_enums): New global, factored out from
5305 (add_setshow_boolean_cmd): ... here.
5306 * cli/cli-decode.h (boolean_enums): Declare.
5307 * cli/cli-option.c: New file.
5308 * cli/cli-option.h: New file.
5309 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
5310 factored out from ...
5311 (parse_cli_boolean_value(const char *)): ... this.
5312 (is_unlimited_literal): Change parameter type to pointer to
5313 pointer. Adjust and advance ARG pointer.
5314 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5315 (parse_cli_var_enum): New, factored out from ...
5316 (do_set_command): ... this. Adjust.
5317 * cli/cli-setshow.h (parse_cli_boolean_value)
5318 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5319 (parse_cli_var_enum): Declare.
5320 * cli/cli-utils.c: Include "cli/cli-option.h".
5321 (get_ulongest): New.
5322 * cli/cli-utils.h (get_ulongest): Declare.
5323 (check_for_argument): New overloads.
5324 * maint-test-options.c: New file.
5326 2019-06-13 Pedro Alves <palves@redhat.com>
5328 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
5329 parse a range if "-" is at the end of the string.
5331 2019-06-13 Pedro Alves <palves@redhat.com>
5333 * cli/cli-setshow.c (parse_auto_binary_operation)
5334 (parse_cli_boolean_value): Don't allow "o".
5336 2019-06-13 Pedro Alves <palves@redhat.com>
5338 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
5339 * NEWS: Mention maint test-settings KIND.
5340 * maint-test-settings.c: New file.
5342 2019-06-13 Pedro Alves <palves@redhat.com>
5344 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
5346 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
5349 2019-06-13 Pedro Alves <palves@redhat.com>
5351 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
5354 2019-06-13 Pedro Alves <palves@redhat.com>
5356 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
5358 2019-06-13 Pedro Alves <palves@redhat.com>
5360 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
5361 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
5363 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
5364 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
5366 (check_for_argument): Skip spaces after argument.
5368 2019-06-13 Pedro Alves <palves@redhat.com>
5370 * thread.c (thread_apply_command): Adjust TID parsing.
5371 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
5372 detected before end of string.
5373 (tid_is_in_list): Error out if LIST is invalid.
5375 2019-06-13 Pedro Alves <palves@redhat.com>
5377 * completer.c (complete_line_internal_1): Rewind completion word
5379 (completion_tracker::advance_custom_word_point_by): Change
5380 parameter type to int.
5381 * completer.h (completion_tracker::advance_custom_word_point_by):
5384 2019-06-13 Pedro Alves <palves@redhat.com>
5386 * completer.c (advance_to_completion_word): Handle delimiters.
5388 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
5390 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
5392 2019-06-11 Tom Tromey <tom@tromey.com>
5394 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
5395 (xmalloc_failed): Move to alloc.c.
5396 * alloc.c: New file.
5397 * Makefile.in (COMMON_SFILES): Add alloc.c.
5399 2019-06-11 Tom Tromey <tom@tromey.com>
5401 * nat/linux-waitpid.c: Don't include server.h.
5402 (linux_debug): Remove.
5403 (my_waitpid): Update.
5405 2019-06-11 Tom Tromey <tromey@adacore.com>
5407 * infcall.c (_initialize_infcall): Remove trailing newline from
5409 * user-regs.c (_initialize_user_regs): Remove trailing newline
5411 * typeprint.c (_initialize_typeprint): Remove trailing newline
5413 * reverse.c (_initialize_reverse): Remove trailing newlines from
5415 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
5417 * language.c (add_set_language_command): Remove trailing newline
5419 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
5421 * disasm.c (_initialize_disasm): Remove trailing newline from
5423 * top.c (init_main): Remove trailing newline from help.
5424 * interps.c (_initialize_interpreter): Remove trailing newline
5426 * btrace.c (_initialize_btrace): Remove trailing newlines from
5428 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
5430 * python/python.c (_initialize_python): Remove trailing newline
5432 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
5434 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
5435 from help. Reformat some text.
5436 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
5438 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
5441 2019-06-11 Tom Tromey <tromey@adacore.com>
5443 * darwin-nat.c (darwin_decode_exception_message)
5444 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
5446 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
5448 * valops.c (value_slice): Check for not allocated or not
5451 2019-06-10 Tom de Vries <tdevries@suse.de>
5454 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
5455 sure an empty slot (defined by a 32-bit zero pair) is recognized as
5458 2019-06-10 Tom de Vries <tdevries@suse.de>
5461 * linespec.c (linespec_lexer_lex_string): Remove incorrect
5462 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
5464 2019-06-10 Tom de Vries <tdevries@suse.de>
5467 * symtab.c (struct demangled_name_entry): Add language field.
5468 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
5469 static minimal symbol". Set and use language field.
5471 2019-06-10 Tom Tromey <tromey@adacore.com>
5473 * ada-lang.c (_initialize_ada_language): Update help text.
5475 2019-06-10 Tom Tromey <tromey@adacore.com>
5477 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
5479 * guile/guile.c (handle_boot_error): Don't end warning with a
5481 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
5482 warning with a newline.
5483 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
5485 (s12z_frame_cache): Likewise.
5486 * dwarf-index-cache.c (index_cache::store): Don't end warning with
5488 * solib-svr4.c (disable_probes_interface): Don't end warning with
5490 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
5492 * python/python.c (do_finish_initialization): Don't end warning
5495 2019-06-10 Tom Tromey <tom@tromey.com>
5497 * python/py-breakpoint.c (gdbpy_breakpoint_created)
5498 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
5501 2019-06-10 Tom Tromey <tromey@adacore.com>
5503 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
5505 (elf_new_init): Don't call stabsread_new_init.
5506 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
5507 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
5508 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
5510 2019-06-10 Tom de Vries <tdevries@suse.de>
5514 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
5516 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
5518 * source.c (find_and_open_source): Also rewrite relative file
5521 2019-04-26 Amos Bird <amosbird@gmail.com>
5523 * annotate.c (annotate_thread_exited): Add "thread-exited"
5526 2019-06-06 Tom Tromey <tromey@adacore.com>
5528 * maint.h (class scoped_command_stats): Use
5529 DISABLE_COPY_AND_ASSIGN.
5530 <print_time>: New method.
5531 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
5533 (scoped_command_stats::print_time): New method.
5535 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5537 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
5538 instructions of lengths 6 or 8 bytes.
5540 2019-06-04 Pedro Alves <palves@redhat.com>
5542 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
5544 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
5545 * breakpoint.c (condition_completer): Likewise.
5546 * cli/cli-dump.c (scan_expression): Likewise.
5547 * common/filestuff.c (mkdir_recursive): Likewise.
5548 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
5549 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
5550 (gdb_abspath): Likewise.
5551 * compile/compile-cplus-types.c
5552 (compile_cplus_instance::decl_name): Likewise.
5553 * completer.c (complete_explicit_location):
5554 (signal_completer, reg_or_group_completer_1): Likewise.
5555 * cp-support.c (cp_remove_params_if_any): Likewise.
5556 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
5557 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
5558 * infcmd.c (strip_bg_char): Likewise.
5559 * linespec.c (copy_token_string): Likewise.
5560 * mi/mi-main.c (output_cores): Likewise.
5561 * psymtab.c (psymtab_search_name):
5562 * symfile.c (test_set_ext_lang_command): Likewise.
5563 * target.c (target_fileio_read_stralloc): Likewise.
5564 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
5565 * value.c (complete_internalvar): Likewise.
5567 2019-06-04 Christian Biesinger <cbiesinger@google.com>
5569 Add objfile property to gdb.Type.
5570 * NEWS: Mention Python API addition.
5571 * python/py-type.c (typy_get_objfile): New method.
5573 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5575 * NEWS: Mention the new set|show style [title|highlight].
5576 Mention changes to "show style", "help" and "apropos".
5578 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5580 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
5581 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
5582 instead of print_help_for_command.
5583 (print_doc_of_command): New function.
5584 (help_list): Add 'apropos -v word' suggestion.
5585 (print_help_for_command): Style the command name using title style.
5586 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
5587 (_initialize_cli_cmds): Describe -v in apropos_command help.
5589 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5591 * cli/cli-style.h (cli_style_option): Add name in constructor,
5592 add m_name class member, add constructor with intensity,
5593 add name class function.
5594 (cli_style_option::add_setshow_commands): Remove name argument.
5595 (highlight_style, title_style): New styles.
5596 * cli/cli-style.c (do_show): New function that shows a style
5597 characteristic styling the style name with itself.
5598 (set_style_name): New function.
5599 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
5600 Update all callers according to the changes in cli/cli-style.h.
5601 * utils.h (fputs_highlighted): New function.
5602 * utils.c (fputs_highlighted): Likewise.
5604 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5606 * NEWS: Mention new pipe command and new convenience variables.
5608 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5610 * cli/cli-cmds.c (pipe_command): New function.
5611 (_initialize_cli_cmds): Call add_com for pipe_command.
5612 Define | as an alias for pipe.
5613 (exit_status_set_internal_vars): New function.
5614 (shell_escape): Call exit_status_set_internal_vars.
5615 cli/cli-decode.c (find_command_name_length): Recognize | as
5616 a single character command.
5618 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5620 * gdbcmd.h (execute_command_to_ui_file): New declaration.
5621 top.c (execute_command_to_ui_file): New function, mostly a copy
5622 of execute_command_to_string.
5623 (execute_command_to_string): Implement by calling
5624 execute_command_to_ui_file.
5626 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5628 * top.h (saved_command_line): Remove declaration.
5629 * top.c (previous_saved_command_line, previous_repeat_arguments):
5631 (saved_command_line): Make static, define together with other
5633 (dont_repeat): Clear repeat_arguments.
5634 (repeat_previous, get_saved_command_line, save_command_line):
5636 (gdb_init): Initialize saved_command_line
5637 and previous_saved_command_line.
5638 * main.c (captured_main_1): Remove saved_command_line initialization.
5639 * event-top.c (handle_line_of_input): Update to use
5640 the new 'repeat' related functions instead of direct access to
5642 * command.h (repeat_previous, get_saved_command_line,
5643 save_command_line): New declarations.
5644 (dont_repeat): Add comment.
5646 2019-05-30 Tom Tromey <tromey@adacore.com>
5648 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
5650 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
5652 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
5655 * completer.c (complete): Initialize variable word.
5657 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
5659 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
5660 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
5661 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
5662 'body' is NULL to the outter 'if', protecting the '!is_define'
5665 2019-05-29 Tom Tromey <tromey@adacore.com>
5667 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
5668 (dwarf_unknown): New function.
5669 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
5670 (dwarf_type_encoding_name): Use dwarf_unknown.
5672 2019-05-29 Tom Tromey <tromey@adacore.com>
5675 * cp-valprint.c (cp_print_value_fields): Call
5676 cp_print_static_field inside "try".
5678 2019-05-29 Tom Tromey <tromey@adacore.com>
5680 * inflow.c (struct terminal_info): Add default operator=.
5681 * configure: Rebuild.
5682 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
5683 -Wdeprecated-copy-dtor, -Wredundant-move.
5685 2019-05-29 Tom Tromey <tromey@adacore.com>
5688 * infcmd.c (print_return_value_1): Handle finish_print
5690 (show_print_finish): New function.
5691 (_initialize_infcmd): Add "set/show print finish" commands.
5692 * valprint.c (user_print_options): Initialize new member.
5693 * valprint.h (struct value_print_options) <finish_print>: New
5696 2019-05-28 Tom Tromey <tromey@adacore.com>
5698 * ada-lang.c (ada_remove_Xbn_suffix)
5699 (find_old_style_renaming_symbol)
5700 (parse_old_style_renaming): Remove.
5701 (ada_find_renaming_symbol): Don't call
5702 find_old_style_renaming_symbol.
5703 (ada_is_renaming_symbol): Rename from
5704 ada_find_renaming_symbol. Remove "block" parameter. Return
5706 (ada_read_var_value): Update and simplify.
5707 * ada-exp.y (write_var_or_type): Remove old code.
5709 2019-05-28 Alan Hayward <alan.hayward@arm.com>
5711 * event-top.c: Remove include comment.
5712 * inflow.c (class scoped_ignore_sigttou): Move from here...
5713 * inflow.h (class scoped_ignore_sigttou): ...to here.
5714 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
5715 * top.c: Remove include comment.
5717 2019-05-27 Tom Tromey <tom@tromey.com>
5721 2019-05-22 Tom Tromey <tromey@adacore.com>
5723 * target.c (target_follow_exec): Constify parameter.
5724 * target-delegates.c: Rebuild.
5725 * remote.c (remote_target::follow_exec): Constify parameter.
5726 * infrun.c (follow_exec): Constify parameter.
5727 * target.h (struct target_ops) <follow_exec>: Constify parameter.
5728 (target_follow_exec): Likewise.
5730 2019-05-22 Alan Hayward <alan.hayward@arm.com>
5732 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
5733 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
5735 2019-05-22 Alan Hayward <alan.hayward@arm.com>
5737 * NEWS: Add debugredirect and testsuite sections.
5739 2019-05-22 Simon Cook <simon.cook@embecosm.com>
5741 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
5742 target descriptions using exclusively floating point register name
5745 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
5748 * f-lang.c (build_fortran_types): Handle the case where
5749 gdbarch_floatformat_for_type returns a nullptr.
5751 2019-05-21 Tom de Vries <tdevries@suse.de>
5754 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
5756 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
5759 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
5761 * i386-tdep.c (i386_floatformat_for_type): Use
5762 floatformats_ia64_quad for the 16-byte floating point component
5763 within a fortran 32-byte complex number.
5765 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
5767 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
5768 delete default constructor.
5769 (find_partial_die): Update to return const struct.
5770 (partial_die_parent_scope): Move variable declaration into scope
5771 of its use and change its type to auto.
5772 (guess_partial_die_structure_name): Likewise.
5773 (partial_die_info::fixup): Likewise.
5775 2019-05-17 Tom Tromey <tromey@adacore.com>
5777 * source.c (find_and_open_source): Remove cast.
5779 2019-05-17 Tom Tromey <tromey@adacore.com>
5781 * annotate.c (annotate_source): Make "filename" const.
5782 * annotate.h (annotate_source): Use const.
5784 2019-05-17 Alan Hayward <alan.hayward@arm.com>
5786 * disasm.c (set_disassembler_options): Send errors to stderr.
5788 2019-05-17 Alan Hayward <alan.hayward@arm.com>
5790 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
5791 (cli_interp_base::set_logging): Check debug_redirect.
5792 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
5793 * cli/cli-logging.c (debug_redirect): Add static variable.
5794 (pop_output_files): Add default param.
5795 (handle_redirections): Print debug setting.
5796 (show_logging_command): Likewise.
5797 (_initialize_cli_logging): Add debugredirect command.
5798 * interps.c (current_interp_set_logging): Add debug_redirect
5800 * interps.h (set_logging): Add debug_redirect parameter.
5801 (current_interp_set_logging): Likewise.
5802 * mi/mi-common.h: Likewise.
5803 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
5805 2019-05-17 Alan Hayward <alan.hayward@arm.com>
5806 Tom Tromey <tromey@adacore.com>
5808 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
5810 * cli/cli-interp.h (make_logging_output): Remove declaration.
5811 * cli/cli-logging.c (make_logging_output): Remove function.
5812 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
5814 * ui-file.c (tee_file::tee_file): Remove bools.
5815 (tee_file::~tee_file): Remove deletes.
5816 * ui-file.h (tee_file): Remove bools.
5818 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
5820 * mi/mi-cmds.h (mi_cmd_complete): New function.
5821 * mi/mi-main.c (mi_cmd_complete): Likewise.
5822 * mi/mi-cmds.c: Define new MI command -complete.
5823 * NEWS: Mention new -complete command.
5825 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
5827 * completer.h (complete): New function.
5828 * completer.c (complete): Likewise.
5829 * cli/cli-cmds.c: (complete_command): Update to use new complete()
5830 function defined in completer.h.
5832 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
5834 * MAINTAINERS (Write After Approval): Add myself.
5836 2019-05-17 Tom de Vries <tdevries@suse.de>
5839 * dwarf2read.c (struct cu_partial_die_info): New struct.
5840 (find_partial_die): Return cu_partial_die_info.
5841 (partial_die_parent_scope, guess_partial_die_structure_name)
5842 (partial_die_info::fixup): Handle new return type of find_partial_die.
5844 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5846 PR breakpoints/24541
5847 * stap-probe.c (stap_parse_register_operand): Make "regname" an
5848 "std::string", simplifying the algorithm.
5850 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5852 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
5853 (stap_static_probe_ops::get_probes): Likewise.
5855 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5857 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
5858 '-')" and "else if".
5859 (stap_parse_single_operand): Join checks for
5860 "gdbarch_stap_parse_special_token_p" and
5861 "gdbarch_stap_parse_special_token" in the same "if" statement.
5862 Invert check when verifying for operation on register
5865 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5867 * stap-probe.c (stap_get_opcode): Update comment.
5868 (stap_get_expected_argument_type): Likewise.
5869 (handle_stap_probe): Likewise.
5871 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5873 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
5874 return type to 'bool'. Adjust comment. Use 'bool' when
5876 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5877 * stap-probe.c (stap_parse_argument_1): Likewise.
5878 (stap_is_operator): Likewise.
5879 (stap_is_generic_prefix): Likewise.
5880 (stap_is_register_prefix): Likewise.
5881 (stap_is_register_indirection_prefix): Likewise.
5882 (stap_is_integer_prefix): Likewise.
5883 (stap_generic_check_suffix): Likewise.
5884 (stap_check_integer_suffix): Likewise.
5885 (stap_check_register_suffix): Likewise.
5886 (stap_check_register_indirection_suffix): Likewise.
5887 (stap_parse_register_operand): Likewise.
5888 (stap_parse_single_operand): Likewise.
5889 (stap_parse_argument_1): Likewise.
5890 (stap_probe::get_argument_count): Likewise.
5891 (stap_is_operator): Likewise.
5893 2019-05-16 Tom Tromey <tromey@adacore.com>
5895 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
5898 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
5900 * linux-thread-db.c (try_thread_db_load_1): Change return type
5902 (try_thread_db_load): Likewise.
5903 (try_thread_db_load_from_pdir_1): Likewise.
5904 (try_thread_db_load_from_pdir): Likewise.
5905 (try_thread_db_load_from_sdir): Likewise.
5906 (try_thread_db_load_from_dir): Likewise.
5907 (thread_db_load_search): Likewise.
5908 (has_libpthread): Likewise.
5909 (thread_db_load): Likewise.
5911 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
5913 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
5914 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
5915 NULL, and complain/return if that's the case.
5917 2019-05-15 John Darrington <john@darrington.wattle.id.au>
5919 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
5920 (advance, posn, abstract_read_memory): New functions.
5921 [struct mem_read_abstraction]: New struct.
5922 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
5924 2019-05-14 Tom Tromey <tromey@adacore.com>
5926 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
5927 value is not lval_memory.
5929 2019-05-14 Tom Tromey <tromey@adacore.com>
5931 * solib.c (info_sharedlibrary_command): Style the file name.
5933 2019-05-14 Alan Hayward <alan.hayward@arm.com>
5935 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
5936 (aarch64_vnv_type): Likewise.
5937 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
5938 * common/tdesc.c: Likewise.
5939 * common/tdesc.h (enum tdesc_type_kind): Likewise.
5940 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
5941 * features/aarch64-fpu.xml: Add ieee half view.
5942 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
5943 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
5944 * gdbtypes.h (struct builtin_type): Likewise.
5945 (struct objfile_type): Likewise.
5947 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
5949 * language.c (language_sniff_from_mangled_name): Fix "langauge"
5951 * location.h (string_to_event_location): Likewise.
5953 2019-05-11 Joel Brobecker <brobecker@adacore.com>
5957 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
5959 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
5960 New variable declaration.
5961 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
5963 (print_one_breakpoint): Use ui_out::test_flags and new global
5964 variable to compute use_fixed_output.
5965 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
5967 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
5968 (mi_multi_location_breakpoint_output_fixed): Remove.
5969 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
5971 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
5972 fix_multi_location_breakpoint_output flag if version >= 3.
5973 * ui-out.h (enum ui_out_flag)
5974 <fix_multi_location_breakpoint_output>: New enumerator.
5976 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
5978 * contrib/cc-with-tweaks.sh: Validate dwz's work.
5980 2019-05-10 Tom Tromey <tromey@adacore.com>
5982 * ada-lang.c (catch_ada_completer): New function.
5983 (_initialize_ada_language): Use it.
5985 2019-05-10 Tom Tromey <tromey@adacore.com>
5987 * thread.c (print_thread_info): Make "requested_threads" const.
5988 * gdbthread.h (print_thread_info): Make "requested_threads"
5990 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
5991 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
5993 2019-05-08 Tom Tromey <tom@tromey.com>
5995 * gdbtypes.c (objfile_type_data): Change type.
5996 (objfile_type, _initialize_gdbtypes): Update.
5998 2019-05-08 Tom Tromey <tom@tromey.com>
6000 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
6001 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
6002 (_initialize_dwarf2_frame): Update.
6004 2019-05-08 Tom Tromey <tom@tromey.com>
6006 * objc-lang.c (objc_objfile_data): Change type.
6007 (find_methods): Update.
6008 (_initialize_objc_lang): Remove.
6010 2019-05-08 Tom Tromey <tom@tromey.com>
6012 * stabsread.c (rs6000_builtin_type_data): Change type.
6013 (rs6000_builtin_type, _initialize_stabsread): Update.
6015 2019-05-08 Tom Tromey <tom@tromey.com>
6017 * mips-tdep.c (mips_pdr_data): Remove.
6018 (_initialize_mips_tdep): Update.
6020 2019-05-08 Tom Tromey <tom@tromey.com>
6022 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
6023 (hppa_init_objfile_priv_data, read_unwind_info)
6024 (find_unwind_entry, _initialize_hppa_tdep): Update.
6026 2019-05-08 Tom Tromey <tom@tromey.com>
6028 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
6029 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
6031 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
6033 2019-05-08 Tom Tromey <tom@tromey.com>
6035 * mdebugread.c (basic_type_data): Change type.
6036 (basic_type, _initialize_mdebugread): Update.
6038 2019-05-08 Tom Tromey <tom@tromey.com>
6040 * common/gdb_unique_ptr.h (struct noop_deleter): New.
6042 2019-05-08 Tom Tromey <tom@tromey.com>
6044 * nto-tdep.c (nto_inferior_data_reg): Change type.
6045 (nto_inferior_data): Update.
6046 (nto_inferior_data_cleanup, nto_new_inferior_data)
6047 (_initialize_nto_tdep): Remove.
6048 * nto-tdep.h (struct nto_inferior_data): Add initializers.
6050 2019-05-08 Tom Tromey <tom@tromey.com>
6052 * ada-lang.c (struct ada_inferior_data): Add initializers.
6053 (ada_inferior_data): Change type.
6054 (ada_inferior_data_cleanup): Remove.
6055 (get_ada_inferior_data, ada_inferior_exit)
6056 (struct ada_pspace_data): Add initializers, destructor.
6057 (ada_pspace_data_handle): Change type.
6058 (get_ada_pspace_data): Update.
6059 (ada_pspace_data_cleanup): Remove.
6061 2019-05-08 Tom Tromey <tom@tromey.com>
6063 * coffread.c (struct coff_symfile_info): Add initializers.
6064 (coff_objfile_data_key): Move lower. Change type.
6065 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
6067 (coff_free_info): Remove.
6069 2019-05-08 Tom Tromey <tom@tromey.com>
6071 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
6072 (fbsd_pspace_data_handle): Move lower. Change type.
6073 (get_fbsd_pspace_data): Update.
6074 (fbsd_pspace_data_cleanup): Remove.
6075 (_initialize_fbsd_tdep): Update.
6077 2019-05-08 Tom Tromey <tom@tromey.com>
6079 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
6080 (get_ada_tasks_pspace_data): Update.
6081 (ada_tasks_pspace_data_cleanup): Remove.
6082 (_initialize_tasks): Update.
6083 (ada_tasks_inferior_data_handle): Change type.
6084 (get_ada_tasks_inferior_data): Update.
6085 (ada_tasks_inferior_data_cleanup): Remove.
6086 (struct ada_tasks_pspace_data): Add initializers.
6088 2019-05-08 Tom Tromey <tom@tromey.com>
6090 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
6091 * symfile-debug.c (debug_sym_get_probes): Change type.
6092 * stap-probe.c (handle_stap_probe):
6093 (stap_static_probe_ops::get_probes): Change type.
6094 * probe.h (class static_probe_ops) <get_probes>: Change type.
6095 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
6096 (parse_probes_in_pspace): Update.
6097 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
6099 (any_static_probe_ops::get_probes): Change type.
6100 * elfread.c (elfread_data): New typedef.
6101 (probe_key): Change type.
6102 (elf_get_probes): Likewise. Update.
6103 (probe_key_free): Remove.
6104 (_initialize_elfread): Update.
6105 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
6107 (dtrace_process_dof_probe, dtrace_process_dof)
6108 (dtrace_static_probe_ops::get_probe): Change type.
6110 2019-05-08 Tom Tromey <tom@tromey.com>
6112 * xcoffread.c (struct xcoff_symfile_info): Rename from
6113 coff_symfile_info. Add initializers.
6114 (xcoff_objfile_data_key): Move lower. Change type.
6115 (XCOFF_DATA): Rewrite.
6116 (xcoff_free_info): Remove.
6117 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
6118 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
6119 (xcoff_initial_scan): Update.
6121 2019-05-08 Tom Tromey <tom@tromey.com>
6123 * solib-svr4.c (struct svr4_info): Add initializers and
6125 <probes_table>: Now an htab_up.
6126 (solib_svr4_pspace_data): Change type.
6127 (free_probes_table): Simplify.
6128 (~svr4_info): Rename from svr4_pspace_data_cleanup.
6129 (get_svr4_info, probes_table_htab_remove_objfile_probes)
6130 (probes_table_remove_objfile_probes, register_solib_event_probe)
6131 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
6132 (_initialize_svr4_solib): Update.
6134 2019-05-08 Tom Tromey <tom@tromey.com>
6136 * remote.c (remote_pspace_data): Change type.
6137 (remote_pspace_data_cleanup): Remove.
6138 (get_remote_exec_file, set_pspace_remote_exec_file)
6139 (_initialize_remote): Update.
6141 2019-05-08 Tom Tromey <tom@tromey.com>
6143 * breakpoint.c (breakpoint_objfile_key): Change type.
6144 (get_breakpoint_objfile_data): Update.
6145 (free_breakpoint_objfile_data): Remove.
6146 (_initialize_breakpoint): Update.
6148 2019-05-08 Tom Tromey <tom@tromey.com>
6150 * linux-tdep.c (struct linux_info): Add initializers.
6151 (linux_inferior_data): Move. Change type.
6152 (invalidate_linux_cache_inf): Update.
6153 (linux_inferior_data_cleanup): Remove.
6154 (get_linux_inferior_data, _initialize_linux_tdep): Update.
6156 2019-05-08 Tom Tromey <tom@tromey.com>
6158 * auxv.c (auxv_inferior_data): Move. Change type.
6159 (auxv_inferior_data_cleanup): Remove.
6160 (invalidate_auxv_cache_inf): Rewrite.
6161 (get_auxv_inferior_data, _initialize_auxv): Update.
6163 2019-05-08 Tom Tromey <tom@tromey.com>
6165 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
6166 (symfile_debug_objfile_data_key): Change type.
6167 (symfile_debug_installed, debug_qf_has_symbols)
6168 (debug_qf_find_last_source_symtab)
6169 (debug_qf_forget_cached_source_info)
6170 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
6171 (debug_qf_print_stats, debug_qf_dump)
6172 (debug_qf_expand_symtabs_for_function)
6173 (debug_qf_expand_all_symtabs)
6174 (debug_qf_expand_symtabs_with_fullname)
6175 (debug_qf_map_matching_symbols)
6176 (debug_qf_expand_symtabs_matching)
6177 (debug_qf_find_pc_sect_compunit_symtab)
6178 (debug_qf_map_symbol_filenames)
6179 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
6180 (debug_sym_new_init, debug_sym_init, debug_sym_read)
6181 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
6182 (debug_sym_read_linetable, debug_sym_relocate): Update.
6183 (symfile_debug_free_objfile): Remove.
6184 (install_symfile_debug_logging, _initialize_symfile_debug):
6187 2019-05-08 Tom Tromey <tom@tromey.com>
6189 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
6190 allocate_on_obstack.
6191 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
6192 (get_dwarf2_per_objfile): Update.
6193 (set_dwarf2_per_objfile): Remove.
6194 (dwarf2_has_info, dwarf2_get_section_info): Update.
6195 (dwarf2_free_objfile): Remove.
6196 (_initialize_dwarf2_read): Update.
6198 2019-05-08 Tom Tromey <tom@tromey.com>
6200 * auto-load.c (struct auto_load_pspace_info): Add destructor and
6202 <unsupported_script_warning_printed,
6203 script_not_found_warning_printed>: Now bool.
6204 (auto_load_pspace_data): Change type.
6205 (~auto_load_pspace_info): Rename from
6206 auto_load_pspace_data_cleanup.
6207 (get_auto_load_pspace_data, init_loaded_scripts_info)
6208 (clear_section_scripts, maybe_print_unsupported_script_warning)
6209 (maybe_print_script_not_found_warning, _initialize_auto_load):
6212 2019-05-08 Tom Tromey <tom@tromey.com>
6214 * objfiles.c (objfile_pspace_info): Add destructor and
6216 (objfiles_pspace_data): Change type.
6217 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
6218 (get_objfile_pspace_data): Update.
6219 (objfiles_bfd_data): Change type.
6220 (get_objfile_bfd_data): Update.
6221 (objfile_bfd_data_free, _initialize_objfiles): Remove.
6223 2019-05-08 Tom Tromey <tom@tromey.com>
6225 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
6227 (get_catch_syscall_inferior_data): Update.
6228 (catch_syscall_inferior_data_cleanup): Remove.
6229 (_initialize_break_catch_syscall): Update.
6231 2019-05-08 Tom Tromey <tom@tromey.com>
6233 * inflow.c (struct terminal_info): Add destructor and
6235 (inflow_inferior_data): Change type.
6236 (~terminal_info): Rename from inflow_inferior_data_cleanup.
6237 (get_inflow_inferior_data, inflow_inferior_exit)
6238 (swap_terminal_info, _initialize_inflow): Update.
6240 2019-05-08 Tom Tromey <tom@tromey.com>
6242 * target-dcache.c (target_dcache_cleanup): Remove.
6243 (target_dcache_aspace_key): Change type.
6244 (target_dcache_init_p, target_dcache_invalidate)
6245 (target_dcache_get, target_dcache_get_or_init)
6246 (_initialize_target_dcache): Update.
6247 * dcache.h (struct dcache_deleter): New.
6249 2019-05-08 Tom Tromey <tom@tromey.com>
6251 * symtab.c (struct symbol_cache): Add destructor and
6253 (symbol_cache_key): Move. Change type.
6254 (make_symbol_cache, free_symbol_cache): Remove.
6255 (get_symbol_cache): Update.
6256 (symbol_cache_cleanup): Remove.
6257 (ALL_PSPACES, symbol_cache_flush)
6258 (maintenance_print_symbol_cache)
6259 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
6262 2019-05-08 Tom Tromey <tom@tromey.com>
6264 * symtab.c (struct main_info): Add destructor and initializers.
6265 (main_progspace_key): Move. Change type.
6266 (get_main_info): Update.
6267 (main_info_cleanup): Remove.
6268 (_initialize_symtab): Update.
6270 2019-05-08 Tom Tromey <tom@tromey.com>
6272 * registry.h (DECLARE_REGISTRY): Define the _key class.
6274 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6276 * NEWS: Merge two 'New commands' sections.
6278 2019-05-08 Joel Brobecker <brobecker@adacore.com>
6280 * ada-valprint.c (ada_val_print_gnat_array): Remove language
6281 parameter and use Ada language definition instead.
6282 (ada_val_print_ptr): Remove unused language parameter.
6283 (ada_val_print_num): Remove language parameter and use Ada language
6285 (ada_val_print_enum, ada_val_print_flt): Remove unused language
6287 (ada_val_print_struct_union, ada_val_print_ref): Remove language
6288 parameter and use Ada language definition instead.
6289 (ada_val_print_1): Update all ada_val_print_xxx calls.
6290 Remove language parameter.
6291 (ada_val_print): Update ada_val_print_1 call.
6293 2019-05-08 Tom Tromey <tromey@adacore.com>
6295 * remote.c (remote_hw_watchpoint_limit)
6296 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
6299 2019-05-08 Tom Tromey <tromey@adacore.com>
6301 * maint.c (_initialize_maint_cmds): Move initialization code to
6303 (watchdog, show_watchdog): Move to remote.c.
6304 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
6306 (_initialize_remote): Move initialization code from maint.c.
6307 * defs.h (watchdog): Don't declare.
6309 2019-05-08 Tom Tromey <tromey@adacore.com>
6311 * tui/tui-interp.c: Include main.h.
6312 * interps.c: Include main.h.
6313 * main.h (interpreter_p): Declare.
6314 * defs.h (interpreter_p): Don't declare.
6316 2019-05-08 Tom Tromey <tromey@adacore.com>
6318 * dwarf2loc.c: Include dwarf2read.h.
6319 * defs.h (read_unsigned_leb128): Don't declare.
6320 * dwarf2read.h (read_unsigned_leb128): Declare.
6322 2019-05-08 Tom Tromey <tromey@adacore.com>
6324 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
6327 2019-05-08 Tom Tromey <tromey@adacore.com>
6329 * utils.c (fputs_maybe_filtered): Reset style after paging, even
6330 when no wrap column is set.
6332 2019-05-08 Tom Tromey <tromey@adacore.com>
6334 * c-lang.c (c_get_string): Handle non-C-style arrays.
6336 2019-05-08 Tom Tromey <tromey@adacore.com>
6338 * typeprint.c (print_offset_data::update): Print the bit offset,
6339 not the number of bits remaining.
6341 2019-05-08 Tom Tromey <tromey@adacore.com>
6343 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
6344 padding at end of comment.
6346 2019-05-08 Tom Tromey <tromey@adacore.com>
6348 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
6351 2019-05-06 Tom Tromey <tom@tromey.com>
6353 * common/scoped_mmap.c: Include common-defs.h.
6354 * common/scoped_mmap.h: Don't include config.h.
6356 2019-05-04 Tom Tromey <tom@tromey.com>
6358 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
6359 (struct aarch64_call_info): Add initializers.
6360 <si>: Now a std::vector.
6361 (pass_on_stack, aarch64_push_dummy_call): Update.
6363 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
6364 Tom Tromey <tom@tromey.com>
6366 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
6367 (ppc_threads): Now a std::vector. Now static.
6368 (hwdebug_find_thread_points_by_tid)
6369 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
6372 2019-05-04 Tom Tromey <tom@tromey.com>
6374 * arc-tdep.c (arc_tdesc_init): Return bool.
6376 2019-05-04 Tom Tromey <tom@tromey.com>
6378 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
6379 Use gdb_assert_not_reached.
6381 2019-05-04 Tom Tromey <tom@tromey.com>
6383 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
6386 2019-05-04 Tom Tromey <tom@tromey.com>
6388 * arc-tdep.c (arc_tdesc_init): Use bool.
6390 2019-05-04 Tom Tromey <tom@tromey.com>
6392 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
6394 2019-05-04 Tom Tromey <tom@tromey.com>
6396 * cli/cli-cmds.c (valid_command_p): Return bool.
6398 2019-05-04 Tom Tromey <tom@tromey.com>
6400 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
6401 * command.h (valid_user_defined_cmd_name_p): Channge return type.
6403 2019-05-04 Raul Tambre <raul@tambre.ee>
6405 * python/lib/gdb/prompt.py (_ExtendedPrompt)
6406 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
6407 operator for comparison.
6409 2019-05-04 Tom Tromey <tom@tromey.com>
6411 * psymtab.c (psymbol_name_matches, match_partial_symbol)
6412 (lookup_partial_symbol, print_partial_symbols)
6413 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
6414 (psymbol_compare): Update.
6415 (add_psymbol_to_bcache): Clear the entire psymbol.
6416 (maintenance_check_psymtabs): Update.
6417 * psympriv.h (struct partial_symbol): Don't derive from
6418 general_symbol_info.
6419 <obj_section, unrelocated_address, address,
6420 set_unrelocated_address>: Update.
6421 <ginfo>: New member.
6422 * dwarf-index-write.c (write_psymbols, debug_names::insert)
6423 (debug_names::write_psymbols): Update.
6425 2019-05-04 Tom de Vries <tdevries@suse.de>
6427 * contrib/cc-with-tweaks.sh: Support -n arg.
6429 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6431 * corelow.c (core_target::detach): Ensure frame cache and
6432 register caches are cleared.
6433 inferior.c (exit_inferior_1): Likewise.
6435 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
6436 Tom Tromey <tom@tromey.com>
6438 * dictionary.c (collate_pending_symbols_by_language): Remove
6439 "struct" from foreach.
6440 * symtab.c (lookup_global_symbol_from_objfile)
6441 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
6443 * ser-tcp.c (net_open): Remove "struct" from foreach.
6444 * objfiles.c (objfile_relocate, objfile_rebase)
6445 (objfile_has_symbols): Remove "struct" from foreach.
6446 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
6448 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
6450 * darwin-nat.c (thread_info_from_private_thread_info): Remove
6451 "struct" from foreach.
6452 * ada-lang.c (create_excep_cond_exprs)
6453 (ada_exception_catchpoint_cond_string): Remove "struct" from
6456 2019-05-03 Tom Tromey <tromey@adacore.com>
6458 * ada-exp.y (convert_char_literal): Check suffix of each
6461 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
6464 * ada-exp.y (yywrap): Don't define.
6465 * ada-lex.l (%option): Add noyywrap
6468 2019-05-03 Eli Zaretskii <eliz@gnu.org>
6470 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
6471 _WIN32_WINNT to the XP level, unless already defined to a higher
6474 * unittests/parse-connection-spec-selftests.c:
6476 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
6479 * symfile.c (find_separate_debug_file): Remove colon from the
6480 drive spec of DOS/Windows file names of the target, so that the
6481 file name produced from DEBUGDIR and the target's directory will
6482 be valid on DOS/Windows systems.
6484 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
6486 * rust-lang.c (val_print_struct): Handle printing structures
6489 2019-05-02 Tom Tromey <tromey@adacore.com>
6491 * valarith.c (_initialize_valarith): Remove.
6493 2019-05-01 Tom Tromey <tromey@adacore.com>
6495 * ada-lang.c (ada_value_primitive_field): Treat more fields as
6498 2019-05-01 Tom Tromey <tromey@adacore.com>
6500 * ada-lang.c (ada_value_assign): Correctly compute starting offset
6501 for big-endian copies.
6503 2019-04-30 Ali Tamur <tamur@google.com>
6504 * gdb/dwarf2read.c (read_3_bytes): New declaration.
6505 (read_attribute_value): Added DW_FORM_strx1-4 cases.
6506 (read_3_bytes): New function.
6508 2019-04-30 Joel Brobecker <brobecker@adacore.com>
6510 * windows-nat.c (main_thread_id): Delete.
6511 (handle_output_debug_string): Replace main_thread_id by
6512 current_event.dwThreadId.
6513 (fake_create_process): Likewise.
6514 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
6515 Do not set main_thread_id.
6516 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
6517 current_event.dwThreadId.
6518 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
6520 2019-04-30 Joel Brobecker <brobecker@adacore.com>
6522 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
6523 Use current_event.dwThreadId instead of main_thread_id.
6525 2019-04-30 Tom Tromey <tromey@adacore.com>
6527 * ada-lang.c (ada_lookup_simple_minsyms): New function.
6528 (create_excep_cond_exprs): Iterate over program spaces.
6529 (ada_exception_catchpoint_cond_string): Examine all minimal
6530 symbols for exception types.
6532 2019-04-30 Tom Tromey <tromey@adacore.com>
6535 * dwarf2read.c (process_structure_scope): Handle case where type
6536 has template parameters but no symbol was created.
6538 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6539 Chris January <chris.january@arm.com>
6541 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
6543 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
6545 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6547 * f-typeprint.c (f_print_type): Update rules for printing
6549 (f_type_print_varspec_suffix): Likewise.
6551 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6552 Chris January <chris.january@arm.com>
6554 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
6557 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6559 * f-lang.c (build_fortran_types): Change name of void type to
6561 * f-typeprint.c (f_type_print_base): Print the name of the void
6562 type, rather than a fixed string.
6563 * f-valprint.c (f_decorations): Use lower case void string.
6565 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6566 Chris January <chris.january@arm.com>
6568 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
6571 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6572 Chris January <chris.january@arm.com>
6573 David Lecomber <david.lecomber@arm.com>
6575 * f-exp.y (BINOP_INTRINSIC): New token.
6576 (exp): New parser rule handling BINOP_INTRINSIC.
6577 (f77_keywords): Add new builtin procedures.
6578 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
6579 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6580 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
6581 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6582 (print_unop_subexp_f): New function.
6583 (print_binop_subexp_f): New function.
6584 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6585 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6586 (dump_subexp_body_f): Likewise.
6587 (operator_check_f): Likewise.
6588 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6589 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
6591 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6593 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
6595 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
6596 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
6597 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
6598 (operator_length_f): New fuction.
6599 (print_subexp_f): New function.
6600 (op_name_f): New function.
6601 (dump_subexp_body_f): New function.
6602 (operator_check_f): New function.
6603 (exp_descriptor_f): Replace standard expression handling functions
6605 * gdb/fortran-operator.def: New file.
6606 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
6607 * gdb/std-operator.def: Remove UNOP_KIND.
6609 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6611 * std-operator.def: Remove unbalanced, stray double quote
6614 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6615 Chris January <chris.january@arm.com>
6616 Daniel Everett <daniel.everett@arm.com>
6617 Nick Forrington <nick.forrington@arm.com>
6618 Richard Bunt <richard.bunt@arm.com>
6620 * cp-valprint.c (cp_print_value_fields): Allow an additional level
6621 of depth when printing anonymous structs or unions.
6622 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
6623 Don't print either the top-level value, or the children if the
6624 max-depth is exceeded.
6625 (ppscm_print_children): When printing the key of a map, allow one
6626 extra level of depth.
6627 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
6628 print either the top-level value, or the children if the max-depth
6630 (print_children): When printing the key of a map, allow one extra
6632 * python/py-value.c (valpy_format_string): Add max_depth keyword.
6633 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
6634 (user_print_options): Initialise max_depth field.
6635 (val_print_scalar_or_string_type_p): New function.
6636 (val_print): Check to see if the max depth has been reached.
6637 (val_print_check_max_depth): Define new function.
6638 (show_print_max_depth): New function.
6639 (_initialize_valprint): Add 'print max-depth' option.
6640 * valprint.h (struct value_print_options) <max_depth>: New field.
6641 (val_print_check_max_depth): Declare new function.
6642 * NEWS: Document new feature.
6644 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6646 * ada-lang.c (ada_language_defn): Initialise new field.
6647 * c-lang.c (c_is_string_type_p): New function.
6648 (c_language_defn): Initialise new field.
6649 (cplus_language_defn): Initialise new field.
6650 (asm_language_defn): Initialise new field.
6651 (minimal_language_defn): Initialise new field.
6652 * c-lang.h (c_is_string_type_p): Declare new function.
6653 * d-lang.c (d_language_defn): Initialise new field.
6654 * f-lang.c (f_is_string_type_p): New function.
6655 (f_language_defn): Initialise new field.
6656 * go-lang.c (go_is_string_type_p): New function.
6657 (go_language_defn): Initialise new field.
6658 * language.c (default_is_string_type_p): New function.
6659 (unknown_language_defn): Initialise new field.
6660 (auto_language_defn): Initialise new field.
6661 * language.h (struct language_defn) <la_is_string_type_p>: New
6663 (default_is_string_type_p): Declare new function.
6664 * m2-lang.c (m2_language_defn): Initialise new field.
6665 * objc-lang.c (objc_language_defn): Initialise new field.
6666 * opencl-lang.c (opencl_language_defn): Initialise new field.
6667 * p-lang.c (pascal_is_string_type_p): New function.
6668 (pascal_language_defn): Initialise new field.
6669 * rust-lang.c (rust_is_string_type_p): New function.
6670 (rust_language_defn): Initialise new field.
6672 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6674 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
6676 * ada-lang.c (ada_language_defn): Initialise new field.
6677 * c-lang.c (c_language_defn): Likewise.
6678 (cplus_language_defn): Likewise.
6679 (asm_language_defn): Likewise.
6680 (minimal_language_defn): Likewise.
6681 * d-lang.c (d_language_defn): Likewise.
6682 * f-lang.c (f_language_defn): Likewise.
6683 * go-lang.c (go_language_defn): Likewise.
6684 * language.c (unknown_language_defn): Likewise.
6685 (auto_language_defn): Likewise.
6686 * m2-lang.c (m2_language_defn): Likewise.
6687 * objc-lang.c (objc_language_defn): Likewise.
6688 * opencl-lang.c (opencl_language_defn): Likewise.
6689 * p-lang.c (pascal_language_defn): Likewise.
6690 * rust-lang.c (rust_language_defn): Likewise.
6692 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6694 * ada-lang.c (ada_is_character_type): Change return type to bool.
6695 (ada_is_string_type): Likewise.
6696 * ada-lang.h (ada_is_character_type): Update declaration
6697 (ada_is_string_type): Likewise.
6699 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6701 Support style in 'frame|thread apply'
6703 * gdbcmd.h (execute_command_to_string): New term_out parameter.
6704 * record.c (record_start, record_stop): Update callers of
6705 execute_command_to_string with false.
6706 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
6707 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
6709 (class string_file): New constructor with term_out parameter.
6710 Override methods term_out and can_emit_style_escape. New member
6712 (class stdio_file): Override can_emit_style_escape.
6713 (class tee_file): Override term_out and can_emit_style_escape.
6714 * utils.h (can_emit_style_escape): Remove.
6715 * utils.c (can_emit_style_escape): Likewise.
6716 Update all callers of can_emit_style_escape (SOMESTREAM) to
6717 SOMESTREAM->can_emit_style_escape.
6718 * source-cache.c (source_cache::get_source_lines): Likewise.
6719 * stack.c (frame_apply_command_count): Call execute_command_to_string
6720 passing the term_out characteristic of the current gdb_stdout.
6721 * thread.c (thr_try_catch_cmd): Likewise.
6722 * top.c (execute_command_to_string): pass term_out parameter
6723 to construct the string_file for the command output.
6724 * ui-file.c (term_cli_styling): New function (most code moved
6725 from utils.c can_emit_style_escape).
6726 (string_file::string_file, string_file::can_emit_style_escape,
6727 stdio_file::can_emit_style_escape, tee_file::term_out,
6728 tee_file::can_emit_style_escape): New functions.
6730 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6732 * NEWS: Mention the new set|show may-call-functions.
6733 * infcall.c (may_call_functions_p): New variable.
6734 (show_may_call_functions_p): New function.
6735 (call_function_by_hand_dummy): Throws an error if not
6737 (_initialize_infcall): Call add_setshow_boolean_cmd for
6740 2019-04-25 Keith Seitz <keiths@redhat.com>
6743 * cp-support.c (inspect_type): Don't attempt substitutions
6744 of symbol with the same name.
6746 2019-04-25 Tom Tromey <tromey@adacore.com>
6749 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
6752 2019-04-25 Tom Tromey <tromey@adacore.com>
6754 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
6756 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
6757 (gdb_xml_parser::parse): Use std::move.
6758 * python/python-internal.h (gdbpy_convert_exception): Take a const
6760 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
6762 * python/py-utils.c (gdbpy_convert_exception): Take a const
6764 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
6766 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
6768 * mi/mi-main.c (mi_print_exception): Take a const reference.
6769 * main.c (handle_command_errors): Take a const reference.
6770 * linespec.c (parse_linespec): Use std::move.
6771 * infcall.c (run_inferior_call): Use std::move.
6772 (call_function_by_hand_dummy): Use std::move.
6773 * exec.c (try_open_exec_file): Use std::move.
6774 * exceptions.h (exception_print, exception_fprintf)
6775 (exception_print_same): Update.
6776 * exceptions.c (print_exception, exception_print)
6777 (exception_fprintf, exception_print_same): Change parameters to
6779 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
6780 * common/new-op.c: Use std::move.
6781 * common/common-exceptions.h (struct gdb_exception): Add move
6783 (struct gdb_exception_error, struct gdb_exception_quit, struct
6784 gdb_quit_bad_alloc): Change constructor to move constructor.
6785 (throw_exception): Change parameter to rvalue reference.
6786 * common/common-exceptions.c (throw_exception): Take rvalue
6788 * cli/cli-interp.c (safe_execute_command): Use std::move.
6789 * breakpoint.c (insert_bp_location, location_to_sals): Use
6792 2019-04-25 Tom Tromey <tromey@adacore.com>
6794 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
6795 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
6796 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
6797 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
6798 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
6799 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
6800 guile/scm-value.c: Use unpack.
6801 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
6802 gdbscm_gdb_exception.
6803 (gdbscm_throw_gdb_exception): Likewise.
6804 (struct gdbscm_gdb_exception): New.
6805 (unpack): New function.
6806 (gdbscm_wrap): Use unpack.
6808 2019-04-25 Tom Tromey <tromey@adacore.com>
6810 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
6811 (gdb_rl_callback_handler): Use std::move.
6812 * common/common-exceptions.h (struct gdb_exception): Add move
6813 assignment operator.
6814 (throw_exception_sjlj): Change "exception" to const reference.
6815 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
6816 (throw_exception_sjlj): Change "exception" to const reference.
6818 2019-04-25 Tom Tromey <tromey@adacore.com>
6820 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
6821 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
6822 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
6824 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
6826 * mi/mi-interp.c (mi_interp::exec): Update.
6827 * linespec.c (parse_linespec): Update.
6828 * infcall.c (run_inferior_call): Update.
6829 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
6830 * guile/scm-symbol.c (gdbscm_lookup_symbol)
6831 (gdbscm_lookup_global_symbol): Update.
6832 * guile/scm-param.c (gdbscm_parameter_value): Update.
6833 * guile/scm-frame.c (gdbscm_frame_read_register)
6834 (gdbscm_frame_read_var): Update.
6835 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
6836 * exec.c (try_open_exec_file): Update.
6837 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
6838 (gdb_rl_callback_handler): Update.
6839 * common/common-exceptions.h (exception_none): Don't declare.
6840 * common/common-exceptions.c (exception_none): Don't define.
6841 (struct catcher) <exception>: Update.
6842 * cli/cli-interp.c (safe_execute_command): Update.
6843 * breakpoint.c (insert_bp_location, location_to_sals): Update.
6845 2019-04-25 Ali Tamur <tamur@google.com>
6847 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
6848 (read_attribute_value): Likewise.
6849 (dwarf2_read_addr_index): Update comment.
6850 (read_str_index): Add DW_FORM_strx.
6851 (dwarf2_string_attr): Likewise.
6852 (dwarf2_const_value_attr): Likewise.
6853 (dump_die_shallow): Likewise.
6854 (dwarf2_fetch_constant_bytes): Likewise.
6855 (skip_form_bytes): Likewise.
6856 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
6858 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6862 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
6863 OFFSET. Verify if current mapping contains an ELF header.
6864 (linux_find_memory_regions_full): Adjust call to
6867 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
6868 Kang Li <kanglictf@gmail.com>
6872 * dwarf2-frame.c (read_initial_length): Be consistent about using
6873 unsigned representation of length.
6874 (decode_frame_entry_1): Likewise. Check for wraparound of
6875 end pointer as well as buffer overflow.
6877 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6879 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
6882 2019-04-24 Tom Tromey <tromey@adacore.com>
6884 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
6886 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6888 * s12z-tdep.c (s12z_unwind_pc): Delete.
6889 (s12z_unwind_sp): Delete.
6890 (s12z_gdbarch_init): Don't register deleted functions with
6893 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6895 * rl78-tdep.c (rl78_unwind_sp): Delete.
6896 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
6898 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6900 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
6901 (xstormy16_unwind_pc): Delete.
6902 (xstormy16_dummy_id): Delete.
6903 (xstormy16_gdbarch_init): Don't register deleted functions with
6906 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6908 * vax-tdep.c (vax_unwind_pc): Delete.
6909 (vax_gdbarch_init): Don't register deleted function with gdbarch.
6911 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6913 * v850-tdep.c (v850_unwind_sp): Delete.
6914 (v850_unwind_pc): Delete.
6915 (v850_dummy_id): Delete.
6916 (v850_gdbarch_init): Don't register deleted functions with
6919 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6921 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
6922 (tilegx_unwind_pc): Delete.
6923 (tilegx_unwind_dummy_id): Delete.
6924 (tilegx_gdbarch_init): Don't register deleted functions with
6927 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6929 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
6930 (tic6x_dummy_id): Delete.
6931 (tic6x_gdbarch_init): Don't register deleted functions with
6934 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6936 * sparc-tdep.c (sparc_unwind_pc): Delete.
6937 (sparc32_gdbarch_init): Don't register deleted function with
6940 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6942 * sh-tdep.c (sh_unwind_sp): Delete.
6943 (sh_unwind_pc): Delete.
6944 (sh_dummy_id): Delete.
6945 (sh_gdbarch_init): Don't register deleted functions with
6948 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6950 * score-tdep.c (score_unwind_sp): Delete.
6951 (score_unwind_pc): Delete.
6952 (score_dummy_id): Delete.
6953 (score_gdbarch_init): Don't register deleted functions with
6956 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6958 * rx-tdep.c (rx_unwind_pc): Delete.
6959 (rx_unwind_sp): Delete.
6960 (rx_dummy_id): Delete.
6961 (rx_gdbarch_init): Don't register deleted functions with
6962 gdbarch. Update comment.
6964 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6966 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
6967 (rs6000_dummy_id): Delete.
6968 (rs6000_gdbarch_init): Don't register deleted functions with
6971 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6973 * or1k-tdep.c (or1k_dummy_id): Delete.
6974 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
6976 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6978 * nios2-tdep.c (nios2_dummy_id): Delete.
6979 (nios2_unwind_sp): Delete.
6980 (nios2_gdbarch_init): Don't register deleted functions with
6983 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6985 * nds32-tdep.c (nds32_dummy_id): Delete.
6986 (nds32_unwind_pc): Delete.
6987 (nds32_unwind_sp): Delete.
6988 (nds32_gdbarch_init): Don't register deleted functions with
6991 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6993 * msp430-tdep.c (msp430_unwind_pc): Delete.
6994 (msp430_unwind_sp): Delete.
6995 (msp430_dummy_id): Delete.
6996 (msp430_gdbarch_init): Don't register deleted functions with
6999 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7001 * moxie-tdep.c (moxie_unwind_sp): Delete.
7002 (moxie_unwind_pc): Delete.
7003 (moxie_dummy_id): Delete.
7004 (moxie_gdbarch_init): Don't register deleted functions with
7007 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7009 * mn10300-tdep.c (mn10300_dummy_id): Delete.
7010 (mn10300_unwind_pc): Delete.
7011 (mn10300_unwind_sp): Delete.
7012 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
7014 (mn10300_frame_unwind_init): Don't register deleted functions with
7017 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7019 * mep-tdep.c (mep_unwind_pc): Delete.
7020 (mep_unwind_sp): Delete.
7021 (mep_dummy_id): Delete.
7022 (mep_gdbarch_init): Don't register deleted functions with
7025 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7027 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
7028 (m68hc11_unwind_sp): Delete.
7029 (m68hc11_gdbarch_init): Don't register deleted functions with
7032 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7034 * m32r-tdep.c (m32r_unwind_sp): Delete.
7035 (m32r_unwind_pc): Delete.
7036 (m32r_dummy_id): Delete.
7037 (m32r_gdbarch_init): Don't register deleted functions with
7040 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7042 * m32c-tdep.c (m32c_unwind_pc): Delete.
7043 (m32c_unwind_sp): Delete.
7044 (m32c_dummy_id): Delete.
7045 (m32c_gdbarch_init): Don't register deleted functions with
7048 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7050 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
7051 (lm32_unwind_pc): Delete.
7052 (lm32_dummy_id): Delete.
7053 (lm32_gdbarch_init): Don't register deleted functions with
7056 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7058 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
7059 (iq2000_unwind_pc): Delete.
7060 (iq2000_dummy_id): Delete.
7061 (iq2000_gdbarch_init): Don't register deleted functions with
7064 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7066 * nds32-tdep.c (nds32_type_align): Delete.
7067 (nds32_push_dummy_call): Use type_align instead.
7069 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7071 * arm-tdep.c (arm_type_align): Only handle vector override case.
7072 (arm_push_dummy_call): Use type_align.
7073 (arm_gdbarch_init): Register arm_type_align gdbarch function.
7075 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7077 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
7079 (pass_on_stack): Use type_align.
7080 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
7083 2019-04-23 Tom Tromey <tromey@adacore.com>
7085 * dwarf2read.c (line_header::file_name_at): Remove unused
7088 2019-04-23 Tom de Vries <tdevries@suse.de>
7091 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
7095 2019-03-27 Ali Tamur <tamur@google.com>
7097 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
7098 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
7099 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
7100 (dwarf_expr_context::get_addr_index): Likewise
7101 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
7102 (symbol_needs_eval_context::get_addr_index): Likewise
7103 (disassemble_dwarf_expression): Add DW_OP_addrx
7104 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
7105 (read_cutu_die_from_dwo): Update comment
7106 (skip_one_die): Add DW_FORM_addrx
7107 (read_attribute_value): Likewise
7108 (var_decode_location): Add DW_OP_addrx
7109 (dwarf2_const_value_attr): Add DW_FORM_addrx
7110 (dump_die_shallow): Likewise
7111 (dwarf2_fetch_constant_bytes): Likewise
7112 (decode_locdesc): Add DW_OP_addrx
7113 (skip_form_bytes): Add DW_FORM_addrx
7115 2019-04-22 Ali Tamur <tamur@google.com>
7117 * MAINTAINERS (Write After Approval): Add self.
7119 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
7121 * solib-svr4.c (get_svr4_info): Add pspace parameter.
7122 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
7123 (open_symbol_file_object): Likewise.
7124 (svr4_default_sos): Add info parameter.
7125 (svr4_read_so_list): Likewise.
7126 (svr4_current_sos_direct): Adjust functions calls to pass down
7128 (svr4_current_sos_1): Add info parameter.
7129 (svr4_current_sos): Call get_svr4_info, pass info down to
7131 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
7133 (svr4_in_dynsym_resolve_code): Pass current_program_space to
7135 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
7137 (probes_table_remove_objfile_probes): Likewise.
7138 (register_solib_event_probe): Add info parameter.
7139 (solist_update_incremental): Pass info parameter down to
7141 (disable_probes_interface): Add info parameter.
7142 (svr4_handle_solib_event): Pass current_program_space to
7143 get_svr4_info. Adjust disable_probes_interface cleanup.
7144 (svr4_create_probe_breakpoints): Add info parameter, pass it
7145 down to register_solib_event_probe.
7146 (svr4_create_solib_event_breakpoints): Add info parameter,
7147 pass it down to svr4_create_probe_breakpoints.
7148 (enable_break): Pass info down to
7149 svr4_create_solib_event_breakpoints.
7150 (svr4_solib_create_inferior_hook): Pass current_program_space to
7152 (svr4_clear_solib): Likewise.
7154 2019-04-22 Pedro Alves <palves@redhat.com>
7156 * solib-svr4.c (svr4_free_objfile_observer): New.
7157 (probe_and_action::objfile): New field.
7158 (probes_table_htab_remove_objfile_probes)
7159 (probes_table_remove_objfile_probes): New functions.
7160 (register_solib_event_probe): Add 'objfile' parameter. Store it
7161 in the new probe_and_action. Don't store the probe in 'lookup'.
7162 (svr4_create_probe_breakpoints): Pass objfile to
7163 register_solib_event_probe.
7164 (_initialize_svr4_solib): Register a free_objfile observer.
7166 2019-04-19 Tom Tromey <tom@tromey.com>
7168 * common/queue.h: Remove.
7170 2019-04-19 Tom Tromey <tom@tromey.com>
7172 * event-loop.c: Don't include "common/queue.h".
7174 2019-04-19 Tom Tromey <tom@tromey.com>
7176 * remote.c (remote_target): Use delete.
7177 * remote-notif.h: Include <list>, not "common/queue.h".
7178 (notif_client_p): Remove typedef.
7179 (remote_notif_state): Add constructor, destructor, initializer.
7180 <notif_queue>: Now a std::list.
7181 (remote_notif_state_xfree): Don't declare.
7182 * remote-notif.c (remote_notif_process, handle_notification)
7183 (remote_notif_state_allocate): Update.
7184 (~remote_notif_state): Rename from remote_notif_state_xfree.
7186 2019-04-19 Tom Tromey <tom@tromey.com>
7188 * symfile.c (reread_symbols): Update.
7189 * objfiles.c (objfile_register_static_link)
7190 (objfile_lookup_static_link): Update
7191 (~objfile) Don't delete static_links.
7192 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
7194 2019-04-19 Tom Tromey <tom@tromey.com>
7196 * type-stack.h (struct type_stack) <insert>: Constify string.
7197 * type-stack.c (type_stack::insert): Constify string.
7198 * gdbtypes.h (lookup_template_type): Update.
7199 (address_space_name_to_int): Update.
7200 * gdbtypes.c (address_space_name_to_int): Make space_identifier
7202 (lookup_template_type): Make name const.
7203 * c-exp.y: Update rules.
7204 (lex_one_token, classify_name, classify_inner_name)
7205 (c_print_token): Update.
7206 * p-exp.y: Update rules.
7208 * f-exp.y: Update rules.
7210 * d-exp.y: Update rules.
7211 (lex_one_token, classify_name, classify_inner_name): Update.
7212 * parse.c (write_dollar_variable, copy_name): Return std::string.
7213 * parser-defs.h (copy_name): Change return type.
7214 * m2-exp.y: Update rules.
7216 * go-exp.y (lex_one_token): Update.
7218 (classify_unsafe_function, classify_packaged_name)
7219 (classify_name, yylex): Update.
7221 2019-04-19 Sergei Trofimovich <siarheit@google.com>
7223 * configure.ac: add --enable-source-highlight switch.
7224 * configure: Regenerate.
7225 * top.c (print_gdb_version): plumb --enable-source-highlight
7226 status to "show configuration".
7228 2019-04-19 Tom Tromey <tromey@adacore.com>
7230 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
7232 (empty_record, ada_template_to_fixed_record_type_1)
7233 (template_to_static_fixed_type)
7234 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
7235 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
7236 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
7239 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
7242 * source.c (print_source_lines_base): Advance "iter" when a
7243 control character is seen.
7245 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7247 * inferior.h (struct infcall_suspend_state_deleter):
7248 Catch exception in destructor to avoid crash.
7250 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7252 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
7253 close to the add_com "shell".
7255 2019-04-18 Tom Tromey <tromey@adacore.com>
7257 * process-stratum-target.h (class process_stratum_target)
7258 <stratum>: Add "final".
7260 2019-04-17 Tom Tromey <tromey@adacore.com>
7262 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
7263 against nullptr before use.
7265 2019-04-17 Alan Hayward <alan.hayward@arm.com>
7267 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
7269 2019-04-17 Jim Wilson <jimw@sifive.com>
7270 Andrew Burgess <andrew.burgess@embecosm.com>
7272 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
7273 code read might fail, assume 4-byte breakpoint in that case.
7275 2019-04-15 Leszek Swirski <leszeks@google.com>
7277 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
7278 rather than a hand-rolled POD check when checking for forced MEMORY
7281 2019-04-15 Alan Hayward <alan.hayward@arm.com>
7283 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
7284 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
7286 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
7287 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
7288 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
7291 2019-04-15 Alan Hayward <alan.hayward@arm.com>
7293 * aarch64-linux-nat.c
7294 (aarch64_linux_nat_target::thread_architecture): Add override.
7295 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
7298 2019-04-15 Alan Hayward <alan.hayward@arm.com>
7300 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
7302 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
7304 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
7305 target types of size 96-bits, add some additional comments, and
7306 check that the builtin type we found was the correct size.
7308 2019-04-12 Eli Zaretskii <eliz@gnu.org>
7310 * utils.c (prompt_for_continue): Don't restore the styling at the
7311 end, as applied_style has the wrong value. This fixes styling in
7312 long lists of file names that are interrupted by the "Continue?"
7315 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
7317 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
7318 * c-lang.c (c_language_defn): Likewise.
7319 (cplus_language_defn): Likewise.
7320 (asm_language_defn): Likewise.
7321 (minimal_language_defn): Likewise.
7322 * d-lang.c (d_language_defn): Likewise.
7323 * f-lang.c (f_language_defn): Likewise.
7324 * go-lang.c (go_language_defn): Likewise.
7325 * language.c (unknown_language_defn): Likewise.
7326 (auto_language_defn): Likewise.
7327 * language.h (struct language_defn): Remove la_magic field.
7328 (LANG_MAGIC): Delete.
7329 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
7330 * objc-lang.c (objc_language_defn): Likewise.
7331 * opencl-lang.c (opencl_language_defn): Likewise.
7332 * p-lang.c (pascal_language_defn): Likewise.
7333 * rust-lang.c (rust_language_defn): Likewise.
7335 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7337 * riscv-tdep.c (riscv_type_align): New function.
7338 (riscv_type_alignment): Delete.
7339 (riscv_arg_location): Use 'type_align'.
7340 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
7342 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7344 * gdbtypes.c (type_align): A struct with no non-static fields also
7347 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7349 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
7351 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
7353 (riscv_struct_info::analyse): New implementation using new
7354 analyse_inner member function.
7355 (riscv_struct_info::field_offset): New member function.
7356 (riscv_struct_info::m_offsets): New member variable.
7357 (riscv_struct_info::analyse_inner): New private member function,
7358 takes the old implementation of riscv_struct_info::analyse but
7359 extended to track field offsets.
7360 (riscv_call_arg_struct): Update the struct folding special cases
7361 to handle cases where empty C++ structs, which are non-zero
7363 (riscv_arg_location): Initialise the length of each location, a
7364 non-zero length now indicates the location is in use.
7365 (riscv_push_dummy_call): Allow for the first location having a
7366 non-zero offset when setting up arguments.
7367 (riscv_return_value): Likewise, but for return values.
7369 2019-04-11 Tom Tromey <tromey@adacore.com>
7371 * utils.c (internal_vproblem): Make "msg" const.
7373 2019-04-11 Alan Hayward <alan.hayward@arm.com>
7375 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
7376 * trad-frame.c (trad_frame_reset_saved_regs): New function.
7377 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
7378 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
7380 2019-04-10 Kevin Buettner <kevinb@redhat.com>
7382 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
7384 (fill_gregset): Call amd64_linux_collect_native_gregset instead
7385 of amd64_collect_native_gregset.
7386 (amd64_linux_nat_target::store_registers): Likewise.
7388 2019-04-10 Tom Tromey <tom@tromey.com>
7390 * symtab.c (lookup_global_symbol_from_objfile)
7391 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
7392 * objfiles.h (class separate_debug_iterator): New.
7393 (class separate_debug_range): New.
7394 (struct objfile) <separate_debug_objfiles>: New method.
7395 (objfile_separate_debug_iterate): Don't declare.
7396 * objfiles.c (separate_debug_iterator::operator++): Rename from
7397 objfile_separate_debug_iterate.
7398 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
7400 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
7403 2019-04-10 Tom Tromey <tom@tromey.com>
7405 * symfile.c (reread_symbols): Remove old comment.
7406 * objfiles.c (free_all_objfiles): Fix a typo.
7408 2019-04-10 Tom Tromey <tom@tromey.com>
7410 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
7411 * minsyms.c (lookup_minimal_symbol): Use foreach.
7412 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7413 (lookup_minimal_symbol_solib_trampoline): Likewise.
7414 * symfile.c (reread_symbols): Use foreach.
7416 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
7417 Tom Tromey <tromey@adacore.com>
7420 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
7421 (rust_lex_int_test): Change "value" to be LONGEST.
7422 (rust_lex_tests): Add test for long integer literal.
7424 2019-04-09 Tom Tromey <tromey@adacore.com>
7426 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
7428 (extended_remote_target::attach): Update.
7429 (remote_target::remote_notice_new_inferior): Update.
7430 (remote_target::add_current_inferior_and_thread): Update.
7431 * inferior.c (exit_inferior_1): Use "false".
7432 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
7434 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
7436 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
7437 the "start" command.
7439 2019-04-08 Kevin Buettner <kevinb@redhat.com>
7441 * python/py-inferior.c (infpy_thread_from_thread_handle):
7442 Adjust comments to reflect renaming of thread_from_thread_handle
7443 to thread_from_handle. Adjust keywords. Fix type error message.
7444 (inferior_object_methods): Add thread_from_handle. Retain
7445 thread_from_thread_handle, but mark it as deprecated.
7447 2019-04-08 Kevin Buettner <kevinb@redhat.com>
7449 * gdbthread.h (find_thread_by_handle): Revise declaration.
7450 * thread.c (find_thread_by_handle): Likewise. Adjust
7452 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
7453 support for buffer objects as handles.
7455 2019-04-08 Kevin Buettner <kevinb@redhat.com>
7457 * python/py-infthread.c (thpy_thread_handle): New function.
7458 (thread_object_methods): Register thpy_thread_handle.
7460 2019-04-08 Kevin Buettner <kevinb@redhat.com>
7462 * gdbthread.h (thread_to_thread_handle): Declare.
7463 * thread.c (gdbtypes.h): Include.
7464 (thread_to_thread_handle): New function.
7466 * target.h (struct target_ops): Add thread_info_to_thread_handle.
7467 (target_thread_info_to_thread_handle): Declare.
7468 * target.c (target_thread_info_to_thread_handle): New function.
7469 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
7470 * target-delegates.c: Regenerate.
7472 * linux-thread-db.c (class thread_db_target): Add method
7473 thread_info_to_thread_handle.
7474 (thread_db_target::thread_info_to_thread_handle): Define.
7475 * remote.c (class remote_target): Add new method
7476 thread_info_to_thread_handle.
7477 (remote_target::thread_info_to_thread_handle): Define.
7479 2019-04-08 Pedro Alves <palves@redhat.com>
7481 * common/common-exceptions.c (throw_exception): Don't create
7482 named object to throw; throw directly.
7483 (throw_it): Likewise. Don't initialize gdb_exception::message
7484 here, with new; pass FMT and AP to the ctor instead.
7485 * common/common-exceptions.h: Include <string>.
7486 (gdb_exception::gdb_exception(enum return_reason, enum errors,
7487 const char *, va_list)): New ctor. Use std::make_shared.
7488 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
7490 (gdb_exception_error::gdb_exception_error(enum errors, const char
7492 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
7494 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
7496 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
7497 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
7500 2019-04-08 Tom Tromey <tom@tromey.com>
7502 * valops.c (value_rtti_indirect_type): Replace throw_exception
7504 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
7506 * thread.c (thr_try_catch_cmd): Replace throw_exception with
7508 * target.c (target_translate_tls_address): Replace throw_exception
7510 * stack.c (frame_apply_command_count): Replace throw_exception
7512 * solib-spu.c (append_ocl_sos): Replace throw_exception with
7514 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
7516 * rs6000-tdep.c (rs6000_frame_cache)
7517 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
7518 * remote.c: Replace throw_exception with throw.
7519 * record-full.c (record_full_message, record_full_wait_1)
7520 (record_full_restore): Replace throw_exception with throw.
7522 (get_thread_current_frame_id, record_btrace_start_replaying)
7523 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
7524 (cmd_record_btrace_start): Replace throw_exception with throw.
7525 * parse.c (parse_exp_in_context_1): Replace throw_exception with
7527 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
7528 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
7530 (find_linespec_symbols): Replace throw_exception with throw.
7531 * infrun.c (displaced_step_prepare, resume): Replace
7532 throw_exception with throw.
7533 * infcmd.c (post_create_inferior): Replace throw_exception with
7535 * inf-loop.c (inferior_event_handler): Replace throw_exception
7537 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
7538 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
7539 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
7540 (get_prev_frame_always, get_frame_pc_if_available)
7541 (get_frame_address_in_block_if_available, get_frame_language):
7542 Replace throw_exception with throw.
7543 * frame-unwind.c (frame_unwind_try_unwinder): Replace
7544 throw_exception with throw.
7545 * eval.c (fetch_subexp_value, evaluate_var_value)
7546 (evaluate_funcall, evaluate_subexp_standard): Replace
7547 throw_exception with throw.
7548 * dwarf2loc.c (call_site_find_chain)
7549 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
7550 Replace throw_exception with throw.
7551 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
7553 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
7555 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
7556 * completer.c (complete_line_internal): Replace throw_exception
7558 * compile/compile-object-run.c (compile_object_run): Replace
7559 throw_exception with throw.
7560 * cli/cli-script.c (process_next_line): Replace throw_exception
7562 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
7563 (btrace_enable, btrace_maint_update_pt_packets): Replace
7564 throw_exception with throw.
7565 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
7566 throw_exception with throw.
7567 * break-catch-throw.c (re_set_exception_catchpoint): Replace
7568 throw_exception with throw.
7569 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
7570 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
7571 * aarch64-tdep.c (aarch64_make_prologue_cache)
7572 (aarch64_make_stub_cache): Replace throw_exception with throw.
7574 2019-04-08 Tom Tromey <tom@tromey.com>
7576 * common/common-exceptions.c (throw_exception): Rename from
7577 throw_exception_cxx. Remove old copy. Make argument const.
7578 (throw_it): Create and throw exception objects directly.
7579 * common/common-exceptions.h (throw_exception): Make argument
7581 (struct gdb_exception_error): Add constructor.
7582 (struct gdb_exception_quit): Add constructor.
7584 2019-04-08 Tom Tromey <tom@tromey.com>
7586 * common/common-exceptions.h (exception_rethrow): Don't declare.
7587 (TRY_SJLJ): Update comment.
7588 (TRY, CATCH, END_CATCH): Remove.
7589 * common/common-exceptions.c (exception_rethrow): Remove.
7591 2019-04-08 Tom Tromey <tom@tromey.com>
7593 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
7595 (gdb_exception_error): Rename from
7596 gdb_exception_RETURN_MASK_ERROR.
7597 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
7598 (gdb_quit_bad_alloc): Update.
7599 * aarch64-tdep.c: Update.
7600 * ada-lang.c: Update.
7601 * ada-typeprint.c: Update.
7602 * ada-valprint.c: Update.
7603 * amd64-tdep.c: Update.
7604 * arch-utils.c: Update.
7605 * break-catch-throw.c: Update.
7606 * breakpoint.c: Update.
7608 * c-varobj.c: Update.
7609 * cli/cli-cmds.c: Update.
7610 * cli/cli-interp.c: Update.
7611 * cli/cli-script.c: Update.
7612 * common/common-exceptions.c: Update.
7613 * common/new-op.c: Update.
7614 * common/selftest.c: Update.
7615 * compile/compile-c-symbols.c: Update.
7616 * compile/compile-cplus-symbols.c: Update.
7617 * compile/compile-object-load.c: Update.
7618 * compile/compile-object-run.c: Update.
7619 * completer.c: Update.
7620 * corelow.c: Update.
7622 * cp-support.c: Update.
7623 * cp-valprint.c: Update.
7624 * darwin-nat.c: Update.
7625 * disasm-selftests.c: Update.
7626 * dtrace-probe.c: Update.
7627 * dwarf-index-cache.c: Update.
7628 * dwarf-index-write.c: Update.
7629 * dwarf2-frame-tailcall.c: Update.
7630 * dwarf2-frame.c: Update.
7631 * dwarf2loc.c: Update.
7632 * dwarf2read.c: Update.
7634 * event-loop.c: Update.
7635 * event-top.c: Update.
7637 * f-valprint.c: Update.
7638 * fbsd-tdep.c: Update.
7639 * frame-unwind.c: Update.
7641 * gdbtypes.c: Update.
7642 * gnu-v3-abi.c: Update.
7643 * guile/guile-internal.h: Update.
7644 * guile/scm-block.c: Update.
7645 * guile/scm-breakpoint.c: Update.
7646 * guile/scm-cmd.c: Update.
7647 * guile/scm-disasm.c: Update.
7648 * guile/scm-frame.c: Update.
7649 * guile/scm-lazy-string.c: Update.
7650 * guile/scm-math.c: Update.
7651 * guile/scm-param.c: Update.
7652 * guile/scm-ports.c: Update.
7653 * guile/scm-pretty-print.c: Update.
7654 * guile/scm-symbol.c: Update.
7655 * guile/scm-symtab.c: Update.
7656 * guile/scm-type.c: Update.
7657 * guile/scm-value.c: Update.
7658 * i386-linux-tdep.c: Update.
7659 * i386-tdep.c: Update.
7660 * inf-loop.c: Update.
7661 * infcall.c: Update.
7665 * language.c: Update.
7666 * linespec.c: Update.
7667 * linux-fork.c: Update.
7668 * linux-nat.c: Update.
7669 * linux-tdep.c: Update.
7670 * linux-thread-db.c: Update.
7672 * mi/mi-cmd-break.c: Update.
7673 * mi/mi-cmd-stack.c: Update.
7674 * mi/mi-interp.c: Update.
7675 * mi/mi-main.c: Update.
7676 * objc-lang.c: Update.
7677 * p-valprint.c: Update.
7679 * ppc-linux-tdep.c: Update.
7680 * printcmd.c: Update.
7681 * python/py-arch.c: Update.
7682 * python/py-breakpoint.c: Update.
7683 * python/py-cmd.c: Update.
7684 * python/py-finishbreakpoint.c: Update.
7685 * python/py-frame.c: Update.
7686 * python/py-framefilter.c: Update.
7687 * python/py-gdb-readline.c: Update.
7688 * python/py-inferior.c: Update.
7689 * python/py-infthread.c: Update.
7690 * python/py-lazy-string.c: Update.
7691 * python/py-linetable.c: Update.
7692 * python/py-objfile.c: Update.
7693 * python/py-param.c: Update.
7694 * python/py-prettyprint.c: Update.
7695 * python/py-progspace.c: Update.
7696 * python/py-record-btrace.c: Update.
7697 * python/py-record.c: Update.
7698 * python/py-symbol.c: Update.
7699 * python/py-type.c: Update.
7700 * python/py-unwind.c: Update.
7701 * python/py-utils.c: Update.
7702 * python/py-value.c: Update.
7703 * python/python.c: Update.
7704 * record-btrace.c: Update.
7705 * record-full.c: Update.
7706 * remote-fileio.c: Update.
7708 * riscv-tdep.c: Update.
7709 * rs6000-aix-tdep.c: Update.
7710 * rs6000-tdep.c: Update.
7711 * rust-exp.y: Update.
7712 * rust-lang.c: Update.
7713 * s390-tdep.c: Update.
7714 * selftest-arch.c: Update.
7715 * solib-dsbt.c: Update.
7716 * solib-frv.c: Update.
7717 * solib-spu.c: Update.
7718 * solib-svr4.c: Update.
7720 * sparc64-linux-tdep.c: Update.
7722 * symfile-mem.c: Update.
7723 * symmisc.c: Update.
7727 * tracefile-tfile.c: Update.
7728 * tui/tui.c: Update.
7729 * typeprint.c: Update.
7730 * unittests/cli-utils-selftests.c: Update.
7731 * unittests/parse-connection-spec-selftests.c: Update.
7733 * valprint.c: Update.
7736 * windows-nat.c: Update.
7737 * x86-linux-nat.c: Update.
7738 * xml-support.c: Update.
7740 2019-04-08 Tom Tromey <tom@tromey.com>
7742 * xml-support.c: Use C++ exception handling.
7743 * x86-linux-nat.c: Use C++ exception handling.
7744 * windows-nat.c: Use C++ exception handling.
7745 * varobj.c: Use C++ exception handling.
7746 * value.c: Use C++ exception handling.
7747 * valprint.c: Use C++ exception handling.
7748 * valops.c: Use C++ exception handling.
7749 * unittests/parse-connection-spec-selftests.c: Use C++ exception
7751 * unittests/cli-utils-selftests.c: Use C++ exception handling.
7752 * typeprint.c: Use C++ exception handling.
7753 * tui/tui.c: Use C++ exception handling.
7754 * tracefile-tfile.c: Use C++ exception handling.
7755 * top.c: Use C++ exception handling.
7756 * thread.c: Use C++ exception handling.
7757 * target.c: Use C++ exception handling.
7758 * symmisc.c: Use C++ exception handling.
7759 * symfile-mem.c: Use C++ exception handling.
7760 * stack.c: Use C++ exception handling.
7761 * sparc64-linux-tdep.c: Use C++ exception handling.
7762 * solib.c: Use C++ exception handling.
7763 * solib-svr4.c: Use C++ exception handling.
7764 * solib-spu.c: Use C++ exception handling.
7765 * solib-frv.c: Use C++ exception handling.
7766 * solib-dsbt.c: Use C++ exception handling.
7767 * selftest-arch.c: Use C++ exception handling.
7768 * s390-tdep.c: Use C++ exception handling.
7769 * rust-lang.c: Use C++ exception handling.
7770 * rust-exp.y: Use C++ exception handling.
7771 * rs6000-tdep.c: Use C++ exception handling.
7772 * rs6000-aix-tdep.c: Use C++ exception handling.
7773 * riscv-tdep.c: Use C++ exception handling.
7774 * remote.c: Use C++ exception handling.
7775 * remote-fileio.c: Use C++ exception handling.
7776 * record-full.c: Use C++ exception handling.
7777 * record-btrace.c: Use C++ exception handling.
7778 * python/python.c: Use C++ exception handling.
7779 * python/py-value.c: Use C++ exception handling.
7780 * python/py-utils.c: Use C++ exception handling.
7781 * python/py-unwind.c: Use C++ exception handling.
7782 * python/py-type.c: Use C++ exception handling.
7783 * python/py-symbol.c: Use C++ exception handling.
7784 * python/py-record.c: Use C++ exception handling.
7785 * python/py-record-btrace.c: Use C++ exception handling.
7786 * python/py-progspace.c: Use C++ exception handling.
7787 * python/py-prettyprint.c: Use C++ exception handling.
7788 * python/py-param.c: Use C++ exception handling.
7789 * python/py-objfile.c: Use C++ exception handling.
7790 * python/py-linetable.c: Use C++ exception handling.
7791 * python/py-lazy-string.c: Use C++ exception handling.
7792 * python/py-infthread.c: Use C++ exception handling.
7793 * python/py-inferior.c: Use C++ exception handling.
7794 * python/py-gdb-readline.c: Use C++ exception handling.
7795 * python/py-framefilter.c: Use C++ exception handling.
7796 * python/py-frame.c: Use C++ exception handling.
7797 * python/py-finishbreakpoint.c: Use C++ exception handling.
7798 * python/py-cmd.c: Use C++ exception handling.
7799 * python/py-breakpoint.c: Use C++ exception handling.
7800 * python/py-arch.c: Use C++ exception handling.
7801 * printcmd.c: Use C++ exception handling.
7802 * ppc-linux-tdep.c: Use C++ exception handling.
7803 * parse.c: Use C++ exception handling.
7804 * p-valprint.c: Use C++ exception handling.
7805 * objc-lang.c: Use C++ exception handling.
7806 * mi/mi-main.c: Use C++ exception handling.
7807 * mi/mi-interp.c: Use C++ exception handling.
7808 * mi/mi-cmd-stack.c: Use C++ exception handling.
7809 * mi/mi-cmd-break.c: Use C++ exception handling.
7810 * main.c: Use C++ exception handling.
7811 * linux-thread-db.c: Use C++ exception handling.
7812 * linux-tdep.c: Use C++ exception handling.
7813 * linux-nat.c: Use C++ exception handling.
7814 * linux-fork.c: Use C++ exception handling.
7815 * linespec.c: Use C++ exception handling.
7816 * language.c: Use C++ exception handling.
7817 * jit.c: Use C++ exception handling.
7818 * infrun.c: Use C++ exception handling.
7819 * infcmd.c: Use C++ exception handling.
7820 * infcall.c: Use C++ exception handling.
7821 * inf-loop.c: Use C++ exception handling.
7822 * i386-tdep.c: Use C++ exception handling.
7823 * i386-linux-tdep.c: Use C++ exception handling.
7824 * guile/scm-value.c: Use C++ exception handling.
7825 * guile/scm-type.c: Use C++ exception handling.
7826 * guile/scm-symtab.c: Use C++ exception handling.
7827 * guile/scm-symbol.c: Use C++ exception handling.
7828 * guile/scm-pretty-print.c: Use C++ exception handling.
7829 * guile/scm-ports.c: Use C++ exception handling.
7830 * guile/scm-param.c: Use C++ exception handling.
7831 * guile/scm-math.c: Use C++ exception handling.
7832 * guile/scm-lazy-string.c: Use C++ exception handling.
7833 * guile/scm-frame.c: Use C++ exception handling.
7834 * guile/scm-disasm.c: Use C++ exception handling.
7835 * guile/scm-cmd.c: Use C++ exception handling.
7836 * guile/scm-breakpoint.c: Use C++ exception handling.
7837 * guile/scm-block.c: Use C++ exception handling.
7838 * guile/guile-internal.h: Use C++ exception handling.
7839 * gnu-v3-abi.c: Use C++ exception handling.
7840 * gdbtypes.c: Use C++ exception handling.
7841 * frame.c: Use C++ exception handling.
7842 * frame-unwind.c: Use C++ exception handling.
7843 * fbsd-tdep.c: Use C++ exception handling.
7844 * f-valprint.c: Use C++ exception handling.
7845 * exec.c: Use C++ exception handling.
7846 * event-top.c: Use C++ exception handling.
7847 * event-loop.c: Use C++ exception handling.
7848 * eval.c: Use C++ exception handling.
7849 * dwarf2read.c: Use C++ exception handling.
7850 * dwarf2loc.c: Use C++ exception handling.
7851 * dwarf2-frame.c: Use C++ exception handling.
7852 * dwarf2-frame-tailcall.c: Use C++ exception handling.
7853 * dwarf-index-write.c: Use C++ exception handling.
7854 * dwarf-index-cache.c: Use C++ exception handling.
7855 * dtrace-probe.c: Use C++ exception handling.
7856 * disasm-selftests.c: Use C++ exception handling.
7857 * darwin-nat.c: Use C++ exception handling.
7858 * cp-valprint.c: Use C++ exception handling.
7859 * cp-support.c: Use C++ exception handling.
7860 * cp-abi.c: Use C++ exception handling.
7861 * corelow.c: Use C++ exception handling.
7862 * completer.c: Use C++ exception handling.
7863 * compile/compile-object-run.c: Use C++ exception handling.
7864 * compile/compile-object-load.c: Use C++ exception handling.
7865 * compile/compile-cplus-symbols.c: Use C++ exception handling.
7866 * compile/compile-c-symbols.c: Use C++ exception handling.
7867 * common/selftest.c: Use C++ exception handling.
7868 * common/new-op.c: Use C++ exception handling.
7869 * cli/cli-script.c: Use C++ exception handling.
7870 * cli/cli-interp.c: Use C++ exception handling.
7871 * cli/cli-cmds.c: Use C++ exception handling.
7872 * c-varobj.c: Use C++ exception handling.
7873 * btrace.c: Use C++ exception handling.
7874 * breakpoint.c: Use C++ exception handling.
7875 * break-catch-throw.c: Use C++ exception handling.
7876 * arch-utils.c: Use C++ exception handling.
7877 * amd64-tdep.c: Use C++ exception handling.
7878 * ada-valprint.c: Use C++ exception handling.
7879 * ada-typeprint.c: Use C++ exception handling.
7880 * ada-lang.c: Use C++ exception handling.
7881 * aarch64-tdep.c: Use C++ exception handling.
7883 2019-04-08 Tom Tromey <tom@tromey.com>
7885 * xml-support.c (gdb_xml_parser::parse): Update.
7886 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
7887 * value.c (show_convenience): Update.
7888 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
7889 (test_parse_flags_qcs): Update.
7890 * thread.c (thr_try_catch_cmd): Update.
7891 * target.c (target_translate_tls_address): Update.
7892 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
7893 (info_frame_command_core, frame_apply_command_count): Update.
7894 * rust-exp.y (rust_lex_exception_test): Update.
7895 * riscv-tdep.c (riscv_print_one_register_info): Update.
7896 * remote.c (remote_target::enable_btrace): Update.
7897 * record-btrace.c (record_btrace_enable_warn): Update.
7898 * python/py-utils.c (gdbpy_convert_exception): Update.
7899 * printcmd.c (do_one_display, print_variable_and_value): Update.
7900 * mi/mi-main.c (mi_print_exception): Update.
7901 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
7902 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
7903 * linux-nat.c (linux_nat_target::attach): Update.
7904 * linux-fork.c (class scoped_switch_fork_info): Update.
7905 * infrun.c (displaced_step_prepare): Update.
7906 * infcall.c (call_function_by_hand_dummy): Update.
7907 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
7908 * gnu-v3-abi.c (print_one_vtable): Update.
7909 * frame.c (get_prev_frame_always): Update.
7910 * f-valprint.c (info_common_command_for_block): Update.
7911 * exec.c (try_open_exec_file): Update.
7912 * exceptions.c (print_exception, exception_print)
7913 (exception_fprintf, exception_print_same): Update.
7914 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
7915 * dwarf-index-cache.c (index_cache::store)
7916 (index_cache::lookup_gdb_index): Update.
7917 * darwin-nat.c (maybe_cache_shell): Update.
7918 * cp-valprint.c (cp_print_value_fields): Update.
7919 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
7920 (gcc_cplus_symbol_address): Update.
7921 * compile/compile-c-symbols.c (gcc_convert_symbol)
7922 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
7923 * common/selftest.c: Update.
7924 * common/common-exceptions.h (struct gdb_exception) <message>: Now
7926 (exception_try_scope_entry, exception_try_scope_exit): Don't
7928 (struct exception_try_scope): Remove.
7929 (TRY): Don't use exception_try_scope.
7930 (struct gdb_exception): Add constructor, operator=.
7932 (struct gdb_exception_RETURN_MASK_ALL)
7933 (struct gdb_exception_RETURN_MASK_ERROR)
7934 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
7935 (struct gdb_quit_bad_alloc): Update.
7936 * common/common-exceptions.c (exception_none): Change
7938 (struct catcher) <state, exception>: Initialize inline.
7939 <prev>: Remove member.
7940 (current_catcher): Remove.
7941 (catchers): New global.
7942 (exceptions_state_mc_init): Simplify.
7943 (catcher_pop): Remove.
7944 (exceptions_state_mc, exceptions_state_mc_catch): Update.
7945 (try_scope_depth, exception_try_scope_entry)
7946 (exception_try_scope_exit): Remove.
7947 (throw_exception_sjlj): Update.
7948 (exception_messages, exception_messages_size): Remove.
7949 (throw_it): Simplify.
7950 (gdb_exception_sliced_copy): Remove.
7951 (throw_exception_cxx): Update.
7952 * cli/cli-script.c (script_from_file): Update.
7953 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
7955 * ada-valprint.c (ada_val_print): Update.
7956 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
7957 (create_excep_cond_exprs): Update.
7959 2019-04-08 Tom Tromey <tom@tromey.com>
7961 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
7962 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
7963 (TRY, CATCH, END_CATCH): Remove some definitions.
7964 * common/common-exceptions.c: Don't use GDB_XCPT.
7965 (catcher_list_size): Remove.
7966 (throw_exception, throw_it): Simplify.
7968 2019-04-05 Tom Tromey <tom@tromey.com>
7970 Revert the header-sorting patch.
7971 * ft32-tdep.c: Revert.
7972 * frv-tdep.c: Revert.
7973 * frv-linux-tdep.c: Revert.
7975 * frame-unwind.c: Revert.
7976 * frame-base.c: Revert.
7977 * fork-child.c: Revert.
7978 * findvar.c: Revert.
7979 * findcmd.c: Revert.
7980 * filesystem.c: Revert.
7981 * filename-seen-cache.h: Revert.
7982 * filename-seen-cache.c: Revert.
7983 * fbsd-tdep.c: Revert.
7984 * fbsd-nat.h: Revert.
7985 * fbsd-nat.c: Revert.
7986 * f-valprint.c: Revert.
7987 * f-typeprint.c: Revert.
7989 * extension.h: Revert.
7990 * extension.c: Revert.
7991 * extension-priv.h: Revert.
7992 * expprint.c: Revert.
7995 * exceptions.c: Revert.
7996 * event-top.c: Revert.
7997 * event-loop.c: Revert.
7999 * elfread.c: Revert.
8000 * dwarf2read.h: Revert.
8001 * dwarf2read.c: Revert.
8002 * dwarf2loc.c: Revert.
8003 * dwarf2expr.h: Revert.
8004 * dwarf2expr.c: Revert.
8005 * dwarf2-frame.c: Revert.
8006 * dwarf2-frame-tailcall.c: Revert.
8007 * dwarf-index-write.h: Revert.
8008 * dwarf-index-write.c: Revert.
8009 * dwarf-index-common.c: Revert.
8010 * dwarf-index-cache.h: Revert.
8011 * dwarf-index-cache.c: Revert.
8012 * dummy-frame.c: Revert.
8013 * dtrace-probe.c: Revert.
8016 * disasm-selftests.c: Revert.
8017 * dictionary.c: Revert.
8018 * dicos-tdep.c: Revert.
8019 * demangle.c: Revert.
8022 * darwin-nat.h: Revert.
8023 * darwin-nat.c: Revert.
8024 * darwin-nat-info.c: Revert.
8025 * d-valprint.c: Revert.
8026 * d-namespace.c: Revert.
8029 * csky-tdep.c: Revert.
8030 * csky-linux-tdep.c: Revert.
8031 * cris-tdep.c: Revert.
8032 * cris-linux-tdep.c: Revert.
8033 * cp-valprint.c: Revert.
8034 * cp-support.c: Revert.
8035 * cp-namespace.c: Revert.
8037 * corelow.c: Revert.
8038 * corefile.c: Revert.
8039 * continuations.c: Revert.
8040 * completer.h: Revert.
8041 * completer.c: Revert.
8042 * complaints.c: Revert.
8043 * coffread.c: Revert.
8044 * coff-pe-read.c: Revert.
8045 * cli-out.h: Revert.
8046 * cli-out.c: Revert.
8047 * charset.c: Revert.
8048 * c-varobj.c: Revert.
8049 * c-valprint.c: Revert.
8050 * c-typeprint.c: Revert.
8052 * buildsym.c: Revert.
8053 * buildsym-legacy.c: Revert.
8054 * build-id.h: Revert.
8055 * build-id.c: Revert.
8057 * bsd-uthread.c: Revert.
8058 * breakpoint.h: Revert.
8059 * breakpoint.c: Revert.
8060 * break-catch-throw.c: Revert.
8061 * break-catch-syscall.c: Revert.
8062 * break-catch-sig.c: Revert.
8063 * blockframe.c: Revert.
8065 * bfin-tdep.c: Revert.
8066 * bfin-linux-tdep.c: Revert.
8067 * bfd-target.c: Revert.
8069 * ax-general.c: Revert.
8072 * avr-tdep.c: Revert.
8074 * auto-load.c: Revert.
8075 * arm-wince-tdep.c: Revert.
8076 * arm-tdep.c: Revert.
8077 * arm-symbian-tdep.c: Revert.
8078 * arm-pikeos-tdep.c: Revert.
8079 * arm-obsd-tdep.c: Revert.
8080 * arm-nbsd-tdep.c: Revert.
8081 * arm-nbsd-nat.c: Revert.
8082 * arm-linux-tdep.c: Revert.
8083 * arm-linux-nat.c: Revert.
8084 * arm-fbsd-tdep.c: Revert.
8085 * arm-fbsd-nat.c: Revert.
8086 * arm-bsd-tdep.c: Revert.
8087 * arch-utils.c: Revert.
8088 * arc-tdep.c: Revert.
8089 * arc-newlib-tdep.c: Revert.
8090 * annotate.h: Revert.
8091 * annotate.c: Revert.
8092 * amd64-windows-tdep.c: Revert.
8093 * amd64-windows-nat.c: Revert.
8094 * amd64-tdep.c: Revert.
8095 * amd64-sol2-tdep.c: Revert.
8096 * amd64-obsd-tdep.c: Revert.
8097 * amd64-obsd-nat.c: Revert.
8098 * amd64-nbsd-tdep.c: Revert.
8099 * amd64-nbsd-nat.c: Revert.
8100 * amd64-nat.c: Revert.
8101 * amd64-linux-tdep.c: Revert.
8102 * amd64-linux-nat.c: Revert.
8103 * amd64-fbsd-tdep.c: Revert.
8104 * amd64-fbsd-nat.c: Revert.
8105 * amd64-dicos-tdep.c: Revert.
8106 * amd64-darwin-tdep.c: Revert.
8107 * amd64-bsd-nat.c: Revert.
8108 * alpha-tdep.c: Revert.
8109 * alpha-obsd-tdep.c: Revert.
8110 * alpha-nbsd-tdep.c: Revert.
8111 * alpha-mdebug-tdep.c: Revert.
8112 * alpha-linux-tdep.c: Revert.
8113 * alpha-linux-nat.c: Revert.
8114 * alpha-bsd-tdep.c: Revert.
8115 * alpha-bsd-nat.c: Revert.
8116 * aix-thread.c: Revert.
8118 * addrmap.c: Revert.
8119 * ada-varobj.c: Revert.
8120 * ada-valprint.c: Revert.
8121 * ada-typeprint.c: Revert.
8122 * ada-tasks.c: Revert.
8123 * ada-lang.c: Revert.
8124 * aarch64-tdep.c: Revert.
8125 * aarch64-ravenscar-thread.c: Revert.
8126 * aarch64-newlib-tdep.c: Revert.
8127 * aarch64-linux-tdep.c: Revert.
8128 * aarch64-linux-nat.c: Revert.
8129 * aarch64-fbsd-tdep.c: Revert.
8130 * aarch64-fbsd-nat.c: Revert.
8131 * aarch32-linux-nat.c: Revert.
8133 2019-04-05 Tom Tromey <tom@tromey.com>
8135 * ft32-tdep.c: Sort headers.
8136 * frv-tdep.c: Sort headers.
8137 * frv-linux-tdep.c: Sort headers.
8138 * frame.c: Sort headers.
8139 * frame-unwind.c: Sort headers.
8140 * frame-base.c: Sort headers.
8141 * fork-child.c: Sort headers.
8142 * findvar.c: Sort headers.
8143 * findcmd.c: Sort headers.
8144 * filesystem.c: Sort headers.
8145 * filename-seen-cache.h: Sort headers.
8146 * filename-seen-cache.c: Sort headers.
8147 * fbsd-tdep.c: Sort headers.
8148 * fbsd-nat.h: Sort headers.
8149 * fbsd-nat.c: Sort headers.
8150 * f-valprint.c: Sort headers.
8151 * f-typeprint.c: Sort headers.
8152 * f-lang.c: Sort headers.
8153 * extension.h: Sort headers.
8154 * extension.c: Sort headers.
8155 * extension-priv.h: Sort headers.
8156 * expprint.c: Sort headers.
8157 * exec.h: Sort headers.
8158 * exec.c: Sort headers.
8159 * exceptions.c: Sort headers.
8160 * event-top.c: Sort headers.
8161 * event-loop.c: Sort headers.
8162 * eval.c: Sort headers.
8163 * elfread.c: Sort headers.
8164 * dwarf2read.h: Sort headers.
8165 * dwarf2read.c: Sort headers.
8166 * dwarf2loc.c: Sort headers.
8167 * dwarf2expr.h: Sort headers.
8168 * dwarf2expr.c: Sort headers.
8169 * dwarf2-frame.c: Sort headers.
8170 * dwarf2-frame-tailcall.c: Sort headers.
8171 * dwarf-index-write.h: Sort headers.
8172 * dwarf-index-write.c: Sort headers.
8173 * dwarf-index-common.c: Sort headers.
8174 * dwarf-index-cache.h: Sort headers.
8175 * dwarf-index-cache.c: Sort headers.
8176 * dummy-frame.c: Sort headers.
8177 * dtrace-probe.c: Sort headers.
8178 * disasm.h: Sort headers.
8179 * disasm.c: Sort headers.
8180 * disasm-selftests.c: Sort headers.
8181 * dictionary.c: Sort headers.
8182 * dicos-tdep.c: Sort headers.
8183 * demangle.c: Sort headers.
8184 * dcache.h: Sort headers.
8185 * dcache.c: Sort headers.
8186 * darwin-nat.h: Sort headers.
8187 * darwin-nat.c: Sort headers.
8188 * darwin-nat-info.c: Sort headers.
8189 * d-valprint.c: Sort headers.
8190 * d-namespace.c: Sort headers.
8191 * d-lang.c: Sort headers.
8192 * ctf.c: Sort headers.
8193 * csky-tdep.c: Sort headers.
8194 * csky-linux-tdep.c: Sort headers.
8195 * cris-tdep.c: Sort headers.
8196 * cris-linux-tdep.c: Sort headers.
8197 * cp-valprint.c: Sort headers.
8198 * cp-support.c: Sort headers.
8199 * cp-namespace.c: Sort headers.
8200 * cp-abi.c: Sort headers.
8201 * corelow.c: Sort headers.
8202 * corefile.c: Sort headers.
8203 * continuations.c: Sort headers.
8204 * completer.h: Sort headers.
8205 * completer.c: Sort headers.
8206 * complaints.c: Sort headers.
8207 * coffread.c: Sort headers.
8208 * coff-pe-read.c: Sort headers.
8209 * cli-out.h: Sort headers.
8210 * cli-out.c: Sort headers.
8211 * charset.c: Sort headers.
8212 * c-varobj.c: Sort headers.
8213 * c-valprint.c: Sort headers.
8214 * c-typeprint.c: Sort headers.
8215 * c-lang.c: Sort headers.
8216 * buildsym.c: Sort headers.
8217 * buildsym-legacy.c: Sort headers.
8218 * build-id.h: Sort headers.
8219 * build-id.c: Sort headers.
8220 * btrace.c: Sort headers.
8221 * bsd-uthread.c: Sort headers.
8222 * breakpoint.h: Sort headers.
8223 * breakpoint.c: Sort headers.
8224 * break-catch-throw.c: Sort headers.
8225 * break-catch-syscall.c: Sort headers.
8226 * break-catch-sig.c: Sort headers.
8227 * blockframe.c: Sort headers.
8228 * block.c: Sort headers.
8229 * bfin-tdep.c: Sort headers.
8230 * bfin-linux-tdep.c: Sort headers.
8231 * bfd-target.c: Sort headers.
8232 * bcache.c: Sort headers.
8233 * ax-general.c: Sort headers.
8234 * ax-gdb.h: Sort headers.
8235 * ax-gdb.c: Sort headers.
8236 * avr-tdep.c: Sort headers.
8237 * auxv.c: Sort headers.
8238 * auto-load.c: Sort headers.
8239 * arm-wince-tdep.c: Sort headers.
8240 * arm-tdep.c: Sort headers.
8241 * arm-symbian-tdep.c: Sort headers.
8242 * arm-pikeos-tdep.c: Sort headers.
8243 * arm-obsd-tdep.c: Sort headers.
8244 * arm-nbsd-tdep.c: Sort headers.
8245 * arm-nbsd-nat.c: Sort headers.
8246 * arm-linux-tdep.c: Sort headers.
8247 * arm-linux-nat.c: Sort headers.
8248 * arm-fbsd-tdep.c: Sort headers.
8249 * arm-fbsd-nat.c: Sort headers.
8250 * arm-bsd-tdep.c: Sort headers.
8251 * arch-utils.c: Sort headers.
8252 * arc-tdep.c: Sort headers.
8253 * arc-newlib-tdep.c: Sort headers.
8254 * annotate.h: Sort headers.
8255 * annotate.c: Sort headers.
8256 * amd64-windows-tdep.c: Sort headers.
8257 * amd64-windows-nat.c: Sort headers.
8258 * amd64-tdep.c: Sort headers.
8259 * amd64-sol2-tdep.c: Sort headers.
8260 * amd64-obsd-tdep.c: Sort headers.
8261 * amd64-obsd-nat.c: Sort headers.
8262 * amd64-nbsd-tdep.c: Sort headers.
8263 * amd64-nbsd-nat.c: Sort headers.
8264 * amd64-nat.c: Sort headers.
8265 * amd64-linux-tdep.c: Sort headers.
8266 * amd64-linux-nat.c: Sort headers.
8267 * amd64-fbsd-tdep.c: Sort headers.
8268 * amd64-fbsd-nat.c: Sort headers.
8269 * amd64-dicos-tdep.c: Sort headers.
8270 * amd64-darwin-tdep.c: Sort headers.
8271 * amd64-bsd-nat.c: Sort headers.
8272 * alpha-tdep.c: Sort headers.
8273 * alpha-obsd-tdep.c: Sort headers.
8274 * alpha-nbsd-tdep.c: Sort headers.
8275 * alpha-mdebug-tdep.c: Sort headers.
8276 * alpha-linux-tdep.c: Sort headers.
8277 * alpha-linux-nat.c: Sort headers.
8278 * alpha-bsd-tdep.c: Sort headers.
8279 * alpha-bsd-nat.c: Sort headers.
8280 * aix-thread.c: Sort headers.
8281 * agent.c: Sort headers.
8282 * addrmap.c: Sort headers.
8283 * ada-varobj.c: Sort headers.
8284 * ada-valprint.c: Sort headers.
8285 * ada-typeprint.c: Sort headers.
8286 * ada-tasks.c: Sort headers.
8287 * ada-lang.c: Sort headers.
8288 * aarch64-tdep.c: Sort headers.
8289 * aarch64-ravenscar-thread.c: Sort headers.
8290 * aarch64-newlib-tdep.c: Sort headers.
8291 * aarch64-linux-tdep.c: Sort headers.
8292 * aarch64-linux-nat.c: Sort headers.
8293 * aarch64-fbsd-tdep.c: Sort headers.
8294 * aarch64-fbsd-nat.c: Sort headers.
8295 * aarch32-linux-nat.c: Sort headers.
8297 2019-04-04 Tom Tromey <tom@tromey.com>
8299 * varobj.c (varobj_create): Update.
8300 * rust-exp.y (struct rust_parser) <update_innermost_block,
8301 lookup_symbol>: New methods.
8302 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
8304 (rust_parser::rust_lookup_type)
8305 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
8306 * printcmd.c (display_command, do_one_display): Update.
8307 * parser-defs.h (struct parser_state) <parser_state>: Add
8308 "tracker" parameter.
8309 (block_tracker): New member.
8310 (class innermost_block_tracker) <innermost_block_tracker>: Add
8312 <reset>: Remove method.
8313 (innermost_block): Don't declare.
8314 (null_post_parser): Update.
8315 * parse.c (innermost_block): Remove global.
8316 (write_dollar_variable): Update.
8317 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
8318 Remove "tracker_types" parameter.
8319 (parse_expression): Add "tracker" parameter.
8320 (parse_expression_for_completion): Update.
8321 (null_post_parser): Add "tracker" parameter.
8322 * p-exp.y: Update rules.
8323 * m2-exp.y: Update rules.
8324 * language.h (struct language_defn) <la_post_parser>: Add
8325 "tracker" parameter.
8326 * go-exp.y: Update rules.
8327 * f-exp.y: Update rules.
8328 * expression.h (parse_expression, parse_exp_1): Add "tracker"
8330 * d-exp.y: Update rules.
8331 * c-exp.y: Update rules.
8332 * breakpoint.c (set_breakpoint_condition): Create an
8333 innermost_block_tracker.
8334 (watch_command_1): Likewise.
8335 * ada-lang.c (resolve): Add "tracker" parameter.
8336 (resolve_subexp): Likewise.
8337 * ada-exp.y (write_var_from_sym): Update.
8339 2019-04-04 Tom Tromey <tom@tromey.com>
8341 * type-stack.h: New file.
8342 * type-stack.c: New file.
8343 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
8345 (insert_into_type_stack, insert_type, push_type, push_type_int)
8346 (insert_type_address_space, pop_type, pop_type_int)
8347 (pop_typelist, pop_type_stack, append_type_stack)
8348 (push_type_stack, get_type_stack, push_typelist)
8349 (follow_type_instance_flags, follow_types): Don't declare.
8350 * parse.c (type_stack): Remove global.
8351 (parse_exp_in_context): Update.
8352 (insert_into_type_stack, insert_type, push_type, push_type_int)
8353 (insert_type_address_space, pop_type, pop_type_int)
8354 (pop_typelist, pop_type_stack, append_type_stack)
8355 (push_type_stack, get_type_stack, push_typelist)
8356 (follow_type_instance_flags, follow_types): Remove (moved to
8358 * f-exp.y (type_stack): New global.
8360 (push_kind_type, f_parse): Update.
8361 * d-exp.y (type_stack): New global.
8364 * c-exp.y (struct c_parse_state) <type_stack>: New member.
8366 * Makefile.in (COMMON_SFILES): Add type-stack.c.
8367 (HFILES_NO_SRCDIR): Add type-stack.h.
8369 2019-04-04 Tom Tromey <tom@tromey.com>
8371 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
8372 (rust_parser::convert_ast_to_expression, rust_parse)
8373 (rust_lex_test_completion, rust_lex_tests): Update.
8374 * parser-defs.h (struct expr_completion_state): New.
8375 (struct parser_state) <parser_state>: Add completion parameter.
8376 <mark_struct_expression, mark_completion_tag>: New methods.
8377 <parse_completion, m_completion_state>: New members.
8378 (prefixify_expression, null_post_parser): Update.
8379 (mark_struct_expression, mark_completion_tag): Don't declare.
8380 * parse.c (parse_completion, expout_last_struct)
8381 (expout_tag_completion_type, expout_completion_name): Remove
8383 (parser_state::mark_struct_expression)
8384 (parser_state::mark_completion_tag): Now methods.
8385 (prefixify_expression): Add last_struct parameter.
8386 (prefixify_subexp): Likewise.
8387 (parse_exp_1): Update.
8388 (parse_exp_in_context): Add cstate parameter. Update.
8389 (parse_expression_for_completion): Create an
8390 expr_completion_state.
8391 (null_post_parser): Add "completion" parameter.
8392 * p-exp.y: Update rules.
8394 * language.h (struct language_defn) <la_post_parser>: Add
8395 "completing" parameter.
8396 * go-exp.y: Update rules.
8397 (lex_one_token): Update.
8398 * expression.h (parse_completion): Don't declare.
8399 * d-exp.y: Update rules.
8400 (lex_one_token): Update rules.
8401 * c-exp.y: Update rules.
8402 (lex_one_token): Update.
8403 * ada-lang.c (resolve): Add "parse_completion" parameter.
8404 (resolve_subexp): Likewise.
8405 (ada_resolve_function): Likewise.
8407 2019-04-04 Tom Tromey <tom@tromey.com>
8409 * parser-defs.h (struct parser_state) <start_arglist,
8410 end_arglist>: New methods.
8411 <arglist_len, m_funcall_chain>: New members.
8412 (arglist_len, start_arglist, end_arglist): Don't declare.
8413 * parse.c (arglist_len, funcall_chain): Remove global.
8414 (start_arglist, end_arglist): Remove functions.
8415 (parse_exp_in_context): Update.
8416 * p-exp.y: Update rules.
8417 * m2-exp.y: Update rules.
8418 * go-exp.y: Update rules.
8419 * f-exp.y: Update rules.
8420 * d-exp.y: Update rules.
8421 * c-exp.y: Update rules.
8423 2019-04-04 Tom Tromey <tom@tromey.com>
8425 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
8426 lex_operator, push_back>: New methods.
8428 (rust_parser::lex_hex, lex_escape): Rename and update.
8429 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
8430 (rust_parser::lex_operator): Rename and update.
8431 (rust_parser::lex_number, rustyylex, rustyyerror)
8432 (rust_lex_test_init, rust_lex_test_sequence)
8433 (rust_lex_test_push_back, rust_lex_tests): Update.
8434 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
8436 <lexptr, prev_lexptr>: New members.
8437 (lexptr, prev_lexptr): Don't declare.
8438 * parse.c (lexptr, prev_lexptr): Remove globals.
8439 (parse_exp_in_context): Update.
8440 * p-exp.y (yylex, yyerror): Update.
8441 * m2-exp.y (parse_number, yylex, yyerror): Update.
8442 * go-exp.y (lex_one_token, yyerror): Update.
8443 * f-exp.y (match_string_literal, yylex, yyerror): Update.
8444 * d-exp.y (lex_one_token, yyerror): Update.
8445 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
8446 (lex_one_token, yyerror): Update.
8447 * ada-lex.l (YY_INPUT): Update.
8448 (rewind_to_char): Update.
8449 * ada-exp.y (yyerror): Update.
8451 2019-04-04 Tom Tromey <tom@tromey.com>
8453 * rust-exp.y (rustyylex, rust_lex_tests): Update.
8454 * parser-defs.h (struct parser_state) <parser_state>: Add new
8456 <comma_terminates>: New member.
8457 (comma_terminates): Don't declare global.
8458 * parse.c (comma_terminates): Remove global.
8459 (parse_exp_in_context): Update.
8460 * p-exp.y (yylex): Update.
8461 * m2-exp.y (yylex): Update.
8462 * go-exp.y (lex_one_token): Update.
8463 * f-exp.y (yylex): Update.
8464 * d-exp.y (lex_one_token): Update.
8465 * c-exp.y (lex_one_token): Update.
8466 * ada-lex.l: Update.
8468 2019-04-04 Tom Tromey <tom@tromey.com>
8470 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
8471 (rustyylex, rust_lex_test_init, rust_lex_test_one)
8472 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
8473 * parser-defs.h (paren_depth): Don't declare.
8474 * parse.c (paren_depth): Remove global.
8475 (parse_exp_in_context): Update.
8476 * p-exp.y (paren_depth): New global.
8477 (pascal_parse): Initialize it.
8478 * m2-exp.y (paren_depth): New global.
8479 (m2_parse): Initialize it.
8480 * go-exp.y (paren_depth): New global.
8481 (go_parse): Initialize it.
8482 * f-exp.y (paren_depth): New global.
8483 (f_parse): Initialize it.
8484 * d-exp.y (paren_depth): New global.
8485 (d_parse): Initialize it.
8486 * c-exp.y (paren_depth): New global.
8487 (c_parse): Initialize it.
8488 * ada-lex.l (paren_depth): New global.
8489 (lexer_init): Initialize it.
8491 2019-04-04 Tom Tromey <tom@tromey.com>
8493 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
8494 (rust_parser::convert_ast_to_type)
8495 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
8496 * parser-defs.h (struct parser_state) <parser_state>: Add
8497 parameters. Initialize new members.
8498 <expression_context_block, expression_context_pc>: New members.
8499 * parse.c (expression_context_block, expression_context_pc):
8501 (parse_exp_in_context): Update.
8502 * p-exp.y: Update all rules.
8504 * m2-exp.y: Update all rules.
8506 * go-exp.y (yylex): Update.
8507 * f-exp.y (yylex): Update.
8508 * d-exp.y: Update all rules.
8510 * c-exp.y: Update all rules.
8511 (lex_one_token, classify_name, yylex, c_parse): Update.
8512 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
8514 2019-04-04 Tom Tromey <tom@tromey.com>
8516 * gdbarch.h, gdbarch.c: Rebuild.
8517 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
8519 (struct stap_parse_info): Replace "parser_state" with
8521 * parser-defs.h (struct expr_builder): Rename from "parser_state".
8522 (parser_state): New class.
8523 * parse.c (expr_builder): Rename.
8524 (expr_builder::release): Rename.
8525 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
8526 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
8527 (write_exp_elt_longcst, write_exp_elt_floatcst)
8528 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
8529 (write_exp_string_vector, write_exp_bitstring)
8530 (write_exp_msymbol, mark_struct_expression)
8531 (write_dollar_variable)
8532 (insert_type_address_space, increase_expout_size): Replace
8533 "parser_state" with "expr_builder".
8534 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
8535 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
8536 "parser_state" with "expr_builder".
8538 2019-04-04 Tom Tromey <tom@tromey.com>
8540 * rust-exp.y: Replace "parse_language" with method call.
8542 (yylex): Replace "parse_language" with method call.
8544 (yylex): Replace "parse_language" with method call.
8545 * go-exp.y (classify_name): Replace "parse_language" with method
8547 * f-exp.y (yylex): Replace "parse_language" with method call.
8548 * d-exp.y (lex_one_token): Replace "parse_language" with method
8551 (lex_one_token, classify_name, yylex): Replace "parse_language"
8553 * ada-exp.y (find_primitive_type, type_char)
8554 (type_system_address): Replace "parse_language" with method call.
8556 2019-04-04 Tom Tromey <tom@tromey.com>
8558 * rust-exp.y: Replace "parse_gdbarch" with method call.
8559 * parse.c (write_dollar_variable, insert_type_address_space):
8560 Replace "parse_gdbarch" with method call.
8561 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
8563 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
8565 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
8566 "parse_gdbarch" with method call.
8567 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
8569 * f-exp.y (parse_type, parse_f_type, yylex): Replace
8570 "parse_gdbarch" with method call.
8571 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
8572 "parse_gdbarch" with method call.
8573 * c-exp.y (parse_type, parse_number, classify_name): Replace
8574 "parse_gdbarch" with method call.
8575 * ada-lex.l: Replace "parse_gdbarch" with method call.
8576 * ada-exp.y (parse_type, find_primitive_type, type_char)
8577 (type_system_address): Replace "parse_gdbarch" with method call.
8579 2019-04-04 Tom Tromey <tom@tromey.com>
8581 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
8582 * stap-probe.c (stap_parse_argument): Update.
8583 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
8584 initial_size parameter.
8585 * rust-exp.y (rust_lex_tests): Update.
8586 * parse.c (parser_state): Update.
8587 (parse_exp_in_context): Update.
8588 * parser-defs.h (struct parser_state) <parser_state>: Remove
8589 "initial_size" parameter.
8591 2019-04-04 Tom Tromey <tom@tromey.com>
8593 * parser-defs.h (increase_expout_size): Don't declare.
8594 * parse.c (increase_expout_size): Now static.
8596 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
8598 * gnu-nat.c (gnu_nat_target::wait): Fix
8599 target_waitstatus_to_string call.
8601 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8603 * eval.c (evaluate_subexp_standard): Handle internal functions
8604 during Fortran function call handling.
8606 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8608 * NEWS: Mention new internal functions.
8609 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
8610 (read_base_type): Use dwarf2_init_complex_target_type.
8611 * value.c (creal_internal_fn): New function.
8612 (cimag_internal_fn): New function.
8613 (_initialize_values): Register new internal functions.
8615 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8617 * infrun.c (stop_all_threads): If debug_infrun, always
8618 trace the wait status after wait_one, using
8619 target_waitstatus_to_string and target_pid_to_str.
8620 (handle_inferior_event): Replace various trace of
8621 wait status kind by a single trace.
8622 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
8623 wait status kind image by target_waitstatus_to_string.
8624 * target/waitstatus.c (target_waitstatus_to_string): Fix
8627 2019-04-01 Tom Tromey <tromey@adacore.com>
8630 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
8632 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
8633 Pedro Alves <palves@redhat.com>
8635 * top.c (quit_force): Call 'finalize_values'.
8636 * value.c (finalize_values): New function.
8637 * value.h (finalize_values): Declare.
8639 2019-03-30 Eli Zaretskii <eliz@gnu.org>
8641 * NEWS: Announce $_gdb_major and $_gdb_minor.
8643 * top.c (init_gdb_version_vars): New function.
8644 (gdb_init): Call init_gdb_version_vars.
8646 2019-03-29 Tom Tromey <tromey@adacore.com>
8648 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
8649 help text. Remove dead code.
8651 2019-03-29 Keith Seitz <keiths@redhat.com>
8653 From Siddhesh Poyarekar:
8654 * f-lang.h (f77_get_upperbound): Return LONGEST.
8655 (f77_get_lowerbound): Likewise.
8656 * f-typeprint.c (f_type_print_varspec_suffix): Expand
8657 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
8659 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
8660 plongest to format print it.
8661 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
8662 (f77_get_upperbound): Likewise.
8663 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
8664 LOWER_BOUND to LONGEST.
8665 (f77_create_arrayprint_offset_tbl): Likewise.
8667 2019-03-29 Keith Seitz <keiths@redhat.com>
8669 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
8670 %s/pulongest for TYPE_LENGTH instead of %d in format
8672 * ada-typerint.c (ada_print_type): Likewise.
8673 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
8674 * compile/compile-c-support.c (generate_register_struct): Likewise.
8675 * gdbtypes.c (recursive_dump_type): Likewise.
8676 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
8677 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
8678 instead of %d in format strings.
8679 * riscv-tdep.c (riscv_type_alignment): Cast second argument
8680 to std::min to ULONGEST.
8681 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
8682 instead of %d in format strings.
8683 * tracepoint.c (info_scope_command): Likewise.
8684 * typeprint.c (print_offset_data::update)
8685 (print_offset_data::finish): Likewise.
8686 * xtensa-tdep.c (xtensa_store_return_value)
8687 (xtensa_push_dummy_call): Likewise.
8689 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
8691 * windows-nat.c (display_selector): Fixed format specifications
8694 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8696 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
8698 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
8700 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
8701 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
8702 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
8703 (nios2_linux_init_abi): Install it.
8705 2019-03-28 Alan Hayward <alan.hayward@arm.com>
8707 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
8709 2019-03-28 Alan Hayward <alan.hayward@arm.com>
8711 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
8713 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8714 Tom Tromey <tromey@adacore.com>
8716 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
8718 2019-03-26 Joel Brobecker <brobecker@adacore.com>
8720 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
8721 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
8722 method to compute the bounds of range types. Also print "[evaluated]"
8723 if the bounds' values come from a dynamic evaluation.
8725 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
8727 * cp-valprint.c (cp_print_value_fields): Don't print trailing
8728 whitespace when pretty printing is on.
8730 2019-03-26 Alan Hayward <alan.hayward@arm.com>
8732 * ppc-linux-nat.c: Add include.
8734 2019-03-26 Alan Hayward <alan.hayward@arm.com>
8736 * NEWS: Mention AArch64 Pointer Authentication.
8738 2019-03-26 Alan Hayward <alan.hayward@arm.com>
8740 * arm-linux-nat.c: Add include.
8742 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
8744 * source-cache.c (source_cache::get_source_lines): Re-read
8745 fullname after calling open_source_file.
8747 2019-03-25 John Baldwin <jhb@FreeBSD.org>
8749 * NEWS: Mention TLS support for FreeBSD.
8751 2019-03-25 Tom Tromey <tromey@adacore.com>
8753 * minsyms.c (BUNCH_SIZE): Update comment.
8754 (~minimal_symbol_reader): Remove old comment.
8755 (compact_minimal_symbols): Update comment.
8756 (minimal_symbol_reader::install): Remove old comment. Update
8759 2019-03-25 Alan Hayward <alan.hayward@arm.com>
8761 * s390-linux-nat.c: Add include.
8763 2019-03-25 Alan Hayward <alan.hayward@arm.com>
8765 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
8766 Call linux_get_hwcap.
8767 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
8769 (aarch64_linux_get_hwcap): Remove function.
8770 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
8772 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
8774 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
8775 * linux-tdep.c (linux_get_hwcap): Add function.
8776 (linux_get_hwcap2): Likewise.
8777 * linux-tdep.h (linux_get_hwcap): Add declaration.
8778 (linux_get_hwcap2): Likewise.
8779 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
8780 (ppc_linux_get_hwcap2): Likewise.
8781 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
8783 (ppc_linux_nat_target::insert_watchpoint): Likewise.
8784 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
8785 (ppc_linux_nat_target::read_description): Likewise.
8786 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
8787 * s390-linux-nat.c: Likewise.
8788 * s390-linux-tdep.c (s390_core_read_description): Likewise.
8790 2019-03-24 Tom Tromey <tom@tromey.com>
8792 * ada-lang.c (standard_lookup): Simplify initialization.
8793 (ada_lookup_symbol_nonlocal): Simplify return.
8794 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
8795 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
8796 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
8797 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
8799 * solib.c (solib_global_lookup): Simplify.
8800 * symtab.c (null_block_symbol): Remove.
8801 (symbol_cache_lookup): Simplify returns.
8802 (lookup_language_this): Simplify returns.
8803 (lookup_symbol_aux): Simplify return.
8804 (lookup_local_symbol): Simplify returns.
8805 (lookup_global_symbol_from_objfile): Simplify return.
8806 (lookup_symbol_in_objfile_symtabs)
8807 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
8808 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
8809 (lookup_static_symbol, lookup_global_symbol): Simplify return.
8810 * cp-namespace.c (cp_lookup_bare_symbol)
8811 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
8812 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
8813 (cp_lookup_nested_symbol): Don't use null_block_symbol.
8814 (cp_lookup_symbol_via_imports): Simplify initialization.
8815 (find_symbol_in_baseclass): Likewise.
8816 * symtab.h (null_block_symbol): Remove.
8817 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
8818 (d_lookup_nested_symbol, d_lookup_symbol_imports)
8819 (d_lookup_symbol_module): Likewise.
8820 (find_symbol_in_baseclass): Simplify initialization.
8822 2019-03-24 Tom Tromey <tom@tromey.com>
8824 * expression.h: Don't include symtab.h.
8825 (struct block): Forward declare.
8827 2019-03-24 Tom Tromey <tom@tromey.com>
8829 * c-exp.y (typebase): Remove casts.
8830 * gdbtypes.c (lookup_unsigned_typename, )
8831 (lookup_signed_typename): Remove cast.
8832 * eval.c (parse_to_comma_and_eval): Remove cast.
8833 * parse.c (write_dollar_variable): Remove cast.
8834 * block.h (struct block) <superblock>: Now const.
8835 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
8836 * psymtab.c (psym_map_matching_symbols): Make "block" const.
8837 (map_block): Make "block" const.
8838 * symfile.h (struct quick_symbol_functions)
8839 <map_matching_symbols>: Constify block argument to "callback".
8840 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
8842 (find_pc_sect_compunit_symtab): Make "b" const.
8843 (find_symbol_at_address): Likewise.
8844 (search_symbols): Likewise.
8845 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
8846 (dw2_debug_names_lookup_symbol): Likewise.
8847 (dw2_map_matching_symbols): Update.
8848 * p-valprint.c (pascal_val_print): Remove "block".
8849 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
8850 (aux_add_nonlocal_symbols): Make "block" const.
8851 (resolve_subexp): Remove cast.
8852 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
8854 (iterate_over_file_blocks): Likewise.
8855 * f-exp.y (%union) <bval>: Remove.
8856 * coffread.c (patch_opaque_types): Make "b" const.
8857 * spu-tdep.c (spu_catch_start): Make "block" const.
8858 * c-valprint.c (print_unpacked_pointer): Remove "block".
8859 * symmisc.c (dump_symtab_1): Make "b" const.
8860 (block_depth): Make "block" const.
8861 * d-exp.y (%union) <bval>: Remove.
8862 * cp-support.h (cp_lookup_rtti_type): Update.
8863 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
8864 * psymtab.c (psym_lookup_symbol): Make "block" const.
8865 (maintenance_check_psymtabs): Make "b" const.
8866 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
8867 (enumerate_locals, enumerate_args): Update.
8868 * python/py-symtab.c (stpy_global_block): Make "block" const.
8869 (stpy_static_block): Likewise.
8870 * inline-frame.c (block_starting_point_at): Make "new_block"
8872 * block.c (find_block_in_blockvector): Make return type const.
8873 (blockvector_for_pc_sect): Make "b" const.
8874 (find_block_in_blockvector): Make "b" const.
8876 2019-03-23 Tom Tromey <tom@tromey.com>
8878 * varobj.c (varobj_create): Update.
8879 * symfile.c (clear_symtab_users): Don't reset innermost_block.
8880 * printcmd.c (display_command, do_one_display): Don't reset
8882 * parser-defs.h (enum innermost_block_tracker_type): Move to
8884 (innermost_block): Update comment.
8885 * parse.c (parse_exp_1): Add tracker_types parameter.
8886 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
8887 tracker_types parameter. Reset innermost_block.
8888 (parse_exp_in_context): Remove.
8889 (parse_expression_for_completion): Update.
8890 * objfiles.c (~objfile): Don't reset expression_context_block or
8892 * expression.h (enum innermost_block_tracker_type): Move from
8894 (parse_exp_1): Add tracker_types parameter.
8895 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
8896 reset innermost_block.
8898 2019-03-23 Tom Tromey <tom@tromey.com>
8900 * objfiles.h: Include bcache.h.
8902 2019-03-23 Tom Tromey <tom@tromey.com>
8904 * linespec.c (get_current_search_block): Use
8905 scoped_restore_current_language.
8906 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
8908 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8909 Jiong Wang <jiong.wang@arm.com>
8911 * aarch64-linux-tdep.c
8912 (aarch64_linux_iterate_over_regset_sections): Check for pauth
8914 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
8916 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8917 Jiong Wang <jiong.wang@arm.com>
8919 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
8921 (aarch64_analyze_prologue_test): Add PACIASP test.
8922 (aarch64_prologue_prev_register): Unmask PC value.
8924 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8925 Jiong Wang <jiong.wang@arm.com>
8927 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
8928 (aarch64_dwarf2_prev_register): Unmask PC value.
8929 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
8930 (aarch64_execute_dwarf_cfa_vendor_op): Check for
8931 DW_CFA_AARCH64_negate_ra_state.
8932 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
8934 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8935 Jiong Wang <jiong.wang@arm.com>
8937 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
8939 (aarch64_pseudo_register_name): Likewise.
8940 (aarch64_pseudo_register_type): Likewise.
8941 (aarch64_pseudo_register_reggroup_p): Likewise.
8942 (aarch64_gdbarch_init): Add pauth registers.
8943 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
8944 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
8945 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
8946 (struct gdbarch_tdep): Add regnum for ra_state.
8948 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8949 Jiong Wang <jiong.wang@arm.com>
8951 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
8953 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8954 Jiong Wang <jiong.wang@arm.com>
8956 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
8958 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
8959 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
8960 (aarch64_gdbarch_init): Add puth registers.
8961 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
8962 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
8963 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
8965 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8966 Jiong Wang <jiong.wang@arm.com>
8968 * aarch64-linux-nat.c
8969 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
8970 * aarch64-linux-tdep.c
8971 (aarch64_linux_core_read_description): Likewise.
8972 (aarch64_linux_get_hwcap): New function.
8973 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
8974 (aarch64_linux_get_hwcap): New declaration.
8976 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8977 Jiong Wang <jiong.wang@arm.com>
8979 * aarch64-linux-nat.c
8980 (aarch64_linux_nat_target::read_description): Add pauth param.
8981 * aarch64-linux-tdep.c
8982 (aarch64_linux_core_read_description): Likewise.
8983 * aarch64-tdep.c (struct target_desc): Add in pauth.
8984 (aarch64_read_description): Add pauth param.
8985 (aarch64_gdbarch_init): Likewise.
8986 * aarch64-tdep.h (aarch64_read_description): Likewise.
8987 * arch/aarch64.c (aarch64_create_target_description): Likewise.
8988 * arch/aarch64.h (aarch64_create_target_description): Likewise.
8989 * features/Makefile: Add new files.
8990 * features/aarch64-pauth.c: New file.
8991 * features/aarch64-pauth.xml: New file.
8993 2019-03-20 Tom Tromey <tromey@adacore.com>
8995 * infrun.c (handle_inferior_event): Rename from
8996 handle_inferior_event_1. Create a scoped_value_mark.
8997 (handle_inferior_event): Remove.
8999 2019-03-19 Tom Tromey <tromey@adacore.com>
9001 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
9002 * infrun.h (print_stop_event): Add "displays" parameter.
9003 * infrun.c (print_stop_event): Add "displays" parameter.
9005 2019-03-19 Pedro Alves <palves@redhat.com>
9007 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
9008 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
9009 to -1. Fix TABs vs spaces.
9010 (tui_ui_out::tui_ui_out): Don't initialize fields here.
9011 * tui/tui-out.h (tui_ui_out) Add intro comments.
9012 <m_line, m_start_of_line>: In-class initialize, and add describing
9015 2019-03-18 Alan Hayward <alan.hayward@arm.com>
9017 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
9019 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
9021 2019-03-18 Pedro Alves <palves@redhat.com>
9022 Eli Zaretskii <eliz@gnu.org>
9024 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
9025 m_line and m_start_of_line.
9027 2019-03-18 Eli Zaretskii <eliz@gnu.org>
9029 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
9030 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
9031 it returns a newline. This fixes a regression in TU mode, whereby
9032 the next line is output on the same screen line as the user input.
9034 2019-03-18 Tom Tromey <tromey@adacore.com>
9036 * minsyms.c (minimal_symbol_reader::install): Remove call to
9039 2019-03-18 Pedro Alves <palves@redhat.com>
9041 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
9043 (apply_style): New, factored out from ...
9044 (apply_ansi_escape): ... this. Handle reverse video mode.
9045 (tui_set_reverse_mode): New function.
9046 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
9047 * tui/tui-winsource.c (tui_show_source_line): Use
9048 tui_set_reverse_mode instead of setting A_STANDOUT.
9049 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
9052 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
9054 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
9057 2019-03-18 Tom Tromey <tromey@adacore.com>
9059 * ada-lang.c (empty_array): Add "high" parameter.
9060 (ada_evaluate_subexp): Update.
9062 2019-03-17 Sergei Trofimovich <siarheit@google.com>
9064 * unittests/string_view-selftests.c: Define
9065 _initialize_string_view_selftests unconditionally.
9067 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9070 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
9072 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9075 * windows-nat.c (display_selector): Fix format specifiers.
9077 2019-03-17 Eli Zaretskii <eliz@gnu.org>
9079 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
9080 tui_refill_source_window instead of tui_refresh_win, to update the
9081 current execution line. This fixes redisplay of the current line
9082 when stepping through the code with "next" or "step".
9084 2019-03-16 Eli Zaretskii <eliz@gnu.org>
9086 * source-cache.c (source_cache::get_source_lines): Call
9087 find_source_lines to initialize s->nlines. This fixes vertical
9088 scrolling of TUI source window when the DOWN arrow is pressed.
9090 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9092 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
9093 linux-thread-db.c (_initialize_thread_db): Likewise.
9095 2019-03-16 Eli Zaretskii <eliz@gnu.org>
9097 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
9098 wclrtoeol in tui_show_source_line". This reverts changes made in
9099 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
9101 2019-03-15 Tom Tromey <tom@tromey.com>
9103 * symtab.h (struct minimal_symbol): Derive from
9104 general_symbol_info.
9105 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
9106 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9107 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9108 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9109 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
9110 (MSYMBOL_SEARCH_NAME): Update.
9111 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
9112 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
9113 * minsyms.c (minimal_symbol_reader::record_full): Update.
9115 2019-03-15 Tom Tromey <tom@tromey.com>
9117 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
9119 2019-03-15 Tom Tromey <tom@tromey.com>
9121 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
9123 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
9125 * minsyms.c (lookup_minimal_symbol_by_pc_section)
9126 (build_minimal_symbol_hash_tables)
9127 (minimal_symbol_reader::install): Update.
9129 2019-03-15 Tom Tromey <tom@tromey.com>
9131 * symtab.c (create_demangled_names_hash): Update.
9132 (symbol_set_names): Update.
9133 * objfiles.h (struct objfile_per_bfd_storage)
9134 <demangled_names_hash>: Now an htab_up.
9135 * objfiles.c (objfile_per_bfd_storage): Simplify.
9137 2019-03-15 Tom Tromey <tom@tromey.com>
9139 * objfiles.h (struct objfile_per_bfd_storage): Declare
9141 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
9143 (get_objfile_bfd_data): Use new. Don't initialize
9145 (free_objfile_per_bfd_storage): Remove.
9146 (objfile_bfd_data_free, objfile::~objfile): Use delete.
9148 2019-03-15 Tom Tromey <tom@tromey.com>
9150 * symfile.c (reread_symbols): Update.
9151 * objfiles.c (objfile::objfile): Update.
9152 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
9153 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
9155 (minimal_symbol_reader::install): Update.
9156 (terminate_minimal_symbol_table): Remove.
9157 * jit.c (jit_object_close_impl): Update.
9159 2019-03-15 Tom Tromey <tom@tromey.com>
9161 * minsyms.c (minimal_symbol_reader::record_full): Remove some
9164 2019-03-15 Tom Tromey <tom@tromey.com>
9166 * objfiles.h (struct objfile_per_bfd_storage)
9167 <demangled_hash_languages>: Now a bitset.
9168 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
9169 (lookup_minimal_symbol): Update.
9171 2019-03-15 Tom Tromey <tom@tromey.com>
9173 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
9174 Don't return the symbol.
9175 * coffread.c (record_minimal_symbol): Use record_full.
9177 2019-03-14 Eli Zaretskii <eliz@gnu.org>
9179 The MS-Windows port of ncurses fails to switch to a color pair if
9180 one or both of the colors are the implicit default colors. This
9181 change records the default colors when TUI is initialized, and
9182 then specifies them explicitly when a color pair uses the default
9183 colors. This allows color styling in TUI mode on MS-Windows.
9185 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
9187 (tui_initialize_io) [__MINGW32__]: Record the default terminal
9188 colors in ncurses_norm_attr.
9189 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
9190 "none", replace it with the default color recorded in
9193 2019-03-14 Tom Tromey <tromey@adacore.com>
9195 * source-cache.h (class source_cache) <get_source_lines>: Return
9197 * source-cache.c (source_cache::extract_lines): Handle case where
9198 first_pos==npos. Return std::string.
9199 (source_cache::get_source_lines): Update.
9201 2019-03-14 Tom Tromey <tromey@adacore.com>
9203 * NEWS: Add item for "style sources" commands.
9204 * source-cache.c (source_cache::get_source_lines): Check
9206 * cli/cli-style.c (source_styling): New global.
9207 (_initialize_cli_style): Add "style sources" commands.
9208 (show_style_sources): New function.
9209 * cli/cli-style.h (source_styling): Declare.
9211 2019-03-14 Pedro Alves <palves@redhat.com>
9212 Tom Tromey <tromey@adacore.com>
9214 * tui/tui-winsource.h (tui_refill_source_window): Declare.
9215 * tui/tui-winsource.c (tui_refill_source_window): New function,
9217 (tui_horizontal_source_scroll): ... here. Move some logic.
9218 * cli/cli-style.c (set_style_enabled): Notify new observable.
9219 * tui/tui-hooks.c (tui_redisplay_source): New function.
9220 (tui_attach_detach_observers): Attach or detach
9221 tui_redisplay_source.
9222 * observable.h (source_styling_changed): New observable.
9223 * observable.c: Define source_styling_changed observable.
9225 2019-03-13 Tom Tromey <tromey@adacore.com>
9227 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
9228 (i386_gnu_nat_target::store_registers): Update.
9229 * target-debug.h (target_debug_print_std_string): New macro.
9230 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
9231 * windows-tdep.c (display_one_tib): Update.
9232 * tui/tui-stack.c (tui_make_status_line): Update.
9233 * top.c (print_inferior_quit_action): Update.
9234 * thread.c (thr_try_catch_cmd): Update.
9235 (add_thread_with_info): Update.
9236 (thread_target_id_str): Update.
9237 (thr_try_catch_cmd): Update.
9238 (thread_command): Update.
9239 (thread_find_command): Update.
9240 * record-btrace.c (record_btrace_target::info_record)
9241 (record_btrace_resume_thread, record_btrace_target::resume)
9242 (record_btrace_cancel_resume, record_btrace_step_thread)
9243 (record_btrace_target::wait, record_btrace_target::wait)
9244 (record_btrace_target::wait, record_btrace_target::stop): Update.
9245 * progspace.c (print_program_space): Update.
9246 * process-stratum-target.c
9247 (process_stratum_target::thread_address_space): Update.
9248 * linux-fork.c (linux_fork_mourn_inferior)
9249 (detach_checkpoint_command, info_checkpoints_command)
9250 (linux_fork_context): Update.
9251 (linux_fork_detach): Update.
9252 (class scoped_switch_fork_info): Update.
9253 (delete_checkpoint_command): Update.
9254 * infrun.c (follow_fork_inferior): Update.
9255 (follow_fork_inferior): Update.
9256 (proceed_after_vfork_done): Update.
9257 (handle_vfork_child_exec_or_exit): Update.
9258 (follow_exec): Update.
9259 (displaced_step_prepare_throw): Update.
9260 (displaced_step_restore): Update.
9261 (start_step_over): Update.
9263 (clear_proceed_status_thread): Update.
9265 (print_target_wait_results): Update.
9266 (do_target_wait): Update.
9267 (context_switch): Update.
9268 (stop_all_threads): Update.
9269 (restart_threads): Update.
9270 (finish_step_over): Update.
9271 (handle_signal_stop): Update.
9272 (switch_back_to_stepped_thread): Update.
9273 (keep_going_pass_signal): Update.
9274 (print_exited_reason): Update.
9275 (normal_stop): Update.
9276 * inferior.c (inferior_pid_to_str): Change return type.
9277 (print_selected_inferior): Update.
9278 (add_inferior): Update.
9279 (detach_inferior): Update.
9280 * dummy-frame.c (fprint_dummy_frames): Update.
9281 * dcache.c (dcache_info_1): Update.
9282 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
9283 (btrace_fetch, btrace_clear): Update.
9284 * linux-tdep.c (linux_core_pid_to_str): Change return type.
9285 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
9287 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
9288 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
9289 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
9290 * gdbarch.c, gdbarch.h: Rebuild.
9291 * gdbarch.sh (core_pid_to_str): Change return type.
9292 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
9294 (windows_nat_target::pid_to_str): Change return type.
9295 (windows_delete_thread): Update.
9296 (windows_nat_target::attach): Update.
9297 (windows_nat_target::files_info): Update.
9298 * target-delegates.c: Rebuild.
9299 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
9301 (sol_thread_target::pid_to_str): Change return type.
9302 * remote.c (class remote_target) <pid_to_str>: Change return
9304 (remote_target::pid_to_str): Change return type.
9305 (extended_remote_target::attach, remote_target::remote_stop_ns)
9306 (remote_target::remote_notif_remove_queued_reply)
9307 (remote_target::push_stop_reply, remote_target::disable_btrace):
9309 (extended_remote_target::attach): Update.
9310 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
9312 (gdbsim_target::pid_to_str): Change return type.
9313 * ravenscar-thread.c (struct ravenscar_thread_target)
9314 <pid_to_str>: Change return type.
9315 (ravenscar_thread_target::pid_to_str): Change return type.
9316 * procfs.c (class procfs_target) <pid_to_str>: Change return
9318 (procfs_target::pid_to_str): Change return type.
9319 (procfs_target::attach): Update.
9320 (procfs_target::detach): Update.
9321 (procfs_target::fetch_registers): Update.
9322 (procfs_target::store_registers): Update.
9323 (procfs_target::wait): Update.
9324 (procfs_target::files_info): Update.
9325 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
9326 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
9328 (nto_procfs_target::pid_to_str): Change return type.
9329 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
9330 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
9332 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
9334 (attach_proc_task_lwp_callback, get_detach_signal)
9335 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
9336 (linux_nat_target::resume, wait_lwp, stop_callback)
9337 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
9338 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
9339 (linux_nat_wait_1, resume_stopped_resumed_lwps)
9340 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
9341 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
9343 (inf_ptrace_target::attach): Update.
9344 (inf_ptrace_target::files_info): Update.
9345 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
9347 (go32_nat_target::pid_to_str): Change return type.
9348 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
9349 (gnu_nat_target::wait): Update.
9350 (gnu_nat_target::wait): Update.
9351 (gnu_nat_target::resume): Update.
9352 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
9353 (fbsd_nat_target::wait): Update.
9354 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
9356 (darwin_nat_target::attach): Update.
9357 * corelow.c (class core_target) <pid_to_str>: Change return type.
9358 (core_target::pid_to_str): Change return type.
9359 * target.c (normal_pid_to_str): Change return type.
9360 (default_pid_to_str): Likewise.
9361 (target_pid_to_str): Change return type.
9362 (target_translate_tls_address): Update.
9363 (target_announce_detach): Update.
9364 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
9366 (bsd_uthread_target::pid_to_str): Change return type.
9367 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
9369 (bsd_kvm_target::pid_to_str): Change return type.
9370 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
9372 (aix_thread_target::pid_to_str): Change return type.
9373 * target.h (struct target_ops) <pid_to_str>: Change return type.
9374 (target_pid_to_str, normal_pid_to_str): Likewise.
9375 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
9377 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
9379 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
9381 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
9383 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
9385 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
9388 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
9390 * NEWS: Mention that the new default MI version is 3. Mention
9391 changes to the output of commands and events that deal with
9392 multi-location breakpoints.
9393 * breakpoint.c: Include "mi/mi-out.h".
9394 (print_one_breakpoint): Change output syntax if using MI version
9396 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
9398 (mi_multi_location_breakpoint_output_fixed): New.
9399 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
9400 (mi_cmd_fix_multi_location_breakpoint_output): New.
9401 (mi_multi_location_breakpoint_output_fixed): New.
9402 * mi/mi-cmds.c (mi_cmds): Register command
9403 -fix-multi-location-breakpoint-output.
9404 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
9407 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9409 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
9410 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
9411 instantiate mi_ui_out based on interpreter name.
9412 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
9413 * mi/mi-main.c (mi_load_progress): Likewise.
9415 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9417 * NEWS: Combine separate "New targets" sections for 8.3.
9419 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9421 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
9422 (ppcfbsd_init_abi): Install gdbarch
9423 "fetch_tls_load_module_address" and "get_thread_local_address"
9426 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9428 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
9429 (riscv_fbsd_init_abi): Install gdbarch
9430 "fetch_tls_load_module_address" and "get_thread_local_address"
9433 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9435 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
9436 (i386fbsd_init_abi): Install gdbarch
9437 "fetch_tls_load_module_address" and "get_thread_local_address"
9440 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9442 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
9443 (amd64fbsd_init_abi): Install gdbarch
9444 "fetch_tls_load_module_address" and "get_thread_local_address"
9447 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9449 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
9450 (struct fbsd_pspace_data): New type.
9451 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
9452 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
9453 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
9454 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
9455 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
9457 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9459 * gdbtypes.c (lookup_struct_elt): New function.
9460 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
9461 * gdbtypes.h (struct struct_elt): New type.
9462 (lookup_struct_elt): New prototype.
9464 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9466 * gdbtypes.c (lookup_struct_elt_type): Update comment and
9467 remove disabled code block.
9469 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9471 * gdbarch.sh (get_thread_local_address): New method.
9472 * gdbarch.h, gdbarch.c: Regenerate.
9473 * target.c (target_translate_tls_address): Use
9474 gdbarch_get_thread_local_address if present instead of
9475 target::get_thread_local_address.
9477 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9479 * target.h (target::get_thread_local_address): Update comment.
9481 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9483 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
9484 objfile->separate_debug_objfile_backlink if not NULL.
9486 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9488 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
9489 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
9490 (amd64bsd_store_inferior_registers): Likewise.
9491 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
9492 Enable segment base registers.
9493 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
9494 PT_GETFSBASE and PT_GETGSBASE.
9495 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
9497 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
9498 segment base registers.
9499 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
9501 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9503 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
9504 Update calls to i386_target_description to add 'segments'
9506 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
9507 add segment base registers.
9508 * arch/i386.c (i386_create_target_description): Add 'segments'
9509 parameter to enable segment base registers.
9510 * arch/i386.h (i386_create_target_description): Likewise.
9511 * features/i386/32bit-segments.xml: New file.
9512 * features/i386/32bit-segments.c: Generate.
9513 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
9514 call to i386_target_description to add 'segments' parameter.
9515 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
9516 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
9517 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
9518 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
9519 if feature is present.
9520 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
9521 Add 'segments' parameter to call to i386_target_description.
9522 (i386_target_description): Add 'segments' parameter to enable
9523 segment base registers.
9524 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
9525 to call to i386_target_description.
9526 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
9527 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
9528 Define I386_NUM_REGS.
9529 (i386_target_description): Add 'segments' parameter to enable
9530 segment base registers.
9532 2019-03-12 Eli Zaretskii <eliz@gnu.org>
9535 * source-cache.c: #undef open and close, to avoid unresolved
9536 externals during linking.
9538 2019-03-12 Tom Tromey <tromey@adacore.com>
9540 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
9541 const. Add initializers.
9542 (_initialize_remote): Don't initialize ptid globals.
9544 2019-03-12 Pedro Alves <palves@redhat.com>
9546 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
9548 2019-03-12 Pedro Alves <palves@redhat.com>
9550 * cp-name-parser.y (main): Remove unused 'len' variable.
9552 2019-03-12 Tom Tromey <tromey@adacore.com>
9554 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
9555 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
9557 2019-03-12 Tom Tromey <tromey@adacore.com>
9559 * linux-nat.c (iterate_over_lwps): Update.
9560 (stop_callback): Remove parameter.
9561 (stop_wait_callback, detach_callback, resume_set_callback)
9562 (select_singlestep_lwp_callback, set_ignore_sigint)
9563 (status_callback, resumed_callback, resume_clear_callback)
9564 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
9566 (linux_nat_target::detach, linux_nat_target::resume)
9567 (linux_stop_and_wait_all_lwps, select_event_lwp)
9568 (linux_nat_filter_event, linux_nat_wait_1)
9569 (linux_nat_target::kill, linux_nat_target::stop)
9570 (linux_nat_target::stop): Update.
9571 (linux_nat_resume_callback): Change type.
9572 (resume_stopped_resumed_lwps, count_events_callback)
9573 (select_event_lwp_callback): Likewise.
9574 (linux_stop_lwp, linux_nat_stop_lwp): Update.
9575 * arm-linux-nat.c (struct update_registers_data): Remove.
9576 (update_registers_callback): Change type.
9577 (arm_linux_insert_hw_breakpoint1): Update.
9578 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
9580 (x86_linux_dr_set_addr): Update.
9581 (x86_linux_dr_set_control): Update.
9582 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
9583 (iterate_over_lwps): Use gdb::function_view.
9584 * nat/aarch64-linux-hw-point.c (struct
9585 aarch64_dr_update_callback_param): Remove.
9586 (debug_reg_change_callback): Change type.
9587 (aarch64_notify_debug_reg_change): Update.
9588 * s390-linux-nat.c (s390_refresh_per_info): Update.
9590 2019-03-11 Tom Tromey <tromey@adacore.com>
9592 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
9593 redundant assignment to "this_cu".
9595 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9597 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
9599 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9601 * gdbtypes.c (rank_one_type_parm_set): New function extracted
9603 (rank_one_type): ... this.
9605 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9607 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
9609 (rank_one_type): ... this.
9611 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9613 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
9615 (rank_one_type): ... this.
9617 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9619 * gdbtypes.c (rank_one_type_parm_float): New function extracted
9621 (rank_one_type): ... this.
9623 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9625 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
9627 (rank_one_type): ... this.
9629 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9631 * gdbtypes.c (rank_one_type_parm_range): New function extracted
9633 (rank_one_type): ... this.
9635 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9637 * gdbtypes.c (rank_one_type_parm_char): New function extracted
9639 (rank_one_type): ... this.
9641 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9643 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
9645 (rank_one_type): ... this.
9647 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9649 * gdbtypes.c (rank_one_type_parm_int): New function extracted
9651 (rank_one_type): ... this.
9653 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9655 * gdbtypes.c (rank_one_type_parm_func): New function extracted
9657 (rank_one_type): ... this.
9659 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9661 * gdbtypes.c (rank_one_type_parm_array): New function extracted
9663 (rank_one_type): ... this.
9665 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9667 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
9669 (rank_one_type): ... this.
9671 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9673 * inferior.c (initialize_inferiors): Ensure 'help set/show print
9674 inferior-events' shows the example events.
9676 2019-03-08 Eli Zaretskii <eliz@gnu.org>
9678 Support styling on native MS-Windows console
9681 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
9682 on MS-Windows if $TERM is not defined.
9684 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
9686 * posix-hdep.c (gdb_console_fputs):
9687 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
9689 * ui-file.h (gdb_console_fputs): Add prototype.
9691 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
9692 back to fputs only if the former returns zero.
9694 2019-03-07 Tom Tromey <tom@tromey.com>
9696 * symmisc.c (print_symbol_bcache_statistics): Update.
9697 (print_objfile_statistics): Update.
9698 * symfile.c (allocate_symtab): Update.
9699 * stabsread.c: Don't include bcache.h.
9700 * psymtab.h (struct psymbol_bcache): Don't declare.
9701 (class psymtab_storage) <psymbol_cache>: Now a bcache.
9702 (psymbol_bcache_init, psymbol_bcache_free)
9703 (psymbol_bcache_get_bcache): Don't declare.
9704 * psymtab.c (struct psymbol_bcache): Remove.
9705 (psymtab_storage::psymtab_storage): Update.
9706 (psymtab_storage::~psymtab_storage): Update.
9707 (psymbol_bcache_init, psymbol_bcache_free)
9708 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
9709 (add_psymbol_to_bcache): Update.
9710 (allocate_psymtab): Update.
9711 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
9712 macro_cache>: No longer pointers.
9713 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
9714 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
9715 * macrotab.c (macro_bcache): Update.
9716 * macroexp.c: Don't include bcache.h.
9717 * gdbtypes.c (check_types_worklist): Update.
9718 (types_deeply_equal): Remove TRY/CATCH. Update.
9719 * elfread.c (elf_symtab_read): Update.
9720 * dwarf2read.c: Don't include bcache.h.
9721 * buildsym.c (buildsym_compunit::get_macro_table): Update.
9722 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
9723 (print_bcache_statistics, bcache_memory_used): Don't declare.
9724 (struct bcache): Move from bcache.c. Add constructor, destructor,
9725 methods. Rename all data members.
9726 * bcache.c (struct bcache): Move to bcache.h.
9727 (bcache::expand_hash_table): Rename from expand_hash_table.
9729 (bcache::insert): Rename from bcache_full.
9730 (bcache::compare): Rename from bcache_compare.
9731 (bcache_xmalloc): Remove.
9732 (bcache::~bcache): Rename from bcache_xfree.
9733 (bcache::print_statistics): Rename from print_bcache_statistics.
9734 (bcache::memory_used): Rename from bcache_memory_used.
9736 2019-03-07 Pedro Alves <palves@redhat.com>
9738 * infrun.c (normal_stop): Also check for
9739 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
9741 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
9743 * f-lang.c (value_from_host_double): Moved to...
9744 * value.c (value_from_host_double): ...here.
9745 * value.h (value_from_host_double): Declare.
9746 * guile/scm-math.c (vlscm_convert_typed_number): Use
9747 value_from_host_double.
9748 (vlscm_convert_number): Likewise.
9749 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
9750 * python/py-value.c (convert_value_from_python): Likewise.
9752 2019-03-06 Tom Tromey <tom@tromey.com>
9754 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
9756 2019-03-06 Tom Tromey <tom@tromey.com>
9758 * utils.h (free_current_contents): Don't declare.
9759 * utils.c (free_current_contents): Remove.
9761 2019-03-06 Tom Tromey <tom@tromey.com>
9763 * top.c (quit_force): Update.
9764 * main.c (captured_command_loop): Update.
9765 * common/new-op.c (operator new): Update.
9766 * common/common-exceptions.c (struct catcher)
9767 <save_cleanup_chain>: Remove member.
9768 (exceptions_state_mc_init): Update.
9769 (exception_try_scope_entry): Return nullptr.
9770 (exception_try_scope_exit, exception_rethrow)
9771 (throw_exception_sjlj, throw_exception_cxx): Update.
9772 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
9773 (all_cleanups, do_cleanups, discard_cleanups)
9774 (discard_final_cleanups, save_cleanups, save_final_cleanups)
9775 (restore_cleanups, restore_final_cleanups): Don't declare.
9776 (do_final_cleanups): Remove parameter.
9777 * common/cleanups.c (cleanup_chain, make_cleanup)
9778 (make_cleanup_dtor, all_cleanups, do_cleanups)
9779 (discard_my_cleanups, discard_cleanups)
9780 (discard_final_cleanups, save_my_cleanups, save_cleanups)
9781 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
9782 (null_cleanup): Remove.
9783 (do_final_cleanups): Remove parameter.
9785 2019-03-06 Tom Tromey <tom@tromey.com>
9787 * remote.c (remote_target::remote_parse_stop_reply): Use
9790 2019-03-06 Tom Tromey <tom@tromey.com>
9792 * stabsread.c (struct stabs_field_info): Rename from field_info.
9793 <list, fnlist>: Add initializers.
9794 <obstack>: New member.
9795 (read_member_functions, read_struct_fields, read_baseclasses):
9796 Allocate on obstack. Don't use cleanups.
9797 (read_one_struct_field, read_member_functions, read_struct_fields)
9798 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
9799 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
9800 (read_struct_type): Update.
9802 2019-03-06 Tom Tromey <tom@tromey.com>
9804 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
9805 * common/filestuff.h (make_cleanup_close): Don't declare.
9806 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
9809 2019-03-06 Tom Tromey <tom@tromey.com>
9811 * solib-aix.c: Use make_scope_exit.
9813 2019-03-06 Tom Tromey <tom@tromey.com>
9815 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
9816 Use make_scope_exit.
9818 2019-03-06 Tom Tromey <tom@tromey.com>
9820 * solib-svr4.c (disable_probes_interface): Remove parameter.
9821 (svr4_handle_solib_event): Use make_scope_exit.
9823 2019-03-06 Tom Tromey <tom@tromey.com>
9825 * remote.c (struct stop_reply_deleter): Remove.
9826 (stop_reply_up): Update.
9827 (struct stop_reply): Derive from notif_event. Don't typedef.
9828 <regcache>: Now a std::vector.
9829 (stop_reply_xfree): Remove.
9830 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
9831 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
9832 (remote_target::discard_pending_stop_replies): Use delete.
9833 (remote_target::remote_parse_stop_reply): Update.
9834 (remote_target::process_stop_reply): Update.
9835 * remote-notif.h (struct notif_event): Add virtual destructor.
9836 Remove "dtr" member.
9837 (struct notif_client) <alloc_event>: Return a unique_ptr.
9838 (notif_event_xfree): Don't declare.
9839 (notif_event_up): New typedef.
9840 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
9841 (notif_event_xfree, do_notif_event_xfree): Remove.
9842 (remote_notif_state_xfree): Update.
9844 2019-03-06 Tom Tromey <tom@tromey.com>
9846 * infrun.c (displaced_step_clear_cleanup): Now a
9847 forward_scope_exit type.
9848 (displaced_step_prepare_throw): Update.
9849 (displaced_step_fixup): Update.
9851 2019-03-06 Tom Tromey <tom@tromey.com>
9853 * inferior.h (class inferior): Update comment.
9854 * gdbthread.h (class thread_info): Update comment.
9856 2019-03-06 Joel Brobecker <brobecker@adacore.com>
9857 Tom Tromey <tom@tromey.com>
9859 * stabsread.h (struct stab_section_list): Remove.
9860 (coffstab_build_psymtabs): Update.
9861 * dbxread.c (symbuf_sections): Now a std::vector.
9862 (sect_idx): New global.
9863 (fill_symbuf): Update.
9864 (coffstab_build_psymtabs): Change type of stabsects parameter.
9866 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
9868 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
9869 (coff_locate_sections): Update.
9870 (coff_symfile_read): Remove cleanups. Update.
9871 (init_stringtab): Add storage parameter.
9872 (free_stringtab, free_stringtab_cleanup): Remove.
9873 (init_lineno): Add storage parameter.
9874 (free_linetab, free_linetab_cleanup): Remove.
9876 2019-03-06 Pedro Alves <palves@redhat.com>
9878 * linux-fork.c (fork_info::clobber_regs): Delete.
9879 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
9880 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
9882 (scoped_switch_fork_info::scoped_switch_fork_info)
9883 (checkpoint_command, linux_fork_context): Adjust
9884 fork_save_infrun_state calls.
9886 2019-03-06 Pedro Alves <palves@redhat.com>
9888 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
9889 (inf_has_multiple_threads): Return 'bool' and rewrite using
9890 inferior_info::threads().
9892 2019-03-06 Pedro Alves <palves@redhat.com>
9894 * linux-fork.c: Include <list>.
9895 (fork_list): Now a std::list instance.
9896 (fork_info): Add ctor, dtor, and in-class initialize all fields.
9897 (forks_exist_p, find_last_fork): Adjust.
9901 (free_fork): Delete, folded into fork_info::~fork_info().
9902 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
9904 (init_fork_list): Delete.
9905 (linux_fork_killall, linux_fork_mourn_inferior)
9906 (linux_fork_detach, info_checkpoints_command): Adjust.
9907 (_initialize_linux_fork): No longer call init_fork_list.
9909 2019-03-06 Pedro Alves <palves@redhat.com>
9911 * linux-fork.c (new_fork): New, split out of ...
9912 (add_fork): ... this. Return void. Move "first fork" special
9913 case from here, to ...
9914 (checkpoint_command): ... here.
9915 * linux-linux.h (add_fork): Return void.
9917 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9919 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
9921 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9922 Chris January <chris.january@arm.com>
9923 David Lecomber <david.lecomber@arm.com>
9925 * f-exp.y: New token, UNOP_INTRINSIC.
9926 (exp): New pattern using UNOP_INTRINSIC token.
9927 (f77_keywords): Add 'abs' keyword.
9928 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
9929 (value_from_host_double): New function.
9930 (evaluate_subexp_f): Support UNOP_ABS.
9932 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9934 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
9937 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9939 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
9940 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
9941 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
9943 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9945 * f-exp.y (convert_to_kind_type): Handle more type kinds.
9947 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9948 Chris January <chris.january@arm.com>
9950 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
9951 * f-exp.y: Define 'KIND' token.
9952 (exp): New pattern for KIND expressions.
9953 (ptype): Handle types with a kind extension.
9954 (direct_abs_decl): Extend to spot kind extensions.
9955 (f77_keywords): Add 'kind' to the list.
9956 (push_kind_type): New function.
9957 (convert_to_kind_type): New function.
9958 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
9959 * parse.c (operator_length_standard): Likewise.
9960 * parser-defs.h (enum type_pieces): Add tp_kind.
9961 * std-operator.def: Add UNOP_KIND.
9963 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9965 * f-exp.y (f_parse): Set yydebug.
9967 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9969 * f-lang.c (evaluate_subexp_f): New function.
9970 (exp_descriptor_f): New global.
9971 (f_language_defn): Use exp_descriptor_f instead of
9972 exp_descriptor_standard.
9974 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9976 * f-exp.y (struct token): Add comments.
9977 (dot_ops): Remove uppercase versions and the end marker.
9978 (f77_keywords): Likewise.
9979 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
9980 entries in the dot_ops array are case insensitive, and use
9981 strncasecmp to compare strings. Also some whitespace cleanup in
9982 this area. Similar for the f77_keywords array, except entries in
9983 this list might be case sensitive.
9985 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9987 * f-exp.y (struct f77_boolean_val): Add comments.
9988 (boolean_values): Remove uppercase versions, and end marker.
9989 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
9990 and use strncasecmp to achieve case insensitivity. Additionally,
9991 perform whitespace cleanup around this code.
9993 2019-03-06 Tom Tromey <tromey@adacore.com>
9995 * remote-sim.c (gdbsim_target_open): Use result of
9998 2019-03-06 Richard Bunt <richard.bunt@arm.com>
9999 Dirk Schubert <dirk.schubert@arm.com>
10000 Chris January <chris.january@arm.com>
10002 * eval.c (evaluate_subexp_standard): Call Fortran argument
10004 * f-lang.c (struct value): A value which can be passed into a
10005 Fortran function call.
10006 (fortran_argument_convert): Wrap Fortran arguments in a pointer
10008 (struct type): Value ready for a Fortran function call.
10009 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
10011 * f-lang.h (fortran_argument_convert): Declaration.
10012 (fortran_preserve_arg_pointer): Declaration.
10013 * infcall.c (value_arg_coerce): Call Fortran argument logic.
10015 2019-03-05 Tom Tromey <tromey@adacore.com>
10017 * python/py-prettyprint.c (print_string_repr): Remove #if.
10018 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
10020 2019-03-05 Tom Tromey <tromey@adacore.com>
10022 * target.c (the_dummy_target): Move later. Change type to
10024 (initialize_targets): Don't initialize the_dummy_target.
10026 2019-03-05 Tom Tromey <tromey@adacore.com>
10028 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
10029 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
10031 2019-03-05 Tom Tromey <tromey@adacore.com>
10033 * windows-nat.c (windows_nat_target::attach)
10034 (windows_nat_target::detach): Don't call gdb_flush.
10035 * valprint.c (generic_val_print, val_print, val_print_string):
10036 Don't call gdb_flush.
10037 * utils.c (defaulted_query): Don't call gdb_flush.
10038 * typeprint.c (print_type_scalar): Don't call gdb_flush.
10039 * target.c (target_announce_detach): Don't call gdb_flush.
10040 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
10041 * remote.c (extended_remote_target::attach): Don't call
10043 * procfs.c (procfs_target::detach): Don't call gdb_flush.
10044 * printcmd.c (do_examine): Don't call gdb_flush.
10045 (info_display_command): Don't call gdb_flush.
10046 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
10047 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
10048 * memattr.c (info_mem_command): Don't call gdb_flush.
10049 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
10050 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
10051 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
10052 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
10053 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
10054 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
10055 (gnu_nat_target::detach): Don't call gdb_flush.
10056 * f-valprint.c (f_val_print): Don't call gdb_flush.
10057 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
10058 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
10059 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
10061 * c-valprint.c (c_val_print): Don't call gdb_flush.
10062 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
10064 2019-03-05 Tom Tromey <tromey@adacore.com>
10066 * varobj.c (update_dynamic_varobj_children): Update.
10067 (install_default_visualizer): Use reset, not release.
10068 * value.c (set_internalvar): Update.
10069 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
10070 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
10071 ATTRIBUTE_UNUSED_RESULT.
10073 2019-03-05 Tom Tromey <tromey@adacore.com>
10075 * remote.c (class scoped_remote_fd) <release>: Add
10076 ATTRIBUTE_UNUSED_RESULT.
10078 2019-03-05 Tom Tromey <tromey@adacore.com>
10080 * macroexp.c (struct macro_buffer) <release>: Add
10081 ATTRIBUTE_UNUSED_RESULT.
10083 2019-03-05 Tom Tromey <tromey@adacore.com>
10085 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
10086 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
10087 ATTRIBUTE_UNUSED_RESULT.
10089 2019-03-05 Tom Tromey <tromey@adacore.com>
10091 * common/scoped_fd.h (class scoped_fd) <release>: Add
10092 ATTRIBUTE_UNUSED_RESULT.
10094 2019-03-05 Tom Tromey <tromey@adacore.com>
10096 * parser-defs.h (struct parser_state) <release>: Add
10097 ATTRIBUTE_UNUSED_RESULT.
10099 2019-03-05 Tom Tromey <tromey@adacore.com>
10101 * utils.h (class gdb_argv) <release>: Add
10102 ATTRIBUTE_UNUSED_RESULT.
10103 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
10105 2019-03-02 Eli Zaretskii <eliz@gnu.org>
10107 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
10108 for-loop range, to avoid compiler warnings.
10110 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
10111 avoid compiler warnings about unused variables.
10113 * NEWS: Mention end of support for native debugging on MS-Windows
10117 * common/netstuff.c:
10118 * gdbserver/gdbreplay.c
10119 * gdbserver/remote-utils.c:
10121 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
10122 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
10123 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
10124 'getaddrinfo' and 'freeaddrinfo' were not available before
10125 Windows XP, and mingw.org's MinGW headers by default define
10126 _WIN32_WINNT to 0x500.
10128 2019-03-01 Gary Benson <gbenson@redhat.com>
10130 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
10132 2019-02-28 Brian Vandenberg <phantall@gmail.com>
10133 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10136 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
10137 set_sigint_trap, clear_sigint_trap.
10139 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10141 * target.c (target_detach): Clear the regcache and the
10144 2019-02-27 Pedro Alves <palves@redhat.com>
10146 * utils.c (set_screen_size): When we cap the height/width sizes,
10147 tweak the corresponding command variable to show "unlimited":
10149 2019-02-27 Saagar Jha <saagar@saagarjha.com>
10150 Pedro Alves <palves@redhat.com>
10152 * utils.c (set_screen_size): Reduce "infinite" rows and columns
10153 before calling rl_set_screen_size.
10155 2019-02-27 Tom Tromey <tromey@adacore.com>
10157 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
10159 * python/py-value.c: Remove Python 2.4 workaround.
10160 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
10162 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
10163 Python 2.4 workaround.
10164 * python/python-internal.h: Remove Python 2.4 comment.
10165 (Py_ssize_t): Don't define.
10166 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
10167 (gdb_Py_DECREF): Remove Python 2.4 workaround.
10168 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
10169 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
10170 * python/python.c (do_start_initialization): Remove Python 2.4
10172 * python/py-prettyprint.c (class dummy_python_frame): Remove.
10173 (print_children): Remove Python 2.4 workaround.
10174 * python/py-inferior.c (buffer_procs): Remove Python 2.4
10176 (CHARBUFFERPROC_NAME): Remove.
10177 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
10178 Python 2.4 workaround.
10180 2019-02-27 Kevin Buettner <kevinb@redhat.com>
10182 * NEWS: Note minimum Python version.
10184 2019-02-27 Kevin Buettner <kevinb@redhat.com>
10186 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
10187 code from these functions. Remove corresponding ifdefs. Use
10188 Py_buffer_up instead of explicit calls to PyBuffer_Release.
10189 Remove gotos and target of gotos.
10190 (infpy_search_memory): Likewise.
10192 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10194 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
10195 (hppa_gdbarch_init): Don't register deleted functions with
10198 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10200 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
10201 (h8300_unwind_sp): Delete.
10202 (h8300_dummy_id): Delete.
10203 (h8300_gdbarch_init): Don't register deleted functions with
10206 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10208 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
10209 (ft32_unwind_pc): Delete.
10210 (ft32_unwind_sp): Delete.
10211 (ft32_gdbarch_init): Don't register deleted functions with
10214 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10216 * gdb/frv-tdep.c (frv_dummy_id): Delete.
10217 (frv_unwind_pc): Delete.
10218 (frv_unwind_sp): Delete.
10219 (frv_gdbarch_init): Don't register deleted functions with
10222 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10224 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
10225 (riscv_unwind_pc): Delete.
10226 (riscv_unwind_sp): Delete.
10227 (riscv_gdbarch_init): Don't register deleted functions with
10230 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10232 * gdb/csky-tdep.c (csky_dummy_id): Delete.
10233 (csky_unwind_pc): Delete.
10234 (csky_unwind_sp): Delete.
10235 (csky_gdbarch_init): Don't register deleted functions with
10238 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10240 * gdb/cris-tdep.c (cris_dummy_id): Delete.
10241 (cris_unwind_pc): Delete.
10242 (cris_unwind_sp): Delete.
10243 (cris_gdbarch_init): Don't register deleted functions with
10246 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10248 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
10249 (bfin_unwind_pc): Delete.
10250 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
10252 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10254 * gdb/arm-tdep.c (arm_dummy_id): Delete.
10255 (arm_unwind_pc): Delete.
10256 (arm_unwind_sp): Delete.
10257 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
10259 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10261 * gdb/arc-tdep.c (arc_dummy_id): Delete.
10262 (arc_unwind_pc): Delete.
10263 (arc_unwind_sp): Delete.
10264 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
10266 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10268 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
10269 (alpha_unwind_pc): Delete.
10270 (alpha_gdbarch_init): Don't register deleted functions with
10273 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10275 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
10276 (aarch64_unwind_pc): Delete.
10277 (aarch64_unwind_sp): Delete.
10278 (aarch64_gdbarch_init): Don't register deleted functions with
10281 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10283 * gdbtypes.c (type_align): Don't consider static members when
10284 computing structure alignment.
10286 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10288 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
10289 return 0 for other types.
10290 * arch-utils.c (default_type_align): Always return 0.
10291 * gdbarch.h: Regenerate.
10292 * gdbarch.sh (type_align): Extend comment.
10293 * gdbtypes.c (type_align): Add additional comments, always call
10294 gdbarch_type_align before applying the default rules.
10295 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
10296 generic code will then apply a suitable default.
10297 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
10298 types, return 0 for other types.
10300 2019-02-27 Joel Brobecker <brobecker@adacore.com>
10302 * NEWS: Create a new section for the next release branch.
10303 Rename the section of the current branch, now that it has
10306 2019-02-27 Joel Brobecker <brobecker@adacore.com>
10308 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
10309 * version.in: Bump version to 8.3.50.DATE-git.
10311 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
10313 * aix-thread.c (ptid_cmp): Remove unused variable.
10314 (get_signaled_thread): Likewise.
10315 (store_regs_user_thread): Likewise.
10316 (store_regs_kernel_thread): Likewise.
10317 (fetch_regs_kernel_thread): Remove shadowed variable.
10319 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
10321 * features/riscv/32bit-cpu.xml: Add register numbers.
10322 * features/riscv/32bit-fpu.c: Regenerate.
10323 * features/riscv/32bit-fpu.xml: Add register numbers.
10324 * features/riscv/64bit-cpu.xml: Add register numbers.
10325 * features/riscv/64bit-fpu.c: Regenerate.
10326 * features/riscv/64bit-fpu.xml: Add register numbers.
10328 2019-02-26 Kevin Buettner <kevinb@redhat.com>
10330 * NEWS: Mention two argument form of gdb.Value constructor.
10331 * python/py-value.c (convert_buffer_and_type_to_value): New
10333 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
10334 Add support for handling an optional second argument. Call
10335 convert_buffer_and_type_to_value as appropriate.
10336 * python/python-internal.h (Py_buffer_deleter): New struct.
10337 (Py_buffer_up): New typedef.
10339 2019-02-25 John Baldwin <jhb@FreeBSD.org>
10341 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
10342 instead of releasing ownership.
10344 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
10346 * dwarf2read.c (open_and_init_dwp_file): Call
10347 elf_numsections instead of bfd_count_sections to initialize
10348 dwp_file->num_sections.
10350 2019-02-25 Tom Tromey <tromey@adacore.com>
10352 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
10354 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
10356 * gcore.in: Add '--readnever' option when invoking GDB.
10358 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
10360 * MAINTAINERS: Update my email address.
10362 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
10364 * build-id.c (build_id_to_debug_bfd_1): New function.
10365 (build_id_to_debug_bfd): Look for separate debug file in
10368 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
10370 * gdbarch.sh: Update the copyright year range that is placed into
10373 2019-02-22 Keith Seitz <keiths@redhat.com>
10376 * linespec.c (create_sals_line_offset): Search for the default
10377 symtab's filename instead of its fullname.
10379 2019-02-21 Alan Hayward <alan.hayward@arm.com>
10381 * NEWS: Update style defaults.
10383 2019-02-21 Alan Hayward <alan.hayward@arm.com>
10385 * main.c (captured_main_1): Disable styling in batch mode.
10387 2019-02-20 Tom Tromey <tom@tromey.com>
10389 * symtab.c (symtab_symbol_info): Fix typos.
10391 2019-02-20 Tom Tromey <tromey@adacore.com>
10393 * findcmd.c (_initialize_mem_search): Use upper case for
10394 metasyntactic variables.
10396 2019-02-20 Alan Hayward <alan.hayward@arm.com>
10398 * aarch64-tdep.c (aarch64_add_reggroups): New function.
10399 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
10401 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
10403 * top.h (source_file_name): Change to std::string.
10404 * top.c (source_file_name): Likewise.
10405 (command_line_input): Adjust.
10406 * cli/cli-script.c (script_from_file): Adjust.
10408 2019-02-19 Tom Tromey <tromey@adacore.com>
10410 * ravenscar-thread.c
10411 (ravenscar_thread_target::update_thread_list): Don't call
10412 ada_build_task_list.
10413 * ada-lang.h (ada_build_task_list): Don't declare.
10414 * ada-tasks.c (struct ada_tasks_inferior_data)
10415 <task_list_valid_p>: Now bool.
10416 (read_known_tasks, ada_task_list_changed)
10417 (ada_tasks_invalidate_inferior_data): Update.
10418 (read_known_tasks_array): Return bool.
10419 (read_known_tasks_list): Likewise.
10420 (read_known_tasks): Return void.
10421 (ada_build_task_list): Now static.
10423 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
10425 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
10426 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
10428 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10430 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
10431 variant for ada_tasks_pspace_data_handle and
10432 ada_tasks_inferior_data_handle.
10433 (ada_tasks_pspace_data_cleanup): New function.
10434 (ada_tasks_inferior_data_cleanup): New function.
10436 2019-02-17 Tom Tromey <tom@tromey.com>
10438 * macrotab.h (macro_source_fullname): Return a std::string.
10439 * macrotab.c (macro_include, check_for_redefinition)
10440 (macro_undef, macro_lookup_definition, foreach_macro)
10441 (foreach_macro_in_scope): Update.
10442 (macro_source_fullname): Return a std::string.
10443 * macrocmd.c (show_pp_source_pos): Update.
10445 2019-02-17 Tom Tromey <tom@tromey.com>
10447 * macrocmd.c (show_pp_source_pos): Style the file names.
10449 2019-02-17 Tom Tromey <tom@tromey.com>
10452 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
10454 2019-02-17 Tom Tromey <tom@tromey.com>
10456 * ada-lang.c (user_select_syms): Use filtered printing.
10457 * utils.c (wrap_style): New global.
10458 (desired_style): Remove.
10459 (emit_style_escape): Add stream parameter.
10460 (set_output_style, reset_terminal_style, prompt_for_continue):
10462 (flush_wrap_buffer): Only flush gdb_stdout.
10463 (wrap_here): Set wrap_style.
10464 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
10465 treat escape sequences as a character. Change when wrap buffer is
10467 (fputs_styled): Do not set the output style when the default is
10469 * ui-style.h (struct ui_file_style) <is_default>: New method.
10470 * source.c (print_source_lines_base): Emit escape sequences in one
10473 2019-02-17 Joel Brobecker <brobecker@adacore.com>
10475 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
10476 integers and enumeration types.
10478 2019-02-17 Joel Brobecker <brobecker@adacore.com>
10480 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
10481 instead of lookup_symbol_in_language
10482 (do_exact_match): New function.
10483 (ada_get_symbol_name_matcher): Return do_exact_match when
10484 doing a verbatim match.
10486 2019-02-15 Tom Tromey <tromey@adacore.com>
10488 * ravenscar-thread.c (ravenscar_thread_target::resume)
10489 (ravenscar_thread_target::wait): Special case wildcard requests.
10491 2019-02-15 Tom Tromey <tromey@adacore.com>
10493 * ravenscar-thread.c (base_ptid): Remove.
10494 (struct ravenscar_thread_target) <close>: New method.
10495 <m_base_ptid>: New member.
10496 <update_inferior_ptid, active_task, task_is_currently_active,
10497 runtime_initialized>: Declare methods.
10498 <ravenscar_thread_target>: Add constructor.
10499 (ravenscar_thread_target::task_is_currently_active)
10500 (ravenscar_thread_target::update_inferior_ptid)
10501 (ravenscar_runtime_initialized): Rename. Now methods.
10502 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
10503 (ravenscar_thread_target::update_thread_list): Update.
10504 (ravenscar_thread_target::active_task): Now method.
10505 (ravenscar_thread_target::store_registers)
10506 (ravenscar_thread_target::prepare_to_store)
10507 (ravenscar_thread_target::prepare_to_store)
10508 (ravenscar_thread_target::mourn_inferior): Update.
10509 (ravenscar_inferior_created): Use "new" to create target.
10510 (ravenscar_thread_target::get_ada_task_ptid): Update.
10511 (_initialize_ravenscar): Don't initialize base_ptid.
10512 (ravenscar_ops): Remove global.
10514 2019-02-15 Tom Tromey <tromey@adacore.com>
10516 * target.h (push_target): Declare new overload.
10517 * target.c (push_target): New overload, taking an rvalue reference.
10518 * remote.c (remote_target::open_1): Use push_target overload.
10519 * corelow.c (core_target_open): Use push_target overload.
10521 2019-02-15 Tom Tromey <tromey@adacore.com>
10523 * ravenscar-thread.c (is_ravenscar_task)
10524 (ravenscar_task_is_currently_active): Return bool.
10525 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
10526 (_initialize_ravenscar): Remove "(void)".
10527 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
10530 2019-02-15 Tom Tromey <tromey@adacore.com>
10532 * ravenscar-thread.c (ravenscar_runtime_initializer)
10533 (has_ravenscar_runtime, get_running_thread_id)
10534 (ravenscar_thread_target::resume): Fix indentation.
10536 2019-02-15 Tom Tromey <tromey@adacore.com>
10538 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
10539 from ravenscar_arch_ops.
10540 (sparc_ravenscar_ops::fetch_registers)
10541 (sparc_ravenscar_ops::store_registers): Now methods.
10542 (sparc_ravenscar_prepare_to_store): Remove.
10543 (sparc_ravenscar_ops): Redefine.
10544 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
10545 methods and destructor. Remove members.
10546 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
10547 (ravenscar_thread_target::store_registers)
10548 (ravenscar_thread_target::prepare_to_store): Update.
10549 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
10551 (struct ppc_ravenscar_powerpc_ops): Derive from
10552 ravenscar_arch_ops.
10553 (ppc_ravenscar_powerpc_ops::fetch_registers)
10554 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
10555 (ppc_ravenscar_powerpc_ops): Redefine.
10556 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
10557 (ppc_ravenscar_e500_ops::fetch_registers)
10558 (ppc_ravenscar_e500_ops::store_registers): Now methods.
10559 (ppc_ravenscar_e500_ops): Redefine.
10560 * aarch64-ravenscar-thread.c
10561 (aarch64_ravenscar_generic_prepare_to_store): Remove.
10562 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
10563 (aarch64_ravenscar_fetch_registers)
10564 (aarch64_ravenscar_store_registers): Now methods.
10565 (aarch64_ravenscar_ops): Redefine.
10567 2019-02-15 Tom Tromey <tromey@adacore.com>
10569 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
10570 (ravenscar_thread_target::stopped_by_hw_breakpoint)
10571 (ravenscar_thread_target::stopped_by_watchpoint)
10572 (ravenscar_thread_target::stopped_data_address)
10573 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
10575 2019-02-15 Tom Tromey <tromey@adacore.com>
10577 * ravenscar-thread.c: Fix some typos.
10579 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10580 Tom Tromey <tromey@adacore.com>
10582 * ada-lang.c (ada_exception_sal): Change addr_string to a
10584 (create_ada_exception_catchpoint): Update.
10586 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10587 Tom Tromey <tromey@adacore.com>
10589 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
10590 (bp_location_ops): Remove.
10591 (base_breakpoint_allocate_location): Update.
10592 (free_bp_location): Update.
10593 * ada-lang.c (class ada_catchpoint_location)
10594 <ada_catchpoint_location>: Remove ops parameter.
10595 (ada_catchpoint_location_dtor): Remove.
10596 (ada_catchpoint_location_ops): Remove.
10597 (allocate_location_exception): Update.
10598 * breakpoint.h (struct bp_location_ops): Remove.
10599 (class bp_location) <bp_location>: Remove bp_location_ops
10601 <~bp_location>: Add destructor.
10604 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10605 Pedro Alves <palves@redhat.com>
10607 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
10610 2019-02-14 David Michael <fedora.dm0@gmail.com>
10611 Samuel Thibault <samuel.thibault@gnu.org>
10612 Thomas Schwinge <thomas@codesourcery.com>
10614 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
10615 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
10617 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10619 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
10620 (check_empty): Use "const char *".
10622 * gnu-nat.c (gnu_nat_target::detach): Instead of
10623 'detach_inferior (pid)' call
10624 'detach_inferior (find_inferior_pid (pid))'.
10626 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
10627 'nat/fork-inferior.o'.
10628 * gnu-nat.c: #include "nat/fork-inferior.h".
10630 * gnu-nat.c (gnu_nat_target::detach): Instead of
10631 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
10632 * gnu-nat.h: #include "inf-child.h".
10633 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
10634 'i386_gnu_nat_target::fetch_registers'.
10635 (gnu_store_registers): Rename/move to
10636 'i386_gnu_nat_target::store_registers'.
10638 * config/i386/nm-i386gnu.h: Don't "#include" any files.
10639 * gnu-nat.h (mach_thread_info): New function.
10640 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
10642 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
10644 2019-02-14 Frederic Konrad <konrad@adacore.com>
10646 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
10648 2019-02-14 Joel Brobecker <brobecker@adacore.com>
10650 * windows-nat.c (windows_add_thread): Add new parameter
10651 "main_thread_p" with default value set to false. Update
10652 function documentation as well as all callers.
10653 (windows_delete_thread): Likewise.
10654 (fake_create_process): Update call to windows_add_thread.
10655 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
10656 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
10657 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
10658 call to windows_delete_thread.
10660 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
10662 * MAINTAINERS: Add Andrew Burgess as global maintainer.
10664 2019-02-12 John Baldwin <jhb@FreeBSD.org>
10666 * symfile.c (find_separate_debug_file): Use canonical path of
10667 sysroot with child_path instead of gdb_sysroot if it is valid.
10669 2019-02-12 John Baldwin <jhb@FreeBSD.org>
10671 * symfile.c (find_separate_debug_file): Use child_path to
10672 determine if an object file is under a sysroot.
10674 2019-02-12 John Baldwin <jhb@FreeBSD.org>
10676 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10677 unittests/child-path-selftests.c.
10678 * common/pathstuff.c (child_path): New function.
10679 * common/pathstuff.h (child_path): New prototype.
10680 * unittests/child-path-selftests.c: New file.
10682 2019-02-12 John Baldwin <jhb@FreeBSD.org>
10684 * symfile.c (find_separate_debug_file): Look for separate debug
10685 files in debug directories under the sysroot.
10687 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10689 * symtab.h (struct minimal_symbol data_p): New const method.
10690 (struct minimal_symbol text_p): Likewise.
10691 * symtab.c (output_source_filename): Use file name style
10692 to print file name.
10693 (print_symbol_info): Likewise.
10694 (print_msymbol_info): Use address style to print addresses.
10695 Use function name style to print executable text symbols.
10696 (expand_symtab_containing_pc): Use data_p.
10697 (find_pc_sect_compunit_symtab): Likewise.
10699 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10701 * breakpoint.c (describe_other_breakpoints): Use address style
10702 to print addresses.
10703 (say_where): Likewise.
10705 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10707 * ada-typeprint.c (print_func_type): Print function name
10708 style to print function name.
10709 * c-typeprint.c (c_print_type_1): Likewise.
10711 2019-02-11 Alan Hayward <alan.hayward@arm.com>
10713 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
10716 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10718 * c-exp.y (direct_abs_decl): Use emplace_back to record the
10721 2019-02-10 Joel Brobecker <brobecker@adacore.com>
10723 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
10724 TYPE_CODE_REF types.
10726 2019-02-08 Jim Wilson <jimw@sifive.com>
10728 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
10729 (riscv_linux_fregset): New.
10730 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
10732 2019-02-07 Tom Tromey <tom@tromey.com>
10734 * thread.c (thread_cancel_execution_command): Update.
10735 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
10737 (struct thread_fsm_ops): Remove.
10738 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
10739 (thread_fsm_should_stop, thread_fsm_return_value)
10740 (thread_fsm_set_finished, thread_fsm_finished_p)
10741 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
10743 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
10744 * infrun.c (clear_proceed_status_thread)
10745 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
10746 (print_stop_event): Update.
10747 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
10749 (step_command_fsm_ops): Remove.
10750 (new_step_command_fsm): Remove.
10752 (step_command_fsm::should_stop): Rename from
10753 step_command_fsm_should_stop.
10754 (step_command_fsm::clean_up): Rename from
10755 step_command_fsm_clean_up.
10756 (step_command_fsm::do_async_reply_reason): Rename from
10757 step_command_fsm_async_reply_reason.
10758 (struct until_next_fsm): Inherit from thread_fsm. Add
10760 (until_next_fsm_ops): Remove.
10761 (new_until_next_fsm): Remove.
10762 (until_next_fsm::should_stop): Rename from
10763 until_next_fsm_should_stop.
10764 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
10765 (until_next_fsm::do_async_reply_reason): Rename from
10766 until_next_fsm_async_reply_reason.
10767 (struct finish_command_fsm): Inherit from thread_fsm. Add
10768 constructor. Change type of breakpoint.
10769 (finish_command_fsm_ops): Remove.
10770 (new_finish_command_fsm): Remove.
10771 (finish_command_fsm::should_stop): Rename from
10772 finish_command_fsm_should_stop.
10773 (finish_command_fsm::clean_up): Rename from
10774 finish_command_fsm_clean_up.
10775 (finish_command_fsm::return_value): Rename from
10776 finish_command_fsm_return_value.
10777 (finish_command_fsm::do_async_reply_reason): Rename from
10778 finish_command_fsm_async_reply_reason.
10779 (finish_command): Update.
10780 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
10782 (call_thread_fsm_ops): Remove.
10783 (call_thread_fsm::call_thread_fsm): Rename from
10784 new_call_thread_fsm.
10785 (call_thread_fsm::should_stop): Rename from
10786 call_thread_fsm_should_stop.
10787 (call_thread_fsm::should_notify_stop): Rename from
10788 call_thread_fsm_should_notify_stop.
10789 (run_inferior_call, call_function_by_hand_dummy): Update.
10790 * cli/cli-interp.c (should_print_stop_to_console): Update.
10791 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
10792 Add constructor. Change type of location_breakpoint,
10794 (until_break_fsm_ops): Remove.
10795 (new_until_break_fsm): Remove.
10796 (until_break_fsm::should_stop): Rename from
10797 until_break_fsm_should_stop.
10798 (until_break_fsm::clean_up): Rename from
10799 until_break_fsm_clean_up.
10800 (until_break_fsm::do_async_reply_reason): Rename from
10801 until_break_fsm_async_reply_reason.
10802 (until_break_command): Update.
10803 * thread-fsm.c: Remove.
10804 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
10806 2019-02-07 Tom Tromey <tom@tromey.com>
10808 * yy-remap.h: Add include guard.
10809 * xtensa-tdep.h: Add include guard.
10810 * xcoffread.h: Rename include guard.
10811 * varobj-iter.h: Add include guard.
10812 * tui/tui.h: Rename include guard.
10813 * tui/tui-winsource.h: Rename include guard.
10814 * tui/tui-wingeneral.h: Rename include guard.
10815 * tui/tui-windata.h: Rename include guard.
10816 * tui/tui-win.h: Rename include guard.
10817 * tui/tui-stack.h: Rename include guard.
10818 * tui/tui-source.h: Rename include guard.
10819 * tui/tui-regs.h: Rename include guard.
10820 * tui/tui-out.h: Rename include guard.
10821 * tui/tui-layout.h: Rename include guard.
10822 * tui/tui-io.h: Rename include guard.
10823 * tui/tui-hooks.h: Rename include guard.
10824 * tui/tui-file.h: Rename include guard.
10825 * tui/tui-disasm.h: Rename include guard.
10826 * tui/tui-data.h: Rename include guard.
10827 * tui/tui-command.h: Rename include guard.
10828 * tic6x-tdep.h: Add include guard.
10829 * target/waitstatus.h: Rename include guard.
10830 * target/wait.h: Rename include guard.
10831 * target/target.h: Rename include guard.
10832 * target/resume.h: Rename include guard.
10833 * target-float.h: Rename include guard.
10834 * stabsread.h: Add include guard.
10835 * rs6000-tdep.h: Add include guard.
10836 * riscv-fbsd-tdep.h: Add include guard.
10837 * regformats/regdef.h: Rename include guard.
10838 * record.h: Rename include guard.
10839 * python/python.h: Rename include guard.
10840 * python/python-internal.h: Rename include guard.
10841 * python/py-stopevent.h: Rename include guard.
10842 * python/py-ref.h: Rename include guard.
10843 * python/py-record.h: Rename include guard.
10844 * python/py-record-full.h: Rename include guard.
10845 * python/py-record-btrace.h: Rename include guard.
10846 * python/py-instruction.h: Rename include guard.
10847 * python/py-events.h: Rename include guard.
10848 * python/py-event.h: Rename include guard.
10849 * procfs.h: Add include guard.
10850 * proc-utils.h: Add include guard.
10851 * p-lang.h: Add include guard.
10852 * or1k-tdep.h: Rename include guard.
10853 * observable.h: Rename include guard.
10854 * nto-tdep.h: Rename include guard.
10855 * nat/x86-linux.h: Rename include guard.
10856 * nat/x86-linux-dregs.h: Rename include guard.
10857 * nat/x86-gcc-cpuid.h: Add include guard.
10858 * nat/x86-dregs.h: Rename include guard.
10859 * nat/x86-cpuid.h: Rename include guard.
10860 * nat/ppc-linux.h: Rename include guard.
10861 * nat/mips-linux-watch.h: Rename include guard.
10862 * nat/linux-waitpid.h: Rename include guard.
10863 * nat/linux-ptrace.h: Rename include guard.
10864 * nat/linux-procfs.h: Rename include guard.
10865 * nat/linux-osdata.h: Rename include guard.
10866 * nat/linux-nat.h: Rename include guard.
10867 * nat/linux-namespaces.h: Rename include guard.
10868 * nat/linux-btrace.h: Rename include guard.
10869 * nat/glibc_thread_db.h: Rename include guard.
10870 * nat/gdb_thread_db.h: Rename include guard.
10871 * nat/gdb_ptrace.h: Rename include guard.
10872 * nat/fork-inferior.h: Rename include guard.
10873 * nat/amd64-linux-siginfo.h: Rename include guard.
10874 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
10875 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
10876 * nat/aarch64-linux.h: Rename include guard.
10877 * nat/aarch64-linux-hw-point.h: Rename include guard.
10878 * mn10300-tdep.h: Add include guard.
10879 * mips-linux-tdep.h: Add include guard.
10880 * mi/mi-parse.h: Rename include guard.
10881 * mi/mi-out.h: Rename include guard.
10882 * mi/mi-main.h: Rename include guard.
10883 * mi/mi-interp.h: Rename include guard.
10884 * mi/mi-getopt.h: Rename include guard.
10885 * mi/mi-console.h: Rename include guard.
10886 * mi/mi-common.h: Rename include guard.
10887 * mi/mi-cmds.h: Rename include guard.
10888 * mi/mi-cmd-break.h: Rename include guard.
10889 * m2-lang.h: Add include guard.
10890 * location.h: Rename include guard.
10891 * linux-record.h: Rename include guard.
10892 * linux-nat.h: Add include guard.
10893 * linux-fork.h: Add include guard.
10894 * i386-darwin-tdep.h: Rename include guard.
10895 * hppa-linux-offsets.h: Add include guard.
10896 * guile/guile.h: Rename include guard.
10897 * guile/guile-internal.h: Rename include guard.
10898 * gnu-nat.h: Rename include guard.
10899 * gdb-stabs.h: Rename include guard.
10900 * frv-tdep.h: Add include guard.
10901 * f-lang.h: Add include guard.
10902 * event-loop.h: Add include guard.
10903 * darwin-nat.h: Rename include guard.
10904 * cp-abi.h: Rename include guard.
10905 * config/sparc/nm-sol2.h: Rename include guard.
10906 * config/nm-nto.h: Rename include guard.
10907 * config/nm-linux.h: Add include guard.
10908 * config/i386/nm-i386gnu.h: Rename include guard.
10909 * config/djgpp/nl_types.h: Rename include guard.
10910 * config/djgpp/langinfo.h: Rename include guard.
10911 * compile/gcc-cp-plugin.h: Add include guard.
10912 * compile/gcc-c-plugin.h: Add include guard.
10913 * compile/compile.h: Rename include guard.
10914 * compile/compile-object-run.h: Rename include guard.
10915 * compile/compile-object-load.h: Rename include guard.
10916 * compile/compile-internal.h: Rename include guard.
10917 * compile/compile-cplus.h: Rename include guard.
10918 * compile/compile-c.h: Rename include guard.
10919 * common/xml-utils.h: Rename include guard.
10920 * common/x86-xstate.h: Rename include guard.
10921 * common/version.h: Rename include guard.
10922 * common/vec.h: Rename include guard.
10923 * common/tdesc.h: Rename include guard.
10924 * common/selftest.h: Rename include guard.
10925 * common/scoped_restore.h: Rename include guard.
10926 * common/scoped_mmap.h: Rename include guard.
10927 * common/scoped_fd.h: Rename include guard.
10928 * common/safe-iterator.h: Rename include guard.
10929 * common/run-time-clock.h: Rename include guard.
10930 * common/refcounted-object.h: Rename include guard.
10931 * common/queue.h: Rename include guard.
10932 * common/ptid.h: Rename include guard.
10933 * common/print-utils.h: Rename include guard.
10934 * common/preprocessor.h: Rename include guard.
10935 * common/pathstuff.h: Rename include guard.
10936 * common/observable.h: Rename include guard.
10937 * common/netstuff.h: Rename include guard.
10938 * common/job-control.h: Rename include guard.
10939 * common/host-defs.h: Rename include guard.
10940 * common/gdb_wait.h: Rename include guard.
10941 * common/gdb_vecs.h: Rename include guard.
10942 * common/gdb_unlinker.h: Rename include guard.
10943 * common/gdb_unique_ptr.h: Rename include guard.
10944 * common/gdb_tilde_expand.h: Rename include guard.
10945 * common/gdb_sys_time.h: Rename include guard.
10946 * common/gdb_string_view.h: Rename include guard.
10947 * common/gdb_splay_tree.h: Rename include guard.
10948 * common/gdb_setjmp.h: Rename include guard.
10949 * common/gdb_ref_ptr.h: Rename include guard.
10950 * common/gdb_optional.h: Rename include guard.
10951 * common/gdb_locale.h: Rename include guard.
10952 * common/gdb_assert.h: Rename include guard.
10953 * common/filtered-iterator.h: Rename include guard.
10954 * common/filestuff.h: Rename include guard.
10955 * common/fileio.h: Rename include guard.
10956 * common/environ.h: Rename include guard.
10957 * common/common-utils.h: Rename include guard.
10958 * common/common-types.h: Rename include guard.
10959 * common/common-regcache.h: Rename include guard.
10960 * common/common-inferior.h: Rename include guard.
10961 * common/common-gdbthread.h: Rename include guard.
10962 * common/common-exceptions.h: Rename include guard.
10963 * common/common-defs.h: Rename include guard.
10964 * common/common-debug.h: Rename include guard.
10965 * common/cleanups.h: Rename include guard.
10966 * common/buffer.h: Rename include guard.
10967 * common/btrace-common.h: Rename include guard.
10968 * common/break-common.h: Rename include guard.
10969 * cli/cli-utils.h: Rename include guard.
10970 * cli/cli-style.h: Rename include guard.
10971 * cli/cli-setshow.h: Rename include guard.
10972 * cli/cli-script.h: Rename include guard.
10973 * cli/cli-interp.h: Rename include guard.
10974 * cli/cli-decode.h: Rename include guard.
10975 * cli/cli-cmds.h: Rename include guard.
10976 * charset-list.h: Add include guard.
10977 * buildsym-legacy.h: Rename include guard.
10978 * bfin-tdep.h: Add include guard.
10979 * ax.h: Rename include guard.
10980 * arm-linux-tdep.h: Add include guard.
10981 * arm-fbsd-tdep.h: Add include guard.
10982 * arch/xtensa.h: Rename include guard.
10983 * arch/tic6x.h: Add include guard.
10984 * arch/i386.h: Add include guard.
10985 * arch/arm.h: Rename include guard.
10986 * arch/arm-linux.h: Rename include guard.
10987 * arch/arm-get-next-pcs.h: Rename include guard.
10988 * arch/amd64.h: Add include guard.
10989 * arch/aarch64-insn.h: Rename include guard.
10990 * arch-utils.h: Rename include guard.
10991 * annotate.h: Add include guard.
10992 * amd64-darwin-tdep.h: Rename include guard.
10993 * aarch64-linux-tdep.h: Add include guard.
10994 * aarch64-fbsd-tdep.h: Add include guard.
10995 * aarch32-linux-nat.h: Add include guard.
10997 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10999 * macrotab.c (macro_define_internal): New function that
11000 factorizes macro_define_object_internal and macro_define_function
11002 (macro_define_object_internal): Use macro_define_internal.
11003 (macro_define_function): Likewise.
11005 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11007 * macrocmd.c (extract_identifier): Return
11008 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
11011 2019-02-06 John Baldwin <jhb@FreeBSD.org>
11013 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
11015 2019-02-05 Tom Tromey <tom@tromey.com>
11017 * target.c (target_stack::unpush): Move assertion earlier.
11019 2019-01-30 Tom Tromey <tom@tromey.com>
11022 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
11023 (gdbpy_parse_and_eval): Likewise.
11024 * python/python-internal.h (gdbpy_allow_threads): New class.
11026 2019-01-28 John Baldwin <jhb@FreeBSD.org>
11028 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
11029 (aarch64_fbsd_fpregmap): Move earlier.
11030 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
11031 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
11032 instead of individual calls to trad_frame_set_reg_addr.
11033 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
11035 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
11036 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
11037 instead of individual calls to trad_frame_set_reg_addr.
11039 2019-01-28 Alan Hayward <alan.hayward@arm.com>
11041 * CONTRIBUTE: Replace contribution list with wiki link.
11043 2019-01-25 Tom Tromey <tom@tromey.com>
11045 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
11047 2019-01-25 Tom Tromey <tom@tromey.com>
11049 * xtensa-linux-nat.c: Fix common/ includes.
11050 * xml-support.h: Fix common/ includes.
11051 * xml-support.c: Fix common/ includes.
11052 * x86-linux-nat.c: Fix common/ includes.
11053 * windows-nat.c: Fix common/ includes.
11054 * varobj.h: Fix common/ includes.
11055 * varobj.c: Fix common/ includes.
11056 * value.c: Fix common/ includes.
11057 * valops.c: Fix common/ includes.
11058 * utils.c: Fix common/ includes.
11059 * unittests/xml-utils-selftests.c: Fix common/ includes.
11060 * unittests/utils-selftests.c: Fix common/ includes.
11061 * unittests/unpack-selftests.c: Fix common/ includes.
11062 * unittests/tracepoint-selftests.c: Fix common/ includes.
11063 * unittests/style-selftests.c: Fix common/ includes.
11064 * unittests/string_view-selftests.c: Fix common/ includes.
11065 * unittests/scoped_restore-selftests.c: Fix common/ includes.
11066 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
11067 * unittests/scoped_fd-selftests.c: Fix common/ includes.
11068 * unittests/rsp-low-selftests.c: Fix common/ includes.
11069 * unittests/parse-connection-spec-selftests.c: Fix common/
11071 * unittests/optional-selftests.c: Fix common/ includes.
11072 * unittests/offset-type-selftests.c: Fix common/ includes.
11073 * unittests/observable-selftests.c: Fix common/ includes.
11074 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
11075 * unittests/memrange-selftests.c: Fix common/ includes.
11076 * unittests/memory-map-selftests.c: Fix common/ includes.
11077 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
11078 * unittests/function-view-selftests.c: Fix common/ includes.
11079 * unittests/environ-selftests.c: Fix common/ includes.
11080 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
11081 * unittests/common-utils-selftests.c: Fix common/ includes.
11082 * unittests/cli-utils-selftests.c: Fix common/ includes.
11083 * unittests/array-view-selftests.c: Fix common/ includes.
11084 * ui-file.c: Fix common/ includes.
11085 * tui/tui-io.c: Fix common/ includes.
11086 * tracepoint.h: Fix common/ includes.
11087 * tracepoint.c: Fix common/ includes.
11088 * tracefile-tfile.c: Fix common/ includes.
11089 * top.h: Fix common/ includes.
11090 * top.c: Fix common/ includes.
11091 * thread.c: Fix common/ includes.
11092 * target/waitstatus.h: Fix common/ includes.
11093 * target/waitstatus.c: Fix common/ includes.
11094 * target.h: Fix common/ includes.
11095 * target.c: Fix common/ includes.
11096 * target-memory.c: Fix common/ includes.
11097 * target-descriptions.c: Fix common/ includes.
11098 * symtab.h: Fix common/ includes.
11099 * symfile.c: Fix common/ includes.
11100 * stap-probe.c: Fix common/ includes.
11101 * spu-linux-nat.c: Fix common/ includes.
11102 * sparc-nat.c: Fix common/ includes.
11103 * source.c: Fix common/ includes.
11104 * solib.c: Fix common/ includes.
11105 * solib-target.c: Fix common/ includes.
11106 * ser-unix.c: Fix common/ includes.
11107 * ser-tcp.c: Fix common/ includes.
11108 * ser-pipe.c: Fix common/ includes.
11109 * ser-base.c: Fix common/ includes.
11110 * selftest-arch.c: Fix common/ includes.
11111 * s12z-tdep.c: Fix common/ includes.
11112 * rust-exp.y: Fix common/ includes.
11113 * rs6000-aix-tdep.c: Fix common/ includes.
11114 * riscv-tdep.c: Fix common/ includes.
11115 * remote.c: Fix common/ includes.
11116 * remote-notif.h: Fix common/ includes.
11117 * remote-fileio.h: Fix common/ includes.
11118 * remote-fileio.c: Fix common/ includes.
11119 * regcache.h: Fix common/ includes.
11120 * regcache.c: Fix common/ includes.
11121 * record-btrace.c: Fix common/ includes.
11122 * python/python.c: Fix common/ includes.
11123 * python/py-type.c: Fix common/ includes.
11124 * python/py-inferior.c: Fix common/ includes.
11125 * progspace.h: Fix common/ includes.
11126 * producer.c: Fix common/ includes.
11127 * procfs.c: Fix common/ includes.
11128 * proc-api.c: Fix common/ includes.
11129 * printcmd.c: Fix common/ includes.
11130 * ppc-linux-nat.c: Fix common/ includes.
11131 * parser-defs.h: Fix common/ includes.
11132 * osdata.c: Fix common/ includes.
11133 * obsd-nat.c: Fix common/ includes.
11134 * nat/x86-linux.c: Fix common/ includes.
11135 * nat/x86-linux-dregs.c: Fix common/ includes.
11136 * nat/x86-dregs.h: Fix common/ includes.
11137 * nat/x86-dregs.c: Fix common/ includes.
11138 * nat/ppc-linux.c: Fix common/ includes.
11139 * nat/mips-linux-watch.h: Fix common/ includes.
11140 * nat/mips-linux-watch.c: Fix common/ includes.
11141 * nat/linux-waitpid.c: Fix common/ includes.
11142 * nat/linux-ptrace.h: Fix common/ includes.
11143 * nat/linux-ptrace.c: Fix common/ includes.
11144 * nat/linux-procfs.c: Fix common/ includes.
11145 * nat/linux-personality.c: Fix common/ includes.
11146 * nat/linux-osdata.c: Fix common/ includes.
11147 * nat/linux-namespaces.c: Fix common/ includes.
11148 * nat/linux-btrace.h: Fix common/ includes.
11149 * nat/linux-btrace.c: Fix common/ includes.
11150 * nat/fork-inferior.c: Fix common/ includes.
11151 * nat/amd64-linux-siginfo.c: Fix common/ includes.
11152 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
11153 * nat/aarch64-linux.c: Fix common/ includes.
11154 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
11155 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
11156 * namespace.h: Fix common/ includes.
11157 * mips-linux-tdep.c: Fix common/ includes.
11158 * minsyms.c: Fix common/ includes.
11159 * mi/mi-parse.h: Fix common/ includes.
11160 * mi/mi-main.c: Fix common/ includes.
11161 * mi/mi-cmd-env.c: Fix common/ includes.
11162 * memrange.h: Fix common/ includes.
11163 * memattr.c: Fix common/ includes.
11164 * maint.h: Fix common/ includes.
11165 * maint.c: Fix common/ includes.
11166 * main.c: Fix common/ includes.
11167 * machoread.c: Fix common/ includes.
11168 * location.c: Fix common/ includes.
11169 * linux-thread-db.c: Fix common/ includes.
11170 * linux-nat.c: Fix common/ includes.
11171 * linux-fork.c: Fix common/ includes.
11172 * inline-frame.c: Fix common/ includes.
11173 * infrun.c: Fix common/ includes.
11174 * inflow.c: Fix common/ includes.
11175 * inferior.h: Fix common/ includes.
11176 * inferior.c: Fix common/ includes.
11177 * infcmd.c: Fix common/ includes.
11178 * inf-ptrace.c: Fix common/ includes.
11179 * inf-child.c: Fix common/ includes.
11180 * ia64-linux-nat.c: Fix common/ includes.
11181 * i387-tdep.c: Fix common/ includes.
11182 * i386-tdep.c: Fix common/ includes.
11183 * i386-linux-tdep.c: Fix common/ includes.
11184 * i386-linux-nat.c: Fix common/ includes.
11185 * i386-go32-tdep.c: Fix common/ includes.
11186 * i386-fbsd-tdep.c: Fix common/ includes.
11187 * i386-fbsd-nat.c: Fix common/ includes.
11188 * guile/scm-type.c: Fix common/ includes.
11189 * guile/guile.c: Fix common/ includes.
11190 * go32-nat.c: Fix common/ includes.
11191 * gnu-nat.c: Fix common/ includes.
11192 * gdbthread.h: Fix common/ includes.
11193 * gdbarch-selftests.c: Fix common/ includes.
11194 * gdb_usleep.c: Fix common/ includes.
11195 * gdb_select.h: Fix common/ includes.
11196 * gdb_bfd.c: Fix common/ includes.
11197 * gcore.c: Fix common/ includes.
11198 * fork-child.c: Fix common/ includes.
11199 * findvar.c: Fix common/ includes.
11200 * fbsd-nat.c: Fix common/ includes.
11201 * event-top.c: Fix common/ includes.
11202 * event-loop.c: Fix common/ includes.
11203 * dwarf2read.c: Fix common/ includes.
11204 * dwarf2loc.c: Fix common/ includes.
11205 * dwarf2-frame.c: Fix common/ includes.
11206 * dwarf-index-cache.c: Fix common/ includes.
11207 * dtrace-probe.c: Fix common/ includes.
11208 * disasm-selftests.c: Fix common/ includes.
11209 * defs.h: Fix common/ includes.
11210 * csky-tdep.c: Fix common/ includes.
11211 * cp-valprint.c: Fix common/ includes.
11212 * cp-support.h: Fix common/ includes.
11213 * cp-support.c: Fix common/ includes.
11214 * corelow.c: Fix common/ includes.
11215 * completer.h: Fix common/ includes.
11216 * completer.c: Fix common/ includes.
11217 * compile/compile.c: Fix common/ includes.
11218 * compile/compile-loc2c.c: Fix common/ includes.
11219 * compile/compile-cplus-types.c: Fix common/ includes.
11220 * compile/compile-cplus-symbols.c: Fix common/ includes.
11221 * command.h: Fix common/ includes.
11222 * cli/cli-dump.c: Fix common/ includes.
11223 * cli/cli-cmds.c: Fix common/ includes.
11224 * charset.c: Fix common/ includes.
11225 * build-id.c: Fix common/ includes.
11226 * btrace.h: Fix common/ includes.
11227 * btrace.c: Fix common/ includes.
11228 * breakpoint.h: Fix common/ includes.
11229 * breakpoint.c: Fix common/ includes.
11231 (enum agent_op): Fix common/ includes.
11232 * ax-general.c (struct aop_map): Fix common/ includes.
11233 * ax-gdb.c: Fix common/ includes.
11234 * auxv.c: Fix common/ includes.
11235 * auto-load.c: Fix common/ includes.
11236 * arm-tdep.c: Fix common/ includes.
11237 * arch/riscv.c: Fix common/ includes.
11238 * arch/ppc-linux-common.c: Fix common/ includes.
11239 * arch/i386.c: Fix common/ includes.
11240 * arch/arm.c: Fix common/ includes.
11241 * arch/arm-linux.c: Fix common/ includes.
11242 * arch/arm-get-next-pcs.c: Fix common/ includes.
11243 * arch/amd64.c: Fix common/ includes.
11244 * arch/aarch64.c: Fix common/ includes.
11245 * arch/aarch64-insn.c: Fix common/ includes.
11246 * arch-utils.c: Fix common/ includes.
11247 * amd64-windows-tdep.c: Fix common/ includes.
11248 * amd64-tdep.c: Fix common/ includes.
11249 * amd64-sol2-tdep.c: Fix common/ includes.
11250 * amd64-obsd-tdep.c: Fix common/ includes.
11251 * amd64-nbsd-tdep.c: Fix common/ includes.
11252 * amd64-linux-tdep.c: Fix common/ includes.
11253 * amd64-linux-nat.c: Fix common/ includes.
11254 * amd64-fbsd-tdep.c: Fix common/ includes.
11255 * amd64-fbsd-nat.c: Fix common/ includes.
11256 * amd64-dicos-tdep.c: Fix common/ includes.
11257 * amd64-darwin-tdep.c: Fix common/ includes.
11258 * agent.c: Fix common/ includes.
11259 * ada-lang.h: Fix common/ includes.
11260 * ada-lang.c: Fix common/ includes.
11261 * aarch64-tdep.c: Fix common/ includes.
11263 2019-01-25 Tom Tromey <tom@tromey.com>
11265 * common/create-version.sh: Use common/version.h.
11267 2019-01-24 Pedro Alves <palves@redhat.com>
11269 * infrun.c (signal_stop, signal_print, signal_program)
11270 (signal_catch, signal_pass): Now arrays instead of pointers.
11271 (update_signals_program_target, do_target_resume)
11272 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
11273 * linux-nat.c (linux_nat_target::pass_signals)
11274 (linux_nat_target::create_inferior, linux_nat_target::attach):
11276 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
11277 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
11278 * procfs.c (procfs_target::pass_signals): Adjust.
11279 * record-full.c (record_full_target::resume): Adjust.
11280 * remote.c (remote_target::pass_signals)
11281 (remote_target::program_signals): Adjust.
11282 * target-debug.h (target_debug_print_signals): Now takes a
11283 gdb::array_view as parameter. Adjust.
11284 * target.h (target_ops) <pass_signals, program_signals>: Replace
11285 pointer and length parameters with gdb::array_view.
11286 (target_pass_signals, target_program_signals): Likewise.
11287 * target-delegates.c: Regenerate.
11289 2019-01-24 Pedro Alves <palves@redhat.com>
11291 * common/forward-scope-exit.h
11292 (forward_scope_exit::forward_scope_exit): Pass arguments to
11293 m_bind_function directly, instead of creating a std::bind and
11296 2019-01-24 Alan Hayward <alan.hayward@arm.com>
11298 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
11299 for static members.
11300 (pass_in_v_vfp_candidate): Likewise.
11302 2019-01-23 Tom Tromey <tom@tromey.com>
11303 Pedro Alves <palves@redhat.com>
11305 * regcache.c (class regcache_invalidator): Remove.
11306 (regcache::raw_write): Use make_scope_exit.
11308 2019-01-23 Tom Tromey <tom@tromey.com>
11310 * ui-out.h (class ui_out_emit_type): Update comment.
11312 2019-01-23 Tom Tromey <tom@tromey.com>
11314 * infrun.c (fetch_inferior_event): Update comment.
11316 2019-01-23 Tom Tromey <tom@tromey.com>
11317 Pedro Alves <palves@redhat.com>
11319 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
11321 (fetch_inferior_event): Use SCOPE_EXIT.
11324 2019-01-23 Tom Tromey <tom@tromey.com>
11325 Pedro Alves <palves@redhat.com>
11327 * infrun.c (disable_thread_events): Delete.
11328 (stop_all_threads): Use SCOPE_EXIT.
11330 2019-01-23 Tom Tromey <tom@tromey.com>
11331 Pedro Alves <palves@redhat.com>
11333 * symfile.c: Include forward-scope-exit.h.
11334 (clear_symtab_users_cleanup): Replace forward declaration with
11335 a FORWARD_SCOPE_EXIT.
11336 (syms_from_objfile_1): Use the forward_scope_exit and
11337 gdb::optional instead of cleanup_function.
11338 (reread_symbols): Use the forward_scope_exit instead of
11340 (clear_symtab_users_cleanup): Remove function.
11342 2019-01-23 Tom Tromey <tom@tromey.com>
11343 Pedro Alves <palves@redhat.com>
11345 * linux-nat.c: Include scope-exit.h.
11346 (cleanup_target_stop): Remove.
11347 (linux_nat_target::static_tracepoint_markers_by_strid): Use
11350 2019-01-23 Tom Tromey <tom@tromey.com>
11351 Pedro Alves <palves@redhat.com>
11353 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
11354 (call_function_by_hand_dummy): Use SCOPE_EXIT.
11356 2019-01-23 Tom Tromey <tom@tromey.com>
11357 Andrew Burgess <andrew.burgess@embecosm.com>
11358 Pedro Alves <palves@redhat.com>
11360 * infrun.c (fetch_inferior_event): Use scope_exit.
11361 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
11362 * top.c (execute_command): Use scope_exit.
11363 * breakpoint.c (bpstat_do_actions): Use scope_exit.
11364 * utils.c (do_bpstat_clear_actions_cleanup)
11365 (make_bpstat_clear_actions_cleanup): Remove.
11367 2019-01-23 Tom Tromey <tom@tromey.com>
11368 Pedro Alves <palves@redhat.com>
11370 * infrun.c: Include "common/scope-exit.h"
11371 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
11372 (wait_for_inferior): Use SCOPE_EXIT.
11373 (fetch_inferior_event): Use scope_exit.
11375 2019-01-23 Tom Tromey <tom@tromey.com>
11376 Pedro Alves <palves@redhat.com>
11378 * breakpoint.c (create_breakpoint): Remove cleanup.
11380 2019-01-23 Tom Tromey <tom@tromey.com>
11381 Andrew Burgess <andrew.burgess@embecosm.com>
11382 Pedro Alves <palves@redhat.com>
11384 2019-01-23 Pedro Alves <palves@redhat.com>
11386 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
11388 2019-01-23 Pedro Alves <palves@redhat.com>
11389 Andrew Burgess <andrew.burgess@embecosm.com>
11391 * gdbthread.h: Include "common/forward-scope-exit.h".
11392 (scoped_finish_thread_state): Redefine custom class in terms of
11393 forward_scope_exit.
11395 2019-01-23 Pedro Alves <palves@redhat.com>
11396 Andrew Burgess <andrew.burgess@embecosm.com>
11398 * common/forward-scope-exit.h: New file.
11400 2019-01-23 Pedro Alves <palves@redhat.com>
11401 Andrew Burgess <andrew.burgess@embecosm.com>
11402 Tom Tromey <tom@tromey.com>
11404 * common/scope-exit.h: New file.
11406 2019-01-23 Pedro Alves <palves@redhat.com>
11408 * common/preprocessor.h (ESC): Rename to ...
11409 (ESC_PARENS): ... this.
11410 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
11411 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
11413 2019-01-23 Tom Tromey <tom@tromey.com>
11415 * language.h (class scoped_switch_to_sym_language_if_auto):
11416 Initialize m_lang in both cases.
11418 2019-01-23 Alan Hayward <alan.hayward@arm.com>
11420 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
11423 2019-01-22 Tom Tromey <tom@tromey.com>
11425 * corelow.c: Do not include sys/file.h.
11427 2019-01-22 Tom Tromey <tom@tromey.com>
11429 * tui/tui-wingeneral.h: Include gdb_curses.h.
11431 2019-01-22 Tom Tromey <tom@tromey.com>
11433 * source-cache.h (class source_cache) <get_source_lines,
11434 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
11436 2019-01-22 Tom Tromey <tom@tromey.com>
11438 * remote-fileio.h (struct remote_target): Declare.
11440 2019-01-22 Tom Tromey <tom@tromey.com>
11442 * python/py-arch.c: Do not include py-ref.h.
11443 * python/py-bpevent.c: Do not include py-ref.h.
11444 * python/py-cmd.c: Do not include py-ref.h.
11445 * python/py-continueevent.c: Do not include py-ref.h.
11446 * python/py-event.h: Do not include py-ref.h.
11447 * python/py-evtregistry.c: Do not include py-ref.h.
11448 * python/py-finishbreakpoint.c: Do not include py-ref.h.
11449 * python/py-frame.c: Do not include py-ref.h.
11450 * python/py-framefilter.c: Do not include py-ref.h.
11451 * python/py-function.c: Do not include py-ref.h.
11452 * python/py-infevents.c: Do not include py-ref.h.
11453 * python/py-linetable.c: Do not include py-ref.h.
11454 * python/py-objfile.c: Do not include py-ref.h.
11455 * python/py-param.c: Do not include py-ref.h.
11456 * python/py-prettyprint.c: Do not include py-ref.h.
11457 * python/py-progspace.c: Do not include py-ref.h.
11458 * python/py-symbol.c: Do not include py-ref.h.
11459 * python/py-symtab.c: Do not include py-ref.h.
11460 * python/py-type.c: Do not include py-ref.h.
11461 * python/py-unwind.c: Do not include py-ref.h.
11462 * python/py-utils.c: Do not include py-ref.h.
11463 * python/py-value.c: Do not include py-ref.h.
11464 * python/py-varobj.c: Do not include py-ref.h.
11465 * python/py-xmethods.c: Do not include py-ref.h.
11466 * python/python.c: Do not include py-ref.h.
11467 * varobj.c: Do not include py-ref.h.
11469 2019-01-22 Tom Tromey <tom@tromey.com>
11471 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
11472 keyword for bcache.
11474 2019-01-22 Tom Tromey <tom@tromey.com>
11476 * compile/compile-cplus-types.c: Remove a comment by #include.
11478 2019-01-22 Tom Tromey <tom@tromey.com>
11480 * compile/gcc-c-plugin.h: Include compile-internal.h.
11482 2019-01-22 Tom Tromey <tom@tromey.com>
11484 * stabsread.c (EXTERN): Do not define.
11485 (symnum, next_symbol_text_func, processing_gcc_compilation)
11486 (within_function, global_sym_chain, global_stabs)
11487 (previous_stab_code, this_object_header_files)
11488 (n_this_object_header_files)
11489 (n_allocated_this_object_header_files): Define.
11490 * stabsread.h (EXTERN): Never define. Use "extern".
11492 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11494 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
11497 2019-01-21 Tom Tromey <tom@tromey.com>
11499 * ui-out.c: Fix includes.
11500 * tui/tui-source.c: Fix includes.
11501 * target.c: Fix includes.
11502 * remote.c: Fix includes.
11503 * regcache.c: Fix includes.
11504 * python/py-block.c: Fix includes.
11505 * printcmd.c: Fix includes.
11506 * or1k-tdep.c: Fix includes.
11507 * mi/mi-main.c: Fix includes.
11508 * m32r-tdep.c: Fix includes.
11509 * csky-tdep.c: Fix includes.
11510 * compile/compile-cplus-types.c: Fix includes.
11511 * cli/cli-interp.c: Fix includes.
11513 2019-01-21 Alan Hayward <alan.hayward@arm.com>
11515 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
11518 2019-01-16 Tom Tromey <tom@tromey.com>
11520 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
11522 (struct objfile) <msymbols_range>: Move from top level.
11523 <msymbols>: New method.
11524 (class objfile_msymbols): Remove.
11525 * symtab.c (default_collect_symbol_completion_matches_break_on):
11527 * symmisc.c (dump_msymbols): Update.
11528 * stabsread.c (scan_file_globals): Update.
11529 * objc-lang.c (info_selectors_command, info_classes_command)
11530 (find_methods): Update.
11531 * minsyms.c (find_solib_trampoline_target): Update.
11532 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
11533 * coffread.c (coff_symfile_read): Update.
11534 * ada-lang.c (ada_lookup_simple_minsym)
11535 (ada_collect_symbol_completion_matches): Update.
11537 2019-01-16 Tom Tromey <tom@tromey.com>
11539 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
11540 type. Remove no-argument constructor.
11541 <iterator::operator++>: Simplify.
11543 <end>: Use minimal_symbol_count.
11545 2019-01-16 Tom Tromey <tom@tromey.com>
11547 * objfiles.h (struct objfile) <psymtabs>: New method.
11548 (class objfile_psymtabs): Remove.
11549 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
11551 <range>: New method.
11552 (require_partial_symbols): Change return type.
11553 * psymtab.c (require_partial_symbols)
11554 (psym_expand_symtabs_matching): Update.
11555 * mdebugread.c (parse_partial_symbols): Update.
11556 * dbxread.c (dbx_end_psymtab): Update.
11558 2019-01-15 Tom Tromey <tom@tromey.com>
11560 * symtab.c (lookup_objfile_from_block)
11561 (lookup_symbol_in_objfile_symtabs)
11562 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
11563 (find_line_symtab, info_sources_command)
11564 (default_collect_symbol_completion_matches_break_on)
11565 (make_source_files_completion_list): Update.
11566 * symmisc.c (print_objfile_statistics, dump_objfile)
11567 (maintenance_print_symbols, maintenance_info_symtabs)
11568 (maintenance_check_symtabs, maintenance_info_line_tables):
11570 * source.c (select_source_symtab)
11571 (forget_cached_source_info_for_objfile): Update.
11572 * objfiles.h (class objfile_compunits): Remove.
11573 (struct objfile) <compunits_range>: New typedef.
11574 (compunits): New method.
11575 * objfiles.c (objfile_relocate1): Update.
11576 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11577 * maint.c (count_symtabs_and_blocks): Update.
11578 * linespec.c (iterate_over_all_matching_symtabs): Update.
11579 * cp-support.c (add_symbol_overload_list_qualified): Update.
11580 * coffread.c (coff_symtab_read): Update.
11581 * ada-lang.c (add_nonlocal_symbols)
11582 (ada_collect_symbol_completion_matches)
11583 (ada_add_global_exceptions): Update.
11585 2019-01-15 Tom Tromey <tom@tromey.com>
11587 * progspace.h (program_space) <objfiles_safe_range>: New
11589 <objfiles_safe>: New method.
11590 * objfiles.h (class all_objfiles_safe): Remove.
11591 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
11592 * jit.c (jit_inferior_exit_hook): Update.
11594 2019-01-17 Tom Tromey <tom@tromey.com>
11596 * progspace.h (program_space) <objfiles_range>: New typedef.
11597 <objfiles>: New method.
11598 <objfiles_head>: Rename from objfiles.
11599 (object_files): Update.
11600 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
11601 * guile/scm-pretty-print.c
11602 (ppscm_find_pretty_printer_from_objfiles): Update.
11603 * guile/scm-objfile.c (gdbscm_objfiles): Update.
11604 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
11606 * python/py-progspace.c (pspy_get_objfiles): Update.
11607 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
11609 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
11610 (objfpy_lookup_objfile_by_build_id): Update.
11611 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11612 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
11614 * symtab.c (iterate_over_symtabs, matching_obj_sections)
11615 (expand_symtab_containing_pc, lookup_objfile_from_block)
11616 (lookup_static_symbol, basic_lookup_transparent_type)
11617 (find_pc_sect_compunit_symtab, find_symbol_at_address)
11618 (find_line_symtab, info_sources_command)
11619 (default_collect_symbol_completion_matches_break_on)
11620 (make_source_files_completion_list, find_main_name): Update.
11621 * symmisc.c (print_symbol_bcache_statistics)
11622 (print_objfile_statistics, maintenance_print_symbols)
11623 (maintenance_print_msymbols, maintenance_print_objfiles)
11624 (maintenance_info_symtabs, maintenance_check_symtabs)
11625 (maintenance_expand_symtabs, maintenance_info_line_tables):
11627 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
11628 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
11629 (map_overlay_command, unmap_overlay_command)
11630 (simple_overlay_update, expand_symtabs_matching)
11631 (map_symbol_filenames): Update.
11632 * symfile-debug.c (set_debug_symfile): Update.
11633 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
11635 * source.c (select_source_symtab, forget_cached_source_info):
11637 * solib.c (solib_read_symbols): Update.
11638 * solib-spu.c (append_ocl_sos): Update.
11639 * psymtab.c (maintenance_print_psymbols)
11640 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
11641 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
11642 * printcmd.c (info_symbol_command): Update.
11643 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
11645 * objfiles.h (class all_objfiles): Remove.
11646 * objfiles.c (have_partial_symbols, have_full_symbols)
11647 (have_minimal_symbols, qsort_cmp, update_section_map)
11648 (shared_objfile_contains_address_p)
11649 (default_iterate_over_objfiles_in_search_order): Update.
11650 * objc-lang.c (info_selectors_command, info_classes_command)
11651 (find_methods): Update.
11652 * minsyms.c (find_solib_trampoline_target): Update.
11653 * maint.c (maintenance_info_sections)
11654 (maintenance_translate_address, count_symtabs_and_blocks):
11656 * main.c (captured_main_1): Update.
11657 * linux-thread-db.c (try_thread_db_load_from_pdir)
11658 (has_libpthread): Update.
11659 * linespec.c (iterate_over_all_matching_symtabs)
11660 (search_minsyms_for_name): Update.
11661 * jit.c (jit_find_objf_with_entry_addr): Update.
11662 * hppa-tdep.c (find_unwind_entry)
11663 (hppa_lookup_stub_minimal_symbol): Update.
11664 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
11666 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
11667 (elf_gnu_ifunc_resolve_by_got): Update.
11668 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
11669 * dwarf-index-write.c (save_gdb_index_command): Update.
11670 * cp-support.c (add_symbol_overload_list_qualified): Update.
11671 * breakpoint.c (create_overlay_event_breakpoint)
11672 (create_longjmp_master_breakpoint)
11673 (create_std_terminate_master_breakpoint)
11674 (create_exception_master_breakpoint): Update.
11675 * blockframe.c (find_pc_partial_function): Update.
11676 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
11677 (ada_collect_symbol_completion_matches)
11678 (ada_add_global_exceptions): Update.
11680 2019-01-17 Tom Tromey <tom@tromey.com>
11682 * solib-target.c (lm_info_target_p): Remove typedef. Don't
11684 (solib_target_parse_libraries): Change return type.
11685 (library_list_start_segment, library_list_start_section)
11686 (library_list_end_library, library_list_start_library); Update.
11687 (solib_target_free_library_list): Remove.
11688 (solib_target_parse_libraries): Remove cleanup. Change return
11690 (solib_target_current_sos): Update.
11692 2019-01-17 Tom Tromey <tromey@bapiya>
11694 * valprint.c: Replace "the the" with "the".
11695 * symtab.c: Replace "the the" with "the".
11696 * solib.c: Replace "the the" with "the".
11697 * solib-dsbt.c: Replace "the the" with "the".
11698 * linespec.c: Replace "the the" with "the".
11699 * dwarf2loc.h: Replace "the the" with "the".
11700 * amd64-windows-tdep.c: Replace "the the" with "the".
11701 * aarch64-tdep.c: Replace "the the" with "the".
11703 2019-01-16 Keith Seitz <keiths@redhat.com>
11706 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
11707 <builder>: Rename to ..
11708 <m_builder>: ... this and make private.
11709 (dwarf2_cu::get_builder): New method. Change all users of
11710 `builder' to use this method.
11711 (dwarf2_start_symtab): Move to ...
11712 (dwarf2_cu::start_symtab): ... here. Update all callers
11713 (setup_type_unit_groups): Move to ...
11714 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
11716 (dwarf2_cu::reset_builder): New method.
11717 (process_full_compunit, process_full_type_unit): Use
11718 dwarf2_cu::reset_builder.
11719 (follow_die_offset): Record the ancestor CU if it is different
11720 from the followed DIE's CU.
11721 (follow_die_sig_1): Likewise.
11723 2019-01-15 Tom Tromey <tom@tromey.com>
11725 * remote.c (class remote_state) <buf>: Now a char_vector.
11726 <buf_size>: Remove.
11727 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
11729 (remote_target::getpkt_or_notif_sane_1)
11730 (remote_target::getpkt_sane)
11731 (remote_target::getpkt_or_notif_sane): Likewise.
11732 (class remote_target) <putpkt>: New overload.
11733 (remote_target::read_frame): Change type of "buf_p". Remove
11734 sizeof_p parameter.
11735 (packet_ok): New overload.
11736 (packet_check_result): New overload.
11739 2019-01-14 Tom Tromey <tom@tromey.com>
11741 * remote-notif.c (handle_notification, remote_notif_ack)
11742 (remote_notif_parse): Make "buf" const.
11743 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
11745 (remote_notif_parse, remote_notif_ack, handle_notification):
11747 * remote.c (remote_notif_stop_parse): Make "buf" const.
11748 (remote_target::remote_parse_stop_reply): Make "buf" const.
11749 (remote_notif_stop_ack): Make "buf" const.
11751 2019-01-14 Tom Tromey <tom@tromey.com>
11753 * remote.c (remote_console_output): Make parameter const.
11755 2019-01-14 Tom Tromey <tom@tromey.com>
11757 * target-debug.h (target_debug_print_signals): Constify.
11758 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
11759 * procfs.c (procfs_target::pass_signals): Update.
11760 * linux-nat.c (linux_nat_target::pass_signals): Update.
11761 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
11762 * target-delegates.c: Rebuild.
11763 * remote.c (remote_target::program_signals): Update.
11764 (remote_target::pass_signals): Update.
11765 * target.c (target_pass_signals): Constify argument.
11766 (target_program_signals): Likewise.
11767 * target.h (struct target_ops) <pass_signals, program_signals>:
11769 (target_pass_signals, target_program_signals): Constify argument.
11771 2019-01-14 Tom Tromey <tom@tromey.com>
11774 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
11776 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11778 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
11780 * rs6000-tdep.c: Include reggroups.h.
11781 (IS_V_ALIAS_PSEUDOREG): Define.
11782 (rs6000_register_name): Return names for the "vX" aliases.
11783 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
11784 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
11785 aliases. Call default_register_reggroup_p for all other
11787 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
11789 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
11790 Handle "vX" aliases.
11791 (v_alias_pseudo_register_collect): New function.
11792 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
11793 (rs6000_gdbarch_init): Initialize "vX" aliases as
11794 pseudo-registers. Restore registration of
11795 rs6000_pseudo_register_reggroup_p with
11796 set_tdesc_pseudo_register_reggroup_p.
11798 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
11800 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
11801 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
11802 set_gdbarch_num_pseudo_regs.
11804 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11806 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
11807 Remove arg prefixname, add do_set and do_show.
11808 Add member functions set_list and show_list.
11809 * cli/cli-style.c (class cli_style_option): Update accordingly.
11810 (style_set_list): Move to file scope.
11811 (style_show_list): Likewise.
11812 (set_style): Call help_list.
11813 (show_style): Call cmd_show_list.
11814 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
11815 Update to use the new macro.
11817 2019-10-12 Joel Brobecker <brobecker@adacore.com>
11819 * ada-lang.c (_initialize_ada_language): Expand the help text
11820 for the "catch exception" command.
11822 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11824 * symtab.c (matching_obj_sections): Initialize obj,
11825 declare it closer to its usage.
11827 2019-01-10 Tom Tromey <tom@tromey.com>
11829 * thread-iter.h (inf_threads_iterator): Use next_iterator.
11830 (basic_inf_threads_range): Remove.
11831 (inf_threads_range, inf_non_exited_threads_range)
11832 (safe_inf_threads_range): Use next_adapter.
11834 2019-01-10 Keith Seitz <keiths@redhat.com>
11838 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
11839 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
11841 2019-01-10 Keith Seitz <keiths@redhat.com>
11845 * dictionary.c (pending_to_vector): Remove.
11846 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
11847 Remove _1 suffix, replacing functions of the same name. Update
11849 (dict_create_hashed, dict_create_hashed_expandable)
11850 (dict_create_linear, dict_create_linear_expandable, dict_free)
11851 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
11852 Make functions static.
11854 2019-01-10 Keith Seitz <keiths@redhat.com>
11858 * dictionary.h (struct dictionary): Replace declaration with
11860 (dict_create_hashed, dict_create_hashed_expandable)
11861 (dict_create_linear, dict_create_linear_expandable)
11862 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
11863 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
11864 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
11865 taking multidictionary argument.
11866 [ALL_DICT_SYMBOLS]: Update for multidictionary.
11867 * block.h (struct block) <dict>: Change to multidictionary
11868 and rename `multidict'.
11869 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
11870 symmisc.c: Update all dictionary references to multidictionary.
11872 2019-01-10 Keith Seitz <keiths@redhat.com>
11876 * dictionary.c: Include unordered_map.
11877 (pending_to_vector): New function.
11878 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
11879 Rewrite the non-"_1" functions to take vector instead
11881 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
11882 "new" _1 versions of the same name.
11883 (multidictionary): Define.
11884 (std::hash<enum language): New definition.
11885 (collate_pending_symbols_by_language, mdict_create_hashed)
11886 (mdict_create_hashed_expandable, mdict_create_linear)
11887 (mdict_create_linear_expandable, mdict_free)
11888 (find_language_dictionary, create_new_language_dictionary)
11889 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
11890 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
11891 (mdict_size, mdict_empty): New functions.
11892 * dictionary.h (mdict_iterator): Define.
11894 2019-01-10 Pedro Alves <palves@redhat.com>
11896 * breakpoint.c (read_uploaded_action)
11897 (create_tracepoint_from_upload): Adjust to use
11898 gdb::unique_xmalloc_ptr.
11899 * ctf.c (ctf_write_uploaded_tp):
11900 (SET_ARRAY_FIELD): Use emplace_back.
11901 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
11902 * tracefile-tfile.c (tfile_write_uploaded_tp):
11903 * tracepoint.c (parse_tracepoint_definition): Adjust to use
11904 gdb::unique_xmalloc_ptr.
11905 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
11906 at_string, cond_string, cmd_strings>: Replace char pointers
11907 with gdb::unique_xmalloc_ptr.
11909 2019-01-10 Pedro Alves <palves@redhat.com>
11911 * solib-target.c (library_list_start_library): Don't xstrdup name.
11913 2019-01-10 Pedro Alves <palves@redhat.com>
11915 * mdebugread.c (parse_partial_symbols): Use
11916 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
11918 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
11920 * linux-fork.c (scoped_switch_fork_info)
11921 <~scoped_switch_fork_info>: Fix incorrect variable name.
11923 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
11925 * linux-fork.c (scoped_switch_fork_info)
11926 <scoped_switch_fork_info>: Make explicit.
11927 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
11929 2019-01-10 Tom Tromey <tom@tromey.com>
11931 * objfiles.h (objfile::reset_psymtabs): Update.
11932 * objfiles.c (objfile::objfile): Update.
11933 * psymtab.h (psymtab_storage::obstack): Update.
11934 (psymtab_storage::m_obstack): Use gdb::optional.
11935 (class psymtab_storage): Update comment. Remove objfile
11937 * psymtab.c (psymtab_storage::psymtab_storage): Update.
11939 2019-01-10 Tom Tromey <tom@tromey.com>
11941 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
11942 <free_psymtabs>: Now private.
11943 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
11944 (allocate_psymtab): Use new method.
11946 2019-01-10 Tom Tromey <tom@tromey.com>
11948 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
11949 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
11950 * mdebugread.c (parse_partial_symbols): Use
11951 allocate_dependencies.
11952 * dwarf2read.c (dwarf2_create_include_psymtab): Use
11953 allocate_dependencies.
11954 (process_psymtab_comp_unit_reader)
11955 (build_type_psymtab_dependencies): Likewise.
11956 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
11958 2019-01-10 Tom Tromey <tom@tromey.com>
11960 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
11961 PSYMBOL_SET_LANGUAGE.
11962 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
11964 2019-01-10 Tom Tromey <tom@tromey.com>
11966 * psymtab.h (psymtab_storage::obstack): New method.
11967 <m_obstack>: Rename from obstack; now private.
11968 * psymtab.c (psymtab_storage): Update.
11969 * dwarf2read.c (create_addrmap_from_index)
11970 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
11973 2019-01-10 Tom Tromey <tom@tromey.com>
11975 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
11976 * objfiles.h (objfile::reset_psymtabs): New method.
11978 2019-01-10 Tom Tromey <tom@tromey.com>
11980 * symmisc.c (print_symbol_bcache_statistics): Update.
11981 (print_objfile_statistics): Update.
11982 * symfile.c (reread_symbols): Update.
11983 * psymtab.h (class psymtab_storage): New.
11984 * psymtab.c (psymtab_storage): New constructor.
11985 (~psymtab_storage): New destructor.
11986 (require_partial_symbols): Update.
11987 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
11988 (find_pc_sect_psymtab, find_pc_sect_psymbol)
11989 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
11990 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
11991 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
11992 (start_psymtab_common, end_psymtab_common)
11993 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
11994 (allocate_psymtab): Update.
11995 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
11997 (dump_psymtab_addrmap, maintenance_print_psymbols)
11998 (maintenance_check_psymtabs): Update.
11999 (class objfile_psymtabs): Move to objfiles.h.
12000 * psympriv.h (discard_psymtab): Now inline.
12001 (psymtab_discarder::psymtab_discarder): Update.
12002 (psymtab_discarder::~psymtab_discarder): Update.
12003 (ALL_OBJFILE_PSYMTABS): Rewrite.
12004 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
12005 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
12007 <partial_symtabs>: New field.
12008 (class objfile_psymtabs): Move from psymtab.h. Update.
12009 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
12011 (objfile::~objfile): Don't destroy psymbol_cache.
12012 * mdebugread.c (parse_partial_symbols): Update.
12013 * dwarf2read.c (create_addrmap_from_index)
12014 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12015 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
12016 (add_partial_subprogram, dwarf2_ranges_read): Update.
12017 * dwarf-index-write.c (write_address_map)
12018 (write_one_signatured_type, recursively_write_psymbols)
12019 (class debug_names, class debug_names, write_psymtabs_to_index):
12022 2019-01-10 Tom Tromey <tom@tromey.com>
12024 * symtab.h (SYMBOL_SET_NAMES): Update.
12025 (symbol_set_names): Update.
12026 (MSYMBOL_SET_NAMES): Update.
12027 * symtab.c (symbol_set_names): Change argument to be an
12028 objfile_per_bfd_storage.
12029 * psymtab.c (add_psymbol_to_bcache): Update.
12030 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
12032 2019-01-10 Tom Tromey <tom@tromey.com>
12034 * symtab.c (create_demangled_names_hash): Change argument to be an
12035 objfile_per_bfd_storage.
12036 (symbol_set_names): Update.
12038 2019-01-10 Tom Tromey <tom@tromey.com>
12040 * xcoffread.c (xcoff_initial_scan): Unconditionally call
12042 * psymtab.c (init_psymbol_list): Do nothing if already called.
12043 * psympriv.h (init_psymbol_list): Add comment.
12044 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
12046 * dbxread.c (dbx_symfile_read): Unconditionally call
12049 2019-01-10 Tom Tromey <tom@tromey.com>
12051 * xcoffread.c (scan_xcoff_symtab): Update.
12052 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
12054 * mdebugread.c (parse_partial_symbols)
12055 (handle_psymbol_enumerators): Update.
12056 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
12057 * dbxread.c (read_dbx_symtab): Update.
12058 * psympriv.h (psymbol_placement): New enum.
12059 (add_psymbol_to_list): Update.
12061 2019-01-10 Tom Tromey <tom@tromey.com>
12063 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
12064 static_psymbols parameters.
12065 (scan_xcoff_symtab): Update.
12066 * psymtab.c (start_psymtab_common): Remove global_psymbols and
12067 static_psymbols parameters.
12068 * psympriv.h (start_psymtab_common): Update.
12069 * mdebugread.c (parse_partial_symbols): Update.
12070 * dwarf2read.c (create_partial_symtab): Update.
12071 * dbxread.c (read_dbx_symtab): Update.
12072 (start_psymtab): Remove global_psymbols and static_psymbols
12075 2019-01-10 Tom Tromey <tom@tromey.com>
12077 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
12078 * psymtab.c (allocate_psymtab): Add comment.
12079 * psympriv.h (allocate_psymtab): Add comment.
12080 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
12082 * dbxread.c (dbx_end_psymtab): Remove some initializations.
12084 2019-01-10 Tom Tromey <tom@tromey.com>
12086 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12088 * mipsread.c: Include mdebugread.h.
12089 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12091 * elfread.c: Include mdebugread.h.
12093 2019-01-09 Tom Tromey <tom@tromey.com>
12095 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
12096 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
12097 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
12098 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
12099 (psym_lookup_symbol, psym_find_last_source_symtab)
12100 (psym_forget_cached_source_info, psym_print_stats)
12101 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
12102 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
12103 (psym_map_matching_symbols, psym_expand_symtabs_matching)
12104 (psym_find_compunit_symtab_by_address)
12105 (maintenance_print_psymbols, maintenance_info_psymtabs)
12106 (maintenance_check_psymtabs): Use ranged for.
12107 * psymtab.h (class objfile_psymtabs): New.
12108 (require_partial_symbols): Return objfile_psymtabs.
12109 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
12111 2019-01-09 Tom Tromey <tom@tromey.com>
12113 * symfile.c (overlay_invalidate_all, find_pc_overlay)
12114 (find_pc_mapped_section, list_overlays_command)
12115 (map_overlay_command, unmap_overlay_command)
12116 (simple_overlay_update): Use all_objfiles.
12117 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
12118 * printcmd.c (info_symbol_command): Use all_objfiles.
12119 * objfiles.h (ALL_OBJSECTIONS): Remove.
12120 * maint.c (maintenance_translate_address): Use all_objfiles.
12121 * gcore.c (gcore_create_callback): Use all_objfiles.
12122 (objfile_find_memory_regions): Likewise.
12124 2019-01-09 Tom Tromey <tom@tromey.com>
12126 * symtab.c (find_line_symtab, info_sources_command)
12127 (make_source_files_completion_list): Use objfile_compunits.
12128 * source.c (select_source_symtab): Use objfile_compunits.
12129 * objfiles.h (struct objfile): Update comment.
12130 (ALL_OBJFILES): Remove.
12131 (ALL_FILETABS): Remove.
12132 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
12135 2019-01-09 Tom Tromey <tom@tromey.com>
12137 * symmisc.c (print_objfile_statistics, dump_objfile)
12138 (maintenance_print_symbols): Use compunit_filetabs.
12139 * source.c (forget_cached_source_info_for_objfile): Use
12141 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
12142 (ALL_FILETABS): Use compunit_filetabs.
12143 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
12144 * coffread.c (coff_symtab_read): Use compunit_filetabs.
12146 2019-01-09 Tom Tromey <tom@tromey.com>
12148 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
12149 (compunit_filetabs): New.
12150 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
12152 (info_sources_command, make_source_files_completion_list): Remove
12154 * symmisc.c (print_objfile_statistics, dump_objfile)
12155 (maintenance_print_symbols): Remove declaration.
12156 (maintenance_info_symtabs): Use compunit_filetabs.
12157 (maintenance_info_line_tables): Likewise.
12158 * source.c (select_source_symtab): Change local variable name.
12159 (forget_cached_source_info_for_objfile): Remove declaration.
12160 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
12161 * objfiles.c (objfile_relocate1): Remove declaration.
12162 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
12164 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
12165 * coffread.c (coff_symtab_read): Remove declaration.
12166 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
12169 2019-01-09 Tom Tromey <tom@tromey.com>
12171 * symtab.c (lookup_objfile_from_block)
12172 (find_pc_sect_compunit_symtab, search_symbols)
12173 (default_collect_symbol_completion_matches_break_on): Use
12175 * objfiles.h (ALL_COMPUNITS): Remove.
12176 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
12177 * cp-support.c (add_symbol_overload_list_qualified): Use
12179 * ada-lang.c (ada_collect_symbol_completion_matches)
12180 (ada_add_global_exceptions): Use objfile_compunits.
12182 2019-01-09 Tom Tromey <tom@tromey.com>
12184 * source.c (select_source_symtab)
12185 (forget_cached_source_info_for_objfile): Remove declaration.
12186 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
12188 * maint.c (count_symtabs_and_blocks): Remove declaration.
12189 * cp-support.c (add_symbol_overload_list_qualified): Remove
12191 * coffread.c (coff_symtab_read): Remove declaration.
12192 * symtab.c (lookup_symbol_in_objfile_symtabs)
12193 (basic_lookup_transparent_type_1): Use objfile_compunits.
12194 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
12195 (info_sources_command, search_symbols)
12196 (default_collect_symbol_completion_matches_break_on)
12197 (make_source_files_completion_list): Remove declaration.
12198 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
12199 (ada_collect_symbol_completion_matches)
12200 (ada_add_global_exceptions): Remove declaration.
12201 * linespec.c (iterate_over_all_matching_symtabs): Use
12203 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
12204 (class objfile_compunits): New.
12205 (ALL_COMPUNITS): Use objfile_compunits.
12206 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
12207 (maintenance_check_symtabs, maintenance_info_line_tables): Use
12209 * objfiles.c (objfile_relocate1): Use objfile_compunits.
12211 2019-01-09 Tom Tromey <tom@tromey.com>
12213 * symtab.c (search_symbols)
12214 (default_collect_symbol_completion_matches_break_on): Use
12216 * ada-lang.c (ada_lookup_simple_minsym)
12217 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
12218 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
12219 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
12221 * coffread.c (coff_symfile_read): Use objfile_msymbols.
12222 * symmisc.c (dump_msymbols): Use objfile_msymbols.
12223 * objc-lang.c (find_methods): Use objfile_msymbols.
12224 (info_selectors_command, info_classes_command): Likewise.
12225 * stabsread.c (scan_file_globals): Use objfile_msymbols.
12226 * objfiles.h (class objfile_msymbols): New.
12227 (ALL_OBJFILE_MSYMBOLS): Remove.
12228 (ALL_MSYMBOLS): Remove.
12230 2019-01-09 Tom Tromey <tom@tromey.com>
12232 * common/next-iterator.h (next_adapter): Add Iterator template
12234 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
12235 (class all_objfiles_safe): New.
12236 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
12237 * objfiles.c (put_objfile_before): Update comment.
12238 (add_separate_debug_objfile): Likewise.
12239 (free_all_objfiles): Use all_objfiles_safe.
12240 (objfile_purge_solibs): Likewise.
12242 2019-01-09 Tom Tromey <tom@tromey.com>
12244 * symtab.c (iterate_over_symtabs, matching_obj_sections)
12245 (expand_symtab_containing_pc, lookup_static_symbol)
12246 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
12247 (find_symbol_at_address, find_line_symtab, find_main_name): Use
12249 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
12250 * breakpoint.c (create_overlay_event_breakpoint)
12251 (create_longjmp_master_breakpoint)
12252 (create_std_terminate_master_breakpoint)
12253 (create_exception_master_breakpoint): Use all_objfiles.
12254 * linux-thread-db.c (try_thread_db_load_from_pdir)
12255 (has_libpthread): Use all_objfiles.
12256 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
12257 * linespec.c (iterate_over_all_matching_symtabs)
12258 (search_minsyms_for_name): Use all_objfiles.
12259 * maint.c (maintenance_info_sections): Use all_objfiles.
12260 * main.c (captured_main_1): Use all_objfiles.
12261 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
12262 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
12263 * guile/scm-pretty-print.c
12264 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
12265 * solib-spu.c (append_ocl_sos): Use all_objfiles.
12266 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
12267 (maintenance_print_msymbols): Use all_objfiles.
12268 * source.c (select_source_symtab): Use all_objfiles.
12269 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
12270 * symfile.c (remove_symbol_file_command)
12271 (expand_symtabs_matching, map_symbol_filenames): Use
12273 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
12275 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
12276 * objc-lang.c (find_methods): Use all_objfiles.
12277 * objfiles.c (have_partial_symbols, have_full_symbols)
12278 (have_minimal_symbols, qsort_cmp)
12279 (default_iterate_over_objfiles_in_search_order): Use
12281 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
12282 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
12283 (maintenance_check_psymtabs): Use all_objfiles.
12284 (ALL_PSYMTABS): Remove.
12285 * compile/compile-object-run.c (do_module_cleanup): Use
12287 * blockframe.c (find_pc_partial_function): Use all_objfiles.
12288 * cp-support.c (add_symbol_overload_list_qualified): Use
12290 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
12292 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
12293 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
12295 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
12296 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
12297 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
12299 * solib.c (solib_read_symbols): Use all_objfiles
12301 2019-01-09 Tom Tromey <tom@tromey.com>
12303 * probe.c (parse_probes_in_pspace): Use all_objfiles.
12304 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
12306 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
12307 * symmisc.c (print_symbol_bcache_statistics)
12308 (print_objfile_statistics, maintenance_print_objfiles)
12309 (maintenance_info_symtabs, maintenance_check_symtabs)
12310 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
12312 * source.c (forget_cached_source_info): Use all_objfiles.
12313 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
12314 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
12315 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
12316 * objfiles.c (update_section_map): Use all_objfiles.
12317 (shared_objfile_contains_address_p): Likewise.
12318 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
12319 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
12321 2019-01-09 Tom Tromey <tom@tromey.com>
12323 * common/next-iterator.h: New file.
12324 * objfiles.h (class all_objfiles): New.
12325 (struct objfile_iterator): New.
12327 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12329 * NEWS: Move the description of the changed "frame", "select-frame",
12330 and "info frame" commands to the Changed commands section.
12332 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
12334 * gdbtypes.c (check_stub_method_group): Remove handling of old
12336 * linespec.c (find_methods): Likewise.
12337 * stabsread.c (read_member_functions): Likewise.
12338 * valops.c (search_struct_method): Likewise.
12339 (value_struct_elt_for_reference): Likewise.
12340 * NEWS: Mention this change.
12342 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12344 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
12345 print_source_lines.
12346 * source.c (print_source_lines_base): Update line number check.
12347 (print_source_lines): New function.
12348 (source_lines_range::source_lines_range): New function.
12349 * source.h (class source_lines_range): New class.
12350 (print_source_lines): New declaration.
12352 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12354 * linespec.c (linespec_state_destructor): Free self->canonical_names.
12356 2019-01-08 Tom Tromey <tom@tromey.com>
12357 Simon Marchi <simon.marchi@ericsson.com>
12360 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
12361 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
12362 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
12363 * f-exp.y (DOLLAR_VARIABLE): Likewise.
12364 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
12365 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
12367 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12369 * source.c (select_source_symtab): Move header comment to
12370 declaration in source.h.
12371 (forget_cached_source_info_for_objfile): Likewise.
12372 (forget_cached_source_info): Likewise.
12373 (identify_source_line): Likewise.
12374 * source.h (identify_source_line): Move declaration from symtab.h
12375 and add comment from source.c
12376 (print_source_lines): Likewise.
12377 (forget_cached_source_info_for_objfile): Likewise.
12378 (forget_cached_source_info): Likewise.
12379 (select_source_symtab): Likewise.
12380 (enum print_source_lines_flag): Move definition from symtab.h.
12381 * symtab.h (identify_source_line): Move declaration to source.h.
12382 (print_source_lines): Likewise.
12383 (forget_cached_source_info_for_objfile): Likewise.
12384 (forget_cached_source_info): Likewise.
12385 (select_source_symtab): Likewise.
12386 (enum print_source_lines_flag): Move definition to source.h.
12387 * tui/tui-hooks.c: Add 'source.h' include.
12389 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12391 * source.c (print_source_lines_base): Handle requests to print
12392 reverse line number sequences, and guard against empty lines
12395 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12397 * source.c (print_source_lines_base): Fix skip of '\r' if next
12400 2019-01-06 Tom Tromey <tom@tromey.com>
12402 * c-exp.y (struct c_parse_state) <macro_original_text,
12403 expansion_obstack>: New member.
12404 (macro_original_text, expansion_obstack): Remove globals.
12405 (scan_macro_expansion, scanning_macro_expansion)
12406 (finished_macro_expansion): Update.
12407 (scan_macro_cleanup): Remove.
12408 (yylex, c_parse): Update.
12410 2019-01-06 Tom Tromey <tom@tromey.com>
12412 * c-exp.y (struct c_parse_state) <strings>: New member.
12413 (operator_stoken): Update.
12415 2019-01-06 Tom Tromey <tom@tromey.com>
12417 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
12418 (union type_stack_elt) <typelist_val>: Now a pointer to
12420 (type_stack_cleanup): Don't declare.
12421 (push_typelist): Update.
12422 * parse.c (pop_typelist): Return a std::vector.
12423 (push_typelist): Take a std::vector.
12424 (follow_types): Update. Do not free args.
12425 (type_stack_cleanup): Remove.
12426 * c-exp.y (struct c_parse_state): New.
12427 (cpstate): New global.
12428 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
12429 (nonempty_typelist): Update.
12430 (func_mod): Create a new vector.
12431 (c_parse): Create a c_parse_state.
12432 (check_parameter_typelist): Do not delete params.
12433 (function_method): Update. Do not delete type_list.
12435 2019-01-06 Tom Tromey <tom@tromey.com>
12438 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
12440 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
12441 (print_return_value): Likewise.
12443 2019-01-05 Tom Tromey <tom@tromey.com>
12445 * contrib/cleanup_check.py: Remove.
12446 * contrib/gcc-with-excheck: Remove.
12447 * contrib/exsummary.py: Remove.
12448 * contrib/excheck.py: Remove.
12450 2019-01-05 Joel Brobecker <brobecker@adacore.com>
12452 * thread.c (delete_thread_1): Add gdb_assert that THR is not
12453 NULL. Initialize tpprev to NULL instead of assigning it
12454 to NULL on the next statement.
12455 * windows-nat.c (windows_delete_thread): Remove check for
12456 main_thread_id before printing thread exit notifications.
12457 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
12458 Remove thread ID check against main_thread_id.
12459 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
12460 windows_delete_thread.
12461 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
12463 2019-01-04 Tom Tromey <tom@tromey.com>
12465 * compile/compile.c (_initialize_compile): Use upper case for
12466 metasyntactic variables.
12467 * symmisc.c (_initialize_symmisc): Use upper case for
12468 metasyntactic variables.
12469 * psymtab.c (_initialize_psymtab): Use upper case for
12470 metasyntactic variables.
12471 * demangle.c (demangle_command): Use upper case for metasyntactic
12473 (_initialize_demangler): Likewise.
12474 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
12477 2019-01-03 Tom Tromey <tom@tromey.com>
12479 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
12481 2019-01-03 Tom Tromey <tom@tromey.com>
12483 * python/py-symtab.c (salpy_str): Update.
12484 (struct salpy_sal_object) <symtab>: Now a PyObject.
12485 (salpy_dealloc): Update.
12486 (del_objfile_sal): Use gdbpy_ref.
12488 2019-01-03 Tom Tromey <tom@tromey.com>
12490 * python/py-type.c (convert_field): Use new_reference. Return
12492 (make_fielditem): Return gdbpy_ref.
12493 (typy_fields): Update.
12494 (typy_getitem): Update.
12495 (field_name): Return gdbpy_ref. Use new_reference.
12496 (typy_iterator_iternext): Update.
12498 2019-01-03 Tom Tromey <tom@tromey.com>
12500 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
12502 2019-01-03 Tom Tromey <tom@tromey.com>
12504 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
12505 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
12506 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
12507 (pspy_set_frame_filters, pspy_set_frame_unwinders)
12508 (pspy_set_type_printers): Likewise.
12509 * python/py-function.c (fnpy_init): Use gdbpy_ref.
12510 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
12511 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
12512 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
12513 (objfpy_set_type_printers): Likewise.
12515 2019-01-03 Tom Tromey <tom@tromey.com>
12517 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
12518 (gdbpy_print_stack): Use gdbpy_err_fetch.
12519 * python/python-internal.h (class gdbpy_err_fetch): New class.
12520 (class gdbpy_enter) <m_error_type, m_error_value,
12521 m_error_traceback>: Remove.
12522 <m_error>: New member.
12523 (gdbpy_exception_to_string): Don't declare.
12524 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
12525 * python/py-value.c (convert_value_from_python): Use
12527 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
12528 gdbpy_exception_to_string.
12529 (gdbpy_handle_exception): Use gdbpy_err_fetch.
12530 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
12533 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12535 * linux-nat.c (delete_lwp_cleanup): Delete.
12536 (struct lwp_deleter): New struct.
12537 (lwp_info_up): New typedef.
12538 (linux_nat_target::follow_fork): Delete cleanup, and make use of
12541 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12543 * linux-fork.c (class scoped_switch_fork_info): New class.
12544 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
12546 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12548 * valops.c (find_overload_match): Remove use of null_cleanup, and
12549 calls to do_cleanups.
12551 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12553 * compile/compile-cplus-types.c
12554 (compile_cplus_instance::decl_name): Handle changes to
12556 * cp-support.c (cp_func_name): Update header comment, update
12558 * cp-support.h (cp_func_name): Update return type in declaration.
12559 * valops.c (find_overload_match): Move temp_func local to top
12560 level of function and change its type. Use temp_func to hold and
12561 delete temporary string obtained from cp_func_name.
12563 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12565 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
12566 gdb::char_vector, remove cleanup, and update uses of `msg`.
12568 2019-01-03 Jim Wilson <jimw@sifive.com>
12570 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
12572 2019-01-02 Tom Tromey <tom@tromey.com>
12574 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
12575 (tdesc_parse_xml): Remove cleanups.
12576 * target-descriptions.h (make_cleanup_free_target_description):
12578 (target_desc_deleter): New struct.
12579 (target_desc_up): New typedef.
12580 * target-descriptions.c (target_desc_deleter::operator()): Rename
12581 from free_target_description.
12582 (make_cleanup_free_target_description): Remove.
12584 2019-01-02 Tom Tromey <tom@tromey.com>
12586 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
12587 constructor, destructor.
12588 (linespec_parser): Remove typedef.
12589 (~linespec_parser): Rename from linespec_parser_delete.
12590 (linespec_lex_to_end, linespec_complete_label)
12591 (linespec_complete): Update.
12592 (decode_line_full): Remove cleanups.
12593 (decode_line_1): Update.
12595 2019-01-02 Tom Tromey <tom@tromey.com>
12597 * python/python-internal.h (inferior_to_inferior_object): Change
12599 * python/py-exitedevent.c (create_exited_event_object): Update.
12600 * python/py-inferior.c (inferior_to_inferior_object): Return
12602 (python_new_inferior, python_inferior_deleted)
12603 (thread_to_thread_object, delete_thread_object)
12604 (build_inferior_list, gdbpy_selected_inferior): Update.
12605 * python/py-infthread.c (create_thread_object): Update. Also fail
12606 if inferior_to_inferior_object fails.
12608 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
12610 * inferior.h (class inferior) <displaced_step_state>: New field.
12611 * infrun.h (struct displaced_step_state): Move here from
12612 infrun.c. Initialize fields, add constructor.
12613 <inf>: Remove field.
12614 <reset>: New method.
12615 * infrun.c (struct displaced_step_inferior_state): Move to
12617 (displaced_step_inferior_states): Remove.
12618 (get_displaced_stepping_state): Adust.
12619 (displaced_step_in_progress_any_inferior): Adjust.
12620 (displaced_step_in_progress_thread): Adjust.
12621 (displaced_step_in_progress): Adjust.
12622 (add_displaced_stepping_state): Remove.
12623 (get_displaced_step_closure_by_addr): Adjust.
12624 (remove_displaced_stepping_state): Remove.
12625 (infrun_inferior_exit): Call displaced_step_state.reset.
12626 (use_displaced_stepping): Don't check for NULL.
12627 (displaced_step_prepare_throw): Call
12628 get_displaced_stepping_state.
12629 (displaced_step_fixup): Don't check for NULL.
12630 (prepare_for_detach): Don't check for NULL.
12632 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12634 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
12635 in case of call that did not complete.
12637 2019-01-02 Andrey Utkin <autkin@undo.io>
12639 * symfile.c (find_separate_debug_file): Fix search of debug files for
12642 2019-01-02 Tom Tromey <tom@tromey.com>
12644 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
12646 * python/py-frame.c (frapy_older): Remove cast.
12647 (frapy_newer): Likewise.
12648 * python/py-breakpoint.c (local_setattro): Remove cast.
12649 * python/py-arch.c (archpy_name): Remove local variable.
12650 * python/py-type.c (gdbpy_lookup_type): Remove cast.
12652 2019-01-02 Joel Brobecker <brobecker@adacore.com>
12654 * unittests/basic_string_view/element_access/char/empty.cc:
12655 Fix year range in copyright header.
12657 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
12659 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
12661 <operator==>: Update with for removed field.
12663 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
12664 <isa_features>: ...this.
12665 <abi_features>: New field.
12666 (riscv_isa_flen): Update comment.
12667 (riscv_abi_xlen): New declaration.
12668 (riscv_abi_flen): New declaration.
12669 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
12671 (riscv_abi_xlen): New function.
12672 (riscv_isa_flen): Update to get answer from isa_features.
12673 (riscv_abi_flen): New function.
12674 (riscv_has_fp_abi): Update to get answer from abi_features.
12675 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
12677 (riscv_call_info) <xlen, flen>: Update comment.
12678 (riscv_call_arg_struct): Remove invalid assertions
12679 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
12681 (riscv_gdbarch_init): Gather isa features and abi features
12682 separately, ensure both match on the gdbarch when reusing an old
12683 gdbarch. Relax an error check to allow 32-bit abi float to run on
12684 a target with 64-bit float hardware.
12686 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12688 * source.c (search_command_helper): Stop reverse search
12689 when line 1 has been searched.
12691 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12693 * record-full.c (record_full_base_target::close): Rewrite
12694 record_full_core_buf_list free logic.
12696 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12698 * break-catch-syscall.c (print_one_catch_syscall): xfree
12701 2019-01-01 Joel Brobecker <brobecker@adacore.com>
12703 * top.c (print_gdb_version): Update Copyright year in version
12706 2019-01-01 Joel Brobecker <brobecker@adacore.com>
12708 Update copyright year range in all GDB files.
12710 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
12712 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
12714 For older changes see ChangeLog-2018.
12720 version-control: never