1 2019-09-20 Tom Tromey <tom@tromey.com>
3 * tui/tui.h (strcat_to_buf): Don't declare.
4 * tui/tui.c (strcat_to_buf): Remove.
6 2019-09-20 Tom Tromey <tom@tromey.com>
8 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
10 * tui/tui-source.c (tui_source_window::set_contents)
11 (tui_source_window::location_matches_p)
12 (tui_source_window::maybe_update): Update.
14 2019-09-20 Tom Tromey <tom@tromey.com>
16 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
18 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
20 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
21 (tui_data_window::line_from_reg_element_no)
22 (tui_data_window::first_reg_element_no_inline)
23 (tui_data_window::show_registers)
24 (tui_data_window::show_register_group)
25 (tui_data_window::display_registers_from)
26 (tui_data_window::display_registers_from_line)
27 (tui_data_window::first_data_item_displayed)
28 (tui_data_window::delete_data_content_windows)
29 (tui_data_window::erase_data_content)
30 (tui_data_window::do_scroll_vertical)
31 (tui_data_window::refresh_window)
32 (tui_data_window::check_register_values): Update.
34 2019-09-20 Tom Tromey <tom@tromey.com>
36 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
37 (struct tui_locator_window) <full_name, proc_name>: Now
39 * tui/tui-stack.c (tui_locator_window::make_status_line)
40 (tui_locator_window::set_locator_fullname)
41 (tui_locator_window::set_locator_info): Update.
42 * tui/tui-source.c (tui_source_window::set_contents)
43 (tui_source_window::showing_source_p): Update.
45 2019-09-20 Tom Tromey <tom@tromey.com>
47 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
48 Don't call tui_locator_win_info_ptr.
50 2019-09-20 Tom Tromey <tom@tromey.com>
52 * tui/tui-win.c (tui_resize_all): Don't call refresh.
54 2019-09-20 Tom Tromey <tom@tromey.com>
56 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
58 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
59 * tui/tui-layout.c (show_source_disasm_command, show_data)
60 (show_source_or_disasm_and_command): Use 1 as height for locator.
62 2019-09-20 Tom Tromey <tom@tromey.com>
64 * tui/tui.c (tui_enable): Update.
65 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
67 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
69 * tui/tui-data.c (win_resized): Now bool.
70 (tui_win_resized): Return bool.
71 (tui_set_win_resized_to): Accept a bool.
73 2019-09-20 Tom Tromey <tom@tromey.com>
75 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
76 Change type of "refresh_values_only".
77 * tui/tui-regs.c (tui_data_window::show_register_group): Change
78 type of "refresh_values_only".
80 2019-09-20 Tom Tromey <tom@tromey.com>
82 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
84 (tui_disassemble): Add "pos" parameter.
85 (tui_disasm_window::set_contents): Simplify.
87 2019-09-20 Tom Tromey <tom@tromey.com>
89 * tui/tui-winsource.h (struct tui_source_window_base)
90 <show_source_content>: Now private.
92 (tui_source_window_base::show_source_content): Don't handle empty
95 2019-09-20 Tom Tromey <tom@tromey.com>
97 * tui/tui-layout.c (show_source_disasm_command)
98 (show_source_or_disasm_and_command): Don't call
101 2019-09-20 Tom Tromey <tom@tromey.com>
103 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
105 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
106 from tui_make_status_line.
107 (tui_locator_window::rerender): Update.
109 2019-09-20 Tom Tromey <tom@tromey.com>
111 * tui/tui-stack.c (tui_make_status_line): Return std::string.
112 (tui_locator_window::rerender): Update.
114 2019-09-20 Tom Tromey <tom@tromey.com>
116 * tui/tui-winsource.h (struct tui_source_window_base)
117 <~tui_source_window_base>: Don't declare.
119 * tui/tui-winsource.c (~tui_source_window_base): Remove.
120 * tui/tui-source.h (struct tui_source_window) <fullname>: New
122 * tui/tui-source.c (tui_source_window::set_contents): Update.
123 (tui_source_window::location_matches_p)
124 (tui_source_window::maybe_update): Update.
126 2019-09-20 Tom Tromey <tom@tromey.com>
128 * tui/tui-winsource.h (~tui_source_element): Remove.
129 (tui_source_element): Update.
130 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
131 * tui/tui-winsource.c (tui_show_source_line): Update.
132 * tui/tui-source.c (tui_source_window::set_contents): Update.
133 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
135 2019-09-20 Tom Tromey <tom@tromey.com>
137 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
139 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
140 tui_clear_source_windows_detail.
141 * tui/tui-winsource.h (struct tui_source_window_base)
142 <clear_detail>: Don't declare.
143 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
145 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
147 2019-09-20 Tom Tromey <tromey@adacore.com>
150 * block.c (contained_in): Fix final return value.
152 2019-09-20 Alan Modra <amodra@gmail.com>
154 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
155 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
156 (read_indirect_string_from_dwz): Use bfd accessor.
157 * dwarf2read.h (struct dwz_file <filename>): Likewise.
158 * machoread.c (macho_symfile_read_all_oso): Likewise.
159 * solib.c (solib_bfd_open): Likewise.
161 2019-09-19 Christian Biesinger <cbiesinger@google.com>
163 * eval.c: Move declaration of overload_resolution to...
166 2019-09-19 Christian Biesinger <cbiesinger@google.com>
168 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
169 * arm-linux-tdep.c: Likewise.
170 * arm-nbsd-nat.c: Likewise.
171 * arm-tdep.h: Declare arm_apcs_32.
172 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
174 2019-09-19 Christian Biesinger <cbiesinger@google.com>
176 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
177 * dwarf2read.h: Declare dwarf_always_disassemble.
179 2019-09-19 Tom de Vries <tdevries@suse.de>
182 * source-cache.c (source_cache::ensure): Catch exception thrown during
183 construction of the highlighter.
185 2019-09-18 Alan Modra <amodra@gmail.com>
187 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
188 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
189 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
190 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
191 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
192 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
193 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
194 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
195 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
196 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
197 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
198 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
199 * solib-spu.c, * solib-svr4.c, * solib-target.c,
200 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
201 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
202 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
203 * mi/mi-interp.c: Update throughout for bfd section macro and
205 * gcore (gcore_create_callback): Use bfd_set_section_lma.
206 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
208 2019-09-18 Tom Tromey <tom@tromey.com>
211 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
213 (tui_enable): Do not call rl_initialize.
215 2019-09-18 Christian Groessler <chris@groessler.org>
217 * alpha-linux-nat.c: Include gdbarch.h.
219 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
221 * ui-file.c: Include cli/cli-style.h.
222 (term_cli_styling): Remove cli_styling declaration.
224 2019-09-18 Alan Modra <amodra@gmail.com>
226 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
227 to bfd_asymbol_section.
229 2019-09-18 Alan Modra <amodra@gmail.com>
231 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
232 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
233 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
235 2019-09-18 Alan Modra <amodra@gmail.com>
237 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
238 * spu-linux-nat.c (spu_bfd_open): Likewise.
240 2019-09-18 Christian Biesinger <cbiesinger@google.com>
242 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
243 to bool to match definition in dwarf2read.c.
245 2019-09-17 Christian Biesinger <cbiesinger@google.com>
247 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
248 (print_signatures): Likewise.
249 (trust_pad_over_xvs): Likewise.
250 * arch/aarch64-insn.c (aarch64_debug): Likewise.
251 * arch/aarch64-insn.h (aarch64_debug): Likewise.
252 * arm-linux-nat.c (arm_apcs_32): Likewise.
253 * arm-linux-tdep.c (arm_apcs_32): Likewise.
254 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
255 * arm-tdep.c (arm_debug): Likewise.
256 (arm_apcs_32): Likewise.
257 * auto-load.c (debug_auto_load): Likewise.
258 (auto_load_gdb_scripts): Likewise.
259 (global_auto_load): Likewise.
260 (auto_load_local_gdbinit): Likewise.
261 (auto_load_local_gdbinit_loaded): Likewise.
262 * auto-load.h (global_auto_load): Likewise.
263 (auto_load_local_gdbinit): Likewise.
264 (auto_load_local_gdbinit_loaded): Likewise.
265 * breakpoint.c (disconnected_dprintf): Likewise.
266 (breakpoint_proceeded): Likewise.
267 (automatic_hardware_breakpoints): Likewise.
268 (always_inserted_mode): Likewise.
269 (target_exact_watchpoints): Likewise.
270 (_initialize_breakpoint): Update.
271 * breakpoint.h (target_exact_watchpoints): Change to bool.
272 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
273 * cli/cli-cmds.c (trace_commands): Likewise.
274 * cli/cli-cmds.h (trace_commands): Likewise.
275 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
277 * cli/cli-logging.c (logging_overwrite): Change to bool.
278 (logging_redirect): Likewise.
279 (debug_redirect): Likewise.
280 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
281 (struct boolean_option_def) <get_var_address_cb_>: Change return type
283 <boolean_option_def>: Update.
284 (struct flag_option_def): Change default type of Context to bool
286 <flag_option_def>: Change return type of var_address_cb_ to bool*.
287 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
288 (get_setshow_command_value_string): Likewise.
289 * cli/cli-style.c (cli_styling): Change to bool.
290 (source_styling): Likewise.
291 * cli/cli-style.h (source_styling): Likewise.
292 (cli_styling): Likewise.
293 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
295 * command.h (var_types): Update comment.
296 (add_setshow_boolean_cmd): Change int* var argument to bool*.
297 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
299 (debug_compile_cplus_scopes): Likewise.
300 * compile/compile-internal.h (compile_debug): Likewise.
301 * compile/compile.c (compile_debug): Likewise.
302 (struct compile_options) <raw>: Likewise.
303 * cp-support.c (catch_demangler_crashes): Likewise.
304 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
305 (usr_cmd_cris_dwarf2_cfi): Likewise.
306 * csky-tdep.c (csky_debug): Likewise.
307 * darwin-nat.c (enable_mach_exceptions): Likewise.
308 * dcache.c (dcache_enabled_p): Likewise.
309 * defs.h (info_verbose): Likewise.
310 * demangle.c (demangle): Likewise.
311 (asm_demangle): Likewise.
312 * dwarf-index-cache.c (debug_index_cache): Likewise.
313 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
314 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
315 * dwarf2read.c (check_physname): Likewise.
316 (use_deprecated_index_sections): Likewise.
317 (dwarf_always_disassemble): Likewise.
318 * eval.c (overload_resolution): Likewise.
319 * event-top.c (set_editing_cmd_var): Likewise.
320 (exec_done_display_p): Likewise.
321 * event-top.h (set_editing_cmd_var): Likewise.
322 (exec_done_display_p): Likewise.
323 * exec.c (write_files): Likewise.
324 * fbsd-nat.c (debug_fbsd_lwp): Likewise
325 (debug_fbsd_nat): Likewise.
326 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
328 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
329 <backtrace_past_entry> Likewise.
330 * gdb-demangle.h (demangle): Likewise.
331 (asm_demangle): Likewise.
332 * gdb_bfd.c (bfd_sharing): Likewise.
333 * gdbcore.h (write_files): Likewise.
334 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
335 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
336 * gdbthread.h (print_thread_events): Likewise.
337 * gdbtypes.c (opaque_type_resolution): Likewise.
338 (strict_type_checking): Likewise.
339 * gnu-nat.c (gnu_debug_flag): Likewise.
340 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
341 * guile/scm-param.c (pascm_variable): Add boolval.
342 (add_setshow_generic): Update.
343 (pascm_param_value): Update.
344 (pascm_set_param_value_x): Update.
345 * hppa-tdep.c (hppa_debug): Change to bool..
346 * infcall.c (may_call_functions_p): Likewise.
347 (coerce_float_to_double_p): Likewise.
348 (unwind_on_signal_p): Likewise.
349 (unwind_on_terminating_exception_p): Likewise.
350 * infcmd.c (startup_with_shell): Likewise.
351 * inferior.c (print_inferior_events): Likewise.
352 * inferior.h (startup_with_shell): Likewise.
353 (print_inferior_events): Likewise.
354 * infrun.c (step_stop_if_no_debug): Likewise.
355 (detach_fork): Likewise.
356 (debug_displaced): Likewise.
357 (disable_randomization): Likewise.
358 (non_stop): Likewise.
359 (non_stop_1): Likewise.
360 (observer_mode): Likewise.
361 (observer_mode_1): Likewise.
362 (set_observer_mode): Update.
363 (sched_multi): Change to bool.
364 * infrun.h (debug_displaced): Likewise.
365 (sched_multi): Likewise.
366 (step_stop_if_no_debug): Likewise.
367 (non_stop): Likewise.
368 (disable_randomization): Likewise.
369 * linux-tdep.c (use_coredump_filter): Likewise.
370 (dump_excluded_mappings): Likewise.
371 * linux-thread-db.c (auto_load_thread_db): Likewise.
372 (check_thread_db_on_load): Likewise.
373 * main.c (captured_main_1): Update.
374 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
375 xx2_opt, boolean_opt>: Change to bool.
376 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
377 * maint.c (maintenance_profile_p): Likewise.
378 (per_command_time): Likewise.
379 (per_command_space): Likewise.
380 (per_command_symtab): Likewise.
381 * memattr.c (inaccessible_by_default): Likewise.
382 * mi/mi-main.c (mi_async): Likewise.
383 (mi_async_1): Likewise.
384 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
385 * nat/fork-inferior.h (startup_with_shell): Likewise.
386 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
387 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
388 * nios2-tdep.c (nios2_debug): Likewise.
389 * or1k-tdep.c (or1k_debug): Likewise.
390 * parse.c (parser_debug): Likewise.
391 * parser-defs.h (parser_debug): Likewise.
392 * printcmd.c (print_symbol_filename): Likewise.
393 * proc-api.c (procfs_trace): Likewise.
394 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
395 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
396 (set_parameter_value): Update.
397 (add_setshow_generic): Update.
398 * python/py-value.c (copy_py_bool_obj): Change argument from int*
400 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
402 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
403 * record-btrace.c (record_btrace_target::store_registers): Update.
404 * record-full.c (record_full_memory_query): Change to bool.
405 (record_full_stop_at_limit): Likewise.
406 * record-full.h (record_full_memory_query): Likewise.
407 * remote-notif.c (notif_debug): Likewise.
408 * remote-notif.h (notif_debug): Likewise.
409 * remote.c (use_range_stepping): Likewise.
410 (interrupt_on_connect): Likewise.
411 (remote_break): Likewise.
412 * ser-tcp.c (tcp_auto_retry): Likewise.
413 * ser-unix.c (serial_hwflow): Likewise.
414 * skip.c (debug_skip): Likewise.
415 * solib-aix.c (solib_aix_debug): Likewise.
416 * spu-tdep.c (spu_stop_on_load_p): Likewise.
417 (spu_auto_flush_cache_p): Likewise.
418 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
420 (struct info_print_options) <quiet>: Likewise.
421 * symfile-debug.c (debug_symfile): Likewise.
422 * symfile.c (auto_solib_add): Likewise.
423 (separate_debug_file_debug): Likewise.
424 * symfile.h (auto_solib_add): Likewise.
425 (separate_debug_file_debug): Likewise.
426 * symtab.c (basenames_may_differ): Likewise.
427 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
428 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
429 (struct info_types_options) <quiet>: Likewise.
430 * symtab.h (demangle): Likewise.
431 (basenames_may_differ): Likewise.
432 * target-dcache.c (stack_cache_enabled_1): Likewise.
433 (code_cache_enabled_1): Likewise.
434 * target.c (trust_readonly): Likewise.
435 (may_write_registers): Likewise.
436 (may_write_memory): Likewise.
437 (may_insert_breakpoints): Likewise.
438 (may_insert_tracepoints): Likewise.
439 (may_insert_fast_tracepoints): Likewise.
440 (may_stop): Likewise.
441 (auto_connect_native_target): Likewise.
442 (target_stop_and_wait): Update.
443 (target_async_permitted): Change to bool.
444 (target_async_permitted_1): Likewise.
445 (may_write_registers_1): Likewise.
446 (may_write_memory_1): Likewise.
447 (may_insert_breakpoints_1): Likewise.
448 (may_insert_tracepoints_1): Likewise.
449 (may_insert_fast_tracepoints_1): Likewise.
450 (may_stop_1): Likewise.
451 * target.h (target_async_permitted): Likewise.
452 (may_write_registers): Likewise.
453 (may_write_memory): Likewise.
454 (may_insert_breakpoints): Likewise.
455 (may_insert_tracepoints): Likewise.
456 (may_insert_fast_tracepoints): Likewise.
457 (may_stop): Likewise.
458 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
459 (make_thread_apply_all_options_def_group): Change argument from int*
461 (thread_apply_all_command): Update.
462 (print_thread_events): Change to bool.
463 * top.c (confirm): Likewise.
464 (command_editing_p): Likewise.
465 (history_expansion_p): Likewise.
466 (write_history_p): Likewise.
467 (info_verbose): Likewise.
468 * top.h (confirm): Likewise.
469 (history_expansion_p): Likewise.
470 * tracepoint.c (disconnected_tracing): Likewise.
471 (circular_trace_buffer): Likewise.
472 * typeprint.c (print_methods): Likewise.
473 (print_typedefs): Likewise.
474 * utils.c (debug_timestamp): Likewise.
475 (sevenbit_strings): Likewise.
476 (pagination_enabled): Likewise.
477 * utils.h (sevenbit_strings): Likewise.
478 (pagination_enabled): Likewise.
479 * valops.c (overload_resolution): Likewise.
480 * valprint.h (struct value_print_options) <prettyformat_arrays,
481 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
482 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
483 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
485 * windows-nat.c (new_console): Likewise.
486 (cygwin_exceptions): Likewise.
487 (new_group): Likewise.
488 (debug_exec): Likewise.
489 (debug_events): Likewise.
490 (debug_memory): Likewise.
491 (debug_exceptions): Likewise.
492 (useshell): Likewise.
493 * windows-tdep.c (maint_display_all_tib): Likewise.
494 * xml-support.c (debug_xml): Likewise.
496 2019-09-17 Mike Gulick <mgulick@mathworks.com>
498 * source.c (prepare_path_for_appending): New function.
499 (openp): Make use of new function.
500 (find_and_open_source): Search for the compilation directory and
501 source file as a relative path beneath the directory search path.
503 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
505 * source-cache.c (source_cache::get_line_charpos): Catch
506 exceptions and return false, this matches the behaviour documented
509 2019-09-17 Joel Brobecker <brobecker@adacore.com>
511 * ada-tasks.c (info_task): Remove quoting of the task's name.
513 2019-09-16 Christian Biesinger <cbiesinger@google.com>
515 * symfile.c (auto_solib_add): Replace comment with a reference
518 2019-09-14 Christian Biesinger <cbiesinger@google.com>
520 * NEWS: Mention that gdb can now be compiled with Python 3
523 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
525 * maint.c (maint_print_section_data::maint_print_section_data):
526 Force use of 'float log10 (float)' by casting the argument to
529 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
531 * maint.c: Add 'cmath' include.
532 (struct maint_print_section_data): New structure.
533 (print_section_index): New function.
534 (print_bfd_section_info): Add header comment, small whitespace
535 cleanup, and update to call new print_section_index function.
536 (print_objfile_section_info): Likewise.
537 (maint_obj_section_from_bfd_section): New function.
538 (print_bfd_section_info_maybe_relocated): New function.
539 (maintenance_info_sections): Add header comment, always use
540 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
542 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
544 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
545 inner scope, add check that the objfile has psymtabs before
546 checking psymtabs_addrmap.
547 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
549 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
551 * NEWS: Announce that Ada task names are now shown at more places,
552 and between quotes (except in info task output).
553 * gdb/ada-tasks.c (task_to_str): New function.
554 (display_current_task_id): Call task_to_str.
555 (task_command_1): Likewise.
556 (print_ada_task_info): In non-mi mode, Properly align headers and data
557 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
559 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
561 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
562 prstatus.pr_lwp.pr_info instead of making it up.
564 2019-09-11 Christian Biesinger <cbiesinger@google.com>
566 * auto-load.c (auto_load_expand_dir_vars): Update.
567 * defs.h (gdb_datadir): Change to std::string.
568 (python_libdir): Likewise.
569 (relocate_gdb_directory): Change return type to std::string.
570 * guile/guile.c (gdbscm_data_directory): Update.
571 (initialize_scheme_side): Update.
572 * jit.c (jit_reader_dir): Change to std::string.
573 (jit_reader_load_command): Update.
574 * main.c (gdb_datadir): Change to std::string.
575 (python_libdir): Likewise.
576 (set_gdb_data_directory): Update.
577 (relocate_path): Change to return std::string.
578 (relocate_gdb_directory): Change to return std::string.
579 (relocate_gdbinit_path_maybe_in_datadir): Update.
580 (captured_main_1): Update.
581 * python/python.c (do_start_initialization): Update.
582 * top.c (show_gdb_datadir): Update.
583 * xml-syscall.c (xml_init_syscalls_info): Update.
584 (init_syscalls_info): Update.
586 2019-09-11 Christian Biesinger <cbiesinger@google.com>
588 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
589 out of get_init_files.
590 (get_init_files): Update.
592 2019-09-11 Christian Biesinger <cbiesinger@google.com>
594 * main.c (get_init_files): Change to use std::string.
595 (captured_main_1): Update.
596 (print_gdb_help): Update.
598 2019-09-11 Ali Tamur <tamur@google.com>
600 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
603 2019-09-11 Christian Biesinger <cbiesinger@google.com>
605 * dbxread.c (read_dbx_symtab): Update.
606 * dwarf2read.c (load_partial_dies): Update.
607 * mdebugread.c (parse_partial_symbols): Update.
608 (handle_psymbol_enumerators): Update.
609 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
610 * psymtab.c (add_psymbol_to_bcache): Likewise.
611 (add_psymbol_to_list): Likewise.
612 * symtab.c (symbol_set_names): Likewise.
613 * symtab.h (symbol_set_names): Likewise.
614 * xcoffread.c (scan_xcoff_symtab): Update.
616 2019-09-11 Tom Tromey <tom@tromey.com>
618 * symfile-mem.c (symbol_file_add_from_memory): Use
620 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
621 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
623 2019-09-10 Tom Tromey <tromey@adacore.com>
625 * dwarf-index-write.c (write_psymbols): Extend error message.
626 (debug_names::insert): Add Ada code.
627 (debug_names::write_psymbols): Remove Ada check.
628 (debug_names) <m_string_obstack>: New member.
629 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
630 (gdb_index_symbol_name_matcher::matches): Remove.
631 (mapped_index_base::find_name_components_bounds): Add "lang"
633 (mapped_index_base::build_name_components): Also split names
634 according to Ada syntax.
635 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
636 type of "match_callback".
637 (check_match, check_find_bounds_finds)
638 (dw2_expand_symtabs_matching): Update.
639 (dw2_debug_names_iterator): Add new constructor.
640 (dw2_debug_names_map_matching_symbols): New function.
641 (dw2_debug_names_expand_symtabs_matching): Update.
642 (dwarf2_debug_names_functions): Use
643 dw2_debug_names_map_matching_symbols.
645 2019-09-10 Tom Tromey <tromey@adacore.com>
647 * dwarf2read.c (dw2_get_file_names_reader): Add the
648 CU's file name to the results.
650 2019-09-10 Tom Tromey <tromey@adacore.com>
652 * ada-lang.c (add_nonlocal_symbols): Combine calls to
653 map_matching_symbols. Update.
654 * dwarf2read.c (dw2_map_matching_symbols): Update.
655 * psymtab.c (match_partial_symbol): Change type; update.
656 (psym_map_matching_symbols): Likewise.
657 * symfile-debug.c (debug_qf_map_matching_symbols): Change
659 * symfile.h (struct quick_symbol_functions)
660 <map_matching_symbols>: Change "name" to be a lookup_name_info.
663 2019-09-10 Tom Tromey <tromey@adacore.com>
665 * psymtab.c (map_block): Remove.
666 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
667 * symtab.c (iterate_over_symbols_terminated): New function.
668 * symtab.c (iterate_over_symbols_terminated): Declare.
670 2019-09-10 Tom Tromey <tromey@adacore.com>
672 * ada-lang.c (ada_iterate_over_symbols): Return bool.
673 * language.h (struct language_defn) <la_iterate_over_symbols>:
675 * symtab.c (iterate_over_symbols): Return bool.
676 * symtab.h (iterate_over_symbols): Return bool.
678 2019-09-10 Tom Tromey <tromey@adacore.com>
680 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
681 (add_nonlocal_symbols): Update.
682 * dwarf2read.c (dw2_map_matching_symbols): Change type.
683 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
684 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
685 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
686 Change type of "callback". Remove "data".
689 2019-09-09 Ali Tamur <tamur@google.com>
691 * dwarf2read.c (comp_unit_head): Update comment.
692 (dwarf2_dwo_name): New function declaration.
693 (dwarf_unit_type_name): New function declaration.
694 (read_comp_unit_head): Add support for new compilation units,
695 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
696 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
697 (currently named as "signature") in their header. Also clarify error
699 (lookup_dwo_id): New function. Returns the dwo id of the given
701 (lookup_dwo_unit): Use the new lookup_dwo_id function.
702 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
704 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
705 (dwarf2_dwo_name): Get the dwo name if present.
706 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
709 2019-09-09 Tom Tromey <tom@tromey.com>
711 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
713 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
715 * python/python.c (do_start_initialization): Make progname_copy static,
716 to avoid a leak report.
718 2019-09-08 Tom Tromey <tom@tromey.com>
720 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
722 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
724 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
725 Change type to gdb::optional<block_enum>.
726 (dw2_symtab_iter_init): Change block_index parameter type
727 to gdb::optional<block_enum>.
728 (dw2_lookup_symbol): Change block_index parameter
730 (dw2_debug_names_lookup_symbol): Likewise.
731 * psymtab.c (psym_lookup_symbol): Likewise.
732 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
733 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
736 2019-09-06 Christian Biesinger <cbiesinger@google.com>
738 * defs.h (relocate_gdb_directory): Change int to bool in
739 signature and rename flag to relocatable.
740 * main.c (relocate_path): Likewise.
741 (relocate_gdb_directory): Likewise.
743 2019-09-06 Alan Modra <amodra@gmail.com>
745 * coffread.c (coff_symfile_read): Constify filename variable.
746 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
747 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
748 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
749 * solib.c (reload_shared_libraries_1): Likewise.
750 * symfile.c (reread_symbols): Likewise.
751 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
752 * solib-darwin.c (darwin_bfd_open): Likewise.
753 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
755 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
757 * psymtab.c (print_partial_symbols): Handle missing domain_enum
758 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
760 2019-09-03 Tom Tromey <tromey@adacore.com>
762 * ada-valprint.c (ada_val_print_num): Don't recurse for range
764 (has_negatives): Unbias a range type bound.
765 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
766 * gdbtypes.c (operator==): Handle new field.
767 (create_range_type): Add "bias" parameter.
768 (create_static_range_type, resolve_dynamic_range): Update.
769 * gdbtypes.h (struct range_bounds) <bias>: New member.
770 (create_range_type): Add bias parameter.
771 * printcmd.c (print_scalar_formatted): Unbias range types.
772 * value.c (unpack_long): Unbias range types.
773 (pack_long): Bias range types.
775 2019-09-02 Alan Hayward <alan.hayward@arm.com>
777 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
780 2019-09-02 Alan Hayward <alan.hayward@arm.com>
782 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
783 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
784 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
785 (compile_probe_arg): Likewise.
786 * probe.h (get_argument_count): Likewise.
787 * solib-svr4.c (solib_event_probe_action): Likewise.
788 * stap-probe.c (stap_probe::get_argument_count): Likewise.
790 2019-09-02 Alan Hayward <alan.hayward@arm.com>
792 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
794 (svr4_create_solib_event_breakpoints): ...from here.
796 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
798 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
799 suffix from warning message.
801 2019-08-30 Tom Tromey <tom@tromey.com>
803 * tui/tui-winsource.h (struct tui_source_window_base)
804 <refresh_all>: Don't declare.
805 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
807 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
808 tui_show_locator_content.
809 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
811 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
812 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
815 2019-08-30 Tom Tromey <tom@tromey.com>
817 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
819 2019-08-30 Tom Tromey <tom@tromey.com>
821 * tui/tui-stack.c (_initialize_tui_stack): Move later.
822 Remove unnecessary forward declarations.
824 2019-08-30 Tom Tromey <tom@tromey.com>
826 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
828 (tui_update_locator_fullname, tui_show_frame_info): Don't call
829 tui_show_locator_content.
831 2019-08-30 Tom Tromey <tom@tromey.com>
833 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
834 (tui_locator_window::rerender): Rewrite using body of previous
835 tui_show_locator_content.
837 2019-08-30 Tom Tromey <tom@tromey.com>
839 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
840 set_locator_fullname>: New methods.
841 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
842 Rename from tui_set_locator_fullname.
843 (tui_locator_window::set_locator_info): Rename from
844 tui_set_locator_info. Return bool.
845 (tui_update_locator_fullname, tui_show_frame_info): Update.
847 2019-08-30 Tom Tromey <tom@tromey.com>
849 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
851 2019-08-30 Tom Tromey <tom@tromey.com>
853 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
856 2019-08-30 Tom Tromey <tom@tromey.com>
858 * tui/tui-wingeneral.c (box_win): Assume win_info and
859 win_info->handle cannot be NULL.
861 2019-08-30 Tom Tromey <tom@tromey.com>
863 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
864 refresh_window>: Declare.
865 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
867 (tui_data_item_window::rerender): Rename from
868 tui_display_register.
869 (tui_data_item_window::refresh_window): New method.
870 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
873 2019-08-30 Tom Tromey <tom@tromey.com>
875 * tui/tui-regs.h (struct tui_data_window) <regs_content,
876 regs_column_count, current_group>: Move later. Now private.
877 <get_current_group>: New method.
878 * tui/tui-regs.c (tui_reg_command): Update.
879 * tui/tui-layout.c (tui_set_layout): Update.
881 2019-08-30 Tom Tromey <tom@tromey.com>
883 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
884 (tui_data_window::rerender): Don't call
885 check_and_display_highlight_if_needed.
886 (tui_data_window::refresh_all): Remove call to
889 2019-08-30 Tom Tromey <tom@tromey.com>
891 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
892 (tui_data_window::display_registers_from)
893 (tui_data_window::display_reg_element_at_line)
894 (tui_data_window::display_registers_from_line): Remove checks of
897 2019-08-30 Tom Tromey <tom@tromey.com>
899 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
901 * tui/tui-regs.c (tui_data_window::show_registers): Call
903 (tui_data_window::rerender): Rename from display_all_data.
904 (tui_data_window::rerender): Remove old implementation.
906 2019-08-30 Tom Tromey <tom@tromey.com>
908 * tui/tui-regs.c (tui_data_window::display_all_data): Change
910 * tui/tui-data.h (NO_DATA_STRING): Remove define.
912 2019-08-29 Bernhard Wodok <barto@gmx.net>
913 Sergio Durigan Junior <sergiodj@redhat.com>
916 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
918 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
920 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
921 when searching for types.
923 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
925 * f-lang.c (f_language_defn): Use f_print_typedef.
926 * f-lang.h (f_print_typedef): Declare.
927 * f-typeprint.c (f_print_typedef): Define.
929 2019-08-27 Christian Biesinger <cbiesinger@google.com>
931 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
933 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
935 * cli/cli-utils.c (info_print_options_defs): Delete.
936 (make_info_print_options_def_group): Delete.
937 (extract_info_print_options): Delete.
938 (info_print_command_completer): Delete.
939 (info_print_args_help): Add extra parameter, and optionally
940 include text about -n flag.
941 * cli/cli-utils.h (struct info_print_options): Delete.
942 (extract_info_print_options): Delete declaration.
943 (info_print_command_completer): Delete declaration.
944 (info_print_args_help): Add extra parameter, extend header
946 * python/python.c (gdbpy_rbreak): Pass additional parameter to
948 * stack.c (struct info_print_options): New type.
949 (info_print_options_defs): New file scoped variable.
950 (make_info_print_options_def_group): New static function.
951 (info_print_command_completer): New static function.
952 (info_locals_command): Update to use new local functions.
953 (info_args_command): Likewise.
954 (_initialize_stack): Add extra parameter to calls to
955 info_print_args_help.
956 * symtab.c (search_symbols): Add extra parameter, use this to
957 possibly excluse non-debug symbols.
958 (symtab_symbol_info): Add extra parameter, which is passed on to
960 (struct info_print_options): New type.
961 (info_print_options_defs): New file scoped variable.
962 (make_info_print_options_def_group): New static function.
963 (info_print_command_completer): New static function.
964 (info_variables_command): Update to use local functions, and pass
965 extra parameter through to symtab_symbol_info.
966 (info_functions_command): Likewise.
967 (info_types_command): Pass additional argument through to
969 (rbreak_command): Pass extra argument to search_symbols.
970 (_initialize_symtab): Add extra arguments for calls to
971 info_print_args_help, and update help text for 'info variables',
972 'whereis', and 'info functions' commands.
973 * symtab.h (search_symbols): Add extra argument to declaration.
974 * NEWS: Mention new flags.
976 2019-08-26 Christian Biesinger <cbiesinger@google.com>
978 * symtab.c (lookup_static_symbol): Call the new function (and move
979 it down to be next to lookup_global_symbol).
980 (struct global_sym_lookup_data): Add block_enum member and rename to...
981 (struct global_or_static_sym_lookup_data): ...this.
982 (lookup_symbol_global_iterator_cb): Pass block_index instead of
983 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
984 (lookup_symbol_global_or_static_iterator_cb): ...this.
985 (lookup_global_or_static_symbol): New function.
986 (lookup_global_symbol): Call new function.
988 2019-08-26 Tom de Vries <tdevries@suse.de>
991 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
992 when pc_probe.prob == NULL.
994 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
996 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
997 variable symbol_linkage to symbol_linkage_.
999 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
1001 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
1002 represent whether the symbol is static, dynamic, or we don't
1005 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
1007 * gdb/rx-tdep.c (rx_register_names): New.
1008 (rx_register_name): Delete.
1009 (rx_psw_type): Delete.
1010 (rx_fpsw_type): Delete.
1011 (rx_register_type): Delete.
1012 (rx_gdbarch_init): Convert target-descriptions.
1013 (_initialize_rx_tdep): Add initialize_tdesc_rx.
1014 * gdb/features/Makefile: Add rx.xml.
1015 * gdb/features/rx.xml: New.
1016 * gdb/features/rx.c: Generated.
1017 * gdb/NEWS: Mention target description support.
1019 2019-08-22 Christian Biesinger <cbiesinger@google.com>
1021 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
1024 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
1026 * configure.ac: Don't check for 'dlfcn.h' (moved to
1027 gdbsupport/common.m4).
1028 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
1030 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
1031 * compile/compile-c-support.c: Include
1032 'gdbsupport/gdb-dlfcn.h'.
1033 * gdbsupport/common.m4: Check for 'dlfcn.h'.
1034 * gdb-dlfcn.c: Move to...
1035 * gdbsupport/gdb-dlfcn.c: ... here.
1036 * gdb-dlfcn.h: Move to...
1037 * gdbsupport/gdb-dlfcn.h: ... here.
1039 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
1041 * nios2-tdep.c (struct reg_value): Improve comments. Make
1042 the offset field signed.
1044 2019-08-22 Christian Biesinger <cbiesinger@google.com>
1046 * python/lib/gdb/__init__.py (_execute_file): New function.
1047 * python/python.c (python_run_simple_file): Call gdb._execute_file
1050 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
1052 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
1053 all uses as this was never set to anything but a zero value.
1055 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
1057 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
1059 2019-08-21 Christian Biesinger <cbiesinger@google.com>
1061 * tui/tui-data.h (tui_gen_win_info): Add an =default
1062 move constructor, required by some GCC versions.
1064 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
1066 * go32-nat.c (go32_sysinfo): Add hygon_p.
1068 2019-08-20 Tom Tromey <tom@tromey.com>
1070 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
1071 line_from_reg_element_no, first_reg_element_no_inline,
1072 display_all_data, delete_data_content_windows,
1073 erase_data_content>: Now private.
1075 2019-08-20 Tom Tromey <tom@tromey.com>
1077 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
1078 (tui_unhighlight_win, tui_highlight_win)
1079 (tui_win_info::make_window): Update.
1080 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
1082 2019-08-20 Tom Tromey <tom@tromey.com>
1084 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
1085 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
1086 (MAX_PID_WIDTH): Move to tui-stack.c.
1087 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
1088 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
1089 (MAX_PID_WIDTH): Move from tui-data.h.
1091 2019-08-20 Tom Tromey <tom@tromey.com>
1093 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
1094 * tui/tui-wingeneral.c (box_win): Change type of win_info.
1096 (tui_gen_win_info::make_window): Rename from tui_make_window.
1097 (tui_win_info::make_window): New method.
1098 (tui_gen_win_info::make_visible): Update.
1099 * tui/tui-source.c (tui_source_window::set_contents): Update.
1100 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1101 (tui_data_window::display_registers_from): Update.
1102 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1103 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
1107 (struct tui_win_info) <make_window>: Declare.
1108 <can_box>: Now virtual.
1109 <title>: New member.
1110 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
1111 * tui/tui-command.c (tui_cmd_window::resize): Update.
1113 2019-08-20 Tom Tromey <tom@tromey.com>
1115 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
1116 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1117 (tui_data_window::check_register_values): Update.
1119 2019-08-20 Tom Tromey <tom@tromey.com>
1121 * tui/tui-regs.h (struct tui_data_window): Use
1122 DISABLE_COPY_AND_ASSIGN.
1123 <regs_content>: Change type, removing unique_ptr.
1124 <tui_data_window>: Add move constructor.
1125 * tui/tui-regs.c (tui_data_window::show_registers)
1126 (tui_data_window::show_register_group)
1127 (tui_data_window::display_registers_from)
1128 (tui_data_window::display_registers_from)
1129 (tui_data_window::first_data_item_displayed)
1130 (tui_data_window::delete_data_content_windows)
1131 (tui_data_window::rerender, tui_data_window::refresh_window)
1132 (tui_data_window::check_register_values): Update.
1134 2019-08-20 Tom Tromey <tom@tromey.com>
1136 * tui/tui-regs.h (struct tui_data_window) <show_registers,
1137 show_register_group>: Declare.
1138 (tui_show_register_group): Don't declare.
1139 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
1141 (tui_data_window::show_register_group): Rename from
1142 tui_show_register_group.
1143 (tui_data_window::check_register_values, tui_reg_command):
1145 * tui/tui-layout.c (tui_set_layout): Update.
1147 2019-08-20 Tom Tromey <tom@tromey.com>
1149 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
1151 (tui_check_register_values): Don't declare.
1152 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
1153 from tui_check_register_values.
1154 * tui/tui-hooks.c (tui_register_changed): Update.
1156 2019-08-20 Tom Tromey <tom@tromey.com>
1158 * tui/tui-regs.c (tui_reg_layout): Move later.
1159 (tui_show_registers): Don't enable TUI mode or change layout.
1161 2019-08-20 Tom Tromey <tom@tromey.com>
1163 * tui/tui-regs.h (struct tui_data_item_window)
1164 <~tui_data_item_window>: Remove.
1165 <content>: Now a unique_xmalloc_ptr.
1166 * tui/tui-regs.c (tui_register_format): Return a
1168 (tui_get_register): Update.
1169 (~tui_data_item_window): Remove.
1170 (tui_data_window::display_registers_from, tui_display_register):
1172 * tui/tui-io.h (tui_expand_tabs): Update.
1173 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
1174 Remove "col" parameter.
1176 2019-08-20 Tom Tromey <tom@tromey.com>
1178 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
1180 * tui/tui-regs.c (~tui_data_item_window): Update.
1182 2019-08-20 Tom Tromey <tom@tromey.com>
1184 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
1187 2019-08-20 Tom Tromey <tom@tromey.com>
1189 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
1191 2019-08-20 Tom Tromey <tom@tromey.com>
1193 * tui/tui-source.h (struct tui_source_window): Update.
1194 * tui/tui-regs.c (tui_show_registers): Update.
1195 * tui/tui-disasm.h (struct tui_disasm_window): Update.
1196 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
1197 (NO_REGS_STRING): Remove defines.
1199 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
1201 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
1202 unnecessary thread walk if remote doesn't support the packet.
1204 2019-08-19 Tom Tromey <tromey@adacore.com>
1206 * python/py-value.c (value_has_field): Fix indentation.
1208 2019-08-19 Tom Tromey <tromey@adacore.com>
1210 * printcmd.c (do_one_display, info_display_command): Update.
1211 * block.h (contained_in): Return bool. Add allow_nested
1213 * block.c (contained_in): Return bool. Add allow_nested
1216 2019-08-19 Tom Tromey <tom@tromey.com>
1218 * configure: Rebuild.
1219 * configure.ac: Disallow the combination of -static-libstdc++ and
1221 * source-cache.c (get_language_name): Handle rust.
1222 (source_cache::get_source_lines): Ignore highlighting exceptions.
1224 2019-08-16 Tom Tromey <tom@tromey.com>
1226 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
1227 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
1228 (struct tui_source_window_base) <make_visible, refresh_window,
1229 resize>: Remove methods.
1230 <execution_info>: Remove field.
1231 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
1232 (tui_show_source_line, tui_source_window_base)
1233 (~tui_source_window_base): Update.
1234 (tui_source_window_base::resize)
1235 (tui_source_window_base::make_visible)
1236 (tui_source_window_base::refresh_window): Remove.
1237 (tui_source_window_base::update_exec_info): Update.
1238 * tui/tui-source.c (tui_source_window::set_contents): Update.
1239 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1241 2019-08-16 Tom Tromey <tom@tromey.com>
1243 * tui/tui-hooks.c (tui_remove_hooks): Don't set
1244 deprecated_query_hook.
1246 2019-08-16 Tom Tromey <tom@tromey.com>
1248 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
1249 (tui_update_source_windows_with_line): Update.
1250 * tui/tui-source.h (struct tui_source_window)
1251 <show_symtab_source>: Declare.
1252 (tui_show_symtab_source): Don't declare.
1253 * tui/tui-source.c (tui_show_symtab_source): Rename from
1254 tui_show_symtab_source.
1256 2019-08-16 Tom Tromey <tom@tromey.com>
1258 * tui/tui-winsource.h (struct tui_source_window_base)
1259 <set_contents>: Declare.
1260 * tui/tui-winsource.c
1261 (tui_source_window_base::update_source_window_as_is): Update.
1262 * tui/tui-source.h (struct tui_source_window) <set_contents>:
1264 (tui_set_source_content): Don't declare.
1265 * tui/tui-source.c (tui_source_window::set_contents): Rename from
1266 tui_set_source_content.
1267 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
1269 (tui_set_disassem_content): Don't declare.
1270 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
1271 tui_set_disassem_content.
1273 2019-08-16 Tom Tromey <tom@tromey.com>
1275 * tui/tui-winsource.h (struct tui_source_window_base)
1276 <update_breakpoint_info>: Declare.
1277 (tui_update_breakpoint_info): Don't declare.
1278 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
1279 (tui_update_all_breakpoint_info): Update.
1280 (tui_source_window_base::update_breakpoint_info): Rename from
1281 tui_update_breakpoint_info.
1282 (tui_source_window_base::update_exec_info): Update.
1284 2019-08-16 Tom Tromey <tom@tromey.com>
1286 * tui/tui-winsource.h (struct tui_source_window_base)
1287 <update_source_window>: Declare.
1288 (tui_update_source_window): Don't declare.
1289 * tui/tui-winsource.c
1290 (tui_source_window_base::update_source_window): Rename from
1291 tui_update_source_window.
1292 (tui_source_window_base::rerender): Update.
1293 * tui/tui-source.c (tui_source_window::maybe_update): Update.
1294 * tui/tui-disasm.c (tui_show_disassem)
1295 (tui_show_disassem_and_update_source)
1296 (tui_disasm_window::maybe_update): Update.
1298 2019-08-16 Tom Tromey <tom@tromey.com>
1300 * tui/tui-winsource.h (struct tui_source_window_base)
1301 <update_source_window_as_is>: Declare.
1302 (tui_update_source_window_as_is): Don't declare.
1303 * tui/tui-winsource.c (tui_update_source_window): Update
1304 (tui_source_window_base::update_source_window_as_is): Rename from
1305 tui_update_source_window_as_is.
1306 (tui_source_window_base::refill): Update.
1307 * tui/tui-source.c (tui_show_symtab_source): Update.
1308 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
1311 2019-08-16 Tom Tromey <tom@tromey.com>
1313 * tui/tui-winsource.h (tui_update_source_window)
1314 (tui_update_source_window_as_is): Remove "noerror" parameter.
1315 * tui/tui-winsource.c (tui_update_source_window)
1316 (tui_update_source_window_as_is): Remove "noerror" parameter.
1317 (tui_update_source_windows_with_addr)
1318 (tui_update_source_windows_with_line)
1319 (tui_source_window_base::rerender)
1320 (tui_source_window_base::refill): Update.
1321 * tui/tui-source.h (tui_set_source_content)
1322 (tui_show_symtab_source): Remove "noerror" parameter.
1323 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
1325 (tui_show_symtab_source): Likewise.
1326 (tui_source_window::maybe_update): Update.
1327 * tui/tui-disasm.c (tui_show_disassem)
1328 (tui_show_disassem_and_update_source)
1329 (tui_disasm_window::do_scroll_vertical)
1330 (tui_disasm_window::maybe_update): Update.
1332 2019-08-16 Tom Tromey <tom@tromey.com>
1334 * tui/tui.c (tui_is_window_visible): Update.
1335 * tui/tui-wingeneral.c (tui_make_window)
1336 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
1337 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
1338 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
1339 (tui_set_win_height_command, parse_scrolling_args): Update.
1340 * tui/tui-source.c (tui_source_window::style_changed): Update.
1341 * tui/tui-regs.c (tui_show_registers)
1342 (tui_data_window::first_data_item_displayed)
1343 (tui_data_window::delete_data_content_windows)
1344 (tui_check_register_values, tui_reg_command): Update.
1345 * tui/tui-disasm.c (tui_show_disassem): Update.
1346 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
1348 <is_visible>: Remove field.
1349 * tui/tui-data.c (tui_next_win, tui_prev_win)
1350 (tui_delete_invisible_windows): Update.
1352 2019-08-16 Tom Tromey <tom@tromey.com>
1354 * tui/tui-winsource.h (struct tui_source_window_base)
1355 <m_has_locator>: Remove.
1356 * tui/tui-layout.c (show_source_disasm_command, show_data)
1357 (show_source_or_disasm_and_command): Update.
1359 2019-08-16 Alan Hayward <alan.hayward@arm.com>
1361 * NEWS (Other MI changes): New subsection.
1362 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
1363 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
1364 * arch-utils.c (default_get_pc_address_flags): New function.
1365 * arch-utils.h (default_get_pc_address_flags): New declaration.
1366 * gdbarch.sh: Add get_pc_address_flags.
1367 * gdbarch.c: Regenerate.
1368 * gdbarch.h: Likewise.
1369 * stack.c (print_pc): New function.
1370 (print_frame_info) (print_frame): Call print_pc.
1372 2019-08-16 Tom de Vries <tdevries@suse.de>
1374 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
1375 print_objfile_section_info.
1377 2019-08-15 Tom Tromey <tom@tromey.com>
1379 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
1380 calling update_cmdwin_start_line.
1381 * tui/tui-winsource.h (struct tui_source_window_base)
1382 <do_make_visible_with_new_height, set_new_height>: Don't declare.
1383 <rerender>: Declare.
1384 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
1386 (tui_source_window_base::set_new_height): Remove.
1387 (tui_source_window_base::rerender): Rename from
1388 do_make_visible_with_new_height.
1389 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
1391 (tui_win_info::make_invisible_and_set_new_height)
1392 (tui_win_info::make_visible_with_new_height): Remove.
1393 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
1395 * tui/tui-stack.c (tui_locator_window::rerender): New method.
1396 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
1397 do_make_visible_with_new_height>: Don't declare.
1398 <rerender>: Declare.
1399 * tui/tui-regs.c (tui_data_window::rerender): Rename from
1401 (tui_data_window::do_make_visible_with_new_height): Remove.
1402 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
1403 call tui_show_locator_content.
1404 (tui_gen_win_info::resize): Call rerender.
1405 (show_source_or_disasm_and_command): Don't call
1406 tui_show_locator_content.
1407 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
1409 (struct tui_win_info) <rerender>: Declare.
1410 <set_new_height, make_invisible_and_set_new_height,
1411 make_visible_with_new_height>: Don't declare.
1412 * tui/tui-data.c (tui_win_list::rerender): New method.
1413 * tui/tui-command.h (struct tui_cmd_window)
1414 <do_make_visible_with_new_height>: Don't declare.
1416 (tui_cmd_window::do_make_visible_with_new_height): Remove.
1418 2019-08-15 Tom Tromey <tromey@adacore.com>
1420 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
1421 * ada-lang.c (ada_enum_name): Likewise.
1423 2019-08-15 Christian Biesinger <cbiesinger@google.com>
1425 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
1427 (GdbOutputErrorFile): Likewise.
1428 (global scope): Adjust constructor calls to GdbOutput{,Error}File
1430 (execute_unwinders): Rename to have a leading underscore.
1431 (auto_load_packages): Likewise.
1432 (global scope): Adjust call to auto_load_packages accordingly.
1433 (GdbSetPythonDirectory): Likewise.
1434 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
1435 instead of execute_unwinders.
1437 2019-08-15 Tom Tromey <tom@tromey.com>
1439 * tui/tui-layout.c (show_layout, show_source_disasm_command)
1440 (show_data): Don't change window visibility.
1441 (tui_gen_win_info::resize): Remove special case for command
1442 window. Use wresize, when available.
1443 (show_source_or_disasm_and_command): Don't change window
1445 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
1446 <make_visible>: New method.
1447 * tui/tui-command.c (tui_cmd_window::resize): New method.
1449 2019-08-15 Tom Tromey <tom@tromey.com>
1451 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
1452 (struct tui_source_windows): New.
1453 * tui/tui-winsource.c (tui_display_main): Update.
1454 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
1455 (new_height_ok, parse_scrolling_args): Update.
1456 * tui/tui-layout.c (show_layout, show_data): Update.
1457 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
1458 (tui_add_to_source_windows): Don't declare.
1459 * tui/tui-data.c (source_windows, tui_source_windows)
1460 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
1462 2019-08-15 Tom Tromey <tom@tromey.com>
1464 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
1466 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
1467 * tui/tui-layout.c (show_source_disasm_command, show_data):
1469 (tui_gen_win_info::resize): Rename.
1470 (show_source_or_disasm_and_command): Update.
1471 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
1474 2019-08-15 Tom Tromey <tom@tromey.com>
1476 * tui/tui-stack.c (tui_initialize_static_data): Remove.
1477 * tui/tui-interp.c (tui_interp::init): Don't call
1478 tui_initialize_static_data.
1479 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
1481 2019-08-15 Tom Tromey <tom@tromey.com>
1483 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
1484 examine tui_win_list.
1486 2019-08-15 Tom Tromey <tom@tromey.com>
1488 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
1489 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
1490 tui_clear_source_content.
1491 (tui_clear_source_content): Remove.
1492 (tui_source_window_base::do_erase_source_content): Hoist call to
1494 * tui/tui-stack.c (tui_show_frame_info): Don't call
1495 tui_clear_source_content.
1497 2019-08-15 Tom Tromey <tom@tromey.com>
1499 * tui/tui-winsource.h (struct tui_source_window_base)
1500 <do_erase_source_content>: New method.
1501 <erase_source_content>: New method.
1502 (tui_erase_source_content): Don't declare.
1503 * tui/tui-winsource.c (tui_clear_source_content): Update.
1504 (tui_source_window_base::do_erase_source_content): Rename from
1505 tui_erase_source_content.
1506 (tui_source_window_base::show_source_content): Update.
1507 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
1508 * tui/tui-source.h (struct tui_source_window)
1509 <erase_source_content>: New method.
1510 * tui/tui-disasm.h (struct tui_disasm_window)
1511 <erase_source_content>: New method.
1513 2019-08-15 Tom Tromey <tom@tromey.com>
1515 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
1516 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
1518 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
1519 * tui/tui-source.c (tui_set_source_content): Update.
1520 * tui/tui-disasm.c (tui_set_disassem_content): Update.
1522 2019-08-15 Tom Tromey <tom@tromey.com>
1524 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
1525 * tui/tui-winsource.c (tui_line_is_displayed): Move to
1527 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
1529 * tui/tui-source.c (tui_source_window::line_is_displayed): New
1531 (tui_source_window::maybe_update): Update.
1533 2019-08-15 Tom Tromey <tom@tromey.com>
1535 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
1536 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
1538 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
1540 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
1542 (tui_disasm_window::maybe_update): Update.
1544 2019-08-15 Tom Tromey <tom@tromey.com>
1546 * tui/tui-winsource.h (struct tui_source_window_base)
1547 <maybe_update>: Declare.
1548 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
1550 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
1552 * tui/tui-source.c (tui_source_window::maybe_update): New method.
1553 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
1555 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
1557 2019-08-15 Tom Tromey <tom@tromey.com>
1559 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
1561 2019-08-15 Tom Tromey <tom@tromey.com>
1563 * tui/tui-wingeneral.c: Include tui-stack.h.
1564 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
1565 (struct tui_locator_window): Move from tui-data.h.
1566 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
1567 (tui_initialize_static_data): Move from tui-data.c.
1568 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
1569 (struct tui_locator_window): Move to tui-stack.c.
1570 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
1571 (tui_initialize_static_data): Move to tui-stack.c.
1573 2019-08-15 Tom Tromey <tom@tromey.com>
1575 * tui/tui-layout.c (show_source_disasm_command)
1576 (show_source_or_disasm_and_command): Use make_visible method, not
1578 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
1581 2019-08-15 Tom Tromey <tom@tromey.com>
1583 * tui/tui-wingeneral.h (tui_make_window): Update.
1584 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
1586 (tui_gen_win_info::make_visible): Update.
1587 * tui/tui-regs.c (tui_data_window::display_registers_from):
1589 * tui/tui-layout.c (show_source_disasm_command)
1590 (show_source_or_disasm_and_command): Update.
1591 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
1592 (enum tui_box): Remove.
1593 (struct tui_win_info) <can_box>: New method.
1594 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
1597 2019-08-15 Tom de Vries <tdevries@suse.de>
1599 * linux-nat-trad.c: Include gdbarch.h.
1601 2019-08-14 Alan Hayward <alan.hayward@arm.com>
1603 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
1606 2019-08-14 Tom Tromey <tromey@adacore.com>
1608 * darwin-nat.c: Include gdbarch.h.
1609 * darwin-nat-info.c: Include gdbarch.h.
1611 2019-08-13 Tom Tromey <tom@tromey.com>
1613 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
1615 * tui/tui-data.c (tui_initialize_static_data): Update.
1617 2019-08-13 Tom Tromey <tom@tromey.com>
1619 * tui/tui-winsource.h (struct tui_exec_info_window)
1620 <~tui_exec_info_window, maybe_allocate_content, get_content,
1622 (struct tui_source_window_base) <set_exec_info_content,
1623 show_exec_info_content>: Don't declare.
1624 * tui/tui-winsource.c
1625 (tui_exec_info_window::maybe_allocate_content): Remove.
1626 (tui_source_window_base::update_exec_info): Rename from
1627 set_exec_info_content.
1628 (tui_source_window_base::show_exec_info_content)
1629 (tui_source_window_base::update_exec_info): Remove.
1631 2019-08-13 Tom Tromey <tom@tromey.com>
1633 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
1635 * tui/tui-winsource.c (tui_update_source_window_as_is)
1636 (tui_update_source_windows_with_addr, tui_erase_source_content):
1638 (tui_clear_exec_info_content): Remove.
1640 2019-08-13 Tom Tromey <tom@tromey.com>
1642 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
1644 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
1645 call tui_erase_exec_info_content.
1646 (tui_clear_exec_info_content): Rename from
1647 tui_erase_exec_info_content.
1648 (tui_clear_exec_info_content): Delete.
1650 2019-08-13 Tom Tromey <tom@tromey.com>
1652 * tui/tui-winsource.h (struct tui_source_window_base)
1653 <show_exec_info_content>: Declare.
1654 (tui_show_exec_info_content): Don't declare.
1655 * tui/tui-winsource.c
1656 (tui_source_window_base::show_exec_info_content): Rename from
1657 tui_show_exec_info_content.
1658 (tui_source_window_base::update_exec_info): Update.
1660 2019-08-13 Tom Tromey <tom@tromey.com>
1662 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
1663 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
1664 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
1665 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
1666 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
1667 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
1670 2019-08-13 Tom Tromey <tom@tromey.com>
1672 * tui/tui-winsource.h (struct tui_source_window_base)
1673 <update_exec_info>: Declare.
1674 (tui_update_exec_info): Don't declare.
1675 * tui/tui-winsource.c (tui_update_source_window_as_is)
1676 (tui_source_window_base::refresh_all)
1677 (tui_update_all_breakpoint_info): Update.
1678 (tui_source_window_base::update_exec_info): Rename from
1679 tui_update_exec_info.
1680 * tui/tui-stack.c (tui_show_frame_info): Update.
1682 2019-08-13 Tom Tromey <tom@tromey.com>
1684 * tui/tui-winsource.h (struct tui_source_window_base)
1685 <set_exec_info_content>: Declare.
1686 (tui_set_exec_info_content): Don't declare.
1687 * tui/tui-winsource.c
1688 (tui_source_window_base::set_exec_info_content): Rename from
1689 tui_set_exec_info_content.
1690 (tui_update_exec_info): Update.
1692 2019-08-13 Tom Tromey <tom@tromey.com>
1694 * tui/tui-winsource.h (struct tui_source_window_base)
1695 <show_source_content>: Declare.
1696 (tui_show_source_content): Don't declare.
1697 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1698 (tui_source_window_base::show_source_content): Rename from
1699 tui_show_source_content.
1700 (tui_source_window_base::refresh_all): Update.
1701 * tui/tui-layout.c (show_source_disasm_command)
1702 (show_source_or_disasm_and_command): Update.
1704 2019-08-13 Tom Tromey <tom@tromey.com>
1706 * tui/tui-winsource.c (tui_erase_source_content)
1707 (tui_show_source_content, tui_source_window_base::refresh_all):
1709 * tui/tui-wingeneral.h
1710 (tui_check_and_display_highlight_if_needed): Don't declare.
1711 * tui/tui-wingeneral.c
1712 (tui_win_info::check_and_display_highlight_if_needed): Rename from
1713 check_and_display_highlight_if_needed.
1714 * tui/tui-win.c (tui_rehighlight_all)
1715 (tui_win_info::make_visible_with_new_height): Update.
1716 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
1717 (tui_data_window::erase_data_content)
1718 (tui_data_window::display_all_data): Update.
1719 * tui/tui-data.h (struct tui_win_info)
1720 <check_and_display_highlight_if_needed>: Declare.
1722 2019-08-13 Tom Tromey <tom@tromey.com>
1724 * tui/tui-win.c (tui_resize_all): Call
1725 tui_delete_invisible_windows.
1726 * tui/tui-layout.c (show_layout): Call
1727 tui_delete_invisible_windows.
1728 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
1729 * tui/tui-data.c (tui_delete_invisible_windows): New function.
1731 2019-08-13 Tom Tromey <tom@tromey.com>
1733 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
1734 tui_add_win_to_layout.
1736 2019-08-13 Tom Tromey <tom@tromey.com>
1738 * tui/tui-layout.h (tui_default_win_height): Don't declare.
1739 * tui/tui-layout.c (tui_default_win_height): Now static.
1741 2019-08-13 Tom Tromey <tom@tromey.com>
1743 * tui/tui-layout.c (show_layout): Unify all layout cases into a
1745 (show_source_disasm_command, show_source_or_disasm_and_command):
1746 Don't check current layout.
1748 2019-08-13 Tom Tromey <tom@tromey.com>
1750 * tui/tui-wingeneral.c (make_all_visible): Remove.
1751 (tui_make_all_invisible): Simplify.
1752 * tui/tui-layout.c (tui_make_all_invisible): Move from
1753 tui-wingeneral.c; simplify.
1754 (show_layout): Hoist call to tui_make_all_invisible.
1755 (show_data): Don't call tui_make_all_invisible.
1757 2019-08-13 Tom Tromey <tom@tromey.com>
1759 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
1760 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
1762 2019-08-13 Tom Tromey <tom@tromey.com>
1764 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
1766 (show_source_disasm_command, show_data)
1767 (show_source_or_disasm_and_command): Don't use
1768 tui_set_current_layout_to.
1769 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
1770 * tui/tui-data.c (current_layout, tui_current_layout): Move to
1772 (tui_set_current_layout_to): Remove.
1774 2019-08-13 Tom Tromey <tom@tromey.com>
1776 * tui/tui-layout.c (tui_set_layout): Update.
1777 * tui/tui-data.h (struct tui_layout_def): Remove.
1778 (tui_layout_def): Don't declare.
1779 * tui/tui-data.c (layout_def): Remove.
1780 (tui_layout_def): Remove.
1782 2019-08-13 Tom Tromey <tom@tromey.com>
1784 * tui/tui-winsource.h (struct tui_source_window_base)
1785 <clear_detail>: No longer "override".
1786 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
1787 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
1788 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
1789 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
1791 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
1793 2019-08-13 Tom Tromey <tromey@adacore.com>
1795 * tracepoint.c: Don't include readline.h or history.h.
1797 2019-08-12 Tom Tromey <tom@tromey.com>
1799 * configure: Rebuild.
1800 * configure.ac: Check for readline 7.
1801 * NEWS: Mention readline 7 requirement.
1804 2019-08-12 Tom Tromey <tom@tromey.com>
1806 * mingw-hdep.c (gdb_select): Remove readline hack.
1808 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1810 * blockframe.c (find_pc_partial_function): Set *block to nullptr
1811 when the function fails.
1813 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
1815 * s390-tdep.c (s390_type_align): New function.
1816 (s390_gdbarch_init): Set it as type_align gdbarch method.
1818 2019-08-09 Tom de Vries <tdevries@suse.de>
1821 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
1822 pc_low with relocation offset.
1824 2019-08-07 Tom Tromey <tromey@adacore.com>
1826 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
1827 (print_frame_args): Update.
1828 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
1830 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1831 * frame.h (struct frame_arg): Add initializers.
1832 <error>: Now a unique_xmalloc_ptr.
1834 2019-08-07 Alan Hayward <alan.hayward@arm.com>
1836 * NEWS: Expand the Pointer Authentication entry.
1837 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
1838 (aarch64_frame_unmask_lr): ... to this.
1839 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
1840 Call aarch64_frame_unmask_lr.
1841 * frame.c (struct frame_info): Add "masked" variable.
1842 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
1843 (fprint_frame): Check for masked pc.
1844 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
1846 * python/py-framefilter.c (py_print_frame): Check for masked pc.
1847 * stack.c (print_frame): Check for masked pc.
1849 2019-08-06 Tom Tromey <tom@tromey.com>
1851 * stabsread.c (patch_block_stabs, read_one_struct_field)
1852 (read_enum_type): Use obstack_strndup.
1853 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
1854 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
1855 * dwarf2read.c (guess_full_die_structure_name)
1856 (anonymous_struct_prefix): Use obstack_strndup.
1857 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
1858 * c-exp.y (yylex): Use obstack_strndup.
1859 * ada-exp.y (write_object_renaming, write_ambiguous_var)
1860 (write_var_or_type): Use obstack_strndup.
1862 2019-08-06 Tom Tromey <tom@tromey.com>
1864 * symfile.c (reread_symbols): Use obstack_strdup.
1865 * stabsread.c (read_type): Use obstack_strdup.
1866 * gdb_obstack.h (obstack_strdup): New overload.
1867 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
1868 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
1869 (dwarf2_canonicalize_name): Use obstack_strdup.
1870 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
1871 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
1874 2019-08-06 Tom Tromey <tom@tromey.com>
1876 * gdb_obstack.h (obstack_strdup): Define.
1877 * gdb_obstack.c (obstack_strdup): Don't define.
1879 2019-08-06 Tom Tromey <tom@tromey.com>
1881 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
1883 * typeprint.c (typedef_hash_table::find_global_typedef): Use
1885 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
1886 * stabsread.c (common_block_start): Use obstack_strdup.
1887 * objfiles.c (set_objfile_main_name, objfile): Use
1889 * namespace.c (add_using_directive): Use obstack_strdup.
1890 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
1891 * jit.c (finalize_symtab): Use obstack_strdup.
1892 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
1893 (guess_partial_die_structure_name, partial_die_info::fixup)
1894 (dwarf2_name): Use obstack_strdup.
1895 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
1897 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
1898 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
1900 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
1902 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1904 * unittests/help-doc-selftests.c: New file.
1905 * Makefile.in: Add the new file.
1907 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1909 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
1910 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
1911 the full first line, except when FOR_VALUE_PREFIX. In this case,
1912 the trailing '.' is not output, and the first character is uppercased.
1913 (print_help_for_command): Update call to print_doc_line.
1914 (print_doc_of_command): Likewise.
1915 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
1916 * cli/cli-option.c (append_indented_doc): Do not append newline.
1917 (build_help_option): Append newline after first appended_indented_doc
1918 only if a second call is done.
1919 (build_help): Append 2 new lines before each option, except the first
1921 * compile/compile.c (_initialize_compile): Add new lines after
1922 %OPTIONS%, when not at the end of the help.
1923 Change help doc or code
1924 producing the help doc to respect the invariants.
1925 * maint-test-options.c (_initialize_maint_test_options): Likewise.
1926 Also removed the new line after 'Options:', as all other commands
1927 do not put an empty line between 'Options:' and the first option.
1928 * printcmd.c (_initialize_printcmd): Likewise.
1929 * stack.c (_initialize_stack): Likewise.
1930 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
1931 incorrectly telling COMMAND is optional.
1932 * ada-lang.c (_initialize_ada_language): Change help doc or code
1933 producing the help doc to respect the invariants.
1934 * ada-tasks.c (_initialize_ada_tasks): Likewise.
1935 * breakpoint.c (_initialize_breakpoint): Likewise.
1936 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
1937 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
1938 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
1939 * cli/cli-style.c (cli_style_option::add_setshow_commands,
1940 _initialize_cli_style): Likewise.
1941 * corelow.c (core_target_info): Likewise.
1942 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
1943 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
1944 * filesystem.c (_initialize_filesystem): Likewise.
1945 * frame.c (_initialize_frame): Likewise.
1946 * gnu-nat.c (add_task_commands): Likewise.
1947 * infcall.c (_initialize_infcall): Likewise.
1948 * infcmd.c (_initialize_infcmd): Likewise.
1949 * interps.c (_initialize_interpreter): Likewise.
1950 * language.c (_initialize_language): Likewise.
1951 * linux-fork.c (_initialize_linux_fork): Likewise.
1952 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
1953 * maint.c (_initialize_maint_cmds): Likewise.
1954 * memattr.c (_initialize_mem): Likewise.
1955 * printcmd.c (_initialize_printcmd): Likewise.
1956 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
1958 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
1959 * record-btrace.c (_initialize_record_btrace): Likewise.
1960 * record-full.c (_initialize_record_full): Likewise.
1961 * record.c (_initialize_record): Likewise.
1962 * regcache-dump.c (_initialize_regcache_dump): Likewise.
1963 * regcache.c (_initialize_regcache): Likewise.
1964 * remote.c (add_packet_config_cmd, init_remote_threadtests,
1965 _initialize_remote): Likewise.
1966 * ser-tcp.c (_initialize_ser_tcp): Likewise.
1967 * serial.c (_initialize_serial): Likewise.
1968 * skip.c (_initialize_step_skip): Likewise.
1969 * source.c (_initialize_source): Likewise.
1970 * stack.c (_initialize_stack): Likewise.
1971 * symfile.c (_initialize_symfile): Likewise.
1972 * symtab.c (_initialize_symtab): Likewise.
1973 * target-descriptions.c (_initialize_target_descriptions): Likewise.
1974 * top.c (init_main): Likewise.
1975 * tracefile-tfile.c (tfile_target_info): Likewise.
1976 * tracepoint.c (_initialize_tracepoint): Likewise.
1977 * tui/tui-win.c (_initialize_tui_win): Likewise.
1978 * utils.c (add_internal_problem_command): Likewise.
1979 * valprint.c (value_print_option_defs): Likewise.
1981 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
1984 * configure.ac: Drop enable-libmcheck support.
1985 * configure, config.in: Rebuild.
1986 * libmcheck.m4: Remove.
1987 * acinclude.m4: Don't include it.
1988 * Makefile.in: Don't distribute it.
1989 * top.c (print_gdb_configuration): Don't mention it.
1991 2019-08-06 Tom Tromey <tom@tromey.com>
1993 * utils.c (set_output_style): Sometimes pass stream to
1995 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
1996 * record-btrace.c (btrace_insn_history): Update.
1997 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
1999 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
2000 Update initializers.
2001 <m_uiout>: New field.
2003 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2004 Remove "uiout" parameter.
2005 (dump_insns): Update.
2006 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
2007 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
2009 2019-08-06 Christian Biesinger <cbiesinger@google.com>
2011 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
2012 (error_in_psymtab_expansion): Likewise.
2013 (lookup_symbol_via_quick_fns): Likewise.
2014 (basic_lookup_transparent_type_quick): Likewise.
2015 (basic_lookup_transparent_type_1): Likewise.
2017 2019-08-06 Tom Tromey <tromey@adacore.com>
2019 * source.c (last_source_error): Now bool.
2020 (print_source_lines_base): Make "noprint" bool. Only open
2021 source file when last_source_visited changes.
2023 2019-08-06 Tom Tromey <tromey@adacore.com>
2025 * annotate.c (annotate_source_line): Use g_source_cache.
2026 * source-cache.c (source_cache::get_plain_source_lines): Change
2027 parameters. Populate m_offset_cache.
2028 (source_cache::ensure): New method.
2029 (source_cache::get_line_charpos): New method.
2030 (extract_lines): Move lower. Change parameters.
2031 (source_cache::get_source_lines): Move lower.
2032 * source-cache.h (class source_cache): Update comment.
2033 <get_line_charpos>: New method.
2034 <get_source_lines>: Update comment.
2035 <clear>: Clear m_offset_cache.
2036 <get_plain_source_lines>: Change parameters.
2037 <ensure>: New method
2038 <m_offset_cache>: New member.
2039 * source.c (forget_cached_source_info_for_objfile): Update.
2040 (info_source_command): Use g_source_cache.
2041 (find_source_lines, open_source_file_with_line_charpos): Remove.
2042 (print_source_lines_base, search_command_helper): Use g_source_cache.
2043 * source.h (open_source_file_with_line_charpos): Don't declare.
2044 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
2045 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
2048 2019-08-06 Tom Tromey <tromey@adacore.com>
2050 * source-cache.c (source_cache::get_plain_source_lines):
2051 Remove "first_line" and "last_line" parameters.
2052 (source_cache::get_source_lines): Cache plain text.
2053 * source-cache.h (class source_cache)
2054 <get_plain_source_lines>: Update.
2056 2019-08-06 Tom Tromey <tromey@adacore.com>
2058 * source-cache.c (extract_lines): No longer a method.
2059 Changed type of parameter. Include final newline.
2060 (selftests::extract_lines_test): New function.
2061 (_initialize_source_cache): Likewise.
2062 * source-cache.h (class source_cache)
2063 <extract_lines>: Don't declare.
2065 2019-08-06 Tom Tromey <tromey@adacore.com>
2067 * breakpoint.c (init_breakpoint_sal): Update.
2068 (breakpoint): Update.
2069 * breakpoint.h (struct breakpoint) <filter>: Now a
2072 2019-08-05 Christian Biesinger <cbiesinger@google.com>
2074 * NEWS: Mention dictionary access on blocks.
2075 * python/py-block.c (blpy_getitem): New function.
2076 (block_object_as_mapping): New struct.
2077 (block_object_type): Use new struct for tp_as_mapping field.
2079 2019-08-05 Christian Biesinger <cbiesinger@google.com>
2081 * objfiles.h (objfile): Add a comment describing partial symbols.
2083 2019-08-05 Tom Tromey <tromey@adacore.com>
2085 * compile/compile.c (_initialize_compile): Use _(), not N_().
2086 * thread.c (_initialize_thread): Use _(), not N_().
2087 * stack.c (_initialize_stack): Use _(), not N_().
2088 * printcmd.c (_initialize_printcmd): Use _(), not N_().
2090 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2092 * dwarf2read.c (struct dw2_symtab_iterator):
2093 <want_specific_block>: Remove.
2094 <block_index>: Change type to gdb::optional.
2095 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
2096 change type of BLOCK_INDEX parameter to gdb::optional.
2097 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
2098 (dw2_lookup_symbol): Don't pass argument for
2099 WANT_SPECIFIC_BLOCK.
2100 (dw2_expand_symtabs_for_function): Don't pass argument for
2101 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
2102 (class dw2_debug_names_iterator)
2103 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
2104 parameter, change BLOCK_INDEX type to gdb::optional.
2105 <m_want_specific_block>: Remove.
2106 <m_block_index>: Change type to gdb::optional.
2107 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
2108 gdb::optional. Re-write in function of gdb::optional.
2109 (dw2_debug_names_lookup_symbol): Don't pass argument for
2110 WANT_SPECIFIC_BLOCK.
2111 (dw2_debug_names_expand_symtabs_for_function): Don't pass
2112 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
2115 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2117 * NEWS: Mention changes to "info sources" command.
2119 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2121 * symtab.c (filename_partial_match_opts): New struct type.
2122 (struct output_source_filename_data): New members
2123 regexp, c_regexp, partial_match.
2124 (output_source_filename): Use new members to decide to print file.
2125 (info_sources_option_defs): New variable.
2126 (make_info_sources_options_def_group, print_info_sources_header,
2127 info_sources_command_completer):
2129 (info_sources_command): Read new optional arguments.
2130 (_initialize_symtab): Update info sources help.
2132 2019-08-02 Alexandre Oliva <oliva@adacore.com>
2134 * ada-lang.c (exception_support_info_v0): Renamed from...
2135 (default_exception_support_info): ... this. Create new
2137 (ada_has_this_exception_support): Look up catch_handlers_sym.
2138 (ada_exception_support_info_sniffer): Try v0 after default.
2140 2019-08-01 Tom Tromey <tromey@adacore.com>
2142 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
2145 2019-08-01 Christian Biesinger <cbiesinger@google.com>
2147 * s12z-tdep.c: Fix include path for s12z-opc.h.
2149 2019-08-01 Alan Hayward <alan.hayward@arm.com>
2151 * NEWS: Require GNU make 3.82.
2153 2019-07-16 Tom Tromey <tom@tromey.com>
2155 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
2158 2019-07-30 Tom Tromey <tromey@adacore.com>
2160 * block.c (contained_in): Remove BLOCK_FUNCTION check.
2162 2019-07-30 Kevin Buettner <kevinb@redhat.com>
2164 * printcmd.c (print_address_symbolic): Print negative offsets.
2165 (build_address_symbolic): Force signed arithmetic when computing
2168 2019-07-30 Christian Biesinger <cbiesinger@google.com>
2170 PR/24474: Add a function to lookup static variables.
2171 * NEWS: Mention this new function.
2172 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
2173 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
2174 * python/python.c (python_GdbMethods): Add new function.
2176 2019-07-29 Christian Biesinger <cbiesinger@google.com>
2178 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
2179 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
2180 (objfpy_lookup_static_symbol): New function.
2181 (objfile_object_methods): Add new functions.
2183 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2185 * NEWS: Mention 'set|show print frame-info'. Mention new
2186 'presence' value for 'frame-arguments'. Mention new '-frame-info'
2187 backtrace argument. Mention that python frame filtering code
2188 is now consistent with what 'backtrace' command prints.
2190 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2192 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
2194 (print_frame_info_auto, print_frame_info_source_line,
2195 print_frame_info_location, print_frame_info_source_and_location,
2196 print_frame_info_location_and_address, print_frame_info_short_location):
2198 (struct frame_print_options): New member print_frame_info.
2199 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
2200 * stack.h (get_user_print_what_frame_info): New declaration.
2201 (frame_show_address): New declaration.
2202 * stack.c (print_frame_arguments_choices): New value 'presence'.
2203 (print_frame_info_auto, print_frame_info_source_line,
2204 print_frame_info_location, print_frame_info_source_and_location,
2205 print_frame_info_location_and_address, print_frame_info_short_location,
2206 print_frame_info_choices, print_frame_info_print_what): New definitions.
2207 (print_frame_args): Only print dots for args if print frame-arguments
2209 (frame_print_option_defs): New element for "frame-info".
2210 (get_user_print_what_frame_info): New function.
2211 (frame_show_address): Make non static. Move comment to stack.h.
2212 (print_frame_info_to_print_what): New function.
2213 (print_frame_info): Update comment. Use fp_opts.print_frame_info
2214 to decide what to print.
2215 (backtrace_command_1): Handle the new print_frame_arguments_presence
2217 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
2218 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
2219 (py_print_frame): In non-mi mode, use LOCATION as default for
2220 print_what, similarly to frame information printed directly by
2221 backtrace command. Handle frame-info user option in non MI mode.
2223 2019-07-27 Kevin Buettner <kevinb@redhat.com>
2225 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
2226 Add case for debugging 32-bit target on 64-bit host. Revise
2229 2019-07-27 Kevin Buettner <kevinb@redhat.com>
2231 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
2232 instead of find_function_entry_range_from_pc.
2234 2019-07-27 Kevin Buettner <kevinb@redhat.com>
2236 * stack.c (find_frame_funname): Remove code which preferred
2237 minsym over symtab sym in "certain pathological cases".
2239 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
2240 parameter. Change type of "do_demangle" to bool.
2241 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2242 Pass suitable "prefer_sym_over_minsym" flag to
2243 build_address_symbolic(). Don't output "+" for negative offsets.
2244 * printcmd.c (print_address_symbolic): Update invocation of
2245 build_address_symbolic to include a "prefer_sym_over_minsym"
2247 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
2248 Restrict cases in which use of minimal symbol is preferred to that
2249 of a found symbol. Update comments.
2251 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
2252 for entry pc when entry pc is out of range for that FDE.
2254 2019-07-26 Brian Callahan <bcallah@openbsd.org>
2257 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
2260 2019-07-25 Christian Biesinger <cbiesinger@google.com>
2262 * python/py-objfile.c (add_separate_debug_file): Fix comment about
2263 this function's Python signature.
2266 2019-07-24 Christian Biesinger <cbiesinger@google.com>
2268 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
2269 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
2270 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
2271 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
2272 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
2275 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
2277 * h8300-tdep.c (h8300_register_name_common): New.
2278 h8300_register_name): Use h8300_register_name_common.
2279 (h8300s_register_name): Likewise.
2280 (h8300sx_register_name): Likewise.
2281 (h8300h_register_nam): New.
2282 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
2285 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
2287 * arm-tdep.c (arm_skip_cmse_entry): New function.
2288 (arm_is_sgstubs_section): New function.
2289 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
2291 2019-07-22 Tom Tromey <tom@tromey.com>
2293 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
2296 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2298 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
2301 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2303 * symtab.c (search_symbols): Adjust msymbol matching type arrays
2304 so that GDB doesn't match any msymbols when searching in the
2306 (print_symbol_info): Print using typedef_print or type_print based
2307 on the type of the symbol. Add updated FIXME comment moved from...
2308 (_initialize_symtab): ... move and update FIXME comment to above.
2310 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2312 * NEWS: Mention adding -q option to "info types".
2313 * symtab.c (struct info_types_options): New struct.
2314 (info_types_options_defs): New variable.
2315 (make_info_types_options_def_group): New function.
2316 (info_types_command): Use gdb::option framework to parse options.
2317 (info_types_command_completer): New function.
2318 (_initialize_symtab): Extend the help text on "info types" and
2319 register command completer.
2321 2019-07-21 Christian Biesinger <cbiesinger@google.com>
2323 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
2324 (lookup_symbol_in_objfile): Change int to block_enum and add a
2325 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
2327 2019-07-20 Christian Biesinger <cbiesinger@google.com>
2329 * MAINTAINERS (Write After Approval): Add self.
2331 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
2333 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
2334 instruction to the dummy code region.
2336 2019-07-19 Tom Tromey <tromey@adacore.com>
2338 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
2339 (ARGSUSED, PARAMS, __func__): Remove rules.
2341 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2343 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
2344 * features/arm/arm-with-iwmmxt.c: Remove.
2345 * features/arm/arm-with-iwmmxt.xml: Remove.
2346 * features/arm/arm-with-m-fpa-layout.c: Remove.
2347 * features/arm/arm-with-m-fpa-layout.xml: Remove.
2348 * features/arm/arm-with-m-vfp-d16.c: Remove.
2349 * features/arm/arm-with-m-vfp-d16.xml: Remove.
2350 * features/arm/arm-with-m.c: Remove.
2351 * features/arm/arm-with-m.xml: Remove.
2352 * features/arm/arm-with-neon.c: Remove.
2353 * features/arm/arm-with-neon.xml: Remove.
2354 * features/arm/arm-with-vfpv2.c: Remove.
2355 * features/arm/arm-with-vfpv2.xml: Remove.
2356 * features/arm/arm-with-vfpv3.c: Remove.
2357 * features/arm/arm-with-vfpv3.xml: Remove.
2359 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2361 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
2363 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2365 * arch/aarch32.c (aarch32_create_target_description): Create
2366 target descriptions using features.
2367 * arch/arm.c (arm_create_target_description)
2368 (arm_create_mprofile_target_description): Likewise.
2369 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
2371 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2373 * Makefile.in: Add new files.
2374 * aarch32-tdep.c: New file.
2375 * aarch32-tdep.h: New file.
2376 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
2377 Call aarch32_read_description.
2378 * arch/aarch32.c: New file.
2379 * arch/aarch32.h: New file.
2380 * arch/arm.c (arm_create_target_description)
2381 (arm_create_mprofile_target_description): New function.
2382 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
2383 (arm_create_target_description)
2384 (arm_create_mprofile_target_description): New declaration.
2385 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
2386 read_description functions.
2387 * arm-linux-nat.c (arm_linux_nat_target::read_description):
2389 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
2390 * arm-tdep.c (tdesc_arm_list): New variable.
2391 (arm_register_g_packet_guesses): Call create description functions.
2392 (arm_read_description) (arm_read_mprofile_description): New
2394 * arm-tdep.h (arm_read_description)
2395 (arm_read_mprofile_description): Add declaration.
2396 * configure.tgt: Add new files.
2398 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
2400 * top.c (new_ui_command): Open specified terminal just once.
2402 2019-07-18 Tom Tromey <tromey@adacore.com>
2404 * symtab.c (main_name): Constify return type.
2405 * symfile.c (set_initial_language): Update.
2406 * symtab.h (main_name): Constify return type.
2408 2019-07-17 Tom Tromey <tom@tromey.com>
2410 * tui/tui-winsource.c (tui_update_source_window)
2411 (tui_update_source_window_as_is)
2412 (tui_update_source_windows_with_line): Remove return.
2413 * tui/tui-disasm.c (tui_show_disassem)
2414 (tui_show_disassem_and_update_source): Remove return.
2415 * tui/tui.c (tui_reset): Remove return.
2416 * tui/tui-wingeneral.c
2417 (tui_check_and_display_highlight_if_needed): Remove return.
2419 2019-07-17 Tom Tromey <tom@tromey.com>
2421 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
2423 2019-07-17 Tom Tromey <tom@tromey.com>
2425 * tui/tui-winsource.h (struct tui_exec_info_window)
2426 (struct tui_source_window_base): Move from tui-data.h.
2427 * tui/tui-winsource.c: Move many method definitions from
2428 elsewhere. Remove "structuring" comments.
2429 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
2430 (tui_source_window_base::refresh_window): Move to
2432 * tui/tui-win.c (tui_source_window_base::refresh_all)
2433 (tui_source_window_base::update_tab_width)
2434 (tui_source_window_base::set_new_height)
2435 (tui_source_window_base::do_make_visible_with_new_height): Move to
2437 * tui/tui-source.h: Update.
2438 * tui/tui-source.c (tui_source_window_base::reset): Move to
2440 * tui/tui-disasm.h: Update.
2441 * tui/tui-data.h (struct tui_exec_info_window): Move to
2443 (struct tui_source_window_base): Likewise.
2444 * tui/tui-data.c (tui_source_window_base::clear_detail)
2445 (tui_source_window_base, ~tui_source_window_base): Move to
2448 2019-07-17 Tom Tromey <tom@tromey.com>
2450 * tui/tui-win.c (tui_resize_all)
2451 (tui_source_window_base::update_tab_width)
2452 (tui_adjust_win_heights): Update.
2453 (tui_win_info::make_invisible_and_set_new_height): Rename from
2454 make_invisible_and_set_new_height.
2455 * tui/tui-data.h (struct tui_win_info)
2456 <make_invisible_and_set_new_height>: New method.
2458 2019-07-17 Tom Tromey <tom@tromey.com>
2460 * tui/tui.c: Update.
2461 * tui/tui-source.h (struct tui_source_window): Move from
2463 * tui/tui-layout.c: Update.
2464 * tui/tui-disasm.c: Update.
2465 * tui/tui-data.h (struct tui_source_window): Move to
2468 2019-07-17 Tom Tromey <tom@tromey.com>
2470 * tui/tui-disasm.h (struct tui_disasm_window): Move from
2472 * tui/tui-data.h (struct tui_disasm_window): Move to
2475 2019-07-17 Tom Tromey <tom@tromey.com>
2477 * tui/tui-regs.h (struct tui_data_item_window): Move from
2479 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
2480 * tui/tui-data.h (struct tui_data_item_window): Move to
2482 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
2484 2019-07-17 Tom Tromey <tom@tromey.com>
2486 * tui/tui.c: Update.
2487 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
2488 (tui_cmd_window::max_height): Move to tui-command.c.
2489 * tui/tui-layout.c: Update.
2490 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
2491 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
2493 * tui/tui-command.h (struct tui_cmd_window): Move from
2495 * tui/tui-command.c: Remove "structuring" comments.
2496 (tui_cmd_window::clear_detail)
2497 (tui_cmd_window::do_make_visible_with_new_height)
2498 (tui_cmd_window::max_height): Move from elsewhere.
2500 2019-07-17 Tom Tromey <tom@tromey.com>
2502 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
2504 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
2505 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
2507 2019-07-17 Tom Tromey <tom@tromey.com>
2509 * tui/tui.c: Update.
2510 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
2512 * tui/tui-windata.h: Remove file.
2513 * tui/tui-windata.c: Remove file.
2514 * tui/tui-win.c (tui_data_window::set_new_height)
2515 (tui_data_window::do_make_visible_with_new_height): Move to
2517 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
2518 * tui/tui-regs.c: Remove "structuring" comments.
2519 (tui_data_window::first_data_item_displayed)
2520 (tui_data_window::delete_data_content_windows)
2521 (tui_data_window::erase_data_content)
2522 (tui_data_window::display_all_data)
2523 (tui_data_window::refresh_all)
2524 (tui_data_window::do_scroll_vertical)
2525 (tui_data_window::clear_detail, tui_data_window::set_new_height)
2526 (tui_data_window::do_make_visible_with_new_height)
2527 (tui_data_window::refresh_window): Move from elsewhere.
2528 (_initialize_tui_regs): Move to end of file.
2529 * tui/tui-layout.c: Update.
2530 * tui/tui-hooks.c: Update.
2531 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
2532 * tui/tui-data.c (tui_data_window::clear_detail): Move to
2534 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
2536 2019-07-17 Tom Tromey <tom@tromey.com>
2538 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
2541 2019-07-17 Tom Tromey <tom@tromey.com>
2543 * tui/tui-win.c (tui_source_window_base::set_new_height)
2544 (tui_source_window_base::do_make_visible_with_new_height): Use
2545 m_has_locator field directly.
2546 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
2548 (struct tui_source_window_base) <has_locator>: Likewise.
2550 2019-07-17 Tom Tromey <tom@tromey.com>
2552 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
2554 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
2556 * tui/tui-win.c (tui_source_window_base::set_new_height)
2557 (tui_source_window_base::set_new_height)
2558 (make_invisible_and_set_new_height)
2559 (tui_source_window_base::do_make_visible_with_new_height)
2560 (tui_source_window_base::do_make_visible_with_new_height):
2562 * tui/tui-layout.c (show_source_disasm_command, show_data)
2563 (show_source_or_disasm_and_command): Update.
2564 * tui/tui-layout.c (show_layout): Update.
2566 2019-07-17 Tom Tromey <tom@tromey.com>
2568 * tui/tui-layout.c (make_data_window): Remove.
2569 (show_data): Unify creation and re-initialization cases.
2571 2019-07-17 Tom Tromey <tom@tromey.com>
2573 * tui/tui-layout.c (make_source_window, make_disasm_window):
2575 (show_data): Unify creation and re-initialization cases.
2577 2019-07-17 Tom Tromey <tom@tromey.com>
2579 * tui/tui-layout.c (make_command_window): Remove.
2580 (show_source_disasm_command, show_source_or_disasm_and_command):
2581 Unify creation and re-initialization cases.
2583 2019-07-17 Tom Tromey <tom@tromey.com>
2585 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
2586 creation and re-initialization cases.
2588 2019-07-17 Tom Tromey <tom@tromey.com>
2590 * tui/tui-regs.c (tui_get_register): Return void.
2592 2019-07-17 Tom Tromey <tom@tromey.com>
2594 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
2597 2019-07-17 Tom Tromey <tom@tromey.com>
2599 * tui/tui-layout.c (show_source_disasm_command): Simplify window
2602 2019-07-17 Tom Tromey <tom@tromey.com>
2604 * tui/tui.h (tui_set_layout_by_name): Don't declare.
2605 * tui/tui-regs.c (tui_reg_layout): New function.
2606 (tui_show_registers, tui_reg_command): Use it.
2607 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
2608 (tui_layout_command): Rename from tui_set_layout_by_name. Change
2610 (tui_layout_command): Remove.
2612 2019-07-17 Tom Tromey <tom@tromey.com>
2614 * tui/tui-layout.h (tui/tui-layout): Return void.
2615 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
2617 2019-07-17 Tom Tromey <tom@tromey.com>
2619 * tui/tui-layout.c (show_source_disasm_command, show_data):
2621 (reset_locator): Remove.
2622 (show_source_or_disasm_and_command): Update.
2624 2019-07-17 Tom Tromey <tom@tromey.com>
2626 * tui/tui-source.c (tui_source_window_base::reset): Remove
2628 * tui/tui-layout.c (make_command_window, make_source_window)
2629 (make_disasm_window, make_data_window)
2630 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
2631 (reset_locator, show_source_or_disasm_and_command): Update.
2632 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
2634 (struct tui_source_window_base) <reset>: Likewise.
2636 2019-07-17 Tom Tromey <tom@tromey.com>
2638 * tui/tui-layout.c (show_source_disasm_command): Use
2640 (reset_locator): New function.
2641 (init_and_make_win): Remove.
2642 (show_source_or_disasm_and_command): Use reset_locator.
2644 2019-07-17 Tom Tromey <tom@tromey.com>
2646 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
2648 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
2650 * tui/tui-source.c (tui_source_window_base::reset): New method.
2651 * tui/tui-layout.c (make_command_window): Don't call
2653 (make_source_window, make_disasm_window): Don't call
2654 make_source_or_disasm_window.
2655 (make_data_window): Don't call init_and_make_win. Change calling
2657 (show_source_disasm_command, show_data): Simplify.
2658 (make_source_or_disasm_window): Remove.
2659 (show_source_or_disasm_and_command): Simplify.
2660 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
2661 (struct tui_source_window_base) <reset>: Likewise.
2662 <execution_info>: Remove initializer.
2663 * tui/tui-data.c (tui_source_window_base): Initialize
2666 2019-07-17 Tom Tromey <tom@tromey.com>
2668 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
2671 2019-07-17 Tom Tromey <tom@tromey.com>
2673 * tui/tui.c (tui_rl_other_window): Update.
2674 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
2675 superclass method first. Always iterate over regs_content.
2676 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
2678 * tui/tui-win.c (tui_set_focus_command): Update.
2680 2019-07-17 Tom Tromey <tom@tromey.com>
2682 * tui/tui-win.c (tui_set_focus_command): Rename from
2683 tui_set_focus. Call tui_enable.
2684 (tui_set_focus_command): Remove.
2686 2019-07-17 Tom Tromey <tom@tromey.com>
2688 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
2690 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
2692 (tui_data_window::refresh_window): Call refresh_window on data
2693 items. Always call superclass refresh_window.
2694 (tui_win_info::refresh): Remove.
2695 (tui_source_window_base::refresh_window): Update.
2696 (tui_refresh_all): Update.
2697 * tui/tui-layout.c (show_source_disasm_command): Remove call to
2699 (show_source_or_disasm_and_command): Likewise.
2700 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
2701 (struct tui_source_window_base) <refresh>: Likewise.
2703 2019-07-17 Tom Tromey <tom@tromey.com>
2705 * tui/tui-winsource.c (tui_clear_source_content)
2706 (tui_show_source_content): Update.
2707 * tui/tui-source.c (tui_source_window::showing_source_p): Check
2708 whether content is empty.
2709 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
2712 2019-07-17 Tom Tromey <tom@tromey.com>
2714 * tui/tui-winsource.c (tui_erase_source_content): Clear the
2716 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
2717 * tui/tui-source.c (tui_set_source_content_nil): Remove.
2719 2019-07-17 Tom Tromey <tom@tromey.com>
2721 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
2722 (struct tui_data_item_window): Update.
2724 2019-07-17 Tom Tromey <tom@tromey.com>
2726 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
2727 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
2730 2019-07-17 Tom Tromey <tom@tromey.com>
2732 * tui/tui-winsource.h (tui_erase_source_content)
2733 (tui_clear_source_content): Remove "display_prompt" parameter.
2734 * tui/tui-winsource.c (tui_update_source_window_as_is)
2735 (tui_update_source_windows_with_addr): Update.
2736 (tui_clear_source_content): Remove "display_prompt" parameter.
2737 (tui_erase_source_content): Likewise. Simplify.
2738 (tui_show_source_content): Update.
2739 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2740 * tui/tui-stack.c (tui_show_frame_info): Update.
2741 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
2744 2019-07-17 Tom Tromey <tom@tromey.com>
2746 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2747 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
2749 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
2752 2019-07-17 Tom Tromey <tom@tromey.com>
2754 * tui/tui-winsource.c (tui_clear_source_content)
2755 (tui_show_source_content, tui_show_exec_info_content)
2756 (tui_clear_exec_info_content): Update.
2757 * tui/tui-stack.c (tui_show_locator_content): Update.
2758 (tui_show_frame_info): Update.
2759 * tui/tui-source.h (tui_source_window): Don't declare.
2760 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
2761 from tui_source_is_displayed.
2762 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
2764 (struct tui_source_window_base) <content_in_use>: New field. Now
2766 (struct tui_source_window) <showing_source_p>: New method.
2767 (TUI_SRC_WIN): Change cast.
2768 * tui/tui-data.c (tui_initialize_static_data): Update.
2770 2019-07-17 Tom Tromey <tom@tromey.com>
2772 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
2774 * tui/tui-source.c (tui_source_window::location_matches_p): New
2776 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
2778 * tui/tui-data.h (struct tui_source_window_base)
2779 <location_matches_p>: New method.
2780 (struct tui_source_window, struct tui_disasm_window)
2781 <location_matches_p>: Likewise.
2783 2019-07-17 Tom Tromey <tom@tromey.com>
2785 * tui/tui-win.c (tui_set_win_height_command): Rename from
2787 (tui_set_win_height_command): Remove.
2789 2019-07-17 Tom Tromey <tom@tromey.com>
2791 * tui/tui-source.c (tui_source_window): New constructor. Add
2793 (~tui_source_window): New destructor.
2794 (tui_source_window::style_changed): New method.
2795 * tui/tui-hooks.c (tui_redisplay_source): Remove.
2796 (tui_attach_detach_observers): Update.
2797 * tui/tui-data.h (struct tui_source_window): Make constructor not
2798 inline. Add destructor.
2799 (struct tui_source_window) <style_changed>: New method.
2800 <m_observable>: New member.
2802 2019-07-17 Tom Tromey <tom@tromey.com>
2804 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
2805 * tui/tui-win.c (tui_resize_all): Fix typo.
2807 2019-07-17 Tom Tromey <tom@tromey.com>
2809 * tui/tui-wingeneral.h (tui_refresh_all): Update.
2810 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
2811 (tui_refresh_all): Remove "list" parameter. Use foreach.
2812 * tui/tui-win.c (window_name_completer): Use foreach.
2813 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
2814 (update_tab_width): Likewise.
2815 * tui/tui-layout.c (show_layout): Update.
2816 * tui/tui-data.h (class tui_window_iterator): New.
2817 (struct all_tui_windows): New.
2818 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
2820 2019-07-17 Tom Tromey <tom@tromey.com>
2822 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
2823 parameter. Don't reference globals.
2824 (tui_reg_command): Update.
2826 2019-07-17 Tom Tromey <tom@tromey.com>
2828 * tui/tui-regs.c (tui_show_registers): Simplify.
2830 2019-07-17 Tom Tromey <tom@tromey.com>
2832 * tui/tui-regs.c (tui_show_registers): Update.
2833 (tui_show_register_group): Add win_info parameter.
2835 2019-07-17 Tom Tromey <tom@tromey.com>
2837 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
2838 Rename from tui_display_reg_element_at_line.
2839 (tui_data_window::display_registers_from_line): Update.
2840 * tui/tui-data.h (struct tui_data_window)
2841 <display_reg_element_at_line>: New method.
2843 2019-07-17 Tom Tromey <tom@tromey.com>
2845 * tui/tui-regs.h (tui_display_registers_from)
2846 (tui_display_registers_from_line): Don't declare.
2847 * tui/tui-windata.c (tui_data_window::display_all_data)
2848 (tui_data_window::refresh_all)
2849 (tui_data_window::do_scroll_vertical): Update.
2850 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
2851 from tui_display_registers_from.
2852 (tui_display_reg_element_at_line): Update.
2853 (tui_data_window::display_registers_from_line): Rename from
2854 tui_display_registers_from_line.
2855 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
2856 display_registers_from_line>: New methods.
2858 2019-07-17 Tom Tromey <tom@tromey.com>
2860 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
2861 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
2862 from tui_erase_data_content.
2863 (tui_data_window::display_all_data)
2864 (tui_data_window::refresh_all)
2865 (tui_data_window::do_scroll_vertical): Update.
2866 * tui/tui-regs.c (tui_show_registers): Update.
2867 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
2870 2019-07-17 Tom Tromey <tom@tromey.com>
2872 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
2875 (tui_data_window::delete_data_content_windows): Rename from
2876 tui_delete_data_content_windows.
2877 (tui_data_window::display_all_data)
2878 (tui_data_window::do_scroll_vertical): Update.
2879 * tui/tui-data.h (struct tui_data_window)
2880 <delete_data_content_windows>: New method.
2882 2019-07-17 Tom Tromey <tom@tromey.com>
2884 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
2885 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
2887 2019-07-17 Tom Tromey <tom@tromey.com>
2889 * tui/tui-windata.h (tui_display_all_data): Don't declare.
2890 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
2891 from tui_display_all_data.
2893 (tui_data_window::do_make_visible_with_new_height): Update.
2894 * tui/tui-regs.c (tui_show_registers): Update.
2895 * tui/tui-layout.c (tui_set_layout): Update.
2896 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
2899 2019-07-17 Tom Tromey <tom@tromey.com>
2901 * tui/tui-windata.h (tui_display_data_from): Don't declare.
2902 * tui/tui-windata.c (tui_display_data_from): Remove.
2903 (tui_data_window::refresh_all): Update.
2905 2019-07-17 Tom Tromey <tom@tromey.com>
2907 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
2908 * tui/tui-windata.c (tui_display_data_from_line): Remove.
2909 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
2910 tui_display_registers_from_line.
2911 * tui/tui-regs.h (tui_display_registers_from_line): Update.
2912 * tui/tui-regs.c (tui_display_registers_from_line): Remove
2913 "force_display" parameter.
2915 2019-07-17 Tom Tromey <tom@tromey.com>
2917 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
2919 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
2920 Rename from tui_first_reg_element_no_inline.
2921 (tui_display_reg_element_at_line)
2922 (tui_display_registers_from_line): Update.
2923 * tui/tui-data.h (struct tui_data_window)
2924 <first_reg_element_no_inline>: New method.
2926 2019-07-17 Tom Tromey <tom@tromey.com>
2928 * tui/tui-windata.c (tui_display_data_from)
2929 (tui_data_window::do_scroll_vertical): Update.
2930 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
2931 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
2932 Rename from tui_line_from_reg_element_no.
2933 (tui_display_registers_from_line): Update.
2934 * tui/tui-data.h (struct tui_data_window)
2935 <line_from_reg_element_no>: New method.
2937 2019-07-17 Tom Tromey <tom@tromey.com>
2939 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
2940 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
2941 tui_last_regs_line_no.
2942 (tui_display_reg_element_at_line)
2943 (tui_display_registers_from_line): Update.
2944 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
2947 2019-07-17 Tom Tromey <tom@tromey.com>
2950 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
2951 (tui_update_breakpoint_info): Add "being_deleted" parameter.
2952 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2953 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
2954 (tui_update_breakpoint_info): Likewise.
2955 * tui/tui-hooks.c (tui_event_create_breakpoint)
2956 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
2959 2019-07-17 Tom Tromey <tom@tromey.com>
2961 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
2963 2019-07-17 Tom Tromey <tom@tromey.com>
2965 * tui/tui-winsource.c (tui_update_source_window_as_is)
2966 (tui_update_source_windows_with_addr): Update.
2967 * tui/tui-source.h (tui_set_source_content)
2968 (tui_show_symtab_source): Add "win_info" parameter.
2969 * tui/tui-source.c (tui_set_source_content): Add "win_info"
2971 (tui_show_symtab_source): Likewise.
2973 2019-07-17 Tom Tromey <tom@tromey.com>
2975 * tui/tui-wingeneral.c
2976 (tui_check_and_display_highlight_if_needed): Check can_highlight.
2978 2019-07-17 Tom Tromey <tom@tromey.com>
2980 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
2981 (struct tui_cmd_window) <can_scroll>: New method.
2982 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
2985 2019-07-17 Tom Tromey <tromey@adacore.com>
2987 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
2988 do_field_signed>: Rename. Change type of "value".
2989 * ui-out.c (ui_out::field_signed): Rename from field_int.
2990 Change type of "value".
2991 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
2993 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
2994 do_field_int. Change type of "value".
2995 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
2996 do_field_int. Change type of "value".
2997 * tracepoint.c (trace_status_mi, tfind_1)
2998 (print_one_static_tracepoint_marker): Update.
2999 * thread.c (print_thread_info_1, print_selected_thread_frame):
3001 * stack.c (print_frame, print_frame_info): Update.
3002 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
3004 * source.c (print_source_lines_base): Update.
3005 * skip.c (info_skip_command): Update.
3006 * record-btrace.c (btrace_ui_out_decode_error)
3007 (btrace_call_history_src_line): Update.
3008 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
3010 * progspace.c (print_program_space): Update.
3011 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
3012 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
3013 do_field_int. Change type of "value".
3014 * mi/mi-out.c (mi_ui_out::do_table_begin)
3015 (mi_ui_out::do_table_header): Update.
3016 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
3018 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
3019 (mi_cmd_data_list_changed_registers, output_register)
3020 (mi_cmd_data_read_memory, mi_load_progress)
3021 (mi_cmd_trace_frame_collected): Update.
3022 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
3024 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3025 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
3026 (mi_cmd_var_list_children, varobj_update_one): Update.
3027 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
3028 (mi_cmd_stack_list_args, list_arg_or_local): Update.
3029 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
3030 * inferior.c (print_inferior): Update.
3031 * gdb_bfd.c (print_one_bfd): Update.
3032 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3034 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
3035 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
3036 do_field_int. Change type of "value".
3037 * cli-out.c (cli_ui_out::do_field_signed): Rename from
3038 do_field_int. Change type of "value".
3039 * breakpoint.c (watchpoint_check, print_breakpoint_location)
3040 (print_one_breakpoint_location, print_it_catch_fork)
3041 (print_one_catch_fork, print_it_catch_vfork)
3042 (print_one_catch_vfork, print_it_catch_solib)
3043 (print_it_catch_exec, print_it_ranged_breakpoint)
3044 (print_mention_watchpoint, print_mention_masked_watchpoint)
3045 (bkpt_print_it, update_static_tracepoint): Update.
3046 * break-catch-throw.c (print_it_exception_catchpoint): Update.
3047 * break-catch-syscall.c (print_it_catch_syscall): Update.
3048 * ada-tasks.c (print_ada_task_info): Update.
3049 * ada-lang.c (print_it_exception, print_mention_exception):
3052 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3054 PR breakpoints/24541
3055 * gdbarch.c: Regenerate.
3056 * gdbarch.h: Regenerate.
3057 * gdbarch.sh: Adjust return type and parameter types for
3058 'stap_adjust_register'.
3059 (i386_stap_adjust_register): Adjust signature and return new
3061 * stap-probe.c (stap_parse_register_operand): Adjust use of
3062 'gdbarch_stap_adjust_register'.
3064 2019-07-17 Tom Tromey <tromey@adacore.com>
3066 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
3068 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
3070 (struct s390_process_info): Add initializers.
3071 (s390_add_process): Use new.
3072 (s390_linux_nat_target::low_forget_process): Use delete.
3073 (s390_linux_nat_target::low_new_fork)
3074 (s390_linux_nat_target::stopped_by_watchpoint)
3075 (s390_linux_nat_target::low_prepare_to_resume)
3076 (s390_linux_nat_target::insert_watchpoint)
3077 (s390_linux_nat_target::insert_hw_breakpoint)
3078 (s390_linux_nat_target::remove_watchpoint)
3079 (s390_linux_nat_target::remove_hw_breakpoint): Update.
3081 2019-07-16 John Baldwin <jhb@FreeBSD.org>
3083 * aarch64-fbsd-nat.c: Include regcache.h.
3084 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
3086 (aarch64_fbsd_nat_target::fetch_registers)
3087 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
3089 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
3091 2019-07-16 John Baldwin <jhb@FreeBSD.org>
3093 * fbsd-nat.c: Include gdbarch.h.
3095 2019-07-15 Tom Tromey <tromey@adacore.com>
3097 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
3099 2019-07-15 Tom Tromey <tromey@adacore.com>
3101 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
3102 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
3103 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
3104 * cli-out.c (cli_ui_out::do_field_int): New method.
3105 * ui-out.c (ui_out::field_unsigned): New method.
3106 * symfile.c (generic_load): Use field_unsigned.
3107 (print_transfer_performance): Likewise.
3108 * record-btrace.c (ui_out_field_uint): Remove.
3109 (btrace_call_history_insn_range, btrace_call_history): Use
3111 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
3113 * ui-out.h (class ui_out) <field_unsigned>: New method.
3114 <do_field_unsigned>: Likewise.
3116 2019-07-15 Tom Tromey <tromey@adacore.com>
3118 * mi/mi-main.c (list_available_thread_groups): Use field_string.
3119 * mi/mi-interp.c (mi_memory_changed): Use field_string.
3120 * target.c (flash_erase_command): Use field_string.
3121 * infrun.c (print_signal_received_reason): Use field_string.
3122 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
3123 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
3125 * ada-tasks.c (print_ada_task_info): Use field_string.
3127 2019-07-15 Tom Tromey <tromey@adacore.com>
3129 * target.c (flash_erase_command): Use field_core_addr.
3130 * symfile.c (generic_load): Use field_core_addr.
3131 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3132 Use field_core_addr.
3133 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
3136 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3138 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
3139 value if its desired type is smaller than a CORE_ADDR and signed.
3141 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3143 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
3144 of changes to field names, and use new is_reference field to
3145 decide if a property is a reference or not.
3146 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
3148 (struct dwarf2_property_baton): Update header comment, rename
3149 'referenced_type' to 'property_type' and update comments.
3150 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
3151 default property type, store in property baton, update to take
3152 accound of renamed field.
3153 (read_func_scope): Update call to attr_to_dynamic_prop.
3154 (read_array_type): Likewise.
3155 (dwarf2_per_cu_addr_sized_int_type): New function.
3156 (read_subrange_index_type): Move type finding code to
3157 dwarf2_per_cu_addr_sized_int_type.
3158 (read_subrange_type): Update calls to attr_to_dynamic_prop.
3159 (dwarf2_per_cu_addr_type): New function.
3160 (set_die_type): Update calls to attr_to_dynamic_prop.
3162 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3164 * dwarf2read.c (read_subrange_index_type): New function.
3165 (read_subrange_type): Move code into new function and call it.
3166 * gdbtypes.c (create_range_type): Add some asserts.
3168 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3170 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
3171 update return statements.
3172 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
3173 declaration, and update comment to match.
3174 * gdbtypes.c (resolve_dynamic_array): Update call to
3175 dwarf2_evaluate_property to match new return type.
3177 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3179 * valarith.c (value_subscripted_rvalue): Change lowerbound
3180 parameter type from int to LONGEST.
3181 * value.h (value_subscripted_rvalue): Likewise in declaration.
3183 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3185 * cli/cli-utils.c (info_print_command_completer): New function.
3186 * cli/cli-utils.h: Add 'completer.h' include, and forward
3187 declaration for 'struct cmd_list_element'.
3188 (info_print_command_completer): Declare.
3189 * stack.c (_initialize_stack): Add completer for 'info locals' and
3191 * symtab.c (_initialize_symtab): Add completer for 'info
3192 variables' and 'info functions'.
3193 * NEWS: Mention completion for additional info commands.
3195 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3197 * cli/cli-utils.c (extract_info_print_args): Delete.
3198 (extract_arg_maybe_quoted): Delete.
3199 (info_print_options_defs): New variable.
3200 (make_info_print_options_def_group): New function.
3201 (extract_info_print_options): Define new function.
3202 * cli/cli-utils.h (extract_info_print_args): Delete.
3203 (struct info_print_options): New structure.
3204 (extract_info_print_options): Declare new function.
3205 * stack.c (info_locals_command): Update to use new
3206 extract_info_print_options, also add a header comment.
3207 (info_args_command): Likewise.
3208 * symtab.c (info_variables_command): Likewise.
3209 (info_functions_command): Likewise.
3211 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3213 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
3214 to extract string arguments.
3215 * common/common-utils.c (extract_string_maybe_quoted): New function.
3216 * common/common-utils.h (extract_string_maybe_quoted): Declare.
3218 2019-07-11 Tom Tromey <tromey@adacore.com>
3220 * main.c (get_init_files): Use GDBINIT, not gdbinit.
3221 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
3222 * top.h (gdbinit): Don't declare.
3223 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
3225 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
3226 * top.c (gdb_init): Don't call init_cli_cmds.
3228 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
3230 2019-07-11 Tom Tromey <tromey@adacore.com>
3232 * python/py-inferior.c (add_thread_object): Don't use thread_obj
3233 after it has been moved.
3235 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3237 * valops.c (value_must_coerce_to_target): Change return type to
3239 * value.h (value_must_coerce_to_target): Likewise.
3241 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
3243 * breakpoint.c (is_hardware_watchpoint): Remove
3244 forward-declaration.
3245 (is_masked_watchpoint): Change return type to bool.
3246 (is_tracepoint): Likewise.
3247 (is_breakpoint): Likewise.
3248 (is_hardware_watchpoint): Likewise.
3249 (is_watchpoint): Likewise.
3250 (is_no_memory_software_watchpoint): Likewise.
3251 (is_catchpoint): Likewise.
3252 (breakpoint_1): Make FILTER parameter's return type bool.
3253 is_masked_watchpoint): Change return type to bool.
3254 (save_breakpoints): Make FILTER parameter's return type bool.
3255 * breakpoint.h (is_breakpoint): Change return type to bool.
3256 (is_watchpoint): Likewise.
3257 (is_catchpoint): Likewise.
3258 (is_tracepoint): Likewise.
3260 2019-07-10 Tom Tromey <tom@tromey.com>
3262 * defs.h: Don't include gdbarch.h.
3263 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
3264 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
3265 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
3266 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
3267 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
3268 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
3269 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
3270 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
3271 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
3272 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
3273 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
3274 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
3275 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
3276 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
3277 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
3278 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
3279 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
3280 record-btrace.c, record.h, regcache-dump.c, regcache.h,
3281 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
3282 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
3283 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
3284 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
3285 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
3286 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
3287 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
3288 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
3289 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
3291 2019-07-10 Tom Tromey <tromey@adacore.com>
3293 * ada-lang.h (is_ada_exception_catchpoint): Declare.
3294 * breakpoint.c (init_ada_exception_breakpoint): Register as
3296 (print_one_breakpoint_location, print_one_breakpoint): Use
3297 is_ada_exception_catchpoint.
3298 * ada-lang.c (class ada_catchpoint_location): Pass
3299 bp_loc_software_breakpoint to bp_location constructor.
3300 (is_ada_exception_catchpoint): New function.
3302 2019-07-10 Tom Tromey <tromey@adacore.com>
3304 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
3306 (struct arm_exidx_entry): New method operator<.
3307 (struct arm_exidx_data) <section_maps>: Change type.
3308 (arm_exidx_data_free): Remove.
3309 (arm_exidx_data_key): Change type. Move lower.
3310 (arm_exidx_new_objfile): Update.
3311 (arm_compare_exidx_entries): Remove.
3312 (arm_find_exidx_entry, _initialize_arm_tdep)
3314 2019-07-10 Tom Tromey <tromey@adacore.com>
3316 * solib-spu.c (ocl_program_data_key): Change type.
3317 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
3320 2019-07-10 Tom Tromey <tromey@adacore.com>
3322 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
3323 (struct solib_aix_inferior_data) <library_list>: Change type.
3324 (solib_aix_inferior_data_handle): Change type.
3325 (get_solib_aix_inferior_data): Update.
3326 (solib_aix_free_library_list): Remove.
3327 (library_list_start_library): Update.
3328 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
3330 (solib_aix_get_library_list)
3331 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
3332 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
3334 2019-07-10 Tom Tromey <tromey@adacore.com>
3336 * solib-dsbt.c (struct dsbt_info): Add initializers.
3337 (solib_dsbt_pspace_data): Change type.
3338 (dsbt_pspace_data_cleanup): Remove.
3339 (get_dsbt_info, _initialize_dsbt_solib): Update.
3341 2019-07-10 Tom Tromey <tromey@adacore.com>
3343 * spu-tdep.c (spu_overlay_data): Change type.
3344 (spu_get_overlay_table, spu_overlay_new_objfile)
3345 (_initialize_spu_tdep): Update.
3347 2019-07-10 Tom Tromey <tromey@adacore.com>
3349 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
3351 (dbx_objfile_data_key): Change type and declare later.
3352 (DBX_SYMFILE_INFO): Rewrite.
3353 * dbxread.c (dbx_objfile_data_key): Change type.
3354 (dbx_symfile_init): Update.
3355 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
3356 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3357 (stabsect_build_psymtabs, _initialize_dbxread): Update.
3359 2019-07-10 Tom Tromey <tromey@adacore.com>
3361 * jit.c (jit_program_space_key): Change type. Move lower.
3362 (get_jit_program_space_data): Update.
3363 (jit_program_space_data_cleanup): Remove.
3364 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
3366 (struct jit_program_space_data): Add initializers.
3368 2019-07-10 Tom Tromey <tromey@adacore.com>
3370 * solib-darwin.c (struct darwin_info): Add initializers.
3371 (solib_darwin_pspace_data): Change type.
3372 (darwin_pspace_data_cleanup): Remove.
3373 (get_darwin_info, _initialize_darwin_solib): Update.
3375 2019-07-10 Tom Tromey <tromey@adacore.com>
3377 * remote-sim.c (struct sim_inferior_data): Add initializers,
3378 constructor, and destructor.
3379 (sim_inferior_data_key): Change type. Move lower.
3380 (check_for_duplicate_sim_descriptor): Update.
3381 (get_sim_inferior_data): Use new. Update.
3382 (~sim_inferior_data_cleanup): Rename from
3383 sim_inferior_data_cleanup. Simplify.
3384 (gdbsim_close_inferior, simulator_command)
3385 (sim_command_completer, _initialize_remote_sim): Update.
3386 (next_pid, INITIAL_PID): Move earlier.
3388 2019-07-10 Tom Tromey <tromey@adacore.com>
3390 * python/python-internal.h (create_thread_object): Return
3392 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
3393 * python/py-inferior.c (struct threadlist_entry): Add
3395 <thread_obj>: Now a gdbpy_ref.
3396 (thread_to_thread_object): Update.
3397 (add_thread_object): Use new.
3398 (delete_thread_object): Use delete.
3399 (infpy_threads): Update.
3400 (py_free_inferior): Update. Construct "inf_obj" after acquiring
3403 2019-07-10 Tom Tromey <tromey@adacore.com>
3405 * valops.c (value_cast): Specialize error message for Ada.
3407 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3409 * breakpoint.c (breakpoint_1): Update doc and parameter names.
3411 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3413 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
3414 bpstat_should_step): Return bool, adjust comments.
3415 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
3416 bpstat_should_step): Likewise.
3418 2019-07-10 Alan Hayward <alan.hayward@arm.com>
3420 * features/Makefile: Use feature target descriptions for Arm.
3421 * features/arm/arm-core.c: Generate new file.
3422 * features/arm/arm-fpa.c: Likewise.
3423 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
3424 * features/arm/arm-m-profile.c: Likewise.
3425 * features/arm/arm-vfpv2.c: Likewise.
3426 * features/arm/arm-vfpv3.c: Likewise.
3427 * features/arm/xscale-iwmmxt.c: Likewise.
3428 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
3430 2019-07-10 Alan Hayward <alan.hayward@arm.com>
3432 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
3435 2019-07-10 Alan Hayward <alan.hayward@arm.com>
3437 * features/aarch64-pauth.c: Regenerate.
3439 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
3441 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
3443 (bpstat_what): Use false instead of 0.
3445 2019-07-09 Pedro Alves <palves@redhat.com>
3447 * break-catch-throw.c (is_exception_catchpoint): New.
3448 * breakpoint.c (print_one_breakpoint_location): New parameter
3449 'raw_loc'. Handle it. Use
3450 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
3451 looking at the breakpoint's type.
3452 (print_one_breakpoint): If handling "maint info breakpoints", also
3453 print locations of exception catchpoints.
3454 * breakpoint.h (is_exception_catchpoint): Declare.
3456 2019-07-09 Pedro Alves <palves@redhat.com>
3458 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
3460 (allocate_location_exception_catchpoint): New.
3461 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
3462 (initialize_throw_catchpoint_ops): Install
3463 allocate_location_exception_catchpoint as allocate_location
3465 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
3466 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
3468 (breakpoint_address_is_meaningful): Delete.
3469 (bl_address_is_meaningful): New.
3470 (breakpoint_locations_match): Adjust comment.
3471 (bp_location_from_bp_type): New, factored out of...
3472 (bp_location::bp_location(breakpoint *)): ... this.
3473 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
3475 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
3476 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
3477 breakpoint_address_is_meaningful.
3478 (bp_locations_compare): Adjust comment.
3479 (update_global_location_list): Use bl_address_is_meaningful
3480 instead of breakpoint_address_is_meaningful.
3481 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
3483 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
3484 * python/py-breakpoint.c (bppy_get_location): No longer check
3485 whether location is null.
3487 2019-07-09 Pedro Alves <palves@redhat.com>
3490 * breakpoint.c (print_one_breakpoint_location): Remove
3491 single-location assert.
3493 2019-07-09 Tom Tromey <tom@tromey.com>
3495 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
3496 * configure: Rebuild.
3497 * configure.ac: Change common to gdbsupport.
3498 * gdbsupport: Rename from common.
3499 * acinclude.m4: Change common to gdbsupport.
3500 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
3501 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
3503 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
3504 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
3505 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
3506 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
3507 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
3508 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
3509 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
3510 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
3511 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
3512 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
3513 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
3514 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
3515 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
3516 coff-pe-read.c, command.h, compile/compile-c-support.c,
3517 compile/compile-c.h, compile/compile-cplus-symbols.c,
3518 compile/compile-cplus-types.c, compile/compile-cplus.h,
3519 compile/compile-loc2c.c, compile/compile.c, completer.c,
3520 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
3521 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
3522 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
3523 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
3524 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
3525 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
3526 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
3527 features/aarch64-core.c, features/aarch64-fpu.c,
3528 features/aarch64-pauth.c, features/aarch64-sve.c,
3529 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
3530 features/i386/32bit-core.c, features/i386/32bit-linux.c,
3531 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
3532 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
3533 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
3534 features/i386/64bit-core.c, features/i386/64bit-linux.c,
3535 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
3536 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
3537 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
3538 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
3539 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
3540 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
3541 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
3542 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
3543 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
3544 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
3545 go32-nat.c, guile/guile.c, guile/scm-ports.c,
3546 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
3547 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
3548 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
3549 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
3550 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
3551 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
3552 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
3553 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
3554 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
3555 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
3556 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
3557 minsyms.c, mips-linux-tdep.c, namespace.h,
3558 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
3559 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
3560 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
3561 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
3562 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
3563 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
3564 nat/linux-waitpid.c, nat/mips-linux-watch.c,
3565 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
3566 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
3567 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
3568 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
3569 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
3570 procfs.c, producer.c, progspace.h, psymtab.h,
3571 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
3572 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
3573 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
3574 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
3575 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
3576 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
3577 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
3578 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
3579 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
3580 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
3581 target-memory.c, target.c, target.h, target/waitstatus.c,
3582 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
3583 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
3584 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
3585 unittests/array-view-selftests.c,
3586 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
3587 unittests/common-utils-selftests.c,
3588 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
3589 unittests/format_pieces-selftests.c,
3590 unittests/function-view-selftests.c,
3591 unittests/lookup_name_info-selftests.c,
3592 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
3593 unittests/mkdir-recursive-selftests.c,
3594 unittests/observable-selftests.c,
3595 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
3596 unittests/parse-connection-spec-selftests.c,
3597 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
3598 unittests/scoped_fd-selftests.c,
3599 unittests/scoped_mmap-selftests.c,
3600 unittests/scoped_restore-selftests.c,
3601 unittests/string_view-selftests.c, unittests/style-selftests.c,
3602 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
3603 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
3604 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
3605 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
3606 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
3607 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
3609 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3611 * linespec.c (decode_digits_list_mode): Set explicit_line to a
3613 (decode_digits_ordinary): Set explicit_line field in sal.
3614 * symtab.c (skip_prologue_sal): Don't skip prologue for a
3615 symtab_and_line that was set on an explicit line number in
3616 assembler code. Do always update the recorded symtab and line if
3617 we do skip the prologue.
3619 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3621 * breakpoint.c (set_breakpoint_location_function): Remove
3622 explicit_loc parameter.
3623 (momentary_breakpoint_from_master): Update call to
3624 set_breakpoint_location_function.
3625 (add_location_to_breakpoint): Likewise.
3627 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3629 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
3630 required features based on default bfd type when no specific bfd
3633 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3635 * NEWS: Mention that GDB printf and eval commands can now print
3636 C-style and Ada-style convenience var strings without
3637 calling the inferior.
3638 * printcmd.c (printf_c_string): Locally print GDB internal var
3639 instead of transiting via the inferior.
3640 (printf_wide_c_string): Likewise.
3642 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3644 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
3646 2019-07-04 Tom Tromey <tom@tromey.com>
3649 * tui/tui-winsource.c (tui_clear_source_content): Update.
3650 (tui_source_window_base::set_is_exec_point_at): Fix comment.
3651 (tui_update_breakpoint_info): Update.
3652 (tui_set_exec_info_content): Update.
3653 * tui/tui-source.c (tui_set_source_content_nil): Update.
3654 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
3656 * tui/tui-data.h (enum tui_bp_flag): New.
3657 (tui_bp_flags): New enum flags type.
3658 (struct tui_source_element) <break_mode>: Change type. Rename
3660 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
3661 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
3663 * tui/tui-winsource.h: Fix comment.
3665 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3667 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
3668 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
3669 (store_fpregs_to_thread)
3670 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
3671 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
3672 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
3673 (IWMMXT_REGS_SIZE): Add define.
3674 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
3675 (fetch_vfp_regs, store_vfp_regs)
3676 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
3677 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
3679 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3681 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
3683 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
3684 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
3685 (ARM_INT_REGISTER_SIZE): ...to this.
3686 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
3687 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
3688 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
3689 (arm_linux_collect_gregset, supply_nwfpe_register)
3690 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
3692 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
3693 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
3694 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
3695 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
3696 (arm_return_in_memory, arm_store_return_value)
3697 (arm_get_longjmp_target, arm_register_g_packet_guesses)
3698 (arm_record_ld_st_multiple): Likewise.
3699 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
3700 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
3702 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3704 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
3705 AARCH64_DISPLACED_MODIFIED_INSNS.
3706 * aarch64-tdep.c (struct aarch64_displaced_step_data)
3707 (aarch64_displaced_step_copy_insn): Likewise.
3708 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
3709 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
3710 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
3711 ARM_DISPLACED_MODIFIED_INSNS.
3712 * arm-tdep.c (arm_gdbarch_init): Likewise.
3713 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
3714 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
3715 (struct arm_displaced_step_closure): Use
3716 ARM_DISPLACED_MODIFIED_INSNS.
3718 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3720 * features/Makefile: Remove unused xml files.
3721 * features/aarch64.xml: Remove.
3722 * features/i386/amd64-avx-avx512-linux.xml: Remove.
3723 * features/i386/amd64-avx-avx512.xml: Remove.
3724 * features/i386/amd64-avx-linux.xml: Remove.
3725 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
3726 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
3727 * features/i386/amd64-avx-mpx-linux.xml: Remove.
3728 * features/i386/amd64-avx-mpx.xml: Remove.
3729 * features/i386/amd64-avx.xml: Remove.
3730 * features/i386/amd64-linux.xml: Remove.
3731 * features/i386/amd64-mpx-linux.xml: Remove.
3732 * features/i386/amd64-mpx.xml: Remove.
3733 * features/i386/amd64.xml: Remove.
3734 * features/i386/i386-avx-avx512-linux.xml: Remove.
3735 * features/i386/i386-avx-avx512.xml: Remove.
3736 * features/i386/i386-avx-linux.xml: Remove.
3737 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
3738 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
3739 * features/i386/i386-avx-mpx-linux.xml: Remove.
3740 * features/i386/i386-avx-mpx.xml: Remove.
3741 * features/i386/i386-avx.xml: Remove.
3742 * features/i386/i386-linux.xml: Remove.
3743 * features/i386/i386-mmx-linux.xml: Remove.
3744 * features/i386/i386-mmx.xml: Remove.
3745 * features/i386/i386-mpx-linux.xml: Remove.
3746 * features/i386/i386-mpx.xml: Remove.
3747 * features/i386/i386.xml: Remove.
3748 * features/i386/x32-avx-avx512-linux.xml: Remove.
3749 * features/i386/x32-avx-linux.xml: Remove.
3750 * features/i386/x32-linux.xml: Remove.
3752 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3754 * regformats/aarch64.dat: Remove.
3755 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
3756 * regformats/i386/amd64-avx-linux.dat: Remove.
3757 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
3758 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
3759 * regformats/i386/amd64-linux.dat: Remove.
3760 * regformats/i386/amd64-mpx-linux.dat: Remove.
3761 * regformats/i386/amd64.dat: Remove.
3762 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
3763 * regformats/i386/i386-avx-linux.dat: Remove.
3764 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
3765 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
3766 * regformats/i386/i386-linux.dat: Remove.
3767 * regformats/i386/i386-mmx-linux.dat: Remove.
3768 * regformats/i386/i386-mpx-linux.dat: Remove.
3769 * regformats/i386/i386.dat: Remove.
3770 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
3771 * regformats/i386/x32-avx-linux.dat: Remove.
3772 * regformats/i386/x32-linux.dat: Remove.
3774 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3776 * aarch64-tdep.c: Remove xml self tests.
3777 * amd64-linux-tdep.c: Likewise.
3778 * amd64-tdep.c: Likewise.
3779 * i386-linux-tdep.c: Likewise.
3780 * i386-tdep.c: Likewise.
3782 2019-07-03 Pedro Alves <palves@redhat.com>
3785 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
3786 (pipe_cmd_option_defs): New.
3787 (make_pipe_cmd_options_def_group): New.
3788 (pipe_command): Use gdb::option::process_options.
3789 (pipe_command_completer): New function.
3790 (_initialize_cli_cmds): Install completer for "pipe" command.
3792 2019-07-03 Pedro Alves <palves@redhat.com>
3794 * cli/cli-option.c (union option_value) <string>: New field.
3795 (struct option_def_and_value): Add ctor, move ctor, dtor and
3796 use DISABLE_COPY_AND_ASSIGN.
3797 (option_def_and_value::clear_value): New.
3798 (parse_option, save_option_value_in_ctx, get_val_type_str)
3799 (add_setshow_cmds_for_options): Handle var_string.
3800 * cli-option.h (union option_def::var_address) <string>: New
3802 (struct string_option_def): New.
3803 * maint-test-options.c (struct test_options_opts): Add default
3804 ctor and use DISABLE_COPY_AND_ASSIGN.
3805 <string_opt>: New field.
3806 (test_options_opts::~test_options_opts): New.
3807 (test_options_opts::dump): Also dump "-string".
3808 (test_options_option_defs): Install "string.
3810 2019-07-03 Pedro Alves <palves@redhat.com>
3812 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
3813 option_value with a null enumeration.
3814 (complete_options): Save the option values in the context.
3815 (save_option_value_in_ctx): New, factored out from ...
3816 (process_options): ... here.
3817 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
3819 * maint-test-options.c (test_options_opts::dump): New, factored
3821 (maintenance_test_options_command_mode): ... here.
3822 (maintenance_test_options_command_completion_result): Delete.
3823 (maintenance_test_options_command_completion_text): Update
3825 (maintenance_show_test_options_completion_result): Change
3826 prototype. Just print
3827 maintenance_test_options_command_completion_text.
3828 (save_completion_result): New.
3829 (maintenance_test_options_completer_mode): Pass options context to
3830 complete_options, and then save a dump.
3831 (_initialize_maint_test_options): Use add_cmd to install "maint
3832 show test-options-completion-result".
3834 2019-07-03 Pedro Alves <palves@redhat.com>
3836 * NEWS (New commands): Mention "with" and "maint with".
3837 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
3838 (with_command, with_command_completer): New.
3839 (pipe_command): Adjust to new repeat_previous
3841 (_initialize_cli_cmds): Install the "with" command and its "w"
3843 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
3845 * cli/cli-setshow.c (parse_cli_var_uinteger)
3846 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
3847 argument strings for all var_types.
3848 (get_setshow_command_value_string): New, factored out from ...
3849 (do_show_command): ... this.
3850 * cli/cli-setshow.h: Include <string>.
3851 (get_setshow_command_value_string): Declare.
3852 * command.h (repeat_previous): Now returns const char *. Adjust
3854 * maint.c: Include "cli/cli-cmds.h".
3855 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
3856 (_initialize_maint_cmds): Register the "maintenance with" command.
3857 * top.c (repeat_previous): Move bits from pipe_command here:
3858 Return the saved command line, if any; error out if there's no
3859 command to relaunch.
3861 2019-07-03 Pedro Alves <palves@redhat.com>
3863 * NEWS (New commands): Mention "maint set/show test-settings"
3864 instead of "maint test-settings".
3865 * maint-test-settings.c (maintenance_test_settings_list): Delete.
3866 (maintenance_test_settings_set_list): Rename to ...
3867 (maintenance_set_test_settings_list): ... this.
3868 (maintenance_test_settings_show_list): Rename to ...
3869 (maintenance_show_test_settings_list): ... this.
3870 (maintenance_test_settings_cmd): Delete.
3871 (maintenance_test_settings_set_cmd): ...
3872 (maintenance_set_test_settings_cmd): ... this.
3873 (maintenance_test_settings_show_cmd): ...
3874 (maintenance_show_test_settings_cmd): ... this.
3875 (maintenance_test_settings_show_value_cmd):
3876 (maintenance_show_test_settings_value_cmd): ... this.
3877 (_initialize_maint_test_settings): No longer install the "maint
3878 test-settings" prefix command. Rename "maint test-settings set"
3879 to "maint set test-settings", and "maint test-settings show" to
3880 "maint show test-settings". Adjust all subcommands.
3882 2019-07-03 Pedro Alves <palves@redhat.com>
3884 * maint-test-settings.c: Fix file's intro comment. Replace all
3885 references to "test-options" with references to "test-settings",
3888 2019-07-03 Pedro Alves <palves@redhat.com>
3890 * maint-test-settings.c (maintenance_test_settings_xxx)
3891 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
3893 (maintenance_test_settings_enums): Use them.
3894 (maintenance_test_settings_enum): Default to
3895 maintenance_test_settings_xxx.
3896 (_initialize_maint_test_settings): Initialize
3897 MAINTENANCE_TEST_SETTINGS_FILENAME.
3899 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3901 * breakpoint.h (remove_breakpoints_inf): Change return type to
3902 void, move function documentation here.
3903 * breakpoint.c (remove_breakpoints_inf): Change return type to
3904 void, move function documentation to header.
3906 2019-07-02 Pedro Alves <palves@redhat.com>
3908 * NEWS (Completion improvements): Mention "info threads".
3909 * thread.c (struct info_threads_opts, info_threads_option_defs)
3910 (make_info_threads_options_def_group): New.
3911 (info_threads_command): Use gdb::option::process_options.
3912 (info_threads_command_completer): New.
3913 (_initialize_thread): Use gdb::option::build_help to build the
3914 help text for "info threads".
3916 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3918 * defs.h (generic_load): Move from here...
3919 * symfile.h (generic_load): ... to here. Rename name parameter
3921 * symfile.c (generic_load): Add comment.
3923 2019-07-01 Tom Tromey <tromey@adacore.com>
3926 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
3927 declaration of without_params. Fix formatting.
3929 2019-07-01 Tom Tromey <tromey@adacore.com>
3931 * ada-exp.y (find_primitive_type): Update.
3932 * ada-lang.h (ada_lookup_symbol): Update.
3933 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
3935 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
3937 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
3939 PR breakpoints/24541
3940 * gdbarch.c: Regenerate.
3941 * gdbarch.h: Regenerate.
3942 * gdbarch.sh: Add 'stap_adjust_register'.
3943 * i386-tdep.c: Include '<unordered_set>'.
3944 (i386_stap_adjust_register): New function.
3945 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
3946 * stap-probe.c (stap_parse_register_operand): Call
3947 'gdbarch_stap_adjust_register'.
3949 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
3952 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
3953 * python/python.c (do_start_initialization): Use 'xmalloc'
3954 instead of 'PyMem_Malloc'.
3956 2019-06-28 Tom Tromey <tromey@adacore.com>
3958 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
3961 2019-06-27 Tom Tromey <tromey@adacore.com>
3963 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
3965 (arm_find_mapping_symbol, arm_record_special_symbol)
3966 (_initialize_arm_tdep): Update.
3967 (arm_objfile_data_free): Remove.
3969 2019-06-27 Tom Tromey <tromey@adacore.com>
3971 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
3972 to cp_print_static_field.
3974 2019-06-26 Tom Tromey <tromey@adacore.com>
3976 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
3977 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
3980 2019-06-26 Alan Hayward <alan.hayward@arm.com>
3982 * features/aarch64-core.c (create_feature_aarch64_core):
3984 * features/aarch64-core.xml: Add cpsr flags.
3986 2019-06-26 Alan Hayward <alan.hayward@arm.com>
3988 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
3989 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
3991 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
3993 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
3995 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
3997 (arm_record_special_symbol): Don't insert new symbol in sorted
3998 position, push it at the end.
4000 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
4002 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
4003 (arm_mapping_symbol_s): Remove.
4004 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
4005 (arm_mapping_symbol_vec): New typedef.
4006 (struct arm_per_objfile): Add constructor.
4007 <section_maps>: Change type to
4008 std::unique_ptr<arm_mapping_symbol_vec[]>.
4009 (arm_compare_mapping_symbols): Remove.
4010 (arm_find_mapping_symbol): Adjust to section_maps type change.
4011 (arm_objfile_data_free): Call delete on arm_per_objfile.
4012 (arm_record_special_symbol): Adjust to section_maps type change.
4013 Allocate arm_per_objfile with new.
4015 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4017 * cli/cli-cmds.c (alias_command): Compare the alias prefix
4018 with the command prefix.
4020 2019-06-25 Tom Tromey <tom@tromey.com>
4022 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
4023 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
4025 2019-06-25 Tom Tromey <tom@tromey.com>
4027 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
4029 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
4032 2019-06-25 Tom Tromey <tom@tromey.com>
4034 * tui/tui-winsource.c
4035 (tui_source_window_base::set_is_exec_point_at): Add check against
4038 2019-06-25 Tom Tromey <tom@tromey.com>
4040 * tui/tui-source.c (tui_set_source_content): Don't check before
4042 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
4044 2019-06-25 Tom Tromey <tom@tromey.com>
4046 * tui/tui-winsource.h (tui_update_source_window_as_is)
4047 (tui_alloc_source_buffer, tui_line_is_displayed)
4048 (tui_addr_is_displayed): Change type of win_info.
4049 * tui/tui-winsource.c (tui_update_source_window_as_is)
4050 (tui_clear_source_content, tui_show_source_line)
4051 (tui_show_source_content, tui_source_window_base::refill)
4052 (tui_source_window_base::set_is_exec_point_at)
4053 (tui_source_window_base::set_is_exec_point_at)
4054 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
4055 (tui_alloc_source_buffer, tui_line_is_displayed)
4056 (tui_addr_is_displayed): Change type of win_info. Update.
4057 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4058 (tui_source_window_base::do_make_visible_with_new_height):
4060 * tui/tui-source.c (tui_set_source_content)
4061 (tui_set_source_content_nil)
4062 (tui_source_window::do_scroll_vertical): Update.
4063 * tui/tui-layout.c (show_layout): Update.
4064 * tui/tui-disasm.c (tui_set_disassem_content)
4065 (tui_disasm_window::do_scroll_vertical): Update.
4066 * tui/tui-data.h (tui_win_content): Remove.
4067 (struct tui_gen_win_info) <content, content_size>: Remove.
4068 (struct tui_source_element): Add initializers and destructor.
4069 (union tui_which_element, struct tui_win_element): Remove.
4070 (struct tui_source_window_base) <content>: New field.
4071 (struct tui_data_window): Remove destructor.
4072 (tui_alloc_content, tui_free_win_content)
4073 (tui_free_all_source_wins_content): Don't declare.
4074 * tui/tui-data.c (tui_initialize_static_data): Update.
4075 (init_content_element, tui_alloc_content): Remove.
4076 (~tui_gen_win_info): Update.
4077 (~tui_data_window, tui_free_all_source_wins_content)
4078 (tui_free_win_content, free_content, free_content_elements):
4081 2019-06-25 Tom Tromey <tom@tromey.com>
4083 * tui/tui-winsource.h (tui_clear_source_content)
4084 (tui_erase_source_content, tui_show_source_content): Change type
4086 * tui/tui-winsource.c (tui_clear_source_content)
4087 (tui_erase_source_content, tui_show_source_content): Change type
4089 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4090 * tui/tui-source.h (tui_set_source_content_nil): Change type of
4092 * tui/tui-source.c (tui_set_source_content_nil): Change type of
4094 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
4096 2019-06-25 Tom Tromey <tom@tromey.com>
4098 * tui/tui-winsource.c (tui_clear_source_content)
4099 (tui_source_window_base::set_is_exec_point_at): Update.
4100 * tui/tui-source.c (tui_set_source_content_nil): Update.
4101 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
4103 * tui/tui-data.c (init_content_element): Update.
4105 2019-06-25 Tom Tromey <tom@tromey.com>
4107 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
4108 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
4109 * tui/tui-layout.c (init_and_make_win): Update.
4110 * tui/tui.h (enum tui_win_type): Update.
4111 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
4112 tui_win_is_auxillary.
4113 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
4114 tui_win_is_auxillary.
4116 2019-06-25 Tom Tromey <tom@tromey.com>
4118 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
4119 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
4120 (tui_delete_data_content_windows, tui_display_all_data)
4121 (tui_data_window::do_scroll_vertical, tui_display_data_from):
4123 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
4124 * tui/tui-regs.c (tui_last_regs_line_no)
4125 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
4126 (tui_show_registers): Update.
4127 (tui_show_register_group): Return void. Update.
4128 (tui_display_registers_from, tui_display_reg_element_at_line)
4129 (tui_display_registers_from_line, tui_check_register_values):
4131 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
4133 (struct tui_data_window) <regs_content>: Now a std::vector.
4134 <regs_content_count>: Remove.
4135 (tui_add_content_elements, tui_free_data_content): Don't declare.
4136 * tui/tui-data.c (tui_data_window::clear_detail): Update.
4137 (init_content_element): Remove DATA_WIN case. Add assert.
4138 (tui_add_content_elements): Remove.
4139 (tui_data_window): Update.
4140 (tui_free_data_content): Remove.
4141 (free_content_elements): Remove DATA_WIN case.
4143 2019-06-25 Tom Tromey <tom@tromey.com>
4145 * tui/tui-data.c (tui_data_item_window): Update.
4146 * tui/tui-windata.h (tui_check_data_values): Don't declare.
4147 * tui/tui-windata.c (tui_display_all_data)
4148 (tui_display_data_from_line): Update.
4149 (tui_check_data_values): Remove.
4150 * tui/tui-regs.c (tui_show_register_group)
4151 (tui_display_reg_element_at_line): Update.
4152 * tui/tui-hooks.c (tui_register_changed)
4153 (tui_refresh_frame_and_register_information): Call
4154 tui_check_register_values.
4155 * tui/tui-data.h (struct tui_data_window) <data_content,
4156 data_content_count, data_type>: Remove.
4157 (enum tui_data_type): Remove.
4159 * tui/tui-data.c (tui_data_window::clear_detail)
4160 (~tui_data_window): Update.
4162 2019-06-25 Tom Tromey <tom@tromey.com>
4164 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
4166 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
4167 Rename from tui_first_data_item_displayed. Update.
4168 (tui_data_window::refresh_all)
4169 (tui_data_window::do_scroll_vertical): Update.
4170 * tui/tui-data.h (struct tui_data_window)
4171 <first_data_item_displayed>: Declare new method.
4173 2019-06-25 Tom Tromey <tom@tromey.com>
4175 * tui/tui-data.h (tui_init_generic_part): Don't declare.
4176 * tui/tui-data.c (tui_init_generic_part): Remove, moving
4178 (tui_initialize_static_data): ...here.
4180 2019-06-25 Tom Tromey <tom@tromey.com>
4182 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4183 (tui_display_registers_from, tui_check_register_values): Update.
4184 (tui_display_register): Remove win_info parameter; update.
4185 (tui_get_register): Change type of parameters.
4186 * tui/tui-data.h (struct tui_data_element): Remove.
4187 (union tui_which_element) <data>: Remove.
4188 <data_window>: Change type.
4189 (struct tui_data_item_window): New.
4190 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
4192 (~tui_data_item_window): New destructor.
4193 (free_content_elements): Remove DATA_ITEM_WIN case.
4195 2019-06-25 Tom Tromey <tom@tromey.com>
4197 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
4200 2019-06-25 Tom Tromey <tom@tromey.com>
4202 * tui/tui-data.h (struct tui_command_element): Remove.
4203 (union tui_which_element) <command>: Remove.
4204 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
4206 (free_content_elements): Remove CMD_WIN case.
4208 2019-06-25 Tom Tromey <tom@tromey.com>
4210 * tui/tui-layout.c (tui_set_layout): Update.
4211 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
4212 * tui/tui-data.c (layout_def): Update.
4214 2019-06-25 Tom Tromey <tom@tromey.com>
4216 * tui/tui-wingeneral.c (tui_refresh_all): Update.
4217 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4218 (tui_source_window_base::set_new_height): Update.
4219 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
4221 (tui_set_locator_fullname, tui_set_locator_info)
4222 (tui_show_frame_info): Update.
4223 * tui/tui-source.c (tui_set_source_content)
4224 (tui_source_is_displayed): Update.
4225 * tui/tui-layout.c (show_source_disasm_command, show_data)
4226 (show_source_or_disasm_and_command): Update.
4227 * tui/tui-disasm.c (tui_set_disassem_content)
4228 (tui_get_begin_asm_address): Update.
4229 * tui/tui-data.h (struct tui_locator_element): Remove.
4230 (union tui_which_element) <locator>: Remove.
4231 (struct tui_locator_window): New.
4232 (tui_locator_win_info_ptr): Change return type.
4233 * tui/tui-data.c (_locator): Change type.
4234 (tui_locator_win_info_ptr): Change return type.
4235 (init_content_element): Remove LOCATOR_WIN case. Add assert.
4236 (tui_alloc_content): Add assert.
4238 2019-06-25 Tom Tromey <tom@tromey.com>
4240 * tui/tui-winsource.c
4241 (tui_exec_info_window::maybe_allocate_content): New method.
4242 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
4243 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
4244 (make_source_or_disasm_window): Add cast.
4245 * tui/tui-data.h (union tui_which_element) <simple_string>:
4247 (struct tui_source_info): New.
4248 (struct tui_source_window_base) <execution_info>: Change type.
4249 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
4250 case, and add assert.
4251 (tui_alloc_content): Add assert.
4253 2019-06-25 Tom Tromey <tom@tromey.com>
4255 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
4256 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
4257 * tui/tui-data.c (tui_alloc_win_info): Remove.
4259 2019-06-25 Tom Tromey <tom@tromey.com>
4261 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
4262 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
4265 2019-06-25 Tom Tromey <tom@tromey.com>
4267 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
4268 make_visible_with_new_height method.
4269 (tui_win_info::make_visible_with_new_height): New method.
4270 (tui_source_window_base::do_make_visible_with_new_height)
4271 (tui_data_window::do_make_visible_with_new_height)
4272 (tui_cmd_window::do_make_visible_with_new_height): New methods.
4273 (make_visible_with_new_height): Remove.
4274 (tui_resize_all, tui_adjust_win_heights): Use
4275 make_visible_with_new_height method.
4276 * tui/tui-data.h (struct tui_win_info)
4277 <do_make_visible_with_new_height, make_visible_with_new_height>:
4279 (struct tui_source_window_base, struct tui_data_window)
4280 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
4283 2019-06-25 Tom Tromey <tom@tromey.com>
4285 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
4287 (update_tab_width): Call update_tab_width method.
4288 * tui/tui-data.h (struct tui_win_info)
4289 (struct tui_source_window_base) <update_tab_width>: New methods.
4291 2019-06-25 Tom Tromey <tom@tromey.com>
4293 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
4295 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
4297 (tui_gen_win_info::make_visible): Update.
4298 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
4300 * tui/tui-data.h (enum tui_box): New enum.
4301 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
4303 2019-06-25 Tom Tromey <tom@tromey.com>
4305 * tui/tui-layout.c (make_source_or_disasm_window): Always use
4306 init_and_make_win for EXEC_INFO_WIN.
4307 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
4309 (struct tui_win_info) <~tui_win_info>: Inline.
4310 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4312 * tui/tui-data.c (source_win, disasm_win): Remove globals.
4313 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4315 (tui_initialize_static_data): Update.
4316 (~tui_gen_win_info): Handle more cleanup here.
4317 (~tui_source_window_base): Delete "execution_info".
4318 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
4320 2019-06-25 Tom Tromey <tom@tromey.com>
4322 * tui/tui-layout.c (make_command_window): Don't set
4324 (show_source_disasm_command): Call the reset method.
4325 (show_data): Don't set can_highlight. Call the reset method.
4326 (tui_gen_win_info::reset): Rename from init_gen_win_info
4327 (init_and_make_win): Simplify. Return tui_gen_win_info.
4328 (show_source_or_disasm_and_command): Call the reset method.
4329 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
4330 (struct tui_cmd_window): Set can_highlight.
4332 2019-06-25 Tom Tromey <tom@tromey.com>
4334 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
4336 (tui_make_visible, tui_make_invisible): Rewrite.
4337 (tui_win_info::make_visible): Remove.
4338 (tui_source_window_base::make_visible): Update.
4339 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
4340 method. Moved from...
4341 (struct tui_win_info) <make_visible>: ...here.
4343 2019-06-25 Tom Tromey <tom@tromey.com>
4345 * tui/tui-winsource.c
4346 (tui_source_window_base::do_scroll_horizontal): Remove direction
4348 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
4349 direction parameter.
4350 * tui/tui-win.c (tui_win_info::forward_scroll)
4351 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
4352 (tui_win_info::right_scroll): Update.
4353 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
4354 direction parameter.
4355 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
4356 direction parameter.
4357 * tui/tui-data.h (enum tui_scroll_direction): Remove.
4358 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
4359 Remove direction parameter.
4360 (struct tui_source_window_base, struct tui_source_window)
4361 (struct tui_disasm_window, struct tui_data_window)
4362 (struct tui_cmd_window): Update.
4364 2019-06-25 Tom Tromey <tom@tromey.com>
4366 * tui/tui-winsource.h (tui_set_exec_info_content)
4367 (tui_show_exec_info_content, tui_erase_exec_info_content)
4368 (tui_clear_exec_info_content, tui_update_exec_info): Change
4369 argument to tui_source_window_base.
4370 * tui/tui-winsource.c (tui_set_exec_info_content)
4371 (tui_show_exec_info_content, tui_erase_exec_info_content)
4372 (tui_clear_exec_info_content, tui_update_exec_info): Change
4373 argument to tui_source_window_base.
4375 2019-06-25 Tom Tromey <tom@tromey.com>
4377 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
4378 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
4380 2019-06-25 Tom Tromey <tom@tromey.com>
4382 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
4385 2019-06-25 Tom Tromey <tom@tromey.com>
4387 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
4389 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
4391 * tui/tui-source.c (tui_set_source_content): Update.
4392 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4394 2019-06-25 Tom Tromey <tom@tromey.com>
4396 * tui/tui-win.c (window_name_completer, tui_set_focus)
4397 (tui_all_windows_info): Use name method.
4398 * tui/tui-data.h (struct tui_gen_win_info)
4399 (struct tui_source_window, struct tui_disasm_window)
4400 (struct tui_data_window, struct tui_cmd_window) <name>: New
4402 (tui_win_name): Don't declare.
4403 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
4404 (tui_win_name): Remove.
4406 2019-06-25 Tom Tromey <tom@tromey.com>
4408 * tui/tui-winsource.h (tui_update_source_window)
4409 (tui_update_source_window_as_is): Change parameter type.
4410 * tui/tui-winsource.c (tui_update_source_window): Change win_info
4411 to be a tui_source_window_base.
4412 (tui_update_source_window_as_is): Likewise.
4413 * tui/tui-win.c (make_visible_with_new_height): Update.
4415 2019-06-25 Tom Tromey <tom@tromey.com>
4417 * tui/tui-winsource.c (tui_erase_source_content)
4418 (tui_show_source_content, tui_show_exec_info_content)
4419 (tui_erase_exec_info_content): Use refresh_window method.
4420 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
4421 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
4422 from tui_refresh_win.
4423 (tui_data_window::refresh_window): New method.
4424 (tui_win_info::refresh, tui_source_window_base::refresh)
4425 (tui_refresh_all): Use refresh_window method.
4426 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
4428 * tui/tui-regs.c (tui_display_register): Call refresh_window
4430 * tui/tui-layout.c (show_source_disasm_command)
4431 (show_source_or_disasm_and_command): Call refresh_window method.
4432 * tui/tui-data.h (struct tui_gen_win_info)
4433 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
4436 2019-06-25 Tom Tromey <tom@tromey.com>
4438 * tui/tui.c (tui_rl_other_window, tui_enable)
4439 (tui_is_window_visible, tui_get_command_dimension): Update.
4440 * tui/tui-winsource.c (tui_update_source_window_as_is)
4441 (tui_clear_source_content, tui_erase_source_content)
4442 (tui_show_source_line, tui_source_window_base::refill)
4443 (tui_source_window_base::do_scroll_horizontal)
4444 (tui_source_window_base::set_is_exec_point_at)
4445 (tui_update_breakpoint_info, tui_set_exec_info_content)
4446 (tui_alloc_source_buffer, tui_line_is_displayed)
4447 (tui_addr_is_displayed): Update.
4448 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
4449 (tui_check_and_display_highlight_if_needed)
4450 (tui_win_info::make_visible, tui_win_info::refresh)
4451 (tui_refresh_all): Update.
4452 * tui/tui-windata.c (tui_first_data_item_displayed)
4453 (tui_delete_data_content_windows, tui_erase_data_content)
4454 (tui_display_all_data, tui_data_window::refresh_all)
4455 (tui_check_data_values): Update.
4456 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
4457 (tui_set_win_focus_to, tui_win_info::forward_scroll)
4458 (tui_win_info::backward_scroll, tui_refresh_all_win)
4459 (tui_resize_all, tui_set_focus, tui_all_windows_info)
4460 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
4461 (tui_source_window_base::set_new_height)
4462 (tui_data_window::set_new_height)
4463 (make_invisible_and_set_new_height)
4464 (make_visible_with_new_height, new_height_ok)
4465 (parse_scrolling_args): Update.
4466 * tui/tui-stack.c (tui_show_frame_info): Update.
4467 * tui/tui-source.c (tui_set_source_content)
4468 (tui_set_source_content_nil, tui_source_is_displayed)
4469 (tui_source_window::do_scroll_vertical): Update.
4470 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4471 (tui_display_registers_from, tui_display_reg_element_at_line)
4472 (tui_check_register_values, tui_reg_command): Update.
4473 * tui/tui-layout.c (tui_default_win_height)
4474 (show_source_disasm_command, show_data, init_and_make_win)
4475 (show_source_or_disasm_and_command): Update.
4476 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
4477 (tui_redisplay_readline, tui_mld_flush)
4478 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
4480 * tui/tui-disasm.c (tui_set_disassem_content)
4481 (tui_disasm_window::do_scroll_vertical): Update.
4482 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
4484 (struct tui_win_info): Derive from tui_gen_win_info.
4485 <~tui_win_info>: Mark as override.
4486 <generic>: Remove member.
4487 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
4488 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
4489 (~tui_data_window, ~tui_win_info)
4490 (tui_free_all_source_wins_content): Update.
4491 * tui/tui-command.c (tui_refresh_cmd_win): Update.
4493 2019-06-25 Tom Tromey <tom@tromey.com>
4495 * tui/tui-layout.c (init_and_make_win): Use new.
4496 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
4497 destructor, initializers.
4498 (tui_alloc_generic_win_info): Don't declare.
4499 * tui/tui-data.c (_locator): Add argument to constructor.
4500 (source_win, disasm_win): New globals.
4501 (exec_info): Remove.
4502 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4504 (tui_alloc_generic_win_info): Remove.
4505 (init_content_element): Use new.
4506 (tui_win_info::tui_win_info): Update.
4507 (free_content_elements) <case DATA_WIN>: Use delete.
4509 2019-06-25 Tom Tromey <tom@tromey.com>
4511 * tui/tui-wingeneral.c (tui_refresh_win): Update.
4512 * tui/tui-windata.c (tui_first_data_item_displayed)
4513 (tui_delete_data_content_windows): Update.
4514 * tui/tui-win.c (tui_data_window::set_new_height): Update.
4515 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4516 (tui_display_registers_from, tui_check_register_values): Update.
4517 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
4519 * tui/tui-data.c (init_content_element): Update. Allocate the new
4521 (tui_free_data_content): Update.
4522 (free_content_elements) <case DATA_WIN>: Free the window.
4524 2019-06-25 Tom Tromey <tom@tromey.com>
4526 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
4528 * tui/tui-layout.c (make_command_window)
4529 (show_source_disasm_command, show_data, init_and_make_win)
4530 (show_source_or_disasm_and_command): Update.
4531 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
4533 <can_highight, is_highlighted>: Now bool.
4534 (tui_set_win_highlight): Don't declare.
4535 * tui/tui-data.c (tui_set_win_highlight): Remove.
4537 2019-06-25 Tom Tromey <tom@tromey.com>
4539 * tui/tui-wingeneral.c (make_visible): Remove check of window
4542 2019-06-25 Tom Tromey <tom@tromey.com>
4544 * tui/tui-win.c (tui_win_info::max_height)
4545 (tui_cmd_window::max_height): New methods.
4546 (new_height_ok): Call max_height.
4547 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
4548 <max_height>: New method.
4550 2019-06-25 Tom Tromey <tom@tromey.com>
4552 * tui/tui-win.c (tui_source_window_base::set_new_height)
4553 (tui_data_window::set_new_height): New methods.
4554 (make_invisible_and_set_new_height): Call set_new_height method.
4555 * tui/tui-data.h (struct tui_win_info)
4556 (struct tui_source_window_base, struct tui_data_window)
4557 <set_new_height>: New method.
4559 2019-06-25 Tom Tromey <tom@tromey.com>
4561 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
4562 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
4563 tui_refresh_data_win.
4564 * tui/tui-win.c (tui_source_window_base::refresh_all): New
4566 (tui_refresh_all_win): Call the refresh_all method.
4567 (tui_set_focus): Likewise.
4568 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
4569 (struct tui_source_window_base, struct tui_data_window) <refresh>:
4572 2019-06-25 Tom Tromey <tom@tromey.com>
4574 * tui/tui-winsource.h (tui_refill_source_window)
4575 (tui_set_is_exec_point_at): Don't declare.
4576 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4577 (tui_source_window_base::refill): Rename from
4578 tui_refill_source_window.
4579 (tui_source_window_base::do_scroll_horizontal): Update.
4580 (tui_source_window_base::set_is_exec_point_at): Rename from
4581 tui_set_is_exec_point_at.
4582 (tui_update_all_breakpoint_info): Update.
4583 * tui/tui-stack.c (tui_show_frame_info): Update.
4584 * tui/tui-layout.c (show_data): Add cast.
4585 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
4586 * tui/tui-data.h (struct tui_source_window_base) <refill,
4587 set_is_exec_point_at>: New methods.
4588 (tui_source_windows, tui_add_to_source_windows): Update types.
4589 (tui_add_to_source_windows): Remove redundant declaration.
4590 * tui/tui-data.c (source_windows): Store tui_source_window_base.
4591 (tui_source_windows): Change return type.
4592 (tui_clear_source_windows_detail): Update.
4593 (tui_add_to_source_windows): Change type of parameter.
4594 (tui_free_all_source_wins_content): Update.
4596 2019-06-25 Tom Tromey <tom@tromey.com>
4598 * tui/tui-wingeneral.c (tui_win_info::refresh)
4599 (tui_source_window_base::refresh): New methods.
4600 (tui_refresh_all): Call the refresh method.
4601 * tui/tui-data.h (struct tui_win_info)
4602 (struct tui_source_window_base) <refresh>: New method.
4604 2019-06-25 Tom Tromey <tom@tromey.com>
4606 * tui/tui.h (tui_is_window_visible): Return bool.
4607 * tui/tui.c (tui_is_window_visible): Return bool.
4608 * tui/tui-wingeneral.c (tui_make_window, make_visible)
4609 (tui_make_visible, tui_make_invisible)
4610 (tui_win_info::make_visible)
4611 (tui_source_window_base::make_visible, make_all_visible)
4612 (tui_make_all_visible, tui_make_all_invisible): Update.
4613 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
4614 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
4616 (struct tui_win_info, struct tui_source_window_base)
4617 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
4618 * tui/tui-data.c (tui_init_generic_part): Update.
4620 2019-06-25 Tom Tromey <tom@tromey.com>
4622 * tui/tui-wingeneral.c (tui_win_info::make_visible)
4623 (tui_source_window_base::make_visible): New methods.
4624 (make_all_visible): Make method call.
4625 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
4626 (struct tui_source_window_base, struct tui_cmd_window): Override
4628 (tui_win_is_source_type): Don't declare.
4629 * tui/tui-data.c (tui_win_is_source_type): Remove.
4631 2019-06-25 Tom Tromey <tom@tromey.com>
4633 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
4636 2019-06-25 Tom Tromey <tom@tromey.com>
4638 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
4639 Inline constructor. Add initializers for members.
4640 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
4641 constructors; now inline in class.
4643 2019-06-25 Tom Tromey <tom@tromey.com>
4645 * tui/tui-regs.c (tui_show_registers): Update.
4646 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
4648 * tui/tui-data.c (tui_data_window::clear_detail)
4649 (tui_data_window): Update.
4651 2019-06-25 Tom Tromey <tom@tromey.com>
4653 * tui/tui-windata.c (tui_display_all_data)
4654 (tui_display_data_from_line, tui_display_data_from)
4655 (tui_check_data_values, tui_data_window::do_scroll_vertical):
4657 * tui/tui-regs.c (tui_last_regs_line_no)
4658 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
4659 (tui_show_registers, tui_show_register_group)
4660 (tui_display_registers_from, tui_display_reg_element_at_line)
4661 (tui_display_registers_from_line, tui_check_register_values)
4662 (tui_reg_next, tui_reg_prev): Update.
4663 * tui/tui-layout.c (tui_set_layout, show_data): Update.
4664 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
4666 (struct tui_win_info) <detail>: Remove. Add new fields from
4668 (TUI_DATA_WIN): Add cast.
4669 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
4670 (~tui_data_window): Simplify.
4672 2019-06-25 Tom Tromey <tom@tromey.com>
4674 * tui/tui-layout.c (show_source_disasm_command)
4675 (show_source_or_disasm_and_command): Update.
4676 * tui/tui-io.c (update_cmdwin_start_line)
4677 (tui_redisplay_readline): Update.
4678 * tui/tui-data.h (struct tui_command_info): Remove.
4679 (struct tui_win_info) <detail>: Remove command_info member.
4680 (struct tui_data_window) <start_line>: New member, from
4682 (TUI_CMD_WIN): Add casts.
4684 2019-06-25 Tom Tromey <tom@tromey.com>
4686 * tui/tui-winsource.c (tui_update_source_window)
4687 (tui_refill_source_window)
4688 (tui_source_window_base::do_scroll_horizontal)
4689 (tui_update_breakpoint_info, tui_set_exec_info_content)
4690 (tui_show_exec_info_content, tui_erase_exec_info_content)
4691 (tui_clear_exec_info_content): Update.
4692 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
4694 * tui/tui-win.c (make_invisible_and_set_new_height)
4695 (make_visible_with_new_height): Update.
4696 * tui/tui-source.c (tui_set_source_content)
4697 (tui_show_symtab_source): Update.
4698 * tui/tui-layout.c (extract_display_start_addr)
4699 (show_source_disasm_command, show_data)
4700 (make_source_or_disasm_window)
4701 (show_source_or_disasm_and_command): Update.
4702 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
4703 (tui_disasm_window::do_scroll_vertical): Remove shadowing
4705 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
4706 to tui_source_window_base.
4707 (struct tui_win_info) <detail>: Remove source_info member.
4708 (struct tui_source_window_base) <has_locator>: Inline.
4709 Move contents from tui_source_info; rename has_locator member to
4711 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
4712 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
4714 (tui_source_window_base::clear_detail, ~tui_source_window_base):
4716 (tui_free_all_source_wins_content): Cast to
4717 tui_source_window_base.
4719 2019-06-25 Tom Tromey <tom@tromey.com>
4721 * tui/tui-win.c (make_invisible_and_set_new_height)
4722 (make_visible_with_new_height): Call has_locator method.
4723 * tui/tui-layout.c (show_source_disasm_command, show_data)
4724 (show_source_or_disasm_and_command): Update for bool change.
4725 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
4726 (tui_win_info) <has_locator>: New method.
4727 (struct tui_source_window_base) <has_locator>: New method.
4728 (tui_win_has_locator): Don't declare.
4729 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
4730 from tui_win_has_locator.
4731 (tui_source_window_base): Use false, not FALSE.
4733 2019-06-25 Tom Tromey <tom@tromey.com>
4735 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
4736 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
4737 clear_detail method directly.
4738 (tui_clear_win_detail): Remove.
4740 2019-06-25 Tom Tromey <tom@tromey.com>
4742 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
4743 "this", not TUI_DISASM_WIN.
4745 2019-06-25 Tom Tromey <tom@tromey.com>
4747 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
4749 * tui/tui-winsource.c
4750 (tui_source_window_base::do_scroll_horizontal): Rename from
4751 tui_horizontal_source_scroll.
4752 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
4753 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
4754 from tui_vertical_data_scroll.
4755 * tui/tui-win.h (tui_scroll): Don't declare.
4756 * tui/tui-win.c (tui_win_info::forward_scroll)
4757 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
4758 (tui_win_info::right_scroll): Rename and update.
4759 (tui_scroll_forward_command, tui_scroll_backward_command)
4760 (tui_scroll_left_command, tui_scroll_right_command): Update.
4761 (tui_scroll): Remove.
4762 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
4763 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
4764 from tui_vertical_source_scroll.
4765 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
4766 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
4767 from tui_vertical_disassem_scroll.
4768 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
4769 do_scroll_horizontal>: New methods.
4770 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
4772 (struct tui_source_window_base): Add do_scroll_horizontal.
4773 (struct tui_source_window, struct tui_disasm_window): Add
4775 (struct tui_data_window, struct tui_cmd_window): Add
4776 do_scroll_horizontal and do_scroll_vertical.
4777 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
4779 2019-06-25 Tom Tromey <tom@tromey.com>
4781 * tui/tui-data.h (struct tui_source_window_base): New struct.
4782 (struct tui_source_window): Derive from tui_source_window_base.
4783 (struct tui_disasm_window): New struct.
4784 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
4785 from tui_source_window::clear_detail.
4786 (tui_source_window_base): Rename from tui_source_window.
4787 (~tui_source_window_base): Rename from ~tui_source_window.
4788 (tui_alloc_win_info): Create a tui_disasm_window.
4790 2019-06-25 Tom Tromey <tom@tromey.com>
4792 * tui/tui-data.h (struct tui_source_window)
4793 (struct tui_data_window): Declare destructors.
4794 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
4796 (tui_win_info): Simplify.
4798 2019-06-25 Tom Tromey <tom@tromey.com>
4800 * tui/tui-winsource.c (tui_display_main)
4801 (tui_update_source_windows_with_addr)
4802 (tui_update_all_breakpoint_info): Update.
4803 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4804 (new_height_ok, parse_scrolling_args): Update.
4805 * tui/tui-stack.c (tui_show_frame_info): Update.
4806 * tui/tui-data.h (struct tui_list): Remove.
4807 (tui_source_windows): Return a reference to a std::vector.
4808 * tui/tui-data.c (source_windows): Now a std::vector.
4809 (tui_source_windows): Change return type.
4810 (tui_clear_source_windows): Rewrite.
4811 (tui_clear_source_windows_detail, tui_add_to_source_windows)
4812 (tui_free_all_source_wins_content): Rewrite.
4814 2019-06-25 Tom Tromey <tom@tromey.com>
4816 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
4817 (struct tui_data_window, struct tui_cmd_window): Declare
4818 clear_detail method.
4819 * tui/tui-data.c (tui_source_window::clear_detail)
4820 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
4822 (tui_clear_win_detail): Simplify.
4824 2019-06-25 Tom Tromey <tom@tromey.com>
4826 * tui/tui-layout.c (make_source_window, make_disasm_window)
4827 (make_source_or_disasm_window): Remove win_info_ptr parameter.
4828 Return the new window.
4829 (show_source_disasm_command, show_data)
4830 (show_source_or_disasm_and_command): Update.
4832 2019-06-25 Tom Tromey <tom@tromey.com>
4834 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
4835 parameter. Return the new window.
4836 (show_source_disasm_command): Update and remove NULL check.
4837 (show_source_or_disasm_and_command): Update.
4839 2019-06-25 Tom Tromey <tom@tromey.com>
4841 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
4843 2019-06-25 Tom Tromey <tom@tromey.com>
4845 * tui/tui-data.h (struct tui_win_info): Make constructor
4846 protected. Make destructor virtual. Add initializers.
4847 (tui_source_window, tui_data_window, tui_cmd_window): New
4849 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
4850 constructor. Add "type" parameter.
4851 (tui_source_window, tui_data_window, tui_cmd_window): New
4853 (tui_alloc_win_info): Instantiate the appropriate subclass.
4855 2019-06-25 Tom Tromey <tom@tromey.com>
4857 * tui/tui-win.c (tui_resize_all): Use delete.
4858 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
4860 (tui_free_window): Don't declare.
4861 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
4864 2019-06-25 Tom Tromey <tom@tromey.com>
4866 * tui/tui-data.h (struct tui_win_info): Add constructor.
4867 * tui/tui-data.c (tui_alloc_win_info): Use new.
4868 (tui_free_window): Use delete.
4870 2019-06-22 Tom Tromey <tom@tromey.com>
4872 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
4874 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
4876 2019-06-22 Tom Tromey <tom@tromey.com>
4878 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
4880 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
4882 2019-06-22 Tom de Vries <tdevries@suse.de>
4884 * dwarf2read.c (create_addrmap_from_aranges)
4885 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
4888 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
4890 * dwarf2read.h (dwarf2_section_info_def): Remove.
4891 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
4892 * dwarf2read.c (struct dwo_sections) <types>: Change type to
4893 std::vector<dwarf2_section_info>.
4894 (struct dwo_file) <~dwo_file>: Remove.
4895 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
4897 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
4898 (dwarf2_read_debug_names): Likewise.
4899 (create_debug_types_hash_table): Change parameter type to
4900 array_view, adjust code accordingly.
4901 (dwarf2_locate_dwo_sections): Adjust to std::vector.
4902 (partial_die_info::fixup): Likewise.
4903 (determine_prefix): Likewise.
4904 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
4906 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4908 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
4910 <~dwo_file>: Remove call to gdb_bfd_unref.
4911 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
4912 gdb_bfd_ref_ptr::get.
4914 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4916 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
4918 * dwarf2read.c (struct dwo_file): Initialize fields.
4920 (free_dwo_file): Remove, move content to ~dwo_file.
4921 (struct dwo_file_deleter): Remove.
4922 (dwo_file_up>: Remove custom deleter.
4923 (free_dwo_files): Remove.
4924 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
4926 (process_skeletonless_type_units): Call unique_ptr::get.
4927 (allocate_dwo_file_hash_table): Add deleter to created hash
4928 table. Change return type to htab_up.
4929 (lookup_dwo_file_slot): Don't memset dwo_file, call
4931 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
4932 (create_dwo_unit_in_dwp_v2): Likewise.
4933 (open_and_init_dwo_file): Likewise.
4934 (free_dwo_file_from_slot): Remove.
4936 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4938 * dwarf2read.h (struct dwarf2_section_info) <readin,
4939 is_virtual>: Change type to bool.
4940 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
4943 2019-06-19 Tom Tromey <tom@tromey.com>
4945 * tui/tui-data.h (tui_init_content_element): Don't declare.
4947 2019-06-19 Tom Tromey <tom@tromey.com>
4949 * tui/tui-data.h (tui_init_win_info): Don't declare.
4951 2019-06-19 Tom de Vries <tdevries@suse.de>
4953 * dwarf2read.h (abstract_to_concrete): Change type to
4954 std::unordered_map<sect_offset, std::vector<sect_offset>,
4955 gdb::hash_enum<sect_offset>>.
4957 2019-06-19 Tom Tromey <tromey@adacore.com>
4959 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
4960 EVAL_AVOID_SIDE_EFFECTS specially.
4962 2019-06-19 Tom Tromey <tromey@adacore.com>
4964 * source-cache.c (highlighter): New global.
4965 (source_cache::get_source_lines): Create a highlighter on demand.
4967 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
4969 * defs.h (deprecated_interactive_hook): Delete declaration.
4970 * interps.c (clear_interpreter_hooks): Remove use of
4971 deprecated_interactive_hook.
4972 * top.c (deprecated_interactive_hook): Delete definition.
4973 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
4975 2019-06-18 Tom de Vries <tdevries@suse.de>
4978 * dwarf2read.h (abstract_to_concrete): Change type from
4979 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
4980 std::unordered_map<sect_offset, std::vector<sect_offset>>.
4981 * dwarf2read.c (read_variable): Update.
4982 (dwarf2_fetch_die_loc_sect_off): Update.
4984 2019-06-17 Tom de Vries <tdevries@suse.de>
4987 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
4988 accessing parent[parent_len - 1].
4990 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
4993 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
4994 call dtrace_process_dof with NULL dof.
4996 2019-06-16 Tom de Vries <tdevries@suse.de>
4999 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
5001 2019-06-16 Tom Tromey <tom@tromey.com>
5003 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
5004 (make_all_visible): Use address of member.
5006 2019-06-16 Tom Tromey <tom@tromey.com>
5008 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
5009 (tui_free_window, free_content, free_content_elements): Remove
5011 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
5013 * tui/tui-regs.c (tui_show_register_group)
5014 (tui_display_registers_from, tui_display_reg_element_at_line):
5015 Remove unnecessary cast.
5017 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5019 * linux-nat.c (normal_mask): Delete.
5020 (_initialize_linux_nat): Don't initialise normal_mask.
5022 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
5025 * dwarf-index-write.h (write_psymtabs_to_index): Add
5026 dwz_basename parameter.
5027 * dwarf-index-write.c (write_gdbindex): Move file writing to
5028 write_gdbindex_1. Change return type void.
5029 (assert_file_size): Move up, remove filename parameter.
5030 (write_gdbindex_1): New function.
5031 (write_debug_names): Change return type to void, call
5033 (struct index_wip_file): New struct.
5034 (write_psymtabs_to_index): Add dwz_basename parameter. Move
5035 file logic to index_wip_file. Write index for dwz file if
5037 (save_gdb_index_command): Pass basename of dwz file, if present.
5038 * dwarf-index-cache.c (index_cache::store): Obtain and pass
5039 build-id of dwz file, if present.
5040 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
5041 (dwarf2_get_dwz_file): Likewise.
5042 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
5043 (dwarf2_get_dwz_file): Likewise.
5045 2019-06-16 Tom Tromey <tom@tromey.com>
5047 * coffread.c (process_coff_symbol): Use xstrdup.
5048 * value.c (create_internalvar): Use xstrdup.
5050 2019-06-16 Tom Tromey <tom@tromey.com>
5052 * valops.c (value_cast, value_slice): Remove unnecessary cast.
5053 * breakpoint.c (stopin_command, stopat_command)
5054 (until_break_command, decode_location_default): Remove unnecessary
5056 * utils.c (subset_compare): Remove unnecessary cast.
5057 * ada-lang.c (ada_update_initial_language): Remove unnecessary
5059 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
5061 * infcmd.c (path_command): Remove unnecessary cast.
5062 * coffread.c (decode_type): Remove unnecessary cast.
5063 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
5064 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
5065 * tui/tui-stack.c (tui_show_locator_content)
5066 (tui_show_frame_info): Remove unnecessary cast.
5067 * tui/tui-win.c (tui_scroll_forward_command)
5068 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
5069 (parse_scrolling_args): Remove unnecessary cast.
5070 * tui/tui-data.c (init_win_info, tui_del_window)
5071 (tui_free_window, tui_del_data_windows, tui_free_data_content)
5072 (free_content_elements): Remove unnecessary cast.
5073 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
5075 * tui/tui-source.c (tui_set_source_content)
5076 (tui_vertical_source_scroll): Remove unnecessary cast.
5077 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
5079 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
5080 * tui/tui-regs.c (tui_display_registers_from)
5081 (tui_display_register): Remove unnecessary cast.
5082 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
5083 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
5084 (make_visible): Remove unnecessary cast.
5085 * tui/tui-winsource.c (tui_erase_source_content)
5086 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
5088 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
5089 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
5090 * stabsread.c (read_type, read_array_type, read_range_type):
5091 Remove unnecessary cast.
5092 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
5093 (parse_symbol, parse_type, upgrade_type, parse_external)
5094 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
5096 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
5098 2019-06-16 Tom Tromey <tom@tromey.com>
5100 * tui/tui-data.c (tui_alloc_generic_win_info)
5101 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
5104 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
5105 Andrew Burgess <andrew.burgess@embecosm.com>
5107 * f-typeprint.c (f_print_type): Don't return early for not
5108 associated or not allocated types.
5109 (f_type_print_varspec_suffix): Add print_rank parameter and print
5110 ranks of array types in case they dangling.
5111 (f_type_print_base): Add print_rank parameter.
5113 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5115 * NEWS: Mention new MI commands.
5116 * break-catch-throw.c (enum exception_event_kind): Move to
5118 (print_mention_exception_catchpoint): Output text as a single
5120 (catch_exception_command_1): Rename to...
5121 (catch_exception_event): ...this, make non-static, update header
5122 command, and change some parameter types.
5123 (catch_catch_command): Update for changes to
5124 catch_exception_command_1.
5125 (catch_throw_command): Likewise.
5126 (catch_rethrow_command): Likewise.
5127 * breakpoint.c (enum exception_event_kind): Delete.
5128 * breakpoint.h (enum exception_event_kind): Moved here from
5129 break-catch-throw.c.
5130 (catch_exception_event): Declare.
5131 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
5132 (mi_cmd_catch_throw): New function.
5133 (mi_cmd_catch_rethrow): New function.
5134 (mi_cmd_catch_catch): New function.
5135 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
5136 'catch-catch' entries.
5137 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
5138 (mi_cmd_catch_rethrow): Declare.
5139 (mi_cmd_catch_catch): Declare.
5141 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5143 * annotate.c (annotate_source_line): Change return type to void,
5144 update implementation to match.
5145 * annotate.h (annotate_source_line): Change return type to void,
5146 update header comment.
5147 * stack.c (print_frame_info): Don't change what frame information
5148 is printed based on whether annotations are on or not.
5150 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5152 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
5153 (annotate_source): Make static.
5154 (annotate_source_line): Moved from source.c and renamed from
5155 identify_source_line. Update the return type.
5156 * annotate.h (annotate_source): Delete declaration.
5157 (annotate_source_line): Declaration moved from source.h, and
5158 renamed from identify_source_line. Return type updated.
5159 * source.c (identify_source_line): Moved to annotate.c and renamed
5160 to annotate_source_line.
5161 (info_line_command): Remove check of annotation_level.
5162 * source.h (identify_source_line): Move declaration to annotate.h
5163 and rename to annotate_source_line.
5164 * stack.c: Add 'annotate.h' include.
5165 (print_frame_info): Remove check of annotation_level before
5166 calling annotate_source_line.
5168 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5170 * source-cache.c (source_cache::get_plain_source_lines): Use
5171 open_source_file_with_line_charpos instead of just
5172 open_source_file, remove call to find_source_lines.
5173 (source_cache::get_source_lines): Likewise.
5174 * source.c (find_source_lines): Make static.
5175 (get_filename_and_charpos): Renamed into...
5176 (open_source_file_with_line_charpos): ..this along with changes to
5177 return a scoped_fd, and some other minor clean ups.
5178 (identify_source_line): Use open_source_file_with_line_charpos.
5179 (search_command_helper): Use open_source_file_with_line_charpos
5180 instead of just open_source_file, remove call to
5182 * source.h (open_source_file_with_line_charpos): Declare new
5184 (find_source_lines): Delete declaration.
5186 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5188 * source.c (get_filename_and_charpos): Remove fullname
5190 (identify_source_line): Update call to get_filename_and_charpos.
5192 2019-06-14 Tom Tromey <tromey@adacore.com>
5195 * ui-style.h (skip_ansi_escape): Update comment.
5196 * ui-file.h (class no_terminal_escape_file): New class.
5197 * ui-file.c (no_terminal_escape_file::write)
5198 (no_terminal_escape_file::puts): New methods.
5199 * cli/cli-logging.c (handle_redirections): Use
5200 no_terminal_escape_file.
5202 2019-06-14 Tom Tromey <tromey@adacore.com>
5204 * NEWS: Move convenience variable news above Python news.
5206 2019-06-14 Tom Tromey <tom@tromey.com>
5208 * gnulib: Move directory to top-level.
5209 * configure.ac: Don't configure gnulib.
5210 * configure: Rebuild.
5211 * common/common-defs.h: Use new path to gnulib.
5212 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
5214 (INCGNU): Look in new gnulib location.
5215 (HFILES_NO_SRCDIR): Remove gnulib files.
5216 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
5217 (generated_files): Remove GNULIB_H.
5218 ($(LIBGNU), all-lib): Remove targets.
5219 (distclean): Don't mention GNULIB_BUILDDIR.
5220 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
5222 2019-06-14 Tom Tromey <tromey@adacore.com>
5224 * symfile.c (add_symbol_file_command): Remove obsolete comment.
5225 Warn if symbol file does not provide any symbols.
5227 2019-06-14 Tom Tromey <tromey@adacore.com>
5229 * source.c (find_and_open_source): Respect basenames_may_differ.
5231 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
5233 * annotate.c (annotate_breakpoints_invalid): Make use of
5234 scoped_restore_terminal_state.
5235 (annotate_frames_invalid): Likewise.
5237 2019-06-14 Tom Tromey <tromey@adacore.com>
5239 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
5240 allow assignment to an internalvar.
5242 2019-06-14 Tom Tromey <tromey@adacore.com>
5244 * ada-lex.l: Allow "_" in attribute names.
5246 2019-06-14 Tom Tromey <tromey@adacore.com>
5249 * regcache.c (registers_changed): Don't call alloca.
5250 * top.c (execute_command): Don't call alloca.
5252 2019-06-13 Pedro Alves <palves@redhat.com>
5254 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
5255 'expression'. When parsing an expression, error out if there's
5256 junk after "unlimited".
5257 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5258 (do_set_command): Adjust calls to is_unlimited_literal.
5260 2019-06-13 Pedro Alves <palves@redhat.com>
5262 * compile/compile.c (make_compile_options_def_group): Add braces
5263 around array_view initializer.
5264 * thread.c (make_thread_apply_all_options_def_group)
5265 (make_thread_apply_all_options_def_group): Likewise.
5267 2019-06-13 Pedro Alves <palves@redhat.com>
5269 * NEWS (New commands): Mention "maint test-options
5270 require-delimiter", "maint test-options unknown-is-error", "maint
5271 test-options unknown-is-operand" and "maint show
5272 test-options-completion-result".
5273 (New command options, command completion): New section.
5274 (Completion improvements): New section.
5275 Mention that you can abbreviate "unlimited".
5277 2019-06-13 Pedro Alves <palves@redhat.com>
5279 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
5280 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
5281 * unittests/cli-utils-selftests.c (test_parse_flags)
5282 (test_parse_flags_qcs): Delete.
5283 (test_cli_utils): Don't call deleted functions.
5285 2019-06-13 Pedro Alves <palves@redhat.com>
5287 * thread.c: Include "cli/cli-option.h".
5288 (tp_array_compar_ascending): Global.
5289 (tp_array_compar): Delete function.
5290 (tp_array_compar_ascending, tp_array_compar_descending): New
5292 (ascending_option_def, qcs_flag_option_def)
5293 (thr_qcs_flags_option_defs)
5294 (make_thread_apply_all_options_def_group)
5295 (make_thread_apply_options_def_group): New.
5296 (thread_apply_all_command): Use gdb::option::process_options.
5297 (thread_apply_command_completer)
5298 (thread_apply_all_command_completer): New.
5299 (thread_apply_command): Use gdb::option::process_options.
5300 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
5301 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
5302 to generate help text of "thread apply". Adjust "taas"'s help.
5303 * tid-parse.c (tid_range_parser::in_thread_range): New method.
5304 * tid-parse.h (tid_range_parser::in_thread_range): New method.
5306 2019-06-13 Pedro Alves <palves@redhat.com>
5308 * thread.c (thread_apply_command): Check for invalid TID with
5309 isdigit instead of !isalpha.
5311 2019-06-13 Pedro Alves <palves@redhat.com>
5313 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
5314 (validate_flags_qcs): New.
5315 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
5316 (validate_flags_qcs): Declare.
5317 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
5318 (make_frame_apply_options_def_group): New.
5319 (frame_apply_command_count): Process options with
5320 gdb::option::process_options.
5321 (frame_apply_completer): New.
5322 (frame_apply_level_completer, frame_apply_all_completer)
5323 (frame_apply_completer): New.
5324 (_initialize_stack): Update help of "frame apply", "frame apply
5325 level", "frame apply all" and "faas" to mention supported options
5326 and install command completers.
5327 * stack.h (frame_apply_all_completer): Declare.
5328 * thread.c: Include "stack.h".
5329 (tfaas_command): Add "--".
5330 (_initialize_thread): Update help "tfaas" to mention supported
5331 options and install command completer.
5333 2019-06-13 Pedro Alves <palves@redhat.com>
5335 * completer.c (complete_nested_command_line): New.
5336 (gdb_completion_word_break_characters_throw): Add assertion.
5337 * completer.h (complete_nested_command_line): Declare.
5339 2019-06-13 Pedro Alves <palves@redhat.com>
5341 * stack.c (parse_backtrace_qualifiers): New.
5342 (backtrace_command): Use it.
5343 (backtrace_command_completer): Complete on qualifiers.
5345 2019-06-13 Pedro Alves <palves@redhat.com>
5347 * frame.c: Include "cli/cli-option.h.
5348 (user_set_backtrace_options): New.
5349 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
5351 (get_prev_frame): Adjust.
5352 (boolean_option_def, uinteger_option_def)
5353 (set_backtrace_option_defs): New.
5354 (_initialize_frame): Adjust and use
5355 gdb::option::add_setshow_cmds_for_options to install "set
5356 backtrace past-main" and "set backtrace past-entry".
5357 * frame.h: Include "cli/cli-option.h".
5358 (struct frame_print_options): Forward declare.
5359 (print_frame_arguments_all, print_frame_arguments_scalars)
5360 (print_frame_arguments_none): Declare.
5361 (print_entry_values): Delete declaration.
5362 (struct frame_print_options, user_frame_print_options): New.
5363 (struct set_backtrace_options): New.
5364 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
5365 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
5366 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
5367 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
5368 (list_args_or_locals): Add frame_print_options parameter.
5369 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
5370 * python/py-framefilter.c (enumerate_args): Pass down
5371 USER_FRAME_PRINT_OPTIONS.
5372 * stack.c: Include "cli/cli-option.h".
5373 (print_frame_arguments_all, print_frame_arguments_scalars)
5374 (print_frame_arguments_none): Declare.
5375 (print_raw_frame_arguments, print_entry_values): Delete.
5376 (user_frame_print_options): New.
5377 (boolean_option_def, enum_option_def, frame_print_option_defs):
5379 (struct backtrace_cmd_options): New.
5380 (bt_flag_option_def): New.
5381 (backtrace_command_option_defs): New.
5382 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
5383 (print_frame_arg, read_frame_arg, print_frame_args)
5384 (print_frame_info, print_frame): Add frame_print_options parameter
5386 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
5387 (backtrace_command_1): Add frame_print_options and
5388 backtrace_cmd_options parameters and use them.
5389 (make_backtrace_options_def_group): New.
5390 (backtrace_command): Process command options with
5391 gdb::option::process_options.
5392 (backtrace_command_completer): New.
5393 (_initialize_stack): Extend "backtrace"'s help to mention
5394 supported options. Install completer for "backtrace".
5395 Install some settings commands with add_setshow_cmds_for_options.
5397 2019-06-13 Pedro Alves <palves@redhat.com>
5399 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
5400 and that "set/show print raw frame-arguments" are now deprecated.
5402 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
5404 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
5405 * stack.c (_initialize_stack): Install "set/show print
5406 raw-frame-arguments", and deprecate "set/show print raw
5408 * valprint.c (_initialize_valprint): Deprecate "set/show print
5411 2019-06-13 Pedro Alves <palves@redhat.com>
5413 * compile/compile.c (struct compile_options): New.
5414 (compile_flag_option_def, compile_command_option_defs)
5415 (make_compile_options_def_group): New.
5416 (compile_file_command): Handle options with
5417 gdb::option::process_options.
5418 (compile_file_command_completer): New function.
5419 (compile_code_command): Handle options with
5420 gdb::option::process_options.
5421 (compile_code_command_completer): New function.
5422 (_initialize_compiler): Install completers for "compile code" and
5423 "compile file". Mention available options in "compile code" and
5424 "compile code"'s help.
5425 * completer.c (advance_to_completion_word): New, factored out from
5427 (advance_to_expression_complete_word_point): ... this.
5428 (advance_to_filename_complete_word_point): New.
5429 * completer.h (advance_to_filename_complete_word_point): New
5432 2019-06-13 Pedro Alves <palves@redhat.com>
5434 * compile/compile.c: Include "cli/cli-option.h".
5435 (compile_print_value): Scope data pointer is now a
5436 value_print_options pointer; adjust.
5437 (compile_print_command): Process options. Scope data pointer is
5438 now a value_print_options pointer; adjust.
5439 (_initialize_compile): Update "compile print"'s help to include
5440 supported options. Install a completer for "compile print".
5441 * cp-valprint.c (show_vtblprint, show_objectprint)
5442 (show_static_field_print): Delete.
5443 (_initialize_cp_valprint): Don't install "set print
5444 static-members", "set print vtbl", "set print object" here.
5445 * printcmd.c: Include "cli/cli-option.h" and
5446 "common/gdb_optional.h".
5447 (print_command_parse_format): Rework to fill in a
5448 value_print_options instead of a format_data.
5449 (print_value): Change parameter type from format_data pointer to
5450 value_print_options reference. Adjust.
5451 (print_command_1): Process options. Adjust to pass down a
5452 value_print_options.
5453 (print_command_completer): New.
5454 (_initialize_printcmd): Install print_command_completer as
5455 handle_brkchars completer for the "print" command. Update
5456 "print"'s help to include supported options.
5457 * valprint.c: Include "cli/cli-option.h".
5458 (show_vtblprint, show_objectprint, show_static_field_print): Moved
5459 here from cp-valprint.c.
5460 (boolean_option_def, uinteger_option_def)
5461 (value_print_option_defs, make_value_print_options_def_group):
5462 New. Use gdb::option::add_setshow_cmds_for_options to install
5463 "set print elements", "set print null-stop", "set print repeats",
5464 "set print pretty", "set print union", "set print array", "set
5465 print address", "set print symbol", "set print array-indexes".
5466 * valprint.h: Include <string> and "cli/cli-option.h".
5467 (make_value_print_options_def_group): Declare.
5468 (print_value): Change parameter type from format_data pointer to
5469 value_print_options reference.
5470 (print_command_completer): Declare.
5472 2019-06-13 Pedro Alves <palves@redhat.com>
5474 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
5475 (COMMON_SFILES): Add maint-test-settings.c.
5476 * cli/cli-decode.c (boolean_enums): New global, factored out from
5478 (add_setshow_boolean_cmd): ... here.
5479 * cli/cli-decode.h (boolean_enums): Declare.
5480 * cli/cli-option.c: New file.
5481 * cli/cli-option.h: New file.
5482 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
5483 factored out from ...
5484 (parse_cli_boolean_value(const char *)): ... this.
5485 (is_unlimited_literal): Change parameter type to pointer to
5486 pointer. Adjust and advance ARG pointer.
5487 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5488 (parse_cli_var_enum): New, factored out from ...
5489 (do_set_command): ... this. Adjust.
5490 * cli/cli-setshow.h (parse_cli_boolean_value)
5491 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
5492 (parse_cli_var_enum): Declare.
5493 * cli/cli-utils.c: Include "cli/cli-option.h".
5494 (get_ulongest): New.
5495 * cli/cli-utils.h (get_ulongest): Declare.
5496 (check_for_argument): New overloads.
5497 * maint-test-options.c: New file.
5499 2019-06-13 Pedro Alves <palves@redhat.com>
5501 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
5502 parse a range if "-" is at the end of the string.
5504 2019-06-13 Pedro Alves <palves@redhat.com>
5506 * cli/cli-setshow.c (parse_auto_binary_operation)
5507 (parse_cli_boolean_value): Don't allow "o".
5509 2019-06-13 Pedro Alves <palves@redhat.com>
5511 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
5512 * NEWS: Mention maint test-settings KIND.
5513 * maint-test-settings.c: New file.
5515 2019-06-13 Pedro Alves <palves@redhat.com>
5517 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
5519 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
5522 2019-06-13 Pedro Alves <palves@redhat.com>
5524 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
5527 2019-06-13 Pedro Alves <palves@redhat.com>
5529 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
5531 2019-06-13 Pedro Alves <palves@redhat.com>
5533 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
5534 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
5536 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
5537 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
5539 (check_for_argument): Skip spaces after argument.
5541 2019-06-13 Pedro Alves <palves@redhat.com>
5543 * thread.c (thread_apply_command): Adjust TID parsing.
5544 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
5545 detected before end of string.
5546 (tid_is_in_list): Error out if LIST is invalid.
5548 2019-06-13 Pedro Alves <palves@redhat.com>
5550 * completer.c (complete_line_internal_1): Rewind completion word
5552 (completion_tracker::advance_custom_word_point_by): Change
5553 parameter type to int.
5554 * completer.h (completion_tracker::advance_custom_word_point_by):
5557 2019-06-13 Pedro Alves <palves@redhat.com>
5559 * completer.c (advance_to_completion_word): Handle delimiters.
5561 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
5563 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
5565 2019-06-11 Tom Tromey <tom@tromey.com>
5567 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
5568 (xmalloc_failed): Move to alloc.c.
5569 * alloc.c: New file.
5570 * Makefile.in (COMMON_SFILES): Add alloc.c.
5572 2019-06-11 Tom Tromey <tom@tromey.com>
5574 * nat/linux-waitpid.c: Don't include server.h.
5575 (linux_debug): Remove.
5576 (my_waitpid): Update.
5578 2019-06-11 Tom Tromey <tromey@adacore.com>
5580 * infcall.c (_initialize_infcall): Remove trailing newline from
5582 * user-regs.c (_initialize_user_regs): Remove trailing newline
5584 * typeprint.c (_initialize_typeprint): Remove trailing newline
5586 * reverse.c (_initialize_reverse): Remove trailing newlines from
5588 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
5590 * language.c (add_set_language_command): Remove trailing newline
5592 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
5594 * disasm.c (_initialize_disasm): Remove trailing newline from
5596 * top.c (init_main): Remove trailing newline from help.
5597 * interps.c (_initialize_interpreter): Remove trailing newline
5599 * btrace.c (_initialize_btrace): Remove trailing newlines from
5601 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
5603 * python/python.c (_initialize_python): Remove trailing newline
5605 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
5607 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
5608 from help. Reformat some text.
5609 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
5611 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
5614 2019-06-11 Tom Tromey <tromey@adacore.com>
5616 * darwin-nat.c (darwin_decode_exception_message)
5617 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
5619 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
5621 * valops.c (value_slice): Check for not allocated or not
5624 2019-06-10 Tom de Vries <tdevries@suse.de>
5627 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
5628 sure an empty slot (defined by a 32-bit zero pair) is recognized as
5631 2019-06-10 Tom de Vries <tdevries@suse.de>
5634 * linespec.c (linespec_lexer_lex_string): Remove incorrect
5635 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
5637 2019-06-10 Tom de Vries <tdevries@suse.de>
5640 * symtab.c (struct demangled_name_entry): Add language field.
5641 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
5642 static minimal symbol". Set and use language field.
5644 2019-06-10 Tom Tromey <tromey@adacore.com>
5646 * ada-lang.c (_initialize_ada_language): Update help text.
5648 2019-06-10 Tom Tromey <tromey@adacore.com>
5650 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
5652 * guile/guile.c (handle_boot_error): Don't end warning with a
5654 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
5655 warning with a newline.
5656 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
5658 (s12z_frame_cache): Likewise.
5659 * dwarf-index-cache.c (index_cache::store): Don't end warning with
5661 * solib-svr4.c (disable_probes_interface): Don't end warning with
5663 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
5665 * python/python.c (do_finish_initialization): Don't end warning
5668 2019-06-10 Tom Tromey <tom@tromey.com>
5670 * python/py-breakpoint.c (gdbpy_breakpoint_created)
5671 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
5674 2019-06-10 Tom Tromey <tromey@adacore.com>
5676 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
5678 (elf_new_init): Don't call stabsread_new_init.
5679 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
5680 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
5681 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
5683 2019-06-10 Tom de Vries <tdevries@suse.de>
5687 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
5689 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
5691 * source.c (find_and_open_source): Also rewrite relative file
5694 2019-04-26 Amos Bird <amosbird@gmail.com>
5696 * annotate.c (annotate_thread_exited): Add "thread-exited"
5699 2019-06-06 Tom Tromey <tromey@adacore.com>
5701 * maint.h (class scoped_command_stats): Use
5702 DISABLE_COPY_AND_ASSIGN.
5703 <print_time>: New method.
5704 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
5706 (scoped_command_stats::print_time): New method.
5708 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5710 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
5711 instructions of lengths 6 or 8 bytes.
5713 2019-06-04 Pedro Alves <palves@redhat.com>
5715 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
5717 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
5718 * breakpoint.c (condition_completer): Likewise.
5719 * cli/cli-dump.c (scan_expression): Likewise.
5720 * common/filestuff.c (mkdir_recursive): Likewise.
5721 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
5722 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
5723 (gdb_abspath): Likewise.
5724 * compile/compile-cplus-types.c
5725 (compile_cplus_instance::decl_name): Likewise.
5726 * completer.c (complete_explicit_location):
5727 (signal_completer, reg_or_group_completer_1): Likewise.
5728 * cp-support.c (cp_remove_params_if_any): Likewise.
5729 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
5730 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
5731 * infcmd.c (strip_bg_char): Likewise.
5732 * linespec.c (copy_token_string): Likewise.
5733 * mi/mi-main.c (output_cores): Likewise.
5734 * psymtab.c (psymtab_search_name):
5735 * symfile.c (test_set_ext_lang_command): Likewise.
5736 * target.c (target_fileio_read_stralloc): Likewise.
5737 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
5738 * value.c (complete_internalvar): Likewise.
5740 2019-06-04 Christian Biesinger <cbiesinger@google.com>
5742 Add objfile property to gdb.Type.
5743 * NEWS: Mention Python API addition.
5744 * python/py-type.c (typy_get_objfile): New method.
5746 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5748 * NEWS: Mention the new set|show style [title|highlight].
5749 Mention changes to "show style", "help" and "apropos".
5751 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5753 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
5754 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
5755 instead of print_help_for_command.
5756 (print_doc_of_command): New function.
5757 (help_list): Add 'apropos -v word' suggestion.
5758 (print_help_for_command): Style the command name using title style.
5759 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
5760 (_initialize_cli_cmds): Describe -v in apropos_command help.
5762 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5764 * cli/cli-style.h (cli_style_option): Add name in constructor,
5765 add m_name class member, add constructor with intensity,
5766 add name class function.
5767 (cli_style_option::add_setshow_commands): Remove name argument.
5768 (highlight_style, title_style): New styles.
5769 * cli/cli-style.c (do_show): New function that shows a style
5770 characteristic styling the style name with itself.
5771 (set_style_name): New function.
5772 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
5773 Update all callers according to the changes in cli/cli-style.h.
5774 * utils.h (fputs_highlighted): New function.
5775 * utils.c (fputs_highlighted): Likewise.
5777 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5779 * NEWS: Mention new pipe command and new convenience variables.
5781 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5783 * cli/cli-cmds.c (pipe_command): New function.
5784 (_initialize_cli_cmds): Call add_com for pipe_command.
5785 Define | as an alias for pipe.
5786 (exit_status_set_internal_vars): New function.
5787 (shell_escape): Call exit_status_set_internal_vars.
5788 cli/cli-decode.c (find_command_name_length): Recognize | as
5789 a single character command.
5791 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5793 * gdbcmd.h (execute_command_to_ui_file): New declaration.
5794 top.c (execute_command_to_ui_file): New function, mostly a copy
5795 of execute_command_to_string.
5796 (execute_command_to_string): Implement by calling
5797 execute_command_to_ui_file.
5799 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5801 * top.h (saved_command_line): Remove declaration.
5802 * top.c (previous_saved_command_line, previous_repeat_arguments):
5804 (saved_command_line): Make static, define together with other
5806 (dont_repeat): Clear repeat_arguments.
5807 (repeat_previous, get_saved_command_line, save_command_line):
5809 (gdb_init): Initialize saved_command_line
5810 and previous_saved_command_line.
5811 * main.c (captured_main_1): Remove saved_command_line initialization.
5812 * event-top.c (handle_line_of_input): Update to use
5813 the new 'repeat' related functions instead of direct access to
5815 * command.h (repeat_previous, get_saved_command_line,
5816 save_command_line): New declarations.
5817 (dont_repeat): Add comment.
5819 2019-05-30 Tom Tromey <tromey@adacore.com>
5821 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
5823 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
5825 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
5828 * completer.c (complete): Initialize variable word.
5830 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
5832 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
5833 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
5834 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
5835 'body' is NULL to the outter 'if', protecting the '!is_define'
5838 2019-05-29 Tom Tromey <tromey@adacore.com>
5840 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
5841 (dwarf_unknown): New function.
5842 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
5843 (dwarf_type_encoding_name): Use dwarf_unknown.
5845 2019-05-29 Tom Tromey <tromey@adacore.com>
5848 * cp-valprint.c (cp_print_value_fields): Call
5849 cp_print_static_field inside "try".
5851 2019-05-29 Tom Tromey <tromey@adacore.com>
5853 * inflow.c (struct terminal_info): Add default operator=.
5854 * configure: Rebuild.
5855 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
5856 -Wdeprecated-copy-dtor, -Wredundant-move.
5858 2019-05-29 Tom Tromey <tromey@adacore.com>
5861 * infcmd.c (print_return_value_1): Handle finish_print
5863 (show_print_finish): New function.
5864 (_initialize_infcmd): Add "set/show print finish" commands.
5865 * valprint.c (user_print_options): Initialize new member.
5866 * valprint.h (struct value_print_options) <finish_print>: New
5869 2019-05-28 Tom Tromey <tromey@adacore.com>
5871 * ada-lang.c (ada_remove_Xbn_suffix)
5872 (find_old_style_renaming_symbol)
5873 (parse_old_style_renaming): Remove.
5874 (ada_find_renaming_symbol): Don't call
5875 find_old_style_renaming_symbol.
5876 (ada_is_renaming_symbol): Rename from
5877 ada_find_renaming_symbol. Remove "block" parameter. Return
5879 (ada_read_var_value): Update and simplify.
5880 * ada-exp.y (write_var_or_type): Remove old code.
5882 2019-05-28 Alan Hayward <alan.hayward@arm.com>
5884 * event-top.c: Remove include comment.
5885 * inflow.c (class scoped_ignore_sigttou): Move from here...
5886 * inflow.h (class scoped_ignore_sigttou): ...to here.
5887 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
5888 * top.c: Remove include comment.
5890 2019-05-27 Tom Tromey <tom@tromey.com>
5894 2019-05-22 Tom Tromey <tromey@adacore.com>
5896 * target.c (target_follow_exec): Constify parameter.
5897 * target-delegates.c: Rebuild.
5898 * remote.c (remote_target::follow_exec): Constify parameter.
5899 * infrun.c (follow_exec): Constify parameter.
5900 * target.h (struct target_ops) <follow_exec>: Constify parameter.
5901 (target_follow_exec): Likewise.
5903 2019-05-22 Alan Hayward <alan.hayward@arm.com>
5905 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
5906 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
5908 2019-05-22 Alan Hayward <alan.hayward@arm.com>
5910 * NEWS: Add debugredirect and testsuite sections.
5912 2019-05-22 Simon Cook <simon.cook@embecosm.com>
5914 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
5915 target descriptions using exclusively floating point register name
5918 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
5921 * f-lang.c (build_fortran_types): Handle the case where
5922 gdbarch_floatformat_for_type returns a nullptr.
5924 2019-05-21 Tom de Vries <tdevries@suse.de>
5927 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
5929 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
5932 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
5934 * i386-tdep.c (i386_floatformat_for_type): Use
5935 floatformats_ia64_quad for the 16-byte floating point component
5936 within a fortran 32-byte complex number.
5938 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
5940 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
5941 delete default constructor.
5942 (find_partial_die): Update to return const struct.
5943 (partial_die_parent_scope): Move variable declaration into scope
5944 of its use and change its type to auto.
5945 (guess_partial_die_structure_name): Likewise.
5946 (partial_die_info::fixup): Likewise.
5948 2019-05-17 Tom Tromey <tromey@adacore.com>
5950 * source.c (find_and_open_source): Remove cast.
5952 2019-05-17 Tom Tromey <tromey@adacore.com>
5954 * annotate.c (annotate_source): Make "filename" const.
5955 * annotate.h (annotate_source): Use const.
5957 2019-05-17 Alan Hayward <alan.hayward@arm.com>
5959 * disasm.c (set_disassembler_options): Send errors to stderr.
5961 2019-05-17 Alan Hayward <alan.hayward@arm.com>
5963 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
5964 (cli_interp_base::set_logging): Check debug_redirect.
5965 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
5966 * cli/cli-logging.c (debug_redirect): Add static variable.
5967 (pop_output_files): Add default param.
5968 (handle_redirections): Print debug setting.
5969 (show_logging_command): Likewise.
5970 (_initialize_cli_logging): Add debugredirect command.
5971 * interps.c (current_interp_set_logging): Add debug_redirect
5973 * interps.h (set_logging): Add debug_redirect parameter.
5974 (current_interp_set_logging): Likewise.
5975 * mi/mi-common.h: Likewise.
5976 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
5978 2019-05-17 Alan Hayward <alan.hayward@arm.com>
5979 Tom Tromey <tromey@adacore.com>
5981 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
5983 * cli/cli-interp.h (make_logging_output): Remove declaration.
5984 * cli/cli-logging.c (make_logging_output): Remove function.
5985 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
5987 * ui-file.c (tee_file::tee_file): Remove bools.
5988 (tee_file::~tee_file): Remove deletes.
5989 * ui-file.h (tee_file): Remove bools.
5991 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
5993 * mi/mi-cmds.h (mi_cmd_complete): New function.
5994 * mi/mi-main.c (mi_cmd_complete): Likewise.
5995 * mi/mi-cmds.c: Define new MI command -complete.
5996 * NEWS: Mention new -complete command.
5998 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
6000 * completer.h (complete): New function.
6001 * completer.c (complete): Likewise.
6002 * cli/cli-cmds.c: (complete_command): Update to use new complete()
6003 function defined in completer.h.
6005 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
6007 * MAINTAINERS (Write After Approval): Add myself.
6009 2019-05-17 Tom de Vries <tdevries@suse.de>
6012 * dwarf2read.c (struct cu_partial_die_info): New struct.
6013 (find_partial_die): Return cu_partial_die_info.
6014 (partial_die_parent_scope, guess_partial_die_structure_name)
6015 (partial_die_info::fixup): Handle new return type of find_partial_die.
6017 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6019 PR breakpoints/24541
6020 * stap-probe.c (stap_parse_register_operand): Make "regname" an
6021 "std::string", simplifying the algorithm.
6023 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6025 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
6026 (stap_static_probe_ops::get_probes): Likewise.
6028 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6030 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
6031 '-')" and "else if".
6032 (stap_parse_single_operand): Join checks for
6033 "gdbarch_stap_parse_special_token_p" and
6034 "gdbarch_stap_parse_special_token" in the same "if" statement.
6035 Invert check when verifying for operation on register
6038 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6040 * stap-probe.c (stap_get_opcode): Update comment.
6041 (stap_get_expected_argument_type): Likewise.
6042 (handle_stap_probe): Likewise.
6044 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6046 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
6047 return type to 'bool'. Adjust comment. Use 'bool' when
6049 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6050 * stap-probe.c (stap_parse_argument_1): Likewise.
6051 (stap_is_operator): Likewise.
6052 (stap_is_generic_prefix): Likewise.
6053 (stap_is_register_prefix): Likewise.
6054 (stap_is_register_indirection_prefix): Likewise.
6055 (stap_is_integer_prefix): Likewise.
6056 (stap_generic_check_suffix): Likewise.
6057 (stap_check_integer_suffix): Likewise.
6058 (stap_check_register_suffix): Likewise.
6059 (stap_check_register_indirection_suffix): Likewise.
6060 (stap_parse_register_operand): Likewise.
6061 (stap_parse_single_operand): Likewise.
6062 (stap_parse_argument_1): Likewise.
6063 (stap_probe::get_argument_count): Likewise.
6064 (stap_is_operator): Likewise.
6066 2019-05-16 Tom Tromey <tromey@adacore.com>
6068 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
6071 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
6073 * linux-thread-db.c (try_thread_db_load_1): Change return type
6075 (try_thread_db_load): Likewise.
6076 (try_thread_db_load_from_pdir_1): Likewise.
6077 (try_thread_db_load_from_pdir): Likewise.
6078 (try_thread_db_load_from_sdir): Likewise.
6079 (try_thread_db_load_from_dir): Likewise.
6080 (thread_db_load_search): Likewise.
6081 (has_libpthread): Likewise.
6082 (thread_db_load): Likewise.
6084 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
6086 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
6087 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
6088 NULL, and complain/return if that's the case.
6090 2019-05-15 John Darrington <john@darrington.wattle.id.au>
6092 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
6093 (advance, posn, abstract_read_memory): New functions.
6094 [struct mem_read_abstraction]: New struct.
6095 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
6097 2019-05-14 Tom Tromey <tromey@adacore.com>
6099 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
6100 value is not lval_memory.
6102 2019-05-14 Tom Tromey <tromey@adacore.com>
6104 * solib.c (info_sharedlibrary_command): Style the file name.
6106 2019-05-14 Alan Hayward <alan.hayward@arm.com>
6108 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
6109 (aarch64_vnv_type): Likewise.
6110 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
6111 * common/tdesc.c: Likewise.
6112 * common/tdesc.h (enum tdesc_type_kind): Likewise.
6113 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
6114 * features/aarch64-fpu.xml: Add ieee half view.
6115 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
6116 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
6117 * gdbtypes.h (struct builtin_type): Likewise.
6118 (struct objfile_type): Likewise.
6120 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
6122 * language.c (language_sniff_from_mangled_name): Fix "langauge"
6124 * location.h (string_to_event_location): Likewise.
6126 2019-05-11 Joel Brobecker <brobecker@adacore.com>
6130 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
6132 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
6133 New variable declaration.
6134 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
6136 (print_one_breakpoint): Use ui_out::test_flags and new global
6137 variable to compute use_fixed_output.
6138 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
6140 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
6141 (mi_multi_location_breakpoint_output_fixed): Remove.
6142 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
6144 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
6145 fix_multi_location_breakpoint_output flag if version >= 3.
6146 * ui-out.h (enum ui_out_flag)
6147 <fix_multi_location_breakpoint_output>: New enumerator.
6149 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
6151 * contrib/cc-with-tweaks.sh: Validate dwz's work.
6153 2019-05-10 Tom Tromey <tromey@adacore.com>
6155 * ada-lang.c (catch_ada_completer): New function.
6156 (_initialize_ada_language): Use it.
6158 2019-05-10 Tom Tromey <tromey@adacore.com>
6160 * thread.c (print_thread_info): Make "requested_threads" const.
6161 * gdbthread.h (print_thread_info): Make "requested_threads"
6163 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
6164 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
6166 2019-05-08 Tom Tromey <tom@tromey.com>
6168 * gdbtypes.c (objfile_type_data): Change type.
6169 (objfile_type, _initialize_gdbtypes): Update.
6171 2019-05-08 Tom Tromey <tom@tromey.com>
6173 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
6174 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
6175 (_initialize_dwarf2_frame): Update.
6177 2019-05-08 Tom Tromey <tom@tromey.com>
6179 * objc-lang.c (objc_objfile_data): Change type.
6180 (find_methods): Update.
6181 (_initialize_objc_lang): Remove.
6183 2019-05-08 Tom Tromey <tom@tromey.com>
6185 * stabsread.c (rs6000_builtin_type_data): Change type.
6186 (rs6000_builtin_type, _initialize_stabsread): Update.
6188 2019-05-08 Tom Tromey <tom@tromey.com>
6190 * mips-tdep.c (mips_pdr_data): Remove.
6191 (_initialize_mips_tdep): Update.
6193 2019-05-08 Tom Tromey <tom@tromey.com>
6195 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
6196 (hppa_init_objfile_priv_data, read_unwind_info)
6197 (find_unwind_entry, _initialize_hppa_tdep): Update.
6199 2019-05-08 Tom Tromey <tom@tromey.com>
6201 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
6202 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
6204 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
6206 2019-05-08 Tom Tromey <tom@tromey.com>
6208 * mdebugread.c (basic_type_data): Change type.
6209 (basic_type, _initialize_mdebugread): Update.
6211 2019-05-08 Tom Tromey <tom@tromey.com>
6213 * common/gdb_unique_ptr.h (struct noop_deleter): New.
6215 2019-05-08 Tom Tromey <tom@tromey.com>
6217 * nto-tdep.c (nto_inferior_data_reg): Change type.
6218 (nto_inferior_data): Update.
6219 (nto_inferior_data_cleanup, nto_new_inferior_data)
6220 (_initialize_nto_tdep): Remove.
6221 * nto-tdep.h (struct nto_inferior_data): Add initializers.
6223 2019-05-08 Tom Tromey <tom@tromey.com>
6225 * ada-lang.c (struct ada_inferior_data): Add initializers.
6226 (ada_inferior_data): Change type.
6227 (ada_inferior_data_cleanup): Remove.
6228 (get_ada_inferior_data, ada_inferior_exit)
6229 (struct ada_pspace_data): Add initializers, destructor.
6230 (ada_pspace_data_handle): Change type.
6231 (get_ada_pspace_data): Update.
6232 (ada_pspace_data_cleanup): Remove.
6234 2019-05-08 Tom Tromey <tom@tromey.com>
6236 * coffread.c (struct coff_symfile_info): Add initializers.
6237 (coff_objfile_data_key): Move lower. Change type.
6238 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
6240 (coff_free_info): Remove.
6242 2019-05-08 Tom Tromey <tom@tromey.com>
6244 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
6245 (fbsd_pspace_data_handle): Move lower. Change type.
6246 (get_fbsd_pspace_data): Update.
6247 (fbsd_pspace_data_cleanup): Remove.
6248 (_initialize_fbsd_tdep): Update.
6250 2019-05-08 Tom Tromey <tom@tromey.com>
6252 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
6253 (get_ada_tasks_pspace_data): Update.
6254 (ada_tasks_pspace_data_cleanup): Remove.
6255 (_initialize_tasks): Update.
6256 (ada_tasks_inferior_data_handle): Change type.
6257 (get_ada_tasks_inferior_data): Update.
6258 (ada_tasks_inferior_data_cleanup): Remove.
6259 (struct ada_tasks_pspace_data): Add initializers.
6261 2019-05-08 Tom Tromey <tom@tromey.com>
6263 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
6264 * symfile-debug.c (debug_sym_get_probes): Change type.
6265 * stap-probe.c (handle_stap_probe):
6266 (stap_static_probe_ops::get_probes): Change type.
6267 * probe.h (class static_probe_ops) <get_probes>: Change type.
6268 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
6269 (parse_probes_in_pspace): Update.
6270 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
6272 (any_static_probe_ops::get_probes): Change type.
6273 * elfread.c (elfread_data): New typedef.
6274 (probe_key): Change type.
6275 (elf_get_probes): Likewise. Update.
6276 (probe_key_free): Remove.
6277 (_initialize_elfread): Update.
6278 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
6280 (dtrace_process_dof_probe, dtrace_process_dof)
6281 (dtrace_static_probe_ops::get_probe): Change type.
6283 2019-05-08 Tom Tromey <tom@tromey.com>
6285 * xcoffread.c (struct xcoff_symfile_info): Rename from
6286 coff_symfile_info. Add initializers.
6287 (xcoff_objfile_data_key): Move lower. Change type.
6288 (XCOFF_DATA): Rewrite.
6289 (xcoff_free_info): Remove.
6290 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
6291 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
6292 (xcoff_initial_scan): Update.
6294 2019-05-08 Tom Tromey <tom@tromey.com>
6296 * solib-svr4.c (struct svr4_info): Add initializers and
6298 <probes_table>: Now an htab_up.
6299 (solib_svr4_pspace_data): Change type.
6300 (free_probes_table): Simplify.
6301 (~svr4_info): Rename from svr4_pspace_data_cleanup.
6302 (get_svr4_info, probes_table_htab_remove_objfile_probes)
6303 (probes_table_remove_objfile_probes, register_solib_event_probe)
6304 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
6305 (_initialize_svr4_solib): Update.
6307 2019-05-08 Tom Tromey <tom@tromey.com>
6309 * remote.c (remote_pspace_data): Change type.
6310 (remote_pspace_data_cleanup): Remove.
6311 (get_remote_exec_file, set_pspace_remote_exec_file)
6312 (_initialize_remote): Update.
6314 2019-05-08 Tom Tromey <tom@tromey.com>
6316 * breakpoint.c (breakpoint_objfile_key): Change type.
6317 (get_breakpoint_objfile_data): Update.
6318 (free_breakpoint_objfile_data): Remove.
6319 (_initialize_breakpoint): Update.
6321 2019-05-08 Tom Tromey <tom@tromey.com>
6323 * linux-tdep.c (struct linux_info): Add initializers.
6324 (linux_inferior_data): Move. Change type.
6325 (invalidate_linux_cache_inf): Update.
6326 (linux_inferior_data_cleanup): Remove.
6327 (get_linux_inferior_data, _initialize_linux_tdep): Update.
6329 2019-05-08 Tom Tromey <tom@tromey.com>
6331 * auxv.c (auxv_inferior_data): Move. Change type.
6332 (auxv_inferior_data_cleanup): Remove.
6333 (invalidate_auxv_cache_inf): Rewrite.
6334 (get_auxv_inferior_data, _initialize_auxv): Update.
6336 2019-05-08 Tom Tromey <tom@tromey.com>
6338 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
6339 (symfile_debug_objfile_data_key): Change type.
6340 (symfile_debug_installed, debug_qf_has_symbols)
6341 (debug_qf_find_last_source_symtab)
6342 (debug_qf_forget_cached_source_info)
6343 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
6344 (debug_qf_print_stats, debug_qf_dump)
6345 (debug_qf_expand_symtabs_for_function)
6346 (debug_qf_expand_all_symtabs)
6347 (debug_qf_expand_symtabs_with_fullname)
6348 (debug_qf_map_matching_symbols)
6349 (debug_qf_expand_symtabs_matching)
6350 (debug_qf_find_pc_sect_compunit_symtab)
6351 (debug_qf_map_symbol_filenames)
6352 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
6353 (debug_sym_new_init, debug_sym_init, debug_sym_read)
6354 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
6355 (debug_sym_read_linetable, debug_sym_relocate): Update.
6356 (symfile_debug_free_objfile): Remove.
6357 (install_symfile_debug_logging, _initialize_symfile_debug):
6360 2019-05-08 Tom Tromey <tom@tromey.com>
6362 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
6363 allocate_on_obstack.
6364 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
6365 (get_dwarf2_per_objfile): Update.
6366 (set_dwarf2_per_objfile): Remove.
6367 (dwarf2_has_info, dwarf2_get_section_info): Update.
6368 (dwarf2_free_objfile): Remove.
6369 (_initialize_dwarf2_read): Update.
6371 2019-05-08 Tom Tromey <tom@tromey.com>
6373 * auto-load.c (struct auto_load_pspace_info): Add destructor and
6375 <unsupported_script_warning_printed,
6376 script_not_found_warning_printed>: Now bool.
6377 (auto_load_pspace_data): Change type.
6378 (~auto_load_pspace_info): Rename from
6379 auto_load_pspace_data_cleanup.
6380 (get_auto_load_pspace_data, init_loaded_scripts_info)
6381 (clear_section_scripts, maybe_print_unsupported_script_warning)
6382 (maybe_print_script_not_found_warning, _initialize_auto_load):
6385 2019-05-08 Tom Tromey <tom@tromey.com>
6387 * objfiles.c (objfile_pspace_info): Add destructor and
6389 (objfiles_pspace_data): Change type.
6390 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
6391 (get_objfile_pspace_data): Update.
6392 (objfiles_bfd_data): Change type.
6393 (get_objfile_bfd_data): Update.
6394 (objfile_bfd_data_free, _initialize_objfiles): Remove.
6396 2019-05-08 Tom Tromey <tom@tromey.com>
6398 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
6400 (get_catch_syscall_inferior_data): Update.
6401 (catch_syscall_inferior_data_cleanup): Remove.
6402 (_initialize_break_catch_syscall): Update.
6404 2019-05-08 Tom Tromey <tom@tromey.com>
6406 * inflow.c (struct terminal_info): Add destructor and
6408 (inflow_inferior_data): Change type.
6409 (~terminal_info): Rename from inflow_inferior_data_cleanup.
6410 (get_inflow_inferior_data, inflow_inferior_exit)
6411 (swap_terminal_info, _initialize_inflow): Update.
6413 2019-05-08 Tom Tromey <tom@tromey.com>
6415 * target-dcache.c (target_dcache_cleanup): Remove.
6416 (target_dcache_aspace_key): Change type.
6417 (target_dcache_init_p, target_dcache_invalidate)
6418 (target_dcache_get, target_dcache_get_or_init)
6419 (_initialize_target_dcache): Update.
6420 * dcache.h (struct dcache_deleter): New.
6422 2019-05-08 Tom Tromey <tom@tromey.com>
6424 * symtab.c (struct symbol_cache): Add destructor and
6426 (symbol_cache_key): Move. Change type.
6427 (make_symbol_cache, free_symbol_cache): Remove.
6428 (get_symbol_cache): Update.
6429 (symbol_cache_cleanup): Remove.
6430 (ALL_PSPACES, symbol_cache_flush)
6431 (maintenance_print_symbol_cache)
6432 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
6435 2019-05-08 Tom Tromey <tom@tromey.com>
6437 * symtab.c (struct main_info): Add destructor and initializers.
6438 (main_progspace_key): Move. Change type.
6439 (get_main_info): Update.
6440 (main_info_cleanup): Remove.
6441 (_initialize_symtab): Update.
6443 2019-05-08 Tom Tromey <tom@tromey.com>
6445 * registry.h (DECLARE_REGISTRY): Define the _key class.
6447 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6449 * NEWS: Merge two 'New commands' sections.
6451 2019-05-08 Joel Brobecker <brobecker@adacore.com>
6453 * ada-valprint.c (ada_val_print_gnat_array): Remove language
6454 parameter and use Ada language definition instead.
6455 (ada_val_print_ptr): Remove unused language parameter.
6456 (ada_val_print_num): Remove language parameter and use Ada language
6458 (ada_val_print_enum, ada_val_print_flt): Remove unused language
6460 (ada_val_print_struct_union, ada_val_print_ref): Remove language
6461 parameter and use Ada language definition instead.
6462 (ada_val_print_1): Update all ada_val_print_xxx calls.
6463 Remove language parameter.
6464 (ada_val_print): Update ada_val_print_1 call.
6466 2019-05-08 Tom Tromey <tromey@adacore.com>
6468 * remote.c (remote_hw_watchpoint_limit)
6469 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
6472 2019-05-08 Tom Tromey <tromey@adacore.com>
6474 * maint.c (_initialize_maint_cmds): Move initialization code to
6476 (watchdog, show_watchdog): Move to remote.c.
6477 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
6479 (_initialize_remote): Move initialization code from maint.c.
6480 * defs.h (watchdog): Don't declare.
6482 2019-05-08 Tom Tromey <tromey@adacore.com>
6484 * tui/tui-interp.c: Include main.h.
6485 * interps.c: Include main.h.
6486 * main.h (interpreter_p): Declare.
6487 * defs.h (interpreter_p): Don't declare.
6489 2019-05-08 Tom Tromey <tromey@adacore.com>
6491 * dwarf2loc.c: Include dwarf2read.h.
6492 * defs.h (read_unsigned_leb128): Don't declare.
6493 * dwarf2read.h (read_unsigned_leb128): Declare.
6495 2019-05-08 Tom Tromey <tromey@adacore.com>
6497 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
6500 2019-05-08 Tom Tromey <tromey@adacore.com>
6502 * utils.c (fputs_maybe_filtered): Reset style after paging, even
6503 when no wrap column is set.
6505 2019-05-08 Tom Tromey <tromey@adacore.com>
6507 * c-lang.c (c_get_string): Handle non-C-style arrays.
6509 2019-05-08 Tom Tromey <tromey@adacore.com>
6511 * typeprint.c (print_offset_data::update): Print the bit offset,
6512 not the number of bits remaining.
6514 2019-05-08 Tom Tromey <tromey@adacore.com>
6516 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
6517 padding at end of comment.
6519 2019-05-08 Tom Tromey <tromey@adacore.com>
6521 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
6524 2019-05-06 Tom Tromey <tom@tromey.com>
6526 * common/scoped_mmap.c: Include common-defs.h.
6527 * common/scoped_mmap.h: Don't include config.h.
6529 2019-05-04 Tom Tromey <tom@tromey.com>
6531 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
6532 (struct aarch64_call_info): Add initializers.
6533 <si>: Now a std::vector.
6534 (pass_on_stack, aarch64_push_dummy_call): Update.
6536 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
6537 Tom Tromey <tom@tromey.com>
6539 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
6540 (ppc_threads): Now a std::vector. Now static.
6541 (hwdebug_find_thread_points_by_tid)
6542 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
6545 2019-05-04 Tom Tromey <tom@tromey.com>
6547 * arc-tdep.c (arc_tdesc_init): Return bool.
6549 2019-05-04 Tom Tromey <tom@tromey.com>
6551 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
6552 Use gdb_assert_not_reached.
6554 2019-05-04 Tom Tromey <tom@tromey.com>
6556 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
6559 2019-05-04 Tom Tromey <tom@tromey.com>
6561 * arc-tdep.c (arc_tdesc_init): Use bool.
6563 2019-05-04 Tom Tromey <tom@tromey.com>
6565 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
6567 2019-05-04 Tom Tromey <tom@tromey.com>
6569 * cli/cli-cmds.c (valid_command_p): Return bool.
6571 2019-05-04 Tom Tromey <tom@tromey.com>
6573 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
6574 * command.h (valid_user_defined_cmd_name_p): Channge return type.
6576 2019-05-04 Raul Tambre <raul@tambre.ee>
6578 * python/lib/gdb/prompt.py (_ExtendedPrompt)
6579 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
6580 operator for comparison.
6582 2019-05-04 Tom Tromey <tom@tromey.com>
6584 * psymtab.c (psymbol_name_matches, match_partial_symbol)
6585 (lookup_partial_symbol, print_partial_symbols)
6586 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
6587 (psymbol_compare): Update.
6588 (add_psymbol_to_bcache): Clear the entire psymbol.
6589 (maintenance_check_psymtabs): Update.
6590 * psympriv.h (struct partial_symbol): Don't derive from
6591 general_symbol_info.
6592 <obj_section, unrelocated_address, address,
6593 set_unrelocated_address>: Update.
6594 <ginfo>: New member.
6595 * dwarf-index-write.c (write_psymbols, debug_names::insert)
6596 (debug_names::write_psymbols): Update.
6598 2019-05-04 Tom de Vries <tdevries@suse.de>
6600 * contrib/cc-with-tweaks.sh: Support -n arg.
6602 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6604 * corelow.c (core_target::detach): Ensure frame cache and
6605 register caches are cleared.
6606 inferior.c (exit_inferior_1): Likewise.
6608 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
6609 Tom Tromey <tom@tromey.com>
6611 * dictionary.c (collate_pending_symbols_by_language): Remove
6612 "struct" from foreach.
6613 * symtab.c (lookup_global_symbol_from_objfile)
6614 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
6616 * ser-tcp.c (net_open): Remove "struct" from foreach.
6617 * objfiles.c (objfile_relocate, objfile_rebase)
6618 (objfile_has_symbols): Remove "struct" from foreach.
6619 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
6621 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
6623 * darwin-nat.c (thread_info_from_private_thread_info): Remove
6624 "struct" from foreach.
6625 * ada-lang.c (create_excep_cond_exprs)
6626 (ada_exception_catchpoint_cond_string): Remove "struct" from
6629 2019-05-03 Tom Tromey <tromey@adacore.com>
6631 * ada-exp.y (convert_char_literal): Check suffix of each
6634 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
6637 * ada-exp.y (yywrap): Don't define.
6638 * ada-lex.l (%option): Add noyywrap
6641 2019-05-03 Eli Zaretskii <eliz@gnu.org>
6643 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
6644 _WIN32_WINNT to the XP level, unless already defined to a higher
6647 * unittests/parse-connection-spec-selftests.c:
6649 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
6652 * symfile.c (find_separate_debug_file): Remove colon from the
6653 drive spec of DOS/Windows file names of the target, so that the
6654 file name produced from DEBUGDIR and the target's directory will
6655 be valid on DOS/Windows systems.
6657 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
6659 * rust-lang.c (val_print_struct): Handle printing structures
6662 2019-05-02 Tom Tromey <tromey@adacore.com>
6664 * valarith.c (_initialize_valarith): Remove.
6666 2019-05-01 Tom Tromey <tromey@adacore.com>
6668 * ada-lang.c (ada_value_primitive_field): Treat more fields as
6671 2019-05-01 Tom Tromey <tromey@adacore.com>
6673 * ada-lang.c (ada_value_assign): Correctly compute starting offset
6674 for big-endian copies.
6676 2019-04-30 Ali Tamur <tamur@google.com>
6677 * gdb/dwarf2read.c (read_3_bytes): New declaration.
6678 (read_attribute_value): Added DW_FORM_strx1-4 cases.
6679 (read_3_bytes): New function.
6681 2019-04-30 Joel Brobecker <brobecker@adacore.com>
6683 * windows-nat.c (main_thread_id): Delete.
6684 (handle_output_debug_string): Replace main_thread_id by
6685 current_event.dwThreadId.
6686 (fake_create_process): Likewise.
6687 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
6688 Do not set main_thread_id.
6689 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
6690 current_event.dwThreadId.
6691 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
6693 2019-04-30 Joel Brobecker <brobecker@adacore.com>
6695 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
6696 Use current_event.dwThreadId instead of main_thread_id.
6698 2019-04-30 Tom Tromey <tromey@adacore.com>
6700 * ada-lang.c (ada_lookup_simple_minsyms): New function.
6701 (create_excep_cond_exprs): Iterate over program spaces.
6702 (ada_exception_catchpoint_cond_string): Examine all minimal
6703 symbols for exception types.
6705 2019-04-30 Tom Tromey <tromey@adacore.com>
6708 * dwarf2read.c (process_structure_scope): Handle case where type
6709 has template parameters but no symbol was created.
6711 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6712 Chris January <chris.january@arm.com>
6714 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
6716 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
6718 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6720 * f-typeprint.c (f_print_type): Update rules for printing
6722 (f_type_print_varspec_suffix): Likewise.
6724 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6725 Chris January <chris.january@arm.com>
6727 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
6730 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6732 * f-lang.c (build_fortran_types): Change name of void type to
6734 * f-typeprint.c (f_type_print_base): Print the name of the void
6735 type, rather than a fixed string.
6736 * f-valprint.c (f_decorations): Use lower case void string.
6738 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6739 Chris January <chris.january@arm.com>
6741 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
6744 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6745 Chris January <chris.january@arm.com>
6746 David Lecomber <david.lecomber@arm.com>
6748 * f-exp.y (BINOP_INTRINSIC): New token.
6749 (exp): New parser rule handling BINOP_INTRINSIC.
6750 (f77_keywords): Add new builtin procedures.
6751 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
6752 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6753 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
6754 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6755 (print_unop_subexp_f): New function.
6756 (print_binop_subexp_f): New function.
6757 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6758 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6759 (dump_subexp_body_f): Likewise.
6760 (operator_check_f): Likewise.
6761 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6762 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
6764 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6766 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
6768 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
6769 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
6770 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
6771 (operator_length_f): New fuction.
6772 (print_subexp_f): New function.
6773 (op_name_f): New function.
6774 (dump_subexp_body_f): New function.
6775 (operator_check_f): New function.
6776 (exp_descriptor_f): Replace standard expression handling functions
6778 * gdb/fortran-operator.def: New file.
6779 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
6780 * gdb/std-operator.def: Remove UNOP_KIND.
6782 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6784 * std-operator.def: Remove unbalanced, stray double quote
6787 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6788 Chris January <chris.january@arm.com>
6789 Daniel Everett <daniel.everett@arm.com>
6790 Nick Forrington <nick.forrington@arm.com>
6791 Richard Bunt <richard.bunt@arm.com>
6793 * cp-valprint.c (cp_print_value_fields): Allow an additional level
6794 of depth when printing anonymous structs or unions.
6795 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
6796 Don't print either the top-level value, or the children if the
6797 max-depth is exceeded.
6798 (ppscm_print_children): When printing the key of a map, allow one
6799 extra level of depth.
6800 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
6801 print either the top-level value, or the children if the max-depth
6803 (print_children): When printing the key of a map, allow one extra
6805 * python/py-value.c (valpy_format_string): Add max_depth keyword.
6806 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
6807 (user_print_options): Initialise max_depth field.
6808 (val_print_scalar_or_string_type_p): New function.
6809 (val_print): Check to see if the max depth has been reached.
6810 (val_print_check_max_depth): Define new function.
6811 (show_print_max_depth): New function.
6812 (_initialize_valprint): Add 'print max-depth' option.
6813 * valprint.h (struct value_print_options) <max_depth>: New field.
6814 (val_print_check_max_depth): Declare new function.
6815 * NEWS: Document new feature.
6817 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6819 * ada-lang.c (ada_language_defn): Initialise new field.
6820 * c-lang.c (c_is_string_type_p): New function.
6821 (c_language_defn): Initialise new field.
6822 (cplus_language_defn): Initialise new field.
6823 (asm_language_defn): Initialise new field.
6824 (minimal_language_defn): Initialise new field.
6825 * c-lang.h (c_is_string_type_p): Declare new function.
6826 * d-lang.c (d_language_defn): Initialise new field.
6827 * f-lang.c (f_is_string_type_p): New function.
6828 (f_language_defn): Initialise new field.
6829 * go-lang.c (go_is_string_type_p): New function.
6830 (go_language_defn): Initialise new field.
6831 * language.c (default_is_string_type_p): New function.
6832 (unknown_language_defn): Initialise new field.
6833 (auto_language_defn): Initialise new field.
6834 * language.h (struct language_defn) <la_is_string_type_p>: New
6836 (default_is_string_type_p): Declare new function.
6837 * m2-lang.c (m2_language_defn): Initialise new field.
6838 * objc-lang.c (objc_language_defn): Initialise new field.
6839 * opencl-lang.c (opencl_language_defn): Initialise new field.
6840 * p-lang.c (pascal_is_string_type_p): New function.
6841 (pascal_language_defn): Initialise new field.
6842 * rust-lang.c (rust_is_string_type_p): New function.
6843 (rust_language_defn): Initialise new field.
6845 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6847 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
6849 * ada-lang.c (ada_language_defn): Initialise new field.
6850 * c-lang.c (c_language_defn): Likewise.
6851 (cplus_language_defn): Likewise.
6852 (asm_language_defn): Likewise.
6853 (minimal_language_defn): Likewise.
6854 * d-lang.c (d_language_defn): Likewise.
6855 * f-lang.c (f_language_defn): Likewise.
6856 * go-lang.c (go_language_defn): Likewise.
6857 * language.c (unknown_language_defn): Likewise.
6858 (auto_language_defn): Likewise.
6859 * m2-lang.c (m2_language_defn): Likewise.
6860 * objc-lang.c (objc_language_defn): Likewise.
6861 * opencl-lang.c (opencl_language_defn): Likewise.
6862 * p-lang.c (pascal_language_defn): Likewise.
6863 * rust-lang.c (rust_language_defn): Likewise.
6865 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6867 * ada-lang.c (ada_is_character_type): Change return type to bool.
6868 (ada_is_string_type): Likewise.
6869 * ada-lang.h (ada_is_character_type): Update declaration
6870 (ada_is_string_type): Likewise.
6872 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6874 Support style in 'frame|thread apply'
6876 * gdbcmd.h (execute_command_to_string): New term_out parameter.
6877 * record.c (record_start, record_stop): Update callers of
6878 execute_command_to_string with false.
6879 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
6880 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
6882 (class string_file): New constructor with term_out parameter.
6883 Override methods term_out and can_emit_style_escape. New member
6885 (class stdio_file): Override can_emit_style_escape.
6886 (class tee_file): Override term_out and can_emit_style_escape.
6887 * utils.h (can_emit_style_escape): Remove.
6888 * utils.c (can_emit_style_escape): Likewise.
6889 Update all callers of can_emit_style_escape (SOMESTREAM) to
6890 SOMESTREAM->can_emit_style_escape.
6891 * source-cache.c (source_cache::get_source_lines): Likewise.
6892 * stack.c (frame_apply_command_count): Call execute_command_to_string
6893 passing the term_out characteristic of the current gdb_stdout.
6894 * thread.c (thr_try_catch_cmd): Likewise.
6895 * top.c (execute_command_to_string): pass term_out parameter
6896 to construct the string_file for the command output.
6897 * ui-file.c (term_cli_styling): New function (most code moved
6898 from utils.c can_emit_style_escape).
6899 (string_file::string_file, string_file::can_emit_style_escape,
6900 stdio_file::can_emit_style_escape, tee_file::term_out,
6901 tee_file::can_emit_style_escape): New functions.
6903 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6905 * NEWS: Mention the new set|show may-call-functions.
6906 * infcall.c (may_call_functions_p): New variable.
6907 (show_may_call_functions_p): New function.
6908 (call_function_by_hand_dummy): Throws an error if not
6910 (_initialize_infcall): Call add_setshow_boolean_cmd for
6913 2019-04-25 Keith Seitz <keiths@redhat.com>
6916 * cp-support.c (inspect_type): Don't attempt substitutions
6917 of symbol with the same name.
6919 2019-04-25 Tom Tromey <tromey@adacore.com>
6922 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
6925 2019-04-25 Tom Tromey <tromey@adacore.com>
6927 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
6929 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
6930 (gdb_xml_parser::parse): Use std::move.
6931 * python/python-internal.h (gdbpy_convert_exception): Take a const
6933 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
6935 * python/py-utils.c (gdbpy_convert_exception): Take a const
6937 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
6939 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
6941 * mi/mi-main.c (mi_print_exception): Take a const reference.
6942 * main.c (handle_command_errors): Take a const reference.
6943 * linespec.c (parse_linespec): Use std::move.
6944 * infcall.c (run_inferior_call): Use std::move.
6945 (call_function_by_hand_dummy): Use std::move.
6946 * exec.c (try_open_exec_file): Use std::move.
6947 * exceptions.h (exception_print, exception_fprintf)
6948 (exception_print_same): Update.
6949 * exceptions.c (print_exception, exception_print)
6950 (exception_fprintf, exception_print_same): Change parameters to
6952 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
6953 * common/new-op.c: Use std::move.
6954 * common/common-exceptions.h (struct gdb_exception): Add move
6956 (struct gdb_exception_error, struct gdb_exception_quit, struct
6957 gdb_quit_bad_alloc): Change constructor to move constructor.
6958 (throw_exception): Change parameter to rvalue reference.
6959 * common/common-exceptions.c (throw_exception): Take rvalue
6961 * cli/cli-interp.c (safe_execute_command): Use std::move.
6962 * breakpoint.c (insert_bp_location, location_to_sals): Use
6965 2019-04-25 Tom Tromey <tromey@adacore.com>
6967 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
6968 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
6969 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
6970 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
6971 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
6972 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
6973 guile/scm-value.c: Use unpack.
6974 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
6975 gdbscm_gdb_exception.
6976 (gdbscm_throw_gdb_exception): Likewise.
6977 (struct gdbscm_gdb_exception): New.
6978 (unpack): New function.
6979 (gdbscm_wrap): Use unpack.
6981 2019-04-25 Tom Tromey <tromey@adacore.com>
6983 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
6984 (gdb_rl_callback_handler): Use std::move.
6985 * common/common-exceptions.h (struct gdb_exception): Add move
6986 assignment operator.
6987 (throw_exception_sjlj): Change "exception" to const reference.
6988 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
6989 (throw_exception_sjlj): Change "exception" to const reference.
6991 2019-04-25 Tom Tromey <tromey@adacore.com>
6993 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
6994 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
6995 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
6997 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
6999 * mi/mi-interp.c (mi_interp::exec): Update.
7000 * linespec.c (parse_linespec): Update.
7001 * infcall.c (run_inferior_call): Update.
7002 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
7003 * guile/scm-symbol.c (gdbscm_lookup_symbol)
7004 (gdbscm_lookup_global_symbol): Update.
7005 * guile/scm-param.c (gdbscm_parameter_value): Update.
7006 * guile/scm-frame.c (gdbscm_frame_read_register)
7007 (gdbscm_frame_read_var): Update.
7008 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
7009 * exec.c (try_open_exec_file): Update.
7010 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
7011 (gdb_rl_callback_handler): Update.
7012 * common/common-exceptions.h (exception_none): Don't declare.
7013 * common/common-exceptions.c (exception_none): Don't define.
7014 (struct catcher) <exception>: Update.
7015 * cli/cli-interp.c (safe_execute_command): Update.
7016 * breakpoint.c (insert_bp_location, location_to_sals): Update.
7018 2019-04-25 Ali Tamur <tamur@google.com>
7020 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
7021 (read_attribute_value): Likewise.
7022 (dwarf2_read_addr_index): Update comment.
7023 (read_str_index): Add DW_FORM_strx.
7024 (dwarf2_string_attr): Likewise.
7025 (dwarf2_const_value_attr): Likewise.
7026 (dump_die_shallow): Likewise.
7027 (dwarf2_fetch_constant_bytes): Likewise.
7028 (skip_form_bytes): Likewise.
7029 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
7031 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
7035 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
7036 OFFSET. Verify if current mapping contains an ELF header.
7037 (linux_find_memory_regions_full): Adjust call to
7040 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
7041 Kang Li <kanglictf@gmail.com>
7045 * dwarf2-frame.c (read_initial_length): Be consistent about using
7046 unsigned representation of length.
7047 (decode_frame_entry_1): Likewise. Check for wraparound of
7048 end pointer as well as buffer overflow.
7050 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
7052 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
7055 2019-04-24 Tom Tromey <tromey@adacore.com>
7057 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
7059 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7061 * s12z-tdep.c (s12z_unwind_pc): Delete.
7062 (s12z_unwind_sp): Delete.
7063 (s12z_gdbarch_init): Don't register deleted functions with
7066 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7068 * rl78-tdep.c (rl78_unwind_sp): Delete.
7069 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
7071 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7073 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
7074 (xstormy16_unwind_pc): Delete.
7075 (xstormy16_dummy_id): Delete.
7076 (xstormy16_gdbarch_init): Don't register deleted functions with
7079 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7081 * vax-tdep.c (vax_unwind_pc): Delete.
7082 (vax_gdbarch_init): Don't register deleted function with gdbarch.
7084 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7086 * v850-tdep.c (v850_unwind_sp): Delete.
7087 (v850_unwind_pc): Delete.
7088 (v850_dummy_id): Delete.
7089 (v850_gdbarch_init): Don't register deleted functions with
7092 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7094 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
7095 (tilegx_unwind_pc): Delete.
7096 (tilegx_unwind_dummy_id): Delete.
7097 (tilegx_gdbarch_init): Don't register deleted functions with
7100 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7102 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
7103 (tic6x_dummy_id): Delete.
7104 (tic6x_gdbarch_init): Don't register deleted functions with
7107 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7109 * sparc-tdep.c (sparc_unwind_pc): Delete.
7110 (sparc32_gdbarch_init): Don't register deleted function with
7113 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7115 * sh-tdep.c (sh_unwind_sp): Delete.
7116 (sh_unwind_pc): Delete.
7117 (sh_dummy_id): Delete.
7118 (sh_gdbarch_init): Don't register deleted functions with
7121 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7123 * score-tdep.c (score_unwind_sp): Delete.
7124 (score_unwind_pc): Delete.
7125 (score_dummy_id): Delete.
7126 (score_gdbarch_init): Don't register deleted functions with
7129 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7131 * rx-tdep.c (rx_unwind_pc): Delete.
7132 (rx_unwind_sp): Delete.
7133 (rx_dummy_id): Delete.
7134 (rx_gdbarch_init): Don't register deleted functions with
7135 gdbarch. Update comment.
7137 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7139 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
7140 (rs6000_dummy_id): Delete.
7141 (rs6000_gdbarch_init): Don't register deleted functions with
7144 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7146 * or1k-tdep.c (or1k_dummy_id): Delete.
7147 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
7149 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7151 * nios2-tdep.c (nios2_dummy_id): Delete.
7152 (nios2_unwind_sp): Delete.
7153 (nios2_gdbarch_init): Don't register deleted functions with
7156 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7158 * nds32-tdep.c (nds32_dummy_id): Delete.
7159 (nds32_unwind_pc): Delete.
7160 (nds32_unwind_sp): Delete.
7161 (nds32_gdbarch_init): Don't register deleted functions with
7164 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7166 * msp430-tdep.c (msp430_unwind_pc): Delete.
7167 (msp430_unwind_sp): Delete.
7168 (msp430_dummy_id): Delete.
7169 (msp430_gdbarch_init): Don't register deleted functions with
7172 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7174 * moxie-tdep.c (moxie_unwind_sp): Delete.
7175 (moxie_unwind_pc): Delete.
7176 (moxie_dummy_id): Delete.
7177 (moxie_gdbarch_init): Don't register deleted functions with
7180 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7182 * mn10300-tdep.c (mn10300_dummy_id): Delete.
7183 (mn10300_unwind_pc): Delete.
7184 (mn10300_unwind_sp): Delete.
7185 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
7187 (mn10300_frame_unwind_init): Don't register deleted functions with
7190 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7192 * mep-tdep.c (mep_unwind_pc): Delete.
7193 (mep_unwind_sp): Delete.
7194 (mep_dummy_id): Delete.
7195 (mep_gdbarch_init): Don't register deleted functions with
7198 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7200 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
7201 (m68hc11_unwind_sp): Delete.
7202 (m68hc11_gdbarch_init): Don't register deleted functions with
7205 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7207 * m32r-tdep.c (m32r_unwind_sp): Delete.
7208 (m32r_unwind_pc): Delete.
7209 (m32r_dummy_id): Delete.
7210 (m32r_gdbarch_init): Don't register deleted functions with
7213 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7215 * m32c-tdep.c (m32c_unwind_pc): Delete.
7216 (m32c_unwind_sp): Delete.
7217 (m32c_dummy_id): Delete.
7218 (m32c_gdbarch_init): Don't register deleted functions with
7221 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7223 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
7224 (lm32_unwind_pc): Delete.
7225 (lm32_dummy_id): Delete.
7226 (lm32_gdbarch_init): Don't register deleted functions with
7229 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7231 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
7232 (iq2000_unwind_pc): Delete.
7233 (iq2000_dummy_id): Delete.
7234 (iq2000_gdbarch_init): Don't register deleted functions with
7237 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7239 * nds32-tdep.c (nds32_type_align): Delete.
7240 (nds32_push_dummy_call): Use type_align instead.
7242 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7244 * arm-tdep.c (arm_type_align): Only handle vector override case.
7245 (arm_push_dummy_call): Use type_align.
7246 (arm_gdbarch_init): Register arm_type_align gdbarch function.
7248 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7250 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
7252 (pass_on_stack): Use type_align.
7253 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
7256 2019-04-23 Tom Tromey <tromey@adacore.com>
7258 * dwarf2read.c (line_header::file_name_at): Remove unused
7261 2019-04-23 Tom de Vries <tdevries@suse.de>
7264 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
7268 2019-03-27 Ali Tamur <tamur@google.com>
7270 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
7271 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
7272 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
7273 (dwarf_expr_context::get_addr_index): Likewise
7274 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
7275 (symbol_needs_eval_context::get_addr_index): Likewise
7276 (disassemble_dwarf_expression): Add DW_OP_addrx
7277 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
7278 (read_cutu_die_from_dwo): Update comment
7279 (skip_one_die): Add DW_FORM_addrx
7280 (read_attribute_value): Likewise
7281 (var_decode_location): Add DW_OP_addrx
7282 (dwarf2_const_value_attr): Add DW_FORM_addrx
7283 (dump_die_shallow): Likewise
7284 (dwarf2_fetch_constant_bytes): Likewise
7285 (decode_locdesc): Add DW_OP_addrx
7286 (skip_form_bytes): Add DW_FORM_addrx
7288 2019-04-22 Ali Tamur <tamur@google.com>
7290 * MAINTAINERS (Write After Approval): Add self.
7292 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
7294 * solib-svr4.c (get_svr4_info): Add pspace parameter.
7295 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
7296 (open_symbol_file_object): Likewise.
7297 (svr4_default_sos): Add info parameter.
7298 (svr4_read_so_list): Likewise.
7299 (svr4_current_sos_direct): Adjust functions calls to pass down
7301 (svr4_current_sos_1): Add info parameter.
7302 (svr4_current_sos): Call get_svr4_info, pass info down to
7304 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
7306 (svr4_in_dynsym_resolve_code): Pass current_program_space to
7308 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
7310 (probes_table_remove_objfile_probes): Likewise.
7311 (register_solib_event_probe): Add info parameter.
7312 (solist_update_incremental): Pass info parameter down to
7314 (disable_probes_interface): Add info parameter.
7315 (svr4_handle_solib_event): Pass current_program_space to
7316 get_svr4_info. Adjust disable_probes_interface cleanup.
7317 (svr4_create_probe_breakpoints): Add info parameter, pass it
7318 down to register_solib_event_probe.
7319 (svr4_create_solib_event_breakpoints): Add info parameter,
7320 pass it down to svr4_create_probe_breakpoints.
7321 (enable_break): Pass info down to
7322 svr4_create_solib_event_breakpoints.
7323 (svr4_solib_create_inferior_hook): Pass current_program_space to
7325 (svr4_clear_solib): Likewise.
7327 2019-04-22 Pedro Alves <palves@redhat.com>
7329 * solib-svr4.c (svr4_free_objfile_observer): New.
7330 (probe_and_action::objfile): New field.
7331 (probes_table_htab_remove_objfile_probes)
7332 (probes_table_remove_objfile_probes): New functions.
7333 (register_solib_event_probe): Add 'objfile' parameter. Store it
7334 in the new probe_and_action. Don't store the probe in 'lookup'.
7335 (svr4_create_probe_breakpoints): Pass objfile to
7336 register_solib_event_probe.
7337 (_initialize_svr4_solib): Register a free_objfile observer.
7339 2019-04-19 Tom Tromey <tom@tromey.com>
7341 * common/queue.h: Remove.
7343 2019-04-19 Tom Tromey <tom@tromey.com>
7345 * event-loop.c: Don't include "common/queue.h".
7347 2019-04-19 Tom Tromey <tom@tromey.com>
7349 * remote.c (remote_target): Use delete.
7350 * remote-notif.h: Include <list>, not "common/queue.h".
7351 (notif_client_p): Remove typedef.
7352 (remote_notif_state): Add constructor, destructor, initializer.
7353 <notif_queue>: Now a std::list.
7354 (remote_notif_state_xfree): Don't declare.
7355 * remote-notif.c (remote_notif_process, handle_notification)
7356 (remote_notif_state_allocate): Update.
7357 (~remote_notif_state): Rename from remote_notif_state_xfree.
7359 2019-04-19 Tom Tromey <tom@tromey.com>
7361 * symfile.c (reread_symbols): Update.
7362 * objfiles.c (objfile_register_static_link)
7363 (objfile_lookup_static_link): Update
7364 (~objfile) Don't delete static_links.
7365 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
7367 2019-04-19 Tom Tromey <tom@tromey.com>
7369 * type-stack.h (struct type_stack) <insert>: Constify string.
7370 * type-stack.c (type_stack::insert): Constify string.
7371 * gdbtypes.h (lookup_template_type): Update.
7372 (address_space_name_to_int): Update.
7373 * gdbtypes.c (address_space_name_to_int): Make space_identifier
7375 (lookup_template_type): Make name const.
7376 * c-exp.y: Update rules.
7377 (lex_one_token, classify_name, classify_inner_name)
7378 (c_print_token): Update.
7379 * p-exp.y: Update rules.
7381 * f-exp.y: Update rules.
7383 * d-exp.y: Update rules.
7384 (lex_one_token, classify_name, classify_inner_name): Update.
7385 * parse.c (write_dollar_variable, copy_name): Return std::string.
7386 * parser-defs.h (copy_name): Change return type.
7387 * m2-exp.y: Update rules.
7389 * go-exp.y (lex_one_token): Update.
7391 (classify_unsafe_function, classify_packaged_name)
7392 (classify_name, yylex): Update.
7394 2019-04-19 Sergei Trofimovich <siarheit@google.com>
7396 * configure.ac: add --enable-source-highlight switch.
7397 * configure: Regenerate.
7398 * top.c (print_gdb_version): plumb --enable-source-highlight
7399 status to "show configuration".
7401 2019-04-19 Tom Tromey <tromey@adacore.com>
7403 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
7405 (empty_record, ada_template_to_fixed_record_type_1)
7406 (template_to_static_fixed_type)
7407 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
7408 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
7409 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
7412 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
7415 * source.c (print_source_lines_base): Advance "iter" when a
7416 control character is seen.
7418 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7420 * inferior.h (struct infcall_suspend_state_deleter):
7421 Catch exception in destructor to avoid crash.
7423 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7425 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
7426 close to the add_com "shell".
7428 2019-04-18 Tom Tromey <tromey@adacore.com>
7430 * process-stratum-target.h (class process_stratum_target)
7431 <stratum>: Add "final".
7433 2019-04-17 Tom Tromey <tromey@adacore.com>
7435 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
7436 against nullptr before use.
7438 2019-04-17 Alan Hayward <alan.hayward@arm.com>
7440 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
7442 2019-04-17 Jim Wilson <jimw@sifive.com>
7443 Andrew Burgess <andrew.burgess@embecosm.com>
7445 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
7446 code read might fail, assume 4-byte breakpoint in that case.
7448 2019-04-15 Leszek Swirski <leszeks@google.com>
7450 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
7451 rather than a hand-rolled POD check when checking for forced MEMORY
7454 2019-04-15 Alan Hayward <alan.hayward@arm.com>
7456 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
7457 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
7459 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
7460 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
7461 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
7464 2019-04-15 Alan Hayward <alan.hayward@arm.com>
7466 * aarch64-linux-nat.c
7467 (aarch64_linux_nat_target::thread_architecture): Add override.
7468 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
7471 2019-04-15 Alan Hayward <alan.hayward@arm.com>
7473 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
7475 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
7477 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
7478 target types of size 96-bits, add some additional comments, and
7479 check that the builtin type we found was the correct size.
7481 2019-04-12 Eli Zaretskii <eliz@gnu.org>
7483 * utils.c (prompt_for_continue): Don't restore the styling at the
7484 end, as applied_style has the wrong value. This fixes styling in
7485 long lists of file names that are interrupted by the "Continue?"
7488 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
7490 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
7491 * c-lang.c (c_language_defn): Likewise.
7492 (cplus_language_defn): Likewise.
7493 (asm_language_defn): Likewise.
7494 (minimal_language_defn): Likewise.
7495 * d-lang.c (d_language_defn): Likewise.
7496 * f-lang.c (f_language_defn): Likewise.
7497 * go-lang.c (go_language_defn): Likewise.
7498 * language.c (unknown_language_defn): Likewise.
7499 (auto_language_defn): Likewise.
7500 * language.h (struct language_defn): Remove la_magic field.
7501 (LANG_MAGIC): Delete.
7502 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
7503 * objc-lang.c (objc_language_defn): Likewise.
7504 * opencl-lang.c (opencl_language_defn): Likewise.
7505 * p-lang.c (pascal_language_defn): Likewise.
7506 * rust-lang.c (rust_language_defn): Likewise.
7508 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7510 * riscv-tdep.c (riscv_type_align): New function.
7511 (riscv_type_alignment): Delete.
7512 (riscv_arg_location): Use 'type_align'.
7513 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
7515 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7517 * gdbtypes.c (type_align): A struct with no non-static fields also
7520 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7522 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
7524 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
7526 (riscv_struct_info::analyse): New implementation using new
7527 analyse_inner member function.
7528 (riscv_struct_info::field_offset): New member function.
7529 (riscv_struct_info::m_offsets): New member variable.
7530 (riscv_struct_info::analyse_inner): New private member function,
7531 takes the old implementation of riscv_struct_info::analyse but
7532 extended to track field offsets.
7533 (riscv_call_arg_struct): Update the struct folding special cases
7534 to handle cases where empty C++ structs, which are non-zero
7536 (riscv_arg_location): Initialise the length of each location, a
7537 non-zero length now indicates the location is in use.
7538 (riscv_push_dummy_call): Allow for the first location having a
7539 non-zero offset when setting up arguments.
7540 (riscv_return_value): Likewise, but for return values.
7542 2019-04-11 Tom Tromey <tromey@adacore.com>
7544 * utils.c (internal_vproblem): Make "msg" const.
7546 2019-04-11 Alan Hayward <alan.hayward@arm.com>
7548 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
7549 * trad-frame.c (trad_frame_reset_saved_regs): New function.
7550 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
7551 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
7553 2019-04-10 Kevin Buettner <kevinb@redhat.com>
7555 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
7557 (fill_gregset): Call amd64_linux_collect_native_gregset instead
7558 of amd64_collect_native_gregset.
7559 (amd64_linux_nat_target::store_registers): Likewise.
7561 2019-04-10 Tom Tromey <tom@tromey.com>
7563 * symtab.c (lookup_global_symbol_from_objfile)
7564 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
7565 * objfiles.h (class separate_debug_iterator): New.
7566 (class separate_debug_range): New.
7567 (struct objfile) <separate_debug_objfiles>: New method.
7568 (objfile_separate_debug_iterate): Don't declare.
7569 * objfiles.c (separate_debug_iterator::operator++): Rename from
7570 objfile_separate_debug_iterate.
7571 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
7573 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
7576 2019-04-10 Tom Tromey <tom@tromey.com>
7578 * symfile.c (reread_symbols): Remove old comment.
7579 * objfiles.c (free_all_objfiles): Fix a typo.
7581 2019-04-10 Tom Tromey <tom@tromey.com>
7583 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
7584 * minsyms.c (lookup_minimal_symbol): Use foreach.
7585 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7586 (lookup_minimal_symbol_solib_trampoline): Likewise.
7587 * symfile.c (reread_symbols): Use foreach.
7589 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
7590 Tom Tromey <tromey@adacore.com>
7593 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
7594 (rust_lex_int_test): Change "value" to be LONGEST.
7595 (rust_lex_tests): Add test for long integer literal.
7597 2019-04-09 Tom Tromey <tromey@adacore.com>
7599 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
7601 (extended_remote_target::attach): Update.
7602 (remote_target::remote_notice_new_inferior): Update.
7603 (remote_target::add_current_inferior_and_thread): Update.
7604 * inferior.c (exit_inferior_1): Use "false".
7605 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
7607 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
7609 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
7610 the "start" command.
7612 2019-04-08 Kevin Buettner <kevinb@redhat.com>
7614 * python/py-inferior.c (infpy_thread_from_thread_handle):
7615 Adjust comments to reflect renaming of thread_from_thread_handle
7616 to thread_from_handle. Adjust keywords. Fix type error message.
7617 (inferior_object_methods): Add thread_from_handle. Retain
7618 thread_from_thread_handle, but mark it as deprecated.
7620 2019-04-08 Kevin Buettner <kevinb@redhat.com>
7622 * gdbthread.h (find_thread_by_handle): Revise declaration.
7623 * thread.c (find_thread_by_handle): Likewise. Adjust
7625 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
7626 support for buffer objects as handles.
7628 2019-04-08 Kevin Buettner <kevinb@redhat.com>
7630 * python/py-infthread.c (thpy_thread_handle): New function.
7631 (thread_object_methods): Register thpy_thread_handle.
7633 2019-04-08 Kevin Buettner <kevinb@redhat.com>
7635 * gdbthread.h (thread_to_thread_handle): Declare.
7636 * thread.c (gdbtypes.h): Include.
7637 (thread_to_thread_handle): New function.
7639 * target.h (struct target_ops): Add thread_info_to_thread_handle.
7640 (target_thread_info_to_thread_handle): Declare.
7641 * target.c (target_thread_info_to_thread_handle): New function.
7642 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
7643 * target-delegates.c: Regenerate.
7645 * linux-thread-db.c (class thread_db_target): Add method
7646 thread_info_to_thread_handle.
7647 (thread_db_target::thread_info_to_thread_handle): Define.
7648 * remote.c (class remote_target): Add new method
7649 thread_info_to_thread_handle.
7650 (remote_target::thread_info_to_thread_handle): Define.
7652 2019-04-08 Pedro Alves <palves@redhat.com>
7654 * common/common-exceptions.c (throw_exception): Don't create
7655 named object to throw; throw directly.
7656 (throw_it): Likewise. Don't initialize gdb_exception::message
7657 here, with new; pass FMT and AP to the ctor instead.
7658 * common/common-exceptions.h: Include <string>.
7659 (gdb_exception::gdb_exception(enum return_reason, enum errors,
7660 const char *, va_list)): New ctor. Use std::make_shared.
7661 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
7663 (gdb_exception_error::gdb_exception_error(enum errors, const char
7665 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
7667 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
7669 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
7670 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
7673 2019-04-08 Tom Tromey <tom@tromey.com>
7675 * valops.c (value_rtti_indirect_type): Replace throw_exception
7677 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
7679 * thread.c (thr_try_catch_cmd): Replace throw_exception with
7681 * target.c (target_translate_tls_address): Replace throw_exception
7683 * stack.c (frame_apply_command_count): Replace throw_exception
7685 * solib-spu.c (append_ocl_sos): Replace throw_exception with
7687 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
7689 * rs6000-tdep.c (rs6000_frame_cache)
7690 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
7691 * remote.c: Replace throw_exception with throw.
7692 * record-full.c (record_full_message, record_full_wait_1)
7693 (record_full_restore): Replace throw_exception with throw.
7695 (get_thread_current_frame_id, record_btrace_start_replaying)
7696 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
7697 (cmd_record_btrace_start): Replace throw_exception with throw.
7698 * parse.c (parse_exp_in_context_1): Replace throw_exception with
7700 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
7701 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
7703 (find_linespec_symbols): Replace throw_exception with throw.
7704 * infrun.c (displaced_step_prepare, resume): Replace
7705 throw_exception with throw.
7706 * infcmd.c (post_create_inferior): Replace throw_exception with
7708 * inf-loop.c (inferior_event_handler): Replace throw_exception
7710 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
7711 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
7712 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
7713 (get_prev_frame_always, get_frame_pc_if_available)
7714 (get_frame_address_in_block_if_available, get_frame_language):
7715 Replace throw_exception with throw.
7716 * frame-unwind.c (frame_unwind_try_unwinder): Replace
7717 throw_exception with throw.
7718 * eval.c (fetch_subexp_value, evaluate_var_value)
7719 (evaluate_funcall, evaluate_subexp_standard): Replace
7720 throw_exception with throw.
7721 * dwarf2loc.c (call_site_find_chain)
7722 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
7723 Replace throw_exception with throw.
7724 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
7726 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
7728 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
7729 * completer.c (complete_line_internal): Replace throw_exception
7731 * compile/compile-object-run.c (compile_object_run): Replace
7732 throw_exception with throw.
7733 * cli/cli-script.c (process_next_line): Replace throw_exception
7735 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
7736 (btrace_enable, btrace_maint_update_pt_packets): Replace
7737 throw_exception with throw.
7738 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
7739 throw_exception with throw.
7740 * break-catch-throw.c (re_set_exception_catchpoint): Replace
7741 throw_exception with throw.
7742 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
7743 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
7744 * aarch64-tdep.c (aarch64_make_prologue_cache)
7745 (aarch64_make_stub_cache): Replace throw_exception with throw.
7747 2019-04-08 Tom Tromey <tom@tromey.com>
7749 * common/common-exceptions.c (throw_exception): Rename from
7750 throw_exception_cxx. Remove old copy. Make argument const.
7751 (throw_it): Create and throw exception objects directly.
7752 * common/common-exceptions.h (throw_exception): Make argument
7754 (struct gdb_exception_error): Add constructor.
7755 (struct gdb_exception_quit): Add constructor.
7757 2019-04-08 Tom Tromey <tom@tromey.com>
7759 * common/common-exceptions.h (exception_rethrow): Don't declare.
7760 (TRY_SJLJ): Update comment.
7761 (TRY, CATCH, END_CATCH): Remove.
7762 * common/common-exceptions.c (exception_rethrow): Remove.
7764 2019-04-08 Tom Tromey <tom@tromey.com>
7766 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
7768 (gdb_exception_error): Rename from
7769 gdb_exception_RETURN_MASK_ERROR.
7770 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
7771 (gdb_quit_bad_alloc): Update.
7772 * aarch64-tdep.c: Update.
7773 * ada-lang.c: Update.
7774 * ada-typeprint.c: Update.
7775 * ada-valprint.c: Update.
7776 * amd64-tdep.c: Update.
7777 * arch-utils.c: Update.
7778 * break-catch-throw.c: Update.
7779 * breakpoint.c: Update.
7781 * c-varobj.c: Update.
7782 * cli/cli-cmds.c: Update.
7783 * cli/cli-interp.c: Update.
7784 * cli/cli-script.c: Update.
7785 * common/common-exceptions.c: Update.
7786 * common/new-op.c: Update.
7787 * common/selftest.c: Update.
7788 * compile/compile-c-symbols.c: Update.
7789 * compile/compile-cplus-symbols.c: Update.
7790 * compile/compile-object-load.c: Update.
7791 * compile/compile-object-run.c: Update.
7792 * completer.c: Update.
7793 * corelow.c: Update.
7795 * cp-support.c: Update.
7796 * cp-valprint.c: Update.
7797 * darwin-nat.c: Update.
7798 * disasm-selftests.c: Update.
7799 * dtrace-probe.c: Update.
7800 * dwarf-index-cache.c: Update.
7801 * dwarf-index-write.c: Update.
7802 * dwarf2-frame-tailcall.c: Update.
7803 * dwarf2-frame.c: Update.
7804 * dwarf2loc.c: Update.
7805 * dwarf2read.c: Update.
7807 * event-loop.c: Update.
7808 * event-top.c: Update.
7810 * f-valprint.c: Update.
7811 * fbsd-tdep.c: Update.
7812 * frame-unwind.c: Update.
7814 * gdbtypes.c: Update.
7815 * gnu-v3-abi.c: Update.
7816 * guile/guile-internal.h: Update.
7817 * guile/scm-block.c: Update.
7818 * guile/scm-breakpoint.c: Update.
7819 * guile/scm-cmd.c: Update.
7820 * guile/scm-disasm.c: Update.
7821 * guile/scm-frame.c: Update.
7822 * guile/scm-lazy-string.c: Update.
7823 * guile/scm-math.c: Update.
7824 * guile/scm-param.c: Update.
7825 * guile/scm-ports.c: Update.
7826 * guile/scm-pretty-print.c: Update.
7827 * guile/scm-symbol.c: Update.
7828 * guile/scm-symtab.c: Update.
7829 * guile/scm-type.c: Update.
7830 * guile/scm-value.c: Update.
7831 * i386-linux-tdep.c: Update.
7832 * i386-tdep.c: Update.
7833 * inf-loop.c: Update.
7834 * infcall.c: Update.
7838 * language.c: Update.
7839 * linespec.c: Update.
7840 * linux-fork.c: Update.
7841 * linux-nat.c: Update.
7842 * linux-tdep.c: Update.
7843 * linux-thread-db.c: Update.
7845 * mi/mi-cmd-break.c: Update.
7846 * mi/mi-cmd-stack.c: Update.
7847 * mi/mi-interp.c: Update.
7848 * mi/mi-main.c: Update.
7849 * objc-lang.c: Update.
7850 * p-valprint.c: Update.
7852 * ppc-linux-tdep.c: Update.
7853 * printcmd.c: Update.
7854 * python/py-arch.c: Update.
7855 * python/py-breakpoint.c: Update.
7856 * python/py-cmd.c: Update.
7857 * python/py-finishbreakpoint.c: Update.
7858 * python/py-frame.c: Update.
7859 * python/py-framefilter.c: Update.
7860 * python/py-gdb-readline.c: Update.
7861 * python/py-inferior.c: Update.
7862 * python/py-infthread.c: Update.
7863 * python/py-lazy-string.c: Update.
7864 * python/py-linetable.c: Update.
7865 * python/py-objfile.c: Update.
7866 * python/py-param.c: Update.
7867 * python/py-prettyprint.c: Update.
7868 * python/py-progspace.c: Update.
7869 * python/py-record-btrace.c: Update.
7870 * python/py-record.c: Update.
7871 * python/py-symbol.c: Update.
7872 * python/py-type.c: Update.
7873 * python/py-unwind.c: Update.
7874 * python/py-utils.c: Update.
7875 * python/py-value.c: Update.
7876 * python/python.c: Update.
7877 * record-btrace.c: Update.
7878 * record-full.c: Update.
7879 * remote-fileio.c: Update.
7881 * riscv-tdep.c: Update.
7882 * rs6000-aix-tdep.c: Update.
7883 * rs6000-tdep.c: Update.
7884 * rust-exp.y: Update.
7885 * rust-lang.c: Update.
7886 * s390-tdep.c: Update.
7887 * selftest-arch.c: Update.
7888 * solib-dsbt.c: Update.
7889 * solib-frv.c: Update.
7890 * solib-spu.c: Update.
7891 * solib-svr4.c: Update.
7893 * sparc64-linux-tdep.c: Update.
7895 * symfile-mem.c: Update.
7896 * symmisc.c: Update.
7900 * tracefile-tfile.c: Update.
7901 * tui/tui.c: Update.
7902 * typeprint.c: Update.
7903 * unittests/cli-utils-selftests.c: Update.
7904 * unittests/parse-connection-spec-selftests.c: Update.
7906 * valprint.c: Update.
7909 * windows-nat.c: Update.
7910 * x86-linux-nat.c: Update.
7911 * xml-support.c: Update.
7913 2019-04-08 Tom Tromey <tom@tromey.com>
7915 * xml-support.c: Use C++ exception handling.
7916 * x86-linux-nat.c: Use C++ exception handling.
7917 * windows-nat.c: Use C++ exception handling.
7918 * varobj.c: Use C++ exception handling.
7919 * value.c: Use C++ exception handling.
7920 * valprint.c: Use C++ exception handling.
7921 * valops.c: Use C++ exception handling.
7922 * unittests/parse-connection-spec-selftests.c: Use C++ exception
7924 * unittests/cli-utils-selftests.c: Use C++ exception handling.
7925 * typeprint.c: Use C++ exception handling.
7926 * tui/tui.c: Use C++ exception handling.
7927 * tracefile-tfile.c: Use C++ exception handling.
7928 * top.c: Use C++ exception handling.
7929 * thread.c: Use C++ exception handling.
7930 * target.c: Use C++ exception handling.
7931 * symmisc.c: Use C++ exception handling.
7932 * symfile-mem.c: Use C++ exception handling.
7933 * stack.c: Use C++ exception handling.
7934 * sparc64-linux-tdep.c: Use C++ exception handling.
7935 * solib.c: Use C++ exception handling.
7936 * solib-svr4.c: Use C++ exception handling.
7937 * solib-spu.c: Use C++ exception handling.
7938 * solib-frv.c: Use C++ exception handling.
7939 * solib-dsbt.c: Use C++ exception handling.
7940 * selftest-arch.c: Use C++ exception handling.
7941 * s390-tdep.c: Use C++ exception handling.
7942 * rust-lang.c: Use C++ exception handling.
7943 * rust-exp.y: Use C++ exception handling.
7944 * rs6000-tdep.c: Use C++ exception handling.
7945 * rs6000-aix-tdep.c: Use C++ exception handling.
7946 * riscv-tdep.c: Use C++ exception handling.
7947 * remote.c: Use C++ exception handling.
7948 * remote-fileio.c: Use C++ exception handling.
7949 * record-full.c: Use C++ exception handling.
7950 * record-btrace.c: Use C++ exception handling.
7951 * python/python.c: Use C++ exception handling.
7952 * python/py-value.c: Use C++ exception handling.
7953 * python/py-utils.c: Use C++ exception handling.
7954 * python/py-unwind.c: Use C++ exception handling.
7955 * python/py-type.c: Use C++ exception handling.
7956 * python/py-symbol.c: Use C++ exception handling.
7957 * python/py-record.c: Use C++ exception handling.
7958 * python/py-record-btrace.c: Use C++ exception handling.
7959 * python/py-progspace.c: Use C++ exception handling.
7960 * python/py-prettyprint.c: Use C++ exception handling.
7961 * python/py-param.c: Use C++ exception handling.
7962 * python/py-objfile.c: Use C++ exception handling.
7963 * python/py-linetable.c: Use C++ exception handling.
7964 * python/py-lazy-string.c: Use C++ exception handling.
7965 * python/py-infthread.c: Use C++ exception handling.
7966 * python/py-inferior.c: Use C++ exception handling.
7967 * python/py-gdb-readline.c: Use C++ exception handling.
7968 * python/py-framefilter.c: Use C++ exception handling.
7969 * python/py-frame.c: Use C++ exception handling.
7970 * python/py-finishbreakpoint.c: Use C++ exception handling.
7971 * python/py-cmd.c: Use C++ exception handling.
7972 * python/py-breakpoint.c: Use C++ exception handling.
7973 * python/py-arch.c: Use C++ exception handling.
7974 * printcmd.c: Use C++ exception handling.
7975 * ppc-linux-tdep.c: Use C++ exception handling.
7976 * parse.c: Use C++ exception handling.
7977 * p-valprint.c: Use C++ exception handling.
7978 * objc-lang.c: Use C++ exception handling.
7979 * mi/mi-main.c: Use C++ exception handling.
7980 * mi/mi-interp.c: Use C++ exception handling.
7981 * mi/mi-cmd-stack.c: Use C++ exception handling.
7982 * mi/mi-cmd-break.c: Use C++ exception handling.
7983 * main.c: Use C++ exception handling.
7984 * linux-thread-db.c: Use C++ exception handling.
7985 * linux-tdep.c: Use C++ exception handling.
7986 * linux-nat.c: Use C++ exception handling.
7987 * linux-fork.c: Use C++ exception handling.
7988 * linespec.c: Use C++ exception handling.
7989 * language.c: Use C++ exception handling.
7990 * jit.c: Use C++ exception handling.
7991 * infrun.c: Use C++ exception handling.
7992 * infcmd.c: Use C++ exception handling.
7993 * infcall.c: Use C++ exception handling.
7994 * inf-loop.c: Use C++ exception handling.
7995 * i386-tdep.c: Use C++ exception handling.
7996 * i386-linux-tdep.c: Use C++ exception handling.
7997 * guile/scm-value.c: Use C++ exception handling.
7998 * guile/scm-type.c: Use C++ exception handling.
7999 * guile/scm-symtab.c: Use C++ exception handling.
8000 * guile/scm-symbol.c: Use C++ exception handling.
8001 * guile/scm-pretty-print.c: Use C++ exception handling.
8002 * guile/scm-ports.c: Use C++ exception handling.
8003 * guile/scm-param.c: Use C++ exception handling.
8004 * guile/scm-math.c: Use C++ exception handling.
8005 * guile/scm-lazy-string.c: Use C++ exception handling.
8006 * guile/scm-frame.c: Use C++ exception handling.
8007 * guile/scm-disasm.c: Use C++ exception handling.
8008 * guile/scm-cmd.c: Use C++ exception handling.
8009 * guile/scm-breakpoint.c: Use C++ exception handling.
8010 * guile/scm-block.c: Use C++ exception handling.
8011 * guile/guile-internal.h: Use C++ exception handling.
8012 * gnu-v3-abi.c: Use C++ exception handling.
8013 * gdbtypes.c: Use C++ exception handling.
8014 * frame.c: Use C++ exception handling.
8015 * frame-unwind.c: Use C++ exception handling.
8016 * fbsd-tdep.c: Use C++ exception handling.
8017 * f-valprint.c: Use C++ exception handling.
8018 * exec.c: Use C++ exception handling.
8019 * event-top.c: Use C++ exception handling.
8020 * event-loop.c: Use C++ exception handling.
8021 * eval.c: Use C++ exception handling.
8022 * dwarf2read.c: Use C++ exception handling.
8023 * dwarf2loc.c: Use C++ exception handling.
8024 * dwarf2-frame.c: Use C++ exception handling.
8025 * dwarf2-frame-tailcall.c: Use C++ exception handling.
8026 * dwarf-index-write.c: Use C++ exception handling.
8027 * dwarf-index-cache.c: Use C++ exception handling.
8028 * dtrace-probe.c: Use C++ exception handling.
8029 * disasm-selftests.c: Use C++ exception handling.
8030 * darwin-nat.c: Use C++ exception handling.
8031 * cp-valprint.c: Use C++ exception handling.
8032 * cp-support.c: Use C++ exception handling.
8033 * cp-abi.c: Use C++ exception handling.
8034 * corelow.c: Use C++ exception handling.
8035 * completer.c: Use C++ exception handling.
8036 * compile/compile-object-run.c: Use C++ exception handling.
8037 * compile/compile-object-load.c: Use C++ exception handling.
8038 * compile/compile-cplus-symbols.c: Use C++ exception handling.
8039 * compile/compile-c-symbols.c: Use C++ exception handling.
8040 * common/selftest.c: Use C++ exception handling.
8041 * common/new-op.c: Use C++ exception handling.
8042 * cli/cli-script.c: Use C++ exception handling.
8043 * cli/cli-interp.c: Use C++ exception handling.
8044 * cli/cli-cmds.c: Use C++ exception handling.
8045 * c-varobj.c: Use C++ exception handling.
8046 * btrace.c: Use C++ exception handling.
8047 * breakpoint.c: Use C++ exception handling.
8048 * break-catch-throw.c: Use C++ exception handling.
8049 * arch-utils.c: Use C++ exception handling.
8050 * amd64-tdep.c: Use C++ exception handling.
8051 * ada-valprint.c: Use C++ exception handling.
8052 * ada-typeprint.c: Use C++ exception handling.
8053 * ada-lang.c: Use C++ exception handling.
8054 * aarch64-tdep.c: Use C++ exception handling.
8056 2019-04-08 Tom Tromey <tom@tromey.com>
8058 * xml-support.c (gdb_xml_parser::parse): Update.
8059 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
8060 * value.c (show_convenience): Update.
8061 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
8062 (test_parse_flags_qcs): Update.
8063 * thread.c (thr_try_catch_cmd): Update.
8064 * target.c (target_translate_tls_address): Update.
8065 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
8066 (info_frame_command_core, frame_apply_command_count): Update.
8067 * rust-exp.y (rust_lex_exception_test): Update.
8068 * riscv-tdep.c (riscv_print_one_register_info): Update.
8069 * remote.c (remote_target::enable_btrace): Update.
8070 * record-btrace.c (record_btrace_enable_warn): Update.
8071 * python/py-utils.c (gdbpy_convert_exception): Update.
8072 * printcmd.c (do_one_display, print_variable_and_value): Update.
8073 * mi/mi-main.c (mi_print_exception): Update.
8074 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
8075 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
8076 * linux-nat.c (linux_nat_target::attach): Update.
8077 * linux-fork.c (class scoped_switch_fork_info): Update.
8078 * infrun.c (displaced_step_prepare): Update.
8079 * infcall.c (call_function_by_hand_dummy): Update.
8080 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
8081 * gnu-v3-abi.c (print_one_vtable): Update.
8082 * frame.c (get_prev_frame_always): Update.
8083 * f-valprint.c (info_common_command_for_block): Update.
8084 * exec.c (try_open_exec_file): Update.
8085 * exceptions.c (print_exception, exception_print)
8086 (exception_fprintf, exception_print_same): Update.
8087 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
8088 * dwarf-index-cache.c (index_cache::store)
8089 (index_cache::lookup_gdb_index): Update.
8090 * darwin-nat.c (maybe_cache_shell): Update.
8091 * cp-valprint.c (cp_print_value_fields): Update.
8092 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
8093 (gcc_cplus_symbol_address): Update.
8094 * compile/compile-c-symbols.c (gcc_convert_symbol)
8095 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
8096 * common/selftest.c: Update.
8097 * common/common-exceptions.h (struct gdb_exception) <message>: Now
8099 (exception_try_scope_entry, exception_try_scope_exit): Don't
8101 (struct exception_try_scope): Remove.
8102 (TRY): Don't use exception_try_scope.
8103 (struct gdb_exception): Add constructor, operator=.
8105 (struct gdb_exception_RETURN_MASK_ALL)
8106 (struct gdb_exception_RETURN_MASK_ERROR)
8107 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
8108 (struct gdb_quit_bad_alloc): Update.
8109 * common/common-exceptions.c (exception_none): Change
8111 (struct catcher) <state, exception>: Initialize inline.
8112 <prev>: Remove member.
8113 (current_catcher): Remove.
8114 (catchers): New global.
8115 (exceptions_state_mc_init): Simplify.
8116 (catcher_pop): Remove.
8117 (exceptions_state_mc, exceptions_state_mc_catch): Update.
8118 (try_scope_depth, exception_try_scope_entry)
8119 (exception_try_scope_exit): Remove.
8120 (throw_exception_sjlj): Update.
8121 (exception_messages, exception_messages_size): Remove.
8122 (throw_it): Simplify.
8123 (gdb_exception_sliced_copy): Remove.
8124 (throw_exception_cxx): Update.
8125 * cli/cli-script.c (script_from_file): Update.
8126 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
8128 * ada-valprint.c (ada_val_print): Update.
8129 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
8130 (create_excep_cond_exprs): Update.
8132 2019-04-08 Tom Tromey <tom@tromey.com>
8134 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
8135 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
8136 (TRY, CATCH, END_CATCH): Remove some definitions.
8137 * common/common-exceptions.c: Don't use GDB_XCPT.
8138 (catcher_list_size): Remove.
8139 (throw_exception, throw_it): Simplify.
8141 2019-04-05 Tom Tromey <tom@tromey.com>
8143 Revert the header-sorting patch.
8144 * ft32-tdep.c: Revert.
8145 * frv-tdep.c: Revert.
8146 * frv-linux-tdep.c: Revert.
8148 * frame-unwind.c: Revert.
8149 * frame-base.c: Revert.
8150 * fork-child.c: Revert.
8151 * findvar.c: Revert.
8152 * findcmd.c: Revert.
8153 * filesystem.c: Revert.
8154 * filename-seen-cache.h: Revert.
8155 * filename-seen-cache.c: Revert.
8156 * fbsd-tdep.c: Revert.
8157 * fbsd-nat.h: Revert.
8158 * fbsd-nat.c: Revert.
8159 * f-valprint.c: Revert.
8160 * f-typeprint.c: Revert.
8162 * extension.h: Revert.
8163 * extension.c: Revert.
8164 * extension-priv.h: Revert.
8165 * expprint.c: Revert.
8168 * exceptions.c: Revert.
8169 * event-top.c: Revert.
8170 * event-loop.c: Revert.
8172 * elfread.c: Revert.
8173 * dwarf2read.h: Revert.
8174 * dwarf2read.c: Revert.
8175 * dwarf2loc.c: Revert.
8176 * dwarf2expr.h: Revert.
8177 * dwarf2expr.c: Revert.
8178 * dwarf2-frame.c: Revert.
8179 * dwarf2-frame-tailcall.c: Revert.
8180 * dwarf-index-write.h: Revert.
8181 * dwarf-index-write.c: Revert.
8182 * dwarf-index-common.c: Revert.
8183 * dwarf-index-cache.h: Revert.
8184 * dwarf-index-cache.c: Revert.
8185 * dummy-frame.c: Revert.
8186 * dtrace-probe.c: Revert.
8189 * disasm-selftests.c: Revert.
8190 * dictionary.c: Revert.
8191 * dicos-tdep.c: Revert.
8192 * demangle.c: Revert.
8195 * darwin-nat.h: Revert.
8196 * darwin-nat.c: Revert.
8197 * darwin-nat-info.c: Revert.
8198 * d-valprint.c: Revert.
8199 * d-namespace.c: Revert.
8202 * csky-tdep.c: Revert.
8203 * csky-linux-tdep.c: Revert.
8204 * cris-tdep.c: Revert.
8205 * cris-linux-tdep.c: Revert.
8206 * cp-valprint.c: Revert.
8207 * cp-support.c: Revert.
8208 * cp-namespace.c: Revert.
8210 * corelow.c: Revert.
8211 * corefile.c: Revert.
8212 * continuations.c: Revert.
8213 * completer.h: Revert.
8214 * completer.c: Revert.
8215 * complaints.c: Revert.
8216 * coffread.c: Revert.
8217 * coff-pe-read.c: Revert.
8218 * cli-out.h: Revert.
8219 * cli-out.c: Revert.
8220 * charset.c: Revert.
8221 * c-varobj.c: Revert.
8222 * c-valprint.c: Revert.
8223 * c-typeprint.c: Revert.
8225 * buildsym.c: Revert.
8226 * buildsym-legacy.c: Revert.
8227 * build-id.h: Revert.
8228 * build-id.c: Revert.
8230 * bsd-uthread.c: Revert.
8231 * breakpoint.h: Revert.
8232 * breakpoint.c: Revert.
8233 * break-catch-throw.c: Revert.
8234 * break-catch-syscall.c: Revert.
8235 * break-catch-sig.c: Revert.
8236 * blockframe.c: Revert.
8238 * bfin-tdep.c: Revert.
8239 * bfin-linux-tdep.c: Revert.
8240 * bfd-target.c: Revert.
8242 * ax-general.c: Revert.
8245 * avr-tdep.c: Revert.
8247 * auto-load.c: Revert.
8248 * arm-wince-tdep.c: Revert.
8249 * arm-tdep.c: Revert.
8250 * arm-symbian-tdep.c: Revert.
8251 * arm-pikeos-tdep.c: Revert.
8252 * arm-obsd-tdep.c: Revert.
8253 * arm-nbsd-tdep.c: Revert.
8254 * arm-nbsd-nat.c: Revert.
8255 * arm-linux-tdep.c: Revert.
8256 * arm-linux-nat.c: Revert.
8257 * arm-fbsd-tdep.c: Revert.
8258 * arm-fbsd-nat.c: Revert.
8259 * arm-bsd-tdep.c: Revert.
8260 * arch-utils.c: Revert.
8261 * arc-tdep.c: Revert.
8262 * arc-newlib-tdep.c: Revert.
8263 * annotate.h: Revert.
8264 * annotate.c: Revert.
8265 * amd64-windows-tdep.c: Revert.
8266 * amd64-windows-nat.c: Revert.
8267 * amd64-tdep.c: Revert.
8268 * amd64-sol2-tdep.c: Revert.
8269 * amd64-obsd-tdep.c: Revert.
8270 * amd64-obsd-nat.c: Revert.
8271 * amd64-nbsd-tdep.c: Revert.
8272 * amd64-nbsd-nat.c: Revert.
8273 * amd64-nat.c: Revert.
8274 * amd64-linux-tdep.c: Revert.
8275 * amd64-linux-nat.c: Revert.
8276 * amd64-fbsd-tdep.c: Revert.
8277 * amd64-fbsd-nat.c: Revert.
8278 * amd64-dicos-tdep.c: Revert.
8279 * amd64-darwin-tdep.c: Revert.
8280 * amd64-bsd-nat.c: Revert.
8281 * alpha-tdep.c: Revert.
8282 * alpha-obsd-tdep.c: Revert.
8283 * alpha-nbsd-tdep.c: Revert.
8284 * alpha-mdebug-tdep.c: Revert.
8285 * alpha-linux-tdep.c: Revert.
8286 * alpha-linux-nat.c: Revert.
8287 * alpha-bsd-tdep.c: Revert.
8288 * alpha-bsd-nat.c: Revert.
8289 * aix-thread.c: Revert.
8291 * addrmap.c: Revert.
8292 * ada-varobj.c: Revert.
8293 * ada-valprint.c: Revert.
8294 * ada-typeprint.c: Revert.
8295 * ada-tasks.c: Revert.
8296 * ada-lang.c: Revert.
8297 * aarch64-tdep.c: Revert.
8298 * aarch64-ravenscar-thread.c: Revert.
8299 * aarch64-newlib-tdep.c: Revert.
8300 * aarch64-linux-tdep.c: Revert.
8301 * aarch64-linux-nat.c: Revert.
8302 * aarch64-fbsd-tdep.c: Revert.
8303 * aarch64-fbsd-nat.c: Revert.
8304 * aarch32-linux-nat.c: Revert.
8306 2019-04-05 Tom Tromey <tom@tromey.com>
8308 * ft32-tdep.c: Sort headers.
8309 * frv-tdep.c: Sort headers.
8310 * frv-linux-tdep.c: Sort headers.
8311 * frame.c: Sort headers.
8312 * frame-unwind.c: Sort headers.
8313 * frame-base.c: Sort headers.
8314 * fork-child.c: Sort headers.
8315 * findvar.c: Sort headers.
8316 * findcmd.c: Sort headers.
8317 * filesystem.c: Sort headers.
8318 * filename-seen-cache.h: Sort headers.
8319 * filename-seen-cache.c: Sort headers.
8320 * fbsd-tdep.c: Sort headers.
8321 * fbsd-nat.h: Sort headers.
8322 * fbsd-nat.c: Sort headers.
8323 * f-valprint.c: Sort headers.
8324 * f-typeprint.c: Sort headers.
8325 * f-lang.c: Sort headers.
8326 * extension.h: Sort headers.
8327 * extension.c: Sort headers.
8328 * extension-priv.h: Sort headers.
8329 * expprint.c: Sort headers.
8330 * exec.h: Sort headers.
8331 * exec.c: Sort headers.
8332 * exceptions.c: Sort headers.
8333 * event-top.c: Sort headers.
8334 * event-loop.c: Sort headers.
8335 * eval.c: Sort headers.
8336 * elfread.c: Sort headers.
8337 * dwarf2read.h: Sort headers.
8338 * dwarf2read.c: Sort headers.
8339 * dwarf2loc.c: Sort headers.
8340 * dwarf2expr.h: Sort headers.
8341 * dwarf2expr.c: Sort headers.
8342 * dwarf2-frame.c: Sort headers.
8343 * dwarf2-frame-tailcall.c: Sort headers.
8344 * dwarf-index-write.h: Sort headers.
8345 * dwarf-index-write.c: Sort headers.
8346 * dwarf-index-common.c: Sort headers.
8347 * dwarf-index-cache.h: Sort headers.
8348 * dwarf-index-cache.c: Sort headers.
8349 * dummy-frame.c: Sort headers.
8350 * dtrace-probe.c: Sort headers.
8351 * disasm.h: Sort headers.
8352 * disasm.c: Sort headers.
8353 * disasm-selftests.c: Sort headers.
8354 * dictionary.c: Sort headers.
8355 * dicos-tdep.c: Sort headers.
8356 * demangle.c: Sort headers.
8357 * dcache.h: Sort headers.
8358 * dcache.c: Sort headers.
8359 * darwin-nat.h: Sort headers.
8360 * darwin-nat.c: Sort headers.
8361 * darwin-nat-info.c: Sort headers.
8362 * d-valprint.c: Sort headers.
8363 * d-namespace.c: Sort headers.
8364 * d-lang.c: Sort headers.
8365 * ctf.c: Sort headers.
8366 * csky-tdep.c: Sort headers.
8367 * csky-linux-tdep.c: Sort headers.
8368 * cris-tdep.c: Sort headers.
8369 * cris-linux-tdep.c: Sort headers.
8370 * cp-valprint.c: Sort headers.
8371 * cp-support.c: Sort headers.
8372 * cp-namespace.c: Sort headers.
8373 * cp-abi.c: Sort headers.
8374 * corelow.c: Sort headers.
8375 * corefile.c: Sort headers.
8376 * continuations.c: Sort headers.
8377 * completer.h: Sort headers.
8378 * completer.c: Sort headers.
8379 * complaints.c: Sort headers.
8380 * coffread.c: Sort headers.
8381 * coff-pe-read.c: Sort headers.
8382 * cli-out.h: Sort headers.
8383 * cli-out.c: Sort headers.
8384 * charset.c: Sort headers.
8385 * c-varobj.c: Sort headers.
8386 * c-valprint.c: Sort headers.
8387 * c-typeprint.c: Sort headers.
8388 * c-lang.c: Sort headers.
8389 * buildsym.c: Sort headers.
8390 * buildsym-legacy.c: Sort headers.
8391 * build-id.h: Sort headers.
8392 * build-id.c: Sort headers.
8393 * btrace.c: Sort headers.
8394 * bsd-uthread.c: Sort headers.
8395 * breakpoint.h: Sort headers.
8396 * breakpoint.c: Sort headers.
8397 * break-catch-throw.c: Sort headers.
8398 * break-catch-syscall.c: Sort headers.
8399 * break-catch-sig.c: Sort headers.
8400 * blockframe.c: Sort headers.
8401 * block.c: Sort headers.
8402 * bfin-tdep.c: Sort headers.
8403 * bfin-linux-tdep.c: Sort headers.
8404 * bfd-target.c: Sort headers.
8405 * bcache.c: Sort headers.
8406 * ax-general.c: Sort headers.
8407 * ax-gdb.h: Sort headers.
8408 * ax-gdb.c: Sort headers.
8409 * avr-tdep.c: Sort headers.
8410 * auxv.c: Sort headers.
8411 * auto-load.c: Sort headers.
8412 * arm-wince-tdep.c: Sort headers.
8413 * arm-tdep.c: Sort headers.
8414 * arm-symbian-tdep.c: Sort headers.
8415 * arm-pikeos-tdep.c: Sort headers.
8416 * arm-obsd-tdep.c: Sort headers.
8417 * arm-nbsd-tdep.c: Sort headers.
8418 * arm-nbsd-nat.c: Sort headers.
8419 * arm-linux-tdep.c: Sort headers.
8420 * arm-linux-nat.c: Sort headers.
8421 * arm-fbsd-tdep.c: Sort headers.
8422 * arm-fbsd-nat.c: Sort headers.
8423 * arm-bsd-tdep.c: Sort headers.
8424 * arch-utils.c: Sort headers.
8425 * arc-tdep.c: Sort headers.
8426 * arc-newlib-tdep.c: Sort headers.
8427 * annotate.h: Sort headers.
8428 * annotate.c: Sort headers.
8429 * amd64-windows-tdep.c: Sort headers.
8430 * amd64-windows-nat.c: Sort headers.
8431 * amd64-tdep.c: Sort headers.
8432 * amd64-sol2-tdep.c: Sort headers.
8433 * amd64-obsd-tdep.c: Sort headers.
8434 * amd64-obsd-nat.c: Sort headers.
8435 * amd64-nbsd-tdep.c: Sort headers.
8436 * amd64-nbsd-nat.c: Sort headers.
8437 * amd64-nat.c: Sort headers.
8438 * amd64-linux-tdep.c: Sort headers.
8439 * amd64-linux-nat.c: Sort headers.
8440 * amd64-fbsd-tdep.c: Sort headers.
8441 * amd64-fbsd-nat.c: Sort headers.
8442 * amd64-dicos-tdep.c: Sort headers.
8443 * amd64-darwin-tdep.c: Sort headers.
8444 * amd64-bsd-nat.c: Sort headers.
8445 * alpha-tdep.c: Sort headers.
8446 * alpha-obsd-tdep.c: Sort headers.
8447 * alpha-nbsd-tdep.c: Sort headers.
8448 * alpha-mdebug-tdep.c: Sort headers.
8449 * alpha-linux-tdep.c: Sort headers.
8450 * alpha-linux-nat.c: Sort headers.
8451 * alpha-bsd-tdep.c: Sort headers.
8452 * alpha-bsd-nat.c: Sort headers.
8453 * aix-thread.c: Sort headers.
8454 * agent.c: Sort headers.
8455 * addrmap.c: Sort headers.
8456 * ada-varobj.c: Sort headers.
8457 * ada-valprint.c: Sort headers.
8458 * ada-typeprint.c: Sort headers.
8459 * ada-tasks.c: Sort headers.
8460 * ada-lang.c: Sort headers.
8461 * aarch64-tdep.c: Sort headers.
8462 * aarch64-ravenscar-thread.c: Sort headers.
8463 * aarch64-newlib-tdep.c: Sort headers.
8464 * aarch64-linux-tdep.c: Sort headers.
8465 * aarch64-linux-nat.c: Sort headers.
8466 * aarch64-fbsd-tdep.c: Sort headers.
8467 * aarch64-fbsd-nat.c: Sort headers.
8468 * aarch32-linux-nat.c: Sort headers.
8470 2019-04-04 Tom Tromey <tom@tromey.com>
8472 * varobj.c (varobj_create): Update.
8473 * rust-exp.y (struct rust_parser) <update_innermost_block,
8474 lookup_symbol>: New methods.
8475 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
8477 (rust_parser::rust_lookup_type)
8478 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
8479 * printcmd.c (display_command, do_one_display): Update.
8480 * parser-defs.h (struct parser_state) <parser_state>: Add
8481 "tracker" parameter.
8482 (block_tracker): New member.
8483 (class innermost_block_tracker) <innermost_block_tracker>: Add
8485 <reset>: Remove method.
8486 (innermost_block): Don't declare.
8487 (null_post_parser): Update.
8488 * parse.c (innermost_block): Remove global.
8489 (write_dollar_variable): Update.
8490 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
8491 Remove "tracker_types" parameter.
8492 (parse_expression): Add "tracker" parameter.
8493 (parse_expression_for_completion): Update.
8494 (null_post_parser): Add "tracker" parameter.
8495 * p-exp.y: Update rules.
8496 * m2-exp.y: Update rules.
8497 * language.h (struct language_defn) <la_post_parser>: Add
8498 "tracker" parameter.
8499 * go-exp.y: Update rules.
8500 * f-exp.y: Update rules.
8501 * expression.h (parse_expression, parse_exp_1): Add "tracker"
8503 * d-exp.y: Update rules.
8504 * c-exp.y: Update rules.
8505 * breakpoint.c (set_breakpoint_condition): Create an
8506 innermost_block_tracker.
8507 (watch_command_1): Likewise.
8508 * ada-lang.c (resolve): Add "tracker" parameter.
8509 (resolve_subexp): Likewise.
8510 * ada-exp.y (write_var_from_sym): Update.
8512 2019-04-04 Tom Tromey <tom@tromey.com>
8514 * type-stack.h: New file.
8515 * type-stack.c: New file.
8516 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
8518 (insert_into_type_stack, insert_type, push_type, push_type_int)
8519 (insert_type_address_space, pop_type, pop_type_int)
8520 (pop_typelist, pop_type_stack, append_type_stack)
8521 (push_type_stack, get_type_stack, push_typelist)
8522 (follow_type_instance_flags, follow_types): Don't declare.
8523 * parse.c (type_stack): Remove global.
8524 (parse_exp_in_context): Update.
8525 (insert_into_type_stack, insert_type, push_type, push_type_int)
8526 (insert_type_address_space, pop_type, pop_type_int)
8527 (pop_typelist, pop_type_stack, append_type_stack)
8528 (push_type_stack, get_type_stack, push_typelist)
8529 (follow_type_instance_flags, follow_types): Remove (moved to
8531 * f-exp.y (type_stack): New global.
8533 (push_kind_type, f_parse): Update.
8534 * d-exp.y (type_stack): New global.
8537 * c-exp.y (struct c_parse_state) <type_stack>: New member.
8539 * Makefile.in (COMMON_SFILES): Add type-stack.c.
8540 (HFILES_NO_SRCDIR): Add type-stack.h.
8542 2019-04-04 Tom Tromey <tom@tromey.com>
8544 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
8545 (rust_parser::convert_ast_to_expression, rust_parse)
8546 (rust_lex_test_completion, rust_lex_tests): Update.
8547 * parser-defs.h (struct expr_completion_state): New.
8548 (struct parser_state) <parser_state>: Add completion parameter.
8549 <mark_struct_expression, mark_completion_tag>: New methods.
8550 <parse_completion, m_completion_state>: New members.
8551 (prefixify_expression, null_post_parser): Update.
8552 (mark_struct_expression, mark_completion_tag): Don't declare.
8553 * parse.c (parse_completion, expout_last_struct)
8554 (expout_tag_completion_type, expout_completion_name): Remove
8556 (parser_state::mark_struct_expression)
8557 (parser_state::mark_completion_tag): Now methods.
8558 (prefixify_expression): Add last_struct parameter.
8559 (prefixify_subexp): Likewise.
8560 (parse_exp_1): Update.
8561 (parse_exp_in_context): Add cstate parameter. Update.
8562 (parse_expression_for_completion): Create an
8563 expr_completion_state.
8564 (null_post_parser): Add "completion" parameter.
8565 * p-exp.y: Update rules.
8567 * language.h (struct language_defn) <la_post_parser>: Add
8568 "completing" parameter.
8569 * go-exp.y: Update rules.
8570 (lex_one_token): Update.
8571 * expression.h (parse_completion): Don't declare.
8572 * d-exp.y: Update rules.
8573 (lex_one_token): Update rules.
8574 * c-exp.y: Update rules.
8575 (lex_one_token): Update.
8576 * ada-lang.c (resolve): Add "parse_completion" parameter.
8577 (resolve_subexp): Likewise.
8578 (ada_resolve_function): Likewise.
8580 2019-04-04 Tom Tromey <tom@tromey.com>
8582 * parser-defs.h (struct parser_state) <start_arglist,
8583 end_arglist>: New methods.
8584 <arglist_len, m_funcall_chain>: New members.
8585 (arglist_len, start_arglist, end_arglist): Don't declare.
8586 * parse.c (arglist_len, funcall_chain): Remove global.
8587 (start_arglist, end_arglist): Remove functions.
8588 (parse_exp_in_context): Update.
8589 * p-exp.y: Update rules.
8590 * m2-exp.y: Update rules.
8591 * go-exp.y: Update rules.
8592 * f-exp.y: Update rules.
8593 * d-exp.y: Update rules.
8594 * c-exp.y: Update rules.
8596 2019-04-04 Tom Tromey <tom@tromey.com>
8598 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
8599 lex_operator, push_back>: New methods.
8601 (rust_parser::lex_hex, lex_escape): Rename and update.
8602 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
8603 (rust_parser::lex_operator): Rename and update.
8604 (rust_parser::lex_number, rustyylex, rustyyerror)
8605 (rust_lex_test_init, rust_lex_test_sequence)
8606 (rust_lex_test_push_back, rust_lex_tests): Update.
8607 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
8609 <lexptr, prev_lexptr>: New members.
8610 (lexptr, prev_lexptr): Don't declare.
8611 * parse.c (lexptr, prev_lexptr): Remove globals.
8612 (parse_exp_in_context): Update.
8613 * p-exp.y (yylex, yyerror): Update.
8614 * m2-exp.y (parse_number, yylex, yyerror): Update.
8615 * go-exp.y (lex_one_token, yyerror): Update.
8616 * f-exp.y (match_string_literal, yylex, yyerror): Update.
8617 * d-exp.y (lex_one_token, yyerror): Update.
8618 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
8619 (lex_one_token, yyerror): Update.
8620 * ada-lex.l (YY_INPUT): Update.
8621 (rewind_to_char): Update.
8622 * ada-exp.y (yyerror): Update.
8624 2019-04-04 Tom Tromey <tom@tromey.com>
8626 * rust-exp.y (rustyylex, rust_lex_tests): Update.
8627 * parser-defs.h (struct parser_state) <parser_state>: Add new
8629 <comma_terminates>: New member.
8630 (comma_terminates): Don't declare global.
8631 * parse.c (comma_terminates): Remove global.
8632 (parse_exp_in_context): Update.
8633 * p-exp.y (yylex): Update.
8634 * m2-exp.y (yylex): Update.
8635 * go-exp.y (lex_one_token): Update.
8636 * f-exp.y (yylex): Update.
8637 * d-exp.y (lex_one_token): Update.
8638 * c-exp.y (lex_one_token): Update.
8639 * ada-lex.l: Update.
8641 2019-04-04 Tom Tromey <tom@tromey.com>
8643 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
8644 (rustyylex, rust_lex_test_init, rust_lex_test_one)
8645 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
8646 * parser-defs.h (paren_depth): Don't declare.
8647 * parse.c (paren_depth): Remove global.
8648 (parse_exp_in_context): Update.
8649 * p-exp.y (paren_depth): New global.
8650 (pascal_parse): Initialize it.
8651 * m2-exp.y (paren_depth): New global.
8652 (m2_parse): Initialize it.
8653 * go-exp.y (paren_depth): New global.
8654 (go_parse): Initialize it.
8655 * f-exp.y (paren_depth): New global.
8656 (f_parse): Initialize it.
8657 * d-exp.y (paren_depth): New global.
8658 (d_parse): Initialize it.
8659 * c-exp.y (paren_depth): New global.
8660 (c_parse): Initialize it.
8661 * ada-lex.l (paren_depth): New global.
8662 (lexer_init): Initialize it.
8664 2019-04-04 Tom Tromey <tom@tromey.com>
8666 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
8667 (rust_parser::convert_ast_to_type)
8668 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
8669 * parser-defs.h (struct parser_state) <parser_state>: Add
8670 parameters. Initialize new members.
8671 <expression_context_block, expression_context_pc>: New members.
8672 * parse.c (expression_context_block, expression_context_pc):
8674 (parse_exp_in_context): Update.
8675 * p-exp.y: Update all rules.
8677 * m2-exp.y: Update all rules.
8679 * go-exp.y (yylex): Update.
8680 * f-exp.y (yylex): Update.
8681 * d-exp.y: Update all rules.
8683 * c-exp.y: Update all rules.
8684 (lex_one_token, classify_name, yylex, c_parse): Update.
8685 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
8687 2019-04-04 Tom Tromey <tom@tromey.com>
8689 * gdbarch.h, gdbarch.c: Rebuild.
8690 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
8692 (struct stap_parse_info): Replace "parser_state" with
8694 * parser-defs.h (struct expr_builder): Rename from "parser_state".
8695 (parser_state): New class.
8696 * parse.c (expr_builder): Rename.
8697 (expr_builder::release): Rename.
8698 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
8699 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
8700 (write_exp_elt_longcst, write_exp_elt_floatcst)
8701 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
8702 (write_exp_string_vector, write_exp_bitstring)
8703 (write_exp_msymbol, mark_struct_expression)
8704 (write_dollar_variable)
8705 (insert_type_address_space, increase_expout_size): Replace
8706 "parser_state" with "expr_builder".
8707 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
8708 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
8709 "parser_state" with "expr_builder".
8711 2019-04-04 Tom Tromey <tom@tromey.com>
8713 * rust-exp.y: Replace "parse_language" with method call.
8715 (yylex): Replace "parse_language" with method call.
8717 (yylex): Replace "parse_language" with method call.
8718 * go-exp.y (classify_name): Replace "parse_language" with method
8720 * f-exp.y (yylex): Replace "parse_language" with method call.
8721 * d-exp.y (lex_one_token): Replace "parse_language" with method
8724 (lex_one_token, classify_name, yylex): Replace "parse_language"
8726 * ada-exp.y (find_primitive_type, type_char)
8727 (type_system_address): Replace "parse_language" with method call.
8729 2019-04-04 Tom Tromey <tom@tromey.com>
8731 * rust-exp.y: Replace "parse_gdbarch" with method call.
8732 * parse.c (write_dollar_variable, insert_type_address_space):
8733 Replace "parse_gdbarch" with method call.
8734 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
8736 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
8738 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
8739 "parse_gdbarch" with method call.
8740 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
8742 * f-exp.y (parse_type, parse_f_type, yylex): Replace
8743 "parse_gdbarch" with method call.
8744 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
8745 "parse_gdbarch" with method call.
8746 * c-exp.y (parse_type, parse_number, classify_name): Replace
8747 "parse_gdbarch" with method call.
8748 * ada-lex.l: Replace "parse_gdbarch" with method call.
8749 * ada-exp.y (parse_type, find_primitive_type, type_char)
8750 (type_system_address): Replace "parse_gdbarch" with method call.
8752 2019-04-04 Tom Tromey <tom@tromey.com>
8754 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
8755 * stap-probe.c (stap_parse_argument): Update.
8756 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
8757 initial_size parameter.
8758 * rust-exp.y (rust_lex_tests): Update.
8759 * parse.c (parser_state): Update.
8760 (parse_exp_in_context): Update.
8761 * parser-defs.h (struct parser_state) <parser_state>: Remove
8762 "initial_size" parameter.
8764 2019-04-04 Tom Tromey <tom@tromey.com>
8766 * parser-defs.h (increase_expout_size): Don't declare.
8767 * parse.c (increase_expout_size): Now static.
8769 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
8771 * gnu-nat.c (gnu_nat_target::wait): Fix
8772 target_waitstatus_to_string call.
8774 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8776 * eval.c (evaluate_subexp_standard): Handle internal functions
8777 during Fortran function call handling.
8779 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8781 * NEWS: Mention new internal functions.
8782 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
8783 (read_base_type): Use dwarf2_init_complex_target_type.
8784 * value.c (creal_internal_fn): New function.
8785 (cimag_internal_fn): New function.
8786 (_initialize_values): Register new internal functions.
8788 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8790 * infrun.c (stop_all_threads): If debug_infrun, always
8791 trace the wait status after wait_one, using
8792 target_waitstatus_to_string and target_pid_to_str.
8793 (handle_inferior_event): Replace various trace of
8794 wait status kind by a single trace.
8795 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
8796 wait status kind image by target_waitstatus_to_string.
8797 * target/waitstatus.c (target_waitstatus_to_string): Fix
8800 2019-04-01 Tom Tromey <tromey@adacore.com>
8803 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
8805 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
8806 Pedro Alves <palves@redhat.com>
8808 * top.c (quit_force): Call 'finalize_values'.
8809 * value.c (finalize_values): New function.
8810 * value.h (finalize_values): Declare.
8812 2019-03-30 Eli Zaretskii <eliz@gnu.org>
8814 * NEWS: Announce $_gdb_major and $_gdb_minor.
8816 * top.c (init_gdb_version_vars): New function.
8817 (gdb_init): Call init_gdb_version_vars.
8819 2019-03-29 Tom Tromey <tromey@adacore.com>
8821 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
8822 help text. Remove dead code.
8824 2019-03-29 Keith Seitz <keiths@redhat.com>
8826 From Siddhesh Poyarekar:
8827 * f-lang.h (f77_get_upperbound): Return LONGEST.
8828 (f77_get_lowerbound): Likewise.
8829 * f-typeprint.c (f_type_print_varspec_suffix): Expand
8830 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
8832 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
8833 plongest to format print it.
8834 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
8835 (f77_get_upperbound): Likewise.
8836 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
8837 LOWER_BOUND to LONGEST.
8838 (f77_create_arrayprint_offset_tbl): Likewise.
8840 2019-03-29 Keith Seitz <keiths@redhat.com>
8842 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
8843 %s/pulongest for TYPE_LENGTH instead of %d in format
8845 * ada-typerint.c (ada_print_type): Likewise.
8846 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
8847 * compile/compile-c-support.c (generate_register_struct): Likewise.
8848 * gdbtypes.c (recursive_dump_type): Likewise.
8849 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
8850 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
8851 instead of %d in format strings.
8852 * riscv-tdep.c (riscv_type_alignment): Cast second argument
8853 to std::min to ULONGEST.
8854 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
8855 instead of %d in format strings.
8856 * tracepoint.c (info_scope_command): Likewise.
8857 * typeprint.c (print_offset_data::update)
8858 (print_offset_data::finish): Likewise.
8859 * xtensa-tdep.c (xtensa_store_return_value)
8860 (xtensa_push_dummy_call): Likewise.
8862 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
8864 * windows-nat.c (display_selector): Fixed format specifications
8867 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8869 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
8871 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
8873 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
8874 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
8875 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
8876 (nios2_linux_init_abi): Install it.
8878 2019-03-28 Alan Hayward <alan.hayward@arm.com>
8880 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
8882 2019-03-28 Alan Hayward <alan.hayward@arm.com>
8884 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
8886 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8887 Tom Tromey <tromey@adacore.com>
8889 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
8891 2019-03-26 Joel Brobecker <brobecker@adacore.com>
8893 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
8894 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
8895 method to compute the bounds of range types. Also print "[evaluated]"
8896 if the bounds' values come from a dynamic evaluation.
8898 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
8900 * cp-valprint.c (cp_print_value_fields): Don't print trailing
8901 whitespace when pretty printing is on.
8903 2019-03-26 Alan Hayward <alan.hayward@arm.com>
8905 * ppc-linux-nat.c: Add include.
8907 2019-03-26 Alan Hayward <alan.hayward@arm.com>
8909 * NEWS: Mention AArch64 Pointer Authentication.
8911 2019-03-26 Alan Hayward <alan.hayward@arm.com>
8913 * arm-linux-nat.c: Add include.
8915 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
8917 * source-cache.c (source_cache::get_source_lines): Re-read
8918 fullname after calling open_source_file.
8920 2019-03-25 John Baldwin <jhb@FreeBSD.org>
8922 * NEWS: Mention TLS support for FreeBSD.
8924 2019-03-25 Tom Tromey <tromey@adacore.com>
8926 * minsyms.c (BUNCH_SIZE): Update comment.
8927 (~minimal_symbol_reader): Remove old comment.
8928 (compact_minimal_symbols): Update comment.
8929 (minimal_symbol_reader::install): Remove old comment. Update
8932 2019-03-25 Alan Hayward <alan.hayward@arm.com>
8934 * s390-linux-nat.c: Add include.
8936 2019-03-25 Alan Hayward <alan.hayward@arm.com>
8938 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
8939 Call linux_get_hwcap.
8940 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
8942 (aarch64_linux_get_hwcap): Remove function.
8943 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
8945 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
8947 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
8948 * linux-tdep.c (linux_get_hwcap): Add function.
8949 (linux_get_hwcap2): Likewise.
8950 * linux-tdep.h (linux_get_hwcap): Add declaration.
8951 (linux_get_hwcap2): Likewise.
8952 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
8953 (ppc_linux_get_hwcap2): Likewise.
8954 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
8956 (ppc_linux_nat_target::insert_watchpoint): Likewise.
8957 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
8958 (ppc_linux_nat_target::read_description): Likewise.
8959 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
8960 * s390-linux-nat.c: Likewise.
8961 * s390-linux-tdep.c (s390_core_read_description): Likewise.
8963 2019-03-24 Tom Tromey <tom@tromey.com>
8965 * ada-lang.c (standard_lookup): Simplify initialization.
8966 (ada_lookup_symbol_nonlocal): Simplify return.
8967 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
8968 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
8969 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
8970 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
8972 * solib.c (solib_global_lookup): Simplify.
8973 * symtab.c (null_block_symbol): Remove.
8974 (symbol_cache_lookup): Simplify returns.
8975 (lookup_language_this): Simplify returns.
8976 (lookup_symbol_aux): Simplify return.
8977 (lookup_local_symbol): Simplify returns.
8978 (lookup_global_symbol_from_objfile): Simplify return.
8979 (lookup_symbol_in_objfile_symtabs)
8980 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
8981 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
8982 (lookup_static_symbol, lookup_global_symbol): Simplify return.
8983 * cp-namespace.c (cp_lookup_bare_symbol)
8984 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
8985 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
8986 (cp_lookup_nested_symbol): Don't use null_block_symbol.
8987 (cp_lookup_symbol_via_imports): Simplify initialization.
8988 (find_symbol_in_baseclass): Likewise.
8989 * symtab.h (null_block_symbol): Remove.
8990 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
8991 (d_lookup_nested_symbol, d_lookup_symbol_imports)
8992 (d_lookup_symbol_module): Likewise.
8993 (find_symbol_in_baseclass): Simplify initialization.
8995 2019-03-24 Tom Tromey <tom@tromey.com>
8997 * expression.h: Don't include symtab.h.
8998 (struct block): Forward declare.
9000 2019-03-24 Tom Tromey <tom@tromey.com>
9002 * c-exp.y (typebase): Remove casts.
9003 * gdbtypes.c (lookup_unsigned_typename, )
9004 (lookup_signed_typename): Remove cast.
9005 * eval.c (parse_to_comma_and_eval): Remove cast.
9006 * parse.c (write_dollar_variable): Remove cast.
9007 * block.h (struct block) <superblock>: Now const.
9008 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
9009 * psymtab.c (psym_map_matching_symbols): Make "block" const.
9010 (map_block): Make "block" const.
9011 * symfile.h (struct quick_symbol_functions)
9012 <map_matching_symbols>: Constify block argument to "callback".
9013 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
9015 (find_pc_sect_compunit_symtab): Make "b" const.
9016 (find_symbol_at_address): Likewise.
9017 (search_symbols): Likewise.
9018 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
9019 (dw2_debug_names_lookup_symbol): Likewise.
9020 (dw2_map_matching_symbols): Update.
9021 * p-valprint.c (pascal_val_print): Remove "block".
9022 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
9023 (aux_add_nonlocal_symbols): Make "block" const.
9024 (resolve_subexp): Remove cast.
9025 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
9027 (iterate_over_file_blocks): Likewise.
9028 * f-exp.y (%union) <bval>: Remove.
9029 * coffread.c (patch_opaque_types): Make "b" const.
9030 * spu-tdep.c (spu_catch_start): Make "block" const.
9031 * c-valprint.c (print_unpacked_pointer): Remove "block".
9032 * symmisc.c (dump_symtab_1): Make "b" const.
9033 (block_depth): Make "block" const.
9034 * d-exp.y (%union) <bval>: Remove.
9035 * cp-support.h (cp_lookup_rtti_type): Update.
9036 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
9037 * psymtab.c (psym_lookup_symbol): Make "block" const.
9038 (maintenance_check_psymtabs): Make "b" const.
9039 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
9040 (enumerate_locals, enumerate_args): Update.
9041 * python/py-symtab.c (stpy_global_block): Make "block" const.
9042 (stpy_static_block): Likewise.
9043 * inline-frame.c (block_starting_point_at): Make "new_block"
9045 * block.c (find_block_in_blockvector): Make return type const.
9046 (blockvector_for_pc_sect): Make "b" const.
9047 (find_block_in_blockvector): Make "b" const.
9049 2019-03-23 Tom Tromey <tom@tromey.com>
9051 * varobj.c (varobj_create): Update.
9052 * symfile.c (clear_symtab_users): Don't reset innermost_block.
9053 * printcmd.c (display_command, do_one_display): Don't reset
9055 * parser-defs.h (enum innermost_block_tracker_type): Move to
9057 (innermost_block): Update comment.
9058 * parse.c (parse_exp_1): Add tracker_types parameter.
9059 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
9060 tracker_types parameter. Reset innermost_block.
9061 (parse_exp_in_context): Remove.
9062 (parse_expression_for_completion): Update.
9063 * objfiles.c (~objfile): Don't reset expression_context_block or
9065 * expression.h (enum innermost_block_tracker_type): Move from
9067 (parse_exp_1): Add tracker_types parameter.
9068 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
9069 reset innermost_block.
9071 2019-03-23 Tom Tromey <tom@tromey.com>
9073 * objfiles.h: Include bcache.h.
9075 2019-03-23 Tom Tromey <tom@tromey.com>
9077 * linespec.c (get_current_search_block): Use
9078 scoped_restore_current_language.
9079 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
9081 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9082 Jiong Wang <jiong.wang@arm.com>
9084 * aarch64-linux-tdep.c
9085 (aarch64_linux_iterate_over_regset_sections): Check for pauth
9087 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
9089 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9090 Jiong Wang <jiong.wang@arm.com>
9092 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
9094 (aarch64_analyze_prologue_test): Add PACIASP test.
9095 (aarch64_prologue_prev_register): Unmask PC value.
9097 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9098 Jiong Wang <jiong.wang@arm.com>
9100 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
9101 (aarch64_dwarf2_prev_register): Unmask PC value.
9102 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
9103 (aarch64_execute_dwarf_cfa_vendor_op): Check for
9104 DW_CFA_AARCH64_negate_ra_state.
9105 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
9107 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9108 Jiong Wang <jiong.wang@arm.com>
9110 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
9112 (aarch64_pseudo_register_name): Likewise.
9113 (aarch64_pseudo_register_type): Likewise.
9114 (aarch64_pseudo_register_reggroup_p): Likewise.
9115 (aarch64_gdbarch_init): Add pauth registers.
9116 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
9117 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
9118 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
9119 (struct gdbarch_tdep): Add regnum for ra_state.
9121 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9122 Jiong Wang <jiong.wang@arm.com>
9124 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
9126 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9127 Jiong Wang <jiong.wang@arm.com>
9129 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
9131 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
9132 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
9133 (aarch64_gdbarch_init): Add puth registers.
9134 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
9135 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
9136 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
9138 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9139 Jiong Wang <jiong.wang@arm.com>
9141 * aarch64-linux-nat.c
9142 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
9143 * aarch64-linux-tdep.c
9144 (aarch64_linux_core_read_description): Likewise.
9145 (aarch64_linux_get_hwcap): New function.
9146 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
9147 (aarch64_linux_get_hwcap): New declaration.
9149 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9150 Jiong Wang <jiong.wang@arm.com>
9152 * aarch64-linux-nat.c
9153 (aarch64_linux_nat_target::read_description): Add pauth param.
9154 * aarch64-linux-tdep.c
9155 (aarch64_linux_core_read_description): Likewise.
9156 * aarch64-tdep.c (struct target_desc): Add in pauth.
9157 (aarch64_read_description): Add pauth param.
9158 (aarch64_gdbarch_init): Likewise.
9159 * aarch64-tdep.h (aarch64_read_description): Likewise.
9160 * arch/aarch64.c (aarch64_create_target_description): Likewise.
9161 * arch/aarch64.h (aarch64_create_target_description): Likewise.
9162 * features/Makefile: Add new files.
9163 * features/aarch64-pauth.c: New file.
9164 * features/aarch64-pauth.xml: New file.
9166 2019-03-20 Tom Tromey <tromey@adacore.com>
9168 * infrun.c (handle_inferior_event): Rename from
9169 handle_inferior_event_1. Create a scoped_value_mark.
9170 (handle_inferior_event): Remove.
9172 2019-03-19 Tom Tromey <tromey@adacore.com>
9174 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
9175 * infrun.h (print_stop_event): Add "displays" parameter.
9176 * infrun.c (print_stop_event): Add "displays" parameter.
9178 2019-03-19 Pedro Alves <palves@redhat.com>
9180 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
9181 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
9182 to -1. Fix TABs vs spaces.
9183 (tui_ui_out::tui_ui_out): Don't initialize fields here.
9184 * tui/tui-out.h (tui_ui_out) Add intro comments.
9185 <m_line, m_start_of_line>: In-class initialize, and add describing
9188 2019-03-18 Alan Hayward <alan.hayward@arm.com>
9190 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
9192 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
9194 2019-03-18 Pedro Alves <palves@redhat.com>
9195 Eli Zaretskii <eliz@gnu.org>
9197 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
9198 m_line and m_start_of_line.
9200 2019-03-18 Eli Zaretskii <eliz@gnu.org>
9202 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
9203 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
9204 it returns a newline. This fixes a regression in TU mode, whereby
9205 the next line is output on the same screen line as the user input.
9207 2019-03-18 Tom Tromey <tromey@adacore.com>
9209 * minsyms.c (minimal_symbol_reader::install): Remove call to
9212 2019-03-18 Pedro Alves <palves@redhat.com>
9214 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
9216 (apply_style): New, factored out from ...
9217 (apply_ansi_escape): ... this. Handle reverse video mode.
9218 (tui_set_reverse_mode): New function.
9219 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
9220 * tui/tui-winsource.c (tui_show_source_line): Use
9221 tui_set_reverse_mode instead of setting A_STANDOUT.
9222 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
9225 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
9227 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
9230 2019-03-18 Tom Tromey <tromey@adacore.com>
9232 * ada-lang.c (empty_array): Add "high" parameter.
9233 (ada_evaluate_subexp): Update.
9235 2019-03-17 Sergei Trofimovich <siarheit@google.com>
9237 * unittests/string_view-selftests.c: Define
9238 _initialize_string_view_selftests unconditionally.
9240 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9243 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
9245 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
9248 * windows-nat.c (display_selector): Fix format specifiers.
9250 2019-03-17 Eli Zaretskii <eliz@gnu.org>
9252 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
9253 tui_refill_source_window instead of tui_refresh_win, to update the
9254 current execution line. This fixes redisplay of the current line
9255 when stepping through the code with "next" or "step".
9257 2019-03-16 Eli Zaretskii <eliz@gnu.org>
9259 * source-cache.c (source_cache::get_source_lines): Call
9260 find_source_lines to initialize s->nlines. This fixes vertical
9261 scrolling of TUI source window when the DOWN arrow is pressed.
9263 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9265 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
9266 linux-thread-db.c (_initialize_thread_db): Likewise.
9268 2019-03-16 Eli Zaretskii <eliz@gnu.org>
9270 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
9271 wclrtoeol in tui_show_source_line". This reverts changes made in
9272 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
9274 2019-03-15 Tom Tromey <tom@tromey.com>
9276 * symtab.h (struct minimal_symbol): Derive from
9277 general_symbol_info.
9278 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
9279 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9280 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9281 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9282 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
9283 (MSYMBOL_SEARCH_NAME): Update.
9284 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
9285 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
9286 * minsyms.c (minimal_symbol_reader::record_full): Update.
9288 2019-03-15 Tom Tromey <tom@tromey.com>
9290 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
9292 2019-03-15 Tom Tromey <tom@tromey.com>
9294 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
9296 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
9298 * minsyms.c (lookup_minimal_symbol_by_pc_section)
9299 (build_minimal_symbol_hash_tables)
9300 (minimal_symbol_reader::install): Update.
9302 2019-03-15 Tom Tromey <tom@tromey.com>
9304 * symtab.c (create_demangled_names_hash): Update.
9305 (symbol_set_names): Update.
9306 * objfiles.h (struct objfile_per_bfd_storage)
9307 <demangled_names_hash>: Now an htab_up.
9308 * objfiles.c (objfile_per_bfd_storage): Simplify.
9310 2019-03-15 Tom Tromey <tom@tromey.com>
9312 * objfiles.h (struct objfile_per_bfd_storage): Declare
9314 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
9316 (get_objfile_bfd_data): Use new. Don't initialize
9318 (free_objfile_per_bfd_storage): Remove.
9319 (objfile_bfd_data_free, objfile::~objfile): Use delete.
9321 2019-03-15 Tom Tromey <tom@tromey.com>
9323 * symfile.c (reread_symbols): Update.
9324 * objfiles.c (objfile::objfile): Update.
9325 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
9326 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
9328 (minimal_symbol_reader::install): Update.
9329 (terminate_minimal_symbol_table): Remove.
9330 * jit.c (jit_object_close_impl): Update.
9332 2019-03-15 Tom Tromey <tom@tromey.com>
9334 * minsyms.c (minimal_symbol_reader::record_full): Remove some
9337 2019-03-15 Tom Tromey <tom@tromey.com>
9339 * objfiles.h (struct objfile_per_bfd_storage)
9340 <demangled_hash_languages>: Now a bitset.
9341 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
9342 (lookup_minimal_symbol): Update.
9344 2019-03-15 Tom Tromey <tom@tromey.com>
9346 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
9347 Don't return the symbol.
9348 * coffread.c (record_minimal_symbol): Use record_full.
9350 2019-03-14 Eli Zaretskii <eliz@gnu.org>
9352 The MS-Windows port of ncurses fails to switch to a color pair if
9353 one or both of the colors are the implicit default colors. This
9354 change records the default colors when TUI is initialized, and
9355 then specifies them explicitly when a color pair uses the default
9356 colors. This allows color styling in TUI mode on MS-Windows.
9358 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
9360 (tui_initialize_io) [__MINGW32__]: Record the default terminal
9361 colors in ncurses_norm_attr.
9362 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
9363 "none", replace it with the default color recorded in
9366 2019-03-14 Tom Tromey <tromey@adacore.com>
9368 * source-cache.h (class source_cache) <get_source_lines>: Return
9370 * source-cache.c (source_cache::extract_lines): Handle case where
9371 first_pos==npos. Return std::string.
9372 (source_cache::get_source_lines): Update.
9374 2019-03-14 Tom Tromey <tromey@adacore.com>
9376 * NEWS: Add item for "style sources" commands.
9377 * source-cache.c (source_cache::get_source_lines): Check
9379 * cli/cli-style.c (source_styling): New global.
9380 (_initialize_cli_style): Add "style sources" commands.
9381 (show_style_sources): New function.
9382 * cli/cli-style.h (source_styling): Declare.
9384 2019-03-14 Pedro Alves <palves@redhat.com>
9385 Tom Tromey <tromey@adacore.com>
9387 * tui/tui-winsource.h (tui_refill_source_window): Declare.
9388 * tui/tui-winsource.c (tui_refill_source_window): New function,
9390 (tui_horizontal_source_scroll): ... here. Move some logic.
9391 * cli/cli-style.c (set_style_enabled): Notify new observable.
9392 * tui/tui-hooks.c (tui_redisplay_source): New function.
9393 (tui_attach_detach_observers): Attach or detach
9394 tui_redisplay_source.
9395 * observable.h (source_styling_changed): New observable.
9396 * observable.c: Define source_styling_changed observable.
9398 2019-03-13 Tom Tromey <tromey@adacore.com>
9400 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
9401 (i386_gnu_nat_target::store_registers): Update.
9402 * target-debug.h (target_debug_print_std_string): New macro.
9403 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
9404 * windows-tdep.c (display_one_tib): Update.
9405 * tui/tui-stack.c (tui_make_status_line): Update.
9406 * top.c (print_inferior_quit_action): Update.
9407 * thread.c (thr_try_catch_cmd): Update.
9408 (add_thread_with_info): Update.
9409 (thread_target_id_str): Update.
9410 (thr_try_catch_cmd): Update.
9411 (thread_command): Update.
9412 (thread_find_command): Update.
9413 * record-btrace.c (record_btrace_target::info_record)
9414 (record_btrace_resume_thread, record_btrace_target::resume)
9415 (record_btrace_cancel_resume, record_btrace_step_thread)
9416 (record_btrace_target::wait, record_btrace_target::wait)
9417 (record_btrace_target::wait, record_btrace_target::stop): Update.
9418 * progspace.c (print_program_space): Update.
9419 * process-stratum-target.c
9420 (process_stratum_target::thread_address_space): Update.
9421 * linux-fork.c (linux_fork_mourn_inferior)
9422 (detach_checkpoint_command, info_checkpoints_command)
9423 (linux_fork_context): Update.
9424 (linux_fork_detach): Update.
9425 (class scoped_switch_fork_info): Update.
9426 (delete_checkpoint_command): Update.
9427 * infrun.c (follow_fork_inferior): Update.
9428 (follow_fork_inferior): Update.
9429 (proceed_after_vfork_done): Update.
9430 (handle_vfork_child_exec_or_exit): Update.
9431 (follow_exec): Update.
9432 (displaced_step_prepare_throw): Update.
9433 (displaced_step_restore): Update.
9434 (start_step_over): Update.
9436 (clear_proceed_status_thread): Update.
9438 (print_target_wait_results): Update.
9439 (do_target_wait): Update.
9440 (context_switch): Update.
9441 (stop_all_threads): Update.
9442 (restart_threads): Update.
9443 (finish_step_over): Update.
9444 (handle_signal_stop): Update.
9445 (switch_back_to_stepped_thread): Update.
9446 (keep_going_pass_signal): Update.
9447 (print_exited_reason): Update.
9448 (normal_stop): Update.
9449 * inferior.c (inferior_pid_to_str): Change return type.
9450 (print_selected_inferior): Update.
9451 (add_inferior): Update.
9452 (detach_inferior): Update.
9453 * dummy-frame.c (fprint_dummy_frames): Update.
9454 * dcache.c (dcache_info_1): Update.
9455 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
9456 (btrace_fetch, btrace_clear): Update.
9457 * linux-tdep.c (linux_core_pid_to_str): Change return type.
9458 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
9460 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
9461 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
9462 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
9463 * gdbarch.c, gdbarch.h: Rebuild.
9464 * gdbarch.sh (core_pid_to_str): Change return type.
9465 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
9467 (windows_nat_target::pid_to_str): Change return type.
9468 (windows_delete_thread): Update.
9469 (windows_nat_target::attach): Update.
9470 (windows_nat_target::files_info): Update.
9471 * target-delegates.c: Rebuild.
9472 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
9474 (sol_thread_target::pid_to_str): Change return type.
9475 * remote.c (class remote_target) <pid_to_str>: Change return
9477 (remote_target::pid_to_str): Change return type.
9478 (extended_remote_target::attach, remote_target::remote_stop_ns)
9479 (remote_target::remote_notif_remove_queued_reply)
9480 (remote_target::push_stop_reply, remote_target::disable_btrace):
9482 (extended_remote_target::attach): Update.
9483 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
9485 (gdbsim_target::pid_to_str): Change return type.
9486 * ravenscar-thread.c (struct ravenscar_thread_target)
9487 <pid_to_str>: Change return type.
9488 (ravenscar_thread_target::pid_to_str): Change return type.
9489 * procfs.c (class procfs_target) <pid_to_str>: Change return
9491 (procfs_target::pid_to_str): Change return type.
9492 (procfs_target::attach): Update.
9493 (procfs_target::detach): Update.
9494 (procfs_target::fetch_registers): Update.
9495 (procfs_target::store_registers): Update.
9496 (procfs_target::wait): Update.
9497 (procfs_target::files_info): Update.
9498 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
9499 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
9501 (nto_procfs_target::pid_to_str): Change return type.
9502 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
9503 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
9505 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
9507 (attach_proc_task_lwp_callback, get_detach_signal)
9508 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
9509 (linux_nat_target::resume, wait_lwp, stop_callback)
9510 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
9511 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
9512 (linux_nat_wait_1, resume_stopped_resumed_lwps)
9513 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
9514 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
9516 (inf_ptrace_target::attach): Update.
9517 (inf_ptrace_target::files_info): Update.
9518 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
9520 (go32_nat_target::pid_to_str): Change return type.
9521 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
9522 (gnu_nat_target::wait): Update.
9523 (gnu_nat_target::wait): Update.
9524 (gnu_nat_target::resume): Update.
9525 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
9526 (fbsd_nat_target::wait): Update.
9527 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
9529 (darwin_nat_target::attach): Update.
9530 * corelow.c (class core_target) <pid_to_str>: Change return type.
9531 (core_target::pid_to_str): Change return type.
9532 * target.c (normal_pid_to_str): Change return type.
9533 (default_pid_to_str): Likewise.
9534 (target_pid_to_str): Change return type.
9535 (target_translate_tls_address): Update.
9536 (target_announce_detach): Update.
9537 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
9539 (bsd_uthread_target::pid_to_str): Change return type.
9540 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
9542 (bsd_kvm_target::pid_to_str): Change return type.
9543 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
9545 (aix_thread_target::pid_to_str): Change return type.
9546 * target.h (struct target_ops) <pid_to_str>: Change return type.
9547 (target_pid_to_str, normal_pid_to_str): Likewise.
9548 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
9550 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
9552 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
9554 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
9556 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
9558 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
9561 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
9563 * NEWS: Mention that the new default MI version is 3. Mention
9564 changes to the output of commands and events that deal with
9565 multi-location breakpoints.
9566 * breakpoint.c: Include "mi/mi-out.h".
9567 (print_one_breakpoint): Change output syntax if using MI version
9569 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
9571 (mi_multi_location_breakpoint_output_fixed): New.
9572 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
9573 (mi_cmd_fix_multi_location_breakpoint_output): New.
9574 (mi_multi_location_breakpoint_output_fixed): New.
9575 * mi/mi-cmds.c (mi_cmds): Register command
9576 -fix-multi-location-breakpoint-output.
9577 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
9580 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9582 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
9583 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
9584 instantiate mi_ui_out based on interpreter name.
9585 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
9586 * mi/mi-main.c (mi_load_progress): Likewise.
9588 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9590 * NEWS: Combine separate "New targets" sections for 8.3.
9592 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9594 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
9595 (ppcfbsd_init_abi): Install gdbarch
9596 "fetch_tls_load_module_address" and "get_thread_local_address"
9599 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9601 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
9602 (riscv_fbsd_init_abi): Install gdbarch
9603 "fetch_tls_load_module_address" and "get_thread_local_address"
9606 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9608 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
9609 (i386fbsd_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 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
9616 (amd64fbsd_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 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
9623 (struct fbsd_pspace_data): New type.
9624 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
9625 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
9626 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
9627 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
9628 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
9630 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9632 * gdbtypes.c (lookup_struct_elt): New function.
9633 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
9634 * gdbtypes.h (struct struct_elt): New type.
9635 (lookup_struct_elt): New prototype.
9637 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9639 * gdbtypes.c (lookup_struct_elt_type): Update comment and
9640 remove disabled code block.
9642 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9644 * gdbarch.sh (get_thread_local_address): New method.
9645 * gdbarch.h, gdbarch.c: Regenerate.
9646 * target.c (target_translate_tls_address): Use
9647 gdbarch_get_thread_local_address if present instead of
9648 target::get_thread_local_address.
9650 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9652 * target.h (target::get_thread_local_address): Update comment.
9654 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9656 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
9657 objfile->separate_debug_objfile_backlink if not NULL.
9659 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9661 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
9662 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
9663 (amd64bsd_store_inferior_registers): Likewise.
9664 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
9665 Enable segment base registers.
9666 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
9667 PT_GETFSBASE and PT_GETGSBASE.
9668 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
9670 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
9671 segment base registers.
9672 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
9674 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9676 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
9677 Update calls to i386_target_description to add 'segments'
9679 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
9680 add segment base registers.
9681 * arch/i386.c (i386_create_target_description): Add 'segments'
9682 parameter to enable segment base registers.
9683 * arch/i386.h (i386_create_target_description): Likewise.
9684 * features/i386/32bit-segments.xml: New file.
9685 * features/i386/32bit-segments.c: Generate.
9686 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
9687 call to i386_target_description to add 'segments' parameter.
9688 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
9689 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
9690 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
9691 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
9692 if feature is present.
9693 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
9694 Add 'segments' parameter to call to i386_target_description.
9695 (i386_target_description): Add 'segments' parameter to enable
9696 segment base registers.
9697 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
9698 to call to i386_target_description.
9699 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
9700 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
9701 Define I386_NUM_REGS.
9702 (i386_target_description): Add 'segments' parameter to enable
9703 segment base registers.
9705 2019-03-12 Eli Zaretskii <eliz@gnu.org>
9708 * source-cache.c: #undef open and close, to avoid unresolved
9709 externals during linking.
9711 2019-03-12 Tom Tromey <tromey@adacore.com>
9713 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
9714 const. Add initializers.
9715 (_initialize_remote): Don't initialize ptid globals.
9717 2019-03-12 Pedro Alves <palves@redhat.com>
9719 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
9721 2019-03-12 Pedro Alves <palves@redhat.com>
9723 * cp-name-parser.y (main): Remove unused 'len' variable.
9725 2019-03-12 Tom Tromey <tromey@adacore.com>
9727 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
9728 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
9730 2019-03-12 Tom Tromey <tromey@adacore.com>
9732 * linux-nat.c (iterate_over_lwps): Update.
9733 (stop_callback): Remove parameter.
9734 (stop_wait_callback, detach_callback, resume_set_callback)
9735 (select_singlestep_lwp_callback, set_ignore_sigint)
9736 (status_callback, resumed_callback, resume_clear_callback)
9737 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
9739 (linux_nat_target::detach, linux_nat_target::resume)
9740 (linux_stop_and_wait_all_lwps, select_event_lwp)
9741 (linux_nat_filter_event, linux_nat_wait_1)
9742 (linux_nat_target::kill, linux_nat_target::stop)
9743 (linux_nat_target::stop): Update.
9744 (linux_nat_resume_callback): Change type.
9745 (resume_stopped_resumed_lwps, count_events_callback)
9746 (select_event_lwp_callback): Likewise.
9747 (linux_stop_lwp, linux_nat_stop_lwp): Update.
9748 * arm-linux-nat.c (struct update_registers_data): Remove.
9749 (update_registers_callback): Change type.
9750 (arm_linux_insert_hw_breakpoint1): Update.
9751 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
9753 (x86_linux_dr_set_addr): Update.
9754 (x86_linux_dr_set_control): Update.
9755 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
9756 (iterate_over_lwps): Use gdb::function_view.
9757 * nat/aarch64-linux-hw-point.c (struct
9758 aarch64_dr_update_callback_param): Remove.
9759 (debug_reg_change_callback): Change type.
9760 (aarch64_notify_debug_reg_change): Update.
9761 * s390-linux-nat.c (s390_refresh_per_info): Update.
9763 2019-03-11 Tom Tromey <tromey@adacore.com>
9765 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
9766 redundant assignment to "this_cu".
9768 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9770 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
9772 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9774 * gdbtypes.c (rank_one_type_parm_set): New function extracted
9776 (rank_one_type): ... this.
9778 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9780 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
9782 (rank_one_type): ... this.
9784 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9786 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
9788 (rank_one_type): ... this.
9790 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9792 * gdbtypes.c (rank_one_type_parm_float): New function extracted
9794 (rank_one_type): ... this.
9796 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9798 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
9800 (rank_one_type): ... this.
9802 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9804 * gdbtypes.c (rank_one_type_parm_range): New function extracted
9806 (rank_one_type): ... this.
9808 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9810 * gdbtypes.c (rank_one_type_parm_char): New function extracted
9812 (rank_one_type): ... this.
9814 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9816 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
9818 (rank_one_type): ... this.
9820 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9822 * gdbtypes.c (rank_one_type_parm_int): New function extracted
9824 (rank_one_type): ... this.
9826 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9828 * gdbtypes.c (rank_one_type_parm_func): New function extracted
9830 (rank_one_type): ... this.
9832 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9834 * gdbtypes.c (rank_one_type_parm_array): New function extracted
9836 (rank_one_type): ... this.
9838 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9840 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
9842 (rank_one_type): ... this.
9844 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9846 * inferior.c (initialize_inferiors): Ensure 'help set/show print
9847 inferior-events' shows the example events.
9849 2019-03-08 Eli Zaretskii <eliz@gnu.org>
9851 Support styling on native MS-Windows console
9854 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
9855 on MS-Windows if $TERM is not defined.
9857 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
9859 * posix-hdep.c (gdb_console_fputs):
9860 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
9862 * ui-file.h (gdb_console_fputs): Add prototype.
9864 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
9865 back to fputs only if the former returns zero.
9867 2019-03-07 Tom Tromey <tom@tromey.com>
9869 * symmisc.c (print_symbol_bcache_statistics): Update.
9870 (print_objfile_statistics): Update.
9871 * symfile.c (allocate_symtab): Update.
9872 * stabsread.c: Don't include bcache.h.
9873 * psymtab.h (struct psymbol_bcache): Don't declare.
9874 (class psymtab_storage) <psymbol_cache>: Now a bcache.
9875 (psymbol_bcache_init, psymbol_bcache_free)
9876 (psymbol_bcache_get_bcache): Don't declare.
9877 * psymtab.c (struct psymbol_bcache): Remove.
9878 (psymtab_storage::psymtab_storage): Update.
9879 (psymtab_storage::~psymtab_storage): Update.
9880 (psymbol_bcache_init, psymbol_bcache_free)
9881 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
9882 (add_psymbol_to_bcache): Update.
9883 (allocate_psymtab): Update.
9884 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
9885 macro_cache>: No longer pointers.
9886 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
9887 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
9888 * macrotab.c (macro_bcache): Update.
9889 * macroexp.c: Don't include bcache.h.
9890 * gdbtypes.c (check_types_worklist): Update.
9891 (types_deeply_equal): Remove TRY/CATCH. Update.
9892 * elfread.c (elf_symtab_read): Update.
9893 * dwarf2read.c: Don't include bcache.h.
9894 * buildsym.c (buildsym_compunit::get_macro_table): Update.
9895 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
9896 (print_bcache_statistics, bcache_memory_used): Don't declare.
9897 (struct bcache): Move from bcache.c. Add constructor, destructor,
9898 methods. Rename all data members.
9899 * bcache.c (struct bcache): Move to bcache.h.
9900 (bcache::expand_hash_table): Rename from expand_hash_table.
9902 (bcache::insert): Rename from bcache_full.
9903 (bcache::compare): Rename from bcache_compare.
9904 (bcache_xmalloc): Remove.
9905 (bcache::~bcache): Rename from bcache_xfree.
9906 (bcache::print_statistics): Rename from print_bcache_statistics.
9907 (bcache::memory_used): Rename from bcache_memory_used.
9909 2019-03-07 Pedro Alves <palves@redhat.com>
9911 * infrun.c (normal_stop): Also check for
9912 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
9914 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
9916 * f-lang.c (value_from_host_double): Moved to...
9917 * value.c (value_from_host_double): ...here.
9918 * value.h (value_from_host_double): Declare.
9919 * guile/scm-math.c (vlscm_convert_typed_number): Use
9920 value_from_host_double.
9921 (vlscm_convert_number): Likewise.
9922 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
9923 * python/py-value.c (convert_value_from_python): Likewise.
9925 2019-03-06 Tom Tromey <tom@tromey.com>
9927 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
9929 2019-03-06 Tom Tromey <tom@tromey.com>
9931 * utils.h (free_current_contents): Don't declare.
9932 * utils.c (free_current_contents): Remove.
9934 2019-03-06 Tom Tromey <tom@tromey.com>
9936 * top.c (quit_force): Update.
9937 * main.c (captured_command_loop): Update.
9938 * common/new-op.c (operator new): Update.
9939 * common/common-exceptions.c (struct catcher)
9940 <save_cleanup_chain>: Remove member.
9941 (exceptions_state_mc_init): Update.
9942 (exception_try_scope_entry): Return nullptr.
9943 (exception_try_scope_exit, exception_rethrow)
9944 (throw_exception_sjlj, throw_exception_cxx): Update.
9945 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
9946 (all_cleanups, do_cleanups, discard_cleanups)
9947 (discard_final_cleanups, save_cleanups, save_final_cleanups)
9948 (restore_cleanups, restore_final_cleanups): Don't declare.
9949 (do_final_cleanups): Remove parameter.
9950 * common/cleanups.c (cleanup_chain, make_cleanup)
9951 (make_cleanup_dtor, all_cleanups, do_cleanups)
9952 (discard_my_cleanups, discard_cleanups)
9953 (discard_final_cleanups, save_my_cleanups, save_cleanups)
9954 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
9955 (null_cleanup): Remove.
9956 (do_final_cleanups): Remove parameter.
9958 2019-03-06 Tom Tromey <tom@tromey.com>
9960 * remote.c (remote_target::remote_parse_stop_reply): Use
9963 2019-03-06 Tom Tromey <tom@tromey.com>
9965 * stabsread.c (struct stabs_field_info): Rename from field_info.
9966 <list, fnlist>: Add initializers.
9967 <obstack>: New member.
9968 (read_member_functions, read_struct_fields, read_baseclasses):
9969 Allocate on obstack. Don't use cleanups.
9970 (read_one_struct_field, read_member_functions, read_struct_fields)
9971 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
9972 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
9973 (read_struct_type): Update.
9975 2019-03-06 Tom Tromey <tom@tromey.com>
9977 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
9978 * common/filestuff.h (make_cleanup_close): Don't declare.
9979 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
9982 2019-03-06 Tom Tromey <tom@tromey.com>
9984 * solib-aix.c: Use make_scope_exit.
9986 2019-03-06 Tom Tromey <tom@tromey.com>
9988 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
9989 Use make_scope_exit.
9991 2019-03-06 Tom Tromey <tom@tromey.com>
9993 * solib-svr4.c (disable_probes_interface): Remove parameter.
9994 (svr4_handle_solib_event): Use make_scope_exit.
9996 2019-03-06 Tom Tromey <tom@tromey.com>
9998 * remote.c (struct stop_reply_deleter): Remove.
9999 (stop_reply_up): Update.
10000 (struct stop_reply): Derive from notif_event. Don't typedef.
10001 <regcache>: Now a std::vector.
10002 (stop_reply_xfree): Remove.
10003 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
10004 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
10005 (remote_target::discard_pending_stop_replies): Use delete.
10006 (remote_target::remote_parse_stop_reply): Update.
10007 (remote_target::process_stop_reply): Update.
10008 * remote-notif.h (struct notif_event): Add virtual destructor.
10009 Remove "dtr" member.
10010 (struct notif_client) <alloc_event>: Return a unique_ptr.
10011 (notif_event_xfree): Don't declare.
10012 (notif_event_up): New typedef.
10013 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
10014 (notif_event_xfree, do_notif_event_xfree): Remove.
10015 (remote_notif_state_xfree): Update.
10017 2019-03-06 Tom Tromey <tom@tromey.com>
10019 * infrun.c (displaced_step_clear_cleanup): Now a
10020 forward_scope_exit type.
10021 (displaced_step_prepare_throw): Update.
10022 (displaced_step_fixup): Update.
10024 2019-03-06 Tom Tromey <tom@tromey.com>
10026 * inferior.h (class inferior): Update comment.
10027 * gdbthread.h (class thread_info): Update comment.
10029 2019-03-06 Joel Brobecker <brobecker@adacore.com>
10030 Tom Tromey <tom@tromey.com>
10032 * stabsread.h (struct stab_section_list): Remove.
10033 (coffstab_build_psymtabs): Update.
10034 * dbxread.c (symbuf_sections): Now a std::vector.
10035 (sect_idx): New global.
10036 (fill_symbuf): Update.
10037 (coffstab_build_psymtabs): Change type of stabsects parameter.
10039 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
10041 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
10042 (coff_locate_sections): Update.
10043 (coff_symfile_read): Remove cleanups. Update.
10044 (init_stringtab): Add storage parameter.
10045 (free_stringtab, free_stringtab_cleanup): Remove.
10046 (init_lineno): Add storage parameter.
10047 (free_linetab, free_linetab_cleanup): Remove.
10049 2019-03-06 Pedro Alves <palves@redhat.com>
10051 * linux-fork.c (fork_info::clobber_regs): Delete.
10052 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
10053 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
10055 (scoped_switch_fork_info::scoped_switch_fork_info)
10056 (checkpoint_command, linux_fork_context): Adjust
10057 fork_save_infrun_state calls.
10059 2019-03-06 Pedro Alves <palves@redhat.com>
10061 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
10062 (inf_has_multiple_threads): Return 'bool' and rewrite using
10063 inferior_info::threads().
10065 2019-03-06 Pedro Alves <palves@redhat.com>
10067 * linux-fork.c: Include <list>.
10068 (fork_list): Now a std::list instance.
10069 (fork_info): Add ctor, dtor, and in-class initialize all fields.
10070 (forks_exist_p, find_last_fork): Adjust.
10071 (new_fork): Delete.
10073 (add_fork): Adjust.
10074 (free_fork): Delete, folded into fork_info::~fork_info().
10075 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
10077 (init_fork_list): Delete.
10078 (linux_fork_killall, linux_fork_mourn_inferior)
10079 (linux_fork_detach, info_checkpoints_command): Adjust.
10080 (_initialize_linux_fork): No longer call init_fork_list.
10082 2019-03-06 Pedro Alves <palves@redhat.com>
10084 * linux-fork.c (new_fork): New, split out of ...
10085 (add_fork): ... this. Return void. Move "first fork" special
10086 case from here, to ...
10087 (checkpoint_command): ... here.
10088 * linux-linux.h (add_fork): Return void.
10090 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10092 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
10094 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10095 Chris January <chris.january@arm.com>
10096 David Lecomber <david.lecomber@arm.com>
10098 * f-exp.y: New token, UNOP_INTRINSIC.
10099 (exp): New pattern using UNOP_INTRINSIC token.
10100 (f77_keywords): Add 'abs' keyword.
10101 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
10102 (value_from_host_double): New function.
10103 (evaluate_subexp_f): Support UNOP_ABS.
10105 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10107 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
10110 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10112 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
10113 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
10114 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
10116 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10118 * f-exp.y (convert_to_kind_type): Handle more type kinds.
10120 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10121 Chris January <chris.january@arm.com>
10123 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
10124 * f-exp.y: Define 'KIND' token.
10125 (exp): New pattern for KIND expressions.
10126 (ptype): Handle types with a kind extension.
10127 (direct_abs_decl): Extend to spot kind extensions.
10128 (f77_keywords): Add 'kind' to the list.
10129 (push_kind_type): New function.
10130 (convert_to_kind_type): New function.
10131 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
10132 * parse.c (operator_length_standard): Likewise.
10133 * parser-defs.h (enum type_pieces): Add tp_kind.
10134 * std-operator.def: Add UNOP_KIND.
10136 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10138 * f-exp.y (f_parse): Set yydebug.
10140 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10142 * f-lang.c (evaluate_subexp_f): New function.
10143 (exp_descriptor_f): New global.
10144 (f_language_defn): Use exp_descriptor_f instead of
10145 exp_descriptor_standard.
10147 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10149 * f-exp.y (struct token): Add comments.
10150 (dot_ops): Remove uppercase versions and the end marker.
10151 (f77_keywords): Likewise.
10152 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
10153 entries in the dot_ops array are case insensitive, and use
10154 strncasecmp to compare strings. Also some whitespace cleanup in
10155 this area. Similar for the f77_keywords array, except entries in
10156 this list might be case sensitive.
10158 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10160 * f-exp.y (struct f77_boolean_val): Add comments.
10161 (boolean_values): Remove uppercase versions, and end marker.
10162 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
10163 and use strncasecmp to achieve case insensitivity. Additionally,
10164 perform whitespace cleanup around this code.
10166 2019-03-06 Tom Tromey <tromey@adacore.com>
10168 * remote-sim.c (gdbsim_target_open): Use result of
10171 2019-03-06 Richard Bunt <richard.bunt@arm.com>
10172 Dirk Schubert <dirk.schubert@arm.com>
10173 Chris January <chris.january@arm.com>
10175 * eval.c (evaluate_subexp_standard): Call Fortran argument
10177 * f-lang.c (struct value): A value which can be passed into a
10178 Fortran function call.
10179 (fortran_argument_convert): Wrap Fortran arguments in a pointer
10181 (struct type): Value ready for a Fortran function call.
10182 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
10184 * f-lang.h (fortran_argument_convert): Declaration.
10185 (fortran_preserve_arg_pointer): Declaration.
10186 * infcall.c (value_arg_coerce): Call Fortran argument logic.
10188 2019-03-05 Tom Tromey <tromey@adacore.com>
10190 * python/py-prettyprint.c (print_string_repr): Remove #if.
10191 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
10193 2019-03-05 Tom Tromey <tromey@adacore.com>
10195 * target.c (the_dummy_target): Move later. Change type to
10197 (initialize_targets): Don't initialize the_dummy_target.
10199 2019-03-05 Tom Tromey <tromey@adacore.com>
10201 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
10202 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
10204 2019-03-05 Tom Tromey <tromey@adacore.com>
10206 * windows-nat.c (windows_nat_target::attach)
10207 (windows_nat_target::detach): Don't call gdb_flush.
10208 * valprint.c (generic_val_print, val_print, val_print_string):
10209 Don't call gdb_flush.
10210 * utils.c (defaulted_query): Don't call gdb_flush.
10211 * typeprint.c (print_type_scalar): Don't call gdb_flush.
10212 * target.c (target_announce_detach): Don't call gdb_flush.
10213 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
10214 * remote.c (extended_remote_target::attach): Don't call
10216 * procfs.c (procfs_target::detach): Don't call gdb_flush.
10217 * printcmd.c (do_examine): Don't call gdb_flush.
10218 (info_display_command): Don't call gdb_flush.
10219 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
10220 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
10221 * memattr.c (info_mem_command): Don't call gdb_flush.
10222 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
10223 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
10224 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
10225 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
10226 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
10227 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
10228 (gnu_nat_target::detach): Don't call gdb_flush.
10229 * f-valprint.c (f_val_print): Don't call gdb_flush.
10230 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
10231 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
10232 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
10234 * c-valprint.c (c_val_print): Don't call gdb_flush.
10235 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
10237 2019-03-05 Tom Tromey <tromey@adacore.com>
10239 * varobj.c (update_dynamic_varobj_children): Update.
10240 (install_default_visualizer): Use reset, not release.
10241 * value.c (set_internalvar): Update.
10242 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
10243 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
10244 ATTRIBUTE_UNUSED_RESULT.
10246 2019-03-05 Tom Tromey <tromey@adacore.com>
10248 * remote.c (class scoped_remote_fd) <release>: Add
10249 ATTRIBUTE_UNUSED_RESULT.
10251 2019-03-05 Tom Tromey <tromey@adacore.com>
10253 * macroexp.c (struct macro_buffer) <release>: Add
10254 ATTRIBUTE_UNUSED_RESULT.
10256 2019-03-05 Tom Tromey <tromey@adacore.com>
10258 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
10259 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
10260 ATTRIBUTE_UNUSED_RESULT.
10262 2019-03-05 Tom Tromey <tromey@adacore.com>
10264 * common/scoped_fd.h (class scoped_fd) <release>: Add
10265 ATTRIBUTE_UNUSED_RESULT.
10267 2019-03-05 Tom Tromey <tromey@adacore.com>
10269 * parser-defs.h (struct parser_state) <release>: Add
10270 ATTRIBUTE_UNUSED_RESULT.
10272 2019-03-05 Tom Tromey <tromey@adacore.com>
10274 * utils.h (class gdb_argv) <release>: Add
10275 ATTRIBUTE_UNUSED_RESULT.
10276 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
10278 2019-03-02 Eli Zaretskii <eliz@gnu.org>
10280 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
10281 for-loop range, to avoid compiler warnings.
10283 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
10284 avoid compiler warnings about unused variables.
10286 * NEWS: Mention end of support for native debugging on MS-Windows
10290 * common/netstuff.c:
10291 * gdbserver/gdbreplay.c
10292 * gdbserver/remote-utils.c:
10294 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
10295 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
10296 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
10297 'getaddrinfo' and 'freeaddrinfo' were not available before
10298 Windows XP, and mingw.org's MinGW headers by default define
10299 _WIN32_WINNT to 0x500.
10301 2019-03-01 Gary Benson <gbenson@redhat.com>
10303 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
10305 2019-02-28 Brian Vandenberg <phantall@gmail.com>
10306 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10309 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
10310 set_sigint_trap, clear_sigint_trap.
10312 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10314 * target.c (target_detach): Clear the regcache and the
10317 2019-02-27 Pedro Alves <palves@redhat.com>
10319 * utils.c (set_screen_size): When we cap the height/width sizes,
10320 tweak the corresponding command variable to show "unlimited":
10322 2019-02-27 Saagar Jha <saagar@saagarjha.com>
10323 Pedro Alves <palves@redhat.com>
10325 * utils.c (set_screen_size): Reduce "infinite" rows and columns
10326 before calling rl_set_screen_size.
10328 2019-02-27 Tom Tromey <tromey@adacore.com>
10330 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
10332 * python/py-value.c: Remove Python 2.4 workaround.
10333 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
10335 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
10336 Python 2.4 workaround.
10337 * python/python-internal.h: Remove Python 2.4 comment.
10338 (Py_ssize_t): Don't define.
10339 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
10340 (gdb_Py_DECREF): Remove Python 2.4 workaround.
10341 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
10342 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
10343 * python/python.c (do_start_initialization): Remove Python 2.4
10345 * python/py-prettyprint.c (class dummy_python_frame): Remove.
10346 (print_children): Remove Python 2.4 workaround.
10347 * python/py-inferior.c (buffer_procs): Remove Python 2.4
10349 (CHARBUFFERPROC_NAME): Remove.
10350 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
10351 Python 2.4 workaround.
10353 2019-02-27 Kevin Buettner <kevinb@redhat.com>
10355 * NEWS: Note minimum Python version.
10357 2019-02-27 Kevin Buettner <kevinb@redhat.com>
10359 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
10360 code from these functions. Remove corresponding ifdefs. Use
10361 Py_buffer_up instead of explicit calls to PyBuffer_Release.
10362 Remove gotos and target of gotos.
10363 (infpy_search_memory): Likewise.
10365 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10367 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
10368 (hppa_gdbarch_init): Don't register deleted functions with
10371 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10373 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
10374 (h8300_unwind_sp): Delete.
10375 (h8300_dummy_id): Delete.
10376 (h8300_gdbarch_init): Don't register deleted functions with
10379 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10381 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
10382 (ft32_unwind_pc): Delete.
10383 (ft32_unwind_sp): Delete.
10384 (ft32_gdbarch_init): Don't register deleted functions with
10387 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10389 * gdb/frv-tdep.c (frv_dummy_id): Delete.
10390 (frv_unwind_pc): Delete.
10391 (frv_unwind_sp): Delete.
10392 (frv_gdbarch_init): Don't register deleted functions with
10395 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10397 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
10398 (riscv_unwind_pc): Delete.
10399 (riscv_unwind_sp): Delete.
10400 (riscv_gdbarch_init): Don't register deleted functions with
10403 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10405 * gdb/csky-tdep.c (csky_dummy_id): Delete.
10406 (csky_unwind_pc): Delete.
10407 (csky_unwind_sp): Delete.
10408 (csky_gdbarch_init): Don't register deleted functions with
10411 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10413 * gdb/cris-tdep.c (cris_dummy_id): Delete.
10414 (cris_unwind_pc): Delete.
10415 (cris_unwind_sp): Delete.
10416 (cris_gdbarch_init): Don't register deleted functions with
10419 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10421 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
10422 (bfin_unwind_pc): Delete.
10423 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
10425 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10427 * gdb/arm-tdep.c (arm_dummy_id): Delete.
10428 (arm_unwind_pc): Delete.
10429 (arm_unwind_sp): Delete.
10430 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
10432 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10434 * gdb/arc-tdep.c (arc_dummy_id): Delete.
10435 (arc_unwind_pc): Delete.
10436 (arc_unwind_sp): Delete.
10437 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
10439 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10441 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
10442 (alpha_unwind_pc): Delete.
10443 (alpha_gdbarch_init): Don't register deleted functions with
10446 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10448 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
10449 (aarch64_unwind_pc): Delete.
10450 (aarch64_unwind_sp): Delete.
10451 (aarch64_gdbarch_init): Don't register deleted functions with
10454 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10456 * gdbtypes.c (type_align): Don't consider static members when
10457 computing structure alignment.
10459 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10461 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
10462 return 0 for other types.
10463 * arch-utils.c (default_type_align): Always return 0.
10464 * gdbarch.h: Regenerate.
10465 * gdbarch.sh (type_align): Extend comment.
10466 * gdbtypes.c (type_align): Add additional comments, always call
10467 gdbarch_type_align before applying the default rules.
10468 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
10469 generic code will then apply a suitable default.
10470 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
10471 types, return 0 for other types.
10473 2019-02-27 Joel Brobecker <brobecker@adacore.com>
10475 * NEWS: Create a new section for the next release branch.
10476 Rename the section of the current branch, now that it has
10479 2019-02-27 Joel Brobecker <brobecker@adacore.com>
10481 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
10482 * version.in: Bump version to 8.3.50.DATE-git.
10484 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
10486 * aix-thread.c (ptid_cmp): Remove unused variable.
10487 (get_signaled_thread): Likewise.
10488 (store_regs_user_thread): Likewise.
10489 (store_regs_kernel_thread): Likewise.
10490 (fetch_regs_kernel_thread): Remove shadowed variable.
10492 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
10494 * features/riscv/32bit-cpu.xml: Add register numbers.
10495 * features/riscv/32bit-fpu.c: Regenerate.
10496 * features/riscv/32bit-fpu.xml: Add register numbers.
10497 * features/riscv/64bit-cpu.xml: Add register numbers.
10498 * features/riscv/64bit-fpu.c: Regenerate.
10499 * features/riscv/64bit-fpu.xml: Add register numbers.
10501 2019-02-26 Kevin Buettner <kevinb@redhat.com>
10503 * NEWS: Mention two argument form of gdb.Value constructor.
10504 * python/py-value.c (convert_buffer_and_type_to_value): New
10506 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
10507 Add support for handling an optional second argument. Call
10508 convert_buffer_and_type_to_value as appropriate.
10509 * python/python-internal.h (Py_buffer_deleter): New struct.
10510 (Py_buffer_up): New typedef.
10512 2019-02-25 John Baldwin <jhb@FreeBSD.org>
10514 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
10515 instead of releasing ownership.
10517 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
10519 * dwarf2read.c (open_and_init_dwp_file): Call
10520 elf_numsections instead of bfd_count_sections to initialize
10521 dwp_file->num_sections.
10523 2019-02-25 Tom Tromey <tromey@adacore.com>
10525 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
10527 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
10529 * gcore.in: Add '--readnever' option when invoking GDB.
10531 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
10533 * MAINTAINERS: Update my email address.
10535 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
10537 * build-id.c (build_id_to_debug_bfd_1): New function.
10538 (build_id_to_debug_bfd): Look for separate debug file in
10541 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
10543 * gdbarch.sh: Update the copyright year range that is placed into
10546 2019-02-22 Keith Seitz <keiths@redhat.com>
10549 * linespec.c (create_sals_line_offset): Search for the default
10550 symtab's filename instead of its fullname.
10552 2019-02-21 Alan Hayward <alan.hayward@arm.com>
10554 * NEWS: Update style defaults.
10556 2019-02-21 Alan Hayward <alan.hayward@arm.com>
10558 * main.c (captured_main_1): Disable styling in batch mode.
10560 2019-02-20 Tom Tromey <tom@tromey.com>
10562 * symtab.c (symtab_symbol_info): Fix typos.
10564 2019-02-20 Tom Tromey <tromey@adacore.com>
10566 * findcmd.c (_initialize_mem_search): Use upper case for
10567 metasyntactic variables.
10569 2019-02-20 Alan Hayward <alan.hayward@arm.com>
10571 * aarch64-tdep.c (aarch64_add_reggroups): New function.
10572 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
10574 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
10576 * top.h (source_file_name): Change to std::string.
10577 * top.c (source_file_name): Likewise.
10578 (command_line_input): Adjust.
10579 * cli/cli-script.c (script_from_file): Adjust.
10581 2019-02-19 Tom Tromey <tromey@adacore.com>
10583 * ravenscar-thread.c
10584 (ravenscar_thread_target::update_thread_list): Don't call
10585 ada_build_task_list.
10586 * ada-lang.h (ada_build_task_list): Don't declare.
10587 * ada-tasks.c (struct ada_tasks_inferior_data)
10588 <task_list_valid_p>: Now bool.
10589 (read_known_tasks, ada_task_list_changed)
10590 (ada_tasks_invalidate_inferior_data): Update.
10591 (read_known_tasks_array): Return bool.
10592 (read_known_tasks_list): Likewise.
10593 (read_known_tasks): Return void.
10594 (ada_build_task_list): Now static.
10596 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
10598 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
10599 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
10601 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10603 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
10604 variant for ada_tasks_pspace_data_handle and
10605 ada_tasks_inferior_data_handle.
10606 (ada_tasks_pspace_data_cleanup): New function.
10607 (ada_tasks_inferior_data_cleanup): New function.
10609 2019-02-17 Tom Tromey <tom@tromey.com>
10611 * macrotab.h (macro_source_fullname): Return a std::string.
10612 * macrotab.c (macro_include, check_for_redefinition)
10613 (macro_undef, macro_lookup_definition, foreach_macro)
10614 (foreach_macro_in_scope): Update.
10615 (macro_source_fullname): Return a std::string.
10616 * macrocmd.c (show_pp_source_pos): Update.
10618 2019-02-17 Tom Tromey <tom@tromey.com>
10620 * macrocmd.c (show_pp_source_pos): Style the file names.
10622 2019-02-17 Tom Tromey <tom@tromey.com>
10625 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
10627 2019-02-17 Tom Tromey <tom@tromey.com>
10629 * ada-lang.c (user_select_syms): Use filtered printing.
10630 * utils.c (wrap_style): New global.
10631 (desired_style): Remove.
10632 (emit_style_escape): Add stream parameter.
10633 (set_output_style, reset_terminal_style, prompt_for_continue):
10635 (flush_wrap_buffer): Only flush gdb_stdout.
10636 (wrap_here): Set wrap_style.
10637 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
10638 treat escape sequences as a character. Change when wrap buffer is
10640 (fputs_styled): Do not set the output style when the default is
10642 * ui-style.h (struct ui_file_style) <is_default>: New method.
10643 * source.c (print_source_lines_base): Emit escape sequences in one
10646 2019-02-17 Joel Brobecker <brobecker@adacore.com>
10648 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
10649 integers and enumeration types.
10651 2019-02-17 Joel Brobecker <brobecker@adacore.com>
10653 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
10654 instead of lookup_symbol_in_language
10655 (do_exact_match): New function.
10656 (ada_get_symbol_name_matcher): Return do_exact_match when
10657 doing a verbatim match.
10659 2019-02-15 Tom Tromey <tromey@adacore.com>
10661 * ravenscar-thread.c (ravenscar_thread_target::resume)
10662 (ravenscar_thread_target::wait): Special case wildcard requests.
10664 2019-02-15 Tom Tromey <tromey@adacore.com>
10666 * ravenscar-thread.c (base_ptid): Remove.
10667 (struct ravenscar_thread_target) <close>: New method.
10668 <m_base_ptid>: New member.
10669 <update_inferior_ptid, active_task, task_is_currently_active,
10670 runtime_initialized>: Declare methods.
10671 <ravenscar_thread_target>: Add constructor.
10672 (ravenscar_thread_target::task_is_currently_active)
10673 (ravenscar_thread_target::update_inferior_ptid)
10674 (ravenscar_runtime_initialized): Rename. Now methods.
10675 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
10676 (ravenscar_thread_target::update_thread_list): Update.
10677 (ravenscar_thread_target::active_task): Now method.
10678 (ravenscar_thread_target::store_registers)
10679 (ravenscar_thread_target::prepare_to_store)
10680 (ravenscar_thread_target::prepare_to_store)
10681 (ravenscar_thread_target::mourn_inferior): Update.
10682 (ravenscar_inferior_created): Use "new" to create target.
10683 (ravenscar_thread_target::get_ada_task_ptid): Update.
10684 (_initialize_ravenscar): Don't initialize base_ptid.
10685 (ravenscar_ops): Remove global.
10687 2019-02-15 Tom Tromey <tromey@adacore.com>
10689 * target.h (push_target): Declare new overload.
10690 * target.c (push_target): New overload, taking an rvalue reference.
10691 * remote.c (remote_target::open_1): Use push_target overload.
10692 * corelow.c (core_target_open): Use push_target overload.
10694 2019-02-15 Tom Tromey <tromey@adacore.com>
10696 * ravenscar-thread.c (is_ravenscar_task)
10697 (ravenscar_task_is_currently_active): Return bool.
10698 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
10699 (_initialize_ravenscar): Remove "(void)".
10700 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
10703 2019-02-15 Tom Tromey <tromey@adacore.com>
10705 * ravenscar-thread.c (ravenscar_runtime_initializer)
10706 (has_ravenscar_runtime, get_running_thread_id)
10707 (ravenscar_thread_target::resume): Fix indentation.
10709 2019-02-15 Tom Tromey <tromey@adacore.com>
10711 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
10712 from ravenscar_arch_ops.
10713 (sparc_ravenscar_ops::fetch_registers)
10714 (sparc_ravenscar_ops::store_registers): Now methods.
10715 (sparc_ravenscar_prepare_to_store): Remove.
10716 (sparc_ravenscar_ops): Redefine.
10717 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
10718 methods and destructor. Remove members.
10719 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
10720 (ravenscar_thread_target::store_registers)
10721 (ravenscar_thread_target::prepare_to_store): Update.
10722 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
10724 (struct ppc_ravenscar_powerpc_ops): Derive from
10725 ravenscar_arch_ops.
10726 (ppc_ravenscar_powerpc_ops::fetch_registers)
10727 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
10728 (ppc_ravenscar_powerpc_ops): Redefine.
10729 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
10730 (ppc_ravenscar_e500_ops::fetch_registers)
10731 (ppc_ravenscar_e500_ops::store_registers): Now methods.
10732 (ppc_ravenscar_e500_ops): Redefine.
10733 * aarch64-ravenscar-thread.c
10734 (aarch64_ravenscar_generic_prepare_to_store): Remove.
10735 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
10736 (aarch64_ravenscar_fetch_registers)
10737 (aarch64_ravenscar_store_registers): Now methods.
10738 (aarch64_ravenscar_ops): Redefine.
10740 2019-02-15 Tom Tromey <tromey@adacore.com>
10742 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
10743 (ravenscar_thread_target::stopped_by_hw_breakpoint)
10744 (ravenscar_thread_target::stopped_by_watchpoint)
10745 (ravenscar_thread_target::stopped_data_address)
10746 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
10748 2019-02-15 Tom Tromey <tromey@adacore.com>
10750 * ravenscar-thread.c: Fix some typos.
10752 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10753 Tom Tromey <tromey@adacore.com>
10755 * ada-lang.c (ada_exception_sal): Change addr_string to a
10757 (create_ada_exception_catchpoint): Update.
10759 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10760 Tom Tromey <tromey@adacore.com>
10762 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
10763 (bp_location_ops): Remove.
10764 (base_breakpoint_allocate_location): Update.
10765 (free_bp_location): Update.
10766 * ada-lang.c (class ada_catchpoint_location)
10767 <ada_catchpoint_location>: Remove ops parameter.
10768 (ada_catchpoint_location_dtor): Remove.
10769 (ada_catchpoint_location_ops): Remove.
10770 (allocate_location_exception): Update.
10771 * breakpoint.h (struct bp_location_ops): Remove.
10772 (class bp_location) <bp_location>: Remove bp_location_ops
10774 <~bp_location>: Add destructor.
10777 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10778 Pedro Alves <palves@redhat.com>
10780 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
10783 2019-02-14 David Michael <fedora.dm0@gmail.com>
10784 Samuel Thibault <samuel.thibault@gnu.org>
10785 Thomas Schwinge <thomas@codesourcery.com>
10787 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
10788 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
10790 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10792 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
10793 (check_empty): Use "const char *".
10795 * gnu-nat.c (gnu_nat_target::detach): Instead of
10796 'detach_inferior (pid)' call
10797 'detach_inferior (find_inferior_pid (pid))'.
10799 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
10800 'nat/fork-inferior.o'.
10801 * gnu-nat.c: #include "nat/fork-inferior.h".
10803 * gnu-nat.c (gnu_nat_target::detach): Instead of
10804 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
10805 * gnu-nat.h: #include "inf-child.h".
10806 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
10807 'i386_gnu_nat_target::fetch_registers'.
10808 (gnu_store_registers): Rename/move to
10809 'i386_gnu_nat_target::store_registers'.
10811 * config/i386/nm-i386gnu.h: Don't "#include" any files.
10812 * gnu-nat.h (mach_thread_info): New function.
10813 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
10815 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
10817 2019-02-14 Frederic Konrad <konrad@adacore.com>
10819 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
10821 2019-02-14 Joel Brobecker <brobecker@adacore.com>
10823 * windows-nat.c (windows_add_thread): Add new parameter
10824 "main_thread_p" with default value set to false. Update
10825 function documentation as well as all callers.
10826 (windows_delete_thread): Likewise.
10827 (fake_create_process): Update call to windows_add_thread.
10828 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
10829 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
10830 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
10831 call to windows_delete_thread.
10833 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
10835 * MAINTAINERS: Add Andrew Burgess as global maintainer.
10837 2019-02-12 John Baldwin <jhb@FreeBSD.org>
10839 * symfile.c (find_separate_debug_file): Use canonical path of
10840 sysroot with child_path instead of gdb_sysroot if it is valid.
10842 2019-02-12 John Baldwin <jhb@FreeBSD.org>
10844 * symfile.c (find_separate_debug_file): Use child_path to
10845 determine if an object file is under a sysroot.
10847 2019-02-12 John Baldwin <jhb@FreeBSD.org>
10849 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10850 unittests/child-path-selftests.c.
10851 * common/pathstuff.c (child_path): New function.
10852 * common/pathstuff.h (child_path): New prototype.
10853 * unittests/child-path-selftests.c: New file.
10855 2019-02-12 John Baldwin <jhb@FreeBSD.org>
10857 * symfile.c (find_separate_debug_file): Look for separate debug
10858 files in debug directories under the sysroot.
10860 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10862 * symtab.h (struct minimal_symbol data_p): New const method.
10863 (struct minimal_symbol text_p): Likewise.
10864 * symtab.c (output_source_filename): Use file name style
10865 to print file name.
10866 (print_symbol_info): Likewise.
10867 (print_msymbol_info): Use address style to print addresses.
10868 Use function name style to print executable text symbols.
10869 (expand_symtab_containing_pc): Use data_p.
10870 (find_pc_sect_compunit_symtab): Likewise.
10872 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10874 * breakpoint.c (describe_other_breakpoints): Use address style
10875 to print addresses.
10876 (say_where): Likewise.
10878 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10880 * ada-typeprint.c (print_func_type): Print function name
10881 style to print function name.
10882 * c-typeprint.c (c_print_type_1): Likewise.
10884 2019-02-11 Alan Hayward <alan.hayward@arm.com>
10886 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
10889 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10891 * c-exp.y (direct_abs_decl): Use emplace_back to record the
10894 2019-02-10 Joel Brobecker <brobecker@adacore.com>
10896 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
10897 TYPE_CODE_REF types.
10899 2019-02-08 Jim Wilson <jimw@sifive.com>
10901 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
10902 (riscv_linux_fregset): New.
10903 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
10905 2019-02-07 Tom Tromey <tom@tromey.com>
10907 * thread.c (thread_cancel_execution_command): Update.
10908 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
10910 (struct thread_fsm_ops): Remove.
10911 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
10912 (thread_fsm_should_stop, thread_fsm_return_value)
10913 (thread_fsm_set_finished, thread_fsm_finished_p)
10914 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
10916 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
10917 * infrun.c (clear_proceed_status_thread)
10918 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
10919 (print_stop_event): Update.
10920 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
10922 (step_command_fsm_ops): Remove.
10923 (new_step_command_fsm): Remove.
10925 (step_command_fsm::should_stop): Rename from
10926 step_command_fsm_should_stop.
10927 (step_command_fsm::clean_up): Rename from
10928 step_command_fsm_clean_up.
10929 (step_command_fsm::do_async_reply_reason): Rename from
10930 step_command_fsm_async_reply_reason.
10931 (struct until_next_fsm): Inherit from thread_fsm. Add
10933 (until_next_fsm_ops): Remove.
10934 (new_until_next_fsm): Remove.
10935 (until_next_fsm::should_stop): Rename from
10936 until_next_fsm_should_stop.
10937 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
10938 (until_next_fsm::do_async_reply_reason): Rename from
10939 until_next_fsm_async_reply_reason.
10940 (struct finish_command_fsm): Inherit from thread_fsm. Add
10941 constructor. Change type of breakpoint.
10942 (finish_command_fsm_ops): Remove.
10943 (new_finish_command_fsm): Remove.
10944 (finish_command_fsm::should_stop): Rename from
10945 finish_command_fsm_should_stop.
10946 (finish_command_fsm::clean_up): Rename from
10947 finish_command_fsm_clean_up.
10948 (finish_command_fsm::return_value): Rename from
10949 finish_command_fsm_return_value.
10950 (finish_command_fsm::do_async_reply_reason): Rename from
10951 finish_command_fsm_async_reply_reason.
10952 (finish_command): Update.
10953 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
10955 (call_thread_fsm_ops): Remove.
10956 (call_thread_fsm::call_thread_fsm): Rename from
10957 new_call_thread_fsm.
10958 (call_thread_fsm::should_stop): Rename from
10959 call_thread_fsm_should_stop.
10960 (call_thread_fsm::should_notify_stop): Rename from
10961 call_thread_fsm_should_notify_stop.
10962 (run_inferior_call, call_function_by_hand_dummy): Update.
10963 * cli/cli-interp.c (should_print_stop_to_console): Update.
10964 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
10965 Add constructor. Change type of location_breakpoint,
10967 (until_break_fsm_ops): Remove.
10968 (new_until_break_fsm): Remove.
10969 (until_break_fsm::should_stop): Rename from
10970 until_break_fsm_should_stop.
10971 (until_break_fsm::clean_up): Rename from
10972 until_break_fsm_clean_up.
10973 (until_break_fsm::do_async_reply_reason): Rename from
10974 until_break_fsm_async_reply_reason.
10975 (until_break_command): Update.
10976 * thread-fsm.c: Remove.
10977 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
10979 2019-02-07 Tom Tromey <tom@tromey.com>
10981 * yy-remap.h: Add include guard.
10982 * xtensa-tdep.h: Add include guard.
10983 * xcoffread.h: Rename include guard.
10984 * varobj-iter.h: Add include guard.
10985 * tui/tui.h: Rename include guard.
10986 * tui/tui-winsource.h: Rename include guard.
10987 * tui/tui-wingeneral.h: Rename include guard.
10988 * tui/tui-windata.h: Rename include guard.
10989 * tui/tui-win.h: Rename include guard.
10990 * tui/tui-stack.h: Rename include guard.
10991 * tui/tui-source.h: Rename include guard.
10992 * tui/tui-regs.h: Rename include guard.
10993 * tui/tui-out.h: Rename include guard.
10994 * tui/tui-layout.h: Rename include guard.
10995 * tui/tui-io.h: Rename include guard.
10996 * tui/tui-hooks.h: Rename include guard.
10997 * tui/tui-file.h: Rename include guard.
10998 * tui/tui-disasm.h: Rename include guard.
10999 * tui/tui-data.h: Rename include guard.
11000 * tui/tui-command.h: Rename include guard.
11001 * tic6x-tdep.h: Add include guard.
11002 * target/waitstatus.h: Rename include guard.
11003 * target/wait.h: Rename include guard.
11004 * target/target.h: Rename include guard.
11005 * target/resume.h: Rename include guard.
11006 * target-float.h: Rename include guard.
11007 * stabsread.h: Add include guard.
11008 * rs6000-tdep.h: Add include guard.
11009 * riscv-fbsd-tdep.h: Add include guard.
11010 * regformats/regdef.h: Rename include guard.
11011 * record.h: Rename include guard.
11012 * python/python.h: Rename include guard.
11013 * python/python-internal.h: Rename include guard.
11014 * python/py-stopevent.h: Rename include guard.
11015 * python/py-ref.h: Rename include guard.
11016 * python/py-record.h: Rename include guard.
11017 * python/py-record-full.h: Rename include guard.
11018 * python/py-record-btrace.h: Rename include guard.
11019 * python/py-instruction.h: Rename include guard.
11020 * python/py-events.h: Rename include guard.
11021 * python/py-event.h: Rename include guard.
11022 * procfs.h: Add include guard.
11023 * proc-utils.h: Add include guard.
11024 * p-lang.h: Add include guard.
11025 * or1k-tdep.h: Rename include guard.
11026 * observable.h: Rename include guard.
11027 * nto-tdep.h: Rename include guard.
11028 * nat/x86-linux.h: Rename include guard.
11029 * nat/x86-linux-dregs.h: Rename include guard.
11030 * nat/x86-gcc-cpuid.h: Add include guard.
11031 * nat/x86-dregs.h: Rename include guard.
11032 * nat/x86-cpuid.h: Rename include guard.
11033 * nat/ppc-linux.h: Rename include guard.
11034 * nat/mips-linux-watch.h: Rename include guard.
11035 * nat/linux-waitpid.h: Rename include guard.
11036 * nat/linux-ptrace.h: Rename include guard.
11037 * nat/linux-procfs.h: Rename include guard.
11038 * nat/linux-osdata.h: Rename include guard.
11039 * nat/linux-nat.h: Rename include guard.
11040 * nat/linux-namespaces.h: Rename include guard.
11041 * nat/linux-btrace.h: Rename include guard.
11042 * nat/glibc_thread_db.h: Rename include guard.
11043 * nat/gdb_thread_db.h: Rename include guard.
11044 * nat/gdb_ptrace.h: Rename include guard.
11045 * nat/fork-inferior.h: Rename include guard.
11046 * nat/amd64-linux-siginfo.h: Rename include guard.
11047 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
11048 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
11049 * nat/aarch64-linux.h: Rename include guard.
11050 * nat/aarch64-linux-hw-point.h: Rename include guard.
11051 * mn10300-tdep.h: Add include guard.
11052 * mips-linux-tdep.h: Add include guard.
11053 * mi/mi-parse.h: Rename include guard.
11054 * mi/mi-out.h: Rename include guard.
11055 * mi/mi-main.h: Rename include guard.
11056 * mi/mi-interp.h: Rename include guard.
11057 * mi/mi-getopt.h: Rename include guard.
11058 * mi/mi-console.h: Rename include guard.
11059 * mi/mi-common.h: Rename include guard.
11060 * mi/mi-cmds.h: Rename include guard.
11061 * mi/mi-cmd-break.h: Rename include guard.
11062 * m2-lang.h: Add include guard.
11063 * location.h: Rename include guard.
11064 * linux-record.h: Rename include guard.
11065 * linux-nat.h: Add include guard.
11066 * linux-fork.h: Add include guard.
11067 * i386-darwin-tdep.h: Rename include guard.
11068 * hppa-linux-offsets.h: Add include guard.
11069 * guile/guile.h: Rename include guard.
11070 * guile/guile-internal.h: Rename include guard.
11071 * gnu-nat.h: Rename include guard.
11072 * gdb-stabs.h: Rename include guard.
11073 * frv-tdep.h: Add include guard.
11074 * f-lang.h: Add include guard.
11075 * event-loop.h: Add include guard.
11076 * darwin-nat.h: Rename include guard.
11077 * cp-abi.h: Rename include guard.
11078 * config/sparc/nm-sol2.h: Rename include guard.
11079 * config/nm-nto.h: Rename include guard.
11080 * config/nm-linux.h: Add include guard.
11081 * config/i386/nm-i386gnu.h: Rename include guard.
11082 * config/djgpp/nl_types.h: Rename include guard.
11083 * config/djgpp/langinfo.h: Rename include guard.
11084 * compile/gcc-cp-plugin.h: Add include guard.
11085 * compile/gcc-c-plugin.h: Add include guard.
11086 * compile/compile.h: Rename include guard.
11087 * compile/compile-object-run.h: Rename include guard.
11088 * compile/compile-object-load.h: Rename include guard.
11089 * compile/compile-internal.h: Rename include guard.
11090 * compile/compile-cplus.h: Rename include guard.
11091 * compile/compile-c.h: Rename include guard.
11092 * common/xml-utils.h: Rename include guard.
11093 * common/x86-xstate.h: Rename include guard.
11094 * common/version.h: Rename include guard.
11095 * common/vec.h: Rename include guard.
11096 * common/tdesc.h: Rename include guard.
11097 * common/selftest.h: Rename include guard.
11098 * common/scoped_restore.h: Rename include guard.
11099 * common/scoped_mmap.h: Rename include guard.
11100 * common/scoped_fd.h: Rename include guard.
11101 * common/safe-iterator.h: Rename include guard.
11102 * common/run-time-clock.h: Rename include guard.
11103 * common/refcounted-object.h: Rename include guard.
11104 * common/queue.h: Rename include guard.
11105 * common/ptid.h: Rename include guard.
11106 * common/print-utils.h: Rename include guard.
11107 * common/preprocessor.h: Rename include guard.
11108 * common/pathstuff.h: Rename include guard.
11109 * common/observable.h: Rename include guard.
11110 * common/netstuff.h: Rename include guard.
11111 * common/job-control.h: Rename include guard.
11112 * common/host-defs.h: Rename include guard.
11113 * common/gdb_wait.h: Rename include guard.
11114 * common/gdb_vecs.h: Rename include guard.
11115 * common/gdb_unlinker.h: Rename include guard.
11116 * common/gdb_unique_ptr.h: Rename include guard.
11117 * common/gdb_tilde_expand.h: Rename include guard.
11118 * common/gdb_sys_time.h: Rename include guard.
11119 * common/gdb_string_view.h: Rename include guard.
11120 * common/gdb_splay_tree.h: Rename include guard.
11121 * common/gdb_setjmp.h: Rename include guard.
11122 * common/gdb_ref_ptr.h: Rename include guard.
11123 * common/gdb_optional.h: Rename include guard.
11124 * common/gdb_locale.h: Rename include guard.
11125 * common/gdb_assert.h: Rename include guard.
11126 * common/filtered-iterator.h: Rename include guard.
11127 * common/filestuff.h: Rename include guard.
11128 * common/fileio.h: Rename include guard.
11129 * common/environ.h: Rename include guard.
11130 * common/common-utils.h: Rename include guard.
11131 * common/common-types.h: Rename include guard.
11132 * common/common-regcache.h: Rename include guard.
11133 * common/common-inferior.h: Rename include guard.
11134 * common/common-gdbthread.h: Rename include guard.
11135 * common/common-exceptions.h: Rename include guard.
11136 * common/common-defs.h: Rename include guard.
11137 * common/common-debug.h: Rename include guard.
11138 * common/cleanups.h: Rename include guard.
11139 * common/buffer.h: Rename include guard.
11140 * common/btrace-common.h: Rename include guard.
11141 * common/break-common.h: Rename include guard.
11142 * cli/cli-utils.h: Rename include guard.
11143 * cli/cli-style.h: Rename include guard.
11144 * cli/cli-setshow.h: Rename include guard.
11145 * cli/cli-script.h: Rename include guard.
11146 * cli/cli-interp.h: Rename include guard.
11147 * cli/cli-decode.h: Rename include guard.
11148 * cli/cli-cmds.h: Rename include guard.
11149 * charset-list.h: Add include guard.
11150 * buildsym-legacy.h: Rename include guard.
11151 * bfin-tdep.h: Add include guard.
11152 * ax.h: Rename include guard.
11153 * arm-linux-tdep.h: Add include guard.
11154 * arm-fbsd-tdep.h: Add include guard.
11155 * arch/xtensa.h: Rename include guard.
11156 * arch/tic6x.h: Add include guard.
11157 * arch/i386.h: Add include guard.
11158 * arch/arm.h: Rename include guard.
11159 * arch/arm-linux.h: Rename include guard.
11160 * arch/arm-get-next-pcs.h: Rename include guard.
11161 * arch/amd64.h: Add include guard.
11162 * arch/aarch64-insn.h: Rename include guard.
11163 * arch-utils.h: Rename include guard.
11164 * annotate.h: Add include guard.
11165 * amd64-darwin-tdep.h: Rename include guard.
11166 * aarch64-linux-tdep.h: Add include guard.
11167 * aarch64-fbsd-tdep.h: Add include guard.
11168 * aarch32-linux-nat.h: Add include guard.
11170 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11172 * macrotab.c (macro_define_internal): New function that
11173 factorizes macro_define_object_internal and macro_define_function
11175 (macro_define_object_internal): Use macro_define_internal.
11176 (macro_define_function): Likewise.
11178 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11180 * macrocmd.c (extract_identifier): Return
11181 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
11184 2019-02-06 John Baldwin <jhb@FreeBSD.org>
11186 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
11188 2019-02-05 Tom Tromey <tom@tromey.com>
11190 * target.c (target_stack::unpush): Move assertion earlier.
11192 2019-01-30 Tom Tromey <tom@tromey.com>
11195 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
11196 (gdbpy_parse_and_eval): Likewise.
11197 * python/python-internal.h (gdbpy_allow_threads): New class.
11199 2019-01-28 John Baldwin <jhb@FreeBSD.org>
11201 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
11202 (aarch64_fbsd_fpregmap): Move earlier.
11203 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
11204 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
11205 instead of individual calls to trad_frame_set_reg_addr.
11206 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
11208 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
11209 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
11210 instead of individual calls to trad_frame_set_reg_addr.
11212 2019-01-28 Alan Hayward <alan.hayward@arm.com>
11214 * CONTRIBUTE: Replace contribution list with wiki link.
11216 2019-01-25 Tom Tromey <tom@tromey.com>
11218 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
11220 2019-01-25 Tom Tromey <tom@tromey.com>
11222 * xtensa-linux-nat.c: Fix common/ includes.
11223 * xml-support.h: Fix common/ includes.
11224 * xml-support.c: Fix common/ includes.
11225 * x86-linux-nat.c: Fix common/ includes.
11226 * windows-nat.c: Fix common/ includes.
11227 * varobj.h: Fix common/ includes.
11228 * varobj.c: Fix common/ includes.
11229 * value.c: Fix common/ includes.
11230 * valops.c: Fix common/ includes.
11231 * utils.c: Fix common/ includes.
11232 * unittests/xml-utils-selftests.c: Fix common/ includes.
11233 * unittests/utils-selftests.c: Fix common/ includes.
11234 * unittests/unpack-selftests.c: Fix common/ includes.
11235 * unittests/tracepoint-selftests.c: Fix common/ includes.
11236 * unittests/style-selftests.c: Fix common/ includes.
11237 * unittests/string_view-selftests.c: Fix common/ includes.
11238 * unittests/scoped_restore-selftests.c: Fix common/ includes.
11239 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
11240 * unittests/scoped_fd-selftests.c: Fix common/ includes.
11241 * unittests/rsp-low-selftests.c: Fix common/ includes.
11242 * unittests/parse-connection-spec-selftests.c: Fix common/
11244 * unittests/optional-selftests.c: Fix common/ includes.
11245 * unittests/offset-type-selftests.c: Fix common/ includes.
11246 * unittests/observable-selftests.c: Fix common/ includes.
11247 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
11248 * unittests/memrange-selftests.c: Fix common/ includes.
11249 * unittests/memory-map-selftests.c: Fix common/ includes.
11250 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
11251 * unittests/function-view-selftests.c: Fix common/ includes.
11252 * unittests/environ-selftests.c: Fix common/ includes.
11253 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
11254 * unittests/common-utils-selftests.c: Fix common/ includes.
11255 * unittests/cli-utils-selftests.c: Fix common/ includes.
11256 * unittests/array-view-selftests.c: Fix common/ includes.
11257 * ui-file.c: Fix common/ includes.
11258 * tui/tui-io.c: Fix common/ includes.
11259 * tracepoint.h: Fix common/ includes.
11260 * tracepoint.c: Fix common/ includes.
11261 * tracefile-tfile.c: Fix common/ includes.
11262 * top.h: Fix common/ includes.
11263 * top.c: Fix common/ includes.
11264 * thread.c: Fix common/ includes.
11265 * target/waitstatus.h: Fix common/ includes.
11266 * target/waitstatus.c: Fix common/ includes.
11267 * target.h: Fix common/ includes.
11268 * target.c: Fix common/ includes.
11269 * target-memory.c: Fix common/ includes.
11270 * target-descriptions.c: Fix common/ includes.
11271 * symtab.h: Fix common/ includes.
11272 * symfile.c: Fix common/ includes.
11273 * stap-probe.c: Fix common/ includes.
11274 * spu-linux-nat.c: Fix common/ includes.
11275 * sparc-nat.c: Fix common/ includes.
11276 * source.c: Fix common/ includes.
11277 * solib.c: Fix common/ includes.
11278 * solib-target.c: Fix common/ includes.
11279 * ser-unix.c: Fix common/ includes.
11280 * ser-tcp.c: Fix common/ includes.
11281 * ser-pipe.c: Fix common/ includes.
11282 * ser-base.c: Fix common/ includes.
11283 * selftest-arch.c: Fix common/ includes.
11284 * s12z-tdep.c: Fix common/ includes.
11285 * rust-exp.y: Fix common/ includes.
11286 * rs6000-aix-tdep.c: Fix common/ includes.
11287 * riscv-tdep.c: Fix common/ includes.
11288 * remote.c: Fix common/ includes.
11289 * remote-notif.h: Fix common/ includes.
11290 * remote-fileio.h: Fix common/ includes.
11291 * remote-fileio.c: Fix common/ includes.
11292 * regcache.h: Fix common/ includes.
11293 * regcache.c: Fix common/ includes.
11294 * record-btrace.c: Fix common/ includes.
11295 * python/python.c: Fix common/ includes.
11296 * python/py-type.c: Fix common/ includes.
11297 * python/py-inferior.c: Fix common/ includes.
11298 * progspace.h: Fix common/ includes.
11299 * producer.c: Fix common/ includes.
11300 * procfs.c: Fix common/ includes.
11301 * proc-api.c: Fix common/ includes.
11302 * printcmd.c: Fix common/ includes.
11303 * ppc-linux-nat.c: Fix common/ includes.
11304 * parser-defs.h: Fix common/ includes.
11305 * osdata.c: Fix common/ includes.
11306 * obsd-nat.c: Fix common/ includes.
11307 * nat/x86-linux.c: Fix common/ includes.
11308 * nat/x86-linux-dregs.c: Fix common/ includes.
11309 * nat/x86-dregs.h: Fix common/ includes.
11310 * nat/x86-dregs.c: Fix common/ includes.
11311 * nat/ppc-linux.c: Fix common/ includes.
11312 * nat/mips-linux-watch.h: Fix common/ includes.
11313 * nat/mips-linux-watch.c: Fix common/ includes.
11314 * nat/linux-waitpid.c: Fix common/ includes.
11315 * nat/linux-ptrace.h: Fix common/ includes.
11316 * nat/linux-ptrace.c: Fix common/ includes.
11317 * nat/linux-procfs.c: Fix common/ includes.
11318 * nat/linux-personality.c: Fix common/ includes.
11319 * nat/linux-osdata.c: Fix common/ includes.
11320 * nat/linux-namespaces.c: Fix common/ includes.
11321 * nat/linux-btrace.h: Fix common/ includes.
11322 * nat/linux-btrace.c: Fix common/ includes.
11323 * nat/fork-inferior.c: Fix common/ includes.
11324 * nat/amd64-linux-siginfo.c: Fix common/ includes.
11325 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
11326 * nat/aarch64-linux.c: Fix common/ includes.
11327 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
11328 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
11329 * namespace.h: Fix common/ includes.
11330 * mips-linux-tdep.c: Fix common/ includes.
11331 * minsyms.c: Fix common/ includes.
11332 * mi/mi-parse.h: Fix common/ includes.
11333 * mi/mi-main.c: Fix common/ includes.
11334 * mi/mi-cmd-env.c: Fix common/ includes.
11335 * memrange.h: Fix common/ includes.
11336 * memattr.c: Fix common/ includes.
11337 * maint.h: Fix common/ includes.
11338 * maint.c: Fix common/ includes.
11339 * main.c: Fix common/ includes.
11340 * machoread.c: Fix common/ includes.
11341 * location.c: Fix common/ includes.
11342 * linux-thread-db.c: Fix common/ includes.
11343 * linux-nat.c: Fix common/ includes.
11344 * linux-fork.c: Fix common/ includes.
11345 * inline-frame.c: Fix common/ includes.
11346 * infrun.c: Fix common/ includes.
11347 * inflow.c: Fix common/ includes.
11348 * inferior.h: Fix common/ includes.
11349 * inferior.c: Fix common/ includes.
11350 * infcmd.c: Fix common/ includes.
11351 * inf-ptrace.c: Fix common/ includes.
11352 * inf-child.c: Fix common/ includes.
11353 * ia64-linux-nat.c: Fix common/ includes.
11354 * i387-tdep.c: Fix common/ includes.
11355 * i386-tdep.c: Fix common/ includes.
11356 * i386-linux-tdep.c: Fix common/ includes.
11357 * i386-linux-nat.c: Fix common/ includes.
11358 * i386-go32-tdep.c: Fix common/ includes.
11359 * i386-fbsd-tdep.c: Fix common/ includes.
11360 * i386-fbsd-nat.c: Fix common/ includes.
11361 * guile/scm-type.c: Fix common/ includes.
11362 * guile/guile.c: Fix common/ includes.
11363 * go32-nat.c: Fix common/ includes.
11364 * gnu-nat.c: Fix common/ includes.
11365 * gdbthread.h: Fix common/ includes.
11366 * gdbarch-selftests.c: Fix common/ includes.
11367 * gdb_usleep.c: Fix common/ includes.
11368 * gdb_select.h: Fix common/ includes.
11369 * gdb_bfd.c: Fix common/ includes.
11370 * gcore.c: Fix common/ includes.
11371 * fork-child.c: Fix common/ includes.
11372 * findvar.c: Fix common/ includes.
11373 * fbsd-nat.c: Fix common/ includes.
11374 * event-top.c: Fix common/ includes.
11375 * event-loop.c: Fix common/ includes.
11376 * dwarf2read.c: Fix common/ includes.
11377 * dwarf2loc.c: Fix common/ includes.
11378 * dwarf2-frame.c: Fix common/ includes.
11379 * dwarf-index-cache.c: Fix common/ includes.
11380 * dtrace-probe.c: Fix common/ includes.
11381 * disasm-selftests.c: Fix common/ includes.
11382 * defs.h: Fix common/ includes.
11383 * csky-tdep.c: Fix common/ includes.
11384 * cp-valprint.c: Fix common/ includes.
11385 * cp-support.h: Fix common/ includes.
11386 * cp-support.c: Fix common/ includes.
11387 * corelow.c: Fix common/ includes.
11388 * completer.h: Fix common/ includes.
11389 * completer.c: Fix common/ includes.
11390 * compile/compile.c: Fix common/ includes.
11391 * compile/compile-loc2c.c: Fix common/ includes.
11392 * compile/compile-cplus-types.c: Fix common/ includes.
11393 * compile/compile-cplus-symbols.c: Fix common/ includes.
11394 * command.h: Fix common/ includes.
11395 * cli/cli-dump.c: Fix common/ includes.
11396 * cli/cli-cmds.c: Fix common/ includes.
11397 * charset.c: Fix common/ includes.
11398 * build-id.c: Fix common/ includes.
11399 * btrace.h: Fix common/ includes.
11400 * btrace.c: Fix common/ includes.
11401 * breakpoint.h: Fix common/ includes.
11402 * breakpoint.c: Fix common/ includes.
11404 (enum agent_op): Fix common/ includes.
11405 * ax-general.c (struct aop_map): Fix common/ includes.
11406 * ax-gdb.c: Fix common/ includes.
11407 * auxv.c: Fix common/ includes.
11408 * auto-load.c: Fix common/ includes.
11409 * arm-tdep.c: Fix common/ includes.
11410 * arch/riscv.c: Fix common/ includes.
11411 * arch/ppc-linux-common.c: Fix common/ includes.
11412 * arch/i386.c: Fix common/ includes.
11413 * arch/arm.c: Fix common/ includes.
11414 * arch/arm-linux.c: Fix common/ includes.
11415 * arch/arm-get-next-pcs.c: Fix common/ includes.
11416 * arch/amd64.c: Fix common/ includes.
11417 * arch/aarch64.c: Fix common/ includes.
11418 * arch/aarch64-insn.c: Fix common/ includes.
11419 * arch-utils.c: Fix common/ includes.
11420 * amd64-windows-tdep.c: Fix common/ includes.
11421 * amd64-tdep.c: Fix common/ includes.
11422 * amd64-sol2-tdep.c: Fix common/ includes.
11423 * amd64-obsd-tdep.c: Fix common/ includes.
11424 * amd64-nbsd-tdep.c: Fix common/ includes.
11425 * amd64-linux-tdep.c: Fix common/ includes.
11426 * amd64-linux-nat.c: Fix common/ includes.
11427 * amd64-fbsd-tdep.c: Fix common/ includes.
11428 * amd64-fbsd-nat.c: Fix common/ includes.
11429 * amd64-dicos-tdep.c: Fix common/ includes.
11430 * amd64-darwin-tdep.c: Fix common/ includes.
11431 * agent.c: Fix common/ includes.
11432 * ada-lang.h: Fix common/ includes.
11433 * ada-lang.c: Fix common/ includes.
11434 * aarch64-tdep.c: Fix common/ includes.
11436 2019-01-25 Tom Tromey <tom@tromey.com>
11438 * common/create-version.sh: Use common/version.h.
11440 2019-01-24 Pedro Alves <palves@redhat.com>
11442 * infrun.c (signal_stop, signal_print, signal_program)
11443 (signal_catch, signal_pass): Now arrays instead of pointers.
11444 (update_signals_program_target, do_target_resume)
11445 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
11446 * linux-nat.c (linux_nat_target::pass_signals)
11447 (linux_nat_target::create_inferior, linux_nat_target::attach):
11449 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
11450 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
11451 * procfs.c (procfs_target::pass_signals): Adjust.
11452 * record-full.c (record_full_target::resume): Adjust.
11453 * remote.c (remote_target::pass_signals)
11454 (remote_target::program_signals): Adjust.
11455 * target-debug.h (target_debug_print_signals): Now takes a
11456 gdb::array_view as parameter. Adjust.
11457 * target.h (target_ops) <pass_signals, program_signals>: Replace
11458 pointer and length parameters with gdb::array_view.
11459 (target_pass_signals, target_program_signals): Likewise.
11460 * target-delegates.c: Regenerate.
11462 2019-01-24 Pedro Alves <palves@redhat.com>
11464 * common/forward-scope-exit.h
11465 (forward_scope_exit::forward_scope_exit): Pass arguments to
11466 m_bind_function directly, instead of creating a std::bind and
11469 2019-01-24 Alan Hayward <alan.hayward@arm.com>
11471 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
11472 for static members.
11473 (pass_in_v_vfp_candidate): Likewise.
11475 2019-01-23 Tom Tromey <tom@tromey.com>
11476 Pedro Alves <palves@redhat.com>
11478 * regcache.c (class regcache_invalidator): Remove.
11479 (regcache::raw_write): Use make_scope_exit.
11481 2019-01-23 Tom Tromey <tom@tromey.com>
11483 * ui-out.h (class ui_out_emit_type): Update comment.
11485 2019-01-23 Tom Tromey <tom@tromey.com>
11487 * infrun.c (fetch_inferior_event): Update comment.
11489 2019-01-23 Tom Tromey <tom@tromey.com>
11490 Pedro Alves <palves@redhat.com>
11492 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
11494 (fetch_inferior_event): Use SCOPE_EXIT.
11497 2019-01-23 Tom Tromey <tom@tromey.com>
11498 Pedro Alves <palves@redhat.com>
11500 * infrun.c (disable_thread_events): Delete.
11501 (stop_all_threads): Use SCOPE_EXIT.
11503 2019-01-23 Tom Tromey <tom@tromey.com>
11504 Pedro Alves <palves@redhat.com>
11506 * symfile.c: Include forward-scope-exit.h.
11507 (clear_symtab_users_cleanup): Replace forward declaration with
11508 a FORWARD_SCOPE_EXIT.
11509 (syms_from_objfile_1): Use the forward_scope_exit and
11510 gdb::optional instead of cleanup_function.
11511 (reread_symbols): Use the forward_scope_exit instead of
11513 (clear_symtab_users_cleanup): Remove function.
11515 2019-01-23 Tom Tromey <tom@tromey.com>
11516 Pedro Alves <palves@redhat.com>
11518 * linux-nat.c: Include scope-exit.h.
11519 (cleanup_target_stop): Remove.
11520 (linux_nat_target::static_tracepoint_markers_by_strid): Use
11523 2019-01-23 Tom Tromey <tom@tromey.com>
11524 Pedro Alves <palves@redhat.com>
11526 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
11527 (call_function_by_hand_dummy): Use SCOPE_EXIT.
11529 2019-01-23 Tom Tromey <tom@tromey.com>
11530 Andrew Burgess <andrew.burgess@embecosm.com>
11531 Pedro Alves <palves@redhat.com>
11533 * infrun.c (fetch_inferior_event): Use scope_exit.
11534 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
11535 * top.c (execute_command): Use scope_exit.
11536 * breakpoint.c (bpstat_do_actions): Use scope_exit.
11537 * utils.c (do_bpstat_clear_actions_cleanup)
11538 (make_bpstat_clear_actions_cleanup): Remove.
11540 2019-01-23 Tom Tromey <tom@tromey.com>
11541 Pedro Alves <palves@redhat.com>
11543 * infrun.c: Include "common/scope-exit.h"
11544 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
11545 (wait_for_inferior): Use SCOPE_EXIT.
11546 (fetch_inferior_event): Use scope_exit.
11548 2019-01-23 Tom Tromey <tom@tromey.com>
11549 Pedro Alves <palves@redhat.com>
11551 * breakpoint.c (create_breakpoint): Remove cleanup.
11553 2019-01-23 Tom Tromey <tom@tromey.com>
11554 Andrew Burgess <andrew.burgess@embecosm.com>
11555 Pedro Alves <palves@redhat.com>
11557 2019-01-23 Pedro Alves <palves@redhat.com>
11559 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
11561 2019-01-23 Pedro Alves <palves@redhat.com>
11562 Andrew Burgess <andrew.burgess@embecosm.com>
11564 * gdbthread.h: Include "common/forward-scope-exit.h".
11565 (scoped_finish_thread_state): Redefine custom class in terms of
11566 forward_scope_exit.
11568 2019-01-23 Pedro Alves <palves@redhat.com>
11569 Andrew Burgess <andrew.burgess@embecosm.com>
11571 * common/forward-scope-exit.h: New file.
11573 2019-01-23 Pedro Alves <palves@redhat.com>
11574 Andrew Burgess <andrew.burgess@embecosm.com>
11575 Tom Tromey <tom@tromey.com>
11577 * common/scope-exit.h: New file.
11579 2019-01-23 Pedro Alves <palves@redhat.com>
11581 * common/preprocessor.h (ESC): Rename to ...
11582 (ESC_PARENS): ... this.
11583 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
11584 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
11586 2019-01-23 Tom Tromey <tom@tromey.com>
11588 * language.h (class scoped_switch_to_sym_language_if_auto):
11589 Initialize m_lang in both cases.
11591 2019-01-23 Alan Hayward <alan.hayward@arm.com>
11593 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
11596 2019-01-22 Tom Tromey <tom@tromey.com>
11598 * corelow.c: Do not include sys/file.h.
11600 2019-01-22 Tom Tromey <tom@tromey.com>
11602 * tui/tui-wingeneral.h: Include gdb_curses.h.
11604 2019-01-22 Tom Tromey <tom@tromey.com>
11606 * source-cache.h (class source_cache) <get_source_lines,
11607 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
11609 2019-01-22 Tom Tromey <tom@tromey.com>
11611 * remote-fileio.h (struct remote_target): Declare.
11613 2019-01-22 Tom Tromey <tom@tromey.com>
11615 * python/py-arch.c: Do not include py-ref.h.
11616 * python/py-bpevent.c: Do not include py-ref.h.
11617 * python/py-cmd.c: Do not include py-ref.h.
11618 * python/py-continueevent.c: Do not include py-ref.h.
11619 * python/py-event.h: Do not include py-ref.h.
11620 * python/py-evtregistry.c: Do not include py-ref.h.
11621 * python/py-finishbreakpoint.c: Do not include py-ref.h.
11622 * python/py-frame.c: Do not include py-ref.h.
11623 * python/py-framefilter.c: Do not include py-ref.h.
11624 * python/py-function.c: Do not include py-ref.h.
11625 * python/py-infevents.c: Do not include py-ref.h.
11626 * python/py-linetable.c: Do not include py-ref.h.
11627 * python/py-objfile.c: Do not include py-ref.h.
11628 * python/py-param.c: Do not include py-ref.h.
11629 * python/py-prettyprint.c: Do not include py-ref.h.
11630 * python/py-progspace.c: Do not include py-ref.h.
11631 * python/py-symbol.c: Do not include py-ref.h.
11632 * python/py-symtab.c: Do not include py-ref.h.
11633 * python/py-type.c: Do not include py-ref.h.
11634 * python/py-unwind.c: Do not include py-ref.h.
11635 * python/py-utils.c: Do not include py-ref.h.
11636 * python/py-value.c: Do not include py-ref.h.
11637 * python/py-varobj.c: Do not include py-ref.h.
11638 * python/py-xmethods.c: Do not include py-ref.h.
11639 * python/python.c: Do not include py-ref.h.
11640 * varobj.c: Do not include py-ref.h.
11642 2019-01-22 Tom Tromey <tom@tromey.com>
11644 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
11645 keyword for bcache.
11647 2019-01-22 Tom Tromey <tom@tromey.com>
11649 * compile/compile-cplus-types.c: Remove a comment by #include.
11651 2019-01-22 Tom Tromey <tom@tromey.com>
11653 * compile/gcc-c-plugin.h: Include compile-internal.h.
11655 2019-01-22 Tom Tromey <tom@tromey.com>
11657 * stabsread.c (EXTERN): Do not define.
11658 (symnum, next_symbol_text_func, processing_gcc_compilation)
11659 (within_function, global_sym_chain, global_stabs)
11660 (previous_stab_code, this_object_header_files)
11661 (n_this_object_header_files)
11662 (n_allocated_this_object_header_files): Define.
11663 * stabsread.h (EXTERN): Never define. Use "extern".
11665 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11667 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
11670 2019-01-21 Tom Tromey <tom@tromey.com>
11672 * ui-out.c: Fix includes.
11673 * tui/tui-source.c: Fix includes.
11674 * target.c: Fix includes.
11675 * remote.c: Fix includes.
11676 * regcache.c: Fix includes.
11677 * python/py-block.c: Fix includes.
11678 * printcmd.c: Fix includes.
11679 * or1k-tdep.c: Fix includes.
11680 * mi/mi-main.c: Fix includes.
11681 * m32r-tdep.c: Fix includes.
11682 * csky-tdep.c: Fix includes.
11683 * compile/compile-cplus-types.c: Fix includes.
11684 * cli/cli-interp.c: Fix includes.
11686 2019-01-21 Alan Hayward <alan.hayward@arm.com>
11688 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
11691 2019-01-16 Tom Tromey <tom@tromey.com>
11693 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
11695 (struct objfile) <msymbols_range>: Move from top level.
11696 <msymbols>: New method.
11697 (class objfile_msymbols): Remove.
11698 * symtab.c (default_collect_symbol_completion_matches_break_on):
11700 * symmisc.c (dump_msymbols): Update.
11701 * stabsread.c (scan_file_globals): Update.
11702 * objc-lang.c (info_selectors_command, info_classes_command)
11703 (find_methods): Update.
11704 * minsyms.c (find_solib_trampoline_target): Update.
11705 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
11706 * coffread.c (coff_symfile_read): Update.
11707 * ada-lang.c (ada_lookup_simple_minsym)
11708 (ada_collect_symbol_completion_matches): Update.
11710 2019-01-16 Tom Tromey <tom@tromey.com>
11712 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
11713 type. Remove no-argument constructor.
11714 <iterator::operator++>: Simplify.
11716 <end>: Use minimal_symbol_count.
11718 2019-01-16 Tom Tromey <tom@tromey.com>
11720 * objfiles.h (struct objfile) <psymtabs>: New method.
11721 (class objfile_psymtabs): Remove.
11722 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
11724 <range>: New method.
11725 (require_partial_symbols): Change return type.
11726 * psymtab.c (require_partial_symbols)
11727 (psym_expand_symtabs_matching): Update.
11728 * mdebugread.c (parse_partial_symbols): Update.
11729 * dbxread.c (dbx_end_psymtab): Update.
11731 2019-01-15 Tom Tromey <tom@tromey.com>
11733 * symtab.c (lookup_objfile_from_block)
11734 (lookup_symbol_in_objfile_symtabs)
11735 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
11736 (find_line_symtab, info_sources_command)
11737 (default_collect_symbol_completion_matches_break_on)
11738 (make_source_files_completion_list): Update.
11739 * symmisc.c (print_objfile_statistics, dump_objfile)
11740 (maintenance_print_symbols, maintenance_info_symtabs)
11741 (maintenance_check_symtabs, maintenance_info_line_tables):
11743 * source.c (select_source_symtab)
11744 (forget_cached_source_info_for_objfile): Update.
11745 * objfiles.h (class objfile_compunits): Remove.
11746 (struct objfile) <compunits_range>: New typedef.
11747 (compunits): New method.
11748 * objfiles.c (objfile_relocate1): Update.
11749 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11750 * maint.c (count_symtabs_and_blocks): Update.
11751 * linespec.c (iterate_over_all_matching_symtabs): Update.
11752 * cp-support.c (add_symbol_overload_list_qualified): Update.
11753 * coffread.c (coff_symtab_read): Update.
11754 * ada-lang.c (add_nonlocal_symbols)
11755 (ada_collect_symbol_completion_matches)
11756 (ada_add_global_exceptions): Update.
11758 2019-01-15 Tom Tromey <tom@tromey.com>
11760 * progspace.h (program_space) <objfiles_safe_range>: New
11762 <objfiles_safe>: New method.
11763 * objfiles.h (class all_objfiles_safe): Remove.
11764 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
11765 * jit.c (jit_inferior_exit_hook): Update.
11767 2019-01-17 Tom Tromey <tom@tromey.com>
11769 * progspace.h (program_space) <objfiles_range>: New typedef.
11770 <objfiles>: New method.
11771 <objfiles_head>: Rename from objfiles.
11772 (object_files): Update.
11773 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
11774 * guile/scm-pretty-print.c
11775 (ppscm_find_pretty_printer_from_objfiles): Update.
11776 * guile/scm-objfile.c (gdbscm_objfiles): Update.
11777 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
11779 * python/py-progspace.c (pspy_get_objfiles): Update.
11780 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
11782 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
11783 (objfpy_lookup_objfile_by_build_id): Update.
11784 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11785 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
11787 * symtab.c (iterate_over_symtabs, matching_obj_sections)
11788 (expand_symtab_containing_pc, lookup_objfile_from_block)
11789 (lookup_static_symbol, basic_lookup_transparent_type)
11790 (find_pc_sect_compunit_symtab, find_symbol_at_address)
11791 (find_line_symtab, info_sources_command)
11792 (default_collect_symbol_completion_matches_break_on)
11793 (make_source_files_completion_list, find_main_name): Update.
11794 * symmisc.c (print_symbol_bcache_statistics)
11795 (print_objfile_statistics, maintenance_print_symbols)
11796 (maintenance_print_msymbols, maintenance_print_objfiles)
11797 (maintenance_info_symtabs, maintenance_check_symtabs)
11798 (maintenance_expand_symtabs, maintenance_info_line_tables):
11800 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
11801 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
11802 (map_overlay_command, unmap_overlay_command)
11803 (simple_overlay_update, expand_symtabs_matching)
11804 (map_symbol_filenames): Update.
11805 * symfile-debug.c (set_debug_symfile): Update.
11806 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
11808 * source.c (select_source_symtab, forget_cached_source_info):
11810 * solib.c (solib_read_symbols): Update.
11811 * solib-spu.c (append_ocl_sos): Update.
11812 * psymtab.c (maintenance_print_psymbols)
11813 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
11814 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
11815 * printcmd.c (info_symbol_command): Update.
11816 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
11818 * objfiles.h (class all_objfiles): Remove.
11819 * objfiles.c (have_partial_symbols, have_full_symbols)
11820 (have_minimal_symbols, qsort_cmp, update_section_map)
11821 (shared_objfile_contains_address_p)
11822 (default_iterate_over_objfiles_in_search_order): Update.
11823 * objc-lang.c (info_selectors_command, info_classes_command)
11824 (find_methods): Update.
11825 * minsyms.c (find_solib_trampoline_target): Update.
11826 * maint.c (maintenance_info_sections)
11827 (maintenance_translate_address, count_symtabs_and_blocks):
11829 * main.c (captured_main_1): Update.
11830 * linux-thread-db.c (try_thread_db_load_from_pdir)
11831 (has_libpthread): Update.
11832 * linespec.c (iterate_over_all_matching_symtabs)
11833 (search_minsyms_for_name): Update.
11834 * jit.c (jit_find_objf_with_entry_addr): Update.
11835 * hppa-tdep.c (find_unwind_entry)
11836 (hppa_lookup_stub_minimal_symbol): Update.
11837 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
11839 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
11840 (elf_gnu_ifunc_resolve_by_got): Update.
11841 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
11842 * dwarf-index-write.c (save_gdb_index_command): Update.
11843 * cp-support.c (add_symbol_overload_list_qualified): Update.
11844 * breakpoint.c (create_overlay_event_breakpoint)
11845 (create_longjmp_master_breakpoint)
11846 (create_std_terminate_master_breakpoint)
11847 (create_exception_master_breakpoint): Update.
11848 * blockframe.c (find_pc_partial_function): Update.
11849 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
11850 (ada_collect_symbol_completion_matches)
11851 (ada_add_global_exceptions): Update.
11853 2019-01-17 Tom Tromey <tom@tromey.com>
11855 * solib-target.c (lm_info_target_p): Remove typedef. Don't
11857 (solib_target_parse_libraries): Change return type.
11858 (library_list_start_segment, library_list_start_section)
11859 (library_list_end_library, library_list_start_library); Update.
11860 (solib_target_free_library_list): Remove.
11861 (solib_target_parse_libraries): Remove cleanup. Change return
11863 (solib_target_current_sos): Update.
11865 2019-01-17 Tom Tromey <tromey@bapiya>
11867 * valprint.c: Replace "the the" with "the".
11868 * symtab.c: Replace "the the" with "the".
11869 * solib.c: Replace "the the" with "the".
11870 * solib-dsbt.c: Replace "the the" with "the".
11871 * linespec.c: Replace "the the" with "the".
11872 * dwarf2loc.h: Replace "the the" with "the".
11873 * amd64-windows-tdep.c: Replace "the the" with "the".
11874 * aarch64-tdep.c: Replace "the the" with "the".
11876 2019-01-16 Keith Seitz <keiths@redhat.com>
11879 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
11880 <builder>: Rename to ..
11881 <m_builder>: ... this and make private.
11882 (dwarf2_cu::get_builder): New method. Change all users of
11883 `builder' to use this method.
11884 (dwarf2_start_symtab): Move to ...
11885 (dwarf2_cu::start_symtab): ... here. Update all callers
11886 (setup_type_unit_groups): Move to ...
11887 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
11889 (dwarf2_cu::reset_builder): New method.
11890 (process_full_compunit, process_full_type_unit): Use
11891 dwarf2_cu::reset_builder.
11892 (follow_die_offset): Record the ancestor CU if it is different
11893 from the followed DIE's CU.
11894 (follow_die_sig_1): Likewise.
11896 2019-01-15 Tom Tromey <tom@tromey.com>
11898 * remote.c (class remote_state) <buf>: Now a char_vector.
11899 <buf_size>: Remove.
11900 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
11902 (remote_target::getpkt_or_notif_sane_1)
11903 (remote_target::getpkt_sane)
11904 (remote_target::getpkt_or_notif_sane): Likewise.
11905 (class remote_target) <putpkt>: New overload.
11906 (remote_target::read_frame): Change type of "buf_p". Remove
11907 sizeof_p parameter.
11908 (packet_ok): New overload.
11909 (packet_check_result): New overload.
11912 2019-01-14 Tom Tromey <tom@tromey.com>
11914 * remote-notif.c (handle_notification, remote_notif_ack)
11915 (remote_notif_parse): Make "buf" const.
11916 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
11918 (remote_notif_parse, remote_notif_ack, handle_notification):
11920 * remote.c (remote_notif_stop_parse): Make "buf" const.
11921 (remote_target::remote_parse_stop_reply): Make "buf" const.
11922 (remote_notif_stop_ack): Make "buf" const.
11924 2019-01-14 Tom Tromey <tom@tromey.com>
11926 * remote.c (remote_console_output): Make parameter const.
11928 2019-01-14 Tom Tromey <tom@tromey.com>
11930 * target-debug.h (target_debug_print_signals): Constify.
11931 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
11932 * procfs.c (procfs_target::pass_signals): Update.
11933 * linux-nat.c (linux_nat_target::pass_signals): Update.
11934 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
11935 * target-delegates.c: Rebuild.
11936 * remote.c (remote_target::program_signals): Update.
11937 (remote_target::pass_signals): Update.
11938 * target.c (target_pass_signals): Constify argument.
11939 (target_program_signals): Likewise.
11940 * target.h (struct target_ops) <pass_signals, program_signals>:
11942 (target_pass_signals, target_program_signals): Constify argument.
11944 2019-01-14 Tom Tromey <tom@tromey.com>
11947 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
11949 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11951 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
11953 * rs6000-tdep.c: Include reggroups.h.
11954 (IS_V_ALIAS_PSEUDOREG): Define.
11955 (rs6000_register_name): Return names for the "vX" aliases.
11956 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
11957 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
11958 aliases. Call default_register_reggroup_p for all other
11960 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
11962 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
11963 Handle "vX" aliases.
11964 (v_alias_pseudo_register_collect): New function.
11965 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
11966 (rs6000_gdbarch_init): Initialize "vX" aliases as
11967 pseudo-registers. Restore registration of
11968 rs6000_pseudo_register_reggroup_p with
11969 set_tdesc_pseudo_register_reggroup_p.
11971 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
11973 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
11974 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
11975 set_gdbarch_num_pseudo_regs.
11977 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11979 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
11980 Remove arg prefixname, add do_set and do_show.
11981 Add member functions set_list and show_list.
11982 * cli/cli-style.c (class cli_style_option): Update accordingly.
11983 (style_set_list): Move to file scope.
11984 (style_show_list): Likewise.
11985 (set_style): Call help_list.
11986 (show_style): Call cmd_show_list.
11987 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
11988 Update to use the new macro.
11990 2019-10-12 Joel Brobecker <brobecker@adacore.com>
11992 * ada-lang.c (_initialize_ada_language): Expand the help text
11993 for the "catch exception" command.
11995 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11997 * symtab.c (matching_obj_sections): Initialize obj,
11998 declare it closer to its usage.
12000 2019-01-10 Tom Tromey <tom@tromey.com>
12002 * thread-iter.h (inf_threads_iterator): Use next_iterator.
12003 (basic_inf_threads_range): Remove.
12004 (inf_threads_range, inf_non_exited_threads_range)
12005 (safe_inf_threads_range): Use next_adapter.
12007 2019-01-10 Keith Seitz <keiths@redhat.com>
12011 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
12012 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
12014 2019-01-10 Keith Seitz <keiths@redhat.com>
12018 * dictionary.c (pending_to_vector): Remove.
12019 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12020 Remove _1 suffix, replacing functions of the same name. Update
12022 (dict_create_hashed, dict_create_hashed_expandable)
12023 (dict_create_linear, dict_create_linear_expandable, dict_free)
12024 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
12025 Make functions static.
12027 2019-01-10 Keith Seitz <keiths@redhat.com>
12031 * dictionary.h (struct dictionary): Replace declaration with
12033 (dict_create_hashed, dict_create_hashed_expandable)
12034 (dict_create_linear, dict_create_linear_expandable)
12035 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
12036 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
12037 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
12038 taking multidictionary argument.
12039 [ALL_DICT_SYMBOLS]: Update for multidictionary.
12040 * block.h (struct block) <dict>: Change to multidictionary
12041 and rename `multidict'.
12042 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
12043 symmisc.c: Update all dictionary references to multidictionary.
12045 2019-01-10 Keith Seitz <keiths@redhat.com>
12049 * dictionary.c: Include unordered_map.
12050 (pending_to_vector): New function.
12051 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12052 Rewrite the non-"_1" functions to take vector instead
12054 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
12055 "new" _1 versions of the same name.
12056 (multidictionary): Define.
12057 (std::hash<enum language): New definition.
12058 (collate_pending_symbols_by_language, mdict_create_hashed)
12059 (mdict_create_hashed_expandable, mdict_create_linear)
12060 (mdict_create_linear_expandable, mdict_free)
12061 (find_language_dictionary, create_new_language_dictionary)
12062 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
12063 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
12064 (mdict_size, mdict_empty): New functions.
12065 * dictionary.h (mdict_iterator): Define.
12067 2019-01-10 Pedro Alves <palves@redhat.com>
12069 * breakpoint.c (read_uploaded_action)
12070 (create_tracepoint_from_upload): Adjust to use
12071 gdb::unique_xmalloc_ptr.
12072 * ctf.c (ctf_write_uploaded_tp):
12073 (SET_ARRAY_FIELD): Use emplace_back.
12074 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
12075 * tracefile-tfile.c (tfile_write_uploaded_tp):
12076 * tracepoint.c (parse_tracepoint_definition): Adjust to use
12077 gdb::unique_xmalloc_ptr.
12078 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
12079 at_string, cond_string, cmd_strings>: Replace char pointers
12080 with gdb::unique_xmalloc_ptr.
12082 2019-01-10 Pedro Alves <palves@redhat.com>
12084 * solib-target.c (library_list_start_library): Don't xstrdup name.
12086 2019-01-10 Pedro Alves <palves@redhat.com>
12088 * mdebugread.c (parse_partial_symbols): Use
12089 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
12091 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
12093 * linux-fork.c (scoped_switch_fork_info)
12094 <~scoped_switch_fork_info>: Fix incorrect variable name.
12096 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
12098 * linux-fork.c (scoped_switch_fork_info)
12099 <scoped_switch_fork_info>: Make explicit.
12100 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
12102 2019-01-10 Tom Tromey <tom@tromey.com>
12104 * objfiles.h (objfile::reset_psymtabs): Update.
12105 * objfiles.c (objfile::objfile): Update.
12106 * psymtab.h (psymtab_storage::obstack): Update.
12107 (psymtab_storage::m_obstack): Use gdb::optional.
12108 (class psymtab_storage): Update comment. Remove objfile
12110 * psymtab.c (psymtab_storage::psymtab_storage): Update.
12112 2019-01-10 Tom Tromey <tom@tromey.com>
12114 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
12115 <free_psymtabs>: Now private.
12116 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
12117 (allocate_psymtab): Use new method.
12119 2019-01-10 Tom Tromey <tom@tromey.com>
12121 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
12122 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
12123 * mdebugread.c (parse_partial_symbols): Use
12124 allocate_dependencies.
12125 * dwarf2read.c (dwarf2_create_include_psymtab): Use
12126 allocate_dependencies.
12127 (process_psymtab_comp_unit_reader)
12128 (build_type_psymtab_dependencies): Likewise.
12129 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
12131 2019-01-10 Tom Tromey <tom@tromey.com>
12133 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
12134 PSYMBOL_SET_LANGUAGE.
12135 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
12137 2019-01-10 Tom Tromey <tom@tromey.com>
12139 * psymtab.h (psymtab_storage::obstack): New method.
12140 <m_obstack>: Rename from obstack; now private.
12141 * psymtab.c (psymtab_storage): Update.
12142 * dwarf2read.c (create_addrmap_from_index)
12143 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
12146 2019-01-10 Tom Tromey <tom@tromey.com>
12148 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
12149 * objfiles.h (objfile::reset_psymtabs): New method.
12151 2019-01-10 Tom Tromey <tom@tromey.com>
12153 * symmisc.c (print_symbol_bcache_statistics): Update.
12154 (print_objfile_statistics): Update.
12155 * symfile.c (reread_symbols): Update.
12156 * psymtab.h (class psymtab_storage): New.
12157 * psymtab.c (psymtab_storage): New constructor.
12158 (~psymtab_storage): New destructor.
12159 (require_partial_symbols): Update.
12160 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
12161 (find_pc_sect_psymtab, find_pc_sect_psymbol)
12162 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
12163 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
12164 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
12165 (start_psymtab_common, end_psymtab_common)
12166 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
12167 (allocate_psymtab): Update.
12168 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
12170 (dump_psymtab_addrmap, maintenance_print_psymbols)
12171 (maintenance_check_psymtabs): Update.
12172 (class objfile_psymtabs): Move to objfiles.h.
12173 * psympriv.h (discard_psymtab): Now inline.
12174 (psymtab_discarder::psymtab_discarder): Update.
12175 (psymtab_discarder::~psymtab_discarder): Update.
12176 (ALL_OBJFILE_PSYMTABS): Rewrite.
12177 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
12178 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
12180 <partial_symtabs>: New field.
12181 (class objfile_psymtabs): Move from psymtab.h. Update.
12182 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
12184 (objfile::~objfile): Don't destroy psymbol_cache.
12185 * mdebugread.c (parse_partial_symbols): Update.
12186 * dwarf2read.c (create_addrmap_from_index)
12187 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12188 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
12189 (add_partial_subprogram, dwarf2_ranges_read): Update.
12190 * dwarf-index-write.c (write_address_map)
12191 (write_one_signatured_type, recursively_write_psymbols)
12192 (class debug_names, class debug_names, write_psymtabs_to_index):
12195 2019-01-10 Tom Tromey <tom@tromey.com>
12197 * symtab.h (SYMBOL_SET_NAMES): Update.
12198 (symbol_set_names): Update.
12199 (MSYMBOL_SET_NAMES): Update.
12200 * symtab.c (symbol_set_names): Change argument to be an
12201 objfile_per_bfd_storage.
12202 * psymtab.c (add_psymbol_to_bcache): Update.
12203 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
12205 2019-01-10 Tom Tromey <tom@tromey.com>
12207 * symtab.c (create_demangled_names_hash): Change argument to be an
12208 objfile_per_bfd_storage.
12209 (symbol_set_names): Update.
12211 2019-01-10 Tom Tromey <tom@tromey.com>
12213 * xcoffread.c (xcoff_initial_scan): Unconditionally call
12215 * psymtab.c (init_psymbol_list): Do nothing if already called.
12216 * psympriv.h (init_psymbol_list): Add comment.
12217 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
12219 * dbxread.c (dbx_symfile_read): Unconditionally call
12222 2019-01-10 Tom Tromey <tom@tromey.com>
12224 * xcoffread.c (scan_xcoff_symtab): Update.
12225 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
12227 * mdebugread.c (parse_partial_symbols)
12228 (handle_psymbol_enumerators): Update.
12229 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
12230 * dbxread.c (read_dbx_symtab): Update.
12231 * psympriv.h (psymbol_placement): New enum.
12232 (add_psymbol_to_list): Update.
12234 2019-01-10 Tom Tromey <tom@tromey.com>
12236 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
12237 static_psymbols parameters.
12238 (scan_xcoff_symtab): Update.
12239 * psymtab.c (start_psymtab_common): Remove global_psymbols and
12240 static_psymbols parameters.
12241 * psympriv.h (start_psymtab_common): Update.
12242 * mdebugread.c (parse_partial_symbols): Update.
12243 * dwarf2read.c (create_partial_symtab): Update.
12244 * dbxread.c (read_dbx_symtab): Update.
12245 (start_psymtab): Remove global_psymbols and static_psymbols
12248 2019-01-10 Tom Tromey <tom@tromey.com>
12250 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
12251 * psymtab.c (allocate_psymtab): Add comment.
12252 * psympriv.h (allocate_psymtab): Add comment.
12253 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
12255 * dbxread.c (dbx_end_psymtab): Remove some initializations.
12257 2019-01-10 Tom Tromey <tom@tromey.com>
12259 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12261 * mipsread.c: Include mdebugread.h.
12262 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
12264 * elfread.c: Include mdebugread.h.
12266 2019-01-09 Tom Tromey <tom@tromey.com>
12268 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
12269 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
12270 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
12271 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
12272 (psym_lookup_symbol, psym_find_last_source_symtab)
12273 (psym_forget_cached_source_info, psym_print_stats)
12274 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
12275 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
12276 (psym_map_matching_symbols, psym_expand_symtabs_matching)
12277 (psym_find_compunit_symtab_by_address)
12278 (maintenance_print_psymbols, maintenance_info_psymtabs)
12279 (maintenance_check_psymtabs): Use ranged for.
12280 * psymtab.h (class objfile_psymtabs): New.
12281 (require_partial_symbols): Return objfile_psymtabs.
12282 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
12284 2019-01-09 Tom Tromey <tom@tromey.com>
12286 * symfile.c (overlay_invalidate_all, find_pc_overlay)
12287 (find_pc_mapped_section, list_overlays_command)
12288 (map_overlay_command, unmap_overlay_command)
12289 (simple_overlay_update): Use all_objfiles.
12290 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
12291 * printcmd.c (info_symbol_command): Use all_objfiles.
12292 * objfiles.h (ALL_OBJSECTIONS): Remove.
12293 * maint.c (maintenance_translate_address): Use all_objfiles.
12294 * gcore.c (gcore_create_callback): Use all_objfiles.
12295 (objfile_find_memory_regions): Likewise.
12297 2019-01-09 Tom Tromey <tom@tromey.com>
12299 * symtab.c (find_line_symtab, info_sources_command)
12300 (make_source_files_completion_list): Use objfile_compunits.
12301 * source.c (select_source_symtab): Use objfile_compunits.
12302 * objfiles.h (struct objfile): Update comment.
12303 (ALL_OBJFILES): Remove.
12304 (ALL_FILETABS): Remove.
12305 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
12308 2019-01-09 Tom Tromey <tom@tromey.com>
12310 * symmisc.c (print_objfile_statistics, dump_objfile)
12311 (maintenance_print_symbols): Use compunit_filetabs.
12312 * source.c (forget_cached_source_info_for_objfile): Use
12314 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
12315 (ALL_FILETABS): Use compunit_filetabs.
12316 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
12317 * coffread.c (coff_symtab_read): Use compunit_filetabs.
12319 2019-01-09 Tom Tromey <tom@tromey.com>
12321 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
12322 (compunit_filetabs): New.
12323 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
12325 (info_sources_command, make_source_files_completion_list): Remove
12327 * symmisc.c (print_objfile_statistics, dump_objfile)
12328 (maintenance_print_symbols): Remove declaration.
12329 (maintenance_info_symtabs): Use compunit_filetabs.
12330 (maintenance_info_line_tables): Likewise.
12331 * source.c (select_source_symtab): Change local variable name.
12332 (forget_cached_source_info_for_objfile): Remove declaration.
12333 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
12334 * objfiles.c (objfile_relocate1): Remove declaration.
12335 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
12337 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
12338 * coffread.c (coff_symtab_read): Remove declaration.
12339 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
12342 2019-01-09 Tom Tromey <tom@tromey.com>
12344 * symtab.c (lookup_objfile_from_block)
12345 (find_pc_sect_compunit_symtab, search_symbols)
12346 (default_collect_symbol_completion_matches_break_on): Use
12348 * objfiles.h (ALL_COMPUNITS): Remove.
12349 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
12350 * cp-support.c (add_symbol_overload_list_qualified): Use
12352 * ada-lang.c (ada_collect_symbol_completion_matches)
12353 (ada_add_global_exceptions): Use objfile_compunits.
12355 2019-01-09 Tom Tromey <tom@tromey.com>
12357 * source.c (select_source_symtab)
12358 (forget_cached_source_info_for_objfile): Remove declaration.
12359 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
12361 * maint.c (count_symtabs_and_blocks): Remove declaration.
12362 * cp-support.c (add_symbol_overload_list_qualified): Remove
12364 * coffread.c (coff_symtab_read): Remove declaration.
12365 * symtab.c (lookup_symbol_in_objfile_symtabs)
12366 (basic_lookup_transparent_type_1): Use objfile_compunits.
12367 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
12368 (info_sources_command, search_symbols)
12369 (default_collect_symbol_completion_matches_break_on)
12370 (make_source_files_completion_list): Remove declaration.
12371 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
12372 (ada_collect_symbol_completion_matches)
12373 (ada_add_global_exceptions): Remove declaration.
12374 * linespec.c (iterate_over_all_matching_symtabs): Use
12376 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
12377 (class objfile_compunits): New.
12378 (ALL_COMPUNITS): Use objfile_compunits.
12379 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
12380 (maintenance_check_symtabs, maintenance_info_line_tables): Use
12382 * objfiles.c (objfile_relocate1): Use objfile_compunits.
12384 2019-01-09 Tom Tromey <tom@tromey.com>
12386 * symtab.c (search_symbols)
12387 (default_collect_symbol_completion_matches_break_on): Use
12389 * ada-lang.c (ada_lookup_simple_minsym)
12390 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
12391 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
12392 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
12394 * coffread.c (coff_symfile_read): Use objfile_msymbols.
12395 * symmisc.c (dump_msymbols): Use objfile_msymbols.
12396 * objc-lang.c (find_methods): Use objfile_msymbols.
12397 (info_selectors_command, info_classes_command): Likewise.
12398 * stabsread.c (scan_file_globals): Use objfile_msymbols.
12399 * objfiles.h (class objfile_msymbols): New.
12400 (ALL_OBJFILE_MSYMBOLS): Remove.
12401 (ALL_MSYMBOLS): Remove.
12403 2019-01-09 Tom Tromey <tom@tromey.com>
12405 * common/next-iterator.h (next_adapter): Add Iterator template
12407 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
12408 (class all_objfiles_safe): New.
12409 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
12410 * objfiles.c (put_objfile_before): Update comment.
12411 (add_separate_debug_objfile): Likewise.
12412 (free_all_objfiles): Use all_objfiles_safe.
12413 (objfile_purge_solibs): Likewise.
12415 2019-01-09 Tom Tromey <tom@tromey.com>
12417 * symtab.c (iterate_over_symtabs, matching_obj_sections)
12418 (expand_symtab_containing_pc, lookup_static_symbol)
12419 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
12420 (find_symbol_at_address, find_line_symtab, find_main_name): Use
12422 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
12423 * breakpoint.c (create_overlay_event_breakpoint)
12424 (create_longjmp_master_breakpoint)
12425 (create_std_terminate_master_breakpoint)
12426 (create_exception_master_breakpoint): Use all_objfiles.
12427 * linux-thread-db.c (try_thread_db_load_from_pdir)
12428 (has_libpthread): Use all_objfiles.
12429 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
12430 * linespec.c (iterate_over_all_matching_symtabs)
12431 (search_minsyms_for_name): Use all_objfiles.
12432 * maint.c (maintenance_info_sections): Use all_objfiles.
12433 * main.c (captured_main_1): Use all_objfiles.
12434 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
12435 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
12436 * guile/scm-pretty-print.c
12437 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
12438 * solib-spu.c (append_ocl_sos): Use all_objfiles.
12439 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
12440 (maintenance_print_msymbols): Use all_objfiles.
12441 * source.c (select_source_symtab): Use all_objfiles.
12442 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
12443 * symfile.c (remove_symbol_file_command)
12444 (expand_symtabs_matching, map_symbol_filenames): Use
12446 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
12448 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
12449 * objc-lang.c (find_methods): Use all_objfiles.
12450 * objfiles.c (have_partial_symbols, have_full_symbols)
12451 (have_minimal_symbols, qsort_cmp)
12452 (default_iterate_over_objfiles_in_search_order): Use
12454 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
12455 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
12456 (maintenance_check_psymtabs): Use all_objfiles.
12457 (ALL_PSYMTABS): Remove.
12458 * compile/compile-object-run.c (do_module_cleanup): Use
12460 * blockframe.c (find_pc_partial_function): Use all_objfiles.
12461 * cp-support.c (add_symbol_overload_list_qualified): Use
12463 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
12465 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
12466 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
12468 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
12469 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
12470 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
12472 * solib.c (solib_read_symbols): Use all_objfiles
12474 2019-01-09 Tom Tromey <tom@tromey.com>
12476 * probe.c (parse_probes_in_pspace): Use all_objfiles.
12477 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
12479 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
12480 * symmisc.c (print_symbol_bcache_statistics)
12481 (print_objfile_statistics, maintenance_print_objfiles)
12482 (maintenance_info_symtabs, maintenance_check_symtabs)
12483 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
12485 * source.c (forget_cached_source_info): Use all_objfiles.
12486 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
12487 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
12488 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
12489 * objfiles.c (update_section_map): Use all_objfiles.
12490 (shared_objfile_contains_address_p): Likewise.
12491 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
12492 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
12494 2019-01-09 Tom Tromey <tom@tromey.com>
12496 * common/next-iterator.h: New file.
12497 * objfiles.h (class all_objfiles): New.
12498 (struct objfile_iterator): New.
12500 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12502 * NEWS: Move the description of the changed "frame", "select-frame",
12503 and "info frame" commands to the Changed commands section.
12505 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
12507 * gdbtypes.c (check_stub_method_group): Remove handling of old
12509 * linespec.c (find_methods): Likewise.
12510 * stabsread.c (read_member_functions): Likewise.
12511 * valops.c (search_struct_method): Likewise.
12512 (value_struct_elt_for_reference): Likewise.
12513 * NEWS: Mention this change.
12515 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12517 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
12518 print_source_lines.
12519 * source.c (print_source_lines_base): Update line number check.
12520 (print_source_lines): New function.
12521 (source_lines_range::source_lines_range): New function.
12522 * source.h (class source_lines_range): New class.
12523 (print_source_lines): New declaration.
12525 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12527 * linespec.c (linespec_state_destructor): Free self->canonical_names.
12529 2019-01-08 Tom Tromey <tom@tromey.com>
12530 Simon Marchi <simon.marchi@ericsson.com>
12533 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
12534 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
12535 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
12536 * f-exp.y (DOLLAR_VARIABLE): Likewise.
12537 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
12538 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
12540 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12542 * source.c (select_source_symtab): Move header comment to
12543 declaration in source.h.
12544 (forget_cached_source_info_for_objfile): Likewise.
12545 (forget_cached_source_info): Likewise.
12546 (identify_source_line): Likewise.
12547 * source.h (identify_source_line): Move declaration from symtab.h
12548 and add comment from source.c
12549 (print_source_lines): Likewise.
12550 (forget_cached_source_info_for_objfile): Likewise.
12551 (forget_cached_source_info): Likewise.
12552 (select_source_symtab): Likewise.
12553 (enum print_source_lines_flag): Move definition from symtab.h.
12554 * symtab.h (identify_source_line): Move declaration to source.h.
12555 (print_source_lines): Likewise.
12556 (forget_cached_source_info_for_objfile): Likewise.
12557 (forget_cached_source_info): Likewise.
12558 (select_source_symtab): Likewise.
12559 (enum print_source_lines_flag): Move definition to source.h.
12560 * tui/tui-hooks.c: Add 'source.h' include.
12562 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12564 * source.c (print_source_lines_base): Handle requests to print
12565 reverse line number sequences, and guard against empty lines
12568 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12570 * source.c (print_source_lines_base): Fix skip of '\r' if next
12573 2019-01-06 Tom Tromey <tom@tromey.com>
12575 * c-exp.y (struct c_parse_state) <macro_original_text,
12576 expansion_obstack>: New member.
12577 (macro_original_text, expansion_obstack): Remove globals.
12578 (scan_macro_expansion, scanning_macro_expansion)
12579 (finished_macro_expansion): Update.
12580 (scan_macro_cleanup): Remove.
12581 (yylex, c_parse): Update.
12583 2019-01-06 Tom Tromey <tom@tromey.com>
12585 * c-exp.y (struct c_parse_state) <strings>: New member.
12586 (operator_stoken): Update.
12588 2019-01-06 Tom Tromey <tom@tromey.com>
12590 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
12591 (union type_stack_elt) <typelist_val>: Now a pointer to
12593 (type_stack_cleanup): Don't declare.
12594 (push_typelist): Update.
12595 * parse.c (pop_typelist): Return a std::vector.
12596 (push_typelist): Take a std::vector.
12597 (follow_types): Update. Do not free args.
12598 (type_stack_cleanup): Remove.
12599 * c-exp.y (struct c_parse_state): New.
12600 (cpstate): New global.
12601 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
12602 (nonempty_typelist): Update.
12603 (func_mod): Create a new vector.
12604 (c_parse): Create a c_parse_state.
12605 (check_parameter_typelist): Do not delete params.
12606 (function_method): Update. Do not delete type_list.
12608 2019-01-06 Tom Tromey <tom@tromey.com>
12611 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
12613 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
12614 (print_return_value): Likewise.
12616 2019-01-05 Tom Tromey <tom@tromey.com>
12618 * contrib/cleanup_check.py: Remove.
12619 * contrib/gcc-with-excheck: Remove.
12620 * contrib/exsummary.py: Remove.
12621 * contrib/excheck.py: Remove.
12623 2019-01-05 Joel Brobecker <brobecker@adacore.com>
12625 * thread.c (delete_thread_1): Add gdb_assert that THR is not
12626 NULL. Initialize tpprev to NULL instead of assigning it
12627 to NULL on the next statement.
12628 * windows-nat.c (windows_delete_thread): Remove check for
12629 main_thread_id before printing thread exit notifications.
12630 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
12631 Remove thread ID check against main_thread_id.
12632 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
12633 windows_delete_thread.
12634 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
12636 2019-01-04 Tom Tromey <tom@tromey.com>
12638 * compile/compile.c (_initialize_compile): Use upper case for
12639 metasyntactic variables.
12640 * symmisc.c (_initialize_symmisc): Use upper case for
12641 metasyntactic variables.
12642 * psymtab.c (_initialize_psymtab): Use upper case for
12643 metasyntactic variables.
12644 * demangle.c (demangle_command): Use upper case for metasyntactic
12646 (_initialize_demangler): Likewise.
12647 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
12650 2019-01-03 Tom Tromey <tom@tromey.com>
12652 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
12654 2019-01-03 Tom Tromey <tom@tromey.com>
12656 * python/py-symtab.c (salpy_str): Update.
12657 (struct salpy_sal_object) <symtab>: Now a PyObject.
12658 (salpy_dealloc): Update.
12659 (del_objfile_sal): Use gdbpy_ref.
12661 2019-01-03 Tom Tromey <tom@tromey.com>
12663 * python/py-type.c (convert_field): Use new_reference. Return
12665 (make_fielditem): Return gdbpy_ref.
12666 (typy_fields): Update.
12667 (typy_getitem): Update.
12668 (field_name): Return gdbpy_ref. Use new_reference.
12669 (typy_iterator_iternext): Update.
12671 2019-01-03 Tom Tromey <tom@tromey.com>
12673 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
12675 2019-01-03 Tom Tromey <tom@tromey.com>
12677 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
12678 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
12679 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
12680 (pspy_set_frame_filters, pspy_set_frame_unwinders)
12681 (pspy_set_type_printers): Likewise.
12682 * python/py-function.c (fnpy_init): Use gdbpy_ref.
12683 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
12684 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
12685 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
12686 (objfpy_set_type_printers): Likewise.
12688 2019-01-03 Tom Tromey <tom@tromey.com>
12690 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
12691 (gdbpy_print_stack): Use gdbpy_err_fetch.
12692 * python/python-internal.h (class gdbpy_err_fetch): New class.
12693 (class gdbpy_enter) <m_error_type, m_error_value,
12694 m_error_traceback>: Remove.
12695 <m_error>: New member.
12696 (gdbpy_exception_to_string): Don't declare.
12697 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
12698 * python/py-value.c (convert_value_from_python): Use
12700 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
12701 gdbpy_exception_to_string.
12702 (gdbpy_handle_exception): Use gdbpy_err_fetch.
12703 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
12706 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12708 * linux-nat.c (delete_lwp_cleanup): Delete.
12709 (struct lwp_deleter): New struct.
12710 (lwp_info_up): New typedef.
12711 (linux_nat_target::follow_fork): Delete cleanup, and make use of
12714 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12716 * linux-fork.c (class scoped_switch_fork_info): New class.
12717 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
12719 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12721 * valops.c (find_overload_match): Remove use of null_cleanup, and
12722 calls to do_cleanups.
12724 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12726 * compile/compile-cplus-types.c
12727 (compile_cplus_instance::decl_name): Handle changes to
12729 * cp-support.c (cp_func_name): Update header comment, update
12731 * cp-support.h (cp_func_name): Update return type in declaration.
12732 * valops.c (find_overload_match): Move temp_func local to top
12733 level of function and change its type. Use temp_func to hold and
12734 delete temporary string obtained from cp_func_name.
12736 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12738 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
12739 gdb::char_vector, remove cleanup, and update uses of `msg`.
12741 2019-01-03 Jim Wilson <jimw@sifive.com>
12743 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
12745 2019-01-02 Tom Tromey <tom@tromey.com>
12747 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
12748 (tdesc_parse_xml): Remove cleanups.
12749 * target-descriptions.h (make_cleanup_free_target_description):
12751 (target_desc_deleter): New struct.
12752 (target_desc_up): New typedef.
12753 * target-descriptions.c (target_desc_deleter::operator()): Rename
12754 from free_target_description.
12755 (make_cleanup_free_target_description): Remove.
12757 2019-01-02 Tom Tromey <tom@tromey.com>
12759 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
12760 constructor, destructor.
12761 (linespec_parser): Remove typedef.
12762 (~linespec_parser): Rename from linespec_parser_delete.
12763 (linespec_lex_to_end, linespec_complete_label)
12764 (linespec_complete): Update.
12765 (decode_line_full): Remove cleanups.
12766 (decode_line_1): Update.
12768 2019-01-02 Tom Tromey <tom@tromey.com>
12770 * python/python-internal.h (inferior_to_inferior_object): Change
12772 * python/py-exitedevent.c (create_exited_event_object): Update.
12773 * python/py-inferior.c (inferior_to_inferior_object): Return
12775 (python_new_inferior, python_inferior_deleted)
12776 (thread_to_thread_object, delete_thread_object)
12777 (build_inferior_list, gdbpy_selected_inferior): Update.
12778 * python/py-infthread.c (create_thread_object): Update. Also fail
12779 if inferior_to_inferior_object fails.
12781 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
12783 * inferior.h (class inferior) <displaced_step_state>: New field.
12784 * infrun.h (struct displaced_step_state): Move here from
12785 infrun.c. Initialize fields, add constructor.
12786 <inf>: Remove field.
12787 <reset>: New method.
12788 * infrun.c (struct displaced_step_inferior_state): Move to
12790 (displaced_step_inferior_states): Remove.
12791 (get_displaced_stepping_state): Adust.
12792 (displaced_step_in_progress_any_inferior): Adjust.
12793 (displaced_step_in_progress_thread): Adjust.
12794 (displaced_step_in_progress): Adjust.
12795 (add_displaced_stepping_state): Remove.
12796 (get_displaced_step_closure_by_addr): Adjust.
12797 (remove_displaced_stepping_state): Remove.
12798 (infrun_inferior_exit): Call displaced_step_state.reset.
12799 (use_displaced_stepping): Don't check for NULL.
12800 (displaced_step_prepare_throw): Call
12801 get_displaced_stepping_state.
12802 (displaced_step_fixup): Don't check for NULL.
12803 (prepare_for_detach): Don't check for NULL.
12805 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12807 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
12808 in case of call that did not complete.
12810 2019-01-02 Andrey Utkin <autkin@undo.io>
12812 * symfile.c (find_separate_debug_file): Fix search of debug files for
12815 2019-01-02 Tom Tromey <tom@tromey.com>
12817 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
12819 * python/py-frame.c (frapy_older): Remove cast.
12820 (frapy_newer): Likewise.
12821 * python/py-breakpoint.c (local_setattro): Remove cast.
12822 * python/py-arch.c (archpy_name): Remove local variable.
12823 * python/py-type.c (gdbpy_lookup_type): Remove cast.
12825 2019-01-02 Joel Brobecker <brobecker@adacore.com>
12827 * unittests/basic_string_view/element_access/char/empty.cc:
12828 Fix year range in copyright header.
12830 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
12832 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
12834 <operator==>: Update with for removed field.
12836 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
12837 <isa_features>: ...this.
12838 <abi_features>: New field.
12839 (riscv_isa_flen): Update comment.
12840 (riscv_abi_xlen): New declaration.
12841 (riscv_abi_flen): New declaration.
12842 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
12844 (riscv_abi_xlen): New function.
12845 (riscv_isa_flen): Update to get answer from isa_features.
12846 (riscv_abi_flen): New function.
12847 (riscv_has_fp_abi): Update to get answer from abi_features.
12848 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
12850 (riscv_call_info) <xlen, flen>: Update comment.
12851 (riscv_call_arg_struct): Remove invalid assertions
12852 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
12854 (riscv_gdbarch_init): Gather isa features and abi features
12855 separately, ensure both match on the gdbarch when reusing an old
12856 gdbarch. Relax an error check to allow 32-bit abi float to run on
12857 a target with 64-bit float hardware.
12859 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12861 * source.c (search_command_helper): Stop reverse search
12862 when line 1 has been searched.
12864 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12866 * record-full.c (record_full_base_target::close): Rewrite
12867 record_full_core_buf_list free logic.
12869 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12871 * break-catch-syscall.c (print_one_catch_syscall): xfree
12874 2019-01-01 Joel Brobecker <brobecker@adacore.com>
12876 * top.c (print_gdb_version): Update Copyright year in version
12879 2019-01-01 Joel Brobecker <brobecker@adacore.com>
12881 Update copyright year range in all GDB files.
12883 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
12885 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
12887 For older changes see ChangeLog-2018.
12893 version-control: never