1 2019-09-20 Tom Tromey <tom@tromey.com>
3 * tui/tui-source.c (tui_source_window::set_contents): Use
5 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
8 2019-09-20 Tom Tromey <tom@tromey.com>
10 * tui/tui-data.c: Remove separator comments.
11 * tui/tui-layout.c: Remove separator comments.
12 * tui/tui-win.c: Remove separator comments.
13 * tui/tui-wingeneral.c: Remove separator comments.
15 2019-09-20 Tom Tromey <tom@tromey.com>
17 * tui/tui.h (strcat_to_buf): Don't declare.
18 * tui/tui.c (strcat_to_buf): Remove.
20 2019-09-20 Tom Tromey <tom@tromey.com>
22 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
24 * tui/tui-source.c (tui_source_window::set_contents)
25 (tui_source_window::location_matches_p)
26 (tui_source_window::maybe_update): Update.
28 2019-09-20 Tom Tromey <tom@tromey.com>
30 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
32 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
34 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
35 (tui_data_window::line_from_reg_element_no)
36 (tui_data_window::first_reg_element_no_inline)
37 (tui_data_window::show_registers)
38 (tui_data_window::show_register_group)
39 (tui_data_window::display_registers_from)
40 (tui_data_window::display_registers_from_line)
41 (tui_data_window::first_data_item_displayed)
42 (tui_data_window::delete_data_content_windows)
43 (tui_data_window::erase_data_content)
44 (tui_data_window::do_scroll_vertical)
45 (tui_data_window::refresh_window)
46 (tui_data_window::check_register_values): Update.
48 2019-09-20 Tom Tromey <tom@tromey.com>
50 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
51 (struct tui_locator_window) <full_name, proc_name>: Now
53 * tui/tui-stack.c (tui_locator_window::make_status_line)
54 (tui_locator_window::set_locator_fullname)
55 (tui_locator_window::set_locator_info): Update.
56 * tui/tui-source.c (tui_source_window::set_contents)
57 (tui_source_window::showing_source_p): Update.
59 2019-09-20 Tom Tromey <tom@tromey.com>
61 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
62 Don't call tui_locator_win_info_ptr.
64 2019-09-20 Tom Tromey <tom@tromey.com>
66 * tui/tui-win.c (tui_resize_all): Don't call refresh.
68 2019-09-20 Tom Tromey <tom@tromey.com>
70 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
72 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
73 * tui/tui-layout.c (show_source_disasm_command, show_data)
74 (show_source_or_disasm_and_command): Use 1 as height for locator.
76 2019-09-20 Tom Tromey <tom@tromey.com>
78 * tui/tui.c (tui_enable): Update.
79 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
81 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
83 * tui/tui-data.c (win_resized): Now bool.
84 (tui_win_resized): Return bool.
85 (tui_set_win_resized_to): Accept a bool.
87 2019-09-20 Tom Tromey <tom@tromey.com>
89 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
90 Change type of "refresh_values_only".
91 * tui/tui-regs.c (tui_data_window::show_register_group): Change
92 type of "refresh_values_only".
94 2019-09-20 Tom Tromey <tom@tromey.com>
96 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
98 (tui_disassemble): Add "pos" parameter.
99 (tui_disasm_window::set_contents): Simplify.
101 2019-09-20 Tom Tromey <tom@tromey.com>
103 * tui/tui-winsource.h (struct tui_source_window_base)
104 <show_source_content>: Now private.
105 * tui/tui-winsource.c
106 (tui_source_window_base::show_source_content): Don't handle empty
109 2019-09-20 Tom Tromey <tom@tromey.com>
111 * tui/tui-layout.c (show_source_disasm_command)
112 (show_source_or_disasm_and_command): Don't call
115 2019-09-20 Tom Tromey <tom@tromey.com>
117 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
119 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
120 from tui_make_status_line.
121 (tui_locator_window::rerender): Update.
123 2019-09-20 Tom Tromey <tom@tromey.com>
125 * tui/tui-stack.c (tui_make_status_line): Return std::string.
126 (tui_locator_window::rerender): Update.
128 2019-09-20 Tom Tromey <tom@tromey.com>
130 * tui/tui-winsource.h (struct tui_source_window_base)
131 <~tui_source_window_base>: Don't declare.
133 * tui/tui-winsource.c (~tui_source_window_base): Remove.
134 * tui/tui-source.h (struct tui_source_window) <fullname>: New
136 * tui/tui-source.c (tui_source_window::set_contents): Update.
137 (tui_source_window::location_matches_p)
138 (tui_source_window::maybe_update): Update.
140 2019-09-20 Tom Tromey <tom@tromey.com>
142 * tui/tui-winsource.h (~tui_source_element): Remove.
143 (tui_source_element): Update.
144 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
145 * tui/tui-winsource.c (tui_show_source_line): Update.
146 * tui/tui-source.c (tui_source_window::set_contents): Update.
147 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
149 2019-09-20 Tom Tromey <tom@tromey.com>
151 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
153 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
154 tui_clear_source_windows_detail.
155 * tui/tui-winsource.h (struct tui_source_window_base)
156 <clear_detail>: Don't declare.
157 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
159 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
161 2019-09-20 Tom Tromey <tromey@adacore.com>
164 * block.c (contained_in): Fix final return value.
166 2019-09-20 Alan Modra <amodra@gmail.com>
168 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
169 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
170 (read_indirect_string_from_dwz): Use bfd accessor.
171 * dwarf2read.h (struct dwz_file <filename>): Likewise.
172 * machoread.c (macho_symfile_read_all_oso): Likewise.
173 * solib.c (solib_bfd_open): Likewise.
175 2019-09-19 Christian Biesinger <cbiesinger@google.com>
177 * eval.c: Move declaration of overload_resolution to...
180 2019-09-19 Christian Biesinger <cbiesinger@google.com>
182 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
183 * arm-linux-tdep.c: Likewise.
184 * arm-nbsd-nat.c: Likewise.
185 * arm-tdep.h: Declare arm_apcs_32.
186 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
188 2019-09-19 Christian Biesinger <cbiesinger@google.com>
190 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
191 * dwarf2read.h: Declare dwarf_always_disassemble.
193 2019-09-19 Tom de Vries <tdevries@suse.de>
196 * source-cache.c (source_cache::ensure): Catch exception thrown during
197 construction of the highlighter.
199 2019-09-18 Alan Modra <amodra@gmail.com>
201 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
202 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
203 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
204 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
205 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
206 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
207 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
208 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
209 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
210 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
211 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
212 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
213 * solib-spu.c, * solib-svr4.c, * solib-target.c,
214 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
215 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
216 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
217 * mi/mi-interp.c: Update throughout for bfd section macro and
219 * gcore (gcore_create_callback): Use bfd_set_section_lma.
220 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
222 2019-09-18 Tom Tromey <tom@tromey.com>
225 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
227 (tui_enable): Do not call rl_initialize.
229 2019-09-18 Christian Groessler <chris@groessler.org>
231 * alpha-linux-nat.c: Include gdbarch.h.
233 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
235 * ui-file.c: Include cli/cli-style.h.
236 (term_cli_styling): Remove cli_styling declaration.
238 2019-09-18 Alan Modra <amodra@gmail.com>
240 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
241 to bfd_asymbol_section.
243 2019-09-18 Alan Modra <amodra@gmail.com>
245 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
246 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
247 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
249 2019-09-18 Alan Modra <amodra@gmail.com>
251 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
252 * spu-linux-nat.c (spu_bfd_open): Likewise.
254 2019-09-18 Christian Biesinger <cbiesinger@google.com>
256 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
257 to bool to match definition in dwarf2read.c.
259 2019-09-17 Christian Biesinger <cbiesinger@google.com>
261 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
262 (print_signatures): Likewise.
263 (trust_pad_over_xvs): Likewise.
264 * arch/aarch64-insn.c (aarch64_debug): Likewise.
265 * arch/aarch64-insn.h (aarch64_debug): Likewise.
266 * arm-linux-nat.c (arm_apcs_32): Likewise.
267 * arm-linux-tdep.c (arm_apcs_32): Likewise.
268 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
269 * arm-tdep.c (arm_debug): Likewise.
270 (arm_apcs_32): Likewise.
271 * auto-load.c (debug_auto_load): Likewise.
272 (auto_load_gdb_scripts): Likewise.
273 (global_auto_load): Likewise.
274 (auto_load_local_gdbinit): Likewise.
275 (auto_load_local_gdbinit_loaded): Likewise.
276 * auto-load.h (global_auto_load): Likewise.
277 (auto_load_local_gdbinit): Likewise.
278 (auto_load_local_gdbinit_loaded): Likewise.
279 * breakpoint.c (disconnected_dprintf): Likewise.
280 (breakpoint_proceeded): Likewise.
281 (automatic_hardware_breakpoints): Likewise.
282 (always_inserted_mode): Likewise.
283 (target_exact_watchpoints): Likewise.
284 (_initialize_breakpoint): Update.
285 * breakpoint.h (target_exact_watchpoints): Change to bool.
286 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
287 * cli/cli-cmds.c (trace_commands): Likewise.
288 * cli/cli-cmds.h (trace_commands): Likewise.
289 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
291 * cli/cli-logging.c (logging_overwrite): Change to bool.
292 (logging_redirect): Likewise.
293 (debug_redirect): Likewise.
294 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
295 (struct boolean_option_def) <get_var_address_cb_>: Change return type
297 <boolean_option_def>: Update.
298 (struct flag_option_def): Change default type of Context to bool
300 <flag_option_def>: Change return type of var_address_cb_ to bool*.
301 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
302 (get_setshow_command_value_string): Likewise.
303 * cli/cli-style.c (cli_styling): Change to bool.
304 (source_styling): Likewise.
305 * cli/cli-style.h (source_styling): Likewise.
306 (cli_styling): Likewise.
307 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
309 * command.h (var_types): Update comment.
310 (add_setshow_boolean_cmd): Change int* var argument to bool*.
311 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
313 (debug_compile_cplus_scopes): Likewise.
314 * compile/compile-internal.h (compile_debug): Likewise.
315 * compile/compile.c (compile_debug): Likewise.
316 (struct compile_options) <raw>: Likewise.
317 * cp-support.c (catch_demangler_crashes): Likewise.
318 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
319 (usr_cmd_cris_dwarf2_cfi): Likewise.
320 * csky-tdep.c (csky_debug): Likewise.
321 * darwin-nat.c (enable_mach_exceptions): Likewise.
322 * dcache.c (dcache_enabled_p): Likewise.
323 * defs.h (info_verbose): Likewise.
324 * demangle.c (demangle): Likewise.
325 (asm_demangle): Likewise.
326 * dwarf-index-cache.c (debug_index_cache): Likewise.
327 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
328 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
329 * dwarf2read.c (check_physname): Likewise.
330 (use_deprecated_index_sections): Likewise.
331 (dwarf_always_disassemble): Likewise.
332 * eval.c (overload_resolution): Likewise.
333 * event-top.c (set_editing_cmd_var): Likewise.
334 (exec_done_display_p): Likewise.
335 * event-top.h (set_editing_cmd_var): Likewise.
336 (exec_done_display_p): Likewise.
337 * exec.c (write_files): Likewise.
338 * fbsd-nat.c (debug_fbsd_lwp): Likewise
339 (debug_fbsd_nat): Likewise.
340 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
342 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
343 <backtrace_past_entry> Likewise.
344 * gdb-demangle.h (demangle): Likewise.
345 (asm_demangle): Likewise.
346 * gdb_bfd.c (bfd_sharing): Likewise.
347 * gdbcore.h (write_files): Likewise.
348 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
349 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
350 * gdbthread.h (print_thread_events): Likewise.
351 * gdbtypes.c (opaque_type_resolution): Likewise.
352 (strict_type_checking): Likewise.
353 * gnu-nat.c (gnu_debug_flag): Likewise.
354 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
355 * guile/scm-param.c (pascm_variable): Add boolval.
356 (add_setshow_generic): Update.
357 (pascm_param_value): Update.
358 (pascm_set_param_value_x): Update.
359 * hppa-tdep.c (hppa_debug): Change to bool..
360 * infcall.c (may_call_functions_p): Likewise.
361 (coerce_float_to_double_p): Likewise.
362 (unwind_on_signal_p): Likewise.
363 (unwind_on_terminating_exception_p): Likewise.
364 * infcmd.c (startup_with_shell): Likewise.
365 * inferior.c (print_inferior_events): Likewise.
366 * inferior.h (startup_with_shell): Likewise.
367 (print_inferior_events): Likewise.
368 * infrun.c (step_stop_if_no_debug): Likewise.
369 (detach_fork): Likewise.
370 (debug_displaced): Likewise.
371 (disable_randomization): Likewise.
372 (non_stop): Likewise.
373 (non_stop_1): Likewise.
374 (observer_mode): Likewise.
375 (observer_mode_1): Likewise.
376 (set_observer_mode): Update.
377 (sched_multi): Change to bool.
378 * infrun.h (debug_displaced): Likewise.
379 (sched_multi): Likewise.
380 (step_stop_if_no_debug): Likewise.
381 (non_stop): Likewise.
382 (disable_randomization): Likewise.
383 * linux-tdep.c (use_coredump_filter): Likewise.
384 (dump_excluded_mappings): Likewise.
385 * linux-thread-db.c (auto_load_thread_db): Likewise.
386 (check_thread_db_on_load): Likewise.
387 * main.c (captured_main_1): Update.
388 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
389 xx2_opt, boolean_opt>: Change to bool.
390 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
391 * maint.c (maintenance_profile_p): Likewise.
392 (per_command_time): Likewise.
393 (per_command_space): Likewise.
394 (per_command_symtab): Likewise.
395 * memattr.c (inaccessible_by_default): Likewise.
396 * mi/mi-main.c (mi_async): Likewise.
397 (mi_async_1): Likewise.
398 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
399 * nat/fork-inferior.h (startup_with_shell): Likewise.
400 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
401 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
402 * nios2-tdep.c (nios2_debug): Likewise.
403 * or1k-tdep.c (or1k_debug): Likewise.
404 * parse.c (parser_debug): Likewise.
405 * parser-defs.h (parser_debug): Likewise.
406 * printcmd.c (print_symbol_filename): Likewise.
407 * proc-api.c (procfs_trace): Likewise.
408 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
409 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
410 (set_parameter_value): Update.
411 (add_setshow_generic): Update.
412 * python/py-value.c (copy_py_bool_obj): Change argument from int*
414 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
416 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
417 * record-btrace.c (record_btrace_target::store_registers): Update.
418 * record-full.c (record_full_memory_query): Change to bool.
419 (record_full_stop_at_limit): Likewise.
420 * record-full.h (record_full_memory_query): Likewise.
421 * remote-notif.c (notif_debug): Likewise.
422 * remote-notif.h (notif_debug): Likewise.
423 * remote.c (use_range_stepping): Likewise.
424 (interrupt_on_connect): Likewise.
425 (remote_break): Likewise.
426 * ser-tcp.c (tcp_auto_retry): Likewise.
427 * ser-unix.c (serial_hwflow): Likewise.
428 * skip.c (debug_skip): Likewise.
429 * solib-aix.c (solib_aix_debug): Likewise.
430 * spu-tdep.c (spu_stop_on_load_p): Likewise.
431 (spu_auto_flush_cache_p): Likewise.
432 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
434 (struct info_print_options) <quiet>: Likewise.
435 * symfile-debug.c (debug_symfile): Likewise.
436 * symfile.c (auto_solib_add): Likewise.
437 (separate_debug_file_debug): Likewise.
438 * symfile.h (auto_solib_add): Likewise.
439 (separate_debug_file_debug): Likewise.
440 * symtab.c (basenames_may_differ): Likewise.
441 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
442 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
443 (struct info_types_options) <quiet>: Likewise.
444 * symtab.h (demangle): Likewise.
445 (basenames_may_differ): Likewise.
446 * target-dcache.c (stack_cache_enabled_1): Likewise.
447 (code_cache_enabled_1): Likewise.
448 * target.c (trust_readonly): Likewise.
449 (may_write_registers): Likewise.
450 (may_write_memory): Likewise.
451 (may_insert_breakpoints): Likewise.
452 (may_insert_tracepoints): Likewise.
453 (may_insert_fast_tracepoints): Likewise.
454 (may_stop): Likewise.
455 (auto_connect_native_target): Likewise.
456 (target_stop_and_wait): Update.
457 (target_async_permitted): Change to bool.
458 (target_async_permitted_1): Likewise.
459 (may_write_registers_1): Likewise.
460 (may_write_memory_1): Likewise.
461 (may_insert_breakpoints_1): Likewise.
462 (may_insert_tracepoints_1): Likewise.
463 (may_insert_fast_tracepoints_1): Likewise.
464 (may_stop_1): Likewise.
465 * target.h (target_async_permitted): Likewise.
466 (may_write_registers): Likewise.
467 (may_write_memory): Likewise.
468 (may_insert_breakpoints): Likewise.
469 (may_insert_tracepoints): Likewise.
470 (may_insert_fast_tracepoints): Likewise.
471 (may_stop): Likewise.
472 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
473 (make_thread_apply_all_options_def_group): Change argument from int*
475 (thread_apply_all_command): Update.
476 (print_thread_events): Change to bool.
477 * top.c (confirm): Likewise.
478 (command_editing_p): Likewise.
479 (history_expansion_p): Likewise.
480 (write_history_p): Likewise.
481 (info_verbose): Likewise.
482 * top.h (confirm): Likewise.
483 (history_expansion_p): Likewise.
484 * tracepoint.c (disconnected_tracing): Likewise.
485 (circular_trace_buffer): Likewise.
486 * typeprint.c (print_methods): Likewise.
487 (print_typedefs): Likewise.
488 * utils.c (debug_timestamp): Likewise.
489 (sevenbit_strings): Likewise.
490 (pagination_enabled): Likewise.
491 * utils.h (sevenbit_strings): Likewise.
492 (pagination_enabled): Likewise.
493 * valops.c (overload_resolution): Likewise.
494 * valprint.h (struct value_print_options) <prettyformat_arrays,
495 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
496 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
497 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
499 * windows-nat.c (new_console): Likewise.
500 (cygwin_exceptions): Likewise.
501 (new_group): Likewise.
502 (debug_exec): Likewise.
503 (debug_events): Likewise.
504 (debug_memory): Likewise.
505 (debug_exceptions): Likewise.
506 (useshell): Likewise.
507 * windows-tdep.c (maint_display_all_tib): Likewise.
508 * xml-support.c (debug_xml): Likewise.
510 2019-09-17 Mike Gulick <mgulick@mathworks.com>
512 * source.c (prepare_path_for_appending): New function.
513 (openp): Make use of new function.
514 (find_and_open_source): Search for the compilation directory and
515 source file as a relative path beneath the directory search path.
517 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
519 * source-cache.c (source_cache::get_line_charpos): Catch
520 exceptions and return false, this matches the behaviour documented
523 2019-09-17 Joel Brobecker <brobecker@adacore.com>
525 * ada-tasks.c (info_task): Remove quoting of the task's name.
527 2019-09-16 Christian Biesinger <cbiesinger@google.com>
529 * symfile.c (auto_solib_add): Replace comment with a reference
532 2019-09-14 Christian Biesinger <cbiesinger@google.com>
534 * NEWS: Mention that gdb can now be compiled with Python 3
537 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
539 * maint.c (maint_print_section_data::maint_print_section_data):
540 Force use of 'float log10 (float)' by casting the argument to
543 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
545 * maint.c: Add 'cmath' include.
546 (struct maint_print_section_data): New structure.
547 (print_section_index): New function.
548 (print_bfd_section_info): Add header comment, small whitespace
549 cleanup, and update to call new print_section_index function.
550 (print_objfile_section_info): Likewise.
551 (maint_obj_section_from_bfd_section): New function.
552 (print_bfd_section_info_maybe_relocated): New function.
553 (maintenance_info_sections): Add header comment, always use
554 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
556 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
558 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
559 inner scope, add check that the objfile has psymtabs before
560 checking psymtabs_addrmap.
561 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
563 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
565 * NEWS: Announce that Ada task names are now shown at more places,
566 and between quotes (except in info task output).
567 * gdb/ada-tasks.c (task_to_str): New function.
568 (display_current_task_id): Call task_to_str.
569 (task_command_1): Likewise.
570 (print_ada_task_info): In non-mi mode, Properly align headers and data
571 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
573 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
575 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
576 prstatus.pr_lwp.pr_info instead of making it up.
578 2019-09-11 Christian Biesinger <cbiesinger@google.com>
580 * auto-load.c (auto_load_expand_dir_vars): Update.
581 * defs.h (gdb_datadir): Change to std::string.
582 (python_libdir): Likewise.
583 (relocate_gdb_directory): Change return type to std::string.
584 * guile/guile.c (gdbscm_data_directory): Update.
585 (initialize_scheme_side): Update.
586 * jit.c (jit_reader_dir): Change to std::string.
587 (jit_reader_load_command): Update.
588 * main.c (gdb_datadir): Change to std::string.
589 (python_libdir): Likewise.
590 (set_gdb_data_directory): Update.
591 (relocate_path): Change to return std::string.
592 (relocate_gdb_directory): Change to return std::string.
593 (relocate_gdbinit_path_maybe_in_datadir): Update.
594 (captured_main_1): Update.
595 * python/python.c (do_start_initialization): Update.
596 * top.c (show_gdb_datadir): Update.
597 * xml-syscall.c (xml_init_syscalls_info): Update.
598 (init_syscalls_info): Update.
600 2019-09-11 Christian Biesinger <cbiesinger@google.com>
602 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
603 out of get_init_files.
604 (get_init_files): Update.
606 2019-09-11 Christian Biesinger <cbiesinger@google.com>
608 * main.c (get_init_files): Change to use std::string.
609 (captured_main_1): Update.
610 (print_gdb_help): Update.
612 2019-09-11 Ali Tamur <tamur@google.com>
614 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
617 2019-09-11 Christian Biesinger <cbiesinger@google.com>
619 * dbxread.c (read_dbx_symtab): Update.
620 * dwarf2read.c (load_partial_dies): Update.
621 * mdebugread.c (parse_partial_symbols): Update.
622 (handle_psymbol_enumerators): Update.
623 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
624 * psymtab.c (add_psymbol_to_bcache): Likewise.
625 (add_psymbol_to_list): Likewise.
626 * symtab.c (symbol_set_names): Likewise.
627 * symtab.h (symbol_set_names): Likewise.
628 * xcoffread.c (scan_xcoff_symtab): Update.
630 2019-09-11 Tom Tromey <tom@tromey.com>
632 * symfile-mem.c (symbol_file_add_from_memory): Use
634 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
635 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
637 2019-09-10 Tom Tromey <tromey@adacore.com>
639 * dwarf-index-write.c (write_psymbols): Extend error message.
640 (debug_names::insert): Add Ada code.
641 (debug_names::write_psymbols): Remove Ada check.
642 (debug_names) <m_string_obstack>: New member.
643 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
644 (gdb_index_symbol_name_matcher::matches): Remove.
645 (mapped_index_base::find_name_components_bounds): Add "lang"
647 (mapped_index_base::build_name_components): Also split names
648 according to Ada syntax.
649 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
650 type of "match_callback".
651 (check_match, check_find_bounds_finds)
652 (dw2_expand_symtabs_matching): Update.
653 (dw2_debug_names_iterator): Add new constructor.
654 (dw2_debug_names_map_matching_symbols): New function.
655 (dw2_debug_names_expand_symtabs_matching): Update.
656 (dwarf2_debug_names_functions): Use
657 dw2_debug_names_map_matching_symbols.
659 2019-09-10 Tom Tromey <tromey@adacore.com>
661 * dwarf2read.c (dw2_get_file_names_reader): Add the
662 CU's file name to the results.
664 2019-09-10 Tom Tromey <tromey@adacore.com>
666 * ada-lang.c (add_nonlocal_symbols): Combine calls to
667 map_matching_symbols. Update.
668 * dwarf2read.c (dw2_map_matching_symbols): Update.
669 * psymtab.c (match_partial_symbol): Change type; update.
670 (psym_map_matching_symbols): Likewise.
671 * symfile-debug.c (debug_qf_map_matching_symbols): Change
673 * symfile.h (struct quick_symbol_functions)
674 <map_matching_symbols>: Change "name" to be a lookup_name_info.
677 2019-09-10 Tom Tromey <tromey@adacore.com>
679 * psymtab.c (map_block): Remove.
680 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
681 * symtab.c (iterate_over_symbols_terminated): New function.
682 * symtab.c (iterate_over_symbols_terminated): Declare.
684 2019-09-10 Tom Tromey <tromey@adacore.com>
686 * ada-lang.c (ada_iterate_over_symbols): Return bool.
687 * language.h (struct language_defn) <la_iterate_over_symbols>:
689 * symtab.c (iterate_over_symbols): Return bool.
690 * symtab.h (iterate_over_symbols): Return bool.
692 2019-09-10 Tom Tromey <tromey@adacore.com>
694 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
695 (add_nonlocal_symbols): Update.
696 * dwarf2read.c (dw2_map_matching_symbols): Change type.
697 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
698 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
699 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
700 Change type of "callback". Remove "data".
703 2019-09-09 Ali Tamur <tamur@google.com>
705 * dwarf2read.c (comp_unit_head): Update comment.
706 (dwarf2_dwo_name): New function declaration.
707 (dwarf_unit_type_name): New function declaration.
708 (read_comp_unit_head): Add support for new compilation units,
709 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
710 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
711 (currently named as "signature") in their header. Also clarify error
713 (lookup_dwo_id): New function. Returns the dwo id of the given
715 (lookup_dwo_unit): Use the new lookup_dwo_id function.
716 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
718 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
719 (dwarf2_dwo_name): Get the dwo name if present.
720 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
723 2019-09-09 Tom Tromey <tom@tromey.com>
725 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
727 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
729 * python/python.c (do_start_initialization): Make progname_copy static,
730 to avoid a leak report.
732 2019-09-08 Tom Tromey <tom@tromey.com>
734 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
736 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
738 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
739 Change type to gdb::optional<block_enum>.
740 (dw2_symtab_iter_init): Change block_index parameter type
741 to gdb::optional<block_enum>.
742 (dw2_lookup_symbol): Change block_index parameter
744 (dw2_debug_names_lookup_symbol): Likewise.
745 * psymtab.c (psym_lookup_symbol): Likewise.
746 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
747 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
750 2019-09-06 Christian Biesinger <cbiesinger@google.com>
752 * defs.h (relocate_gdb_directory): Change int to bool in
753 signature and rename flag to relocatable.
754 * main.c (relocate_path): Likewise.
755 (relocate_gdb_directory): Likewise.
757 2019-09-06 Alan Modra <amodra@gmail.com>
759 * coffread.c (coff_symfile_read): Constify filename variable.
760 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
761 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
762 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
763 * solib.c (reload_shared_libraries_1): Likewise.
764 * symfile.c (reread_symbols): Likewise.
765 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
766 * solib-darwin.c (darwin_bfd_open): Likewise.
767 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
769 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
771 * psymtab.c (print_partial_symbols): Handle missing domain_enum
772 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
774 2019-09-03 Tom Tromey <tromey@adacore.com>
776 * ada-valprint.c (ada_val_print_num): Don't recurse for range
778 (has_negatives): Unbias a range type bound.
779 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
780 * gdbtypes.c (operator==): Handle new field.
781 (create_range_type): Add "bias" parameter.
782 (create_static_range_type, resolve_dynamic_range): Update.
783 * gdbtypes.h (struct range_bounds) <bias>: New member.
784 (create_range_type): Add bias parameter.
785 * printcmd.c (print_scalar_formatted): Unbias range types.
786 * value.c (unpack_long): Unbias range types.
787 (pack_long): Bias range types.
789 2019-09-02 Alan Hayward <alan.hayward@arm.com>
791 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
794 2019-09-02 Alan Hayward <alan.hayward@arm.com>
796 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
797 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
798 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
799 (compile_probe_arg): Likewise.
800 * probe.h (get_argument_count): Likewise.
801 * solib-svr4.c (solib_event_probe_action): Likewise.
802 * stap-probe.c (stap_probe::get_argument_count): Likewise.
804 2019-09-02 Alan Hayward <alan.hayward@arm.com>
806 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
808 (svr4_create_solib_event_breakpoints): ...from here.
810 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
812 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
813 suffix from warning message.
815 2019-08-30 Tom Tromey <tom@tromey.com>
817 * tui/tui-winsource.h (struct tui_source_window_base)
818 <refresh_all>: Don't declare.
819 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
821 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
822 tui_show_locator_content.
823 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
825 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
826 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
829 2019-08-30 Tom Tromey <tom@tromey.com>
831 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
833 2019-08-30 Tom Tromey <tom@tromey.com>
835 * tui/tui-stack.c (_initialize_tui_stack): Move later.
836 Remove unnecessary forward declarations.
838 2019-08-30 Tom Tromey <tom@tromey.com>
840 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
842 (tui_update_locator_fullname, tui_show_frame_info): Don't call
843 tui_show_locator_content.
845 2019-08-30 Tom Tromey <tom@tromey.com>
847 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
848 (tui_locator_window::rerender): Rewrite using body of previous
849 tui_show_locator_content.
851 2019-08-30 Tom Tromey <tom@tromey.com>
853 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
854 set_locator_fullname>: New methods.
855 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
856 Rename from tui_set_locator_fullname.
857 (tui_locator_window::set_locator_info): Rename from
858 tui_set_locator_info. Return bool.
859 (tui_update_locator_fullname, tui_show_frame_info): Update.
861 2019-08-30 Tom Tromey <tom@tromey.com>
863 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
865 2019-08-30 Tom Tromey <tom@tromey.com>
867 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
870 2019-08-30 Tom Tromey <tom@tromey.com>
872 * tui/tui-wingeneral.c (box_win): Assume win_info and
873 win_info->handle cannot be NULL.
875 2019-08-30 Tom Tromey <tom@tromey.com>
877 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
878 refresh_window>: Declare.
879 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
881 (tui_data_item_window::rerender): Rename from
882 tui_display_register.
883 (tui_data_item_window::refresh_window): New method.
884 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
887 2019-08-30 Tom Tromey <tom@tromey.com>
889 * tui/tui-regs.h (struct tui_data_window) <regs_content,
890 regs_column_count, current_group>: Move later. Now private.
891 <get_current_group>: New method.
892 * tui/tui-regs.c (tui_reg_command): Update.
893 * tui/tui-layout.c (tui_set_layout): Update.
895 2019-08-30 Tom Tromey <tom@tromey.com>
897 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
898 (tui_data_window::rerender): Don't call
899 check_and_display_highlight_if_needed.
900 (tui_data_window::refresh_all): Remove call to
903 2019-08-30 Tom Tromey <tom@tromey.com>
905 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
906 (tui_data_window::display_registers_from)
907 (tui_data_window::display_reg_element_at_line)
908 (tui_data_window::display_registers_from_line): Remove checks of
911 2019-08-30 Tom Tromey <tom@tromey.com>
913 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
915 * tui/tui-regs.c (tui_data_window::show_registers): Call
917 (tui_data_window::rerender): Rename from display_all_data.
918 (tui_data_window::rerender): Remove old implementation.
920 2019-08-30 Tom Tromey <tom@tromey.com>
922 * tui/tui-regs.c (tui_data_window::display_all_data): Change
924 * tui/tui-data.h (NO_DATA_STRING): Remove define.
926 2019-08-29 Bernhard Wodok <barto@gmx.net>
927 Sergio Durigan Junior <sergiodj@redhat.com>
930 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
932 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
934 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
935 when searching for types.
937 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
939 * f-lang.c (f_language_defn): Use f_print_typedef.
940 * f-lang.h (f_print_typedef): Declare.
941 * f-typeprint.c (f_print_typedef): Define.
943 2019-08-27 Christian Biesinger <cbiesinger@google.com>
945 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
947 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
949 * cli/cli-utils.c (info_print_options_defs): Delete.
950 (make_info_print_options_def_group): Delete.
951 (extract_info_print_options): Delete.
952 (info_print_command_completer): Delete.
953 (info_print_args_help): Add extra parameter, and optionally
954 include text about -n flag.
955 * cli/cli-utils.h (struct info_print_options): Delete.
956 (extract_info_print_options): Delete declaration.
957 (info_print_command_completer): Delete declaration.
958 (info_print_args_help): Add extra parameter, extend header
960 * python/python.c (gdbpy_rbreak): Pass additional parameter to
962 * stack.c (struct info_print_options): New type.
963 (info_print_options_defs): New file scoped variable.
964 (make_info_print_options_def_group): New static function.
965 (info_print_command_completer): New static function.
966 (info_locals_command): Update to use new local functions.
967 (info_args_command): Likewise.
968 (_initialize_stack): Add extra parameter to calls to
969 info_print_args_help.
970 * symtab.c (search_symbols): Add extra parameter, use this to
971 possibly excluse non-debug symbols.
972 (symtab_symbol_info): Add extra parameter, which is passed on to
974 (struct info_print_options): New type.
975 (info_print_options_defs): New file scoped variable.
976 (make_info_print_options_def_group): New static function.
977 (info_print_command_completer): New static function.
978 (info_variables_command): Update to use local functions, and pass
979 extra parameter through to symtab_symbol_info.
980 (info_functions_command): Likewise.
981 (info_types_command): Pass additional argument through to
983 (rbreak_command): Pass extra argument to search_symbols.
984 (_initialize_symtab): Add extra arguments for calls to
985 info_print_args_help, and update help text for 'info variables',
986 'whereis', and 'info functions' commands.
987 * symtab.h (search_symbols): Add extra argument to declaration.
988 * NEWS: Mention new flags.
990 2019-08-26 Christian Biesinger <cbiesinger@google.com>
992 * symtab.c (lookup_static_symbol): Call the new function (and move
993 it down to be next to lookup_global_symbol).
994 (struct global_sym_lookup_data): Add block_enum member and rename to...
995 (struct global_or_static_sym_lookup_data): ...this.
996 (lookup_symbol_global_iterator_cb): Pass block_index instead of
997 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
998 (lookup_symbol_global_or_static_iterator_cb): ...this.
999 (lookup_global_or_static_symbol): New function.
1000 (lookup_global_symbol): Call new function.
1002 2019-08-26 Tom de Vries <tdevries@suse.de>
1005 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
1006 when pc_probe.prob == NULL.
1008 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
1010 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
1011 variable symbol_linkage to symbol_linkage_.
1013 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
1015 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
1016 represent whether the symbol is static, dynamic, or we don't
1019 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
1021 * gdb/rx-tdep.c (rx_register_names): New.
1022 (rx_register_name): Delete.
1023 (rx_psw_type): Delete.
1024 (rx_fpsw_type): Delete.
1025 (rx_register_type): Delete.
1026 (rx_gdbarch_init): Convert target-descriptions.
1027 (_initialize_rx_tdep): Add initialize_tdesc_rx.
1028 * gdb/features/Makefile: Add rx.xml.
1029 * gdb/features/rx.xml: New.
1030 * gdb/features/rx.c: Generated.
1031 * gdb/NEWS: Mention target description support.
1033 2019-08-22 Christian Biesinger <cbiesinger@google.com>
1035 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
1038 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
1040 * configure.ac: Don't check for 'dlfcn.h' (moved to
1041 gdbsupport/common.m4).
1042 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
1044 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
1045 * compile/compile-c-support.c: Include
1046 'gdbsupport/gdb-dlfcn.h'.
1047 * gdbsupport/common.m4: Check for 'dlfcn.h'.
1048 * gdb-dlfcn.c: Move to...
1049 * gdbsupport/gdb-dlfcn.c: ... here.
1050 * gdb-dlfcn.h: Move to...
1051 * gdbsupport/gdb-dlfcn.h: ... here.
1053 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
1055 * nios2-tdep.c (struct reg_value): Improve comments. Make
1056 the offset field signed.
1058 2019-08-22 Christian Biesinger <cbiesinger@google.com>
1060 * python/lib/gdb/__init__.py (_execute_file): New function.
1061 * python/python.c (python_run_simple_file): Call gdb._execute_file
1064 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
1066 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
1067 all uses as this was never set to anything but a zero value.
1069 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
1071 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
1073 2019-08-21 Christian Biesinger <cbiesinger@google.com>
1075 * tui/tui-data.h (tui_gen_win_info): Add an =default
1076 move constructor, required by some GCC versions.
1078 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
1080 * go32-nat.c (go32_sysinfo): Add hygon_p.
1082 2019-08-20 Tom Tromey <tom@tromey.com>
1084 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
1085 line_from_reg_element_no, first_reg_element_no_inline,
1086 display_all_data, delete_data_content_windows,
1087 erase_data_content>: Now private.
1089 2019-08-20 Tom Tromey <tom@tromey.com>
1091 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
1092 (tui_unhighlight_win, tui_highlight_win)
1093 (tui_win_info::make_window): Update.
1094 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
1096 2019-08-20 Tom Tromey <tom@tromey.com>
1098 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
1099 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
1100 (MAX_PID_WIDTH): Move to tui-stack.c.
1101 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
1102 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
1103 (MAX_PID_WIDTH): Move from tui-data.h.
1105 2019-08-20 Tom Tromey <tom@tromey.com>
1107 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
1108 * tui/tui-wingeneral.c (box_win): Change type of win_info.
1110 (tui_gen_win_info::make_window): Rename from tui_make_window.
1111 (tui_win_info::make_window): New method.
1112 (tui_gen_win_info::make_visible): Update.
1113 * tui/tui-source.c (tui_source_window::set_contents): Update.
1114 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1115 (tui_data_window::display_registers_from): Update.
1116 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1117 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
1121 (struct tui_win_info) <make_window>: Declare.
1122 <can_box>: Now virtual.
1123 <title>: New member.
1124 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
1125 * tui/tui-command.c (tui_cmd_window::resize): Update.
1127 2019-08-20 Tom Tromey <tom@tromey.com>
1129 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
1130 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1131 (tui_data_window::check_register_values): Update.
1133 2019-08-20 Tom Tromey <tom@tromey.com>
1135 * tui/tui-regs.h (struct tui_data_window): Use
1136 DISABLE_COPY_AND_ASSIGN.
1137 <regs_content>: Change type, removing unique_ptr.
1138 <tui_data_window>: Add move constructor.
1139 * tui/tui-regs.c (tui_data_window::show_registers)
1140 (tui_data_window::show_register_group)
1141 (tui_data_window::display_registers_from)
1142 (tui_data_window::display_registers_from)
1143 (tui_data_window::first_data_item_displayed)
1144 (tui_data_window::delete_data_content_windows)
1145 (tui_data_window::rerender, tui_data_window::refresh_window)
1146 (tui_data_window::check_register_values): Update.
1148 2019-08-20 Tom Tromey <tom@tromey.com>
1150 * tui/tui-regs.h (struct tui_data_window) <show_registers,
1151 show_register_group>: Declare.
1152 (tui_show_register_group): Don't declare.
1153 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
1155 (tui_data_window::show_register_group): Rename from
1156 tui_show_register_group.
1157 (tui_data_window::check_register_values, tui_reg_command):
1159 * tui/tui-layout.c (tui_set_layout): Update.
1161 2019-08-20 Tom Tromey <tom@tromey.com>
1163 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
1165 (tui_check_register_values): Don't declare.
1166 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
1167 from tui_check_register_values.
1168 * tui/tui-hooks.c (tui_register_changed): Update.
1170 2019-08-20 Tom Tromey <tom@tromey.com>
1172 * tui/tui-regs.c (tui_reg_layout): Move later.
1173 (tui_show_registers): Don't enable TUI mode or change layout.
1175 2019-08-20 Tom Tromey <tom@tromey.com>
1177 * tui/tui-regs.h (struct tui_data_item_window)
1178 <~tui_data_item_window>: Remove.
1179 <content>: Now a unique_xmalloc_ptr.
1180 * tui/tui-regs.c (tui_register_format): Return a
1182 (tui_get_register): Update.
1183 (~tui_data_item_window): Remove.
1184 (tui_data_window::display_registers_from, tui_display_register):
1186 * tui/tui-io.h (tui_expand_tabs): Update.
1187 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
1188 Remove "col" parameter.
1190 2019-08-20 Tom Tromey <tom@tromey.com>
1192 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
1194 * tui/tui-regs.c (~tui_data_item_window): Update.
1196 2019-08-20 Tom Tromey <tom@tromey.com>
1198 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
1201 2019-08-20 Tom Tromey <tom@tromey.com>
1203 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
1205 2019-08-20 Tom Tromey <tom@tromey.com>
1207 * tui/tui-source.h (struct tui_source_window): Update.
1208 * tui/tui-regs.c (tui_show_registers): Update.
1209 * tui/tui-disasm.h (struct tui_disasm_window): Update.
1210 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
1211 (NO_REGS_STRING): Remove defines.
1213 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
1215 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
1216 unnecessary thread walk if remote doesn't support the packet.
1218 2019-08-19 Tom Tromey <tromey@adacore.com>
1220 * python/py-value.c (value_has_field): Fix indentation.
1222 2019-08-19 Tom Tromey <tromey@adacore.com>
1224 * printcmd.c (do_one_display, info_display_command): Update.
1225 * block.h (contained_in): Return bool. Add allow_nested
1227 * block.c (contained_in): Return bool. Add allow_nested
1230 2019-08-19 Tom Tromey <tom@tromey.com>
1232 * configure: Rebuild.
1233 * configure.ac: Disallow the combination of -static-libstdc++ and
1235 * source-cache.c (get_language_name): Handle rust.
1236 (source_cache::get_source_lines): Ignore highlighting exceptions.
1238 2019-08-16 Tom Tromey <tom@tromey.com>
1240 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
1241 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
1242 (struct tui_source_window_base) <make_visible, refresh_window,
1243 resize>: Remove methods.
1244 <execution_info>: Remove field.
1245 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
1246 (tui_show_source_line, tui_source_window_base)
1247 (~tui_source_window_base): Update.
1248 (tui_source_window_base::resize)
1249 (tui_source_window_base::make_visible)
1250 (tui_source_window_base::refresh_window): Remove.
1251 (tui_source_window_base::update_exec_info): Update.
1252 * tui/tui-source.c (tui_source_window::set_contents): Update.
1253 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1255 2019-08-16 Tom Tromey <tom@tromey.com>
1257 * tui/tui-hooks.c (tui_remove_hooks): Don't set
1258 deprecated_query_hook.
1260 2019-08-16 Tom Tromey <tom@tromey.com>
1262 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
1263 (tui_update_source_windows_with_line): Update.
1264 * tui/tui-source.h (struct tui_source_window)
1265 <show_symtab_source>: Declare.
1266 (tui_show_symtab_source): Don't declare.
1267 * tui/tui-source.c (tui_show_symtab_source): Rename from
1268 tui_show_symtab_source.
1270 2019-08-16 Tom Tromey <tom@tromey.com>
1272 * tui/tui-winsource.h (struct tui_source_window_base)
1273 <set_contents>: Declare.
1274 * tui/tui-winsource.c
1275 (tui_source_window_base::update_source_window_as_is): Update.
1276 * tui/tui-source.h (struct tui_source_window) <set_contents>:
1278 (tui_set_source_content): Don't declare.
1279 * tui/tui-source.c (tui_source_window::set_contents): Rename from
1280 tui_set_source_content.
1281 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
1283 (tui_set_disassem_content): Don't declare.
1284 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
1285 tui_set_disassem_content.
1287 2019-08-16 Tom Tromey <tom@tromey.com>
1289 * tui/tui-winsource.h (struct tui_source_window_base)
1290 <update_breakpoint_info>: Declare.
1291 (tui_update_breakpoint_info): Don't declare.
1292 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
1293 (tui_update_all_breakpoint_info): Update.
1294 (tui_source_window_base::update_breakpoint_info): Rename from
1295 tui_update_breakpoint_info.
1296 (tui_source_window_base::update_exec_info): Update.
1298 2019-08-16 Tom Tromey <tom@tromey.com>
1300 * tui/tui-winsource.h (struct tui_source_window_base)
1301 <update_source_window>: Declare.
1302 (tui_update_source_window): Don't declare.
1303 * tui/tui-winsource.c
1304 (tui_source_window_base::update_source_window): Rename from
1305 tui_update_source_window.
1306 (tui_source_window_base::rerender): Update.
1307 * tui/tui-source.c (tui_source_window::maybe_update): Update.
1308 * tui/tui-disasm.c (tui_show_disassem)
1309 (tui_show_disassem_and_update_source)
1310 (tui_disasm_window::maybe_update): Update.
1312 2019-08-16 Tom Tromey <tom@tromey.com>
1314 * tui/tui-winsource.h (struct tui_source_window_base)
1315 <update_source_window_as_is>: Declare.
1316 (tui_update_source_window_as_is): Don't declare.
1317 * tui/tui-winsource.c (tui_update_source_window): Update
1318 (tui_source_window_base::update_source_window_as_is): Rename from
1319 tui_update_source_window_as_is.
1320 (tui_source_window_base::refill): Update.
1321 * tui/tui-source.c (tui_show_symtab_source): Update.
1322 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
1325 2019-08-16 Tom Tromey <tom@tromey.com>
1327 * tui/tui-winsource.h (tui_update_source_window)
1328 (tui_update_source_window_as_is): Remove "noerror" parameter.
1329 * tui/tui-winsource.c (tui_update_source_window)
1330 (tui_update_source_window_as_is): Remove "noerror" parameter.
1331 (tui_update_source_windows_with_addr)
1332 (tui_update_source_windows_with_line)
1333 (tui_source_window_base::rerender)
1334 (tui_source_window_base::refill): Update.
1335 * tui/tui-source.h (tui_set_source_content)
1336 (tui_show_symtab_source): Remove "noerror" parameter.
1337 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
1339 (tui_show_symtab_source): Likewise.
1340 (tui_source_window::maybe_update): Update.
1341 * tui/tui-disasm.c (tui_show_disassem)
1342 (tui_show_disassem_and_update_source)
1343 (tui_disasm_window::do_scroll_vertical)
1344 (tui_disasm_window::maybe_update): Update.
1346 2019-08-16 Tom Tromey <tom@tromey.com>
1348 * tui/tui.c (tui_is_window_visible): Update.
1349 * tui/tui-wingeneral.c (tui_make_window)
1350 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
1351 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
1352 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
1353 (tui_set_win_height_command, parse_scrolling_args): Update.
1354 * tui/tui-source.c (tui_source_window::style_changed): Update.
1355 * tui/tui-regs.c (tui_show_registers)
1356 (tui_data_window::first_data_item_displayed)
1357 (tui_data_window::delete_data_content_windows)
1358 (tui_check_register_values, tui_reg_command): Update.
1359 * tui/tui-disasm.c (tui_show_disassem): Update.
1360 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
1362 <is_visible>: Remove field.
1363 * tui/tui-data.c (tui_next_win, tui_prev_win)
1364 (tui_delete_invisible_windows): Update.
1366 2019-08-16 Tom Tromey <tom@tromey.com>
1368 * tui/tui-winsource.h (struct tui_source_window_base)
1369 <m_has_locator>: Remove.
1370 * tui/tui-layout.c (show_source_disasm_command, show_data)
1371 (show_source_or_disasm_and_command): Update.
1373 2019-08-16 Alan Hayward <alan.hayward@arm.com>
1375 * NEWS (Other MI changes): New subsection.
1376 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
1377 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
1378 * arch-utils.c (default_get_pc_address_flags): New function.
1379 * arch-utils.h (default_get_pc_address_flags): New declaration.
1380 * gdbarch.sh: Add get_pc_address_flags.
1381 * gdbarch.c: Regenerate.
1382 * gdbarch.h: Likewise.
1383 * stack.c (print_pc): New function.
1384 (print_frame_info) (print_frame): Call print_pc.
1386 2019-08-16 Tom de Vries <tdevries@suse.de>
1388 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
1389 print_objfile_section_info.
1391 2019-08-15 Tom Tromey <tom@tromey.com>
1393 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
1394 calling update_cmdwin_start_line.
1395 * tui/tui-winsource.h (struct tui_source_window_base)
1396 <do_make_visible_with_new_height, set_new_height>: Don't declare.
1397 <rerender>: Declare.
1398 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
1400 (tui_source_window_base::set_new_height): Remove.
1401 (tui_source_window_base::rerender): Rename from
1402 do_make_visible_with_new_height.
1403 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
1405 (tui_win_info::make_invisible_and_set_new_height)
1406 (tui_win_info::make_visible_with_new_height): Remove.
1407 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
1409 * tui/tui-stack.c (tui_locator_window::rerender): New method.
1410 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
1411 do_make_visible_with_new_height>: Don't declare.
1412 <rerender>: Declare.
1413 * tui/tui-regs.c (tui_data_window::rerender): Rename from
1415 (tui_data_window::do_make_visible_with_new_height): Remove.
1416 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
1417 call tui_show_locator_content.
1418 (tui_gen_win_info::resize): Call rerender.
1419 (show_source_or_disasm_and_command): Don't call
1420 tui_show_locator_content.
1421 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
1423 (struct tui_win_info) <rerender>: Declare.
1424 <set_new_height, make_invisible_and_set_new_height,
1425 make_visible_with_new_height>: Don't declare.
1426 * tui/tui-data.c (tui_win_list::rerender): New method.
1427 * tui/tui-command.h (struct tui_cmd_window)
1428 <do_make_visible_with_new_height>: Don't declare.
1430 (tui_cmd_window::do_make_visible_with_new_height): Remove.
1432 2019-08-15 Tom Tromey <tromey@adacore.com>
1434 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
1435 * ada-lang.c (ada_enum_name): Likewise.
1437 2019-08-15 Christian Biesinger <cbiesinger@google.com>
1439 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
1441 (GdbOutputErrorFile): Likewise.
1442 (global scope): Adjust constructor calls to GdbOutput{,Error}File
1444 (execute_unwinders): Rename to have a leading underscore.
1445 (auto_load_packages): Likewise.
1446 (global scope): Adjust call to auto_load_packages accordingly.
1447 (GdbSetPythonDirectory): Likewise.
1448 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
1449 instead of execute_unwinders.
1451 2019-08-15 Tom Tromey <tom@tromey.com>
1453 * tui/tui-layout.c (show_layout, show_source_disasm_command)
1454 (show_data): Don't change window visibility.
1455 (tui_gen_win_info::resize): Remove special case for command
1456 window. Use wresize, when available.
1457 (show_source_or_disasm_and_command): Don't change window
1459 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
1460 <make_visible>: New method.
1461 * tui/tui-command.c (tui_cmd_window::resize): New method.
1463 2019-08-15 Tom Tromey <tom@tromey.com>
1465 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
1466 (struct tui_source_windows): New.
1467 * tui/tui-winsource.c (tui_display_main): Update.
1468 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
1469 (new_height_ok, parse_scrolling_args): Update.
1470 * tui/tui-layout.c (show_layout, show_data): Update.
1471 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
1472 (tui_add_to_source_windows): Don't declare.
1473 * tui/tui-data.c (source_windows, tui_source_windows)
1474 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
1476 2019-08-15 Tom Tromey <tom@tromey.com>
1478 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
1480 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
1481 * tui/tui-layout.c (show_source_disasm_command, show_data):
1483 (tui_gen_win_info::resize): Rename.
1484 (show_source_or_disasm_and_command): Update.
1485 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
1488 2019-08-15 Tom Tromey <tom@tromey.com>
1490 * tui/tui-stack.c (tui_initialize_static_data): Remove.
1491 * tui/tui-interp.c (tui_interp::init): Don't call
1492 tui_initialize_static_data.
1493 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
1495 2019-08-15 Tom Tromey <tom@tromey.com>
1497 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
1498 examine tui_win_list.
1500 2019-08-15 Tom Tromey <tom@tromey.com>
1502 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
1503 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
1504 tui_clear_source_content.
1505 (tui_clear_source_content): Remove.
1506 (tui_source_window_base::do_erase_source_content): Hoist call to
1508 * tui/tui-stack.c (tui_show_frame_info): Don't call
1509 tui_clear_source_content.
1511 2019-08-15 Tom Tromey <tom@tromey.com>
1513 * tui/tui-winsource.h (struct tui_source_window_base)
1514 <do_erase_source_content>: New method.
1515 <erase_source_content>: New method.
1516 (tui_erase_source_content): Don't declare.
1517 * tui/tui-winsource.c (tui_clear_source_content): Update.
1518 (tui_source_window_base::do_erase_source_content): Rename from
1519 tui_erase_source_content.
1520 (tui_source_window_base::show_source_content): Update.
1521 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
1522 * tui/tui-source.h (struct tui_source_window)
1523 <erase_source_content>: New method.
1524 * tui/tui-disasm.h (struct tui_disasm_window)
1525 <erase_source_content>: New method.
1527 2019-08-15 Tom Tromey <tom@tromey.com>
1529 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
1530 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
1532 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
1533 * tui/tui-source.c (tui_set_source_content): Update.
1534 * tui/tui-disasm.c (tui_set_disassem_content): Update.
1536 2019-08-15 Tom Tromey <tom@tromey.com>
1538 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
1539 * tui/tui-winsource.c (tui_line_is_displayed): Move to
1541 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
1543 * tui/tui-source.c (tui_source_window::line_is_displayed): New
1545 (tui_source_window::maybe_update): Update.
1547 2019-08-15 Tom Tromey <tom@tromey.com>
1549 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
1550 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
1552 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
1554 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
1556 (tui_disasm_window::maybe_update): Update.
1558 2019-08-15 Tom Tromey <tom@tromey.com>
1560 * tui/tui-winsource.h (struct tui_source_window_base)
1561 <maybe_update>: Declare.
1562 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
1564 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
1566 * tui/tui-source.c (tui_source_window::maybe_update): New method.
1567 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
1569 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
1571 2019-08-15 Tom Tromey <tom@tromey.com>
1573 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
1575 2019-08-15 Tom Tromey <tom@tromey.com>
1577 * tui/tui-wingeneral.c: Include tui-stack.h.
1578 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
1579 (struct tui_locator_window): Move from tui-data.h.
1580 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
1581 (tui_initialize_static_data): Move from tui-data.c.
1582 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
1583 (struct tui_locator_window): Move to tui-stack.c.
1584 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
1585 (tui_initialize_static_data): Move to tui-stack.c.
1587 2019-08-15 Tom Tromey <tom@tromey.com>
1589 * tui/tui-layout.c (show_source_disasm_command)
1590 (show_source_or_disasm_and_command): Use make_visible method, not
1592 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
1595 2019-08-15 Tom Tromey <tom@tromey.com>
1597 * tui/tui-wingeneral.h (tui_make_window): Update.
1598 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
1600 (tui_gen_win_info::make_visible): Update.
1601 * tui/tui-regs.c (tui_data_window::display_registers_from):
1603 * tui/tui-layout.c (show_source_disasm_command)
1604 (show_source_or_disasm_and_command): Update.
1605 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
1606 (enum tui_box): Remove.
1607 (struct tui_win_info) <can_box>: New method.
1608 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
1611 2019-08-15 Tom de Vries <tdevries@suse.de>
1613 * linux-nat-trad.c: Include gdbarch.h.
1615 2019-08-14 Alan Hayward <alan.hayward@arm.com>
1617 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
1620 2019-08-14 Tom Tromey <tromey@adacore.com>
1622 * darwin-nat.c: Include gdbarch.h.
1623 * darwin-nat-info.c: Include gdbarch.h.
1625 2019-08-13 Tom Tromey <tom@tromey.com>
1627 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
1629 * tui/tui-data.c (tui_initialize_static_data): Update.
1631 2019-08-13 Tom Tromey <tom@tromey.com>
1633 * tui/tui-winsource.h (struct tui_exec_info_window)
1634 <~tui_exec_info_window, maybe_allocate_content, get_content,
1636 (struct tui_source_window_base) <set_exec_info_content,
1637 show_exec_info_content>: Don't declare.
1638 * tui/tui-winsource.c
1639 (tui_exec_info_window::maybe_allocate_content): Remove.
1640 (tui_source_window_base::update_exec_info): Rename from
1641 set_exec_info_content.
1642 (tui_source_window_base::show_exec_info_content)
1643 (tui_source_window_base::update_exec_info): Remove.
1645 2019-08-13 Tom Tromey <tom@tromey.com>
1647 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
1649 * tui/tui-winsource.c (tui_update_source_window_as_is)
1650 (tui_update_source_windows_with_addr, tui_erase_source_content):
1652 (tui_clear_exec_info_content): Remove.
1654 2019-08-13 Tom Tromey <tom@tromey.com>
1656 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
1658 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
1659 call tui_erase_exec_info_content.
1660 (tui_clear_exec_info_content): Rename from
1661 tui_erase_exec_info_content.
1662 (tui_clear_exec_info_content): Delete.
1664 2019-08-13 Tom Tromey <tom@tromey.com>
1666 * tui/tui-winsource.h (struct tui_source_window_base)
1667 <show_exec_info_content>: Declare.
1668 (tui_show_exec_info_content): Don't declare.
1669 * tui/tui-winsource.c
1670 (tui_source_window_base::show_exec_info_content): Rename from
1671 tui_show_exec_info_content.
1672 (tui_source_window_base::update_exec_info): Update.
1674 2019-08-13 Tom Tromey <tom@tromey.com>
1676 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
1677 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
1678 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
1679 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
1680 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
1681 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
1684 2019-08-13 Tom Tromey <tom@tromey.com>
1686 * tui/tui-winsource.h (struct tui_source_window_base)
1687 <update_exec_info>: Declare.
1688 (tui_update_exec_info): Don't declare.
1689 * tui/tui-winsource.c (tui_update_source_window_as_is)
1690 (tui_source_window_base::refresh_all)
1691 (tui_update_all_breakpoint_info): Update.
1692 (tui_source_window_base::update_exec_info): Rename from
1693 tui_update_exec_info.
1694 * tui/tui-stack.c (tui_show_frame_info): Update.
1696 2019-08-13 Tom Tromey <tom@tromey.com>
1698 * tui/tui-winsource.h (struct tui_source_window_base)
1699 <set_exec_info_content>: Declare.
1700 (tui_set_exec_info_content): Don't declare.
1701 * tui/tui-winsource.c
1702 (tui_source_window_base::set_exec_info_content): Rename from
1703 tui_set_exec_info_content.
1704 (tui_update_exec_info): Update.
1706 2019-08-13 Tom Tromey <tom@tromey.com>
1708 * tui/tui-winsource.h (struct tui_source_window_base)
1709 <show_source_content>: Declare.
1710 (tui_show_source_content): Don't declare.
1711 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1712 (tui_source_window_base::show_source_content): Rename from
1713 tui_show_source_content.
1714 (tui_source_window_base::refresh_all): Update.
1715 * tui/tui-layout.c (show_source_disasm_command)
1716 (show_source_or_disasm_and_command): Update.
1718 2019-08-13 Tom Tromey <tom@tromey.com>
1720 * tui/tui-winsource.c (tui_erase_source_content)
1721 (tui_show_source_content, tui_source_window_base::refresh_all):
1723 * tui/tui-wingeneral.h
1724 (tui_check_and_display_highlight_if_needed): Don't declare.
1725 * tui/tui-wingeneral.c
1726 (tui_win_info::check_and_display_highlight_if_needed): Rename from
1727 check_and_display_highlight_if_needed.
1728 * tui/tui-win.c (tui_rehighlight_all)
1729 (tui_win_info::make_visible_with_new_height): Update.
1730 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
1731 (tui_data_window::erase_data_content)
1732 (tui_data_window::display_all_data): Update.
1733 * tui/tui-data.h (struct tui_win_info)
1734 <check_and_display_highlight_if_needed>: Declare.
1736 2019-08-13 Tom Tromey <tom@tromey.com>
1738 * tui/tui-win.c (tui_resize_all): Call
1739 tui_delete_invisible_windows.
1740 * tui/tui-layout.c (show_layout): Call
1741 tui_delete_invisible_windows.
1742 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
1743 * tui/tui-data.c (tui_delete_invisible_windows): New function.
1745 2019-08-13 Tom Tromey <tom@tromey.com>
1747 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
1748 tui_add_win_to_layout.
1750 2019-08-13 Tom Tromey <tom@tromey.com>
1752 * tui/tui-layout.h (tui_default_win_height): Don't declare.
1753 * tui/tui-layout.c (tui_default_win_height): Now static.
1755 2019-08-13 Tom Tromey <tom@tromey.com>
1757 * tui/tui-layout.c (show_layout): Unify all layout cases into a
1759 (show_source_disasm_command, show_source_or_disasm_and_command):
1760 Don't check current layout.
1762 2019-08-13 Tom Tromey <tom@tromey.com>
1764 * tui/tui-wingeneral.c (make_all_visible): Remove.
1765 (tui_make_all_invisible): Simplify.
1766 * tui/tui-layout.c (tui_make_all_invisible): Move from
1767 tui-wingeneral.c; simplify.
1768 (show_layout): Hoist call to tui_make_all_invisible.
1769 (show_data): Don't call tui_make_all_invisible.
1771 2019-08-13 Tom Tromey <tom@tromey.com>
1773 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
1774 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
1776 2019-08-13 Tom Tromey <tom@tromey.com>
1778 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
1780 (show_source_disasm_command, show_data)
1781 (show_source_or_disasm_and_command): Don't use
1782 tui_set_current_layout_to.
1783 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
1784 * tui/tui-data.c (current_layout, tui_current_layout): Move to
1786 (tui_set_current_layout_to): Remove.
1788 2019-08-13 Tom Tromey <tom@tromey.com>
1790 * tui/tui-layout.c (tui_set_layout): Update.
1791 * tui/tui-data.h (struct tui_layout_def): Remove.
1792 (tui_layout_def): Don't declare.
1793 * tui/tui-data.c (layout_def): Remove.
1794 (tui_layout_def): Remove.
1796 2019-08-13 Tom Tromey <tom@tromey.com>
1798 * tui/tui-winsource.h (struct tui_source_window_base)
1799 <clear_detail>: No longer "override".
1800 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
1801 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
1802 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
1803 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
1805 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
1807 2019-08-13 Tom Tromey <tromey@adacore.com>
1809 * tracepoint.c: Don't include readline.h or history.h.
1811 2019-08-12 Tom Tromey <tom@tromey.com>
1813 * configure: Rebuild.
1814 * configure.ac: Check for readline 7.
1815 * NEWS: Mention readline 7 requirement.
1818 2019-08-12 Tom Tromey <tom@tromey.com>
1820 * mingw-hdep.c (gdb_select): Remove readline hack.
1822 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1824 * blockframe.c (find_pc_partial_function): Set *block to nullptr
1825 when the function fails.
1827 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
1829 * s390-tdep.c (s390_type_align): New function.
1830 (s390_gdbarch_init): Set it as type_align gdbarch method.
1832 2019-08-09 Tom de Vries <tdevries@suse.de>
1835 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
1836 pc_low with relocation offset.
1838 2019-08-07 Tom Tromey <tromey@adacore.com>
1840 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
1841 (print_frame_args): Update.
1842 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
1844 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1845 * frame.h (struct frame_arg): Add initializers.
1846 <error>: Now a unique_xmalloc_ptr.
1848 2019-08-07 Alan Hayward <alan.hayward@arm.com>
1850 * NEWS: Expand the Pointer Authentication entry.
1851 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
1852 (aarch64_frame_unmask_lr): ... to this.
1853 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
1854 Call aarch64_frame_unmask_lr.
1855 * frame.c (struct frame_info): Add "masked" variable.
1856 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
1857 (fprint_frame): Check for masked pc.
1858 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
1860 * python/py-framefilter.c (py_print_frame): Check for masked pc.
1861 * stack.c (print_frame): Check for masked pc.
1863 2019-08-06 Tom Tromey <tom@tromey.com>
1865 * stabsread.c (patch_block_stabs, read_one_struct_field)
1866 (read_enum_type): Use obstack_strndup.
1867 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
1868 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
1869 * dwarf2read.c (guess_full_die_structure_name)
1870 (anonymous_struct_prefix): Use obstack_strndup.
1871 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
1872 * c-exp.y (yylex): Use obstack_strndup.
1873 * ada-exp.y (write_object_renaming, write_ambiguous_var)
1874 (write_var_or_type): Use obstack_strndup.
1876 2019-08-06 Tom Tromey <tom@tromey.com>
1878 * symfile.c (reread_symbols): Use obstack_strdup.
1879 * stabsread.c (read_type): Use obstack_strdup.
1880 * gdb_obstack.h (obstack_strdup): New overload.
1881 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
1882 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
1883 (dwarf2_canonicalize_name): Use obstack_strdup.
1884 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
1885 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
1888 2019-08-06 Tom Tromey <tom@tromey.com>
1890 * gdb_obstack.h (obstack_strdup): Define.
1891 * gdb_obstack.c (obstack_strdup): Don't define.
1893 2019-08-06 Tom Tromey <tom@tromey.com>
1895 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
1897 * typeprint.c (typedef_hash_table::find_global_typedef): Use
1899 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
1900 * stabsread.c (common_block_start): Use obstack_strdup.
1901 * objfiles.c (set_objfile_main_name, objfile): Use
1903 * namespace.c (add_using_directive): Use obstack_strdup.
1904 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
1905 * jit.c (finalize_symtab): Use obstack_strdup.
1906 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
1907 (guess_partial_die_structure_name, partial_die_info::fixup)
1908 (dwarf2_name): Use obstack_strdup.
1909 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
1911 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
1912 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
1914 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
1916 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1918 * unittests/help-doc-selftests.c: New file.
1919 * Makefile.in: Add the new file.
1921 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1923 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
1924 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
1925 the full first line, except when FOR_VALUE_PREFIX. In this case,
1926 the trailing '.' is not output, and the first character is uppercased.
1927 (print_help_for_command): Update call to print_doc_line.
1928 (print_doc_of_command): Likewise.
1929 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
1930 * cli/cli-option.c (append_indented_doc): Do not append newline.
1931 (build_help_option): Append newline after first appended_indented_doc
1932 only if a second call is done.
1933 (build_help): Append 2 new lines before each option, except the first
1935 * compile/compile.c (_initialize_compile): Add new lines after
1936 %OPTIONS%, when not at the end of the help.
1937 Change help doc or code
1938 producing the help doc to respect the invariants.
1939 * maint-test-options.c (_initialize_maint_test_options): Likewise.
1940 Also removed the new line after 'Options:', as all other commands
1941 do not put an empty line between 'Options:' and the first option.
1942 * printcmd.c (_initialize_printcmd): Likewise.
1943 * stack.c (_initialize_stack): Likewise.
1944 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
1945 incorrectly telling COMMAND is optional.
1946 * ada-lang.c (_initialize_ada_language): Change help doc or code
1947 producing the help doc to respect the invariants.
1948 * ada-tasks.c (_initialize_ada_tasks): Likewise.
1949 * breakpoint.c (_initialize_breakpoint): Likewise.
1950 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
1951 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
1952 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
1953 * cli/cli-style.c (cli_style_option::add_setshow_commands,
1954 _initialize_cli_style): Likewise.
1955 * corelow.c (core_target_info): Likewise.
1956 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
1957 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
1958 * filesystem.c (_initialize_filesystem): Likewise.
1959 * frame.c (_initialize_frame): Likewise.
1960 * gnu-nat.c (add_task_commands): Likewise.
1961 * infcall.c (_initialize_infcall): Likewise.
1962 * infcmd.c (_initialize_infcmd): Likewise.
1963 * interps.c (_initialize_interpreter): Likewise.
1964 * language.c (_initialize_language): Likewise.
1965 * linux-fork.c (_initialize_linux_fork): Likewise.
1966 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
1967 * maint.c (_initialize_maint_cmds): Likewise.
1968 * memattr.c (_initialize_mem): Likewise.
1969 * printcmd.c (_initialize_printcmd): Likewise.
1970 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
1972 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
1973 * record-btrace.c (_initialize_record_btrace): Likewise.
1974 * record-full.c (_initialize_record_full): Likewise.
1975 * record.c (_initialize_record): Likewise.
1976 * regcache-dump.c (_initialize_regcache_dump): Likewise.
1977 * regcache.c (_initialize_regcache): Likewise.
1978 * remote.c (add_packet_config_cmd, init_remote_threadtests,
1979 _initialize_remote): Likewise.
1980 * ser-tcp.c (_initialize_ser_tcp): Likewise.
1981 * serial.c (_initialize_serial): Likewise.
1982 * skip.c (_initialize_step_skip): Likewise.
1983 * source.c (_initialize_source): Likewise.
1984 * stack.c (_initialize_stack): Likewise.
1985 * symfile.c (_initialize_symfile): Likewise.
1986 * symtab.c (_initialize_symtab): Likewise.
1987 * target-descriptions.c (_initialize_target_descriptions): Likewise.
1988 * top.c (init_main): Likewise.
1989 * tracefile-tfile.c (tfile_target_info): Likewise.
1990 * tracepoint.c (_initialize_tracepoint): Likewise.
1991 * tui/tui-win.c (_initialize_tui_win): Likewise.
1992 * utils.c (add_internal_problem_command): Likewise.
1993 * valprint.c (value_print_option_defs): Likewise.
1995 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
1998 * configure.ac: Drop enable-libmcheck support.
1999 * configure, config.in: Rebuild.
2000 * libmcheck.m4: Remove.
2001 * acinclude.m4: Don't include it.
2002 * Makefile.in: Don't distribute it.
2003 * top.c (print_gdb_configuration): Don't mention it.
2005 2019-08-06 Tom Tromey <tom@tromey.com>
2007 * utils.c (set_output_style): Sometimes pass stream to
2009 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
2010 * record-btrace.c (btrace_insn_history): Update.
2011 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
2013 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
2014 Update initializers.
2015 <m_uiout>: New field.
2017 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2018 Remove "uiout" parameter.
2019 (dump_insns): Update.
2020 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
2021 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
2023 2019-08-06 Christian Biesinger <cbiesinger@google.com>
2025 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
2026 (error_in_psymtab_expansion): Likewise.
2027 (lookup_symbol_via_quick_fns): Likewise.
2028 (basic_lookup_transparent_type_quick): Likewise.
2029 (basic_lookup_transparent_type_1): Likewise.
2031 2019-08-06 Tom Tromey <tromey@adacore.com>
2033 * source.c (last_source_error): Now bool.
2034 (print_source_lines_base): Make "noprint" bool. Only open
2035 source file when last_source_visited changes.
2037 2019-08-06 Tom Tromey <tromey@adacore.com>
2039 * annotate.c (annotate_source_line): Use g_source_cache.
2040 * source-cache.c (source_cache::get_plain_source_lines): Change
2041 parameters. Populate m_offset_cache.
2042 (source_cache::ensure): New method.
2043 (source_cache::get_line_charpos): New method.
2044 (extract_lines): Move lower. Change parameters.
2045 (source_cache::get_source_lines): Move lower.
2046 * source-cache.h (class source_cache): Update comment.
2047 <get_line_charpos>: New method.
2048 <get_source_lines>: Update comment.
2049 <clear>: Clear m_offset_cache.
2050 <get_plain_source_lines>: Change parameters.
2051 <ensure>: New method
2052 <m_offset_cache>: New member.
2053 * source.c (forget_cached_source_info_for_objfile): Update.
2054 (info_source_command): Use g_source_cache.
2055 (find_source_lines, open_source_file_with_line_charpos): Remove.
2056 (print_source_lines_base, search_command_helper): Use g_source_cache.
2057 * source.h (open_source_file_with_line_charpos): Don't declare.
2058 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
2059 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
2062 2019-08-06 Tom Tromey <tromey@adacore.com>
2064 * source-cache.c (source_cache::get_plain_source_lines):
2065 Remove "first_line" and "last_line" parameters.
2066 (source_cache::get_source_lines): Cache plain text.
2067 * source-cache.h (class source_cache)
2068 <get_plain_source_lines>: Update.
2070 2019-08-06 Tom Tromey <tromey@adacore.com>
2072 * source-cache.c (extract_lines): No longer a method.
2073 Changed type of parameter. Include final newline.
2074 (selftests::extract_lines_test): New function.
2075 (_initialize_source_cache): Likewise.
2076 * source-cache.h (class source_cache)
2077 <extract_lines>: Don't declare.
2079 2019-08-06 Tom Tromey <tromey@adacore.com>
2081 * breakpoint.c (init_breakpoint_sal): Update.
2082 (breakpoint): Update.
2083 * breakpoint.h (struct breakpoint) <filter>: Now a
2086 2019-08-05 Christian Biesinger <cbiesinger@google.com>
2088 * NEWS: Mention dictionary access on blocks.
2089 * python/py-block.c (blpy_getitem): New function.
2090 (block_object_as_mapping): New struct.
2091 (block_object_type): Use new struct for tp_as_mapping field.
2093 2019-08-05 Christian Biesinger <cbiesinger@google.com>
2095 * objfiles.h (objfile): Add a comment describing partial symbols.
2097 2019-08-05 Tom Tromey <tromey@adacore.com>
2099 * compile/compile.c (_initialize_compile): Use _(), not N_().
2100 * thread.c (_initialize_thread): Use _(), not N_().
2101 * stack.c (_initialize_stack): Use _(), not N_().
2102 * printcmd.c (_initialize_printcmd): Use _(), not N_().
2104 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2106 * dwarf2read.c (struct dw2_symtab_iterator):
2107 <want_specific_block>: Remove.
2108 <block_index>: Change type to gdb::optional.
2109 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
2110 change type of BLOCK_INDEX parameter to gdb::optional.
2111 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
2112 (dw2_lookup_symbol): Don't pass argument for
2113 WANT_SPECIFIC_BLOCK.
2114 (dw2_expand_symtabs_for_function): Don't pass argument for
2115 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
2116 (class dw2_debug_names_iterator)
2117 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
2118 parameter, change BLOCK_INDEX type to gdb::optional.
2119 <m_want_specific_block>: Remove.
2120 <m_block_index>: Change type to gdb::optional.
2121 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
2122 gdb::optional. Re-write in function of gdb::optional.
2123 (dw2_debug_names_lookup_symbol): Don't pass argument for
2124 WANT_SPECIFIC_BLOCK.
2125 (dw2_debug_names_expand_symtabs_for_function): Don't pass
2126 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
2129 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2131 * NEWS: Mention changes to "info sources" command.
2133 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2135 * symtab.c (filename_partial_match_opts): New struct type.
2136 (struct output_source_filename_data): New members
2137 regexp, c_regexp, partial_match.
2138 (output_source_filename): Use new members to decide to print file.
2139 (info_sources_option_defs): New variable.
2140 (make_info_sources_options_def_group, print_info_sources_header,
2141 info_sources_command_completer):
2143 (info_sources_command): Read new optional arguments.
2144 (_initialize_symtab): Update info sources help.
2146 2019-08-02 Alexandre Oliva <oliva@adacore.com>
2148 * ada-lang.c (exception_support_info_v0): Renamed from...
2149 (default_exception_support_info): ... this. Create new
2151 (ada_has_this_exception_support): Look up catch_handlers_sym.
2152 (ada_exception_support_info_sniffer): Try v0 after default.
2154 2019-08-01 Tom Tromey <tromey@adacore.com>
2156 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
2159 2019-08-01 Christian Biesinger <cbiesinger@google.com>
2161 * s12z-tdep.c: Fix include path for s12z-opc.h.
2163 2019-08-01 Alan Hayward <alan.hayward@arm.com>
2165 * NEWS: Require GNU make 3.82.
2167 2019-07-16 Tom Tromey <tom@tromey.com>
2169 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
2172 2019-07-30 Tom Tromey <tromey@adacore.com>
2174 * block.c (contained_in): Remove BLOCK_FUNCTION check.
2176 2019-07-30 Kevin Buettner <kevinb@redhat.com>
2178 * printcmd.c (print_address_symbolic): Print negative offsets.
2179 (build_address_symbolic): Force signed arithmetic when computing
2182 2019-07-30 Christian Biesinger <cbiesinger@google.com>
2184 PR/24474: Add a function to lookup static variables.
2185 * NEWS: Mention this new function.
2186 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
2187 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
2188 * python/python.c (python_GdbMethods): Add new function.
2190 2019-07-29 Christian Biesinger <cbiesinger@google.com>
2192 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
2193 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
2194 (objfpy_lookup_static_symbol): New function.
2195 (objfile_object_methods): Add new functions.
2197 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2199 * NEWS: Mention 'set|show print frame-info'. Mention new
2200 'presence' value for 'frame-arguments'. Mention new '-frame-info'
2201 backtrace argument. Mention that python frame filtering code
2202 is now consistent with what 'backtrace' command prints.
2204 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2206 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
2208 (print_frame_info_auto, print_frame_info_source_line,
2209 print_frame_info_location, print_frame_info_source_and_location,
2210 print_frame_info_location_and_address, print_frame_info_short_location):
2212 (struct frame_print_options): New member print_frame_info.
2213 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
2214 * stack.h (get_user_print_what_frame_info): New declaration.
2215 (frame_show_address): New declaration.
2216 * stack.c (print_frame_arguments_choices): New value 'presence'.
2217 (print_frame_info_auto, print_frame_info_source_line,
2218 print_frame_info_location, print_frame_info_source_and_location,
2219 print_frame_info_location_and_address, print_frame_info_short_location,
2220 print_frame_info_choices, print_frame_info_print_what): New definitions.
2221 (print_frame_args): Only print dots for args if print frame-arguments
2223 (frame_print_option_defs): New element for "frame-info".
2224 (get_user_print_what_frame_info): New function.
2225 (frame_show_address): Make non static. Move comment to stack.h.
2226 (print_frame_info_to_print_what): New function.
2227 (print_frame_info): Update comment. Use fp_opts.print_frame_info
2228 to decide what to print.
2229 (backtrace_command_1): Handle the new print_frame_arguments_presence
2231 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
2232 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
2233 (py_print_frame): In non-mi mode, use LOCATION as default for
2234 print_what, similarly to frame information printed directly by
2235 backtrace command. Handle frame-info user option in non MI mode.
2237 2019-07-27 Kevin Buettner <kevinb@redhat.com>
2239 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
2240 Add case for debugging 32-bit target on 64-bit host. Revise
2243 2019-07-27 Kevin Buettner <kevinb@redhat.com>
2245 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
2246 instead of find_function_entry_range_from_pc.
2248 2019-07-27 Kevin Buettner <kevinb@redhat.com>
2250 * stack.c (find_frame_funname): Remove code which preferred
2251 minsym over symtab sym in "certain pathological cases".
2253 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
2254 parameter. Change type of "do_demangle" to bool.
2255 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2256 Pass suitable "prefer_sym_over_minsym" flag to
2257 build_address_symbolic(). Don't output "+" for negative offsets.
2258 * printcmd.c (print_address_symbolic): Update invocation of
2259 build_address_symbolic to include a "prefer_sym_over_minsym"
2261 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
2262 Restrict cases in which use of minimal symbol is preferred to that
2263 of a found symbol. Update comments.
2265 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
2266 for entry pc when entry pc is out of range for that FDE.
2268 2019-07-26 Brian Callahan <bcallah@openbsd.org>
2271 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
2274 2019-07-25 Christian Biesinger <cbiesinger@google.com>
2276 * python/py-objfile.c (add_separate_debug_file): Fix comment about
2277 this function's Python signature.
2280 2019-07-24 Christian Biesinger <cbiesinger@google.com>
2282 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
2283 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
2284 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
2285 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
2286 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
2289 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
2291 * h8300-tdep.c (h8300_register_name_common): New.
2292 h8300_register_name): Use h8300_register_name_common.
2293 (h8300s_register_name): Likewise.
2294 (h8300sx_register_name): Likewise.
2295 (h8300h_register_nam): New.
2296 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
2299 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
2301 * arm-tdep.c (arm_skip_cmse_entry): New function.
2302 (arm_is_sgstubs_section): New function.
2303 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
2305 2019-07-22 Tom Tromey <tom@tromey.com>
2307 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
2310 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2312 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
2315 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2317 * symtab.c (search_symbols): Adjust msymbol matching type arrays
2318 so that GDB doesn't match any msymbols when searching in the
2320 (print_symbol_info): Print using typedef_print or type_print based
2321 on the type of the symbol. Add updated FIXME comment moved from...
2322 (_initialize_symtab): ... move and update FIXME comment to above.
2324 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2326 * NEWS: Mention adding -q option to "info types".
2327 * symtab.c (struct info_types_options): New struct.
2328 (info_types_options_defs): New variable.
2329 (make_info_types_options_def_group): New function.
2330 (info_types_command): Use gdb::option framework to parse options.
2331 (info_types_command_completer): New function.
2332 (_initialize_symtab): Extend the help text on "info types" and
2333 register command completer.
2335 2019-07-21 Christian Biesinger <cbiesinger@google.com>
2337 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
2338 (lookup_symbol_in_objfile): Change int to block_enum and add a
2339 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
2341 2019-07-20 Christian Biesinger <cbiesinger@google.com>
2343 * MAINTAINERS (Write After Approval): Add self.
2345 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
2347 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
2348 instruction to the dummy code region.
2350 2019-07-19 Tom Tromey <tromey@adacore.com>
2352 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
2353 (ARGSUSED, PARAMS, __func__): Remove rules.
2355 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2357 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
2358 * features/arm/arm-with-iwmmxt.c: Remove.
2359 * features/arm/arm-with-iwmmxt.xml: Remove.
2360 * features/arm/arm-with-m-fpa-layout.c: Remove.
2361 * features/arm/arm-with-m-fpa-layout.xml: Remove.
2362 * features/arm/arm-with-m-vfp-d16.c: Remove.
2363 * features/arm/arm-with-m-vfp-d16.xml: Remove.
2364 * features/arm/arm-with-m.c: Remove.
2365 * features/arm/arm-with-m.xml: Remove.
2366 * features/arm/arm-with-neon.c: Remove.
2367 * features/arm/arm-with-neon.xml: Remove.
2368 * features/arm/arm-with-vfpv2.c: Remove.
2369 * features/arm/arm-with-vfpv2.xml: Remove.
2370 * features/arm/arm-with-vfpv3.c: Remove.
2371 * features/arm/arm-with-vfpv3.xml: Remove.
2373 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2375 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
2377 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2379 * arch/aarch32.c (aarch32_create_target_description): Create
2380 target descriptions using features.
2381 * arch/arm.c (arm_create_target_description)
2382 (arm_create_mprofile_target_description): Likewise.
2383 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
2385 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2387 * Makefile.in: Add new files.
2388 * aarch32-tdep.c: New file.
2389 * aarch32-tdep.h: New file.
2390 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
2391 Call aarch32_read_description.
2392 * arch/aarch32.c: New file.
2393 * arch/aarch32.h: New file.
2394 * arch/arm.c (arm_create_target_description)
2395 (arm_create_mprofile_target_description): New function.
2396 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
2397 (arm_create_target_description)
2398 (arm_create_mprofile_target_description): New declaration.
2399 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
2400 read_description functions.
2401 * arm-linux-nat.c (arm_linux_nat_target::read_description):
2403 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
2404 * arm-tdep.c (tdesc_arm_list): New variable.
2405 (arm_register_g_packet_guesses): Call create description functions.
2406 (arm_read_description) (arm_read_mprofile_description): New
2408 * arm-tdep.h (arm_read_description)
2409 (arm_read_mprofile_description): Add declaration.
2410 * configure.tgt: Add new files.
2412 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
2414 * top.c (new_ui_command): Open specified terminal just once.
2416 2019-07-18 Tom Tromey <tromey@adacore.com>
2418 * symtab.c (main_name): Constify return type.
2419 * symfile.c (set_initial_language): Update.
2420 * symtab.h (main_name): Constify return type.
2422 2019-07-17 Tom Tromey <tom@tromey.com>
2424 * tui/tui-winsource.c (tui_update_source_window)
2425 (tui_update_source_window_as_is)
2426 (tui_update_source_windows_with_line): Remove return.
2427 * tui/tui-disasm.c (tui_show_disassem)
2428 (tui_show_disassem_and_update_source): Remove return.
2429 * tui/tui.c (tui_reset): Remove return.
2430 * tui/tui-wingeneral.c
2431 (tui_check_and_display_highlight_if_needed): Remove return.
2433 2019-07-17 Tom Tromey <tom@tromey.com>
2435 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
2437 2019-07-17 Tom Tromey <tom@tromey.com>
2439 * tui/tui-winsource.h (struct tui_exec_info_window)
2440 (struct tui_source_window_base): Move from tui-data.h.
2441 * tui/tui-winsource.c: Move many method definitions from
2442 elsewhere. Remove "structuring" comments.
2443 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
2444 (tui_source_window_base::refresh_window): Move to
2446 * tui/tui-win.c (tui_source_window_base::refresh_all)
2447 (tui_source_window_base::update_tab_width)
2448 (tui_source_window_base::set_new_height)
2449 (tui_source_window_base::do_make_visible_with_new_height): Move to
2451 * tui/tui-source.h: Update.
2452 * tui/tui-source.c (tui_source_window_base::reset): Move to
2454 * tui/tui-disasm.h: Update.
2455 * tui/tui-data.h (struct tui_exec_info_window): Move to
2457 (struct tui_source_window_base): Likewise.
2458 * tui/tui-data.c (tui_source_window_base::clear_detail)
2459 (tui_source_window_base, ~tui_source_window_base): Move to
2462 2019-07-17 Tom Tromey <tom@tromey.com>
2464 * tui/tui-win.c (tui_resize_all)
2465 (tui_source_window_base::update_tab_width)
2466 (tui_adjust_win_heights): Update.
2467 (tui_win_info::make_invisible_and_set_new_height): Rename from
2468 make_invisible_and_set_new_height.
2469 * tui/tui-data.h (struct tui_win_info)
2470 <make_invisible_and_set_new_height>: New method.
2472 2019-07-17 Tom Tromey <tom@tromey.com>
2474 * tui/tui.c: Update.
2475 * tui/tui-source.h (struct tui_source_window): Move from
2477 * tui/tui-layout.c: Update.
2478 * tui/tui-disasm.c: Update.
2479 * tui/tui-data.h (struct tui_source_window): Move to
2482 2019-07-17 Tom Tromey <tom@tromey.com>
2484 * tui/tui-disasm.h (struct tui_disasm_window): Move from
2486 * tui/tui-data.h (struct tui_disasm_window): Move to
2489 2019-07-17 Tom Tromey <tom@tromey.com>
2491 * tui/tui-regs.h (struct tui_data_item_window): Move from
2493 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
2494 * tui/tui-data.h (struct tui_data_item_window): Move to
2496 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
2498 2019-07-17 Tom Tromey <tom@tromey.com>
2500 * tui/tui.c: Update.
2501 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
2502 (tui_cmd_window::max_height): Move to tui-command.c.
2503 * tui/tui-layout.c: Update.
2504 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
2505 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
2507 * tui/tui-command.h (struct tui_cmd_window): Move from
2509 * tui/tui-command.c: Remove "structuring" comments.
2510 (tui_cmd_window::clear_detail)
2511 (tui_cmd_window::do_make_visible_with_new_height)
2512 (tui_cmd_window::max_height): Move from elsewhere.
2514 2019-07-17 Tom Tromey <tom@tromey.com>
2516 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
2518 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
2519 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
2521 2019-07-17 Tom Tromey <tom@tromey.com>
2523 * tui/tui.c: Update.
2524 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
2526 * tui/tui-windata.h: Remove file.
2527 * tui/tui-windata.c: Remove file.
2528 * tui/tui-win.c (tui_data_window::set_new_height)
2529 (tui_data_window::do_make_visible_with_new_height): Move to
2531 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
2532 * tui/tui-regs.c: Remove "structuring" comments.
2533 (tui_data_window::first_data_item_displayed)
2534 (tui_data_window::delete_data_content_windows)
2535 (tui_data_window::erase_data_content)
2536 (tui_data_window::display_all_data)
2537 (tui_data_window::refresh_all)
2538 (tui_data_window::do_scroll_vertical)
2539 (tui_data_window::clear_detail, tui_data_window::set_new_height)
2540 (tui_data_window::do_make_visible_with_new_height)
2541 (tui_data_window::refresh_window): Move from elsewhere.
2542 (_initialize_tui_regs): Move to end of file.
2543 * tui/tui-layout.c: Update.
2544 * tui/tui-hooks.c: Update.
2545 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
2546 * tui/tui-data.c (tui_data_window::clear_detail): Move to
2548 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
2550 2019-07-17 Tom Tromey <tom@tromey.com>
2552 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
2555 2019-07-17 Tom Tromey <tom@tromey.com>
2557 * tui/tui-win.c (tui_source_window_base::set_new_height)
2558 (tui_source_window_base::do_make_visible_with_new_height): Use
2559 m_has_locator field directly.
2560 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
2562 (struct tui_source_window_base) <has_locator>: Likewise.
2564 2019-07-17 Tom Tromey <tom@tromey.com>
2566 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
2568 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
2570 * tui/tui-win.c (tui_source_window_base::set_new_height)
2571 (tui_source_window_base::set_new_height)
2572 (make_invisible_and_set_new_height)
2573 (tui_source_window_base::do_make_visible_with_new_height)
2574 (tui_source_window_base::do_make_visible_with_new_height):
2576 * tui/tui-layout.c (show_source_disasm_command, show_data)
2577 (show_source_or_disasm_and_command): Update.
2578 * tui/tui-layout.c (show_layout): Update.
2580 2019-07-17 Tom Tromey <tom@tromey.com>
2582 * tui/tui-layout.c (make_data_window): Remove.
2583 (show_data): Unify creation and re-initialization cases.
2585 2019-07-17 Tom Tromey <tom@tromey.com>
2587 * tui/tui-layout.c (make_source_window, make_disasm_window):
2589 (show_data): Unify creation and re-initialization cases.
2591 2019-07-17 Tom Tromey <tom@tromey.com>
2593 * tui/tui-layout.c (make_command_window): Remove.
2594 (show_source_disasm_command, show_source_or_disasm_and_command):
2595 Unify creation and re-initialization cases.
2597 2019-07-17 Tom Tromey <tom@tromey.com>
2599 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
2600 creation and re-initialization cases.
2602 2019-07-17 Tom Tromey <tom@tromey.com>
2604 * tui/tui-regs.c (tui_get_register): Return void.
2606 2019-07-17 Tom Tromey <tom@tromey.com>
2608 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
2611 2019-07-17 Tom Tromey <tom@tromey.com>
2613 * tui/tui-layout.c (show_source_disasm_command): Simplify window
2616 2019-07-17 Tom Tromey <tom@tromey.com>
2618 * tui/tui.h (tui_set_layout_by_name): Don't declare.
2619 * tui/tui-regs.c (tui_reg_layout): New function.
2620 (tui_show_registers, tui_reg_command): Use it.
2621 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
2622 (tui_layout_command): Rename from tui_set_layout_by_name. Change
2624 (tui_layout_command): Remove.
2626 2019-07-17 Tom Tromey <tom@tromey.com>
2628 * tui/tui-layout.h (tui/tui-layout): Return void.
2629 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
2631 2019-07-17 Tom Tromey <tom@tromey.com>
2633 * tui/tui-layout.c (show_source_disasm_command, show_data):
2635 (reset_locator): Remove.
2636 (show_source_or_disasm_and_command): Update.
2638 2019-07-17 Tom Tromey <tom@tromey.com>
2640 * tui/tui-source.c (tui_source_window_base::reset): Remove
2642 * tui/tui-layout.c (make_command_window, make_source_window)
2643 (make_disasm_window, make_data_window)
2644 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
2645 (reset_locator, show_source_or_disasm_and_command): Update.
2646 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
2648 (struct tui_source_window_base) <reset>: Likewise.
2650 2019-07-17 Tom Tromey <tom@tromey.com>
2652 * tui/tui-layout.c (show_source_disasm_command): Use
2654 (reset_locator): New function.
2655 (init_and_make_win): Remove.
2656 (show_source_or_disasm_and_command): Use reset_locator.
2658 2019-07-17 Tom Tromey <tom@tromey.com>
2660 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
2662 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
2664 * tui/tui-source.c (tui_source_window_base::reset): New method.
2665 * tui/tui-layout.c (make_command_window): Don't call
2667 (make_source_window, make_disasm_window): Don't call
2668 make_source_or_disasm_window.
2669 (make_data_window): Don't call init_and_make_win. Change calling
2671 (show_source_disasm_command, show_data): Simplify.
2672 (make_source_or_disasm_window): Remove.
2673 (show_source_or_disasm_and_command): Simplify.
2674 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
2675 (struct tui_source_window_base) <reset>: Likewise.
2676 <execution_info>: Remove initializer.
2677 * tui/tui-data.c (tui_source_window_base): Initialize
2680 2019-07-17 Tom Tromey <tom@tromey.com>
2682 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
2685 2019-07-17 Tom Tromey <tom@tromey.com>
2687 * tui/tui.c (tui_rl_other_window): Update.
2688 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
2689 superclass method first. Always iterate over regs_content.
2690 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
2692 * tui/tui-win.c (tui_set_focus_command): Update.
2694 2019-07-17 Tom Tromey <tom@tromey.com>
2696 * tui/tui-win.c (tui_set_focus_command): Rename from
2697 tui_set_focus. Call tui_enable.
2698 (tui_set_focus_command): Remove.
2700 2019-07-17 Tom Tromey <tom@tromey.com>
2702 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
2704 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
2706 (tui_data_window::refresh_window): Call refresh_window on data
2707 items. Always call superclass refresh_window.
2708 (tui_win_info::refresh): Remove.
2709 (tui_source_window_base::refresh_window): Update.
2710 (tui_refresh_all): Update.
2711 * tui/tui-layout.c (show_source_disasm_command): Remove call to
2713 (show_source_or_disasm_and_command): Likewise.
2714 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
2715 (struct tui_source_window_base) <refresh>: Likewise.
2717 2019-07-17 Tom Tromey <tom@tromey.com>
2719 * tui/tui-winsource.c (tui_clear_source_content)
2720 (tui_show_source_content): Update.
2721 * tui/tui-source.c (tui_source_window::showing_source_p): Check
2722 whether content is empty.
2723 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
2726 2019-07-17 Tom Tromey <tom@tromey.com>
2728 * tui/tui-winsource.c (tui_erase_source_content): Clear the
2730 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
2731 * tui/tui-source.c (tui_set_source_content_nil): Remove.
2733 2019-07-17 Tom Tromey <tom@tromey.com>
2735 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
2736 (struct tui_data_item_window): Update.
2738 2019-07-17 Tom Tromey <tom@tromey.com>
2740 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
2741 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
2744 2019-07-17 Tom Tromey <tom@tromey.com>
2746 * tui/tui-winsource.h (tui_erase_source_content)
2747 (tui_clear_source_content): Remove "display_prompt" parameter.
2748 * tui/tui-winsource.c (tui_update_source_window_as_is)
2749 (tui_update_source_windows_with_addr): Update.
2750 (tui_clear_source_content): Remove "display_prompt" parameter.
2751 (tui_erase_source_content): Likewise. Simplify.
2752 (tui_show_source_content): Update.
2753 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2754 * tui/tui-stack.c (tui_show_frame_info): Update.
2755 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
2758 2019-07-17 Tom Tromey <tom@tromey.com>
2760 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2761 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
2763 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
2766 2019-07-17 Tom Tromey <tom@tromey.com>
2768 * tui/tui-winsource.c (tui_clear_source_content)
2769 (tui_show_source_content, tui_show_exec_info_content)
2770 (tui_clear_exec_info_content): Update.
2771 * tui/tui-stack.c (tui_show_locator_content): Update.
2772 (tui_show_frame_info): Update.
2773 * tui/tui-source.h (tui_source_window): Don't declare.
2774 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
2775 from tui_source_is_displayed.
2776 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
2778 (struct tui_source_window_base) <content_in_use>: New field. Now
2780 (struct tui_source_window) <showing_source_p>: New method.
2781 (TUI_SRC_WIN): Change cast.
2782 * tui/tui-data.c (tui_initialize_static_data): Update.
2784 2019-07-17 Tom Tromey <tom@tromey.com>
2786 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
2788 * tui/tui-source.c (tui_source_window::location_matches_p): New
2790 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
2792 * tui/tui-data.h (struct tui_source_window_base)
2793 <location_matches_p>: New method.
2794 (struct tui_source_window, struct tui_disasm_window)
2795 <location_matches_p>: Likewise.
2797 2019-07-17 Tom Tromey <tom@tromey.com>
2799 * tui/tui-win.c (tui_set_win_height_command): Rename from
2801 (tui_set_win_height_command): Remove.
2803 2019-07-17 Tom Tromey <tom@tromey.com>
2805 * tui/tui-source.c (tui_source_window): New constructor. Add
2807 (~tui_source_window): New destructor.
2808 (tui_source_window::style_changed): New method.
2809 * tui/tui-hooks.c (tui_redisplay_source): Remove.
2810 (tui_attach_detach_observers): Update.
2811 * tui/tui-data.h (struct tui_source_window): Make constructor not
2812 inline. Add destructor.
2813 (struct tui_source_window) <style_changed>: New method.
2814 <m_observable>: New member.
2816 2019-07-17 Tom Tromey <tom@tromey.com>
2818 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
2819 * tui/tui-win.c (tui_resize_all): Fix typo.
2821 2019-07-17 Tom Tromey <tom@tromey.com>
2823 * tui/tui-wingeneral.h (tui_refresh_all): Update.
2824 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
2825 (tui_refresh_all): Remove "list" parameter. Use foreach.
2826 * tui/tui-win.c (window_name_completer): Use foreach.
2827 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
2828 (update_tab_width): Likewise.
2829 * tui/tui-layout.c (show_layout): Update.
2830 * tui/tui-data.h (class tui_window_iterator): New.
2831 (struct all_tui_windows): New.
2832 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
2834 2019-07-17 Tom Tromey <tom@tromey.com>
2836 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
2837 parameter. Don't reference globals.
2838 (tui_reg_command): Update.
2840 2019-07-17 Tom Tromey <tom@tromey.com>
2842 * tui/tui-regs.c (tui_show_registers): Simplify.
2844 2019-07-17 Tom Tromey <tom@tromey.com>
2846 * tui/tui-regs.c (tui_show_registers): Update.
2847 (tui_show_register_group): Add win_info parameter.
2849 2019-07-17 Tom Tromey <tom@tromey.com>
2851 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
2852 Rename from tui_display_reg_element_at_line.
2853 (tui_data_window::display_registers_from_line): Update.
2854 * tui/tui-data.h (struct tui_data_window)
2855 <display_reg_element_at_line>: New method.
2857 2019-07-17 Tom Tromey <tom@tromey.com>
2859 * tui/tui-regs.h (tui_display_registers_from)
2860 (tui_display_registers_from_line): Don't declare.
2861 * tui/tui-windata.c (tui_data_window::display_all_data)
2862 (tui_data_window::refresh_all)
2863 (tui_data_window::do_scroll_vertical): Update.
2864 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
2865 from tui_display_registers_from.
2866 (tui_display_reg_element_at_line): Update.
2867 (tui_data_window::display_registers_from_line): Rename from
2868 tui_display_registers_from_line.
2869 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
2870 display_registers_from_line>: New methods.
2872 2019-07-17 Tom Tromey <tom@tromey.com>
2874 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
2875 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
2876 from tui_erase_data_content.
2877 (tui_data_window::display_all_data)
2878 (tui_data_window::refresh_all)
2879 (tui_data_window::do_scroll_vertical): Update.
2880 * tui/tui-regs.c (tui_show_registers): Update.
2881 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
2884 2019-07-17 Tom Tromey <tom@tromey.com>
2886 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
2889 (tui_data_window::delete_data_content_windows): Rename from
2890 tui_delete_data_content_windows.
2891 (tui_data_window::display_all_data)
2892 (tui_data_window::do_scroll_vertical): Update.
2893 * tui/tui-data.h (struct tui_data_window)
2894 <delete_data_content_windows>: New method.
2896 2019-07-17 Tom Tromey <tom@tromey.com>
2898 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
2899 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
2901 2019-07-17 Tom Tromey <tom@tromey.com>
2903 * tui/tui-windata.h (tui_display_all_data): Don't declare.
2904 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
2905 from tui_display_all_data.
2907 (tui_data_window::do_make_visible_with_new_height): Update.
2908 * tui/tui-regs.c (tui_show_registers): Update.
2909 * tui/tui-layout.c (tui_set_layout): Update.
2910 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
2913 2019-07-17 Tom Tromey <tom@tromey.com>
2915 * tui/tui-windata.h (tui_display_data_from): Don't declare.
2916 * tui/tui-windata.c (tui_display_data_from): Remove.
2917 (tui_data_window::refresh_all): Update.
2919 2019-07-17 Tom Tromey <tom@tromey.com>
2921 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
2922 * tui/tui-windata.c (tui_display_data_from_line): Remove.
2923 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
2924 tui_display_registers_from_line.
2925 * tui/tui-regs.h (tui_display_registers_from_line): Update.
2926 * tui/tui-regs.c (tui_display_registers_from_line): Remove
2927 "force_display" parameter.
2929 2019-07-17 Tom Tromey <tom@tromey.com>
2931 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
2933 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
2934 Rename from tui_first_reg_element_no_inline.
2935 (tui_display_reg_element_at_line)
2936 (tui_display_registers_from_line): Update.
2937 * tui/tui-data.h (struct tui_data_window)
2938 <first_reg_element_no_inline>: New method.
2940 2019-07-17 Tom Tromey <tom@tromey.com>
2942 * tui/tui-windata.c (tui_display_data_from)
2943 (tui_data_window::do_scroll_vertical): Update.
2944 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
2945 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
2946 Rename from tui_line_from_reg_element_no.
2947 (tui_display_registers_from_line): Update.
2948 * tui/tui-data.h (struct tui_data_window)
2949 <line_from_reg_element_no>: New method.
2951 2019-07-17 Tom Tromey <tom@tromey.com>
2953 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
2954 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
2955 tui_last_regs_line_no.
2956 (tui_display_reg_element_at_line)
2957 (tui_display_registers_from_line): Update.
2958 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
2961 2019-07-17 Tom Tromey <tom@tromey.com>
2964 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
2965 (tui_update_breakpoint_info): Add "being_deleted" parameter.
2966 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2967 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
2968 (tui_update_breakpoint_info): Likewise.
2969 * tui/tui-hooks.c (tui_event_create_breakpoint)
2970 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
2973 2019-07-17 Tom Tromey <tom@tromey.com>
2975 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
2977 2019-07-17 Tom Tromey <tom@tromey.com>
2979 * tui/tui-winsource.c (tui_update_source_window_as_is)
2980 (tui_update_source_windows_with_addr): Update.
2981 * tui/tui-source.h (tui_set_source_content)
2982 (tui_show_symtab_source): Add "win_info" parameter.
2983 * tui/tui-source.c (tui_set_source_content): Add "win_info"
2985 (tui_show_symtab_source): Likewise.
2987 2019-07-17 Tom Tromey <tom@tromey.com>
2989 * tui/tui-wingeneral.c
2990 (tui_check_and_display_highlight_if_needed): Check can_highlight.
2992 2019-07-17 Tom Tromey <tom@tromey.com>
2994 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
2995 (struct tui_cmd_window) <can_scroll>: New method.
2996 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
2999 2019-07-17 Tom Tromey <tromey@adacore.com>
3001 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
3002 do_field_signed>: Rename. Change type of "value".
3003 * ui-out.c (ui_out::field_signed): Rename from field_int.
3004 Change type of "value".
3005 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
3007 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
3008 do_field_int. Change type of "value".
3009 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
3010 do_field_int. Change type of "value".
3011 * tracepoint.c (trace_status_mi, tfind_1)
3012 (print_one_static_tracepoint_marker): Update.
3013 * thread.c (print_thread_info_1, print_selected_thread_frame):
3015 * stack.c (print_frame, print_frame_info): Update.
3016 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
3018 * source.c (print_source_lines_base): Update.
3019 * skip.c (info_skip_command): Update.
3020 * record-btrace.c (btrace_ui_out_decode_error)
3021 (btrace_call_history_src_line): Update.
3022 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
3024 * progspace.c (print_program_space): Update.
3025 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
3026 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
3027 do_field_int. Change type of "value".
3028 * mi/mi-out.c (mi_ui_out::do_table_begin)
3029 (mi_ui_out::do_table_header): Update.
3030 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
3032 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
3033 (mi_cmd_data_list_changed_registers, output_register)
3034 (mi_cmd_data_read_memory, mi_load_progress)
3035 (mi_cmd_trace_frame_collected): Update.
3036 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
3038 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3039 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
3040 (mi_cmd_var_list_children, varobj_update_one): Update.
3041 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
3042 (mi_cmd_stack_list_args, list_arg_or_local): Update.
3043 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
3044 * inferior.c (print_inferior): Update.
3045 * gdb_bfd.c (print_one_bfd): Update.
3046 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3048 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
3049 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
3050 do_field_int. Change type of "value".
3051 * cli-out.c (cli_ui_out::do_field_signed): Rename from
3052 do_field_int. Change type of "value".
3053 * breakpoint.c (watchpoint_check, print_breakpoint_location)
3054 (print_one_breakpoint_location, print_it_catch_fork)
3055 (print_one_catch_fork, print_it_catch_vfork)
3056 (print_one_catch_vfork, print_it_catch_solib)
3057 (print_it_catch_exec, print_it_ranged_breakpoint)
3058 (print_mention_watchpoint, print_mention_masked_watchpoint)
3059 (bkpt_print_it, update_static_tracepoint): Update.
3060 * break-catch-throw.c (print_it_exception_catchpoint): Update.
3061 * break-catch-syscall.c (print_it_catch_syscall): Update.
3062 * ada-tasks.c (print_ada_task_info): Update.
3063 * ada-lang.c (print_it_exception, print_mention_exception):
3066 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3068 PR breakpoints/24541
3069 * gdbarch.c: Regenerate.
3070 * gdbarch.h: Regenerate.
3071 * gdbarch.sh: Adjust return type and parameter types for
3072 'stap_adjust_register'.
3073 (i386_stap_adjust_register): Adjust signature and return new
3075 * stap-probe.c (stap_parse_register_operand): Adjust use of
3076 'gdbarch_stap_adjust_register'.
3078 2019-07-17 Tom Tromey <tromey@adacore.com>
3080 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
3082 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
3084 (struct s390_process_info): Add initializers.
3085 (s390_add_process): Use new.
3086 (s390_linux_nat_target::low_forget_process): Use delete.
3087 (s390_linux_nat_target::low_new_fork)
3088 (s390_linux_nat_target::stopped_by_watchpoint)
3089 (s390_linux_nat_target::low_prepare_to_resume)
3090 (s390_linux_nat_target::insert_watchpoint)
3091 (s390_linux_nat_target::insert_hw_breakpoint)
3092 (s390_linux_nat_target::remove_watchpoint)
3093 (s390_linux_nat_target::remove_hw_breakpoint): Update.
3095 2019-07-16 John Baldwin <jhb@FreeBSD.org>
3097 * aarch64-fbsd-nat.c: Include regcache.h.
3098 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
3100 (aarch64_fbsd_nat_target::fetch_registers)
3101 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
3103 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
3105 2019-07-16 John Baldwin <jhb@FreeBSD.org>
3107 * fbsd-nat.c: Include gdbarch.h.
3109 2019-07-15 Tom Tromey <tromey@adacore.com>
3111 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
3113 2019-07-15 Tom Tromey <tromey@adacore.com>
3115 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
3116 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
3117 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
3118 * cli-out.c (cli_ui_out::do_field_int): New method.
3119 * ui-out.c (ui_out::field_unsigned): New method.
3120 * symfile.c (generic_load): Use field_unsigned.
3121 (print_transfer_performance): Likewise.
3122 * record-btrace.c (ui_out_field_uint): Remove.
3123 (btrace_call_history_insn_range, btrace_call_history): Use
3125 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
3127 * ui-out.h (class ui_out) <field_unsigned>: New method.
3128 <do_field_unsigned>: Likewise.
3130 2019-07-15 Tom Tromey <tromey@adacore.com>
3132 * mi/mi-main.c (list_available_thread_groups): Use field_string.
3133 * mi/mi-interp.c (mi_memory_changed): Use field_string.
3134 * target.c (flash_erase_command): Use field_string.
3135 * infrun.c (print_signal_received_reason): Use field_string.
3136 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
3137 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
3139 * ada-tasks.c (print_ada_task_info): Use field_string.
3141 2019-07-15 Tom Tromey <tromey@adacore.com>
3143 * target.c (flash_erase_command): Use field_core_addr.
3144 * symfile.c (generic_load): Use field_core_addr.
3145 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3146 Use field_core_addr.
3147 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
3150 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3152 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
3153 value if its desired type is smaller than a CORE_ADDR and signed.
3155 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3157 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
3158 of changes to field names, and use new is_reference field to
3159 decide if a property is a reference or not.
3160 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
3162 (struct dwarf2_property_baton): Update header comment, rename
3163 'referenced_type' to 'property_type' and update comments.
3164 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
3165 default property type, store in property baton, update to take
3166 accound of renamed field.
3167 (read_func_scope): Update call to attr_to_dynamic_prop.
3168 (read_array_type): Likewise.
3169 (dwarf2_per_cu_addr_sized_int_type): New function.
3170 (read_subrange_index_type): Move type finding code to
3171 dwarf2_per_cu_addr_sized_int_type.
3172 (read_subrange_type): Update calls to attr_to_dynamic_prop.
3173 (dwarf2_per_cu_addr_type): New function.
3174 (set_die_type): Update calls to attr_to_dynamic_prop.
3176 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3178 * dwarf2read.c (read_subrange_index_type): New function.
3179 (read_subrange_type): Move code into new function and call it.
3180 * gdbtypes.c (create_range_type): Add some asserts.
3182 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3184 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
3185 update return statements.
3186 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
3187 declaration, and update comment to match.
3188 * gdbtypes.c (resolve_dynamic_array): Update call to
3189 dwarf2_evaluate_property to match new return type.
3191 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3193 * valarith.c (value_subscripted_rvalue): Change lowerbound
3194 parameter type from int to LONGEST.
3195 * value.h (value_subscripted_rvalue): Likewise in declaration.
3197 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3199 * cli/cli-utils.c (info_print_command_completer): New function.
3200 * cli/cli-utils.h: Add 'completer.h' include, and forward
3201 declaration for 'struct cmd_list_element'.
3202 (info_print_command_completer): Declare.
3203 * stack.c (_initialize_stack): Add completer for 'info locals' and
3205 * symtab.c (_initialize_symtab): Add completer for 'info
3206 variables' and 'info functions'.
3207 * NEWS: Mention completion for additional info commands.
3209 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3211 * cli/cli-utils.c (extract_info_print_args): Delete.
3212 (extract_arg_maybe_quoted): Delete.
3213 (info_print_options_defs): New variable.
3214 (make_info_print_options_def_group): New function.
3215 (extract_info_print_options): Define new function.
3216 * cli/cli-utils.h (extract_info_print_args): Delete.
3217 (struct info_print_options): New structure.
3218 (extract_info_print_options): Declare new function.
3219 * stack.c (info_locals_command): Update to use new
3220 extract_info_print_options, also add a header comment.
3221 (info_args_command): Likewise.
3222 * symtab.c (info_variables_command): Likewise.
3223 (info_functions_command): Likewise.
3225 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3227 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
3228 to extract string arguments.
3229 * common/common-utils.c (extract_string_maybe_quoted): New function.
3230 * common/common-utils.h (extract_string_maybe_quoted): Declare.
3232 2019-07-11 Tom Tromey <tromey@adacore.com>
3234 * main.c (get_init_files): Use GDBINIT, not gdbinit.
3235 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
3236 * top.h (gdbinit): Don't declare.
3237 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
3239 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
3240 * top.c (gdb_init): Don't call init_cli_cmds.
3242 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
3244 2019-07-11 Tom Tromey <tromey@adacore.com>
3246 * python/py-inferior.c (add_thread_object): Don't use thread_obj
3247 after it has been moved.
3249 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3251 * valops.c (value_must_coerce_to_target): Change return type to
3253 * value.h (value_must_coerce_to_target): Likewise.
3255 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
3257 * breakpoint.c (is_hardware_watchpoint): Remove
3258 forward-declaration.
3259 (is_masked_watchpoint): Change return type to bool.
3260 (is_tracepoint): Likewise.
3261 (is_breakpoint): Likewise.
3262 (is_hardware_watchpoint): Likewise.
3263 (is_watchpoint): Likewise.
3264 (is_no_memory_software_watchpoint): Likewise.
3265 (is_catchpoint): Likewise.
3266 (breakpoint_1): Make FILTER parameter's return type bool.
3267 is_masked_watchpoint): Change return type to bool.
3268 (save_breakpoints): Make FILTER parameter's return type bool.
3269 * breakpoint.h (is_breakpoint): Change return type to bool.
3270 (is_watchpoint): Likewise.
3271 (is_catchpoint): Likewise.
3272 (is_tracepoint): Likewise.
3274 2019-07-10 Tom Tromey <tom@tromey.com>
3276 * defs.h: Don't include gdbarch.h.
3277 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
3278 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
3279 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
3280 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
3281 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
3282 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
3283 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
3284 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
3285 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
3286 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
3287 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
3288 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
3289 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
3290 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
3291 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
3292 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
3293 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
3294 record-btrace.c, record.h, regcache-dump.c, regcache.h,
3295 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
3296 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
3297 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
3298 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
3299 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
3300 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
3301 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
3302 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
3303 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
3305 2019-07-10 Tom Tromey <tromey@adacore.com>
3307 * ada-lang.h (is_ada_exception_catchpoint): Declare.
3308 * breakpoint.c (init_ada_exception_breakpoint): Register as
3310 (print_one_breakpoint_location, print_one_breakpoint): Use
3311 is_ada_exception_catchpoint.
3312 * ada-lang.c (class ada_catchpoint_location): Pass
3313 bp_loc_software_breakpoint to bp_location constructor.
3314 (is_ada_exception_catchpoint): New function.
3316 2019-07-10 Tom Tromey <tromey@adacore.com>
3318 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
3320 (struct arm_exidx_entry): New method operator<.
3321 (struct arm_exidx_data) <section_maps>: Change type.
3322 (arm_exidx_data_free): Remove.
3323 (arm_exidx_data_key): Change type. Move lower.
3324 (arm_exidx_new_objfile): Update.
3325 (arm_compare_exidx_entries): Remove.
3326 (arm_find_exidx_entry, _initialize_arm_tdep)
3328 2019-07-10 Tom Tromey <tromey@adacore.com>
3330 * solib-spu.c (ocl_program_data_key): Change type.
3331 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
3334 2019-07-10 Tom Tromey <tromey@adacore.com>
3336 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
3337 (struct solib_aix_inferior_data) <library_list>: Change type.
3338 (solib_aix_inferior_data_handle): Change type.
3339 (get_solib_aix_inferior_data): Update.
3340 (solib_aix_free_library_list): Remove.
3341 (library_list_start_library): Update.
3342 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
3344 (solib_aix_get_library_list)
3345 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
3346 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
3348 2019-07-10 Tom Tromey <tromey@adacore.com>
3350 * solib-dsbt.c (struct dsbt_info): Add initializers.
3351 (solib_dsbt_pspace_data): Change type.
3352 (dsbt_pspace_data_cleanup): Remove.
3353 (get_dsbt_info, _initialize_dsbt_solib): Update.
3355 2019-07-10 Tom Tromey <tromey@adacore.com>
3357 * spu-tdep.c (spu_overlay_data): Change type.
3358 (spu_get_overlay_table, spu_overlay_new_objfile)
3359 (_initialize_spu_tdep): Update.
3361 2019-07-10 Tom Tromey <tromey@adacore.com>
3363 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
3365 (dbx_objfile_data_key): Change type and declare later.
3366 (DBX_SYMFILE_INFO): Rewrite.
3367 * dbxread.c (dbx_objfile_data_key): Change type.
3368 (dbx_symfile_init): Update.
3369 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
3370 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3371 (stabsect_build_psymtabs, _initialize_dbxread): Update.
3373 2019-07-10 Tom Tromey <tromey@adacore.com>
3375 * jit.c (jit_program_space_key): Change type. Move lower.
3376 (get_jit_program_space_data): Update.
3377 (jit_program_space_data_cleanup): Remove.
3378 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
3380 (struct jit_program_space_data): Add initializers.
3382 2019-07-10 Tom Tromey <tromey@adacore.com>
3384 * solib-darwin.c (struct darwin_info): Add initializers.
3385 (solib_darwin_pspace_data): Change type.
3386 (darwin_pspace_data_cleanup): Remove.
3387 (get_darwin_info, _initialize_darwin_solib): Update.
3389 2019-07-10 Tom Tromey <tromey@adacore.com>
3391 * remote-sim.c (struct sim_inferior_data): Add initializers,
3392 constructor, and destructor.
3393 (sim_inferior_data_key): Change type. Move lower.
3394 (check_for_duplicate_sim_descriptor): Update.
3395 (get_sim_inferior_data): Use new. Update.
3396 (~sim_inferior_data_cleanup): Rename from
3397 sim_inferior_data_cleanup. Simplify.
3398 (gdbsim_close_inferior, simulator_command)
3399 (sim_command_completer, _initialize_remote_sim): Update.
3400 (next_pid, INITIAL_PID): Move earlier.
3402 2019-07-10 Tom Tromey <tromey@adacore.com>
3404 * python/python-internal.h (create_thread_object): Return
3406 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
3407 * python/py-inferior.c (struct threadlist_entry): Add
3409 <thread_obj>: Now a gdbpy_ref.
3410 (thread_to_thread_object): Update.
3411 (add_thread_object): Use new.
3412 (delete_thread_object): Use delete.
3413 (infpy_threads): Update.
3414 (py_free_inferior): Update. Construct "inf_obj" after acquiring
3417 2019-07-10 Tom Tromey <tromey@adacore.com>
3419 * valops.c (value_cast): Specialize error message for Ada.
3421 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3423 * breakpoint.c (breakpoint_1): Update doc and parameter names.
3425 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3427 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
3428 bpstat_should_step): Return bool, adjust comments.
3429 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
3430 bpstat_should_step): Likewise.
3432 2019-07-10 Alan Hayward <alan.hayward@arm.com>
3434 * features/Makefile: Use feature target descriptions for Arm.
3435 * features/arm/arm-core.c: Generate new file.
3436 * features/arm/arm-fpa.c: Likewise.
3437 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
3438 * features/arm/arm-m-profile.c: Likewise.
3439 * features/arm/arm-vfpv2.c: Likewise.
3440 * features/arm/arm-vfpv3.c: Likewise.
3441 * features/arm/xscale-iwmmxt.c: Likewise.
3442 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
3444 2019-07-10 Alan Hayward <alan.hayward@arm.com>
3446 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
3449 2019-07-10 Alan Hayward <alan.hayward@arm.com>
3451 * features/aarch64-pauth.c: Regenerate.
3453 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
3455 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
3457 (bpstat_what): Use false instead of 0.
3459 2019-07-09 Pedro Alves <palves@redhat.com>
3461 * break-catch-throw.c (is_exception_catchpoint): New.
3462 * breakpoint.c (print_one_breakpoint_location): New parameter
3463 'raw_loc'. Handle it. Use
3464 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
3465 looking at the breakpoint's type.
3466 (print_one_breakpoint): If handling "maint info breakpoints", also
3467 print locations of exception catchpoints.
3468 * breakpoint.h (is_exception_catchpoint): Declare.
3470 2019-07-09 Pedro Alves <palves@redhat.com>
3472 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
3474 (allocate_location_exception_catchpoint): New.
3475 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
3476 (initialize_throw_catchpoint_ops): Install
3477 allocate_location_exception_catchpoint as allocate_location
3479 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
3480 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
3482 (breakpoint_address_is_meaningful): Delete.
3483 (bl_address_is_meaningful): New.
3484 (breakpoint_locations_match): Adjust comment.
3485 (bp_location_from_bp_type): New, factored out of...
3486 (bp_location::bp_location(breakpoint *)): ... this.
3487 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
3489 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
3490 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
3491 breakpoint_address_is_meaningful.
3492 (bp_locations_compare): Adjust comment.
3493 (update_global_location_list): Use bl_address_is_meaningful
3494 instead of breakpoint_address_is_meaningful.
3495 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
3497 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
3498 * python/py-breakpoint.c (bppy_get_location): No longer check
3499 whether location is null.
3501 2019-07-09 Pedro Alves <palves@redhat.com>
3504 * breakpoint.c (print_one_breakpoint_location): Remove
3505 single-location assert.
3507 2019-07-09 Tom Tromey <tom@tromey.com>
3509 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
3510 * configure: Rebuild.
3511 * configure.ac: Change common to gdbsupport.
3512 * gdbsupport: Rename from common.
3513 * acinclude.m4: Change common to gdbsupport.
3514 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
3515 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
3517 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
3518 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
3519 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
3520 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
3521 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
3522 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
3523 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
3524 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
3525 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
3526 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
3527 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
3528 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
3529 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
3530 coff-pe-read.c, command.h, compile/compile-c-support.c,
3531 compile/compile-c.h, compile/compile-cplus-symbols.c,
3532 compile/compile-cplus-types.c, compile/compile-cplus.h,
3533 compile/compile-loc2c.c, compile/compile.c, completer.c,
3534 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
3535 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
3536 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
3537 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
3538 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
3539 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
3540 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
3541 features/aarch64-core.c, features/aarch64-fpu.c,
3542 features/aarch64-pauth.c, features/aarch64-sve.c,
3543 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
3544 features/i386/32bit-core.c, features/i386/32bit-linux.c,
3545 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
3546 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
3547 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
3548 features/i386/64bit-core.c, features/i386/64bit-linux.c,
3549 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
3550 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
3551 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
3552 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
3553 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
3554 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
3555 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
3556 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
3557 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
3558 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
3559 go32-nat.c, guile/guile.c, guile/scm-ports.c,
3560 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
3561 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
3562 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
3563 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
3564 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
3565 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
3566 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
3567 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
3568 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
3569 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
3570 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
3571 minsyms.c, mips-linux-tdep.c, namespace.h,
3572 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
3573 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
3574 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
3575 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
3576 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
3577 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
3578 nat/linux-waitpid.c, nat/mips-linux-watch.c,
3579 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
3580 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
3581 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
3582 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
3583 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
3584 procfs.c, producer.c, progspace.h, psymtab.h,
3585 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
3586 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
3587 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
3588 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
3589 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
3590 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
3591 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
3592 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
3593 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
3594 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
3595 target-memory.c, target.c, target.h, target/waitstatus.c,
3596 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
3597 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
3598 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
3599 unittests/array-view-selftests.c,
3600 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
3601 unittests/common-utils-selftests.c,
3602 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
3603 unittests/format_pieces-selftests.c,
3604 unittests/function-view-selftests.c,
3605 unittests/lookup_name_info-selftests.c,
3606 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
3607 unittests/mkdir-recursive-selftests.c,
3608 unittests/observable-selftests.c,
3609 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
3610 unittests/parse-connection-spec-selftests.c,
3611 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
3612 unittests/scoped_fd-selftests.c,
3613 unittests/scoped_mmap-selftests.c,
3614 unittests/scoped_restore-selftests.c,
3615 unittests/string_view-selftests.c, unittests/style-selftests.c,
3616 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
3617 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
3618 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
3619 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
3620 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
3621 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
3623 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3625 * linespec.c (decode_digits_list_mode): Set explicit_line to a
3627 (decode_digits_ordinary): Set explicit_line field in sal.
3628 * symtab.c (skip_prologue_sal): Don't skip prologue for a
3629 symtab_and_line that was set on an explicit line number in
3630 assembler code. Do always update the recorded symtab and line if
3631 we do skip the prologue.
3633 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3635 * breakpoint.c (set_breakpoint_location_function): Remove
3636 explicit_loc parameter.
3637 (momentary_breakpoint_from_master): Update call to
3638 set_breakpoint_location_function.
3639 (add_location_to_breakpoint): Likewise.
3641 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3643 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
3644 required features based on default bfd type when no specific bfd
3647 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3649 * NEWS: Mention that GDB printf and eval commands can now print
3650 C-style and Ada-style convenience var strings without
3651 calling the inferior.
3652 * printcmd.c (printf_c_string): Locally print GDB internal var
3653 instead of transiting via the inferior.
3654 (printf_wide_c_string): Likewise.
3656 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3658 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
3660 2019-07-04 Tom Tromey <tom@tromey.com>
3663 * tui/tui-winsource.c (tui_clear_source_content): Update.
3664 (tui_source_window_base::set_is_exec_point_at): Fix comment.
3665 (tui_update_breakpoint_info): Update.
3666 (tui_set_exec_info_content): Update.
3667 * tui/tui-source.c (tui_set_source_content_nil): Update.
3668 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
3670 * tui/tui-data.h (enum tui_bp_flag): New.
3671 (tui_bp_flags): New enum flags type.
3672 (struct tui_source_element) <break_mode>: Change type. Rename
3674 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
3675 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
3677 * tui/tui-winsource.h: Fix comment.
3679 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3681 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
3682 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
3683 (store_fpregs_to_thread)
3684 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
3685 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
3686 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
3687 (IWMMXT_REGS_SIZE): Add define.
3688 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
3689 (fetch_vfp_regs, store_vfp_regs)
3690 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
3691 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
3693 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3695 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
3697 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
3698 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
3699 (ARM_INT_REGISTER_SIZE): ...to this.
3700 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
3701 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
3702 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
3703 (arm_linux_collect_gregset, supply_nwfpe_register)
3704 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
3706 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
3707 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
3708 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
3709 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
3710 (arm_return_in_memory, arm_store_return_value)
3711 (arm_get_longjmp_target, arm_register_g_packet_guesses)
3712 (arm_record_ld_st_multiple): Likewise.
3713 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
3714 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
3716 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3718 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
3719 AARCH64_DISPLACED_MODIFIED_INSNS.
3720 * aarch64-tdep.c (struct aarch64_displaced_step_data)
3721 (aarch64_displaced_step_copy_insn): Likewise.
3722 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
3723 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
3724 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
3725 ARM_DISPLACED_MODIFIED_INSNS.
3726 * arm-tdep.c (arm_gdbarch_init): Likewise.
3727 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
3728 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
3729 (struct arm_displaced_step_closure): Use
3730 ARM_DISPLACED_MODIFIED_INSNS.
3732 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3734 * features/Makefile: Remove unused xml files.
3735 * features/aarch64.xml: Remove.
3736 * features/i386/amd64-avx-avx512-linux.xml: Remove.
3737 * features/i386/amd64-avx-avx512.xml: Remove.
3738 * features/i386/amd64-avx-linux.xml: Remove.
3739 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
3740 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
3741 * features/i386/amd64-avx-mpx-linux.xml: Remove.
3742 * features/i386/amd64-avx-mpx.xml: Remove.
3743 * features/i386/amd64-avx.xml: Remove.
3744 * features/i386/amd64-linux.xml: Remove.
3745 * features/i386/amd64-mpx-linux.xml: Remove.
3746 * features/i386/amd64-mpx.xml: Remove.
3747 * features/i386/amd64.xml: Remove.
3748 * features/i386/i386-avx-avx512-linux.xml: Remove.
3749 * features/i386/i386-avx-avx512.xml: Remove.
3750 * features/i386/i386-avx-linux.xml: Remove.
3751 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
3752 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
3753 * features/i386/i386-avx-mpx-linux.xml: Remove.
3754 * features/i386/i386-avx-mpx.xml: Remove.
3755 * features/i386/i386-avx.xml: Remove.
3756 * features/i386/i386-linux.xml: Remove.
3757 * features/i386/i386-mmx-linux.xml: Remove.
3758 * features/i386/i386-mmx.xml: Remove.
3759 * features/i386/i386-mpx-linux.xml: Remove.
3760 * features/i386/i386-mpx.xml: Remove.
3761 * features/i386/i386.xml: Remove.
3762 * features/i386/x32-avx-avx512-linux.xml: Remove.
3763 * features/i386/x32-avx-linux.xml: Remove.
3764 * features/i386/x32-linux.xml: Remove.
3766 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3768 * regformats/aarch64.dat: Remove.
3769 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
3770 * regformats/i386/amd64-avx-linux.dat: Remove.
3771 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
3772 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
3773 * regformats/i386/amd64-linux.dat: Remove.
3774 * regformats/i386/amd64-mpx-linux.dat: Remove.
3775 * regformats/i386/amd64.dat: Remove.
3776 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
3777 * regformats/i386/i386-avx-linux.dat: Remove.
3778 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
3779 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
3780 * regformats/i386/i386-linux.dat: Remove.
3781 * regformats/i386/i386-mmx-linux.dat: Remove.
3782 * regformats/i386/i386-mpx-linux.dat: Remove.
3783 * regformats/i386/i386.dat: Remove.
3784 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
3785 * regformats/i386/x32-avx-linux.dat: Remove.
3786 * regformats/i386/x32-linux.dat: Remove.
3788 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3790 * aarch64-tdep.c: Remove xml self tests.
3791 * amd64-linux-tdep.c: Likewise.
3792 * amd64-tdep.c: Likewise.
3793 * i386-linux-tdep.c: Likewise.
3794 * i386-tdep.c: Likewise.
3796 2019-07-03 Pedro Alves <palves@redhat.com>
3799 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
3800 (pipe_cmd_option_defs): New.
3801 (make_pipe_cmd_options_def_group): New.
3802 (pipe_command): Use gdb::option::process_options.
3803 (pipe_command_completer): New function.
3804 (_initialize_cli_cmds): Install completer for "pipe" command.
3806 2019-07-03 Pedro Alves <palves@redhat.com>
3808 * cli/cli-option.c (union option_value) <string>: New field.
3809 (struct option_def_and_value): Add ctor, move ctor, dtor and
3810 use DISABLE_COPY_AND_ASSIGN.
3811 (option_def_and_value::clear_value): New.
3812 (parse_option, save_option_value_in_ctx, get_val_type_str)
3813 (add_setshow_cmds_for_options): Handle var_string.
3814 * cli-option.h (union option_def::var_address) <string>: New
3816 (struct string_option_def): New.
3817 * maint-test-options.c (struct test_options_opts): Add default
3818 ctor and use DISABLE_COPY_AND_ASSIGN.
3819 <string_opt>: New field.
3820 (test_options_opts::~test_options_opts): New.
3821 (test_options_opts::dump): Also dump "-string".
3822 (test_options_option_defs): Install "string.
3824 2019-07-03 Pedro Alves <palves@redhat.com>
3826 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
3827 option_value with a null enumeration.
3828 (complete_options): Save the option values in the context.
3829 (save_option_value_in_ctx): New, factored out from ...
3830 (process_options): ... here.
3831 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
3833 * maint-test-options.c (test_options_opts::dump): New, factored
3835 (maintenance_test_options_command_mode): ... here.
3836 (maintenance_test_options_command_completion_result): Delete.
3837 (maintenance_test_options_command_completion_text): Update
3839 (maintenance_show_test_options_completion_result): Change
3840 prototype. Just print
3841 maintenance_test_options_command_completion_text.
3842 (save_completion_result): New.
3843 (maintenance_test_options_completer_mode): Pass options context to
3844 complete_options, and then save a dump.
3845 (_initialize_maint_test_options): Use add_cmd to install "maint
3846 show test-options-completion-result".
3848 2019-07-03 Pedro Alves <palves@redhat.com>
3850 * NEWS (New commands): Mention "with" and "maint with".
3851 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
3852 (with_command, with_command_completer): New.
3853 (pipe_command): Adjust to new repeat_previous
3855 (_initialize_cli_cmds): Install the "with" command and its "w"
3857 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
3859 * cli/cli-setshow.c (parse_cli_var_uinteger)
3860 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
3861 argument strings for all var_types.
3862 (get_setshow_command_value_string): New, factored out from ...
3863 (do_show_command): ... this.
3864 * cli/cli-setshow.h: Include <string>.
3865 (get_setshow_command_value_string): Declare.
3866 * command.h (repeat_previous): Now returns const char *. Adjust
3868 * maint.c: Include "cli/cli-cmds.h".
3869 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
3870 (_initialize_maint_cmds): Register the "maintenance with" command.
3871 * top.c (repeat_previous): Move bits from pipe_command here:
3872 Return the saved command line, if any; error out if there's no
3873 command to relaunch.
3875 2019-07-03 Pedro Alves <palves@redhat.com>
3877 * NEWS (New commands): Mention "maint set/show test-settings"
3878 instead of "maint test-settings".
3879 * maint-test-settings.c (maintenance_test_settings_list): Delete.
3880 (maintenance_test_settings_set_list): Rename to ...
3881 (maintenance_set_test_settings_list): ... this.
3882 (maintenance_test_settings_show_list): Rename to ...
3883 (maintenance_show_test_settings_list): ... this.
3884 (maintenance_test_settings_cmd): Delete.
3885 (maintenance_test_settings_set_cmd): ...
3886 (maintenance_set_test_settings_cmd): ... this.
3887 (maintenance_test_settings_show_cmd): ...
3888 (maintenance_show_test_settings_cmd): ... this.
3889 (maintenance_test_settings_show_value_cmd):
3890 (maintenance_show_test_settings_value_cmd): ... this.
3891 (_initialize_maint_test_settings): No longer install the "maint
3892 test-settings" prefix command. Rename "maint test-settings set"
3893 to "maint set test-settings", and "maint test-settings show" to
3894 "maint show test-settings". Adjust all subcommands.
3896 2019-07-03 Pedro Alves <palves@redhat.com>
3898 * maint-test-settings.c: Fix file's intro comment. Replace all
3899 references to "test-options" with references to "test-settings",
3902 2019-07-03 Pedro Alves <palves@redhat.com>
3904 * maint-test-settings.c (maintenance_test_settings_xxx)
3905 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
3907 (maintenance_test_settings_enums): Use them.
3908 (maintenance_test_settings_enum): Default to
3909 maintenance_test_settings_xxx.
3910 (_initialize_maint_test_settings): Initialize
3911 MAINTENANCE_TEST_SETTINGS_FILENAME.
3913 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3915 * breakpoint.h (remove_breakpoints_inf): Change return type to
3916 void, move function documentation here.
3917 * breakpoint.c (remove_breakpoints_inf): Change return type to
3918 void, move function documentation to header.
3920 2019-07-02 Pedro Alves <palves@redhat.com>
3922 * NEWS (Completion improvements): Mention "info threads".
3923 * thread.c (struct info_threads_opts, info_threads_option_defs)
3924 (make_info_threads_options_def_group): New.
3925 (info_threads_command): Use gdb::option::process_options.
3926 (info_threads_command_completer): New.
3927 (_initialize_thread): Use gdb::option::build_help to build the
3928 help text for "info threads".
3930 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3932 * defs.h (generic_load): Move from here...
3933 * symfile.h (generic_load): ... to here. Rename name parameter
3935 * symfile.c (generic_load): Add comment.
3937 2019-07-01 Tom Tromey <tromey@adacore.com>
3940 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
3941 declaration of without_params. Fix formatting.
3943 2019-07-01 Tom Tromey <tromey@adacore.com>
3945 * ada-exp.y (find_primitive_type): Update.
3946 * ada-lang.h (ada_lookup_symbol): Update.
3947 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
3949 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
3951 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
3953 PR breakpoints/24541
3954 * gdbarch.c: Regenerate.
3955 * gdbarch.h: Regenerate.
3956 * gdbarch.sh: Add 'stap_adjust_register'.
3957 * i386-tdep.c: Include '<unordered_set>'.
3958 (i386_stap_adjust_register): New function.
3959 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
3960 * stap-probe.c (stap_parse_register_operand): Call
3961 'gdbarch_stap_adjust_register'.
3963 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
3966 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
3967 * python/python.c (do_start_initialization): Use 'xmalloc'
3968 instead of 'PyMem_Malloc'.
3970 2019-06-28 Tom Tromey <tromey@adacore.com>
3972 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
3975 2019-06-27 Tom Tromey <tromey@adacore.com>
3977 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
3979 (arm_find_mapping_symbol, arm_record_special_symbol)
3980 (_initialize_arm_tdep): Update.
3981 (arm_objfile_data_free): Remove.
3983 2019-06-27 Tom Tromey <tromey@adacore.com>
3985 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
3986 to cp_print_static_field.
3988 2019-06-26 Tom Tromey <tromey@adacore.com>
3990 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
3991 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
3994 2019-06-26 Alan Hayward <alan.hayward@arm.com>
3996 * features/aarch64-core.c (create_feature_aarch64_core):
3998 * features/aarch64-core.xml: Add cpsr flags.
4000 2019-06-26 Alan Hayward <alan.hayward@arm.com>
4002 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
4003 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
4005 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
4007 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
4009 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
4011 (arm_record_special_symbol): Don't insert new symbol in sorted
4012 position, push it at the end.
4014 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
4016 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
4017 (arm_mapping_symbol_s): Remove.
4018 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
4019 (arm_mapping_symbol_vec): New typedef.
4020 (struct arm_per_objfile): Add constructor.
4021 <section_maps>: Change type to
4022 std::unique_ptr<arm_mapping_symbol_vec[]>.
4023 (arm_compare_mapping_symbols): Remove.
4024 (arm_find_mapping_symbol): Adjust to section_maps type change.
4025 (arm_objfile_data_free): Call delete on arm_per_objfile.
4026 (arm_record_special_symbol): Adjust to section_maps type change.
4027 Allocate arm_per_objfile with new.
4029 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4031 * cli/cli-cmds.c (alias_command): Compare the alias prefix
4032 with the command prefix.
4034 2019-06-25 Tom Tromey <tom@tromey.com>
4036 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
4037 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
4039 2019-06-25 Tom Tromey <tom@tromey.com>
4041 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
4043 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
4046 2019-06-25 Tom Tromey <tom@tromey.com>
4048 * tui/tui-winsource.c
4049 (tui_source_window_base::set_is_exec_point_at): Add check against
4052 2019-06-25 Tom Tromey <tom@tromey.com>
4054 * tui/tui-source.c (tui_set_source_content): Don't check before
4056 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
4058 2019-06-25 Tom Tromey <tom@tromey.com>
4060 * tui/tui-winsource.h (tui_update_source_window_as_is)
4061 (tui_alloc_source_buffer, tui_line_is_displayed)
4062 (tui_addr_is_displayed): Change type of win_info.
4063 * tui/tui-winsource.c (tui_update_source_window_as_is)
4064 (tui_clear_source_content, tui_show_source_line)
4065 (tui_show_source_content, tui_source_window_base::refill)
4066 (tui_source_window_base::set_is_exec_point_at)
4067 (tui_source_window_base::set_is_exec_point_at)
4068 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
4069 (tui_alloc_source_buffer, tui_line_is_displayed)
4070 (tui_addr_is_displayed): Change type of win_info. Update.
4071 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4072 (tui_source_window_base::do_make_visible_with_new_height):
4074 * tui/tui-source.c (tui_set_source_content)
4075 (tui_set_source_content_nil)
4076 (tui_source_window::do_scroll_vertical): Update.
4077 * tui/tui-layout.c (show_layout): Update.
4078 * tui/tui-disasm.c (tui_set_disassem_content)
4079 (tui_disasm_window::do_scroll_vertical): Update.
4080 * tui/tui-data.h (tui_win_content): Remove.
4081 (struct tui_gen_win_info) <content, content_size>: Remove.
4082 (struct tui_source_element): Add initializers and destructor.
4083 (union tui_which_element, struct tui_win_element): Remove.
4084 (struct tui_source_window_base) <content>: New field.
4085 (struct tui_data_window): Remove destructor.
4086 (tui_alloc_content, tui_free_win_content)
4087 (tui_free_all_source_wins_content): Don't declare.
4088 * tui/tui-data.c (tui_initialize_static_data): Update.
4089 (init_content_element, tui_alloc_content): Remove.
4090 (~tui_gen_win_info): Update.
4091 (~tui_data_window, tui_free_all_source_wins_content)
4092 (tui_free_win_content, free_content, free_content_elements):
4095 2019-06-25 Tom Tromey <tom@tromey.com>
4097 * tui/tui-winsource.h (tui_clear_source_content)
4098 (tui_erase_source_content, tui_show_source_content): Change type
4100 * tui/tui-winsource.c (tui_clear_source_content)
4101 (tui_erase_source_content, tui_show_source_content): Change type
4103 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4104 * tui/tui-source.h (tui_set_source_content_nil): Change type of
4106 * tui/tui-source.c (tui_set_source_content_nil): Change type of
4108 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
4110 2019-06-25 Tom Tromey <tom@tromey.com>
4112 * tui/tui-winsource.c (tui_clear_source_content)
4113 (tui_source_window_base::set_is_exec_point_at): Update.
4114 * tui/tui-source.c (tui_set_source_content_nil): Update.
4115 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
4117 * tui/tui-data.c (init_content_element): Update.
4119 2019-06-25 Tom Tromey <tom@tromey.com>
4121 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
4122 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
4123 * tui/tui-layout.c (init_and_make_win): Update.
4124 * tui/tui.h (enum tui_win_type): Update.
4125 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
4126 tui_win_is_auxillary.
4127 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
4128 tui_win_is_auxillary.
4130 2019-06-25 Tom Tromey <tom@tromey.com>
4132 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
4133 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
4134 (tui_delete_data_content_windows, tui_display_all_data)
4135 (tui_data_window::do_scroll_vertical, tui_display_data_from):
4137 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
4138 * tui/tui-regs.c (tui_last_regs_line_no)
4139 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
4140 (tui_show_registers): Update.
4141 (tui_show_register_group): Return void. Update.
4142 (tui_display_registers_from, tui_display_reg_element_at_line)
4143 (tui_display_registers_from_line, tui_check_register_values):
4145 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
4147 (struct tui_data_window) <regs_content>: Now a std::vector.
4148 <regs_content_count>: Remove.
4149 (tui_add_content_elements, tui_free_data_content): Don't declare.
4150 * tui/tui-data.c (tui_data_window::clear_detail): Update.
4151 (init_content_element): Remove DATA_WIN case. Add assert.
4152 (tui_add_content_elements): Remove.
4153 (tui_data_window): Update.
4154 (tui_free_data_content): Remove.
4155 (free_content_elements): Remove DATA_WIN case.
4157 2019-06-25 Tom Tromey <tom@tromey.com>
4159 * tui/tui-data.c (tui_data_item_window): Update.
4160 * tui/tui-windata.h (tui_check_data_values): Don't declare.
4161 * tui/tui-windata.c (tui_display_all_data)
4162 (tui_display_data_from_line): Update.
4163 (tui_check_data_values): Remove.
4164 * tui/tui-regs.c (tui_show_register_group)
4165 (tui_display_reg_element_at_line): Update.
4166 * tui/tui-hooks.c (tui_register_changed)
4167 (tui_refresh_frame_and_register_information): Call
4168 tui_check_register_values.
4169 * tui/tui-data.h (struct tui_data_window) <data_content,
4170 data_content_count, data_type>: Remove.
4171 (enum tui_data_type): Remove.
4173 * tui/tui-data.c (tui_data_window::clear_detail)
4174 (~tui_data_window): Update.
4176 2019-06-25 Tom Tromey <tom@tromey.com>
4178 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
4180 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
4181 Rename from tui_first_data_item_displayed. Update.
4182 (tui_data_window::refresh_all)
4183 (tui_data_window::do_scroll_vertical): Update.
4184 * tui/tui-data.h (struct tui_data_window)
4185 <first_data_item_displayed>: Declare new method.
4187 2019-06-25 Tom Tromey <tom@tromey.com>
4189 * tui/tui-data.h (tui_init_generic_part): Don't declare.
4190 * tui/tui-data.c (tui_init_generic_part): Remove, moving
4192 (tui_initialize_static_data): ...here.
4194 2019-06-25 Tom Tromey <tom@tromey.com>
4196 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4197 (tui_display_registers_from, tui_check_register_values): Update.
4198 (tui_display_register): Remove win_info parameter; update.
4199 (tui_get_register): Change type of parameters.
4200 * tui/tui-data.h (struct tui_data_element): Remove.
4201 (union tui_which_element) <data>: Remove.
4202 <data_window>: Change type.
4203 (struct tui_data_item_window): New.
4204 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
4206 (~tui_data_item_window): New destructor.
4207 (free_content_elements): Remove DATA_ITEM_WIN case.
4209 2019-06-25 Tom Tromey <tom@tromey.com>
4211 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
4214 2019-06-25 Tom Tromey <tom@tromey.com>
4216 * tui/tui-data.h (struct tui_command_element): Remove.
4217 (union tui_which_element) <command>: Remove.
4218 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
4220 (free_content_elements): Remove CMD_WIN case.
4222 2019-06-25 Tom Tromey <tom@tromey.com>
4224 * tui/tui-layout.c (tui_set_layout): Update.
4225 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
4226 * tui/tui-data.c (layout_def): Update.
4228 2019-06-25 Tom Tromey <tom@tromey.com>
4230 * tui/tui-wingeneral.c (tui_refresh_all): Update.
4231 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4232 (tui_source_window_base::set_new_height): Update.
4233 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
4235 (tui_set_locator_fullname, tui_set_locator_info)
4236 (tui_show_frame_info): Update.
4237 * tui/tui-source.c (tui_set_source_content)
4238 (tui_source_is_displayed): Update.
4239 * tui/tui-layout.c (show_source_disasm_command, show_data)
4240 (show_source_or_disasm_and_command): Update.
4241 * tui/tui-disasm.c (tui_set_disassem_content)
4242 (tui_get_begin_asm_address): Update.
4243 * tui/tui-data.h (struct tui_locator_element): Remove.
4244 (union tui_which_element) <locator>: Remove.
4245 (struct tui_locator_window): New.
4246 (tui_locator_win_info_ptr): Change return type.
4247 * tui/tui-data.c (_locator): Change type.
4248 (tui_locator_win_info_ptr): Change return type.
4249 (init_content_element): Remove LOCATOR_WIN case. Add assert.
4250 (tui_alloc_content): Add assert.
4252 2019-06-25 Tom Tromey <tom@tromey.com>
4254 * tui/tui-winsource.c
4255 (tui_exec_info_window::maybe_allocate_content): New method.
4256 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
4257 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
4258 (make_source_or_disasm_window): Add cast.
4259 * tui/tui-data.h (union tui_which_element) <simple_string>:
4261 (struct tui_source_info): New.
4262 (struct tui_source_window_base) <execution_info>: Change type.
4263 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
4264 case, and add assert.
4265 (tui_alloc_content): Add assert.
4267 2019-06-25 Tom Tromey <tom@tromey.com>
4269 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
4270 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
4271 * tui/tui-data.c (tui_alloc_win_info): Remove.
4273 2019-06-25 Tom Tromey <tom@tromey.com>
4275 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
4276 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
4279 2019-06-25 Tom Tromey <tom@tromey.com>
4281 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
4282 make_visible_with_new_height method.
4283 (tui_win_info::make_visible_with_new_height): New method.
4284 (tui_source_window_base::do_make_visible_with_new_height)
4285 (tui_data_window::do_make_visible_with_new_height)
4286 (tui_cmd_window::do_make_visible_with_new_height): New methods.
4287 (make_visible_with_new_height): Remove.
4288 (tui_resize_all, tui_adjust_win_heights): Use
4289 make_visible_with_new_height method.
4290 * tui/tui-data.h (struct tui_win_info)
4291 <do_make_visible_with_new_height, make_visible_with_new_height>:
4293 (struct tui_source_window_base, struct tui_data_window)
4294 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
4297 2019-06-25 Tom Tromey <tom@tromey.com>
4299 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
4301 (update_tab_width): Call update_tab_width method.
4302 * tui/tui-data.h (struct tui_win_info)
4303 (struct tui_source_window_base) <update_tab_width>: New methods.
4305 2019-06-25 Tom Tromey <tom@tromey.com>
4307 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
4309 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
4311 (tui_gen_win_info::make_visible): Update.
4312 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
4314 * tui/tui-data.h (enum tui_box): New enum.
4315 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
4317 2019-06-25 Tom Tromey <tom@tromey.com>
4319 * tui/tui-layout.c (make_source_or_disasm_window): Always use
4320 init_and_make_win for EXEC_INFO_WIN.
4321 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
4323 (struct tui_win_info) <~tui_win_info>: Inline.
4324 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4326 * tui/tui-data.c (source_win, disasm_win): Remove globals.
4327 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4329 (tui_initialize_static_data): Update.
4330 (~tui_gen_win_info): Handle more cleanup here.
4331 (~tui_source_window_base): Delete "execution_info".
4332 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
4334 2019-06-25 Tom Tromey <tom@tromey.com>
4336 * tui/tui-layout.c (make_command_window): Don't set
4338 (show_source_disasm_command): Call the reset method.
4339 (show_data): Don't set can_highlight. Call the reset method.
4340 (tui_gen_win_info::reset): Rename from init_gen_win_info
4341 (init_and_make_win): Simplify. Return tui_gen_win_info.
4342 (show_source_or_disasm_and_command): Call the reset method.
4343 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
4344 (struct tui_cmd_window): Set can_highlight.
4346 2019-06-25 Tom Tromey <tom@tromey.com>
4348 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
4350 (tui_make_visible, tui_make_invisible): Rewrite.
4351 (tui_win_info::make_visible): Remove.
4352 (tui_source_window_base::make_visible): Update.
4353 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
4354 method. Moved from...
4355 (struct tui_win_info) <make_visible>: ...here.
4357 2019-06-25 Tom Tromey <tom@tromey.com>
4359 * tui/tui-winsource.c
4360 (tui_source_window_base::do_scroll_horizontal): Remove direction
4362 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
4363 direction parameter.
4364 * tui/tui-win.c (tui_win_info::forward_scroll)
4365 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
4366 (tui_win_info::right_scroll): Update.
4367 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
4368 direction parameter.
4369 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
4370 direction parameter.
4371 * tui/tui-data.h (enum tui_scroll_direction): Remove.
4372 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
4373 Remove direction parameter.
4374 (struct tui_source_window_base, struct tui_source_window)
4375 (struct tui_disasm_window, struct tui_data_window)
4376 (struct tui_cmd_window): Update.
4378 2019-06-25 Tom Tromey <tom@tromey.com>
4380 * tui/tui-winsource.h (tui_set_exec_info_content)
4381 (tui_show_exec_info_content, tui_erase_exec_info_content)
4382 (tui_clear_exec_info_content, tui_update_exec_info): Change
4383 argument to tui_source_window_base.
4384 * tui/tui-winsource.c (tui_set_exec_info_content)
4385 (tui_show_exec_info_content, tui_erase_exec_info_content)
4386 (tui_clear_exec_info_content, tui_update_exec_info): Change
4387 argument to tui_source_window_base.
4389 2019-06-25 Tom Tromey <tom@tromey.com>
4391 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
4392 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
4394 2019-06-25 Tom Tromey <tom@tromey.com>
4396 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
4399 2019-06-25 Tom Tromey <tom@tromey.com>
4401 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
4403 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
4405 * tui/tui-source.c (tui_set_source_content): Update.
4406 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4408 2019-06-25 Tom Tromey <tom@tromey.com>
4410 * tui/tui-win.c (window_name_completer, tui_set_focus)
4411 (tui_all_windows_info): Use name method.
4412 * tui/tui-data.h (struct tui_gen_win_info)
4413 (struct tui_source_window, struct tui_disasm_window)
4414 (struct tui_data_window, struct tui_cmd_window) <name>: New
4416 (tui_win_name): Don't declare.
4417 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
4418 (tui_win_name): Remove.
4420 2019-06-25 Tom Tromey <tom@tromey.com>
4422 * tui/tui-winsource.h (tui_update_source_window)
4423 (tui_update_source_window_as_is): Change parameter type.
4424 * tui/tui-winsource.c (tui_update_source_window): Change win_info
4425 to be a tui_source_window_base.
4426 (tui_update_source_window_as_is): Likewise.
4427 * tui/tui-win.c (make_visible_with_new_height): Update.
4429 2019-06-25 Tom Tromey <tom@tromey.com>
4431 * tui/tui-winsource.c (tui_erase_source_content)
4432 (tui_show_source_content, tui_show_exec_info_content)
4433 (tui_erase_exec_info_content): Use refresh_window method.
4434 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
4435 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
4436 from tui_refresh_win.
4437 (tui_data_window::refresh_window): New method.
4438 (tui_win_info::refresh, tui_source_window_base::refresh)
4439 (tui_refresh_all): Use refresh_window method.
4440 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
4442 * tui/tui-regs.c (tui_display_register): Call refresh_window
4444 * tui/tui-layout.c (show_source_disasm_command)
4445 (show_source_or_disasm_and_command): Call refresh_window method.
4446 * tui/tui-data.h (struct tui_gen_win_info)
4447 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
4450 2019-06-25 Tom Tromey <tom@tromey.com>
4452 * tui/tui.c (tui_rl_other_window, tui_enable)
4453 (tui_is_window_visible, tui_get_command_dimension): Update.
4454 * tui/tui-winsource.c (tui_update_source_window_as_is)
4455 (tui_clear_source_content, tui_erase_source_content)
4456 (tui_show_source_line, tui_source_window_base::refill)
4457 (tui_source_window_base::do_scroll_horizontal)
4458 (tui_source_window_base::set_is_exec_point_at)
4459 (tui_update_breakpoint_info, tui_set_exec_info_content)
4460 (tui_alloc_source_buffer, tui_line_is_displayed)
4461 (tui_addr_is_displayed): Update.
4462 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
4463 (tui_check_and_display_highlight_if_needed)
4464 (tui_win_info::make_visible, tui_win_info::refresh)
4465 (tui_refresh_all): Update.
4466 * tui/tui-windata.c (tui_first_data_item_displayed)
4467 (tui_delete_data_content_windows, tui_erase_data_content)
4468 (tui_display_all_data, tui_data_window::refresh_all)
4469 (tui_check_data_values): Update.
4470 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
4471 (tui_set_win_focus_to, tui_win_info::forward_scroll)
4472 (tui_win_info::backward_scroll, tui_refresh_all_win)
4473 (tui_resize_all, tui_set_focus, tui_all_windows_info)
4474 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
4475 (tui_source_window_base::set_new_height)
4476 (tui_data_window::set_new_height)
4477 (make_invisible_and_set_new_height)
4478 (make_visible_with_new_height, new_height_ok)
4479 (parse_scrolling_args): Update.
4480 * tui/tui-stack.c (tui_show_frame_info): Update.
4481 * tui/tui-source.c (tui_set_source_content)
4482 (tui_set_source_content_nil, tui_source_is_displayed)
4483 (tui_source_window::do_scroll_vertical): Update.
4484 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4485 (tui_display_registers_from, tui_display_reg_element_at_line)
4486 (tui_check_register_values, tui_reg_command): Update.
4487 * tui/tui-layout.c (tui_default_win_height)
4488 (show_source_disasm_command, show_data, init_and_make_win)
4489 (show_source_or_disasm_and_command): Update.
4490 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
4491 (tui_redisplay_readline, tui_mld_flush)
4492 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
4494 * tui/tui-disasm.c (tui_set_disassem_content)
4495 (tui_disasm_window::do_scroll_vertical): Update.
4496 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
4498 (struct tui_win_info): Derive from tui_gen_win_info.
4499 <~tui_win_info>: Mark as override.
4500 <generic>: Remove member.
4501 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
4502 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
4503 (~tui_data_window, ~tui_win_info)
4504 (tui_free_all_source_wins_content): Update.
4505 * tui/tui-command.c (tui_refresh_cmd_win): Update.
4507 2019-06-25 Tom Tromey <tom@tromey.com>
4509 * tui/tui-layout.c (init_and_make_win): Use new.
4510 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
4511 destructor, initializers.
4512 (tui_alloc_generic_win_info): Don't declare.
4513 * tui/tui-data.c (_locator): Add argument to constructor.
4514 (source_win, disasm_win): New globals.
4515 (exec_info): Remove.
4516 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4518 (tui_alloc_generic_win_info): Remove.
4519 (init_content_element): Use new.
4520 (tui_win_info::tui_win_info): Update.
4521 (free_content_elements) <case DATA_WIN>: Use delete.
4523 2019-06-25 Tom Tromey <tom@tromey.com>
4525 * tui/tui-wingeneral.c (tui_refresh_win): Update.
4526 * tui/tui-windata.c (tui_first_data_item_displayed)
4527 (tui_delete_data_content_windows): Update.
4528 * tui/tui-win.c (tui_data_window::set_new_height): Update.
4529 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4530 (tui_display_registers_from, tui_check_register_values): Update.
4531 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
4533 * tui/tui-data.c (init_content_element): Update. Allocate the new
4535 (tui_free_data_content): Update.
4536 (free_content_elements) <case DATA_WIN>: Free the window.
4538 2019-06-25 Tom Tromey <tom@tromey.com>
4540 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
4542 * tui/tui-layout.c (make_command_window)
4543 (show_source_disasm_command, show_data, init_and_make_win)
4544 (show_source_or_disasm_and_command): Update.
4545 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
4547 <can_highight, is_highlighted>: Now bool.
4548 (tui_set_win_highlight): Don't declare.
4549 * tui/tui-data.c (tui_set_win_highlight): Remove.
4551 2019-06-25 Tom Tromey <tom@tromey.com>
4553 * tui/tui-wingeneral.c (make_visible): Remove check of window
4556 2019-06-25 Tom Tromey <tom@tromey.com>
4558 * tui/tui-win.c (tui_win_info::max_height)
4559 (tui_cmd_window::max_height): New methods.
4560 (new_height_ok): Call max_height.
4561 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
4562 <max_height>: New method.
4564 2019-06-25 Tom Tromey <tom@tromey.com>
4566 * tui/tui-win.c (tui_source_window_base::set_new_height)
4567 (tui_data_window::set_new_height): New methods.
4568 (make_invisible_and_set_new_height): Call set_new_height method.
4569 * tui/tui-data.h (struct tui_win_info)
4570 (struct tui_source_window_base, struct tui_data_window)
4571 <set_new_height>: New method.
4573 2019-06-25 Tom Tromey <tom@tromey.com>
4575 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
4576 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
4577 tui_refresh_data_win.
4578 * tui/tui-win.c (tui_source_window_base::refresh_all): New
4580 (tui_refresh_all_win): Call the refresh_all method.
4581 (tui_set_focus): Likewise.
4582 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
4583 (struct tui_source_window_base, struct tui_data_window) <refresh>:
4586 2019-06-25 Tom Tromey <tom@tromey.com>
4588 * tui/tui-winsource.h (tui_refill_source_window)
4589 (tui_set_is_exec_point_at): Don't declare.
4590 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4591 (tui_source_window_base::refill): Rename from
4592 tui_refill_source_window.
4593 (tui_source_window_base::do_scroll_horizontal): Update.
4594 (tui_source_window_base::set_is_exec_point_at): Rename from
4595 tui_set_is_exec_point_at.
4596 (tui_update_all_breakpoint_info): Update.
4597 * tui/tui-stack.c (tui_show_frame_info): Update.
4598 * tui/tui-layout.c (show_data): Add cast.
4599 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
4600 * tui/tui-data.h (struct tui_source_window_base) <refill,
4601 set_is_exec_point_at>: New methods.
4602 (tui_source_windows, tui_add_to_source_windows): Update types.
4603 (tui_add_to_source_windows): Remove redundant declaration.
4604 * tui/tui-data.c (source_windows): Store tui_source_window_base.
4605 (tui_source_windows): Change return type.
4606 (tui_clear_source_windows_detail): Update.
4607 (tui_add_to_source_windows): Change type of parameter.
4608 (tui_free_all_source_wins_content): Update.
4610 2019-06-25 Tom Tromey <tom@tromey.com>
4612 * tui/tui-wingeneral.c (tui_win_info::refresh)
4613 (tui_source_window_base::refresh): New methods.
4614 (tui_refresh_all): Call the refresh method.
4615 * tui/tui-data.h (struct tui_win_info)
4616 (struct tui_source_window_base) <refresh>: New method.
4618 2019-06-25 Tom Tromey <tom@tromey.com>
4620 * tui/tui.h (tui_is_window_visible): Return bool.
4621 * tui/tui.c (tui_is_window_visible): Return bool.
4622 * tui/tui-wingeneral.c (tui_make_window, make_visible)
4623 (tui_make_visible, tui_make_invisible)
4624 (tui_win_info::make_visible)
4625 (tui_source_window_base::make_visible, make_all_visible)
4626 (tui_make_all_visible, tui_make_all_invisible): Update.
4627 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
4628 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
4630 (struct tui_win_info, struct tui_source_window_base)
4631 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
4632 * tui/tui-data.c (tui_init_generic_part): Update.
4634 2019-06-25 Tom Tromey <tom@tromey.com>
4636 * tui/tui-wingeneral.c (tui_win_info::make_visible)
4637 (tui_source_window_base::make_visible): New methods.
4638 (make_all_visible): Make method call.
4639 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
4640 (struct tui_source_window_base, struct tui_cmd_window): Override
4642 (tui_win_is_source_type): Don't declare.
4643 * tui/tui-data.c (tui_win_is_source_type): Remove.
4645 2019-06-25 Tom Tromey <tom@tromey.com>
4647 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
4650 2019-06-25 Tom Tromey <tom@tromey.com>
4652 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
4653 Inline constructor. Add initializers for members.
4654 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
4655 constructors; now inline in class.
4657 2019-06-25 Tom Tromey <tom@tromey.com>
4659 * tui/tui-regs.c (tui_show_registers): Update.
4660 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
4662 * tui/tui-data.c (tui_data_window::clear_detail)
4663 (tui_data_window): Update.
4665 2019-06-25 Tom Tromey <tom@tromey.com>
4667 * tui/tui-windata.c (tui_display_all_data)
4668 (tui_display_data_from_line, tui_display_data_from)
4669 (tui_check_data_values, tui_data_window::do_scroll_vertical):
4671 * tui/tui-regs.c (tui_last_regs_line_no)
4672 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
4673 (tui_show_registers, tui_show_register_group)
4674 (tui_display_registers_from, tui_display_reg_element_at_line)
4675 (tui_display_registers_from_line, tui_check_register_values)
4676 (tui_reg_next, tui_reg_prev): Update.
4677 * tui/tui-layout.c (tui_set_layout, show_data): Update.
4678 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
4680 (struct tui_win_info) <detail>: Remove. Add new fields from
4682 (TUI_DATA_WIN): Add cast.
4683 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
4684 (~tui_data_window): Simplify.
4686 2019-06-25 Tom Tromey <tom@tromey.com>
4688 * tui/tui-layout.c (show_source_disasm_command)
4689 (show_source_or_disasm_and_command): Update.
4690 * tui/tui-io.c (update_cmdwin_start_line)
4691 (tui_redisplay_readline): Update.
4692 * tui/tui-data.h (struct tui_command_info): Remove.
4693 (struct tui_win_info) <detail>: Remove command_info member.
4694 (struct tui_data_window) <start_line>: New member, from
4696 (TUI_CMD_WIN): Add casts.
4698 2019-06-25 Tom Tromey <tom@tromey.com>
4700 * tui/tui-winsource.c (tui_update_source_window)
4701 (tui_refill_source_window)
4702 (tui_source_window_base::do_scroll_horizontal)
4703 (tui_update_breakpoint_info, tui_set_exec_info_content)
4704 (tui_show_exec_info_content, tui_erase_exec_info_content)
4705 (tui_clear_exec_info_content): Update.
4706 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
4708 * tui/tui-win.c (make_invisible_and_set_new_height)
4709 (make_visible_with_new_height): Update.
4710 * tui/tui-source.c (tui_set_source_content)
4711 (tui_show_symtab_source): Update.
4712 * tui/tui-layout.c (extract_display_start_addr)
4713 (show_source_disasm_command, show_data)
4714 (make_source_or_disasm_window)
4715 (show_source_or_disasm_and_command): Update.
4716 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
4717 (tui_disasm_window::do_scroll_vertical): Remove shadowing
4719 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
4720 to tui_source_window_base.
4721 (struct tui_win_info) <detail>: Remove source_info member.
4722 (struct tui_source_window_base) <has_locator>: Inline.
4723 Move contents from tui_source_info; rename has_locator member to
4725 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
4726 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
4728 (tui_source_window_base::clear_detail, ~tui_source_window_base):
4730 (tui_free_all_source_wins_content): Cast to
4731 tui_source_window_base.
4733 2019-06-25 Tom Tromey <tom@tromey.com>
4735 * tui/tui-win.c (make_invisible_and_set_new_height)
4736 (make_visible_with_new_height): Call has_locator method.
4737 * tui/tui-layout.c (show_source_disasm_command, show_data)
4738 (show_source_or_disasm_and_command): Update for bool change.
4739 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
4740 (tui_win_info) <has_locator>: New method.
4741 (struct tui_source_window_base) <has_locator>: New method.
4742 (tui_win_has_locator): Don't declare.
4743 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
4744 from tui_win_has_locator.
4745 (tui_source_window_base): Use false, not FALSE.
4747 2019-06-25 Tom Tromey <tom@tromey.com>
4749 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
4750 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
4751 clear_detail method directly.
4752 (tui_clear_win_detail): Remove.
4754 2019-06-25 Tom Tromey <tom@tromey.com>
4756 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
4757 "this", not TUI_DISASM_WIN.
4759 2019-06-25 Tom Tromey <tom@tromey.com>
4761 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
4763 * tui/tui-winsource.c
4764 (tui_source_window_base::do_scroll_horizontal): Rename from
4765 tui_horizontal_source_scroll.
4766 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
4767 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
4768 from tui_vertical_data_scroll.
4769 * tui/tui-win.h (tui_scroll): Don't declare.
4770 * tui/tui-win.c (tui_win_info::forward_scroll)
4771 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
4772 (tui_win_info::right_scroll): Rename and update.
4773 (tui_scroll_forward_command, tui_scroll_backward_command)
4774 (tui_scroll_left_command, tui_scroll_right_command): Update.
4775 (tui_scroll): Remove.
4776 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
4777 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
4778 from tui_vertical_source_scroll.
4779 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
4780 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
4781 from tui_vertical_disassem_scroll.
4782 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
4783 do_scroll_horizontal>: New methods.
4784 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
4786 (struct tui_source_window_base): Add do_scroll_horizontal.
4787 (struct tui_source_window, struct tui_disasm_window): Add
4789 (struct tui_data_window, struct tui_cmd_window): Add
4790 do_scroll_horizontal and do_scroll_vertical.
4791 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
4793 2019-06-25 Tom Tromey <tom@tromey.com>
4795 * tui/tui-data.h (struct tui_source_window_base): New struct.
4796 (struct tui_source_window): Derive from tui_source_window_base.
4797 (struct tui_disasm_window): New struct.
4798 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
4799 from tui_source_window::clear_detail.
4800 (tui_source_window_base): Rename from tui_source_window.
4801 (~tui_source_window_base): Rename from ~tui_source_window.
4802 (tui_alloc_win_info): Create a tui_disasm_window.
4804 2019-06-25 Tom Tromey <tom@tromey.com>
4806 * tui/tui-data.h (struct tui_source_window)
4807 (struct tui_data_window): Declare destructors.
4808 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
4810 (tui_win_info): Simplify.
4812 2019-06-25 Tom Tromey <tom@tromey.com>
4814 * tui/tui-winsource.c (tui_display_main)
4815 (tui_update_source_windows_with_addr)
4816 (tui_update_all_breakpoint_info): Update.
4817 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4818 (new_height_ok, parse_scrolling_args): Update.
4819 * tui/tui-stack.c (tui_show_frame_info): Update.
4820 * tui/tui-data.h (struct tui_list): Remove.
4821 (tui_source_windows): Return a reference to a std::vector.
4822 * tui/tui-data.c (source_windows): Now a std::vector.
4823 (tui_source_windows): Change return type.
4824 (tui_clear_source_windows): Rewrite.
4825 (tui_clear_source_windows_detail, tui_add_to_source_windows)
4826 (tui_free_all_source_wins_content): Rewrite.
4828 2019-06-25 Tom Tromey <tom@tromey.com>
4830 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
4831 (struct tui_data_window, struct tui_cmd_window): Declare
4832 clear_detail method.
4833 * tui/tui-data.c (tui_source_window::clear_detail)
4834 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
4836 (tui_clear_win_detail): Simplify.
4838 2019-06-25 Tom Tromey <tom@tromey.com>
4840 * tui/tui-layout.c (make_source_window, make_disasm_window)
4841 (make_source_or_disasm_window): Remove win_info_ptr parameter.
4842 Return the new window.
4843 (show_source_disasm_command, show_data)
4844 (show_source_or_disasm_and_command): Update.
4846 2019-06-25 Tom Tromey <tom@tromey.com>
4848 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
4849 parameter. Return the new window.
4850 (show_source_disasm_command): Update and remove NULL check.
4851 (show_source_or_disasm_and_command): Update.
4853 2019-06-25 Tom Tromey <tom@tromey.com>
4855 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
4857 2019-06-25 Tom Tromey <tom@tromey.com>
4859 * tui/tui-data.h (struct tui_win_info): Make constructor
4860 protected. Make destructor virtual. Add initializers.
4861 (tui_source_window, tui_data_window, tui_cmd_window): New
4863 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
4864 constructor. Add "type" parameter.
4865 (tui_source_window, tui_data_window, tui_cmd_window): New
4867 (tui_alloc_win_info): Instantiate the appropriate subclass.
4869 2019-06-25 Tom Tromey <tom@tromey.com>
4871 * tui/tui-win.c (tui_resize_all): Use delete.
4872 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
4874 (tui_free_window): Don't declare.
4875 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
4878 2019-06-25 Tom Tromey <tom@tromey.com>
4880 * tui/tui-data.h (struct tui_win_info): Add constructor.
4881 * tui/tui-data.c (tui_alloc_win_info): Use new.
4882 (tui_free_window): Use delete.
4884 2019-06-22 Tom Tromey <tom@tromey.com>
4886 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
4888 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
4890 2019-06-22 Tom Tromey <tom@tromey.com>
4892 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
4894 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
4896 2019-06-22 Tom de Vries <tdevries@suse.de>
4898 * dwarf2read.c (create_addrmap_from_aranges)
4899 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
4902 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
4904 * dwarf2read.h (dwarf2_section_info_def): Remove.
4905 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
4906 * dwarf2read.c (struct dwo_sections) <types>: Change type to
4907 std::vector<dwarf2_section_info>.
4908 (struct dwo_file) <~dwo_file>: Remove.
4909 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
4911 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
4912 (dwarf2_read_debug_names): Likewise.
4913 (create_debug_types_hash_table): Change parameter type to
4914 array_view, adjust code accordingly.
4915 (dwarf2_locate_dwo_sections): Adjust to std::vector.
4916 (partial_die_info::fixup): Likewise.
4917 (determine_prefix): Likewise.
4918 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
4920 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4922 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
4924 <~dwo_file>: Remove call to gdb_bfd_unref.
4925 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
4926 gdb_bfd_ref_ptr::get.
4928 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4930 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
4932 * dwarf2read.c (struct dwo_file): Initialize fields.
4934 (free_dwo_file): Remove, move content to ~dwo_file.
4935 (struct dwo_file_deleter): Remove.
4936 (dwo_file_up>: Remove custom deleter.
4937 (free_dwo_files): Remove.
4938 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
4940 (process_skeletonless_type_units): Call unique_ptr::get.
4941 (allocate_dwo_file_hash_table): Add deleter to created hash
4942 table. Change return type to htab_up.
4943 (lookup_dwo_file_slot): Don't memset dwo_file, call
4945 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
4946 (create_dwo_unit_in_dwp_v2): Likewise.
4947 (open_and_init_dwo_file): Likewise.
4948 (free_dwo_file_from_slot): Remove.
4950 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4952 * dwarf2read.h (struct dwarf2_section_info) <readin,
4953 is_virtual>: Change type to bool.
4954 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
4957 2019-06-19 Tom Tromey <tom@tromey.com>
4959 * tui/tui-data.h (tui_init_content_element): Don't declare.
4961 2019-06-19 Tom Tromey <tom@tromey.com>
4963 * tui/tui-data.h (tui_init_win_info): Don't declare.
4965 2019-06-19 Tom de Vries <tdevries@suse.de>
4967 * dwarf2read.h (abstract_to_concrete): Change type to
4968 std::unordered_map<sect_offset, std::vector<sect_offset>,
4969 gdb::hash_enum<sect_offset>>.
4971 2019-06-19 Tom Tromey <tromey@adacore.com>
4973 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
4974 EVAL_AVOID_SIDE_EFFECTS specially.
4976 2019-06-19 Tom Tromey <tromey@adacore.com>
4978 * source-cache.c (highlighter): New global.
4979 (source_cache::get_source_lines): Create a highlighter on demand.
4981 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
4983 * defs.h (deprecated_interactive_hook): Delete declaration.
4984 * interps.c (clear_interpreter_hooks): Remove use of
4985 deprecated_interactive_hook.
4986 * top.c (deprecated_interactive_hook): Delete definition.
4987 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
4989 2019-06-18 Tom de Vries <tdevries@suse.de>
4992 * dwarf2read.h (abstract_to_concrete): Change type from
4993 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
4994 std::unordered_map<sect_offset, std::vector<sect_offset>>.
4995 * dwarf2read.c (read_variable): Update.
4996 (dwarf2_fetch_die_loc_sect_off): Update.
4998 2019-06-17 Tom de Vries <tdevries@suse.de>
5001 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
5002 accessing parent[parent_len - 1].
5004 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
5007 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
5008 call dtrace_process_dof with NULL dof.
5010 2019-06-16 Tom de Vries <tdevries@suse.de>
5013 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
5015 2019-06-16 Tom Tromey <tom@tromey.com>
5017 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
5018 (make_all_visible): Use address of member.
5020 2019-06-16 Tom Tromey <tom@tromey.com>
5022 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
5023 (tui_free_window, free_content, free_content_elements): Remove
5025 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
5027 * tui/tui-regs.c (tui_show_register_group)
5028 (tui_display_registers_from, tui_display_reg_element_at_line):
5029 Remove unnecessary cast.
5031 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5033 * linux-nat.c (normal_mask): Delete.
5034 (_initialize_linux_nat): Don't initialise normal_mask.
5036 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
5039 * dwarf-index-write.h (write_psymtabs_to_index): Add
5040 dwz_basename parameter.
5041 * dwarf-index-write.c (write_gdbindex): Move file writing to
5042 write_gdbindex_1. Change return type void.
5043 (assert_file_size): Move up, remove filename parameter.
5044 (write_gdbindex_1): New function.
5045 (write_debug_names): Change return type to void, call
5047 (struct index_wip_file): New struct.
5048 (write_psymtabs_to_index): Add dwz_basename parameter. Move
5049 file logic to index_wip_file. Write index for dwz file if
5051 (save_gdb_index_command): Pass basename of dwz file, if present.
5052 * dwarf-index-cache.c (index_cache::store): Obtain and pass
5053 build-id of dwz file, if present.
5054 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
5055 (dwarf2_get_dwz_file): Likewise.
5056 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
5057 (dwarf2_get_dwz_file): Likewise.
5059 2019-06-16 Tom Tromey <tom@tromey.com>
5061 * coffread.c (process_coff_symbol): Use xstrdup.
5062 * value.c (create_internalvar): Use xstrdup.
5064 2019-06-16 Tom Tromey <tom@tromey.com>
5066 * valops.c (value_cast, value_slice): Remove unnecessary cast.
5067 * breakpoint.c (stopin_command, stopat_command)
5068 (until_break_command, decode_location_default): Remove unnecessary
5070 * utils.c (subset_compare): Remove unnecessary cast.
5071 * ada-lang.c (ada_update_initial_language): Remove unnecessary
5073 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
5075 * infcmd.c (path_command): Remove unnecessary cast.
5076 * coffread.c (decode_type): Remove unnecessary cast.
5077 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
5078 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
5079 * tui/tui-stack.c (tui_show_locator_content)
5080 (tui_show_frame_info): Remove unnecessary cast.
5081 * tui/tui-win.c (tui_scroll_forward_command)
5082 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
5083 (parse_scrolling_args): Remove unnecessary cast.
5084 * tui/tui-data.c (init_win_info, tui_del_window)
5085 (tui_free_window, tui_del_data_windows, tui_free_data_content)
5086 (free_content_elements): Remove unnecessary cast.
5087 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
5089 * tui/tui-source.c (tui_set_source_content)
5090 (tui_vertical_source_scroll): Remove unnecessary cast.
5091 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
5093 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
5094 * tui/tui-regs.c (tui_display_registers_from)
5095 (tui_display_register): Remove unnecessary cast.
5096 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
5097 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
5098 (make_visible): Remove unnecessary cast.
5099 * tui/tui-winsource.c (tui_erase_source_content)
5100 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
5102 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
5103 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
5104 * stabsread.c (read_type, read_array_type, read_range_type):
5105 Remove unnecessary cast.
5106 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
5107 (parse_symbol, parse_type, upgrade_type, parse_external)
5108 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
5110 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
5112 2019-06-16 Tom Tromey <tom@tromey.com>
5114 * tui/tui-data.c (tui_alloc_generic_win_info)
5115 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
5118 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
5119 Andrew Burgess <andrew.burgess@embecosm.com>
5121 * f-typeprint.c (f_print_type): Don't return early for not
5122 associated or not allocated types.
5123 (f_type_print_varspec_suffix): Add print_rank parameter and print
5124 ranks of array types in case they dangling.
5125 (f_type_print_base): Add print_rank parameter.
5127 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5129 * NEWS: Mention new MI commands.
5130 * break-catch-throw.c (enum exception_event_kind): Move to
5132 (print_mention_exception_catchpoint): Output text as a single
5134 (catch_exception_command_1): Rename to...
5135 (catch_exception_event): ...this, make non-static, update header
5136 command, and change some parameter types.
5137 (catch_catch_command): Update for changes to
5138 catch_exception_command_1.
5139 (catch_throw_command): Likewise.
5140 (catch_rethrow_command): Likewise.
5141 * breakpoint.c (enum exception_event_kind): Delete.
5142 * breakpoint.h (enum exception_event_kind): Moved here from
5143 break-catch-throw.c.
5144 (catch_exception_event): Declare.
5145 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
5146 (mi_cmd_catch_throw): New function.
5147 (mi_cmd_catch_rethrow): New function.
5148 (mi_cmd_catch_catch): New function.
5149 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
5150 'catch-catch' entries.
5151 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
5152 (mi_cmd_catch_rethrow): Declare.
5153 (mi_cmd_catch_catch): Declare.
5155 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5157 * annotate.c (annotate_source_line): Change return type to void,
5158 update implementation to match.
5159 * annotate.h (annotate_source_line): Change return type to void,
5160 update header comment.
5161 * stack.c (print_frame_info): Don't change what frame information
5162 is printed based on whether annotations are on or not.
5164 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5166 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
5167 (annotate_source): Make static.
5168 (annotate_source_line): Moved from source.c and renamed from
5169 identify_source_line. Update the return type.
5170 * annotate.h (annotate_source): Delete declaration.
5171 (annotate_source_line): Declaration moved from source.h, and
5172 renamed from identify_source_line. Return type updated.
5173 * source.c (identify_source_line): Moved to annotate.c and renamed
5174 to annotate_source_line.
5175 (info_line_command): Remove check of annotation_level.
5176 * source.h (identify_source_line): Move declaration to annotate.h
5177 and rename to annotate_source_line.
5178 * stack.c: Add 'annotate.h' include.
5179 (print_frame_info): Remove check of annotation_level before
5180 calling annotate_source_line.
5182 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5184 * source-cache.c (source_cache::get_plain_source_lines): Use
5185 open_source_file_with_line_charpos instead of just
5186 open_source_file, remove call to find_source_lines.
5187 (source_cache::get_source_lines): Likewise.
5188 * source.c (find_source_lines): Make static.
5189 (get_filename_and_charpos): Renamed into...
5190 (open_source_file_with_line_charpos): ..this along with changes to
5191 return a scoped_fd, and some other minor clean ups.
5192 (identify_source_line): Use open_source_file_with_line_charpos.
5193 (search_command_helper): Use open_source_file_with_line_charpos
5194 instead of just open_source_file, remove call to
5196 * source.h (open_source_file_with_line_charpos): Declare new
5198 (find_source_lines): Delete declaration.
5200 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5202 * source.c (get_filename_and_charpos): Remove fullname
5204 (identify_source_line): Update call to get_filename_and_charpos.
5206 2019-06-14 Tom Tromey <tromey@adacore.com>
5209 * ui-style.h (skip_ansi_escape): Update comment.
5210 * ui-file.h (class no_terminal_escape_file): New class.
5211 * ui-file.c (no_terminal_escape_file::write)
5212 (no_terminal_escape_file::puts): New methods.
5213 * cli/cli-logging.c (handle_redirections): Use
5214 no_terminal_escape_file.
5216 2019-06-14 Tom Tromey <tromey@adacore.com>
5218 * NEWS: Move convenience variable news above Python news.
5220 2019-06-14 Tom Tromey <tom@tromey.com>
5222 * gnulib: Move directory to top-level.
5223 * configure.ac: Don't configure gnulib.
5224 * configure: Rebuild.
5225 * common/common-defs.h: Use new path to gnulib.
5226 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
5228 (INCGNU): Look in new gnulib location.
5229 (HFILES_NO_SRCDIR): Remove gnulib files.
5230 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
5231 (generated_files): Remove GNULIB_H.
5232 ($(LIBGNU), all-lib): Remove targets.
5233 (distclean): Don't mention GNULIB_BUILDDIR.
5234 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
5236 2019-06-14 Tom Tromey <tromey@adacore.com>
5238 * symfile.c (add_symbol_file_command): Remove obsolete comment.
5239 Warn if symbol file does not provide any symbols.
5241 2019-06-14 Tom Tromey <tromey@adacore.com>
5243 * source.c (find_and_open_source): Respect basenames_may_differ.
5245 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
5247 * annotate.c (annotate_breakpoints_invalid): Make use of
5248 scoped_restore_terminal_state.
5249 (annotate_frames_invalid): Likewise.
5251 2019-06-14 Tom Tromey <tromey@adacore.com>
5253 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
5254 allow assignment to an internalvar.
5256 2019-06-14 Tom Tromey <tromey@adacore.com>
5258 * ada-lex.l: Allow "_" in attribute names.
5260 2019-06-14 Tom Tromey <tromey@adacore.com>
5263 * regcache.c (registers_changed): Don't call alloca.
5264 * top.c (execute_command): Don't call alloca.
5266 2019-06-13 Pedro Alves <palves@redhat.com>
5268 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
5269 'expression'. When parsing an expression, error out if there's
5270 junk after "unlimited".
5271 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5272 (do_set_command): Adjust calls to is_unlimited_literal.
5274 2019-06-13 Pedro Alves <palves@redhat.com>
5276 * compile/compile.c (make_compile_options_def_group): Add braces
5277 around array_view initializer.
5278 * thread.c (make_thread_apply_all_options_def_group)
5279 (make_thread_apply_all_options_def_group): Likewise.
5281 2019-06-13 Pedro Alves <palves@redhat.com>
5283 * NEWS (New commands): Mention "maint test-options
5284 require-delimiter", "maint test-options unknown-is-error", "maint
5285 test-options unknown-is-operand" and "maint show
5286 test-options-completion-result".
5287 (New command options, command completion): New section.
5288 (Completion improvements): New section.
5289 Mention that you can abbreviate "unlimited".
5291 2019-06-13 Pedro Alves <palves@redhat.com>
5293 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
5294 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
5295 * unittests/cli-utils-selftests.c (test_parse_flags)
5296 (test_parse_flags_qcs): Delete.
5297 (test_cli_utils): Don't call deleted functions.
5299 2019-06-13 Pedro Alves <palves@redhat.com>
5301 * thread.c: Include "cli/cli-option.h".
5302 (tp_array_compar_ascending): Global.
5303 (tp_array_compar): Delete function.
5304 (tp_array_compar_ascending, tp_array_compar_descending): New
5306 (ascending_option_def, qcs_flag_option_def)
5307 (thr_qcs_flags_option_defs)
5308 (make_thread_apply_all_options_def_group)
5309 (make_thread_apply_options_def_group): New.
5310 (thread_apply_all_command): Use gdb::option::process_options.
5311 (thread_apply_command_completer)
5312 (thread_apply_all_command_completer): New.
5313 (thread_apply_command): Use gdb::option::process_options.
5314 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
5315 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
5316 to generate help text of "thread apply". Adjust "taas"'s help.
5317 * tid-parse.c (tid_range_parser::in_thread_range): New method.
5318 * tid-parse.h (tid_range_parser::in_thread_range): New method.
5320 2019-06-13 Pedro Alves <palves@redhat.com>
5322 * thread.c (thread_apply_command): Check for invalid TID with
5323 isdigit instead of !isalpha.
5325 2019-06-13 Pedro Alves <palves@redhat.com>
5327 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
5328 (validate_flags_qcs): New.
5329 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
5330 (validate_flags_qcs): Declare.
5331 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
5332 (make_frame_apply_options_def_group): New.
5333 (frame_apply_command_count): Process options with
5334 gdb::option::process_options.
5335 (frame_apply_completer): New.
5336 (frame_apply_level_completer, frame_apply_all_completer)
5337 (frame_apply_completer): New.
5338 (_initialize_stack): Update help of "frame apply", "frame apply
5339 level", "frame apply all" and "faas" to mention supported options
5340 and install command completers.
5341 * stack.h (frame_apply_all_completer): Declare.
5342 * thread.c: Include "stack.h".
5343 (tfaas_command): Add "--".
5344 (_initialize_thread): Update help "tfaas" to mention supported
5345 options and install command completer.
5347 2019-06-13 Pedro Alves <palves@redhat.com>
5349 * completer.c (complete_nested_command_line): New.
5350 (gdb_completion_word_break_characters_throw): Add assertion.
5351 * completer.h (complete_nested_command_line): Declare.
5353 2019-06-13 Pedro Alves <palves@redhat.com>
5355 * stack.c (parse_backtrace_qualifiers): New.
5356 (backtrace_command): Use it.
5357 (backtrace_command_completer): Complete on qualifiers.
5359 2019-06-13 Pedro Alves <palves@redhat.com>
5361 * frame.c: Include "cli/cli-option.h.
5362 (user_set_backtrace_options): New.
5363 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
5365 (get_prev_frame): Adjust.
5366 (boolean_option_def, uinteger_option_def)
5367 (set_backtrace_option_defs): New.
5368 (_initialize_frame): Adjust and use
5369 gdb::option::add_setshow_cmds_for_options to install "set
5370 backtrace past-main" and "set backtrace past-entry".
5371 * frame.h: Include "cli/cli-option.h".
5372 (struct frame_print_options): Forward declare.
5373 (print_frame_arguments_all, print_frame_arguments_scalars)
5374 (print_frame_arguments_none): Declare.
5375 (print_entry_values): Delete declaration.
5376 (struct frame_print_options, user_frame_print_options): New.
5377 (struct set_backtrace_options): New.
5378 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
5379 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
5380 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
5381 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
5382 (list_args_or_locals): Add frame_print_options parameter.
5383 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
5384 * python/py-framefilter.c (enumerate_args): Pass down
5385 USER_FRAME_PRINT_OPTIONS.
5386 * stack.c: Include "cli/cli-option.h".
5387 (print_frame_arguments_all, print_frame_arguments_scalars)
5388 (print_frame_arguments_none): Declare.
5389 (print_raw_frame_arguments, print_entry_values): Delete.
5390 (user_frame_print_options): New.
5391 (boolean_option_def, enum_option_def, frame_print_option_defs):
5393 (struct backtrace_cmd_options): New.
5394 (bt_flag_option_def): New.
5395 (backtrace_command_option_defs): New.
5396 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
5397 (print_frame_arg, read_frame_arg, print_frame_args)
5398 (print_frame_info, print_frame): Add frame_print_options parameter
5400 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
5401 (backtrace_command_1): Add frame_print_options and
5402 backtrace_cmd_options parameters and use them.
5403 (make_backtrace_options_def_group): New.
5404 (backtrace_command): Process command options with
5405 gdb::option::process_options.
5406 (backtrace_command_completer): New.
5407 (_initialize_stack): Extend "backtrace"'s help to mention
5408 supported options. Install completer for "backtrace".
5409 Install some settings commands with add_setshow_cmds_for_options.
5411 2019-06-13 Pedro Alves <palves@redhat.com>
5413 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
5414 and that "set/show print raw frame-arguments" are now deprecated.
5416 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
5418 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
5419 * stack.c (_initialize_stack): Install "set/show print
5420 raw-frame-arguments", and deprecate "set/show print raw
5422 * valprint.c (_initialize_valprint): Deprecate "set/show print
5425 2019-06-13 Pedro Alves <palves@redhat.com>
5427 * compile/compile.c (struct compile_options): New.
5428 (compile_flag_option_def, compile_command_option_defs)
5429 (make_compile_options_def_group): New.
5430 (compile_file_command): Handle options with
5431 gdb::option::process_options.
5432 (compile_file_command_completer): New function.
5433 (compile_code_command): Handle options with
5434 gdb::option::process_options.
5435 (compile_code_command_completer): New function.
5436 (_initialize_compiler): Install completers for "compile code" and
5437 "compile file". Mention available options in "compile code" and
5438 "compile code"'s help.
5439 * completer.c (advance_to_completion_word): New, factored out from
5441 (advance_to_expression_complete_word_point): ... this.
5442 (advance_to_filename_complete_word_point): New.
5443 * completer.h (advance_to_filename_complete_word_point): New
5446 2019-06-13 Pedro Alves <palves@redhat.com>
5448 * compile/compile.c: Include "cli/cli-option.h".
5449 (compile_print_value): Scope data pointer is now a
5450 value_print_options pointer; adjust.
5451 (compile_print_command): Process options. Scope data pointer is
5452 now a value_print_options pointer; adjust.
5453 (_initialize_compile): Update "compile print"'s help to include
5454 supported options. Install a completer for "compile print".
5455 * cp-valprint.c (show_vtblprint, show_objectprint)
5456 (show_static_field_print): Delete.
5457 (_initialize_cp_valprint): Don't install "set print
5458 static-members", "set print vtbl", "set print object" here.
5459 * printcmd.c: Include "cli/cli-option.h" and
5460 "common/gdb_optional.h".
5461 (print_command_parse_format): Rework to fill in a
5462 value_print_options instead of a format_data.
5463 (print_value): Change parameter type from format_data pointer to
5464 value_print_options reference. Adjust.
5465 (print_command_1): Process options. Adjust to pass down a
5466 value_print_options.
5467 (print_command_completer): New.
5468 (_initialize_printcmd): Install print_command_completer as
5469 handle_brkchars completer for the "print" command. Update
5470 "print"'s help to include supported options.
5471 * valprint.c: Include "cli/cli-option.h".
5472 (show_vtblprint, show_objectprint, show_static_field_print): Moved
5473 here from cp-valprint.c.
5474 (boolean_option_def, uinteger_option_def)
5475 (value_print_option_defs, make_value_print_options_def_group):
5476 New. Use gdb::option::add_setshow_cmds_for_options to install
5477 "set print elements", "set print null-stop", "set print repeats",
5478 "set print pretty", "set print union", "set print array", "set
5479 print address", "set print symbol", "set print array-indexes".
5480 * valprint.h: Include <string> and "cli/cli-option.h".
5481 (make_value_print_options_def_group): Declare.
5482 (print_value): Change parameter type from format_data pointer to
5483 value_print_options reference.
5484 (print_command_completer): Declare.
5486 2019-06-13 Pedro Alves <palves@redhat.com>
5488 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
5489 (COMMON_SFILES): Add maint-test-settings.c.
5490 * cli/cli-decode.c (boolean_enums): New global, factored out from
5492 (add_setshow_boolean_cmd): ... here.
5493 * cli/cli-decode.h (boolean_enums): Declare.
5494 * cli/cli-option.c: New file.
5495 * cli/cli-option.h: New file.
5496 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
5497 factored out from ...
5498 (parse_cli_boolean_value(const char *)): ... this.
5499 (is_unlimited_literal): Change parameter type to pointer to
5500 pointer. Adjust and advance ARG pointer.
5501 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5502 (parse_cli_var_enum): New, factored out from ...
5503 (do_set_command): ... this. Adjust.
5504 * cli/cli-setshow.h (parse_cli_boolean_value)
5505 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5506 (parse_cli_var_enum): Declare.
5507 * cli/cli-utils.c: Include "cli/cli-option.h".
5508 (get_ulongest): New.
5509 * cli/cli-utils.h (get_ulongest): Declare.
5510 (check_for_argument): New overloads.
5511 * maint-test-options.c: New file.
5513 2019-06-13 Pedro Alves <palves@redhat.com>
5515 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
5516 parse a range if "-" is at the end of the string.
5518 2019-06-13 Pedro Alves <palves@redhat.com>
5520 * cli/cli-setshow.c (parse_auto_binary_operation)
5521 (parse_cli_boolean_value): Don't allow "o".
5523 2019-06-13 Pedro Alves <palves@redhat.com>
5525 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
5526 * NEWS: Mention maint test-settings KIND.
5527 * maint-test-settings.c: New file.
5529 2019-06-13 Pedro Alves <palves@redhat.com>
5531 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
5533 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
5536 2019-06-13 Pedro Alves <palves@redhat.com>
5538 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
5541 2019-06-13 Pedro Alves <palves@redhat.com>
5543 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
5545 2019-06-13 Pedro Alves <palves@redhat.com>
5547 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
5548 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
5550 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
5551 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
5553 (check_for_argument): Skip spaces after argument.
5555 2019-06-13 Pedro Alves <palves@redhat.com>
5557 * thread.c (thread_apply_command): Adjust TID parsing.
5558 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
5559 detected before end of string.
5560 (tid_is_in_list): Error out if LIST is invalid.
5562 2019-06-13 Pedro Alves <palves@redhat.com>
5564 * completer.c (complete_line_internal_1): Rewind completion word
5566 (completion_tracker::advance_custom_word_point_by): Change
5567 parameter type to int.
5568 * completer.h (completion_tracker::advance_custom_word_point_by):
5571 2019-06-13 Pedro Alves <palves@redhat.com>
5573 * completer.c (advance_to_completion_word): Handle delimiters.
5575 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
5577 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
5579 2019-06-11 Tom Tromey <tom@tromey.com>
5581 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
5582 (xmalloc_failed): Move to alloc.c.
5583 * alloc.c: New file.
5584 * Makefile.in (COMMON_SFILES): Add alloc.c.
5586 2019-06-11 Tom Tromey <tom@tromey.com>
5588 * nat/linux-waitpid.c: Don't include server.h.
5589 (linux_debug): Remove.
5590 (my_waitpid): Update.
5592 2019-06-11 Tom Tromey <tromey@adacore.com>
5594 * infcall.c (_initialize_infcall): Remove trailing newline from
5596 * user-regs.c (_initialize_user_regs): Remove trailing newline
5598 * typeprint.c (_initialize_typeprint): Remove trailing newline
5600 * reverse.c (_initialize_reverse): Remove trailing newlines from
5602 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
5604 * language.c (add_set_language_command): Remove trailing newline
5606 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
5608 * disasm.c (_initialize_disasm): Remove trailing newline from
5610 * top.c (init_main): Remove trailing newline from help.
5611 * interps.c (_initialize_interpreter): Remove trailing newline
5613 * btrace.c (_initialize_btrace): Remove trailing newlines from
5615 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
5617 * python/python.c (_initialize_python): Remove trailing newline
5619 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
5621 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
5622 from help. Reformat some text.
5623 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
5625 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
5628 2019-06-11 Tom Tromey <tromey@adacore.com>
5630 * darwin-nat.c (darwin_decode_exception_message)
5631 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
5633 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
5635 * valops.c (value_slice): Check for not allocated or not
5638 2019-06-10 Tom de Vries <tdevries@suse.de>
5641 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
5642 sure an empty slot (defined by a 32-bit zero pair) is recognized as
5645 2019-06-10 Tom de Vries <tdevries@suse.de>
5648 * linespec.c (linespec_lexer_lex_string): Remove incorrect
5649 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
5651 2019-06-10 Tom de Vries <tdevries@suse.de>
5654 * symtab.c (struct demangled_name_entry): Add language field.
5655 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
5656 static minimal symbol". Set and use language field.
5658 2019-06-10 Tom Tromey <tromey@adacore.com>
5660 * ada-lang.c (_initialize_ada_language): Update help text.
5662 2019-06-10 Tom Tromey <tromey@adacore.com>
5664 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
5666 * guile/guile.c (handle_boot_error): Don't end warning with a
5668 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
5669 warning with a newline.
5670 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
5672 (s12z_frame_cache): Likewise.
5673 * dwarf-index-cache.c (index_cache::store): Don't end warning with
5675 * solib-svr4.c (disable_probes_interface): Don't end warning with
5677 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
5679 * python/python.c (do_finish_initialization): Don't end warning
5682 2019-06-10 Tom Tromey <tom@tromey.com>
5684 * python/py-breakpoint.c (gdbpy_breakpoint_created)
5685 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
5688 2019-06-10 Tom Tromey <tromey@adacore.com>
5690 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
5692 (elf_new_init): Don't call stabsread_new_init.
5693 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
5694 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
5695 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
5697 2019-06-10 Tom de Vries <tdevries@suse.de>
5701 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
5703 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
5705 * source.c (find_and_open_source): Also rewrite relative file
5708 2019-04-26 Amos Bird <amosbird@gmail.com>
5710 * annotate.c (annotate_thread_exited): Add "thread-exited"
5713 2019-06-06 Tom Tromey <tromey@adacore.com>
5715 * maint.h (class scoped_command_stats): Use
5716 DISABLE_COPY_AND_ASSIGN.
5717 <print_time>: New method.
5718 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
5720 (scoped_command_stats::print_time): New method.
5722 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5724 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
5725 instructions of lengths 6 or 8 bytes.
5727 2019-06-04 Pedro Alves <palves@redhat.com>
5729 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
5731 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
5732 * breakpoint.c (condition_completer): Likewise.
5733 * cli/cli-dump.c (scan_expression): Likewise.
5734 * common/filestuff.c (mkdir_recursive): Likewise.
5735 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
5736 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
5737 (gdb_abspath): Likewise.
5738 * compile/compile-cplus-types.c
5739 (compile_cplus_instance::decl_name): Likewise.
5740 * completer.c (complete_explicit_location):
5741 (signal_completer, reg_or_group_completer_1): Likewise.
5742 * cp-support.c (cp_remove_params_if_any): Likewise.
5743 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
5744 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
5745 * infcmd.c (strip_bg_char): Likewise.
5746 * linespec.c (copy_token_string): Likewise.
5747 * mi/mi-main.c (output_cores): Likewise.
5748 * psymtab.c (psymtab_search_name):
5749 * symfile.c (test_set_ext_lang_command): Likewise.
5750 * target.c (target_fileio_read_stralloc): Likewise.
5751 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
5752 * value.c (complete_internalvar): Likewise.
5754 2019-06-04 Christian Biesinger <cbiesinger@google.com>
5756 Add objfile property to gdb.Type.
5757 * NEWS: Mention Python API addition.
5758 * python/py-type.c (typy_get_objfile): New method.
5760 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5762 * NEWS: Mention the new set|show style [title|highlight].
5763 Mention changes to "show style", "help" and "apropos".
5765 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5767 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
5768 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
5769 instead of print_help_for_command.
5770 (print_doc_of_command): New function.
5771 (help_list): Add 'apropos -v word' suggestion.
5772 (print_help_for_command): Style the command name using title style.
5773 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
5774 (_initialize_cli_cmds): Describe -v in apropos_command help.
5776 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5778 * cli/cli-style.h (cli_style_option): Add name in constructor,
5779 add m_name class member, add constructor with intensity,
5780 add name class function.
5781 (cli_style_option::add_setshow_commands): Remove name argument.
5782 (highlight_style, title_style): New styles.
5783 * cli/cli-style.c (do_show): New function that shows a style
5784 characteristic styling the style name with itself.
5785 (set_style_name): New function.
5786 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
5787 Update all callers according to the changes in cli/cli-style.h.
5788 * utils.h (fputs_highlighted): New function.
5789 * utils.c (fputs_highlighted): Likewise.
5791 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5793 * NEWS: Mention new pipe command and new convenience variables.
5795 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5797 * cli/cli-cmds.c (pipe_command): New function.
5798 (_initialize_cli_cmds): Call add_com for pipe_command.
5799 Define | as an alias for pipe.
5800 (exit_status_set_internal_vars): New function.
5801 (shell_escape): Call exit_status_set_internal_vars.
5802 cli/cli-decode.c (find_command_name_length): Recognize | as
5803 a single character command.
5805 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5807 * gdbcmd.h (execute_command_to_ui_file): New declaration.
5808 top.c (execute_command_to_ui_file): New function, mostly a copy
5809 of execute_command_to_string.
5810 (execute_command_to_string): Implement by calling
5811 execute_command_to_ui_file.
5813 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5815 * top.h (saved_command_line): Remove declaration.
5816 * top.c (previous_saved_command_line, previous_repeat_arguments):
5818 (saved_command_line): Make static, define together with other
5820 (dont_repeat): Clear repeat_arguments.
5821 (repeat_previous, get_saved_command_line, save_command_line):
5823 (gdb_init): Initialize saved_command_line
5824 and previous_saved_command_line.
5825 * main.c (captured_main_1): Remove saved_command_line initialization.
5826 * event-top.c (handle_line_of_input): Update to use
5827 the new 'repeat' related functions instead of direct access to
5829 * command.h (repeat_previous, get_saved_command_line,
5830 save_command_line): New declarations.
5831 (dont_repeat): Add comment.
5833 2019-05-30 Tom Tromey <tromey@adacore.com>
5835 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
5837 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
5839 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
5842 * completer.c (complete): Initialize variable word.
5844 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
5846 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
5847 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
5848 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
5849 'body' is NULL to the outter 'if', protecting the '!is_define'
5852 2019-05-29 Tom Tromey <tromey@adacore.com>
5854 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
5855 (dwarf_unknown): New function.
5856 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
5857 (dwarf_type_encoding_name): Use dwarf_unknown.
5859 2019-05-29 Tom Tromey <tromey@adacore.com>
5862 * cp-valprint.c (cp_print_value_fields): Call
5863 cp_print_static_field inside "try".
5865 2019-05-29 Tom Tromey <tromey@adacore.com>
5867 * inflow.c (struct terminal_info): Add default operator=.
5868 * configure: Rebuild.
5869 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
5870 -Wdeprecated-copy-dtor, -Wredundant-move.
5872 2019-05-29 Tom Tromey <tromey@adacore.com>
5875 * infcmd.c (print_return_value_1): Handle finish_print
5877 (show_print_finish): New function.
5878 (_initialize_infcmd): Add "set/show print finish" commands.
5879 * valprint.c (user_print_options): Initialize new member.
5880 * valprint.h (struct value_print_options) <finish_print>: New
5883 2019-05-28 Tom Tromey <tromey@adacore.com>
5885 * ada-lang.c (ada_remove_Xbn_suffix)
5886 (find_old_style_renaming_symbol)
5887 (parse_old_style_renaming): Remove.
5888 (ada_find_renaming_symbol): Don't call
5889 find_old_style_renaming_symbol.
5890 (ada_is_renaming_symbol): Rename from
5891 ada_find_renaming_symbol. Remove "block" parameter. Return
5893 (ada_read_var_value): Update and simplify.
5894 * ada-exp.y (write_var_or_type): Remove old code.
5896 2019-05-28 Alan Hayward <alan.hayward@arm.com>
5898 * event-top.c: Remove include comment.
5899 * inflow.c (class scoped_ignore_sigttou): Move from here...
5900 * inflow.h (class scoped_ignore_sigttou): ...to here.
5901 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
5902 * top.c: Remove include comment.
5904 2019-05-27 Tom Tromey <tom@tromey.com>
5908 2019-05-22 Tom Tromey <tromey@adacore.com>
5910 * target.c (target_follow_exec): Constify parameter.
5911 * target-delegates.c: Rebuild.
5912 * remote.c (remote_target::follow_exec): Constify parameter.
5913 * infrun.c (follow_exec): Constify parameter.
5914 * target.h (struct target_ops) <follow_exec>: Constify parameter.
5915 (target_follow_exec): Likewise.
5917 2019-05-22 Alan Hayward <alan.hayward@arm.com>
5919 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
5920 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
5922 2019-05-22 Alan Hayward <alan.hayward@arm.com>
5924 * NEWS: Add debugredirect and testsuite sections.
5926 2019-05-22 Simon Cook <simon.cook@embecosm.com>
5928 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
5929 target descriptions using exclusively floating point register name
5932 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
5935 * f-lang.c (build_fortran_types): Handle the case where
5936 gdbarch_floatformat_for_type returns a nullptr.
5938 2019-05-21 Tom de Vries <tdevries@suse.de>
5941 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
5943 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
5946 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
5948 * i386-tdep.c (i386_floatformat_for_type): Use
5949 floatformats_ia64_quad for the 16-byte floating point component
5950 within a fortran 32-byte complex number.
5952 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
5954 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
5955 delete default constructor.
5956 (find_partial_die): Update to return const struct.
5957 (partial_die_parent_scope): Move variable declaration into scope
5958 of its use and change its type to auto.
5959 (guess_partial_die_structure_name): Likewise.
5960 (partial_die_info::fixup): Likewise.
5962 2019-05-17 Tom Tromey <tromey@adacore.com>
5964 * source.c (find_and_open_source): Remove cast.
5966 2019-05-17 Tom Tromey <tromey@adacore.com>
5968 * annotate.c (annotate_source): Make "filename" const.
5969 * annotate.h (annotate_source): Use const.
5971 2019-05-17 Alan Hayward <alan.hayward@arm.com>
5973 * disasm.c (set_disassembler_options): Send errors to stderr.
5975 2019-05-17 Alan Hayward <alan.hayward@arm.com>
5977 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
5978 (cli_interp_base::set_logging): Check debug_redirect.
5979 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
5980 * cli/cli-logging.c (debug_redirect): Add static variable.
5981 (pop_output_files): Add default param.
5982 (handle_redirections): Print debug setting.
5983 (show_logging_command): Likewise.
5984 (_initialize_cli_logging): Add debugredirect command.
5985 * interps.c (current_interp_set_logging): Add debug_redirect
5987 * interps.h (set_logging): Add debug_redirect parameter.
5988 (current_interp_set_logging): Likewise.
5989 * mi/mi-common.h: Likewise.
5990 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
5992 2019-05-17 Alan Hayward <alan.hayward@arm.com>
5993 Tom Tromey <tromey@adacore.com>
5995 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
5997 * cli/cli-interp.h (make_logging_output): Remove declaration.
5998 * cli/cli-logging.c (make_logging_output): Remove function.
5999 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
6001 * ui-file.c (tee_file::tee_file): Remove bools.
6002 (tee_file::~tee_file): Remove deletes.
6003 * ui-file.h (tee_file): Remove bools.
6005 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
6007 * mi/mi-cmds.h (mi_cmd_complete): New function.
6008 * mi/mi-main.c (mi_cmd_complete): Likewise.
6009 * mi/mi-cmds.c: Define new MI command -complete.
6010 * NEWS: Mention new -complete command.
6012 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
6014 * completer.h (complete): New function.
6015 * completer.c (complete): Likewise.
6016 * cli/cli-cmds.c: (complete_command): Update to use new complete()
6017 function defined in completer.h.
6019 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
6021 * MAINTAINERS (Write After Approval): Add myself.
6023 2019-05-17 Tom de Vries <tdevries@suse.de>
6026 * dwarf2read.c (struct cu_partial_die_info): New struct.
6027 (find_partial_die): Return cu_partial_die_info.
6028 (partial_die_parent_scope, guess_partial_die_structure_name)
6029 (partial_die_info::fixup): Handle new return type of find_partial_die.
6031 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6033 PR breakpoints/24541
6034 * stap-probe.c (stap_parse_register_operand): Make "regname" an
6035 "std::string", simplifying the algorithm.
6037 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6039 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
6040 (stap_static_probe_ops::get_probes): Likewise.
6042 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6044 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
6045 '-')" and "else if".
6046 (stap_parse_single_operand): Join checks for
6047 "gdbarch_stap_parse_special_token_p" and
6048 "gdbarch_stap_parse_special_token" in the same "if" statement.
6049 Invert check when verifying for operation on register
6052 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6054 * stap-probe.c (stap_get_opcode): Update comment.
6055 (stap_get_expected_argument_type): Likewise.
6056 (handle_stap_probe): Likewise.
6058 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6060 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
6061 return type to 'bool'. Adjust comment. Use 'bool' when
6063 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6064 * stap-probe.c (stap_parse_argument_1): Likewise.
6065 (stap_is_operator): Likewise.
6066 (stap_is_generic_prefix): Likewise.
6067 (stap_is_register_prefix): Likewise.
6068 (stap_is_register_indirection_prefix): Likewise.
6069 (stap_is_integer_prefix): Likewise.
6070 (stap_generic_check_suffix): Likewise.
6071 (stap_check_integer_suffix): Likewise.
6072 (stap_check_register_suffix): Likewise.
6073 (stap_check_register_indirection_suffix): Likewise.
6074 (stap_parse_register_operand): Likewise.
6075 (stap_parse_single_operand): Likewise.
6076 (stap_parse_argument_1): Likewise.
6077 (stap_probe::get_argument_count): Likewise.
6078 (stap_is_operator): Likewise.
6080 2019-05-16 Tom Tromey <tromey@adacore.com>
6082 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
6085 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
6087 * linux-thread-db.c (try_thread_db_load_1): Change return type
6089 (try_thread_db_load): Likewise.
6090 (try_thread_db_load_from_pdir_1): Likewise.
6091 (try_thread_db_load_from_pdir): Likewise.
6092 (try_thread_db_load_from_sdir): Likewise.
6093 (try_thread_db_load_from_dir): Likewise.
6094 (thread_db_load_search): Likewise.
6095 (has_libpthread): Likewise.
6096 (thread_db_load): Likewise.
6098 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
6100 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
6101 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
6102 NULL, and complain/return if that's the case.
6104 2019-05-15 John Darrington <john@darrington.wattle.id.au>
6106 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
6107 (advance, posn, abstract_read_memory): New functions.
6108 [struct mem_read_abstraction]: New struct.
6109 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
6111 2019-05-14 Tom Tromey <tromey@adacore.com>
6113 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
6114 value is not lval_memory.
6116 2019-05-14 Tom Tromey <tromey@adacore.com>
6118 * solib.c (info_sharedlibrary_command): Style the file name.
6120 2019-05-14 Alan Hayward <alan.hayward@arm.com>
6122 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
6123 (aarch64_vnv_type): Likewise.
6124 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
6125 * common/tdesc.c: Likewise.
6126 * common/tdesc.h (enum tdesc_type_kind): Likewise.
6127 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
6128 * features/aarch64-fpu.xml: Add ieee half view.
6129 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
6130 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
6131 * gdbtypes.h (struct builtin_type): Likewise.
6132 (struct objfile_type): Likewise.
6134 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
6136 * language.c (language_sniff_from_mangled_name): Fix "langauge"
6138 * location.h (string_to_event_location): Likewise.
6140 2019-05-11 Joel Brobecker <brobecker@adacore.com>
6144 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
6146 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
6147 New variable declaration.
6148 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
6150 (print_one_breakpoint): Use ui_out::test_flags and new global
6151 variable to compute use_fixed_output.
6152 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
6154 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
6155 (mi_multi_location_breakpoint_output_fixed): Remove.
6156 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
6158 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
6159 fix_multi_location_breakpoint_output flag if version >= 3.
6160 * ui-out.h (enum ui_out_flag)
6161 <fix_multi_location_breakpoint_output>: New enumerator.
6163 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
6165 * contrib/cc-with-tweaks.sh: Validate dwz's work.
6167 2019-05-10 Tom Tromey <tromey@adacore.com>
6169 * ada-lang.c (catch_ada_completer): New function.
6170 (_initialize_ada_language): Use it.
6172 2019-05-10 Tom Tromey <tromey@adacore.com>
6174 * thread.c (print_thread_info): Make "requested_threads" const.
6175 * gdbthread.h (print_thread_info): Make "requested_threads"
6177 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
6178 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
6180 2019-05-08 Tom Tromey <tom@tromey.com>
6182 * gdbtypes.c (objfile_type_data): Change type.
6183 (objfile_type, _initialize_gdbtypes): Update.
6185 2019-05-08 Tom Tromey <tom@tromey.com>
6187 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
6188 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
6189 (_initialize_dwarf2_frame): Update.
6191 2019-05-08 Tom Tromey <tom@tromey.com>
6193 * objc-lang.c (objc_objfile_data): Change type.
6194 (find_methods): Update.
6195 (_initialize_objc_lang): Remove.
6197 2019-05-08 Tom Tromey <tom@tromey.com>
6199 * stabsread.c (rs6000_builtin_type_data): Change type.
6200 (rs6000_builtin_type, _initialize_stabsread): Update.
6202 2019-05-08 Tom Tromey <tom@tromey.com>
6204 * mips-tdep.c (mips_pdr_data): Remove.
6205 (_initialize_mips_tdep): Update.
6207 2019-05-08 Tom Tromey <tom@tromey.com>
6209 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
6210 (hppa_init_objfile_priv_data, read_unwind_info)
6211 (find_unwind_entry, _initialize_hppa_tdep): Update.
6213 2019-05-08 Tom Tromey <tom@tromey.com>
6215 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
6216 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
6218 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
6220 2019-05-08 Tom Tromey <tom@tromey.com>
6222 * mdebugread.c (basic_type_data): Change type.
6223 (basic_type, _initialize_mdebugread): Update.
6225 2019-05-08 Tom Tromey <tom@tromey.com>
6227 * common/gdb_unique_ptr.h (struct noop_deleter): New.
6229 2019-05-08 Tom Tromey <tom@tromey.com>
6231 * nto-tdep.c (nto_inferior_data_reg): Change type.
6232 (nto_inferior_data): Update.
6233 (nto_inferior_data_cleanup, nto_new_inferior_data)
6234 (_initialize_nto_tdep): Remove.
6235 * nto-tdep.h (struct nto_inferior_data): Add initializers.
6237 2019-05-08 Tom Tromey <tom@tromey.com>
6239 * ada-lang.c (struct ada_inferior_data): Add initializers.
6240 (ada_inferior_data): Change type.
6241 (ada_inferior_data_cleanup): Remove.
6242 (get_ada_inferior_data, ada_inferior_exit)
6243 (struct ada_pspace_data): Add initializers, destructor.
6244 (ada_pspace_data_handle): Change type.
6245 (get_ada_pspace_data): Update.
6246 (ada_pspace_data_cleanup): Remove.
6248 2019-05-08 Tom Tromey <tom@tromey.com>
6250 * coffread.c (struct coff_symfile_info): Add initializers.
6251 (coff_objfile_data_key): Move lower. Change type.
6252 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
6254 (coff_free_info): Remove.
6256 2019-05-08 Tom Tromey <tom@tromey.com>
6258 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
6259 (fbsd_pspace_data_handle): Move lower. Change type.
6260 (get_fbsd_pspace_data): Update.
6261 (fbsd_pspace_data_cleanup): Remove.
6262 (_initialize_fbsd_tdep): Update.
6264 2019-05-08 Tom Tromey <tom@tromey.com>
6266 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
6267 (get_ada_tasks_pspace_data): Update.
6268 (ada_tasks_pspace_data_cleanup): Remove.
6269 (_initialize_tasks): Update.
6270 (ada_tasks_inferior_data_handle): Change type.
6271 (get_ada_tasks_inferior_data): Update.
6272 (ada_tasks_inferior_data_cleanup): Remove.
6273 (struct ada_tasks_pspace_data): Add initializers.
6275 2019-05-08 Tom Tromey <tom@tromey.com>
6277 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
6278 * symfile-debug.c (debug_sym_get_probes): Change type.
6279 * stap-probe.c (handle_stap_probe):
6280 (stap_static_probe_ops::get_probes): Change type.
6281 * probe.h (class static_probe_ops) <get_probes>: Change type.
6282 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
6283 (parse_probes_in_pspace): Update.
6284 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
6286 (any_static_probe_ops::get_probes): Change type.
6287 * elfread.c (elfread_data): New typedef.
6288 (probe_key): Change type.
6289 (elf_get_probes): Likewise. Update.
6290 (probe_key_free): Remove.
6291 (_initialize_elfread): Update.
6292 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
6294 (dtrace_process_dof_probe, dtrace_process_dof)
6295 (dtrace_static_probe_ops::get_probe): Change type.
6297 2019-05-08 Tom Tromey <tom@tromey.com>
6299 * xcoffread.c (struct xcoff_symfile_info): Rename from
6300 coff_symfile_info. Add initializers.
6301 (xcoff_objfile_data_key): Move lower. Change type.
6302 (XCOFF_DATA): Rewrite.
6303 (xcoff_free_info): Remove.
6304 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
6305 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
6306 (xcoff_initial_scan): Update.
6308 2019-05-08 Tom Tromey <tom@tromey.com>
6310 * solib-svr4.c (struct svr4_info): Add initializers and
6312 <probes_table>: Now an htab_up.
6313 (solib_svr4_pspace_data): Change type.
6314 (free_probes_table): Simplify.
6315 (~svr4_info): Rename from svr4_pspace_data_cleanup.
6316 (get_svr4_info, probes_table_htab_remove_objfile_probes)
6317 (probes_table_remove_objfile_probes, register_solib_event_probe)
6318 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
6319 (_initialize_svr4_solib): Update.
6321 2019-05-08 Tom Tromey <tom@tromey.com>
6323 * remote.c (remote_pspace_data): Change type.
6324 (remote_pspace_data_cleanup): Remove.
6325 (get_remote_exec_file, set_pspace_remote_exec_file)
6326 (_initialize_remote): Update.
6328 2019-05-08 Tom Tromey <tom@tromey.com>
6330 * breakpoint.c (breakpoint_objfile_key): Change type.
6331 (get_breakpoint_objfile_data): Update.
6332 (free_breakpoint_objfile_data): Remove.
6333 (_initialize_breakpoint): Update.
6335 2019-05-08 Tom Tromey <tom@tromey.com>
6337 * linux-tdep.c (struct linux_info): Add initializers.
6338 (linux_inferior_data): Move. Change type.
6339 (invalidate_linux_cache_inf): Update.
6340 (linux_inferior_data_cleanup): Remove.
6341 (get_linux_inferior_data, _initialize_linux_tdep): Update.
6343 2019-05-08 Tom Tromey <tom@tromey.com>
6345 * auxv.c (auxv_inferior_data): Move. Change type.
6346 (auxv_inferior_data_cleanup): Remove.
6347 (invalidate_auxv_cache_inf): Rewrite.
6348 (get_auxv_inferior_data, _initialize_auxv): Update.
6350 2019-05-08 Tom Tromey <tom@tromey.com>
6352 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
6353 (symfile_debug_objfile_data_key): Change type.
6354 (symfile_debug_installed, debug_qf_has_symbols)
6355 (debug_qf_find_last_source_symtab)
6356 (debug_qf_forget_cached_source_info)
6357 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
6358 (debug_qf_print_stats, debug_qf_dump)
6359 (debug_qf_expand_symtabs_for_function)
6360 (debug_qf_expand_all_symtabs)
6361 (debug_qf_expand_symtabs_with_fullname)
6362 (debug_qf_map_matching_symbols)
6363 (debug_qf_expand_symtabs_matching)
6364 (debug_qf_find_pc_sect_compunit_symtab)
6365 (debug_qf_map_symbol_filenames)
6366 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
6367 (debug_sym_new_init, debug_sym_init, debug_sym_read)
6368 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
6369 (debug_sym_read_linetable, debug_sym_relocate): Update.
6370 (symfile_debug_free_objfile): Remove.
6371 (install_symfile_debug_logging, _initialize_symfile_debug):
6374 2019-05-08 Tom Tromey <tom@tromey.com>
6376 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
6377 allocate_on_obstack.
6378 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
6379 (get_dwarf2_per_objfile): Update.
6380 (set_dwarf2_per_objfile): Remove.
6381 (dwarf2_has_info, dwarf2_get_section_info): Update.
6382 (dwarf2_free_objfile): Remove.
6383 (_initialize_dwarf2_read): Update.
6385 2019-05-08 Tom Tromey <tom@tromey.com>
6387 * auto-load.c (struct auto_load_pspace_info): Add destructor and
6389 <unsupported_script_warning_printed,
6390 script_not_found_warning_printed>: Now bool.
6391 (auto_load_pspace_data): Change type.
6392 (~auto_load_pspace_info): Rename from
6393 auto_load_pspace_data_cleanup.
6394 (get_auto_load_pspace_data, init_loaded_scripts_info)
6395 (clear_section_scripts, maybe_print_unsupported_script_warning)
6396 (maybe_print_script_not_found_warning, _initialize_auto_load):
6399 2019-05-08 Tom Tromey <tom@tromey.com>
6401 * objfiles.c (objfile_pspace_info): Add destructor and
6403 (objfiles_pspace_data): Change type.
6404 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
6405 (get_objfile_pspace_data): Update.
6406 (objfiles_bfd_data): Change type.
6407 (get_objfile_bfd_data): Update.
6408 (objfile_bfd_data_free, _initialize_objfiles): Remove.
6410 2019-05-08 Tom Tromey <tom@tromey.com>
6412 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
6414 (get_catch_syscall_inferior_data): Update.
6415 (catch_syscall_inferior_data_cleanup): Remove.
6416 (_initialize_break_catch_syscall): Update.
6418 2019-05-08 Tom Tromey <tom@tromey.com>
6420 * inflow.c (struct terminal_info): Add destructor and
6422 (inflow_inferior_data): Change type.
6423 (~terminal_info): Rename from inflow_inferior_data_cleanup.
6424 (get_inflow_inferior_data, inflow_inferior_exit)
6425 (swap_terminal_info, _initialize_inflow): Update.
6427 2019-05-08 Tom Tromey <tom@tromey.com>
6429 * target-dcache.c (target_dcache_cleanup): Remove.
6430 (target_dcache_aspace_key): Change type.
6431 (target_dcache_init_p, target_dcache_invalidate)
6432 (target_dcache_get, target_dcache_get_or_init)
6433 (_initialize_target_dcache): Update.
6434 * dcache.h (struct dcache_deleter): New.
6436 2019-05-08 Tom Tromey <tom@tromey.com>
6438 * symtab.c (struct symbol_cache): Add destructor and
6440 (symbol_cache_key): Move. Change type.
6441 (make_symbol_cache, free_symbol_cache): Remove.
6442 (get_symbol_cache): Update.
6443 (symbol_cache_cleanup): Remove.
6444 (ALL_PSPACES, symbol_cache_flush)
6445 (maintenance_print_symbol_cache)
6446 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
6449 2019-05-08 Tom Tromey <tom@tromey.com>
6451 * symtab.c (struct main_info): Add destructor and initializers.
6452 (main_progspace_key): Move. Change type.
6453 (get_main_info): Update.
6454 (main_info_cleanup): Remove.
6455 (_initialize_symtab): Update.
6457 2019-05-08 Tom Tromey <tom@tromey.com>
6459 * registry.h (DECLARE_REGISTRY): Define the _key class.
6461 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6463 * NEWS: Merge two 'New commands' sections.
6465 2019-05-08 Joel Brobecker <brobecker@adacore.com>
6467 * ada-valprint.c (ada_val_print_gnat_array): Remove language
6468 parameter and use Ada language definition instead.
6469 (ada_val_print_ptr): Remove unused language parameter.
6470 (ada_val_print_num): Remove language parameter and use Ada language
6472 (ada_val_print_enum, ada_val_print_flt): Remove unused language
6474 (ada_val_print_struct_union, ada_val_print_ref): Remove language
6475 parameter and use Ada language definition instead.
6476 (ada_val_print_1): Update all ada_val_print_xxx calls.
6477 Remove language parameter.
6478 (ada_val_print): Update ada_val_print_1 call.
6480 2019-05-08 Tom Tromey <tromey@adacore.com>
6482 * remote.c (remote_hw_watchpoint_limit)
6483 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
6486 2019-05-08 Tom Tromey <tromey@adacore.com>
6488 * maint.c (_initialize_maint_cmds): Move initialization code to
6490 (watchdog, show_watchdog): Move to remote.c.
6491 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
6493 (_initialize_remote): Move initialization code from maint.c.
6494 * defs.h (watchdog): Don't declare.
6496 2019-05-08 Tom Tromey <tromey@adacore.com>
6498 * tui/tui-interp.c: Include main.h.
6499 * interps.c: Include main.h.
6500 * main.h (interpreter_p): Declare.
6501 * defs.h (interpreter_p): Don't declare.
6503 2019-05-08 Tom Tromey <tromey@adacore.com>
6505 * dwarf2loc.c: Include dwarf2read.h.
6506 * defs.h (read_unsigned_leb128): Don't declare.
6507 * dwarf2read.h (read_unsigned_leb128): Declare.
6509 2019-05-08 Tom Tromey <tromey@adacore.com>
6511 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
6514 2019-05-08 Tom Tromey <tromey@adacore.com>
6516 * utils.c (fputs_maybe_filtered): Reset style after paging, even
6517 when no wrap column is set.
6519 2019-05-08 Tom Tromey <tromey@adacore.com>
6521 * c-lang.c (c_get_string): Handle non-C-style arrays.
6523 2019-05-08 Tom Tromey <tromey@adacore.com>
6525 * typeprint.c (print_offset_data::update): Print the bit offset,
6526 not the number of bits remaining.
6528 2019-05-08 Tom Tromey <tromey@adacore.com>
6530 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
6531 padding at end of comment.
6533 2019-05-08 Tom Tromey <tromey@adacore.com>
6535 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
6538 2019-05-06 Tom Tromey <tom@tromey.com>
6540 * common/scoped_mmap.c: Include common-defs.h.
6541 * common/scoped_mmap.h: Don't include config.h.
6543 2019-05-04 Tom Tromey <tom@tromey.com>
6545 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
6546 (struct aarch64_call_info): Add initializers.
6547 <si>: Now a std::vector.
6548 (pass_on_stack, aarch64_push_dummy_call): Update.
6550 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
6551 Tom Tromey <tom@tromey.com>
6553 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
6554 (ppc_threads): Now a std::vector. Now static.
6555 (hwdebug_find_thread_points_by_tid)
6556 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
6559 2019-05-04 Tom Tromey <tom@tromey.com>
6561 * arc-tdep.c (arc_tdesc_init): Return bool.
6563 2019-05-04 Tom Tromey <tom@tromey.com>
6565 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
6566 Use gdb_assert_not_reached.
6568 2019-05-04 Tom Tromey <tom@tromey.com>
6570 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
6573 2019-05-04 Tom Tromey <tom@tromey.com>
6575 * arc-tdep.c (arc_tdesc_init): Use bool.
6577 2019-05-04 Tom Tromey <tom@tromey.com>
6579 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
6581 2019-05-04 Tom Tromey <tom@tromey.com>
6583 * cli/cli-cmds.c (valid_command_p): Return bool.
6585 2019-05-04 Tom Tromey <tom@tromey.com>
6587 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
6588 * command.h (valid_user_defined_cmd_name_p): Channge return type.
6590 2019-05-04 Raul Tambre <raul@tambre.ee>
6592 * python/lib/gdb/prompt.py (_ExtendedPrompt)
6593 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
6594 operator for comparison.
6596 2019-05-04 Tom Tromey <tom@tromey.com>
6598 * psymtab.c (psymbol_name_matches, match_partial_symbol)
6599 (lookup_partial_symbol, print_partial_symbols)
6600 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
6601 (psymbol_compare): Update.
6602 (add_psymbol_to_bcache): Clear the entire psymbol.
6603 (maintenance_check_psymtabs): Update.
6604 * psympriv.h (struct partial_symbol): Don't derive from
6605 general_symbol_info.
6606 <obj_section, unrelocated_address, address,
6607 set_unrelocated_address>: Update.
6608 <ginfo>: New member.
6609 * dwarf-index-write.c (write_psymbols, debug_names::insert)
6610 (debug_names::write_psymbols): Update.
6612 2019-05-04 Tom de Vries <tdevries@suse.de>
6614 * contrib/cc-with-tweaks.sh: Support -n arg.
6616 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6618 * corelow.c (core_target::detach): Ensure frame cache and
6619 register caches are cleared.
6620 inferior.c (exit_inferior_1): Likewise.
6622 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
6623 Tom Tromey <tom@tromey.com>
6625 * dictionary.c (collate_pending_symbols_by_language): Remove
6626 "struct" from foreach.
6627 * symtab.c (lookup_global_symbol_from_objfile)
6628 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
6630 * ser-tcp.c (net_open): Remove "struct" from foreach.
6631 * objfiles.c (objfile_relocate, objfile_rebase)
6632 (objfile_has_symbols): Remove "struct" from foreach.
6633 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
6635 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
6637 * darwin-nat.c (thread_info_from_private_thread_info): Remove
6638 "struct" from foreach.
6639 * ada-lang.c (create_excep_cond_exprs)
6640 (ada_exception_catchpoint_cond_string): Remove "struct" from
6643 2019-05-03 Tom Tromey <tromey@adacore.com>
6645 * ada-exp.y (convert_char_literal): Check suffix of each
6648 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
6651 * ada-exp.y (yywrap): Don't define.
6652 * ada-lex.l (%option): Add noyywrap
6655 2019-05-03 Eli Zaretskii <eliz@gnu.org>
6657 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
6658 _WIN32_WINNT to the XP level, unless already defined to a higher
6661 * unittests/parse-connection-spec-selftests.c:
6663 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
6666 * symfile.c (find_separate_debug_file): Remove colon from the
6667 drive spec of DOS/Windows file names of the target, so that the
6668 file name produced from DEBUGDIR and the target's directory will
6669 be valid on DOS/Windows systems.
6671 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
6673 * rust-lang.c (val_print_struct): Handle printing structures
6676 2019-05-02 Tom Tromey <tromey@adacore.com>
6678 * valarith.c (_initialize_valarith): Remove.
6680 2019-05-01 Tom Tromey <tromey@adacore.com>
6682 * ada-lang.c (ada_value_primitive_field): Treat more fields as
6685 2019-05-01 Tom Tromey <tromey@adacore.com>
6687 * ada-lang.c (ada_value_assign): Correctly compute starting offset
6688 for big-endian copies.
6690 2019-04-30 Ali Tamur <tamur@google.com>
6691 * gdb/dwarf2read.c (read_3_bytes): New declaration.
6692 (read_attribute_value): Added DW_FORM_strx1-4 cases.
6693 (read_3_bytes): New function.
6695 2019-04-30 Joel Brobecker <brobecker@adacore.com>
6697 * windows-nat.c (main_thread_id): Delete.
6698 (handle_output_debug_string): Replace main_thread_id by
6699 current_event.dwThreadId.
6700 (fake_create_process): Likewise.
6701 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
6702 Do not set main_thread_id.
6703 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
6704 current_event.dwThreadId.
6705 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
6707 2019-04-30 Joel Brobecker <brobecker@adacore.com>
6709 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
6710 Use current_event.dwThreadId instead of main_thread_id.
6712 2019-04-30 Tom Tromey <tromey@adacore.com>
6714 * ada-lang.c (ada_lookup_simple_minsyms): New function.
6715 (create_excep_cond_exprs): Iterate over program spaces.
6716 (ada_exception_catchpoint_cond_string): Examine all minimal
6717 symbols for exception types.
6719 2019-04-30 Tom Tromey <tromey@adacore.com>
6722 * dwarf2read.c (process_structure_scope): Handle case where type
6723 has template parameters but no symbol was created.
6725 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6726 Chris January <chris.january@arm.com>
6728 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
6730 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
6732 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6734 * f-typeprint.c (f_print_type): Update rules for printing
6736 (f_type_print_varspec_suffix): Likewise.
6738 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6739 Chris January <chris.january@arm.com>
6741 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
6744 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6746 * f-lang.c (build_fortran_types): Change name of void type to
6748 * f-typeprint.c (f_type_print_base): Print the name of the void
6749 type, rather than a fixed string.
6750 * f-valprint.c (f_decorations): Use lower case void string.
6752 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6753 Chris January <chris.january@arm.com>
6755 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
6758 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6759 Chris January <chris.january@arm.com>
6760 David Lecomber <david.lecomber@arm.com>
6762 * f-exp.y (BINOP_INTRINSIC): New token.
6763 (exp): New parser rule handling BINOP_INTRINSIC.
6764 (f77_keywords): Add new builtin procedures.
6765 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
6766 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6767 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
6768 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6769 (print_unop_subexp_f): New function.
6770 (print_binop_subexp_f): New function.
6771 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6772 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6773 (dump_subexp_body_f): Likewise.
6774 (operator_check_f): Likewise.
6775 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6776 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
6778 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6780 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
6782 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
6783 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
6784 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
6785 (operator_length_f): New fuction.
6786 (print_subexp_f): New function.
6787 (op_name_f): New function.
6788 (dump_subexp_body_f): New function.
6789 (operator_check_f): New function.
6790 (exp_descriptor_f): Replace standard expression handling functions
6792 * gdb/fortran-operator.def: New file.
6793 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
6794 * gdb/std-operator.def: Remove UNOP_KIND.
6796 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6798 * std-operator.def: Remove unbalanced, stray double quote
6801 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6802 Chris January <chris.january@arm.com>
6803 Daniel Everett <daniel.everett@arm.com>
6804 Nick Forrington <nick.forrington@arm.com>
6805 Richard Bunt <richard.bunt@arm.com>
6807 * cp-valprint.c (cp_print_value_fields): Allow an additional level
6808 of depth when printing anonymous structs or unions.
6809 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
6810 Don't print either the top-level value, or the children if the
6811 max-depth is exceeded.
6812 (ppscm_print_children): When printing the key of a map, allow one
6813 extra level of depth.
6814 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
6815 print either the top-level value, or the children if the max-depth
6817 (print_children): When printing the key of a map, allow one extra
6819 * python/py-value.c (valpy_format_string): Add max_depth keyword.
6820 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
6821 (user_print_options): Initialise max_depth field.
6822 (val_print_scalar_or_string_type_p): New function.
6823 (val_print): Check to see if the max depth has been reached.
6824 (val_print_check_max_depth): Define new function.
6825 (show_print_max_depth): New function.
6826 (_initialize_valprint): Add 'print max-depth' option.
6827 * valprint.h (struct value_print_options) <max_depth>: New field.
6828 (val_print_check_max_depth): Declare new function.
6829 * NEWS: Document new feature.
6831 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6833 * ada-lang.c (ada_language_defn): Initialise new field.
6834 * c-lang.c (c_is_string_type_p): New function.
6835 (c_language_defn): Initialise new field.
6836 (cplus_language_defn): Initialise new field.
6837 (asm_language_defn): Initialise new field.
6838 (minimal_language_defn): Initialise new field.
6839 * c-lang.h (c_is_string_type_p): Declare new function.
6840 * d-lang.c (d_language_defn): Initialise new field.
6841 * f-lang.c (f_is_string_type_p): New function.
6842 (f_language_defn): Initialise new field.
6843 * go-lang.c (go_is_string_type_p): New function.
6844 (go_language_defn): Initialise new field.
6845 * language.c (default_is_string_type_p): New function.
6846 (unknown_language_defn): Initialise new field.
6847 (auto_language_defn): Initialise new field.
6848 * language.h (struct language_defn) <la_is_string_type_p>: New
6850 (default_is_string_type_p): Declare new function.
6851 * m2-lang.c (m2_language_defn): Initialise new field.
6852 * objc-lang.c (objc_language_defn): Initialise new field.
6853 * opencl-lang.c (opencl_language_defn): Initialise new field.
6854 * p-lang.c (pascal_is_string_type_p): New function.
6855 (pascal_language_defn): Initialise new field.
6856 * rust-lang.c (rust_is_string_type_p): New function.
6857 (rust_language_defn): Initialise new field.
6859 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6861 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
6863 * ada-lang.c (ada_language_defn): Initialise new field.
6864 * c-lang.c (c_language_defn): Likewise.
6865 (cplus_language_defn): Likewise.
6866 (asm_language_defn): Likewise.
6867 (minimal_language_defn): Likewise.
6868 * d-lang.c (d_language_defn): Likewise.
6869 * f-lang.c (f_language_defn): Likewise.
6870 * go-lang.c (go_language_defn): Likewise.
6871 * language.c (unknown_language_defn): Likewise.
6872 (auto_language_defn): Likewise.
6873 * m2-lang.c (m2_language_defn): Likewise.
6874 * objc-lang.c (objc_language_defn): Likewise.
6875 * opencl-lang.c (opencl_language_defn): Likewise.
6876 * p-lang.c (pascal_language_defn): Likewise.
6877 * rust-lang.c (rust_language_defn): Likewise.
6879 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6881 * ada-lang.c (ada_is_character_type): Change return type to bool.
6882 (ada_is_string_type): Likewise.
6883 * ada-lang.h (ada_is_character_type): Update declaration
6884 (ada_is_string_type): Likewise.
6886 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6888 Support style in 'frame|thread apply'
6890 * gdbcmd.h (execute_command_to_string): New term_out parameter.
6891 * record.c (record_start, record_stop): Update callers of
6892 execute_command_to_string with false.
6893 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
6894 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
6896 (class string_file): New constructor with term_out parameter.
6897 Override methods term_out and can_emit_style_escape. New member
6899 (class stdio_file): Override can_emit_style_escape.
6900 (class tee_file): Override term_out and can_emit_style_escape.
6901 * utils.h (can_emit_style_escape): Remove.
6902 * utils.c (can_emit_style_escape): Likewise.
6903 Update all callers of can_emit_style_escape (SOMESTREAM) to
6904 SOMESTREAM->can_emit_style_escape.
6905 * source-cache.c (source_cache::get_source_lines): Likewise.
6906 * stack.c (frame_apply_command_count): Call execute_command_to_string
6907 passing the term_out characteristic of the current gdb_stdout.
6908 * thread.c (thr_try_catch_cmd): Likewise.
6909 * top.c (execute_command_to_string): pass term_out parameter
6910 to construct the string_file for the command output.
6911 * ui-file.c (term_cli_styling): New function (most code moved
6912 from utils.c can_emit_style_escape).
6913 (string_file::string_file, string_file::can_emit_style_escape,
6914 stdio_file::can_emit_style_escape, tee_file::term_out,
6915 tee_file::can_emit_style_escape): New functions.
6917 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6919 * NEWS: Mention the new set|show may-call-functions.
6920 * infcall.c (may_call_functions_p): New variable.
6921 (show_may_call_functions_p): New function.
6922 (call_function_by_hand_dummy): Throws an error if not
6924 (_initialize_infcall): Call add_setshow_boolean_cmd for
6927 2019-04-25 Keith Seitz <keiths@redhat.com>
6930 * cp-support.c (inspect_type): Don't attempt substitutions
6931 of symbol with the same name.
6933 2019-04-25 Tom Tromey <tromey@adacore.com>
6936 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
6939 2019-04-25 Tom Tromey <tromey@adacore.com>
6941 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
6943 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
6944 (gdb_xml_parser::parse): Use std::move.
6945 * python/python-internal.h (gdbpy_convert_exception): Take a const
6947 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
6949 * python/py-utils.c (gdbpy_convert_exception): Take a const
6951 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
6953 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
6955 * mi/mi-main.c (mi_print_exception): Take a const reference.
6956 * main.c (handle_command_errors): Take a const reference.
6957 * linespec.c (parse_linespec): Use std::move.
6958 * infcall.c (run_inferior_call): Use std::move.
6959 (call_function_by_hand_dummy): Use std::move.
6960 * exec.c (try_open_exec_file): Use std::move.
6961 * exceptions.h (exception_print, exception_fprintf)
6962 (exception_print_same): Update.
6963 * exceptions.c (print_exception, exception_print)
6964 (exception_fprintf, exception_print_same): Change parameters to
6966 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
6967 * common/new-op.c: Use std::move.
6968 * common/common-exceptions.h (struct gdb_exception): Add move
6970 (struct gdb_exception_error, struct gdb_exception_quit, struct
6971 gdb_quit_bad_alloc): Change constructor to move constructor.
6972 (throw_exception): Change parameter to rvalue reference.
6973 * common/common-exceptions.c (throw_exception): Take rvalue
6975 * cli/cli-interp.c (safe_execute_command): Use std::move.
6976 * breakpoint.c (insert_bp_location, location_to_sals): Use
6979 2019-04-25 Tom Tromey <tromey@adacore.com>
6981 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
6982 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
6983 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
6984 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
6985 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
6986 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
6987 guile/scm-value.c: Use unpack.
6988 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
6989 gdbscm_gdb_exception.
6990 (gdbscm_throw_gdb_exception): Likewise.
6991 (struct gdbscm_gdb_exception): New.
6992 (unpack): New function.
6993 (gdbscm_wrap): Use unpack.
6995 2019-04-25 Tom Tromey <tromey@adacore.com>
6997 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
6998 (gdb_rl_callback_handler): Use std::move.
6999 * common/common-exceptions.h (struct gdb_exception): Add move
7000 assignment operator.
7001 (throw_exception_sjlj): Change "exception" to const reference.
7002 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
7003 (throw_exception_sjlj): Change "exception" to const reference.
7005 2019-04-25 Tom Tromey <tromey@adacore.com>
7007 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
7008 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
7009 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
7011 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
7013 * mi/mi-interp.c (mi_interp::exec): Update.
7014 * linespec.c (parse_linespec): Update.
7015 * infcall.c (run_inferior_call): Update.
7016 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
7017 * guile/scm-symbol.c (gdbscm_lookup_symbol)
7018 (gdbscm_lookup_global_symbol): Update.
7019 * guile/scm-param.c (gdbscm_parameter_value): Update.
7020 * guile/scm-frame.c (gdbscm_frame_read_register)
7021 (gdbscm_frame_read_var): Update.
7022 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
7023 * exec.c (try_open_exec_file): Update.
7024 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
7025 (gdb_rl_callback_handler): Update.
7026 * common/common-exceptions.h (exception_none): Don't declare.
7027 * common/common-exceptions.c (exception_none): Don't define.
7028 (struct catcher) <exception>: Update.
7029 * cli/cli-interp.c (safe_execute_command): Update.
7030 * breakpoint.c (insert_bp_location, location_to_sals): Update.
7032 2019-04-25 Ali Tamur <tamur@google.com>
7034 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
7035 (read_attribute_value): Likewise.
7036 (dwarf2_read_addr_index): Update comment.
7037 (read_str_index): Add DW_FORM_strx.
7038 (dwarf2_string_attr): Likewise.
7039 (dwarf2_const_value_attr): Likewise.
7040 (dump_die_shallow): Likewise.
7041 (dwarf2_fetch_constant_bytes): Likewise.
7042 (skip_form_bytes): Likewise.
7043 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
7045 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
7049 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
7050 OFFSET. Verify if current mapping contains an ELF header.
7051 (linux_find_memory_regions_full): Adjust call to
7054 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
7055 Kang Li <kanglictf@gmail.com>
7059 * dwarf2-frame.c (read_initial_length): Be consistent about using
7060 unsigned representation of length.
7061 (decode_frame_entry_1): Likewise. Check for wraparound of
7062 end pointer as well as buffer overflow.
7064 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
7066 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
7069 2019-04-24 Tom Tromey <tromey@adacore.com>
7071 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
7073 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7075 * s12z-tdep.c (s12z_unwind_pc): Delete.
7076 (s12z_unwind_sp): Delete.
7077 (s12z_gdbarch_init): Don't register deleted functions with
7080 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7082 * rl78-tdep.c (rl78_unwind_sp): Delete.
7083 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
7085 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7087 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
7088 (xstormy16_unwind_pc): Delete.
7089 (xstormy16_dummy_id): Delete.
7090 (xstormy16_gdbarch_init): Don't register deleted functions with
7093 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7095 * vax-tdep.c (vax_unwind_pc): Delete.
7096 (vax_gdbarch_init): Don't register deleted function with gdbarch.
7098 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7100 * v850-tdep.c (v850_unwind_sp): Delete.
7101 (v850_unwind_pc): Delete.
7102 (v850_dummy_id): Delete.
7103 (v850_gdbarch_init): Don't register deleted functions with
7106 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7108 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
7109 (tilegx_unwind_pc): Delete.
7110 (tilegx_unwind_dummy_id): Delete.
7111 (tilegx_gdbarch_init): Don't register deleted functions with
7114 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7116 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
7117 (tic6x_dummy_id): Delete.
7118 (tic6x_gdbarch_init): Don't register deleted functions with
7121 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7123 * sparc-tdep.c (sparc_unwind_pc): Delete.
7124 (sparc32_gdbarch_init): Don't register deleted function with
7127 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7129 * sh-tdep.c (sh_unwind_sp): Delete.
7130 (sh_unwind_pc): Delete.
7131 (sh_dummy_id): Delete.
7132 (sh_gdbarch_init): Don't register deleted functions with
7135 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7137 * score-tdep.c (score_unwind_sp): Delete.
7138 (score_unwind_pc): Delete.
7139 (score_dummy_id): Delete.
7140 (score_gdbarch_init): Don't register deleted functions with
7143 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7145 * rx-tdep.c (rx_unwind_pc): Delete.
7146 (rx_unwind_sp): Delete.
7147 (rx_dummy_id): Delete.
7148 (rx_gdbarch_init): Don't register deleted functions with
7149 gdbarch. Update comment.
7151 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7153 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
7154 (rs6000_dummy_id): Delete.
7155 (rs6000_gdbarch_init): Don't register deleted functions with
7158 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7160 * or1k-tdep.c (or1k_dummy_id): Delete.
7161 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
7163 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7165 * nios2-tdep.c (nios2_dummy_id): Delete.
7166 (nios2_unwind_sp): Delete.
7167 (nios2_gdbarch_init): Don't register deleted functions with
7170 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7172 * nds32-tdep.c (nds32_dummy_id): Delete.
7173 (nds32_unwind_pc): Delete.
7174 (nds32_unwind_sp): Delete.
7175 (nds32_gdbarch_init): Don't register deleted functions with
7178 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7180 * msp430-tdep.c (msp430_unwind_pc): Delete.
7181 (msp430_unwind_sp): Delete.
7182 (msp430_dummy_id): Delete.
7183 (msp430_gdbarch_init): Don't register deleted functions with
7186 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7188 * moxie-tdep.c (moxie_unwind_sp): Delete.
7189 (moxie_unwind_pc): Delete.
7190 (moxie_dummy_id): Delete.
7191 (moxie_gdbarch_init): Don't register deleted functions with
7194 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7196 * mn10300-tdep.c (mn10300_dummy_id): Delete.
7197 (mn10300_unwind_pc): Delete.
7198 (mn10300_unwind_sp): Delete.
7199 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
7201 (mn10300_frame_unwind_init): Don't register deleted functions with
7204 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7206 * mep-tdep.c (mep_unwind_pc): Delete.
7207 (mep_unwind_sp): Delete.
7208 (mep_dummy_id): Delete.
7209 (mep_gdbarch_init): Don't register deleted functions with
7212 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7214 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
7215 (m68hc11_unwind_sp): Delete.
7216 (m68hc11_gdbarch_init): Don't register deleted functions with
7219 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7221 * m32r-tdep.c (m32r_unwind_sp): Delete.
7222 (m32r_unwind_pc): Delete.
7223 (m32r_dummy_id): Delete.
7224 (m32r_gdbarch_init): Don't register deleted functions with
7227 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7229 * m32c-tdep.c (m32c_unwind_pc): Delete.
7230 (m32c_unwind_sp): Delete.
7231 (m32c_dummy_id): Delete.
7232 (m32c_gdbarch_init): Don't register deleted functions with
7235 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7237 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
7238 (lm32_unwind_pc): Delete.
7239 (lm32_dummy_id): Delete.
7240 (lm32_gdbarch_init): Don't register deleted functions with
7243 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7245 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
7246 (iq2000_unwind_pc): Delete.
7247 (iq2000_dummy_id): Delete.
7248 (iq2000_gdbarch_init): Don't register deleted functions with
7251 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7253 * nds32-tdep.c (nds32_type_align): Delete.
7254 (nds32_push_dummy_call): Use type_align instead.
7256 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7258 * arm-tdep.c (arm_type_align): Only handle vector override case.
7259 (arm_push_dummy_call): Use type_align.
7260 (arm_gdbarch_init): Register arm_type_align gdbarch function.
7262 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7264 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
7266 (pass_on_stack): Use type_align.
7267 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
7270 2019-04-23 Tom Tromey <tromey@adacore.com>
7272 * dwarf2read.c (line_header::file_name_at): Remove unused
7275 2019-04-23 Tom de Vries <tdevries@suse.de>
7278 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
7282 2019-03-27 Ali Tamur <tamur@google.com>
7284 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
7285 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
7286 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
7287 (dwarf_expr_context::get_addr_index): Likewise
7288 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
7289 (symbol_needs_eval_context::get_addr_index): Likewise
7290 (disassemble_dwarf_expression): Add DW_OP_addrx
7291 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
7292 (read_cutu_die_from_dwo): Update comment
7293 (skip_one_die): Add DW_FORM_addrx
7294 (read_attribute_value): Likewise
7295 (var_decode_location): Add DW_OP_addrx
7296 (dwarf2_const_value_attr): Add DW_FORM_addrx
7297 (dump_die_shallow): Likewise
7298 (dwarf2_fetch_constant_bytes): Likewise
7299 (decode_locdesc): Add DW_OP_addrx
7300 (skip_form_bytes): Add DW_FORM_addrx
7302 2019-04-22 Ali Tamur <tamur@google.com>
7304 * MAINTAINERS (Write After Approval): Add self.
7306 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
7308 * solib-svr4.c (get_svr4_info): Add pspace parameter.
7309 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
7310 (open_symbol_file_object): Likewise.
7311 (svr4_default_sos): Add info parameter.
7312 (svr4_read_so_list): Likewise.
7313 (svr4_current_sos_direct): Adjust functions calls to pass down
7315 (svr4_current_sos_1): Add info parameter.
7316 (svr4_current_sos): Call get_svr4_info, pass info down to
7318 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
7320 (svr4_in_dynsym_resolve_code): Pass current_program_space to
7322 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
7324 (probes_table_remove_objfile_probes): Likewise.
7325 (register_solib_event_probe): Add info parameter.
7326 (solist_update_incremental): Pass info parameter down to
7328 (disable_probes_interface): Add info parameter.
7329 (svr4_handle_solib_event): Pass current_program_space to
7330 get_svr4_info. Adjust disable_probes_interface cleanup.
7331 (svr4_create_probe_breakpoints): Add info parameter, pass it
7332 down to register_solib_event_probe.
7333 (svr4_create_solib_event_breakpoints): Add info parameter,
7334 pass it down to svr4_create_probe_breakpoints.
7335 (enable_break): Pass info down to
7336 svr4_create_solib_event_breakpoints.
7337 (svr4_solib_create_inferior_hook): Pass current_program_space to
7339 (svr4_clear_solib): Likewise.
7341 2019-04-22 Pedro Alves <palves@redhat.com>
7343 * solib-svr4.c (svr4_free_objfile_observer): New.
7344 (probe_and_action::objfile): New field.
7345 (probes_table_htab_remove_objfile_probes)
7346 (probes_table_remove_objfile_probes): New functions.
7347 (register_solib_event_probe): Add 'objfile' parameter. Store it
7348 in the new probe_and_action. Don't store the probe in 'lookup'.
7349 (svr4_create_probe_breakpoints): Pass objfile to
7350 register_solib_event_probe.
7351 (_initialize_svr4_solib): Register a free_objfile observer.
7353 2019-04-19 Tom Tromey <tom@tromey.com>
7355 * common/queue.h: Remove.
7357 2019-04-19 Tom Tromey <tom@tromey.com>
7359 * event-loop.c: Don't include "common/queue.h".
7361 2019-04-19 Tom Tromey <tom@tromey.com>
7363 * remote.c (remote_target): Use delete.
7364 * remote-notif.h: Include <list>, not "common/queue.h".
7365 (notif_client_p): Remove typedef.
7366 (remote_notif_state): Add constructor, destructor, initializer.
7367 <notif_queue>: Now a std::list.
7368 (remote_notif_state_xfree): Don't declare.
7369 * remote-notif.c (remote_notif_process, handle_notification)
7370 (remote_notif_state_allocate): Update.
7371 (~remote_notif_state): Rename from remote_notif_state_xfree.
7373 2019-04-19 Tom Tromey <tom@tromey.com>
7375 * symfile.c (reread_symbols): Update.
7376 * objfiles.c (objfile_register_static_link)
7377 (objfile_lookup_static_link): Update
7378 (~objfile) Don't delete static_links.
7379 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
7381 2019-04-19 Tom Tromey <tom@tromey.com>
7383 * type-stack.h (struct type_stack) <insert>: Constify string.
7384 * type-stack.c (type_stack::insert): Constify string.
7385 * gdbtypes.h (lookup_template_type): Update.
7386 (address_space_name_to_int): Update.
7387 * gdbtypes.c (address_space_name_to_int): Make space_identifier
7389 (lookup_template_type): Make name const.
7390 * c-exp.y: Update rules.
7391 (lex_one_token, classify_name, classify_inner_name)
7392 (c_print_token): Update.
7393 * p-exp.y: Update rules.
7395 * f-exp.y: Update rules.
7397 * d-exp.y: Update rules.
7398 (lex_one_token, classify_name, classify_inner_name): Update.
7399 * parse.c (write_dollar_variable, copy_name): Return std::string.
7400 * parser-defs.h (copy_name): Change return type.
7401 * m2-exp.y: Update rules.
7403 * go-exp.y (lex_one_token): Update.
7405 (classify_unsafe_function, classify_packaged_name)
7406 (classify_name, yylex): Update.
7408 2019-04-19 Sergei Trofimovich <siarheit@google.com>
7410 * configure.ac: add --enable-source-highlight switch.
7411 * configure: Regenerate.
7412 * top.c (print_gdb_version): plumb --enable-source-highlight
7413 status to "show configuration".
7415 2019-04-19 Tom Tromey <tromey@adacore.com>
7417 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
7419 (empty_record, ada_template_to_fixed_record_type_1)
7420 (template_to_static_fixed_type)
7421 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
7422 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
7423 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
7426 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
7429 * source.c (print_source_lines_base): Advance "iter" when a
7430 control character is seen.
7432 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7434 * inferior.h (struct infcall_suspend_state_deleter):
7435 Catch exception in destructor to avoid crash.
7437 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7439 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
7440 close to the add_com "shell".
7442 2019-04-18 Tom Tromey <tromey@adacore.com>
7444 * process-stratum-target.h (class process_stratum_target)
7445 <stratum>: Add "final".
7447 2019-04-17 Tom Tromey <tromey@adacore.com>
7449 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
7450 against nullptr before use.
7452 2019-04-17 Alan Hayward <alan.hayward@arm.com>
7454 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
7456 2019-04-17 Jim Wilson <jimw@sifive.com>
7457 Andrew Burgess <andrew.burgess@embecosm.com>
7459 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
7460 code read might fail, assume 4-byte breakpoint in that case.
7462 2019-04-15 Leszek Swirski <leszeks@google.com>
7464 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
7465 rather than a hand-rolled POD check when checking for forced MEMORY
7468 2019-04-15 Alan Hayward <alan.hayward@arm.com>
7470 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
7471 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
7473 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
7474 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
7475 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
7478 2019-04-15 Alan Hayward <alan.hayward@arm.com>
7480 * aarch64-linux-nat.c
7481 (aarch64_linux_nat_target::thread_architecture): Add override.
7482 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
7485 2019-04-15 Alan Hayward <alan.hayward@arm.com>
7487 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
7489 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
7491 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
7492 target types of size 96-bits, add some additional comments, and
7493 check that the builtin type we found was the correct size.
7495 2019-04-12 Eli Zaretskii <eliz@gnu.org>
7497 * utils.c (prompt_for_continue): Don't restore the styling at the
7498 end, as applied_style has the wrong value. This fixes styling in
7499 long lists of file names that are interrupted by the "Continue?"
7502 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
7504 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
7505 * c-lang.c (c_language_defn): Likewise.
7506 (cplus_language_defn): Likewise.
7507 (asm_language_defn): Likewise.
7508 (minimal_language_defn): Likewise.
7509 * d-lang.c (d_language_defn): Likewise.
7510 * f-lang.c (f_language_defn): Likewise.
7511 * go-lang.c (go_language_defn): Likewise.
7512 * language.c (unknown_language_defn): Likewise.
7513 (auto_language_defn): Likewise.
7514 * language.h (struct language_defn): Remove la_magic field.
7515 (LANG_MAGIC): Delete.
7516 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
7517 * objc-lang.c (objc_language_defn): Likewise.
7518 * opencl-lang.c (opencl_language_defn): Likewise.
7519 * p-lang.c (pascal_language_defn): Likewise.
7520 * rust-lang.c (rust_language_defn): Likewise.
7522 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7524 * riscv-tdep.c (riscv_type_align): New function.
7525 (riscv_type_alignment): Delete.
7526 (riscv_arg_location): Use 'type_align'.
7527 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
7529 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7531 * gdbtypes.c (type_align): A struct with no non-static fields also
7534 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7536 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
7538 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
7540 (riscv_struct_info::analyse): New implementation using new
7541 analyse_inner member function.
7542 (riscv_struct_info::field_offset): New member function.
7543 (riscv_struct_info::m_offsets): New member variable.
7544 (riscv_struct_info::analyse_inner): New private member function,
7545 takes the old implementation of riscv_struct_info::analyse but
7546 extended to track field offsets.
7547 (riscv_call_arg_struct): Update the struct folding special cases
7548 to handle cases where empty C++ structs, which are non-zero
7550 (riscv_arg_location): Initialise the length of each location, a
7551 non-zero length now indicates the location is in use.
7552 (riscv_push_dummy_call): Allow for the first location having a
7553 non-zero offset when setting up arguments.
7554 (riscv_return_value): Likewise, but for return values.
7556 2019-04-11 Tom Tromey <tromey@adacore.com>
7558 * utils.c (internal_vproblem): Make "msg" const.
7560 2019-04-11 Alan Hayward <alan.hayward@arm.com>
7562 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
7563 * trad-frame.c (trad_frame_reset_saved_regs): New function.
7564 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
7565 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
7567 2019-04-10 Kevin Buettner <kevinb@redhat.com>
7569 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
7571 (fill_gregset): Call amd64_linux_collect_native_gregset instead
7572 of amd64_collect_native_gregset.
7573 (amd64_linux_nat_target::store_registers): Likewise.
7575 2019-04-10 Tom Tromey <tom@tromey.com>
7577 * symtab.c (lookup_global_symbol_from_objfile)
7578 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
7579 * objfiles.h (class separate_debug_iterator): New.
7580 (class separate_debug_range): New.
7581 (struct objfile) <separate_debug_objfiles>: New method.
7582 (objfile_separate_debug_iterate): Don't declare.
7583 * objfiles.c (separate_debug_iterator::operator++): Rename from
7584 objfile_separate_debug_iterate.
7585 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
7587 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
7590 2019-04-10 Tom Tromey <tom@tromey.com>
7592 * symfile.c (reread_symbols): Remove old comment.
7593 * objfiles.c (free_all_objfiles): Fix a typo.
7595 2019-04-10 Tom Tromey <tom@tromey.com>
7597 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
7598 * minsyms.c (lookup_minimal_symbol): Use foreach.
7599 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7600 (lookup_minimal_symbol_solib_trampoline): Likewise.
7601 * symfile.c (reread_symbols): Use foreach.
7603 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
7604 Tom Tromey <tromey@adacore.com>
7607 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
7608 (rust_lex_int_test): Change "value" to be LONGEST.
7609 (rust_lex_tests): Add test for long integer literal.
7611 2019-04-09 Tom Tromey <tromey@adacore.com>
7613 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
7615 (extended_remote_target::attach): Update.
7616 (remote_target::remote_notice_new_inferior): Update.
7617 (remote_target::add_current_inferior_and_thread): Update.
7618 * inferior.c (exit_inferior_1): Use "false".
7619 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
7621 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
7623 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
7624 the "start" command.
7626 2019-04-08 Kevin Buettner <kevinb@redhat.com>
7628 * python/py-inferior.c (infpy_thread_from_thread_handle):
7629 Adjust comments to reflect renaming of thread_from_thread_handle
7630 to thread_from_handle. Adjust keywords. Fix type error message.
7631 (inferior_object_methods): Add thread_from_handle. Retain
7632 thread_from_thread_handle, but mark it as deprecated.
7634 2019-04-08 Kevin Buettner <kevinb@redhat.com>
7636 * gdbthread.h (find_thread_by_handle): Revise declaration.
7637 * thread.c (find_thread_by_handle): Likewise. Adjust
7639 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
7640 support for buffer objects as handles.
7642 2019-04-08 Kevin Buettner <kevinb@redhat.com>
7644 * python/py-infthread.c (thpy_thread_handle): New function.
7645 (thread_object_methods): Register thpy_thread_handle.
7647 2019-04-08 Kevin Buettner <kevinb@redhat.com>
7649 * gdbthread.h (thread_to_thread_handle): Declare.
7650 * thread.c (gdbtypes.h): Include.
7651 (thread_to_thread_handle): New function.
7653 * target.h (struct target_ops): Add thread_info_to_thread_handle.
7654 (target_thread_info_to_thread_handle): Declare.
7655 * target.c (target_thread_info_to_thread_handle): New function.
7656 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
7657 * target-delegates.c: Regenerate.
7659 * linux-thread-db.c (class thread_db_target): Add method
7660 thread_info_to_thread_handle.
7661 (thread_db_target::thread_info_to_thread_handle): Define.
7662 * remote.c (class remote_target): Add new method
7663 thread_info_to_thread_handle.
7664 (remote_target::thread_info_to_thread_handle): Define.
7666 2019-04-08 Pedro Alves <palves@redhat.com>
7668 * common/common-exceptions.c (throw_exception): Don't create
7669 named object to throw; throw directly.
7670 (throw_it): Likewise. Don't initialize gdb_exception::message
7671 here, with new; pass FMT and AP to the ctor instead.
7672 * common/common-exceptions.h: Include <string>.
7673 (gdb_exception::gdb_exception(enum return_reason, enum errors,
7674 const char *, va_list)): New ctor. Use std::make_shared.
7675 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
7677 (gdb_exception_error::gdb_exception_error(enum errors, const char
7679 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
7681 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
7683 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
7684 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
7687 2019-04-08 Tom Tromey <tom@tromey.com>
7689 * valops.c (value_rtti_indirect_type): Replace throw_exception
7691 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
7693 * thread.c (thr_try_catch_cmd): Replace throw_exception with
7695 * target.c (target_translate_tls_address): Replace throw_exception
7697 * stack.c (frame_apply_command_count): Replace throw_exception
7699 * solib-spu.c (append_ocl_sos): Replace throw_exception with
7701 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
7703 * rs6000-tdep.c (rs6000_frame_cache)
7704 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
7705 * remote.c: Replace throw_exception with throw.
7706 * record-full.c (record_full_message, record_full_wait_1)
7707 (record_full_restore): Replace throw_exception with throw.
7709 (get_thread_current_frame_id, record_btrace_start_replaying)
7710 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
7711 (cmd_record_btrace_start): Replace throw_exception with throw.
7712 * parse.c (parse_exp_in_context_1): Replace throw_exception with
7714 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
7715 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
7717 (find_linespec_symbols): Replace throw_exception with throw.
7718 * infrun.c (displaced_step_prepare, resume): Replace
7719 throw_exception with throw.
7720 * infcmd.c (post_create_inferior): Replace throw_exception with
7722 * inf-loop.c (inferior_event_handler): Replace throw_exception
7724 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
7725 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
7726 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
7727 (get_prev_frame_always, get_frame_pc_if_available)
7728 (get_frame_address_in_block_if_available, get_frame_language):
7729 Replace throw_exception with throw.
7730 * frame-unwind.c (frame_unwind_try_unwinder): Replace
7731 throw_exception with throw.
7732 * eval.c (fetch_subexp_value, evaluate_var_value)
7733 (evaluate_funcall, evaluate_subexp_standard): Replace
7734 throw_exception with throw.
7735 * dwarf2loc.c (call_site_find_chain)
7736 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
7737 Replace throw_exception with throw.
7738 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
7740 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
7742 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
7743 * completer.c (complete_line_internal): Replace throw_exception
7745 * compile/compile-object-run.c (compile_object_run): Replace
7746 throw_exception with throw.
7747 * cli/cli-script.c (process_next_line): Replace throw_exception
7749 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
7750 (btrace_enable, btrace_maint_update_pt_packets): Replace
7751 throw_exception with throw.
7752 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
7753 throw_exception with throw.
7754 * break-catch-throw.c (re_set_exception_catchpoint): Replace
7755 throw_exception with throw.
7756 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
7757 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
7758 * aarch64-tdep.c (aarch64_make_prologue_cache)
7759 (aarch64_make_stub_cache): Replace throw_exception with throw.
7761 2019-04-08 Tom Tromey <tom@tromey.com>
7763 * common/common-exceptions.c (throw_exception): Rename from
7764 throw_exception_cxx. Remove old copy. Make argument const.
7765 (throw_it): Create and throw exception objects directly.
7766 * common/common-exceptions.h (throw_exception): Make argument
7768 (struct gdb_exception_error): Add constructor.
7769 (struct gdb_exception_quit): Add constructor.
7771 2019-04-08 Tom Tromey <tom@tromey.com>
7773 * common/common-exceptions.h (exception_rethrow): Don't declare.
7774 (TRY_SJLJ): Update comment.
7775 (TRY, CATCH, END_CATCH): Remove.
7776 * common/common-exceptions.c (exception_rethrow): Remove.
7778 2019-04-08 Tom Tromey <tom@tromey.com>
7780 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
7782 (gdb_exception_error): Rename from
7783 gdb_exception_RETURN_MASK_ERROR.
7784 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
7785 (gdb_quit_bad_alloc): Update.
7786 * aarch64-tdep.c: Update.
7787 * ada-lang.c: Update.
7788 * ada-typeprint.c: Update.
7789 * ada-valprint.c: Update.
7790 * amd64-tdep.c: Update.
7791 * arch-utils.c: Update.
7792 * break-catch-throw.c: Update.
7793 * breakpoint.c: Update.
7795 * c-varobj.c: Update.
7796 * cli/cli-cmds.c: Update.
7797 * cli/cli-interp.c: Update.
7798 * cli/cli-script.c: Update.
7799 * common/common-exceptions.c: Update.
7800 * common/new-op.c: Update.
7801 * common/selftest.c: Update.
7802 * compile/compile-c-symbols.c: Update.
7803 * compile/compile-cplus-symbols.c: Update.
7804 * compile/compile-object-load.c: Update.
7805 * compile/compile-object-run.c: Update.
7806 * completer.c: Update.
7807 * corelow.c: Update.
7809 * cp-support.c: Update.
7810 * cp-valprint.c: Update.
7811 * darwin-nat.c: Update.
7812 * disasm-selftests.c: Update.
7813 * dtrace-probe.c: Update.
7814 * dwarf-index-cache.c: Update.
7815 * dwarf-index-write.c: Update.
7816 * dwarf2-frame-tailcall.c: Update.
7817 * dwarf2-frame.c: Update.
7818 * dwarf2loc.c: Update.
7819 * dwarf2read.c: Update.
7821 * event-loop.c: Update.
7822 * event-top.c: Update.
7824 * f-valprint.c: Update.
7825 * fbsd-tdep.c: Update.
7826 * frame-unwind.c: Update.
7828 * gdbtypes.c: Update.
7829 * gnu-v3-abi.c: Update.
7830 * guile/guile-internal.h: Update.
7831 * guile/scm-block.c: Update.
7832 * guile/scm-breakpoint.c: Update.
7833 * guile/scm-cmd.c: Update.
7834 * guile/scm-disasm.c: Update.
7835 * guile/scm-frame.c: Update.
7836 * guile/scm-lazy-string.c: Update.
7837 * guile/scm-math.c: Update.
7838 * guile/scm-param.c: Update.
7839 * guile/scm-ports.c: Update.
7840 * guile/scm-pretty-print.c: Update.
7841 * guile/scm-symbol.c: Update.
7842 * guile/scm-symtab.c: Update.
7843 * guile/scm-type.c: Update.
7844 * guile/scm-value.c: Update.
7845 * i386-linux-tdep.c: Update.
7846 * i386-tdep.c: Update.
7847 * inf-loop.c: Update.
7848 * infcall.c: Update.
7852 * language.c: Update.
7853 * linespec.c: Update.
7854 * linux-fork.c: Update.
7855 * linux-nat.c: Update.
7856 * linux-tdep.c: Update.
7857 * linux-thread-db.c: Update.
7859 * mi/mi-cmd-break.c: Update.
7860 * mi/mi-cmd-stack.c: Update.
7861 * mi/mi-interp.c: Update.
7862 * mi/mi-main.c: Update.
7863 * objc-lang.c: Update.
7864 * p-valprint.c: Update.
7866 * ppc-linux-tdep.c: Update.
7867 * printcmd.c: Update.
7868 * python/py-arch.c: Update.
7869 * python/py-breakpoint.c: Update.
7870 * python/py-cmd.c: Update.
7871 * python/py-finishbreakpoint.c: Update.
7872 * python/py-frame.c: Update.
7873 * python/py-framefilter.c: Update.
7874 * python/py-gdb-readline.c: Update.
7875 * python/py-inferior.c: Update.
7876 * python/py-infthread.c: Update.
7877 * python/py-lazy-string.c: Update.
7878 * python/py-linetable.c: Update.
7879 * python/py-objfile.c: Update.
7880 * python/py-param.c: Update.
7881 * python/py-prettyprint.c: Update.
7882 * python/py-progspace.c: Update.
7883 * python/py-record-btrace.c: Update.
7884 * python/py-record.c: Update.
7885 * python/py-symbol.c: Update.
7886 * python/py-type.c: Update.
7887 * python/py-unwind.c: Update.
7888 * python/py-utils.c: Update.
7889 * python/py-value.c: Update.
7890 * python/python.c: Update.
7891 * record-btrace.c: Update.
7892 * record-full.c: Update.
7893 * remote-fileio.c: Update.
7895 * riscv-tdep.c: Update.
7896 * rs6000-aix-tdep.c: Update.
7897 * rs6000-tdep.c: Update.
7898 * rust-exp.y: Update.
7899 * rust-lang.c: Update.
7900 * s390-tdep.c: Update.
7901 * selftest-arch.c: Update.
7902 * solib-dsbt.c: Update.
7903 * solib-frv.c: Update.
7904 * solib-spu.c: Update.
7905 * solib-svr4.c: Update.
7907 * sparc64-linux-tdep.c: Update.
7909 * symfile-mem.c: Update.
7910 * symmisc.c: Update.
7914 * tracefile-tfile.c: Update.
7915 * tui/tui.c: Update.
7916 * typeprint.c: Update.
7917 * unittests/cli-utils-selftests.c: Update.
7918 * unittests/parse-connection-spec-selftests.c: Update.
7920 * valprint.c: Update.
7923 * windows-nat.c: Update.
7924 * x86-linux-nat.c: Update.
7925 * xml-support.c: Update.
7927 2019-04-08 Tom Tromey <tom@tromey.com>
7929 * xml-support.c: Use C++ exception handling.
7930 * x86-linux-nat.c: Use C++ exception handling.
7931 * windows-nat.c: Use C++ exception handling.
7932 * varobj.c: Use C++ exception handling.
7933 * value.c: Use C++ exception handling.
7934 * valprint.c: Use C++ exception handling.
7935 * valops.c: Use C++ exception handling.
7936 * unittests/parse-connection-spec-selftests.c: Use C++ exception
7938 * unittests/cli-utils-selftests.c: Use C++ exception handling.
7939 * typeprint.c: Use C++ exception handling.
7940 * tui/tui.c: Use C++ exception handling.
7941 * tracefile-tfile.c: Use C++ exception handling.
7942 * top.c: Use C++ exception handling.
7943 * thread.c: Use C++ exception handling.
7944 * target.c: Use C++ exception handling.
7945 * symmisc.c: Use C++ exception handling.
7946 * symfile-mem.c: Use C++ exception handling.
7947 * stack.c: Use C++ exception handling.
7948 * sparc64-linux-tdep.c: Use C++ exception handling.
7949 * solib.c: Use C++ exception handling.
7950 * solib-svr4.c: Use C++ exception handling.
7951 * solib-spu.c: Use C++ exception handling.
7952 * solib-frv.c: Use C++ exception handling.
7953 * solib-dsbt.c: Use C++ exception handling.
7954 * selftest-arch.c: Use C++ exception handling.
7955 * s390-tdep.c: Use C++ exception handling.
7956 * rust-lang.c: Use C++ exception handling.
7957 * rust-exp.y: Use C++ exception handling.
7958 * rs6000-tdep.c: Use C++ exception handling.
7959 * rs6000-aix-tdep.c: Use C++ exception handling.
7960 * riscv-tdep.c: Use C++ exception handling.
7961 * remote.c: Use C++ exception handling.
7962 * remote-fileio.c: Use C++ exception handling.
7963 * record-full.c: Use C++ exception handling.
7964 * record-btrace.c: Use C++ exception handling.
7965 * python/python.c: Use C++ exception handling.
7966 * python/py-value.c: Use C++ exception handling.
7967 * python/py-utils.c: Use C++ exception handling.
7968 * python/py-unwind.c: Use C++ exception handling.
7969 * python/py-type.c: Use C++ exception handling.
7970 * python/py-symbol.c: Use C++ exception handling.
7971 * python/py-record.c: Use C++ exception handling.
7972 * python/py-record-btrace.c: Use C++ exception handling.
7973 * python/py-progspace.c: Use C++ exception handling.
7974 * python/py-prettyprint.c: Use C++ exception handling.
7975 * python/py-param.c: Use C++ exception handling.
7976 * python/py-objfile.c: Use C++ exception handling.
7977 * python/py-linetable.c: Use C++ exception handling.
7978 * python/py-lazy-string.c: Use C++ exception handling.
7979 * python/py-infthread.c: Use C++ exception handling.
7980 * python/py-inferior.c: Use C++ exception handling.
7981 * python/py-gdb-readline.c: Use C++ exception handling.
7982 * python/py-framefilter.c: Use C++ exception handling.
7983 * python/py-frame.c: Use C++ exception handling.
7984 * python/py-finishbreakpoint.c: Use C++ exception handling.
7985 * python/py-cmd.c: Use C++ exception handling.
7986 * python/py-breakpoint.c: Use C++ exception handling.
7987 * python/py-arch.c: Use C++ exception handling.
7988 * printcmd.c: Use C++ exception handling.
7989 * ppc-linux-tdep.c: Use C++ exception handling.
7990 * parse.c: Use C++ exception handling.
7991 * p-valprint.c: Use C++ exception handling.
7992 * objc-lang.c: Use C++ exception handling.
7993 * mi/mi-main.c: Use C++ exception handling.
7994 * mi/mi-interp.c: Use C++ exception handling.
7995 * mi/mi-cmd-stack.c: Use C++ exception handling.
7996 * mi/mi-cmd-break.c: Use C++ exception handling.
7997 * main.c: Use C++ exception handling.
7998 * linux-thread-db.c: Use C++ exception handling.
7999 * linux-tdep.c: Use C++ exception handling.
8000 * linux-nat.c: Use C++ exception handling.
8001 * linux-fork.c: Use C++ exception handling.
8002 * linespec.c: Use C++ exception handling.
8003 * language.c: Use C++ exception handling.
8004 * jit.c: Use C++ exception handling.
8005 * infrun.c: Use C++ exception handling.
8006 * infcmd.c: Use C++ exception handling.
8007 * infcall.c: Use C++ exception handling.
8008 * inf-loop.c: Use C++ exception handling.
8009 * i386-tdep.c: Use C++ exception handling.
8010 * i386-linux-tdep.c: Use C++ exception handling.
8011 * guile/scm-value.c: Use C++ exception handling.
8012 * guile/scm-type.c: Use C++ exception handling.
8013 * guile/scm-symtab.c: Use C++ exception handling.
8014 * guile/scm-symbol.c: Use C++ exception handling.
8015 * guile/scm-pretty-print.c: Use C++ exception handling.
8016 * guile/scm-ports.c: Use C++ exception handling.
8017 * guile/scm-param.c: Use C++ exception handling.
8018 * guile/scm-math.c: Use C++ exception handling.
8019 * guile/scm-lazy-string.c: Use C++ exception handling.
8020 * guile/scm-frame.c: Use C++ exception handling.
8021 * guile/scm-disasm.c: Use C++ exception handling.
8022 * guile/scm-cmd.c: Use C++ exception handling.
8023 * guile/scm-breakpoint.c: Use C++ exception handling.
8024 * guile/scm-block.c: Use C++ exception handling.
8025 * guile/guile-internal.h: Use C++ exception handling.
8026 * gnu-v3-abi.c: Use C++ exception handling.
8027 * gdbtypes.c: Use C++ exception handling.
8028 * frame.c: Use C++ exception handling.
8029 * frame-unwind.c: Use C++ exception handling.
8030 * fbsd-tdep.c: Use C++ exception handling.
8031 * f-valprint.c: Use C++ exception handling.
8032 * exec.c: Use C++ exception handling.
8033 * event-top.c: Use C++ exception handling.
8034 * event-loop.c: Use C++ exception handling.
8035 * eval.c: Use C++ exception handling.
8036 * dwarf2read.c: Use C++ exception handling.
8037 * dwarf2loc.c: Use C++ exception handling.
8038 * dwarf2-frame.c: Use C++ exception handling.
8039 * dwarf2-frame-tailcall.c: Use C++ exception handling.
8040 * dwarf-index-write.c: Use C++ exception handling.
8041 * dwarf-index-cache.c: Use C++ exception handling.
8042 * dtrace-probe.c: Use C++ exception handling.
8043 * disasm-selftests.c: Use C++ exception handling.
8044 * darwin-nat.c: Use C++ exception handling.
8045 * cp-valprint.c: Use C++ exception handling.
8046 * cp-support.c: Use C++ exception handling.
8047 * cp-abi.c: Use C++ exception handling.
8048 * corelow.c: Use C++ exception handling.
8049 * completer.c: Use C++ exception handling.
8050 * compile/compile-object-run.c: Use C++ exception handling.
8051 * compile/compile-object-load.c: Use C++ exception handling.
8052 * compile/compile-cplus-symbols.c: Use C++ exception handling.
8053 * compile/compile-c-symbols.c: Use C++ exception handling.
8054 * common/selftest.c: Use C++ exception handling.
8055 * common/new-op.c: Use C++ exception handling.
8056 * cli/cli-script.c: Use C++ exception handling.
8057 * cli/cli-interp.c: Use C++ exception handling.
8058 * cli/cli-cmds.c: Use C++ exception handling.
8059 * c-varobj.c: Use C++ exception handling.
8060 * btrace.c: Use C++ exception handling.
8061 * breakpoint.c: Use C++ exception handling.
8062 * break-catch-throw.c: Use C++ exception handling.
8063 * arch-utils.c: Use C++ exception handling.
8064 * amd64-tdep.c: Use C++ exception handling.
8065 * ada-valprint.c: Use C++ exception handling.
8066 * ada-typeprint.c: Use C++ exception handling.
8067 * ada-lang.c: Use C++ exception handling.
8068 * aarch64-tdep.c: Use C++ exception handling.
8070 2019-04-08 Tom Tromey <tom@tromey.com>
8072 * xml-support.c (gdb_xml_parser::parse): Update.
8073 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
8074 * value.c (show_convenience): Update.
8075 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
8076 (test_parse_flags_qcs): Update.
8077 * thread.c (thr_try_catch_cmd): Update.
8078 * target.c (target_translate_tls_address): Update.
8079 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
8080 (info_frame_command_core, frame_apply_command_count): Update.
8081 * rust-exp.y (rust_lex_exception_test): Update.
8082 * riscv-tdep.c (riscv_print_one_register_info): Update.
8083 * remote.c (remote_target::enable_btrace): Update.
8084 * record-btrace.c (record_btrace_enable_warn): Update.
8085 * python/py-utils.c (gdbpy_convert_exception): Update.
8086 * printcmd.c (do_one_display, print_variable_and_value): Update.
8087 * mi/mi-main.c (mi_print_exception): Update.
8088 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
8089 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
8090 * linux-nat.c (linux_nat_target::attach): Update.
8091 * linux-fork.c (class scoped_switch_fork_info): Update.
8092 * infrun.c (displaced_step_prepare): Update.
8093 * infcall.c (call_function_by_hand_dummy): Update.
8094 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
8095 * gnu-v3-abi.c (print_one_vtable): Update.
8096 * frame.c (get_prev_frame_always): Update.
8097 * f-valprint.c (info_common_command_for_block): Update.
8098 * exec.c (try_open_exec_file): Update.
8099 * exceptions.c (print_exception, exception_print)
8100 (exception_fprintf, exception_print_same): Update.
8101 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
8102 * dwarf-index-cache.c (index_cache::store)
8103 (index_cache::lookup_gdb_index): Update.
8104 * darwin-nat.c (maybe_cache_shell): Update.
8105 * cp-valprint.c (cp_print_value_fields): Update.
8106 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
8107 (gcc_cplus_symbol_address): Update.
8108 * compile/compile-c-symbols.c (gcc_convert_symbol)
8109 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
8110 * common/selftest.c: Update.
8111 * common/common-exceptions.h (struct gdb_exception) <message>: Now
8113 (exception_try_scope_entry, exception_try_scope_exit): Don't
8115 (struct exception_try_scope): Remove.
8116 (TRY): Don't use exception_try_scope.
8117 (struct gdb_exception): Add constructor, operator=.
8119 (struct gdb_exception_RETURN_MASK_ALL)
8120 (struct gdb_exception_RETURN_MASK_ERROR)
8121 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
8122 (struct gdb_quit_bad_alloc): Update.
8123 * common/common-exceptions.c (exception_none): Change
8125 (struct catcher) <state, exception>: Initialize inline.
8126 <prev>: Remove member.
8127 (current_catcher): Remove.
8128 (catchers): New global.
8129 (exceptions_state_mc_init): Simplify.
8130 (catcher_pop): Remove.
8131 (exceptions_state_mc, exceptions_state_mc_catch): Update.
8132 (try_scope_depth, exception_try_scope_entry)
8133 (exception_try_scope_exit): Remove.
8134 (throw_exception_sjlj): Update.
8135 (exception_messages, exception_messages_size): Remove.
8136 (throw_it): Simplify.
8137 (gdb_exception_sliced_copy): Remove.
8138 (throw_exception_cxx): Update.
8139 * cli/cli-script.c (script_from_file): Update.
8140 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
8142 * ada-valprint.c (ada_val_print): Update.
8143 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
8144 (create_excep_cond_exprs): Update.
8146 2019-04-08 Tom Tromey <tom@tromey.com>
8148 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
8149 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
8150 (TRY, CATCH, END_CATCH): Remove some definitions.
8151 * common/common-exceptions.c: Don't use GDB_XCPT.
8152 (catcher_list_size): Remove.
8153 (throw_exception, throw_it): Simplify.
8155 2019-04-05 Tom Tromey <tom@tromey.com>
8157 Revert the header-sorting patch.
8158 * ft32-tdep.c: Revert.
8159 * frv-tdep.c: Revert.
8160 * frv-linux-tdep.c: Revert.
8162 * frame-unwind.c: Revert.
8163 * frame-base.c: Revert.
8164 * fork-child.c: Revert.
8165 * findvar.c: Revert.
8166 * findcmd.c: Revert.
8167 * filesystem.c: Revert.
8168 * filename-seen-cache.h: Revert.
8169 * filename-seen-cache.c: Revert.
8170 * fbsd-tdep.c: Revert.
8171 * fbsd-nat.h: Revert.
8172 * fbsd-nat.c: Revert.
8173 * f-valprint.c: Revert.
8174 * f-typeprint.c: Revert.
8176 * extension.h: Revert.
8177 * extension.c: Revert.
8178 * extension-priv.h: Revert.
8179 * expprint.c: Revert.
8182 * exceptions.c: Revert.
8183 * event-top.c: Revert.
8184 * event-loop.c: Revert.
8186 * elfread.c: Revert.
8187 * dwarf2read.h: Revert.
8188 * dwarf2read.c: Revert.
8189 * dwarf2loc.c: Revert.
8190 * dwarf2expr.h: Revert.
8191 * dwarf2expr.c: Revert.
8192 * dwarf2-frame.c: Revert.
8193 * dwarf2-frame-tailcall.c: Revert.
8194 * dwarf-index-write.h: Revert.
8195 * dwarf-index-write.c: Revert.
8196 * dwarf-index-common.c: Revert.
8197 * dwarf-index-cache.h: Revert.
8198 * dwarf-index-cache.c: Revert.
8199 * dummy-frame.c: Revert.
8200 * dtrace-probe.c: Revert.
8203 * disasm-selftests.c: Revert.
8204 * dictionary.c: Revert.
8205 * dicos-tdep.c: Revert.
8206 * demangle.c: Revert.
8209 * darwin-nat.h: Revert.
8210 * darwin-nat.c: Revert.
8211 * darwin-nat-info.c: Revert.
8212 * d-valprint.c: Revert.
8213 * d-namespace.c: Revert.
8216 * csky-tdep.c: Revert.
8217 * csky-linux-tdep.c: Revert.
8218 * cris-tdep.c: Revert.
8219 * cris-linux-tdep.c: Revert.
8220 * cp-valprint.c: Revert.
8221 * cp-support.c: Revert.
8222 * cp-namespace.c: Revert.
8224 * corelow.c: Revert.
8225 * corefile.c: Revert.
8226 * continuations.c: Revert.
8227 * completer.h: Revert.
8228 * completer.c: Revert.
8229 * complaints.c: Revert.
8230 * coffread.c: Revert.
8231 * coff-pe-read.c: Revert.
8232 * cli-out.h: Revert.
8233 * cli-out.c: Revert.
8234 * charset.c: Revert.
8235 * c-varobj.c: Revert.
8236 * c-valprint.c: Revert.
8237 * c-typeprint.c: Revert.
8239 * buildsym.c: Revert.
8240 * buildsym-legacy.c: Revert.
8241 * build-id.h: Revert.
8242 * build-id.c: Revert.
8244 * bsd-uthread.c: Revert.
8245 * breakpoint.h: Revert.
8246 * breakpoint.c: Revert.
8247 * break-catch-throw.c: Revert.
8248 * break-catch-syscall.c: Revert.
8249 * break-catch-sig.c: Revert.
8250 * blockframe.c: Revert.
8252 * bfin-tdep.c: Revert.
8253 * bfin-linux-tdep.c: Revert.
8254 * bfd-target.c: Revert.
8256 * ax-general.c: Revert.
8259 * avr-tdep.c: Revert.
8261 * auto-load.c: Revert.
8262 * arm-wince-tdep.c: Revert.
8263 * arm-tdep.c: Revert.
8264 * arm-symbian-tdep.c: Revert.
8265 * arm-pikeos-tdep.c: Revert.
8266 * arm-obsd-tdep.c: Revert.
8267 * arm-nbsd-tdep.c: Revert.
8268 * arm-nbsd-nat.c: Revert.
8269 * arm-linux-tdep.c: Revert.
8270 * arm-linux-nat.c: Revert.
8271 * arm-fbsd-tdep.c: Revert.
8272 * arm-fbsd-nat.c: Revert.
8273 * arm-bsd-tdep.c: Revert.
8274 * arch-utils.c: Revert.
8275 * arc-tdep.c: Revert.
8276 * arc-newlib-tdep.c: Revert.
8277 * annotate.h: Revert.
8278 * annotate.c: Revert.
8279 * amd64-windows-tdep.c: Revert.
8280 * amd64-windows-nat.c: Revert.
8281 * amd64-tdep.c: Revert.
8282 * amd64-sol2-tdep.c: Revert.
8283 * amd64-obsd-tdep.c: Revert.
8284 * amd64-obsd-nat.c: Revert.
8285 * amd64-nbsd-tdep.c: Revert.
8286 * amd64-nbsd-nat.c: Revert.
8287 * amd64-nat.c: Revert.
8288 * amd64-linux-tdep.c: Revert.
8289 * amd64-linux-nat.c: Revert.
8290 * amd64-fbsd-tdep.c: Revert.
8291 * amd64-fbsd-nat.c: Revert.
8292 * amd64-dicos-tdep.c: Revert.
8293 * amd64-darwin-tdep.c: Revert.
8294 * amd64-bsd-nat.c: Revert.
8295 * alpha-tdep.c: Revert.
8296 * alpha-obsd-tdep.c: Revert.
8297 * alpha-nbsd-tdep.c: Revert.
8298 * alpha-mdebug-tdep.c: Revert.
8299 * alpha-linux-tdep.c: Revert.
8300 * alpha-linux-nat.c: Revert.
8301 * alpha-bsd-tdep.c: Revert.
8302 * alpha-bsd-nat.c: Revert.
8303 * aix-thread.c: Revert.
8305 * addrmap.c: Revert.
8306 * ada-varobj.c: Revert.
8307 * ada-valprint.c: Revert.
8308 * ada-typeprint.c: Revert.
8309 * ada-tasks.c: Revert.
8310 * ada-lang.c: Revert.
8311 * aarch64-tdep.c: Revert.
8312 * aarch64-ravenscar-thread.c: Revert.
8313 * aarch64-newlib-tdep.c: Revert.
8314 * aarch64-linux-tdep.c: Revert.
8315 * aarch64-linux-nat.c: Revert.
8316 * aarch64-fbsd-tdep.c: Revert.
8317 * aarch64-fbsd-nat.c: Revert.
8318 * aarch32-linux-nat.c: Revert.
8320 2019-04-05 Tom Tromey <tom@tromey.com>
8322 * ft32-tdep.c: Sort headers.
8323 * frv-tdep.c: Sort headers.
8324 * frv-linux-tdep.c: Sort headers.
8325 * frame.c: Sort headers.
8326 * frame-unwind.c: Sort headers.
8327 * frame-base.c: Sort headers.
8328 * fork-child.c: Sort headers.
8329 * findvar.c: Sort headers.
8330 * findcmd.c: Sort headers.
8331 * filesystem.c: Sort headers.
8332 * filename-seen-cache.h: Sort headers.
8333 * filename-seen-cache.c: Sort headers.
8334 * fbsd-tdep.c: Sort headers.
8335 * fbsd-nat.h: Sort headers.
8336 * fbsd-nat.c: Sort headers.
8337 * f-valprint.c: Sort headers.
8338 * f-typeprint.c: Sort headers.
8339 * f-lang.c: Sort headers.
8340 * extension.h: Sort headers.
8341 * extension.c: Sort headers.
8342 * extension-priv.h: Sort headers.
8343 * expprint.c: Sort headers.
8344 * exec.h: Sort headers.
8345 * exec.c: Sort headers.
8346 * exceptions.c: Sort headers.
8347 * event-top.c: Sort headers.
8348 * event-loop.c: Sort headers.
8349 * eval.c: Sort headers.
8350 * elfread.c: Sort headers.
8351 * dwarf2read.h: Sort headers.
8352 * dwarf2read.c: Sort headers.
8353 * dwarf2loc.c: Sort headers.
8354 * dwarf2expr.h: Sort headers.
8355 * dwarf2expr.c: Sort headers.
8356 * dwarf2-frame.c: Sort headers.
8357 * dwarf2-frame-tailcall.c: Sort headers.
8358 * dwarf-index-write.h: Sort headers.
8359 * dwarf-index-write.c: Sort headers.
8360 * dwarf-index-common.c: Sort headers.
8361 * dwarf-index-cache.h: Sort headers.
8362 * dwarf-index-cache.c: Sort headers.
8363 * dummy-frame.c: Sort headers.
8364 * dtrace-probe.c: Sort headers.
8365 * disasm.h: Sort headers.
8366 * disasm.c: Sort headers.
8367 * disasm-selftests.c: Sort headers.
8368 * dictionary.c: Sort headers.
8369 * dicos-tdep.c: Sort headers.
8370 * demangle.c: Sort headers.
8371 * dcache.h: Sort headers.
8372 * dcache.c: Sort headers.
8373 * darwin-nat.h: Sort headers.
8374 * darwin-nat.c: Sort headers.
8375 * darwin-nat-info.c: Sort headers.
8376 * d-valprint.c: Sort headers.
8377 * d-namespace.c: Sort headers.
8378 * d-lang.c: Sort headers.
8379 * ctf.c: Sort headers.
8380 * csky-tdep.c: Sort headers.
8381 * csky-linux-tdep.c: Sort headers.
8382 * cris-tdep.c: Sort headers.
8383 * cris-linux-tdep.c: Sort headers.
8384 * cp-valprint.c: Sort headers.
8385 * cp-support.c: Sort headers.
8386 * cp-namespace.c: Sort headers.
8387 * cp-abi.c: Sort headers.
8388 * corelow.c: Sort headers.
8389 * corefile.c: Sort headers.
8390 * continuations.c: Sort headers.
8391 * completer.h: Sort headers.
8392 * completer.c: Sort headers.
8393 * complaints.c: Sort headers.
8394 * coffread.c: Sort headers.
8395 * coff-pe-read.c: Sort headers.
8396 * cli-out.h: Sort headers.
8397 * cli-out.c: Sort headers.
8398 * charset.c: Sort headers.
8399 * c-varobj.c: Sort headers.
8400 * c-valprint.c: Sort headers.
8401 * c-typeprint.c: Sort headers.
8402 * c-lang.c: Sort headers.
8403 * buildsym.c: Sort headers.
8404 * buildsym-legacy.c: Sort headers.
8405 * build-id.h: Sort headers.
8406 * build-id.c: Sort headers.
8407 * btrace.c: Sort headers.
8408 * bsd-uthread.c: Sort headers.
8409 * breakpoint.h: Sort headers.
8410 * breakpoint.c: Sort headers.
8411 * break-catch-throw.c: Sort headers.
8412 * break-catch-syscall.c: Sort headers.
8413 * break-catch-sig.c: Sort headers.
8414 * blockframe.c: Sort headers.
8415 * block.c: Sort headers.
8416 * bfin-tdep.c: Sort headers.
8417 * bfin-linux-tdep.c: Sort headers.
8418 * bfd-target.c: Sort headers.
8419 * bcache.c: Sort headers.
8420 * ax-general.c: Sort headers.
8421 * ax-gdb.h: Sort headers.
8422 * ax-gdb.c: Sort headers.
8423 * avr-tdep.c: Sort headers.
8424 * auxv.c: Sort headers.
8425 * auto-load.c: Sort headers.
8426 * arm-wince-tdep.c: Sort headers.
8427 * arm-tdep.c: Sort headers.
8428 * arm-symbian-tdep.c: Sort headers.
8429 * arm-pikeos-tdep.c: Sort headers.
8430 * arm-obsd-tdep.c: Sort headers.
8431 * arm-nbsd-tdep.c: Sort headers.
8432 * arm-nbsd-nat.c: Sort headers.
8433 * arm-linux-tdep.c: Sort headers.
8434 * arm-linux-nat.c: Sort headers.
8435 * arm-fbsd-tdep.c: Sort headers.
8436 * arm-fbsd-nat.c: Sort headers.
8437 * arm-bsd-tdep.c: Sort headers.
8438 * arch-utils.c: Sort headers.
8439 * arc-tdep.c: Sort headers.
8440 * arc-newlib-tdep.c: Sort headers.
8441 * annotate.h: Sort headers.
8442 * annotate.c: Sort headers.
8443 * amd64-windows-tdep.c: Sort headers.
8444 * amd64-windows-nat.c: Sort headers.
8445 * amd64-tdep.c: Sort headers.
8446 * amd64-sol2-tdep.c: Sort headers.
8447 * amd64-obsd-tdep.c: Sort headers.
8448 * amd64-obsd-nat.c: Sort headers.
8449 * amd64-nbsd-tdep.c: Sort headers.
8450 * amd64-nbsd-nat.c: Sort headers.
8451 * amd64-nat.c: Sort headers.
8452 * amd64-linux-tdep.c: Sort headers.
8453 * amd64-linux-nat.c: Sort headers.
8454 * amd64-fbsd-tdep.c: Sort headers.
8455 * amd64-fbsd-nat.c: Sort headers.
8456 * amd64-dicos-tdep.c: Sort headers.
8457 * amd64-darwin-tdep.c: Sort headers.
8458 * amd64-bsd-nat.c: Sort headers.
8459 * alpha-tdep.c: Sort headers.
8460 * alpha-obsd-tdep.c: Sort headers.
8461 * alpha-nbsd-tdep.c: Sort headers.
8462 * alpha-mdebug-tdep.c: Sort headers.
8463 * alpha-linux-tdep.c: Sort headers.
8464 * alpha-linux-nat.c: Sort headers.
8465 * alpha-bsd-tdep.c: Sort headers.
8466 * alpha-bsd-nat.c: Sort headers.
8467 * aix-thread.c: Sort headers.
8468 * agent.c: Sort headers.
8469 * addrmap.c: Sort headers.
8470 * ada-varobj.c: Sort headers.
8471 * ada-valprint.c: Sort headers.
8472 * ada-typeprint.c: Sort headers.
8473 * ada-tasks.c: Sort headers.
8474 * ada-lang.c: Sort headers.
8475 * aarch64-tdep.c: Sort headers.
8476 * aarch64-ravenscar-thread.c: Sort headers.
8477 * aarch64-newlib-tdep.c: Sort headers.
8478 * aarch64-linux-tdep.c: Sort headers.
8479 * aarch64-linux-nat.c: Sort headers.
8480 * aarch64-fbsd-tdep.c: Sort headers.
8481 * aarch64-fbsd-nat.c: Sort headers.
8482 * aarch32-linux-nat.c: Sort headers.
8484 2019-04-04 Tom Tromey <tom@tromey.com>
8486 * varobj.c (varobj_create): Update.
8487 * rust-exp.y (struct rust_parser) <update_innermost_block,
8488 lookup_symbol>: New methods.
8489 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
8491 (rust_parser::rust_lookup_type)
8492 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
8493 * printcmd.c (display_command, do_one_display): Update.
8494 * parser-defs.h (struct parser_state) <parser_state>: Add
8495 "tracker" parameter.
8496 (block_tracker): New member.
8497 (class innermost_block_tracker) <innermost_block_tracker>: Add
8499 <reset>: Remove method.
8500 (innermost_block): Don't declare.
8501 (null_post_parser): Update.
8502 * parse.c (innermost_block): Remove global.
8503 (write_dollar_variable): Update.
8504 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
8505 Remove "tracker_types" parameter.
8506 (parse_expression): Add "tracker" parameter.
8507 (parse_expression_for_completion): Update.
8508 (null_post_parser): Add "tracker" parameter.
8509 * p-exp.y: Update rules.
8510 * m2-exp.y: Update rules.
8511 * language.h (struct language_defn) <la_post_parser>: Add
8512 "tracker" parameter.
8513 * go-exp.y: Update rules.
8514 * f-exp.y: Update rules.
8515 * expression.h (parse_expression, parse_exp_1): Add "tracker"
8517 * d-exp.y: Update rules.
8518 * c-exp.y: Update rules.
8519 * breakpoint.c (set_breakpoint_condition): Create an
8520 innermost_block_tracker.
8521 (watch_command_1): Likewise.
8522 * ada-lang.c (resolve): Add "tracker" parameter.
8523 (resolve_subexp): Likewise.
8524 * ada-exp.y (write_var_from_sym): Update.
8526 2019-04-04 Tom Tromey <tom@tromey.com>
8528 * type-stack.h: New file.
8529 * type-stack.c: New file.
8530 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
8532 (insert_into_type_stack, insert_type, push_type, push_type_int)
8533 (insert_type_address_space, pop_type, pop_type_int)
8534 (pop_typelist, pop_type_stack, append_type_stack)
8535 (push_type_stack, get_type_stack, push_typelist)
8536 (follow_type_instance_flags, follow_types): Don't declare.
8537 * parse.c (type_stack): Remove global.
8538 (parse_exp_in_context): Update.
8539 (insert_into_type_stack, insert_type, push_type, push_type_int)
8540 (insert_type_address_space, pop_type, pop_type_int)
8541 (pop_typelist, pop_type_stack, append_type_stack)
8542 (push_type_stack, get_type_stack, push_typelist)
8543 (follow_type_instance_flags, follow_types): Remove (moved to
8545 * f-exp.y (type_stack): New global.
8547 (push_kind_type, f_parse): Update.
8548 * d-exp.y (type_stack): New global.
8551 * c-exp.y (struct c_parse_state) <type_stack>: New member.
8553 * Makefile.in (COMMON_SFILES): Add type-stack.c.
8554 (HFILES_NO_SRCDIR): Add type-stack.h.
8556 2019-04-04 Tom Tromey <tom@tromey.com>
8558 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
8559 (rust_parser::convert_ast_to_expression, rust_parse)
8560 (rust_lex_test_completion, rust_lex_tests): Update.
8561 * parser-defs.h (struct expr_completion_state): New.
8562 (struct parser_state) <parser_state>: Add completion parameter.
8563 <mark_struct_expression, mark_completion_tag>: New methods.
8564 <parse_completion, m_completion_state>: New members.
8565 (prefixify_expression, null_post_parser): Update.
8566 (mark_struct_expression, mark_completion_tag): Don't declare.
8567 * parse.c (parse_completion, expout_last_struct)
8568 (expout_tag_completion_type, expout_completion_name): Remove
8570 (parser_state::mark_struct_expression)
8571 (parser_state::mark_completion_tag): Now methods.
8572 (prefixify_expression): Add last_struct parameter.
8573 (prefixify_subexp): Likewise.
8574 (parse_exp_1): Update.
8575 (parse_exp_in_context): Add cstate parameter. Update.
8576 (parse_expression_for_completion): Create an
8577 expr_completion_state.
8578 (null_post_parser): Add "completion" parameter.
8579 * p-exp.y: Update rules.
8581 * language.h (struct language_defn) <la_post_parser>: Add
8582 "completing" parameter.
8583 * go-exp.y: Update rules.
8584 (lex_one_token): Update.
8585 * expression.h (parse_completion): Don't declare.
8586 * d-exp.y: Update rules.
8587 (lex_one_token): Update rules.
8588 * c-exp.y: Update rules.
8589 (lex_one_token): Update.
8590 * ada-lang.c (resolve): Add "parse_completion" parameter.
8591 (resolve_subexp): Likewise.
8592 (ada_resolve_function): Likewise.
8594 2019-04-04 Tom Tromey <tom@tromey.com>
8596 * parser-defs.h (struct parser_state) <start_arglist,
8597 end_arglist>: New methods.
8598 <arglist_len, m_funcall_chain>: New members.
8599 (arglist_len, start_arglist, end_arglist): Don't declare.
8600 * parse.c (arglist_len, funcall_chain): Remove global.
8601 (start_arglist, end_arglist): Remove functions.
8602 (parse_exp_in_context): Update.
8603 * p-exp.y: Update rules.
8604 * m2-exp.y: Update rules.
8605 * go-exp.y: Update rules.
8606 * f-exp.y: Update rules.
8607 * d-exp.y: Update rules.
8608 * c-exp.y: Update rules.
8610 2019-04-04 Tom Tromey <tom@tromey.com>
8612 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
8613 lex_operator, push_back>: New methods.
8615 (rust_parser::lex_hex, lex_escape): Rename and update.
8616 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
8617 (rust_parser::lex_operator): Rename and update.
8618 (rust_parser::lex_number, rustyylex, rustyyerror)
8619 (rust_lex_test_init, rust_lex_test_sequence)
8620 (rust_lex_test_push_back, rust_lex_tests): Update.
8621 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
8623 <lexptr, prev_lexptr>: New members.
8624 (lexptr, prev_lexptr): Don't declare.
8625 * parse.c (lexptr, prev_lexptr): Remove globals.
8626 (parse_exp_in_context): Update.
8627 * p-exp.y (yylex, yyerror): Update.
8628 * m2-exp.y (parse_number, yylex, yyerror): Update.
8629 * go-exp.y (lex_one_token, yyerror): Update.
8630 * f-exp.y (match_string_literal, yylex, yyerror): Update.
8631 * d-exp.y (lex_one_token, yyerror): Update.
8632 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
8633 (lex_one_token, yyerror): Update.
8634 * ada-lex.l (YY_INPUT): Update.
8635 (rewind_to_char): Update.
8636 * ada-exp.y (yyerror): Update.
8638 2019-04-04 Tom Tromey <tom@tromey.com>
8640 * rust-exp.y (rustyylex, rust_lex_tests): Update.
8641 * parser-defs.h (struct parser_state) <parser_state>: Add new
8643 <comma_terminates>: New member.
8644 (comma_terminates): Don't declare global.
8645 * parse.c (comma_terminates): Remove global.
8646 (parse_exp_in_context): Update.
8647 * p-exp.y (yylex): Update.
8648 * m2-exp.y (yylex): Update.
8649 * go-exp.y (lex_one_token): Update.
8650 * f-exp.y (yylex): Update.
8651 * d-exp.y (lex_one_token): Update.
8652 * c-exp.y (lex_one_token): Update.
8653 * ada-lex.l: Update.
8655 2019-04-04 Tom Tromey <tom@tromey.com>
8657 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
8658 (rustyylex, rust_lex_test_init, rust_lex_test_one)
8659 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
8660 * parser-defs.h (paren_depth): Don't declare.
8661 * parse.c (paren_depth): Remove global.
8662 (parse_exp_in_context): Update.
8663 * p-exp.y (paren_depth): New global.
8664 (pascal_parse): Initialize it.
8665 * m2-exp.y (paren_depth): New global.
8666 (m2_parse): Initialize it.
8667 * go-exp.y (paren_depth): New global.
8668 (go_parse): Initialize it.
8669 * f-exp.y (paren_depth): New global.
8670 (f_parse): Initialize it.
8671 * d-exp.y (paren_depth): New global.
8672 (d_parse): Initialize it.
8673 * c-exp.y (paren_depth): New global.
8674 (c_parse): Initialize it.
8675 * ada-lex.l (paren_depth): New global.
8676 (lexer_init): Initialize it.
8678 2019-04-04 Tom Tromey <tom@tromey.com>
8680 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
8681 (rust_parser::convert_ast_to_type)
8682 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
8683 * parser-defs.h (struct parser_state) <parser_state>: Add
8684 parameters. Initialize new members.
8685 <expression_context_block, expression_context_pc>: New members.
8686 * parse.c (expression_context_block, expression_context_pc):
8688 (parse_exp_in_context): Update.
8689 * p-exp.y: Update all rules.
8691 * m2-exp.y: Update all rules.
8693 * go-exp.y (yylex): Update.
8694 * f-exp.y (yylex): Update.
8695 * d-exp.y: Update all rules.
8697 * c-exp.y: Update all rules.
8698 (lex_one_token, classify_name, yylex, c_parse): Update.
8699 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
8701 2019-04-04 Tom Tromey <tom@tromey.com>
8703 * gdbarch.h, gdbarch.c: Rebuild.
8704 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
8706 (struct stap_parse_info): Replace "parser_state" with
8708 * parser-defs.h (struct expr_builder): Rename from "parser_state".
8709 (parser_state): New class.
8710 * parse.c (expr_builder): Rename.
8711 (expr_builder::release): Rename.
8712 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
8713 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
8714 (write_exp_elt_longcst, write_exp_elt_floatcst)
8715 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
8716 (write_exp_string_vector, write_exp_bitstring)
8717 (write_exp_msymbol, mark_struct_expression)
8718 (write_dollar_variable)
8719 (insert_type_address_space, increase_expout_size): Replace
8720 "parser_state" with "expr_builder".
8721 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
8722 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
8723 "parser_state" with "expr_builder".
8725 2019-04-04 Tom Tromey <tom@tromey.com>
8727 * rust-exp.y: Replace "parse_language" with method call.
8729 (yylex): Replace "parse_language" with method call.
8731 (yylex): Replace "parse_language" with method call.
8732 * go-exp.y (classify_name): Replace "parse_language" with method
8734 * f-exp.y (yylex): Replace "parse_language" with method call.
8735 * d-exp.y (lex_one_token): Replace "parse_language" with method
8738 (lex_one_token, classify_name, yylex): Replace "parse_language"
8740 * ada-exp.y (find_primitive_type, type_char)
8741 (type_system_address): Replace "parse_language" with method call.
8743 2019-04-04 Tom Tromey <tom@tromey.com>
8745 * rust-exp.y: Replace "parse_gdbarch" with method call.
8746 * parse.c (write_dollar_variable, insert_type_address_space):
8747 Replace "parse_gdbarch" with method call.
8748 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
8750 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
8752 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
8753 "parse_gdbarch" with method call.
8754 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
8756 * f-exp.y (parse_type, parse_f_type, yylex): Replace
8757 "parse_gdbarch" with method call.
8758 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
8759 "parse_gdbarch" with method call.
8760 * c-exp.y (parse_type, parse_number, classify_name): Replace
8761 "parse_gdbarch" with method call.
8762 * ada-lex.l: Replace "parse_gdbarch" with method call.
8763 * ada-exp.y (parse_type, find_primitive_type, type_char)
8764 (type_system_address): Replace "parse_gdbarch" with method call.
8766 2019-04-04 Tom Tromey <tom@tromey.com>
8768 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
8769 * stap-probe.c (stap_parse_argument): Update.
8770 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
8771 initial_size parameter.
8772 * rust-exp.y (rust_lex_tests): Update.
8773 * parse.c (parser_state): Update.
8774 (parse_exp_in_context): Update.
8775 * parser-defs.h (struct parser_state) <parser_state>: Remove
8776 "initial_size" parameter.
8778 2019-04-04 Tom Tromey <tom@tromey.com>
8780 * parser-defs.h (increase_expout_size): Don't declare.
8781 * parse.c (increase_expout_size): Now static.
8783 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
8785 * gnu-nat.c (gnu_nat_target::wait): Fix
8786 target_waitstatus_to_string call.
8788 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8790 * eval.c (evaluate_subexp_standard): Handle internal functions
8791 during Fortran function call handling.
8793 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8795 * NEWS: Mention new internal functions.
8796 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
8797 (read_base_type): Use dwarf2_init_complex_target_type.
8798 * value.c (creal_internal_fn): New function.
8799 (cimag_internal_fn): New function.
8800 (_initialize_values): Register new internal functions.
8802 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8804 * infrun.c (stop_all_threads): If debug_infrun, always
8805 trace the wait status after wait_one, using
8806 target_waitstatus_to_string and target_pid_to_str.
8807 (handle_inferior_event): Replace various trace of
8808 wait status kind by a single trace.
8809 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
8810 wait status kind image by target_waitstatus_to_string.
8811 * target/waitstatus.c (target_waitstatus_to_string): Fix
8814 2019-04-01 Tom Tromey <tromey@adacore.com>
8817 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
8819 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
8820 Pedro Alves <palves@redhat.com>
8822 * top.c (quit_force): Call 'finalize_values'.
8823 * value.c (finalize_values): New function.
8824 * value.h (finalize_values): Declare.
8826 2019-03-30 Eli Zaretskii <eliz@gnu.org>
8828 * NEWS: Announce $_gdb_major and $_gdb_minor.
8830 * top.c (init_gdb_version_vars): New function.
8831 (gdb_init): Call init_gdb_version_vars.
8833 2019-03-29 Tom Tromey <tromey@adacore.com>
8835 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
8836 help text. Remove dead code.
8838 2019-03-29 Keith Seitz <keiths@redhat.com>
8840 From Siddhesh Poyarekar:
8841 * f-lang.h (f77_get_upperbound): Return LONGEST.
8842 (f77_get_lowerbound): Likewise.
8843 * f-typeprint.c (f_type_print_varspec_suffix): Expand
8844 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
8846 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
8847 plongest to format print it.
8848 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
8849 (f77_get_upperbound): Likewise.
8850 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
8851 LOWER_BOUND to LONGEST.
8852 (f77_create_arrayprint_offset_tbl): Likewise.
8854 2019-03-29 Keith Seitz <keiths@redhat.com>
8856 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
8857 %s/pulongest for TYPE_LENGTH instead of %d in format
8859 * ada-typerint.c (ada_print_type): Likewise.
8860 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
8861 * compile/compile-c-support.c (generate_register_struct): Likewise.
8862 * gdbtypes.c (recursive_dump_type): Likewise.
8863 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
8864 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
8865 instead of %d in format strings.
8866 * riscv-tdep.c (riscv_type_alignment): Cast second argument
8867 to std::min to ULONGEST.
8868 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
8869 instead of %d in format strings.
8870 * tracepoint.c (info_scope_command): Likewise.
8871 * typeprint.c (print_offset_data::update)
8872 (print_offset_data::finish): Likewise.
8873 * xtensa-tdep.c (xtensa_store_return_value)
8874 (xtensa_push_dummy_call): Likewise.
8876 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
8878 * windows-nat.c (display_selector): Fixed format specifications
8881 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8883 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
8885 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
8887 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
8888 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
8889 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
8890 (nios2_linux_init_abi): Install it.
8892 2019-03-28 Alan Hayward <alan.hayward@arm.com>
8894 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
8896 2019-03-28 Alan Hayward <alan.hayward@arm.com>
8898 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
8900 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8901 Tom Tromey <tromey@adacore.com>
8903 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
8905 2019-03-26 Joel Brobecker <brobecker@adacore.com>
8907 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
8908 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
8909 method to compute the bounds of range types. Also print "[evaluated]"
8910 if the bounds' values come from a dynamic evaluation.
8912 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
8914 * cp-valprint.c (cp_print_value_fields): Don't print trailing
8915 whitespace when pretty printing is on.
8917 2019-03-26 Alan Hayward <alan.hayward@arm.com>
8919 * ppc-linux-nat.c: Add include.
8921 2019-03-26 Alan Hayward <alan.hayward@arm.com>
8923 * NEWS: Mention AArch64 Pointer Authentication.
8925 2019-03-26 Alan Hayward <alan.hayward@arm.com>
8927 * arm-linux-nat.c: Add include.
8929 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
8931 * source-cache.c (source_cache::get_source_lines): Re-read
8932 fullname after calling open_source_file.
8934 2019-03-25 John Baldwin <jhb@FreeBSD.org>
8936 * NEWS: Mention TLS support for FreeBSD.
8938 2019-03-25 Tom Tromey <tromey@adacore.com>
8940 * minsyms.c (BUNCH_SIZE): Update comment.
8941 (~minimal_symbol_reader): Remove old comment.
8942 (compact_minimal_symbols): Update comment.
8943 (minimal_symbol_reader::install): Remove old comment. Update
8946 2019-03-25 Alan Hayward <alan.hayward@arm.com>
8948 * s390-linux-nat.c: Add include.
8950 2019-03-25 Alan Hayward <alan.hayward@arm.com>
8952 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
8953 Call linux_get_hwcap.
8954 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
8956 (aarch64_linux_get_hwcap): Remove function.
8957 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
8959 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
8961 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
8962 * linux-tdep.c (linux_get_hwcap): Add function.
8963 (linux_get_hwcap2): Likewise.
8964 * linux-tdep.h (linux_get_hwcap): Add declaration.
8965 (linux_get_hwcap2): Likewise.
8966 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
8967 (ppc_linux_get_hwcap2): Likewise.
8968 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
8970 (ppc_linux_nat_target::insert_watchpoint): Likewise.
8971 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
8972 (ppc_linux_nat_target::read_description): Likewise.
8973 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
8974 * s390-linux-nat.c: Likewise.
8975 * s390-linux-tdep.c (s390_core_read_description): Likewise.
8977 2019-03-24 Tom Tromey <tom@tromey.com>
8979 * ada-lang.c (standard_lookup): Simplify initialization.
8980 (ada_lookup_symbol_nonlocal): Simplify return.
8981 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
8982 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
8983 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
8984 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
8986 * solib.c (solib_global_lookup): Simplify.
8987 * symtab.c (null_block_symbol): Remove.
8988 (symbol_cache_lookup): Simplify returns.
8989 (lookup_language_this): Simplify returns.
8990 (lookup_symbol_aux): Simplify return.
8991 (lookup_local_symbol): Simplify returns.
8992 (lookup_global_symbol_from_objfile): Simplify return.
8993 (lookup_symbol_in_objfile_symtabs)
8994 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
8995 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
8996 (lookup_static_symbol, lookup_global_symbol): Simplify return.
8997 * cp-namespace.c (cp_lookup_bare_symbol)
8998 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
8999 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
9000 (cp_lookup_nested_symbol): Don't use null_block_symbol.
9001 (cp_lookup_symbol_via_imports): Simplify initialization.
9002 (find_symbol_in_baseclass): Likewise.
9003 * symtab.h (null_block_symbol): Remove.
9004 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
9005 (d_lookup_nested_symbol, d_lookup_symbol_imports)
9006 (d_lookup_symbol_module): Likewise.
9007 (find_symbol_in_baseclass): Simplify initialization.
9009 2019-03-24 Tom Tromey <tom@tromey.com>
9011 * expression.h: Don't include symtab.h.
9012 (struct block): Forward declare.
9014 2019-03-24 Tom Tromey <tom@tromey.com>
9016 * c-exp.y (typebase): Remove casts.
9017 * gdbtypes.c (lookup_unsigned_typename, )
9018 (lookup_signed_typename): Remove cast.
9019 * eval.c (parse_to_comma_and_eval): Remove cast.
9020 * parse.c (write_dollar_variable): Remove cast.
9021 * block.h (struct block) <superblock>: Now const.
9022 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
9023 * psymtab.c (psym_map_matching_symbols): Make "block" const.
9024 (map_block): Make "block" const.
9025 * symfile.h (struct quick_symbol_functions)
9026 <map_matching_symbols>: Constify block argument to "callback".
9027 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
9029 (find_pc_sect_compunit_symtab): Make "b" const.
9030 (find_symbol_at_address): Likewise.
9031 (search_symbols): Likewise.
9032 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
9033 (dw2_debug_names_lookup_symbol): Likewise.
9034 (dw2_map_matching_symbols): Update.
9035 * p-valprint.c (pascal_val_print): Remove "block".
9036 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
9037 (aux_add_nonlocal_symbols): Make "block" const.
9038 (resolve_subexp): Remove cast.
9039 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
9041 (iterate_over_file_blocks): Likewise.
9042 * f-exp.y (%union) <bval>: Remove.
9043 * coffread.c (patch_opaque_types): Make "b" const.
9044 * spu-tdep.c (spu_catch_start): Make "block" const.
9045 * c-valprint.c (print_unpacked_pointer): Remove "block".
9046 * symmisc.c (dump_symtab_1): Make "b" const.
9047 (block_depth): Make "block" const.
9048 * d-exp.y (%union) <bval>: Remove.
9049 * cp-support.h (cp_lookup_rtti_type): Update.
9050 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
9051 * psymtab.c (psym_lookup_symbol): Make "block" const.
9052 (maintenance_check_psymtabs): Make "b" const.
9053 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
9054 (enumerate_locals, enumerate_args): Update.
9055 * python/py-symtab.c (stpy_global_block): Make "block" const.
9056 (stpy_static_block): Likewise.
9057 * inline-frame.c (block_starting_point_at): Make "new_block"
9059 * block.c (find_block_in_blockvector): Make return type const.
9060 (blockvector_for_pc_sect): Make "b" const.
9061 (find_block_in_blockvector): Make "b" const.
9063 2019-03-23 Tom Tromey <tom@tromey.com>
9065 * varobj.c (varobj_create): Update.
9066 * symfile.c (clear_symtab_users): Don't reset innermost_block.
9067 * printcmd.c (display_command, do_one_display): Don't reset
9069 * parser-defs.h (enum innermost_block_tracker_type): Move to
9071 (innermost_block): Update comment.
9072 * parse.c (parse_exp_1): Add tracker_types parameter.
9073 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
9074 tracker_types parameter. Reset innermost_block.
9075 (parse_exp_in_context): Remove.
9076 (parse_expression_for_completion): Update.
9077 * objfiles.c (~objfile): Don't reset expression_context_block or
9079 * expression.h (enum innermost_block_tracker_type): Move from
9081 (parse_exp_1): Add tracker_types parameter.
9082 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
9083 reset innermost_block.
9085 2019-03-23 Tom Tromey <tom@tromey.com>
9087 * objfiles.h: Include bcache.h.
9089 2019-03-23 Tom Tromey <tom@tromey.com>
9091 * linespec.c (get_current_search_block): Use
9092 scoped_restore_current_language.
9093 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
9095 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9096 Jiong Wang <jiong.wang@arm.com>
9098 * aarch64-linux-tdep.c
9099 (aarch64_linux_iterate_over_regset_sections): Check for pauth
9101 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
9103 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9104 Jiong Wang <jiong.wang@arm.com>
9106 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
9108 (aarch64_analyze_prologue_test): Add PACIASP test.
9109 (aarch64_prologue_prev_register): Unmask PC value.
9111 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9112 Jiong Wang <jiong.wang@arm.com>
9114 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
9115 (aarch64_dwarf2_prev_register): Unmask PC value.
9116 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
9117 (aarch64_execute_dwarf_cfa_vendor_op): Check for
9118 DW_CFA_AARCH64_negate_ra_state.
9119 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
9121 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9122 Jiong Wang <jiong.wang@arm.com>
9124 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
9126 (aarch64_pseudo_register_name): Likewise.
9127 (aarch64_pseudo_register_type): Likewise.
9128 (aarch64_pseudo_register_reggroup_p): Likewise.
9129 (aarch64_gdbarch_init): Add pauth registers.
9130 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
9131 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
9132 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
9133 (struct gdbarch_tdep): Add regnum for ra_state.
9135 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9136 Jiong Wang <jiong.wang@arm.com>
9138 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
9140 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9141 Jiong Wang <jiong.wang@arm.com>
9143 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
9145 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
9146 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
9147 (aarch64_gdbarch_init): Add puth registers.
9148 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
9149 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
9150 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
9152 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9153 Jiong Wang <jiong.wang@arm.com>
9155 * aarch64-linux-nat.c
9156 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
9157 * aarch64-linux-tdep.c
9158 (aarch64_linux_core_read_description): Likewise.
9159 (aarch64_linux_get_hwcap): New function.
9160 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
9161 (aarch64_linux_get_hwcap): New declaration.
9163 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9164 Jiong Wang <jiong.wang@arm.com>
9166 * aarch64-linux-nat.c
9167 (aarch64_linux_nat_target::read_description): Add pauth param.
9168 * aarch64-linux-tdep.c
9169 (aarch64_linux_core_read_description): Likewise.
9170 * aarch64-tdep.c (struct target_desc): Add in pauth.
9171 (aarch64_read_description): Add pauth param.
9172 (aarch64_gdbarch_init): Likewise.
9173 * aarch64-tdep.h (aarch64_read_description): Likewise.
9174 * arch/aarch64.c (aarch64_create_target_description): Likewise.
9175 * arch/aarch64.h (aarch64_create_target_description): Likewise.
9176 * features/Makefile: Add new files.
9177 * features/aarch64-pauth.c: New file.
9178 * features/aarch64-pauth.xml: New file.
9180 2019-03-20 Tom Tromey <tromey@adacore.com>
9182 * infrun.c (handle_inferior_event): Rename from
9183 handle_inferior_event_1. Create a scoped_value_mark.
9184 (handle_inferior_event): Remove.
9186 2019-03-19 Tom Tromey <tromey@adacore.com>
9188 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
9189 * infrun.h (print_stop_event): Add "displays" parameter.
9190 * infrun.c (print_stop_event): Add "displays" parameter.
9192 2019-03-19 Pedro Alves <palves@redhat.com>
9194 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
9195 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
9196 to -1. Fix TABs vs spaces.
9197 (tui_ui_out::tui_ui_out): Don't initialize fields here.
9198 * tui/tui-out.h (tui_ui_out) Add intro comments.
9199 <m_line, m_start_of_line>: In-class initialize, and add describing
9202 2019-03-18 Alan Hayward <alan.hayward@arm.com>
9204 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
9206 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
9208 2019-03-18 Pedro Alves <palves@redhat.com>
9209 Eli Zaretskii <eliz@gnu.org>
9211 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
9212 m_line and m_start_of_line.
9214 2019-03-18 Eli Zaretskii <eliz@gnu.org>
9216 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
9217 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
9218 it returns a newline. This fixes a regression in TU mode, whereby
9219 the next line is output on the same screen line as the user input.
9221 2019-03-18 Tom Tromey <tromey@adacore.com>
9223 * minsyms.c (minimal_symbol_reader::install): Remove call to
9226 2019-03-18 Pedro Alves <palves@redhat.com>
9228 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
9230 (apply_style): New, factored out from ...
9231 (apply_ansi_escape): ... this. Handle reverse video mode.
9232 (tui_set_reverse_mode): New function.
9233 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
9234 * tui/tui-winsource.c (tui_show_source_line): Use
9235 tui_set_reverse_mode instead of setting A_STANDOUT.
9236 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
9239 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
9241 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
9244 2019-03-18 Tom Tromey <tromey@adacore.com>
9246 * ada-lang.c (empty_array): Add "high" parameter.
9247 (ada_evaluate_subexp): Update.
9249 2019-03-17 Sergei Trofimovich <siarheit@google.com>
9251 * unittests/string_view-selftests.c: Define
9252 _initialize_string_view_selftests unconditionally.
9254 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9257 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
9259 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9262 * windows-nat.c (display_selector): Fix format specifiers.
9264 2019-03-17 Eli Zaretskii <eliz@gnu.org>
9266 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
9267 tui_refill_source_window instead of tui_refresh_win, to update the
9268 current execution line. This fixes redisplay of the current line
9269 when stepping through the code with "next" or "step".
9271 2019-03-16 Eli Zaretskii <eliz@gnu.org>
9273 * source-cache.c (source_cache::get_source_lines): Call
9274 find_source_lines to initialize s->nlines. This fixes vertical
9275 scrolling of TUI source window when the DOWN arrow is pressed.
9277 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9279 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
9280 linux-thread-db.c (_initialize_thread_db): Likewise.
9282 2019-03-16 Eli Zaretskii <eliz@gnu.org>
9284 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
9285 wclrtoeol in tui_show_source_line". This reverts changes made in
9286 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
9288 2019-03-15 Tom Tromey <tom@tromey.com>
9290 * symtab.h (struct minimal_symbol): Derive from
9291 general_symbol_info.
9292 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
9293 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9294 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9295 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9296 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
9297 (MSYMBOL_SEARCH_NAME): Update.
9298 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
9299 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
9300 * minsyms.c (minimal_symbol_reader::record_full): Update.
9302 2019-03-15 Tom Tromey <tom@tromey.com>
9304 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
9306 2019-03-15 Tom Tromey <tom@tromey.com>
9308 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
9310 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
9312 * minsyms.c (lookup_minimal_symbol_by_pc_section)
9313 (build_minimal_symbol_hash_tables)
9314 (minimal_symbol_reader::install): Update.
9316 2019-03-15 Tom Tromey <tom@tromey.com>
9318 * symtab.c (create_demangled_names_hash): Update.
9319 (symbol_set_names): Update.
9320 * objfiles.h (struct objfile_per_bfd_storage)
9321 <demangled_names_hash>: Now an htab_up.
9322 * objfiles.c (objfile_per_bfd_storage): Simplify.
9324 2019-03-15 Tom Tromey <tom@tromey.com>
9326 * objfiles.h (struct objfile_per_bfd_storage): Declare
9328 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
9330 (get_objfile_bfd_data): Use new. Don't initialize
9332 (free_objfile_per_bfd_storage): Remove.
9333 (objfile_bfd_data_free, objfile::~objfile): Use delete.
9335 2019-03-15 Tom Tromey <tom@tromey.com>
9337 * symfile.c (reread_symbols): Update.
9338 * objfiles.c (objfile::objfile): Update.
9339 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
9340 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
9342 (minimal_symbol_reader::install): Update.
9343 (terminate_minimal_symbol_table): Remove.
9344 * jit.c (jit_object_close_impl): Update.
9346 2019-03-15 Tom Tromey <tom@tromey.com>
9348 * minsyms.c (minimal_symbol_reader::record_full): Remove some
9351 2019-03-15 Tom Tromey <tom@tromey.com>
9353 * objfiles.h (struct objfile_per_bfd_storage)
9354 <demangled_hash_languages>: Now a bitset.
9355 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
9356 (lookup_minimal_symbol): Update.
9358 2019-03-15 Tom Tromey <tom@tromey.com>
9360 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
9361 Don't return the symbol.
9362 * coffread.c (record_minimal_symbol): Use record_full.
9364 2019-03-14 Eli Zaretskii <eliz@gnu.org>
9366 The MS-Windows port of ncurses fails to switch to a color pair if
9367 one or both of the colors are the implicit default colors. This
9368 change records the default colors when TUI is initialized, and
9369 then specifies them explicitly when a color pair uses the default
9370 colors. This allows color styling in TUI mode on MS-Windows.
9372 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
9374 (tui_initialize_io) [__MINGW32__]: Record the default terminal
9375 colors in ncurses_norm_attr.
9376 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
9377 "none", replace it with the default color recorded in
9380 2019-03-14 Tom Tromey <tromey@adacore.com>
9382 * source-cache.h (class source_cache) <get_source_lines>: Return
9384 * source-cache.c (source_cache::extract_lines): Handle case where
9385 first_pos==npos. Return std::string.
9386 (source_cache::get_source_lines): Update.
9388 2019-03-14 Tom Tromey <tromey@adacore.com>
9390 * NEWS: Add item for "style sources" commands.
9391 * source-cache.c (source_cache::get_source_lines): Check
9393 * cli/cli-style.c (source_styling): New global.
9394 (_initialize_cli_style): Add "style sources" commands.
9395 (show_style_sources): New function.
9396 * cli/cli-style.h (source_styling): Declare.
9398 2019-03-14 Pedro Alves <palves@redhat.com>
9399 Tom Tromey <tromey@adacore.com>
9401 * tui/tui-winsource.h (tui_refill_source_window): Declare.
9402 * tui/tui-winsource.c (tui_refill_source_window): New function,
9404 (tui_horizontal_source_scroll): ... here. Move some logic.
9405 * cli/cli-style.c (set_style_enabled): Notify new observable.
9406 * tui/tui-hooks.c (tui_redisplay_source): New function.
9407 (tui_attach_detach_observers): Attach or detach
9408 tui_redisplay_source.
9409 * observable.h (source_styling_changed): New observable.
9410 * observable.c: Define source_styling_changed observable.
9412 2019-03-13 Tom Tromey <tromey@adacore.com>
9414 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
9415 (i386_gnu_nat_target::store_registers): Update.
9416 * target-debug.h (target_debug_print_std_string): New macro.
9417 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
9418 * windows-tdep.c (display_one_tib): Update.
9419 * tui/tui-stack.c (tui_make_status_line): Update.
9420 * top.c (print_inferior_quit_action): Update.
9421 * thread.c (thr_try_catch_cmd): Update.
9422 (add_thread_with_info): Update.
9423 (thread_target_id_str): Update.
9424 (thr_try_catch_cmd): Update.
9425 (thread_command): Update.
9426 (thread_find_command): Update.
9427 * record-btrace.c (record_btrace_target::info_record)
9428 (record_btrace_resume_thread, record_btrace_target::resume)
9429 (record_btrace_cancel_resume, record_btrace_step_thread)
9430 (record_btrace_target::wait, record_btrace_target::wait)
9431 (record_btrace_target::wait, record_btrace_target::stop): Update.
9432 * progspace.c (print_program_space): Update.
9433 * process-stratum-target.c
9434 (process_stratum_target::thread_address_space): Update.
9435 * linux-fork.c (linux_fork_mourn_inferior)
9436 (detach_checkpoint_command, info_checkpoints_command)
9437 (linux_fork_context): Update.
9438 (linux_fork_detach): Update.
9439 (class scoped_switch_fork_info): Update.
9440 (delete_checkpoint_command): Update.
9441 * infrun.c (follow_fork_inferior): Update.
9442 (follow_fork_inferior): Update.
9443 (proceed_after_vfork_done): Update.
9444 (handle_vfork_child_exec_or_exit): Update.
9445 (follow_exec): Update.
9446 (displaced_step_prepare_throw): Update.
9447 (displaced_step_restore): Update.
9448 (start_step_over): Update.
9450 (clear_proceed_status_thread): Update.
9452 (print_target_wait_results): Update.
9453 (do_target_wait): Update.
9454 (context_switch): Update.
9455 (stop_all_threads): Update.
9456 (restart_threads): Update.
9457 (finish_step_over): Update.
9458 (handle_signal_stop): Update.
9459 (switch_back_to_stepped_thread): Update.
9460 (keep_going_pass_signal): Update.
9461 (print_exited_reason): Update.
9462 (normal_stop): Update.
9463 * inferior.c (inferior_pid_to_str): Change return type.
9464 (print_selected_inferior): Update.
9465 (add_inferior): Update.
9466 (detach_inferior): Update.
9467 * dummy-frame.c (fprint_dummy_frames): Update.
9468 * dcache.c (dcache_info_1): Update.
9469 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
9470 (btrace_fetch, btrace_clear): Update.
9471 * linux-tdep.c (linux_core_pid_to_str): Change return type.
9472 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
9474 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
9475 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
9476 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
9477 * gdbarch.c, gdbarch.h: Rebuild.
9478 * gdbarch.sh (core_pid_to_str): Change return type.
9479 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
9481 (windows_nat_target::pid_to_str): Change return type.
9482 (windows_delete_thread): Update.
9483 (windows_nat_target::attach): Update.
9484 (windows_nat_target::files_info): Update.
9485 * target-delegates.c: Rebuild.
9486 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
9488 (sol_thread_target::pid_to_str): Change return type.
9489 * remote.c (class remote_target) <pid_to_str>: Change return
9491 (remote_target::pid_to_str): Change return type.
9492 (extended_remote_target::attach, remote_target::remote_stop_ns)
9493 (remote_target::remote_notif_remove_queued_reply)
9494 (remote_target::push_stop_reply, remote_target::disable_btrace):
9496 (extended_remote_target::attach): Update.
9497 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
9499 (gdbsim_target::pid_to_str): Change return type.
9500 * ravenscar-thread.c (struct ravenscar_thread_target)
9501 <pid_to_str>: Change return type.
9502 (ravenscar_thread_target::pid_to_str): Change return type.
9503 * procfs.c (class procfs_target) <pid_to_str>: Change return
9505 (procfs_target::pid_to_str): Change return type.
9506 (procfs_target::attach): Update.
9507 (procfs_target::detach): Update.
9508 (procfs_target::fetch_registers): Update.
9509 (procfs_target::store_registers): Update.
9510 (procfs_target::wait): Update.
9511 (procfs_target::files_info): Update.
9512 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
9513 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
9515 (nto_procfs_target::pid_to_str): Change return type.
9516 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
9517 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
9519 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
9521 (attach_proc_task_lwp_callback, get_detach_signal)
9522 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
9523 (linux_nat_target::resume, wait_lwp, stop_callback)
9524 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
9525 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
9526 (linux_nat_wait_1, resume_stopped_resumed_lwps)
9527 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
9528 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
9530 (inf_ptrace_target::attach): Update.
9531 (inf_ptrace_target::files_info): Update.
9532 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
9534 (go32_nat_target::pid_to_str): Change return type.
9535 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
9536 (gnu_nat_target::wait): Update.
9537 (gnu_nat_target::wait): Update.
9538 (gnu_nat_target::resume): Update.
9539 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
9540 (fbsd_nat_target::wait): Update.
9541 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
9543 (darwin_nat_target::attach): Update.
9544 * corelow.c (class core_target) <pid_to_str>: Change return type.
9545 (core_target::pid_to_str): Change return type.
9546 * target.c (normal_pid_to_str): Change return type.
9547 (default_pid_to_str): Likewise.
9548 (target_pid_to_str): Change return type.
9549 (target_translate_tls_address): Update.
9550 (target_announce_detach): Update.
9551 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
9553 (bsd_uthread_target::pid_to_str): Change return type.
9554 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
9556 (bsd_kvm_target::pid_to_str): Change return type.
9557 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
9559 (aix_thread_target::pid_to_str): Change return type.
9560 * target.h (struct target_ops) <pid_to_str>: Change return type.
9561 (target_pid_to_str, normal_pid_to_str): Likewise.
9562 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
9564 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
9566 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
9568 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
9570 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
9572 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
9575 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
9577 * NEWS: Mention that the new default MI version is 3. Mention
9578 changes to the output of commands and events that deal with
9579 multi-location breakpoints.
9580 * breakpoint.c: Include "mi/mi-out.h".
9581 (print_one_breakpoint): Change output syntax if using MI version
9583 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
9585 (mi_multi_location_breakpoint_output_fixed): New.
9586 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
9587 (mi_cmd_fix_multi_location_breakpoint_output): New.
9588 (mi_multi_location_breakpoint_output_fixed): New.
9589 * mi/mi-cmds.c (mi_cmds): Register command
9590 -fix-multi-location-breakpoint-output.
9591 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
9594 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9596 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
9597 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
9598 instantiate mi_ui_out based on interpreter name.
9599 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
9600 * mi/mi-main.c (mi_load_progress): Likewise.
9602 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9604 * NEWS: Combine separate "New targets" sections for 8.3.
9606 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9608 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
9609 (ppcfbsd_init_abi): Install gdbarch
9610 "fetch_tls_load_module_address" and "get_thread_local_address"
9613 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9615 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
9616 (riscv_fbsd_init_abi): Install gdbarch
9617 "fetch_tls_load_module_address" and "get_thread_local_address"
9620 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9622 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
9623 (i386fbsd_init_abi): Install gdbarch
9624 "fetch_tls_load_module_address" and "get_thread_local_address"
9627 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9629 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
9630 (amd64fbsd_init_abi): Install gdbarch
9631 "fetch_tls_load_module_address" and "get_thread_local_address"
9634 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9636 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
9637 (struct fbsd_pspace_data): New type.
9638 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
9639 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
9640 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
9641 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
9642 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
9644 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9646 * gdbtypes.c (lookup_struct_elt): New function.
9647 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
9648 * gdbtypes.h (struct struct_elt): New type.
9649 (lookup_struct_elt): New prototype.
9651 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9653 * gdbtypes.c (lookup_struct_elt_type): Update comment and
9654 remove disabled code block.
9656 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9658 * gdbarch.sh (get_thread_local_address): New method.
9659 * gdbarch.h, gdbarch.c: Regenerate.
9660 * target.c (target_translate_tls_address): Use
9661 gdbarch_get_thread_local_address if present instead of
9662 target::get_thread_local_address.
9664 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9666 * target.h (target::get_thread_local_address): Update comment.
9668 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9670 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
9671 objfile->separate_debug_objfile_backlink if not NULL.
9673 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9675 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
9676 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
9677 (amd64bsd_store_inferior_registers): Likewise.
9678 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
9679 Enable segment base registers.
9680 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
9681 PT_GETFSBASE and PT_GETGSBASE.
9682 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
9684 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
9685 segment base registers.
9686 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
9688 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9690 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
9691 Update calls to i386_target_description to add 'segments'
9693 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
9694 add segment base registers.
9695 * arch/i386.c (i386_create_target_description): Add 'segments'
9696 parameter to enable segment base registers.
9697 * arch/i386.h (i386_create_target_description): Likewise.
9698 * features/i386/32bit-segments.xml: New file.
9699 * features/i386/32bit-segments.c: Generate.
9700 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
9701 call to i386_target_description to add 'segments' parameter.
9702 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
9703 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
9704 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
9705 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
9706 if feature is present.
9707 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
9708 Add 'segments' parameter to call to i386_target_description.
9709 (i386_target_description): Add 'segments' parameter to enable
9710 segment base registers.
9711 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
9712 to call to i386_target_description.
9713 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
9714 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
9715 Define I386_NUM_REGS.
9716 (i386_target_description): Add 'segments' parameter to enable
9717 segment base registers.
9719 2019-03-12 Eli Zaretskii <eliz@gnu.org>
9722 * source-cache.c: #undef open and close, to avoid unresolved
9723 externals during linking.
9725 2019-03-12 Tom Tromey <tromey@adacore.com>
9727 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
9728 const. Add initializers.
9729 (_initialize_remote): Don't initialize ptid globals.
9731 2019-03-12 Pedro Alves <palves@redhat.com>
9733 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
9735 2019-03-12 Pedro Alves <palves@redhat.com>
9737 * cp-name-parser.y (main): Remove unused 'len' variable.
9739 2019-03-12 Tom Tromey <tromey@adacore.com>
9741 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
9742 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
9744 2019-03-12 Tom Tromey <tromey@adacore.com>
9746 * linux-nat.c (iterate_over_lwps): Update.
9747 (stop_callback): Remove parameter.
9748 (stop_wait_callback, detach_callback, resume_set_callback)
9749 (select_singlestep_lwp_callback, set_ignore_sigint)
9750 (status_callback, resumed_callback, resume_clear_callback)
9751 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
9753 (linux_nat_target::detach, linux_nat_target::resume)
9754 (linux_stop_and_wait_all_lwps, select_event_lwp)
9755 (linux_nat_filter_event, linux_nat_wait_1)
9756 (linux_nat_target::kill, linux_nat_target::stop)
9757 (linux_nat_target::stop): Update.
9758 (linux_nat_resume_callback): Change type.
9759 (resume_stopped_resumed_lwps, count_events_callback)
9760 (select_event_lwp_callback): Likewise.
9761 (linux_stop_lwp, linux_nat_stop_lwp): Update.
9762 * arm-linux-nat.c (struct update_registers_data): Remove.
9763 (update_registers_callback): Change type.
9764 (arm_linux_insert_hw_breakpoint1): Update.
9765 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
9767 (x86_linux_dr_set_addr): Update.
9768 (x86_linux_dr_set_control): Update.
9769 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
9770 (iterate_over_lwps): Use gdb::function_view.
9771 * nat/aarch64-linux-hw-point.c (struct
9772 aarch64_dr_update_callback_param): Remove.
9773 (debug_reg_change_callback): Change type.
9774 (aarch64_notify_debug_reg_change): Update.
9775 * s390-linux-nat.c (s390_refresh_per_info): Update.
9777 2019-03-11 Tom Tromey <tromey@adacore.com>
9779 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
9780 redundant assignment to "this_cu".
9782 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9784 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
9786 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9788 * gdbtypes.c (rank_one_type_parm_set): New function extracted
9790 (rank_one_type): ... this.
9792 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9794 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
9796 (rank_one_type): ... this.
9798 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9800 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
9802 (rank_one_type): ... this.
9804 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9806 * gdbtypes.c (rank_one_type_parm_float): New function extracted
9808 (rank_one_type): ... this.
9810 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9812 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
9814 (rank_one_type): ... this.
9816 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9818 * gdbtypes.c (rank_one_type_parm_range): New function extracted
9820 (rank_one_type): ... this.
9822 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9824 * gdbtypes.c (rank_one_type_parm_char): New function extracted
9826 (rank_one_type): ... this.
9828 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9830 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
9832 (rank_one_type): ... this.
9834 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9836 * gdbtypes.c (rank_one_type_parm_int): New function extracted
9838 (rank_one_type): ... this.
9840 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9842 * gdbtypes.c (rank_one_type_parm_func): New function extracted
9844 (rank_one_type): ... this.
9846 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9848 * gdbtypes.c (rank_one_type_parm_array): New function extracted
9850 (rank_one_type): ... this.
9852 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9854 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
9856 (rank_one_type): ... this.
9858 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9860 * inferior.c (initialize_inferiors): Ensure 'help set/show print
9861 inferior-events' shows the example events.
9863 2019-03-08 Eli Zaretskii <eliz@gnu.org>
9865 Support styling on native MS-Windows console
9868 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
9869 on MS-Windows if $TERM is not defined.
9871 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
9873 * posix-hdep.c (gdb_console_fputs):
9874 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
9876 * ui-file.h (gdb_console_fputs): Add prototype.
9878 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
9879 back to fputs only if the former returns zero.
9881 2019-03-07 Tom Tromey <tom@tromey.com>
9883 * symmisc.c (print_symbol_bcache_statistics): Update.
9884 (print_objfile_statistics): Update.
9885 * symfile.c (allocate_symtab): Update.
9886 * stabsread.c: Don't include bcache.h.
9887 * psymtab.h (struct psymbol_bcache): Don't declare.
9888 (class psymtab_storage) <psymbol_cache>: Now a bcache.
9889 (psymbol_bcache_init, psymbol_bcache_free)
9890 (psymbol_bcache_get_bcache): Don't declare.
9891 * psymtab.c (struct psymbol_bcache): Remove.
9892 (psymtab_storage::psymtab_storage): Update.
9893 (psymtab_storage::~psymtab_storage): Update.
9894 (psymbol_bcache_init, psymbol_bcache_free)
9895 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
9896 (add_psymbol_to_bcache): Update.
9897 (allocate_psymtab): Update.
9898 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
9899 macro_cache>: No longer pointers.
9900 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
9901 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
9902 * macrotab.c (macro_bcache): Update.
9903 * macroexp.c: Don't include bcache.h.
9904 * gdbtypes.c (check_types_worklist): Update.
9905 (types_deeply_equal): Remove TRY/CATCH. Update.
9906 * elfread.c (elf_symtab_read): Update.
9907 * dwarf2read.c: Don't include bcache.h.
9908 * buildsym.c (buildsym_compunit::get_macro_table): Update.
9909 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
9910 (print_bcache_statistics, bcache_memory_used): Don't declare.
9911 (struct bcache): Move from bcache.c. Add constructor, destructor,
9912 methods. Rename all data members.
9913 * bcache.c (struct bcache): Move to bcache.h.
9914 (bcache::expand_hash_table): Rename from expand_hash_table.
9916 (bcache::insert): Rename from bcache_full.
9917 (bcache::compare): Rename from bcache_compare.
9918 (bcache_xmalloc): Remove.
9919 (bcache::~bcache): Rename from bcache_xfree.
9920 (bcache::print_statistics): Rename from print_bcache_statistics.
9921 (bcache::memory_used): Rename from bcache_memory_used.
9923 2019-03-07 Pedro Alves <palves@redhat.com>
9925 * infrun.c (normal_stop): Also check for
9926 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
9928 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
9930 * f-lang.c (value_from_host_double): Moved to...
9931 * value.c (value_from_host_double): ...here.
9932 * value.h (value_from_host_double): Declare.
9933 * guile/scm-math.c (vlscm_convert_typed_number): Use
9934 value_from_host_double.
9935 (vlscm_convert_number): Likewise.
9936 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
9937 * python/py-value.c (convert_value_from_python): Likewise.
9939 2019-03-06 Tom Tromey <tom@tromey.com>
9941 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
9943 2019-03-06 Tom Tromey <tom@tromey.com>
9945 * utils.h (free_current_contents): Don't declare.
9946 * utils.c (free_current_contents): Remove.
9948 2019-03-06 Tom Tromey <tom@tromey.com>
9950 * top.c (quit_force): Update.
9951 * main.c (captured_command_loop): Update.
9952 * common/new-op.c (operator new): Update.
9953 * common/common-exceptions.c (struct catcher)
9954 <save_cleanup_chain>: Remove member.
9955 (exceptions_state_mc_init): Update.
9956 (exception_try_scope_entry): Return nullptr.
9957 (exception_try_scope_exit, exception_rethrow)
9958 (throw_exception_sjlj, throw_exception_cxx): Update.
9959 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
9960 (all_cleanups, do_cleanups, discard_cleanups)
9961 (discard_final_cleanups, save_cleanups, save_final_cleanups)
9962 (restore_cleanups, restore_final_cleanups): Don't declare.
9963 (do_final_cleanups): Remove parameter.
9964 * common/cleanups.c (cleanup_chain, make_cleanup)
9965 (make_cleanup_dtor, all_cleanups, do_cleanups)
9966 (discard_my_cleanups, discard_cleanups)
9967 (discard_final_cleanups, save_my_cleanups, save_cleanups)
9968 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
9969 (null_cleanup): Remove.
9970 (do_final_cleanups): Remove parameter.
9972 2019-03-06 Tom Tromey <tom@tromey.com>
9974 * remote.c (remote_target::remote_parse_stop_reply): Use
9977 2019-03-06 Tom Tromey <tom@tromey.com>
9979 * stabsread.c (struct stabs_field_info): Rename from field_info.
9980 <list, fnlist>: Add initializers.
9981 <obstack>: New member.
9982 (read_member_functions, read_struct_fields, read_baseclasses):
9983 Allocate on obstack. Don't use cleanups.
9984 (read_one_struct_field, read_member_functions, read_struct_fields)
9985 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
9986 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
9987 (read_struct_type): Update.
9989 2019-03-06 Tom Tromey <tom@tromey.com>
9991 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
9992 * common/filestuff.h (make_cleanup_close): Don't declare.
9993 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
9996 2019-03-06 Tom Tromey <tom@tromey.com>
9998 * solib-aix.c: Use make_scope_exit.
10000 2019-03-06 Tom Tromey <tom@tromey.com>
10002 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
10003 Use make_scope_exit.
10005 2019-03-06 Tom Tromey <tom@tromey.com>
10007 * solib-svr4.c (disable_probes_interface): Remove parameter.
10008 (svr4_handle_solib_event): Use make_scope_exit.
10010 2019-03-06 Tom Tromey <tom@tromey.com>
10012 * remote.c (struct stop_reply_deleter): Remove.
10013 (stop_reply_up): Update.
10014 (struct stop_reply): Derive from notif_event. Don't typedef.
10015 <regcache>: Now a std::vector.
10016 (stop_reply_xfree): Remove.
10017 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
10018 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
10019 (remote_target::discard_pending_stop_replies): Use delete.
10020 (remote_target::remote_parse_stop_reply): Update.
10021 (remote_target::process_stop_reply): Update.
10022 * remote-notif.h (struct notif_event): Add virtual destructor.
10023 Remove "dtr" member.
10024 (struct notif_client) <alloc_event>: Return a unique_ptr.
10025 (notif_event_xfree): Don't declare.
10026 (notif_event_up): New typedef.
10027 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
10028 (notif_event_xfree, do_notif_event_xfree): Remove.
10029 (remote_notif_state_xfree): Update.
10031 2019-03-06 Tom Tromey <tom@tromey.com>
10033 * infrun.c (displaced_step_clear_cleanup): Now a
10034 forward_scope_exit type.
10035 (displaced_step_prepare_throw): Update.
10036 (displaced_step_fixup): Update.
10038 2019-03-06 Tom Tromey <tom@tromey.com>
10040 * inferior.h (class inferior): Update comment.
10041 * gdbthread.h (class thread_info): Update comment.
10043 2019-03-06 Joel Brobecker <brobecker@adacore.com>
10044 Tom Tromey <tom@tromey.com>
10046 * stabsread.h (struct stab_section_list): Remove.
10047 (coffstab_build_psymtabs): Update.
10048 * dbxread.c (symbuf_sections): Now a std::vector.
10049 (sect_idx): New global.
10050 (fill_symbuf): Update.
10051 (coffstab_build_psymtabs): Change type of stabsects parameter.
10053 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
10055 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
10056 (coff_locate_sections): Update.
10057 (coff_symfile_read): Remove cleanups. Update.
10058 (init_stringtab): Add storage parameter.
10059 (free_stringtab, free_stringtab_cleanup): Remove.
10060 (init_lineno): Add storage parameter.
10061 (free_linetab, free_linetab_cleanup): Remove.
10063 2019-03-06 Pedro Alves <palves@redhat.com>
10065 * linux-fork.c (fork_info::clobber_regs): Delete.
10066 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
10067 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
10069 (scoped_switch_fork_info::scoped_switch_fork_info)
10070 (checkpoint_command, linux_fork_context): Adjust
10071 fork_save_infrun_state calls.
10073 2019-03-06 Pedro Alves <palves@redhat.com>
10075 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
10076 (inf_has_multiple_threads): Return 'bool' and rewrite using
10077 inferior_info::threads().
10079 2019-03-06 Pedro Alves <palves@redhat.com>
10081 * linux-fork.c: Include <list>.
10082 (fork_list): Now a std::list instance.
10083 (fork_info): Add ctor, dtor, and in-class initialize all fields.
10084 (forks_exist_p, find_last_fork): Adjust.
10085 (new_fork): Delete.
10087 (add_fork): Adjust.
10088 (free_fork): Delete, folded into fork_info::~fork_info().
10089 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
10091 (init_fork_list): Delete.
10092 (linux_fork_killall, linux_fork_mourn_inferior)
10093 (linux_fork_detach, info_checkpoints_command): Adjust.
10094 (_initialize_linux_fork): No longer call init_fork_list.
10096 2019-03-06 Pedro Alves <palves@redhat.com>
10098 * linux-fork.c (new_fork): New, split out of ...
10099 (add_fork): ... this. Return void. Move "first fork" special
10100 case from here, to ...
10101 (checkpoint_command): ... here.
10102 * linux-linux.h (add_fork): Return void.
10104 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10106 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
10108 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10109 Chris January <chris.january@arm.com>
10110 David Lecomber <david.lecomber@arm.com>
10112 * f-exp.y: New token, UNOP_INTRINSIC.
10113 (exp): New pattern using UNOP_INTRINSIC token.
10114 (f77_keywords): Add 'abs' keyword.
10115 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
10116 (value_from_host_double): New function.
10117 (evaluate_subexp_f): Support UNOP_ABS.
10119 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10121 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
10124 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10126 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
10127 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
10128 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
10130 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10132 * f-exp.y (convert_to_kind_type): Handle more type kinds.
10134 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10135 Chris January <chris.january@arm.com>
10137 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
10138 * f-exp.y: Define 'KIND' token.
10139 (exp): New pattern for KIND expressions.
10140 (ptype): Handle types with a kind extension.
10141 (direct_abs_decl): Extend to spot kind extensions.
10142 (f77_keywords): Add 'kind' to the list.
10143 (push_kind_type): New function.
10144 (convert_to_kind_type): New function.
10145 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
10146 * parse.c (operator_length_standard): Likewise.
10147 * parser-defs.h (enum type_pieces): Add tp_kind.
10148 * std-operator.def: Add UNOP_KIND.
10150 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10152 * f-exp.y (f_parse): Set yydebug.
10154 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10156 * f-lang.c (evaluate_subexp_f): New function.
10157 (exp_descriptor_f): New global.
10158 (f_language_defn): Use exp_descriptor_f instead of
10159 exp_descriptor_standard.
10161 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10163 * f-exp.y (struct token): Add comments.
10164 (dot_ops): Remove uppercase versions and the end marker.
10165 (f77_keywords): Likewise.
10166 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
10167 entries in the dot_ops array are case insensitive, and use
10168 strncasecmp to compare strings. Also some whitespace cleanup in
10169 this area. Similar for the f77_keywords array, except entries in
10170 this list might be case sensitive.
10172 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10174 * f-exp.y (struct f77_boolean_val): Add comments.
10175 (boolean_values): Remove uppercase versions, and end marker.
10176 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
10177 and use strncasecmp to achieve case insensitivity. Additionally,
10178 perform whitespace cleanup around this code.
10180 2019-03-06 Tom Tromey <tromey@adacore.com>
10182 * remote-sim.c (gdbsim_target_open): Use result of
10185 2019-03-06 Richard Bunt <richard.bunt@arm.com>
10186 Dirk Schubert <dirk.schubert@arm.com>
10187 Chris January <chris.january@arm.com>
10189 * eval.c (evaluate_subexp_standard): Call Fortran argument
10191 * f-lang.c (struct value): A value which can be passed into a
10192 Fortran function call.
10193 (fortran_argument_convert): Wrap Fortran arguments in a pointer
10195 (struct type): Value ready for a Fortran function call.
10196 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
10198 * f-lang.h (fortran_argument_convert): Declaration.
10199 (fortran_preserve_arg_pointer): Declaration.
10200 * infcall.c (value_arg_coerce): Call Fortran argument logic.
10202 2019-03-05 Tom Tromey <tromey@adacore.com>
10204 * python/py-prettyprint.c (print_string_repr): Remove #if.
10205 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
10207 2019-03-05 Tom Tromey <tromey@adacore.com>
10209 * target.c (the_dummy_target): Move later. Change type to
10211 (initialize_targets): Don't initialize the_dummy_target.
10213 2019-03-05 Tom Tromey <tromey@adacore.com>
10215 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
10216 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
10218 2019-03-05 Tom Tromey <tromey@adacore.com>
10220 * windows-nat.c (windows_nat_target::attach)
10221 (windows_nat_target::detach): Don't call gdb_flush.
10222 * valprint.c (generic_val_print, val_print, val_print_string):
10223 Don't call gdb_flush.
10224 * utils.c (defaulted_query): Don't call gdb_flush.
10225 * typeprint.c (print_type_scalar): Don't call gdb_flush.
10226 * target.c (target_announce_detach): Don't call gdb_flush.
10227 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
10228 * remote.c (extended_remote_target::attach): Don't call
10230 * procfs.c (procfs_target::detach): Don't call gdb_flush.
10231 * printcmd.c (do_examine): Don't call gdb_flush.
10232 (info_display_command): Don't call gdb_flush.
10233 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
10234 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
10235 * memattr.c (info_mem_command): Don't call gdb_flush.
10236 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
10237 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
10238 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
10239 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
10240 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
10241 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
10242 (gnu_nat_target::detach): Don't call gdb_flush.
10243 * f-valprint.c (f_val_print): Don't call gdb_flush.
10244 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
10245 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
10246 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
10248 * c-valprint.c (c_val_print): Don't call gdb_flush.
10249 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
10251 2019-03-05 Tom Tromey <tromey@adacore.com>
10253 * varobj.c (update_dynamic_varobj_children): Update.
10254 (install_default_visualizer): Use reset, not release.
10255 * value.c (set_internalvar): Update.
10256 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
10257 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
10258 ATTRIBUTE_UNUSED_RESULT.
10260 2019-03-05 Tom Tromey <tromey@adacore.com>
10262 * remote.c (class scoped_remote_fd) <release>: Add
10263 ATTRIBUTE_UNUSED_RESULT.
10265 2019-03-05 Tom Tromey <tromey@adacore.com>
10267 * macroexp.c (struct macro_buffer) <release>: Add
10268 ATTRIBUTE_UNUSED_RESULT.
10270 2019-03-05 Tom Tromey <tromey@adacore.com>
10272 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
10273 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
10274 ATTRIBUTE_UNUSED_RESULT.
10276 2019-03-05 Tom Tromey <tromey@adacore.com>
10278 * common/scoped_fd.h (class scoped_fd) <release>: Add
10279 ATTRIBUTE_UNUSED_RESULT.
10281 2019-03-05 Tom Tromey <tromey@adacore.com>
10283 * parser-defs.h (struct parser_state) <release>: Add
10284 ATTRIBUTE_UNUSED_RESULT.
10286 2019-03-05 Tom Tromey <tromey@adacore.com>
10288 * utils.h (class gdb_argv) <release>: Add
10289 ATTRIBUTE_UNUSED_RESULT.
10290 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
10292 2019-03-02 Eli Zaretskii <eliz@gnu.org>
10294 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
10295 for-loop range, to avoid compiler warnings.
10297 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
10298 avoid compiler warnings about unused variables.
10300 * NEWS: Mention end of support for native debugging on MS-Windows
10304 * common/netstuff.c:
10305 * gdbserver/gdbreplay.c
10306 * gdbserver/remote-utils.c:
10308 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
10309 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
10310 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
10311 'getaddrinfo' and 'freeaddrinfo' were not available before
10312 Windows XP, and mingw.org's MinGW headers by default define
10313 _WIN32_WINNT to 0x500.
10315 2019-03-01 Gary Benson <gbenson@redhat.com>
10317 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
10319 2019-02-28 Brian Vandenberg <phantall@gmail.com>
10320 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10323 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
10324 set_sigint_trap, clear_sigint_trap.
10326 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10328 * target.c (target_detach): Clear the regcache and the
10331 2019-02-27 Pedro Alves <palves@redhat.com>
10333 * utils.c (set_screen_size): When we cap the height/width sizes,
10334 tweak the corresponding command variable to show "unlimited":
10336 2019-02-27 Saagar Jha <saagar@saagarjha.com>
10337 Pedro Alves <palves@redhat.com>
10339 * utils.c (set_screen_size): Reduce "infinite" rows and columns
10340 before calling rl_set_screen_size.
10342 2019-02-27 Tom Tromey <tromey@adacore.com>
10344 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
10346 * python/py-value.c: Remove Python 2.4 workaround.
10347 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
10349 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
10350 Python 2.4 workaround.
10351 * python/python-internal.h: Remove Python 2.4 comment.
10352 (Py_ssize_t): Don't define.
10353 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
10354 (gdb_Py_DECREF): Remove Python 2.4 workaround.
10355 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
10356 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
10357 * python/python.c (do_start_initialization): Remove Python 2.4
10359 * python/py-prettyprint.c (class dummy_python_frame): Remove.
10360 (print_children): Remove Python 2.4 workaround.
10361 * python/py-inferior.c (buffer_procs): Remove Python 2.4
10363 (CHARBUFFERPROC_NAME): Remove.
10364 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
10365 Python 2.4 workaround.
10367 2019-02-27 Kevin Buettner <kevinb@redhat.com>
10369 * NEWS: Note minimum Python version.
10371 2019-02-27 Kevin Buettner <kevinb@redhat.com>
10373 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
10374 code from these functions. Remove corresponding ifdefs. Use
10375 Py_buffer_up instead of explicit calls to PyBuffer_Release.
10376 Remove gotos and target of gotos.
10377 (infpy_search_memory): Likewise.
10379 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10381 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
10382 (hppa_gdbarch_init): Don't register deleted functions with
10385 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10387 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
10388 (h8300_unwind_sp): Delete.
10389 (h8300_dummy_id): Delete.
10390 (h8300_gdbarch_init): Don't register deleted functions with
10393 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10395 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
10396 (ft32_unwind_pc): Delete.
10397 (ft32_unwind_sp): Delete.
10398 (ft32_gdbarch_init): Don't register deleted functions with
10401 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10403 * gdb/frv-tdep.c (frv_dummy_id): Delete.
10404 (frv_unwind_pc): Delete.
10405 (frv_unwind_sp): Delete.
10406 (frv_gdbarch_init): Don't register deleted functions with
10409 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10411 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
10412 (riscv_unwind_pc): Delete.
10413 (riscv_unwind_sp): Delete.
10414 (riscv_gdbarch_init): Don't register deleted functions with
10417 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10419 * gdb/csky-tdep.c (csky_dummy_id): Delete.
10420 (csky_unwind_pc): Delete.
10421 (csky_unwind_sp): Delete.
10422 (csky_gdbarch_init): Don't register deleted functions with
10425 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10427 * gdb/cris-tdep.c (cris_dummy_id): Delete.
10428 (cris_unwind_pc): Delete.
10429 (cris_unwind_sp): Delete.
10430 (cris_gdbarch_init): Don't register deleted functions with
10433 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10435 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
10436 (bfin_unwind_pc): Delete.
10437 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
10439 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10441 * gdb/arm-tdep.c (arm_dummy_id): Delete.
10442 (arm_unwind_pc): Delete.
10443 (arm_unwind_sp): Delete.
10444 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
10446 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10448 * gdb/arc-tdep.c (arc_dummy_id): Delete.
10449 (arc_unwind_pc): Delete.
10450 (arc_unwind_sp): Delete.
10451 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
10453 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10455 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
10456 (alpha_unwind_pc): Delete.
10457 (alpha_gdbarch_init): Don't register deleted functions with
10460 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10462 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
10463 (aarch64_unwind_pc): Delete.
10464 (aarch64_unwind_sp): Delete.
10465 (aarch64_gdbarch_init): Don't register deleted functions with
10468 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10470 * gdbtypes.c (type_align): Don't consider static members when
10471 computing structure alignment.
10473 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10475 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
10476 return 0 for other types.
10477 * arch-utils.c (default_type_align): Always return 0.
10478 * gdbarch.h: Regenerate.
10479 * gdbarch.sh (type_align): Extend comment.
10480 * gdbtypes.c (type_align): Add additional comments, always call
10481 gdbarch_type_align before applying the default rules.
10482 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
10483 generic code will then apply a suitable default.
10484 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
10485 types, return 0 for other types.
10487 2019-02-27 Joel Brobecker <brobecker@adacore.com>
10489 * NEWS: Create a new section for the next release branch.
10490 Rename the section of the current branch, now that it has
10493 2019-02-27 Joel Brobecker <brobecker@adacore.com>
10495 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
10496 * version.in: Bump version to 8.3.50.DATE-git.
10498 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
10500 * aix-thread.c (ptid_cmp): Remove unused variable.
10501 (get_signaled_thread): Likewise.
10502 (store_regs_user_thread): Likewise.
10503 (store_regs_kernel_thread): Likewise.
10504 (fetch_regs_kernel_thread): Remove shadowed variable.
10506 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
10508 * features/riscv/32bit-cpu.xml: Add register numbers.
10509 * features/riscv/32bit-fpu.c: Regenerate.
10510 * features/riscv/32bit-fpu.xml: Add register numbers.
10511 * features/riscv/64bit-cpu.xml: Add register numbers.
10512 * features/riscv/64bit-fpu.c: Regenerate.
10513 * features/riscv/64bit-fpu.xml: Add register numbers.
10515 2019-02-26 Kevin Buettner <kevinb@redhat.com>
10517 * NEWS: Mention two argument form of gdb.Value constructor.
10518 * python/py-value.c (convert_buffer_and_type_to_value): New
10520 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
10521 Add support for handling an optional second argument. Call
10522 convert_buffer_and_type_to_value as appropriate.
10523 * python/python-internal.h (Py_buffer_deleter): New struct.
10524 (Py_buffer_up): New typedef.
10526 2019-02-25 John Baldwin <jhb@FreeBSD.org>
10528 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
10529 instead of releasing ownership.
10531 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
10533 * dwarf2read.c (open_and_init_dwp_file): Call
10534 elf_numsections instead of bfd_count_sections to initialize
10535 dwp_file->num_sections.
10537 2019-02-25 Tom Tromey <tromey@adacore.com>
10539 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
10541 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
10543 * gcore.in: Add '--readnever' option when invoking GDB.
10545 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
10547 * MAINTAINERS: Update my email address.
10549 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
10551 * build-id.c (build_id_to_debug_bfd_1): New function.
10552 (build_id_to_debug_bfd): Look for separate debug file in
10555 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
10557 * gdbarch.sh: Update the copyright year range that is placed into
10560 2019-02-22 Keith Seitz <keiths@redhat.com>
10563 * linespec.c (create_sals_line_offset): Search for the default
10564 symtab's filename instead of its fullname.
10566 2019-02-21 Alan Hayward <alan.hayward@arm.com>
10568 * NEWS: Update style defaults.
10570 2019-02-21 Alan Hayward <alan.hayward@arm.com>
10572 * main.c (captured_main_1): Disable styling in batch mode.
10574 2019-02-20 Tom Tromey <tom@tromey.com>
10576 * symtab.c (symtab_symbol_info): Fix typos.
10578 2019-02-20 Tom Tromey <tromey@adacore.com>
10580 * findcmd.c (_initialize_mem_search): Use upper case for
10581 metasyntactic variables.
10583 2019-02-20 Alan Hayward <alan.hayward@arm.com>
10585 * aarch64-tdep.c (aarch64_add_reggroups): New function.
10586 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
10588 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
10590 * top.h (source_file_name): Change to std::string.
10591 * top.c (source_file_name): Likewise.
10592 (command_line_input): Adjust.
10593 * cli/cli-script.c (script_from_file): Adjust.
10595 2019-02-19 Tom Tromey <tromey@adacore.com>
10597 * ravenscar-thread.c
10598 (ravenscar_thread_target::update_thread_list): Don't call
10599 ada_build_task_list.
10600 * ada-lang.h (ada_build_task_list): Don't declare.
10601 * ada-tasks.c (struct ada_tasks_inferior_data)
10602 <task_list_valid_p>: Now bool.
10603 (read_known_tasks, ada_task_list_changed)
10604 (ada_tasks_invalidate_inferior_data): Update.
10605 (read_known_tasks_array): Return bool.
10606 (read_known_tasks_list): Likewise.
10607 (read_known_tasks): Return void.
10608 (ada_build_task_list): Now static.
10610 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
10612 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
10613 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
10615 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10617 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
10618 variant for ada_tasks_pspace_data_handle and
10619 ada_tasks_inferior_data_handle.
10620 (ada_tasks_pspace_data_cleanup): New function.
10621 (ada_tasks_inferior_data_cleanup): New function.
10623 2019-02-17 Tom Tromey <tom@tromey.com>
10625 * macrotab.h (macro_source_fullname): Return a std::string.
10626 * macrotab.c (macro_include, check_for_redefinition)
10627 (macro_undef, macro_lookup_definition, foreach_macro)
10628 (foreach_macro_in_scope): Update.
10629 (macro_source_fullname): Return a std::string.
10630 * macrocmd.c (show_pp_source_pos): Update.
10632 2019-02-17 Tom Tromey <tom@tromey.com>
10634 * macrocmd.c (show_pp_source_pos): Style the file names.
10636 2019-02-17 Tom Tromey <tom@tromey.com>
10639 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
10641 2019-02-17 Tom Tromey <tom@tromey.com>
10643 * ada-lang.c (user_select_syms): Use filtered printing.
10644 * utils.c (wrap_style): New global.
10645 (desired_style): Remove.
10646 (emit_style_escape): Add stream parameter.
10647 (set_output_style, reset_terminal_style, prompt_for_continue):
10649 (flush_wrap_buffer): Only flush gdb_stdout.
10650 (wrap_here): Set wrap_style.
10651 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
10652 treat escape sequences as a character. Change when wrap buffer is
10654 (fputs_styled): Do not set the output style when the default is
10656 * ui-style.h (struct ui_file_style) <is_default>: New method.
10657 * source.c (print_source_lines_base): Emit escape sequences in one
10660 2019-02-17 Joel Brobecker <brobecker@adacore.com>
10662 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
10663 integers and enumeration types.
10665 2019-02-17 Joel Brobecker <brobecker@adacore.com>
10667 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
10668 instead of lookup_symbol_in_language
10669 (do_exact_match): New function.
10670 (ada_get_symbol_name_matcher): Return do_exact_match when
10671 doing a verbatim match.
10673 2019-02-15 Tom Tromey <tromey@adacore.com>
10675 * ravenscar-thread.c (ravenscar_thread_target::resume)
10676 (ravenscar_thread_target::wait): Special case wildcard requests.
10678 2019-02-15 Tom Tromey <tromey@adacore.com>
10680 * ravenscar-thread.c (base_ptid): Remove.
10681 (struct ravenscar_thread_target) <close>: New method.
10682 <m_base_ptid>: New member.
10683 <update_inferior_ptid, active_task, task_is_currently_active,
10684 runtime_initialized>: Declare methods.
10685 <ravenscar_thread_target>: Add constructor.
10686 (ravenscar_thread_target::task_is_currently_active)
10687 (ravenscar_thread_target::update_inferior_ptid)
10688 (ravenscar_runtime_initialized): Rename. Now methods.
10689 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
10690 (ravenscar_thread_target::update_thread_list): Update.
10691 (ravenscar_thread_target::active_task): Now method.
10692 (ravenscar_thread_target::store_registers)
10693 (ravenscar_thread_target::prepare_to_store)
10694 (ravenscar_thread_target::prepare_to_store)
10695 (ravenscar_thread_target::mourn_inferior): Update.
10696 (ravenscar_inferior_created): Use "new" to create target.
10697 (ravenscar_thread_target::get_ada_task_ptid): Update.
10698 (_initialize_ravenscar): Don't initialize base_ptid.
10699 (ravenscar_ops): Remove global.
10701 2019-02-15 Tom Tromey <tromey@adacore.com>
10703 * target.h (push_target): Declare new overload.
10704 * target.c (push_target): New overload, taking an rvalue reference.
10705 * remote.c (remote_target::open_1): Use push_target overload.
10706 * corelow.c (core_target_open): Use push_target overload.
10708 2019-02-15 Tom Tromey <tromey@adacore.com>
10710 * ravenscar-thread.c (is_ravenscar_task)
10711 (ravenscar_task_is_currently_active): Return bool.
10712 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
10713 (_initialize_ravenscar): Remove "(void)".
10714 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
10717 2019-02-15 Tom Tromey <tromey@adacore.com>
10719 * ravenscar-thread.c (ravenscar_runtime_initializer)
10720 (has_ravenscar_runtime, get_running_thread_id)
10721 (ravenscar_thread_target::resume): Fix indentation.
10723 2019-02-15 Tom Tromey <tromey@adacore.com>
10725 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
10726 from ravenscar_arch_ops.
10727 (sparc_ravenscar_ops::fetch_registers)
10728 (sparc_ravenscar_ops::store_registers): Now methods.
10729 (sparc_ravenscar_prepare_to_store): Remove.
10730 (sparc_ravenscar_ops): Redefine.
10731 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
10732 methods and destructor. Remove members.
10733 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
10734 (ravenscar_thread_target::store_registers)
10735 (ravenscar_thread_target::prepare_to_store): Update.
10736 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
10738 (struct ppc_ravenscar_powerpc_ops): Derive from
10739 ravenscar_arch_ops.
10740 (ppc_ravenscar_powerpc_ops::fetch_registers)
10741 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
10742 (ppc_ravenscar_powerpc_ops): Redefine.
10743 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
10744 (ppc_ravenscar_e500_ops::fetch_registers)
10745 (ppc_ravenscar_e500_ops::store_registers): Now methods.
10746 (ppc_ravenscar_e500_ops): Redefine.
10747 * aarch64-ravenscar-thread.c
10748 (aarch64_ravenscar_generic_prepare_to_store): Remove.
10749 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
10750 (aarch64_ravenscar_fetch_registers)
10751 (aarch64_ravenscar_store_registers): Now methods.
10752 (aarch64_ravenscar_ops): Redefine.
10754 2019-02-15 Tom Tromey <tromey@adacore.com>
10756 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
10757 (ravenscar_thread_target::stopped_by_hw_breakpoint)
10758 (ravenscar_thread_target::stopped_by_watchpoint)
10759 (ravenscar_thread_target::stopped_data_address)
10760 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
10762 2019-02-15 Tom Tromey <tromey@adacore.com>
10764 * ravenscar-thread.c: Fix some typos.
10766 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10767 Tom Tromey <tromey@adacore.com>
10769 * ada-lang.c (ada_exception_sal): Change addr_string to a
10771 (create_ada_exception_catchpoint): Update.
10773 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10774 Tom Tromey <tromey@adacore.com>
10776 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
10777 (bp_location_ops): Remove.
10778 (base_breakpoint_allocate_location): Update.
10779 (free_bp_location): Update.
10780 * ada-lang.c (class ada_catchpoint_location)
10781 <ada_catchpoint_location>: Remove ops parameter.
10782 (ada_catchpoint_location_dtor): Remove.
10783 (ada_catchpoint_location_ops): Remove.
10784 (allocate_location_exception): Update.
10785 * breakpoint.h (struct bp_location_ops): Remove.
10786 (class bp_location) <bp_location>: Remove bp_location_ops
10788 <~bp_location>: Add destructor.
10791 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10792 Pedro Alves <palves@redhat.com>
10794 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
10797 2019-02-14 David Michael <fedora.dm0@gmail.com>
10798 Samuel Thibault <samuel.thibault@gnu.org>
10799 Thomas Schwinge <thomas@codesourcery.com>
10801 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
10802 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
10804 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10806 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
10807 (check_empty): Use "const char *".
10809 * gnu-nat.c (gnu_nat_target::detach): Instead of
10810 'detach_inferior (pid)' call
10811 'detach_inferior (find_inferior_pid (pid))'.
10813 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
10814 'nat/fork-inferior.o'.
10815 * gnu-nat.c: #include "nat/fork-inferior.h".
10817 * gnu-nat.c (gnu_nat_target::detach): Instead of
10818 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
10819 * gnu-nat.h: #include "inf-child.h".
10820 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
10821 'i386_gnu_nat_target::fetch_registers'.
10822 (gnu_store_registers): Rename/move to
10823 'i386_gnu_nat_target::store_registers'.
10825 * config/i386/nm-i386gnu.h: Don't "#include" any files.
10826 * gnu-nat.h (mach_thread_info): New function.
10827 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
10829 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
10831 2019-02-14 Frederic Konrad <konrad@adacore.com>
10833 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
10835 2019-02-14 Joel Brobecker <brobecker@adacore.com>
10837 * windows-nat.c (windows_add_thread): Add new parameter
10838 "main_thread_p" with default value set to false. Update
10839 function documentation as well as all callers.
10840 (windows_delete_thread): Likewise.
10841 (fake_create_process): Update call to windows_add_thread.
10842 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
10843 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
10844 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
10845 call to windows_delete_thread.
10847 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
10849 * MAINTAINERS: Add Andrew Burgess as global maintainer.
10851 2019-02-12 John Baldwin <jhb@FreeBSD.org>
10853 * symfile.c (find_separate_debug_file): Use canonical path of
10854 sysroot with child_path instead of gdb_sysroot if it is valid.
10856 2019-02-12 John Baldwin <jhb@FreeBSD.org>
10858 * symfile.c (find_separate_debug_file): Use child_path to
10859 determine if an object file is under a sysroot.
10861 2019-02-12 John Baldwin <jhb@FreeBSD.org>
10863 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10864 unittests/child-path-selftests.c.
10865 * common/pathstuff.c (child_path): New function.
10866 * common/pathstuff.h (child_path): New prototype.
10867 * unittests/child-path-selftests.c: New file.
10869 2019-02-12 John Baldwin <jhb@FreeBSD.org>
10871 * symfile.c (find_separate_debug_file): Look for separate debug
10872 files in debug directories under the sysroot.
10874 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10876 * symtab.h (struct minimal_symbol data_p): New const method.
10877 (struct minimal_symbol text_p): Likewise.
10878 * symtab.c (output_source_filename): Use file name style
10879 to print file name.
10880 (print_symbol_info): Likewise.
10881 (print_msymbol_info): Use address style to print addresses.
10882 Use function name style to print executable text symbols.
10883 (expand_symtab_containing_pc): Use data_p.
10884 (find_pc_sect_compunit_symtab): Likewise.
10886 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10888 * breakpoint.c (describe_other_breakpoints): Use address style
10889 to print addresses.
10890 (say_where): Likewise.
10892 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10894 * ada-typeprint.c (print_func_type): Print function name
10895 style to print function name.
10896 * c-typeprint.c (c_print_type_1): Likewise.
10898 2019-02-11 Alan Hayward <alan.hayward@arm.com>
10900 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
10903 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10905 * c-exp.y (direct_abs_decl): Use emplace_back to record the
10908 2019-02-10 Joel Brobecker <brobecker@adacore.com>
10910 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
10911 TYPE_CODE_REF types.
10913 2019-02-08 Jim Wilson <jimw@sifive.com>
10915 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
10916 (riscv_linux_fregset): New.
10917 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
10919 2019-02-07 Tom Tromey <tom@tromey.com>
10921 * thread.c (thread_cancel_execution_command): Update.
10922 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
10924 (struct thread_fsm_ops): Remove.
10925 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
10926 (thread_fsm_should_stop, thread_fsm_return_value)
10927 (thread_fsm_set_finished, thread_fsm_finished_p)
10928 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
10930 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
10931 * infrun.c (clear_proceed_status_thread)
10932 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
10933 (print_stop_event): Update.
10934 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
10936 (step_command_fsm_ops): Remove.
10937 (new_step_command_fsm): Remove.
10939 (step_command_fsm::should_stop): Rename from
10940 step_command_fsm_should_stop.
10941 (step_command_fsm::clean_up): Rename from
10942 step_command_fsm_clean_up.
10943 (step_command_fsm::do_async_reply_reason): Rename from
10944 step_command_fsm_async_reply_reason.
10945 (struct until_next_fsm): Inherit from thread_fsm. Add
10947 (until_next_fsm_ops): Remove.
10948 (new_until_next_fsm): Remove.
10949 (until_next_fsm::should_stop): Rename from
10950 until_next_fsm_should_stop.
10951 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
10952 (until_next_fsm::do_async_reply_reason): Rename from
10953 until_next_fsm_async_reply_reason.
10954 (struct finish_command_fsm): Inherit from thread_fsm. Add
10955 constructor. Change type of breakpoint.
10956 (finish_command_fsm_ops): Remove.
10957 (new_finish_command_fsm): Remove.
10958 (finish_command_fsm::should_stop): Rename from
10959 finish_command_fsm_should_stop.
10960 (finish_command_fsm::clean_up): Rename from
10961 finish_command_fsm_clean_up.
10962 (finish_command_fsm::return_value): Rename from
10963 finish_command_fsm_return_value.
10964 (finish_command_fsm::do_async_reply_reason): Rename from
10965 finish_command_fsm_async_reply_reason.
10966 (finish_command): Update.
10967 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
10969 (call_thread_fsm_ops): Remove.
10970 (call_thread_fsm::call_thread_fsm): Rename from
10971 new_call_thread_fsm.
10972 (call_thread_fsm::should_stop): Rename from
10973 call_thread_fsm_should_stop.
10974 (call_thread_fsm::should_notify_stop): Rename from
10975 call_thread_fsm_should_notify_stop.
10976 (run_inferior_call, call_function_by_hand_dummy): Update.
10977 * cli/cli-interp.c (should_print_stop_to_console): Update.
10978 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
10979 Add constructor. Change type of location_breakpoint,
10981 (until_break_fsm_ops): Remove.
10982 (new_until_break_fsm): Remove.
10983 (until_break_fsm::should_stop): Rename from
10984 until_break_fsm_should_stop.
10985 (until_break_fsm::clean_up): Rename from
10986 until_break_fsm_clean_up.
10987 (until_break_fsm::do_async_reply_reason): Rename from
10988 until_break_fsm_async_reply_reason.
10989 (until_break_command): Update.
10990 * thread-fsm.c: Remove.
10991 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
10993 2019-02-07 Tom Tromey <tom@tromey.com>
10995 * yy-remap.h: Add include guard.
10996 * xtensa-tdep.h: Add include guard.
10997 * xcoffread.h: Rename include guard.
10998 * varobj-iter.h: Add include guard.
10999 * tui/tui.h: Rename include guard.
11000 * tui/tui-winsource.h: Rename include guard.
11001 * tui/tui-wingeneral.h: Rename include guard.
11002 * tui/tui-windata.h: Rename include guard.
11003 * tui/tui-win.h: Rename include guard.
11004 * tui/tui-stack.h: Rename include guard.
11005 * tui/tui-source.h: Rename include guard.
11006 * tui/tui-regs.h: Rename include guard.
11007 * tui/tui-out.h: Rename include guard.
11008 * tui/tui-layout.h: Rename include guard.
11009 * tui/tui-io.h: Rename include guard.
11010 * tui/tui-hooks.h: Rename include guard.
11011 * tui/tui-file.h: Rename include guard.
11012 * tui/tui-disasm.h: Rename include guard.
11013 * tui/tui-data.h: Rename include guard.
11014 * tui/tui-command.h: Rename include guard.
11015 * tic6x-tdep.h: Add include guard.
11016 * target/waitstatus.h: Rename include guard.
11017 * target/wait.h: Rename include guard.
11018 * target/target.h: Rename include guard.
11019 * target/resume.h: Rename include guard.
11020 * target-float.h: Rename include guard.
11021 * stabsread.h: Add include guard.
11022 * rs6000-tdep.h: Add include guard.
11023 * riscv-fbsd-tdep.h: Add include guard.
11024 * regformats/regdef.h: Rename include guard.
11025 * record.h: Rename include guard.
11026 * python/python.h: Rename include guard.
11027 * python/python-internal.h: Rename include guard.
11028 * python/py-stopevent.h: Rename include guard.
11029 * python/py-ref.h: Rename include guard.
11030 * python/py-record.h: Rename include guard.
11031 * python/py-record-full.h: Rename include guard.
11032 * python/py-record-btrace.h: Rename include guard.
11033 * python/py-instruction.h: Rename include guard.
11034 * python/py-events.h: Rename include guard.
11035 * python/py-event.h: Rename include guard.
11036 * procfs.h: Add include guard.
11037 * proc-utils.h: Add include guard.
11038 * p-lang.h: Add include guard.
11039 * or1k-tdep.h: Rename include guard.
11040 * observable.h: Rename include guard.
11041 * nto-tdep.h: Rename include guard.
11042 * nat/x86-linux.h: Rename include guard.
11043 * nat/x86-linux-dregs.h: Rename include guard.
11044 * nat/x86-gcc-cpuid.h: Add include guard.
11045 * nat/x86-dregs.h: Rename include guard.
11046 * nat/x86-cpuid.h: Rename include guard.
11047 * nat/ppc-linux.h: Rename include guard.
11048 * nat/mips-linux-watch.h: Rename include guard.
11049 * nat/linux-waitpid.h: Rename include guard.
11050 * nat/linux-ptrace.h: Rename include guard.
11051 * nat/linux-procfs.h: Rename include guard.
11052 * nat/linux-osdata.h: Rename include guard.
11053 * nat/linux-nat.h: Rename include guard.
11054 * nat/linux-namespaces.h: Rename include guard.
11055 * nat/linux-btrace.h: Rename include guard.
11056 * nat/glibc_thread_db.h: Rename include guard.
11057 * nat/gdb_thread_db.h: Rename include guard.
11058 * nat/gdb_ptrace.h: Rename include guard.
11059 * nat/fork-inferior.h: Rename include guard.
11060 * nat/amd64-linux-siginfo.h: Rename include guard.
11061 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
11062 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
11063 * nat/aarch64-linux.h: Rename include guard.
11064 * nat/aarch64-linux-hw-point.h: Rename include guard.
11065 * mn10300-tdep.h: Add include guard.
11066 * mips-linux-tdep.h: Add include guard.
11067 * mi/mi-parse.h: Rename include guard.
11068 * mi/mi-out.h: Rename include guard.
11069 * mi/mi-main.h: Rename include guard.
11070 * mi/mi-interp.h: Rename include guard.
11071 * mi/mi-getopt.h: Rename include guard.
11072 * mi/mi-console.h: Rename include guard.
11073 * mi/mi-common.h: Rename include guard.
11074 * mi/mi-cmds.h: Rename include guard.
11075 * mi/mi-cmd-break.h: Rename include guard.
11076 * m2-lang.h: Add include guard.
11077 * location.h: Rename include guard.
11078 * linux-record.h: Rename include guard.
11079 * linux-nat.h: Add include guard.
11080 * linux-fork.h: Add include guard.
11081 * i386-darwin-tdep.h: Rename include guard.
11082 * hppa-linux-offsets.h: Add include guard.
11083 * guile/guile.h: Rename include guard.
11084 * guile/guile-internal.h: Rename include guard.
11085 * gnu-nat.h: Rename include guard.
11086 * gdb-stabs.h: Rename include guard.
11087 * frv-tdep.h: Add include guard.
11088 * f-lang.h: Add include guard.
11089 * event-loop.h: Add include guard.
11090 * darwin-nat.h: Rename include guard.
11091 * cp-abi.h: Rename include guard.
11092 * config/sparc/nm-sol2.h: Rename include guard.
11093 * config/nm-nto.h: Rename include guard.
11094 * config/nm-linux.h: Add include guard.
11095 * config/i386/nm-i386gnu.h: Rename include guard.
11096 * config/djgpp/nl_types.h: Rename include guard.
11097 * config/djgpp/langinfo.h: Rename include guard.
11098 * compile/gcc-cp-plugin.h: Add include guard.
11099 * compile/gcc-c-plugin.h: Add include guard.
11100 * compile/compile.h: Rename include guard.
11101 * compile/compile-object-run.h: Rename include guard.
11102 * compile/compile-object-load.h: Rename include guard.
11103 * compile/compile-internal.h: Rename include guard.
11104 * compile/compile-cplus.h: Rename include guard.
11105 * compile/compile-c.h: Rename include guard.
11106 * common/xml-utils.h: Rename include guard.
11107 * common/x86-xstate.h: Rename include guard.
11108 * common/version.h: Rename include guard.
11109 * common/vec.h: Rename include guard.
11110 * common/tdesc.h: Rename include guard.
11111 * common/selftest.h: Rename include guard.
11112 * common/scoped_restore.h: Rename include guard.
11113 * common/scoped_mmap.h: Rename include guard.
11114 * common/scoped_fd.h: Rename include guard.
11115 * common/safe-iterator.h: Rename include guard.
11116 * common/run-time-clock.h: Rename include guard.
11117 * common/refcounted-object.h: Rename include guard.
11118 * common/queue.h: Rename include guard.
11119 * common/ptid.h: Rename include guard.
11120 * common/print-utils.h: Rename include guard.
11121 * common/preprocessor.h: Rename include guard.
11122 * common/pathstuff.h: Rename include guard.
11123 * common/observable.h: Rename include guard.
11124 * common/netstuff.h: Rename include guard.
11125 * common/job-control.h: Rename include guard.
11126 * common/host-defs.h: Rename include guard.
11127 * common/gdb_wait.h: Rename include guard.
11128 * common/gdb_vecs.h: Rename include guard.
11129 * common/gdb_unlinker.h: Rename include guard.
11130 * common/gdb_unique_ptr.h: Rename include guard.
11131 * common/gdb_tilde_expand.h: Rename include guard.
11132 * common/gdb_sys_time.h: Rename include guard.
11133 * common/gdb_string_view.h: Rename include guard.
11134 * common/gdb_splay_tree.h: Rename include guard.
11135 * common/gdb_setjmp.h: Rename include guard.
11136 * common/gdb_ref_ptr.h: Rename include guard.
11137 * common/gdb_optional.h: Rename include guard.
11138 * common/gdb_locale.h: Rename include guard.
11139 * common/gdb_assert.h: Rename include guard.
11140 * common/filtered-iterator.h: Rename include guard.
11141 * common/filestuff.h: Rename include guard.
11142 * common/fileio.h: Rename include guard.
11143 * common/environ.h: Rename include guard.
11144 * common/common-utils.h: Rename include guard.
11145 * common/common-types.h: Rename include guard.
11146 * common/common-regcache.h: Rename include guard.
11147 * common/common-inferior.h: Rename include guard.
11148 * common/common-gdbthread.h: Rename include guard.
11149 * common/common-exceptions.h: Rename include guard.
11150 * common/common-defs.h: Rename include guard.
11151 * common/common-debug.h: Rename include guard.
11152 * common/cleanups.h: Rename include guard.
11153 * common/buffer.h: Rename include guard.
11154 * common/btrace-common.h: Rename include guard.
11155 * common/break-common.h: Rename include guard.
11156 * cli/cli-utils.h: Rename include guard.
11157 * cli/cli-style.h: Rename include guard.
11158 * cli/cli-setshow.h: Rename include guard.
11159 * cli/cli-script.h: Rename include guard.
11160 * cli/cli-interp.h: Rename include guard.
11161 * cli/cli-decode.h: Rename include guard.
11162 * cli/cli-cmds.h: Rename include guard.
11163 * charset-list.h: Add include guard.
11164 * buildsym-legacy.h: Rename include guard.
11165 * bfin-tdep.h: Add include guard.
11166 * ax.h: Rename include guard.
11167 * arm-linux-tdep.h: Add include guard.
11168 * arm-fbsd-tdep.h: Add include guard.
11169 * arch/xtensa.h: Rename include guard.
11170 * arch/tic6x.h: Add include guard.
11171 * arch/i386.h: Add include guard.
11172 * arch/arm.h: Rename include guard.
11173 * arch/arm-linux.h: Rename include guard.
11174 * arch/arm-get-next-pcs.h: Rename include guard.
11175 * arch/amd64.h: Add include guard.
11176 * arch/aarch64-insn.h: Rename include guard.
11177 * arch-utils.h: Rename include guard.
11178 * annotate.h: Add include guard.
11179 * amd64-darwin-tdep.h: Rename include guard.
11180 * aarch64-linux-tdep.h: Add include guard.
11181 * aarch64-fbsd-tdep.h: Add include guard.
11182 * aarch32-linux-nat.h: Add include guard.
11184 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11186 * macrotab.c (macro_define_internal): New function that
11187 factorizes macro_define_object_internal and macro_define_function
11189 (macro_define_object_internal): Use macro_define_internal.
11190 (macro_define_function): Likewise.
11192 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11194 * macrocmd.c (extract_identifier): Return
11195 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
11198 2019-02-06 John Baldwin <jhb@FreeBSD.org>
11200 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
11202 2019-02-05 Tom Tromey <tom@tromey.com>
11204 * target.c (target_stack::unpush): Move assertion earlier.
11206 2019-01-30 Tom Tromey <tom@tromey.com>
11209 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
11210 (gdbpy_parse_and_eval): Likewise.
11211 * python/python-internal.h (gdbpy_allow_threads): New class.
11213 2019-01-28 John Baldwin <jhb@FreeBSD.org>
11215 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
11216 (aarch64_fbsd_fpregmap): Move earlier.
11217 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
11218 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
11219 instead of individual calls to trad_frame_set_reg_addr.
11220 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
11222 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
11223 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
11224 instead of individual calls to trad_frame_set_reg_addr.
11226 2019-01-28 Alan Hayward <alan.hayward@arm.com>
11228 * CONTRIBUTE: Replace contribution list with wiki link.
11230 2019-01-25 Tom Tromey <tom@tromey.com>
11232 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
11234 2019-01-25 Tom Tromey <tom@tromey.com>
11236 * xtensa-linux-nat.c: Fix common/ includes.
11237 * xml-support.h: Fix common/ includes.
11238 * xml-support.c: Fix common/ includes.
11239 * x86-linux-nat.c: Fix common/ includes.
11240 * windows-nat.c: Fix common/ includes.
11241 * varobj.h: Fix common/ includes.
11242 * varobj.c: Fix common/ includes.
11243 * value.c: Fix common/ includes.
11244 * valops.c: Fix common/ includes.
11245 * utils.c: Fix common/ includes.
11246 * unittests/xml-utils-selftests.c: Fix common/ includes.
11247 * unittests/utils-selftests.c: Fix common/ includes.
11248 * unittests/unpack-selftests.c: Fix common/ includes.
11249 * unittests/tracepoint-selftests.c: Fix common/ includes.
11250 * unittests/style-selftests.c: Fix common/ includes.
11251 * unittests/string_view-selftests.c: Fix common/ includes.
11252 * unittests/scoped_restore-selftests.c: Fix common/ includes.
11253 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
11254 * unittests/scoped_fd-selftests.c: Fix common/ includes.
11255 * unittests/rsp-low-selftests.c: Fix common/ includes.
11256 * unittests/parse-connection-spec-selftests.c: Fix common/
11258 * unittests/optional-selftests.c: Fix common/ includes.
11259 * unittests/offset-type-selftests.c: Fix common/ includes.
11260 * unittests/observable-selftests.c: Fix common/ includes.
11261 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
11262 * unittests/memrange-selftests.c: Fix common/ includes.
11263 * unittests/memory-map-selftests.c: Fix common/ includes.
11264 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
11265 * unittests/function-view-selftests.c: Fix common/ includes.
11266 * unittests/environ-selftests.c: Fix common/ includes.
11267 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
11268 * unittests/common-utils-selftests.c: Fix common/ includes.
11269 * unittests/cli-utils-selftests.c: Fix common/ includes.
11270 * unittests/array-view-selftests.c: Fix common/ includes.
11271 * ui-file.c: Fix common/ includes.
11272 * tui/tui-io.c: Fix common/ includes.
11273 * tracepoint.h: Fix common/ includes.
11274 * tracepoint.c: Fix common/ includes.
11275 * tracefile-tfile.c: Fix common/ includes.
11276 * top.h: Fix common/ includes.
11277 * top.c: Fix common/ includes.
11278 * thread.c: Fix common/ includes.
11279 * target/waitstatus.h: Fix common/ includes.
11280 * target/waitstatus.c: Fix common/ includes.
11281 * target.h: Fix common/ includes.
11282 * target.c: Fix common/ includes.
11283 * target-memory.c: Fix common/ includes.
11284 * target-descriptions.c: Fix common/ includes.
11285 * symtab.h: Fix common/ includes.
11286 * symfile.c: Fix common/ includes.
11287 * stap-probe.c: Fix common/ includes.
11288 * spu-linux-nat.c: Fix common/ includes.
11289 * sparc-nat.c: Fix common/ includes.
11290 * source.c: Fix common/ includes.
11291 * solib.c: Fix common/ includes.
11292 * solib-target.c: Fix common/ includes.
11293 * ser-unix.c: Fix common/ includes.
11294 * ser-tcp.c: Fix common/ includes.
11295 * ser-pipe.c: Fix common/ includes.
11296 * ser-base.c: Fix common/ includes.
11297 * selftest-arch.c: Fix common/ includes.
11298 * s12z-tdep.c: Fix common/ includes.
11299 * rust-exp.y: Fix common/ includes.
11300 * rs6000-aix-tdep.c: Fix common/ includes.
11301 * riscv-tdep.c: Fix common/ includes.
11302 * remote.c: Fix common/ includes.
11303 * remote-notif.h: Fix common/ includes.
11304 * remote-fileio.h: Fix common/ includes.
11305 * remote-fileio.c: Fix common/ includes.
11306 * regcache.h: Fix common/ includes.
11307 * regcache.c: Fix common/ includes.
11308 * record-btrace.c: Fix common/ includes.
11309 * python/python.c: Fix common/ includes.
11310 * python/py-type.c: Fix common/ includes.
11311 * python/py-inferior.c: Fix common/ includes.
11312 * progspace.h: Fix common/ includes.
11313 * producer.c: Fix common/ includes.
11314 * procfs.c: Fix common/ includes.
11315 * proc-api.c: Fix common/ includes.
11316 * printcmd.c: Fix common/ includes.
11317 * ppc-linux-nat.c: Fix common/ includes.
11318 * parser-defs.h: Fix common/ includes.
11319 * osdata.c: Fix common/ includes.
11320 * obsd-nat.c: Fix common/ includes.
11321 * nat/x86-linux.c: Fix common/ includes.
11322 * nat/x86-linux-dregs.c: Fix common/ includes.
11323 * nat/x86-dregs.h: Fix common/ includes.
11324 * nat/x86-dregs.c: Fix common/ includes.
11325 * nat/ppc-linux.c: Fix common/ includes.
11326 * nat/mips-linux-watch.h: Fix common/ includes.
11327 * nat/mips-linux-watch.c: Fix common/ includes.
11328 * nat/linux-waitpid.c: Fix common/ includes.
11329 * nat/linux-ptrace.h: Fix common/ includes.
11330 * nat/linux-ptrace.c: Fix common/ includes.
11331 * nat/linux-procfs.c: Fix common/ includes.
11332 * nat/linux-personality.c: Fix common/ includes.
11333 * nat/linux-osdata.c: Fix common/ includes.
11334 * nat/linux-namespaces.c: Fix common/ includes.
11335 * nat/linux-btrace.h: Fix common/ includes.
11336 * nat/linux-btrace.c: Fix common/ includes.
11337 * nat/fork-inferior.c: Fix common/ includes.
11338 * nat/amd64-linux-siginfo.c: Fix common/ includes.
11339 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
11340 * nat/aarch64-linux.c: Fix common/ includes.
11341 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
11342 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
11343 * namespace.h: Fix common/ includes.
11344 * mips-linux-tdep.c: Fix common/ includes.
11345 * minsyms.c: Fix common/ includes.
11346 * mi/mi-parse.h: Fix common/ includes.
11347 * mi/mi-main.c: Fix common/ includes.
11348 * mi/mi-cmd-env.c: Fix common/ includes.
11349 * memrange.h: Fix common/ includes.
11350 * memattr.c: Fix common/ includes.
11351 * maint.h: Fix common/ includes.
11352 * maint.c: Fix common/ includes.
11353 * main.c: Fix common/ includes.
11354 * machoread.c: Fix common/ includes.
11355 * location.c: Fix common/ includes.
11356 * linux-thread-db.c: Fix common/ includes.
11357 * linux-nat.c: Fix common/ includes.
11358 * linux-fork.c: Fix common/ includes.
11359 * inline-frame.c: Fix common/ includes.
11360 * infrun.c: Fix common/ includes.
11361 * inflow.c: Fix common/ includes.
11362 * inferior.h: Fix common/ includes.
11363 * inferior.c: Fix common/ includes.
11364 * infcmd.c: Fix common/ includes.
11365 * inf-ptrace.c: Fix common/ includes.
11366 * inf-child.c: Fix common/ includes.
11367 * ia64-linux-nat.c: Fix common/ includes.
11368 * i387-tdep.c: Fix common/ includes.
11369 * i386-tdep.c: Fix common/ includes.
11370 * i386-linux-tdep.c: Fix common/ includes.
11371 * i386-linux-nat.c: Fix common/ includes.
11372 * i386-go32-tdep.c: Fix common/ includes.
11373 * i386-fbsd-tdep.c: Fix common/ includes.
11374 * i386-fbsd-nat.c: Fix common/ includes.
11375 * guile/scm-type.c: Fix common/ includes.
11376 * guile/guile.c: Fix common/ includes.
11377 * go32-nat.c: Fix common/ includes.
11378 * gnu-nat.c: Fix common/ includes.
11379 * gdbthread.h: Fix common/ includes.
11380 * gdbarch-selftests.c: Fix common/ includes.
11381 * gdb_usleep.c: Fix common/ includes.
11382 * gdb_select.h: Fix common/ includes.
11383 * gdb_bfd.c: Fix common/ includes.
11384 * gcore.c: Fix common/ includes.
11385 * fork-child.c: Fix common/ includes.
11386 * findvar.c: Fix common/ includes.
11387 * fbsd-nat.c: Fix common/ includes.
11388 * event-top.c: Fix common/ includes.
11389 * event-loop.c: Fix common/ includes.
11390 * dwarf2read.c: Fix common/ includes.
11391 * dwarf2loc.c: Fix common/ includes.
11392 * dwarf2-frame.c: Fix common/ includes.
11393 * dwarf-index-cache.c: Fix common/ includes.
11394 * dtrace-probe.c: Fix common/ includes.
11395 * disasm-selftests.c: Fix common/ includes.
11396 * defs.h: Fix common/ includes.
11397 * csky-tdep.c: Fix common/ includes.
11398 * cp-valprint.c: Fix common/ includes.
11399 * cp-support.h: Fix common/ includes.
11400 * cp-support.c: Fix common/ includes.
11401 * corelow.c: Fix common/ includes.
11402 * completer.h: Fix common/ includes.
11403 * completer.c: Fix common/ includes.
11404 * compile/compile.c: Fix common/ includes.
11405 * compile/compile-loc2c.c: Fix common/ includes.
11406 * compile/compile-cplus-types.c: Fix common/ includes.
11407 * compile/compile-cplus-symbols.c: Fix common/ includes.
11408 * command.h: Fix common/ includes.
11409 * cli/cli-dump.c: Fix common/ includes.
11410 * cli/cli-cmds.c: Fix common/ includes.
11411 * charset.c: Fix common/ includes.
11412 * build-id.c: Fix common/ includes.
11413 * btrace.h: Fix common/ includes.
11414 * btrace.c: Fix common/ includes.
11415 * breakpoint.h: Fix common/ includes.
11416 * breakpoint.c: Fix common/ includes.
11418 (enum agent_op): Fix common/ includes.
11419 * ax-general.c (struct aop_map): Fix common/ includes.
11420 * ax-gdb.c: Fix common/ includes.
11421 * auxv.c: Fix common/ includes.
11422 * auto-load.c: Fix common/ includes.
11423 * arm-tdep.c: Fix common/ includes.
11424 * arch/riscv.c: Fix common/ includes.
11425 * arch/ppc-linux-common.c: Fix common/ includes.
11426 * arch/i386.c: Fix common/ includes.
11427 * arch/arm.c: Fix common/ includes.
11428 * arch/arm-linux.c: Fix common/ includes.
11429 * arch/arm-get-next-pcs.c: Fix common/ includes.
11430 * arch/amd64.c: Fix common/ includes.
11431 * arch/aarch64.c: Fix common/ includes.
11432 * arch/aarch64-insn.c: Fix common/ includes.
11433 * arch-utils.c: Fix common/ includes.
11434 * amd64-windows-tdep.c: Fix common/ includes.
11435 * amd64-tdep.c: Fix common/ includes.
11436 * amd64-sol2-tdep.c: Fix common/ includes.
11437 * amd64-obsd-tdep.c: Fix common/ includes.
11438 * amd64-nbsd-tdep.c: Fix common/ includes.
11439 * amd64-linux-tdep.c: Fix common/ includes.
11440 * amd64-linux-nat.c: Fix common/ includes.
11441 * amd64-fbsd-tdep.c: Fix common/ includes.
11442 * amd64-fbsd-nat.c: Fix common/ includes.
11443 * amd64-dicos-tdep.c: Fix common/ includes.
11444 * amd64-darwin-tdep.c: Fix common/ includes.
11445 * agent.c: Fix common/ includes.
11446 * ada-lang.h: Fix common/ includes.
11447 * ada-lang.c: Fix common/ includes.
11448 * aarch64-tdep.c: Fix common/ includes.
11450 2019-01-25 Tom Tromey <tom@tromey.com>
11452 * common/create-version.sh: Use common/version.h.
11454 2019-01-24 Pedro Alves <palves@redhat.com>
11456 * infrun.c (signal_stop, signal_print, signal_program)
11457 (signal_catch, signal_pass): Now arrays instead of pointers.
11458 (update_signals_program_target, do_target_resume)
11459 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
11460 * linux-nat.c (linux_nat_target::pass_signals)
11461 (linux_nat_target::create_inferior, linux_nat_target::attach):
11463 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
11464 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
11465 * procfs.c (procfs_target::pass_signals): Adjust.
11466 * record-full.c (record_full_target::resume): Adjust.
11467 * remote.c (remote_target::pass_signals)
11468 (remote_target::program_signals): Adjust.
11469 * target-debug.h (target_debug_print_signals): Now takes a
11470 gdb::array_view as parameter. Adjust.
11471 * target.h (target_ops) <pass_signals, program_signals>: Replace
11472 pointer and length parameters with gdb::array_view.
11473 (target_pass_signals, target_program_signals): Likewise.
11474 * target-delegates.c: Regenerate.
11476 2019-01-24 Pedro Alves <palves@redhat.com>
11478 * common/forward-scope-exit.h
11479 (forward_scope_exit::forward_scope_exit): Pass arguments to
11480 m_bind_function directly, instead of creating a std::bind and
11483 2019-01-24 Alan Hayward <alan.hayward@arm.com>
11485 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
11486 for static members.
11487 (pass_in_v_vfp_candidate): Likewise.
11489 2019-01-23 Tom Tromey <tom@tromey.com>
11490 Pedro Alves <palves@redhat.com>
11492 * regcache.c (class regcache_invalidator): Remove.
11493 (regcache::raw_write): Use make_scope_exit.
11495 2019-01-23 Tom Tromey <tom@tromey.com>
11497 * ui-out.h (class ui_out_emit_type): Update comment.
11499 2019-01-23 Tom Tromey <tom@tromey.com>
11501 * infrun.c (fetch_inferior_event): Update comment.
11503 2019-01-23 Tom Tromey <tom@tromey.com>
11504 Pedro Alves <palves@redhat.com>
11506 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
11508 (fetch_inferior_event): Use SCOPE_EXIT.
11511 2019-01-23 Tom Tromey <tom@tromey.com>
11512 Pedro Alves <palves@redhat.com>
11514 * infrun.c (disable_thread_events): Delete.
11515 (stop_all_threads): Use SCOPE_EXIT.
11517 2019-01-23 Tom Tromey <tom@tromey.com>
11518 Pedro Alves <palves@redhat.com>
11520 * symfile.c: Include forward-scope-exit.h.
11521 (clear_symtab_users_cleanup): Replace forward declaration with
11522 a FORWARD_SCOPE_EXIT.
11523 (syms_from_objfile_1): Use the forward_scope_exit and
11524 gdb::optional instead of cleanup_function.
11525 (reread_symbols): Use the forward_scope_exit instead of
11527 (clear_symtab_users_cleanup): Remove function.
11529 2019-01-23 Tom Tromey <tom@tromey.com>
11530 Pedro Alves <palves@redhat.com>
11532 * linux-nat.c: Include scope-exit.h.
11533 (cleanup_target_stop): Remove.
11534 (linux_nat_target::static_tracepoint_markers_by_strid): Use
11537 2019-01-23 Tom Tromey <tom@tromey.com>
11538 Pedro Alves <palves@redhat.com>
11540 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
11541 (call_function_by_hand_dummy): Use SCOPE_EXIT.
11543 2019-01-23 Tom Tromey <tom@tromey.com>
11544 Andrew Burgess <andrew.burgess@embecosm.com>
11545 Pedro Alves <palves@redhat.com>
11547 * infrun.c (fetch_inferior_event): Use scope_exit.
11548 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
11549 * top.c (execute_command): Use scope_exit.
11550 * breakpoint.c (bpstat_do_actions): Use scope_exit.
11551 * utils.c (do_bpstat_clear_actions_cleanup)
11552 (make_bpstat_clear_actions_cleanup): Remove.
11554 2019-01-23 Tom Tromey <tom@tromey.com>
11555 Pedro Alves <palves@redhat.com>
11557 * infrun.c: Include "common/scope-exit.h"
11558 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
11559 (wait_for_inferior): Use SCOPE_EXIT.
11560 (fetch_inferior_event): Use scope_exit.
11562 2019-01-23 Tom Tromey <tom@tromey.com>
11563 Pedro Alves <palves@redhat.com>
11565 * breakpoint.c (create_breakpoint): Remove cleanup.
11567 2019-01-23 Tom Tromey <tom@tromey.com>
11568 Andrew Burgess <andrew.burgess@embecosm.com>
11569 Pedro Alves <palves@redhat.com>
11571 2019-01-23 Pedro Alves <palves@redhat.com>
11573 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
11575 2019-01-23 Pedro Alves <palves@redhat.com>
11576 Andrew Burgess <andrew.burgess@embecosm.com>
11578 * gdbthread.h: Include "common/forward-scope-exit.h".
11579 (scoped_finish_thread_state): Redefine custom class in terms of
11580 forward_scope_exit.
11582 2019-01-23 Pedro Alves <palves@redhat.com>
11583 Andrew Burgess <andrew.burgess@embecosm.com>
11585 * common/forward-scope-exit.h: New file.
11587 2019-01-23 Pedro Alves <palves@redhat.com>
11588 Andrew Burgess <andrew.burgess@embecosm.com>
11589 Tom Tromey <tom@tromey.com>
11591 * common/scope-exit.h: New file.
11593 2019-01-23 Pedro Alves <palves@redhat.com>
11595 * common/preprocessor.h (ESC): Rename to ...
11596 (ESC_PARENS): ... this.
11597 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
11598 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
11600 2019-01-23 Tom Tromey <tom@tromey.com>
11602 * language.h (class scoped_switch_to_sym_language_if_auto):
11603 Initialize m_lang in both cases.
11605 2019-01-23 Alan Hayward <alan.hayward@arm.com>
11607 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
11610 2019-01-22 Tom Tromey <tom@tromey.com>
11612 * corelow.c: Do not include sys/file.h.
11614 2019-01-22 Tom Tromey <tom@tromey.com>
11616 * tui/tui-wingeneral.h: Include gdb_curses.h.
11618 2019-01-22 Tom Tromey <tom@tromey.com>
11620 * source-cache.h (class source_cache) <get_source_lines,
11621 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
11623 2019-01-22 Tom Tromey <tom@tromey.com>
11625 * remote-fileio.h (struct remote_target): Declare.
11627 2019-01-22 Tom Tromey <tom@tromey.com>
11629 * python/py-arch.c: Do not include py-ref.h.
11630 * python/py-bpevent.c: Do not include py-ref.h.
11631 * python/py-cmd.c: Do not include py-ref.h.
11632 * python/py-continueevent.c: Do not include py-ref.h.
11633 * python/py-event.h: Do not include py-ref.h.
11634 * python/py-evtregistry.c: Do not include py-ref.h.
11635 * python/py-finishbreakpoint.c: Do not include py-ref.h.
11636 * python/py-frame.c: Do not include py-ref.h.
11637 * python/py-framefilter.c: Do not include py-ref.h.
11638 * python/py-function.c: Do not include py-ref.h.
11639 * python/py-infevents.c: Do not include py-ref.h.
11640 * python/py-linetable.c: Do not include py-ref.h.
11641 * python/py-objfile.c: Do not include py-ref.h.
11642 * python/py-param.c: Do not include py-ref.h.
11643 * python/py-prettyprint.c: Do not include py-ref.h.
11644 * python/py-progspace.c: Do not include py-ref.h.
11645 * python/py-symbol.c: Do not include py-ref.h.
11646 * python/py-symtab.c: Do not include py-ref.h.
11647 * python/py-type.c: Do not include py-ref.h.
11648 * python/py-unwind.c: Do not include py-ref.h.
11649 * python/py-utils.c: Do not include py-ref.h.
11650 * python/py-value.c: Do not include py-ref.h.
11651 * python/py-varobj.c: Do not include py-ref.h.
11652 * python/py-xmethods.c: Do not include py-ref.h.
11653 * python/python.c: Do not include py-ref.h.
11654 * varobj.c: Do not include py-ref.h.
11656 2019-01-22 Tom Tromey <tom@tromey.com>
11658 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
11659 keyword for bcache.
11661 2019-01-22 Tom Tromey <tom@tromey.com>
11663 * compile/compile-cplus-types.c: Remove a comment by #include.
11665 2019-01-22 Tom Tromey <tom@tromey.com>
11667 * compile/gcc-c-plugin.h: Include compile-internal.h.
11669 2019-01-22 Tom Tromey <tom@tromey.com>
11671 * stabsread.c (EXTERN): Do not define.
11672 (symnum, next_symbol_text_func, processing_gcc_compilation)
11673 (within_function, global_sym_chain, global_stabs)
11674 (previous_stab_code, this_object_header_files)
11675 (n_this_object_header_files)
11676 (n_allocated_this_object_header_files): Define.
11677 * stabsread.h (EXTERN): Never define. Use "extern".
11679 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11681 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
11684 2019-01-21 Tom Tromey <tom@tromey.com>
11686 * ui-out.c: Fix includes.
11687 * tui/tui-source.c: Fix includes.
11688 * target.c: Fix includes.
11689 * remote.c: Fix includes.
11690 * regcache.c: Fix includes.
11691 * python/py-block.c: Fix includes.
11692 * printcmd.c: Fix includes.
11693 * or1k-tdep.c: Fix includes.
11694 * mi/mi-main.c: Fix includes.
11695 * m32r-tdep.c: Fix includes.
11696 * csky-tdep.c: Fix includes.
11697 * compile/compile-cplus-types.c: Fix includes.
11698 * cli/cli-interp.c: Fix includes.
11700 2019-01-21 Alan Hayward <alan.hayward@arm.com>
11702 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
11705 2019-01-16 Tom Tromey <tom@tromey.com>
11707 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
11709 (struct objfile) <msymbols_range>: Move from top level.
11710 <msymbols>: New method.
11711 (class objfile_msymbols): Remove.
11712 * symtab.c (default_collect_symbol_completion_matches_break_on):
11714 * symmisc.c (dump_msymbols): Update.
11715 * stabsread.c (scan_file_globals): Update.
11716 * objc-lang.c (info_selectors_command, info_classes_command)
11717 (find_methods): Update.
11718 * minsyms.c (find_solib_trampoline_target): Update.
11719 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
11720 * coffread.c (coff_symfile_read): Update.
11721 * ada-lang.c (ada_lookup_simple_minsym)
11722 (ada_collect_symbol_completion_matches): Update.
11724 2019-01-16 Tom Tromey <tom@tromey.com>
11726 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
11727 type. Remove no-argument constructor.
11728 <iterator::operator++>: Simplify.
11730 <end>: Use minimal_symbol_count.
11732 2019-01-16 Tom Tromey <tom@tromey.com>
11734 * objfiles.h (struct objfile) <psymtabs>: New method.
11735 (class objfile_psymtabs): Remove.
11736 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
11738 <range>: New method.
11739 (require_partial_symbols): Change return type.
11740 * psymtab.c (require_partial_symbols)
11741 (psym_expand_symtabs_matching): Update.
11742 * mdebugread.c (parse_partial_symbols): Update.
11743 * dbxread.c (dbx_end_psymtab): Update.
11745 2019-01-15 Tom Tromey <tom@tromey.com>
11747 * symtab.c (lookup_objfile_from_block)
11748 (lookup_symbol_in_objfile_symtabs)
11749 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
11750 (find_line_symtab, info_sources_command)
11751 (default_collect_symbol_completion_matches_break_on)
11752 (make_source_files_completion_list): Update.
11753 * symmisc.c (print_objfile_statistics, dump_objfile)
11754 (maintenance_print_symbols, maintenance_info_symtabs)
11755 (maintenance_check_symtabs, maintenance_info_line_tables):
11757 * source.c (select_source_symtab)
11758 (forget_cached_source_info_for_objfile): Update.
11759 * objfiles.h (class objfile_compunits): Remove.
11760 (struct objfile) <compunits_range>: New typedef.
11761 (compunits): New method.
11762 * objfiles.c (objfile_relocate1): Update.
11763 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11764 * maint.c (count_symtabs_and_blocks): Update.
11765 * linespec.c (iterate_over_all_matching_symtabs): Update.
11766 * cp-support.c (add_symbol_overload_list_qualified): Update.
11767 * coffread.c (coff_symtab_read): Update.
11768 * ada-lang.c (add_nonlocal_symbols)
11769 (ada_collect_symbol_completion_matches)
11770 (ada_add_global_exceptions): Update.
11772 2019-01-15 Tom Tromey <tom@tromey.com>
11774 * progspace.h (program_space) <objfiles_safe_range>: New
11776 <objfiles_safe>: New method.
11777 * objfiles.h (class all_objfiles_safe): Remove.
11778 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
11779 * jit.c (jit_inferior_exit_hook): Update.
11781 2019-01-17 Tom Tromey <tom@tromey.com>
11783 * progspace.h (program_space) <objfiles_range>: New typedef.
11784 <objfiles>: New method.
11785 <objfiles_head>: Rename from objfiles.
11786 (object_files): Update.
11787 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
11788 * guile/scm-pretty-print.c
11789 (ppscm_find_pretty_printer_from_objfiles): Update.
11790 * guile/scm-objfile.c (gdbscm_objfiles): Update.
11791 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
11793 * python/py-progspace.c (pspy_get_objfiles): Update.
11794 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
11796 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
11797 (objfpy_lookup_objfile_by_build_id): Update.
11798 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11799 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
11801 * symtab.c (iterate_over_symtabs, matching_obj_sections)
11802 (expand_symtab_containing_pc, lookup_objfile_from_block)
11803 (lookup_static_symbol, basic_lookup_transparent_type)
11804 (find_pc_sect_compunit_symtab, find_symbol_at_address)
11805 (find_line_symtab, info_sources_command)
11806 (default_collect_symbol_completion_matches_break_on)
11807 (make_source_files_completion_list, find_main_name): Update.
11808 * symmisc.c (print_symbol_bcache_statistics)
11809 (print_objfile_statistics, maintenance_print_symbols)
11810 (maintenance_print_msymbols, maintenance_print_objfiles)
11811 (maintenance_info_symtabs, maintenance_check_symtabs)
11812 (maintenance_expand_symtabs, maintenance_info_line_tables):
11814 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
11815 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
11816 (map_overlay_command, unmap_overlay_command)
11817 (simple_overlay_update, expand_symtabs_matching)
11818 (map_symbol_filenames): Update.
11819 * symfile-debug.c (set_debug_symfile): Update.
11820 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
11822 * source.c (select_source_symtab, forget_cached_source_info):
11824 * solib.c (solib_read_symbols): Update.
11825 * solib-spu.c (append_ocl_sos): Update.
11826 * psymtab.c (maintenance_print_psymbols)
11827 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
11828 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
11829 * printcmd.c (info_symbol_command): Update.
11830 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
11832 * objfiles.h (class all_objfiles): Remove.
11833 * objfiles.c (have_partial_symbols, have_full_symbols)
11834 (have_minimal_symbols, qsort_cmp, update_section_map)
11835 (shared_objfile_contains_address_p)
11836 (default_iterate_over_objfiles_in_search_order): Update.
11837 * objc-lang.c (info_selectors_command, info_classes_command)
11838 (find_methods): Update.
11839 * minsyms.c (find_solib_trampoline_target): Update.
11840 * maint.c (maintenance_info_sections)
11841 (maintenance_translate_address, count_symtabs_and_blocks):
11843 * main.c (captured_main_1): Update.
11844 * linux-thread-db.c (try_thread_db_load_from_pdir)
11845 (has_libpthread): Update.
11846 * linespec.c (iterate_over_all_matching_symtabs)
11847 (search_minsyms_for_name): Update.
11848 * jit.c (jit_find_objf_with_entry_addr): Update.
11849 * hppa-tdep.c (find_unwind_entry)
11850 (hppa_lookup_stub_minimal_symbol): Update.
11851 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
11853 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
11854 (elf_gnu_ifunc_resolve_by_got): Update.
11855 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
11856 * dwarf-index-write.c (save_gdb_index_command): Update.
11857 * cp-support.c (add_symbol_overload_list_qualified): Update.
11858 * breakpoint.c (create_overlay_event_breakpoint)
11859 (create_longjmp_master_breakpoint)
11860 (create_std_terminate_master_breakpoint)
11861 (create_exception_master_breakpoint): Update.
11862 * blockframe.c (find_pc_partial_function): Update.
11863 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
11864 (ada_collect_symbol_completion_matches)
11865 (ada_add_global_exceptions): Update.
11867 2019-01-17 Tom Tromey <tom@tromey.com>
11869 * solib-target.c (lm_info_target_p): Remove typedef. Don't
11871 (solib_target_parse_libraries): Change return type.
11872 (library_list_start_segment, library_list_start_section)
11873 (library_list_end_library, library_list_start_library); Update.
11874 (solib_target_free_library_list): Remove.
11875 (solib_target_parse_libraries): Remove cleanup. Change return
11877 (solib_target_current_sos): Update.
11879 2019-01-17 Tom Tromey <tromey@bapiya>
11881 * valprint.c: Replace "the the" with "the".
11882 * symtab.c: Replace "the the" with "the".
11883 * solib.c: Replace "the the" with "the".
11884 * solib-dsbt.c: Replace "the the" with "the".
11885 * linespec.c: Replace "the the" with "the".
11886 * dwarf2loc.h: Replace "the the" with "the".
11887 * amd64-windows-tdep.c: Replace "the the" with "the".
11888 * aarch64-tdep.c: Replace "the the" with "the".
11890 2019-01-16 Keith Seitz <keiths@redhat.com>
11893 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
11894 <builder>: Rename to ..
11895 <m_builder>: ... this and make private.
11896 (dwarf2_cu::get_builder): New method. Change all users of
11897 `builder' to use this method.
11898 (dwarf2_start_symtab): Move to ...
11899 (dwarf2_cu::start_symtab): ... here. Update all callers
11900 (setup_type_unit_groups): Move to ...
11901 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
11903 (dwarf2_cu::reset_builder): New method.
11904 (process_full_compunit, process_full_type_unit): Use
11905 dwarf2_cu::reset_builder.
11906 (follow_die_offset): Record the ancestor CU if it is different
11907 from the followed DIE's CU.
11908 (follow_die_sig_1): Likewise.
11910 2019-01-15 Tom Tromey <tom@tromey.com>
11912 * remote.c (class remote_state) <buf>: Now a char_vector.
11913 <buf_size>: Remove.
11914 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
11916 (remote_target::getpkt_or_notif_sane_1)
11917 (remote_target::getpkt_sane)
11918 (remote_target::getpkt_or_notif_sane): Likewise.
11919 (class remote_target) <putpkt>: New overload.
11920 (remote_target::read_frame): Change type of "buf_p". Remove
11921 sizeof_p parameter.
11922 (packet_ok): New overload.
11923 (packet_check_result): New overload.
11926 2019-01-14 Tom Tromey <tom@tromey.com>
11928 * remote-notif.c (handle_notification, remote_notif_ack)
11929 (remote_notif_parse): Make "buf" const.
11930 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
11932 (remote_notif_parse, remote_notif_ack, handle_notification):
11934 * remote.c (remote_notif_stop_parse): Make "buf" const.
11935 (remote_target::remote_parse_stop_reply): Make "buf" const.
11936 (remote_notif_stop_ack): Make "buf" const.
11938 2019-01-14 Tom Tromey <tom@tromey.com>
11940 * remote.c (remote_console_output): Make parameter const.
11942 2019-01-14 Tom Tromey <tom@tromey.com>
11944 * target-debug.h (target_debug_print_signals): Constify.
11945 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
11946 * procfs.c (procfs_target::pass_signals): Update.
11947 * linux-nat.c (linux_nat_target::pass_signals): Update.
11948 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
11949 * target-delegates.c: Rebuild.
11950 * remote.c (remote_target::program_signals): Update.
11951 (remote_target::pass_signals): Update.
11952 * target.c (target_pass_signals): Constify argument.
11953 (target_program_signals): Likewise.
11954 * target.h (struct target_ops) <pass_signals, program_signals>:
11956 (target_pass_signals, target_program_signals): Constify argument.
11958 2019-01-14 Tom Tromey <tom@tromey.com>
11961 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
11963 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11965 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
11967 * rs6000-tdep.c: Include reggroups.h.
11968 (IS_V_ALIAS_PSEUDOREG): Define.
11969 (rs6000_register_name): Return names for the "vX" aliases.
11970 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
11971 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
11972 aliases. Call default_register_reggroup_p for all other
11974 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
11976 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
11977 Handle "vX" aliases.
11978 (v_alias_pseudo_register_collect): New function.
11979 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
11980 (rs6000_gdbarch_init): Initialize "vX" aliases as
11981 pseudo-registers. Restore registration of
11982 rs6000_pseudo_register_reggroup_p with
11983 set_tdesc_pseudo_register_reggroup_p.
11985 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
11987 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
11988 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
11989 set_gdbarch_num_pseudo_regs.
11991 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11993 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
11994 Remove arg prefixname, add do_set and do_show.
11995 Add member functions set_list and show_list.
11996 * cli/cli-style.c (class cli_style_option): Update accordingly.
11997 (style_set_list): Move to file scope.
11998 (style_show_list): Likewise.
11999 (set_style): Call help_list.
12000 (show_style): Call cmd_show_list.
12001 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
12002 Update to use the new macro.
12004 2019-10-12 Joel Brobecker <brobecker@adacore.com>
12006 * ada-lang.c (_initialize_ada_language): Expand the help text
12007 for the "catch exception" command.
12009 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12011 * symtab.c (matching_obj_sections): Initialize obj,
12012 declare it closer to its usage.
12014 2019-01-10 Tom Tromey <tom@tromey.com>
12016 * thread-iter.h (inf_threads_iterator): Use next_iterator.
12017 (basic_inf_threads_range): Remove.
12018 (inf_threads_range, inf_non_exited_threads_range)
12019 (safe_inf_threads_range): Use next_adapter.
12021 2019-01-10 Keith Seitz <keiths@redhat.com>
12025 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
12026 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
12028 2019-01-10 Keith Seitz <keiths@redhat.com>
12032 * dictionary.c (pending_to_vector): Remove.
12033 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12034 Remove _1 suffix, replacing functions of the same name. Update
12036 (dict_create_hashed, dict_create_hashed_expandable)
12037 (dict_create_linear, dict_create_linear_expandable, dict_free)
12038 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
12039 Make functions static.
12041 2019-01-10 Keith Seitz <keiths@redhat.com>
12045 * dictionary.h (struct dictionary): Replace declaration with
12047 (dict_create_hashed, dict_create_hashed_expandable)
12048 (dict_create_linear, dict_create_linear_expandable)
12049 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
12050 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
12051 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
12052 taking multidictionary argument.
12053 [ALL_DICT_SYMBOLS]: Update for multidictionary.
12054 * block.h (struct block) <dict>: Change to multidictionary
12055 and rename `multidict'.
12056 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
12057 symmisc.c: Update all dictionary references to multidictionary.
12059 2019-01-10 Keith Seitz <keiths@redhat.com>
12063 * dictionary.c: Include unordered_map.
12064 (pending_to_vector): New function.
12065 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12066 Rewrite the non-"_1" functions to take vector instead
12068 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
12069 "new" _1 versions of the same name.
12070 (multidictionary): Define.
12071 (std::hash<enum language): New definition.
12072 (collate_pending_symbols_by_language, mdict_create_hashed)
12073 (mdict_create_hashed_expandable, mdict_create_linear)
12074 (mdict_create_linear_expandable, mdict_free)
12075 (find_language_dictionary, create_new_language_dictionary)
12076 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
12077 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
12078 (mdict_size, mdict_empty): New functions.
12079 * dictionary.h (mdict_iterator): Define.
12081 2019-01-10 Pedro Alves <palves@redhat.com>
12083 * breakpoint.c (read_uploaded_action)
12084 (create_tracepoint_from_upload): Adjust to use
12085 gdb::unique_xmalloc_ptr.
12086 * ctf.c (ctf_write_uploaded_tp):
12087 (SET_ARRAY_FIELD): Use emplace_back.
12088 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
12089 * tracefile-tfile.c (tfile_write_uploaded_tp):
12090 * tracepoint.c (parse_tracepoint_definition): Adjust to use
12091 gdb::unique_xmalloc_ptr.
12092 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
12093 at_string, cond_string, cmd_strings>: Replace char pointers
12094 with gdb::unique_xmalloc_ptr.
12096 2019-01-10 Pedro Alves <palves@redhat.com>
12098 * solib-target.c (library_list_start_library): Don't xstrdup name.
12100 2019-01-10 Pedro Alves <palves@redhat.com>
12102 * mdebugread.c (parse_partial_symbols): Use
12103 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
12105 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
12107 * linux-fork.c (scoped_switch_fork_info)
12108 <~scoped_switch_fork_info>: Fix incorrect variable name.
12110 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
12112 * linux-fork.c (scoped_switch_fork_info)
12113 <scoped_switch_fork_info>: Make explicit.
12114 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
12116 2019-01-10 Tom Tromey <tom@tromey.com>
12118 * objfiles.h (objfile::reset_psymtabs): Update.
12119 * objfiles.c (objfile::objfile): Update.
12120 * psymtab.h (psymtab_storage::obstack): Update.
12121 (psymtab_storage::m_obstack): Use gdb::optional.
12122 (class psymtab_storage): Update comment. Remove objfile
12124 * psymtab.c (psymtab_storage::psymtab_storage): Update.
12126 2019-01-10 Tom Tromey <tom@tromey.com>
12128 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
12129 <free_psymtabs>: Now private.
12130 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
12131 (allocate_psymtab): Use new method.
12133 2019-01-10 Tom Tromey <tom@tromey.com>
12135 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
12136 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
12137 * mdebugread.c (parse_partial_symbols): Use
12138 allocate_dependencies.
12139 * dwarf2read.c (dwarf2_create_include_psymtab): Use
12140 allocate_dependencies.
12141 (process_psymtab_comp_unit_reader)
12142 (build_type_psymtab_dependencies): Likewise.
12143 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
12145 2019-01-10 Tom Tromey <tom@tromey.com>
12147 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
12148 PSYMBOL_SET_LANGUAGE.
12149 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
12151 2019-01-10 Tom Tromey <tom@tromey.com>
12153 * psymtab.h (psymtab_storage::obstack): New method.
12154 <m_obstack>: Rename from obstack; now private.
12155 * psymtab.c (psymtab_storage): Update.
12156 * dwarf2read.c (create_addrmap_from_index)
12157 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
12160 2019-01-10 Tom Tromey <tom@tromey.com>
12162 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
12163 * objfiles.h (objfile::reset_psymtabs): New method.
12165 2019-01-10 Tom Tromey <tom@tromey.com>
12167 * symmisc.c (print_symbol_bcache_statistics): Update.
12168 (print_objfile_statistics): Update.
12169 * symfile.c (reread_symbols): Update.
12170 * psymtab.h (class psymtab_storage): New.
12171 * psymtab.c (psymtab_storage): New constructor.
12172 (~psymtab_storage): New destructor.
12173 (require_partial_symbols): Update.
12174 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
12175 (find_pc_sect_psymtab, find_pc_sect_psymbol)
12176 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
12177 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
12178 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
12179 (start_psymtab_common, end_psymtab_common)
12180 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
12181 (allocate_psymtab): Update.
12182 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
12184 (dump_psymtab_addrmap, maintenance_print_psymbols)
12185 (maintenance_check_psymtabs): Update.
12186 (class objfile_psymtabs): Move to objfiles.h.
12187 * psympriv.h (discard_psymtab): Now inline.
12188 (psymtab_discarder::psymtab_discarder): Update.
12189 (psymtab_discarder::~psymtab_discarder): Update.
12190 (ALL_OBJFILE_PSYMTABS): Rewrite.
12191 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
12192 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
12194 <partial_symtabs>: New field.
12195 (class objfile_psymtabs): Move from psymtab.h. Update.
12196 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
12198 (objfile::~objfile): Don't destroy psymbol_cache.
12199 * mdebugread.c (parse_partial_symbols): Update.
12200 * dwarf2read.c (create_addrmap_from_index)
12201 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12202 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
12203 (add_partial_subprogram, dwarf2_ranges_read): Update.
12204 * dwarf-index-write.c (write_address_map)
12205 (write_one_signatured_type, recursively_write_psymbols)
12206 (class debug_names, class debug_names, write_psymtabs_to_index):
12209 2019-01-10 Tom Tromey <tom@tromey.com>
12211 * symtab.h (SYMBOL_SET_NAMES): Update.
12212 (symbol_set_names): Update.
12213 (MSYMBOL_SET_NAMES): Update.
12214 * symtab.c (symbol_set_names): Change argument to be an
12215 objfile_per_bfd_storage.
12216 * psymtab.c (add_psymbol_to_bcache): Update.
12217 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
12219 2019-01-10 Tom Tromey <tom@tromey.com>
12221 * symtab.c (create_demangled_names_hash): Change argument to be an
12222 objfile_per_bfd_storage.
12223 (symbol_set_names): Update.
12225 2019-01-10 Tom Tromey <tom@tromey.com>
12227 * xcoffread.c (xcoff_initial_scan): Unconditionally call
12229 * psymtab.c (init_psymbol_list): Do nothing if already called.
12230 * psympriv.h (init_psymbol_list): Add comment.
12231 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
12233 * dbxread.c (dbx_symfile_read): Unconditionally call
12236 2019-01-10 Tom Tromey <tom@tromey.com>
12238 * xcoffread.c (scan_xcoff_symtab): Update.
12239 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
12241 * mdebugread.c (parse_partial_symbols)
12242 (handle_psymbol_enumerators): Update.
12243 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
12244 * dbxread.c (read_dbx_symtab): Update.
12245 * psympriv.h (psymbol_placement): New enum.
12246 (add_psymbol_to_list): Update.
12248 2019-01-10 Tom Tromey <tom@tromey.com>
12250 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
12251 static_psymbols parameters.
12252 (scan_xcoff_symtab): Update.
12253 * psymtab.c (start_psymtab_common): Remove global_psymbols and
12254 static_psymbols parameters.
12255 * psympriv.h (start_psymtab_common): Update.
12256 * mdebugread.c (parse_partial_symbols): Update.
12257 * dwarf2read.c (create_partial_symtab): Update.
12258 * dbxread.c (read_dbx_symtab): Update.
12259 (start_psymtab): Remove global_psymbols and static_psymbols
12262 2019-01-10 Tom Tromey <tom@tromey.com>
12264 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
12265 * psymtab.c (allocate_psymtab): Add comment.
12266 * psympriv.h (allocate_psymtab): Add comment.
12267 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
12269 * dbxread.c (dbx_end_psymtab): Remove some initializations.
12271 2019-01-10 Tom Tromey <tom@tromey.com>
12273 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12275 * mipsread.c: Include mdebugread.h.
12276 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12278 * elfread.c: Include mdebugread.h.
12280 2019-01-09 Tom Tromey <tom@tromey.com>
12282 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
12283 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
12284 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
12285 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
12286 (psym_lookup_symbol, psym_find_last_source_symtab)
12287 (psym_forget_cached_source_info, psym_print_stats)
12288 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
12289 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
12290 (psym_map_matching_symbols, psym_expand_symtabs_matching)
12291 (psym_find_compunit_symtab_by_address)
12292 (maintenance_print_psymbols, maintenance_info_psymtabs)
12293 (maintenance_check_psymtabs): Use ranged for.
12294 * psymtab.h (class objfile_psymtabs): New.
12295 (require_partial_symbols): Return objfile_psymtabs.
12296 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
12298 2019-01-09 Tom Tromey <tom@tromey.com>
12300 * symfile.c (overlay_invalidate_all, find_pc_overlay)
12301 (find_pc_mapped_section, list_overlays_command)
12302 (map_overlay_command, unmap_overlay_command)
12303 (simple_overlay_update): Use all_objfiles.
12304 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
12305 * printcmd.c (info_symbol_command): Use all_objfiles.
12306 * objfiles.h (ALL_OBJSECTIONS): Remove.
12307 * maint.c (maintenance_translate_address): Use all_objfiles.
12308 * gcore.c (gcore_create_callback): Use all_objfiles.
12309 (objfile_find_memory_regions): Likewise.
12311 2019-01-09 Tom Tromey <tom@tromey.com>
12313 * symtab.c (find_line_symtab, info_sources_command)
12314 (make_source_files_completion_list): Use objfile_compunits.
12315 * source.c (select_source_symtab): Use objfile_compunits.
12316 * objfiles.h (struct objfile): Update comment.
12317 (ALL_OBJFILES): Remove.
12318 (ALL_FILETABS): Remove.
12319 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
12322 2019-01-09 Tom Tromey <tom@tromey.com>
12324 * symmisc.c (print_objfile_statistics, dump_objfile)
12325 (maintenance_print_symbols): Use compunit_filetabs.
12326 * source.c (forget_cached_source_info_for_objfile): Use
12328 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
12329 (ALL_FILETABS): Use compunit_filetabs.
12330 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
12331 * coffread.c (coff_symtab_read): Use compunit_filetabs.
12333 2019-01-09 Tom Tromey <tom@tromey.com>
12335 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
12336 (compunit_filetabs): New.
12337 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
12339 (info_sources_command, make_source_files_completion_list): Remove
12341 * symmisc.c (print_objfile_statistics, dump_objfile)
12342 (maintenance_print_symbols): Remove declaration.
12343 (maintenance_info_symtabs): Use compunit_filetabs.
12344 (maintenance_info_line_tables): Likewise.
12345 * source.c (select_source_symtab): Change local variable name.
12346 (forget_cached_source_info_for_objfile): Remove declaration.
12347 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
12348 * objfiles.c (objfile_relocate1): Remove declaration.
12349 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
12351 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
12352 * coffread.c (coff_symtab_read): Remove declaration.
12353 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
12356 2019-01-09 Tom Tromey <tom@tromey.com>
12358 * symtab.c (lookup_objfile_from_block)
12359 (find_pc_sect_compunit_symtab, search_symbols)
12360 (default_collect_symbol_completion_matches_break_on): Use
12362 * objfiles.h (ALL_COMPUNITS): Remove.
12363 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
12364 * cp-support.c (add_symbol_overload_list_qualified): Use
12366 * ada-lang.c (ada_collect_symbol_completion_matches)
12367 (ada_add_global_exceptions): Use objfile_compunits.
12369 2019-01-09 Tom Tromey <tom@tromey.com>
12371 * source.c (select_source_symtab)
12372 (forget_cached_source_info_for_objfile): Remove declaration.
12373 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
12375 * maint.c (count_symtabs_and_blocks): Remove declaration.
12376 * cp-support.c (add_symbol_overload_list_qualified): Remove
12378 * coffread.c (coff_symtab_read): Remove declaration.
12379 * symtab.c (lookup_symbol_in_objfile_symtabs)
12380 (basic_lookup_transparent_type_1): Use objfile_compunits.
12381 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
12382 (info_sources_command, search_symbols)
12383 (default_collect_symbol_completion_matches_break_on)
12384 (make_source_files_completion_list): Remove declaration.
12385 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
12386 (ada_collect_symbol_completion_matches)
12387 (ada_add_global_exceptions): Remove declaration.
12388 * linespec.c (iterate_over_all_matching_symtabs): Use
12390 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
12391 (class objfile_compunits): New.
12392 (ALL_COMPUNITS): Use objfile_compunits.
12393 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
12394 (maintenance_check_symtabs, maintenance_info_line_tables): Use
12396 * objfiles.c (objfile_relocate1): Use objfile_compunits.
12398 2019-01-09 Tom Tromey <tom@tromey.com>
12400 * symtab.c (search_symbols)
12401 (default_collect_symbol_completion_matches_break_on): Use
12403 * ada-lang.c (ada_lookup_simple_minsym)
12404 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
12405 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
12406 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
12408 * coffread.c (coff_symfile_read): Use objfile_msymbols.
12409 * symmisc.c (dump_msymbols): Use objfile_msymbols.
12410 * objc-lang.c (find_methods): Use objfile_msymbols.
12411 (info_selectors_command, info_classes_command): Likewise.
12412 * stabsread.c (scan_file_globals): Use objfile_msymbols.
12413 * objfiles.h (class objfile_msymbols): New.
12414 (ALL_OBJFILE_MSYMBOLS): Remove.
12415 (ALL_MSYMBOLS): Remove.
12417 2019-01-09 Tom Tromey <tom@tromey.com>
12419 * common/next-iterator.h (next_adapter): Add Iterator template
12421 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
12422 (class all_objfiles_safe): New.
12423 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
12424 * objfiles.c (put_objfile_before): Update comment.
12425 (add_separate_debug_objfile): Likewise.
12426 (free_all_objfiles): Use all_objfiles_safe.
12427 (objfile_purge_solibs): Likewise.
12429 2019-01-09 Tom Tromey <tom@tromey.com>
12431 * symtab.c (iterate_over_symtabs, matching_obj_sections)
12432 (expand_symtab_containing_pc, lookup_static_symbol)
12433 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
12434 (find_symbol_at_address, find_line_symtab, find_main_name): Use
12436 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
12437 * breakpoint.c (create_overlay_event_breakpoint)
12438 (create_longjmp_master_breakpoint)
12439 (create_std_terminate_master_breakpoint)
12440 (create_exception_master_breakpoint): Use all_objfiles.
12441 * linux-thread-db.c (try_thread_db_load_from_pdir)
12442 (has_libpthread): Use all_objfiles.
12443 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
12444 * linespec.c (iterate_over_all_matching_symtabs)
12445 (search_minsyms_for_name): Use all_objfiles.
12446 * maint.c (maintenance_info_sections): Use all_objfiles.
12447 * main.c (captured_main_1): Use all_objfiles.
12448 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
12449 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
12450 * guile/scm-pretty-print.c
12451 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
12452 * solib-spu.c (append_ocl_sos): Use all_objfiles.
12453 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
12454 (maintenance_print_msymbols): Use all_objfiles.
12455 * source.c (select_source_symtab): Use all_objfiles.
12456 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
12457 * symfile.c (remove_symbol_file_command)
12458 (expand_symtabs_matching, map_symbol_filenames): Use
12460 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
12462 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
12463 * objc-lang.c (find_methods): Use all_objfiles.
12464 * objfiles.c (have_partial_symbols, have_full_symbols)
12465 (have_minimal_symbols, qsort_cmp)
12466 (default_iterate_over_objfiles_in_search_order): Use
12468 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
12469 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
12470 (maintenance_check_psymtabs): Use all_objfiles.
12471 (ALL_PSYMTABS): Remove.
12472 * compile/compile-object-run.c (do_module_cleanup): Use
12474 * blockframe.c (find_pc_partial_function): Use all_objfiles.
12475 * cp-support.c (add_symbol_overload_list_qualified): Use
12477 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
12479 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
12480 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
12482 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
12483 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
12484 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
12486 * solib.c (solib_read_symbols): Use all_objfiles
12488 2019-01-09 Tom Tromey <tom@tromey.com>
12490 * probe.c (parse_probes_in_pspace): Use all_objfiles.
12491 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
12493 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
12494 * symmisc.c (print_symbol_bcache_statistics)
12495 (print_objfile_statistics, maintenance_print_objfiles)
12496 (maintenance_info_symtabs, maintenance_check_symtabs)
12497 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
12499 * source.c (forget_cached_source_info): Use all_objfiles.
12500 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
12501 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
12502 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
12503 * objfiles.c (update_section_map): Use all_objfiles.
12504 (shared_objfile_contains_address_p): Likewise.
12505 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
12506 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
12508 2019-01-09 Tom Tromey <tom@tromey.com>
12510 * common/next-iterator.h: New file.
12511 * objfiles.h (class all_objfiles): New.
12512 (struct objfile_iterator): New.
12514 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12516 * NEWS: Move the description of the changed "frame", "select-frame",
12517 and "info frame" commands to the Changed commands section.
12519 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
12521 * gdbtypes.c (check_stub_method_group): Remove handling of old
12523 * linespec.c (find_methods): Likewise.
12524 * stabsread.c (read_member_functions): Likewise.
12525 * valops.c (search_struct_method): Likewise.
12526 (value_struct_elt_for_reference): Likewise.
12527 * NEWS: Mention this change.
12529 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12531 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
12532 print_source_lines.
12533 * source.c (print_source_lines_base): Update line number check.
12534 (print_source_lines): New function.
12535 (source_lines_range::source_lines_range): New function.
12536 * source.h (class source_lines_range): New class.
12537 (print_source_lines): New declaration.
12539 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12541 * linespec.c (linespec_state_destructor): Free self->canonical_names.
12543 2019-01-08 Tom Tromey <tom@tromey.com>
12544 Simon Marchi <simon.marchi@ericsson.com>
12547 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
12548 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
12549 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
12550 * f-exp.y (DOLLAR_VARIABLE): Likewise.
12551 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
12552 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
12554 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12556 * source.c (select_source_symtab): Move header comment to
12557 declaration in source.h.
12558 (forget_cached_source_info_for_objfile): Likewise.
12559 (forget_cached_source_info): Likewise.
12560 (identify_source_line): Likewise.
12561 * source.h (identify_source_line): Move declaration from symtab.h
12562 and add comment from source.c
12563 (print_source_lines): Likewise.
12564 (forget_cached_source_info_for_objfile): Likewise.
12565 (forget_cached_source_info): Likewise.
12566 (select_source_symtab): Likewise.
12567 (enum print_source_lines_flag): Move definition from symtab.h.
12568 * symtab.h (identify_source_line): Move declaration to source.h.
12569 (print_source_lines): Likewise.
12570 (forget_cached_source_info_for_objfile): Likewise.
12571 (forget_cached_source_info): Likewise.
12572 (select_source_symtab): Likewise.
12573 (enum print_source_lines_flag): Move definition to source.h.
12574 * tui/tui-hooks.c: Add 'source.h' include.
12576 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12578 * source.c (print_source_lines_base): Handle requests to print
12579 reverse line number sequences, and guard against empty lines
12582 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12584 * source.c (print_source_lines_base): Fix skip of '\r' if next
12587 2019-01-06 Tom Tromey <tom@tromey.com>
12589 * c-exp.y (struct c_parse_state) <macro_original_text,
12590 expansion_obstack>: New member.
12591 (macro_original_text, expansion_obstack): Remove globals.
12592 (scan_macro_expansion, scanning_macro_expansion)
12593 (finished_macro_expansion): Update.
12594 (scan_macro_cleanup): Remove.
12595 (yylex, c_parse): Update.
12597 2019-01-06 Tom Tromey <tom@tromey.com>
12599 * c-exp.y (struct c_parse_state) <strings>: New member.
12600 (operator_stoken): Update.
12602 2019-01-06 Tom Tromey <tom@tromey.com>
12604 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
12605 (union type_stack_elt) <typelist_val>: Now a pointer to
12607 (type_stack_cleanup): Don't declare.
12608 (push_typelist): Update.
12609 * parse.c (pop_typelist): Return a std::vector.
12610 (push_typelist): Take a std::vector.
12611 (follow_types): Update. Do not free args.
12612 (type_stack_cleanup): Remove.
12613 * c-exp.y (struct c_parse_state): New.
12614 (cpstate): New global.
12615 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
12616 (nonempty_typelist): Update.
12617 (func_mod): Create a new vector.
12618 (c_parse): Create a c_parse_state.
12619 (check_parameter_typelist): Do not delete params.
12620 (function_method): Update. Do not delete type_list.
12622 2019-01-06 Tom Tromey <tom@tromey.com>
12625 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
12627 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
12628 (print_return_value): Likewise.
12630 2019-01-05 Tom Tromey <tom@tromey.com>
12632 * contrib/cleanup_check.py: Remove.
12633 * contrib/gcc-with-excheck: Remove.
12634 * contrib/exsummary.py: Remove.
12635 * contrib/excheck.py: Remove.
12637 2019-01-05 Joel Brobecker <brobecker@adacore.com>
12639 * thread.c (delete_thread_1): Add gdb_assert that THR is not
12640 NULL. Initialize tpprev to NULL instead of assigning it
12641 to NULL on the next statement.
12642 * windows-nat.c (windows_delete_thread): Remove check for
12643 main_thread_id before printing thread exit notifications.
12644 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
12645 Remove thread ID check against main_thread_id.
12646 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
12647 windows_delete_thread.
12648 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
12650 2019-01-04 Tom Tromey <tom@tromey.com>
12652 * compile/compile.c (_initialize_compile): Use upper case for
12653 metasyntactic variables.
12654 * symmisc.c (_initialize_symmisc): Use upper case for
12655 metasyntactic variables.
12656 * psymtab.c (_initialize_psymtab): Use upper case for
12657 metasyntactic variables.
12658 * demangle.c (demangle_command): Use upper case for metasyntactic
12660 (_initialize_demangler): Likewise.
12661 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
12664 2019-01-03 Tom Tromey <tom@tromey.com>
12666 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
12668 2019-01-03 Tom Tromey <tom@tromey.com>
12670 * python/py-symtab.c (salpy_str): Update.
12671 (struct salpy_sal_object) <symtab>: Now a PyObject.
12672 (salpy_dealloc): Update.
12673 (del_objfile_sal): Use gdbpy_ref.
12675 2019-01-03 Tom Tromey <tom@tromey.com>
12677 * python/py-type.c (convert_field): Use new_reference. Return
12679 (make_fielditem): Return gdbpy_ref.
12680 (typy_fields): Update.
12681 (typy_getitem): Update.
12682 (field_name): Return gdbpy_ref. Use new_reference.
12683 (typy_iterator_iternext): Update.
12685 2019-01-03 Tom Tromey <tom@tromey.com>
12687 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
12689 2019-01-03 Tom Tromey <tom@tromey.com>
12691 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
12692 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
12693 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
12694 (pspy_set_frame_filters, pspy_set_frame_unwinders)
12695 (pspy_set_type_printers): Likewise.
12696 * python/py-function.c (fnpy_init): Use gdbpy_ref.
12697 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
12698 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
12699 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
12700 (objfpy_set_type_printers): Likewise.
12702 2019-01-03 Tom Tromey <tom@tromey.com>
12704 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
12705 (gdbpy_print_stack): Use gdbpy_err_fetch.
12706 * python/python-internal.h (class gdbpy_err_fetch): New class.
12707 (class gdbpy_enter) <m_error_type, m_error_value,
12708 m_error_traceback>: Remove.
12709 <m_error>: New member.
12710 (gdbpy_exception_to_string): Don't declare.
12711 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
12712 * python/py-value.c (convert_value_from_python): Use
12714 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
12715 gdbpy_exception_to_string.
12716 (gdbpy_handle_exception): Use gdbpy_err_fetch.
12717 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
12720 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12722 * linux-nat.c (delete_lwp_cleanup): Delete.
12723 (struct lwp_deleter): New struct.
12724 (lwp_info_up): New typedef.
12725 (linux_nat_target::follow_fork): Delete cleanup, and make use of
12728 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12730 * linux-fork.c (class scoped_switch_fork_info): New class.
12731 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
12733 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12735 * valops.c (find_overload_match): Remove use of null_cleanup, and
12736 calls to do_cleanups.
12738 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12740 * compile/compile-cplus-types.c
12741 (compile_cplus_instance::decl_name): Handle changes to
12743 * cp-support.c (cp_func_name): Update header comment, update
12745 * cp-support.h (cp_func_name): Update return type in declaration.
12746 * valops.c (find_overload_match): Move temp_func local to top
12747 level of function and change its type. Use temp_func to hold and
12748 delete temporary string obtained from cp_func_name.
12750 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12752 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
12753 gdb::char_vector, remove cleanup, and update uses of `msg`.
12755 2019-01-03 Jim Wilson <jimw@sifive.com>
12757 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
12759 2019-01-02 Tom Tromey <tom@tromey.com>
12761 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
12762 (tdesc_parse_xml): Remove cleanups.
12763 * target-descriptions.h (make_cleanup_free_target_description):
12765 (target_desc_deleter): New struct.
12766 (target_desc_up): New typedef.
12767 * target-descriptions.c (target_desc_deleter::operator()): Rename
12768 from free_target_description.
12769 (make_cleanup_free_target_description): Remove.
12771 2019-01-02 Tom Tromey <tom@tromey.com>
12773 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
12774 constructor, destructor.
12775 (linespec_parser): Remove typedef.
12776 (~linespec_parser): Rename from linespec_parser_delete.
12777 (linespec_lex_to_end, linespec_complete_label)
12778 (linespec_complete): Update.
12779 (decode_line_full): Remove cleanups.
12780 (decode_line_1): Update.
12782 2019-01-02 Tom Tromey <tom@tromey.com>
12784 * python/python-internal.h (inferior_to_inferior_object): Change
12786 * python/py-exitedevent.c (create_exited_event_object): Update.
12787 * python/py-inferior.c (inferior_to_inferior_object): Return
12789 (python_new_inferior, python_inferior_deleted)
12790 (thread_to_thread_object, delete_thread_object)
12791 (build_inferior_list, gdbpy_selected_inferior): Update.
12792 * python/py-infthread.c (create_thread_object): Update. Also fail
12793 if inferior_to_inferior_object fails.
12795 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
12797 * inferior.h (class inferior) <displaced_step_state>: New field.
12798 * infrun.h (struct displaced_step_state): Move here from
12799 infrun.c. Initialize fields, add constructor.
12800 <inf>: Remove field.
12801 <reset>: New method.
12802 * infrun.c (struct displaced_step_inferior_state): Move to
12804 (displaced_step_inferior_states): Remove.
12805 (get_displaced_stepping_state): Adust.
12806 (displaced_step_in_progress_any_inferior): Adjust.
12807 (displaced_step_in_progress_thread): Adjust.
12808 (displaced_step_in_progress): Adjust.
12809 (add_displaced_stepping_state): Remove.
12810 (get_displaced_step_closure_by_addr): Adjust.
12811 (remove_displaced_stepping_state): Remove.
12812 (infrun_inferior_exit): Call displaced_step_state.reset.
12813 (use_displaced_stepping): Don't check for NULL.
12814 (displaced_step_prepare_throw): Call
12815 get_displaced_stepping_state.
12816 (displaced_step_fixup): Don't check for NULL.
12817 (prepare_for_detach): Don't check for NULL.
12819 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12821 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
12822 in case of call that did not complete.
12824 2019-01-02 Andrey Utkin <autkin@undo.io>
12826 * symfile.c (find_separate_debug_file): Fix search of debug files for
12829 2019-01-02 Tom Tromey <tom@tromey.com>
12831 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
12833 * python/py-frame.c (frapy_older): Remove cast.
12834 (frapy_newer): Likewise.
12835 * python/py-breakpoint.c (local_setattro): Remove cast.
12836 * python/py-arch.c (archpy_name): Remove local variable.
12837 * python/py-type.c (gdbpy_lookup_type): Remove cast.
12839 2019-01-02 Joel Brobecker <brobecker@adacore.com>
12841 * unittests/basic_string_view/element_access/char/empty.cc:
12842 Fix year range in copyright header.
12844 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
12846 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
12848 <operator==>: Update with for removed field.
12850 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
12851 <isa_features>: ...this.
12852 <abi_features>: New field.
12853 (riscv_isa_flen): Update comment.
12854 (riscv_abi_xlen): New declaration.
12855 (riscv_abi_flen): New declaration.
12856 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
12858 (riscv_abi_xlen): New function.
12859 (riscv_isa_flen): Update to get answer from isa_features.
12860 (riscv_abi_flen): New function.
12861 (riscv_has_fp_abi): Update to get answer from abi_features.
12862 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
12864 (riscv_call_info) <xlen, flen>: Update comment.
12865 (riscv_call_arg_struct): Remove invalid assertions
12866 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
12868 (riscv_gdbarch_init): Gather isa features and abi features
12869 separately, ensure both match on the gdbarch when reusing an old
12870 gdbarch. Relax an error check to allow 32-bit abi float to run on
12871 a target with 64-bit float hardware.
12873 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12875 * source.c (search_command_helper): Stop reverse search
12876 when line 1 has been searched.
12878 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12880 * record-full.c (record_full_base_target::close): Rewrite
12881 record_full_core_buf_list free logic.
12883 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12885 * break-catch-syscall.c (print_one_catch_syscall): xfree
12888 2019-01-01 Joel Brobecker <brobecker@adacore.com>
12890 * top.c (print_gdb_version): Update Copyright year in version
12893 2019-01-01 Joel Brobecker <brobecker@adacore.com>
12895 Update copyright year range in all GDB files.
12897 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
12899 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
12901 For older changes see ChangeLog-2018.
12907 version-control: never