1 2019-09-06 Alan Modra <amodra@gmail.com>
3 * coffread.c (coff_symfile_read): Constify filename variable.
4 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
5 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
6 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
7 * solib.c (reload_shared_libraries_1): Likewise.
8 * symfile.c (reread_symbols): Likewise.
9 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
10 * solib-darwin.c (darwin_bfd_open): Likewise.
11 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
13 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
15 * psymtab.c (print_partial_symbols): Handle missing domain_enum
16 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
18 2019-09-03 Tom Tromey <tromey@adacore.com>
20 * ada-valprint.c (ada_val_print_num): Don't recurse for range
22 (has_negatives): Unbias a range type bound.
23 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
24 * gdbtypes.c (operator==): Handle new field.
25 (create_range_type): Add "bias" parameter.
26 (create_static_range_type, resolve_dynamic_range): Update.
27 * gdbtypes.h (struct range_bounds) <bias>: New member.
28 (create_range_type): Add bias parameter.
29 * printcmd.c (print_scalar_formatted): Unbias range types.
30 * value.c (unpack_long): Unbias range types.
31 (pack_long): Bias range types.
33 2019-09-02 Alan Hayward <alan.hayward@arm.com>
35 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
38 2019-09-02 Alan Hayward <alan.hayward@arm.com>
40 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
41 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
42 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
43 (compile_probe_arg): Likewise.
44 * probe.h (get_argument_count): Likewise.
45 * solib-svr4.c (solib_event_probe_action): Likewise.
46 * stap-probe.c (stap_probe::get_argument_count): Likewise.
48 2019-09-02 Alan Hayward <alan.hayward@arm.com>
50 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
52 (svr4_create_solib_event_breakpoints): ...from here.
54 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
56 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
57 suffix from warning message.
59 2019-08-30 Tom Tromey <tom@tromey.com>
61 * tui/tui-winsource.h (struct tui_source_window_base)
62 <refresh_all>: Don't declare.
63 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
65 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
66 tui_show_locator_content.
67 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
69 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
70 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
73 2019-08-30 Tom Tromey <tom@tromey.com>
75 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
77 2019-08-30 Tom Tromey <tom@tromey.com>
79 * tui/tui-stack.c (_initialize_tui_stack): Move later.
80 Remove unnecessary forward declarations.
82 2019-08-30 Tom Tromey <tom@tromey.com>
84 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
86 (tui_update_locator_fullname, tui_show_frame_info): Don't call
87 tui_show_locator_content.
89 2019-08-30 Tom Tromey <tom@tromey.com>
91 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
92 (tui_locator_window::rerender): Rewrite using body of previous
93 tui_show_locator_content.
95 2019-08-30 Tom Tromey <tom@tromey.com>
97 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
98 set_locator_fullname>: New methods.
99 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
100 Rename from tui_set_locator_fullname.
101 (tui_locator_window::set_locator_info): Rename from
102 tui_set_locator_info. Return bool.
103 (tui_update_locator_fullname, tui_show_frame_info): Update.
105 2019-08-30 Tom Tromey <tom@tromey.com>
107 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
109 2019-08-30 Tom Tromey <tom@tromey.com>
111 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
114 2019-08-30 Tom Tromey <tom@tromey.com>
116 * tui/tui-wingeneral.c (box_win): Assume win_info and
117 win_info->handle cannot be NULL.
119 2019-08-30 Tom Tromey <tom@tromey.com>
121 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
122 refresh_window>: Declare.
123 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
125 (tui_data_item_window::rerender): Rename from
126 tui_display_register.
127 (tui_data_item_window::refresh_window): New method.
128 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
131 2019-08-30 Tom Tromey <tom@tromey.com>
133 * tui/tui-regs.h (struct tui_data_window) <regs_content,
134 regs_column_count, current_group>: Move later. Now private.
135 <get_current_group>: New method.
136 * tui/tui-regs.c (tui_reg_command): Update.
137 * tui/tui-layout.c (tui_set_layout): Update.
139 2019-08-30 Tom Tromey <tom@tromey.com>
141 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
142 (tui_data_window::rerender): Don't call
143 check_and_display_highlight_if_needed.
144 (tui_data_window::refresh_all): Remove call to
147 2019-08-30 Tom Tromey <tom@tromey.com>
149 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
150 (tui_data_window::display_registers_from)
151 (tui_data_window::display_reg_element_at_line)
152 (tui_data_window::display_registers_from_line): Remove checks of
155 2019-08-30 Tom Tromey <tom@tromey.com>
157 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
159 * tui/tui-regs.c (tui_data_window::show_registers): Call
161 (tui_data_window::rerender): Rename from display_all_data.
162 (tui_data_window::rerender): Remove old implementation.
164 2019-08-30 Tom Tromey <tom@tromey.com>
166 * tui/tui-regs.c (tui_data_window::display_all_data): Change
168 * tui/tui-data.h (NO_DATA_STRING): Remove define.
170 2019-08-29 Bernhard Wodok <barto@gmx.net>
171 Sergio Durigan Junior <sergiodj@redhat.com>
174 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
176 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
178 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
179 when searching for types.
181 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
183 * f-lang.c (f_language_defn): Use f_print_typedef.
184 * f-lang.h (f_print_typedef): Declare.
185 * f-typeprint.c (f_print_typedef): Define.
187 2019-08-27 Christian Biesinger <cbiesinger@google.com>
189 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
191 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
193 * cli/cli-utils.c (info_print_options_defs): Delete.
194 (make_info_print_options_def_group): Delete.
195 (extract_info_print_options): Delete.
196 (info_print_command_completer): Delete.
197 (info_print_args_help): Add extra parameter, and optionally
198 include text about -n flag.
199 * cli/cli-utils.h (struct info_print_options): Delete.
200 (extract_info_print_options): Delete declaration.
201 (info_print_command_completer): Delete declaration.
202 (info_print_args_help): Add extra parameter, extend header
204 * python/python.c (gdbpy_rbreak): Pass additional parameter to
206 * stack.c (struct info_print_options): New type.
207 (info_print_options_defs): New file scoped variable.
208 (make_info_print_options_def_group): New static function.
209 (info_print_command_completer): New static function.
210 (info_locals_command): Update to use new local functions.
211 (info_args_command): Likewise.
212 (_initialize_stack): Add extra parameter to calls to
213 info_print_args_help.
214 * symtab.c (search_symbols): Add extra parameter, use this to
215 possibly excluse non-debug symbols.
216 (symtab_symbol_info): Add extra parameter, which is passed on to
218 (struct info_print_options): New type.
219 (info_print_options_defs): New file scoped variable.
220 (make_info_print_options_def_group): New static function.
221 (info_print_command_completer): New static function.
222 (info_variables_command): Update to use local functions, and pass
223 extra parameter through to symtab_symbol_info.
224 (info_functions_command): Likewise.
225 (info_types_command): Pass additional argument through to
227 (rbreak_command): Pass extra argument to search_symbols.
228 (_initialize_symtab): Add extra arguments for calls to
229 info_print_args_help, and update help text for 'info variables',
230 'whereis', and 'info functions' commands.
231 * symtab.h (search_symbols): Add extra argument to declaration.
232 * NEWS: Mention new flags.
234 2019-08-26 Christian Biesinger <cbiesinger@google.com>
236 * symtab.c (lookup_static_symbol): Call the new function (and move
237 it down to be next to lookup_global_symbol).
238 (struct global_sym_lookup_data): Add block_enum member and rename to...
239 (struct global_or_static_sym_lookup_data): ...this.
240 (lookup_symbol_global_iterator_cb): Pass block_index instead of
241 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
242 (lookup_symbol_global_or_static_iterator_cb): ...this.
243 (lookup_global_or_static_symbol): New function.
244 (lookup_global_symbol): Call new function.
246 2019-08-26 Tom de Vries <tdevries@suse.de>
249 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
250 when pc_probe.prob == NULL.
252 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
254 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
255 variable symbol_linkage to symbol_linkage_.
257 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
259 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
260 represent whether the symbol is static, dynamic, or we don't
263 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
265 * gdb/rx-tdep.c (rx_register_names): New.
266 (rx_register_name): Delete.
267 (rx_psw_type): Delete.
268 (rx_fpsw_type): Delete.
269 (rx_register_type): Delete.
270 (rx_gdbarch_init): Convert target-descriptions.
271 (_initialize_rx_tdep): Add initialize_tdesc_rx.
272 * gdb/features/Makefile: Add rx.xml.
273 * gdb/features/rx.xml: New.
274 * gdb/features/rx.c: Generated.
275 * gdb/NEWS: Mention target description support.
277 2019-08-22 Christian Biesinger <cbiesinger@google.com>
279 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
282 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
284 * configure.ac: Don't check for 'dlfcn.h' (moved to
285 gdbsupport/common.m4).
286 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
288 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
289 * compile/compile-c-support.c: Include
290 'gdbsupport/gdb-dlfcn.h'.
291 * gdbsupport/common.m4: Check for 'dlfcn.h'.
292 * gdb-dlfcn.c: Move to...
293 * gdbsupport/gdb-dlfcn.c: ... here.
294 * gdb-dlfcn.h: Move to...
295 * gdbsupport/gdb-dlfcn.h: ... here.
297 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
299 * nios2-tdep.c (struct reg_value): Improve comments. Make
300 the offset field signed.
302 2019-08-22 Christian Biesinger <cbiesinger@google.com>
304 * python/lib/gdb/__init__.py (_execute_file): New function.
305 * python/python.c (python_run_simple_file): Call gdb._execute_file
308 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
310 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
311 all uses as this was never set to anything but a zero value.
313 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
315 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
317 2019-08-21 Christian Biesinger <cbiesinger@google.com>
319 * tui/tui-data.h (tui_gen_win_info): Add an =default
320 move constructor, required by some GCC versions.
322 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
324 * go32-nat.c (go32_sysinfo): Add hygon_p.
326 2019-08-20 Tom Tromey <tom@tromey.com>
328 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
329 line_from_reg_element_no, first_reg_element_no_inline,
330 display_all_data, delete_data_content_windows,
331 erase_data_content>: Now private.
333 2019-08-20 Tom Tromey <tom@tromey.com>
335 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
336 (tui_unhighlight_win, tui_highlight_win)
337 (tui_win_info::make_window): Update.
338 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
340 2019-08-20 Tom Tromey <tom@tromey.com>
342 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
343 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
344 (MAX_PID_WIDTH): Move to tui-stack.c.
345 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
346 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
347 (MAX_PID_WIDTH): Move from tui-data.h.
349 2019-08-20 Tom Tromey <tom@tromey.com>
351 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
352 * tui/tui-wingeneral.c (box_win): Change type of win_info.
354 (tui_gen_win_info::make_window): Rename from tui_make_window.
355 (tui_win_info::make_window): New method.
356 (tui_gen_win_info::make_visible): Update.
357 * tui/tui-source.c (tui_source_window::set_contents): Update.
358 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
359 (tui_data_window::display_registers_from): Update.
360 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
361 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
365 (struct tui_win_info) <make_window>: Declare.
366 <can_box>: Now virtual.
368 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
369 * tui/tui-command.c (tui_cmd_window::resize): Update.
371 2019-08-20 Tom Tromey <tom@tromey.com>
373 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
374 * tui/tui-regs.c (tui_data_window::show_registers): Update.
375 (tui_data_window::check_register_values): Update.
377 2019-08-20 Tom Tromey <tom@tromey.com>
379 * tui/tui-regs.h (struct tui_data_window): Use
380 DISABLE_COPY_AND_ASSIGN.
381 <regs_content>: Change type, removing unique_ptr.
382 <tui_data_window>: Add move constructor.
383 * tui/tui-regs.c (tui_data_window::show_registers)
384 (tui_data_window::show_register_group)
385 (tui_data_window::display_registers_from)
386 (tui_data_window::display_registers_from)
387 (tui_data_window::first_data_item_displayed)
388 (tui_data_window::delete_data_content_windows)
389 (tui_data_window::rerender, tui_data_window::refresh_window)
390 (tui_data_window::check_register_values): Update.
392 2019-08-20 Tom Tromey <tom@tromey.com>
394 * tui/tui-regs.h (struct tui_data_window) <show_registers,
395 show_register_group>: Declare.
396 (tui_show_register_group): Don't declare.
397 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
399 (tui_data_window::show_register_group): Rename from
400 tui_show_register_group.
401 (tui_data_window::check_register_values, tui_reg_command):
403 * tui/tui-layout.c (tui_set_layout): Update.
405 2019-08-20 Tom Tromey <tom@tromey.com>
407 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
409 (tui_check_register_values): Don't declare.
410 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
411 from tui_check_register_values.
412 * tui/tui-hooks.c (tui_register_changed): Update.
414 2019-08-20 Tom Tromey <tom@tromey.com>
416 * tui/tui-regs.c (tui_reg_layout): Move later.
417 (tui_show_registers): Don't enable TUI mode or change layout.
419 2019-08-20 Tom Tromey <tom@tromey.com>
421 * tui/tui-regs.h (struct tui_data_item_window)
422 <~tui_data_item_window>: Remove.
423 <content>: Now a unique_xmalloc_ptr.
424 * tui/tui-regs.c (tui_register_format): Return a
426 (tui_get_register): Update.
427 (~tui_data_item_window): Remove.
428 (tui_data_window::display_registers_from, tui_display_register):
430 * tui/tui-io.h (tui_expand_tabs): Update.
431 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
432 Remove "col" parameter.
434 2019-08-20 Tom Tromey <tom@tromey.com>
436 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
438 * tui/tui-regs.c (~tui_data_item_window): Update.
440 2019-08-20 Tom Tromey <tom@tromey.com>
442 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
445 2019-08-20 Tom Tromey <tom@tromey.com>
447 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
449 2019-08-20 Tom Tromey <tom@tromey.com>
451 * tui/tui-source.h (struct tui_source_window): Update.
452 * tui/tui-regs.c (tui_show_registers): Update.
453 * tui/tui-disasm.h (struct tui_disasm_window): Update.
454 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
455 (NO_REGS_STRING): Remove defines.
457 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
459 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
460 unnecessary thread walk if remote doesn't support the packet.
462 2019-08-19 Tom Tromey <tromey@adacore.com>
464 * python/py-value.c (value_has_field): Fix indentation.
466 2019-08-19 Tom Tromey <tromey@adacore.com>
468 * printcmd.c (do_one_display, info_display_command): Update.
469 * block.h (contained_in): Return bool. Add allow_nested
471 * block.c (contained_in): Return bool. Add allow_nested
474 2019-08-19 Tom Tromey <tom@tromey.com>
476 * configure: Rebuild.
477 * configure.ac: Disallow the combination of -static-libstdc++ and
479 * source-cache.c (get_language_name): Handle rust.
480 (source_cache::get_source_lines): Ignore highlighting exceptions.
482 2019-08-16 Tom Tromey <tom@tromey.com>
484 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
485 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
486 (struct tui_source_window_base) <make_visible, refresh_window,
487 resize>: Remove methods.
488 <execution_info>: Remove field.
489 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
490 (tui_show_source_line, tui_source_window_base)
491 (~tui_source_window_base): Update.
492 (tui_source_window_base::resize)
493 (tui_source_window_base::make_visible)
494 (tui_source_window_base::refresh_window): Remove.
495 (tui_source_window_base::update_exec_info): Update.
496 * tui/tui-source.c (tui_source_window::set_contents): Update.
497 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
499 2019-08-16 Tom Tromey <tom@tromey.com>
501 * tui/tui-hooks.c (tui_remove_hooks): Don't set
502 deprecated_query_hook.
504 2019-08-16 Tom Tromey <tom@tromey.com>
506 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
507 (tui_update_source_windows_with_line): Update.
508 * tui/tui-source.h (struct tui_source_window)
509 <show_symtab_source>: Declare.
510 (tui_show_symtab_source): Don't declare.
511 * tui/tui-source.c (tui_show_symtab_source): Rename from
512 tui_show_symtab_source.
514 2019-08-16 Tom Tromey <tom@tromey.com>
516 * tui/tui-winsource.h (struct tui_source_window_base)
517 <set_contents>: Declare.
518 * tui/tui-winsource.c
519 (tui_source_window_base::update_source_window_as_is): Update.
520 * tui/tui-source.h (struct tui_source_window) <set_contents>:
522 (tui_set_source_content): Don't declare.
523 * tui/tui-source.c (tui_source_window::set_contents): Rename from
524 tui_set_source_content.
525 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
527 (tui_set_disassem_content): Don't declare.
528 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
529 tui_set_disassem_content.
531 2019-08-16 Tom Tromey <tom@tromey.com>
533 * tui/tui-winsource.h (struct tui_source_window_base)
534 <update_breakpoint_info>: Declare.
535 (tui_update_breakpoint_info): Don't declare.
536 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
537 (tui_update_all_breakpoint_info): Update.
538 (tui_source_window_base::update_breakpoint_info): Rename from
539 tui_update_breakpoint_info.
540 (tui_source_window_base::update_exec_info): Update.
542 2019-08-16 Tom Tromey <tom@tromey.com>
544 * tui/tui-winsource.h (struct tui_source_window_base)
545 <update_source_window>: Declare.
546 (tui_update_source_window): Don't declare.
547 * tui/tui-winsource.c
548 (tui_source_window_base::update_source_window): Rename from
549 tui_update_source_window.
550 (tui_source_window_base::rerender): Update.
551 * tui/tui-source.c (tui_source_window::maybe_update): Update.
552 * tui/tui-disasm.c (tui_show_disassem)
553 (tui_show_disassem_and_update_source)
554 (tui_disasm_window::maybe_update): Update.
556 2019-08-16 Tom Tromey <tom@tromey.com>
558 * tui/tui-winsource.h (struct tui_source_window_base)
559 <update_source_window_as_is>: Declare.
560 (tui_update_source_window_as_is): Don't declare.
561 * tui/tui-winsource.c (tui_update_source_window): Update
562 (tui_source_window_base::update_source_window_as_is): Rename from
563 tui_update_source_window_as_is.
564 (tui_source_window_base::refill): Update.
565 * tui/tui-source.c (tui_show_symtab_source): Update.
566 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
569 2019-08-16 Tom Tromey <tom@tromey.com>
571 * tui/tui-winsource.h (tui_update_source_window)
572 (tui_update_source_window_as_is): Remove "noerror" parameter.
573 * tui/tui-winsource.c (tui_update_source_window)
574 (tui_update_source_window_as_is): Remove "noerror" parameter.
575 (tui_update_source_windows_with_addr)
576 (tui_update_source_windows_with_line)
577 (tui_source_window_base::rerender)
578 (tui_source_window_base::refill): Update.
579 * tui/tui-source.h (tui_set_source_content)
580 (tui_show_symtab_source): Remove "noerror" parameter.
581 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
583 (tui_show_symtab_source): Likewise.
584 (tui_source_window::maybe_update): Update.
585 * tui/tui-disasm.c (tui_show_disassem)
586 (tui_show_disassem_and_update_source)
587 (tui_disasm_window::do_scroll_vertical)
588 (tui_disasm_window::maybe_update): Update.
590 2019-08-16 Tom Tromey <tom@tromey.com>
592 * tui/tui.c (tui_is_window_visible): Update.
593 * tui/tui-wingeneral.c (tui_make_window)
594 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
595 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
596 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
597 (tui_set_win_height_command, parse_scrolling_args): Update.
598 * tui/tui-source.c (tui_source_window::style_changed): Update.
599 * tui/tui-regs.c (tui_show_registers)
600 (tui_data_window::first_data_item_displayed)
601 (tui_data_window::delete_data_content_windows)
602 (tui_check_register_values, tui_reg_command): Update.
603 * tui/tui-disasm.c (tui_show_disassem): Update.
604 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
606 <is_visible>: Remove field.
607 * tui/tui-data.c (tui_next_win, tui_prev_win)
608 (tui_delete_invisible_windows): Update.
610 2019-08-16 Tom Tromey <tom@tromey.com>
612 * tui/tui-winsource.h (struct tui_source_window_base)
613 <m_has_locator>: Remove.
614 * tui/tui-layout.c (show_source_disasm_command, show_data)
615 (show_source_or_disasm_and_command): Update.
617 2019-08-16 Alan Hayward <alan.hayward@arm.com>
619 * NEWS (Other MI changes): New subsection.
620 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
621 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
622 * arch-utils.c (default_get_pc_address_flags): New function.
623 * arch-utils.h (default_get_pc_address_flags): New declaration.
624 * gdbarch.sh: Add get_pc_address_flags.
625 * gdbarch.c: Regenerate.
626 * gdbarch.h: Likewise.
627 * stack.c (print_pc): New function.
628 (print_frame_info) (print_frame): Call print_pc.
630 2019-08-16 Tom de Vries <tdevries@suse.de>
632 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
633 print_objfile_section_info.
635 2019-08-15 Tom Tromey <tom@tromey.com>
637 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
638 calling update_cmdwin_start_line.
639 * tui/tui-winsource.h (struct tui_source_window_base)
640 <do_make_visible_with_new_height, set_new_height>: Don't declare.
642 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
644 (tui_source_window_base::set_new_height): Remove.
645 (tui_source_window_base::rerender): Rename from
646 do_make_visible_with_new_height.
647 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
649 (tui_win_info::make_invisible_and_set_new_height)
650 (tui_win_info::make_visible_with_new_height): Remove.
651 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
653 * tui/tui-stack.c (tui_locator_window::rerender): New method.
654 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
655 do_make_visible_with_new_height>: Don't declare.
657 * tui/tui-regs.c (tui_data_window::rerender): Rename from
659 (tui_data_window::do_make_visible_with_new_height): Remove.
660 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
661 call tui_show_locator_content.
662 (tui_gen_win_info::resize): Call rerender.
663 (show_source_or_disasm_and_command): Don't call
664 tui_show_locator_content.
665 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
667 (struct tui_win_info) <rerender>: Declare.
668 <set_new_height, make_invisible_and_set_new_height,
669 make_visible_with_new_height>: Don't declare.
670 * tui/tui-data.c (tui_win_list::rerender): New method.
671 * tui/tui-command.h (struct tui_cmd_window)
672 <do_make_visible_with_new_height>: Don't declare.
674 (tui_cmd_window::do_make_visible_with_new_height): Remove.
676 2019-08-15 Tom Tromey <tromey@adacore.com>
678 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
679 * ada-lang.c (ada_enum_name): Likewise.
681 2019-08-15 Christian Biesinger <cbiesinger@google.com>
683 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
685 (GdbOutputErrorFile): Likewise.
686 (global scope): Adjust constructor calls to GdbOutput{,Error}File
688 (execute_unwinders): Rename to have a leading underscore.
689 (auto_load_packages): Likewise.
690 (global scope): Adjust call to auto_load_packages accordingly.
691 (GdbSetPythonDirectory): Likewise.
692 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
693 instead of execute_unwinders.
695 2019-08-15 Tom Tromey <tom@tromey.com>
697 * tui/tui-layout.c (show_layout, show_source_disasm_command)
698 (show_data): Don't change window visibility.
699 (tui_gen_win_info::resize): Remove special case for command
700 window. Use wresize, when available.
701 (show_source_or_disasm_and_command): Don't change window
703 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
704 <make_visible>: New method.
705 * tui/tui-command.c (tui_cmd_window::resize): New method.
707 2019-08-15 Tom Tromey <tom@tromey.com>
709 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
710 (struct tui_source_windows): New.
711 * tui/tui-winsource.c (tui_display_main): Update.
712 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
713 (new_height_ok, parse_scrolling_args): Update.
714 * tui/tui-layout.c (show_layout, show_data): Update.
715 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
716 (tui_add_to_source_windows): Don't declare.
717 * tui/tui-data.c (source_windows, tui_source_windows)
718 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
720 2019-08-15 Tom Tromey <tom@tromey.com>
722 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
724 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
725 * tui/tui-layout.c (show_source_disasm_command, show_data):
727 (tui_gen_win_info::resize): Rename.
728 (show_source_or_disasm_and_command): Update.
729 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
732 2019-08-15 Tom Tromey <tom@tromey.com>
734 * tui/tui-stack.c (tui_initialize_static_data): Remove.
735 * tui/tui-interp.c (tui_interp::init): Don't call
736 tui_initialize_static_data.
737 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
739 2019-08-15 Tom Tromey <tom@tromey.com>
741 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
742 examine tui_win_list.
744 2019-08-15 Tom Tromey <tom@tromey.com>
746 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
747 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
748 tui_clear_source_content.
749 (tui_clear_source_content): Remove.
750 (tui_source_window_base::do_erase_source_content): Hoist call to
752 * tui/tui-stack.c (tui_show_frame_info): Don't call
753 tui_clear_source_content.
755 2019-08-15 Tom Tromey <tom@tromey.com>
757 * tui/tui-winsource.h (struct tui_source_window_base)
758 <do_erase_source_content>: New method.
759 <erase_source_content>: New method.
760 (tui_erase_source_content): Don't declare.
761 * tui/tui-winsource.c (tui_clear_source_content): Update.
762 (tui_source_window_base::do_erase_source_content): Rename from
763 tui_erase_source_content.
764 (tui_source_window_base::show_source_content): Update.
765 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
766 * tui/tui-source.h (struct tui_source_window)
767 <erase_source_content>: New method.
768 * tui/tui-disasm.h (struct tui_disasm_window)
769 <erase_source_content>: New method.
771 2019-08-15 Tom Tromey <tom@tromey.com>
773 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
774 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
776 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
777 * tui/tui-source.c (tui_set_source_content): Update.
778 * tui/tui-disasm.c (tui_set_disassem_content): Update.
780 2019-08-15 Tom Tromey <tom@tromey.com>
782 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
783 * tui/tui-winsource.c (tui_line_is_displayed): Move to
785 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
787 * tui/tui-source.c (tui_source_window::line_is_displayed): New
789 (tui_source_window::maybe_update): Update.
791 2019-08-15 Tom Tromey <tom@tromey.com>
793 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
794 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
796 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
798 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
800 (tui_disasm_window::maybe_update): Update.
802 2019-08-15 Tom Tromey <tom@tromey.com>
804 * tui/tui-winsource.h (struct tui_source_window_base)
805 <maybe_update>: Declare.
806 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
808 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
810 * tui/tui-source.c (tui_source_window::maybe_update): New method.
811 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
813 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
815 2019-08-15 Tom Tromey <tom@tromey.com>
817 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
819 2019-08-15 Tom Tromey <tom@tromey.com>
821 * tui/tui-wingeneral.c: Include tui-stack.h.
822 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
823 (struct tui_locator_window): Move from tui-data.h.
824 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
825 (tui_initialize_static_data): Move from tui-data.c.
826 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
827 (struct tui_locator_window): Move to tui-stack.c.
828 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
829 (tui_initialize_static_data): Move to tui-stack.c.
831 2019-08-15 Tom Tromey <tom@tromey.com>
833 * tui/tui-layout.c (show_source_disasm_command)
834 (show_source_or_disasm_and_command): Use make_visible method, not
836 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
839 2019-08-15 Tom Tromey <tom@tromey.com>
841 * tui/tui-wingeneral.h (tui_make_window): Update.
842 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
844 (tui_gen_win_info::make_visible): Update.
845 * tui/tui-regs.c (tui_data_window::display_registers_from):
847 * tui/tui-layout.c (show_source_disasm_command)
848 (show_source_or_disasm_and_command): Update.
849 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
850 (enum tui_box): Remove.
851 (struct tui_win_info) <can_box>: New method.
852 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
855 2019-08-15 Tom de Vries <tdevries@suse.de>
857 * linux-nat-trad.c: Include gdbarch.h.
859 2019-08-14 Alan Hayward <alan.hayward@arm.com>
861 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
864 2019-08-14 Tom Tromey <tromey@adacore.com>
866 * darwin-nat.c: Include gdbarch.h.
867 * darwin-nat-info.c: Include gdbarch.h.
869 2019-08-13 Tom Tromey <tom@tromey.com>
871 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
873 * tui/tui-data.c (tui_initialize_static_data): Update.
875 2019-08-13 Tom Tromey <tom@tromey.com>
877 * tui/tui-winsource.h (struct tui_exec_info_window)
878 <~tui_exec_info_window, maybe_allocate_content, get_content,
880 (struct tui_source_window_base) <set_exec_info_content,
881 show_exec_info_content>: Don't declare.
882 * tui/tui-winsource.c
883 (tui_exec_info_window::maybe_allocate_content): Remove.
884 (tui_source_window_base::update_exec_info): Rename from
885 set_exec_info_content.
886 (tui_source_window_base::show_exec_info_content)
887 (tui_source_window_base::update_exec_info): Remove.
889 2019-08-13 Tom Tromey <tom@tromey.com>
891 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
893 * tui/tui-winsource.c (tui_update_source_window_as_is)
894 (tui_update_source_windows_with_addr, tui_erase_source_content):
896 (tui_clear_exec_info_content): Remove.
898 2019-08-13 Tom Tromey <tom@tromey.com>
900 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
902 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
903 call tui_erase_exec_info_content.
904 (tui_clear_exec_info_content): Rename from
905 tui_erase_exec_info_content.
906 (tui_clear_exec_info_content): Delete.
908 2019-08-13 Tom Tromey <tom@tromey.com>
910 * tui/tui-winsource.h (struct tui_source_window_base)
911 <show_exec_info_content>: Declare.
912 (tui_show_exec_info_content): Don't declare.
913 * tui/tui-winsource.c
914 (tui_source_window_base::show_exec_info_content): Rename from
915 tui_show_exec_info_content.
916 (tui_source_window_base::update_exec_info): Update.
918 2019-08-13 Tom Tromey <tom@tromey.com>
920 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
921 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
922 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
923 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
924 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
925 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
928 2019-08-13 Tom Tromey <tom@tromey.com>
930 * tui/tui-winsource.h (struct tui_source_window_base)
931 <update_exec_info>: Declare.
932 (tui_update_exec_info): Don't declare.
933 * tui/tui-winsource.c (tui_update_source_window_as_is)
934 (tui_source_window_base::refresh_all)
935 (tui_update_all_breakpoint_info): Update.
936 (tui_source_window_base::update_exec_info): Rename from
937 tui_update_exec_info.
938 * tui/tui-stack.c (tui_show_frame_info): Update.
940 2019-08-13 Tom Tromey <tom@tromey.com>
942 * tui/tui-winsource.h (struct tui_source_window_base)
943 <set_exec_info_content>: Declare.
944 (tui_set_exec_info_content): Don't declare.
945 * tui/tui-winsource.c
946 (tui_source_window_base::set_exec_info_content): Rename from
947 tui_set_exec_info_content.
948 (tui_update_exec_info): Update.
950 2019-08-13 Tom Tromey <tom@tromey.com>
952 * tui/tui-winsource.h (struct tui_source_window_base)
953 <show_source_content>: Declare.
954 (tui_show_source_content): Don't declare.
955 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
956 (tui_source_window_base::show_source_content): Rename from
957 tui_show_source_content.
958 (tui_source_window_base::refresh_all): Update.
959 * tui/tui-layout.c (show_source_disasm_command)
960 (show_source_or_disasm_and_command): Update.
962 2019-08-13 Tom Tromey <tom@tromey.com>
964 * tui/tui-winsource.c (tui_erase_source_content)
965 (tui_show_source_content, tui_source_window_base::refresh_all):
967 * tui/tui-wingeneral.h
968 (tui_check_and_display_highlight_if_needed): Don't declare.
969 * tui/tui-wingeneral.c
970 (tui_win_info::check_and_display_highlight_if_needed): Rename from
971 check_and_display_highlight_if_needed.
972 * tui/tui-win.c (tui_rehighlight_all)
973 (tui_win_info::make_visible_with_new_height): Update.
974 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
975 (tui_data_window::erase_data_content)
976 (tui_data_window::display_all_data): Update.
977 * tui/tui-data.h (struct tui_win_info)
978 <check_and_display_highlight_if_needed>: Declare.
980 2019-08-13 Tom Tromey <tom@tromey.com>
982 * tui/tui-win.c (tui_resize_all): Call
983 tui_delete_invisible_windows.
984 * tui/tui-layout.c (show_layout): Call
985 tui_delete_invisible_windows.
986 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
987 * tui/tui-data.c (tui_delete_invisible_windows): New function.
989 2019-08-13 Tom Tromey <tom@tromey.com>
991 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
992 tui_add_win_to_layout.
994 2019-08-13 Tom Tromey <tom@tromey.com>
996 * tui/tui-layout.h (tui_default_win_height): Don't declare.
997 * tui/tui-layout.c (tui_default_win_height): Now static.
999 2019-08-13 Tom Tromey <tom@tromey.com>
1001 * tui/tui-layout.c (show_layout): Unify all layout cases into a
1003 (show_source_disasm_command, show_source_or_disasm_and_command):
1004 Don't check current layout.
1006 2019-08-13 Tom Tromey <tom@tromey.com>
1008 * tui/tui-wingeneral.c (make_all_visible): Remove.
1009 (tui_make_all_invisible): Simplify.
1010 * tui/tui-layout.c (tui_make_all_invisible): Move from
1011 tui-wingeneral.c; simplify.
1012 (show_layout): Hoist call to tui_make_all_invisible.
1013 (show_data): Don't call tui_make_all_invisible.
1015 2019-08-13 Tom Tromey <tom@tromey.com>
1017 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
1018 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
1020 2019-08-13 Tom Tromey <tom@tromey.com>
1022 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
1024 (show_source_disasm_command, show_data)
1025 (show_source_or_disasm_and_command): Don't use
1026 tui_set_current_layout_to.
1027 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
1028 * tui/tui-data.c (current_layout, tui_current_layout): Move to
1030 (tui_set_current_layout_to): Remove.
1032 2019-08-13 Tom Tromey <tom@tromey.com>
1034 * tui/tui-layout.c (tui_set_layout): Update.
1035 * tui/tui-data.h (struct tui_layout_def): Remove.
1036 (tui_layout_def): Don't declare.
1037 * tui/tui-data.c (layout_def): Remove.
1038 (tui_layout_def): Remove.
1040 2019-08-13 Tom Tromey <tom@tromey.com>
1042 * tui/tui-winsource.h (struct tui_source_window_base)
1043 <clear_detail>: No longer "override".
1044 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
1045 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
1046 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
1047 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
1049 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
1051 2019-08-13 Tom Tromey <tromey@adacore.com>
1053 * tracepoint.c: Don't include readline.h or history.h.
1055 2019-08-12 Tom Tromey <tom@tromey.com>
1057 * configure: Rebuild.
1058 * configure.ac: Check for readline 7.
1059 * NEWS: Mention readline 7 requirement.
1062 2019-08-12 Tom Tromey <tom@tromey.com>
1064 * mingw-hdep.c (gdb_select): Remove readline hack.
1066 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1068 * blockframe.c (find_pc_partial_function): Set *block to nullptr
1069 when the function fails.
1071 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
1073 * s390-tdep.c (s390_type_align): New function.
1074 (s390_gdbarch_init): Set it as type_align gdbarch method.
1076 2019-08-09 Tom de Vries <tdevries@suse.de>
1079 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
1080 pc_low with relocation offset.
1082 2019-08-07 Tom Tromey <tromey@adacore.com>
1084 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
1085 (print_frame_args): Update.
1086 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
1088 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1089 * frame.h (struct frame_arg): Add initializers.
1090 <error>: Now a unique_xmalloc_ptr.
1092 2019-08-07 Alan Hayward <alan.hayward@arm.com>
1094 * NEWS: Expand the Pointer Authentication entry.
1095 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
1096 (aarch64_frame_unmask_lr): ... to this.
1097 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
1098 Call aarch64_frame_unmask_lr.
1099 * frame.c (struct frame_info): Add "masked" variable.
1100 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
1101 (fprint_frame): Check for masked pc.
1102 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
1104 * python/py-framefilter.c (py_print_frame): Check for masked pc.
1105 * stack.c (print_frame): Check for masked pc.
1107 2019-08-06 Tom Tromey <tom@tromey.com>
1109 * stabsread.c (patch_block_stabs, read_one_struct_field)
1110 (read_enum_type): Use obstack_strndup.
1111 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
1112 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
1113 * dwarf2read.c (guess_full_die_structure_name)
1114 (anonymous_struct_prefix): Use obstack_strndup.
1115 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
1116 * c-exp.y (yylex): Use obstack_strndup.
1117 * ada-exp.y (write_object_renaming, write_ambiguous_var)
1118 (write_var_or_type): Use obstack_strndup.
1120 2019-08-06 Tom Tromey <tom@tromey.com>
1122 * symfile.c (reread_symbols): Use obstack_strdup.
1123 * stabsread.c (read_type): Use obstack_strdup.
1124 * gdb_obstack.h (obstack_strdup): New overload.
1125 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
1126 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
1127 (dwarf2_canonicalize_name): Use obstack_strdup.
1128 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
1129 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
1132 2019-08-06 Tom Tromey <tom@tromey.com>
1134 * gdb_obstack.h (obstack_strdup): Define.
1135 * gdb_obstack.c (obstack_strdup): Don't define.
1137 2019-08-06 Tom Tromey <tom@tromey.com>
1139 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
1141 * typeprint.c (typedef_hash_table::find_global_typedef): Use
1143 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
1144 * stabsread.c (common_block_start): Use obstack_strdup.
1145 * objfiles.c (set_objfile_main_name, objfile): Use
1147 * namespace.c (add_using_directive): Use obstack_strdup.
1148 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
1149 * jit.c (finalize_symtab): Use obstack_strdup.
1150 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
1151 (guess_partial_die_structure_name, partial_die_info::fixup)
1152 (dwarf2_name): Use obstack_strdup.
1153 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
1155 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
1156 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
1158 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
1160 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1162 * unittests/help-doc-selftests.c: New file.
1163 * Makefile.in: Add the new file.
1165 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1167 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
1168 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
1169 the full first line, except when FOR_VALUE_PREFIX. In this case,
1170 the trailing '.' is not output, and the first character is uppercased.
1171 (print_help_for_command): Update call to print_doc_line.
1172 (print_doc_of_command): Likewise.
1173 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
1174 * cli/cli-option.c (append_indented_doc): Do not append newline.
1175 (build_help_option): Append newline after first appended_indented_doc
1176 only if a second call is done.
1177 (build_help): Append 2 new lines before each option, except the first
1179 * compile/compile.c (_initialize_compile): Add new lines after
1180 %OPTIONS%, when not at the end of the help.
1181 Change help doc or code
1182 producing the help doc to respect the invariants.
1183 * maint-test-options.c (_initialize_maint_test_options): Likewise.
1184 Also removed the new line after 'Options:', as all other commands
1185 do not put an empty line between 'Options:' and the first option.
1186 * printcmd.c (_initialize_printcmd): Likewise.
1187 * stack.c (_initialize_stack): Likewise.
1188 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
1189 incorrectly telling COMMAND is optional.
1190 * ada-lang.c (_initialize_ada_language): Change help doc or code
1191 producing the help doc to respect the invariants.
1192 * ada-tasks.c (_initialize_ada_tasks): Likewise.
1193 * breakpoint.c (_initialize_breakpoint): Likewise.
1194 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
1195 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
1196 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
1197 * cli/cli-style.c (cli_style_option::add_setshow_commands,
1198 _initialize_cli_style): Likewise.
1199 * corelow.c (core_target_info): Likewise.
1200 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
1201 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
1202 * filesystem.c (_initialize_filesystem): Likewise.
1203 * frame.c (_initialize_frame): Likewise.
1204 * gnu-nat.c (add_task_commands): Likewise.
1205 * infcall.c (_initialize_infcall): Likewise.
1206 * infcmd.c (_initialize_infcmd): Likewise.
1207 * interps.c (_initialize_interpreter): Likewise.
1208 * language.c (_initialize_language): Likewise.
1209 * linux-fork.c (_initialize_linux_fork): Likewise.
1210 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
1211 * maint.c (_initialize_maint_cmds): Likewise.
1212 * memattr.c (_initialize_mem): Likewise.
1213 * printcmd.c (_initialize_printcmd): Likewise.
1214 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
1216 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
1217 * record-btrace.c (_initialize_record_btrace): Likewise.
1218 * record-full.c (_initialize_record_full): Likewise.
1219 * record.c (_initialize_record): Likewise.
1220 * regcache-dump.c (_initialize_regcache_dump): Likewise.
1221 * regcache.c (_initialize_regcache): Likewise.
1222 * remote.c (add_packet_config_cmd, init_remote_threadtests,
1223 _initialize_remote): Likewise.
1224 * ser-tcp.c (_initialize_ser_tcp): Likewise.
1225 * serial.c (_initialize_serial): Likewise.
1226 * skip.c (_initialize_step_skip): Likewise.
1227 * source.c (_initialize_source): Likewise.
1228 * stack.c (_initialize_stack): Likewise.
1229 * symfile.c (_initialize_symfile): Likewise.
1230 * symtab.c (_initialize_symtab): Likewise.
1231 * target-descriptions.c (_initialize_target_descriptions): Likewise.
1232 * top.c (init_main): Likewise.
1233 * tracefile-tfile.c (tfile_target_info): Likewise.
1234 * tracepoint.c (_initialize_tracepoint): Likewise.
1235 * tui/tui-win.c (_initialize_tui_win): Likewise.
1236 * utils.c (add_internal_problem_command): Likewise.
1237 * valprint.c (value_print_option_defs): Likewise.
1239 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
1242 * configure.ac: Drop enable-libmcheck support.
1243 * configure, config.in: Rebuild.
1244 * libmcheck.m4: Remove.
1245 * acinclude.m4: Don't include it.
1246 * Makefile.in: Don't distribute it.
1247 * top.c (print_gdb_configuration): Don't mention it.
1249 2019-08-06 Tom Tromey <tom@tromey.com>
1251 * utils.c (set_output_style): Sometimes pass stream to
1253 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
1254 * record-btrace.c (btrace_insn_history): Update.
1255 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
1257 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
1258 Update initializers.
1259 <m_uiout>: New field.
1261 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1262 Remove "uiout" parameter.
1263 (dump_insns): Update.
1264 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
1265 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
1267 2019-08-06 Christian Biesinger <cbiesinger@google.com>
1269 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
1270 (error_in_psymtab_expansion): Likewise.
1271 (lookup_symbol_via_quick_fns): Likewise.
1272 (basic_lookup_transparent_type_quick): Likewise.
1273 (basic_lookup_transparent_type_1): Likewise.
1275 2019-08-06 Tom Tromey <tromey@adacore.com>
1277 * source.c (last_source_error): Now bool.
1278 (print_source_lines_base): Make "noprint" bool. Only open
1279 source file when last_source_visited changes.
1281 2019-08-06 Tom Tromey <tromey@adacore.com>
1283 * annotate.c (annotate_source_line): Use g_source_cache.
1284 * source-cache.c (source_cache::get_plain_source_lines): Change
1285 parameters. Populate m_offset_cache.
1286 (source_cache::ensure): New method.
1287 (source_cache::get_line_charpos): New method.
1288 (extract_lines): Move lower. Change parameters.
1289 (source_cache::get_source_lines): Move lower.
1290 * source-cache.h (class source_cache): Update comment.
1291 <get_line_charpos>: New method.
1292 <get_source_lines>: Update comment.
1293 <clear>: Clear m_offset_cache.
1294 <get_plain_source_lines>: Change parameters.
1295 <ensure>: New method
1296 <m_offset_cache>: New member.
1297 * source.c (forget_cached_source_info_for_objfile): Update.
1298 (info_source_command): Use g_source_cache.
1299 (find_source_lines, open_source_file_with_line_charpos): Remove.
1300 (print_source_lines_base, search_command_helper): Use g_source_cache.
1301 * source.h (open_source_file_with_line_charpos): Don't declare.
1302 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
1303 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
1306 2019-08-06 Tom Tromey <tromey@adacore.com>
1308 * source-cache.c (source_cache::get_plain_source_lines):
1309 Remove "first_line" and "last_line" parameters.
1310 (source_cache::get_source_lines): Cache plain text.
1311 * source-cache.h (class source_cache)
1312 <get_plain_source_lines>: Update.
1314 2019-08-06 Tom Tromey <tromey@adacore.com>
1316 * source-cache.c (extract_lines): No longer a method.
1317 Changed type of parameter. Include final newline.
1318 (selftests::extract_lines_test): New function.
1319 (_initialize_source_cache): Likewise.
1320 * source-cache.h (class source_cache)
1321 <extract_lines>: Don't declare.
1323 2019-08-06 Tom Tromey <tromey@adacore.com>
1325 * breakpoint.c (init_breakpoint_sal): Update.
1326 (breakpoint): Update.
1327 * breakpoint.h (struct breakpoint) <filter>: Now a
1330 2019-08-05 Christian Biesinger <cbiesinger@google.com>
1332 * NEWS: Mention dictionary access on blocks.
1333 * python/py-block.c (blpy_getitem): New function.
1334 (block_object_as_mapping): New struct.
1335 (block_object_type): Use new struct for tp_as_mapping field.
1337 2019-08-05 Christian Biesinger <cbiesinger@google.com>
1339 * objfiles.h (objfile): Add a comment describing partial symbols.
1341 2019-08-05 Tom Tromey <tromey@adacore.com>
1343 * compile/compile.c (_initialize_compile): Use _(), not N_().
1344 * thread.c (_initialize_thread): Use _(), not N_().
1345 * stack.c (_initialize_stack): Use _(), not N_().
1346 * printcmd.c (_initialize_printcmd): Use _(), not N_().
1348 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1350 * dwarf2read.c (struct dw2_symtab_iterator):
1351 <want_specific_block>: Remove.
1352 <block_index>: Change type to gdb::optional.
1353 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
1354 change type of BLOCK_INDEX parameter to gdb::optional.
1355 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
1356 (dw2_lookup_symbol): Don't pass argument for
1357 WANT_SPECIFIC_BLOCK.
1358 (dw2_expand_symtabs_for_function): Don't pass argument for
1359 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
1360 (class dw2_debug_names_iterator)
1361 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
1362 parameter, change BLOCK_INDEX type to gdb::optional.
1363 <m_want_specific_block>: Remove.
1364 <m_block_index>: Change type to gdb::optional.
1365 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
1366 gdb::optional. Re-write in function of gdb::optional.
1367 (dw2_debug_names_lookup_symbol): Don't pass argument for
1368 WANT_SPECIFIC_BLOCK.
1369 (dw2_debug_names_expand_symtabs_for_function): Don't pass
1370 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
1373 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1375 * NEWS: Mention changes to "info sources" command.
1377 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1379 * symtab.c (filename_partial_match_opts): New struct type.
1380 (struct output_source_filename_data): New members
1381 regexp, c_regexp, partial_match.
1382 (output_source_filename): Use new members to decide to print file.
1383 (info_sources_option_defs): New variable.
1384 (make_info_sources_options_def_group, print_info_sources_header,
1385 info_sources_command_completer):
1387 (info_sources_command): Read new optional arguments.
1388 (_initialize_symtab): Update info sources help.
1390 2019-08-02 Alexandre Oliva <oliva@adacore.com>
1392 * ada-lang.c (exception_support_info_v0): Renamed from...
1393 (default_exception_support_info): ... this. Create new
1395 (ada_has_this_exception_support): Look up catch_handlers_sym.
1396 (ada_exception_support_info_sniffer): Try v0 after default.
1398 2019-08-01 Tom Tromey <tromey@adacore.com>
1400 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
1403 2019-08-01 Christian Biesinger <cbiesinger@google.com>
1405 * s12z-tdep.c: Fix include path for s12z-opc.h.
1407 2019-08-01 Alan Hayward <alan.hayward@arm.com>
1409 * NEWS: Require GNU make 3.82.
1411 2019-07-16 Tom Tromey <tom@tromey.com>
1413 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
1416 2019-07-30 Tom Tromey <tromey@adacore.com>
1418 * block.c (contained_in): Remove BLOCK_FUNCTION check.
1420 2019-07-30 Kevin Buettner <kevinb@redhat.com>
1422 * printcmd.c (print_address_symbolic): Print negative offsets.
1423 (build_address_symbolic): Force signed arithmetic when computing
1426 2019-07-30 Christian Biesinger <cbiesinger@google.com>
1428 PR/24474: Add a function to lookup static variables.
1429 * NEWS: Mention this new function.
1430 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
1431 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
1432 * python/python.c (python_GdbMethods): Add new function.
1434 2019-07-29 Christian Biesinger <cbiesinger@google.com>
1436 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
1437 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
1438 (objfpy_lookup_static_symbol): New function.
1439 (objfile_object_methods): Add new functions.
1441 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1443 * NEWS: Mention 'set|show print frame-info'. Mention new
1444 'presence' value for 'frame-arguments'. Mention new '-frame-info'
1445 backtrace argument. Mention that python frame filtering code
1446 is now consistent with what 'backtrace' command prints.
1448 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1450 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
1452 (print_frame_info_auto, print_frame_info_source_line,
1453 print_frame_info_location, print_frame_info_source_and_location,
1454 print_frame_info_location_and_address, print_frame_info_short_location):
1456 (struct frame_print_options): New member print_frame_info.
1457 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
1458 * stack.h (get_user_print_what_frame_info): New declaration.
1459 (frame_show_address): New declaration.
1460 * stack.c (print_frame_arguments_choices): New value 'presence'.
1461 (print_frame_info_auto, print_frame_info_source_line,
1462 print_frame_info_location, print_frame_info_source_and_location,
1463 print_frame_info_location_and_address, print_frame_info_short_location,
1464 print_frame_info_choices, print_frame_info_print_what): New definitions.
1465 (print_frame_args): Only print dots for args if print frame-arguments
1467 (frame_print_option_defs): New element for "frame-info".
1468 (get_user_print_what_frame_info): New function.
1469 (frame_show_address): Make non static. Move comment to stack.h.
1470 (print_frame_info_to_print_what): New function.
1471 (print_frame_info): Update comment. Use fp_opts.print_frame_info
1472 to decide what to print.
1473 (backtrace_command_1): Handle the new print_frame_arguments_presence
1475 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
1476 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
1477 (py_print_frame): In non-mi mode, use LOCATION as default for
1478 print_what, similarly to frame information printed directly by
1479 backtrace command. Handle frame-info user option in non MI mode.
1481 2019-07-27 Kevin Buettner <kevinb@redhat.com>
1483 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
1484 Add case for debugging 32-bit target on 64-bit host. Revise
1487 2019-07-27 Kevin Buettner <kevinb@redhat.com>
1489 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
1490 instead of find_function_entry_range_from_pc.
1492 2019-07-27 Kevin Buettner <kevinb@redhat.com>
1494 * stack.c (find_frame_funname): Remove code which preferred
1495 minsym over symtab sym in "certain pathological cases".
1497 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
1498 parameter. Change type of "do_demangle" to bool.
1499 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1500 Pass suitable "prefer_sym_over_minsym" flag to
1501 build_address_symbolic(). Don't output "+" for negative offsets.
1502 * printcmd.c (print_address_symbolic): Update invocation of
1503 build_address_symbolic to include a "prefer_sym_over_minsym"
1505 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
1506 Restrict cases in which use of minimal symbol is preferred to that
1507 of a found symbol. Update comments.
1509 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
1510 for entry pc when entry pc is out of range for that FDE.
1512 2019-07-26 Brian Callahan <bcallah@openbsd.org>
1515 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
1518 2019-07-25 Christian Biesinger <cbiesinger@google.com>
1520 * python/py-objfile.c (add_separate_debug_file): Fix comment about
1521 this function's Python signature.
1524 2019-07-24 Christian Biesinger <cbiesinger@google.com>
1526 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
1527 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
1528 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
1529 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
1530 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
1533 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
1535 * h8300-tdep.c (h8300_register_name_common): New.
1536 h8300_register_name): Use h8300_register_name_common.
1537 (h8300s_register_name): Likewise.
1538 (h8300sx_register_name): Likewise.
1539 (h8300h_register_nam): New.
1540 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
1543 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
1545 * arm-tdep.c (arm_skip_cmse_entry): New function.
1546 (arm_is_sgstubs_section): New function.
1547 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
1549 2019-07-22 Tom Tromey <tom@tromey.com>
1551 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
1554 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1556 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
1559 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1561 * symtab.c (search_symbols): Adjust msymbol matching type arrays
1562 so that GDB doesn't match any msymbols when searching in the
1564 (print_symbol_info): Print using typedef_print or type_print based
1565 on the type of the symbol. Add updated FIXME comment moved from...
1566 (_initialize_symtab): ... move and update FIXME comment to above.
1568 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1570 * NEWS: Mention adding -q option to "info types".
1571 * symtab.c (struct info_types_options): New struct.
1572 (info_types_options_defs): New variable.
1573 (make_info_types_options_def_group): New function.
1574 (info_types_command): Use gdb::option framework to parse options.
1575 (info_types_command_completer): New function.
1576 (_initialize_symtab): Extend the help text on "info types" and
1577 register command completer.
1579 2019-07-21 Christian Biesinger <cbiesinger@google.com>
1581 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
1582 (lookup_symbol_in_objfile): Change int to block_enum and add a
1583 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
1585 2019-07-20 Christian Biesinger <cbiesinger@google.com>
1587 * MAINTAINERS (Write After Approval): Add self.
1589 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
1591 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
1592 instruction to the dummy code region.
1594 2019-07-19 Tom Tromey <tromey@adacore.com>
1596 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
1597 (ARGSUSED, PARAMS, __func__): Remove rules.
1599 2019-07-19 Alan Hayward <alan.hayward@arm.com>
1601 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
1602 * features/arm/arm-with-iwmmxt.c: Remove.
1603 * features/arm/arm-with-iwmmxt.xml: Remove.
1604 * features/arm/arm-with-m-fpa-layout.c: Remove.
1605 * features/arm/arm-with-m-fpa-layout.xml: Remove.
1606 * features/arm/arm-with-m-vfp-d16.c: Remove.
1607 * features/arm/arm-with-m-vfp-d16.xml: Remove.
1608 * features/arm/arm-with-m.c: Remove.
1609 * features/arm/arm-with-m.xml: Remove.
1610 * features/arm/arm-with-neon.c: Remove.
1611 * features/arm/arm-with-neon.xml: Remove.
1612 * features/arm/arm-with-vfpv2.c: Remove.
1613 * features/arm/arm-with-vfpv2.xml: Remove.
1614 * features/arm/arm-with-vfpv3.c: Remove.
1615 * features/arm/arm-with-vfpv3.xml: Remove.
1617 2019-07-19 Alan Hayward <alan.hayward@arm.com>
1619 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
1621 2019-07-19 Alan Hayward <alan.hayward@arm.com>
1623 * arch/aarch32.c (aarch32_create_target_description): Create
1624 target descriptions using features.
1625 * arch/arm.c (arm_create_target_description)
1626 (arm_create_mprofile_target_description): Likewise.
1627 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
1629 2019-07-19 Alan Hayward <alan.hayward@arm.com>
1631 * Makefile.in: Add new files.
1632 * aarch32-tdep.c: New file.
1633 * aarch32-tdep.h: New file.
1634 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
1635 Call aarch32_read_description.
1636 * arch/aarch32.c: New file.
1637 * arch/aarch32.h: New file.
1638 * arch/arm.c (arm_create_target_description)
1639 (arm_create_mprofile_target_description): New function.
1640 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
1641 (arm_create_target_description)
1642 (arm_create_mprofile_target_description): New declaration.
1643 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
1644 read_description functions.
1645 * arm-linux-nat.c (arm_linux_nat_target::read_description):
1647 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
1648 * arm-tdep.c (tdesc_arm_list): New variable.
1649 (arm_register_g_packet_guesses): Call create description functions.
1650 (arm_read_description) (arm_read_mprofile_description): New
1652 * arm-tdep.h (arm_read_description)
1653 (arm_read_mprofile_description): Add declaration.
1654 * configure.tgt: Add new files.
1656 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
1658 * top.c (new_ui_command): Open specified terminal just once.
1660 2019-07-18 Tom Tromey <tromey@adacore.com>
1662 * symtab.c (main_name): Constify return type.
1663 * symfile.c (set_initial_language): Update.
1664 * symtab.h (main_name): Constify return type.
1666 2019-07-17 Tom Tromey <tom@tromey.com>
1668 * tui/tui-winsource.c (tui_update_source_window)
1669 (tui_update_source_window_as_is)
1670 (tui_update_source_windows_with_line): Remove return.
1671 * tui/tui-disasm.c (tui_show_disassem)
1672 (tui_show_disassem_and_update_source): Remove return.
1673 * tui/tui.c (tui_reset): Remove return.
1674 * tui/tui-wingeneral.c
1675 (tui_check_and_display_highlight_if_needed): Remove return.
1677 2019-07-17 Tom Tromey <tom@tromey.com>
1679 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
1681 2019-07-17 Tom Tromey <tom@tromey.com>
1683 * tui/tui-winsource.h (struct tui_exec_info_window)
1684 (struct tui_source_window_base): Move from tui-data.h.
1685 * tui/tui-winsource.c: Move many method definitions from
1686 elsewhere. Remove "structuring" comments.
1687 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
1688 (tui_source_window_base::refresh_window): Move to
1690 * tui/tui-win.c (tui_source_window_base::refresh_all)
1691 (tui_source_window_base::update_tab_width)
1692 (tui_source_window_base::set_new_height)
1693 (tui_source_window_base::do_make_visible_with_new_height): Move to
1695 * tui/tui-source.h: Update.
1696 * tui/tui-source.c (tui_source_window_base::reset): Move to
1698 * tui/tui-disasm.h: Update.
1699 * tui/tui-data.h (struct tui_exec_info_window): Move to
1701 (struct tui_source_window_base): Likewise.
1702 * tui/tui-data.c (tui_source_window_base::clear_detail)
1703 (tui_source_window_base, ~tui_source_window_base): Move to
1706 2019-07-17 Tom Tromey <tom@tromey.com>
1708 * tui/tui-win.c (tui_resize_all)
1709 (tui_source_window_base::update_tab_width)
1710 (tui_adjust_win_heights): Update.
1711 (tui_win_info::make_invisible_and_set_new_height): Rename from
1712 make_invisible_and_set_new_height.
1713 * tui/tui-data.h (struct tui_win_info)
1714 <make_invisible_and_set_new_height>: New method.
1716 2019-07-17 Tom Tromey <tom@tromey.com>
1718 * tui/tui.c: Update.
1719 * tui/tui-source.h (struct tui_source_window): Move from
1721 * tui/tui-layout.c: Update.
1722 * tui/tui-disasm.c: Update.
1723 * tui/tui-data.h (struct tui_source_window): Move to
1726 2019-07-17 Tom Tromey <tom@tromey.com>
1728 * tui/tui-disasm.h (struct tui_disasm_window): Move from
1730 * tui/tui-data.h (struct tui_disasm_window): Move to
1733 2019-07-17 Tom Tromey <tom@tromey.com>
1735 * tui/tui-regs.h (struct tui_data_item_window): Move from
1737 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
1738 * tui/tui-data.h (struct tui_data_item_window): Move to
1740 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
1742 2019-07-17 Tom Tromey <tom@tromey.com>
1744 * tui/tui.c: Update.
1745 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
1746 (tui_cmd_window::max_height): Move to tui-command.c.
1747 * tui/tui-layout.c: Update.
1748 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
1749 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
1751 * tui/tui-command.h (struct tui_cmd_window): Move from
1753 * tui/tui-command.c: Remove "structuring" comments.
1754 (tui_cmd_window::clear_detail)
1755 (tui_cmd_window::do_make_visible_with_new_height)
1756 (tui_cmd_window::max_height): Move from elsewhere.
1758 2019-07-17 Tom Tromey <tom@tromey.com>
1760 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
1762 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
1763 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
1765 2019-07-17 Tom Tromey <tom@tromey.com>
1767 * tui/tui.c: Update.
1768 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
1770 * tui/tui-windata.h: Remove file.
1771 * tui/tui-windata.c: Remove file.
1772 * tui/tui-win.c (tui_data_window::set_new_height)
1773 (tui_data_window::do_make_visible_with_new_height): Move to
1775 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
1776 * tui/tui-regs.c: Remove "structuring" comments.
1777 (tui_data_window::first_data_item_displayed)
1778 (tui_data_window::delete_data_content_windows)
1779 (tui_data_window::erase_data_content)
1780 (tui_data_window::display_all_data)
1781 (tui_data_window::refresh_all)
1782 (tui_data_window::do_scroll_vertical)
1783 (tui_data_window::clear_detail, tui_data_window::set_new_height)
1784 (tui_data_window::do_make_visible_with_new_height)
1785 (tui_data_window::refresh_window): Move from elsewhere.
1786 (_initialize_tui_regs): Move to end of file.
1787 * tui/tui-layout.c: Update.
1788 * tui/tui-hooks.c: Update.
1789 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
1790 * tui/tui-data.c (tui_data_window::clear_detail): Move to
1792 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
1794 2019-07-17 Tom Tromey <tom@tromey.com>
1796 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
1799 2019-07-17 Tom Tromey <tom@tromey.com>
1801 * tui/tui-win.c (tui_source_window_base::set_new_height)
1802 (tui_source_window_base::do_make_visible_with_new_height): Use
1803 m_has_locator field directly.
1804 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
1806 (struct tui_source_window_base) <has_locator>: Likewise.
1808 2019-07-17 Tom Tromey <tom@tromey.com>
1810 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
1812 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
1814 * tui/tui-win.c (tui_source_window_base::set_new_height)
1815 (tui_source_window_base::set_new_height)
1816 (make_invisible_and_set_new_height)
1817 (tui_source_window_base::do_make_visible_with_new_height)
1818 (tui_source_window_base::do_make_visible_with_new_height):
1820 * tui/tui-layout.c (show_source_disasm_command, show_data)
1821 (show_source_or_disasm_and_command): Update.
1822 * tui/tui-layout.c (show_layout): Update.
1824 2019-07-17 Tom Tromey <tom@tromey.com>
1826 * tui/tui-layout.c (make_data_window): Remove.
1827 (show_data): Unify creation and re-initialization cases.
1829 2019-07-17 Tom Tromey <tom@tromey.com>
1831 * tui/tui-layout.c (make_source_window, make_disasm_window):
1833 (show_data): Unify creation and re-initialization cases.
1835 2019-07-17 Tom Tromey <tom@tromey.com>
1837 * tui/tui-layout.c (make_command_window): Remove.
1838 (show_source_disasm_command, show_source_or_disasm_and_command):
1839 Unify creation and re-initialization cases.
1841 2019-07-17 Tom Tromey <tom@tromey.com>
1843 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
1844 creation and re-initialization cases.
1846 2019-07-17 Tom Tromey <tom@tromey.com>
1848 * tui/tui-regs.c (tui_get_register): Return void.
1850 2019-07-17 Tom Tromey <tom@tromey.com>
1852 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
1855 2019-07-17 Tom Tromey <tom@tromey.com>
1857 * tui/tui-layout.c (show_source_disasm_command): Simplify window
1860 2019-07-17 Tom Tromey <tom@tromey.com>
1862 * tui/tui.h (tui_set_layout_by_name): Don't declare.
1863 * tui/tui-regs.c (tui_reg_layout): New function.
1864 (tui_show_registers, tui_reg_command): Use it.
1865 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
1866 (tui_layout_command): Rename from tui_set_layout_by_name. Change
1868 (tui_layout_command): Remove.
1870 2019-07-17 Tom Tromey <tom@tromey.com>
1872 * tui/tui-layout.h (tui/tui-layout): Return void.
1873 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
1875 2019-07-17 Tom Tromey <tom@tromey.com>
1877 * tui/tui-layout.c (show_source_disasm_command, show_data):
1879 (reset_locator): Remove.
1880 (show_source_or_disasm_and_command): Update.
1882 2019-07-17 Tom Tromey <tom@tromey.com>
1884 * tui/tui-source.c (tui_source_window_base::reset): Remove
1886 * tui/tui-layout.c (make_command_window, make_source_window)
1887 (make_disasm_window, make_data_window)
1888 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
1889 (reset_locator, show_source_or_disasm_and_command): Update.
1890 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
1892 (struct tui_source_window_base) <reset>: Likewise.
1894 2019-07-17 Tom Tromey <tom@tromey.com>
1896 * tui/tui-layout.c (show_source_disasm_command): Use
1898 (reset_locator): New function.
1899 (init_and_make_win): Remove.
1900 (show_source_or_disasm_and_command): Use reset_locator.
1902 2019-07-17 Tom Tromey <tom@tromey.com>
1904 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
1906 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
1908 * tui/tui-source.c (tui_source_window_base::reset): New method.
1909 * tui/tui-layout.c (make_command_window): Don't call
1911 (make_source_window, make_disasm_window): Don't call
1912 make_source_or_disasm_window.
1913 (make_data_window): Don't call init_and_make_win. Change calling
1915 (show_source_disasm_command, show_data): Simplify.
1916 (make_source_or_disasm_window): Remove.
1917 (show_source_or_disasm_and_command): Simplify.
1918 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
1919 (struct tui_source_window_base) <reset>: Likewise.
1920 <execution_info>: Remove initializer.
1921 * tui/tui-data.c (tui_source_window_base): Initialize
1924 2019-07-17 Tom Tromey <tom@tromey.com>
1926 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
1929 2019-07-17 Tom Tromey <tom@tromey.com>
1931 * tui/tui.c (tui_rl_other_window): Update.
1932 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
1933 superclass method first. Always iterate over regs_content.
1934 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
1936 * tui/tui-win.c (tui_set_focus_command): Update.
1938 2019-07-17 Tom Tromey <tom@tromey.com>
1940 * tui/tui-win.c (tui_set_focus_command): Rename from
1941 tui_set_focus. Call tui_enable.
1942 (tui_set_focus_command): Remove.
1944 2019-07-17 Tom Tromey <tom@tromey.com>
1946 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
1948 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
1950 (tui_data_window::refresh_window): Call refresh_window on data
1951 items. Always call superclass refresh_window.
1952 (tui_win_info::refresh): Remove.
1953 (tui_source_window_base::refresh_window): Update.
1954 (tui_refresh_all): Update.
1955 * tui/tui-layout.c (show_source_disasm_command): Remove call to
1957 (show_source_or_disasm_and_command): Likewise.
1958 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
1959 (struct tui_source_window_base) <refresh>: Likewise.
1961 2019-07-17 Tom Tromey <tom@tromey.com>
1963 * tui/tui-winsource.c (tui_clear_source_content)
1964 (tui_show_source_content): Update.
1965 * tui/tui-source.c (tui_source_window::showing_source_p): Check
1966 whether content is empty.
1967 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
1970 2019-07-17 Tom Tromey <tom@tromey.com>
1972 * tui/tui-winsource.c (tui_erase_source_content): Clear the
1974 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
1975 * tui/tui-source.c (tui_set_source_content_nil): Remove.
1977 2019-07-17 Tom Tromey <tom@tromey.com>
1979 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
1980 (struct tui_data_item_window): Update.
1982 2019-07-17 Tom Tromey <tom@tromey.com>
1984 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
1985 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
1988 2019-07-17 Tom Tromey <tom@tromey.com>
1990 * tui/tui-winsource.h (tui_erase_source_content)
1991 (tui_clear_source_content): Remove "display_prompt" parameter.
1992 * tui/tui-winsource.c (tui_update_source_window_as_is)
1993 (tui_update_source_windows_with_addr): Update.
1994 (tui_clear_source_content): Remove "display_prompt" parameter.
1995 (tui_erase_source_content): Likewise. Simplify.
1996 (tui_show_source_content): Update.
1997 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
1998 * tui/tui-stack.c (tui_show_frame_info): Update.
1999 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
2002 2019-07-17 Tom Tromey <tom@tromey.com>
2004 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2005 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
2007 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
2010 2019-07-17 Tom Tromey <tom@tromey.com>
2012 * tui/tui-winsource.c (tui_clear_source_content)
2013 (tui_show_source_content, tui_show_exec_info_content)
2014 (tui_clear_exec_info_content): Update.
2015 * tui/tui-stack.c (tui_show_locator_content): Update.
2016 (tui_show_frame_info): Update.
2017 * tui/tui-source.h (tui_source_window): Don't declare.
2018 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
2019 from tui_source_is_displayed.
2020 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
2022 (struct tui_source_window_base) <content_in_use>: New field. Now
2024 (struct tui_source_window) <showing_source_p>: New method.
2025 (TUI_SRC_WIN): Change cast.
2026 * tui/tui-data.c (tui_initialize_static_data): Update.
2028 2019-07-17 Tom Tromey <tom@tromey.com>
2030 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
2032 * tui/tui-source.c (tui_source_window::location_matches_p): New
2034 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
2036 * tui/tui-data.h (struct tui_source_window_base)
2037 <location_matches_p>: New method.
2038 (struct tui_source_window, struct tui_disasm_window)
2039 <location_matches_p>: Likewise.
2041 2019-07-17 Tom Tromey <tom@tromey.com>
2043 * tui/tui-win.c (tui_set_win_height_command): Rename from
2045 (tui_set_win_height_command): Remove.
2047 2019-07-17 Tom Tromey <tom@tromey.com>
2049 * tui/tui-source.c (tui_source_window): New constructor. Add
2051 (~tui_source_window): New destructor.
2052 (tui_source_window::style_changed): New method.
2053 * tui/tui-hooks.c (tui_redisplay_source): Remove.
2054 (tui_attach_detach_observers): Update.
2055 * tui/tui-data.h (struct tui_source_window): Make constructor not
2056 inline. Add destructor.
2057 (struct tui_source_window) <style_changed>: New method.
2058 <m_observable>: New member.
2060 2019-07-17 Tom Tromey <tom@tromey.com>
2062 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
2063 * tui/tui-win.c (tui_resize_all): Fix typo.
2065 2019-07-17 Tom Tromey <tom@tromey.com>
2067 * tui/tui-wingeneral.h (tui_refresh_all): Update.
2068 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
2069 (tui_refresh_all): Remove "list" parameter. Use foreach.
2070 * tui/tui-win.c (window_name_completer): Use foreach.
2071 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
2072 (update_tab_width): Likewise.
2073 * tui/tui-layout.c (show_layout): Update.
2074 * tui/tui-data.h (class tui_window_iterator): New.
2075 (struct all_tui_windows): New.
2076 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
2078 2019-07-17 Tom Tromey <tom@tromey.com>
2080 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
2081 parameter. Don't reference globals.
2082 (tui_reg_command): Update.
2084 2019-07-17 Tom Tromey <tom@tromey.com>
2086 * tui/tui-regs.c (tui_show_registers): Simplify.
2088 2019-07-17 Tom Tromey <tom@tromey.com>
2090 * tui/tui-regs.c (tui_show_registers): Update.
2091 (tui_show_register_group): Add win_info parameter.
2093 2019-07-17 Tom Tromey <tom@tromey.com>
2095 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
2096 Rename from tui_display_reg_element_at_line.
2097 (tui_data_window::display_registers_from_line): Update.
2098 * tui/tui-data.h (struct tui_data_window)
2099 <display_reg_element_at_line>: New method.
2101 2019-07-17 Tom Tromey <tom@tromey.com>
2103 * tui/tui-regs.h (tui_display_registers_from)
2104 (tui_display_registers_from_line): Don't declare.
2105 * tui/tui-windata.c (tui_data_window::display_all_data)
2106 (tui_data_window::refresh_all)
2107 (tui_data_window::do_scroll_vertical): Update.
2108 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
2109 from tui_display_registers_from.
2110 (tui_display_reg_element_at_line): Update.
2111 (tui_data_window::display_registers_from_line): Rename from
2112 tui_display_registers_from_line.
2113 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
2114 display_registers_from_line>: New methods.
2116 2019-07-17 Tom Tromey <tom@tromey.com>
2118 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
2119 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
2120 from tui_erase_data_content.
2121 (tui_data_window::display_all_data)
2122 (tui_data_window::refresh_all)
2123 (tui_data_window::do_scroll_vertical): Update.
2124 * tui/tui-regs.c (tui_show_registers): Update.
2125 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
2128 2019-07-17 Tom Tromey <tom@tromey.com>
2130 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
2133 (tui_data_window::delete_data_content_windows): Rename from
2134 tui_delete_data_content_windows.
2135 (tui_data_window::display_all_data)
2136 (tui_data_window::do_scroll_vertical): Update.
2137 * tui/tui-data.h (struct tui_data_window)
2138 <delete_data_content_windows>: New method.
2140 2019-07-17 Tom Tromey <tom@tromey.com>
2142 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
2143 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
2145 2019-07-17 Tom Tromey <tom@tromey.com>
2147 * tui/tui-windata.h (tui_display_all_data): Don't declare.
2148 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
2149 from tui_display_all_data.
2151 (tui_data_window::do_make_visible_with_new_height): Update.
2152 * tui/tui-regs.c (tui_show_registers): Update.
2153 * tui/tui-layout.c (tui_set_layout): Update.
2154 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
2157 2019-07-17 Tom Tromey <tom@tromey.com>
2159 * tui/tui-windata.h (tui_display_data_from): Don't declare.
2160 * tui/tui-windata.c (tui_display_data_from): Remove.
2161 (tui_data_window::refresh_all): Update.
2163 2019-07-17 Tom Tromey <tom@tromey.com>
2165 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
2166 * tui/tui-windata.c (tui_display_data_from_line): Remove.
2167 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
2168 tui_display_registers_from_line.
2169 * tui/tui-regs.h (tui_display_registers_from_line): Update.
2170 * tui/tui-regs.c (tui_display_registers_from_line): Remove
2171 "force_display" parameter.
2173 2019-07-17 Tom Tromey <tom@tromey.com>
2175 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
2177 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
2178 Rename from tui_first_reg_element_no_inline.
2179 (tui_display_reg_element_at_line)
2180 (tui_display_registers_from_line): Update.
2181 * tui/tui-data.h (struct tui_data_window)
2182 <first_reg_element_no_inline>: New method.
2184 2019-07-17 Tom Tromey <tom@tromey.com>
2186 * tui/tui-windata.c (tui_display_data_from)
2187 (tui_data_window::do_scroll_vertical): Update.
2188 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
2189 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
2190 Rename from tui_line_from_reg_element_no.
2191 (tui_display_registers_from_line): Update.
2192 * tui/tui-data.h (struct tui_data_window)
2193 <line_from_reg_element_no>: New method.
2195 2019-07-17 Tom Tromey <tom@tromey.com>
2197 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
2198 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
2199 tui_last_regs_line_no.
2200 (tui_display_reg_element_at_line)
2201 (tui_display_registers_from_line): Update.
2202 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
2205 2019-07-17 Tom Tromey <tom@tromey.com>
2208 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
2209 (tui_update_breakpoint_info): Add "being_deleted" parameter.
2210 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2211 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
2212 (tui_update_breakpoint_info): Likewise.
2213 * tui/tui-hooks.c (tui_event_create_breakpoint)
2214 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
2217 2019-07-17 Tom Tromey <tom@tromey.com>
2219 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
2221 2019-07-17 Tom Tromey <tom@tromey.com>
2223 * tui/tui-winsource.c (tui_update_source_window_as_is)
2224 (tui_update_source_windows_with_addr): Update.
2225 * tui/tui-source.h (tui_set_source_content)
2226 (tui_show_symtab_source): Add "win_info" parameter.
2227 * tui/tui-source.c (tui_set_source_content): Add "win_info"
2229 (tui_show_symtab_source): Likewise.
2231 2019-07-17 Tom Tromey <tom@tromey.com>
2233 * tui/tui-wingeneral.c
2234 (tui_check_and_display_highlight_if_needed): Check can_highlight.
2236 2019-07-17 Tom Tromey <tom@tromey.com>
2238 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
2239 (struct tui_cmd_window) <can_scroll>: New method.
2240 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
2243 2019-07-17 Tom Tromey <tromey@adacore.com>
2245 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
2246 do_field_signed>: Rename. Change type of "value".
2247 * ui-out.c (ui_out::field_signed): Rename from field_int.
2248 Change type of "value".
2249 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
2251 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
2252 do_field_int. Change type of "value".
2253 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
2254 do_field_int. Change type of "value".
2255 * tracepoint.c (trace_status_mi, tfind_1)
2256 (print_one_static_tracepoint_marker): Update.
2257 * thread.c (print_thread_info_1, print_selected_thread_frame):
2259 * stack.c (print_frame, print_frame_info): Update.
2260 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
2262 * source.c (print_source_lines_base): Update.
2263 * skip.c (info_skip_command): Update.
2264 * record-btrace.c (btrace_ui_out_decode_error)
2265 (btrace_call_history_src_line): Update.
2266 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
2268 * progspace.c (print_program_space): Update.
2269 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
2270 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
2271 do_field_int. Change type of "value".
2272 * mi/mi-out.c (mi_ui_out::do_table_begin)
2273 (mi_ui_out::do_table_header): Update.
2274 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
2276 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
2277 (mi_cmd_data_list_changed_registers, output_register)
2278 (mi_cmd_data_read_memory, mi_load_progress)
2279 (mi_cmd_trace_frame_collected): Update.
2280 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
2282 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
2283 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
2284 (mi_cmd_var_list_children, varobj_update_one): Update.
2285 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
2286 (mi_cmd_stack_list_args, list_arg_or_local): Update.
2287 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
2288 * inferior.c (print_inferior): Update.
2289 * gdb_bfd.c (print_one_bfd): Update.
2290 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2292 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
2293 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
2294 do_field_int. Change type of "value".
2295 * cli-out.c (cli_ui_out::do_field_signed): Rename from
2296 do_field_int. Change type of "value".
2297 * breakpoint.c (watchpoint_check, print_breakpoint_location)
2298 (print_one_breakpoint_location, print_it_catch_fork)
2299 (print_one_catch_fork, print_it_catch_vfork)
2300 (print_one_catch_vfork, print_it_catch_solib)
2301 (print_it_catch_exec, print_it_ranged_breakpoint)
2302 (print_mention_watchpoint, print_mention_masked_watchpoint)
2303 (bkpt_print_it, update_static_tracepoint): Update.
2304 * break-catch-throw.c (print_it_exception_catchpoint): Update.
2305 * break-catch-syscall.c (print_it_catch_syscall): Update.
2306 * ada-tasks.c (print_ada_task_info): Update.
2307 * ada-lang.c (print_it_exception, print_mention_exception):
2310 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2312 PR breakpoints/24541
2313 * gdbarch.c: Regenerate.
2314 * gdbarch.h: Regenerate.
2315 * gdbarch.sh: Adjust return type and parameter types for
2316 'stap_adjust_register'.
2317 (i386_stap_adjust_register): Adjust signature and return new
2319 * stap-probe.c (stap_parse_register_operand): Adjust use of
2320 'gdbarch_stap_adjust_register'.
2322 2019-07-17 Tom Tromey <tromey@adacore.com>
2324 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
2326 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
2328 (struct s390_process_info): Add initializers.
2329 (s390_add_process): Use new.
2330 (s390_linux_nat_target::low_forget_process): Use delete.
2331 (s390_linux_nat_target::low_new_fork)
2332 (s390_linux_nat_target::stopped_by_watchpoint)
2333 (s390_linux_nat_target::low_prepare_to_resume)
2334 (s390_linux_nat_target::insert_watchpoint)
2335 (s390_linux_nat_target::insert_hw_breakpoint)
2336 (s390_linux_nat_target::remove_watchpoint)
2337 (s390_linux_nat_target::remove_hw_breakpoint): Update.
2339 2019-07-16 John Baldwin <jhb@FreeBSD.org>
2341 * aarch64-fbsd-nat.c: Include regcache.h.
2342 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
2344 (aarch64_fbsd_nat_target::fetch_registers)
2345 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
2347 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
2349 2019-07-16 John Baldwin <jhb@FreeBSD.org>
2351 * fbsd-nat.c: Include gdbarch.h.
2353 2019-07-15 Tom Tromey <tromey@adacore.com>
2355 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
2357 2019-07-15 Tom Tromey <tromey@adacore.com>
2359 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
2360 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
2361 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
2362 * cli-out.c (cli_ui_out::do_field_int): New method.
2363 * ui-out.c (ui_out::field_unsigned): New method.
2364 * symfile.c (generic_load): Use field_unsigned.
2365 (print_transfer_performance): Likewise.
2366 * record-btrace.c (ui_out_field_uint): Remove.
2367 (btrace_call_history_insn_range, btrace_call_history): Use
2369 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
2371 * ui-out.h (class ui_out) <field_unsigned>: New method.
2372 <do_field_unsigned>: Likewise.
2374 2019-07-15 Tom Tromey <tromey@adacore.com>
2376 * mi/mi-main.c (list_available_thread_groups): Use field_string.
2377 * mi/mi-interp.c (mi_memory_changed): Use field_string.
2378 * target.c (flash_erase_command): Use field_string.
2379 * infrun.c (print_signal_received_reason): Use field_string.
2380 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
2381 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
2383 * ada-tasks.c (print_ada_task_info): Use field_string.
2385 2019-07-15 Tom Tromey <tromey@adacore.com>
2387 * target.c (flash_erase_command): Use field_core_addr.
2388 * symfile.c (generic_load): Use field_core_addr.
2389 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2390 Use field_core_addr.
2391 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
2394 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2396 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
2397 value if its desired type is smaller than a CORE_ADDR and signed.
2399 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2401 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
2402 of changes to field names, and use new is_reference field to
2403 decide if a property is a reference or not.
2404 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
2406 (struct dwarf2_property_baton): Update header comment, rename
2407 'referenced_type' to 'property_type' and update comments.
2408 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
2409 default property type, store in property baton, update to take
2410 accound of renamed field.
2411 (read_func_scope): Update call to attr_to_dynamic_prop.
2412 (read_array_type): Likewise.
2413 (dwarf2_per_cu_addr_sized_int_type): New function.
2414 (read_subrange_index_type): Move type finding code to
2415 dwarf2_per_cu_addr_sized_int_type.
2416 (read_subrange_type): Update calls to attr_to_dynamic_prop.
2417 (dwarf2_per_cu_addr_type): New function.
2418 (set_die_type): Update calls to attr_to_dynamic_prop.
2420 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2422 * dwarf2read.c (read_subrange_index_type): New function.
2423 (read_subrange_type): Move code into new function and call it.
2424 * gdbtypes.c (create_range_type): Add some asserts.
2426 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2428 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
2429 update return statements.
2430 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
2431 declaration, and update comment to match.
2432 * gdbtypes.c (resolve_dynamic_array): Update call to
2433 dwarf2_evaluate_property to match new return type.
2435 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2437 * valarith.c (value_subscripted_rvalue): Change lowerbound
2438 parameter type from int to LONGEST.
2439 * value.h (value_subscripted_rvalue): Likewise in declaration.
2441 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
2443 * cli/cli-utils.c (info_print_command_completer): New function.
2444 * cli/cli-utils.h: Add 'completer.h' include, and forward
2445 declaration for 'struct cmd_list_element'.
2446 (info_print_command_completer): Declare.
2447 * stack.c (_initialize_stack): Add completer for 'info locals' and
2449 * symtab.c (_initialize_symtab): Add completer for 'info
2450 variables' and 'info functions'.
2451 * NEWS: Mention completion for additional info commands.
2453 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
2455 * cli/cli-utils.c (extract_info_print_args): Delete.
2456 (extract_arg_maybe_quoted): Delete.
2457 (info_print_options_defs): New variable.
2458 (make_info_print_options_def_group): New function.
2459 (extract_info_print_options): Define new function.
2460 * cli/cli-utils.h (extract_info_print_args): Delete.
2461 (struct info_print_options): New structure.
2462 (extract_info_print_options): Declare new function.
2463 * stack.c (info_locals_command): Update to use new
2464 extract_info_print_options, also add a header comment.
2465 (info_args_command): Likewise.
2466 * symtab.c (info_variables_command): Likewise.
2467 (info_functions_command): Likewise.
2469 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
2471 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
2472 to extract string arguments.
2473 * common/common-utils.c (extract_string_maybe_quoted): New function.
2474 * common/common-utils.h (extract_string_maybe_quoted): Declare.
2476 2019-07-11 Tom Tromey <tromey@adacore.com>
2478 * main.c (get_init_files): Use GDBINIT, not gdbinit.
2479 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
2480 * top.h (gdbinit): Don't declare.
2481 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
2483 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
2484 * top.c (gdb_init): Don't call init_cli_cmds.
2486 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
2488 2019-07-11 Tom Tromey <tromey@adacore.com>
2490 * python/py-inferior.c (add_thread_object): Don't use thread_obj
2491 after it has been moved.
2493 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2495 * valops.c (value_must_coerce_to_target): Change return type to
2497 * value.h (value_must_coerce_to_target): Likewise.
2499 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
2501 * breakpoint.c (is_hardware_watchpoint): Remove
2502 forward-declaration.
2503 (is_masked_watchpoint): Change return type to bool.
2504 (is_tracepoint): Likewise.
2505 (is_breakpoint): Likewise.
2506 (is_hardware_watchpoint): Likewise.
2507 (is_watchpoint): Likewise.
2508 (is_no_memory_software_watchpoint): Likewise.
2509 (is_catchpoint): Likewise.
2510 (breakpoint_1): Make FILTER parameter's return type bool.
2511 is_masked_watchpoint): Change return type to bool.
2512 (save_breakpoints): Make FILTER parameter's return type bool.
2513 * breakpoint.h (is_breakpoint): Change return type to bool.
2514 (is_watchpoint): Likewise.
2515 (is_catchpoint): Likewise.
2516 (is_tracepoint): Likewise.
2518 2019-07-10 Tom Tromey <tom@tromey.com>
2520 * defs.h: Don't include gdbarch.h.
2521 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
2522 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
2523 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
2524 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
2525 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
2526 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
2527 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
2528 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
2529 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
2530 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
2531 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
2532 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
2533 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
2534 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
2535 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
2536 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
2537 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
2538 record-btrace.c, record.h, regcache-dump.c, regcache.h,
2539 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
2540 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
2541 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
2542 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
2543 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
2544 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
2545 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
2546 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
2547 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
2549 2019-07-10 Tom Tromey <tromey@adacore.com>
2551 * ada-lang.h (is_ada_exception_catchpoint): Declare.
2552 * breakpoint.c (init_ada_exception_breakpoint): Register as
2554 (print_one_breakpoint_location, print_one_breakpoint): Use
2555 is_ada_exception_catchpoint.
2556 * ada-lang.c (class ada_catchpoint_location): Pass
2557 bp_loc_software_breakpoint to bp_location constructor.
2558 (is_ada_exception_catchpoint): New function.
2560 2019-07-10 Tom Tromey <tromey@adacore.com>
2562 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
2564 (struct arm_exidx_entry): New method operator<.
2565 (struct arm_exidx_data) <section_maps>: Change type.
2566 (arm_exidx_data_free): Remove.
2567 (arm_exidx_data_key): Change type. Move lower.
2568 (arm_exidx_new_objfile): Update.
2569 (arm_compare_exidx_entries): Remove.
2570 (arm_find_exidx_entry, _initialize_arm_tdep)
2572 2019-07-10 Tom Tromey <tromey@adacore.com>
2574 * solib-spu.c (ocl_program_data_key): Change type.
2575 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
2578 2019-07-10 Tom Tromey <tromey@adacore.com>
2580 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
2581 (struct solib_aix_inferior_data) <library_list>: Change type.
2582 (solib_aix_inferior_data_handle): Change type.
2583 (get_solib_aix_inferior_data): Update.
2584 (solib_aix_free_library_list): Remove.
2585 (library_list_start_library): Update.
2586 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
2588 (solib_aix_get_library_list)
2589 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
2590 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
2592 2019-07-10 Tom Tromey <tromey@adacore.com>
2594 * solib-dsbt.c (struct dsbt_info): Add initializers.
2595 (solib_dsbt_pspace_data): Change type.
2596 (dsbt_pspace_data_cleanup): Remove.
2597 (get_dsbt_info, _initialize_dsbt_solib): Update.
2599 2019-07-10 Tom Tromey <tromey@adacore.com>
2601 * spu-tdep.c (spu_overlay_data): Change type.
2602 (spu_get_overlay_table, spu_overlay_new_objfile)
2603 (_initialize_spu_tdep): Update.
2605 2019-07-10 Tom Tromey <tromey@adacore.com>
2607 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
2609 (dbx_objfile_data_key): Change type and declare later.
2610 (DBX_SYMFILE_INFO): Rewrite.
2611 * dbxread.c (dbx_objfile_data_key): Change type.
2612 (dbx_symfile_init): Update.
2613 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
2614 (coffstab_build_psymtabs, elfstab_build_psymtabs)
2615 (stabsect_build_psymtabs, _initialize_dbxread): Update.
2617 2019-07-10 Tom Tromey <tromey@adacore.com>
2619 * jit.c (jit_program_space_key): Change type. Move lower.
2620 (get_jit_program_space_data): Update.
2621 (jit_program_space_data_cleanup): Remove.
2622 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
2624 (struct jit_program_space_data): Add initializers.
2626 2019-07-10 Tom Tromey <tromey@adacore.com>
2628 * solib-darwin.c (struct darwin_info): Add initializers.
2629 (solib_darwin_pspace_data): Change type.
2630 (darwin_pspace_data_cleanup): Remove.
2631 (get_darwin_info, _initialize_darwin_solib): Update.
2633 2019-07-10 Tom Tromey <tromey@adacore.com>
2635 * remote-sim.c (struct sim_inferior_data): Add initializers,
2636 constructor, and destructor.
2637 (sim_inferior_data_key): Change type. Move lower.
2638 (check_for_duplicate_sim_descriptor): Update.
2639 (get_sim_inferior_data): Use new. Update.
2640 (~sim_inferior_data_cleanup): Rename from
2641 sim_inferior_data_cleanup. Simplify.
2642 (gdbsim_close_inferior, simulator_command)
2643 (sim_command_completer, _initialize_remote_sim): Update.
2644 (next_pid, INITIAL_PID): Move earlier.
2646 2019-07-10 Tom Tromey <tromey@adacore.com>
2648 * python/python-internal.h (create_thread_object): Return
2650 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
2651 * python/py-inferior.c (struct threadlist_entry): Add
2653 <thread_obj>: Now a gdbpy_ref.
2654 (thread_to_thread_object): Update.
2655 (add_thread_object): Use new.
2656 (delete_thread_object): Use delete.
2657 (infpy_threads): Update.
2658 (py_free_inferior): Update. Construct "inf_obj" after acquiring
2661 2019-07-10 Tom Tromey <tromey@adacore.com>
2663 * valops.c (value_cast): Specialize error message for Ada.
2665 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2667 * breakpoint.c (breakpoint_1): Update doc and parameter names.
2669 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2671 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
2672 bpstat_should_step): Return bool, adjust comments.
2673 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
2674 bpstat_should_step): Likewise.
2676 2019-07-10 Alan Hayward <alan.hayward@arm.com>
2678 * features/Makefile: Use feature target descriptions for Arm.
2679 * features/arm/arm-core.c: Generate new file.
2680 * features/arm/arm-fpa.c: Likewise.
2681 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
2682 * features/arm/arm-m-profile.c: Likewise.
2683 * features/arm/arm-vfpv2.c: Likewise.
2684 * features/arm/arm-vfpv3.c: Likewise.
2685 * features/arm/xscale-iwmmxt.c: Likewise.
2686 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
2688 2019-07-10 Alan Hayward <alan.hayward@arm.com>
2690 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
2693 2019-07-10 Alan Hayward <alan.hayward@arm.com>
2695 * features/aarch64-pauth.c: Regenerate.
2697 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
2699 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
2701 (bpstat_what): Use false instead of 0.
2703 2019-07-09 Pedro Alves <palves@redhat.com>
2705 * break-catch-throw.c (is_exception_catchpoint): New.
2706 * breakpoint.c (print_one_breakpoint_location): New parameter
2707 'raw_loc'. Handle it. Use
2708 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
2709 looking at the breakpoint's type.
2710 (print_one_breakpoint): If handling "maint info breakpoints", also
2711 print locations of exception catchpoints.
2712 * breakpoint.h (is_exception_catchpoint): Declare.
2714 2019-07-09 Pedro Alves <palves@redhat.com>
2716 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
2718 (allocate_location_exception_catchpoint): New.
2719 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
2720 (initialize_throw_catchpoint_ops): Install
2721 allocate_location_exception_catchpoint as allocate_location
2723 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
2724 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
2726 (breakpoint_address_is_meaningful): Delete.
2727 (bl_address_is_meaningful): New.
2728 (breakpoint_locations_match): Adjust comment.
2729 (bp_location_from_bp_type): New, factored out of...
2730 (bp_location::bp_location(breakpoint *)): ... this.
2731 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
2733 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
2734 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
2735 breakpoint_address_is_meaningful.
2736 (bp_locations_compare): Adjust comment.
2737 (update_global_location_list): Use bl_address_is_meaningful
2738 instead of breakpoint_address_is_meaningful.
2739 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
2741 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
2742 * python/py-breakpoint.c (bppy_get_location): No longer check
2743 whether location is null.
2745 2019-07-09 Pedro Alves <palves@redhat.com>
2748 * breakpoint.c (print_one_breakpoint_location): Remove
2749 single-location assert.
2751 2019-07-09 Tom Tromey <tom@tromey.com>
2753 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
2754 * configure: Rebuild.
2755 * configure.ac: Change common to gdbsupport.
2756 * gdbsupport: Rename from common.
2757 * acinclude.m4: Change common to gdbsupport.
2758 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
2759 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
2761 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
2762 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
2763 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
2764 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
2765 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
2766 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
2767 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
2768 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
2769 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
2770 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
2771 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
2772 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
2773 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
2774 coff-pe-read.c, command.h, compile/compile-c-support.c,
2775 compile/compile-c.h, compile/compile-cplus-symbols.c,
2776 compile/compile-cplus-types.c, compile/compile-cplus.h,
2777 compile/compile-loc2c.c, compile/compile.c, completer.c,
2778 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
2779 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
2780 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
2781 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
2782 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
2783 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
2784 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
2785 features/aarch64-core.c, features/aarch64-fpu.c,
2786 features/aarch64-pauth.c, features/aarch64-sve.c,
2787 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
2788 features/i386/32bit-core.c, features/i386/32bit-linux.c,
2789 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
2790 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
2791 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
2792 features/i386/64bit-core.c, features/i386/64bit-linux.c,
2793 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
2794 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
2795 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
2796 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
2797 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
2798 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
2799 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
2800 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
2801 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
2802 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
2803 go32-nat.c, guile/guile.c, guile/scm-ports.c,
2804 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
2805 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
2806 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
2807 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
2808 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
2809 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
2810 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
2811 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
2812 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
2813 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
2814 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
2815 minsyms.c, mips-linux-tdep.c, namespace.h,
2816 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
2817 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
2818 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
2819 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
2820 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
2821 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
2822 nat/linux-waitpid.c, nat/mips-linux-watch.c,
2823 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
2824 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
2825 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
2826 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
2827 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
2828 procfs.c, producer.c, progspace.h, psymtab.h,
2829 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
2830 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
2831 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
2832 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
2833 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
2834 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
2835 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
2836 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
2837 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
2838 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
2839 target-memory.c, target.c, target.h, target/waitstatus.c,
2840 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
2841 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
2842 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
2843 unittests/array-view-selftests.c,
2844 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
2845 unittests/common-utils-selftests.c,
2846 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
2847 unittests/format_pieces-selftests.c,
2848 unittests/function-view-selftests.c,
2849 unittests/lookup_name_info-selftests.c,
2850 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
2851 unittests/mkdir-recursive-selftests.c,
2852 unittests/observable-selftests.c,
2853 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
2854 unittests/parse-connection-spec-selftests.c,
2855 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
2856 unittests/scoped_fd-selftests.c,
2857 unittests/scoped_mmap-selftests.c,
2858 unittests/scoped_restore-selftests.c,
2859 unittests/string_view-selftests.c, unittests/style-selftests.c,
2860 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
2861 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
2862 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
2863 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
2864 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
2865 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
2867 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2869 * linespec.c (decode_digits_list_mode): Set explicit_line to a
2871 (decode_digits_ordinary): Set explicit_line field in sal.
2872 * symtab.c (skip_prologue_sal): Don't skip prologue for a
2873 symtab_and_line that was set on an explicit line number in
2874 assembler code. Do always update the recorded symtab and line if
2875 we do skip the prologue.
2877 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2879 * breakpoint.c (set_breakpoint_location_function): Remove
2880 explicit_loc parameter.
2881 (momentary_breakpoint_from_master): Update call to
2882 set_breakpoint_location_function.
2883 (add_location_to_breakpoint): Likewise.
2885 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2887 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
2888 required features based on default bfd type when no specific bfd
2891 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2893 * NEWS: Mention that GDB printf and eval commands can now print
2894 C-style and Ada-style convenience var strings without
2895 calling the inferior.
2896 * printcmd.c (printf_c_string): Locally print GDB internal var
2897 instead of transiting via the inferior.
2898 (printf_wide_c_string): Likewise.
2900 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2902 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
2904 2019-07-04 Tom Tromey <tom@tromey.com>
2907 * tui/tui-winsource.c (tui_clear_source_content): Update.
2908 (tui_source_window_base::set_is_exec_point_at): Fix comment.
2909 (tui_update_breakpoint_info): Update.
2910 (tui_set_exec_info_content): Update.
2911 * tui/tui-source.c (tui_set_source_content_nil): Update.
2912 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
2914 * tui/tui-data.h (enum tui_bp_flag): New.
2915 (tui_bp_flags): New enum flags type.
2916 (struct tui_source_element) <break_mode>: Change type. Rename
2918 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
2919 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
2921 * tui/tui-winsource.h: Fix comment.
2923 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2925 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
2926 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
2927 (store_fpregs_to_thread)
2928 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
2929 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
2930 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
2931 (IWMMXT_REGS_SIZE): Add define.
2932 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
2933 (fetch_vfp_regs, store_vfp_regs)
2934 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
2935 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
2937 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2939 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
2941 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
2942 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
2943 (ARM_INT_REGISTER_SIZE): ...to this.
2944 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
2945 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
2946 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
2947 (arm_linux_collect_gregset, supply_nwfpe_register)
2948 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
2950 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
2951 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
2952 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
2953 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
2954 (arm_return_in_memory, arm_store_return_value)
2955 (arm_get_longjmp_target, arm_register_g_packet_guesses)
2956 (arm_record_ld_st_multiple): Likewise.
2957 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
2958 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
2960 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2962 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
2963 AARCH64_DISPLACED_MODIFIED_INSNS.
2964 * aarch64-tdep.c (struct aarch64_displaced_step_data)
2965 (aarch64_displaced_step_copy_insn): Likewise.
2966 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
2967 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
2968 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
2969 ARM_DISPLACED_MODIFIED_INSNS.
2970 * arm-tdep.c (arm_gdbarch_init): Likewise.
2971 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
2972 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
2973 (struct arm_displaced_step_closure): Use
2974 ARM_DISPLACED_MODIFIED_INSNS.
2976 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2978 * features/Makefile: Remove unused xml files.
2979 * features/aarch64.xml: Remove.
2980 * features/i386/amd64-avx-avx512-linux.xml: Remove.
2981 * features/i386/amd64-avx-avx512.xml: Remove.
2982 * features/i386/amd64-avx-linux.xml: Remove.
2983 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
2984 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
2985 * features/i386/amd64-avx-mpx-linux.xml: Remove.
2986 * features/i386/amd64-avx-mpx.xml: Remove.
2987 * features/i386/amd64-avx.xml: Remove.
2988 * features/i386/amd64-linux.xml: Remove.
2989 * features/i386/amd64-mpx-linux.xml: Remove.
2990 * features/i386/amd64-mpx.xml: Remove.
2991 * features/i386/amd64.xml: Remove.
2992 * features/i386/i386-avx-avx512-linux.xml: Remove.
2993 * features/i386/i386-avx-avx512.xml: Remove.
2994 * features/i386/i386-avx-linux.xml: Remove.
2995 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
2996 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
2997 * features/i386/i386-avx-mpx-linux.xml: Remove.
2998 * features/i386/i386-avx-mpx.xml: Remove.
2999 * features/i386/i386-avx.xml: Remove.
3000 * features/i386/i386-linux.xml: Remove.
3001 * features/i386/i386-mmx-linux.xml: Remove.
3002 * features/i386/i386-mmx.xml: Remove.
3003 * features/i386/i386-mpx-linux.xml: Remove.
3004 * features/i386/i386-mpx.xml: Remove.
3005 * features/i386/i386.xml: Remove.
3006 * features/i386/x32-avx-avx512-linux.xml: Remove.
3007 * features/i386/x32-avx-linux.xml: Remove.
3008 * features/i386/x32-linux.xml: Remove.
3010 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3012 * regformats/aarch64.dat: Remove.
3013 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
3014 * regformats/i386/amd64-avx-linux.dat: Remove.
3015 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
3016 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
3017 * regformats/i386/amd64-linux.dat: Remove.
3018 * regformats/i386/amd64-mpx-linux.dat: Remove.
3019 * regformats/i386/amd64.dat: Remove.
3020 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
3021 * regformats/i386/i386-avx-linux.dat: Remove.
3022 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
3023 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
3024 * regformats/i386/i386-linux.dat: Remove.
3025 * regformats/i386/i386-mmx-linux.dat: Remove.
3026 * regformats/i386/i386-mpx-linux.dat: Remove.
3027 * regformats/i386/i386.dat: Remove.
3028 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
3029 * regformats/i386/x32-avx-linux.dat: Remove.
3030 * regformats/i386/x32-linux.dat: Remove.
3032 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3034 * aarch64-tdep.c: Remove xml self tests.
3035 * amd64-linux-tdep.c: Likewise.
3036 * amd64-tdep.c: Likewise.
3037 * i386-linux-tdep.c: Likewise.
3038 * i386-tdep.c: Likewise.
3040 2019-07-03 Pedro Alves <palves@redhat.com>
3043 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
3044 (pipe_cmd_option_defs): New.
3045 (make_pipe_cmd_options_def_group): New.
3046 (pipe_command): Use gdb::option::process_options.
3047 (pipe_command_completer): New function.
3048 (_initialize_cli_cmds): Install completer for "pipe" command.
3050 2019-07-03 Pedro Alves <palves@redhat.com>
3052 * cli/cli-option.c (union option_value) <string>: New field.
3053 (struct option_def_and_value): Add ctor, move ctor, dtor and
3054 use DISABLE_COPY_AND_ASSIGN.
3055 (option_def_and_value::clear_value): New.
3056 (parse_option, save_option_value_in_ctx, get_val_type_str)
3057 (add_setshow_cmds_for_options): Handle var_string.
3058 * cli-option.h (union option_def::var_address) <string>: New
3060 (struct string_option_def): New.
3061 * maint-test-options.c (struct test_options_opts): Add default
3062 ctor and use DISABLE_COPY_AND_ASSIGN.
3063 <string_opt>: New field.
3064 (test_options_opts::~test_options_opts): New.
3065 (test_options_opts::dump): Also dump "-string".
3066 (test_options_option_defs): Install "string.
3068 2019-07-03 Pedro Alves <palves@redhat.com>
3070 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
3071 option_value with a null enumeration.
3072 (complete_options): Save the option values in the context.
3073 (save_option_value_in_ctx): New, factored out from ...
3074 (process_options): ... here.
3075 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
3077 * maint-test-options.c (test_options_opts::dump): New, factored
3079 (maintenance_test_options_command_mode): ... here.
3080 (maintenance_test_options_command_completion_result): Delete.
3081 (maintenance_test_options_command_completion_text): Update
3083 (maintenance_show_test_options_completion_result): Change
3084 prototype. Just print
3085 maintenance_test_options_command_completion_text.
3086 (save_completion_result): New.
3087 (maintenance_test_options_completer_mode): Pass options context to
3088 complete_options, and then save a dump.
3089 (_initialize_maint_test_options): Use add_cmd to install "maint
3090 show test-options-completion-result".
3092 2019-07-03 Pedro Alves <palves@redhat.com>
3094 * NEWS (New commands): Mention "with" and "maint with".
3095 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
3096 (with_command, with_command_completer): New.
3097 (pipe_command): Adjust to new repeat_previous
3099 (_initialize_cli_cmds): Install the "with" command and its "w"
3101 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
3103 * cli/cli-setshow.c (parse_cli_var_uinteger)
3104 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
3105 argument strings for all var_types.
3106 (get_setshow_command_value_string): New, factored out from ...
3107 (do_show_command): ... this.
3108 * cli/cli-setshow.h: Include <string>.
3109 (get_setshow_command_value_string): Declare.
3110 * command.h (repeat_previous): Now returns const char *. Adjust
3112 * maint.c: Include "cli/cli-cmds.h".
3113 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
3114 (_initialize_maint_cmds): Register the "maintenance with" command.
3115 * top.c (repeat_previous): Move bits from pipe_command here:
3116 Return the saved command line, if any; error out if there's no
3117 command to relaunch.
3119 2019-07-03 Pedro Alves <palves@redhat.com>
3121 * NEWS (New commands): Mention "maint set/show test-settings"
3122 instead of "maint test-settings".
3123 * maint-test-settings.c (maintenance_test_settings_list): Delete.
3124 (maintenance_test_settings_set_list): Rename to ...
3125 (maintenance_set_test_settings_list): ... this.
3126 (maintenance_test_settings_show_list): Rename to ...
3127 (maintenance_show_test_settings_list): ... this.
3128 (maintenance_test_settings_cmd): Delete.
3129 (maintenance_test_settings_set_cmd): ...
3130 (maintenance_set_test_settings_cmd): ... this.
3131 (maintenance_test_settings_show_cmd): ...
3132 (maintenance_show_test_settings_cmd): ... this.
3133 (maintenance_test_settings_show_value_cmd):
3134 (maintenance_show_test_settings_value_cmd): ... this.
3135 (_initialize_maint_test_settings): No longer install the "maint
3136 test-settings" prefix command. Rename "maint test-settings set"
3137 to "maint set test-settings", and "maint test-settings show" to
3138 "maint show test-settings". Adjust all subcommands.
3140 2019-07-03 Pedro Alves <palves@redhat.com>
3142 * maint-test-settings.c: Fix file's intro comment. Replace all
3143 references to "test-options" with references to "test-settings",
3146 2019-07-03 Pedro Alves <palves@redhat.com>
3148 * maint-test-settings.c (maintenance_test_settings_xxx)
3149 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
3151 (maintenance_test_settings_enums): Use them.
3152 (maintenance_test_settings_enum): Default to
3153 maintenance_test_settings_xxx.
3154 (_initialize_maint_test_settings): Initialize
3155 MAINTENANCE_TEST_SETTINGS_FILENAME.
3157 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3159 * breakpoint.h (remove_breakpoints_inf): Change return type to
3160 void, move function documentation here.
3161 * breakpoint.c (remove_breakpoints_inf): Change return type to
3162 void, move function documentation to header.
3164 2019-07-02 Pedro Alves <palves@redhat.com>
3166 * NEWS (Completion improvements): Mention "info threads".
3167 * thread.c (struct info_threads_opts, info_threads_option_defs)
3168 (make_info_threads_options_def_group): New.
3169 (info_threads_command): Use gdb::option::process_options.
3170 (info_threads_command_completer): New.
3171 (_initialize_thread): Use gdb::option::build_help to build the
3172 help text for "info threads".
3174 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3176 * defs.h (generic_load): Move from here...
3177 * symfile.h (generic_load): ... to here. Rename name parameter
3179 * symfile.c (generic_load): Add comment.
3181 2019-07-01 Tom Tromey <tromey@adacore.com>
3184 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
3185 declaration of without_params. Fix formatting.
3187 2019-07-01 Tom Tromey <tromey@adacore.com>
3189 * ada-exp.y (find_primitive_type): Update.
3190 * ada-lang.h (ada_lookup_symbol): Update.
3191 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
3193 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
3195 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
3197 PR breakpoints/24541
3198 * gdbarch.c: Regenerate.
3199 * gdbarch.h: Regenerate.
3200 * gdbarch.sh: Add 'stap_adjust_register'.
3201 * i386-tdep.c: Include '<unordered_set>'.
3202 (i386_stap_adjust_register): New function.
3203 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
3204 * stap-probe.c (stap_parse_register_operand): Call
3205 'gdbarch_stap_adjust_register'.
3207 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
3210 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
3211 * python/python.c (do_start_initialization): Use 'xmalloc'
3212 instead of 'PyMem_Malloc'.
3214 2019-06-28 Tom Tromey <tromey@adacore.com>
3216 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
3219 2019-06-27 Tom Tromey <tromey@adacore.com>
3221 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
3223 (arm_find_mapping_symbol, arm_record_special_symbol)
3224 (_initialize_arm_tdep): Update.
3225 (arm_objfile_data_free): Remove.
3227 2019-06-27 Tom Tromey <tromey@adacore.com>
3229 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
3230 to cp_print_static_field.
3232 2019-06-26 Tom Tromey <tromey@adacore.com>
3234 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
3235 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
3238 2019-06-26 Alan Hayward <alan.hayward@arm.com>
3240 * features/aarch64-core.c (create_feature_aarch64_core):
3242 * features/aarch64-core.xml: Add cpsr flags.
3244 2019-06-26 Alan Hayward <alan.hayward@arm.com>
3246 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
3247 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
3249 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
3251 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
3253 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
3255 (arm_record_special_symbol): Don't insert new symbol in sorted
3256 position, push it at the end.
3258 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
3260 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
3261 (arm_mapping_symbol_s): Remove.
3262 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
3263 (arm_mapping_symbol_vec): New typedef.
3264 (struct arm_per_objfile): Add constructor.
3265 <section_maps>: Change type to
3266 std::unique_ptr<arm_mapping_symbol_vec[]>.
3267 (arm_compare_mapping_symbols): Remove.
3268 (arm_find_mapping_symbol): Adjust to section_maps type change.
3269 (arm_objfile_data_free): Call delete on arm_per_objfile.
3270 (arm_record_special_symbol): Adjust to section_maps type change.
3271 Allocate arm_per_objfile with new.
3273 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3275 * cli/cli-cmds.c (alias_command): Compare the alias prefix
3276 with the command prefix.
3278 2019-06-25 Tom Tromey <tom@tromey.com>
3280 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
3281 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
3283 2019-06-25 Tom Tromey <tom@tromey.com>
3285 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
3287 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
3290 2019-06-25 Tom Tromey <tom@tromey.com>
3292 * tui/tui-winsource.c
3293 (tui_source_window_base::set_is_exec_point_at): Add check against
3296 2019-06-25 Tom Tromey <tom@tromey.com>
3298 * tui/tui-source.c (tui_set_source_content): Don't check before
3300 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
3302 2019-06-25 Tom Tromey <tom@tromey.com>
3304 * tui/tui-winsource.h (tui_update_source_window_as_is)
3305 (tui_alloc_source_buffer, tui_line_is_displayed)
3306 (tui_addr_is_displayed): Change type of win_info.
3307 * tui/tui-winsource.c (tui_update_source_window_as_is)
3308 (tui_clear_source_content, tui_show_source_line)
3309 (tui_show_source_content, tui_source_window_base::refill)
3310 (tui_source_window_base::set_is_exec_point_at)
3311 (tui_source_window_base::set_is_exec_point_at)
3312 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
3313 (tui_alloc_source_buffer, tui_line_is_displayed)
3314 (tui_addr_is_displayed): Change type of win_info. Update.
3315 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3316 (tui_source_window_base::do_make_visible_with_new_height):
3318 * tui/tui-source.c (tui_set_source_content)
3319 (tui_set_source_content_nil)
3320 (tui_source_window::do_scroll_vertical): Update.
3321 * tui/tui-layout.c (show_layout): Update.
3322 * tui/tui-disasm.c (tui_set_disassem_content)
3323 (tui_disasm_window::do_scroll_vertical): Update.
3324 * tui/tui-data.h (tui_win_content): Remove.
3325 (struct tui_gen_win_info) <content, content_size>: Remove.
3326 (struct tui_source_element): Add initializers and destructor.
3327 (union tui_which_element, struct tui_win_element): Remove.
3328 (struct tui_source_window_base) <content>: New field.
3329 (struct tui_data_window): Remove destructor.
3330 (tui_alloc_content, tui_free_win_content)
3331 (tui_free_all_source_wins_content): Don't declare.
3332 * tui/tui-data.c (tui_initialize_static_data): Update.
3333 (init_content_element, tui_alloc_content): Remove.
3334 (~tui_gen_win_info): Update.
3335 (~tui_data_window, tui_free_all_source_wins_content)
3336 (tui_free_win_content, free_content, free_content_elements):
3339 2019-06-25 Tom Tromey <tom@tromey.com>
3341 * tui/tui-winsource.h (tui_clear_source_content)
3342 (tui_erase_source_content, tui_show_source_content): Change type
3344 * tui/tui-winsource.c (tui_clear_source_content)
3345 (tui_erase_source_content, tui_show_source_content): Change type
3347 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3348 * tui/tui-source.h (tui_set_source_content_nil): Change type of
3350 * tui/tui-source.c (tui_set_source_content_nil): Change type of
3352 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
3354 2019-06-25 Tom Tromey <tom@tromey.com>
3356 * tui/tui-winsource.c (tui_clear_source_content)
3357 (tui_source_window_base::set_is_exec_point_at): Update.
3358 * tui/tui-source.c (tui_set_source_content_nil): Update.
3359 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
3361 * tui/tui-data.c (init_content_element): Update.
3363 2019-06-25 Tom Tromey <tom@tromey.com>
3365 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
3366 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
3367 * tui/tui-layout.c (init_and_make_win): Update.
3368 * tui/tui.h (enum tui_win_type): Update.
3369 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
3370 tui_win_is_auxillary.
3371 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
3372 tui_win_is_auxillary.
3374 2019-06-25 Tom Tromey <tom@tromey.com>
3376 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
3377 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
3378 (tui_delete_data_content_windows, tui_display_all_data)
3379 (tui_data_window::do_scroll_vertical, tui_display_data_from):
3381 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
3382 * tui/tui-regs.c (tui_last_regs_line_no)
3383 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
3384 (tui_show_registers): Update.
3385 (tui_show_register_group): Return void. Update.
3386 (tui_display_registers_from, tui_display_reg_element_at_line)
3387 (tui_display_registers_from_line, tui_check_register_values):
3389 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
3391 (struct tui_data_window) <regs_content>: Now a std::vector.
3392 <regs_content_count>: Remove.
3393 (tui_add_content_elements, tui_free_data_content): Don't declare.
3394 * tui/tui-data.c (tui_data_window::clear_detail): Update.
3395 (init_content_element): Remove DATA_WIN case. Add assert.
3396 (tui_add_content_elements): Remove.
3397 (tui_data_window): Update.
3398 (tui_free_data_content): Remove.
3399 (free_content_elements): Remove DATA_WIN case.
3401 2019-06-25 Tom Tromey <tom@tromey.com>
3403 * tui/tui-data.c (tui_data_item_window): Update.
3404 * tui/tui-windata.h (tui_check_data_values): Don't declare.
3405 * tui/tui-windata.c (tui_display_all_data)
3406 (tui_display_data_from_line): Update.
3407 (tui_check_data_values): Remove.
3408 * tui/tui-regs.c (tui_show_register_group)
3409 (tui_display_reg_element_at_line): Update.
3410 * tui/tui-hooks.c (tui_register_changed)
3411 (tui_refresh_frame_and_register_information): Call
3412 tui_check_register_values.
3413 * tui/tui-data.h (struct tui_data_window) <data_content,
3414 data_content_count, data_type>: Remove.
3415 (enum tui_data_type): Remove.
3417 * tui/tui-data.c (tui_data_window::clear_detail)
3418 (~tui_data_window): Update.
3420 2019-06-25 Tom Tromey <tom@tromey.com>
3422 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
3424 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
3425 Rename from tui_first_data_item_displayed. Update.
3426 (tui_data_window::refresh_all)
3427 (tui_data_window::do_scroll_vertical): Update.
3428 * tui/tui-data.h (struct tui_data_window)
3429 <first_data_item_displayed>: Declare new method.
3431 2019-06-25 Tom Tromey <tom@tromey.com>
3433 * tui/tui-data.h (tui_init_generic_part): Don't declare.
3434 * tui/tui-data.c (tui_init_generic_part): Remove, moving
3436 (tui_initialize_static_data): ...here.
3438 2019-06-25 Tom Tromey <tom@tromey.com>
3440 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
3441 (tui_display_registers_from, tui_check_register_values): Update.
3442 (tui_display_register): Remove win_info parameter; update.
3443 (tui_get_register): Change type of parameters.
3444 * tui/tui-data.h (struct tui_data_element): Remove.
3445 (union tui_which_element) <data>: Remove.
3446 <data_window>: Change type.
3447 (struct tui_data_item_window): New.
3448 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
3450 (~tui_data_item_window): New destructor.
3451 (free_content_elements): Remove DATA_ITEM_WIN case.
3453 2019-06-25 Tom Tromey <tom@tromey.com>
3455 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
3458 2019-06-25 Tom Tromey <tom@tromey.com>
3460 * tui/tui-data.h (struct tui_command_element): Remove.
3461 (union tui_which_element) <command>: Remove.
3462 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
3464 (free_content_elements): Remove CMD_WIN case.
3466 2019-06-25 Tom Tromey <tom@tromey.com>
3468 * tui/tui-layout.c (tui_set_layout): Update.
3469 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
3470 * tui/tui-data.c (layout_def): Update.
3472 2019-06-25 Tom Tromey <tom@tromey.com>
3474 * tui/tui-wingeneral.c (tui_refresh_all): Update.
3475 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3476 (tui_source_window_base::set_new_height): Update.
3477 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
3479 (tui_set_locator_fullname, tui_set_locator_info)
3480 (tui_show_frame_info): Update.
3481 * tui/tui-source.c (tui_set_source_content)
3482 (tui_source_is_displayed): Update.
3483 * tui/tui-layout.c (show_source_disasm_command, show_data)
3484 (show_source_or_disasm_and_command): Update.
3485 * tui/tui-disasm.c (tui_set_disassem_content)
3486 (tui_get_begin_asm_address): Update.
3487 * tui/tui-data.h (struct tui_locator_element): Remove.
3488 (union tui_which_element) <locator>: Remove.
3489 (struct tui_locator_window): New.
3490 (tui_locator_win_info_ptr): Change return type.
3491 * tui/tui-data.c (_locator): Change type.
3492 (tui_locator_win_info_ptr): Change return type.
3493 (init_content_element): Remove LOCATOR_WIN case. Add assert.
3494 (tui_alloc_content): Add assert.
3496 2019-06-25 Tom Tromey <tom@tromey.com>
3498 * tui/tui-winsource.c
3499 (tui_exec_info_window::maybe_allocate_content): New method.
3500 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
3501 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
3502 (make_source_or_disasm_window): Add cast.
3503 * tui/tui-data.h (union tui_which_element) <simple_string>:
3505 (struct tui_source_info): New.
3506 (struct tui_source_window_base) <execution_info>: Change type.
3507 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
3508 case, and add assert.
3509 (tui_alloc_content): Add assert.
3511 2019-06-25 Tom Tromey <tom@tromey.com>
3513 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
3514 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
3515 * tui/tui-data.c (tui_alloc_win_info): Remove.
3517 2019-06-25 Tom Tromey <tom@tromey.com>
3519 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
3520 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
3523 2019-06-25 Tom Tromey <tom@tromey.com>
3525 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
3526 make_visible_with_new_height method.
3527 (tui_win_info::make_visible_with_new_height): New method.
3528 (tui_source_window_base::do_make_visible_with_new_height)
3529 (tui_data_window::do_make_visible_with_new_height)
3530 (tui_cmd_window::do_make_visible_with_new_height): New methods.
3531 (make_visible_with_new_height): Remove.
3532 (tui_resize_all, tui_adjust_win_heights): Use
3533 make_visible_with_new_height method.
3534 * tui/tui-data.h (struct tui_win_info)
3535 <do_make_visible_with_new_height, make_visible_with_new_height>:
3537 (struct tui_source_window_base, struct tui_data_window)
3538 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
3541 2019-06-25 Tom Tromey <tom@tromey.com>
3543 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
3545 (update_tab_width): Call update_tab_width method.
3546 * tui/tui-data.h (struct tui_win_info)
3547 (struct tui_source_window_base) <update_tab_width>: New methods.
3549 2019-06-25 Tom Tromey <tom@tromey.com>
3551 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
3553 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
3555 (tui_gen_win_info::make_visible): Update.
3556 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
3558 * tui/tui-data.h (enum tui_box): New enum.
3559 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
3561 2019-06-25 Tom Tromey <tom@tromey.com>
3563 * tui/tui-layout.c (make_source_or_disasm_window): Always use
3564 init_and_make_win for EXEC_INFO_WIN.
3565 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
3567 (struct tui_win_info) <~tui_win_info>: Inline.
3568 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
3570 * tui/tui-data.c (source_win, disasm_win): Remove globals.
3571 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
3573 (tui_initialize_static_data): Update.
3574 (~tui_gen_win_info): Handle more cleanup here.
3575 (~tui_source_window_base): Delete "execution_info".
3576 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
3578 2019-06-25 Tom Tromey <tom@tromey.com>
3580 * tui/tui-layout.c (make_command_window): Don't set
3582 (show_source_disasm_command): Call the reset method.
3583 (show_data): Don't set can_highlight. Call the reset method.
3584 (tui_gen_win_info::reset): Rename from init_gen_win_info
3585 (init_and_make_win): Simplify. Return tui_gen_win_info.
3586 (show_source_or_disasm_and_command): Call the reset method.
3587 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
3588 (struct tui_cmd_window): Set can_highlight.
3590 2019-06-25 Tom Tromey <tom@tromey.com>
3592 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
3594 (tui_make_visible, tui_make_invisible): Rewrite.
3595 (tui_win_info::make_visible): Remove.
3596 (tui_source_window_base::make_visible): Update.
3597 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
3598 method. Moved from...
3599 (struct tui_win_info) <make_visible>: ...here.
3601 2019-06-25 Tom Tromey <tom@tromey.com>
3603 * tui/tui-winsource.c
3604 (tui_source_window_base::do_scroll_horizontal): Remove direction
3606 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
3607 direction parameter.
3608 * tui/tui-win.c (tui_win_info::forward_scroll)
3609 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
3610 (tui_win_info::right_scroll): Update.
3611 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
3612 direction parameter.
3613 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
3614 direction parameter.
3615 * tui/tui-data.h (enum tui_scroll_direction): Remove.
3616 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
3617 Remove direction parameter.
3618 (struct tui_source_window_base, struct tui_source_window)
3619 (struct tui_disasm_window, struct tui_data_window)
3620 (struct tui_cmd_window): Update.
3622 2019-06-25 Tom Tromey <tom@tromey.com>
3624 * tui/tui-winsource.h (tui_set_exec_info_content)
3625 (tui_show_exec_info_content, tui_erase_exec_info_content)
3626 (tui_clear_exec_info_content, tui_update_exec_info): Change
3627 argument to tui_source_window_base.
3628 * tui/tui-winsource.c (tui_set_exec_info_content)
3629 (tui_show_exec_info_content, tui_erase_exec_info_content)
3630 (tui_clear_exec_info_content, tui_update_exec_info): Change
3631 argument to tui_source_window_base.
3633 2019-06-25 Tom Tromey <tom@tromey.com>
3635 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
3636 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
3638 2019-06-25 Tom Tromey <tom@tromey.com>
3640 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
3643 2019-06-25 Tom Tromey <tom@tromey.com>
3645 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
3647 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
3649 * tui/tui-source.c (tui_set_source_content): Update.
3650 * tui/tui-disasm.c (tui_set_disassem_content): Update.
3652 2019-06-25 Tom Tromey <tom@tromey.com>
3654 * tui/tui-win.c (window_name_completer, tui_set_focus)
3655 (tui_all_windows_info): Use name method.
3656 * tui/tui-data.h (struct tui_gen_win_info)
3657 (struct tui_source_window, struct tui_disasm_window)
3658 (struct tui_data_window, struct tui_cmd_window) <name>: New
3660 (tui_win_name): Don't declare.
3661 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
3662 (tui_win_name): Remove.
3664 2019-06-25 Tom Tromey <tom@tromey.com>
3666 * tui/tui-winsource.h (tui_update_source_window)
3667 (tui_update_source_window_as_is): Change parameter type.
3668 * tui/tui-winsource.c (tui_update_source_window): Change win_info
3669 to be a tui_source_window_base.
3670 (tui_update_source_window_as_is): Likewise.
3671 * tui/tui-win.c (make_visible_with_new_height): Update.
3673 2019-06-25 Tom Tromey <tom@tromey.com>
3675 * tui/tui-winsource.c (tui_erase_source_content)
3676 (tui_show_source_content, tui_show_exec_info_content)
3677 (tui_erase_exec_info_content): Use refresh_window method.
3678 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
3679 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
3680 from tui_refresh_win.
3681 (tui_data_window::refresh_window): New method.
3682 (tui_win_info::refresh, tui_source_window_base::refresh)
3683 (tui_refresh_all): Use refresh_window method.
3684 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
3686 * tui/tui-regs.c (tui_display_register): Call refresh_window
3688 * tui/tui-layout.c (show_source_disasm_command)
3689 (show_source_or_disasm_and_command): Call refresh_window method.
3690 * tui/tui-data.h (struct tui_gen_win_info)
3691 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
3694 2019-06-25 Tom Tromey <tom@tromey.com>
3696 * tui/tui.c (tui_rl_other_window, tui_enable)
3697 (tui_is_window_visible, tui_get_command_dimension): Update.
3698 * tui/tui-winsource.c (tui_update_source_window_as_is)
3699 (tui_clear_source_content, tui_erase_source_content)
3700 (tui_show_source_line, tui_source_window_base::refill)
3701 (tui_source_window_base::do_scroll_horizontal)
3702 (tui_source_window_base::set_is_exec_point_at)
3703 (tui_update_breakpoint_info, tui_set_exec_info_content)
3704 (tui_alloc_source_buffer, tui_line_is_displayed)
3705 (tui_addr_is_displayed): Update.
3706 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
3707 (tui_check_and_display_highlight_if_needed)
3708 (tui_win_info::make_visible, tui_win_info::refresh)
3709 (tui_refresh_all): Update.
3710 * tui/tui-windata.c (tui_first_data_item_displayed)
3711 (tui_delete_data_content_windows, tui_erase_data_content)
3712 (tui_display_all_data, tui_data_window::refresh_all)
3713 (tui_check_data_values): Update.
3714 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
3715 (tui_set_win_focus_to, tui_win_info::forward_scroll)
3716 (tui_win_info::backward_scroll, tui_refresh_all_win)
3717 (tui_resize_all, tui_set_focus, tui_all_windows_info)
3718 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
3719 (tui_source_window_base::set_new_height)
3720 (tui_data_window::set_new_height)
3721 (make_invisible_and_set_new_height)
3722 (make_visible_with_new_height, new_height_ok)
3723 (parse_scrolling_args): Update.
3724 * tui/tui-stack.c (tui_show_frame_info): Update.
3725 * tui/tui-source.c (tui_set_source_content)
3726 (tui_set_source_content_nil, tui_source_is_displayed)
3727 (tui_source_window::do_scroll_vertical): Update.
3728 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
3729 (tui_display_registers_from, tui_display_reg_element_at_line)
3730 (tui_check_register_values, tui_reg_command): Update.
3731 * tui/tui-layout.c (tui_default_win_height)
3732 (show_source_disasm_command, show_data, init_and_make_win)
3733 (show_source_or_disasm_and_command): Update.
3734 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
3735 (tui_redisplay_readline, tui_mld_flush)
3736 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
3738 * tui/tui-disasm.c (tui_set_disassem_content)
3739 (tui_disasm_window::do_scroll_vertical): Update.
3740 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
3742 (struct tui_win_info): Derive from tui_gen_win_info.
3743 <~tui_win_info>: Mark as override.
3744 <generic>: Remove member.
3745 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
3746 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
3747 (~tui_data_window, ~tui_win_info)
3748 (tui_free_all_source_wins_content): Update.
3749 * tui/tui-command.c (tui_refresh_cmd_win): Update.
3751 2019-06-25 Tom Tromey <tom@tromey.com>
3753 * tui/tui-layout.c (init_and_make_win): Use new.
3754 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
3755 destructor, initializers.
3756 (tui_alloc_generic_win_info): Don't declare.
3757 * tui/tui-data.c (_locator): Add argument to constructor.
3758 (source_win, disasm_win): New globals.
3759 (exec_info): Remove.
3760 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
3762 (tui_alloc_generic_win_info): Remove.
3763 (init_content_element): Use new.
3764 (tui_win_info::tui_win_info): Update.
3765 (free_content_elements) <case DATA_WIN>: Use delete.
3767 2019-06-25 Tom Tromey <tom@tromey.com>
3769 * tui/tui-wingeneral.c (tui_refresh_win): Update.
3770 * tui/tui-windata.c (tui_first_data_item_displayed)
3771 (tui_delete_data_content_windows): Update.
3772 * tui/tui-win.c (tui_data_window::set_new_height): Update.
3773 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
3774 (tui_display_registers_from, tui_check_register_values): Update.
3775 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
3777 * tui/tui-data.c (init_content_element): Update. Allocate the new
3779 (tui_free_data_content): Update.
3780 (free_content_elements) <case DATA_WIN>: Free the window.
3782 2019-06-25 Tom Tromey <tom@tromey.com>
3784 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
3786 * tui/tui-layout.c (make_command_window)
3787 (show_source_disasm_command, show_data, init_and_make_win)
3788 (show_source_or_disasm_and_command): Update.
3789 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
3791 <can_highight, is_highlighted>: Now bool.
3792 (tui_set_win_highlight): Don't declare.
3793 * tui/tui-data.c (tui_set_win_highlight): Remove.
3795 2019-06-25 Tom Tromey <tom@tromey.com>
3797 * tui/tui-wingeneral.c (make_visible): Remove check of window
3800 2019-06-25 Tom Tromey <tom@tromey.com>
3802 * tui/tui-win.c (tui_win_info::max_height)
3803 (tui_cmd_window::max_height): New methods.
3804 (new_height_ok): Call max_height.
3805 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
3806 <max_height>: New method.
3808 2019-06-25 Tom Tromey <tom@tromey.com>
3810 * tui/tui-win.c (tui_source_window_base::set_new_height)
3811 (tui_data_window::set_new_height): New methods.
3812 (make_invisible_and_set_new_height): Call set_new_height method.
3813 * tui/tui-data.h (struct tui_win_info)
3814 (struct tui_source_window_base, struct tui_data_window)
3815 <set_new_height>: New method.
3817 2019-06-25 Tom Tromey <tom@tromey.com>
3819 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
3820 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
3821 tui_refresh_data_win.
3822 * tui/tui-win.c (tui_source_window_base::refresh_all): New
3824 (tui_refresh_all_win): Call the refresh_all method.
3825 (tui_set_focus): Likewise.
3826 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
3827 (struct tui_source_window_base, struct tui_data_window) <refresh>:
3830 2019-06-25 Tom Tromey <tom@tromey.com>
3832 * tui/tui-winsource.h (tui_refill_source_window)
3833 (tui_set_is_exec_point_at): Don't declare.
3834 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
3835 (tui_source_window_base::refill): Rename from
3836 tui_refill_source_window.
3837 (tui_source_window_base::do_scroll_horizontal): Update.
3838 (tui_source_window_base::set_is_exec_point_at): Rename from
3839 tui_set_is_exec_point_at.
3840 (tui_update_all_breakpoint_info): Update.
3841 * tui/tui-stack.c (tui_show_frame_info): Update.
3842 * tui/tui-layout.c (show_data): Add cast.
3843 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
3844 * tui/tui-data.h (struct tui_source_window_base) <refill,
3845 set_is_exec_point_at>: New methods.
3846 (tui_source_windows, tui_add_to_source_windows): Update types.
3847 (tui_add_to_source_windows): Remove redundant declaration.
3848 * tui/tui-data.c (source_windows): Store tui_source_window_base.
3849 (tui_source_windows): Change return type.
3850 (tui_clear_source_windows_detail): Update.
3851 (tui_add_to_source_windows): Change type of parameter.
3852 (tui_free_all_source_wins_content): Update.
3854 2019-06-25 Tom Tromey <tom@tromey.com>
3856 * tui/tui-wingeneral.c (tui_win_info::refresh)
3857 (tui_source_window_base::refresh): New methods.
3858 (tui_refresh_all): Call the refresh method.
3859 * tui/tui-data.h (struct tui_win_info)
3860 (struct tui_source_window_base) <refresh>: New method.
3862 2019-06-25 Tom Tromey <tom@tromey.com>
3864 * tui/tui.h (tui_is_window_visible): Return bool.
3865 * tui/tui.c (tui_is_window_visible): Return bool.
3866 * tui/tui-wingeneral.c (tui_make_window, make_visible)
3867 (tui_make_visible, tui_make_invisible)
3868 (tui_win_info::make_visible)
3869 (tui_source_window_base::make_visible, make_all_visible)
3870 (tui_make_all_visible, tui_make_all_invisible): Update.
3871 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
3872 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
3874 (struct tui_win_info, struct tui_source_window_base)
3875 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
3876 * tui/tui-data.c (tui_init_generic_part): Update.
3878 2019-06-25 Tom Tromey <tom@tromey.com>
3880 * tui/tui-wingeneral.c (tui_win_info::make_visible)
3881 (tui_source_window_base::make_visible): New methods.
3882 (make_all_visible): Make method call.
3883 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
3884 (struct tui_source_window_base, struct tui_cmd_window): Override
3886 (tui_win_is_source_type): Don't declare.
3887 * tui/tui-data.c (tui_win_is_source_type): Remove.
3889 2019-06-25 Tom Tromey <tom@tromey.com>
3891 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
3894 2019-06-25 Tom Tromey <tom@tromey.com>
3896 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
3897 Inline constructor. Add initializers for members.
3898 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
3899 constructors; now inline in class.
3901 2019-06-25 Tom Tromey <tom@tromey.com>
3903 * tui/tui-regs.c (tui_show_registers): Update.
3904 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
3906 * tui/tui-data.c (tui_data_window::clear_detail)
3907 (tui_data_window): Update.
3909 2019-06-25 Tom Tromey <tom@tromey.com>
3911 * tui/tui-windata.c (tui_display_all_data)
3912 (tui_display_data_from_line, tui_display_data_from)
3913 (tui_check_data_values, tui_data_window::do_scroll_vertical):
3915 * tui/tui-regs.c (tui_last_regs_line_no)
3916 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
3917 (tui_show_registers, tui_show_register_group)
3918 (tui_display_registers_from, tui_display_reg_element_at_line)
3919 (tui_display_registers_from_line, tui_check_register_values)
3920 (tui_reg_next, tui_reg_prev): Update.
3921 * tui/tui-layout.c (tui_set_layout, show_data): Update.
3922 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
3924 (struct tui_win_info) <detail>: Remove. Add new fields from
3926 (TUI_DATA_WIN): Add cast.
3927 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
3928 (~tui_data_window): Simplify.
3930 2019-06-25 Tom Tromey <tom@tromey.com>
3932 * tui/tui-layout.c (show_source_disasm_command)
3933 (show_source_or_disasm_and_command): Update.
3934 * tui/tui-io.c (update_cmdwin_start_line)
3935 (tui_redisplay_readline): Update.
3936 * tui/tui-data.h (struct tui_command_info): Remove.
3937 (struct tui_win_info) <detail>: Remove command_info member.
3938 (struct tui_data_window) <start_line>: New member, from
3940 (TUI_CMD_WIN): Add casts.
3942 2019-06-25 Tom Tromey <tom@tromey.com>
3944 * tui/tui-winsource.c (tui_update_source_window)
3945 (tui_refill_source_window)
3946 (tui_source_window_base::do_scroll_horizontal)
3947 (tui_update_breakpoint_info, tui_set_exec_info_content)
3948 (tui_show_exec_info_content, tui_erase_exec_info_content)
3949 (tui_clear_exec_info_content): Update.
3950 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
3952 * tui/tui-win.c (make_invisible_and_set_new_height)
3953 (make_visible_with_new_height): Update.
3954 * tui/tui-source.c (tui_set_source_content)
3955 (tui_show_symtab_source): Update.
3956 * tui/tui-layout.c (extract_display_start_addr)
3957 (show_source_disasm_command, show_data)
3958 (make_source_or_disasm_window)
3959 (show_source_or_disasm_and_command): Update.
3960 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
3961 (tui_disasm_window::do_scroll_vertical): Remove shadowing
3963 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
3964 to tui_source_window_base.
3965 (struct tui_win_info) <detail>: Remove source_info member.
3966 (struct tui_source_window_base) <has_locator>: Inline.
3967 Move contents from tui_source_info; rename has_locator member to
3969 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
3970 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
3972 (tui_source_window_base::clear_detail, ~tui_source_window_base):
3974 (tui_free_all_source_wins_content): Cast to
3975 tui_source_window_base.
3977 2019-06-25 Tom Tromey <tom@tromey.com>
3979 * tui/tui-win.c (make_invisible_and_set_new_height)
3980 (make_visible_with_new_height): Call has_locator method.
3981 * tui/tui-layout.c (show_source_disasm_command, show_data)
3982 (show_source_or_disasm_and_command): Update for bool change.
3983 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
3984 (tui_win_info) <has_locator>: New method.
3985 (struct tui_source_window_base) <has_locator>: New method.
3986 (tui_win_has_locator): Don't declare.
3987 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
3988 from tui_win_has_locator.
3989 (tui_source_window_base): Use false, not FALSE.
3991 2019-06-25 Tom Tromey <tom@tromey.com>
3993 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
3994 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
3995 clear_detail method directly.
3996 (tui_clear_win_detail): Remove.
3998 2019-06-25 Tom Tromey <tom@tromey.com>
4000 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
4001 "this", not TUI_DISASM_WIN.
4003 2019-06-25 Tom Tromey <tom@tromey.com>
4005 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
4007 * tui/tui-winsource.c
4008 (tui_source_window_base::do_scroll_horizontal): Rename from
4009 tui_horizontal_source_scroll.
4010 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
4011 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
4012 from tui_vertical_data_scroll.
4013 * tui/tui-win.h (tui_scroll): Don't declare.
4014 * tui/tui-win.c (tui_win_info::forward_scroll)
4015 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
4016 (tui_win_info::right_scroll): Rename and update.
4017 (tui_scroll_forward_command, tui_scroll_backward_command)
4018 (tui_scroll_left_command, tui_scroll_right_command): Update.
4019 (tui_scroll): Remove.
4020 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
4021 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
4022 from tui_vertical_source_scroll.
4023 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
4024 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
4025 from tui_vertical_disassem_scroll.
4026 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
4027 do_scroll_horizontal>: New methods.
4028 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
4030 (struct tui_source_window_base): Add do_scroll_horizontal.
4031 (struct tui_source_window, struct tui_disasm_window): Add
4033 (struct tui_data_window, struct tui_cmd_window): Add
4034 do_scroll_horizontal and do_scroll_vertical.
4035 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
4037 2019-06-25 Tom Tromey <tom@tromey.com>
4039 * tui/tui-data.h (struct tui_source_window_base): New struct.
4040 (struct tui_source_window): Derive from tui_source_window_base.
4041 (struct tui_disasm_window): New struct.
4042 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
4043 from tui_source_window::clear_detail.
4044 (tui_source_window_base): Rename from tui_source_window.
4045 (~tui_source_window_base): Rename from ~tui_source_window.
4046 (tui_alloc_win_info): Create a tui_disasm_window.
4048 2019-06-25 Tom Tromey <tom@tromey.com>
4050 * tui/tui-data.h (struct tui_source_window)
4051 (struct tui_data_window): Declare destructors.
4052 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
4054 (tui_win_info): Simplify.
4056 2019-06-25 Tom Tromey <tom@tromey.com>
4058 * tui/tui-winsource.c (tui_display_main)
4059 (tui_update_source_windows_with_addr)
4060 (tui_update_all_breakpoint_info): Update.
4061 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4062 (new_height_ok, parse_scrolling_args): Update.
4063 * tui/tui-stack.c (tui_show_frame_info): Update.
4064 * tui/tui-data.h (struct tui_list): Remove.
4065 (tui_source_windows): Return a reference to a std::vector.
4066 * tui/tui-data.c (source_windows): Now a std::vector.
4067 (tui_source_windows): Change return type.
4068 (tui_clear_source_windows): Rewrite.
4069 (tui_clear_source_windows_detail, tui_add_to_source_windows)
4070 (tui_free_all_source_wins_content): Rewrite.
4072 2019-06-25 Tom Tromey <tom@tromey.com>
4074 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
4075 (struct tui_data_window, struct tui_cmd_window): Declare
4076 clear_detail method.
4077 * tui/tui-data.c (tui_source_window::clear_detail)
4078 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
4080 (tui_clear_win_detail): Simplify.
4082 2019-06-25 Tom Tromey <tom@tromey.com>
4084 * tui/tui-layout.c (make_source_window, make_disasm_window)
4085 (make_source_or_disasm_window): Remove win_info_ptr parameter.
4086 Return the new window.
4087 (show_source_disasm_command, show_data)
4088 (show_source_or_disasm_and_command): Update.
4090 2019-06-25 Tom Tromey <tom@tromey.com>
4092 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
4093 parameter. Return the new window.
4094 (show_source_disasm_command): Update and remove NULL check.
4095 (show_source_or_disasm_and_command): Update.
4097 2019-06-25 Tom Tromey <tom@tromey.com>
4099 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
4101 2019-06-25 Tom Tromey <tom@tromey.com>
4103 * tui/tui-data.h (struct tui_win_info): Make constructor
4104 protected. Make destructor virtual. Add initializers.
4105 (tui_source_window, tui_data_window, tui_cmd_window): New
4107 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
4108 constructor. Add "type" parameter.
4109 (tui_source_window, tui_data_window, tui_cmd_window): New
4111 (tui_alloc_win_info): Instantiate the appropriate subclass.
4113 2019-06-25 Tom Tromey <tom@tromey.com>
4115 * tui/tui-win.c (tui_resize_all): Use delete.
4116 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
4118 (tui_free_window): Don't declare.
4119 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
4122 2019-06-25 Tom Tromey <tom@tromey.com>
4124 * tui/tui-data.h (struct tui_win_info): Add constructor.
4125 * tui/tui-data.c (tui_alloc_win_info): Use new.
4126 (tui_free_window): Use delete.
4128 2019-06-22 Tom Tromey <tom@tromey.com>
4130 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
4132 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
4134 2019-06-22 Tom Tromey <tom@tromey.com>
4136 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
4138 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
4140 2019-06-22 Tom de Vries <tdevries@suse.de>
4142 * dwarf2read.c (create_addrmap_from_aranges)
4143 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
4146 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
4148 * dwarf2read.h (dwarf2_section_info_def): Remove.
4149 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
4150 * dwarf2read.c (struct dwo_sections) <types>: Change type to
4151 std::vector<dwarf2_section_info>.
4152 (struct dwo_file) <~dwo_file>: Remove.
4153 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
4155 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
4156 (dwarf2_read_debug_names): Likewise.
4157 (create_debug_types_hash_table): Change parameter type to
4158 array_view, adjust code accordingly.
4159 (dwarf2_locate_dwo_sections): Adjust to std::vector.
4160 (partial_die_info::fixup): Likewise.
4161 (determine_prefix): Likewise.
4162 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
4164 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4166 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
4168 <~dwo_file>: Remove call to gdb_bfd_unref.
4169 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
4170 gdb_bfd_ref_ptr::get.
4172 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4174 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
4176 * dwarf2read.c (struct dwo_file): Initialize fields.
4178 (free_dwo_file): Remove, move content to ~dwo_file.
4179 (struct dwo_file_deleter): Remove.
4180 (dwo_file_up>: Remove custom deleter.
4181 (free_dwo_files): Remove.
4182 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
4184 (process_skeletonless_type_units): Call unique_ptr::get.
4185 (allocate_dwo_file_hash_table): Add deleter to created hash
4186 table. Change return type to htab_up.
4187 (lookup_dwo_file_slot): Don't memset dwo_file, call
4189 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
4190 (create_dwo_unit_in_dwp_v2): Likewise.
4191 (open_and_init_dwo_file): Likewise.
4192 (free_dwo_file_from_slot): Remove.
4194 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4196 * dwarf2read.h (struct dwarf2_section_info) <readin,
4197 is_virtual>: Change type to bool.
4198 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
4201 2019-06-19 Tom Tromey <tom@tromey.com>
4203 * tui/tui-data.h (tui_init_content_element): Don't declare.
4205 2019-06-19 Tom Tromey <tom@tromey.com>
4207 * tui/tui-data.h (tui_init_win_info): Don't declare.
4209 2019-06-19 Tom de Vries <tdevries@suse.de>
4211 * dwarf2read.h (abstract_to_concrete): Change type to
4212 std::unordered_map<sect_offset, std::vector<sect_offset>,
4213 gdb::hash_enum<sect_offset>>.
4215 2019-06-19 Tom Tromey <tromey@adacore.com>
4217 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
4218 EVAL_AVOID_SIDE_EFFECTS specially.
4220 2019-06-19 Tom Tromey <tromey@adacore.com>
4222 * source-cache.c (highlighter): New global.
4223 (source_cache::get_source_lines): Create a highlighter on demand.
4225 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
4227 * defs.h (deprecated_interactive_hook): Delete declaration.
4228 * interps.c (clear_interpreter_hooks): Remove use of
4229 deprecated_interactive_hook.
4230 * top.c (deprecated_interactive_hook): Delete definition.
4231 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
4233 2019-06-18 Tom de Vries <tdevries@suse.de>
4236 * dwarf2read.h (abstract_to_concrete): Change type from
4237 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
4238 std::unordered_map<sect_offset, std::vector<sect_offset>>.
4239 * dwarf2read.c (read_variable): Update.
4240 (dwarf2_fetch_die_loc_sect_off): Update.
4242 2019-06-17 Tom de Vries <tdevries@suse.de>
4245 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
4246 accessing parent[parent_len - 1].
4248 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
4251 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
4252 call dtrace_process_dof with NULL dof.
4254 2019-06-16 Tom de Vries <tdevries@suse.de>
4257 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
4259 2019-06-16 Tom Tromey <tom@tromey.com>
4261 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
4262 (make_all_visible): Use address of member.
4264 2019-06-16 Tom Tromey <tom@tromey.com>
4266 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
4267 (tui_free_window, free_content, free_content_elements): Remove
4269 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
4271 * tui/tui-regs.c (tui_show_register_group)
4272 (tui_display_registers_from, tui_display_reg_element_at_line):
4273 Remove unnecessary cast.
4275 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
4277 * linux-nat.c (normal_mask): Delete.
4278 (_initialize_linux_nat): Don't initialise normal_mask.
4280 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
4283 * dwarf-index-write.h (write_psymtabs_to_index): Add
4284 dwz_basename parameter.
4285 * dwarf-index-write.c (write_gdbindex): Move file writing to
4286 write_gdbindex_1. Change return type void.
4287 (assert_file_size): Move up, remove filename parameter.
4288 (write_gdbindex_1): New function.
4289 (write_debug_names): Change return type to void, call
4291 (struct index_wip_file): New struct.
4292 (write_psymtabs_to_index): Add dwz_basename parameter. Move
4293 file logic to index_wip_file. Write index for dwz file if
4295 (save_gdb_index_command): Pass basename of dwz file, if present.
4296 * dwarf-index-cache.c (index_cache::store): Obtain and pass
4297 build-id of dwz file, if present.
4298 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
4299 (dwarf2_get_dwz_file): Likewise.
4300 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
4301 (dwarf2_get_dwz_file): Likewise.
4303 2019-06-16 Tom Tromey <tom@tromey.com>
4305 * coffread.c (process_coff_symbol): Use xstrdup.
4306 * value.c (create_internalvar): Use xstrdup.
4308 2019-06-16 Tom Tromey <tom@tromey.com>
4310 * valops.c (value_cast, value_slice): Remove unnecessary cast.
4311 * breakpoint.c (stopin_command, stopat_command)
4312 (until_break_command, decode_location_default): Remove unnecessary
4314 * utils.c (subset_compare): Remove unnecessary cast.
4315 * ada-lang.c (ada_update_initial_language): Remove unnecessary
4317 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
4319 * infcmd.c (path_command): Remove unnecessary cast.
4320 * coffread.c (decode_type): Remove unnecessary cast.
4321 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
4322 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
4323 * tui/tui-stack.c (tui_show_locator_content)
4324 (tui_show_frame_info): Remove unnecessary cast.
4325 * tui/tui-win.c (tui_scroll_forward_command)
4326 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
4327 (parse_scrolling_args): Remove unnecessary cast.
4328 * tui/tui-data.c (init_win_info, tui_del_window)
4329 (tui_free_window, tui_del_data_windows, tui_free_data_content)
4330 (free_content_elements): Remove unnecessary cast.
4331 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
4333 * tui/tui-source.c (tui_set_source_content)
4334 (tui_vertical_source_scroll): Remove unnecessary cast.
4335 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
4337 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
4338 * tui/tui-regs.c (tui_display_registers_from)
4339 (tui_display_register): Remove unnecessary cast.
4340 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
4341 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
4342 (make_visible): Remove unnecessary cast.
4343 * tui/tui-winsource.c (tui_erase_source_content)
4344 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
4346 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
4347 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
4348 * stabsread.c (read_type, read_array_type, read_range_type):
4349 Remove unnecessary cast.
4350 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
4351 (parse_symbol, parse_type, upgrade_type, parse_external)
4352 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
4354 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
4356 2019-06-16 Tom Tromey <tom@tromey.com>
4358 * tui/tui-data.c (tui_alloc_generic_win_info)
4359 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
4362 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
4363 Andrew Burgess <andrew.burgess@embecosm.com>
4365 * f-typeprint.c (f_print_type): Don't return early for not
4366 associated or not allocated types.
4367 (f_type_print_varspec_suffix): Add print_rank parameter and print
4368 ranks of array types in case they dangling.
4369 (f_type_print_base): Add print_rank parameter.
4371 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4373 * NEWS: Mention new MI commands.
4374 * break-catch-throw.c (enum exception_event_kind): Move to
4376 (print_mention_exception_catchpoint): Output text as a single
4378 (catch_exception_command_1): Rename to...
4379 (catch_exception_event): ...this, make non-static, update header
4380 command, and change some parameter types.
4381 (catch_catch_command): Update for changes to
4382 catch_exception_command_1.
4383 (catch_throw_command): Likewise.
4384 (catch_rethrow_command): Likewise.
4385 * breakpoint.c (enum exception_event_kind): Delete.
4386 * breakpoint.h (enum exception_event_kind): Moved here from
4387 break-catch-throw.c.
4388 (catch_exception_event): Declare.
4389 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
4390 (mi_cmd_catch_throw): New function.
4391 (mi_cmd_catch_rethrow): New function.
4392 (mi_cmd_catch_catch): New function.
4393 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
4394 'catch-catch' entries.
4395 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
4396 (mi_cmd_catch_rethrow): Declare.
4397 (mi_cmd_catch_catch): Declare.
4399 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4401 * annotate.c (annotate_source_line): Change return type to void,
4402 update implementation to match.
4403 * annotate.h (annotate_source_line): Change return type to void,
4404 update header comment.
4405 * stack.c (print_frame_info): Don't change what frame information
4406 is printed based on whether annotations are on or not.
4408 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4410 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
4411 (annotate_source): Make static.
4412 (annotate_source_line): Moved from source.c and renamed from
4413 identify_source_line. Update the return type.
4414 * annotate.h (annotate_source): Delete declaration.
4415 (annotate_source_line): Declaration moved from source.h, and
4416 renamed from identify_source_line. Return type updated.
4417 * source.c (identify_source_line): Moved to annotate.c and renamed
4418 to annotate_source_line.
4419 (info_line_command): Remove check of annotation_level.
4420 * source.h (identify_source_line): Move declaration to annotate.h
4421 and rename to annotate_source_line.
4422 * stack.c: Add 'annotate.h' include.
4423 (print_frame_info): Remove check of annotation_level before
4424 calling annotate_source_line.
4426 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4428 * source-cache.c (source_cache::get_plain_source_lines): Use
4429 open_source_file_with_line_charpos instead of just
4430 open_source_file, remove call to find_source_lines.
4431 (source_cache::get_source_lines): Likewise.
4432 * source.c (find_source_lines): Make static.
4433 (get_filename_and_charpos): Renamed into...
4434 (open_source_file_with_line_charpos): ..this along with changes to
4435 return a scoped_fd, and some other minor clean ups.
4436 (identify_source_line): Use open_source_file_with_line_charpos.
4437 (search_command_helper): Use open_source_file_with_line_charpos
4438 instead of just open_source_file, remove call to
4440 * source.h (open_source_file_with_line_charpos): Declare new
4442 (find_source_lines): Delete declaration.
4444 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4446 * source.c (get_filename_and_charpos): Remove fullname
4448 (identify_source_line): Update call to get_filename_and_charpos.
4450 2019-06-14 Tom Tromey <tromey@adacore.com>
4453 * ui-style.h (skip_ansi_escape): Update comment.
4454 * ui-file.h (class no_terminal_escape_file): New class.
4455 * ui-file.c (no_terminal_escape_file::write)
4456 (no_terminal_escape_file::puts): New methods.
4457 * cli/cli-logging.c (handle_redirections): Use
4458 no_terminal_escape_file.
4460 2019-06-14 Tom Tromey <tromey@adacore.com>
4462 * NEWS: Move convenience variable news above Python news.
4464 2019-06-14 Tom Tromey <tom@tromey.com>
4466 * gnulib: Move directory to top-level.
4467 * configure.ac: Don't configure gnulib.
4468 * configure: Rebuild.
4469 * common/common-defs.h: Use new path to gnulib.
4470 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
4472 (INCGNU): Look in new gnulib location.
4473 (HFILES_NO_SRCDIR): Remove gnulib files.
4474 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
4475 (generated_files): Remove GNULIB_H.
4476 ($(LIBGNU), all-lib): Remove targets.
4477 (distclean): Don't mention GNULIB_BUILDDIR.
4478 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
4480 2019-06-14 Tom Tromey <tromey@adacore.com>
4482 * symfile.c (add_symbol_file_command): Remove obsolete comment.
4483 Warn if symbol file does not provide any symbols.
4485 2019-06-14 Tom Tromey <tromey@adacore.com>
4487 * source.c (find_and_open_source): Respect basenames_may_differ.
4489 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
4491 * annotate.c (annotate_breakpoints_invalid): Make use of
4492 scoped_restore_terminal_state.
4493 (annotate_frames_invalid): Likewise.
4495 2019-06-14 Tom Tromey <tromey@adacore.com>
4497 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
4498 allow assignment to an internalvar.
4500 2019-06-14 Tom Tromey <tromey@adacore.com>
4502 * ada-lex.l: Allow "_" in attribute names.
4504 2019-06-14 Tom Tromey <tromey@adacore.com>
4507 * regcache.c (registers_changed): Don't call alloca.
4508 * top.c (execute_command): Don't call alloca.
4510 2019-06-13 Pedro Alves <palves@redhat.com>
4512 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
4513 'expression'. When parsing an expression, error out if there's
4514 junk after "unlimited".
4515 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
4516 (do_set_command): Adjust calls to is_unlimited_literal.
4518 2019-06-13 Pedro Alves <palves@redhat.com>
4520 * compile/compile.c (make_compile_options_def_group): Add braces
4521 around array_view initializer.
4522 * thread.c (make_thread_apply_all_options_def_group)
4523 (make_thread_apply_all_options_def_group): Likewise.
4525 2019-06-13 Pedro Alves <palves@redhat.com>
4527 * NEWS (New commands): Mention "maint test-options
4528 require-delimiter", "maint test-options unknown-is-error", "maint
4529 test-options unknown-is-operand" and "maint show
4530 test-options-completion-result".
4531 (New command options, command completion): New section.
4532 (Completion improvements): New section.
4533 Mention that you can abbreviate "unlimited".
4535 2019-06-13 Pedro Alves <palves@redhat.com>
4537 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
4538 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
4539 * unittests/cli-utils-selftests.c (test_parse_flags)
4540 (test_parse_flags_qcs): Delete.
4541 (test_cli_utils): Don't call deleted functions.
4543 2019-06-13 Pedro Alves <palves@redhat.com>
4545 * thread.c: Include "cli/cli-option.h".
4546 (tp_array_compar_ascending): Global.
4547 (tp_array_compar): Delete function.
4548 (tp_array_compar_ascending, tp_array_compar_descending): New
4550 (ascending_option_def, qcs_flag_option_def)
4551 (thr_qcs_flags_option_defs)
4552 (make_thread_apply_all_options_def_group)
4553 (make_thread_apply_options_def_group): New.
4554 (thread_apply_all_command): Use gdb::option::process_options.
4555 (thread_apply_command_completer)
4556 (thread_apply_all_command_completer): New.
4557 (thread_apply_command): Use gdb::option::process_options.
4558 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
4559 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
4560 to generate help text of "thread apply". Adjust "taas"'s help.
4561 * tid-parse.c (tid_range_parser::in_thread_range): New method.
4562 * tid-parse.h (tid_range_parser::in_thread_range): New method.
4564 2019-06-13 Pedro Alves <palves@redhat.com>
4566 * thread.c (thread_apply_command): Check for invalid TID with
4567 isdigit instead of !isalpha.
4569 2019-06-13 Pedro Alves <palves@redhat.com>
4571 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
4572 (validate_flags_qcs): New.
4573 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
4574 (validate_flags_qcs): Declare.
4575 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
4576 (make_frame_apply_options_def_group): New.
4577 (frame_apply_command_count): Process options with
4578 gdb::option::process_options.
4579 (frame_apply_completer): New.
4580 (frame_apply_level_completer, frame_apply_all_completer)
4581 (frame_apply_completer): New.
4582 (_initialize_stack): Update help of "frame apply", "frame apply
4583 level", "frame apply all" and "faas" to mention supported options
4584 and install command completers.
4585 * stack.h (frame_apply_all_completer): Declare.
4586 * thread.c: Include "stack.h".
4587 (tfaas_command): Add "--".
4588 (_initialize_thread): Update help "tfaas" to mention supported
4589 options and install command completer.
4591 2019-06-13 Pedro Alves <palves@redhat.com>
4593 * completer.c (complete_nested_command_line): New.
4594 (gdb_completion_word_break_characters_throw): Add assertion.
4595 * completer.h (complete_nested_command_line): Declare.
4597 2019-06-13 Pedro Alves <palves@redhat.com>
4599 * stack.c (parse_backtrace_qualifiers): New.
4600 (backtrace_command): Use it.
4601 (backtrace_command_completer): Complete on qualifiers.
4603 2019-06-13 Pedro Alves <palves@redhat.com>
4605 * frame.c: Include "cli/cli-option.h.
4606 (user_set_backtrace_options): New.
4607 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
4609 (get_prev_frame): Adjust.
4610 (boolean_option_def, uinteger_option_def)
4611 (set_backtrace_option_defs): New.
4612 (_initialize_frame): Adjust and use
4613 gdb::option::add_setshow_cmds_for_options to install "set
4614 backtrace past-main" and "set backtrace past-entry".
4615 * frame.h: Include "cli/cli-option.h".
4616 (struct frame_print_options): Forward declare.
4617 (print_frame_arguments_all, print_frame_arguments_scalars)
4618 (print_frame_arguments_none): Declare.
4619 (print_entry_values): Delete declaration.
4620 (struct frame_print_options, user_frame_print_options): New.
4621 (struct set_backtrace_options): New.
4622 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
4623 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
4624 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
4625 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
4626 (list_args_or_locals): Add frame_print_options parameter.
4627 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
4628 * python/py-framefilter.c (enumerate_args): Pass down
4629 USER_FRAME_PRINT_OPTIONS.
4630 * stack.c: Include "cli/cli-option.h".
4631 (print_frame_arguments_all, print_frame_arguments_scalars)
4632 (print_frame_arguments_none): Declare.
4633 (print_raw_frame_arguments, print_entry_values): Delete.
4634 (user_frame_print_options): New.
4635 (boolean_option_def, enum_option_def, frame_print_option_defs):
4637 (struct backtrace_cmd_options): New.
4638 (bt_flag_option_def): New.
4639 (backtrace_command_option_defs): New.
4640 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
4641 (print_frame_arg, read_frame_arg, print_frame_args)
4642 (print_frame_info, print_frame): Add frame_print_options parameter
4644 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
4645 (backtrace_command_1): Add frame_print_options and
4646 backtrace_cmd_options parameters and use them.
4647 (make_backtrace_options_def_group): New.
4648 (backtrace_command): Process command options with
4649 gdb::option::process_options.
4650 (backtrace_command_completer): New.
4651 (_initialize_stack): Extend "backtrace"'s help to mention
4652 supported options. Install completer for "backtrace".
4653 Install some settings commands with add_setshow_cmds_for_options.
4655 2019-06-13 Pedro Alves <palves@redhat.com>
4657 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
4658 and that "set/show print raw frame-arguments" are now deprecated.
4660 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
4662 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
4663 * stack.c (_initialize_stack): Install "set/show print
4664 raw-frame-arguments", and deprecate "set/show print raw
4666 * valprint.c (_initialize_valprint): Deprecate "set/show print
4669 2019-06-13 Pedro Alves <palves@redhat.com>
4671 * compile/compile.c (struct compile_options): New.
4672 (compile_flag_option_def, compile_command_option_defs)
4673 (make_compile_options_def_group): New.
4674 (compile_file_command): Handle options with
4675 gdb::option::process_options.
4676 (compile_file_command_completer): New function.
4677 (compile_code_command): Handle options with
4678 gdb::option::process_options.
4679 (compile_code_command_completer): New function.
4680 (_initialize_compiler): Install completers for "compile code" and
4681 "compile file". Mention available options in "compile code" and
4682 "compile code"'s help.
4683 * completer.c (advance_to_completion_word): New, factored out from
4685 (advance_to_expression_complete_word_point): ... this.
4686 (advance_to_filename_complete_word_point): New.
4687 * completer.h (advance_to_filename_complete_word_point): New
4690 2019-06-13 Pedro Alves <palves@redhat.com>
4692 * compile/compile.c: Include "cli/cli-option.h".
4693 (compile_print_value): Scope data pointer is now a
4694 value_print_options pointer; adjust.
4695 (compile_print_command): Process options. Scope data pointer is
4696 now a value_print_options pointer; adjust.
4697 (_initialize_compile): Update "compile print"'s help to include
4698 supported options. Install a completer for "compile print".
4699 * cp-valprint.c (show_vtblprint, show_objectprint)
4700 (show_static_field_print): Delete.
4701 (_initialize_cp_valprint): Don't install "set print
4702 static-members", "set print vtbl", "set print object" here.
4703 * printcmd.c: Include "cli/cli-option.h" and
4704 "common/gdb_optional.h".
4705 (print_command_parse_format): Rework to fill in a
4706 value_print_options instead of a format_data.
4707 (print_value): Change parameter type from format_data pointer to
4708 value_print_options reference. Adjust.
4709 (print_command_1): Process options. Adjust to pass down a
4710 value_print_options.
4711 (print_command_completer): New.
4712 (_initialize_printcmd): Install print_command_completer as
4713 handle_brkchars completer for the "print" command. Update
4714 "print"'s help to include supported options.
4715 * valprint.c: Include "cli/cli-option.h".
4716 (show_vtblprint, show_objectprint, show_static_field_print): Moved
4717 here from cp-valprint.c.
4718 (boolean_option_def, uinteger_option_def)
4719 (value_print_option_defs, make_value_print_options_def_group):
4720 New. Use gdb::option::add_setshow_cmds_for_options to install
4721 "set print elements", "set print null-stop", "set print repeats",
4722 "set print pretty", "set print union", "set print array", "set
4723 print address", "set print symbol", "set print array-indexes".
4724 * valprint.h: Include <string> and "cli/cli-option.h".
4725 (make_value_print_options_def_group): Declare.
4726 (print_value): Change parameter type from format_data pointer to
4727 value_print_options reference.
4728 (print_command_completer): Declare.
4730 2019-06-13 Pedro Alves <palves@redhat.com>
4732 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
4733 (COMMON_SFILES): Add maint-test-settings.c.
4734 * cli/cli-decode.c (boolean_enums): New global, factored out from
4736 (add_setshow_boolean_cmd): ... here.
4737 * cli/cli-decode.h (boolean_enums): Declare.
4738 * cli/cli-option.c: New file.
4739 * cli/cli-option.h: New file.
4740 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
4741 factored out from ...
4742 (parse_cli_boolean_value(const char *)): ... this.
4743 (is_unlimited_literal): Change parameter type to pointer to
4744 pointer. Adjust and advance ARG pointer.
4745 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
4746 (parse_cli_var_enum): New, factored out from ...
4747 (do_set_command): ... this. Adjust.
4748 * cli/cli-setshow.h (parse_cli_boolean_value)
4749 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
4750 (parse_cli_var_enum): Declare.
4751 * cli/cli-utils.c: Include "cli/cli-option.h".
4752 (get_ulongest): New.
4753 * cli/cli-utils.h (get_ulongest): Declare.
4754 (check_for_argument): New overloads.
4755 * maint-test-options.c: New file.
4757 2019-06-13 Pedro Alves <palves@redhat.com>
4759 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
4760 parse a range if "-" is at the end of the string.
4762 2019-06-13 Pedro Alves <palves@redhat.com>
4764 * cli/cli-setshow.c (parse_auto_binary_operation)
4765 (parse_cli_boolean_value): Don't allow "o".
4767 2019-06-13 Pedro Alves <palves@redhat.com>
4769 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
4770 * NEWS: Mention maint test-settings KIND.
4771 * maint-test-settings.c: New file.
4773 2019-06-13 Pedro Alves <palves@redhat.com>
4775 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
4777 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
4780 2019-06-13 Pedro Alves <palves@redhat.com>
4782 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
4785 2019-06-13 Pedro Alves <palves@redhat.com>
4787 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
4789 2019-06-13 Pedro Alves <palves@redhat.com>
4791 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
4792 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
4794 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
4795 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
4797 (check_for_argument): Skip spaces after argument.
4799 2019-06-13 Pedro Alves <palves@redhat.com>
4801 * thread.c (thread_apply_command): Adjust TID parsing.
4802 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
4803 detected before end of string.
4804 (tid_is_in_list): Error out if LIST is invalid.
4806 2019-06-13 Pedro Alves <palves@redhat.com>
4808 * completer.c (complete_line_internal_1): Rewind completion word
4810 (completion_tracker::advance_custom_word_point_by): Change
4811 parameter type to int.
4812 * completer.h (completion_tracker::advance_custom_word_point_by):
4815 2019-06-13 Pedro Alves <palves@redhat.com>
4817 * completer.c (advance_to_completion_word): Handle delimiters.
4819 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
4821 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
4823 2019-06-11 Tom Tromey <tom@tromey.com>
4825 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
4826 (xmalloc_failed): Move to alloc.c.
4827 * alloc.c: New file.
4828 * Makefile.in (COMMON_SFILES): Add alloc.c.
4830 2019-06-11 Tom Tromey <tom@tromey.com>
4832 * nat/linux-waitpid.c: Don't include server.h.
4833 (linux_debug): Remove.
4834 (my_waitpid): Update.
4836 2019-06-11 Tom Tromey <tromey@adacore.com>
4838 * infcall.c (_initialize_infcall): Remove trailing newline from
4840 * user-regs.c (_initialize_user_regs): Remove trailing newline
4842 * typeprint.c (_initialize_typeprint): Remove trailing newline
4844 * reverse.c (_initialize_reverse): Remove trailing newlines from
4846 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
4848 * language.c (add_set_language_command): Remove trailing newline
4850 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
4852 * disasm.c (_initialize_disasm): Remove trailing newline from
4854 * top.c (init_main): Remove trailing newline from help.
4855 * interps.c (_initialize_interpreter): Remove trailing newline
4857 * btrace.c (_initialize_btrace): Remove trailing newlines from
4859 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
4861 * python/python.c (_initialize_python): Remove trailing newline
4863 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
4865 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
4866 from help. Reformat some text.
4867 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
4869 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
4872 2019-06-11 Tom Tromey <tromey@adacore.com>
4874 * darwin-nat.c (darwin_decode_exception_message)
4875 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
4877 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
4879 * valops.c (value_slice): Check for not allocated or not
4882 2019-06-10 Tom de Vries <tdevries@suse.de>
4885 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
4886 sure an empty slot (defined by a 32-bit zero pair) is recognized as
4889 2019-06-10 Tom de Vries <tdevries@suse.de>
4892 * linespec.c (linespec_lexer_lex_string): Remove incorrect
4893 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
4895 2019-06-10 Tom de Vries <tdevries@suse.de>
4898 * symtab.c (struct demangled_name_entry): Add language field.
4899 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
4900 static minimal symbol". Set and use language field.
4902 2019-06-10 Tom Tromey <tromey@adacore.com>
4904 * ada-lang.c (_initialize_ada_language): Update help text.
4906 2019-06-10 Tom Tromey <tromey@adacore.com>
4908 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
4910 * guile/guile.c (handle_boot_error): Don't end warning with a
4912 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
4913 warning with a newline.
4914 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
4916 (s12z_frame_cache): Likewise.
4917 * dwarf-index-cache.c (index_cache::store): Don't end warning with
4919 * solib-svr4.c (disable_probes_interface): Don't end warning with
4921 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
4923 * python/python.c (do_finish_initialization): Don't end warning
4926 2019-06-10 Tom Tromey <tom@tromey.com>
4928 * python/py-breakpoint.c (gdbpy_breakpoint_created)
4929 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
4932 2019-06-10 Tom Tromey <tromey@adacore.com>
4934 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
4936 (elf_new_init): Don't call stabsread_new_init.
4937 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
4938 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
4939 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
4941 2019-06-10 Tom de Vries <tdevries@suse.de>
4945 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
4947 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
4949 * source.c (find_and_open_source): Also rewrite relative file
4952 2019-04-26 Amos Bird <amosbird@gmail.com>
4954 * annotate.c (annotate_thread_exited): Add "thread-exited"
4957 2019-06-06 Tom Tromey <tromey@adacore.com>
4959 * maint.h (class scoped_command_stats): Use
4960 DISABLE_COPY_AND_ASSIGN.
4961 <print_time>: New method.
4962 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
4964 (scoped_command_stats::print_time): New method.
4966 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4968 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
4969 instructions of lengths 6 or 8 bytes.
4971 2019-06-04 Pedro Alves <palves@redhat.com>
4973 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
4975 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
4976 * breakpoint.c (condition_completer): Likewise.
4977 * cli/cli-dump.c (scan_expression): Likewise.
4978 * common/filestuff.c (mkdir_recursive): Likewise.
4979 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
4980 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
4981 (gdb_abspath): Likewise.
4982 * compile/compile-cplus-types.c
4983 (compile_cplus_instance::decl_name): Likewise.
4984 * completer.c (complete_explicit_location):
4985 (signal_completer, reg_or_group_completer_1): Likewise.
4986 * cp-support.c (cp_remove_params_if_any): Likewise.
4987 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
4988 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
4989 * infcmd.c (strip_bg_char): Likewise.
4990 * linespec.c (copy_token_string): Likewise.
4991 * mi/mi-main.c (output_cores): Likewise.
4992 * psymtab.c (psymtab_search_name):
4993 * symfile.c (test_set_ext_lang_command): Likewise.
4994 * target.c (target_fileio_read_stralloc): Likewise.
4995 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
4996 * value.c (complete_internalvar): Likewise.
4998 2019-06-04 Christian Biesinger <cbiesinger@google.com>
5000 Add objfile property to gdb.Type.
5001 * NEWS: Mention Python API addition.
5002 * python/py-type.c (typy_get_objfile): New method.
5004 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5006 * NEWS: Mention the new set|show style [title|highlight].
5007 Mention changes to "show style", "help" and "apropos".
5009 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5011 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
5012 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
5013 instead of print_help_for_command.
5014 (print_doc_of_command): New function.
5015 (help_list): Add 'apropos -v word' suggestion.
5016 (print_help_for_command): Style the command name using title style.
5017 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
5018 (_initialize_cli_cmds): Describe -v in apropos_command help.
5020 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5022 * cli/cli-style.h (cli_style_option): Add name in constructor,
5023 add m_name class member, add constructor with intensity,
5024 add name class function.
5025 (cli_style_option::add_setshow_commands): Remove name argument.
5026 (highlight_style, title_style): New styles.
5027 * cli/cli-style.c (do_show): New function that shows a style
5028 characteristic styling the style name with itself.
5029 (set_style_name): New function.
5030 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
5031 Update all callers according to the changes in cli/cli-style.h.
5032 * utils.h (fputs_highlighted): New function.
5033 * utils.c (fputs_highlighted): Likewise.
5035 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5037 * NEWS: Mention new pipe command and new convenience variables.
5039 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5041 * cli/cli-cmds.c (pipe_command): New function.
5042 (_initialize_cli_cmds): Call add_com for pipe_command.
5043 Define | as an alias for pipe.
5044 (exit_status_set_internal_vars): New function.
5045 (shell_escape): Call exit_status_set_internal_vars.
5046 cli/cli-decode.c (find_command_name_length): Recognize | as
5047 a single character command.
5049 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5051 * gdbcmd.h (execute_command_to_ui_file): New declaration.
5052 top.c (execute_command_to_ui_file): New function, mostly a copy
5053 of execute_command_to_string.
5054 (execute_command_to_string): Implement by calling
5055 execute_command_to_ui_file.
5057 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5059 * top.h (saved_command_line): Remove declaration.
5060 * top.c (previous_saved_command_line, previous_repeat_arguments):
5062 (saved_command_line): Make static, define together with other
5064 (dont_repeat): Clear repeat_arguments.
5065 (repeat_previous, get_saved_command_line, save_command_line):
5067 (gdb_init): Initialize saved_command_line
5068 and previous_saved_command_line.
5069 * main.c (captured_main_1): Remove saved_command_line initialization.
5070 * event-top.c (handle_line_of_input): Update to use
5071 the new 'repeat' related functions instead of direct access to
5073 * command.h (repeat_previous, get_saved_command_line,
5074 save_command_line): New declarations.
5075 (dont_repeat): Add comment.
5077 2019-05-30 Tom Tromey <tromey@adacore.com>
5079 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
5081 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
5083 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
5086 * completer.c (complete): Initialize variable word.
5088 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
5090 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
5091 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
5092 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
5093 'body' is NULL to the outter 'if', protecting the '!is_define'
5096 2019-05-29 Tom Tromey <tromey@adacore.com>
5098 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
5099 (dwarf_unknown): New function.
5100 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
5101 (dwarf_type_encoding_name): Use dwarf_unknown.
5103 2019-05-29 Tom Tromey <tromey@adacore.com>
5106 * cp-valprint.c (cp_print_value_fields): Call
5107 cp_print_static_field inside "try".
5109 2019-05-29 Tom Tromey <tromey@adacore.com>
5111 * inflow.c (struct terminal_info): Add default operator=.
5112 * configure: Rebuild.
5113 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
5114 -Wdeprecated-copy-dtor, -Wredundant-move.
5116 2019-05-29 Tom Tromey <tromey@adacore.com>
5119 * infcmd.c (print_return_value_1): Handle finish_print
5121 (show_print_finish): New function.
5122 (_initialize_infcmd): Add "set/show print finish" commands.
5123 * valprint.c (user_print_options): Initialize new member.
5124 * valprint.h (struct value_print_options) <finish_print>: New
5127 2019-05-28 Tom Tromey <tromey@adacore.com>
5129 * ada-lang.c (ada_remove_Xbn_suffix)
5130 (find_old_style_renaming_symbol)
5131 (parse_old_style_renaming): Remove.
5132 (ada_find_renaming_symbol): Don't call
5133 find_old_style_renaming_symbol.
5134 (ada_is_renaming_symbol): Rename from
5135 ada_find_renaming_symbol. Remove "block" parameter. Return
5137 (ada_read_var_value): Update and simplify.
5138 * ada-exp.y (write_var_or_type): Remove old code.
5140 2019-05-28 Alan Hayward <alan.hayward@arm.com>
5142 * event-top.c: Remove include comment.
5143 * inflow.c (class scoped_ignore_sigttou): Move from here...
5144 * inflow.h (class scoped_ignore_sigttou): ...to here.
5145 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
5146 * top.c: Remove include comment.
5148 2019-05-27 Tom Tromey <tom@tromey.com>
5152 2019-05-22 Tom Tromey <tromey@adacore.com>
5154 * target.c (target_follow_exec): Constify parameter.
5155 * target-delegates.c: Rebuild.
5156 * remote.c (remote_target::follow_exec): Constify parameter.
5157 * infrun.c (follow_exec): Constify parameter.
5158 * target.h (struct target_ops) <follow_exec>: Constify parameter.
5159 (target_follow_exec): Likewise.
5161 2019-05-22 Alan Hayward <alan.hayward@arm.com>
5163 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
5164 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
5166 2019-05-22 Alan Hayward <alan.hayward@arm.com>
5168 * NEWS: Add debugredirect and testsuite sections.
5170 2019-05-22 Simon Cook <simon.cook@embecosm.com>
5172 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
5173 target descriptions using exclusively floating point register name
5176 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
5179 * f-lang.c (build_fortran_types): Handle the case where
5180 gdbarch_floatformat_for_type returns a nullptr.
5182 2019-05-21 Tom de Vries <tdevries@suse.de>
5185 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
5187 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
5190 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
5192 * i386-tdep.c (i386_floatformat_for_type): Use
5193 floatformats_ia64_quad for the 16-byte floating point component
5194 within a fortran 32-byte complex number.
5196 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
5198 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
5199 delete default constructor.
5200 (find_partial_die): Update to return const struct.
5201 (partial_die_parent_scope): Move variable declaration into scope
5202 of its use and change its type to auto.
5203 (guess_partial_die_structure_name): Likewise.
5204 (partial_die_info::fixup): Likewise.
5206 2019-05-17 Tom Tromey <tromey@adacore.com>
5208 * source.c (find_and_open_source): Remove cast.
5210 2019-05-17 Tom Tromey <tromey@adacore.com>
5212 * annotate.c (annotate_source): Make "filename" const.
5213 * annotate.h (annotate_source): Use const.
5215 2019-05-17 Alan Hayward <alan.hayward@arm.com>
5217 * disasm.c (set_disassembler_options): Send errors to stderr.
5219 2019-05-17 Alan Hayward <alan.hayward@arm.com>
5221 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
5222 (cli_interp_base::set_logging): Check debug_redirect.
5223 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
5224 * cli/cli-logging.c (debug_redirect): Add static variable.
5225 (pop_output_files): Add default param.
5226 (handle_redirections): Print debug setting.
5227 (show_logging_command): Likewise.
5228 (_initialize_cli_logging): Add debugredirect command.
5229 * interps.c (current_interp_set_logging): Add debug_redirect
5231 * interps.h (set_logging): Add debug_redirect parameter.
5232 (current_interp_set_logging): Likewise.
5233 * mi/mi-common.h: Likewise.
5234 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
5236 2019-05-17 Alan Hayward <alan.hayward@arm.com>
5237 Tom Tromey <tromey@adacore.com>
5239 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
5241 * cli/cli-interp.h (make_logging_output): Remove declaration.
5242 * cli/cli-logging.c (make_logging_output): Remove function.
5243 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
5245 * ui-file.c (tee_file::tee_file): Remove bools.
5246 (tee_file::~tee_file): Remove deletes.
5247 * ui-file.h (tee_file): Remove bools.
5249 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
5251 * mi/mi-cmds.h (mi_cmd_complete): New function.
5252 * mi/mi-main.c (mi_cmd_complete): Likewise.
5253 * mi/mi-cmds.c: Define new MI command -complete.
5254 * NEWS: Mention new -complete command.
5256 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
5258 * completer.h (complete): New function.
5259 * completer.c (complete): Likewise.
5260 * cli/cli-cmds.c: (complete_command): Update to use new complete()
5261 function defined in completer.h.
5263 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
5265 * MAINTAINERS (Write After Approval): Add myself.
5267 2019-05-17 Tom de Vries <tdevries@suse.de>
5270 * dwarf2read.c (struct cu_partial_die_info): New struct.
5271 (find_partial_die): Return cu_partial_die_info.
5272 (partial_die_parent_scope, guess_partial_die_structure_name)
5273 (partial_die_info::fixup): Handle new return type of find_partial_die.
5275 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5277 * stap-probe.c (stap_parse_register_operand): Make "regname" an
5278 "std::string", simplifying the algorithm.
5280 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5282 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
5283 (stap_static_probe_ops::get_probes): Likewise.
5285 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5287 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
5288 '-')" and "else if".
5289 (stap_parse_single_operand): Join checks for
5290 "gdbarch_stap_parse_special_token_p" and
5291 "gdbarch_stap_parse_special_token" in the same "if" statement.
5292 Invert check when verifying for operation on register
5295 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5297 * stap-probe.c (stap_get_opcode): Update comment.
5298 (stap_get_expected_argument_type): Likewise.
5299 (handle_stap_probe): Likewise.
5301 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5303 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
5304 return type to 'bool'. Adjust comment. Use 'bool' when
5306 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5307 * stap-probe.c (stap_parse_argument_1): Likewise.
5308 (stap_is_operator): Likewise.
5309 (stap_is_generic_prefix): Likewise.
5310 (stap_is_register_prefix): Likewise.
5311 (stap_is_register_indirection_prefix): Likewise.
5312 (stap_is_integer_prefix): Likewise.
5313 (stap_generic_check_suffix): Likewise.
5314 (stap_check_integer_suffix): Likewise.
5315 (stap_check_register_suffix): Likewise.
5316 (stap_check_register_indirection_suffix): Likewise.
5317 (stap_parse_register_operand): Likewise.
5318 (stap_parse_single_operand): Likewise.
5319 (stap_parse_argument_1): Likewise.
5320 (stap_probe::get_argument_count): Likewise.
5321 (stap_is_operator): Likewise.
5323 2019-05-16 Tom Tromey <tromey@adacore.com>
5325 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
5328 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
5330 * linux-thread-db.c (try_thread_db_load_1): Change return type
5332 (try_thread_db_load): Likewise.
5333 (try_thread_db_load_from_pdir_1): Likewise.
5334 (try_thread_db_load_from_pdir): Likewise.
5335 (try_thread_db_load_from_sdir): Likewise.
5336 (try_thread_db_load_from_dir): Likewise.
5337 (thread_db_load_search): Likewise.
5338 (has_libpthread): Likewise.
5339 (thread_db_load): Likewise.
5341 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
5343 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
5344 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
5345 NULL, and complain/return if that's the case.
5347 2019-05-15 John Darrington <john@darrington.wattle.id.au>
5349 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
5350 (advance, posn, abstract_read_memory): New functions.
5351 [struct mem_read_abstraction]: New struct.
5352 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
5354 2019-05-14 Tom Tromey <tromey@adacore.com>
5356 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
5357 value is not lval_memory.
5359 2019-05-14 Tom Tromey <tromey@adacore.com>
5361 * solib.c (info_sharedlibrary_command): Style the file name.
5363 2019-05-14 Alan Hayward <alan.hayward@arm.com>
5365 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
5366 (aarch64_vnv_type): Likewise.
5367 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
5368 * common/tdesc.c: Likewise.
5369 * common/tdesc.h (enum tdesc_type_kind): Likewise.
5370 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
5371 * features/aarch64-fpu.xml: Add ieee half view.
5372 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
5373 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
5374 * gdbtypes.h (struct builtin_type): Likewise.
5375 (struct objfile_type): Likewise.
5377 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
5379 * language.c (language_sniff_from_mangled_name): Fix "langauge"
5381 * location.h (string_to_event_location): Likewise.
5383 2019-05-11 Joel Brobecker <brobecker@adacore.com>
5387 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
5389 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
5390 New variable declaration.
5391 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
5393 (print_one_breakpoint): Use ui_out::test_flags and new global
5394 variable to compute use_fixed_output.
5395 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
5397 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
5398 (mi_multi_location_breakpoint_output_fixed): Remove.
5399 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
5401 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
5402 fix_multi_location_breakpoint_output flag if version >= 3.
5403 * ui-out.h (enum ui_out_flag)
5404 <fix_multi_location_breakpoint_output>: New enumerator.
5406 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
5408 * contrib/cc-with-tweaks.sh: Validate dwz's work.
5410 2019-05-10 Tom Tromey <tromey@adacore.com>
5412 * ada-lang.c (catch_ada_completer): New function.
5413 (_initialize_ada_language): Use it.
5415 2019-05-10 Tom Tromey <tromey@adacore.com>
5417 * thread.c (print_thread_info): Make "requested_threads" const.
5418 * gdbthread.h (print_thread_info): Make "requested_threads"
5420 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
5421 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
5423 2019-05-08 Tom Tromey <tom@tromey.com>
5425 * gdbtypes.c (objfile_type_data): Change type.
5426 (objfile_type, _initialize_gdbtypes): Update.
5428 2019-05-08 Tom Tromey <tom@tromey.com>
5430 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
5431 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
5432 (_initialize_dwarf2_frame): Update.
5434 2019-05-08 Tom Tromey <tom@tromey.com>
5436 * objc-lang.c (objc_objfile_data): Change type.
5437 (find_methods): Update.
5438 (_initialize_objc_lang): Remove.
5440 2019-05-08 Tom Tromey <tom@tromey.com>
5442 * stabsread.c (rs6000_builtin_type_data): Change type.
5443 (rs6000_builtin_type, _initialize_stabsread): Update.
5445 2019-05-08 Tom Tromey <tom@tromey.com>
5447 * mips-tdep.c (mips_pdr_data): Remove.
5448 (_initialize_mips_tdep): Update.
5450 2019-05-08 Tom Tromey <tom@tromey.com>
5452 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
5453 (hppa_init_objfile_priv_data, read_unwind_info)
5454 (find_unwind_entry, _initialize_hppa_tdep): Update.
5456 2019-05-08 Tom Tromey <tom@tromey.com>
5458 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
5459 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
5461 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
5463 2019-05-08 Tom Tromey <tom@tromey.com>
5465 * mdebugread.c (basic_type_data): Change type.
5466 (basic_type, _initialize_mdebugread): Update.
5468 2019-05-08 Tom Tromey <tom@tromey.com>
5470 * common/gdb_unique_ptr.h (struct noop_deleter): New.
5472 2019-05-08 Tom Tromey <tom@tromey.com>
5474 * nto-tdep.c (nto_inferior_data_reg): Change type.
5475 (nto_inferior_data): Update.
5476 (nto_inferior_data_cleanup, nto_new_inferior_data)
5477 (_initialize_nto_tdep): Remove.
5478 * nto-tdep.h (struct nto_inferior_data): Add initializers.
5480 2019-05-08 Tom Tromey <tom@tromey.com>
5482 * ada-lang.c (struct ada_inferior_data): Add initializers.
5483 (ada_inferior_data): Change type.
5484 (ada_inferior_data_cleanup): Remove.
5485 (get_ada_inferior_data, ada_inferior_exit)
5486 (struct ada_pspace_data): Add initializers, destructor.
5487 (ada_pspace_data_handle): Change type.
5488 (get_ada_pspace_data): Update.
5489 (ada_pspace_data_cleanup): Remove.
5491 2019-05-08 Tom Tromey <tom@tromey.com>
5493 * coffread.c (struct coff_symfile_info): Add initializers.
5494 (coff_objfile_data_key): Move lower. Change type.
5495 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
5497 (coff_free_info): Remove.
5499 2019-05-08 Tom Tromey <tom@tromey.com>
5501 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
5502 (fbsd_pspace_data_handle): Move lower. Change type.
5503 (get_fbsd_pspace_data): Update.
5504 (fbsd_pspace_data_cleanup): Remove.
5505 (_initialize_fbsd_tdep): Update.
5507 2019-05-08 Tom Tromey <tom@tromey.com>
5509 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
5510 (get_ada_tasks_pspace_data): Update.
5511 (ada_tasks_pspace_data_cleanup): Remove.
5512 (_initialize_tasks): Update.
5513 (ada_tasks_inferior_data_handle): Change type.
5514 (get_ada_tasks_inferior_data): Update.
5515 (ada_tasks_inferior_data_cleanup): Remove.
5516 (struct ada_tasks_pspace_data): Add initializers.
5518 2019-05-08 Tom Tromey <tom@tromey.com>
5520 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
5521 * symfile-debug.c (debug_sym_get_probes): Change type.
5522 * stap-probe.c (handle_stap_probe):
5523 (stap_static_probe_ops::get_probes): Change type.
5524 * probe.h (class static_probe_ops) <get_probes>: Change type.
5525 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
5526 (parse_probes_in_pspace): Update.
5527 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
5529 (any_static_probe_ops::get_probes): Change type.
5530 * elfread.c (elfread_data): New typedef.
5531 (probe_key): Change type.
5532 (elf_get_probes): Likewise. Update.
5533 (probe_key_free): Remove.
5534 (_initialize_elfread): Update.
5535 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
5537 (dtrace_process_dof_probe, dtrace_process_dof)
5538 (dtrace_static_probe_ops::get_probe): Change type.
5540 2019-05-08 Tom Tromey <tom@tromey.com>
5542 * xcoffread.c (struct xcoff_symfile_info): Rename from
5543 coff_symfile_info. Add initializers.
5544 (xcoff_objfile_data_key): Move lower. Change type.
5545 (XCOFF_DATA): Rewrite.
5546 (xcoff_free_info): Remove.
5547 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
5548 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
5549 (xcoff_initial_scan): Update.
5551 2019-05-08 Tom Tromey <tom@tromey.com>
5553 * solib-svr4.c (struct svr4_info): Add initializers and
5555 <probes_table>: Now an htab_up.
5556 (solib_svr4_pspace_data): Change type.
5557 (free_probes_table): Simplify.
5558 (~svr4_info): Rename from svr4_pspace_data_cleanup.
5559 (get_svr4_info, probes_table_htab_remove_objfile_probes)
5560 (probes_table_remove_objfile_probes, register_solib_event_probe)
5561 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
5562 (_initialize_svr4_solib): Update.
5564 2019-05-08 Tom Tromey <tom@tromey.com>
5566 * remote.c (remote_pspace_data): Change type.
5567 (remote_pspace_data_cleanup): Remove.
5568 (get_remote_exec_file, set_pspace_remote_exec_file)
5569 (_initialize_remote): Update.
5571 2019-05-08 Tom Tromey <tom@tromey.com>
5573 * breakpoint.c (breakpoint_objfile_key): Change type.
5574 (get_breakpoint_objfile_data): Update.
5575 (free_breakpoint_objfile_data): Remove.
5576 (_initialize_breakpoint): Update.
5578 2019-05-08 Tom Tromey <tom@tromey.com>
5580 * linux-tdep.c (struct linux_info): Add initializers.
5581 (linux_inferior_data): Move. Change type.
5582 (invalidate_linux_cache_inf): Update.
5583 (linux_inferior_data_cleanup): Remove.
5584 (get_linux_inferior_data, _initialize_linux_tdep): Update.
5586 2019-05-08 Tom Tromey <tom@tromey.com>
5588 * auxv.c (auxv_inferior_data): Move. Change type.
5589 (auxv_inferior_data_cleanup): Remove.
5590 (invalidate_auxv_cache_inf): Rewrite.
5591 (get_auxv_inferior_data, _initialize_auxv): Update.
5593 2019-05-08 Tom Tromey <tom@tromey.com>
5595 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
5596 (symfile_debug_objfile_data_key): Change type.
5597 (symfile_debug_installed, debug_qf_has_symbols)
5598 (debug_qf_find_last_source_symtab)
5599 (debug_qf_forget_cached_source_info)
5600 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
5601 (debug_qf_print_stats, debug_qf_dump)
5602 (debug_qf_expand_symtabs_for_function)
5603 (debug_qf_expand_all_symtabs)
5604 (debug_qf_expand_symtabs_with_fullname)
5605 (debug_qf_map_matching_symbols)
5606 (debug_qf_expand_symtabs_matching)
5607 (debug_qf_find_pc_sect_compunit_symtab)
5608 (debug_qf_map_symbol_filenames)
5609 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
5610 (debug_sym_new_init, debug_sym_init, debug_sym_read)
5611 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
5612 (debug_sym_read_linetable, debug_sym_relocate): Update.
5613 (symfile_debug_free_objfile): Remove.
5614 (install_symfile_debug_logging, _initialize_symfile_debug):
5617 2019-05-08 Tom Tromey <tom@tromey.com>
5619 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
5620 allocate_on_obstack.
5621 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
5622 (get_dwarf2_per_objfile): Update.
5623 (set_dwarf2_per_objfile): Remove.
5624 (dwarf2_has_info, dwarf2_get_section_info): Update.
5625 (dwarf2_free_objfile): Remove.
5626 (_initialize_dwarf2_read): Update.
5628 2019-05-08 Tom Tromey <tom@tromey.com>
5630 * auto-load.c (struct auto_load_pspace_info): Add destructor and
5632 <unsupported_script_warning_printed,
5633 script_not_found_warning_printed>: Now bool.
5634 (auto_load_pspace_data): Change type.
5635 (~auto_load_pspace_info): Rename from
5636 auto_load_pspace_data_cleanup.
5637 (get_auto_load_pspace_data, init_loaded_scripts_info)
5638 (clear_section_scripts, maybe_print_unsupported_script_warning)
5639 (maybe_print_script_not_found_warning, _initialize_auto_load):
5642 2019-05-08 Tom Tromey <tom@tromey.com>
5644 * objfiles.c (objfile_pspace_info): Add destructor and
5646 (objfiles_pspace_data): Change type.
5647 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
5648 (get_objfile_pspace_data): Update.
5649 (objfiles_bfd_data): Change type.
5650 (get_objfile_bfd_data): Update.
5651 (objfile_bfd_data_free, _initialize_objfiles): Remove.
5653 2019-05-08 Tom Tromey <tom@tromey.com>
5655 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
5657 (get_catch_syscall_inferior_data): Update.
5658 (catch_syscall_inferior_data_cleanup): Remove.
5659 (_initialize_break_catch_syscall): Update.
5661 2019-05-08 Tom Tromey <tom@tromey.com>
5663 * inflow.c (struct terminal_info): Add destructor and
5665 (inflow_inferior_data): Change type.
5666 (~terminal_info): Rename from inflow_inferior_data_cleanup.
5667 (get_inflow_inferior_data, inflow_inferior_exit)
5668 (swap_terminal_info, _initialize_inflow): Update.
5670 2019-05-08 Tom Tromey <tom@tromey.com>
5672 * target-dcache.c (target_dcache_cleanup): Remove.
5673 (target_dcache_aspace_key): Change type.
5674 (target_dcache_init_p, target_dcache_invalidate)
5675 (target_dcache_get, target_dcache_get_or_init)
5676 (_initialize_target_dcache): Update.
5677 * dcache.h (struct dcache_deleter): New.
5679 2019-05-08 Tom Tromey <tom@tromey.com>
5681 * symtab.c (struct symbol_cache): Add destructor and
5683 (symbol_cache_key): Move. Change type.
5684 (make_symbol_cache, free_symbol_cache): Remove.
5685 (get_symbol_cache): Update.
5686 (symbol_cache_cleanup): Remove.
5687 (ALL_PSPACES, symbol_cache_flush)
5688 (maintenance_print_symbol_cache)
5689 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
5692 2019-05-08 Tom Tromey <tom@tromey.com>
5694 * symtab.c (struct main_info): Add destructor and initializers.
5695 (main_progspace_key): Move. Change type.
5696 (get_main_info): Update.
5697 (main_info_cleanup): Remove.
5698 (_initialize_symtab): Update.
5700 2019-05-08 Tom Tromey <tom@tromey.com>
5702 * registry.h (DECLARE_REGISTRY): Define the _key class.
5704 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5706 * NEWS: Merge two 'New commands' sections.
5708 2019-05-08 Joel Brobecker <brobecker@adacore.com>
5710 * ada-valprint.c (ada_val_print_gnat_array): Remove language
5711 parameter and use Ada language definition instead.
5712 (ada_val_print_ptr): Remove unused language parameter.
5713 (ada_val_print_num): Remove language parameter and use Ada language
5715 (ada_val_print_enum, ada_val_print_flt): Remove unused language
5717 (ada_val_print_struct_union, ada_val_print_ref): Remove language
5718 parameter and use Ada language definition instead.
5719 (ada_val_print_1): Update all ada_val_print_xxx calls.
5720 Remove language parameter.
5721 (ada_val_print): Update ada_val_print_1 call.
5723 2019-05-08 Tom Tromey <tromey@adacore.com>
5725 * remote.c (remote_hw_watchpoint_limit)
5726 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
5729 2019-05-08 Tom Tromey <tromey@adacore.com>
5731 * maint.c (_initialize_maint_cmds): Move initialization code to
5733 (watchdog, show_watchdog): Move to remote.c.
5734 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
5736 (_initialize_remote): Move initialization code from maint.c.
5737 * defs.h (watchdog): Don't declare.
5739 2019-05-08 Tom Tromey <tromey@adacore.com>
5741 * tui/tui-interp.c: Include main.h.
5742 * interps.c: Include main.h.
5743 * main.h (interpreter_p): Declare.
5744 * defs.h (interpreter_p): Don't declare.
5746 2019-05-08 Tom Tromey <tromey@adacore.com>
5748 * dwarf2loc.c: Include dwarf2read.h.
5749 * defs.h (read_unsigned_leb128): Don't declare.
5750 * dwarf2read.h (read_unsigned_leb128): Declare.
5752 2019-05-08 Tom Tromey <tromey@adacore.com>
5754 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
5757 2019-05-08 Tom Tromey <tromey@adacore.com>
5759 * utils.c (fputs_maybe_filtered): Reset style after paging, even
5760 when no wrap column is set.
5762 2019-05-08 Tom Tromey <tromey@adacore.com>
5764 * c-lang.c (c_get_string): Handle non-C-style arrays.
5766 2019-05-08 Tom Tromey <tromey@adacore.com>
5768 * typeprint.c (print_offset_data::update): Print the bit offset,
5769 not the number of bits remaining.
5771 2019-05-08 Tom Tromey <tromey@adacore.com>
5773 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
5774 padding at end of comment.
5776 2019-05-08 Tom Tromey <tromey@adacore.com>
5778 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
5781 2019-05-06 Tom Tromey <tom@tromey.com>
5783 * common/scoped_mmap.c: Include common-defs.h.
5784 * common/scoped_mmap.h: Don't include config.h.
5786 2019-05-04 Tom Tromey <tom@tromey.com>
5788 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
5789 (struct aarch64_call_info): Add initializers.
5790 <si>: Now a std::vector.
5791 (pass_on_stack, aarch64_push_dummy_call): Update.
5793 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
5794 Tom Tromey <tom@tromey.com>
5796 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
5797 (ppc_threads): Now a std::vector. Now static.
5798 (hwdebug_find_thread_points_by_tid)
5799 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
5802 2019-05-04 Tom Tromey <tom@tromey.com>
5804 * arc-tdep.c (arc_tdesc_init): Return bool.
5806 2019-05-04 Tom Tromey <tom@tromey.com>
5808 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
5809 Use gdb_assert_not_reached.
5811 2019-05-04 Tom Tromey <tom@tromey.com>
5813 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
5816 2019-05-04 Tom Tromey <tom@tromey.com>
5818 * arc-tdep.c (arc_tdesc_init): Use bool.
5820 2019-05-04 Tom Tromey <tom@tromey.com>
5822 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
5824 2019-05-04 Tom Tromey <tom@tromey.com>
5826 * cli/cli-cmds.c (valid_command_p): Return bool.
5828 2019-05-04 Tom Tromey <tom@tromey.com>
5830 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
5831 * command.h (valid_user_defined_cmd_name_p): Channge return type.
5833 2019-05-04 Raul Tambre <raul@tambre.ee>
5835 * python/lib/gdb/prompt.py (_ExtendedPrompt)
5836 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
5837 operator for comparison.
5839 2019-05-04 Tom Tromey <tom@tromey.com>
5841 * psymtab.c (psymbol_name_matches, match_partial_symbol)
5842 (lookup_partial_symbol, print_partial_symbols)
5843 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
5844 (psymbol_compare): Update.
5845 (add_psymbol_to_bcache): Clear the entire psymbol.
5846 (maintenance_check_psymtabs): Update.
5847 * psympriv.h (struct partial_symbol): Don't derive from
5848 general_symbol_info.
5849 <obj_section, unrelocated_address, address,
5850 set_unrelocated_address>: Update.
5851 <ginfo>: New member.
5852 * dwarf-index-write.c (write_psymbols, debug_names::insert)
5853 (debug_names::write_psymbols): Update.
5855 2019-05-04 Tom de Vries <tdevries@suse.de>
5857 * contrib/cc-with-tweaks.sh: Support -n arg.
5859 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5861 * corelow.c (core_target::detach): Ensure frame cache and
5862 register caches are cleared.
5863 inferior.c (exit_inferior_1): Likewise.
5865 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
5866 Tom Tromey <tom@tromey.com>
5868 * dictionary.c (collate_pending_symbols_by_language): Remove
5869 "struct" from foreach.
5870 * symtab.c (lookup_global_symbol_from_objfile)
5871 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
5873 * ser-tcp.c (net_open): Remove "struct" from foreach.
5874 * objfiles.c (objfile_relocate, objfile_rebase)
5875 (objfile_has_symbols): Remove "struct" from foreach.
5876 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
5878 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
5880 * darwin-nat.c (thread_info_from_private_thread_info): Remove
5881 "struct" from foreach.
5882 * ada-lang.c (create_excep_cond_exprs)
5883 (ada_exception_catchpoint_cond_string): Remove "struct" from
5886 2019-05-03 Tom Tromey <tromey@adacore.com>
5888 * ada-exp.y (convert_char_literal): Check suffix of each
5891 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
5894 * ada-exp.y (yywrap): Don't define.
5895 * ada-lex.l (%option): Add noyywrap
5898 2019-05-03 Eli Zaretskii <eliz@gnu.org>
5900 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
5901 _WIN32_WINNT to the XP level, unless already defined to a higher
5904 * unittests/parse-connection-spec-selftests.c:
5906 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
5909 * symfile.c (find_separate_debug_file): Remove colon from the
5910 drive spec of DOS/Windows file names of the target, so that the
5911 file name produced from DEBUGDIR and the target's directory will
5912 be valid on DOS/Windows systems.
5914 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
5916 * rust-lang.c (val_print_struct): Handle printing structures
5919 2019-05-02 Tom Tromey <tromey@adacore.com>
5921 * valarith.c (_initialize_valarith): Remove.
5923 2019-05-01 Tom Tromey <tromey@adacore.com>
5925 * ada-lang.c (ada_value_primitive_field): Treat more fields as
5928 2019-05-01 Tom Tromey <tromey@adacore.com>
5930 * ada-lang.c (ada_value_assign): Correctly compute starting offset
5931 for big-endian copies.
5933 2019-04-30 Ali Tamur <tamur@google.com>
5934 * gdb/dwarf2read.c (read_3_bytes): New declaration.
5935 (read_attribute_value): Added DW_FORM_strx1-4 cases.
5936 (read_3_bytes): New function.
5938 2019-04-30 Joel Brobecker <brobecker@adacore.com>
5940 * windows-nat.c (main_thread_id): Delete.
5941 (handle_output_debug_string): Replace main_thread_id by
5942 current_event.dwThreadId.
5943 (fake_create_process): Likewise.
5944 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
5945 Do not set main_thread_id.
5946 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
5947 current_event.dwThreadId.
5948 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
5950 2019-04-30 Joel Brobecker <brobecker@adacore.com>
5952 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
5953 Use current_event.dwThreadId instead of main_thread_id.
5955 2019-04-30 Tom Tromey <tromey@adacore.com>
5957 * ada-lang.c (ada_lookup_simple_minsyms): New function.
5958 (create_excep_cond_exprs): Iterate over program spaces.
5959 (ada_exception_catchpoint_cond_string): Examine all minimal
5960 symbols for exception types.
5962 2019-04-30 Tom Tromey <tromey@adacore.com>
5965 * dwarf2read.c (process_structure_scope): Handle case where type
5966 has template parameters but no symbol was created.
5968 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5969 Chris January <chris.january@arm.com>
5971 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
5973 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
5975 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5977 * f-typeprint.c (f_print_type): Update rules for printing
5979 (f_type_print_varspec_suffix): Likewise.
5981 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5982 Chris January <chris.january@arm.com>
5984 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
5987 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5989 * f-lang.c (build_fortran_types): Change name of void type to
5991 * f-typeprint.c (f_type_print_base): Print the name of the void
5992 type, rather than a fixed string.
5993 * f-valprint.c (f_decorations): Use lower case void string.
5995 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5996 Chris January <chris.january@arm.com>
5998 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
6001 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6002 Chris January <chris.january@arm.com>
6003 David Lecomber <david.lecomber@arm.com>
6005 * f-exp.y (BINOP_INTRINSIC): New token.
6006 (exp): New parser rule handling BINOP_INTRINSIC.
6007 (f77_keywords): Add new builtin procedures.
6008 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
6009 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6010 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
6011 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6012 (print_unop_subexp_f): New function.
6013 (print_binop_subexp_f): New function.
6014 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6015 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6016 (dump_subexp_body_f): Likewise.
6017 (operator_check_f): Likewise.
6018 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6019 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
6021 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6023 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
6025 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
6026 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
6027 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
6028 (operator_length_f): New fuction.
6029 (print_subexp_f): New function.
6030 (op_name_f): New function.
6031 (dump_subexp_body_f): New function.
6032 (operator_check_f): New function.
6033 (exp_descriptor_f): Replace standard expression handling functions
6035 * gdb/fortran-operator.def: New file.
6036 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
6037 * gdb/std-operator.def: Remove UNOP_KIND.
6039 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6041 * std-operator.def: Remove unbalanced, stray double quote
6044 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6045 Chris January <chris.january@arm.com>
6046 Daniel Everett <daniel.everett@arm.com>
6047 Nick Forrington <nick.forrington@arm.com>
6048 Richard Bunt <richard.bunt@arm.com>
6050 * cp-valprint.c (cp_print_value_fields): Allow an additional level
6051 of depth when printing anonymous structs or unions.
6052 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
6053 Don't print either the top-level value, or the children if the
6054 max-depth is exceeded.
6055 (ppscm_print_children): When printing the key of a map, allow one
6056 extra level of depth.
6057 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
6058 print either the top-level value, or the children if the max-depth
6060 (print_children): When printing the key of a map, allow one extra
6062 * python/py-value.c (valpy_format_string): Add max_depth keyword.
6063 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
6064 (user_print_options): Initialise max_depth field.
6065 (val_print_scalar_or_string_type_p): New function.
6066 (val_print): Check to see if the max depth has been reached.
6067 (val_print_check_max_depth): Define new function.
6068 (show_print_max_depth): New function.
6069 (_initialize_valprint): Add 'print max-depth' option.
6070 * valprint.h (struct value_print_options) <max_depth>: New field.
6071 (val_print_check_max_depth): Declare new function.
6072 * NEWS: Document new feature.
6074 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6076 * ada-lang.c (ada_language_defn): Initialise new field.
6077 * c-lang.c (c_is_string_type_p): New function.
6078 (c_language_defn): Initialise new field.
6079 (cplus_language_defn): Initialise new field.
6080 (asm_language_defn): Initialise new field.
6081 (minimal_language_defn): Initialise new field.
6082 * c-lang.h (c_is_string_type_p): Declare new function.
6083 * d-lang.c (d_language_defn): Initialise new field.
6084 * f-lang.c (f_is_string_type_p): New function.
6085 (f_language_defn): Initialise new field.
6086 * go-lang.c (go_is_string_type_p): New function.
6087 (go_language_defn): Initialise new field.
6088 * language.c (default_is_string_type_p): New function.
6089 (unknown_language_defn): Initialise new field.
6090 (auto_language_defn): Initialise new field.
6091 * language.h (struct language_defn) <la_is_string_type_p>: New
6093 (default_is_string_type_p): Declare new function.
6094 * m2-lang.c (m2_language_defn): Initialise new field.
6095 * objc-lang.c (objc_language_defn): Initialise new field.
6096 * opencl-lang.c (opencl_language_defn): Initialise new field.
6097 * p-lang.c (pascal_is_string_type_p): New function.
6098 (pascal_language_defn): Initialise new field.
6099 * rust-lang.c (rust_is_string_type_p): New function.
6100 (rust_language_defn): Initialise new field.
6102 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6104 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
6106 * ada-lang.c (ada_language_defn): Initialise new field.
6107 * c-lang.c (c_language_defn): Likewise.
6108 (cplus_language_defn): Likewise.
6109 (asm_language_defn): Likewise.
6110 (minimal_language_defn): Likewise.
6111 * d-lang.c (d_language_defn): Likewise.
6112 * f-lang.c (f_language_defn): Likewise.
6113 * go-lang.c (go_language_defn): Likewise.
6114 * language.c (unknown_language_defn): Likewise.
6115 (auto_language_defn): Likewise.
6116 * m2-lang.c (m2_language_defn): Likewise.
6117 * objc-lang.c (objc_language_defn): Likewise.
6118 * opencl-lang.c (opencl_language_defn): Likewise.
6119 * p-lang.c (pascal_language_defn): Likewise.
6120 * rust-lang.c (rust_language_defn): Likewise.
6122 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6124 * ada-lang.c (ada_is_character_type): Change return type to bool.
6125 (ada_is_string_type): Likewise.
6126 * ada-lang.h (ada_is_character_type): Update declaration
6127 (ada_is_string_type): Likewise.
6129 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6131 Support style in 'frame|thread apply'
6133 * gdbcmd.h (execute_command_to_string): New term_out parameter.
6134 * record.c (record_start, record_stop): Update callers of
6135 execute_command_to_string with false.
6136 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
6137 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
6139 (class string_file): New constructor with term_out parameter.
6140 Override methods term_out and can_emit_style_escape. New member
6142 (class stdio_file): Override can_emit_style_escape.
6143 (class tee_file): Override term_out and can_emit_style_escape.
6144 * utils.h (can_emit_style_escape): Remove.
6145 * utils.c (can_emit_style_escape): Likewise.
6146 Update all callers of can_emit_style_escape (SOMESTREAM) to
6147 SOMESTREAM->can_emit_style_escape.
6148 * source-cache.c (source_cache::get_source_lines): Likewise.
6149 * stack.c (frame_apply_command_count): Call execute_command_to_string
6150 passing the term_out characteristic of the current gdb_stdout.
6151 * thread.c (thr_try_catch_cmd): Likewise.
6152 * top.c (execute_command_to_string): pass term_out parameter
6153 to construct the string_file for the command output.
6154 * ui-file.c (term_cli_styling): New function (most code moved
6155 from utils.c can_emit_style_escape).
6156 (string_file::string_file, string_file::can_emit_style_escape,
6157 stdio_file::can_emit_style_escape, tee_file::term_out,
6158 tee_file::can_emit_style_escape): New functions.
6160 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6162 * NEWS: Mention the new set|show may-call-functions.
6163 * infcall.c (may_call_functions_p): New variable.
6164 (show_may_call_functions_p): New function.
6165 (call_function_by_hand_dummy): Throws an error if not
6167 (_initialize_infcall): Call add_setshow_boolean_cmd for
6170 2019-04-25 Keith Seitz <keiths@redhat.com>
6173 * cp-support.c (inspect_type): Don't attempt substitutions
6174 of symbol with the same name.
6176 2019-04-25 Tom Tromey <tromey@adacore.com>
6179 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
6182 2019-04-25 Tom Tromey <tromey@adacore.com>
6184 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
6186 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
6187 (gdb_xml_parser::parse): Use std::move.
6188 * python/python-internal.h (gdbpy_convert_exception): Take a const
6190 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
6192 * python/py-utils.c (gdbpy_convert_exception): Take a const
6194 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
6196 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
6198 * mi/mi-main.c (mi_print_exception): Take a const reference.
6199 * main.c (handle_command_errors): Take a const reference.
6200 * linespec.c (parse_linespec): Use std::move.
6201 * infcall.c (run_inferior_call): Use std::move.
6202 (call_function_by_hand_dummy): Use std::move.
6203 * exec.c (try_open_exec_file): Use std::move.
6204 * exceptions.h (exception_print, exception_fprintf)
6205 (exception_print_same): Update.
6206 * exceptions.c (print_exception, exception_print)
6207 (exception_fprintf, exception_print_same): Change parameters to
6209 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
6210 * common/new-op.c: Use std::move.
6211 * common/common-exceptions.h (struct gdb_exception): Add move
6213 (struct gdb_exception_error, struct gdb_exception_quit, struct
6214 gdb_quit_bad_alloc): Change constructor to move constructor.
6215 (throw_exception): Change parameter to rvalue reference.
6216 * common/common-exceptions.c (throw_exception): Take rvalue
6218 * cli/cli-interp.c (safe_execute_command): Use std::move.
6219 * breakpoint.c (insert_bp_location, location_to_sals): Use
6222 2019-04-25 Tom Tromey <tromey@adacore.com>
6224 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
6225 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
6226 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
6227 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
6228 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
6229 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
6230 guile/scm-value.c: Use unpack.
6231 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
6232 gdbscm_gdb_exception.
6233 (gdbscm_throw_gdb_exception): Likewise.
6234 (struct gdbscm_gdb_exception): New.
6235 (unpack): New function.
6236 (gdbscm_wrap): Use unpack.
6238 2019-04-25 Tom Tromey <tromey@adacore.com>
6240 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
6241 (gdb_rl_callback_handler): Use std::move.
6242 * common/common-exceptions.h (struct gdb_exception): Add move
6243 assignment operator.
6244 (throw_exception_sjlj): Change "exception" to const reference.
6245 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
6246 (throw_exception_sjlj): Change "exception" to const reference.
6248 2019-04-25 Tom Tromey <tromey@adacore.com>
6250 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
6251 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
6252 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
6254 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
6256 * mi/mi-interp.c (mi_interp::exec): Update.
6257 * linespec.c (parse_linespec): Update.
6258 * infcall.c (run_inferior_call): Update.
6259 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
6260 * guile/scm-symbol.c (gdbscm_lookup_symbol)
6261 (gdbscm_lookup_global_symbol): Update.
6262 * guile/scm-param.c (gdbscm_parameter_value): Update.
6263 * guile/scm-frame.c (gdbscm_frame_read_register)
6264 (gdbscm_frame_read_var): Update.
6265 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
6266 * exec.c (try_open_exec_file): Update.
6267 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
6268 (gdb_rl_callback_handler): Update.
6269 * common/common-exceptions.h (exception_none): Don't declare.
6270 * common/common-exceptions.c (exception_none): Don't define.
6271 (struct catcher) <exception>: Update.
6272 * cli/cli-interp.c (safe_execute_command): Update.
6273 * breakpoint.c (insert_bp_location, location_to_sals): Update.
6275 2019-04-25 Ali Tamur <tamur@google.com>
6277 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
6278 (read_attribute_value): Likewise.
6279 (dwarf2_read_addr_index): Update comment.
6280 (read_str_index): Add DW_FORM_strx.
6281 (dwarf2_string_attr): Likewise.
6282 (dwarf2_const_value_attr): Likewise.
6283 (dump_die_shallow): Likewise.
6284 (dwarf2_fetch_constant_bytes): Likewise.
6285 (skip_form_bytes): Likewise.
6286 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
6288 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6292 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
6293 OFFSET. Verify if current mapping contains an ELF header.
6294 (linux_find_memory_regions_full): Adjust call to
6297 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
6298 Kang Li <kanglictf@gmail.com>
6302 * dwarf2-frame.c (read_initial_length): Be consistent about using
6303 unsigned representation of length.
6304 (decode_frame_entry_1): Likewise. Check for wraparound of
6305 end pointer as well as buffer overflow.
6307 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6309 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
6312 2019-04-24 Tom Tromey <tromey@adacore.com>
6314 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
6316 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6318 * s12z-tdep.c (s12z_unwind_pc): Delete.
6319 (s12z_unwind_sp): Delete.
6320 (s12z_gdbarch_init): Don't register deleted functions with
6323 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6325 * rl78-tdep.c (rl78_unwind_sp): Delete.
6326 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
6328 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6330 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
6331 (xstormy16_unwind_pc): Delete.
6332 (xstormy16_dummy_id): Delete.
6333 (xstormy16_gdbarch_init): Don't register deleted functions with
6336 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6338 * vax-tdep.c (vax_unwind_pc): Delete.
6339 (vax_gdbarch_init): Don't register deleted function with gdbarch.
6341 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6343 * v850-tdep.c (v850_unwind_sp): Delete.
6344 (v850_unwind_pc): Delete.
6345 (v850_dummy_id): Delete.
6346 (v850_gdbarch_init): Don't register deleted functions with
6349 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6351 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
6352 (tilegx_unwind_pc): Delete.
6353 (tilegx_unwind_dummy_id): Delete.
6354 (tilegx_gdbarch_init): Don't register deleted functions with
6357 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6359 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
6360 (tic6x_dummy_id): Delete.
6361 (tic6x_gdbarch_init): Don't register deleted functions with
6364 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6366 * sparc-tdep.c (sparc_unwind_pc): Delete.
6367 (sparc32_gdbarch_init): Don't register deleted function with
6370 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6372 * sh-tdep.c (sh_unwind_sp): Delete.
6373 (sh_unwind_pc): Delete.
6374 (sh_dummy_id): Delete.
6375 (sh_gdbarch_init): Don't register deleted functions with
6378 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6380 * score-tdep.c (score_unwind_sp): Delete.
6381 (score_unwind_pc): Delete.
6382 (score_dummy_id): Delete.
6383 (score_gdbarch_init): Don't register deleted functions with
6386 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6388 * rx-tdep.c (rx_unwind_pc): Delete.
6389 (rx_unwind_sp): Delete.
6390 (rx_dummy_id): Delete.
6391 (rx_gdbarch_init): Don't register deleted functions with
6392 gdbarch. Update comment.
6394 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6396 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
6397 (rs6000_dummy_id): Delete.
6398 (rs6000_gdbarch_init): Don't register deleted functions with
6401 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6403 * or1k-tdep.c (or1k_dummy_id): Delete.
6404 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
6406 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6408 * nios2-tdep.c (nios2_dummy_id): Delete.
6409 (nios2_unwind_sp): Delete.
6410 (nios2_gdbarch_init): Don't register deleted functions with
6413 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6415 * nds32-tdep.c (nds32_dummy_id): Delete.
6416 (nds32_unwind_pc): Delete.
6417 (nds32_unwind_sp): Delete.
6418 (nds32_gdbarch_init): Don't register deleted functions with
6421 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6423 * msp430-tdep.c (msp430_unwind_pc): Delete.
6424 (msp430_unwind_sp): Delete.
6425 (msp430_dummy_id): Delete.
6426 (msp430_gdbarch_init): Don't register deleted functions with
6429 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6431 * moxie-tdep.c (moxie_unwind_sp): Delete.
6432 (moxie_unwind_pc): Delete.
6433 (moxie_dummy_id): Delete.
6434 (moxie_gdbarch_init): Don't register deleted functions with
6437 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6439 * mn10300-tdep.c (mn10300_dummy_id): Delete.
6440 (mn10300_unwind_pc): Delete.
6441 (mn10300_unwind_sp): Delete.
6442 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
6444 (mn10300_frame_unwind_init): Don't register deleted functions with
6447 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6449 * mep-tdep.c (mep_unwind_pc): Delete.
6450 (mep_unwind_sp): Delete.
6451 (mep_dummy_id): Delete.
6452 (mep_gdbarch_init): Don't register deleted functions with
6455 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6457 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
6458 (m68hc11_unwind_sp): Delete.
6459 (m68hc11_gdbarch_init): Don't register deleted functions with
6462 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6464 * m32r-tdep.c (m32r_unwind_sp): Delete.
6465 (m32r_unwind_pc): Delete.
6466 (m32r_dummy_id): Delete.
6467 (m32r_gdbarch_init): Don't register deleted functions with
6470 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6472 * m32c-tdep.c (m32c_unwind_pc): Delete.
6473 (m32c_unwind_sp): Delete.
6474 (m32c_dummy_id): Delete.
6475 (m32c_gdbarch_init): Don't register deleted functions with
6478 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6480 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
6481 (lm32_unwind_pc): Delete.
6482 (lm32_dummy_id): Delete.
6483 (lm32_gdbarch_init): Don't register deleted functions with
6486 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6488 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
6489 (iq2000_unwind_pc): Delete.
6490 (iq2000_dummy_id): Delete.
6491 (iq2000_gdbarch_init): Don't register deleted functions with
6494 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6496 * nds32-tdep.c (nds32_type_align): Delete.
6497 (nds32_push_dummy_call): Use type_align instead.
6499 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6501 * arm-tdep.c (arm_type_align): Only handle vector override case.
6502 (arm_push_dummy_call): Use type_align.
6503 (arm_gdbarch_init): Register arm_type_align gdbarch function.
6505 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6507 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
6509 (pass_on_stack): Use type_align.
6510 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
6513 2019-04-23 Tom Tromey <tromey@adacore.com>
6515 * dwarf2read.c (line_header::file_name_at): Remove unused
6518 2019-04-23 Tom de Vries <tdevries@suse.de>
6521 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
6525 2019-03-27 Ali Tamur <tamur@google.com>
6527 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
6528 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
6529 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
6530 (dwarf_expr_context::get_addr_index): Likewise
6531 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
6532 (symbol_needs_eval_context::get_addr_index): Likewise
6533 (disassemble_dwarf_expression): Add DW_OP_addrx
6534 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
6535 (read_cutu_die_from_dwo): Update comment
6536 (skip_one_die): Add DW_FORM_addrx
6537 (read_attribute_value): Likewise
6538 (var_decode_location): Add DW_OP_addrx
6539 (dwarf2_const_value_attr): Add DW_FORM_addrx
6540 (dump_die_shallow): Likewise
6541 (dwarf2_fetch_constant_bytes): Likewise
6542 (decode_locdesc): Add DW_OP_addrx
6543 (skip_form_bytes): Add DW_FORM_addrx
6545 2019-04-22 Ali Tamur <tamur@google.com>
6547 * MAINTAINERS (Write After Approval): Add self.
6549 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
6551 * solib-svr4.c (get_svr4_info): Add pspace parameter.
6552 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
6553 (open_symbol_file_object): Likewise.
6554 (svr4_default_sos): Add info parameter.
6555 (svr4_read_so_list): Likewise.
6556 (svr4_current_sos_direct): Adjust functions calls to pass down
6558 (svr4_current_sos_1): Add info parameter.
6559 (svr4_current_sos): Call get_svr4_info, pass info down to
6561 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
6563 (svr4_in_dynsym_resolve_code): Pass current_program_space to
6565 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
6567 (probes_table_remove_objfile_probes): Likewise.
6568 (register_solib_event_probe): Add info parameter.
6569 (solist_update_incremental): Pass info parameter down to
6571 (disable_probes_interface): Add info parameter.
6572 (svr4_handle_solib_event): Pass current_program_space to
6573 get_svr4_info. Adjust disable_probes_interface cleanup.
6574 (svr4_create_probe_breakpoints): Add info parameter, pass it
6575 down to register_solib_event_probe.
6576 (svr4_create_solib_event_breakpoints): Add info parameter,
6577 pass it down to svr4_create_probe_breakpoints.
6578 (enable_break): Pass info down to
6579 svr4_create_solib_event_breakpoints.
6580 (svr4_solib_create_inferior_hook): Pass current_program_space to
6582 (svr4_clear_solib): Likewise.
6584 2019-04-22 Pedro Alves <palves@redhat.com>
6586 * solib-svr4.c (svr4_free_objfile_observer): New.
6587 (probe_and_action::objfile): New field.
6588 (probes_table_htab_remove_objfile_probes)
6589 (probes_table_remove_objfile_probes): New functions.
6590 (register_solib_event_probe): Add 'objfile' parameter. Store it
6591 in the new probe_and_action. Don't store the probe in 'lookup'.
6592 (svr4_create_probe_breakpoints): Pass objfile to
6593 register_solib_event_probe.
6594 (_initialize_svr4_solib): Register a free_objfile observer.
6596 2019-04-19 Tom Tromey <tom@tromey.com>
6598 * common/queue.h: Remove.
6600 2019-04-19 Tom Tromey <tom@tromey.com>
6602 * event-loop.c: Don't include "common/queue.h".
6604 2019-04-19 Tom Tromey <tom@tromey.com>
6606 * remote.c (remote_target): Use delete.
6607 * remote-notif.h: Include <list>, not "common/queue.h".
6608 (notif_client_p): Remove typedef.
6609 (remote_notif_state): Add constructor, destructor, initializer.
6610 <notif_queue>: Now a std::list.
6611 (remote_notif_state_xfree): Don't declare.
6612 * remote-notif.c (remote_notif_process, handle_notification)
6613 (remote_notif_state_allocate): Update.
6614 (~remote_notif_state): Rename from remote_notif_state_xfree.
6616 2019-04-19 Tom Tromey <tom@tromey.com>
6618 * symfile.c (reread_symbols): Update.
6619 * objfiles.c (objfile_register_static_link)
6620 (objfile_lookup_static_link): Update
6621 (~objfile) Don't delete static_links.
6622 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
6624 2019-04-19 Tom Tromey <tom@tromey.com>
6626 * type-stack.h (struct type_stack) <insert>: Constify string.
6627 * type-stack.c (type_stack::insert): Constify string.
6628 * gdbtypes.h (lookup_template_type): Update.
6629 (address_space_name_to_int): Update.
6630 * gdbtypes.c (address_space_name_to_int): Make space_identifier
6632 (lookup_template_type): Make name const.
6633 * c-exp.y: Update rules.
6634 (lex_one_token, classify_name, classify_inner_name)
6635 (c_print_token): Update.
6636 * p-exp.y: Update rules.
6638 * f-exp.y: Update rules.
6640 * d-exp.y: Update rules.
6641 (lex_one_token, classify_name, classify_inner_name): Update.
6642 * parse.c (write_dollar_variable, copy_name): Return std::string.
6643 * parser-defs.h (copy_name): Change return type.
6644 * m2-exp.y: Update rules.
6646 * go-exp.y (lex_one_token): Update.
6648 (classify_unsafe_function, classify_packaged_name)
6649 (classify_name, yylex): Update.
6651 2019-04-19 Sergei Trofimovich <siarheit@google.com>
6653 * configure.ac: add --enable-source-highlight switch.
6654 * configure: Regenerate.
6655 * top.c (print_gdb_version): plumb --enable-source-highlight
6656 status to "show configuration".
6658 2019-04-19 Tom Tromey <tromey@adacore.com>
6660 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
6662 (empty_record, ada_template_to_fixed_record_type_1)
6663 (template_to_static_fixed_type)
6664 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
6665 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
6666 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
6669 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
6672 * source.c (print_source_lines_base): Advance "iter" when a
6673 control character is seen.
6675 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6677 * inferior.h (struct infcall_suspend_state_deleter):
6678 Catch exception in destructor to avoid crash.
6680 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6682 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
6683 close to the add_com "shell".
6685 2019-04-18 Tom Tromey <tromey@adacore.com>
6687 * process-stratum-target.h (class process_stratum_target)
6688 <stratum>: Add "final".
6690 2019-04-17 Tom Tromey <tromey@adacore.com>
6692 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
6693 against nullptr before use.
6695 2019-04-17 Alan Hayward <alan.hayward@arm.com>
6697 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
6699 2019-04-17 Jim Wilson <jimw@sifive.com>
6700 Andrew Burgess <andrew.burgess@embecosm.com>
6702 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
6703 code read might fail, assume 4-byte breakpoint in that case.
6705 2019-04-15 Leszek Swirski <leszeks@google.com>
6707 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
6708 rather than a hand-rolled POD check when checking for forced MEMORY
6711 2019-04-15 Alan Hayward <alan.hayward@arm.com>
6713 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
6714 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
6716 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
6717 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
6718 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
6721 2019-04-15 Alan Hayward <alan.hayward@arm.com>
6723 * aarch64-linux-nat.c
6724 (aarch64_linux_nat_target::thread_architecture): Add override.
6725 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
6728 2019-04-15 Alan Hayward <alan.hayward@arm.com>
6730 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
6732 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
6734 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
6735 target types of size 96-bits, add some additional comments, and
6736 check that the builtin type we found was the correct size.
6738 2019-04-12 Eli Zaretskii <eliz@gnu.org>
6740 * utils.c (prompt_for_continue): Don't restore the styling at the
6741 end, as applied_style has the wrong value. This fixes styling in
6742 long lists of file names that are interrupted by the "Continue?"
6745 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
6747 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
6748 * c-lang.c (c_language_defn): Likewise.
6749 (cplus_language_defn): Likewise.
6750 (asm_language_defn): Likewise.
6751 (minimal_language_defn): Likewise.
6752 * d-lang.c (d_language_defn): Likewise.
6753 * f-lang.c (f_language_defn): Likewise.
6754 * go-lang.c (go_language_defn): Likewise.
6755 * language.c (unknown_language_defn): Likewise.
6756 (auto_language_defn): Likewise.
6757 * language.h (struct language_defn): Remove la_magic field.
6758 (LANG_MAGIC): Delete.
6759 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
6760 * objc-lang.c (objc_language_defn): Likewise.
6761 * opencl-lang.c (opencl_language_defn): Likewise.
6762 * p-lang.c (pascal_language_defn): Likewise.
6763 * rust-lang.c (rust_language_defn): Likewise.
6765 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
6767 * riscv-tdep.c (riscv_type_align): New function.
6768 (riscv_type_alignment): Delete.
6769 (riscv_arg_location): Use 'type_align'.
6770 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
6772 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
6774 * gdbtypes.c (type_align): A struct with no non-static fields also
6777 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
6779 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
6781 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
6783 (riscv_struct_info::analyse): New implementation using new
6784 analyse_inner member function.
6785 (riscv_struct_info::field_offset): New member function.
6786 (riscv_struct_info::m_offsets): New member variable.
6787 (riscv_struct_info::analyse_inner): New private member function,
6788 takes the old implementation of riscv_struct_info::analyse but
6789 extended to track field offsets.
6790 (riscv_call_arg_struct): Update the struct folding special cases
6791 to handle cases where empty C++ structs, which are non-zero
6793 (riscv_arg_location): Initialise the length of each location, a
6794 non-zero length now indicates the location is in use.
6795 (riscv_push_dummy_call): Allow for the first location having a
6796 non-zero offset when setting up arguments.
6797 (riscv_return_value): Likewise, but for return values.
6799 2019-04-11 Tom Tromey <tromey@adacore.com>
6801 * utils.c (internal_vproblem): Make "msg" const.
6803 2019-04-11 Alan Hayward <alan.hayward@arm.com>
6805 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
6806 * trad-frame.c (trad_frame_reset_saved_regs): New function.
6807 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
6808 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
6810 2019-04-10 Kevin Buettner <kevinb@redhat.com>
6812 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
6814 (fill_gregset): Call amd64_linux_collect_native_gregset instead
6815 of amd64_collect_native_gregset.
6816 (amd64_linux_nat_target::store_registers): Likewise.
6818 2019-04-10 Tom Tromey <tom@tromey.com>
6820 * symtab.c (lookup_global_symbol_from_objfile)
6821 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
6822 * objfiles.h (class separate_debug_iterator): New.
6823 (class separate_debug_range): New.
6824 (struct objfile) <separate_debug_objfiles>: New method.
6825 (objfile_separate_debug_iterate): Don't declare.
6826 * objfiles.c (separate_debug_iterator::operator++): Rename from
6827 objfile_separate_debug_iterate.
6828 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
6830 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
6833 2019-04-10 Tom Tromey <tom@tromey.com>
6835 * symfile.c (reread_symbols): Remove old comment.
6836 * objfiles.c (free_all_objfiles): Fix a typo.
6838 2019-04-10 Tom Tromey <tom@tromey.com>
6840 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
6841 * minsyms.c (lookup_minimal_symbol): Use foreach.
6842 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6843 (lookup_minimal_symbol_solib_trampoline): Likewise.
6844 * symfile.c (reread_symbols): Use foreach.
6846 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
6847 Tom Tromey <tromey@adacore.com>
6850 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
6851 (rust_lex_int_test): Change "value" to be LONGEST.
6852 (rust_lex_tests): Add test for long integer literal.
6854 2019-04-09 Tom Tromey <tromey@adacore.com>
6856 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
6858 (extended_remote_target::attach): Update.
6859 (remote_target::remote_notice_new_inferior): Update.
6860 (remote_target::add_current_inferior_and_thread): Update.
6861 * inferior.c (exit_inferior_1): Use "false".
6862 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
6864 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
6866 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
6867 the "start" command.
6869 2019-04-08 Kevin Buettner <kevinb@redhat.com>
6871 * python/py-inferior.c (infpy_thread_from_thread_handle):
6872 Adjust comments to reflect renaming of thread_from_thread_handle
6873 to thread_from_handle. Adjust keywords. Fix type error message.
6874 (inferior_object_methods): Add thread_from_handle. Retain
6875 thread_from_thread_handle, but mark it as deprecated.
6877 2019-04-08 Kevin Buettner <kevinb@redhat.com>
6879 * gdbthread.h (find_thread_by_handle): Revise declaration.
6880 * thread.c (find_thread_by_handle): Likewise. Adjust
6882 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
6883 support for buffer objects as handles.
6885 2019-04-08 Kevin Buettner <kevinb@redhat.com>
6887 * python/py-infthread.c (thpy_thread_handle): New function.
6888 (thread_object_methods): Register thpy_thread_handle.
6890 2019-04-08 Kevin Buettner <kevinb@redhat.com>
6892 * gdbthread.h (thread_to_thread_handle): Declare.
6893 * thread.c (gdbtypes.h): Include.
6894 (thread_to_thread_handle): New function.
6896 * target.h (struct target_ops): Add thread_info_to_thread_handle.
6897 (target_thread_info_to_thread_handle): Declare.
6898 * target.c (target_thread_info_to_thread_handle): New function.
6899 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
6900 * target-delegates.c: Regenerate.
6902 * linux-thread-db.c (class thread_db_target): Add method
6903 thread_info_to_thread_handle.
6904 (thread_db_target::thread_info_to_thread_handle): Define.
6905 * remote.c (class remote_target): Add new method
6906 thread_info_to_thread_handle.
6907 (remote_target::thread_info_to_thread_handle): Define.
6909 2019-04-08 Pedro Alves <palves@redhat.com>
6911 * common/common-exceptions.c (throw_exception): Don't create
6912 named object to throw; throw directly.
6913 (throw_it): Likewise. Don't initialize gdb_exception::message
6914 here, with new; pass FMT and AP to the ctor instead.
6915 * common/common-exceptions.h: Include <string>.
6916 (gdb_exception::gdb_exception(enum return_reason, enum errors,
6917 const char *, va_list)): New ctor. Use std::make_shared.
6918 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
6920 (gdb_exception_error::gdb_exception_error(enum errors, const char
6922 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
6924 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
6926 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
6927 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
6930 2019-04-08 Tom Tromey <tom@tromey.com>
6932 * valops.c (value_rtti_indirect_type): Replace throw_exception
6934 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
6936 * thread.c (thr_try_catch_cmd): Replace throw_exception with
6938 * target.c (target_translate_tls_address): Replace throw_exception
6940 * stack.c (frame_apply_command_count): Replace throw_exception
6942 * solib-spu.c (append_ocl_sos): Replace throw_exception with
6944 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
6946 * rs6000-tdep.c (rs6000_frame_cache)
6947 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
6948 * remote.c: Replace throw_exception with throw.
6949 * record-full.c (record_full_message, record_full_wait_1)
6950 (record_full_restore): Replace throw_exception with throw.
6952 (get_thread_current_frame_id, record_btrace_start_replaying)
6953 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
6954 (cmd_record_btrace_start): Replace throw_exception with throw.
6955 * parse.c (parse_exp_in_context_1): Replace throw_exception with
6957 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
6958 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
6960 (find_linespec_symbols): Replace throw_exception with throw.
6961 * infrun.c (displaced_step_prepare, resume): Replace
6962 throw_exception with throw.
6963 * infcmd.c (post_create_inferior): Replace throw_exception with
6965 * inf-loop.c (inferior_event_handler): Replace throw_exception
6967 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
6968 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
6969 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
6970 (get_prev_frame_always, get_frame_pc_if_available)
6971 (get_frame_address_in_block_if_available, get_frame_language):
6972 Replace throw_exception with throw.
6973 * frame-unwind.c (frame_unwind_try_unwinder): Replace
6974 throw_exception with throw.
6975 * eval.c (fetch_subexp_value, evaluate_var_value)
6976 (evaluate_funcall, evaluate_subexp_standard): Replace
6977 throw_exception with throw.
6978 * dwarf2loc.c (call_site_find_chain)
6979 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
6980 Replace throw_exception with throw.
6981 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
6983 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
6985 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
6986 * completer.c (complete_line_internal): Replace throw_exception
6988 * compile/compile-object-run.c (compile_object_run): Replace
6989 throw_exception with throw.
6990 * cli/cli-script.c (process_next_line): Replace throw_exception
6992 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
6993 (btrace_enable, btrace_maint_update_pt_packets): Replace
6994 throw_exception with throw.
6995 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
6996 throw_exception with throw.
6997 * break-catch-throw.c (re_set_exception_catchpoint): Replace
6998 throw_exception with throw.
6999 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
7000 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
7001 * aarch64-tdep.c (aarch64_make_prologue_cache)
7002 (aarch64_make_stub_cache): Replace throw_exception with throw.
7004 2019-04-08 Tom Tromey <tom@tromey.com>
7006 * common/common-exceptions.c (throw_exception): Rename from
7007 throw_exception_cxx. Remove old copy. Make argument const.
7008 (throw_it): Create and throw exception objects directly.
7009 * common/common-exceptions.h (throw_exception): Make argument
7011 (struct gdb_exception_error): Add constructor.
7012 (struct gdb_exception_quit): Add constructor.
7014 2019-04-08 Tom Tromey <tom@tromey.com>
7016 * common/common-exceptions.h (exception_rethrow): Don't declare.
7017 (TRY_SJLJ): Update comment.
7018 (TRY, CATCH, END_CATCH): Remove.
7019 * common/common-exceptions.c (exception_rethrow): Remove.
7021 2019-04-08 Tom Tromey <tom@tromey.com>
7023 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
7025 (gdb_exception_error): Rename from
7026 gdb_exception_RETURN_MASK_ERROR.
7027 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
7028 (gdb_quit_bad_alloc): Update.
7029 * aarch64-tdep.c: Update.
7030 * ada-lang.c: Update.
7031 * ada-typeprint.c: Update.
7032 * ada-valprint.c: Update.
7033 * amd64-tdep.c: Update.
7034 * arch-utils.c: Update.
7035 * break-catch-throw.c: Update.
7036 * breakpoint.c: Update.
7038 * c-varobj.c: Update.
7039 * cli/cli-cmds.c: Update.
7040 * cli/cli-interp.c: Update.
7041 * cli/cli-script.c: Update.
7042 * common/common-exceptions.c: Update.
7043 * common/new-op.c: Update.
7044 * common/selftest.c: Update.
7045 * compile/compile-c-symbols.c: Update.
7046 * compile/compile-cplus-symbols.c: Update.
7047 * compile/compile-object-load.c: Update.
7048 * compile/compile-object-run.c: Update.
7049 * completer.c: Update.
7050 * corelow.c: Update.
7052 * cp-support.c: Update.
7053 * cp-valprint.c: Update.
7054 * darwin-nat.c: Update.
7055 * disasm-selftests.c: Update.
7056 * dtrace-probe.c: Update.
7057 * dwarf-index-cache.c: Update.
7058 * dwarf-index-write.c: Update.
7059 * dwarf2-frame-tailcall.c: Update.
7060 * dwarf2-frame.c: Update.
7061 * dwarf2loc.c: Update.
7062 * dwarf2read.c: Update.
7064 * event-loop.c: Update.
7065 * event-top.c: Update.
7067 * f-valprint.c: Update.
7068 * fbsd-tdep.c: Update.
7069 * frame-unwind.c: Update.
7071 * gdbtypes.c: Update.
7072 * gnu-v3-abi.c: Update.
7073 * guile/guile-internal.h: Update.
7074 * guile/scm-block.c: Update.
7075 * guile/scm-breakpoint.c: Update.
7076 * guile/scm-cmd.c: Update.
7077 * guile/scm-disasm.c: Update.
7078 * guile/scm-frame.c: Update.
7079 * guile/scm-lazy-string.c: Update.
7080 * guile/scm-math.c: Update.
7081 * guile/scm-param.c: Update.
7082 * guile/scm-ports.c: Update.
7083 * guile/scm-pretty-print.c: Update.
7084 * guile/scm-symbol.c: Update.
7085 * guile/scm-symtab.c: Update.
7086 * guile/scm-type.c: Update.
7087 * guile/scm-value.c: Update.
7088 * i386-linux-tdep.c: Update.
7089 * i386-tdep.c: Update.
7090 * inf-loop.c: Update.
7091 * infcall.c: Update.
7095 * language.c: Update.
7096 * linespec.c: Update.
7097 * linux-fork.c: Update.
7098 * linux-nat.c: Update.
7099 * linux-tdep.c: Update.
7100 * linux-thread-db.c: Update.
7102 * mi/mi-cmd-break.c: Update.
7103 * mi/mi-cmd-stack.c: Update.
7104 * mi/mi-interp.c: Update.
7105 * mi/mi-main.c: Update.
7106 * objc-lang.c: Update.
7107 * p-valprint.c: Update.
7109 * ppc-linux-tdep.c: Update.
7110 * printcmd.c: Update.
7111 * python/py-arch.c: Update.
7112 * python/py-breakpoint.c: Update.
7113 * python/py-cmd.c: Update.
7114 * python/py-finishbreakpoint.c: Update.
7115 * python/py-frame.c: Update.
7116 * python/py-framefilter.c: Update.
7117 * python/py-gdb-readline.c: Update.
7118 * python/py-inferior.c: Update.
7119 * python/py-infthread.c: Update.
7120 * python/py-lazy-string.c: Update.
7121 * python/py-linetable.c: Update.
7122 * python/py-objfile.c: Update.
7123 * python/py-param.c: Update.
7124 * python/py-prettyprint.c: Update.
7125 * python/py-progspace.c: Update.
7126 * python/py-record-btrace.c: Update.
7127 * python/py-record.c: Update.
7128 * python/py-symbol.c: Update.
7129 * python/py-type.c: Update.
7130 * python/py-unwind.c: Update.
7131 * python/py-utils.c: Update.
7132 * python/py-value.c: Update.
7133 * python/python.c: Update.
7134 * record-btrace.c: Update.
7135 * record-full.c: Update.
7136 * remote-fileio.c: Update.
7138 * riscv-tdep.c: Update.
7139 * rs6000-aix-tdep.c: Update.
7140 * rs6000-tdep.c: Update.
7141 * rust-exp.y: Update.
7142 * rust-lang.c: Update.
7143 * s390-tdep.c: Update.
7144 * selftest-arch.c: Update.
7145 * solib-dsbt.c: Update.
7146 * solib-frv.c: Update.
7147 * solib-spu.c: Update.
7148 * solib-svr4.c: Update.
7150 * sparc64-linux-tdep.c: Update.
7152 * symfile-mem.c: Update.
7153 * symmisc.c: Update.
7157 * tracefile-tfile.c: Update.
7158 * tui/tui.c: Update.
7159 * typeprint.c: Update.
7160 * unittests/cli-utils-selftests.c: Update.
7161 * unittests/parse-connection-spec-selftests.c: Update.
7163 * valprint.c: Update.
7166 * windows-nat.c: Update.
7167 * x86-linux-nat.c: Update.
7168 * xml-support.c: Update.
7170 2019-04-08 Tom Tromey <tom@tromey.com>
7172 * xml-support.c: Use C++ exception handling.
7173 * x86-linux-nat.c: Use C++ exception handling.
7174 * windows-nat.c: Use C++ exception handling.
7175 * varobj.c: Use C++ exception handling.
7176 * value.c: Use C++ exception handling.
7177 * valprint.c: Use C++ exception handling.
7178 * valops.c: Use C++ exception handling.
7179 * unittests/parse-connection-spec-selftests.c: Use C++ exception
7181 * unittests/cli-utils-selftests.c: Use C++ exception handling.
7182 * typeprint.c: Use C++ exception handling.
7183 * tui/tui.c: Use C++ exception handling.
7184 * tracefile-tfile.c: Use C++ exception handling.
7185 * top.c: Use C++ exception handling.
7186 * thread.c: Use C++ exception handling.
7187 * target.c: Use C++ exception handling.
7188 * symmisc.c: Use C++ exception handling.
7189 * symfile-mem.c: Use C++ exception handling.
7190 * stack.c: Use C++ exception handling.
7191 * sparc64-linux-tdep.c: Use C++ exception handling.
7192 * solib.c: Use C++ exception handling.
7193 * solib-svr4.c: Use C++ exception handling.
7194 * solib-spu.c: Use C++ exception handling.
7195 * solib-frv.c: Use C++ exception handling.
7196 * solib-dsbt.c: Use C++ exception handling.
7197 * selftest-arch.c: Use C++ exception handling.
7198 * s390-tdep.c: Use C++ exception handling.
7199 * rust-lang.c: Use C++ exception handling.
7200 * rust-exp.y: Use C++ exception handling.
7201 * rs6000-tdep.c: Use C++ exception handling.
7202 * rs6000-aix-tdep.c: Use C++ exception handling.
7203 * riscv-tdep.c: Use C++ exception handling.
7204 * remote.c: Use C++ exception handling.
7205 * remote-fileio.c: Use C++ exception handling.
7206 * record-full.c: Use C++ exception handling.
7207 * record-btrace.c: Use C++ exception handling.
7208 * python/python.c: Use C++ exception handling.
7209 * python/py-value.c: Use C++ exception handling.
7210 * python/py-utils.c: Use C++ exception handling.
7211 * python/py-unwind.c: Use C++ exception handling.
7212 * python/py-type.c: Use C++ exception handling.
7213 * python/py-symbol.c: Use C++ exception handling.
7214 * python/py-record.c: Use C++ exception handling.
7215 * python/py-record-btrace.c: Use C++ exception handling.
7216 * python/py-progspace.c: Use C++ exception handling.
7217 * python/py-prettyprint.c: Use C++ exception handling.
7218 * python/py-param.c: Use C++ exception handling.
7219 * python/py-objfile.c: Use C++ exception handling.
7220 * python/py-linetable.c: Use C++ exception handling.
7221 * python/py-lazy-string.c: Use C++ exception handling.
7222 * python/py-infthread.c: Use C++ exception handling.
7223 * python/py-inferior.c: Use C++ exception handling.
7224 * python/py-gdb-readline.c: Use C++ exception handling.
7225 * python/py-framefilter.c: Use C++ exception handling.
7226 * python/py-frame.c: Use C++ exception handling.
7227 * python/py-finishbreakpoint.c: Use C++ exception handling.
7228 * python/py-cmd.c: Use C++ exception handling.
7229 * python/py-breakpoint.c: Use C++ exception handling.
7230 * python/py-arch.c: Use C++ exception handling.
7231 * printcmd.c: Use C++ exception handling.
7232 * ppc-linux-tdep.c: Use C++ exception handling.
7233 * parse.c: Use C++ exception handling.
7234 * p-valprint.c: Use C++ exception handling.
7235 * objc-lang.c: Use C++ exception handling.
7236 * mi/mi-main.c: Use C++ exception handling.
7237 * mi/mi-interp.c: Use C++ exception handling.
7238 * mi/mi-cmd-stack.c: Use C++ exception handling.
7239 * mi/mi-cmd-break.c: Use C++ exception handling.
7240 * main.c: Use C++ exception handling.
7241 * linux-thread-db.c: Use C++ exception handling.
7242 * linux-tdep.c: Use C++ exception handling.
7243 * linux-nat.c: Use C++ exception handling.
7244 * linux-fork.c: Use C++ exception handling.
7245 * linespec.c: Use C++ exception handling.
7246 * language.c: Use C++ exception handling.
7247 * jit.c: Use C++ exception handling.
7248 * infrun.c: Use C++ exception handling.
7249 * infcmd.c: Use C++ exception handling.
7250 * infcall.c: Use C++ exception handling.
7251 * inf-loop.c: Use C++ exception handling.
7252 * i386-tdep.c: Use C++ exception handling.
7253 * i386-linux-tdep.c: Use C++ exception handling.
7254 * guile/scm-value.c: Use C++ exception handling.
7255 * guile/scm-type.c: Use C++ exception handling.
7256 * guile/scm-symtab.c: Use C++ exception handling.
7257 * guile/scm-symbol.c: Use C++ exception handling.
7258 * guile/scm-pretty-print.c: Use C++ exception handling.
7259 * guile/scm-ports.c: Use C++ exception handling.
7260 * guile/scm-param.c: Use C++ exception handling.
7261 * guile/scm-math.c: Use C++ exception handling.
7262 * guile/scm-lazy-string.c: Use C++ exception handling.
7263 * guile/scm-frame.c: Use C++ exception handling.
7264 * guile/scm-disasm.c: Use C++ exception handling.
7265 * guile/scm-cmd.c: Use C++ exception handling.
7266 * guile/scm-breakpoint.c: Use C++ exception handling.
7267 * guile/scm-block.c: Use C++ exception handling.
7268 * guile/guile-internal.h: Use C++ exception handling.
7269 * gnu-v3-abi.c: Use C++ exception handling.
7270 * gdbtypes.c: Use C++ exception handling.
7271 * frame.c: Use C++ exception handling.
7272 * frame-unwind.c: Use C++ exception handling.
7273 * fbsd-tdep.c: Use C++ exception handling.
7274 * f-valprint.c: Use C++ exception handling.
7275 * exec.c: Use C++ exception handling.
7276 * event-top.c: Use C++ exception handling.
7277 * event-loop.c: Use C++ exception handling.
7278 * eval.c: Use C++ exception handling.
7279 * dwarf2read.c: Use C++ exception handling.
7280 * dwarf2loc.c: Use C++ exception handling.
7281 * dwarf2-frame.c: Use C++ exception handling.
7282 * dwarf2-frame-tailcall.c: Use C++ exception handling.
7283 * dwarf-index-write.c: Use C++ exception handling.
7284 * dwarf-index-cache.c: Use C++ exception handling.
7285 * dtrace-probe.c: Use C++ exception handling.
7286 * disasm-selftests.c: Use C++ exception handling.
7287 * darwin-nat.c: Use C++ exception handling.
7288 * cp-valprint.c: Use C++ exception handling.
7289 * cp-support.c: Use C++ exception handling.
7290 * cp-abi.c: Use C++ exception handling.
7291 * corelow.c: Use C++ exception handling.
7292 * completer.c: Use C++ exception handling.
7293 * compile/compile-object-run.c: Use C++ exception handling.
7294 * compile/compile-object-load.c: Use C++ exception handling.
7295 * compile/compile-cplus-symbols.c: Use C++ exception handling.
7296 * compile/compile-c-symbols.c: Use C++ exception handling.
7297 * common/selftest.c: Use C++ exception handling.
7298 * common/new-op.c: Use C++ exception handling.
7299 * cli/cli-script.c: Use C++ exception handling.
7300 * cli/cli-interp.c: Use C++ exception handling.
7301 * cli/cli-cmds.c: Use C++ exception handling.
7302 * c-varobj.c: Use C++ exception handling.
7303 * btrace.c: Use C++ exception handling.
7304 * breakpoint.c: Use C++ exception handling.
7305 * break-catch-throw.c: Use C++ exception handling.
7306 * arch-utils.c: Use C++ exception handling.
7307 * amd64-tdep.c: Use C++ exception handling.
7308 * ada-valprint.c: Use C++ exception handling.
7309 * ada-typeprint.c: Use C++ exception handling.
7310 * ada-lang.c: Use C++ exception handling.
7311 * aarch64-tdep.c: Use C++ exception handling.
7313 2019-04-08 Tom Tromey <tom@tromey.com>
7315 * xml-support.c (gdb_xml_parser::parse): Update.
7316 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
7317 * value.c (show_convenience): Update.
7318 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
7319 (test_parse_flags_qcs): Update.
7320 * thread.c (thr_try_catch_cmd): Update.
7321 * target.c (target_translate_tls_address): Update.
7322 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
7323 (info_frame_command_core, frame_apply_command_count): Update.
7324 * rust-exp.y (rust_lex_exception_test): Update.
7325 * riscv-tdep.c (riscv_print_one_register_info): Update.
7326 * remote.c (remote_target::enable_btrace): Update.
7327 * record-btrace.c (record_btrace_enable_warn): Update.
7328 * python/py-utils.c (gdbpy_convert_exception): Update.
7329 * printcmd.c (do_one_display, print_variable_and_value): Update.
7330 * mi/mi-main.c (mi_print_exception): Update.
7331 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
7332 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
7333 * linux-nat.c (linux_nat_target::attach): Update.
7334 * linux-fork.c (class scoped_switch_fork_info): Update.
7335 * infrun.c (displaced_step_prepare): Update.
7336 * infcall.c (call_function_by_hand_dummy): Update.
7337 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
7338 * gnu-v3-abi.c (print_one_vtable): Update.
7339 * frame.c (get_prev_frame_always): Update.
7340 * f-valprint.c (info_common_command_for_block): Update.
7341 * exec.c (try_open_exec_file): Update.
7342 * exceptions.c (print_exception, exception_print)
7343 (exception_fprintf, exception_print_same): Update.
7344 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
7345 * dwarf-index-cache.c (index_cache::store)
7346 (index_cache::lookup_gdb_index): Update.
7347 * darwin-nat.c (maybe_cache_shell): Update.
7348 * cp-valprint.c (cp_print_value_fields): Update.
7349 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
7350 (gcc_cplus_symbol_address): Update.
7351 * compile/compile-c-symbols.c (gcc_convert_symbol)
7352 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
7353 * common/selftest.c: Update.
7354 * common/common-exceptions.h (struct gdb_exception) <message>: Now
7356 (exception_try_scope_entry, exception_try_scope_exit): Don't
7358 (struct exception_try_scope): Remove.
7359 (TRY): Don't use exception_try_scope.
7360 (struct gdb_exception): Add constructor, operator=.
7362 (struct gdb_exception_RETURN_MASK_ALL)
7363 (struct gdb_exception_RETURN_MASK_ERROR)
7364 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
7365 (struct gdb_quit_bad_alloc): Update.
7366 * common/common-exceptions.c (exception_none): Change
7368 (struct catcher) <state, exception>: Initialize inline.
7369 <prev>: Remove member.
7370 (current_catcher): Remove.
7371 (catchers): New global.
7372 (exceptions_state_mc_init): Simplify.
7373 (catcher_pop): Remove.
7374 (exceptions_state_mc, exceptions_state_mc_catch): Update.
7375 (try_scope_depth, exception_try_scope_entry)
7376 (exception_try_scope_exit): Remove.
7377 (throw_exception_sjlj): Update.
7378 (exception_messages, exception_messages_size): Remove.
7379 (throw_it): Simplify.
7380 (gdb_exception_sliced_copy): Remove.
7381 (throw_exception_cxx): Update.
7382 * cli/cli-script.c (script_from_file): Update.
7383 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
7385 * ada-valprint.c (ada_val_print): Update.
7386 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
7387 (create_excep_cond_exprs): Update.
7389 2019-04-08 Tom Tromey <tom@tromey.com>
7391 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
7392 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
7393 (TRY, CATCH, END_CATCH): Remove some definitions.
7394 * common/common-exceptions.c: Don't use GDB_XCPT.
7395 (catcher_list_size): Remove.
7396 (throw_exception, throw_it): Simplify.
7398 2019-04-05 Tom Tromey <tom@tromey.com>
7400 Revert the header-sorting patch.
7401 * ft32-tdep.c: Revert.
7402 * frv-tdep.c: Revert.
7403 * frv-linux-tdep.c: Revert.
7405 * frame-unwind.c: Revert.
7406 * frame-base.c: Revert.
7407 * fork-child.c: Revert.
7408 * findvar.c: Revert.
7409 * findcmd.c: Revert.
7410 * filesystem.c: Revert.
7411 * filename-seen-cache.h: Revert.
7412 * filename-seen-cache.c: Revert.
7413 * fbsd-tdep.c: Revert.
7414 * fbsd-nat.h: Revert.
7415 * fbsd-nat.c: Revert.
7416 * f-valprint.c: Revert.
7417 * f-typeprint.c: Revert.
7419 * extension.h: Revert.
7420 * extension.c: Revert.
7421 * extension-priv.h: Revert.
7422 * expprint.c: Revert.
7425 * exceptions.c: Revert.
7426 * event-top.c: Revert.
7427 * event-loop.c: Revert.
7429 * elfread.c: Revert.
7430 * dwarf2read.h: Revert.
7431 * dwarf2read.c: Revert.
7432 * dwarf2loc.c: Revert.
7433 * dwarf2expr.h: Revert.
7434 * dwarf2expr.c: Revert.
7435 * dwarf2-frame.c: Revert.
7436 * dwarf2-frame-tailcall.c: Revert.
7437 * dwarf-index-write.h: Revert.
7438 * dwarf-index-write.c: Revert.
7439 * dwarf-index-common.c: Revert.
7440 * dwarf-index-cache.h: Revert.
7441 * dwarf-index-cache.c: Revert.
7442 * dummy-frame.c: Revert.
7443 * dtrace-probe.c: Revert.
7446 * disasm-selftests.c: Revert.
7447 * dictionary.c: Revert.
7448 * dicos-tdep.c: Revert.
7449 * demangle.c: Revert.
7452 * darwin-nat.h: Revert.
7453 * darwin-nat.c: Revert.
7454 * darwin-nat-info.c: Revert.
7455 * d-valprint.c: Revert.
7456 * d-namespace.c: Revert.
7459 * csky-tdep.c: Revert.
7460 * csky-linux-tdep.c: Revert.
7461 * cris-tdep.c: Revert.
7462 * cris-linux-tdep.c: Revert.
7463 * cp-valprint.c: Revert.
7464 * cp-support.c: Revert.
7465 * cp-namespace.c: Revert.
7467 * corelow.c: Revert.
7468 * corefile.c: Revert.
7469 * continuations.c: Revert.
7470 * completer.h: Revert.
7471 * completer.c: Revert.
7472 * complaints.c: Revert.
7473 * coffread.c: Revert.
7474 * coff-pe-read.c: Revert.
7475 * cli-out.h: Revert.
7476 * cli-out.c: Revert.
7477 * charset.c: Revert.
7478 * c-varobj.c: Revert.
7479 * c-valprint.c: Revert.
7480 * c-typeprint.c: Revert.
7482 * buildsym.c: Revert.
7483 * buildsym-legacy.c: Revert.
7484 * build-id.h: Revert.
7485 * build-id.c: Revert.
7487 * bsd-uthread.c: Revert.
7488 * breakpoint.h: Revert.
7489 * breakpoint.c: Revert.
7490 * break-catch-throw.c: Revert.
7491 * break-catch-syscall.c: Revert.
7492 * break-catch-sig.c: Revert.
7493 * blockframe.c: Revert.
7495 * bfin-tdep.c: Revert.
7496 * bfin-linux-tdep.c: Revert.
7497 * bfd-target.c: Revert.
7499 * ax-general.c: Revert.
7502 * avr-tdep.c: Revert.
7504 * auto-load.c: Revert.
7505 * arm-wince-tdep.c: Revert.
7506 * arm-tdep.c: Revert.
7507 * arm-symbian-tdep.c: Revert.
7508 * arm-pikeos-tdep.c: Revert.
7509 * arm-obsd-tdep.c: Revert.
7510 * arm-nbsd-tdep.c: Revert.
7511 * arm-nbsd-nat.c: Revert.
7512 * arm-linux-tdep.c: Revert.
7513 * arm-linux-nat.c: Revert.
7514 * arm-fbsd-tdep.c: Revert.
7515 * arm-fbsd-nat.c: Revert.
7516 * arm-bsd-tdep.c: Revert.
7517 * arch-utils.c: Revert.
7518 * arc-tdep.c: Revert.
7519 * arc-newlib-tdep.c: Revert.
7520 * annotate.h: Revert.
7521 * annotate.c: Revert.
7522 * amd64-windows-tdep.c: Revert.
7523 * amd64-windows-nat.c: Revert.
7524 * amd64-tdep.c: Revert.
7525 * amd64-sol2-tdep.c: Revert.
7526 * amd64-obsd-tdep.c: Revert.
7527 * amd64-obsd-nat.c: Revert.
7528 * amd64-nbsd-tdep.c: Revert.
7529 * amd64-nbsd-nat.c: Revert.
7530 * amd64-nat.c: Revert.
7531 * amd64-linux-tdep.c: Revert.
7532 * amd64-linux-nat.c: Revert.
7533 * amd64-fbsd-tdep.c: Revert.
7534 * amd64-fbsd-nat.c: Revert.
7535 * amd64-dicos-tdep.c: Revert.
7536 * amd64-darwin-tdep.c: Revert.
7537 * amd64-bsd-nat.c: Revert.
7538 * alpha-tdep.c: Revert.
7539 * alpha-obsd-tdep.c: Revert.
7540 * alpha-nbsd-tdep.c: Revert.
7541 * alpha-mdebug-tdep.c: Revert.
7542 * alpha-linux-tdep.c: Revert.
7543 * alpha-linux-nat.c: Revert.
7544 * alpha-bsd-tdep.c: Revert.
7545 * alpha-bsd-nat.c: Revert.
7546 * aix-thread.c: Revert.
7548 * addrmap.c: Revert.
7549 * ada-varobj.c: Revert.
7550 * ada-valprint.c: Revert.
7551 * ada-typeprint.c: Revert.
7552 * ada-tasks.c: Revert.
7553 * ada-lang.c: Revert.
7554 * aarch64-tdep.c: Revert.
7555 * aarch64-ravenscar-thread.c: Revert.
7556 * aarch64-newlib-tdep.c: Revert.
7557 * aarch64-linux-tdep.c: Revert.
7558 * aarch64-linux-nat.c: Revert.
7559 * aarch64-fbsd-tdep.c: Revert.
7560 * aarch64-fbsd-nat.c: Revert.
7561 * aarch32-linux-nat.c: Revert.
7563 2019-04-05 Tom Tromey <tom@tromey.com>
7565 * ft32-tdep.c: Sort headers.
7566 * frv-tdep.c: Sort headers.
7567 * frv-linux-tdep.c: Sort headers.
7568 * frame.c: Sort headers.
7569 * frame-unwind.c: Sort headers.
7570 * frame-base.c: Sort headers.
7571 * fork-child.c: Sort headers.
7572 * findvar.c: Sort headers.
7573 * findcmd.c: Sort headers.
7574 * filesystem.c: Sort headers.
7575 * filename-seen-cache.h: Sort headers.
7576 * filename-seen-cache.c: Sort headers.
7577 * fbsd-tdep.c: Sort headers.
7578 * fbsd-nat.h: Sort headers.
7579 * fbsd-nat.c: Sort headers.
7580 * f-valprint.c: Sort headers.
7581 * f-typeprint.c: Sort headers.
7582 * f-lang.c: Sort headers.
7583 * extension.h: Sort headers.
7584 * extension.c: Sort headers.
7585 * extension-priv.h: Sort headers.
7586 * expprint.c: Sort headers.
7587 * exec.h: Sort headers.
7588 * exec.c: Sort headers.
7589 * exceptions.c: Sort headers.
7590 * event-top.c: Sort headers.
7591 * event-loop.c: Sort headers.
7592 * eval.c: Sort headers.
7593 * elfread.c: Sort headers.
7594 * dwarf2read.h: Sort headers.
7595 * dwarf2read.c: Sort headers.
7596 * dwarf2loc.c: Sort headers.
7597 * dwarf2expr.h: Sort headers.
7598 * dwarf2expr.c: Sort headers.
7599 * dwarf2-frame.c: Sort headers.
7600 * dwarf2-frame-tailcall.c: Sort headers.
7601 * dwarf-index-write.h: Sort headers.
7602 * dwarf-index-write.c: Sort headers.
7603 * dwarf-index-common.c: Sort headers.
7604 * dwarf-index-cache.h: Sort headers.
7605 * dwarf-index-cache.c: Sort headers.
7606 * dummy-frame.c: Sort headers.
7607 * dtrace-probe.c: Sort headers.
7608 * disasm.h: Sort headers.
7609 * disasm.c: Sort headers.
7610 * disasm-selftests.c: Sort headers.
7611 * dictionary.c: Sort headers.
7612 * dicos-tdep.c: Sort headers.
7613 * demangle.c: Sort headers.
7614 * dcache.h: Sort headers.
7615 * dcache.c: Sort headers.
7616 * darwin-nat.h: Sort headers.
7617 * darwin-nat.c: Sort headers.
7618 * darwin-nat-info.c: Sort headers.
7619 * d-valprint.c: Sort headers.
7620 * d-namespace.c: Sort headers.
7621 * d-lang.c: Sort headers.
7622 * ctf.c: Sort headers.
7623 * csky-tdep.c: Sort headers.
7624 * csky-linux-tdep.c: Sort headers.
7625 * cris-tdep.c: Sort headers.
7626 * cris-linux-tdep.c: Sort headers.
7627 * cp-valprint.c: Sort headers.
7628 * cp-support.c: Sort headers.
7629 * cp-namespace.c: Sort headers.
7630 * cp-abi.c: Sort headers.
7631 * corelow.c: Sort headers.
7632 * corefile.c: Sort headers.
7633 * continuations.c: Sort headers.
7634 * completer.h: Sort headers.
7635 * completer.c: Sort headers.
7636 * complaints.c: Sort headers.
7637 * coffread.c: Sort headers.
7638 * coff-pe-read.c: Sort headers.
7639 * cli-out.h: Sort headers.
7640 * cli-out.c: Sort headers.
7641 * charset.c: Sort headers.
7642 * c-varobj.c: Sort headers.
7643 * c-valprint.c: Sort headers.
7644 * c-typeprint.c: Sort headers.
7645 * c-lang.c: Sort headers.
7646 * buildsym.c: Sort headers.
7647 * buildsym-legacy.c: Sort headers.
7648 * build-id.h: Sort headers.
7649 * build-id.c: Sort headers.
7650 * btrace.c: Sort headers.
7651 * bsd-uthread.c: Sort headers.
7652 * breakpoint.h: Sort headers.
7653 * breakpoint.c: Sort headers.
7654 * break-catch-throw.c: Sort headers.
7655 * break-catch-syscall.c: Sort headers.
7656 * break-catch-sig.c: Sort headers.
7657 * blockframe.c: Sort headers.
7658 * block.c: Sort headers.
7659 * bfin-tdep.c: Sort headers.
7660 * bfin-linux-tdep.c: Sort headers.
7661 * bfd-target.c: Sort headers.
7662 * bcache.c: Sort headers.
7663 * ax-general.c: Sort headers.
7664 * ax-gdb.h: Sort headers.
7665 * ax-gdb.c: Sort headers.
7666 * avr-tdep.c: Sort headers.
7667 * auxv.c: Sort headers.
7668 * auto-load.c: Sort headers.
7669 * arm-wince-tdep.c: Sort headers.
7670 * arm-tdep.c: Sort headers.
7671 * arm-symbian-tdep.c: Sort headers.
7672 * arm-pikeos-tdep.c: Sort headers.
7673 * arm-obsd-tdep.c: Sort headers.
7674 * arm-nbsd-tdep.c: Sort headers.
7675 * arm-nbsd-nat.c: Sort headers.
7676 * arm-linux-tdep.c: Sort headers.
7677 * arm-linux-nat.c: Sort headers.
7678 * arm-fbsd-tdep.c: Sort headers.
7679 * arm-fbsd-nat.c: Sort headers.
7680 * arm-bsd-tdep.c: Sort headers.
7681 * arch-utils.c: Sort headers.
7682 * arc-tdep.c: Sort headers.
7683 * arc-newlib-tdep.c: Sort headers.
7684 * annotate.h: Sort headers.
7685 * annotate.c: Sort headers.
7686 * amd64-windows-tdep.c: Sort headers.
7687 * amd64-windows-nat.c: Sort headers.
7688 * amd64-tdep.c: Sort headers.
7689 * amd64-sol2-tdep.c: Sort headers.
7690 * amd64-obsd-tdep.c: Sort headers.
7691 * amd64-obsd-nat.c: Sort headers.
7692 * amd64-nbsd-tdep.c: Sort headers.
7693 * amd64-nbsd-nat.c: Sort headers.
7694 * amd64-nat.c: Sort headers.
7695 * amd64-linux-tdep.c: Sort headers.
7696 * amd64-linux-nat.c: Sort headers.
7697 * amd64-fbsd-tdep.c: Sort headers.
7698 * amd64-fbsd-nat.c: Sort headers.
7699 * amd64-dicos-tdep.c: Sort headers.
7700 * amd64-darwin-tdep.c: Sort headers.
7701 * amd64-bsd-nat.c: Sort headers.
7702 * alpha-tdep.c: Sort headers.
7703 * alpha-obsd-tdep.c: Sort headers.
7704 * alpha-nbsd-tdep.c: Sort headers.
7705 * alpha-mdebug-tdep.c: Sort headers.
7706 * alpha-linux-tdep.c: Sort headers.
7707 * alpha-linux-nat.c: Sort headers.
7708 * alpha-bsd-tdep.c: Sort headers.
7709 * alpha-bsd-nat.c: Sort headers.
7710 * aix-thread.c: Sort headers.
7711 * agent.c: Sort headers.
7712 * addrmap.c: Sort headers.
7713 * ada-varobj.c: Sort headers.
7714 * ada-valprint.c: Sort headers.
7715 * ada-typeprint.c: Sort headers.
7716 * ada-tasks.c: Sort headers.
7717 * ada-lang.c: Sort headers.
7718 * aarch64-tdep.c: Sort headers.
7719 * aarch64-ravenscar-thread.c: Sort headers.
7720 * aarch64-newlib-tdep.c: Sort headers.
7721 * aarch64-linux-tdep.c: Sort headers.
7722 * aarch64-linux-nat.c: Sort headers.
7723 * aarch64-fbsd-tdep.c: Sort headers.
7724 * aarch64-fbsd-nat.c: Sort headers.
7725 * aarch32-linux-nat.c: Sort headers.
7727 2019-04-04 Tom Tromey <tom@tromey.com>
7729 * varobj.c (varobj_create): Update.
7730 * rust-exp.y (struct rust_parser) <update_innermost_block,
7731 lookup_symbol>: New methods.
7732 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
7734 (rust_parser::rust_lookup_type)
7735 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
7736 * printcmd.c (display_command, do_one_display): Update.
7737 * parser-defs.h (struct parser_state) <parser_state>: Add
7738 "tracker" parameter.
7739 (block_tracker): New member.
7740 (class innermost_block_tracker) <innermost_block_tracker>: Add
7742 <reset>: Remove method.
7743 (innermost_block): Don't declare.
7744 (null_post_parser): Update.
7745 * parse.c (innermost_block): Remove global.
7746 (write_dollar_variable): Update.
7747 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
7748 Remove "tracker_types" parameter.
7749 (parse_expression): Add "tracker" parameter.
7750 (parse_expression_for_completion): Update.
7751 (null_post_parser): Add "tracker" parameter.
7752 * p-exp.y: Update rules.
7753 * m2-exp.y: Update rules.
7754 * language.h (struct language_defn) <la_post_parser>: Add
7755 "tracker" parameter.
7756 * go-exp.y: Update rules.
7757 * f-exp.y: Update rules.
7758 * expression.h (parse_expression, parse_exp_1): Add "tracker"
7760 * d-exp.y: Update rules.
7761 * c-exp.y: Update rules.
7762 * breakpoint.c (set_breakpoint_condition): Create an
7763 innermost_block_tracker.
7764 (watch_command_1): Likewise.
7765 * ada-lang.c (resolve): Add "tracker" parameter.
7766 (resolve_subexp): Likewise.
7767 * ada-exp.y (write_var_from_sym): Update.
7769 2019-04-04 Tom Tromey <tom@tromey.com>
7771 * type-stack.h: New file.
7772 * type-stack.c: New file.
7773 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
7775 (insert_into_type_stack, insert_type, push_type, push_type_int)
7776 (insert_type_address_space, pop_type, pop_type_int)
7777 (pop_typelist, pop_type_stack, append_type_stack)
7778 (push_type_stack, get_type_stack, push_typelist)
7779 (follow_type_instance_flags, follow_types): Don't declare.
7780 * parse.c (type_stack): Remove global.
7781 (parse_exp_in_context): Update.
7782 (insert_into_type_stack, insert_type, push_type, push_type_int)
7783 (insert_type_address_space, pop_type, pop_type_int)
7784 (pop_typelist, pop_type_stack, append_type_stack)
7785 (push_type_stack, get_type_stack, push_typelist)
7786 (follow_type_instance_flags, follow_types): Remove (moved to
7788 * f-exp.y (type_stack): New global.
7790 (push_kind_type, f_parse): Update.
7791 * d-exp.y (type_stack): New global.
7794 * c-exp.y (struct c_parse_state) <type_stack>: New member.
7796 * Makefile.in (COMMON_SFILES): Add type-stack.c.
7797 (HFILES_NO_SRCDIR): Add type-stack.h.
7799 2019-04-04 Tom Tromey <tom@tromey.com>
7801 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
7802 (rust_parser::convert_ast_to_expression, rust_parse)
7803 (rust_lex_test_completion, rust_lex_tests): Update.
7804 * parser-defs.h (struct expr_completion_state): New.
7805 (struct parser_state) <parser_state>: Add completion parameter.
7806 <mark_struct_expression, mark_completion_tag>: New methods.
7807 <parse_completion, m_completion_state>: New members.
7808 (prefixify_expression, null_post_parser): Update.
7809 (mark_struct_expression, mark_completion_tag): Don't declare.
7810 * parse.c (parse_completion, expout_last_struct)
7811 (expout_tag_completion_type, expout_completion_name): Remove
7813 (parser_state::mark_struct_expression)
7814 (parser_state::mark_completion_tag): Now methods.
7815 (prefixify_expression): Add last_struct parameter.
7816 (prefixify_subexp): Likewise.
7817 (parse_exp_1): Update.
7818 (parse_exp_in_context): Add cstate parameter. Update.
7819 (parse_expression_for_completion): Create an
7820 expr_completion_state.
7821 (null_post_parser): Add "completion" parameter.
7822 * p-exp.y: Update rules.
7824 * language.h (struct language_defn) <la_post_parser>: Add
7825 "completing" parameter.
7826 * go-exp.y: Update rules.
7827 (lex_one_token): Update.
7828 * expression.h (parse_completion): Don't declare.
7829 * d-exp.y: Update rules.
7830 (lex_one_token): Update rules.
7831 * c-exp.y: Update rules.
7832 (lex_one_token): Update.
7833 * ada-lang.c (resolve): Add "parse_completion" parameter.
7834 (resolve_subexp): Likewise.
7835 (ada_resolve_function): Likewise.
7837 2019-04-04 Tom Tromey <tom@tromey.com>
7839 * parser-defs.h (struct parser_state) <start_arglist,
7840 end_arglist>: New methods.
7841 <arglist_len, m_funcall_chain>: New members.
7842 (arglist_len, start_arglist, end_arglist): Don't declare.
7843 * parse.c (arglist_len, funcall_chain): Remove global.
7844 (start_arglist, end_arglist): Remove functions.
7845 (parse_exp_in_context): Update.
7846 * p-exp.y: Update rules.
7847 * m2-exp.y: Update rules.
7848 * go-exp.y: Update rules.
7849 * f-exp.y: Update rules.
7850 * d-exp.y: Update rules.
7851 * c-exp.y: Update rules.
7853 2019-04-04 Tom Tromey <tom@tromey.com>
7855 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
7856 lex_operator, push_back>: New methods.
7858 (rust_parser::lex_hex, lex_escape): Rename and update.
7859 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
7860 (rust_parser::lex_operator): Rename and update.
7861 (rust_parser::lex_number, rustyylex, rustyyerror)
7862 (rust_lex_test_init, rust_lex_test_sequence)
7863 (rust_lex_test_push_back, rust_lex_tests): Update.
7864 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
7866 <lexptr, prev_lexptr>: New members.
7867 (lexptr, prev_lexptr): Don't declare.
7868 * parse.c (lexptr, prev_lexptr): Remove globals.
7869 (parse_exp_in_context): Update.
7870 * p-exp.y (yylex, yyerror): Update.
7871 * m2-exp.y (parse_number, yylex, yyerror): Update.
7872 * go-exp.y (lex_one_token, yyerror): Update.
7873 * f-exp.y (match_string_literal, yylex, yyerror): Update.
7874 * d-exp.y (lex_one_token, yyerror): Update.
7875 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
7876 (lex_one_token, yyerror): Update.
7877 * ada-lex.l (YY_INPUT): Update.
7878 (rewind_to_char): Update.
7879 * ada-exp.y (yyerror): Update.
7881 2019-04-04 Tom Tromey <tom@tromey.com>
7883 * rust-exp.y (rustyylex, rust_lex_tests): Update.
7884 * parser-defs.h (struct parser_state) <parser_state>: Add new
7886 <comma_terminates>: New member.
7887 (comma_terminates): Don't declare global.
7888 * parse.c (comma_terminates): Remove global.
7889 (parse_exp_in_context): Update.
7890 * p-exp.y (yylex): Update.
7891 * m2-exp.y (yylex): Update.
7892 * go-exp.y (lex_one_token): Update.
7893 * f-exp.y (yylex): Update.
7894 * d-exp.y (lex_one_token): Update.
7895 * c-exp.y (lex_one_token): Update.
7896 * ada-lex.l: Update.
7898 2019-04-04 Tom Tromey <tom@tromey.com>
7900 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
7901 (rustyylex, rust_lex_test_init, rust_lex_test_one)
7902 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
7903 * parser-defs.h (paren_depth): Don't declare.
7904 * parse.c (paren_depth): Remove global.
7905 (parse_exp_in_context): Update.
7906 * p-exp.y (paren_depth): New global.
7907 (pascal_parse): Initialize it.
7908 * m2-exp.y (paren_depth): New global.
7909 (m2_parse): Initialize it.
7910 * go-exp.y (paren_depth): New global.
7911 (go_parse): Initialize it.
7912 * f-exp.y (paren_depth): New global.
7913 (f_parse): Initialize it.
7914 * d-exp.y (paren_depth): New global.
7915 (d_parse): Initialize it.
7916 * c-exp.y (paren_depth): New global.
7917 (c_parse): Initialize it.
7918 * ada-lex.l (paren_depth): New global.
7919 (lexer_init): Initialize it.
7921 2019-04-04 Tom Tromey <tom@tromey.com>
7923 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
7924 (rust_parser::convert_ast_to_type)
7925 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
7926 * parser-defs.h (struct parser_state) <parser_state>: Add
7927 parameters. Initialize new members.
7928 <expression_context_block, expression_context_pc>: New members.
7929 * parse.c (expression_context_block, expression_context_pc):
7931 (parse_exp_in_context): Update.
7932 * p-exp.y: Update all rules.
7934 * m2-exp.y: Update all rules.
7936 * go-exp.y (yylex): Update.
7937 * f-exp.y (yylex): Update.
7938 * d-exp.y: Update all rules.
7940 * c-exp.y: Update all rules.
7941 (lex_one_token, classify_name, yylex, c_parse): Update.
7942 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
7944 2019-04-04 Tom Tromey <tom@tromey.com>
7946 * gdbarch.h, gdbarch.c: Rebuild.
7947 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
7949 (struct stap_parse_info): Replace "parser_state" with
7951 * parser-defs.h (struct expr_builder): Rename from "parser_state".
7952 (parser_state): New class.
7953 * parse.c (expr_builder): Rename.
7954 (expr_builder::release): Rename.
7955 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
7956 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
7957 (write_exp_elt_longcst, write_exp_elt_floatcst)
7958 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
7959 (write_exp_string_vector, write_exp_bitstring)
7960 (write_exp_msymbol, mark_struct_expression)
7961 (write_dollar_variable)
7962 (insert_type_address_space, increase_expout_size): Replace
7963 "parser_state" with "expr_builder".
7964 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
7965 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
7966 "parser_state" with "expr_builder".
7968 2019-04-04 Tom Tromey <tom@tromey.com>
7970 * rust-exp.y: Replace "parse_language" with method call.
7972 (yylex): Replace "parse_language" with method call.
7974 (yylex): Replace "parse_language" with method call.
7975 * go-exp.y (classify_name): Replace "parse_language" with method
7977 * f-exp.y (yylex): Replace "parse_language" with method call.
7978 * d-exp.y (lex_one_token): Replace "parse_language" with method
7981 (lex_one_token, classify_name, yylex): Replace "parse_language"
7983 * ada-exp.y (find_primitive_type, type_char)
7984 (type_system_address): Replace "parse_language" with method call.
7986 2019-04-04 Tom Tromey <tom@tromey.com>
7988 * rust-exp.y: Replace "parse_gdbarch" with method call.
7989 * parse.c (write_dollar_variable, insert_type_address_space):
7990 Replace "parse_gdbarch" with method call.
7991 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
7993 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
7995 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
7996 "parse_gdbarch" with method call.
7997 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
7999 * f-exp.y (parse_type, parse_f_type, yylex): Replace
8000 "parse_gdbarch" with method call.
8001 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
8002 "parse_gdbarch" with method call.
8003 * c-exp.y (parse_type, parse_number, classify_name): Replace
8004 "parse_gdbarch" with method call.
8005 * ada-lex.l: Replace "parse_gdbarch" with method call.
8006 * ada-exp.y (parse_type, find_primitive_type, type_char)
8007 (type_system_address): Replace "parse_gdbarch" with method call.
8009 2019-04-04 Tom Tromey <tom@tromey.com>
8011 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
8012 * stap-probe.c (stap_parse_argument): Update.
8013 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
8014 initial_size parameter.
8015 * rust-exp.y (rust_lex_tests): Update.
8016 * parse.c (parser_state): Update.
8017 (parse_exp_in_context): Update.
8018 * parser-defs.h (struct parser_state) <parser_state>: Remove
8019 "initial_size" parameter.
8021 2019-04-04 Tom Tromey <tom@tromey.com>
8023 * parser-defs.h (increase_expout_size): Don't declare.
8024 * parse.c (increase_expout_size): Now static.
8026 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
8028 * gnu-nat.c (gnu_nat_target::wait): Fix
8029 target_waitstatus_to_string call.
8031 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8033 * eval.c (evaluate_subexp_standard): Handle internal functions
8034 during Fortran function call handling.
8036 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8038 * NEWS: Mention new internal functions.
8039 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
8040 (read_base_type): Use dwarf2_init_complex_target_type.
8041 * value.c (creal_internal_fn): New function.
8042 (cimag_internal_fn): New function.
8043 (_initialize_values): Register new internal functions.
8045 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8047 * infrun.c (stop_all_threads): If debug_infrun, always
8048 trace the wait status after wait_one, using
8049 target_waitstatus_to_string and target_pid_to_str.
8050 (handle_inferior_event): Replace various trace of
8051 wait status kind by a single trace.
8052 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
8053 wait status kind image by target_waitstatus_to_string.
8054 * target/waitstatus.c (target_waitstatus_to_string): Fix
8057 2019-04-01 Tom Tromey <tromey@adacore.com>
8060 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
8062 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
8063 Pedro Alves <palves@redhat.com>
8065 * top.c (quit_force): Call 'finalize_values'.
8066 * value.c (finalize_values): New function.
8067 * value.h (finalize_values): Declare.
8069 2019-03-30 Eli Zaretskii <eliz@gnu.org>
8071 * NEWS: Announce $_gdb_major and $_gdb_minor.
8073 * top.c (init_gdb_version_vars): New function.
8074 (gdb_init): Call init_gdb_version_vars.
8076 2019-03-29 Tom Tromey <tromey@adacore.com>
8078 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
8079 help text. Remove dead code.
8081 2019-03-29 Keith Seitz <keiths@redhat.com>
8083 From Siddhesh Poyarekar:
8084 * f-lang.h (f77_get_upperbound): Return LONGEST.
8085 (f77_get_lowerbound): Likewise.
8086 * f-typeprint.c (f_type_print_varspec_suffix): Expand
8087 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
8089 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
8090 plongest to format print it.
8091 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
8092 (f77_get_upperbound): Likewise.
8093 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
8094 LOWER_BOUND to LONGEST.
8095 (f77_create_arrayprint_offset_tbl): Likewise.
8097 2019-03-29 Keith Seitz <keiths@redhat.com>
8099 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
8100 %s/pulongest for TYPE_LENGTH instead of %d in format
8102 * ada-typerint.c (ada_print_type): Likewise.
8103 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
8104 * compile/compile-c-support.c (generate_register_struct): Likewise.
8105 * gdbtypes.c (recursive_dump_type): Likewise.
8106 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
8107 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
8108 instead of %d in format strings.
8109 * riscv-tdep.c (riscv_type_alignment): Cast second argument
8110 to std::min to ULONGEST.
8111 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
8112 instead of %d in format strings.
8113 * tracepoint.c (info_scope_command): Likewise.
8114 * typeprint.c (print_offset_data::update)
8115 (print_offset_data::finish): Likewise.
8116 * xtensa-tdep.c (xtensa_store_return_value)
8117 (xtensa_push_dummy_call): Likewise.
8119 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
8121 * windows-nat.c (display_selector): Fixed format specifications
8124 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8126 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
8128 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
8130 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
8131 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
8132 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
8133 (nios2_linux_init_abi): Install it.
8135 2019-03-28 Alan Hayward <alan.hayward@arm.com>
8137 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
8139 2019-03-28 Alan Hayward <alan.hayward@arm.com>
8141 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
8143 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8144 Tom Tromey <tromey@adacore.com>
8146 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
8148 2019-03-26 Joel Brobecker <brobecker@adacore.com>
8150 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
8151 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
8152 method to compute the bounds of range types. Also print "[evaluated]"
8153 if the bounds' values come from a dynamic evaluation.
8155 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
8157 * cp-valprint.c (cp_print_value_fields): Don't print trailing
8158 whitespace when pretty printing is on.
8160 2019-03-26 Alan Hayward <alan.hayward@arm.com>
8162 * ppc-linux-nat.c: Add include.
8164 2019-03-26 Alan Hayward <alan.hayward@arm.com>
8166 * NEWS: Mention AArch64 Pointer Authentication.
8168 2019-03-26 Alan Hayward <alan.hayward@arm.com>
8170 * arm-linux-nat.c: Add include.
8172 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
8174 * source-cache.c (source_cache::get_source_lines): Re-read
8175 fullname after calling open_source_file.
8177 2019-03-25 John Baldwin <jhb@FreeBSD.org>
8179 * NEWS: Mention TLS support for FreeBSD.
8181 2019-03-25 Tom Tromey <tromey@adacore.com>
8183 * minsyms.c (BUNCH_SIZE): Update comment.
8184 (~minimal_symbol_reader): Remove old comment.
8185 (compact_minimal_symbols): Update comment.
8186 (minimal_symbol_reader::install): Remove old comment. Update
8189 2019-03-25 Alan Hayward <alan.hayward@arm.com>
8191 * s390-linux-nat.c: Add include.
8193 2019-03-25 Alan Hayward <alan.hayward@arm.com>
8195 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
8196 Call linux_get_hwcap.
8197 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
8199 (aarch64_linux_get_hwcap): Remove function.
8200 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
8202 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
8204 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
8205 * linux-tdep.c (linux_get_hwcap): Add function.
8206 (linux_get_hwcap2): Likewise.
8207 * linux-tdep.h (linux_get_hwcap): Add declaration.
8208 (linux_get_hwcap2): Likewise.
8209 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
8210 (ppc_linux_get_hwcap2): Likewise.
8211 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
8213 (ppc_linux_nat_target::insert_watchpoint): Likewise.
8214 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
8215 (ppc_linux_nat_target::read_description): Likewise.
8216 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
8217 * s390-linux-nat.c: Likewise.
8218 * s390-linux-tdep.c (s390_core_read_description): Likewise.
8220 2019-03-24 Tom Tromey <tom@tromey.com>
8222 * ada-lang.c (standard_lookup): Simplify initialization.
8223 (ada_lookup_symbol_nonlocal): Simplify return.
8224 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
8225 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
8226 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
8227 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
8229 * solib.c (solib_global_lookup): Simplify.
8230 * symtab.c (null_block_symbol): Remove.
8231 (symbol_cache_lookup): Simplify returns.
8232 (lookup_language_this): Simplify returns.
8233 (lookup_symbol_aux): Simplify return.
8234 (lookup_local_symbol): Simplify returns.
8235 (lookup_global_symbol_from_objfile): Simplify return.
8236 (lookup_symbol_in_objfile_symtabs)
8237 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
8238 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
8239 (lookup_static_symbol, lookup_global_symbol): Simplify return.
8240 * cp-namespace.c (cp_lookup_bare_symbol)
8241 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
8242 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
8243 (cp_lookup_nested_symbol): Don't use null_block_symbol.
8244 (cp_lookup_symbol_via_imports): Simplify initialization.
8245 (find_symbol_in_baseclass): Likewise.
8246 * symtab.h (null_block_symbol): Remove.
8247 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
8248 (d_lookup_nested_symbol, d_lookup_symbol_imports)
8249 (d_lookup_symbol_module): Likewise.
8250 (find_symbol_in_baseclass): Simplify initialization.
8252 2019-03-24 Tom Tromey <tom@tromey.com>
8254 * expression.h: Don't include symtab.h.
8255 (struct block): Forward declare.
8257 2019-03-24 Tom Tromey <tom@tromey.com>
8259 * c-exp.y (typebase): Remove casts.
8260 * gdbtypes.c (lookup_unsigned_typename, )
8261 (lookup_signed_typename): Remove cast.
8262 * eval.c (parse_to_comma_and_eval): Remove cast.
8263 * parse.c (write_dollar_variable): Remove cast.
8264 * block.h (struct block) <superblock>: Now const.
8265 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
8266 * psymtab.c (psym_map_matching_symbols): Make "block" const.
8267 (map_block): Make "block" const.
8268 * symfile.h (struct quick_symbol_functions)
8269 <map_matching_symbols>: Constify block argument to "callback".
8270 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
8272 (find_pc_sect_compunit_symtab): Make "b" const.
8273 (find_symbol_at_address): Likewise.
8274 (search_symbols): Likewise.
8275 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
8276 (dw2_debug_names_lookup_symbol): Likewise.
8277 (dw2_map_matching_symbols): Update.
8278 * p-valprint.c (pascal_val_print): Remove "block".
8279 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
8280 (aux_add_nonlocal_symbols): Make "block" const.
8281 (resolve_subexp): Remove cast.
8282 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
8284 (iterate_over_file_blocks): Likewise.
8285 * f-exp.y (%union) <bval>: Remove.
8286 * coffread.c (patch_opaque_types): Make "b" const.
8287 * spu-tdep.c (spu_catch_start): Make "block" const.
8288 * c-valprint.c (print_unpacked_pointer): Remove "block".
8289 * symmisc.c (dump_symtab_1): Make "b" const.
8290 (block_depth): Make "block" const.
8291 * d-exp.y (%union) <bval>: Remove.
8292 * cp-support.h (cp_lookup_rtti_type): Update.
8293 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
8294 * psymtab.c (psym_lookup_symbol): Make "block" const.
8295 (maintenance_check_psymtabs): Make "b" const.
8296 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
8297 (enumerate_locals, enumerate_args): Update.
8298 * python/py-symtab.c (stpy_global_block): Make "block" const.
8299 (stpy_static_block): Likewise.
8300 * inline-frame.c (block_starting_point_at): Make "new_block"
8302 * block.c (find_block_in_blockvector): Make return type const.
8303 (blockvector_for_pc_sect): Make "b" const.
8304 (find_block_in_blockvector): Make "b" const.
8306 2019-03-23 Tom Tromey <tom@tromey.com>
8308 * varobj.c (varobj_create): Update.
8309 * symfile.c (clear_symtab_users): Don't reset innermost_block.
8310 * printcmd.c (display_command, do_one_display): Don't reset
8312 * parser-defs.h (enum innermost_block_tracker_type): Move to
8314 (innermost_block): Update comment.
8315 * parse.c (parse_exp_1): Add tracker_types parameter.
8316 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
8317 tracker_types parameter. Reset innermost_block.
8318 (parse_exp_in_context): Remove.
8319 (parse_expression_for_completion): Update.
8320 * objfiles.c (~objfile): Don't reset expression_context_block or
8322 * expression.h (enum innermost_block_tracker_type): Move from
8324 (parse_exp_1): Add tracker_types parameter.
8325 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
8326 reset innermost_block.
8328 2019-03-23 Tom Tromey <tom@tromey.com>
8330 * objfiles.h: Include bcache.h.
8332 2019-03-23 Tom Tromey <tom@tromey.com>
8334 * linespec.c (get_current_search_block): Use
8335 scoped_restore_current_language.
8336 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
8338 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8339 Jiong Wang <jiong.wang@arm.com>
8341 * aarch64-linux-tdep.c
8342 (aarch64_linux_iterate_over_regset_sections): Check for pauth
8344 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
8346 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8347 Jiong Wang <jiong.wang@arm.com>
8349 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
8351 (aarch64_analyze_prologue_test): Add PACIASP test.
8352 (aarch64_prologue_prev_register): Unmask PC value.
8354 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8355 Jiong Wang <jiong.wang@arm.com>
8357 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
8358 (aarch64_dwarf2_prev_register): Unmask PC value.
8359 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
8360 (aarch64_execute_dwarf_cfa_vendor_op): Check for
8361 DW_CFA_AARCH64_negate_ra_state.
8362 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
8364 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8365 Jiong Wang <jiong.wang@arm.com>
8367 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
8369 (aarch64_pseudo_register_name): Likewise.
8370 (aarch64_pseudo_register_type): Likewise.
8371 (aarch64_pseudo_register_reggroup_p): Likewise.
8372 (aarch64_gdbarch_init): Add pauth registers.
8373 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
8374 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
8375 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
8376 (struct gdbarch_tdep): Add regnum for ra_state.
8378 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8379 Jiong Wang <jiong.wang@arm.com>
8381 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
8383 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8384 Jiong Wang <jiong.wang@arm.com>
8386 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
8388 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
8389 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
8390 (aarch64_gdbarch_init): Add puth registers.
8391 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
8392 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
8393 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
8395 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8396 Jiong Wang <jiong.wang@arm.com>
8398 * aarch64-linux-nat.c
8399 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
8400 * aarch64-linux-tdep.c
8401 (aarch64_linux_core_read_description): Likewise.
8402 (aarch64_linux_get_hwcap): New function.
8403 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
8404 (aarch64_linux_get_hwcap): New declaration.
8406 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8407 Jiong Wang <jiong.wang@arm.com>
8409 * aarch64-linux-nat.c
8410 (aarch64_linux_nat_target::read_description): Add pauth param.
8411 * aarch64-linux-tdep.c
8412 (aarch64_linux_core_read_description): Likewise.
8413 * aarch64-tdep.c (struct target_desc): Add in pauth.
8414 (aarch64_read_description): Add pauth param.
8415 (aarch64_gdbarch_init): Likewise.
8416 * aarch64-tdep.h (aarch64_read_description): Likewise.
8417 * arch/aarch64.c (aarch64_create_target_description): Likewise.
8418 * arch/aarch64.h (aarch64_create_target_description): Likewise.
8419 * features/Makefile: Add new files.
8420 * features/aarch64-pauth.c: New file.
8421 * features/aarch64-pauth.xml: New file.
8423 2019-03-20 Tom Tromey <tromey@adacore.com>
8425 * infrun.c (handle_inferior_event): Rename from
8426 handle_inferior_event_1. Create a scoped_value_mark.
8427 (handle_inferior_event): Remove.
8429 2019-03-19 Tom Tromey <tromey@adacore.com>
8431 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
8432 * infrun.h (print_stop_event): Add "displays" parameter.
8433 * infrun.c (print_stop_event): Add "displays" parameter.
8435 2019-03-19 Pedro Alves <palves@redhat.com>
8437 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
8438 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
8439 to -1. Fix TABs vs spaces.
8440 (tui_ui_out::tui_ui_out): Don't initialize fields here.
8441 * tui/tui-out.h (tui_ui_out) Add intro comments.
8442 <m_line, m_start_of_line>: In-class initialize, and add describing
8445 2019-03-18 Alan Hayward <alan.hayward@arm.com>
8447 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
8449 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
8451 2019-03-18 Pedro Alves <palves@redhat.com>
8452 Eli Zaretskii <eliz@gnu.org>
8454 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
8455 m_line and m_start_of_line.
8457 2019-03-18 Eli Zaretskii <eliz@gnu.org>
8459 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
8460 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
8461 it returns a newline. This fixes a regression in TU mode, whereby
8462 the next line is output on the same screen line as the user input.
8464 2019-03-18 Tom Tromey <tromey@adacore.com>
8466 * minsyms.c (minimal_symbol_reader::install): Remove call to
8469 2019-03-18 Pedro Alves <palves@redhat.com>
8471 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
8473 (apply_style): New, factored out from ...
8474 (apply_ansi_escape): ... this. Handle reverse video mode.
8475 (tui_set_reverse_mode): New function.
8476 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
8477 * tui/tui-winsource.c (tui_show_source_line): Use
8478 tui_set_reverse_mode instead of setting A_STANDOUT.
8479 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
8482 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
8484 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
8487 2019-03-18 Tom Tromey <tromey@adacore.com>
8489 * ada-lang.c (empty_array): Add "high" parameter.
8490 (ada_evaluate_subexp): Update.
8492 2019-03-17 Sergei Trofimovich <siarheit@google.com>
8494 * unittests/string_view-selftests.c: Define
8495 _initialize_string_view_selftests unconditionally.
8497 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
8500 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
8502 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
8505 * windows-nat.c (display_selector): Fix format specifiers.
8507 2019-03-17 Eli Zaretskii <eliz@gnu.org>
8509 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
8510 tui_refill_source_window instead of tui_refresh_win, to update the
8511 current execution line. This fixes redisplay of the current line
8512 when stepping through the code with "next" or "step".
8514 2019-03-16 Eli Zaretskii <eliz@gnu.org>
8516 * source-cache.c (source_cache::get_source_lines): Call
8517 find_source_lines to initialize s->nlines. This fixes vertical
8518 scrolling of TUI source window when the DOWN arrow is pressed.
8520 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8522 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
8523 linux-thread-db.c (_initialize_thread_db): Likewise.
8525 2019-03-16 Eli Zaretskii <eliz@gnu.org>
8527 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
8528 wclrtoeol in tui_show_source_line". This reverts changes made in
8529 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
8531 2019-03-15 Tom Tromey <tom@tromey.com>
8533 * symtab.h (struct minimal_symbol): Derive from
8534 general_symbol_info.
8535 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
8536 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8537 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8538 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8539 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
8540 (MSYMBOL_SEARCH_NAME): Update.
8541 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
8542 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
8543 * minsyms.c (minimal_symbol_reader::record_full): Update.
8545 2019-03-15 Tom Tromey <tom@tromey.com>
8547 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
8549 2019-03-15 Tom Tromey <tom@tromey.com>
8551 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
8553 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
8555 * minsyms.c (lookup_minimal_symbol_by_pc_section)
8556 (build_minimal_symbol_hash_tables)
8557 (minimal_symbol_reader::install): Update.
8559 2019-03-15 Tom Tromey <tom@tromey.com>
8561 * symtab.c (create_demangled_names_hash): Update.
8562 (symbol_set_names): Update.
8563 * objfiles.h (struct objfile_per_bfd_storage)
8564 <demangled_names_hash>: Now an htab_up.
8565 * objfiles.c (objfile_per_bfd_storage): Simplify.
8567 2019-03-15 Tom Tromey <tom@tromey.com>
8569 * objfiles.h (struct objfile_per_bfd_storage): Declare
8571 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
8573 (get_objfile_bfd_data): Use new. Don't initialize
8575 (free_objfile_per_bfd_storage): Remove.
8576 (objfile_bfd_data_free, objfile::~objfile): Use delete.
8578 2019-03-15 Tom Tromey <tom@tromey.com>
8580 * symfile.c (reread_symbols): Update.
8581 * objfiles.c (objfile::objfile): Update.
8582 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
8583 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
8585 (minimal_symbol_reader::install): Update.
8586 (terminate_minimal_symbol_table): Remove.
8587 * jit.c (jit_object_close_impl): Update.
8589 2019-03-15 Tom Tromey <tom@tromey.com>
8591 * minsyms.c (minimal_symbol_reader::record_full): Remove some
8594 2019-03-15 Tom Tromey <tom@tromey.com>
8596 * objfiles.h (struct objfile_per_bfd_storage)
8597 <demangled_hash_languages>: Now a bitset.
8598 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
8599 (lookup_minimal_symbol): Update.
8601 2019-03-15 Tom Tromey <tom@tromey.com>
8603 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
8604 Don't return the symbol.
8605 * coffread.c (record_minimal_symbol): Use record_full.
8607 2019-03-14 Eli Zaretskii <eliz@gnu.org>
8609 The MS-Windows port of ncurses fails to switch to a color pair if
8610 one or both of the colors are the implicit default colors. This
8611 change records the default colors when TUI is initialized, and
8612 then specifies them explicitly when a color pair uses the default
8613 colors. This allows color styling in TUI mode on MS-Windows.
8615 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
8617 (tui_initialize_io) [__MINGW32__]: Record the default terminal
8618 colors in ncurses_norm_attr.
8619 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
8620 "none", replace it with the default color recorded in
8623 2019-03-14 Tom Tromey <tromey@adacore.com>
8625 * source-cache.h (class source_cache) <get_source_lines>: Return
8627 * source-cache.c (source_cache::extract_lines): Handle case where
8628 first_pos==npos. Return std::string.
8629 (source_cache::get_source_lines): Update.
8631 2019-03-14 Tom Tromey <tromey@adacore.com>
8633 * NEWS: Add item for "style sources" commands.
8634 * source-cache.c (source_cache::get_source_lines): Check
8636 * cli/cli-style.c (source_styling): New global.
8637 (_initialize_cli_style): Add "style sources" commands.
8638 (show_style_sources): New function.
8639 * cli/cli-style.h (source_styling): Declare.
8641 2019-03-14 Pedro Alves <palves@redhat.com>
8642 Tom Tromey <tromey@adacore.com>
8644 * tui/tui-winsource.h (tui_refill_source_window): Declare.
8645 * tui/tui-winsource.c (tui_refill_source_window): New function,
8647 (tui_horizontal_source_scroll): ... here. Move some logic.
8648 * cli/cli-style.c (set_style_enabled): Notify new observable.
8649 * tui/tui-hooks.c (tui_redisplay_source): New function.
8650 (tui_attach_detach_observers): Attach or detach
8651 tui_redisplay_source.
8652 * observable.h (source_styling_changed): New observable.
8653 * observable.c: Define source_styling_changed observable.
8655 2019-03-13 Tom Tromey <tromey@adacore.com>
8657 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
8658 (i386_gnu_nat_target::store_registers): Update.
8659 * target-debug.h (target_debug_print_std_string): New macro.
8660 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
8661 * windows-tdep.c (display_one_tib): Update.
8662 * tui/tui-stack.c (tui_make_status_line): Update.
8663 * top.c (print_inferior_quit_action): Update.
8664 * thread.c (thr_try_catch_cmd): Update.
8665 (add_thread_with_info): Update.
8666 (thread_target_id_str): Update.
8667 (thr_try_catch_cmd): Update.
8668 (thread_command): Update.
8669 (thread_find_command): Update.
8670 * record-btrace.c (record_btrace_target::info_record)
8671 (record_btrace_resume_thread, record_btrace_target::resume)
8672 (record_btrace_cancel_resume, record_btrace_step_thread)
8673 (record_btrace_target::wait, record_btrace_target::wait)
8674 (record_btrace_target::wait, record_btrace_target::stop): Update.
8675 * progspace.c (print_program_space): Update.
8676 * process-stratum-target.c
8677 (process_stratum_target::thread_address_space): Update.
8678 * linux-fork.c (linux_fork_mourn_inferior)
8679 (detach_checkpoint_command, info_checkpoints_command)
8680 (linux_fork_context): Update.
8681 (linux_fork_detach): Update.
8682 (class scoped_switch_fork_info): Update.
8683 (delete_checkpoint_command): Update.
8684 * infrun.c (follow_fork_inferior): Update.
8685 (follow_fork_inferior): Update.
8686 (proceed_after_vfork_done): Update.
8687 (handle_vfork_child_exec_or_exit): Update.
8688 (follow_exec): Update.
8689 (displaced_step_prepare_throw): Update.
8690 (displaced_step_restore): Update.
8691 (start_step_over): Update.
8693 (clear_proceed_status_thread): Update.
8695 (print_target_wait_results): Update.
8696 (do_target_wait): Update.
8697 (context_switch): Update.
8698 (stop_all_threads): Update.
8699 (restart_threads): Update.
8700 (finish_step_over): Update.
8701 (handle_signal_stop): Update.
8702 (switch_back_to_stepped_thread): Update.
8703 (keep_going_pass_signal): Update.
8704 (print_exited_reason): Update.
8705 (normal_stop): Update.
8706 * inferior.c (inferior_pid_to_str): Change return type.
8707 (print_selected_inferior): Update.
8708 (add_inferior): Update.
8709 (detach_inferior): Update.
8710 * dummy-frame.c (fprint_dummy_frames): Update.
8711 * dcache.c (dcache_info_1): Update.
8712 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
8713 (btrace_fetch, btrace_clear): Update.
8714 * linux-tdep.c (linux_core_pid_to_str): Change return type.
8715 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
8717 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
8718 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
8719 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
8720 * gdbarch.c, gdbarch.h: Rebuild.
8721 * gdbarch.sh (core_pid_to_str): Change return type.
8722 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
8724 (windows_nat_target::pid_to_str): Change return type.
8725 (windows_delete_thread): Update.
8726 (windows_nat_target::attach): Update.
8727 (windows_nat_target::files_info): Update.
8728 * target-delegates.c: Rebuild.
8729 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
8731 (sol_thread_target::pid_to_str): Change return type.
8732 * remote.c (class remote_target) <pid_to_str>: Change return
8734 (remote_target::pid_to_str): Change return type.
8735 (extended_remote_target::attach, remote_target::remote_stop_ns)
8736 (remote_target::remote_notif_remove_queued_reply)
8737 (remote_target::push_stop_reply, remote_target::disable_btrace):
8739 (extended_remote_target::attach): Update.
8740 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
8742 (gdbsim_target::pid_to_str): Change return type.
8743 * ravenscar-thread.c (struct ravenscar_thread_target)
8744 <pid_to_str>: Change return type.
8745 (ravenscar_thread_target::pid_to_str): Change return type.
8746 * procfs.c (class procfs_target) <pid_to_str>: Change return
8748 (procfs_target::pid_to_str): Change return type.
8749 (procfs_target::attach): Update.
8750 (procfs_target::detach): Update.
8751 (procfs_target::fetch_registers): Update.
8752 (procfs_target::store_registers): Update.
8753 (procfs_target::wait): Update.
8754 (procfs_target::files_info): Update.
8755 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
8756 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
8758 (nto_procfs_target::pid_to_str): Change return type.
8759 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
8760 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
8762 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
8764 (attach_proc_task_lwp_callback, get_detach_signal)
8765 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
8766 (linux_nat_target::resume, wait_lwp, stop_callback)
8767 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
8768 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
8769 (linux_nat_wait_1, resume_stopped_resumed_lwps)
8770 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
8771 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
8773 (inf_ptrace_target::attach): Update.
8774 (inf_ptrace_target::files_info): Update.
8775 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
8777 (go32_nat_target::pid_to_str): Change return type.
8778 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
8779 (gnu_nat_target::wait): Update.
8780 (gnu_nat_target::wait): Update.
8781 (gnu_nat_target::resume): Update.
8782 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
8783 (fbsd_nat_target::wait): Update.
8784 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
8786 (darwin_nat_target::attach): Update.
8787 * corelow.c (class core_target) <pid_to_str>: Change return type.
8788 (core_target::pid_to_str): Change return type.
8789 * target.c (normal_pid_to_str): Change return type.
8790 (default_pid_to_str): Likewise.
8791 (target_pid_to_str): Change return type.
8792 (target_translate_tls_address): Update.
8793 (target_announce_detach): Update.
8794 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
8796 (bsd_uthread_target::pid_to_str): Change return type.
8797 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
8799 (bsd_kvm_target::pid_to_str): Change return type.
8800 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
8802 (aix_thread_target::pid_to_str): Change return type.
8803 * target.h (struct target_ops) <pid_to_str>: Change return type.
8804 (target_pid_to_str, normal_pid_to_str): Likewise.
8805 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
8807 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
8809 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
8811 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
8813 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
8815 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
8818 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
8820 * NEWS: Mention that the new default MI version is 3. Mention
8821 changes to the output of commands and events that deal with
8822 multi-location breakpoints.
8823 * breakpoint.c: Include "mi/mi-out.h".
8824 (print_one_breakpoint): Change output syntax if using MI version
8826 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
8828 (mi_multi_location_breakpoint_output_fixed): New.
8829 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
8830 (mi_cmd_fix_multi_location_breakpoint_output): New.
8831 (mi_multi_location_breakpoint_output_fixed): New.
8832 * mi/mi-cmds.c (mi_cmds): Register command
8833 -fix-multi-location-breakpoint-output.
8834 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
8837 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8839 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
8840 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
8841 instantiate mi_ui_out based on interpreter name.
8842 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
8843 * mi/mi-main.c (mi_load_progress): Likewise.
8845 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8847 * NEWS: Combine separate "New targets" sections for 8.3.
8849 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8851 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
8852 (ppcfbsd_init_abi): Install gdbarch
8853 "fetch_tls_load_module_address" and "get_thread_local_address"
8856 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8858 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
8859 (riscv_fbsd_init_abi): Install gdbarch
8860 "fetch_tls_load_module_address" and "get_thread_local_address"
8863 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8865 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
8866 (i386fbsd_init_abi): Install gdbarch
8867 "fetch_tls_load_module_address" and "get_thread_local_address"
8870 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8872 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
8873 (amd64fbsd_init_abi): Install gdbarch
8874 "fetch_tls_load_module_address" and "get_thread_local_address"
8877 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8879 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
8880 (struct fbsd_pspace_data): New type.
8881 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
8882 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
8883 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
8884 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
8885 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
8887 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8889 * gdbtypes.c (lookup_struct_elt): New function.
8890 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
8891 * gdbtypes.h (struct struct_elt): New type.
8892 (lookup_struct_elt): New prototype.
8894 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8896 * gdbtypes.c (lookup_struct_elt_type): Update comment and
8897 remove disabled code block.
8899 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8901 * gdbarch.sh (get_thread_local_address): New method.
8902 * gdbarch.h, gdbarch.c: Regenerate.
8903 * target.c (target_translate_tls_address): Use
8904 gdbarch_get_thread_local_address if present instead of
8905 target::get_thread_local_address.
8907 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8909 * target.h (target::get_thread_local_address): Update comment.
8911 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8913 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
8914 objfile->separate_debug_objfile_backlink if not NULL.
8916 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8918 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
8919 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
8920 (amd64bsd_store_inferior_registers): Likewise.
8921 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
8922 Enable segment base registers.
8923 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
8924 PT_GETFSBASE and PT_GETGSBASE.
8925 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
8927 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
8928 segment base registers.
8929 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
8931 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8933 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
8934 Update calls to i386_target_description to add 'segments'
8936 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
8937 add segment base registers.
8938 * arch/i386.c (i386_create_target_description): Add 'segments'
8939 parameter to enable segment base registers.
8940 * arch/i386.h (i386_create_target_description): Likewise.
8941 * features/i386/32bit-segments.xml: New file.
8942 * features/i386/32bit-segments.c: Generate.
8943 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
8944 call to i386_target_description to add 'segments' parameter.
8945 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
8946 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
8947 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
8948 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
8949 if feature is present.
8950 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
8951 Add 'segments' parameter to call to i386_target_description.
8952 (i386_target_description): Add 'segments' parameter to enable
8953 segment base registers.
8954 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
8955 to call to i386_target_description.
8956 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
8957 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
8958 Define I386_NUM_REGS.
8959 (i386_target_description): Add 'segments' parameter to enable
8960 segment base registers.
8962 2019-03-12 Eli Zaretskii <eliz@gnu.org>
8965 * source-cache.c: #undef open and close, to avoid unresolved
8966 externals during linking.
8968 2019-03-12 Tom Tromey <tromey@adacore.com>
8970 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
8971 const. Add initializers.
8972 (_initialize_remote): Don't initialize ptid globals.
8974 2019-03-12 Pedro Alves <palves@redhat.com>
8976 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
8978 2019-03-12 Pedro Alves <palves@redhat.com>
8980 * cp-name-parser.y (main): Remove unused 'len' variable.
8982 2019-03-12 Tom Tromey <tromey@adacore.com>
8984 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
8985 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
8987 2019-03-12 Tom Tromey <tromey@adacore.com>
8989 * linux-nat.c (iterate_over_lwps): Update.
8990 (stop_callback): Remove parameter.
8991 (stop_wait_callback, detach_callback, resume_set_callback)
8992 (select_singlestep_lwp_callback, set_ignore_sigint)
8993 (status_callback, resumed_callback, resume_clear_callback)
8994 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
8996 (linux_nat_target::detach, linux_nat_target::resume)
8997 (linux_stop_and_wait_all_lwps, select_event_lwp)
8998 (linux_nat_filter_event, linux_nat_wait_1)
8999 (linux_nat_target::kill, linux_nat_target::stop)
9000 (linux_nat_target::stop): Update.
9001 (linux_nat_resume_callback): Change type.
9002 (resume_stopped_resumed_lwps, count_events_callback)
9003 (select_event_lwp_callback): Likewise.
9004 (linux_stop_lwp, linux_nat_stop_lwp): Update.
9005 * arm-linux-nat.c (struct update_registers_data): Remove.
9006 (update_registers_callback): Change type.
9007 (arm_linux_insert_hw_breakpoint1): Update.
9008 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
9010 (x86_linux_dr_set_addr): Update.
9011 (x86_linux_dr_set_control): Update.
9012 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
9013 (iterate_over_lwps): Use gdb::function_view.
9014 * nat/aarch64-linux-hw-point.c (struct
9015 aarch64_dr_update_callback_param): Remove.
9016 (debug_reg_change_callback): Change type.
9017 (aarch64_notify_debug_reg_change): Update.
9018 * s390-linux-nat.c (s390_refresh_per_info): Update.
9020 2019-03-11 Tom Tromey <tromey@adacore.com>
9022 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
9023 redundant assignment to "this_cu".
9025 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9027 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
9029 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9031 * gdbtypes.c (rank_one_type_parm_set): New function extracted
9033 (rank_one_type): ... this.
9035 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9037 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
9039 (rank_one_type): ... this.
9041 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9043 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
9045 (rank_one_type): ... this.
9047 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9049 * gdbtypes.c (rank_one_type_parm_float): New function extracted
9051 (rank_one_type): ... this.
9053 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9055 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
9057 (rank_one_type): ... this.
9059 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9061 * gdbtypes.c (rank_one_type_parm_range): New function extracted
9063 (rank_one_type): ... this.
9065 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9067 * gdbtypes.c (rank_one_type_parm_char): New function extracted
9069 (rank_one_type): ... this.
9071 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9073 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
9075 (rank_one_type): ... this.
9077 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9079 * gdbtypes.c (rank_one_type_parm_int): New function extracted
9081 (rank_one_type): ... this.
9083 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9085 * gdbtypes.c (rank_one_type_parm_func): New function extracted
9087 (rank_one_type): ... this.
9089 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9091 * gdbtypes.c (rank_one_type_parm_array): New function extracted
9093 (rank_one_type): ... this.
9095 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9097 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
9099 (rank_one_type): ... this.
9101 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9103 * inferior.c (initialize_inferiors): Ensure 'help set/show print
9104 inferior-events' shows the example events.
9106 2019-03-08 Eli Zaretskii <eliz@gnu.org>
9108 Support styling on native MS-Windows console
9111 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
9112 on MS-Windows if $TERM is not defined.
9114 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
9116 * posix-hdep.c (gdb_console_fputs):
9117 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
9119 * ui-file.h (gdb_console_fputs): Add prototype.
9121 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
9122 back to fputs only if the former returns zero.
9124 2019-03-07 Tom Tromey <tom@tromey.com>
9126 * symmisc.c (print_symbol_bcache_statistics): Update.
9127 (print_objfile_statistics): Update.
9128 * symfile.c (allocate_symtab): Update.
9129 * stabsread.c: Don't include bcache.h.
9130 * psymtab.h (struct psymbol_bcache): Don't declare.
9131 (class psymtab_storage) <psymbol_cache>: Now a bcache.
9132 (psymbol_bcache_init, psymbol_bcache_free)
9133 (psymbol_bcache_get_bcache): Don't declare.
9134 * psymtab.c (struct psymbol_bcache): Remove.
9135 (psymtab_storage::psymtab_storage): Update.
9136 (psymtab_storage::~psymtab_storage): Update.
9137 (psymbol_bcache_init, psymbol_bcache_free)
9138 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
9139 (add_psymbol_to_bcache): Update.
9140 (allocate_psymtab): Update.
9141 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
9142 macro_cache>: No longer pointers.
9143 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
9144 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
9145 * macrotab.c (macro_bcache): Update.
9146 * macroexp.c: Don't include bcache.h.
9147 * gdbtypes.c (check_types_worklist): Update.
9148 (types_deeply_equal): Remove TRY/CATCH. Update.
9149 * elfread.c (elf_symtab_read): Update.
9150 * dwarf2read.c: Don't include bcache.h.
9151 * buildsym.c (buildsym_compunit::get_macro_table): Update.
9152 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
9153 (print_bcache_statistics, bcache_memory_used): Don't declare.
9154 (struct bcache): Move from bcache.c. Add constructor, destructor,
9155 methods. Rename all data members.
9156 * bcache.c (struct bcache): Move to bcache.h.
9157 (bcache::expand_hash_table): Rename from expand_hash_table.
9159 (bcache::insert): Rename from bcache_full.
9160 (bcache::compare): Rename from bcache_compare.
9161 (bcache_xmalloc): Remove.
9162 (bcache::~bcache): Rename from bcache_xfree.
9163 (bcache::print_statistics): Rename from print_bcache_statistics.
9164 (bcache::memory_used): Rename from bcache_memory_used.
9166 2019-03-07 Pedro Alves <palves@redhat.com>
9168 * infrun.c (normal_stop): Also check for
9169 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
9171 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
9173 * f-lang.c (value_from_host_double): Moved to...
9174 * value.c (value_from_host_double): ...here.
9175 * value.h (value_from_host_double): Declare.
9176 * guile/scm-math.c (vlscm_convert_typed_number): Use
9177 value_from_host_double.
9178 (vlscm_convert_number): Likewise.
9179 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
9180 * python/py-value.c (convert_value_from_python): Likewise.
9182 2019-03-06 Tom Tromey <tom@tromey.com>
9184 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
9186 2019-03-06 Tom Tromey <tom@tromey.com>
9188 * utils.h (free_current_contents): Don't declare.
9189 * utils.c (free_current_contents): Remove.
9191 2019-03-06 Tom Tromey <tom@tromey.com>
9193 * top.c (quit_force): Update.
9194 * main.c (captured_command_loop): Update.
9195 * common/new-op.c (operator new): Update.
9196 * common/common-exceptions.c (struct catcher)
9197 <save_cleanup_chain>: Remove member.
9198 (exceptions_state_mc_init): Update.
9199 (exception_try_scope_entry): Return nullptr.
9200 (exception_try_scope_exit, exception_rethrow)
9201 (throw_exception_sjlj, throw_exception_cxx): Update.
9202 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
9203 (all_cleanups, do_cleanups, discard_cleanups)
9204 (discard_final_cleanups, save_cleanups, save_final_cleanups)
9205 (restore_cleanups, restore_final_cleanups): Don't declare.
9206 (do_final_cleanups): Remove parameter.
9207 * common/cleanups.c (cleanup_chain, make_cleanup)
9208 (make_cleanup_dtor, all_cleanups, do_cleanups)
9209 (discard_my_cleanups, discard_cleanups)
9210 (discard_final_cleanups, save_my_cleanups, save_cleanups)
9211 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
9212 (null_cleanup): Remove.
9213 (do_final_cleanups): Remove parameter.
9215 2019-03-06 Tom Tromey <tom@tromey.com>
9217 * remote.c (remote_target::remote_parse_stop_reply): Use
9220 2019-03-06 Tom Tromey <tom@tromey.com>
9222 * stabsread.c (struct stabs_field_info): Rename from field_info.
9223 <list, fnlist>: Add initializers.
9224 <obstack>: New member.
9225 (read_member_functions, read_struct_fields, read_baseclasses):
9226 Allocate on obstack. Don't use cleanups.
9227 (read_one_struct_field, read_member_functions, read_struct_fields)
9228 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
9229 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
9230 (read_struct_type): Update.
9232 2019-03-06 Tom Tromey <tom@tromey.com>
9234 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
9235 * common/filestuff.h (make_cleanup_close): Don't declare.
9236 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
9239 2019-03-06 Tom Tromey <tom@tromey.com>
9241 * solib-aix.c: Use make_scope_exit.
9243 2019-03-06 Tom Tromey <tom@tromey.com>
9245 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
9246 Use make_scope_exit.
9248 2019-03-06 Tom Tromey <tom@tromey.com>
9250 * solib-svr4.c (disable_probes_interface): Remove parameter.
9251 (svr4_handle_solib_event): Use make_scope_exit.
9253 2019-03-06 Tom Tromey <tom@tromey.com>
9255 * remote.c (struct stop_reply_deleter): Remove.
9256 (stop_reply_up): Update.
9257 (struct stop_reply): Derive from notif_event. Don't typedef.
9258 <regcache>: Now a std::vector.
9259 (stop_reply_xfree): Remove.
9260 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
9261 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
9262 (remote_target::discard_pending_stop_replies): Use delete.
9263 (remote_target::remote_parse_stop_reply): Update.
9264 (remote_target::process_stop_reply): Update.
9265 * remote-notif.h (struct notif_event): Add virtual destructor.
9266 Remove "dtr" member.
9267 (struct notif_client) <alloc_event>: Return a unique_ptr.
9268 (notif_event_xfree): Don't declare.
9269 (notif_event_up): New typedef.
9270 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
9271 (notif_event_xfree, do_notif_event_xfree): Remove.
9272 (remote_notif_state_xfree): Update.
9274 2019-03-06 Tom Tromey <tom@tromey.com>
9276 * infrun.c (displaced_step_clear_cleanup): Now a
9277 forward_scope_exit type.
9278 (displaced_step_prepare_throw): Update.
9279 (displaced_step_fixup): Update.
9281 2019-03-06 Tom Tromey <tom@tromey.com>
9283 * inferior.h (class inferior): Update comment.
9284 * gdbthread.h (class thread_info): Update comment.
9286 2019-03-06 Joel Brobecker <brobecker@adacore.com>
9287 Tom Tromey <tom@tromey.com>
9289 * stabsread.h (struct stab_section_list): Remove.
9290 (coffstab_build_psymtabs): Update.
9291 * dbxread.c (symbuf_sections): Now a std::vector.
9292 (sect_idx): New global.
9293 (fill_symbuf): Update.
9294 (coffstab_build_psymtabs): Change type of stabsects parameter.
9296 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
9298 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
9299 (coff_locate_sections): Update.
9300 (coff_symfile_read): Remove cleanups. Update.
9301 (init_stringtab): Add storage parameter.
9302 (free_stringtab, free_stringtab_cleanup): Remove.
9303 (init_lineno): Add storage parameter.
9304 (free_linetab, free_linetab_cleanup): Remove.
9306 2019-03-06 Pedro Alves <palves@redhat.com>
9308 * linux-fork.c (fork_info::clobber_regs): Delete.
9309 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
9310 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
9312 (scoped_switch_fork_info::scoped_switch_fork_info)
9313 (checkpoint_command, linux_fork_context): Adjust
9314 fork_save_infrun_state calls.
9316 2019-03-06 Pedro Alves <palves@redhat.com>
9318 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
9319 (inf_has_multiple_threads): Return 'bool' and rewrite using
9320 inferior_info::threads().
9322 2019-03-06 Pedro Alves <palves@redhat.com>
9324 * linux-fork.c: Include <list>.
9325 (fork_list): Now a std::list instance.
9326 (fork_info): Add ctor, dtor, and in-class initialize all fields.
9327 (forks_exist_p, find_last_fork): Adjust.
9331 (free_fork): Delete, folded into fork_info::~fork_info().
9332 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
9334 (init_fork_list): Delete.
9335 (linux_fork_killall, linux_fork_mourn_inferior)
9336 (linux_fork_detach, info_checkpoints_command): Adjust.
9337 (_initialize_linux_fork): No longer call init_fork_list.
9339 2019-03-06 Pedro Alves <palves@redhat.com>
9341 * linux-fork.c (new_fork): New, split out of ...
9342 (add_fork): ... this. Return void. Move "first fork" special
9343 case from here, to ...
9344 (checkpoint_command): ... here.
9345 * linux-linux.h (add_fork): Return void.
9347 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9349 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
9351 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9352 Chris January <chris.january@arm.com>
9353 David Lecomber <david.lecomber@arm.com>
9355 * f-exp.y: New token, UNOP_INTRINSIC.
9356 (exp): New pattern using UNOP_INTRINSIC token.
9357 (f77_keywords): Add 'abs' keyword.
9358 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
9359 (value_from_host_double): New function.
9360 (evaluate_subexp_f): Support UNOP_ABS.
9362 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9364 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
9367 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9369 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
9370 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
9371 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
9373 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9375 * f-exp.y (convert_to_kind_type): Handle more type kinds.
9377 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9378 Chris January <chris.january@arm.com>
9380 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
9381 * f-exp.y: Define 'KIND' token.
9382 (exp): New pattern for KIND expressions.
9383 (ptype): Handle types with a kind extension.
9384 (direct_abs_decl): Extend to spot kind extensions.
9385 (f77_keywords): Add 'kind' to the list.
9386 (push_kind_type): New function.
9387 (convert_to_kind_type): New function.
9388 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
9389 * parse.c (operator_length_standard): Likewise.
9390 * parser-defs.h (enum type_pieces): Add tp_kind.
9391 * std-operator.def: Add UNOP_KIND.
9393 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9395 * f-exp.y (f_parse): Set yydebug.
9397 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9399 * f-lang.c (evaluate_subexp_f): New function.
9400 (exp_descriptor_f): New global.
9401 (f_language_defn): Use exp_descriptor_f instead of
9402 exp_descriptor_standard.
9404 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9406 * f-exp.y (struct token): Add comments.
9407 (dot_ops): Remove uppercase versions and the end marker.
9408 (f77_keywords): Likewise.
9409 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
9410 entries in the dot_ops array are case insensitive, and use
9411 strncasecmp to compare strings. Also some whitespace cleanup in
9412 this area. Similar for the f77_keywords array, except entries in
9413 this list might be case sensitive.
9415 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9417 * f-exp.y (struct f77_boolean_val): Add comments.
9418 (boolean_values): Remove uppercase versions, and end marker.
9419 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
9420 and use strncasecmp to achieve case insensitivity. Additionally,
9421 perform whitespace cleanup around this code.
9423 2019-03-06 Tom Tromey <tromey@adacore.com>
9425 * remote-sim.c (gdbsim_target_open): Use result of
9428 2019-03-06 Richard Bunt <richard.bunt@arm.com>
9429 Dirk Schubert <dirk.schubert@arm.com>
9430 Chris January <chris.january@arm.com>
9432 * eval.c (evaluate_subexp_standard): Call Fortran argument
9434 * f-lang.c (struct value): A value which can be passed into a
9435 Fortran function call.
9436 (fortran_argument_convert): Wrap Fortran arguments in a pointer
9438 (struct type): Value ready for a Fortran function call.
9439 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
9441 * f-lang.h (fortran_argument_convert): Declaration.
9442 (fortran_preserve_arg_pointer): Declaration.
9443 * infcall.c (value_arg_coerce): Call Fortran argument logic.
9445 2019-03-05 Tom Tromey <tromey@adacore.com>
9447 * python/py-prettyprint.c (print_string_repr): Remove #if.
9448 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
9450 2019-03-05 Tom Tromey <tromey@adacore.com>
9452 * target.c (the_dummy_target): Move later. Change type to
9454 (initialize_targets): Don't initialize the_dummy_target.
9456 2019-03-05 Tom Tromey <tromey@adacore.com>
9458 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
9459 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
9461 2019-03-05 Tom Tromey <tromey@adacore.com>
9463 * windows-nat.c (windows_nat_target::attach)
9464 (windows_nat_target::detach): Don't call gdb_flush.
9465 * valprint.c (generic_val_print, val_print, val_print_string):
9466 Don't call gdb_flush.
9467 * utils.c (defaulted_query): Don't call gdb_flush.
9468 * typeprint.c (print_type_scalar): Don't call gdb_flush.
9469 * target.c (target_announce_detach): Don't call gdb_flush.
9470 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
9471 * remote.c (extended_remote_target::attach): Don't call
9473 * procfs.c (procfs_target::detach): Don't call gdb_flush.
9474 * printcmd.c (do_examine): Don't call gdb_flush.
9475 (info_display_command): Don't call gdb_flush.
9476 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
9477 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
9478 * memattr.c (info_mem_command): Don't call gdb_flush.
9479 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
9480 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
9481 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
9482 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
9483 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
9484 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
9485 (gnu_nat_target::detach): Don't call gdb_flush.
9486 * f-valprint.c (f_val_print): Don't call gdb_flush.
9487 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
9488 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
9489 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
9491 * c-valprint.c (c_val_print): Don't call gdb_flush.
9492 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
9494 2019-03-05 Tom Tromey <tromey@adacore.com>
9496 * varobj.c (update_dynamic_varobj_children): Update.
9497 (install_default_visualizer): Use reset, not release.
9498 * value.c (set_internalvar): Update.
9499 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
9500 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
9501 ATTRIBUTE_UNUSED_RESULT.
9503 2019-03-05 Tom Tromey <tromey@adacore.com>
9505 * remote.c (class scoped_remote_fd) <release>: Add
9506 ATTRIBUTE_UNUSED_RESULT.
9508 2019-03-05 Tom Tromey <tromey@adacore.com>
9510 * macroexp.c (struct macro_buffer) <release>: Add
9511 ATTRIBUTE_UNUSED_RESULT.
9513 2019-03-05 Tom Tromey <tromey@adacore.com>
9515 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
9516 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
9517 ATTRIBUTE_UNUSED_RESULT.
9519 2019-03-05 Tom Tromey <tromey@adacore.com>
9521 * common/scoped_fd.h (class scoped_fd) <release>: Add
9522 ATTRIBUTE_UNUSED_RESULT.
9524 2019-03-05 Tom Tromey <tromey@adacore.com>
9526 * parser-defs.h (struct parser_state) <release>: Add
9527 ATTRIBUTE_UNUSED_RESULT.
9529 2019-03-05 Tom Tromey <tromey@adacore.com>
9531 * utils.h (class gdb_argv) <release>: Add
9532 ATTRIBUTE_UNUSED_RESULT.
9533 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
9535 2019-03-02 Eli Zaretskii <eliz@gnu.org>
9537 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
9538 for-loop range, to avoid compiler warnings.
9540 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
9541 avoid compiler warnings about unused variables.
9543 * NEWS: Mention end of support for native debugging on MS-Windows
9547 * common/netstuff.c:
9548 * gdbserver/gdbreplay.c
9549 * gdbserver/remote-utils.c:
9551 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
9552 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
9553 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
9554 'getaddrinfo' and 'freeaddrinfo' were not available before
9555 Windows XP, and mingw.org's MinGW headers by default define
9556 _WIN32_WINNT to 0x500.
9558 2019-03-01 Gary Benson <gbenson@redhat.com>
9560 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
9562 2019-02-28 Brian Vandenberg <phantall@gmail.com>
9563 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9566 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
9567 set_sigint_trap, clear_sigint_trap.
9569 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9571 * target.c (target_detach): Clear the regcache and the
9574 2019-02-27 Pedro Alves <palves@redhat.com>
9576 * utils.c (set_screen_size): When we cap the height/width sizes,
9577 tweak the corresponding command variable to show "unlimited":
9579 2019-02-27 Saagar Jha <saagar@saagarjha.com>
9580 Pedro Alves <palves@redhat.com>
9582 * utils.c (set_screen_size): Reduce "infinite" rows and columns
9583 before calling rl_set_screen_size.
9585 2019-02-27 Tom Tromey <tromey@adacore.com>
9587 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
9589 * python/py-value.c: Remove Python 2.4 workaround.
9590 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
9592 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
9593 Python 2.4 workaround.
9594 * python/python-internal.h: Remove Python 2.4 comment.
9595 (Py_ssize_t): Don't define.
9596 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
9597 (gdb_Py_DECREF): Remove Python 2.4 workaround.
9598 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
9599 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
9600 * python/python.c (do_start_initialization): Remove Python 2.4
9602 * python/py-prettyprint.c (class dummy_python_frame): Remove.
9603 (print_children): Remove Python 2.4 workaround.
9604 * python/py-inferior.c (buffer_procs): Remove Python 2.4
9606 (CHARBUFFERPROC_NAME): Remove.
9607 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
9608 Python 2.4 workaround.
9610 2019-02-27 Kevin Buettner <kevinb@redhat.com>
9612 * NEWS: Note minimum Python version.
9614 2019-02-27 Kevin Buettner <kevinb@redhat.com>
9616 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
9617 code from these functions. Remove corresponding ifdefs. Use
9618 Py_buffer_up instead of explicit calls to PyBuffer_Release.
9619 Remove gotos and target of gotos.
9620 (infpy_search_memory): Likewise.
9622 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9624 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
9625 (hppa_gdbarch_init): Don't register deleted functions with
9628 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9630 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
9631 (h8300_unwind_sp): Delete.
9632 (h8300_dummy_id): Delete.
9633 (h8300_gdbarch_init): Don't register deleted functions with
9636 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9638 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
9639 (ft32_unwind_pc): Delete.
9640 (ft32_unwind_sp): Delete.
9641 (ft32_gdbarch_init): Don't register deleted functions with
9644 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9646 * gdb/frv-tdep.c (frv_dummy_id): Delete.
9647 (frv_unwind_pc): Delete.
9648 (frv_unwind_sp): Delete.
9649 (frv_gdbarch_init): Don't register deleted functions with
9652 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9654 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
9655 (riscv_unwind_pc): Delete.
9656 (riscv_unwind_sp): Delete.
9657 (riscv_gdbarch_init): Don't register deleted functions with
9660 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9662 * gdb/csky-tdep.c (csky_dummy_id): Delete.
9663 (csky_unwind_pc): Delete.
9664 (csky_unwind_sp): Delete.
9665 (csky_gdbarch_init): Don't register deleted functions with
9668 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9670 * gdb/cris-tdep.c (cris_dummy_id): Delete.
9671 (cris_unwind_pc): Delete.
9672 (cris_unwind_sp): Delete.
9673 (cris_gdbarch_init): Don't register deleted functions with
9676 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9678 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
9679 (bfin_unwind_pc): Delete.
9680 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
9682 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9684 * gdb/arm-tdep.c (arm_dummy_id): Delete.
9685 (arm_unwind_pc): Delete.
9686 (arm_unwind_sp): Delete.
9687 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
9689 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9691 * gdb/arc-tdep.c (arc_dummy_id): Delete.
9692 (arc_unwind_pc): Delete.
9693 (arc_unwind_sp): Delete.
9694 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
9696 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9698 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
9699 (alpha_unwind_pc): Delete.
9700 (alpha_gdbarch_init): Don't register deleted functions with
9703 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9705 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
9706 (aarch64_unwind_pc): Delete.
9707 (aarch64_unwind_sp): Delete.
9708 (aarch64_gdbarch_init): Don't register deleted functions with
9711 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9713 * gdbtypes.c (type_align): Don't consider static members when
9714 computing structure alignment.
9716 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9718 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
9719 return 0 for other types.
9720 * arch-utils.c (default_type_align): Always return 0.
9721 * gdbarch.h: Regenerate.
9722 * gdbarch.sh (type_align): Extend comment.
9723 * gdbtypes.c (type_align): Add additional comments, always call
9724 gdbarch_type_align before applying the default rules.
9725 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
9726 generic code will then apply a suitable default.
9727 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
9728 types, return 0 for other types.
9730 2019-02-27 Joel Brobecker <brobecker@adacore.com>
9732 * NEWS: Create a new section for the next release branch.
9733 Rename the section of the current branch, now that it has
9736 2019-02-27 Joel Brobecker <brobecker@adacore.com>
9738 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
9739 * version.in: Bump version to 8.3.50.DATE-git.
9741 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
9743 * aix-thread.c (ptid_cmp): Remove unused variable.
9744 (get_signaled_thread): Likewise.
9745 (store_regs_user_thread): Likewise.
9746 (store_regs_kernel_thread): Likewise.
9747 (fetch_regs_kernel_thread): Remove shadowed variable.
9749 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
9751 * features/riscv/32bit-cpu.xml: Add register numbers.
9752 * features/riscv/32bit-fpu.c: Regenerate.
9753 * features/riscv/32bit-fpu.xml: Add register numbers.
9754 * features/riscv/64bit-cpu.xml: Add register numbers.
9755 * features/riscv/64bit-fpu.c: Regenerate.
9756 * features/riscv/64bit-fpu.xml: Add register numbers.
9758 2019-02-26 Kevin Buettner <kevinb@redhat.com>
9760 * NEWS: Mention two argument form of gdb.Value constructor.
9761 * python/py-value.c (convert_buffer_and_type_to_value): New
9763 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
9764 Add support for handling an optional second argument. Call
9765 convert_buffer_and_type_to_value as appropriate.
9766 * python/python-internal.h (Py_buffer_deleter): New struct.
9767 (Py_buffer_up): New typedef.
9769 2019-02-25 John Baldwin <jhb@FreeBSD.org>
9771 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
9772 instead of releasing ownership.
9774 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
9776 * dwarf2read.c (open_and_init_dwp_file): Call
9777 elf_numsections instead of bfd_count_sections to initialize
9778 dwp_file->num_sections.
9780 2019-02-25 Tom Tromey <tromey@adacore.com>
9782 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
9784 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
9786 * gcore.in: Add '--readnever' option when invoking GDB.
9788 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
9790 * MAINTAINERS: Update my email address.
9792 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
9794 * build-id.c (build_id_to_debug_bfd_1): New function.
9795 (build_id_to_debug_bfd): Look for separate debug file in
9798 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
9800 * gdbarch.sh: Update the copyright year range that is placed into
9803 2019-02-22 Keith Seitz <keiths@redhat.com>
9806 * linespec.c (create_sals_line_offset): Search for the default
9807 symtab's filename instead of its fullname.
9809 2019-02-21 Alan Hayward <alan.hayward@arm.com>
9811 * NEWS: Update style defaults.
9813 2019-02-21 Alan Hayward <alan.hayward@arm.com>
9815 * main.c (captured_main_1): Disable styling in batch mode.
9817 2019-02-20 Tom Tromey <tom@tromey.com>
9819 * symtab.c (symtab_symbol_info): Fix typos.
9821 2019-02-20 Tom Tromey <tromey@adacore.com>
9823 * findcmd.c (_initialize_mem_search): Use upper case for
9824 metasyntactic variables.
9826 2019-02-20 Alan Hayward <alan.hayward@arm.com>
9828 * aarch64-tdep.c (aarch64_add_reggroups): New function.
9829 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
9831 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
9833 * top.h (source_file_name): Change to std::string.
9834 * top.c (source_file_name): Likewise.
9835 (command_line_input): Adjust.
9836 * cli/cli-script.c (script_from_file): Adjust.
9838 2019-02-19 Tom Tromey <tromey@adacore.com>
9840 * ravenscar-thread.c
9841 (ravenscar_thread_target::update_thread_list): Don't call
9842 ada_build_task_list.
9843 * ada-lang.h (ada_build_task_list): Don't declare.
9844 * ada-tasks.c (struct ada_tasks_inferior_data)
9845 <task_list_valid_p>: Now bool.
9846 (read_known_tasks, ada_task_list_changed)
9847 (ada_tasks_invalidate_inferior_data): Update.
9848 (read_known_tasks_array): Return bool.
9849 (read_known_tasks_list): Likewise.
9850 (read_known_tasks): Return void.
9851 (ada_build_task_list): Now static.
9853 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
9855 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
9856 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
9858 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9860 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
9861 variant for ada_tasks_pspace_data_handle and
9862 ada_tasks_inferior_data_handle.
9863 (ada_tasks_pspace_data_cleanup): New function.
9864 (ada_tasks_inferior_data_cleanup): New function.
9866 2019-02-17 Tom Tromey <tom@tromey.com>
9868 * macrotab.h (macro_source_fullname): Return a std::string.
9869 * macrotab.c (macro_include, check_for_redefinition)
9870 (macro_undef, macro_lookup_definition, foreach_macro)
9871 (foreach_macro_in_scope): Update.
9872 (macro_source_fullname): Return a std::string.
9873 * macrocmd.c (show_pp_source_pos): Update.
9875 2019-02-17 Tom Tromey <tom@tromey.com>
9877 * macrocmd.c (show_pp_source_pos): Style the file names.
9879 2019-02-17 Tom Tromey <tom@tromey.com>
9882 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
9884 2019-02-17 Tom Tromey <tom@tromey.com>
9886 * ada-lang.c (user_select_syms): Use filtered printing.
9887 * utils.c (wrap_style): New global.
9888 (desired_style): Remove.
9889 (emit_style_escape): Add stream parameter.
9890 (set_output_style, reset_terminal_style, prompt_for_continue):
9892 (flush_wrap_buffer): Only flush gdb_stdout.
9893 (wrap_here): Set wrap_style.
9894 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
9895 treat escape sequences as a character. Change when wrap buffer is
9897 (fputs_styled): Do not set the output style when the default is
9899 * ui-style.h (struct ui_file_style) <is_default>: New method.
9900 * source.c (print_source_lines_base): Emit escape sequences in one
9903 2019-02-17 Joel Brobecker <brobecker@adacore.com>
9905 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
9906 integers and enumeration types.
9908 2019-02-17 Joel Brobecker <brobecker@adacore.com>
9910 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
9911 instead of lookup_symbol_in_language
9912 (do_exact_match): New function.
9913 (ada_get_symbol_name_matcher): Return do_exact_match when
9914 doing a verbatim match.
9916 2019-02-15 Tom Tromey <tromey@adacore.com>
9918 * ravenscar-thread.c (ravenscar_thread_target::resume)
9919 (ravenscar_thread_target::wait): Special case wildcard requests.
9921 2019-02-15 Tom Tromey <tromey@adacore.com>
9923 * ravenscar-thread.c (base_ptid): Remove.
9924 (struct ravenscar_thread_target) <close>: New method.
9925 <m_base_ptid>: New member.
9926 <update_inferior_ptid, active_task, task_is_currently_active,
9927 runtime_initialized>: Declare methods.
9928 <ravenscar_thread_target>: Add constructor.
9929 (ravenscar_thread_target::task_is_currently_active)
9930 (ravenscar_thread_target::update_inferior_ptid)
9931 (ravenscar_runtime_initialized): Rename. Now methods.
9932 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
9933 (ravenscar_thread_target::update_thread_list): Update.
9934 (ravenscar_thread_target::active_task): Now method.
9935 (ravenscar_thread_target::store_registers)
9936 (ravenscar_thread_target::prepare_to_store)
9937 (ravenscar_thread_target::prepare_to_store)
9938 (ravenscar_thread_target::mourn_inferior): Update.
9939 (ravenscar_inferior_created): Use "new" to create target.
9940 (ravenscar_thread_target::get_ada_task_ptid): Update.
9941 (_initialize_ravenscar): Don't initialize base_ptid.
9942 (ravenscar_ops): Remove global.
9944 2019-02-15 Tom Tromey <tromey@adacore.com>
9946 * target.h (push_target): Declare new overload.
9947 * target.c (push_target): New overload, taking an rvalue reference.
9948 * remote.c (remote_target::open_1): Use push_target overload.
9949 * corelow.c (core_target_open): Use push_target overload.
9951 2019-02-15 Tom Tromey <tromey@adacore.com>
9953 * ravenscar-thread.c (is_ravenscar_task)
9954 (ravenscar_task_is_currently_active): Return bool.
9955 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
9956 (_initialize_ravenscar): Remove "(void)".
9957 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
9960 2019-02-15 Tom Tromey <tromey@adacore.com>
9962 * ravenscar-thread.c (ravenscar_runtime_initializer)
9963 (has_ravenscar_runtime, get_running_thread_id)
9964 (ravenscar_thread_target::resume): Fix indentation.
9966 2019-02-15 Tom Tromey <tromey@adacore.com>
9968 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
9969 from ravenscar_arch_ops.
9970 (sparc_ravenscar_ops::fetch_registers)
9971 (sparc_ravenscar_ops::store_registers): Now methods.
9972 (sparc_ravenscar_prepare_to_store): Remove.
9973 (sparc_ravenscar_ops): Redefine.
9974 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
9975 methods and destructor. Remove members.
9976 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
9977 (ravenscar_thread_target::store_registers)
9978 (ravenscar_thread_target::prepare_to_store): Update.
9979 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
9981 (struct ppc_ravenscar_powerpc_ops): Derive from
9983 (ppc_ravenscar_powerpc_ops::fetch_registers)
9984 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
9985 (ppc_ravenscar_powerpc_ops): Redefine.
9986 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
9987 (ppc_ravenscar_e500_ops::fetch_registers)
9988 (ppc_ravenscar_e500_ops::store_registers): Now methods.
9989 (ppc_ravenscar_e500_ops): Redefine.
9990 * aarch64-ravenscar-thread.c
9991 (aarch64_ravenscar_generic_prepare_to_store): Remove.
9992 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
9993 (aarch64_ravenscar_fetch_registers)
9994 (aarch64_ravenscar_store_registers): Now methods.
9995 (aarch64_ravenscar_ops): Redefine.
9997 2019-02-15 Tom Tromey <tromey@adacore.com>
9999 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
10000 (ravenscar_thread_target::stopped_by_hw_breakpoint)
10001 (ravenscar_thread_target::stopped_by_watchpoint)
10002 (ravenscar_thread_target::stopped_data_address)
10003 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
10005 2019-02-15 Tom Tromey <tromey@adacore.com>
10007 * ravenscar-thread.c: Fix some typos.
10009 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10010 Tom Tromey <tromey@adacore.com>
10012 * ada-lang.c (ada_exception_sal): Change addr_string to a
10014 (create_ada_exception_catchpoint): Update.
10016 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10017 Tom Tromey <tromey@adacore.com>
10019 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
10020 (bp_location_ops): Remove.
10021 (base_breakpoint_allocate_location): Update.
10022 (free_bp_location): Update.
10023 * ada-lang.c (class ada_catchpoint_location)
10024 <ada_catchpoint_location>: Remove ops parameter.
10025 (ada_catchpoint_location_dtor): Remove.
10026 (ada_catchpoint_location_ops): Remove.
10027 (allocate_location_exception): Update.
10028 * breakpoint.h (struct bp_location_ops): Remove.
10029 (class bp_location) <bp_location>: Remove bp_location_ops
10031 <~bp_location>: Add destructor.
10034 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10035 Pedro Alves <palves@redhat.com>
10037 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
10040 2019-02-14 David Michael <fedora.dm0@gmail.com>
10041 Samuel Thibault <samuel.thibault@gnu.org>
10042 Thomas Schwinge <thomas@codesourcery.com>
10044 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
10045 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
10047 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10049 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
10050 (check_empty): Use "const char *".
10052 * gnu-nat.c (gnu_nat_target::detach): Instead of
10053 'detach_inferior (pid)' call
10054 'detach_inferior (find_inferior_pid (pid))'.
10056 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
10057 'nat/fork-inferior.o'.
10058 * gnu-nat.c: #include "nat/fork-inferior.h".
10060 * gnu-nat.c (gnu_nat_target::detach): Instead of
10061 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
10062 * gnu-nat.h: #include "inf-child.h".
10063 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
10064 'i386_gnu_nat_target::fetch_registers'.
10065 (gnu_store_registers): Rename/move to
10066 'i386_gnu_nat_target::store_registers'.
10068 * config/i386/nm-i386gnu.h: Don't "#include" any files.
10069 * gnu-nat.h (mach_thread_info): New function.
10070 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
10072 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
10074 2019-02-14 Frederic Konrad <konrad@adacore.com>
10076 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
10078 2019-02-14 Joel Brobecker <brobecker@adacore.com>
10080 * windows-nat.c (windows_add_thread): Add new parameter
10081 "main_thread_p" with default value set to false. Update
10082 function documentation as well as all callers.
10083 (windows_delete_thread): Likewise.
10084 (fake_create_process): Update call to windows_add_thread.
10085 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
10086 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
10087 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
10088 call to windows_delete_thread.
10090 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
10092 * MAINTAINERS: Add Andrew Burgess as global maintainer.
10094 2019-02-12 John Baldwin <jhb@FreeBSD.org>
10096 * symfile.c (find_separate_debug_file): Use canonical path of
10097 sysroot with child_path instead of gdb_sysroot if it is valid.
10099 2019-02-12 John Baldwin <jhb@FreeBSD.org>
10101 * symfile.c (find_separate_debug_file): Use child_path to
10102 determine if an object file is under a sysroot.
10104 2019-02-12 John Baldwin <jhb@FreeBSD.org>
10106 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10107 unittests/child-path-selftests.c.
10108 * common/pathstuff.c (child_path): New function.
10109 * common/pathstuff.h (child_path): New prototype.
10110 * unittests/child-path-selftests.c: New file.
10112 2019-02-12 John Baldwin <jhb@FreeBSD.org>
10114 * symfile.c (find_separate_debug_file): Look for separate debug
10115 files in debug directories under the sysroot.
10117 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10119 * symtab.h (struct minimal_symbol data_p): New const method.
10120 (struct minimal_symbol text_p): Likewise.
10121 * symtab.c (output_source_filename): Use file name style
10122 to print file name.
10123 (print_symbol_info): Likewise.
10124 (print_msymbol_info): Use address style to print addresses.
10125 Use function name style to print executable text symbols.
10126 (expand_symtab_containing_pc): Use data_p.
10127 (find_pc_sect_compunit_symtab): Likewise.
10129 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10131 * breakpoint.c (describe_other_breakpoints): Use address style
10132 to print addresses.
10133 (say_where): Likewise.
10135 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10137 * ada-typeprint.c (print_func_type): Print function name
10138 style to print function name.
10139 * c-typeprint.c (c_print_type_1): Likewise.
10141 2019-02-11 Alan Hayward <alan.hayward@arm.com>
10143 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
10146 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10148 * c-exp.y (direct_abs_decl): Use emplace_back to record the
10151 2019-02-10 Joel Brobecker <brobecker@adacore.com>
10153 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
10154 TYPE_CODE_REF types.
10156 2019-02-08 Jim Wilson <jimw@sifive.com>
10158 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
10159 (riscv_linux_fregset): New.
10160 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
10162 2019-02-07 Tom Tromey <tom@tromey.com>
10164 * thread.c (thread_cancel_execution_command): Update.
10165 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
10167 (struct thread_fsm_ops): Remove.
10168 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
10169 (thread_fsm_should_stop, thread_fsm_return_value)
10170 (thread_fsm_set_finished, thread_fsm_finished_p)
10171 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
10173 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
10174 * infrun.c (clear_proceed_status_thread)
10175 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
10176 (print_stop_event): Update.
10177 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
10179 (step_command_fsm_ops): Remove.
10180 (new_step_command_fsm): Remove.
10182 (step_command_fsm::should_stop): Rename from
10183 step_command_fsm_should_stop.
10184 (step_command_fsm::clean_up): Rename from
10185 step_command_fsm_clean_up.
10186 (step_command_fsm::do_async_reply_reason): Rename from
10187 step_command_fsm_async_reply_reason.
10188 (struct until_next_fsm): Inherit from thread_fsm. Add
10190 (until_next_fsm_ops): Remove.
10191 (new_until_next_fsm): Remove.
10192 (until_next_fsm::should_stop): Rename from
10193 until_next_fsm_should_stop.
10194 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
10195 (until_next_fsm::do_async_reply_reason): Rename from
10196 until_next_fsm_async_reply_reason.
10197 (struct finish_command_fsm): Inherit from thread_fsm. Add
10198 constructor. Change type of breakpoint.
10199 (finish_command_fsm_ops): Remove.
10200 (new_finish_command_fsm): Remove.
10201 (finish_command_fsm::should_stop): Rename from
10202 finish_command_fsm_should_stop.
10203 (finish_command_fsm::clean_up): Rename from
10204 finish_command_fsm_clean_up.
10205 (finish_command_fsm::return_value): Rename from
10206 finish_command_fsm_return_value.
10207 (finish_command_fsm::do_async_reply_reason): Rename from
10208 finish_command_fsm_async_reply_reason.
10209 (finish_command): Update.
10210 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
10212 (call_thread_fsm_ops): Remove.
10213 (call_thread_fsm::call_thread_fsm): Rename from
10214 new_call_thread_fsm.
10215 (call_thread_fsm::should_stop): Rename from
10216 call_thread_fsm_should_stop.
10217 (call_thread_fsm::should_notify_stop): Rename from
10218 call_thread_fsm_should_notify_stop.
10219 (run_inferior_call, call_function_by_hand_dummy): Update.
10220 * cli/cli-interp.c (should_print_stop_to_console): Update.
10221 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
10222 Add constructor. Change type of location_breakpoint,
10224 (until_break_fsm_ops): Remove.
10225 (new_until_break_fsm): Remove.
10226 (until_break_fsm::should_stop): Rename from
10227 until_break_fsm_should_stop.
10228 (until_break_fsm::clean_up): Rename from
10229 until_break_fsm_clean_up.
10230 (until_break_fsm::do_async_reply_reason): Rename from
10231 until_break_fsm_async_reply_reason.
10232 (until_break_command): Update.
10233 * thread-fsm.c: Remove.
10234 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
10236 2019-02-07 Tom Tromey <tom@tromey.com>
10238 * yy-remap.h: Add include guard.
10239 * xtensa-tdep.h: Add include guard.
10240 * xcoffread.h: Rename include guard.
10241 * varobj-iter.h: Add include guard.
10242 * tui/tui.h: Rename include guard.
10243 * tui/tui-winsource.h: Rename include guard.
10244 * tui/tui-wingeneral.h: Rename include guard.
10245 * tui/tui-windata.h: Rename include guard.
10246 * tui/tui-win.h: Rename include guard.
10247 * tui/tui-stack.h: Rename include guard.
10248 * tui/tui-source.h: Rename include guard.
10249 * tui/tui-regs.h: Rename include guard.
10250 * tui/tui-out.h: Rename include guard.
10251 * tui/tui-layout.h: Rename include guard.
10252 * tui/tui-io.h: Rename include guard.
10253 * tui/tui-hooks.h: Rename include guard.
10254 * tui/tui-file.h: Rename include guard.
10255 * tui/tui-disasm.h: Rename include guard.
10256 * tui/tui-data.h: Rename include guard.
10257 * tui/tui-command.h: Rename include guard.
10258 * tic6x-tdep.h: Add include guard.
10259 * target/waitstatus.h: Rename include guard.
10260 * target/wait.h: Rename include guard.
10261 * target/target.h: Rename include guard.
10262 * target/resume.h: Rename include guard.
10263 * target-float.h: Rename include guard.
10264 * stabsread.h: Add include guard.
10265 * rs6000-tdep.h: Add include guard.
10266 * riscv-fbsd-tdep.h: Add include guard.
10267 * regformats/regdef.h: Rename include guard.
10268 * record.h: Rename include guard.
10269 * python/python.h: Rename include guard.
10270 * python/python-internal.h: Rename include guard.
10271 * python/py-stopevent.h: Rename include guard.
10272 * python/py-ref.h: Rename include guard.
10273 * python/py-record.h: Rename include guard.
10274 * python/py-record-full.h: Rename include guard.
10275 * python/py-record-btrace.h: Rename include guard.
10276 * python/py-instruction.h: Rename include guard.
10277 * python/py-events.h: Rename include guard.
10278 * python/py-event.h: Rename include guard.
10279 * procfs.h: Add include guard.
10280 * proc-utils.h: Add include guard.
10281 * p-lang.h: Add include guard.
10282 * or1k-tdep.h: Rename include guard.
10283 * observable.h: Rename include guard.
10284 * nto-tdep.h: Rename include guard.
10285 * nat/x86-linux.h: Rename include guard.
10286 * nat/x86-linux-dregs.h: Rename include guard.
10287 * nat/x86-gcc-cpuid.h: Add include guard.
10288 * nat/x86-dregs.h: Rename include guard.
10289 * nat/x86-cpuid.h: Rename include guard.
10290 * nat/ppc-linux.h: Rename include guard.
10291 * nat/mips-linux-watch.h: Rename include guard.
10292 * nat/linux-waitpid.h: Rename include guard.
10293 * nat/linux-ptrace.h: Rename include guard.
10294 * nat/linux-procfs.h: Rename include guard.
10295 * nat/linux-osdata.h: Rename include guard.
10296 * nat/linux-nat.h: Rename include guard.
10297 * nat/linux-namespaces.h: Rename include guard.
10298 * nat/linux-btrace.h: Rename include guard.
10299 * nat/glibc_thread_db.h: Rename include guard.
10300 * nat/gdb_thread_db.h: Rename include guard.
10301 * nat/gdb_ptrace.h: Rename include guard.
10302 * nat/fork-inferior.h: Rename include guard.
10303 * nat/amd64-linux-siginfo.h: Rename include guard.
10304 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
10305 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
10306 * nat/aarch64-linux.h: Rename include guard.
10307 * nat/aarch64-linux-hw-point.h: Rename include guard.
10308 * mn10300-tdep.h: Add include guard.
10309 * mips-linux-tdep.h: Add include guard.
10310 * mi/mi-parse.h: Rename include guard.
10311 * mi/mi-out.h: Rename include guard.
10312 * mi/mi-main.h: Rename include guard.
10313 * mi/mi-interp.h: Rename include guard.
10314 * mi/mi-getopt.h: Rename include guard.
10315 * mi/mi-console.h: Rename include guard.
10316 * mi/mi-common.h: Rename include guard.
10317 * mi/mi-cmds.h: Rename include guard.
10318 * mi/mi-cmd-break.h: Rename include guard.
10319 * m2-lang.h: Add include guard.
10320 * location.h: Rename include guard.
10321 * linux-record.h: Rename include guard.
10322 * linux-nat.h: Add include guard.
10323 * linux-fork.h: Add include guard.
10324 * i386-darwin-tdep.h: Rename include guard.
10325 * hppa-linux-offsets.h: Add include guard.
10326 * guile/guile.h: Rename include guard.
10327 * guile/guile-internal.h: Rename include guard.
10328 * gnu-nat.h: Rename include guard.
10329 * gdb-stabs.h: Rename include guard.
10330 * frv-tdep.h: Add include guard.
10331 * f-lang.h: Add include guard.
10332 * event-loop.h: Add include guard.
10333 * darwin-nat.h: Rename include guard.
10334 * cp-abi.h: Rename include guard.
10335 * config/sparc/nm-sol2.h: Rename include guard.
10336 * config/nm-nto.h: Rename include guard.
10337 * config/nm-linux.h: Add include guard.
10338 * config/i386/nm-i386gnu.h: Rename include guard.
10339 * config/djgpp/nl_types.h: Rename include guard.
10340 * config/djgpp/langinfo.h: Rename include guard.
10341 * compile/gcc-cp-plugin.h: Add include guard.
10342 * compile/gcc-c-plugin.h: Add include guard.
10343 * compile/compile.h: Rename include guard.
10344 * compile/compile-object-run.h: Rename include guard.
10345 * compile/compile-object-load.h: Rename include guard.
10346 * compile/compile-internal.h: Rename include guard.
10347 * compile/compile-cplus.h: Rename include guard.
10348 * compile/compile-c.h: Rename include guard.
10349 * common/xml-utils.h: Rename include guard.
10350 * common/x86-xstate.h: Rename include guard.
10351 * common/version.h: Rename include guard.
10352 * common/vec.h: Rename include guard.
10353 * common/tdesc.h: Rename include guard.
10354 * common/selftest.h: Rename include guard.
10355 * common/scoped_restore.h: Rename include guard.
10356 * common/scoped_mmap.h: Rename include guard.
10357 * common/scoped_fd.h: Rename include guard.
10358 * common/safe-iterator.h: Rename include guard.
10359 * common/run-time-clock.h: Rename include guard.
10360 * common/refcounted-object.h: Rename include guard.
10361 * common/queue.h: Rename include guard.
10362 * common/ptid.h: Rename include guard.
10363 * common/print-utils.h: Rename include guard.
10364 * common/preprocessor.h: Rename include guard.
10365 * common/pathstuff.h: Rename include guard.
10366 * common/observable.h: Rename include guard.
10367 * common/netstuff.h: Rename include guard.
10368 * common/job-control.h: Rename include guard.
10369 * common/host-defs.h: Rename include guard.
10370 * common/gdb_wait.h: Rename include guard.
10371 * common/gdb_vecs.h: Rename include guard.
10372 * common/gdb_unlinker.h: Rename include guard.
10373 * common/gdb_unique_ptr.h: Rename include guard.
10374 * common/gdb_tilde_expand.h: Rename include guard.
10375 * common/gdb_sys_time.h: Rename include guard.
10376 * common/gdb_string_view.h: Rename include guard.
10377 * common/gdb_splay_tree.h: Rename include guard.
10378 * common/gdb_setjmp.h: Rename include guard.
10379 * common/gdb_ref_ptr.h: Rename include guard.
10380 * common/gdb_optional.h: Rename include guard.
10381 * common/gdb_locale.h: Rename include guard.
10382 * common/gdb_assert.h: Rename include guard.
10383 * common/filtered-iterator.h: Rename include guard.
10384 * common/filestuff.h: Rename include guard.
10385 * common/fileio.h: Rename include guard.
10386 * common/environ.h: Rename include guard.
10387 * common/common-utils.h: Rename include guard.
10388 * common/common-types.h: Rename include guard.
10389 * common/common-regcache.h: Rename include guard.
10390 * common/common-inferior.h: Rename include guard.
10391 * common/common-gdbthread.h: Rename include guard.
10392 * common/common-exceptions.h: Rename include guard.
10393 * common/common-defs.h: Rename include guard.
10394 * common/common-debug.h: Rename include guard.
10395 * common/cleanups.h: Rename include guard.
10396 * common/buffer.h: Rename include guard.
10397 * common/btrace-common.h: Rename include guard.
10398 * common/break-common.h: Rename include guard.
10399 * cli/cli-utils.h: Rename include guard.
10400 * cli/cli-style.h: Rename include guard.
10401 * cli/cli-setshow.h: Rename include guard.
10402 * cli/cli-script.h: Rename include guard.
10403 * cli/cli-interp.h: Rename include guard.
10404 * cli/cli-decode.h: Rename include guard.
10405 * cli/cli-cmds.h: Rename include guard.
10406 * charset-list.h: Add include guard.
10407 * buildsym-legacy.h: Rename include guard.
10408 * bfin-tdep.h: Add include guard.
10409 * ax.h: Rename include guard.
10410 * arm-linux-tdep.h: Add include guard.
10411 * arm-fbsd-tdep.h: Add include guard.
10412 * arch/xtensa.h: Rename include guard.
10413 * arch/tic6x.h: Add include guard.
10414 * arch/i386.h: Add include guard.
10415 * arch/arm.h: Rename include guard.
10416 * arch/arm-linux.h: Rename include guard.
10417 * arch/arm-get-next-pcs.h: Rename include guard.
10418 * arch/amd64.h: Add include guard.
10419 * arch/aarch64-insn.h: Rename include guard.
10420 * arch-utils.h: Rename include guard.
10421 * annotate.h: Add include guard.
10422 * amd64-darwin-tdep.h: Rename include guard.
10423 * aarch64-linux-tdep.h: Add include guard.
10424 * aarch64-fbsd-tdep.h: Add include guard.
10425 * aarch32-linux-nat.h: Add include guard.
10427 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10429 * macrotab.c (macro_define_internal): New function that
10430 factorizes macro_define_object_internal and macro_define_function
10432 (macro_define_object_internal): Use macro_define_internal.
10433 (macro_define_function): Likewise.
10435 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10437 * macrocmd.c (extract_identifier): Return
10438 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
10441 2019-02-06 John Baldwin <jhb@FreeBSD.org>
10443 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
10445 2019-02-05 Tom Tromey <tom@tromey.com>
10447 * target.c (target_stack::unpush): Move assertion earlier.
10449 2019-01-30 Tom Tromey <tom@tromey.com>
10452 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
10453 (gdbpy_parse_and_eval): Likewise.
10454 * python/python-internal.h (gdbpy_allow_threads): New class.
10456 2019-01-28 John Baldwin <jhb@FreeBSD.org>
10458 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
10459 (aarch64_fbsd_fpregmap): Move earlier.
10460 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
10461 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
10462 instead of individual calls to trad_frame_set_reg_addr.
10463 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
10465 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
10466 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
10467 instead of individual calls to trad_frame_set_reg_addr.
10469 2019-01-28 Alan Hayward <alan.hayward@arm.com>
10471 * CONTRIBUTE: Replace contribution list with wiki link.
10473 2019-01-25 Tom Tromey <tom@tromey.com>
10475 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
10477 2019-01-25 Tom Tromey <tom@tromey.com>
10479 * xtensa-linux-nat.c: Fix common/ includes.
10480 * xml-support.h: Fix common/ includes.
10481 * xml-support.c: Fix common/ includes.
10482 * x86-linux-nat.c: Fix common/ includes.
10483 * windows-nat.c: Fix common/ includes.
10484 * varobj.h: Fix common/ includes.
10485 * varobj.c: Fix common/ includes.
10486 * value.c: Fix common/ includes.
10487 * valops.c: Fix common/ includes.
10488 * utils.c: Fix common/ includes.
10489 * unittests/xml-utils-selftests.c: Fix common/ includes.
10490 * unittests/utils-selftests.c: Fix common/ includes.
10491 * unittests/unpack-selftests.c: Fix common/ includes.
10492 * unittests/tracepoint-selftests.c: Fix common/ includes.
10493 * unittests/style-selftests.c: Fix common/ includes.
10494 * unittests/string_view-selftests.c: Fix common/ includes.
10495 * unittests/scoped_restore-selftests.c: Fix common/ includes.
10496 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
10497 * unittests/scoped_fd-selftests.c: Fix common/ includes.
10498 * unittests/rsp-low-selftests.c: Fix common/ includes.
10499 * unittests/parse-connection-spec-selftests.c: Fix common/
10501 * unittests/optional-selftests.c: Fix common/ includes.
10502 * unittests/offset-type-selftests.c: Fix common/ includes.
10503 * unittests/observable-selftests.c: Fix common/ includes.
10504 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
10505 * unittests/memrange-selftests.c: Fix common/ includes.
10506 * unittests/memory-map-selftests.c: Fix common/ includes.
10507 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
10508 * unittests/function-view-selftests.c: Fix common/ includes.
10509 * unittests/environ-selftests.c: Fix common/ includes.
10510 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
10511 * unittests/common-utils-selftests.c: Fix common/ includes.
10512 * unittests/cli-utils-selftests.c: Fix common/ includes.
10513 * unittests/array-view-selftests.c: Fix common/ includes.
10514 * ui-file.c: Fix common/ includes.
10515 * tui/tui-io.c: Fix common/ includes.
10516 * tracepoint.h: Fix common/ includes.
10517 * tracepoint.c: Fix common/ includes.
10518 * tracefile-tfile.c: Fix common/ includes.
10519 * top.h: Fix common/ includes.
10520 * top.c: Fix common/ includes.
10521 * thread.c: Fix common/ includes.
10522 * target/waitstatus.h: Fix common/ includes.
10523 * target/waitstatus.c: Fix common/ includes.
10524 * target.h: Fix common/ includes.
10525 * target.c: Fix common/ includes.
10526 * target-memory.c: Fix common/ includes.
10527 * target-descriptions.c: Fix common/ includes.
10528 * symtab.h: Fix common/ includes.
10529 * symfile.c: Fix common/ includes.
10530 * stap-probe.c: Fix common/ includes.
10531 * spu-linux-nat.c: Fix common/ includes.
10532 * sparc-nat.c: Fix common/ includes.
10533 * source.c: Fix common/ includes.
10534 * solib.c: Fix common/ includes.
10535 * solib-target.c: Fix common/ includes.
10536 * ser-unix.c: Fix common/ includes.
10537 * ser-tcp.c: Fix common/ includes.
10538 * ser-pipe.c: Fix common/ includes.
10539 * ser-base.c: Fix common/ includes.
10540 * selftest-arch.c: Fix common/ includes.
10541 * s12z-tdep.c: Fix common/ includes.
10542 * rust-exp.y: Fix common/ includes.
10543 * rs6000-aix-tdep.c: Fix common/ includes.
10544 * riscv-tdep.c: Fix common/ includes.
10545 * remote.c: Fix common/ includes.
10546 * remote-notif.h: Fix common/ includes.
10547 * remote-fileio.h: Fix common/ includes.
10548 * remote-fileio.c: Fix common/ includes.
10549 * regcache.h: Fix common/ includes.
10550 * regcache.c: Fix common/ includes.
10551 * record-btrace.c: Fix common/ includes.
10552 * python/python.c: Fix common/ includes.
10553 * python/py-type.c: Fix common/ includes.
10554 * python/py-inferior.c: Fix common/ includes.
10555 * progspace.h: Fix common/ includes.
10556 * producer.c: Fix common/ includes.
10557 * procfs.c: Fix common/ includes.
10558 * proc-api.c: Fix common/ includes.
10559 * printcmd.c: Fix common/ includes.
10560 * ppc-linux-nat.c: Fix common/ includes.
10561 * parser-defs.h: Fix common/ includes.
10562 * osdata.c: Fix common/ includes.
10563 * obsd-nat.c: Fix common/ includes.
10564 * nat/x86-linux.c: Fix common/ includes.
10565 * nat/x86-linux-dregs.c: Fix common/ includes.
10566 * nat/x86-dregs.h: Fix common/ includes.
10567 * nat/x86-dregs.c: Fix common/ includes.
10568 * nat/ppc-linux.c: Fix common/ includes.
10569 * nat/mips-linux-watch.h: Fix common/ includes.
10570 * nat/mips-linux-watch.c: Fix common/ includes.
10571 * nat/linux-waitpid.c: Fix common/ includes.
10572 * nat/linux-ptrace.h: Fix common/ includes.
10573 * nat/linux-ptrace.c: Fix common/ includes.
10574 * nat/linux-procfs.c: Fix common/ includes.
10575 * nat/linux-personality.c: Fix common/ includes.
10576 * nat/linux-osdata.c: Fix common/ includes.
10577 * nat/linux-namespaces.c: Fix common/ includes.
10578 * nat/linux-btrace.h: Fix common/ includes.
10579 * nat/linux-btrace.c: Fix common/ includes.
10580 * nat/fork-inferior.c: Fix common/ includes.
10581 * nat/amd64-linux-siginfo.c: Fix common/ includes.
10582 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
10583 * nat/aarch64-linux.c: Fix common/ includes.
10584 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
10585 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
10586 * namespace.h: Fix common/ includes.
10587 * mips-linux-tdep.c: Fix common/ includes.
10588 * minsyms.c: Fix common/ includes.
10589 * mi/mi-parse.h: Fix common/ includes.
10590 * mi/mi-main.c: Fix common/ includes.
10591 * mi/mi-cmd-env.c: Fix common/ includes.
10592 * memrange.h: Fix common/ includes.
10593 * memattr.c: Fix common/ includes.
10594 * maint.h: Fix common/ includes.
10595 * maint.c: Fix common/ includes.
10596 * main.c: Fix common/ includes.
10597 * machoread.c: Fix common/ includes.
10598 * location.c: Fix common/ includes.
10599 * linux-thread-db.c: Fix common/ includes.
10600 * linux-nat.c: Fix common/ includes.
10601 * linux-fork.c: Fix common/ includes.
10602 * inline-frame.c: Fix common/ includes.
10603 * infrun.c: Fix common/ includes.
10604 * inflow.c: Fix common/ includes.
10605 * inferior.h: Fix common/ includes.
10606 * inferior.c: Fix common/ includes.
10607 * infcmd.c: Fix common/ includes.
10608 * inf-ptrace.c: Fix common/ includes.
10609 * inf-child.c: Fix common/ includes.
10610 * ia64-linux-nat.c: Fix common/ includes.
10611 * i387-tdep.c: Fix common/ includes.
10612 * i386-tdep.c: Fix common/ includes.
10613 * i386-linux-tdep.c: Fix common/ includes.
10614 * i386-linux-nat.c: Fix common/ includes.
10615 * i386-go32-tdep.c: Fix common/ includes.
10616 * i386-fbsd-tdep.c: Fix common/ includes.
10617 * i386-fbsd-nat.c: Fix common/ includes.
10618 * guile/scm-type.c: Fix common/ includes.
10619 * guile/guile.c: Fix common/ includes.
10620 * go32-nat.c: Fix common/ includes.
10621 * gnu-nat.c: Fix common/ includes.
10622 * gdbthread.h: Fix common/ includes.
10623 * gdbarch-selftests.c: Fix common/ includes.
10624 * gdb_usleep.c: Fix common/ includes.
10625 * gdb_select.h: Fix common/ includes.
10626 * gdb_bfd.c: Fix common/ includes.
10627 * gcore.c: Fix common/ includes.
10628 * fork-child.c: Fix common/ includes.
10629 * findvar.c: Fix common/ includes.
10630 * fbsd-nat.c: Fix common/ includes.
10631 * event-top.c: Fix common/ includes.
10632 * event-loop.c: Fix common/ includes.
10633 * dwarf2read.c: Fix common/ includes.
10634 * dwarf2loc.c: Fix common/ includes.
10635 * dwarf2-frame.c: Fix common/ includes.
10636 * dwarf-index-cache.c: Fix common/ includes.
10637 * dtrace-probe.c: Fix common/ includes.
10638 * disasm-selftests.c: Fix common/ includes.
10639 * defs.h: Fix common/ includes.
10640 * csky-tdep.c: Fix common/ includes.
10641 * cp-valprint.c: Fix common/ includes.
10642 * cp-support.h: Fix common/ includes.
10643 * cp-support.c: Fix common/ includes.
10644 * corelow.c: Fix common/ includes.
10645 * completer.h: Fix common/ includes.
10646 * completer.c: Fix common/ includes.
10647 * compile/compile.c: Fix common/ includes.
10648 * compile/compile-loc2c.c: Fix common/ includes.
10649 * compile/compile-cplus-types.c: Fix common/ includes.
10650 * compile/compile-cplus-symbols.c: Fix common/ includes.
10651 * command.h: Fix common/ includes.
10652 * cli/cli-dump.c: Fix common/ includes.
10653 * cli/cli-cmds.c: Fix common/ includes.
10654 * charset.c: Fix common/ includes.
10655 * build-id.c: Fix common/ includes.
10656 * btrace.h: Fix common/ includes.
10657 * btrace.c: Fix common/ includes.
10658 * breakpoint.h: Fix common/ includes.
10659 * breakpoint.c: Fix common/ includes.
10661 (enum agent_op): Fix common/ includes.
10662 * ax-general.c (struct aop_map): Fix common/ includes.
10663 * ax-gdb.c: Fix common/ includes.
10664 * auxv.c: Fix common/ includes.
10665 * auto-load.c: Fix common/ includes.
10666 * arm-tdep.c: Fix common/ includes.
10667 * arch/riscv.c: Fix common/ includes.
10668 * arch/ppc-linux-common.c: Fix common/ includes.
10669 * arch/i386.c: Fix common/ includes.
10670 * arch/arm.c: Fix common/ includes.
10671 * arch/arm-linux.c: Fix common/ includes.
10672 * arch/arm-get-next-pcs.c: Fix common/ includes.
10673 * arch/amd64.c: Fix common/ includes.
10674 * arch/aarch64.c: Fix common/ includes.
10675 * arch/aarch64-insn.c: Fix common/ includes.
10676 * arch-utils.c: Fix common/ includes.
10677 * amd64-windows-tdep.c: Fix common/ includes.
10678 * amd64-tdep.c: Fix common/ includes.
10679 * amd64-sol2-tdep.c: Fix common/ includes.
10680 * amd64-obsd-tdep.c: Fix common/ includes.
10681 * amd64-nbsd-tdep.c: Fix common/ includes.
10682 * amd64-linux-tdep.c: Fix common/ includes.
10683 * amd64-linux-nat.c: Fix common/ includes.
10684 * amd64-fbsd-tdep.c: Fix common/ includes.
10685 * amd64-fbsd-nat.c: Fix common/ includes.
10686 * amd64-dicos-tdep.c: Fix common/ includes.
10687 * amd64-darwin-tdep.c: Fix common/ includes.
10688 * agent.c: Fix common/ includes.
10689 * ada-lang.h: Fix common/ includes.
10690 * ada-lang.c: Fix common/ includes.
10691 * aarch64-tdep.c: Fix common/ includes.
10693 2019-01-25 Tom Tromey <tom@tromey.com>
10695 * common/create-version.sh: Use common/version.h.
10697 2019-01-24 Pedro Alves <palves@redhat.com>
10699 * infrun.c (signal_stop, signal_print, signal_program)
10700 (signal_catch, signal_pass): Now arrays instead of pointers.
10701 (update_signals_program_target, do_target_resume)
10702 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
10703 * linux-nat.c (linux_nat_target::pass_signals)
10704 (linux_nat_target::create_inferior, linux_nat_target::attach):
10706 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
10707 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
10708 * procfs.c (procfs_target::pass_signals): Adjust.
10709 * record-full.c (record_full_target::resume): Adjust.
10710 * remote.c (remote_target::pass_signals)
10711 (remote_target::program_signals): Adjust.
10712 * target-debug.h (target_debug_print_signals): Now takes a
10713 gdb::array_view as parameter. Adjust.
10714 * target.h (target_ops) <pass_signals, program_signals>: Replace
10715 pointer and length parameters with gdb::array_view.
10716 (target_pass_signals, target_program_signals): Likewise.
10717 * target-delegates.c: Regenerate.
10719 2019-01-24 Pedro Alves <palves@redhat.com>
10721 * common/forward-scope-exit.h
10722 (forward_scope_exit::forward_scope_exit): Pass arguments to
10723 m_bind_function directly, instead of creating a std::bind and
10726 2019-01-24 Alan Hayward <alan.hayward@arm.com>
10728 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
10729 for static members.
10730 (pass_in_v_vfp_candidate): Likewise.
10732 2019-01-23 Tom Tromey <tom@tromey.com>
10733 Pedro Alves <palves@redhat.com>
10735 * regcache.c (class regcache_invalidator): Remove.
10736 (regcache::raw_write): Use make_scope_exit.
10738 2019-01-23 Tom Tromey <tom@tromey.com>
10740 * ui-out.h (class ui_out_emit_type): Update comment.
10742 2019-01-23 Tom Tromey <tom@tromey.com>
10744 * infrun.c (fetch_inferior_event): Update comment.
10746 2019-01-23 Tom Tromey <tom@tromey.com>
10747 Pedro Alves <palves@redhat.com>
10749 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
10751 (fetch_inferior_event): Use SCOPE_EXIT.
10754 2019-01-23 Tom Tromey <tom@tromey.com>
10755 Pedro Alves <palves@redhat.com>
10757 * infrun.c (disable_thread_events): Delete.
10758 (stop_all_threads): Use SCOPE_EXIT.
10760 2019-01-23 Tom Tromey <tom@tromey.com>
10761 Pedro Alves <palves@redhat.com>
10763 * symfile.c: Include forward-scope-exit.h.
10764 (clear_symtab_users_cleanup): Replace forward declaration with
10765 a FORWARD_SCOPE_EXIT.
10766 (syms_from_objfile_1): Use the forward_scope_exit and
10767 gdb::optional instead of cleanup_function.
10768 (reread_symbols): Use the forward_scope_exit instead of
10770 (clear_symtab_users_cleanup): Remove function.
10772 2019-01-23 Tom Tromey <tom@tromey.com>
10773 Pedro Alves <palves@redhat.com>
10775 * linux-nat.c: Include scope-exit.h.
10776 (cleanup_target_stop): Remove.
10777 (linux_nat_target::static_tracepoint_markers_by_strid): Use
10780 2019-01-23 Tom Tromey <tom@tromey.com>
10781 Pedro Alves <palves@redhat.com>
10783 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
10784 (call_function_by_hand_dummy): Use SCOPE_EXIT.
10786 2019-01-23 Tom Tromey <tom@tromey.com>
10787 Andrew Burgess <andrew.burgess@embecosm.com>
10788 Pedro Alves <palves@redhat.com>
10790 * infrun.c (fetch_inferior_event): Use scope_exit.
10791 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
10792 * top.c (execute_command): Use scope_exit.
10793 * breakpoint.c (bpstat_do_actions): Use scope_exit.
10794 * utils.c (do_bpstat_clear_actions_cleanup)
10795 (make_bpstat_clear_actions_cleanup): Remove.
10797 2019-01-23 Tom Tromey <tom@tromey.com>
10798 Pedro Alves <palves@redhat.com>
10800 * infrun.c: Include "common/scope-exit.h"
10801 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
10802 (wait_for_inferior): Use SCOPE_EXIT.
10803 (fetch_inferior_event): Use scope_exit.
10805 2019-01-23 Tom Tromey <tom@tromey.com>
10806 Pedro Alves <palves@redhat.com>
10808 * breakpoint.c (create_breakpoint): Remove cleanup.
10810 2019-01-23 Tom Tromey <tom@tromey.com>
10811 Andrew Burgess <andrew.burgess@embecosm.com>
10812 Pedro Alves <palves@redhat.com>
10814 2019-01-23 Pedro Alves <palves@redhat.com>
10816 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
10818 2019-01-23 Pedro Alves <palves@redhat.com>
10819 Andrew Burgess <andrew.burgess@embecosm.com>
10821 * gdbthread.h: Include "common/forward-scope-exit.h".
10822 (scoped_finish_thread_state): Redefine custom class in terms of
10823 forward_scope_exit.
10825 2019-01-23 Pedro Alves <palves@redhat.com>
10826 Andrew Burgess <andrew.burgess@embecosm.com>
10828 * common/forward-scope-exit.h: New file.
10830 2019-01-23 Pedro Alves <palves@redhat.com>
10831 Andrew Burgess <andrew.burgess@embecosm.com>
10832 Tom Tromey <tom@tromey.com>
10834 * common/scope-exit.h: New file.
10836 2019-01-23 Pedro Alves <palves@redhat.com>
10838 * common/preprocessor.h (ESC): Rename to ...
10839 (ESC_PARENS): ... this.
10840 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
10841 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
10843 2019-01-23 Tom Tromey <tom@tromey.com>
10845 * language.h (class scoped_switch_to_sym_language_if_auto):
10846 Initialize m_lang in both cases.
10848 2019-01-23 Alan Hayward <alan.hayward@arm.com>
10850 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
10853 2019-01-22 Tom Tromey <tom@tromey.com>
10855 * corelow.c: Do not include sys/file.h.
10857 2019-01-22 Tom Tromey <tom@tromey.com>
10859 * tui/tui-wingeneral.h: Include gdb_curses.h.
10861 2019-01-22 Tom Tromey <tom@tromey.com>
10863 * source-cache.h (class source_cache) <get_source_lines,
10864 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
10866 2019-01-22 Tom Tromey <tom@tromey.com>
10868 * remote-fileio.h (struct remote_target): Declare.
10870 2019-01-22 Tom Tromey <tom@tromey.com>
10872 * python/py-arch.c: Do not include py-ref.h.
10873 * python/py-bpevent.c: Do not include py-ref.h.
10874 * python/py-cmd.c: Do not include py-ref.h.
10875 * python/py-continueevent.c: Do not include py-ref.h.
10876 * python/py-event.h: Do not include py-ref.h.
10877 * python/py-evtregistry.c: Do not include py-ref.h.
10878 * python/py-finishbreakpoint.c: Do not include py-ref.h.
10879 * python/py-frame.c: Do not include py-ref.h.
10880 * python/py-framefilter.c: Do not include py-ref.h.
10881 * python/py-function.c: Do not include py-ref.h.
10882 * python/py-infevents.c: Do not include py-ref.h.
10883 * python/py-linetable.c: Do not include py-ref.h.
10884 * python/py-objfile.c: Do not include py-ref.h.
10885 * python/py-param.c: Do not include py-ref.h.
10886 * python/py-prettyprint.c: Do not include py-ref.h.
10887 * python/py-progspace.c: Do not include py-ref.h.
10888 * python/py-symbol.c: Do not include py-ref.h.
10889 * python/py-symtab.c: Do not include py-ref.h.
10890 * python/py-type.c: Do not include py-ref.h.
10891 * python/py-unwind.c: Do not include py-ref.h.
10892 * python/py-utils.c: Do not include py-ref.h.
10893 * python/py-value.c: Do not include py-ref.h.
10894 * python/py-varobj.c: Do not include py-ref.h.
10895 * python/py-xmethods.c: Do not include py-ref.h.
10896 * python/python.c: Do not include py-ref.h.
10897 * varobj.c: Do not include py-ref.h.
10899 2019-01-22 Tom Tromey <tom@tromey.com>
10901 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
10902 keyword for bcache.
10904 2019-01-22 Tom Tromey <tom@tromey.com>
10906 * compile/compile-cplus-types.c: Remove a comment by #include.
10908 2019-01-22 Tom Tromey <tom@tromey.com>
10910 * compile/gcc-c-plugin.h: Include compile-internal.h.
10912 2019-01-22 Tom Tromey <tom@tromey.com>
10914 * stabsread.c (EXTERN): Do not define.
10915 (symnum, next_symbol_text_func, processing_gcc_compilation)
10916 (within_function, global_sym_chain, global_stabs)
10917 (previous_stab_code, this_object_header_files)
10918 (n_this_object_header_files)
10919 (n_allocated_this_object_header_files): Define.
10920 * stabsread.h (EXTERN): Never define. Use "extern".
10922 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10924 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
10927 2019-01-21 Tom Tromey <tom@tromey.com>
10929 * ui-out.c: Fix includes.
10930 * tui/tui-source.c: Fix includes.
10931 * target.c: Fix includes.
10932 * remote.c: Fix includes.
10933 * regcache.c: Fix includes.
10934 * python/py-block.c: Fix includes.
10935 * printcmd.c: Fix includes.
10936 * or1k-tdep.c: Fix includes.
10937 * mi/mi-main.c: Fix includes.
10938 * m32r-tdep.c: Fix includes.
10939 * csky-tdep.c: Fix includes.
10940 * compile/compile-cplus-types.c: Fix includes.
10941 * cli/cli-interp.c: Fix includes.
10943 2019-01-21 Alan Hayward <alan.hayward@arm.com>
10945 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
10948 2019-01-16 Tom Tromey <tom@tromey.com>
10950 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
10952 (struct objfile) <msymbols_range>: Move from top level.
10953 <msymbols>: New method.
10954 (class objfile_msymbols): Remove.
10955 * symtab.c (default_collect_symbol_completion_matches_break_on):
10957 * symmisc.c (dump_msymbols): Update.
10958 * stabsread.c (scan_file_globals): Update.
10959 * objc-lang.c (info_selectors_command, info_classes_command)
10960 (find_methods): Update.
10961 * minsyms.c (find_solib_trampoline_target): Update.
10962 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
10963 * coffread.c (coff_symfile_read): Update.
10964 * ada-lang.c (ada_lookup_simple_minsym)
10965 (ada_collect_symbol_completion_matches): Update.
10967 2019-01-16 Tom Tromey <tom@tromey.com>
10969 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
10970 type. Remove no-argument constructor.
10971 <iterator::operator++>: Simplify.
10973 <end>: Use minimal_symbol_count.
10975 2019-01-16 Tom Tromey <tom@tromey.com>
10977 * objfiles.h (struct objfile) <psymtabs>: New method.
10978 (class objfile_psymtabs): Remove.
10979 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
10981 <range>: New method.
10982 (require_partial_symbols): Change return type.
10983 * psymtab.c (require_partial_symbols)
10984 (psym_expand_symtabs_matching): Update.
10985 * mdebugread.c (parse_partial_symbols): Update.
10986 * dbxread.c (dbx_end_psymtab): Update.
10988 2019-01-15 Tom Tromey <tom@tromey.com>
10990 * symtab.c (lookup_objfile_from_block)
10991 (lookup_symbol_in_objfile_symtabs)
10992 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
10993 (find_line_symtab, info_sources_command)
10994 (default_collect_symbol_completion_matches_break_on)
10995 (make_source_files_completion_list): Update.
10996 * symmisc.c (print_objfile_statistics, dump_objfile)
10997 (maintenance_print_symbols, maintenance_info_symtabs)
10998 (maintenance_check_symtabs, maintenance_info_line_tables):
11000 * source.c (select_source_symtab)
11001 (forget_cached_source_info_for_objfile): Update.
11002 * objfiles.h (class objfile_compunits): Remove.
11003 (struct objfile) <compunits_range>: New typedef.
11004 (compunits): New method.
11005 * objfiles.c (objfile_relocate1): Update.
11006 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11007 * maint.c (count_symtabs_and_blocks): Update.
11008 * linespec.c (iterate_over_all_matching_symtabs): Update.
11009 * cp-support.c (add_symbol_overload_list_qualified): Update.
11010 * coffread.c (coff_symtab_read): Update.
11011 * ada-lang.c (add_nonlocal_symbols)
11012 (ada_collect_symbol_completion_matches)
11013 (ada_add_global_exceptions): Update.
11015 2019-01-15 Tom Tromey <tom@tromey.com>
11017 * progspace.h (program_space) <objfiles_safe_range>: New
11019 <objfiles_safe>: New method.
11020 * objfiles.h (class all_objfiles_safe): Remove.
11021 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
11022 * jit.c (jit_inferior_exit_hook): Update.
11024 2019-01-17 Tom Tromey <tom@tromey.com>
11026 * progspace.h (program_space) <objfiles_range>: New typedef.
11027 <objfiles>: New method.
11028 <objfiles_head>: Rename from objfiles.
11029 (object_files): Update.
11030 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
11031 * guile/scm-pretty-print.c
11032 (ppscm_find_pretty_printer_from_objfiles): Update.
11033 * guile/scm-objfile.c (gdbscm_objfiles): Update.
11034 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
11036 * python/py-progspace.c (pspy_get_objfiles): Update.
11037 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
11039 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
11040 (objfpy_lookup_objfile_by_build_id): Update.
11041 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11042 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
11044 * symtab.c (iterate_over_symtabs, matching_obj_sections)
11045 (expand_symtab_containing_pc, lookup_objfile_from_block)
11046 (lookup_static_symbol, basic_lookup_transparent_type)
11047 (find_pc_sect_compunit_symtab, find_symbol_at_address)
11048 (find_line_symtab, info_sources_command)
11049 (default_collect_symbol_completion_matches_break_on)
11050 (make_source_files_completion_list, find_main_name): Update.
11051 * symmisc.c (print_symbol_bcache_statistics)
11052 (print_objfile_statistics, maintenance_print_symbols)
11053 (maintenance_print_msymbols, maintenance_print_objfiles)
11054 (maintenance_info_symtabs, maintenance_check_symtabs)
11055 (maintenance_expand_symtabs, maintenance_info_line_tables):
11057 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
11058 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
11059 (map_overlay_command, unmap_overlay_command)
11060 (simple_overlay_update, expand_symtabs_matching)
11061 (map_symbol_filenames): Update.
11062 * symfile-debug.c (set_debug_symfile): Update.
11063 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
11065 * source.c (select_source_symtab, forget_cached_source_info):
11067 * solib.c (solib_read_symbols): Update.
11068 * solib-spu.c (append_ocl_sos): Update.
11069 * psymtab.c (maintenance_print_psymbols)
11070 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
11071 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
11072 * printcmd.c (info_symbol_command): Update.
11073 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
11075 * objfiles.h (class all_objfiles): Remove.
11076 * objfiles.c (have_partial_symbols, have_full_symbols)
11077 (have_minimal_symbols, qsort_cmp, update_section_map)
11078 (shared_objfile_contains_address_p)
11079 (default_iterate_over_objfiles_in_search_order): Update.
11080 * objc-lang.c (info_selectors_command, info_classes_command)
11081 (find_methods): Update.
11082 * minsyms.c (find_solib_trampoline_target): Update.
11083 * maint.c (maintenance_info_sections)
11084 (maintenance_translate_address, count_symtabs_and_blocks):
11086 * main.c (captured_main_1): Update.
11087 * linux-thread-db.c (try_thread_db_load_from_pdir)
11088 (has_libpthread): Update.
11089 * linespec.c (iterate_over_all_matching_symtabs)
11090 (search_minsyms_for_name): Update.
11091 * jit.c (jit_find_objf_with_entry_addr): Update.
11092 * hppa-tdep.c (find_unwind_entry)
11093 (hppa_lookup_stub_minimal_symbol): Update.
11094 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
11096 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
11097 (elf_gnu_ifunc_resolve_by_got): Update.
11098 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
11099 * dwarf-index-write.c (save_gdb_index_command): Update.
11100 * cp-support.c (add_symbol_overload_list_qualified): Update.
11101 * breakpoint.c (create_overlay_event_breakpoint)
11102 (create_longjmp_master_breakpoint)
11103 (create_std_terminate_master_breakpoint)
11104 (create_exception_master_breakpoint): Update.
11105 * blockframe.c (find_pc_partial_function): Update.
11106 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
11107 (ada_collect_symbol_completion_matches)
11108 (ada_add_global_exceptions): Update.
11110 2019-01-17 Tom Tromey <tom@tromey.com>
11112 * solib-target.c (lm_info_target_p): Remove typedef. Don't
11114 (solib_target_parse_libraries): Change return type.
11115 (library_list_start_segment, library_list_start_section)
11116 (library_list_end_library, library_list_start_library); Update.
11117 (solib_target_free_library_list): Remove.
11118 (solib_target_parse_libraries): Remove cleanup. Change return
11120 (solib_target_current_sos): Update.
11122 2019-01-17 Tom Tromey <tromey@bapiya>
11124 * valprint.c: Replace "the the" with "the".
11125 * symtab.c: Replace "the the" with "the".
11126 * solib.c: Replace "the the" with "the".
11127 * solib-dsbt.c: Replace "the the" with "the".
11128 * linespec.c: Replace "the the" with "the".
11129 * dwarf2loc.h: Replace "the the" with "the".
11130 * amd64-windows-tdep.c: Replace "the the" with "the".
11131 * aarch64-tdep.c: Replace "the the" with "the".
11133 2019-01-16 Keith Seitz <keiths@redhat.com>
11136 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
11137 <builder>: Rename to ..
11138 <m_builder>: ... this and make private.
11139 (dwarf2_cu::get_builder): New method. Change all users of
11140 `builder' to use this method.
11141 (dwarf2_start_symtab): Move to ...
11142 (dwarf2_cu::start_symtab): ... here. Update all callers
11143 (setup_type_unit_groups): Move to ...
11144 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
11146 (dwarf2_cu::reset_builder): New method.
11147 (process_full_compunit, process_full_type_unit): Use
11148 dwarf2_cu::reset_builder.
11149 (follow_die_offset): Record the ancestor CU if it is different
11150 from the followed DIE's CU.
11151 (follow_die_sig_1): Likewise.
11153 2019-01-15 Tom Tromey <tom@tromey.com>
11155 * remote.c (class remote_state) <buf>: Now a char_vector.
11156 <buf_size>: Remove.
11157 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
11159 (remote_target::getpkt_or_notif_sane_1)
11160 (remote_target::getpkt_sane)
11161 (remote_target::getpkt_or_notif_sane): Likewise.
11162 (class remote_target) <putpkt>: New overload.
11163 (remote_target::read_frame): Change type of "buf_p". Remove
11164 sizeof_p parameter.
11165 (packet_ok): New overload.
11166 (packet_check_result): New overload.
11169 2019-01-14 Tom Tromey <tom@tromey.com>
11171 * remote-notif.c (handle_notification, remote_notif_ack)
11172 (remote_notif_parse): Make "buf" const.
11173 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
11175 (remote_notif_parse, remote_notif_ack, handle_notification):
11177 * remote.c (remote_notif_stop_parse): Make "buf" const.
11178 (remote_target::remote_parse_stop_reply): Make "buf" const.
11179 (remote_notif_stop_ack): Make "buf" const.
11181 2019-01-14 Tom Tromey <tom@tromey.com>
11183 * remote.c (remote_console_output): Make parameter const.
11185 2019-01-14 Tom Tromey <tom@tromey.com>
11187 * target-debug.h (target_debug_print_signals): Constify.
11188 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
11189 * procfs.c (procfs_target::pass_signals): Update.
11190 * linux-nat.c (linux_nat_target::pass_signals): Update.
11191 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
11192 * target-delegates.c: Rebuild.
11193 * remote.c (remote_target::program_signals): Update.
11194 (remote_target::pass_signals): Update.
11195 * target.c (target_pass_signals): Constify argument.
11196 (target_program_signals): Likewise.
11197 * target.h (struct target_ops) <pass_signals, program_signals>:
11199 (target_pass_signals, target_program_signals): Constify argument.
11201 2019-01-14 Tom Tromey <tom@tromey.com>
11204 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
11206 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11208 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
11210 * rs6000-tdep.c: Include reggroups.h.
11211 (IS_V_ALIAS_PSEUDOREG): Define.
11212 (rs6000_register_name): Return names for the "vX" aliases.
11213 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
11214 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
11215 aliases. Call default_register_reggroup_p for all other
11217 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
11219 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
11220 Handle "vX" aliases.
11221 (v_alias_pseudo_register_collect): New function.
11222 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
11223 (rs6000_gdbarch_init): Initialize "vX" aliases as
11224 pseudo-registers. Restore registration of
11225 rs6000_pseudo_register_reggroup_p with
11226 set_tdesc_pseudo_register_reggroup_p.
11228 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
11230 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
11231 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
11232 set_gdbarch_num_pseudo_regs.
11234 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11236 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
11237 Remove arg prefixname, add do_set and do_show.
11238 Add member functions set_list and show_list.
11239 * cli/cli-style.c (class cli_style_option): Update accordingly.
11240 (style_set_list): Move to file scope.
11241 (style_show_list): Likewise.
11242 (set_style): Call help_list.
11243 (show_style): Call cmd_show_list.
11244 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
11245 Update to use the new macro.
11247 2019-10-12 Joel Brobecker <brobecker@adacore.com>
11249 * ada-lang.c (_initialize_ada_language): Expand the help text
11250 for the "catch exception" command.
11252 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11254 * symtab.c (matching_obj_sections): Initialize obj,
11255 declare it closer to its usage.
11257 2019-01-10 Tom Tromey <tom@tromey.com>
11259 * thread-iter.h (inf_threads_iterator): Use next_iterator.
11260 (basic_inf_threads_range): Remove.
11261 (inf_threads_range, inf_non_exited_threads_range)
11262 (safe_inf_threads_range): Use next_adapter.
11264 2019-01-10 Keith Seitz <keiths@redhat.com>
11268 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
11269 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
11271 2019-01-10 Keith Seitz <keiths@redhat.com>
11275 * dictionary.c (pending_to_vector): Remove.
11276 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
11277 Remove _1 suffix, replacing functions of the same name. Update
11279 (dict_create_hashed, dict_create_hashed_expandable)
11280 (dict_create_linear, dict_create_linear_expandable, dict_free)
11281 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
11282 Make functions static.
11284 2019-01-10 Keith Seitz <keiths@redhat.com>
11288 * dictionary.h (struct dictionary): Replace declaration with
11290 (dict_create_hashed, dict_create_hashed_expandable)
11291 (dict_create_linear, dict_create_linear_expandable)
11292 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
11293 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
11294 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
11295 taking multidictionary argument.
11296 [ALL_DICT_SYMBOLS]: Update for multidictionary.
11297 * block.h (struct block) <dict>: Change to multidictionary
11298 and rename `multidict'.
11299 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
11300 symmisc.c: Update all dictionary references to multidictionary.
11302 2019-01-10 Keith Seitz <keiths@redhat.com>
11306 * dictionary.c: Include unordered_map.
11307 (pending_to_vector): New function.
11308 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
11309 Rewrite the non-"_1" functions to take vector instead
11311 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
11312 "new" _1 versions of the same name.
11313 (multidictionary): Define.
11314 (std::hash<enum language): New definition.
11315 (collate_pending_symbols_by_language, mdict_create_hashed)
11316 (mdict_create_hashed_expandable, mdict_create_linear)
11317 (mdict_create_linear_expandable, mdict_free)
11318 (find_language_dictionary, create_new_language_dictionary)
11319 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
11320 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
11321 (mdict_size, mdict_empty): New functions.
11322 * dictionary.h (mdict_iterator): Define.
11324 2019-01-10 Pedro Alves <palves@redhat.com>
11326 * breakpoint.c (read_uploaded_action)
11327 (create_tracepoint_from_upload): Adjust to use
11328 gdb::unique_xmalloc_ptr.
11329 * ctf.c (ctf_write_uploaded_tp):
11330 (SET_ARRAY_FIELD): Use emplace_back.
11331 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
11332 * tracefile-tfile.c (tfile_write_uploaded_tp):
11333 * tracepoint.c (parse_tracepoint_definition): Adjust to use
11334 gdb::unique_xmalloc_ptr.
11335 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
11336 at_string, cond_string, cmd_strings>: Replace char pointers
11337 with gdb::unique_xmalloc_ptr.
11339 2019-01-10 Pedro Alves <palves@redhat.com>
11341 * solib-target.c (library_list_start_library): Don't xstrdup name.
11343 2019-01-10 Pedro Alves <palves@redhat.com>
11345 * mdebugread.c (parse_partial_symbols): Use
11346 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
11348 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
11350 * linux-fork.c (scoped_switch_fork_info)
11351 <~scoped_switch_fork_info>: Fix incorrect variable name.
11353 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
11355 * linux-fork.c (scoped_switch_fork_info)
11356 <scoped_switch_fork_info>: Make explicit.
11357 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
11359 2019-01-10 Tom Tromey <tom@tromey.com>
11361 * objfiles.h (objfile::reset_psymtabs): Update.
11362 * objfiles.c (objfile::objfile): Update.
11363 * psymtab.h (psymtab_storage::obstack): Update.
11364 (psymtab_storage::m_obstack): Use gdb::optional.
11365 (class psymtab_storage): Update comment. Remove objfile
11367 * psymtab.c (psymtab_storage::psymtab_storage): Update.
11369 2019-01-10 Tom Tromey <tom@tromey.com>
11371 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
11372 <free_psymtabs>: Now private.
11373 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
11374 (allocate_psymtab): Use new method.
11376 2019-01-10 Tom Tromey <tom@tromey.com>
11378 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
11379 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
11380 * mdebugread.c (parse_partial_symbols): Use
11381 allocate_dependencies.
11382 * dwarf2read.c (dwarf2_create_include_psymtab): Use
11383 allocate_dependencies.
11384 (process_psymtab_comp_unit_reader)
11385 (build_type_psymtab_dependencies): Likewise.
11386 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
11388 2019-01-10 Tom Tromey <tom@tromey.com>
11390 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
11391 PSYMBOL_SET_LANGUAGE.
11392 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
11394 2019-01-10 Tom Tromey <tom@tromey.com>
11396 * psymtab.h (psymtab_storage::obstack): New method.
11397 <m_obstack>: Rename from obstack; now private.
11398 * psymtab.c (psymtab_storage): Update.
11399 * dwarf2read.c (create_addrmap_from_index)
11400 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
11403 2019-01-10 Tom Tromey <tom@tromey.com>
11405 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
11406 * objfiles.h (objfile::reset_psymtabs): New method.
11408 2019-01-10 Tom Tromey <tom@tromey.com>
11410 * symmisc.c (print_symbol_bcache_statistics): Update.
11411 (print_objfile_statistics): Update.
11412 * symfile.c (reread_symbols): Update.
11413 * psymtab.h (class psymtab_storage): New.
11414 * psymtab.c (psymtab_storage): New constructor.
11415 (~psymtab_storage): New destructor.
11416 (require_partial_symbols): Update.
11417 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
11418 (find_pc_sect_psymtab, find_pc_sect_psymbol)
11419 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
11420 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
11421 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
11422 (start_psymtab_common, end_psymtab_common)
11423 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
11424 (allocate_psymtab): Update.
11425 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
11427 (dump_psymtab_addrmap, maintenance_print_psymbols)
11428 (maintenance_check_psymtabs): Update.
11429 (class objfile_psymtabs): Move to objfiles.h.
11430 * psympriv.h (discard_psymtab): Now inline.
11431 (psymtab_discarder::psymtab_discarder): Update.
11432 (psymtab_discarder::~psymtab_discarder): Update.
11433 (ALL_OBJFILE_PSYMTABS): Rewrite.
11434 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
11435 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
11437 <partial_symtabs>: New field.
11438 (class objfile_psymtabs): Move from psymtab.h. Update.
11439 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
11441 (objfile::~objfile): Don't destroy psymbol_cache.
11442 * mdebugread.c (parse_partial_symbols): Update.
11443 * dwarf2read.c (create_addrmap_from_index)
11444 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11445 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
11446 (add_partial_subprogram, dwarf2_ranges_read): Update.
11447 * dwarf-index-write.c (write_address_map)
11448 (write_one_signatured_type, recursively_write_psymbols)
11449 (class debug_names, class debug_names, write_psymtabs_to_index):
11452 2019-01-10 Tom Tromey <tom@tromey.com>
11454 * symtab.h (SYMBOL_SET_NAMES): Update.
11455 (symbol_set_names): Update.
11456 (MSYMBOL_SET_NAMES): Update.
11457 * symtab.c (symbol_set_names): Change argument to be an
11458 objfile_per_bfd_storage.
11459 * psymtab.c (add_psymbol_to_bcache): Update.
11460 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
11462 2019-01-10 Tom Tromey <tom@tromey.com>
11464 * symtab.c (create_demangled_names_hash): Change argument to be an
11465 objfile_per_bfd_storage.
11466 (symbol_set_names): Update.
11468 2019-01-10 Tom Tromey <tom@tromey.com>
11470 * xcoffread.c (xcoff_initial_scan): Unconditionally call
11472 * psymtab.c (init_psymbol_list): Do nothing if already called.
11473 * psympriv.h (init_psymbol_list): Add comment.
11474 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
11476 * dbxread.c (dbx_symfile_read): Unconditionally call
11479 2019-01-10 Tom Tromey <tom@tromey.com>
11481 * xcoffread.c (scan_xcoff_symtab): Update.
11482 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
11484 * mdebugread.c (parse_partial_symbols)
11485 (handle_psymbol_enumerators): Update.
11486 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
11487 * dbxread.c (read_dbx_symtab): Update.
11488 * psympriv.h (psymbol_placement): New enum.
11489 (add_psymbol_to_list): Update.
11491 2019-01-10 Tom Tromey <tom@tromey.com>
11493 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
11494 static_psymbols parameters.
11495 (scan_xcoff_symtab): Update.
11496 * psymtab.c (start_psymtab_common): Remove global_psymbols and
11497 static_psymbols parameters.
11498 * psympriv.h (start_psymtab_common): Update.
11499 * mdebugread.c (parse_partial_symbols): Update.
11500 * dwarf2read.c (create_partial_symtab): Update.
11501 * dbxread.c (read_dbx_symtab): Update.
11502 (start_psymtab): Remove global_psymbols and static_psymbols
11505 2019-01-10 Tom Tromey <tom@tromey.com>
11507 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
11508 * psymtab.c (allocate_psymtab): Add comment.
11509 * psympriv.h (allocate_psymtab): Add comment.
11510 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
11512 * dbxread.c (dbx_end_psymtab): Remove some initializations.
11514 2019-01-10 Tom Tromey <tom@tromey.com>
11516 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
11518 * mipsread.c: Include mdebugread.h.
11519 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
11521 * elfread.c: Include mdebugread.h.
11523 2019-01-09 Tom Tromey <tom@tromey.com>
11525 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
11526 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
11527 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
11528 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
11529 (psym_lookup_symbol, psym_find_last_source_symtab)
11530 (psym_forget_cached_source_info, psym_print_stats)
11531 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
11532 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
11533 (psym_map_matching_symbols, psym_expand_symtabs_matching)
11534 (psym_find_compunit_symtab_by_address)
11535 (maintenance_print_psymbols, maintenance_info_psymtabs)
11536 (maintenance_check_psymtabs): Use ranged for.
11537 * psymtab.h (class objfile_psymtabs): New.
11538 (require_partial_symbols): Return objfile_psymtabs.
11539 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
11541 2019-01-09 Tom Tromey <tom@tromey.com>
11543 * symfile.c (overlay_invalidate_all, find_pc_overlay)
11544 (find_pc_mapped_section, list_overlays_command)
11545 (map_overlay_command, unmap_overlay_command)
11546 (simple_overlay_update): Use all_objfiles.
11547 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
11548 * printcmd.c (info_symbol_command): Use all_objfiles.
11549 * objfiles.h (ALL_OBJSECTIONS): Remove.
11550 * maint.c (maintenance_translate_address): Use all_objfiles.
11551 * gcore.c (gcore_create_callback): Use all_objfiles.
11552 (objfile_find_memory_regions): Likewise.
11554 2019-01-09 Tom Tromey <tom@tromey.com>
11556 * symtab.c (find_line_symtab, info_sources_command)
11557 (make_source_files_completion_list): Use objfile_compunits.
11558 * source.c (select_source_symtab): Use objfile_compunits.
11559 * objfiles.h (struct objfile): Update comment.
11560 (ALL_OBJFILES): Remove.
11561 (ALL_FILETABS): Remove.
11562 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
11565 2019-01-09 Tom Tromey <tom@tromey.com>
11567 * symmisc.c (print_objfile_statistics, dump_objfile)
11568 (maintenance_print_symbols): Use compunit_filetabs.
11569 * source.c (forget_cached_source_info_for_objfile): Use
11571 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
11572 (ALL_FILETABS): Use compunit_filetabs.
11573 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
11574 * coffread.c (coff_symtab_read): Use compunit_filetabs.
11576 2019-01-09 Tom Tromey <tom@tromey.com>
11578 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
11579 (compunit_filetabs): New.
11580 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
11582 (info_sources_command, make_source_files_completion_list): Remove
11584 * symmisc.c (print_objfile_statistics, dump_objfile)
11585 (maintenance_print_symbols): Remove declaration.
11586 (maintenance_info_symtabs): Use compunit_filetabs.
11587 (maintenance_info_line_tables): Likewise.
11588 * source.c (select_source_symtab): Change local variable name.
11589 (forget_cached_source_info_for_objfile): Remove declaration.
11590 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
11591 * objfiles.c (objfile_relocate1): Remove declaration.
11592 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
11594 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
11595 * coffread.c (coff_symtab_read): Remove declaration.
11596 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
11599 2019-01-09 Tom Tromey <tom@tromey.com>
11601 * symtab.c (lookup_objfile_from_block)
11602 (find_pc_sect_compunit_symtab, search_symbols)
11603 (default_collect_symbol_completion_matches_break_on): Use
11605 * objfiles.h (ALL_COMPUNITS): Remove.
11606 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
11607 * cp-support.c (add_symbol_overload_list_qualified): Use
11609 * ada-lang.c (ada_collect_symbol_completion_matches)
11610 (ada_add_global_exceptions): Use objfile_compunits.
11612 2019-01-09 Tom Tromey <tom@tromey.com>
11614 * source.c (select_source_symtab)
11615 (forget_cached_source_info_for_objfile): Remove declaration.
11616 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
11618 * maint.c (count_symtabs_and_blocks): Remove declaration.
11619 * cp-support.c (add_symbol_overload_list_qualified): Remove
11621 * coffread.c (coff_symtab_read): Remove declaration.
11622 * symtab.c (lookup_symbol_in_objfile_symtabs)
11623 (basic_lookup_transparent_type_1): Use objfile_compunits.
11624 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
11625 (info_sources_command, search_symbols)
11626 (default_collect_symbol_completion_matches_break_on)
11627 (make_source_files_completion_list): Remove declaration.
11628 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
11629 (ada_collect_symbol_completion_matches)
11630 (ada_add_global_exceptions): Remove declaration.
11631 * linespec.c (iterate_over_all_matching_symtabs): Use
11633 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
11634 (class objfile_compunits): New.
11635 (ALL_COMPUNITS): Use objfile_compunits.
11636 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
11637 (maintenance_check_symtabs, maintenance_info_line_tables): Use
11639 * objfiles.c (objfile_relocate1): Use objfile_compunits.
11641 2019-01-09 Tom Tromey <tom@tromey.com>
11643 * symtab.c (search_symbols)
11644 (default_collect_symbol_completion_matches_break_on): Use
11646 * ada-lang.c (ada_lookup_simple_minsym)
11647 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
11648 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
11649 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
11651 * coffread.c (coff_symfile_read): Use objfile_msymbols.
11652 * symmisc.c (dump_msymbols): Use objfile_msymbols.
11653 * objc-lang.c (find_methods): Use objfile_msymbols.
11654 (info_selectors_command, info_classes_command): Likewise.
11655 * stabsread.c (scan_file_globals): Use objfile_msymbols.
11656 * objfiles.h (class objfile_msymbols): New.
11657 (ALL_OBJFILE_MSYMBOLS): Remove.
11658 (ALL_MSYMBOLS): Remove.
11660 2019-01-09 Tom Tromey <tom@tromey.com>
11662 * common/next-iterator.h (next_adapter): Add Iterator template
11664 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
11665 (class all_objfiles_safe): New.
11666 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
11667 * objfiles.c (put_objfile_before): Update comment.
11668 (add_separate_debug_objfile): Likewise.
11669 (free_all_objfiles): Use all_objfiles_safe.
11670 (objfile_purge_solibs): Likewise.
11672 2019-01-09 Tom Tromey <tom@tromey.com>
11674 * symtab.c (iterate_over_symtabs, matching_obj_sections)
11675 (expand_symtab_containing_pc, lookup_static_symbol)
11676 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
11677 (find_symbol_at_address, find_line_symtab, find_main_name): Use
11679 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
11680 * breakpoint.c (create_overlay_event_breakpoint)
11681 (create_longjmp_master_breakpoint)
11682 (create_std_terminate_master_breakpoint)
11683 (create_exception_master_breakpoint): Use all_objfiles.
11684 * linux-thread-db.c (try_thread_db_load_from_pdir)
11685 (has_libpthread): Use all_objfiles.
11686 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
11687 * linespec.c (iterate_over_all_matching_symtabs)
11688 (search_minsyms_for_name): Use all_objfiles.
11689 * maint.c (maintenance_info_sections): Use all_objfiles.
11690 * main.c (captured_main_1): Use all_objfiles.
11691 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
11692 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
11693 * guile/scm-pretty-print.c
11694 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
11695 * solib-spu.c (append_ocl_sos): Use all_objfiles.
11696 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
11697 (maintenance_print_msymbols): Use all_objfiles.
11698 * source.c (select_source_symtab): Use all_objfiles.
11699 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
11700 * symfile.c (remove_symbol_file_command)
11701 (expand_symtabs_matching, map_symbol_filenames): Use
11703 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
11705 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
11706 * objc-lang.c (find_methods): Use all_objfiles.
11707 * objfiles.c (have_partial_symbols, have_full_symbols)
11708 (have_minimal_symbols, qsort_cmp)
11709 (default_iterate_over_objfiles_in_search_order): Use
11711 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
11712 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
11713 (maintenance_check_psymtabs): Use all_objfiles.
11714 (ALL_PSYMTABS): Remove.
11715 * compile/compile-object-run.c (do_module_cleanup): Use
11717 * blockframe.c (find_pc_partial_function): Use all_objfiles.
11718 * cp-support.c (add_symbol_overload_list_qualified): Use
11720 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
11722 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
11723 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
11725 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
11726 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
11727 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
11729 * solib.c (solib_read_symbols): Use all_objfiles
11731 2019-01-09 Tom Tromey <tom@tromey.com>
11733 * probe.c (parse_probes_in_pspace): Use all_objfiles.
11734 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
11736 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
11737 * symmisc.c (print_symbol_bcache_statistics)
11738 (print_objfile_statistics, maintenance_print_objfiles)
11739 (maintenance_info_symtabs, maintenance_check_symtabs)
11740 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
11742 * source.c (forget_cached_source_info): Use all_objfiles.
11743 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
11744 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
11745 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
11746 * objfiles.c (update_section_map): Use all_objfiles.
11747 (shared_objfile_contains_address_p): Likewise.
11748 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
11749 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
11751 2019-01-09 Tom Tromey <tom@tromey.com>
11753 * common/next-iterator.h: New file.
11754 * objfiles.h (class all_objfiles): New.
11755 (struct objfile_iterator): New.
11757 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11759 * NEWS: Move the description of the changed "frame", "select-frame",
11760 and "info frame" commands to the Changed commands section.
11762 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
11764 * gdbtypes.c (check_stub_method_group): Remove handling of old
11766 * linespec.c (find_methods): Likewise.
11767 * stabsread.c (read_member_functions): Likewise.
11768 * valops.c (search_struct_method): Likewise.
11769 (value_struct_elt_for_reference): Likewise.
11770 * NEWS: Mention this change.
11772 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11774 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
11775 print_source_lines.
11776 * source.c (print_source_lines_base): Update line number check.
11777 (print_source_lines): New function.
11778 (source_lines_range::source_lines_range): New function.
11779 * source.h (class source_lines_range): New class.
11780 (print_source_lines): New declaration.
11782 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11784 * linespec.c (linespec_state_destructor): Free self->canonical_names.
11786 2019-01-08 Tom Tromey <tom@tromey.com>
11787 Simon Marchi <simon.marchi@ericsson.com>
11790 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
11791 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
11792 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
11793 * f-exp.y (DOLLAR_VARIABLE): Likewise.
11794 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
11795 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
11797 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
11799 * source.c (select_source_symtab): Move header comment to
11800 declaration in source.h.
11801 (forget_cached_source_info_for_objfile): Likewise.
11802 (forget_cached_source_info): Likewise.
11803 (identify_source_line): Likewise.
11804 * source.h (identify_source_line): Move declaration from symtab.h
11805 and add comment from source.c
11806 (print_source_lines): Likewise.
11807 (forget_cached_source_info_for_objfile): Likewise.
11808 (forget_cached_source_info): Likewise.
11809 (select_source_symtab): Likewise.
11810 (enum print_source_lines_flag): Move definition from symtab.h.
11811 * symtab.h (identify_source_line): Move declaration to source.h.
11812 (print_source_lines): Likewise.
11813 (forget_cached_source_info_for_objfile): Likewise.
11814 (forget_cached_source_info): Likewise.
11815 (select_source_symtab): Likewise.
11816 (enum print_source_lines_flag): Move definition to source.h.
11817 * tui/tui-hooks.c: Add 'source.h' include.
11819 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
11821 * source.c (print_source_lines_base): Handle requests to print
11822 reverse line number sequences, and guard against empty lines
11825 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
11827 * source.c (print_source_lines_base): Fix skip of '\r' if next
11830 2019-01-06 Tom Tromey <tom@tromey.com>
11832 * c-exp.y (struct c_parse_state) <macro_original_text,
11833 expansion_obstack>: New member.
11834 (macro_original_text, expansion_obstack): Remove globals.
11835 (scan_macro_expansion, scanning_macro_expansion)
11836 (finished_macro_expansion): Update.
11837 (scan_macro_cleanup): Remove.
11838 (yylex, c_parse): Update.
11840 2019-01-06 Tom Tromey <tom@tromey.com>
11842 * c-exp.y (struct c_parse_state) <strings>: New member.
11843 (operator_stoken): Update.
11845 2019-01-06 Tom Tromey <tom@tromey.com>
11847 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
11848 (union type_stack_elt) <typelist_val>: Now a pointer to
11850 (type_stack_cleanup): Don't declare.
11851 (push_typelist): Update.
11852 * parse.c (pop_typelist): Return a std::vector.
11853 (push_typelist): Take a std::vector.
11854 (follow_types): Update. Do not free args.
11855 (type_stack_cleanup): Remove.
11856 * c-exp.y (struct c_parse_state): New.
11857 (cpstate): New global.
11858 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
11859 (nonempty_typelist): Update.
11860 (func_mod): Create a new vector.
11861 (c_parse): Create a c_parse_state.
11862 (check_parameter_typelist): Do not delete params.
11863 (function_method): Update. Do not delete type_list.
11865 2019-01-06 Tom Tromey <tom@tromey.com>
11868 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
11870 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
11871 (print_return_value): Likewise.
11873 2019-01-05 Tom Tromey <tom@tromey.com>
11875 * contrib/cleanup_check.py: Remove.
11876 * contrib/gcc-with-excheck: Remove.
11877 * contrib/exsummary.py: Remove.
11878 * contrib/excheck.py: Remove.
11880 2019-01-05 Joel Brobecker <brobecker@adacore.com>
11882 * thread.c (delete_thread_1): Add gdb_assert that THR is not
11883 NULL. Initialize tpprev to NULL instead of assigning it
11884 to NULL on the next statement.
11885 * windows-nat.c (windows_delete_thread): Remove check for
11886 main_thread_id before printing thread exit notifications.
11887 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
11888 Remove thread ID check against main_thread_id.
11889 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
11890 windows_delete_thread.
11891 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
11893 2019-01-04 Tom Tromey <tom@tromey.com>
11895 * compile/compile.c (_initialize_compile): Use upper case for
11896 metasyntactic variables.
11897 * symmisc.c (_initialize_symmisc): Use upper case for
11898 metasyntactic variables.
11899 * psymtab.c (_initialize_psymtab): Use upper case for
11900 metasyntactic variables.
11901 * demangle.c (demangle_command): Use upper case for metasyntactic
11903 (_initialize_demangler): Likewise.
11904 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
11907 2019-01-03 Tom Tromey <tom@tromey.com>
11909 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
11911 2019-01-03 Tom Tromey <tom@tromey.com>
11913 * python/py-symtab.c (salpy_str): Update.
11914 (struct salpy_sal_object) <symtab>: Now a PyObject.
11915 (salpy_dealloc): Update.
11916 (del_objfile_sal): Use gdbpy_ref.
11918 2019-01-03 Tom Tromey <tom@tromey.com>
11920 * python/py-type.c (convert_field): Use new_reference. Return
11922 (make_fielditem): Return gdbpy_ref.
11923 (typy_fields): Update.
11924 (typy_getitem): Update.
11925 (field_name): Return gdbpy_ref. Use new_reference.
11926 (typy_iterator_iternext): Update.
11928 2019-01-03 Tom Tromey <tom@tromey.com>
11930 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
11932 2019-01-03 Tom Tromey <tom@tromey.com>
11934 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
11935 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
11936 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
11937 (pspy_set_frame_filters, pspy_set_frame_unwinders)
11938 (pspy_set_type_printers): Likewise.
11939 * python/py-function.c (fnpy_init): Use gdbpy_ref.
11940 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
11941 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
11942 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
11943 (objfpy_set_type_printers): Likewise.
11945 2019-01-03 Tom Tromey <tom@tromey.com>
11947 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
11948 (gdbpy_print_stack): Use gdbpy_err_fetch.
11949 * python/python-internal.h (class gdbpy_err_fetch): New class.
11950 (class gdbpy_enter) <m_error_type, m_error_value,
11951 m_error_traceback>: Remove.
11952 <m_error>: New member.
11953 (gdbpy_exception_to_string): Don't declare.
11954 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
11955 * python/py-value.c (convert_value_from_python): Use
11957 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
11958 gdbpy_exception_to_string.
11959 (gdbpy_handle_exception): Use gdbpy_err_fetch.
11960 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
11963 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11965 * linux-nat.c (delete_lwp_cleanup): Delete.
11966 (struct lwp_deleter): New struct.
11967 (lwp_info_up): New typedef.
11968 (linux_nat_target::follow_fork): Delete cleanup, and make use of
11971 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11973 * linux-fork.c (class scoped_switch_fork_info): New class.
11974 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
11976 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11978 * valops.c (find_overload_match): Remove use of null_cleanup, and
11979 calls to do_cleanups.
11981 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11983 * compile/compile-cplus-types.c
11984 (compile_cplus_instance::decl_name): Handle changes to
11986 * cp-support.c (cp_func_name): Update header comment, update
11988 * cp-support.h (cp_func_name): Update return type in declaration.
11989 * valops.c (find_overload_match): Move temp_func local to top
11990 level of function and change its type. Use temp_func to hold and
11991 delete temporary string obtained from cp_func_name.
11993 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11995 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
11996 gdb::char_vector, remove cleanup, and update uses of `msg`.
11998 2019-01-03 Jim Wilson <jimw@sifive.com>
12000 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
12002 2019-01-02 Tom Tromey <tom@tromey.com>
12004 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
12005 (tdesc_parse_xml): Remove cleanups.
12006 * target-descriptions.h (make_cleanup_free_target_description):
12008 (target_desc_deleter): New struct.
12009 (target_desc_up): New typedef.
12010 * target-descriptions.c (target_desc_deleter::operator()): Rename
12011 from free_target_description.
12012 (make_cleanup_free_target_description): Remove.
12014 2019-01-02 Tom Tromey <tom@tromey.com>
12016 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
12017 constructor, destructor.
12018 (linespec_parser): Remove typedef.
12019 (~linespec_parser): Rename from linespec_parser_delete.
12020 (linespec_lex_to_end, linespec_complete_label)
12021 (linespec_complete): Update.
12022 (decode_line_full): Remove cleanups.
12023 (decode_line_1): Update.
12025 2019-01-02 Tom Tromey <tom@tromey.com>
12027 * python/python-internal.h (inferior_to_inferior_object): Change
12029 * python/py-exitedevent.c (create_exited_event_object): Update.
12030 * python/py-inferior.c (inferior_to_inferior_object): Return
12032 (python_new_inferior, python_inferior_deleted)
12033 (thread_to_thread_object, delete_thread_object)
12034 (build_inferior_list, gdbpy_selected_inferior): Update.
12035 * python/py-infthread.c (create_thread_object): Update. Also fail
12036 if inferior_to_inferior_object fails.
12038 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
12040 * inferior.h (class inferior) <displaced_step_state>: New field.
12041 * infrun.h (struct displaced_step_state): Move here from
12042 infrun.c. Initialize fields, add constructor.
12043 <inf>: Remove field.
12044 <reset>: New method.
12045 * infrun.c (struct displaced_step_inferior_state): Move to
12047 (displaced_step_inferior_states): Remove.
12048 (get_displaced_stepping_state): Adust.
12049 (displaced_step_in_progress_any_inferior): Adjust.
12050 (displaced_step_in_progress_thread): Adjust.
12051 (displaced_step_in_progress): Adjust.
12052 (add_displaced_stepping_state): Remove.
12053 (get_displaced_step_closure_by_addr): Adjust.
12054 (remove_displaced_stepping_state): Remove.
12055 (infrun_inferior_exit): Call displaced_step_state.reset.
12056 (use_displaced_stepping): Don't check for NULL.
12057 (displaced_step_prepare_throw): Call
12058 get_displaced_stepping_state.
12059 (displaced_step_fixup): Don't check for NULL.
12060 (prepare_for_detach): Don't check for NULL.
12062 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12064 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
12065 in case of call that did not complete.
12067 2019-01-02 Andrey Utkin <autkin@undo.io>
12069 * symfile.c (find_separate_debug_file): Fix search of debug files for
12072 2019-01-02 Tom Tromey <tom@tromey.com>
12074 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
12076 * python/py-frame.c (frapy_older): Remove cast.
12077 (frapy_newer): Likewise.
12078 * python/py-breakpoint.c (local_setattro): Remove cast.
12079 * python/py-arch.c (archpy_name): Remove local variable.
12080 * python/py-type.c (gdbpy_lookup_type): Remove cast.
12082 2019-01-02 Joel Brobecker <brobecker@adacore.com>
12084 * unittests/basic_string_view/element_access/char/empty.cc:
12085 Fix year range in copyright header.
12087 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
12089 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
12091 <operator==>: Update with for removed field.
12093 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
12094 <isa_features>: ...this.
12095 <abi_features>: New field.
12096 (riscv_isa_flen): Update comment.
12097 (riscv_abi_xlen): New declaration.
12098 (riscv_abi_flen): New declaration.
12099 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
12101 (riscv_abi_xlen): New function.
12102 (riscv_isa_flen): Update to get answer from isa_features.
12103 (riscv_abi_flen): New function.
12104 (riscv_has_fp_abi): Update to get answer from abi_features.
12105 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
12107 (riscv_call_info) <xlen, flen>: Update comment.
12108 (riscv_call_arg_struct): Remove invalid assertions
12109 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
12111 (riscv_gdbarch_init): Gather isa features and abi features
12112 separately, ensure both match on the gdbarch when reusing an old
12113 gdbarch. Relax an error check to allow 32-bit abi float to run on
12114 a target with 64-bit float hardware.
12116 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12118 * source.c (search_command_helper): Stop reverse search
12119 when line 1 has been searched.
12121 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12123 * record-full.c (record_full_base_target::close): Rewrite
12124 record_full_core_buf_list free logic.
12126 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12128 * break-catch-syscall.c (print_one_catch_syscall): xfree
12131 2019-01-01 Joel Brobecker <brobecker@adacore.com>
12133 * top.c (print_gdb_version): Update Copyright year in version
12136 2019-01-01 Joel Brobecker <brobecker@adacore.com>
12138 Update copyright year range in all GDB files.
12140 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
12142 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
12144 For older changes see ChangeLog-2018.
12150 version-control: never