1 2019-08-14 Tom Tromey <tromey@adacore.com>
3 * darwin-nat.c: Include gdbarch.h.
4 * darwin-nat-info.c: Include gdbarch.h.
6 2019-08-13 Tom Tromey <tom@tromey.com>
8 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
10 * tui/tui-data.c (tui_initialize_static_data): Update.
12 2019-08-13 Tom Tromey <tom@tromey.com>
14 * tui/tui-winsource.h (struct tui_exec_info_window)
15 <~tui_exec_info_window, maybe_allocate_content, get_content,
17 (struct tui_source_window_base) <set_exec_info_content,
18 show_exec_info_content>: Don't declare.
20 (tui_exec_info_window::maybe_allocate_content): Remove.
21 (tui_source_window_base::update_exec_info): Rename from
22 set_exec_info_content.
23 (tui_source_window_base::show_exec_info_content)
24 (tui_source_window_base::update_exec_info): Remove.
26 2019-08-13 Tom Tromey <tom@tromey.com>
28 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
30 * tui/tui-winsource.c (tui_update_source_window_as_is)
31 (tui_update_source_windows_with_addr, tui_erase_source_content):
33 (tui_clear_exec_info_content): Remove.
35 2019-08-13 Tom Tromey <tom@tromey.com>
37 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
39 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
40 call tui_erase_exec_info_content.
41 (tui_clear_exec_info_content): Rename from
42 tui_erase_exec_info_content.
43 (tui_clear_exec_info_content): Delete.
45 2019-08-13 Tom Tromey <tom@tromey.com>
47 * tui/tui-winsource.h (struct tui_source_window_base)
48 <show_exec_info_content>: Declare.
49 (tui_show_exec_info_content): Don't declare.
51 (tui_source_window_base::show_exec_info_content): Rename from
52 tui_show_exec_info_content.
53 (tui_source_window_base::update_exec_info): Update.
55 2019-08-13 Tom Tromey <tom@tromey.com>
57 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
58 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
59 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
60 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
61 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
62 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
65 2019-08-13 Tom Tromey <tom@tromey.com>
67 * tui/tui-winsource.h (struct tui_source_window_base)
68 <update_exec_info>: Declare.
69 (tui_update_exec_info): Don't declare.
70 * tui/tui-winsource.c (tui_update_source_window_as_is)
71 (tui_source_window_base::refresh_all)
72 (tui_update_all_breakpoint_info): Update.
73 (tui_source_window_base::update_exec_info): Rename from
75 * tui/tui-stack.c (tui_show_frame_info): Update.
77 2019-08-13 Tom Tromey <tom@tromey.com>
79 * tui/tui-winsource.h (struct tui_source_window_base)
80 <set_exec_info_content>: Declare.
81 (tui_set_exec_info_content): Don't declare.
83 (tui_source_window_base::set_exec_info_content): Rename from
84 tui_set_exec_info_content.
85 (tui_update_exec_info): Update.
87 2019-08-13 Tom Tromey <tom@tromey.com>
89 * tui/tui-winsource.h (struct tui_source_window_base)
90 <show_source_content>: Declare.
91 (tui_show_source_content): Don't declare.
92 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
93 (tui_source_window_base::show_source_content): Rename from
94 tui_show_source_content.
95 (tui_source_window_base::refresh_all): Update.
96 * tui/tui-layout.c (show_source_disasm_command)
97 (show_source_or_disasm_and_command): Update.
99 2019-08-13 Tom Tromey <tom@tromey.com>
101 * tui/tui-winsource.c (tui_erase_source_content)
102 (tui_show_source_content, tui_source_window_base::refresh_all):
104 * tui/tui-wingeneral.h
105 (tui_check_and_display_highlight_if_needed): Don't declare.
106 * tui/tui-wingeneral.c
107 (tui_win_info::check_and_display_highlight_if_needed): Rename from
108 check_and_display_highlight_if_needed.
109 * tui/tui-win.c (tui_rehighlight_all)
110 (tui_win_info::make_visible_with_new_height): Update.
111 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
112 (tui_data_window::erase_data_content)
113 (tui_data_window::display_all_data): Update.
114 * tui/tui-data.h (struct tui_win_info)
115 <check_and_display_highlight_if_needed>: Declare.
117 2019-08-13 Tom Tromey <tom@tromey.com>
119 * tui/tui-win.c (tui_resize_all): Call
120 tui_delete_invisible_windows.
121 * tui/tui-layout.c (show_layout): Call
122 tui_delete_invisible_windows.
123 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
124 * tui/tui-data.c (tui_delete_invisible_windows): New function.
126 2019-08-13 Tom Tromey <tom@tromey.com>
128 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
129 tui_add_win_to_layout.
131 2019-08-13 Tom Tromey <tom@tromey.com>
133 * tui/tui-layout.h (tui_default_win_height): Don't declare.
134 * tui/tui-layout.c (tui_default_win_height): Now static.
136 2019-08-13 Tom Tromey <tom@tromey.com>
138 * tui/tui-layout.c (show_layout): Unify all layout cases into a
140 (show_source_disasm_command, show_source_or_disasm_and_command):
141 Don't check current layout.
143 2019-08-13 Tom Tromey <tom@tromey.com>
145 * tui/tui-wingeneral.c (make_all_visible): Remove.
146 (tui_make_all_invisible): Simplify.
147 * tui/tui-layout.c (tui_make_all_invisible): Move from
148 tui-wingeneral.c; simplify.
149 (show_layout): Hoist call to tui_make_all_invisible.
150 (show_data): Don't call tui_make_all_invisible.
152 2019-08-13 Tom Tromey <tom@tromey.com>
154 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
155 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
157 2019-08-13 Tom Tromey <tom@tromey.com>
159 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
161 (show_source_disasm_command, show_data)
162 (show_source_or_disasm_and_command): Don't use
163 tui_set_current_layout_to.
164 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
165 * tui/tui-data.c (current_layout, tui_current_layout): Move to
167 (tui_set_current_layout_to): Remove.
169 2019-08-13 Tom Tromey <tom@tromey.com>
171 * tui/tui-layout.c (tui_set_layout): Update.
172 * tui/tui-data.h (struct tui_layout_def): Remove.
173 (tui_layout_def): Don't declare.
174 * tui/tui-data.c (layout_def): Remove.
175 (tui_layout_def): Remove.
177 2019-08-13 Tom Tromey <tom@tromey.com>
179 * tui/tui-winsource.h (struct tui_source_window_base)
180 <clear_detail>: No longer "override".
181 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
182 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
183 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
184 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
186 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
188 2019-08-13 Tom Tromey <tromey@adacore.com>
190 * tracepoint.c: Don't include readline.h or history.h.
192 2019-08-12 Tom Tromey <tom@tromey.com>
194 * configure: Rebuild.
195 * configure.ac: Check for readline 7.
196 * NEWS: Mention readline 7 requirement.
199 2019-08-12 Tom Tromey <tom@tromey.com>
201 * mingw-hdep.c (gdb_select): Remove readline hack.
203 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
205 * blockframe.c (find_pc_partial_function): Set *block to nullptr
206 when the function fails.
208 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
210 * s390-tdep.c (s390_type_align): New function.
211 (s390_gdbarch_init): Set it as type_align gdbarch method.
213 2019-08-09 Tom de Vries <tdevries@suse.de>
216 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
217 pc_low with relocation offset.
219 2019-08-07 Tom Tromey <tromey@adacore.com>
221 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
222 (print_frame_args): Update.
223 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
225 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
226 * frame.h (struct frame_arg): Add initializers.
227 <error>: Now a unique_xmalloc_ptr.
229 2019-08-07 Alan Hayward <alan.hayward@arm.com>
231 * NEWS: Expand the Pointer Authentication entry.
232 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
233 (aarch64_frame_unmask_lr): ... to this.
234 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
235 Call aarch64_frame_unmask_lr.
236 * frame.c (struct frame_info): Add "masked" variable.
237 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
238 (fprint_frame): Check for masked pc.
239 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
241 * python/py-framefilter.c (py_print_frame): Check for masked pc.
242 * stack.c (print_frame): Check for masked pc.
244 2019-08-06 Tom Tromey <tom@tromey.com>
246 * stabsread.c (patch_block_stabs, read_one_struct_field)
247 (read_enum_type): Use obstack_strndup.
248 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
249 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
250 * dwarf2read.c (guess_full_die_structure_name)
251 (anonymous_struct_prefix): Use obstack_strndup.
252 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
253 * c-exp.y (yylex): Use obstack_strndup.
254 * ada-exp.y (write_object_renaming, write_ambiguous_var)
255 (write_var_or_type): Use obstack_strndup.
257 2019-08-06 Tom Tromey <tom@tromey.com>
259 * symfile.c (reread_symbols): Use obstack_strdup.
260 * stabsread.c (read_type): Use obstack_strdup.
261 * gdb_obstack.h (obstack_strdup): New overload.
262 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
263 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
264 (dwarf2_canonicalize_name): Use obstack_strdup.
265 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
266 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
269 2019-08-06 Tom Tromey <tom@tromey.com>
271 * gdb_obstack.h (obstack_strdup): Define.
272 * gdb_obstack.c (obstack_strdup): Don't define.
274 2019-08-06 Tom Tromey <tom@tromey.com>
276 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
278 * typeprint.c (typedef_hash_table::find_global_typedef): Use
280 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
281 * stabsread.c (common_block_start): Use obstack_strdup.
282 * objfiles.c (set_objfile_main_name, objfile): Use
284 * namespace.c (add_using_directive): Use obstack_strdup.
285 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
286 * jit.c (finalize_symtab): Use obstack_strdup.
287 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
288 (guess_partial_die_structure_name, partial_die_info::fixup)
289 (dwarf2_name): Use obstack_strdup.
290 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
292 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
293 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
295 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
297 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
299 * unittests/help-doc-selftests.c: New file.
300 * Makefile.in: Add the new file.
302 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
304 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
305 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
306 the full first line, except when FOR_VALUE_PREFIX. In this case,
307 the trailing '.' is not output, and the first character is uppercased.
308 (print_help_for_command): Update call to print_doc_line.
309 (print_doc_of_command): Likewise.
310 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
311 * cli/cli-option.c (append_indented_doc): Do not append newline.
312 (build_help_option): Append newline after first appended_indented_doc
313 only if a second call is done.
314 (build_help): Append 2 new lines before each option, except the first
316 * compile/compile.c (_initialize_compile): Add new lines after
317 %OPTIONS%, when not at the end of the help.
318 Change help doc or code
319 producing the help doc to respect the invariants.
320 * maint-test-options.c (_initialize_maint_test_options): Likewise.
321 Also removed the new line after 'Options:', as all other commands
322 do not put an empty line between 'Options:' and the first option.
323 * printcmd.c (_initialize_printcmd): Likewise.
324 * stack.c (_initialize_stack): Likewise.
325 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
326 incorrectly telling COMMAND is optional.
327 * ada-lang.c (_initialize_ada_language): Change help doc or code
328 producing the help doc to respect the invariants.
329 * ada-tasks.c (_initialize_ada_tasks): Likewise.
330 * breakpoint.c (_initialize_breakpoint): Likewise.
331 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
332 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
333 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
334 * cli/cli-style.c (cli_style_option::add_setshow_commands,
335 _initialize_cli_style): Likewise.
336 * corelow.c (core_target_info): Likewise.
337 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
338 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
339 * filesystem.c (_initialize_filesystem): Likewise.
340 * frame.c (_initialize_frame): Likewise.
341 * gnu-nat.c (add_task_commands): Likewise.
342 * infcall.c (_initialize_infcall): Likewise.
343 * infcmd.c (_initialize_infcmd): Likewise.
344 * interps.c (_initialize_interpreter): Likewise.
345 * language.c (_initialize_language): Likewise.
346 * linux-fork.c (_initialize_linux_fork): Likewise.
347 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
348 * maint.c (_initialize_maint_cmds): Likewise.
349 * memattr.c (_initialize_mem): Likewise.
350 * printcmd.c (_initialize_printcmd): Likewise.
351 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
353 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
354 * record-btrace.c (_initialize_record_btrace): Likewise.
355 * record-full.c (_initialize_record_full): Likewise.
356 * record.c (_initialize_record): Likewise.
357 * regcache-dump.c (_initialize_regcache_dump): Likewise.
358 * regcache.c (_initialize_regcache): Likewise.
359 * remote.c (add_packet_config_cmd, init_remote_threadtests,
360 _initialize_remote): Likewise.
361 * ser-tcp.c (_initialize_ser_tcp): Likewise.
362 * serial.c (_initialize_serial): Likewise.
363 * skip.c (_initialize_step_skip): Likewise.
364 * source.c (_initialize_source): Likewise.
365 * stack.c (_initialize_stack): Likewise.
366 * symfile.c (_initialize_symfile): Likewise.
367 * symtab.c (_initialize_symtab): Likewise.
368 * target-descriptions.c (_initialize_target_descriptions): Likewise.
369 * top.c (init_main): Likewise.
370 * tracefile-tfile.c (tfile_target_info): Likewise.
371 * tracepoint.c (_initialize_tracepoint): Likewise.
372 * tui/tui-win.c (_initialize_tui_win): Likewise.
373 * utils.c (add_internal_problem_command): Likewise.
374 * valprint.c (value_print_option_defs): Likewise.
376 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
379 * configure.ac: Drop enable-libmcheck support.
380 * configure, config.in: Rebuild.
381 * libmcheck.m4: Remove.
382 * acinclude.m4: Don't include it.
383 * Makefile.in: Don't distribute it.
384 * top.c (print_gdb_configuration): Don't mention it.
386 2019-08-06 Tom Tromey <tom@tromey.com>
388 * utils.c (set_output_style): Sometimes pass stream to
390 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
391 * record-btrace.c (btrace_insn_history): Update.
392 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
394 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
396 <m_uiout>: New field.
398 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
399 Remove "uiout" parameter.
400 (dump_insns): Update.
401 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
402 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
404 2019-08-06 Christian Biesinger <cbiesinger@google.com>
406 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
407 (error_in_psymtab_expansion): Likewise.
408 (lookup_symbol_via_quick_fns): Likewise.
409 (basic_lookup_transparent_type_quick): Likewise.
410 (basic_lookup_transparent_type_1): Likewise.
412 2019-08-06 Tom Tromey <tromey@adacore.com>
414 * source.c (last_source_error): Now bool.
415 (print_source_lines_base): Make "noprint" bool. Only open
416 source file when last_source_visited changes.
418 2019-08-06 Tom Tromey <tromey@adacore.com>
420 * annotate.c (annotate_source_line): Use g_source_cache.
421 * source-cache.c (source_cache::get_plain_source_lines): Change
422 parameters. Populate m_offset_cache.
423 (source_cache::ensure): New method.
424 (source_cache::get_line_charpos): New method.
425 (extract_lines): Move lower. Change parameters.
426 (source_cache::get_source_lines): Move lower.
427 * source-cache.h (class source_cache): Update comment.
428 <get_line_charpos>: New method.
429 <get_source_lines>: Update comment.
430 <clear>: Clear m_offset_cache.
431 <get_plain_source_lines>: Change parameters.
433 <m_offset_cache>: New member.
434 * source.c (forget_cached_source_info_for_objfile): Update.
435 (info_source_command): Use g_source_cache.
436 (find_source_lines, open_source_file_with_line_charpos): Remove.
437 (print_source_lines_base, search_command_helper): Use g_source_cache.
438 * source.h (open_source_file_with_line_charpos): Don't declare.
439 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
440 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
443 2019-08-06 Tom Tromey <tromey@adacore.com>
445 * source-cache.c (source_cache::get_plain_source_lines):
446 Remove "first_line" and "last_line" parameters.
447 (source_cache::get_source_lines): Cache plain text.
448 * source-cache.h (class source_cache)
449 <get_plain_source_lines>: Update.
451 2019-08-06 Tom Tromey <tromey@adacore.com>
453 * source-cache.c (extract_lines): No longer a method.
454 Changed type of parameter. Include final newline.
455 (selftests::extract_lines_test): New function.
456 (_initialize_source_cache): Likewise.
457 * source-cache.h (class source_cache)
458 <extract_lines>: Don't declare.
460 2019-08-06 Tom Tromey <tromey@adacore.com>
462 * breakpoint.c (init_breakpoint_sal): Update.
463 (breakpoint): Update.
464 * breakpoint.h (struct breakpoint) <filter>: Now a
467 2019-08-05 Christian Biesinger <cbiesinger@google.com>
469 * NEWS: Mention dictionary access on blocks.
470 * python/py-block.c (blpy_getitem): New function.
471 (block_object_as_mapping): New struct.
472 (block_object_type): Use new struct for tp_as_mapping field.
474 2019-08-05 Christian Biesinger <cbiesinger@google.com>
476 * objfiles.h (objfile): Add a comment describing partial symbols.
478 2019-08-05 Tom Tromey <tromey@adacore.com>
480 * compile/compile.c (_initialize_compile): Use _(), not N_().
481 * thread.c (_initialize_thread): Use _(), not N_().
482 * stack.c (_initialize_stack): Use _(), not N_().
483 * printcmd.c (_initialize_printcmd): Use _(), not N_().
485 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
487 * dwarf2read.c (struct dw2_symtab_iterator):
488 <want_specific_block>: Remove.
489 <block_index>: Change type to gdb::optional.
490 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
491 change type of BLOCK_INDEX parameter to gdb::optional.
492 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
493 (dw2_lookup_symbol): Don't pass argument for
495 (dw2_expand_symtabs_for_function): Don't pass argument for
496 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
497 (class dw2_debug_names_iterator)
498 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
499 parameter, change BLOCK_INDEX type to gdb::optional.
500 <m_want_specific_block>: Remove.
501 <m_block_index>: Change type to gdb::optional.
502 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
503 gdb::optional. Re-write in function of gdb::optional.
504 (dw2_debug_names_lookup_symbol): Don't pass argument for
506 (dw2_debug_names_expand_symtabs_for_function): Don't pass
507 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
510 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
512 * NEWS: Mention changes to "info sources" command.
514 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
516 * symtab.c (filename_partial_match_opts): New struct type.
517 (struct output_source_filename_data): New members
518 regexp, c_regexp, partial_match.
519 (output_source_filename): Use new members to decide to print file.
520 (info_sources_option_defs): New variable.
521 (make_info_sources_options_def_group, print_info_sources_header,
522 info_sources_command_completer):
524 (info_sources_command): Read new optional arguments.
525 (_initialize_symtab): Update info sources help.
527 2019-08-02 Alexandre Oliva <oliva@adacore.com>
529 * ada-lang.c (exception_support_info_v0): Renamed from...
530 (default_exception_support_info): ... this. Create new
532 (ada_has_this_exception_support): Look up catch_handlers_sym.
533 (ada_exception_support_info_sniffer): Try v0 after default.
535 2019-08-01 Tom Tromey <tromey@adacore.com>
537 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
540 2019-08-01 Christian Biesinger <cbiesinger@google.com>
542 * s12z-tdep.c: Fix include path for s12z-opc.h.
544 2019-08-01 Alan Hayward <alan.hayward@arm.com>
546 * NEWS: Require GNU make 3.82.
548 2019-07-16 Tom Tromey <tom@tromey.com>
550 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
553 2019-07-30 Tom Tromey <tromey@adacore.com>
555 * block.c (contained_in): Remove BLOCK_FUNCTION check.
557 2019-07-30 Kevin Buettner <kevinb@redhat.com>
559 * printcmd.c (print_address_symbolic): Print negative offsets.
560 (build_address_symbolic): Force signed arithmetic when computing
563 2019-07-30 Christian Biesinger <cbiesinger@google.com>
565 PR/24474: Add a function to lookup static variables.
566 * NEWS: Mention this new function.
567 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
568 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
569 * python/python.c (python_GdbMethods): Add new function.
571 2019-07-29 Christian Biesinger <cbiesinger@google.com>
573 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
574 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
575 (objfpy_lookup_static_symbol): New function.
576 (objfile_object_methods): Add new functions.
578 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
580 * NEWS: Mention 'set|show print frame-info'. Mention new
581 'presence' value for 'frame-arguments'. Mention new '-frame-info'
582 backtrace argument. Mention that python frame filtering code
583 is now consistent with what 'backtrace' command prints.
585 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
587 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
589 (print_frame_info_auto, print_frame_info_source_line,
590 print_frame_info_location, print_frame_info_source_and_location,
591 print_frame_info_location_and_address, print_frame_info_short_location):
593 (struct frame_print_options): New member print_frame_info.
594 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
595 * stack.h (get_user_print_what_frame_info): New declaration.
596 (frame_show_address): New declaration.
597 * stack.c (print_frame_arguments_choices): New value 'presence'.
598 (print_frame_info_auto, print_frame_info_source_line,
599 print_frame_info_location, print_frame_info_source_and_location,
600 print_frame_info_location_and_address, print_frame_info_short_location,
601 print_frame_info_choices, print_frame_info_print_what): New definitions.
602 (print_frame_args): Only print dots for args if print frame-arguments
604 (frame_print_option_defs): New element for "frame-info".
605 (get_user_print_what_frame_info): New function.
606 (frame_show_address): Make non static. Move comment to stack.h.
607 (print_frame_info_to_print_what): New function.
608 (print_frame_info): Update comment. Use fp_opts.print_frame_info
609 to decide what to print.
610 (backtrace_command_1): Handle the new print_frame_arguments_presence
612 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
613 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
614 (py_print_frame): In non-mi mode, use LOCATION as default for
615 print_what, similarly to frame information printed directly by
616 backtrace command. Handle frame-info user option in non MI mode.
618 2019-07-27 Kevin Buettner <kevinb@redhat.com>
620 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
621 Add case for debugging 32-bit target on 64-bit host. Revise
624 2019-07-27 Kevin Buettner <kevinb@redhat.com>
626 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
627 instead of find_function_entry_range_from_pc.
629 2019-07-27 Kevin Buettner <kevinb@redhat.com>
631 * stack.c (find_frame_funname): Remove code which preferred
632 minsym over symtab sym in "certain pathological cases".
634 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
635 parameter. Change type of "do_demangle" to bool.
636 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
637 Pass suitable "prefer_sym_over_minsym" flag to
638 build_address_symbolic(). Don't output "+" for negative offsets.
639 * printcmd.c (print_address_symbolic): Update invocation of
640 build_address_symbolic to include a "prefer_sym_over_minsym"
642 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
643 Restrict cases in which use of minimal symbol is preferred to that
644 of a found symbol. Update comments.
646 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
647 for entry pc when entry pc is out of range for that FDE.
649 2019-07-26 Brian Callahan <bcallah@openbsd.org>
652 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
655 2019-07-25 Christian Biesinger <cbiesinger@google.com>
657 * python/py-objfile.c (add_separate_debug_file): Fix comment about
658 this function's Python signature.
661 2019-07-24 Christian Biesinger <cbiesinger@google.com>
663 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
664 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
665 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
666 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
667 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
670 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
672 * h8300-tdep.c (h8300_register_name_common): New.
673 h8300_register_name): Use h8300_register_name_common.
674 (h8300s_register_name): Likewise.
675 (h8300sx_register_name): Likewise.
676 (h8300h_register_nam): New.
677 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
680 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
682 * arm-tdep.c (arm_skip_cmse_entry): New function.
683 (arm_is_sgstubs_section): New function.
684 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
686 2019-07-22 Tom Tromey <tom@tromey.com>
688 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
691 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
693 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
696 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
698 * symtab.c (search_symbols): Adjust msymbol matching type arrays
699 so that GDB doesn't match any msymbols when searching in the
701 (print_symbol_info): Print using typedef_print or type_print based
702 on the type of the symbol. Add updated FIXME comment moved from...
703 (_initialize_symtab): ... move and update FIXME comment to above.
705 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
707 * NEWS: Mention adding -q option to "info types".
708 * symtab.c (struct info_types_options): New struct.
709 (info_types_options_defs): New variable.
710 (make_info_types_options_def_group): New function.
711 (info_types_command): Use gdb::option framework to parse options.
712 (info_types_command_completer): New function.
713 (_initialize_symtab): Extend the help text on "info types" and
714 register command completer.
716 2019-07-21 Christian Biesinger <cbiesinger@google.com>
718 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
719 (lookup_symbol_in_objfile): Change int to block_enum and add a
720 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
722 2019-07-20 Christian Biesinger <cbiesinger@google.com>
724 * MAINTAINERS (Write After Approval): Add self.
726 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
728 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
729 instruction to the dummy code region.
731 2019-07-19 Tom Tromey <tromey@adacore.com>
733 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
734 (ARGSUSED, PARAMS, __func__): Remove rules.
736 2019-07-19 Alan Hayward <alan.hayward@arm.com>
738 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
739 * features/arm/arm-with-iwmmxt.c: Remove.
740 * features/arm/arm-with-iwmmxt.xml: Remove.
741 * features/arm/arm-with-m-fpa-layout.c: Remove.
742 * features/arm/arm-with-m-fpa-layout.xml: Remove.
743 * features/arm/arm-with-m-vfp-d16.c: Remove.
744 * features/arm/arm-with-m-vfp-d16.xml: Remove.
745 * features/arm/arm-with-m.c: Remove.
746 * features/arm/arm-with-m.xml: Remove.
747 * features/arm/arm-with-neon.c: Remove.
748 * features/arm/arm-with-neon.xml: Remove.
749 * features/arm/arm-with-vfpv2.c: Remove.
750 * features/arm/arm-with-vfpv2.xml: Remove.
751 * features/arm/arm-with-vfpv3.c: Remove.
752 * features/arm/arm-with-vfpv3.xml: Remove.
754 2019-07-19 Alan Hayward <alan.hayward@arm.com>
756 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
758 2019-07-19 Alan Hayward <alan.hayward@arm.com>
760 * arch/aarch32.c (aarch32_create_target_description): Create
761 target descriptions using features.
762 * arch/arm.c (arm_create_target_description)
763 (arm_create_mprofile_target_description): Likewise.
764 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
766 2019-07-19 Alan Hayward <alan.hayward@arm.com>
768 * Makefile.in: Add new files.
769 * aarch32-tdep.c: New file.
770 * aarch32-tdep.h: New file.
771 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
772 Call aarch32_read_description.
773 * arch/aarch32.c: New file.
774 * arch/aarch32.h: New file.
775 * arch/arm.c (arm_create_target_description)
776 (arm_create_mprofile_target_description): New function.
777 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
778 (arm_create_target_description)
779 (arm_create_mprofile_target_description): New declaration.
780 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
781 read_description functions.
782 * arm-linux-nat.c (arm_linux_nat_target::read_description):
784 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
785 * arm-tdep.c (tdesc_arm_list): New variable.
786 (arm_register_g_packet_guesses): Call create description functions.
787 (arm_read_description) (arm_read_mprofile_description): New
789 * arm-tdep.h (arm_read_description)
790 (arm_read_mprofile_description): Add declaration.
791 * configure.tgt: Add new files.
793 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
795 * top.c (new_ui_command): Open specified terminal just once.
797 2019-07-18 Tom Tromey <tromey@adacore.com>
799 * symtab.c (main_name): Constify return type.
800 * symfile.c (set_initial_language): Update.
801 * symtab.h (main_name): Constify return type.
803 2019-07-17 Tom Tromey <tom@tromey.com>
805 * tui/tui-winsource.c (tui_update_source_window)
806 (tui_update_source_window_as_is)
807 (tui_update_source_windows_with_line): Remove return.
808 * tui/tui-disasm.c (tui_show_disassem)
809 (tui_show_disassem_and_update_source): Remove return.
810 * tui/tui.c (tui_reset): Remove return.
811 * tui/tui-wingeneral.c
812 (tui_check_and_display_highlight_if_needed): Remove return.
814 2019-07-17 Tom Tromey <tom@tromey.com>
816 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
818 2019-07-17 Tom Tromey <tom@tromey.com>
820 * tui/tui-winsource.h (struct tui_exec_info_window)
821 (struct tui_source_window_base): Move from tui-data.h.
822 * tui/tui-winsource.c: Move many method definitions from
823 elsewhere. Remove "structuring" comments.
824 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
825 (tui_source_window_base::refresh_window): Move to
827 * tui/tui-win.c (tui_source_window_base::refresh_all)
828 (tui_source_window_base::update_tab_width)
829 (tui_source_window_base::set_new_height)
830 (tui_source_window_base::do_make_visible_with_new_height): Move to
832 * tui/tui-source.h: Update.
833 * tui/tui-source.c (tui_source_window_base::reset): Move to
835 * tui/tui-disasm.h: Update.
836 * tui/tui-data.h (struct tui_exec_info_window): Move to
838 (struct tui_source_window_base): Likewise.
839 * tui/tui-data.c (tui_source_window_base::clear_detail)
840 (tui_source_window_base, ~tui_source_window_base): Move to
843 2019-07-17 Tom Tromey <tom@tromey.com>
845 * tui/tui-win.c (tui_resize_all)
846 (tui_source_window_base::update_tab_width)
847 (tui_adjust_win_heights): Update.
848 (tui_win_info::make_invisible_and_set_new_height): Rename from
849 make_invisible_and_set_new_height.
850 * tui/tui-data.h (struct tui_win_info)
851 <make_invisible_and_set_new_height>: New method.
853 2019-07-17 Tom Tromey <tom@tromey.com>
856 * tui/tui-source.h (struct tui_source_window): Move from
858 * tui/tui-layout.c: Update.
859 * tui/tui-disasm.c: Update.
860 * tui/tui-data.h (struct tui_source_window): Move to
863 2019-07-17 Tom Tromey <tom@tromey.com>
865 * tui/tui-disasm.h (struct tui_disasm_window): Move from
867 * tui/tui-data.h (struct tui_disasm_window): Move to
870 2019-07-17 Tom Tromey <tom@tromey.com>
872 * tui/tui-regs.h (struct tui_data_item_window): Move from
874 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
875 * tui/tui-data.h (struct tui_data_item_window): Move to
877 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
879 2019-07-17 Tom Tromey <tom@tromey.com>
882 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
883 (tui_cmd_window::max_height): Move to tui-command.c.
884 * tui/tui-layout.c: Update.
885 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
886 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
888 * tui/tui-command.h (struct tui_cmd_window): Move from
890 * tui/tui-command.c: Remove "structuring" comments.
891 (tui_cmd_window::clear_detail)
892 (tui_cmd_window::do_make_visible_with_new_height)
893 (tui_cmd_window::max_height): Move from elsewhere.
895 2019-07-17 Tom Tromey <tom@tromey.com>
897 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
899 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
900 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
902 2019-07-17 Tom Tromey <tom@tromey.com>
905 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
907 * tui/tui-windata.h: Remove file.
908 * tui/tui-windata.c: Remove file.
909 * tui/tui-win.c (tui_data_window::set_new_height)
910 (tui_data_window::do_make_visible_with_new_height): Move to
912 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
913 * tui/tui-regs.c: Remove "structuring" comments.
914 (tui_data_window::first_data_item_displayed)
915 (tui_data_window::delete_data_content_windows)
916 (tui_data_window::erase_data_content)
917 (tui_data_window::display_all_data)
918 (tui_data_window::refresh_all)
919 (tui_data_window::do_scroll_vertical)
920 (tui_data_window::clear_detail, tui_data_window::set_new_height)
921 (tui_data_window::do_make_visible_with_new_height)
922 (tui_data_window::refresh_window): Move from elsewhere.
923 (_initialize_tui_regs): Move to end of file.
924 * tui/tui-layout.c: Update.
925 * tui/tui-hooks.c: Update.
926 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
927 * tui/tui-data.c (tui_data_window::clear_detail): Move to
929 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
931 2019-07-17 Tom Tromey <tom@tromey.com>
933 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
936 2019-07-17 Tom Tromey <tom@tromey.com>
938 * tui/tui-win.c (tui_source_window_base::set_new_height)
939 (tui_source_window_base::do_make_visible_with_new_height): Use
940 m_has_locator field directly.
941 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
943 (struct tui_source_window_base) <has_locator>: Likewise.
945 2019-07-17 Tom Tromey <tom@tromey.com>
947 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
949 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
951 * tui/tui-win.c (tui_source_window_base::set_new_height)
952 (tui_source_window_base::set_new_height)
953 (make_invisible_and_set_new_height)
954 (tui_source_window_base::do_make_visible_with_new_height)
955 (tui_source_window_base::do_make_visible_with_new_height):
957 * tui/tui-layout.c (show_source_disasm_command, show_data)
958 (show_source_or_disasm_and_command): Update.
959 * tui/tui-layout.c (show_layout): Update.
961 2019-07-17 Tom Tromey <tom@tromey.com>
963 * tui/tui-layout.c (make_data_window): Remove.
964 (show_data): Unify creation and re-initialization cases.
966 2019-07-17 Tom Tromey <tom@tromey.com>
968 * tui/tui-layout.c (make_source_window, make_disasm_window):
970 (show_data): Unify creation and re-initialization cases.
972 2019-07-17 Tom Tromey <tom@tromey.com>
974 * tui/tui-layout.c (make_command_window): Remove.
975 (show_source_disasm_command, show_source_or_disasm_and_command):
976 Unify creation and re-initialization cases.
978 2019-07-17 Tom Tromey <tom@tromey.com>
980 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
981 creation and re-initialization cases.
983 2019-07-17 Tom Tromey <tom@tromey.com>
985 * tui/tui-regs.c (tui_get_register): Return void.
987 2019-07-17 Tom Tromey <tom@tromey.com>
989 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
992 2019-07-17 Tom Tromey <tom@tromey.com>
994 * tui/tui-layout.c (show_source_disasm_command): Simplify window
997 2019-07-17 Tom Tromey <tom@tromey.com>
999 * tui/tui.h (tui_set_layout_by_name): Don't declare.
1000 * tui/tui-regs.c (tui_reg_layout): New function.
1001 (tui_show_registers, tui_reg_command): Use it.
1002 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
1003 (tui_layout_command): Rename from tui_set_layout_by_name. Change
1005 (tui_layout_command): Remove.
1007 2019-07-17 Tom Tromey <tom@tromey.com>
1009 * tui/tui-layout.h (tui/tui-layout): Return void.
1010 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
1012 2019-07-17 Tom Tromey <tom@tromey.com>
1014 * tui/tui-layout.c (show_source_disasm_command, show_data):
1016 (reset_locator): Remove.
1017 (show_source_or_disasm_and_command): Update.
1019 2019-07-17 Tom Tromey <tom@tromey.com>
1021 * tui/tui-source.c (tui_source_window_base::reset): Remove
1023 * tui/tui-layout.c (make_command_window, make_source_window)
1024 (make_disasm_window, make_data_window)
1025 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
1026 (reset_locator, show_source_or_disasm_and_command): Update.
1027 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
1029 (struct tui_source_window_base) <reset>: Likewise.
1031 2019-07-17 Tom Tromey <tom@tromey.com>
1033 * tui/tui-layout.c (show_source_disasm_command): Use
1035 (reset_locator): New function.
1036 (init_and_make_win): Remove.
1037 (show_source_or_disasm_and_command): Use reset_locator.
1039 2019-07-17 Tom Tromey <tom@tromey.com>
1041 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
1043 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
1045 * tui/tui-source.c (tui_source_window_base::reset): New method.
1046 * tui/tui-layout.c (make_command_window): Don't call
1048 (make_source_window, make_disasm_window): Don't call
1049 make_source_or_disasm_window.
1050 (make_data_window): Don't call init_and_make_win. Change calling
1052 (show_source_disasm_command, show_data): Simplify.
1053 (make_source_or_disasm_window): Remove.
1054 (show_source_or_disasm_and_command): Simplify.
1055 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
1056 (struct tui_source_window_base) <reset>: Likewise.
1057 <execution_info>: Remove initializer.
1058 * tui/tui-data.c (tui_source_window_base): Initialize
1061 2019-07-17 Tom Tromey <tom@tromey.com>
1063 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
1066 2019-07-17 Tom Tromey <tom@tromey.com>
1068 * tui/tui.c (tui_rl_other_window): Update.
1069 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
1070 superclass method first. Always iterate over regs_content.
1071 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
1073 * tui/tui-win.c (tui_set_focus_command): Update.
1075 2019-07-17 Tom Tromey <tom@tromey.com>
1077 * tui/tui-win.c (tui_set_focus_command): Rename from
1078 tui_set_focus. Call tui_enable.
1079 (tui_set_focus_command): Remove.
1081 2019-07-17 Tom Tromey <tom@tromey.com>
1083 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
1085 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
1087 (tui_data_window::refresh_window): Call refresh_window on data
1088 items. Always call superclass refresh_window.
1089 (tui_win_info::refresh): Remove.
1090 (tui_source_window_base::refresh_window): Update.
1091 (tui_refresh_all): Update.
1092 * tui/tui-layout.c (show_source_disasm_command): Remove call to
1094 (show_source_or_disasm_and_command): Likewise.
1095 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
1096 (struct tui_source_window_base) <refresh>: Likewise.
1098 2019-07-17 Tom Tromey <tom@tromey.com>
1100 * tui/tui-winsource.c (tui_clear_source_content)
1101 (tui_show_source_content): Update.
1102 * tui/tui-source.c (tui_source_window::showing_source_p): Check
1103 whether content is empty.
1104 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
1107 2019-07-17 Tom Tromey <tom@tromey.com>
1109 * tui/tui-winsource.c (tui_erase_source_content): Clear the
1111 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
1112 * tui/tui-source.c (tui_set_source_content_nil): Remove.
1114 2019-07-17 Tom Tromey <tom@tromey.com>
1116 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
1117 (struct tui_data_item_window): Update.
1119 2019-07-17 Tom Tromey <tom@tromey.com>
1121 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
1122 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
1125 2019-07-17 Tom Tromey <tom@tromey.com>
1127 * tui/tui-winsource.h (tui_erase_source_content)
1128 (tui_clear_source_content): Remove "display_prompt" parameter.
1129 * tui/tui-winsource.c (tui_update_source_window_as_is)
1130 (tui_update_source_windows_with_addr): Update.
1131 (tui_clear_source_content): Remove "display_prompt" parameter.
1132 (tui_erase_source_content): Likewise. Simplify.
1133 (tui_show_source_content): Update.
1134 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
1135 * tui/tui-stack.c (tui_show_frame_info): Update.
1136 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
1139 2019-07-17 Tom Tromey <tom@tromey.com>
1141 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1142 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
1144 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
1147 2019-07-17 Tom Tromey <tom@tromey.com>
1149 * tui/tui-winsource.c (tui_clear_source_content)
1150 (tui_show_source_content, tui_show_exec_info_content)
1151 (tui_clear_exec_info_content): Update.
1152 * tui/tui-stack.c (tui_show_locator_content): Update.
1153 (tui_show_frame_info): Update.
1154 * tui/tui-source.h (tui_source_window): Don't declare.
1155 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
1156 from tui_source_is_displayed.
1157 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
1159 (struct tui_source_window_base) <content_in_use>: New field. Now
1161 (struct tui_source_window) <showing_source_p>: New method.
1162 (TUI_SRC_WIN): Change cast.
1163 * tui/tui-data.c (tui_initialize_static_data): Update.
1165 2019-07-17 Tom Tromey <tom@tromey.com>
1167 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
1169 * tui/tui-source.c (tui_source_window::location_matches_p): New
1171 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
1173 * tui/tui-data.h (struct tui_source_window_base)
1174 <location_matches_p>: New method.
1175 (struct tui_source_window, struct tui_disasm_window)
1176 <location_matches_p>: Likewise.
1178 2019-07-17 Tom Tromey <tom@tromey.com>
1180 * tui/tui-win.c (tui_set_win_height_command): Rename from
1182 (tui_set_win_height_command): Remove.
1184 2019-07-17 Tom Tromey <tom@tromey.com>
1186 * tui/tui-source.c (tui_source_window): New constructor. Add
1188 (~tui_source_window): New destructor.
1189 (tui_source_window::style_changed): New method.
1190 * tui/tui-hooks.c (tui_redisplay_source): Remove.
1191 (tui_attach_detach_observers): Update.
1192 * tui/tui-data.h (struct tui_source_window): Make constructor not
1193 inline. Add destructor.
1194 (struct tui_source_window) <style_changed>: New method.
1195 <m_observable>: New member.
1197 2019-07-17 Tom Tromey <tom@tromey.com>
1199 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
1200 * tui/tui-win.c (tui_resize_all): Fix typo.
1202 2019-07-17 Tom Tromey <tom@tromey.com>
1204 * tui/tui-wingeneral.h (tui_refresh_all): Update.
1205 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
1206 (tui_refresh_all): Remove "list" parameter. Use foreach.
1207 * tui/tui-win.c (window_name_completer): Use foreach.
1208 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
1209 (update_tab_width): Likewise.
1210 * tui/tui-layout.c (show_layout): Update.
1211 * tui/tui-data.h (class tui_window_iterator): New.
1212 (struct all_tui_windows): New.
1213 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
1215 2019-07-17 Tom Tromey <tom@tromey.com>
1217 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
1218 parameter. Don't reference globals.
1219 (tui_reg_command): Update.
1221 2019-07-17 Tom Tromey <tom@tromey.com>
1223 * tui/tui-regs.c (tui_show_registers): Simplify.
1225 2019-07-17 Tom Tromey <tom@tromey.com>
1227 * tui/tui-regs.c (tui_show_registers): Update.
1228 (tui_show_register_group): Add win_info parameter.
1230 2019-07-17 Tom Tromey <tom@tromey.com>
1232 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
1233 Rename from tui_display_reg_element_at_line.
1234 (tui_data_window::display_registers_from_line): Update.
1235 * tui/tui-data.h (struct tui_data_window)
1236 <display_reg_element_at_line>: New method.
1238 2019-07-17 Tom Tromey <tom@tromey.com>
1240 * tui/tui-regs.h (tui_display_registers_from)
1241 (tui_display_registers_from_line): Don't declare.
1242 * tui/tui-windata.c (tui_data_window::display_all_data)
1243 (tui_data_window::refresh_all)
1244 (tui_data_window::do_scroll_vertical): Update.
1245 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
1246 from tui_display_registers_from.
1247 (tui_display_reg_element_at_line): Update.
1248 (tui_data_window::display_registers_from_line): Rename from
1249 tui_display_registers_from_line.
1250 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
1251 display_registers_from_line>: New methods.
1253 2019-07-17 Tom Tromey <tom@tromey.com>
1255 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
1256 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
1257 from tui_erase_data_content.
1258 (tui_data_window::display_all_data)
1259 (tui_data_window::refresh_all)
1260 (tui_data_window::do_scroll_vertical): Update.
1261 * tui/tui-regs.c (tui_show_registers): Update.
1262 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
1265 2019-07-17 Tom Tromey <tom@tromey.com>
1267 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
1270 (tui_data_window::delete_data_content_windows): Rename from
1271 tui_delete_data_content_windows.
1272 (tui_data_window::display_all_data)
1273 (tui_data_window::do_scroll_vertical): Update.
1274 * tui/tui-data.h (struct tui_data_window)
1275 <delete_data_content_windows>: New method.
1277 2019-07-17 Tom Tromey <tom@tromey.com>
1279 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
1280 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
1282 2019-07-17 Tom Tromey <tom@tromey.com>
1284 * tui/tui-windata.h (tui_display_all_data): Don't declare.
1285 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
1286 from tui_display_all_data.
1288 (tui_data_window::do_make_visible_with_new_height): Update.
1289 * tui/tui-regs.c (tui_show_registers): Update.
1290 * tui/tui-layout.c (tui_set_layout): Update.
1291 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
1294 2019-07-17 Tom Tromey <tom@tromey.com>
1296 * tui/tui-windata.h (tui_display_data_from): Don't declare.
1297 * tui/tui-windata.c (tui_display_data_from): Remove.
1298 (tui_data_window::refresh_all): Update.
1300 2019-07-17 Tom Tromey <tom@tromey.com>
1302 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
1303 * tui/tui-windata.c (tui_display_data_from_line): Remove.
1304 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
1305 tui_display_registers_from_line.
1306 * tui/tui-regs.h (tui_display_registers_from_line): Update.
1307 * tui/tui-regs.c (tui_display_registers_from_line): Remove
1308 "force_display" parameter.
1310 2019-07-17 Tom Tromey <tom@tromey.com>
1312 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
1314 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
1315 Rename from tui_first_reg_element_no_inline.
1316 (tui_display_reg_element_at_line)
1317 (tui_display_registers_from_line): Update.
1318 * tui/tui-data.h (struct tui_data_window)
1319 <first_reg_element_no_inline>: New method.
1321 2019-07-17 Tom Tromey <tom@tromey.com>
1323 * tui/tui-windata.c (tui_display_data_from)
1324 (tui_data_window::do_scroll_vertical): Update.
1325 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
1326 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
1327 Rename from tui_line_from_reg_element_no.
1328 (tui_display_registers_from_line): Update.
1329 * tui/tui-data.h (struct tui_data_window)
1330 <line_from_reg_element_no>: New method.
1332 2019-07-17 Tom Tromey <tom@tromey.com>
1334 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
1335 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
1336 tui_last_regs_line_no.
1337 (tui_display_reg_element_at_line)
1338 (tui_display_registers_from_line): Update.
1339 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
1342 2019-07-17 Tom Tromey <tom@tromey.com>
1345 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
1346 (tui_update_breakpoint_info): Add "being_deleted" parameter.
1347 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1348 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
1349 (tui_update_breakpoint_info): Likewise.
1350 * tui/tui-hooks.c (tui_event_create_breakpoint)
1351 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
1354 2019-07-17 Tom Tromey <tom@tromey.com>
1356 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
1358 2019-07-17 Tom Tromey <tom@tromey.com>
1360 * tui/tui-winsource.c (tui_update_source_window_as_is)
1361 (tui_update_source_windows_with_addr): Update.
1362 * tui/tui-source.h (tui_set_source_content)
1363 (tui_show_symtab_source): Add "win_info" parameter.
1364 * tui/tui-source.c (tui_set_source_content): Add "win_info"
1366 (tui_show_symtab_source): Likewise.
1368 2019-07-17 Tom Tromey <tom@tromey.com>
1370 * tui/tui-wingeneral.c
1371 (tui_check_and_display_highlight_if_needed): Check can_highlight.
1373 2019-07-17 Tom Tromey <tom@tromey.com>
1375 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
1376 (struct tui_cmd_window) <can_scroll>: New method.
1377 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
1380 2019-07-17 Tom Tromey <tromey@adacore.com>
1382 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
1383 do_field_signed>: Rename. Change type of "value".
1384 * ui-out.c (ui_out::field_signed): Rename from field_int.
1385 Change type of "value".
1386 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
1388 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
1389 do_field_int. Change type of "value".
1390 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
1391 do_field_int. Change type of "value".
1392 * tracepoint.c (trace_status_mi, tfind_1)
1393 (print_one_static_tracepoint_marker): Update.
1394 * thread.c (print_thread_info_1, print_selected_thread_frame):
1396 * stack.c (print_frame, print_frame_info): Update.
1397 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
1399 * source.c (print_source_lines_base): Update.
1400 * skip.c (info_skip_command): Update.
1401 * record-btrace.c (btrace_ui_out_decode_error)
1402 (btrace_call_history_src_line): Update.
1403 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
1405 * progspace.c (print_program_space): Update.
1406 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
1407 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
1408 do_field_int. Change type of "value".
1409 * mi/mi-out.c (mi_ui_out::do_table_begin)
1410 (mi_ui_out::do_table_header): Update.
1411 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
1413 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
1414 (mi_cmd_data_list_changed_registers, output_register)
1415 (mi_cmd_data_read_memory, mi_load_progress)
1416 (mi_cmd_trace_frame_collected): Update.
1417 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
1419 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
1420 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
1421 (mi_cmd_var_list_children, varobj_update_one): Update.
1422 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
1423 (mi_cmd_stack_list_args, list_arg_or_local): Update.
1424 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
1425 * inferior.c (print_inferior): Update.
1426 * gdb_bfd.c (print_one_bfd): Update.
1427 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1429 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
1430 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
1431 do_field_int. Change type of "value".
1432 * cli-out.c (cli_ui_out::do_field_signed): Rename from
1433 do_field_int. Change type of "value".
1434 * breakpoint.c (watchpoint_check, print_breakpoint_location)
1435 (print_one_breakpoint_location, print_it_catch_fork)
1436 (print_one_catch_fork, print_it_catch_vfork)
1437 (print_one_catch_vfork, print_it_catch_solib)
1438 (print_it_catch_exec, print_it_ranged_breakpoint)
1439 (print_mention_watchpoint, print_mention_masked_watchpoint)
1440 (bkpt_print_it, update_static_tracepoint): Update.
1441 * break-catch-throw.c (print_it_exception_catchpoint): Update.
1442 * break-catch-syscall.c (print_it_catch_syscall): Update.
1443 * ada-tasks.c (print_ada_task_info): Update.
1444 * ada-lang.c (print_it_exception, print_mention_exception):
1447 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1449 PR breakpoints/24541
1450 * gdbarch.c: Regenerate.
1451 * gdbarch.h: Regenerate.
1452 * gdbarch.sh: Adjust return type and parameter types for
1453 'stap_adjust_register'.
1454 (i386_stap_adjust_register): Adjust signature and return new
1456 * stap-probe.c (stap_parse_register_operand): Adjust use of
1457 'gdbarch_stap_adjust_register'.
1459 2019-07-17 Tom Tromey <tromey@adacore.com>
1461 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
1463 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
1465 (struct s390_process_info): Add initializers.
1466 (s390_add_process): Use new.
1467 (s390_linux_nat_target::low_forget_process): Use delete.
1468 (s390_linux_nat_target::low_new_fork)
1469 (s390_linux_nat_target::stopped_by_watchpoint)
1470 (s390_linux_nat_target::low_prepare_to_resume)
1471 (s390_linux_nat_target::insert_watchpoint)
1472 (s390_linux_nat_target::insert_hw_breakpoint)
1473 (s390_linux_nat_target::remove_watchpoint)
1474 (s390_linux_nat_target::remove_hw_breakpoint): Update.
1476 2019-07-16 John Baldwin <jhb@FreeBSD.org>
1478 * aarch64-fbsd-nat.c: Include regcache.h.
1479 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
1481 (aarch64_fbsd_nat_target::fetch_registers)
1482 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
1484 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
1486 2019-07-16 John Baldwin <jhb@FreeBSD.org>
1488 * fbsd-nat.c: Include gdbarch.h.
1490 2019-07-15 Tom Tromey <tromey@adacore.com>
1492 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
1494 2019-07-15 Tom Tromey <tromey@adacore.com>
1496 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
1497 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
1498 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
1499 * cli-out.c (cli_ui_out::do_field_int): New method.
1500 * ui-out.c (ui_out::field_unsigned): New method.
1501 * symfile.c (generic_load): Use field_unsigned.
1502 (print_transfer_performance): Likewise.
1503 * record-btrace.c (ui_out_field_uint): Remove.
1504 (btrace_call_history_insn_range, btrace_call_history): Use
1506 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
1508 * ui-out.h (class ui_out) <field_unsigned>: New method.
1509 <do_field_unsigned>: Likewise.
1511 2019-07-15 Tom Tromey <tromey@adacore.com>
1513 * mi/mi-main.c (list_available_thread_groups): Use field_string.
1514 * mi/mi-interp.c (mi_memory_changed): Use field_string.
1515 * target.c (flash_erase_command): Use field_string.
1516 * infrun.c (print_signal_received_reason): Use field_string.
1517 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
1518 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
1520 * ada-tasks.c (print_ada_task_info): Use field_string.
1522 2019-07-15 Tom Tromey <tromey@adacore.com>
1524 * target.c (flash_erase_command): Use field_core_addr.
1525 * symfile.c (generic_load): Use field_core_addr.
1526 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1527 Use field_core_addr.
1528 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
1531 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1533 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
1534 value if its desired type is smaller than a CORE_ADDR and signed.
1536 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1538 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
1539 of changes to field names, and use new is_reference field to
1540 decide if a property is a reference or not.
1541 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
1543 (struct dwarf2_property_baton): Update header comment, rename
1544 'referenced_type' to 'property_type' and update comments.
1545 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
1546 default property type, store in property baton, update to take
1547 accound of renamed field.
1548 (read_func_scope): Update call to attr_to_dynamic_prop.
1549 (read_array_type): Likewise.
1550 (dwarf2_per_cu_addr_sized_int_type): New function.
1551 (read_subrange_index_type): Move type finding code to
1552 dwarf2_per_cu_addr_sized_int_type.
1553 (read_subrange_type): Update calls to attr_to_dynamic_prop.
1554 (dwarf2_per_cu_addr_type): New function.
1555 (set_die_type): Update calls to attr_to_dynamic_prop.
1557 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1559 * dwarf2read.c (read_subrange_index_type): New function.
1560 (read_subrange_type): Move code into new function and call it.
1561 * gdbtypes.c (create_range_type): Add some asserts.
1563 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1565 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
1566 update return statements.
1567 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
1568 declaration, and update comment to match.
1569 * gdbtypes.c (resolve_dynamic_array): Update call to
1570 dwarf2_evaluate_property to match new return type.
1572 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1574 * valarith.c (value_subscripted_rvalue): Change lowerbound
1575 parameter type from int to LONGEST.
1576 * value.h (value_subscripted_rvalue): Likewise in declaration.
1578 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
1580 * cli/cli-utils.c (info_print_command_completer): New function.
1581 * cli/cli-utils.h: Add 'completer.h' include, and forward
1582 declaration for 'struct cmd_list_element'.
1583 (info_print_command_completer): Declare.
1584 * stack.c (_initialize_stack): Add completer for 'info locals' and
1586 * symtab.c (_initialize_symtab): Add completer for 'info
1587 variables' and 'info functions'.
1588 * NEWS: Mention completion for additional info commands.
1590 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
1592 * cli/cli-utils.c (extract_info_print_args): Delete.
1593 (extract_arg_maybe_quoted): Delete.
1594 (info_print_options_defs): New variable.
1595 (make_info_print_options_def_group): New function.
1596 (extract_info_print_options): Define new function.
1597 * cli/cli-utils.h (extract_info_print_args): Delete.
1598 (struct info_print_options): New structure.
1599 (extract_info_print_options): Declare new function.
1600 * stack.c (info_locals_command): Update to use new
1601 extract_info_print_options, also add a header comment.
1602 (info_args_command): Likewise.
1603 * symtab.c (info_variables_command): Likewise.
1604 (info_functions_command): Likewise.
1606 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
1608 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
1609 to extract string arguments.
1610 * common/common-utils.c (extract_string_maybe_quoted): New function.
1611 * common/common-utils.h (extract_string_maybe_quoted): Declare.
1613 2019-07-11 Tom Tromey <tromey@adacore.com>
1615 * main.c (get_init_files): Use GDBINIT, not gdbinit.
1616 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
1617 * top.h (gdbinit): Don't declare.
1618 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
1620 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
1621 * top.c (gdb_init): Don't call init_cli_cmds.
1623 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
1625 2019-07-11 Tom Tromey <tromey@adacore.com>
1627 * python/py-inferior.c (add_thread_object): Don't use thread_obj
1628 after it has been moved.
1630 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1632 * valops.c (value_must_coerce_to_target): Change return type to
1634 * value.h (value_must_coerce_to_target): Likewise.
1636 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
1638 * breakpoint.c (is_hardware_watchpoint): Remove
1639 forward-declaration.
1640 (is_masked_watchpoint): Change return type to bool.
1641 (is_tracepoint): Likewise.
1642 (is_breakpoint): Likewise.
1643 (is_hardware_watchpoint): Likewise.
1644 (is_watchpoint): Likewise.
1645 (is_no_memory_software_watchpoint): Likewise.
1646 (is_catchpoint): Likewise.
1647 (breakpoint_1): Make FILTER parameter's return type bool.
1648 is_masked_watchpoint): Change return type to bool.
1649 (save_breakpoints): Make FILTER parameter's return type bool.
1650 * breakpoint.h (is_breakpoint): Change return type to bool.
1651 (is_watchpoint): Likewise.
1652 (is_catchpoint): Likewise.
1653 (is_tracepoint): Likewise.
1655 2019-07-10 Tom Tromey <tom@tromey.com>
1657 * defs.h: Don't include gdbarch.h.
1658 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
1659 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
1660 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
1661 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
1662 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
1663 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
1664 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
1665 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
1666 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
1667 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
1668 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
1669 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
1670 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
1671 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
1672 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
1673 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
1674 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
1675 record-btrace.c, record.h, regcache-dump.c, regcache.h,
1676 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
1677 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
1678 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
1679 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
1680 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
1681 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
1682 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
1683 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
1684 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
1686 2019-07-10 Tom Tromey <tromey@adacore.com>
1688 * ada-lang.h (is_ada_exception_catchpoint): Declare.
1689 * breakpoint.c (init_ada_exception_breakpoint): Register as
1691 (print_one_breakpoint_location, print_one_breakpoint): Use
1692 is_ada_exception_catchpoint.
1693 * ada-lang.c (class ada_catchpoint_location): Pass
1694 bp_loc_software_breakpoint to bp_location constructor.
1695 (is_ada_exception_catchpoint): New function.
1697 2019-07-10 Tom Tromey <tromey@adacore.com>
1699 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
1701 (struct arm_exidx_entry): New method operator<.
1702 (struct arm_exidx_data) <section_maps>: Change type.
1703 (arm_exidx_data_free): Remove.
1704 (arm_exidx_data_key): Change type. Move lower.
1705 (arm_exidx_new_objfile): Update.
1706 (arm_compare_exidx_entries): Remove.
1707 (arm_find_exidx_entry, _initialize_arm_tdep)
1709 2019-07-10 Tom Tromey <tromey@adacore.com>
1711 * solib-spu.c (ocl_program_data_key): Change type.
1712 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
1715 2019-07-10 Tom Tromey <tromey@adacore.com>
1717 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
1718 (struct solib_aix_inferior_data) <library_list>: Change type.
1719 (solib_aix_inferior_data_handle): Change type.
1720 (get_solib_aix_inferior_data): Update.
1721 (solib_aix_free_library_list): Remove.
1722 (library_list_start_library): Update.
1723 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
1725 (solib_aix_get_library_list)
1726 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
1727 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
1729 2019-07-10 Tom Tromey <tromey@adacore.com>
1731 * solib-dsbt.c (struct dsbt_info): Add initializers.
1732 (solib_dsbt_pspace_data): Change type.
1733 (dsbt_pspace_data_cleanup): Remove.
1734 (get_dsbt_info, _initialize_dsbt_solib): Update.
1736 2019-07-10 Tom Tromey <tromey@adacore.com>
1738 * spu-tdep.c (spu_overlay_data): Change type.
1739 (spu_get_overlay_table, spu_overlay_new_objfile)
1740 (_initialize_spu_tdep): Update.
1742 2019-07-10 Tom Tromey <tromey@adacore.com>
1744 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
1746 (dbx_objfile_data_key): Change type and declare later.
1747 (DBX_SYMFILE_INFO): Rewrite.
1748 * dbxread.c (dbx_objfile_data_key): Change type.
1749 (dbx_symfile_init): Update.
1750 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
1751 (coffstab_build_psymtabs, elfstab_build_psymtabs)
1752 (stabsect_build_psymtabs, _initialize_dbxread): Update.
1754 2019-07-10 Tom Tromey <tromey@adacore.com>
1756 * jit.c (jit_program_space_key): Change type. Move lower.
1757 (get_jit_program_space_data): Update.
1758 (jit_program_space_data_cleanup): Remove.
1759 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
1761 (struct jit_program_space_data): Add initializers.
1763 2019-07-10 Tom Tromey <tromey@adacore.com>
1765 * solib-darwin.c (struct darwin_info): Add initializers.
1766 (solib_darwin_pspace_data): Change type.
1767 (darwin_pspace_data_cleanup): Remove.
1768 (get_darwin_info, _initialize_darwin_solib): Update.
1770 2019-07-10 Tom Tromey <tromey@adacore.com>
1772 * remote-sim.c (struct sim_inferior_data): Add initializers,
1773 constructor, and destructor.
1774 (sim_inferior_data_key): Change type. Move lower.
1775 (check_for_duplicate_sim_descriptor): Update.
1776 (get_sim_inferior_data): Use new. Update.
1777 (~sim_inferior_data_cleanup): Rename from
1778 sim_inferior_data_cleanup. Simplify.
1779 (gdbsim_close_inferior, simulator_command)
1780 (sim_command_completer, _initialize_remote_sim): Update.
1781 (next_pid, INITIAL_PID): Move earlier.
1783 2019-07-10 Tom Tromey <tromey@adacore.com>
1785 * python/python-internal.h (create_thread_object): Return
1787 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
1788 * python/py-inferior.c (struct threadlist_entry): Add
1790 <thread_obj>: Now a gdbpy_ref.
1791 (thread_to_thread_object): Update.
1792 (add_thread_object): Use new.
1793 (delete_thread_object): Use delete.
1794 (infpy_threads): Update.
1795 (py_free_inferior): Update. Construct "inf_obj" after acquiring
1798 2019-07-10 Tom Tromey <tromey@adacore.com>
1800 * valops.c (value_cast): Specialize error message for Ada.
1802 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1804 * breakpoint.c (breakpoint_1): Update doc and parameter names.
1806 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1808 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
1809 bpstat_should_step): Return bool, adjust comments.
1810 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
1811 bpstat_should_step): Likewise.
1813 2019-07-10 Alan Hayward <alan.hayward@arm.com>
1815 * features/Makefile: Use feature target descriptions for Arm.
1816 * features/arm/arm-core.c: Generate new file.
1817 * features/arm/arm-fpa.c: Likewise.
1818 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
1819 * features/arm/arm-m-profile.c: Likewise.
1820 * features/arm/arm-vfpv2.c: Likewise.
1821 * features/arm/arm-vfpv3.c: Likewise.
1822 * features/arm/xscale-iwmmxt.c: Likewise.
1823 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
1825 2019-07-10 Alan Hayward <alan.hayward@arm.com>
1827 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
1830 2019-07-10 Alan Hayward <alan.hayward@arm.com>
1832 * features/aarch64-pauth.c: Regenerate.
1834 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
1836 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
1838 (bpstat_what): Use false instead of 0.
1840 2019-07-09 Pedro Alves <palves@redhat.com>
1842 * break-catch-throw.c (is_exception_catchpoint): New.
1843 * breakpoint.c (print_one_breakpoint_location): New parameter
1844 'raw_loc'. Handle it. Use
1845 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
1846 looking at the breakpoint's type.
1847 (print_one_breakpoint): If handling "maint info breakpoints", also
1848 print locations of exception catchpoints.
1849 * breakpoint.h (is_exception_catchpoint): Declare.
1851 2019-07-09 Pedro Alves <palves@redhat.com>
1853 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
1855 (allocate_location_exception_catchpoint): New.
1856 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
1857 (initialize_throw_catchpoint_ops): Install
1858 allocate_location_exception_catchpoint as allocate_location
1860 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
1861 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
1863 (breakpoint_address_is_meaningful): Delete.
1864 (bl_address_is_meaningful): New.
1865 (breakpoint_locations_match): Adjust comment.
1866 (bp_location_from_bp_type): New, factored out of...
1867 (bp_location::bp_location(breakpoint *)): ... this.
1868 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
1870 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
1871 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
1872 breakpoint_address_is_meaningful.
1873 (bp_locations_compare): Adjust comment.
1874 (update_global_location_list): Use bl_address_is_meaningful
1875 instead of breakpoint_address_is_meaningful.
1876 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
1878 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
1879 * python/py-breakpoint.c (bppy_get_location): No longer check
1880 whether location is null.
1882 2019-07-09 Pedro Alves <palves@redhat.com>
1885 * breakpoint.c (print_one_breakpoint_location): Remove
1886 single-location assert.
1888 2019-07-09 Tom Tromey <tom@tromey.com>
1890 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
1891 * configure: Rebuild.
1892 * configure.ac: Change common to gdbsupport.
1893 * gdbsupport: Rename from common.
1894 * acinclude.m4: Change common to gdbsupport.
1895 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
1896 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
1898 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
1899 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
1900 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
1901 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
1902 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
1903 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
1904 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
1905 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
1906 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
1907 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
1908 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
1909 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
1910 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
1911 coff-pe-read.c, command.h, compile/compile-c-support.c,
1912 compile/compile-c.h, compile/compile-cplus-symbols.c,
1913 compile/compile-cplus-types.c, compile/compile-cplus.h,
1914 compile/compile-loc2c.c, compile/compile.c, completer.c,
1915 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
1916 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
1917 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
1918 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
1919 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
1920 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
1921 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
1922 features/aarch64-core.c, features/aarch64-fpu.c,
1923 features/aarch64-pauth.c, features/aarch64-sve.c,
1924 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
1925 features/i386/32bit-core.c, features/i386/32bit-linux.c,
1926 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
1927 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
1928 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
1929 features/i386/64bit-core.c, features/i386/64bit-linux.c,
1930 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
1931 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
1932 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
1933 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
1934 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
1935 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
1936 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
1937 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
1938 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
1939 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
1940 go32-nat.c, guile/guile.c, guile/scm-ports.c,
1941 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
1942 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
1943 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
1944 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
1945 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
1946 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
1947 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
1948 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
1949 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
1950 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
1951 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
1952 minsyms.c, mips-linux-tdep.c, namespace.h,
1953 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
1954 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
1955 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
1956 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
1957 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
1958 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
1959 nat/linux-waitpid.c, nat/mips-linux-watch.c,
1960 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
1961 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
1962 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
1963 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
1964 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
1965 procfs.c, producer.c, progspace.h, psymtab.h,
1966 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
1967 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
1968 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
1969 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
1970 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
1971 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
1972 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
1973 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
1974 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
1975 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
1976 target-memory.c, target.c, target.h, target/waitstatus.c,
1977 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
1978 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
1979 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
1980 unittests/array-view-selftests.c,
1981 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
1982 unittests/common-utils-selftests.c,
1983 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
1984 unittests/format_pieces-selftests.c,
1985 unittests/function-view-selftests.c,
1986 unittests/lookup_name_info-selftests.c,
1987 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
1988 unittests/mkdir-recursive-selftests.c,
1989 unittests/observable-selftests.c,
1990 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
1991 unittests/parse-connection-spec-selftests.c,
1992 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
1993 unittests/scoped_fd-selftests.c,
1994 unittests/scoped_mmap-selftests.c,
1995 unittests/scoped_restore-selftests.c,
1996 unittests/string_view-selftests.c, unittests/style-selftests.c,
1997 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
1998 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
1999 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
2000 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
2001 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
2002 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
2004 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2006 * linespec.c (decode_digits_list_mode): Set explicit_line to a
2008 (decode_digits_ordinary): Set explicit_line field in sal.
2009 * symtab.c (skip_prologue_sal): Don't skip prologue for a
2010 symtab_and_line that was set on an explicit line number in
2011 assembler code. Do always update the recorded symtab and line if
2012 we do skip the prologue.
2014 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2016 * breakpoint.c (set_breakpoint_location_function): Remove
2017 explicit_loc parameter.
2018 (momentary_breakpoint_from_master): Update call to
2019 set_breakpoint_location_function.
2020 (add_location_to_breakpoint): Likewise.
2022 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2024 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
2025 required features based on default bfd type when no specific bfd
2028 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2030 * NEWS: Mention that GDB printf and eval commands can now print
2031 C-style and Ada-style convenience var strings without
2032 calling the inferior.
2033 * printcmd.c (printf_c_string): Locally print GDB internal var
2034 instead of transiting via the inferior.
2035 (printf_wide_c_string): Likewise.
2037 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2039 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
2041 2019-07-04 Tom Tromey <tom@tromey.com>
2044 * tui/tui-winsource.c (tui_clear_source_content): Update.
2045 (tui_source_window_base::set_is_exec_point_at): Fix comment.
2046 (tui_update_breakpoint_info): Update.
2047 (tui_set_exec_info_content): Update.
2048 * tui/tui-source.c (tui_set_source_content_nil): Update.
2049 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
2051 * tui/tui-data.h (enum tui_bp_flag): New.
2052 (tui_bp_flags): New enum flags type.
2053 (struct tui_source_element) <break_mode>: Change type. Rename
2055 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
2056 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
2058 * tui/tui-winsource.h: Fix comment.
2060 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2062 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
2063 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
2064 (store_fpregs_to_thread)
2065 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
2066 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
2067 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
2068 (IWMMXT_REGS_SIZE): Add define.
2069 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
2070 (fetch_vfp_regs, store_vfp_regs)
2071 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
2072 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
2074 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2076 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
2078 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
2079 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
2080 (ARM_INT_REGISTER_SIZE): ...to this.
2081 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
2082 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
2083 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
2084 (arm_linux_collect_gregset, supply_nwfpe_register)
2085 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
2087 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
2088 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
2089 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
2090 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
2091 (arm_return_in_memory, arm_store_return_value)
2092 (arm_get_longjmp_target, arm_register_g_packet_guesses)
2093 (arm_record_ld_st_multiple): Likewise.
2094 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
2095 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
2097 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2099 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
2100 AARCH64_DISPLACED_MODIFIED_INSNS.
2101 * aarch64-tdep.c (struct aarch64_displaced_step_data)
2102 (aarch64_displaced_step_copy_insn): Likewise.
2103 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
2104 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
2105 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
2106 ARM_DISPLACED_MODIFIED_INSNS.
2107 * arm-tdep.c (arm_gdbarch_init): Likewise.
2108 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
2109 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
2110 (struct arm_displaced_step_closure): Use
2111 ARM_DISPLACED_MODIFIED_INSNS.
2113 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2115 * features/Makefile: Remove unused xml files.
2116 * features/aarch64.xml: Remove.
2117 * features/i386/amd64-avx-avx512-linux.xml: Remove.
2118 * features/i386/amd64-avx-avx512.xml: Remove.
2119 * features/i386/amd64-avx-linux.xml: Remove.
2120 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
2121 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
2122 * features/i386/amd64-avx-mpx-linux.xml: Remove.
2123 * features/i386/amd64-avx-mpx.xml: Remove.
2124 * features/i386/amd64-avx.xml: Remove.
2125 * features/i386/amd64-linux.xml: Remove.
2126 * features/i386/amd64-mpx-linux.xml: Remove.
2127 * features/i386/amd64-mpx.xml: Remove.
2128 * features/i386/amd64.xml: Remove.
2129 * features/i386/i386-avx-avx512-linux.xml: Remove.
2130 * features/i386/i386-avx-avx512.xml: Remove.
2131 * features/i386/i386-avx-linux.xml: Remove.
2132 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
2133 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
2134 * features/i386/i386-avx-mpx-linux.xml: Remove.
2135 * features/i386/i386-avx-mpx.xml: Remove.
2136 * features/i386/i386-avx.xml: Remove.
2137 * features/i386/i386-linux.xml: Remove.
2138 * features/i386/i386-mmx-linux.xml: Remove.
2139 * features/i386/i386-mmx.xml: Remove.
2140 * features/i386/i386-mpx-linux.xml: Remove.
2141 * features/i386/i386-mpx.xml: Remove.
2142 * features/i386/i386.xml: Remove.
2143 * features/i386/x32-avx-avx512-linux.xml: Remove.
2144 * features/i386/x32-avx-linux.xml: Remove.
2145 * features/i386/x32-linux.xml: Remove.
2147 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2149 * regformats/aarch64.dat: Remove.
2150 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
2151 * regformats/i386/amd64-avx-linux.dat: Remove.
2152 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
2153 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
2154 * regformats/i386/amd64-linux.dat: Remove.
2155 * regformats/i386/amd64-mpx-linux.dat: Remove.
2156 * regformats/i386/amd64.dat: Remove.
2157 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
2158 * regformats/i386/i386-avx-linux.dat: Remove.
2159 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
2160 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
2161 * regformats/i386/i386-linux.dat: Remove.
2162 * regformats/i386/i386-mmx-linux.dat: Remove.
2163 * regformats/i386/i386-mpx-linux.dat: Remove.
2164 * regformats/i386/i386.dat: Remove.
2165 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
2166 * regformats/i386/x32-avx-linux.dat: Remove.
2167 * regformats/i386/x32-linux.dat: Remove.
2169 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2171 * aarch64-tdep.c: Remove xml self tests.
2172 * amd64-linux-tdep.c: Likewise.
2173 * amd64-tdep.c: Likewise.
2174 * i386-linux-tdep.c: Likewise.
2175 * i386-tdep.c: Likewise.
2177 2019-07-03 Pedro Alves <palves@redhat.com>
2180 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
2181 (pipe_cmd_option_defs): New.
2182 (make_pipe_cmd_options_def_group): New.
2183 (pipe_command): Use gdb::option::process_options.
2184 (pipe_command_completer): New function.
2185 (_initialize_cli_cmds): Install completer for "pipe" command.
2187 2019-07-03 Pedro Alves <palves@redhat.com>
2189 * cli/cli-option.c (union option_value) <string>: New field.
2190 (struct option_def_and_value): Add ctor, move ctor, dtor and
2191 use DISABLE_COPY_AND_ASSIGN.
2192 (option_def_and_value::clear_value): New.
2193 (parse_option, save_option_value_in_ctx, get_val_type_str)
2194 (add_setshow_cmds_for_options): Handle var_string.
2195 * cli-option.h (union option_def::var_address) <string>: New
2197 (struct string_option_def): New.
2198 * maint-test-options.c (struct test_options_opts): Add default
2199 ctor and use DISABLE_COPY_AND_ASSIGN.
2200 <string_opt>: New field.
2201 (test_options_opts::~test_options_opts): New.
2202 (test_options_opts::dump): Also dump "-string".
2203 (test_options_option_defs): Install "string.
2205 2019-07-03 Pedro Alves <palves@redhat.com>
2207 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
2208 option_value with a null enumeration.
2209 (complete_options): Save the option values in the context.
2210 (save_option_value_in_ctx): New, factored out from ...
2211 (process_options): ... here.
2212 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
2214 * maint-test-options.c (test_options_opts::dump): New, factored
2216 (maintenance_test_options_command_mode): ... here.
2217 (maintenance_test_options_command_completion_result): Delete.
2218 (maintenance_test_options_command_completion_text): Update
2220 (maintenance_show_test_options_completion_result): Change
2221 prototype. Just print
2222 maintenance_test_options_command_completion_text.
2223 (save_completion_result): New.
2224 (maintenance_test_options_completer_mode): Pass options context to
2225 complete_options, and then save a dump.
2226 (_initialize_maint_test_options): Use add_cmd to install "maint
2227 show test-options-completion-result".
2229 2019-07-03 Pedro Alves <palves@redhat.com>
2231 * NEWS (New commands): Mention "with" and "maint with".
2232 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
2233 (with_command, with_command_completer): New.
2234 (pipe_command): Adjust to new repeat_previous
2236 (_initialize_cli_cmds): Install the "with" command and its "w"
2238 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
2240 * cli/cli-setshow.c (parse_cli_var_uinteger)
2241 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
2242 argument strings for all var_types.
2243 (get_setshow_command_value_string): New, factored out from ...
2244 (do_show_command): ... this.
2245 * cli/cli-setshow.h: Include <string>.
2246 (get_setshow_command_value_string): Declare.
2247 * command.h (repeat_previous): Now returns const char *. Adjust
2249 * maint.c: Include "cli/cli-cmds.h".
2250 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
2251 (_initialize_maint_cmds): Register the "maintenance with" command.
2252 * top.c (repeat_previous): Move bits from pipe_command here:
2253 Return the saved command line, if any; error out if there's no
2254 command to relaunch.
2256 2019-07-03 Pedro Alves <palves@redhat.com>
2258 * NEWS (New commands): Mention "maint set/show test-settings"
2259 instead of "maint test-settings".
2260 * maint-test-settings.c (maintenance_test_settings_list): Delete.
2261 (maintenance_test_settings_set_list): Rename to ...
2262 (maintenance_set_test_settings_list): ... this.
2263 (maintenance_test_settings_show_list): Rename to ...
2264 (maintenance_show_test_settings_list): ... this.
2265 (maintenance_test_settings_cmd): Delete.
2266 (maintenance_test_settings_set_cmd): ...
2267 (maintenance_set_test_settings_cmd): ... this.
2268 (maintenance_test_settings_show_cmd): ...
2269 (maintenance_show_test_settings_cmd): ... this.
2270 (maintenance_test_settings_show_value_cmd):
2271 (maintenance_show_test_settings_value_cmd): ... this.
2272 (_initialize_maint_test_settings): No longer install the "maint
2273 test-settings" prefix command. Rename "maint test-settings set"
2274 to "maint set test-settings", and "maint test-settings show" to
2275 "maint show test-settings". Adjust all subcommands.
2277 2019-07-03 Pedro Alves <palves@redhat.com>
2279 * maint-test-settings.c: Fix file's intro comment. Replace all
2280 references to "test-options" with references to "test-settings",
2283 2019-07-03 Pedro Alves <palves@redhat.com>
2285 * maint-test-settings.c (maintenance_test_settings_xxx)
2286 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
2288 (maintenance_test_settings_enums): Use them.
2289 (maintenance_test_settings_enum): Default to
2290 maintenance_test_settings_xxx.
2291 (_initialize_maint_test_settings): Initialize
2292 MAINTENANCE_TEST_SETTINGS_FILENAME.
2294 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2296 * breakpoint.h (remove_breakpoints_inf): Change return type to
2297 void, move function documentation here.
2298 * breakpoint.c (remove_breakpoints_inf): Change return type to
2299 void, move function documentation to header.
2301 2019-07-02 Pedro Alves <palves@redhat.com>
2303 * NEWS (Completion improvements): Mention "info threads".
2304 * thread.c (struct info_threads_opts, info_threads_option_defs)
2305 (make_info_threads_options_def_group): New.
2306 (info_threads_command): Use gdb::option::process_options.
2307 (info_threads_command_completer): New.
2308 (_initialize_thread): Use gdb::option::build_help to build the
2309 help text for "info threads".
2311 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2313 * defs.h (generic_load): Move from here...
2314 * symfile.h (generic_load): ... to here. Rename name parameter
2316 * symfile.c (generic_load): Add comment.
2318 2019-07-01 Tom Tromey <tromey@adacore.com>
2321 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
2322 declaration of without_params. Fix formatting.
2324 2019-07-01 Tom Tromey <tromey@adacore.com>
2326 * ada-exp.y (find_primitive_type): Update.
2327 * ada-lang.h (ada_lookup_symbol): Update.
2328 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
2330 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
2332 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
2334 PR breakpoints/24541
2335 * gdbarch.c: Regenerate.
2336 * gdbarch.h: Regenerate.
2337 * gdbarch.sh: Add 'stap_adjust_register'.
2338 * i386-tdep.c: Include '<unordered_set>'.
2339 (i386_stap_adjust_register): New function.
2340 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
2341 * stap-probe.c (stap_parse_register_operand): Call
2342 'gdbarch_stap_adjust_register'.
2344 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
2347 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
2348 * python/python.c (do_start_initialization): Use 'xmalloc'
2349 instead of 'PyMem_Malloc'.
2351 2019-06-28 Tom Tromey <tromey@adacore.com>
2353 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
2356 2019-06-27 Tom Tromey <tromey@adacore.com>
2358 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
2360 (arm_find_mapping_symbol, arm_record_special_symbol)
2361 (_initialize_arm_tdep): Update.
2362 (arm_objfile_data_free): Remove.
2364 2019-06-27 Tom Tromey <tromey@adacore.com>
2366 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
2367 to cp_print_static_field.
2369 2019-06-26 Tom Tromey <tromey@adacore.com>
2371 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
2372 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
2375 2019-06-26 Alan Hayward <alan.hayward@arm.com>
2377 * features/aarch64-core.c (create_feature_aarch64_core):
2379 * features/aarch64-core.xml: Add cpsr flags.
2381 2019-06-26 Alan Hayward <alan.hayward@arm.com>
2383 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
2384 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
2386 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
2388 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
2390 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
2392 (arm_record_special_symbol): Don't insert new symbol in sorted
2393 position, push it at the end.
2395 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
2397 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
2398 (arm_mapping_symbol_s): Remove.
2399 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
2400 (arm_mapping_symbol_vec): New typedef.
2401 (struct arm_per_objfile): Add constructor.
2402 <section_maps>: Change type to
2403 std::unique_ptr<arm_mapping_symbol_vec[]>.
2404 (arm_compare_mapping_symbols): Remove.
2405 (arm_find_mapping_symbol): Adjust to section_maps type change.
2406 (arm_objfile_data_free): Call delete on arm_per_objfile.
2407 (arm_record_special_symbol): Adjust to section_maps type change.
2408 Allocate arm_per_objfile with new.
2410 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2412 * cli/cli-cmds.c (alias_command): Compare the alias prefix
2413 with the command prefix.
2415 2019-06-25 Tom Tromey <tom@tromey.com>
2417 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
2418 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
2420 2019-06-25 Tom Tromey <tom@tromey.com>
2422 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
2424 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
2427 2019-06-25 Tom Tromey <tom@tromey.com>
2429 * tui/tui-winsource.c
2430 (tui_source_window_base::set_is_exec_point_at): Add check against
2433 2019-06-25 Tom Tromey <tom@tromey.com>
2435 * tui/tui-source.c (tui_set_source_content): Don't check before
2437 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
2439 2019-06-25 Tom Tromey <tom@tromey.com>
2441 * tui/tui-winsource.h (tui_update_source_window_as_is)
2442 (tui_alloc_source_buffer, tui_line_is_displayed)
2443 (tui_addr_is_displayed): Change type of win_info.
2444 * tui/tui-winsource.c (tui_update_source_window_as_is)
2445 (tui_clear_source_content, tui_show_source_line)
2446 (tui_show_source_content, tui_source_window_base::refill)
2447 (tui_source_window_base::set_is_exec_point_at)
2448 (tui_source_window_base::set_is_exec_point_at)
2449 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
2450 (tui_alloc_source_buffer, tui_line_is_displayed)
2451 (tui_addr_is_displayed): Change type of win_info. Update.
2452 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2453 (tui_source_window_base::do_make_visible_with_new_height):
2455 * tui/tui-source.c (tui_set_source_content)
2456 (tui_set_source_content_nil)
2457 (tui_source_window::do_scroll_vertical): Update.
2458 * tui/tui-layout.c (show_layout): Update.
2459 * tui/tui-disasm.c (tui_set_disassem_content)
2460 (tui_disasm_window::do_scroll_vertical): Update.
2461 * tui/tui-data.h (tui_win_content): Remove.
2462 (struct tui_gen_win_info) <content, content_size>: Remove.
2463 (struct tui_source_element): Add initializers and destructor.
2464 (union tui_which_element, struct tui_win_element): Remove.
2465 (struct tui_source_window_base) <content>: New field.
2466 (struct tui_data_window): Remove destructor.
2467 (tui_alloc_content, tui_free_win_content)
2468 (tui_free_all_source_wins_content): Don't declare.
2469 * tui/tui-data.c (tui_initialize_static_data): Update.
2470 (init_content_element, tui_alloc_content): Remove.
2471 (~tui_gen_win_info): Update.
2472 (~tui_data_window, tui_free_all_source_wins_content)
2473 (tui_free_win_content, free_content, free_content_elements):
2476 2019-06-25 Tom Tromey <tom@tromey.com>
2478 * tui/tui-winsource.h (tui_clear_source_content)
2479 (tui_erase_source_content, tui_show_source_content): Change type
2481 * tui/tui-winsource.c (tui_clear_source_content)
2482 (tui_erase_source_content, tui_show_source_content): Change type
2484 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2485 * tui/tui-source.h (tui_set_source_content_nil): Change type of
2487 * tui/tui-source.c (tui_set_source_content_nil): Change type of
2489 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
2491 2019-06-25 Tom Tromey <tom@tromey.com>
2493 * tui/tui-winsource.c (tui_clear_source_content)
2494 (tui_source_window_base::set_is_exec_point_at): Update.
2495 * tui/tui-source.c (tui_set_source_content_nil): Update.
2496 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
2498 * tui/tui-data.c (init_content_element): Update.
2500 2019-06-25 Tom Tromey <tom@tromey.com>
2502 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
2503 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
2504 * tui/tui-layout.c (init_and_make_win): Update.
2505 * tui/tui.h (enum tui_win_type): Update.
2506 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
2507 tui_win_is_auxillary.
2508 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
2509 tui_win_is_auxillary.
2511 2019-06-25 Tom Tromey <tom@tromey.com>
2513 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
2514 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
2515 (tui_delete_data_content_windows, tui_display_all_data)
2516 (tui_data_window::do_scroll_vertical, tui_display_data_from):
2518 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
2519 * tui/tui-regs.c (tui_last_regs_line_no)
2520 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
2521 (tui_show_registers): Update.
2522 (tui_show_register_group): Return void. Update.
2523 (tui_display_registers_from, tui_display_reg_element_at_line)
2524 (tui_display_registers_from_line, tui_check_register_values):
2526 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
2528 (struct tui_data_window) <regs_content>: Now a std::vector.
2529 <regs_content_count>: Remove.
2530 (tui_add_content_elements, tui_free_data_content): Don't declare.
2531 * tui/tui-data.c (tui_data_window::clear_detail): Update.
2532 (init_content_element): Remove DATA_WIN case. Add assert.
2533 (tui_add_content_elements): Remove.
2534 (tui_data_window): Update.
2535 (tui_free_data_content): Remove.
2536 (free_content_elements): Remove DATA_WIN case.
2538 2019-06-25 Tom Tromey <tom@tromey.com>
2540 * tui/tui-data.c (tui_data_item_window): Update.
2541 * tui/tui-windata.h (tui_check_data_values): Don't declare.
2542 * tui/tui-windata.c (tui_display_all_data)
2543 (tui_display_data_from_line): Update.
2544 (tui_check_data_values): Remove.
2545 * tui/tui-regs.c (tui_show_register_group)
2546 (tui_display_reg_element_at_line): Update.
2547 * tui/tui-hooks.c (tui_register_changed)
2548 (tui_refresh_frame_and_register_information): Call
2549 tui_check_register_values.
2550 * tui/tui-data.h (struct tui_data_window) <data_content,
2551 data_content_count, data_type>: Remove.
2552 (enum tui_data_type): Remove.
2554 * tui/tui-data.c (tui_data_window::clear_detail)
2555 (~tui_data_window): Update.
2557 2019-06-25 Tom Tromey <tom@tromey.com>
2559 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
2561 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
2562 Rename from tui_first_data_item_displayed. Update.
2563 (tui_data_window::refresh_all)
2564 (tui_data_window::do_scroll_vertical): Update.
2565 * tui/tui-data.h (struct tui_data_window)
2566 <first_data_item_displayed>: Declare new method.
2568 2019-06-25 Tom Tromey <tom@tromey.com>
2570 * tui/tui-data.h (tui_init_generic_part): Don't declare.
2571 * tui/tui-data.c (tui_init_generic_part): Remove, moving
2573 (tui_initialize_static_data): ...here.
2575 2019-06-25 Tom Tromey <tom@tromey.com>
2577 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
2578 (tui_display_registers_from, tui_check_register_values): Update.
2579 (tui_display_register): Remove win_info parameter; update.
2580 (tui_get_register): Change type of parameters.
2581 * tui/tui-data.h (struct tui_data_element): Remove.
2582 (union tui_which_element) <data>: Remove.
2583 <data_window>: Change type.
2584 (struct tui_data_item_window): New.
2585 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
2587 (~tui_data_item_window): New destructor.
2588 (free_content_elements): Remove DATA_ITEM_WIN case.
2590 2019-06-25 Tom Tromey <tom@tromey.com>
2592 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
2595 2019-06-25 Tom Tromey <tom@tromey.com>
2597 * tui/tui-data.h (struct tui_command_element): Remove.
2598 (union tui_which_element) <command>: Remove.
2599 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
2601 (free_content_elements): Remove CMD_WIN case.
2603 2019-06-25 Tom Tromey <tom@tromey.com>
2605 * tui/tui-layout.c (tui_set_layout): Update.
2606 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
2607 * tui/tui-data.c (layout_def): Update.
2609 2019-06-25 Tom Tromey <tom@tromey.com>
2611 * tui/tui-wingeneral.c (tui_refresh_all): Update.
2612 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2613 (tui_source_window_base::set_new_height): Update.
2614 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
2616 (tui_set_locator_fullname, tui_set_locator_info)
2617 (tui_show_frame_info): Update.
2618 * tui/tui-source.c (tui_set_source_content)
2619 (tui_source_is_displayed): Update.
2620 * tui/tui-layout.c (show_source_disasm_command, show_data)
2621 (show_source_or_disasm_and_command): Update.
2622 * tui/tui-disasm.c (tui_set_disassem_content)
2623 (tui_get_begin_asm_address): Update.
2624 * tui/tui-data.h (struct tui_locator_element): Remove.
2625 (union tui_which_element) <locator>: Remove.
2626 (struct tui_locator_window): New.
2627 (tui_locator_win_info_ptr): Change return type.
2628 * tui/tui-data.c (_locator): Change type.
2629 (tui_locator_win_info_ptr): Change return type.
2630 (init_content_element): Remove LOCATOR_WIN case. Add assert.
2631 (tui_alloc_content): Add assert.
2633 2019-06-25 Tom Tromey <tom@tromey.com>
2635 * tui/tui-winsource.c
2636 (tui_exec_info_window::maybe_allocate_content): New method.
2637 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
2638 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
2639 (make_source_or_disasm_window): Add cast.
2640 * tui/tui-data.h (union tui_which_element) <simple_string>:
2642 (struct tui_source_info): New.
2643 (struct tui_source_window_base) <execution_info>: Change type.
2644 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
2645 case, and add assert.
2646 (tui_alloc_content): Add assert.
2648 2019-06-25 Tom Tromey <tom@tromey.com>
2650 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
2651 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
2652 * tui/tui-data.c (tui_alloc_win_info): Remove.
2654 2019-06-25 Tom Tromey <tom@tromey.com>
2656 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
2657 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
2660 2019-06-25 Tom Tromey <tom@tromey.com>
2662 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
2663 make_visible_with_new_height method.
2664 (tui_win_info::make_visible_with_new_height): New method.
2665 (tui_source_window_base::do_make_visible_with_new_height)
2666 (tui_data_window::do_make_visible_with_new_height)
2667 (tui_cmd_window::do_make_visible_with_new_height): New methods.
2668 (make_visible_with_new_height): Remove.
2669 (tui_resize_all, tui_adjust_win_heights): Use
2670 make_visible_with_new_height method.
2671 * tui/tui-data.h (struct tui_win_info)
2672 <do_make_visible_with_new_height, make_visible_with_new_height>:
2674 (struct tui_source_window_base, struct tui_data_window)
2675 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
2678 2019-06-25 Tom Tromey <tom@tromey.com>
2680 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
2682 (update_tab_width): Call update_tab_width method.
2683 * tui/tui-data.h (struct tui_win_info)
2684 (struct tui_source_window_base) <update_tab_width>: New methods.
2686 2019-06-25 Tom Tromey <tom@tromey.com>
2688 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
2690 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
2692 (tui_gen_win_info::make_visible): Update.
2693 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
2695 * tui/tui-data.h (enum tui_box): New enum.
2696 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
2698 2019-06-25 Tom Tromey <tom@tromey.com>
2700 * tui/tui-layout.c (make_source_or_disasm_window): Always use
2701 init_and_make_win for EXEC_INFO_WIN.
2702 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
2704 (struct tui_win_info) <~tui_win_info>: Inline.
2705 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
2707 * tui/tui-data.c (source_win, disasm_win): Remove globals.
2708 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
2710 (tui_initialize_static_data): Update.
2711 (~tui_gen_win_info): Handle more cleanup here.
2712 (~tui_source_window_base): Delete "execution_info".
2713 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
2715 2019-06-25 Tom Tromey <tom@tromey.com>
2717 * tui/tui-layout.c (make_command_window): Don't set
2719 (show_source_disasm_command): Call the reset method.
2720 (show_data): Don't set can_highlight. Call the reset method.
2721 (tui_gen_win_info::reset): Rename from init_gen_win_info
2722 (init_and_make_win): Simplify. Return tui_gen_win_info.
2723 (show_source_or_disasm_and_command): Call the reset method.
2724 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
2725 (struct tui_cmd_window): Set can_highlight.
2727 2019-06-25 Tom Tromey <tom@tromey.com>
2729 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
2731 (tui_make_visible, tui_make_invisible): Rewrite.
2732 (tui_win_info::make_visible): Remove.
2733 (tui_source_window_base::make_visible): Update.
2734 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
2735 method. Moved from...
2736 (struct tui_win_info) <make_visible>: ...here.
2738 2019-06-25 Tom Tromey <tom@tromey.com>
2740 * tui/tui-winsource.c
2741 (tui_source_window_base::do_scroll_horizontal): Remove direction
2743 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
2744 direction parameter.
2745 * tui/tui-win.c (tui_win_info::forward_scroll)
2746 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
2747 (tui_win_info::right_scroll): Update.
2748 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
2749 direction parameter.
2750 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
2751 direction parameter.
2752 * tui/tui-data.h (enum tui_scroll_direction): Remove.
2753 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
2754 Remove direction parameter.
2755 (struct tui_source_window_base, struct tui_source_window)
2756 (struct tui_disasm_window, struct tui_data_window)
2757 (struct tui_cmd_window): Update.
2759 2019-06-25 Tom Tromey <tom@tromey.com>
2761 * tui/tui-winsource.h (tui_set_exec_info_content)
2762 (tui_show_exec_info_content, tui_erase_exec_info_content)
2763 (tui_clear_exec_info_content, tui_update_exec_info): Change
2764 argument to tui_source_window_base.
2765 * tui/tui-winsource.c (tui_set_exec_info_content)
2766 (tui_show_exec_info_content, tui_erase_exec_info_content)
2767 (tui_clear_exec_info_content, tui_update_exec_info): Change
2768 argument to tui_source_window_base.
2770 2019-06-25 Tom Tromey <tom@tromey.com>
2772 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
2773 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
2775 2019-06-25 Tom Tromey <tom@tromey.com>
2777 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
2780 2019-06-25 Tom Tromey <tom@tromey.com>
2782 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
2784 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
2786 * tui/tui-source.c (tui_set_source_content): Update.
2787 * tui/tui-disasm.c (tui_set_disassem_content): Update.
2789 2019-06-25 Tom Tromey <tom@tromey.com>
2791 * tui/tui-win.c (window_name_completer, tui_set_focus)
2792 (tui_all_windows_info): Use name method.
2793 * tui/tui-data.h (struct tui_gen_win_info)
2794 (struct tui_source_window, struct tui_disasm_window)
2795 (struct tui_data_window, struct tui_cmd_window) <name>: New
2797 (tui_win_name): Don't declare.
2798 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
2799 (tui_win_name): Remove.
2801 2019-06-25 Tom Tromey <tom@tromey.com>
2803 * tui/tui-winsource.h (tui_update_source_window)
2804 (tui_update_source_window_as_is): Change parameter type.
2805 * tui/tui-winsource.c (tui_update_source_window): Change win_info
2806 to be a tui_source_window_base.
2807 (tui_update_source_window_as_is): Likewise.
2808 * tui/tui-win.c (make_visible_with_new_height): Update.
2810 2019-06-25 Tom Tromey <tom@tromey.com>
2812 * tui/tui-winsource.c (tui_erase_source_content)
2813 (tui_show_source_content, tui_show_exec_info_content)
2814 (tui_erase_exec_info_content): Use refresh_window method.
2815 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
2816 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
2817 from tui_refresh_win.
2818 (tui_data_window::refresh_window): New method.
2819 (tui_win_info::refresh, tui_source_window_base::refresh)
2820 (tui_refresh_all): Use refresh_window method.
2821 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
2823 * tui/tui-regs.c (tui_display_register): Call refresh_window
2825 * tui/tui-layout.c (show_source_disasm_command)
2826 (show_source_or_disasm_and_command): Call refresh_window method.
2827 * tui/tui-data.h (struct tui_gen_win_info)
2828 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
2831 2019-06-25 Tom Tromey <tom@tromey.com>
2833 * tui/tui.c (tui_rl_other_window, tui_enable)
2834 (tui_is_window_visible, tui_get_command_dimension): Update.
2835 * tui/tui-winsource.c (tui_update_source_window_as_is)
2836 (tui_clear_source_content, tui_erase_source_content)
2837 (tui_show_source_line, tui_source_window_base::refill)
2838 (tui_source_window_base::do_scroll_horizontal)
2839 (tui_source_window_base::set_is_exec_point_at)
2840 (tui_update_breakpoint_info, tui_set_exec_info_content)
2841 (tui_alloc_source_buffer, tui_line_is_displayed)
2842 (tui_addr_is_displayed): Update.
2843 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
2844 (tui_check_and_display_highlight_if_needed)
2845 (tui_win_info::make_visible, tui_win_info::refresh)
2846 (tui_refresh_all): Update.
2847 * tui/tui-windata.c (tui_first_data_item_displayed)
2848 (tui_delete_data_content_windows, tui_erase_data_content)
2849 (tui_display_all_data, tui_data_window::refresh_all)
2850 (tui_check_data_values): Update.
2851 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
2852 (tui_set_win_focus_to, tui_win_info::forward_scroll)
2853 (tui_win_info::backward_scroll, tui_refresh_all_win)
2854 (tui_resize_all, tui_set_focus, tui_all_windows_info)
2855 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
2856 (tui_source_window_base::set_new_height)
2857 (tui_data_window::set_new_height)
2858 (make_invisible_and_set_new_height)
2859 (make_visible_with_new_height, new_height_ok)
2860 (parse_scrolling_args): Update.
2861 * tui/tui-stack.c (tui_show_frame_info): Update.
2862 * tui/tui-source.c (tui_set_source_content)
2863 (tui_set_source_content_nil, tui_source_is_displayed)
2864 (tui_source_window::do_scroll_vertical): Update.
2865 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
2866 (tui_display_registers_from, tui_display_reg_element_at_line)
2867 (tui_check_register_values, tui_reg_command): Update.
2868 * tui/tui-layout.c (tui_default_win_height)
2869 (show_source_disasm_command, show_data, init_and_make_win)
2870 (show_source_or_disasm_and_command): Update.
2871 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2872 (tui_redisplay_readline, tui_mld_flush)
2873 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
2875 * tui/tui-disasm.c (tui_set_disassem_content)
2876 (tui_disasm_window::do_scroll_vertical): Update.
2877 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
2879 (struct tui_win_info): Derive from tui_gen_win_info.
2880 <~tui_win_info>: Mark as override.
2881 <generic>: Remove member.
2882 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
2883 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
2884 (~tui_data_window, ~tui_win_info)
2885 (tui_free_all_source_wins_content): Update.
2886 * tui/tui-command.c (tui_refresh_cmd_win): Update.
2888 2019-06-25 Tom Tromey <tom@tromey.com>
2890 * tui/tui-layout.c (init_and_make_win): Use new.
2891 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
2892 destructor, initializers.
2893 (tui_alloc_generic_win_info): Don't declare.
2894 * tui/tui-data.c (_locator): Add argument to constructor.
2895 (source_win, disasm_win): New globals.
2896 (exec_info): Remove.
2897 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
2899 (tui_alloc_generic_win_info): Remove.
2900 (init_content_element): Use new.
2901 (tui_win_info::tui_win_info): Update.
2902 (free_content_elements) <case DATA_WIN>: Use delete.
2904 2019-06-25 Tom Tromey <tom@tromey.com>
2906 * tui/tui-wingeneral.c (tui_refresh_win): Update.
2907 * tui/tui-windata.c (tui_first_data_item_displayed)
2908 (tui_delete_data_content_windows): Update.
2909 * tui/tui-win.c (tui_data_window::set_new_height): Update.
2910 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
2911 (tui_display_registers_from, tui_check_register_values): Update.
2912 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
2914 * tui/tui-data.c (init_content_element): Update. Allocate the new
2916 (tui_free_data_content): Update.
2917 (free_content_elements) <case DATA_WIN>: Free the window.
2919 2019-06-25 Tom Tromey <tom@tromey.com>
2921 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
2923 * tui/tui-layout.c (make_command_window)
2924 (show_source_disasm_command, show_data, init_and_make_win)
2925 (show_source_or_disasm_and_command): Update.
2926 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
2928 <can_highight, is_highlighted>: Now bool.
2929 (tui_set_win_highlight): Don't declare.
2930 * tui/tui-data.c (tui_set_win_highlight): Remove.
2932 2019-06-25 Tom Tromey <tom@tromey.com>
2934 * tui/tui-wingeneral.c (make_visible): Remove check of window
2937 2019-06-25 Tom Tromey <tom@tromey.com>
2939 * tui/tui-win.c (tui_win_info::max_height)
2940 (tui_cmd_window::max_height): New methods.
2941 (new_height_ok): Call max_height.
2942 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
2943 <max_height>: New method.
2945 2019-06-25 Tom Tromey <tom@tromey.com>
2947 * tui/tui-win.c (tui_source_window_base::set_new_height)
2948 (tui_data_window::set_new_height): New methods.
2949 (make_invisible_and_set_new_height): Call set_new_height method.
2950 * tui/tui-data.h (struct tui_win_info)
2951 (struct tui_source_window_base, struct tui_data_window)
2952 <set_new_height>: New method.
2954 2019-06-25 Tom Tromey <tom@tromey.com>
2956 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
2957 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
2958 tui_refresh_data_win.
2959 * tui/tui-win.c (tui_source_window_base::refresh_all): New
2961 (tui_refresh_all_win): Call the refresh_all method.
2962 (tui_set_focus): Likewise.
2963 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
2964 (struct tui_source_window_base, struct tui_data_window) <refresh>:
2967 2019-06-25 Tom Tromey <tom@tromey.com>
2969 * tui/tui-winsource.h (tui_refill_source_window)
2970 (tui_set_is_exec_point_at): Don't declare.
2971 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
2972 (tui_source_window_base::refill): Rename from
2973 tui_refill_source_window.
2974 (tui_source_window_base::do_scroll_horizontal): Update.
2975 (tui_source_window_base::set_is_exec_point_at): Rename from
2976 tui_set_is_exec_point_at.
2977 (tui_update_all_breakpoint_info): Update.
2978 * tui/tui-stack.c (tui_show_frame_info): Update.
2979 * tui/tui-layout.c (show_data): Add cast.
2980 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
2981 * tui/tui-data.h (struct tui_source_window_base) <refill,
2982 set_is_exec_point_at>: New methods.
2983 (tui_source_windows, tui_add_to_source_windows): Update types.
2984 (tui_add_to_source_windows): Remove redundant declaration.
2985 * tui/tui-data.c (source_windows): Store tui_source_window_base.
2986 (tui_source_windows): Change return type.
2987 (tui_clear_source_windows_detail): Update.
2988 (tui_add_to_source_windows): Change type of parameter.
2989 (tui_free_all_source_wins_content): Update.
2991 2019-06-25 Tom Tromey <tom@tromey.com>
2993 * tui/tui-wingeneral.c (tui_win_info::refresh)
2994 (tui_source_window_base::refresh): New methods.
2995 (tui_refresh_all): Call the refresh method.
2996 * tui/tui-data.h (struct tui_win_info)
2997 (struct tui_source_window_base) <refresh>: New method.
2999 2019-06-25 Tom Tromey <tom@tromey.com>
3001 * tui/tui.h (tui_is_window_visible): Return bool.
3002 * tui/tui.c (tui_is_window_visible): Return bool.
3003 * tui/tui-wingeneral.c (tui_make_window, make_visible)
3004 (tui_make_visible, tui_make_invisible)
3005 (tui_win_info::make_visible)
3006 (tui_source_window_base::make_visible, make_all_visible)
3007 (tui_make_all_visible, tui_make_all_invisible): Update.
3008 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
3009 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
3011 (struct tui_win_info, struct tui_source_window_base)
3012 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
3013 * tui/tui-data.c (tui_init_generic_part): Update.
3015 2019-06-25 Tom Tromey <tom@tromey.com>
3017 * tui/tui-wingeneral.c (tui_win_info::make_visible)
3018 (tui_source_window_base::make_visible): New methods.
3019 (make_all_visible): Make method call.
3020 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
3021 (struct tui_source_window_base, struct tui_cmd_window): Override
3023 (tui_win_is_source_type): Don't declare.
3024 * tui/tui-data.c (tui_win_is_source_type): Remove.
3026 2019-06-25 Tom Tromey <tom@tromey.com>
3028 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
3031 2019-06-25 Tom Tromey <tom@tromey.com>
3033 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
3034 Inline constructor. Add initializers for members.
3035 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
3036 constructors; now inline in class.
3038 2019-06-25 Tom Tromey <tom@tromey.com>
3040 * tui/tui-regs.c (tui_show_registers): Update.
3041 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
3043 * tui/tui-data.c (tui_data_window::clear_detail)
3044 (tui_data_window): Update.
3046 2019-06-25 Tom Tromey <tom@tromey.com>
3048 * tui/tui-windata.c (tui_display_all_data)
3049 (tui_display_data_from_line, tui_display_data_from)
3050 (tui_check_data_values, tui_data_window::do_scroll_vertical):
3052 * tui/tui-regs.c (tui_last_regs_line_no)
3053 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
3054 (tui_show_registers, tui_show_register_group)
3055 (tui_display_registers_from, tui_display_reg_element_at_line)
3056 (tui_display_registers_from_line, tui_check_register_values)
3057 (tui_reg_next, tui_reg_prev): Update.
3058 * tui/tui-layout.c (tui_set_layout, show_data): Update.
3059 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
3061 (struct tui_win_info) <detail>: Remove. Add new fields from
3063 (TUI_DATA_WIN): Add cast.
3064 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
3065 (~tui_data_window): Simplify.
3067 2019-06-25 Tom Tromey <tom@tromey.com>
3069 * tui/tui-layout.c (show_source_disasm_command)
3070 (show_source_or_disasm_and_command): Update.
3071 * tui/tui-io.c (update_cmdwin_start_line)
3072 (tui_redisplay_readline): Update.
3073 * tui/tui-data.h (struct tui_command_info): Remove.
3074 (struct tui_win_info) <detail>: Remove command_info member.
3075 (struct tui_data_window) <start_line>: New member, from
3077 (TUI_CMD_WIN): Add casts.
3079 2019-06-25 Tom Tromey <tom@tromey.com>
3081 * tui/tui-winsource.c (tui_update_source_window)
3082 (tui_refill_source_window)
3083 (tui_source_window_base::do_scroll_horizontal)
3084 (tui_update_breakpoint_info, tui_set_exec_info_content)
3085 (tui_show_exec_info_content, tui_erase_exec_info_content)
3086 (tui_clear_exec_info_content): Update.
3087 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
3089 * tui/tui-win.c (make_invisible_and_set_new_height)
3090 (make_visible_with_new_height): Update.
3091 * tui/tui-source.c (tui_set_source_content)
3092 (tui_show_symtab_source): Update.
3093 * tui/tui-layout.c (extract_display_start_addr)
3094 (show_source_disasm_command, show_data)
3095 (make_source_or_disasm_window)
3096 (show_source_or_disasm_and_command): Update.
3097 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
3098 (tui_disasm_window::do_scroll_vertical): Remove shadowing
3100 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
3101 to tui_source_window_base.
3102 (struct tui_win_info) <detail>: Remove source_info member.
3103 (struct tui_source_window_base) <has_locator>: Inline.
3104 Move contents from tui_source_info; rename has_locator member to
3106 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
3107 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
3109 (tui_source_window_base::clear_detail, ~tui_source_window_base):
3111 (tui_free_all_source_wins_content): Cast to
3112 tui_source_window_base.
3114 2019-06-25 Tom Tromey <tom@tromey.com>
3116 * tui/tui-win.c (make_invisible_and_set_new_height)
3117 (make_visible_with_new_height): Call has_locator method.
3118 * tui/tui-layout.c (show_source_disasm_command, show_data)
3119 (show_source_or_disasm_and_command): Update for bool change.
3120 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
3121 (tui_win_info) <has_locator>: New method.
3122 (struct tui_source_window_base) <has_locator>: New method.
3123 (tui_win_has_locator): Don't declare.
3124 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
3125 from tui_win_has_locator.
3126 (tui_source_window_base): Use false, not FALSE.
3128 2019-06-25 Tom Tromey <tom@tromey.com>
3130 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
3131 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
3132 clear_detail method directly.
3133 (tui_clear_win_detail): Remove.
3135 2019-06-25 Tom Tromey <tom@tromey.com>
3137 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
3138 "this", not TUI_DISASM_WIN.
3140 2019-06-25 Tom Tromey <tom@tromey.com>
3142 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
3144 * tui/tui-winsource.c
3145 (tui_source_window_base::do_scroll_horizontal): Rename from
3146 tui_horizontal_source_scroll.
3147 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
3148 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
3149 from tui_vertical_data_scroll.
3150 * tui/tui-win.h (tui_scroll): Don't declare.
3151 * tui/tui-win.c (tui_win_info::forward_scroll)
3152 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
3153 (tui_win_info::right_scroll): Rename and update.
3154 (tui_scroll_forward_command, tui_scroll_backward_command)
3155 (tui_scroll_left_command, tui_scroll_right_command): Update.
3156 (tui_scroll): Remove.
3157 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
3158 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
3159 from tui_vertical_source_scroll.
3160 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
3161 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
3162 from tui_vertical_disassem_scroll.
3163 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
3164 do_scroll_horizontal>: New methods.
3165 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
3167 (struct tui_source_window_base): Add do_scroll_horizontal.
3168 (struct tui_source_window, struct tui_disasm_window): Add
3170 (struct tui_data_window, struct tui_cmd_window): Add
3171 do_scroll_horizontal and do_scroll_vertical.
3172 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
3174 2019-06-25 Tom Tromey <tom@tromey.com>
3176 * tui/tui-data.h (struct tui_source_window_base): New struct.
3177 (struct tui_source_window): Derive from tui_source_window_base.
3178 (struct tui_disasm_window): New struct.
3179 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
3180 from tui_source_window::clear_detail.
3181 (tui_source_window_base): Rename from tui_source_window.
3182 (~tui_source_window_base): Rename from ~tui_source_window.
3183 (tui_alloc_win_info): Create a tui_disasm_window.
3185 2019-06-25 Tom Tromey <tom@tromey.com>
3187 * tui/tui-data.h (struct tui_source_window)
3188 (struct tui_data_window): Declare destructors.
3189 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
3191 (tui_win_info): Simplify.
3193 2019-06-25 Tom Tromey <tom@tromey.com>
3195 * tui/tui-winsource.c (tui_display_main)
3196 (tui_update_source_windows_with_addr)
3197 (tui_update_all_breakpoint_info): Update.
3198 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3199 (new_height_ok, parse_scrolling_args): Update.
3200 * tui/tui-stack.c (tui_show_frame_info): Update.
3201 * tui/tui-data.h (struct tui_list): Remove.
3202 (tui_source_windows): Return a reference to a std::vector.
3203 * tui/tui-data.c (source_windows): Now a std::vector.
3204 (tui_source_windows): Change return type.
3205 (tui_clear_source_windows): Rewrite.
3206 (tui_clear_source_windows_detail, tui_add_to_source_windows)
3207 (tui_free_all_source_wins_content): Rewrite.
3209 2019-06-25 Tom Tromey <tom@tromey.com>
3211 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
3212 (struct tui_data_window, struct tui_cmd_window): Declare
3213 clear_detail method.
3214 * tui/tui-data.c (tui_source_window::clear_detail)
3215 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
3217 (tui_clear_win_detail): Simplify.
3219 2019-06-25 Tom Tromey <tom@tromey.com>
3221 * tui/tui-layout.c (make_source_window, make_disasm_window)
3222 (make_source_or_disasm_window): Remove win_info_ptr parameter.
3223 Return the new window.
3224 (show_source_disasm_command, show_data)
3225 (show_source_or_disasm_and_command): Update.
3227 2019-06-25 Tom Tromey <tom@tromey.com>
3229 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
3230 parameter. Return the new window.
3231 (show_source_disasm_command): Update and remove NULL check.
3232 (show_source_or_disasm_and_command): Update.
3234 2019-06-25 Tom Tromey <tom@tromey.com>
3236 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
3238 2019-06-25 Tom Tromey <tom@tromey.com>
3240 * tui/tui-data.h (struct tui_win_info): Make constructor
3241 protected. Make destructor virtual. Add initializers.
3242 (tui_source_window, tui_data_window, tui_cmd_window): New
3244 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
3245 constructor. Add "type" parameter.
3246 (tui_source_window, tui_data_window, tui_cmd_window): New
3248 (tui_alloc_win_info): Instantiate the appropriate subclass.
3250 2019-06-25 Tom Tromey <tom@tromey.com>
3252 * tui/tui-win.c (tui_resize_all): Use delete.
3253 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
3255 (tui_free_window): Don't declare.
3256 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
3259 2019-06-25 Tom Tromey <tom@tromey.com>
3261 * tui/tui-data.h (struct tui_win_info): Add constructor.
3262 * tui/tui-data.c (tui_alloc_win_info): Use new.
3263 (tui_free_window): Use delete.
3265 2019-06-22 Tom Tromey <tom@tromey.com>
3267 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
3269 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
3271 2019-06-22 Tom Tromey <tom@tromey.com>
3273 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
3275 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
3277 2019-06-22 Tom de Vries <tdevries@suse.de>
3279 * dwarf2read.c (create_addrmap_from_aranges)
3280 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
3283 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
3285 * dwarf2read.h (dwarf2_section_info_def): Remove.
3286 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
3287 * dwarf2read.c (struct dwo_sections) <types>: Change type to
3288 std::vector<dwarf2_section_info>.
3289 (struct dwo_file) <~dwo_file>: Remove.
3290 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
3292 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
3293 (dwarf2_read_debug_names): Likewise.
3294 (create_debug_types_hash_table): Change parameter type to
3295 array_view, adjust code accordingly.
3296 (dwarf2_locate_dwo_sections): Adjust to std::vector.
3297 (partial_die_info::fixup): Likewise.
3298 (determine_prefix): Likewise.
3299 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
3301 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3303 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
3305 <~dwo_file>: Remove call to gdb_bfd_unref.
3306 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
3307 gdb_bfd_ref_ptr::get.
3309 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3311 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
3313 * dwarf2read.c (struct dwo_file): Initialize fields.
3315 (free_dwo_file): Remove, move content to ~dwo_file.
3316 (struct dwo_file_deleter): Remove.
3317 (dwo_file_up>: Remove custom deleter.
3318 (free_dwo_files): Remove.
3319 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
3321 (process_skeletonless_type_units): Call unique_ptr::get.
3322 (allocate_dwo_file_hash_table): Add deleter to created hash
3323 table. Change return type to htab_up.
3324 (lookup_dwo_file_slot): Don't memset dwo_file, call
3326 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
3327 (create_dwo_unit_in_dwp_v2): Likewise.
3328 (open_and_init_dwo_file): Likewise.
3329 (free_dwo_file_from_slot): Remove.
3331 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3333 * dwarf2read.h (struct dwarf2_section_info) <readin,
3334 is_virtual>: Change type to bool.
3335 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
3338 2019-06-19 Tom Tromey <tom@tromey.com>
3340 * tui/tui-data.h (tui_init_content_element): Don't declare.
3342 2019-06-19 Tom Tromey <tom@tromey.com>
3344 * tui/tui-data.h (tui_init_win_info): Don't declare.
3346 2019-06-19 Tom de Vries <tdevries@suse.de>
3348 * dwarf2read.h (abstract_to_concrete): Change type to
3349 std::unordered_map<sect_offset, std::vector<sect_offset>,
3350 gdb::hash_enum<sect_offset>>.
3352 2019-06-19 Tom Tromey <tromey@adacore.com>
3354 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
3355 EVAL_AVOID_SIDE_EFFECTS specially.
3357 2019-06-19 Tom Tromey <tromey@adacore.com>
3359 * source-cache.c (highlighter): New global.
3360 (source_cache::get_source_lines): Create a highlighter on demand.
3362 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
3364 * defs.h (deprecated_interactive_hook): Delete declaration.
3365 * interps.c (clear_interpreter_hooks): Remove use of
3366 deprecated_interactive_hook.
3367 * top.c (deprecated_interactive_hook): Delete definition.
3368 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
3370 2019-06-18 Tom de Vries <tdevries@suse.de>
3373 * dwarf2read.h (abstract_to_concrete): Change type from
3374 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
3375 std::unordered_map<sect_offset, std::vector<sect_offset>>.
3376 * dwarf2read.c (read_variable): Update.
3377 (dwarf2_fetch_die_loc_sect_off): Update.
3379 2019-06-17 Tom de Vries <tdevries@suse.de>
3382 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
3383 accessing parent[parent_len - 1].
3385 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
3388 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
3389 call dtrace_process_dof with NULL dof.
3391 2019-06-16 Tom de Vries <tdevries@suse.de>
3394 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
3396 2019-06-16 Tom Tromey <tom@tromey.com>
3398 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
3399 (make_all_visible): Use address of member.
3401 2019-06-16 Tom Tromey <tom@tromey.com>
3403 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
3404 (tui_free_window, free_content, free_content_elements): Remove
3406 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
3408 * tui/tui-regs.c (tui_show_register_group)
3409 (tui_display_registers_from, tui_display_reg_element_at_line):
3410 Remove unnecessary cast.
3412 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
3414 * linux-nat.c (normal_mask): Delete.
3415 (_initialize_linux_nat): Don't initialise normal_mask.
3417 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
3420 * dwarf-index-write.h (write_psymtabs_to_index): Add
3421 dwz_basename parameter.
3422 * dwarf-index-write.c (write_gdbindex): Move file writing to
3423 write_gdbindex_1. Change return type void.
3424 (assert_file_size): Move up, remove filename parameter.
3425 (write_gdbindex_1): New function.
3426 (write_debug_names): Change return type to void, call
3428 (struct index_wip_file): New struct.
3429 (write_psymtabs_to_index): Add dwz_basename parameter. Move
3430 file logic to index_wip_file. Write index for dwz file if
3432 (save_gdb_index_command): Pass basename of dwz file, if present.
3433 * dwarf-index-cache.c (index_cache::store): Obtain and pass
3434 build-id of dwz file, if present.
3435 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
3436 (dwarf2_get_dwz_file): Likewise.
3437 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
3438 (dwarf2_get_dwz_file): Likewise.
3440 2019-06-16 Tom Tromey <tom@tromey.com>
3442 * coffread.c (process_coff_symbol): Use xstrdup.
3443 * value.c (create_internalvar): Use xstrdup.
3445 2019-06-16 Tom Tromey <tom@tromey.com>
3447 * valops.c (value_cast, value_slice): Remove unnecessary cast.
3448 * breakpoint.c (stopin_command, stopat_command)
3449 (until_break_command, decode_location_default): Remove unnecessary
3451 * utils.c (subset_compare): Remove unnecessary cast.
3452 * ada-lang.c (ada_update_initial_language): Remove unnecessary
3454 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
3456 * infcmd.c (path_command): Remove unnecessary cast.
3457 * coffread.c (decode_type): Remove unnecessary cast.
3458 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
3459 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
3460 * tui/tui-stack.c (tui_show_locator_content)
3461 (tui_show_frame_info): Remove unnecessary cast.
3462 * tui/tui-win.c (tui_scroll_forward_command)
3463 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
3464 (parse_scrolling_args): Remove unnecessary cast.
3465 * tui/tui-data.c (init_win_info, tui_del_window)
3466 (tui_free_window, tui_del_data_windows, tui_free_data_content)
3467 (free_content_elements): Remove unnecessary cast.
3468 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
3470 * tui/tui-source.c (tui_set_source_content)
3471 (tui_vertical_source_scroll): Remove unnecessary cast.
3472 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
3474 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
3475 * tui/tui-regs.c (tui_display_registers_from)
3476 (tui_display_register): Remove unnecessary cast.
3477 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
3478 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
3479 (make_visible): Remove unnecessary cast.
3480 * tui/tui-winsource.c (tui_erase_source_content)
3481 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
3483 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
3484 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
3485 * stabsread.c (read_type, read_array_type, read_range_type):
3486 Remove unnecessary cast.
3487 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
3488 (parse_symbol, parse_type, upgrade_type, parse_external)
3489 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
3491 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
3493 2019-06-16 Tom Tromey <tom@tromey.com>
3495 * tui/tui-data.c (tui_alloc_generic_win_info)
3496 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
3499 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
3500 Andrew Burgess <andrew.burgess@embecosm.com>
3502 * f-typeprint.c (f_print_type): Don't return early for not
3503 associated or not allocated types.
3504 (f_type_print_varspec_suffix): Add print_rank parameter and print
3505 ranks of array types in case they dangling.
3506 (f_type_print_base): Add print_rank parameter.
3508 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3510 * NEWS: Mention new MI commands.
3511 * break-catch-throw.c (enum exception_event_kind): Move to
3513 (print_mention_exception_catchpoint): Output text as a single
3515 (catch_exception_command_1): Rename to...
3516 (catch_exception_event): ...this, make non-static, update header
3517 command, and change some parameter types.
3518 (catch_catch_command): Update for changes to
3519 catch_exception_command_1.
3520 (catch_throw_command): Likewise.
3521 (catch_rethrow_command): Likewise.
3522 * breakpoint.c (enum exception_event_kind): Delete.
3523 * breakpoint.h (enum exception_event_kind): Moved here from
3524 break-catch-throw.c.
3525 (catch_exception_event): Declare.
3526 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
3527 (mi_cmd_catch_throw): New function.
3528 (mi_cmd_catch_rethrow): New function.
3529 (mi_cmd_catch_catch): New function.
3530 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
3531 'catch-catch' entries.
3532 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
3533 (mi_cmd_catch_rethrow): Declare.
3534 (mi_cmd_catch_catch): Declare.
3536 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3538 * annotate.c (annotate_source_line): Change return type to void,
3539 update implementation to match.
3540 * annotate.h (annotate_source_line): Change return type to void,
3541 update header comment.
3542 * stack.c (print_frame_info): Don't change what frame information
3543 is printed based on whether annotations are on or not.
3545 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3547 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
3548 (annotate_source): Make static.
3549 (annotate_source_line): Moved from source.c and renamed from
3550 identify_source_line. Update the return type.
3551 * annotate.h (annotate_source): Delete declaration.
3552 (annotate_source_line): Declaration moved from source.h, and
3553 renamed from identify_source_line. Return type updated.
3554 * source.c (identify_source_line): Moved to annotate.c and renamed
3555 to annotate_source_line.
3556 (info_line_command): Remove check of annotation_level.
3557 * source.h (identify_source_line): Move declaration to annotate.h
3558 and rename to annotate_source_line.
3559 * stack.c: Add 'annotate.h' include.
3560 (print_frame_info): Remove check of annotation_level before
3561 calling annotate_source_line.
3563 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3565 * source-cache.c (source_cache::get_plain_source_lines): Use
3566 open_source_file_with_line_charpos instead of just
3567 open_source_file, remove call to find_source_lines.
3568 (source_cache::get_source_lines): Likewise.
3569 * source.c (find_source_lines): Make static.
3570 (get_filename_and_charpos): Renamed into...
3571 (open_source_file_with_line_charpos): ..this along with changes to
3572 return a scoped_fd, and some other minor clean ups.
3573 (identify_source_line): Use open_source_file_with_line_charpos.
3574 (search_command_helper): Use open_source_file_with_line_charpos
3575 instead of just open_source_file, remove call to
3577 * source.h (open_source_file_with_line_charpos): Declare new
3579 (find_source_lines): Delete declaration.
3581 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3583 * source.c (get_filename_and_charpos): Remove fullname
3585 (identify_source_line): Update call to get_filename_and_charpos.
3587 2019-06-14 Tom Tromey <tromey@adacore.com>
3590 * ui-style.h (skip_ansi_escape): Update comment.
3591 * ui-file.h (class no_terminal_escape_file): New class.
3592 * ui-file.c (no_terminal_escape_file::write)
3593 (no_terminal_escape_file::puts): New methods.
3594 * cli/cli-logging.c (handle_redirections): Use
3595 no_terminal_escape_file.
3597 2019-06-14 Tom Tromey <tromey@adacore.com>
3599 * NEWS: Move convenience variable news above Python news.
3601 2019-06-14 Tom Tromey <tom@tromey.com>
3603 * gnulib: Move directory to top-level.
3604 * configure.ac: Don't configure gnulib.
3605 * configure: Rebuild.
3606 * common/common-defs.h: Use new path to gnulib.
3607 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
3609 (INCGNU): Look in new gnulib location.
3610 (HFILES_NO_SRCDIR): Remove gnulib files.
3611 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
3612 (generated_files): Remove GNULIB_H.
3613 ($(LIBGNU), all-lib): Remove targets.
3614 (distclean): Don't mention GNULIB_BUILDDIR.
3615 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
3617 2019-06-14 Tom Tromey <tromey@adacore.com>
3619 * symfile.c (add_symbol_file_command): Remove obsolete comment.
3620 Warn if symbol file does not provide any symbols.
3622 2019-06-14 Tom Tromey <tromey@adacore.com>
3624 * source.c (find_and_open_source): Respect basenames_may_differ.
3626 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
3628 * annotate.c (annotate_breakpoints_invalid): Make use of
3629 scoped_restore_terminal_state.
3630 (annotate_frames_invalid): Likewise.
3632 2019-06-14 Tom Tromey <tromey@adacore.com>
3634 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
3635 allow assignment to an internalvar.
3637 2019-06-14 Tom Tromey <tromey@adacore.com>
3639 * ada-lex.l: Allow "_" in attribute names.
3641 2019-06-14 Tom Tromey <tromey@adacore.com>
3644 * regcache.c (registers_changed): Don't call alloca.
3645 * top.c (execute_command): Don't call alloca.
3647 2019-06-13 Pedro Alves <palves@redhat.com>
3649 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
3650 'expression'. When parsing an expression, error out if there's
3651 junk after "unlimited".
3652 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
3653 (do_set_command): Adjust calls to is_unlimited_literal.
3655 2019-06-13 Pedro Alves <palves@redhat.com>
3657 * compile/compile.c (make_compile_options_def_group): Add braces
3658 around array_view initializer.
3659 * thread.c (make_thread_apply_all_options_def_group)
3660 (make_thread_apply_all_options_def_group): Likewise.
3662 2019-06-13 Pedro Alves <palves@redhat.com>
3664 * NEWS (New commands): Mention "maint test-options
3665 require-delimiter", "maint test-options unknown-is-error", "maint
3666 test-options unknown-is-operand" and "maint show
3667 test-options-completion-result".
3668 (New command options, command completion): New section.
3669 (Completion improvements): New section.
3670 Mention that you can abbreviate "unlimited".
3672 2019-06-13 Pedro Alves <palves@redhat.com>
3674 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
3675 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
3676 * unittests/cli-utils-selftests.c (test_parse_flags)
3677 (test_parse_flags_qcs): Delete.
3678 (test_cli_utils): Don't call deleted functions.
3680 2019-06-13 Pedro Alves <palves@redhat.com>
3682 * thread.c: Include "cli/cli-option.h".
3683 (tp_array_compar_ascending): Global.
3684 (tp_array_compar): Delete function.
3685 (tp_array_compar_ascending, tp_array_compar_descending): New
3687 (ascending_option_def, qcs_flag_option_def)
3688 (thr_qcs_flags_option_defs)
3689 (make_thread_apply_all_options_def_group)
3690 (make_thread_apply_options_def_group): New.
3691 (thread_apply_all_command): Use gdb::option::process_options.
3692 (thread_apply_command_completer)
3693 (thread_apply_all_command_completer): New.
3694 (thread_apply_command): Use gdb::option::process_options.
3695 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
3696 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
3697 to generate help text of "thread apply". Adjust "taas"'s help.
3698 * tid-parse.c (tid_range_parser::in_thread_range): New method.
3699 * tid-parse.h (tid_range_parser::in_thread_range): New method.
3701 2019-06-13 Pedro Alves <palves@redhat.com>
3703 * thread.c (thread_apply_command): Check for invalid TID with
3704 isdigit instead of !isalpha.
3706 2019-06-13 Pedro Alves <palves@redhat.com>
3708 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
3709 (validate_flags_qcs): New.
3710 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
3711 (validate_flags_qcs): Declare.
3712 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
3713 (make_frame_apply_options_def_group): New.
3714 (frame_apply_command_count): Process options with
3715 gdb::option::process_options.
3716 (frame_apply_completer): New.
3717 (frame_apply_level_completer, frame_apply_all_completer)
3718 (frame_apply_completer): New.
3719 (_initialize_stack): Update help of "frame apply", "frame apply
3720 level", "frame apply all" and "faas" to mention supported options
3721 and install command completers.
3722 * stack.h (frame_apply_all_completer): Declare.
3723 * thread.c: Include "stack.h".
3724 (tfaas_command): Add "--".
3725 (_initialize_thread): Update help "tfaas" to mention supported
3726 options and install command completer.
3728 2019-06-13 Pedro Alves <palves@redhat.com>
3730 * completer.c (complete_nested_command_line): New.
3731 (gdb_completion_word_break_characters_throw): Add assertion.
3732 * completer.h (complete_nested_command_line): Declare.
3734 2019-06-13 Pedro Alves <palves@redhat.com>
3736 * stack.c (parse_backtrace_qualifiers): New.
3737 (backtrace_command): Use it.
3738 (backtrace_command_completer): Complete on qualifiers.
3740 2019-06-13 Pedro Alves <palves@redhat.com>
3742 * frame.c: Include "cli/cli-option.h.
3743 (user_set_backtrace_options): New.
3744 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
3746 (get_prev_frame): Adjust.
3747 (boolean_option_def, uinteger_option_def)
3748 (set_backtrace_option_defs): New.
3749 (_initialize_frame): Adjust and use
3750 gdb::option::add_setshow_cmds_for_options to install "set
3751 backtrace past-main" and "set backtrace past-entry".
3752 * frame.h: Include "cli/cli-option.h".
3753 (struct frame_print_options): Forward declare.
3754 (print_frame_arguments_all, print_frame_arguments_scalars)
3755 (print_frame_arguments_none): Declare.
3756 (print_entry_values): Delete declaration.
3757 (struct frame_print_options, user_frame_print_options): New.
3758 (struct set_backtrace_options): New.
3759 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
3760 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3761 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
3762 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
3763 (list_args_or_locals): Add frame_print_options parameter.
3764 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
3765 * python/py-framefilter.c (enumerate_args): Pass down
3766 USER_FRAME_PRINT_OPTIONS.
3767 * stack.c: Include "cli/cli-option.h".
3768 (print_frame_arguments_all, print_frame_arguments_scalars)
3769 (print_frame_arguments_none): Declare.
3770 (print_raw_frame_arguments, print_entry_values): Delete.
3771 (user_frame_print_options): New.
3772 (boolean_option_def, enum_option_def, frame_print_option_defs):
3774 (struct backtrace_cmd_options): New.
3775 (bt_flag_option_def): New.
3776 (backtrace_command_option_defs): New.
3777 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
3778 (print_frame_arg, read_frame_arg, print_frame_args)
3779 (print_frame_info, print_frame): Add frame_print_options parameter
3781 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
3782 (backtrace_command_1): Add frame_print_options and
3783 backtrace_cmd_options parameters and use them.
3784 (make_backtrace_options_def_group): New.
3785 (backtrace_command): Process command options with
3786 gdb::option::process_options.
3787 (backtrace_command_completer): New.
3788 (_initialize_stack): Extend "backtrace"'s help to mention
3789 supported options. Install completer for "backtrace".
3790 Install some settings commands with add_setshow_cmds_for_options.
3792 2019-06-13 Pedro Alves <palves@redhat.com>
3794 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
3795 and that "set/show print raw frame-arguments" are now deprecated.
3797 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
3799 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
3800 * stack.c (_initialize_stack): Install "set/show print
3801 raw-frame-arguments", and deprecate "set/show print raw
3803 * valprint.c (_initialize_valprint): Deprecate "set/show print
3806 2019-06-13 Pedro Alves <palves@redhat.com>
3808 * compile/compile.c (struct compile_options): New.
3809 (compile_flag_option_def, compile_command_option_defs)
3810 (make_compile_options_def_group): New.
3811 (compile_file_command): Handle options with
3812 gdb::option::process_options.
3813 (compile_file_command_completer): New function.
3814 (compile_code_command): Handle options with
3815 gdb::option::process_options.
3816 (compile_code_command_completer): New function.
3817 (_initialize_compiler): Install completers for "compile code" and
3818 "compile file". Mention available options in "compile code" and
3819 "compile code"'s help.
3820 * completer.c (advance_to_completion_word): New, factored out from
3822 (advance_to_expression_complete_word_point): ... this.
3823 (advance_to_filename_complete_word_point): New.
3824 * completer.h (advance_to_filename_complete_word_point): New
3827 2019-06-13 Pedro Alves <palves@redhat.com>
3829 * compile/compile.c: Include "cli/cli-option.h".
3830 (compile_print_value): Scope data pointer is now a
3831 value_print_options pointer; adjust.
3832 (compile_print_command): Process options. Scope data pointer is
3833 now a value_print_options pointer; adjust.
3834 (_initialize_compile): Update "compile print"'s help to include
3835 supported options. Install a completer for "compile print".
3836 * cp-valprint.c (show_vtblprint, show_objectprint)
3837 (show_static_field_print): Delete.
3838 (_initialize_cp_valprint): Don't install "set print
3839 static-members", "set print vtbl", "set print object" here.
3840 * printcmd.c: Include "cli/cli-option.h" and
3841 "common/gdb_optional.h".
3842 (print_command_parse_format): Rework to fill in a
3843 value_print_options instead of a format_data.
3844 (print_value): Change parameter type from format_data pointer to
3845 value_print_options reference. Adjust.
3846 (print_command_1): Process options. Adjust to pass down a
3847 value_print_options.
3848 (print_command_completer): New.
3849 (_initialize_printcmd): Install print_command_completer as
3850 handle_brkchars completer for the "print" command. Update
3851 "print"'s help to include supported options.
3852 * valprint.c: Include "cli/cli-option.h".
3853 (show_vtblprint, show_objectprint, show_static_field_print): Moved
3854 here from cp-valprint.c.
3855 (boolean_option_def, uinteger_option_def)
3856 (value_print_option_defs, make_value_print_options_def_group):
3857 New. Use gdb::option::add_setshow_cmds_for_options to install
3858 "set print elements", "set print null-stop", "set print repeats",
3859 "set print pretty", "set print union", "set print array", "set
3860 print address", "set print symbol", "set print array-indexes".
3861 * valprint.h: Include <string> and "cli/cli-option.h".
3862 (make_value_print_options_def_group): Declare.
3863 (print_value): Change parameter type from format_data pointer to
3864 value_print_options reference.
3865 (print_command_completer): Declare.
3867 2019-06-13 Pedro Alves <palves@redhat.com>
3869 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
3870 (COMMON_SFILES): Add maint-test-settings.c.
3871 * cli/cli-decode.c (boolean_enums): New global, factored out from
3873 (add_setshow_boolean_cmd): ... here.
3874 * cli/cli-decode.h (boolean_enums): Declare.
3875 * cli/cli-option.c: New file.
3876 * cli/cli-option.h: New file.
3877 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
3878 factored out from ...
3879 (parse_cli_boolean_value(const char *)): ... this.
3880 (is_unlimited_literal): Change parameter type to pointer to
3881 pointer. Adjust and advance ARG pointer.
3882 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
3883 (parse_cli_var_enum): New, factored out from ...
3884 (do_set_command): ... this. Adjust.
3885 * cli/cli-setshow.h (parse_cli_boolean_value)
3886 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
3887 (parse_cli_var_enum): Declare.
3888 * cli/cli-utils.c: Include "cli/cli-option.h".
3889 (get_ulongest): New.
3890 * cli/cli-utils.h (get_ulongest): Declare.
3891 (check_for_argument): New overloads.
3892 * maint-test-options.c: New file.
3894 2019-06-13 Pedro Alves <palves@redhat.com>
3896 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
3897 parse a range if "-" is at the end of the string.
3899 2019-06-13 Pedro Alves <palves@redhat.com>
3901 * cli/cli-setshow.c (parse_auto_binary_operation)
3902 (parse_cli_boolean_value): Don't allow "o".
3904 2019-06-13 Pedro Alves <palves@redhat.com>
3906 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
3907 * NEWS: Mention maint test-settings KIND.
3908 * maint-test-settings.c: New file.
3910 2019-06-13 Pedro Alves <palves@redhat.com>
3912 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
3914 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
3917 2019-06-13 Pedro Alves <palves@redhat.com>
3919 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
3922 2019-06-13 Pedro Alves <palves@redhat.com>
3924 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
3926 2019-06-13 Pedro Alves <palves@redhat.com>
3928 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
3929 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
3931 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
3932 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
3934 (check_for_argument): Skip spaces after argument.
3936 2019-06-13 Pedro Alves <palves@redhat.com>
3938 * thread.c (thread_apply_command): Adjust TID parsing.
3939 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
3940 detected before end of string.
3941 (tid_is_in_list): Error out if LIST is invalid.
3943 2019-06-13 Pedro Alves <palves@redhat.com>
3945 * completer.c (complete_line_internal_1): Rewind completion word
3947 (completion_tracker::advance_custom_word_point_by): Change
3948 parameter type to int.
3949 * completer.h (completion_tracker::advance_custom_word_point_by):
3952 2019-06-13 Pedro Alves <palves@redhat.com>
3954 * completer.c (advance_to_completion_word): Handle delimiters.
3956 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
3958 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
3960 2019-06-11 Tom Tromey <tom@tromey.com>
3962 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
3963 (xmalloc_failed): Move to alloc.c.
3964 * alloc.c: New file.
3965 * Makefile.in (COMMON_SFILES): Add alloc.c.
3967 2019-06-11 Tom Tromey <tom@tromey.com>
3969 * nat/linux-waitpid.c: Don't include server.h.
3970 (linux_debug): Remove.
3971 (my_waitpid): Update.
3973 2019-06-11 Tom Tromey <tromey@adacore.com>
3975 * infcall.c (_initialize_infcall): Remove trailing newline from
3977 * user-regs.c (_initialize_user_regs): Remove trailing newline
3979 * typeprint.c (_initialize_typeprint): Remove trailing newline
3981 * reverse.c (_initialize_reverse): Remove trailing newlines from
3983 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
3985 * language.c (add_set_language_command): Remove trailing newline
3987 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
3989 * disasm.c (_initialize_disasm): Remove trailing newline from
3991 * top.c (init_main): Remove trailing newline from help.
3992 * interps.c (_initialize_interpreter): Remove trailing newline
3994 * btrace.c (_initialize_btrace): Remove trailing newlines from
3996 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
3998 * python/python.c (_initialize_python): Remove trailing newline
4000 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
4002 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
4003 from help. Reformat some text.
4004 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
4006 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
4009 2019-06-11 Tom Tromey <tromey@adacore.com>
4011 * darwin-nat.c (darwin_decode_exception_message)
4012 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
4014 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
4016 * valops.c (value_slice): Check for not allocated or not
4019 2019-06-10 Tom de Vries <tdevries@suse.de>
4022 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
4023 sure an empty slot (defined by a 32-bit zero pair) is recognized as
4026 2019-06-10 Tom de Vries <tdevries@suse.de>
4029 * linespec.c (linespec_lexer_lex_string): Remove incorrect
4030 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
4032 2019-06-10 Tom de Vries <tdevries@suse.de>
4035 * symtab.c (struct demangled_name_entry): Add language field.
4036 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
4037 static minimal symbol". Set and use language field.
4039 2019-06-10 Tom Tromey <tromey@adacore.com>
4041 * ada-lang.c (_initialize_ada_language): Update help text.
4043 2019-06-10 Tom Tromey <tromey@adacore.com>
4045 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
4047 * guile/guile.c (handle_boot_error): Don't end warning with a
4049 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
4050 warning with a newline.
4051 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
4053 (s12z_frame_cache): Likewise.
4054 * dwarf-index-cache.c (index_cache::store): Don't end warning with
4056 * solib-svr4.c (disable_probes_interface): Don't end warning with
4058 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
4060 * python/python.c (do_finish_initialization): Don't end warning
4063 2019-06-10 Tom Tromey <tom@tromey.com>
4065 * python/py-breakpoint.c (gdbpy_breakpoint_created)
4066 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
4069 2019-06-10 Tom Tromey <tromey@adacore.com>
4071 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
4073 (elf_new_init): Don't call stabsread_new_init.
4074 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
4075 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
4076 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
4078 2019-06-10 Tom de Vries <tdevries@suse.de>
4082 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
4084 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
4086 * source.c (find_and_open_source): Also rewrite relative file
4089 2019-04-26 Amos Bird <amosbird@gmail.com>
4091 * annotate.c (annotate_thread_exited): Add "thread-exited"
4094 2019-06-06 Tom Tromey <tromey@adacore.com>
4096 * maint.h (class scoped_command_stats): Use
4097 DISABLE_COPY_AND_ASSIGN.
4098 <print_time>: New method.
4099 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
4101 (scoped_command_stats::print_time): New method.
4103 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4105 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
4106 instructions of lengths 6 or 8 bytes.
4108 2019-06-04 Pedro Alves <palves@redhat.com>
4110 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
4112 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
4113 * breakpoint.c (condition_completer): Likewise.
4114 * cli/cli-dump.c (scan_expression): Likewise.
4115 * common/filestuff.c (mkdir_recursive): Likewise.
4116 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
4117 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
4118 (gdb_abspath): Likewise.
4119 * compile/compile-cplus-types.c
4120 (compile_cplus_instance::decl_name): Likewise.
4121 * completer.c (complete_explicit_location):
4122 (signal_completer, reg_or_group_completer_1): Likewise.
4123 * cp-support.c (cp_remove_params_if_any): Likewise.
4124 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
4125 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
4126 * infcmd.c (strip_bg_char): Likewise.
4127 * linespec.c (copy_token_string): Likewise.
4128 * mi/mi-main.c (output_cores): Likewise.
4129 * psymtab.c (psymtab_search_name):
4130 * symfile.c (test_set_ext_lang_command): Likewise.
4131 * target.c (target_fileio_read_stralloc): Likewise.
4132 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
4133 * value.c (complete_internalvar): Likewise.
4135 2019-06-04 Christian Biesinger <cbiesinger@google.com>
4137 Add objfile property to gdb.Type.
4138 * NEWS: Mention Python API addition.
4139 * python/py-type.c (typy_get_objfile): New method.
4141 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4143 * NEWS: Mention the new set|show style [title|highlight].
4144 Mention changes to "show style", "help" and "apropos".
4146 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4148 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
4149 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
4150 instead of print_help_for_command.
4151 (print_doc_of_command): New function.
4152 (help_list): Add 'apropos -v word' suggestion.
4153 (print_help_for_command): Style the command name using title style.
4154 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
4155 (_initialize_cli_cmds): Describe -v in apropos_command help.
4157 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4159 * cli/cli-style.h (cli_style_option): Add name in constructor,
4160 add m_name class member, add constructor with intensity,
4161 add name class function.
4162 (cli_style_option::add_setshow_commands): Remove name argument.
4163 (highlight_style, title_style): New styles.
4164 * cli/cli-style.c (do_show): New function that shows a style
4165 characteristic styling the style name with itself.
4166 (set_style_name): New function.
4167 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
4168 Update all callers according to the changes in cli/cli-style.h.
4169 * utils.h (fputs_highlighted): New function.
4170 * utils.c (fputs_highlighted): Likewise.
4172 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4174 * NEWS: Mention new pipe command and new convenience variables.
4176 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4178 * cli/cli-cmds.c (pipe_command): New function.
4179 (_initialize_cli_cmds): Call add_com for pipe_command.
4180 Define | as an alias for pipe.
4181 (exit_status_set_internal_vars): New function.
4182 (shell_escape): Call exit_status_set_internal_vars.
4183 cli/cli-decode.c (find_command_name_length): Recognize | as
4184 a single character command.
4186 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4188 * gdbcmd.h (execute_command_to_ui_file): New declaration.
4189 top.c (execute_command_to_ui_file): New function, mostly a copy
4190 of execute_command_to_string.
4191 (execute_command_to_string): Implement by calling
4192 execute_command_to_ui_file.
4194 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4196 * top.h (saved_command_line): Remove declaration.
4197 * top.c (previous_saved_command_line, previous_repeat_arguments):
4199 (saved_command_line): Make static, define together with other
4201 (dont_repeat): Clear repeat_arguments.
4202 (repeat_previous, get_saved_command_line, save_command_line):
4204 (gdb_init): Initialize saved_command_line
4205 and previous_saved_command_line.
4206 * main.c (captured_main_1): Remove saved_command_line initialization.
4207 * event-top.c (handle_line_of_input): Update to use
4208 the new 'repeat' related functions instead of direct access to
4210 * command.h (repeat_previous, get_saved_command_line,
4211 save_command_line): New declarations.
4212 (dont_repeat): Add comment.
4214 2019-05-30 Tom Tromey <tromey@adacore.com>
4216 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
4218 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
4220 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
4223 * completer.c (complete): Initialize variable word.
4225 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
4227 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
4228 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
4229 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
4230 'body' is NULL to the outter 'if', protecting the '!is_define'
4233 2019-05-29 Tom Tromey <tromey@adacore.com>
4235 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
4236 (dwarf_unknown): New function.
4237 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
4238 (dwarf_type_encoding_name): Use dwarf_unknown.
4240 2019-05-29 Tom Tromey <tromey@adacore.com>
4243 * cp-valprint.c (cp_print_value_fields): Call
4244 cp_print_static_field inside "try".
4246 2019-05-29 Tom Tromey <tromey@adacore.com>
4248 * inflow.c (struct terminal_info): Add default operator=.
4249 * configure: Rebuild.
4250 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
4251 -Wdeprecated-copy-dtor, -Wredundant-move.
4253 2019-05-29 Tom Tromey <tromey@adacore.com>
4256 * infcmd.c (print_return_value_1): Handle finish_print
4258 (show_print_finish): New function.
4259 (_initialize_infcmd): Add "set/show print finish" commands.
4260 * valprint.c (user_print_options): Initialize new member.
4261 * valprint.h (struct value_print_options) <finish_print>: New
4264 2019-05-28 Tom Tromey <tromey@adacore.com>
4266 * ada-lang.c (ada_remove_Xbn_suffix)
4267 (find_old_style_renaming_symbol)
4268 (parse_old_style_renaming): Remove.
4269 (ada_find_renaming_symbol): Don't call
4270 find_old_style_renaming_symbol.
4271 (ada_is_renaming_symbol): Rename from
4272 ada_find_renaming_symbol. Remove "block" parameter. Return
4274 (ada_read_var_value): Update and simplify.
4275 * ada-exp.y (write_var_or_type): Remove old code.
4277 2019-05-28 Alan Hayward <alan.hayward@arm.com>
4279 * event-top.c: Remove include comment.
4280 * inflow.c (class scoped_ignore_sigttou): Move from here...
4281 * inflow.h (class scoped_ignore_sigttou): ...to here.
4282 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
4283 * top.c: Remove include comment.
4285 2019-05-27 Tom Tromey <tom@tromey.com>
4289 2019-05-22 Tom Tromey <tromey@adacore.com>
4291 * target.c (target_follow_exec): Constify parameter.
4292 * target-delegates.c: Rebuild.
4293 * remote.c (remote_target::follow_exec): Constify parameter.
4294 * infrun.c (follow_exec): Constify parameter.
4295 * target.h (struct target_ops) <follow_exec>: Constify parameter.
4296 (target_follow_exec): Likewise.
4298 2019-05-22 Alan Hayward <alan.hayward@arm.com>
4300 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
4301 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
4303 2019-05-22 Alan Hayward <alan.hayward@arm.com>
4305 * NEWS: Add debugredirect and testsuite sections.
4307 2019-05-22 Simon Cook <simon.cook@embecosm.com>
4309 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
4310 target descriptions using exclusively floating point register name
4313 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
4316 * f-lang.c (build_fortran_types): Handle the case where
4317 gdbarch_floatformat_for_type returns a nullptr.
4319 2019-05-21 Tom de Vries <tdevries@suse.de>
4322 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
4324 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
4327 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
4329 * i386-tdep.c (i386_floatformat_for_type): Use
4330 floatformats_ia64_quad for the 16-byte floating point component
4331 within a fortran 32-byte complex number.
4333 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
4335 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
4336 delete default constructor.
4337 (find_partial_die): Update to return const struct.
4338 (partial_die_parent_scope): Move variable declaration into scope
4339 of its use and change its type to auto.
4340 (guess_partial_die_structure_name): Likewise.
4341 (partial_die_info::fixup): Likewise.
4343 2019-05-17 Tom Tromey <tromey@adacore.com>
4345 * source.c (find_and_open_source): Remove cast.
4347 2019-05-17 Tom Tromey <tromey@adacore.com>
4349 * annotate.c (annotate_source): Make "filename" const.
4350 * annotate.h (annotate_source): Use const.
4352 2019-05-17 Alan Hayward <alan.hayward@arm.com>
4354 * disasm.c (set_disassembler_options): Send errors to stderr.
4356 2019-05-17 Alan Hayward <alan.hayward@arm.com>
4358 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
4359 (cli_interp_base::set_logging): Check debug_redirect.
4360 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
4361 * cli/cli-logging.c (debug_redirect): Add static variable.
4362 (pop_output_files): Add default param.
4363 (handle_redirections): Print debug setting.
4364 (show_logging_command): Likewise.
4365 (_initialize_cli_logging): Add debugredirect command.
4366 * interps.c (current_interp_set_logging): Add debug_redirect
4368 * interps.h (set_logging): Add debug_redirect parameter.
4369 (current_interp_set_logging): Likewise.
4370 * mi/mi-common.h: Likewise.
4371 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
4373 2019-05-17 Alan Hayward <alan.hayward@arm.com>
4374 Tom Tromey <tromey@adacore.com>
4376 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
4378 * cli/cli-interp.h (make_logging_output): Remove declaration.
4379 * cli/cli-logging.c (make_logging_output): Remove function.
4380 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
4382 * ui-file.c (tee_file::tee_file): Remove bools.
4383 (tee_file::~tee_file): Remove deletes.
4384 * ui-file.h (tee_file): Remove bools.
4386 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
4388 * mi/mi-cmds.h (mi_cmd_complete): New function.
4389 * mi/mi-main.c (mi_cmd_complete): Likewise.
4390 * mi/mi-cmds.c: Define new MI command -complete.
4391 * NEWS: Mention new -complete command.
4393 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
4395 * completer.h (complete): New function.
4396 * completer.c (complete): Likewise.
4397 * cli/cli-cmds.c: (complete_command): Update to use new complete()
4398 function defined in completer.h.
4400 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
4402 * MAINTAINERS (Write After Approval): Add myself.
4404 2019-05-17 Tom de Vries <tdevries@suse.de>
4407 * dwarf2read.c (struct cu_partial_die_info): New struct.
4408 (find_partial_die): Return cu_partial_die_info.
4409 (partial_die_parent_scope, guess_partial_die_structure_name)
4410 (partial_die_info::fixup): Handle new return type of find_partial_die.
4412 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4414 * stap-probe.c (stap_parse_register_operand): Make "regname" an
4415 "std::string", simplifying the algorithm.
4417 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4419 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
4420 (stap_static_probe_ops::get_probes): Likewise.
4422 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4424 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
4425 '-')" and "else if".
4426 (stap_parse_single_operand): Join checks for
4427 "gdbarch_stap_parse_special_token_p" and
4428 "gdbarch_stap_parse_special_token" in the same "if" statement.
4429 Invert check when verifying for operation on register
4432 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4434 * stap-probe.c (stap_get_opcode): Update comment.
4435 (stap_get_expected_argument_type): Likewise.
4436 (handle_stap_probe): Likewise.
4438 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4440 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
4441 return type to 'bool'. Adjust comment. Use 'bool' when
4443 (i386_stap_parse_special_token_three_arg_disp): Likewise.
4444 * stap-probe.c (stap_parse_argument_1): Likewise.
4445 (stap_is_operator): Likewise.
4446 (stap_is_generic_prefix): Likewise.
4447 (stap_is_register_prefix): Likewise.
4448 (stap_is_register_indirection_prefix): Likewise.
4449 (stap_is_integer_prefix): Likewise.
4450 (stap_generic_check_suffix): Likewise.
4451 (stap_check_integer_suffix): Likewise.
4452 (stap_check_register_suffix): Likewise.
4453 (stap_check_register_indirection_suffix): Likewise.
4454 (stap_parse_register_operand): Likewise.
4455 (stap_parse_single_operand): Likewise.
4456 (stap_parse_argument_1): Likewise.
4457 (stap_probe::get_argument_count): Likewise.
4458 (stap_is_operator): Likewise.
4460 2019-05-16 Tom Tromey <tromey@adacore.com>
4462 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
4465 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
4467 * linux-thread-db.c (try_thread_db_load_1): Change return type
4469 (try_thread_db_load): Likewise.
4470 (try_thread_db_load_from_pdir_1): Likewise.
4471 (try_thread_db_load_from_pdir): Likewise.
4472 (try_thread_db_load_from_sdir): Likewise.
4473 (try_thread_db_load_from_dir): Likewise.
4474 (thread_db_load_search): Likewise.
4475 (has_libpthread): Likewise.
4476 (thread_db_load): Likewise.
4478 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
4480 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
4481 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
4482 NULL, and complain/return if that's the case.
4484 2019-05-15 John Darrington <john@darrington.wattle.id.au>
4486 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
4487 (advance, posn, abstract_read_memory): New functions.
4488 [struct mem_read_abstraction]: New struct.
4489 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
4491 2019-05-14 Tom Tromey <tromey@adacore.com>
4493 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
4494 value is not lval_memory.
4496 2019-05-14 Tom Tromey <tromey@adacore.com>
4498 * solib.c (info_sharedlibrary_command): Style the file name.
4500 2019-05-14 Alan Hayward <alan.hayward@arm.com>
4502 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
4503 (aarch64_vnv_type): Likewise.
4504 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
4505 * common/tdesc.c: Likewise.
4506 * common/tdesc.h (enum tdesc_type_kind): Likewise.
4507 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
4508 * features/aarch64-fpu.xml: Add ieee half view.
4509 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
4510 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
4511 * gdbtypes.h (struct builtin_type): Likewise.
4512 (struct objfile_type): Likewise.
4514 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
4516 * language.c (language_sniff_from_mangled_name): Fix "langauge"
4518 * location.h (string_to_event_location): Likewise.
4520 2019-05-11 Joel Brobecker <brobecker@adacore.com>
4524 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
4526 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
4527 New variable declaration.
4528 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
4530 (print_one_breakpoint): Use ui_out::test_flags and new global
4531 variable to compute use_fixed_output.
4532 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
4534 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
4535 (mi_multi_location_breakpoint_output_fixed): Remove.
4536 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
4538 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
4539 fix_multi_location_breakpoint_output flag if version >= 3.
4540 * ui-out.h (enum ui_out_flag)
4541 <fix_multi_location_breakpoint_output>: New enumerator.
4543 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
4545 * contrib/cc-with-tweaks.sh: Validate dwz's work.
4547 2019-05-10 Tom Tromey <tromey@adacore.com>
4549 * ada-lang.c (catch_ada_completer): New function.
4550 (_initialize_ada_language): Use it.
4552 2019-05-10 Tom Tromey <tromey@adacore.com>
4554 * thread.c (print_thread_info): Make "requested_threads" const.
4555 * gdbthread.h (print_thread_info): Make "requested_threads"
4557 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
4558 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
4560 2019-05-08 Tom Tromey <tom@tromey.com>
4562 * gdbtypes.c (objfile_type_data): Change type.
4563 (objfile_type, _initialize_gdbtypes): Update.
4565 2019-05-08 Tom Tromey <tom@tromey.com>
4567 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
4568 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
4569 (_initialize_dwarf2_frame): Update.
4571 2019-05-08 Tom Tromey <tom@tromey.com>
4573 * objc-lang.c (objc_objfile_data): Change type.
4574 (find_methods): Update.
4575 (_initialize_objc_lang): Remove.
4577 2019-05-08 Tom Tromey <tom@tromey.com>
4579 * stabsread.c (rs6000_builtin_type_data): Change type.
4580 (rs6000_builtin_type, _initialize_stabsread): Update.
4582 2019-05-08 Tom Tromey <tom@tromey.com>
4584 * mips-tdep.c (mips_pdr_data): Remove.
4585 (_initialize_mips_tdep): Update.
4587 2019-05-08 Tom Tromey <tom@tromey.com>
4589 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
4590 (hppa_init_objfile_priv_data, read_unwind_info)
4591 (find_unwind_entry, _initialize_hppa_tdep): Update.
4593 2019-05-08 Tom Tromey <tom@tromey.com>
4595 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
4596 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
4598 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
4600 2019-05-08 Tom Tromey <tom@tromey.com>
4602 * mdebugread.c (basic_type_data): Change type.
4603 (basic_type, _initialize_mdebugread): Update.
4605 2019-05-08 Tom Tromey <tom@tromey.com>
4607 * common/gdb_unique_ptr.h (struct noop_deleter): New.
4609 2019-05-08 Tom Tromey <tom@tromey.com>
4611 * nto-tdep.c (nto_inferior_data_reg): Change type.
4612 (nto_inferior_data): Update.
4613 (nto_inferior_data_cleanup, nto_new_inferior_data)
4614 (_initialize_nto_tdep): Remove.
4615 * nto-tdep.h (struct nto_inferior_data): Add initializers.
4617 2019-05-08 Tom Tromey <tom@tromey.com>
4619 * ada-lang.c (struct ada_inferior_data): Add initializers.
4620 (ada_inferior_data): Change type.
4621 (ada_inferior_data_cleanup): Remove.
4622 (get_ada_inferior_data, ada_inferior_exit)
4623 (struct ada_pspace_data): Add initializers, destructor.
4624 (ada_pspace_data_handle): Change type.
4625 (get_ada_pspace_data): Update.
4626 (ada_pspace_data_cleanup): Remove.
4628 2019-05-08 Tom Tromey <tom@tromey.com>
4630 * coffread.c (struct coff_symfile_info): Add initializers.
4631 (coff_objfile_data_key): Move lower. Change type.
4632 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
4634 (coff_free_info): Remove.
4636 2019-05-08 Tom Tromey <tom@tromey.com>
4638 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
4639 (fbsd_pspace_data_handle): Move lower. Change type.
4640 (get_fbsd_pspace_data): Update.
4641 (fbsd_pspace_data_cleanup): Remove.
4642 (_initialize_fbsd_tdep): Update.
4644 2019-05-08 Tom Tromey <tom@tromey.com>
4646 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
4647 (get_ada_tasks_pspace_data): Update.
4648 (ada_tasks_pspace_data_cleanup): Remove.
4649 (_initialize_tasks): Update.
4650 (ada_tasks_inferior_data_handle): Change type.
4651 (get_ada_tasks_inferior_data): Update.
4652 (ada_tasks_inferior_data_cleanup): Remove.
4653 (struct ada_tasks_pspace_data): Add initializers.
4655 2019-05-08 Tom Tromey <tom@tromey.com>
4657 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
4658 * symfile-debug.c (debug_sym_get_probes): Change type.
4659 * stap-probe.c (handle_stap_probe):
4660 (stap_static_probe_ops::get_probes): Change type.
4661 * probe.h (class static_probe_ops) <get_probes>: Change type.
4662 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
4663 (parse_probes_in_pspace): Update.
4664 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
4666 (any_static_probe_ops::get_probes): Change type.
4667 * elfread.c (elfread_data): New typedef.
4668 (probe_key): Change type.
4669 (elf_get_probes): Likewise. Update.
4670 (probe_key_free): Remove.
4671 (_initialize_elfread): Update.
4672 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
4674 (dtrace_process_dof_probe, dtrace_process_dof)
4675 (dtrace_static_probe_ops::get_probe): Change type.
4677 2019-05-08 Tom Tromey <tom@tromey.com>
4679 * xcoffread.c (struct xcoff_symfile_info): Rename from
4680 coff_symfile_info. Add initializers.
4681 (xcoff_objfile_data_key): Move lower. Change type.
4682 (XCOFF_DATA): Rewrite.
4683 (xcoff_free_info): Remove.
4684 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
4685 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
4686 (xcoff_initial_scan): Update.
4688 2019-05-08 Tom Tromey <tom@tromey.com>
4690 * solib-svr4.c (struct svr4_info): Add initializers and
4692 <probes_table>: Now an htab_up.
4693 (solib_svr4_pspace_data): Change type.
4694 (free_probes_table): Simplify.
4695 (~svr4_info): Rename from svr4_pspace_data_cleanup.
4696 (get_svr4_info, probes_table_htab_remove_objfile_probes)
4697 (probes_table_remove_objfile_probes, register_solib_event_probe)
4698 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
4699 (_initialize_svr4_solib): Update.
4701 2019-05-08 Tom Tromey <tom@tromey.com>
4703 * remote.c (remote_pspace_data): Change type.
4704 (remote_pspace_data_cleanup): Remove.
4705 (get_remote_exec_file, set_pspace_remote_exec_file)
4706 (_initialize_remote): Update.
4708 2019-05-08 Tom Tromey <tom@tromey.com>
4710 * breakpoint.c (breakpoint_objfile_key): Change type.
4711 (get_breakpoint_objfile_data): Update.
4712 (free_breakpoint_objfile_data): Remove.
4713 (_initialize_breakpoint): Update.
4715 2019-05-08 Tom Tromey <tom@tromey.com>
4717 * linux-tdep.c (struct linux_info): Add initializers.
4718 (linux_inferior_data): Move. Change type.
4719 (invalidate_linux_cache_inf): Update.
4720 (linux_inferior_data_cleanup): Remove.
4721 (get_linux_inferior_data, _initialize_linux_tdep): Update.
4723 2019-05-08 Tom Tromey <tom@tromey.com>
4725 * auxv.c (auxv_inferior_data): Move. Change type.
4726 (auxv_inferior_data_cleanup): Remove.
4727 (invalidate_auxv_cache_inf): Rewrite.
4728 (get_auxv_inferior_data, _initialize_auxv): Update.
4730 2019-05-08 Tom Tromey <tom@tromey.com>
4732 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
4733 (symfile_debug_objfile_data_key): Change type.
4734 (symfile_debug_installed, debug_qf_has_symbols)
4735 (debug_qf_find_last_source_symtab)
4736 (debug_qf_forget_cached_source_info)
4737 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
4738 (debug_qf_print_stats, debug_qf_dump)
4739 (debug_qf_expand_symtabs_for_function)
4740 (debug_qf_expand_all_symtabs)
4741 (debug_qf_expand_symtabs_with_fullname)
4742 (debug_qf_map_matching_symbols)
4743 (debug_qf_expand_symtabs_matching)
4744 (debug_qf_find_pc_sect_compunit_symtab)
4745 (debug_qf_map_symbol_filenames)
4746 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
4747 (debug_sym_new_init, debug_sym_init, debug_sym_read)
4748 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
4749 (debug_sym_read_linetable, debug_sym_relocate): Update.
4750 (symfile_debug_free_objfile): Remove.
4751 (install_symfile_debug_logging, _initialize_symfile_debug):
4754 2019-05-08 Tom Tromey <tom@tromey.com>
4756 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
4757 allocate_on_obstack.
4758 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
4759 (get_dwarf2_per_objfile): Update.
4760 (set_dwarf2_per_objfile): Remove.
4761 (dwarf2_has_info, dwarf2_get_section_info): Update.
4762 (dwarf2_free_objfile): Remove.
4763 (_initialize_dwarf2_read): Update.
4765 2019-05-08 Tom Tromey <tom@tromey.com>
4767 * auto-load.c (struct auto_load_pspace_info): Add destructor and
4769 <unsupported_script_warning_printed,
4770 script_not_found_warning_printed>: Now bool.
4771 (auto_load_pspace_data): Change type.
4772 (~auto_load_pspace_info): Rename from
4773 auto_load_pspace_data_cleanup.
4774 (get_auto_load_pspace_data, init_loaded_scripts_info)
4775 (clear_section_scripts, maybe_print_unsupported_script_warning)
4776 (maybe_print_script_not_found_warning, _initialize_auto_load):
4779 2019-05-08 Tom Tromey <tom@tromey.com>
4781 * objfiles.c (objfile_pspace_info): Add destructor and
4783 (objfiles_pspace_data): Change type.
4784 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
4785 (get_objfile_pspace_data): Update.
4786 (objfiles_bfd_data): Change type.
4787 (get_objfile_bfd_data): Update.
4788 (objfile_bfd_data_free, _initialize_objfiles): Remove.
4790 2019-05-08 Tom Tromey <tom@tromey.com>
4792 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
4794 (get_catch_syscall_inferior_data): Update.
4795 (catch_syscall_inferior_data_cleanup): Remove.
4796 (_initialize_break_catch_syscall): Update.
4798 2019-05-08 Tom Tromey <tom@tromey.com>
4800 * inflow.c (struct terminal_info): Add destructor and
4802 (inflow_inferior_data): Change type.
4803 (~terminal_info): Rename from inflow_inferior_data_cleanup.
4804 (get_inflow_inferior_data, inflow_inferior_exit)
4805 (swap_terminal_info, _initialize_inflow): Update.
4807 2019-05-08 Tom Tromey <tom@tromey.com>
4809 * target-dcache.c (target_dcache_cleanup): Remove.
4810 (target_dcache_aspace_key): Change type.
4811 (target_dcache_init_p, target_dcache_invalidate)
4812 (target_dcache_get, target_dcache_get_or_init)
4813 (_initialize_target_dcache): Update.
4814 * dcache.h (struct dcache_deleter): New.
4816 2019-05-08 Tom Tromey <tom@tromey.com>
4818 * symtab.c (struct symbol_cache): Add destructor and
4820 (symbol_cache_key): Move. Change type.
4821 (make_symbol_cache, free_symbol_cache): Remove.
4822 (get_symbol_cache): Update.
4823 (symbol_cache_cleanup): Remove.
4824 (ALL_PSPACES, symbol_cache_flush)
4825 (maintenance_print_symbol_cache)
4826 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
4829 2019-05-08 Tom Tromey <tom@tromey.com>
4831 * symtab.c (struct main_info): Add destructor and initializers.
4832 (main_progspace_key): Move. Change type.
4833 (get_main_info): Update.
4834 (main_info_cleanup): Remove.
4835 (_initialize_symtab): Update.
4837 2019-05-08 Tom Tromey <tom@tromey.com>
4839 * registry.h (DECLARE_REGISTRY): Define the _key class.
4841 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
4843 * NEWS: Merge two 'New commands' sections.
4845 2019-05-08 Joel Brobecker <brobecker@adacore.com>
4847 * ada-valprint.c (ada_val_print_gnat_array): Remove language
4848 parameter and use Ada language definition instead.
4849 (ada_val_print_ptr): Remove unused language parameter.
4850 (ada_val_print_num): Remove language parameter and use Ada language
4852 (ada_val_print_enum, ada_val_print_flt): Remove unused language
4854 (ada_val_print_struct_union, ada_val_print_ref): Remove language
4855 parameter and use Ada language definition instead.
4856 (ada_val_print_1): Update all ada_val_print_xxx calls.
4857 Remove language parameter.
4858 (ada_val_print): Update ada_val_print_1 call.
4860 2019-05-08 Tom Tromey <tromey@adacore.com>
4862 * remote.c (remote_hw_watchpoint_limit)
4863 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
4866 2019-05-08 Tom Tromey <tromey@adacore.com>
4868 * maint.c (_initialize_maint_cmds): Move initialization code to
4870 (watchdog, show_watchdog): Move to remote.c.
4871 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
4873 (_initialize_remote): Move initialization code from maint.c.
4874 * defs.h (watchdog): Don't declare.
4876 2019-05-08 Tom Tromey <tromey@adacore.com>
4878 * tui/tui-interp.c: Include main.h.
4879 * interps.c: Include main.h.
4880 * main.h (interpreter_p): Declare.
4881 * defs.h (interpreter_p): Don't declare.
4883 2019-05-08 Tom Tromey <tromey@adacore.com>
4885 * dwarf2loc.c: Include dwarf2read.h.
4886 * defs.h (read_unsigned_leb128): Don't declare.
4887 * dwarf2read.h (read_unsigned_leb128): Declare.
4889 2019-05-08 Tom Tromey <tromey@adacore.com>
4891 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
4894 2019-05-08 Tom Tromey <tromey@adacore.com>
4896 * utils.c (fputs_maybe_filtered): Reset style after paging, even
4897 when no wrap column is set.
4899 2019-05-08 Tom Tromey <tromey@adacore.com>
4901 * c-lang.c (c_get_string): Handle non-C-style arrays.
4903 2019-05-08 Tom Tromey <tromey@adacore.com>
4905 * typeprint.c (print_offset_data::update): Print the bit offset,
4906 not the number of bits remaining.
4908 2019-05-08 Tom Tromey <tromey@adacore.com>
4910 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
4911 padding at end of comment.
4913 2019-05-08 Tom Tromey <tromey@adacore.com>
4915 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
4918 2019-05-06 Tom Tromey <tom@tromey.com>
4920 * common/scoped_mmap.c: Include common-defs.h.
4921 * common/scoped_mmap.h: Don't include config.h.
4923 2019-05-04 Tom Tromey <tom@tromey.com>
4925 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
4926 (struct aarch64_call_info): Add initializers.
4927 <si>: Now a std::vector.
4928 (pass_on_stack, aarch64_push_dummy_call): Update.
4930 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
4931 Tom Tromey <tom@tromey.com>
4933 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
4934 (ppc_threads): Now a std::vector. Now static.
4935 (hwdebug_find_thread_points_by_tid)
4936 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
4939 2019-05-04 Tom Tromey <tom@tromey.com>
4941 * arc-tdep.c (arc_tdesc_init): Return bool.
4943 2019-05-04 Tom Tromey <tom@tromey.com>
4945 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
4946 Use gdb_assert_not_reached.
4948 2019-05-04 Tom Tromey <tom@tromey.com>
4950 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
4953 2019-05-04 Tom Tromey <tom@tromey.com>
4955 * arc-tdep.c (arc_tdesc_init): Use bool.
4957 2019-05-04 Tom Tromey <tom@tromey.com>
4959 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
4961 2019-05-04 Tom Tromey <tom@tromey.com>
4963 * cli/cli-cmds.c (valid_command_p): Return bool.
4965 2019-05-04 Tom Tromey <tom@tromey.com>
4967 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
4968 * command.h (valid_user_defined_cmd_name_p): Channge return type.
4970 2019-05-04 Raul Tambre <raul@tambre.ee>
4972 * python/lib/gdb/prompt.py (_ExtendedPrompt)
4973 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
4974 operator for comparison.
4976 2019-05-04 Tom Tromey <tom@tromey.com>
4978 * psymtab.c (psymbol_name_matches, match_partial_symbol)
4979 (lookup_partial_symbol, print_partial_symbols)
4980 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
4981 (psymbol_compare): Update.
4982 (add_psymbol_to_bcache): Clear the entire psymbol.
4983 (maintenance_check_psymtabs): Update.
4984 * psympriv.h (struct partial_symbol): Don't derive from
4985 general_symbol_info.
4986 <obj_section, unrelocated_address, address,
4987 set_unrelocated_address>: Update.
4988 <ginfo>: New member.
4989 * dwarf-index-write.c (write_psymbols, debug_names::insert)
4990 (debug_names::write_psymbols): Update.
4992 2019-05-04 Tom de Vries <tdevries@suse.de>
4994 * contrib/cc-with-tweaks.sh: Support -n arg.
4996 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4998 * corelow.c (core_target::detach): Ensure frame cache and
4999 register caches are cleared.
5000 inferior.c (exit_inferior_1): Likewise.
5002 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
5003 Tom Tromey <tom@tromey.com>
5005 * dictionary.c (collate_pending_symbols_by_language): Remove
5006 "struct" from foreach.
5007 * symtab.c (lookup_global_symbol_from_objfile)
5008 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
5010 * ser-tcp.c (net_open): Remove "struct" from foreach.
5011 * objfiles.c (objfile_relocate, objfile_rebase)
5012 (objfile_has_symbols): Remove "struct" from foreach.
5013 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
5015 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
5017 * darwin-nat.c (thread_info_from_private_thread_info): Remove
5018 "struct" from foreach.
5019 * ada-lang.c (create_excep_cond_exprs)
5020 (ada_exception_catchpoint_cond_string): Remove "struct" from
5023 2019-05-03 Tom Tromey <tromey@adacore.com>
5025 * ada-exp.y (convert_char_literal): Check suffix of each
5028 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
5031 * ada-exp.y (yywrap): Don't define.
5032 * ada-lex.l (%option): Add noyywrap
5035 2019-05-03 Eli Zaretskii <eliz@gnu.org>
5037 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
5038 _WIN32_WINNT to the XP level, unless already defined to a higher
5041 * unittests/parse-connection-spec-selftests.c:
5043 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
5046 * symfile.c (find_separate_debug_file): Remove colon from the
5047 drive spec of DOS/Windows file names of the target, so that the
5048 file name produced from DEBUGDIR and the target's directory will
5049 be valid on DOS/Windows systems.
5051 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
5053 * rust-lang.c (val_print_struct): Handle printing structures
5056 2019-05-02 Tom Tromey <tromey@adacore.com>
5058 * valarith.c (_initialize_valarith): Remove.
5060 2019-05-01 Tom Tromey <tromey@adacore.com>
5062 * ada-lang.c (ada_value_primitive_field): Treat more fields as
5065 2019-05-01 Tom Tromey <tromey@adacore.com>
5067 * ada-lang.c (ada_value_assign): Correctly compute starting offset
5068 for big-endian copies.
5070 2019-04-30 Ali Tamur <tamur@google.com>
5071 * gdb/dwarf2read.c (read_3_bytes): New declaration.
5072 (read_attribute_value): Added DW_FORM_strx1-4 cases.
5073 (read_3_bytes): New function.
5075 2019-04-30 Joel Brobecker <brobecker@adacore.com>
5077 * windows-nat.c (main_thread_id): Delete.
5078 (handle_output_debug_string): Replace main_thread_id by
5079 current_event.dwThreadId.
5080 (fake_create_process): Likewise.
5081 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
5082 Do not set main_thread_id.
5083 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
5084 current_event.dwThreadId.
5085 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
5087 2019-04-30 Joel Brobecker <brobecker@adacore.com>
5089 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
5090 Use current_event.dwThreadId instead of main_thread_id.
5092 2019-04-30 Tom Tromey <tromey@adacore.com>
5094 * ada-lang.c (ada_lookup_simple_minsyms): New function.
5095 (create_excep_cond_exprs): Iterate over program spaces.
5096 (ada_exception_catchpoint_cond_string): Examine all minimal
5097 symbols for exception types.
5099 2019-04-30 Tom Tromey <tromey@adacore.com>
5102 * dwarf2read.c (process_structure_scope): Handle case where type
5103 has template parameters but no symbol was created.
5105 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5106 Chris January <chris.january@arm.com>
5108 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
5110 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
5112 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5114 * f-typeprint.c (f_print_type): Update rules for printing
5116 (f_type_print_varspec_suffix): Likewise.
5118 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5119 Chris January <chris.january@arm.com>
5121 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
5124 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5126 * f-lang.c (build_fortran_types): Change name of void type to
5128 * f-typeprint.c (f_type_print_base): Print the name of the void
5129 type, rather than a fixed string.
5130 * f-valprint.c (f_decorations): Use lower case void string.
5132 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5133 Chris January <chris.january@arm.com>
5135 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
5138 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5139 Chris January <chris.january@arm.com>
5140 David Lecomber <david.lecomber@arm.com>
5142 * f-exp.y (BINOP_INTRINSIC): New token.
5143 (exp): New parser rule handling BINOP_INTRINSIC.
5144 (f77_keywords): Add new builtin procedures.
5145 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
5146 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5147 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
5148 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5149 (print_unop_subexp_f): New function.
5150 (print_binop_subexp_f): New function.
5151 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
5152 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5153 (dump_subexp_body_f): Likewise.
5154 (operator_check_f): Likewise.
5155 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
5156 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
5158 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5160 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
5162 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
5163 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
5164 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
5165 (operator_length_f): New fuction.
5166 (print_subexp_f): New function.
5167 (op_name_f): New function.
5168 (dump_subexp_body_f): New function.
5169 (operator_check_f): New function.
5170 (exp_descriptor_f): Replace standard expression handling functions
5172 * gdb/fortran-operator.def: New file.
5173 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
5174 * gdb/std-operator.def: Remove UNOP_KIND.
5176 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5178 * std-operator.def: Remove unbalanced, stray double quote
5181 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5182 Chris January <chris.january@arm.com>
5183 Daniel Everett <daniel.everett@arm.com>
5184 Nick Forrington <nick.forrington@arm.com>
5185 Richard Bunt <richard.bunt@arm.com>
5187 * cp-valprint.c (cp_print_value_fields): Allow an additional level
5188 of depth when printing anonymous structs or unions.
5189 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
5190 Don't print either the top-level value, or the children if the
5191 max-depth is exceeded.
5192 (ppscm_print_children): When printing the key of a map, allow one
5193 extra level of depth.
5194 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
5195 print either the top-level value, or the children if the max-depth
5197 (print_children): When printing the key of a map, allow one extra
5199 * python/py-value.c (valpy_format_string): Add max_depth keyword.
5200 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
5201 (user_print_options): Initialise max_depth field.
5202 (val_print_scalar_or_string_type_p): New function.
5203 (val_print): Check to see if the max depth has been reached.
5204 (val_print_check_max_depth): Define new function.
5205 (show_print_max_depth): New function.
5206 (_initialize_valprint): Add 'print max-depth' option.
5207 * valprint.h (struct value_print_options) <max_depth>: New field.
5208 (val_print_check_max_depth): Declare new function.
5209 * NEWS: Document new feature.
5211 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5213 * ada-lang.c (ada_language_defn): Initialise new field.
5214 * c-lang.c (c_is_string_type_p): New function.
5215 (c_language_defn): Initialise new field.
5216 (cplus_language_defn): Initialise new field.
5217 (asm_language_defn): Initialise new field.
5218 (minimal_language_defn): Initialise new field.
5219 * c-lang.h (c_is_string_type_p): Declare new function.
5220 * d-lang.c (d_language_defn): Initialise new field.
5221 * f-lang.c (f_is_string_type_p): New function.
5222 (f_language_defn): Initialise new field.
5223 * go-lang.c (go_is_string_type_p): New function.
5224 (go_language_defn): Initialise new field.
5225 * language.c (default_is_string_type_p): New function.
5226 (unknown_language_defn): Initialise new field.
5227 (auto_language_defn): Initialise new field.
5228 * language.h (struct language_defn) <la_is_string_type_p>: New
5230 (default_is_string_type_p): Declare new function.
5231 * m2-lang.c (m2_language_defn): Initialise new field.
5232 * objc-lang.c (objc_language_defn): Initialise new field.
5233 * opencl-lang.c (opencl_language_defn): Initialise new field.
5234 * p-lang.c (pascal_is_string_type_p): New function.
5235 (pascal_language_defn): Initialise new field.
5236 * rust-lang.c (rust_is_string_type_p): New function.
5237 (rust_language_defn): Initialise new field.
5239 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5241 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
5243 * ada-lang.c (ada_language_defn): Initialise new field.
5244 * c-lang.c (c_language_defn): Likewise.
5245 (cplus_language_defn): Likewise.
5246 (asm_language_defn): Likewise.
5247 (minimal_language_defn): Likewise.
5248 * d-lang.c (d_language_defn): Likewise.
5249 * f-lang.c (f_language_defn): Likewise.
5250 * go-lang.c (go_language_defn): Likewise.
5251 * language.c (unknown_language_defn): Likewise.
5252 (auto_language_defn): Likewise.
5253 * m2-lang.c (m2_language_defn): Likewise.
5254 * objc-lang.c (objc_language_defn): Likewise.
5255 * opencl-lang.c (opencl_language_defn): Likewise.
5256 * p-lang.c (pascal_language_defn): Likewise.
5257 * rust-lang.c (rust_language_defn): Likewise.
5259 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5261 * ada-lang.c (ada_is_character_type): Change return type to bool.
5262 (ada_is_string_type): Likewise.
5263 * ada-lang.h (ada_is_character_type): Update declaration
5264 (ada_is_string_type): Likewise.
5266 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5268 Support style in 'frame|thread apply'
5270 * gdbcmd.h (execute_command_to_string): New term_out parameter.
5271 * record.c (record_start, record_stop): Update callers of
5272 execute_command_to_string with false.
5273 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
5274 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
5276 (class string_file): New constructor with term_out parameter.
5277 Override methods term_out and can_emit_style_escape. New member
5279 (class stdio_file): Override can_emit_style_escape.
5280 (class tee_file): Override term_out and can_emit_style_escape.
5281 * utils.h (can_emit_style_escape): Remove.
5282 * utils.c (can_emit_style_escape): Likewise.
5283 Update all callers of can_emit_style_escape (SOMESTREAM) to
5284 SOMESTREAM->can_emit_style_escape.
5285 * source-cache.c (source_cache::get_source_lines): Likewise.
5286 * stack.c (frame_apply_command_count): Call execute_command_to_string
5287 passing the term_out characteristic of the current gdb_stdout.
5288 * thread.c (thr_try_catch_cmd): Likewise.
5289 * top.c (execute_command_to_string): pass term_out parameter
5290 to construct the string_file for the command output.
5291 * ui-file.c (term_cli_styling): New function (most code moved
5292 from utils.c can_emit_style_escape).
5293 (string_file::string_file, string_file::can_emit_style_escape,
5294 stdio_file::can_emit_style_escape, tee_file::term_out,
5295 tee_file::can_emit_style_escape): New functions.
5297 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5299 * NEWS: Mention the new set|show may-call-functions.
5300 * infcall.c (may_call_functions_p): New variable.
5301 (show_may_call_functions_p): New function.
5302 (call_function_by_hand_dummy): Throws an error if not
5304 (_initialize_infcall): Call add_setshow_boolean_cmd for
5307 2019-04-25 Keith Seitz <keiths@redhat.com>
5310 * cp-support.c (inspect_type): Don't attempt substitutions
5311 of symbol with the same name.
5313 2019-04-25 Tom Tromey <tromey@adacore.com>
5316 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
5319 2019-04-25 Tom Tromey <tromey@adacore.com>
5321 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
5323 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
5324 (gdb_xml_parser::parse): Use std::move.
5325 * python/python-internal.h (gdbpy_convert_exception): Take a const
5327 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
5329 * python/py-utils.c (gdbpy_convert_exception): Take a const
5331 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
5333 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
5335 * mi/mi-main.c (mi_print_exception): Take a const reference.
5336 * main.c (handle_command_errors): Take a const reference.
5337 * linespec.c (parse_linespec): Use std::move.
5338 * infcall.c (run_inferior_call): Use std::move.
5339 (call_function_by_hand_dummy): Use std::move.
5340 * exec.c (try_open_exec_file): Use std::move.
5341 * exceptions.h (exception_print, exception_fprintf)
5342 (exception_print_same): Update.
5343 * exceptions.c (print_exception, exception_print)
5344 (exception_fprintf, exception_print_same): Change parameters to
5346 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
5347 * common/new-op.c: Use std::move.
5348 * common/common-exceptions.h (struct gdb_exception): Add move
5350 (struct gdb_exception_error, struct gdb_exception_quit, struct
5351 gdb_quit_bad_alloc): Change constructor to move constructor.
5352 (throw_exception): Change parameter to rvalue reference.
5353 * common/common-exceptions.c (throw_exception): Take rvalue
5355 * cli/cli-interp.c (safe_execute_command): Use std::move.
5356 * breakpoint.c (insert_bp_location, location_to_sals): Use
5359 2019-04-25 Tom Tromey <tromey@adacore.com>
5361 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
5362 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
5363 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
5364 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
5365 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
5366 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
5367 guile/scm-value.c: Use unpack.
5368 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
5369 gdbscm_gdb_exception.
5370 (gdbscm_throw_gdb_exception): Likewise.
5371 (struct gdbscm_gdb_exception): New.
5372 (unpack): New function.
5373 (gdbscm_wrap): Use unpack.
5375 2019-04-25 Tom Tromey <tromey@adacore.com>
5377 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
5378 (gdb_rl_callback_handler): Use std::move.
5379 * common/common-exceptions.h (struct gdb_exception): Add move
5380 assignment operator.
5381 (throw_exception_sjlj): Change "exception" to const reference.
5382 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
5383 (throw_exception_sjlj): Change "exception" to const reference.
5385 2019-04-25 Tom Tromey <tromey@adacore.com>
5387 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
5388 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
5389 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
5391 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
5393 * mi/mi-interp.c (mi_interp::exec): Update.
5394 * linespec.c (parse_linespec): Update.
5395 * infcall.c (run_inferior_call): Update.
5396 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
5397 * guile/scm-symbol.c (gdbscm_lookup_symbol)
5398 (gdbscm_lookup_global_symbol): Update.
5399 * guile/scm-param.c (gdbscm_parameter_value): Update.
5400 * guile/scm-frame.c (gdbscm_frame_read_register)
5401 (gdbscm_frame_read_var): Update.
5402 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
5403 * exec.c (try_open_exec_file): Update.
5404 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
5405 (gdb_rl_callback_handler): Update.
5406 * common/common-exceptions.h (exception_none): Don't declare.
5407 * common/common-exceptions.c (exception_none): Don't define.
5408 (struct catcher) <exception>: Update.
5409 * cli/cli-interp.c (safe_execute_command): Update.
5410 * breakpoint.c (insert_bp_location, location_to_sals): Update.
5412 2019-04-25 Ali Tamur <tamur@google.com>
5414 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
5415 (read_attribute_value): Likewise.
5416 (dwarf2_read_addr_index): Update comment.
5417 (read_str_index): Add DW_FORM_strx.
5418 (dwarf2_string_attr): Likewise.
5419 (dwarf2_const_value_attr): Likewise.
5420 (dump_die_shallow): Likewise.
5421 (dwarf2_fetch_constant_bytes): Likewise.
5422 (skip_form_bytes): Likewise.
5423 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
5425 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
5429 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
5430 OFFSET. Verify if current mapping contains an ELF header.
5431 (linux_find_memory_regions_full): Adjust call to
5434 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
5435 Kang Li <kanglictf@gmail.com>
5439 * dwarf2-frame.c (read_initial_length): Be consistent about using
5440 unsigned representation of length.
5441 (decode_frame_entry_1): Likewise. Check for wraparound of
5442 end pointer as well as buffer overflow.
5444 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
5446 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
5449 2019-04-24 Tom Tromey <tromey@adacore.com>
5451 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
5453 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5455 * s12z-tdep.c (s12z_unwind_pc): Delete.
5456 (s12z_unwind_sp): Delete.
5457 (s12z_gdbarch_init): Don't register deleted functions with
5460 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5462 * rl78-tdep.c (rl78_unwind_sp): Delete.
5463 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
5465 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5467 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
5468 (xstormy16_unwind_pc): Delete.
5469 (xstormy16_dummy_id): Delete.
5470 (xstormy16_gdbarch_init): Don't register deleted functions with
5473 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5475 * vax-tdep.c (vax_unwind_pc): Delete.
5476 (vax_gdbarch_init): Don't register deleted function with gdbarch.
5478 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5480 * v850-tdep.c (v850_unwind_sp): Delete.
5481 (v850_unwind_pc): Delete.
5482 (v850_dummy_id): Delete.
5483 (v850_gdbarch_init): Don't register deleted functions with
5486 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5488 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
5489 (tilegx_unwind_pc): Delete.
5490 (tilegx_unwind_dummy_id): Delete.
5491 (tilegx_gdbarch_init): Don't register deleted functions with
5494 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5496 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
5497 (tic6x_dummy_id): Delete.
5498 (tic6x_gdbarch_init): Don't register deleted functions with
5501 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5503 * sparc-tdep.c (sparc_unwind_pc): Delete.
5504 (sparc32_gdbarch_init): Don't register deleted function with
5507 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5509 * sh-tdep.c (sh_unwind_sp): Delete.
5510 (sh_unwind_pc): Delete.
5511 (sh_dummy_id): Delete.
5512 (sh_gdbarch_init): Don't register deleted functions with
5515 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5517 * score-tdep.c (score_unwind_sp): Delete.
5518 (score_unwind_pc): Delete.
5519 (score_dummy_id): Delete.
5520 (score_gdbarch_init): Don't register deleted functions with
5523 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5525 * rx-tdep.c (rx_unwind_pc): Delete.
5526 (rx_unwind_sp): Delete.
5527 (rx_dummy_id): Delete.
5528 (rx_gdbarch_init): Don't register deleted functions with
5529 gdbarch. Update comment.
5531 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5533 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
5534 (rs6000_dummy_id): Delete.
5535 (rs6000_gdbarch_init): Don't register deleted functions with
5538 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5540 * or1k-tdep.c (or1k_dummy_id): Delete.
5541 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
5543 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5545 * nios2-tdep.c (nios2_dummy_id): Delete.
5546 (nios2_unwind_sp): Delete.
5547 (nios2_gdbarch_init): Don't register deleted functions with
5550 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5552 * nds32-tdep.c (nds32_dummy_id): Delete.
5553 (nds32_unwind_pc): Delete.
5554 (nds32_unwind_sp): Delete.
5555 (nds32_gdbarch_init): Don't register deleted functions with
5558 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5560 * msp430-tdep.c (msp430_unwind_pc): Delete.
5561 (msp430_unwind_sp): Delete.
5562 (msp430_dummy_id): Delete.
5563 (msp430_gdbarch_init): Don't register deleted functions with
5566 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5568 * moxie-tdep.c (moxie_unwind_sp): Delete.
5569 (moxie_unwind_pc): Delete.
5570 (moxie_dummy_id): Delete.
5571 (moxie_gdbarch_init): Don't register deleted functions with
5574 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5576 * mn10300-tdep.c (mn10300_dummy_id): Delete.
5577 (mn10300_unwind_pc): Delete.
5578 (mn10300_unwind_sp): Delete.
5579 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
5581 (mn10300_frame_unwind_init): Don't register deleted functions with
5584 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5586 * mep-tdep.c (mep_unwind_pc): Delete.
5587 (mep_unwind_sp): Delete.
5588 (mep_dummy_id): Delete.
5589 (mep_gdbarch_init): Don't register deleted functions with
5592 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5594 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
5595 (m68hc11_unwind_sp): Delete.
5596 (m68hc11_gdbarch_init): Don't register deleted functions with
5599 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5601 * m32r-tdep.c (m32r_unwind_sp): Delete.
5602 (m32r_unwind_pc): Delete.
5603 (m32r_dummy_id): Delete.
5604 (m32r_gdbarch_init): Don't register deleted functions with
5607 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5609 * m32c-tdep.c (m32c_unwind_pc): Delete.
5610 (m32c_unwind_sp): Delete.
5611 (m32c_dummy_id): Delete.
5612 (m32c_gdbarch_init): Don't register deleted functions with
5615 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5617 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
5618 (lm32_unwind_pc): Delete.
5619 (lm32_dummy_id): Delete.
5620 (lm32_gdbarch_init): Don't register deleted functions with
5623 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5625 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
5626 (iq2000_unwind_pc): Delete.
5627 (iq2000_dummy_id): Delete.
5628 (iq2000_gdbarch_init): Don't register deleted functions with
5631 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5633 * nds32-tdep.c (nds32_type_align): Delete.
5634 (nds32_push_dummy_call): Use type_align instead.
5636 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5638 * arm-tdep.c (arm_type_align): Only handle vector override case.
5639 (arm_push_dummy_call): Use type_align.
5640 (arm_gdbarch_init): Register arm_type_align gdbarch function.
5642 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5644 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
5646 (pass_on_stack): Use type_align.
5647 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
5650 2019-04-23 Tom Tromey <tromey@adacore.com>
5652 * dwarf2read.c (line_header::file_name_at): Remove unused
5655 2019-04-23 Tom de Vries <tdevries@suse.de>
5658 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
5662 2019-03-27 Ali Tamur <tamur@google.com>
5664 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
5665 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
5666 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
5667 (dwarf_expr_context::get_addr_index): Likewise
5668 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
5669 (symbol_needs_eval_context::get_addr_index): Likewise
5670 (disassemble_dwarf_expression): Add DW_OP_addrx
5671 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
5672 (read_cutu_die_from_dwo): Update comment
5673 (skip_one_die): Add DW_FORM_addrx
5674 (read_attribute_value): Likewise
5675 (var_decode_location): Add DW_OP_addrx
5676 (dwarf2_const_value_attr): Add DW_FORM_addrx
5677 (dump_die_shallow): Likewise
5678 (dwarf2_fetch_constant_bytes): Likewise
5679 (decode_locdesc): Add DW_OP_addrx
5680 (skip_form_bytes): Add DW_FORM_addrx
5682 2019-04-22 Ali Tamur <tamur@google.com>
5684 * MAINTAINERS (Write After Approval): Add self.
5686 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
5688 * solib-svr4.c (get_svr4_info): Add pspace parameter.
5689 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
5690 (open_symbol_file_object): Likewise.
5691 (svr4_default_sos): Add info parameter.
5692 (svr4_read_so_list): Likewise.
5693 (svr4_current_sos_direct): Adjust functions calls to pass down
5695 (svr4_current_sos_1): Add info parameter.
5696 (svr4_current_sos): Call get_svr4_info, pass info down to
5698 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
5700 (svr4_in_dynsym_resolve_code): Pass current_program_space to
5702 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
5704 (probes_table_remove_objfile_probes): Likewise.
5705 (register_solib_event_probe): Add info parameter.
5706 (solist_update_incremental): Pass info parameter down to
5708 (disable_probes_interface): Add info parameter.
5709 (svr4_handle_solib_event): Pass current_program_space to
5710 get_svr4_info. Adjust disable_probes_interface cleanup.
5711 (svr4_create_probe_breakpoints): Add info parameter, pass it
5712 down to register_solib_event_probe.
5713 (svr4_create_solib_event_breakpoints): Add info parameter,
5714 pass it down to svr4_create_probe_breakpoints.
5715 (enable_break): Pass info down to
5716 svr4_create_solib_event_breakpoints.
5717 (svr4_solib_create_inferior_hook): Pass current_program_space to
5719 (svr4_clear_solib): Likewise.
5721 2019-04-22 Pedro Alves <palves@redhat.com>
5723 * solib-svr4.c (svr4_free_objfile_observer): New.
5724 (probe_and_action::objfile): New field.
5725 (probes_table_htab_remove_objfile_probes)
5726 (probes_table_remove_objfile_probes): New functions.
5727 (register_solib_event_probe): Add 'objfile' parameter. Store it
5728 in the new probe_and_action. Don't store the probe in 'lookup'.
5729 (svr4_create_probe_breakpoints): Pass objfile to
5730 register_solib_event_probe.
5731 (_initialize_svr4_solib): Register a free_objfile observer.
5733 2019-04-19 Tom Tromey <tom@tromey.com>
5735 * common/queue.h: Remove.
5737 2019-04-19 Tom Tromey <tom@tromey.com>
5739 * event-loop.c: Don't include "common/queue.h".
5741 2019-04-19 Tom Tromey <tom@tromey.com>
5743 * remote.c (remote_target): Use delete.
5744 * remote-notif.h: Include <list>, not "common/queue.h".
5745 (notif_client_p): Remove typedef.
5746 (remote_notif_state): Add constructor, destructor, initializer.
5747 <notif_queue>: Now a std::list.
5748 (remote_notif_state_xfree): Don't declare.
5749 * remote-notif.c (remote_notif_process, handle_notification)
5750 (remote_notif_state_allocate): Update.
5751 (~remote_notif_state): Rename from remote_notif_state_xfree.
5753 2019-04-19 Tom Tromey <tom@tromey.com>
5755 * symfile.c (reread_symbols): Update.
5756 * objfiles.c (objfile_register_static_link)
5757 (objfile_lookup_static_link): Update
5758 (~objfile) Don't delete static_links.
5759 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
5761 2019-04-19 Tom Tromey <tom@tromey.com>
5763 * type-stack.h (struct type_stack) <insert>: Constify string.
5764 * type-stack.c (type_stack::insert): Constify string.
5765 * gdbtypes.h (lookup_template_type): Update.
5766 (address_space_name_to_int): Update.
5767 * gdbtypes.c (address_space_name_to_int): Make space_identifier
5769 (lookup_template_type): Make name const.
5770 * c-exp.y: Update rules.
5771 (lex_one_token, classify_name, classify_inner_name)
5772 (c_print_token): Update.
5773 * p-exp.y: Update rules.
5775 * f-exp.y: Update rules.
5777 * d-exp.y: Update rules.
5778 (lex_one_token, classify_name, classify_inner_name): Update.
5779 * parse.c (write_dollar_variable, copy_name): Return std::string.
5780 * parser-defs.h (copy_name): Change return type.
5781 * m2-exp.y: Update rules.
5783 * go-exp.y (lex_one_token): Update.
5785 (classify_unsafe_function, classify_packaged_name)
5786 (classify_name, yylex): Update.
5788 2019-04-19 Sergei Trofimovich <siarheit@google.com>
5790 * configure.ac: add --enable-source-highlight switch.
5791 * configure: Regenerate.
5792 * top.c (print_gdb_version): plumb --enable-source-highlight
5793 status to "show configuration".
5795 2019-04-19 Tom Tromey <tromey@adacore.com>
5797 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
5799 (empty_record, ada_template_to_fixed_record_type_1)
5800 (template_to_static_fixed_type)
5801 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
5802 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
5803 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
5806 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
5809 * source.c (print_source_lines_base): Advance "iter" when a
5810 control character is seen.
5812 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5814 * inferior.h (struct infcall_suspend_state_deleter):
5815 Catch exception in destructor to avoid crash.
5817 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5819 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
5820 close to the add_com "shell".
5822 2019-04-18 Tom Tromey <tromey@adacore.com>
5824 * process-stratum-target.h (class process_stratum_target)
5825 <stratum>: Add "final".
5827 2019-04-17 Tom Tromey <tromey@adacore.com>
5829 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
5830 against nullptr before use.
5832 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5834 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
5836 2019-04-17 Jim Wilson <jimw@sifive.com>
5837 Andrew Burgess <andrew.burgess@embecosm.com>
5839 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
5840 code read might fail, assume 4-byte breakpoint in that case.
5842 2019-04-15 Leszek Swirski <leszeks@google.com>
5844 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
5845 rather than a hand-rolled POD check when checking for forced MEMORY
5848 2019-04-15 Alan Hayward <alan.hayward@arm.com>
5850 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
5851 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
5853 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
5854 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
5855 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
5858 2019-04-15 Alan Hayward <alan.hayward@arm.com>
5860 * aarch64-linux-nat.c
5861 (aarch64_linux_nat_target::thread_architecture): Add override.
5862 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
5865 2019-04-15 Alan Hayward <alan.hayward@arm.com>
5867 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
5869 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
5871 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
5872 target types of size 96-bits, add some additional comments, and
5873 check that the builtin type we found was the correct size.
5875 2019-04-12 Eli Zaretskii <eliz@gnu.org>
5877 * utils.c (prompt_for_continue): Don't restore the styling at the
5878 end, as applied_style has the wrong value. This fixes styling in
5879 long lists of file names that are interrupted by the "Continue?"
5882 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
5884 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
5885 * c-lang.c (c_language_defn): Likewise.
5886 (cplus_language_defn): Likewise.
5887 (asm_language_defn): Likewise.
5888 (minimal_language_defn): Likewise.
5889 * d-lang.c (d_language_defn): Likewise.
5890 * f-lang.c (f_language_defn): Likewise.
5891 * go-lang.c (go_language_defn): Likewise.
5892 * language.c (unknown_language_defn): Likewise.
5893 (auto_language_defn): Likewise.
5894 * language.h (struct language_defn): Remove la_magic field.
5895 (LANG_MAGIC): Delete.
5896 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
5897 * objc-lang.c (objc_language_defn): Likewise.
5898 * opencl-lang.c (opencl_language_defn): Likewise.
5899 * p-lang.c (pascal_language_defn): Likewise.
5900 * rust-lang.c (rust_language_defn): Likewise.
5902 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
5904 * riscv-tdep.c (riscv_type_align): New function.
5905 (riscv_type_alignment): Delete.
5906 (riscv_arg_location): Use 'type_align'.
5907 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
5909 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
5911 * gdbtypes.c (type_align): A struct with no non-static fields also
5914 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
5916 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
5918 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
5920 (riscv_struct_info::analyse): New implementation using new
5921 analyse_inner member function.
5922 (riscv_struct_info::field_offset): New member function.
5923 (riscv_struct_info::m_offsets): New member variable.
5924 (riscv_struct_info::analyse_inner): New private member function,
5925 takes the old implementation of riscv_struct_info::analyse but
5926 extended to track field offsets.
5927 (riscv_call_arg_struct): Update the struct folding special cases
5928 to handle cases where empty C++ structs, which are non-zero
5930 (riscv_arg_location): Initialise the length of each location, a
5931 non-zero length now indicates the location is in use.
5932 (riscv_push_dummy_call): Allow for the first location having a
5933 non-zero offset when setting up arguments.
5934 (riscv_return_value): Likewise, but for return values.
5936 2019-04-11 Tom Tromey <tromey@adacore.com>
5938 * utils.c (internal_vproblem): Make "msg" const.
5940 2019-04-11 Alan Hayward <alan.hayward@arm.com>
5942 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
5943 * trad-frame.c (trad_frame_reset_saved_regs): New function.
5944 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
5945 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
5947 2019-04-10 Kevin Buettner <kevinb@redhat.com>
5949 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
5951 (fill_gregset): Call amd64_linux_collect_native_gregset instead
5952 of amd64_collect_native_gregset.
5953 (amd64_linux_nat_target::store_registers): Likewise.
5955 2019-04-10 Tom Tromey <tom@tromey.com>
5957 * symtab.c (lookup_global_symbol_from_objfile)
5958 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
5959 * objfiles.h (class separate_debug_iterator): New.
5960 (class separate_debug_range): New.
5961 (struct objfile) <separate_debug_objfiles>: New method.
5962 (objfile_separate_debug_iterate): Don't declare.
5963 * objfiles.c (separate_debug_iterator::operator++): Rename from
5964 objfile_separate_debug_iterate.
5965 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
5967 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
5970 2019-04-10 Tom Tromey <tom@tromey.com>
5972 * symfile.c (reread_symbols): Remove old comment.
5973 * objfiles.c (free_all_objfiles): Fix a typo.
5975 2019-04-10 Tom Tromey <tom@tromey.com>
5977 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
5978 * minsyms.c (lookup_minimal_symbol): Use foreach.
5979 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
5980 (lookup_minimal_symbol_solib_trampoline): Likewise.
5981 * symfile.c (reread_symbols): Use foreach.
5983 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
5984 Tom Tromey <tromey@adacore.com>
5987 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
5988 (rust_lex_int_test): Change "value" to be LONGEST.
5989 (rust_lex_tests): Add test for long integer literal.
5991 2019-04-09 Tom Tromey <tromey@adacore.com>
5993 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
5995 (extended_remote_target::attach): Update.
5996 (remote_target::remote_notice_new_inferior): Update.
5997 (remote_target::add_current_inferior_and_thread): Update.
5998 * inferior.c (exit_inferior_1): Use "false".
5999 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
6001 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
6003 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
6004 the "start" command.
6006 2019-04-08 Kevin Buettner <kevinb@redhat.com>
6008 * python/py-inferior.c (infpy_thread_from_thread_handle):
6009 Adjust comments to reflect renaming of thread_from_thread_handle
6010 to thread_from_handle. Adjust keywords. Fix type error message.
6011 (inferior_object_methods): Add thread_from_handle. Retain
6012 thread_from_thread_handle, but mark it as deprecated.
6014 2019-04-08 Kevin Buettner <kevinb@redhat.com>
6016 * gdbthread.h (find_thread_by_handle): Revise declaration.
6017 * thread.c (find_thread_by_handle): Likewise. Adjust
6019 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
6020 support for buffer objects as handles.
6022 2019-04-08 Kevin Buettner <kevinb@redhat.com>
6024 * python/py-infthread.c (thpy_thread_handle): New function.
6025 (thread_object_methods): Register thpy_thread_handle.
6027 2019-04-08 Kevin Buettner <kevinb@redhat.com>
6029 * gdbthread.h (thread_to_thread_handle): Declare.
6030 * thread.c (gdbtypes.h): Include.
6031 (thread_to_thread_handle): New function.
6033 * target.h (struct target_ops): Add thread_info_to_thread_handle.
6034 (target_thread_info_to_thread_handle): Declare.
6035 * target.c (target_thread_info_to_thread_handle): New function.
6036 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
6037 * target-delegates.c: Regenerate.
6039 * linux-thread-db.c (class thread_db_target): Add method
6040 thread_info_to_thread_handle.
6041 (thread_db_target::thread_info_to_thread_handle): Define.
6042 * remote.c (class remote_target): Add new method
6043 thread_info_to_thread_handle.
6044 (remote_target::thread_info_to_thread_handle): Define.
6046 2019-04-08 Pedro Alves <palves@redhat.com>
6048 * common/common-exceptions.c (throw_exception): Don't create
6049 named object to throw; throw directly.
6050 (throw_it): Likewise. Don't initialize gdb_exception::message
6051 here, with new; pass FMT and AP to the ctor instead.
6052 * common/common-exceptions.h: Include <string>.
6053 (gdb_exception::gdb_exception(enum return_reason, enum errors,
6054 const char *, va_list)): New ctor. Use std::make_shared.
6055 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
6057 (gdb_exception_error::gdb_exception_error(enum errors, const char
6059 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
6061 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
6063 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
6064 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
6067 2019-04-08 Tom Tromey <tom@tromey.com>
6069 * valops.c (value_rtti_indirect_type): Replace throw_exception
6071 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
6073 * thread.c (thr_try_catch_cmd): Replace throw_exception with
6075 * target.c (target_translate_tls_address): Replace throw_exception
6077 * stack.c (frame_apply_command_count): Replace throw_exception
6079 * solib-spu.c (append_ocl_sos): Replace throw_exception with
6081 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
6083 * rs6000-tdep.c (rs6000_frame_cache)
6084 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
6085 * remote.c: Replace throw_exception with throw.
6086 * record-full.c (record_full_message, record_full_wait_1)
6087 (record_full_restore): Replace throw_exception with throw.
6089 (get_thread_current_frame_id, record_btrace_start_replaying)
6090 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
6091 (cmd_record_btrace_start): Replace throw_exception with throw.
6092 * parse.c (parse_exp_in_context_1): Replace throw_exception with
6094 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
6095 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
6097 (find_linespec_symbols): Replace throw_exception with throw.
6098 * infrun.c (displaced_step_prepare, resume): Replace
6099 throw_exception with throw.
6100 * infcmd.c (post_create_inferior): Replace throw_exception with
6102 * inf-loop.c (inferior_event_handler): Replace throw_exception
6104 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
6105 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
6106 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
6107 (get_prev_frame_always, get_frame_pc_if_available)
6108 (get_frame_address_in_block_if_available, get_frame_language):
6109 Replace throw_exception with throw.
6110 * frame-unwind.c (frame_unwind_try_unwinder): Replace
6111 throw_exception with throw.
6112 * eval.c (fetch_subexp_value, evaluate_var_value)
6113 (evaluate_funcall, evaluate_subexp_standard): Replace
6114 throw_exception with throw.
6115 * dwarf2loc.c (call_site_find_chain)
6116 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
6117 Replace throw_exception with throw.
6118 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
6120 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
6122 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
6123 * completer.c (complete_line_internal): Replace throw_exception
6125 * compile/compile-object-run.c (compile_object_run): Replace
6126 throw_exception with throw.
6127 * cli/cli-script.c (process_next_line): Replace throw_exception
6129 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
6130 (btrace_enable, btrace_maint_update_pt_packets): Replace
6131 throw_exception with throw.
6132 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
6133 throw_exception with throw.
6134 * break-catch-throw.c (re_set_exception_catchpoint): Replace
6135 throw_exception with throw.
6136 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
6137 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
6138 * aarch64-tdep.c (aarch64_make_prologue_cache)
6139 (aarch64_make_stub_cache): Replace throw_exception with throw.
6141 2019-04-08 Tom Tromey <tom@tromey.com>
6143 * common/common-exceptions.c (throw_exception): Rename from
6144 throw_exception_cxx. Remove old copy. Make argument const.
6145 (throw_it): Create and throw exception objects directly.
6146 * common/common-exceptions.h (throw_exception): Make argument
6148 (struct gdb_exception_error): Add constructor.
6149 (struct gdb_exception_quit): Add constructor.
6151 2019-04-08 Tom Tromey <tom@tromey.com>
6153 * common/common-exceptions.h (exception_rethrow): Don't declare.
6154 (TRY_SJLJ): Update comment.
6155 (TRY, CATCH, END_CATCH): Remove.
6156 * common/common-exceptions.c (exception_rethrow): Remove.
6158 2019-04-08 Tom Tromey <tom@tromey.com>
6160 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
6162 (gdb_exception_error): Rename from
6163 gdb_exception_RETURN_MASK_ERROR.
6164 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
6165 (gdb_quit_bad_alloc): Update.
6166 * aarch64-tdep.c: Update.
6167 * ada-lang.c: Update.
6168 * ada-typeprint.c: Update.
6169 * ada-valprint.c: Update.
6170 * amd64-tdep.c: Update.
6171 * arch-utils.c: Update.
6172 * break-catch-throw.c: Update.
6173 * breakpoint.c: Update.
6175 * c-varobj.c: Update.
6176 * cli/cli-cmds.c: Update.
6177 * cli/cli-interp.c: Update.
6178 * cli/cli-script.c: Update.
6179 * common/common-exceptions.c: Update.
6180 * common/new-op.c: Update.
6181 * common/selftest.c: Update.
6182 * compile/compile-c-symbols.c: Update.
6183 * compile/compile-cplus-symbols.c: Update.
6184 * compile/compile-object-load.c: Update.
6185 * compile/compile-object-run.c: Update.
6186 * completer.c: Update.
6187 * corelow.c: Update.
6189 * cp-support.c: Update.
6190 * cp-valprint.c: Update.
6191 * darwin-nat.c: Update.
6192 * disasm-selftests.c: Update.
6193 * dtrace-probe.c: Update.
6194 * dwarf-index-cache.c: Update.
6195 * dwarf-index-write.c: Update.
6196 * dwarf2-frame-tailcall.c: Update.
6197 * dwarf2-frame.c: Update.
6198 * dwarf2loc.c: Update.
6199 * dwarf2read.c: Update.
6201 * event-loop.c: Update.
6202 * event-top.c: Update.
6204 * f-valprint.c: Update.
6205 * fbsd-tdep.c: Update.
6206 * frame-unwind.c: Update.
6208 * gdbtypes.c: Update.
6209 * gnu-v3-abi.c: Update.
6210 * guile/guile-internal.h: Update.
6211 * guile/scm-block.c: Update.
6212 * guile/scm-breakpoint.c: Update.
6213 * guile/scm-cmd.c: Update.
6214 * guile/scm-disasm.c: Update.
6215 * guile/scm-frame.c: Update.
6216 * guile/scm-lazy-string.c: Update.
6217 * guile/scm-math.c: Update.
6218 * guile/scm-param.c: Update.
6219 * guile/scm-ports.c: Update.
6220 * guile/scm-pretty-print.c: Update.
6221 * guile/scm-symbol.c: Update.
6222 * guile/scm-symtab.c: Update.
6223 * guile/scm-type.c: Update.
6224 * guile/scm-value.c: Update.
6225 * i386-linux-tdep.c: Update.
6226 * i386-tdep.c: Update.
6227 * inf-loop.c: Update.
6228 * infcall.c: Update.
6232 * language.c: Update.
6233 * linespec.c: Update.
6234 * linux-fork.c: Update.
6235 * linux-nat.c: Update.
6236 * linux-tdep.c: Update.
6237 * linux-thread-db.c: Update.
6239 * mi/mi-cmd-break.c: Update.
6240 * mi/mi-cmd-stack.c: Update.
6241 * mi/mi-interp.c: Update.
6242 * mi/mi-main.c: Update.
6243 * objc-lang.c: Update.
6244 * p-valprint.c: Update.
6246 * ppc-linux-tdep.c: Update.
6247 * printcmd.c: Update.
6248 * python/py-arch.c: Update.
6249 * python/py-breakpoint.c: Update.
6250 * python/py-cmd.c: Update.
6251 * python/py-finishbreakpoint.c: Update.
6252 * python/py-frame.c: Update.
6253 * python/py-framefilter.c: Update.
6254 * python/py-gdb-readline.c: Update.
6255 * python/py-inferior.c: Update.
6256 * python/py-infthread.c: Update.
6257 * python/py-lazy-string.c: Update.
6258 * python/py-linetable.c: Update.
6259 * python/py-objfile.c: Update.
6260 * python/py-param.c: Update.
6261 * python/py-prettyprint.c: Update.
6262 * python/py-progspace.c: Update.
6263 * python/py-record-btrace.c: Update.
6264 * python/py-record.c: Update.
6265 * python/py-symbol.c: Update.
6266 * python/py-type.c: Update.
6267 * python/py-unwind.c: Update.
6268 * python/py-utils.c: Update.
6269 * python/py-value.c: Update.
6270 * python/python.c: Update.
6271 * record-btrace.c: Update.
6272 * record-full.c: Update.
6273 * remote-fileio.c: Update.
6275 * riscv-tdep.c: Update.
6276 * rs6000-aix-tdep.c: Update.
6277 * rs6000-tdep.c: Update.
6278 * rust-exp.y: Update.
6279 * rust-lang.c: Update.
6280 * s390-tdep.c: Update.
6281 * selftest-arch.c: Update.
6282 * solib-dsbt.c: Update.
6283 * solib-frv.c: Update.
6284 * solib-spu.c: Update.
6285 * solib-svr4.c: Update.
6287 * sparc64-linux-tdep.c: Update.
6289 * symfile-mem.c: Update.
6290 * symmisc.c: Update.
6294 * tracefile-tfile.c: Update.
6295 * tui/tui.c: Update.
6296 * typeprint.c: Update.
6297 * unittests/cli-utils-selftests.c: Update.
6298 * unittests/parse-connection-spec-selftests.c: Update.
6300 * valprint.c: Update.
6303 * windows-nat.c: Update.
6304 * x86-linux-nat.c: Update.
6305 * xml-support.c: Update.
6307 2019-04-08 Tom Tromey <tom@tromey.com>
6309 * xml-support.c: Use C++ exception handling.
6310 * x86-linux-nat.c: Use C++ exception handling.
6311 * windows-nat.c: Use C++ exception handling.
6312 * varobj.c: Use C++ exception handling.
6313 * value.c: Use C++ exception handling.
6314 * valprint.c: Use C++ exception handling.
6315 * valops.c: Use C++ exception handling.
6316 * unittests/parse-connection-spec-selftests.c: Use C++ exception
6318 * unittests/cli-utils-selftests.c: Use C++ exception handling.
6319 * typeprint.c: Use C++ exception handling.
6320 * tui/tui.c: Use C++ exception handling.
6321 * tracefile-tfile.c: Use C++ exception handling.
6322 * top.c: Use C++ exception handling.
6323 * thread.c: Use C++ exception handling.
6324 * target.c: Use C++ exception handling.
6325 * symmisc.c: Use C++ exception handling.
6326 * symfile-mem.c: Use C++ exception handling.
6327 * stack.c: Use C++ exception handling.
6328 * sparc64-linux-tdep.c: Use C++ exception handling.
6329 * solib.c: Use C++ exception handling.
6330 * solib-svr4.c: Use C++ exception handling.
6331 * solib-spu.c: Use C++ exception handling.
6332 * solib-frv.c: Use C++ exception handling.
6333 * solib-dsbt.c: Use C++ exception handling.
6334 * selftest-arch.c: Use C++ exception handling.
6335 * s390-tdep.c: Use C++ exception handling.
6336 * rust-lang.c: Use C++ exception handling.
6337 * rust-exp.y: Use C++ exception handling.
6338 * rs6000-tdep.c: Use C++ exception handling.
6339 * rs6000-aix-tdep.c: Use C++ exception handling.
6340 * riscv-tdep.c: Use C++ exception handling.
6341 * remote.c: Use C++ exception handling.
6342 * remote-fileio.c: Use C++ exception handling.
6343 * record-full.c: Use C++ exception handling.
6344 * record-btrace.c: Use C++ exception handling.
6345 * python/python.c: Use C++ exception handling.
6346 * python/py-value.c: Use C++ exception handling.
6347 * python/py-utils.c: Use C++ exception handling.
6348 * python/py-unwind.c: Use C++ exception handling.
6349 * python/py-type.c: Use C++ exception handling.
6350 * python/py-symbol.c: Use C++ exception handling.
6351 * python/py-record.c: Use C++ exception handling.
6352 * python/py-record-btrace.c: Use C++ exception handling.
6353 * python/py-progspace.c: Use C++ exception handling.
6354 * python/py-prettyprint.c: Use C++ exception handling.
6355 * python/py-param.c: Use C++ exception handling.
6356 * python/py-objfile.c: Use C++ exception handling.
6357 * python/py-linetable.c: Use C++ exception handling.
6358 * python/py-lazy-string.c: Use C++ exception handling.
6359 * python/py-infthread.c: Use C++ exception handling.
6360 * python/py-inferior.c: Use C++ exception handling.
6361 * python/py-gdb-readline.c: Use C++ exception handling.
6362 * python/py-framefilter.c: Use C++ exception handling.
6363 * python/py-frame.c: Use C++ exception handling.
6364 * python/py-finishbreakpoint.c: Use C++ exception handling.
6365 * python/py-cmd.c: Use C++ exception handling.
6366 * python/py-breakpoint.c: Use C++ exception handling.
6367 * python/py-arch.c: Use C++ exception handling.
6368 * printcmd.c: Use C++ exception handling.
6369 * ppc-linux-tdep.c: Use C++ exception handling.
6370 * parse.c: Use C++ exception handling.
6371 * p-valprint.c: Use C++ exception handling.
6372 * objc-lang.c: Use C++ exception handling.
6373 * mi/mi-main.c: Use C++ exception handling.
6374 * mi/mi-interp.c: Use C++ exception handling.
6375 * mi/mi-cmd-stack.c: Use C++ exception handling.
6376 * mi/mi-cmd-break.c: Use C++ exception handling.
6377 * main.c: Use C++ exception handling.
6378 * linux-thread-db.c: Use C++ exception handling.
6379 * linux-tdep.c: Use C++ exception handling.
6380 * linux-nat.c: Use C++ exception handling.
6381 * linux-fork.c: Use C++ exception handling.
6382 * linespec.c: Use C++ exception handling.
6383 * language.c: Use C++ exception handling.
6384 * jit.c: Use C++ exception handling.
6385 * infrun.c: Use C++ exception handling.
6386 * infcmd.c: Use C++ exception handling.
6387 * infcall.c: Use C++ exception handling.
6388 * inf-loop.c: Use C++ exception handling.
6389 * i386-tdep.c: Use C++ exception handling.
6390 * i386-linux-tdep.c: Use C++ exception handling.
6391 * guile/scm-value.c: Use C++ exception handling.
6392 * guile/scm-type.c: Use C++ exception handling.
6393 * guile/scm-symtab.c: Use C++ exception handling.
6394 * guile/scm-symbol.c: Use C++ exception handling.
6395 * guile/scm-pretty-print.c: Use C++ exception handling.
6396 * guile/scm-ports.c: Use C++ exception handling.
6397 * guile/scm-param.c: Use C++ exception handling.
6398 * guile/scm-math.c: Use C++ exception handling.
6399 * guile/scm-lazy-string.c: Use C++ exception handling.
6400 * guile/scm-frame.c: Use C++ exception handling.
6401 * guile/scm-disasm.c: Use C++ exception handling.
6402 * guile/scm-cmd.c: Use C++ exception handling.
6403 * guile/scm-breakpoint.c: Use C++ exception handling.
6404 * guile/scm-block.c: Use C++ exception handling.
6405 * guile/guile-internal.h: Use C++ exception handling.
6406 * gnu-v3-abi.c: Use C++ exception handling.
6407 * gdbtypes.c: Use C++ exception handling.
6408 * frame.c: Use C++ exception handling.
6409 * frame-unwind.c: Use C++ exception handling.
6410 * fbsd-tdep.c: Use C++ exception handling.
6411 * f-valprint.c: Use C++ exception handling.
6412 * exec.c: Use C++ exception handling.
6413 * event-top.c: Use C++ exception handling.
6414 * event-loop.c: Use C++ exception handling.
6415 * eval.c: Use C++ exception handling.
6416 * dwarf2read.c: Use C++ exception handling.
6417 * dwarf2loc.c: Use C++ exception handling.
6418 * dwarf2-frame.c: Use C++ exception handling.
6419 * dwarf2-frame-tailcall.c: Use C++ exception handling.
6420 * dwarf-index-write.c: Use C++ exception handling.
6421 * dwarf-index-cache.c: Use C++ exception handling.
6422 * dtrace-probe.c: Use C++ exception handling.
6423 * disasm-selftests.c: Use C++ exception handling.
6424 * darwin-nat.c: Use C++ exception handling.
6425 * cp-valprint.c: Use C++ exception handling.
6426 * cp-support.c: Use C++ exception handling.
6427 * cp-abi.c: Use C++ exception handling.
6428 * corelow.c: Use C++ exception handling.
6429 * completer.c: Use C++ exception handling.
6430 * compile/compile-object-run.c: Use C++ exception handling.
6431 * compile/compile-object-load.c: Use C++ exception handling.
6432 * compile/compile-cplus-symbols.c: Use C++ exception handling.
6433 * compile/compile-c-symbols.c: Use C++ exception handling.
6434 * common/selftest.c: Use C++ exception handling.
6435 * common/new-op.c: Use C++ exception handling.
6436 * cli/cli-script.c: Use C++ exception handling.
6437 * cli/cli-interp.c: Use C++ exception handling.
6438 * cli/cli-cmds.c: Use C++ exception handling.
6439 * c-varobj.c: Use C++ exception handling.
6440 * btrace.c: Use C++ exception handling.
6441 * breakpoint.c: Use C++ exception handling.
6442 * break-catch-throw.c: Use C++ exception handling.
6443 * arch-utils.c: Use C++ exception handling.
6444 * amd64-tdep.c: Use C++ exception handling.
6445 * ada-valprint.c: Use C++ exception handling.
6446 * ada-typeprint.c: Use C++ exception handling.
6447 * ada-lang.c: Use C++ exception handling.
6448 * aarch64-tdep.c: Use C++ exception handling.
6450 2019-04-08 Tom Tromey <tom@tromey.com>
6452 * xml-support.c (gdb_xml_parser::parse): Update.
6453 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
6454 * value.c (show_convenience): Update.
6455 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
6456 (test_parse_flags_qcs): Update.
6457 * thread.c (thr_try_catch_cmd): Update.
6458 * target.c (target_translate_tls_address): Update.
6459 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
6460 (info_frame_command_core, frame_apply_command_count): Update.
6461 * rust-exp.y (rust_lex_exception_test): Update.
6462 * riscv-tdep.c (riscv_print_one_register_info): Update.
6463 * remote.c (remote_target::enable_btrace): Update.
6464 * record-btrace.c (record_btrace_enable_warn): Update.
6465 * python/py-utils.c (gdbpy_convert_exception): Update.
6466 * printcmd.c (do_one_display, print_variable_and_value): Update.
6467 * mi/mi-main.c (mi_print_exception): Update.
6468 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
6469 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
6470 * linux-nat.c (linux_nat_target::attach): Update.
6471 * linux-fork.c (class scoped_switch_fork_info): Update.
6472 * infrun.c (displaced_step_prepare): Update.
6473 * infcall.c (call_function_by_hand_dummy): Update.
6474 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
6475 * gnu-v3-abi.c (print_one_vtable): Update.
6476 * frame.c (get_prev_frame_always): Update.
6477 * f-valprint.c (info_common_command_for_block): Update.
6478 * exec.c (try_open_exec_file): Update.
6479 * exceptions.c (print_exception, exception_print)
6480 (exception_fprintf, exception_print_same): Update.
6481 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
6482 * dwarf-index-cache.c (index_cache::store)
6483 (index_cache::lookup_gdb_index): Update.
6484 * darwin-nat.c (maybe_cache_shell): Update.
6485 * cp-valprint.c (cp_print_value_fields): Update.
6486 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
6487 (gcc_cplus_symbol_address): Update.
6488 * compile/compile-c-symbols.c (gcc_convert_symbol)
6489 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
6490 * common/selftest.c: Update.
6491 * common/common-exceptions.h (struct gdb_exception) <message>: Now
6493 (exception_try_scope_entry, exception_try_scope_exit): Don't
6495 (struct exception_try_scope): Remove.
6496 (TRY): Don't use exception_try_scope.
6497 (struct gdb_exception): Add constructor, operator=.
6499 (struct gdb_exception_RETURN_MASK_ALL)
6500 (struct gdb_exception_RETURN_MASK_ERROR)
6501 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
6502 (struct gdb_quit_bad_alloc): Update.
6503 * common/common-exceptions.c (exception_none): Change
6505 (struct catcher) <state, exception>: Initialize inline.
6506 <prev>: Remove member.
6507 (current_catcher): Remove.
6508 (catchers): New global.
6509 (exceptions_state_mc_init): Simplify.
6510 (catcher_pop): Remove.
6511 (exceptions_state_mc, exceptions_state_mc_catch): Update.
6512 (try_scope_depth, exception_try_scope_entry)
6513 (exception_try_scope_exit): Remove.
6514 (throw_exception_sjlj): Update.
6515 (exception_messages, exception_messages_size): Remove.
6516 (throw_it): Simplify.
6517 (gdb_exception_sliced_copy): Remove.
6518 (throw_exception_cxx): Update.
6519 * cli/cli-script.c (script_from_file): Update.
6520 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
6522 * ada-valprint.c (ada_val_print): Update.
6523 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
6524 (create_excep_cond_exprs): Update.
6526 2019-04-08 Tom Tromey <tom@tromey.com>
6528 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
6529 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
6530 (TRY, CATCH, END_CATCH): Remove some definitions.
6531 * common/common-exceptions.c: Don't use GDB_XCPT.
6532 (catcher_list_size): Remove.
6533 (throw_exception, throw_it): Simplify.
6535 2019-04-05 Tom Tromey <tom@tromey.com>
6537 Revert the header-sorting patch.
6538 * ft32-tdep.c: Revert.
6539 * frv-tdep.c: Revert.
6540 * frv-linux-tdep.c: Revert.
6542 * frame-unwind.c: Revert.
6543 * frame-base.c: Revert.
6544 * fork-child.c: Revert.
6545 * findvar.c: Revert.
6546 * findcmd.c: Revert.
6547 * filesystem.c: Revert.
6548 * filename-seen-cache.h: Revert.
6549 * filename-seen-cache.c: Revert.
6550 * fbsd-tdep.c: Revert.
6551 * fbsd-nat.h: Revert.
6552 * fbsd-nat.c: Revert.
6553 * f-valprint.c: Revert.
6554 * f-typeprint.c: Revert.
6556 * extension.h: Revert.
6557 * extension.c: Revert.
6558 * extension-priv.h: Revert.
6559 * expprint.c: Revert.
6562 * exceptions.c: Revert.
6563 * event-top.c: Revert.
6564 * event-loop.c: Revert.
6566 * elfread.c: Revert.
6567 * dwarf2read.h: Revert.
6568 * dwarf2read.c: Revert.
6569 * dwarf2loc.c: Revert.
6570 * dwarf2expr.h: Revert.
6571 * dwarf2expr.c: Revert.
6572 * dwarf2-frame.c: Revert.
6573 * dwarf2-frame-tailcall.c: Revert.
6574 * dwarf-index-write.h: Revert.
6575 * dwarf-index-write.c: Revert.
6576 * dwarf-index-common.c: Revert.
6577 * dwarf-index-cache.h: Revert.
6578 * dwarf-index-cache.c: Revert.
6579 * dummy-frame.c: Revert.
6580 * dtrace-probe.c: Revert.
6583 * disasm-selftests.c: Revert.
6584 * dictionary.c: Revert.
6585 * dicos-tdep.c: Revert.
6586 * demangle.c: Revert.
6589 * darwin-nat.h: Revert.
6590 * darwin-nat.c: Revert.
6591 * darwin-nat-info.c: Revert.
6592 * d-valprint.c: Revert.
6593 * d-namespace.c: Revert.
6596 * csky-tdep.c: Revert.
6597 * csky-linux-tdep.c: Revert.
6598 * cris-tdep.c: Revert.
6599 * cris-linux-tdep.c: Revert.
6600 * cp-valprint.c: Revert.
6601 * cp-support.c: Revert.
6602 * cp-namespace.c: Revert.
6604 * corelow.c: Revert.
6605 * corefile.c: Revert.
6606 * continuations.c: Revert.
6607 * completer.h: Revert.
6608 * completer.c: Revert.
6609 * complaints.c: Revert.
6610 * coffread.c: Revert.
6611 * coff-pe-read.c: Revert.
6612 * cli-out.h: Revert.
6613 * cli-out.c: Revert.
6614 * charset.c: Revert.
6615 * c-varobj.c: Revert.
6616 * c-valprint.c: Revert.
6617 * c-typeprint.c: Revert.
6619 * buildsym.c: Revert.
6620 * buildsym-legacy.c: Revert.
6621 * build-id.h: Revert.
6622 * build-id.c: Revert.
6624 * bsd-uthread.c: Revert.
6625 * breakpoint.h: Revert.
6626 * breakpoint.c: Revert.
6627 * break-catch-throw.c: Revert.
6628 * break-catch-syscall.c: Revert.
6629 * break-catch-sig.c: Revert.
6630 * blockframe.c: Revert.
6632 * bfin-tdep.c: Revert.
6633 * bfin-linux-tdep.c: Revert.
6634 * bfd-target.c: Revert.
6636 * ax-general.c: Revert.
6639 * avr-tdep.c: Revert.
6641 * auto-load.c: Revert.
6642 * arm-wince-tdep.c: Revert.
6643 * arm-tdep.c: Revert.
6644 * arm-symbian-tdep.c: Revert.
6645 * arm-pikeos-tdep.c: Revert.
6646 * arm-obsd-tdep.c: Revert.
6647 * arm-nbsd-tdep.c: Revert.
6648 * arm-nbsd-nat.c: Revert.
6649 * arm-linux-tdep.c: Revert.
6650 * arm-linux-nat.c: Revert.
6651 * arm-fbsd-tdep.c: Revert.
6652 * arm-fbsd-nat.c: Revert.
6653 * arm-bsd-tdep.c: Revert.
6654 * arch-utils.c: Revert.
6655 * arc-tdep.c: Revert.
6656 * arc-newlib-tdep.c: Revert.
6657 * annotate.h: Revert.
6658 * annotate.c: Revert.
6659 * amd64-windows-tdep.c: Revert.
6660 * amd64-windows-nat.c: Revert.
6661 * amd64-tdep.c: Revert.
6662 * amd64-sol2-tdep.c: Revert.
6663 * amd64-obsd-tdep.c: Revert.
6664 * amd64-obsd-nat.c: Revert.
6665 * amd64-nbsd-tdep.c: Revert.
6666 * amd64-nbsd-nat.c: Revert.
6667 * amd64-nat.c: Revert.
6668 * amd64-linux-tdep.c: Revert.
6669 * amd64-linux-nat.c: Revert.
6670 * amd64-fbsd-tdep.c: Revert.
6671 * amd64-fbsd-nat.c: Revert.
6672 * amd64-dicos-tdep.c: Revert.
6673 * amd64-darwin-tdep.c: Revert.
6674 * amd64-bsd-nat.c: Revert.
6675 * alpha-tdep.c: Revert.
6676 * alpha-obsd-tdep.c: Revert.
6677 * alpha-nbsd-tdep.c: Revert.
6678 * alpha-mdebug-tdep.c: Revert.
6679 * alpha-linux-tdep.c: Revert.
6680 * alpha-linux-nat.c: Revert.
6681 * alpha-bsd-tdep.c: Revert.
6682 * alpha-bsd-nat.c: Revert.
6683 * aix-thread.c: Revert.
6685 * addrmap.c: Revert.
6686 * ada-varobj.c: Revert.
6687 * ada-valprint.c: Revert.
6688 * ada-typeprint.c: Revert.
6689 * ada-tasks.c: Revert.
6690 * ada-lang.c: Revert.
6691 * aarch64-tdep.c: Revert.
6692 * aarch64-ravenscar-thread.c: Revert.
6693 * aarch64-newlib-tdep.c: Revert.
6694 * aarch64-linux-tdep.c: Revert.
6695 * aarch64-linux-nat.c: Revert.
6696 * aarch64-fbsd-tdep.c: Revert.
6697 * aarch64-fbsd-nat.c: Revert.
6698 * aarch32-linux-nat.c: Revert.
6700 2019-04-05 Tom Tromey <tom@tromey.com>
6702 * ft32-tdep.c: Sort headers.
6703 * frv-tdep.c: Sort headers.
6704 * frv-linux-tdep.c: Sort headers.
6705 * frame.c: Sort headers.
6706 * frame-unwind.c: Sort headers.
6707 * frame-base.c: Sort headers.
6708 * fork-child.c: Sort headers.
6709 * findvar.c: Sort headers.
6710 * findcmd.c: Sort headers.
6711 * filesystem.c: Sort headers.
6712 * filename-seen-cache.h: Sort headers.
6713 * filename-seen-cache.c: Sort headers.
6714 * fbsd-tdep.c: Sort headers.
6715 * fbsd-nat.h: Sort headers.
6716 * fbsd-nat.c: Sort headers.
6717 * f-valprint.c: Sort headers.
6718 * f-typeprint.c: Sort headers.
6719 * f-lang.c: Sort headers.
6720 * extension.h: Sort headers.
6721 * extension.c: Sort headers.
6722 * extension-priv.h: Sort headers.
6723 * expprint.c: Sort headers.
6724 * exec.h: Sort headers.
6725 * exec.c: Sort headers.
6726 * exceptions.c: Sort headers.
6727 * event-top.c: Sort headers.
6728 * event-loop.c: Sort headers.
6729 * eval.c: Sort headers.
6730 * elfread.c: Sort headers.
6731 * dwarf2read.h: Sort headers.
6732 * dwarf2read.c: Sort headers.
6733 * dwarf2loc.c: Sort headers.
6734 * dwarf2expr.h: Sort headers.
6735 * dwarf2expr.c: Sort headers.
6736 * dwarf2-frame.c: Sort headers.
6737 * dwarf2-frame-tailcall.c: Sort headers.
6738 * dwarf-index-write.h: Sort headers.
6739 * dwarf-index-write.c: Sort headers.
6740 * dwarf-index-common.c: Sort headers.
6741 * dwarf-index-cache.h: Sort headers.
6742 * dwarf-index-cache.c: Sort headers.
6743 * dummy-frame.c: Sort headers.
6744 * dtrace-probe.c: Sort headers.
6745 * disasm.h: Sort headers.
6746 * disasm.c: Sort headers.
6747 * disasm-selftests.c: Sort headers.
6748 * dictionary.c: Sort headers.
6749 * dicos-tdep.c: Sort headers.
6750 * demangle.c: Sort headers.
6751 * dcache.h: Sort headers.
6752 * dcache.c: Sort headers.
6753 * darwin-nat.h: Sort headers.
6754 * darwin-nat.c: Sort headers.
6755 * darwin-nat-info.c: Sort headers.
6756 * d-valprint.c: Sort headers.
6757 * d-namespace.c: Sort headers.
6758 * d-lang.c: Sort headers.
6759 * ctf.c: Sort headers.
6760 * csky-tdep.c: Sort headers.
6761 * csky-linux-tdep.c: Sort headers.
6762 * cris-tdep.c: Sort headers.
6763 * cris-linux-tdep.c: Sort headers.
6764 * cp-valprint.c: Sort headers.
6765 * cp-support.c: Sort headers.
6766 * cp-namespace.c: Sort headers.
6767 * cp-abi.c: Sort headers.
6768 * corelow.c: Sort headers.
6769 * corefile.c: Sort headers.
6770 * continuations.c: Sort headers.
6771 * completer.h: Sort headers.
6772 * completer.c: Sort headers.
6773 * complaints.c: Sort headers.
6774 * coffread.c: Sort headers.
6775 * coff-pe-read.c: Sort headers.
6776 * cli-out.h: Sort headers.
6777 * cli-out.c: Sort headers.
6778 * charset.c: Sort headers.
6779 * c-varobj.c: Sort headers.
6780 * c-valprint.c: Sort headers.
6781 * c-typeprint.c: Sort headers.
6782 * c-lang.c: Sort headers.
6783 * buildsym.c: Sort headers.
6784 * buildsym-legacy.c: Sort headers.
6785 * build-id.h: Sort headers.
6786 * build-id.c: Sort headers.
6787 * btrace.c: Sort headers.
6788 * bsd-uthread.c: Sort headers.
6789 * breakpoint.h: Sort headers.
6790 * breakpoint.c: Sort headers.
6791 * break-catch-throw.c: Sort headers.
6792 * break-catch-syscall.c: Sort headers.
6793 * break-catch-sig.c: Sort headers.
6794 * blockframe.c: Sort headers.
6795 * block.c: Sort headers.
6796 * bfin-tdep.c: Sort headers.
6797 * bfin-linux-tdep.c: Sort headers.
6798 * bfd-target.c: Sort headers.
6799 * bcache.c: Sort headers.
6800 * ax-general.c: Sort headers.
6801 * ax-gdb.h: Sort headers.
6802 * ax-gdb.c: Sort headers.
6803 * avr-tdep.c: Sort headers.
6804 * auxv.c: Sort headers.
6805 * auto-load.c: Sort headers.
6806 * arm-wince-tdep.c: Sort headers.
6807 * arm-tdep.c: Sort headers.
6808 * arm-symbian-tdep.c: Sort headers.
6809 * arm-pikeos-tdep.c: Sort headers.
6810 * arm-obsd-tdep.c: Sort headers.
6811 * arm-nbsd-tdep.c: Sort headers.
6812 * arm-nbsd-nat.c: Sort headers.
6813 * arm-linux-tdep.c: Sort headers.
6814 * arm-linux-nat.c: Sort headers.
6815 * arm-fbsd-tdep.c: Sort headers.
6816 * arm-fbsd-nat.c: Sort headers.
6817 * arm-bsd-tdep.c: Sort headers.
6818 * arch-utils.c: Sort headers.
6819 * arc-tdep.c: Sort headers.
6820 * arc-newlib-tdep.c: Sort headers.
6821 * annotate.h: Sort headers.
6822 * annotate.c: Sort headers.
6823 * amd64-windows-tdep.c: Sort headers.
6824 * amd64-windows-nat.c: Sort headers.
6825 * amd64-tdep.c: Sort headers.
6826 * amd64-sol2-tdep.c: Sort headers.
6827 * amd64-obsd-tdep.c: Sort headers.
6828 * amd64-obsd-nat.c: Sort headers.
6829 * amd64-nbsd-tdep.c: Sort headers.
6830 * amd64-nbsd-nat.c: Sort headers.
6831 * amd64-nat.c: Sort headers.
6832 * amd64-linux-tdep.c: Sort headers.
6833 * amd64-linux-nat.c: Sort headers.
6834 * amd64-fbsd-tdep.c: Sort headers.
6835 * amd64-fbsd-nat.c: Sort headers.
6836 * amd64-dicos-tdep.c: Sort headers.
6837 * amd64-darwin-tdep.c: Sort headers.
6838 * amd64-bsd-nat.c: Sort headers.
6839 * alpha-tdep.c: Sort headers.
6840 * alpha-obsd-tdep.c: Sort headers.
6841 * alpha-nbsd-tdep.c: Sort headers.
6842 * alpha-mdebug-tdep.c: Sort headers.
6843 * alpha-linux-tdep.c: Sort headers.
6844 * alpha-linux-nat.c: Sort headers.
6845 * alpha-bsd-tdep.c: Sort headers.
6846 * alpha-bsd-nat.c: Sort headers.
6847 * aix-thread.c: Sort headers.
6848 * agent.c: Sort headers.
6849 * addrmap.c: Sort headers.
6850 * ada-varobj.c: Sort headers.
6851 * ada-valprint.c: Sort headers.
6852 * ada-typeprint.c: Sort headers.
6853 * ada-tasks.c: Sort headers.
6854 * ada-lang.c: Sort headers.
6855 * aarch64-tdep.c: Sort headers.
6856 * aarch64-ravenscar-thread.c: Sort headers.
6857 * aarch64-newlib-tdep.c: Sort headers.
6858 * aarch64-linux-tdep.c: Sort headers.
6859 * aarch64-linux-nat.c: Sort headers.
6860 * aarch64-fbsd-tdep.c: Sort headers.
6861 * aarch64-fbsd-nat.c: Sort headers.
6862 * aarch32-linux-nat.c: Sort headers.
6864 2019-04-04 Tom Tromey <tom@tromey.com>
6866 * varobj.c (varobj_create): Update.
6867 * rust-exp.y (struct rust_parser) <update_innermost_block,
6868 lookup_symbol>: New methods.
6869 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
6871 (rust_parser::rust_lookup_type)
6872 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
6873 * printcmd.c (display_command, do_one_display): Update.
6874 * parser-defs.h (struct parser_state) <parser_state>: Add
6875 "tracker" parameter.
6876 (block_tracker): New member.
6877 (class innermost_block_tracker) <innermost_block_tracker>: Add
6879 <reset>: Remove method.
6880 (innermost_block): Don't declare.
6881 (null_post_parser): Update.
6882 * parse.c (innermost_block): Remove global.
6883 (write_dollar_variable): Update.
6884 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
6885 Remove "tracker_types" parameter.
6886 (parse_expression): Add "tracker" parameter.
6887 (parse_expression_for_completion): Update.
6888 (null_post_parser): Add "tracker" parameter.
6889 * p-exp.y: Update rules.
6890 * m2-exp.y: Update rules.
6891 * language.h (struct language_defn) <la_post_parser>: Add
6892 "tracker" parameter.
6893 * go-exp.y: Update rules.
6894 * f-exp.y: Update rules.
6895 * expression.h (parse_expression, parse_exp_1): Add "tracker"
6897 * d-exp.y: Update rules.
6898 * c-exp.y: Update rules.
6899 * breakpoint.c (set_breakpoint_condition): Create an
6900 innermost_block_tracker.
6901 (watch_command_1): Likewise.
6902 * ada-lang.c (resolve): Add "tracker" parameter.
6903 (resolve_subexp): Likewise.
6904 * ada-exp.y (write_var_from_sym): Update.
6906 2019-04-04 Tom Tromey <tom@tromey.com>
6908 * type-stack.h: New file.
6909 * type-stack.c: New file.
6910 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
6912 (insert_into_type_stack, insert_type, push_type, push_type_int)
6913 (insert_type_address_space, pop_type, pop_type_int)
6914 (pop_typelist, pop_type_stack, append_type_stack)
6915 (push_type_stack, get_type_stack, push_typelist)
6916 (follow_type_instance_flags, follow_types): Don't declare.
6917 * parse.c (type_stack): Remove global.
6918 (parse_exp_in_context): Update.
6919 (insert_into_type_stack, insert_type, push_type, push_type_int)
6920 (insert_type_address_space, pop_type, pop_type_int)
6921 (pop_typelist, pop_type_stack, append_type_stack)
6922 (push_type_stack, get_type_stack, push_typelist)
6923 (follow_type_instance_flags, follow_types): Remove (moved to
6925 * f-exp.y (type_stack): New global.
6927 (push_kind_type, f_parse): Update.
6928 * d-exp.y (type_stack): New global.
6931 * c-exp.y (struct c_parse_state) <type_stack>: New member.
6933 * Makefile.in (COMMON_SFILES): Add type-stack.c.
6934 (HFILES_NO_SRCDIR): Add type-stack.h.
6936 2019-04-04 Tom Tromey <tom@tromey.com>
6938 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
6939 (rust_parser::convert_ast_to_expression, rust_parse)
6940 (rust_lex_test_completion, rust_lex_tests): Update.
6941 * parser-defs.h (struct expr_completion_state): New.
6942 (struct parser_state) <parser_state>: Add completion parameter.
6943 <mark_struct_expression, mark_completion_tag>: New methods.
6944 <parse_completion, m_completion_state>: New members.
6945 (prefixify_expression, null_post_parser): Update.
6946 (mark_struct_expression, mark_completion_tag): Don't declare.
6947 * parse.c (parse_completion, expout_last_struct)
6948 (expout_tag_completion_type, expout_completion_name): Remove
6950 (parser_state::mark_struct_expression)
6951 (parser_state::mark_completion_tag): Now methods.
6952 (prefixify_expression): Add last_struct parameter.
6953 (prefixify_subexp): Likewise.
6954 (parse_exp_1): Update.
6955 (parse_exp_in_context): Add cstate parameter. Update.
6956 (parse_expression_for_completion): Create an
6957 expr_completion_state.
6958 (null_post_parser): Add "completion" parameter.
6959 * p-exp.y: Update rules.
6961 * language.h (struct language_defn) <la_post_parser>: Add
6962 "completing" parameter.
6963 * go-exp.y: Update rules.
6964 (lex_one_token): Update.
6965 * expression.h (parse_completion): Don't declare.
6966 * d-exp.y: Update rules.
6967 (lex_one_token): Update rules.
6968 * c-exp.y: Update rules.
6969 (lex_one_token): Update.
6970 * ada-lang.c (resolve): Add "parse_completion" parameter.
6971 (resolve_subexp): Likewise.
6972 (ada_resolve_function): Likewise.
6974 2019-04-04 Tom Tromey <tom@tromey.com>
6976 * parser-defs.h (struct parser_state) <start_arglist,
6977 end_arglist>: New methods.
6978 <arglist_len, m_funcall_chain>: New members.
6979 (arglist_len, start_arglist, end_arglist): Don't declare.
6980 * parse.c (arglist_len, funcall_chain): Remove global.
6981 (start_arglist, end_arglist): Remove functions.
6982 (parse_exp_in_context): Update.
6983 * p-exp.y: Update rules.
6984 * m2-exp.y: Update rules.
6985 * go-exp.y: Update rules.
6986 * f-exp.y: Update rules.
6987 * d-exp.y: Update rules.
6988 * c-exp.y: Update rules.
6990 2019-04-04 Tom Tromey <tom@tromey.com>
6992 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
6993 lex_operator, push_back>: New methods.
6995 (rust_parser::lex_hex, lex_escape): Rename and update.
6996 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
6997 (rust_parser::lex_operator): Rename and update.
6998 (rust_parser::lex_number, rustyylex, rustyyerror)
6999 (rust_lex_test_init, rust_lex_test_sequence)
7000 (rust_lex_test_push_back, rust_lex_tests): Update.
7001 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
7003 <lexptr, prev_lexptr>: New members.
7004 (lexptr, prev_lexptr): Don't declare.
7005 * parse.c (lexptr, prev_lexptr): Remove globals.
7006 (parse_exp_in_context): Update.
7007 * p-exp.y (yylex, yyerror): Update.
7008 * m2-exp.y (parse_number, yylex, yyerror): Update.
7009 * go-exp.y (lex_one_token, yyerror): Update.
7010 * f-exp.y (match_string_literal, yylex, yyerror): Update.
7011 * d-exp.y (lex_one_token, yyerror): Update.
7012 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
7013 (lex_one_token, yyerror): Update.
7014 * ada-lex.l (YY_INPUT): Update.
7015 (rewind_to_char): Update.
7016 * ada-exp.y (yyerror): Update.
7018 2019-04-04 Tom Tromey <tom@tromey.com>
7020 * rust-exp.y (rustyylex, rust_lex_tests): Update.
7021 * parser-defs.h (struct parser_state) <parser_state>: Add new
7023 <comma_terminates>: New member.
7024 (comma_terminates): Don't declare global.
7025 * parse.c (comma_terminates): Remove global.
7026 (parse_exp_in_context): Update.
7027 * p-exp.y (yylex): Update.
7028 * m2-exp.y (yylex): Update.
7029 * go-exp.y (lex_one_token): Update.
7030 * f-exp.y (yylex): Update.
7031 * d-exp.y (lex_one_token): Update.
7032 * c-exp.y (lex_one_token): Update.
7033 * ada-lex.l: Update.
7035 2019-04-04 Tom Tromey <tom@tromey.com>
7037 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
7038 (rustyylex, rust_lex_test_init, rust_lex_test_one)
7039 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
7040 * parser-defs.h (paren_depth): Don't declare.
7041 * parse.c (paren_depth): Remove global.
7042 (parse_exp_in_context): Update.
7043 * p-exp.y (paren_depth): New global.
7044 (pascal_parse): Initialize it.
7045 * m2-exp.y (paren_depth): New global.
7046 (m2_parse): Initialize it.
7047 * go-exp.y (paren_depth): New global.
7048 (go_parse): Initialize it.
7049 * f-exp.y (paren_depth): New global.
7050 (f_parse): Initialize it.
7051 * d-exp.y (paren_depth): New global.
7052 (d_parse): Initialize it.
7053 * c-exp.y (paren_depth): New global.
7054 (c_parse): Initialize it.
7055 * ada-lex.l (paren_depth): New global.
7056 (lexer_init): Initialize it.
7058 2019-04-04 Tom Tromey <tom@tromey.com>
7060 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
7061 (rust_parser::convert_ast_to_type)
7062 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
7063 * parser-defs.h (struct parser_state) <parser_state>: Add
7064 parameters. Initialize new members.
7065 <expression_context_block, expression_context_pc>: New members.
7066 * parse.c (expression_context_block, expression_context_pc):
7068 (parse_exp_in_context): Update.
7069 * p-exp.y: Update all rules.
7071 * m2-exp.y: Update all rules.
7073 * go-exp.y (yylex): Update.
7074 * f-exp.y (yylex): Update.
7075 * d-exp.y: Update all rules.
7077 * c-exp.y: Update all rules.
7078 (lex_one_token, classify_name, yylex, c_parse): Update.
7079 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
7081 2019-04-04 Tom Tromey <tom@tromey.com>
7083 * gdbarch.h, gdbarch.c: Rebuild.
7084 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
7086 (struct stap_parse_info): Replace "parser_state" with
7088 * parser-defs.h (struct expr_builder): Rename from "parser_state".
7089 (parser_state): New class.
7090 * parse.c (expr_builder): Rename.
7091 (expr_builder::release): Rename.
7092 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
7093 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
7094 (write_exp_elt_longcst, write_exp_elt_floatcst)
7095 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
7096 (write_exp_string_vector, write_exp_bitstring)
7097 (write_exp_msymbol, mark_struct_expression)
7098 (write_dollar_variable)
7099 (insert_type_address_space, increase_expout_size): Replace
7100 "parser_state" with "expr_builder".
7101 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
7102 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
7103 "parser_state" with "expr_builder".
7105 2019-04-04 Tom Tromey <tom@tromey.com>
7107 * rust-exp.y: Replace "parse_language" with method call.
7109 (yylex): Replace "parse_language" with method call.
7111 (yylex): Replace "parse_language" with method call.
7112 * go-exp.y (classify_name): Replace "parse_language" with method
7114 * f-exp.y (yylex): Replace "parse_language" with method call.
7115 * d-exp.y (lex_one_token): Replace "parse_language" with method
7118 (lex_one_token, classify_name, yylex): Replace "parse_language"
7120 * ada-exp.y (find_primitive_type, type_char)
7121 (type_system_address): Replace "parse_language" with method call.
7123 2019-04-04 Tom Tromey <tom@tromey.com>
7125 * rust-exp.y: Replace "parse_gdbarch" with method call.
7126 * parse.c (write_dollar_variable, insert_type_address_space):
7127 Replace "parse_gdbarch" with method call.
7128 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
7130 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
7132 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
7133 "parse_gdbarch" with method call.
7134 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
7136 * f-exp.y (parse_type, parse_f_type, yylex): Replace
7137 "parse_gdbarch" with method call.
7138 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
7139 "parse_gdbarch" with method call.
7140 * c-exp.y (parse_type, parse_number, classify_name): Replace
7141 "parse_gdbarch" with method call.
7142 * ada-lex.l: Replace "parse_gdbarch" with method call.
7143 * ada-exp.y (parse_type, find_primitive_type, type_char)
7144 (type_system_address): Replace "parse_gdbarch" with method call.
7146 2019-04-04 Tom Tromey <tom@tromey.com>
7148 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
7149 * stap-probe.c (stap_parse_argument): Update.
7150 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
7151 initial_size parameter.
7152 * rust-exp.y (rust_lex_tests): Update.
7153 * parse.c (parser_state): Update.
7154 (parse_exp_in_context): Update.
7155 * parser-defs.h (struct parser_state) <parser_state>: Remove
7156 "initial_size" parameter.
7158 2019-04-04 Tom Tromey <tom@tromey.com>
7160 * parser-defs.h (increase_expout_size): Don't declare.
7161 * parse.c (increase_expout_size): Now static.
7163 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
7165 * gnu-nat.c (gnu_nat_target::wait): Fix
7166 target_waitstatus_to_string call.
7168 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
7170 * eval.c (evaluate_subexp_standard): Handle internal functions
7171 during Fortran function call handling.
7173 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
7175 * NEWS: Mention new internal functions.
7176 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
7177 (read_base_type): Use dwarf2_init_complex_target_type.
7178 * value.c (creal_internal_fn): New function.
7179 (cimag_internal_fn): New function.
7180 (_initialize_values): Register new internal functions.
7182 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7184 * infrun.c (stop_all_threads): If debug_infrun, always
7185 trace the wait status after wait_one, using
7186 target_waitstatus_to_string and target_pid_to_str.
7187 (handle_inferior_event): Replace various trace of
7188 wait status kind by a single trace.
7189 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
7190 wait status kind image by target_waitstatus_to_string.
7191 * target/waitstatus.c (target_waitstatus_to_string): Fix
7194 2019-04-01 Tom Tromey <tromey@adacore.com>
7197 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
7199 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
7200 Pedro Alves <palves@redhat.com>
7202 * top.c (quit_force): Call 'finalize_values'.
7203 * value.c (finalize_values): New function.
7204 * value.h (finalize_values): Declare.
7206 2019-03-30 Eli Zaretskii <eliz@gnu.org>
7208 * NEWS: Announce $_gdb_major and $_gdb_minor.
7210 * top.c (init_gdb_version_vars): New function.
7211 (gdb_init): Call init_gdb_version_vars.
7213 2019-03-29 Tom Tromey <tromey@adacore.com>
7215 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
7216 help text. Remove dead code.
7218 2019-03-29 Keith Seitz <keiths@redhat.com>
7220 From Siddhesh Poyarekar:
7221 * f-lang.h (f77_get_upperbound): Return LONGEST.
7222 (f77_get_lowerbound): Likewise.
7223 * f-typeprint.c (f_type_print_varspec_suffix): Expand
7224 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
7226 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
7227 plongest to format print it.
7228 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
7229 (f77_get_upperbound): Likewise.
7230 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
7231 LOWER_BOUND to LONGEST.
7232 (f77_create_arrayprint_offset_tbl): Likewise.
7234 2019-03-29 Keith Seitz <keiths@redhat.com>
7236 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7237 %s/pulongest for TYPE_LENGTH instead of %d in format
7239 * ada-typerint.c (ada_print_type): Likewise.
7240 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
7241 * compile/compile-c-support.c (generate_register_struct): Likewise.
7242 * gdbtypes.c (recursive_dump_type): Likewise.
7243 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
7244 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
7245 instead of %d in format strings.
7246 * riscv-tdep.c (riscv_type_alignment): Cast second argument
7247 to std::min to ULONGEST.
7248 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
7249 instead of %d in format strings.
7250 * tracepoint.c (info_scope_command): Likewise.
7251 * typeprint.c (print_offset_data::update)
7252 (print_offset_data::finish): Likewise.
7253 * xtensa-tdep.c (xtensa_store_return_value)
7254 (xtensa_push_dummy_call): Likewise.
7256 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
7258 * windows-nat.c (display_selector): Fixed format specifications
7261 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7263 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
7265 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
7267 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
7268 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
7269 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
7270 (nios2_linux_init_abi): Install it.
7272 2019-03-28 Alan Hayward <alan.hayward@arm.com>
7274 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
7276 2019-03-28 Alan Hayward <alan.hayward@arm.com>
7278 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
7280 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7281 Tom Tromey <tromey@adacore.com>
7283 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
7285 2019-03-26 Joel Brobecker <brobecker@adacore.com>
7287 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
7288 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
7289 method to compute the bounds of range types. Also print "[evaluated]"
7290 if the bounds' values come from a dynamic evaluation.
7292 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
7294 * cp-valprint.c (cp_print_value_fields): Don't print trailing
7295 whitespace when pretty printing is on.
7297 2019-03-26 Alan Hayward <alan.hayward@arm.com>
7299 * ppc-linux-nat.c: Add include.
7301 2019-03-26 Alan Hayward <alan.hayward@arm.com>
7303 * NEWS: Mention AArch64 Pointer Authentication.
7305 2019-03-26 Alan Hayward <alan.hayward@arm.com>
7307 * arm-linux-nat.c: Add include.
7309 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
7311 * source-cache.c (source_cache::get_source_lines): Re-read
7312 fullname after calling open_source_file.
7314 2019-03-25 John Baldwin <jhb@FreeBSD.org>
7316 * NEWS: Mention TLS support for FreeBSD.
7318 2019-03-25 Tom Tromey <tromey@adacore.com>
7320 * minsyms.c (BUNCH_SIZE): Update comment.
7321 (~minimal_symbol_reader): Remove old comment.
7322 (compact_minimal_symbols): Update comment.
7323 (minimal_symbol_reader::install): Remove old comment. Update
7326 2019-03-25 Alan Hayward <alan.hayward@arm.com>
7328 * s390-linux-nat.c: Add include.
7330 2019-03-25 Alan Hayward <alan.hayward@arm.com>
7332 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
7333 Call linux_get_hwcap.
7334 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
7336 (aarch64_linux_get_hwcap): Remove function.
7337 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
7339 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
7341 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
7342 * linux-tdep.c (linux_get_hwcap): Add function.
7343 (linux_get_hwcap2): Likewise.
7344 * linux-tdep.h (linux_get_hwcap): Add declaration.
7345 (linux_get_hwcap2): Likewise.
7346 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
7347 (ppc_linux_get_hwcap2): Likewise.
7348 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
7350 (ppc_linux_nat_target::insert_watchpoint): Likewise.
7351 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
7352 (ppc_linux_nat_target::read_description): Likewise.
7353 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
7354 * s390-linux-nat.c: Likewise.
7355 * s390-linux-tdep.c (s390_core_read_description): Likewise.
7357 2019-03-24 Tom Tromey <tom@tromey.com>
7359 * ada-lang.c (standard_lookup): Simplify initialization.
7360 (ada_lookup_symbol_nonlocal): Simplify return.
7361 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
7362 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
7363 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
7364 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
7366 * solib.c (solib_global_lookup): Simplify.
7367 * symtab.c (null_block_symbol): Remove.
7368 (symbol_cache_lookup): Simplify returns.
7369 (lookup_language_this): Simplify returns.
7370 (lookup_symbol_aux): Simplify return.
7371 (lookup_local_symbol): Simplify returns.
7372 (lookup_global_symbol_from_objfile): Simplify return.
7373 (lookup_symbol_in_objfile_symtabs)
7374 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
7375 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
7376 (lookup_static_symbol, lookup_global_symbol): Simplify return.
7377 * cp-namespace.c (cp_lookup_bare_symbol)
7378 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
7379 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
7380 (cp_lookup_nested_symbol): Don't use null_block_symbol.
7381 (cp_lookup_symbol_via_imports): Simplify initialization.
7382 (find_symbol_in_baseclass): Likewise.
7383 * symtab.h (null_block_symbol): Remove.
7384 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
7385 (d_lookup_nested_symbol, d_lookup_symbol_imports)
7386 (d_lookup_symbol_module): Likewise.
7387 (find_symbol_in_baseclass): Simplify initialization.
7389 2019-03-24 Tom Tromey <tom@tromey.com>
7391 * expression.h: Don't include symtab.h.
7392 (struct block): Forward declare.
7394 2019-03-24 Tom Tromey <tom@tromey.com>
7396 * c-exp.y (typebase): Remove casts.
7397 * gdbtypes.c (lookup_unsigned_typename, )
7398 (lookup_signed_typename): Remove cast.
7399 * eval.c (parse_to_comma_and_eval): Remove cast.
7400 * parse.c (write_dollar_variable): Remove cast.
7401 * block.h (struct block) <superblock>: Now const.
7402 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
7403 * psymtab.c (psym_map_matching_symbols): Make "block" const.
7404 (map_block): Make "block" const.
7405 * symfile.h (struct quick_symbol_functions)
7406 <map_matching_symbols>: Constify block argument to "callback".
7407 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
7409 (find_pc_sect_compunit_symtab): Make "b" const.
7410 (find_symbol_at_address): Likewise.
7411 (search_symbols): Likewise.
7412 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
7413 (dw2_debug_names_lookup_symbol): Likewise.
7414 (dw2_map_matching_symbols): Update.
7415 * p-valprint.c (pascal_val_print): Remove "block".
7416 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
7417 (aux_add_nonlocal_symbols): Make "block" const.
7418 (resolve_subexp): Remove cast.
7419 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
7421 (iterate_over_file_blocks): Likewise.
7422 * f-exp.y (%union) <bval>: Remove.
7423 * coffread.c (patch_opaque_types): Make "b" const.
7424 * spu-tdep.c (spu_catch_start): Make "block" const.
7425 * c-valprint.c (print_unpacked_pointer): Remove "block".
7426 * symmisc.c (dump_symtab_1): Make "b" const.
7427 (block_depth): Make "block" const.
7428 * d-exp.y (%union) <bval>: Remove.
7429 * cp-support.h (cp_lookup_rtti_type): Update.
7430 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
7431 * psymtab.c (psym_lookup_symbol): Make "block" const.
7432 (maintenance_check_psymtabs): Make "b" const.
7433 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
7434 (enumerate_locals, enumerate_args): Update.
7435 * python/py-symtab.c (stpy_global_block): Make "block" const.
7436 (stpy_static_block): Likewise.
7437 * inline-frame.c (block_starting_point_at): Make "new_block"
7439 * block.c (find_block_in_blockvector): Make return type const.
7440 (blockvector_for_pc_sect): Make "b" const.
7441 (find_block_in_blockvector): Make "b" const.
7443 2019-03-23 Tom Tromey <tom@tromey.com>
7445 * varobj.c (varobj_create): Update.
7446 * symfile.c (clear_symtab_users): Don't reset innermost_block.
7447 * printcmd.c (display_command, do_one_display): Don't reset
7449 * parser-defs.h (enum innermost_block_tracker_type): Move to
7451 (innermost_block): Update comment.
7452 * parse.c (parse_exp_1): Add tracker_types parameter.
7453 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
7454 tracker_types parameter. Reset innermost_block.
7455 (parse_exp_in_context): Remove.
7456 (parse_expression_for_completion): Update.
7457 * objfiles.c (~objfile): Don't reset expression_context_block or
7459 * expression.h (enum innermost_block_tracker_type): Move from
7461 (parse_exp_1): Add tracker_types parameter.
7462 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
7463 reset innermost_block.
7465 2019-03-23 Tom Tromey <tom@tromey.com>
7467 * objfiles.h: Include bcache.h.
7469 2019-03-23 Tom Tromey <tom@tromey.com>
7471 * linespec.c (get_current_search_block): Use
7472 scoped_restore_current_language.
7473 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
7475 2019-03-22 Alan Hayward <alan.hayward@arm.com>
7476 Jiong Wang <jiong.wang@arm.com>
7478 * aarch64-linux-tdep.c
7479 (aarch64_linux_iterate_over_regset_sections): Check for pauth
7481 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
7483 2019-03-22 Alan Hayward <alan.hayward@arm.com>
7484 Jiong Wang <jiong.wang@arm.com>
7486 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
7488 (aarch64_analyze_prologue_test): Add PACIASP test.
7489 (aarch64_prologue_prev_register): Unmask PC value.
7491 2019-03-22 Alan Hayward <alan.hayward@arm.com>
7492 Jiong Wang <jiong.wang@arm.com>
7494 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
7495 (aarch64_dwarf2_prev_register): Unmask PC value.
7496 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
7497 (aarch64_execute_dwarf_cfa_vendor_op): Check for
7498 DW_CFA_AARCH64_negate_ra_state.
7499 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
7501 2019-03-22 Alan Hayward <alan.hayward@arm.com>
7502 Jiong Wang <jiong.wang@arm.com>
7504 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
7506 (aarch64_pseudo_register_name): Likewise.
7507 (aarch64_pseudo_register_type): Likewise.
7508 (aarch64_pseudo_register_reggroup_p): Likewise.
7509 (aarch64_gdbarch_init): Add pauth registers.
7510 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
7511 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
7512 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
7513 (struct gdbarch_tdep): Add regnum for ra_state.
7515 2019-03-22 Alan Hayward <alan.hayward@arm.com>
7516 Jiong Wang <jiong.wang@arm.com>
7518 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
7520 2019-03-22 Alan Hayward <alan.hayward@arm.com>
7521 Jiong Wang <jiong.wang@arm.com>
7523 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
7525 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
7526 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
7527 (aarch64_gdbarch_init): Add puth registers.
7528 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
7529 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
7530 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
7532 2019-03-22 Alan Hayward <alan.hayward@arm.com>
7533 Jiong Wang <jiong.wang@arm.com>
7535 * aarch64-linux-nat.c
7536 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
7537 * aarch64-linux-tdep.c
7538 (aarch64_linux_core_read_description): Likewise.
7539 (aarch64_linux_get_hwcap): New function.
7540 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
7541 (aarch64_linux_get_hwcap): New declaration.
7543 2019-03-22 Alan Hayward <alan.hayward@arm.com>
7544 Jiong Wang <jiong.wang@arm.com>
7546 * aarch64-linux-nat.c
7547 (aarch64_linux_nat_target::read_description): Add pauth param.
7548 * aarch64-linux-tdep.c
7549 (aarch64_linux_core_read_description): Likewise.
7550 * aarch64-tdep.c (struct target_desc): Add in pauth.
7551 (aarch64_read_description): Add pauth param.
7552 (aarch64_gdbarch_init): Likewise.
7553 * aarch64-tdep.h (aarch64_read_description): Likewise.
7554 * arch/aarch64.c (aarch64_create_target_description): Likewise.
7555 * arch/aarch64.h (aarch64_create_target_description): Likewise.
7556 * features/Makefile: Add new files.
7557 * features/aarch64-pauth.c: New file.
7558 * features/aarch64-pauth.xml: New file.
7560 2019-03-20 Tom Tromey <tromey@adacore.com>
7562 * infrun.c (handle_inferior_event): Rename from
7563 handle_inferior_event_1. Create a scoped_value_mark.
7564 (handle_inferior_event): Remove.
7566 2019-03-19 Tom Tromey <tromey@adacore.com>
7568 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
7569 * infrun.h (print_stop_event): Add "displays" parameter.
7570 * infrun.c (print_stop_event): Add "displays" parameter.
7572 2019-03-19 Pedro Alves <palves@redhat.com>
7574 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
7575 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
7576 to -1. Fix TABs vs spaces.
7577 (tui_ui_out::tui_ui_out): Don't initialize fields here.
7578 * tui/tui-out.h (tui_ui_out) Add intro comments.
7579 <m_line, m_start_of_line>: In-class initialize, and add describing
7582 2019-03-18 Alan Hayward <alan.hayward@arm.com>
7584 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
7586 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
7588 2019-03-18 Pedro Alves <palves@redhat.com>
7589 Eli Zaretskii <eliz@gnu.org>
7591 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
7592 m_line and m_start_of_line.
7594 2019-03-18 Eli Zaretskii <eliz@gnu.org>
7596 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
7597 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
7598 it returns a newline. This fixes a regression in TU mode, whereby
7599 the next line is output on the same screen line as the user input.
7601 2019-03-18 Tom Tromey <tromey@adacore.com>
7603 * minsyms.c (minimal_symbol_reader::install): Remove call to
7606 2019-03-18 Pedro Alves <palves@redhat.com>
7608 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
7610 (apply_style): New, factored out from ...
7611 (apply_ansi_escape): ... this. Handle reverse video mode.
7612 (tui_set_reverse_mode): New function.
7613 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
7614 * tui/tui-winsource.c (tui_show_source_line): Use
7615 tui_set_reverse_mode instead of setting A_STANDOUT.
7616 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
7619 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
7621 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
7624 2019-03-18 Tom Tromey <tromey@adacore.com>
7626 * ada-lang.c (empty_array): Add "high" parameter.
7627 (ada_evaluate_subexp): Update.
7629 2019-03-17 Sergei Trofimovich <siarheit@google.com>
7631 * unittests/string_view-selftests.c: Define
7632 _initialize_string_view_selftests unconditionally.
7634 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
7637 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
7639 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
7642 * windows-nat.c (display_selector): Fix format specifiers.
7644 2019-03-17 Eli Zaretskii <eliz@gnu.org>
7646 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
7647 tui_refill_source_window instead of tui_refresh_win, to update the
7648 current execution line. This fixes redisplay of the current line
7649 when stepping through the code with "next" or "step".
7651 2019-03-16 Eli Zaretskii <eliz@gnu.org>
7653 * source-cache.c (source_cache::get_source_lines): Call
7654 find_source_lines to initialize s->nlines. This fixes vertical
7655 scrolling of TUI source window when the DOWN arrow is pressed.
7657 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7659 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
7660 linux-thread-db.c (_initialize_thread_db): Likewise.
7662 2019-03-16 Eli Zaretskii <eliz@gnu.org>
7664 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
7665 wclrtoeol in tui_show_source_line". This reverts changes made in
7666 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
7668 2019-03-15 Tom Tromey <tom@tromey.com>
7670 * symtab.h (struct minimal_symbol): Derive from
7671 general_symbol_info.
7672 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
7673 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7674 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7675 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7676 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
7677 (MSYMBOL_SEARCH_NAME): Update.
7678 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
7679 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
7680 * minsyms.c (minimal_symbol_reader::record_full): Update.
7682 2019-03-15 Tom Tromey <tom@tromey.com>
7684 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
7686 2019-03-15 Tom Tromey <tom@tromey.com>
7688 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
7690 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
7692 * minsyms.c (lookup_minimal_symbol_by_pc_section)
7693 (build_minimal_symbol_hash_tables)
7694 (minimal_symbol_reader::install): Update.
7696 2019-03-15 Tom Tromey <tom@tromey.com>
7698 * symtab.c (create_demangled_names_hash): Update.
7699 (symbol_set_names): Update.
7700 * objfiles.h (struct objfile_per_bfd_storage)
7701 <demangled_names_hash>: Now an htab_up.
7702 * objfiles.c (objfile_per_bfd_storage): Simplify.
7704 2019-03-15 Tom Tromey <tom@tromey.com>
7706 * objfiles.h (struct objfile_per_bfd_storage): Declare
7708 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
7710 (get_objfile_bfd_data): Use new. Don't initialize
7712 (free_objfile_per_bfd_storage): Remove.
7713 (objfile_bfd_data_free, objfile::~objfile): Use delete.
7715 2019-03-15 Tom Tromey <tom@tromey.com>
7717 * symfile.c (reread_symbols): Update.
7718 * objfiles.c (objfile::objfile): Update.
7719 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
7720 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
7722 (minimal_symbol_reader::install): Update.
7723 (terminate_minimal_symbol_table): Remove.
7724 * jit.c (jit_object_close_impl): Update.
7726 2019-03-15 Tom Tromey <tom@tromey.com>
7728 * minsyms.c (minimal_symbol_reader::record_full): Remove some
7731 2019-03-15 Tom Tromey <tom@tromey.com>
7733 * objfiles.h (struct objfile_per_bfd_storage)
7734 <demangled_hash_languages>: Now a bitset.
7735 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
7736 (lookup_minimal_symbol): Update.
7738 2019-03-15 Tom Tromey <tom@tromey.com>
7740 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
7741 Don't return the symbol.
7742 * coffread.c (record_minimal_symbol): Use record_full.
7744 2019-03-14 Eli Zaretskii <eliz@gnu.org>
7746 The MS-Windows port of ncurses fails to switch to a color pair if
7747 one or both of the colors are the implicit default colors. This
7748 change records the default colors when TUI is initialized, and
7749 then specifies them explicitly when a color pair uses the default
7750 colors. This allows color styling in TUI mode on MS-Windows.
7752 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
7754 (tui_initialize_io) [__MINGW32__]: Record the default terminal
7755 colors in ncurses_norm_attr.
7756 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
7757 "none", replace it with the default color recorded in
7760 2019-03-14 Tom Tromey <tromey@adacore.com>
7762 * source-cache.h (class source_cache) <get_source_lines>: Return
7764 * source-cache.c (source_cache::extract_lines): Handle case where
7765 first_pos==npos. Return std::string.
7766 (source_cache::get_source_lines): Update.
7768 2019-03-14 Tom Tromey <tromey@adacore.com>
7770 * NEWS: Add item for "style sources" commands.
7771 * source-cache.c (source_cache::get_source_lines): Check
7773 * cli/cli-style.c (source_styling): New global.
7774 (_initialize_cli_style): Add "style sources" commands.
7775 (show_style_sources): New function.
7776 * cli/cli-style.h (source_styling): Declare.
7778 2019-03-14 Pedro Alves <palves@redhat.com>
7779 Tom Tromey <tromey@adacore.com>
7781 * tui/tui-winsource.h (tui_refill_source_window): Declare.
7782 * tui/tui-winsource.c (tui_refill_source_window): New function,
7784 (tui_horizontal_source_scroll): ... here. Move some logic.
7785 * cli/cli-style.c (set_style_enabled): Notify new observable.
7786 * tui/tui-hooks.c (tui_redisplay_source): New function.
7787 (tui_attach_detach_observers): Attach or detach
7788 tui_redisplay_source.
7789 * observable.h (source_styling_changed): New observable.
7790 * observable.c: Define source_styling_changed observable.
7792 2019-03-13 Tom Tromey <tromey@adacore.com>
7794 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
7795 (i386_gnu_nat_target::store_registers): Update.
7796 * target-debug.h (target_debug_print_std_string): New macro.
7797 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
7798 * windows-tdep.c (display_one_tib): Update.
7799 * tui/tui-stack.c (tui_make_status_line): Update.
7800 * top.c (print_inferior_quit_action): Update.
7801 * thread.c (thr_try_catch_cmd): Update.
7802 (add_thread_with_info): Update.
7803 (thread_target_id_str): Update.
7804 (thr_try_catch_cmd): Update.
7805 (thread_command): Update.
7806 (thread_find_command): Update.
7807 * record-btrace.c (record_btrace_target::info_record)
7808 (record_btrace_resume_thread, record_btrace_target::resume)
7809 (record_btrace_cancel_resume, record_btrace_step_thread)
7810 (record_btrace_target::wait, record_btrace_target::wait)
7811 (record_btrace_target::wait, record_btrace_target::stop): Update.
7812 * progspace.c (print_program_space): Update.
7813 * process-stratum-target.c
7814 (process_stratum_target::thread_address_space): Update.
7815 * linux-fork.c (linux_fork_mourn_inferior)
7816 (detach_checkpoint_command, info_checkpoints_command)
7817 (linux_fork_context): Update.
7818 (linux_fork_detach): Update.
7819 (class scoped_switch_fork_info): Update.
7820 (delete_checkpoint_command): Update.
7821 * infrun.c (follow_fork_inferior): Update.
7822 (follow_fork_inferior): Update.
7823 (proceed_after_vfork_done): Update.
7824 (handle_vfork_child_exec_or_exit): Update.
7825 (follow_exec): Update.
7826 (displaced_step_prepare_throw): Update.
7827 (displaced_step_restore): Update.
7828 (start_step_over): Update.
7830 (clear_proceed_status_thread): Update.
7832 (print_target_wait_results): Update.
7833 (do_target_wait): Update.
7834 (context_switch): Update.
7835 (stop_all_threads): Update.
7836 (restart_threads): Update.
7837 (finish_step_over): Update.
7838 (handle_signal_stop): Update.
7839 (switch_back_to_stepped_thread): Update.
7840 (keep_going_pass_signal): Update.
7841 (print_exited_reason): Update.
7842 (normal_stop): Update.
7843 * inferior.c (inferior_pid_to_str): Change return type.
7844 (print_selected_inferior): Update.
7845 (add_inferior): Update.
7846 (detach_inferior): Update.
7847 * dummy-frame.c (fprint_dummy_frames): Update.
7848 * dcache.c (dcache_info_1): Update.
7849 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
7850 (btrace_fetch, btrace_clear): Update.
7851 * linux-tdep.c (linux_core_pid_to_str): Change return type.
7852 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
7854 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
7855 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
7856 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
7857 * gdbarch.c, gdbarch.h: Rebuild.
7858 * gdbarch.sh (core_pid_to_str): Change return type.
7859 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
7861 (windows_nat_target::pid_to_str): Change return type.
7862 (windows_delete_thread): Update.
7863 (windows_nat_target::attach): Update.
7864 (windows_nat_target::files_info): Update.
7865 * target-delegates.c: Rebuild.
7866 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
7868 (sol_thread_target::pid_to_str): Change return type.
7869 * remote.c (class remote_target) <pid_to_str>: Change return
7871 (remote_target::pid_to_str): Change return type.
7872 (extended_remote_target::attach, remote_target::remote_stop_ns)
7873 (remote_target::remote_notif_remove_queued_reply)
7874 (remote_target::push_stop_reply, remote_target::disable_btrace):
7876 (extended_remote_target::attach): Update.
7877 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
7879 (gdbsim_target::pid_to_str): Change return type.
7880 * ravenscar-thread.c (struct ravenscar_thread_target)
7881 <pid_to_str>: Change return type.
7882 (ravenscar_thread_target::pid_to_str): Change return type.
7883 * procfs.c (class procfs_target) <pid_to_str>: Change return
7885 (procfs_target::pid_to_str): Change return type.
7886 (procfs_target::attach): Update.
7887 (procfs_target::detach): Update.
7888 (procfs_target::fetch_registers): Update.
7889 (procfs_target::store_registers): Update.
7890 (procfs_target::wait): Update.
7891 (procfs_target::files_info): Update.
7892 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
7893 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
7895 (nto_procfs_target::pid_to_str): Change return type.
7896 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
7897 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
7899 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
7901 (attach_proc_task_lwp_callback, get_detach_signal)
7902 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
7903 (linux_nat_target::resume, wait_lwp, stop_callback)
7904 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
7905 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
7906 (linux_nat_wait_1, resume_stopped_resumed_lwps)
7907 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
7908 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
7910 (inf_ptrace_target::attach): Update.
7911 (inf_ptrace_target::files_info): Update.
7912 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
7914 (go32_nat_target::pid_to_str): Change return type.
7915 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
7916 (gnu_nat_target::wait): Update.
7917 (gnu_nat_target::wait): Update.
7918 (gnu_nat_target::resume): Update.
7919 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
7920 (fbsd_nat_target::wait): Update.
7921 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
7923 (darwin_nat_target::attach): Update.
7924 * corelow.c (class core_target) <pid_to_str>: Change return type.
7925 (core_target::pid_to_str): Change return type.
7926 * target.c (normal_pid_to_str): Change return type.
7927 (default_pid_to_str): Likewise.
7928 (target_pid_to_str): Change return type.
7929 (target_translate_tls_address): Update.
7930 (target_announce_detach): Update.
7931 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
7933 (bsd_uthread_target::pid_to_str): Change return type.
7934 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
7936 (bsd_kvm_target::pid_to_str): Change return type.
7937 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
7939 (aix_thread_target::pid_to_str): Change return type.
7940 * target.h (struct target_ops) <pid_to_str>: Change return type.
7941 (target_pid_to_str, normal_pid_to_str): Likewise.
7942 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
7944 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
7946 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
7948 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
7950 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
7952 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
7955 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
7957 * NEWS: Mention that the new default MI version is 3. Mention
7958 changes to the output of commands and events that deal with
7959 multi-location breakpoints.
7960 * breakpoint.c: Include "mi/mi-out.h".
7961 (print_one_breakpoint): Change output syntax if using MI version
7963 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
7965 (mi_multi_location_breakpoint_output_fixed): New.
7966 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
7967 (mi_cmd_fix_multi_location_breakpoint_output): New.
7968 (mi_multi_location_breakpoint_output_fixed): New.
7969 * mi/mi-cmds.c (mi_cmds): Register command
7970 -fix-multi-location-breakpoint-output.
7971 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
7974 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7976 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
7977 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
7978 instantiate mi_ui_out based on interpreter name.
7979 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
7980 * mi/mi-main.c (mi_load_progress): Likewise.
7982 2019-03-12 John Baldwin <jhb@FreeBSD.org>
7984 * NEWS: Combine separate "New targets" sections for 8.3.
7986 2019-03-12 John Baldwin <jhb@FreeBSD.org>
7988 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
7989 (ppcfbsd_init_abi): Install gdbarch
7990 "fetch_tls_load_module_address" and "get_thread_local_address"
7993 2019-03-12 John Baldwin <jhb@FreeBSD.org>
7995 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
7996 (riscv_fbsd_init_abi): Install gdbarch
7997 "fetch_tls_load_module_address" and "get_thread_local_address"
8000 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8002 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
8003 (i386fbsd_init_abi): Install gdbarch
8004 "fetch_tls_load_module_address" and "get_thread_local_address"
8007 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8009 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
8010 (amd64fbsd_init_abi): Install gdbarch
8011 "fetch_tls_load_module_address" and "get_thread_local_address"
8014 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8016 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
8017 (struct fbsd_pspace_data): New type.
8018 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
8019 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
8020 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
8021 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
8022 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
8024 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8026 * gdbtypes.c (lookup_struct_elt): New function.
8027 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
8028 * gdbtypes.h (struct struct_elt): New type.
8029 (lookup_struct_elt): New prototype.
8031 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8033 * gdbtypes.c (lookup_struct_elt_type): Update comment and
8034 remove disabled code block.
8036 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8038 * gdbarch.sh (get_thread_local_address): New method.
8039 * gdbarch.h, gdbarch.c: Regenerate.
8040 * target.c (target_translate_tls_address): Use
8041 gdbarch_get_thread_local_address if present instead of
8042 target::get_thread_local_address.
8044 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8046 * target.h (target::get_thread_local_address): Update comment.
8048 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8050 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
8051 objfile->separate_debug_objfile_backlink if not NULL.
8053 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8055 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
8056 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
8057 (amd64bsd_store_inferior_registers): Likewise.
8058 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
8059 Enable segment base registers.
8060 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
8061 PT_GETFSBASE and PT_GETGSBASE.
8062 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
8064 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
8065 segment base registers.
8066 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
8068 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8070 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
8071 Update calls to i386_target_description to add 'segments'
8073 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
8074 add segment base registers.
8075 * arch/i386.c (i386_create_target_description): Add 'segments'
8076 parameter to enable segment base registers.
8077 * arch/i386.h (i386_create_target_description): Likewise.
8078 * features/i386/32bit-segments.xml: New file.
8079 * features/i386/32bit-segments.c: Generate.
8080 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
8081 call to i386_target_description to add 'segments' parameter.
8082 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
8083 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
8084 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
8085 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
8086 if feature is present.
8087 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
8088 Add 'segments' parameter to call to i386_target_description.
8089 (i386_target_description): Add 'segments' parameter to enable
8090 segment base registers.
8091 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
8092 to call to i386_target_description.
8093 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
8094 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
8095 Define I386_NUM_REGS.
8096 (i386_target_description): Add 'segments' parameter to enable
8097 segment base registers.
8099 2019-03-12 Eli Zaretskii <eliz@gnu.org>
8102 * source-cache.c: #undef open and close, to avoid unresolved
8103 externals during linking.
8105 2019-03-12 Tom Tromey <tromey@adacore.com>
8107 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
8108 const. Add initializers.
8109 (_initialize_remote): Don't initialize ptid globals.
8111 2019-03-12 Pedro Alves <palves@redhat.com>
8113 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
8115 2019-03-12 Pedro Alves <palves@redhat.com>
8117 * cp-name-parser.y (main): Remove unused 'len' variable.
8119 2019-03-12 Tom Tromey <tromey@adacore.com>
8121 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
8122 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
8124 2019-03-12 Tom Tromey <tromey@adacore.com>
8126 * linux-nat.c (iterate_over_lwps): Update.
8127 (stop_callback): Remove parameter.
8128 (stop_wait_callback, detach_callback, resume_set_callback)
8129 (select_singlestep_lwp_callback, set_ignore_sigint)
8130 (status_callback, resumed_callback, resume_clear_callback)
8131 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
8133 (linux_nat_target::detach, linux_nat_target::resume)
8134 (linux_stop_and_wait_all_lwps, select_event_lwp)
8135 (linux_nat_filter_event, linux_nat_wait_1)
8136 (linux_nat_target::kill, linux_nat_target::stop)
8137 (linux_nat_target::stop): Update.
8138 (linux_nat_resume_callback): Change type.
8139 (resume_stopped_resumed_lwps, count_events_callback)
8140 (select_event_lwp_callback): Likewise.
8141 (linux_stop_lwp, linux_nat_stop_lwp): Update.
8142 * arm-linux-nat.c (struct update_registers_data): Remove.
8143 (update_registers_callback): Change type.
8144 (arm_linux_insert_hw_breakpoint1): Update.
8145 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
8147 (x86_linux_dr_set_addr): Update.
8148 (x86_linux_dr_set_control): Update.
8149 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
8150 (iterate_over_lwps): Use gdb::function_view.
8151 * nat/aarch64-linux-hw-point.c (struct
8152 aarch64_dr_update_callback_param): Remove.
8153 (debug_reg_change_callback): Change type.
8154 (aarch64_notify_debug_reg_change): Update.
8155 * s390-linux-nat.c (s390_refresh_per_info): Update.
8157 2019-03-11 Tom Tromey <tromey@adacore.com>
8159 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
8160 redundant assignment to "this_cu".
8162 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8164 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
8166 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8168 * gdbtypes.c (rank_one_type_parm_set): New function extracted
8170 (rank_one_type): ... this.
8172 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8174 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
8176 (rank_one_type): ... this.
8178 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8180 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
8182 (rank_one_type): ... this.
8184 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8186 * gdbtypes.c (rank_one_type_parm_float): New function extracted
8188 (rank_one_type): ... this.
8190 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8192 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
8194 (rank_one_type): ... this.
8196 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8198 * gdbtypes.c (rank_one_type_parm_range): New function extracted
8200 (rank_one_type): ... this.
8202 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8204 * gdbtypes.c (rank_one_type_parm_char): New function extracted
8206 (rank_one_type): ... this.
8208 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8210 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
8212 (rank_one_type): ... this.
8214 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8216 * gdbtypes.c (rank_one_type_parm_int): New function extracted
8218 (rank_one_type): ... this.
8220 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8222 * gdbtypes.c (rank_one_type_parm_func): New function extracted
8224 (rank_one_type): ... this.
8226 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8228 * gdbtypes.c (rank_one_type_parm_array): New function extracted
8230 (rank_one_type): ... this.
8232 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8234 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
8236 (rank_one_type): ... this.
8238 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8240 * inferior.c (initialize_inferiors): Ensure 'help set/show print
8241 inferior-events' shows the example events.
8243 2019-03-08 Eli Zaretskii <eliz@gnu.org>
8245 Support styling on native MS-Windows console
8248 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
8249 on MS-Windows if $TERM is not defined.
8251 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
8253 * posix-hdep.c (gdb_console_fputs):
8254 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
8256 * ui-file.h (gdb_console_fputs): Add prototype.
8258 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
8259 back to fputs only if the former returns zero.
8261 2019-03-07 Tom Tromey <tom@tromey.com>
8263 * symmisc.c (print_symbol_bcache_statistics): Update.
8264 (print_objfile_statistics): Update.
8265 * symfile.c (allocate_symtab): Update.
8266 * stabsread.c: Don't include bcache.h.
8267 * psymtab.h (struct psymbol_bcache): Don't declare.
8268 (class psymtab_storage) <psymbol_cache>: Now a bcache.
8269 (psymbol_bcache_init, psymbol_bcache_free)
8270 (psymbol_bcache_get_bcache): Don't declare.
8271 * psymtab.c (struct psymbol_bcache): Remove.
8272 (psymtab_storage::psymtab_storage): Update.
8273 (psymtab_storage::~psymtab_storage): Update.
8274 (psymbol_bcache_init, psymbol_bcache_free)
8275 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
8276 (add_psymbol_to_bcache): Update.
8277 (allocate_psymtab): Update.
8278 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8279 macro_cache>: No longer pointers.
8280 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
8281 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
8282 * macrotab.c (macro_bcache): Update.
8283 * macroexp.c: Don't include bcache.h.
8284 * gdbtypes.c (check_types_worklist): Update.
8285 (types_deeply_equal): Remove TRY/CATCH. Update.
8286 * elfread.c (elf_symtab_read): Update.
8287 * dwarf2read.c: Don't include bcache.h.
8288 * buildsym.c (buildsym_compunit::get_macro_table): Update.
8289 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
8290 (print_bcache_statistics, bcache_memory_used): Don't declare.
8291 (struct bcache): Move from bcache.c. Add constructor, destructor,
8292 methods. Rename all data members.
8293 * bcache.c (struct bcache): Move to bcache.h.
8294 (bcache::expand_hash_table): Rename from expand_hash_table.
8296 (bcache::insert): Rename from bcache_full.
8297 (bcache::compare): Rename from bcache_compare.
8298 (bcache_xmalloc): Remove.
8299 (bcache::~bcache): Rename from bcache_xfree.
8300 (bcache::print_statistics): Rename from print_bcache_statistics.
8301 (bcache::memory_used): Rename from bcache_memory_used.
8303 2019-03-07 Pedro Alves <palves@redhat.com>
8305 * infrun.c (normal_stop): Also check for
8306 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
8308 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
8310 * f-lang.c (value_from_host_double): Moved to...
8311 * value.c (value_from_host_double): ...here.
8312 * value.h (value_from_host_double): Declare.
8313 * guile/scm-math.c (vlscm_convert_typed_number): Use
8314 value_from_host_double.
8315 (vlscm_convert_number): Likewise.
8316 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
8317 * python/py-value.c (convert_value_from_python): Likewise.
8319 2019-03-06 Tom Tromey <tom@tromey.com>
8321 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
8323 2019-03-06 Tom Tromey <tom@tromey.com>
8325 * utils.h (free_current_contents): Don't declare.
8326 * utils.c (free_current_contents): Remove.
8328 2019-03-06 Tom Tromey <tom@tromey.com>
8330 * top.c (quit_force): Update.
8331 * main.c (captured_command_loop): Update.
8332 * common/new-op.c (operator new): Update.
8333 * common/common-exceptions.c (struct catcher)
8334 <save_cleanup_chain>: Remove member.
8335 (exceptions_state_mc_init): Update.
8336 (exception_try_scope_entry): Return nullptr.
8337 (exception_try_scope_exit, exception_rethrow)
8338 (throw_exception_sjlj, throw_exception_cxx): Update.
8339 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
8340 (all_cleanups, do_cleanups, discard_cleanups)
8341 (discard_final_cleanups, save_cleanups, save_final_cleanups)
8342 (restore_cleanups, restore_final_cleanups): Don't declare.
8343 (do_final_cleanups): Remove parameter.
8344 * common/cleanups.c (cleanup_chain, make_cleanup)
8345 (make_cleanup_dtor, all_cleanups, do_cleanups)
8346 (discard_my_cleanups, discard_cleanups)
8347 (discard_final_cleanups, save_my_cleanups, save_cleanups)
8348 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
8349 (null_cleanup): Remove.
8350 (do_final_cleanups): Remove parameter.
8352 2019-03-06 Tom Tromey <tom@tromey.com>
8354 * remote.c (remote_target::remote_parse_stop_reply): Use
8357 2019-03-06 Tom Tromey <tom@tromey.com>
8359 * stabsread.c (struct stabs_field_info): Rename from field_info.
8360 <list, fnlist>: Add initializers.
8361 <obstack>: New member.
8362 (read_member_functions, read_struct_fields, read_baseclasses):
8363 Allocate on obstack. Don't use cleanups.
8364 (read_one_struct_field, read_member_functions, read_struct_fields)
8365 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
8366 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
8367 (read_struct_type): Update.
8369 2019-03-06 Tom Tromey <tom@tromey.com>
8371 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
8372 * common/filestuff.h (make_cleanup_close): Don't declare.
8373 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
8376 2019-03-06 Tom Tromey <tom@tromey.com>
8378 * solib-aix.c: Use make_scope_exit.
8380 2019-03-06 Tom Tromey <tom@tromey.com>
8382 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
8383 Use make_scope_exit.
8385 2019-03-06 Tom Tromey <tom@tromey.com>
8387 * solib-svr4.c (disable_probes_interface): Remove parameter.
8388 (svr4_handle_solib_event): Use make_scope_exit.
8390 2019-03-06 Tom Tromey <tom@tromey.com>
8392 * remote.c (struct stop_reply_deleter): Remove.
8393 (stop_reply_up): Update.
8394 (struct stop_reply): Derive from notif_event. Don't typedef.
8395 <regcache>: Now a std::vector.
8396 (stop_reply_xfree): Remove.
8397 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
8398 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
8399 (remote_target::discard_pending_stop_replies): Use delete.
8400 (remote_target::remote_parse_stop_reply): Update.
8401 (remote_target::process_stop_reply): Update.
8402 * remote-notif.h (struct notif_event): Add virtual destructor.
8403 Remove "dtr" member.
8404 (struct notif_client) <alloc_event>: Return a unique_ptr.
8405 (notif_event_xfree): Don't declare.
8406 (notif_event_up): New typedef.
8407 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
8408 (notif_event_xfree, do_notif_event_xfree): Remove.
8409 (remote_notif_state_xfree): Update.
8411 2019-03-06 Tom Tromey <tom@tromey.com>
8413 * infrun.c (displaced_step_clear_cleanup): Now a
8414 forward_scope_exit type.
8415 (displaced_step_prepare_throw): Update.
8416 (displaced_step_fixup): Update.
8418 2019-03-06 Tom Tromey <tom@tromey.com>
8420 * inferior.h (class inferior): Update comment.
8421 * gdbthread.h (class thread_info): Update comment.
8423 2019-03-06 Joel Brobecker <brobecker@adacore.com>
8424 Tom Tromey <tom@tromey.com>
8426 * stabsread.h (struct stab_section_list): Remove.
8427 (coffstab_build_psymtabs): Update.
8428 * dbxread.c (symbuf_sections): Now a std::vector.
8429 (sect_idx): New global.
8430 (fill_symbuf): Update.
8431 (coffstab_build_psymtabs): Change type of stabsects parameter.
8433 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
8435 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
8436 (coff_locate_sections): Update.
8437 (coff_symfile_read): Remove cleanups. Update.
8438 (init_stringtab): Add storage parameter.
8439 (free_stringtab, free_stringtab_cleanup): Remove.
8440 (init_lineno): Add storage parameter.
8441 (free_linetab, free_linetab_cleanup): Remove.
8443 2019-03-06 Pedro Alves <palves@redhat.com>
8445 * linux-fork.c (fork_info::clobber_regs): Delete.
8446 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
8447 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
8449 (scoped_switch_fork_info::scoped_switch_fork_info)
8450 (checkpoint_command, linux_fork_context): Adjust
8451 fork_save_infrun_state calls.
8453 2019-03-06 Pedro Alves <palves@redhat.com>
8455 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
8456 (inf_has_multiple_threads): Return 'bool' and rewrite using
8457 inferior_info::threads().
8459 2019-03-06 Pedro Alves <palves@redhat.com>
8461 * linux-fork.c: Include <list>.
8462 (fork_list): Now a std::list instance.
8463 (fork_info): Add ctor, dtor, and in-class initialize all fields.
8464 (forks_exist_p, find_last_fork): Adjust.
8468 (free_fork): Delete, folded into fork_info::~fork_info().
8469 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
8471 (init_fork_list): Delete.
8472 (linux_fork_killall, linux_fork_mourn_inferior)
8473 (linux_fork_detach, info_checkpoints_command): Adjust.
8474 (_initialize_linux_fork): No longer call init_fork_list.
8476 2019-03-06 Pedro Alves <palves@redhat.com>
8478 * linux-fork.c (new_fork): New, split out of ...
8479 (add_fork): ... this. Return void. Move "first fork" special
8480 case from here, to ...
8481 (checkpoint_command): ... here.
8482 * linux-linux.h (add_fork): Return void.
8484 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8486 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
8488 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8489 Chris January <chris.january@arm.com>
8490 David Lecomber <david.lecomber@arm.com>
8492 * f-exp.y: New token, UNOP_INTRINSIC.
8493 (exp): New pattern using UNOP_INTRINSIC token.
8494 (f77_keywords): Add 'abs' keyword.
8495 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
8496 (value_from_host_double): New function.
8497 (evaluate_subexp_f): Support UNOP_ABS.
8499 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8501 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
8504 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8506 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
8507 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
8508 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
8510 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8512 * f-exp.y (convert_to_kind_type): Handle more type kinds.
8514 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8515 Chris January <chris.january@arm.com>
8517 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
8518 * f-exp.y: Define 'KIND' token.
8519 (exp): New pattern for KIND expressions.
8520 (ptype): Handle types with a kind extension.
8521 (direct_abs_decl): Extend to spot kind extensions.
8522 (f77_keywords): Add 'kind' to the list.
8523 (push_kind_type): New function.
8524 (convert_to_kind_type): New function.
8525 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
8526 * parse.c (operator_length_standard): Likewise.
8527 * parser-defs.h (enum type_pieces): Add tp_kind.
8528 * std-operator.def: Add UNOP_KIND.
8530 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8532 * f-exp.y (f_parse): Set yydebug.
8534 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8536 * f-lang.c (evaluate_subexp_f): New function.
8537 (exp_descriptor_f): New global.
8538 (f_language_defn): Use exp_descriptor_f instead of
8539 exp_descriptor_standard.
8541 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8543 * f-exp.y (struct token): Add comments.
8544 (dot_ops): Remove uppercase versions and the end marker.
8545 (f77_keywords): Likewise.
8546 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
8547 entries in the dot_ops array are case insensitive, and use
8548 strncasecmp to compare strings. Also some whitespace cleanup in
8549 this area. Similar for the f77_keywords array, except entries in
8550 this list might be case sensitive.
8552 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8554 * f-exp.y (struct f77_boolean_val): Add comments.
8555 (boolean_values): Remove uppercase versions, and end marker.
8556 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
8557 and use strncasecmp to achieve case insensitivity. Additionally,
8558 perform whitespace cleanup around this code.
8560 2019-03-06 Tom Tromey <tromey@adacore.com>
8562 * remote-sim.c (gdbsim_target_open): Use result of
8565 2019-03-06 Richard Bunt <richard.bunt@arm.com>
8566 Dirk Schubert <dirk.schubert@arm.com>
8567 Chris January <chris.january@arm.com>
8569 * eval.c (evaluate_subexp_standard): Call Fortran argument
8571 * f-lang.c (struct value): A value which can be passed into a
8572 Fortran function call.
8573 (fortran_argument_convert): Wrap Fortran arguments in a pointer
8575 (struct type): Value ready for a Fortran function call.
8576 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
8578 * f-lang.h (fortran_argument_convert): Declaration.
8579 (fortran_preserve_arg_pointer): Declaration.
8580 * infcall.c (value_arg_coerce): Call Fortran argument logic.
8582 2019-03-05 Tom Tromey <tromey@adacore.com>
8584 * python/py-prettyprint.c (print_string_repr): Remove #if.
8585 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
8587 2019-03-05 Tom Tromey <tromey@adacore.com>
8589 * target.c (the_dummy_target): Move later. Change type to
8591 (initialize_targets): Don't initialize the_dummy_target.
8593 2019-03-05 Tom Tromey <tromey@adacore.com>
8595 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
8596 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
8598 2019-03-05 Tom Tromey <tromey@adacore.com>
8600 * windows-nat.c (windows_nat_target::attach)
8601 (windows_nat_target::detach): Don't call gdb_flush.
8602 * valprint.c (generic_val_print, val_print, val_print_string):
8603 Don't call gdb_flush.
8604 * utils.c (defaulted_query): Don't call gdb_flush.
8605 * typeprint.c (print_type_scalar): Don't call gdb_flush.
8606 * target.c (target_announce_detach): Don't call gdb_flush.
8607 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
8608 * remote.c (extended_remote_target::attach): Don't call
8610 * procfs.c (procfs_target::detach): Don't call gdb_flush.
8611 * printcmd.c (do_examine): Don't call gdb_flush.
8612 (info_display_command): Don't call gdb_flush.
8613 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
8614 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
8615 * memattr.c (info_mem_command): Don't call gdb_flush.
8616 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
8617 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
8618 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
8619 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
8620 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
8621 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
8622 (gnu_nat_target::detach): Don't call gdb_flush.
8623 * f-valprint.c (f_val_print): Don't call gdb_flush.
8624 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
8625 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
8626 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
8628 * c-valprint.c (c_val_print): Don't call gdb_flush.
8629 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
8631 2019-03-05 Tom Tromey <tromey@adacore.com>
8633 * varobj.c (update_dynamic_varobj_children): Update.
8634 (install_default_visualizer): Use reset, not release.
8635 * value.c (set_internalvar): Update.
8636 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
8637 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
8638 ATTRIBUTE_UNUSED_RESULT.
8640 2019-03-05 Tom Tromey <tromey@adacore.com>
8642 * remote.c (class scoped_remote_fd) <release>: Add
8643 ATTRIBUTE_UNUSED_RESULT.
8645 2019-03-05 Tom Tromey <tromey@adacore.com>
8647 * macroexp.c (struct macro_buffer) <release>: Add
8648 ATTRIBUTE_UNUSED_RESULT.
8650 2019-03-05 Tom Tromey <tromey@adacore.com>
8652 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
8653 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
8654 ATTRIBUTE_UNUSED_RESULT.
8656 2019-03-05 Tom Tromey <tromey@adacore.com>
8658 * common/scoped_fd.h (class scoped_fd) <release>: Add
8659 ATTRIBUTE_UNUSED_RESULT.
8661 2019-03-05 Tom Tromey <tromey@adacore.com>
8663 * parser-defs.h (struct parser_state) <release>: Add
8664 ATTRIBUTE_UNUSED_RESULT.
8666 2019-03-05 Tom Tromey <tromey@adacore.com>
8668 * utils.h (class gdb_argv) <release>: Add
8669 ATTRIBUTE_UNUSED_RESULT.
8670 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
8672 2019-03-02 Eli Zaretskii <eliz@gnu.org>
8674 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
8675 for-loop range, to avoid compiler warnings.
8677 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
8678 avoid compiler warnings about unused variables.
8680 * NEWS: Mention end of support for native debugging on MS-Windows
8684 * common/netstuff.c:
8685 * gdbserver/gdbreplay.c
8686 * gdbserver/remote-utils.c:
8688 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
8689 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
8690 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
8691 'getaddrinfo' and 'freeaddrinfo' were not available before
8692 Windows XP, and mingw.org's MinGW headers by default define
8693 _WIN32_WINNT to 0x500.
8695 2019-03-01 Gary Benson <gbenson@redhat.com>
8697 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
8699 2019-02-28 Brian Vandenberg <phantall@gmail.com>
8700 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8703 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
8704 set_sigint_trap, clear_sigint_trap.
8706 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8708 * target.c (target_detach): Clear the regcache and the
8711 2019-02-27 Pedro Alves <palves@redhat.com>
8713 * utils.c (set_screen_size): When we cap the height/width sizes,
8714 tweak the corresponding command variable to show "unlimited":
8716 2019-02-27 Saagar Jha <saagar@saagarjha.com>
8717 Pedro Alves <palves@redhat.com>
8719 * utils.c (set_screen_size): Reduce "infinite" rows and columns
8720 before calling rl_set_screen_size.
8722 2019-02-27 Tom Tromey <tromey@adacore.com>
8724 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
8726 * python/py-value.c: Remove Python 2.4 workaround.
8727 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
8729 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
8730 Python 2.4 workaround.
8731 * python/python-internal.h: Remove Python 2.4 comment.
8732 (Py_ssize_t): Don't define.
8733 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
8734 (gdb_Py_DECREF): Remove Python 2.4 workaround.
8735 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
8736 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
8737 * python/python.c (do_start_initialization): Remove Python 2.4
8739 * python/py-prettyprint.c (class dummy_python_frame): Remove.
8740 (print_children): Remove Python 2.4 workaround.
8741 * python/py-inferior.c (buffer_procs): Remove Python 2.4
8743 (CHARBUFFERPROC_NAME): Remove.
8744 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
8745 Python 2.4 workaround.
8747 2019-02-27 Kevin Buettner <kevinb@redhat.com>
8749 * NEWS: Note minimum Python version.
8751 2019-02-27 Kevin Buettner <kevinb@redhat.com>
8753 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
8754 code from these functions. Remove corresponding ifdefs. Use
8755 Py_buffer_up instead of explicit calls to PyBuffer_Release.
8756 Remove gotos and target of gotos.
8757 (infpy_search_memory): Likewise.
8759 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8761 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
8762 (hppa_gdbarch_init): Don't register deleted functions with
8765 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8767 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
8768 (h8300_unwind_sp): Delete.
8769 (h8300_dummy_id): Delete.
8770 (h8300_gdbarch_init): Don't register deleted functions with
8773 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8775 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
8776 (ft32_unwind_pc): Delete.
8777 (ft32_unwind_sp): Delete.
8778 (ft32_gdbarch_init): Don't register deleted functions with
8781 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8783 * gdb/frv-tdep.c (frv_dummy_id): Delete.
8784 (frv_unwind_pc): Delete.
8785 (frv_unwind_sp): Delete.
8786 (frv_gdbarch_init): Don't register deleted functions with
8789 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8791 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
8792 (riscv_unwind_pc): Delete.
8793 (riscv_unwind_sp): Delete.
8794 (riscv_gdbarch_init): Don't register deleted functions with
8797 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8799 * gdb/csky-tdep.c (csky_dummy_id): Delete.
8800 (csky_unwind_pc): Delete.
8801 (csky_unwind_sp): Delete.
8802 (csky_gdbarch_init): Don't register deleted functions with
8805 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8807 * gdb/cris-tdep.c (cris_dummy_id): Delete.
8808 (cris_unwind_pc): Delete.
8809 (cris_unwind_sp): Delete.
8810 (cris_gdbarch_init): Don't register deleted functions with
8813 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8815 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
8816 (bfin_unwind_pc): Delete.
8817 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
8819 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8821 * gdb/arm-tdep.c (arm_dummy_id): Delete.
8822 (arm_unwind_pc): Delete.
8823 (arm_unwind_sp): Delete.
8824 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
8826 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8828 * gdb/arc-tdep.c (arc_dummy_id): Delete.
8829 (arc_unwind_pc): Delete.
8830 (arc_unwind_sp): Delete.
8831 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
8833 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8835 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
8836 (alpha_unwind_pc): Delete.
8837 (alpha_gdbarch_init): Don't register deleted functions with
8840 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8842 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
8843 (aarch64_unwind_pc): Delete.
8844 (aarch64_unwind_sp): Delete.
8845 (aarch64_gdbarch_init): Don't register deleted functions with
8848 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8850 * gdbtypes.c (type_align): Don't consider static members when
8851 computing structure alignment.
8853 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8855 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
8856 return 0 for other types.
8857 * arch-utils.c (default_type_align): Always return 0.
8858 * gdbarch.h: Regenerate.
8859 * gdbarch.sh (type_align): Extend comment.
8860 * gdbtypes.c (type_align): Add additional comments, always call
8861 gdbarch_type_align before applying the default rules.
8862 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
8863 generic code will then apply a suitable default.
8864 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
8865 types, return 0 for other types.
8867 2019-02-27 Joel Brobecker <brobecker@adacore.com>
8869 * NEWS: Create a new section for the next release branch.
8870 Rename the section of the current branch, now that it has
8873 2019-02-27 Joel Brobecker <brobecker@adacore.com>
8875 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
8876 * version.in: Bump version to 8.3.50.DATE-git.
8878 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
8880 * aix-thread.c (ptid_cmp): Remove unused variable.
8881 (get_signaled_thread): Likewise.
8882 (store_regs_user_thread): Likewise.
8883 (store_regs_kernel_thread): Likewise.
8884 (fetch_regs_kernel_thread): Remove shadowed variable.
8886 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
8888 * features/riscv/32bit-cpu.xml: Add register numbers.
8889 * features/riscv/32bit-fpu.c: Regenerate.
8890 * features/riscv/32bit-fpu.xml: Add register numbers.
8891 * features/riscv/64bit-cpu.xml: Add register numbers.
8892 * features/riscv/64bit-fpu.c: Regenerate.
8893 * features/riscv/64bit-fpu.xml: Add register numbers.
8895 2019-02-26 Kevin Buettner <kevinb@redhat.com>
8897 * NEWS: Mention two argument form of gdb.Value constructor.
8898 * python/py-value.c (convert_buffer_and_type_to_value): New
8900 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
8901 Add support for handling an optional second argument. Call
8902 convert_buffer_and_type_to_value as appropriate.
8903 * python/python-internal.h (Py_buffer_deleter): New struct.
8904 (Py_buffer_up): New typedef.
8906 2019-02-25 John Baldwin <jhb@FreeBSD.org>
8908 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
8909 instead of releasing ownership.
8911 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
8913 * dwarf2read.c (open_and_init_dwp_file): Call
8914 elf_numsections instead of bfd_count_sections to initialize
8915 dwp_file->num_sections.
8917 2019-02-25 Tom Tromey <tromey@adacore.com>
8919 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
8921 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
8923 * gcore.in: Add '--readnever' option when invoking GDB.
8925 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
8927 * MAINTAINERS: Update my email address.
8929 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
8931 * build-id.c (build_id_to_debug_bfd_1): New function.
8932 (build_id_to_debug_bfd): Look for separate debug file in
8935 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
8937 * gdbarch.sh: Update the copyright year range that is placed into
8940 2019-02-22 Keith Seitz <keiths@redhat.com>
8943 * linespec.c (create_sals_line_offset): Search for the default
8944 symtab's filename instead of its fullname.
8946 2019-02-21 Alan Hayward <alan.hayward@arm.com>
8948 * NEWS: Update style defaults.
8950 2019-02-21 Alan Hayward <alan.hayward@arm.com>
8952 * main.c (captured_main_1): Disable styling in batch mode.
8954 2019-02-20 Tom Tromey <tom@tromey.com>
8956 * symtab.c (symtab_symbol_info): Fix typos.
8958 2019-02-20 Tom Tromey <tromey@adacore.com>
8960 * findcmd.c (_initialize_mem_search): Use upper case for
8961 metasyntactic variables.
8963 2019-02-20 Alan Hayward <alan.hayward@arm.com>
8965 * aarch64-tdep.c (aarch64_add_reggroups): New function.
8966 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
8968 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
8970 * top.h (source_file_name): Change to std::string.
8971 * top.c (source_file_name): Likewise.
8972 (command_line_input): Adjust.
8973 * cli/cli-script.c (script_from_file): Adjust.
8975 2019-02-19 Tom Tromey <tromey@adacore.com>
8977 * ravenscar-thread.c
8978 (ravenscar_thread_target::update_thread_list): Don't call
8979 ada_build_task_list.
8980 * ada-lang.h (ada_build_task_list): Don't declare.
8981 * ada-tasks.c (struct ada_tasks_inferior_data)
8982 <task_list_valid_p>: Now bool.
8983 (read_known_tasks, ada_task_list_changed)
8984 (ada_tasks_invalidate_inferior_data): Update.
8985 (read_known_tasks_array): Return bool.
8986 (read_known_tasks_list): Likewise.
8987 (read_known_tasks): Return void.
8988 (ada_build_task_list): Now static.
8990 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
8992 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
8993 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
8995 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8997 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
8998 variant for ada_tasks_pspace_data_handle and
8999 ada_tasks_inferior_data_handle.
9000 (ada_tasks_pspace_data_cleanup): New function.
9001 (ada_tasks_inferior_data_cleanup): New function.
9003 2019-02-17 Tom Tromey <tom@tromey.com>
9005 * macrotab.h (macro_source_fullname): Return a std::string.
9006 * macrotab.c (macro_include, check_for_redefinition)
9007 (macro_undef, macro_lookup_definition, foreach_macro)
9008 (foreach_macro_in_scope): Update.
9009 (macro_source_fullname): Return a std::string.
9010 * macrocmd.c (show_pp_source_pos): Update.
9012 2019-02-17 Tom Tromey <tom@tromey.com>
9014 * macrocmd.c (show_pp_source_pos): Style the file names.
9016 2019-02-17 Tom Tromey <tom@tromey.com>
9019 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
9021 2019-02-17 Tom Tromey <tom@tromey.com>
9023 * ada-lang.c (user_select_syms): Use filtered printing.
9024 * utils.c (wrap_style): New global.
9025 (desired_style): Remove.
9026 (emit_style_escape): Add stream parameter.
9027 (set_output_style, reset_terminal_style, prompt_for_continue):
9029 (flush_wrap_buffer): Only flush gdb_stdout.
9030 (wrap_here): Set wrap_style.
9031 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
9032 treat escape sequences as a character. Change when wrap buffer is
9034 (fputs_styled): Do not set the output style when the default is
9036 * ui-style.h (struct ui_file_style) <is_default>: New method.
9037 * source.c (print_source_lines_base): Emit escape sequences in one
9040 2019-02-17 Joel Brobecker <brobecker@adacore.com>
9042 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
9043 integers and enumeration types.
9045 2019-02-17 Joel Brobecker <brobecker@adacore.com>
9047 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
9048 instead of lookup_symbol_in_language
9049 (do_exact_match): New function.
9050 (ada_get_symbol_name_matcher): Return do_exact_match when
9051 doing a verbatim match.
9053 2019-02-15 Tom Tromey <tromey@adacore.com>
9055 * ravenscar-thread.c (ravenscar_thread_target::resume)
9056 (ravenscar_thread_target::wait): Special case wildcard requests.
9058 2019-02-15 Tom Tromey <tromey@adacore.com>
9060 * ravenscar-thread.c (base_ptid): Remove.
9061 (struct ravenscar_thread_target) <close>: New method.
9062 <m_base_ptid>: New member.
9063 <update_inferior_ptid, active_task, task_is_currently_active,
9064 runtime_initialized>: Declare methods.
9065 <ravenscar_thread_target>: Add constructor.
9066 (ravenscar_thread_target::task_is_currently_active)
9067 (ravenscar_thread_target::update_inferior_ptid)
9068 (ravenscar_runtime_initialized): Rename. Now methods.
9069 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
9070 (ravenscar_thread_target::update_thread_list): Update.
9071 (ravenscar_thread_target::active_task): Now method.
9072 (ravenscar_thread_target::store_registers)
9073 (ravenscar_thread_target::prepare_to_store)
9074 (ravenscar_thread_target::prepare_to_store)
9075 (ravenscar_thread_target::mourn_inferior): Update.
9076 (ravenscar_inferior_created): Use "new" to create target.
9077 (ravenscar_thread_target::get_ada_task_ptid): Update.
9078 (_initialize_ravenscar): Don't initialize base_ptid.
9079 (ravenscar_ops): Remove global.
9081 2019-02-15 Tom Tromey <tromey@adacore.com>
9083 * target.h (push_target): Declare new overload.
9084 * target.c (push_target): New overload, taking an rvalue reference.
9085 * remote.c (remote_target::open_1): Use push_target overload.
9086 * corelow.c (core_target_open): Use push_target overload.
9088 2019-02-15 Tom Tromey <tromey@adacore.com>
9090 * ravenscar-thread.c (is_ravenscar_task)
9091 (ravenscar_task_is_currently_active): Return bool.
9092 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
9093 (_initialize_ravenscar): Remove "(void)".
9094 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
9097 2019-02-15 Tom Tromey <tromey@adacore.com>
9099 * ravenscar-thread.c (ravenscar_runtime_initializer)
9100 (has_ravenscar_runtime, get_running_thread_id)
9101 (ravenscar_thread_target::resume): Fix indentation.
9103 2019-02-15 Tom Tromey <tromey@adacore.com>
9105 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
9106 from ravenscar_arch_ops.
9107 (sparc_ravenscar_ops::fetch_registers)
9108 (sparc_ravenscar_ops::store_registers): Now methods.
9109 (sparc_ravenscar_prepare_to_store): Remove.
9110 (sparc_ravenscar_ops): Redefine.
9111 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
9112 methods and destructor. Remove members.
9113 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
9114 (ravenscar_thread_target::store_registers)
9115 (ravenscar_thread_target::prepare_to_store): Update.
9116 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
9118 (struct ppc_ravenscar_powerpc_ops): Derive from
9120 (ppc_ravenscar_powerpc_ops::fetch_registers)
9121 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
9122 (ppc_ravenscar_powerpc_ops): Redefine.
9123 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
9124 (ppc_ravenscar_e500_ops::fetch_registers)
9125 (ppc_ravenscar_e500_ops::store_registers): Now methods.
9126 (ppc_ravenscar_e500_ops): Redefine.
9127 * aarch64-ravenscar-thread.c
9128 (aarch64_ravenscar_generic_prepare_to_store): Remove.
9129 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
9130 (aarch64_ravenscar_fetch_registers)
9131 (aarch64_ravenscar_store_registers): Now methods.
9132 (aarch64_ravenscar_ops): Redefine.
9134 2019-02-15 Tom Tromey <tromey@adacore.com>
9136 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
9137 (ravenscar_thread_target::stopped_by_hw_breakpoint)
9138 (ravenscar_thread_target::stopped_by_watchpoint)
9139 (ravenscar_thread_target::stopped_data_address)
9140 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
9142 2019-02-15 Tom Tromey <tromey@adacore.com>
9144 * ravenscar-thread.c: Fix some typos.
9146 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9147 Tom Tromey <tromey@adacore.com>
9149 * ada-lang.c (ada_exception_sal): Change addr_string to a
9151 (create_ada_exception_catchpoint): Update.
9153 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9154 Tom Tromey <tromey@adacore.com>
9156 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
9157 (bp_location_ops): Remove.
9158 (base_breakpoint_allocate_location): Update.
9159 (free_bp_location): Update.
9160 * ada-lang.c (class ada_catchpoint_location)
9161 <ada_catchpoint_location>: Remove ops parameter.
9162 (ada_catchpoint_location_dtor): Remove.
9163 (ada_catchpoint_location_ops): Remove.
9164 (allocate_location_exception): Update.
9165 * breakpoint.h (struct bp_location_ops): Remove.
9166 (class bp_location) <bp_location>: Remove bp_location_ops
9168 <~bp_location>: Add destructor.
9171 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
9172 Pedro Alves <palves@redhat.com>
9174 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
9177 2019-02-14 David Michael <fedora.dm0@gmail.com>
9178 Samuel Thibault <samuel.thibault@gnu.org>
9179 Thomas Schwinge <thomas@codesourcery.com>
9181 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
9182 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
9184 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
9186 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
9187 (check_empty): Use "const char *".
9189 * gnu-nat.c (gnu_nat_target::detach): Instead of
9190 'detach_inferior (pid)' call
9191 'detach_inferior (find_inferior_pid (pid))'.
9193 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
9194 'nat/fork-inferior.o'.
9195 * gnu-nat.c: #include "nat/fork-inferior.h".
9197 * gnu-nat.c (gnu_nat_target::detach): Instead of
9198 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
9199 * gnu-nat.h: #include "inf-child.h".
9200 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
9201 'i386_gnu_nat_target::fetch_registers'.
9202 (gnu_store_registers): Rename/move to
9203 'i386_gnu_nat_target::store_registers'.
9205 * config/i386/nm-i386gnu.h: Don't "#include" any files.
9206 * gnu-nat.h (mach_thread_info): New function.
9207 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
9209 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
9211 2019-02-14 Frederic Konrad <konrad@adacore.com>
9213 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
9215 2019-02-14 Joel Brobecker <brobecker@adacore.com>
9217 * windows-nat.c (windows_add_thread): Add new parameter
9218 "main_thread_p" with default value set to false. Update
9219 function documentation as well as all callers.
9220 (windows_delete_thread): Likewise.
9221 (fake_create_process): Update call to windows_add_thread.
9222 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
9223 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
9224 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
9225 call to windows_delete_thread.
9227 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
9229 * MAINTAINERS: Add Andrew Burgess as global maintainer.
9231 2019-02-12 John Baldwin <jhb@FreeBSD.org>
9233 * symfile.c (find_separate_debug_file): Use canonical path of
9234 sysroot with child_path instead of gdb_sysroot if it is valid.
9236 2019-02-12 John Baldwin <jhb@FreeBSD.org>
9238 * symfile.c (find_separate_debug_file): Use child_path to
9239 determine if an object file is under a sysroot.
9241 2019-02-12 John Baldwin <jhb@FreeBSD.org>
9243 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9244 unittests/child-path-selftests.c.
9245 * common/pathstuff.c (child_path): New function.
9246 * common/pathstuff.h (child_path): New prototype.
9247 * unittests/child-path-selftests.c: New file.
9249 2019-02-12 John Baldwin <jhb@FreeBSD.org>
9251 * symfile.c (find_separate_debug_file): Look for separate debug
9252 files in debug directories under the sysroot.
9254 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9256 * symtab.h (struct minimal_symbol data_p): New const method.
9257 (struct minimal_symbol text_p): Likewise.
9258 * symtab.c (output_source_filename): Use file name style
9260 (print_symbol_info): Likewise.
9261 (print_msymbol_info): Use address style to print addresses.
9262 Use function name style to print executable text symbols.
9263 (expand_symtab_containing_pc): Use data_p.
9264 (find_pc_sect_compunit_symtab): Likewise.
9266 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9268 * breakpoint.c (describe_other_breakpoints): Use address style
9270 (say_where): Likewise.
9272 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9274 * ada-typeprint.c (print_func_type): Print function name
9275 style to print function name.
9276 * c-typeprint.c (c_print_type_1): Likewise.
9278 2019-02-11 Alan Hayward <alan.hayward@arm.com>
9280 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
9283 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9285 * c-exp.y (direct_abs_decl): Use emplace_back to record the
9288 2019-02-10 Joel Brobecker <brobecker@adacore.com>
9290 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
9291 TYPE_CODE_REF types.
9293 2019-02-08 Jim Wilson <jimw@sifive.com>
9295 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
9296 (riscv_linux_fregset): New.
9297 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
9299 2019-02-07 Tom Tromey <tom@tromey.com>
9301 * thread.c (thread_cancel_execution_command): Update.
9302 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
9304 (struct thread_fsm_ops): Remove.
9305 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
9306 (thread_fsm_should_stop, thread_fsm_return_value)
9307 (thread_fsm_set_finished, thread_fsm_finished_p)
9308 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
9310 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
9311 * infrun.c (clear_proceed_status_thread)
9312 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
9313 (print_stop_event): Update.
9314 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
9316 (step_command_fsm_ops): Remove.
9317 (new_step_command_fsm): Remove.
9319 (step_command_fsm::should_stop): Rename from
9320 step_command_fsm_should_stop.
9321 (step_command_fsm::clean_up): Rename from
9322 step_command_fsm_clean_up.
9323 (step_command_fsm::do_async_reply_reason): Rename from
9324 step_command_fsm_async_reply_reason.
9325 (struct until_next_fsm): Inherit from thread_fsm. Add
9327 (until_next_fsm_ops): Remove.
9328 (new_until_next_fsm): Remove.
9329 (until_next_fsm::should_stop): Rename from
9330 until_next_fsm_should_stop.
9331 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
9332 (until_next_fsm::do_async_reply_reason): Rename from
9333 until_next_fsm_async_reply_reason.
9334 (struct finish_command_fsm): Inherit from thread_fsm. Add
9335 constructor. Change type of breakpoint.
9336 (finish_command_fsm_ops): Remove.
9337 (new_finish_command_fsm): Remove.
9338 (finish_command_fsm::should_stop): Rename from
9339 finish_command_fsm_should_stop.
9340 (finish_command_fsm::clean_up): Rename from
9341 finish_command_fsm_clean_up.
9342 (finish_command_fsm::return_value): Rename from
9343 finish_command_fsm_return_value.
9344 (finish_command_fsm::do_async_reply_reason): Rename from
9345 finish_command_fsm_async_reply_reason.
9346 (finish_command): Update.
9347 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
9349 (call_thread_fsm_ops): Remove.
9350 (call_thread_fsm::call_thread_fsm): Rename from
9351 new_call_thread_fsm.
9352 (call_thread_fsm::should_stop): Rename from
9353 call_thread_fsm_should_stop.
9354 (call_thread_fsm::should_notify_stop): Rename from
9355 call_thread_fsm_should_notify_stop.
9356 (run_inferior_call, call_function_by_hand_dummy): Update.
9357 * cli/cli-interp.c (should_print_stop_to_console): Update.
9358 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
9359 Add constructor. Change type of location_breakpoint,
9361 (until_break_fsm_ops): Remove.
9362 (new_until_break_fsm): Remove.
9363 (until_break_fsm::should_stop): Rename from
9364 until_break_fsm_should_stop.
9365 (until_break_fsm::clean_up): Rename from
9366 until_break_fsm_clean_up.
9367 (until_break_fsm::do_async_reply_reason): Rename from
9368 until_break_fsm_async_reply_reason.
9369 (until_break_command): Update.
9370 * thread-fsm.c: Remove.
9371 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
9373 2019-02-07 Tom Tromey <tom@tromey.com>
9375 * yy-remap.h: Add include guard.
9376 * xtensa-tdep.h: Add include guard.
9377 * xcoffread.h: Rename include guard.
9378 * varobj-iter.h: Add include guard.
9379 * tui/tui.h: Rename include guard.
9380 * tui/tui-winsource.h: Rename include guard.
9381 * tui/tui-wingeneral.h: Rename include guard.
9382 * tui/tui-windata.h: Rename include guard.
9383 * tui/tui-win.h: Rename include guard.
9384 * tui/tui-stack.h: Rename include guard.
9385 * tui/tui-source.h: Rename include guard.
9386 * tui/tui-regs.h: Rename include guard.
9387 * tui/tui-out.h: Rename include guard.
9388 * tui/tui-layout.h: Rename include guard.
9389 * tui/tui-io.h: Rename include guard.
9390 * tui/tui-hooks.h: Rename include guard.
9391 * tui/tui-file.h: Rename include guard.
9392 * tui/tui-disasm.h: Rename include guard.
9393 * tui/tui-data.h: Rename include guard.
9394 * tui/tui-command.h: Rename include guard.
9395 * tic6x-tdep.h: Add include guard.
9396 * target/waitstatus.h: Rename include guard.
9397 * target/wait.h: Rename include guard.
9398 * target/target.h: Rename include guard.
9399 * target/resume.h: Rename include guard.
9400 * target-float.h: Rename include guard.
9401 * stabsread.h: Add include guard.
9402 * rs6000-tdep.h: Add include guard.
9403 * riscv-fbsd-tdep.h: Add include guard.
9404 * regformats/regdef.h: Rename include guard.
9405 * record.h: Rename include guard.
9406 * python/python.h: Rename include guard.
9407 * python/python-internal.h: Rename include guard.
9408 * python/py-stopevent.h: Rename include guard.
9409 * python/py-ref.h: Rename include guard.
9410 * python/py-record.h: Rename include guard.
9411 * python/py-record-full.h: Rename include guard.
9412 * python/py-record-btrace.h: Rename include guard.
9413 * python/py-instruction.h: Rename include guard.
9414 * python/py-events.h: Rename include guard.
9415 * python/py-event.h: Rename include guard.
9416 * procfs.h: Add include guard.
9417 * proc-utils.h: Add include guard.
9418 * p-lang.h: Add include guard.
9419 * or1k-tdep.h: Rename include guard.
9420 * observable.h: Rename include guard.
9421 * nto-tdep.h: Rename include guard.
9422 * nat/x86-linux.h: Rename include guard.
9423 * nat/x86-linux-dregs.h: Rename include guard.
9424 * nat/x86-gcc-cpuid.h: Add include guard.
9425 * nat/x86-dregs.h: Rename include guard.
9426 * nat/x86-cpuid.h: Rename include guard.
9427 * nat/ppc-linux.h: Rename include guard.
9428 * nat/mips-linux-watch.h: Rename include guard.
9429 * nat/linux-waitpid.h: Rename include guard.
9430 * nat/linux-ptrace.h: Rename include guard.
9431 * nat/linux-procfs.h: Rename include guard.
9432 * nat/linux-osdata.h: Rename include guard.
9433 * nat/linux-nat.h: Rename include guard.
9434 * nat/linux-namespaces.h: Rename include guard.
9435 * nat/linux-btrace.h: Rename include guard.
9436 * nat/glibc_thread_db.h: Rename include guard.
9437 * nat/gdb_thread_db.h: Rename include guard.
9438 * nat/gdb_ptrace.h: Rename include guard.
9439 * nat/fork-inferior.h: Rename include guard.
9440 * nat/amd64-linux-siginfo.h: Rename include guard.
9441 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
9442 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
9443 * nat/aarch64-linux.h: Rename include guard.
9444 * nat/aarch64-linux-hw-point.h: Rename include guard.
9445 * mn10300-tdep.h: Add include guard.
9446 * mips-linux-tdep.h: Add include guard.
9447 * mi/mi-parse.h: Rename include guard.
9448 * mi/mi-out.h: Rename include guard.
9449 * mi/mi-main.h: Rename include guard.
9450 * mi/mi-interp.h: Rename include guard.
9451 * mi/mi-getopt.h: Rename include guard.
9452 * mi/mi-console.h: Rename include guard.
9453 * mi/mi-common.h: Rename include guard.
9454 * mi/mi-cmds.h: Rename include guard.
9455 * mi/mi-cmd-break.h: Rename include guard.
9456 * m2-lang.h: Add include guard.
9457 * location.h: Rename include guard.
9458 * linux-record.h: Rename include guard.
9459 * linux-nat.h: Add include guard.
9460 * linux-fork.h: Add include guard.
9461 * i386-darwin-tdep.h: Rename include guard.
9462 * hppa-linux-offsets.h: Add include guard.
9463 * guile/guile.h: Rename include guard.
9464 * guile/guile-internal.h: Rename include guard.
9465 * gnu-nat.h: Rename include guard.
9466 * gdb-stabs.h: Rename include guard.
9467 * frv-tdep.h: Add include guard.
9468 * f-lang.h: Add include guard.
9469 * event-loop.h: Add include guard.
9470 * darwin-nat.h: Rename include guard.
9471 * cp-abi.h: Rename include guard.
9472 * config/sparc/nm-sol2.h: Rename include guard.
9473 * config/nm-nto.h: Rename include guard.
9474 * config/nm-linux.h: Add include guard.
9475 * config/i386/nm-i386gnu.h: Rename include guard.
9476 * config/djgpp/nl_types.h: Rename include guard.
9477 * config/djgpp/langinfo.h: Rename include guard.
9478 * compile/gcc-cp-plugin.h: Add include guard.
9479 * compile/gcc-c-plugin.h: Add include guard.
9480 * compile/compile.h: Rename include guard.
9481 * compile/compile-object-run.h: Rename include guard.
9482 * compile/compile-object-load.h: Rename include guard.
9483 * compile/compile-internal.h: Rename include guard.
9484 * compile/compile-cplus.h: Rename include guard.
9485 * compile/compile-c.h: Rename include guard.
9486 * common/xml-utils.h: Rename include guard.
9487 * common/x86-xstate.h: Rename include guard.
9488 * common/version.h: Rename include guard.
9489 * common/vec.h: Rename include guard.
9490 * common/tdesc.h: Rename include guard.
9491 * common/selftest.h: Rename include guard.
9492 * common/scoped_restore.h: Rename include guard.
9493 * common/scoped_mmap.h: Rename include guard.
9494 * common/scoped_fd.h: Rename include guard.
9495 * common/safe-iterator.h: Rename include guard.
9496 * common/run-time-clock.h: Rename include guard.
9497 * common/refcounted-object.h: Rename include guard.
9498 * common/queue.h: Rename include guard.
9499 * common/ptid.h: Rename include guard.
9500 * common/print-utils.h: Rename include guard.
9501 * common/preprocessor.h: Rename include guard.
9502 * common/pathstuff.h: Rename include guard.
9503 * common/observable.h: Rename include guard.
9504 * common/netstuff.h: Rename include guard.
9505 * common/job-control.h: Rename include guard.
9506 * common/host-defs.h: Rename include guard.
9507 * common/gdb_wait.h: Rename include guard.
9508 * common/gdb_vecs.h: Rename include guard.
9509 * common/gdb_unlinker.h: Rename include guard.
9510 * common/gdb_unique_ptr.h: Rename include guard.
9511 * common/gdb_tilde_expand.h: Rename include guard.
9512 * common/gdb_sys_time.h: Rename include guard.
9513 * common/gdb_string_view.h: Rename include guard.
9514 * common/gdb_splay_tree.h: Rename include guard.
9515 * common/gdb_setjmp.h: Rename include guard.
9516 * common/gdb_ref_ptr.h: Rename include guard.
9517 * common/gdb_optional.h: Rename include guard.
9518 * common/gdb_locale.h: Rename include guard.
9519 * common/gdb_assert.h: Rename include guard.
9520 * common/filtered-iterator.h: Rename include guard.
9521 * common/filestuff.h: Rename include guard.
9522 * common/fileio.h: Rename include guard.
9523 * common/environ.h: Rename include guard.
9524 * common/common-utils.h: Rename include guard.
9525 * common/common-types.h: Rename include guard.
9526 * common/common-regcache.h: Rename include guard.
9527 * common/common-inferior.h: Rename include guard.
9528 * common/common-gdbthread.h: Rename include guard.
9529 * common/common-exceptions.h: Rename include guard.
9530 * common/common-defs.h: Rename include guard.
9531 * common/common-debug.h: Rename include guard.
9532 * common/cleanups.h: Rename include guard.
9533 * common/buffer.h: Rename include guard.
9534 * common/btrace-common.h: Rename include guard.
9535 * common/break-common.h: Rename include guard.
9536 * cli/cli-utils.h: Rename include guard.
9537 * cli/cli-style.h: Rename include guard.
9538 * cli/cli-setshow.h: Rename include guard.
9539 * cli/cli-script.h: Rename include guard.
9540 * cli/cli-interp.h: Rename include guard.
9541 * cli/cli-decode.h: Rename include guard.
9542 * cli/cli-cmds.h: Rename include guard.
9543 * charset-list.h: Add include guard.
9544 * buildsym-legacy.h: Rename include guard.
9545 * bfin-tdep.h: Add include guard.
9546 * ax.h: Rename include guard.
9547 * arm-linux-tdep.h: Add include guard.
9548 * arm-fbsd-tdep.h: Add include guard.
9549 * arch/xtensa.h: Rename include guard.
9550 * arch/tic6x.h: Add include guard.
9551 * arch/i386.h: Add include guard.
9552 * arch/arm.h: Rename include guard.
9553 * arch/arm-linux.h: Rename include guard.
9554 * arch/arm-get-next-pcs.h: Rename include guard.
9555 * arch/amd64.h: Add include guard.
9556 * arch/aarch64-insn.h: Rename include guard.
9557 * arch-utils.h: Rename include guard.
9558 * annotate.h: Add include guard.
9559 * amd64-darwin-tdep.h: Rename include guard.
9560 * aarch64-linux-tdep.h: Add include guard.
9561 * aarch64-fbsd-tdep.h: Add include guard.
9562 * aarch32-linux-nat.h: Add include guard.
9564 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9566 * macrotab.c (macro_define_internal): New function that
9567 factorizes macro_define_object_internal and macro_define_function
9569 (macro_define_object_internal): Use macro_define_internal.
9570 (macro_define_function): Likewise.
9572 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9574 * macrocmd.c (extract_identifier): Return
9575 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
9578 2019-02-06 John Baldwin <jhb@FreeBSD.org>
9580 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
9582 2019-02-05 Tom Tromey <tom@tromey.com>
9584 * target.c (target_stack::unpush): Move assertion earlier.
9586 2019-01-30 Tom Tromey <tom@tromey.com>
9589 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
9590 (gdbpy_parse_and_eval): Likewise.
9591 * python/python-internal.h (gdbpy_allow_threads): New class.
9593 2019-01-28 John Baldwin <jhb@FreeBSD.org>
9595 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
9596 (aarch64_fbsd_fpregmap): Move earlier.
9597 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
9598 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
9599 instead of individual calls to trad_frame_set_reg_addr.
9600 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
9602 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
9603 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
9604 instead of individual calls to trad_frame_set_reg_addr.
9606 2019-01-28 Alan Hayward <alan.hayward@arm.com>
9608 * CONTRIBUTE: Replace contribution list with wiki link.
9610 2019-01-25 Tom Tromey <tom@tromey.com>
9612 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
9614 2019-01-25 Tom Tromey <tom@tromey.com>
9616 * xtensa-linux-nat.c: Fix common/ includes.
9617 * xml-support.h: Fix common/ includes.
9618 * xml-support.c: Fix common/ includes.
9619 * x86-linux-nat.c: Fix common/ includes.
9620 * windows-nat.c: Fix common/ includes.
9621 * varobj.h: Fix common/ includes.
9622 * varobj.c: Fix common/ includes.
9623 * value.c: Fix common/ includes.
9624 * valops.c: Fix common/ includes.
9625 * utils.c: Fix common/ includes.
9626 * unittests/xml-utils-selftests.c: Fix common/ includes.
9627 * unittests/utils-selftests.c: Fix common/ includes.
9628 * unittests/unpack-selftests.c: Fix common/ includes.
9629 * unittests/tracepoint-selftests.c: Fix common/ includes.
9630 * unittests/style-selftests.c: Fix common/ includes.
9631 * unittests/string_view-selftests.c: Fix common/ includes.
9632 * unittests/scoped_restore-selftests.c: Fix common/ includes.
9633 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
9634 * unittests/scoped_fd-selftests.c: Fix common/ includes.
9635 * unittests/rsp-low-selftests.c: Fix common/ includes.
9636 * unittests/parse-connection-spec-selftests.c: Fix common/
9638 * unittests/optional-selftests.c: Fix common/ includes.
9639 * unittests/offset-type-selftests.c: Fix common/ includes.
9640 * unittests/observable-selftests.c: Fix common/ includes.
9641 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
9642 * unittests/memrange-selftests.c: Fix common/ includes.
9643 * unittests/memory-map-selftests.c: Fix common/ includes.
9644 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
9645 * unittests/function-view-selftests.c: Fix common/ includes.
9646 * unittests/environ-selftests.c: Fix common/ includes.
9647 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
9648 * unittests/common-utils-selftests.c: Fix common/ includes.
9649 * unittests/cli-utils-selftests.c: Fix common/ includes.
9650 * unittests/array-view-selftests.c: Fix common/ includes.
9651 * ui-file.c: Fix common/ includes.
9652 * tui/tui-io.c: Fix common/ includes.
9653 * tracepoint.h: Fix common/ includes.
9654 * tracepoint.c: Fix common/ includes.
9655 * tracefile-tfile.c: Fix common/ includes.
9656 * top.h: Fix common/ includes.
9657 * top.c: Fix common/ includes.
9658 * thread.c: Fix common/ includes.
9659 * target/waitstatus.h: Fix common/ includes.
9660 * target/waitstatus.c: Fix common/ includes.
9661 * target.h: Fix common/ includes.
9662 * target.c: Fix common/ includes.
9663 * target-memory.c: Fix common/ includes.
9664 * target-descriptions.c: Fix common/ includes.
9665 * symtab.h: Fix common/ includes.
9666 * symfile.c: Fix common/ includes.
9667 * stap-probe.c: Fix common/ includes.
9668 * spu-linux-nat.c: Fix common/ includes.
9669 * sparc-nat.c: Fix common/ includes.
9670 * source.c: Fix common/ includes.
9671 * solib.c: Fix common/ includes.
9672 * solib-target.c: Fix common/ includes.
9673 * ser-unix.c: Fix common/ includes.
9674 * ser-tcp.c: Fix common/ includes.
9675 * ser-pipe.c: Fix common/ includes.
9676 * ser-base.c: Fix common/ includes.
9677 * selftest-arch.c: Fix common/ includes.
9678 * s12z-tdep.c: Fix common/ includes.
9679 * rust-exp.y: Fix common/ includes.
9680 * rs6000-aix-tdep.c: Fix common/ includes.
9681 * riscv-tdep.c: Fix common/ includes.
9682 * remote.c: Fix common/ includes.
9683 * remote-notif.h: Fix common/ includes.
9684 * remote-fileio.h: Fix common/ includes.
9685 * remote-fileio.c: Fix common/ includes.
9686 * regcache.h: Fix common/ includes.
9687 * regcache.c: Fix common/ includes.
9688 * record-btrace.c: Fix common/ includes.
9689 * python/python.c: Fix common/ includes.
9690 * python/py-type.c: Fix common/ includes.
9691 * python/py-inferior.c: Fix common/ includes.
9692 * progspace.h: Fix common/ includes.
9693 * producer.c: Fix common/ includes.
9694 * procfs.c: Fix common/ includes.
9695 * proc-api.c: Fix common/ includes.
9696 * printcmd.c: Fix common/ includes.
9697 * ppc-linux-nat.c: Fix common/ includes.
9698 * parser-defs.h: Fix common/ includes.
9699 * osdata.c: Fix common/ includes.
9700 * obsd-nat.c: Fix common/ includes.
9701 * nat/x86-linux.c: Fix common/ includes.
9702 * nat/x86-linux-dregs.c: Fix common/ includes.
9703 * nat/x86-dregs.h: Fix common/ includes.
9704 * nat/x86-dregs.c: Fix common/ includes.
9705 * nat/ppc-linux.c: Fix common/ includes.
9706 * nat/mips-linux-watch.h: Fix common/ includes.
9707 * nat/mips-linux-watch.c: Fix common/ includes.
9708 * nat/linux-waitpid.c: Fix common/ includes.
9709 * nat/linux-ptrace.h: Fix common/ includes.
9710 * nat/linux-ptrace.c: Fix common/ includes.
9711 * nat/linux-procfs.c: Fix common/ includes.
9712 * nat/linux-personality.c: Fix common/ includes.
9713 * nat/linux-osdata.c: Fix common/ includes.
9714 * nat/linux-namespaces.c: Fix common/ includes.
9715 * nat/linux-btrace.h: Fix common/ includes.
9716 * nat/linux-btrace.c: Fix common/ includes.
9717 * nat/fork-inferior.c: Fix common/ includes.
9718 * nat/amd64-linux-siginfo.c: Fix common/ includes.
9719 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
9720 * nat/aarch64-linux.c: Fix common/ includes.
9721 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
9722 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
9723 * namespace.h: Fix common/ includes.
9724 * mips-linux-tdep.c: Fix common/ includes.
9725 * minsyms.c: Fix common/ includes.
9726 * mi/mi-parse.h: Fix common/ includes.
9727 * mi/mi-main.c: Fix common/ includes.
9728 * mi/mi-cmd-env.c: Fix common/ includes.
9729 * memrange.h: Fix common/ includes.
9730 * memattr.c: Fix common/ includes.
9731 * maint.h: Fix common/ includes.
9732 * maint.c: Fix common/ includes.
9733 * main.c: Fix common/ includes.
9734 * machoread.c: Fix common/ includes.
9735 * location.c: Fix common/ includes.
9736 * linux-thread-db.c: Fix common/ includes.
9737 * linux-nat.c: Fix common/ includes.
9738 * linux-fork.c: Fix common/ includes.
9739 * inline-frame.c: Fix common/ includes.
9740 * infrun.c: Fix common/ includes.
9741 * inflow.c: Fix common/ includes.
9742 * inferior.h: Fix common/ includes.
9743 * inferior.c: Fix common/ includes.
9744 * infcmd.c: Fix common/ includes.
9745 * inf-ptrace.c: Fix common/ includes.
9746 * inf-child.c: Fix common/ includes.
9747 * ia64-linux-nat.c: Fix common/ includes.
9748 * i387-tdep.c: Fix common/ includes.
9749 * i386-tdep.c: Fix common/ includes.
9750 * i386-linux-tdep.c: Fix common/ includes.
9751 * i386-linux-nat.c: Fix common/ includes.
9752 * i386-go32-tdep.c: Fix common/ includes.
9753 * i386-fbsd-tdep.c: Fix common/ includes.
9754 * i386-fbsd-nat.c: Fix common/ includes.
9755 * guile/scm-type.c: Fix common/ includes.
9756 * guile/guile.c: Fix common/ includes.
9757 * go32-nat.c: Fix common/ includes.
9758 * gnu-nat.c: Fix common/ includes.
9759 * gdbthread.h: Fix common/ includes.
9760 * gdbarch-selftests.c: Fix common/ includes.
9761 * gdb_usleep.c: Fix common/ includes.
9762 * gdb_select.h: Fix common/ includes.
9763 * gdb_bfd.c: Fix common/ includes.
9764 * gcore.c: Fix common/ includes.
9765 * fork-child.c: Fix common/ includes.
9766 * findvar.c: Fix common/ includes.
9767 * fbsd-nat.c: Fix common/ includes.
9768 * event-top.c: Fix common/ includes.
9769 * event-loop.c: Fix common/ includes.
9770 * dwarf2read.c: Fix common/ includes.
9771 * dwarf2loc.c: Fix common/ includes.
9772 * dwarf2-frame.c: Fix common/ includes.
9773 * dwarf-index-cache.c: Fix common/ includes.
9774 * dtrace-probe.c: Fix common/ includes.
9775 * disasm-selftests.c: Fix common/ includes.
9776 * defs.h: Fix common/ includes.
9777 * csky-tdep.c: Fix common/ includes.
9778 * cp-valprint.c: Fix common/ includes.
9779 * cp-support.h: Fix common/ includes.
9780 * cp-support.c: Fix common/ includes.
9781 * corelow.c: Fix common/ includes.
9782 * completer.h: Fix common/ includes.
9783 * completer.c: Fix common/ includes.
9784 * compile/compile.c: Fix common/ includes.
9785 * compile/compile-loc2c.c: Fix common/ includes.
9786 * compile/compile-cplus-types.c: Fix common/ includes.
9787 * compile/compile-cplus-symbols.c: Fix common/ includes.
9788 * command.h: Fix common/ includes.
9789 * cli/cli-dump.c: Fix common/ includes.
9790 * cli/cli-cmds.c: Fix common/ includes.
9791 * charset.c: Fix common/ includes.
9792 * build-id.c: Fix common/ includes.
9793 * btrace.h: Fix common/ includes.
9794 * btrace.c: Fix common/ includes.
9795 * breakpoint.h: Fix common/ includes.
9796 * breakpoint.c: Fix common/ includes.
9798 (enum agent_op): Fix common/ includes.
9799 * ax-general.c (struct aop_map): Fix common/ includes.
9800 * ax-gdb.c: Fix common/ includes.
9801 * auxv.c: Fix common/ includes.
9802 * auto-load.c: Fix common/ includes.
9803 * arm-tdep.c: Fix common/ includes.
9804 * arch/riscv.c: Fix common/ includes.
9805 * arch/ppc-linux-common.c: Fix common/ includes.
9806 * arch/i386.c: Fix common/ includes.
9807 * arch/arm.c: Fix common/ includes.
9808 * arch/arm-linux.c: Fix common/ includes.
9809 * arch/arm-get-next-pcs.c: Fix common/ includes.
9810 * arch/amd64.c: Fix common/ includes.
9811 * arch/aarch64.c: Fix common/ includes.
9812 * arch/aarch64-insn.c: Fix common/ includes.
9813 * arch-utils.c: Fix common/ includes.
9814 * amd64-windows-tdep.c: Fix common/ includes.
9815 * amd64-tdep.c: Fix common/ includes.
9816 * amd64-sol2-tdep.c: Fix common/ includes.
9817 * amd64-obsd-tdep.c: Fix common/ includes.
9818 * amd64-nbsd-tdep.c: Fix common/ includes.
9819 * amd64-linux-tdep.c: Fix common/ includes.
9820 * amd64-linux-nat.c: Fix common/ includes.
9821 * amd64-fbsd-tdep.c: Fix common/ includes.
9822 * amd64-fbsd-nat.c: Fix common/ includes.
9823 * amd64-dicos-tdep.c: Fix common/ includes.
9824 * amd64-darwin-tdep.c: Fix common/ includes.
9825 * agent.c: Fix common/ includes.
9826 * ada-lang.h: Fix common/ includes.
9827 * ada-lang.c: Fix common/ includes.
9828 * aarch64-tdep.c: Fix common/ includes.
9830 2019-01-25 Tom Tromey <tom@tromey.com>
9832 * common/create-version.sh: Use common/version.h.
9834 2019-01-24 Pedro Alves <palves@redhat.com>
9836 * infrun.c (signal_stop, signal_print, signal_program)
9837 (signal_catch, signal_pass): Now arrays instead of pointers.
9838 (update_signals_program_target, do_target_resume)
9839 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
9840 * linux-nat.c (linux_nat_target::pass_signals)
9841 (linux_nat_target::create_inferior, linux_nat_target::attach):
9843 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
9844 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
9845 * procfs.c (procfs_target::pass_signals): Adjust.
9846 * record-full.c (record_full_target::resume): Adjust.
9847 * remote.c (remote_target::pass_signals)
9848 (remote_target::program_signals): Adjust.
9849 * target-debug.h (target_debug_print_signals): Now takes a
9850 gdb::array_view as parameter. Adjust.
9851 * target.h (target_ops) <pass_signals, program_signals>: Replace
9852 pointer and length parameters with gdb::array_view.
9853 (target_pass_signals, target_program_signals): Likewise.
9854 * target-delegates.c: Regenerate.
9856 2019-01-24 Pedro Alves <palves@redhat.com>
9858 * common/forward-scope-exit.h
9859 (forward_scope_exit::forward_scope_exit): Pass arguments to
9860 m_bind_function directly, instead of creating a std::bind and
9863 2019-01-24 Alan Hayward <alan.hayward@arm.com>
9865 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
9867 (pass_in_v_vfp_candidate): Likewise.
9869 2019-01-23 Tom Tromey <tom@tromey.com>
9870 Pedro Alves <palves@redhat.com>
9872 * regcache.c (class regcache_invalidator): Remove.
9873 (regcache::raw_write): Use make_scope_exit.
9875 2019-01-23 Tom Tromey <tom@tromey.com>
9877 * ui-out.h (class ui_out_emit_type): Update comment.
9879 2019-01-23 Tom Tromey <tom@tromey.com>
9881 * infrun.c (fetch_inferior_event): Update comment.
9883 2019-01-23 Tom Tromey <tom@tromey.com>
9884 Pedro Alves <palves@redhat.com>
9886 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
9888 (fetch_inferior_event): Use SCOPE_EXIT.
9891 2019-01-23 Tom Tromey <tom@tromey.com>
9892 Pedro Alves <palves@redhat.com>
9894 * infrun.c (disable_thread_events): Delete.
9895 (stop_all_threads): Use SCOPE_EXIT.
9897 2019-01-23 Tom Tromey <tom@tromey.com>
9898 Pedro Alves <palves@redhat.com>
9900 * symfile.c: Include forward-scope-exit.h.
9901 (clear_symtab_users_cleanup): Replace forward declaration with
9902 a FORWARD_SCOPE_EXIT.
9903 (syms_from_objfile_1): Use the forward_scope_exit and
9904 gdb::optional instead of cleanup_function.
9905 (reread_symbols): Use the forward_scope_exit instead of
9907 (clear_symtab_users_cleanup): Remove function.
9909 2019-01-23 Tom Tromey <tom@tromey.com>
9910 Pedro Alves <palves@redhat.com>
9912 * linux-nat.c: Include scope-exit.h.
9913 (cleanup_target_stop): Remove.
9914 (linux_nat_target::static_tracepoint_markers_by_strid): Use
9917 2019-01-23 Tom Tromey <tom@tromey.com>
9918 Pedro Alves <palves@redhat.com>
9920 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
9921 (call_function_by_hand_dummy): Use SCOPE_EXIT.
9923 2019-01-23 Tom Tromey <tom@tromey.com>
9924 Andrew Burgess <andrew.burgess@embecosm.com>
9925 Pedro Alves <palves@redhat.com>
9927 * infrun.c (fetch_inferior_event): Use scope_exit.
9928 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
9929 * top.c (execute_command): Use scope_exit.
9930 * breakpoint.c (bpstat_do_actions): Use scope_exit.
9931 * utils.c (do_bpstat_clear_actions_cleanup)
9932 (make_bpstat_clear_actions_cleanup): Remove.
9934 2019-01-23 Tom Tromey <tom@tromey.com>
9935 Pedro Alves <palves@redhat.com>
9937 * infrun.c: Include "common/scope-exit.h"
9938 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
9939 (wait_for_inferior): Use SCOPE_EXIT.
9940 (fetch_inferior_event): Use scope_exit.
9942 2019-01-23 Tom Tromey <tom@tromey.com>
9943 Pedro Alves <palves@redhat.com>
9945 * breakpoint.c (create_breakpoint): Remove cleanup.
9947 2019-01-23 Tom Tromey <tom@tromey.com>
9948 Andrew Burgess <andrew.burgess@embecosm.com>
9949 Pedro Alves <palves@redhat.com>
9951 2019-01-23 Pedro Alves <palves@redhat.com>
9953 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
9955 2019-01-23 Pedro Alves <palves@redhat.com>
9956 Andrew Burgess <andrew.burgess@embecosm.com>
9958 * gdbthread.h: Include "common/forward-scope-exit.h".
9959 (scoped_finish_thread_state): Redefine custom class in terms of
9962 2019-01-23 Pedro Alves <palves@redhat.com>
9963 Andrew Burgess <andrew.burgess@embecosm.com>
9965 * common/forward-scope-exit.h: New file.
9967 2019-01-23 Pedro Alves <palves@redhat.com>
9968 Andrew Burgess <andrew.burgess@embecosm.com>
9969 Tom Tromey <tom@tromey.com>
9971 * common/scope-exit.h: New file.
9973 2019-01-23 Pedro Alves <palves@redhat.com>
9975 * common/preprocessor.h (ESC): Rename to ...
9976 (ESC_PARENS): ... this.
9977 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
9978 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
9980 2019-01-23 Tom Tromey <tom@tromey.com>
9982 * language.h (class scoped_switch_to_sym_language_if_auto):
9983 Initialize m_lang in both cases.
9985 2019-01-23 Alan Hayward <alan.hayward@arm.com>
9987 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
9990 2019-01-22 Tom Tromey <tom@tromey.com>
9992 * corelow.c: Do not include sys/file.h.
9994 2019-01-22 Tom Tromey <tom@tromey.com>
9996 * tui/tui-wingeneral.h: Include gdb_curses.h.
9998 2019-01-22 Tom Tromey <tom@tromey.com>
10000 * source-cache.h (class source_cache) <get_source_lines,
10001 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
10003 2019-01-22 Tom Tromey <tom@tromey.com>
10005 * remote-fileio.h (struct remote_target): Declare.
10007 2019-01-22 Tom Tromey <tom@tromey.com>
10009 * python/py-arch.c: Do not include py-ref.h.
10010 * python/py-bpevent.c: Do not include py-ref.h.
10011 * python/py-cmd.c: Do not include py-ref.h.
10012 * python/py-continueevent.c: Do not include py-ref.h.
10013 * python/py-event.h: Do not include py-ref.h.
10014 * python/py-evtregistry.c: Do not include py-ref.h.
10015 * python/py-finishbreakpoint.c: Do not include py-ref.h.
10016 * python/py-frame.c: Do not include py-ref.h.
10017 * python/py-framefilter.c: Do not include py-ref.h.
10018 * python/py-function.c: Do not include py-ref.h.
10019 * python/py-infevents.c: Do not include py-ref.h.
10020 * python/py-linetable.c: Do not include py-ref.h.
10021 * python/py-objfile.c: Do not include py-ref.h.
10022 * python/py-param.c: Do not include py-ref.h.
10023 * python/py-prettyprint.c: Do not include py-ref.h.
10024 * python/py-progspace.c: Do not include py-ref.h.
10025 * python/py-symbol.c: Do not include py-ref.h.
10026 * python/py-symtab.c: Do not include py-ref.h.
10027 * python/py-type.c: Do not include py-ref.h.
10028 * python/py-unwind.c: Do not include py-ref.h.
10029 * python/py-utils.c: Do not include py-ref.h.
10030 * python/py-value.c: Do not include py-ref.h.
10031 * python/py-varobj.c: Do not include py-ref.h.
10032 * python/py-xmethods.c: Do not include py-ref.h.
10033 * python/python.c: Do not include py-ref.h.
10034 * varobj.c: Do not include py-ref.h.
10036 2019-01-22 Tom Tromey <tom@tromey.com>
10038 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
10039 keyword for bcache.
10041 2019-01-22 Tom Tromey <tom@tromey.com>
10043 * compile/compile-cplus-types.c: Remove a comment by #include.
10045 2019-01-22 Tom Tromey <tom@tromey.com>
10047 * compile/gcc-c-plugin.h: Include compile-internal.h.
10049 2019-01-22 Tom Tromey <tom@tromey.com>
10051 * stabsread.c (EXTERN): Do not define.
10052 (symnum, next_symbol_text_func, processing_gcc_compilation)
10053 (within_function, global_sym_chain, global_stabs)
10054 (previous_stab_code, this_object_header_files)
10055 (n_this_object_header_files)
10056 (n_allocated_this_object_header_files): Define.
10057 * stabsread.h (EXTERN): Never define. Use "extern".
10059 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10061 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
10064 2019-01-21 Tom Tromey <tom@tromey.com>
10066 * ui-out.c: Fix includes.
10067 * tui/tui-source.c: Fix includes.
10068 * target.c: Fix includes.
10069 * remote.c: Fix includes.
10070 * regcache.c: Fix includes.
10071 * python/py-block.c: Fix includes.
10072 * printcmd.c: Fix includes.
10073 * or1k-tdep.c: Fix includes.
10074 * mi/mi-main.c: Fix includes.
10075 * m32r-tdep.c: Fix includes.
10076 * csky-tdep.c: Fix includes.
10077 * compile/compile-cplus-types.c: Fix includes.
10078 * cli/cli-interp.c: Fix includes.
10080 2019-01-21 Alan Hayward <alan.hayward@arm.com>
10082 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
10085 2019-01-16 Tom Tromey <tom@tromey.com>
10087 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
10089 (struct objfile) <msymbols_range>: Move from top level.
10090 <msymbols>: New method.
10091 (class objfile_msymbols): Remove.
10092 * symtab.c (default_collect_symbol_completion_matches_break_on):
10094 * symmisc.c (dump_msymbols): Update.
10095 * stabsread.c (scan_file_globals): Update.
10096 * objc-lang.c (info_selectors_command, info_classes_command)
10097 (find_methods): Update.
10098 * minsyms.c (find_solib_trampoline_target): Update.
10099 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
10100 * coffread.c (coff_symfile_read): Update.
10101 * ada-lang.c (ada_lookup_simple_minsym)
10102 (ada_collect_symbol_completion_matches): Update.
10104 2019-01-16 Tom Tromey <tom@tromey.com>
10106 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
10107 type. Remove no-argument constructor.
10108 <iterator::operator++>: Simplify.
10110 <end>: Use minimal_symbol_count.
10112 2019-01-16 Tom Tromey <tom@tromey.com>
10114 * objfiles.h (struct objfile) <psymtabs>: New method.
10115 (class objfile_psymtabs): Remove.
10116 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
10118 <range>: New method.
10119 (require_partial_symbols): Change return type.
10120 * psymtab.c (require_partial_symbols)
10121 (psym_expand_symtabs_matching): Update.
10122 * mdebugread.c (parse_partial_symbols): Update.
10123 * dbxread.c (dbx_end_psymtab): Update.
10125 2019-01-15 Tom Tromey <tom@tromey.com>
10127 * symtab.c (lookup_objfile_from_block)
10128 (lookup_symbol_in_objfile_symtabs)
10129 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
10130 (find_line_symtab, info_sources_command)
10131 (default_collect_symbol_completion_matches_break_on)
10132 (make_source_files_completion_list): Update.
10133 * symmisc.c (print_objfile_statistics, dump_objfile)
10134 (maintenance_print_symbols, maintenance_info_symtabs)
10135 (maintenance_check_symtabs, maintenance_info_line_tables):
10137 * source.c (select_source_symtab)
10138 (forget_cached_source_info_for_objfile): Update.
10139 * objfiles.h (class objfile_compunits): Remove.
10140 (struct objfile) <compunits_range>: New typedef.
10141 (compunits): New method.
10142 * objfiles.c (objfile_relocate1): Update.
10143 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
10144 * maint.c (count_symtabs_and_blocks): Update.
10145 * linespec.c (iterate_over_all_matching_symtabs): Update.
10146 * cp-support.c (add_symbol_overload_list_qualified): Update.
10147 * coffread.c (coff_symtab_read): Update.
10148 * ada-lang.c (add_nonlocal_symbols)
10149 (ada_collect_symbol_completion_matches)
10150 (ada_add_global_exceptions): Update.
10152 2019-01-15 Tom Tromey <tom@tromey.com>
10154 * progspace.h (program_space) <objfiles_safe_range>: New
10156 <objfiles_safe>: New method.
10157 * objfiles.h (class all_objfiles_safe): Remove.
10158 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
10159 * jit.c (jit_inferior_exit_hook): Update.
10161 2019-01-17 Tom Tromey <tom@tromey.com>
10163 * progspace.h (program_space) <objfiles_range>: New typedef.
10164 <objfiles>: New method.
10165 <objfiles_head>: Rename from objfiles.
10166 (object_files): Update.
10167 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
10168 * guile/scm-pretty-print.c
10169 (ppscm_find_pretty_printer_from_objfiles): Update.
10170 * guile/scm-objfile.c (gdbscm_objfiles): Update.
10171 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
10173 * python/py-progspace.c (pspy_get_objfiles): Update.
10174 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
10176 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
10177 (objfpy_lookup_objfile_by_build_id): Update.
10178 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
10179 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
10181 * symtab.c (iterate_over_symtabs, matching_obj_sections)
10182 (expand_symtab_containing_pc, lookup_objfile_from_block)
10183 (lookup_static_symbol, basic_lookup_transparent_type)
10184 (find_pc_sect_compunit_symtab, find_symbol_at_address)
10185 (find_line_symtab, info_sources_command)
10186 (default_collect_symbol_completion_matches_break_on)
10187 (make_source_files_completion_list, find_main_name): Update.
10188 * symmisc.c (print_symbol_bcache_statistics)
10189 (print_objfile_statistics, maintenance_print_symbols)
10190 (maintenance_print_msymbols, maintenance_print_objfiles)
10191 (maintenance_info_symtabs, maintenance_check_symtabs)
10192 (maintenance_expand_symtabs, maintenance_info_line_tables):
10194 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
10195 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
10196 (map_overlay_command, unmap_overlay_command)
10197 (simple_overlay_update, expand_symtabs_matching)
10198 (map_symbol_filenames): Update.
10199 * symfile-debug.c (set_debug_symfile): Update.
10200 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
10202 * source.c (select_source_symtab, forget_cached_source_info):
10204 * solib.c (solib_read_symbols): Update.
10205 * solib-spu.c (append_ocl_sos): Update.
10206 * psymtab.c (maintenance_print_psymbols)
10207 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
10208 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
10209 * printcmd.c (info_symbol_command): Update.
10210 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
10212 * objfiles.h (class all_objfiles): Remove.
10213 * objfiles.c (have_partial_symbols, have_full_symbols)
10214 (have_minimal_symbols, qsort_cmp, update_section_map)
10215 (shared_objfile_contains_address_p)
10216 (default_iterate_over_objfiles_in_search_order): Update.
10217 * objc-lang.c (info_selectors_command, info_classes_command)
10218 (find_methods): Update.
10219 * minsyms.c (find_solib_trampoline_target): Update.
10220 * maint.c (maintenance_info_sections)
10221 (maintenance_translate_address, count_symtabs_and_blocks):
10223 * main.c (captured_main_1): Update.
10224 * linux-thread-db.c (try_thread_db_load_from_pdir)
10225 (has_libpthread): Update.
10226 * linespec.c (iterate_over_all_matching_symtabs)
10227 (search_minsyms_for_name): Update.
10228 * jit.c (jit_find_objf_with_entry_addr): Update.
10229 * hppa-tdep.c (find_unwind_entry)
10230 (hppa_lookup_stub_minimal_symbol): Update.
10231 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
10233 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
10234 (elf_gnu_ifunc_resolve_by_got): Update.
10235 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
10236 * dwarf-index-write.c (save_gdb_index_command): Update.
10237 * cp-support.c (add_symbol_overload_list_qualified): Update.
10238 * breakpoint.c (create_overlay_event_breakpoint)
10239 (create_longjmp_master_breakpoint)
10240 (create_std_terminate_master_breakpoint)
10241 (create_exception_master_breakpoint): Update.
10242 * blockframe.c (find_pc_partial_function): Update.
10243 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
10244 (ada_collect_symbol_completion_matches)
10245 (ada_add_global_exceptions): Update.
10247 2019-01-17 Tom Tromey <tom@tromey.com>
10249 * solib-target.c (lm_info_target_p): Remove typedef. Don't
10251 (solib_target_parse_libraries): Change return type.
10252 (library_list_start_segment, library_list_start_section)
10253 (library_list_end_library, library_list_start_library); Update.
10254 (solib_target_free_library_list): Remove.
10255 (solib_target_parse_libraries): Remove cleanup. Change return
10257 (solib_target_current_sos): Update.
10259 2019-01-17 Tom Tromey <tromey@bapiya>
10261 * valprint.c: Replace "the the" with "the".
10262 * symtab.c: Replace "the the" with "the".
10263 * solib.c: Replace "the the" with "the".
10264 * solib-dsbt.c: Replace "the the" with "the".
10265 * linespec.c: Replace "the the" with "the".
10266 * dwarf2loc.h: Replace "the the" with "the".
10267 * amd64-windows-tdep.c: Replace "the the" with "the".
10268 * aarch64-tdep.c: Replace "the the" with "the".
10270 2019-01-16 Keith Seitz <keiths@redhat.com>
10273 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
10274 <builder>: Rename to ..
10275 <m_builder>: ... this and make private.
10276 (dwarf2_cu::get_builder): New method. Change all users of
10277 `builder' to use this method.
10278 (dwarf2_start_symtab): Move to ...
10279 (dwarf2_cu::start_symtab): ... here. Update all callers
10280 (setup_type_unit_groups): Move to ...
10281 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
10283 (dwarf2_cu::reset_builder): New method.
10284 (process_full_compunit, process_full_type_unit): Use
10285 dwarf2_cu::reset_builder.
10286 (follow_die_offset): Record the ancestor CU if it is different
10287 from the followed DIE's CU.
10288 (follow_die_sig_1): Likewise.
10290 2019-01-15 Tom Tromey <tom@tromey.com>
10292 * remote.c (class remote_state) <buf>: Now a char_vector.
10293 <buf_size>: Remove.
10294 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
10296 (remote_target::getpkt_or_notif_sane_1)
10297 (remote_target::getpkt_sane)
10298 (remote_target::getpkt_or_notif_sane): Likewise.
10299 (class remote_target) <putpkt>: New overload.
10300 (remote_target::read_frame): Change type of "buf_p". Remove
10301 sizeof_p parameter.
10302 (packet_ok): New overload.
10303 (packet_check_result): New overload.
10306 2019-01-14 Tom Tromey <tom@tromey.com>
10308 * remote-notif.c (handle_notification, remote_notif_ack)
10309 (remote_notif_parse): Make "buf" const.
10310 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
10312 (remote_notif_parse, remote_notif_ack, handle_notification):
10314 * remote.c (remote_notif_stop_parse): Make "buf" const.
10315 (remote_target::remote_parse_stop_reply): Make "buf" const.
10316 (remote_notif_stop_ack): Make "buf" const.
10318 2019-01-14 Tom Tromey <tom@tromey.com>
10320 * remote.c (remote_console_output): Make parameter const.
10322 2019-01-14 Tom Tromey <tom@tromey.com>
10324 * target-debug.h (target_debug_print_signals): Constify.
10325 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
10326 * procfs.c (procfs_target::pass_signals): Update.
10327 * linux-nat.c (linux_nat_target::pass_signals): Update.
10328 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
10329 * target-delegates.c: Rebuild.
10330 * remote.c (remote_target::program_signals): Update.
10331 (remote_target::pass_signals): Update.
10332 * target.c (target_pass_signals): Constify argument.
10333 (target_program_signals): Likewise.
10334 * target.h (struct target_ops) <pass_signals, program_signals>:
10336 (target_pass_signals, target_program_signals): Constify argument.
10338 2019-01-14 Tom Tromey <tom@tromey.com>
10341 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
10343 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10345 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
10347 * rs6000-tdep.c: Include reggroups.h.
10348 (IS_V_ALIAS_PSEUDOREG): Define.
10349 (rs6000_register_name): Return names for the "vX" aliases.
10350 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
10351 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
10352 aliases. Call default_register_reggroup_p for all other
10354 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
10356 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
10357 Handle "vX" aliases.
10358 (v_alias_pseudo_register_collect): New function.
10359 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
10360 (rs6000_gdbarch_init): Initialize "vX" aliases as
10361 pseudo-registers. Restore registration of
10362 rs6000_pseudo_register_reggroup_p with
10363 set_tdesc_pseudo_register_reggroup_p.
10365 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
10367 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
10368 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
10369 set_gdbarch_num_pseudo_regs.
10371 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10373 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
10374 Remove arg prefixname, add do_set and do_show.
10375 Add member functions set_list and show_list.
10376 * cli/cli-style.c (class cli_style_option): Update accordingly.
10377 (style_set_list): Move to file scope.
10378 (style_show_list): Likewise.
10379 (set_style): Call help_list.
10380 (show_style): Call cmd_show_list.
10381 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
10382 Update to use the new macro.
10384 2019-10-12 Joel Brobecker <brobecker@adacore.com>
10386 * ada-lang.c (_initialize_ada_language): Expand the help text
10387 for the "catch exception" command.
10389 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10391 * symtab.c (matching_obj_sections): Initialize obj,
10392 declare it closer to its usage.
10394 2019-01-10 Tom Tromey <tom@tromey.com>
10396 * thread-iter.h (inf_threads_iterator): Use next_iterator.
10397 (basic_inf_threads_range): Remove.
10398 (inf_threads_range, inf_non_exited_threads_range)
10399 (safe_inf_threads_range): Use next_adapter.
10401 2019-01-10 Keith Seitz <keiths@redhat.com>
10405 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
10406 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
10408 2019-01-10 Keith Seitz <keiths@redhat.com>
10412 * dictionary.c (pending_to_vector): Remove.
10413 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
10414 Remove _1 suffix, replacing functions of the same name. Update
10416 (dict_create_hashed, dict_create_hashed_expandable)
10417 (dict_create_linear, dict_create_linear_expandable, dict_free)
10418 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
10419 Make functions static.
10421 2019-01-10 Keith Seitz <keiths@redhat.com>
10425 * dictionary.h (struct dictionary): Replace declaration with
10427 (dict_create_hashed, dict_create_hashed_expandable)
10428 (dict_create_linear, dict_create_linear_expandable)
10429 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
10430 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
10431 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
10432 taking multidictionary argument.
10433 [ALL_DICT_SYMBOLS]: Update for multidictionary.
10434 * block.h (struct block) <dict>: Change to multidictionary
10435 and rename `multidict'.
10436 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
10437 symmisc.c: Update all dictionary references to multidictionary.
10439 2019-01-10 Keith Seitz <keiths@redhat.com>
10443 * dictionary.c: Include unordered_map.
10444 (pending_to_vector): New function.
10445 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
10446 Rewrite the non-"_1" functions to take vector instead
10448 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
10449 "new" _1 versions of the same name.
10450 (multidictionary): Define.
10451 (std::hash<enum language): New definition.
10452 (collate_pending_symbols_by_language, mdict_create_hashed)
10453 (mdict_create_hashed_expandable, mdict_create_linear)
10454 (mdict_create_linear_expandable, mdict_free)
10455 (find_language_dictionary, create_new_language_dictionary)
10456 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
10457 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
10458 (mdict_size, mdict_empty): New functions.
10459 * dictionary.h (mdict_iterator): Define.
10461 2019-01-10 Pedro Alves <palves@redhat.com>
10463 * breakpoint.c (read_uploaded_action)
10464 (create_tracepoint_from_upload): Adjust to use
10465 gdb::unique_xmalloc_ptr.
10466 * ctf.c (ctf_write_uploaded_tp):
10467 (SET_ARRAY_FIELD): Use emplace_back.
10468 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
10469 * tracefile-tfile.c (tfile_write_uploaded_tp):
10470 * tracepoint.c (parse_tracepoint_definition): Adjust to use
10471 gdb::unique_xmalloc_ptr.
10472 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
10473 at_string, cond_string, cmd_strings>: Replace char pointers
10474 with gdb::unique_xmalloc_ptr.
10476 2019-01-10 Pedro Alves <palves@redhat.com>
10478 * solib-target.c (library_list_start_library): Don't xstrdup name.
10480 2019-01-10 Pedro Alves <palves@redhat.com>
10482 * mdebugread.c (parse_partial_symbols): Use
10483 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
10485 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
10487 * linux-fork.c (scoped_switch_fork_info)
10488 <~scoped_switch_fork_info>: Fix incorrect variable name.
10490 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
10492 * linux-fork.c (scoped_switch_fork_info)
10493 <scoped_switch_fork_info>: Make explicit.
10494 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
10496 2019-01-10 Tom Tromey <tom@tromey.com>
10498 * objfiles.h (objfile::reset_psymtabs): Update.
10499 * objfiles.c (objfile::objfile): Update.
10500 * psymtab.h (psymtab_storage::obstack): Update.
10501 (psymtab_storage::m_obstack): Use gdb::optional.
10502 (class psymtab_storage): Update comment. Remove objfile
10504 * psymtab.c (psymtab_storage::psymtab_storage): Update.
10506 2019-01-10 Tom Tromey <tom@tromey.com>
10508 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
10509 <free_psymtabs>: Now private.
10510 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
10511 (allocate_psymtab): Use new method.
10513 2019-01-10 Tom Tromey <tom@tromey.com>
10515 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
10516 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
10517 * mdebugread.c (parse_partial_symbols): Use
10518 allocate_dependencies.
10519 * dwarf2read.c (dwarf2_create_include_psymtab): Use
10520 allocate_dependencies.
10521 (process_psymtab_comp_unit_reader)
10522 (build_type_psymtab_dependencies): Likewise.
10523 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
10525 2019-01-10 Tom Tromey <tom@tromey.com>
10527 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
10528 PSYMBOL_SET_LANGUAGE.
10529 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
10531 2019-01-10 Tom Tromey <tom@tromey.com>
10533 * psymtab.h (psymtab_storage::obstack): New method.
10534 <m_obstack>: Rename from obstack; now private.
10535 * psymtab.c (psymtab_storage): Update.
10536 * dwarf2read.c (create_addrmap_from_index)
10537 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
10540 2019-01-10 Tom Tromey <tom@tromey.com>
10542 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
10543 * objfiles.h (objfile::reset_psymtabs): New method.
10545 2019-01-10 Tom Tromey <tom@tromey.com>
10547 * symmisc.c (print_symbol_bcache_statistics): Update.
10548 (print_objfile_statistics): Update.
10549 * symfile.c (reread_symbols): Update.
10550 * psymtab.h (class psymtab_storage): New.
10551 * psymtab.c (psymtab_storage): New constructor.
10552 (~psymtab_storage): New destructor.
10553 (require_partial_symbols): Update.
10554 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
10555 (find_pc_sect_psymtab, find_pc_sect_psymbol)
10556 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
10557 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
10558 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
10559 (start_psymtab_common, end_psymtab_common)
10560 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
10561 (allocate_psymtab): Update.
10562 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
10564 (dump_psymtab_addrmap, maintenance_print_psymbols)
10565 (maintenance_check_psymtabs): Update.
10566 (class objfile_psymtabs): Move to objfiles.h.
10567 * psympriv.h (discard_psymtab): Now inline.
10568 (psymtab_discarder::psymtab_discarder): Update.
10569 (psymtab_discarder::~psymtab_discarder): Update.
10570 (ALL_OBJFILE_PSYMTABS): Rewrite.
10571 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
10572 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
10574 <partial_symtabs>: New field.
10575 (class objfile_psymtabs): Move from psymtab.h. Update.
10576 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
10578 (objfile::~objfile): Don't destroy psymbol_cache.
10579 * mdebugread.c (parse_partial_symbols): Update.
10580 * dwarf2read.c (create_addrmap_from_index)
10581 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10582 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
10583 (add_partial_subprogram, dwarf2_ranges_read): Update.
10584 * dwarf-index-write.c (write_address_map)
10585 (write_one_signatured_type, recursively_write_psymbols)
10586 (class debug_names, class debug_names, write_psymtabs_to_index):
10589 2019-01-10 Tom Tromey <tom@tromey.com>
10591 * symtab.h (SYMBOL_SET_NAMES): Update.
10592 (symbol_set_names): Update.
10593 (MSYMBOL_SET_NAMES): Update.
10594 * symtab.c (symbol_set_names): Change argument to be an
10595 objfile_per_bfd_storage.
10596 * psymtab.c (add_psymbol_to_bcache): Update.
10597 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
10599 2019-01-10 Tom Tromey <tom@tromey.com>
10601 * symtab.c (create_demangled_names_hash): Change argument to be an
10602 objfile_per_bfd_storage.
10603 (symbol_set_names): Update.
10605 2019-01-10 Tom Tromey <tom@tromey.com>
10607 * xcoffread.c (xcoff_initial_scan): Unconditionally call
10609 * psymtab.c (init_psymbol_list): Do nothing if already called.
10610 * psympriv.h (init_psymbol_list): Add comment.
10611 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
10613 * dbxread.c (dbx_symfile_read): Unconditionally call
10616 2019-01-10 Tom Tromey <tom@tromey.com>
10618 * xcoffread.c (scan_xcoff_symtab): Update.
10619 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
10621 * mdebugread.c (parse_partial_symbols)
10622 (handle_psymbol_enumerators): Update.
10623 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
10624 * dbxread.c (read_dbx_symtab): Update.
10625 * psympriv.h (psymbol_placement): New enum.
10626 (add_psymbol_to_list): Update.
10628 2019-01-10 Tom Tromey <tom@tromey.com>
10630 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
10631 static_psymbols parameters.
10632 (scan_xcoff_symtab): Update.
10633 * psymtab.c (start_psymtab_common): Remove global_psymbols and
10634 static_psymbols parameters.
10635 * psympriv.h (start_psymtab_common): Update.
10636 * mdebugread.c (parse_partial_symbols): Update.
10637 * dwarf2read.c (create_partial_symtab): Update.
10638 * dbxread.c (read_dbx_symtab): Update.
10639 (start_psymtab): Remove global_psymbols and static_psymbols
10642 2019-01-10 Tom Tromey <tom@tromey.com>
10644 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
10645 * psymtab.c (allocate_psymtab): Add comment.
10646 * psympriv.h (allocate_psymtab): Add comment.
10647 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
10649 * dbxread.c (dbx_end_psymtab): Remove some initializations.
10651 2019-01-10 Tom Tromey <tom@tromey.com>
10653 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
10655 * mipsread.c: Include mdebugread.h.
10656 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
10658 * elfread.c: Include mdebugread.h.
10660 2019-01-09 Tom Tromey <tom@tromey.com>
10662 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
10663 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
10664 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
10665 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
10666 (psym_lookup_symbol, psym_find_last_source_symtab)
10667 (psym_forget_cached_source_info, psym_print_stats)
10668 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
10669 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
10670 (psym_map_matching_symbols, psym_expand_symtabs_matching)
10671 (psym_find_compunit_symtab_by_address)
10672 (maintenance_print_psymbols, maintenance_info_psymtabs)
10673 (maintenance_check_psymtabs): Use ranged for.
10674 * psymtab.h (class objfile_psymtabs): New.
10675 (require_partial_symbols): Return objfile_psymtabs.
10676 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
10678 2019-01-09 Tom Tromey <tom@tromey.com>
10680 * symfile.c (overlay_invalidate_all, find_pc_overlay)
10681 (find_pc_mapped_section, list_overlays_command)
10682 (map_overlay_command, unmap_overlay_command)
10683 (simple_overlay_update): Use all_objfiles.
10684 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
10685 * printcmd.c (info_symbol_command): Use all_objfiles.
10686 * objfiles.h (ALL_OBJSECTIONS): Remove.
10687 * maint.c (maintenance_translate_address): Use all_objfiles.
10688 * gcore.c (gcore_create_callback): Use all_objfiles.
10689 (objfile_find_memory_regions): Likewise.
10691 2019-01-09 Tom Tromey <tom@tromey.com>
10693 * symtab.c (find_line_symtab, info_sources_command)
10694 (make_source_files_completion_list): Use objfile_compunits.
10695 * source.c (select_source_symtab): Use objfile_compunits.
10696 * objfiles.h (struct objfile): Update comment.
10697 (ALL_OBJFILES): Remove.
10698 (ALL_FILETABS): Remove.
10699 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
10702 2019-01-09 Tom Tromey <tom@tromey.com>
10704 * symmisc.c (print_objfile_statistics, dump_objfile)
10705 (maintenance_print_symbols): Use compunit_filetabs.
10706 * source.c (forget_cached_source_info_for_objfile): Use
10708 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
10709 (ALL_FILETABS): Use compunit_filetabs.
10710 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
10711 * coffread.c (coff_symtab_read): Use compunit_filetabs.
10713 2019-01-09 Tom Tromey <tom@tromey.com>
10715 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
10716 (compunit_filetabs): New.
10717 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
10719 (info_sources_command, make_source_files_completion_list): Remove
10721 * symmisc.c (print_objfile_statistics, dump_objfile)
10722 (maintenance_print_symbols): Remove declaration.
10723 (maintenance_info_symtabs): Use compunit_filetabs.
10724 (maintenance_info_line_tables): Likewise.
10725 * source.c (select_source_symtab): Change local variable name.
10726 (forget_cached_source_info_for_objfile): Remove declaration.
10727 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
10728 * objfiles.c (objfile_relocate1): Remove declaration.
10729 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
10731 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
10732 * coffread.c (coff_symtab_read): Remove declaration.
10733 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
10736 2019-01-09 Tom Tromey <tom@tromey.com>
10738 * symtab.c (lookup_objfile_from_block)
10739 (find_pc_sect_compunit_symtab, search_symbols)
10740 (default_collect_symbol_completion_matches_break_on): Use
10742 * objfiles.h (ALL_COMPUNITS): Remove.
10743 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
10744 * cp-support.c (add_symbol_overload_list_qualified): Use
10746 * ada-lang.c (ada_collect_symbol_completion_matches)
10747 (ada_add_global_exceptions): Use objfile_compunits.
10749 2019-01-09 Tom Tromey <tom@tromey.com>
10751 * source.c (select_source_symtab)
10752 (forget_cached_source_info_for_objfile): Remove declaration.
10753 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
10755 * maint.c (count_symtabs_and_blocks): Remove declaration.
10756 * cp-support.c (add_symbol_overload_list_qualified): Remove
10758 * coffread.c (coff_symtab_read): Remove declaration.
10759 * symtab.c (lookup_symbol_in_objfile_symtabs)
10760 (basic_lookup_transparent_type_1): Use objfile_compunits.
10761 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
10762 (info_sources_command, search_symbols)
10763 (default_collect_symbol_completion_matches_break_on)
10764 (make_source_files_completion_list): Remove declaration.
10765 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
10766 (ada_collect_symbol_completion_matches)
10767 (ada_add_global_exceptions): Remove declaration.
10768 * linespec.c (iterate_over_all_matching_symtabs): Use
10770 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
10771 (class objfile_compunits): New.
10772 (ALL_COMPUNITS): Use objfile_compunits.
10773 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
10774 (maintenance_check_symtabs, maintenance_info_line_tables): Use
10776 * objfiles.c (objfile_relocate1): Use objfile_compunits.
10778 2019-01-09 Tom Tromey <tom@tromey.com>
10780 * symtab.c (search_symbols)
10781 (default_collect_symbol_completion_matches_break_on): Use
10783 * ada-lang.c (ada_lookup_simple_minsym)
10784 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
10785 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
10786 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
10788 * coffread.c (coff_symfile_read): Use objfile_msymbols.
10789 * symmisc.c (dump_msymbols): Use objfile_msymbols.
10790 * objc-lang.c (find_methods): Use objfile_msymbols.
10791 (info_selectors_command, info_classes_command): Likewise.
10792 * stabsread.c (scan_file_globals): Use objfile_msymbols.
10793 * objfiles.h (class objfile_msymbols): New.
10794 (ALL_OBJFILE_MSYMBOLS): Remove.
10795 (ALL_MSYMBOLS): Remove.
10797 2019-01-09 Tom Tromey <tom@tromey.com>
10799 * common/next-iterator.h (next_adapter): Add Iterator template
10801 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
10802 (class all_objfiles_safe): New.
10803 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
10804 * objfiles.c (put_objfile_before): Update comment.
10805 (add_separate_debug_objfile): Likewise.
10806 (free_all_objfiles): Use all_objfiles_safe.
10807 (objfile_purge_solibs): Likewise.
10809 2019-01-09 Tom Tromey <tom@tromey.com>
10811 * symtab.c (iterate_over_symtabs, matching_obj_sections)
10812 (expand_symtab_containing_pc, lookup_static_symbol)
10813 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
10814 (find_symbol_at_address, find_line_symtab, find_main_name): Use
10816 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
10817 * breakpoint.c (create_overlay_event_breakpoint)
10818 (create_longjmp_master_breakpoint)
10819 (create_std_terminate_master_breakpoint)
10820 (create_exception_master_breakpoint): Use all_objfiles.
10821 * linux-thread-db.c (try_thread_db_load_from_pdir)
10822 (has_libpthread): Use all_objfiles.
10823 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
10824 * linespec.c (iterate_over_all_matching_symtabs)
10825 (search_minsyms_for_name): Use all_objfiles.
10826 * maint.c (maintenance_info_sections): Use all_objfiles.
10827 * main.c (captured_main_1): Use all_objfiles.
10828 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
10829 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
10830 * guile/scm-pretty-print.c
10831 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
10832 * solib-spu.c (append_ocl_sos): Use all_objfiles.
10833 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
10834 (maintenance_print_msymbols): Use all_objfiles.
10835 * source.c (select_source_symtab): Use all_objfiles.
10836 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
10837 * symfile.c (remove_symbol_file_command)
10838 (expand_symtabs_matching, map_symbol_filenames): Use
10840 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
10842 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
10843 * objc-lang.c (find_methods): Use all_objfiles.
10844 * objfiles.c (have_partial_symbols, have_full_symbols)
10845 (have_minimal_symbols, qsort_cmp)
10846 (default_iterate_over_objfiles_in_search_order): Use
10848 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
10849 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
10850 (maintenance_check_psymtabs): Use all_objfiles.
10851 (ALL_PSYMTABS): Remove.
10852 * compile/compile-object-run.c (do_module_cleanup): Use
10854 * blockframe.c (find_pc_partial_function): Use all_objfiles.
10855 * cp-support.c (add_symbol_overload_list_qualified): Use
10857 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
10859 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
10860 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
10862 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
10863 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
10864 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
10866 * solib.c (solib_read_symbols): Use all_objfiles
10868 2019-01-09 Tom Tromey <tom@tromey.com>
10870 * probe.c (parse_probes_in_pspace): Use all_objfiles.
10871 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
10873 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
10874 * symmisc.c (print_symbol_bcache_statistics)
10875 (print_objfile_statistics, maintenance_print_objfiles)
10876 (maintenance_info_symtabs, maintenance_check_symtabs)
10877 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
10879 * source.c (forget_cached_source_info): Use all_objfiles.
10880 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
10881 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
10882 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
10883 * objfiles.c (update_section_map): Use all_objfiles.
10884 (shared_objfile_contains_address_p): Likewise.
10885 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
10886 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
10888 2019-01-09 Tom Tromey <tom@tromey.com>
10890 * common/next-iterator.h: New file.
10891 * objfiles.h (class all_objfiles): New.
10892 (struct objfile_iterator): New.
10894 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10896 * NEWS: Move the description of the changed "frame", "select-frame",
10897 and "info frame" commands to the Changed commands section.
10899 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
10901 * gdbtypes.c (check_stub_method_group): Remove handling of old
10903 * linespec.c (find_methods): Likewise.
10904 * stabsread.c (read_member_functions): Likewise.
10905 * valops.c (search_struct_method): Likewise.
10906 (value_struct_elt_for_reference): Likewise.
10907 * NEWS: Mention this change.
10909 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10911 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
10912 print_source_lines.
10913 * source.c (print_source_lines_base): Update line number check.
10914 (print_source_lines): New function.
10915 (source_lines_range::source_lines_range): New function.
10916 * source.h (class source_lines_range): New class.
10917 (print_source_lines): New declaration.
10919 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10921 * linespec.c (linespec_state_destructor): Free self->canonical_names.
10923 2019-01-08 Tom Tromey <tom@tromey.com>
10924 Simon Marchi <simon.marchi@ericsson.com>
10927 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
10928 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
10929 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
10930 * f-exp.y (DOLLAR_VARIABLE): Likewise.
10931 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
10932 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
10934 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
10936 * source.c (select_source_symtab): Move header comment to
10937 declaration in source.h.
10938 (forget_cached_source_info_for_objfile): Likewise.
10939 (forget_cached_source_info): Likewise.
10940 (identify_source_line): Likewise.
10941 * source.h (identify_source_line): Move declaration from symtab.h
10942 and add comment from source.c
10943 (print_source_lines): Likewise.
10944 (forget_cached_source_info_for_objfile): Likewise.
10945 (forget_cached_source_info): Likewise.
10946 (select_source_symtab): Likewise.
10947 (enum print_source_lines_flag): Move definition from symtab.h.
10948 * symtab.h (identify_source_line): Move declaration to source.h.
10949 (print_source_lines): Likewise.
10950 (forget_cached_source_info_for_objfile): Likewise.
10951 (forget_cached_source_info): Likewise.
10952 (select_source_symtab): Likewise.
10953 (enum print_source_lines_flag): Move definition to source.h.
10954 * tui/tui-hooks.c: Add 'source.h' include.
10956 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
10958 * source.c (print_source_lines_base): Handle requests to print
10959 reverse line number sequences, and guard against empty lines
10962 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
10964 * source.c (print_source_lines_base): Fix skip of '\r' if next
10967 2019-01-06 Tom Tromey <tom@tromey.com>
10969 * c-exp.y (struct c_parse_state) <macro_original_text,
10970 expansion_obstack>: New member.
10971 (macro_original_text, expansion_obstack): Remove globals.
10972 (scan_macro_expansion, scanning_macro_expansion)
10973 (finished_macro_expansion): Update.
10974 (scan_macro_cleanup): Remove.
10975 (yylex, c_parse): Update.
10977 2019-01-06 Tom Tromey <tom@tromey.com>
10979 * c-exp.y (struct c_parse_state) <strings>: New member.
10980 (operator_stoken): Update.
10982 2019-01-06 Tom Tromey <tom@tromey.com>
10984 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
10985 (union type_stack_elt) <typelist_val>: Now a pointer to
10987 (type_stack_cleanup): Don't declare.
10988 (push_typelist): Update.
10989 * parse.c (pop_typelist): Return a std::vector.
10990 (push_typelist): Take a std::vector.
10991 (follow_types): Update. Do not free args.
10992 (type_stack_cleanup): Remove.
10993 * c-exp.y (struct c_parse_state): New.
10994 (cpstate): New global.
10995 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
10996 (nonempty_typelist): Update.
10997 (func_mod): Create a new vector.
10998 (c_parse): Create a c_parse_state.
10999 (check_parameter_typelist): Do not delete params.
11000 (function_method): Update. Do not delete type_list.
11002 2019-01-06 Tom Tromey <tom@tromey.com>
11005 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
11007 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
11008 (print_return_value): Likewise.
11010 2019-01-05 Tom Tromey <tom@tromey.com>
11012 * contrib/cleanup_check.py: Remove.
11013 * contrib/gcc-with-excheck: Remove.
11014 * contrib/exsummary.py: Remove.
11015 * contrib/excheck.py: Remove.
11017 2019-01-05 Joel Brobecker <brobecker@adacore.com>
11019 * thread.c (delete_thread_1): Add gdb_assert that THR is not
11020 NULL. Initialize tpprev to NULL instead of assigning it
11021 to NULL on the next statement.
11022 * windows-nat.c (windows_delete_thread): Remove check for
11023 main_thread_id before printing thread exit notifications.
11024 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
11025 Remove thread ID check against main_thread_id.
11026 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
11027 windows_delete_thread.
11028 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
11030 2019-01-04 Tom Tromey <tom@tromey.com>
11032 * compile/compile.c (_initialize_compile): Use upper case for
11033 metasyntactic variables.
11034 * symmisc.c (_initialize_symmisc): Use upper case for
11035 metasyntactic variables.
11036 * psymtab.c (_initialize_psymtab): Use upper case for
11037 metasyntactic variables.
11038 * demangle.c (demangle_command): Use upper case for metasyntactic
11040 (_initialize_demangler): Likewise.
11041 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
11044 2019-01-03 Tom Tromey <tom@tromey.com>
11046 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
11048 2019-01-03 Tom Tromey <tom@tromey.com>
11050 * python/py-symtab.c (salpy_str): Update.
11051 (struct salpy_sal_object) <symtab>: Now a PyObject.
11052 (salpy_dealloc): Update.
11053 (del_objfile_sal): Use gdbpy_ref.
11055 2019-01-03 Tom Tromey <tom@tromey.com>
11057 * python/py-type.c (convert_field): Use new_reference. Return
11059 (make_fielditem): Return gdbpy_ref.
11060 (typy_fields): Update.
11061 (typy_getitem): Update.
11062 (field_name): Return gdbpy_ref. Use new_reference.
11063 (typy_iterator_iternext): Update.
11065 2019-01-03 Tom Tromey <tom@tromey.com>
11067 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
11069 2019-01-03 Tom Tromey <tom@tromey.com>
11071 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
11072 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
11073 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
11074 (pspy_set_frame_filters, pspy_set_frame_unwinders)
11075 (pspy_set_type_printers): Likewise.
11076 * python/py-function.c (fnpy_init): Use gdbpy_ref.
11077 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
11078 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
11079 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
11080 (objfpy_set_type_printers): Likewise.
11082 2019-01-03 Tom Tromey <tom@tromey.com>
11084 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
11085 (gdbpy_print_stack): Use gdbpy_err_fetch.
11086 * python/python-internal.h (class gdbpy_err_fetch): New class.
11087 (class gdbpy_enter) <m_error_type, m_error_value,
11088 m_error_traceback>: Remove.
11089 <m_error>: New member.
11090 (gdbpy_exception_to_string): Don't declare.
11091 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
11092 * python/py-value.c (convert_value_from_python): Use
11094 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
11095 gdbpy_exception_to_string.
11096 (gdbpy_handle_exception): Use gdbpy_err_fetch.
11097 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
11100 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11102 * linux-nat.c (delete_lwp_cleanup): Delete.
11103 (struct lwp_deleter): New struct.
11104 (lwp_info_up): New typedef.
11105 (linux_nat_target::follow_fork): Delete cleanup, and make use of
11108 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11110 * linux-fork.c (class scoped_switch_fork_info): New class.
11111 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
11113 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11115 * valops.c (find_overload_match): Remove use of null_cleanup, and
11116 calls to do_cleanups.
11118 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11120 * compile/compile-cplus-types.c
11121 (compile_cplus_instance::decl_name): Handle changes to
11123 * cp-support.c (cp_func_name): Update header comment, update
11125 * cp-support.h (cp_func_name): Update return type in declaration.
11126 * valops.c (find_overload_match): Move temp_func local to top
11127 level of function and change its type. Use temp_func to hold and
11128 delete temporary string obtained from cp_func_name.
11130 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11132 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
11133 gdb::char_vector, remove cleanup, and update uses of `msg`.
11135 2019-01-03 Jim Wilson <jimw@sifive.com>
11137 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
11139 2019-01-02 Tom Tromey <tom@tromey.com>
11141 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
11142 (tdesc_parse_xml): Remove cleanups.
11143 * target-descriptions.h (make_cleanup_free_target_description):
11145 (target_desc_deleter): New struct.
11146 (target_desc_up): New typedef.
11147 * target-descriptions.c (target_desc_deleter::operator()): Rename
11148 from free_target_description.
11149 (make_cleanup_free_target_description): Remove.
11151 2019-01-02 Tom Tromey <tom@tromey.com>
11153 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
11154 constructor, destructor.
11155 (linespec_parser): Remove typedef.
11156 (~linespec_parser): Rename from linespec_parser_delete.
11157 (linespec_lex_to_end, linespec_complete_label)
11158 (linespec_complete): Update.
11159 (decode_line_full): Remove cleanups.
11160 (decode_line_1): Update.
11162 2019-01-02 Tom Tromey <tom@tromey.com>
11164 * python/python-internal.h (inferior_to_inferior_object): Change
11166 * python/py-exitedevent.c (create_exited_event_object): Update.
11167 * python/py-inferior.c (inferior_to_inferior_object): Return
11169 (python_new_inferior, python_inferior_deleted)
11170 (thread_to_thread_object, delete_thread_object)
11171 (build_inferior_list, gdbpy_selected_inferior): Update.
11172 * python/py-infthread.c (create_thread_object): Update. Also fail
11173 if inferior_to_inferior_object fails.
11175 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
11177 * inferior.h (class inferior) <displaced_step_state>: New field.
11178 * infrun.h (struct displaced_step_state): Move here from
11179 infrun.c. Initialize fields, add constructor.
11180 <inf>: Remove field.
11181 <reset>: New method.
11182 * infrun.c (struct displaced_step_inferior_state): Move to
11184 (displaced_step_inferior_states): Remove.
11185 (get_displaced_stepping_state): Adust.
11186 (displaced_step_in_progress_any_inferior): Adjust.
11187 (displaced_step_in_progress_thread): Adjust.
11188 (displaced_step_in_progress): Adjust.
11189 (add_displaced_stepping_state): Remove.
11190 (get_displaced_step_closure_by_addr): Adjust.
11191 (remove_displaced_stepping_state): Remove.
11192 (infrun_inferior_exit): Call displaced_step_state.reset.
11193 (use_displaced_stepping): Don't check for NULL.
11194 (displaced_step_prepare_throw): Call
11195 get_displaced_stepping_state.
11196 (displaced_step_fixup): Don't check for NULL.
11197 (prepare_for_detach): Don't check for NULL.
11199 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11201 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
11202 in case of call that did not complete.
11204 2019-01-02 Andrey Utkin <autkin@undo.io>
11206 * symfile.c (find_separate_debug_file): Fix search of debug files for
11209 2019-01-02 Tom Tromey <tom@tromey.com>
11211 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
11213 * python/py-frame.c (frapy_older): Remove cast.
11214 (frapy_newer): Likewise.
11215 * python/py-breakpoint.c (local_setattro): Remove cast.
11216 * python/py-arch.c (archpy_name): Remove local variable.
11217 * python/py-type.c (gdbpy_lookup_type): Remove cast.
11219 2019-01-02 Joel Brobecker <brobecker@adacore.com>
11221 * unittests/basic_string_view/element_access/char/empty.cc:
11222 Fix year range in copyright header.
11224 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
11226 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
11228 <operator==>: Update with for removed field.
11230 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
11231 <isa_features>: ...this.
11232 <abi_features>: New field.
11233 (riscv_isa_flen): Update comment.
11234 (riscv_abi_xlen): New declaration.
11235 (riscv_abi_flen): New declaration.
11236 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
11238 (riscv_abi_xlen): New function.
11239 (riscv_isa_flen): Update to get answer from isa_features.
11240 (riscv_abi_flen): New function.
11241 (riscv_has_fp_abi): Update to get answer from abi_features.
11242 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
11244 (riscv_call_info) <xlen, flen>: Update comment.
11245 (riscv_call_arg_struct): Remove invalid assertions
11246 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
11248 (riscv_gdbarch_init): Gather isa features and abi features
11249 separately, ensure both match on the gdbarch when reusing an old
11250 gdbarch. Relax an error check to allow 32-bit abi float to run on
11251 a target with 64-bit float hardware.
11253 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11255 * source.c (search_command_helper): Stop reverse search
11256 when line 1 has been searched.
11258 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11260 * record-full.c (record_full_base_target::close): Rewrite
11261 record_full_core_buf_list free logic.
11263 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11265 * break-catch-syscall.c (print_one_catch_syscall): xfree
11268 2019-01-01 Joel Brobecker <brobecker@adacore.com>
11270 * top.c (print_gdb_version): Update Copyright year in version
11273 2019-01-01 Joel Brobecker <brobecker@adacore.com>
11275 Update copyright year range in all GDB files.
11277 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
11279 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
11281 For older changes see ChangeLog-2018.
11287 version-control: never