1 2019-09-20 Tom Tromey <tom@tromey.com>
3 * tui/tui-layout.c (show_source_disasm_command)
4 (show_source_or_disasm_and_command): Don't call
7 2019-09-20 Tom Tromey <tom@tromey.com>
9 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
11 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
12 from tui_make_status_line.
13 (tui_locator_window::rerender): Update.
15 2019-09-20 Tom Tromey <tom@tromey.com>
17 * tui/tui-stack.c (tui_make_status_line): Return std::string.
18 (tui_locator_window::rerender): Update.
20 2019-09-20 Tom Tromey <tom@tromey.com>
22 * tui/tui-winsource.h (struct tui_source_window_base)
23 <~tui_source_window_base>: Don't declare.
25 * tui/tui-winsource.c (~tui_source_window_base): Remove.
26 * tui/tui-source.h (struct tui_source_window) <fullname>: New
28 * tui/tui-source.c (tui_source_window::set_contents): Update.
29 (tui_source_window::location_matches_p)
30 (tui_source_window::maybe_update): Update.
32 2019-09-20 Tom Tromey <tom@tromey.com>
34 * tui/tui-winsource.h (~tui_source_element): Remove.
35 (tui_source_element): Update.
36 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
37 * tui/tui-winsource.c (tui_show_source_line): Update.
38 * tui/tui-source.c (tui_source_window::set_contents): Update.
39 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
41 2019-09-20 Tom Tromey <tom@tromey.com>
43 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
45 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
46 tui_clear_source_windows_detail.
47 * tui/tui-winsource.h (struct tui_source_window_base)
48 <clear_detail>: Don't declare.
49 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
51 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
53 2019-09-20 Tom Tromey <tromey@adacore.com>
56 * block.c (contained_in): Fix final return value.
58 2019-09-20 Alan Modra <amodra@gmail.com>
60 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
61 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
62 (read_indirect_string_from_dwz): Use bfd accessor.
63 * dwarf2read.h (struct dwz_file <filename>): Likewise.
64 * machoread.c (macho_symfile_read_all_oso): Likewise.
65 * solib.c (solib_bfd_open): Likewise.
67 2019-09-19 Christian Biesinger <cbiesinger@google.com>
69 * eval.c: Move declaration of overload_resolution to...
72 2019-09-19 Christian Biesinger <cbiesinger@google.com>
74 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
75 * arm-linux-tdep.c: Likewise.
76 * arm-nbsd-nat.c: Likewise.
77 * arm-tdep.h: Declare arm_apcs_32.
78 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
80 2019-09-19 Christian Biesinger <cbiesinger@google.com>
82 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
83 * dwarf2read.h: Declare dwarf_always_disassemble.
85 2019-09-19 Tom de Vries <tdevries@suse.de>
88 * source-cache.c (source_cache::ensure): Catch exception thrown during
89 construction of the highlighter.
91 2019-09-18 Alan Modra <amodra@gmail.com>
93 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
94 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
95 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
96 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
97 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
98 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
99 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
100 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
101 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
102 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
103 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
104 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
105 * solib-spu.c, * solib-svr4.c, * solib-target.c,
106 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
107 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
108 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
109 * mi/mi-interp.c: Update throughout for bfd section macro and
111 * gcore (gcore_create_callback): Use bfd_set_section_lma.
112 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
114 2019-09-18 Tom Tromey <tom@tromey.com>
117 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
119 (tui_enable): Do not call rl_initialize.
121 2019-09-18 Christian Groessler <chris@groessler.org>
123 * alpha-linux-nat.c: Include gdbarch.h.
125 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
127 * ui-file.c: Include cli/cli-style.h.
128 (term_cli_styling): Remove cli_styling declaration.
130 2019-09-18 Alan Modra <amodra@gmail.com>
132 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
133 to bfd_asymbol_section.
135 2019-09-18 Alan Modra <amodra@gmail.com>
137 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
138 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
139 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
141 2019-09-18 Alan Modra <amodra@gmail.com>
143 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
144 * spu-linux-nat.c (spu_bfd_open): Likewise.
146 2019-09-18 Christian Biesinger <cbiesinger@google.com>
148 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
149 to bool to match definition in dwarf2read.c.
151 2019-09-17 Christian Biesinger <cbiesinger@google.com>
153 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
154 (print_signatures): Likewise.
155 (trust_pad_over_xvs): Likewise.
156 * arch/aarch64-insn.c (aarch64_debug): Likewise.
157 * arch/aarch64-insn.h (aarch64_debug): Likewise.
158 * arm-linux-nat.c (arm_apcs_32): Likewise.
159 * arm-linux-tdep.c (arm_apcs_32): Likewise.
160 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
161 * arm-tdep.c (arm_debug): Likewise.
162 (arm_apcs_32): Likewise.
163 * auto-load.c (debug_auto_load): Likewise.
164 (auto_load_gdb_scripts): Likewise.
165 (global_auto_load): Likewise.
166 (auto_load_local_gdbinit): Likewise.
167 (auto_load_local_gdbinit_loaded): Likewise.
168 * auto-load.h (global_auto_load): Likewise.
169 (auto_load_local_gdbinit): Likewise.
170 (auto_load_local_gdbinit_loaded): Likewise.
171 * breakpoint.c (disconnected_dprintf): Likewise.
172 (breakpoint_proceeded): Likewise.
173 (automatic_hardware_breakpoints): Likewise.
174 (always_inserted_mode): Likewise.
175 (target_exact_watchpoints): Likewise.
176 (_initialize_breakpoint): Update.
177 * breakpoint.h (target_exact_watchpoints): Change to bool.
178 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
179 * cli/cli-cmds.c (trace_commands): Likewise.
180 * cli/cli-cmds.h (trace_commands): Likewise.
181 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
183 * cli/cli-logging.c (logging_overwrite): Change to bool.
184 (logging_redirect): Likewise.
185 (debug_redirect): Likewise.
186 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
187 (struct boolean_option_def) <get_var_address_cb_>: Change return type
189 <boolean_option_def>: Update.
190 (struct flag_option_def): Change default type of Context to bool
192 <flag_option_def>: Change return type of var_address_cb_ to bool*.
193 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
194 (get_setshow_command_value_string): Likewise.
195 * cli/cli-style.c (cli_styling): Change to bool.
196 (source_styling): Likewise.
197 * cli/cli-style.h (source_styling): Likewise.
198 (cli_styling): Likewise.
199 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
201 * command.h (var_types): Update comment.
202 (add_setshow_boolean_cmd): Change int* var argument to bool*.
203 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
205 (debug_compile_cplus_scopes): Likewise.
206 * compile/compile-internal.h (compile_debug): Likewise.
207 * compile/compile.c (compile_debug): Likewise.
208 (struct compile_options) <raw>: Likewise.
209 * cp-support.c (catch_demangler_crashes): Likewise.
210 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
211 (usr_cmd_cris_dwarf2_cfi): Likewise.
212 * csky-tdep.c (csky_debug): Likewise.
213 * darwin-nat.c (enable_mach_exceptions): Likewise.
214 * dcache.c (dcache_enabled_p): Likewise.
215 * defs.h (info_verbose): Likewise.
216 * demangle.c (demangle): Likewise.
217 (asm_demangle): Likewise.
218 * dwarf-index-cache.c (debug_index_cache): Likewise.
219 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
220 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
221 * dwarf2read.c (check_physname): Likewise.
222 (use_deprecated_index_sections): Likewise.
223 (dwarf_always_disassemble): Likewise.
224 * eval.c (overload_resolution): Likewise.
225 * event-top.c (set_editing_cmd_var): Likewise.
226 (exec_done_display_p): Likewise.
227 * event-top.h (set_editing_cmd_var): Likewise.
228 (exec_done_display_p): Likewise.
229 * exec.c (write_files): Likewise.
230 * fbsd-nat.c (debug_fbsd_lwp): Likewise
231 (debug_fbsd_nat): Likewise.
232 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
234 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
235 <backtrace_past_entry> Likewise.
236 * gdb-demangle.h (demangle): Likewise.
237 (asm_demangle): Likewise.
238 * gdb_bfd.c (bfd_sharing): Likewise.
239 * gdbcore.h (write_files): Likewise.
240 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
241 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
242 * gdbthread.h (print_thread_events): Likewise.
243 * gdbtypes.c (opaque_type_resolution): Likewise.
244 (strict_type_checking): Likewise.
245 * gnu-nat.c (gnu_debug_flag): Likewise.
246 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
247 * guile/scm-param.c (pascm_variable): Add boolval.
248 (add_setshow_generic): Update.
249 (pascm_param_value): Update.
250 (pascm_set_param_value_x): Update.
251 * hppa-tdep.c (hppa_debug): Change to bool..
252 * infcall.c (may_call_functions_p): Likewise.
253 (coerce_float_to_double_p): Likewise.
254 (unwind_on_signal_p): Likewise.
255 (unwind_on_terminating_exception_p): Likewise.
256 * infcmd.c (startup_with_shell): Likewise.
257 * inferior.c (print_inferior_events): Likewise.
258 * inferior.h (startup_with_shell): Likewise.
259 (print_inferior_events): Likewise.
260 * infrun.c (step_stop_if_no_debug): Likewise.
261 (detach_fork): Likewise.
262 (debug_displaced): Likewise.
263 (disable_randomization): Likewise.
264 (non_stop): Likewise.
265 (non_stop_1): Likewise.
266 (observer_mode): Likewise.
267 (observer_mode_1): Likewise.
268 (set_observer_mode): Update.
269 (sched_multi): Change to bool.
270 * infrun.h (debug_displaced): Likewise.
271 (sched_multi): Likewise.
272 (step_stop_if_no_debug): Likewise.
273 (non_stop): Likewise.
274 (disable_randomization): Likewise.
275 * linux-tdep.c (use_coredump_filter): Likewise.
276 (dump_excluded_mappings): Likewise.
277 * linux-thread-db.c (auto_load_thread_db): Likewise.
278 (check_thread_db_on_load): Likewise.
279 * main.c (captured_main_1): Update.
280 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
281 xx2_opt, boolean_opt>: Change to bool.
282 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
283 * maint.c (maintenance_profile_p): Likewise.
284 (per_command_time): Likewise.
285 (per_command_space): Likewise.
286 (per_command_symtab): Likewise.
287 * memattr.c (inaccessible_by_default): Likewise.
288 * mi/mi-main.c (mi_async): Likewise.
289 (mi_async_1): Likewise.
290 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
291 * nat/fork-inferior.h (startup_with_shell): Likewise.
292 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
293 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
294 * nios2-tdep.c (nios2_debug): Likewise.
295 * or1k-tdep.c (or1k_debug): Likewise.
296 * parse.c (parser_debug): Likewise.
297 * parser-defs.h (parser_debug): Likewise.
298 * printcmd.c (print_symbol_filename): Likewise.
299 * proc-api.c (procfs_trace): Likewise.
300 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
301 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
302 (set_parameter_value): Update.
303 (add_setshow_generic): Update.
304 * python/py-value.c (copy_py_bool_obj): Change argument from int*
306 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
308 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
309 * record-btrace.c (record_btrace_target::store_registers): Update.
310 * record-full.c (record_full_memory_query): Change to bool.
311 (record_full_stop_at_limit): Likewise.
312 * record-full.h (record_full_memory_query): Likewise.
313 * remote-notif.c (notif_debug): Likewise.
314 * remote-notif.h (notif_debug): Likewise.
315 * remote.c (use_range_stepping): Likewise.
316 (interrupt_on_connect): Likewise.
317 (remote_break): Likewise.
318 * ser-tcp.c (tcp_auto_retry): Likewise.
319 * ser-unix.c (serial_hwflow): Likewise.
320 * skip.c (debug_skip): Likewise.
321 * solib-aix.c (solib_aix_debug): Likewise.
322 * spu-tdep.c (spu_stop_on_load_p): Likewise.
323 (spu_auto_flush_cache_p): Likewise.
324 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
326 (struct info_print_options) <quiet>: Likewise.
327 * symfile-debug.c (debug_symfile): Likewise.
328 * symfile.c (auto_solib_add): Likewise.
329 (separate_debug_file_debug): Likewise.
330 * symfile.h (auto_solib_add): Likewise.
331 (separate_debug_file_debug): Likewise.
332 * symtab.c (basenames_may_differ): Likewise.
333 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
334 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
335 (struct info_types_options) <quiet>: Likewise.
336 * symtab.h (demangle): Likewise.
337 (basenames_may_differ): Likewise.
338 * target-dcache.c (stack_cache_enabled_1): Likewise.
339 (code_cache_enabled_1): Likewise.
340 * target.c (trust_readonly): Likewise.
341 (may_write_registers): Likewise.
342 (may_write_memory): Likewise.
343 (may_insert_breakpoints): Likewise.
344 (may_insert_tracepoints): Likewise.
345 (may_insert_fast_tracepoints): Likewise.
346 (may_stop): Likewise.
347 (auto_connect_native_target): Likewise.
348 (target_stop_and_wait): Update.
349 (target_async_permitted): Change to bool.
350 (target_async_permitted_1): Likewise.
351 (may_write_registers_1): Likewise.
352 (may_write_memory_1): Likewise.
353 (may_insert_breakpoints_1): Likewise.
354 (may_insert_tracepoints_1): Likewise.
355 (may_insert_fast_tracepoints_1): Likewise.
356 (may_stop_1): Likewise.
357 * target.h (target_async_permitted): Likewise.
358 (may_write_registers): Likewise.
359 (may_write_memory): Likewise.
360 (may_insert_breakpoints): Likewise.
361 (may_insert_tracepoints): Likewise.
362 (may_insert_fast_tracepoints): Likewise.
363 (may_stop): Likewise.
364 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
365 (make_thread_apply_all_options_def_group): Change argument from int*
367 (thread_apply_all_command): Update.
368 (print_thread_events): Change to bool.
369 * top.c (confirm): Likewise.
370 (command_editing_p): Likewise.
371 (history_expansion_p): Likewise.
372 (write_history_p): Likewise.
373 (info_verbose): Likewise.
374 * top.h (confirm): Likewise.
375 (history_expansion_p): Likewise.
376 * tracepoint.c (disconnected_tracing): Likewise.
377 (circular_trace_buffer): Likewise.
378 * typeprint.c (print_methods): Likewise.
379 (print_typedefs): Likewise.
380 * utils.c (debug_timestamp): Likewise.
381 (sevenbit_strings): Likewise.
382 (pagination_enabled): Likewise.
383 * utils.h (sevenbit_strings): Likewise.
384 (pagination_enabled): Likewise.
385 * valops.c (overload_resolution): Likewise.
386 * valprint.h (struct value_print_options) <prettyformat_arrays,
387 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
388 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
389 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
391 * windows-nat.c (new_console): Likewise.
392 (cygwin_exceptions): Likewise.
393 (new_group): Likewise.
394 (debug_exec): Likewise.
395 (debug_events): Likewise.
396 (debug_memory): Likewise.
397 (debug_exceptions): Likewise.
398 (useshell): Likewise.
399 * windows-tdep.c (maint_display_all_tib): Likewise.
400 * xml-support.c (debug_xml): Likewise.
402 2019-09-17 Mike Gulick <mgulick@mathworks.com>
404 * source.c (prepare_path_for_appending): New function.
405 (openp): Make use of new function.
406 (find_and_open_source): Search for the compilation directory and
407 source file as a relative path beneath the directory search path.
409 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
411 * source-cache.c (source_cache::get_line_charpos): Catch
412 exceptions and return false, this matches the behaviour documented
415 2019-09-17 Joel Brobecker <brobecker@adacore.com>
417 * ada-tasks.c (info_task): Remove quoting of the task's name.
419 2019-09-16 Christian Biesinger <cbiesinger@google.com>
421 * symfile.c (auto_solib_add): Replace comment with a reference
424 2019-09-14 Christian Biesinger <cbiesinger@google.com>
426 * NEWS: Mention that gdb can now be compiled with Python 3
429 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
431 * maint.c (maint_print_section_data::maint_print_section_data):
432 Force use of 'float log10 (float)' by casting the argument to
435 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
437 * maint.c: Add 'cmath' include.
438 (struct maint_print_section_data): New structure.
439 (print_section_index): New function.
440 (print_bfd_section_info): Add header comment, small whitespace
441 cleanup, and update to call new print_section_index function.
442 (print_objfile_section_info): Likewise.
443 (maint_obj_section_from_bfd_section): New function.
444 (print_bfd_section_info_maybe_relocated): New function.
445 (maintenance_info_sections): Add header comment, always use
446 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
448 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
450 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
451 inner scope, add check that the objfile has psymtabs before
452 checking psymtabs_addrmap.
453 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
455 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
457 * NEWS: Announce that Ada task names are now shown at more places,
458 and between quotes (except in info task output).
459 * gdb/ada-tasks.c (task_to_str): New function.
460 (display_current_task_id): Call task_to_str.
461 (task_command_1): Likewise.
462 (print_ada_task_info): In non-mi mode, Properly align headers and data
463 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
465 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
467 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
468 prstatus.pr_lwp.pr_info instead of making it up.
470 2019-09-11 Christian Biesinger <cbiesinger@google.com>
472 * auto-load.c (auto_load_expand_dir_vars): Update.
473 * defs.h (gdb_datadir): Change to std::string.
474 (python_libdir): Likewise.
475 (relocate_gdb_directory): Change return type to std::string.
476 * guile/guile.c (gdbscm_data_directory): Update.
477 (initialize_scheme_side): Update.
478 * jit.c (jit_reader_dir): Change to std::string.
479 (jit_reader_load_command): Update.
480 * main.c (gdb_datadir): Change to std::string.
481 (python_libdir): Likewise.
482 (set_gdb_data_directory): Update.
483 (relocate_path): Change to return std::string.
484 (relocate_gdb_directory): Change to return std::string.
485 (relocate_gdbinit_path_maybe_in_datadir): Update.
486 (captured_main_1): Update.
487 * python/python.c (do_start_initialization): Update.
488 * top.c (show_gdb_datadir): Update.
489 * xml-syscall.c (xml_init_syscalls_info): Update.
490 (init_syscalls_info): Update.
492 2019-09-11 Christian Biesinger <cbiesinger@google.com>
494 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
495 out of get_init_files.
496 (get_init_files): Update.
498 2019-09-11 Christian Biesinger <cbiesinger@google.com>
500 * main.c (get_init_files): Change to use std::string.
501 (captured_main_1): Update.
502 (print_gdb_help): Update.
504 2019-09-11 Ali Tamur <tamur@google.com>
506 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
509 2019-09-11 Christian Biesinger <cbiesinger@google.com>
511 * dbxread.c (read_dbx_symtab): Update.
512 * dwarf2read.c (load_partial_dies): Update.
513 * mdebugread.c (parse_partial_symbols): Update.
514 (handle_psymbol_enumerators): Update.
515 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
516 * psymtab.c (add_psymbol_to_bcache): Likewise.
517 (add_psymbol_to_list): Likewise.
518 * symtab.c (symbol_set_names): Likewise.
519 * symtab.h (symbol_set_names): Likewise.
520 * xcoffread.c (scan_xcoff_symtab): Update.
522 2019-09-11 Tom Tromey <tom@tromey.com>
524 * symfile-mem.c (symbol_file_add_from_memory): Use
526 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
527 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
529 2019-09-10 Tom Tromey <tromey@adacore.com>
531 * dwarf-index-write.c (write_psymbols): Extend error message.
532 (debug_names::insert): Add Ada code.
533 (debug_names::write_psymbols): Remove Ada check.
534 (debug_names) <m_string_obstack>: New member.
535 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
536 (gdb_index_symbol_name_matcher::matches): Remove.
537 (mapped_index_base::find_name_components_bounds): Add "lang"
539 (mapped_index_base::build_name_components): Also split names
540 according to Ada syntax.
541 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
542 type of "match_callback".
543 (check_match, check_find_bounds_finds)
544 (dw2_expand_symtabs_matching): Update.
545 (dw2_debug_names_iterator): Add new constructor.
546 (dw2_debug_names_map_matching_symbols): New function.
547 (dw2_debug_names_expand_symtabs_matching): Update.
548 (dwarf2_debug_names_functions): Use
549 dw2_debug_names_map_matching_symbols.
551 2019-09-10 Tom Tromey <tromey@adacore.com>
553 * dwarf2read.c (dw2_get_file_names_reader): Add the
554 CU's file name to the results.
556 2019-09-10 Tom Tromey <tromey@adacore.com>
558 * ada-lang.c (add_nonlocal_symbols): Combine calls to
559 map_matching_symbols. Update.
560 * dwarf2read.c (dw2_map_matching_symbols): Update.
561 * psymtab.c (match_partial_symbol): Change type; update.
562 (psym_map_matching_symbols): Likewise.
563 * symfile-debug.c (debug_qf_map_matching_symbols): Change
565 * symfile.h (struct quick_symbol_functions)
566 <map_matching_symbols>: Change "name" to be a lookup_name_info.
569 2019-09-10 Tom Tromey <tromey@adacore.com>
571 * psymtab.c (map_block): Remove.
572 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
573 * symtab.c (iterate_over_symbols_terminated): New function.
574 * symtab.c (iterate_over_symbols_terminated): Declare.
576 2019-09-10 Tom Tromey <tromey@adacore.com>
578 * ada-lang.c (ada_iterate_over_symbols): Return bool.
579 * language.h (struct language_defn) <la_iterate_over_symbols>:
581 * symtab.c (iterate_over_symbols): Return bool.
582 * symtab.h (iterate_over_symbols): Return bool.
584 2019-09-10 Tom Tromey <tromey@adacore.com>
586 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
587 (add_nonlocal_symbols): Update.
588 * dwarf2read.c (dw2_map_matching_symbols): Change type.
589 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
590 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
591 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
592 Change type of "callback". Remove "data".
595 2019-09-09 Ali Tamur <tamur@google.com>
597 * dwarf2read.c (comp_unit_head): Update comment.
598 (dwarf2_dwo_name): New function declaration.
599 (dwarf_unit_type_name): New function declaration.
600 (read_comp_unit_head): Add support for new compilation units,
601 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
602 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
603 (currently named as "signature") in their header. Also clarify error
605 (lookup_dwo_id): New function. Returns the dwo id of the given
607 (lookup_dwo_unit): Use the new lookup_dwo_id function.
608 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
610 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
611 (dwarf2_dwo_name): Get the dwo name if present.
612 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
615 2019-09-09 Tom Tromey <tom@tromey.com>
617 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
619 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
621 * python/python.c (do_start_initialization): Make progname_copy static,
622 to avoid a leak report.
624 2019-09-08 Tom Tromey <tom@tromey.com>
626 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
628 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
630 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
631 Change type to gdb::optional<block_enum>.
632 (dw2_symtab_iter_init): Change block_index parameter type
633 to gdb::optional<block_enum>.
634 (dw2_lookup_symbol): Change block_index parameter
636 (dw2_debug_names_lookup_symbol): Likewise.
637 * psymtab.c (psym_lookup_symbol): Likewise.
638 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
639 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
642 2019-09-06 Christian Biesinger <cbiesinger@google.com>
644 * defs.h (relocate_gdb_directory): Change int to bool in
645 signature and rename flag to relocatable.
646 * main.c (relocate_path): Likewise.
647 (relocate_gdb_directory): Likewise.
649 2019-09-06 Alan Modra <amodra@gmail.com>
651 * coffread.c (coff_symfile_read): Constify filename variable.
652 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
653 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
654 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
655 * solib.c (reload_shared_libraries_1): Likewise.
656 * symfile.c (reread_symbols): Likewise.
657 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
658 * solib-darwin.c (darwin_bfd_open): Likewise.
659 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
661 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
663 * psymtab.c (print_partial_symbols): Handle missing domain_enum
664 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
666 2019-09-03 Tom Tromey <tromey@adacore.com>
668 * ada-valprint.c (ada_val_print_num): Don't recurse for range
670 (has_negatives): Unbias a range type bound.
671 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
672 * gdbtypes.c (operator==): Handle new field.
673 (create_range_type): Add "bias" parameter.
674 (create_static_range_type, resolve_dynamic_range): Update.
675 * gdbtypes.h (struct range_bounds) <bias>: New member.
676 (create_range_type): Add bias parameter.
677 * printcmd.c (print_scalar_formatted): Unbias range types.
678 * value.c (unpack_long): Unbias range types.
679 (pack_long): Bias range types.
681 2019-09-02 Alan Hayward <alan.hayward@arm.com>
683 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
686 2019-09-02 Alan Hayward <alan.hayward@arm.com>
688 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
689 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
690 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
691 (compile_probe_arg): Likewise.
692 * probe.h (get_argument_count): Likewise.
693 * solib-svr4.c (solib_event_probe_action): Likewise.
694 * stap-probe.c (stap_probe::get_argument_count): Likewise.
696 2019-09-02 Alan Hayward <alan.hayward@arm.com>
698 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
700 (svr4_create_solib_event_breakpoints): ...from here.
702 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
704 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
705 suffix from warning message.
707 2019-08-30 Tom Tromey <tom@tromey.com>
709 * tui/tui-winsource.h (struct tui_source_window_base)
710 <refresh_all>: Don't declare.
711 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
713 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
714 tui_show_locator_content.
715 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
717 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
718 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
721 2019-08-30 Tom Tromey <tom@tromey.com>
723 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
725 2019-08-30 Tom Tromey <tom@tromey.com>
727 * tui/tui-stack.c (_initialize_tui_stack): Move later.
728 Remove unnecessary forward declarations.
730 2019-08-30 Tom Tromey <tom@tromey.com>
732 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
734 (tui_update_locator_fullname, tui_show_frame_info): Don't call
735 tui_show_locator_content.
737 2019-08-30 Tom Tromey <tom@tromey.com>
739 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
740 (tui_locator_window::rerender): Rewrite using body of previous
741 tui_show_locator_content.
743 2019-08-30 Tom Tromey <tom@tromey.com>
745 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
746 set_locator_fullname>: New methods.
747 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
748 Rename from tui_set_locator_fullname.
749 (tui_locator_window::set_locator_info): Rename from
750 tui_set_locator_info. Return bool.
751 (tui_update_locator_fullname, tui_show_frame_info): Update.
753 2019-08-30 Tom Tromey <tom@tromey.com>
755 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
757 2019-08-30 Tom Tromey <tom@tromey.com>
759 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
762 2019-08-30 Tom Tromey <tom@tromey.com>
764 * tui/tui-wingeneral.c (box_win): Assume win_info and
765 win_info->handle cannot be NULL.
767 2019-08-30 Tom Tromey <tom@tromey.com>
769 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
770 refresh_window>: Declare.
771 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
773 (tui_data_item_window::rerender): Rename from
774 tui_display_register.
775 (tui_data_item_window::refresh_window): New method.
776 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
779 2019-08-30 Tom Tromey <tom@tromey.com>
781 * tui/tui-regs.h (struct tui_data_window) <regs_content,
782 regs_column_count, current_group>: Move later. Now private.
783 <get_current_group>: New method.
784 * tui/tui-regs.c (tui_reg_command): Update.
785 * tui/tui-layout.c (tui_set_layout): Update.
787 2019-08-30 Tom Tromey <tom@tromey.com>
789 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
790 (tui_data_window::rerender): Don't call
791 check_and_display_highlight_if_needed.
792 (tui_data_window::refresh_all): Remove call to
795 2019-08-30 Tom Tromey <tom@tromey.com>
797 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
798 (tui_data_window::display_registers_from)
799 (tui_data_window::display_reg_element_at_line)
800 (tui_data_window::display_registers_from_line): Remove checks of
803 2019-08-30 Tom Tromey <tom@tromey.com>
805 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
807 * tui/tui-regs.c (tui_data_window::show_registers): Call
809 (tui_data_window::rerender): Rename from display_all_data.
810 (tui_data_window::rerender): Remove old implementation.
812 2019-08-30 Tom Tromey <tom@tromey.com>
814 * tui/tui-regs.c (tui_data_window::display_all_data): Change
816 * tui/tui-data.h (NO_DATA_STRING): Remove define.
818 2019-08-29 Bernhard Wodok <barto@gmx.net>
819 Sergio Durigan Junior <sergiodj@redhat.com>
822 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
824 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
826 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
827 when searching for types.
829 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
831 * f-lang.c (f_language_defn): Use f_print_typedef.
832 * f-lang.h (f_print_typedef): Declare.
833 * f-typeprint.c (f_print_typedef): Define.
835 2019-08-27 Christian Biesinger <cbiesinger@google.com>
837 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
839 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
841 * cli/cli-utils.c (info_print_options_defs): Delete.
842 (make_info_print_options_def_group): Delete.
843 (extract_info_print_options): Delete.
844 (info_print_command_completer): Delete.
845 (info_print_args_help): Add extra parameter, and optionally
846 include text about -n flag.
847 * cli/cli-utils.h (struct info_print_options): Delete.
848 (extract_info_print_options): Delete declaration.
849 (info_print_command_completer): Delete declaration.
850 (info_print_args_help): Add extra parameter, extend header
852 * python/python.c (gdbpy_rbreak): Pass additional parameter to
854 * stack.c (struct info_print_options): New type.
855 (info_print_options_defs): New file scoped variable.
856 (make_info_print_options_def_group): New static function.
857 (info_print_command_completer): New static function.
858 (info_locals_command): Update to use new local functions.
859 (info_args_command): Likewise.
860 (_initialize_stack): Add extra parameter to calls to
861 info_print_args_help.
862 * symtab.c (search_symbols): Add extra parameter, use this to
863 possibly excluse non-debug symbols.
864 (symtab_symbol_info): Add extra parameter, which is passed on to
866 (struct info_print_options): New type.
867 (info_print_options_defs): New file scoped variable.
868 (make_info_print_options_def_group): New static function.
869 (info_print_command_completer): New static function.
870 (info_variables_command): Update to use local functions, and pass
871 extra parameter through to symtab_symbol_info.
872 (info_functions_command): Likewise.
873 (info_types_command): Pass additional argument through to
875 (rbreak_command): Pass extra argument to search_symbols.
876 (_initialize_symtab): Add extra arguments for calls to
877 info_print_args_help, and update help text for 'info variables',
878 'whereis', and 'info functions' commands.
879 * symtab.h (search_symbols): Add extra argument to declaration.
880 * NEWS: Mention new flags.
882 2019-08-26 Christian Biesinger <cbiesinger@google.com>
884 * symtab.c (lookup_static_symbol): Call the new function (and move
885 it down to be next to lookup_global_symbol).
886 (struct global_sym_lookup_data): Add block_enum member and rename to...
887 (struct global_or_static_sym_lookup_data): ...this.
888 (lookup_symbol_global_iterator_cb): Pass block_index instead of
889 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
890 (lookup_symbol_global_or_static_iterator_cb): ...this.
891 (lookup_global_or_static_symbol): New function.
892 (lookup_global_symbol): Call new function.
894 2019-08-26 Tom de Vries <tdevries@suse.de>
897 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
898 when pc_probe.prob == NULL.
900 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
902 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
903 variable symbol_linkage to symbol_linkage_.
905 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
907 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
908 represent whether the symbol is static, dynamic, or we don't
911 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
913 * gdb/rx-tdep.c (rx_register_names): New.
914 (rx_register_name): Delete.
915 (rx_psw_type): Delete.
916 (rx_fpsw_type): Delete.
917 (rx_register_type): Delete.
918 (rx_gdbarch_init): Convert target-descriptions.
919 (_initialize_rx_tdep): Add initialize_tdesc_rx.
920 * gdb/features/Makefile: Add rx.xml.
921 * gdb/features/rx.xml: New.
922 * gdb/features/rx.c: Generated.
923 * gdb/NEWS: Mention target description support.
925 2019-08-22 Christian Biesinger <cbiesinger@google.com>
927 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
930 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
932 * configure.ac: Don't check for 'dlfcn.h' (moved to
933 gdbsupport/common.m4).
934 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
936 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
937 * compile/compile-c-support.c: Include
938 'gdbsupport/gdb-dlfcn.h'.
939 * gdbsupport/common.m4: Check for 'dlfcn.h'.
940 * gdb-dlfcn.c: Move to...
941 * gdbsupport/gdb-dlfcn.c: ... here.
942 * gdb-dlfcn.h: Move to...
943 * gdbsupport/gdb-dlfcn.h: ... here.
945 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
947 * nios2-tdep.c (struct reg_value): Improve comments. Make
948 the offset field signed.
950 2019-08-22 Christian Biesinger <cbiesinger@google.com>
952 * python/lib/gdb/__init__.py (_execute_file): New function.
953 * python/python.c (python_run_simple_file): Call gdb._execute_file
956 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
958 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
959 all uses as this was never set to anything but a zero value.
961 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
963 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
965 2019-08-21 Christian Biesinger <cbiesinger@google.com>
967 * tui/tui-data.h (tui_gen_win_info): Add an =default
968 move constructor, required by some GCC versions.
970 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
972 * go32-nat.c (go32_sysinfo): Add hygon_p.
974 2019-08-20 Tom Tromey <tom@tromey.com>
976 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
977 line_from_reg_element_no, first_reg_element_no_inline,
978 display_all_data, delete_data_content_windows,
979 erase_data_content>: Now private.
981 2019-08-20 Tom Tromey <tom@tromey.com>
983 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
984 (tui_unhighlight_win, tui_highlight_win)
985 (tui_win_info::make_window): Update.
986 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
988 2019-08-20 Tom Tromey <tom@tromey.com>
990 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
991 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
992 (MAX_PID_WIDTH): Move to tui-stack.c.
993 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
994 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
995 (MAX_PID_WIDTH): Move from tui-data.h.
997 2019-08-20 Tom Tromey <tom@tromey.com>
999 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
1000 * tui/tui-wingeneral.c (box_win): Change type of win_info.
1002 (tui_gen_win_info::make_window): Rename from tui_make_window.
1003 (tui_win_info::make_window): New method.
1004 (tui_gen_win_info::make_visible): Update.
1005 * tui/tui-source.c (tui_source_window::set_contents): Update.
1006 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1007 (tui_data_window::display_registers_from): Update.
1008 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1009 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
1013 (struct tui_win_info) <make_window>: Declare.
1014 <can_box>: Now virtual.
1015 <title>: New member.
1016 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
1017 * tui/tui-command.c (tui_cmd_window::resize): Update.
1019 2019-08-20 Tom Tromey <tom@tromey.com>
1021 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
1022 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1023 (tui_data_window::check_register_values): Update.
1025 2019-08-20 Tom Tromey <tom@tromey.com>
1027 * tui/tui-regs.h (struct tui_data_window): Use
1028 DISABLE_COPY_AND_ASSIGN.
1029 <regs_content>: Change type, removing unique_ptr.
1030 <tui_data_window>: Add move constructor.
1031 * tui/tui-regs.c (tui_data_window::show_registers)
1032 (tui_data_window::show_register_group)
1033 (tui_data_window::display_registers_from)
1034 (tui_data_window::display_registers_from)
1035 (tui_data_window::first_data_item_displayed)
1036 (tui_data_window::delete_data_content_windows)
1037 (tui_data_window::rerender, tui_data_window::refresh_window)
1038 (tui_data_window::check_register_values): Update.
1040 2019-08-20 Tom Tromey <tom@tromey.com>
1042 * tui/tui-regs.h (struct tui_data_window) <show_registers,
1043 show_register_group>: Declare.
1044 (tui_show_register_group): Don't declare.
1045 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
1047 (tui_data_window::show_register_group): Rename from
1048 tui_show_register_group.
1049 (tui_data_window::check_register_values, tui_reg_command):
1051 * tui/tui-layout.c (tui_set_layout): Update.
1053 2019-08-20 Tom Tromey <tom@tromey.com>
1055 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
1057 (tui_check_register_values): Don't declare.
1058 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
1059 from tui_check_register_values.
1060 * tui/tui-hooks.c (tui_register_changed): Update.
1062 2019-08-20 Tom Tromey <tom@tromey.com>
1064 * tui/tui-regs.c (tui_reg_layout): Move later.
1065 (tui_show_registers): Don't enable TUI mode or change layout.
1067 2019-08-20 Tom Tromey <tom@tromey.com>
1069 * tui/tui-regs.h (struct tui_data_item_window)
1070 <~tui_data_item_window>: Remove.
1071 <content>: Now a unique_xmalloc_ptr.
1072 * tui/tui-regs.c (tui_register_format): Return a
1074 (tui_get_register): Update.
1075 (~tui_data_item_window): Remove.
1076 (tui_data_window::display_registers_from, tui_display_register):
1078 * tui/tui-io.h (tui_expand_tabs): Update.
1079 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
1080 Remove "col" parameter.
1082 2019-08-20 Tom Tromey <tom@tromey.com>
1084 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
1086 * tui/tui-regs.c (~tui_data_item_window): Update.
1088 2019-08-20 Tom Tromey <tom@tromey.com>
1090 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
1093 2019-08-20 Tom Tromey <tom@tromey.com>
1095 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
1097 2019-08-20 Tom Tromey <tom@tromey.com>
1099 * tui/tui-source.h (struct tui_source_window): Update.
1100 * tui/tui-regs.c (tui_show_registers): Update.
1101 * tui/tui-disasm.h (struct tui_disasm_window): Update.
1102 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
1103 (NO_REGS_STRING): Remove defines.
1105 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
1107 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
1108 unnecessary thread walk if remote doesn't support the packet.
1110 2019-08-19 Tom Tromey <tromey@adacore.com>
1112 * python/py-value.c (value_has_field): Fix indentation.
1114 2019-08-19 Tom Tromey <tromey@adacore.com>
1116 * printcmd.c (do_one_display, info_display_command): Update.
1117 * block.h (contained_in): Return bool. Add allow_nested
1119 * block.c (contained_in): Return bool. Add allow_nested
1122 2019-08-19 Tom Tromey <tom@tromey.com>
1124 * configure: Rebuild.
1125 * configure.ac: Disallow the combination of -static-libstdc++ and
1127 * source-cache.c (get_language_name): Handle rust.
1128 (source_cache::get_source_lines): Ignore highlighting exceptions.
1130 2019-08-16 Tom Tromey <tom@tromey.com>
1132 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
1133 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
1134 (struct tui_source_window_base) <make_visible, refresh_window,
1135 resize>: Remove methods.
1136 <execution_info>: Remove field.
1137 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
1138 (tui_show_source_line, tui_source_window_base)
1139 (~tui_source_window_base): Update.
1140 (tui_source_window_base::resize)
1141 (tui_source_window_base::make_visible)
1142 (tui_source_window_base::refresh_window): Remove.
1143 (tui_source_window_base::update_exec_info): Update.
1144 * tui/tui-source.c (tui_source_window::set_contents): Update.
1145 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1147 2019-08-16 Tom Tromey <tom@tromey.com>
1149 * tui/tui-hooks.c (tui_remove_hooks): Don't set
1150 deprecated_query_hook.
1152 2019-08-16 Tom Tromey <tom@tromey.com>
1154 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
1155 (tui_update_source_windows_with_line): Update.
1156 * tui/tui-source.h (struct tui_source_window)
1157 <show_symtab_source>: Declare.
1158 (tui_show_symtab_source): Don't declare.
1159 * tui/tui-source.c (tui_show_symtab_source): Rename from
1160 tui_show_symtab_source.
1162 2019-08-16 Tom Tromey <tom@tromey.com>
1164 * tui/tui-winsource.h (struct tui_source_window_base)
1165 <set_contents>: Declare.
1166 * tui/tui-winsource.c
1167 (tui_source_window_base::update_source_window_as_is): Update.
1168 * tui/tui-source.h (struct tui_source_window) <set_contents>:
1170 (tui_set_source_content): Don't declare.
1171 * tui/tui-source.c (tui_source_window::set_contents): Rename from
1172 tui_set_source_content.
1173 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
1175 (tui_set_disassem_content): Don't declare.
1176 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
1177 tui_set_disassem_content.
1179 2019-08-16 Tom Tromey <tom@tromey.com>
1181 * tui/tui-winsource.h (struct tui_source_window_base)
1182 <update_breakpoint_info>: Declare.
1183 (tui_update_breakpoint_info): Don't declare.
1184 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
1185 (tui_update_all_breakpoint_info): Update.
1186 (tui_source_window_base::update_breakpoint_info): Rename from
1187 tui_update_breakpoint_info.
1188 (tui_source_window_base::update_exec_info): Update.
1190 2019-08-16 Tom Tromey <tom@tromey.com>
1192 * tui/tui-winsource.h (struct tui_source_window_base)
1193 <update_source_window>: Declare.
1194 (tui_update_source_window): Don't declare.
1195 * tui/tui-winsource.c
1196 (tui_source_window_base::update_source_window): Rename from
1197 tui_update_source_window.
1198 (tui_source_window_base::rerender): Update.
1199 * tui/tui-source.c (tui_source_window::maybe_update): Update.
1200 * tui/tui-disasm.c (tui_show_disassem)
1201 (tui_show_disassem_and_update_source)
1202 (tui_disasm_window::maybe_update): Update.
1204 2019-08-16 Tom Tromey <tom@tromey.com>
1206 * tui/tui-winsource.h (struct tui_source_window_base)
1207 <update_source_window_as_is>: Declare.
1208 (tui_update_source_window_as_is): Don't declare.
1209 * tui/tui-winsource.c (tui_update_source_window): Update
1210 (tui_source_window_base::update_source_window_as_is): Rename from
1211 tui_update_source_window_as_is.
1212 (tui_source_window_base::refill): Update.
1213 * tui/tui-source.c (tui_show_symtab_source): Update.
1214 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
1217 2019-08-16 Tom Tromey <tom@tromey.com>
1219 * tui/tui-winsource.h (tui_update_source_window)
1220 (tui_update_source_window_as_is): Remove "noerror" parameter.
1221 * tui/tui-winsource.c (tui_update_source_window)
1222 (tui_update_source_window_as_is): Remove "noerror" parameter.
1223 (tui_update_source_windows_with_addr)
1224 (tui_update_source_windows_with_line)
1225 (tui_source_window_base::rerender)
1226 (tui_source_window_base::refill): Update.
1227 * tui/tui-source.h (tui_set_source_content)
1228 (tui_show_symtab_source): Remove "noerror" parameter.
1229 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
1231 (tui_show_symtab_source): Likewise.
1232 (tui_source_window::maybe_update): Update.
1233 * tui/tui-disasm.c (tui_show_disassem)
1234 (tui_show_disassem_and_update_source)
1235 (tui_disasm_window::do_scroll_vertical)
1236 (tui_disasm_window::maybe_update): Update.
1238 2019-08-16 Tom Tromey <tom@tromey.com>
1240 * tui/tui.c (tui_is_window_visible): Update.
1241 * tui/tui-wingeneral.c (tui_make_window)
1242 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
1243 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
1244 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
1245 (tui_set_win_height_command, parse_scrolling_args): Update.
1246 * tui/tui-source.c (tui_source_window::style_changed): Update.
1247 * tui/tui-regs.c (tui_show_registers)
1248 (tui_data_window::first_data_item_displayed)
1249 (tui_data_window::delete_data_content_windows)
1250 (tui_check_register_values, tui_reg_command): Update.
1251 * tui/tui-disasm.c (tui_show_disassem): Update.
1252 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
1254 <is_visible>: Remove field.
1255 * tui/tui-data.c (tui_next_win, tui_prev_win)
1256 (tui_delete_invisible_windows): Update.
1258 2019-08-16 Tom Tromey <tom@tromey.com>
1260 * tui/tui-winsource.h (struct tui_source_window_base)
1261 <m_has_locator>: Remove.
1262 * tui/tui-layout.c (show_source_disasm_command, show_data)
1263 (show_source_or_disasm_and_command): Update.
1265 2019-08-16 Alan Hayward <alan.hayward@arm.com>
1267 * NEWS (Other MI changes): New subsection.
1268 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
1269 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
1270 * arch-utils.c (default_get_pc_address_flags): New function.
1271 * arch-utils.h (default_get_pc_address_flags): New declaration.
1272 * gdbarch.sh: Add get_pc_address_flags.
1273 * gdbarch.c: Regenerate.
1274 * gdbarch.h: Likewise.
1275 * stack.c (print_pc): New function.
1276 (print_frame_info) (print_frame): Call print_pc.
1278 2019-08-16 Tom de Vries <tdevries@suse.de>
1280 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
1281 print_objfile_section_info.
1283 2019-08-15 Tom Tromey <tom@tromey.com>
1285 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
1286 calling update_cmdwin_start_line.
1287 * tui/tui-winsource.h (struct tui_source_window_base)
1288 <do_make_visible_with_new_height, set_new_height>: Don't declare.
1289 <rerender>: Declare.
1290 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
1292 (tui_source_window_base::set_new_height): Remove.
1293 (tui_source_window_base::rerender): Rename from
1294 do_make_visible_with_new_height.
1295 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
1297 (tui_win_info::make_invisible_and_set_new_height)
1298 (tui_win_info::make_visible_with_new_height): Remove.
1299 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
1301 * tui/tui-stack.c (tui_locator_window::rerender): New method.
1302 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
1303 do_make_visible_with_new_height>: Don't declare.
1304 <rerender>: Declare.
1305 * tui/tui-regs.c (tui_data_window::rerender): Rename from
1307 (tui_data_window::do_make_visible_with_new_height): Remove.
1308 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
1309 call tui_show_locator_content.
1310 (tui_gen_win_info::resize): Call rerender.
1311 (show_source_or_disasm_and_command): Don't call
1312 tui_show_locator_content.
1313 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
1315 (struct tui_win_info) <rerender>: Declare.
1316 <set_new_height, make_invisible_and_set_new_height,
1317 make_visible_with_new_height>: Don't declare.
1318 * tui/tui-data.c (tui_win_list::rerender): New method.
1319 * tui/tui-command.h (struct tui_cmd_window)
1320 <do_make_visible_with_new_height>: Don't declare.
1322 (tui_cmd_window::do_make_visible_with_new_height): Remove.
1324 2019-08-15 Tom Tromey <tromey@adacore.com>
1326 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
1327 * ada-lang.c (ada_enum_name): Likewise.
1329 2019-08-15 Christian Biesinger <cbiesinger@google.com>
1331 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
1333 (GdbOutputErrorFile): Likewise.
1334 (global scope): Adjust constructor calls to GdbOutput{,Error}File
1336 (execute_unwinders): Rename to have a leading underscore.
1337 (auto_load_packages): Likewise.
1338 (global scope): Adjust call to auto_load_packages accordingly.
1339 (GdbSetPythonDirectory): Likewise.
1340 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
1341 instead of execute_unwinders.
1343 2019-08-15 Tom Tromey <tom@tromey.com>
1345 * tui/tui-layout.c (show_layout, show_source_disasm_command)
1346 (show_data): Don't change window visibility.
1347 (tui_gen_win_info::resize): Remove special case for command
1348 window. Use wresize, when available.
1349 (show_source_or_disasm_and_command): Don't change window
1351 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
1352 <make_visible>: New method.
1353 * tui/tui-command.c (tui_cmd_window::resize): New method.
1355 2019-08-15 Tom Tromey <tom@tromey.com>
1357 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
1358 (struct tui_source_windows): New.
1359 * tui/tui-winsource.c (tui_display_main): Update.
1360 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
1361 (new_height_ok, parse_scrolling_args): Update.
1362 * tui/tui-layout.c (show_layout, show_data): Update.
1363 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
1364 (tui_add_to_source_windows): Don't declare.
1365 * tui/tui-data.c (source_windows, tui_source_windows)
1366 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
1368 2019-08-15 Tom Tromey <tom@tromey.com>
1370 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
1372 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
1373 * tui/tui-layout.c (show_source_disasm_command, show_data):
1375 (tui_gen_win_info::resize): Rename.
1376 (show_source_or_disasm_and_command): Update.
1377 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
1380 2019-08-15 Tom Tromey <tom@tromey.com>
1382 * tui/tui-stack.c (tui_initialize_static_data): Remove.
1383 * tui/tui-interp.c (tui_interp::init): Don't call
1384 tui_initialize_static_data.
1385 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
1387 2019-08-15 Tom Tromey <tom@tromey.com>
1389 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
1390 examine tui_win_list.
1392 2019-08-15 Tom Tromey <tom@tromey.com>
1394 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
1395 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
1396 tui_clear_source_content.
1397 (tui_clear_source_content): Remove.
1398 (tui_source_window_base::do_erase_source_content): Hoist call to
1400 * tui/tui-stack.c (tui_show_frame_info): Don't call
1401 tui_clear_source_content.
1403 2019-08-15 Tom Tromey <tom@tromey.com>
1405 * tui/tui-winsource.h (struct tui_source_window_base)
1406 <do_erase_source_content>: New method.
1407 <erase_source_content>: New method.
1408 (tui_erase_source_content): Don't declare.
1409 * tui/tui-winsource.c (tui_clear_source_content): Update.
1410 (tui_source_window_base::do_erase_source_content): Rename from
1411 tui_erase_source_content.
1412 (tui_source_window_base::show_source_content): Update.
1413 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
1414 * tui/tui-source.h (struct tui_source_window)
1415 <erase_source_content>: New method.
1416 * tui/tui-disasm.h (struct tui_disasm_window)
1417 <erase_source_content>: New method.
1419 2019-08-15 Tom Tromey <tom@tromey.com>
1421 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
1422 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
1424 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
1425 * tui/tui-source.c (tui_set_source_content): Update.
1426 * tui/tui-disasm.c (tui_set_disassem_content): Update.
1428 2019-08-15 Tom Tromey <tom@tromey.com>
1430 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
1431 * tui/tui-winsource.c (tui_line_is_displayed): Move to
1433 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
1435 * tui/tui-source.c (tui_source_window::line_is_displayed): New
1437 (tui_source_window::maybe_update): Update.
1439 2019-08-15 Tom Tromey <tom@tromey.com>
1441 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
1442 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
1444 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
1446 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
1448 (tui_disasm_window::maybe_update): Update.
1450 2019-08-15 Tom Tromey <tom@tromey.com>
1452 * tui/tui-winsource.h (struct tui_source_window_base)
1453 <maybe_update>: Declare.
1454 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
1456 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
1458 * tui/tui-source.c (tui_source_window::maybe_update): New method.
1459 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
1461 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
1463 2019-08-15 Tom Tromey <tom@tromey.com>
1465 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
1467 2019-08-15 Tom Tromey <tom@tromey.com>
1469 * tui/tui-wingeneral.c: Include tui-stack.h.
1470 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
1471 (struct tui_locator_window): Move from tui-data.h.
1472 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
1473 (tui_initialize_static_data): Move from tui-data.c.
1474 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
1475 (struct tui_locator_window): Move to tui-stack.c.
1476 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
1477 (tui_initialize_static_data): Move to tui-stack.c.
1479 2019-08-15 Tom Tromey <tom@tromey.com>
1481 * tui/tui-layout.c (show_source_disasm_command)
1482 (show_source_or_disasm_and_command): Use make_visible method, not
1484 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
1487 2019-08-15 Tom Tromey <tom@tromey.com>
1489 * tui/tui-wingeneral.h (tui_make_window): Update.
1490 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
1492 (tui_gen_win_info::make_visible): Update.
1493 * tui/tui-regs.c (tui_data_window::display_registers_from):
1495 * tui/tui-layout.c (show_source_disasm_command)
1496 (show_source_or_disasm_and_command): Update.
1497 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
1498 (enum tui_box): Remove.
1499 (struct tui_win_info) <can_box>: New method.
1500 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
1503 2019-08-15 Tom de Vries <tdevries@suse.de>
1505 * linux-nat-trad.c: Include gdbarch.h.
1507 2019-08-14 Alan Hayward <alan.hayward@arm.com>
1509 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
1512 2019-08-14 Tom Tromey <tromey@adacore.com>
1514 * darwin-nat.c: Include gdbarch.h.
1515 * darwin-nat-info.c: Include gdbarch.h.
1517 2019-08-13 Tom Tromey <tom@tromey.com>
1519 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
1521 * tui/tui-data.c (tui_initialize_static_data): Update.
1523 2019-08-13 Tom Tromey <tom@tromey.com>
1525 * tui/tui-winsource.h (struct tui_exec_info_window)
1526 <~tui_exec_info_window, maybe_allocate_content, get_content,
1528 (struct tui_source_window_base) <set_exec_info_content,
1529 show_exec_info_content>: Don't declare.
1530 * tui/tui-winsource.c
1531 (tui_exec_info_window::maybe_allocate_content): Remove.
1532 (tui_source_window_base::update_exec_info): Rename from
1533 set_exec_info_content.
1534 (tui_source_window_base::show_exec_info_content)
1535 (tui_source_window_base::update_exec_info): Remove.
1537 2019-08-13 Tom Tromey <tom@tromey.com>
1539 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
1541 * tui/tui-winsource.c (tui_update_source_window_as_is)
1542 (tui_update_source_windows_with_addr, tui_erase_source_content):
1544 (tui_clear_exec_info_content): Remove.
1546 2019-08-13 Tom Tromey <tom@tromey.com>
1548 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
1550 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
1551 call tui_erase_exec_info_content.
1552 (tui_clear_exec_info_content): Rename from
1553 tui_erase_exec_info_content.
1554 (tui_clear_exec_info_content): Delete.
1556 2019-08-13 Tom Tromey <tom@tromey.com>
1558 * tui/tui-winsource.h (struct tui_source_window_base)
1559 <show_exec_info_content>: Declare.
1560 (tui_show_exec_info_content): Don't declare.
1561 * tui/tui-winsource.c
1562 (tui_source_window_base::show_exec_info_content): Rename from
1563 tui_show_exec_info_content.
1564 (tui_source_window_base::update_exec_info): Update.
1566 2019-08-13 Tom Tromey <tom@tromey.com>
1568 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
1569 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
1570 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
1571 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
1572 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
1573 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
1576 2019-08-13 Tom Tromey <tom@tromey.com>
1578 * tui/tui-winsource.h (struct tui_source_window_base)
1579 <update_exec_info>: Declare.
1580 (tui_update_exec_info): Don't declare.
1581 * tui/tui-winsource.c (tui_update_source_window_as_is)
1582 (tui_source_window_base::refresh_all)
1583 (tui_update_all_breakpoint_info): Update.
1584 (tui_source_window_base::update_exec_info): Rename from
1585 tui_update_exec_info.
1586 * tui/tui-stack.c (tui_show_frame_info): Update.
1588 2019-08-13 Tom Tromey <tom@tromey.com>
1590 * tui/tui-winsource.h (struct tui_source_window_base)
1591 <set_exec_info_content>: Declare.
1592 (tui_set_exec_info_content): Don't declare.
1593 * tui/tui-winsource.c
1594 (tui_source_window_base::set_exec_info_content): Rename from
1595 tui_set_exec_info_content.
1596 (tui_update_exec_info): Update.
1598 2019-08-13 Tom Tromey <tom@tromey.com>
1600 * tui/tui-winsource.h (struct tui_source_window_base)
1601 <show_source_content>: Declare.
1602 (tui_show_source_content): Don't declare.
1603 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1604 (tui_source_window_base::show_source_content): Rename from
1605 tui_show_source_content.
1606 (tui_source_window_base::refresh_all): Update.
1607 * tui/tui-layout.c (show_source_disasm_command)
1608 (show_source_or_disasm_and_command): Update.
1610 2019-08-13 Tom Tromey <tom@tromey.com>
1612 * tui/tui-winsource.c (tui_erase_source_content)
1613 (tui_show_source_content, tui_source_window_base::refresh_all):
1615 * tui/tui-wingeneral.h
1616 (tui_check_and_display_highlight_if_needed): Don't declare.
1617 * tui/tui-wingeneral.c
1618 (tui_win_info::check_and_display_highlight_if_needed): Rename from
1619 check_and_display_highlight_if_needed.
1620 * tui/tui-win.c (tui_rehighlight_all)
1621 (tui_win_info::make_visible_with_new_height): Update.
1622 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
1623 (tui_data_window::erase_data_content)
1624 (tui_data_window::display_all_data): Update.
1625 * tui/tui-data.h (struct tui_win_info)
1626 <check_and_display_highlight_if_needed>: Declare.
1628 2019-08-13 Tom Tromey <tom@tromey.com>
1630 * tui/tui-win.c (tui_resize_all): Call
1631 tui_delete_invisible_windows.
1632 * tui/tui-layout.c (show_layout): Call
1633 tui_delete_invisible_windows.
1634 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
1635 * tui/tui-data.c (tui_delete_invisible_windows): New function.
1637 2019-08-13 Tom Tromey <tom@tromey.com>
1639 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
1640 tui_add_win_to_layout.
1642 2019-08-13 Tom Tromey <tom@tromey.com>
1644 * tui/tui-layout.h (tui_default_win_height): Don't declare.
1645 * tui/tui-layout.c (tui_default_win_height): Now static.
1647 2019-08-13 Tom Tromey <tom@tromey.com>
1649 * tui/tui-layout.c (show_layout): Unify all layout cases into a
1651 (show_source_disasm_command, show_source_or_disasm_and_command):
1652 Don't check current layout.
1654 2019-08-13 Tom Tromey <tom@tromey.com>
1656 * tui/tui-wingeneral.c (make_all_visible): Remove.
1657 (tui_make_all_invisible): Simplify.
1658 * tui/tui-layout.c (tui_make_all_invisible): Move from
1659 tui-wingeneral.c; simplify.
1660 (show_layout): Hoist call to tui_make_all_invisible.
1661 (show_data): Don't call tui_make_all_invisible.
1663 2019-08-13 Tom Tromey <tom@tromey.com>
1665 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
1666 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
1668 2019-08-13 Tom Tromey <tom@tromey.com>
1670 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
1672 (show_source_disasm_command, show_data)
1673 (show_source_or_disasm_and_command): Don't use
1674 tui_set_current_layout_to.
1675 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
1676 * tui/tui-data.c (current_layout, tui_current_layout): Move to
1678 (tui_set_current_layout_to): Remove.
1680 2019-08-13 Tom Tromey <tom@tromey.com>
1682 * tui/tui-layout.c (tui_set_layout): Update.
1683 * tui/tui-data.h (struct tui_layout_def): Remove.
1684 (tui_layout_def): Don't declare.
1685 * tui/tui-data.c (layout_def): Remove.
1686 (tui_layout_def): Remove.
1688 2019-08-13 Tom Tromey <tom@tromey.com>
1690 * tui/tui-winsource.h (struct tui_source_window_base)
1691 <clear_detail>: No longer "override".
1692 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
1693 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
1694 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
1695 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
1697 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
1699 2019-08-13 Tom Tromey <tromey@adacore.com>
1701 * tracepoint.c: Don't include readline.h or history.h.
1703 2019-08-12 Tom Tromey <tom@tromey.com>
1705 * configure: Rebuild.
1706 * configure.ac: Check for readline 7.
1707 * NEWS: Mention readline 7 requirement.
1710 2019-08-12 Tom Tromey <tom@tromey.com>
1712 * mingw-hdep.c (gdb_select): Remove readline hack.
1714 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1716 * blockframe.c (find_pc_partial_function): Set *block to nullptr
1717 when the function fails.
1719 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
1721 * s390-tdep.c (s390_type_align): New function.
1722 (s390_gdbarch_init): Set it as type_align gdbarch method.
1724 2019-08-09 Tom de Vries <tdevries@suse.de>
1727 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
1728 pc_low with relocation offset.
1730 2019-08-07 Tom Tromey <tromey@adacore.com>
1732 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
1733 (print_frame_args): Update.
1734 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
1736 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1737 * frame.h (struct frame_arg): Add initializers.
1738 <error>: Now a unique_xmalloc_ptr.
1740 2019-08-07 Alan Hayward <alan.hayward@arm.com>
1742 * NEWS: Expand the Pointer Authentication entry.
1743 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
1744 (aarch64_frame_unmask_lr): ... to this.
1745 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
1746 Call aarch64_frame_unmask_lr.
1747 * frame.c (struct frame_info): Add "masked" variable.
1748 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
1749 (fprint_frame): Check for masked pc.
1750 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
1752 * python/py-framefilter.c (py_print_frame): Check for masked pc.
1753 * stack.c (print_frame): Check for masked pc.
1755 2019-08-06 Tom Tromey <tom@tromey.com>
1757 * stabsread.c (patch_block_stabs, read_one_struct_field)
1758 (read_enum_type): Use obstack_strndup.
1759 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
1760 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
1761 * dwarf2read.c (guess_full_die_structure_name)
1762 (anonymous_struct_prefix): Use obstack_strndup.
1763 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
1764 * c-exp.y (yylex): Use obstack_strndup.
1765 * ada-exp.y (write_object_renaming, write_ambiguous_var)
1766 (write_var_or_type): Use obstack_strndup.
1768 2019-08-06 Tom Tromey <tom@tromey.com>
1770 * symfile.c (reread_symbols): Use obstack_strdup.
1771 * stabsread.c (read_type): Use obstack_strdup.
1772 * gdb_obstack.h (obstack_strdup): New overload.
1773 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
1774 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
1775 (dwarf2_canonicalize_name): Use obstack_strdup.
1776 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
1777 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
1780 2019-08-06 Tom Tromey <tom@tromey.com>
1782 * gdb_obstack.h (obstack_strdup): Define.
1783 * gdb_obstack.c (obstack_strdup): Don't define.
1785 2019-08-06 Tom Tromey <tom@tromey.com>
1787 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
1789 * typeprint.c (typedef_hash_table::find_global_typedef): Use
1791 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
1792 * stabsread.c (common_block_start): Use obstack_strdup.
1793 * objfiles.c (set_objfile_main_name, objfile): Use
1795 * namespace.c (add_using_directive): Use obstack_strdup.
1796 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
1797 * jit.c (finalize_symtab): Use obstack_strdup.
1798 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
1799 (guess_partial_die_structure_name, partial_die_info::fixup)
1800 (dwarf2_name): Use obstack_strdup.
1801 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
1803 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
1804 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
1806 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
1808 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1810 * unittests/help-doc-selftests.c: New file.
1811 * Makefile.in: Add the new file.
1813 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1815 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
1816 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
1817 the full first line, except when FOR_VALUE_PREFIX. In this case,
1818 the trailing '.' is not output, and the first character is uppercased.
1819 (print_help_for_command): Update call to print_doc_line.
1820 (print_doc_of_command): Likewise.
1821 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
1822 * cli/cli-option.c (append_indented_doc): Do not append newline.
1823 (build_help_option): Append newline after first appended_indented_doc
1824 only if a second call is done.
1825 (build_help): Append 2 new lines before each option, except the first
1827 * compile/compile.c (_initialize_compile): Add new lines after
1828 %OPTIONS%, when not at the end of the help.
1829 Change help doc or code
1830 producing the help doc to respect the invariants.
1831 * maint-test-options.c (_initialize_maint_test_options): Likewise.
1832 Also removed the new line after 'Options:', as all other commands
1833 do not put an empty line between 'Options:' and the first option.
1834 * printcmd.c (_initialize_printcmd): Likewise.
1835 * stack.c (_initialize_stack): Likewise.
1836 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
1837 incorrectly telling COMMAND is optional.
1838 * ada-lang.c (_initialize_ada_language): Change help doc or code
1839 producing the help doc to respect the invariants.
1840 * ada-tasks.c (_initialize_ada_tasks): Likewise.
1841 * breakpoint.c (_initialize_breakpoint): Likewise.
1842 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
1843 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
1844 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
1845 * cli/cli-style.c (cli_style_option::add_setshow_commands,
1846 _initialize_cli_style): Likewise.
1847 * corelow.c (core_target_info): Likewise.
1848 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
1849 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
1850 * filesystem.c (_initialize_filesystem): Likewise.
1851 * frame.c (_initialize_frame): Likewise.
1852 * gnu-nat.c (add_task_commands): Likewise.
1853 * infcall.c (_initialize_infcall): Likewise.
1854 * infcmd.c (_initialize_infcmd): Likewise.
1855 * interps.c (_initialize_interpreter): Likewise.
1856 * language.c (_initialize_language): Likewise.
1857 * linux-fork.c (_initialize_linux_fork): Likewise.
1858 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
1859 * maint.c (_initialize_maint_cmds): Likewise.
1860 * memattr.c (_initialize_mem): Likewise.
1861 * printcmd.c (_initialize_printcmd): Likewise.
1862 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
1864 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
1865 * record-btrace.c (_initialize_record_btrace): Likewise.
1866 * record-full.c (_initialize_record_full): Likewise.
1867 * record.c (_initialize_record): Likewise.
1868 * regcache-dump.c (_initialize_regcache_dump): Likewise.
1869 * regcache.c (_initialize_regcache): Likewise.
1870 * remote.c (add_packet_config_cmd, init_remote_threadtests,
1871 _initialize_remote): Likewise.
1872 * ser-tcp.c (_initialize_ser_tcp): Likewise.
1873 * serial.c (_initialize_serial): Likewise.
1874 * skip.c (_initialize_step_skip): Likewise.
1875 * source.c (_initialize_source): Likewise.
1876 * stack.c (_initialize_stack): Likewise.
1877 * symfile.c (_initialize_symfile): Likewise.
1878 * symtab.c (_initialize_symtab): Likewise.
1879 * target-descriptions.c (_initialize_target_descriptions): Likewise.
1880 * top.c (init_main): Likewise.
1881 * tracefile-tfile.c (tfile_target_info): Likewise.
1882 * tracepoint.c (_initialize_tracepoint): Likewise.
1883 * tui/tui-win.c (_initialize_tui_win): Likewise.
1884 * utils.c (add_internal_problem_command): Likewise.
1885 * valprint.c (value_print_option_defs): Likewise.
1887 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
1890 * configure.ac: Drop enable-libmcheck support.
1891 * configure, config.in: Rebuild.
1892 * libmcheck.m4: Remove.
1893 * acinclude.m4: Don't include it.
1894 * Makefile.in: Don't distribute it.
1895 * top.c (print_gdb_configuration): Don't mention it.
1897 2019-08-06 Tom Tromey <tom@tromey.com>
1899 * utils.c (set_output_style): Sometimes pass stream to
1901 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
1902 * record-btrace.c (btrace_insn_history): Update.
1903 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
1905 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
1906 Update initializers.
1907 <m_uiout>: New field.
1909 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1910 Remove "uiout" parameter.
1911 (dump_insns): Update.
1912 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
1913 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
1915 2019-08-06 Christian Biesinger <cbiesinger@google.com>
1917 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
1918 (error_in_psymtab_expansion): Likewise.
1919 (lookup_symbol_via_quick_fns): Likewise.
1920 (basic_lookup_transparent_type_quick): Likewise.
1921 (basic_lookup_transparent_type_1): Likewise.
1923 2019-08-06 Tom Tromey <tromey@adacore.com>
1925 * source.c (last_source_error): Now bool.
1926 (print_source_lines_base): Make "noprint" bool. Only open
1927 source file when last_source_visited changes.
1929 2019-08-06 Tom Tromey <tromey@adacore.com>
1931 * annotate.c (annotate_source_line): Use g_source_cache.
1932 * source-cache.c (source_cache::get_plain_source_lines): Change
1933 parameters. Populate m_offset_cache.
1934 (source_cache::ensure): New method.
1935 (source_cache::get_line_charpos): New method.
1936 (extract_lines): Move lower. Change parameters.
1937 (source_cache::get_source_lines): Move lower.
1938 * source-cache.h (class source_cache): Update comment.
1939 <get_line_charpos>: New method.
1940 <get_source_lines>: Update comment.
1941 <clear>: Clear m_offset_cache.
1942 <get_plain_source_lines>: Change parameters.
1943 <ensure>: New method
1944 <m_offset_cache>: New member.
1945 * source.c (forget_cached_source_info_for_objfile): Update.
1946 (info_source_command): Use g_source_cache.
1947 (find_source_lines, open_source_file_with_line_charpos): Remove.
1948 (print_source_lines_base, search_command_helper): Use g_source_cache.
1949 * source.h (open_source_file_with_line_charpos): Don't declare.
1950 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
1951 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
1954 2019-08-06 Tom Tromey <tromey@adacore.com>
1956 * source-cache.c (source_cache::get_plain_source_lines):
1957 Remove "first_line" and "last_line" parameters.
1958 (source_cache::get_source_lines): Cache plain text.
1959 * source-cache.h (class source_cache)
1960 <get_plain_source_lines>: Update.
1962 2019-08-06 Tom Tromey <tromey@adacore.com>
1964 * source-cache.c (extract_lines): No longer a method.
1965 Changed type of parameter. Include final newline.
1966 (selftests::extract_lines_test): New function.
1967 (_initialize_source_cache): Likewise.
1968 * source-cache.h (class source_cache)
1969 <extract_lines>: Don't declare.
1971 2019-08-06 Tom Tromey <tromey@adacore.com>
1973 * breakpoint.c (init_breakpoint_sal): Update.
1974 (breakpoint): Update.
1975 * breakpoint.h (struct breakpoint) <filter>: Now a
1978 2019-08-05 Christian Biesinger <cbiesinger@google.com>
1980 * NEWS: Mention dictionary access on blocks.
1981 * python/py-block.c (blpy_getitem): New function.
1982 (block_object_as_mapping): New struct.
1983 (block_object_type): Use new struct for tp_as_mapping field.
1985 2019-08-05 Christian Biesinger <cbiesinger@google.com>
1987 * objfiles.h (objfile): Add a comment describing partial symbols.
1989 2019-08-05 Tom Tromey <tromey@adacore.com>
1991 * compile/compile.c (_initialize_compile): Use _(), not N_().
1992 * thread.c (_initialize_thread): Use _(), not N_().
1993 * stack.c (_initialize_stack): Use _(), not N_().
1994 * printcmd.c (_initialize_printcmd): Use _(), not N_().
1996 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1998 * dwarf2read.c (struct dw2_symtab_iterator):
1999 <want_specific_block>: Remove.
2000 <block_index>: Change type to gdb::optional.
2001 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
2002 change type of BLOCK_INDEX parameter to gdb::optional.
2003 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
2004 (dw2_lookup_symbol): Don't pass argument for
2005 WANT_SPECIFIC_BLOCK.
2006 (dw2_expand_symtabs_for_function): Don't pass argument for
2007 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
2008 (class dw2_debug_names_iterator)
2009 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
2010 parameter, change BLOCK_INDEX type to gdb::optional.
2011 <m_want_specific_block>: Remove.
2012 <m_block_index>: Change type to gdb::optional.
2013 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
2014 gdb::optional. Re-write in function of gdb::optional.
2015 (dw2_debug_names_lookup_symbol): Don't pass argument for
2016 WANT_SPECIFIC_BLOCK.
2017 (dw2_debug_names_expand_symtabs_for_function): Don't pass
2018 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
2021 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2023 * NEWS: Mention changes to "info sources" command.
2025 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2027 * symtab.c (filename_partial_match_opts): New struct type.
2028 (struct output_source_filename_data): New members
2029 regexp, c_regexp, partial_match.
2030 (output_source_filename): Use new members to decide to print file.
2031 (info_sources_option_defs): New variable.
2032 (make_info_sources_options_def_group, print_info_sources_header,
2033 info_sources_command_completer):
2035 (info_sources_command): Read new optional arguments.
2036 (_initialize_symtab): Update info sources help.
2038 2019-08-02 Alexandre Oliva <oliva@adacore.com>
2040 * ada-lang.c (exception_support_info_v0): Renamed from...
2041 (default_exception_support_info): ... this. Create new
2043 (ada_has_this_exception_support): Look up catch_handlers_sym.
2044 (ada_exception_support_info_sniffer): Try v0 after default.
2046 2019-08-01 Tom Tromey <tromey@adacore.com>
2048 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
2051 2019-08-01 Christian Biesinger <cbiesinger@google.com>
2053 * s12z-tdep.c: Fix include path for s12z-opc.h.
2055 2019-08-01 Alan Hayward <alan.hayward@arm.com>
2057 * NEWS: Require GNU make 3.82.
2059 2019-07-16 Tom Tromey <tom@tromey.com>
2061 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
2064 2019-07-30 Tom Tromey <tromey@adacore.com>
2066 * block.c (contained_in): Remove BLOCK_FUNCTION check.
2068 2019-07-30 Kevin Buettner <kevinb@redhat.com>
2070 * printcmd.c (print_address_symbolic): Print negative offsets.
2071 (build_address_symbolic): Force signed arithmetic when computing
2074 2019-07-30 Christian Biesinger <cbiesinger@google.com>
2076 PR/24474: Add a function to lookup static variables.
2077 * NEWS: Mention this new function.
2078 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
2079 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
2080 * python/python.c (python_GdbMethods): Add new function.
2082 2019-07-29 Christian Biesinger <cbiesinger@google.com>
2084 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
2085 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
2086 (objfpy_lookup_static_symbol): New function.
2087 (objfile_object_methods): Add new functions.
2089 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2091 * NEWS: Mention 'set|show print frame-info'. Mention new
2092 'presence' value for 'frame-arguments'. Mention new '-frame-info'
2093 backtrace argument. Mention that python frame filtering code
2094 is now consistent with what 'backtrace' command prints.
2096 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2098 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
2100 (print_frame_info_auto, print_frame_info_source_line,
2101 print_frame_info_location, print_frame_info_source_and_location,
2102 print_frame_info_location_and_address, print_frame_info_short_location):
2104 (struct frame_print_options): New member print_frame_info.
2105 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
2106 * stack.h (get_user_print_what_frame_info): New declaration.
2107 (frame_show_address): New declaration.
2108 * stack.c (print_frame_arguments_choices): New value 'presence'.
2109 (print_frame_info_auto, print_frame_info_source_line,
2110 print_frame_info_location, print_frame_info_source_and_location,
2111 print_frame_info_location_and_address, print_frame_info_short_location,
2112 print_frame_info_choices, print_frame_info_print_what): New definitions.
2113 (print_frame_args): Only print dots for args if print frame-arguments
2115 (frame_print_option_defs): New element for "frame-info".
2116 (get_user_print_what_frame_info): New function.
2117 (frame_show_address): Make non static. Move comment to stack.h.
2118 (print_frame_info_to_print_what): New function.
2119 (print_frame_info): Update comment. Use fp_opts.print_frame_info
2120 to decide what to print.
2121 (backtrace_command_1): Handle the new print_frame_arguments_presence
2123 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
2124 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
2125 (py_print_frame): In non-mi mode, use LOCATION as default for
2126 print_what, similarly to frame information printed directly by
2127 backtrace command. Handle frame-info user option in non MI mode.
2129 2019-07-27 Kevin Buettner <kevinb@redhat.com>
2131 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
2132 Add case for debugging 32-bit target on 64-bit host. Revise
2135 2019-07-27 Kevin Buettner <kevinb@redhat.com>
2137 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
2138 instead of find_function_entry_range_from_pc.
2140 2019-07-27 Kevin Buettner <kevinb@redhat.com>
2142 * stack.c (find_frame_funname): Remove code which preferred
2143 minsym over symtab sym in "certain pathological cases".
2145 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
2146 parameter. Change type of "do_demangle" to bool.
2147 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2148 Pass suitable "prefer_sym_over_minsym" flag to
2149 build_address_symbolic(). Don't output "+" for negative offsets.
2150 * printcmd.c (print_address_symbolic): Update invocation of
2151 build_address_symbolic to include a "prefer_sym_over_minsym"
2153 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
2154 Restrict cases in which use of minimal symbol is preferred to that
2155 of a found symbol. Update comments.
2157 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
2158 for entry pc when entry pc is out of range for that FDE.
2160 2019-07-26 Brian Callahan <bcallah@openbsd.org>
2163 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
2166 2019-07-25 Christian Biesinger <cbiesinger@google.com>
2168 * python/py-objfile.c (add_separate_debug_file): Fix comment about
2169 this function's Python signature.
2172 2019-07-24 Christian Biesinger <cbiesinger@google.com>
2174 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
2175 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
2176 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
2177 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
2178 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
2181 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
2183 * h8300-tdep.c (h8300_register_name_common): New.
2184 h8300_register_name): Use h8300_register_name_common.
2185 (h8300s_register_name): Likewise.
2186 (h8300sx_register_name): Likewise.
2187 (h8300h_register_nam): New.
2188 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
2191 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
2193 * arm-tdep.c (arm_skip_cmse_entry): New function.
2194 (arm_is_sgstubs_section): New function.
2195 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
2197 2019-07-22 Tom Tromey <tom@tromey.com>
2199 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
2202 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2204 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
2207 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2209 * symtab.c (search_symbols): Adjust msymbol matching type arrays
2210 so that GDB doesn't match any msymbols when searching in the
2212 (print_symbol_info): Print using typedef_print or type_print based
2213 on the type of the symbol. Add updated FIXME comment moved from...
2214 (_initialize_symtab): ... move and update FIXME comment to above.
2216 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2218 * NEWS: Mention adding -q option to "info types".
2219 * symtab.c (struct info_types_options): New struct.
2220 (info_types_options_defs): New variable.
2221 (make_info_types_options_def_group): New function.
2222 (info_types_command): Use gdb::option framework to parse options.
2223 (info_types_command_completer): New function.
2224 (_initialize_symtab): Extend the help text on "info types" and
2225 register command completer.
2227 2019-07-21 Christian Biesinger <cbiesinger@google.com>
2229 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
2230 (lookup_symbol_in_objfile): Change int to block_enum and add a
2231 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
2233 2019-07-20 Christian Biesinger <cbiesinger@google.com>
2235 * MAINTAINERS (Write After Approval): Add self.
2237 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
2239 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
2240 instruction to the dummy code region.
2242 2019-07-19 Tom Tromey <tromey@adacore.com>
2244 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
2245 (ARGSUSED, PARAMS, __func__): Remove rules.
2247 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2249 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
2250 * features/arm/arm-with-iwmmxt.c: Remove.
2251 * features/arm/arm-with-iwmmxt.xml: Remove.
2252 * features/arm/arm-with-m-fpa-layout.c: Remove.
2253 * features/arm/arm-with-m-fpa-layout.xml: Remove.
2254 * features/arm/arm-with-m-vfp-d16.c: Remove.
2255 * features/arm/arm-with-m-vfp-d16.xml: Remove.
2256 * features/arm/arm-with-m.c: Remove.
2257 * features/arm/arm-with-m.xml: Remove.
2258 * features/arm/arm-with-neon.c: Remove.
2259 * features/arm/arm-with-neon.xml: Remove.
2260 * features/arm/arm-with-vfpv2.c: Remove.
2261 * features/arm/arm-with-vfpv2.xml: Remove.
2262 * features/arm/arm-with-vfpv3.c: Remove.
2263 * features/arm/arm-with-vfpv3.xml: Remove.
2265 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2267 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
2269 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2271 * arch/aarch32.c (aarch32_create_target_description): Create
2272 target descriptions using features.
2273 * arch/arm.c (arm_create_target_description)
2274 (arm_create_mprofile_target_description): Likewise.
2275 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
2277 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2279 * Makefile.in: Add new files.
2280 * aarch32-tdep.c: New file.
2281 * aarch32-tdep.h: New file.
2282 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
2283 Call aarch32_read_description.
2284 * arch/aarch32.c: New file.
2285 * arch/aarch32.h: New file.
2286 * arch/arm.c (arm_create_target_description)
2287 (arm_create_mprofile_target_description): New function.
2288 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
2289 (arm_create_target_description)
2290 (arm_create_mprofile_target_description): New declaration.
2291 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
2292 read_description functions.
2293 * arm-linux-nat.c (arm_linux_nat_target::read_description):
2295 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
2296 * arm-tdep.c (tdesc_arm_list): New variable.
2297 (arm_register_g_packet_guesses): Call create description functions.
2298 (arm_read_description) (arm_read_mprofile_description): New
2300 * arm-tdep.h (arm_read_description)
2301 (arm_read_mprofile_description): Add declaration.
2302 * configure.tgt: Add new files.
2304 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
2306 * top.c (new_ui_command): Open specified terminal just once.
2308 2019-07-18 Tom Tromey <tromey@adacore.com>
2310 * symtab.c (main_name): Constify return type.
2311 * symfile.c (set_initial_language): Update.
2312 * symtab.h (main_name): Constify return type.
2314 2019-07-17 Tom Tromey <tom@tromey.com>
2316 * tui/tui-winsource.c (tui_update_source_window)
2317 (tui_update_source_window_as_is)
2318 (tui_update_source_windows_with_line): Remove return.
2319 * tui/tui-disasm.c (tui_show_disassem)
2320 (tui_show_disassem_and_update_source): Remove return.
2321 * tui/tui.c (tui_reset): Remove return.
2322 * tui/tui-wingeneral.c
2323 (tui_check_and_display_highlight_if_needed): Remove return.
2325 2019-07-17 Tom Tromey <tom@tromey.com>
2327 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
2329 2019-07-17 Tom Tromey <tom@tromey.com>
2331 * tui/tui-winsource.h (struct tui_exec_info_window)
2332 (struct tui_source_window_base): Move from tui-data.h.
2333 * tui/tui-winsource.c: Move many method definitions from
2334 elsewhere. Remove "structuring" comments.
2335 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
2336 (tui_source_window_base::refresh_window): Move to
2338 * tui/tui-win.c (tui_source_window_base::refresh_all)
2339 (tui_source_window_base::update_tab_width)
2340 (tui_source_window_base::set_new_height)
2341 (tui_source_window_base::do_make_visible_with_new_height): Move to
2343 * tui/tui-source.h: Update.
2344 * tui/tui-source.c (tui_source_window_base::reset): Move to
2346 * tui/tui-disasm.h: Update.
2347 * tui/tui-data.h (struct tui_exec_info_window): Move to
2349 (struct tui_source_window_base): Likewise.
2350 * tui/tui-data.c (tui_source_window_base::clear_detail)
2351 (tui_source_window_base, ~tui_source_window_base): Move to
2354 2019-07-17 Tom Tromey <tom@tromey.com>
2356 * tui/tui-win.c (tui_resize_all)
2357 (tui_source_window_base::update_tab_width)
2358 (tui_adjust_win_heights): Update.
2359 (tui_win_info::make_invisible_and_set_new_height): Rename from
2360 make_invisible_and_set_new_height.
2361 * tui/tui-data.h (struct tui_win_info)
2362 <make_invisible_and_set_new_height>: New method.
2364 2019-07-17 Tom Tromey <tom@tromey.com>
2366 * tui/tui.c: Update.
2367 * tui/tui-source.h (struct tui_source_window): Move from
2369 * tui/tui-layout.c: Update.
2370 * tui/tui-disasm.c: Update.
2371 * tui/tui-data.h (struct tui_source_window): Move to
2374 2019-07-17 Tom Tromey <tom@tromey.com>
2376 * tui/tui-disasm.h (struct tui_disasm_window): Move from
2378 * tui/tui-data.h (struct tui_disasm_window): Move to
2381 2019-07-17 Tom Tromey <tom@tromey.com>
2383 * tui/tui-regs.h (struct tui_data_item_window): Move from
2385 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
2386 * tui/tui-data.h (struct tui_data_item_window): Move to
2388 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
2390 2019-07-17 Tom Tromey <tom@tromey.com>
2392 * tui/tui.c: Update.
2393 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
2394 (tui_cmd_window::max_height): Move to tui-command.c.
2395 * tui/tui-layout.c: Update.
2396 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
2397 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
2399 * tui/tui-command.h (struct tui_cmd_window): Move from
2401 * tui/tui-command.c: Remove "structuring" comments.
2402 (tui_cmd_window::clear_detail)
2403 (tui_cmd_window::do_make_visible_with_new_height)
2404 (tui_cmd_window::max_height): Move from elsewhere.
2406 2019-07-17 Tom Tromey <tom@tromey.com>
2408 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
2410 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
2411 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
2413 2019-07-17 Tom Tromey <tom@tromey.com>
2415 * tui/tui.c: Update.
2416 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
2418 * tui/tui-windata.h: Remove file.
2419 * tui/tui-windata.c: Remove file.
2420 * tui/tui-win.c (tui_data_window::set_new_height)
2421 (tui_data_window::do_make_visible_with_new_height): Move to
2423 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
2424 * tui/tui-regs.c: Remove "structuring" comments.
2425 (tui_data_window::first_data_item_displayed)
2426 (tui_data_window::delete_data_content_windows)
2427 (tui_data_window::erase_data_content)
2428 (tui_data_window::display_all_data)
2429 (tui_data_window::refresh_all)
2430 (tui_data_window::do_scroll_vertical)
2431 (tui_data_window::clear_detail, tui_data_window::set_new_height)
2432 (tui_data_window::do_make_visible_with_new_height)
2433 (tui_data_window::refresh_window): Move from elsewhere.
2434 (_initialize_tui_regs): Move to end of file.
2435 * tui/tui-layout.c: Update.
2436 * tui/tui-hooks.c: Update.
2437 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
2438 * tui/tui-data.c (tui_data_window::clear_detail): Move to
2440 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
2442 2019-07-17 Tom Tromey <tom@tromey.com>
2444 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
2447 2019-07-17 Tom Tromey <tom@tromey.com>
2449 * tui/tui-win.c (tui_source_window_base::set_new_height)
2450 (tui_source_window_base::do_make_visible_with_new_height): Use
2451 m_has_locator field directly.
2452 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
2454 (struct tui_source_window_base) <has_locator>: Likewise.
2456 2019-07-17 Tom Tromey <tom@tromey.com>
2458 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
2460 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
2462 * tui/tui-win.c (tui_source_window_base::set_new_height)
2463 (tui_source_window_base::set_new_height)
2464 (make_invisible_and_set_new_height)
2465 (tui_source_window_base::do_make_visible_with_new_height)
2466 (tui_source_window_base::do_make_visible_with_new_height):
2468 * tui/tui-layout.c (show_source_disasm_command, show_data)
2469 (show_source_or_disasm_and_command): Update.
2470 * tui/tui-layout.c (show_layout): Update.
2472 2019-07-17 Tom Tromey <tom@tromey.com>
2474 * tui/tui-layout.c (make_data_window): Remove.
2475 (show_data): Unify creation and re-initialization cases.
2477 2019-07-17 Tom Tromey <tom@tromey.com>
2479 * tui/tui-layout.c (make_source_window, make_disasm_window):
2481 (show_data): Unify creation and re-initialization cases.
2483 2019-07-17 Tom Tromey <tom@tromey.com>
2485 * tui/tui-layout.c (make_command_window): Remove.
2486 (show_source_disasm_command, show_source_or_disasm_and_command):
2487 Unify creation and re-initialization cases.
2489 2019-07-17 Tom Tromey <tom@tromey.com>
2491 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
2492 creation and re-initialization cases.
2494 2019-07-17 Tom Tromey <tom@tromey.com>
2496 * tui/tui-regs.c (tui_get_register): Return void.
2498 2019-07-17 Tom Tromey <tom@tromey.com>
2500 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
2503 2019-07-17 Tom Tromey <tom@tromey.com>
2505 * tui/tui-layout.c (show_source_disasm_command): Simplify window
2508 2019-07-17 Tom Tromey <tom@tromey.com>
2510 * tui/tui.h (tui_set_layout_by_name): Don't declare.
2511 * tui/tui-regs.c (tui_reg_layout): New function.
2512 (tui_show_registers, tui_reg_command): Use it.
2513 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
2514 (tui_layout_command): Rename from tui_set_layout_by_name. Change
2516 (tui_layout_command): Remove.
2518 2019-07-17 Tom Tromey <tom@tromey.com>
2520 * tui/tui-layout.h (tui/tui-layout): Return void.
2521 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
2523 2019-07-17 Tom Tromey <tom@tromey.com>
2525 * tui/tui-layout.c (show_source_disasm_command, show_data):
2527 (reset_locator): Remove.
2528 (show_source_or_disasm_and_command): Update.
2530 2019-07-17 Tom Tromey <tom@tromey.com>
2532 * tui/tui-source.c (tui_source_window_base::reset): Remove
2534 * tui/tui-layout.c (make_command_window, make_source_window)
2535 (make_disasm_window, make_data_window)
2536 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
2537 (reset_locator, show_source_or_disasm_and_command): Update.
2538 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
2540 (struct tui_source_window_base) <reset>: Likewise.
2542 2019-07-17 Tom Tromey <tom@tromey.com>
2544 * tui/tui-layout.c (show_source_disasm_command): Use
2546 (reset_locator): New function.
2547 (init_and_make_win): Remove.
2548 (show_source_or_disasm_and_command): Use reset_locator.
2550 2019-07-17 Tom Tromey <tom@tromey.com>
2552 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
2554 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
2556 * tui/tui-source.c (tui_source_window_base::reset): New method.
2557 * tui/tui-layout.c (make_command_window): Don't call
2559 (make_source_window, make_disasm_window): Don't call
2560 make_source_or_disasm_window.
2561 (make_data_window): Don't call init_and_make_win. Change calling
2563 (show_source_disasm_command, show_data): Simplify.
2564 (make_source_or_disasm_window): Remove.
2565 (show_source_or_disasm_and_command): Simplify.
2566 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
2567 (struct tui_source_window_base) <reset>: Likewise.
2568 <execution_info>: Remove initializer.
2569 * tui/tui-data.c (tui_source_window_base): Initialize
2572 2019-07-17 Tom Tromey <tom@tromey.com>
2574 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
2577 2019-07-17 Tom Tromey <tom@tromey.com>
2579 * tui/tui.c (tui_rl_other_window): Update.
2580 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
2581 superclass method first. Always iterate over regs_content.
2582 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
2584 * tui/tui-win.c (tui_set_focus_command): Update.
2586 2019-07-17 Tom Tromey <tom@tromey.com>
2588 * tui/tui-win.c (tui_set_focus_command): Rename from
2589 tui_set_focus. Call tui_enable.
2590 (tui_set_focus_command): Remove.
2592 2019-07-17 Tom Tromey <tom@tromey.com>
2594 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
2596 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
2598 (tui_data_window::refresh_window): Call refresh_window on data
2599 items. Always call superclass refresh_window.
2600 (tui_win_info::refresh): Remove.
2601 (tui_source_window_base::refresh_window): Update.
2602 (tui_refresh_all): Update.
2603 * tui/tui-layout.c (show_source_disasm_command): Remove call to
2605 (show_source_or_disasm_and_command): Likewise.
2606 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
2607 (struct tui_source_window_base) <refresh>: Likewise.
2609 2019-07-17 Tom Tromey <tom@tromey.com>
2611 * tui/tui-winsource.c (tui_clear_source_content)
2612 (tui_show_source_content): Update.
2613 * tui/tui-source.c (tui_source_window::showing_source_p): Check
2614 whether content is empty.
2615 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
2618 2019-07-17 Tom Tromey <tom@tromey.com>
2620 * tui/tui-winsource.c (tui_erase_source_content): Clear the
2622 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
2623 * tui/tui-source.c (tui_set_source_content_nil): Remove.
2625 2019-07-17 Tom Tromey <tom@tromey.com>
2627 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
2628 (struct tui_data_item_window): Update.
2630 2019-07-17 Tom Tromey <tom@tromey.com>
2632 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
2633 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
2636 2019-07-17 Tom Tromey <tom@tromey.com>
2638 * tui/tui-winsource.h (tui_erase_source_content)
2639 (tui_clear_source_content): Remove "display_prompt" parameter.
2640 * tui/tui-winsource.c (tui_update_source_window_as_is)
2641 (tui_update_source_windows_with_addr): Update.
2642 (tui_clear_source_content): Remove "display_prompt" parameter.
2643 (tui_erase_source_content): Likewise. Simplify.
2644 (tui_show_source_content): Update.
2645 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2646 * tui/tui-stack.c (tui_show_frame_info): Update.
2647 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
2650 2019-07-17 Tom Tromey <tom@tromey.com>
2652 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2653 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
2655 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
2658 2019-07-17 Tom Tromey <tom@tromey.com>
2660 * tui/tui-winsource.c (tui_clear_source_content)
2661 (tui_show_source_content, tui_show_exec_info_content)
2662 (tui_clear_exec_info_content): Update.
2663 * tui/tui-stack.c (tui_show_locator_content): Update.
2664 (tui_show_frame_info): Update.
2665 * tui/tui-source.h (tui_source_window): Don't declare.
2666 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
2667 from tui_source_is_displayed.
2668 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
2670 (struct tui_source_window_base) <content_in_use>: New field. Now
2672 (struct tui_source_window) <showing_source_p>: New method.
2673 (TUI_SRC_WIN): Change cast.
2674 * tui/tui-data.c (tui_initialize_static_data): Update.
2676 2019-07-17 Tom Tromey <tom@tromey.com>
2678 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
2680 * tui/tui-source.c (tui_source_window::location_matches_p): New
2682 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
2684 * tui/tui-data.h (struct tui_source_window_base)
2685 <location_matches_p>: New method.
2686 (struct tui_source_window, struct tui_disasm_window)
2687 <location_matches_p>: Likewise.
2689 2019-07-17 Tom Tromey <tom@tromey.com>
2691 * tui/tui-win.c (tui_set_win_height_command): Rename from
2693 (tui_set_win_height_command): Remove.
2695 2019-07-17 Tom Tromey <tom@tromey.com>
2697 * tui/tui-source.c (tui_source_window): New constructor. Add
2699 (~tui_source_window): New destructor.
2700 (tui_source_window::style_changed): New method.
2701 * tui/tui-hooks.c (tui_redisplay_source): Remove.
2702 (tui_attach_detach_observers): Update.
2703 * tui/tui-data.h (struct tui_source_window): Make constructor not
2704 inline. Add destructor.
2705 (struct tui_source_window) <style_changed>: New method.
2706 <m_observable>: New member.
2708 2019-07-17 Tom Tromey <tom@tromey.com>
2710 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
2711 * tui/tui-win.c (tui_resize_all): Fix typo.
2713 2019-07-17 Tom Tromey <tom@tromey.com>
2715 * tui/tui-wingeneral.h (tui_refresh_all): Update.
2716 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
2717 (tui_refresh_all): Remove "list" parameter. Use foreach.
2718 * tui/tui-win.c (window_name_completer): Use foreach.
2719 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
2720 (update_tab_width): Likewise.
2721 * tui/tui-layout.c (show_layout): Update.
2722 * tui/tui-data.h (class tui_window_iterator): New.
2723 (struct all_tui_windows): New.
2724 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
2726 2019-07-17 Tom Tromey <tom@tromey.com>
2728 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
2729 parameter. Don't reference globals.
2730 (tui_reg_command): Update.
2732 2019-07-17 Tom Tromey <tom@tromey.com>
2734 * tui/tui-regs.c (tui_show_registers): Simplify.
2736 2019-07-17 Tom Tromey <tom@tromey.com>
2738 * tui/tui-regs.c (tui_show_registers): Update.
2739 (tui_show_register_group): Add win_info parameter.
2741 2019-07-17 Tom Tromey <tom@tromey.com>
2743 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
2744 Rename from tui_display_reg_element_at_line.
2745 (tui_data_window::display_registers_from_line): Update.
2746 * tui/tui-data.h (struct tui_data_window)
2747 <display_reg_element_at_line>: New method.
2749 2019-07-17 Tom Tromey <tom@tromey.com>
2751 * tui/tui-regs.h (tui_display_registers_from)
2752 (tui_display_registers_from_line): Don't declare.
2753 * tui/tui-windata.c (tui_data_window::display_all_data)
2754 (tui_data_window::refresh_all)
2755 (tui_data_window::do_scroll_vertical): Update.
2756 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
2757 from tui_display_registers_from.
2758 (tui_display_reg_element_at_line): Update.
2759 (tui_data_window::display_registers_from_line): Rename from
2760 tui_display_registers_from_line.
2761 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
2762 display_registers_from_line>: New methods.
2764 2019-07-17 Tom Tromey <tom@tromey.com>
2766 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
2767 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
2768 from tui_erase_data_content.
2769 (tui_data_window::display_all_data)
2770 (tui_data_window::refresh_all)
2771 (tui_data_window::do_scroll_vertical): Update.
2772 * tui/tui-regs.c (tui_show_registers): Update.
2773 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
2776 2019-07-17 Tom Tromey <tom@tromey.com>
2778 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
2781 (tui_data_window::delete_data_content_windows): Rename from
2782 tui_delete_data_content_windows.
2783 (tui_data_window::display_all_data)
2784 (tui_data_window::do_scroll_vertical): Update.
2785 * tui/tui-data.h (struct tui_data_window)
2786 <delete_data_content_windows>: New method.
2788 2019-07-17 Tom Tromey <tom@tromey.com>
2790 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
2791 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
2793 2019-07-17 Tom Tromey <tom@tromey.com>
2795 * tui/tui-windata.h (tui_display_all_data): Don't declare.
2796 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
2797 from tui_display_all_data.
2799 (tui_data_window::do_make_visible_with_new_height): Update.
2800 * tui/tui-regs.c (tui_show_registers): Update.
2801 * tui/tui-layout.c (tui_set_layout): Update.
2802 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
2805 2019-07-17 Tom Tromey <tom@tromey.com>
2807 * tui/tui-windata.h (tui_display_data_from): Don't declare.
2808 * tui/tui-windata.c (tui_display_data_from): Remove.
2809 (tui_data_window::refresh_all): Update.
2811 2019-07-17 Tom Tromey <tom@tromey.com>
2813 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
2814 * tui/tui-windata.c (tui_display_data_from_line): Remove.
2815 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
2816 tui_display_registers_from_line.
2817 * tui/tui-regs.h (tui_display_registers_from_line): Update.
2818 * tui/tui-regs.c (tui_display_registers_from_line): Remove
2819 "force_display" parameter.
2821 2019-07-17 Tom Tromey <tom@tromey.com>
2823 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
2825 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
2826 Rename from tui_first_reg_element_no_inline.
2827 (tui_display_reg_element_at_line)
2828 (tui_display_registers_from_line): Update.
2829 * tui/tui-data.h (struct tui_data_window)
2830 <first_reg_element_no_inline>: New method.
2832 2019-07-17 Tom Tromey <tom@tromey.com>
2834 * tui/tui-windata.c (tui_display_data_from)
2835 (tui_data_window::do_scroll_vertical): Update.
2836 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
2837 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
2838 Rename from tui_line_from_reg_element_no.
2839 (tui_display_registers_from_line): Update.
2840 * tui/tui-data.h (struct tui_data_window)
2841 <line_from_reg_element_no>: New method.
2843 2019-07-17 Tom Tromey <tom@tromey.com>
2845 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
2846 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
2847 tui_last_regs_line_no.
2848 (tui_display_reg_element_at_line)
2849 (tui_display_registers_from_line): Update.
2850 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
2853 2019-07-17 Tom Tromey <tom@tromey.com>
2856 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
2857 (tui_update_breakpoint_info): Add "being_deleted" parameter.
2858 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2859 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
2860 (tui_update_breakpoint_info): Likewise.
2861 * tui/tui-hooks.c (tui_event_create_breakpoint)
2862 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
2865 2019-07-17 Tom Tromey <tom@tromey.com>
2867 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
2869 2019-07-17 Tom Tromey <tom@tromey.com>
2871 * tui/tui-winsource.c (tui_update_source_window_as_is)
2872 (tui_update_source_windows_with_addr): Update.
2873 * tui/tui-source.h (tui_set_source_content)
2874 (tui_show_symtab_source): Add "win_info" parameter.
2875 * tui/tui-source.c (tui_set_source_content): Add "win_info"
2877 (tui_show_symtab_source): Likewise.
2879 2019-07-17 Tom Tromey <tom@tromey.com>
2881 * tui/tui-wingeneral.c
2882 (tui_check_and_display_highlight_if_needed): Check can_highlight.
2884 2019-07-17 Tom Tromey <tom@tromey.com>
2886 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
2887 (struct tui_cmd_window) <can_scroll>: New method.
2888 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
2891 2019-07-17 Tom Tromey <tromey@adacore.com>
2893 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
2894 do_field_signed>: Rename. Change type of "value".
2895 * ui-out.c (ui_out::field_signed): Rename from field_int.
2896 Change type of "value".
2897 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
2899 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
2900 do_field_int. Change type of "value".
2901 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
2902 do_field_int. Change type of "value".
2903 * tracepoint.c (trace_status_mi, tfind_1)
2904 (print_one_static_tracepoint_marker): Update.
2905 * thread.c (print_thread_info_1, print_selected_thread_frame):
2907 * stack.c (print_frame, print_frame_info): Update.
2908 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
2910 * source.c (print_source_lines_base): Update.
2911 * skip.c (info_skip_command): Update.
2912 * record-btrace.c (btrace_ui_out_decode_error)
2913 (btrace_call_history_src_line): Update.
2914 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
2916 * progspace.c (print_program_space): Update.
2917 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
2918 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
2919 do_field_int. Change type of "value".
2920 * mi/mi-out.c (mi_ui_out::do_table_begin)
2921 (mi_ui_out::do_table_header): Update.
2922 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
2924 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
2925 (mi_cmd_data_list_changed_registers, output_register)
2926 (mi_cmd_data_read_memory, mi_load_progress)
2927 (mi_cmd_trace_frame_collected): Update.
2928 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
2930 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
2931 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
2932 (mi_cmd_var_list_children, varobj_update_one): Update.
2933 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
2934 (mi_cmd_stack_list_args, list_arg_or_local): Update.
2935 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
2936 * inferior.c (print_inferior): Update.
2937 * gdb_bfd.c (print_one_bfd): Update.
2938 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2940 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
2941 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
2942 do_field_int. Change type of "value".
2943 * cli-out.c (cli_ui_out::do_field_signed): Rename from
2944 do_field_int. Change type of "value".
2945 * breakpoint.c (watchpoint_check, print_breakpoint_location)
2946 (print_one_breakpoint_location, print_it_catch_fork)
2947 (print_one_catch_fork, print_it_catch_vfork)
2948 (print_one_catch_vfork, print_it_catch_solib)
2949 (print_it_catch_exec, print_it_ranged_breakpoint)
2950 (print_mention_watchpoint, print_mention_masked_watchpoint)
2951 (bkpt_print_it, update_static_tracepoint): Update.
2952 * break-catch-throw.c (print_it_exception_catchpoint): Update.
2953 * break-catch-syscall.c (print_it_catch_syscall): Update.
2954 * ada-tasks.c (print_ada_task_info): Update.
2955 * ada-lang.c (print_it_exception, print_mention_exception):
2958 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2960 PR breakpoints/24541
2961 * gdbarch.c: Regenerate.
2962 * gdbarch.h: Regenerate.
2963 * gdbarch.sh: Adjust return type and parameter types for
2964 'stap_adjust_register'.
2965 (i386_stap_adjust_register): Adjust signature and return new
2967 * stap-probe.c (stap_parse_register_operand): Adjust use of
2968 'gdbarch_stap_adjust_register'.
2970 2019-07-17 Tom Tromey <tromey@adacore.com>
2972 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
2974 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
2976 (struct s390_process_info): Add initializers.
2977 (s390_add_process): Use new.
2978 (s390_linux_nat_target::low_forget_process): Use delete.
2979 (s390_linux_nat_target::low_new_fork)
2980 (s390_linux_nat_target::stopped_by_watchpoint)
2981 (s390_linux_nat_target::low_prepare_to_resume)
2982 (s390_linux_nat_target::insert_watchpoint)
2983 (s390_linux_nat_target::insert_hw_breakpoint)
2984 (s390_linux_nat_target::remove_watchpoint)
2985 (s390_linux_nat_target::remove_hw_breakpoint): Update.
2987 2019-07-16 John Baldwin <jhb@FreeBSD.org>
2989 * aarch64-fbsd-nat.c: Include regcache.h.
2990 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
2992 (aarch64_fbsd_nat_target::fetch_registers)
2993 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
2995 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
2997 2019-07-16 John Baldwin <jhb@FreeBSD.org>
2999 * fbsd-nat.c: Include gdbarch.h.
3001 2019-07-15 Tom Tromey <tromey@adacore.com>
3003 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
3005 2019-07-15 Tom Tromey <tromey@adacore.com>
3007 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
3008 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
3009 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
3010 * cli-out.c (cli_ui_out::do_field_int): New method.
3011 * ui-out.c (ui_out::field_unsigned): New method.
3012 * symfile.c (generic_load): Use field_unsigned.
3013 (print_transfer_performance): Likewise.
3014 * record-btrace.c (ui_out_field_uint): Remove.
3015 (btrace_call_history_insn_range, btrace_call_history): Use
3017 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
3019 * ui-out.h (class ui_out) <field_unsigned>: New method.
3020 <do_field_unsigned>: Likewise.
3022 2019-07-15 Tom Tromey <tromey@adacore.com>
3024 * mi/mi-main.c (list_available_thread_groups): Use field_string.
3025 * mi/mi-interp.c (mi_memory_changed): Use field_string.
3026 * target.c (flash_erase_command): Use field_string.
3027 * infrun.c (print_signal_received_reason): Use field_string.
3028 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
3029 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
3031 * ada-tasks.c (print_ada_task_info): Use field_string.
3033 2019-07-15 Tom Tromey <tromey@adacore.com>
3035 * target.c (flash_erase_command): Use field_core_addr.
3036 * symfile.c (generic_load): Use field_core_addr.
3037 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3038 Use field_core_addr.
3039 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
3042 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3044 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
3045 value if its desired type is smaller than a CORE_ADDR and signed.
3047 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3049 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
3050 of changes to field names, and use new is_reference field to
3051 decide if a property is a reference or not.
3052 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
3054 (struct dwarf2_property_baton): Update header comment, rename
3055 'referenced_type' to 'property_type' and update comments.
3056 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
3057 default property type, store in property baton, update to take
3058 accound of renamed field.
3059 (read_func_scope): Update call to attr_to_dynamic_prop.
3060 (read_array_type): Likewise.
3061 (dwarf2_per_cu_addr_sized_int_type): New function.
3062 (read_subrange_index_type): Move type finding code to
3063 dwarf2_per_cu_addr_sized_int_type.
3064 (read_subrange_type): Update calls to attr_to_dynamic_prop.
3065 (dwarf2_per_cu_addr_type): New function.
3066 (set_die_type): Update calls to attr_to_dynamic_prop.
3068 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3070 * dwarf2read.c (read_subrange_index_type): New function.
3071 (read_subrange_type): Move code into new function and call it.
3072 * gdbtypes.c (create_range_type): Add some asserts.
3074 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3076 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
3077 update return statements.
3078 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
3079 declaration, and update comment to match.
3080 * gdbtypes.c (resolve_dynamic_array): Update call to
3081 dwarf2_evaluate_property to match new return type.
3083 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3085 * valarith.c (value_subscripted_rvalue): Change lowerbound
3086 parameter type from int to LONGEST.
3087 * value.h (value_subscripted_rvalue): Likewise in declaration.
3089 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3091 * cli/cli-utils.c (info_print_command_completer): New function.
3092 * cli/cli-utils.h: Add 'completer.h' include, and forward
3093 declaration for 'struct cmd_list_element'.
3094 (info_print_command_completer): Declare.
3095 * stack.c (_initialize_stack): Add completer for 'info locals' and
3097 * symtab.c (_initialize_symtab): Add completer for 'info
3098 variables' and 'info functions'.
3099 * NEWS: Mention completion for additional info commands.
3101 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3103 * cli/cli-utils.c (extract_info_print_args): Delete.
3104 (extract_arg_maybe_quoted): Delete.
3105 (info_print_options_defs): New variable.
3106 (make_info_print_options_def_group): New function.
3107 (extract_info_print_options): Define new function.
3108 * cli/cli-utils.h (extract_info_print_args): Delete.
3109 (struct info_print_options): New structure.
3110 (extract_info_print_options): Declare new function.
3111 * stack.c (info_locals_command): Update to use new
3112 extract_info_print_options, also add a header comment.
3113 (info_args_command): Likewise.
3114 * symtab.c (info_variables_command): Likewise.
3115 (info_functions_command): Likewise.
3117 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3119 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
3120 to extract string arguments.
3121 * common/common-utils.c (extract_string_maybe_quoted): New function.
3122 * common/common-utils.h (extract_string_maybe_quoted): Declare.
3124 2019-07-11 Tom Tromey <tromey@adacore.com>
3126 * main.c (get_init_files): Use GDBINIT, not gdbinit.
3127 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
3128 * top.h (gdbinit): Don't declare.
3129 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
3131 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
3132 * top.c (gdb_init): Don't call init_cli_cmds.
3134 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
3136 2019-07-11 Tom Tromey <tromey@adacore.com>
3138 * python/py-inferior.c (add_thread_object): Don't use thread_obj
3139 after it has been moved.
3141 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3143 * valops.c (value_must_coerce_to_target): Change return type to
3145 * value.h (value_must_coerce_to_target): Likewise.
3147 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
3149 * breakpoint.c (is_hardware_watchpoint): Remove
3150 forward-declaration.
3151 (is_masked_watchpoint): Change return type to bool.
3152 (is_tracepoint): Likewise.
3153 (is_breakpoint): Likewise.
3154 (is_hardware_watchpoint): Likewise.
3155 (is_watchpoint): Likewise.
3156 (is_no_memory_software_watchpoint): Likewise.
3157 (is_catchpoint): Likewise.
3158 (breakpoint_1): Make FILTER parameter's return type bool.
3159 is_masked_watchpoint): Change return type to bool.
3160 (save_breakpoints): Make FILTER parameter's return type bool.
3161 * breakpoint.h (is_breakpoint): Change return type to bool.
3162 (is_watchpoint): Likewise.
3163 (is_catchpoint): Likewise.
3164 (is_tracepoint): Likewise.
3166 2019-07-10 Tom Tromey <tom@tromey.com>
3168 * defs.h: Don't include gdbarch.h.
3169 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
3170 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
3171 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
3172 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
3173 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
3174 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
3175 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
3176 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
3177 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
3178 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
3179 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
3180 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
3181 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
3182 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
3183 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
3184 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
3185 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
3186 record-btrace.c, record.h, regcache-dump.c, regcache.h,
3187 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
3188 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
3189 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
3190 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
3191 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
3192 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
3193 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
3194 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
3195 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
3197 2019-07-10 Tom Tromey <tromey@adacore.com>
3199 * ada-lang.h (is_ada_exception_catchpoint): Declare.
3200 * breakpoint.c (init_ada_exception_breakpoint): Register as
3202 (print_one_breakpoint_location, print_one_breakpoint): Use
3203 is_ada_exception_catchpoint.
3204 * ada-lang.c (class ada_catchpoint_location): Pass
3205 bp_loc_software_breakpoint to bp_location constructor.
3206 (is_ada_exception_catchpoint): New function.
3208 2019-07-10 Tom Tromey <tromey@adacore.com>
3210 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
3212 (struct arm_exidx_entry): New method operator<.
3213 (struct arm_exidx_data) <section_maps>: Change type.
3214 (arm_exidx_data_free): Remove.
3215 (arm_exidx_data_key): Change type. Move lower.
3216 (arm_exidx_new_objfile): Update.
3217 (arm_compare_exidx_entries): Remove.
3218 (arm_find_exidx_entry, _initialize_arm_tdep)
3220 2019-07-10 Tom Tromey <tromey@adacore.com>
3222 * solib-spu.c (ocl_program_data_key): Change type.
3223 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
3226 2019-07-10 Tom Tromey <tromey@adacore.com>
3228 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
3229 (struct solib_aix_inferior_data) <library_list>: Change type.
3230 (solib_aix_inferior_data_handle): Change type.
3231 (get_solib_aix_inferior_data): Update.
3232 (solib_aix_free_library_list): Remove.
3233 (library_list_start_library): Update.
3234 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
3236 (solib_aix_get_library_list)
3237 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
3238 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
3240 2019-07-10 Tom Tromey <tromey@adacore.com>
3242 * solib-dsbt.c (struct dsbt_info): Add initializers.
3243 (solib_dsbt_pspace_data): Change type.
3244 (dsbt_pspace_data_cleanup): Remove.
3245 (get_dsbt_info, _initialize_dsbt_solib): Update.
3247 2019-07-10 Tom Tromey <tromey@adacore.com>
3249 * spu-tdep.c (spu_overlay_data): Change type.
3250 (spu_get_overlay_table, spu_overlay_new_objfile)
3251 (_initialize_spu_tdep): Update.
3253 2019-07-10 Tom Tromey <tromey@adacore.com>
3255 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
3257 (dbx_objfile_data_key): Change type and declare later.
3258 (DBX_SYMFILE_INFO): Rewrite.
3259 * dbxread.c (dbx_objfile_data_key): Change type.
3260 (dbx_symfile_init): Update.
3261 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
3262 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3263 (stabsect_build_psymtabs, _initialize_dbxread): Update.
3265 2019-07-10 Tom Tromey <tromey@adacore.com>
3267 * jit.c (jit_program_space_key): Change type. Move lower.
3268 (get_jit_program_space_data): Update.
3269 (jit_program_space_data_cleanup): Remove.
3270 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
3272 (struct jit_program_space_data): Add initializers.
3274 2019-07-10 Tom Tromey <tromey@adacore.com>
3276 * solib-darwin.c (struct darwin_info): Add initializers.
3277 (solib_darwin_pspace_data): Change type.
3278 (darwin_pspace_data_cleanup): Remove.
3279 (get_darwin_info, _initialize_darwin_solib): Update.
3281 2019-07-10 Tom Tromey <tromey@adacore.com>
3283 * remote-sim.c (struct sim_inferior_data): Add initializers,
3284 constructor, and destructor.
3285 (sim_inferior_data_key): Change type. Move lower.
3286 (check_for_duplicate_sim_descriptor): Update.
3287 (get_sim_inferior_data): Use new. Update.
3288 (~sim_inferior_data_cleanup): Rename from
3289 sim_inferior_data_cleanup. Simplify.
3290 (gdbsim_close_inferior, simulator_command)
3291 (sim_command_completer, _initialize_remote_sim): Update.
3292 (next_pid, INITIAL_PID): Move earlier.
3294 2019-07-10 Tom Tromey <tromey@adacore.com>
3296 * python/python-internal.h (create_thread_object): Return
3298 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
3299 * python/py-inferior.c (struct threadlist_entry): Add
3301 <thread_obj>: Now a gdbpy_ref.
3302 (thread_to_thread_object): Update.
3303 (add_thread_object): Use new.
3304 (delete_thread_object): Use delete.
3305 (infpy_threads): Update.
3306 (py_free_inferior): Update. Construct "inf_obj" after acquiring
3309 2019-07-10 Tom Tromey <tromey@adacore.com>
3311 * valops.c (value_cast): Specialize error message for Ada.
3313 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3315 * breakpoint.c (breakpoint_1): Update doc and parameter names.
3317 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3319 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
3320 bpstat_should_step): Return bool, adjust comments.
3321 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
3322 bpstat_should_step): Likewise.
3324 2019-07-10 Alan Hayward <alan.hayward@arm.com>
3326 * features/Makefile: Use feature target descriptions for Arm.
3327 * features/arm/arm-core.c: Generate new file.
3328 * features/arm/arm-fpa.c: Likewise.
3329 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
3330 * features/arm/arm-m-profile.c: Likewise.
3331 * features/arm/arm-vfpv2.c: Likewise.
3332 * features/arm/arm-vfpv3.c: Likewise.
3333 * features/arm/xscale-iwmmxt.c: Likewise.
3334 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
3336 2019-07-10 Alan Hayward <alan.hayward@arm.com>
3338 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
3341 2019-07-10 Alan Hayward <alan.hayward@arm.com>
3343 * features/aarch64-pauth.c: Regenerate.
3345 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
3347 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
3349 (bpstat_what): Use false instead of 0.
3351 2019-07-09 Pedro Alves <palves@redhat.com>
3353 * break-catch-throw.c (is_exception_catchpoint): New.
3354 * breakpoint.c (print_one_breakpoint_location): New parameter
3355 'raw_loc'. Handle it. Use
3356 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
3357 looking at the breakpoint's type.
3358 (print_one_breakpoint): If handling "maint info breakpoints", also
3359 print locations of exception catchpoints.
3360 * breakpoint.h (is_exception_catchpoint): Declare.
3362 2019-07-09 Pedro Alves <palves@redhat.com>
3364 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
3366 (allocate_location_exception_catchpoint): New.
3367 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
3368 (initialize_throw_catchpoint_ops): Install
3369 allocate_location_exception_catchpoint as allocate_location
3371 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
3372 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
3374 (breakpoint_address_is_meaningful): Delete.
3375 (bl_address_is_meaningful): New.
3376 (breakpoint_locations_match): Adjust comment.
3377 (bp_location_from_bp_type): New, factored out of...
3378 (bp_location::bp_location(breakpoint *)): ... this.
3379 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
3381 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
3382 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
3383 breakpoint_address_is_meaningful.
3384 (bp_locations_compare): Adjust comment.
3385 (update_global_location_list): Use bl_address_is_meaningful
3386 instead of breakpoint_address_is_meaningful.
3387 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
3389 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
3390 * python/py-breakpoint.c (bppy_get_location): No longer check
3391 whether location is null.
3393 2019-07-09 Pedro Alves <palves@redhat.com>
3396 * breakpoint.c (print_one_breakpoint_location): Remove
3397 single-location assert.
3399 2019-07-09 Tom Tromey <tom@tromey.com>
3401 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
3402 * configure: Rebuild.
3403 * configure.ac: Change common to gdbsupport.
3404 * gdbsupport: Rename from common.
3405 * acinclude.m4: Change common to gdbsupport.
3406 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
3407 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
3409 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
3410 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
3411 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
3412 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
3413 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
3414 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
3415 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
3416 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
3417 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
3418 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
3419 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
3420 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
3421 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
3422 coff-pe-read.c, command.h, compile/compile-c-support.c,
3423 compile/compile-c.h, compile/compile-cplus-symbols.c,
3424 compile/compile-cplus-types.c, compile/compile-cplus.h,
3425 compile/compile-loc2c.c, compile/compile.c, completer.c,
3426 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
3427 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
3428 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
3429 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
3430 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
3431 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
3432 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
3433 features/aarch64-core.c, features/aarch64-fpu.c,
3434 features/aarch64-pauth.c, features/aarch64-sve.c,
3435 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
3436 features/i386/32bit-core.c, features/i386/32bit-linux.c,
3437 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
3438 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
3439 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
3440 features/i386/64bit-core.c, features/i386/64bit-linux.c,
3441 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
3442 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
3443 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
3444 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
3445 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
3446 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
3447 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
3448 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
3449 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
3450 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
3451 go32-nat.c, guile/guile.c, guile/scm-ports.c,
3452 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
3453 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
3454 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
3455 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
3456 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
3457 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
3458 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
3459 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
3460 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
3461 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
3462 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
3463 minsyms.c, mips-linux-tdep.c, namespace.h,
3464 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
3465 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
3466 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
3467 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
3468 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
3469 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
3470 nat/linux-waitpid.c, nat/mips-linux-watch.c,
3471 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
3472 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
3473 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
3474 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
3475 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
3476 procfs.c, producer.c, progspace.h, psymtab.h,
3477 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
3478 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
3479 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
3480 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
3481 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
3482 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
3483 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
3484 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
3485 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
3486 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
3487 target-memory.c, target.c, target.h, target/waitstatus.c,
3488 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
3489 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
3490 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
3491 unittests/array-view-selftests.c,
3492 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
3493 unittests/common-utils-selftests.c,
3494 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
3495 unittests/format_pieces-selftests.c,
3496 unittests/function-view-selftests.c,
3497 unittests/lookup_name_info-selftests.c,
3498 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
3499 unittests/mkdir-recursive-selftests.c,
3500 unittests/observable-selftests.c,
3501 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
3502 unittests/parse-connection-spec-selftests.c,
3503 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
3504 unittests/scoped_fd-selftests.c,
3505 unittests/scoped_mmap-selftests.c,
3506 unittests/scoped_restore-selftests.c,
3507 unittests/string_view-selftests.c, unittests/style-selftests.c,
3508 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
3509 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
3510 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
3511 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
3512 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
3513 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
3515 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3517 * linespec.c (decode_digits_list_mode): Set explicit_line to a
3519 (decode_digits_ordinary): Set explicit_line field in sal.
3520 * symtab.c (skip_prologue_sal): Don't skip prologue for a
3521 symtab_and_line that was set on an explicit line number in
3522 assembler code. Do always update the recorded symtab and line if
3523 we do skip the prologue.
3525 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3527 * breakpoint.c (set_breakpoint_location_function): Remove
3528 explicit_loc parameter.
3529 (momentary_breakpoint_from_master): Update call to
3530 set_breakpoint_location_function.
3531 (add_location_to_breakpoint): Likewise.
3533 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3535 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
3536 required features based on default bfd type when no specific bfd
3539 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3541 * NEWS: Mention that GDB printf and eval commands can now print
3542 C-style and Ada-style convenience var strings without
3543 calling the inferior.
3544 * printcmd.c (printf_c_string): Locally print GDB internal var
3545 instead of transiting via the inferior.
3546 (printf_wide_c_string): Likewise.
3548 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3550 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
3552 2019-07-04 Tom Tromey <tom@tromey.com>
3555 * tui/tui-winsource.c (tui_clear_source_content): Update.
3556 (tui_source_window_base::set_is_exec_point_at): Fix comment.
3557 (tui_update_breakpoint_info): Update.
3558 (tui_set_exec_info_content): Update.
3559 * tui/tui-source.c (tui_set_source_content_nil): Update.
3560 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
3562 * tui/tui-data.h (enum tui_bp_flag): New.
3563 (tui_bp_flags): New enum flags type.
3564 (struct tui_source_element) <break_mode>: Change type. Rename
3566 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
3567 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
3569 * tui/tui-winsource.h: Fix comment.
3571 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3573 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
3574 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
3575 (store_fpregs_to_thread)
3576 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
3577 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
3578 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
3579 (IWMMXT_REGS_SIZE): Add define.
3580 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
3581 (fetch_vfp_regs, store_vfp_regs)
3582 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
3583 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
3585 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3587 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
3589 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
3590 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
3591 (ARM_INT_REGISTER_SIZE): ...to this.
3592 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
3593 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
3594 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
3595 (arm_linux_collect_gregset, supply_nwfpe_register)
3596 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
3598 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
3599 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
3600 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
3601 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
3602 (arm_return_in_memory, arm_store_return_value)
3603 (arm_get_longjmp_target, arm_register_g_packet_guesses)
3604 (arm_record_ld_st_multiple): Likewise.
3605 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
3606 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
3608 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3610 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
3611 AARCH64_DISPLACED_MODIFIED_INSNS.
3612 * aarch64-tdep.c (struct aarch64_displaced_step_data)
3613 (aarch64_displaced_step_copy_insn): Likewise.
3614 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
3615 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
3616 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
3617 ARM_DISPLACED_MODIFIED_INSNS.
3618 * arm-tdep.c (arm_gdbarch_init): Likewise.
3619 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
3620 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
3621 (struct arm_displaced_step_closure): Use
3622 ARM_DISPLACED_MODIFIED_INSNS.
3624 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3626 * features/Makefile: Remove unused xml files.
3627 * features/aarch64.xml: Remove.
3628 * features/i386/amd64-avx-avx512-linux.xml: Remove.
3629 * features/i386/amd64-avx-avx512.xml: Remove.
3630 * features/i386/amd64-avx-linux.xml: Remove.
3631 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
3632 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
3633 * features/i386/amd64-avx-mpx-linux.xml: Remove.
3634 * features/i386/amd64-avx-mpx.xml: Remove.
3635 * features/i386/amd64-avx.xml: Remove.
3636 * features/i386/amd64-linux.xml: Remove.
3637 * features/i386/amd64-mpx-linux.xml: Remove.
3638 * features/i386/amd64-mpx.xml: Remove.
3639 * features/i386/amd64.xml: Remove.
3640 * features/i386/i386-avx-avx512-linux.xml: Remove.
3641 * features/i386/i386-avx-avx512.xml: Remove.
3642 * features/i386/i386-avx-linux.xml: Remove.
3643 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
3644 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
3645 * features/i386/i386-avx-mpx-linux.xml: Remove.
3646 * features/i386/i386-avx-mpx.xml: Remove.
3647 * features/i386/i386-avx.xml: Remove.
3648 * features/i386/i386-linux.xml: Remove.
3649 * features/i386/i386-mmx-linux.xml: Remove.
3650 * features/i386/i386-mmx.xml: Remove.
3651 * features/i386/i386-mpx-linux.xml: Remove.
3652 * features/i386/i386-mpx.xml: Remove.
3653 * features/i386/i386.xml: Remove.
3654 * features/i386/x32-avx-avx512-linux.xml: Remove.
3655 * features/i386/x32-avx-linux.xml: Remove.
3656 * features/i386/x32-linux.xml: Remove.
3658 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3660 * regformats/aarch64.dat: Remove.
3661 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
3662 * regformats/i386/amd64-avx-linux.dat: Remove.
3663 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
3664 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
3665 * regformats/i386/amd64-linux.dat: Remove.
3666 * regformats/i386/amd64-mpx-linux.dat: Remove.
3667 * regformats/i386/amd64.dat: Remove.
3668 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
3669 * regformats/i386/i386-avx-linux.dat: Remove.
3670 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
3671 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
3672 * regformats/i386/i386-linux.dat: Remove.
3673 * regformats/i386/i386-mmx-linux.dat: Remove.
3674 * regformats/i386/i386-mpx-linux.dat: Remove.
3675 * regformats/i386/i386.dat: Remove.
3676 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
3677 * regformats/i386/x32-avx-linux.dat: Remove.
3678 * regformats/i386/x32-linux.dat: Remove.
3680 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3682 * aarch64-tdep.c: Remove xml self tests.
3683 * amd64-linux-tdep.c: Likewise.
3684 * amd64-tdep.c: Likewise.
3685 * i386-linux-tdep.c: Likewise.
3686 * i386-tdep.c: Likewise.
3688 2019-07-03 Pedro Alves <palves@redhat.com>
3691 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
3692 (pipe_cmd_option_defs): New.
3693 (make_pipe_cmd_options_def_group): New.
3694 (pipe_command): Use gdb::option::process_options.
3695 (pipe_command_completer): New function.
3696 (_initialize_cli_cmds): Install completer for "pipe" command.
3698 2019-07-03 Pedro Alves <palves@redhat.com>
3700 * cli/cli-option.c (union option_value) <string>: New field.
3701 (struct option_def_and_value): Add ctor, move ctor, dtor and
3702 use DISABLE_COPY_AND_ASSIGN.
3703 (option_def_and_value::clear_value): New.
3704 (parse_option, save_option_value_in_ctx, get_val_type_str)
3705 (add_setshow_cmds_for_options): Handle var_string.
3706 * cli-option.h (union option_def::var_address) <string>: New
3708 (struct string_option_def): New.
3709 * maint-test-options.c (struct test_options_opts): Add default
3710 ctor and use DISABLE_COPY_AND_ASSIGN.
3711 <string_opt>: New field.
3712 (test_options_opts::~test_options_opts): New.
3713 (test_options_opts::dump): Also dump "-string".
3714 (test_options_option_defs): Install "string.
3716 2019-07-03 Pedro Alves <palves@redhat.com>
3718 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
3719 option_value with a null enumeration.
3720 (complete_options): Save the option values in the context.
3721 (save_option_value_in_ctx): New, factored out from ...
3722 (process_options): ... here.
3723 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
3725 * maint-test-options.c (test_options_opts::dump): New, factored
3727 (maintenance_test_options_command_mode): ... here.
3728 (maintenance_test_options_command_completion_result): Delete.
3729 (maintenance_test_options_command_completion_text): Update
3731 (maintenance_show_test_options_completion_result): Change
3732 prototype. Just print
3733 maintenance_test_options_command_completion_text.
3734 (save_completion_result): New.
3735 (maintenance_test_options_completer_mode): Pass options context to
3736 complete_options, and then save a dump.
3737 (_initialize_maint_test_options): Use add_cmd to install "maint
3738 show test-options-completion-result".
3740 2019-07-03 Pedro Alves <palves@redhat.com>
3742 * NEWS (New commands): Mention "with" and "maint with".
3743 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
3744 (with_command, with_command_completer): New.
3745 (pipe_command): Adjust to new repeat_previous
3747 (_initialize_cli_cmds): Install the "with" command and its "w"
3749 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
3751 * cli/cli-setshow.c (parse_cli_var_uinteger)
3752 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
3753 argument strings for all var_types.
3754 (get_setshow_command_value_string): New, factored out from ...
3755 (do_show_command): ... this.
3756 * cli/cli-setshow.h: Include <string>.
3757 (get_setshow_command_value_string): Declare.
3758 * command.h (repeat_previous): Now returns const char *. Adjust
3760 * maint.c: Include "cli/cli-cmds.h".
3761 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
3762 (_initialize_maint_cmds): Register the "maintenance with" command.
3763 * top.c (repeat_previous): Move bits from pipe_command here:
3764 Return the saved command line, if any; error out if there's no
3765 command to relaunch.
3767 2019-07-03 Pedro Alves <palves@redhat.com>
3769 * NEWS (New commands): Mention "maint set/show test-settings"
3770 instead of "maint test-settings".
3771 * maint-test-settings.c (maintenance_test_settings_list): Delete.
3772 (maintenance_test_settings_set_list): Rename to ...
3773 (maintenance_set_test_settings_list): ... this.
3774 (maintenance_test_settings_show_list): Rename to ...
3775 (maintenance_show_test_settings_list): ... this.
3776 (maintenance_test_settings_cmd): Delete.
3777 (maintenance_test_settings_set_cmd): ...
3778 (maintenance_set_test_settings_cmd): ... this.
3779 (maintenance_test_settings_show_cmd): ...
3780 (maintenance_show_test_settings_cmd): ... this.
3781 (maintenance_test_settings_show_value_cmd):
3782 (maintenance_show_test_settings_value_cmd): ... this.
3783 (_initialize_maint_test_settings): No longer install the "maint
3784 test-settings" prefix command. Rename "maint test-settings set"
3785 to "maint set test-settings", and "maint test-settings show" to
3786 "maint show test-settings". Adjust all subcommands.
3788 2019-07-03 Pedro Alves <palves@redhat.com>
3790 * maint-test-settings.c: Fix file's intro comment. Replace all
3791 references to "test-options" with references to "test-settings",
3794 2019-07-03 Pedro Alves <palves@redhat.com>
3796 * maint-test-settings.c (maintenance_test_settings_xxx)
3797 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
3799 (maintenance_test_settings_enums): Use them.
3800 (maintenance_test_settings_enum): Default to
3801 maintenance_test_settings_xxx.
3802 (_initialize_maint_test_settings): Initialize
3803 MAINTENANCE_TEST_SETTINGS_FILENAME.
3805 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3807 * breakpoint.h (remove_breakpoints_inf): Change return type to
3808 void, move function documentation here.
3809 * breakpoint.c (remove_breakpoints_inf): Change return type to
3810 void, move function documentation to header.
3812 2019-07-02 Pedro Alves <palves@redhat.com>
3814 * NEWS (Completion improvements): Mention "info threads".
3815 * thread.c (struct info_threads_opts, info_threads_option_defs)
3816 (make_info_threads_options_def_group): New.
3817 (info_threads_command): Use gdb::option::process_options.
3818 (info_threads_command_completer): New.
3819 (_initialize_thread): Use gdb::option::build_help to build the
3820 help text for "info threads".
3822 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3824 * defs.h (generic_load): Move from here...
3825 * symfile.h (generic_load): ... to here. Rename name parameter
3827 * symfile.c (generic_load): Add comment.
3829 2019-07-01 Tom Tromey <tromey@adacore.com>
3832 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
3833 declaration of without_params. Fix formatting.
3835 2019-07-01 Tom Tromey <tromey@adacore.com>
3837 * ada-exp.y (find_primitive_type): Update.
3838 * ada-lang.h (ada_lookup_symbol): Update.
3839 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
3841 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
3843 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
3845 PR breakpoints/24541
3846 * gdbarch.c: Regenerate.
3847 * gdbarch.h: Regenerate.
3848 * gdbarch.sh: Add 'stap_adjust_register'.
3849 * i386-tdep.c: Include '<unordered_set>'.
3850 (i386_stap_adjust_register): New function.
3851 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
3852 * stap-probe.c (stap_parse_register_operand): Call
3853 'gdbarch_stap_adjust_register'.
3855 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
3858 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
3859 * python/python.c (do_start_initialization): Use 'xmalloc'
3860 instead of 'PyMem_Malloc'.
3862 2019-06-28 Tom Tromey <tromey@adacore.com>
3864 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
3867 2019-06-27 Tom Tromey <tromey@adacore.com>
3869 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
3871 (arm_find_mapping_symbol, arm_record_special_symbol)
3872 (_initialize_arm_tdep): Update.
3873 (arm_objfile_data_free): Remove.
3875 2019-06-27 Tom Tromey <tromey@adacore.com>
3877 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
3878 to cp_print_static_field.
3880 2019-06-26 Tom Tromey <tromey@adacore.com>
3882 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
3883 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
3886 2019-06-26 Alan Hayward <alan.hayward@arm.com>
3888 * features/aarch64-core.c (create_feature_aarch64_core):
3890 * features/aarch64-core.xml: Add cpsr flags.
3892 2019-06-26 Alan Hayward <alan.hayward@arm.com>
3894 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
3895 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
3897 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
3899 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
3901 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
3903 (arm_record_special_symbol): Don't insert new symbol in sorted
3904 position, push it at the end.
3906 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
3908 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
3909 (arm_mapping_symbol_s): Remove.
3910 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
3911 (arm_mapping_symbol_vec): New typedef.
3912 (struct arm_per_objfile): Add constructor.
3913 <section_maps>: Change type to
3914 std::unique_ptr<arm_mapping_symbol_vec[]>.
3915 (arm_compare_mapping_symbols): Remove.
3916 (arm_find_mapping_symbol): Adjust to section_maps type change.
3917 (arm_objfile_data_free): Call delete on arm_per_objfile.
3918 (arm_record_special_symbol): Adjust to section_maps type change.
3919 Allocate arm_per_objfile with new.
3921 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3923 * cli/cli-cmds.c (alias_command): Compare the alias prefix
3924 with the command prefix.
3926 2019-06-25 Tom Tromey <tom@tromey.com>
3928 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
3929 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
3931 2019-06-25 Tom Tromey <tom@tromey.com>
3933 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
3935 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
3938 2019-06-25 Tom Tromey <tom@tromey.com>
3940 * tui/tui-winsource.c
3941 (tui_source_window_base::set_is_exec_point_at): Add check against
3944 2019-06-25 Tom Tromey <tom@tromey.com>
3946 * tui/tui-source.c (tui_set_source_content): Don't check before
3948 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
3950 2019-06-25 Tom Tromey <tom@tromey.com>
3952 * tui/tui-winsource.h (tui_update_source_window_as_is)
3953 (tui_alloc_source_buffer, tui_line_is_displayed)
3954 (tui_addr_is_displayed): Change type of win_info.
3955 * tui/tui-winsource.c (tui_update_source_window_as_is)
3956 (tui_clear_source_content, tui_show_source_line)
3957 (tui_show_source_content, tui_source_window_base::refill)
3958 (tui_source_window_base::set_is_exec_point_at)
3959 (tui_source_window_base::set_is_exec_point_at)
3960 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
3961 (tui_alloc_source_buffer, tui_line_is_displayed)
3962 (tui_addr_is_displayed): Change type of win_info. Update.
3963 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3964 (tui_source_window_base::do_make_visible_with_new_height):
3966 * tui/tui-source.c (tui_set_source_content)
3967 (tui_set_source_content_nil)
3968 (tui_source_window::do_scroll_vertical): Update.
3969 * tui/tui-layout.c (show_layout): Update.
3970 * tui/tui-disasm.c (tui_set_disassem_content)
3971 (tui_disasm_window::do_scroll_vertical): Update.
3972 * tui/tui-data.h (tui_win_content): Remove.
3973 (struct tui_gen_win_info) <content, content_size>: Remove.
3974 (struct tui_source_element): Add initializers and destructor.
3975 (union tui_which_element, struct tui_win_element): Remove.
3976 (struct tui_source_window_base) <content>: New field.
3977 (struct tui_data_window): Remove destructor.
3978 (tui_alloc_content, tui_free_win_content)
3979 (tui_free_all_source_wins_content): Don't declare.
3980 * tui/tui-data.c (tui_initialize_static_data): Update.
3981 (init_content_element, tui_alloc_content): Remove.
3982 (~tui_gen_win_info): Update.
3983 (~tui_data_window, tui_free_all_source_wins_content)
3984 (tui_free_win_content, free_content, free_content_elements):
3987 2019-06-25 Tom Tromey <tom@tromey.com>
3989 * tui/tui-winsource.h (tui_clear_source_content)
3990 (tui_erase_source_content, tui_show_source_content): Change type
3992 * tui/tui-winsource.c (tui_clear_source_content)
3993 (tui_erase_source_content, tui_show_source_content): Change type
3995 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3996 * tui/tui-source.h (tui_set_source_content_nil): Change type of
3998 * tui/tui-source.c (tui_set_source_content_nil): Change type of
4000 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
4002 2019-06-25 Tom Tromey <tom@tromey.com>
4004 * tui/tui-winsource.c (tui_clear_source_content)
4005 (tui_source_window_base::set_is_exec_point_at): Update.
4006 * tui/tui-source.c (tui_set_source_content_nil): Update.
4007 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
4009 * tui/tui-data.c (init_content_element): Update.
4011 2019-06-25 Tom Tromey <tom@tromey.com>
4013 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
4014 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
4015 * tui/tui-layout.c (init_and_make_win): Update.
4016 * tui/tui.h (enum tui_win_type): Update.
4017 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
4018 tui_win_is_auxillary.
4019 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
4020 tui_win_is_auxillary.
4022 2019-06-25 Tom Tromey <tom@tromey.com>
4024 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
4025 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
4026 (tui_delete_data_content_windows, tui_display_all_data)
4027 (tui_data_window::do_scroll_vertical, tui_display_data_from):
4029 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
4030 * tui/tui-regs.c (tui_last_regs_line_no)
4031 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
4032 (tui_show_registers): Update.
4033 (tui_show_register_group): Return void. Update.
4034 (tui_display_registers_from, tui_display_reg_element_at_line)
4035 (tui_display_registers_from_line, tui_check_register_values):
4037 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
4039 (struct tui_data_window) <regs_content>: Now a std::vector.
4040 <regs_content_count>: Remove.
4041 (tui_add_content_elements, tui_free_data_content): Don't declare.
4042 * tui/tui-data.c (tui_data_window::clear_detail): Update.
4043 (init_content_element): Remove DATA_WIN case. Add assert.
4044 (tui_add_content_elements): Remove.
4045 (tui_data_window): Update.
4046 (tui_free_data_content): Remove.
4047 (free_content_elements): Remove DATA_WIN case.
4049 2019-06-25 Tom Tromey <tom@tromey.com>
4051 * tui/tui-data.c (tui_data_item_window): Update.
4052 * tui/tui-windata.h (tui_check_data_values): Don't declare.
4053 * tui/tui-windata.c (tui_display_all_data)
4054 (tui_display_data_from_line): Update.
4055 (tui_check_data_values): Remove.
4056 * tui/tui-regs.c (tui_show_register_group)
4057 (tui_display_reg_element_at_line): Update.
4058 * tui/tui-hooks.c (tui_register_changed)
4059 (tui_refresh_frame_and_register_information): Call
4060 tui_check_register_values.
4061 * tui/tui-data.h (struct tui_data_window) <data_content,
4062 data_content_count, data_type>: Remove.
4063 (enum tui_data_type): Remove.
4065 * tui/tui-data.c (tui_data_window::clear_detail)
4066 (~tui_data_window): Update.
4068 2019-06-25 Tom Tromey <tom@tromey.com>
4070 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
4072 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
4073 Rename from tui_first_data_item_displayed. Update.
4074 (tui_data_window::refresh_all)
4075 (tui_data_window::do_scroll_vertical): Update.
4076 * tui/tui-data.h (struct tui_data_window)
4077 <first_data_item_displayed>: Declare new method.
4079 2019-06-25 Tom Tromey <tom@tromey.com>
4081 * tui/tui-data.h (tui_init_generic_part): Don't declare.
4082 * tui/tui-data.c (tui_init_generic_part): Remove, moving
4084 (tui_initialize_static_data): ...here.
4086 2019-06-25 Tom Tromey <tom@tromey.com>
4088 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4089 (tui_display_registers_from, tui_check_register_values): Update.
4090 (tui_display_register): Remove win_info parameter; update.
4091 (tui_get_register): Change type of parameters.
4092 * tui/tui-data.h (struct tui_data_element): Remove.
4093 (union tui_which_element) <data>: Remove.
4094 <data_window>: Change type.
4095 (struct tui_data_item_window): New.
4096 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
4098 (~tui_data_item_window): New destructor.
4099 (free_content_elements): Remove DATA_ITEM_WIN case.
4101 2019-06-25 Tom Tromey <tom@tromey.com>
4103 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
4106 2019-06-25 Tom Tromey <tom@tromey.com>
4108 * tui/tui-data.h (struct tui_command_element): Remove.
4109 (union tui_which_element) <command>: Remove.
4110 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
4112 (free_content_elements): Remove CMD_WIN case.
4114 2019-06-25 Tom Tromey <tom@tromey.com>
4116 * tui/tui-layout.c (tui_set_layout): Update.
4117 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
4118 * tui/tui-data.c (layout_def): Update.
4120 2019-06-25 Tom Tromey <tom@tromey.com>
4122 * tui/tui-wingeneral.c (tui_refresh_all): Update.
4123 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4124 (tui_source_window_base::set_new_height): Update.
4125 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
4127 (tui_set_locator_fullname, tui_set_locator_info)
4128 (tui_show_frame_info): Update.
4129 * tui/tui-source.c (tui_set_source_content)
4130 (tui_source_is_displayed): Update.
4131 * tui/tui-layout.c (show_source_disasm_command, show_data)
4132 (show_source_or_disasm_and_command): Update.
4133 * tui/tui-disasm.c (tui_set_disassem_content)
4134 (tui_get_begin_asm_address): Update.
4135 * tui/tui-data.h (struct tui_locator_element): Remove.
4136 (union tui_which_element) <locator>: Remove.
4137 (struct tui_locator_window): New.
4138 (tui_locator_win_info_ptr): Change return type.
4139 * tui/tui-data.c (_locator): Change type.
4140 (tui_locator_win_info_ptr): Change return type.
4141 (init_content_element): Remove LOCATOR_WIN case. Add assert.
4142 (tui_alloc_content): Add assert.
4144 2019-06-25 Tom Tromey <tom@tromey.com>
4146 * tui/tui-winsource.c
4147 (tui_exec_info_window::maybe_allocate_content): New method.
4148 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
4149 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
4150 (make_source_or_disasm_window): Add cast.
4151 * tui/tui-data.h (union tui_which_element) <simple_string>:
4153 (struct tui_source_info): New.
4154 (struct tui_source_window_base) <execution_info>: Change type.
4155 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
4156 case, and add assert.
4157 (tui_alloc_content): Add assert.
4159 2019-06-25 Tom Tromey <tom@tromey.com>
4161 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
4162 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
4163 * tui/tui-data.c (tui_alloc_win_info): Remove.
4165 2019-06-25 Tom Tromey <tom@tromey.com>
4167 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
4168 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
4171 2019-06-25 Tom Tromey <tom@tromey.com>
4173 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
4174 make_visible_with_new_height method.
4175 (tui_win_info::make_visible_with_new_height): New method.
4176 (tui_source_window_base::do_make_visible_with_new_height)
4177 (tui_data_window::do_make_visible_with_new_height)
4178 (tui_cmd_window::do_make_visible_with_new_height): New methods.
4179 (make_visible_with_new_height): Remove.
4180 (tui_resize_all, tui_adjust_win_heights): Use
4181 make_visible_with_new_height method.
4182 * tui/tui-data.h (struct tui_win_info)
4183 <do_make_visible_with_new_height, make_visible_with_new_height>:
4185 (struct tui_source_window_base, struct tui_data_window)
4186 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
4189 2019-06-25 Tom Tromey <tom@tromey.com>
4191 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
4193 (update_tab_width): Call update_tab_width method.
4194 * tui/tui-data.h (struct tui_win_info)
4195 (struct tui_source_window_base) <update_tab_width>: New methods.
4197 2019-06-25 Tom Tromey <tom@tromey.com>
4199 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
4201 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
4203 (tui_gen_win_info::make_visible): Update.
4204 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
4206 * tui/tui-data.h (enum tui_box): New enum.
4207 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
4209 2019-06-25 Tom Tromey <tom@tromey.com>
4211 * tui/tui-layout.c (make_source_or_disasm_window): Always use
4212 init_and_make_win for EXEC_INFO_WIN.
4213 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
4215 (struct tui_win_info) <~tui_win_info>: Inline.
4216 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4218 * tui/tui-data.c (source_win, disasm_win): Remove globals.
4219 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4221 (tui_initialize_static_data): Update.
4222 (~tui_gen_win_info): Handle more cleanup here.
4223 (~tui_source_window_base): Delete "execution_info".
4224 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
4226 2019-06-25 Tom Tromey <tom@tromey.com>
4228 * tui/tui-layout.c (make_command_window): Don't set
4230 (show_source_disasm_command): Call the reset method.
4231 (show_data): Don't set can_highlight. Call the reset method.
4232 (tui_gen_win_info::reset): Rename from init_gen_win_info
4233 (init_and_make_win): Simplify. Return tui_gen_win_info.
4234 (show_source_or_disasm_and_command): Call the reset method.
4235 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
4236 (struct tui_cmd_window): Set can_highlight.
4238 2019-06-25 Tom Tromey <tom@tromey.com>
4240 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
4242 (tui_make_visible, tui_make_invisible): Rewrite.
4243 (tui_win_info::make_visible): Remove.
4244 (tui_source_window_base::make_visible): Update.
4245 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
4246 method. Moved from...
4247 (struct tui_win_info) <make_visible>: ...here.
4249 2019-06-25 Tom Tromey <tom@tromey.com>
4251 * tui/tui-winsource.c
4252 (tui_source_window_base::do_scroll_horizontal): Remove direction
4254 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
4255 direction parameter.
4256 * tui/tui-win.c (tui_win_info::forward_scroll)
4257 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
4258 (tui_win_info::right_scroll): Update.
4259 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
4260 direction parameter.
4261 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
4262 direction parameter.
4263 * tui/tui-data.h (enum tui_scroll_direction): Remove.
4264 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
4265 Remove direction parameter.
4266 (struct tui_source_window_base, struct tui_source_window)
4267 (struct tui_disasm_window, struct tui_data_window)
4268 (struct tui_cmd_window): Update.
4270 2019-06-25 Tom Tromey <tom@tromey.com>
4272 * tui/tui-winsource.h (tui_set_exec_info_content)
4273 (tui_show_exec_info_content, tui_erase_exec_info_content)
4274 (tui_clear_exec_info_content, tui_update_exec_info): Change
4275 argument to tui_source_window_base.
4276 * tui/tui-winsource.c (tui_set_exec_info_content)
4277 (tui_show_exec_info_content, tui_erase_exec_info_content)
4278 (tui_clear_exec_info_content, tui_update_exec_info): Change
4279 argument to tui_source_window_base.
4281 2019-06-25 Tom Tromey <tom@tromey.com>
4283 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
4284 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
4286 2019-06-25 Tom Tromey <tom@tromey.com>
4288 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
4291 2019-06-25 Tom Tromey <tom@tromey.com>
4293 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
4295 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
4297 * tui/tui-source.c (tui_set_source_content): Update.
4298 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4300 2019-06-25 Tom Tromey <tom@tromey.com>
4302 * tui/tui-win.c (window_name_completer, tui_set_focus)
4303 (tui_all_windows_info): Use name method.
4304 * tui/tui-data.h (struct tui_gen_win_info)
4305 (struct tui_source_window, struct tui_disasm_window)
4306 (struct tui_data_window, struct tui_cmd_window) <name>: New
4308 (tui_win_name): Don't declare.
4309 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
4310 (tui_win_name): Remove.
4312 2019-06-25 Tom Tromey <tom@tromey.com>
4314 * tui/tui-winsource.h (tui_update_source_window)
4315 (tui_update_source_window_as_is): Change parameter type.
4316 * tui/tui-winsource.c (tui_update_source_window): Change win_info
4317 to be a tui_source_window_base.
4318 (tui_update_source_window_as_is): Likewise.
4319 * tui/tui-win.c (make_visible_with_new_height): Update.
4321 2019-06-25 Tom Tromey <tom@tromey.com>
4323 * tui/tui-winsource.c (tui_erase_source_content)
4324 (tui_show_source_content, tui_show_exec_info_content)
4325 (tui_erase_exec_info_content): Use refresh_window method.
4326 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
4327 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
4328 from tui_refresh_win.
4329 (tui_data_window::refresh_window): New method.
4330 (tui_win_info::refresh, tui_source_window_base::refresh)
4331 (tui_refresh_all): Use refresh_window method.
4332 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
4334 * tui/tui-regs.c (tui_display_register): Call refresh_window
4336 * tui/tui-layout.c (show_source_disasm_command)
4337 (show_source_or_disasm_and_command): Call refresh_window method.
4338 * tui/tui-data.h (struct tui_gen_win_info)
4339 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
4342 2019-06-25 Tom Tromey <tom@tromey.com>
4344 * tui/tui.c (tui_rl_other_window, tui_enable)
4345 (tui_is_window_visible, tui_get_command_dimension): Update.
4346 * tui/tui-winsource.c (tui_update_source_window_as_is)
4347 (tui_clear_source_content, tui_erase_source_content)
4348 (tui_show_source_line, tui_source_window_base::refill)
4349 (tui_source_window_base::do_scroll_horizontal)
4350 (tui_source_window_base::set_is_exec_point_at)
4351 (tui_update_breakpoint_info, tui_set_exec_info_content)
4352 (tui_alloc_source_buffer, tui_line_is_displayed)
4353 (tui_addr_is_displayed): Update.
4354 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
4355 (tui_check_and_display_highlight_if_needed)
4356 (tui_win_info::make_visible, tui_win_info::refresh)
4357 (tui_refresh_all): Update.
4358 * tui/tui-windata.c (tui_first_data_item_displayed)
4359 (tui_delete_data_content_windows, tui_erase_data_content)
4360 (tui_display_all_data, tui_data_window::refresh_all)
4361 (tui_check_data_values): Update.
4362 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
4363 (tui_set_win_focus_to, tui_win_info::forward_scroll)
4364 (tui_win_info::backward_scroll, tui_refresh_all_win)
4365 (tui_resize_all, tui_set_focus, tui_all_windows_info)
4366 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
4367 (tui_source_window_base::set_new_height)
4368 (tui_data_window::set_new_height)
4369 (make_invisible_and_set_new_height)
4370 (make_visible_with_new_height, new_height_ok)
4371 (parse_scrolling_args): Update.
4372 * tui/tui-stack.c (tui_show_frame_info): Update.
4373 * tui/tui-source.c (tui_set_source_content)
4374 (tui_set_source_content_nil, tui_source_is_displayed)
4375 (tui_source_window::do_scroll_vertical): Update.
4376 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4377 (tui_display_registers_from, tui_display_reg_element_at_line)
4378 (tui_check_register_values, tui_reg_command): Update.
4379 * tui/tui-layout.c (tui_default_win_height)
4380 (show_source_disasm_command, show_data, init_and_make_win)
4381 (show_source_or_disasm_and_command): Update.
4382 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
4383 (tui_redisplay_readline, tui_mld_flush)
4384 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
4386 * tui/tui-disasm.c (tui_set_disassem_content)
4387 (tui_disasm_window::do_scroll_vertical): Update.
4388 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
4390 (struct tui_win_info): Derive from tui_gen_win_info.
4391 <~tui_win_info>: Mark as override.
4392 <generic>: Remove member.
4393 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
4394 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
4395 (~tui_data_window, ~tui_win_info)
4396 (tui_free_all_source_wins_content): Update.
4397 * tui/tui-command.c (tui_refresh_cmd_win): Update.
4399 2019-06-25 Tom Tromey <tom@tromey.com>
4401 * tui/tui-layout.c (init_and_make_win): Use new.
4402 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
4403 destructor, initializers.
4404 (tui_alloc_generic_win_info): Don't declare.
4405 * tui/tui-data.c (_locator): Add argument to constructor.
4406 (source_win, disasm_win): New globals.
4407 (exec_info): Remove.
4408 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4410 (tui_alloc_generic_win_info): Remove.
4411 (init_content_element): Use new.
4412 (tui_win_info::tui_win_info): Update.
4413 (free_content_elements) <case DATA_WIN>: Use delete.
4415 2019-06-25 Tom Tromey <tom@tromey.com>
4417 * tui/tui-wingeneral.c (tui_refresh_win): Update.
4418 * tui/tui-windata.c (tui_first_data_item_displayed)
4419 (tui_delete_data_content_windows): Update.
4420 * tui/tui-win.c (tui_data_window::set_new_height): Update.
4421 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4422 (tui_display_registers_from, tui_check_register_values): Update.
4423 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
4425 * tui/tui-data.c (init_content_element): Update. Allocate the new
4427 (tui_free_data_content): Update.
4428 (free_content_elements) <case DATA_WIN>: Free the window.
4430 2019-06-25 Tom Tromey <tom@tromey.com>
4432 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
4434 * tui/tui-layout.c (make_command_window)
4435 (show_source_disasm_command, show_data, init_and_make_win)
4436 (show_source_or_disasm_and_command): Update.
4437 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
4439 <can_highight, is_highlighted>: Now bool.
4440 (tui_set_win_highlight): Don't declare.
4441 * tui/tui-data.c (tui_set_win_highlight): Remove.
4443 2019-06-25 Tom Tromey <tom@tromey.com>
4445 * tui/tui-wingeneral.c (make_visible): Remove check of window
4448 2019-06-25 Tom Tromey <tom@tromey.com>
4450 * tui/tui-win.c (tui_win_info::max_height)
4451 (tui_cmd_window::max_height): New methods.
4452 (new_height_ok): Call max_height.
4453 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
4454 <max_height>: New method.
4456 2019-06-25 Tom Tromey <tom@tromey.com>
4458 * tui/tui-win.c (tui_source_window_base::set_new_height)
4459 (tui_data_window::set_new_height): New methods.
4460 (make_invisible_and_set_new_height): Call set_new_height method.
4461 * tui/tui-data.h (struct tui_win_info)
4462 (struct tui_source_window_base, struct tui_data_window)
4463 <set_new_height>: New method.
4465 2019-06-25 Tom Tromey <tom@tromey.com>
4467 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
4468 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
4469 tui_refresh_data_win.
4470 * tui/tui-win.c (tui_source_window_base::refresh_all): New
4472 (tui_refresh_all_win): Call the refresh_all method.
4473 (tui_set_focus): Likewise.
4474 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
4475 (struct tui_source_window_base, struct tui_data_window) <refresh>:
4478 2019-06-25 Tom Tromey <tom@tromey.com>
4480 * tui/tui-winsource.h (tui_refill_source_window)
4481 (tui_set_is_exec_point_at): Don't declare.
4482 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4483 (tui_source_window_base::refill): Rename from
4484 tui_refill_source_window.
4485 (tui_source_window_base::do_scroll_horizontal): Update.
4486 (tui_source_window_base::set_is_exec_point_at): Rename from
4487 tui_set_is_exec_point_at.
4488 (tui_update_all_breakpoint_info): Update.
4489 * tui/tui-stack.c (tui_show_frame_info): Update.
4490 * tui/tui-layout.c (show_data): Add cast.
4491 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
4492 * tui/tui-data.h (struct tui_source_window_base) <refill,
4493 set_is_exec_point_at>: New methods.
4494 (tui_source_windows, tui_add_to_source_windows): Update types.
4495 (tui_add_to_source_windows): Remove redundant declaration.
4496 * tui/tui-data.c (source_windows): Store tui_source_window_base.
4497 (tui_source_windows): Change return type.
4498 (tui_clear_source_windows_detail): Update.
4499 (tui_add_to_source_windows): Change type of parameter.
4500 (tui_free_all_source_wins_content): Update.
4502 2019-06-25 Tom Tromey <tom@tromey.com>
4504 * tui/tui-wingeneral.c (tui_win_info::refresh)
4505 (tui_source_window_base::refresh): New methods.
4506 (tui_refresh_all): Call the refresh method.
4507 * tui/tui-data.h (struct tui_win_info)
4508 (struct tui_source_window_base) <refresh>: New method.
4510 2019-06-25 Tom Tromey <tom@tromey.com>
4512 * tui/tui.h (tui_is_window_visible): Return bool.
4513 * tui/tui.c (tui_is_window_visible): Return bool.
4514 * tui/tui-wingeneral.c (tui_make_window, make_visible)
4515 (tui_make_visible, tui_make_invisible)
4516 (tui_win_info::make_visible)
4517 (tui_source_window_base::make_visible, make_all_visible)
4518 (tui_make_all_visible, tui_make_all_invisible): Update.
4519 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
4520 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
4522 (struct tui_win_info, struct tui_source_window_base)
4523 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
4524 * tui/tui-data.c (tui_init_generic_part): Update.
4526 2019-06-25 Tom Tromey <tom@tromey.com>
4528 * tui/tui-wingeneral.c (tui_win_info::make_visible)
4529 (tui_source_window_base::make_visible): New methods.
4530 (make_all_visible): Make method call.
4531 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
4532 (struct tui_source_window_base, struct tui_cmd_window): Override
4534 (tui_win_is_source_type): Don't declare.
4535 * tui/tui-data.c (tui_win_is_source_type): Remove.
4537 2019-06-25 Tom Tromey <tom@tromey.com>
4539 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
4542 2019-06-25 Tom Tromey <tom@tromey.com>
4544 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
4545 Inline constructor. Add initializers for members.
4546 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
4547 constructors; now inline in class.
4549 2019-06-25 Tom Tromey <tom@tromey.com>
4551 * tui/tui-regs.c (tui_show_registers): Update.
4552 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
4554 * tui/tui-data.c (tui_data_window::clear_detail)
4555 (tui_data_window): Update.
4557 2019-06-25 Tom Tromey <tom@tromey.com>
4559 * tui/tui-windata.c (tui_display_all_data)
4560 (tui_display_data_from_line, tui_display_data_from)
4561 (tui_check_data_values, tui_data_window::do_scroll_vertical):
4563 * tui/tui-regs.c (tui_last_regs_line_no)
4564 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
4565 (tui_show_registers, tui_show_register_group)
4566 (tui_display_registers_from, tui_display_reg_element_at_line)
4567 (tui_display_registers_from_line, tui_check_register_values)
4568 (tui_reg_next, tui_reg_prev): Update.
4569 * tui/tui-layout.c (tui_set_layout, show_data): Update.
4570 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
4572 (struct tui_win_info) <detail>: Remove. Add new fields from
4574 (TUI_DATA_WIN): Add cast.
4575 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
4576 (~tui_data_window): Simplify.
4578 2019-06-25 Tom Tromey <tom@tromey.com>
4580 * tui/tui-layout.c (show_source_disasm_command)
4581 (show_source_or_disasm_and_command): Update.
4582 * tui/tui-io.c (update_cmdwin_start_line)
4583 (tui_redisplay_readline): Update.
4584 * tui/tui-data.h (struct tui_command_info): Remove.
4585 (struct tui_win_info) <detail>: Remove command_info member.
4586 (struct tui_data_window) <start_line>: New member, from
4588 (TUI_CMD_WIN): Add casts.
4590 2019-06-25 Tom Tromey <tom@tromey.com>
4592 * tui/tui-winsource.c (tui_update_source_window)
4593 (tui_refill_source_window)
4594 (tui_source_window_base::do_scroll_horizontal)
4595 (tui_update_breakpoint_info, tui_set_exec_info_content)
4596 (tui_show_exec_info_content, tui_erase_exec_info_content)
4597 (tui_clear_exec_info_content): Update.
4598 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
4600 * tui/tui-win.c (make_invisible_and_set_new_height)
4601 (make_visible_with_new_height): Update.
4602 * tui/tui-source.c (tui_set_source_content)
4603 (tui_show_symtab_source): Update.
4604 * tui/tui-layout.c (extract_display_start_addr)
4605 (show_source_disasm_command, show_data)
4606 (make_source_or_disasm_window)
4607 (show_source_or_disasm_and_command): Update.
4608 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
4609 (tui_disasm_window::do_scroll_vertical): Remove shadowing
4611 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
4612 to tui_source_window_base.
4613 (struct tui_win_info) <detail>: Remove source_info member.
4614 (struct tui_source_window_base) <has_locator>: Inline.
4615 Move contents from tui_source_info; rename has_locator member to
4617 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
4618 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
4620 (tui_source_window_base::clear_detail, ~tui_source_window_base):
4622 (tui_free_all_source_wins_content): Cast to
4623 tui_source_window_base.
4625 2019-06-25 Tom Tromey <tom@tromey.com>
4627 * tui/tui-win.c (make_invisible_and_set_new_height)
4628 (make_visible_with_new_height): Call has_locator method.
4629 * tui/tui-layout.c (show_source_disasm_command, show_data)
4630 (show_source_or_disasm_and_command): Update for bool change.
4631 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
4632 (tui_win_info) <has_locator>: New method.
4633 (struct tui_source_window_base) <has_locator>: New method.
4634 (tui_win_has_locator): Don't declare.
4635 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
4636 from tui_win_has_locator.
4637 (tui_source_window_base): Use false, not FALSE.
4639 2019-06-25 Tom Tromey <tom@tromey.com>
4641 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
4642 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
4643 clear_detail method directly.
4644 (tui_clear_win_detail): Remove.
4646 2019-06-25 Tom Tromey <tom@tromey.com>
4648 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
4649 "this", not TUI_DISASM_WIN.
4651 2019-06-25 Tom Tromey <tom@tromey.com>
4653 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
4655 * tui/tui-winsource.c
4656 (tui_source_window_base::do_scroll_horizontal): Rename from
4657 tui_horizontal_source_scroll.
4658 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
4659 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
4660 from tui_vertical_data_scroll.
4661 * tui/tui-win.h (tui_scroll): Don't declare.
4662 * tui/tui-win.c (tui_win_info::forward_scroll)
4663 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
4664 (tui_win_info::right_scroll): Rename and update.
4665 (tui_scroll_forward_command, tui_scroll_backward_command)
4666 (tui_scroll_left_command, tui_scroll_right_command): Update.
4667 (tui_scroll): Remove.
4668 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
4669 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
4670 from tui_vertical_source_scroll.
4671 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
4672 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
4673 from tui_vertical_disassem_scroll.
4674 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
4675 do_scroll_horizontal>: New methods.
4676 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
4678 (struct tui_source_window_base): Add do_scroll_horizontal.
4679 (struct tui_source_window, struct tui_disasm_window): Add
4681 (struct tui_data_window, struct tui_cmd_window): Add
4682 do_scroll_horizontal and do_scroll_vertical.
4683 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
4685 2019-06-25 Tom Tromey <tom@tromey.com>
4687 * tui/tui-data.h (struct tui_source_window_base): New struct.
4688 (struct tui_source_window): Derive from tui_source_window_base.
4689 (struct tui_disasm_window): New struct.
4690 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
4691 from tui_source_window::clear_detail.
4692 (tui_source_window_base): Rename from tui_source_window.
4693 (~tui_source_window_base): Rename from ~tui_source_window.
4694 (tui_alloc_win_info): Create a tui_disasm_window.
4696 2019-06-25 Tom Tromey <tom@tromey.com>
4698 * tui/tui-data.h (struct tui_source_window)
4699 (struct tui_data_window): Declare destructors.
4700 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
4702 (tui_win_info): Simplify.
4704 2019-06-25 Tom Tromey <tom@tromey.com>
4706 * tui/tui-winsource.c (tui_display_main)
4707 (tui_update_source_windows_with_addr)
4708 (tui_update_all_breakpoint_info): Update.
4709 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4710 (new_height_ok, parse_scrolling_args): Update.
4711 * tui/tui-stack.c (tui_show_frame_info): Update.
4712 * tui/tui-data.h (struct tui_list): Remove.
4713 (tui_source_windows): Return a reference to a std::vector.
4714 * tui/tui-data.c (source_windows): Now a std::vector.
4715 (tui_source_windows): Change return type.
4716 (tui_clear_source_windows): Rewrite.
4717 (tui_clear_source_windows_detail, tui_add_to_source_windows)
4718 (tui_free_all_source_wins_content): Rewrite.
4720 2019-06-25 Tom Tromey <tom@tromey.com>
4722 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
4723 (struct tui_data_window, struct tui_cmd_window): Declare
4724 clear_detail method.
4725 * tui/tui-data.c (tui_source_window::clear_detail)
4726 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
4728 (tui_clear_win_detail): Simplify.
4730 2019-06-25 Tom Tromey <tom@tromey.com>
4732 * tui/tui-layout.c (make_source_window, make_disasm_window)
4733 (make_source_or_disasm_window): Remove win_info_ptr parameter.
4734 Return the new window.
4735 (show_source_disasm_command, show_data)
4736 (show_source_or_disasm_and_command): Update.
4738 2019-06-25 Tom Tromey <tom@tromey.com>
4740 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
4741 parameter. Return the new window.
4742 (show_source_disasm_command): Update and remove NULL check.
4743 (show_source_or_disasm_and_command): Update.
4745 2019-06-25 Tom Tromey <tom@tromey.com>
4747 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
4749 2019-06-25 Tom Tromey <tom@tromey.com>
4751 * tui/tui-data.h (struct tui_win_info): Make constructor
4752 protected. Make destructor virtual. Add initializers.
4753 (tui_source_window, tui_data_window, tui_cmd_window): New
4755 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
4756 constructor. Add "type" parameter.
4757 (tui_source_window, tui_data_window, tui_cmd_window): New
4759 (tui_alloc_win_info): Instantiate the appropriate subclass.
4761 2019-06-25 Tom Tromey <tom@tromey.com>
4763 * tui/tui-win.c (tui_resize_all): Use delete.
4764 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
4766 (tui_free_window): Don't declare.
4767 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
4770 2019-06-25 Tom Tromey <tom@tromey.com>
4772 * tui/tui-data.h (struct tui_win_info): Add constructor.
4773 * tui/tui-data.c (tui_alloc_win_info): Use new.
4774 (tui_free_window): Use delete.
4776 2019-06-22 Tom Tromey <tom@tromey.com>
4778 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
4780 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
4782 2019-06-22 Tom Tromey <tom@tromey.com>
4784 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
4786 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
4788 2019-06-22 Tom de Vries <tdevries@suse.de>
4790 * dwarf2read.c (create_addrmap_from_aranges)
4791 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
4794 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
4796 * dwarf2read.h (dwarf2_section_info_def): Remove.
4797 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
4798 * dwarf2read.c (struct dwo_sections) <types>: Change type to
4799 std::vector<dwarf2_section_info>.
4800 (struct dwo_file) <~dwo_file>: Remove.
4801 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
4803 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
4804 (dwarf2_read_debug_names): Likewise.
4805 (create_debug_types_hash_table): Change parameter type to
4806 array_view, adjust code accordingly.
4807 (dwarf2_locate_dwo_sections): Adjust to std::vector.
4808 (partial_die_info::fixup): Likewise.
4809 (determine_prefix): Likewise.
4810 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
4812 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4814 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
4816 <~dwo_file>: Remove call to gdb_bfd_unref.
4817 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
4818 gdb_bfd_ref_ptr::get.
4820 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4822 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
4824 * dwarf2read.c (struct dwo_file): Initialize fields.
4826 (free_dwo_file): Remove, move content to ~dwo_file.
4827 (struct dwo_file_deleter): Remove.
4828 (dwo_file_up>: Remove custom deleter.
4829 (free_dwo_files): Remove.
4830 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
4832 (process_skeletonless_type_units): Call unique_ptr::get.
4833 (allocate_dwo_file_hash_table): Add deleter to created hash
4834 table. Change return type to htab_up.
4835 (lookup_dwo_file_slot): Don't memset dwo_file, call
4837 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
4838 (create_dwo_unit_in_dwp_v2): Likewise.
4839 (open_and_init_dwo_file): Likewise.
4840 (free_dwo_file_from_slot): Remove.
4842 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4844 * dwarf2read.h (struct dwarf2_section_info) <readin,
4845 is_virtual>: Change type to bool.
4846 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
4849 2019-06-19 Tom Tromey <tom@tromey.com>
4851 * tui/tui-data.h (tui_init_content_element): Don't declare.
4853 2019-06-19 Tom Tromey <tom@tromey.com>
4855 * tui/tui-data.h (tui_init_win_info): Don't declare.
4857 2019-06-19 Tom de Vries <tdevries@suse.de>
4859 * dwarf2read.h (abstract_to_concrete): Change type to
4860 std::unordered_map<sect_offset, std::vector<sect_offset>,
4861 gdb::hash_enum<sect_offset>>.
4863 2019-06-19 Tom Tromey <tromey@adacore.com>
4865 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
4866 EVAL_AVOID_SIDE_EFFECTS specially.
4868 2019-06-19 Tom Tromey <tromey@adacore.com>
4870 * source-cache.c (highlighter): New global.
4871 (source_cache::get_source_lines): Create a highlighter on demand.
4873 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
4875 * defs.h (deprecated_interactive_hook): Delete declaration.
4876 * interps.c (clear_interpreter_hooks): Remove use of
4877 deprecated_interactive_hook.
4878 * top.c (deprecated_interactive_hook): Delete definition.
4879 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
4881 2019-06-18 Tom de Vries <tdevries@suse.de>
4884 * dwarf2read.h (abstract_to_concrete): Change type from
4885 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
4886 std::unordered_map<sect_offset, std::vector<sect_offset>>.
4887 * dwarf2read.c (read_variable): Update.
4888 (dwarf2_fetch_die_loc_sect_off): Update.
4890 2019-06-17 Tom de Vries <tdevries@suse.de>
4893 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
4894 accessing parent[parent_len - 1].
4896 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
4899 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
4900 call dtrace_process_dof with NULL dof.
4902 2019-06-16 Tom de Vries <tdevries@suse.de>
4905 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
4907 2019-06-16 Tom Tromey <tom@tromey.com>
4909 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
4910 (make_all_visible): Use address of member.
4912 2019-06-16 Tom Tromey <tom@tromey.com>
4914 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
4915 (tui_free_window, free_content, free_content_elements): Remove
4917 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
4919 * tui/tui-regs.c (tui_show_register_group)
4920 (tui_display_registers_from, tui_display_reg_element_at_line):
4921 Remove unnecessary cast.
4923 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
4925 * linux-nat.c (normal_mask): Delete.
4926 (_initialize_linux_nat): Don't initialise normal_mask.
4928 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
4931 * dwarf-index-write.h (write_psymtabs_to_index): Add
4932 dwz_basename parameter.
4933 * dwarf-index-write.c (write_gdbindex): Move file writing to
4934 write_gdbindex_1. Change return type void.
4935 (assert_file_size): Move up, remove filename parameter.
4936 (write_gdbindex_1): New function.
4937 (write_debug_names): Change return type to void, call
4939 (struct index_wip_file): New struct.
4940 (write_psymtabs_to_index): Add dwz_basename parameter. Move
4941 file logic to index_wip_file. Write index for dwz file if
4943 (save_gdb_index_command): Pass basename of dwz file, if present.
4944 * dwarf-index-cache.c (index_cache::store): Obtain and pass
4945 build-id of dwz file, if present.
4946 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
4947 (dwarf2_get_dwz_file): Likewise.
4948 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
4949 (dwarf2_get_dwz_file): Likewise.
4951 2019-06-16 Tom Tromey <tom@tromey.com>
4953 * coffread.c (process_coff_symbol): Use xstrdup.
4954 * value.c (create_internalvar): Use xstrdup.
4956 2019-06-16 Tom Tromey <tom@tromey.com>
4958 * valops.c (value_cast, value_slice): Remove unnecessary cast.
4959 * breakpoint.c (stopin_command, stopat_command)
4960 (until_break_command, decode_location_default): Remove unnecessary
4962 * utils.c (subset_compare): Remove unnecessary cast.
4963 * ada-lang.c (ada_update_initial_language): Remove unnecessary
4965 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
4967 * infcmd.c (path_command): Remove unnecessary cast.
4968 * coffread.c (decode_type): Remove unnecessary cast.
4969 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
4970 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
4971 * tui/tui-stack.c (tui_show_locator_content)
4972 (tui_show_frame_info): Remove unnecessary cast.
4973 * tui/tui-win.c (tui_scroll_forward_command)
4974 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
4975 (parse_scrolling_args): Remove unnecessary cast.
4976 * tui/tui-data.c (init_win_info, tui_del_window)
4977 (tui_free_window, tui_del_data_windows, tui_free_data_content)
4978 (free_content_elements): Remove unnecessary cast.
4979 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
4981 * tui/tui-source.c (tui_set_source_content)
4982 (tui_vertical_source_scroll): Remove unnecessary cast.
4983 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
4985 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
4986 * tui/tui-regs.c (tui_display_registers_from)
4987 (tui_display_register): Remove unnecessary cast.
4988 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
4989 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
4990 (make_visible): Remove unnecessary cast.
4991 * tui/tui-winsource.c (tui_erase_source_content)
4992 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
4994 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
4995 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
4996 * stabsread.c (read_type, read_array_type, read_range_type):
4997 Remove unnecessary cast.
4998 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
4999 (parse_symbol, parse_type, upgrade_type, parse_external)
5000 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
5002 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
5004 2019-06-16 Tom Tromey <tom@tromey.com>
5006 * tui/tui-data.c (tui_alloc_generic_win_info)
5007 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
5010 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
5011 Andrew Burgess <andrew.burgess@embecosm.com>
5013 * f-typeprint.c (f_print_type): Don't return early for not
5014 associated or not allocated types.
5015 (f_type_print_varspec_suffix): Add print_rank parameter and print
5016 ranks of array types in case they dangling.
5017 (f_type_print_base): Add print_rank parameter.
5019 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5021 * NEWS: Mention new MI commands.
5022 * break-catch-throw.c (enum exception_event_kind): Move to
5024 (print_mention_exception_catchpoint): Output text as a single
5026 (catch_exception_command_1): Rename to...
5027 (catch_exception_event): ...this, make non-static, update header
5028 command, and change some parameter types.
5029 (catch_catch_command): Update for changes to
5030 catch_exception_command_1.
5031 (catch_throw_command): Likewise.
5032 (catch_rethrow_command): Likewise.
5033 * breakpoint.c (enum exception_event_kind): Delete.
5034 * breakpoint.h (enum exception_event_kind): Moved here from
5035 break-catch-throw.c.
5036 (catch_exception_event): Declare.
5037 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
5038 (mi_cmd_catch_throw): New function.
5039 (mi_cmd_catch_rethrow): New function.
5040 (mi_cmd_catch_catch): New function.
5041 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
5042 'catch-catch' entries.
5043 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
5044 (mi_cmd_catch_rethrow): Declare.
5045 (mi_cmd_catch_catch): Declare.
5047 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5049 * annotate.c (annotate_source_line): Change return type to void,
5050 update implementation to match.
5051 * annotate.h (annotate_source_line): Change return type to void,
5052 update header comment.
5053 * stack.c (print_frame_info): Don't change what frame information
5054 is printed based on whether annotations are on or not.
5056 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5058 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
5059 (annotate_source): Make static.
5060 (annotate_source_line): Moved from source.c and renamed from
5061 identify_source_line. Update the return type.
5062 * annotate.h (annotate_source): Delete declaration.
5063 (annotate_source_line): Declaration moved from source.h, and
5064 renamed from identify_source_line. Return type updated.
5065 * source.c (identify_source_line): Moved to annotate.c and renamed
5066 to annotate_source_line.
5067 (info_line_command): Remove check of annotation_level.
5068 * source.h (identify_source_line): Move declaration to annotate.h
5069 and rename to annotate_source_line.
5070 * stack.c: Add 'annotate.h' include.
5071 (print_frame_info): Remove check of annotation_level before
5072 calling annotate_source_line.
5074 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5076 * source-cache.c (source_cache::get_plain_source_lines): Use
5077 open_source_file_with_line_charpos instead of just
5078 open_source_file, remove call to find_source_lines.
5079 (source_cache::get_source_lines): Likewise.
5080 * source.c (find_source_lines): Make static.
5081 (get_filename_and_charpos): Renamed into...
5082 (open_source_file_with_line_charpos): ..this along with changes to
5083 return a scoped_fd, and some other minor clean ups.
5084 (identify_source_line): Use open_source_file_with_line_charpos.
5085 (search_command_helper): Use open_source_file_with_line_charpos
5086 instead of just open_source_file, remove call to
5088 * source.h (open_source_file_with_line_charpos): Declare new
5090 (find_source_lines): Delete declaration.
5092 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5094 * source.c (get_filename_and_charpos): Remove fullname
5096 (identify_source_line): Update call to get_filename_and_charpos.
5098 2019-06-14 Tom Tromey <tromey@adacore.com>
5101 * ui-style.h (skip_ansi_escape): Update comment.
5102 * ui-file.h (class no_terminal_escape_file): New class.
5103 * ui-file.c (no_terminal_escape_file::write)
5104 (no_terminal_escape_file::puts): New methods.
5105 * cli/cli-logging.c (handle_redirections): Use
5106 no_terminal_escape_file.
5108 2019-06-14 Tom Tromey <tromey@adacore.com>
5110 * NEWS: Move convenience variable news above Python news.
5112 2019-06-14 Tom Tromey <tom@tromey.com>
5114 * gnulib: Move directory to top-level.
5115 * configure.ac: Don't configure gnulib.
5116 * configure: Rebuild.
5117 * common/common-defs.h: Use new path to gnulib.
5118 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
5120 (INCGNU): Look in new gnulib location.
5121 (HFILES_NO_SRCDIR): Remove gnulib files.
5122 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
5123 (generated_files): Remove GNULIB_H.
5124 ($(LIBGNU), all-lib): Remove targets.
5125 (distclean): Don't mention GNULIB_BUILDDIR.
5126 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
5128 2019-06-14 Tom Tromey <tromey@adacore.com>
5130 * symfile.c (add_symbol_file_command): Remove obsolete comment.
5131 Warn if symbol file does not provide any symbols.
5133 2019-06-14 Tom Tromey <tromey@adacore.com>
5135 * source.c (find_and_open_source): Respect basenames_may_differ.
5137 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
5139 * annotate.c (annotate_breakpoints_invalid): Make use of
5140 scoped_restore_terminal_state.
5141 (annotate_frames_invalid): Likewise.
5143 2019-06-14 Tom Tromey <tromey@adacore.com>
5145 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
5146 allow assignment to an internalvar.
5148 2019-06-14 Tom Tromey <tromey@adacore.com>
5150 * ada-lex.l: Allow "_" in attribute names.
5152 2019-06-14 Tom Tromey <tromey@adacore.com>
5155 * regcache.c (registers_changed): Don't call alloca.
5156 * top.c (execute_command): Don't call alloca.
5158 2019-06-13 Pedro Alves <palves@redhat.com>
5160 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
5161 'expression'. When parsing an expression, error out if there's
5162 junk after "unlimited".
5163 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5164 (do_set_command): Adjust calls to is_unlimited_literal.
5166 2019-06-13 Pedro Alves <palves@redhat.com>
5168 * compile/compile.c (make_compile_options_def_group): Add braces
5169 around array_view initializer.
5170 * thread.c (make_thread_apply_all_options_def_group)
5171 (make_thread_apply_all_options_def_group): Likewise.
5173 2019-06-13 Pedro Alves <palves@redhat.com>
5175 * NEWS (New commands): Mention "maint test-options
5176 require-delimiter", "maint test-options unknown-is-error", "maint
5177 test-options unknown-is-operand" and "maint show
5178 test-options-completion-result".
5179 (New command options, command completion): New section.
5180 (Completion improvements): New section.
5181 Mention that you can abbreviate "unlimited".
5183 2019-06-13 Pedro Alves <palves@redhat.com>
5185 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
5186 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
5187 * unittests/cli-utils-selftests.c (test_parse_flags)
5188 (test_parse_flags_qcs): Delete.
5189 (test_cli_utils): Don't call deleted functions.
5191 2019-06-13 Pedro Alves <palves@redhat.com>
5193 * thread.c: Include "cli/cli-option.h".
5194 (tp_array_compar_ascending): Global.
5195 (tp_array_compar): Delete function.
5196 (tp_array_compar_ascending, tp_array_compar_descending): New
5198 (ascending_option_def, qcs_flag_option_def)
5199 (thr_qcs_flags_option_defs)
5200 (make_thread_apply_all_options_def_group)
5201 (make_thread_apply_options_def_group): New.
5202 (thread_apply_all_command): Use gdb::option::process_options.
5203 (thread_apply_command_completer)
5204 (thread_apply_all_command_completer): New.
5205 (thread_apply_command): Use gdb::option::process_options.
5206 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
5207 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
5208 to generate help text of "thread apply". Adjust "taas"'s help.
5209 * tid-parse.c (tid_range_parser::in_thread_range): New method.
5210 * tid-parse.h (tid_range_parser::in_thread_range): New method.
5212 2019-06-13 Pedro Alves <palves@redhat.com>
5214 * thread.c (thread_apply_command): Check for invalid TID with
5215 isdigit instead of !isalpha.
5217 2019-06-13 Pedro Alves <palves@redhat.com>
5219 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
5220 (validate_flags_qcs): New.
5221 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
5222 (validate_flags_qcs): Declare.
5223 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
5224 (make_frame_apply_options_def_group): New.
5225 (frame_apply_command_count): Process options with
5226 gdb::option::process_options.
5227 (frame_apply_completer): New.
5228 (frame_apply_level_completer, frame_apply_all_completer)
5229 (frame_apply_completer): New.
5230 (_initialize_stack): Update help of "frame apply", "frame apply
5231 level", "frame apply all" and "faas" to mention supported options
5232 and install command completers.
5233 * stack.h (frame_apply_all_completer): Declare.
5234 * thread.c: Include "stack.h".
5235 (tfaas_command): Add "--".
5236 (_initialize_thread): Update help "tfaas" to mention supported
5237 options and install command completer.
5239 2019-06-13 Pedro Alves <palves@redhat.com>
5241 * completer.c (complete_nested_command_line): New.
5242 (gdb_completion_word_break_characters_throw): Add assertion.
5243 * completer.h (complete_nested_command_line): Declare.
5245 2019-06-13 Pedro Alves <palves@redhat.com>
5247 * stack.c (parse_backtrace_qualifiers): New.
5248 (backtrace_command): Use it.
5249 (backtrace_command_completer): Complete on qualifiers.
5251 2019-06-13 Pedro Alves <palves@redhat.com>
5253 * frame.c: Include "cli/cli-option.h.
5254 (user_set_backtrace_options): New.
5255 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
5257 (get_prev_frame): Adjust.
5258 (boolean_option_def, uinteger_option_def)
5259 (set_backtrace_option_defs): New.
5260 (_initialize_frame): Adjust and use
5261 gdb::option::add_setshow_cmds_for_options to install "set
5262 backtrace past-main" and "set backtrace past-entry".
5263 * frame.h: Include "cli/cli-option.h".
5264 (struct frame_print_options): Forward declare.
5265 (print_frame_arguments_all, print_frame_arguments_scalars)
5266 (print_frame_arguments_none): Declare.
5267 (print_entry_values): Delete declaration.
5268 (struct frame_print_options, user_frame_print_options): New.
5269 (struct set_backtrace_options): New.
5270 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
5271 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
5272 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
5273 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
5274 (list_args_or_locals): Add frame_print_options parameter.
5275 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
5276 * python/py-framefilter.c (enumerate_args): Pass down
5277 USER_FRAME_PRINT_OPTIONS.
5278 * stack.c: Include "cli/cli-option.h".
5279 (print_frame_arguments_all, print_frame_arguments_scalars)
5280 (print_frame_arguments_none): Declare.
5281 (print_raw_frame_arguments, print_entry_values): Delete.
5282 (user_frame_print_options): New.
5283 (boolean_option_def, enum_option_def, frame_print_option_defs):
5285 (struct backtrace_cmd_options): New.
5286 (bt_flag_option_def): New.
5287 (backtrace_command_option_defs): New.
5288 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
5289 (print_frame_arg, read_frame_arg, print_frame_args)
5290 (print_frame_info, print_frame): Add frame_print_options parameter
5292 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
5293 (backtrace_command_1): Add frame_print_options and
5294 backtrace_cmd_options parameters and use them.
5295 (make_backtrace_options_def_group): New.
5296 (backtrace_command): Process command options with
5297 gdb::option::process_options.
5298 (backtrace_command_completer): New.
5299 (_initialize_stack): Extend "backtrace"'s help to mention
5300 supported options. Install completer for "backtrace".
5301 Install some settings commands with add_setshow_cmds_for_options.
5303 2019-06-13 Pedro Alves <palves@redhat.com>
5305 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
5306 and that "set/show print raw frame-arguments" are now deprecated.
5308 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
5310 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
5311 * stack.c (_initialize_stack): Install "set/show print
5312 raw-frame-arguments", and deprecate "set/show print raw
5314 * valprint.c (_initialize_valprint): Deprecate "set/show print
5317 2019-06-13 Pedro Alves <palves@redhat.com>
5319 * compile/compile.c (struct compile_options): New.
5320 (compile_flag_option_def, compile_command_option_defs)
5321 (make_compile_options_def_group): New.
5322 (compile_file_command): Handle options with
5323 gdb::option::process_options.
5324 (compile_file_command_completer): New function.
5325 (compile_code_command): Handle options with
5326 gdb::option::process_options.
5327 (compile_code_command_completer): New function.
5328 (_initialize_compiler): Install completers for "compile code" and
5329 "compile file". Mention available options in "compile code" and
5330 "compile code"'s help.
5331 * completer.c (advance_to_completion_word): New, factored out from
5333 (advance_to_expression_complete_word_point): ... this.
5334 (advance_to_filename_complete_word_point): New.
5335 * completer.h (advance_to_filename_complete_word_point): New
5338 2019-06-13 Pedro Alves <palves@redhat.com>
5340 * compile/compile.c: Include "cli/cli-option.h".
5341 (compile_print_value): Scope data pointer is now a
5342 value_print_options pointer; adjust.
5343 (compile_print_command): Process options. Scope data pointer is
5344 now a value_print_options pointer; adjust.
5345 (_initialize_compile): Update "compile print"'s help to include
5346 supported options. Install a completer for "compile print".
5347 * cp-valprint.c (show_vtblprint, show_objectprint)
5348 (show_static_field_print): Delete.
5349 (_initialize_cp_valprint): Don't install "set print
5350 static-members", "set print vtbl", "set print object" here.
5351 * printcmd.c: Include "cli/cli-option.h" and
5352 "common/gdb_optional.h".
5353 (print_command_parse_format): Rework to fill in a
5354 value_print_options instead of a format_data.
5355 (print_value): Change parameter type from format_data pointer to
5356 value_print_options reference. Adjust.
5357 (print_command_1): Process options. Adjust to pass down a
5358 value_print_options.
5359 (print_command_completer): New.
5360 (_initialize_printcmd): Install print_command_completer as
5361 handle_brkchars completer for the "print" command. Update
5362 "print"'s help to include supported options.
5363 * valprint.c: Include "cli/cli-option.h".
5364 (show_vtblprint, show_objectprint, show_static_field_print): Moved
5365 here from cp-valprint.c.
5366 (boolean_option_def, uinteger_option_def)
5367 (value_print_option_defs, make_value_print_options_def_group):
5368 New. Use gdb::option::add_setshow_cmds_for_options to install
5369 "set print elements", "set print null-stop", "set print repeats",
5370 "set print pretty", "set print union", "set print array", "set
5371 print address", "set print symbol", "set print array-indexes".
5372 * valprint.h: Include <string> and "cli/cli-option.h".
5373 (make_value_print_options_def_group): Declare.
5374 (print_value): Change parameter type from format_data pointer to
5375 value_print_options reference.
5376 (print_command_completer): Declare.
5378 2019-06-13 Pedro Alves <palves@redhat.com>
5380 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
5381 (COMMON_SFILES): Add maint-test-settings.c.
5382 * cli/cli-decode.c (boolean_enums): New global, factored out from
5384 (add_setshow_boolean_cmd): ... here.
5385 * cli/cli-decode.h (boolean_enums): Declare.
5386 * cli/cli-option.c: New file.
5387 * cli/cli-option.h: New file.
5388 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
5389 factored out from ...
5390 (parse_cli_boolean_value(const char *)): ... this.
5391 (is_unlimited_literal): Change parameter type to pointer to
5392 pointer. Adjust and advance ARG pointer.
5393 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5394 (parse_cli_var_enum): New, factored out from ...
5395 (do_set_command): ... this. Adjust.
5396 * cli/cli-setshow.h (parse_cli_boolean_value)
5397 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5398 (parse_cli_var_enum): Declare.
5399 * cli/cli-utils.c: Include "cli/cli-option.h".
5400 (get_ulongest): New.
5401 * cli/cli-utils.h (get_ulongest): Declare.
5402 (check_for_argument): New overloads.
5403 * maint-test-options.c: New file.
5405 2019-06-13 Pedro Alves <palves@redhat.com>
5407 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
5408 parse a range if "-" is at the end of the string.
5410 2019-06-13 Pedro Alves <palves@redhat.com>
5412 * cli/cli-setshow.c (parse_auto_binary_operation)
5413 (parse_cli_boolean_value): Don't allow "o".
5415 2019-06-13 Pedro Alves <palves@redhat.com>
5417 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
5418 * NEWS: Mention maint test-settings KIND.
5419 * maint-test-settings.c: New file.
5421 2019-06-13 Pedro Alves <palves@redhat.com>
5423 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
5425 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
5428 2019-06-13 Pedro Alves <palves@redhat.com>
5430 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
5433 2019-06-13 Pedro Alves <palves@redhat.com>
5435 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
5437 2019-06-13 Pedro Alves <palves@redhat.com>
5439 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
5440 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
5442 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
5443 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
5445 (check_for_argument): Skip spaces after argument.
5447 2019-06-13 Pedro Alves <palves@redhat.com>
5449 * thread.c (thread_apply_command): Adjust TID parsing.
5450 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
5451 detected before end of string.
5452 (tid_is_in_list): Error out if LIST is invalid.
5454 2019-06-13 Pedro Alves <palves@redhat.com>
5456 * completer.c (complete_line_internal_1): Rewind completion word
5458 (completion_tracker::advance_custom_word_point_by): Change
5459 parameter type to int.
5460 * completer.h (completion_tracker::advance_custom_word_point_by):
5463 2019-06-13 Pedro Alves <palves@redhat.com>
5465 * completer.c (advance_to_completion_word): Handle delimiters.
5467 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
5469 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
5471 2019-06-11 Tom Tromey <tom@tromey.com>
5473 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
5474 (xmalloc_failed): Move to alloc.c.
5475 * alloc.c: New file.
5476 * Makefile.in (COMMON_SFILES): Add alloc.c.
5478 2019-06-11 Tom Tromey <tom@tromey.com>
5480 * nat/linux-waitpid.c: Don't include server.h.
5481 (linux_debug): Remove.
5482 (my_waitpid): Update.
5484 2019-06-11 Tom Tromey <tromey@adacore.com>
5486 * infcall.c (_initialize_infcall): Remove trailing newline from
5488 * user-regs.c (_initialize_user_regs): Remove trailing newline
5490 * typeprint.c (_initialize_typeprint): Remove trailing newline
5492 * reverse.c (_initialize_reverse): Remove trailing newlines from
5494 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
5496 * language.c (add_set_language_command): Remove trailing newline
5498 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
5500 * disasm.c (_initialize_disasm): Remove trailing newline from
5502 * top.c (init_main): Remove trailing newline from help.
5503 * interps.c (_initialize_interpreter): Remove trailing newline
5505 * btrace.c (_initialize_btrace): Remove trailing newlines from
5507 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
5509 * python/python.c (_initialize_python): Remove trailing newline
5511 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
5513 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
5514 from help. Reformat some text.
5515 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
5517 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
5520 2019-06-11 Tom Tromey <tromey@adacore.com>
5522 * darwin-nat.c (darwin_decode_exception_message)
5523 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
5525 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
5527 * valops.c (value_slice): Check for not allocated or not
5530 2019-06-10 Tom de Vries <tdevries@suse.de>
5533 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
5534 sure an empty slot (defined by a 32-bit zero pair) is recognized as
5537 2019-06-10 Tom de Vries <tdevries@suse.de>
5540 * linespec.c (linespec_lexer_lex_string): Remove incorrect
5541 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
5543 2019-06-10 Tom de Vries <tdevries@suse.de>
5546 * symtab.c (struct demangled_name_entry): Add language field.
5547 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
5548 static minimal symbol". Set and use language field.
5550 2019-06-10 Tom Tromey <tromey@adacore.com>
5552 * ada-lang.c (_initialize_ada_language): Update help text.
5554 2019-06-10 Tom Tromey <tromey@adacore.com>
5556 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
5558 * guile/guile.c (handle_boot_error): Don't end warning with a
5560 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
5561 warning with a newline.
5562 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
5564 (s12z_frame_cache): Likewise.
5565 * dwarf-index-cache.c (index_cache::store): Don't end warning with
5567 * solib-svr4.c (disable_probes_interface): Don't end warning with
5569 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
5571 * python/python.c (do_finish_initialization): Don't end warning
5574 2019-06-10 Tom Tromey <tom@tromey.com>
5576 * python/py-breakpoint.c (gdbpy_breakpoint_created)
5577 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
5580 2019-06-10 Tom Tromey <tromey@adacore.com>
5582 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
5584 (elf_new_init): Don't call stabsread_new_init.
5585 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
5586 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
5587 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
5589 2019-06-10 Tom de Vries <tdevries@suse.de>
5593 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
5595 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
5597 * source.c (find_and_open_source): Also rewrite relative file
5600 2019-04-26 Amos Bird <amosbird@gmail.com>
5602 * annotate.c (annotate_thread_exited): Add "thread-exited"
5605 2019-06-06 Tom Tromey <tromey@adacore.com>
5607 * maint.h (class scoped_command_stats): Use
5608 DISABLE_COPY_AND_ASSIGN.
5609 <print_time>: New method.
5610 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
5612 (scoped_command_stats::print_time): New method.
5614 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5616 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
5617 instructions of lengths 6 or 8 bytes.
5619 2019-06-04 Pedro Alves <palves@redhat.com>
5621 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
5623 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
5624 * breakpoint.c (condition_completer): Likewise.
5625 * cli/cli-dump.c (scan_expression): Likewise.
5626 * common/filestuff.c (mkdir_recursive): Likewise.
5627 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
5628 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
5629 (gdb_abspath): Likewise.
5630 * compile/compile-cplus-types.c
5631 (compile_cplus_instance::decl_name): Likewise.
5632 * completer.c (complete_explicit_location):
5633 (signal_completer, reg_or_group_completer_1): Likewise.
5634 * cp-support.c (cp_remove_params_if_any): Likewise.
5635 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
5636 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
5637 * infcmd.c (strip_bg_char): Likewise.
5638 * linespec.c (copy_token_string): Likewise.
5639 * mi/mi-main.c (output_cores): Likewise.
5640 * psymtab.c (psymtab_search_name):
5641 * symfile.c (test_set_ext_lang_command): Likewise.
5642 * target.c (target_fileio_read_stralloc): Likewise.
5643 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
5644 * value.c (complete_internalvar): Likewise.
5646 2019-06-04 Christian Biesinger <cbiesinger@google.com>
5648 Add objfile property to gdb.Type.
5649 * NEWS: Mention Python API addition.
5650 * python/py-type.c (typy_get_objfile): New method.
5652 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5654 * NEWS: Mention the new set|show style [title|highlight].
5655 Mention changes to "show style", "help" and "apropos".
5657 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5659 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
5660 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
5661 instead of print_help_for_command.
5662 (print_doc_of_command): New function.
5663 (help_list): Add 'apropos -v word' suggestion.
5664 (print_help_for_command): Style the command name using title style.
5665 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
5666 (_initialize_cli_cmds): Describe -v in apropos_command help.
5668 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5670 * cli/cli-style.h (cli_style_option): Add name in constructor,
5671 add m_name class member, add constructor with intensity,
5672 add name class function.
5673 (cli_style_option::add_setshow_commands): Remove name argument.
5674 (highlight_style, title_style): New styles.
5675 * cli/cli-style.c (do_show): New function that shows a style
5676 characteristic styling the style name with itself.
5677 (set_style_name): New function.
5678 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
5679 Update all callers according to the changes in cli/cli-style.h.
5680 * utils.h (fputs_highlighted): New function.
5681 * utils.c (fputs_highlighted): Likewise.
5683 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5685 * NEWS: Mention new pipe command and new convenience variables.
5687 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5689 * cli/cli-cmds.c (pipe_command): New function.
5690 (_initialize_cli_cmds): Call add_com for pipe_command.
5691 Define | as an alias for pipe.
5692 (exit_status_set_internal_vars): New function.
5693 (shell_escape): Call exit_status_set_internal_vars.
5694 cli/cli-decode.c (find_command_name_length): Recognize | as
5695 a single character command.
5697 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5699 * gdbcmd.h (execute_command_to_ui_file): New declaration.
5700 top.c (execute_command_to_ui_file): New function, mostly a copy
5701 of execute_command_to_string.
5702 (execute_command_to_string): Implement by calling
5703 execute_command_to_ui_file.
5705 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5707 * top.h (saved_command_line): Remove declaration.
5708 * top.c (previous_saved_command_line, previous_repeat_arguments):
5710 (saved_command_line): Make static, define together with other
5712 (dont_repeat): Clear repeat_arguments.
5713 (repeat_previous, get_saved_command_line, save_command_line):
5715 (gdb_init): Initialize saved_command_line
5716 and previous_saved_command_line.
5717 * main.c (captured_main_1): Remove saved_command_line initialization.
5718 * event-top.c (handle_line_of_input): Update to use
5719 the new 'repeat' related functions instead of direct access to
5721 * command.h (repeat_previous, get_saved_command_line,
5722 save_command_line): New declarations.
5723 (dont_repeat): Add comment.
5725 2019-05-30 Tom Tromey <tromey@adacore.com>
5727 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
5729 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
5731 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
5734 * completer.c (complete): Initialize variable word.
5736 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
5738 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
5739 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
5740 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
5741 'body' is NULL to the outter 'if', protecting the '!is_define'
5744 2019-05-29 Tom Tromey <tromey@adacore.com>
5746 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
5747 (dwarf_unknown): New function.
5748 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
5749 (dwarf_type_encoding_name): Use dwarf_unknown.
5751 2019-05-29 Tom Tromey <tromey@adacore.com>
5754 * cp-valprint.c (cp_print_value_fields): Call
5755 cp_print_static_field inside "try".
5757 2019-05-29 Tom Tromey <tromey@adacore.com>
5759 * inflow.c (struct terminal_info): Add default operator=.
5760 * configure: Rebuild.
5761 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
5762 -Wdeprecated-copy-dtor, -Wredundant-move.
5764 2019-05-29 Tom Tromey <tromey@adacore.com>
5767 * infcmd.c (print_return_value_1): Handle finish_print
5769 (show_print_finish): New function.
5770 (_initialize_infcmd): Add "set/show print finish" commands.
5771 * valprint.c (user_print_options): Initialize new member.
5772 * valprint.h (struct value_print_options) <finish_print>: New
5775 2019-05-28 Tom Tromey <tromey@adacore.com>
5777 * ada-lang.c (ada_remove_Xbn_suffix)
5778 (find_old_style_renaming_symbol)
5779 (parse_old_style_renaming): Remove.
5780 (ada_find_renaming_symbol): Don't call
5781 find_old_style_renaming_symbol.
5782 (ada_is_renaming_symbol): Rename from
5783 ada_find_renaming_symbol. Remove "block" parameter. Return
5785 (ada_read_var_value): Update and simplify.
5786 * ada-exp.y (write_var_or_type): Remove old code.
5788 2019-05-28 Alan Hayward <alan.hayward@arm.com>
5790 * event-top.c: Remove include comment.
5791 * inflow.c (class scoped_ignore_sigttou): Move from here...
5792 * inflow.h (class scoped_ignore_sigttou): ...to here.
5793 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
5794 * top.c: Remove include comment.
5796 2019-05-27 Tom Tromey <tom@tromey.com>
5800 2019-05-22 Tom Tromey <tromey@adacore.com>
5802 * target.c (target_follow_exec): Constify parameter.
5803 * target-delegates.c: Rebuild.
5804 * remote.c (remote_target::follow_exec): Constify parameter.
5805 * infrun.c (follow_exec): Constify parameter.
5806 * target.h (struct target_ops) <follow_exec>: Constify parameter.
5807 (target_follow_exec): Likewise.
5809 2019-05-22 Alan Hayward <alan.hayward@arm.com>
5811 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
5812 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
5814 2019-05-22 Alan Hayward <alan.hayward@arm.com>
5816 * NEWS: Add debugredirect and testsuite sections.
5818 2019-05-22 Simon Cook <simon.cook@embecosm.com>
5820 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
5821 target descriptions using exclusively floating point register name
5824 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
5827 * f-lang.c (build_fortran_types): Handle the case where
5828 gdbarch_floatformat_for_type returns a nullptr.
5830 2019-05-21 Tom de Vries <tdevries@suse.de>
5833 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
5835 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
5838 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
5840 * i386-tdep.c (i386_floatformat_for_type): Use
5841 floatformats_ia64_quad for the 16-byte floating point component
5842 within a fortran 32-byte complex number.
5844 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
5846 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
5847 delete default constructor.
5848 (find_partial_die): Update to return const struct.
5849 (partial_die_parent_scope): Move variable declaration into scope
5850 of its use and change its type to auto.
5851 (guess_partial_die_structure_name): Likewise.
5852 (partial_die_info::fixup): Likewise.
5854 2019-05-17 Tom Tromey <tromey@adacore.com>
5856 * source.c (find_and_open_source): Remove cast.
5858 2019-05-17 Tom Tromey <tromey@adacore.com>
5860 * annotate.c (annotate_source): Make "filename" const.
5861 * annotate.h (annotate_source): Use const.
5863 2019-05-17 Alan Hayward <alan.hayward@arm.com>
5865 * disasm.c (set_disassembler_options): Send errors to stderr.
5867 2019-05-17 Alan Hayward <alan.hayward@arm.com>
5869 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
5870 (cli_interp_base::set_logging): Check debug_redirect.
5871 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
5872 * cli/cli-logging.c (debug_redirect): Add static variable.
5873 (pop_output_files): Add default param.
5874 (handle_redirections): Print debug setting.
5875 (show_logging_command): Likewise.
5876 (_initialize_cli_logging): Add debugredirect command.
5877 * interps.c (current_interp_set_logging): Add debug_redirect
5879 * interps.h (set_logging): Add debug_redirect parameter.
5880 (current_interp_set_logging): Likewise.
5881 * mi/mi-common.h: Likewise.
5882 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
5884 2019-05-17 Alan Hayward <alan.hayward@arm.com>
5885 Tom Tromey <tromey@adacore.com>
5887 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
5889 * cli/cli-interp.h (make_logging_output): Remove declaration.
5890 * cli/cli-logging.c (make_logging_output): Remove function.
5891 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
5893 * ui-file.c (tee_file::tee_file): Remove bools.
5894 (tee_file::~tee_file): Remove deletes.
5895 * ui-file.h (tee_file): Remove bools.
5897 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
5899 * mi/mi-cmds.h (mi_cmd_complete): New function.
5900 * mi/mi-main.c (mi_cmd_complete): Likewise.
5901 * mi/mi-cmds.c: Define new MI command -complete.
5902 * NEWS: Mention new -complete command.
5904 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
5906 * completer.h (complete): New function.
5907 * completer.c (complete): Likewise.
5908 * cli/cli-cmds.c: (complete_command): Update to use new complete()
5909 function defined in completer.h.
5911 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
5913 * MAINTAINERS (Write After Approval): Add myself.
5915 2019-05-17 Tom de Vries <tdevries@suse.de>
5918 * dwarf2read.c (struct cu_partial_die_info): New struct.
5919 (find_partial_die): Return cu_partial_die_info.
5920 (partial_die_parent_scope, guess_partial_die_structure_name)
5921 (partial_die_info::fixup): Handle new return type of find_partial_die.
5923 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5925 PR breakpoints/24541
5926 * stap-probe.c (stap_parse_register_operand): Make "regname" an
5927 "std::string", simplifying the algorithm.
5929 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5931 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
5932 (stap_static_probe_ops::get_probes): Likewise.
5934 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5936 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
5937 '-')" and "else if".
5938 (stap_parse_single_operand): Join checks for
5939 "gdbarch_stap_parse_special_token_p" and
5940 "gdbarch_stap_parse_special_token" in the same "if" statement.
5941 Invert check when verifying for operation on register
5944 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5946 * stap-probe.c (stap_get_opcode): Update comment.
5947 (stap_get_expected_argument_type): Likewise.
5948 (handle_stap_probe): Likewise.
5950 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5952 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
5953 return type to 'bool'. Adjust comment. Use 'bool' when
5955 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5956 * stap-probe.c (stap_parse_argument_1): Likewise.
5957 (stap_is_operator): Likewise.
5958 (stap_is_generic_prefix): Likewise.
5959 (stap_is_register_prefix): Likewise.
5960 (stap_is_register_indirection_prefix): Likewise.
5961 (stap_is_integer_prefix): Likewise.
5962 (stap_generic_check_suffix): Likewise.
5963 (stap_check_integer_suffix): Likewise.
5964 (stap_check_register_suffix): Likewise.
5965 (stap_check_register_indirection_suffix): Likewise.
5966 (stap_parse_register_operand): Likewise.
5967 (stap_parse_single_operand): Likewise.
5968 (stap_parse_argument_1): Likewise.
5969 (stap_probe::get_argument_count): Likewise.
5970 (stap_is_operator): Likewise.
5972 2019-05-16 Tom Tromey <tromey@adacore.com>
5974 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
5977 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
5979 * linux-thread-db.c (try_thread_db_load_1): Change return type
5981 (try_thread_db_load): Likewise.
5982 (try_thread_db_load_from_pdir_1): Likewise.
5983 (try_thread_db_load_from_pdir): Likewise.
5984 (try_thread_db_load_from_sdir): Likewise.
5985 (try_thread_db_load_from_dir): Likewise.
5986 (thread_db_load_search): Likewise.
5987 (has_libpthread): Likewise.
5988 (thread_db_load): Likewise.
5990 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
5992 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
5993 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
5994 NULL, and complain/return if that's the case.
5996 2019-05-15 John Darrington <john@darrington.wattle.id.au>
5998 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
5999 (advance, posn, abstract_read_memory): New functions.
6000 [struct mem_read_abstraction]: New struct.
6001 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
6003 2019-05-14 Tom Tromey <tromey@adacore.com>
6005 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
6006 value is not lval_memory.
6008 2019-05-14 Tom Tromey <tromey@adacore.com>
6010 * solib.c (info_sharedlibrary_command): Style the file name.
6012 2019-05-14 Alan Hayward <alan.hayward@arm.com>
6014 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
6015 (aarch64_vnv_type): Likewise.
6016 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
6017 * common/tdesc.c: Likewise.
6018 * common/tdesc.h (enum tdesc_type_kind): Likewise.
6019 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
6020 * features/aarch64-fpu.xml: Add ieee half view.
6021 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
6022 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
6023 * gdbtypes.h (struct builtin_type): Likewise.
6024 (struct objfile_type): Likewise.
6026 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
6028 * language.c (language_sniff_from_mangled_name): Fix "langauge"
6030 * location.h (string_to_event_location): Likewise.
6032 2019-05-11 Joel Brobecker <brobecker@adacore.com>
6036 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
6038 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
6039 New variable declaration.
6040 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
6042 (print_one_breakpoint): Use ui_out::test_flags and new global
6043 variable to compute use_fixed_output.
6044 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
6046 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
6047 (mi_multi_location_breakpoint_output_fixed): Remove.
6048 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
6050 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
6051 fix_multi_location_breakpoint_output flag if version >= 3.
6052 * ui-out.h (enum ui_out_flag)
6053 <fix_multi_location_breakpoint_output>: New enumerator.
6055 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
6057 * contrib/cc-with-tweaks.sh: Validate dwz's work.
6059 2019-05-10 Tom Tromey <tromey@adacore.com>
6061 * ada-lang.c (catch_ada_completer): New function.
6062 (_initialize_ada_language): Use it.
6064 2019-05-10 Tom Tromey <tromey@adacore.com>
6066 * thread.c (print_thread_info): Make "requested_threads" const.
6067 * gdbthread.h (print_thread_info): Make "requested_threads"
6069 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
6070 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
6072 2019-05-08 Tom Tromey <tom@tromey.com>
6074 * gdbtypes.c (objfile_type_data): Change type.
6075 (objfile_type, _initialize_gdbtypes): Update.
6077 2019-05-08 Tom Tromey <tom@tromey.com>
6079 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
6080 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
6081 (_initialize_dwarf2_frame): Update.
6083 2019-05-08 Tom Tromey <tom@tromey.com>
6085 * objc-lang.c (objc_objfile_data): Change type.
6086 (find_methods): Update.
6087 (_initialize_objc_lang): Remove.
6089 2019-05-08 Tom Tromey <tom@tromey.com>
6091 * stabsread.c (rs6000_builtin_type_data): Change type.
6092 (rs6000_builtin_type, _initialize_stabsread): Update.
6094 2019-05-08 Tom Tromey <tom@tromey.com>
6096 * mips-tdep.c (mips_pdr_data): Remove.
6097 (_initialize_mips_tdep): Update.
6099 2019-05-08 Tom Tromey <tom@tromey.com>
6101 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
6102 (hppa_init_objfile_priv_data, read_unwind_info)
6103 (find_unwind_entry, _initialize_hppa_tdep): Update.
6105 2019-05-08 Tom Tromey <tom@tromey.com>
6107 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
6108 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
6110 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
6112 2019-05-08 Tom Tromey <tom@tromey.com>
6114 * mdebugread.c (basic_type_data): Change type.
6115 (basic_type, _initialize_mdebugread): Update.
6117 2019-05-08 Tom Tromey <tom@tromey.com>
6119 * common/gdb_unique_ptr.h (struct noop_deleter): New.
6121 2019-05-08 Tom Tromey <tom@tromey.com>
6123 * nto-tdep.c (nto_inferior_data_reg): Change type.
6124 (nto_inferior_data): Update.
6125 (nto_inferior_data_cleanup, nto_new_inferior_data)
6126 (_initialize_nto_tdep): Remove.
6127 * nto-tdep.h (struct nto_inferior_data): Add initializers.
6129 2019-05-08 Tom Tromey <tom@tromey.com>
6131 * ada-lang.c (struct ada_inferior_data): Add initializers.
6132 (ada_inferior_data): Change type.
6133 (ada_inferior_data_cleanup): Remove.
6134 (get_ada_inferior_data, ada_inferior_exit)
6135 (struct ada_pspace_data): Add initializers, destructor.
6136 (ada_pspace_data_handle): Change type.
6137 (get_ada_pspace_data): Update.
6138 (ada_pspace_data_cleanup): Remove.
6140 2019-05-08 Tom Tromey <tom@tromey.com>
6142 * coffread.c (struct coff_symfile_info): Add initializers.
6143 (coff_objfile_data_key): Move lower. Change type.
6144 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
6146 (coff_free_info): Remove.
6148 2019-05-08 Tom Tromey <tom@tromey.com>
6150 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
6151 (fbsd_pspace_data_handle): Move lower. Change type.
6152 (get_fbsd_pspace_data): Update.
6153 (fbsd_pspace_data_cleanup): Remove.
6154 (_initialize_fbsd_tdep): Update.
6156 2019-05-08 Tom Tromey <tom@tromey.com>
6158 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
6159 (get_ada_tasks_pspace_data): Update.
6160 (ada_tasks_pspace_data_cleanup): Remove.
6161 (_initialize_tasks): Update.
6162 (ada_tasks_inferior_data_handle): Change type.
6163 (get_ada_tasks_inferior_data): Update.
6164 (ada_tasks_inferior_data_cleanup): Remove.
6165 (struct ada_tasks_pspace_data): Add initializers.
6167 2019-05-08 Tom Tromey <tom@tromey.com>
6169 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
6170 * symfile-debug.c (debug_sym_get_probes): Change type.
6171 * stap-probe.c (handle_stap_probe):
6172 (stap_static_probe_ops::get_probes): Change type.
6173 * probe.h (class static_probe_ops) <get_probes>: Change type.
6174 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
6175 (parse_probes_in_pspace): Update.
6176 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
6178 (any_static_probe_ops::get_probes): Change type.
6179 * elfread.c (elfread_data): New typedef.
6180 (probe_key): Change type.
6181 (elf_get_probes): Likewise. Update.
6182 (probe_key_free): Remove.
6183 (_initialize_elfread): Update.
6184 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
6186 (dtrace_process_dof_probe, dtrace_process_dof)
6187 (dtrace_static_probe_ops::get_probe): Change type.
6189 2019-05-08 Tom Tromey <tom@tromey.com>
6191 * xcoffread.c (struct xcoff_symfile_info): Rename from
6192 coff_symfile_info. Add initializers.
6193 (xcoff_objfile_data_key): Move lower. Change type.
6194 (XCOFF_DATA): Rewrite.
6195 (xcoff_free_info): Remove.
6196 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
6197 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
6198 (xcoff_initial_scan): Update.
6200 2019-05-08 Tom Tromey <tom@tromey.com>
6202 * solib-svr4.c (struct svr4_info): Add initializers and
6204 <probes_table>: Now an htab_up.
6205 (solib_svr4_pspace_data): Change type.
6206 (free_probes_table): Simplify.
6207 (~svr4_info): Rename from svr4_pspace_data_cleanup.
6208 (get_svr4_info, probes_table_htab_remove_objfile_probes)
6209 (probes_table_remove_objfile_probes, register_solib_event_probe)
6210 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
6211 (_initialize_svr4_solib): Update.
6213 2019-05-08 Tom Tromey <tom@tromey.com>
6215 * remote.c (remote_pspace_data): Change type.
6216 (remote_pspace_data_cleanup): Remove.
6217 (get_remote_exec_file, set_pspace_remote_exec_file)
6218 (_initialize_remote): Update.
6220 2019-05-08 Tom Tromey <tom@tromey.com>
6222 * breakpoint.c (breakpoint_objfile_key): Change type.
6223 (get_breakpoint_objfile_data): Update.
6224 (free_breakpoint_objfile_data): Remove.
6225 (_initialize_breakpoint): Update.
6227 2019-05-08 Tom Tromey <tom@tromey.com>
6229 * linux-tdep.c (struct linux_info): Add initializers.
6230 (linux_inferior_data): Move. Change type.
6231 (invalidate_linux_cache_inf): Update.
6232 (linux_inferior_data_cleanup): Remove.
6233 (get_linux_inferior_data, _initialize_linux_tdep): Update.
6235 2019-05-08 Tom Tromey <tom@tromey.com>
6237 * auxv.c (auxv_inferior_data): Move. Change type.
6238 (auxv_inferior_data_cleanup): Remove.
6239 (invalidate_auxv_cache_inf): Rewrite.
6240 (get_auxv_inferior_data, _initialize_auxv): Update.
6242 2019-05-08 Tom Tromey <tom@tromey.com>
6244 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
6245 (symfile_debug_objfile_data_key): Change type.
6246 (symfile_debug_installed, debug_qf_has_symbols)
6247 (debug_qf_find_last_source_symtab)
6248 (debug_qf_forget_cached_source_info)
6249 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
6250 (debug_qf_print_stats, debug_qf_dump)
6251 (debug_qf_expand_symtabs_for_function)
6252 (debug_qf_expand_all_symtabs)
6253 (debug_qf_expand_symtabs_with_fullname)
6254 (debug_qf_map_matching_symbols)
6255 (debug_qf_expand_symtabs_matching)
6256 (debug_qf_find_pc_sect_compunit_symtab)
6257 (debug_qf_map_symbol_filenames)
6258 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
6259 (debug_sym_new_init, debug_sym_init, debug_sym_read)
6260 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
6261 (debug_sym_read_linetable, debug_sym_relocate): Update.
6262 (symfile_debug_free_objfile): Remove.
6263 (install_symfile_debug_logging, _initialize_symfile_debug):
6266 2019-05-08 Tom Tromey <tom@tromey.com>
6268 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
6269 allocate_on_obstack.
6270 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
6271 (get_dwarf2_per_objfile): Update.
6272 (set_dwarf2_per_objfile): Remove.
6273 (dwarf2_has_info, dwarf2_get_section_info): Update.
6274 (dwarf2_free_objfile): Remove.
6275 (_initialize_dwarf2_read): Update.
6277 2019-05-08 Tom Tromey <tom@tromey.com>
6279 * auto-load.c (struct auto_load_pspace_info): Add destructor and
6281 <unsupported_script_warning_printed,
6282 script_not_found_warning_printed>: Now bool.
6283 (auto_load_pspace_data): Change type.
6284 (~auto_load_pspace_info): Rename from
6285 auto_load_pspace_data_cleanup.
6286 (get_auto_load_pspace_data, init_loaded_scripts_info)
6287 (clear_section_scripts, maybe_print_unsupported_script_warning)
6288 (maybe_print_script_not_found_warning, _initialize_auto_load):
6291 2019-05-08 Tom Tromey <tom@tromey.com>
6293 * objfiles.c (objfile_pspace_info): Add destructor and
6295 (objfiles_pspace_data): Change type.
6296 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
6297 (get_objfile_pspace_data): Update.
6298 (objfiles_bfd_data): Change type.
6299 (get_objfile_bfd_data): Update.
6300 (objfile_bfd_data_free, _initialize_objfiles): Remove.
6302 2019-05-08 Tom Tromey <tom@tromey.com>
6304 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
6306 (get_catch_syscall_inferior_data): Update.
6307 (catch_syscall_inferior_data_cleanup): Remove.
6308 (_initialize_break_catch_syscall): Update.
6310 2019-05-08 Tom Tromey <tom@tromey.com>
6312 * inflow.c (struct terminal_info): Add destructor and
6314 (inflow_inferior_data): Change type.
6315 (~terminal_info): Rename from inflow_inferior_data_cleanup.
6316 (get_inflow_inferior_data, inflow_inferior_exit)
6317 (swap_terminal_info, _initialize_inflow): Update.
6319 2019-05-08 Tom Tromey <tom@tromey.com>
6321 * target-dcache.c (target_dcache_cleanup): Remove.
6322 (target_dcache_aspace_key): Change type.
6323 (target_dcache_init_p, target_dcache_invalidate)
6324 (target_dcache_get, target_dcache_get_or_init)
6325 (_initialize_target_dcache): Update.
6326 * dcache.h (struct dcache_deleter): New.
6328 2019-05-08 Tom Tromey <tom@tromey.com>
6330 * symtab.c (struct symbol_cache): Add destructor and
6332 (symbol_cache_key): Move. Change type.
6333 (make_symbol_cache, free_symbol_cache): Remove.
6334 (get_symbol_cache): Update.
6335 (symbol_cache_cleanup): Remove.
6336 (ALL_PSPACES, symbol_cache_flush)
6337 (maintenance_print_symbol_cache)
6338 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
6341 2019-05-08 Tom Tromey <tom@tromey.com>
6343 * symtab.c (struct main_info): Add destructor and initializers.
6344 (main_progspace_key): Move. Change type.
6345 (get_main_info): Update.
6346 (main_info_cleanup): Remove.
6347 (_initialize_symtab): Update.
6349 2019-05-08 Tom Tromey <tom@tromey.com>
6351 * registry.h (DECLARE_REGISTRY): Define the _key class.
6353 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6355 * NEWS: Merge two 'New commands' sections.
6357 2019-05-08 Joel Brobecker <brobecker@adacore.com>
6359 * ada-valprint.c (ada_val_print_gnat_array): Remove language
6360 parameter and use Ada language definition instead.
6361 (ada_val_print_ptr): Remove unused language parameter.
6362 (ada_val_print_num): Remove language parameter and use Ada language
6364 (ada_val_print_enum, ada_val_print_flt): Remove unused language
6366 (ada_val_print_struct_union, ada_val_print_ref): Remove language
6367 parameter and use Ada language definition instead.
6368 (ada_val_print_1): Update all ada_val_print_xxx calls.
6369 Remove language parameter.
6370 (ada_val_print): Update ada_val_print_1 call.
6372 2019-05-08 Tom Tromey <tromey@adacore.com>
6374 * remote.c (remote_hw_watchpoint_limit)
6375 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
6378 2019-05-08 Tom Tromey <tromey@adacore.com>
6380 * maint.c (_initialize_maint_cmds): Move initialization code to
6382 (watchdog, show_watchdog): Move to remote.c.
6383 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
6385 (_initialize_remote): Move initialization code from maint.c.
6386 * defs.h (watchdog): Don't declare.
6388 2019-05-08 Tom Tromey <tromey@adacore.com>
6390 * tui/tui-interp.c: Include main.h.
6391 * interps.c: Include main.h.
6392 * main.h (interpreter_p): Declare.
6393 * defs.h (interpreter_p): Don't declare.
6395 2019-05-08 Tom Tromey <tromey@adacore.com>
6397 * dwarf2loc.c: Include dwarf2read.h.
6398 * defs.h (read_unsigned_leb128): Don't declare.
6399 * dwarf2read.h (read_unsigned_leb128): Declare.
6401 2019-05-08 Tom Tromey <tromey@adacore.com>
6403 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
6406 2019-05-08 Tom Tromey <tromey@adacore.com>
6408 * utils.c (fputs_maybe_filtered): Reset style after paging, even
6409 when no wrap column is set.
6411 2019-05-08 Tom Tromey <tromey@adacore.com>
6413 * c-lang.c (c_get_string): Handle non-C-style arrays.
6415 2019-05-08 Tom Tromey <tromey@adacore.com>
6417 * typeprint.c (print_offset_data::update): Print the bit offset,
6418 not the number of bits remaining.
6420 2019-05-08 Tom Tromey <tromey@adacore.com>
6422 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
6423 padding at end of comment.
6425 2019-05-08 Tom Tromey <tromey@adacore.com>
6427 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
6430 2019-05-06 Tom Tromey <tom@tromey.com>
6432 * common/scoped_mmap.c: Include common-defs.h.
6433 * common/scoped_mmap.h: Don't include config.h.
6435 2019-05-04 Tom Tromey <tom@tromey.com>
6437 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
6438 (struct aarch64_call_info): Add initializers.
6439 <si>: Now a std::vector.
6440 (pass_on_stack, aarch64_push_dummy_call): Update.
6442 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
6443 Tom Tromey <tom@tromey.com>
6445 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
6446 (ppc_threads): Now a std::vector. Now static.
6447 (hwdebug_find_thread_points_by_tid)
6448 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
6451 2019-05-04 Tom Tromey <tom@tromey.com>
6453 * arc-tdep.c (arc_tdesc_init): Return bool.
6455 2019-05-04 Tom Tromey <tom@tromey.com>
6457 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
6458 Use gdb_assert_not_reached.
6460 2019-05-04 Tom Tromey <tom@tromey.com>
6462 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
6465 2019-05-04 Tom Tromey <tom@tromey.com>
6467 * arc-tdep.c (arc_tdesc_init): Use bool.
6469 2019-05-04 Tom Tromey <tom@tromey.com>
6471 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
6473 2019-05-04 Tom Tromey <tom@tromey.com>
6475 * cli/cli-cmds.c (valid_command_p): Return bool.
6477 2019-05-04 Tom Tromey <tom@tromey.com>
6479 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
6480 * command.h (valid_user_defined_cmd_name_p): Channge return type.
6482 2019-05-04 Raul Tambre <raul@tambre.ee>
6484 * python/lib/gdb/prompt.py (_ExtendedPrompt)
6485 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
6486 operator for comparison.
6488 2019-05-04 Tom Tromey <tom@tromey.com>
6490 * psymtab.c (psymbol_name_matches, match_partial_symbol)
6491 (lookup_partial_symbol, print_partial_symbols)
6492 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
6493 (psymbol_compare): Update.
6494 (add_psymbol_to_bcache): Clear the entire psymbol.
6495 (maintenance_check_psymtabs): Update.
6496 * psympriv.h (struct partial_symbol): Don't derive from
6497 general_symbol_info.
6498 <obj_section, unrelocated_address, address,
6499 set_unrelocated_address>: Update.
6500 <ginfo>: New member.
6501 * dwarf-index-write.c (write_psymbols, debug_names::insert)
6502 (debug_names::write_psymbols): Update.
6504 2019-05-04 Tom de Vries <tdevries@suse.de>
6506 * contrib/cc-with-tweaks.sh: Support -n arg.
6508 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6510 * corelow.c (core_target::detach): Ensure frame cache and
6511 register caches are cleared.
6512 inferior.c (exit_inferior_1): Likewise.
6514 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
6515 Tom Tromey <tom@tromey.com>
6517 * dictionary.c (collate_pending_symbols_by_language): Remove
6518 "struct" from foreach.
6519 * symtab.c (lookup_global_symbol_from_objfile)
6520 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
6522 * ser-tcp.c (net_open): Remove "struct" from foreach.
6523 * objfiles.c (objfile_relocate, objfile_rebase)
6524 (objfile_has_symbols): Remove "struct" from foreach.
6525 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
6527 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
6529 * darwin-nat.c (thread_info_from_private_thread_info): Remove
6530 "struct" from foreach.
6531 * ada-lang.c (create_excep_cond_exprs)
6532 (ada_exception_catchpoint_cond_string): Remove "struct" from
6535 2019-05-03 Tom Tromey <tromey@adacore.com>
6537 * ada-exp.y (convert_char_literal): Check suffix of each
6540 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
6543 * ada-exp.y (yywrap): Don't define.
6544 * ada-lex.l (%option): Add noyywrap
6547 2019-05-03 Eli Zaretskii <eliz@gnu.org>
6549 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
6550 _WIN32_WINNT to the XP level, unless already defined to a higher
6553 * unittests/parse-connection-spec-selftests.c:
6555 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
6558 * symfile.c (find_separate_debug_file): Remove colon from the
6559 drive spec of DOS/Windows file names of the target, so that the
6560 file name produced from DEBUGDIR and the target's directory will
6561 be valid on DOS/Windows systems.
6563 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
6565 * rust-lang.c (val_print_struct): Handle printing structures
6568 2019-05-02 Tom Tromey <tromey@adacore.com>
6570 * valarith.c (_initialize_valarith): Remove.
6572 2019-05-01 Tom Tromey <tromey@adacore.com>
6574 * ada-lang.c (ada_value_primitive_field): Treat more fields as
6577 2019-05-01 Tom Tromey <tromey@adacore.com>
6579 * ada-lang.c (ada_value_assign): Correctly compute starting offset
6580 for big-endian copies.
6582 2019-04-30 Ali Tamur <tamur@google.com>
6583 * gdb/dwarf2read.c (read_3_bytes): New declaration.
6584 (read_attribute_value): Added DW_FORM_strx1-4 cases.
6585 (read_3_bytes): New function.
6587 2019-04-30 Joel Brobecker <brobecker@adacore.com>
6589 * windows-nat.c (main_thread_id): Delete.
6590 (handle_output_debug_string): Replace main_thread_id by
6591 current_event.dwThreadId.
6592 (fake_create_process): Likewise.
6593 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
6594 Do not set main_thread_id.
6595 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
6596 current_event.dwThreadId.
6597 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
6599 2019-04-30 Joel Brobecker <brobecker@adacore.com>
6601 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
6602 Use current_event.dwThreadId instead of main_thread_id.
6604 2019-04-30 Tom Tromey <tromey@adacore.com>
6606 * ada-lang.c (ada_lookup_simple_minsyms): New function.
6607 (create_excep_cond_exprs): Iterate over program spaces.
6608 (ada_exception_catchpoint_cond_string): Examine all minimal
6609 symbols for exception types.
6611 2019-04-30 Tom Tromey <tromey@adacore.com>
6614 * dwarf2read.c (process_structure_scope): Handle case where type
6615 has template parameters but no symbol was created.
6617 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6618 Chris January <chris.january@arm.com>
6620 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
6622 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
6624 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6626 * f-typeprint.c (f_print_type): Update rules for printing
6628 (f_type_print_varspec_suffix): Likewise.
6630 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6631 Chris January <chris.january@arm.com>
6633 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
6636 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6638 * f-lang.c (build_fortran_types): Change name of void type to
6640 * f-typeprint.c (f_type_print_base): Print the name of the void
6641 type, rather than a fixed string.
6642 * f-valprint.c (f_decorations): Use lower case void string.
6644 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6645 Chris January <chris.january@arm.com>
6647 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
6650 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6651 Chris January <chris.january@arm.com>
6652 David Lecomber <david.lecomber@arm.com>
6654 * f-exp.y (BINOP_INTRINSIC): New token.
6655 (exp): New parser rule handling BINOP_INTRINSIC.
6656 (f77_keywords): Add new builtin procedures.
6657 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
6658 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6659 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
6660 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6661 (print_unop_subexp_f): New function.
6662 (print_binop_subexp_f): New function.
6663 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6664 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6665 (dump_subexp_body_f): Likewise.
6666 (operator_check_f): Likewise.
6667 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6668 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
6670 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6672 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
6674 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
6675 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
6676 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
6677 (operator_length_f): New fuction.
6678 (print_subexp_f): New function.
6679 (op_name_f): New function.
6680 (dump_subexp_body_f): New function.
6681 (operator_check_f): New function.
6682 (exp_descriptor_f): Replace standard expression handling functions
6684 * gdb/fortran-operator.def: New file.
6685 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
6686 * gdb/std-operator.def: Remove UNOP_KIND.
6688 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6690 * std-operator.def: Remove unbalanced, stray double quote
6693 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6694 Chris January <chris.january@arm.com>
6695 Daniel Everett <daniel.everett@arm.com>
6696 Nick Forrington <nick.forrington@arm.com>
6697 Richard Bunt <richard.bunt@arm.com>
6699 * cp-valprint.c (cp_print_value_fields): Allow an additional level
6700 of depth when printing anonymous structs or unions.
6701 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
6702 Don't print either the top-level value, or the children if the
6703 max-depth is exceeded.
6704 (ppscm_print_children): When printing the key of a map, allow one
6705 extra level of depth.
6706 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
6707 print either the top-level value, or the children if the max-depth
6709 (print_children): When printing the key of a map, allow one extra
6711 * python/py-value.c (valpy_format_string): Add max_depth keyword.
6712 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
6713 (user_print_options): Initialise max_depth field.
6714 (val_print_scalar_or_string_type_p): New function.
6715 (val_print): Check to see if the max depth has been reached.
6716 (val_print_check_max_depth): Define new function.
6717 (show_print_max_depth): New function.
6718 (_initialize_valprint): Add 'print max-depth' option.
6719 * valprint.h (struct value_print_options) <max_depth>: New field.
6720 (val_print_check_max_depth): Declare new function.
6721 * NEWS: Document new feature.
6723 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6725 * ada-lang.c (ada_language_defn): Initialise new field.
6726 * c-lang.c (c_is_string_type_p): New function.
6727 (c_language_defn): Initialise new field.
6728 (cplus_language_defn): Initialise new field.
6729 (asm_language_defn): Initialise new field.
6730 (minimal_language_defn): Initialise new field.
6731 * c-lang.h (c_is_string_type_p): Declare new function.
6732 * d-lang.c (d_language_defn): Initialise new field.
6733 * f-lang.c (f_is_string_type_p): New function.
6734 (f_language_defn): Initialise new field.
6735 * go-lang.c (go_is_string_type_p): New function.
6736 (go_language_defn): Initialise new field.
6737 * language.c (default_is_string_type_p): New function.
6738 (unknown_language_defn): Initialise new field.
6739 (auto_language_defn): Initialise new field.
6740 * language.h (struct language_defn) <la_is_string_type_p>: New
6742 (default_is_string_type_p): Declare new function.
6743 * m2-lang.c (m2_language_defn): Initialise new field.
6744 * objc-lang.c (objc_language_defn): Initialise new field.
6745 * opencl-lang.c (opencl_language_defn): Initialise new field.
6746 * p-lang.c (pascal_is_string_type_p): New function.
6747 (pascal_language_defn): Initialise new field.
6748 * rust-lang.c (rust_is_string_type_p): New function.
6749 (rust_language_defn): Initialise new field.
6751 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6753 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
6755 * ada-lang.c (ada_language_defn): Initialise new field.
6756 * c-lang.c (c_language_defn): Likewise.
6757 (cplus_language_defn): Likewise.
6758 (asm_language_defn): Likewise.
6759 (minimal_language_defn): Likewise.
6760 * d-lang.c (d_language_defn): Likewise.
6761 * f-lang.c (f_language_defn): Likewise.
6762 * go-lang.c (go_language_defn): Likewise.
6763 * language.c (unknown_language_defn): Likewise.
6764 (auto_language_defn): Likewise.
6765 * m2-lang.c (m2_language_defn): Likewise.
6766 * objc-lang.c (objc_language_defn): Likewise.
6767 * opencl-lang.c (opencl_language_defn): Likewise.
6768 * p-lang.c (pascal_language_defn): Likewise.
6769 * rust-lang.c (rust_language_defn): Likewise.
6771 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6773 * ada-lang.c (ada_is_character_type): Change return type to bool.
6774 (ada_is_string_type): Likewise.
6775 * ada-lang.h (ada_is_character_type): Update declaration
6776 (ada_is_string_type): Likewise.
6778 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6780 Support style in 'frame|thread apply'
6782 * gdbcmd.h (execute_command_to_string): New term_out parameter.
6783 * record.c (record_start, record_stop): Update callers of
6784 execute_command_to_string with false.
6785 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
6786 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
6788 (class string_file): New constructor with term_out parameter.
6789 Override methods term_out and can_emit_style_escape. New member
6791 (class stdio_file): Override can_emit_style_escape.
6792 (class tee_file): Override term_out and can_emit_style_escape.
6793 * utils.h (can_emit_style_escape): Remove.
6794 * utils.c (can_emit_style_escape): Likewise.
6795 Update all callers of can_emit_style_escape (SOMESTREAM) to
6796 SOMESTREAM->can_emit_style_escape.
6797 * source-cache.c (source_cache::get_source_lines): Likewise.
6798 * stack.c (frame_apply_command_count): Call execute_command_to_string
6799 passing the term_out characteristic of the current gdb_stdout.
6800 * thread.c (thr_try_catch_cmd): Likewise.
6801 * top.c (execute_command_to_string): pass term_out parameter
6802 to construct the string_file for the command output.
6803 * ui-file.c (term_cli_styling): New function (most code moved
6804 from utils.c can_emit_style_escape).
6805 (string_file::string_file, string_file::can_emit_style_escape,
6806 stdio_file::can_emit_style_escape, tee_file::term_out,
6807 tee_file::can_emit_style_escape): New functions.
6809 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6811 * NEWS: Mention the new set|show may-call-functions.
6812 * infcall.c (may_call_functions_p): New variable.
6813 (show_may_call_functions_p): New function.
6814 (call_function_by_hand_dummy): Throws an error if not
6816 (_initialize_infcall): Call add_setshow_boolean_cmd for
6819 2019-04-25 Keith Seitz <keiths@redhat.com>
6822 * cp-support.c (inspect_type): Don't attempt substitutions
6823 of symbol with the same name.
6825 2019-04-25 Tom Tromey <tromey@adacore.com>
6828 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
6831 2019-04-25 Tom Tromey <tromey@adacore.com>
6833 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
6835 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
6836 (gdb_xml_parser::parse): Use std::move.
6837 * python/python-internal.h (gdbpy_convert_exception): Take a const
6839 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
6841 * python/py-utils.c (gdbpy_convert_exception): Take a const
6843 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
6845 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
6847 * mi/mi-main.c (mi_print_exception): Take a const reference.
6848 * main.c (handle_command_errors): Take a const reference.
6849 * linespec.c (parse_linespec): Use std::move.
6850 * infcall.c (run_inferior_call): Use std::move.
6851 (call_function_by_hand_dummy): Use std::move.
6852 * exec.c (try_open_exec_file): Use std::move.
6853 * exceptions.h (exception_print, exception_fprintf)
6854 (exception_print_same): Update.
6855 * exceptions.c (print_exception, exception_print)
6856 (exception_fprintf, exception_print_same): Change parameters to
6858 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
6859 * common/new-op.c: Use std::move.
6860 * common/common-exceptions.h (struct gdb_exception): Add move
6862 (struct gdb_exception_error, struct gdb_exception_quit, struct
6863 gdb_quit_bad_alloc): Change constructor to move constructor.
6864 (throw_exception): Change parameter to rvalue reference.
6865 * common/common-exceptions.c (throw_exception): Take rvalue
6867 * cli/cli-interp.c (safe_execute_command): Use std::move.
6868 * breakpoint.c (insert_bp_location, location_to_sals): Use
6871 2019-04-25 Tom Tromey <tromey@adacore.com>
6873 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
6874 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
6875 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
6876 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
6877 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
6878 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
6879 guile/scm-value.c: Use unpack.
6880 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
6881 gdbscm_gdb_exception.
6882 (gdbscm_throw_gdb_exception): Likewise.
6883 (struct gdbscm_gdb_exception): New.
6884 (unpack): New function.
6885 (gdbscm_wrap): Use unpack.
6887 2019-04-25 Tom Tromey <tromey@adacore.com>
6889 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
6890 (gdb_rl_callback_handler): Use std::move.
6891 * common/common-exceptions.h (struct gdb_exception): Add move
6892 assignment operator.
6893 (throw_exception_sjlj): Change "exception" to const reference.
6894 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
6895 (throw_exception_sjlj): Change "exception" to const reference.
6897 2019-04-25 Tom Tromey <tromey@adacore.com>
6899 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
6900 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
6901 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
6903 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
6905 * mi/mi-interp.c (mi_interp::exec): Update.
6906 * linespec.c (parse_linespec): Update.
6907 * infcall.c (run_inferior_call): Update.
6908 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
6909 * guile/scm-symbol.c (gdbscm_lookup_symbol)
6910 (gdbscm_lookup_global_symbol): Update.
6911 * guile/scm-param.c (gdbscm_parameter_value): Update.
6912 * guile/scm-frame.c (gdbscm_frame_read_register)
6913 (gdbscm_frame_read_var): Update.
6914 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
6915 * exec.c (try_open_exec_file): Update.
6916 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
6917 (gdb_rl_callback_handler): Update.
6918 * common/common-exceptions.h (exception_none): Don't declare.
6919 * common/common-exceptions.c (exception_none): Don't define.
6920 (struct catcher) <exception>: Update.
6921 * cli/cli-interp.c (safe_execute_command): Update.
6922 * breakpoint.c (insert_bp_location, location_to_sals): Update.
6924 2019-04-25 Ali Tamur <tamur@google.com>
6926 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
6927 (read_attribute_value): Likewise.
6928 (dwarf2_read_addr_index): Update comment.
6929 (read_str_index): Add DW_FORM_strx.
6930 (dwarf2_string_attr): Likewise.
6931 (dwarf2_const_value_attr): Likewise.
6932 (dump_die_shallow): Likewise.
6933 (dwarf2_fetch_constant_bytes): Likewise.
6934 (skip_form_bytes): Likewise.
6935 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
6937 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6941 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
6942 OFFSET. Verify if current mapping contains an ELF header.
6943 (linux_find_memory_regions_full): Adjust call to
6946 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
6947 Kang Li <kanglictf@gmail.com>
6951 * dwarf2-frame.c (read_initial_length): Be consistent about using
6952 unsigned representation of length.
6953 (decode_frame_entry_1): Likewise. Check for wraparound of
6954 end pointer as well as buffer overflow.
6956 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6958 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
6961 2019-04-24 Tom Tromey <tromey@adacore.com>
6963 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
6965 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6967 * s12z-tdep.c (s12z_unwind_pc): Delete.
6968 (s12z_unwind_sp): Delete.
6969 (s12z_gdbarch_init): Don't register deleted functions with
6972 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6974 * rl78-tdep.c (rl78_unwind_sp): Delete.
6975 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
6977 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6979 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
6980 (xstormy16_unwind_pc): Delete.
6981 (xstormy16_dummy_id): Delete.
6982 (xstormy16_gdbarch_init): Don't register deleted functions with
6985 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6987 * vax-tdep.c (vax_unwind_pc): Delete.
6988 (vax_gdbarch_init): Don't register deleted function with gdbarch.
6990 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6992 * v850-tdep.c (v850_unwind_sp): Delete.
6993 (v850_unwind_pc): Delete.
6994 (v850_dummy_id): Delete.
6995 (v850_gdbarch_init): Don't register deleted functions with
6998 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7000 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
7001 (tilegx_unwind_pc): Delete.
7002 (tilegx_unwind_dummy_id): Delete.
7003 (tilegx_gdbarch_init): Don't register deleted functions with
7006 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7008 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
7009 (tic6x_dummy_id): Delete.
7010 (tic6x_gdbarch_init): Don't register deleted functions with
7013 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7015 * sparc-tdep.c (sparc_unwind_pc): Delete.
7016 (sparc32_gdbarch_init): Don't register deleted function with
7019 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7021 * sh-tdep.c (sh_unwind_sp): Delete.
7022 (sh_unwind_pc): Delete.
7023 (sh_dummy_id): Delete.
7024 (sh_gdbarch_init): Don't register deleted functions with
7027 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7029 * score-tdep.c (score_unwind_sp): Delete.
7030 (score_unwind_pc): Delete.
7031 (score_dummy_id): Delete.
7032 (score_gdbarch_init): Don't register deleted functions with
7035 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7037 * rx-tdep.c (rx_unwind_pc): Delete.
7038 (rx_unwind_sp): Delete.
7039 (rx_dummy_id): Delete.
7040 (rx_gdbarch_init): Don't register deleted functions with
7041 gdbarch. Update comment.
7043 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7045 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
7046 (rs6000_dummy_id): Delete.
7047 (rs6000_gdbarch_init): Don't register deleted functions with
7050 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7052 * or1k-tdep.c (or1k_dummy_id): Delete.
7053 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
7055 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7057 * nios2-tdep.c (nios2_dummy_id): Delete.
7058 (nios2_unwind_sp): Delete.
7059 (nios2_gdbarch_init): Don't register deleted functions with
7062 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7064 * nds32-tdep.c (nds32_dummy_id): Delete.
7065 (nds32_unwind_pc): Delete.
7066 (nds32_unwind_sp): Delete.
7067 (nds32_gdbarch_init): Don't register deleted functions with
7070 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7072 * msp430-tdep.c (msp430_unwind_pc): Delete.
7073 (msp430_unwind_sp): Delete.
7074 (msp430_dummy_id): Delete.
7075 (msp430_gdbarch_init): Don't register deleted functions with
7078 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7080 * moxie-tdep.c (moxie_unwind_sp): Delete.
7081 (moxie_unwind_pc): Delete.
7082 (moxie_dummy_id): Delete.
7083 (moxie_gdbarch_init): Don't register deleted functions with
7086 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7088 * mn10300-tdep.c (mn10300_dummy_id): Delete.
7089 (mn10300_unwind_pc): Delete.
7090 (mn10300_unwind_sp): Delete.
7091 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
7093 (mn10300_frame_unwind_init): Don't register deleted functions with
7096 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7098 * mep-tdep.c (mep_unwind_pc): Delete.
7099 (mep_unwind_sp): Delete.
7100 (mep_dummy_id): Delete.
7101 (mep_gdbarch_init): Don't register deleted functions with
7104 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7106 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
7107 (m68hc11_unwind_sp): Delete.
7108 (m68hc11_gdbarch_init): Don't register deleted functions with
7111 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7113 * m32r-tdep.c (m32r_unwind_sp): Delete.
7114 (m32r_unwind_pc): Delete.
7115 (m32r_dummy_id): Delete.
7116 (m32r_gdbarch_init): Don't register deleted functions with
7119 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7121 * m32c-tdep.c (m32c_unwind_pc): Delete.
7122 (m32c_unwind_sp): Delete.
7123 (m32c_dummy_id): Delete.
7124 (m32c_gdbarch_init): Don't register deleted functions with
7127 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7129 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
7130 (lm32_unwind_pc): Delete.
7131 (lm32_dummy_id): Delete.
7132 (lm32_gdbarch_init): Don't register deleted functions with
7135 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7137 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
7138 (iq2000_unwind_pc): Delete.
7139 (iq2000_dummy_id): Delete.
7140 (iq2000_gdbarch_init): Don't register deleted functions with
7143 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7145 * nds32-tdep.c (nds32_type_align): Delete.
7146 (nds32_push_dummy_call): Use type_align instead.
7148 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7150 * arm-tdep.c (arm_type_align): Only handle vector override case.
7151 (arm_push_dummy_call): Use type_align.
7152 (arm_gdbarch_init): Register arm_type_align gdbarch function.
7154 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7156 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
7158 (pass_on_stack): Use type_align.
7159 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
7162 2019-04-23 Tom Tromey <tromey@adacore.com>
7164 * dwarf2read.c (line_header::file_name_at): Remove unused
7167 2019-04-23 Tom de Vries <tdevries@suse.de>
7170 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
7174 2019-03-27 Ali Tamur <tamur@google.com>
7176 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
7177 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
7178 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
7179 (dwarf_expr_context::get_addr_index): Likewise
7180 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
7181 (symbol_needs_eval_context::get_addr_index): Likewise
7182 (disassemble_dwarf_expression): Add DW_OP_addrx
7183 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
7184 (read_cutu_die_from_dwo): Update comment
7185 (skip_one_die): Add DW_FORM_addrx
7186 (read_attribute_value): Likewise
7187 (var_decode_location): Add DW_OP_addrx
7188 (dwarf2_const_value_attr): Add DW_FORM_addrx
7189 (dump_die_shallow): Likewise
7190 (dwarf2_fetch_constant_bytes): Likewise
7191 (decode_locdesc): Add DW_OP_addrx
7192 (skip_form_bytes): Add DW_FORM_addrx
7194 2019-04-22 Ali Tamur <tamur@google.com>
7196 * MAINTAINERS (Write After Approval): Add self.
7198 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
7200 * solib-svr4.c (get_svr4_info): Add pspace parameter.
7201 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
7202 (open_symbol_file_object): Likewise.
7203 (svr4_default_sos): Add info parameter.
7204 (svr4_read_so_list): Likewise.
7205 (svr4_current_sos_direct): Adjust functions calls to pass down
7207 (svr4_current_sos_1): Add info parameter.
7208 (svr4_current_sos): Call get_svr4_info, pass info down to
7210 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
7212 (svr4_in_dynsym_resolve_code): Pass current_program_space to
7214 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
7216 (probes_table_remove_objfile_probes): Likewise.
7217 (register_solib_event_probe): Add info parameter.
7218 (solist_update_incremental): Pass info parameter down to
7220 (disable_probes_interface): Add info parameter.
7221 (svr4_handle_solib_event): Pass current_program_space to
7222 get_svr4_info. Adjust disable_probes_interface cleanup.
7223 (svr4_create_probe_breakpoints): Add info parameter, pass it
7224 down to register_solib_event_probe.
7225 (svr4_create_solib_event_breakpoints): Add info parameter,
7226 pass it down to svr4_create_probe_breakpoints.
7227 (enable_break): Pass info down to
7228 svr4_create_solib_event_breakpoints.
7229 (svr4_solib_create_inferior_hook): Pass current_program_space to
7231 (svr4_clear_solib): Likewise.
7233 2019-04-22 Pedro Alves <palves@redhat.com>
7235 * solib-svr4.c (svr4_free_objfile_observer): New.
7236 (probe_and_action::objfile): New field.
7237 (probes_table_htab_remove_objfile_probes)
7238 (probes_table_remove_objfile_probes): New functions.
7239 (register_solib_event_probe): Add 'objfile' parameter. Store it
7240 in the new probe_and_action. Don't store the probe in 'lookup'.
7241 (svr4_create_probe_breakpoints): Pass objfile to
7242 register_solib_event_probe.
7243 (_initialize_svr4_solib): Register a free_objfile observer.
7245 2019-04-19 Tom Tromey <tom@tromey.com>
7247 * common/queue.h: Remove.
7249 2019-04-19 Tom Tromey <tom@tromey.com>
7251 * event-loop.c: Don't include "common/queue.h".
7253 2019-04-19 Tom Tromey <tom@tromey.com>
7255 * remote.c (remote_target): Use delete.
7256 * remote-notif.h: Include <list>, not "common/queue.h".
7257 (notif_client_p): Remove typedef.
7258 (remote_notif_state): Add constructor, destructor, initializer.
7259 <notif_queue>: Now a std::list.
7260 (remote_notif_state_xfree): Don't declare.
7261 * remote-notif.c (remote_notif_process, handle_notification)
7262 (remote_notif_state_allocate): Update.
7263 (~remote_notif_state): Rename from remote_notif_state_xfree.
7265 2019-04-19 Tom Tromey <tom@tromey.com>
7267 * symfile.c (reread_symbols): Update.
7268 * objfiles.c (objfile_register_static_link)
7269 (objfile_lookup_static_link): Update
7270 (~objfile) Don't delete static_links.
7271 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
7273 2019-04-19 Tom Tromey <tom@tromey.com>
7275 * type-stack.h (struct type_stack) <insert>: Constify string.
7276 * type-stack.c (type_stack::insert): Constify string.
7277 * gdbtypes.h (lookup_template_type): Update.
7278 (address_space_name_to_int): Update.
7279 * gdbtypes.c (address_space_name_to_int): Make space_identifier
7281 (lookup_template_type): Make name const.
7282 * c-exp.y: Update rules.
7283 (lex_one_token, classify_name, classify_inner_name)
7284 (c_print_token): Update.
7285 * p-exp.y: Update rules.
7287 * f-exp.y: Update rules.
7289 * d-exp.y: Update rules.
7290 (lex_one_token, classify_name, classify_inner_name): Update.
7291 * parse.c (write_dollar_variable, copy_name): Return std::string.
7292 * parser-defs.h (copy_name): Change return type.
7293 * m2-exp.y: Update rules.
7295 * go-exp.y (lex_one_token): Update.
7297 (classify_unsafe_function, classify_packaged_name)
7298 (classify_name, yylex): Update.
7300 2019-04-19 Sergei Trofimovich <siarheit@google.com>
7302 * configure.ac: add --enable-source-highlight switch.
7303 * configure: Regenerate.
7304 * top.c (print_gdb_version): plumb --enable-source-highlight
7305 status to "show configuration".
7307 2019-04-19 Tom Tromey <tromey@adacore.com>
7309 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
7311 (empty_record, ada_template_to_fixed_record_type_1)
7312 (template_to_static_fixed_type)
7313 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
7314 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
7315 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
7318 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
7321 * source.c (print_source_lines_base): Advance "iter" when a
7322 control character is seen.
7324 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7326 * inferior.h (struct infcall_suspend_state_deleter):
7327 Catch exception in destructor to avoid crash.
7329 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7331 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
7332 close to the add_com "shell".
7334 2019-04-18 Tom Tromey <tromey@adacore.com>
7336 * process-stratum-target.h (class process_stratum_target)
7337 <stratum>: Add "final".
7339 2019-04-17 Tom Tromey <tromey@adacore.com>
7341 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
7342 against nullptr before use.
7344 2019-04-17 Alan Hayward <alan.hayward@arm.com>
7346 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
7348 2019-04-17 Jim Wilson <jimw@sifive.com>
7349 Andrew Burgess <andrew.burgess@embecosm.com>
7351 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
7352 code read might fail, assume 4-byte breakpoint in that case.
7354 2019-04-15 Leszek Swirski <leszeks@google.com>
7356 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
7357 rather than a hand-rolled POD check when checking for forced MEMORY
7360 2019-04-15 Alan Hayward <alan.hayward@arm.com>
7362 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
7363 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
7365 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
7366 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
7367 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
7370 2019-04-15 Alan Hayward <alan.hayward@arm.com>
7372 * aarch64-linux-nat.c
7373 (aarch64_linux_nat_target::thread_architecture): Add override.
7374 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
7377 2019-04-15 Alan Hayward <alan.hayward@arm.com>
7379 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
7381 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
7383 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
7384 target types of size 96-bits, add some additional comments, and
7385 check that the builtin type we found was the correct size.
7387 2019-04-12 Eli Zaretskii <eliz@gnu.org>
7389 * utils.c (prompt_for_continue): Don't restore the styling at the
7390 end, as applied_style has the wrong value. This fixes styling in
7391 long lists of file names that are interrupted by the "Continue?"
7394 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
7396 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
7397 * c-lang.c (c_language_defn): Likewise.
7398 (cplus_language_defn): Likewise.
7399 (asm_language_defn): Likewise.
7400 (minimal_language_defn): Likewise.
7401 * d-lang.c (d_language_defn): Likewise.
7402 * f-lang.c (f_language_defn): Likewise.
7403 * go-lang.c (go_language_defn): Likewise.
7404 * language.c (unknown_language_defn): Likewise.
7405 (auto_language_defn): Likewise.
7406 * language.h (struct language_defn): Remove la_magic field.
7407 (LANG_MAGIC): Delete.
7408 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
7409 * objc-lang.c (objc_language_defn): Likewise.
7410 * opencl-lang.c (opencl_language_defn): Likewise.
7411 * p-lang.c (pascal_language_defn): Likewise.
7412 * rust-lang.c (rust_language_defn): Likewise.
7414 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7416 * riscv-tdep.c (riscv_type_align): New function.
7417 (riscv_type_alignment): Delete.
7418 (riscv_arg_location): Use 'type_align'.
7419 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
7421 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7423 * gdbtypes.c (type_align): A struct with no non-static fields also
7426 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7428 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
7430 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
7432 (riscv_struct_info::analyse): New implementation using new
7433 analyse_inner member function.
7434 (riscv_struct_info::field_offset): New member function.
7435 (riscv_struct_info::m_offsets): New member variable.
7436 (riscv_struct_info::analyse_inner): New private member function,
7437 takes the old implementation of riscv_struct_info::analyse but
7438 extended to track field offsets.
7439 (riscv_call_arg_struct): Update the struct folding special cases
7440 to handle cases where empty C++ structs, which are non-zero
7442 (riscv_arg_location): Initialise the length of each location, a
7443 non-zero length now indicates the location is in use.
7444 (riscv_push_dummy_call): Allow for the first location having a
7445 non-zero offset when setting up arguments.
7446 (riscv_return_value): Likewise, but for return values.
7448 2019-04-11 Tom Tromey <tromey@adacore.com>
7450 * utils.c (internal_vproblem): Make "msg" const.
7452 2019-04-11 Alan Hayward <alan.hayward@arm.com>
7454 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
7455 * trad-frame.c (trad_frame_reset_saved_regs): New function.
7456 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
7457 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
7459 2019-04-10 Kevin Buettner <kevinb@redhat.com>
7461 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
7463 (fill_gregset): Call amd64_linux_collect_native_gregset instead
7464 of amd64_collect_native_gregset.
7465 (amd64_linux_nat_target::store_registers): Likewise.
7467 2019-04-10 Tom Tromey <tom@tromey.com>
7469 * symtab.c (lookup_global_symbol_from_objfile)
7470 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
7471 * objfiles.h (class separate_debug_iterator): New.
7472 (class separate_debug_range): New.
7473 (struct objfile) <separate_debug_objfiles>: New method.
7474 (objfile_separate_debug_iterate): Don't declare.
7475 * objfiles.c (separate_debug_iterator::operator++): Rename from
7476 objfile_separate_debug_iterate.
7477 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
7479 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
7482 2019-04-10 Tom Tromey <tom@tromey.com>
7484 * symfile.c (reread_symbols): Remove old comment.
7485 * objfiles.c (free_all_objfiles): Fix a typo.
7487 2019-04-10 Tom Tromey <tom@tromey.com>
7489 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
7490 * minsyms.c (lookup_minimal_symbol): Use foreach.
7491 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7492 (lookup_minimal_symbol_solib_trampoline): Likewise.
7493 * symfile.c (reread_symbols): Use foreach.
7495 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
7496 Tom Tromey <tromey@adacore.com>
7499 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
7500 (rust_lex_int_test): Change "value" to be LONGEST.
7501 (rust_lex_tests): Add test for long integer literal.
7503 2019-04-09 Tom Tromey <tromey@adacore.com>
7505 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
7507 (extended_remote_target::attach): Update.
7508 (remote_target::remote_notice_new_inferior): Update.
7509 (remote_target::add_current_inferior_and_thread): Update.
7510 * inferior.c (exit_inferior_1): Use "false".
7511 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
7513 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
7515 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
7516 the "start" command.
7518 2019-04-08 Kevin Buettner <kevinb@redhat.com>
7520 * python/py-inferior.c (infpy_thread_from_thread_handle):
7521 Adjust comments to reflect renaming of thread_from_thread_handle
7522 to thread_from_handle. Adjust keywords. Fix type error message.
7523 (inferior_object_methods): Add thread_from_handle. Retain
7524 thread_from_thread_handle, but mark it as deprecated.
7526 2019-04-08 Kevin Buettner <kevinb@redhat.com>
7528 * gdbthread.h (find_thread_by_handle): Revise declaration.
7529 * thread.c (find_thread_by_handle): Likewise. Adjust
7531 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
7532 support for buffer objects as handles.
7534 2019-04-08 Kevin Buettner <kevinb@redhat.com>
7536 * python/py-infthread.c (thpy_thread_handle): New function.
7537 (thread_object_methods): Register thpy_thread_handle.
7539 2019-04-08 Kevin Buettner <kevinb@redhat.com>
7541 * gdbthread.h (thread_to_thread_handle): Declare.
7542 * thread.c (gdbtypes.h): Include.
7543 (thread_to_thread_handle): New function.
7545 * target.h (struct target_ops): Add thread_info_to_thread_handle.
7546 (target_thread_info_to_thread_handle): Declare.
7547 * target.c (target_thread_info_to_thread_handle): New function.
7548 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
7549 * target-delegates.c: Regenerate.
7551 * linux-thread-db.c (class thread_db_target): Add method
7552 thread_info_to_thread_handle.
7553 (thread_db_target::thread_info_to_thread_handle): Define.
7554 * remote.c (class remote_target): Add new method
7555 thread_info_to_thread_handle.
7556 (remote_target::thread_info_to_thread_handle): Define.
7558 2019-04-08 Pedro Alves <palves@redhat.com>
7560 * common/common-exceptions.c (throw_exception): Don't create
7561 named object to throw; throw directly.
7562 (throw_it): Likewise. Don't initialize gdb_exception::message
7563 here, with new; pass FMT and AP to the ctor instead.
7564 * common/common-exceptions.h: Include <string>.
7565 (gdb_exception::gdb_exception(enum return_reason, enum errors,
7566 const char *, va_list)): New ctor. Use std::make_shared.
7567 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
7569 (gdb_exception_error::gdb_exception_error(enum errors, const char
7571 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
7573 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
7575 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
7576 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
7579 2019-04-08 Tom Tromey <tom@tromey.com>
7581 * valops.c (value_rtti_indirect_type): Replace throw_exception
7583 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
7585 * thread.c (thr_try_catch_cmd): Replace throw_exception with
7587 * target.c (target_translate_tls_address): Replace throw_exception
7589 * stack.c (frame_apply_command_count): Replace throw_exception
7591 * solib-spu.c (append_ocl_sos): Replace throw_exception with
7593 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
7595 * rs6000-tdep.c (rs6000_frame_cache)
7596 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
7597 * remote.c: Replace throw_exception with throw.
7598 * record-full.c (record_full_message, record_full_wait_1)
7599 (record_full_restore): Replace throw_exception with throw.
7601 (get_thread_current_frame_id, record_btrace_start_replaying)
7602 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
7603 (cmd_record_btrace_start): Replace throw_exception with throw.
7604 * parse.c (parse_exp_in_context_1): Replace throw_exception with
7606 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
7607 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
7609 (find_linespec_symbols): Replace throw_exception with throw.
7610 * infrun.c (displaced_step_prepare, resume): Replace
7611 throw_exception with throw.
7612 * infcmd.c (post_create_inferior): Replace throw_exception with
7614 * inf-loop.c (inferior_event_handler): Replace throw_exception
7616 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
7617 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
7618 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
7619 (get_prev_frame_always, get_frame_pc_if_available)
7620 (get_frame_address_in_block_if_available, get_frame_language):
7621 Replace throw_exception with throw.
7622 * frame-unwind.c (frame_unwind_try_unwinder): Replace
7623 throw_exception with throw.
7624 * eval.c (fetch_subexp_value, evaluate_var_value)
7625 (evaluate_funcall, evaluate_subexp_standard): Replace
7626 throw_exception with throw.
7627 * dwarf2loc.c (call_site_find_chain)
7628 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
7629 Replace throw_exception with throw.
7630 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
7632 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
7634 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
7635 * completer.c (complete_line_internal): Replace throw_exception
7637 * compile/compile-object-run.c (compile_object_run): Replace
7638 throw_exception with throw.
7639 * cli/cli-script.c (process_next_line): Replace throw_exception
7641 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
7642 (btrace_enable, btrace_maint_update_pt_packets): Replace
7643 throw_exception with throw.
7644 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
7645 throw_exception with throw.
7646 * break-catch-throw.c (re_set_exception_catchpoint): Replace
7647 throw_exception with throw.
7648 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
7649 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
7650 * aarch64-tdep.c (aarch64_make_prologue_cache)
7651 (aarch64_make_stub_cache): Replace throw_exception with throw.
7653 2019-04-08 Tom Tromey <tom@tromey.com>
7655 * common/common-exceptions.c (throw_exception): Rename from
7656 throw_exception_cxx. Remove old copy. Make argument const.
7657 (throw_it): Create and throw exception objects directly.
7658 * common/common-exceptions.h (throw_exception): Make argument
7660 (struct gdb_exception_error): Add constructor.
7661 (struct gdb_exception_quit): Add constructor.
7663 2019-04-08 Tom Tromey <tom@tromey.com>
7665 * common/common-exceptions.h (exception_rethrow): Don't declare.
7666 (TRY_SJLJ): Update comment.
7667 (TRY, CATCH, END_CATCH): Remove.
7668 * common/common-exceptions.c (exception_rethrow): Remove.
7670 2019-04-08 Tom Tromey <tom@tromey.com>
7672 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
7674 (gdb_exception_error): Rename from
7675 gdb_exception_RETURN_MASK_ERROR.
7676 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
7677 (gdb_quit_bad_alloc): Update.
7678 * aarch64-tdep.c: Update.
7679 * ada-lang.c: Update.
7680 * ada-typeprint.c: Update.
7681 * ada-valprint.c: Update.
7682 * amd64-tdep.c: Update.
7683 * arch-utils.c: Update.
7684 * break-catch-throw.c: Update.
7685 * breakpoint.c: Update.
7687 * c-varobj.c: Update.
7688 * cli/cli-cmds.c: Update.
7689 * cli/cli-interp.c: Update.
7690 * cli/cli-script.c: Update.
7691 * common/common-exceptions.c: Update.
7692 * common/new-op.c: Update.
7693 * common/selftest.c: Update.
7694 * compile/compile-c-symbols.c: Update.
7695 * compile/compile-cplus-symbols.c: Update.
7696 * compile/compile-object-load.c: Update.
7697 * compile/compile-object-run.c: Update.
7698 * completer.c: Update.
7699 * corelow.c: Update.
7701 * cp-support.c: Update.
7702 * cp-valprint.c: Update.
7703 * darwin-nat.c: Update.
7704 * disasm-selftests.c: Update.
7705 * dtrace-probe.c: Update.
7706 * dwarf-index-cache.c: Update.
7707 * dwarf-index-write.c: Update.
7708 * dwarf2-frame-tailcall.c: Update.
7709 * dwarf2-frame.c: Update.
7710 * dwarf2loc.c: Update.
7711 * dwarf2read.c: Update.
7713 * event-loop.c: Update.
7714 * event-top.c: Update.
7716 * f-valprint.c: Update.
7717 * fbsd-tdep.c: Update.
7718 * frame-unwind.c: Update.
7720 * gdbtypes.c: Update.
7721 * gnu-v3-abi.c: Update.
7722 * guile/guile-internal.h: Update.
7723 * guile/scm-block.c: Update.
7724 * guile/scm-breakpoint.c: Update.
7725 * guile/scm-cmd.c: Update.
7726 * guile/scm-disasm.c: Update.
7727 * guile/scm-frame.c: Update.
7728 * guile/scm-lazy-string.c: Update.
7729 * guile/scm-math.c: Update.
7730 * guile/scm-param.c: Update.
7731 * guile/scm-ports.c: Update.
7732 * guile/scm-pretty-print.c: Update.
7733 * guile/scm-symbol.c: Update.
7734 * guile/scm-symtab.c: Update.
7735 * guile/scm-type.c: Update.
7736 * guile/scm-value.c: Update.
7737 * i386-linux-tdep.c: Update.
7738 * i386-tdep.c: Update.
7739 * inf-loop.c: Update.
7740 * infcall.c: Update.
7744 * language.c: Update.
7745 * linespec.c: Update.
7746 * linux-fork.c: Update.
7747 * linux-nat.c: Update.
7748 * linux-tdep.c: Update.
7749 * linux-thread-db.c: Update.
7751 * mi/mi-cmd-break.c: Update.
7752 * mi/mi-cmd-stack.c: Update.
7753 * mi/mi-interp.c: Update.
7754 * mi/mi-main.c: Update.
7755 * objc-lang.c: Update.
7756 * p-valprint.c: Update.
7758 * ppc-linux-tdep.c: Update.
7759 * printcmd.c: Update.
7760 * python/py-arch.c: Update.
7761 * python/py-breakpoint.c: Update.
7762 * python/py-cmd.c: Update.
7763 * python/py-finishbreakpoint.c: Update.
7764 * python/py-frame.c: Update.
7765 * python/py-framefilter.c: Update.
7766 * python/py-gdb-readline.c: Update.
7767 * python/py-inferior.c: Update.
7768 * python/py-infthread.c: Update.
7769 * python/py-lazy-string.c: Update.
7770 * python/py-linetable.c: Update.
7771 * python/py-objfile.c: Update.
7772 * python/py-param.c: Update.
7773 * python/py-prettyprint.c: Update.
7774 * python/py-progspace.c: Update.
7775 * python/py-record-btrace.c: Update.
7776 * python/py-record.c: Update.
7777 * python/py-symbol.c: Update.
7778 * python/py-type.c: Update.
7779 * python/py-unwind.c: Update.
7780 * python/py-utils.c: Update.
7781 * python/py-value.c: Update.
7782 * python/python.c: Update.
7783 * record-btrace.c: Update.
7784 * record-full.c: Update.
7785 * remote-fileio.c: Update.
7787 * riscv-tdep.c: Update.
7788 * rs6000-aix-tdep.c: Update.
7789 * rs6000-tdep.c: Update.
7790 * rust-exp.y: Update.
7791 * rust-lang.c: Update.
7792 * s390-tdep.c: Update.
7793 * selftest-arch.c: Update.
7794 * solib-dsbt.c: Update.
7795 * solib-frv.c: Update.
7796 * solib-spu.c: Update.
7797 * solib-svr4.c: Update.
7799 * sparc64-linux-tdep.c: Update.
7801 * symfile-mem.c: Update.
7802 * symmisc.c: Update.
7806 * tracefile-tfile.c: Update.
7807 * tui/tui.c: Update.
7808 * typeprint.c: Update.
7809 * unittests/cli-utils-selftests.c: Update.
7810 * unittests/parse-connection-spec-selftests.c: Update.
7812 * valprint.c: Update.
7815 * windows-nat.c: Update.
7816 * x86-linux-nat.c: Update.
7817 * xml-support.c: Update.
7819 2019-04-08 Tom Tromey <tom@tromey.com>
7821 * xml-support.c: Use C++ exception handling.
7822 * x86-linux-nat.c: Use C++ exception handling.
7823 * windows-nat.c: Use C++ exception handling.
7824 * varobj.c: Use C++ exception handling.
7825 * value.c: Use C++ exception handling.
7826 * valprint.c: Use C++ exception handling.
7827 * valops.c: Use C++ exception handling.
7828 * unittests/parse-connection-spec-selftests.c: Use C++ exception
7830 * unittests/cli-utils-selftests.c: Use C++ exception handling.
7831 * typeprint.c: Use C++ exception handling.
7832 * tui/tui.c: Use C++ exception handling.
7833 * tracefile-tfile.c: Use C++ exception handling.
7834 * top.c: Use C++ exception handling.
7835 * thread.c: Use C++ exception handling.
7836 * target.c: Use C++ exception handling.
7837 * symmisc.c: Use C++ exception handling.
7838 * symfile-mem.c: Use C++ exception handling.
7839 * stack.c: Use C++ exception handling.
7840 * sparc64-linux-tdep.c: Use C++ exception handling.
7841 * solib.c: Use C++ exception handling.
7842 * solib-svr4.c: Use C++ exception handling.
7843 * solib-spu.c: Use C++ exception handling.
7844 * solib-frv.c: Use C++ exception handling.
7845 * solib-dsbt.c: Use C++ exception handling.
7846 * selftest-arch.c: Use C++ exception handling.
7847 * s390-tdep.c: Use C++ exception handling.
7848 * rust-lang.c: Use C++ exception handling.
7849 * rust-exp.y: Use C++ exception handling.
7850 * rs6000-tdep.c: Use C++ exception handling.
7851 * rs6000-aix-tdep.c: Use C++ exception handling.
7852 * riscv-tdep.c: Use C++ exception handling.
7853 * remote.c: Use C++ exception handling.
7854 * remote-fileio.c: Use C++ exception handling.
7855 * record-full.c: Use C++ exception handling.
7856 * record-btrace.c: Use C++ exception handling.
7857 * python/python.c: Use C++ exception handling.
7858 * python/py-value.c: Use C++ exception handling.
7859 * python/py-utils.c: Use C++ exception handling.
7860 * python/py-unwind.c: Use C++ exception handling.
7861 * python/py-type.c: Use C++ exception handling.
7862 * python/py-symbol.c: Use C++ exception handling.
7863 * python/py-record.c: Use C++ exception handling.
7864 * python/py-record-btrace.c: Use C++ exception handling.
7865 * python/py-progspace.c: Use C++ exception handling.
7866 * python/py-prettyprint.c: Use C++ exception handling.
7867 * python/py-param.c: Use C++ exception handling.
7868 * python/py-objfile.c: Use C++ exception handling.
7869 * python/py-linetable.c: Use C++ exception handling.
7870 * python/py-lazy-string.c: Use C++ exception handling.
7871 * python/py-infthread.c: Use C++ exception handling.
7872 * python/py-inferior.c: Use C++ exception handling.
7873 * python/py-gdb-readline.c: Use C++ exception handling.
7874 * python/py-framefilter.c: Use C++ exception handling.
7875 * python/py-frame.c: Use C++ exception handling.
7876 * python/py-finishbreakpoint.c: Use C++ exception handling.
7877 * python/py-cmd.c: Use C++ exception handling.
7878 * python/py-breakpoint.c: Use C++ exception handling.
7879 * python/py-arch.c: Use C++ exception handling.
7880 * printcmd.c: Use C++ exception handling.
7881 * ppc-linux-tdep.c: Use C++ exception handling.
7882 * parse.c: Use C++ exception handling.
7883 * p-valprint.c: Use C++ exception handling.
7884 * objc-lang.c: Use C++ exception handling.
7885 * mi/mi-main.c: Use C++ exception handling.
7886 * mi/mi-interp.c: Use C++ exception handling.
7887 * mi/mi-cmd-stack.c: Use C++ exception handling.
7888 * mi/mi-cmd-break.c: Use C++ exception handling.
7889 * main.c: Use C++ exception handling.
7890 * linux-thread-db.c: Use C++ exception handling.
7891 * linux-tdep.c: Use C++ exception handling.
7892 * linux-nat.c: Use C++ exception handling.
7893 * linux-fork.c: Use C++ exception handling.
7894 * linespec.c: Use C++ exception handling.
7895 * language.c: Use C++ exception handling.
7896 * jit.c: Use C++ exception handling.
7897 * infrun.c: Use C++ exception handling.
7898 * infcmd.c: Use C++ exception handling.
7899 * infcall.c: Use C++ exception handling.
7900 * inf-loop.c: Use C++ exception handling.
7901 * i386-tdep.c: Use C++ exception handling.
7902 * i386-linux-tdep.c: Use C++ exception handling.
7903 * guile/scm-value.c: Use C++ exception handling.
7904 * guile/scm-type.c: Use C++ exception handling.
7905 * guile/scm-symtab.c: Use C++ exception handling.
7906 * guile/scm-symbol.c: Use C++ exception handling.
7907 * guile/scm-pretty-print.c: Use C++ exception handling.
7908 * guile/scm-ports.c: Use C++ exception handling.
7909 * guile/scm-param.c: Use C++ exception handling.
7910 * guile/scm-math.c: Use C++ exception handling.
7911 * guile/scm-lazy-string.c: Use C++ exception handling.
7912 * guile/scm-frame.c: Use C++ exception handling.
7913 * guile/scm-disasm.c: Use C++ exception handling.
7914 * guile/scm-cmd.c: Use C++ exception handling.
7915 * guile/scm-breakpoint.c: Use C++ exception handling.
7916 * guile/scm-block.c: Use C++ exception handling.
7917 * guile/guile-internal.h: Use C++ exception handling.
7918 * gnu-v3-abi.c: Use C++ exception handling.
7919 * gdbtypes.c: Use C++ exception handling.
7920 * frame.c: Use C++ exception handling.
7921 * frame-unwind.c: Use C++ exception handling.
7922 * fbsd-tdep.c: Use C++ exception handling.
7923 * f-valprint.c: Use C++ exception handling.
7924 * exec.c: Use C++ exception handling.
7925 * event-top.c: Use C++ exception handling.
7926 * event-loop.c: Use C++ exception handling.
7927 * eval.c: Use C++ exception handling.
7928 * dwarf2read.c: Use C++ exception handling.
7929 * dwarf2loc.c: Use C++ exception handling.
7930 * dwarf2-frame.c: Use C++ exception handling.
7931 * dwarf2-frame-tailcall.c: Use C++ exception handling.
7932 * dwarf-index-write.c: Use C++ exception handling.
7933 * dwarf-index-cache.c: Use C++ exception handling.
7934 * dtrace-probe.c: Use C++ exception handling.
7935 * disasm-selftests.c: Use C++ exception handling.
7936 * darwin-nat.c: Use C++ exception handling.
7937 * cp-valprint.c: Use C++ exception handling.
7938 * cp-support.c: Use C++ exception handling.
7939 * cp-abi.c: Use C++ exception handling.
7940 * corelow.c: Use C++ exception handling.
7941 * completer.c: Use C++ exception handling.
7942 * compile/compile-object-run.c: Use C++ exception handling.
7943 * compile/compile-object-load.c: Use C++ exception handling.
7944 * compile/compile-cplus-symbols.c: Use C++ exception handling.
7945 * compile/compile-c-symbols.c: Use C++ exception handling.
7946 * common/selftest.c: Use C++ exception handling.
7947 * common/new-op.c: Use C++ exception handling.
7948 * cli/cli-script.c: Use C++ exception handling.
7949 * cli/cli-interp.c: Use C++ exception handling.
7950 * cli/cli-cmds.c: Use C++ exception handling.
7951 * c-varobj.c: Use C++ exception handling.
7952 * btrace.c: Use C++ exception handling.
7953 * breakpoint.c: Use C++ exception handling.
7954 * break-catch-throw.c: Use C++ exception handling.
7955 * arch-utils.c: Use C++ exception handling.
7956 * amd64-tdep.c: Use C++ exception handling.
7957 * ada-valprint.c: Use C++ exception handling.
7958 * ada-typeprint.c: Use C++ exception handling.
7959 * ada-lang.c: Use C++ exception handling.
7960 * aarch64-tdep.c: Use C++ exception handling.
7962 2019-04-08 Tom Tromey <tom@tromey.com>
7964 * xml-support.c (gdb_xml_parser::parse): Update.
7965 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
7966 * value.c (show_convenience): Update.
7967 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
7968 (test_parse_flags_qcs): Update.
7969 * thread.c (thr_try_catch_cmd): Update.
7970 * target.c (target_translate_tls_address): Update.
7971 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
7972 (info_frame_command_core, frame_apply_command_count): Update.
7973 * rust-exp.y (rust_lex_exception_test): Update.
7974 * riscv-tdep.c (riscv_print_one_register_info): Update.
7975 * remote.c (remote_target::enable_btrace): Update.
7976 * record-btrace.c (record_btrace_enable_warn): Update.
7977 * python/py-utils.c (gdbpy_convert_exception): Update.
7978 * printcmd.c (do_one_display, print_variable_and_value): Update.
7979 * mi/mi-main.c (mi_print_exception): Update.
7980 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
7981 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
7982 * linux-nat.c (linux_nat_target::attach): Update.
7983 * linux-fork.c (class scoped_switch_fork_info): Update.
7984 * infrun.c (displaced_step_prepare): Update.
7985 * infcall.c (call_function_by_hand_dummy): Update.
7986 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
7987 * gnu-v3-abi.c (print_one_vtable): Update.
7988 * frame.c (get_prev_frame_always): Update.
7989 * f-valprint.c (info_common_command_for_block): Update.
7990 * exec.c (try_open_exec_file): Update.
7991 * exceptions.c (print_exception, exception_print)
7992 (exception_fprintf, exception_print_same): Update.
7993 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
7994 * dwarf-index-cache.c (index_cache::store)
7995 (index_cache::lookup_gdb_index): Update.
7996 * darwin-nat.c (maybe_cache_shell): Update.
7997 * cp-valprint.c (cp_print_value_fields): Update.
7998 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
7999 (gcc_cplus_symbol_address): Update.
8000 * compile/compile-c-symbols.c (gcc_convert_symbol)
8001 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
8002 * common/selftest.c: Update.
8003 * common/common-exceptions.h (struct gdb_exception) <message>: Now
8005 (exception_try_scope_entry, exception_try_scope_exit): Don't
8007 (struct exception_try_scope): Remove.
8008 (TRY): Don't use exception_try_scope.
8009 (struct gdb_exception): Add constructor, operator=.
8011 (struct gdb_exception_RETURN_MASK_ALL)
8012 (struct gdb_exception_RETURN_MASK_ERROR)
8013 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
8014 (struct gdb_quit_bad_alloc): Update.
8015 * common/common-exceptions.c (exception_none): Change
8017 (struct catcher) <state, exception>: Initialize inline.
8018 <prev>: Remove member.
8019 (current_catcher): Remove.
8020 (catchers): New global.
8021 (exceptions_state_mc_init): Simplify.
8022 (catcher_pop): Remove.
8023 (exceptions_state_mc, exceptions_state_mc_catch): Update.
8024 (try_scope_depth, exception_try_scope_entry)
8025 (exception_try_scope_exit): Remove.
8026 (throw_exception_sjlj): Update.
8027 (exception_messages, exception_messages_size): Remove.
8028 (throw_it): Simplify.
8029 (gdb_exception_sliced_copy): Remove.
8030 (throw_exception_cxx): Update.
8031 * cli/cli-script.c (script_from_file): Update.
8032 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
8034 * ada-valprint.c (ada_val_print): Update.
8035 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
8036 (create_excep_cond_exprs): Update.
8038 2019-04-08 Tom Tromey <tom@tromey.com>
8040 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
8041 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
8042 (TRY, CATCH, END_CATCH): Remove some definitions.
8043 * common/common-exceptions.c: Don't use GDB_XCPT.
8044 (catcher_list_size): Remove.
8045 (throw_exception, throw_it): Simplify.
8047 2019-04-05 Tom Tromey <tom@tromey.com>
8049 Revert the header-sorting patch.
8050 * ft32-tdep.c: Revert.
8051 * frv-tdep.c: Revert.
8052 * frv-linux-tdep.c: Revert.
8054 * frame-unwind.c: Revert.
8055 * frame-base.c: Revert.
8056 * fork-child.c: Revert.
8057 * findvar.c: Revert.
8058 * findcmd.c: Revert.
8059 * filesystem.c: Revert.
8060 * filename-seen-cache.h: Revert.
8061 * filename-seen-cache.c: Revert.
8062 * fbsd-tdep.c: Revert.
8063 * fbsd-nat.h: Revert.
8064 * fbsd-nat.c: Revert.
8065 * f-valprint.c: Revert.
8066 * f-typeprint.c: Revert.
8068 * extension.h: Revert.
8069 * extension.c: Revert.
8070 * extension-priv.h: Revert.
8071 * expprint.c: Revert.
8074 * exceptions.c: Revert.
8075 * event-top.c: Revert.
8076 * event-loop.c: Revert.
8078 * elfread.c: Revert.
8079 * dwarf2read.h: Revert.
8080 * dwarf2read.c: Revert.
8081 * dwarf2loc.c: Revert.
8082 * dwarf2expr.h: Revert.
8083 * dwarf2expr.c: Revert.
8084 * dwarf2-frame.c: Revert.
8085 * dwarf2-frame-tailcall.c: Revert.
8086 * dwarf-index-write.h: Revert.
8087 * dwarf-index-write.c: Revert.
8088 * dwarf-index-common.c: Revert.
8089 * dwarf-index-cache.h: Revert.
8090 * dwarf-index-cache.c: Revert.
8091 * dummy-frame.c: Revert.
8092 * dtrace-probe.c: Revert.
8095 * disasm-selftests.c: Revert.
8096 * dictionary.c: Revert.
8097 * dicos-tdep.c: Revert.
8098 * demangle.c: Revert.
8101 * darwin-nat.h: Revert.
8102 * darwin-nat.c: Revert.
8103 * darwin-nat-info.c: Revert.
8104 * d-valprint.c: Revert.
8105 * d-namespace.c: Revert.
8108 * csky-tdep.c: Revert.
8109 * csky-linux-tdep.c: Revert.
8110 * cris-tdep.c: Revert.
8111 * cris-linux-tdep.c: Revert.
8112 * cp-valprint.c: Revert.
8113 * cp-support.c: Revert.
8114 * cp-namespace.c: Revert.
8116 * corelow.c: Revert.
8117 * corefile.c: Revert.
8118 * continuations.c: Revert.
8119 * completer.h: Revert.
8120 * completer.c: Revert.
8121 * complaints.c: Revert.
8122 * coffread.c: Revert.
8123 * coff-pe-read.c: Revert.
8124 * cli-out.h: Revert.
8125 * cli-out.c: Revert.
8126 * charset.c: Revert.
8127 * c-varobj.c: Revert.
8128 * c-valprint.c: Revert.
8129 * c-typeprint.c: Revert.
8131 * buildsym.c: Revert.
8132 * buildsym-legacy.c: Revert.
8133 * build-id.h: Revert.
8134 * build-id.c: Revert.
8136 * bsd-uthread.c: Revert.
8137 * breakpoint.h: Revert.
8138 * breakpoint.c: Revert.
8139 * break-catch-throw.c: Revert.
8140 * break-catch-syscall.c: Revert.
8141 * break-catch-sig.c: Revert.
8142 * blockframe.c: Revert.
8144 * bfin-tdep.c: Revert.
8145 * bfin-linux-tdep.c: Revert.
8146 * bfd-target.c: Revert.
8148 * ax-general.c: Revert.
8151 * avr-tdep.c: Revert.
8153 * auto-load.c: Revert.
8154 * arm-wince-tdep.c: Revert.
8155 * arm-tdep.c: Revert.
8156 * arm-symbian-tdep.c: Revert.
8157 * arm-pikeos-tdep.c: Revert.
8158 * arm-obsd-tdep.c: Revert.
8159 * arm-nbsd-tdep.c: Revert.
8160 * arm-nbsd-nat.c: Revert.
8161 * arm-linux-tdep.c: Revert.
8162 * arm-linux-nat.c: Revert.
8163 * arm-fbsd-tdep.c: Revert.
8164 * arm-fbsd-nat.c: Revert.
8165 * arm-bsd-tdep.c: Revert.
8166 * arch-utils.c: Revert.
8167 * arc-tdep.c: Revert.
8168 * arc-newlib-tdep.c: Revert.
8169 * annotate.h: Revert.
8170 * annotate.c: Revert.
8171 * amd64-windows-tdep.c: Revert.
8172 * amd64-windows-nat.c: Revert.
8173 * amd64-tdep.c: Revert.
8174 * amd64-sol2-tdep.c: Revert.
8175 * amd64-obsd-tdep.c: Revert.
8176 * amd64-obsd-nat.c: Revert.
8177 * amd64-nbsd-tdep.c: Revert.
8178 * amd64-nbsd-nat.c: Revert.
8179 * amd64-nat.c: Revert.
8180 * amd64-linux-tdep.c: Revert.
8181 * amd64-linux-nat.c: Revert.
8182 * amd64-fbsd-tdep.c: Revert.
8183 * amd64-fbsd-nat.c: Revert.
8184 * amd64-dicos-tdep.c: Revert.
8185 * amd64-darwin-tdep.c: Revert.
8186 * amd64-bsd-nat.c: Revert.
8187 * alpha-tdep.c: Revert.
8188 * alpha-obsd-tdep.c: Revert.
8189 * alpha-nbsd-tdep.c: Revert.
8190 * alpha-mdebug-tdep.c: Revert.
8191 * alpha-linux-tdep.c: Revert.
8192 * alpha-linux-nat.c: Revert.
8193 * alpha-bsd-tdep.c: Revert.
8194 * alpha-bsd-nat.c: Revert.
8195 * aix-thread.c: Revert.
8197 * addrmap.c: Revert.
8198 * ada-varobj.c: Revert.
8199 * ada-valprint.c: Revert.
8200 * ada-typeprint.c: Revert.
8201 * ada-tasks.c: Revert.
8202 * ada-lang.c: Revert.
8203 * aarch64-tdep.c: Revert.
8204 * aarch64-ravenscar-thread.c: Revert.
8205 * aarch64-newlib-tdep.c: Revert.
8206 * aarch64-linux-tdep.c: Revert.
8207 * aarch64-linux-nat.c: Revert.
8208 * aarch64-fbsd-tdep.c: Revert.
8209 * aarch64-fbsd-nat.c: Revert.
8210 * aarch32-linux-nat.c: Revert.
8212 2019-04-05 Tom Tromey <tom@tromey.com>
8214 * ft32-tdep.c: Sort headers.
8215 * frv-tdep.c: Sort headers.
8216 * frv-linux-tdep.c: Sort headers.
8217 * frame.c: Sort headers.
8218 * frame-unwind.c: Sort headers.
8219 * frame-base.c: Sort headers.
8220 * fork-child.c: Sort headers.
8221 * findvar.c: Sort headers.
8222 * findcmd.c: Sort headers.
8223 * filesystem.c: Sort headers.
8224 * filename-seen-cache.h: Sort headers.
8225 * filename-seen-cache.c: Sort headers.
8226 * fbsd-tdep.c: Sort headers.
8227 * fbsd-nat.h: Sort headers.
8228 * fbsd-nat.c: Sort headers.
8229 * f-valprint.c: Sort headers.
8230 * f-typeprint.c: Sort headers.
8231 * f-lang.c: Sort headers.
8232 * extension.h: Sort headers.
8233 * extension.c: Sort headers.
8234 * extension-priv.h: Sort headers.
8235 * expprint.c: Sort headers.
8236 * exec.h: Sort headers.
8237 * exec.c: Sort headers.
8238 * exceptions.c: Sort headers.
8239 * event-top.c: Sort headers.
8240 * event-loop.c: Sort headers.
8241 * eval.c: Sort headers.
8242 * elfread.c: Sort headers.
8243 * dwarf2read.h: Sort headers.
8244 * dwarf2read.c: Sort headers.
8245 * dwarf2loc.c: Sort headers.
8246 * dwarf2expr.h: Sort headers.
8247 * dwarf2expr.c: Sort headers.
8248 * dwarf2-frame.c: Sort headers.
8249 * dwarf2-frame-tailcall.c: Sort headers.
8250 * dwarf-index-write.h: Sort headers.
8251 * dwarf-index-write.c: Sort headers.
8252 * dwarf-index-common.c: Sort headers.
8253 * dwarf-index-cache.h: Sort headers.
8254 * dwarf-index-cache.c: Sort headers.
8255 * dummy-frame.c: Sort headers.
8256 * dtrace-probe.c: Sort headers.
8257 * disasm.h: Sort headers.
8258 * disasm.c: Sort headers.
8259 * disasm-selftests.c: Sort headers.
8260 * dictionary.c: Sort headers.
8261 * dicos-tdep.c: Sort headers.
8262 * demangle.c: Sort headers.
8263 * dcache.h: Sort headers.
8264 * dcache.c: Sort headers.
8265 * darwin-nat.h: Sort headers.
8266 * darwin-nat.c: Sort headers.
8267 * darwin-nat-info.c: Sort headers.
8268 * d-valprint.c: Sort headers.
8269 * d-namespace.c: Sort headers.
8270 * d-lang.c: Sort headers.
8271 * ctf.c: Sort headers.
8272 * csky-tdep.c: Sort headers.
8273 * csky-linux-tdep.c: Sort headers.
8274 * cris-tdep.c: Sort headers.
8275 * cris-linux-tdep.c: Sort headers.
8276 * cp-valprint.c: Sort headers.
8277 * cp-support.c: Sort headers.
8278 * cp-namespace.c: Sort headers.
8279 * cp-abi.c: Sort headers.
8280 * corelow.c: Sort headers.
8281 * corefile.c: Sort headers.
8282 * continuations.c: Sort headers.
8283 * completer.h: Sort headers.
8284 * completer.c: Sort headers.
8285 * complaints.c: Sort headers.
8286 * coffread.c: Sort headers.
8287 * coff-pe-read.c: Sort headers.
8288 * cli-out.h: Sort headers.
8289 * cli-out.c: Sort headers.
8290 * charset.c: Sort headers.
8291 * c-varobj.c: Sort headers.
8292 * c-valprint.c: Sort headers.
8293 * c-typeprint.c: Sort headers.
8294 * c-lang.c: Sort headers.
8295 * buildsym.c: Sort headers.
8296 * buildsym-legacy.c: Sort headers.
8297 * build-id.h: Sort headers.
8298 * build-id.c: Sort headers.
8299 * btrace.c: Sort headers.
8300 * bsd-uthread.c: Sort headers.
8301 * breakpoint.h: Sort headers.
8302 * breakpoint.c: Sort headers.
8303 * break-catch-throw.c: Sort headers.
8304 * break-catch-syscall.c: Sort headers.
8305 * break-catch-sig.c: Sort headers.
8306 * blockframe.c: Sort headers.
8307 * block.c: Sort headers.
8308 * bfin-tdep.c: Sort headers.
8309 * bfin-linux-tdep.c: Sort headers.
8310 * bfd-target.c: Sort headers.
8311 * bcache.c: Sort headers.
8312 * ax-general.c: Sort headers.
8313 * ax-gdb.h: Sort headers.
8314 * ax-gdb.c: Sort headers.
8315 * avr-tdep.c: Sort headers.
8316 * auxv.c: Sort headers.
8317 * auto-load.c: Sort headers.
8318 * arm-wince-tdep.c: Sort headers.
8319 * arm-tdep.c: Sort headers.
8320 * arm-symbian-tdep.c: Sort headers.
8321 * arm-pikeos-tdep.c: Sort headers.
8322 * arm-obsd-tdep.c: Sort headers.
8323 * arm-nbsd-tdep.c: Sort headers.
8324 * arm-nbsd-nat.c: Sort headers.
8325 * arm-linux-tdep.c: Sort headers.
8326 * arm-linux-nat.c: Sort headers.
8327 * arm-fbsd-tdep.c: Sort headers.
8328 * arm-fbsd-nat.c: Sort headers.
8329 * arm-bsd-tdep.c: Sort headers.
8330 * arch-utils.c: Sort headers.
8331 * arc-tdep.c: Sort headers.
8332 * arc-newlib-tdep.c: Sort headers.
8333 * annotate.h: Sort headers.
8334 * annotate.c: Sort headers.
8335 * amd64-windows-tdep.c: Sort headers.
8336 * amd64-windows-nat.c: Sort headers.
8337 * amd64-tdep.c: Sort headers.
8338 * amd64-sol2-tdep.c: Sort headers.
8339 * amd64-obsd-tdep.c: Sort headers.
8340 * amd64-obsd-nat.c: Sort headers.
8341 * amd64-nbsd-tdep.c: Sort headers.
8342 * amd64-nbsd-nat.c: Sort headers.
8343 * amd64-nat.c: Sort headers.
8344 * amd64-linux-tdep.c: Sort headers.
8345 * amd64-linux-nat.c: Sort headers.
8346 * amd64-fbsd-tdep.c: Sort headers.
8347 * amd64-fbsd-nat.c: Sort headers.
8348 * amd64-dicos-tdep.c: Sort headers.
8349 * amd64-darwin-tdep.c: Sort headers.
8350 * amd64-bsd-nat.c: Sort headers.
8351 * alpha-tdep.c: Sort headers.
8352 * alpha-obsd-tdep.c: Sort headers.
8353 * alpha-nbsd-tdep.c: Sort headers.
8354 * alpha-mdebug-tdep.c: Sort headers.
8355 * alpha-linux-tdep.c: Sort headers.
8356 * alpha-linux-nat.c: Sort headers.
8357 * alpha-bsd-tdep.c: Sort headers.
8358 * alpha-bsd-nat.c: Sort headers.
8359 * aix-thread.c: Sort headers.
8360 * agent.c: Sort headers.
8361 * addrmap.c: Sort headers.
8362 * ada-varobj.c: Sort headers.
8363 * ada-valprint.c: Sort headers.
8364 * ada-typeprint.c: Sort headers.
8365 * ada-tasks.c: Sort headers.
8366 * ada-lang.c: Sort headers.
8367 * aarch64-tdep.c: Sort headers.
8368 * aarch64-ravenscar-thread.c: Sort headers.
8369 * aarch64-newlib-tdep.c: Sort headers.
8370 * aarch64-linux-tdep.c: Sort headers.
8371 * aarch64-linux-nat.c: Sort headers.
8372 * aarch64-fbsd-tdep.c: Sort headers.
8373 * aarch64-fbsd-nat.c: Sort headers.
8374 * aarch32-linux-nat.c: Sort headers.
8376 2019-04-04 Tom Tromey <tom@tromey.com>
8378 * varobj.c (varobj_create): Update.
8379 * rust-exp.y (struct rust_parser) <update_innermost_block,
8380 lookup_symbol>: New methods.
8381 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
8383 (rust_parser::rust_lookup_type)
8384 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
8385 * printcmd.c (display_command, do_one_display): Update.
8386 * parser-defs.h (struct parser_state) <parser_state>: Add
8387 "tracker" parameter.
8388 (block_tracker): New member.
8389 (class innermost_block_tracker) <innermost_block_tracker>: Add
8391 <reset>: Remove method.
8392 (innermost_block): Don't declare.
8393 (null_post_parser): Update.
8394 * parse.c (innermost_block): Remove global.
8395 (write_dollar_variable): Update.
8396 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
8397 Remove "tracker_types" parameter.
8398 (parse_expression): Add "tracker" parameter.
8399 (parse_expression_for_completion): Update.
8400 (null_post_parser): Add "tracker" parameter.
8401 * p-exp.y: Update rules.
8402 * m2-exp.y: Update rules.
8403 * language.h (struct language_defn) <la_post_parser>: Add
8404 "tracker" parameter.
8405 * go-exp.y: Update rules.
8406 * f-exp.y: Update rules.
8407 * expression.h (parse_expression, parse_exp_1): Add "tracker"
8409 * d-exp.y: Update rules.
8410 * c-exp.y: Update rules.
8411 * breakpoint.c (set_breakpoint_condition): Create an
8412 innermost_block_tracker.
8413 (watch_command_1): Likewise.
8414 * ada-lang.c (resolve): Add "tracker" parameter.
8415 (resolve_subexp): Likewise.
8416 * ada-exp.y (write_var_from_sym): Update.
8418 2019-04-04 Tom Tromey <tom@tromey.com>
8420 * type-stack.h: New file.
8421 * type-stack.c: New file.
8422 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
8424 (insert_into_type_stack, insert_type, push_type, push_type_int)
8425 (insert_type_address_space, pop_type, pop_type_int)
8426 (pop_typelist, pop_type_stack, append_type_stack)
8427 (push_type_stack, get_type_stack, push_typelist)
8428 (follow_type_instance_flags, follow_types): Don't declare.
8429 * parse.c (type_stack): Remove global.
8430 (parse_exp_in_context): Update.
8431 (insert_into_type_stack, insert_type, push_type, push_type_int)
8432 (insert_type_address_space, pop_type, pop_type_int)
8433 (pop_typelist, pop_type_stack, append_type_stack)
8434 (push_type_stack, get_type_stack, push_typelist)
8435 (follow_type_instance_flags, follow_types): Remove (moved to
8437 * f-exp.y (type_stack): New global.
8439 (push_kind_type, f_parse): Update.
8440 * d-exp.y (type_stack): New global.
8443 * c-exp.y (struct c_parse_state) <type_stack>: New member.
8445 * Makefile.in (COMMON_SFILES): Add type-stack.c.
8446 (HFILES_NO_SRCDIR): Add type-stack.h.
8448 2019-04-04 Tom Tromey <tom@tromey.com>
8450 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
8451 (rust_parser::convert_ast_to_expression, rust_parse)
8452 (rust_lex_test_completion, rust_lex_tests): Update.
8453 * parser-defs.h (struct expr_completion_state): New.
8454 (struct parser_state) <parser_state>: Add completion parameter.
8455 <mark_struct_expression, mark_completion_tag>: New methods.
8456 <parse_completion, m_completion_state>: New members.
8457 (prefixify_expression, null_post_parser): Update.
8458 (mark_struct_expression, mark_completion_tag): Don't declare.
8459 * parse.c (parse_completion, expout_last_struct)
8460 (expout_tag_completion_type, expout_completion_name): Remove
8462 (parser_state::mark_struct_expression)
8463 (parser_state::mark_completion_tag): Now methods.
8464 (prefixify_expression): Add last_struct parameter.
8465 (prefixify_subexp): Likewise.
8466 (parse_exp_1): Update.
8467 (parse_exp_in_context): Add cstate parameter. Update.
8468 (parse_expression_for_completion): Create an
8469 expr_completion_state.
8470 (null_post_parser): Add "completion" parameter.
8471 * p-exp.y: Update rules.
8473 * language.h (struct language_defn) <la_post_parser>: Add
8474 "completing" parameter.
8475 * go-exp.y: Update rules.
8476 (lex_one_token): Update.
8477 * expression.h (parse_completion): Don't declare.
8478 * d-exp.y: Update rules.
8479 (lex_one_token): Update rules.
8480 * c-exp.y: Update rules.
8481 (lex_one_token): Update.
8482 * ada-lang.c (resolve): Add "parse_completion" parameter.
8483 (resolve_subexp): Likewise.
8484 (ada_resolve_function): Likewise.
8486 2019-04-04 Tom Tromey <tom@tromey.com>
8488 * parser-defs.h (struct parser_state) <start_arglist,
8489 end_arglist>: New methods.
8490 <arglist_len, m_funcall_chain>: New members.
8491 (arglist_len, start_arglist, end_arglist): Don't declare.
8492 * parse.c (arglist_len, funcall_chain): Remove global.
8493 (start_arglist, end_arglist): Remove functions.
8494 (parse_exp_in_context): Update.
8495 * p-exp.y: Update rules.
8496 * m2-exp.y: Update rules.
8497 * go-exp.y: Update rules.
8498 * f-exp.y: Update rules.
8499 * d-exp.y: Update rules.
8500 * c-exp.y: Update rules.
8502 2019-04-04 Tom Tromey <tom@tromey.com>
8504 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
8505 lex_operator, push_back>: New methods.
8507 (rust_parser::lex_hex, lex_escape): Rename and update.
8508 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
8509 (rust_parser::lex_operator): Rename and update.
8510 (rust_parser::lex_number, rustyylex, rustyyerror)
8511 (rust_lex_test_init, rust_lex_test_sequence)
8512 (rust_lex_test_push_back, rust_lex_tests): Update.
8513 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
8515 <lexptr, prev_lexptr>: New members.
8516 (lexptr, prev_lexptr): Don't declare.
8517 * parse.c (lexptr, prev_lexptr): Remove globals.
8518 (parse_exp_in_context): Update.
8519 * p-exp.y (yylex, yyerror): Update.
8520 * m2-exp.y (parse_number, yylex, yyerror): Update.
8521 * go-exp.y (lex_one_token, yyerror): Update.
8522 * f-exp.y (match_string_literal, yylex, yyerror): Update.
8523 * d-exp.y (lex_one_token, yyerror): Update.
8524 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
8525 (lex_one_token, yyerror): Update.
8526 * ada-lex.l (YY_INPUT): Update.
8527 (rewind_to_char): Update.
8528 * ada-exp.y (yyerror): Update.
8530 2019-04-04 Tom Tromey <tom@tromey.com>
8532 * rust-exp.y (rustyylex, rust_lex_tests): Update.
8533 * parser-defs.h (struct parser_state) <parser_state>: Add new
8535 <comma_terminates>: New member.
8536 (comma_terminates): Don't declare global.
8537 * parse.c (comma_terminates): Remove global.
8538 (parse_exp_in_context): Update.
8539 * p-exp.y (yylex): Update.
8540 * m2-exp.y (yylex): Update.
8541 * go-exp.y (lex_one_token): Update.
8542 * f-exp.y (yylex): Update.
8543 * d-exp.y (lex_one_token): Update.
8544 * c-exp.y (lex_one_token): Update.
8545 * ada-lex.l: Update.
8547 2019-04-04 Tom Tromey <tom@tromey.com>
8549 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
8550 (rustyylex, rust_lex_test_init, rust_lex_test_one)
8551 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
8552 * parser-defs.h (paren_depth): Don't declare.
8553 * parse.c (paren_depth): Remove global.
8554 (parse_exp_in_context): Update.
8555 * p-exp.y (paren_depth): New global.
8556 (pascal_parse): Initialize it.
8557 * m2-exp.y (paren_depth): New global.
8558 (m2_parse): Initialize it.
8559 * go-exp.y (paren_depth): New global.
8560 (go_parse): Initialize it.
8561 * f-exp.y (paren_depth): New global.
8562 (f_parse): Initialize it.
8563 * d-exp.y (paren_depth): New global.
8564 (d_parse): Initialize it.
8565 * c-exp.y (paren_depth): New global.
8566 (c_parse): Initialize it.
8567 * ada-lex.l (paren_depth): New global.
8568 (lexer_init): Initialize it.
8570 2019-04-04 Tom Tromey <tom@tromey.com>
8572 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
8573 (rust_parser::convert_ast_to_type)
8574 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
8575 * parser-defs.h (struct parser_state) <parser_state>: Add
8576 parameters. Initialize new members.
8577 <expression_context_block, expression_context_pc>: New members.
8578 * parse.c (expression_context_block, expression_context_pc):
8580 (parse_exp_in_context): Update.
8581 * p-exp.y: Update all rules.
8583 * m2-exp.y: Update all rules.
8585 * go-exp.y (yylex): Update.
8586 * f-exp.y (yylex): Update.
8587 * d-exp.y: Update all rules.
8589 * c-exp.y: Update all rules.
8590 (lex_one_token, classify_name, yylex, c_parse): Update.
8591 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
8593 2019-04-04 Tom Tromey <tom@tromey.com>
8595 * gdbarch.h, gdbarch.c: Rebuild.
8596 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
8598 (struct stap_parse_info): Replace "parser_state" with
8600 * parser-defs.h (struct expr_builder): Rename from "parser_state".
8601 (parser_state): New class.
8602 * parse.c (expr_builder): Rename.
8603 (expr_builder::release): Rename.
8604 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
8605 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
8606 (write_exp_elt_longcst, write_exp_elt_floatcst)
8607 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
8608 (write_exp_string_vector, write_exp_bitstring)
8609 (write_exp_msymbol, mark_struct_expression)
8610 (write_dollar_variable)
8611 (insert_type_address_space, increase_expout_size): Replace
8612 "parser_state" with "expr_builder".
8613 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
8614 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
8615 "parser_state" with "expr_builder".
8617 2019-04-04 Tom Tromey <tom@tromey.com>
8619 * rust-exp.y: Replace "parse_language" with method call.
8621 (yylex): Replace "parse_language" with method call.
8623 (yylex): Replace "parse_language" with method call.
8624 * go-exp.y (classify_name): Replace "parse_language" with method
8626 * f-exp.y (yylex): Replace "parse_language" with method call.
8627 * d-exp.y (lex_one_token): Replace "parse_language" with method
8630 (lex_one_token, classify_name, yylex): Replace "parse_language"
8632 * ada-exp.y (find_primitive_type, type_char)
8633 (type_system_address): Replace "parse_language" with method call.
8635 2019-04-04 Tom Tromey <tom@tromey.com>
8637 * rust-exp.y: Replace "parse_gdbarch" with method call.
8638 * parse.c (write_dollar_variable, insert_type_address_space):
8639 Replace "parse_gdbarch" with method call.
8640 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
8642 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
8644 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
8645 "parse_gdbarch" with method call.
8646 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
8648 * f-exp.y (parse_type, parse_f_type, yylex): Replace
8649 "parse_gdbarch" with method call.
8650 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
8651 "parse_gdbarch" with method call.
8652 * c-exp.y (parse_type, parse_number, classify_name): Replace
8653 "parse_gdbarch" with method call.
8654 * ada-lex.l: Replace "parse_gdbarch" with method call.
8655 * ada-exp.y (parse_type, find_primitive_type, type_char)
8656 (type_system_address): Replace "parse_gdbarch" with method call.
8658 2019-04-04 Tom Tromey <tom@tromey.com>
8660 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
8661 * stap-probe.c (stap_parse_argument): Update.
8662 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
8663 initial_size parameter.
8664 * rust-exp.y (rust_lex_tests): Update.
8665 * parse.c (parser_state): Update.
8666 (parse_exp_in_context): Update.
8667 * parser-defs.h (struct parser_state) <parser_state>: Remove
8668 "initial_size" parameter.
8670 2019-04-04 Tom Tromey <tom@tromey.com>
8672 * parser-defs.h (increase_expout_size): Don't declare.
8673 * parse.c (increase_expout_size): Now static.
8675 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
8677 * gnu-nat.c (gnu_nat_target::wait): Fix
8678 target_waitstatus_to_string call.
8680 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8682 * eval.c (evaluate_subexp_standard): Handle internal functions
8683 during Fortran function call handling.
8685 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8687 * NEWS: Mention new internal functions.
8688 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
8689 (read_base_type): Use dwarf2_init_complex_target_type.
8690 * value.c (creal_internal_fn): New function.
8691 (cimag_internal_fn): New function.
8692 (_initialize_values): Register new internal functions.
8694 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8696 * infrun.c (stop_all_threads): If debug_infrun, always
8697 trace the wait status after wait_one, using
8698 target_waitstatus_to_string and target_pid_to_str.
8699 (handle_inferior_event): Replace various trace of
8700 wait status kind by a single trace.
8701 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
8702 wait status kind image by target_waitstatus_to_string.
8703 * target/waitstatus.c (target_waitstatus_to_string): Fix
8706 2019-04-01 Tom Tromey <tromey@adacore.com>
8709 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
8711 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
8712 Pedro Alves <palves@redhat.com>
8714 * top.c (quit_force): Call 'finalize_values'.
8715 * value.c (finalize_values): New function.
8716 * value.h (finalize_values): Declare.
8718 2019-03-30 Eli Zaretskii <eliz@gnu.org>
8720 * NEWS: Announce $_gdb_major and $_gdb_minor.
8722 * top.c (init_gdb_version_vars): New function.
8723 (gdb_init): Call init_gdb_version_vars.
8725 2019-03-29 Tom Tromey <tromey@adacore.com>
8727 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
8728 help text. Remove dead code.
8730 2019-03-29 Keith Seitz <keiths@redhat.com>
8732 From Siddhesh Poyarekar:
8733 * f-lang.h (f77_get_upperbound): Return LONGEST.
8734 (f77_get_lowerbound): Likewise.
8735 * f-typeprint.c (f_type_print_varspec_suffix): Expand
8736 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
8738 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
8739 plongest to format print it.
8740 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
8741 (f77_get_upperbound): Likewise.
8742 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
8743 LOWER_BOUND to LONGEST.
8744 (f77_create_arrayprint_offset_tbl): Likewise.
8746 2019-03-29 Keith Seitz <keiths@redhat.com>
8748 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
8749 %s/pulongest for TYPE_LENGTH instead of %d in format
8751 * ada-typerint.c (ada_print_type): Likewise.
8752 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
8753 * compile/compile-c-support.c (generate_register_struct): Likewise.
8754 * gdbtypes.c (recursive_dump_type): Likewise.
8755 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
8756 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
8757 instead of %d in format strings.
8758 * riscv-tdep.c (riscv_type_alignment): Cast second argument
8759 to std::min to ULONGEST.
8760 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
8761 instead of %d in format strings.
8762 * tracepoint.c (info_scope_command): Likewise.
8763 * typeprint.c (print_offset_data::update)
8764 (print_offset_data::finish): Likewise.
8765 * xtensa-tdep.c (xtensa_store_return_value)
8766 (xtensa_push_dummy_call): Likewise.
8768 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
8770 * windows-nat.c (display_selector): Fixed format specifications
8773 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8775 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
8777 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
8779 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
8780 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
8781 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
8782 (nios2_linux_init_abi): Install it.
8784 2019-03-28 Alan Hayward <alan.hayward@arm.com>
8786 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
8788 2019-03-28 Alan Hayward <alan.hayward@arm.com>
8790 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
8792 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8793 Tom Tromey <tromey@adacore.com>
8795 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
8797 2019-03-26 Joel Brobecker <brobecker@adacore.com>
8799 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
8800 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
8801 method to compute the bounds of range types. Also print "[evaluated]"
8802 if the bounds' values come from a dynamic evaluation.
8804 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
8806 * cp-valprint.c (cp_print_value_fields): Don't print trailing
8807 whitespace when pretty printing is on.
8809 2019-03-26 Alan Hayward <alan.hayward@arm.com>
8811 * ppc-linux-nat.c: Add include.
8813 2019-03-26 Alan Hayward <alan.hayward@arm.com>
8815 * NEWS: Mention AArch64 Pointer Authentication.
8817 2019-03-26 Alan Hayward <alan.hayward@arm.com>
8819 * arm-linux-nat.c: Add include.
8821 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
8823 * source-cache.c (source_cache::get_source_lines): Re-read
8824 fullname after calling open_source_file.
8826 2019-03-25 John Baldwin <jhb@FreeBSD.org>
8828 * NEWS: Mention TLS support for FreeBSD.
8830 2019-03-25 Tom Tromey <tromey@adacore.com>
8832 * minsyms.c (BUNCH_SIZE): Update comment.
8833 (~minimal_symbol_reader): Remove old comment.
8834 (compact_minimal_symbols): Update comment.
8835 (minimal_symbol_reader::install): Remove old comment. Update
8838 2019-03-25 Alan Hayward <alan.hayward@arm.com>
8840 * s390-linux-nat.c: Add include.
8842 2019-03-25 Alan Hayward <alan.hayward@arm.com>
8844 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
8845 Call linux_get_hwcap.
8846 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
8848 (aarch64_linux_get_hwcap): Remove function.
8849 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
8851 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
8853 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
8854 * linux-tdep.c (linux_get_hwcap): Add function.
8855 (linux_get_hwcap2): Likewise.
8856 * linux-tdep.h (linux_get_hwcap): Add declaration.
8857 (linux_get_hwcap2): Likewise.
8858 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
8859 (ppc_linux_get_hwcap2): Likewise.
8860 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
8862 (ppc_linux_nat_target::insert_watchpoint): Likewise.
8863 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
8864 (ppc_linux_nat_target::read_description): Likewise.
8865 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
8866 * s390-linux-nat.c: Likewise.
8867 * s390-linux-tdep.c (s390_core_read_description): Likewise.
8869 2019-03-24 Tom Tromey <tom@tromey.com>
8871 * ada-lang.c (standard_lookup): Simplify initialization.
8872 (ada_lookup_symbol_nonlocal): Simplify return.
8873 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
8874 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
8875 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
8876 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
8878 * solib.c (solib_global_lookup): Simplify.
8879 * symtab.c (null_block_symbol): Remove.
8880 (symbol_cache_lookup): Simplify returns.
8881 (lookup_language_this): Simplify returns.
8882 (lookup_symbol_aux): Simplify return.
8883 (lookup_local_symbol): Simplify returns.
8884 (lookup_global_symbol_from_objfile): Simplify return.
8885 (lookup_symbol_in_objfile_symtabs)
8886 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
8887 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
8888 (lookup_static_symbol, lookup_global_symbol): Simplify return.
8889 * cp-namespace.c (cp_lookup_bare_symbol)
8890 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
8891 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
8892 (cp_lookup_nested_symbol): Don't use null_block_symbol.
8893 (cp_lookup_symbol_via_imports): Simplify initialization.
8894 (find_symbol_in_baseclass): Likewise.
8895 * symtab.h (null_block_symbol): Remove.
8896 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
8897 (d_lookup_nested_symbol, d_lookup_symbol_imports)
8898 (d_lookup_symbol_module): Likewise.
8899 (find_symbol_in_baseclass): Simplify initialization.
8901 2019-03-24 Tom Tromey <tom@tromey.com>
8903 * expression.h: Don't include symtab.h.
8904 (struct block): Forward declare.
8906 2019-03-24 Tom Tromey <tom@tromey.com>
8908 * c-exp.y (typebase): Remove casts.
8909 * gdbtypes.c (lookup_unsigned_typename, )
8910 (lookup_signed_typename): Remove cast.
8911 * eval.c (parse_to_comma_and_eval): Remove cast.
8912 * parse.c (write_dollar_variable): Remove cast.
8913 * block.h (struct block) <superblock>: Now const.
8914 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
8915 * psymtab.c (psym_map_matching_symbols): Make "block" const.
8916 (map_block): Make "block" const.
8917 * symfile.h (struct quick_symbol_functions)
8918 <map_matching_symbols>: Constify block argument to "callback".
8919 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
8921 (find_pc_sect_compunit_symtab): Make "b" const.
8922 (find_symbol_at_address): Likewise.
8923 (search_symbols): Likewise.
8924 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
8925 (dw2_debug_names_lookup_symbol): Likewise.
8926 (dw2_map_matching_symbols): Update.
8927 * p-valprint.c (pascal_val_print): Remove "block".
8928 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
8929 (aux_add_nonlocal_symbols): Make "block" const.
8930 (resolve_subexp): Remove cast.
8931 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
8933 (iterate_over_file_blocks): Likewise.
8934 * f-exp.y (%union) <bval>: Remove.
8935 * coffread.c (patch_opaque_types): Make "b" const.
8936 * spu-tdep.c (spu_catch_start): Make "block" const.
8937 * c-valprint.c (print_unpacked_pointer): Remove "block".
8938 * symmisc.c (dump_symtab_1): Make "b" const.
8939 (block_depth): Make "block" const.
8940 * d-exp.y (%union) <bval>: Remove.
8941 * cp-support.h (cp_lookup_rtti_type): Update.
8942 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
8943 * psymtab.c (psym_lookup_symbol): Make "block" const.
8944 (maintenance_check_psymtabs): Make "b" const.
8945 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
8946 (enumerate_locals, enumerate_args): Update.
8947 * python/py-symtab.c (stpy_global_block): Make "block" const.
8948 (stpy_static_block): Likewise.
8949 * inline-frame.c (block_starting_point_at): Make "new_block"
8951 * block.c (find_block_in_blockvector): Make return type const.
8952 (blockvector_for_pc_sect): Make "b" const.
8953 (find_block_in_blockvector): Make "b" const.
8955 2019-03-23 Tom Tromey <tom@tromey.com>
8957 * varobj.c (varobj_create): Update.
8958 * symfile.c (clear_symtab_users): Don't reset innermost_block.
8959 * printcmd.c (display_command, do_one_display): Don't reset
8961 * parser-defs.h (enum innermost_block_tracker_type): Move to
8963 (innermost_block): Update comment.
8964 * parse.c (parse_exp_1): Add tracker_types parameter.
8965 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
8966 tracker_types parameter. Reset innermost_block.
8967 (parse_exp_in_context): Remove.
8968 (parse_expression_for_completion): Update.
8969 * objfiles.c (~objfile): Don't reset expression_context_block or
8971 * expression.h (enum innermost_block_tracker_type): Move from
8973 (parse_exp_1): Add tracker_types parameter.
8974 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
8975 reset innermost_block.
8977 2019-03-23 Tom Tromey <tom@tromey.com>
8979 * objfiles.h: Include bcache.h.
8981 2019-03-23 Tom Tromey <tom@tromey.com>
8983 * linespec.c (get_current_search_block): Use
8984 scoped_restore_current_language.
8985 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
8987 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8988 Jiong Wang <jiong.wang@arm.com>
8990 * aarch64-linux-tdep.c
8991 (aarch64_linux_iterate_over_regset_sections): Check for pauth
8993 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
8995 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8996 Jiong Wang <jiong.wang@arm.com>
8998 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
9000 (aarch64_analyze_prologue_test): Add PACIASP test.
9001 (aarch64_prologue_prev_register): Unmask PC value.
9003 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9004 Jiong Wang <jiong.wang@arm.com>
9006 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
9007 (aarch64_dwarf2_prev_register): Unmask PC value.
9008 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
9009 (aarch64_execute_dwarf_cfa_vendor_op): Check for
9010 DW_CFA_AARCH64_negate_ra_state.
9011 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
9013 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9014 Jiong Wang <jiong.wang@arm.com>
9016 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
9018 (aarch64_pseudo_register_name): Likewise.
9019 (aarch64_pseudo_register_type): Likewise.
9020 (aarch64_pseudo_register_reggroup_p): Likewise.
9021 (aarch64_gdbarch_init): Add pauth registers.
9022 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
9023 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
9024 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
9025 (struct gdbarch_tdep): Add regnum for ra_state.
9027 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9028 Jiong Wang <jiong.wang@arm.com>
9030 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
9032 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9033 Jiong Wang <jiong.wang@arm.com>
9035 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
9037 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
9038 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
9039 (aarch64_gdbarch_init): Add puth registers.
9040 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
9041 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
9042 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
9044 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9045 Jiong Wang <jiong.wang@arm.com>
9047 * aarch64-linux-nat.c
9048 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
9049 * aarch64-linux-tdep.c
9050 (aarch64_linux_core_read_description): Likewise.
9051 (aarch64_linux_get_hwcap): New function.
9052 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
9053 (aarch64_linux_get_hwcap): New declaration.
9055 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9056 Jiong Wang <jiong.wang@arm.com>
9058 * aarch64-linux-nat.c
9059 (aarch64_linux_nat_target::read_description): Add pauth param.
9060 * aarch64-linux-tdep.c
9061 (aarch64_linux_core_read_description): Likewise.
9062 * aarch64-tdep.c (struct target_desc): Add in pauth.
9063 (aarch64_read_description): Add pauth param.
9064 (aarch64_gdbarch_init): Likewise.
9065 * aarch64-tdep.h (aarch64_read_description): Likewise.
9066 * arch/aarch64.c (aarch64_create_target_description): Likewise.
9067 * arch/aarch64.h (aarch64_create_target_description): Likewise.
9068 * features/Makefile: Add new files.
9069 * features/aarch64-pauth.c: New file.
9070 * features/aarch64-pauth.xml: New file.
9072 2019-03-20 Tom Tromey <tromey@adacore.com>
9074 * infrun.c (handle_inferior_event): Rename from
9075 handle_inferior_event_1. Create a scoped_value_mark.
9076 (handle_inferior_event): Remove.
9078 2019-03-19 Tom Tromey <tromey@adacore.com>
9080 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
9081 * infrun.h (print_stop_event): Add "displays" parameter.
9082 * infrun.c (print_stop_event): Add "displays" parameter.
9084 2019-03-19 Pedro Alves <palves@redhat.com>
9086 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
9087 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
9088 to -1. Fix TABs vs spaces.
9089 (tui_ui_out::tui_ui_out): Don't initialize fields here.
9090 * tui/tui-out.h (tui_ui_out) Add intro comments.
9091 <m_line, m_start_of_line>: In-class initialize, and add describing
9094 2019-03-18 Alan Hayward <alan.hayward@arm.com>
9096 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
9098 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
9100 2019-03-18 Pedro Alves <palves@redhat.com>
9101 Eli Zaretskii <eliz@gnu.org>
9103 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
9104 m_line and m_start_of_line.
9106 2019-03-18 Eli Zaretskii <eliz@gnu.org>
9108 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
9109 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
9110 it returns a newline. This fixes a regression in TU mode, whereby
9111 the next line is output on the same screen line as the user input.
9113 2019-03-18 Tom Tromey <tromey@adacore.com>
9115 * minsyms.c (minimal_symbol_reader::install): Remove call to
9118 2019-03-18 Pedro Alves <palves@redhat.com>
9120 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
9122 (apply_style): New, factored out from ...
9123 (apply_ansi_escape): ... this. Handle reverse video mode.
9124 (tui_set_reverse_mode): New function.
9125 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
9126 * tui/tui-winsource.c (tui_show_source_line): Use
9127 tui_set_reverse_mode instead of setting A_STANDOUT.
9128 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
9131 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
9133 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
9136 2019-03-18 Tom Tromey <tromey@adacore.com>
9138 * ada-lang.c (empty_array): Add "high" parameter.
9139 (ada_evaluate_subexp): Update.
9141 2019-03-17 Sergei Trofimovich <siarheit@google.com>
9143 * unittests/string_view-selftests.c: Define
9144 _initialize_string_view_selftests unconditionally.
9146 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9149 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
9151 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9154 * windows-nat.c (display_selector): Fix format specifiers.
9156 2019-03-17 Eli Zaretskii <eliz@gnu.org>
9158 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
9159 tui_refill_source_window instead of tui_refresh_win, to update the
9160 current execution line. This fixes redisplay of the current line
9161 when stepping through the code with "next" or "step".
9163 2019-03-16 Eli Zaretskii <eliz@gnu.org>
9165 * source-cache.c (source_cache::get_source_lines): Call
9166 find_source_lines to initialize s->nlines. This fixes vertical
9167 scrolling of TUI source window when the DOWN arrow is pressed.
9169 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9171 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
9172 linux-thread-db.c (_initialize_thread_db): Likewise.
9174 2019-03-16 Eli Zaretskii <eliz@gnu.org>
9176 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
9177 wclrtoeol in tui_show_source_line". This reverts changes made in
9178 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
9180 2019-03-15 Tom Tromey <tom@tromey.com>
9182 * symtab.h (struct minimal_symbol): Derive from
9183 general_symbol_info.
9184 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
9185 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9186 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9187 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9188 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
9189 (MSYMBOL_SEARCH_NAME): Update.
9190 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
9191 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
9192 * minsyms.c (minimal_symbol_reader::record_full): Update.
9194 2019-03-15 Tom Tromey <tom@tromey.com>
9196 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
9198 2019-03-15 Tom Tromey <tom@tromey.com>
9200 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
9202 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
9204 * minsyms.c (lookup_minimal_symbol_by_pc_section)
9205 (build_minimal_symbol_hash_tables)
9206 (minimal_symbol_reader::install): Update.
9208 2019-03-15 Tom Tromey <tom@tromey.com>
9210 * symtab.c (create_demangled_names_hash): Update.
9211 (symbol_set_names): Update.
9212 * objfiles.h (struct objfile_per_bfd_storage)
9213 <demangled_names_hash>: Now an htab_up.
9214 * objfiles.c (objfile_per_bfd_storage): Simplify.
9216 2019-03-15 Tom Tromey <tom@tromey.com>
9218 * objfiles.h (struct objfile_per_bfd_storage): Declare
9220 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
9222 (get_objfile_bfd_data): Use new. Don't initialize
9224 (free_objfile_per_bfd_storage): Remove.
9225 (objfile_bfd_data_free, objfile::~objfile): Use delete.
9227 2019-03-15 Tom Tromey <tom@tromey.com>
9229 * symfile.c (reread_symbols): Update.
9230 * objfiles.c (objfile::objfile): Update.
9231 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
9232 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
9234 (minimal_symbol_reader::install): Update.
9235 (terminate_minimal_symbol_table): Remove.
9236 * jit.c (jit_object_close_impl): Update.
9238 2019-03-15 Tom Tromey <tom@tromey.com>
9240 * minsyms.c (minimal_symbol_reader::record_full): Remove some
9243 2019-03-15 Tom Tromey <tom@tromey.com>
9245 * objfiles.h (struct objfile_per_bfd_storage)
9246 <demangled_hash_languages>: Now a bitset.
9247 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
9248 (lookup_minimal_symbol): Update.
9250 2019-03-15 Tom Tromey <tom@tromey.com>
9252 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
9253 Don't return the symbol.
9254 * coffread.c (record_minimal_symbol): Use record_full.
9256 2019-03-14 Eli Zaretskii <eliz@gnu.org>
9258 The MS-Windows port of ncurses fails to switch to a color pair if
9259 one or both of the colors are the implicit default colors. This
9260 change records the default colors when TUI is initialized, and
9261 then specifies them explicitly when a color pair uses the default
9262 colors. This allows color styling in TUI mode on MS-Windows.
9264 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
9266 (tui_initialize_io) [__MINGW32__]: Record the default terminal
9267 colors in ncurses_norm_attr.
9268 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
9269 "none", replace it with the default color recorded in
9272 2019-03-14 Tom Tromey <tromey@adacore.com>
9274 * source-cache.h (class source_cache) <get_source_lines>: Return
9276 * source-cache.c (source_cache::extract_lines): Handle case where
9277 first_pos==npos. Return std::string.
9278 (source_cache::get_source_lines): Update.
9280 2019-03-14 Tom Tromey <tromey@adacore.com>
9282 * NEWS: Add item for "style sources" commands.
9283 * source-cache.c (source_cache::get_source_lines): Check
9285 * cli/cli-style.c (source_styling): New global.
9286 (_initialize_cli_style): Add "style sources" commands.
9287 (show_style_sources): New function.
9288 * cli/cli-style.h (source_styling): Declare.
9290 2019-03-14 Pedro Alves <palves@redhat.com>
9291 Tom Tromey <tromey@adacore.com>
9293 * tui/tui-winsource.h (tui_refill_source_window): Declare.
9294 * tui/tui-winsource.c (tui_refill_source_window): New function,
9296 (tui_horizontal_source_scroll): ... here. Move some logic.
9297 * cli/cli-style.c (set_style_enabled): Notify new observable.
9298 * tui/tui-hooks.c (tui_redisplay_source): New function.
9299 (tui_attach_detach_observers): Attach or detach
9300 tui_redisplay_source.
9301 * observable.h (source_styling_changed): New observable.
9302 * observable.c: Define source_styling_changed observable.
9304 2019-03-13 Tom Tromey <tromey@adacore.com>
9306 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
9307 (i386_gnu_nat_target::store_registers): Update.
9308 * target-debug.h (target_debug_print_std_string): New macro.
9309 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
9310 * windows-tdep.c (display_one_tib): Update.
9311 * tui/tui-stack.c (tui_make_status_line): Update.
9312 * top.c (print_inferior_quit_action): Update.
9313 * thread.c (thr_try_catch_cmd): Update.
9314 (add_thread_with_info): Update.
9315 (thread_target_id_str): Update.
9316 (thr_try_catch_cmd): Update.
9317 (thread_command): Update.
9318 (thread_find_command): Update.
9319 * record-btrace.c (record_btrace_target::info_record)
9320 (record_btrace_resume_thread, record_btrace_target::resume)
9321 (record_btrace_cancel_resume, record_btrace_step_thread)
9322 (record_btrace_target::wait, record_btrace_target::wait)
9323 (record_btrace_target::wait, record_btrace_target::stop): Update.
9324 * progspace.c (print_program_space): Update.
9325 * process-stratum-target.c
9326 (process_stratum_target::thread_address_space): Update.
9327 * linux-fork.c (linux_fork_mourn_inferior)
9328 (detach_checkpoint_command, info_checkpoints_command)
9329 (linux_fork_context): Update.
9330 (linux_fork_detach): Update.
9331 (class scoped_switch_fork_info): Update.
9332 (delete_checkpoint_command): Update.
9333 * infrun.c (follow_fork_inferior): Update.
9334 (follow_fork_inferior): Update.
9335 (proceed_after_vfork_done): Update.
9336 (handle_vfork_child_exec_or_exit): Update.
9337 (follow_exec): Update.
9338 (displaced_step_prepare_throw): Update.
9339 (displaced_step_restore): Update.
9340 (start_step_over): Update.
9342 (clear_proceed_status_thread): Update.
9344 (print_target_wait_results): Update.
9345 (do_target_wait): Update.
9346 (context_switch): Update.
9347 (stop_all_threads): Update.
9348 (restart_threads): Update.
9349 (finish_step_over): Update.
9350 (handle_signal_stop): Update.
9351 (switch_back_to_stepped_thread): Update.
9352 (keep_going_pass_signal): Update.
9353 (print_exited_reason): Update.
9354 (normal_stop): Update.
9355 * inferior.c (inferior_pid_to_str): Change return type.
9356 (print_selected_inferior): Update.
9357 (add_inferior): Update.
9358 (detach_inferior): Update.
9359 * dummy-frame.c (fprint_dummy_frames): Update.
9360 * dcache.c (dcache_info_1): Update.
9361 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
9362 (btrace_fetch, btrace_clear): Update.
9363 * linux-tdep.c (linux_core_pid_to_str): Change return type.
9364 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
9366 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
9367 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
9368 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
9369 * gdbarch.c, gdbarch.h: Rebuild.
9370 * gdbarch.sh (core_pid_to_str): Change return type.
9371 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
9373 (windows_nat_target::pid_to_str): Change return type.
9374 (windows_delete_thread): Update.
9375 (windows_nat_target::attach): Update.
9376 (windows_nat_target::files_info): Update.
9377 * target-delegates.c: Rebuild.
9378 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
9380 (sol_thread_target::pid_to_str): Change return type.
9381 * remote.c (class remote_target) <pid_to_str>: Change return
9383 (remote_target::pid_to_str): Change return type.
9384 (extended_remote_target::attach, remote_target::remote_stop_ns)
9385 (remote_target::remote_notif_remove_queued_reply)
9386 (remote_target::push_stop_reply, remote_target::disable_btrace):
9388 (extended_remote_target::attach): Update.
9389 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
9391 (gdbsim_target::pid_to_str): Change return type.
9392 * ravenscar-thread.c (struct ravenscar_thread_target)
9393 <pid_to_str>: Change return type.
9394 (ravenscar_thread_target::pid_to_str): Change return type.
9395 * procfs.c (class procfs_target) <pid_to_str>: Change return
9397 (procfs_target::pid_to_str): Change return type.
9398 (procfs_target::attach): Update.
9399 (procfs_target::detach): Update.
9400 (procfs_target::fetch_registers): Update.
9401 (procfs_target::store_registers): Update.
9402 (procfs_target::wait): Update.
9403 (procfs_target::files_info): Update.
9404 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
9405 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
9407 (nto_procfs_target::pid_to_str): Change return type.
9408 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
9409 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
9411 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
9413 (attach_proc_task_lwp_callback, get_detach_signal)
9414 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
9415 (linux_nat_target::resume, wait_lwp, stop_callback)
9416 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
9417 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
9418 (linux_nat_wait_1, resume_stopped_resumed_lwps)
9419 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
9420 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
9422 (inf_ptrace_target::attach): Update.
9423 (inf_ptrace_target::files_info): Update.
9424 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
9426 (go32_nat_target::pid_to_str): Change return type.
9427 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
9428 (gnu_nat_target::wait): Update.
9429 (gnu_nat_target::wait): Update.
9430 (gnu_nat_target::resume): Update.
9431 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
9432 (fbsd_nat_target::wait): Update.
9433 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
9435 (darwin_nat_target::attach): Update.
9436 * corelow.c (class core_target) <pid_to_str>: Change return type.
9437 (core_target::pid_to_str): Change return type.
9438 * target.c (normal_pid_to_str): Change return type.
9439 (default_pid_to_str): Likewise.
9440 (target_pid_to_str): Change return type.
9441 (target_translate_tls_address): Update.
9442 (target_announce_detach): Update.
9443 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
9445 (bsd_uthread_target::pid_to_str): Change return type.
9446 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
9448 (bsd_kvm_target::pid_to_str): Change return type.
9449 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
9451 (aix_thread_target::pid_to_str): Change return type.
9452 * target.h (struct target_ops) <pid_to_str>: Change return type.
9453 (target_pid_to_str, normal_pid_to_str): Likewise.
9454 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
9456 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
9458 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
9460 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
9462 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
9464 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
9467 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
9469 * NEWS: Mention that the new default MI version is 3. Mention
9470 changes to the output of commands and events that deal with
9471 multi-location breakpoints.
9472 * breakpoint.c: Include "mi/mi-out.h".
9473 (print_one_breakpoint): Change output syntax if using MI version
9475 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
9477 (mi_multi_location_breakpoint_output_fixed): New.
9478 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
9479 (mi_cmd_fix_multi_location_breakpoint_output): New.
9480 (mi_multi_location_breakpoint_output_fixed): New.
9481 * mi/mi-cmds.c (mi_cmds): Register command
9482 -fix-multi-location-breakpoint-output.
9483 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
9486 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9488 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
9489 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
9490 instantiate mi_ui_out based on interpreter name.
9491 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
9492 * mi/mi-main.c (mi_load_progress): Likewise.
9494 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9496 * NEWS: Combine separate "New targets" sections for 8.3.
9498 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9500 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
9501 (ppcfbsd_init_abi): Install gdbarch
9502 "fetch_tls_load_module_address" and "get_thread_local_address"
9505 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9507 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
9508 (riscv_fbsd_init_abi): Install gdbarch
9509 "fetch_tls_load_module_address" and "get_thread_local_address"
9512 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9514 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
9515 (i386fbsd_init_abi): Install gdbarch
9516 "fetch_tls_load_module_address" and "get_thread_local_address"
9519 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9521 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
9522 (amd64fbsd_init_abi): Install gdbarch
9523 "fetch_tls_load_module_address" and "get_thread_local_address"
9526 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9528 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
9529 (struct fbsd_pspace_data): New type.
9530 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
9531 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
9532 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
9533 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
9534 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
9536 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9538 * gdbtypes.c (lookup_struct_elt): New function.
9539 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
9540 * gdbtypes.h (struct struct_elt): New type.
9541 (lookup_struct_elt): New prototype.
9543 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9545 * gdbtypes.c (lookup_struct_elt_type): Update comment and
9546 remove disabled code block.
9548 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9550 * gdbarch.sh (get_thread_local_address): New method.
9551 * gdbarch.h, gdbarch.c: Regenerate.
9552 * target.c (target_translate_tls_address): Use
9553 gdbarch_get_thread_local_address if present instead of
9554 target::get_thread_local_address.
9556 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9558 * target.h (target::get_thread_local_address): Update comment.
9560 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9562 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
9563 objfile->separate_debug_objfile_backlink if not NULL.
9565 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9567 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
9568 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
9569 (amd64bsd_store_inferior_registers): Likewise.
9570 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
9571 Enable segment base registers.
9572 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
9573 PT_GETFSBASE and PT_GETGSBASE.
9574 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
9576 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
9577 segment base registers.
9578 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
9580 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9582 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
9583 Update calls to i386_target_description to add 'segments'
9585 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
9586 add segment base registers.
9587 * arch/i386.c (i386_create_target_description): Add 'segments'
9588 parameter to enable segment base registers.
9589 * arch/i386.h (i386_create_target_description): Likewise.
9590 * features/i386/32bit-segments.xml: New file.
9591 * features/i386/32bit-segments.c: Generate.
9592 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
9593 call to i386_target_description to add 'segments' parameter.
9594 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
9595 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
9596 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
9597 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
9598 if feature is present.
9599 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
9600 Add 'segments' parameter to call to i386_target_description.
9601 (i386_target_description): Add 'segments' parameter to enable
9602 segment base registers.
9603 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
9604 to call to i386_target_description.
9605 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
9606 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
9607 Define I386_NUM_REGS.
9608 (i386_target_description): Add 'segments' parameter to enable
9609 segment base registers.
9611 2019-03-12 Eli Zaretskii <eliz@gnu.org>
9614 * source-cache.c: #undef open and close, to avoid unresolved
9615 externals during linking.
9617 2019-03-12 Tom Tromey <tromey@adacore.com>
9619 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
9620 const. Add initializers.
9621 (_initialize_remote): Don't initialize ptid globals.
9623 2019-03-12 Pedro Alves <palves@redhat.com>
9625 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
9627 2019-03-12 Pedro Alves <palves@redhat.com>
9629 * cp-name-parser.y (main): Remove unused 'len' variable.
9631 2019-03-12 Tom Tromey <tromey@adacore.com>
9633 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
9634 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
9636 2019-03-12 Tom Tromey <tromey@adacore.com>
9638 * linux-nat.c (iterate_over_lwps): Update.
9639 (stop_callback): Remove parameter.
9640 (stop_wait_callback, detach_callback, resume_set_callback)
9641 (select_singlestep_lwp_callback, set_ignore_sigint)
9642 (status_callback, resumed_callback, resume_clear_callback)
9643 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
9645 (linux_nat_target::detach, linux_nat_target::resume)
9646 (linux_stop_and_wait_all_lwps, select_event_lwp)
9647 (linux_nat_filter_event, linux_nat_wait_1)
9648 (linux_nat_target::kill, linux_nat_target::stop)
9649 (linux_nat_target::stop): Update.
9650 (linux_nat_resume_callback): Change type.
9651 (resume_stopped_resumed_lwps, count_events_callback)
9652 (select_event_lwp_callback): Likewise.
9653 (linux_stop_lwp, linux_nat_stop_lwp): Update.
9654 * arm-linux-nat.c (struct update_registers_data): Remove.
9655 (update_registers_callback): Change type.
9656 (arm_linux_insert_hw_breakpoint1): Update.
9657 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
9659 (x86_linux_dr_set_addr): Update.
9660 (x86_linux_dr_set_control): Update.
9661 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
9662 (iterate_over_lwps): Use gdb::function_view.
9663 * nat/aarch64-linux-hw-point.c (struct
9664 aarch64_dr_update_callback_param): Remove.
9665 (debug_reg_change_callback): Change type.
9666 (aarch64_notify_debug_reg_change): Update.
9667 * s390-linux-nat.c (s390_refresh_per_info): Update.
9669 2019-03-11 Tom Tromey <tromey@adacore.com>
9671 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
9672 redundant assignment to "this_cu".
9674 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9676 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
9678 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9680 * gdbtypes.c (rank_one_type_parm_set): New function extracted
9682 (rank_one_type): ... this.
9684 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9686 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
9688 (rank_one_type): ... this.
9690 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9692 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
9694 (rank_one_type): ... this.
9696 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9698 * gdbtypes.c (rank_one_type_parm_float): New function extracted
9700 (rank_one_type): ... this.
9702 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9704 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
9706 (rank_one_type): ... this.
9708 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9710 * gdbtypes.c (rank_one_type_parm_range): New function extracted
9712 (rank_one_type): ... this.
9714 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9716 * gdbtypes.c (rank_one_type_parm_char): New function extracted
9718 (rank_one_type): ... this.
9720 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9722 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
9724 (rank_one_type): ... this.
9726 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9728 * gdbtypes.c (rank_one_type_parm_int): New function extracted
9730 (rank_one_type): ... this.
9732 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9734 * gdbtypes.c (rank_one_type_parm_func): New function extracted
9736 (rank_one_type): ... this.
9738 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9740 * gdbtypes.c (rank_one_type_parm_array): New function extracted
9742 (rank_one_type): ... this.
9744 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9746 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
9748 (rank_one_type): ... this.
9750 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9752 * inferior.c (initialize_inferiors): Ensure 'help set/show print
9753 inferior-events' shows the example events.
9755 2019-03-08 Eli Zaretskii <eliz@gnu.org>
9757 Support styling on native MS-Windows console
9760 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
9761 on MS-Windows if $TERM is not defined.
9763 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
9765 * posix-hdep.c (gdb_console_fputs):
9766 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
9768 * ui-file.h (gdb_console_fputs): Add prototype.
9770 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
9771 back to fputs only if the former returns zero.
9773 2019-03-07 Tom Tromey <tom@tromey.com>
9775 * symmisc.c (print_symbol_bcache_statistics): Update.
9776 (print_objfile_statistics): Update.
9777 * symfile.c (allocate_symtab): Update.
9778 * stabsread.c: Don't include bcache.h.
9779 * psymtab.h (struct psymbol_bcache): Don't declare.
9780 (class psymtab_storage) <psymbol_cache>: Now a bcache.
9781 (psymbol_bcache_init, psymbol_bcache_free)
9782 (psymbol_bcache_get_bcache): Don't declare.
9783 * psymtab.c (struct psymbol_bcache): Remove.
9784 (psymtab_storage::psymtab_storage): Update.
9785 (psymtab_storage::~psymtab_storage): Update.
9786 (psymbol_bcache_init, psymbol_bcache_free)
9787 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
9788 (add_psymbol_to_bcache): Update.
9789 (allocate_psymtab): Update.
9790 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
9791 macro_cache>: No longer pointers.
9792 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
9793 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
9794 * macrotab.c (macro_bcache): Update.
9795 * macroexp.c: Don't include bcache.h.
9796 * gdbtypes.c (check_types_worklist): Update.
9797 (types_deeply_equal): Remove TRY/CATCH. Update.
9798 * elfread.c (elf_symtab_read): Update.
9799 * dwarf2read.c: Don't include bcache.h.
9800 * buildsym.c (buildsym_compunit::get_macro_table): Update.
9801 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
9802 (print_bcache_statistics, bcache_memory_used): Don't declare.
9803 (struct bcache): Move from bcache.c. Add constructor, destructor,
9804 methods. Rename all data members.
9805 * bcache.c (struct bcache): Move to bcache.h.
9806 (bcache::expand_hash_table): Rename from expand_hash_table.
9808 (bcache::insert): Rename from bcache_full.
9809 (bcache::compare): Rename from bcache_compare.
9810 (bcache_xmalloc): Remove.
9811 (bcache::~bcache): Rename from bcache_xfree.
9812 (bcache::print_statistics): Rename from print_bcache_statistics.
9813 (bcache::memory_used): Rename from bcache_memory_used.
9815 2019-03-07 Pedro Alves <palves@redhat.com>
9817 * infrun.c (normal_stop): Also check for
9818 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
9820 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
9822 * f-lang.c (value_from_host_double): Moved to...
9823 * value.c (value_from_host_double): ...here.
9824 * value.h (value_from_host_double): Declare.
9825 * guile/scm-math.c (vlscm_convert_typed_number): Use
9826 value_from_host_double.
9827 (vlscm_convert_number): Likewise.
9828 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
9829 * python/py-value.c (convert_value_from_python): Likewise.
9831 2019-03-06 Tom Tromey <tom@tromey.com>
9833 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
9835 2019-03-06 Tom Tromey <tom@tromey.com>
9837 * utils.h (free_current_contents): Don't declare.
9838 * utils.c (free_current_contents): Remove.
9840 2019-03-06 Tom Tromey <tom@tromey.com>
9842 * top.c (quit_force): Update.
9843 * main.c (captured_command_loop): Update.
9844 * common/new-op.c (operator new): Update.
9845 * common/common-exceptions.c (struct catcher)
9846 <save_cleanup_chain>: Remove member.
9847 (exceptions_state_mc_init): Update.
9848 (exception_try_scope_entry): Return nullptr.
9849 (exception_try_scope_exit, exception_rethrow)
9850 (throw_exception_sjlj, throw_exception_cxx): Update.
9851 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
9852 (all_cleanups, do_cleanups, discard_cleanups)
9853 (discard_final_cleanups, save_cleanups, save_final_cleanups)
9854 (restore_cleanups, restore_final_cleanups): Don't declare.
9855 (do_final_cleanups): Remove parameter.
9856 * common/cleanups.c (cleanup_chain, make_cleanup)
9857 (make_cleanup_dtor, all_cleanups, do_cleanups)
9858 (discard_my_cleanups, discard_cleanups)
9859 (discard_final_cleanups, save_my_cleanups, save_cleanups)
9860 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
9861 (null_cleanup): Remove.
9862 (do_final_cleanups): Remove parameter.
9864 2019-03-06 Tom Tromey <tom@tromey.com>
9866 * remote.c (remote_target::remote_parse_stop_reply): Use
9869 2019-03-06 Tom Tromey <tom@tromey.com>
9871 * stabsread.c (struct stabs_field_info): Rename from field_info.
9872 <list, fnlist>: Add initializers.
9873 <obstack>: New member.
9874 (read_member_functions, read_struct_fields, read_baseclasses):
9875 Allocate on obstack. Don't use cleanups.
9876 (read_one_struct_field, read_member_functions, read_struct_fields)
9877 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
9878 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
9879 (read_struct_type): Update.
9881 2019-03-06 Tom Tromey <tom@tromey.com>
9883 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
9884 * common/filestuff.h (make_cleanup_close): Don't declare.
9885 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
9888 2019-03-06 Tom Tromey <tom@tromey.com>
9890 * solib-aix.c: Use make_scope_exit.
9892 2019-03-06 Tom Tromey <tom@tromey.com>
9894 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
9895 Use make_scope_exit.
9897 2019-03-06 Tom Tromey <tom@tromey.com>
9899 * solib-svr4.c (disable_probes_interface): Remove parameter.
9900 (svr4_handle_solib_event): Use make_scope_exit.
9902 2019-03-06 Tom Tromey <tom@tromey.com>
9904 * remote.c (struct stop_reply_deleter): Remove.
9905 (stop_reply_up): Update.
9906 (struct stop_reply): Derive from notif_event. Don't typedef.
9907 <regcache>: Now a std::vector.
9908 (stop_reply_xfree): Remove.
9909 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
9910 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
9911 (remote_target::discard_pending_stop_replies): Use delete.
9912 (remote_target::remote_parse_stop_reply): Update.
9913 (remote_target::process_stop_reply): Update.
9914 * remote-notif.h (struct notif_event): Add virtual destructor.
9915 Remove "dtr" member.
9916 (struct notif_client) <alloc_event>: Return a unique_ptr.
9917 (notif_event_xfree): Don't declare.
9918 (notif_event_up): New typedef.
9919 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
9920 (notif_event_xfree, do_notif_event_xfree): Remove.
9921 (remote_notif_state_xfree): Update.
9923 2019-03-06 Tom Tromey <tom@tromey.com>
9925 * infrun.c (displaced_step_clear_cleanup): Now a
9926 forward_scope_exit type.
9927 (displaced_step_prepare_throw): Update.
9928 (displaced_step_fixup): Update.
9930 2019-03-06 Tom Tromey <tom@tromey.com>
9932 * inferior.h (class inferior): Update comment.
9933 * gdbthread.h (class thread_info): Update comment.
9935 2019-03-06 Joel Brobecker <brobecker@adacore.com>
9936 Tom Tromey <tom@tromey.com>
9938 * stabsread.h (struct stab_section_list): Remove.
9939 (coffstab_build_psymtabs): Update.
9940 * dbxread.c (symbuf_sections): Now a std::vector.
9941 (sect_idx): New global.
9942 (fill_symbuf): Update.
9943 (coffstab_build_psymtabs): Change type of stabsects parameter.
9945 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
9947 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
9948 (coff_locate_sections): Update.
9949 (coff_symfile_read): Remove cleanups. Update.
9950 (init_stringtab): Add storage parameter.
9951 (free_stringtab, free_stringtab_cleanup): Remove.
9952 (init_lineno): Add storage parameter.
9953 (free_linetab, free_linetab_cleanup): Remove.
9955 2019-03-06 Pedro Alves <palves@redhat.com>
9957 * linux-fork.c (fork_info::clobber_regs): Delete.
9958 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
9959 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
9961 (scoped_switch_fork_info::scoped_switch_fork_info)
9962 (checkpoint_command, linux_fork_context): Adjust
9963 fork_save_infrun_state calls.
9965 2019-03-06 Pedro Alves <palves@redhat.com>
9967 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
9968 (inf_has_multiple_threads): Return 'bool' and rewrite using
9969 inferior_info::threads().
9971 2019-03-06 Pedro Alves <palves@redhat.com>
9973 * linux-fork.c: Include <list>.
9974 (fork_list): Now a std::list instance.
9975 (fork_info): Add ctor, dtor, and in-class initialize all fields.
9976 (forks_exist_p, find_last_fork): Adjust.
9980 (free_fork): Delete, folded into fork_info::~fork_info().
9981 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
9983 (init_fork_list): Delete.
9984 (linux_fork_killall, linux_fork_mourn_inferior)
9985 (linux_fork_detach, info_checkpoints_command): Adjust.
9986 (_initialize_linux_fork): No longer call init_fork_list.
9988 2019-03-06 Pedro Alves <palves@redhat.com>
9990 * linux-fork.c (new_fork): New, split out of ...
9991 (add_fork): ... this. Return void. Move "first fork" special
9992 case from here, to ...
9993 (checkpoint_command): ... here.
9994 * linux-linux.h (add_fork): Return void.
9996 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9998 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
10000 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10001 Chris January <chris.january@arm.com>
10002 David Lecomber <david.lecomber@arm.com>
10004 * f-exp.y: New token, UNOP_INTRINSIC.
10005 (exp): New pattern using UNOP_INTRINSIC token.
10006 (f77_keywords): Add 'abs' keyword.
10007 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
10008 (value_from_host_double): New function.
10009 (evaluate_subexp_f): Support UNOP_ABS.
10011 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10013 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
10016 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10018 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
10019 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
10020 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
10022 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10024 * f-exp.y (convert_to_kind_type): Handle more type kinds.
10026 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10027 Chris January <chris.january@arm.com>
10029 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
10030 * f-exp.y: Define 'KIND' token.
10031 (exp): New pattern for KIND expressions.
10032 (ptype): Handle types with a kind extension.
10033 (direct_abs_decl): Extend to spot kind extensions.
10034 (f77_keywords): Add 'kind' to the list.
10035 (push_kind_type): New function.
10036 (convert_to_kind_type): New function.
10037 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
10038 * parse.c (operator_length_standard): Likewise.
10039 * parser-defs.h (enum type_pieces): Add tp_kind.
10040 * std-operator.def: Add UNOP_KIND.
10042 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10044 * f-exp.y (f_parse): Set yydebug.
10046 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10048 * f-lang.c (evaluate_subexp_f): New function.
10049 (exp_descriptor_f): New global.
10050 (f_language_defn): Use exp_descriptor_f instead of
10051 exp_descriptor_standard.
10053 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10055 * f-exp.y (struct token): Add comments.
10056 (dot_ops): Remove uppercase versions and the end marker.
10057 (f77_keywords): Likewise.
10058 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
10059 entries in the dot_ops array are case insensitive, and use
10060 strncasecmp to compare strings. Also some whitespace cleanup in
10061 this area. Similar for the f77_keywords array, except entries in
10062 this list might be case sensitive.
10064 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10066 * f-exp.y (struct f77_boolean_val): Add comments.
10067 (boolean_values): Remove uppercase versions, and end marker.
10068 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
10069 and use strncasecmp to achieve case insensitivity. Additionally,
10070 perform whitespace cleanup around this code.
10072 2019-03-06 Tom Tromey <tromey@adacore.com>
10074 * remote-sim.c (gdbsim_target_open): Use result of
10077 2019-03-06 Richard Bunt <richard.bunt@arm.com>
10078 Dirk Schubert <dirk.schubert@arm.com>
10079 Chris January <chris.january@arm.com>
10081 * eval.c (evaluate_subexp_standard): Call Fortran argument
10083 * f-lang.c (struct value): A value which can be passed into a
10084 Fortran function call.
10085 (fortran_argument_convert): Wrap Fortran arguments in a pointer
10087 (struct type): Value ready for a Fortran function call.
10088 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
10090 * f-lang.h (fortran_argument_convert): Declaration.
10091 (fortran_preserve_arg_pointer): Declaration.
10092 * infcall.c (value_arg_coerce): Call Fortran argument logic.
10094 2019-03-05 Tom Tromey <tromey@adacore.com>
10096 * python/py-prettyprint.c (print_string_repr): Remove #if.
10097 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
10099 2019-03-05 Tom Tromey <tromey@adacore.com>
10101 * target.c (the_dummy_target): Move later. Change type to
10103 (initialize_targets): Don't initialize the_dummy_target.
10105 2019-03-05 Tom Tromey <tromey@adacore.com>
10107 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
10108 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
10110 2019-03-05 Tom Tromey <tromey@adacore.com>
10112 * windows-nat.c (windows_nat_target::attach)
10113 (windows_nat_target::detach): Don't call gdb_flush.
10114 * valprint.c (generic_val_print, val_print, val_print_string):
10115 Don't call gdb_flush.
10116 * utils.c (defaulted_query): Don't call gdb_flush.
10117 * typeprint.c (print_type_scalar): Don't call gdb_flush.
10118 * target.c (target_announce_detach): Don't call gdb_flush.
10119 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
10120 * remote.c (extended_remote_target::attach): Don't call
10122 * procfs.c (procfs_target::detach): Don't call gdb_flush.
10123 * printcmd.c (do_examine): Don't call gdb_flush.
10124 (info_display_command): Don't call gdb_flush.
10125 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
10126 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
10127 * memattr.c (info_mem_command): Don't call gdb_flush.
10128 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
10129 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
10130 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
10131 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
10132 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
10133 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
10134 (gnu_nat_target::detach): Don't call gdb_flush.
10135 * f-valprint.c (f_val_print): Don't call gdb_flush.
10136 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
10137 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
10138 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
10140 * c-valprint.c (c_val_print): Don't call gdb_flush.
10141 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
10143 2019-03-05 Tom Tromey <tromey@adacore.com>
10145 * varobj.c (update_dynamic_varobj_children): Update.
10146 (install_default_visualizer): Use reset, not release.
10147 * value.c (set_internalvar): Update.
10148 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
10149 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
10150 ATTRIBUTE_UNUSED_RESULT.
10152 2019-03-05 Tom Tromey <tromey@adacore.com>
10154 * remote.c (class scoped_remote_fd) <release>: Add
10155 ATTRIBUTE_UNUSED_RESULT.
10157 2019-03-05 Tom Tromey <tromey@adacore.com>
10159 * macroexp.c (struct macro_buffer) <release>: Add
10160 ATTRIBUTE_UNUSED_RESULT.
10162 2019-03-05 Tom Tromey <tromey@adacore.com>
10164 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
10165 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
10166 ATTRIBUTE_UNUSED_RESULT.
10168 2019-03-05 Tom Tromey <tromey@adacore.com>
10170 * common/scoped_fd.h (class scoped_fd) <release>: Add
10171 ATTRIBUTE_UNUSED_RESULT.
10173 2019-03-05 Tom Tromey <tromey@adacore.com>
10175 * parser-defs.h (struct parser_state) <release>: Add
10176 ATTRIBUTE_UNUSED_RESULT.
10178 2019-03-05 Tom Tromey <tromey@adacore.com>
10180 * utils.h (class gdb_argv) <release>: Add
10181 ATTRIBUTE_UNUSED_RESULT.
10182 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
10184 2019-03-02 Eli Zaretskii <eliz@gnu.org>
10186 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
10187 for-loop range, to avoid compiler warnings.
10189 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
10190 avoid compiler warnings about unused variables.
10192 * NEWS: Mention end of support for native debugging on MS-Windows
10196 * common/netstuff.c:
10197 * gdbserver/gdbreplay.c
10198 * gdbserver/remote-utils.c:
10200 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
10201 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
10202 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
10203 'getaddrinfo' and 'freeaddrinfo' were not available before
10204 Windows XP, and mingw.org's MinGW headers by default define
10205 _WIN32_WINNT to 0x500.
10207 2019-03-01 Gary Benson <gbenson@redhat.com>
10209 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
10211 2019-02-28 Brian Vandenberg <phantall@gmail.com>
10212 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10215 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
10216 set_sigint_trap, clear_sigint_trap.
10218 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10220 * target.c (target_detach): Clear the regcache and the
10223 2019-02-27 Pedro Alves <palves@redhat.com>
10225 * utils.c (set_screen_size): When we cap the height/width sizes,
10226 tweak the corresponding command variable to show "unlimited":
10228 2019-02-27 Saagar Jha <saagar@saagarjha.com>
10229 Pedro Alves <palves@redhat.com>
10231 * utils.c (set_screen_size): Reduce "infinite" rows and columns
10232 before calling rl_set_screen_size.
10234 2019-02-27 Tom Tromey <tromey@adacore.com>
10236 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
10238 * python/py-value.c: Remove Python 2.4 workaround.
10239 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
10241 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
10242 Python 2.4 workaround.
10243 * python/python-internal.h: Remove Python 2.4 comment.
10244 (Py_ssize_t): Don't define.
10245 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
10246 (gdb_Py_DECREF): Remove Python 2.4 workaround.
10247 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
10248 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
10249 * python/python.c (do_start_initialization): Remove Python 2.4
10251 * python/py-prettyprint.c (class dummy_python_frame): Remove.
10252 (print_children): Remove Python 2.4 workaround.
10253 * python/py-inferior.c (buffer_procs): Remove Python 2.4
10255 (CHARBUFFERPROC_NAME): Remove.
10256 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
10257 Python 2.4 workaround.
10259 2019-02-27 Kevin Buettner <kevinb@redhat.com>
10261 * NEWS: Note minimum Python version.
10263 2019-02-27 Kevin Buettner <kevinb@redhat.com>
10265 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
10266 code from these functions. Remove corresponding ifdefs. Use
10267 Py_buffer_up instead of explicit calls to PyBuffer_Release.
10268 Remove gotos and target of gotos.
10269 (infpy_search_memory): Likewise.
10271 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10273 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
10274 (hppa_gdbarch_init): Don't register deleted functions with
10277 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10279 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
10280 (h8300_unwind_sp): Delete.
10281 (h8300_dummy_id): Delete.
10282 (h8300_gdbarch_init): Don't register deleted functions with
10285 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10287 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
10288 (ft32_unwind_pc): Delete.
10289 (ft32_unwind_sp): Delete.
10290 (ft32_gdbarch_init): Don't register deleted functions with
10293 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10295 * gdb/frv-tdep.c (frv_dummy_id): Delete.
10296 (frv_unwind_pc): Delete.
10297 (frv_unwind_sp): Delete.
10298 (frv_gdbarch_init): Don't register deleted functions with
10301 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10303 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
10304 (riscv_unwind_pc): Delete.
10305 (riscv_unwind_sp): Delete.
10306 (riscv_gdbarch_init): Don't register deleted functions with
10309 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10311 * gdb/csky-tdep.c (csky_dummy_id): Delete.
10312 (csky_unwind_pc): Delete.
10313 (csky_unwind_sp): Delete.
10314 (csky_gdbarch_init): Don't register deleted functions with
10317 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10319 * gdb/cris-tdep.c (cris_dummy_id): Delete.
10320 (cris_unwind_pc): Delete.
10321 (cris_unwind_sp): Delete.
10322 (cris_gdbarch_init): Don't register deleted functions with
10325 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10327 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
10328 (bfin_unwind_pc): Delete.
10329 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
10331 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10333 * gdb/arm-tdep.c (arm_dummy_id): Delete.
10334 (arm_unwind_pc): Delete.
10335 (arm_unwind_sp): Delete.
10336 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
10338 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10340 * gdb/arc-tdep.c (arc_dummy_id): Delete.
10341 (arc_unwind_pc): Delete.
10342 (arc_unwind_sp): Delete.
10343 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
10345 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10347 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
10348 (alpha_unwind_pc): Delete.
10349 (alpha_gdbarch_init): Don't register deleted functions with
10352 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10354 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
10355 (aarch64_unwind_pc): Delete.
10356 (aarch64_unwind_sp): Delete.
10357 (aarch64_gdbarch_init): Don't register deleted functions with
10360 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10362 * gdbtypes.c (type_align): Don't consider static members when
10363 computing structure alignment.
10365 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10367 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
10368 return 0 for other types.
10369 * arch-utils.c (default_type_align): Always return 0.
10370 * gdbarch.h: Regenerate.
10371 * gdbarch.sh (type_align): Extend comment.
10372 * gdbtypes.c (type_align): Add additional comments, always call
10373 gdbarch_type_align before applying the default rules.
10374 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
10375 generic code will then apply a suitable default.
10376 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
10377 types, return 0 for other types.
10379 2019-02-27 Joel Brobecker <brobecker@adacore.com>
10381 * NEWS: Create a new section for the next release branch.
10382 Rename the section of the current branch, now that it has
10385 2019-02-27 Joel Brobecker <brobecker@adacore.com>
10387 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
10388 * version.in: Bump version to 8.3.50.DATE-git.
10390 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
10392 * aix-thread.c (ptid_cmp): Remove unused variable.
10393 (get_signaled_thread): Likewise.
10394 (store_regs_user_thread): Likewise.
10395 (store_regs_kernel_thread): Likewise.
10396 (fetch_regs_kernel_thread): Remove shadowed variable.
10398 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
10400 * features/riscv/32bit-cpu.xml: Add register numbers.
10401 * features/riscv/32bit-fpu.c: Regenerate.
10402 * features/riscv/32bit-fpu.xml: Add register numbers.
10403 * features/riscv/64bit-cpu.xml: Add register numbers.
10404 * features/riscv/64bit-fpu.c: Regenerate.
10405 * features/riscv/64bit-fpu.xml: Add register numbers.
10407 2019-02-26 Kevin Buettner <kevinb@redhat.com>
10409 * NEWS: Mention two argument form of gdb.Value constructor.
10410 * python/py-value.c (convert_buffer_and_type_to_value): New
10412 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
10413 Add support for handling an optional second argument. Call
10414 convert_buffer_and_type_to_value as appropriate.
10415 * python/python-internal.h (Py_buffer_deleter): New struct.
10416 (Py_buffer_up): New typedef.
10418 2019-02-25 John Baldwin <jhb@FreeBSD.org>
10420 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
10421 instead of releasing ownership.
10423 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
10425 * dwarf2read.c (open_and_init_dwp_file): Call
10426 elf_numsections instead of bfd_count_sections to initialize
10427 dwp_file->num_sections.
10429 2019-02-25 Tom Tromey <tromey@adacore.com>
10431 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
10433 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
10435 * gcore.in: Add '--readnever' option when invoking GDB.
10437 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
10439 * MAINTAINERS: Update my email address.
10441 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
10443 * build-id.c (build_id_to_debug_bfd_1): New function.
10444 (build_id_to_debug_bfd): Look for separate debug file in
10447 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
10449 * gdbarch.sh: Update the copyright year range that is placed into
10452 2019-02-22 Keith Seitz <keiths@redhat.com>
10455 * linespec.c (create_sals_line_offset): Search for the default
10456 symtab's filename instead of its fullname.
10458 2019-02-21 Alan Hayward <alan.hayward@arm.com>
10460 * NEWS: Update style defaults.
10462 2019-02-21 Alan Hayward <alan.hayward@arm.com>
10464 * main.c (captured_main_1): Disable styling in batch mode.
10466 2019-02-20 Tom Tromey <tom@tromey.com>
10468 * symtab.c (symtab_symbol_info): Fix typos.
10470 2019-02-20 Tom Tromey <tromey@adacore.com>
10472 * findcmd.c (_initialize_mem_search): Use upper case for
10473 metasyntactic variables.
10475 2019-02-20 Alan Hayward <alan.hayward@arm.com>
10477 * aarch64-tdep.c (aarch64_add_reggroups): New function.
10478 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
10480 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
10482 * top.h (source_file_name): Change to std::string.
10483 * top.c (source_file_name): Likewise.
10484 (command_line_input): Adjust.
10485 * cli/cli-script.c (script_from_file): Adjust.
10487 2019-02-19 Tom Tromey <tromey@adacore.com>
10489 * ravenscar-thread.c
10490 (ravenscar_thread_target::update_thread_list): Don't call
10491 ada_build_task_list.
10492 * ada-lang.h (ada_build_task_list): Don't declare.
10493 * ada-tasks.c (struct ada_tasks_inferior_data)
10494 <task_list_valid_p>: Now bool.
10495 (read_known_tasks, ada_task_list_changed)
10496 (ada_tasks_invalidate_inferior_data): Update.
10497 (read_known_tasks_array): Return bool.
10498 (read_known_tasks_list): Likewise.
10499 (read_known_tasks): Return void.
10500 (ada_build_task_list): Now static.
10502 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
10504 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
10505 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
10507 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10509 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
10510 variant for ada_tasks_pspace_data_handle and
10511 ada_tasks_inferior_data_handle.
10512 (ada_tasks_pspace_data_cleanup): New function.
10513 (ada_tasks_inferior_data_cleanup): New function.
10515 2019-02-17 Tom Tromey <tom@tromey.com>
10517 * macrotab.h (macro_source_fullname): Return a std::string.
10518 * macrotab.c (macro_include, check_for_redefinition)
10519 (macro_undef, macro_lookup_definition, foreach_macro)
10520 (foreach_macro_in_scope): Update.
10521 (macro_source_fullname): Return a std::string.
10522 * macrocmd.c (show_pp_source_pos): Update.
10524 2019-02-17 Tom Tromey <tom@tromey.com>
10526 * macrocmd.c (show_pp_source_pos): Style the file names.
10528 2019-02-17 Tom Tromey <tom@tromey.com>
10531 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
10533 2019-02-17 Tom Tromey <tom@tromey.com>
10535 * ada-lang.c (user_select_syms): Use filtered printing.
10536 * utils.c (wrap_style): New global.
10537 (desired_style): Remove.
10538 (emit_style_escape): Add stream parameter.
10539 (set_output_style, reset_terminal_style, prompt_for_continue):
10541 (flush_wrap_buffer): Only flush gdb_stdout.
10542 (wrap_here): Set wrap_style.
10543 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
10544 treat escape sequences as a character. Change when wrap buffer is
10546 (fputs_styled): Do not set the output style when the default is
10548 * ui-style.h (struct ui_file_style) <is_default>: New method.
10549 * source.c (print_source_lines_base): Emit escape sequences in one
10552 2019-02-17 Joel Brobecker <brobecker@adacore.com>
10554 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
10555 integers and enumeration types.
10557 2019-02-17 Joel Brobecker <brobecker@adacore.com>
10559 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
10560 instead of lookup_symbol_in_language
10561 (do_exact_match): New function.
10562 (ada_get_symbol_name_matcher): Return do_exact_match when
10563 doing a verbatim match.
10565 2019-02-15 Tom Tromey <tromey@adacore.com>
10567 * ravenscar-thread.c (ravenscar_thread_target::resume)
10568 (ravenscar_thread_target::wait): Special case wildcard requests.
10570 2019-02-15 Tom Tromey <tromey@adacore.com>
10572 * ravenscar-thread.c (base_ptid): Remove.
10573 (struct ravenscar_thread_target) <close>: New method.
10574 <m_base_ptid>: New member.
10575 <update_inferior_ptid, active_task, task_is_currently_active,
10576 runtime_initialized>: Declare methods.
10577 <ravenscar_thread_target>: Add constructor.
10578 (ravenscar_thread_target::task_is_currently_active)
10579 (ravenscar_thread_target::update_inferior_ptid)
10580 (ravenscar_runtime_initialized): Rename. Now methods.
10581 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
10582 (ravenscar_thread_target::update_thread_list): Update.
10583 (ravenscar_thread_target::active_task): Now method.
10584 (ravenscar_thread_target::store_registers)
10585 (ravenscar_thread_target::prepare_to_store)
10586 (ravenscar_thread_target::prepare_to_store)
10587 (ravenscar_thread_target::mourn_inferior): Update.
10588 (ravenscar_inferior_created): Use "new" to create target.
10589 (ravenscar_thread_target::get_ada_task_ptid): Update.
10590 (_initialize_ravenscar): Don't initialize base_ptid.
10591 (ravenscar_ops): Remove global.
10593 2019-02-15 Tom Tromey <tromey@adacore.com>
10595 * target.h (push_target): Declare new overload.
10596 * target.c (push_target): New overload, taking an rvalue reference.
10597 * remote.c (remote_target::open_1): Use push_target overload.
10598 * corelow.c (core_target_open): Use push_target overload.
10600 2019-02-15 Tom Tromey <tromey@adacore.com>
10602 * ravenscar-thread.c (is_ravenscar_task)
10603 (ravenscar_task_is_currently_active): Return bool.
10604 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
10605 (_initialize_ravenscar): Remove "(void)".
10606 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
10609 2019-02-15 Tom Tromey <tromey@adacore.com>
10611 * ravenscar-thread.c (ravenscar_runtime_initializer)
10612 (has_ravenscar_runtime, get_running_thread_id)
10613 (ravenscar_thread_target::resume): Fix indentation.
10615 2019-02-15 Tom Tromey <tromey@adacore.com>
10617 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
10618 from ravenscar_arch_ops.
10619 (sparc_ravenscar_ops::fetch_registers)
10620 (sparc_ravenscar_ops::store_registers): Now methods.
10621 (sparc_ravenscar_prepare_to_store): Remove.
10622 (sparc_ravenscar_ops): Redefine.
10623 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
10624 methods and destructor. Remove members.
10625 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
10626 (ravenscar_thread_target::store_registers)
10627 (ravenscar_thread_target::prepare_to_store): Update.
10628 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
10630 (struct ppc_ravenscar_powerpc_ops): Derive from
10631 ravenscar_arch_ops.
10632 (ppc_ravenscar_powerpc_ops::fetch_registers)
10633 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
10634 (ppc_ravenscar_powerpc_ops): Redefine.
10635 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
10636 (ppc_ravenscar_e500_ops::fetch_registers)
10637 (ppc_ravenscar_e500_ops::store_registers): Now methods.
10638 (ppc_ravenscar_e500_ops): Redefine.
10639 * aarch64-ravenscar-thread.c
10640 (aarch64_ravenscar_generic_prepare_to_store): Remove.
10641 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
10642 (aarch64_ravenscar_fetch_registers)
10643 (aarch64_ravenscar_store_registers): Now methods.
10644 (aarch64_ravenscar_ops): Redefine.
10646 2019-02-15 Tom Tromey <tromey@adacore.com>
10648 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
10649 (ravenscar_thread_target::stopped_by_hw_breakpoint)
10650 (ravenscar_thread_target::stopped_by_watchpoint)
10651 (ravenscar_thread_target::stopped_data_address)
10652 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
10654 2019-02-15 Tom Tromey <tromey@adacore.com>
10656 * ravenscar-thread.c: Fix some typos.
10658 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10659 Tom Tromey <tromey@adacore.com>
10661 * ada-lang.c (ada_exception_sal): Change addr_string to a
10663 (create_ada_exception_catchpoint): Update.
10665 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10666 Tom Tromey <tromey@adacore.com>
10668 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
10669 (bp_location_ops): Remove.
10670 (base_breakpoint_allocate_location): Update.
10671 (free_bp_location): Update.
10672 * ada-lang.c (class ada_catchpoint_location)
10673 <ada_catchpoint_location>: Remove ops parameter.
10674 (ada_catchpoint_location_dtor): Remove.
10675 (ada_catchpoint_location_ops): Remove.
10676 (allocate_location_exception): Update.
10677 * breakpoint.h (struct bp_location_ops): Remove.
10678 (class bp_location) <bp_location>: Remove bp_location_ops
10680 <~bp_location>: Add destructor.
10683 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10684 Pedro Alves <palves@redhat.com>
10686 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
10689 2019-02-14 David Michael <fedora.dm0@gmail.com>
10690 Samuel Thibault <samuel.thibault@gnu.org>
10691 Thomas Schwinge <thomas@codesourcery.com>
10693 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
10694 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
10696 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10698 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
10699 (check_empty): Use "const char *".
10701 * gnu-nat.c (gnu_nat_target::detach): Instead of
10702 'detach_inferior (pid)' call
10703 'detach_inferior (find_inferior_pid (pid))'.
10705 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
10706 'nat/fork-inferior.o'.
10707 * gnu-nat.c: #include "nat/fork-inferior.h".
10709 * gnu-nat.c (gnu_nat_target::detach): Instead of
10710 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
10711 * gnu-nat.h: #include "inf-child.h".
10712 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
10713 'i386_gnu_nat_target::fetch_registers'.
10714 (gnu_store_registers): Rename/move to
10715 'i386_gnu_nat_target::store_registers'.
10717 * config/i386/nm-i386gnu.h: Don't "#include" any files.
10718 * gnu-nat.h (mach_thread_info): New function.
10719 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
10721 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
10723 2019-02-14 Frederic Konrad <konrad@adacore.com>
10725 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
10727 2019-02-14 Joel Brobecker <brobecker@adacore.com>
10729 * windows-nat.c (windows_add_thread): Add new parameter
10730 "main_thread_p" with default value set to false. Update
10731 function documentation as well as all callers.
10732 (windows_delete_thread): Likewise.
10733 (fake_create_process): Update call to windows_add_thread.
10734 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
10735 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
10736 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
10737 call to windows_delete_thread.
10739 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
10741 * MAINTAINERS: Add Andrew Burgess as global maintainer.
10743 2019-02-12 John Baldwin <jhb@FreeBSD.org>
10745 * symfile.c (find_separate_debug_file): Use canonical path of
10746 sysroot with child_path instead of gdb_sysroot if it is valid.
10748 2019-02-12 John Baldwin <jhb@FreeBSD.org>
10750 * symfile.c (find_separate_debug_file): Use child_path to
10751 determine if an object file is under a sysroot.
10753 2019-02-12 John Baldwin <jhb@FreeBSD.org>
10755 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10756 unittests/child-path-selftests.c.
10757 * common/pathstuff.c (child_path): New function.
10758 * common/pathstuff.h (child_path): New prototype.
10759 * unittests/child-path-selftests.c: New file.
10761 2019-02-12 John Baldwin <jhb@FreeBSD.org>
10763 * symfile.c (find_separate_debug_file): Look for separate debug
10764 files in debug directories under the sysroot.
10766 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10768 * symtab.h (struct minimal_symbol data_p): New const method.
10769 (struct minimal_symbol text_p): Likewise.
10770 * symtab.c (output_source_filename): Use file name style
10771 to print file name.
10772 (print_symbol_info): Likewise.
10773 (print_msymbol_info): Use address style to print addresses.
10774 Use function name style to print executable text symbols.
10775 (expand_symtab_containing_pc): Use data_p.
10776 (find_pc_sect_compunit_symtab): Likewise.
10778 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10780 * breakpoint.c (describe_other_breakpoints): Use address style
10781 to print addresses.
10782 (say_where): Likewise.
10784 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10786 * ada-typeprint.c (print_func_type): Print function name
10787 style to print function name.
10788 * c-typeprint.c (c_print_type_1): Likewise.
10790 2019-02-11 Alan Hayward <alan.hayward@arm.com>
10792 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
10795 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10797 * c-exp.y (direct_abs_decl): Use emplace_back to record the
10800 2019-02-10 Joel Brobecker <brobecker@adacore.com>
10802 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
10803 TYPE_CODE_REF types.
10805 2019-02-08 Jim Wilson <jimw@sifive.com>
10807 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
10808 (riscv_linux_fregset): New.
10809 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
10811 2019-02-07 Tom Tromey <tom@tromey.com>
10813 * thread.c (thread_cancel_execution_command): Update.
10814 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
10816 (struct thread_fsm_ops): Remove.
10817 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
10818 (thread_fsm_should_stop, thread_fsm_return_value)
10819 (thread_fsm_set_finished, thread_fsm_finished_p)
10820 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
10822 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
10823 * infrun.c (clear_proceed_status_thread)
10824 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
10825 (print_stop_event): Update.
10826 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
10828 (step_command_fsm_ops): Remove.
10829 (new_step_command_fsm): Remove.
10831 (step_command_fsm::should_stop): Rename from
10832 step_command_fsm_should_stop.
10833 (step_command_fsm::clean_up): Rename from
10834 step_command_fsm_clean_up.
10835 (step_command_fsm::do_async_reply_reason): Rename from
10836 step_command_fsm_async_reply_reason.
10837 (struct until_next_fsm): Inherit from thread_fsm. Add
10839 (until_next_fsm_ops): Remove.
10840 (new_until_next_fsm): Remove.
10841 (until_next_fsm::should_stop): Rename from
10842 until_next_fsm_should_stop.
10843 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
10844 (until_next_fsm::do_async_reply_reason): Rename from
10845 until_next_fsm_async_reply_reason.
10846 (struct finish_command_fsm): Inherit from thread_fsm. Add
10847 constructor. Change type of breakpoint.
10848 (finish_command_fsm_ops): Remove.
10849 (new_finish_command_fsm): Remove.
10850 (finish_command_fsm::should_stop): Rename from
10851 finish_command_fsm_should_stop.
10852 (finish_command_fsm::clean_up): Rename from
10853 finish_command_fsm_clean_up.
10854 (finish_command_fsm::return_value): Rename from
10855 finish_command_fsm_return_value.
10856 (finish_command_fsm::do_async_reply_reason): Rename from
10857 finish_command_fsm_async_reply_reason.
10858 (finish_command): Update.
10859 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
10861 (call_thread_fsm_ops): Remove.
10862 (call_thread_fsm::call_thread_fsm): Rename from
10863 new_call_thread_fsm.
10864 (call_thread_fsm::should_stop): Rename from
10865 call_thread_fsm_should_stop.
10866 (call_thread_fsm::should_notify_stop): Rename from
10867 call_thread_fsm_should_notify_stop.
10868 (run_inferior_call, call_function_by_hand_dummy): Update.
10869 * cli/cli-interp.c (should_print_stop_to_console): Update.
10870 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
10871 Add constructor. Change type of location_breakpoint,
10873 (until_break_fsm_ops): Remove.
10874 (new_until_break_fsm): Remove.
10875 (until_break_fsm::should_stop): Rename from
10876 until_break_fsm_should_stop.
10877 (until_break_fsm::clean_up): Rename from
10878 until_break_fsm_clean_up.
10879 (until_break_fsm::do_async_reply_reason): Rename from
10880 until_break_fsm_async_reply_reason.
10881 (until_break_command): Update.
10882 * thread-fsm.c: Remove.
10883 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
10885 2019-02-07 Tom Tromey <tom@tromey.com>
10887 * yy-remap.h: Add include guard.
10888 * xtensa-tdep.h: Add include guard.
10889 * xcoffread.h: Rename include guard.
10890 * varobj-iter.h: Add include guard.
10891 * tui/tui.h: Rename include guard.
10892 * tui/tui-winsource.h: Rename include guard.
10893 * tui/tui-wingeneral.h: Rename include guard.
10894 * tui/tui-windata.h: Rename include guard.
10895 * tui/tui-win.h: Rename include guard.
10896 * tui/tui-stack.h: Rename include guard.
10897 * tui/tui-source.h: Rename include guard.
10898 * tui/tui-regs.h: Rename include guard.
10899 * tui/tui-out.h: Rename include guard.
10900 * tui/tui-layout.h: Rename include guard.
10901 * tui/tui-io.h: Rename include guard.
10902 * tui/tui-hooks.h: Rename include guard.
10903 * tui/tui-file.h: Rename include guard.
10904 * tui/tui-disasm.h: Rename include guard.
10905 * tui/tui-data.h: Rename include guard.
10906 * tui/tui-command.h: Rename include guard.
10907 * tic6x-tdep.h: Add include guard.
10908 * target/waitstatus.h: Rename include guard.
10909 * target/wait.h: Rename include guard.
10910 * target/target.h: Rename include guard.
10911 * target/resume.h: Rename include guard.
10912 * target-float.h: Rename include guard.
10913 * stabsread.h: Add include guard.
10914 * rs6000-tdep.h: Add include guard.
10915 * riscv-fbsd-tdep.h: Add include guard.
10916 * regformats/regdef.h: Rename include guard.
10917 * record.h: Rename include guard.
10918 * python/python.h: Rename include guard.
10919 * python/python-internal.h: Rename include guard.
10920 * python/py-stopevent.h: Rename include guard.
10921 * python/py-ref.h: Rename include guard.
10922 * python/py-record.h: Rename include guard.
10923 * python/py-record-full.h: Rename include guard.
10924 * python/py-record-btrace.h: Rename include guard.
10925 * python/py-instruction.h: Rename include guard.
10926 * python/py-events.h: Rename include guard.
10927 * python/py-event.h: Rename include guard.
10928 * procfs.h: Add include guard.
10929 * proc-utils.h: Add include guard.
10930 * p-lang.h: Add include guard.
10931 * or1k-tdep.h: Rename include guard.
10932 * observable.h: Rename include guard.
10933 * nto-tdep.h: Rename include guard.
10934 * nat/x86-linux.h: Rename include guard.
10935 * nat/x86-linux-dregs.h: Rename include guard.
10936 * nat/x86-gcc-cpuid.h: Add include guard.
10937 * nat/x86-dregs.h: Rename include guard.
10938 * nat/x86-cpuid.h: Rename include guard.
10939 * nat/ppc-linux.h: Rename include guard.
10940 * nat/mips-linux-watch.h: Rename include guard.
10941 * nat/linux-waitpid.h: Rename include guard.
10942 * nat/linux-ptrace.h: Rename include guard.
10943 * nat/linux-procfs.h: Rename include guard.
10944 * nat/linux-osdata.h: Rename include guard.
10945 * nat/linux-nat.h: Rename include guard.
10946 * nat/linux-namespaces.h: Rename include guard.
10947 * nat/linux-btrace.h: Rename include guard.
10948 * nat/glibc_thread_db.h: Rename include guard.
10949 * nat/gdb_thread_db.h: Rename include guard.
10950 * nat/gdb_ptrace.h: Rename include guard.
10951 * nat/fork-inferior.h: Rename include guard.
10952 * nat/amd64-linux-siginfo.h: Rename include guard.
10953 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
10954 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
10955 * nat/aarch64-linux.h: Rename include guard.
10956 * nat/aarch64-linux-hw-point.h: Rename include guard.
10957 * mn10300-tdep.h: Add include guard.
10958 * mips-linux-tdep.h: Add include guard.
10959 * mi/mi-parse.h: Rename include guard.
10960 * mi/mi-out.h: Rename include guard.
10961 * mi/mi-main.h: Rename include guard.
10962 * mi/mi-interp.h: Rename include guard.
10963 * mi/mi-getopt.h: Rename include guard.
10964 * mi/mi-console.h: Rename include guard.
10965 * mi/mi-common.h: Rename include guard.
10966 * mi/mi-cmds.h: Rename include guard.
10967 * mi/mi-cmd-break.h: Rename include guard.
10968 * m2-lang.h: Add include guard.
10969 * location.h: Rename include guard.
10970 * linux-record.h: Rename include guard.
10971 * linux-nat.h: Add include guard.
10972 * linux-fork.h: Add include guard.
10973 * i386-darwin-tdep.h: Rename include guard.
10974 * hppa-linux-offsets.h: Add include guard.
10975 * guile/guile.h: Rename include guard.
10976 * guile/guile-internal.h: Rename include guard.
10977 * gnu-nat.h: Rename include guard.
10978 * gdb-stabs.h: Rename include guard.
10979 * frv-tdep.h: Add include guard.
10980 * f-lang.h: Add include guard.
10981 * event-loop.h: Add include guard.
10982 * darwin-nat.h: Rename include guard.
10983 * cp-abi.h: Rename include guard.
10984 * config/sparc/nm-sol2.h: Rename include guard.
10985 * config/nm-nto.h: Rename include guard.
10986 * config/nm-linux.h: Add include guard.
10987 * config/i386/nm-i386gnu.h: Rename include guard.
10988 * config/djgpp/nl_types.h: Rename include guard.
10989 * config/djgpp/langinfo.h: Rename include guard.
10990 * compile/gcc-cp-plugin.h: Add include guard.
10991 * compile/gcc-c-plugin.h: Add include guard.
10992 * compile/compile.h: Rename include guard.
10993 * compile/compile-object-run.h: Rename include guard.
10994 * compile/compile-object-load.h: Rename include guard.
10995 * compile/compile-internal.h: Rename include guard.
10996 * compile/compile-cplus.h: Rename include guard.
10997 * compile/compile-c.h: Rename include guard.
10998 * common/xml-utils.h: Rename include guard.
10999 * common/x86-xstate.h: Rename include guard.
11000 * common/version.h: Rename include guard.
11001 * common/vec.h: Rename include guard.
11002 * common/tdesc.h: Rename include guard.
11003 * common/selftest.h: Rename include guard.
11004 * common/scoped_restore.h: Rename include guard.
11005 * common/scoped_mmap.h: Rename include guard.
11006 * common/scoped_fd.h: Rename include guard.
11007 * common/safe-iterator.h: Rename include guard.
11008 * common/run-time-clock.h: Rename include guard.
11009 * common/refcounted-object.h: Rename include guard.
11010 * common/queue.h: Rename include guard.
11011 * common/ptid.h: Rename include guard.
11012 * common/print-utils.h: Rename include guard.
11013 * common/preprocessor.h: Rename include guard.
11014 * common/pathstuff.h: Rename include guard.
11015 * common/observable.h: Rename include guard.
11016 * common/netstuff.h: Rename include guard.
11017 * common/job-control.h: Rename include guard.
11018 * common/host-defs.h: Rename include guard.
11019 * common/gdb_wait.h: Rename include guard.
11020 * common/gdb_vecs.h: Rename include guard.
11021 * common/gdb_unlinker.h: Rename include guard.
11022 * common/gdb_unique_ptr.h: Rename include guard.
11023 * common/gdb_tilde_expand.h: Rename include guard.
11024 * common/gdb_sys_time.h: Rename include guard.
11025 * common/gdb_string_view.h: Rename include guard.
11026 * common/gdb_splay_tree.h: Rename include guard.
11027 * common/gdb_setjmp.h: Rename include guard.
11028 * common/gdb_ref_ptr.h: Rename include guard.
11029 * common/gdb_optional.h: Rename include guard.
11030 * common/gdb_locale.h: Rename include guard.
11031 * common/gdb_assert.h: Rename include guard.
11032 * common/filtered-iterator.h: Rename include guard.
11033 * common/filestuff.h: Rename include guard.
11034 * common/fileio.h: Rename include guard.
11035 * common/environ.h: Rename include guard.
11036 * common/common-utils.h: Rename include guard.
11037 * common/common-types.h: Rename include guard.
11038 * common/common-regcache.h: Rename include guard.
11039 * common/common-inferior.h: Rename include guard.
11040 * common/common-gdbthread.h: Rename include guard.
11041 * common/common-exceptions.h: Rename include guard.
11042 * common/common-defs.h: Rename include guard.
11043 * common/common-debug.h: Rename include guard.
11044 * common/cleanups.h: Rename include guard.
11045 * common/buffer.h: Rename include guard.
11046 * common/btrace-common.h: Rename include guard.
11047 * common/break-common.h: Rename include guard.
11048 * cli/cli-utils.h: Rename include guard.
11049 * cli/cli-style.h: Rename include guard.
11050 * cli/cli-setshow.h: Rename include guard.
11051 * cli/cli-script.h: Rename include guard.
11052 * cli/cli-interp.h: Rename include guard.
11053 * cli/cli-decode.h: Rename include guard.
11054 * cli/cli-cmds.h: Rename include guard.
11055 * charset-list.h: Add include guard.
11056 * buildsym-legacy.h: Rename include guard.
11057 * bfin-tdep.h: Add include guard.
11058 * ax.h: Rename include guard.
11059 * arm-linux-tdep.h: Add include guard.
11060 * arm-fbsd-tdep.h: Add include guard.
11061 * arch/xtensa.h: Rename include guard.
11062 * arch/tic6x.h: Add include guard.
11063 * arch/i386.h: Add include guard.
11064 * arch/arm.h: Rename include guard.
11065 * arch/arm-linux.h: Rename include guard.
11066 * arch/arm-get-next-pcs.h: Rename include guard.
11067 * arch/amd64.h: Add include guard.
11068 * arch/aarch64-insn.h: Rename include guard.
11069 * arch-utils.h: Rename include guard.
11070 * annotate.h: Add include guard.
11071 * amd64-darwin-tdep.h: Rename include guard.
11072 * aarch64-linux-tdep.h: Add include guard.
11073 * aarch64-fbsd-tdep.h: Add include guard.
11074 * aarch32-linux-nat.h: Add include guard.
11076 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11078 * macrotab.c (macro_define_internal): New function that
11079 factorizes macro_define_object_internal and macro_define_function
11081 (macro_define_object_internal): Use macro_define_internal.
11082 (macro_define_function): Likewise.
11084 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11086 * macrocmd.c (extract_identifier): Return
11087 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
11090 2019-02-06 John Baldwin <jhb@FreeBSD.org>
11092 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
11094 2019-02-05 Tom Tromey <tom@tromey.com>
11096 * target.c (target_stack::unpush): Move assertion earlier.
11098 2019-01-30 Tom Tromey <tom@tromey.com>
11101 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
11102 (gdbpy_parse_and_eval): Likewise.
11103 * python/python-internal.h (gdbpy_allow_threads): New class.
11105 2019-01-28 John Baldwin <jhb@FreeBSD.org>
11107 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
11108 (aarch64_fbsd_fpregmap): Move earlier.
11109 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
11110 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
11111 instead of individual calls to trad_frame_set_reg_addr.
11112 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
11114 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
11115 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
11116 instead of individual calls to trad_frame_set_reg_addr.
11118 2019-01-28 Alan Hayward <alan.hayward@arm.com>
11120 * CONTRIBUTE: Replace contribution list with wiki link.
11122 2019-01-25 Tom Tromey <tom@tromey.com>
11124 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
11126 2019-01-25 Tom Tromey <tom@tromey.com>
11128 * xtensa-linux-nat.c: Fix common/ includes.
11129 * xml-support.h: Fix common/ includes.
11130 * xml-support.c: Fix common/ includes.
11131 * x86-linux-nat.c: Fix common/ includes.
11132 * windows-nat.c: Fix common/ includes.
11133 * varobj.h: Fix common/ includes.
11134 * varobj.c: Fix common/ includes.
11135 * value.c: Fix common/ includes.
11136 * valops.c: Fix common/ includes.
11137 * utils.c: Fix common/ includes.
11138 * unittests/xml-utils-selftests.c: Fix common/ includes.
11139 * unittests/utils-selftests.c: Fix common/ includes.
11140 * unittests/unpack-selftests.c: Fix common/ includes.
11141 * unittests/tracepoint-selftests.c: Fix common/ includes.
11142 * unittests/style-selftests.c: Fix common/ includes.
11143 * unittests/string_view-selftests.c: Fix common/ includes.
11144 * unittests/scoped_restore-selftests.c: Fix common/ includes.
11145 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
11146 * unittests/scoped_fd-selftests.c: Fix common/ includes.
11147 * unittests/rsp-low-selftests.c: Fix common/ includes.
11148 * unittests/parse-connection-spec-selftests.c: Fix common/
11150 * unittests/optional-selftests.c: Fix common/ includes.
11151 * unittests/offset-type-selftests.c: Fix common/ includes.
11152 * unittests/observable-selftests.c: Fix common/ includes.
11153 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
11154 * unittests/memrange-selftests.c: Fix common/ includes.
11155 * unittests/memory-map-selftests.c: Fix common/ includes.
11156 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
11157 * unittests/function-view-selftests.c: Fix common/ includes.
11158 * unittests/environ-selftests.c: Fix common/ includes.
11159 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
11160 * unittests/common-utils-selftests.c: Fix common/ includes.
11161 * unittests/cli-utils-selftests.c: Fix common/ includes.
11162 * unittests/array-view-selftests.c: Fix common/ includes.
11163 * ui-file.c: Fix common/ includes.
11164 * tui/tui-io.c: Fix common/ includes.
11165 * tracepoint.h: Fix common/ includes.
11166 * tracepoint.c: Fix common/ includes.
11167 * tracefile-tfile.c: Fix common/ includes.
11168 * top.h: Fix common/ includes.
11169 * top.c: Fix common/ includes.
11170 * thread.c: Fix common/ includes.
11171 * target/waitstatus.h: Fix common/ includes.
11172 * target/waitstatus.c: Fix common/ includes.
11173 * target.h: Fix common/ includes.
11174 * target.c: Fix common/ includes.
11175 * target-memory.c: Fix common/ includes.
11176 * target-descriptions.c: Fix common/ includes.
11177 * symtab.h: Fix common/ includes.
11178 * symfile.c: Fix common/ includes.
11179 * stap-probe.c: Fix common/ includes.
11180 * spu-linux-nat.c: Fix common/ includes.
11181 * sparc-nat.c: Fix common/ includes.
11182 * source.c: Fix common/ includes.
11183 * solib.c: Fix common/ includes.
11184 * solib-target.c: Fix common/ includes.
11185 * ser-unix.c: Fix common/ includes.
11186 * ser-tcp.c: Fix common/ includes.
11187 * ser-pipe.c: Fix common/ includes.
11188 * ser-base.c: Fix common/ includes.
11189 * selftest-arch.c: Fix common/ includes.
11190 * s12z-tdep.c: Fix common/ includes.
11191 * rust-exp.y: Fix common/ includes.
11192 * rs6000-aix-tdep.c: Fix common/ includes.
11193 * riscv-tdep.c: Fix common/ includes.
11194 * remote.c: Fix common/ includes.
11195 * remote-notif.h: Fix common/ includes.
11196 * remote-fileio.h: Fix common/ includes.
11197 * remote-fileio.c: Fix common/ includes.
11198 * regcache.h: Fix common/ includes.
11199 * regcache.c: Fix common/ includes.
11200 * record-btrace.c: Fix common/ includes.
11201 * python/python.c: Fix common/ includes.
11202 * python/py-type.c: Fix common/ includes.
11203 * python/py-inferior.c: Fix common/ includes.
11204 * progspace.h: Fix common/ includes.
11205 * producer.c: Fix common/ includes.
11206 * procfs.c: Fix common/ includes.
11207 * proc-api.c: Fix common/ includes.
11208 * printcmd.c: Fix common/ includes.
11209 * ppc-linux-nat.c: Fix common/ includes.
11210 * parser-defs.h: Fix common/ includes.
11211 * osdata.c: Fix common/ includes.
11212 * obsd-nat.c: Fix common/ includes.
11213 * nat/x86-linux.c: Fix common/ includes.
11214 * nat/x86-linux-dregs.c: Fix common/ includes.
11215 * nat/x86-dregs.h: Fix common/ includes.
11216 * nat/x86-dregs.c: Fix common/ includes.
11217 * nat/ppc-linux.c: Fix common/ includes.
11218 * nat/mips-linux-watch.h: Fix common/ includes.
11219 * nat/mips-linux-watch.c: Fix common/ includes.
11220 * nat/linux-waitpid.c: Fix common/ includes.
11221 * nat/linux-ptrace.h: Fix common/ includes.
11222 * nat/linux-ptrace.c: Fix common/ includes.
11223 * nat/linux-procfs.c: Fix common/ includes.
11224 * nat/linux-personality.c: Fix common/ includes.
11225 * nat/linux-osdata.c: Fix common/ includes.
11226 * nat/linux-namespaces.c: Fix common/ includes.
11227 * nat/linux-btrace.h: Fix common/ includes.
11228 * nat/linux-btrace.c: Fix common/ includes.
11229 * nat/fork-inferior.c: Fix common/ includes.
11230 * nat/amd64-linux-siginfo.c: Fix common/ includes.
11231 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
11232 * nat/aarch64-linux.c: Fix common/ includes.
11233 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
11234 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
11235 * namespace.h: Fix common/ includes.
11236 * mips-linux-tdep.c: Fix common/ includes.
11237 * minsyms.c: Fix common/ includes.
11238 * mi/mi-parse.h: Fix common/ includes.
11239 * mi/mi-main.c: Fix common/ includes.
11240 * mi/mi-cmd-env.c: Fix common/ includes.
11241 * memrange.h: Fix common/ includes.
11242 * memattr.c: Fix common/ includes.
11243 * maint.h: Fix common/ includes.
11244 * maint.c: Fix common/ includes.
11245 * main.c: Fix common/ includes.
11246 * machoread.c: Fix common/ includes.
11247 * location.c: Fix common/ includes.
11248 * linux-thread-db.c: Fix common/ includes.
11249 * linux-nat.c: Fix common/ includes.
11250 * linux-fork.c: Fix common/ includes.
11251 * inline-frame.c: Fix common/ includes.
11252 * infrun.c: Fix common/ includes.
11253 * inflow.c: Fix common/ includes.
11254 * inferior.h: Fix common/ includes.
11255 * inferior.c: Fix common/ includes.
11256 * infcmd.c: Fix common/ includes.
11257 * inf-ptrace.c: Fix common/ includes.
11258 * inf-child.c: Fix common/ includes.
11259 * ia64-linux-nat.c: Fix common/ includes.
11260 * i387-tdep.c: Fix common/ includes.
11261 * i386-tdep.c: Fix common/ includes.
11262 * i386-linux-tdep.c: Fix common/ includes.
11263 * i386-linux-nat.c: Fix common/ includes.
11264 * i386-go32-tdep.c: Fix common/ includes.
11265 * i386-fbsd-tdep.c: Fix common/ includes.
11266 * i386-fbsd-nat.c: Fix common/ includes.
11267 * guile/scm-type.c: Fix common/ includes.
11268 * guile/guile.c: Fix common/ includes.
11269 * go32-nat.c: Fix common/ includes.
11270 * gnu-nat.c: Fix common/ includes.
11271 * gdbthread.h: Fix common/ includes.
11272 * gdbarch-selftests.c: Fix common/ includes.
11273 * gdb_usleep.c: Fix common/ includes.
11274 * gdb_select.h: Fix common/ includes.
11275 * gdb_bfd.c: Fix common/ includes.
11276 * gcore.c: Fix common/ includes.
11277 * fork-child.c: Fix common/ includes.
11278 * findvar.c: Fix common/ includes.
11279 * fbsd-nat.c: Fix common/ includes.
11280 * event-top.c: Fix common/ includes.
11281 * event-loop.c: Fix common/ includes.
11282 * dwarf2read.c: Fix common/ includes.
11283 * dwarf2loc.c: Fix common/ includes.
11284 * dwarf2-frame.c: Fix common/ includes.
11285 * dwarf-index-cache.c: Fix common/ includes.
11286 * dtrace-probe.c: Fix common/ includes.
11287 * disasm-selftests.c: Fix common/ includes.
11288 * defs.h: Fix common/ includes.
11289 * csky-tdep.c: Fix common/ includes.
11290 * cp-valprint.c: Fix common/ includes.
11291 * cp-support.h: Fix common/ includes.
11292 * cp-support.c: Fix common/ includes.
11293 * corelow.c: Fix common/ includes.
11294 * completer.h: Fix common/ includes.
11295 * completer.c: Fix common/ includes.
11296 * compile/compile.c: Fix common/ includes.
11297 * compile/compile-loc2c.c: Fix common/ includes.
11298 * compile/compile-cplus-types.c: Fix common/ includes.
11299 * compile/compile-cplus-symbols.c: Fix common/ includes.
11300 * command.h: Fix common/ includes.
11301 * cli/cli-dump.c: Fix common/ includes.
11302 * cli/cli-cmds.c: Fix common/ includes.
11303 * charset.c: Fix common/ includes.
11304 * build-id.c: Fix common/ includes.
11305 * btrace.h: Fix common/ includes.
11306 * btrace.c: Fix common/ includes.
11307 * breakpoint.h: Fix common/ includes.
11308 * breakpoint.c: Fix common/ includes.
11310 (enum agent_op): Fix common/ includes.
11311 * ax-general.c (struct aop_map): Fix common/ includes.
11312 * ax-gdb.c: Fix common/ includes.
11313 * auxv.c: Fix common/ includes.
11314 * auto-load.c: Fix common/ includes.
11315 * arm-tdep.c: Fix common/ includes.
11316 * arch/riscv.c: Fix common/ includes.
11317 * arch/ppc-linux-common.c: Fix common/ includes.
11318 * arch/i386.c: Fix common/ includes.
11319 * arch/arm.c: Fix common/ includes.
11320 * arch/arm-linux.c: Fix common/ includes.
11321 * arch/arm-get-next-pcs.c: Fix common/ includes.
11322 * arch/amd64.c: Fix common/ includes.
11323 * arch/aarch64.c: Fix common/ includes.
11324 * arch/aarch64-insn.c: Fix common/ includes.
11325 * arch-utils.c: Fix common/ includes.
11326 * amd64-windows-tdep.c: Fix common/ includes.
11327 * amd64-tdep.c: Fix common/ includes.
11328 * amd64-sol2-tdep.c: Fix common/ includes.
11329 * amd64-obsd-tdep.c: Fix common/ includes.
11330 * amd64-nbsd-tdep.c: Fix common/ includes.
11331 * amd64-linux-tdep.c: Fix common/ includes.
11332 * amd64-linux-nat.c: Fix common/ includes.
11333 * amd64-fbsd-tdep.c: Fix common/ includes.
11334 * amd64-fbsd-nat.c: Fix common/ includes.
11335 * amd64-dicos-tdep.c: Fix common/ includes.
11336 * amd64-darwin-tdep.c: Fix common/ includes.
11337 * agent.c: Fix common/ includes.
11338 * ada-lang.h: Fix common/ includes.
11339 * ada-lang.c: Fix common/ includes.
11340 * aarch64-tdep.c: Fix common/ includes.
11342 2019-01-25 Tom Tromey <tom@tromey.com>
11344 * common/create-version.sh: Use common/version.h.
11346 2019-01-24 Pedro Alves <palves@redhat.com>
11348 * infrun.c (signal_stop, signal_print, signal_program)
11349 (signal_catch, signal_pass): Now arrays instead of pointers.
11350 (update_signals_program_target, do_target_resume)
11351 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
11352 * linux-nat.c (linux_nat_target::pass_signals)
11353 (linux_nat_target::create_inferior, linux_nat_target::attach):
11355 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
11356 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
11357 * procfs.c (procfs_target::pass_signals): Adjust.
11358 * record-full.c (record_full_target::resume): Adjust.
11359 * remote.c (remote_target::pass_signals)
11360 (remote_target::program_signals): Adjust.
11361 * target-debug.h (target_debug_print_signals): Now takes a
11362 gdb::array_view as parameter. Adjust.
11363 * target.h (target_ops) <pass_signals, program_signals>: Replace
11364 pointer and length parameters with gdb::array_view.
11365 (target_pass_signals, target_program_signals): Likewise.
11366 * target-delegates.c: Regenerate.
11368 2019-01-24 Pedro Alves <palves@redhat.com>
11370 * common/forward-scope-exit.h
11371 (forward_scope_exit::forward_scope_exit): Pass arguments to
11372 m_bind_function directly, instead of creating a std::bind and
11375 2019-01-24 Alan Hayward <alan.hayward@arm.com>
11377 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
11378 for static members.
11379 (pass_in_v_vfp_candidate): Likewise.
11381 2019-01-23 Tom Tromey <tom@tromey.com>
11382 Pedro Alves <palves@redhat.com>
11384 * regcache.c (class regcache_invalidator): Remove.
11385 (regcache::raw_write): Use make_scope_exit.
11387 2019-01-23 Tom Tromey <tom@tromey.com>
11389 * ui-out.h (class ui_out_emit_type): Update comment.
11391 2019-01-23 Tom Tromey <tom@tromey.com>
11393 * infrun.c (fetch_inferior_event): Update comment.
11395 2019-01-23 Tom Tromey <tom@tromey.com>
11396 Pedro Alves <palves@redhat.com>
11398 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
11400 (fetch_inferior_event): Use SCOPE_EXIT.
11403 2019-01-23 Tom Tromey <tom@tromey.com>
11404 Pedro Alves <palves@redhat.com>
11406 * infrun.c (disable_thread_events): Delete.
11407 (stop_all_threads): Use SCOPE_EXIT.
11409 2019-01-23 Tom Tromey <tom@tromey.com>
11410 Pedro Alves <palves@redhat.com>
11412 * symfile.c: Include forward-scope-exit.h.
11413 (clear_symtab_users_cleanup): Replace forward declaration with
11414 a FORWARD_SCOPE_EXIT.
11415 (syms_from_objfile_1): Use the forward_scope_exit and
11416 gdb::optional instead of cleanup_function.
11417 (reread_symbols): Use the forward_scope_exit instead of
11419 (clear_symtab_users_cleanup): Remove function.
11421 2019-01-23 Tom Tromey <tom@tromey.com>
11422 Pedro Alves <palves@redhat.com>
11424 * linux-nat.c: Include scope-exit.h.
11425 (cleanup_target_stop): Remove.
11426 (linux_nat_target::static_tracepoint_markers_by_strid): Use
11429 2019-01-23 Tom Tromey <tom@tromey.com>
11430 Pedro Alves <palves@redhat.com>
11432 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
11433 (call_function_by_hand_dummy): Use SCOPE_EXIT.
11435 2019-01-23 Tom Tromey <tom@tromey.com>
11436 Andrew Burgess <andrew.burgess@embecosm.com>
11437 Pedro Alves <palves@redhat.com>
11439 * infrun.c (fetch_inferior_event): Use scope_exit.
11440 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
11441 * top.c (execute_command): Use scope_exit.
11442 * breakpoint.c (bpstat_do_actions): Use scope_exit.
11443 * utils.c (do_bpstat_clear_actions_cleanup)
11444 (make_bpstat_clear_actions_cleanup): Remove.
11446 2019-01-23 Tom Tromey <tom@tromey.com>
11447 Pedro Alves <palves@redhat.com>
11449 * infrun.c: Include "common/scope-exit.h"
11450 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
11451 (wait_for_inferior): Use SCOPE_EXIT.
11452 (fetch_inferior_event): Use scope_exit.
11454 2019-01-23 Tom Tromey <tom@tromey.com>
11455 Pedro Alves <palves@redhat.com>
11457 * breakpoint.c (create_breakpoint): Remove cleanup.
11459 2019-01-23 Tom Tromey <tom@tromey.com>
11460 Andrew Burgess <andrew.burgess@embecosm.com>
11461 Pedro Alves <palves@redhat.com>
11463 2019-01-23 Pedro Alves <palves@redhat.com>
11465 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
11467 2019-01-23 Pedro Alves <palves@redhat.com>
11468 Andrew Burgess <andrew.burgess@embecosm.com>
11470 * gdbthread.h: Include "common/forward-scope-exit.h".
11471 (scoped_finish_thread_state): Redefine custom class in terms of
11472 forward_scope_exit.
11474 2019-01-23 Pedro Alves <palves@redhat.com>
11475 Andrew Burgess <andrew.burgess@embecosm.com>
11477 * common/forward-scope-exit.h: New file.
11479 2019-01-23 Pedro Alves <palves@redhat.com>
11480 Andrew Burgess <andrew.burgess@embecosm.com>
11481 Tom Tromey <tom@tromey.com>
11483 * common/scope-exit.h: New file.
11485 2019-01-23 Pedro Alves <palves@redhat.com>
11487 * common/preprocessor.h (ESC): Rename to ...
11488 (ESC_PARENS): ... this.
11489 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
11490 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
11492 2019-01-23 Tom Tromey <tom@tromey.com>
11494 * language.h (class scoped_switch_to_sym_language_if_auto):
11495 Initialize m_lang in both cases.
11497 2019-01-23 Alan Hayward <alan.hayward@arm.com>
11499 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
11502 2019-01-22 Tom Tromey <tom@tromey.com>
11504 * corelow.c: Do not include sys/file.h.
11506 2019-01-22 Tom Tromey <tom@tromey.com>
11508 * tui/tui-wingeneral.h: Include gdb_curses.h.
11510 2019-01-22 Tom Tromey <tom@tromey.com>
11512 * source-cache.h (class source_cache) <get_source_lines,
11513 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
11515 2019-01-22 Tom Tromey <tom@tromey.com>
11517 * remote-fileio.h (struct remote_target): Declare.
11519 2019-01-22 Tom Tromey <tom@tromey.com>
11521 * python/py-arch.c: Do not include py-ref.h.
11522 * python/py-bpevent.c: Do not include py-ref.h.
11523 * python/py-cmd.c: Do not include py-ref.h.
11524 * python/py-continueevent.c: Do not include py-ref.h.
11525 * python/py-event.h: Do not include py-ref.h.
11526 * python/py-evtregistry.c: Do not include py-ref.h.
11527 * python/py-finishbreakpoint.c: Do not include py-ref.h.
11528 * python/py-frame.c: Do not include py-ref.h.
11529 * python/py-framefilter.c: Do not include py-ref.h.
11530 * python/py-function.c: Do not include py-ref.h.
11531 * python/py-infevents.c: Do not include py-ref.h.
11532 * python/py-linetable.c: Do not include py-ref.h.
11533 * python/py-objfile.c: Do not include py-ref.h.
11534 * python/py-param.c: Do not include py-ref.h.
11535 * python/py-prettyprint.c: Do not include py-ref.h.
11536 * python/py-progspace.c: Do not include py-ref.h.
11537 * python/py-symbol.c: Do not include py-ref.h.
11538 * python/py-symtab.c: Do not include py-ref.h.
11539 * python/py-type.c: Do not include py-ref.h.
11540 * python/py-unwind.c: Do not include py-ref.h.
11541 * python/py-utils.c: Do not include py-ref.h.
11542 * python/py-value.c: Do not include py-ref.h.
11543 * python/py-varobj.c: Do not include py-ref.h.
11544 * python/py-xmethods.c: Do not include py-ref.h.
11545 * python/python.c: Do not include py-ref.h.
11546 * varobj.c: Do not include py-ref.h.
11548 2019-01-22 Tom Tromey <tom@tromey.com>
11550 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
11551 keyword for bcache.
11553 2019-01-22 Tom Tromey <tom@tromey.com>
11555 * compile/compile-cplus-types.c: Remove a comment by #include.
11557 2019-01-22 Tom Tromey <tom@tromey.com>
11559 * compile/gcc-c-plugin.h: Include compile-internal.h.
11561 2019-01-22 Tom Tromey <tom@tromey.com>
11563 * stabsread.c (EXTERN): Do not define.
11564 (symnum, next_symbol_text_func, processing_gcc_compilation)
11565 (within_function, global_sym_chain, global_stabs)
11566 (previous_stab_code, this_object_header_files)
11567 (n_this_object_header_files)
11568 (n_allocated_this_object_header_files): Define.
11569 * stabsread.h (EXTERN): Never define. Use "extern".
11571 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11573 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
11576 2019-01-21 Tom Tromey <tom@tromey.com>
11578 * ui-out.c: Fix includes.
11579 * tui/tui-source.c: Fix includes.
11580 * target.c: Fix includes.
11581 * remote.c: Fix includes.
11582 * regcache.c: Fix includes.
11583 * python/py-block.c: Fix includes.
11584 * printcmd.c: Fix includes.
11585 * or1k-tdep.c: Fix includes.
11586 * mi/mi-main.c: Fix includes.
11587 * m32r-tdep.c: Fix includes.
11588 * csky-tdep.c: Fix includes.
11589 * compile/compile-cplus-types.c: Fix includes.
11590 * cli/cli-interp.c: Fix includes.
11592 2019-01-21 Alan Hayward <alan.hayward@arm.com>
11594 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
11597 2019-01-16 Tom Tromey <tom@tromey.com>
11599 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
11601 (struct objfile) <msymbols_range>: Move from top level.
11602 <msymbols>: New method.
11603 (class objfile_msymbols): Remove.
11604 * symtab.c (default_collect_symbol_completion_matches_break_on):
11606 * symmisc.c (dump_msymbols): Update.
11607 * stabsread.c (scan_file_globals): Update.
11608 * objc-lang.c (info_selectors_command, info_classes_command)
11609 (find_methods): Update.
11610 * minsyms.c (find_solib_trampoline_target): Update.
11611 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
11612 * coffread.c (coff_symfile_read): Update.
11613 * ada-lang.c (ada_lookup_simple_minsym)
11614 (ada_collect_symbol_completion_matches): Update.
11616 2019-01-16 Tom Tromey <tom@tromey.com>
11618 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
11619 type. Remove no-argument constructor.
11620 <iterator::operator++>: Simplify.
11622 <end>: Use minimal_symbol_count.
11624 2019-01-16 Tom Tromey <tom@tromey.com>
11626 * objfiles.h (struct objfile) <psymtabs>: New method.
11627 (class objfile_psymtabs): Remove.
11628 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
11630 <range>: New method.
11631 (require_partial_symbols): Change return type.
11632 * psymtab.c (require_partial_symbols)
11633 (psym_expand_symtabs_matching): Update.
11634 * mdebugread.c (parse_partial_symbols): Update.
11635 * dbxread.c (dbx_end_psymtab): Update.
11637 2019-01-15 Tom Tromey <tom@tromey.com>
11639 * symtab.c (lookup_objfile_from_block)
11640 (lookup_symbol_in_objfile_symtabs)
11641 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
11642 (find_line_symtab, info_sources_command)
11643 (default_collect_symbol_completion_matches_break_on)
11644 (make_source_files_completion_list): Update.
11645 * symmisc.c (print_objfile_statistics, dump_objfile)
11646 (maintenance_print_symbols, maintenance_info_symtabs)
11647 (maintenance_check_symtabs, maintenance_info_line_tables):
11649 * source.c (select_source_symtab)
11650 (forget_cached_source_info_for_objfile): Update.
11651 * objfiles.h (class objfile_compunits): Remove.
11652 (struct objfile) <compunits_range>: New typedef.
11653 (compunits): New method.
11654 * objfiles.c (objfile_relocate1): Update.
11655 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11656 * maint.c (count_symtabs_and_blocks): Update.
11657 * linespec.c (iterate_over_all_matching_symtabs): Update.
11658 * cp-support.c (add_symbol_overload_list_qualified): Update.
11659 * coffread.c (coff_symtab_read): Update.
11660 * ada-lang.c (add_nonlocal_symbols)
11661 (ada_collect_symbol_completion_matches)
11662 (ada_add_global_exceptions): Update.
11664 2019-01-15 Tom Tromey <tom@tromey.com>
11666 * progspace.h (program_space) <objfiles_safe_range>: New
11668 <objfiles_safe>: New method.
11669 * objfiles.h (class all_objfiles_safe): Remove.
11670 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
11671 * jit.c (jit_inferior_exit_hook): Update.
11673 2019-01-17 Tom Tromey <tom@tromey.com>
11675 * progspace.h (program_space) <objfiles_range>: New typedef.
11676 <objfiles>: New method.
11677 <objfiles_head>: Rename from objfiles.
11678 (object_files): Update.
11679 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
11680 * guile/scm-pretty-print.c
11681 (ppscm_find_pretty_printer_from_objfiles): Update.
11682 * guile/scm-objfile.c (gdbscm_objfiles): Update.
11683 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
11685 * python/py-progspace.c (pspy_get_objfiles): Update.
11686 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
11688 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
11689 (objfpy_lookup_objfile_by_build_id): Update.
11690 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11691 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
11693 * symtab.c (iterate_over_symtabs, matching_obj_sections)
11694 (expand_symtab_containing_pc, lookup_objfile_from_block)
11695 (lookup_static_symbol, basic_lookup_transparent_type)
11696 (find_pc_sect_compunit_symtab, find_symbol_at_address)
11697 (find_line_symtab, info_sources_command)
11698 (default_collect_symbol_completion_matches_break_on)
11699 (make_source_files_completion_list, find_main_name): Update.
11700 * symmisc.c (print_symbol_bcache_statistics)
11701 (print_objfile_statistics, maintenance_print_symbols)
11702 (maintenance_print_msymbols, maintenance_print_objfiles)
11703 (maintenance_info_symtabs, maintenance_check_symtabs)
11704 (maintenance_expand_symtabs, maintenance_info_line_tables):
11706 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
11707 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
11708 (map_overlay_command, unmap_overlay_command)
11709 (simple_overlay_update, expand_symtabs_matching)
11710 (map_symbol_filenames): Update.
11711 * symfile-debug.c (set_debug_symfile): Update.
11712 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
11714 * source.c (select_source_symtab, forget_cached_source_info):
11716 * solib.c (solib_read_symbols): Update.
11717 * solib-spu.c (append_ocl_sos): Update.
11718 * psymtab.c (maintenance_print_psymbols)
11719 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
11720 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
11721 * printcmd.c (info_symbol_command): Update.
11722 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
11724 * objfiles.h (class all_objfiles): Remove.
11725 * objfiles.c (have_partial_symbols, have_full_symbols)
11726 (have_minimal_symbols, qsort_cmp, update_section_map)
11727 (shared_objfile_contains_address_p)
11728 (default_iterate_over_objfiles_in_search_order): Update.
11729 * objc-lang.c (info_selectors_command, info_classes_command)
11730 (find_methods): Update.
11731 * minsyms.c (find_solib_trampoline_target): Update.
11732 * maint.c (maintenance_info_sections)
11733 (maintenance_translate_address, count_symtabs_and_blocks):
11735 * main.c (captured_main_1): Update.
11736 * linux-thread-db.c (try_thread_db_load_from_pdir)
11737 (has_libpthread): Update.
11738 * linespec.c (iterate_over_all_matching_symtabs)
11739 (search_minsyms_for_name): Update.
11740 * jit.c (jit_find_objf_with_entry_addr): Update.
11741 * hppa-tdep.c (find_unwind_entry)
11742 (hppa_lookup_stub_minimal_symbol): Update.
11743 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
11745 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
11746 (elf_gnu_ifunc_resolve_by_got): Update.
11747 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
11748 * dwarf-index-write.c (save_gdb_index_command): Update.
11749 * cp-support.c (add_symbol_overload_list_qualified): Update.
11750 * breakpoint.c (create_overlay_event_breakpoint)
11751 (create_longjmp_master_breakpoint)
11752 (create_std_terminate_master_breakpoint)
11753 (create_exception_master_breakpoint): Update.
11754 * blockframe.c (find_pc_partial_function): Update.
11755 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
11756 (ada_collect_symbol_completion_matches)
11757 (ada_add_global_exceptions): Update.
11759 2019-01-17 Tom Tromey <tom@tromey.com>
11761 * solib-target.c (lm_info_target_p): Remove typedef. Don't
11763 (solib_target_parse_libraries): Change return type.
11764 (library_list_start_segment, library_list_start_section)
11765 (library_list_end_library, library_list_start_library); Update.
11766 (solib_target_free_library_list): Remove.
11767 (solib_target_parse_libraries): Remove cleanup. Change return
11769 (solib_target_current_sos): Update.
11771 2019-01-17 Tom Tromey <tromey@bapiya>
11773 * valprint.c: Replace "the the" with "the".
11774 * symtab.c: Replace "the the" with "the".
11775 * solib.c: Replace "the the" with "the".
11776 * solib-dsbt.c: Replace "the the" with "the".
11777 * linespec.c: Replace "the the" with "the".
11778 * dwarf2loc.h: Replace "the the" with "the".
11779 * amd64-windows-tdep.c: Replace "the the" with "the".
11780 * aarch64-tdep.c: Replace "the the" with "the".
11782 2019-01-16 Keith Seitz <keiths@redhat.com>
11785 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
11786 <builder>: Rename to ..
11787 <m_builder>: ... this and make private.
11788 (dwarf2_cu::get_builder): New method. Change all users of
11789 `builder' to use this method.
11790 (dwarf2_start_symtab): Move to ...
11791 (dwarf2_cu::start_symtab): ... here. Update all callers
11792 (setup_type_unit_groups): Move to ...
11793 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
11795 (dwarf2_cu::reset_builder): New method.
11796 (process_full_compunit, process_full_type_unit): Use
11797 dwarf2_cu::reset_builder.
11798 (follow_die_offset): Record the ancestor CU if it is different
11799 from the followed DIE's CU.
11800 (follow_die_sig_1): Likewise.
11802 2019-01-15 Tom Tromey <tom@tromey.com>
11804 * remote.c (class remote_state) <buf>: Now a char_vector.
11805 <buf_size>: Remove.
11806 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
11808 (remote_target::getpkt_or_notif_sane_1)
11809 (remote_target::getpkt_sane)
11810 (remote_target::getpkt_or_notif_sane): Likewise.
11811 (class remote_target) <putpkt>: New overload.
11812 (remote_target::read_frame): Change type of "buf_p". Remove
11813 sizeof_p parameter.
11814 (packet_ok): New overload.
11815 (packet_check_result): New overload.
11818 2019-01-14 Tom Tromey <tom@tromey.com>
11820 * remote-notif.c (handle_notification, remote_notif_ack)
11821 (remote_notif_parse): Make "buf" const.
11822 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
11824 (remote_notif_parse, remote_notif_ack, handle_notification):
11826 * remote.c (remote_notif_stop_parse): Make "buf" const.
11827 (remote_target::remote_parse_stop_reply): Make "buf" const.
11828 (remote_notif_stop_ack): Make "buf" const.
11830 2019-01-14 Tom Tromey <tom@tromey.com>
11832 * remote.c (remote_console_output): Make parameter const.
11834 2019-01-14 Tom Tromey <tom@tromey.com>
11836 * target-debug.h (target_debug_print_signals): Constify.
11837 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
11838 * procfs.c (procfs_target::pass_signals): Update.
11839 * linux-nat.c (linux_nat_target::pass_signals): Update.
11840 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
11841 * target-delegates.c: Rebuild.
11842 * remote.c (remote_target::program_signals): Update.
11843 (remote_target::pass_signals): Update.
11844 * target.c (target_pass_signals): Constify argument.
11845 (target_program_signals): Likewise.
11846 * target.h (struct target_ops) <pass_signals, program_signals>:
11848 (target_pass_signals, target_program_signals): Constify argument.
11850 2019-01-14 Tom Tromey <tom@tromey.com>
11853 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
11855 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11857 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
11859 * rs6000-tdep.c: Include reggroups.h.
11860 (IS_V_ALIAS_PSEUDOREG): Define.
11861 (rs6000_register_name): Return names for the "vX" aliases.
11862 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
11863 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
11864 aliases. Call default_register_reggroup_p for all other
11866 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
11868 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
11869 Handle "vX" aliases.
11870 (v_alias_pseudo_register_collect): New function.
11871 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
11872 (rs6000_gdbarch_init): Initialize "vX" aliases as
11873 pseudo-registers. Restore registration of
11874 rs6000_pseudo_register_reggroup_p with
11875 set_tdesc_pseudo_register_reggroup_p.
11877 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
11879 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
11880 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
11881 set_gdbarch_num_pseudo_regs.
11883 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11885 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
11886 Remove arg prefixname, add do_set and do_show.
11887 Add member functions set_list and show_list.
11888 * cli/cli-style.c (class cli_style_option): Update accordingly.
11889 (style_set_list): Move to file scope.
11890 (style_show_list): Likewise.
11891 (set_style): Call help_list.
11892 (show_style): Call cmd_show_list.
11893 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
11894 Update to use the new macro.
11896 2019-10-12 Joel Brobecker <brobecker@adacore.com>
11898 * ada-lang.c (_initialize_ada_language): Expand the help text
11899 for the "catch exception" command.
11901 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11903 * symtab.c (matching_obj_sections): Initialize obj,
11904 declare it closer to its usage.
11906 2019-01-10 Tom Tromey <tom@tromey.com>
11908 * thread-iter.h (inf_threads_iterator): Use next_iterator.
11909 (basic_inf_threads_range): Remove.
11910 (inf_threads_range, inf_non_exited_threads_range)
11911 (safe_inf_threads_range): Use next_adapter.
11913 2019-01-10 Keith Seitz <keiths@redhat.com>
11917 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
11918 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
11920 2019-01-10 Keith Seitz <keiths@redhat.com>
11924 * dictionary.c (pending_to_vector): Remove.
11925 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
11926 Remove _1 suffix, replacing functions of the same name. Update
11928 (dict_create_hashed, dict_create_hashed_expandable)
11929 (dict_create_linear, dict_create_linear_expandable, dict_free)
11930 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
11931 Make functions static.
11933 2019-01-10 Keith Seitz <keiths@redhat.com>
11937 * dictionary.h (struct dictionary): Replace declaration with
11939 (dict_create_hashed, dict_create_hashed_expandable)
11940 (dict_create_linear, dict_create_linear_expandable)
11941 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
11942 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
11943 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
11944 taking multidictionary argument.
11945 [ALL_DICT_SYMBOLS]: Update for multidictionary.
11946 * block.h (struct block) <dict>: Change to multidictionary
11947 and rename `multidict'.
11948 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
11949 symmisc.c: Update all dictionary references to multidictionary.
11951 2019-01-10 Keith Seitz <keiths@redhat.com>
11955 * dictionary.c: Include unordered_map.
11956 (pending_to_vector): New function.
11957 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
11958 Rewrite the non-"_1" functions to take vector instead
11960 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
11961 "new" _1 versions of the same name.
11962 (multidictionary): Define.
11963 (std::hash<enum language): New definition.
11964 (collate_pending_symbols_by_language, mdict_create_hashed)
11965 (mdict_create_hashed_expandable, mdict_create_linear)
11966 (mdict_create_linear_expandable, mdict_free)
11967 (find_language_dictionary, create_new_language_dictionary)
11968 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
11969 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
11970 (mdict_size, mdict_empty): New functions.
11971 * dictionary.h (mdict_iterator): Define.
11973 2019-01-10 Pedro Alves <palves@redhat.com>
11975 * breakpoint.c (read_uploaded_action)
11976 (create_tracepoint_from_upload): Adjust to use
11977 gdb::unique_xmalloc_ptr.
11978 * ctf.c (ctf_write_uploaded_tp):
11979 (SET_ARRAY_FIELD): Use emplace_back.
11980 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
11981 * tracefile-tfile.c (tfile_write_uploaded_tp):
11982 * tracepoint.c (parse_tracepoint_definition): Adjust to use
11983 gdb::unique_xmalloc_ptr.
11984 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
11985 at_string, cond_string, cmd_strings>: Replace char pointers
11986 with gdb::unique_xmalloc_ptr.
11988 2019-01-10 Pedro Alves <palves@redhat.com>
11990 * solib-target.c (library_list_start_library): Don't xstrdup name.
11992 2019-01-10 Pedro Alves <palves@redhat.com>
11994 * mdebugread.c (parse_partial_symbols): Use
11995 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
11997 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
11999 * linux-fork.c (scoped_switch_fork_info)
12000 <~scoped_switch_fork_info>: Fix incorrect variable name.
12002 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
12004 * linux-fork.c (scoped_switch_fork_info)
12005 <scoped_switch_fork_info>: Make explicit.
12006 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
12008 2019-01-10 Tom Tromey <tom@tromey.com>
12010 * objfiles.h (objfile::reset_psymtabs): Update.
12011 * objfiles.c (objfile::objfile): Update.
12012 * psymtab.h (psymtab_storage::obstack): Update.
12013 (psymtab_storage::m_obstack): Use gdb::optional.
12014 (class psymtab_storage): Update comment. Remove objfile
12016 * psymtab.c (psymtab_storage::psymtab_storage): Update.
12018 2019-01-10 Tom Tromey <tom@tromey.com>
12020 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
12021 <free_psymtabs>: Now private.
12022 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
12023 (allocate_psymtab): Use new method.
12025 2019-01-10 Tom Tromey <tom@tromey.com>
12027 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
12028 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
12029 * mdebugread.c (parse_partial_symbols): Use
12030 allocate_dependencies.
12031 * dwarf2read.c (dwarf2_create_include_psymtab): Use
12032 allocate_dependencies.
12033 (process_psymtab_comp_unit_reader)
12034 (build_type_psymtab_dependencies): Likewise.
12035 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
12037 2019-01-10 Tom Tromey <tom@tromey.com>
12039 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
12040 PSYMBOL_SET_LANGUAGE.
12041 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
12043 2019-01-10 Tom Tromey <tom@tromey.com>
12045 * psymtab.h (psymtab_storage::obstack): New method.
12046 <m_obstack>: Rename from obstack; now private.
12047 * psymtab.c (psymtab_storage): Update.
12048 * dwarf2read.c (create_addrmap_from_index)
12049 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
12052 2019-01-10 Tom Tromey <tom@tromey.com>
12054 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
12055 * objfiles.h (objfile::reset_psymtabs): New method.
12057 2019-01-10 Tom Tromey <tom@tromey.com>
12059 * symmisc.c (print_symbol_bcache_statistics): Update.
12060 (print_objfile_statistics): Update.
12061 * symfile.c (reread_symbols): Update.
12062 * psymtab.h (class psymtab_storage): New.
12063 * psymtab.c (psymtab_storage): New constructor.
12064 (~psymtab_storage): New destructor.
12065 (require_partial_symbols): Update.
12066 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
12067 (find_pc_sect_psymtab, find_pc_sect_psymbol)
12068 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
12069 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
12070 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
12071 (start_psymtab_common, end_psymtab_common)
12072 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
12073 (allocate_psymtab): Update.
12074 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
12076 (dump_psymtab_addrmap, maintenance_print_psymbols)
12077 (maintenance_check_psymtabs): Update.
12078 (class objfile_psymtabs): Move to objfiles.h.
12079 * psympriv.h (discard_psymtab): Now inline.
12080 (psymtab_discarder::psymtab_discarder): Update.
12081 (psymtab_discarder::~psymtab_discarder): Update.
12082 (ALL_OBJFILE_PSYMTABS): Rewrite.
12083 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
12084 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
12086 <partial_symtabs>: New field.
12087 (class objfile_psymtabs): Move from psymtab.h. Update.
12088 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
12090 (objfile::~objfile): Don't destroy psymbol_cache.
12091 * mdebugread.c (parse_partial_symbols): Update.
12092 * dwarf2read.c (create_addrmap_from_index)
12093 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12094 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
12095 (add_partial_subprogram, dwarf2_ranges_read): Update.
12096 * dwarf-index-write.c (write_address_map)
12097 (write_one_signatured_type, recursively_write_psymbols)
12098 (class debug_names, class debug_names, write_psymtabs_to_index):
12101 2019-01-10 Tom Tromey <tom@tromey.com>
12103 * symtab.h (SYMBOL_SET_NAMES): Update.
12104 (symbol_set_names): Update.
12105 (MSYMBOL_SET_NAMES): Update.
12106 * symtab.c (symbol_set_names): Change argument to be an
12107 objfile_per_bfd_storage.
12108 * psymtab.c (add_psymbol_to_bcache): Update.
12109 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
12111 2019-01-10 Tom Tromey <tom@tromey.com>
12113 * symtab.c (create_demangled_names_hash): Change argument to be an
12114 objfile_per_bfd_storage.
12115 (symbol_set_names): Update.
12117 2019-01-10 Tom Tromey <tom@tromey.com>
12119 * xcoffread.c (xcoff_initial_scan): Unconditionally call
12121 * psymtab.c (init_psymbol_list): Do nothing if already called.
12122 * psympriv.h (init_psymbol_list): Add comment.
12123 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
12125 * dbxread.c (dbx_symfile_read): Unconditionally call
12128 2019-01-10 Tom Tromey <tom@tromey.com>
12130 * xcoffread.c (scan_xcoff_symtab): Update.
12131 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
12133 * mdebugread.c (parse_partial_symbols)
12134 (handle_psymbol_enumerators): Update.
12135 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
12136 * dbxread.c (read_dbx_symtab): Update.
12137 * psympriv.h (psymbol_placement): New enum.
12138 (add_psymbol_to_list): Update.
12140 2019-01-10 Tom Tromey <tom@tromey.com>
12142 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
12143 static_psymbols parameters.
12144 (scan_xcoff_symtab): Update.
12145 * psymtab.c (start_psymtab_common): Remove global_psymbols and
12146 static_psymbols parameters.
12147 * psympriv.h (start_psymtab_common): Update.
12148 * mdebugread.c (parse_partial_symbols): Update.
12149 * dwarf2read.c (create_partial_symtab): Update.
12150 * dbxread.c (read_dbx_symtab): Update.
12151 (start_psymtab): Remove global_psymbols and static_psymbols
12154 2019-01-10 Tom Tromey <tom@tromey.com>
12156 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
12157 * psymtab.c (allocate_psymtab): Add comment.
12158 * psympriv.h (allocate_psymtab): Add comment.
12159 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
12161 * dbxread.c (dbx_end_psymtab): Remove some initializations.
12163 2019-01-10 Tom Tromey <tom@tromey.com>
12165 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12167 * mipsread.c: Include mdebugread.h.
12168 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12170 * elfread.c: Include mdebugread.h.
12172 2019-01-09 Tom Tromey <tom@tromey.com>
12174 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
12175 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
12176 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
12177 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
12178 (psym_lookup_symbol, psym_find_last_source_symtab)
12179 (psym_forget_cached_source_info, psym_print_stats)
12180 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
12181 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
12182 (psym_map_matching_symbols, psym_expand_symtabs_matching)
12183 (psym_find_compunit_symtab_by_address)
12184 (maintenance_print_psymbols, maintenance_info_psymtabs)
12185 (maintenance_check_psymtabs): Use ranged for.
12186 * psymtab.h (class objfile_psymtabs): New.
12187 (require_partial_symbols): Return objfile_psymtabs.
12188 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
12190 2019-01-09 Tom Tromey <tom@tromey.com>
12192 * symfile.c (overlay_invalidate_all, find_pc_overlay)
12193 (find_pc_mapped_section, list_overlays_command)
12194 (map_overlay_command, unmap_overlay_command)
12195 (simple_overlay_update): Use all_objfiles.
12196 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
12197 * printcmd.c (info_symbol_command): Use all_objfiles.
12198 * objfiles.h (ALL_OBJSECTIONS): Remove.
12199 * maint.c (maintenance_translate_address): Use all_objfiles.
12200 * gcore.c (gcore_create_callback): Use all_objfiles.
12201 (objfile_find_memory_regions): Likewise.
12203 2019-01-09 Tom Tromey <tom@tromey.com>
12205 * symtab.c (find_line_symtab, info_sources_command)
12206 (make_source_files_completion_list): Use objfile_compunits.
12207 * source.c (select_source_symtab): Use objfile_compunits.
12208 * objfiles.h (struct objfile): Update comment.
12209 (ALL_OBJFILES): Remove.
12210 (ALL_FILETABS): Remove.
12211 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
12214 2019-01-09 Tom Tromey <tom@tromey.com>
12216 * symmisc.c (print_objfile_statistics, dump_objfile)
12217 (maintenance_print_symbols): Use compunit_filetabs.
12218 * source.c (forget_cached_source_info_for_objfile): Use
12220 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
12221 (ALL_FILETABS): Use compunit_filetabs.
12222 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
12223 * coffread.c (coff_symtab_read): Use compunit_filetabs.
12225 2019-01-09 Tom Tromey <tom@tromey.com>
12227 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
12228 (compunit_filetabs): New.
12229 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
12231 (info_sources_command, make_source_files_completion_list): Remove
12233 * symmisc.c (print_objfile_statistics, dump_objfile)
12234 (maintenance_print_symbols): Remove declaration.
12235 (maintenance_info_symtabs): Use compunit_filetabs.
12236 (maintenance_info_line_tables): Likewise.
12237 * source.c (select_source_symtab): Change local variable name.
12238 (forget_cached_source_info_for_objfile): Remove declaration.
12239 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
12240 * objfiles.c (objfile_relocate1): Remove declaration.
12241 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
12243 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
12244 * coffread.c (coff_symtab_read): Remove declaration.
12245 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
12248 2019-01-09 Tom Tromey <tom@tromey.com>
12250 * symtab.c (lookup_objfile_from_block)
12251 (find_pc_sect_compunit_symtab, search_symbols)
12252 (default_collect_symbol_completion_matches_break_on): Use
12254 * objfiles.h (ALL_COMPUNITS): Remove.
12255 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
12256 * cp-support.c (add_symbol_overload_list_qualified): Use
12258 * ada-lang.c (ada_collect_symbol_completion_matches)
12259 (ada_add_global_exceptions): Use objfile_compunits.
12261 2019-01-09 Tom Tromey <tom@tromey.com>
12263 * source.c (select_source_symtab)
12264 (forget_cached_source_info_for_objfile): Remove declaration.
12265 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
12267 * maint.c (count_symtabs_and_blocks): Remove declaration.
12268 * cp-support.c (add_symbol_overload_list_qualified): Remove
12270 * coffread.c (coff_symtab_read): Remove declaration.
12271 * symtab.c (lookup_symbol_in_objfile_symtabs)
12272 (basic_lookup_transparent_type_1): Use objfile_compunits.
12273 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
12274 (info_sources_command, search_symbols)
12275 (default_collect_symbol_completion_matches_break_on)
12276 (make_source_files_completion_list): Remove declaration.
12277 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
12278 (ada_collect_symbol_completion_matches)
12279 (ada_add_global_exceptions): Remove declaration.
12280 * linespec.c (iterate_over_all_matching_symtabs): Use
12282 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
12283 (class objfile_compunits): New.
12284 (ALL_COMPUNITS): Use objfile_compunits.
12285 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
12286 (maintenance_check_symtabs, maintenance_info_line_tables): Use
12288 * objfiles.c (objfile_relocate1): Use objfile_compunits.
12290 2019-01-09 Tom Tromey <tom@tromey.com>
12292 * symtab.c (search_symbols)
12293 (default_collect_symbol_completion_matches_break_on): Use
12295 * ada-lang.c (ada_lookup_simple_minsym)
12296 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
12297 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
12298 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
12300 * coffread.c (coff_symfile_read): Use objfile_msymbols.
12301 * symmisc.c (dump_msymbols): Use objfile_msymbols.
12302 * objc-lang.c (find_methods): Use objfile_msymbols.
12303 (info_selectors_command, info_classes_command): Likewise.
12304 * stabsread.c (scan_file_globals): Use objfile_msymbols.
12305 * objfiles.h (class objfile_msymbols): New.
12306 (ALL_OBJFILE_MSYMBOLS): Remove.
12307 (ALL_MSYMBOLS): Remove.
12309 2019-01-09 Tom Tromey <tom@tromey.com>
12311 * common/next-iterator.h (next_adapter): Add Iterator template
12313 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
12314 (class all_objfiles_safe): New.
12315 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
12316 * objfiles.c (put_objfile_before): Update comment.
12317 (add_separate_debug_objfile): Likewise.
12318 (free_all_objfiles): Use all_objfiles_safe.
12319 (objfile_purge_solibs): Likewise.
12321 2019-01-09 Tom Tromey <tom@tromey.com>
12323 * symtab.c (iterate_over_symtabs, matching_obj_sections)
12324 (expand_symtab_containing_pc, lookup_static_symbol)
12325 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
12326 (find_symbol_at_address, find_line_symtab, find_main_name): Use
12328 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
12329 * breakpoint.c (create_overlay_event_breakpoint)
12330 (create_longjmp_master_breakpoint)
12331 (create_std_terminate_master_breakpoint)
12332 (create_exception_master_breakpoint): Use all_objfiles.
12333 * linux-thread-db.c (try_thread_db_load_from_pdir)
12334 (has_libpthread): Use all_objfiles.
12335 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
12336 * linespec.c (iterate_over_all_matching_symtabs)
12337 (search_minsyms_for_name): Use all_objfiles.
12338 * maint.c (maintenance_info_sections): Use all_objfiles.
12339 * main.c (captured_main_1): Use all_objfiles.
12340 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
12341 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
12342 * guile/scm-pretty-print.c
12343 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
12344 * solib-spu.c (append_ocl_sos): Use all_objfiles.
12345 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
12346 (maintenance_print_msymbols): Use all_objfiles.
12347 * source.c (select_source_symtab): Use all_objfiles.
12348 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
12349 * symfile.c (remove_symbol_file_command)
12350 (expand_symtabs_matching, map_symbol_filenames): Use
12352 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
12354 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
12355 * objc-lang.c (find_methods): Use all_objfiles.
12356 * objfiles.c (have_partial_symbols, have_full_symbols)
12357 (have_minimal_symbols, qsort_cmp)
12358 (default_iterate_over_objfiles_in_search_order): Use
12360 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
12361 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
12362 (maintenance_check_psymtabs): Use all_objfiles.
12363 (ALL_PSYMTABS): Remove.
12364 * compile/compile-object-run.c (do_module_cleanup): Use
12366 * blockframe.c (find_pc_partial_function): Use all_objfiles.
12367 * cp-support.c (add_symbol_overload_list_qualified): Use
12369 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
12371 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
12372 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
12374 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
12375 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
12376 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
12378 * solib.c (solib_read_symbols): Use all_objfiles
12380 2019-01-09 Tom Tromey <tom@tromey.com>
12382 * probe.c (parse_probes_in_pspace): Use all_objfiles.
12383 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
12385 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
12386 * symmisc.c (print_symbol_bcache_statistics)
12387 (print_objfile_statistics, maintenance_print_objfiles)
12388 (maintenance_info_symtabs, maintenance_check_symtabs)
12389 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
12391 * source.c (forget_cached_source_info): Use all_objfiles.
12392 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
12393 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
12394 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
12395 * objfiles.c (update_section_map): Use all_objfiles.
12396 (shared_objfile_contains_address_p): Likewise.
12397 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
12398 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
12400 2019-01-09 Tom Tromey <tom@tromey.com>
12402 * common/next-iterator.h: New file.
12403 * objfiles.h (class all_objfiles): New.
12404 (struct objfile_iterator): New.
12406 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12408 * NEWS: Move the description of the changed "frame", "select-frame",
12409 and "info frame" commands to the Changed commands section.
12411 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
12413 * gdbtypes.c (check_stub_method_group): Remove handling of old
12415 * linespec.c (find_methods): Likewise.
12416 * stabsread.c (read_member_functions): Likewise.
12417 * valops.c (search_struct_method): Likewise.
12418 (value_struct_elt_for_reference): Likewise.
12419 * NEWS: Mention this change.
12421 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12423 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
12424 print_source_lines.
12425 * source.c (print_source_lines_base): Update line number check.
12426 (print_source_lines): New function.
12427 (source_lines_range::source_lines_range): New function.
12428 * source.h (class source_lines_range): New class.
12429 (print_source_lines): New declaration.
12431 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12433 * linespec.c (linespec_state_destructor): Free self->canonical_names.
12435 2019-01-08 Tom Tromey <tom@tromey.com>
12436 Simon Marchi <simon.marchi@ericsson.com>
12439 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
12440 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
12441 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
12442 * f-exp.y (DOLLAR_VARIABLE): Likewise.
12443 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
12444 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
12446 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12448 * source.c (select_source_symtab): Move header comment to
12449 declaration in source.h.
12450 (forget_cached_source_info_for_objfile): Likewise.
12451 (forget_cached_source_info): Likewise.
12452 (identify_source_line): Likewise.
12453 * source.h (identify_source_line): Move declaration from symtab.h
12454 and add comment from source.c
12455 (print_source_lines): Likewise.
12456 (forget_cached_source_info_for_objfile): Likewise.
12457 (forget_cached_source_info): Likewise.
12458 (select_source_symtab): Likewise.
12459 (enum print_source_lines_flag): Move definition from symtab.h.
12460 * symtab.h (identify_source_line): Move declaration to source.h.
12461 (print_source_lines): Likewise.
12462 (forget_cached_source_info_for_objfile): Likewise.
12463 (forget_cached_source_info): Likewise.
12464 (select_source_symtab): Likewise.
12465 (enum print_source_lines_flag): Move definition to source.h.
12466 * tui/tui-hooks.c: Add 'source.h' include.
12468 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12470 * source.c (print_source_lines_base): Handle requests to print
12471 reverse line number sequences, and guard against empty lines
12474 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12476 * source.c (print_source_lines_base): Fix skip of '\r' if next
12479 2019-01-06 Tom Tromey <tom@tromey.com>
12481 * c-exp.y (struct c_parse_state) <macro_original_text,
12482 expansion_obstack>: New member.
12483 (macro_original_text, expansion_obstack): Remove globals.
12484 (scan_macro_expansion, scanning_macro_expansion)
12485 (finished_macro_expansion): Update.
12486 (scan_macro_cleanup): Remove.
12487 (yylex, c_parse): Update.
12489 2019-01-06 Tom Tromey <tom@tromey.com>
12491 * c-exp.y (struct c_parse_state) <strings>: New member.
12492 (operator_stoken): Update.
12494 2019-01-06 Tom Tromey <tom@tromey.com>
12496 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
12497 (union type_stack_elt) <typelist_val>: Now a pointer to
12499 (type_stack_cleanup): Don't declare.
12500 (push_typelist): Update.
12501 * parse.c (pop_typelist): Return a std::vector.
12502 (push_typelist): Take a std::vector.
12503 (follow_types): Update. Do not free args.
12504 (type_stack_cleanup): Remove.
12505 * c-exp.y (struct c_parse_state): New.
12506 (cpstate): New global.
12507 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
12508 (nonempty_typelist): Update.
12509 (func_mod): Create a new vector.
12510 (c_parse): Create a c_parse_state.
12511 (check_parameter_typelist): Do not delete params.
12512 (function_method): Update. Do not delete type_list.
12514 2019-01-06 Tom Tromey <tom@tromey.com>
12517 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
12519 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
12520 (print_return_value): Likewise.
12522 2019-01-05 Tom Tromey <tom@tromey.com>
12524 * contrib/cleanup_check.py: Remove.
12525 * contrib/gcc-with-excheck: Remove.
12526 * contrib/exsummary.py: Remove.
12527 * contrib/excheck.py: Remove.
12529 2019-01-05 Joel Brobecker <brobecker@adacore.com>
12531 * thread.c (delete_thread_1): Add gdb_assert that THR is not
12532 NULL. Initialize tpprev to NULL instead of assigning it
12533 to NULL on the next statement.
12534 * windows-nat.c (windows_delete_thread): Remove check for
12535 main_thread_id before printing thread exit notifications.
12536 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
12537 Remove thread ID check against main_thread_id.
12538 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
12539 windows_delete_thread.
12540 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
12542 2019-01-04 Tom Tromey <tom@tromey.com>
12544 * compile/compile.c (_initialize_compile): Use upper case for
12545 metasyntactic variables.
12546 * symmisc.c (_initialize_symmisc): Use upper case for
12547 metasyntactic variables.
12548 * psymtab.c (_initialize_psymtab): Use upper case for
12549 metasyntactic variables.
12550 * demangle.c (demangle_command): Use upper case for metasyntactic
12552 (_initialize_demangler): Likewise.
12553 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
12556 2019-01-03 Tom Tromey <tom@tromey.com>
12558 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
12560 2019-01-03 Tom Tromey <tom@tromey.com>
12562 * python/py-symtab.c (salpy_str): Update.
12563 (struct salpy_sal_object) <symtab>: Now a PyObject.
12564 (salpy_dealloc): Update.
12565 (del_objfile_sal): Use gdbpy_ref.
12567 2019-01-03 Tom Tromey <tom@tromey.com>
12569 * python/py-type.c (convert_field): Use new_reference. Return
12571 (make_fielditem): Return gdbpy_ref.
12572 (typy_fields): Update.
12573 (typy_getitem): Update.
12574 (field_name): Return gdbpy_ref. Use new_reference.
12575 (typy_iterator_iternext): Update.
12577 2019-01-03 Tom Tromey <tom@tromey.com>
12579 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
12581 2019-01-03 Tom Tromey <tom@tromey.com>
12583 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
12584 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
12585 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
12586 (pspy_set_frame_filters, pspy_set_frame_unwinders)
12587 (pspy_set_type_printers): Likewise.
12588 * python/py-function.c (fnpy_init): Use gdbpy_ref.
12589 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
12590 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
12591 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
12592 (objfpy_set_type_printers): Likewise.
12594 2019-01-03 Tom Tromey <tom@tromey.com>
12596 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
12597 (gdbpy_print_stack): Use gdbpy_err_fetch.
12598 * python/python-internal.h (class gdbpy_err_fetch): New class.
12599 (class gdbpy_enter) <m_error_type, m_error_value,
12600 m_error_traceback>: Remove.
12601 <m_error>: New member.
12602 (gdbpy_exception_to_string): Don't declare.
12603 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
12604 * python/py-value.c (convert_value_from_python): Use
12606 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
12607 gdbpy_exception_to_string.
12608 (gdbpy_handle_exception): Use gdbpy_err_fetch.
12609 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
12612 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12614 * linux-nat.c (delete_lwp_cleanup): Delete.
12615 (struct lwp_deleter): New struct.
12616 (lwp_info_up): New typedef.
12617 (linux_nat_target::follow_fork): Delete cleanup, and make use of
12620 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12622 * linux-fork.c (class scoped_switch_fork_info): New class.
12623 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
12625 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12627 * valops.c (find_overload_match): Remove use of null_cleanup, and
12628 calls to do_cleanups.
12630 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12632 * compile/compile-cplus-types.c
12633 (compile_cplus_instance::decl_name): Handle changes to
12635 * cp-support.c (cp_func_name): Update header comment, update
12637 * cp-support.h (cp_func_name): Update return type in declaration.
12638 * valops.c (find_overload_match): Move temp_func local to top
12639 level of function and change its type. Use temp_func to hold and
12640 delete temporary string obtained from cp_func_name.
12642 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12644 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
12645 gdb::char_vector, remove cleanup, and update uses of `msg`.
12647 2019-01-03 Jim Wilson <jimw@sifive.com>
12649 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
12651 2019-01-02 Tom Tromey <tom@tromey.com>
12653 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
12654 (tdesc_parse_xml): Remove cleanups.
12655 * target-descriptions.h (make_cleanup_free_target_description):
12657 (target_desc_deleter): New struct.
12658 (target_desc_up): New typedef.
12659 * target-descriptions.c (target_desc_deleter::operator()): Rename
12660 from free_target_description.
12661 (make_cleanup_free_target_description): Remove.
12663 2019-01-02 Tom Tromey <tom@tromey.com>
12665 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
12666 constructor, destructor.
12667 (linespec_parser): Remove typedef.
12668 (~linespec_parser): Rename from linespec_parser_delete.
12669 (linespec_lex_to_end, linespec_complete_label)
12670 (linespec_complete): Update.
12671 (decode_line_full): Remove cleanups.
12672 (decode_line_1): Update.
12674 2019-01-02 Tom Tromey <tom@tromey.com>
12676 * python/python-internal.h (inferior_to_inferior_object): Change
12678 * python/py-exitedevent.c (create_exited_event_object): Update.
12679 * python/py-inferior.c (inferior_to_inferior_object): Return
12681 (python_new_inferior, python_inferior_deleted)
12682 (thread_to_thread_object, delete_thread_object)
12683 (build_inferior_list, gdbpy_selected_inferior): Update.
12684 * python/py-infthread.c (create_thread_object): Update. Also fail
12685 if inferior_to_inferior_object fails.
12687 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
12689 * inferior.h (class inferior) <displaced_step_state>: New field.
12690 * infrun.h (struct displaced_step_state): Move here from
12691 infrun.c. Initialize fields, add constructor.
12692 <inf>: Remove field.
12693 <reset>: New method.
12694 * infrun.c (struct displaced_step_inferior_state): Move to
12696 (displaced_step_inferior_states): Remove.
12697 (get_displaced_stepping_state): Adust.
12698 (displaced_step_in_progress_any_inferior): Adjust.
12699 (displaced_step_in_progress_thread): Adjust.
12700 (displaced_step_in_progress): Adjust.
12701 (add_displaced_stepping_state): Remove.
12702 (get_displaced_step_closure_by_addr): Adjust.
12703 (remove_displaced_stepping_state): Remove.
12704 (infrun_inferior_exit): Call displaced_step_state.reset.
12705 (use_displaced_stepping): Don't check for NULL.
12706 (displaced_step_prepare_throw): Call
12707 get_displaced_stepping_state.
12708 (displaced_step_fixup): Don't check for NULL.
12709 (prepare_for_detach): Don't check for NULL.
12711 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12713 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
12714 in case of call that did not complete.
12716 2019-01-02 Andrey Utkin <autkin@undo.io>
12718 * symfile.c (find_separate_debug_file): Fix search of debug files for
12721 2019-01-02 Tom Tromey <tom@tromey.com>
12723 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
12725 * python/py-frame.c (frapy_older): Remove cast.
12726 (frapy_newer): Likewise.
12727 * python/py-breakpoint.c (local_setattro): Remove cast.
12728 * python/py-arch.c (archpy_name): Remove local variable.
12729 * python/py-type.c (gdbpy_lookup_type): Remove cast.
12731 2019-01-02 Joel Brobecker <brobecker@adacore.com>
12733 * unittests/basic_string_view/element_access/char/empty.cc:
12734 Fix year range in copyright header.
12736 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
12738 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
12740 <operator==>: Update with for removed field.
12742 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
12743 <isa_features>: ...this.
12744 <abi_features>: New field.
12745 (riscv_isa_flen): Update comment.
12746 (riscv_abi_xlen): New declaration.
12747 (riscv_abi_flen): New declaration.
12748 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
12750 (riscv_abi_xlen): New function.
12751 (riscv_isa_flen): Update to get answer from isa_features.
12752 (riscv_abi_flen): New function.
12753 (riscv_has_fp_abi): Update to get answer from abi_features.
12754 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
12756 (riscv_call_info) <xlen, flen>: Update comment.
12757 (riscv_call_arg_struct): Remove invalid assertions
12758 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
12760 (riscv_gdbarch_init): Gather isa features and abi features
12761 separately, ensure both match on the gdbarch when reusing an old
12762 gdbarch. Relax an error check to allow 32-bit abi float to run on
12763 a target with 64-bit float hardware.
12765 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12767 * source.c (search_command_helper): Stop reverse search
12768 when line 1 has been searched.
12770 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12772 * record-full.c (record_full_base_target::close): Rewrite
12773 record_full_core_buf_list free logic.
12775 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12777 * break-catch-syscall.c (print_one_catch_syscall): xfree
12780 2019-01-01 Joel Brobecker <brobecker@adacore.com>
12782 * top.c (print_gdb_version): Update Copyright year in version
12785 2019-01-01 Joel Brobecker <brobecker@adacore.com>
12787 Update copyright year range in all GDB files.
12789 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
12791 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
12793 For older changes see ChangeLog-2018.
12799 version-control: never