1 2019-08-13 Tom Tromey <tom@tromey.com>
3 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
5 * tui/tui-data.c (tui_initialize_static_data): Update.
7 2019-08-13 Tom Tromey <tom@tromey.com>
9 * tui/tui-winsource.h (struct tui_exec_info_window)
10 <~tui_exec_info_window, maybe_allocate_content, get_content,
12 (struct tui_source_window_base) <set_exec_info_content,
13 show_exec_info_content>: Don't declare.
15 (tui_exec_info_window::maybe_allocate_content): Remove.
16 (tui_source_window_base::update_exec_info): Rename from
17 set_exec_info_content.
18 (tui_source_window_base::show_exec_info_content)
19 (tui_source_window_base::update_exec_info): Remove.
21 2019-08-13 Tom Tromey <tom@tromey.com>
23 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
25 * tui/tui-winsource.c (tui_update_source_window_as_is)
26 (tui_update_source_windows_with_addr, tui_erase_source_content):
28 (tui_clear_exec_info_content): Remove.
30 2019-08-13 Tom Tromey <tom@tromey.com>
32 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
34 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
35 call tui_erase_exec_info_content.
36 (tui_clear_exec_info_content): Rename from
37 tui_erase_exec_info_content.
38 (tui_clear_exec_info_content): Delete.
40 2019-08-13 Tom Tromey <tom@tromey.com>
42 * tui/tui-winsource.h (struct tui_source_window_base)
43 <show_exec_info_content>: Declare.
44 (tui_show_exec_info_content): Don't declare.
46 (tui_source_window_base::show_exec_info_content): Rename from
47 tui_show_exec_info_content.
48 (tui_source_window_base::update_exec_info): Update.
50 2019-08-13 Tom Tromey <tom@tromey.com>
52 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
53 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
54 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
55 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
56 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
57 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
60 2019-08-13 Tom Tromey <tom@tromey.com>
62 * tui/tui-winsource.h (struct tui_source_window_base)
63 <update_exec_info>: Declare.
64 (tui_update_exec_info): Don't declare.
65 * tui/tui-winsource.c (tui_update_source_window_as_is)
66 (tui_source_window_base::refresh_all)
67 (tui_update_all_breakpoint_info): Update.
68 (tui_source_window_base::update_exec_info): Rename from
70 * tui/tui-stack.c (tui_show_frame_info): Update.
72 2019-08-13 Tom Tromey <tom@tromey.com>
74 * tui/tui-winsource.h (struct tui_source_window_base)
75 <set_exec_info_content>: Declare.
76 (tui_set_exec_info_content): Don't declare.
78 (tui_source_window_base::set_exec_info_content): Rename from
79 tui_set_exec_info_content.
80 (tui_update_exec_info): Update.
82 2019-08-13 Tom Tromey <tom@tromey.com>
84 * tui/tui-winsource.h (struct tui_source_window_base)
85 <show_source_content>: Declare.
86 (tui_show_source_content): Don't declare.
87 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
88 (tui_source_window_base::show_source_content): Rename from
89 tui_show_source_content.
90 (tui_source_window_base::refresh_all): Update.
91 * tui/tui-layout.c (show_source_disasm_command)
92 (show_source_or_disasm_and_command): Update.
94 2019-08-13 Tom Tromey <tom@tromey.com>
96 * tui/tui-winsource.c (tui_erase_source_content)
97 (tui_show_source_content, tui_source_window_base::refresh_all):
99 * tui/tui-wingeneral.h
100 (tui_check_and_display_highlight_if_needed): Don't declare.
101 * tui/tui-wingeneral.c
102 (tui_win_info::check_and_display_highlight_if_needed): Rename from
103 check_and_display_highlight_if_needed.
104 * tui/tui-win.c (tui_rehighlight_all)
105 (tui_win_info::make_visible_with_new_height): Update.
106 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
107 (tui_data_window::erase_data_content)
108 (tui_data_window::display_all_data): Update.
109 * tui/tui-data.h (struct tui_win_info)
110 <check_and_display_highlight_if_needed>: Declare.
112 2019-08-13 Tom Tromey <tom@tromey.com>
114 * tui/tui-win.c (tui_resize_all): Call
115 tui_delete_invisible_windows.
116 * tui/tui-layout.c (show_layout): Call
117 tui_delete_invisible_windows.
118 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
119 * tui/tui-data.c (tui_delete_invisible_windows): New function.
121 2019-08-13 Tom Tromey <tom@tromey.com>
123 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
124 tui_add_win_to_layout.
126 2019-08-13 Tom Tromey <tom@tromey.com>
128 * tui/tui-layout.h (tui_default_win_height): Don't declare.
129 * tui/tui-layout.c (tui_default_win_height): Now static.
131 2019-08-13 Tom Tromey <tom@tromey.com>
133 * tui/tui-layout.c (show_layout): Unify all layout cases into a
135 (show_source_disasm_command, show_source_or_disasm_and_command):
136 Don't check current layout.
138 2019-08-13 Tom Tromey <tom@tromey.com>
140 * tui/tui-wingeneral.c (make_all_visible): Remove.
141 (tui_make_all_invisible): Simplify.
142 * tui/tui-layout.c (tui_make_all_invisible): Move from
143 tui-wingeneral.c; simplify.
144 (show_layout): Hoist call to tui_make_all_invisible.
145 (show_data): Don't call tui_make_all_invisible.
147 2019-08-13 Tom Tromey <tom@tromey.com>
149 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
150 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
152 2019-08-13 Tom Tromey <tom@tromey.com>
154 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
156 (show_source_disasm_command, show_data)
157 (show_source_or_disasm_and_command): Don't use
158 tui_set_current_layout_to.
159 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
160 * tui/tui-data.c (current_layout, tui_current_layout): Move to
162 (tui_set_current_layout_to): Remove.
164 2019-08-13 Tom Tromey <tom@tromey.com>
166 * tui/tui-layout.c (tui_set_layout): Update.
167 * tui/tui-data.h (struct tui_layout_def): Remove.
168 (tui_layout_def): Don't declare.
169 * tui/tui-data.c (layout_def): Remove.
170 (tui_layout_def): Remove.
172 2019-08-13 Tom Tromey <tom@tromey.com>
174 * tui/tui-winsource.h (struct tui_source_window_base)
175 <clear_detail>: No longer "override".
176 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
177 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
178 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
179 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
181 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
183 2019-08-13 Tom Tromey <tromey@adacore.com>
185 * tracepoint.c: Don't include readline.h or history.h.
187 2019-08-12 Tom Tromey <tom@tromey.com>
189 * configure: Rebuild.
190 * configure.ac: Check for readline 7.
191 * NEWS: Mention readline 7 requirement.
194 2019-08-12 Tom Tromey <tom@tromey.com>
196 * mingw-hdep.c (gdb_select): Remove readline hack.
198 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
200 * blockframe.c (find_pc_partial_function): Set *block to nullptr
201 when the function fails.
203 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
205 * s390-tdep.c (s390_type_align): New function.
206 (s390_gdbarch_init): Set it as type_align gdbarch method.
208 2019-08-09 Tom de Vries <tdevries@suse.de>
211 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
212 pc_low with relocation offset.
214 2019-08-07 Tom Tromey <tromey@adacore.com>
216 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
217 (print_frame_args): Update.
218 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
220 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
221 * frame.h (struct frame_arg): Add initializers.
222 <error>: Now a unique_xmalloc_ptr.
224 2019-08-07 Alan Hayward <alan.hayward@arm.com>
226 * NEWS: Expand the Pointer Authentication entry.
227 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
228 (aarch64_frame_unmask_lr): ... to this.
229 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
230 Call aarch64_frame_unmask_lr.
231 * frame.c (struct frame_info): Add "masked" variable.
232 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
233 (fprint_frame): Check for masked pc.
234 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
236 * python/py-framefilter.c (py_print_frame): Check for masked pc.
237 * stack.c (print_frame): Check for masked pc.
239 2019-08-06 Tom Tromey <tom@tromey.com>
241 * stabsread.c (patch_block_stabs, read_one_struct_field)
242 (read_enum_type): Use obstack_strndup.
243 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
244 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
245 * dwarf2read.c (guess_full_die_structure_name)
246 (anonymous_struct_prefix): Use obstack_strndup.
247 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
248 * c-exp.y (yylex): Use obstack_strndup.
249 * ada-exp.y (write_object_renaming, write_ambiguous_var)
250 (write_var_or_type): Use obstack_strndup.
252 2019-08-06 Tom Tromey <tom@tromey.com>
254 * symfile.c (reread_symbols): Use obstack_strdup.
255 * stabsread.c (read_type): Use obstack_strdup.
256 * gdb_obstack.h (obstack_strdup): New overload.
257 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
258 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
259 (dwarf2_canonicalize_name): Use obstack_strdup.
260 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
261 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
264 2019-08-06 Tom Tromey <tom@tromey.com>
266 * gdb_obstack.h (obstack_strdup): Define.
267 * gdb_obstack.c (obstack_strdup): Don't define.
269 2019-08-06 Tom Tromey <tom@tromey.com>
271 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
273 * typeprint.c (typedef_hash_table::find_global_typedef): Use
275 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
276 * stabsread.c (common_block_start): Use obstack_strdup.
277 * objfiles.c (set_objfile_main_name, objfile): Use
279 * namespace.c (add_using_directive): Use obstack_strdup.
280 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
281 * jit.c (finalize_symtab): Use obstack_strdup.
282 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
283 (guess_partial_die_structure_name, partial_die_info::fixup)
284 (dwarf2_name): Use obstack_strdup.
285 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
287 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
288 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
290 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
292 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
294 * unittests/help-doc-selftests.c: New file.
295 * Makefile.in: Add the new file.
297 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
299 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
300 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
301 the full first line, except when FOR_VALUE_PREFIX. In this case,
302 the trailing '.' is not output, and the first character is uppercased.
303 (print_help_for_command): Update call to print_doc_line.
304 (print_doc_of_command): Likewise.
305 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
306 * cli/cli-option.c (append_indented_doc): Do not append newline.
307 (build_help_option): Append newline after first appended_indented_doc
308 only if a second call is done.
309 (build_help): Append 2 new lines before each option, except the first
311 * compile/compile.c (_initialize_compile): Add new lines after
312 %OPTIONS%, when not at the end of the help.
313 Change help doc or code
314 producing the help doc to respect the invariants.
315 * maint-test-options.c (_initialize_maint_test_options): Likewise.
316 Also removed the new line after 'Options:', as all other commands
317 do not put an empty line between 'Options:' and the first option.
318 * printcmd.c (_initialize_printcmd): Likewise.
319 * stack.c (_initialize_stack): Likewise.
320 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
321 incorrectly telling COMMAND is optional.
322 * ada-lang.c (_initialize_ada_language): Change help doc or code
323 producing the help doc to respect the invariants.
324 * ada-tasks.c (_initialize_ada_tasks): Likewise.
325 * breakpoint.c (_initialize_breakpoint): Likewise.
326 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
327 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
328 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
329 * cli/cli-style.c (cli_style_option::add_setshow_commands,
330 _initialize_cli_style): Likewise.
331 * corelow.c (core_target_info): Likewise.
332 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
333 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
334 * filesystem.c (_initialize_filesystem): Likewise.
335 * frame.c (_initialize_frame): Likewise.
336 * gnu-nat.c (add_task_commands): Likewise.
337 * infcall.c (_initialize_infcall): Likewise.
338 * infcmd.c (_initialize_infcmd): Likewise.
339 * interps.c (_initialize_interpreter): Likewise.
340 * language.c (_initialize_language): Likewise.
341 * linux-fork.c (_initialize_linux_fork): Likewise.
342 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
343 * maint.c (_initialize_maint_cmds): Likewise.
344 * memattr.c (_initialize_mem): Likewise.
345 * printcmd.c (_initialize_printcmd): Likewise.
346 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
348 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
349 * record-btrace.c (_initialize_record_btrace): Likewise.
350 * record-full.c (_initialize_record_full): Likewise.
351 * record.c (_initialize_record): Likewise.
352 * regcache-dump.c (_initialize_regcache_dump): Likewise.
353 * regcache.c (_initialize_regcache): Likewise.
354 * remote.c (add_packet_config_cmd, init_remote_threadtests,
355 _initialize_remote): Likewise.
356 * ser-tcp.c (_initialize_ser_tcp): Likewise.
357 * serial.c (_initialize_serial): Likewise.
358 * skip.c (_initialize_step_skip): Likewise.
359 * source.c (_initialize_source): Likewise.
360 * stack.c (_initialize_stack): Likewise.
361 * symfile.c (_initialize_symfile): Likewise.
362 * symtab.c (_initialize_symtab): Likewise.
363 * target-descriptions.c (_initialize_target_descriptions): Likewise.
364 * top.c (init_main): Likewise.
365 * tracefile-tfile.c (tfile_target_info): Likewise.
366 * tracepoint.c (_initialize_tracepoint): Likewise.
367 * tui/tui-win.c (_initialize_tui_win): Likewise.
368 * utils.c (add_internal_problem_command): Likewise.
369 * valprint.c (value_print_option_defs): Likewise.
371 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
374 * configure.ac: Drop enable-libmcheck support.
375 * configure, config.in: Rebuild.
376 * libmcheck.m4: Remove.
377 * acinclude.m4: Don't include it.
378 * Makefile.in: Don't distribute it.
379 * top.c (print_gdb_configuration): Don't mention it.
381 2019-08-06 Tom Tromey <tom@tromey.com>
383 * utils.c (set_output_style): Sometimes pass stream to
385 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
386 * record-btrace.c (btrace_insn_history): Update.
387 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
389 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
391 <m_uiout>: New field.
393 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
394 Remove "uiout" parameter.
395 (dump_insns): Update.
396 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
397 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
399 2019-08-06 Christian Biesinger <cbiesinger@google.com>
401 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
402 (error_in_psymtab_expansion): Likewise.
403 (lookup_symbol_via_quick_fns): Likewise.
404 (basic_lookup_transparent_type_quick): Likewise.
405 (basic_lookup_transparent_type_1): Likewise.
407 2019-08-06 Tom Tromey <tromey@adacore.com>
409 * source.c (last_source_error): Now bool.
410 (print_source_lines_base): Make "noprint" bool. Only open
411 source file when last_source_visited changes.
413 2019-08-06 Tom Tromey <tromey@adacore.com>
415 * annotate.c (annotate_source_line): Use g_source_cache.
416 * source-cache.c (source_cache::get_plain_source_lines): Change
417 parameters. Populate m_offset_cache.
418 (source_cache::ensure): New method.
419 (source_cache::get_line_charpos): New method.
420 (extract_lines): Move lower. Change parameters.
421 (source_cache::get_source_lines): Move lower.
422 * source-cache.h (class source_cache): Update comment.
423 <get_line_charpos>: New method.
424 <get_source_lines>: Update comment.
425 <clear>: Clear m_offset_cache.
426 <get_plain_source_lines>: Change parameters.
428 <m_offset_cache>: New member.
429 * source.c (forget_cached_source_info_for_objfile): Update.
430 (info_source_command): Use g_source_cache.
431 (find_source_lines, open_source_file_with_line_charpos): Remove.
432 (print_source_lines_base, search_command_helper): Use g_source_cache.
433 * source.h (open_source_file_with_line_charpos): Don't declare.
434 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
435 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
438 2019-08-06 Tom Tromey <tromey@adacore.com>
440 * source-cache.c (source_cache::get_plain_source_lines):
441 Remove "first_line" and "last_line" parameters.
442 (source_cache::get_source_lines): Cache plain text.
443 * source-cache.h (class source_cache)
444 <get_plain_source_lines>: Update.
446 2019-08-06 Tom Tromey <tromey@adacore.com>
448 * source-cache.c (extract_lines): No longer a method.
449 Changed type of parameter. Include final newline.
450 (selftests::extract_lines_test): New function.
451 (_initialize_source_cache): Likewise.
452 * source-cache.h (class source_cache)
453 <extract_lines>: Don't declare.
455 2019-08-06 Tom Tromey <tromey@adacore.com>
457 * breakpoint.c (init_breakpoint_sal): Update.
458 (breakpoint): Update.
459 * breakpoint.h (struct breakpoint) <filter>: Now a
462 2019-08-05 Christian Biesinger <cbiesinger@google.com>
464 * NEWS: Mention dictionary access on blocks.
465 * python/py-block.c (blpy_getitem): New function.
466 (block_object_as_mapping): New struct.
467 (block_object_type): Use new struct for tp_as_mapping field.
469 2019-08-05 Christian Biesinger <cbiesinger@google.com>
471 * objfiles.h (objfile): Add a comment describing partial symbols.
473 2019-08-05 Tom Tromey <tromey@adacore.com>
475 * compile/compile.c (_initialize_compile): Use _(), not N_().
476 * thread.c (_initialize_thread): Use _(), not N_().
477 * stack.c (_initialize_stack): Use _(), not N_().
478 * printcmd.c (_initialize_printcmd): Use _(), not N_().
480 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
482 * dwarf2read.c (struct dw2_symtab_iterator):
483 <want_specific_block>: Remove.
484 <block_index>: Change type to gdb::optional.
485 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
486 change type of BLOCK_INDEX parameter to gdb::optional.
487 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
488 (dw2_lookup_symbol): Don't pass argument for
490 (dw2_expand_symtabs_for_function): Don't pass argument for
491 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
492 (class dw2_debug_names_iterator)
493 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
494 parameter, change BLOCK_INDEX type to gdb::optional.
495 <m_want_specific_block>: Remove.
496 <m_block_index>: Change type to gdb::optional.
497 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
498 gdb::optional. Re-write in function of gdb::optional.
499 (dw2_debug_names_lookup_symbol): Don't pass argument for
501 (dw2_debug_names_expand_symtabs_for_function): Don't pass
502 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
505 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
507 * NEWS: Mention changes to "info sources" command.
509 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
511 * symtab.c (filename_partial_match_opts): New struct type.
512 (struct output_source_filename_data): New members
513 regexp, c_regexp, partial_match.
514 (output_source_filename): Use new members to decide to print file.
515 (info_sources_option_defs): New variable.
516 (make_info_sources_options_def_group, print_info_sources_header,
517 info_sources_command_completer):
519 (info_sources_command): Read new optional arguments.
520 (_initialize_symtab): Update info sources help.
522 2019-08-02 Alexandre Oliva <oliva@adacore.com>
524 * ada-lang.c (exception_support_info_v0): Renamed from...
525 (default_exception_support_info): ... this. Create new
527 (ada_has_this_exception_support): Look up catch_handlers_sym.
528 (ada_exception_support_info_sniffer): Try v0 after default.
530 2019-08-01 Tom Tromey <tromey@adacore.com>
532 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
535 2019-08-01 Christian Biesinger <cbiesinger@google.com>
537 * s12z-tdep.c: Fix include path for s12z-opc.h.
539 2019-08-01 Alan Hayward <alan.hayward@arm.com>
541 * NEWS: Require GNU make 3.82.
543 2019-07-16 Tom Tromey <tom@tromey.com>
545 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
548 2019-07-30 Tom Tromey <tromey@adacore.com>
550 * block.c (contained_in): Remove BLOCK_FUNCTION check.
552 2019-07-30 Kevin Buettner <kevinb@redhat.com>
554 * printcmd.c (print_address_symbolic): Print negative offsets.
555 (build_address_symbolic): Force signed arithmetic when computing
558 2019-07-30 Christian Biesinger <cbiesinger@google.com>
560 PR/24474: Add a function to lookup static variables.
561 * NEWS: Mention this new function.
562 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
563 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
564 * python/python.c (python_GdbMethods): Add new function.
566 2019-07-29 Christian Biesinger <cbiesinger@google.com>
568 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
569 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
570 (objfpy_lookup_static_symbol): New function.
571 (objfile_object_methods): Add new functions.
573 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
575 * NEWS: Mention 'set|show print frame-info'. Mention new
576 'presence' value for 'frame-arguments'. Mention new '-frame-info'
577 backtrace argument. Mention that python frame filtering code
578 is now consistent with what 'backtrace' command prints.
580 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
582 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
584 (print_frame_info_auto, print_frame_info_source_line,
585 print_frame_info_location, print_frame_info_source_and_location,
586 print_frame_info_location_and_address, print_frame_info_short_location):
588 (struct frame_print_options): New member print_frame_info.
589 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
590 * stack.h (get_user_print_what_frame_info): New declaration.
591 (frame_show_address): New declaration.
592 * stack.c (print_frame_arguments_choices): New value 'presence'.
593 (print_frame_info_auto, print_frame_info_source_line,
594 print_frame_info_location, print_frame_info_source_and_location,
595 print_frame_info_location_and_address, print_frame_info_short_location,
596 print_frame_info_choices, print_frame_info_print_what): New definitions.
597 (print_frame_args): Only print dots for args if print frame-arguments
599 (frame_print_option_defs): New element for "frame-info".
600 (get_user_print_what_frame_info): New function.
601 (frame_show_address): Make non static. Move comment to stack.h.
602 (print_frame_info_to_print_what): New function.
603 (print_frame_info): Update comment. Use fp_opts.print_frame_info
604 to decide what to print.
605 (backtrace_command_1): Handle the new print_frame_arguments_presence
607 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
608 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
609 (py_print_frame): In non-mi mode, use LOCATION as default for
610 print_what, similarly to frame information printed directly by
611 backtrace command. Handle frame-info user option in non MI mode.
613 2019-07-27 Kevin Buettner <kevinb@redhat.com>
615 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
616 Add case for debugging 32-bit target on 64-bit host. Revise
619 2019-07-27 Kevin Buettner <kevinb@redhat.com>
621 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
622 instead of find_function_entry_range_from_pc.
624 2019-07-27 Kevin Buettner <kevinb@redhat.com>
626 * stack.c (find_frame_funname): Remove code which preferred
627 minsym over symtab sym in "certain pathological cases".
629 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
630 parameter. Change type of "do_demangle" to bool.
631 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
632 Pass suitable "prefer_sym_over_minsym" flag to
633 build_address_symbolic(). Don't output "+" for negative offsets.
634 * printcmd.c (print_address_symbolic): Update invocation of
635 build_address_symbolic to include a "prefer_sym_over_minsym"
637 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
638 Restrict cases in which use of minimal symbol is preferred to that
639 of a found symbol. Update comments.
641 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
642 for entry pc when entry pc is out of range for that FDE.
644 2019-07-26 Brian Callahan <bcallah@openbsd.org>
647 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
650 2019-07-25 Christian Biesinger <cbiesinger@google.com>
652 * python/py-objfile.c (add_separate_debug_file): Fix comment about
653 this function's Python signature.
656 2019-07-24 Christian Biesinger <cbiesinger@google.com>
658 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
659 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
660 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
661 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
662 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
665 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
667 * h8300-tdep.c (h8300_register_name_common): New.
668 h8300_register_name): Use h8300_register_name_common.
669 (h8300s_register_name): Likewise.
670 (h8300sx_register_name): Likewise.
671 (h8300h_register_nam): New.
672 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
675 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
677 * arm-tdep.c (arm_skip_cmse_entry): New function.
678 (arm_is_sgstubs_section): New function.
679 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
681 2019-07-22 Tom Tromey <tom@tromey.com>
683 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
686 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
688 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
691 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
693 * symtab.c (search_symbols): Adjust msymbol matching type arrays
694 so that GDB doesn't match any msymbols when searching in the
696 (print_symbol_info): Print using typedef_print or type_print based
697 on the type of the symbol. Add updated FIXME comment moved from...
698 (_initialize_symtab): ... move and update FIXME comment to above.
700 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
702 * NEWS: Mention adding -q option to "info types".
703 * symtab.c (struct info_types_options): New struct.
704 (info_types_options_defs): New variable.
705 (make_info_types_options_def_group): New function.
706 (info_types_command): Use gdb::option framework to parse options.
707 (info_types_command_completer): New function.
708 (_initialize_symtab): Extend the help text on "info types" and
709 register command completer.
711 2019-07-21 Christian Biesinger <cbiesinger@google.com>
713 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
714 (lookup_symbol_in_objfile): Change int to block_enum and add a
715 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
717 2019-07-20 Christian Biesinger <cbiesinger@google.com>
719 * MAINTAINERS (Write After Approval): Add self.
721 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
723 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
724 instruction to the dummy code region.
726 2019-07-19 Tom Tromey <tromey@adacore.com>
728 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
729 (ARGSUSED, PARAMS, __func__): Remove rules.
731 2019-07-19 Alan Hayward <alan.hayward@arm.com>
733 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
734 * features/arm/arm-with-iwmmxt.c: Remove.
735 * features/arm/arm-with-iwmmxt.xml: Remove.
736 * features/arm/arm-with-m-fpa-layout.c: Remove.
737 * features/arm/arm-with-m-fpa-layout.xml: Remove.
738 * features/arm/arm-with-m-vfp-d16.c: Remove.
739 * features/arm/arm-with-m-vfp-d16.xml: Remove.
740 * features/arm/arm-with-m.c: Remove.
741 * features/arm/arm-with-m.xml: Remove.
742 * features/arm/arm-with-neon.c: Remove.
743 * features/arm/arm-with-neon.xml: Remove.
744 * features/arm/arm-with-vfpv2.c: Remove.
745 * features/arm/arm-with-vfpv2.xml: Remove.
746 * features/arm/arm-with-vfpv3.c: Remove.
747 * features/arm/arm-with-vfpv3.xml: Remove.
749 2019-07-19 Alan Hayward <alan.hayward@arm.com>
751 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
753 2019-07-19 Alan Hayward <alan.hayward@arm.com>
755 * arch/aarch32.c (aarch32_create_target_description): Create
756 target descriptions using features.
757 * arch/arm.c (arm_create_target_description)
758 (arm_create_mprofile_target_description): Likewise.
759 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
761 2019-07-19 Alan Hayward <alan.hayward@arm.com>
763 * Makefile.in: Add new files.
764 * aarch32-tdep.c: New file.
765 * aarch32-tdep.h: New file.
766 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
767 Call aarch32_read_description.
768 * arch/aarch32.c: New file.
769 * arch/aarch32.h: New file.
770 * arch/arm.c (arm_create_target_description)
771 (arm_create_mprofile_target_description): New function.
772 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
773 (arm_create_target_description)
774 (arm_create_mprofile_target_description): New declaration.
775 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
776 read_description functions.
777 * arm-linux-nat.c (arm_linux_nat_target::read_description):
779 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
780 * arm-tdep.c (tdesc_arm_list): New variable.
781 (arm_register_g_packet_guesses): Call create description functions.
782 (arm_read_description) (arm_read_mprofile_description): New
784 * arm-tdep.h (arm_read_description)
785 (arm_read_mprofile_description): Add declaration.
786 * configure.tgt: Add new files.
788 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
790 * top.c (new_ui_command): Open specified terminal just once.
792 2019-07-18 Tom Tromey <tromey@adacore.com>
794 * symtab.c (main_name): Constify return type.
795 * symfile.c (set_initial_language): Update.
796 * symtab.h (main_name): Constify return type.
798 2019-07-17 Tom Tromey <tom@tromey.com>
800 * tui/tui-winsource.c (tui_update_source_window)
801 (tui_update_source_window_as_is)
802 (tui_update_source_windows_with_line): Remove return.
803 * tui/tui-disasm.c (tui_show_disassem)
804 (tui_show_disassem_and_update_source): Remove return.
805 * tui/tui.c (tui_reset): Remove return.
806 * tui/tui-wingeneral.c
807 (tui_check_and_display_highlight_if_needed): Remove return.
809 2019-07-17 Tom Tromey <tom@tromey.com>
811 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
813 2019-07-17 Tom Tromey <tom@tromey.com>
815 * tui/tui-winsource.h (struct tui_exec_info_window)
816 (struct tui_source_window_base): Move from tui-data.h.
817 * tui/tui-winsource.c: Move many method definitions from
818 elsewhere. Remove "structuring" comments.
819 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
820 (tui_source_window_base::refresh_window): Move to
822 * tui/tui-win.c (tui_source_window_base::refresh_all)
823 (tui_source_window_base::update_tab_width)
824 (tui_source_window_base::set_new_height)
825 (tui_source_window_base::do_make_visible_with_new_height): Move to
827 * tui/tui-source.h: Update.
828 * tui/tui-source.c (tui_source_window_base::reset): Move to
830 * tui/tui-disasm.h: Update.
831 * tui/tui-data.h (struct tui_exec_info_window): Move to
833 (struct tui_source_window_base): Likewise.
834 * tui/tui-data.c (tui_source_window_base::clear_detail)
835 (tui_source_window_base, ~tui_source_window_base): Move to
838 2019-07-17 Tom Tromey <tom@tromey.com>
840 * tui/tui-win.c (tui_resize_all)
841 (tui_source_window_base::update_tab_width)
842 (tui_adjust_win_heights): Update.
843 (tui_win_info::make_invisible_and_set_new_height): Rename from
844 make_invisible_and_set_new_height.
845 * tui/tui-data.h (struct tui_win_info)
846 <make_invisible_and_set_new_height>: New method.
848 2019-07-17 Tom Tromey <tom@tromey.com>
851 * tui/tui-source.h (struct tui_source_window): Move from
853 * tui/tui-layout.c: Update.
854 * tui/tui-disasm.c: Update.
855 * tui/tui-data.h (struct tui_source_window): Move to
858 2019-07-17 Tom Tromey <tom@tromey.com>
860 * tui/tui-disasm.h (struct tui_disasm_window): Move from
862 * tui/tui-data.h (struct tui_disasm_window): Move to
865 2019-07-17 Tom Tromey <tom@tromey.com>
867 * tui/tui-regs.h (struct tui_data_item_window): Move from
869 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
870 * tui/tui-data.h (struct tui_data_item_window): Move to
872 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
874 2019-07-17 Tom Tromey <tom@tromey.com>
877 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
878 (tui_cmd_window::max_height): Move to tui-command.c.
879 * tui/tui-layout.c: Update.
880 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
881 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
883 * tui/tui-command.h (struct tui_cmd_window): Move from
885 * tui/tui-command.c: Remove "structuring" comments.
886 (tui_cmd_window::clear_detail)
887 (tui_cmd_window::do_make_visible_with_new_height)
888 (tui_cmd_window::max_height): Move from elsewhere.
890 2019-07-17 Tom Tromey <tom@tromey.com>
892 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
894 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
895 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
897 2019-07-17 Tom Tromey <tom@tromey.com>
900 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
902 * tui/tui-windata.h: Remove file.
903 * tui/tui-windata.c: Remove file.
904 * tui/tui-win.c (tui_data_window::set_new_height)
905 (tui_data_window::do_make_visible_with_new_height): Move to
907 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
908 * tui/tui-regs.c: Remove "structuring" comments.
909 (tui_data_window::first_data_item_displayed)
910 (tui_data_window::delete_data_content_windows)
911 (tui_data_window::erase_data_content)
912 (tui_data_window::display_all_data)
913 (tui_data_window::refresh_all)
914 (tui_data_window::do_scroll_vertical)
915 (tui_data_window::clear_detail, tui_data_window::set_new_height)
916 (tui_data_window::do_make_visible_with_new_height)
917 (tui_data_window::refresh_window): Move from elsewhere.
918 (_initialize_tui_regs): Move to end of file.
919 * tui/tui-layout.c: Update.
920 * tui/tui-hooks.c: Update.
921 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
922 * tui/tui-data.c (tui_data_window::clear_detail): Move to
924 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
926 2019-07-17 Tom Tromey <tom@tromey.com>
928 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
931 2019-07-17 Tom Tromey <tom@tromey.com>
933 * tui/tui-win.c (tui_source_window_base::set_new_height)
934 (tui_source_window_base::do_make_visible_with_new_height): Use
935 m_has_locator field directly.
936 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
938 (struct tui_source_window_base) <has_locator>: Likewise.
940 2019-07-17 Tom Tromey <tom@tromey.com>
942 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
944 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
946 * tui/tui-win.c (tui_source_window_base::set_new_height)
947 (tui_source_window_base::set_new_height)
948 (make_invisible_and_set_new_height)
949 (tui_source_window_base::do_make_visible_with_new_height)
950 (tui_source_window_base::do_make_visible_with_new_height):
952 * tui/tui-layout.c (show_source_disasm_command, show_data)
953 (show_source_or_disasm_and_command): Update.
954 * tui/tui-layout.c (show_layout): Update.
956 2019-07-17 Tom Tromey <tom@tromey.com>
958 * tui/tui-layout.c (make_data_window): Remove.
959 (show_data): Unify creation and re-initialization cases.
961 2019-07-17 Tom Tromey <tom@tromey.com>
963 * tui/tui-layout.c (make_source_window, make_disasm_window):
965 (show_data): Unify creation and re-initialization cases.
967 2019-07-17 Tom Tromey <tom@tromey.com>
969 * tui/tui-layout.c (make_command_window): Remove.
970 (show_source_disasm_command, show_source_or_disasm_and_command):
971 Unify creation and re-initialization cases.
973 2019-07-17 Tom Tromey <tom@tromey.com>
975 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
976 creation and re-initialization cases.
978 2019-07-17 Tom Tromey <tom@tromey.com>
980 * tui/tui-regs.c (tui_get_register): Return void.
982 2019-07-17 Tom Tromey <tom@tromey.com>
984 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
987 2019-07-17 Tom Tromey <tom@tromey.com>
989 * tui/tui-layout.c (show_source_disasm_command): Simplify window
992 2019-07-17 Tom Tromey <tom@tromey.com>
994 * tui/tui.h (tui_set_layout_by_name): Don't declare.
995 * tui/tui-regs.c (tui_reg_layout): New function.
996 (tui_show_registers, tui_reg_command): Use it.
997 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
998 (tui_layout_command): Rename from tui_set_layout_by_name. Change
1000 (tui_layout_command): Remove.
1002 2019-07-17 Tom Tromey <tom@tromey.com>
1004 * tui/tui-layout.h (tui/tui-layout): Return void.
1005 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
1007 2019-07-17 Tom Tromey <tom@tromey.com>
1009 * tui/tui-layout.c (show_source_disasm_command, show_data):
1011 (reset_locator): Remove.
1012 (show_source_or_disasm_and_command): Update.
1014 2019-07-17 Tom Tromey <tom@tromey.com>
1016 * tui/tui-source.c (tui_source_window_base::reset): Remove
1018 * tui/tui-layout.c (make_command_window, make_source_window)
1019 (make_disasm_window, make_data_window)
1020 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
1021 (reset_locator, show_source_or_disasm_and_command): Update.
1022 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
1024 (struct tui_source_window_base) <reset>: Likewise.
1026 2019-07-17 Tom Tromey <tom@tromey.com>
1028 * tui/tui-layout.c (show_source_disasm_command): Use
1030 (reset_locator): New function.
1031 (init_and_make_win): Remove.
1032 (show_source_or_disasm_and_command): Use reset_locator.
1034 2019-07-17 Tom Tromey <tom@tromey.com>
1036 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
1038 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
1040 * tui/tui-source.c (tui_source_window_base::reset): New method.
1041 * tui/tui-layout.c (make_command_window): Don't call
1043 (make_source_window, make_disasm_window): Don't call
1044 make_source_or_disasm_window.
1045 (make_data_window): Don't call init_and_make_win. Change calling
1047 (show_source_disasm_command, show_data): Simplify.
1048 (make_source_or_disasm_window): Remove.
1049 (show_source_or_disasm_and_command): Simplify.
1050 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
1051 (struct tui_source_window_base) <reset>: Likewise.
1052 <execution_info>: Remove initializer.
1053 * tui/tui-data.c (tui_source_window_base): Initialize
1056 2019-07-17 Tom Tromey <tom@tromey.com>
1058 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
1061 2019-07-17 Tom Tromey <tom@tromey.com>
1063 * tui/tui.c (tui_rl_other_window): Update.
1064 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
1065 superclass method first. Always iterate over regs_content.
1066 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
1068 * tui/tui-win.c (tui_set_focus_command): Update.
1070 2019-07-17 Tom Tromey <tom@tromey.com>
1072 * tui/tui-win.c (tui_set_focus_command): Rename from
1073 tui_set_focus. Call tui_enable.
1074 (tui_set_focus_command): Remove.
1076 2019-07-17 Tom Tromey <tom@tromey.com>
1078 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
1080 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
1082 (tui_data_window::refresh_window): Call refresh_window on data
1083 items. Always call superclass refresh_window.
1084 (tui_win_info::refresh): Remove.
1085 (tui_source_window_base::refresh_window): Update.
1086 (tui_refresh_all): Update.
1087 * tui/tui-layout.c (show_source_disasm_command): Remove call to
1089 (show_source_or_disasm_and_command): Likewise.
1090 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
1091 (struct tui_source_window_base) <refresh>: Likewise.
1093 2019-07-17 Tom Tromey <tom@tromey.com>
1095 * tui/tui-winsource.c (tui_clear_source_content)
1096 (tui_show_source_content): Update.
1097 * tui/tui-source.c (tui_source_window::showing_source_p): Check
1098 whether content is empty.
1099 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
1102 2019-07-17 Tom Tromey <tom@tromey.com>
1104 * tui/tui-winsource.c (tui_erase_source_content): Clear the
1106 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
1107 * tui/tui-source.c (tui_set_source_content_nil): Remove.
1109 2019-07-17 Tom Tromey <tom@tromey.com>
1111 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
1112 (struct tui_data_item_window): Update.
1114 2019-07-17 Tom Tromey <tom@tromey.com>
1116 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
1117 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
1120 2019-07-17 Tom Tromey <tom@tromey.com>
1122 * tui/tui-winsource.h (tui_erase_source_content)
1123 (tui_clear_source_content): Remove "display_prompt" parameter.
1124 * tui/tui-winsource.c (tui_update_source_window_as_is)
1125 (tui_update_source_windows_with_addr): Update.
1126 (tui_clear_source_content): Remove "display_prompt" parameter.
1127 (tui_erase_source_content): Likewise. Simplify.
1128 (tui_show_source_content): Update.
1129 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
1130 * tui/tui-stack.c (tui_show_frame_info): Update.
1131 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
1134 2019-07-17 Tom Tromey <tom@tromey.com>
1136 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1137 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
1139 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
1142 2019-07-17 Tom Tromey <tom@tromey.com>
1144 * tui/tui-winsource.c (tui_clear_source_content)
1145 (tui_show_source_content, tui_show_exec_info_content)
1146 (tui_clear_exec_info_content): Update.
1147 * tui/tui-stack.c (tui_show_locator_content): Update.
1148 (tui_show_frame_info): Update.
1149 * tui/tui-source.h (tui_source_window): Don't declare.
1150 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
1151 from tui_source_is_displayed.
1152 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
1154 (struct tui_source_window_base) <content_in_use>: New field. Now
1156 (struct tui_source_window) <showing_source_p>: New method.
1157 (TUI_SRC_WIN): Change cast.
1158 * tui/tui-data.c (tui_initialize_static_data): Update.
1160 2019-07-17 Tom Tromey <tom@tromey.com>
1162 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
1164 * tui/tui-source.c (tui_source_window::location_matches_p): New
1166 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
1168 * tui/tui-data.h (struct tui_source_window_base)
1169 <location_matches_p>: New method.
1170 (struct tui_source_window, struct tui_disasm_window)
1171 <location_matches_p>: Likewise.
1173 2019-07-17 Tom Tromey <tom@tromey.com>
1175 * tui/tui-win.c (tui_set_win_height_command): Rename from
1177 (tui_set_win_height_command): Remove.
1179 2019-07-17 Tom Tromey <tom@tromey.com>
1181 * tui/tui-source.c (tui_source_window): New constructor. Add
1183 (~tui_source_window): New destructor.
1184 (tui_source_window::style_changed): New method.
1185 * tui/tui-hooks.c (tui_redisplay_source): Remove.
1186 (tui_attach_detach_observers): Update.
1187 * tui/tui-data.h (struct tui_source_window): Make constructor not
1188 inline. Add destructor.
1189 (struct tui_source_window) <style_changed>: New method.
1190 <m_observable>: New member.
1192 2019-07-17 Tom Tromey <tom@tromey.com>
1194 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
1195 * tui/tui-win.c (tui_resize_all): Fix typo.
1197 2019-07-17 Tom Tromey <tom@tromey.com>
1199 * tui/tui-wingeneral.h (tui_refresh_all): Update.
1200 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
1201 (tui_refresh_all): Remove "list" parameter. Use foreach.
1202 * tui/tui-win.c (window_name_completer): Use foreach.
1203 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
1204 (update_tab_width): Likewise.
1205 * tui/tui-layout.c (show_layout): Update.
1206 * tui/tui-data.h (class tui_window_iterator): New.
1207 (struct all_tui_windows): New.
1208 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
1210 2019-07-17 Tom Tromey <tom@tromey.com>
1212 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
1213 parameter. Don't reference globals.
1214 (tui_reg_command): Update.
1216 2019-07-17 Tom Tromey <tom@tromey.com>
1218 * tui/tui-regs.c (tui_show_registers): Simplify.
1220 2019-07-17 Tom Tromey <tom@tromey.com>
1222 * tui/tui-regs.c (tui_show_registers): Update.
1223 (tui_show_register_group): Add win_info parameter.
1225 2019-07-17 Tom Tromey <tom@tromey.com>
1227 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
1228 Rename from tui_display_reg_element_at_line.
1229 (tui_data_window::display_registers_from_line): Update.
1230 * tui/tui-data.h (struct tui_data_window)
1231 <display_reg_element_at_line>: New method.
1233 2019-07-17 Tom Tromey <tom@tromey.com>
1235 * tui/tui-regs.h (tui_display_registers_from)
1236 (tui_display_registers_from_line): Don't declare.
1237 * tui/tui-windata.c (tui_data_window::display_all_data)
1238 (tui_data_window::refresh_all)
1239 (tui_data_window::do_scroll_vertical): Update.
1240 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
1241 from tui_display_registers_from.
1242 (tui_display_reg_element_at_line): Update.
1243 (tui_data_window::display_registers_from_line): Rename from
1244 tui_display_registers_from_line.
1245 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
1246 display_registers_from_line>: New methods.
1248 2019-07-17 Tom Tromey <tom@tromey.com>
1250 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
1251 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
1252 from tui_erase_data_content.
1253 (tui_data_window::display_all_data)
1254 (tui_data_window::refresh_all)
1255 (tui_data_window::do_scroll_vertical): Update.
1256 * tui/tui-regs.c (tui_show_registers): Update.
1257 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
1260 2019-07-17 Tom Tromey <tom@tromey.com>
1262 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
1265 (tui_data_window::delete_data_content_windows): Rename from
1266 tui_delete_data_content_windows.
1267 (tui_data_window::display_all_data)
1268 (tui_data_window::do_scroll_vertical): Update.
1269 * tui/tui-data.h (struct tui_data_window)
1270 <delete_data_content_windows>: New method.
1272 2019-07-17 Tom Tromey <tom@tromey.com>
1274 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
1275 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
1277 2019-07-17 Tom Tromey <tom@tromey.com>
1279 * tui/tui-windata.h (tui_display_all_data): Don't declare.
1280 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
1281 from tui_display_all_data.
1283 (tui_data_window::do_make_visible_with_new_height): Update.
1284 * tui/tui-regs.c (tui_show_registers): Update.
1285 * tui/tui-layout.c (tui_set_layout): Update.
1286 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
1289 2019-07-17 Tom Tromey <tom@tromey.com>
1291 * tui/tui-windata.h (tui_display_data_from): Don't declare.
1292 * tui/tui-windata.c (tui_display_data_from): Remove.
1293 (tui_data_window::refresh_all): Update.
1295 2019-07-17 Tom Tromey <tom@tromey.com>
1297 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
1298 * tui/tui-windata.c (tui_display_data_from_line): Remove.
1299 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
1300 tui_display_registers_from_line.
1301 * tui/tui-regs.h (tui_display_registers_from_line): Update.
1302 * tui/tui-regs.c (tui_display_registers_from_line): Remove
1303 "force_display" parameter.
1305 2019-07-17 Tom Tromey <tom@tromey.com>
1307 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
1309 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
1310 Rename from tui_first_reg_element_no_inline.
1311 (tui_display_reg_element_at_line)
1312 (tui_display_registers_from_line): Update.
1313 * tui/tui-data.h (struct tui_data_window)
1314 <first_reg_element_no_inline>: New method.
1316 2019-07-17 Tom Tromey <tom@tromey.com>
1318 * tui/tui-windata.c (tui_display_data_from)
1319 (tui_data_window::do_scroll_vertical): Update.
1320 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
1321 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
1322 Rename from tui_line_from_reg_element_no.
1323 (tui_display_registers_from_line): Update.
1324 * tui/tui-data.h (struct tui_data_window)
1325 <line_from_reg_element_no>: New method.
1327 2019-07-17 Tom Tromey <tom@tromey.com>
1329 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
1330 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
1331 tui_last_regs_line_no.
1332 (tui_display_reg_element_at_line)
1333 (tui_display_registers_from_line): Update.
1334 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
1337 2019-07-17 Tom Tromey <tom@tromey.com>
1340 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
1341 (tui_update_breakpoint_info): Add "being_deleted" parameter.
1342 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1343 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
1344 (tui_update_breakpoint_info): Likewise.
1345 * tui/tui-hooks.c (tui_event_create_breakpoint)
1346 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
1349 2019-07-17 Tom Tromey <tom@tromey.com>
1351 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
1353 2019-07-17 Tom Tromey <tom@tromey.com>
1355 * tui/tui-winsource.c (tui_update_source_window_as_is)
1356 (tui_update_source_windows_with_addr): Update.
1357 * tui/tui-source.h (tui_set_source_content)
1358 (tui_show_symtab_source): Add "win_info" parameter.
1359 * tui/tui-source.c (tui_set_source_content): Add "win_info"
1361 (tui_show_symtab_source): Likewise.
1363 2019-07-17 Tom Tromey <tom@tromey.com>
1365 * tui/tui-wingeneral.c
1366 (tui_check_and_display_highlight_if_needed): Check can_highlight.
1368 2019-07-17 Tom Tromey <tom@tromey.com>
1370 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
1371 (struct tui_cmd_window) <can_scroll>: New method.
1372 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
1375 2019-07-17 Tom Tromey <tromey@adacore.com>
1377 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
1378 do_field_signed>: Rename. Change type of "value".
1379 * ui-out.c (ui_out::field_signed): Rename from field_int.
1380 Change type of "value".
1381 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
1383 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
1384 do_field_int. Change type of "value".
1385 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
1386 do_field_int. Change type of "value".
1387 * tracepoint.c (trace_status_mi, tfind_1)
1388 (print_one_static_tracepoint_marker): Update.
1389 * thread.c (print_thread_info_1, print_selected_thread_frame):
1391 * stack.c (print_frame, print_frame_info): Update.
1392 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
1394 * source.c (print_source_lines_base): Update.
1395 * skip.c (info_skip_command): Update.
1396 * record-btrace.c (btrace_ui_out_decode_error)
1397 (btrace_call_history_src_line): Update.
1398 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
1400 * progspace.c (print_program_space): Update.
1401 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
1402 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
1403 do_field_int. Change type of "value".
1404 * mi/mi-out.c (mi_ui_out::do_table_begin)
1405 (mi_ui_out::do_table_header): Update.
1406 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
1408 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
1409 (mi_cmd_data_list_changed_registers, output_register)
1410 (mi_cmd_data_read_memory, mi_load_progress)
1411 (mi_cmd_trace_frame_collected): Update.
1412 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
1414 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
1415 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
1416 (mi_cmd_var_list_children, varobj_update_one): Update.
1417 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
1418 (mi_cmd_stack_list_args, list_arg_or_local): Update.
1419 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
1420 * inferior.c (print_inferior): Update.
1421 * gdb_bfd.c (print_one_bfd): Update.
1422 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1424 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
1425 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
1426 do_field_int. Change type of "value".
1427 * cli-out.c (cli_ui_out::do_field_signed): Rename from
1428 do_field_int. Change type of "value".
1429 * breakpoint.c (watchpoint_check, print_breakpoint_location)
1430 (print_one_breakpoint_location, print_it_catch_fork)
1431 (print_one_catch_fork, print_it_catch_vfork)
1432 (print_one_catch_vfork, print_it_catch_solib)
1433 (print_it_catch_exec, print_it_ranged_breakpoint)
1434 (print_mention_watchpoint, print_mention_masked_watchpoint)
1435 (bkpt_print_it, update_static_tracepoint): Update.
1436 * break-catch-throw.c (print_it_exception_catchpoint): Update.
1437 * break-catch-syscall.c (print_it_catch_syscall): Update.
1438 * ada-tasks.c (print_ada_task_info): Update.
1439 * ada-lang.c (print_it_exception, print_mention_exception):
1442 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1444 PR breakpoints/24541
1445 * gdbarch.c: Regenerate.
1446 * gdbarch.h: Regenerate.
1447 * gdbarch.sh: Adjust return type and parameter types for
1448 'stap_adjust_register'.
1449 (i386_stap_adjust_register): Adjust signature and return new
1451 * stap-probe.c (stap_parse_register_operand): Adjust use of
1452 'gdbarch_stap_adjust_register'.
1454 2019-07-17 Tom Tromey <tromey@adacore.com>
1456 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
1458 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
1460 (struct s390_process_info): Add initializers.
1461 (s390_add_process): Use new.
1462 (s390_linux_nat_target::low_forget_process): Use delete.
1463 (s390_linux_nat_target::low_new_fork)
1464 (s390_linux_nat_target::stopped_by_watchpoint)
1465 (s390_linux_nat_target::low_prepare_to_resume)
1466 (s390_linux_nat_target::insert_watchpoint)
1467 (s390_linux_nat_target::insert_hw_breakpoint)
1468 (s390_linux_nat_target::remove_watchpoint)
1469 (s390_linux_nat_target::remove_hw_breakpoint): Update.
1471 2019-07-16 John Baldwin <jhb@FreeBSD.org>
1473 * aarch64-fbsd-nat.c: Include regcache.h.
1474 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
1476 (aarch64_fbsd_nat_target::fetch_registers)
1477 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
1479 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
1481 2019-07-16 John Baldwin <jhb@FreeBSD.org>
1483 * fbsd-nat.c: Include gdbarch.h.
1485 2019-07-15 Tom Tromey <tromey@adacore.com>
1487 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
1489 2019-07-15 Tom Tromey <tromey@adacore.com>
1491 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
1492 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
1493 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
1494 * cli-out.c (cli_ui_out::do_field_int): New method.
1495 * ui-out.c (ui_out::field_unsigned): New method.
1496 * symfile.c (generic_load): Use field_unsigned.
1497 (print_transfer_performance): Likewise.
1498 * record-btrace.c (ui_out_field_uint): Remove.
1499 (btrace_call_history_insn_range, btrace_call_history): Use
1501 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
1503 * ui-out.h (class ui_out) <field_unsigned>: New method.
1504 <do_field_unsigned>: Likewise.
1506 2019-07-15 Tom Tromey <tromey@adacore.com>
1508 * mi/mi-main.c (list_available_thread_groups): Use field_string.
1509 * mi/mi-interp.c (mi_memory_changed): Use field_string.
1510 * target.c (flash_erase_command): Use field_string.
1511 * infrun.c (print_signal_received_reason): Use field_string.
1512 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
1513 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
1515 * ada-tasks.c (print_ada_task_info): Use field_string.
1517 2019-07-15 Tom Tromey <tromey@adacore.com>
1519 * target.c (flash_erase_command): Use field_core_addr.
1520 * symfile.c (generic_load): Use field_core_addr.
1521 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1522 Use field_core_addr.
1523 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
1526 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1528 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
1529 value if its desired type is smaller than a CORE_ADDR and signed.
1531 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1533 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
1534 of changes to field names, and use new is_reference field to
1535 decide if a property is a reference or not.
1536 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
1538 (struct dwarf2_property_baton): Update header comment, rename
1539 'referenced_type' to 'property_type' and update comments.
1540 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
1541 default property type, store in property baton, update to take
1542 accound of renamed field.
1543 (read_func_scope): Update call to attr_to_dynamic_prop.
1544 (read_array_type): Likewise.
1545 (dwarf2_per_cu_addr_sized_int_type): New function.
1546 (read_subrange_index_type): Move type finding code to
1547 dwarf2_per_cu_addr_sized_int_type.
1548 (read_subrange_type): Update calls to attr_to_dynamic_prop.
1549 (dwarf2_per_cu_addr_type): New function.
1550 (set_die_type): Update calls to attr_to_dynamic_prop.
1552 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1554 * dwarf2read.c (read_subrange_index_type): New function.
1555 (read_subrange_type): Move code into new function and call it.
1556 * gdbtypes.c (create_range_type): Add some asserts.
1558 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1560 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
1561 update return statements.
1562 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
1563 declaration, and update comment to match.
1564 * gdbtypes.c (resolve_dynamic_array): Update call to
1565 dwarf2_evaluate_property to match new return type.
1567 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1569 * valarith.c (value_subscripted_rvalue): Change lowerbound
1570 parameter type from int to LONGEST.
1571 * value.h (value_subscripted_rvalue): Likewise in declaration.
1573 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
1575 * cli/cli-utils.c (info_print_command_completer): New function.
1576 * cli/cli-utils.h: Add 'completer.h' include, and forward
1577 declaration for 'struct cmd_list_element'.
1578 (info_print_command_completer): Declare.
1579 * stack.c (_initialize_stack): Add completer for 'info locals' and
1581 * symtab.c (_initialize_symtab): Add completer for 'info
1582 variables' and 'info functions'.
1583 * NEWS: Mention completion for additional info commands.
1585 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
1587 * cli/cli-utils.c (extract_info_print_args): Delete.
1588 (extract_arg_maybe_quoted): Delete.
1589 (info_print_options_defs): New variable.
1590 (make_info_print_options_def_group): New function.
1591 (extract_info_print_options): Define new function.
1592 * cli/cli-utils.h (extract_info_print_args): Delete.
1593 (struct info_print_options): New structure.
1594 (extract_info_print_options): Declare new function.
1595 * stack.c (info_locals_command): Update to use new
1596 extract_info_print_options, also add a header comment.
1597 (info_args_command): Likewise.
1598 * symtab.c (info_variables_command): Likewise.
1599 (info_functions_command): Likewise.
1601 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
1603 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
1604 to extract string arguments.
1605 * common/common-utils.c (extract_string_maybe_quoted): New function.
1606 * common/common-utils.h (extract_string_maybe_quoted): Declare.
1608 2019-07-11 Tom Tromey <tromey@adacore.com>
1610 * main.c (get_init_files): Use GDBINIT, not gdbinit.
1611 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
1612 * top.h (gdbinit): Don't declare.
1613 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
1615 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
1616 * top.c (gdb_init): Don't call init_cli_cmds.
1618 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
1620 2019-07-11 Tom Tromey <tromey@adacore.com>
1622 * python/py-inferior.c (add_thread_object): Don't use thread_obj
1623 after it has been moved.
1625 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1627 * valops.c (value_must_coerce_to_target): Change return type to
1629 * value.h (value_must_coerce_to_target): Likewise.
1631 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
1633 * breakpoint.c (is_hardware_watchpoint): Remove
1634 forward-declaration.
1635 (is_masked_watchpoint): Change return type to bool.
1636 (is_tracepoint): Likewise.
1637 (is_breakpoint): Likewise.
1638 (is_hardware_watchpoint): Likewise.
1639 (is_watchpoint): Likewise.
1640 (is_no_memory_software_watchpoint): Likewise.
1641 (is_catchpoint): Likewise.
1642 (breakpoint_1): Make FILTER parameter's return type bool.
1643 is_masked_watchpoint): Change return type to bool.
1644 (save_breakpoints): Make FILTER parameter's return type bool.
1645 * breakpoint.h (is_breakpoint): Change return type to bool.
1646 (is_watchpoint): Likewise.
1647 (is_catchpoint): Likewise.
1648 (is_tracepoint): Likewise.
1650 2019-07-10 Tom Tromey <tom@tromey.com>
1652 * defs.h: Don't include gdbarch.h.
1653 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
1654 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
1655 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
1656 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
1657 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
1658 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
1659 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
1660 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
1661 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
1662 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
1663 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
1664 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
1665 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
1666 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
1667 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
1668 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
1669 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
1670 record-btrace.c, record.h, regcache-dump.c, regcache.h,
1671 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
1672 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
1673 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
1674 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
1675 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
1676 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
1677 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
1678 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
1679 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
1681 2019-07-10 Tom Tromey <tromey@adacore.com>
1683 * ada-lang.h (is_ada_exception_catchpoint): Declare.
1684 * breakpoint.c (init_ada_exception_breakpoint): Register as
1686 (print_one_breakpoint_location, print_one_breakpoint): Use
1687 is_ada_exception_catchpoint.
1688 * ada-lang.c (class ada_catchpoint_location): Pass
1689 bp_loc_software_breakpoint to bp_location constructor.
1690 (is_ada_exception_catchpoint): New function.
1692 2019-07-10 Tom Tromey <tromey@adacore.com>
1694 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
1696 (struct arm_exidx_entry): New method operator<.
1697 (struct arm_exidx_data) <section_maps>: Change type.
1698 (arm_exidx_data_free): Remove.
1699 (arm_exidx_data_key): Change type. Move lower.
1700 (arm_exidx_new_objfile): Update.
1701 (arm_compare_exidx_entries): Remove.
1702 (arm_find_exidx_entry, _initialize_arm_tdep)
1704 2019-07-10 Tom Tromey <tromey@adacore.com>
1706 * solib-spu.c (ocl_program_data_key): Change type.
1707 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
1710 2019-07-10 Tom Tromey <tromey@adacore.com>
1712 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
1713 (struct solib_aix_inferior_data) <library_list>: Change type.
1714 (solib_aix_inferior_data_handle): Change type.
1715 (get_solib_aix_inferior_data): Update.
1716 (solib_aix_free_library_list): Remove.
1717 (library_list_start_library): Update.
1718 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
1720 (solib_aix_get_library_list)
1721 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
1722 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
1724 2019-07-10 Tom Tromey <tromey@adacore.com>
1726 * solib-dsbt.c (struct dsbt_info): Add initializers.
1727 (solib_dsbt_pspace_data): Change type.
1728 (dsbt_pspace_data_cleanup): Remove.
1729 (get_dsbt_info, _initialize_dsbt_solib): Update.
1731 2019-07-10 Tom Tromey <tromey@adacore.com>
1733 * spu-tdep.c (spu_overlay_data): Change type.
1734 (spu_get_overlay_table, spu_overlay_new_objfile)
1735 (_initialize_spu_tdep): Update.
1737 2019-07-10 Tom Tromey <tromey@adacore.com>
1739 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
1741 (dbx_objfile_data_key): Change type and declare later.
1742 (DBX_SYMFILE_INFO): Rewrite.
1743 * dbxread.c (dbx_objfile_data_key): Change type.
1744 (dbx_symfile_init): Update.
1745 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
1746 (coffstab_build_psymtabs, elfstab_build_psymtabs)
1747 (stabsect_build_psymtabs, _initialize_dbxread): Update.
1749 2019-07-10 Tom Tromey <tromey@adacore.com>
1751 * jit.c (jit_program_space_key): Change type. Move lower.
1752 (get_jit_program_space_data): Update.
1753 (jit_program_space_data_cleanup): Remove.
1754 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
1756 (struct jit_program_space_data): Add initializers.
1758 2019-07-10 Tom Tromey <tromey@adacore.com>
1760 * solib-darwin.c (struct darwin_info): Add initializers.
1761 (solib_darwin_pspace_data): Change type.
1762 (darwin_pspace_data_cleanup): Remove.
1763 (get_darwin_info, _initialize_darwin_solib): Update.
1765 2019-07-10 Tom Tromey <tromey@adacore.com>
1767 * remote-sim.c (struct sim_inferior_data): Add initializers,
1768 constructor, and destructor.
1769 (sim_inferior_data_key): Change type. Move lower.
1770 (check_for_duplicate_sim_descriptor): Update.
1771 (get_sim_inferior_data): Use new. Update.
1772 (~sim_inferior_data_cleanup): Rename from
1773 sim_inferior_data_cleanup. Simplify.
1774 (gdbsim_close_inferior, simulator_command)
1775 (sim_command_completer, _initialize_remote_sim): Update.
1776 (next_pid, INITIAL_PID): Move earlier.
1778 2019-07-10 Tom Tromey <tromey@adacore.com>
1780 * python/python-internal.h (create_thread_object): Return
1782 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
1783 * python/py-inferior.c (struct threadlist_entry): Add
1785 <thread_obj>: Now a gdbpy_ref.
1786 (thread_to_thread_object): Update.
1787 (add_thread_object): Use new.
1788 (delete_thread_object): Use delete.
1789 (infpy_threads): Update.
1790 (py_free_inferior): Update. Construct "inf_obj" after acquiring
1793 2019-07-10 Tom Tromey <tromey@adacore.com>
1795 * valops.c (value_cast): Specialize error message for Ada.
1797 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1799 * breakpoint.c (breakpoint_1): Update doc and parameter names.
1801 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1803 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
1804 bpstat_should_step): Return bool, adjust comments.
1805 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
1806 bpstat_should_step): Likewise.
1808 2019-07-10 Alan Hayward <alan.hayward@arm.com>
1810 * features/Makefile: Use feature target descriptions for Arm.
1811 * features/arm/arm-core.c: Generate new file.
1812 * features/arm/arm-fpa.c: Likewise.
1813 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
1814 * features/arm/arm-m-profile.c: Likewise.
1815 * features/arm/arm-vfpv2.c: Likewise.
1816 * features/arm/arm-vfpv3.c: Likewise.
1817 * features/arm/xscale-iwmmxt.c: Likewise.
1818 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
1820 2019-07-10 Alan Hayward <alan.hayward@arm.com>
1822 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
1825 2019-07-10 Alan Hayward <alan.hayward@arm.com>
1827 * features/aarch64-pauth.c: Regenerate.
1829 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
1831 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
1833 (bpstat_what): Use false instead of 0.
1835 2019-07-09 Pedro Alves <palves@redhat.com>
1837 * break-catch-throw.c (is_exception_catchpoint): New.
1838 * breakpoint.c (print_one_breakpoint_location): New parameter
1839 'raw_loc'. Handle it. Use
1840 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
1841 looking at the breakpoint's type.
1842 (print_one_breakpoint): If handling "maint info breakpoints", also
1843 print locations of exception catchpoints.
1844 * breakpoint.h (is_exception_catchpoint): Declare.
1846 2019-07-09 Pedro Alves <palves@redhat.com>
1848 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
1850 (allocate_location_exception_catchpoint): New.
1851 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
1852 (initialize_throw_catchpoint_ops): Install
1853 allocate_location_exception_catchpoint as allocate_location
1855 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
1856 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
1858 (breakpoint_address_is_meaningful): Delete.
1859 (bl_address_is_meaningful): New.
1860 (breakpoint_locations_match): Adjust comment.
1861 (bp_location_from_bp_type): New, factored out of...
1862 (bp_location::bp_location(breakpoint *)): ... this.
1863 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
1865 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
1866 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
1867 breakpoint_address_is_meaningful.
1868 (bp_locations_compare): Adjust comment.
1869 (update_global_location_list): Use bl_address_is_meaningful
1870 instead of breakpoint_address_is_meaningful.
1871 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
1873 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
1874 * python/py-breakpoint.c (bppy_get_location): No longer check
1875 whether location is null.
1877 2019-07-09 Pedro Alves <palves@redhat.com>
1880 * breakpoint.c (print_one_breakpoint_location): Remove
1881 single-location assert.
1883 2019-07-09 Tom Tromey <tom@tromey.com>
1885 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
1886 * configure: Rebuild.
1887 * configure.ac: Change common to gdbsupport.
1888 * gdbsupport: Rename from common.
1889 * acinclude.m4: Change common to gdbsupport.
1890 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
1891 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
1893 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
1894 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
1895 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
1896 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
1897 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
1898 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
1899 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
1900 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
1901 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
1902 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
1903 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
1904 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
1905 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
1906 coff-pe-read.c, command.h, compile/compile-c-support.c,
1907 compile/compile-c.h, compile/compile-cplus-symbols.c,
1908 compile/compile-cplus-types.c, compile/compile-cplus.h,
1909 compile/compile-loc2c.c, compile/compile.c, completer.c,
1910 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
1911 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
1912 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
1913 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
1914 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
1915 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
1916 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
1917 features/aarch64-core.c, features/aarch64-fpu.c,
1918 features/aarch64-pauth.c, features/aarch64-sve.c,
1919 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
1920 features/i386/32bit-core.c, features/i386/32bit-linux.c,
1921 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
1922 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
1923 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
1924 features/i386/64bit-core.c, features/i386/64bit-linux.c,
1925 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
1926 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
1927 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
1928 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
1929 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
1930 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
1931 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
1932 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
1933 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
1934 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
1935 go32-nat.c, guile/guile.c, guile/scm-ports.c,
1936 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
1937 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
1938 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
1939 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
1940 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
1941 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
1942 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
1943 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
1944 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
1945 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
1946 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
1947 minsyms.c, mips-linux-tdep.c, namespace.h,
1948 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
1949 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
1950 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
1951 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
1952 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
1953 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
1954 nat/linux-waitpid.c, nat/mips-linux-watch.c,
1955 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
1956 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
1957 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
1958 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
1959 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
1960 procfs.c, producer.c, progspace.h, psymtab.h,
1961 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
1962 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
1963 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
1964 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
1965 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
1966 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
1967 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
1968 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
1969 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
1970 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
1971 target-memory.c, target.c, target.h, target/waitstatus.c,
1972 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
1973 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
1974 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
1975 unittests/array-view-selftests.c,
1976 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
1977 unittests/common-utils-selftests.c,
1978 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
1979 unittests/format_pieces-selftests.c,
1980 unittests/function-view-selftests.c,
1981 unittests/lookup_name_info-selftests.c,
1982 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
1983 unittests/mkdir-recursive-selftests.c,
1984 unittests/observable-selftests.c,
1985 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
1986 unittests/parse-connection-spec-selftests.c,
1987 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
1988 unittests/scoped_fd-selftests.c,
1989 unittests/scoped_mmap-selftests.c,
1990 unittests/scoped_restore-selftests.c,
1991 unittests/string_view-selftests.c, unittests/style-selftests.c,
1992 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
1993 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
1994 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
1995 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
1996 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
1997 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
1999 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2001 * linespec.c (decode_digits_list_mode): Set explicit_line to a
2003 (decode_digits_ordinary): Set explicit_line field in sal.
2004 * symtab.c (skip_prologue_sal): Don't skip prologue for a
2005 symtab_and_line that was set on an explicit line number in
2006 assembler code. Do always update the recorded symtab and line if
2007 we do skip the prologue.
2009 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2011 * breakpoint.c (set_breakpoint_location_function): Remove
2012 explicit_loc parameter.
2013 (momentary_breakpoint_from_master): Update call to
2014 set_breakpoint_location_function.
2015 (add_location_to_breakpoint): Likewise.
2017 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2019 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
2020 required features based on default bfd type when no specific bfd
2023 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2025 * NEWS: Mention that GDB printf and eval commands can now print
2026 C-style and Ada-style convenience var strings without
2027 calling the inferior.
2028 * printcmd.c (printf_c_string): Locally print GDB internal var
2029 instead of transiting via the inferior.
2030 (printf_wide_c_string): Likewise.
2032 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2034 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
2036 2019-07-04 Tom Tromey <tom@tromey.com>
2039 * tui/tui-winsource.c (tui_clear_source_content): Update.
2040 (tui_source_window_base::set_is_exec_point_at): Fix comment.
2041 (tui_update_breakpoint_info): Update.
2042 (tui_set_exec_info_content): Update.
2043 * tui/tui-source.c (tui_set_source_content_nil): Update.
2044 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
2046 * tui/tui-data.h (enum tui_bp_flag): New.
2047 (tui_bp_flags): New enum flags type.
2048 (struct tui_source_element) <break_mode>: Change type. Rename
2050 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
2051 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
2053 * tui/tui-winsource.h: Fix comment.
2055 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2057 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
2058 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
2059 (store_fpregs_to_thread)
2060 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
2061 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
2062 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
2063 (IWMMXT_REGS_SIZE): Add define.
2064 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
2065 (fetch_vfp_regs, store_vfp_regs)
2066 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
2067 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
2069 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2071 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
2073 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
2074 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
2075 (ARM_INT_REGISTER_SIZE): ...to this.
2076 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
2077 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
2078 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
2079 (arm_linux_collect_gregset, supply_nwfpe_register)
2080 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
2082 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
2083 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
2084 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
2085 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
2086 (arm_return_in_memory, arm_store_return_value)
2087 (arm_get_longjmp_target, arm_register_g_packet_guesses)
2088 (arm_record_ld_st_multiple): Likewise.
2089 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
2090 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
2092 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2094 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
2095 AARCH64_DISPLACED_MODIFIED_INSNS.
2096 * aarch64-tdep.c (struct aarch64_displaced_step_data)
2097 (aarch64_displaced_step_copy_insn): Likewise.
2098 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
2099 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
2100 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
2101 ARM_DISPLACED_MODIFIED_INSNS.
2102 * arm-tdep.c (arm_gdbarch_init): Likewise.
2103 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
2104 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
2105 (struct arm_displaced_step_closure): Use
2106 ARM_DISPLACED_MODIFIED_INSNS.
2108 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2110 * features/Makefile: Remove unused xml files.
2111 * features/aarch64.xml: Remove.
2112 * features/i386/amd64-avx-avx512-linux.xml: Remove.
2113 * features/i386/amd64-avx-avx512.xml: Remove.
2114 * features/i386/amd64-avx-linux.xml: Remove.
2115 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
2116 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
2117 * features/i386/amd64-avx-mpx-linux.xml: Remove.
2118 * features/i386/amd64-avx-mpx.xml: Remove.
2119 * features/i386/amd64-avx.xml: Remove.
2120 * features/i386/amd64-linux.xml: Remove.
2121 * features/i386/amd64-mpx-linux.xml: Remove.
2122 * features/i386/amd64-mpx.xml: Remove.
2123 * features/i386/amd64.xml: Remove.
2124 * features/i386/i386-avx-avx512-linux.xml: Remove.
2125 * features/i386/i386-avx-avx512.xml: Remove.
2126 * features/i386/i386-avx-linux.xml: Remove.
2127 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
2128 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
2129 * features/i386/i386-avx-mpx-linux.xml: Remove.
2130 * features/i386/i386-avx-mpx.xml: Remove.
2131 * features/i386/i386-avx.xml: Remove.
2132 * features/i386/i386-linux.xml: Remove.
2133 * features/i386/i386-mmx-linux.xml: Remove.
2134 * features/i386/i386-mmx.xml: Remove.
2135 * features/i386/i386-mpx-linux.xml: Remove.
2136 * features/i386/i386-mpx.xml: Remove.
2137 * features/i386/i386.xml: Remove.
2138 * features/i386/x32-avx-avx512-linux.xml: Remove.
2139 * features/i386/x32-avx-linux.xml: Remove.
2140 * features/i386/x32-linux.xml: Remove.
2142 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2144 * regformats/aarch64.dat: Remove.
2145 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
2146 * regformats/i386/amd64-avx-linux.dat: Remove.
2147 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
2148 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
2149 * regformats/i386/amd64-linux.dat: Remove.
2150 * regformats/i386/amd64-mpx-linux.dat: Remove.
2151 * regformats/i386/amd64.dat: Remove.
2152 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
2153 * regformats/i386/i386-avx-linux.dat: Remove.
2154 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
2155 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
2156 * regformats/i386/i386-linux.dat: Remove.
2157 * regformats/i386/i386-mmx-linux.dat: Remove.
2158 * regformats/i386/i386-mpx-linux.dat: Remove.
2159 * regformats/i386/i386.dat: Remove.
2160 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
2161 * regformats/i386/x32-avx-linux.dat: Remove.
2162 * regformats/i386/x32-linux.dat: Remove.
2164 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2166 * aarch64-tdep.c: Remove xml self tests.
2167 * amd64-linux-tdep.c: Likewise.
2168 * amd64-tdep.c: Likewise.
2169 * i386-linux-tdep.c: Likewise.
2170 * i386-tdep.c: Likewise.
2172 2019-07-03 Pedro Alves <palves@redhat.com>
2175 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
2176 (pipe_cmd_option_defs): New.
2177 (make_pipe_cmd_options_def_group): New.
2178 (pipe_command): Use gdb::option::process_options.
2179 (pipe_command_completer): New function.
2180 (_initialize_cli_cmds): Install completer for "pipe" command.
2182 2019-07-03 Pedro Alves <palves@redhat.com>
2184 * cli/cli-option.c (union option_value) <string>: New field.
2185 (struct option_def_and_value): Add ctor, move ctor, dtor and
2186 use DISABLE_COPY_AND_ASSIGN.
2187 (option_def_and_value::clear_value): New.
2188 (parse_option, save_option_value_in_ctx, get_val_type_str)
2189 (add_setshow_cmds_for_options): Handle var_string.
2190 * cli-option.h (union option_def::var_address) <string>: New
2192 (struct string_option_def): New.
2193 * maint-test-options.c (struct test_options_opts): Add default
2194 ctor and use DISABLE_COPY_AND_ASSIGN.
2195 <string_opt>: New field.
2196 (test_options_opts::~test_options_opts): New.
2197 (test_options_opts::dump): Also dump "-string".
2198 (test_options_option_defs): Install "string.
2200 2019-07-03 Pedro Alves <palves@redhat.com>
2202 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
2203 option_value with a null enumeration.
2204 (complete_options): Save the option values in the context.
2205 (save_option_value_in_ctx): New, factored out from ...
2206 (process_options): ... here.
2207 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
2209 * maint-test-options.c (test_options_opts::dump): New, factored
2211 (maintenance_test_options_command_mode): ... here.
2212 (maintenance_test_options_command_completion_result): Delete.
2213 (maintenance_test_options_command_completion_text): Update
2215 (maintenance_show_test_options_completion_result): Change
2216 prototype. Just print
2217 maintenance_test_options_command_completion_text.
2218 (save_completion_result): New.
2219 (maintenance_test_options_completer_mode): Pass options context to
2220 complete_options, and then save a dump.
2221 (_initialize_maint_test_options): Use add_cmd to install "maint
2222 show test-options-completion-result".
2224 2019-07-03 Pedro Alves <palves@redhat.com>
2226 * NEWS (New commands): Mention "with" and "maint with".
2227 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
2228 (with_command, with_command_completer): New.
2229 (pipe_command): Adjust to new repeat_previous
2231 (_initialize_cli_cmds): Install the "with" command and its "w"
2233 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
2235 * cli/cli-setshow.c (parse_cli_var_uinteger)
2236 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
2237 argument strings for all var_types.
2238 (get_setshow_command_value_string): New, factored out from ...
2239 (do_show_command): ... this.
2240 * cli/cli-setshow.h: Include <string>.
2241 (get_setshow_command_value_string): Declare.
2242 * command.h (repeat_previous): Now returns const char *. Adjust
2244 * maint.c: Include "cli/cli-cmds.h".
2245 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
2246 (_initialize_maint_cmds): Register the "maintenance with" command.
2247 * top.c (repeat_previous): Move bits from pipe_command here:
2248 Return the saved command line, if any; error out if there's no
2249 command to relaunch.
2251 2019-07-03 Pedro Alves <palves@redhat.com>
2253 * NEWS (New commands): Mention "maint set/show test-settings"
2254 instead of "maint test-settings".
2255 * maint-test-settings.c (maintenance_test_settings_list): Delete.
2256 (maintenance_test_settings_set_list): Rename to ...
2257 (maintenance_set_test_settings_list): ... this.
2258 (maintenance_test_settings_show_list): Rename to ...
2259 (maintenance_show_test_settings_list): ... this.
2260 (maintenance_test_settings_cmd): Delete.
2261 (maintenance_test_settings_set_cmd): ...
2262 (maintenance_set_test_settings_cmd): ... this.
2263 (maintenance_test_settings_show_cmd): ...
2264 (maintenance_show_test_settings_cmd): ... this.
2265 (maintenance_test_settings_show_value_cmd):
2266 (maintenance_show_test_settings_value_cmd): ... this.
2267 (_initialize_maint_test_settings): No longer install the "maint
2268 test-settings" prefix command. Rename "maint test-settings set"
2269 to "maint set test-settings", and "maint test-settings show" to
2270 "maint show test-settings". Adjust all subcommands.
2272 2019-07-03 Pedro Alves <palves@redhat.com>
2274 * maint-test-settings.c: Fix file's intro comment. Replace all
2275 references to "test-options" with references to "test-settings",
2278 2019-07-03 Pedro Alves <palves@redhat.com>
2280 * maint-test-settings.c (maintenance_test_settings_xxx)
2281 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
2283 (maintenance_test_settings_enums): Use them.
2284 (maintenance_test_settings_enum): Default to
2285 maintenance_test_settings_xxx.
2286 (_initialize_maint_test_settings): Initialize
2287 MAINTENANCE_TEST_SETTINGS_FILENAME.
2289 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2291 * breakpoint.h (remove_breakpoints_inf): Change return type to
2292 void, move function documentation here.
2293 * breakpoint.c (remove_breakpoints_inf): Change return type to
2294 void, move function documentation to header.
2296 2019-07-02 Pedro Alves <palves@redhat.com>
2298 * NEWS (Completion improvements): Mention "info threads".
2299 * thread.c (struct info_threads_opts, info_threads_option_defs)
2300 (make_info_threads_options_def_group): New.
2301 (info_threads_command): Use gdb::option::process_options.
2302 (info_threads_command_completer): New.
2303 (_initialize_thread): Use gdb::option::build_help to build the
2304 help text for "info threads".
2306 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2308 * defs.h (generic_load): Move from here...
2309 * symfile.h (generic_load): ... to here. Rename name parameter
2311 * symfile.c (generic_load): Add comment.
2313 2019-07-01 Tom Tromey <tromey@adacore.com>
2316 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
2317 declaration of without_params. Fix formatting.
2319 2019-07-01 Tom Tromey <tromey@adacore.com>
2321 * ada-exp.y (find_primitive_type): Update.
2322 * ada-lang.h (ada_lookup_symbol): Update.
2323 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
2325 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
2327 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
2329 PR breakpoints/24541
2330 * gdbarch.c: Regenerate.
2331 * gdbarch.h: Regenerate.
2332 * gdbarch.sh: Add 'stap_adjust_register'.
2333 * i386-tdep.c: Include '<unordered_set>'.
2334 (i386_stap_adjust_register): New function.
2335 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
2336 * stap-probe.c (stap_parse_register_operand): Call
2337 'gdbarch_stap_adjust_register'.
2339 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
2342 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
2343 * python/python.c (do_start_initialization): Use 'xmalloc'
2344 instead of 'PyMem_Malloc'.
2346 2019-06-28 Tom Tromey <tromey@adacore.com>
2348 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
2351 2019-06-27 Tom Tromey <tromey@adacore.com>
2353 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
2355 (arm_find_mapping_symbol, arm_record_special_symbol)
2356 (_initialize_arm_tdep): Update.
2357 (arm_objfile_data_free): Remove.
2359 2019-06-27 Tom Tromey <tromey@adacore.com>
2361 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
2362 to cp_print_static_field.
2364 2019-06-26 Tom Tromey <tromey@adacore.com>
2366 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
2367 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
2370 2019-06-26 Alan Hayward <alan.hayward@arm.com>
2372 * features/aarch64-core.c (create_feature_aarch64_core):
2374 * features/aarch64-core.xml: Add cpsr flags.
2376 2019-06-26 Alan Hayward <alan.hayward@arm.com>
2378 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
2379 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
2381 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
2383 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
2385 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
2387 (arm_record_special_symbol): Don't insert new symbol in sorted
2388 position, push it at the end.
2390 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
2392 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
2393 (arm_mapping_symbol_s): Remove.
2394 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
2395 (arm_mapping_symbol_vec): New typedef.
2396 (struct arm_per_objfile): Add constructor.
2397 <section_maps>: Change type to
2398 std::unique_ptr<arm_mapping_symbol_vec[]>.
2399 (arm_compare_mapping_symbols): Remove.
2400 (arm_find_mapping_symbol): Adjust to section_maps type change.
2401 (arm_objfile_data_free): Call delete on arm_per_objfile.
2402 (arm_record_special_symbol): Adjust to section_maps type change.
2403 Allocate arm_per_objfile with new.
2405 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2407 * cli/cli-cmds.c (alias_command): Compare the alias prefix
2408 with the command prefix.
2410 2019-06-25 Tom Tromey <tom@tromey.com>
2412 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
2413 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
2415 2019-06-25 Tom Tromey <tom@tromey.com>
2417 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
2419 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
2422 2019-06-25 Tom Tromey <tom@tromey.com>
2424 * tui/tui-winsource.c
2425 (tui_source_window_base::set_is_exec_point_at): Add check against
2428 2019-06-25 Tom Tromey <tom@tromey.com>
2430 * tui/tui-source.c (tui_set_source_content): Don't check before
2432 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
2434 2019-06-25 Tom Tromey <tom@tromey.com>
2436 * tui/tui-winsource.h (tui_update_source_window_as_is)
2437 (tui_alloc_source_buffer, tui_line_is_displayed)
2438 (tui_addr_is_displayed): Change type of win_info.
2439 * tui/tui-winsource.c (tui_update_source_window_as_is)
2440 (tui_clear_source_content, tui_show_source_line)
2441 (tui_show_source_content, tui_source_window_base::refill)
2442 (tui_source_window_base::set_is_exec_point_at)
2443 (tui_source_window_base::set_is_exec_point_at)
2444 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
2445 (tui_alloc_source_buffer, tui_line_is_displayed)
2446 (tui_addr_is_displayed): Change type of win_info. Update.
2447 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2448 (tui_source_window_base::do_make_visible_with_new_height):
2450 * tui/tui-source.c (tui_set_source_content)
2451 (tui_set_source_content_nil)
2452 (tui_source_window::do_scroll_vertical): Update.
2453 * tui/tui-layout.c (show_layout): Update.
2454 * tui/tui-disasm.c (tui_set_disassem_content)
2455 (tui_disasm_window::do_scroll_vertical): Update.
2456 * tui/tui-data.h (tui_win_content): Remove.
2457 (struct tui_gen_win_info) <content, content_size>: Remove.
2458 (struct tui_source_element): Add initializers and destructor.
2459 (union tui_which_element, struct tui_win_element): Remove.
2460 (struct tui_source_window_base) <content>: New field.
2461 (struct tui_data_window): Remove destructor.
2462 (tui_alloc_content, tui_free_win_content)
2463 (tui_free_all_source_wins_content): Don't declare.
2464 * tui/tui-data.c (tui_initialize_static_data): Update.
2465 (init_content_element, tui_alloc_content): Remove.
2466 (~tui_gen_win_info): Update.
2467 (~tui_data_window, tui_free_all_source_wins_content)
2468 (tui_free_win_content, free_content, free_content_elements):
2471 2019-06-25 Tom Tromey <tom@tromey.com>
2473 * tui/tui-winsource.h (tui_clear_source_content)
2474 (tui_erase_source_content, tui_show_source_content): Change type
2476 * tui/tui-winsource.c (tui_clear_source_content)
2477 (tui_erase_source_content, tui_show_source_content): Change type
2479 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2480 * tui/tui-source.h (tui_set_source_content_nil): Change type of
2482 * tui/tui-source.c (tui_set_source_content_nil): Change type of
2484 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
2486 2019-06-25 Tom Tromey <tom@tromey.com>
2488 * tui/tui-winsource.c (tui_clear_source_content)
2489 (tui_source_window_base::set_is_exec_point_at): Update.
2490 * tui/tui-source.c (tui_set_source_content_nil): Update.
2491 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
2493 * tui/tui-data.c (init_content_element): Update.
2495 2019-06-25 Tom Tromey <tom@tromey.com>
2497 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
2498 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
2499 * tui/tui-layout.c (init_and_make_win): Update.
2500 * tui/tui.h (enum tui_win_type): Update.
2501 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
2502 tui_win_is_auxillary.
2503 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
2504 tui_win_is_auxillary.
2506 2019-06-25 Tom Tromey <tom@tromey.com>
2508 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
2509 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
2510 (tui_delete_data_content_windows, tui_display_all_data)
2511 (tui_data_window::do_scroll_vertical, tui_display_data_from):
2513 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
2514 * tui/tui-regs.c (tui_last_regs_line_no)
2515 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
2516 (tui_show_registers): Update.
2517 (tui_show_register_group): Return void. Update.
2518 (tui_display_registers_from, tui_display_reg_element_at_line)
2519 (tui_display_registers_from_line, tui_check_register_values):
2521 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
2523 (struct tui_data_window) <regs_content>: Now a std::vector.
2524 <regs_content_count>: Remove.
2525 (tui_add_content_elements, tui_free_data_content): Don't declare.
2526 * tui/tui-data.c (tui_data_window::clear_detail): Update.
2527 (init_content_element): Remove DATA_WIN case. Add assert.
2528 (tui_add_content_elements): Remove.
2529 (tui_data_window): Update.
2530 (tui_free_data_content): Remove.
2531 (free_content_elements): Remove DATA_WIN case.
2533 2019-06-25 Tom Tromey <tom@tromey.com>
2535 * tui/tui-data.c (tui_data_item_window): Update.
2536 * tui/tui-windata.h (tui_check_data_values): Don't declare.
2537 * tui/tui-windata.c (tui_display_all_data)
2538 (tui_display_data_from_line): Update.
2539 (tui_check_data_values): Remove.
2540 * tui/tui-regs.c (tui_show_register_group)
2541 (tui_display_reg_element_at_line): Update.
2542 * tui/tui-hooks.c (tui_register_changed)
2543 (tui_refresh_frame_and_register_information): Call
2544 tui_check_register_values.
2545 * tui/tui-data.h (struct tui_data_window) <data_content,
2546 data_content_count, data_type>: Remove.
2547 (enum tui_data_type): Remove.
2549 * tui/tui-data.c (tui_data_window::clear_detail)
2550 (~tui_data_window): Update.
2552 2019-06-25 Tom Tromey <tom@tromey.com>
2554 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
2556 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
2557 Rename from tui_first_data_item_displayed. Update.
2558 (tui_data_window::refresh_all)
2559 (tui_data_window::do_scroll_vertical): Update.
2560 * tui/tui-data.h (struct tui_data_window)
2561 <first_data_item_displayed>: Declare new method.
2563 2019-06-25 Tom Tromey <tom@tromey.com>
2565 * tui/tui-data.h (tui_init_generic_part): Don't declare.
2566 * tui/tui-data.c (tui_init_generic_part): Remove, moving
2568 (tui_initialize_static_data): ...here.
2570 2019-06-25 Tom Tromey <tom@tromey.com>
2572 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
2573 (tui_display_registers_from, tui_check_register_values): Update.
2574 (tui_display_register): Remove win_info parameter; update.
2575 (tui_get_register): Change type of parameters.
2576 * tui/tui-data.h (struct tui_data_element): Remove.
2577 (union tui_which_element) <data>: Remove.
2578 <data_window>: Change type.
2579 (struct tui_data_item_window): New.
2580 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
2582 (~tui_data_item_window): New destructor.
2583 (free_content_elements): Remove DATA_ITEM_WIN case.
2585 2019-06-25 Tom Tromey <tom@tromey.com>
2587 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
2590 2019-06-25 Tom Tromey <tom@tromey.com>
2592 * tui/tui-data.h (struct tui_command_element): Remove.
2593 (union tui_which_element) <command>: Remove.
2594 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
2596 (free_content_elements): Remove CMD_WIN case.
2598 2019-06-25 Tom Tromey <tom@tromey.com>
2600 * tui/tui-layout.c (tui_set_layout): Update.
2601 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
2602 * tui/tui-data.c (layout_def): Update.
2604 2019-06-25 Tom Tromey <tom@tromey.com>
2606 * tui/tui-wingeneral.c (tui_refresh_all): Update.
2607 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2608 (tui_source_window_base::set_new_height): Update.
2609 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
2611 (tui_set_locator_fullname, tui_set_locator_info)
2612 (tui_show_frame_info): Update.
2613 * tui/tui-source.c (tui_set_source_content)
2614 (tui_source_is_displayed): Update.
2615 * tui/tui-layout.c (show_source_disasm_command, show_data)
2616 (show_source_or_disasm_and_command): Update.
2617 * tui/tui-disasm.c (tui_set_disassem_content)
2618 (tui_get_begin_asm_address): Update.
2619 * tui/tui-data.h (struct tui_locator_element): Remove.
2620 (union tui_which_element) <locator>: Remove.
2621 (struct tui_locator_window): New.
2622 (tui_locator_win_info_ptr): Change return type.
2623 * tui/tui-data.c (_locator): Change type.
2624 (tui_locator_win_info_ptr): Change return type.
2625 (init_content_element): Remove LOCATOR_WIN case. Add assert.
2626 (tui_alloc_content): Add assert.
2628 2019-06-25 Tom Tromey <tom@tromey.com>
2630 * tui/tui-winsource.c
2631 (tui_exec_info_window::maybe_allocate_content): New method.
2632 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
2633 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
2634 (make_source_or_disasm_window): Add cast.
2635 * tui/tui-data.h (union tui_which_element) <simple_string>:
2637 (struct tui_source_info): New.
2638 (struct tui_source_window_base) <execution_info>: Change type.
2639 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
2640 case, and add assert.
2641 (tui_alloc_content): Add assert.
2643 2019-06-25 Tom Tromey <tom@tromey.com>
2645 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
2646 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
2647 * tui/tui-data.c (tui_alloc_win_info): Remove.
2649 2019-06-25 Tom Tromey <tom@tromey.com>
2651 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
2652 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
2655 2019-06-25 Tom Tromey <tom@tromey.com>
2657 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
2658 make_visible_with_new_height method.
2659 (tui_win_info::make_visible_with_new_height): New method.
2660 (tui_source_window_base::do_make_visible_with_new_height)
2661 (tui_data_window::do_make_visible_with_new_height)
2662 (tui_cmd_window::do_make_visible_with_new_height): New methods.
2663 (make_visible_with_new_height): Remove.
2664 (tui_resize_all, tui_adjust_win_heights): Use
2665 make_visible_with_new_height method.
2666 * tui/tui-data.h (struct tui_win_info)
2667 <do_make_visible_with_new_height, make_visible_with_new_height>:
2669 (struct tui_source_window_base, struct tui_data_window)
2670 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
2673 2019-06-25 Tom Tromey <tom@tromey.com>
2675 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
2677 (update_tab_width): Call update_tab_width method.
2678 * tui/tui-data.h (struct tui_win_info)
2679 (struct tui_source_window_base) <update_tab_width>: New methods.
2681 2019-06-25 Tom Tromey <tom@tromey.com>
2683 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
2685 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
2687 (tui_gen_win_info::make_visible): Update.
2688 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
2690 * tui/tui-data.h (enum tui_box): New enum.
2691 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
2693 2019-06-25 Tom Tromey <tom@tromey.com>
2695 * tui/tui-layout.c (make_source_or_disasm_window): Always use
2696 init_and_make_win for EXEC_INFO_WIN.
2697 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
2699 (struct tui_win_info) <~tui_win_info>: Inline.
2700 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
2702 * tui/tui-data.c (source_win, disasm_win): Remove globals.
2703 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
2705 (tui_initialize_static_data): Update.
2706 (~tui_gen_win_info): Handle more cleanup here.
2707 (~tui_source_window_base): Delete "execution_info".
2708 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
2710 2019-06-25 Tom Tromey <tom@tromey.com>
2712 * tui/tui-layout.c (make_command_window): Don't set
2714 (show_source_disasm_command): Call the reset method.
2715 (show_data): Don't set can_highlight. Call the reset method.
2716 (tui_gen_win_info::reset): Rename from init_gen_win_info
2717 (init_and_make_win): Simplify. Return tui_gen_win_info.
2718 (show_source_or_disasm_and_command): Call the reset method.
2719 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
2720 (struct tui_cmd_window): Set can_highlight.
2722 2019-06-25 Tom Tromey <tom@tromey.com>
2724 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
2726 (tui_make_visible, tui_make_invisible): Rewrite.
2727 (tui_win_info::make_visible): Remove.
2728 (tui_source_window_base::make_visible): Update.
2729 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
2730 method. Moved from...
2731 (struct tui_win_info) <make_visible>: ...here.
2733 2019-06-25 Tom Tromey <tom@tromey.com>
2735 * tui/tui-winsource.c
2736 (tui_source_window_base::do_scroll_horizontal): Remove direction
2738 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
2739 direction parameter.
2740 * tui/tui-win.c (tui_win_info::forward_scroll)
2741 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
2742 (tui_win_info::right_scroll): Update.
2743 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
2744 direction parameter.
2745 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
2746 direction parameter.
2747 * tui/tui-data.h (enum tui_scroll_direction): Remove.
2748 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
2749 Remove direction parameter.
2750 (struct tui_source_window_base, struct tui_source_window)
2751 (struct tui_disasm_window, struct tui_data_window)
2752 (struct tui_cmd_window): Update.
2754 2019-06-25 Tom Tromey <tom@tromey.com>
2756 * tui/tui-winsource.h (tui_set_exec_info_content)
2757 (tui_show_exec_info_content, tui_erase_exec_info_content)
2758 (tui_clear_exec_info_content, tui_update_exec_info): Change
2759 argument to tui_source_window_base.
2760 * tui/tui-winsource.c (tui_set_exec_info_content)
2761 (tui_show_exec_info_content, tui_erase_exec_info_content)
2762 (tui_clear_exec_info_content, tui_update_exec_info): Change
2763 argument to tui_source_window_base.
2765 2019-06-25 Tom Tromey <tom@tromey.com>
2767 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
2768 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
2770 2019-06-25 Tom Tromey <tom@tromey.com>
2772 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
2775 2019-06-25 Tom Tromey <tom@tromey.com>
2777 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
2779 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
2781 * tui/tui-source.c (tui_set_source_content): Update.
2782 * tui/tui-disasm.c (tui_set_disassem_content): Update.
2784 2019-06-25 Tom Tromey <tom@tromey.com>
2786 * tui/tui-win.c (window_name_completer, tui_set_focus)
2787 (tui_all_windows_info): Use name method.
2788 * tui/tui-data.h (struct tui_gen_win_info)
2789 (struct tui_source_window, struct tui_disasm_window)
2790 (struct tui_data_window, struct tui_cmd_window) <name>: New
2792 (tui_win_name): Don't declare.
2793 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
2794 (tui_win_name): Remove.
2796 2019-06-25 Tom Tromey <tom@tromey.com>
2798 * tui/tui-winsource.h (tui_update_source_window)
2799 (tui_update_source_window_as_is): Change parameter type.
2800 * tui/tui-winsource.c (tui_update_source_window): Change win_info
2801 to be a tui_source_window_base.
2802 (tui_update_source_window_as_is): Likewise.
2803 * tui/tui-win.c (make_visible_with_new_height): Update.
2805 2019-06-25 Tom Tromey <tom@tromey.com>
2807 * tui/tui-winsource.c (tui_erase_source_content)
2808 (tui_show_source_content, tui_show_exec_info_content)
2809 (tui_erase_exec_info_content): Use refresh_window method.
2810 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
2811 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
2812 from tui_refresh_win.
2813 (tui_data_window::refresh_window): New method.
2814 (tui_win_info::refresh, tui_source_window_base::refresh)
2815 (tui_refresh_all): Use refresh_window method.
2816 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
2818 * tui/tui-regs.c (tui_display_register): Call refresh_window
2820 * tui/tui-layout.c (show_source_disasm_command)
2821 (show_source_or_disasm_and_command): Call refresh_window method.
2822 * tui/tui-data.h (struct tui_gen_win_info)
2823 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
2826 2019-06-25 Tom Tromey <tom@tromey.com>
2828 * tui/tui.c (tui_rl_other_window, tui_enable)
2829 (tui_is_window_visible, tui_get_command_dimension): Update.
2830 * tui/tui-winsource.c (tui_update_source_window_as_is)
2831 (tui_clear_source_content, tui_erase_source_content)
2832 (tui_show_source_line, tui_source_window_base::refill)
2833 (tui_source_window_base::do_scroll_horizontal)
2834 (tui_source_window_base::set_is_exec_point_at)
2835 (tui_update_breakpoint_info, tui_set_exec_info_content)
2836 (tui_alloc_source_buffer, tui_line_is_displayed)
2837 (tui_addr_is_displayed): Update.
2838 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
2839 (tui_check_and_display_highlight_if_needed)
2840 (tui_win_info::make_visible, tui_win_info::refresh)
2841 (tui_refresh_all): Update.
2842 * tui/tui-windata.c (tui_first_data_item_displayed)
2843 (tui_delete_data_content_windows, tui_erase_data_content)
2844 (tui_display_all_data, tui_data_window::refresh_all)
2845 (tui_check_data_values): Update.
2846 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
2847 (tui_set_win_focus_to, tui_win_info::forward_scroll)
2848 (tui_win_info::backward_scroll, tui_refresh_all_win)
2849 (tui_resize_all, tui_set_focus, tui_all_windows_info)
2850 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
2851 (tui_source_window_base::set_new_height)
2852 (tui_data_window::set_new_height)
2853 (make_invisible_and_set_new_height)
2854 (make_visible_with_new_height, new_height_ok)
2855 (parse_scrolling_args): Update.
2856 * tui/tui-stack.c (tui_show_frame_info): Update.
2857 * tui/tui-source.c (tui_set_source_content)
2858 (tui_set_source_content_nil, tui_source_is_displayed)
2859 (tui_source_window::do_scroll_vertical): Update.
2860 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
2861 (tui_display_registers_from, tui_display_reg_element_at_line)
2862 (tui_check_register_values, tui_reg_command): Update.
2863 * tui/tui-layout.c (tui_default_win_height)
2864 (show_source_disasm_command, show_data, init_and_make_win)
2865 (show_source_or_disasm_and_command): Update.
2866 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2867 (tui_redisplay_readline, tui_mld_flush)
2868 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
2870 * tui/tui-disasm.c (tui_set_disassem_content)
2871 (tui_disasm_window::do_scroll_vertical): Update.
2872 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
2874 (struct tui_win_info): Derive from tui_gen_win_info.
2875 <~tui_win_info>: Mark as override.
2876 <generic>: Remove member.
2877 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
2878 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
2879 (~tui_data_window, ~tui_win_info)
2880 (tui_free_all_source_wins_content): Update.
2881 * tui/tui-command.c (tui_refresh_cmd_win): Update.
2883 2019-06-25 Tom Tromey <tom@tromey.com>
2885 * tui/tui-layout.c (init_and_make_win): Use new.
2886 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
2887 destructor, initializers.
2888 (tui_alloc_generic_win_info): Don't declare.
2889 * tui/tui-data.c (_locator): Add argument to constructor.
2890 (source_win, disasm_win): New globals.
2891 (exec_info): Remove.
2892 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
2894 (tui_alloc_generic_win_info): Remove.
2895 (init_content_element): Use new.
2896 (tui_win_info::tui_win_info): Update.
2897 (free_content_elements) <case DATA_WIN>: Use delete.
2899 2019-06-25 Tom Tromey <tom@tromey.com>
2901 * tui/tui-wingeneral.c (tui_refresh_win): Update.
2902 * tui/tui-windata.c (tui_first_data_item_displayed)
2903 (tui_delete_data_content_windows): Update.
2904 * tui/tui-win.c (tui_data_window::set_new_height): Update.
2905 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
2906 (tui_display_registers_from, tui_check_register_values): Update.
2907 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
2909 * tui/tui-data.c (init_content_element): Update. Allocate the new
2911 (tui_free_data_content): Update.
2912 (free_content_elements) <case DATA_WIN>: Free the window.
2914 2019-06-25 Tom Tromey <tom@tromey.com>
2916 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
2918 * tui/tui-layout.c (make_command_window)
2919 (show_source_disasm_command, show_data, init_and_make_win)
2920 (show_source_or_disasm_and_command): Update.
2921 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
2923 <can_highight, is_highlighted>: Now bool.
2924 (tui_set_win_highlight): Don't declare.
2925 * tui/tui-data.c (tui_set_win_highlight): Remove.
2927 2019-06-25 Tom Tromey <tom@tromey.com>
2929 * tui/tui-wingeneral.c (make_visible): Remove check of window
2932 2019-06-25 Tom Tromey <tom@tromey.com>
2934 * tui/tui-win.c (tui_win_info::max_height)
2935 (tui_cmd_window::max_height): New methods.
2936 (new_height_ok): Call max_height.
2937 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
2938 <max_height>: New method.
2940 2019-06-25 Tom Tromey <tom@tromey.com>
2942 * tui/tui-win.c (tui_source_window_base::set_new_height)
2943 (tui_data_window::set_new_height): New methods.
2944 (make_invisible_and_set_new_height): Call set_new_height method.
2945 * tui/tui-data.h (struct tui_win_info)
2946 (struct tui_source_window_base, struct tui_data_window)
2947 <set_new_height>: New method.
2949 2019-06-25 Tom Tromey <tom@tromey.com>
2951 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
2952 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
2953 tui_refresh_data_win.
2954 * tui/tui-win.c (tui_source_window_base::refresh_all): New
2956 (tui_refresh_all_win): Call the refresh_all method.
2957 (tui_set_focus): Likewise.
2958 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
2959 (struct tui_source_window_base, struct tui_data_window) <refresh>:
2962 2019-06-25 Tom Tromey <tom@tromey.com>
2964 * tui/tui-winsource.h (tui_refill_source_window)
2965 (tui_set_is_exec_point_at): Don't declare.
2966 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
2967 (tui_source_window_base::refill): Rename from
2968 tui_refill_source_window.
2969 (tui_source_window_base::do_scroll_horizontal): Update.
2970 (tui_source_window_base::set_is_exec_point_at): Rename from
2971 tui_set_is_exec_point_at.
2972 (tui_update_all_breakpoint_info): Update.
2973 * tui/tui-stack.c (tui_show_frame_info): Update.
2974 * tui/tui-layout.c (show_data): Add cast.
2975 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
2976 * tui/tui-data.h (struct tui_source_window_base) <refill,
2977 set_is_exec_point_at>: New methods.
2978 (tui_source_windows, tui_add_to_source_windows): Update types.
2979 (tui_add_to_source_windows): Remove redundant declaration.
2980 * tui/tui-data.c (source_windows): Store tui_source_window_base.
2981 (tui_source_windows): Change return type.
2982 (tui_clear_source_windows_detail): Update.
2983 (tui_add_to_source_windows): Change type of parameter.
2984 (tui_free_all_source_wins_content): Update.
2986 2019-06-25 Tom Tromey <tom@tromey.com>
2988 * tui/tui-wingeneral.c (tui_win_info::refresh)
2989 (tui_source_window_base::refresh): New methods.
2990 (tui_refresh_all): Call the refresh method.
2991 * tui/tui-data.h (struct tui_win_info)
2992 (struct tui_source_window_base) <refresh>: New method.
2994 2019-06-25 Tom Tromey <tom@tromey.com>
2996 * tui/tui.h (tui_is_window_visible): Return bool.
2997 * tui/tui.c (tui_is_window_visible): Return bool.
2998 * tui/tui-wingeneral.c (tui_make_window, make_visible)
2999 (tui_make_visible, tui_make_invisible)
3000 (tui_win_info::make_visible)
3001 (tui_source_window_base::make_visible, make_all_visible)
3002 (tui_make_all_visible, tui_make_all_invisible): Update.
3003 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
3004 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
3006 (struct tui_win_info, struct tui_source_window_base)
3007 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
3008 * tui/tui-data.c (tui_init_generic_part): Update.
3010 2019-06-25 Tom Tromey <tom@tromey.com>
3012 * tui/tui-wingeneral.c (tui_win_info::make_visible)
3013 (tui_source_window_base::make_visible): New methods.
3014 (make_all_visible): Make method call.
3015 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
3016 (struct tui_source_window_base, struct tui_cmd_window): Override
3018 (tui_win_is_source_type): Don't declare.
3019 * tui/tui-data.c (tui_win_is_source_type): Remove.
3021 2019-06-25 Tom Tromey <tom@tromey.com>
3023 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
3026 2019-06-25 Tom Tromey <tom@tromey.com>
3028 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
3029 Inline constructor. Add initializers for members.
3030 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
3031 constructors; now inline in class.
3033 2019-06-25 Tom Tromey <tom@tromey.com>
3035 * tui/tui-regs.c (tui_show_registers): Update.
3036 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
3038 * tui/tui-data.c (tui_data_window::clear_detail)
3039 (tui_data_window): Update.
3041 2019-06-25 Tom Tromey <tom@tromey.com>
3043 * tui/tui-windata.c (tui_display_all_data)
3044 (tui_display_data_from_line, tui_display_data_from)
3045 (tui_check_data_values, tui_data_window::do_scroll_vertical):
3047 * tui/tui-regs.c (tui_last_regs_line_no)
3048 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
3049 (tui_show_registers, tui_show_register_group)
3050 (tui_display_registers_from, tui_display_reg_element_at_line)
3051 (tui_display_registers_from_line, tui_check_register_values)
3052 (tui_reg_next, tui_reg_prev): Update.
3053 * tui/tui-layout.c (tui_set_layout, show_data): Update.
3054 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
3056 (struct tui_win_info) <detail>: Remove. Add new fields from
3058 (TUI_DATA_WIN): Add cast.
3059 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
3060 (~tui_data_window): Simplify.
3062 2019-06-25 Tom Tromey <tom@tromey.com>
3064 * tui/tui-layout.c (show_source_disasm_command)
3065 (show_source_or_disasm_and_command): Update.
3066 * tui/tui-io.c (update_cmdwin_start_line)
3067 (tui_redisplay_readline): Update.
3068 * tui/tui-data.h (struct tui_command_info): Remove.
3069 (struct tui_win_info) <detail>: Remove command_info member.
3070 (struct tui_data_window) <start_line>: New member, from
3072 (TUI_CMD_WIN): Add casts.
3074 2019-06-25 Tom Tromey <tom@tromey.com>
3076 * tui/tui-winsource.c (tui_update_source_window)
3077 (tui_refill_source_window)
3078 (tui_source_window_base::do_scroll_horizontal)
3079 (tui_update_breakpoint_info, tui_set_exec_info_content)
3080 (tui_show_exec_info_content, tui_erase_exec_info_content)
3081 (tui_clear_exec_info_content): Update.
3082 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
3084 * tui/tui-win.c (make_invisible_and_set_new_height)
3085 (make_visible_with_new_height): Update.
3086 * tui/tui-source.c (tui_set_source_content)
3087 (tui_show_symtab_source): Update.
3088 * tui/tui-layout.c (extract_display_start_addr)
3089 (show_source_disasm_command, show_data)
3090 (make_source_or_disasm_window)
3091 (show_source_or_disasm_and_command): Update.
3092 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
3093 (tui_disasm_window::do_scroll_vertical): Remove shadowing
3095 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
3096 to tui_source_window_base.
3097 (struct tui_win_info) <detail>: Remove source_info member.
3098 (struct tui_source_window_base) <has_locator>: Inline.
3099 Move contents from tui_source_info; rename has_locator member to
3101 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
3102 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
3104 (tui_source_window_base::clear_detail, ~tui_source_window_base):
3106 (tui_free_all_source_wins_content): Cast to
3107 tui_source_window_base.
3109 2019-06-25 Tom Tromey <tom@tromey.com>
3111 * tui/tui-win.c (make_invisible_and_set_new_height)
3112 (make_visible_with_new_height): Call has_locator method.
3113 * tui/tui-layout.c (show_source_disasm_command, show_data)
3114 (show_source_or_disasm_and_command): Update for bool change.
3115 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
3116 (tui_win_info) <has_locator>: New method.
3117 (struct tui_source_window_base) <has_locator>: New method.
3118 (tui_win_has_locator): Don't declare.
3119 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
3120 from tui_win_has_locator.
3121 (tui_source_window_base): Use false, not FALSE.
3123 2019-06-25 Tom Tromey <tom@tromey.com>
3125 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
3126 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
3127 clear_detail method directly.
3128 (tui_clear_win_detail): Remove.
3130 2019-06-25 Tom Tromey <tom@tromey.com>
3132 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
3133 "this", not TUI_DISASM_WIN.
3135 2019-06-25 Tom Tromey <tom@tromey.com>
3137 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
3139 * tui/tui-winsource.c
3140 (tui_source_window_base::do_scroll_horizontal): Rename from
3141 tui_horizontal_source_scroll.
3142 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
3143 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
3144 from tui_vertical_data_scroll.
3145 * tui/tui-win.h (tui_scroll): Don't declare.
3146 * tui/tui-win.c (tui_win_info::forward_scroll)
3147 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
3148 (tui_win_info::right_scroll): Rename and update.
3149 (tui_scroll_forward_command, tui_scroll_backward_command)
3150 (tui_scroll_left_command, tui_scroll_right_command): Update.
3151 (tui_scroll): Remove.
3152 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
3153 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
3154 from tui_vertical_source_scroll.
3155 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
3156 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
3157 from tui_vertical_disassem_scroll.
3158 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
3159 do_scroll_horizontal>: New methods.
3160 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
3162 (struct tui_source_window_base): Add do_scroll_horizontal.
3163 (struct tui_source_window, struct tui_disasm_window): Add
3165 (struct tui_data_window, struct tui_cmd_window): Add
3166 do_scroll_horizontal and do_scroll_vertical.
3167 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
3169 2019-06-25 Tom Tromey <tom@tromey.com>
3171 * tui/tui-data.h (struct tui_source_window_base): New struct.
3172 (struct tui_source_window): Derive from tui_source_window_base.
3173 (struct tui_disasm_window): New struct.
3174 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
3175 from tui_source_window::clear_detail.
3176 (tui_source_window_base): Rename from tui_source_window.
3177 (~tui_source_window_base): Rename from ~tui_source_window.
3178 (tui_alloc_win_info): Create a tui_disasm_window.
3180 2019-06-25 Tom Tromey <tom@tromey.com>
3182 * tui/tui-data.h (struct tui_source_window)
3183 (struct tui_data_window): Declare destructors.
3184 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
3186 (tui_win_info): Simplify.
3188 2019-06-25 Tom Tromey <tom@tromey.com>
3190 * tui/tui-winsource.c (tui_display_main)
3191 (tui_update_source_windows_with_addr)
3192 (tui_update_all_breakpoint_info): Update.
3193 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3194 (new_height_ok, parse_scrolling_args): Update.
3195 * tui/tui-stack.c (tui_show_frame_info): Update.
3196 * tui/tui-data.h (struct tui_list): Remove.
3197 (tui_source_windows): Return a reference to a std::vector.
3198 * tui/tui-data.c (source_windows): Now a std::vector.
3199 (tui_source_windows): Change return type.
3200 (tui_clear_source_windows): Rewrite.
3201 (tui_clear_source_windows_detail, tui_add_to_source_windows)
3202 (tui_free_all_source_wins_content): Rewrite.
3204 2019-06-25 Tom Tromey <tom@tromey.com>
3206 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
3207 (struct tui_data_window, struct tui_cmd_window): Declare
3208 clear_detail method.
3209 * tui/tui-data.c (tui_source_window::clear_detail)
3210 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
3212 (tui_clear_win_detail): Simplify.
3214 2019-06-25 Tom Tromey <tom@tromey.com>
3216 * tui/tui-layout.c (make_source_window, make_disasm_window)
3217 (make_source_or_disasm_window): Remove win_info_ptr parameter.
3218 Return the new window.
3219 (show_source_disasm_command, show_data)
3220 (show_source_or_disasm_and_command): Update.
3222 2019-06-25 Tom Tromey <tom@tromey.com>
3224 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
3225 parameter. Return the new window.
3226 (show_source_disasm_command): Update and remove NULL check.
3227 (show_source_or_disasm_and_command): Update.
3229 2019-06-25 Tom Tromey <tom@tromey.com>
3231 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
3233 2019-06-25 Tom Tromey <tom@tromey.com>
3235 * tui/tui-data.h (struct tui_win_info): Make constructor
3236 protected. Make destructor virtual. Add initializers.
3237 (tui_source_window, tui_data_window, tui_cmd_window): New
3239 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
3240 constructor. Add "type" parameter.
3241 (tui_source_window, tui_data_window, tui_cmd_window): New
3243 (tui_alloc_win_info): Instantiate the appropriate subclass.
3245 2019-06-25 Tom Tromey <tom@tromey.com>
3247 * tui/tui-win.c (tui_resize_all): Use delete.
3248 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
3250 (tui_free_window): Don't declare.
3251 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
3254 2019-06-25 Tom Tromey <tom@tromey.com>
3256 * tui/tui-data.h (struct tui_win_info): Add constructor.
3257 * tui/tui-data.c (tui_alloc_win_info): Use new.
3258 (tui_free_window): Use delete.
3260 2019-06-22 Tom Tromey <tom@tromey.com>
3262 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
3264 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
3266 2019-06-22 Tom Tromey <tom@tromey.com>
3268 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
3270 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
3272 2019-06-22 Tom de Vries <tdevries@suse.de>
3274 * dwarf2read.c (create_addrmap_from_aranges)
3275 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
3278 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
3280 * dwarf2read.h (dwarf2_section_info_def): Remove.
3281 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
3282 * dwarf2read.c (struct dwo_sections) <types>: Change type to
3283 std::vector<dwarf2_section_info>.
3284 (struct dwo_file) <~dwo_file>: Remove.
3285 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
3287 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
3288 (dwarf2_read_debug_names): Likewise.
3289 (create_debug_types_hash_table): Change parameter type to
3290 array_view, adjust code accordingly.
3291 (dwarf2_locate_dwo_sections): Adjust to std::vector.
3292 (partial_die_info::fixup): Likewise.
3293 (determine_prefix): Likewise.
3294 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
3296 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3298 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
3300 <~dwo_file>: Remove call to gdb_bfd_unref.
3301 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
3302 gdb_bfd_ref_ptr::get.
3304 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3306 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
3308 * dwarf2read.c (struct dwo_file): Initialize fields.
3310 (free_dwo_file): Remove, move content to ~dwo_file.
3311 (struct dwo_file_deleter): Remove.
3312 (dwo_file_up>: Remove custom deleter.
3313 (free_dwo_files): Remove.
3314 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
3316 (process_skeletonless_type_units): Call unique_ptr::get.
3317 (allocate_dwo_file_hash_table): Add deleter to created hash
3318 table. Change return type to htab_up.
3319 (lookup_dwo_file_slot): Don't memset dwo_file, call
3321 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
3322 (create_dwo_unit_in_dwp_v2): Likewise.
3323 (open_and_init_dwo_file): Likewise.
3324 (free_dwo_file_from_slot): Remove.
3326 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3328 * dwarf2read.h (struct dwarf2_section_info) <readin,
3329 is_virtual>: Change type to bool.
3330 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
3333 2019-06-19 Tom Tromey <tom@tromey.com>
3335 * tui/tui-data.h (tui_init_content_element): Don't declare.
3337 2019-06-19 Tom Tromey <tom@tromey.com>
3339 * tui/tui-data.h (tui_init_win_info): Don't declare.
3341 2019-06-19 Tom de Vries <tdevries@suse.de>
3343 * dwarf2read.h (abstract_to_concrete): Change type to
3344 std::unordered_map<sect_offset, std::vector<sect_offset>,
3345 gdb::hash_enum<sect_offset>>.
3347 2019-06-19 Tom Tromey <tromey@adacore.com>
3349 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
3350 EVAL_AVOID_SIDE_EFFECTS specially.
3352 2019-06-19 Tom Tromey <tromey@adacore.com>
3354 * source-cache.c (highlighter): New global.
3355 (source_cache::get_source_lines): Create a highlighter on demand.
3357 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
3359 * defs.h (deprecated_interactive_hook): Delete declaration.
3360 * interps.c (clear_interpreter_hooks): Remove use of
3361 deprecated_interactive_hook.
3362 * top.c (deprecated_interactive_hook): Delete definition.
3363 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
3365 2019-06-18 Tom de Vries <tdevries@suse.de>
3368 * dwarf2read.h (abstract_to_concrete): Change type from
3369 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
3370 std::unordered_map<sect_offset, std::vector<sect_offset>>.
3371 * dwarf2read.c (read_variable): Update.
3372 (dwarf2_fetch_die_loc_sect_off): Update.
3374 2019-06-17 Tom de Vries <tdevries@suse.de>
3377 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
3378 accessing parent[parent_len - 1].
3380 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
3383 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
3384 call dtrace_process_dof with NULL dof.
3386 2019-06-16 Tom de Vries <tdevries@suse.de>
3389 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
3391 2019-06-16 Tom Tromey <tom@tromey.com>
3393 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
3394 (make_all_visible): Use address of member.
3396 2019-06-16 Tom Tromey <tom@tromey.com>
3398 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
3399 (tui_free_window, free_content, free_content_elements): Remove
3401 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
3403 * tui/tui-regs.c (tui_show_register_group)
3404 (tui_display_registers_from, tui_display_reg_element_at_line):
3405 Remove unnecessary cast.
3407 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
3409 * linux-nat.c (normal_mask): Delete.
3410 (_initialize_linux_nat): Don't initialise normal_mask.
3412 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
3415 * dwarf-index-write.h (write_psymtabs_to_index): Add
3416 dwz_basename parameter.
3417 * dwarf-index-write.c (write_gdbindex): Move file writing to
3418 write_gdbindex_1. Change return type void.
3419 (assert_file_size): Move up, remove filename parameter.
3420 (write_gdbindex_1): New function.
3421 (write_debug_names): Change return type to void, call
3423 (struct index_wip_file): New struct.
3424 (write_psymtabs_to_index): Add dwz_basename parameter. Move
3425 file logic to index_wip_file. Write index for dwz file if
3427 (save_gdb_index_command): Pass basename of dwz file, if present.
3428 * dwarf-index-cache.c (index_cache::store): Obtain and pass
3429 build-id of dwz file, if present.
3430 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
3431 (dwarf2_get_dwz_file): Likewise.
3432 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
3433 (dwarf2_get_dwz_file): Likewise.
3435 2019-06-16 Tom Tromey <tom@tromey.com>
3437 * coffread.c (process_coff_symbol): Use xstrdup.
3438 * value.c (create_internalvar): Use xstrdup.
3440 2019-06-16 Tom Tromey <tom@tromey.com>
3442 * valops.c (value_cast, value_slice): Remove unnecessary cast.
3443 * breakpoint.c (stopin_command, stopat_command)
3444 (until_break_command, decode_location_default): Remove unnecessary
3446 * utils.c (subset_compare): Remove unnecessary cast.
3447 * ada-lang.c (ada_update_initial_language): Remove unnecessary
3449 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
3451 * infcmd.c (path_command): Remove unnecessary cast.
3452 * coffread.c (decode_type): Remove unnecessary cast.
3453 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
3454 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
3455 * tui/tui-stack.c (tui_show_locator_content)
3456 (tui_show_frame_info): Remove unnecessary cast.
3457 * tui/tui-win.c (tui_scroll_forward_command)
3458 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
3459 (parse_scrolling_args): Remove unnecessary cast.
3460 * tui/tui-data.c (init_win_info, tui_del_window)
3461 (tui_free_window, tui_del_data_windows, tui_free_data_content)
3462 (free_content_elements): Remove unnecessary cast.
3463 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
3465 * tui/tui-source.c (tui_set_source_content)
3466 (tui_vertical_source_scroll): Remove unnecessary cast.
3467 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
3469 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
3470 * tui/tui-regs.c (tui_display_registers_from)
3471 (tui_display_register): Remove unnecessary cast.
3472 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
3473 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
3474 (make_visible): Remove unnecessary cast.
3475 * tui/tui-winsource.c (tui_erase_source_content)
3476 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
3478 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
3479 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
3480 * stabsread.c (read_type, read_array_type, read_range_type):
3481 Remove unnecessary cast.
3482 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
3483 (parse_symbol, parse_type, upgrade_type, parse_external)
3484 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
3486 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
3488 2019-06-16 Tom Tromey <tom@tromey.com>
3490 * tui/tui-data.c (tui_alloc_generic_win_info)
3491 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
3494 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
3495 Andrew Burgess <andrew.burgess@embecosm.com>
3497 * f-typeprint.c (f_print_type): Don't return early for not
3498 associated or not allocated types.
3499 (f_type_print_varspec_suffix): Add print_rank parameter and print
3500 ranks of array types in case they dangling.
3501 (f_type_print_base): Add print_rank parameter.
3503 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3505 * NEWS: Mention new MI commands.
3506 * break-catch-throw.c (enum exception_event_kind): Move to
3508 (print_mention_exception_catchpoint): Output text as a single
3510 (catch_exception_command_1): Rename to...
3511 (catch_exception_event): ...this, make non-static, update header
3512 command, and change some parameter types.
3513 (catch_catch_command): Update for changes to
3514 catch_exception_command_1.
3515 (catch_throw_command): Likewise.
3516 (catch_rethrow_command): Likewise.
3517 * breakpoint.c (enum exception_event_kind): Delete.
3518 * breakpoint.h (enum exception_event_kind): Moved here from
3519 break-catch-throw.c.
3520 (catch_exception_event): Declare.
3521 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
3522 (mi_cmd_catch_throw): New function.
3523 (mi_cmd_catch_rethrow): New function.
3524 (mi_cmd_catch_catch): New function.
3525 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
3526 'catch-catch' entries.
3527 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
3528 (mi_cmd_catch_rethrow): Declare.
3529 (mi_cmd_catch_catch): Declare.
3531 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3533 * annotate.c (annotate_source_line): Change return type to void,
3534 update implementation to match.
3535 * annotate.h (annotate_source_line): Change return type to void,
3536 update header comment.
3537 * stack.c (print_frame_info): Don't change what frame information
3538 is printed based on whether annotations are on or not.
3540 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3542 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
3543 (annotate_source): Make static.
3544 (annotate_source_line): Moved from source.c and renamed from
3545 identify_source_line. Update the return type.
3546 * annotate.h (annotate_source): Delete declaration.
3547 (annotate_source_line): Declaration moved from source.h, and
3548 renamed from identify_source_line. Return type updated.
3549 * source.c (identify_source_line): Moved to annotate.c and renamed
3550 to annotate_source_line.
3551 (info_line_command): Remove check of annotation_level.
3552 * source.h (identify_source_line): Move declaration to annotate.h
3553 and rename to annotate_source_line.
3554 * stack.c: Add 'annotate.h' include.
3555 (print_frame_info): Remove check of annotation_level before
3556 calling annotate_source_line.
3558 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3560 * source-cache.c (source_cache::get_plain_source_lines): Use
3561 open_source_file_with_line_charpos instead of just
3562 open_source_file, remove call to find_source_lines.
3563 (source_cache::get_source_lines): Likewise.
3564 * source.c (find_source_lines): Make static.
3565 (get_filename_and_charpos): Renamed into...
3566 (open_source_file_with_line_charpos): ..this along with changes to
3567 return a scoped_fd, and some other minor clean ups.
3568 (identify_source_line): Use open_source_file_with_line_charpos.
3569 (search_command_helper): Use open_source_file_with_line_charpos
3570 instead of just open_source_file, remove call to
3572 * source.h (open_source_file_with_line_charpos): Declare new
3574 (find_source_lines): Delete declaration.
3576 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3578 * source.c (get_filename_and_charpos): Remove fullname
3580 (identify_source_line): Update call to get_filename_and_charpos.
3582 2019-06-14 Tom Tromey <tromey@adacore.com>
3585 * ui-style.h (skip_ansi_escape): Update comment.
3586 * ui-file.h (class no_terminal_escape_file): New class.
3587 * ui-file.c (no_terminal_escape_file::write)
3588 (no_terminal_escape_file::puts): New methods.
3589 * cli/cli-logging.c (handle_redirections): Use
3590 no_terminal_escape_file.
3592 2019-06-14 Tom Tromey <tromey@adacore.com>
3594 * NEWS: Move convenience variable news above Python news.
3596 2019-06-14 Tom Tromey <tom@tromey.com>
3598 * gnulib: Move directory to top-level.
3599 * configure.ac: Don't configure gnulib.
3600 * configure: Rebuild.
3601 * common/common-defs.h: Use new path to gnulib.
3602 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
3604 (INCGNU): Look in new gnulib location.
3605 (HFILES_NO_SRCDIR): Remove gnulib files.
3606 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
3607 (generated_files): Remove GNULIB_H.
3608 ($(LIBGNU), all-lib): Remove targets.
3609 (distclean): Don't mention GNULIB_BUILDDIR.
3610 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
3612 2019-06-14 Tom Tromey <tromey@adacore.com>
3614 * symfile.c (add_symbol_file_command): Remove obsolete comment.
3615 Warn if symbol file does not provide any symbols.
3617 2019-06-14 Tom Tromey <tromey@adacore.com>
3619 * source.c (find_and_open_source): Respect basenames_may_differ.
3621 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
3623 * annotate.c (annotate_breakpoints_invalid): Make use of
3624 scoped_restore_terminal_state.
3625 (annotate_frames_invalid): Likewise.
3627 2019-06-14 Tom Tromey <tromey@adacore.com>
3629 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
3630 allow assignment to an internalvar.
3632 2019-06-14 Tom Tromey <tromey@adacore.com>
3634 * ada-lex.l: Allow "_" in attribute names.
3636 2019-06-14 Tom Tromey <tromey@adacore.com>
3639 * regcache.c (registers_changed): Don't call alloca.
3640 * top.c (execute_command): Don't call alloca.
3642 2019-06-13 Pedro Alves <palves@redhat.com>
3644 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
3645 'expression'. When parsing an expression, error out if there's
3646 junk after "unlimited".
3647 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
3648 (do_set_command): Adjust calls to is_unlimited_literal.
3650 2019-06-13 Pedro Alves <palves@redhat.com>
3652 * compile/compile.c (make_compile_options_def_group): Add braces
3653 around array_view initializer.
3654 * thread.c (make_thread_apply_all_options_def_group)
3655 (make_thread_apply_all_options_def_group): Likewise.
3657 2019-06-13 Pedro Alves <palves@redhat.com>
3659 * NEWS (New commands): Mention "maint test-options
3660 require-delimiter", "maint test-options unknown-is-error", "maint
3661 test-options unknown-is-operand" and "maint show
3662 test-options-completion-result".
3663 (New command options, command completion): New section.
3664 (Completion improvements): New section.
3665 Mention that you can abbreviate "unlimited".
3667 2019-06-13 Pedro Alves <palves@redhat.com>
3669 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
3670 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
3671 * unittests/cli-utils-selftests.c (test_parse_flags)
3672 (test_parse_flags_qcs): Delete.
3673 (test_cli_utils): Don't call deleted functions.
3675 2019-06-13 Pedro Alves <palves@redhat.com>
3677 * thread.c: Include "cli/cli-option.h".
3678 (tp_array_compar_ascending): Global.
3679 (tp_array_compar): Delete function.
3680 (tp_array_compar_ascending, tp_array_compar_descending): New
3682 (ascending_option_def, qcs_flag_option_def)
3683 (thr_qcs_flags_option_defs)
3684 (make_thread_apply_all_options_def_group)
3685 (make_thread_apply_options_def_group): New.
3686 (thread_apply_all_command): Use gdb::option::process_options.
3687 (thread_apply_command_completer)
3688 (thread_apply_all_command_completer): New.
3689 (thread_apply_command): Use gdb::option::process_options.
3690 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
3691 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
3692 to generate help text of "thread apply". Adjust "taas"'s help.
3693 * tid-parse.c (tid_range_parser::in_thread_range): New method.
3694 * tid-parse.h (tid_range_parser::in_thread_range): New method.
3696 2019-06-13 Pedro Alves <palves@redhat.com>
3698 * thread.c (thread_apply_command): Check for invalid TID with
3699 isdigit instead of !isalpha.
3701 2019-06-13 Pedro Alves <palves@redhat.com>
3703 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
3704 (validate_flags_qcs): New.
3705 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
3706 (validate_flags_qcs): Declare.
3707 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
3708 (make_frame_apply_options_def_group): New.
3709 (frame_apply_command_count): Process options with
3710 gdb::option::process_options.
3711 (frame_apply_completer): New.
3712 (frame_apply_level_completer, frame_apply_all_completer)
3713 (frame_apply_completer): New.
3714 (_initialize_stack): Update help of "frame apply", "frame apply
3715 level", "frame apply all" and "faas" to mention supported options
3716 and install command completers.
3717 * stack.h (frame_apply_all_completer): Declare.
3718 * thread.c: Include "stack.h".
3719 (tfaas_command): Add "--".
3720 (_initialize_thread): Update help "tfaas" to mention supported
3721 options and install command completer.
3723 2019-06-13 Pedro Alves <palves@redhat.com>
3725 * completer.c (complete_nested_command_line): New.
3726 (gdb_completion_word_break_characters_throw): Add assertion.
3727 * completer.h (complete_nested_command_line): Declare.
3729 2019-06-13 Pedro Alves <palves@redhat.com>
3731 * stack.c (parse_backtrace_qualifiers): New.
3732 (backtrace_command): Use it.
3733 (backtrace_command_completer): Complete on qualifiers.
3735 2019-06-13 Pedro Alves <palves@redhat.com>
3737 * frame.c: Include "cli/cli-option.h.
3738 (user_set_backtrace_options): New.
3739 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
3741 (get_prev_frame): Adjust.
3742 (boolean_option_def, uinteger_option_def)
3743 (set_backtrace_option_defs): New.
3744 (_initialize_frame): Adjust and use
3745 gdb::option::add_setshow_cmds_for_options to install "set
3746 backtrace past-main" and "set backtrace past-entry".
3747 * frame.h: Include "cli/cli-option.h".
3748 (struct frame_print_options): Forward declare.
3749 (print_frame_arguments_all, print_frame_arguments_scalars)
3750 (print_frame_arguments_none): Declare.
3751 (print_entry_values): Delete declaration.
3752 (struct frame_print_options, user_frame_print_options): New.
3753 (struct set_backtrace_options): New.
3754 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
3755 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3756 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
3757 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
3758 (list_args_or_locals): Add frame_print_options parameter.
3759 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
3760 * python/py-framefilter.c (enumerate_args): Pass down
3761 USER_FRAME_PRINT_OPTIONS.
3762 * stack.c: Include "cli/cli-option.h".
3763 (print_frame_arguments_all, print_frame_arguments_scalars)
3764 (print_frame_arguments_none): Declare.
3765 (print_raw_frame_arguments, print_entry_values): Delete.
3766 (user_frame_print_options): New.
3767 (boolean_option_def, enum_option_def, frame_print_option_defs):
3769 (struct backtrace_cmd_options): New.
3770 (bt_flag_option_def): New.
3771 (backtrace_command_option_defs): New.
3772 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
3773 (print_frame_arg, read_frame_arg, print_frame_args)
3774 (print_frame_info, print_frame): Add frame_print_options parameter
3776 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
3777 (backtrace_command_1): Add frame_print_options and
3778 backtrace_cmd_options parameters and use them.
3779 (make_backtrace_options_def_group): New.
3780 (backtrace_command): Process command options with
3781 gdb::option::process_options.
3782 (backtrace_command_completer): New.
3783 (_initialize_stack): Extend "backtrace"'s help to mention
3784 supported options. Install completer for "backtrace".
3785 Install some settings commands with add_setshow_cmds_for_options.
3787 2019-06-13 Pedro Alves <palves@redhat.com>
3789 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
3790 and that "set/show print raw frame-arguments" are now deprecated.
3792 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
3794 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
3795 * stack.c (_initialize_stack): Install "set/show print
3796 raw-frame-arguments", and deprecate "set/show print raw
3798 * valprint.c (_initialize_valprint): Deprecate "set/show print
3801 2019-06-13 Pedro Alves <palves@redhat.com>
3803 * compile/compile.c (struct compile_options): New.
3804 (compile_flag_option_def, compile_command_option_defs)
3805 (make_compile_options_def_group): New.
3806 (compile_file_command): Handle options with
3807 gdb::option::process_options.
3808 (compile_file_command_completer): New function.
3809 (compile_code_command): Handle options with
3810 gdb::option::process_options.
3811 (compile_code_command_completer): New function.
3812 (_initialize_compiler): Install completers for "compile code" and
3813 "compile file". Mention available options in "compile code" and
3814 "compile code"'s help.
3815 * completer.c (advance_to_completion_word): New, factored out from
3817 (advance_to_expression_complete_word_point): ... this.
3818 (advance_to_filename_complete_word_point): New.
3819 * completer.h (advance_to_filename_complete_word_point): New
3822 2019-06-13 Pedro Alves <palves@redhat.com>
3824 * compile/compile.c: Include "cli/cli-option.h".
3825 (compile_print_value): Scope data pointer is now a
3826 value_print_options pointer; adjust.
3827 (compile_print_command): Process options. Scope data pointer is
3828 now a value_print_options pointer; adjust.
3829 (_initialize_compile): Update "compile print"'s help to include
3830 supported options. Install a completer for "compile print".
3831 * cp-valprint.c (show_vtblprint, show_objectprint)
3832 (show_static_field_print): Delete.
3833 (_initialize_cp_valprint): Don't install "set print
3834 static-members", "set print vtbl", "set print object" here.
3835 * printcmd.c: Include "cli/cli-option.h" and
3836 "common/gdb_optional.h".
3837 (print_command_parse_format): Rework to fill in a
3838 value_print_options instead of a format_data.
3839 (print_value): Change parameter type from format_data pointer to
3840 value_print_options reference. Adjust.
3841 (print_command_1): Process options. Adjust to pass down a
3842 value_print_options.
3843 (print_command_completer): New.
3844 (_initialize_printcmd): Install print_command_completer as
3845 handle_brkchars completer for the "print" command. Update
3846 "print"'s help to include supported options.
3847 * valprint.c: Include "cli/cli-option.h".
3848 (show_vtblprint, show_objectprint, show_static_field_print): Moved
3849 here from cp-valprint.c.
3850 (boolean_option_def, uinteger_option_def)
3851 (value_print_option_defs, make_value_print_options_def_group):
3852 New. Use gdb::option::add_setshow_cmds_for_options to install
3853 "set print elements", "set print null-stop", "set print repeats",
3854 "set print pretty", "set print union", "set print array", "set
3855 print address", "set print symbol", "set print array-indexes".
3856 * valprint.h: Include <string> and "cli/cli-option.h".
3857 (make_value_print_options_def_group): Declare.
3858 (print_value): Change parameter type from format_data pointer to
3859 value_print_options reference.
3860 (print_command_completer): Declare.
3862 2019-06-13 Pedro Alves <palves@redhat.com>
3864 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
3865 (COMMON_SFILES): Add maint-test-settings.c.
3866 * cli/cli-decode.c (boolean_enums): New global, factored out from
3868 (add_setshow_boolean_cmd): ... here.
3869 * cli/cli-decode.h (boolean_enums): Declare.
3870 * cli/cli-option.c: New file.
3871 * cli/cli-option.h: New file.
3872 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
3873 factored out from ...
3874 (parse_cli_boolean_value(const char *)): ... this.
3875 (is_unlimited_literal): Change parameter type to pointer to
3876 pointer. Adjust and advance ARG pointer.
3877 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
3878 (parse_cli_var_enum): New, factored out from ...
3879 (do_set_command): ... this. Adjust.
3880 * cli/cli-setshow.h (parse_cli_boolean_value)
3881 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
3882 (parse_cli_var_enum): Declare.
3883 * cli/cli-utils.c: Include "cli/cli-option.h".
3884 (get_ulongest): New.
3885 * cli/cli-utils.h (get_ulongest): Declare.
3886 (check_for_argument): New overloads.
3887 * maint-test-options.c: New file.
3889 2019-06-13 Pedro Alves <palves@redhat.com>
3891 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
3892 parse a range if "-" is at the end of the string.
3894 2019-06-13 Pedro Alves <palves@redhat.com>
3896 * cli/cli-setshow.c (parse_auto_binary_operation)
3897 (parse_cli_boolean_value): Don't allow "o".
3899 2019-06-13 Pedro Alves <palves@redhat.com>
3901 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
3902 * NEWS: Mention maint test-settings KIND.
3903 * maint-test-settings.c: New file.
3905 2019-06-13 Pedro Alves <palves@redhat.com>
3907 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
3909 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
3912 2019-06-13 Pedro Alves <palves@redhat.com>
3914 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
3917 2019-06-13 Pedro Alves <palves@redhat.com>
3919 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
3921 2019-06-13 Pedro Alves <palves@redhat.com>
3923 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
3924 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
3926 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
3927 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
3929 (check_for_argument): Skip spaces after argument.
3931 2019-06-13 Pedro Alves <palves@redhat.com>
3933 * thread.c (thread_apply_command): Adjust TID parsing.
3934 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
3935 detected before end of string.
3936 (tid_is_in_list): Error out if LIST is invalid.
3938 2019-06-13 Pedro Alves <palves@redhat.com>
3940 * completer.c (complete_line_internal_1): Rewind completion word
3942 (completion_tracker::advance_custom_word_point_by): Change
3943 parameter type to int.
3944 * completer.h (completion_tracker::advance_custom_word_point_by):
3947 2019-06-13 Pedro Alves <palves@redhat.com>
3949 * completer.c (advance_to_completion_word): Handle delimiters.
3951 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
3953 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
3955 2019-06-11 Tom Tromey <tom@tromey.com>
3957 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
3958 (xmalloc_failed): Move to alloc.c.
3959 * alloc.c: New file.
3960 * Makefile.in (COMMON_SFILES): Add alloc.c.
3962 2019-06-11 Tom Tromey <tom@tromey.com>
3964 * nat/linux-waitpid.c: Don't include server.h.
3965 (linux_debug): Remove.
3966 (my_waitpid): Update.
3968 2019-06-11 Tom Tromey <tromey@adacore.com>
3970 * infcall.c (_initialize_infcall): Remove trailing newline from
3972 * user-regs.c (_initialize_user_regs): Remove trailing newline
3974 * typeprint.c (_initialize_typeprint): Remove trailing newline
3976 * reverse.c (_initialize_reverse): Remove trailing newlines from
3978 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
3980 * language.c (add_set_language_command): Remove trailing newline
3982 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
3984 * disasm.c (_initialize_disasm): Remove trailing newline from
3986 * top.c (init_main): Remove trailing newline from help.
3987 * interps.c (_initialize_interpreter): Remove trailing newline
3989 * btrace.c (_initialize_btrace): Remove trailing newlines from
3991 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
3993 * python/python.c (_initialize_python): Remove trailing newline
3995 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
3997 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
3998 from help. Reformat some text.
3999 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
4001 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
4004 2019-06-11 Tom Tromey <tromey@adacore.com>
4006 * darwin-nat.c (darwin_decode_exception_message)
4007 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
4009 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
4011 * valops.c (value_slice): Check for not allocated or not
4014 2019-06-10 Tom de Vries <tdevries@suse.de>
4017 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
4018 sure an empty slot (defined by a 32-bit zero pair) is recognized as
4021 2019-06-10 Tom de Vries <tdevries@suse.de>
4024 * linespec.c (linespec_lexer_lex_string): Remove incorrect
4025 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
4027 2019-06-10 Tom de Vries <tdevries@suse.de>
4030 * symtab.c (struct demangled_name_entry): Add language field.
4031 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
4032 static minimal symbol". Set and use language field.
4034 2019-06-10 Tom Tromey <tromey@adacore.com>
4036 * ada-lang.c (_initialize_ada_language): Update help text.
4038 2019-06-10 Tom Tromey <tromey@adacore.com>
4040 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
4042 * guile/guile.c (handle_boot_error): Don't end warning with a
4044 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
4045 warning with a newline.
4046 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
4048 (s12z_frame_cache): Likewise.
4049 * dwarf-index-cache.c (index_cache::store): Don't end warning with
4051 * solib-svr4.c (disable_probes_interface): Don't end warning with
4053 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
4055 * python/python.c (do_finish_initialization): Don't end warning
4058 2019-06-10 Tom Tromey <tom@tromey.com>
4060 * python/py-breakpoint.c (gdbpy_breakpoint_created)
4061 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
4064 2019-06-10 Tom Tromey <tromey@adacore.com>
4066 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
4068 (elf_new_init): Don't call stabsread_new_init.
4069 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
4070 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
4071 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
4073 2019-06-10 Tom de Vries <tdevries@suse.de>
4077 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
4079 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
4081 * source.c (find_and_open_source): Also rewrite relative file
4084 2019-04-26 Amos Bird <amosbird@gmail.com>
4086 * annotate.c (annotate_thread_exited): Add "thread-exited"
4089 2019-06-06 Tom Tromey <tromey@adacore.com>
4091 * maint.h (class scoped_command_stats): Use
4092 DISABLE_COPY_AND_ASSIGN.
4093 <print_time>: New method.
4094 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
4096 (scoped_command_stats::print_time): New method.
4098 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4100 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
4101 instructions of lengths 6 or 8 bytes.
4103 2019-06-04 Pedro Alves <palves@redhat.com>
4105 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
4107 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
4108 * breakpoint.c (condition_completer): Likewise.
4109 * cli/cli-dump.c (scan_expression): Likewise.
4110 * common/filestuff.c (mkdir_recursive): Likewise.
4111 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
4112 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
4113 (gdb_abspath): Likewise.
4114 * compile/compile-cplus-types.c
4115 (compile_cplus_instance::decl_name): Likewise.
4116 * completer.c (complete_explicit_location):
4117 (signal_completer, reg_or_group_completer_1): Likewise.
4118 * cp-support.c (cp_remove_params_if_any): Likewise.
4119 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
4120 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
4121 * infcmd.c (strip_bg_char): Likewise.
4122 * linespec.c (copy_token_string): Likewise.
4123 * mi/mi-main.c (output_cores): Likewise.
4124 * psymtab.c (psymtab_search_name):
4125 * symfile.c (test_set_ext_lang_command): Likewise.
4126 * target.c (target_fileio_read_stralloc): Likewise.
4127 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
4128 * value.c (complete_internalvar): Likewise.
4130 2019-06-04 Christian Biesinger <cbiesinger@google.com>
4132 Add objfile property to gdb.Type.
4133 * NEWS: Mention Python API addition.
4134 * python/py-type.c (typy_get_objfile): New method.
4136 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4138 * NEWS: Mention the new set|show style [title|highlight].
4139 Mention changes to "show style", "help" and "apropos".
4141 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4143 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
4144 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
4145 instead of print_help_for_command.
4146 (print_doc_of_command): New function.
4147 (help_list): Add 'apropos -v word' suggestion.
4148 (print_help_for_command): Style the command name using title style.
4149 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
4150 (_initialize_cli_cmds): Describe -v in apropos_command help.
4152 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4154 * cli/cli-style.h (cli_style_option): Add name in constructor,
4155 add m_name class member, add constructor with intensity,
4156 add name class function.
4157 (cli_style_option::add_setshow_commands): Remove name argument.
4158 (highlight_style, title_style): New styles.
4159 * cli/cli-style.c (do_show): New function that shows a style
4160 characteristic styling the style name with itself.
4161 (set_style_name): New function.
4162 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
4163 Update all callers according to the changes in cli/cli-style.h.
4164 * utils.h (fputs_highlighted): New function.
4165 * utils.c (fputs_highlighted): Likewise.
4167 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4169 * NEWS: Mention new pipe command and new convenience variables.
4171 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4173 * cli/cli-cmds.c (pipe_command): New function.
4174 (_initialize_cli_cmds): Call add_com for pipe_command.
4175 Define | as an alias for pipe.
4176 (exit_status_set_internal_vars): New function.
4177 (shell_escape): Call exit_status_set_internal_vars.
4178 cli/cli-decode.c (find_command_name_length): Recognize | as
4179 a single character command.
4181 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4183 * gdbcmd.h (execute_command_to_ui_file): New declaration.
4184 top.c (execute_command_to_ui_file): New function, mostly a copy
4185 of execute_command_to_string.
4186 (execute_command_to_string): Implement by calling
4187 execute_command_to_ui_file.
4189 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4191 * top.h (saved_command_line): Remove declaration.
4192 * top.c (previous_saved_command_line, previous_repeat_arguments):
4194 (saved_command_line): Make static, define together with other
4196 (dont_repeat): Clear repeat_arguments.
4197 (repeat_previous, get_saved_command_line, save_command_line):
4199 (gdb_init): Initialize saved_command_line
4200 and previous_saved_command_line.
4201 * main.c (captured_main_1): Remove saved_command_line initialization.
4202 * event-top.c (handle_line_of_input): Update to use
4203 the new 'repeat' related functions instead of direct access to
4205 * command.h (repeat_previous, get_saved_command_line,
4206 save_command_line): New declarations.
4207 (dont_repeat): Add comment.
4209 2019-05-30 Tom Tromey <tromey@adacore.com>
4211 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
4213 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
4215 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
4218 * completer.c (complete): Initialize variable word.
4220 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
4222 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
4223 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
4224 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
4225 'body' is NULL to the outter 'if', protecting the '!is_define'
4228 2019-05-29 Tom Tromey <tromey@adacore.com>
4230 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
4231 (dwarf_unknown): New function.
4232 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
4233 (dwarf_type_encoding_name): Use dwarf_unknown.
4235 2019-05-29 Tom Tromey <tromey@adacore.com>
4238 * cp-valprint.c (cp_print_value_fields): Call
4239 cp_print_static_field inside "try".
4241 2019-05-29 Tom Tromey <tromey@adacore.com>
4243 * inflow.c (struct terminal_info): Add default operator=.
4244 * configure: Rebuild.
4245 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
4246 -Wdeprecated-copy-dtor, -Wredundant-move.
4248 2019-05-29 Tom Tromey <tromey@adacore.com>
4251 * infcmd.c (print_return_value_1): Handle finish_print
4253 (show_print_finish): New function.
4254 (_initialize_infcmd): Add "set/show print finish" commands.
4255 * valprint.c (user_print_options): Initialize new member.
4256 * valprint.h (struct value_print_options) <finish_print>: New
4259 2019-05-28 Tom Tromey <tromey@adacore.com>
4261 * ada-lang.c (ada_remove_Xbn_suffix)
4262 (find_old_style_renaming_symbol)
4263 (parse_old_style_renaming): Remove.
4264 (ada_find_renaming_symbol): Don't call
4265 find_old_style_renaming_symbol.
4266 (ada_is_renaming_symbol): Rename from
4267 ada_find_renaming_symbol. Remove "block" parameter. Return
4269 (ada_read_var_value): Update and simplify.
4270 * ada-exp.y (write_var_or_type): Remove old code.
4272 2019-05-28 Alan Hayward <alan.hayward@arm.com>
4274 * event-top.c: Remove include comment.
4275 * inflow.c (class scoped_ignore_sigttou): Move from here...
4276 * inflow.h (class scoped_ignore_sigttou): ...to here.
4277 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
4278 * top.c: Remove include comment.
4280 2019-05-27 Tom Tromey <tom@tromey.com>
4284 2019-05-22 Tom Tromey <tromey@adacore.com>
4286 * target.c (target_follow_exec): Constify parameter.
4287 * target-delegates.c: Rebuild.
4288 * remote.c (remote_target::follow_exec): Constify parameter.
4289 * infrun.c (follow_exec): Constify parameter.
4290 * target.h (struct target_ops) <follow_exec>: Constify parameter.
4291 (target_follow_exec): Likewise.
4293 2019-05-22 Alan Hayward <alan.hayward@arm.com>
4295 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
4296 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
4298 2019-05-22 Alan Hayward <alan.hayward@arm.com>
4300 * NEWS: Add debugredirect and testsuite sections.
4302 2019-05-22 Simon Cook <simon.cook@embecosm.com>
4304 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
4305 target descriptions using exclusively floating point register name
4308 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
4311 * f-lang.c (build_fortran_types): Handle the case where
4312 gdbarch_floatformat_for_type returns a nullptr.
4314 2019-05-21 Tom de Vries <tdevries@suse.de>
4317 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
4319 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
4322 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
4324 * i386-tdep.c (i386_floatformat_for_type): Use
4325 floatformats_ia64_quad for the 16-byte floating point component
4326 within a fortran 32-byte complex number.
4328 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
4330 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
4331 delete default constructor.
4332 (find_partial_die): Update to return const struct.
4333 (partial_die_parent_scope): Move variable declaration into scope
4334 of its use and change its type to auto.
4335 (guess_partial_die_structure_name): Likewise.
4336 (partial_die_info::fixup): Likewise.
4338 2019-05-17 Tom Tromey <tromey@adacore.com>
4340 * source.c (find_and_open_source): Remove cast.
4342 2019-05-17 Tom Tromey <tromey@adacore.com>
4344 * annotate.c (annotate_source): Make "filename" const.
4345 * annotate.h (annotate_source): Use const.
4347 2019-05-17 Alan Hayward <alan.hayward@arm.com>
4349 * disasm.c (set_disassembler_options): Send errors to stderr.
4351 2019-05-17 Alan Hayward <alan.hayward@arm.com>
4353 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
4354 (cli_interp_base::set_logging): Check debug_redirect.
4355 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
4356 * cli/cli-logging.c (debug_redirect): Add static variable.
4357 (pop_output_files): Add default param.
4358 (handle_redirections): Print debug setting.
4359 (show_logging_command): Likewise.
4360 (_initialize_cli_logging): Add debugredirect command.
4361 * interps.c (current_interp_set_logging): Add debug_redirect
4363 * interps.h (set_logging): Add debug_redirect parameter.
4364 (current_interp_set_logging): Likewise.
4365 * mi/mi-common.h: Likewise.
4366 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
4368 2019-05-17 Alan Hayward <alan.hayward@arm.com>
4369 Tom Tromey <tromey@adacore.com>
4371 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
4373 * cli/cli-interp.h (make_logging_output): Remove declaration.
4374 * cli/cli-logging.c (make_logging_output): Remove function.
4375 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
4377 * ui-file.c (tee_file::tee_file): Remove bools.
4378 (tee_file::~tee_file): Remove deletes.
4379 * ui-file.h (tee_file): Remove bools.
4381 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
4383 * mi/mi-cmds.h (mi_cmd_complete): New function.
4384 * mi/mi-main.c (mi_cmd_complete): Likewise.
4385 * mi/mi-cmds.c: Define new MI command -complete.
4386 * NEWS: Mention new -complete command.
4388 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
4390 * completer.h (complete): New function.
4391 * completer.c (complete): Likewise.
4392 * cli/cli-cmds.c: (complete_command): Update to use new complete()
4393 function defined in completer.h.
4395 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
4397 * MAINTAINERS (Write After Approval): Add myself.
4399 2019-05-17 Tom de Vries <tdevries@suse.de>
4402 * dwarf2read.c (struct cu_partial_die_info): New struct.
4403 (find_partial_die): Return cu_partial_die_info.
4404 (partial_die_parent_scope, guess_partial_die_structure_name)
4405 (partial_die_info::fixup): Handle new return type of find_partial_die.
4407 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4409 * stap-probe.c (stap_parse_register_operand): Make "regname" an
4410 "std::string", simplifying the algorithm.
4412 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4414 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
4415 (stap_static_probe_ops::get_probes): Likewise.
4417 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4419 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
4420 '-')" and "else if".
4421 (stap_parse_single_operand): Join checks for
4422 "gdbarch_stap_parse_special_token_p" and
4423 "gdbarch_stap_parse_special_token" in the same "if" statement.
4424 Invert check when verifying for operation on register
4427 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4429 * stap-probe.c (stap_get_opcode): Update comment.
4430 (stap_get_expected_argument_type): Likewise.
4431 (handle_stap_probe): Likewise.
4433 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4435 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
4436 return type to 'bool'. Adjust comment. Use 'bool' when
4438 (i386_stap_parse_special_token_three_arg_disp): Likewise.
4439 * stap-probe.c (stap_parse_argument_1): Likewise.
4440 (stap_is_operator): Likewise.
4441 (stap_is_generic_prefix): Likewise.
4442 (stap_is_register_prefix): Likewise.
4443 (stap_is_register_indirection_prefix): Likewise.
4444 (stap_is_integer_prefix): Likewise.
4445 (stap_generic_check_suffix): Likewise.
4446 (stap_check_integer_suffix): Likewise.
4447 (stap_check_register_suffix): Likewise.
4448 (stap_check_register_indirection_suffix): Likewise.
4449 (stap_parse_register_operand): Likewise.
4450 (stap_parse_single_operand): Likewise.
4451 (stap_parse_argument_1): Likewise.
4452 (stap_probe::get_argument_count): Likewise.
4453 (stap_is_operator): Likewise.
4455 2019-05-16 Tom Tromey <tromey@adacore.com>
4457 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
4460 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
4462 * linux-thread-db.c (try_thread_db_load_1): Change return type
4464 (try_thread_db_load): Likewise.
4465 (try_thread_db_load_from_pdir_1): Likewise.
4466 (try_thread_db_load_from_pdir): Likewise.
4467 (try_thread_db_load_from_sdir): Likewise.
4468 (try_thread_db_load_from_dir): Likewise.
4469 (thread_db_load_search): Likewise.
4470 (has_libpthread): Likewise.
4471 (thread_db_load): Likewise.
4473 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
4475 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
4476 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
4477 NULL, and complain/return if that's the case.
4479 2019-05-15 John Darrington <john@darrington.wattle.id.au>
4481 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
4482 (advance, posn, abstract_read_memory): New functions.
4483 [struct mem_read_abstraction]: New struct.
4484 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
4486 2019-05-14 Tom Tromey <tromey@adacore.com>
4488 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
4489 value is not lval_memory.
4491 2019-05-14 Tom Tromey <tromey@adacore.com>
4493 * solib.c (info_sharedlibrary_command): Style the file name.
4495 2019-05-14 Alan Hayward <alan.hayward@arm.com>
4497 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
4498 (aarch64_vnv_type): Likewise.
4499 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
4500 * common/tdesc.c: Likewise.
4501 * common/tdesc.h (enum tdesc_type_kind): Likewise.
4502 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
4503 * features/aarch64-fpu.xml: Add ieee half view.
4504 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
4505 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
4506 * gdbtypes.h (struct builtin_type): Likewise.
4507 (struct objfile_type): Likewise.
4509 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
4511 * language.c (language_sniff_from_mangled_name): Fix "langauge"
4513 * location.h (string_to_event_location): Likewise.
4515 2019-05-11 Joel Brobecker <brobecker@adacore.com>
4519 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
4521 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
4522 New variable declaration.
4523 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
4525 (print_one_breakpoint): Use ui_out::test_flags and new global
4526 variable to compute use_fixed_output.
4527 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
4529 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
4530 (mi_multi_location_breakpoint_output_fixed): Remove.
4531 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
4533 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
4534 fix_multi_location_breakpoint_output flag if version >= 3.
4535 * ui-out.h (enum ui_out_flag)
4536 <fix_multi_location_breakpoint_output>: New enumerator.
4538 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
4540 * contrib/cc-with-tweaks.sh: Validate dwz's work.
4542 2019-05-10 Tom Tromey <tromey@adacore.com>
4544 * ada-lang.c (catch_ada_completer): New function.
4545 (_initialize_ada_language): Use it.
4547 2019-05-10 Tom Tromey <tromey@adacore.com>
4549 * thread.c (print_thread_info): Make "requested_threads" const.
4550 * gdbthread.h (print_thread_info): Make "requested_threads"
4552 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
4553 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
4555 2019-05-08 Tom Tromey <tom@tromey.com>
4557 * gdbtypes.c (objfile_type_data): Change type.
4558 (objfile_type, _initialize_gdbtypes): Update.
4560 2019-05-08 Tom Tromey <tom@tromey.com>
4562 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
4563 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
4564 (_initialize_dwarf2_frame): Update.
4566 2019-05-08 Tom Tromey <tom@tromey.com>
4568 * objc-lang.c (objc_objfile_data): Change type.
4569 (find_methods): Update.
4570 (_initialize_objc_lang): Remove.
4572 2019-05-08 Tom Tromey <tom@tromey.com>
4574 * stabsread.c (rs6000_builtin_type_data): Change type.
4575 (rs6000_builtin_type, _initialize_stabsread): Update.
4577 2019-05-08 Tom Tromey <tom@tromey.com>
4579 * mips-tdep.c (mips_pdr_data): Remove.
4580 (_initialize_mips_tdep): Update.
4582 2019-05-08 Tom Tromey <tom@tromey.com>
4584 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
4585 (hppa_init_objfile_priv_data, read_unwind_info)
4586 (find_unwind_entry, _initialize_hppa_tdep): Update.
4588 2019-05-08 Tom Tromey <tom@tromey.com>
4590 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
4591 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
4593 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
4595 2019-05-08 Tom Tromey <tom@tromey.com>
4597 * mdebugread.c (basic_type_data): Change type.
4598 (basic_type, _initialize_mdebugread): Update.
4600 2019-05-08 Tom Tromey <tom@tromey.com>
4602 * common/gdb_unique_ptr.h (struct noop_deleter): New.
4604 2019-05-08 Tom Tromey <tom@tromey.com>
4606 * nto-tdep.c (nto_inferior_data_reg): Change type.
4607 (nto_inferior_data): Update.
4608 (nto_inferior_data_cleanup, nto_new_inferior_data)
4609 (_initialize_nto_tdep): Remove.
4610 * nto-tdep.h (struct nto_inferior_data): Add initializers.
4612 2019-05-08 Tom Tromey <tom@tromey.com>
4614 * ada-lang.c (struct ada_inferior_data): Add initializers.
4615 (ada_inferior_data): Change type.
4616 (ada_inferior_data_cleanup): Remove.
4617 (get_ada_inferior_data, ada_inferior_exit)
4618 (struct ada_pspace_data): Add initializers, destructor.
4619 (ada_pspace_data_handle): Change type.
4620 (get_ada_pspace_data): Update.
4621 (ada_pspace_data_cleanup): Remove.
4623 2019-05-08 Tom Tromey <tom@tromey.com>
4625 * coffread.c (struct coff_symfile_info): Add initializers.
4626 (coff_objfile_data_key): Move lower. Change type.
4627 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
4629 (coff_free_info): Remove.
4631 2019-05-08 Tom Tromey <tom@tromey.com>
4633 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
4634 (fbsd_pspace_data_handle): Move lower. Change type.
4635 (get_fbsd_pspace_data): Update.
4636 (fbsd_pspace_data_cleanup): Remove.
4637 (_initialize_fbsd_tdep): Update.
4639 2019-05-08 Tom Tromey <tom@tromey.com>
4641 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
4642 (get_ada_tasks_pspace_data): Update.
4643 (ada_tasks_pspace_data_cleanup): Remove.
4644 (_initialize_tasks): Update.
4645 (ada_tasks_inferior_data_handle): Change type.
4646 (get_ada_tasks_inferior_data): Update.
4647 (ada_tasks_inferior_data_cleanup): Remove.
4648 (struct ada_tasks_pspace_data): Add initializers.
4650 2019-05-08 Tom Tromey <tom@tromey.com>
4652 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
4653 * symfile-debug.c (debug_sym_get_probes): Change type.
4654 * stap-probe.c (handle_stap_probe):
4655 (stap_static_probe_ops::get_probes): Change type.
4656 * probe.h (class static_probe_ops) <get_probes>: Change type.
4657 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
4658 (parse_probes_in_pspace): Update.
4659 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
4661 (any_static_probe_ops::get_probes): Change type.
4662 * elfread.c (elfread_data): New typedef.
4663 (probe_key): Change type.
4664 (elf_get_probes): Likewise. Update.
4665 (probe_key_free): Remove.
4666 (_initialize_elfread): Update.
4667 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
4669 (dtrace_process_dof_probe, dtrace_process_dof)
4670 (dtrace_static_probe_ops::get_probe): Change type.
4672 2019-05-08 Tom Tromey <tom@tromey.com>
4674 * xcoffread.c (struct xcoff_symfile_info): Rename from
4675 coff_symfile_info. Add initializers.
4676 (xcoff_objfile_data_key): Move lower. Change type.
4677 (XCOFF_DATA): Rewrite.
4678 (xcoff_free_info): Remove.
4679 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
4680 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
4681 (xcoff_initial_scan): Update.
4683 2019-05-08 Tom Tromey <tom@tromey.com>
4685 * solib-svr4.c (struct svr4_info): Add initializers and
4687 <probes_table>: Now an htab_up.
4688 (solib_svr4_pspace_data): Change type.
4689 (free_probes_table): Simplify.
4690 (~svr4_info): Rename from svr4_pspace_data_cleanup.
4691 (get_svr4_info, probes_table_htab_remove_objfile_probes)
4692 (probes_table_remove_objfile_probes, register_solib_event_probe)
4693 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
4694 (_initialize_svr4_solib): Update.
4696 2019-05-08 Tom Tromey <tom@tromey.com>
4698 * remote.c (remote_pspace_data): Change type.
4699 (remote_pspace_data_cleanup): Remove.
4700 (get_remote_exec_file, set_pspace_remote_exec_file)
4701 (_initialize_remote): Update.
4703 2019-05-08 Tom Tromey <tom@tromey.com>
4705 * breakpoint.c (breakpoint_objfile_key): Change type.
4706 (get_breakpoint_objfile_data): Update.
4707 (free_breakpoint_objfile_data): Remove.
4708 (_initialize_breakpoint): Update.
4710 2019-05-08 Tom Tromey <tom@tromey.com>
4712 * linux-tdep.c (struct linux_info): Add initializers.
4713 (linux_inferior_data): Move. Change type.
4714 (invalidate_linux_cache_inf): Update.
4715 (linux_inferior_data_cleanup): Remove.
4716 (get_linux_inferior_data, _initialize_linux_tdep): Update.
4718 2019-05-08 Tom Tromey <tom@tromey.com>
4720 * auxv.c (auxv_inferior_data): Move. Change type.
4721 (auxv_inferior_data_cleanup): Remove.
4722 (invalidate_auxv_cache_inf): Rewrite.
4723 (get_auxv_inferior_data, _initialize_auxv): Update.
4725 2019-05-08 Tom Tromey <tom@tromey.com>
4727 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
4728 (symfile_debug_objfile_data_key): Change type.
4729 (symfile_debug_installed, debug_qf_has_symbols)
4730 (debug_qf_find_last_source_symtab)
4731 (debug_qf_forget_cached_source_info)
4732 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
4733 (debug_qf_print_stats, debug_qf_dump)
4734 (debug_qf_expand_symtabs_for_function)
4735 (debug_qf_expand_all_symtabs)
4736 (debug_qf_expand_symtabs_with_fullname)
4737 (debug_qf_map_matching_symbols)
4738 (debug_qf_expand_symtabs_matching)
4739 (debug_qf_find_pc_sect_compunit_symtab)
4740 (debug_qf_map_symbol_filenames)
4741 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
4742 (debug_sym_new_init, debug_sym_init, debug_sym_read)
4743 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
4744 (debug_sym_read_linetable, debug_sym_relocate): Update.
4745 (symfile_debug_free_objfile): Remove.
4746 (install_symfile_debug_logging, _initialize_symfile_debug):
4749 2019-05-08 Tom Tromey <tom@tromey.com>
4751 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
4752 allocate_on_obstack.
4753 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
4754 (get_dwarf2_per_objfile): Update.
4755 (set_dwarf2_per_objfile): Remove.
4756 (dwarf2_has_info, dwarf2_get_section_info): Update.
4757 (dwarf2_free_objfile): Remove.
4758 (_initialize_dwarf2_read): Update.
4760 2019-05-08 Tom Tromey <tom@tromey.com>
4762 * auto-load.c (struct auto_load_pspace_info): Add destructor and
4764 <unsupported_script_warning_printed,
4765 script_not_found_warning_printed>: Now bool.
4766 (auto_load_pspace_data): Change type.
4767 (~auto_load_pspace_info): Rename from
4768 auto_load_pspace_data_cleanup.
4769 (get_auto_load_pspace_data, init_loaded_scripts_info)
4770 (clear_section_scripts, maybe_print_unsupported_script_warning)
4771 (maybe_print_script_not_found_warning, _initialize_auto_load):
4774 2019-05-08 Tom Tromey <tom@tromey.com>
4776 * objfiles.c (objfile_pspace_info): Add destructor and
4778 (objfiles_pspace_data): Change type.
4779 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
4780 (get_objfile_pspace_data): Update.
4781 (objfiles_bfd_data): Change type.
4782 (get_objfile_bfd_data): Update.
4783 (objfile_bfd_data_free, _initialize_objfiles): Remove.
4785 2019-05-08 Tom Tromey <tom@tromey.com>
4787 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
4789 (get_catch_syscall_inferior_data): Update.
4790 (catch_syscall_inferior_data_cleanup): Remove.
4791 (_initialize_break_catch_syscall): Update.
4793 2019-05-08 Tom Tromey <tom@tromey.com>
4795 * inflow.c (struct terminal_info): Add destructor and
4797 (inflow_inferior_data): Change type.
4798 (~terminal_info): Rename from inflow_inferior_data_cleanup.
4799 (get_inflow_inferior_data, inflow_inferior_exit)
4800 (swap_terminal_info, _initialize_inflow): Update.
4802 2019-05-08 Tom Tromey <tom@tromey.com>
4804 * target-dcache.c (target_dcache_cleanup): Remove.
4805 (target_dcache_aspace_key): Change type.
4806 (target_dcache_init_p, target_dcache_invalidate)
4807 (target_dcache_get, target_dcache_get_or_init)
4808 (_initialize_target_dcache): Update.
4809 * dcache.h (struct dcache_deleter): New.
4811 2019-05-08 Tom Tromey <tom@tromey.com>
4813 * symtab.c (struct symbol_cache): Add destructor and
4815 (symbol_cache_key): Move. Change type.
4816 (make_symbol_cache, free_symbol_cache): Remove.
4817 (get_symbol_cache): Update.
4818 (symbol_cache_cleanup): Remove.
4819 (ALL_PSPACES, symbol_cache_flush)
4820 (maintenance_print_symbol_cache)
4821 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
4824 2019-05-08 Tom Tromey <tom@tromey.com>
4826 * symtab.c (struct main_info): Add destructor and initializers.
4827 (main_progspace_key): Move. Change type.
4828 (get_main_info): Update.
4829 (main_info_cleanup): Remove.
4830 (_initialize_symtab): Update.
4832 2019-05-08 Tom Tromey <tom@tromey.com>
4834 * registry.h (DECLARE_REGISTRY): Define the _key class.
4836 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
4838 * NEWS: Merge two 'New commands' sections.
4840 2019-05-08 Joel Brobecker <brobecker@adacore.com>
4842 * ada-valprint.c (ada_val_print_gnat_array): Remove language
4843 parameter and use Ada language definition instead.
4844 (ada_val_print_ptr): Remove unused language parameter.
4845 (ada_val_print_num): Remove language parameter and use Ada language
4847 (ada_val_print_enum, ada_val_print_flt): Remove unused language
4849 (ada_val_print_struct_union, ada_val_print_ref): Remove language
4850 parameter and use Ada language definition instead.
4851 (ada_val_print_1): Update all ada_val_print_xxx calls.
4852 Remove language parameter.
4853 (ada_val_print): Update ada_val_print_1 call.
4855 2019-05-08 Tom Tromey <tromey@adacore.com>
4857 * remote.c (remote_hw_watchpoint_limit)
4858 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
4861 2019-05-08 Tom Tromey <tromey@adacore.com>
4863 * maint.c (_initialize_maint_cmds): Move initialization code to
4865 (watchdog, show_watchdog): Move to remote.c.
4866 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
4868 (_initialize_remote): Move initialization code from maint.c.
4869 * defs.h (watchdog): Don't declare.
4871 2019-05-08 Tom Tromey <tromey@adacore.com>
4873 * tui/tui-interp.c: Include main.h.
4874 * interps.c: Include main.h.
4875 * main.h (interpreter_p): Declare.
4876 * defs.h (interpreter_p): Don't declare.
4878 2019-05-08 Tom Tromey <tromey@adacore.com>
4880 * dwarf2loc.c: Include dwarf2read.h.
4881 * defs.h (read_unsigned_leb128): Don't declare.
4882 * dwarf2read.h (read_unsigned_leb128): Declare.
4884 2019-05-08 Tom Tromey <tromey@adacore.com>
4886 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
4889 2019-05-08 Tom Tromey <tromey@adacore.com>
4891 * utils.c (fputs_maybe_filtered): Reset style after paging, even
4892 when no wrap column is set.
4894 2019-05-08 Tom Tromey <tromey@adacore.com>
4896 * c-lang.c (c_get_string): Handle non-C-style arrays.
4898 2019-05-08 Tom Tromey <tromey@adacore.com>
4900 * typeprint.c (print_offset_data::update): Print the bit offset,
4901 not the number of bits remaining.
4903 2019-05-08 Tom Tromey <tromey@adacore.com>
4905 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
4906 padding at end of comment.
4908 2019-05-08 Tom Tromey <tromey@adacore.com>
4910 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
4913 2019-05-06 Tom Tromey <tom@tromey.com>
4915 * common/scoped_mmap.c: Include common-defs.h.
4916 * common/scoped_mmap.h: Don't include config.h.
4918 2019-05-04 Tom Tromey <tom@tromey.com>
4920 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
4921 (struct aarch64_call_info): Add initializers.
4922 <si>: Now a std::vector.
4923 (pass_on_stack, aarch64_push_dummy_call): Update.
4925 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
4926 Tom Tromey <tom@tromey.com>
4928 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
4929 (ppc_threads): Now a std::vector. Now static.
4930 (hwdebug_find_thread_points_by_tid)
4931 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
4934 2019-05-04 Tom Tromey <tom@tromey.com>
4936 * arc-tdep.c (arc_tdesc_init): Return bool.
4938 2019-05-04 Tom Tromey <tom@tromey.com>
4940 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
4941 Use gdb_assert_not_reached.
4943 2019-05-04 Tom Tromey <tom@tromey.com>
4945 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
4948 2019-05-04 Tom Tromey <tom@tromey.com>
4950 * arc-tdep.c (arc_tdesc_init): Use bool.
4952 2019-05-04 Tom Tromey <tom@tromey.com>
4954 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
4956 2019-05-04 Tom Tromey <tom@tromey.com>
4958 * cli/cli-cmds.c (valid_command_p): Return bool.
4960 2019-05-04 Tom Tromey <tom@tromey.com>
4962 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
4963 * command.h (valid_user_defined_cmd_name_p): Channge return type.
4965 2019-05-04 Raul Tambre <raul@tambre.ee>
4967 * python/lib/gdb/prompt.py (_ExtendedPrompt)
4968 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
4969 operator for comparison.
4971 2019-05-04 Tom Tromey <tom@tromey.com>
4973 * psymtab.c (psymbol_name_matches, match_partial_symbol)
4974 (lookup_partial_symbol, print_partial_symbols)
4975 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
4976 (psymbol_compare): Update.
4977 (add_psymbol_to_bcache): Clear the entire psymbol.
4978 (maintenance_check_psymtabs): Update.
4979 * psympriv.h (struct partial_symbol): Don't derive from
4980 general_symbol_info.
4981 <obj_section, unrelocated_address, address,
4982 set_unrelocated_address>: Update.
4983 <ginfo>: New member.
4984 * dwarf-index-write.c (write_psymbols, debug_names::insert)
4985 (debug_names::write_psymbols): Update.
4987 2019-05-04 Tom de Vries <tdevries@suse.de>
4989 * contrib/cc-with-tweaks.sh: Support -n arg.
4991 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4993 * corelow.c (core_target::detach): Ensure frame cache and
4994 register caches are cleared.
4995 inferior.c (exit_inferior_1): Likewise.
4997 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
4998 Tom Tromey <tom@tromey.com>
5000 * dictionary.c (collate_pending_symbols_by_language): Remove
5001 "struct" from foreach.
5002 * symtab.c (lookup_global_symbol_from_objfile)
5003 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
5005 * ser-tcp.c (net_open): Remove "struct" from foreach.
5006 * objfiles.c (objfile_relocate, objfile_rebase)
5007 (objfile_has_symbols): Remove "struct" from foreach.
5008 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
5010 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
5012 * darwin-nat.c (thread_info_from_private_thread_info): Remove
5013 "struct" from foreach.
5014 * ada-lang.c (create_excep_cond_exprs)
5015 (ada_exception_catchpoint_cond_string): Remove "struct" from
5018 2019-05-03 Tom Tromey <tromey@adacore.com>
5020 * ada-exp.y (convert_char_literal): Check suffix of each
5023 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
5026 * ada-exp.y (yywrap): Don't define.
5027 * ada-lex.l (%option): Add noyywrap
5030 2019-05-03 Eli Zaretskii <eliz@gnu.org>
5032 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
5033 _WIN32_WINNT to the XP level, unless already defined to a higher
5036 * unittests/parse-connection-spec-selftests.c:
5038 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
5041 * symfile.c (find_separate_debug_file): Remove colon from the
5042 drive spec of DOS/Windows file names of the target, so that the
5043 file name produced from DEBUGDIR and the target's directory will
5044 be valid on DOS/Windows systems.
5046 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
5048 * rust-lang.c (val_print_struct): Handle printing structures
5051 2019-05-02 Tom Tromey <tromey@adacore.com>
5053 * valarith.c (_initialize_valarith): Remove.
5055 2019-05-01 Tom Tromey <tromey@adacore.com>
5057 * ada-lang.c (ada_value_primitive_field): Treat more fields as
5060 2019-05-01 Tom Tromey <tromey@adacore.com>
5062 * ada-lang.c (ada_value_assign): Correctly compute starting offset
5063 for big-endian copies.
5065 2019-04-30 Ali Tamur <tamur@google.com>
5066 * gdb/dwarf2read.c (read_3_bytes): New declaration.
5067 (read_attribute_value): Added DW_FORM_strx1-4 cases.
5068 (read_3_bytes): New function.
5070 2019-04-30 Joel Brobecker <brobecker@adacore.com>
5072 * windows-nat.c (main_thread_id): Delete.
5073 (handle_output_debug_string): Replace main_thread_id by
5074 current_event.dwThreadId.
5075 (fake_create_process): Likewise.
5076 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
5077 Do not set main_thread_id.
5078 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
5079 current_event.dwThreadId.
5080 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
5082 2019-04-30 Joel Brobecker <brobecker@adacore.com>
5084 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
5085 Use current_event.dwThreadId instead of main_thread_id.
5087 2019-04-30 Tom Tromey <tromey@adacore.com>
5089 * ada-lang.c (ada_lookup_simple_minsyms): New function.
5090 (create_excep_cond_exprs): Iterate over program spaces.
5091 (ada_exception_catchpoint_cond_string): Examine all minimal
5092 symbols for exception types.
5094 2019-04-30 Tom Tromey <tromey@adacore.com>
5097 * dwarf2read.c (process_structure_scope): Handle case where type
5098 has template parameters but no symbol was created.
5100 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5101 Chris January <chris.january@arm.com>
5103 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
5105 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
5107 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5109 * f-typeprint.c (f_print_type): Update rules for printing
5111 (f_type_print_varspec_suffix): Likewise.
5113 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5114 Chris January <chris.january@arm.com>
5116 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
5119 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5121 * f-lang.c (build_fortran_types): Change name of void type to
5123 * f-typeprint.c (f_type_print_base): Print the name of the void
5124 type, rather than a fixed string.
5125 * f-valprint.c (f_decorations): Use lower case void string.
5127 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5128 Chris January <chris.january@arm.com>
5130 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
5133 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5134 Chris January <chris.january@arm.com>
5135 David Lecomber <david.lecomber@arm.com>
5137 * f-exp.y (BINOP_INTRINSIC): New token.
5138 (exp): New parser rule handling BINOP_INTRINSIC.
5139 (f77_keywords): Add new builtin procedures.
5140 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
5141 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5142 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
5143 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5144 (print_unop_subexp_f): New function.
5145 (print_binop_subexp_f): New function.
5146 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
5147 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5148 (dump_subexp_body_f): Likewise.
5149 (operator_check_f): Likewise.
5150 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
5151 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
5153 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5155 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
5157 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
5158 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
5159 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
5160 (operator_length_f): New fuction.
5161 (print_subexp_f): New function.
5162 (op_name_f): New function.
5163 (dump_subexp_body_f): New function.
5164 (operator_check_f): New function.
5165 (exp_descriptor_f): Replace standard expression handling functions
5167 * gdb/fortran-operator.def: New file.
5168 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
5169 * gdb/std-operator.def: Remove UNOP_KIND.
5171 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5173 * std-operator.def: Remove unbalanced, stray double quote
5176 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5177 Chris January <chris.january@arm.com>
5178 Daniel Everett <daniel.everett@arm.com>
5179 Nick Forrington <nick.forrington@arm.com>
5180 Richard Bunt <richard.bunt@arm.com>
5182 * cp-valprint.c (cp_print_value_fields): Allow an additional level
5183 of depth when printing anonymous structs or unions.
5184 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
5185 Don't print either the top-level value, or the children if the
5186 max-depth is exceeded.
5187 (ppscm_print_children): When printing the key of a map, allow one
5188 extra level of depth.
5189 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
5190 print either the top-level value, or the children if the max-depth
5192 (print_children): When printing the key of a map, allow one extra
5194 * python/py-value.c (valpy_format_string): Add max_depth keyword.
5195 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
5196 (user_print_options): Initialise max_depth field.
5197 (val_print_scalar_or_string_type_p): New function.
5198 (val_print): Check to see if the max depth has been reached.
5199 (val_print_check_max_depth): Define new function.
5200 (show_print_max_depth): New function.
5201 (_initialize_valprint): Add 'print max-depth' option.
5202 * valprint.h (struct value_print_options) <max_depth>: New field.
5203 (val_print_check_max_depth): Declare new function.
5204 * NEWS: Document new feature.
5206 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5208 * ada-lang.c (ada_language_defn): Initialise new field.
5209 * c-lang.c (c_is_string_type_p): New function.
5210 (c_language_defn): Initialise new field.
5211 (cplus_language_defn): Initialise new field.
5212 (asm_language_defn): Initialise new field.
5213 (minimal_language_defn): Initialise new field.
5214 * c-lang.h (c_is_string_type_p): Declare new function.
5215 * d-lang.c (d_language_defn): Initialise new field.
5216 * f-lang.c (f_is_string_type_p): New function.
5217 (f_language_defn): Initialise new field.
5218 * go-lang.c (go_is_string_type_p): New function.
5219 (go_language_defn): Initialise new field.
5220 * language.c (default_is_string_type_p): New function.
5221 (unknown_language_defn): Initialise new field.
5222 (auto_language_defn): Initialise new field.
5223 * language.h (struct language_defn) <la_is_string_type_p>: New
5225 (default_is_string_type_p): Declare new function.
5226 * m2-lang.c (m2_language_defn): Initialise new field.
5227 * objc-lang.c (objc_language_defn): Initialise new field.
5228 * opencl-lang.c (opencl_language_defn): Initialise new field.
5229 * p-lang.c (pascal_is_string_type_p): New function.
5230 (pascal_language_defn): Initialise new field.
5231 * rust-lang.c (rust_is_string_type_p): New function.
5232 (rust_language_defn): Initialise new field.
5234 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5236 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
5238 * ada-lang.c (ada_language_defn): Initialise new field.
5239 * c-lang.c (c_language_defn): Likewise.
5240 (cplus_language_defn): Likewise.
5241 (asm_language_defn): Likewise.
5242 (minimal_language_defn): Likewise.
5243 * d-lang.c (d_language_defn): Likewise.
5244 * f-lang.c (f_language_defn): Likewise.
5245 * go-lang.c (go_language_defn): Likewise.
5246 * language.c (unknown_language_defn): Likewise.
5247 (auto_language_defn): Likewise.
5248 * m2-lang.c (m2_language_defn): Likewise.
5249 * objc-lang.c (objc_language_defn): Likewise.
5250 * opencl-lang.c (opencl_language_defn): Likewise.
5251 * p-lang.c (pascal_language_defn): Likewise.
5252 * rust-lang.c (rust_language_defn): Likewise.
5254 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5256 * ada-lang.c (ada_is_character_type): Change return type to bool.
5257 (ada_is_string_type): Likewise.
5258 * ada-lang.h (ada_is_character_type): Update declaration
5259 (ada_is_string_type): Likewise.
5261 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5263 Support style in 'frame|thread apply'
5265 * gdbcmd.h (execute_command_to_string): New term_out parameter.
5266 * record.c (record_start, record_stop): Update callers of
5267 execute_command_to_string with false.
5268 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
5269 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
5271 (class string_file): New constructor with term_out parameter.
5272 Override methods term_out and can_emit_style_escape. New member
5274 (class stdio_file): Override can_emit_style_escape.
5275 (class tee_file): Override term_out and can_emit_style_escape.
5276 * utils.h (can_emit_style_escape): Remove.
5277 * utils.c (can_emit_style_escape): Likewise.
5278 Update all callers of can_emit_style_escape (SOMESTREAM) to
5279 SOMESTREAM->can_emit_style_escape.
5280 * source-cache.c (source_cache::get_source_lines): Likewise.
5281 * stack.c (frame_apply_command_count): Call execute_command_to_string
5282 passing the term_out characteristic of the current gdb_stdout.
5283 * thread.c (thr_try_catch_cmd): Likewise.
5284 * top.c (execute_command_to_string): pass term_out parameter
5285 to construct the string_file for the command output.
5286 * ui-file.c (term_cli_styling): New function (most code moved
5287 from utils.c can_emit_style_escape).
5288 (string_file::string_file, string_file::can_emit_style_escape,
5289 stdio_file::can_emit_style_escape, tee_file::term_out,
5290 tee_file::can_emit_style_escape): New functions.
5292 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5294 * NEWS: Mention the new set|show may-call-functions.
5295 * infcall.c (may_call_functions_p): New variable.
5296 (show_may_call_functions_p): New function.
5297 (call_function_by_hand_dummy): Throws an error if not
5299 (_initialize_infcall): Call add_setshow_boolean_cmd for
5302 2019-04-25 Keith Seitz <keiths@redhat.com>
5305 * cp-support.c (inspect_type): Don't attempt substitutions
5306 of symbol with the same name.
5308 2019-04-25 Tom Tromey <tromey@adacore.com>
5311 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
5314 2019-04-25 Tom Tromey <tromey@adacore.com>
5316 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
5318 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
5319 (gdb_xml_parser::parse): Use std::move.
5320 * python/python-internal.h (gdbpy_convert_exception): Take a const
5322 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
5324 * python/py-utils.c (gdbpy_convert_exception): Take a const
5326 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
5328 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
5330 * mi/mi-main.c (mi_print_exception): Take a const reference.
5331 * main.c (handle_command_errors): Take a const reference.
5332 * linespec.c (parse_linespec): Use std::move.
5333 * infcall.c (run_inferior_call): Use std::move.
5334 (call_function_by_hand_dummy): Use std::move.
5335 * exec.c (try_open_exec_file): Use std::move.
5336 * exceptions.h (exception_print, exception_fprintf)
5337 (exception_print_same): Update.
5338 * exceptions.c (print_exception, exception_print)
5339 (exception_fprintf, exception_print_same): Change parameters to
5341 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
5342 * common/new-op.c: Use std::move.
5343 * common/common-exceptions.h (struct gdb_exception): Add move
5345 (struct gdb_exception_error, struct gdb_exception_quit, struct
5346 gdb_quit_bad_alloc): Change constructor to move constructor.
5347 (throw_exception): Change parameter to rvalue reference.
5348 * common/common-exceptions.c (throw_exception): Take rvalue
5350 * cli/cli-interp.c (safe_execute_command): Use std::move.
5351 * breakpoint.c (insert_bp_location, location_to_sals): Use
5354 2019-04-25 Tom Tromey <tromey@adacore.com>
5356 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
5357 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
5358 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
5359 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
5360 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
5361 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
5362 guile/scm-value.c: Use unpack.
5363 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
5364 gdbscm_gdb_exception.
5365 (gdbscm_throw_gdb_exception): Likewise.
5366 (struct gdbscm_gdb_exception): New.
5367 (unpack): New function.
5368 (gdbscm_wrap): Use unpack.
5370 2019-04-25 Tom Tromey <tromey@adacore.com>
5372 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
5373 (gdb_rl_callback_handler): Use std::move.
5374 * common/common-exceptions.h (struct gdb_exception): Add move
5375 assignment operator.
5376 (throw_exception_sjlj): Change "exception" to const reference.
5377 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
5378 (throw_exception_sjlj): Change "exception" to const reference.
5380 2019-04-25 Tom Tromey <tromey@adacore.com>
5382 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
5383 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
5384 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
5386 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
5388 * mi/mi-interp.c (mi_interp::exec): Update.
5389 * linespec.c (parse_linespec): Update.
5390 * infcall.c (run_inferior_call): Update.
5391 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
5392 * guile/scm-symbol.c (gdbscm_lookup_symbol)
5393 (gdbscm_lookup_global_symbol): Update.
5394 * guile/scm-param.c (gdbscm_parameter_value): Update.
5395 * guile/scm-frame.c (gdbscm_frame_read_register)
5396 (gdbscm_frame_read_var): Update.
5397 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
5398 * exec.c (try_open_exec_file): Update.
5399 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
5400 (gdb_rl_callback_handler): Update.
5401 * common/common-exceptions.h (exception_none): Don't declare.
5402 * common/common-exceptions.c (exception_none): Don't define.
5403 (struct catcher) <exception>: Update.
5404 * cli/cli-interp.c (safe_execute_command): Update.
5405 * breakpoint.c (insert_bp_location, location_to_sals): Update.
5407 2019-04-25 Ali Tamur <tamur@google.com>
5409 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
5410 (read_attribute_value): Likewise.
5411 (dwarf2_read_addr_index): Update comment.
5412 (read_str_index): Add DW_FORM_strx.
5413 (dwarf2_string_attr): Likewise.
5414 (dwarf2_const_value_attr): Likewise.
5415 (dump_die_shallow): Likewise.
5416 (dwarf2_fetch_constant_bytes): Likewise.
5417 (skip_form_bytes): Likewise.
5418 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
5420 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
5424 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
5425 OFFSET. Verify if current mapping contains an ELF header.
5426 (linux_find_memory_regions_full): Adjust call to
5429 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
5430 Kang Li <kanglictf@gmail.com>
5434 * dwarf2-frame.c (read_initial_length): Be consistent about using
5435 unsigned representation of length.
5436 (decode_frame_entry_1): Likewise. Check for wraparound of
5437 end pointer as well as buffer overflow.
5439 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
5441 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
5444 2019-04-24 Tom Tromey <tromey@adacore.com>
5446 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
5448 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5450 * s12z-tdep.c (s12z_unwind_pc): Delete.
5451 (s12z_unwind_sp): Delete.
5452 (s12z_gdbarch_init): Don't register deleted functions with
5455 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5457 * rl78-tdep.c (rl78_unwind_sp): Delete.
5458 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
5460 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5462 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
5463 (xstormy16_unwind_pc): Delete.
5464 (xstormy16_dummy_id): Delete.
5465 (xstormy16_gdbarch_init): Don't register deleted functions with
5468 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5470 * vax-tdep.c (vax_unwind_pc): Delete.
5471 (vax_gdbarch_init): Don't register deleted function with gdbarch.
5473 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5475 * v850-tdep.c (v850_unwind_sp): Delete.
5476 (v850_unwind_pc): Delete.
5477 (v850_dummy_id): Delete.
5478 (v850_gdbarch_init): Don't register deleted functions with
5481 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5483 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
5484 (tilegx_unwind_pc): Delete.
5485 (tilegx_unwind_dummy_id): Delete.
5486 (tilegx_gdbarch_init): Don't register deleted functions with
5489 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5491 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
5492 (tic6x_dummy_id): Delete.
5493 (tic6x_gdbarch_init): Don't register deleted functions with
5496 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5498 * sparc-tdep.c (sparc_unwind_pc): Delete.
5499 (sparc32_gdbarch_init): Don't register deleted function with
5502 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5504 * sh-tdep.c (sh_unwind_sp): Delete.
5505 (sh_unwind_pc): Delete.
5506 (sh_dummy_id): Delete.
5507 (sh_gdbarch_init): Don't register deleted functions with
5510 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5512 * score-tdep.c (score_unwind_sp): Delete.
5513 (score_unwind_pc): Delete.
5514 (score_dummy_id): Delete.
5515 (score_gdbarch_init): Don't register deleted functions with
5518 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5520 * rx-tdep.c (rx_unwind_pc): Delete.
5521 (rx_unwind_sp): Delete.
5522 (rx_dummy_id): Delete.
5523 (rx_gdbarch_init): Don't register deleted functions with
5524 gdbarch. Update comment.
5526 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5528 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
5529 (rs6000_dummy_id): Delete.
5530 (rs6000_gdbarch_init): Don't register deleted functions with
5533 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5535 * or1k-tdep.c (or1k_dummy_id): Delete.
5536 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
5538 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5540 * nios2-tdep.c (nios2_dummy_id): Delete.
5541 (nios2_unwind_sp): Delete.
5542 (nios2_gdbarch_init): Don't register deleted functions with
5545 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5547 * nds32-tdep.c (nds32_dummy_id): Delete.
5548 (nds32_unwind_pc): Delete.
5549 (nds32_unwind_sp): Delete.
5550 (nds32_gdbarch_init): Don't register deleted functions with
5553 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5555 * msp430-tdep.c (msp430_unwind_pc): Delete.
5556 (msp430_unwind_sp): Delete.
5557 (msp430_dummy_id): Delete.
5558 (msp430_gdbarch_init): Don't register deleted functions with
5561 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5563 * moxie-tdep.c (moxie_unwind_sp): Delete.
5564 (moxie_unwind_pc): Delete.
5565 (moxie_dummy_id): Delete.
5566 (moxie_gdbarch_init): Don't register deleted functions with
5569 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5571 * mn10300-tdep.c (mn10300_dummy_id): Delete.
5572 (mn10300_unwind_pc): Delete.
5573 (mn10300_unwind_sp): Delete.
5574 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
5576 (mn10300_frame_unwind_init): Don't register deleted functions with
5579 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5581 * mep-tdep.c (mep_unwind_pc): Delete.
5582 (mep_unwind_sp): Delete.
5583 (mep_dummy_id): Delete.
5584 (mep_gdbarch_init): Don't register deleted functions with
5587 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5589 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
5590 (m68hc11_unwind_sp): Delete.
5591 (m68hc11_gdbarch_init): Don't register deleted functions with
5594 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5596 * m32r-tdep.c (m32r_unwind_sp): Delete.
5597 (m32r_unwind_pc): Delete.
5598 (m32r_dummy_id): Delete.
5599 (m32r_gdbarch_init): Don't register deleted functions with
5602 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5604 * m32c-tdep.c (m32c_unwind_pc): Delete.
5605 (m32c_unwind_sp): Delete.
5606 (m32c_dummy_id): Delete.
5607 (m32c_gdbarch_init): Don't register deleted functions with
5610 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5612 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
5613 (lm32_unwind_pc): Delete.
5614 (lm32_dummy_id): Delete.
5615 (lm32_gdbarch_init): Don't register deleted functions with
5618 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5620 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
5621 (iq2000_unwind_pc): Delete.
5622 (iq2000_dummy_id): Delete.
5623 (iq2000_gdbarch_init): Don't register deleted functions with
5626 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5628 * nds32-tdep.c (nds32_type_align): Delete.
5629 (nds32_push_dummy_call): Use type_align instead.
5631 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5633 * arm-tdep.c (arm_type_align): Only handle vector override case.
5634 (arm_push_dummy_call): Use type_align.
5635 (arm_gdbarch_init): Register arm_type_align gdbarch function.
5637 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5639 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
5641 (pass_on_stack): Use type_align.
5642 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
5645 2019-04-23 Tom Tromey <tromey@adacore.com>
5647 * dwarf2read.c (line_header::file_name_at): Remove unused
5650 2019-04-23 Tom de Vries <tdevries@suse.de>
5653 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
5657 2019-03-27 Ali Tamur <tamur@google.com>
5659 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
5660 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
5661 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
5662 (dwarf_expr_context::get_addr_index): Likewise
5663 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
5664 (symbol_needs_eval_context::get_addr_index): Likewise
5665 (disassemble_dwarf_expression): Add DW_OP_addrx
5666 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
5667 (read_cutu_die_from_dwo): Update comment
5668 (skip_one_die): Add DW_FORM_addrx
5669 (read_attribute_value): Likewise
5670 (var_decode_location): Add DW_OP_addrx
5671 (dwarf2_const_value_attr): Add DW_FORM_addrx
5672 (dump_die_shallow): Likewise
5673 (dwarf2_fetch_constant_bytes): Likewise
5674 (decode_locdesc): Add DW_OP_addrx
5675 (skip_form_bytes): Add DW_FORM_addrx
5677 2019-04-22 Ali Tamur <tamur@google.com>
5679 * MAINTAINERS (Write After Approval): Add self.
5681 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
5683 * solib-svr4.c (get_svr4_info): Add pspace parameter.
5684 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
5685 (open_symbol_file_object): Likewise.
5686 (svr4_default_sos): Add info parameter.
5687 (svr4_read_so_list): Likewise.
5688 (svr4_current_sos_direct): Adjust functions calls to pass down
5690 (svr4_current_sos_1): Add info parameter.
5691 (svr4_current_sos): Call get_svr4_info, pass info down to
5693 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
5695 (svr4_in_dynsym_resolve_code): Pass current_program_space to
5697 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
5699 (probes_table_remove_objfile_probes): Likewise.
5700 (register_solib_event_probe): Add info parameter.
5701 (solist_update_incremental): Pass info parameter down to
5703 (disable_probes_interface): Add info parameter.
5704 (svr4_handle_solib_event): Pass current_program_space to
5705 get_svr4_info. Adjust disable_probes_interface cleanup.
5706 (svr4_create_probe_breakpoints): Add info parameter, pass it
5707 down to register_solib_event_probe.
5708 (svr4_create_solib_event_breakpoints): Add info parameter,
5709 pass it down to svr4_create_probe_breakpoints.
5710 (enable_break): Pass info down to
5711 svr4_create_solib_event_breakpoints.
5712 (svr4_solib_create_inferior_hook): Pass current_program_space to
5714 (svr4_clear_solib): Likewise.
5716 2019-04-22 Pedro Alves <palves@redhat.com>
5718 * solib-svr4.c (svr4_free_objfile_observer): New.
5719 (probe_and_action::objfile): New field.
5720 (probes_table_htab_remove_objfile_probes)
5721 (probes_table_remove_objfile_probes): New functions.
5722 (register_solib_event_probe): Add 'objfile' parameter. Store it
5723 in the new probe_and_action. Don't store the probe in 'lookup'.
5724 (svr4_create_probe_breakpoints): Pass objfile to
5725 register_solib_event_probe.
5726 (_initialize_svr4_solib): Register a free_objfile observer.
5728 2019-04-19 Tom Tromey <tom@tromey.com>
5730 * common/queue.h: Remove.
5732 2019-04-19 Tom Tromey <tom@tromey.com>
5734 * event-loop.c: Don't include "common/queue.h".
5736 2019-04-19 Tom Tromey <tom@tromey.com>
5738 * remote.c (remote_target): Use delete.
5739 * remote-notif.h: Include <list>, not "common/queue.h".
5740 (notif_client_p): Remove typedef.
5741 (remote_notif_state): Add constructor, destructor, initializer.
5742 <notif_queue>: Now a std::list.
5743 (remote_notif_state_xfree): Don't declare.
5744 * remote-notif.c (remote_notif_process, handle_notification)
5745 (remote_notif_state_allocate): Update.
5746 (~remote_notif_state): Rename from remote_notif_state_xfree.
5748 2019-04-19 Tom Tromey <tom@tromey.com>
5750 * symfile.c (reread_symbols): Update.
5751 * objfiles.c (objfile_register_static_link)
5752 (objfile_lookup_static_link): Update
5753 (~objfile) Don't delete static_links.
5754 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
5756 2019-04-19 Tom Tromey <tom@tromey.com>
5758 * type-stack.h (struct type_stack) <insert>: Constify string.
5759 * type-stack.c (type_stack::insert): Constify string.
5760 * gdbtypes.h (lookup_template_type): Update.
5761 (address_space_name_to_int): Update.
5762 * gdbtypes.c (address_space_name_to_int): Make space_identifier
5764 (lookup_template_type): Make name const.
5765 * c-exp.y: Update rules.
5766 (lex_one_token, classify_name, classify_inner_name)
5767 (c_print_token): Update.
5768 * p-exp.y: Update rules.
5770 * f-exp.y: Update rules.
5772 * d-exp.y: Update rules.
5773 (lex_one_token, classify_name, classify_inner_name): Update.
5774 * parse.c (write_dollar_variable, copy_name): Return std::string.
5775 * parser-defs.h (copy_name): Change return type.
5776 * m2-exp.y: Update rules.
5778 * go-exp.y (lex_one_token): Update.
5780 (classify_unsafe_function, classify_packaged_name)
5781 (classify_name, yylex): Update.
5783 2019-04-19 Sergei Trofimovich <siarheit@google.com>
5785 * configure.ac: add --enable-source-highlight switch.
5786 * configure: Regenerate.
5787 * top.c (print_gdb_version): plumb --enable-source-highlight
5788 status to "show configuration".
5790 2019-04-19 Tom Tromey <tromey@adacore.com>
5792 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
5794 (empty_record, ada_template_to_fixed_record_type_1)
5795 (template_to_static_fixed_type)
5796 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
5797 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
5798 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
5801 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
5804 * source.c (print_source_lines_base): Advance "iter" when a
5805 control character is seen.
5807 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5809 * inferior.h (struct infcall_suspend_state_deleter):
5810 Catch exception in destructor to avoid crash.
5812 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5814 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
5815 close to the add_com "shell".
5817 2019-04-18 Tom Tromey <tromey@adacore.com>
5819 * process-stratum-target.h (class process_stratum_target)
5820 <stratum>: Add "final".
5822 2019-04-17 Tom Tromey <tromey@adacore.com>
5824 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
5825 against nullptr before use.
5827 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5829 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
5831 2019-04-17 Jim Wilson <jimw@sifive.com>
5832 Andrew Burgess <andrew.burgess@embecosm.com>
5834 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
5835 code read might fail, assume 4-byte breakpoint in that case.
5837 2019-04-15 Leszek Swirski <leszeks@google.com>
5839 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
5840 rather than a hand-rolled POD check when checking for forced MEMORY
5843 2019-04-15 Alan Hayward <alan.hayward@arm.com>
5845 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
5846 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
5848 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
5849 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
5850 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
5853 2019-04-15 Alan Hayward <alan.hayward@arm.com>
5855 * aarch64-linux-nat.c
5856 (aarch64_linux_nat_target::thread_architecture): Add override.
5857 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
5860 2019-04-15 Alan Hayward <alan.hayward@arm.com>
5862 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
5864 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
5866 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
5867 target types of size 96-bits, add some additional comments, and
5868 check that the builtin type we found was the correct size.
5870 2019-04-12 Eli Zaretskii <eliz@gnu.org>
5872 * utils.c (prompt_for_continue): Don't restore the styling at the
5873 end, as applied_style has the wrong value. This fixes styling in
5874 long lists of file names that are interrupted by the "Continue?"
5877 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
5879 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
5880 * c-lang.c (c_language_defn): Likewise.
5881 (cplus_language_defn): Likewise.
5882 (asm_language_defn): Likewise.
5883 (minimal_language_defn): Likewise.
5884 * d-lang.c (d_language_defn): Likewise.
5885 * f-lang.c (f_language_defn): Likewise.
5886 * go-lang.c (go_language_defn): Likewise.
5887 * language.c (unknown_language_defn): Likewise.
5888 (auto_language_defn): Likewise.
5889 * language.h (struct language_defn): Remove la_magic field.
5890 (LANG_MAGIC): Delete.
5891 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
5892 * objc-lang.c (objc_language_defn): Likewise.
5893 * opencl-lang.c (opencl_language_defn): Likewise.
5894 * p-lang.c (pascal_language_defn): Likewise.
5895 * rust-lang.c (rust_language_defn): Likewise.
5897 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
5899 * riscv-tdep.c (riscv_type_align): New function.
5900 (riscv_type_alignment): Delete.
5901 (riscv_arg_location): Use 'type_align'.
5902 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
5904 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
5906 * gdbtypes.c (type_align): A struct with no non-static fields also
5909 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
5911 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
5913 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
5915 (riscv_struct_info::analyse): New implementation using new
5916 analyse_inner member function.
5917 (riscv_struct_info::field_offset): New member function.
5918 (riscv_struct_info::m_offsets): New member variable.
5919 (riscv_struct_info::analyse_inner): New private member function,
5920 takes the old implementation of riscv_struct_info::analyse but
5921 extended to track field offsets.
5922 (riscv_call_arg_struct): Update the struct folding special cases
5923 to handle cases where empty C++ structs, which are non-zero
5925 (riscv_arg_location): Initialise the length of each location, a
5926 non-zero length now indicates the location is in use.
5927 (riscv_push_dummy_call): Allow for the first location having a
5928 non-zero offset when setting up arguments.
5929 (riscv_return_value): Likewise, but for return values.
5931 2019-04-11 Tom Tromey <tromey@adacore.com>
5933 * utils.c (internal_vproblem): Make "msg" const.
5935 2019-04-11 Alan Hayward <alan.hayward@arm.com>
5937 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
5938 * trad-frame.c (trad_frame_reset_saved_regs): New function.
5939 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
5940 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
5942 2019-04-10 Kevin Buettner <kevinb@redhat.com>
5944 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
5946 (fill_gregset): Call amd64_linux_collect_native_gregset instead
5947 of amd64_collect_native_gregset.
5948 (amd64_linux_nat_target::store_registers): Likewise.
5950 2019-04-10 Tom Tromey <tom@tromey.com>
5952 * symtab.c (lookup_global_symbol_from_objfile)
5953 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
5954 * objfiles.h (class separate_debug_iterator): New.
5955 (class separate_debug_range): New.
5956 (struct objfile) <separate_debug_objfiles>: New method.
5957 (objfile_separate_debug_iterate): Don't declare.
5958 * objfiles.c (separate_debug_iterator::operator++): Rename from
5959 objfile_separate_debug_iterate.
5960 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
5962 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
5965 2019-04-10 Tom Tromey <tom@tromey.com>
5967 * symfile.c (reread_symbols): Remove old comment.
5968 * objfiles.c (free_all_objfiles): Fix a typo.
5970 2019-04-10 Tom Tromey <tom@tromey.com>
5972 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
5973 * minsyms.c (lookup_minimal_symbol): Use foreach.
5974 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
5975 (lookup_minimal_symbol_solib_trampoline): Likewise.
5976 * symfile.c (reread_symbols): Use foreach.
5978 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
5979 Tom Tromey <tromey@adacore.com>
5982 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
5983 (rust_lex_int_test): Change "value" to be LONGEST.
5984 (rust_lex_tests): Add test for long integer literal.
5986 2019-04-09 Tom Tromey <tromey@adacore.com>
5988 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
5990 (extended_remote_target::attach): Update.
5991 (remote_target::remote_notice_new_inferior): Update.
5992 (remote_target::add_current_inferior_and_thread): Update.
5993 * inferior.c (exit_inferior_1): Use "false".
5994 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
5996 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
5998 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
5999 the "start" command.
6001 2019-04-08 Kevin Buettner <kevinb@redhat.com>
6003 * python/py-inferior.c (infpy_thread_from_thread_handle):
6004 Adjust comments to reflect renaming of thread_from_thread_handle
6005 to thread_from_handle. Adjust keywords. Fix type error message.
6006 (inferior_object_methods): Add thread_from_handle. Retain
6007 thread_from_thread_handle, but mark it as deprecated.
6009 2019-04-08 Kevin Buettner <kevinb@redhat.com>
6011 * gdbthread.h (find_thread_by_handle): Revise declaration.
6012 * thread.c (find_thread_by_handle): Likewise. Adjust
6014 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
6015 support for buffer objects as handles.
6017 2019-04-08 Kevin Buettner <kevinb@redhat.com>
6019 * python/py-infthread.c (thpy_thread_handle): New function.
6020 (thread_object_methods): Register thpy_thread_handle.
6022 2019-04-08 Kevin Buettner <kevinb@redhat.com>
6024 * gdbthread.h (thread_to_thread_handle): Declare.
6025 * thread.c (gdbtypes.h): Include.
6026 (thread_to_thread_handle): New function.
6028 * target.h (struct target_ops): Add thread_info_to_thread_handle.
6029 (target_thread_info_to_thread_handle): Declare.
6030 * target.c (target_thread_info_to_thread_handle): New function.
6031 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
6032 * target-delegates.c: Regenerate.
6034 * linux-thread-db.c (class thread_db_target): Add method
6035 thread_info_to_thread_handle.
6036 (thread_db_target::thread_info_to_thread_handle): Define.
6037 * remote.c (class remote_target): Add new method
6038 thread_info_to_thread_handle.
6039 (remote_target::thread_info_to_thread_handle): Define.
6041 2019-04-08 Pedro Alves <palves@redhat.com>
6043 * common/common-exceptions.c (throw_exception): Don't create
6044 named object to throw; throw directly.
6045 (throw_it): Likewise. Don't initialize gdb_exception::message
6046 here, with new; pass FMT and AP to the ctor instead.
6047 * common/common-exceptions.h: Include <string>.
6048 (gdb_exception::gdb_exception(enum return_reason, enum errors,
6049 const char *, va_list)): New ctor. Use std::make_shared.
6050 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
6052 (gdb_exception_error::gdb_exception_error(enum errors, const char
6054 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
6056 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
6058 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
6059 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
6062 2019-04-08 Tom Tromey <tom@tromey.com>
6064 * valops.c (value_rtti_indirect_type): Replace throw_exception
6066 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
6068 * thread.c (thr_try_catch_cmd): Replace throw_exception with
6070 * target.c (target_translate_tls_address): Replace throw_exception
6072 * stack.c (frame_apply_command_count): Replace throw_exception
6074 * solib-spu.c (append_ocl_sos): Replace throw_exception with
6076 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
6078 * rs6000-tdep.c (rs6000_frame_cache)
6079 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
6080 * remote.c: Replace throw_exception with throw.
6081 * record-full.c (record_full_message, record_full_wait_1)
6082 (record_full_restore): Replace throw_exception with throw.
6084 (get_thread_current_frame_id, record_btrace_start_replaying)
6085 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
6086 (cmd_record_btrace_start): Replace throw_exception with throw.
6087 * parse.c (parse_exp_in_context_1): Replace throw_exception with
6089 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
6090 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
6092 (find_linespec_symbols): Replace throw_exception with throw.
6093 * infrun.c (displaced_step_prepare, resume): Replace
6094 throw_exception with throw.
6095 * infcmd.c (post_create_inferior): Replace throw_exception with
6097 * inf-loop.c (inferior_event_handler): Replace throw_exception
6099 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
6100 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
6101 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
6102 (get_prev_frame_always, get_frame_pc_if_available)
6103 (get_frame_address_in_block_if_available, get_frame_language):
6104 Replace throw_exception with throw.
6105 * frame-unwind.c (frame_unwind_try_unwinder): Replace
6106 throw_exception with throw.
6107 * eval.c (fetch_subexp_value, evaluate_var_value)
6108 (evaluate_funcall, evaluate_subexp_standard): Replace
6109 throw_exception with throw.
6110 * dwarf2loc.c (call_site_find_chain)
6111 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
6112 Replace throw_exception with throw.
6113 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
6115 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
6117 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
6118 * completer.c (complete_line_internal): Replace throw_exception
6120 * compile/compile-object-run.c (compile_object_run): Replace
6121 throw_exception with throw.
6122 * cli/cli-script.c (process_next_line): Replace throw_exception
6124 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
6125 (btrace_enable, btrace_maint_update_pt_packets): Replace
6126 throw_exception with throw.
6127 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
6128 throw_exception with throw.
6129 * break-catch-throw.c (re_set_exception_catchpoint): Replace
6130 throw_exception with throw.
6131 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
6132 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
6133 * aarch64-tdep.c (aarch64_make_prologue_cache)
6134 (aarch64_make_stub_cache): Replace throw_exception with throw.
6136 2019-04-08 Tom Tromey <tom@tromey.com>
6138 * common/common-exceptions.c (throw_exception): Rename from
6139 throw_exception_cxx. Remove old copy. Make argument const.
6140 (throw_it): Create and throw exception objects directly.
6141 * common/common-exceptions.h (throw_exception): Make argument
6143 (struct gdb_exception_error): Add constructor.
6144 (struct gdb_exception_quit): Add constructor.
6146 2019-04-08 Tom Tromey <tom@tromey.com>
6148 * common/common-exceptions.h (exception_rethrow): Don't declare.
6149 (TRY_SJLJ): Update comment.
6150 (TRY, CATCH, END_CATCH): Remove.
6151 * common/common-exceptions.c (exception_rethrow): Remove.
6153 2019-04-08 Tom Tromey <tom@tromey.com>
6155 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
6157 (gdb_exception_error): Rename from
6158 gdb_exception_RETURN_MASK_ERROR.
6159 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
6160 (gdb_quit_bad_alloc): Update.
6161 * aarch64-tdep.c: Update.
6162 * ada-lang.c: Update.
6163 * ada-typeprint.c: Update.
6164 * ada-valprint.c: Update.
6165 * amd64-tdep.c: Update.
6166 * arch-utils.c: Update.
6167 * break-catch-throw.c: Update.
6168 * breakpoint.c: Update.
6170 * c-varobj.c: Update.
6171 * cli/cli-cmds.c: Update.
6172 * cli/cli-interp.c: Update.
6173 * cli/cli-script.c: Update.
6174 * common/common-exceptions.c: Update.
6175 * common/new-op.c: Update.
6176 * common/selftest.c: Update.
6177 * compile/compile-c-symbols.c: Update.
6178 * compile/compile-cplus-symbols.c: Update.
6179 * compile/compile-object-load.c: Update.
6180 * compile/compile-object-run.c: Update.
6181 * completer.c: Update.
6182 * corelow.c: Update.
6184 * cp-support.c: Update.
6185 * cp-valprint.c: Update.
6186 * darwin-nat.c: Update.
6187 * disasm-selftests.c: Update.
6188 * dtrace-probe.c: Update.
6189 * dwarf-index-cache.c: Update.
6190 * dwarf-index-write.c: Update.
6191 * dwarf2-frame-tailcall.c: Update.
6192 * dwarf2-frame.c: Update.
6193 * dwarf2loc.c: Update.
6194 * dwarf2read.c: Update.
6196 * event-loop.c: Update.
6197 * event-top.c: Update.
6199 * f-valprint.c: Update.
6200 * fbsd-tdep.c: Update.
6201 * frame-unwind.c: Update.
6203 * gdbtypes.c: Update.
6204 * gnu-v3-abi.c: Update.
6205 * guile/guile-internal.h: Update.
6206 * guile/scm-block.c: Update.
6207 * guile/scm-breakpoint.c: Update.
6208 * guile/scm-cmd.c: Update.
6209 * guile/scm-disasm.c: Update.
6210 * guile/scm-frame.c: Update.
6211 * guile/scm-lazy-string.c: Update.
6212 * guile/scm-math.c: Update.
6213 * guile/scm-param.c: Update.
6214 * guile/scm-ports.c: Update.
6215 * guile/scm-pretty-print.c: Update.
6216 * guile/scm-symbol.c: Update.
6217 * guile/scm-symtab.c: Update.
6218 * guile/scm-type.c: Update.
6219 * guile/scm-value.c: Update.
6220 * i386-linux-tdep.c: Update.
6221 * i386-tdep.c: Update.
6222 * inf-loop.c: Update.
6223 * infcall.c: Update.
6227 * language.c: Update.
6228 * linespec.c: Update.
6229 * linux-fork.c: Update.
6230 * linux-nat.c: Update.
6231 * linux-tdep.c: Update.
6232 * linux-thread-db.c: Update.
6234 * mi/mi-cmd-break.c: Update.
6235 * mi/mi-cmd-stack.c: Update.
6236 * mi/mi-interp.c: Update.
6237 * mi/mi-main.c: Update.
6238 * objc-lang.c: Update.
6239 * p-valprint.c: Update.
6241 * ppc-linux-tdep.c: Update.
6242 * printcmd.c: Update.
6243 * python/py-arch.c: Update.
6244 * python/py-breakpoint.c: Update.
6245 * python/py-cmd.c: Update.
6246 * python/py-finishbreakpoint.c: Update.
6247 * python/py-frame.c: Update.
6248 * python/py-framefilter.c: Update.
6249 * python/py-gdb-readline.c: Update.
6250 * python/py-inferior.c: Update.
6251 * python/py-infthread.c: Update.
6252 * python/py-lazy-string.c: Update.
6253 * python/py-linetable.c: Update.
6254 * python/py-objfile.c: Update.
6255 * python/py-param.c: Update.
6256 * python/py-prettyprint.c: Update.
6257 * python/py-progspace.c: Update.
6258 * python/py-record-btrace.c: Update.
6259 * python/py-record.c: Update.
6260 * python/py-symbol.c: Update.
6261 * python/py-type.c: Update.
6262 * python/py-unwind.c: Update.
6263 * python/py-utils.c: Update.
6264 * python/py-value.c: Update.
6265 * python/python.c: Update.
6266 * record-btrace.c: Update.
6267 * record-full.c: Update.
6268 * remote-fileio.c: Update.
6270 * riscv-tdep.c: Update.
6271 * rs6000-aix-tdep.c: Update.
6272 * rs6000-tdep.c: Update.
6273 * rust-exp.y: Update.
6274 * rust-lang.c: Update.
6275 * s390-tdep.c: Update.
6276 * selftest-arch.c: Update.
6277 * solib-dsbt.c: Update.
6278 * solib-frv.c: Update.
6279 * solib-spu.c: Update.
6280 * solib-svr4.c: Update.
6282 * sparc64-linux-tdep.c: Update.
6284 * symfile-mem.c: Update.
6285 * symmisc.c: Update.
6289 * tracefile-tfile.c: Update.
6290 * tui/tui.c: Update.
6291 * typeprint.c: Update.
6292 * unittests/cli-utils-selftests.c: Update.
6293 * unittests/parse-connection-spec-selftests.c: Update.
6295 * valprint.c: Update.
6298 * windows-nat.c: Update.
6299 * x86-linux-nat.c: Update.
6300 * xml-support.c: Update.
6302 2019-04-08 Tom Tromey <tom@tromey.com>
6304 * xml-support.c: Use C++ exception handling.
6305 * x86-linux-nat.c: Use C++ exception handling.
6306 * windows-nat.c: Use C++ exception handling.
6307 * varobj.c: Use C++ exception handling.
6308 * value.c: Use C++ exception handling.
6309 * valprint.c: Use C++ exception handling.
6310 * valops.c: Use C++ exception handling.
6311 * unittests/parse-connection-spec-selftests.c: Use C++ exception
6313 * unittests/cli-utils-selftests.c: Use C++ exception handling.
6314 * typeprint.c: Use C++ exception handling.
6315 * tui/tui.c: Use C++ exception handling.
6316 * tracefile-tfile.c: Use C++ exception handling.
6317 * top.c: Use C++ exception handling.
6318 * thread.c: Use C++ exception handling.
6319 * target.c: Use C++ exception handling.
6320 * symmisc.c: Use C++ exception handling.
6321 * symfile-mem.c: Use C++ exception handling.
6322 * stack.c: Use C++ exception handling.
6323 * sparc64-linux-tdep.c: Use C++ exception handling.
6324 * solib.c: Use C++ exception handling.
6325 * solib-svr4.c: Use C++ exception handling.
6326 * solib-spu.c: Use C++ exception handling.
6327 * solib-frv.c: Use C++ exception handling.
6328 * solib-dsbt.c: Use C++ exception handling.
6329 * selftest-arch.c: Use C++ exception handling.
6330 * s390-tdep.c: Use C++ exception handling.
6331 * rust-lang.c: Use C++ exception handling.
6332 * rust-exp.y: Use C++ exception handling.
6333 * rs6000-tdep.c: Use C++ exception handling.
6334 * rs6000-aix-tdep.c: Use C++ exception handling.
6335 * riscv-tdep.c: Use C++ exception handling.
6336 * remote.c: Use C++ exception handling.
6337 * remote-fileio.c: Use C++ exception handling.
6338 * record-full.c: Use C++ exception handling.
6339 * record-btrace.c: Use C++ exception handling.
6340 * python/python.c: Use C++ exception handling.
6341 * python/py-value.c: Use C++ exception handling.
6342 * python/py-utils.c: Use C++ exception handling.
6343 * python/py-unwind.c: Use C++ exception handling.
6344 * python/py-type.c: Use C++ exception handling.
6345 * python/py-symbol.c: Use C++ exception handling.
6346 * python/py-record.c: Use C++ exception handling.
6347 * python/py-record-btrace.c: Use C++ exception handling.
6348 * python/py-progspace.c: Use C++ exception handling.
6349 * python/py-prettyprint.c: Use C++ exception handling.
6350 * python/py-param.c: Use C++ exception handling.
6351 * python/py-objfile.c: Use C++ exception handling.
6352 * python/py-linetable.c: Use C++ exception handling.
6353 * python/py-lazy-string.c: Use C++ exception handling.
6354 * python/py-infthread.c: Use C++ exception handling.
6355 * python/py-inferior.c: Use C++ exception handling.
6356 * python/py-gdb-readline.c: Use C++ exception handling.
6357 * python/py-framefilter.c: Use C++ exception handling.
6358 * python/py-frame.c: Use C++ exception handling.
6359 * python/py-finishbreakpoint.c: Use C++ exception handling.
6360 * python/py-cmd.c: Use C++ exception handling.
6361 * python/py-breakpoint.c: Use C++ exception handling.
6362 * python/py-arch.c: Use C++ exception handling.
6363 * printcmd.c: Use C++ exception handling.
6364 * ppc-linux-tdep.c: Use C++ exception handling.
6365 * parse.c: Use C++ exception handling.
6366 * p-valprint.c: Use C++ exception handling.
6367 * objc-lang.c: Use C++ exception handling.
6368 * mi/mi-main.c: Use C++ exception handling.
6369 * mi/mi-interp.c: Use C++ exception handling.
6370 * mi/mi-cmd-stack.c: Use C++ exception handling.
6371 * mi/mi-cmd-break.c: Use C++ exception handling.
6372 * main.c: Use C++ exception handling.
6373 * linux-thread-db.c: Use C++ exception handling.
6374 * linux-tdep.c: Use C++ exception handling.
6375 * linux-nat.c: Use C++ exception handling.
6376 * linux-fork.c: Use C++ exception handling.
6377 * linespec.c: Use C++ exception handling.
6378 * language.c: Use C++ exception handling.
6379 * jit.c: Use C++ exception handling.
6380 * infrun.c: Use C++ exception handling.
6381 * infcmd.c: Use C++ exception handling.
6382 * infcall.c: Use C++ exception handling.
6383 * inf-loop.c: Use C++ exception handling.
6384 * i386-tdep.c: Use C++ exception handling.
6385 * i386-linux-tdep.c: Use C++ exception handling.
6386 * guile/scm-value.c: Use C++ exception handling.
6387 * guile/scm-type.c: Use C++ exception handling.
6388 * guile/scm-symtab.c: Use C++ exception handling.
6389 * guile/scm-symbol.c: Use C++ exception handling.
6390 * guile/scm-pretty-print.c: Use C++ exception handling.
6391 * guile/scm-ports.c: Use C++ exception handling.
6392 * guile/scm-param.c: Use C++ exception handling.
6393 * guile/scm-math.c: Use C++ exception handling.
6394 * guile/scm-lazy-string.c: Use C++ exception handling.
6395 * guile/scm-frame.c: Use C++ exception handling.
6396 * guile/scm-disasm.c: Use C++ exception handling.
6397 * guile/scm-cmd.c: Use C++ exception handling.
6398 * guile/scm-breakpoint.c: Use C++ exception handling.
6399 * guile/scm-block.c: Use C++ exception handling.
6400 * guile/guile-internal.h: Use C++ exception handling.
6401 * gnu-v3-abi.c: Use C++ exception handling.
6402 * gdbtypes.c: Use C++ exception handling.
6403 * frame.c: Use C++ exception handling.
6404 * frame-unwind.c: Use C++ exception handling.
6405 * fbsd-tdep.c: Use C++ exception handling.
6406 * f-valprint.c: Use C++ exception handling.
6407 * exec.c: Use C++ exception handling.
6408 * event-top.c: Use C++ exception handling.
6409 * event-loop.c: Use C++ exception handling.
6410 * eval.c: Use C++ exception handling.
6411 * dwarf2read.c: Use C++ exception handling.
6412 * dwarf2loc.c: Use C++ exception handling.
6413 * dwarf2-frame.c: Use C++ exception handling.
6414 * dwarf2-frame-tailcall.c: Use C++ exception handling.
6415 * dwarf-index-write.c: Use C++ exception handling.
6416 * dwarf-index-cache.c: Use C++ exception handling.
6417 * dtrace-probe.c: Use C++ exception handling.
6418 * disasm-selftests.c: Use C++ exception handling.
6419 * darwin-nat.c: Use C++ exception handling.
6420 * cp-valprint.c: Use C++ exception handling.
6421 * cp-support.c: Use C++ exception handling.
6422 * cp-abi.c: Use C++ exception handling.
6423 * corelow.c: Use C++ exception handling.
6424 * completer.c: Use C++ exception handling.
6425 * compile/compile-object-run.c: Use C++ exception handling.
6426 * compile/compile-object-load.c: Use C++ exception handling.
6427 * compile/compile-cplus-symbols.c: Use C++ exception handling.
6428 * compile/compile-c-symbols.c: Use C++ exception handling.
6429 * common/selftest.c: Use C++ exception handling.
6430 * common/new-op.c: Use C++ exception handling.
6431 * cli/cli-script.c: Use C++ exception handling.
6432 * cli/cli-interp.c: Use C++ exception handling.
6433 * cli/cli-cmds.c: Use C++ exception handling.
6434 * c-varobj.c: Use C++ exception handling.
6435 * btrace.c: Use C++ exception handling.
6436 * breakpoint.c: Use C++ exception handling.
6437 * break-catch-throw.c: Use C++ exception handling.
6438 * arch-utils.c: Use C++ exception handling.
6439 * amd64-tdep.c: Use C++ exception handling.
6440 * ada-valprint.c: Use C++ exception handling.
6441 * ada-typeprint.c: Use C++ exception handling.
6442 * ada-lang.c: Use C++ exception handling.
6443 * aarch64-tdep.c: Use C++ exception handling.
6445 2019-04-08 Tom Tromey <tom@tromey.com>
6447 * xml-support.c (gdb_xml_parser::parse): Update.
6448 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
6449 * value.c (show_convenience): Update.
6450 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
6451 (test_parse_flags_qcs): Update.
6452 * thread.c (thr_try_catch_cmd): Update.
6453 * target.c (target_translate_tls_address): Update.
6454 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
6455 (info_frame_command_core, frame_apply_command_count): Update.
6456 * rust-exp.y (rust_lex_exception_test): Update.
6457 * riscv-tdep.c (riscv_print_one_register_info): Update.
6458 * remote.c (remote_target::enable_btrace): Update.
6459 * record-btrace.c (record_btrace_enable_warn): Update.
6460 * python/py-utils.c (gdbpy_convert_exception): Update.
6461 * printcmd.c (do_one_display, print_variable_and_value): Update.
6462 * mi/mi-main.c (mi_print_exception): Update.
6463 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
6464 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
6465 * linux-nat.c (linux_nat_target::attach): Update.
6466 * linux-fork.c (class scoped_switch_fork_info): Update.
6467 * infrun.c (displaced_step_prepare): Update.
6468 * infcall.c (call_function_by_hand_dummy): Update.
6469 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
6470 * gnu-v3-abi.c (print_one_vtable): Update.
6471 * frame.c (get_prev_frame_always): Update.
6472 * f-valprint.c (info_common_command_for_block): Update.
6473 * exec.c (try_open_exec_file): Update.
6474 * exceptions.c (print_exception, exception_print)
6475 (exception_fprintf, exception_print_same): Update.
6476 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
6477 * dwarf-index-cache.c (index_cache::store)
6478 (index_cache::lookup_gdb_index): Update.
6479 * darwin-nat.c (maybe_cache_shell): Update.
6480 * cp-valprint.c (cp_print_value_fields): Update.
6481 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
6482 (gcc_cplus_symbol_address): Update.
6483 * compile/compile-c-symbols.c (gcc_convert_symbol)
6484 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
6485 * common/selftest.c: Update.
6486 * common/common-exceptions.h (struct gdb_exception) <message>: Now
6488 (exception_try_scope_entry, exception_try_scope_exit): Don't
6490 (struct exception_try_scope): Remove.
6491 (TRY): Don't use exception_try_scope.
6492 (struct gdb_exception): Add constructor, operator=.
6494 (struct gdb_exception_RETURN_MASK_ALL)
6495 (struct gdb_exception_RETURN_MASK_ERROR)
6496 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
6497 (struct gdb_quit_bad_alloc): Update.
6498 * common/common-exceptions.c (exception_none): Change
6500 (struct catcher) <state, exception>: Initialize inline.
6501 <prev>: Remove member.
6502 (current_catcher): Remove.
6503 (catchers): New global.
6504 (exceptions_state_mc_init): Simplify.
6505 (catcher_pop): Remove.
6506 (exceptions_state_mc, exceptions_state_mc_catch): Update.
6507 (try_scope_depth, exception_try_scope_entry)
6508 (exception_try_scope_exit): Remove.
6509 (throw_exception_sjlj): Update.
6510 (exception_messages, exception_messages_size): Remove.
6511 (throw_it): Simplify.
6512 (gdb_exception_sliced_copy): Remove.
6513 (throw_exception_cxx): Update.
6514 * cli/cli-script.c (script_from_file): Update.
6515 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
6517 * ada-valprint.c (ada_val_print): Update.
6518 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
6519 (create_excep_cond_exprs): Update.
6521 2019-04-08 Tom Tromey <tom@tromey.com>
6523 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
6524 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
6525 (TRY, CATCH, END_CATCH): Remove some definitions.
6526 * common/common-exceptions.c: Don't use GDB_XCPT.
6527 (catcher_list_size): Remove.
6528 (throw_exception, throw_it): Simplify.
6530 2019-04-05 Tom Tromey <tom@tromey.com>
6532 Revert the header-sorting patch.
6533 * ft32-tdep.c: Revert.
6534 * frv-tdep.c: Revert.
6535 * frv-linux-tdep.c: Revert.
6537 * frame-unwind.c: Revert.
6538 * frame-base.c: Revert.
6539 * fork-child.c: Revert.
6540 * findvar.c: Revert.
6541 * findcmd.c: Revert.
6542 * filesystem.c: Revert.
6543 * filename-seen-cache.h: Revert.
6544 * filename-seen-cache.c: Revert.
6545 * fbsd-tdep.c: Revert.
6546 * fbsd-nat.h: Revert.
6547 * fbsd-nat.c: Revert.
6548 * f-valprint.c: Revert.
6549 * f-typeprint.c: Revert.
6551 * extension.h: Revert.
6552 * extension.c: Revert.
6553 * extension-priv.h: Revert.
6554 * expprint.c: Revert.
6557 * exceptions.c: Revert.
6558 * event-top.c: Revert.
6559 * event-loop.c: Revert.
6561 * elfread.c: Revert.
6562 * dwarf2read.h: Revert.
6563 * dwarf2read.c: Revert.
6564 * dwarf2loc.c: Revert.
6565 * dwarf2expr.h: Revert.
6566 * dwarf2expr.c: Revert.
6567 * dwarf2-frame.c: Revert.
6568 * dwarf2-frame-tailcall.c: Revert.
6569 * dwarf-index-write.h: Revert.
6570 * dwarf-index-write.c: Revert.
6571 * dwarf-index-common.c: Revert.
6572 * dwarf-index-cache.h: Revert.
6573 * dwarf-index-cache.c: Revert.
6574 * dummy-frame.c: Revert.
6575 * dtrace-probe.c: Revert.
6578 * disasm-selftests.c: Revert.
6579 * dictionary.c: Revert.
6580 * dicos-tdep.c: Revert.
6581 * demangle.c: Revert.
6584 * darwin-nat.h: Revert.
6585 * darwin-nat.c: Revert.
6586 * darwin-nat-info.c: Revert.
6587 * d-valprint.c: Revert.
6588 * d-namespace.c: Revert.
6591 * csky-tdep.c: Revert.
6592 * csky-linux-tdep.c: Revert.
6593 * cris-tdep.c: Revert.
6594 * cris-linux-tdep.c: Revert.
6595 * cp-valprint.c: Revert.
6596 * cp-support.c: Revert.
6597 * cp-namespace.c: Revert.
6599 * corelow.c: Revert.
6600 * corefile.c: Revert.
6601 * continuations.c: Revert.
6602 * completer.h: Revert.
6603 * completer.c: Revert.
6604 * complaints.c: Revert.
6605 * coffread.c: Revert.
6606 * coff-pe-read.c: Revert.
6607 * cli-out.h: Revert.
6608 * cli-out.c: Revert.
6609 * charset.c: Revert.
6610 * c-varobj.c: Revert.
6611 * c-valprint.c: Revert.
6612 * c-typeprint.c: Revert.
6614 * buildsym.c: Revert.
6615 * buildsym-legacy.c: Revert.
6616 * build-id.h: Revert.
6617 * build-id.c: Revert.
6619 * bsd-uthread.c: Revert.
6620 * breakpoint.h: Revert.
6621 * breakpoint.c: Revert.
6622 * break-catch-throw.c: Revert.
6623 * break-catch-syscall.c: Revert.
6624 * break-catch-sig.c: Revert.
6625 * blockframe.c: Revert.
6627 * bfin-tdep.c: Revert.
6628 * bfin-linux-tdep.c: Revert.
6629 * bfd-target.c: Revert.
6631 * ax-general.c: Revert.
6634 * avr-tdep.c: Revert.
6636 * auto-load.c: Revert.
6637 * arm-wince-tdep.c: Revert.
6638 * arm-tdep.c: Revert.
6639 * arm-symbian-tdep.c: Revert.
6640 * arm-pikeos-tdep.c: Revert.
6641 * arm-obsd-tdep.c: Revert.
6642 * arm-nbsd-tdep.c: Revert.
6643 * arm-nbsd-nat.c: Revert.
6644 * arm-linux-tdep.c: Revert.
6645 * arm-linux-nat.c: Revert.
6646 * arm-fbsd-tdep.c: Revert.
6647 * arm-fbsd-nat.c: Revert.
6648 * arm-bsd-tdep.c: Revert.
6649 * arch-utils.c: Revert.
6650 * arc-tdep.c: Revert.
6651 * arc-newlib-tdep.c: Revert.
6652 * annotate.h: Revert.
6653 * annotate.c: Revert.
6654 * amd64-windows-tdep.c: Revert.
6655 * amd64-windows-nat.c: Revert.
6656 * amd64-tdep.c: Revert.
6657 * amd64-sol2-tdep.c: Revert.
6658 * amd64-obsd-tdep.c: Revert.
6659 * amd64-obsd-nat.c: Revert.
6660 * amd64-nbsd-tdep.c: Revert.
6661 * amd64-nbsd-nat.c: Revert.
6662 * amd64-nat.c: Revert.
6663 * amd64-linux-tdep.c: Revert.
6664 * amd64-linux-nat.c: Revert.
6665 * amd64-fbsd-tdep.c: Revert.
6666 * amd64-fbsd-nat.c: Revert.
6667 * amd64-dicos-tdep.c: Revert.
6668 * amd64-darwin-tdep.c: Revert.
6669 * amd64-bsd-nat.c: Revert.
6670 * alpha-tdep.c: Revert.
6671 * alpha-obsd-tdep.c: Revert.
6672 * alpha-nbsd-tdep.c: Revert.
6673 * alpha-mdebug-tdep.c: Revert.
6674 * alpha-linux-tdep.c: Revert.
6675 * alpha-linux-nat.c: Revert.
6676 * alpha-bsd-tdep.c: Revert.
6677 * alpha-bsd-nat.c: Revert.
6678 * aix-thread.c: Revert.
6680 * addrmap.c: Revert.
6681 * ada-varobj.c: Revert.
6682 * ada-valprint.c: Revert.
6683 * ada-typeprint.c: Revert.
6684 * ada-tasks.c: Revert.
6685 * ada-lang.c: Revert.
6686 * aarch64-tdep.c: Revert.
6687 * aarch64-ravenscar-thread.c: Revert.
6688 * aarch64-newlib-tdep.c: Revert.
6689 * aarch64-linux-tdep.c: Revert.
6690 * aarch64-linux-nat.c: Revert.
6691 * aarch64-fbsd-tdep.c: Revert.
6692 * aarch64-fbsd-nat.c: Revert.
6693 * aarch32-linux-nat.c: Revert.
6695 2019-04-05 Tom Tromey <tom@tromey.com>
6697 * ft32-tdep.c: Sort headers.
6698 * frv-tdep.c: Sort headers.
6699 * frv-linux-tdep.c: Sort headers.
6700 * frame.c: Sort headers.
6701 * frame-unwind.c: Sort headers.
6702 * frame-base.c: Sort headers.
6703 * fork-child.c: Sort headers.
6704 * findvar.c: Sort headers.
6705 * findcmd.c: Sort headers.
6706 * filesystem.c: Sort headers.
6707 * filename-seen-cache.h: Sort headers.
6708 * filename-seen-cache.c: Sort headers.
6709 * fbsd-tdep.c: Sort headers.
6710 * fbsd-nat.h: Sort headers.
6711 * fbsd-nat.c: Sort headers.
6712 * f-valprint.c: Sort headers.
6713 * f-typeprint.c: Sort headers.
6714 * f-lang.c: Sort headers.
6715 * extension.h: Sort headers.
6716 * extension.c: Sort headers.
6717 * extension-priv.h: Sort headers.
6718 * expprint.c: Sort headers.
6719 * exec.h: Sort headers.
6720 * exec.c: Sort headers.
6721 * exceptions.c: Sort headers.
6722 * event-top.c: Sort headers.
6723 * event-loop.c: Sort headers.
6724 * eval.c: Sort headers.
6725 * elfread.c: Sort headers.
6726 * dwarf2read.h: Sort headers.
6727 * dwarf2read.c: Sort headers.
6728 * dwarf2loc.c: Sort headers.
6729 * dwarf2expr.h: Sort headers.
6730 * dwarf2expr.c: Sort headers.
6731 * dwarf2-frame.c: Sort headers.
6732 * dwarf2-frame-tailcall.c: Sort headers.
6733 * dwarf-index-write.h: Sort headers.
6734 * dwarf-index-write.c: Sort headers.
6735 * dwarf-index-common.c: Sort headers.
6736 * dwarf-index-cache.h: Sort headers.
6737 * dwarf-index-cache.c: Sort headers.
6738 * dummy-frame.c: Sort headers.
6739 * dtrace-probe.c: Sort headers.
6740 * disasm.h: Sort headers.
6741 * disasm.c: Sort headers.
6742 * disasm-selftests.c: Sort headers.
6743 * dictionary.c: Sort headers.
6744 * dicos-tdep.c: Sort headers.
6745 * demangle.c: Sort headers.
6746 * dcache.h: Sort headers.
6747 * dcache.c: Sort headers.
6748 * darwin-nat.h: Sort headers.
6749 * darwin-nat.c: Sort headers.
6750 * darwin-nat-info.c: Sort headers.
6751 * d-valprint.c: Sort headers.
6752 * d-namespace.c: Sort headers.
6753 * d-lang.c: Sort headers.
6754 * ctf.c: Sort headers.
6755 * csky-tdep.c: Sort headers.
6756 * csky-linux-tdep.c: Sort headers.
6757 * cris-tdep.c: Sort headers.
6758 * cris-linux-tdep.c: Sort headers.
6759 * cp-valprint.c: Sort headers.
6760 * cp-support.c: Sort headers.
6761 * cp-namespace.c: Sort headers.
6762 * cp-abi.c: Sort headers.
6763 * corelow.c: Sort headers.
6764 * corefile.c: Sort headers.
6765 * continuations.c: Sort headers.
6766 * completer.h: Sort headers.
6767 * completer.c: Sort headers.
6768 * complaints.c: Sort headers.
6769 * coffread.c: Sort headers.
6770 * coff-pe-read.c: Sort headers.
6771 * cli-out.h: Sort headers.
6772 * cli-out.c: Sort headers.
6773 * charset.c: Sort headers.
6774 * c-varobj.c: Sort headers.
6775 * c-valprint.c: Sort headers.
6776 * c-typeprint.c: Sort headers.
6777 * c-lang.c: Sort headers.
6778 * buildsym.c: Sort headers.
6779 * buildsym-legacy.c: Sort headers.
6780 * build-id.h: Sort headers.
6781 * build-id.c: Sort headers.
6782 * btrace.c: Sort headers.
6783 * bsd-uthread.c: Sort headers.
6784 * breakpoint.h: Sort headers.
6785 * breakpoint.c: Sort headers.
6786 * break-catch-throw.c: Sort headers.
6787 * break-catch-syscall.c: Sort headers.
6788 * break-catch-sig.c: Sort headers.
6789 * blockframe.c: Sort headers.
6790 * block.c: Sort headers.
6791 * bfin-tdep.c: Sort headers.
6792 * bfin-linux-tdep.c: Sort headers.
6793 * bfd-target.c: Sort headers.
6794 * bcache.c: Sort headers.
6795 * ax-general.c: Sort headers.
6796 * ax-gdb.h: Sort headers.
6797 * ax-gdb.c: Sort headers.
6798 * avr-tdep.c: Sort headers.
6799 * auxv.c: Sort headers.
6800 * auto-load.c: Sort headers.
6801 * arm-wince-tdep.c: Sort headers.
6802 * arm-tdep.c: Sort headers.
6803 * arm-symbian-tdep.c: Sort headers.
6804 * arm-pikeos-tdep.c: Sort headers.
6805 * arm-obsd-tdep.c: Sort headers.
6806 * arm-nbsd-tdep.c: Sort headers.
6807 * arm-nbsd-nat.c: Sort headers.
6808 * arm-linux-tdep.c: Sort headers.
6809 * arm-linux-nat.c: Sort headers.
6810 * arm-fbsd-tdep.c: Sort headers.
6811 * arm-fbsd-nat.c: Sort headers.
6812 * arm-bsd-tdep.c: Sort headers.
6813 * arch-utils.c: Sort headers.
6814 * arc-tdep.c: Sort headers.
6815 * arc-newlib-tdep.c: Sort headers.
6816 * annotate.h: Sort headers.
6817 * annotate.c: Sort headers.
6818 * amd64-windows-tdep.c: Sort headers.
6819 * amd64-windows-nat.c: Sort headers.
6820 * amd64-tdep.c: Sort headers.
6821 * amd64-sol2-tdep.c: Sort headers.
6822 * amd64-obsd-tdep.c: Sort headers.
6823 * amd64-obsd-nat.c: Sort headers.
6824 * amd64-nbsd-tdep.c: Sort headers.
6825 * amd64-nbsd-nat.c: Sort headers.
6826 * amd64-nat.c: Sort headers.
6827 * amd64-linux-tdep.c: Sort headers.
6828 * amd64-linux-nat.c: Sort headers.
6829 * amd64-fbsd-tdep.c: Sort headers.
6830 * amd64-fbsd-nat.c: Sort headers.
6831 * amd64-dicos-tdep.c: Sort headers.
6832 * amd64-darwin-tdep.c: Sort headers.
6833 * amd64-bsd-nat.c: Sort headers.
6834 * alpha-tdep.c: Sort headers.
6835 * alpha-obsd-tdep.c: Sort headers.
6836 * alpha-nbsd-tdep.c: Sort headers.
6837 * alpha-mdebug-tdep.c: Sort headers.
6838 * alpha-linux-tdep.c: Sort headers.
6839 * alpha-linux-nat.c: Sort headers.
6840 * alpha-bsd-tdep.c: Sort headers.
6841 * alpha-bsd-nat.c: Sort headers.
6842 * aix-thread.c: Sort headers.
6843 * agent.c: Sort headers.
6844 * addrmap.c: Sort headers.
6845 * ada-varobj.c: Sort headers.
6846 * ada-valprint.c: Sort headers.
6847 * ada-typeprint.c: Sort headers.
6848 * ada-tasks.c: Sort headers.
6849 * ada-lang.c: Sort headers.
6850 * aarch64-tdep.c: Sort headers.
6851 * aarch64-ravenscar-thread.c: Sort headers.
6852 * aarch64-newlib-tdep.c: Sort headers.
6853 * aarch64-linux-tdep.c: Sort headers.
6854 * aarch64-linux-nat.c: Sort headers.
6855 * aarch64-fbsd-tdep.c: Sort headers.
6856 * aarch64-fbsd-nat.c: Sort headers.
6857 * aarch32-linux-nat.c: Sort headers.
6859 2019-04-04 Tom Tromey <tom@tromey.com>
6861 * varobj.c (varobj_create): Update.
6862 * rust-exp.y (struct rust_parser) <update_innermost_block,
6863 lookup_symbol>: New methods.
6864 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
6866 (rust_parser::rust_lookup_type)
6867 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
6868 * printcmd.c (display_command, do_one_display): Update.
6869 * parser-defs.h (struct parser_state) <parser_state>: Add
6870 "tracker" parameter.
6871 (block_tracker): New member.
6872 (class innermost_block_tracker) <innermost_block_tracker>: Add
6874 <reset>: Remove method.
6875 (innermost_block): Don't declare.
6876 (null_post_parser): Update.
6877 * parse.c (innermost_block): Remove global.
6878 (write_dollar_variable): Update.
6879 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
6880 Remove "tracker_types" parameter.
6881 (parse_expression): Add "tracker" parameter.
6882 (parse_expression_for_completion): Update.
6883 (null_post_parser): Add "tracker" parameter.
6884 * p-exp.y: Update rules.
6885 * m2-exp.y: Update rules.
6886 * language.h (struct language_defn) <la_post_parser>: Add
6887 "tracker" parameter.
6888 * go-exp.y: Update rules.
6889 * f-exp.y: Update rules.
6890 * expression.h (parse_expression, parse_exp_1): Add "tracker"
6892 * d-exp.y: Update rules.
6893 * c-exp.y: Update rules.
6894 * breakpoint.c (set_breakpoint_condition): Create an
6895 innermost_block_tracker.
6896 (watch_command_1): Likewise.
6897 * ada-lang.c (resolve): Add "tracker" parameter.
6898 (resolve_subexp): Likewise.
6899 * ada-exp.y (write_var_from_sym): Update.
6901 2019-04-04 Tom Tromey <tom@tromey.com>
6903 * type-stack.h: New file.
6904 * type-stack.c: New file.
6905 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
6907 (insert_into_type_stack, insert_type, push_type, push_type_int)
6908 (insert_type_address_space, pop_type, pop_type_int)
6909 (pop_typelist, pop_type_stack, append_type_stack)
6910 (push_type_stack, get_type_stack, push_typelist)
6911 (follow_type_instance_flags, follow_types): Don't declare.
6912 * parse.c (type_stack): Remove global.
6913 (parse_exp_in_context): Update.
6914 (insert_into_type_stack, insert_type, push_type, push_type_int)
6915 (insert_type_address_space, pop_type, pop_type_int)
6916 (pop_typelist, pop_type_stack, append_type_stack)
6917 (push_type_stack, get_type_stack, push_typelist)
6918 (follow_type_instance_flags, follow_types): Remove (moved to
6920 * f-exp.y (type_stack): New global.
6922 (push_kind_type, f_parse): Update.
6923 * d-exp.y (type_stack): New global.
6926 * c-exp.y (struct c_parse_state) <type_stack>: New member.
6928 * Makefile.in (COMMON_SFILES): Add type-stack.c.
6929 (HFILES_NO_SRCDIR): Add type-stack.h.
6931 2019-04-04 Tom Tromey <tom@tromey.com>
6933 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
6934 (rust_parser::convert_ast_to_expression, rust_parse)
6935 (rust_lex_test_completion, rust_lex_tests): Update.
6936 * parser-defs.h (struct expr_completion_state): New.
6937 (struct parser_state) <parser_state>: Add completion parameter.
6938 <mark_struct_expression, mark_completion_tag>: New methods.
6939 <parse_completion, m_completion_state>: New members.
6940 (prefixify_expression, null_post_parser): Update.
6941 (mark_struct_expression, mark_completion_tag): Don't declare.
6942 * parse.c (parse_completion, expout_last_struct)
6943 (expout_tag_completion_type, expout_completion_name): Remove
6945 (parser_state::mark_struct_expression)
6946 (parser_state::mark_completion_tag): Now methods.
6947 (prefixify_expression): Add last_struct parameter.
6948 (prefixify_subexp): Likewise.
6949 (parse_exp_1): Update.
6950 (parse_exp_in_context): Add cstate parameter. Update.
6951 (parse_expression_for_completion): Create an
6952 expr_completion_state.
6953 (null_post_parser): Add "completion" parameter.
6954 * p-exp.y: Update rules.
6956 * language.h (struct language_defn) <la_post_parser>: Add
6957 "completing" parameter.
6958 * go-exp.y: Update rules.
6959 (lex_one_token): Update.
6960 * expression.h (parse_completion): Don't declare.
6961 * d-exp.y: Update rules.
6962 (lex_one_token): Update rules.
6963 * c-exp.y: Update rules.
6964 (lex_one_token): Update.
6965 * ada-lang.c (resolve): Add "parse_completion" parameter.
6966 (resolve_subexp): Likewise.
6967 (ada_resolve_function): Likewise.
6969 2019-04-04 Tom Tromey <tom@tromey.com>
6971 * parser-defs.h (struct parser_state) <start_arglist,
6972 end_arglist>: New methods.
6973 <arglist_len, m_funcall_chain>: New members.
6974 (arglist_len, start_arglist, end_arglist): Don't declare.
6975 * parse.c (arglist_len, funcall_chain): Remove global.
6976 (start_arglist, end_arglist): Remove functions.
6977 (parse_exp_in_context): Update.
6978 * p-exp.y: Update rules.
6979 * m2-exp.y: Update rules.
6980 * go-exp.y: Update rules.
6981 * f-exp.y: Update rules.
6982 * d-exp.y: Update rules.
6983 * c-exp.y: Update rules.
6985 2019-04-04 Tom Tromey <tom@tromey.com>
6987 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
6988 lex_operator, push_back>: New methods.
6990 (rust_parser::lex_hex, lex_escape): Rename and update.
6991 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
6992 (rust_parser::lex_operator): Rename and update.
6993 (rust_parser::lex_number, rustyylex, rustyyerror)
6994 (rust_lex_test_init, rust_lex_test_sequence)
6995 (rust_lex_test_push_back, rust_lex_tests): Update.
6996 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
6998 <lexptr, prev_lexptr>: New members.
6999 (lexptr, prev_lexptr): Don't declare.
7000 * parse.c (lexptr, prev_lexptr): Remove globals.
7001 (parse_exp_in_context): Update.
7002 * p-exp.y (yylex, yyerror): Update.
7003 * m2-exp.y (parse_number, yylex, yyerror): Update.
7004 * go-exp.y (lex_one_token, yyerror): Update.
7005 * f-exp.y (match_string_literal, yylex, yyerror): Update.
7006 * d-exp.y (lex_one_token, yyerror): Update.
7007 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
7008 (lex_one_token, yyerror): Update.
7009 * ada-lex.l (YY_INPUT): Update.
7010 (rewind_to_char): Update.
7011 * ada-exp.y (yyerror): Update.
7013 2019-04-04 Tom Tromey <tom@tromey.com>
7015 * rust-exp.y (rustyylex, rust_lex_tests): Update.
7016 * parser-defs.h (struct parser_state) <parser_state>: Add new
7018 <comma_terminates>: New member.
7019 (comma_terminates): Don't declare global.
7020 * parse.c (comma_terminates): Remove global.
7021 (parse_exp_in_context): Update.
7022 * p-exp.y (yylex): Update.
7023 * m2-exp.y (yylex): Update.
7024 * go-exp.y (lex_one_token): Update.
7025 * f-exp.y (yylex): Update.
7026 * d-exp.y (lex_one_token): Update.
7027 * c-exp.y (lex_one_token): Update.
7028 * ada-lex.l: Update.
7030 2019-04-04 Tom Tromey <tom@tromey.com>
7032 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
7033 (rustyylex, rust_lex_test_init, rust_lex_test_one)
7034 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
7035 * parser-defs.h (paren_depth): Don't declare.
7036 * parse.c (paren_depth): Remove global.
7037 (parse_exp_in_context): Update.
7038 * p-exp.y (paren_depth): New global.
7039 (pascal_parse): Initialize it.
7040 * m2-exp.y (paren_depth): New global.
7041 (m2_parse): Initialize it.
7042 * go-exp.y (paren_depth): New global.
7043 (go_parse): Initialize it.
7044 * f-exp.y (paren_depth): New global.
7045 (f_parse): Initialize it.
7046 * d-exp.y (paren_depth): New global.
7047 (d_parse): Initialize it.
7048 * c-exp.y (paren_depth): New global.
7049 (c_parse): Initialize it.
7050 * ada-lex.l (paren_depth): New global.
7051 (lexer_init): Initialize it.
7053 2019-04-04 Tom Tromey <tom@tromey.com>
7055 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
7056 (rust_parser::convert_ast_to_type)
7057 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
7058 * parser-defs.h (struct parser_state) <parser_state>: Add
7059 parameters. Initialize new members.
7060 <expression_context_block, expression_context_pc>: New members.
7061 * parse.c (expression_context_block, expression_context_pc):
7063 (parse_exp_in_context): Update.
7064 * p-exp.y: Update all rules.
7066 * m2-exp.y: Update all rules.
7068 * go-exp.y (yylex): Update.
7069 * f-exp.y (yylex): Update.
7070 * d-exp.y: Update all rules.
7072 * c-exp.y: Update all rules.
7073 (lex_one_token, classify_name, yylex, c_parse): Update.
7074 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
7076 2019-04-04 Tom Tromey <tom@tromey.com>
7078 * gdbarch.h, gdbarch.c: Rebuild.
7079 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
7081 (struct stap_parse_info): Replace "parser_state" with
7083 * parser-defs.h (struct expr_builder): Rename from "parser_state".
7084 (parser_state): New class.
7085 * parse.c (expr_builder): Rename.
7086 (expr_builder::release): Rename.
7087 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
7088 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
7089 (write_exp_elt_longcst, write_exp_elt_floatcst)
7090 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
7091 (write_exp_string_vector, write_exp_bitstring)
7092 (write_exp_msymbol, mark_struct_expression)
7093 (write_dollar_variable)
7094 (insert_type_address_space, increase_expout_size): Replace
7095 "parser_state" with "expr_builder".
7096 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
7097 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
7098 "parser_state" with "expr_builder".
7100 2019-04-04 Tom Tromey <tom@tromey.com>
7102 * rust-exp.y: Replace "parse_language" with method call.
7104 (yylex): Replace "parse_language" with method call.
7106 (yylex): Replace "parse_language" with method call.
7107 * go-exp.y (classify_name): Replace "parse_language" with method
7109 * f-exp.y (yylex): Replace "parse_language" with method call.
7110 * d-exp.y (lex_one_token): Replace "parse_language" with method
7113 (lex_one_token, classify_name, yylex): Replace "parse_language"
7115 * ada-exp.y (find_primitive_type, type_char)
7116 (type_system_address): Replace "parse_language" with method call.
7118 2019-04-04 Tom Tromey <tom@tromey.com>
7120 * rust-exp.y: Replace "parse_gdbarch" with method call.
7121 * parse.c (write_dollar_variable, insert_type_address_space):
7122 Replace "parse_gdbarch" with method call.
7123 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
7125 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
7127 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
7128 "parse_gdbarch" with method call.
7129 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
7131 * f-exp.y (parse_type, parse_f_type, yylex): Replace
7132 "parse_gdbarch" with method call.
7133 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
7134 "parse_gdbarch" with method call.
7135 * c-exp.y (parse_type, parse_number, classify_name): Replace
7136 "parse_gdbarch" with method call.
7137 * ada-lex.l: Replace "parse_gdbarch" with method call.
7138 * ada-exp.y (parse_type, find_primitive_type, type_char)
7139 (type_system_address): Replace "parse_gdbarch" with method call.
7141 2019-04-04 Tom Tromey <tom@tromey.com>
7143 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
7144 * stap-probe.c (stap_parse_argument): Update.
7145 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
7146 initial_size parameter.
7147 * rust-exp.y (rust_lex_tests): Update.
7148 * parse.c (parser_state): Update.
7149 (parse_exp_in_context): Update.
7150 * parser-defs.h (struct parser_state) <parser_state>: Remove
7151 "initial_size" parameter.
7153 2019-04-04 Tom Tromey <tom@tromey.com>
7155 * parser-defs.h (increase_expout_size): Don't declare.
7156 * parse.c (increase_expout_size): Now static.
7158 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
7160 * gnu-nat.c (gnu_nat_target::wait): Fix
7161 target_waitstatus_to_string call.
7163 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
7165 * eval.c (evaluate_subexp_standard): Handle internal functions
7166 during Fortran function call handling.
7168 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
7170 * NEWS: Mention new internal functions.
7171 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
7172 (read_base_type): Use dwarf2_init_complex_target_type.
7173 * value.c (creal_internal_fn): New function.
7174 (cimag_internal_fn): New function.
7175 (_initialize_values): Register new internal functions.
7177 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7179 * infrun.c (stop_all_threads): If debug_infrun, always
7180 trace the wait status after wait_one, using
7181 target_waitstatus_to_string and target_pid_to_str.
7182 (handle_inferior_event): Replace various trace of
7183 wait status kind by a single trace.
7184 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
7185 wait status kind image by target_waitstatus_to_string.
7186 * target/waitstatus.c (target_waitstatus_to_string): Fix
7189 2019-04-01 Tom Tromey <tromey@adacore.com>
7192 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
7194 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
7195 Pedro Alves <palves@redhat.com>
7197 * top.c (quit_force): Call 'finalize_values'.
7198 * value.c (finalize_values): New function.
7199 * value.h (finalize_values): Declare.
7201 2019-03-30 Eli Zaretskii <eliz@gnu.org>
7203 * NEWS: Announce $_gdb_major and $_gdb_minor.
7205 * top.c (init_gdb_version_vars): New function.
7206 (gdb_init): Call init_gdb_version_vars.
7208 2019-03-29 Tom Tromey <tromey@adacore.com>
7210 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
7211 help text. Remove dead code.
7213 2019-03-29 Keith Seitz <keiths@redhat.com>
7215 From Siddhesh Poyarekar:
7216 * f-lang.h (f77_get_upperbound): Return LONGEST.
7217 (f77_get_lowerbound): Likewise.
7218 * f-typeprint.c (f_type_print_varspec_suffix): Expand
7219 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
7221 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
7222 plongest to format print it.
7223 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
7224 (f77_get_upperbound): Likewise.
7225 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
7226 LOWER_BOUND to LONGEST.
7227 (f77_create_arrayprint_offset_tbl): Likewise.
7229 2019-03-29 Keith Seitz <keiths@redhat.com>
7231 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7232 %s/pulongest for TYPE_LENGTH instead of %d in format
7234 * ada-typerint.c (ada_print_type): Likewise.
7235 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
7236 * compile/compile-c-support.c (generate_register_struct): Likewise.
7237 * gdbtypes.c (recursive_dump_type): Likewise.
7238 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
7239 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
7240 instead of %d in format strings.
7241 * riscv-tdep.c (riscv_type_alignment): Cast second argument
7242 to std::min to ULONGEST.
7243 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
7244 instead of %d in format strings.
7245 * tracepoint.c (info_scope_command): Likewise.
7246 * typeprint.c (print_offset_data::update)
7247 (print_offset_data::finish): Likewise.
7248 * xtensa-tdep.c (xtensa_store_return_value)
7249 (xtensa_push_dummy_call): Likewise.
7251 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
7253 * windows-nat.c (display_selector): Fixed format specifications
7256 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7258 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
7260 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
7262 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
7263 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
7264 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
7265 (nios2_linux_init_abi): Install it.
7267 2019-03-28 Alan Hayward <alan.hayward@arm.com>
7269 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
7271 2019-03-28 Alan Hayward <alan.hayward@arm.com>
7273 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
7275 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7276 Tom Tromey <tromey@adacore.com>
7278 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
7280 2019-03-26 Joel Brobecker <brobecker@adacore.com>
7282 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
7283 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
7284 method to compute the bounds of range types. Also print "[evaluated]"
7285 if the bounds' values come from a dynamic evaluation.
7287 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
7289 * cp-valprint.c (cp_print_value_fields): Don't print trailing
7290 whitespace when pretty printing is on.
7292 2019-03-26 Alan Hayward <alan.hayward@arm.com>
7294 * ppc-linux-nat.c: Add include.
7296 2019-03-26 Alan Hayward <alan.hayward@arm.com>
7298 * NEWS: Mention AArch64 Pointer Authentication.
7300 2019-03-26 Alan Hayward <alan.hayward@arm.com>
7302 * arm-linux-nat.c: Add include.
7304 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
7306 * source-cache.c (source_cache::get_source_lines): Re-read
7307 fullname after calling open_source_file.
7309 2019-03-25 John Baldwin <jhb@FreeBSD.org>
7311 * NEWS: Mention TLS support for FreeBSD.
7313 2019-03-25 Tom Tromey <tromey@adacore.com>
7315 * minsyms.c (BUNCH_SIZE): Update comment.
7316 (~minimal_symbol_reader): Remove old comment.
7317 (compact_minimal_symbols): Update comment.
7318 (minimal_symbol_reader::install): Remove old comment. Update
7321 2019-03-25 Alan Hayward <alan.hayward@arm.com>
7323 * s390-linux-nat.c: Add include.
7325 2019-03-25 Alan Hayward <alan.hayward@arm.com>
7327 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
7328 Call linux_get_hwcap.
7329 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
7331 (aarch64_linux_get_hwcap): Remove function.
7332 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
7334 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
7336 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
7337 * linux-tdep.c (linux_get_hwcap): Add function.
7338 (linux_get_hwcap2): Likewise.
7339 * linux-tdep.h (linux_get_hwcap): Add declaration.
7340 (linux_get_hwcap2): Likewise.
7341 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
7342 (ppc_linux_get_hwcap2): Likewise.
7343 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
7345 (ppc_linux_nat_target::insert_watchpoint): Likewise.
7346 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
7347 (ppc_linux_nat_target::read_description): Likewise.
7348 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
7349 * s390-linux-nat.c: Likewise.
7350 * s390-linux-tdep.c (s390_core_read_description): Likewise.
7352 2019-03-24 Tom Tromey <tom@tromey.com>
7354 * ada-lang.c (standard_lookup): Simplify initialization.
7355 (ada_lookup_symbol_nonlocal): Simplify return.
7356 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
7357 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
7358 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
7359 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
7361 * solib.c (solib_global_lookup): Simplify.
7362 * symtab.c (null_block_symbol): Remove.
7363 (symbol_cache_lookup): Simplify returns.
7364 (lookup_language_this): Simplify returns.
7365 (lookup_symbol_aux): Simplify return.
7366 (lookup_local_symbol): Simplify returns.
7367 (lookup_global_symbol_from_objfile): Simplify return.
7368 (lookup_symbol_in_objfile_symtabs)
7369 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
7370 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
7371 (lookup_static_symbol, lookup_global_symbol): Simplify return.
7372 * cp-namespace.c (cp_lookup_bare_symbol)
7373 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
7374 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
7375 (cp_lookup_nested_symbol): Don't use null_block_symbol.
7376 (cp_lookup_symbol_via_imports): Simplify initialization.
7377 (find_symbol_in_baseclass): Likewise.
7378 * symtab.h (null_block_symbol): Remove.
7379 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
7380 (d_lookup_nested_symbol, d_lookup_symbol_imports)
7381 (d_lookup_symbol_module): Likewise.
7382 (find_symbol_in_baseclass): Simplify initialization.
7384 2019-03-24 Tom Tromey <tom@tromey.com>
7386 * expression.h: Don't include symtab.h.
7387 (struct block): Forward declare.
7389 2019-03-24 Tom Tromey <tom@tromey.com>
7391 * c-exp.y (typebase): Remove casts.
7392 * gdbtypes.c (lookup_unsigned_typename, )
7393 (lookup_signed_typename): Remove cast.
7394 * eval.c (parse_to_comma_and_eval): Remove cast.
7395 * parse.c (write_dollar_variable): Remove cast.
7396 * block.h (struct block) <superblock>: Now const.
7397 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
7398 * psymtab.c (psym_map_matching_symbols): Make "block" const.
7399 (map_block): Make "block" const.
7400 * symfile.h (struct quick_symbol_functions)
7401 <map_matching_symbols>: Constify block argument to "callback".
7402 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
7404 (find_pc_sect_compunit_symtab): Make "b" const.
7405 (find_symbol_at_address): Likewise.
7406 (search_symbols): Likewise.
7407 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
7408 (dw2_debug_names_lookup_symbol): Likewise.
7409 (dw2_map_matching_symbols): Update.
7410 * p-valprint.c (pascal_val_print): Remove "block".
7411 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
7412 (aux_add_nonlocal_symbols): Make "block" const.
7413 (resolve_subexp): Remove cast.
7414 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
7416 (iterate_over_file_blocks): Likewise.
7417 * f-exp.y (%union) <bval>: Remove.
7418 * coffread.c (patch_opaque_types): Make "b" const.
7419 * spu-tdep.c (spu_catch_start): Make "block" const.
7420 * c-valprint.c (print_unpacked_pointer): Remove "block".
7421 * symmisc.c (dump_symtab_1): Make "b" const.
7422 (block_depth): Make "block" const.
7423 * d-exp.y (%union) <bval>: Remove.
7424 * cp-support.h (cp_lookup_rtti_type): Update.
7425 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
7426 * psymtab.c (psym_lookup_symbol): Make "block" const.
7427 (maintenance_check_psymtabs): Make "b" const.
7428 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
7429 (enumerate_locals, enumerate_args): Update.
7430 * python/py-symtab.c (stpy_global_block): Make "block" const.
7431 (stpy_static_block): Likewise.
7432 * inline-frame.c (block_starting_point_at): Make "new_block"
7434 * block.c (find_block_in_blockvector): Make return type const.
7435 (blockvector_for_pc_sect): Make "b" const.
7436 (find_block_in_blockvector): Make "b" const.
7438 2019-03-23 Tom Tromey <tom@tromey.com>
7440 * varobj.c (varobj_create): Update.
7441 * symfile.c (clear_symtab_users): Don't reset innermost_block.
7442 * printcmd.c (display_command, do_one_display): Don't reset
7444 * parser-defs.h (enum innermost_block_tracker_type): Move to
7446 (innermost_block): Update comment.
7447 * parse.c (parse_exp_1): Add tracker_types parameter.
7448 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
7449 tracker_types parameter. Reset innermost_block.
7450 (parse_exp_in_context): Remove.
7451 (parse_expression_for_completion): Update.
7452 * objfiles.c (~objfile): Don't reset expression_context_block or
7454 * expression.h (enum innermost_block_tracker_type): Move from
7456 (parse_exp_1): Add tracker_types parameter.
7457 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
7458 reset innermost_block.
7460 2019-03-23 Tom Tromey <tom@tromey.com>
7462 * objfiles.h: Include bcache.h.
7464 2019-03-23 Tom Tromey <tom@tromey.com>
7466 * linespec.c (get_current_search_block): Use
7467 scoped_restore_current_language.
7468 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
7470 2019-03-22 Alan Hayward <alan.hayward@arm.com>
7471 Jiong Wang <jiong.wang@arm.com>
7473 * aarch64-linux-tdep.c
7474 (aarch64_linux_iterate_over_regset_sections): Check for pauth
7476 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
7478 2019-03-22 Alan Hayward <alan.hayward@arm.com>
7479 Jiong Wang <jiong.wang@arm.com>
7481 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
7483 (aarch64_analyze_prologue_test): Add PACIASP test.
7484 (aarch64_prologue_prev_register): Unmask PC value.
7486 2019-03-22 Alan Hayward <alan.hayward@arm.com>
7487 Jiong Wang <jiong.wang@arm.com>
7489 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
7490 (aarch64_dwarf2_prev_register): Unmask PC value.
7491 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
7492 (aarch64_execute_dwarf_cfa_vendor_op): Check for
7493 DW_CFA_AARCH64_negate_ra_state.
7494 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
7496 2019-03-22 Alan Hayward <alan.hayward@arm.com>
7497 Jiong Wang <jiong.wang@arm.com>
7499 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
7501 (aarch64_pseudo_register_name): Likewise.
7502 (aarch64_pseudo_register_type): Likewise.
7503 (aarch64_pseudo_register_reggroup_p): Likewise.
7504 (aarch64_gdbarch_init): Add pauth registers.
7505 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
7506 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
7507 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
7508 (struct gdbarch_tdep): Add regnum for ra_state.
7510 2019-03-22 Alan Hayward <alan.hayward@arm.com>
7511 Jiong Wang <jiong.wang@arm.com>
7513 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
7515 2019-03-22 Alan Hayward <alan.hayward@arm.com>
7516 Jiong Wang <jiong.wang@arm.com>
7518 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
7520 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
7521 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
7522 (aarch64_gdbarch_init): Add puth registers.
7523 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
7524 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
7525 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
7527 2019-03-22 Alan Hayward <alan.hayward@arm.com>
7528 Jiong Wang <jiong.wang@arm.com>
7530 * aarch64-linux-nat.c
7531 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
7532 * aarch64-linux-tdep.c
7533 (aarch64_linux_core_read_description): Likewise.
7534 (aarch64_linux_get_hwcap): New function.
7535 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
7536 (aarch64_linux_get_hwcap): New declaration.
7538 2019-03-22 Alan Hayward <alan.hayward@arm.com>
7539 Jiong Wang <jiong.wang@arm.com>
7541 * aarch64-linux-nat.c
7542 (aarch64_linux_nat_target::read_description): Add pauth param.
7543 * aarch64-linux-tdep.c
7544 (aarch64_linux_core_read_description): Likewise.
7545 * aarch64-tdep.c (struct target_desc): Add in pauth.
7546 (aarch64_read_description): Add pauth param.
7547 (aarch64_gdbarch_init): Likewise.
7548 * aarch64-tdep.h (aarch64_read_description): Likewise.
7549 * arch/aarch64.c (aarch64_create_target_description): Likewise.
7550 * arch/aarch64.h (aarch64_create_target_description): Likewise.
7551 * features/Makefile: Add new files.
7552 * features/aarch64-pauth.c: New file.
7553 * features/aarch64-pauth.xml: New file.
7555 2019-03-20 Tom Tromey <tromey@adacore.com>
7557 * infrun.c (handle_inferior_event): Rename from
7558 handle_inferior_event_1. Create a scoped_value_mark.
7559 (handle_inferior_event): Remove.
7561 2019-03-19 Tom Tromey <tromey@adacore.com>
7563 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
7564 * infrun.h (print_stop_event): Add "displays" parameter.
7565 * infrun.c (print_stop_event): Add "displays" parameter.
7567 2019-03-19 Pedro Alves <palves@redhat.com>
7569 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
7570 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
7571 to -1. Fix TABs vs spaces.
7572 (tui_ui_out::tui_ui_out): Don't initialize fields here.
7573 * tui/tui-out.h (tui_ui_out) Add intro comments.
7574 <m_line, m_start_of_line>: In-class initialize, and add describing
7577 2019-03-18 Alan Hayward <alan.hayward@arm.com>
7579 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
7581 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
7583 2019-03-18 Pedro Alves <palves@redhat.com>
7584 Eli Zaretskii <eliz@gnu.org>
7586 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
7587 m_line and m_start_of_line.
7589 2019-03-18 Eli Zaretskii <eliz@gnu.org>
7591 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
7592 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
7593 it returns a newline. This fixes a regression in TU mode, whereby
7594 the next line is output on the same screen line as the user input.
7596 2019-03-18 Tom Tromey <tromey@adacore.com>
7598 * minsyms.c (minimal_symbol_reader::install): Remove call to
7601 2019-03-18 Pedro Alves <palves@redhat.com>
7603 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
7605 (apply_style): New, factored out from ...
7606 (apply_ansi_escape): ... this. Handle reverse video mode.
7607 (tui_set_reverse_mode): New function.
7608 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
7609 * tui/tui-winsource.c (tui_show_source_line): Use
7610 tui_set_reverse_mode instead of setting A_STANDOUT.
7611 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
7614 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
7616 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
7619 2019-03-18 Tom Tromey <tromey@adacore.com>
7621 * ada-lang.c (empty_array): Add "high" parameter.
7622 (ada_evaluate_subexp): Update.
7624 2019-03-17 Sergei Trofimovich <siarheit@google.com>
7626 * unittests/string_view-selftests.c: Define
7627 _initialize_string_view_selftests unconditionally.
7629 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
7632 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
7634 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
7637 * windows-nat.c (display_selector): Fix format specifiers.
7639 2019-03-17 Eli Zaretskii <eliz@gnu.org>
7641 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
7642 tui_refill_source_window instead of tui_refresh_win, to update the
7643 current execution line. This fixes redisplay of the current line
7644 when stepping through the code with "next" or "step".
7646 2019-03-16 Eli Zaretskii <eliz@gnu.org>
7648 * source-cache.c (source_cache::get_source_lines): Call
7649 find_source_lines to initialize s->nlines. This fixes vertical
7650 scrolling of TUI source window when the DOWN arrow is pressed.
7652 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7654 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
7655 linux-thread-db.c (_initialize_thread_db): Likewise.
7657 2019-03-16 Eli Zaretskii <eliz@gnu.org>
7659 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
7660 wclrtoeol in tui_show_source_line". This reverts changes made in
7661 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
7663 2019-03-15 Tom Tromey <tom@tromey.com>
7665 * symtab.h (struct minimal_symbol): Derive from
7666 general_symbol_info.
7667 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
7668 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7669 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7670 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7671 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
7672 (MSYMBOL_SEARCH_NAME): Update.
7673 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
7674 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
7675 * minsyms.c (minimal_symbol_reader::record_full): Update.
7677 2019-03-15 Tom Tromey <tom@tromey.com>
7679 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
7681 2019-03-15 Tom Tromey <tom@tromey.com>
7683 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
7685 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
7687 * minsyms.c (lookup_minimal_symbol_by_pc_section)
7688 (build_minimal_symbol_hash_tables)
7689 (minimal_symbol_reader::install): Update.
7691 2019-03-15 Tom Tromey <tom@tromey.com>
7693 * symtab.c (create_demangled_names_hash): Update.
7694 (symbol_set_names): Update.
7695 * objfiles.h (struct objfile_per_bfd_storage)
7696 <demangled_names_hash>: Now an htab_up.
7697 * objfiles.c (objfile_per_bfd_storage): Simplify.
7699 2019-03-15 Tom Tromey <tom@tromey.com>
7701 * objfiles.h (struct objfile_per_bfd_storage): Declare
7703 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
7705 (get_objfile_bfd_data): Use new. Don't initialize
7707 (free_objfile_per_bfd_storage): Remove.
7708 (objfile_bfd_data_free, objfile::~objfile): Use delete.
7710 2019-03-15 Tom Tromey <tom@tromey.com>
7712 * symfile.c (reread_symbols): Update.
7713 * objfiles.c (objfile::objfile): Update.
7714 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
7715 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
7717 (minimal_symbol_reader::install): Update.
7718 (terminate_minimal_symbol_table): Remove.
7719 * jit.c (jit_object_close_impl): Update.
7721 2019-03-15 Tom Tromey <tom@tromey.com>
7723 * minsyms.c (minimal_symbol_reader::record_full): Remove some
7726 2019-03-15 Tom Tromey <tom@tromey.com>
7728 * objfiles.h (struct objfile_per_bfd_storage)
7729 <demangled_hash_languages>: Now a bitset.
7730 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
7731 (lookup_minimal_symbol): Update.
7733 2019-03-15 Tom Tromey <tom@tromey.com>
7735 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
7736 Don't return the symbol.
7737 * coffread.c (record_minimal_symbol): Use record_full.
7739 2019-03-14 Eli Zaretskii <eliz@gnu.org>
7741 The MS-Windows port of ncurses fails to switch to a color pair if
7742 one or both of the colors are the implicit default colors. This
7743 change records the default colors when TUI is initialized, and
7744 then specifies them explicitly when a color pair uses the default
7745 colors. This allows color styling in TUI mode on MS-Windows.
7747 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
7749 (tui_initialize_io) [__MINGW32__]: Record the default terminal
7750 colors in ncurses_norm_attr.
7751 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
7752 "none", replace it with the default color recorded in
7755 2019-03-14 Tom Tromey <tromey@adacore.com>
7757 * source-cache.h (class source_cache) <get_source_lines>: Return
7759 * source-cache.c (source_cache::extract_lines): Handle case where
7760 first_pos==npos. Return std::string.
7761 (source_cache::get_source_lines): Update.
7763 2019-03-14 Tom Tromey <tromey@adacore.com>
7765 * NEWS: Add item for "style sources" commands.
7766 * source-cache.c (source_cache::get_source_lines): Check
7768 * cli/cli-style.c (source_styling): New global.
7769 (_initialize_cli_style): Add "style sources" commands.
7770 (show_style_sources): New function.
7771 * cli/cli-style.h (source_styling): Declare.
7773 2019-03-14 Pedro Alves <palves@redhat.com>
7774 Tom Tromey <tromey@adacore.com>
7776 * tui/tui-winsource.h (tui_refill_source_window): Declare.
7777 * tui/tui-winsource.c (tui_refill_source_window): New function,
7779 (tui_horizontal_source_scroll): ... here. Move some logic.
7780 * cli/cli-style.c (set_style_enabled): Notify new observable.
7781 * tui/tui-hooks.c (tui_redisplay_source): New function.
7782 (tui_attach_detach_observers): Attach or detach
7783 tui_redisplay_source.
7784 * observable.h (source_styling_changed): New observable.
7785 * observable.c: Define source_styling_changed observable.
7787 2019-03-13 Tom Tromey <tromey@adacore.com>
7789 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
7790 (i386_gnu_nat_target::store_registers): Update.
7791 * target-debug.h (target_debug_print_std_string): New macro.
7792 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
7793 * windows-tdep.c (display_one_tib): Update.
7794 * tui/tui-stack.c (tui_make_status_line): Update.
7795 * top.c (print_inferior_quit_action): Update.
7796 * thread.c (thr_try_catch_cmd): Update.
7797 (add_thread_with_info): Update.
7798 (thread_target_id_str): Update.
7799 (thr_try_catch_cmd): Update.
7800 (thread_command): Update.
7801 (thread_find_command): Update.
7802 * record-btrace.c (record_btrace_target::info_record)
7803 (record_btrace_resume_thread, record_btrace_target::resume)
7804 (record_btrace_cancel_resume, record_btrace_step_thread)
7805 (record_btrace_target::wait, record_btrace_target::wait)
7806 (record_btrace_target::wait, record_btrace_target::stop): Update.
7807 * progspace.c (print_program_space): Update.
7808 * process-stratum-target.c
7809 (process_stratum_target::thread_address_space): Update.
7810 * linux-fork.c (linux_fork_mourn_inferior)
7811 (detach_checkpoint_command, info_checkpoints_command)
7812 (linux_fork_context): Update.
7813 (linux_fork_detach): Update.
7814 (class scoped_switch_fork_info): Update.
7815 (delete_checkpoint_command): Update.
7816 * infrun.c (follow_fork_inferior): Update.
7817 (follow_fork_inferior): Update.
7818 (proceed_after_vfork_done): Update.
7819 (handle_vfork_child_exec_or_exit): Update.
7820 (follow_exec): Update.
7821 (displaced_step_prepare_throw): Update.
7822 (displaced_step_restore): Update.
7823 (start_step_over): Update.
7825 (clear_proceed_status_thread): Update.
7827 (print_target_wait_results): Update.
7828 (do_target_wait): Update.
7829 (context_switch): Update.
7830 (stop_all_threads): Update.
7831 (restart_threads): Update.
7832 (finish_step_over): Update.
7833 (handle_signal_stop): Update.
7834 (switch_back_to_stepped_thread): Update.
7835 (keep_going_pass_signal): Update.
7836 (print_exited_reason): Update.
7837 (normal_stop): Update.
7838 * inferior.c (inferior_pid_to_str): Change return type.
7839 (print_selected_inferior): Update.
7840 (add_inferior): Update.
7841 (detach_inferior): Update.
7842 * dummy-frame.c (fprint_dummy_frames): Update.
7843 * dcache.c (dcache_info_1): Update.
7844 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
7845 (btrace_fetch, btrace_clear): Update.
7846 * linux-tdep.c (linux_core_pid_to_str): Change return type.
7847 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
7849 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
7850 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
7851 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
7852 * gdbarch.c, gdbarch.h: Rebuild.
7853 * gdbarch.sh (core_pid_to_str): Change return type.
7854 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
7856 (windows_nat_target::pid_to_str): Change return type.
7857 (windows_delete_thread): Update.
7858 (windows_nat_target::attach): Update.
7859 (windows_nat_target::files_info): Update.
7860 * target-delegates.c: Rebuild.
7861 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
7863 (sol_thread_target::pid_to_str): Change return type.
7864 * remote.c (class remote_target) <pid_to_str>: Change return
7866 (remote_target::pid_to_str): Change return type.
7867 (extended_remote_target::attach, remote_target::remote_stop_ns)
7868 (remote_target::remote_notif_remove_queued_reply)
7869 (remote_target::push_stop_reply, remote_target::disable_btrace):
7871 (extended_remote_target::attach): Update.
7872 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
7874 (gdbsim_target::pid_to_str): Change return type.
7875 * ravenscar-thread.c (struct ravenscar_thread_target)
7876 <pid_to_str>: Change return type.
7877 (ravenscar_thread_target::pid_to_str): Change return type.
7878 * procfs.c (class procfs_target) <pid_to_str>: Change return
7880 (procfs_target::pid_to_str): Change return type.
7881 (procfs_target::attach): Update.
7882 (procfs_target::detach): Update.
7883 (procfs_target::fetch_registers): Update.
7884 (procfs_target::store_registers): Update.
7885 (procfs_target::wait): Update.
7886 (procfs_target::files_info): Update.
7887 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
7888 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
7890 (nto_procfs_target::pid_to_str): Change return type.
7891 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
7892 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
7894 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
7896 (attach_proc_task_lwp_callback, get_detach_signal)
7897 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
7898 (linux_nat_target::resume, wait_lwp, stop_callback)
7899 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
7900 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
7901 (linux_nat_wait_1, resume_stopped_resumed_lwps)
7902 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
7903 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
7905 (inf_ptrace_target::attach): Update.
7906 (inf_ptrace_target::files_info): Update.
7907 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
7909 (go32_nat_target::pid_to_str): Change return type.
7910 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
7911 (gnu_nat_target::wait): Update.
7912 (gnu_nat_target::wait): Update.
7913 (gnu_nat_target::resume): Update.
7914 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
7915 (fbsd_nat_target::wait): Update.
7916 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
7918 (darwin_nat_target::attach): Update.
7919 * corelow.c (class core_target) <pid_to_str>: Change return type.
7920 (core_target::pid_to_str): Change return type.
7921 * target.c (normal_pid_to_str): Change return type.
7922 (default_pid_to_str): Likewise.
7923 (target_pid_to_str): Change return type.
7924 (target_translate_tls_address): Update.
7925 (target_announce_detach): Update.
7926 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
7928 (bsd_uthread_target::pid_to_str): Change return type.
7929 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
7931 (bsd_kvm_target::pid_to_str): Change return type.
7932 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
7934 (aix_thread_target::pid_to_str): Change return type.
7935 * target.h (struct target_ops) <pid_to_str>: Change return type.
7936 (target_pid_to_str, normal_pid_to_str): Likewise.
7937 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
7939 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
7941 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
7943 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
7945 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
7947 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
7950 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
7952 * NEWS: Mention that the new default MI version is 3. Mention
7953 changes to the output of commands and events that deal with
7954 multi-location breakpoints.
7955 * breakpoint.c: Include "mi/mi-out.h".
7956 (print_one_breakpoint): Change output syntax if using MI version
7958 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
7960 (mi_multi_location_breakpoint_output_fixed): New.
7961 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
7962 (mi_cmd_fix_multi_location_breakpoint_output): New.
7963 (mi_multi_location_breakpoint_output_fixed): New.
7964 * mi/mi-cmds.c (mi_cmds): Register command
7965 -fix-multi-location-breakpoint-output.
7966 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
7969 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7971 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
7972 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
7973 instantiate mi_ui_out based on interpreter name.
7974 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
7975 * mi/mi-main.c (mi_load_progress): Likewise.
7977 2019-03-12 John Baldwin <jhb@FreeBSD.org>
7979 * NEWS: Combine separate "New targets" sections for 8.3.
7981 2019-03-12 John Baldwin <jhb@FreeBSD.org>
7983 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
7984 (ppcfbsd_init_abi): Install gdbarch
7985 "fetch_tls_load_module_address" and "get_thread_local_address"
7988 2019-03-12 John Baldwin <jhb@FreeBSD.org>
7990 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
7991 (riscv_fbsd_init_abi): Install gdbarch
7992 "fetch_tls_load_module_address" and "get_thread_local_address"
7995 2019-03-12 John Baldwin <jhb@FreeBSD.org>
7997 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
7998 (i386fbsd_init_abi): Install gdbarch
7999 "fetch_tls_load_module_address" and "get_thread_local_address"
8002 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8004 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
8005 (amd64fbsd_init_abi): Install gdbarch
8006 "fetch_tls_load_module_address" and "get_thread_local_address"
8009 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8011 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
8012 (struct fbsd_pspace_data): New type.
8013 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
8014 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
8015 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
8016 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
8017 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
8019 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8021 * gdbtypes.c (lookup_struct_elt): New function.
8022 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
8023 * gdbtypes.h (struct struct_elt): New type.
8024 (lookup_struct_elt): New prototype.
8026 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8028 * gdbtypes.c (lookup_struct_elt_type): Update comment and
8029 remove disabled code block.
8031 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8033 * gdbarch.sh (get_thread_local_address): New method.
8034 * gdbarch.h, gdbarch.c: Regenerate.
8035 * target.c (target_translate_tls_address): Use
8036 gdbarch_get_thread_local_address if present instead of
8037 target::get_thread_local_address.
8039 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8041 * target.h (target::get_thread_local_address): Update comment.
8043 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8045 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
8046 objfile->separate_debug_objfile_backlink if not NULL.
8048 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8050 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
8051 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
8052 (amd64bsd_store_inferior_registers): Likewise.
8053 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
8054 Enable segment base registers.
8055 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
8056 PT_GETFSBASE and PT_GETGSBASE.
8057 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
8059 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
8060 segment base registers.
8061 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
8063 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8065 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
8066 Update calls to i386_target_description to add 'segments'
8068 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
8069 add segment base registers.
8070 * arch/i386.c (i386_create_target_description): Add 'segments'
8071 parameter to enable segment base registers.
8072 * arch/i386.h (i386_create_target_description): Likewise.
8073 * features/i386/32bit-segments.xml: New file.
8074 * features/i386/32bit-segments.c: Generate.
8075 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
8076 call to i386_target_description to add 'segments' parameter.
8077 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
8078 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
8079 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
8080 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
8081 if feature is present.
8082 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
8083 Add 'segments' parameter to call to i386_target_description.
8084 (i386_target_description): Add 'segments' parameter to enable
8085 segment base registers.
8086 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
8087 to call to i386_target_description.
8088 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
8089 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
8090 Define I386_NUM_REGS.
8091 (i386_target_description): Add 'segments' parameter to enable
8092 segment base registers.
8094 2019-03-12 Eli Zaretskii <eliz@gnu.org>
8097 * source-cache.c: #undef open and close, to avoid unresolved
8098 externals during linking.
8100 2019-03-12 Tom Tromey <tromey@adacore.com>
8102 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
8103 const. Add initializers.
8104 (_initialize_remote): Don't initialize ptid globals.
8106 2019-03-12 Pedro Alves <palves@redhat.com>
8108 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
8110 2019-03-12 Pedro Alves <palves@redhat.com>
8112 * cp-name-parser.y (main): Remove unused 'len' variable.
8114 2019-03-12 Tom Tromey <tromey@adacore.com>
8116 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
8117 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
8119 2019-03-12 Tom Tromey <tromey@adacore.com>
8121 * linux-nat.c (iterate_over_lwps): Update.
8122 (stop_callback): Remove parameter.
8123 (stop_wait_callback, detach_callback, resume_set_callback)
8124 (select_singlestep_lwp_callback, set_ignore_sigint)
8125 (status_callback, resumed_callback, resume_clear_callback)
8126 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
8128 (linux_nat_target::detach, linux_nat_target::resume)
8129 (linux_stop_and_wait_all_lwps, select_event_lwp)
8130 (linux_nat_filter_event, linux_nat_wait_1)
8131 (linux_nat_target::kill, linux_nat_target::stop)
8132 (linux_nat_target::stop): Update.
8133 (linux_nat_resume_callback): Change type.
8134 (resume_stopped_resumed_lwps, count_events_callback)
8135 (select_event_lwp_callback): Likewise.
8136 (linux_stop_lwp, linux_nat_stop_lwp): Update.
8137 * arm-linux-nat.c (struct update_registers_data): Remove.
8138 (update_registers_callback): Change type.
8139 (arm_linux_insert_hw_breakpoint1): Update.
8140 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
8142 (x86_linux_dr_set_addr): Update.
8143 (x86_linux_dr_set_control): Update.
8144 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
8145 (iterate_over_lwps): Use gdb::function_view.
8146 * nat/aarch64-linux-hw-point.c (struct
8147 aarch64_dr_update_callback_param): Remove.
8148 (debug_reg_change_callback): Change type.
8149 (aarch64_notify_debug_reg_change): Update.
8150 * s390-linux-nat.c (s390_refresh_per_info): Update.
8152 2019-03-11 Tom Tromey <tromey@adacore.com>
8154 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
8155 redundant assignment to "this_cu".
8157 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8159 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
8161 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8163 * gdbtypes.c (rank_one_type_parm_set): New function extracted
8165 (rank_one_type): ... this.
8167 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8169 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
8171 (rank_one_type): ... this.
8173 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8175 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
8177 (rank_one_type): ... this.
8179 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8181 * gdbtypes.c (rank_one_type_parm_float): New function extracted
8183 (rank_one_type): ... this.
8185 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8187 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
8189 (rank_one_type): ... this.
8191 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8193 * gdbtypes.c (rank_one_type_parm_range): New function extracted
8195 (rank_one_type): ... this.
8197 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8199 * gdbtypes.c (rank_one_type_parm_char): New function extracted
8201 (rank_one_type): ... this.
8203 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8205 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
8207 (rank_one_type): ... this.
8209 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8211 * gdbtypes.c (rank_one_type_parm_int): New function extracted
8213 (rank_one_type): ... this.
8215 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8217 * gdbtypes.c (rank_one_type_parm_func): New function extracted
8219 (rank_one_type): ... this.
8221 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8223 * gdbtypes.c (rank_one_type_parm_array): New function extracted
8225 (rank_one_type): ... this.
8227 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8229 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
8231 (rank_one_type): ... this.
8233 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8235 * inferior.c (initialize_inferiors): Ensure 'help set/show print
8236 inferior-events' shows the example events.
8238 2019-03-08 Eli Zaretskii <eliz@gnu.org>
8240 Support styling on native MS-Windows console
8243 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
8244 on MS-Windows if $TERM is not defined.
8246 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
8248 * posix-hdep.c (gdb_console_fputs):
8249 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
8251 * ui-file.h (gdb_console_fputs): Add prototype.
8253 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
8254 back to fputs only if the former returns zero.
8256 2019-03-07 Tom Tromey <tom@tromey.com>
8258 * symmisc.c (print_symbol_bcache_statistics): Update.
8259 (print_objfile_statistics): Update.
8260 * symfile.c (allocate_symtab): Update.
8261 * stabsread.c: Don't include bcache.h.
8262 * psymtab.h (struct psymbol_bcache): Don't declare.
8263 (class psymtab_storage) <psymbol_cache>: Now a bcache.
8264 (psymbol_bcache_init, psymbol_bcache_free)
8265 (psymbol_bcache_get_bcache): Don't declare.
8266 * psymtab.c (struct psymbol_bcache): Remove.
8267 (psymtab_storage::psymtab_storage): Update.
8268 (psymtab_storage::~psymtab_storage): Update.
8269 (psymbol_bcache_init, psymbol_bcache_free)
8270 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
8271 (add_psymbol_to_bcache): Update.
8272 (allocate_psymtab): Update.
8273 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8274 macro_cache>: No longer pointers.
8275 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
8276 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
8277 * macrotab.c (macro_bcache): Update.
8278 * macroexp.c: Don't include bcache.h.
8279 * gdbtypes.c (check_types_worklist): Update.
8280 (types_deeply_equal): Remove TRY/CATCH. Update.
8281 * elfread.c (elf_symtab_read): Update.
8282 * dwarf2read.c: Don't include bcache.h.
8283 * buildsym.c (buildsym_compunit::get_macro_table): Update.
8284 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
8285 (print_bcache_statistics, bcache_memory_used): Don't declare.
8286 (struct bcache): Move from bcache.c. Add constructor, destructor,
8287 methods. Rename all data members.
8288 * bcache.c (struct bcache): Move to bcache.h.
8289 (bcache::expand_hash_table): Rename from expand_hash_table.
8291 (bcache::insert): Rename from bcache_full.
8292 (bcache::compare): Rename from bcache_compare.
8293 (bcache_xmalloc): Remove.
8294 (bcache::~bcache): Rename from bcache_xfree.
8295 (bcache::print_statistics): Rename from print_bcache_statistics.
8296 (bcache::memory_used): Rename from bcache_memory_used.
8298 2019-03-07 Pedro Alves <palves@redhat.com>
8300 * infrun.c (normal_stop): Also check for
8301 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
8303 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
8305 * f-lang.c (value_from_host_double): Moved to...
8306 * value.c (value_from_host_double): ...here.
8307 * value.h (value_from_host_double): Declare.
8308 * guile/scm-math.c (vlscm_convert_typed_number): Use
8309 value_from_host_double.
8310 (vlscm_convert_number): Likewise.
8311 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
8312 * python/py-value.c (convert_value_from_python): Likewise.
8314 2019-03-06 Tom Tromey <tom@tromey.com>
8316 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
8318 2019-03-06 Tom Tromey <tom@tromey.com>
8320 * utils.h (free_current_contents): Don't declare.
8321 * utils.c (free_current_contents): Remove.
8323 2019-03-06 Tom Tromey <tom@tromey.com>
8325 * top.c (quit_force): Update.
8326 * main.c (captured_command_loop): Update.
8327 * common/new-op.c (operator new): Update.
8328 * common/common-exceptions.c (struct catcher)
8329 <save_cleanup_chain>: Remove member.
8330 (exceptions_state_mc_init): Update.
8331 (exception_try_scope_entry): Return nullptr.
8332 (exception_try_scope_exit, exception_rethrow)
8333 (throw_exception_sjlj, throw_exception_cxx): Update.
8334 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
8335 (all_cleanups, do_cleanups, discard_cleanups)
8336 (discard_final_cleanups, save_cleanups, save_final_cleanups)
8337 (restore_cleanups, restore_final_cleanups): Don't declare.
8338 (do_final_cleanups): Remove parameter.
8339 * common/cleanups.c (cleanup_chain, make_cleanup)
8340 (make_cleanup_dtor, all_cleanups, do_cleanups)
8341 (discard_my_cleanups, discard_cleanups)
8342 (discard_final_cleanups, save_my_cleanups, save_cleanups)
8343 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
8344 (null_cleanup): Remove.
8345 (do_final_cleanups): Remove parameter.
8347 2019-03-06 Tom Tromey <tom@tromey.com>
8349 * remote.c (remote_target::remote_parse_stop_reply): Use
8352 2019-03-06 Tom Tromey <tom@tromey.com>
8354 * stabsread.c (struct stabs_field_info): Rename from field_info.
8355 <list, fnlist>: Add initializers.
8356 <obstack>: New member.
8357 (read_member_functions, read_struct_fields, read_baseclasses):
8358 Allocate on obstack. Don't use cleanups.
8359 (read_one_struct_field, read_member_functions, read_struct_fields)
8360 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
8361 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
8362 (read_struct_type): Update.
8364 2019-03-06 Tom Tromey <tom@tromey.com>
8366 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
8367 * common/filestuff.h (make_cleanup_close): Don't declare.
8368 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
8371 2019-03-06 Tom Tromey <tom@tromey.com>
8373 * solib-aix.c: Use make_scope_exit.
8375 2019-03-06 Tom Tromey <tom@tromey.com>
8377 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
8378 Use make_scope_exit.
8380 2019-03-06 Tom Tromey <tom@tromey.com>
8382 * solib-svr4.c (disable_probes_interface): Remove parameter.
8383 (svr4_handle_solib_event): Use make_scope_exit.
8385 2019-03-06 Tom Tromey <tom@tromey.com>
8387 * remote.c (struct stop_reply_deleter): Remove.
8388 (stop_reply_up): Update.
8389 (struct stop_reply): Derive from notif_event. Don't typedef.
8390 <regcache>: Now a std::vector.
8391 (stop_reply_xfree): Remove.
8392 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
8393 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
8394 (remote_target::discard_pending_stop_replies): Use delete.
8395 (remote_target::remote_parse_stop_reply): Update.
8396 (remote_target::process_stop_reply): Update.
8397 * remote-notif.h (struct notif_event): Add virtual destructor.
8398 Remove "dtr" member.
8399 (struct notif_client) <alloc_event>: Return a unique_ptr.
8400 (notif_event_xfree): Don't declare.
8401 (notif_event_up): New typedef.
8402 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
8403 (notif_event_xfree, do_notif_event_xfree): Remove.
8404 (remote_notif_state_xfree): Update.
8406 2019-03-06 Tom Tromey <tom@tromey.com>
8408 * infrun.c (displaced_step_clear_cleanup): Now a
8409 forward_scope_exit type.
8410 (displaced_step_prepare_throw): Update.
8411 (displaced_step_fixup): Update.
8413 2019-03-06 Tom Tromey <tom@tromey.com>
8415 * inferior.h (class inferior): Update comment.
8416 * gdbthread.h (class thread_info): Update comment.
8418 2019-03-06 Joel Brobecker <brobecker@adacore.com>
8419 Tom Tromey <tom@tromey.com>
8421 * stabsread.h (struct stab_section_list): Remove.
8422 (coffstab_build_psymtabs): Update.
8423 * dbxread.c (symbuf_sections): Now a std::vector.
8424 (sect_idx): New global.
8425 (fill_symbuf): Update.
8426 (coffstab_build_psymtabs): Change type of stabsects parameter.
8428 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
8430 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
8431 (coff_locate_sections): Update.
8432 (coff_symfile_read): Remove cleanups. Update.
8433 (init_stringtab): Add storage parameter.
8434 (free_stringtab, free_stringtab_cleanup): Remove.
8435 (init_lineno): Add storage parameter.
8436 (free_linetab, free_linetab_cleanup): Remove.
8438 2019-03-06 Pedro Alves <palves@redhat.com>
8440 * linux-fork.c (fork_info::clobber_regs): Delete.
8441 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
8442 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
8444 (scoped_switch_fork_info::scoped_switch_fork_info)
8445 (checkpoint_command, linux_fork_context): Adjust
8446 fork_save_infrun_state calls.
8448 2019-03-06 Pedro Alves <palves@redhat.com>
8450 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
8451 (inf_has_multiple_threads): Return 'bool' and rewrite using
8452 inferior_info::threads().
8454 2019-03-06 Pedro Alves <palves@redhat.com>
8456 * linux-fork.c: Include <list>.
8457 (fork_list): Now a std::list instance.
8458 (fork_info): Add ctor, dtor, and in-class initialize all fields.
8459 (forks_exist_p, find_last_fork): Adjust.
8463 (free_fork): Delete, folded into fork_info::~fork_info().
8464 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
8466 (init_fork_list): Delete.
8467 (linux_fork_killall, linux_fork_mourn_inferior)
8468 (linux_fork_detach, info_checkpoints_command): Adjust.
8469 (_initialize_linux_fork): No longer call init_fork_list.
8471 2019-03-06 Pedro Alves <palves@redhat.com>
8473 * linux-fork.c (new_fork): New, split out of ...
8474 (add_fork): ... this. Return void. Move "first fork" special
8475 case from here, to ...
8476 (checkpoint_command): ... here.
8477 * linux-linux.h (add_fork): Return void.
8479 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8481 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
8483 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8484 Chris January <chris.january@arm.com>
8485 David Lecomber <david.lecomber@arm.com>
8487 * f-exp.y: New token, UNOP_INTRINSIC.
8488 (exp): New pattern using UNOP_INTRINSIC token.
8489 (f77_keywords): Add 'abs' keyword.
8490 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
8491 (value_from_host_double): New function.
8492 (evaluate_subexp_f): Support UNOP_ABS.
8494 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8496 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
8499 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8501 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
8502 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
8503 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
8505 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8507 * f-exp.y (convert_to_kind_type): Handle more type kinds.
8509 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8510 Chris January <chris.january@arm.com>
8512 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
8513 * f-exp.y: Define 'KIND' token.
8514 (exp): New pattern for KIND expressions.
8515 (ptype): Handle types with a kind extension.
8516 (direct_abs_decl): Extend to spot kind extensions.
8517 (f77_keywords): Add 'kind' to the list.
8518 (push_kind_type): New function.
8519 (convert_to_kind_type): New function.
8520 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
8521 * parse.c (operator_length_standard): Likewise.
8522 * parser-defs.h (enum type_pieces): Add tp_kind.
8523 * std-operator.def: Add UNOP_KIND.
8525 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8527 * f-exp.y (f_parse): Set yydebug.
8529 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8531 * f-lang.c (evaluate_subexp_f): New function.
8532 (exp_descriptor_f): New global.
8533 (f_language_defn): Use exp_descriptor_f instead of
8534 exp_descriptor_standard.
8536 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8538 * f-exp.y (struct token): Add comments.
8539 (dot_ops): Remove uppercase versions and the end marker.
8540 (f77_keywords): Likewise.
8541 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
8542 entries in the dot_ops array are case insensitive, and use
8543 strncasecmp to compare strings. Also some whitespace cleanup in
8544 this area. Similar for the f77_keywords array, except entries in
8545 this list might be case sensitive.
8547 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8549 * f-exp.y (struct f77_boolean_val): Add comments.
8550 (boolean_values): Remove uppercase versions, and end marker.
8551 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
8552 and use strncasecmp to achieve case insensitivity. Additionally,
8553 perform whitespace cleanup around this code.
8555 2019-03-06 Tom Tromey <tromey@adacore.com>
8557 * remote-sim.c (gdbsim_target_open): Use result of
8560 2019-03-06 Richard Bunt <richard.bunt@arm.com>
8561 Dirk Schubert <dirk.schubert@arm.com>
8562 Chris January <chris.january@arm.com>
8564 * eval.c (evaluate_subexp_standard): Call Fortran argument
8566 * f-lang.c (struct value): A value which can be passed into a
8567 Fortran function call.
8568 (fortran_argument_convert): Wrap Fortran arguments in a pointer
8570 (struct type): Value ready for a Fortran function call.
8571 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
8573 * f-lang.h (fortran_argument_convert): Declaration.
8574 (fortran_preserve_arg_pointer): Declaration.
8575 * infcall.c (value_arg_coerce): Call Fortran argument logic.
8577 2019-03-05 Tom Tromey <tromey@adacore.com>
8579 * python/py-prettyprint.c (print_string_repr): Remove #if.
8580 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
8582 2019-03-05 Tom Tromey <tromey@adacore.com>
8584 * target.c (the_dummy_target): Move later. Change type to
8586 (initialize_targets): Don't initialize the_dummy_target.
8588 2019-03-05 Tom Tromey <tromey@adacore.com>
8590 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
8591 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
8593 2019-03-05 Tom Tromey <tromey@adacore.com>
8595 * windows-nat.c (windows_nat_target::attach)
8596 (windows_nat_target::detach): Don't call gdb_flush.
8597 * valprint.c (generic_val_print, val_print, val_print_string):
8598 Don't call gdb_flush.
8599 * utils.c (defaulted_query): Don't call gdb_flush.
8600 * typeprint.c (print_type_scalar): Don't call gdb_flush.
8601 * target.c (target_announce_detach): Don't call gdb_flush.
8602 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
8603 * remote.c (extended_remote_target::attach): Don't call
8605 * procfs.c (procfs_target::detach): Don't call gdb_flush.
8606 * printcmd.c (do_examine): Don't call gdb_flush.
8607 (info_display_command): Don't call gdb_flush.
8608 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
8609 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
8610 * memattr.c (info_mem_command): Don't call gdb_flush.
8611 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
8612 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
8613 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
8614 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
8615 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
8616 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
8617 (gnu_nat_target::detach): Don't call gdb_flush.
8618 * f-valprint.c (f_val_print): Don't call gdb_flush.
8619 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
8620 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
8621 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
8623 * c-valprint.c (c_val_print): Don't call gdb_flush.
8624 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
8626 2019-03-05 Tom Tromey <tromey@adacore.com>
8628 * varobj.c (update_dynamic_varobj_children): Update.
8629 (install_default_visualizer): Use reset, not release.
8630 * value.c (set_internalvar): Update.
8631 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
8632 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
8633 ATTRIBUTE_UNUSED_RESULT.
8635 2019-03-05 Tom Tromey <tromey@adacore.com>
8637 * remote.c (class scoped_remote_fd) <release>: Add
8638 ATTRIBUTE_UNUSED_RESULT.
8640 2019-03-05 Tom Tromey <tromey@adacore.com>
8642 * macroexp.c (struct macro_buffer) <release>: Add
8643 ATTRIBUTE_UNUSED_RESULT.
8645 2019-03-05 Tom Tromey <tromey@adacore.com>
8647 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
8648 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
8649 ATTRIBUTE_UNUSED_RESULT.
8651 2019-03-05 Tom Tromey <tromey@adacore.com>
8653 * common/scoped_fd.h (class scoped_fd) <release>: Add
8654 ATTRIBUTE_UNUSED_RESULT.
8656 2019-03-05 Tom Tromey <tromey@adacore.com>
8658 * parser-defs.h (struct parser_state) <release>: Add
8659 ATTRIBUTE_UNUSED_RESULT.
8661 2019-03-05 Tom Tromey <tromey@adacore.com>
8663 * utils.h (class gdb_argv) <release>: Add
8664 ATTRIBUTE_UNUSED_RESULT.
8665 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
8667 2019-03-02 Eli Zaretskii <eliz@gnu.org>
8669 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
8670 for-loop range, to avoid compiler warnings.
8672 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
8673 avoid compiler warnings about unused variables.
8675 * NEWS: Mention end of support for native debugging on MS-Windows
8679 * common/netstuff.c:
8680 * gdbserver/gdbreplay.c
8681 * gdbserver/remote-utils.c:
8683 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
8684 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
8685 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
8686 'getaddrinfo' and 'freeaddrinfo' were not available before
8687 Windows XP, and mingw.org's MinGW headers by default define
8688 _WIN32_WINNT to 0x500.
8690 2019-03-01 Gary Benson <gbenson@redhat.com>
8692 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
8694 2019-02-28 Brian Vandenberg <phantall@gmail.com>
8695 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8698 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
8699 set_sigint_trap, clear_sigint_trap.
8701 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8703 * target.c (target_detach): Clear the regcache and the
8706 2019-02-27 Pedro Alves <palves@redhat.com>
8708 * utils.c (set_screen_size): When we cap the height/width sizes,
8709 tweak the corresponding command variable to show "unlimited":
8711 2019-02-27 Saagar Jha <saagar@saagarjha.com>
8712 Pedro Alves <palves@redhat.com>
8714 * utils.c (set_screen_size): Reduce "infinite" rows and columns
8715 before calling rl_set_screen_size.
8717 2019-02-27 Tom Tromey <tromey@adacore.com>
8719 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
8721 * python/py-value.c: Remove Python 2.4 workaround.
8722 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
8724 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
8725 Python 2.4 workaround.
8726 * python/python-internal.h: Remove Python 2.4 comment.
8727 (Py_ssize_t): Don't define.
8728 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
8729 (gdb_Py_DECREF): Remove Python 2.4 workaround.
8730 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
8731 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
8732 * python/python.c (do_start_initialization): Remove Python 2.4
8734 * python/py-prettyprint.c (class dummy_python_frame): Remove.
8735 (print_children): Remove Python 2.4 workaround.
8736 * python/py-inferior.c (buffer_procs): Remove Python 2.4
8738 (CHARBUFFERPROC_NAME): Remove.
8739 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
8740 Python 2.4 workaround.
8742 2019-02-27 Kevin Buettner <kevinb@redhat.com>
8744 * NEWS: Note minimum Python version.
8746 2019-02-27 Kevin Buettner <kevinb@redhat.com>
8748 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
8749 code from these functions. Remove corresponding ifdefs. Use
8750 Py_buffer_up instead of explicit calls to PyBuffer_Release.
8751 Remove gotos and target of gotos.
8752 (infpy_search_memory): Likewise.
8754 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8756 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
8757 (hppa_gdbarch_init): Don't register deleted functions with
8760 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8762 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
8763 (h8300_unwind_sp): Delete.
8764 (h8300_dummy_id): Delete.
8765 (h8300_gdbarch_init): Don't register deleted functions with
8768 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8770 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
8771 (ft32_unwind_pc): Delete.
8772 (ft32_unwind_sp): Delete.
8773 (ft32_gdbarch_init): Don't register deleted functions with
8776 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8778 * gdb/frv-tdep.c (frv_dummy_id): Delete.
8779 (frv_unwind_pc): Delete.
8780 (frv_unwind_sp): Delete.
8781 (frv_gdbarch_init): Don't register deleted functions with
8784 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8786 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
8787 (riscv_unwind_pc): Delete.
8788 (riscv_unwind_sp): Delete.
8789 (riscv_gdbarch_init): Don't register deleted functions with
8792 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8794 * gdb/csky-tdep.c (csky_dummy_id): Delete.
8795 (csky_unwind_pc): Delete.
8796 (csky_unwind_sp): Delete.
8797 (csky_gdbarch_init): Don't register deleted functions with
8800 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8802 * gdb/cris-tdep.c (cris_dummy_id): Delete.
8803 (cris_unwind_pc): Delete.
8804 (cris_unwind_sp): Delete.
8805 (cris_gdbarch_init): Don't register deleted functions with
8808 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8810 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
8811 (bfin_unwind_pc): Delete.
8812 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
8814 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8816 * gdb/arm-tdep.c (arm_dummy_id): Delete.
8817 (arm_unwind_pc): Delete.
8818 (arm_unwind_sp): Delete.
8819 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
8821 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8823 * gdb/arc-tdep.c (arc_dummy_id): Delete.
8824 (arc_unwind_pc): Delete.
8825 (arc_unwind_sp): Delete.
8826 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
8828 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8830 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
8831 (alpha_unwind_pc): Delete.
8832 (alpha_gdbarch_init): Don't register deleted functions with
8835 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8837 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
8838 (aarch64_unwind_pc): Delete.
8839 (aarch64_unwind_sp): Delete.
8840 (aarch64_gdbarch_init): Don't register deleted functions with
8843 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8845 * gdbtypes.c (type_align): Don't consider static members when
8846 computing structure alignment.
8848 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8850 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
8851 return 0 for other types.
8852 * arch-utils.c (default_type_align): Always return 0.
8853 * gdbarch.h: Regenerate.
8854 * gdbarch.sh (type_align): Extend comment.
8855 * gdbtypes.c (type_align): Add additional comments, always call
8856 gdbarch_type_align before applying the default rules.
8857 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
8858 generic code will then apply a suitable default.
8859 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
8860 types, return 0 for other types.
8862 2019-02-27 Joel Brobecker <brobecker@adacore.com>
8864 * NEWS: Create a new section for the next release branch.
8865 Rename the section of the current branch, now that it has
8868 2019-02-27 Joel Brobecker <brobecker@adacore.com>
8870 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
8871 * version.in: Bump version to 8.3.50.DATE-git.
8873 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
8875 * aix-thread.c (ptid_cmp): Remove unused variable.
8876 (get_signaled_thread): Likewise.
8877 (store_regs_user_thread): Likewise.
8878 (store_regs_kernel_thread): Likewise.
8879 (fetch_regs_kernel_thread): Remove shadowed variable.
8881 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
8883 * features/riscv/32bit-cpu.xml: Add register numbers.
8884 * features/riscv/32bit-fpu.c: Regenerate.
8885 * features/riscv/32bit-fpu.xml: Add register numbers.
8886 * features/riscv/64bit-cpu.xml: Add register numbers.
8887 * features/riscv/64bit-fpu.c: Regenerate.
8888 * features/riscv/64bit-fpu.xml: Add register numbers.
8890 2019-02-26 Kevin Buettner <kevinb@redhat.com>
8892 * NEWS: Mention two argument form of gdb.Value constructor.
8893 * python/py-value.c (convert_buffer_and_type_to_value): New
8895 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
8896 Add support for handling an optional second argument. Call
8897 convert_buffer_and_type_to_value as appropriate.
8898 * python/python-internal.h (Py_buffer_deleter): New struct.
8899 (Py_buffer_up): New typedef.
8901 2019-02-25 John Baldwin <jhb@FreeBSD.org>
8903 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
8904 instead of releasing ownership.
8906 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
8908 * dwarf2read.c (open_and_init_dwp_file): Call
8909 elf_numsections instead of bfd_count_sections to initialize
8910 dwp_file->num_sections.
8912 2019-02-25 Tom Tromey <tromey@adacore.com>
8914 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
8916 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
8918 * gcore.in: Add '--readnever' option when invoking GDB.
8920 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
8922 * MAINTAINERS: Update my email address.
8924 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
8926 * build-id.c (build_id_to_debug_bfd_1): New function.
8927 (build_id_to_debug_bfd): Look for separate debug file in
8930 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
8932 * gdbarch.sh: Update the copyright year range that is placed into
8935 2019-02-22 Keith Seitz <keiths@redhat.com>
8938 * linespec.c (create_sals_line_offset): Search for the default
8939 symtab's filename instead of its fullname.
8941 2019-02-21 Alan Hayward <alan.hayward@arm.com>
8943 * NEWS: Update style defaults.
8945 2019-02-21 Alan Hayward <alan.hayward@arm.com>
8947 * main.c (captured_main_1): Disable styling in batch mode.
8949 2019-02-20 Tom Tromey <tom@tromey.com>
8951 * symtab.c (symtab_symbol_info): Fix typos.
8953 2019-02-20 Tom Tromey <tromey@adacore.com>
8955 * findcmd.c (_initialize_mem_search): Use upper case for
8956 metasyntactic variables.
8958 2019-02-20 Alan Hayward <alan.hayward@arm.com>
8960 * aarch64-tdep.c (aarch64_add_reggroups): New function.
8961 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
8963 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
8965 * top.h (source_file_name): Change to std::string.
8966 * top.c (source_file_name): Likewise.
8967 (command_line_input): Adjust.
8968 * cli/cli-script.c (script_from_file): Adjust.
8970 2019-02-19 Tom Tromey <tromey@adacore.com>
8972 * ravenscar-thread.c
8973 (ravenscar_thread_target::update_thread_list): Don't call
8974 ada_build_task_list.
8975 * ada-lang.h (ada_build_task_list): Don't declare.
8976 * ada-tasks.c (struct ada_tasks_inferior_data)
8977 <task_list_valid_p>: Now bool.
8978 (read_known_tasks, ada_task_list_changed)
8979 (ada_tasks_invalidate_inferior_data): Update.
8980 (read_known_tasks_array): Return bool.
8981 (read_known_tasks_list): Likewise.
8982 (read_known_tasks): Return void.
8983 (ada_build_task_list): Now static.
8985 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
8987 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
8988 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
8990 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8992 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
8993 variant for ada_tasks_pspace_data_handle and
8994 ada_tasks_inferior_data_handle.
8995 (ada_tasks_pspace_data_cleanup): New function.
8996 (ada_tasks_inferior_data_cleanup): New function.
8998 2019-02-17 Tom Tromey <tom@tromey.com>
9000 * macrotab.h (macro_source_fullname): Return a std::string.
9001 * macrotab.c (macro_include, check_for_redefinition)
9002 (macro_undef, macro_lookup_definition, foreach_macro)
9003 (foreach_macro_in_scope): Update.
9004 (macro_source_fullname): Return a std::string.
9005 * macrocmd.c (show_pp_source_pos): Update.
9007 2019-02-17 Tom Tromey <tom@tromey.com>
9009 * macrocmd.c (show_pp_source_pos): Style the file names.
9011 2019-02-17 Tom Tromey <tom@tromey.com>
9014 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
9016 2019-02-17 Tom Tromey <tom@tromey.com>
9018 * ada-lang.c (user_select_syms): Use filtered printing.
9019 * utils.c (wrap_style): New global.
9020 (desired_style): Remove.
9021 (emit_style_escape): Add stream parameter.
9022 (set_output_style, reset_terminal_style, prompt_for_continue):
9024 (flush_wrap_buffer): Only flush gdb_stdout.
9025 (wrap_here): Set wrap_style.
9026 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
9027 treat escape sequences as a character. Change when wrap buffer is
9029 (fputs_styled): Do not set the output style when the default is
9031 * ui-style.h (struct ui_file_style) <is_default>: New method.
9032 * source.c (print_source_lines_base): Emit escape sequences in one
9035 2019-02-17 Joel Brobecker <brobecker@adacore.com>
9037 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
9038 integers and enumeration types.
9040 2019-02-17 Joel Brobecker <brobecker@adacore.com>
9042 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
9043 instead of lookup_symbol_in_language
9044 (do_exact_match): New function.
9045 (ada_get_symbol_name_matcher): Return do_exact_match when
9046 doing a verbatim match.
9048 2019-02-15 Tom Tromey <tromey@adacore.com>
9050 * ravenscar-thread.c (ravenscar_thread_target::resume)
9051 (ravenscar_thread_target::wait): Special case wildcard requests.
9053 2019-02-15 Tom Tromey <tromey@adacore.com>
9055 * ravenscar-thread.c (base_ptid): Remove.
9056 (struct ravenscar_thread_target) <close>: New method.
9057 <m_base_ptid>: New member.
9058 <update_inferior_ptid, active_task, task_is_currently_active,
9059 runtime_initialized>: Declare methods.
9060 <ravenscar_thread_target>: Add constructor.
9061 (ravenscar_thread_target::task_is_currently_active)
9062 (ravenscar_thread_target::update_inferior_ptid)
9063 (ravenscar_runtime_initialized): Rename. Now methods.
9064 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
9065 (ravenscar_thread_target::update_thread_list): Update.
9066 (ravenscar_thread_target::active_task): Now method.
9067 (ravenscar_thread_target::store_registers)
9068 (ravenscar_thread_target::prepare_to_store)
9069 (ravenscar_thread_target::prepare_to_store)
9070 (ravenscar_thread_target::mourn_inferior): Update.
9071 (ravenscar_inferior_created): Use "new" to create target.
9072 (ravenscar_thread_target::get_ada_task_ptid): Update.
9073 (_initialize_ravenscar): Don't initialize base_ptid.
9074 (ravenscar_ops): Remove global.
9076 2019-02-15 Tom Tromey <tromey@adacore.com>
9078 * target.h (push_target): Declare new overload.
9079 * target.c (push_target): New overload, taking an rvalue reference.
9080 * remote.c (remote_target::open_1): Use push_target overload.
9081 * corelow.c (core_target_open): Use push_target overload.
9083 2019-02-15 Tom Tromey <tromey@adacore.com>
9085 * ravenscar-thread.c (is_ravenscar_task)
9086 (ravenscar_task_is_currently_active): Return bool.
9087 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
9088 (_initialize_ravenscar): Remove "(void)".
9089 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
9092 2019-02-15 Tom Tromey <tromey@adacore.com>
9094 * ravenscar-thread.c (ravenscar_runtime_initializer)
9095 (has_ravenscar_runtime, get_running_thread_id)
9096 (ravenscar_thread_target::resume): Fix indentation.
9098 2019-02-15 Tom Tromey <tromey@adacore.com>
9100 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
9101 from ravenscar_arch_ops.
9102 (sparc_ravenscar_ops::fetch_registers)
9103 (sparc_ravenscar_ops::store_registers): Now methods.
9104 (sparc_ravenscar_prepare_to_store): Remove.
9105 (sparc_ravenscar_ops): Redefine.
9106 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
9107 methods and destructor. Remove members.
9108 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
9109 (ravenscar_thread_target::store_registers)
9110 (ravenscar_thread_target::prepare_to_store): Update.
9111 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
9113 (struct ppc_ravenscar_powerpc_ops): Derive from
9115 (ppc_ravenscar_powerpc_ops::fetch_registers)
9116 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
9117 (ppc_ravenscar_powerpc_ops): Redefine.
9118 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
9119 (ppc_ravenscar_e500_ops::fetch_registers)
9120 (ppc_ravenscar_e500_ops::store_registers): Now methods.
9121 (ppc_ravenscar_e500_ops): Redefine.
9122 * aarch64-ravenscar-thread.c
9123 (aarch64_ravenscar_generic_prepare_to_store): Remove.
9124 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
9125 (aarch64_ravenscar_fetch_registers)
9126 (aarch64_ravenscar_store_registers): Now methods.
9127 (aarch64_ravenscar_ops): Redefine.
9129 2019-02-15 Tom Tromey <tromey@adacore.com>
9131 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
9132 (ravenscar_thread_target::stopped_by_hw_breakpoint)
9133 (ravenscar_thread_target::stopped_by_watchpoint)
9134 (ravenscar_thread_target::stopped_data_address)
9135 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
9137 2019-02-15 Tom Tromey <tromey@adacore.com>
9139 * ravenscar-thread.c: Fix some typos.
9141 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9142 Tom Tromey <tromey@adacore.com>
9144 * ada-lang.c (ada_exception_sal): Change addr_string to a
9146 (create_ada_exception_catchpoint): Update.
9148 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9149 Tom Tromey <tromey@adacore.com>
9151 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
9152 (bp_location_ops): Remove.
9153 (base_breakpoint_allocate_location): Update.
9154 (free_bp_location): Update.
9155 * ada-lang.c (class ada_catchpoint_location)
9156 <ada_catchpoint_location>: Remove ops parameter.
9157 (ada_catchpoint_location_dtor): Remove.
9158 (ada_catchpoint_location_ops): Remove.
9159 (allocate_location_exception): Update.
9160 * breakpoint.h (struct bp_location_ops): Remove.
9161 (class bp_location) <bp_location>: Remove bp_location_ops
9163 <~bp_location>: Add destructor.
9166 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
9167 Pedro Alves <palves@redhat.com>
9169 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
9172 2019-02-14 David Michael <fedora.dm0@gmail.com>
9173 Samuel Thibault <samuel.thibault@gnu.org>
9174 Thomas Schwinge <thomas@codesourcery.com>
9176 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
9177 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
9179 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
9181 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
9182 (check_empty): Use "const char *".
9184 * gnu-nat.c (gnu_nat_target::detach): Instead of
9185 'detach_inferior (pid)' call
9186 'detach_inferior (find_inferior_pid (pid))'.
9188 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
9189 'nat/fork-inferior.o'.
9190 * gnu-nat.c: #include "nat/fork-inferior.h".
9192 * gnu-nat.c (gnu_nat_target::detach): Instead of
9193 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
9194 * gnu-nat.h: #include "inf-child.h".
9195 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
9196 'i386_gnu_nat_target::fetch_registers'.
9197 (gnu_store_registers): Rename/move to
9198 'i386_gnu_nat_target::store_registers'.
9200 * config/i386/nm-i386gnu.h: Don't "#include" any files.
9201 * gnu-nat.h (mach_thread_info): New function.
9202 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
9204 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
9206 2019-02-14 Frederic Konrad <konrad@adacore.com>
9208 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
9210 2019-02-14 Joel Brobecker <brobecker@adacore.com>
9212 * windows-nat.c (windows_add_thread): Add new parameter
9213 "main_thread_p" with default value set to false. Update
9214 function documentation as well as all callers.
9215 (windows_delete_thread): Likewise.
9216 (fake_create_process): Update call to windows_add_thread.
9217 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
9218 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
9219 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
9220 call to windows_delete_thread.
9222 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
9224 * MAINTAINERS: Add Andrew Burgess as global maintainer.
9226 2019-02-12 John Baldwin <jhb@FreeBSD.org>
9228 * symfile.c (find_separate_debug_file): Use canonical path of
9229 sysroot with child_path instead of gdb_sysroot if it is valid.
9231 2019-02-12 John Baldwin <jhb@FreeBSD.org>
9233 * symfile.c (find_separate_debug_file): Use child_path to
9234 determine if an object file is under a sysroot.
9236 2019-02-12 John Baldwin <jhb@FreeBSD.org>
9238 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9239 unittests/child-path-selftests.c.
9240 * common/pathstuff.c (child_path): New function.
9241 * common/pathstuff.h (child_path): New prototype.
9242 * unittests/child-path-selftests.c: New file.
9244 2019-02-12 John Baldwin <jhb@FreeBSD.org>
9246 * symfile.c (find_separate_debug_file): Look for separate debug
9247 files in debug directories under the sysroot.
9249 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9251 * symtab.h (struct minimal_symbol data_p): New const method.
9252 (struct minimal_symbol text_p): Likewise.
9253 * symtab.c (output_source_filename): Use file name style
9255 (print_symbol_info): Likewise.
9256 (print_msymbol_info): Use address style to print addresses.
9257 Use function name style to print executable text symbols.
9258 (expand_symtab_containing_pc): Use data_p.
9259 (find_pc_sect_compunit_symtab): Likewise.
9261 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9263 * breakpoint.c (describe_other_breakpoints): Use address style
9265 (say_where): Likewise.
9267 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9269 * ada-typeprint.c (print_func_type): Print function name
9270 style to print function name.
9271 * c-typeprint.c (c_print_type_1): Likewise.
9273 2019-02-11 Alan Hayward <alan.hayward@arm.com>
9275 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
9278 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9280 * c-exp.y (direct_abs_decl): Use emplace_back to record the
9283 2019-02-10 Joel Brobecker <brobecker@adacore.com>
9285 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
9286 TYPE_CODE_REF types.
9288 2019-02-08 Jim Wilson <jimw@sifive.com>
9290 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
9291 (riscv_linux_fregset): New.
9292 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
9294 2019-02-07 Tom Tromey <tom@tromey.com>
9296 * thread.c (thread_cancel_execution_command): Update.
9297 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
9299 (struct thread_fsm_ops): Remove.
9300 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
9301 (thread_fsm_should_stop, thread_fsm_return_value)
9302 (thread_fsm_set_finished, thread_fsm_finished_p)
9303 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
9305 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
9306 * infrun.c (clear_proceed_status_thread)
9307 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
9308 (print_stop_event): Update.
9309 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
9311 (step_command_fsm_ops): Remove.
9312 (new_step_command_fsm): Remove.
9314 (step_command_fsm::should_stop): Rename from
9315 step_command_fsm_should_stop.
9316 (step_command_fsm::clean_up): Rename from
9317 step_command_fsm_clean_up.
9318 (step_command_fsm::do_async_reply_reason): Rename from
9319 step_command_fsm_async_reply_reason.
9320 (struct until_next_fsm): Inherit from thread_fsm. Add
9322 (until_next_fsm_ops): Remove.
9323 (new_until_next_fsm): Remove.
9324 (until_next_fsm::should_stop): Rename from
9325 until_next_fsm_should_stop.
9326 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
9327 (until_next_fsm::do_async_reply_reason): Rename from
9328 until_next_fsm_async_reply_reason.
9329 (struct finish_command_fsm): Inherit from thread_fsm. Add
9330 constructor. Change type of breakpoint.
9331 (finish_command_fsm_ops): Remove.
9332 (new_finish_command_fsm): Remove.
9333 (finish_command_fsm::should_stop): Rename from
9334 finish_command_fsm_should_stop.
9335 (finish_command_fsm::clean_up): Rename from
9336 finish_command_fsm_clean_up.
9337 (finish_command_fsm::return_value): Rename from
9338 finish_command_fsm_return_value.
9339 (finish_command_fsm::do_async_reply_reason): Rename from
9340 finish_command_fsm_async_reply_reason.
9341 (finish_command): Update.
9342 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
9344 (call_thread_fsm_ops): Remove.
9345 (call_thread_fsm::call_thread_fsm): Rename from
9346 new_call_thread_fsm.
9347 (call_thread_fsm::should_stop): Rename from
9348 call_thread_fsm_should_stop.
9349 (call_thread_fsm::should_notify_stop): Rename from
9350 call_thread_fsm_should_notify_stop.
9351 (run_inferior_call, call_function_by_hand_dummy): Update.
9352 * cli/cli-interp.c (should_print_stop_to_console): Update.
9353 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
9354 Add constructor. Change type of location_breakpoint,
9356 (until_break_fsm_ops): Remove.
9357 (new_until_break_fsm): Remove.
9358 (until_break_fsm::should_stop): Rename from
9359 until_break_fsm_should_stop.
9360 (until_break_fsm::clean_up): Rename from
9361 until_break_fsm_clean_up.
9362 (until_break_fsm::do_async_reply_reason): Rename from
9363 until_break_fsm_async_reply_reason.
9364 (until_break_command): Update.
9365 * thread-fsm.c: Remove.
9366 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
9368 2019-02-07 Tom Tromey <tom@tromey.com>
9370 * yy-remap.h: Add include guard.
9371 * xtensa-tdep.h: Add include guard.
9372 * xcoffread.h: Rename include guard.
9373 * varobj-iter.h: Add include guard.
9374 * tui/tui.h: Rename include guard.
9375 * tui/tui-winsource.h: Rename include guard.
9376 * tui/tui-wingeneral.h: Rename include guard.
9377 * tui/tui-windata.h: Rename include guard.
9378 * tui/tui-win.h: Rename include guard.
9379 * tui/tui-stack.h: Rename include guard.
9380 * tui/tui-source.h: Rename include guard.
9381 * tui/tui-regs.h: Rename include guard.
9382 * tui/tui-out.h: Rename include guard.
9383 * tui/tui-layout.h: Rename include guard.
9384 * tui/tui-io.h: Rename include guard.
9385 * tui/tui-hooks.h: Rename include guard.
9386 * tui/tui-file.h: Rename include guard.
9387 * tui/tui-disasm.h: Rename include guard.
9388 * tui/tui-data.h: Rename include guard.
9389 * tui/tui-command.h: Rename include guard.
9390 * tic6x-tdep.h: Add include guard.
9391 * target/waitstatus.h: Rename include guard.
9392 * target/wait.h: Rename include guard.
9393 * target/target.h: Rename include guard.
9394 * target/resume.h: Rename include guard.
9395 * target-float.h: Rename include guard.
9396 * stabsread.h: Add include guard.
9397 * rs6000-tdep.h: Add include guard.
9398 * riscv-fbsd-tdep.h: Add include guard.
9399 * regformats/regdef.h: Rename include guard.
9400 * record.h: Rename include guard.
9401 * python/python.h: Rename include guard.
9402 * python/python-internal.h: Rename include guard.
9403 * python/py-stopevent.h: Rename include guard.
9404 * python/py-ref.h: Rename include guard.
9405 * python/py-record.h: Rename include guard.
9406 * python/py-record-full.h: Rename include guard.
9407 * python/py-record-btrace.h: Rename include guard.
9408 * python/py-instruction.h: Rename include guard.
9409 * python/py-events.h: Rename include guard.
9410 * python/py-event.h: Rename include guard.
9411 * procfs.h: Add include guard.
9412 * proc-utils.h: Add include guard.
9413 * p-lang.h: Add include guard.
9414 * or1k-tdep.h: Rename include guard.
9415 * observable.h: Rename include guard.
9416 * nto-tdep.h: Rename include guard.
9417 * nat/x86-linux.h: Rename include guard.
9418 * nat/x86-linux-dregs.h: Rename include guard.
9419 * nat/x86-gcc-cpuid.h: Add include guard.
9420 * nat/x86-dregs.h: Rename include guard.
9421 * nat/x86-cpuid.h: Rename include guard.
9422 * nat/ppc-linux.h: Rename include guard.
9423 * nat/mips-linux-watch.h: Rename include guard.
9424 * nat/linux-waitpid.h: Rename include guard.
9425 * nat/linux-ptrace.h: Rename include guard.
9426 * nat/linux-procfs.h: Rename include guard.
9427 * nat/linux-osdata.h: Rename include guard.
9428 * nat/linux-nat.h: Rename include guard.
9429 * nat/linux-namespaces.h: Rename include guard.
9430 * nat/linux-btrace.h: Rename include guard.
9431 * nat/glibc_thread_db.h: Rename include guard.
9432 * nat/gdb_thread_db.h: Rename include guard.
9433 * nat/gdb_ptrace.h: Rename include guard.
9434 * nat/fork-inferior.h: Rename include guard.
9435 * nat/amd64-linux-siginfo.h: Rename include guard.
9436 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
9437 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
9438 * nat/aarch64-linux.h: Rename include guard.
9439 * nat/aarch64-linux-hw-point.h: Rename include guard.
9440 * mn10300-tdep.h: Add include guard.
9441 * mips-linux-tdep.h: Add include guard.
9442 * mi/mi-parse.h: Rename include guard.
9443 * mi/mi-out.h: Rename include guard.
9444 * mi/mi-main.h: Rename include guard.
9445 * mi/mi-interp.h: Rename include guard.
9446 * mi/mi-getopt.h: Rename include guard.
9447 * mi/mi-console.h: Rename include guard.
9448 * mi/mi-common.h: Rename include guard.
9449 * mi/mi-cmds.h: Rename include guard.
9450 * mi/mi-cmd-break.h: Rename include guard.
9451 * m2-lang.h: Add include guard.
9452 * location.h: Rename include guard.
9453 * linux-record.h: Rename include guard.
9454 * linux-nat.h: Add include guard.
9455 * linux-fork.h: Add include guard.
9456 * i386-darwin-tdep.h: Rename include guard.
9457 * hppa-linux-offsets.h: Add include guard.
9458 * guile/guile.h: Rename include guard.
9459 * guile/guile-internal.h: Rename include guard.
9460 * gnu-nat.h: Rename include guard.
9461 * gdb-stabs.h: Rename include guard.
9462 * frv-tdep.h: Add include guard.
9463 * f-lang.h: Add include guard.
9464 * event-loop.h: Add include guard.
9465 * darwin-nat.h: Rename include guard.
9466 * cp-abi.h: Rename include guard.
9467 * config/sparc/nm-sol2.h: Rename include guard.
9468 * config/nm-nto.h: Rename include guard.
9469 * config/nm-linux.h: Add include guard.
9470 * config/i386/nm-i386gnu.h: Rename include guard.
9471 * config/djgpp/nl_types.h: Rename include guard.
9472 * config/djgpp/langinfo.h: Rename include guard.
9473 * compile/gcc-cp-plugin.h: Add include guard.
9474 * compile/gcc-c-plugin.h: Add include guard.
9475 * compile/compile.h: Rename include guard.
9476 * compile/compile-object-run.h: Rename include guard.
9477 * compile/compile-object-load.h: Rename include guard.
9478 * compile/compile-internal.h: Rename include guard.
9479 * compile/compile-cplus.h: Rename include guard.
9480 * compile/compile-c.h: Rename include guard.
9481 * common/xml-utils.h: Rename include guard.
9482 * common/x86-xstate.h: Rename include guard.
9483 * common/version.h: Rename include guard.
9484 * common/vec.h: Rename include guard.
9485 * common/tdesc.h: Rename include guard.
9486 * common/selftest.h: Rename include guard.
9487 * common/scoped_restore.h: Rename include guard.
9488 * common/scoped_mmap.h: Rename include guard.
9489 * common/scoped_fd.h: Rename include guard.
9490 * common/safe-iterator.h: Rename include guard.
9491 * common/run-time-clock.h: Rename include guard.
9492 * common/refcounted-object.h: Rename include guard.
9493 * common/queue.h: Rename include guard.
9494 * common/ptid.h: Rename include guard.
9495 * common/print-utils.h: Rename include guard.
9496 * common/preprocessor.h: Rename include guard.
9497 * common/pathstuff.h: Rename include guard.
9498 * common/observable.h: Rename include guard.
9499 * common/netstuff.h: Rename include guard.
9500 * common/job-control.h: Rename include guard.
9501 * common/host-defs.h: Rename include guard.
9502 * common/gdb_wait.h: Rename include guard.
9503 * common/gdb_vecs.h: Rename include guard.
9504 * common/gdb_unlinker.h: Rename include guard.
9505 * common/gdb_unique_ptr.h: Rename include guard.
9506 * common/gdb_tilde_expand.h: Rename include guard.
9507 * common/gdb_sys_time.h: Rename include guard.
9508 * common/gdb_string_view.h: Rename include guard.
9509 * common/gdb_splay_tree.h: Rename include guard.
9510 * common/gdb_setjmp.h: Rename include guard.
9511 * common/gdb_ref_ptr.h: Rename include guard.
9512 * common/gdb_optional.h: Rename include guard.
9513 * common/gdb_locale.h: Rename include guard.
9514 * common/gdb_assert.h: Rename include guard.
9515 * common/filtered-iterator.h: Rename include guard.
9516 * common/filestuff.h: Rename include guard.
9517 * common/fileio.h: Rename include guard.
9518 * common/environ.h: Rename include guard.
9519 * common/common-utils.h: Rename include guard.
9520 * common/common-types.h: Rename include guard.
9521 * common/common-regcache.h: Rename include guard.
9522 * common/common-inferior.h: Rename include guard.
9523 * common/common-gdbthread.h: Rename include guard.
9524 * common/common-exceptions.h: Rename include guard.
9525 * common/common-defs.h: Rename include guard.
9526 * common/common-debug.h: Rename include guard.
9527 * common/cleanups.h: Rename include guard.
9528 * common/buffer.h: Rename include guard.
9529 * common/btrace-common.h: Rename include guard.
9530 * common/break-common.h: Rename include guard.
9531 * cli/cli-utils.h: Rename include guard.
9532 * cli/cli-style.h: Rename include guard.
9533 * cli/cli-setshow.h: Rename include guard.
9534 * cli/cli-script.h: Rename include guard.
9535 * cli/cli-interp.h: Rename include guard.
9536 * cli/cli-decode.h: Rename include guard.
9537 * cli/cli-cmds.h: Rename include guard.
9538 * charset-list.h: Add include guard.
9539 * buildsym-legacy.h: Rename include guard.
9540 * bfin-tdep.h: Add include guard.
9541 * ax.h: Rename include guard.
9542 * arm-linux-tdep.h: Add include guard.
9543 * arm-fbsd-tdep.h: Add include guard.
9544 * arch/xtensa.h: Rename include guard.
9545 * arch/tic6x.h: Add include guard.
9546 * arch/i386.h: Add include guard.
9547 * arch/arm.h: Rename include guard.
9548 * arch/arm-linux.h: Rename include guard.
9549 * arch/arm-get-next-pcs.h: Rename include guard.
9550 * arch/amd64.h: Add include guard.
9551 * arch/aarch64-insn.h: Rename include guard.
9552 * arch-utils.h: Rename include guard.
9553 * annotate.h: Add include guard.
9554 * amd64-darwin-tdep.h: Rename include guard.
9555 * aarch64-linux-tdep.h: Add include guard.
9556 * aarch64-fbsd-tdep.h: Add include guard.
9557 * aarch32-linux-nat.h: Add include guard.
9559 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9561 * macrotab.c (macro_define_internal): New function that
9562 factorizes macro_define_object_internal and macro_define_function
9564 (macro_define_object_internal): Use macro_define_internal.
9565 (macro_define_function): Likewise.
9567 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9569 * macrocmd.c (extract_identifier): Return
9570 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
9573 2019-02-06 John Baldwin <jhb@FreeBSD.org>
9575 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
9577 2019-02-05 Tom Tromey <tom@tromey.com>
9579 * target.c (target_stack::unpush): Move assertion earlier.
9581 2019-01-30 Tom Tromey <tom@tromey.com>
9584 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
9585 (gdbpy_parse_and_eval): Likewise.
9586 * python/python-internal.h (gdbpy_allow_threads): New class.
9588 2019-01-28 John Baldwin <jhb@FreeBSD.org>
9590 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
9591 (aarch64_fbsd_fpregmap): Move earlier.
9592 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
9593 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
9594 instead of individual calls to trad_frame_set_reg_addr.
9595 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
9597 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
9598 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
9599 instead of individual calls to trad_frame_set_reg_addr.
9601 2019-01-28 Alan Hayward <alan.hayward@arm.com>
9603 * CONTRIBUTE: Replace contribution list with wiki link.
9605 2019-01-25 Tom Tromey <tom@tromey.com>
9607 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
9609 2019-01-25 Tom Tromey <tom@tromey.com>
9611 * xtensa-linux-nat.c: Fix common/ includes.
9612 * xml-support.h: Fix common/ includes.
9613 * xml-support.c: Fix common/ includes.
9614 * x86-linux-nat.c: Fix common/ includes.
9615 * windows-nat.c: Fix common/ includes.
9616 * varobj.h: Fix common/ includes.
9617 * varobj.c: Fix common/ includes.
9618 * value.c: Fix common/ includes.
9619 * valops.c: Fix common/ includes.
9620 * utils.c: Fix common/ includes.
9621 * unittests/xml-utils-selftests.c: Fix common/ includes.
9622 * unittests/utils-selftests.c: Fix common/ includes.
9623 * unittests/unpack-selftests.c: Fix common/ includes.
9624 * unittests/tracepoint-selftests.c: Fix common/ includes.
9625 * unittests/style-selftests.c: Fix common/ includes.
9626 * unittests/string_view-selftests.c: Fix common/ includes.
9627 * unittests/scoped_restore-selftests.c: Fix common/ includes.
9628 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
9629 * unittests/scoped_fd-selftests.c: Fix common/ includes.
9630 * unittests/rsp-low-selftests.c: Fix common/ includes.
9631 * unittests/parse-connection-spec-selftests.c: Fix common/
9633 * unittests/optional-selftests.c: Fix common/ includes.
9634 * unittests/offset-type-selftests.c: Fix common/ includes.
9635 * unittests/observable-selftests.c: Fix common/ includes.
9636 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
9637 * unittests/memrange-selftests.c: Fix common/ includes.
9638 * unittests/memory-map-selftests.c: Fix common/ includes.
9639 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
9640 * unittests/function-view-selftests.c: Fix common/ includes.
9641 * unittests/environ-selftests.c: Fix common/ includes.
9642 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
9643 * unittests/common-utils-selftests.c: Fix common/ includes.
9644 * unittests/cli-utils-selftests.c: Fix common/ includes.
9645 * unittests/array-view-selftests.c: Fix common/ includes.
9646 * ui-file.c: Fix common/ includes.
9647 * tui/tui-io.c: Fix common/ includes.
9648 * tracepoint.h: Fix common/ includes.
9649 * tracepoint.c: Fix common/ includes.
9650 * tracefile-tfile.c: Fix common/ includes.
9651 * top.h: Fix common/ includes.
9652 * top.c: Fix common/ includes.
9653 * thread.c: Fix common/ includes.
9654 * target/waitstatus.h: Fix common/ includes.
9655 * target/waitstatus.c: Fix common/ includes.
9656 * target.h: Fix common/ includes.
9657 * target.c: Fix common/ includes.
9658 * target-memory.c: Fix common/ includes.
9659 * target-descriptions.c: Fix common/ includes.
9660 * symtab.h: Fix common/ includes.
9661 * symfile.c: Fix common/ includes.
9662 * stap-probe.c: Fix common/ includes.
9663 * spu-linux-nat.c: Fix common/ includes.
9664 * sparc-nat.c: Fix common/ includes.
9665 * source.c: Fix common/ includes.
9666 * solib.c: Fix common/ includes.
9667 * solib-target.c: Fix common/ includes.
9668 * ser-unix.c: Fix common/ includes.
9669 * ser-tcp.c: Fix common/ includes.
9670 * ser-pipe.c: Fix common/ includes.
9671 * ser-base.c: Fix common/ includes.
9672 * selftest-arch.c: Fix common/ includes.
9673 * s12z-tdep.c: Fix common/ includes.
9674 * rust-exp.y: Fix common/ includes.
9675 * rs6000-aix-tdep.c: Fix common/ includes.
9676 * riscv-tdep.c: Fix common/ includes.
9677 * remote.c: Fix common/ includes.
9678 * remote-notif.h: Fix common/ includes.
9679 * remote-fileio.h: Fix common/ includes.
9680 * remote-fileio.c: Fix common/ includes.
9681 * regcache.h: Fix common/ includes.
9682 * regcache.c: Fix common/ includes.
9683 * record-btrace.c: Fix common/ includes.
9684 * python/python.c: Fix common/ includes.
9685 * python/py-type.c: Fix common/ includes.
9686 * python/py-inferior.c: Fix common/ includes.
9687 * progspace.h: Fix common/ includes.
9688 * producer.c: Fix common/ includes.
9689 * procfs.c: Fix common/ includes.
9690 * proc-api.c: Fix common/ includes.
9691 * printcmd.c: Fix common/ includes.
9692 * ppc-linux-nat.c: Fix common/ includes.
9693 * parser-defs.h: Fix common/ includes.
9694 * osdata.c: Fix common/ includes.
9695 * obsd-nat.c: Fix common/ includes.
9696 * nat/x86-linux.c: Fix common/ includes.
9697 * nat/x86-linux-dregs.c: Fix common/ includes.
9698 * nat/x86-dregs.h: Fix common/ includes.
9699 * nat/x86-dregs.c: Fix common/ includes.
9700 * nat/ppc-linux.c: Fix common/ includes.
9701 * nat/mips-linux-watch.h: Fix common/ includes.
9702 * nat/mips-linux-watch.c: Fix common/ includes.
9703 * nat/linux-waitpid.c: Fix common/ includes.
9704 * nat/linux-ptrace.h: Fix common/ includes.
9705 * nat/linux-ptrace.c: Fix common/ includes.
9706 * nat/linux-procfs.c: Fix common/ includes.
9707 * nat/linux-personality.c: Fix common/ includes.
9708 * nat/linux-osdata.c: Fix common/ includes.
9709 * nat/linux-namespaces.c: Fix common/ includes.
9710 * nat/linux-btrace.h: Fix common/ includes.
9711 * nat/linux-btrace.c: Fix common/ includes.
9712 * nat/fork-inferior.c: Fix common/ includes.
9713 * nat/amd64-linux-siginfo.c: Fix common/ includes.
9714 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
9715 * nat/aarch64-linux.c: Fix common/ includes.
9716 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
9717 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
9718 * namespace.h: Fix common/ includes.
9719 * mips-linux-tdep.c: Fix common/ includes.
9720 * minsyms.c: Fix common/ includes.
9721 * mi/mi-parse.h: Fix common/ includes.
9722 * mi/mi-main.c: Fix common/ includes.
9723 * mi/mi-cmd-env.c: Fix common/ includes.
9724 * memrange.h: Fix common/ includes.
9725 * memattr.c: Fix common/ includes.
9726 * maint.h: Fix common/ includes.
9727 * maint.c: Fix common/ includes.
9728 * main.c: Fix common/ includes.
9729 * machoread.c: Fix common/ includes.
9730 * location.c: Fix common/ includes.
9731 * linux-thread-db.c: Fix common/ includes.
9732 * linux-nat.c: Fix common/ includes.
9733 * linux-fork.c: Fix common/ includes.
9734 * inline-frame.c: Fix common/ includes.
9735 * infrun.c: Fix common/ includes.
9736 * inflow.c: Fix common/ includes.
9737 * inferior.h: Fix common/ includes.
9738 * inferior.c: Fix common/ includes.
9739 * infcmd.c: Fix common/ includes.
9740 * inf-ptrace.c: Fix common/ includes.
9741 * inf-child.c: Fix common/ includes.
9742 * ia64-linux-nat.c: Fix common/ includes.
9743 * i387-tdep.c: Fix common/ includes.
9744 * i386-tdep.c: Fix common/ includes.
9745 * i386-linux-tdep.c: Fix common/ includes.
9746 * i386-linux-nat.c: Fix common/ includes.
9747 * i386-go32-tdep.c: Fix common/ includes.
9748 * i386-fbsd-tdep.c: Fix common/ includes.
9749 * i386-fbsd-nat.c: Fix common/ includes.
9750 * guile/scm-type.c: Fix common/ includes.
9751 * guile/guile.c: Fix common/ includes.
9752 * go32-nat.c: Fix common/ includes.
9753 * gnu-nat.c: Fix common/ includes.
9754 * gdbthread.h: Fix common/ includes.
9755 * gdbarch-selftests.c: Fix common/ includes.
9756 * gdb_usleep.c: Fix common/ includes.
9757 * gdb_select.h: Fix common/ includes.
9758 * gdb_bfd.c: Fix common/ includes.
9759 * gcore.c: Fix common/ includes.
9760 * fork-child.c: Fix common/ includes.
9761 * findvar.c: Fix common/ includes.
9762 * fbsd-nat.c: Fix common/ includes.
9763 * event-top.c: Fix common/ includes.
9764 * event-loop.c: Fix common/ includes.
9765 * dwarf2read.c: Fix common/ includes.
9766 * dwarf2loc.c: Fix common/ includes.
9767 * dwarf2-frame.c: Fix common/ includes.
9768 * dwarf-index-cache.c: Fix common/ includes.
9769 * dtrace-probe.c: Fix common/ includes.
9770 * disasm-selftests.c: Fix common/ includes.
9771 * defs.h: Fix common/ includes.
9772 * csky-tdep.c: Fix common/ includes.
9773 * cp-valprint.c: Fix common/ includes.
9774 * cp-support.h: Fix common/ includes.
9775 * cp-support.c: Fix common/ includes.
9776 * corelow.c: Fix common/ includes.
9777 * completer.h: Fix common/ includes.
9778 * completer.c: Fix common/ includes.
9779 * compile/compile.c: Fix common/ includes.
9780 * compile/compile-loc2c.c: Fix common/ includes.
9781 * compile/compile-cplus-types.c: Fix common/ includes.
9782 * compile/compile-cplus-symbols.c: Fix common/ includes.
9783 * command.h: Fix common/ includes.
9784 * cli/cli-dump.c: Fix common/ includes.
9785 * cli/cli-cmds.c: Fix common/ includes.
9786 * charset.c: Fix common/ includes.
9787 * build-id.c: Fix common/ includes.
9788 * btrace.h: Fix common/ includes.
9789 * btrace.c: Fix common/ includes.
9790 * breakpoint.h: Fix common/ includes.
9791 * breakpoint.c: Fix common/ includes.
9793 (enum agent_op): Fix common/ includes.
9794 * ax-general.c (struct aop_map): Fix common/ includes.
9795 * ax-gdb.c: Fix common/ includes.
9796 * auxv.c: Fix common/ includes.
9797 * auto-load.c: Fix common/ includes.
9798 * arm-tdep.c: Fix common/ includes.
9799 * arch/riscv.c: Fix common/ includes.
9800 * arch/ppc-linux-common.c: Fix common/ includes.
9801 * arch/i386.c: Fix common/ includes.
9802 * arch/arm.c: Fix common/ includes.
9803 * arch/arm-linux.c: Fix common/ includes.
9804 * arch/arm-get-next-pcs.c: Fix common/ includes.
9805 * arch/amd64.c: Fix common/ includes.
9806 * arch/aarch64.c: Fix common/ includes.
9807 * arch/aarch64-insn.c: Fix common/ includes.
9808 * arch-utils.c: Fix common/ includes.
9809 * amd64-windows-tdep.c: Fix common/ includes.
9810 * amd64-tdep.c: Fix common/ includes.
9811 * amd64-sol2-tdep.c: Fix common/ includes.
9812 * amd64-obsd-tdep.c: Fix common/ includes.
9813 * amd64-nbsd-tdep.c: Fix common/ includes.
9814 * amd64-linux-tdep.c: Fix common/ includes.
9815 * amd64-linux-nat.c: Fix common/ includes.
9816 * amd64-fbsd-tdep.c: Fix common/ includes.
9817 * amd64-fbsd-nat.c: Fix common/ includes.
9818 * amd64-dicos-tdep.c: Fix common/ includes.
9819 * amd64-darwin-tdep.c: Fix common/ includes.
9820 * agent.c: Fix common/ includes.
9821 * ada-lang.h: Fix common/ includes.
9822 * ada-lang.c: Fix common/ includes.
9823 * aarch64-tdep.c: Fix common/ includes.
9825 2019-01-25 Tom Tromey <tom@tromey.com>
9827 * common/create-version.sh: Use common/version.h.
9829 2019-01-24 Pedro Alves <palves@redhat.com>
9831 * infrun.c (signal_stop, signal_print, signal_program)
9832 (signal_catch, signal_pass): Now arrays instead of pointers.
9833 (update_signals_program_target, do_target_resume)
9834 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
9835 * linux-nat.c (linux_nat_target::pass_signals)
9836 (linux_nat_target::create_inferior, linux_nat_target::attach):
9838 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
9839 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
9840 * procfs.c (procfs_target::pass_signals): Adjust.
9841 * record-full.c (record_full_target::resume): Adjust.
9842 * remote.c (remote_target::pass_signals)
9843 (remote_target::program_signals): Adjust.
9844 * target-debug.h (target_debug_print_signals): Now takes a
9845 gdb::array_view as parameter. Adjust.
9846 * target.h (target_ops) <pass_signals, program_signals>: Replace
9847 pointer and length parameters with gdb::array_view.
9848 (target_pass_signals, target_program_signals): Likewise.
9849 * target-delegates.c: Regenerate.
9851 2019-01-24 Pedro Alves <palves@redhat.com>
9853 * common/forward-scope-exit.h
9854 (forward_scope_exit::forward_scope_exit): Pass arguments to
9855 m_bind_function directly, instead of creating a std::bind and
9858 2019-01-24 Alan Hayward <alan.hayward@arm.com>
9860 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
9862 (pass_in_v_vfp_candidate): Likewise.
9864 2019-01-23 Tom Tromey <tom@tromey.com>
9865 Pedro Alves <palves@redhat.com>
9867 * regcache.c (class regcache_invalidator): Remove.
9868 (regcache::raw_write): Use make_scope_exit.
9870 2019-01-23 Tom Tromey <tom@tromey.com>
9872 * ui-out.h (class ui_out_emit_type): Update comment.
9874 2019-01-23 Tom Tromey <tom@tromey.com>
9876 * infrun.c (fetch_inferior_event): Update comment.
9878 2019-01-23 Tom Tromey <tom@tromey.com>
9879 Pedro Alves <palves@redhat.com>
9881 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
9883 (fetch_inferior_event): Use SCOPE_EXIT.
9886 2019-01-23 Tom Tromey <tom@tromey.com>
9887 Pedro Alves <palves@redhat.com>
9889 * infrun.c (disable_thread_events): Delete.
9890 (stop_all_threads): Use SCOPE_EXIT.
9892 2019-01-23 Tom Tromey <tom@tromey.com>
9893 Pedro Alves <palves@redhat.com>
9895 * symfile.c: Include forward-scope-exit.h.
9896 (clear_symtab_users_cleanup): Replace forward declaration with
9897 a FORWARD_SCOPE_EXIT.
9898 (syms_from_objfile_1): Use the forward_scope_exit and
9899 gdb::optional instead of cleanup_function.
9900 (reread_symbols): Use the forward_scope_exit instead of
9902 (clear_symtab_users_cleanup): Remove function.
9904 2019-01-23 Tom Tromey <tom@tromey.com>
9905 Pedro Alves <palves@redhat.com>
9907 * linux-nat.c: Include scope-exit.h.
9908 (cleanup_target_stop): Remove.
9909 (linux_nat_target::static_tracepoint_markers_by_strid): Use
9912 2019-01-23 Tom Tromey <tom@tromey.com>
9913 Pedro Alves <palves@redhat.com>
9915 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
9916 (call_function_by_hand_dummy): Use SCOPE_EXIT.
9918 2019-01-23 Tom Tromey <tom@tromey.com>
9919 Andrew Burgess <andrew.burgess@embecosm.com>
9920 Pedro Alves <palves@redhat.com>
9922 * infrun.c (fetch_inferior_event): Use scope_exit.
9923 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
9924 * top.c (execute_command): Use scope_exit.
9925 * breakpoint.c (bpstat_do_actions): Use scope_exit.
9926 * utils.c (do_bpstat_clear_actions_cleanup)
9927 (make_bpstat_clear_actions_cleanup): Remove.
9929 2019-01-23 Tom Tromey <tom@tromey.com>
9930 Pedro Alves <palves@redhat.com>
9932 * infrun.c: Include "common/scope-exit.h"
9933 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
9934 (wait_for_inferior): Use SCOPE_EXIT.
9935 (fetch_inferior_event): Use scope_exit.
9937 2019-01-23 Tom Tromey <tom@tromey.com>
9938 Pedro Alves <palves@redhat.com>
9940 * breakpoint.c (create_breakpoint): Remove cleanup.
9942 2019-01-23 Tom Tromey <tom@tromey.com>
9943 Andrew Burgess <andrew.burgess@embecosm.com>
9944 Pedro Alves <palves@redhat.com>
9946 2019-01-23 Pedro Alves <palves@redhat.com>
9948 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
9950 2019-01-23 Pedro Alves <palves@redhat.com>
9951 Andrew Burgess <andrew.burgess@embecosm.com>
9953 * gdbthread.h: Include "common/forward-scope-exit.h".
9954 (scoped_finish_thread_state): Redefine custom class in terms of
9957 2019-01-23 Pedro Alves <palves@redhat.com>
9958 Andrew Burgess <andrew.burgess@embecosm.com>
9960 * common/forward-scope-exit.h: New file.
9962 2019-01-23 Pedro Alves <palves@redhat.com>
9963 Andrew Burgess <andrew.burgess@embecosm.com>
9964 Tom Tromey <tom@tromey.com>
9966 * common/scope-exit.h: New file.
9968 2019-01-23 Pedro Alves <palves@redhat.com>
9970 * common/preprocessor.h (ESC): Rename to ...
9971 (ESC_PARENS): ... this.
9972 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
9973 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
9975 2019-01-23 Tom Tromey <tom@tromey.com>
9977 * language.h (class scoped_switch_to_sym_language_if_auto):
9978 Initialize m_lang in both cases.
9980 2019-01-23 Alan Hayward <alan.hayward@arm.com>
9982 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
9985 2019-01-22 Tom Tromey <tom@tromey.com>
9987 * corelow.c: Do not include sys/file.h.
9989 2019-01-22 Tom Tromey <tom@tromey.com>
9991 * tui/tui-wingeneral.h: Include gdb_curses.h.
9993 2019-01-22 Tom Tromey <tom@tromey.com>
9995 * source-cache.h (class source_cache) <get_source_lines,
9996 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
9998 2019-01-22 Tom Tromey <tom@tromey.com>
10000 * remote-fileio.h (struct remote_target): Declare.
10002 2019-01-22 Tom Tromey <tom@tromey.com>
10004 * python/py-arch.c: Do not include py-ref.h.
10005 * python/py-bpevent.c: Do not include py-ref.h.
10006 * python/py-cmd.c: Do not include py-ref.h.
10007 * python/py-continueevent.c: Do not include py-ref.h.
10008 * python/py-event.h: Do not include py-ref.h.
10009 * python/py-evtregistry.c: Do not include py-ref.h.
10010 * python/py-finishbreakpoint.c: Do not include py-ref.h.
10011 * python/py-frame.c: Do not include py-ref.h.
10012 * python/py-framefilter.c: Do not include py-ref.h.
10013 * python/py-function.c: Do not include py-ref.h.
10014 * python/py-infevents.c: Do not include py-ref.h.
10015 * python/py-linetable.c: Do not include py-ref.h.
10016 * python/py-objfile.c: Do not include py-ref.h.
10017 * python/py-param.c: Do not include py-ref.h.
10018 * python/py-prettyprint.c: Do not include py-ref.h.
10019 * python/py-progspace.c: Do not include py-ref.h.
10020 * python/py-symbol.c: Do not include py-ref.h.
10021 * python/py-symtab.c: Do not include py-ref.h.
10022 * python/py-type.c: Do not include py-ref.h.
10023 * python/py-unwind.c: Do not include py-ref.h.
10024 * python/py-utils.c: Do not include py-ref.h.
10025 * python/py-value.c: Do not include py-ref.h.
10026 * python/py-varobj.c: Do not include py-ref.h.
10027 * python/py-xmethods.c: Do not include py-ref.h.
10028 * python/python.c: Do not include py-ref.h.
10029 * varobj.c: Do not include py-ref.h.
10031 2019-01-22 Tom Tromey <tom@tromey.com>
10033 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
10034 keyword for bcache.
10036 2019-01-22 Tom Tromey <tom@tromey.com>
10038 * compile/compile-cplus-types.c: Remove a comment by #include.
10040 2019-01-22 Tom Tromey <tom@tromey.com>
10042 * compile/gcc-c-plugin.h: Include compile-internal.h.
10044 2019-01-22 Tom Tromey <tom@tromey.com>
10046 * stabsread.c (EXTERN): Do not define.
10047 (symnum, next_symbol_text_func, processing_gcc_compilation)
10048 (within_function, global_sym_chain, global_stabs)
10049 (previous_stab_code, this_object_header_files)
10050 (n_this_object_header_files)
10051 (n_allocated_this_object_header_files): Define.
10052 * stabsread.h (EXTERN): Never define. Use "extern".
10054 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10056 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
10059 2019-01-21 Tom Tromey <tom@tromey.com>
10061 * ui-out.c: Fix includes.
10062 * tui/tui-source.c: Fix includes.
10063 * target.c: Fix includes.
10064 * remote.c: Fix includes.
10065 * regcache.c: Fix includes.
10066 * python/py-block.c: Fix includes.
10067 * printcmd.c: Fix includes.
10068 * or1k-tdep.c: Fix includes.
10069 * mi/mi-main.c: Fix includes.
10070 * m32r-tdep.c: Fix includes.
10071 * csky-tdep.c: Fix includes.
10072 * compile/compile-cplus-types.c: Fix includes.
10073 * cli/cli-interp.c: Fix includes.
10075 2019-01-21 Alan Hayward <alan.hayward@arm.com>
10077 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
10080 2019-01-16 Tom Tromey <tom@tromey.com>
10082 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
10084 (struct objfile) <msymbols_range>: Move from top level.
10085 <msymbols>: New method.
10086 (class objfile_msymbols): Remove.
10087 * symtab.c (default_collect_symbol_completion_matches_break_on):
10089 * symmisc.c (dump_msymbols): Update.
10090 * stabsread.c (scan_file_globals): Update.
10091 * objc-lang.c (info_selectors_command, info_classes_command)
10092 (find_methods): Update.
10093 * minsyms.c (find_solib_trampoline_target): Update.
10094 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
10095 * coffread.c (coff_symfile_read): Update.
10096 * ada-lang.c (ada_lookup_simple_minsym)
10097 (ada_collect_symbol_completion_matches): Update.
10099 2019-01-16 Tom Tromey <tom@tromey.com>
10101 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
10102 type. Remove no-argument constructor.
10103 <iterator::operator++>: Simplify.
10105 <end>: Use minimal_symbol_count.
10107 2019-01-16 Tom Tromey <tom@tromey.com>
10109 * objfiles.h (struct objfile) <psymtabs>: New method.
10110 (class objfile_psymtabs): Remove.
10111 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
10113 <range>: New method.
10114 (require_partial_symbols): Change return type.
10115 * psymtab.c (require_partial_symbols)
10116 (psym_expand_symtabs_matching): Update.
10117 * mdebugread.c (parse_partial_symbols): Update.
10118 * dbxread.c (dbx_end_psymtab): Update.
10120 2019-01-15 Tom Tromey <tom@tromey.com>
10122 * symtab.c (lookup_objfile_from_block)
10123 (lookup_symbol_in_objfile_symtabs)
10124 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
10125 (find_line_symtab, info_sources_command)
10126 (default_collect_symbol_completion_matches_break_on)
10127 (make_source_files_completion_list): Update.
10128 * symmisc.c (print_objfile_statistics, dump_objfile)
10129 (maintenance_print_symbols, maintenance_info_symtabs)
10130 (maintenance_check_symtabs, maintenance_info_line_tables):
10132 * source.c (select_source_symtab)
10133 (forget_cached_source_info_for_objfile): Update.
10134 * objfiles.h (class objfile_compunits): Remove.
10135 (struct objfile) <compunits_range>: New typedef.
10136 (compunits): New method.
10137 * objfiles.c (objfile_relocate1): Update.
10138 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
10139 * maint.c (count_symtabs_and_blocks): Update.
10140 * linespec.c (iterate_over_all_matching_symtabs): Update.
10141 * cp-support.c (add_symbol_overload_list_qualified): Update.
10142 * coffread.c (coff_symtab_read): Update.
10143 * ada-lang.c (add_nonlocal_symbols)
10144 (ada_collect_symbol_completion_matches)
10145 (ada_add_global_exceptions): Update.
10147 2019-01-15 Tom Tromey <tom@tromey.com>
10149 * progspace.h (program_space) <objfiles_safe_range>: New
10151 <objfiles_safe>: New method.
10152 * objfiles.h (class all_objfiles_safe): Remove.
10153 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
10154 * jit.c (jit_inferior_exit_hook): Update.
10156 2019-01-17 Tom Tromey <tom@tromey.com>
10158 * progspace.h (program_space) <objfiles_range>: New typedef.
10159 <objfiles>: New method.
10160 <objfiles_head>: Rename from objfiles.
10161 (object_files): Update.
10162 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
10163 * guile/scm-pretty-print.c
10164 (ppscm_find_pretty_printer_from_objfiles): Update.
10165 * guile/scm-objfile.c (gdbscm_objfiles): Update.
10166 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
10168 * python/py-progspace.c (pspy_get_objfiles): Update.
10169 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
10171 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
10172 (objfpy_lookup_objfile_by_build_id): Update.
10173 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
10174 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
10176 * symtab.c (iterate_over_symtabs, matching_obj_sections)
10177 (expand_symtab_containing_pc, lookup_objfile_from_block)
10178 (lookup_static_symbol, basic_lookup_transparent_type)
10179 (find_pc_sect_compunit_symtab, find_symbol_at_address)
10180 (find_line_symtab, info_sources_command)
10181 (default_collect_symbol_completion_matches_break_on)
10182 (make_source_files_completion_list, find_main_name): Update.
10183 * symmisc.c (print_symbol_bcache_statistics)
10184 (print_objfile_statistics, maintenance_print_symbols)
10185 (maintenance_print_msymbols, maintenance_print_objfiles)
10186 (maintenance_info_symtabs, maintenance_check_symtabs)
10187 (maintenance_expand_symtabs, maintenance_info_line_tables):
10189 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
10190 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
10191 (map_overlay_command, unmap_overlay_command)
10192 (simple_overlay_update, expand_symtabs_matching)
10193 (map_symbol_filenames): Update.
10194 * symfile-debug.c (set_debug_symfile): Update.
10195 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
10197 * source.c (select_source_symtab, forget_cached_source_info):
10199 * solib.c (solib_read_symbols): Update.
10200 * solib-spu.c (append_ocl_sos): Update.
10201 * psymtab.c (maintenance_print_psymbols)
10202 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
10203 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
10204 * printcmd.c (info_symbol_command): Update.
10205 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
10207 * objfiles.h (class all_objfiles): Remove.
10208 * objfiles.c (have_partial_symbols, have_full_symbols)
10209 (have_minimal_symbols, qsort_cmp, update_section_map)
10210 (shared_objfile_contains_address_p)
10211 (default_iterate_over_objfiles_in_search_order): Update.
10212 * objc-lang.c (info_selectors_command, info_classes_command)
10213 (find_methods): Update.
10214 * minsyms.c (find_solib_trampoline_target): Update.
10215 * maint.c (maintenance_info_sections)
10216 (maintenance_translate_address, count_symtabs_and_blocks):
10218 * main.c (captured_main_1): Update.
10219 * linux-thread-db.c (try_thread_db_load_from_pdir)
10220 (has_libpthread): Update.
10221 * linespec.c (iterate_over_all_matching_symtabs)
10222 (search_minsyms_for_name): Update.
10223 * jit.c (jit_find_objf_with_entry_addr): Update.
10224 * hppa-tdep.c (find_unwind_entry)
10225 (hppa_lookup_stub_minimal_symbol): Update.
10226 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
10228 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
10229 (elf_gnu_ifunc_resolve_by_got): Update.
10230 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
10231 * dwarf-index-write.c (save_gdb_index_command): Update.
10232 * cp-support.c (add_symbol_overload_list_qualified): Update.
10233 * breakpoint.c (create_overlay_event_breakpoint)
10234 (create_longjmp_master_breakpoint)
10235 (create_std_terminate_master_breakpoint)
10236 (create_exception_master_breakpoint): Update.
10237 * blockframe.c (find_pc_partial_function): Update.
10238 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
10239 (ada_collect_symbol_completion_matches)
10240 (ada_add_global_exceptions): Update.
10242 2019-01-17 Tom Tromey <tom@tromey.com>
10244 * solib-target.c (lm_info_target_p): Remove typedef. Don't
10246 (solib_target_parse_libraries): Change return type.
10247 (library_list_start_segment, library_list_start_section)
10248 (library_list_end_library, library_list_start_library); Update.
10249 (solib_target_free_library_list): Remove.
10250 (solib_target_parse_libraries): Remove cleanup. Change return
10252 (solib_target_current_sos): Update.
10254 2019-01-17 Tom Tromey <tromey@bapiya>
10256 * valprint.c: Replace "the the" with "the".
10257 * symtab.c: Replace "the the" with "the".
10258 * solib.c: Replace "the the" with "the".
10259 * solib-dsbt.c: Replace "the the" with "the".
10260 * linespec.c: Replace "the the" with "the".
10261 * dwarf2loc.h: Replace "the the" with "the".
10262 * amd64-windows-tdep.c: Replace "the the" with "the".
10263 * aarch64-tdep.c: Replace "the the" with "the".
10265 2019-01-16 Keith Seitz <keiths@redhat.com>
10268 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
10269 <builder>: Rename to ..
10270 <m_builder>: ... this and make private.
10271 (dwarf2_cu::get_builder): New method. Change all users of
10272 `builder' to use this method.
10273 (dwarf2_start_symtab): Move to ...
10274 (dwarf2_cu::start_symtab): ... here. Update all callers
10275 (setup_type_unit_groups): Move to ...
10276 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
10278 (dwarf2_cu::reset_builder): New method.
10279 (process_full_compunit, process_full_type_unit): Use
10280 dwarf2_cu::reset_builder.
10281 (follow_die_offset): Record the ancestor CU if it is different
10282 from the followed DIE's CU.
10283 (follow_die_sig_1): Likewise.
10285 2019-01-15 Tom Tromey <tom@tromey.com>
10287 * remote.c (class remote_state) <buf>: Now a char_vector.
10288 <buf_size>: Remove.
10289 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
10291 (remote_target::getpkt_or_notif_sane_1)
10292 (remote_target::getpkt_sane)
10293 (remote_target::getpkt_or_notif_sane): Likewise.
10294 (class remote_target) <putpkt>: New overload.
10295 (remote_target::read_frame): Change type of "buf_p". Remove
10296 sizeof_p parameter.
10297 (packet_ok): New overload.
10298 (packet_check_result): New overload.
10301 2019-01-14 Tom Tromey <tom@tromey.com>
10303 * remote-notif.c (handle_notification, remote_notif_ack)
10304 (remote_notif_parse): Make "buf" const.
10305 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
10307 (remote_notif_parse, remote_notif_ack, handle_notification):
10309 * remote.c (remote_notif_stop_parse): Make "buf" const.
10310 (remote_target::remote_parse_stop_reply): Make "buf" const.
10311 (remote_notif_stop_ack): Make "buf" const.
10313 2019-01-14 Tom Tromey <tom@tromey.com>
10315 * remote.c (remote_console_output): Make parameter const.
10317 2019-01-14 Tom Tromey <tom@tromey.com>
10319 * target-debug.h (target_debug_print_signals): Constify.
10320 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
10321 * procfs.c (procfs_target::pass_signals): Update.
10322 * linux-nat.c (linux_nat_target::pass_signals): Update.
10323 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
10324 * target-delegates.c: Rebuild.
10325 * remote.c (remote_target::program_signals): Update.
10326 (remote_target::pass_signals): Update.
10327 * target.c (target_pass_signals): Constify argument.
10328 (target_program_signals): Likewise.
10329 * target.h (struct target_ops) <pass_signals, program_signals>:
10331 (target_pass_signals, target_program_signals): Constify argument.
10333 2019-01-14 Tom Tromey <tom@tromey.com>
10336 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
10338 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10340 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
10342 * rs6000-tdep.c: Include reggroups.h.
10343 (IS_V_ALIAS_PSEUDOREG): Define.
10344 (rs6000_register_name): Return names for the "vX" aliases.
10345 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
10346 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
10347 aliases. Call default_register_reggroup_p for all other
10349 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
10351 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
10352 Handle "vX" aliases.
10353 (v_alias_pseudo_register_collect): New function.
10354 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
10355 (rs6000_gdbarch_init): Initialize "vX" aliases as
10356 pseudo-registers. Restore registration of
10357 rs6000_pseudo_register_reggroup_p with
10358 set_tdesc_pseudo_register_reggroup_p.
10360 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
10362 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
10363 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
10364 set_gdbarch_num_pseudo_regs.
10366 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10368 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
10369 Remove arg prefixname, add do_set and do_show.
10370 Add member functions set_list and show_list.
10371 * cli/cli-style.c (class cli_style_option): Update accordingly.
10372 (style_set_list): Move to file scope.
10373 (style_show_list): Likewise.
10374 (set_style): Call help_list.
10375 (show_style): Call cmd_show_list.
10376 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
10377 Update to use the new macro.
10379 2019-10-12 Joel Brobecker <brobecker@adacore.com>
10381 * ada-lang.c (_initialize_ada_language): Expand the help text
10382 for the "catch exception" command.
10384 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10386 * symtab.c (matching_obj_sections): Initialize obj,
10387 declare it closer to its usage.
10389 2019-01-10 Tom Tromey <tom@tromey.com>
10391 * thread-iter.h (inf_threads_iterator): Use next_iterator.
10392 (basic_inf_threads_range): Remove.
10393 (inf_threads_range, inf_non_exited_threads_range)
10394 (safe_inf_threads_range): Use next_adapter.
10396 2019-01-10 Keith Seitz <keiths@redhat.com>
10400 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
10401 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
10403 2019-01-10 Keith Seitz <keiths@redhat.com>
10407 * dictionary.c (pending_to_vector): Remove.
10408 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
10409 Remove _1 suffix, replacing functions of the same name. Update
10411 (dict_create_hashed, dict_create_hashed_expandable)
10412 (dict_create_linear, dict_create_linear_expandable, dict_free)
10413 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
10414 Make functions static.
10416 2019-01-10 Keith Seitz <keiths@redhat.com>
10420 * dictionary.h (struct dictionary): Replace declaration with
10422 (dict_create_hashed, dict_create_hashed_expandable)
10423 (dict_create_linear, dict_create_linear_expandable)
10424 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
10425 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
10426 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
10427 taking multidictionary argument.
10428 [ALL_DICT_SYMBOLS]: Update for multidictionary.
10429 * block.h (struct block) <dict>: Change to multidictionary
10430 and rename `multidict'.
10431 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
10432 symmisc.c: Update all dictionary references to multidictionary.
10434 2019-01-10 Keith Seitz <keiths@redhat.com>
10438 * dictionary.c: Include unordered_map.
10439 (pending_to_vector): New function.
10440 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
10441 Rewrite the non-"_1" functions to take vector instead
10443 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
10444 "new" _1 versions of the same name.
10445 (multidictionary): Define.
10446 (std::hash<enum language): New definition.
10447 (collate_pending_symbols_by_language, mdict_create_hashed)
10448 (mdict_create_hashed_expandable, mdict_create_linear)
10449 (mdict_create_linear_expandable, mdict_free)
10450 (find_language_dictionary, create_new_language_dictionary)
10451 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
10452 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
10453 (mdict_size, mdict_empty): New functions.
10454 * dictionary.h (mdict_iterator): Define.
10456 2019-01-10 Pedro Alves <palves@redhat.com>
10458 * breakpoint.c (read_uploaded_action)
10459 (create_tracepoint_from_upload): Adjust to use
10460 gdb::unique_xmalloc_ptr.
10461 * ctf.c (ctf_write_uploaded_tp):
10462 (SET_ARRAY_FIELD): Use emplace_back.
10463 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
10464 * tracefile-tfile.c (tfile_write_uploaded_tp):
10465 * tracepoint.c (parse_tracepoint_definition): Adjust to use
10466 gdb::unique_xmalloc_ptr.
10467 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
10468 at_string, cond_string, cmd_strings>: Replace char pointers
10469 with gdb::unique_xmalloc_ptr.
10471 2019-01-10 Pedro Alves <palves@redhat.com>
10473 * solib-target.c (library_list_start_library): Don't xstrdup name.
10475 2019-01-10 Pedro Alves <palves@redhat.com>
10477 * mdebugread.c (parse_partial_symbols): Use
10478 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
10480 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
10482 * linux-fork.c (scoped_switch_fork_info)
10483 <~scoped_switch_fork_info>: Fix incorrect variable name.
10485 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
10487 * linux-fork.c (scoped_switch_fork_info)
10488 <scoped_switch_fork_info>: Make explicit.
10489 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
10491 2019-01-10 Tom Tromey <tom@tromey.com>
10493 * objfiles.h (objfile::reset_psymtabs): Update.
10494 * objfiles.c (objfile::objfile): Update.
10495 * psymtab.h (psymtab_storage::obstack): Update.
10496 (psymtab_storage::m_obstack): Use gdb::optional.
10497 (class psymtab_storage): Update comment. Remove objfile
10499 * psymtab.c (psymtab_storage::psymtab_storage): Update.
10501 2019-01-10 Tom Tromey <tom@tromey.com>
10503 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
10504 <free_psymtabs>: Now private.
10505 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
10506 (allocate_psymtab): Use new method.
10508 2019-01-10 Tom Tromey <tom@tromey.com>
10510 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
10511 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
10512 * mdebugread.c (parse_partial_symbols): Use
10513 allocate_dependencies.
10514 * dwarf2read.c (dwarf2_create_include_psymtab): Use
10515 allocate_dependencies.
10516 (process_psymtab_comp_unit_reader)
10517 (build_type_psymtab_dependencies): Likewise.
10518 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
10520 2019-01-10 Tom Tromey <tom@tromey.com>
10522 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
10523 PSYMBOL_SET_LANGUAGE.
10524 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
10526 2019-01-10 Tom Tromey <tom@tromey.com>
10528 * psymtab.h (psymtab_storage::obstack): New method.
10529 <m_obstack>: Rename from obstack; now private.
10530 * psymtab.c (psymtab_storage): Update.
10531 * dwarf2read.c (create_addrmap_from_index)
10532 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
10535 2019-01-10 Tom Tromey <tom@tromey.com>
10537 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
10538 * objfiles.h (objfile::reset_psymtabs): New method.
10540 2019-01-10 Tom Tromey <tom@tromey.com>
10542 * symmisc.c (print_symbol_bcache_statistics): Update.
10543 (print_objfile_statistics): Update.
10544 * symfile.c (reread_symbols): Update.
10545 * psymtab.h (class psymtab_storage): New.
10546 * psymtab.c (psymtab_storage): New constructor.
10547 (~psymtab_storage): New destructor.
10548 (require_partial_symbols): Update.
10549 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
10550 (find_pc_sect_psymtab, find_pc_sect_psymbol)
10551 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
10552 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
10553 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
10554 (start_psymtab_common, end_psymtab_common)
10555 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
10556 (allocate_psymtab): Update.
10557 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
10559 (dump_psymtab_addrmap, maintenance_print_psymbols)
10560 (maintenance_check_psymtabs): Update.
10561 (class objfile_psymtabs): Move to objfiles.h.
10562 * psympriv.h (discard_psymtab): Now inline.
10563 (psymtab_discarder::psymtab_discarder): Update.
10564 (psymtab_discarder::~psymtab_discarder): Update.
10565 (ALL_OBJFILE_PSYMTABS): Rewrite.
10566 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
10567 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
10569 <partial_symtabs>: New field.
10570 (class objfile_psymtabs): Move from psymtab.h. Update.
10571 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
10573 (objfile::~objfile): Don't destroy psymbol_cache.
10574 * mdebugread.c (parse_partial_symbols): Update.
10575 * dwarf2read.c (create_addrmap_from_index)
10576 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10577 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
10578 (add_partial_subprogram, dwarf2_ranges_read): Update.
10579 * dwarf-index-write.c (write_address_map)
10580 (write_one_signatured_type, recursively_write_psymbols)
10581 (class debug_names, class debug_names, write_psymtabs_to_index):
10584 2019-01-10 Tom Tromey <tom@tromey.com>
10586 * symtab.h (SYMBOL_SET_NAMES): Update.
10587 (symbol_set_names): Update.
10588 (MSYMBOL_SET_NAMES): Update.
10589 * symtab.c (symbol_set_names): Change argument to be an
10590 objfile_per_bfd_storage.
10591 * psymtab.c (add_psymbol_to_bcache): Update.
10592 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
10594 2019-01-10 Tom Tromey <tom@tromey.com>
10596 * symtab.c (create_demangled_names_hash): Change argument to be an
10597 objfile_per_bfd_storage.
10598 (symbol_set_names): Update.
10600 2019-01-10 Tom Tromey <tom@tromey.com>
10602 * xcoffread.c (xcoff_initial_scan): Unconditionally call
10604 * psymtab.c (init_psymbol_list): Do nothing if already called.
10605 * psympriv.h (init_psymbol_list): Add comment.
10606 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
10608 * dbxread.c (dbx_symfile_read): Unconditionally call
10611 2019-01-10 Tom Tromey <tom@tromey.com>
10613 * xcoffread.c (scan_xcoff_symtab): Update.
10614 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
10616 * mdebugread.c (parse_partial_symbols)
10617 (handle_psymbol_enumerators): Update.
10618 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
10619 * dbxread.c (read_dbx_symtab): Update.
10620 * psympriv.h (psymbol_placement): New enum.
10621 (add_psymbol_to_list): Update.
10623 2019-01-10 Tom Tromey <tom@tromey.com>
10625 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
10626 static_psymbols parameters.
10627 (scan_xcoff_symtab): Update.
10628 * psymtab.c (start_psymtab_common): Remove global_psymbols and
10629 static_psymbols parameters.
10630 * psympriv.h (start_psymtab_common): Update.
10631 * mdebugread.c (parse_partial_symbols): Update.
10632 * dwarf2read.c (create_partial_symtab): Update.
10633 * dbxread.c (read_dbx_symtab): Update.
10634 (start_psymtab): Remove global_psymbols and static_psymbols
10637 2019-01-10 Tom Tromey <tom@tromey.com>
10639 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
10640 * psymtab.c (allocate_psymtab): Add comment.
10641 * psympriv.h (allocate_psymtab): Add comment.
10642 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
10644 * dbxread.c (dbx_end_psymtab): Remove some initializations.
10646 2019-01-10 Tom Tromey <tom@tromey.com>
10648 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
10650 * mipsread.c: Include mdebugread.h.
10651 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
10653 * elfread.c: Include mdebugread.h.
10655 2019-01-09 Tom Tromey <tom@tromey.com>
10657 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
10658 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
10659 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
10660 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
10661 (psym_lookup_symbol, psym_find_last_source_symtab)
10662 (psym_forget_cached_source_info, psym_print_stats)
10663 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
10664 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
10665 (psym_map_matching_symbols, psym_expand_symtabs_matching)
10666 (psym_find_compunit_symtab_by_address)
10667 (maintenance_print_psymbols, maintenance_info_psymtabs)
10668 (maintenance_check_psymtabs): Use ranged for.
10669 * psymtab.h (class objfile_psymtabs): New.
10670 (require_partial_symbols): Return objfile_psymtabs.
10671 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
10673 2019-01-09 Tom Tromey <tom@tromey.com>
10675 * symfile.c (overlay_invalidate_all, find_pc_overlay)
10676 (find_pc_mapped_section, list_overlays_command)
10677 (map_overlay_command, unmap_overlay_command)
10678 (simple_overlay_update): Use all_objfiles.
10679 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
10680 * printcmd.c (info_symbol_command): Use all_objfiles.
10681 * objfiles.h (ALL_OBJSECTIONS): Remove.
10682 * maint.c (maintenance_translate_address): Use all_objfiles.
10683 * gcore.c (gcore_create_callback): Use all_objfiles.
10684 (objfile_find_memory_regions): Likewise.
10686 2019-01-09 Tom Tromey <tom@tromey.com>
10688 * symtab.c (find_line_symtab, info_sources_command)
10689 (make_source_files_completion_list): Use objfile_compunits.
10690 * source.c (select_source_symtab): Use objfile_compunits.
10691 * objfiles.h (struct objfile): Update comment.
10692 (ALL_OBJFILES): Remove.
10693 (ALL_FILETABS): Remove.
10694 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
10697 2019-01-09 Tom Tromey <tom@tromey.com>
10699 * symmisc.c (print_objfile_statistics, dump_objfile)
10700 (maintenance_print_symbols): Use compunit_filetabs.
10701 * source.c (forget_cached_source_info_for_objfile): Use
10703 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
10704 (ALL_FILETABS): Use compunit_filetabs.
10705 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
10706 * coffread.c (coff_symtab_read): Use compunit_filetabs.
10708 2019-01-09 Tom Tromey <tom@tromey.com>
10710 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
10711 (compunit_filetabs): New.
10712 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
10714 (info_sources_command, make_source_files_completion_list): Remove
10716 * symmisc.c (print_objfile_statistics, dump_objfile)
10717 (maintenance_print_symbols): Remove declaration.
10718 (maintenance_info_symtabs): Use compunit_filetabs.
10719 (maintenance_info_line_tables): Likewise.
10720 * source.c (select_source_symtab): Change local variable name.
10721 (forget_cached_source_info_for_objfile): Remove declaration.
10722 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
10723 * objfiles.c (objfile_relocate1): Remove declaration.
10724 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
10726 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
10727 * coffread.c (coff_symtab_read): Remove declaration.
10728 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
10731 2019-01-09 Tom Tromey <tom@tromey.com>
10733 * symtab.c (lookup_objfile_from_block)
10734 (find_pc_sect_compunit_symtab, search_symbols)
10735 (default_collect_symbol_completion_matches_break_on): Use
10737 * objfiles.h (ALL_COMPUNITS): Remove.
10738 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
10739 * cp-support.c (add_symbol_overload_list_qualified): Use
10741 * ada-lang.c (ada_collect_symbol_completion_matches)
10742 (ada_add_global_exceptions): Use objfile_compunits.
10744 2019-01-09 Tom Tromey <tom@tromey.com>
10746 * source.c (select_source_symtab)
10747 (forget_cached_source_info_for_objfile): Remove declaration.
10748 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
10750 * maint.c (count_symtabs_and_blocks): Remove declaration.
10751 * cp-support.c (add_symbol_overload_list_qualified): Remove
10753 * coffread.c (coff_symtab_read): Remove declaration.
10754 * symtab.c (lookup_symbol_in_objfile_symtabs)
10755 (basic_lookup_transparent_type_1): Use objfile_compunits.
10756 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
10757 (info_sources_command, search_symbols)
10758 (default_collect_symbol_completion_matches_break_on)
10759 (make_source_files_completion_list): Remove declaration.
10760 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
10761 (ada_collect_symbol_completion_matches)
10762 (ada_add_global_exceptions): Remove declaration.
10763 * linespec.c (iterate_over_all_matching_symtabs): Use
10765 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
10766 (class objfile_compunits): New.
10767 (ALL_COMPUNITS): Use objfile_compunits.
10768 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
10769 (maintenance_check_symtabs, maintenance_info_line_tables): Use
10771 * objfiles.c (objfile_relocate1): Use objfile_compunits.
10773 2019-01-09 Tom Tromey <tom@tromey.com>
10775 * symtab.c (search_symbols)
10776 (default_collect_symbol_completion_matches_break_on): Use
10778 * ada-lang.c (ada_lookup_simple_minsym)
10779 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
10780 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
10781 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
10783 * coffread.c (coff_symfile_read): Use objfile_msymbols.
10784 * symmisc.c (dump_msymbols): Use objfile_msymbols.
10785 * objc-lang.c (find_methods): Use objfile_msymbols.
10786 (info_selectors_command, info_classes_command): Likewise.
10787 * stabsread.c (scan_file_globals): Use objfile_msymbols.
10788 * objfiles.h (class objfile_msymbols): New.
10789 (ALL_OBJFILE_MSYMBOLS): Remove.
10790 (ALL_MSYMBOLS): Remove.
10792 2019-01-09 Tom Tromey <tom@tromey.com>
10794 * common/next-iterator.h (next_adapter): Add Iterator template
10796 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
10797 (class all_objfiles_safe): New.
10798 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
10799 * objfiles.c (put_objfile_before): Update comment.
10800 (add_separate_debug_objfile): Likewise.
10801 (free_all_objfiles): Use all_objfiles_safe.
10802 (objfile_purge_solibs): Likewise.
10804 2019-01-09 Tom Tromey <tom@tromey.com>
10806 * symtab.c (iterate_over_symtabs, matching_obj_sections)
10807 (expand_symtab_containing_pc, lookup_static_symbol)
10808 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
10809 (find_symbol_at_address, find_line_symtab, find_main_name): Use
10811 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
10812 * breakpoint.c (create_overlay_event_breakpoint)
10813 (create_longjmp_master_breakpoint)
10814 (create_std_terminate_master_breakpoint)
10815 (create_exception_master_breakpoint): Use all_objfiles.
10816 * linux-thread-db.c (try_thread_db_load_from_pdir)
10817 (has_libpthread): Use all_objfiles.
10818 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
10819 * linespec.c (iterate_over_all_matching_symtabs)
10820 (search_minsyms_for_name): Use all_objfiles.
10821 * maint.c (maintenance_info_sections): Use all_objfiles.
10822 * main.c (captured_main_1): Use all_objfiles.
10823 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
10824 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
10825 * guile/scm-pretty-print.c
10826 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
10827 * solib-spu.c (append_ocl_sos): Use all_objfiles.
10828 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
10829 (maintenance_print_msymbols): Use all_objfiles.
10830 * source.c (select_source_symtab): Use all_objfiles.
10831 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
10832 * symfile.c (remove_symbol_file_command)
10833 (expand_symtabs_matching, map_symbol_filenames): Use
10835 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
10837 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
10838 * objc-lang.c (find_methods): Use all_objfiles.
10839 * objfiles.c (have_partial_symbols, have_full_symbols)
10840 (have_minimal_symbols, qsort_cmp)
10841 (default_iterate_over_objfiles_in_search_order): Use
10843 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
10844 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
10845 (maintenance_check_psymtabs): Use all_objfiles.
10846 (ALL_PSYMTABS): Remove.
10847 * compile/compile-object-run.c (do_module_cleanup): Use
10849 * blockframe.c (find_pc_partial_function): Use all_objfiles.
10850 * cp-support.c (add_symbol_overload_list_qualified): Use
10852 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
10854 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
10855 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
10857 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
10858 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
10859 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
10861 * solib.c (solib_read_symbols): Use all_objfiles
10863 2019-01-09 Tom Tromey <tom@tromey.com>
10865 * probe.c (parse_probes_in_pspace): Use all_objfiles.
10866 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
10868 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
10869 * symmisc.c (print_symbol_bcache_statistics)
10870 (print_objfile_statistics, maintenance_print_objfiles)
10871 (maintenance_info_symtabs, maintenance_check_symtabs)
10872 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
10874 * source.c (forget_cached_source_info): Use all_objfiles.
10875 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
10876 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
10877 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
10878 * objfiles.c (update_section_map): Use all_objfiles.
10879 (shared_objfile_contains_address_p): Likewise.
10880 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
10881 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
10883 2019-01-09 Tom Tromey <tom@tromey.com>
10885 * common/next-iterator.h: New file.
10886 * objfiles.h (class all_objfiles): New.
10887 (struct objfile_iterator): New.
10889 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10891 * NEWS: Move the description of the changed "frame", "select-frame",
10892 and "info frame" commands to the Changed commands section.
10894 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
10896 * gdbtypes.c (check_stub_method_group): Remove handling of old
10898 * linespec.c (find_methods): Likewise.
10899 * stabsread.c (read_member_functions): Likewise.
10900 * valops.c (search_struct_method): Likewise.
10901 (value_struct_elt_for_reference): Likewise.
10902 * NEWS: Mention this change.
10904 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10906 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
10907 print_source_lines.
10908 * source.c (print_source_lines_base): Update line number check.
10909 (print_source_lines): New function.
10910 (source_lines_range::source_lines_range): New function.
10911 * source.h (class source_lines_range): New class.
10912 (print_source_lines): New declaration.
10914 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10916 * linespec.c (linespec_state_destructor): Free self->canonical_names.
10918 2019-01-08 Tom Tromey <tom@tromey.com>
10919 Simon Marchi <simon.marchi@ericsson.com>
10922 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
10923 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
10924 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
10925 * f-exp.y (DOLLAR_VARIABLE): Likewise.
10926 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
10927 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
10929 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
10931 * source.c (select_source_symtab): Move header comment to
10932 declaration in source.h.
10933 (forget_cached_source_info_for_objfile): Likewise.
10934 (forget_cached_source_info): Likewise.
10935 (identify_source_line): Likewise.
10936 * source.h (identify_source_line): Move declaration from symtab.h
10937 and add comment from source.c
10938 (print_source_lines): Likewise.
10939 (forget_cached_source_info_for_objfile): Likewise.
10940 (forget_cached_source_info): Likewise.
10941 (select_source_symtab): Likewise.
10942 (enum print_source_lines_flag): Move definition from symtab.h.
10943 * symtab.h (identify_source_line): Move declaration to source.h.
10944 (print_source_lines): Likewise.
10945 (forget_cached_source_info_for_objfile): Likewise.
10946 (forget_cached_source_info): Likewise.
10947 (select_source_symtab): Likewise.
10948 (enum print_source_lines_flag): Move definition to source.h.
10949 * tui/tui-hooks.c: Add 'source.h' include.
10951 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
10953 * source.c (print_source_lines_base): Handle requests to print
10954 reverse line number sequences, and guard against empty lines
10957 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
10959 * source.c (print_source_lines_base): Fix skip of '\r' if next
10962 2019-01-06 Tom Tromey <tom@tromey.com>
10964 * c-exp.y (struct c_parse_state) <macro_original_text,
10965 expansion_obstack>: New member.
10966 (macro_original_text, expansion_obstack): Remove globals.
10967 (scan_macro_expansion, scanning_macro_expansion)
10968 (finished_macro_expansion): Update.
10969 (scan_macro_cleanup): Remove.
10970 (yylex, c_parse): Update.
10972 2019-01-06 Tom Tromey <tom@tromey.com>
10974 * c-exp.y (struct c_parse_state) <strings>: New member.
10975 (operator_stoken): Update.
10977 2019-01-06 Tom Tromey <tom@tromey.com>
10979 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
10980 (union type_stack_elt) <typelist_val>: Now a pointer to
10982 (type_stack_cleanup): Don't declare.
10983 (push_typelist): Update.
10984 * parse.c (pop_typelist): Return a std::vector.
10985 (push_typelist): Take a std::vector.
10986 (follow_types): Update. Do not free args.
10987 (type_stack_cleanup): Remove.
10988 * c-exp.y (struct c_parse_state): New.
10989 (cpstate): New global.
10990 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
10991 (nonempty_typelist): Update.
10992 (func_mod): Create a new vector.
10993 (c_parse): Create a c_parse_state.
10994 (check_parameter_typelist): Do not delete params.
10995 (function_method): Update. Do not delete type_list.
10997 2019-01-06 Tom Tromey <tom@tromey.com>
11000 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
11002 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
11003 (print_return_value): Likewise.
11005 2019-01-05 Tom Tromey <tom@tromey.com>
11007 * contrib/cleanup_check.py: Remove.
11008 * contrib/gcc-with-excheck: Remove.
11009 * contrib/exsummary.py: Remove.
11010 * contrib/excheck.py: Remove.
11012 2019-01-05 Joel Brobecker <brobecker@adacore.com>
11014 * thread.c (delete_thread_1): Add gdb_assert that THR is not
11015 NULL. Initialize tpprev to NULL instead of assigning it
11016 to NULL on the next statement.
11017 * windows-nat.c (windows_delete_thread): Remove check for
11018 main_thread_id before printing thread exit notifications.
11019 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
11020 Remove thread ID check against main_thread_id.
11021 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
11022 windows_delete_thread.
11023 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
11025 2019-01-04 Tom Tromey <tom@tromey.com>
11027 * compile/compile.c (_initialize_compile): Use upper case for
11028 metasyntactic variables.
11029 * symmisc.c (_initialize_symmisc): Use upper case for
11030 metasyntactic variables.
11031 * psymtab.c (_initialize_psymtab): Use upper case for
11032 metasyntactic variables.
11033 * demangle.c (demangle_command): Use upper case for metasyntactic
11035 (_initialize_demangler): Likewise.
11036 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
11039 2019-01-03 Tom Tromey <tom@tromey.com>
11041 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
11043 2019-01-03 Tom Tromey <tom@tromey.com>
11045 * python/py-symtab.c (salpy_str): Update.
11046 (struct salpy_sal_object) <symtab>: Now a PyObject.
11047 (salpy_dealloc): Update.
11048 (del_objfile_sal): Use gdbpy_ref.
11050 2019-01-03 Tom Tromey <tom@tromey.com>
11052 * python/py-type.c (convert_field): Use new_reference. Return
11054 (make_fielditem): Return gdbpy_ref.
11055 (typy_fields): Update.
11056 (typy_getitem): Update.
11057 (field_name): Return gdbpy_ref. Use new_reference.
11058 (typy_iterator_iternext): Update.
11060 2019-01-03 Tom Tromey <tom@tromey.com>
11062 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
11064 2019-01-03 Tom Tromey <tom@tromey.com>
11066 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
11067 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
11068 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
11069 (pspy_set_frame_filters, pspy_set_frame_unwinders)
11070 (pspy_set_type_printers): Likewise.
11071 * python/py-function.c (fnpy_init): Use gdbpy_ref.
11072 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
11073 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
11074 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
11075 (objfpy_set_type_printers): Likewise.
11077 2019-01-03 Tom Tromey <tom@tromey.com>
11079 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
11080 (gdbpy_print_stack): Use gdbpy_err_fetch.
11081 * python/python-internal.h (class gdbpy_err_fetch): New class.
11082 (class gdbpy_enter) <m_error_type, m_error_value,
11083 m_error_traceback>: Remove.
11084 <m_error>: New member.
11085 (gdbpy_exception_to_string): Don't declare.
11086 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
11087 * python/py-value.c (convert_value_from_python): Use
11089 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
11090 gdbpy_exception_to_string.
11091 (gdbpy_handle_exception): Use gdbpy_err_fetch.
11092 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
11095 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11097 * linux-nat.c (delete_lwp_cleanup): Delete.
11098 (struct lwp_deleter): New struct.
11099 (lwp_info_up): New typedef.
11100 (linux_nat_target::follow_fork): Delete cleanup, and make use of
11103 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11105 * linux-fork.c (class scoped_switch_fork_info): New class.
11106 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
11108 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11110 * valops.c (find_overload_match): Remove use of null_cleanup, and
11111 calls to do_cleanups.
11113 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11115 * compile/compile-cplus-types.c
11116 (compile_cplus_instance::decl_name): Handle changes to
11118 * cp-support.c (cp_func_name): Update header comment, update
11120 * cp-support.h (cp_func_name): Update return type in declaration.
11121 * valops.c (find_overload_match): Move temp_func local to top
11122 level of function and change its type. Use temp_func to hold and
11123 delete temporary string obtained from cp_func_name.
11125 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11127 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
11128 gdb::char_vector, remove cleanup, and update uses of `msg`.
11130 2019-01-03 Jim Wilson <jimw@sifive.com>
11132 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
11134 2019-01-02 Tom Tromey <tom@tromey.com>
11136 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
11137 (tdesc_parse_xml): Remove cleanups.
11138 * target-descriptions.h (make_cleanup_free_target_description):
11140 (target_desc_deleter): New struct.
11141 (target_desc_up): New typedef.
11142 * target-descriptions.c (target_desc_deleter::operator()): Rename
11143 from free_target_description.
11144 (make_cleanup_free_target_description): Remove.
11146 2019-01-02 Tom Tromey <tom@tromey.com>
11148 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
11149 constructor, destructor.
11150 (linespec_parser): Remove typedef.
11151 (~linespec_parser): Rename from linespec_parser_delete.
11152 (linespec_lex_to_end, linespec_complete_label)
11153 (linespec_complete): Update.
11154 (decode_line_full): Remove cleanups.
11155 (decode_line_1): Update.
11157 2019-01-02 Tom Tromey <tom@tromey.com>
11159 * python/python-internal.h (inferior_to_inferior_object): Change
11161 * python/py-exitedevent.c (create_exited_event_object): Update.
11162 * python/py-inferior.c (inferior_to_inferior_object): Return
11164 (python_new_inferior, python_inferior_deleted)
11165 (thread_to_thread_object, delete_thread_object)
11166 (build_inferior_list, gdbpy_selected_inferior): Update.
11167 * python/py-infthread.c (create_thread_object): Update. Also fail
11168 if inferior_to_inferior_object fails.
11170 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
11172 * inferior.h (class inferior) <displaced_step_state>: New field.
11173 * infrun.h (struct displaced_step_state): Move here from
11174 infrun.c. Initialize fields, add constructor.
11175 <inf>: Remove field.
11176 <reset>: New method.
11177 * infrun.c (struct displaced_step_inferior_state): Move to
11179 (displaced_step_inferior_states): Remove.
11180 (get_displaced_stepping_state): Adust.
11181 (displaced_step_in_progress_any_inferior): Adjust.
11182 (displaced_step_in_progress_thread): Adjust.
11183 (displaced_step_in_progress): Adjust.
11184 (add_displaced_stepping_state): Remove.
11185 (get_displaced_step_closure_by_addr): Adjust.
11186 (remove_displaced_stepping_state): Remove.
11187 (infrun_inferior_exit): Call displaced_step_state.reset.
11188 (use_displaced_stepping): Don't check for NULL.
11189 (displaced_step_prepare_throw): Call
11190 get_displaced_stepping_state.
11191 (displaced_step_fixup): Don't check for NULL.
11192 (prepare_for_detach): Don't check for NULL.
11194 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11196 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
11197 in case of call that did not complete.
11199 2019-01-02 Andrey Utkin <autkin@undo.io>
11201 * symfile.c (find_separate_debug_file): Fix search of debug files for
11204 2019-01-02 Tom Tromey <tom@tromey.com>
11206 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
11208 * python/py-frame.c (frapy_older): Remove cast.
11209 (frapy_newer): Likewise.
11210 * python/py-breakpoint.c (local_setattro): Remove cast.
11211 * python/py-arch.c (archpy_name): Remove local variable.
11212 * python/py-type.c (gdbpy_lookup_type): Remove cast.
11214 2019-01-02 Joel Brobecker <brobecker@adacore.com>
11216 * unittests/basic_string_view/element_access/char/empty.cc:
11217 Fix year range in copyright header.
11219 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
11221 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
11223 <operator==>: Update with for removed field.
11225 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
11226 <isa_features>: ...this.
11227 <abi_features>: New field.
11228 (riscv_isa_flen): Update comment.
11229 (riscv_abi_xlen): New declaration.
11230 (riscv_abi_flen): New declaration.
11231 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
11233 (riscv_abi_xlen): New function.
11234 (riscv_isa_flen): Update to get answer from isa_features.
11235 (riscv_abi_flen): New function.
11236 (riscv_has_fp_abi): Update to get answer from abi_features.
11237 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
11239 (riscv_call_info) <xlen, flen>: Update comment.
11240 (riscv_call_arg_struct): Remove invalid assertions
11241 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
11243 (riscv_gdbarch_init): Gather isa features and abi features
11244 separately, ensure both match on the gdbarch when reusing an old
11245 gdbarch. Relax an error check to allow 32-bit abi float to run on
11246 a target with 64-bit float hardware.
11248 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11250 * source.c (search_command_helper): Stop reverse search
11251 when line 1 has been searched.
11253 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11255 * record-full.c (record_full_base_target::close): Rewrite
11256 record_full_core_buf_list free logic.
11258 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11260 * break-catch-syscall.c (print_one_catch_syscall): xfree
11263 2019-01-01 Joel Brobecker <brobecker@adacore.com>
11265 * top.c (print_gdb_version): Update Copyright year in version
11268 2019-01-01 Joel Brobecker <brobecker@adacore.com>
11270 Update copyright year range in all GDB files.
11272 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
11274 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
11276 For older changes see ChangeLog-2018.
11282 version-control: never