1 2019-08-15 Tom Tromey <tom@tromey.com>
3 * tui/tui-winsource.h (struct tui_source_window_base)
4 <do_erase_source_content>: New method.
5 <erase_source_content>: New method.
6 (tui_erase_source_content): Don't declare.
7 * tui/tui-winsource.c (tui_clear_source_content): Update.
8 (tui_source_window_base::do_erase_source_content): Rename from
9 tui_erase_source_content.
10 (tui_source_window_base::show_source_content): Update.
11 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
12 * tui/tui-source.h (struct tui_source_window)
13 <erase_source_content>: New method.
14 * tui/tui-disasm.h (struct tui_disasm_window)
15 <erase_source_content>: New method.
17 2019-08-15 Tom Tromey <tom@tromey.com>
19 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
20 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
22 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
23 * tui/tui-source.c (tui_set_source_content): Update.
24 * tui/tui-disasm.c (tui_set_disassem_content): Update.
26 2019-08-15 Tom Tromey <tom@tromey.com>
28 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
29 * tui/tui-winsource.c (tui_line_is_displayed): Move to
31 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
33 * tui/tui-source.c (tui_source_window::line_is_displayed): New
35 (tui_source_window::maybe_update): Update.
37 2019-08-15 Tom Tromey <tom@tromey.com>
39 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
40 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
42 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
44 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
46 (tui_disasm_window::maybe_update): Update.
48 2019-08-15 Tom Tromey <tom@tromey.com>
50 * tui/tui-winsource.h (struct tui_source_window_base)
51 <maybe_update>: Declare.
52 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
54 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
56 * tui/tui-source.c (tui_source_window::maybe_update): New method.
57 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
59 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
61 2019-08-15 Tom Tromey <tom@tromey.com>
63 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
65 2019-08-15 Tom Tromey <tom@tromey.com>
67 * tui/tui-wingeneral.c: Include tui-stack.h.
68 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
69 (struct tui_locator_window): Move from tui-data.h.
70 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
71 (tui_initialize_static_data): Move from tui-data.c.
72 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
73 (struct tui_locator_window): Move to tui-stack.c.
74 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
75 (tui_initialize_static_data): Move to tui-stack.c.
77 2019-08-15 Tom Tromey <tom@tromey.com>
79 * tui/tui-layout.c (show_source_disasm_command)
80 (show_source_or_disasm_and_command): Use make_visible method, not
82 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
85 2019-08-15 Tom Tromey <tom@tromey.com>
87 * tui/tui-wingeneral.h (tui_make_window): Update.
88 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
90 (tui_gen_win_info::make_visible): Update.
91 * tui/tui-regs.c (tui_data_window::display_registers_from):
93 * tui/tui-layout.c (show_source_disasm_command)
94 (show_source_or_disasm_and_command): Update.
95 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
96 (enum tui_box): Remove.
97 (struct tui_win_info) <can_box>: New method.
98 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
101 2019-08-15 Tom de Vries <tdevries@suse.de>
103 * linux-nat-trad.c: Include gdbarch.h.
105 2019-08-14 Alan Hayward <alan.hayward@arm.com>
107 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
110 2019-08-14 Tom Tromey <tromey@adacore.com>
112 * darwin-nat.c: Include gdbarch.h.
113 * darwin-nat-info.c: Include gdbarch.h.
115 2019-08-13 Tom Tromey <tom@tromey.com>
117 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
119 * tui/tui-data.c (tui_initialize_static_data): Update.
121 2019-08-13 Tom Tromey <tom@tromey.com>
123 * tui/tui-winsource.h (struct tui_exec_info_window)
124 <~tui_exec_info_window, maybe_allocate_content, get_content,
126 (struct tui_source_window_base) <set_exec_info_content,
127 show_exec_info_content>: Don't declare.
128 * tui/tui-winsource.c
129 (tui_exec_info_window::maybe_allocate_content): Remove.
130 (tui_source_window_base::update_exec_info): Rename from
131 set_exec_info_content.
132 (tui_source_window_base::show_exec_info_content)
133 (tui_source_window_base::update_exec_info): Remove.
135 2019-08-13 Tom Tromey <tom@tromey.com>
137 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
139 * tui/tui-winsource.c (tui_update_source_window_as_is)
140 (tui_update_source_windows_with_addr, tui_erase_source_content):
142 (tui_clear_exec_info_content): Remove.
144 2019-08-13 Tom Tromey <tom@tromey.com>
146 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
148 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
149 call tui_erase_exec_info_content.
150 (tui_clear_exec_info_content): Rename from
151 tui_erase_exec_info_content.
152 (tui_clear_exec_info_content): Delete.
154 2019-08-13 Tom Tromey <tom@tromey.com>
156 * tui/tui-winsource.h (struct tui_source_window_base)
157 <show_exec_info_content>: Declare.
158 (tui_show_exec_info_content): Don't declare.
159 * tui/tui-winsource.c
160 (tui_source_window_base::show_exec_info_content): Rename from
161 tui_show_exec_info_content.
162 (tui_source_window_base::update_exec_info): Update.
164 2019-08-13 Tom Tromey <tom@tromey.com>
166 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
167 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
168 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
169 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
170 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
171 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
174 2019-08-13 Tom Tromey <tom@tromey.com>
176 * tui/tui-winsource.h (struct tui_source_window_base)
177 <update_exec_info>: Declare.
178 (tui_update_exec_info): Don't declare.
179 * tui/tui-winsource.c (tui_update_source_window_as_is)
180 (tui_source_window_base::refresh_all)
181 (tui_update_all_breakpoint_info): Update.
182 (tui_source_window_base::update_exec_info): Rename from
183 tui_update_exec_info.
184 * tui/tui-stack.c (tui_show_frame_info): Update.
186 2019-08-13 Tom Tromey <tom@tromey.com>
188 * tui/tui-winsource.h (struct tui_source_window_base)
189 <set_exec_info_content>: Declare.
190 (tui_set_exec_info_content): Don't declare.
191 * tui/tui-winsource.c
192 (tui_source_window_base::set_exec_info_content): Rename from
193 tui_set_exec_info_content.
194 (tui_update_exec_info): Update.
196 2019-08-13 Tom Tromey <tom@tromey.com>
198 * tui/tui-winsource.h (struct tui_source_window_base)
199 <show_source_content>: Declare.
200 (tui_show_source_content): Don't declare.
201 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
202 (tui_source_window_base::show_source_content): Rename from
203 tui_show_source_content.
204 (tui_source_window_base::refresh_all): Update.
205 * tui/tui-layout.c (show_source_disasm_command)
206 (show_source_or_disasm_and_command): Update.
208 2019-08-13 Tom Tromey <tom@tromey.com>
210 * tui/tui-winsource.c (tui_erase_source_content)
211 (tui_show_source_content, tui_source_window_base::refresh_all):
213 * tui/tui-wingeneral.h
214 (tui_check_and_display_highlight_if_needed): Don't declare.
215 * tui/tui-wingeneral.c
216 (tui_win_info::check_and_display_highlight_if_needed): Rename from
217 check_and_display_highlight_if_needed.
218 * tui/tui-win.c (tui_rehighlight_all)
219 (tui_win_info::make_visible_with_new_height): Update.
220 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
221 (tui_data_window::erase_data_content)
222 (tui_data_window::display_all_data): Update.
223 * tui/tui-data.h (struct tui_win_info)
224 <check_and_display_highlight_if_needed>: Declare.
226 2019-08-13 Tom Tromey <tom@tromey.com>
228 * tui/tui-win.c (tui_resize_all): Call
229 tui_delete_invisible_windows.
230 * tui/tui-layout.c (show_layout): Call
231 tui_delete_invisible_windows.
232 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
233 * tui/tui-data.c (tui_delete_invisible_windows): New function.
235 2019-08-13 Tom Tromey <tom@tromey.com>
237 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
238 tui_add_win_to_layout.
240 2019-08-13 Tom Tromey <tom@tromey.com>
242 * tui/tui-layout.h (tui_default_win_height): Don't declare.
243 * tui/tui-layout.c (tui_default_win_height): Now static.
245 2019-08-13 Tom Tromey <tom@tromey.com>
247 * tui/tui-layout.c (show_layout): Unify all layout cases into a
249 (show_source_disasm_command, show_source_or_disasm_and_command):
250 Don't check current layout.
252 2019-08-13 Tom Tromey <tom@tromey.com>
254 * tui/tui-wingeneral.c (make_all_visible): Remove.
255 (tui_make_all_invisible): Simplify.
256 * tui/tui-layout.c (tui_make_all_invisible): Move from
257 tui-wingeneral.c; simplify.
258 (show_layout): Hoist call to tui_make_all_invisible.
259 (show_data): Don't call tui_make_all_invisible.
261 2019-08-13 Tom Tromey <tom@tromey.com>
263 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
264 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
266 2019-08-13 Tom Tromey <tom@tromey.com>
268 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
270 (show_source_disasm_command, show_data)
271 (show_source_or_disasm_and_command): Don't use
272 tui_set_current_layout_to.
273 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
274 * tui/tui-data.c (current_layout, tui_current_layout): Move to
276 (tui_set_current_layout_to): Remove.
278 2019-08-13 Tom Tromey <tom@tromey.com>
280 * tui/tui-layout.c (tui_set_layout): Update.
281 * tui/tui-data.h (struct tui_layout_def): Remove.
282 (tui_layout_def): Don't declare.
283 * tui/tui-data.c (layout_def): Remove.
284 (tui_layout_def): Remove.
286 2019-08-13 Tom Tromey <tom@tromey.com>
288 * tui/tui-winsource.h (struct tui_source_window_base)
289 <clear_detail>: No longer "override".
290 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
291 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
292 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
293 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
295 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
297 2019-08-13 Tom Tromey <tromey@adacore.com>
299 * tracepoint.c: Don't include readline.h or history.h.
301 2019-08-12 Tom Tromey <tom@tromey.com>
303 * configure: Rebuild.
304 * configure.ac: Check for readline 7.
305 * NEWS: Mention readline 7 requirement.
308 2019-08-12 Tom Tromey <tom@tromey.com>
310 * mingw-hdep.c (gdb_select): Remove readline hack.
312 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
314 * blockframe.c (find_pc_partial_function): Set *block to nullptr
315 when the function fails.
317 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
319 * s390-tdep.c (s390_type_align): New function.
320 (s390_gdbarch_init): Set it as type_align gdbarch method.
322 2019-08-09 Tom de Vries <tdevries@suse.de>
325 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
326 pc_low with relocation offset.
328 2019-08-07 Tom Tromey <tromey@adacore.com>
330 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
331 (print_frame_args): Update.
332 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
334 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
335 * frame.h (struct frame_arg): Add initializers.
336 <error>: Now a unique_xmalloc_ptr.
338 2019-08-07 Alan Hayward <alan.hayward@arm.com>
340 * NEWS: Expand the Pointer Authentication entry.
341 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
342 (aarch64_frame_unmask_lr): ... to this.
343 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
344 Call aarch64_frame_unmask_lr.
345 * frame.c (struct frame_info): Add "masked" variable.
346 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
347 (fprint_frame): Check for masked pc.
348 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
350 * python/py-framefilter.c (py_print_frame): Check for masked pc.
351 * stack.c (print_frame): Check for masked pc.
353 2019-08-06 Tom Tromey <tom@tromey.com>
355 * stabsread.c (patch_block_stabs, read_one_struct_field)
356 (read_enum_type): Use obstack_strndup.
357 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
358 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
359 * dwarf2read.c (guess_full_die_structure_name)
360 (anonymous_struct_prefix): Use obstack_strndup.
361 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
362 * c-exp.y (yylex): Use obstack_strndup.
363 * ada-exp.y (write_object_renaming, write_ambiguous_var)
364 (write_var_or_type): Use obstack_strndup.
366 2019-08-06 Tom Tromey <tom@tromey.com>
368 * symfile.c (reread_symbols): Use obstack_strdup.
369 * stabsread.c (read_type): Use obstack_strdup.
370 * gdb_obstack.h (obstack_strdup): New overload.
371 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
372 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
373 (dwarf2_canonicalize_name): Use obstack_strdup.
374 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
375 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
378 2019-08-06 Tom Tromey <tom@tromey.com>
380 * gdb_obstack.h (obstack_strdup): Define.
381 * gdb_obstack.c (obstack_strdup): Don't define.
383 2019-08-06 Tom Tromey <tom@tromey.com>
385 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
387 * typeprint.c (typedef_hash_table::find_global_typedef): Use
389 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
390 * stabsread.c (common_block_start): Use obstack_strdup.
391 * objfiles.c (set_objfile_main_name, objfile): Use
393 * namespace.c (add_using_directive): Use obstack_strdup.
394 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
395 * jit.c (finalize_symtab): Use obstack_strdup.
396 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
397 (guess_partial_die_structure_name, partial_die_info::fixup)
398 (dwarf2_name): Use obstack_strdup.
399 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
401 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
402 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
404 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
406 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
408 * unittests/help-doc-selftests.c: New file.
409 * Makefile.in: Add the new file.
411 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
413 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
414 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
415 the full first line, except when FOR_VALUE_PREFIX. In this case,
416 the trailing '.' is not output, and the first character is uppercased.
417 (print_help_for_command): Update call to print_doc_line.
418 (print_doc_of_command): Likewise.
419 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
420 * cli/cli-option.c (append_indented_doc): Do not append newline.
421 (build_help_option): Append newline after first appended_indented_doc
422 only if a second call is done.
423 (build_help): Append 2 new lines before each option, except the first
425 * compile/compile.c (_initialize_compile): Add new lines after
426 %OPTIONS%, when not at the end of the help.
427 Change help doc or code
428 producing the help doc to respect the invariants.
429 * maint-test-options.c (_initialize_maint_test_options): Likewise.
430 Also removed the new line after 'Options:', as all other commands
431 do not put an empty line between 'Options:' and the first option.
432 * printcmd.c (_initialize_printcmd): Likewise.
433 * stack.c (_initialize_stack): Likewise.
434 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
435 incorrectly telling COMMAND is optional.
436 * ada-lang.c (_initialize_ada_language): Change help doc or code
437 producing the help doc to respect the invariants.
438 * ada-tasks.c (_initialize_ada_tasks): Likewise.
439 * breakpoint.c (_initialize_breakpoint): Likewise.
440 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
441 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
442 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
443 * cli/cli-style.c (cli_style_option::add_setshow_commands,
444 _initialize_cli_style): Likewise.
445 * corelow.c (core_target_info): Likewise.
446 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
447 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
448 * filesystem.c (_initialize_filesystem): Likewise.
449 * frame.c (_initialize_frame): Likewise.
450 * gnu-nat.c (add_task_commands): Likewise.
451 * infcall.c (_initialize_infcall): Likewise.
452 * infcmd.c (_initialize_infcmd): Likewise.
453 * interps.c (_initialize_interpreter): Likewise.
454 * language.c (_initialize_language): Likewise.
455 * linux-fork.c (_initialize_linux_fork): Likewise.
456 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
457 * maint.c (_initialize_maint_cmds): Likewise.
458 * memattr.c (_initialize_mem): Likewise.
459 * printcmd.c (_initialize_printcmd): Likewise.
460 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
462 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
463 * record-btrace.c (_initialize_record_btrace): Likewise.
464 * record-full.c (_initialize_record_full): Likewise.
465 * record.c (_initialize_record): Likewise.
466 * regcache-dump.c (_initialize_regcache_dump): Likewise.
467 * regcache.c (_initialize_regcache): Likewise.
468 * remote.c (add_packet_config_cmd, init_remote_threadtests,
469 _initialize_remote): Likewise.
470 * ser-tcp.c (_initialize_ser_tcp): Likewise.
471 * serial.c (_initialize_serial): Likewise.
472 * skip.c (_initialize_step_skip): Likewise.
473 * source.c (_initialize_source): Likewise.
474 * stack.c (_initialize_stack): Likewise.
475 * symfile.c (_initialize_symfile): Likewise.
476 * symtab.c (_initialize_symtab): Likewise.
477 * target-descriptions.c (_initialize_target_descriptions): Likewise.
478 * top.c (init_main): Likewise.
479 * tracefile-tfile.c (tfile_target_info): Likewise.
480 * tracepoint.c (_initialize_tracepoint): Likewise.
481 * tui/tui-win.c (_initialize_tui_win): Likewise.
482 * utils.c (add_internal_problem_command): Likewise.
483 * valprint.c (value_print_option_defs): Likewise.
485 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
488 * configure.ac: Drop enable-libmcheck support.
489 * configure, config.in: Rebuild.
490 * libmcheck.m4: Remove.
491 * acinclude.m4: Don't include it.
492 * Makefile.in: Don't distribute it.
493 * top.c (print_gdb_configuration): Don't mention it.
495 2019-08-06 Tom Tromey <tom@tromey.com>
497 * utils.c (set_output_style): Sometimes pass stream to
499 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
500 * record-btrace.c (btrace_insn_history): Update.
501 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
503 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
505 <m_uiout>: New field.
507 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
508 Remove "uiout" parameter.
509 (dump_insns): Update.
510 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
511 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
513 2019-08-06 Christian Biesinger <cbiesinger@google.com>
515 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
516 (error_in_psymtab_expansion): Likewise.
517 (lookup_symbol_via_quick_fns): Likewise.
518 (basic_lookup_transparent_type_quick): Likewise.
519 (basic_lookup_transparent_type_1): Likewise.
521 2019-08-06 Tom Tromey <tromey@adacore.com>
523 * source.c (last_source_error): Now bool.
524 (print_source_lines_base): Make "noprint" bool. Only open
525 source file when last_source_visited changes.
527 2019-08-06 Tom Tromey <tromey@adacore.com>
529 * annotate.c (annotate_source_line): Use g_source_cache.
530 * source-cache.c (source_cache::get_plain_source_lines): Change
531 parameters. Populate m_offset_cache.
532 (source_cache::ensure): New method.
533 (source_cache::get_line_charpos): New method.
534 (extract_lines): Move lower. Change parameters.
535 (source_cache::get_source_lines): Move lower.
536 * source-cache.h (class source_cache): Update comment.
537 <get_line_charpos>: New method.
538 <get_source_lines>: Update comment.
539 <clear>: Clear m_offset_cache.
540 <get_plain_source_lines>: Change parameters.
542 <m_offset_cache>: New member.
543 * source.c (forget_cached_source_info_for_objfile): Update.
544 (info_source_command): Use g_source_cache.
545 (find_source_lines, open_source_file_with_line_charpos): Remove.
546 (print_source_lines_base, search_command_helper): Use g_source_cache.
547 * source.h (open_source_file_with_line_charpos): Don't declare.
548 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
549 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
552 2019-08-06 Tom Tromey <tromey@adacore.com>
554 * source-cache.c (source_cache::get_plain_source_lines):
555 Remove "first_line" and "last_line" parameters.
556 (source_cache::get_source_lines): Cache plain text.
557 * source-cache.h (class source_cache)
558 <get_plain_source_lines>: Update.
560 2019-08-06 Tom Tromey <tromey@adacore.com>
562 * source-cache.c (extract_lines): No longer a method.
563 Changed type of parameter. Include final newline.
564 (selftests::extract_lines_test): New function.
565 (_initialize_source_cache): Likewise.
566 * source-cache.h (class source_cache)
567 <extract_lines>: Don't declare.
569 2019-08-06 Tom Tromey <tromey@adacore.com>
571 * breakpoint.c (init_breakpoint_sal): Update.
572 (breakpoint): Update.
573 * breakpoint.h (struct breakpoint) <filter>: Now a
576 2019-08-05 Christian Biesinger <cbiesinger@google.com>
578 * NEWS: Mention dictionary access on blocks.
579 * python/py-block.c (blpy_getitem): New function.
580 (block_object_as_mapping): New struct.
581 (block_object_type): Use new struct for tp_as_mapping field.
583 2019-08-05 Christian Biesinger <cbiesinger@google.com>
585 * objfiles.h (objfile): Add a comment describing partial symbols.
587 2019-08-05 Tom Tromey <tromey@adacore.com>
589 * compile/compile.c (_initialize_compile): Use _(), not N_().
590 * thread.c (_initialize_thread): Use _(), not N_().
591 * stack.c (_initialize_stack): Use _(), not N_().
592 * printcmd.c (_initialize_printcmd): Use _(), not N_().
594 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
596 * dwarf2read.c (struct dw2_symtab_iterator):
597 <want_specific_block>: Remove.
598 <block_index>: Change type to gdb::optional.
599 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
600 change type of BLOCK_INDEX parameter to gdb::optional.
601 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
602 (dw2_lookup_symbol): Don't pass argument for
604 (dw2_expand_symtabs_for_function): Don't pass argument for
605 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
606 (class dw2_debug_names_iterator)
607 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
608 parameter, change BLOCK_INDEX type to gdb::optional.
609 <m_want_specific_block>: Remove.
610 <m_block_index>: Change type to gdb::optional.
611 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
612 gdb::optional. Re-write in function of gdb::optional.
613 (dw2_debug_names_lookup_symbol): Don't pass argument for
615 (dw2_debug_names_expand_symtabs_for_function): Don't pass
616 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
619 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
621 * NEWS: Mention changes to "info sources" command.
623 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
625 * symtab.c (filename_partial_match_opts): New struct type.
626 (struct output_source_filename_data): New members
627 regexp, c_regexp, partial_match.
628 (output_source_filename): Use new members to decide to print file.
629 (info_sources_option_defs): New variable.
630 (make_info_sources_options_def_group, print_info_sources_header,
631 info_sources_command_completer):
633 (info_sources_command): Read new optional arguments.
634 (_initialize_symtab): Update info sources help.
636 2019-08-02 Alexandre Oliva <oliva@adacore.com>
638 * ada-lang.c (exception_support_info_v0): Renamed from...
639 (default_exception_support_info): ... this. Create new
641 (ada_has_this_exception_support): Look up catch_handlers_sym.
642 (ada_exception_support_info_sniffer): Try v0 after default.
644 2019-08-01 Tom Tromey <tromey@adacore.com>
646 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
649 2019-08-01 Christian Biesinger <cbiesinger@google.com>
651 * s12z-tdep.c: Fix include path for s12z-opc.h.
653 2019-08-01 Alan Hayward <alan.hayward@arm.com>
655 * NEWS: Require GNU make 3.82.
657 2019-07-16 Tom Tromey <tom@tromey.com>
659 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
662 2019-07-30 Tom Tromey <tromey@adacore.com>
664 * block.c (contained_in): Remove BLOCK_FUNCTION check.
666 2019-07-30 Kevin Buettner <kevinb@redhat.com>
668 * printcmd.c (print_address_symbolic): Print negative offsets.
669 (build_address_symbolic): Force signed arithmetic when computing
672 2019-07-30 Christian Biesinger <cbiesinger@google.com>
674 PR/24474: Add a function to lookup static variables.
675 * NEWS: Mention this new function.
676 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
677 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
678 * python/python.c (python_GdbMethods): Add new function.
680 2019-07-29 Christian Biesinger <cbiesinger@google.com>
682 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
683 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
684 (objfpy_lookup_static_symbol): New function.
685 (objfile_object_methods): Add new functions.
687 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
689 * NEWS: Mention 'set|show print frame-info'. Mention new
690 'presence' value for 'frame-arguments'. Mention new '-frame-info'
691 backtrace argument. Mention that python frame filtering code
692 is now consistent with what 'backtrace' command prints.
694 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
696 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
698 (print_frame_info_auto, print_frame_info_source_line,
699 print_frame_info_location, print_frame_info_source_and_location,
700 print_frame_info_location_and_address, print_frame_info_short_location):
702 (struct frame_print_options): New member print_frame_info.
703 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
704 * stack.h (get_user_print_what_frame_info): New declaration.
705 (frame_show_address): New declaration.
706 * stack.c (print_frame_arguments_choices): New value 'presence'.
707 (print_frame_info_auto, print_frame_info_source_line,
708 print_frame_info_location, print_frame_info_source_and_location,
709 print_frame_info_location_and_address, print_frame_info_short_location,
710 print_frame_info_choices, print_frame_info_print_what): New definitions.
711 (print_frame_args): Only print dots for args if print frame-arguments
713 (frame_print_option_defs): New element for "frame-info".
714 (get_user_print_what_frame_info): New function.
715 (frame_show_address): Make non static. Move comment to stack.h.
716 (print_frame_info_to_print_what): New function.
717 (print_frame_info): Update comment. Use fp_opts.print_frame_info
718 to decide what to print.
719 (backtrace_command_1): Handle the new print_frame_arguments_presence
721 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
722 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
723 (py_print_frame): In non-mi mode, use LOCATION as default for
724 print_what, similarly to frame information printed directly by
725 backtrace command. Handle frame-info user option in non MI mode.
727 2019-07-27 Kevin Buettner <kevinb@redhat.com>
729 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
730 Add case for debugging 32-bit target on 64-bit host. Revise
733 2019-07-27 Kevin Buettner <kevinb@redhat.com>
735 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
736 instead of find_function_entry_range_from_pc.
738 2019-07-27 Kevin Buettner <kevinb@redhat.com>
740 * stack.c (find_frame_funname): Remove code which preferred
741 minsym over symtab sym in "certain pathological cases".
743 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
744 parameter. Change type of "do_demangle" to bool.
745 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
746 Pass suitable "prefer_sym_over_minsym" flag to
747 build_address_symbolic(). Don't output "+" for negative offsets.
748 * printcmd.c (print_address_symbolic): Update invocation of
749 build_address_symbolic to include a "prefer_sym_over_minsym"
751 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
752 Restrict cases in which use of minimal symbol is preferred to that
753 of a found symbol. Update comments.
755 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
756 for entry pc when entry pc is out of range for that FDE.
758 2019-07-26 Brian Callahan <bcallah@openbsd.org>
761 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
764 2019-07-25 Christian Biesinger <cbiesinger@google.com>
766 * python/py-objfile.c (add_separate_debug_file): Fix comment about
767 this function's Python signature.
770 2019-07-24 Christian Biesinger <cbiesinger@google.com>
772 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
773 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
774 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
775 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
776 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
779 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
781 * h8300-tdep.c (h8300_register_name_common): New.
782 h8300_register_name): Use h8300_register_name_common.
783 (h8300s_register_name): Likewise.
784 (h8300sx_register_name): Likewise.
785 (h8300h_register_nam): New.
786 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
789 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
791 * arm-tdep.c (arm_skip_cmse_entry): New function.
792 (arm_is_sgstubs_section): New function.
793 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
795 2019-07-22 Tom Tromey <tom@tromey.com>
797 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
800 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
802 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
805 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
807 * symtab.c (search_symbols): Adjust msymbol matching type arrays
808 so that GDB doesn't match any msymbols when searching in the
810 (print_symbol_info): Print using typedef_print or type_print based
811 on the type of the symbol. Add updated FIXME comment moved from...
812 (_initialize_symtab): ... move and update FIXME comment to above.
814 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
816 * NEWS: Mention adding -q option to "info types".
817 * symtab.c (struct info_types_options): New struct.
818 (info_types_options_defs): New variable.
819 (make_info_types_options_def_group): New function.
820 (info_types_command): Use gdb::option framework to parse options.
821 (info_types_command_completer): New function.
822 (_initialize_symtab): Extend the help text on "info types" and
823 register command completer.
825 2019-07-21 Christian Biesinger <cbiesinger@google.com>
827 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
828 (lookup_symbol_in_objfile): Change int to block_enum and add a
829 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
831 2019-07-20 Christian Biesinger <cbiesinger@google.com>
833 * MAINTAINERS (Write After Approval): Add self.
835 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
837 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
838 instruction to the dummy code region.
840 2019-07-19 Tom Tromey <tromey@adacore.com>
842 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
843 (ARGSUSED, PARAMS, __func__): Remove rules.
845 2019-07-19 Alan Hayward <alan.hayward@arm.com>
847 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
848 * features/arm/arm-with-iwmmxt.c: Remove.
849 * features/arm/arm-with-iwmmxt.xml: Remove.
850 * features/arm/arm-with-m-fpa-layout.c: Remove.
851 * features/arm/arm-with-m-fpa-layout.xml: Remove.
852 * features/arm/arm-with-m-vfp-d16.c: Remove.
853 * features/arm/arm-with-m-vfp-d16.xml: Remove.
854 * features/arm/arm-with-m.c: Remove.
855 * features/arm/arm-with-m.xml: Remove.
856 * features/arm/arm-with-neon.c: Remove.
857 * features/arm/arm-with-neon.xml: Remove.
858 * features/arm/arm-with-vfpv2.c: Remove.
859 * features/arm/arm-with-vfpv2.xml: Remove.
860 * features/arm/arm-with-vfpv3.c: Remove.
861 * features/arm/arm-with-vfpv3.xml: Remove.
863 2019-07-19 Alan Hayward <alan.hayward@arm.com>
865 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
867 2019-07-19 Alan Hayward <alan.hayward@arm.com>
869 * arch/aarch32.c (aarch32_create_target_description): Create
870 target descriptions using features.
871 * arch/arm.c (arm_create_target_description)
872 (arm_create_mprofile_target_description): Likewise.
873 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
875 2019-07-19 Alan Hayward <alan.hayward@arm.com>
877 * Makefile.in: Add new files.
878 * aarch32-tdep.c: New file.
879 * aarch32-tdep.h: New file.
880 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
881 Call aarch32_read_description.
882 * arch/aarch32.c: New file.
883 * arch/aarch32.h: New file.
884 * arch/arm.c (arm_create_target_description)
885 (arm_create_mprofile_target_description): New function.
886 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
887 (arm_create_target_description)
888 (arm_create_mprofile_target_description): New declaration.
889 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
890 read_description functions.
891 * arm-linux-nat.c (arm_linux_nat_target::read_description):
893 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
894 * arm-tdep.c (tdesc_arm_list): New variable.
895 (arm_register_g_packet_guesses): Call create description functions.
896 (arm_read_description) (arm_read_mprofile_description): New
898 * arm-tdep.h (arm_read_description)
899 (arm_read_mprofile_description): Add declaration.
900 * configure.tgt: Add new files.
902 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
904 * top.c (new_ui_command): Open specified terminal just once.
906 2019-07-18 Tom Tromey <tromey@adacore.com>
908 * symtab.c (main_name): Constify return type.
909 * symfile.c (set_initial_language): Update.
910 * symtab.h (main_name): Constify return type.
912 2019-07-17 Tom Tromey <tom@tromey.com>
914 * tui/tui-winsource.c (tui_update_source_window)
915 (tui_update_source_window_as_is)
916 (tui_update_source_windows_with_line): Remove return.
917 * tui/tui-disasm.c (tui_show_disassem)
918 (tui_show_disassem_and_update_source): Remove return.
919 * tui/tui.c (tui_reset): Remove return.
920 * tui/tui-wingeneral.c
921 (tui_check_and_display_highlight_if_needed): Remove return.
923 2019-07-17 Tom Tromey <tom@tromey.com>
925 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
927 2019-07-17 Tom Tromey <tom@tromey.com>
929 * tui/tui-winsource.h (struct tui_exec_info_window)
930 (struct tui_source_window_base): Move from tui-data.h.
931 * tui/tui-winsource.c: Move many method definitions from
932 elsewhere. Remove "structuring" comments.
933 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
934 (tui_source_window_base::refresh_window): Move to
936 * tui/tui-win.c (tui_source_window_base::refresh_all)
937 (tui_source_window_base::update_tab_width)
938 (tui_source_window_base::set_new_height)
939 (tui_source_window_base::do_make_visible_with_new_height): Move to
941 * tui/tui-source.h: Update.
942 * tui/tui-source.c (tui_source_window_base::reset): Move to
944 * tui/tui-disasm.h: Update.
945 * tui/tui-data.h (struct tui_exec_info_window): Move to
947 (struct tui_source_window_base): Likewise.
948 * tui/tui-data.c (tui_source_window_base::clear_detail)
949 (tui_source_window_base, ~tui_source_window_base): Move to
952 2019-07-17 Tom Tromey <tom@tromey.com>
954 * tui/tui-win.c (tui_resize_all)
955 (tui_source_window_base::update_tab_width)
956 (tui_adjust_win_heights): Update.
957 (tui_win_info::make_invisible_and_set_new_height): Rename from
958 make_invisible_and_set_new_height.
959 * tui/tui-data.h (struct tui_win_info)
960 <make_invisible_and_set_new_height>: New method.
962 2019-07-17 Tom Tromey <tom@tromey.com>
965 * tui/tui-source.h (struct tui_source_window): Move from
967 * tui/tui-layout.c: Update.
968 * tui/tui-disasm.c: Update.
969 * tui/tui-data.h (struct tui_source_window): Move to
972 2019-07-17 Tom Tromey <tom@tromey.com>
974 * tui/tui-disasm.h (struct tui_disasm_window): Move from
976 * tui/tui-data.h (struct tui_disasm_window): Move to
979 2019-07-17 Tom Tromey <tom@tromey.com>
981 * tui/tui-regs.h (struct tui_data_item_window): Move from
983 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
984 * tui/tui-data.h (struct tui_data_item_window): Move to
986 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
988 2019-07-17 Tom Tromey <tom@tromey.com>
991 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
992 (tui_cmd_window::max_height): Move to tui-command.c.
993 * tui/tui-layout.c: Update.
994 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
995 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
997 * tui/tui-command.h (struct tui_cmd_window): Move from
999 * tui/tui-command.c: Remove "structuring" comments.
1000 (tui_cmd_window::clear_detail)
1001 (tui_cmd_window::do_make_visible_with_new_height)
1002 (tui_cmd_window::max_height): Move from elsewhere.
1004 2019-07-17 Tom Tromey <tom@tromey.com>
1006 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
1008 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
1009 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
1011 2019-07-17 Tom Tromey <tom@tromey.com>
1013 * tui/tui.c: Update.
1014 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
1016 * tui/tui-windata.h: Remove file.
1017 * tui/tui-windata.c: Remove file.
1018 * tui/tui-win.c (tui_data_window::set_new_height)
1019 (tui_data_window::do_make_visible_with_new_height): Move to
1021 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
1022 * tui/tui-regs.c: Remove "structuring" comments.
1023 (tui_data_window::first_data_item_displayed)
1024 (tui_data_window::delete_data_content_windows)
1025 (tui_data_window::erase_data_content)
1026 (tui_data_window::display_all_data)
1027 (tui_data_window::refresh_all)
1028 (tui_data_window::do_scroll_vertical)
1029 (tui_data_window::clear_detail, tui_data_window::set_new_height)
1030 (tui_data_window::do_make_visible_with_new_height)
1031 (tui_data_window::refresh_window): Move from elsewhere.
1032 (_initialize_tui_regs): Move to end of file.
1033 * tui/tui-layout.c: Update.
1034 * tui/tui-hooks.c: Update.
1035 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
1036 * tui/tui-data.c (tui_data_window::clear_detail): Move to
1038 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
1040 2019-07-17 Tom Tromey <tom@tromey.com>
1042 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
1045 2019-07-17 Tom Tromey <tom@tromey.com>
1047 * tui/tui-win.c (tui_source_window_base::set_new_height)
1048 (tui_source_window_base::do_make_visible_with_new_height): Use
1049 m_has_locator field directly.
1050 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
1052 (struct tui_source_window_base) <has_locator>: Likewise.
1054 2019-07-17 Tom Tromey <tom@tromey.com>
1056 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
1058 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
1060 * tui/tui-win.c (tui_source_window_base::set_new_height)
1061 (tui_source_window_base::set_new_height)
1062 (make_invisible_and_set_new_height)
1063 (tui_source_window_base::do_make_visible_with_new_height)
1064 (tui_source_window_base::do_make_visible_with_new_height):
1066 * tui/tui-layout.c (show_source_disasm_command, show_data)
1067 (show_source_or_disasm_and_command): Update.
1068 * tui/tui-layout.c (show_layout): Update.
1070 2019-07-17 Tom Tromey <tom@tromey.com>
1072 * tui/tui-layout.c (make_data_window): Remove.
1073 (show_data): Unify creation and re-initialization cases.
1075 2019-07-17 Tom Tromey <tom@tromey.com>
1077 * tui/tui-layout.c (make_source_window, make_disasm_window):
1079 (show_data): Unify creation and re-initialization cases.
1081 2019-07-17 Tom Tromey <tom@tromey.com>
1083 * tui/tui-layout.c (make_command_window): Remove.
1084 (show_source_disasm_command, show_source_or_disasm_and_command):
1085 Unify creation and re-initialization cases.
1087 2019-07-17 Tom Tromey <tom@tromey.com>
1089 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
1090 creation and re-initialization cases.
1092 2019-07-17 Tom Tromey <tom@tromey.com>
1094 * tui/tui-regs.c (tui_get_register): Return void.
1096 2019-07-17 Tom Tromey <tom@tromey.com>
1098 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
1101 2019-07-17 Tom Tromey <tom@tromey.com>
1103 * tui/tui-layout.c (show_source_disasm_command): Simplify window
1106 2019-07-17 Tom Tromey <tom@tromey.com>
1108 * tui/tui.h (tui_set_layout_by_name): Don't declare.
1109 * tui/tui-regs.c (tui_reg_layout): New function.
1110 (tui_show_registers, tui_reg_command): Use it.
1111 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
1112 (tui_layout_command): Rename from tui_set_layout_by_name. Change
1114 (tui_layout_command): Remove.
1116 2019-07-17 Tom Tromey <tom@tromey.com>
1118 * tui/tui-layout.h (tui/tui-layout): Return void.
1119 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
1121 2019-07-17 Tom Tromey <tom@tromey.com>
1123 * tui/tui-layout.c (show_source_disasm_command, show_data):
1125 (reset_locator): Remove.
1126 (show_source_or_disasm_and_command): Update.
1128 2019-07-17 Tom Tromey <tom@tromey.com>
1130 * tui/tui-source.c (tui_source_window_base::reset): Remove
1132 * tui/tui-layout.c (make_command_window, make_source_window)
1133 (make_disasm_window, make_data_window)
1134 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
1135 (reset_locator, show_source_or_disasm_and_command): Update.
1136 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
1138 (struct tui_source_window_base) <reset>: Likewise.
1140 2019-07-17 Tom Tromey <tom@tromey.com>
1142 * tui/tui-layout.c (show_source_disasm_command): Use
1144 (reset_locator): New function.
1145 (init_and_make_win): Remove.
1146 (show_source_or_disasm_and_command): Use reset_locator.
1148 2019-07-17 Tom Tromey <tom@tromey.com>
1150 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
1152 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
1154 * tui/tui-source.c (tui_source_window_base::reset): New method.
1155 * tui/tui-layout.c (make_command_window): Don't call
1157 (make_source_window, make_disasm_window): Don't call
1158 make_source_or_disasm_window.
1159 (make_data_window): Don't call init_and_make_win. Change calling
1161 (show_source_disasm_command, show_data): Simplify.
1162 (make_source_or_disasm_window): Remove.
1163 (show_source_or_disasm_and_command): Simplify.
1164 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
1165 (struct tui_source_window_base) <reset>: Likewise.
1166 <execution_info>: Remove initializer.
1167 * tui/tui-data.c (tui_source_window_base): Initialize
1170 2019-07-17 Tom Tromey <tom@tromey.com>
1172 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
1175 2019-07-17 Tom Tromey <tom@tromey.com>
1177 * tui/tui.c (tui_rl_other_window): Update.
1178 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
1179 superclass method first. Always iterate over regs_content.
1180 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
1182 * tui/tui-win.c (tui_set_focus_command): Update.
1184 2019-07-17 Tom Tromey <tom@tromey.com>
1186 * tui/tui-win.c (tui_set_focus_command): Rename from
1187 tui_set_focus. Call tui_enable.
1188 (tui_set_focus_command): Remove.
1190 2019-07-17 Tom Tromey <tom@tromey.com>
1192 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
1194 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
1196 (tui_data_window::refresh_window): Call refresh_window on data
1197 items. Always call superclass refresh_window.
1198 (tui_win_info::refresh): Remove.
1199 (tui_source_window_base::refresh_window): Update.
1200 (tui_refresh_all): Update.
1201 * tui/tui-layout.c (show_source_disasm_command): Remove call to
1203 (show_source_or_disasm_and_command): Likewise.
1204 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
1205 (struct tui_source_window_base) <refresh>: Likewise.
1207 2019-07-17 Tom Tromey <tom@tromey.com>
1209 * tui/tui-winsource.c (tui_clear_source_content)
1210 (tui_show_source_content): Update.
1211 * tui/tui-source.c (tui_source_window::showing_source_p): Check
1212 whether content is empty.
1213 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
1216 2019-07-17 Tom Tromey <tom@tromey.com>
1218 * tui/tui-winsource.c (tui_erase_source_content): Clear the
1220 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
1221 * tui/tui-source.c (tui_set_source_content_nil): Remove.
1223 2019-07-17 Tom Tromey <tom@tromey.com>
1225 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
1226 (struct tui_data_item_window): Update.
1228 2019-07-17 Tom Tromey <tom@tromey.com>
1230 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
1231 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
1234 2019-07-17 Tom Tromey <tom@tromey.com>
1236 * tui/tui-winsource.h (tui_erase_source_content)
1237 (tui_clear_source_content): Remove "display_prompt" parameter.
1238 * tui/tui-winsource.c (tui_update_source_window_as_is)
1239 (tui_update_source_windows_with_addr): Update.
1240 (tui_clear_source_content): Remove "display_prompt" parameter.
1241 (tui_erase_source_content): Likewise. Simplify.
1242 (tui_show_source_content): Update.
1243 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
1244 * tui/tui-stack.c (tui_show_frame_info): Update.
1245 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
1248 2019-07-17 Tom Tromey <tom@tromey.com>
1250 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1251 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
1253 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
1256 2019-07-17 Tom Tromey <tom@tromey.com>
1258 * tui/tui-winsource.c (tui_clear_source_content)
1259 (tui_show_source_content, tui_show_exec_info_content)
1260 (tui_clear_exec_info_content): Update.
1261 * tui/tui-stack.c (tui_show_locator_content): Update.
1262 (tui_show_frame_info): Update.
1263 * tui/tui-source.h (tui_source_window): Don't declare.
1264 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
1265 from tui_source_is_displayed.
1266 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
1268 (struct tui_source_window_base) <content_in_use>: New field. Now
1270 (struct tui_source_window) <showing_source_p>: New method.
1271 (TUI_SRC_WIN): Change cast.
1272 * tui/tui-data.c (tui_initialize_static_data): Update.
1274 2019-07-17 Tom Tromey <tom@tromey.com>
1276 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
1278 * tui/tui-source.c (tui_source_window::location_matches_p): New
1280 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
1282 * tui/tui-data.h (struct tui_source_window_base)
1283 <location_matches_p>: New method.
1284 (struct tui_source_window, struct tui_disasm_window)
1285 <location_matches_p>: Likewise.
1287 2019-07-17 Tom Tromey <tom@tromey.com>
1289 * tui/tui-win.c (tui_set_win_height_command): Rename from
1291 (tui_set_win_height_command): Remove.
1293 2019-07-17 Tom Tromey <tom@tromey.com>
1295 * tui/tui-source.c (tui_source_window): New constructor. Add
1297 (~tui_source_window): New destructor.
1298 (tui_source_window::style_changed): New method.
1299 * tui/tui-hooks.c (tui_redisplay_source): Remove.
1300 (tui_attach_detach_observers): Update.
1301 * tui/tui-data.h (struct tui_source_window): Make constructor not
1302 inline. Add destructor.
1303 (struct tui_source_window) <style_changed>: New method.
1304 <m_observable>: New member.
1306 2019-07-17 Tom Tromey <tom@tromey.com>
1308 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
1309 * tui/tui-win.c (tui_resize_all): Fix typo.
1311 2019-07-17 Tom Tromey <tom@tromey.com>
1313 * tui/tui-wingeneral.h (tui_refresh_all): Update.
1314 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
1315 (tui_refresh_all): Remove "list" parameter. Use foreach.
1316 * tui/tui-win.c (window_name_completer): Use foreach.
1317 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
1318 (update_tab_width): Likewise.
1319 * tui/tui-layout.c (show_layout): Update.
1320 * tui/tui-data.h (class tui_window_iterator): New.
1321 (struct all_tui_windows): New.
1322 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
1324 2019-07-17 Tom Tromey <tom@tromey.com>
1326 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
1327 parameter. Don't reference globals.
1328 (tui_reg_command): Update.
1330 2019-07-17 Tom Tromey <tom@tromey.com>
1332 * tui/tui-regs.c (tui_show_registers): Simplify.
1334 2019-07-17 Tom Tromey <tom@tromey.com>
1336 * tui/tui-regs.c (tui_show_registers): Update.
1337 (tui_show_register_group): Add win_info parameter.
1339 2019-07-17 Tom Tromey <tom@tromey.com>
1341 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
1342 Rename from tui_display_reg_element_at_line.
1343 (tui_data_window::display_registers_from_line): Update.
1344 * tui/tui-data.h (struct tui_data_window)
1345 <display_reg_element_at_line>: New method.
1347 2019-07-17 Tom Tromey <tom@tromey.com>
1349 * tui/tui-regs.h (tui_display_registers_from)
1350 (tui_display_registers_from_line): Don't declare.
1351 * tui/tui-windata.c (tui_data_window::display_all_data)
1352 (tui_data_window::refresh_all)
1353 (tui_data_window::do_scroll_vertical): Update.
1354 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
1355 from tui_display_registers_from.
1356 (tui_display_reg_element_at_line): Update.
1357 (tui_data_window::display_registers_from_line): Rename from
1358 tui_display_registers_from_line.
1359 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
1360 display_registers_from_line>: New methods.
1362 2019-07-17 Tom Tromey <tom@tromey.com>
1364 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
1365 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
1366 from tui_erase_data_content.
1367 (tui_data_window::display_all_data)
1368 (tui_data_window::refresh_all)
1369 (tui_data_window::do_scroll_vertical): Update.
1370 * tui/tui-regs.c (tui_show_registers): Update.
1371 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
1374 2019-07-17 Tom Tromey <tom@tromey.com>
1376 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
1379 (tui_data_window::delete_data_content_windows): Rename from
1380 tui_delete_data_content_windows.
1381 (tui_data_window::display_all_data)
1382 (tui_data_window::do_scroll_vertical): Update.
1383 * tui/tui-data.h (struct tui_data_window)
1384 <delete_data_content_windows>: New method.
1386 2019-07-17 Tom Tromey <tom@tromey.com>
1388 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
1389 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
1391 2019-07-17 Tom Tromey <tom@tromey.com>
1393 * tui/tui-windata.h (tui_display_all_data): Don't declare.
1394 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
1395 from tui_display_all_data.
1397 (tui_data_window::do_make_visible_with_new_height): Update.
1398 * tui/tui-regs.c (tui_show_registers): Update.
1399 * tui/tui-layout.c (tui_set_layout): Update.
1400 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
1403 2019-07-17 Tom Tromey <tom@tromey.com>
1405 * tui/tui-windata.h (tui_display_data_from): Don't declare.
1406 * tui/tui-windata.c (tui_display_data_from): Remove.
1407 (tui_data_window::refresh_all): Update.
1409 2019-07-17 Tom Tromey <tom@tromey.com>
1411 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
1412 * tui/tui-windata.c (tui_display_data_from_line): Remove.
1413 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
1414 tui_display_registers_from_line.
1415 * tui/tui-regs.h (tui_display_registers_from_line): Update.
1416 * tui/tui-regs.c (tui_display_registers_from_line): Remove
1417 "force_display" parameter.
1419 2019-07-17 Tom Tromey <tom@tromey.com>
1421 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
1423 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
1424 Rename from tui_first_reg_element_no_inline.
1425 (tui_display_reg_element_at_line)
1426 (tui_display_registers_from_line): Update.
1427 * tui/tui-data.h (struct tui_data_window)
1428 <first_reg_element_no_inline>: New method.
1430 2019-07-17 Tom Tromey <tom@tromey.com>
1432 * tui/tui-windata.c (tui_display_data_from)
1433 (tui_data_window::do_scroll_vertical): Update.
1434 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
1435 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
1436 Rename from tui_line_from_reg_element_no.
1437 (tui_display_registers_from_line): Update.
1438 * tui/tui-data.h (struct tui_data_window)
1439 <line_from_reg_element_no>: New method.
1441 2019-07-17 Tom Tromey <tom@tromey.com>
1443 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
1444 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
1445 tui_last_regs_line_no.
1446 (tui_display_reg_element_at_line)
1447 (tui_display_registers_from_line): Update.
1448 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
1451 2019-07-17 Tom Tromey <tom@tromey.com>
1454 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
1455 (tui_update_breakpoint_info): Add "being_deleted" parameter.
1456 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1457 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
1458 (tui_update_breakpoint_info): Likewise.
1459 * tui/tui-hooks.c (tui_event_create_breakpoint)
1460 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
1463 2019-07-17 Tom Tromey <tom@tromey.com>
1465 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
1467 2019-07-17 Tom Tromey <tom@tromey.com>
1469 * tui/tui-winsource.c (tui_update_source_window_as_is)
1470 (tui_update_source_windows_with_addr): Update.
1471 * tui/tui-source.h (tui_set_source_content)
1472 (tui_show_symtab_source): Add "win_info" parameter.
1473 * tui/tui-source.c (tui_set_source_content): Add "win_info"
1475 (tui_show_symtab_source): Likewise.
1477 2019-07-17 Tom Tromey <tom@tromey.com>
1479 * tui/tui-wingeneral.c
1480 (tui_check_and_display_highlight_if_needed): Check can_highlight.
1482 2019-07-17 Tom Tromey <tom@tromey.com>
1484 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
1485 (struct tui_cmd_window) <can_scroll>: New method.
1486 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
1489 2019-07-17 Tom Tromey <tromey@adacore.com>
1491 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
1492 do_field_signed>: Rename. Change type of "value".
1493 * ui-out.c (ui_out::field_signed): Rename from field_int.
1494 Change type of "value".
1495 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
1497 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
1498 do_field_int. Change type of "value".
1499 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
1500 do_field_int. Change type of "value".
1501 * tracepoint.c (trace_status_mi, tfind_1)
1502 (print_one_static_tracepoint_marker): Update.
1503 * thread.c (print_thread_info_1, print_selected_thread_frame):
1505 * stack.c (print_frame, print_frame_info): Update.
1506 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
1508 * source.c (print_source_lines_base): Update.
1509 * skip.c (info_skip_command): Update.
1510 * record-btrace.c (btrace_ui_out_decode_error)
1511 (btrace_call_history_src_line): Update.
1512 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
1514 * progspace.c (print_program_space): Update.
1515 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
1516 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
1517 do_field_int. Change type of "value".
1518 * mi/mi-out.c (mi_ui_out::do_table_begin)
1519 (mi_ui_out::do_table_header): Update.
1520 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
1522 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
1523 (mi_cmd_data_list_changed_registers, output_register)
1524 (mi_cmd_data_read_memory, mi_load_progress)
1525 (mi_cmd_trace_frame_collected): Update.
1526 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
1528 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
1529 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
1530 (mi_cmd_var_list_children, varobj_update_one): Update.
1531 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
1532 (mi_cmd_stack_list_args, list_arg_or_local): Update.
1533 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
1534 * inferior.c (print_inferior): Update.
1535 * gdb_bfd.c (print_one_bfd): Update.
1536 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1538 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
1539 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
1540 do_field_int. Change type of "value".
1541 * cli-out.c (cli_ui_out::do_field_signed): Rename from
1542 do_field_int. Change type of "value".
1543 * breakpoint.c (watchpoint_check, print_breakpoint_location)
1544 (print_one_breakpoint_location, print_it_catch_fork)
1545 (print_one_catch_fork, print_it_catch_vfork)
1546 (print_one_catch_vfork, print_it_catch_solib)
1547 (print_it_catch_exec, print_it_ranged_breakpoint)
1548 (print_mention_watchpoint, print_mention_masked_watchpoint)
1549 (bkpt_print_it, update_static_tracepoint): Update.
1550 * break-catch-throw.c (print_it_exception_catchpoint): Update.
1551 * break-catch-syscall.c (print_it_catch_syscall): Update.
1552 * ada-tasks.c (print_ada_task_info): Update.
1553 * ada-lang.c (print_it_exception, print_mention_exception):
1556 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1558 PR breakpoints/24541
1559 * gdbarch.c: Regenerate.
1560 * gdbarch.h: Regenerate.
1561 * gdbarch.sh: Adjust return type and parameter types for
1562 'stap_adjust_register'.
1563 (i386_stap_adjust_register): Adjust signature and return new
1565 * stap-probe.c (stap_parse_register_operand): Adjust use of
1566 'gdbarch_stap_adjust_register'.
1568 2019-07-17 Tom Tromey <tromey@adacore.com>
1570 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
1572 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
1574 (struct s390_process_info): Add initializers.
1575 (s390_add_process): Use new.
1576 (s390_linux_nat_target::low_forget_process): Use delete.
1577 (s390_linux_nat_target::low_new_fork)
1578 (s390_linux_nat_target::stopped_by_watchpoint)
1579 (s390_linux_nat_target::low_prepare_to_resume)
1580 (s390_linux_nat_target::insert_watchpoint)
1581 (s390_linux_nat_target::insert_hw_breakpoint)
1582 (s390_linux_nat_target::remove_watchpoint)
1583 (s390_linux_nat_target::remove_hw_breakpoint): Update.
1585 2019-07-16 John Baldwin <jhb@FreeBSD.org>
1587 * aarch64-fbsd-nat.c: Include regcache.h.
1588 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
1590 (aarch64_fbsd_nat_target::fetch_registers)
1591 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
1593 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
1595 2019-07-16 John Baldwin <jhb@FreeBSD.org>
1597 * fbsd-nat.c: Include gdbarch.h.
1599 2019-07-15 Tom Tromey <tromey@adacore.com>
1601 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
1603 2019-07-15 Tom Tromey <tromey@adacore.com>
1605 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
1606 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
1607 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
1608 * cli-out.c (cli_ui_out::do_field_int): New method.
1609 * ui-out.c (ui_out::field_unsigned): New method.
1610 * symfile.c (generic_load): Use field_unsigned.
1611 (print_transfer_performance): Likewise.
1612 * record-btrace.c (ui_out_field_uint): Remove.
1613 (btrace_call_history_insn_range, btrace_call_history): Use
1615 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
1617 * ui-out.h (class ui_out) <field_unsigned>: New method.
1618 <do_field_unsigned>: Likewise.
1620 2019-07-15 Tom Tromey <tromey@adacore.com>
1622 * mi/mi-main.c (list_available_thread_groups): Use field_string.
1623 * mi/mi-interp.c (mi_memory_changed): Use field_string.
1624 * target.c (flash_erase_command): Use field_string.
1625 * infrun.c (print_signal_received_reason): Use field_string.
1626 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
1627 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
1629 * ada-tasks.c (print_ada_task_info): Use field_string.
1631 2019-07-15 Tom Tromey <tromey@adacore.com>
1633 * target.c (flash_erase_command): Use field_core_addr.
1634 * symfile.c (generic_load): Use field_core_addr.
1635 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1636 Use field_core_addr.
1637 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
1640 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1642 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
1643 value if its desired type is smaller than a CORE_ADDR and signed.
1645 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1647 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
1648 of changes to field names, and use new is_reference field to
1649 decide if a property is a reference or not.
1650 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
1652 (struct dwarf2_property_baton): Update header comment, rename
1653 'referenced_type' to 'property_type' and update comments.
1654 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
1655 default property type, store in property baton, update to take
1656 accound of renamed field.
1657 (read_func_scope): Update call to attr_to_dynamic_prop.
1658 (read_array_type): Likewise.
1659 (dwarf2_per_cu_addr_sized_int_type): New function.
1660 (read_subrange_index_type): Move type finding code to
1661 dwarf2_per_cu_addr_sized_int_type.
1662 (read_subrange_type): Update calls to attr_to_dynamic_prop.
1663 (dwarf2_per_cu_addr_type): New function.
1664 (set_die_type): Update calls to attr_to_dynamic_prop.
1666 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1668 * dwarf2read.c (read_subrange_index_type): New function.
1669 (read_subrange_type): Move code into new function and call it.
1670 * gdbtypes.c (create_range_type): Add some asserts.
1672 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1674 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
1675 update return statements.
1676 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
1677 declaration, and update comment to match.
1678 * gdbtypes.c (resolve_dynamic_array): Update call to
1679 dwarf2_evaluate_property to match new return type.
1681 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1683 * valarith.c (value_subscripted_rvalue): Change lowerbound
1684 parameter type from int to LONGEST.
1685 * value.h (value_subscripted_rvalue): Likewise in declaration.
1687 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
1689 * cli/cli-utils.c (info_print_command_completer): New function.
1690 * cli/cli-utils.h: Add 'completer.h' include, and forward
1691 declaration for 'struct cmd_list_element'.
1692 (info_print_command_completer): Declare.
1693 * stack.c (_initialize_stack): Add completer for 'info locals' and
1695 * symtab.c (_initialize_symtab): Add completer for 'info
1696 variables' and 'info functions'.
1697 * NEWS: Mention completion for additional info commands.
1699 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
1701 * cli/cli-utils.c (extract_info_print_args): Delete.
1702 (extract_arg_maybe_quoted): Delete.
1703 (info_print_options_defs): New variable.
1704 (make_info_print_options_def_group): New function.
1705 (extract_info_print_options): Define new function.
1706 * cli/cli-utils.h (extract_info_print_args): Delete.
1707 (struct info_print_options): New structure.
1708 (extract_info_print_options): Declare new function.
1709 * stack.c (info_locals_command): Update to use new
1710 extract_info_print_options, also add a header comment.
1711 (info_args_command): Likewise.
1712 * symtab.c (info_variables_command): Likewise.
1713 (info_functions_command): Likewise.
1715 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
1717 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
1718 to extract string arguments.
1719 * common/common-utils.c (extract_string_maybe_quoted): New function.
1720 * common/common-utils.h (extract_string_maybe_quoted): Declare.
1722 2019-07-11 Tom Tromey <tromey@adacore.com>
1724 * main.c (get_init_files): Use GDBINIT, not gdbinit.
1725 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
1726 * top.h (gdbinit): Don't declare.
1727 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
1729 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
1730 * top.c (gdb_init): Don't call init_cli_cmds.
1732 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
1734 2019-07-11 Tom Tromey <tromey@adacore.com>
1736 * python/py-inferior.c (add_thread_object): Don't use thread_obj
1737 after it has been moved.
1739 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1741 * valops.c (value_must_coerce_to_target): Change return type to
1743 * value.h (value_must_coerce_to_target): Likewise.
1745 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
1747 * breakpoint.c (is_hardware_watchpoint): Remove
1748 forward-declaration.
1749 (is_masked_watchpoint): Change return type to bool.
1750 (is_tracepoint): Likewise.
1751 (is_breakpoint): Likewise.
1752 (is_hardware_watchpoint): Likewise.
1753 (is_watchpoint): Likewise.
1754 (is_no_memory_software_watchpoint): Likewise.
1755 (is_catchpoint): Likewise.
1756 (breakpoint_1): Make FILTER parameter's return type bool.
1757 is_masked_watchpoint): Change return type to bool.
1758 (save_breakpoints): Make FILTER parameter's return type bool.
1759 * breakpoint.h (is_breakpoint): Change return type to bool.
1760 (is_watchpoint): Likewise.
1761 (is_catchpoint): Likewise.
1762 (is_tracepoint): Likewise.
1764 2019-07-10 Tom Tromey <tom@tromey.com>
1766 * defs.h: Don't include gdbarch.h.
1767 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
1768 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
1769 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
1770 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
1771 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
1772 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
1773 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
1774 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
1775 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
1776 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
1777 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
1778 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
1779 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
1780 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
1781 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
1782 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
1783 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
1784 record-btrace.c, record.h, regcache-dump.c, regcache.h,
1785 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
1786 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
1787 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
1788 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
1789 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
1790 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
1791 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
1792 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
1793 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
1795 2019-07-10 Tom Tromey <tromey@adacore.com>
1797 * ada-lang.h (is_ada_exception_catchpoint): Declare.
1798 * breakpoint.c (init_ada_exception_breakpoint): Register as
1800 (print_one_breakpoint_location, print_one_breakpoint): Use
1801 is_ada_exception_catchpoint.
1802 * ada-lang.c (class ada_catchpoint_location): Pass
1803 bp_loc_software_breakpoint to bp_location constructor.
1804 (is_ada_exception_catchpoint): New function.
1806 2019-07-10 Tom Tromey <tromey@adacore.com>
1808 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
1810 (struct arm_exidx_entry): New method operator<.
1811 (struct arm_exidx_data) <section_maps>: Change type.
1812 (arm_exidx_data_free): Remove.
1813 (arm_exidx_data_key): Change type. Move lower.
1814 (arm_exidx_new_objfile): Update.
1815 (arm_compare_exidx_entries): Remove.
1816 (arm_find_exidx_entry, _initialize_arm_tdep)
1818 2019-07-10 Tom Tromey <tromey@adacore.com>
1820 * solib-spu.c (ocl_program_data_key): Change type.
1821 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
1824 2019-07-10 Tom Tromey <tromey@adacore.com>
1826 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
1827 (struct solib_aix_inferior_data) <library_list>: Change type.
1828 (solib_aix_inferior_data_handle): Change type.
1829 (get_solib_aix_inferior_data): Update.
1830 (solib_aix_free_library_list): Remove.
1831 (library_list_start_library): Update.
1832 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
1834 (solib_aix_get_library_list)
1835 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
1836 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
1838 2019-07-10 Tom Tromey <tromey@adacore.com>
1840 * solib-dsbt.c (struct dsbt_info): Add initializers.
1841 (solib_dsbt_pspace_data): Change type.
1842 (dsbt_pspace_data_cleanup): Remove.
1843 (get_dsbt_info, _initialize_dsbt_solib): Update.
1845 2019-07-10 Tom Tromey <tromey@adacore.com>
1847 * spu-tdep.c (spu_overlay_data): Change type.
1848 (spu_get_overlay_table, spu_overlay_new_objfile)
1849 (_initialize_spu_tdep): Update.
1851 2019-07-10 Tom Tromey <tromey@adacore.com>
1853 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
1855 (dbx_objfile_data_key): Change type and declare later.
1856 (DBX_SYMFILE_INFO): Rewrite.
1857 * dbxread.c (dbx_objfile_data_key): Change type.
1858 (dbx_symfile_init): Update.
1859 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
1860 (coffstab_build_psymtabs, elfstab_build_psymtabs)
1861 (stabsect_build_psymtabs, _initialize_dbxread): Update.
1863 2019-07-10 Tom Tromey <tromey@adacore.com>
1865 * jit.c (jit_program_space_key): Change type. Move lower.
1866 (get_jit_program_space_data): Update.
1867 (jit_program_space_data_cleanup): Remove.
1868 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
1870 (struct jit_program_space_data): Add initializers.
1872 2019-07-10 Tom Tromey <tromey@adacore.com>
1874 * solib-darwin.c (struct darwin_info): Add initializers.
1875 (solib_darwin_pspace_data): Change type.
1876 (darwin_pspace_data_cleanup): Remove.
1877 (get_darwin_info, _initialize_darwin_solib): Update.
1879 2019-07-10 Tom Tromey <tromey@adacore.com>
1881 * remote-sim.c (struct sim_inferior_data): Add initializers,
1882 constructor, and destructor.
1883 (sim_inferior_data_key): Change type. Move lower.
1884 (check_for_duplicate_sim_descriptor): Update.
1885 (get_sim_inferior_data): Use new. Update.
1886 (~sim_inferior_data_cleanup): Rename from
1887 sim_inferior_data_cleanup. Simplify.
1888 (gdbsim_close_inferior, simulator_command)
1889 (sim_command_completer, _initialize_remote_sim): Update.
1890 (next_pid, INITIAL_PID): Move earlier.
1892 2019-07-10 Tom Tromey <tromey@adacore.com>
1894 * python/python-internal.h (create_thread_object): Return
1896 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
1897 * python/py-inferior.c (struct threadlist_entry): Add
1899 <thread_obj>: Now a gdbpy_ref.
1900 (thread_to_thread_object): Update.
1901 (add_thread_object): Use new.
1902 (delete_thread_object): Use delete.
1903 (infpy_threads): Update.
1904 (py_free_inferior): Update. Construct "inf_obj" after acquiring
1907 2019-07-10 Tom Tromey <tromey@adacore.com>
1909 * valops.c (value_cast): Specialize error message for Ada.
1911 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1913 * breakpoint.c (breakpoint_1): Update doc and parameter names.
1915 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1917 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
1918 bpstat_should_step): Return bool, adjust comments.
1919 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
1920 bpstat_should_step): Likewise.
1922 2019-07-10 Alan Hayward <alan.hayward@arm.com>
1924 * features/Makefile: Use feature target descriptions for Arm.
1925 * features/arm/arm-core.c: Generate new file.
1926 * features/arm/arm-fpa.c: Likewise.
1927 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
1928 * features/arm/arm-m-profile.c: Likewise.
1929 * features/arm/arm-vfpv2.c: Likewise.
1930 * features/arm/arm-vfpv3.c: Likewise.
1931 * features/arm/xscale-iwmmxt.c: Likewise.
1932 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
1934 2019-07-10 Alan Hayward <alan.hayward@arm.com>
1936 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
1939 2019-07-10 Alan Hayward <alan.hayward@arm.com>
1941 * features/aarch64-pauth.c: Regenerate.
1943 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
1945 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
1947 (bpstat_what): Use false instead of 0.
1949 2019-07-09 Pedro Alves <palves@redhat.com>
1951 * break-catch-throw.c (is_exception_catchpoint): New.
1952 * breakpoint.c (print_one_breakpoint_location): New parameter
1953 'raw_loc'. Handle it. Use
1954 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
1955 looking at the breakpoint's type.
1956 (print_one_breakpoint): If handling "maint info breakpoints", also
1957 print locations of exception catchpoints.
1958 * breakpoint.h (is_exception_catchpoint): Declare.
1960 2019-07-09 Pedro Alves <palves@redhat.com>
1962 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
1964 (allocate_location_exception_catchpoint): New.
1965 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
1966 (initialize_throw_catchpoint_ops): Install
1967 allocate_location_exception_catchpoint as allocate_location
1969 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
1970 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
1972 (breakpoint_address_is_meaningful): Delete.
1973 (bl_address_is_meaningful): New.
1974 (breakpoint_locations_match): Adjust comment.
1975 (bp_location_from_bp_type): New, factored out of...
1976 (bp_location::bp_location(breakpoint *)): ... this.
1977 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
1979 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
1980 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
1981 breakpoint_address_is_meaningful.
1982 (bp_locations_compare): Adjust comment.
1983 (update_global_location_list): Use bl_address_is_meaningful
1984 instead of breakpoint_address_is_meaningful.
1985 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
1987 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
1988 * python/py-breakpoint.c (bppy_get_location): No longer check
1989 whether location is null.
1991 2019-07-09 Pedro Alves <palves@redhat.com>
1994 * breakpoint.c (print_one_breakpoint_location): Remove
1995 single-location assert.
1997 2019-07-09 Tom Tromey <tom@tromey.com>
1999 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
2000 * configure: Rebuild.
2001 * configure.ac: Change common to gdbsupport.
2002 * gdbsupport: Rename from common.
2003 * acinclude.m4: Change common to gdbsupport.
2004 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
2005 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
2007 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
2008 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
2009 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
2010 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
2011 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
2012 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
2013 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
2014 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
2015 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
2016 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
2017 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
2018 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
2019 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
2020 coff-pe-read.c, command.h, compile/compile-c-support.c,
2021 compile/compile-c.h, compile/compile-cplus-symbols.c,
2022 compile/compile-cplus-types.c, compile/compile-cplus.h,
2023 compile/compile-loc2c.c, compile/compile.c, completer.c,
2024 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
2025 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
2026 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
2027 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
2028 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
2029 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
2030 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
2031 features/aarch64-core.c, features/aarch64-fpu.c,
2032 features/aarch64-pauth.c, features/aarch64-sve.c,
2033 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
2034 features/i386/32bit-core.c, features/i386/32bit-linux.c,
2035 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
2036 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
2037 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
2038 features/i386/64bit-core.c, features/i386/64bit-linux.c,
2039 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
2040 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
2041 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
2042 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
2043 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
2044 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
2045 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
2046 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
2047 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
2048 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
2049 go32-nat.c, guile/guile.c, guile/scm-ports.c,
2050 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
2051 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
2052 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
2053 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
2054 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
2055 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
2056 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
2057 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
2058 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
2059 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
2060 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
2061 minsyms.c, mips-linux-tdep.c, namespace.h,
2062 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
2063 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
2064 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
2065 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
2066 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
2067 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
2068 nat/linux-waitpid.c, nat/mips-linux-watch.c,
2069 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
2070 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
2071 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
2072 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
2073 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
2074 procfs.c, producer.c, progspace.h, psymtab.h,
2075 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
2076 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
2077 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
2078 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
2079 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
2080 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
2081 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
2082 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
2083 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
2084 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
2085 target-memory.c, target.c, target.h, target/waitstatus.c,
2086 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
2087 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
2088 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
2089 unittests/array-view-selftests.c,
2090 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
2091 unittests/common-utils-selftests.c,
2092 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
2093 unittests/format_pieces-selftests.c,
2094 unittests/function-view-selftests.c,
2095 unittests/lookup_name_info-selftests.c,
2096 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
2097 unittests/mkdir-recursive-selftests.c,
2098 unittests/observable-selftests.c,
2099 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
2100 unittests/parse-connection-spec-selftests.c,
2101 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
2102 unittests/scoped_fd-selftests.c,
2103 unittests/scoped_mmap-selftests.c,
2104 unittests/scoped_restore-selftests.c,
2105 unittests/string_view-selftests.c, unittests/style-selftests.c,
2106 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
2107 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
2108 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
2109 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
2110 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
2111 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
2113 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2115 * linespec.c (decode_digits_list_mode): Set explicit_line to a
2117 (decode_digits_ordinary): Set explicit_line field in sal.
2118 * symtab.c (skip_prologue_sal): Don't skip prologue for a
2119 symtab_and_line that was set on an explicit line number in
2120 assembler code. Do always update the recorded symtab and line if
2121 we do skip the prologue.
2123 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2125 * breakpoint.c (set_breakpoint_location_function): Remove
2126 explicit_loc parameter.
2127 (momentary_breakpoint_from_master): Update call to
2128 set_breakpoint_location_function.
2129 (add_location_to_breakpoint): Likewise.
2131 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2133 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
2134 required features based on default bfd type when no specific bfd
2137 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2139 * NEWS: Mention that GDB printf and eval commands can now print
2140 C-style and Ada-style convenience var strings without
2141 calling the inferior.
2142 * printcmd.c (printf_c_string): Locally print GDB internal var
2143 instead of transiting via the inferior.
2144 (printf_wide_c_string): Likewise.
2146 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2148 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
2150 2019-07-04 Tom Tromey <tom@tromey.com>
2153 * tui/tui-winsource.c (tui_clear_source_content): Update.
2154 (tui_source_window_base::set_is_exec_point_at): Fix comment.
2155 (tui_update_breakpoint_info): Update.
2156 (tui_set_exec_info_content): Update.
2157 * tui/tui-source.c (tui_set_source_content_nil): Update.
2158 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
2160 * tui/tui-data.h (enum tui_bp_flag): New.
2161 (tui_bp_flags): New enum flags type.
2162 (struct tui_source_element) <break_mode>: Change type. Rename
2164 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
2165 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
2167 * tui/tui-winsource.h: Fix comment.
2169 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2171 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
2172 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
2173 (store_fpregs_to_thread)
2174 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
2175 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
2176 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
2177 (IWMMXT_REGS_SIZE): Add define.
2178 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
2179 (fetch_vfp_regs, store_vfp_regs)
2180 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
2181 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
2183 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2185 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
2187 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
2188 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
2189 (ARM_INT_REGISTER_SIZE): ...to this.
2190 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
2191 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
2192 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
2193 (arm_linux_collect_gregset, supply_nwfpe_register)
2194 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
2196 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
2197 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
2198 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
2199 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
2200 (arm_return_in_memory, arm_store_return_value)
2201 (arm_get_longjmp_target, arm_register_g_packet_guesses)
2202 (arm_record_ld_st_multiple): Likewise.
2203 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
2204 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
2206 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2208 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
2209 AARCH64_DISPLACED_MODIFIED_INSNS.
2210 * aarch64-tdep.c (struct aarch64_displaced_step_data)
2211 (aarch64_displaced_step_copy_insn): Likewise.
2212 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
2213 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
2214 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
2215 ARM_DISPLACED_MODIFIED_INSNS.
2216 * arm-tdep.c (arm_gdbarch_init): Likewise.
2217 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
2218 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
2219 (struct arm_displaced_step_closure): Use
2220 ARM_DISPLACED_MODIFIED_INSNS.
2222 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2224 * features/Makefile: Remove unused xml files.
2225 * features/aarch64.xml: Remove.
2226 * features/i386/amd64-avx-avx512-linux.xml: Remove.
2227 * features/i386/amd64-avx-avx512.xml: Remove.
2228 * features/i386/amd64-avx-linux.xml: Remove.
2229 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
2230 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
2231 * features/i386/amd64-avx-mpx-linux.xml: Remove.
2232 * features/i386/amd64-avx-mpx.xml: Remove.
2233 * features/i386/amd64-avx.xml: Remove.
2234 * features/i386/amd64-linux.xml: Remove.
2235 * features/i386/amd64-mpx-linux.xml: Remove.
2236 * features/i386/amd64-mpx.xml: Remove.
2237 * features/i386/amd64.xml: Remove.
2238 * features/i386/i386-avx-avx512-linux.xml: Remove.
2239 * features/i386/i386-avx-avx512.xml: Remove.
2240 * features/i386/i386-avx-linux.xml: Remove.
2241 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
2242 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
2243 * features/i386/i386-avx-mpx-linux.xml: Remove.
2244 * features/i386/i386-avx-mpx.xml: Remove.
2245 * features/i386/i386-avx.xml: Remove.
2246 * features/i386/i386-linux.xml: Remove.
2247 * features/i386/i386-mmx-linux.xml: Remove.
2248 * features/i386/i386-mmx.xml: Remove.
2249 * features/i386/i386-mpx-linux.xml: Remove.
2250 * features/i386/i386-mpx.xml: Remove.
2251 * features/i386/i386.xml: Remove.
2252 * features/i386/x32-avx-avx512-linux.xml: Remove.
2253 * features/i386/x32-avx-linux.xml: Remove.
2254 * features/i386/x32-linux.xml: Remove.
2256 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2258 * regformats/aarch64.dat: Remove.
2259 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
2260 * regformats/i386/amd64-avx-linux.dat: Remove.
2261 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
2262 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
2263 * regformats/i386/amd64-linux.dat: Remove.
2264 * regformats/i386/amd64-mpx-linux.dat: Remove.
2265 * regformats/i386/amd64.dat: Remove.
2266 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
2267 * regformats/i386/i386-avx-linux.dat: Remove.
2268 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
2269 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
2270 * regformats/i386/i386-linux.dat: Remove.
2271 * regformats/i386/i386-mmx-linux.dat: Remove.
2272 * regformats/i386/i386-mpx-linux.dat: Remove.
2273 * regformats/i386/i386.dat: Remove.
2274 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
2275 * regformats/i386/x32-avx-linux.dat: Remove.
2276 * regformats/i386/x32-linux.dat: Remove.
2278 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2280 * aarch64-tdep.c: Remove xml self tests.
2281 * amd64-linux-tdep.c: Likewise.
2282 * amd64-tdep.c: Likewise.
2283 * i386-linux-tdep.c: Likewise.
2284 * i386-tdep.c: Likewise.
2286 2019-07-03 Pedro Alves <palves@redhat.com>
2289 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
2290 (pipe_cmd_option_defs): New.
2291 (make_pipe_cmd_options_def_group): New.
2292 (pipe_command): Use gdb::option::process_options.
2293 (pipe_command_completer): New function.
2294 (_initialize_cli_cmds): Install completer for "pipe" command.
2296 2019-07-03 Pedro Alves <palves@redhat.com>
2298 * cli/cli-option.c (union option_value) <string>: New field.
2299 (struct option_def_and_value): Add ctor, move ctor, dtor and
2300 use DISABLE_COPY_AND_ASSIGN.
2301 (option_def_and_value::clear_value): New.
2302 (parse_option, save_option_value_in_ctx, get_val_type_str)
2303 (add_setshow_cmds_for_options): Handle var_string.
2304 * cli-option.h (union option_def::var_address) <string>: New
2306 (struct string_option_def): New.
2307 * maint-test-options.c (struct test_options_opts): Add default
2308 ctor and use DISABLE_COPY_AND_ASSIGN.
2309 <string_opt>: New field.
2310 (test_options_opts::~test_options_opts): New.
2311 (test_options_opts::dump): Also dump "-string".
2312 (test_options_option_defs): Install "string.
2314 2019-07-03 Pedro Alves <palves@redhat.com>
2316 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
2317 option_value with a null enumeration.
2318 (complete_options): Save the option values in the context.
2319 (save_option_value_in_ctx): New, factored out from ...
2320 (process_options): ... here.
2321 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
2323 * maint-test-options.c (test_options_opts::dump): New, factored
2325 (maintenance_test_options_command_mode): ... here.
2326 (maintenance_test_options_command_completion_result): Delete.
2327 (maintenance_test_options_command_completion_text): Update
2329 (maintenance_show_test_options_completion_result): Change
2330 prototype. Just print
2331 maintenance_test_options_command_completion_text.
2332 (save_completion_result): New.
2333 (maintenance_test_options_completer_mode): Pass options context to
2334 complete_options, and then save a dump.
2335 (_initialize_maint_test_options): Use add_cmd to install "maint
2336 show test-options-completion-result".
2338 2019-07-03 Pedro Alves <palves@redhat.com>
2340 * NEWS (New commands): Mention "with" and "maint with".
2341 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
2342 (with_command, with_command_completer): New.
2343 (pipe_command): Adjust to new repeat_previous
2345 (_initialize_cli_cmds): Install the "with" command and its "w"
2347 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
2349 * cli/cli-setshow.c (parse_cli_var_uinteger)
2350 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
2351 argument strings for all var_types.
2352 (get_setshow_command_value_string): New, factored out from ...
2353 (do_show_command): ... this.
2354 * cli/cli-setshow.h: Include <string>.
2355 (get_setshow_command_value_string): Declare.
2356 * command.h (repeat_previous): Now returns const char *. Adjust
2358 * maint.c: Include "cli/cli-cmds.h".
2359 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
2360 (_initialize_maint_cmds): Register the "maintenance with" command.
2361 * top.c (repeat_previous): Move bits from pipe_command here:
2362 Return the saved command line, if any; error out if there's no
2363 command to relaunch.
2365 2019-07-03 Pedro Alves <palves@redhat.com>
2367 * NEWS (New commands): Mention "maint set/show test-settings"
2368 instead of "maint test-settings".
2369 * maint-test-settings.c (maintenance_test_settings_list): Delete.
2370 (maintenance_test_settings_set_list): Rename to ...
2371 (maintenance_set_test_settings_list): ... this.
2372 (maintenance_test_settings_show_list): Rename to ...
2373 (maintenance_show_test_settings_list): ... this.
2374 (maintenance_test_settings_cmd): Delete.
2375 (maintenance_test_settings_set_cmd): ...
2376 (maintenance_set_test_settings_cmd): ... this.
2377 (maintenance_test_settings_show_cmd): ...
2378 (maintenance_show_test_settings_cmd): ... this.
2379 (maintenance_test_settings_show_value_cmd):
2380 (maintenance_show_test_settings_value_cmd): ... this.
2381 (_initialize_maint_test_settings): No longer install the "maint
2382 test-settings" prefix command. Rename "maint test-settings set"
2383 to "maint set test-settings", and "maint test-settings show" to
2384 "maint show test-settings". Adjust all subcommands.
2386 2019-07-03 Pedro Alves <palves@redhat.com>
2388 * maint-test-settings.c: Fix file's intro comment. Replace all
2389 references to "test-options" with references to "test-settings",
2392 2019-07-03 Pedro Alves <palves@redhat.com>
2394 * maint-test-settings.c (maintenance_test_settings_xxx)
2395 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
2397 (maintenance_test_settings_enums): Use them.
2398 (maintenance_test_settings_enum): Default to
2399 maintenance_test_settings_xxx.
2400 (_initialize_maint_test_settings): Initialize
2401 MAINTENANCE_TEST_SETTINGS_FILENAME.
2403 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2405 * breakpoint.h (remove_breakpoints_inf): Change return type to
2406 void, move function documentation here.
2407 * breakpoint.c (remove_breakpoints_inf): Change return type to
2408 void, move function documentation to header.
2410 2019-07-02 Pedro Alves <palves@redhat.com>
2412 * NEWS (Completion improvements): Mention "info threads".
2413 * thread.c (struct info_threads_opts, info_threads_option_defs)
2414 (make_info_threads_options_def_group): New.
2415 (info_threads_command): Use gdb::option::process_options.
2416 (info_threads_command_completer): New.
2417 (_initialize_thread): Use gdb::option::build_help to build the
2418 help text for "info threads".
2420 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2422 * defs.h (generic_load): Move from here...
2423 * symfile.h (generic_load): ... to here. Rename name parameter
2425 * symfile.c (generic_load): Add comment.
2427 2019-07-01 Tom Tromey <tromey@adacore.com>
2430 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
2431 declaration of without_params. Fix formatting.
2433 2019-07-01 Tom Tromey <tromey@adacore.com>
2435 * ada-exp.y (find_primitive_type): Update.
2436 * ada-lang.h (ada_lookup_symbol): Update.
2437 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
2439 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
2441 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
2443 PR breakpoints/24541
2444 * gdbarch.c: Regenerate.
2445 * gdbarch.h: Regenerate.
2446 * gdbarch.sh: Add 'stap_adjust_register'.
2447 * i386-tdep.c: Include '<unordered_set>'.
2448 (i386_stap_adjust_register): New function.
2449 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
2450 * stap-probe.c (stap_parse_register_operand): Call
2451 'gdbarch_stap_adjust_register'.
2453 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
2456 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
2457 * python/python.c (do_start_initialization): Use 'xmalloc'
2458 instead of 'PyMem_Malloc'.
2460 2019-06-28 Tom Tromey <tromey@adacore.com>
2462 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
2465 2019-06-27 Tom Tromey <tromey@adacore.com>
2467 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
2469 (arm_find_mapping_symbol, arm_record_special_symbol)
2470 (_initialize_arm_tdep): Update.
2471 (arm_objfile_data_free): Remove.
2473 2019-06-27 Tom Tromey <tromey@adacore.com>
2475 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
2476 to cp_print_static_field.
2478 2019-06-26 Tom Tromey <tromey@adacore.com>
2480 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
2481 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
2484 2019-06-26 Alan Hayward <alan.hayward@arm.com>
2486 * features/aarch64-core.c (create_feature_aarch64_core):
2488 * features/aarch64-core.xml: Add cpsr flags.
2490 2019-06-26 Alan Hayward <alan.hayward@arm.com>
2492 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
2493 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
2495 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
2497 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
2499 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
2501 (arm_record_special_symbol): Don't insert new symbol in sorted
2502 position, push it at the end.
2504 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
2506 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
2507 (arm_mapping_symbol_s): Remove.
2508 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
2509 (arm_mapping_symbol_vec): New typedef.
2510 (struct arm_per_objfile): Add constructor.
2511 <section_maps>: Change type to
2512 std::unique_ptr<arm_mapping_symbol_vec[]>.
2513 (arm_compare_mapping_symbols): Remove.
2514 (arm_find_mapping_symbol): Adjust to section_maps type change.
2515 (arm_objfile_data_free): Call delete on arm_per_objfile.
2516 (arm_record_special_symbol): Adjust to section_maps type change.
2517 Allocate arm_per_objfile with new.
2519 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2521 * cli/cli-cmds.c (alias_command): Compare the alias prefix
2522 with the command prefix.
2524 2019-06-25 Tom Tromey <tom@tromey.com>
2526 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
2527 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
2529 2019-06-25 Tom Tromey <tom@tromey.com>
2531 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
2533 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
2536 2019-06-25 Tom Tromey <tom@tromey.com>
2538 * tui/tui-winsource.c
2539 (tui_source_window_base::set_is_exec_point_at): Add check against
2542 2019-06-25 Tom Tromey <tom@tromey.com>
2544 * tui/tui-source.c (tui_set_source_content): Don't check before
2546 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
2548 2019-06-25 Tom Tromey <tom@tromey.com>
2550 * tui/tui-winsource.h (tui_update_source_window_as_is)
2551 (tui_alloc_source_buffer, tui_line_is_displayed)
2552 (tui_addr_is_displayed): Change type of win_info.
2553 * tui/tui-winsource.c (tui_update_source_window_as_is)
2554 (tui_clear_source_content, tui_show_source_line)
2555 (tui_show_source_content, tui_source_window_base::refill)
2556 (tui_source_window_base::set_is_exec_point_at)
2557 (tui_source_window_base::set_is_exec_point_at)
2558 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
2559 (tui_alloc_source_buffer, tui_line_is_displayed)
2560 (tui_addr_is_displayed): Change type of win_info. Update.
2561 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2562 (tui_source_window_base::do_make_visible_with_new_height):
2564 * tui/tui-source.c (tui_set_source_content)
2565 (tui_set_source_content_nil)
2566 (tui_source_window::do_scroll_vertical): Update.
2567 * tui/tui-layout.c (show_layout): Update.
2568 * tui/tui-disasm.c (tui_set_disassem_content)
2569 (tui_disasm_window::do_scroll_vertical): Update.
2570 * tui/tui-data.h (tui_win_content): Remove.
2571 (struct tui_gen_win_info) <content, content_size>: Remove.
2572 (struct tui_source_element): Add initializers and destructor.
2573 (union tui_which_element, struct tui_win_element): Remove.
2574 (struct tui_source_window_base) <content>: New field.
2575 (struct tui_data_window): Remove destructor.
2576 (tui_alloc_content, tui_free_win_content)
2577 (tui_free_all_source_wins_content): Don't declare.
2578 * tui/tui-data.c (tui_initialize_static_data): Update.
2579 (init_content_element, tui_alloc_content): Remove.
2580 (~tui_gen_win_info): Update.
2581 (~tui_data_window, tui_free_all_source_wins_content)
2582 (tui_free_win_content, free_content, free_content_elements):
2585 2019-06-25 Tom Tromey <tom@tromey.com>
2587 * tui/tui-winsource.h (tui_clear_source_content)
2588 (tui_erase_source_content, tui_show_source_content): Change type
2590 * tui/tui-winsource.c (tui_clear_source_content)
2591 (tui_erase_source_content, tui_show_source_content): Change type
2593 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2594 * tui/tui-source.h (tui_set_source_content_nil): Change type of
2596 * tui/tui-source.c (tui_set_source_content_nil): Change type of
2598 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
2600 2019-06-25 Tom Tromey <tom@tromey.com>
2602 * tui/tui-winsource.c (tui_clear_source_content)
2603 (tui_source_window_base::set_is_exec_point_at): Update.
2604 * tui/tui-source.c (tui_set_source_content_nil): Update.
2605 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
2607 * tui/tui-data.c (init_content_element): Update.
2609 2019-06-25 Tom Tromey <tom@tromey.com>
2611 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
2612 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
2613 * tui/tui-layout.c (init_and_make_win): Update.
2614 * tui/tui.h (enum tui_win_type): Update.
2615 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
2616 tui_win_is_auxillary.
2617 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
2618 tui_win_is_auxillary.
2620 2019-06-25 Tom Tromey <tom@tromey.com>
2622 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
2623 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
2624 (tui_delete_data_content_windows, tui_display_all_data)
2625 (tui_data_window::do_scroll_vertical, tui_display_data_from):
2627 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
2628 * tui/tui-regs.c (tui_last_regs_line_no)
2629 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
2630 (tui_show_registers): Update.
2631 (tui_show_register_group): Return void. Update.
2632 (tui_display_registers_from, tui_display_reg_element_at_line)
2633 (tui_display_registers_from_line, tui_check_register_values):
2635 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
2637 (struct tui_data_window) <regs_content>: Now a std::vector.
2638 <regs_content_count>: Remove.
2639 (tui_add_content_elements, tui_free_data_content): Don't declare.
2640 * tui/tui-data.c (tui_data_window::clear_detail): Update.
2641 (init_content_element): Remove DATA_WIN case. Add assert.
2642 (tui_add_content_elements): Remove.
2643 (tui_data_window): Update.
2644 (tui_free_data_content): Remove.
2645 (free_content_elements): Remove DATA_WIN case.
2647 2019-06-25 Tom Tromey <tom@tromey.com>
2649 * tui/tui-data.c (tui_data_item_window): Update.
2650 * tui/tui-windata.h (tui_check_data_values): Don't declare.
2651 * tui/tui-windata.c (tui_display_all_data)
2652 (tui_display_data_from_line): Update.
2653 (tui_check_data_values): Remove.
2654 * tui/tui-regs.c (tui_show_register_group)
2655 (tui_display_reg_element_at_line): Update.
2656 * tui/tui-hooks.c (tui_register_changed)
2657 (tui_refresh_frame_and_register_information): Call
2658 tui_check_register_values.
2659 * tui/tui-data.h (struct tui_data_window) <data_content,
2660 data_content_count, data_type>: Remove.
2661 (enum tui_data_type): Remove.
2663 * tui/tui-data.c (tui_data_window::clear_detail)
2664 (~tui_data_window): Update.
2666 2019-06-25 Tom Tromey <tom@tromey.com>
2668 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
2670 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
2671 Rename from tui_first_data_item_displayed. Update.
2672 (tui_data_window::refresh_all)
2673 (tui_data_window::do_scroll_vertical): Update.
2674 * tui/tui-data.h (struct tui_data_window)
2675 <first_data_item_displayed>: Declare new method.
2677 2019-06-25 Tom Tromey <tom@tromey.com>
2679 * tui/tui-data.h (tui_init_generic_part): Don't declare.
2680 * tui/tui-data.c (tui_init_generic_part): Remove, moving
2682 (tui_initialize_static_data): ...here.
2684 2019-06-25 Tom Tromey <tom@tromey.com>
2686 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
2687 (tui_display_registers_from, tui_check_register_values): Update.
2688 (tui_display_register): Remove win_info parameter; update.
2689 (tui_get_register): Change type of parameters.
2690 * tui/tui-data.h (struct tui_data_element): Remove.
2691 (union tui_which_element) <data>: Remove.
2692 <data_window>: Change type.
2693 (struct tui_data_item_window): New.
2694 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
2696 (~tui_data_item_window): New destructor.
2697 (free_content_elements): Remove DATA_ITEM_WIN case.
2699 2019-06-25 Tom Tromey <tom@tromey.com>
2701 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
2704 2019-06-25 Tom Tromey <tom@tromey.com>
2706 * tui/tui-data.h (struct tui_command_element): Remove.
2707 (union tui_which_element) <command>: Remove.
2708 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
2710 (free_content_elements): Remove CMD_WIN case.
2712 2019-06-25 Tom Tromey <tom@tromey.com>
2714 * tui/tui-layout.c (tui_set_layout): Update.
2715 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
2716 * tui/tui-data.c (layout_def): Update.
2718 2019-06-25 Tom Tromey <tom@tromey.com>
2720 * tui/tui-wingeneral.c (tui_refresh_all): Update.
2721 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2722 (tui_source_window_base::set_new_height): Update.
2723 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
2725 (tui_set_locator_fullname, tui_set_locator_info)
2726 (tui_show_frame_info): Update.
2727 * tui/tui-source.c (tui_set_source_content)
2728 (tui_source_is_displayed): Update.
2729 * tui/tui-layout.c (show_source_disasm_command, show_data)
2730 (show_source_or_disasm_and_command): Update.
2731 * tui/tui-disasm.c (tui_set_disassem_content)
2732 (tui_get_begin_asm_address): Update.
2733 * tui/tui-data.h (struct tui_locator_element): Remove.
2734 (union tui_which_element) <locator>: Remove.
2735 (struct tui_locator_window): New.
2736 (tui_locator_win_info_ptr): Change return type.
2737 * tui/tui-data.c (_locator): Change type.
2738 (tui_locator_win_info_ptr): Change return type.
2739 (init_content_element): Remove LOCATOR_WIN case. Add assert.
2740 (tui_alloc_content): Add assert.
2742 2019-06-25 Tom Tromey <tom@tromey.com>
2744 * tui/tui-winsource.c
2745 (tui_exec_info_window::maybe_allocate_content): New method.
2746 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
2747 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
2748 (make_source_or_disasm_window): Add cast.
2749 * tui/tui-data.h (union tui_which_element) <simple_string>:
2751 (struct tui_source_info): New.
2752 (struct tui_source_window_base) <execution_info>: Change type.
2753 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
2754 case, and add assert.
2755 (tui_alloc_content): Add assert.
2757 2019-06-25 Tom Tromey <tom@tromey.com>
2759 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
2760 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
2761 * tui/tui-data.c (tui_alloc_win_info): Remove.
2763 2019-06-25 Tom Tromey <tom@tromey.com>
2765 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
2766 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
2769 2019-06-25 Tom Tromey <tom@tromey.com>
2771 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
2772 make_visible_with_new_height method.
2773 (tui_win_info::make_visible_with_new_height): New method.
2774 (tui_source_window_base::do_make_visible_with_new_height)
2775 (tui_data_window::do_make_visible_with_new_height)
2776 (tui_cmd_window::do_make_visible_with_new_height): New methods.
2777 (make_visible_with_new_height): Remove.
2778 (tui_resize_all, tui_adjust_win_heights): Use
2779 make_visible_with_new_height method.
2780 * tui/tui-data.h (struct tui_win_info)
2781 <do_make_visible_with_new_height, make_visible_with_new_height>:
2783 (struct tui_source_window_base, struct tui_data_window)
2784 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
2787 2019-06-25 Tom Tromey <tom@tromey.com>
2789 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
2791 (update_tab_width): Call update_tab_width method.
2792 * tui/tui-data.h (struct tui_win_info)
2793 (struct tui_source_window_base) <update_tab_width>: New methods.
2795 2019-06-25 Tom Tromey <tom@tromey.com>
2797 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
2799 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
2801 (tui_gen_win_info::make_visible): Update.
2802 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
2804 * tui/tui-data.h (enum tui_box): New enum.
2805 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
2807 2019-06-25 Tom Tromey <tom@tromey.com>
2809 * tui/tui-layout.c (make_source_or_disasm_window): Always use
2810 init_and_make_win for EXEC_INFO_WIN.
2811 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
2813 (struct tui_win_info) <~tui_win_info>: Inline.
2814 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
2816 * tui/tui-data.c (source_win, disasm_win): Remove globals.
2817 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
2819 (tui_initialize_static_data): Update.
2820 (~tui_gen_win_info): Handle more cleanup here.
2821 (~tui_source_window_base): Delete "execution_info".
2822 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
2824 2019-06-25 Tom Tromey <tom@tromey.com>
2826 * tui/tui-layout.c (make_command_window): Don't set
2828 (show_source_disasm_command): Call the reset method.
2829 (show_data): Don't set can_highlight. Call the reset method.
2830 (tui_gen_win_info::reset): Rename from init_gen_win_info
2831 (init_and_make_win): Simplify. Return tui_gen_win_info.
2832 (show_source_or_disasm_and_command): Call the reset method.
2833 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
2834 (struct tui_cmd_window): Set can_highlight.
2836 2019-06-25 Tom Tromey <tom@tromey.com>
2838 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
2840 (tui_make_visible, tui_make_invisible): Rewrite.
2841 (tui_win_info::make_visible): Remove.
2842 (tui_source_window_base::make_visible): Update.
2843 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
2844 method. Moved from...
2845 (struct tui_win_info) <make_visible>: ...here.
2847 2019-06-25 Tom Tromey <tom@tromey.com>
2849 * tui/tui-winsource.c
2850 (tui_source_window_base::do_scroll_horizontal): Remove direction
2852 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
2853 direction parameter.
2854 * tui/tui-win.c (tui_win_info::forward_scroll)
2855 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
2856 (tui_win_info::right_scroll): Update.
2857 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
2858 direction parameter.
2859 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
2860 direction parameter.
2861 * tui/tui-data.h (enum tui_scroll_direction): Remove.
2862 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
2863 Remove direction parameter.
2864 (struct tui_source_window_base, struct tui_source_window)
2865 (struct tui_disasm_window, struct tui_data_window)
2866 (struct tui_cmd_window): Update.
2868 2019-06-25 Tom Tromey <tom@tromey.com>
2870 * tui/tui-winsource.h (tui_set_exec_info_content)
2871 (tui_show_exec_info_content, tui_erase_exec_info_content)
2872 (tui_clear_exec_info_content, tui_update_exec_info): Change
2873 argument to tui_source_window_base.
2874 * tui/tui-winsource.c (tui_set_exec_info_content)
2875 (tui_show_exec_info_content, tui_erase_exec_info_content)
2876 (tui_clear_exec_info_content, tui_update_exec_info): Change
2877 argument to tui_source_window_base.
2879 2019-06-25 Tom Tromey <tom@tromey.com>
2881 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
2882 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
2884 2019-06-25 Tom Tromey <tom@tromey.com>
2886 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
2889 2019-06-25 Tom Tromey <tom@tromey.com>
2891 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
2893 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
2895 * tui/tui-source.c (tui_set_source_content): Update.
2896 * tui/tui-disasm.c (tui_set_disassem_content): Update.
2898 2019-06-25 Tom Tromey <tom@tromey.com>
2900 * tui/tui-win.c (window_name_completer, tui_set_focus)
2901 (tui_all_windows_info): Use name method.
2902 * tui/tui-data.h (struct tui_gen_win_info)
2903 (struct tui_source_window, struct tui_disasm_window)
2904 (struct tui_data_window, struct tui_cmd_window) <name>: New
2906 (tui_win_name): Don't declare.
2907 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
2908 (tui_win_name): Remove.
2910 2019-06-25 Tom Tromey <tom@tromey.com>
2912 * tui/tui-winsource.h (tui_update_source_window)
2913 (tui_update_source_window_as_is): Change parameter type.
2914 * tui/tui-winsource.c (tui_update_source_window): Change win_info
2915 to be a tui_source_window_base.
2916 (tui_update_source_window_as_is): Likewise.
2917 * tui/tui-win.c (make_visible_with_new_height): Update.
2919 2019-06-25 Tom Tromey <tom@tromey.com>
2921 * tui/tui-winsource.c (tui_erase_source_content)
2922 (tui_show_source_content, tui_show_exec_info_content)
2923 (tui_erase_exec_info_content): Use refresh_window method.
2924 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
2925 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
2926 from tui_refresh_win.
2927 (tui_data_window::refresh_window): New method.
2928 (tui_win_info::refresh, tui_source_window_base::refresh)
2929 (tui_refresh_all): Use refresh_window method.
2930 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
2932 * tui/tui-regs.c (tui_display_register): Call refresh_window
2934 * tui/tui-layout.c (show_source_disasm_command)
2935 (show_source_or_disasm_and_command): Call refresh_window method.
2936 * tui/tui-data.h (struct tui_gen_win_info)
2937 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
2940 2019-06-25 Tom Tromey <tom@tromey.com>
2942 * tui/tui.c (tui_rl_other_window, tui_enable)
2943 (tui_is_window_visible, tui_get_command_dimension): Update.
2944 * tui/tui-winsource.c (tui_update_source_window_as_is)
2945 (tui_clear_source_content, tui_erase_source_content)
2946 (tui_show_source_line, tui_source_window_base::refill)
2947 (tui_source_window_base::do_scroll_horizontal)
2948 (tui_source_window_base::set_is_exec_point_at)
2949 (tui_update_breakpoint_info, tui_set_exec_info_content)
2950 (tui_alloc_source_buffer, tui_line_is_displayed)
2951 (tui_addr_is_displayed): Update.
2952 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
2953 (tui_check_and_display_highlight_if_needed)
2954 (tui_win_info::make_visible, tui_win_info::refresh)
2955 (tui_refresh_all): Update.
2956 * tui/tui-windata.c (tui_first_data_item_displayed)
2957 (tui_delete_data_content_windows, tui_erase_data_content)
2958 (tui_display_all_data, tui_data_window::refresh_all)
2959 (tui_check_data_values): Update.
2960 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
2961 (tui_set_win_focus_to, tui_win_info::forward_scroll)
2962 (tui_win_info::backward_scroll, tui_refresh_all_win)
2963 (tui_resize_all, tui_set_focus, tui_all_windows_info)
2964 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
2965 (tui_source_window_base::set_new_height)
2966 (tui_data_window::set_new_height)
2967 (make_invisible_and_set_new_height)
2968 (make_visible_with_new_height, new_height_ok)
2969 (parse_scrolling_args): Update.
2970 * tui/tui-stack.c (tui_show_frame_info): Update.
2971 * tui/tui-source.c (tui_set_source_content)
2972 (tui_set_source_content_nil, tui_source_is_displayed)
2973 (tui_source_window::do_scroll_vertical): Update.
2974 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
2975 (tui_display_registers_from, tui_display_reg_element_at_line)
2976 (tui_check_register_values, tui_reg_command): Update.
2977 * tui/tui-layout.c (tui_default_win_height)
2978 (show_source_disasm_command, show_data, init_and_make_win)
2979 (show_source_or_disasm_and_command): Update.
2980 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2981 (tui_redisplay_readline, tui_mld_flush)
2982 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
2984 * tui/tui-disasm.c (tui_set_disassem_content)
2985 (tui_disasm_window::do_scroll_vertical): Update.
2986 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
2988 (struct tui_win_info): Derive from tui_gen_win_info.
2989 <~tui_win_info>: Mark as override.
2990 <generic>: Remove member.
2991 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
2992 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
2993 (~tui_data_window, ~tui_win_info)
2994 (tui_free_all_source_wins_content): Update.
2995 * tui/tui-command.c (tui_refresh_cmd_win): Update.
2997 2019-06-25 Tom Tromey <tom@tromey.com>
2999 * tui/tui-layout.c (init_and_make_win): Use new.
3000 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
3001 destructor, initializers.
3002 (tui_alloc_generic_win_info): Don't declare.
3003 * tui/tui-data.c (_locator): Add argument to constructor.
3004 (source_win, disasm_win): New globals.
3005 (exec_info): Remove.
3006 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
3008 (tui_alloc_generic_win_info): Remove.
3009 (init_content_element): Use new.
3010 (tui_win_info::tui_win_info): Update.
3011 (free_content_elements) <case DATA_WIN>: Use delete.
3013 2019-06-25 Tom Tromey <tom@tromey.com>
3015 * tui/tui-wingeneral.c (tui_refresh_win): Update.
3016 * tui/tui-windata.c (tui_first_data_item_displayed)
3017 (tui_delete_data_content_windows): Update.
3018 * tui/tui-win.c (tui_data_window::set_new_height): Update.
3019 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
3020 (tui_display_registers_from, tui_check_register_values): Update.
3021 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
3023 * tui/tui-data.c (init_content_element): Update. Allocate the new
3025 (tui_free_data_content): Update.
3026 (free_content_elements) <case DATA_WIN>: Free the window.
3028 2019-06-25 Tom Tromey <tom@tromey.com>
3030 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
3032 * tui/tui-layout.c (make_command_window)
3033 (show_source_disasm_command, show_data, init_and_make_win)
3034 (show_source_or_disasm_and_command): Update.
3035 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
3037 <can_highight, is_highlighted>: Now bool.
3038 (tui_set_win_highlight): Don't declare.
3039 * tui/tui-data.c (tui_set_win_highlight): Remove.
3041 2019-06-25 Tom Tromey <tom@tromey.com>
3043 * tui/tui-wingeneral.c (make_visible): Remove check of window
3046 2019-06-25 Tom Tromey <tom@tromey.com>
3048 * tui/tui-win.c (tui_win_info::max_height)
3049 (tui_cmd_window::max_height): New methods.
3050 (new_height_ok): Call max_height.
3051 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
3052 <max_height>: New method.
3054 2019-06-25 Tom Tromey <tom@tromey.com>
3056 * tui/tui-win.c (tui_source_window_base::set_new_height)
3057 (tui_data_window::set_new_height): New methods.
3058 (make_invisible_and_set_new_height): Call set_new_height method.
3059 * tui/tui-data.h (struct tui_win_info)
3060 (struct tui_source_window_base, struct tui_data_window)
3061 <set_new_height>: New method.
3063 2019-06-25 Tom Tromey <tom@tromey.com>
3065 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
3066 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
3067 tui_refresh_data_win.
3068 * tui/tui-win.c (tui_source_window_base::refresh_all): New
3070 (tui_refresh_all_win): Call the refresh_all method.
3071 (tui_set_focus): Likewise.
3072 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
3073 (struct tui_source_window_base, struct tui_data_window) <refresh>:
3076 2019-06-25 Tom Tromey <tom@tromey.com>
3078 * tui/tui-winsource.h (tui_refill_source_window)
3079 (tui_set_is_exec_point_at): Don't declare.
3080 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
3081 (tui_source_window_base::refill): Rename from
3082 tui_refill_source_window.
3083 (tui_source_window_base::do_scroll_horizontal): Update.
3084 (tui_source_window_base::set_is_exec_point_at): Rename from
3085 tui_set_is_exec_point_at.
3086 (tui_update_all_breakpoint_info): Update.
3087 * tui/tui-stack.c (tui_show_frame_info): Update.
3088 * tui/tui-layout.c (show_data): Add cast.
3089 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
3090 * tui/tui-data.h (struct tui_source_window_base) <refill,
3091 set_is_exec_point_at>: New methods.
3092 (tui_source_windows, tui_add_to_source_windows): Update types.
3093 (tui_add_to_source_windows): Remove redundant declaration.
3094 * tui/tui-data.c (source_windows): Store tui_source_window_base.
3095 (tui_source_windows): Change return type.
3096 (tui_clear_source_windows_detail): Update.
3097 (tui_add_to_source_windows): Change type of parameter.
3098 (tui_free_all_source_wins_content): Update.
3100 2019-06-25 Tom Tromey <tom@tromey.com>
3102 * tui/tui-wingeneral.c (tui_win_info::refresh)
3103 (tui_source_window_base::refresh): New methods.
3104 (tui_refresh_all): Call the refresh method.
3105 * tui/tui-data.h (struct tui_win_info)
3106 (struct tui_source_window_base) <refresh>: New method.
3108 2019-06-25 Tom Tromey <tom@tromey.com>
3110 * tui/tui.h (tui_is_window_visible): Return bool.
3111 * tui/tui.c (tui_is_window_visible): Return bool.
3112 * tui/tui-wingeneral.c (tui_make_window, make_visible)
3113 (tui_make_visible, tui_make_invisible)
3114 (tui_win_info::make_visible)
3115 (tui_source_window_base::make_visible, make_all_visible)
3116 (tui_make_all_visible, tui_make_all_invisible): Update.
3117 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
3118 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
3120 (struct tui_win_info, struct tui_source_window_base)
3121 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
3122 * tui/tui-data.c (tui_init_generic_part): Update.
3124 2019-06-25 Tom Tromey <tom@tromey.com>
3126 * tui/tui-wingeneral.c (tui_win_info::make_visible)
3127 (tui_source_window_base::make_visible): New methods.
3128 (make_all_visible): Make method call.
3129 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
3130 (struct tui_source_window_base, struct tui_cmd_window): Override
3132 (tui_win_is_source_type): Don't declare.
3133 * tui/tui-data.c (tui_win_is_source_type): Remove.
3135 2019-06-25 Tom Tromey <tom@tromey.com>
3137 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
3140 2019-06-25 Tom Tromey <tom@tromey.com>
3142 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
3143 Inline constructor. Add initializers for members.
3144 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
3145 constructors; now inline in class.
3147 2019-06-25 Tom Tromey <tom@tromey.com>
3149 * tui/tui-regs.c (tui_show_registers): Update.
3150 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
3152 * tui/tui-data.c (tui_data_window::clear_detail)
3153 (tui_data_window): Update.
3155 2019-06-25 Tom Tromey <tom@tromey.com>
3157 * tui/tui-windata.c (tui_display_all_data)
3158 (tui_display_data_from_line, tui_display_data_from)
3159 (tui_check_data_values, tui_data_window::do_scroll_vertical):
3161 * tui/tui-regs.c (tui_last_regs_line_no)
3162 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
3163 (tui_show_registers, tui_show_register_group)
3164 (tui_display_registers_from, tui_display_reg_element_at_line)
3165 (tui_display_registers_from_line, tui_check_register_values)
3166 (tui_reg_next, tui_reg_prev): Update.
3167 * tui/tui-layout.c (tui_set_layout, show_data): Update.
3168 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
3170 (struct tui_win_info) <detail>: Remove. Add new fields from
3172 (TUI_DATA_WIN): Add cast.
3173 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
3174 (~tui_data_window): Simplify.
3176 2019-06-25 Tom Tromey <tom@tromey.com>
3178 * tui/tui-layout.c (show_source_disasm_command)
3179 (show_source_or_disasm_and_command): Update.
3180 * tui/tui-io.c (update_cmdwin_start_line)
3181 (tui_redisplay_readline): Update.
3182 * tui/tui-data.h (struct tui_command_info): Remove.
3183 (struct tui_win_info) <detail>: Remove command_info member.
3184 (struct tui_data_window) <start_line>: New member, from
3186 (TUI_CMD_WIN): Add casts.
3188 2019-06-25 Tom Tromey <tom@tromey.com>
3190 * tui/tui-winsource.c (tui_update_source_window)
3191 (tui_refill_source_window)
3192 (tui_source_window_base::do_scroll_horizontal)
3193 (tui_update_breakpoint_info, tui_set_exec_info_content)
3194 (tui_show_exec_info_content, tui_erase_exec_info_content)
3195 (tui_clear_exec_info_content): Update.
3196 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
3198 * tui/tui-win.c (make_invisible_and_set_new_height)
3199 (make_visible_with_new_height): Update.
3200 * tui/tui-source.c (tui_set_source_content)
3201 (tui_show_symtab_source): Update.
3202 * tui/tui-layout.c (extract_display_start_addr)
3203 (show_source_disasm_command, show_data)
3204 (make_source_or_disasm_window)
3205 (show_source_or_disasm_and_command): Update.
3206 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
3207 (tui_disasm_window::do_scroll_vertical): Remove shadowing
3209 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
3210 to tui_source_window_base.
3211 (struct tui_win_info) <detail>: Remove source_info member.
3212 (struct tui_source_window_base) <has_locator>: Inline.
3213 Move contents from tui_source_info; rename has_locator member to
3215 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
3216 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
3218 (tui_source_window_base::clear_detail, ~tui_source_window_base):
3220 (tui_free_all_source_wins_content): Cast to
3221 tui_source_window_base.
3223 2019-06-25 Tom Tromey <tom@tromey.com>
3225 * tui/tui-win.c (make_invisible_and_set_new_height)
3226 (make_visible_with_new_height): Call has_locator method.
3227 * tui/tui-layout.c (show_source_disasm_command, show_data)
3228 (show_source_or_disasm_and_command): Update for bool change.
3229 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
3230 (tui_win_info) <has_locator>: New method.
3231 (struct tui_source_window_base) <has_locator>: New method.
3232 (tui_win_has_locator): Don't declare.
3233 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
3234 from tui_win_has_locator.
3235 (tui_source_window_base): Use false, not FALSE.
3237 2019-06-25 Tom Tromey <tom@tromey.com>
3239 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
3240 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
3241 clear_detail method directly.
3242 (tui_clear_win_detail): Remove.
3244 2019-06-25 Tom Tromey <tom@tromey.com>
3246 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
3247 "this", not TUI_DISASM_WIN.
3249 2019-06-25 Tom Tromey <tom@tromey.com>
3251 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
3253 * tui/tui-winsource.c
3254 (tui_source_window_base::do_scroll_horizontal): Rename from
3255 tui_horizontal_source_scroll.
3256 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
3257 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
3258 from tui_vertical_data_scroll.
3259 * tui/tui-win.h (tui_scroll): Don't declare.
3260 * tui/tui-win.c (tui_win_info::forward_scroll)
3261 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
3262 (tui_win_info::right_scroll): Rename and update.
3263 (tui_scroll_forward_command, tui_scroll_backward_command)
3264 (tui_scroll_left_command, tui_scroll_right_command): Update.
3265 (tui_scroll): Remove.
3266 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
3267 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
3268 from tui_vertical_source_scroll.
3269 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
3270 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
3271 from tui_vertical_disassem_scroll.
3272 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
3273 do_scroll_horizontal>: New methods.
3274 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
3276 (struct tui_source_window_base): Add do_scroll_horizontal.
3277 (struct tui_source_window, struct tui_disasm_window): Add
3279 (struct tui_data_window, struct tui_cmd_window): Add
3280 do_scroll_horizontal and do_scroll_vertical.
3281 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
3283 2019-06-25 Tom Tromey <tom@tromey.com>
3285 * tui/tui-data.h (struct tui_source_window_base): New struct.
3286 (struct tui_source_window): Derive from tui_source_window_base.
3287 (struct tui_disasm_window): New struct.
3288 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
3289 from tui_source_window::clear_detail.
3290 (tui_source_window_base): Rename from tui_source_window.
3291 (~tui_source_window_base): Rename from ~tui_source_window.
3292 (tui_alloc_win_info): Create a tui_disasm_window.
3294 2019-06-25 Tom Tromey <tom@tromey.com>
3296 * tui/tui-data.h (struct tui_source_window)
3297 (struct tui_data_window): Declare destructors.
3298 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
3300 (tui_win_info): Simplify.
3302 2019-06-25 Tom Tromey <tom@tromey.com>
3304 * tui/tui-winsource.c (tui_display_main)
3305 (tui_update_source_windows_with_addr)
3306 (tui_update_all_breakpoint_info): Update.
3307 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3308 (new_height_ok, parse_scrolling_args): Update.
3309 * tui/tui-stack.c (tui_show_frame_info): Update.
3310 * tui/tui-data.h (struct tui_list): Remove.
3311 (tui_source_windows): Return a reference to a std::vector.
3312 * tui/tui-data.c (source_windows): Now a std::vector.
3313 (tui_source_windows): Change return type.
3314 (tui_clear_source_windows): Rewrite.
3315 (tui_clear_source_windows_detail, tui_add_to_source_windows)
3316 (tui_free_all_source_wins_content): Rewrite.
3318 2019-06-25 Tom Tromey <tom@tromey.com>
3320 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
3321 (struct tui_data_window, struct tui_cmd_window): Declare
3322 clear_detail method.
3323 * tui/tui-data.c (tui_source_window::clear_detail)
3324 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
3326 (tui_clear_win_detail): Simplify.
3328 2019-06-25 Tom Tromey <tom@tromey.com>
3330 * tui/tui-layout.c (make_source_window, make_disasm_window)
3331 (make_source_or_disasm_window): Remove win_info_ptr parameter.
3332 Return the new window.
3333 (show_source_disasm_command, show_data)
3334 (show_source_or_disasm_and_command): Update.
3336 2019-06-25 Tom Tromey <tom@tromey.com>
3338 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
3339 parameter. Return the new window.
3340 (show_source_disasm_command): Update and remove NULL check.
3341 (show_source_or_disasm_and_command): Update.
3343 2019-06-25 Tom Tromey <tom@tromey.com>
3345 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
3347 2019-06-25 Tom Tromey <tom@tromey.com>
3349 * tui/tui-data.h (struct tui_win_info): Make constructor
3350 protected. Make destructor virtual. Add initializers.
3351 (tui_source_window, tui_data_window, tui_cmd_window): New
3353 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
3354 constructor. Add "type" parameter.
3355 (tui_source_window, tui_data_window, tui_cmd_window): New
3357 (tui_alloc_win_info): Instantiate the appropriate subclass.
3359 2019-06-25 Tom Tromey <tom@tromey.com>
3361 * tui/tui-win.c (tui_resize_all): Use delete.
3362 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
3364 (tui_free_window): Don't declare.
3365 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
3368 2019-06-25 Tom Tromey <tom@tromey.com>
3370 * tui/tui-data.h (struct tui_win_info): Add constructor.
3371 * tui/tui-data.c (tui_alloc_win_info): Use new.
3372 (tui_free_window): Use delete.
3374 2019-06-22 Tom Tromey <tom@tromey.com>
3376 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
3378 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
3380 2019-06-22 Tom Tromey <tom@tromey.com>
3382 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
3384 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
3386 2019-06-22 Tom de Vries <tdevries@suse.de>
3388 * dwarf2read.c (create_addrmap_from_aranges)
3389 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
3392 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
3394 * dwarf2read.h (dwarf2_section_info_def): Remove.
3395 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
3396 * dwarf2read.c (struct dwo_sections) <types>: Change type to
3397 std::vector<dwarf2_section_info>.
3398 (struct dwo_file) <~dwo_file>: Remove.
3399 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
3401 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
3402 (dwarf2_read_debug_names): Likewise.
3403 (create_debug_types_hash_table): Change parameter type to
3404 array_view, adjust code accordingly.
3405 (dwarf2_locate_dwo_sections): Adjust to std::vector.
3406 (partial_die_info::fixup): Likewise.
3407 (determine_prefix): Likewise.
3408 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
3410 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3412 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
3414 <~dwo_file>: Remove call to gdb_bfd_unref.
3415 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
3416 gdb_bfd_ref_ptr::get.
3418 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3420 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
3422 * dwarf2read.c (struct dwo_file): Initialize fields.
3424 (free_dwo_file): Remove, move content to ~dwo_file.
3425 (struct dwo_file_deleter): Remove.
3426 (dwo_file_up>: Remove custom deleter.
3427 (free_dwo_files): Remove.
3428 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
3430 (process_skeletonless_type_units): Call unique_ptr::get.
3431 (allocate_dwo_file_hash_table): Add deleter to created hash
3432 table. Change return type to htab_up.
3433 (lookup_dwo_file_slot): Don't memset dwo_file, call
3435 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
3436 (create_dwo_unit_in_dwp_v2): Likewise.
3437 (open_and_init_dwo_file): Likewise.
3438 (free_dwo_file_from_slot): Remove.
3440 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3442 * dwarf2read.h (struct dwarf2_section_info) <readin,
3443 is_virtual>: Change type to bool.
3444 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
3447 2019-06-19 Tom Tromey <tom@tromey.com>
3449 * tui/tui-data.h (tui_init_content_element): Don't declare.
3451 2019-06-19 Tom Tromey <tom@tromey.com>
3453 * tui/tui-data.h (tui_init_win_info): Don't declare.
3455 2019-06-19 Tom de Vries <tdevries@suse.de>
3457 * dwarf2read.h (abstract_to_concrete): Change type to
3458 std::unordered_map<sect_offset, std::vector<sect_offset>,
3459 gdb::hash_enum<sect_offset>>.
3461 2019-06-19 Tom Tromey <tromey@adacore.com>
3463 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
3464 EVAL_AVOID_SIDE_EFFECTS specially.
3466 2019-06-19 Tom Tromey <tromey@adacore.com>
3468 * source-cache.c (highlighter): New global.
3469 (source_cache::get_source_lines): Create a highlighter on demand.
3471 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
3473 * defs.h (deprecated_interactive_hook): Delete declaration.
3474 * interps.c (clear_interpreter_hooks): Remove use of
3475 deprecated_interactive_hook.
3476 * top.c (deprecated_interactive_hook): Delete definition.
3477 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
3479 2019-06-18 Tom de Vries <tdevries@suse.de>
3482 * dwarf2read.h (abstract_to_concrete): Change type from
3483 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
3484 std::unordered_map<sect_offset, std::vector<sect_offset>>.
3485 * dwarf2read.c (read_variable): Update.
3486 (dwarf2_fetch_die_loc_sect_off): Update.
3488 2019-06-17 Tom de Vries <tdevries@suse.de>
3491 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
3492 accessing parent[parent_len - 1].
3494 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
3497 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
3498 call dtrace_process_dof with NULL dof.
3500 2019-06-16 Tom de Vries <tdevries@suse.de>
3503 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
3505 2019-06-16 Tom Tromey <tom@tromey.com>
3507 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
3508 (make_all_visible): Use address of member.
3510 2019-06-16 Tom Tromey <tom@tromey.com>
3512 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
3513 (tui_free_window, free_content, free_content_elements): Remove
3515 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
3517 * tui/tui-regs.c (tui_show_register_group)
3518 (tui_display_registers_from, tui_display_reg_element_at_line):
3519 Remove unnecessary cast.
3521 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
3523 * linux-nat.c (normal_mask): Delete.
3524 (_initialize_linux_nat): Don't initialise normal_mask.
3526 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
3529 * dwarf-index-write.h (write_psymtabs_to_index): Add
3530 dwz_basename parameter.
3531 * dwarf-index-write.c (write_gdbindex): Move file writing to
3532 write_gdbindex_1. Change return type void.
3533 (assert_file_size): Move up, remove filename parameter.
3534 (write_gdbindex_1): New function.
3535 (write_debug_names): Change return type to void, call
3537 (struct index_wip_file): New struct.
3538 (write_psymtabs_to_index): Add dwz_basename parameter. Move
3539 file logic to index_wip_file. Write index for dwz file if
3541 (save_gdb_index_command): Pass basename of dwz file, if present.
3542 * dwarf-index-cache.c (index_cache::store): Obtain and pass
3543 build-id of dwz file, if present.
3544 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
3545 (dwarf2_get_dwz_file): Likewise.
3546 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
3547 (dwarf2_get_dwz_file): Likewise.
3549 2019-06-16 Tom Tromey <tom@tromey.com>
3551 * coffread.c (process_coff_symbol): Use xstrdup.
3552 * value.c (create_internalvar): Use xstrdup.
3554 2019-06-16 Tom Tromey <tom@tromey.com>
3556 * valops.c (value_cast, value_slice): Remove unnecessary cast.
3557 * breakpoint.c (stopin_command, stopat_command)
3558 (until_break_command, decode_location_default): Remove unnecessary
3560 * utils.c (subset_compare): Remove unnecessary cast.
3561 * ada-lang.c (ada_update_initial_language): Remove unnecessary
3563 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
3565 * infcmd.c (path_command): Remove unnecessary cast.
3566 * coffread.c (decode_type): Remove unnecessary cast.
3567 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
3568 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
3569 * tui/tui-stack.c (tui_show_locator_content)
3570 (tui_show_frame_info): Remove unnecessary cast.
3571 * tui/tui-win.c (tui_scroll_forward_command)
3572 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
3573 (parse_scrolling_args): Remove unnecessary cast.
3574 * tui/tui-data.c (init_win_info, tui_del_window)
3575 (tui_free_window, tui_del_data_windows, tui_free_data_content)
3576 (free_content_elements): Remove unnecessary cast.
3577 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
3579 * tui/tui-source.c (tui_set_source_content)
3580 (tui_vertical_source_scroll): Remove unnecessary cast.
3581 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
3583 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
3584 * tui/tui-regs.c (tui_display_registers_from)
3585 (tui_display_register): Remove unnecessary cast.
3586 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
3587 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
3588 (make_visible): Remove unnecessary cast.
3589 * tui/tui-winsource.c (tui_erase_source_content)
3590 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
3592 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
3593 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
3594 * stabsread.c (read_type, read_array_type, read_range_type):
3595 Remove unnecessary cast.
3596 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
3597 (parse_symbol, parse_type, upgrade_type, parse_external)
3598 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
3600 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
3602 2019-06-16 Tom Tromey <tom@tromey.com>
3604 * tui/tui-data.c (tui_alloc_generic_win_info)
3605 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
3608 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
3609 Andrew Burgess <andrew.burgess@embecosm.com>
3611 * f-typeprint.c (f_print_type): Don't return early for not
3612 associated or not allocated types.
3613 (f_type_print_varspec_suffix): Add print_rank parameter and print
3614 ranks of array types in case they dangling.
3615 (f_type_print_base): Add print_rank parameter.
3617 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3619 * NEWS: Mention new MI commands.
3620 * break-catch-throw.c (enum exception_event_kind): Move to
3622 (print_mention_exception_catchpoint): Output text as a single
3624 (catch_exception_command_1): Rename to...
3625 (catch_exception_event): ...this, make non-static, update header
3626 command, and change some parameter types.
3627 (catch_catch_command): Update for changes to
3628 catch_exception_command_1.
3629 (catch_throw_command): Likewise.
3630 (catch_rethrow_command): Likewise.
3631 * breakpoint.c (enum exception_event_kind): Delete.
3632 * breakpoint.h (enum exception_event_kind): Moved here from
3633 break-catch-throw.c.
3634 (catch_exception_event): Declare.
3635 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
3636 (mi_cmd_catch_throw): New function.
3637 (mi_cmd_catch_rethrow): New function.
3638 (mi_cmd_catch_catch): New function.
3639 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
3640 'catch-catch' entries.
3641 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
3642 (mi_cmd_catch_rethrow): Declare.
3643 (mi_cmd_catch_catch): Declare.
3645 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3647 * annotate.c (annotate_source_line): Change return type to void,
3648 update implementation to match.
3649 * annotate.h (annotate_source_line): Change return type to void,
3650 update header comment.
3651 * stack.c (print_frame_info): Don't change what frame information
3652 is printed based on whether annotations are on or not.
3654 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3656 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
3657 (annotate_source): Make static.
3658 (annotate_source_line): Moved from source.c and renamed from
3659 identify_source_line. Update the return type.
3660 * annotate.h (annotate_source): Delete declaration.
3661 (annotate_source_line): Declaration moved from source.h, and
3662 renamed from identify_source_line. Return type updated.
3663 * source.c (identify_source_line): Moved to annotate.c and renamed
3664 to annotate_source_line.
3665 (info_line_command): Remove check of annotation_level.
3666 * source.h (identify_source_line): Move declaration to annotate.h
3667 and rename to annotate_source_line.
3668 * stack.c: Add 'annotate.h' include.
3669 (print_frame_info): Remove check of annotation_level before
3670 calling annotate_source_line.
3672 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3674 * source-cache.c (source_cache::get_plain_source_lines): Use
3675 open_source_file_with_line_charpos instead of just
3676 open_source_file, remove call to find_source_lines.
3677 (source_cache::get_source_lines): Likewise.
3678 * source.c (find_source_lines): Make static.
3679 (get_filename_and_charpos): Renamed into...
3680 (open_source_file_with_line_charpos): ..this along with changes to
3681 return a scoped_fd, and some other minor clean ups.
3682 (identify_source_line): Use open_source_file_with_line_charpos.
3683 (search_command_helper): Use open_source_file_with_line_charpos
3684 instead of just open_source_file, remove call to
3686 * source.h (open_source_file_with_line_charpos): Declare new
3688 (find_source_lines): Delete declaration.
3690 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3692 * source.c (get_filename_and_charpos): Remove fullname
3694 (identify_source_line): Update call to get_filename_and_charpos.
3696 2019-06-14 Tom Tromey <tromey@adacore.com>
3699 * ui-style.h (skip_ansi_escape): Update comment.
3700 * ui-file.h (class no_terminal_escape_file): New class.
3701 * ui-file.c (no_terminal_escape_file::write)
3702 (no_terminal_escape_file::puts): New methods.
3703 * cli/cli-logging.c (handle_redirections): Use
3704 no_terminal_escape_file.
3706 2019-06-14 Tom Tromey <tromey@adacore.com>
3708 * NEWS: Move convenience variable news above Python news.
3710 2019-06-14 Tom Tromey <tom@tromey.com>
3712 * gnulib: Move directory to top-level.
3713 * configure.ac: Don't configure gnulib.
3714 * configure: Rebuild.
3715 * common/common-defs.h: Use new path to gnulib.
3716 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
3718 (INCGNU): Look in new gnulib location.
3719 (HFILES_NO_SRCDIR): Remove gnulib files.
3720 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
3721 (generated_files): Remove GNULIB_H.
3722 ($(LIBGNU), all-lib): Remove targets.
3723 (distclean): Don't mention GNULIB_BUILDDIR.
3724 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
3726 2019-06-14 Tom Tromey <tromey@adacore.com>
3728 * symfile.c (add_symbol_file_command): Remove obsolete comment.
3729 Warn if symbol file does not provide any symbols.
3731 2019-06-14 Tom Tromey <tromey@adacore.com>
3733 * source.c (find_and_open_source): Respect basenames_may_differ.
3735 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
3737 * annotate.c (annotate_breakpoints_invalid): Make use of
3738 scoped_restore_terminal_state.
3739 (annotate_frames_invalid): Likewise.
3741 2019-06-14 Tom Tromey <tromey@adacore.com>
3743 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
3744 allow assignment to an internalvar.
3746 2019-06-14 Tom Tromey <tromey@adacore.com>
3748 * ada-lex.l: Allow "_" in attribute names.
3750 2019-06-14 Tom Tromey <tromey@adacore.com>
3753 * regcache.c (registers_changed): Don't call alloca.
3754 * top.c (execute_command): Don't call alloca.
3756 2019-06-13 Pedro Alves <palves@redhat.com>
3758 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
3759 'expression'. When parsing an expression, error out if there's
3760 junk after "unlimited".
3761 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
3762 (do_set_command): Adjust calls to is_unlimited_literal.
3764 2019-06-13 Pedro Alves <palves@redhat.com>
3766 * compile/compile.c (make_compile_options_def_group): Add braces
3767 around array_view initializer.
3768 * thread.c (make_thread_apply_all_options_def_group)
3769 (make_thread_apply_all_options_def_group): Likewise.
3771 2019-06-13 Pedro Alves <palves@redhat.com>
3773 * NEWS (New commands): Mention "maint test-options
3774 require-delimiter", "maint test-options unknown-is-error", "maint
3775 test-options unknown-is-operand" and "maint show
3776 test-options-completion-result".
3777 (New command options, command completion): New section.
3778 (Completion improvements): New section.
3779 Mention that you can abbreviate "unlimited".
3781 2019-06-13 Pedro Alves <palves@redhat.com>
3783 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
3784 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
3785 * unittests/cli-utils-selftests.c (test_parse_flags)
3786 (test_parse_flags_qcs): Delete.
3787 (test_cli_utils): Don't call deleted functions.
3789 2019-06-13 Pedro Alves <palves@redhat.com>
3791 * thread.c: Include "cli/cli-option.h".
3792 (tp_array_compar_ascending): Global.
3793 (tp_array_compar): Delete function.
3794 (tp_array_compar_ascending, tp_array_compar_descending): New
3796 (ascending_option_def, qcs_flag_option_def)
3797 (thr_qcs_flags_option_defs)
3798 (make_thread_apply_all_options_def_group)
3799 (make_thread_apply_options_def_group): New.
3800 (thread_apply_all_command): Use gdb::option::process_options.
3801 (thread_apply_command_completer)
3802 (thread_apply_all_command_completer): New.
3803 (thread_apply_command): Use gdb::option::process_options.
3804 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
3805 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
3806 to generate help text of "thread apply". Adjust "taas"'s help.
3807 * tid-parse.c (tid_range_parser::in_thread_range): New method.
3808 * tid-parse.h (tid_range_parser::in_thread_range): New method.
3810 2019-06-13 Pedro Alves <palves@redhat.com>
3812 * thread.c (thread_apply_command): Check for invalid TID with
3813 isdigit instead of !isalpha.
3815 2019-06-13 Pedro Alves <palves@redhat.com>
3817 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
3818 (validate_flags_qcs): New.
3819 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
3820 (validate_flags_qcs): Declare.
3821 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
3822 (make_frame_apply_options_def_group): New.
3823 (frame_apply_command_count): Process options with
3824 gdb::option::process_options.
3825 (frame_apply_completer): New.
3826 (frame_apply_level_completer, frame_apply_all_completer)
3827 (frame_apply_completer): New.
3828 (_initialize_stack): Update help of "frame apply", "frame apply
3829 level", "frame apply all" and "faas" to mention supported options
3830 and install command completers.
3831 * stack.h (frame_apply_all_completer): Declare.
3832 * thread.c: Include "stack.h".
3833 (tfaas_command): Add "--".
3834 (_initialize_thread): Update help "tfaas" to mention supported
3835 options and install command completer.
3837 2019-06-13 Pedro Alves <palves@redhat.com>
3839 * completer.c (complete_nested_command_line): New.
3840 (gdb_completion_word_break_characters_throw): Add assertion.
3841 * completer.h (complete_nested_command_line): Declare.
3843 2019-06-13 Pedro Alves <palves@redhat.com>
3845 * stack.c (parse_backtrace_qualifiers): New.
3846 (backtrace_command): Use it.
3847 (backtrace_command_completer): Complete on qualifiers.
3849 2019-06-13 Pedro Alves <palves@redhat.com>
3851 * frame.c: Include "cli/cli-option.h.
3852 (user_set_backtrace_options): New.
3853 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
3855 (get_prev_frame): Adjust.
3856 (boolean_option_def, uinteger_option_def)
3857 (set_backtrace_option_defs): New.
3858 (_initialize_frame): Adjust and use
3859 gdb::option::add_setshow_cmds_for_options to install "set
3860 backtrace past-main" and "set backtrace past-entry".
3861 * frame.h: Include "cli/cli-option.h".
3862 (struct frame_print_options): Forward declare.
3863 (print_frame_arguments_all, print_frame_arguments_scalars)
3864 (print_frame_arguments_none): Declare.
3865 (print_entry_values): Delete declaration.
3866 (struct frame_print_options, user_frame_print_options): New.
3867 (struct set_backtrace_options): New.
3868 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
3869 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3870 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
3871 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
3872 (list_args_or_locals): Add frame_print_options parameter.
3873 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
3874 * python/py-framefilter.c (enumerate_args): Pass down
3875 USER_FRAME_PRINT_OPTIONS.
3876 * stack.c: Include "cli/cli-option.h".
3877 (print_frame_arguments_all, print_frame_arguments_scalars)
3878 (print_frame_arguments_none): Declare.
3879 (print_raw_frame_arguments, print_entry_values): Delete.
3880 (user_frame_print_options): New.
3881 (boolean_option_def, enum_option_def, frame_print_option_defs):
3883 (struct backtrace_cmd_options): New.
3884 (bt_flag_option_def): New.
3885 (backtrace_command_option_defs): New.
3886 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
3887 (print_frame_arg, read_frame_arg, print_frame_args)
3888 (print_frame_info, print_frame): Add frame_print_options parameter
3890 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
3891 (backtrace_command_1): Add frame_print_options and
3892 backtrace_cmd_options parameters and use them.
3893 (make_backtrace_options_def_group): New.
3894 (backtrace_command): Process command options with
3895 gdb::option::process_options.
3896 (backtrace_command_completer): New.
3897 (_initialize_stack): Extend "backtrace"'s help to mention
3898 supported options. Install completer for "backtrace".
3899 Install some settings commands with add_setshow_cmds_for_options.
3901 2019-06-13 Pedro Alves <palves@redhat.com>
3903 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
3904 and that "set/show print raw frame-arguments" are now deprecated.
3906 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
3908 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
3909 * stack.c (_initialize_stack): Install "set/show print
3910 raw-frame-arguments", and deprecate "set/show print raw
3912 * valprint.c (_initialize_valprint): Deprecate "set/show print
3915 2019-06-13 Pedro Alves <palves@redhat.com>
3917 * compile/compile.c (struct compile_options): New.
3918 (compile_flag_option_def, compile_command_option_defs)
3919 (make_compile_options_def_group): New.
3920 (compile_file_command): Handle options with
3921 gdb::option::process_options.
3922 (compile_file_command_completer): New function.
3923 (compile_code_command): Handle options with
3924 gdb::option::process_options.
3925 (compile_code_command_completer): New function.
3926 (_initialize_compiler): Install completers for "compile code" and
3927 "compile file". Mention available options in "compile code" and
3928 "compile code"'s help.
3929 * completer.c (advance_to_completion_word): New, factored out from
3931 (advance_to_expression_complete_word_point): ... this.
3932 (advance_to_filename_complete_word_point): New.
3933 * completer.h (advance_to_filename_complete_word_point): New
3936 2019-06-13 Pedro Alves <palves@redhat.com>
3938 * compile/compile.c: Include "cli/cli-option.h".
3939 (compile_print_value): Scope data pointer is now a
3940 value_print_options pointer; adjust.
3941 (compile_print_command): Process options. Scope data pointer is
3942 now a value_print_options pointer; adjust.
3943 (_initialize_compile): Update "compile print"'s help to include
3944 supported options. Install a completer for "compile print".
3945 * cp-valprint.c (show_vtblprint, show_objectprint)
3946 (show_static_field_print): Delete.
3947 (_initialize_cp_valprint): Don't install "set print
3948 static-members", "set print vtbl", "set print object" here.
3949 * printcmd.c: Include "cli/cli-option.h" and
3950 "common/gdb_optional.h".
3951 (print_command_parse_format): Rework to fill in a
3952 value_print_options instead of a format_data.
3953 (print_value): Change parameter type from format_data pointer to
3954 value_print_options reference. Adjust.
3955 (print_command_1): Process options. Adjust to pass down a
3956 value_print_options.
3957 (print_command_completer): New.
3958 (_initialize_printcmd): Install print_command_completer as
3959 handle_brkchars completer for the "print" command. Update
3960 "print"'s help to include supported options.
3961 * valprint.c: Include "cli/cli-option.h".
3962 (show_vtblprint, show_objectprint, show_static_field_print): Moved
3963 here from cp-valprint.c.
3964 (boolean_option_def, uinteger_option_def)
3965 (value_print_option_defs, make_value_print_options_def_group):
3966 New. Use gdb::option::add_setshow_cmds_for_options to install
3967 "set print elements", "set print null-stop", "set print repeats",
3968 "set print pretty", "set print union", "set print array", "set
3969 print address", "set print symbol", "set print array-indexes".
3970 * valprint.h: Include <string> and "cli/cli-option.h".
3971 (make_value_print_options_def_group): Declare.
3972 (print_value): Change parameter type from format_data pointer to
3973 value_print_options reference.
3974 (print_command_completer): Declare.
3976 2019-06-13 Pedro Alves <palves@redhat.com>
3978 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
3979 (COMMON_SFILES): Add maint-test-settings.c.
3980 * cli/cli-decode.c (boolean_enums): New global, factored out from
3982 (add_setshow_boolean_cmd): ... here.
3983 * cli/cli-decode.h (boolean_enums): Declare.
3984 * cli/cli-option.c: New file.
3985 * cli/cli-option.h: New file.
3986 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
3987 factored out from ...
3988 (parse_cli_boolean_value(const char *)): ... this.
3989 (is_unlimited_literal): Change parameter type to pointer to
3990 pointer. Adjust and advance ARG pointer.
3991 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
3992 (parse_cli_var_enum): New, factored out from ...
3993 (do_set_command): ... this. Adjust.
3994 * cli/cli-setshow.h (parse_cli_boolean_value)
3995 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
3996 (parse_cli_var_enum): Declare.
3997 * cli/cli-utils.c: Include "cli/cli-option.h".
3998 (get_ulongest): New.
3999 * cli/cli-utils.h (get_ulongest): Declare.
4000 (check_for_argument): New overloads.
4001 * maint-test-options.c: New file.
4003 2019-06-13 Pedro Alves <palves@redhat.com>
4005 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
4006 parse a range if "-" is at the end of the string.
4008 2019-06-13 Pedro Alves <palves@redhat.com>
4010 * cli/cli-setshow.c (parse_auto_binary_operation)
4011 (parse_cli_boolean_value): Don't allow "o".
4013 2019-06-13 Pedro Alves <palves@redhat.com>
4015 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
4016 * NEWS: Mention maint test-settings KIND.
4017 * maint-test-settings.c: New file.
4019 2019-06-13 Pedro Alves <palves@redhat.com>
4021 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
4023 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
4026 2019-06-13 Pedro Alves <palves@redhat.com>
4028 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
4031 2019-06-13 Pedro Alves <palves@redhat.com>
4033 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
4035 2019-06-13 Pedro Alves <palves@redhat.com>
4037 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
4038 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
4040 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
4041 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
4043 (check_for_argument): Skip spaces after argument.
4045 2019-06-13 Pedro Alves <palves@redhat.com>
4047 * thread.c (thread_apply_command): Adjust TID parsing.
4048 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
4049 detected before end of string.
4050 (tid_is_in_list): Error out if LIST is invalid.
4052 2019-06-13 Pedro Alves <palves@redhat.com>
4054 * completer.c (complete_line_internal_1): Rewind completion word
4056 (completion_tracker::advance_custom_word_point_by): Change
4057 parameter type to int.
4058 * completer.h (completion_tracker::advance_custom_word_point_by):
4061 2019-06-13 Pedro Alves <palves@redhat.com>
4063 * completer.c (advance_to_completion_word): Handle delimiters.
4065 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
4067 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
4069 2019-06-11 Tom Tromey <tom@tromey.com>
4071 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
4072 (xmalloc_failed): Move to alloc.c.
4073 * alloc.c: New file.
4074 * Makefile.in (COMMON_SFILES): Add alloc.c.
4076 2019-06-11 Tom Tromey <tom@tromey.com>
4078 * nat/linux-waitpid.c: Don't include server.h.
4079 (linux_debug): Remove.
4080 (my_waitpid): Update.
4082 2019-06-11 Tom Tromey <tromey@adacore.com>
4084 * infcall.c (_initialize_infcall): Remove trailing newline from
4086 * user-regs.c (_initialize_user_regs): Remove trailing newline
4088 * typeprint.c (_initialize_typeprint): Remove trailing newline
4090 * reverse.c (_initialize_reverse): Remove trailing newlines from
4092 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
4094 * language.c (add_set_language_command): Remove trailing newline
4096 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
4098 * disasm.c (_initialize_disasm): Remove trailing newline from
4100 * top.c (init_main): Remove trailing newline from help.
4101 * interps.c (_initialize_interpreter): Remove trailing newline
4103 * btrace.c (_initialize_btrace): Remove trailing newlines from
4105 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
4107 * python/python.c (_initialize_python): Remove trailing newline
4109 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
4111 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
4112 from help. Reformat some text.
4113 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
4115 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
4118 2019-06-11 Tom Tromey <tromey@adacore.com>
4120 * darwin-nat.c (darwin_decode_exception_message)
4121 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
4123 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
4125 * valops.c (value_slice): Check for not allocated or not
4128 2019-06-10 Tom de Vries <tdevries@suse.de>
4131 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
4132 sure an empty slot (defined by a 32-bit zero pair) is recognized as
4135 2019-06-10 Tom de Vries <tdevries@suse.de>
4138 * linespec.c (linespec_lexer_lex_string): Remove incorrect
4139 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
4141 2019-06-10 Tom de Vries <tdevries@suse.de>
4144 * symtab.c (struct demangled_name_entry): Add language field.
4145 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
4146 static minimal symbol". Set and use language field.
4148 2019-06-10 Tom Tromey <tromey@adacore.com>
4150 * ada-lang.c (_initialize_ada_language): Update help text.
4152 2019-06-10 Tom Tromey <tromey@adacore.com>
4154 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
4156 * guile/guile.c (handle_boot_error): Don't end warning with a
4158 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
4159 warning with a newline.
4160 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
4162 (s12z_frame_cache): Likewise.
4163 * dwarf-index-cache.c (index_cache::store): Don't end warning with
4165 * solib-svr4.c (disable_probes_interface): Don't end warning with
4167 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
4169 * python/python.c (do_finish_initialization): Don't end warning
4172 2019-06-10 Tom Tromey <tom@tromey.com>
4174 * python/py-breakpoint.c (gdbpy_breakpoint_created)
4175 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
4178 2019-06-10 Tom Tromey <tromey@adacore.com>
4180 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
4182 (elf_new_init): Don't call stabsread_new_init.
4183 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
4184 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
4185 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
4187 2019-06-10 Tom de Vries <tdevries@suse.de>
4191 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
4193 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
4195 * source.c (find_and_open_source): Also rewrite relative file
4198 2019-04-26 Amos Bird <amosbird@gmail.com>
4200 * annotate.c (annotate_thread_exited): Add "thread-exited"
4203 2019-06-06 Tom Tromey <tromey@adacore.com>
4205 * maint.h (class scoped_command_stats): Use
4206 DISABLE_COPY_AND_ASSIGN.
4207 <print_time>: New method.
4208 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
4210 (scoped_command_stats::print_time): New method.
4212 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4214 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
4215 instructions of lengths 6 or 8 bytes.
4217 2019-06-04 Pedro Alves <palves@redhat.com>
4219 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
4221 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
4222 * breakpoint.c (condition_completer): Likewise.
4223 * cli/cli-dump.c (scan_expression): Likewise.
4224 * common/filestuff.c (mkdir_recursive): Likewise.
4225 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
4226 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
4227 (gdb_abspath): Likewise.
4228 * compile/compile-cplus-types.c
4229 (compile_cplus_instance::decl_name): Likewise.
4230 * completer.c (complete_explicit_location):
4231 (signal_completer, reg_or_group_completer_1): Likewise.
4232 * cp-support.c (cp_remove_params_if_any): Likewise.
4233 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
4234 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
4235 * infcmd.c (strip_bg_char): Likewise.
4236 * linespec.c (copy_token_string): Likewise.
4237 * mi/mi-main.c (output_cores): Likewise.
4238 * psymtab.c (psymtab_search_name):
4239 * symfile.c (test_set_ext_lang_command): Likewise.
4240 * target.c (target_fileio_read_stralloc): Likewise.
4241 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
4242 * value.c (complete_internalvar): Likewise.
4244 2019-06-04 Christian Biesinger <cbiesinger@google.com>
4246 Add objfile property to gdb.Type.
4247 * NEWS: Mention Python API addition.
4248 * python/py-type.c (typy_get_objfile): New method.
4250 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4252 * NEWS: Mention the new set|show style [title|highlight].
4253 Mention changes to "show style", "help" and "apropos".
4255 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4257 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
4258 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
4259 instead of print_help_for_command.
4260 (print_doc_of_command): New function.
4261 (help_list): Add 'apropos -v word' suggestion.
4262 (print_help_for_command): Style the command name using title style.
4263 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
4264 (_initialize_cli_cmds): Describe -v in apropos_command help.
4266 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4268 * cli/cli-style.h (cli_style_option): Add name in constructor,
4269 add m_name class member, add constructor with intensity,
4270 add name class function.
4271 (cli_style_option::add_setshow_commands): Remove name argument.
4272 (highlight_style, title_style): New styles.
4273 * cli/cli-style.c (do_show): New function that shows a style
4274 characteristic styling the style name with itself.
4275 (set_style_name): New function.
4276 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
4277 Update all callers according to the changes in cli/cli-style.h.
4278 * utils.h (fputs_highlighted): New function.
4279 * utils.c (fputs_highlighted): Likewise.
4281 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4283 * NEWS: Mention new pipe command and new convenience variables.
4285 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4287 * cli/cli-cmds.c (pipe_command): New function.
4288 (_initialize_cli_cmds): Call add_com for pipe_command.
4289 Define | as an alias for pipe.
4290 (exit_status_set_internal_vars): New function.
4291 (shell_escape): Call exit_status_set_internal_vars.
4292 cli/cli-decode.c (find_command_name_length): Recognize | as
4293 a single character command.
4295 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4297 * gdbcmd.h (execute_command_to_ui_file): New declaration.
4298 top.c (execute_command_to_ui_file): New function, mostly a copy
4299 of execute_command_to_string.
4300 (execute_command_to_string): Implement by calling
4301 execute_command_to_ui_file.
4303 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4305 * top.h (saved_command_line): Remove declaration.
4306 * top.c (previous_saved_command_line, previous_repeat_arguments):
4308 (saved_command_line): Make static, define together with other
4310 (dont_repeat): Clear repeat_arguments.
4311 (repeat_previous, get_saved_command_line, save_command_line):
4313 (gdb_init): Initialize saved_command_line
4314 and previous_saved_command_line.
4315 * main.c (captured_main_1): Remove saved_command_line initialization.
4316 * event-top.c (handle_line_of_input): Update to use
4317 the new 'repeat' related functions instead of direct access to
4319 * command.h (repeat_previous, get_saved_command_line,
4320 save_command_line): New declarations.
4321 (dont_repeat): Add comment.
4323 2019-05-30 Tom Tromey <tromey@adacore.com>
4325 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
4327 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
4329 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
4332 * completer.c (complete): Initialize variable word.
4334 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
4336 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
4337 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
4338 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
4339 'body' is NULL to the outter 'if', protecting the '!is_define'
4342 2019-05-29 Tom Tromey <tromey@adacore.com>
4344 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
4345 (dwarf_unknown): New function.
4346 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
4347 (dwarf_type_encoding_name): Use dwarf_unknown.
4349 2019-05-29 Tom Tromey <tromey@adacore.com>
4352 * cp-valprint.c (cp_print_value_fields): Call
4353 cp_print_static_field inside "try".
4355 2019-05-29 Tom Tromey <tromey@adacore.com>
4357 * inflow.c (struct terminal_info): Add default operator=.
4358 * configure: Rebuild.
4359 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
4360 -Wdeprecated-copy-dtor, -Wredundant-move.
4362 2019-05-29 Tom Tromey <tromey@adacore.com>
4365 * infcmd.c (print_return_value_1): Handle finish_print
4367 (show_print_finish): New function.
4368 (_initialize_infcmd): Add "set/show print finish" commands.
4369 * valprint.c (user_print_options): Initialize new member.
4370 * valprint.h (struct value_print_options) <finish_print>: New
4373 2019-05-28 Tom Tromey <tromey@adacore.com>
4375 * ada-lang.c (ada_remove_Xbn_suffix)
4376 (find_old_style_renaming_symbol)
4377 (parse_old_style_renaming): Remove.
4378 (ada_find_renaming_symbol): Don't call
4379 find_old_style_renaming_symbol.
4380 (ada_is_renaming_symbol): Rename from
4381 ada_find_renaming_symbol. Remove "block" parameter. Return
4383 (ada_read_var_value): Update and simplify.
4384 * ada-exp.y (write_var_or_type): Remove old code.
4386 2019-05-28 Alan Hayward <alan.hayward@arm.com>
4388 * event-top.c: Remove include comment.
4389 * inflow.c (class scoped_ignore_sigttou): Move from here...
4390 * inflow.h (class scoped_ignore_sigttou): ...to here.
4391 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
4392 * top.c: Remove include comment.
4394 2019-05-27 Tom Tromey <tom@tromey.com>
4398 2019-05-22 Tom Tromey <tromey@adacore.com>
4400 * target.c (target_follow_exec): Constify parameter.
4401 * target-delegates.c: Rebuild.
4402 * remote.c (remote_target::follow_exec): Constify parameter.
4403 * infrun.c (follow_exec): Constify parameter.
4404 * target.h (struct target_ops) <follow_exec>: Constify parameter.
4405 (target_follow_exec): Likewise.
4407 2019-05-22 Alan Hayward <alan.hayward@arm.com>
4409 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
4410 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
4412 2019-05-22 Alan Hayward <alan.hayward@arm.com>
4414 * NEWS: Add debugredirect and testsuite sections.
4416 2019-05-22 Simon Cook <simon.cook@embecosm.com>
4418 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
4419 target descriptions using exclusively floating point register name
4422 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
4425 * f-lang.c (build_fortran_types): Handle the case where
4426 gdbarch_floatformat_for_type returns a nullptr.
4428 2019-05-21 Tom de Vries <tdevries@suse.de>
4431 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
4433 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
4436 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
4438 * i386-tdep.c (i386_floatformat_for_type): Use
4439 floatformats_ia64_quad for the 16-byte floating point component
4440 within a fortran 32-byte complex number.
4442 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
4444 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
4445 delete default constructor.
4446 (find_partial_die): Update to return const struct.
4447 (partial_die_parent_scope): Move variable declaration into scope
4448 of its use and change its type to auto.
4449 (guess_partial_die_structure_name): Likewise.
4450 (partial_die_info::fixup): Likewise.
4452 2019-05-17 Tom Tromey <tromey@adacore.com>
4454 * source.c (find_and_open_source): Remove cast.
4456 2019-05-17 Tom Tromey <tromey@adacore.com>
4458 * annotate.c (annotate_source): Make "filename" const.
4459 * annotate.h (annotate_source): Use const.
4461 2019-05-17 Alan Hayward <alan.hayward@arm.com>
4463 * disasm.c (set_disassembler_options): Send errors to stderr.
4465 2019-05-17 Alan Hayward <alan.hayward@arm.com>
4467 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
4468 (cli_interp_base::set_logging): Check debug_redirect.
4469 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
4470 * cli/cli-logging.c (debug_redirect): Add static variable.
4471 (pop_output_files): Add default param.
4472 (handle_redirections): Print debug setting.
4473 (show_logging_command): Likewise.
4474 (_initialize_cli_logging): Add debugredirect command.
4475 * interps.c (current_interp_set_logging): Add debug_redirect
4477 * interps.h (set_logging): Add debug_redirect parameter.
4478 (current_interp_set_logging): Likewise.
4479 * mi/mi-common.h: Likewise.
4480 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
4482 2019-05-17 Alan Hayward <alan.hayward@arm.com>
4483 Tom Tromey <tromey@adacore.com>
4485 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
4487 * cli/cli-interp.h (make_logging_output): Remove declaration.
4488 * cli/cli-logging.c (make_logging_output): Remove function.
4489 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
4491 * ui-file.c (tee_file::tee_file): Remove bools.
4492 (tee_file::~tee_file): Remove deletes.
4493 * ui-file.h (tee_file): Remove bools.
4495 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
4497 * mi/mi-cmds.h (mi_cmd_complete): New function.
4498 * mi/mi-main.c (mi_cmd_complete): Likewise.
4499 * mi/mi-cmds.c: Define new MI command -complete.
4500 * NEWS: Mention new -complete command.
4502 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
4504 * completer.h (complete): New function.
4505 * completer.c (complete): Likewise.
4506 * cli/cli-cmds.c: (complete_command): Update to use new complete()
4507 function defined in completer.h.
4509 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
4511 * MAINTAINERS (Write After Approval): Add myself.
4513 2019-05-17 Tom de Vries <tdevries@suse.de>
4516 * dwarf2read.c (struct cu_partial_die_info): New struct.
4517 (find_partial_die): Return cu_partial_die_info.
4518 (partial_die_parent_scope, guess_partial_die_structure_name)
4519 (partial_die_info::fixup): Handle new return type of find_partial_die.
4521 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4523 * stap-probe.c (stap_parse_register_operand): Make "regname" an
4524 "std::string", simplifying the algorithm.
4526 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4528 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
4529 (stap_static_probe_ops::get_probes): Likewise.
4531 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4533 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
4534 '-')" and "else if".
4535 (stap_parse_single_operand): Join checks for
4536 "gdbarch_stap_parse_special_token_p" and
4537 "gdbarch_stap_parse_special_token" in the same "if" statement.
4538 Invert check when verifying for operation on register
4541 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4543 * stap-probe.c (stap_get_opcode): Update comment.
4544 (stap_get_expected_argument_type): Likewise.
4545 (handle_stap_probe): Likewise.
4547 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4549 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
4550 return type to 'bool'. Adjust comment. Use 'bool' when
4552 (i386_stap_parse_special_token_three_arg_disp): Likewise.
4553 * stap-probe.c (stap_parse_argument_1): Likewise.
4554 (stap_is_operator): Likewise.
4555 (stap_is_generic_prefix): Likewise.
4556 (stap_is_register_prefix): Likewise.
4557 (stap_is_register_indirection_prefix): Likewise.
4558 (stap_is_integer_prefix): Likewise.
4559 (stap_generic_check_suffix): Likewise.
4560 (stap_check_integer_suffix): Likewise.
4561 (stap_check_register_suffix): Likewise.
4562 (stap_check_register_indirection_suffix): Likewise.
4563 (stap_parse_register_operand): Likewise.
4564 (stap_parse_single_operand): Likewise.
4565 (stap_parse_argument_1): Likewise.
4566 (stap_probe::get_argument_count): Likewise.
4567 (stap_is_operator): Likewise.
4569 2019-05-16 Tom Tromey <tromey@adacore.com>
4571 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
4574 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
4576 * linux-thread-db.c (try_thread_db_load_1): Change return type
4578 (try_thread_db_load): Likewise.
4579 (try_thread_db_load_from_pdir_1): Likewise.
4580 (try_thread_db_load_from_pdir): Likewise.
4581 (try_thread_db_load_from_sdir): Likewise.
4582 (try_thread_db_load_from_dir): Likewise.
4583 (thread_db_load_search): Likewise.
4584 (has_libpthread): Likewise.
4585 (thread_db_load): Likewise.
4587 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
4589 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
4590 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
4591 NULL, and complain/return if that's the case.
4593 2019-05-15 John Darrington <john@darrington.wattle.id.au>
4595 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
4596 (advance, posn, abstract_read_memory): New functions.
4597 [struct mem_read_abstraction]: New struct.
4598 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
4600 2019-05-14 Tom Tromey <tromey@adacore.com>
4602 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
4603 value is not lval_memory.
4605 2019-05-14 Tom Tromey <tromey@adacore.com>
4607 * solib.c (info_sharedlibrary_command): Style the file name.
4609 2019-05-14 Alan Hayward <alan.hayward@arm.com>
4611 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
4612 (aarch64_vnv_type): Likewise.
4613 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
4614 * common/tdesc.c: Likewise.
4615 * common/tdesc.h (enum tdesc_type_kind): Likewise.
4616 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
4617 * features/aarch64-fpu.xml: Add ieee half view.
4618 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
4619 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
4620 * gdbtypes.h (struct builtin_type): Likewise.
4621 (struct objfile_type): Likewise.
4623 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
4625 * language.c (language_sniff_from_mangled_name): Fix "langauge"
4627 * location.h (string_to_event_location): Likewise.
4629 2019-05-11 Joel Brobecker <brobecker@adacore.com>
4633 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
4635 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
4636 New variable declaration.
4637 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
4639 (print_one_breakpoint): Use ui_out::test_flags and new global
4640 variable to compute use_fixed_output.
4641 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
4643 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
4644 (mi_multi_location_breakpoint_output_fixed): Remove.
4645 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
4647 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
4648 fix_multi_location_breakpoint_output flag if version >= 3.
4649 * ui-out.h (enum ui_out_flag)
4650 <fix_multi_location_breakpoint_output>: New enumerator.
4652 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
4654 * contrib/cc-with-tweaks.sh: Validate dwz's work.
4656 2019-05-10 Tom Tromey <tromey@adacore.com>
4658 * ada-lang.c (catch_ada_completer): New function.
4659 (_initialize_ada_language): Use it.
4661 2019-05-10 Tom Tromey <tromey@adacore.com>
4663 * thread.c (print_thread_info): Make "requested_threads" const.
4664 * gdbthread.h (print_thread_info): Make "requested_threads"
4666 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
4667 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
4669 2019-05-08 Tom Tromey <tom@tromey.com>
4671 * gdbtypes.c (objfile_type_data): Change type.
4672 (objfile_type, _initialize_gdbtypes): Update.
4674 2019-05-08 Tom Tromey <tom@tromey.com>
4676 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
4677 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
4678 (_initialize_dwarf2_frame): Update.
4680 2019-05-08 Tom Tromey <tom@tromey.com>
4682 * objc-lang.c (objc_objfile_data): Change type.
4683 (find_methods): Update.
4684 (_initialize_objc_lang): Remove.
4686 2019-05-08 Tom Tromey <tom@tromey.com>
4688 * stabsread.c (rs6000_builtin_type_data): Change type.
4689 (rs6000_builtin_type, _initialize_stabsread): Update.
4691 2019-05-08 Tom Tromey <tom@tromey.com>
4693 * mips-tdep.c (mips_pdr_data): Remove.
4694 (_initialize_mips_tdep): Update.
4696 2019-05-08 Tom Tromey <tom@tromey.com>
4698 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
4699 (hppa_init_objfile_priv_data, read_unwind_info)
4700 (find_unwind_entry, _initialize_hppa_tdep): Update.
4702 2019-05-08 Tom Tromey <tom@tromey.com>
4704 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
4705 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
4707 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
4709 2019-05-08 Tom Tromey <tom@tromey.com>
4711 * mdebugread.c (basic_type_data): Change type.
4712 (basic_type, _initialize_mdebugread): Update.
4714 2019-05-08 Tom Tromey <tom@tromey.com>
4716 * common/gdb_unique_ptr.h (struct noop_deleter): New.
4718 2019-05-08 Tom Tromey <tom@tromey.com>
4720 * nto-tdep.c (nto_inferior_data_reg): Change type.
4721 (nto_inferior_data): Update.
4722 (nto_inferior_data_cleanup, nto_new_inferior_data)
4723 (_initialize_nto_tdep): Remove.
4724 * nto-tdep.h (struct nto_inferior_data): Add initializers.
4726 2019-05-08 Tom Tromey <tom@tromey.com>
4728 * ada-lang.c (struct ada_inferior_data): Add initializers.
4729 (ada_inferior_data): Change type.
4730 (ada_inferior_data_cleanup): Remove.
4731 (get_ada_inferior_data, ada_inferior_exit)
4732 (struct ada_pspace_data): Add initializers, destructor.
4733 (ada_pspace_data_handle): Change type.
4734 (get_ada_pspace_data): Update.
4735 (ada_pspace_data_cleanup): Remove.
4737 2019-05-08 Tom Tromey <tom@tromey.com>
4739 * coffread.c (struct coff_symfile_info): Add initializers.
4740 (coff_objfile_data_key): Move lower. Change type.
4741 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
4743 (coff_free_info): Remove.
4745 2019-05-08 Tom Tromey <tom@tromey.com>
4747 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
4748 (fbsd_pspace_data_handle): Move lower. Change type.
4749 (get_fbsd_pspace_data): Update.
4750 (fbsd_pspace_data_cleanup): Remove.
4751 (_initialize_fbsd_tdep): Update.
4753 2019-05-08 Tom Tromey <tom@tromey.com>
4755 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
4756 (get_ada_tasks_pspace_data): Update.
4757 (ada_tasks_pspace_data_cleanup): Remove.
4758 (_initialize_tasks): Update.
4759 (ada_tasks_inferior_data_handle): Change type.
4760 (get_ada_tasks_inferior_data): Update.
4761 (ada_tasks_inferior_data_cleanup): Remove.
4762 (struct ada_tasks_pspace_data): Add initializers.
4764 2019-05-08 Tom Tromey <tom@tromey.com>
4766 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
4767 * symfile-debug.c (debug_sym_get_probes): Change type.
4768 * stap-probe.c (handle_stap_probe):
4769 (stap_static_probe_ops::get_probes): Change type.
4770 * probe.h (class static_probe_ops) <get_probes>: Change type.
4771 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
4772 (parse_probes_in_pspace): Update.
4773 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
4775 (any_static_probe_ops::get_probes): Change type.
4776 * elfread.c (elfread_data): New typedef.
4777 (probe_key): Change type.
4778 (elf_get_probes): Likewise. Update.
4779 (probe_key_free): Remove.
4780 (_initialize_elfread): Update.
4781 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
4783 (dtrace_process_dof_probe, dtrace_process_dof)
4784 (dtrace_static_probe_ops::get_probe): Change type.
4786 2019-05-08 Tom Tromey <tom@tromey.com>
4788 * xcoffread.c (struct xcoff_symfile_info): Rename from
4789 coff_symfile_info. Add initializers.
4790 (xcoff_objfile_data_key): Move lower. Change type.
4791 (XCOFF_DATA): Rewrite.
4792 (xcoff_free_info): Remove.
4793 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
4794 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
4795 (xcoff_initial_scan): Update.
4797 2019-05-08 Tom Tromey <tom@tromey.com>
4799 * solib-svr4.c (struct svr4_info): Add initializers and
4801 <probes_table>: Now an htab_up.
4802 (solib_svr4_pspace_data): Change type.
4803 (free_probes_table): Simplify.
4804 (~svr4_info): Rename from svr4_pspace_data_cleanup.
4805 (get_svr4_info, probes_table_htab_remove_objfile_probes)
4806 (probes_table_remove_objfile_probes, register_solib_event_probe)
4807 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
4808 (_initialize_svr4_solib): Update.
4810 2019-05-08 Tom Tromey <tom@tromey.com>
4812 * remote.c (remote_pspace_data): Change type.
4813 (remote_pspace_data_cleanup): Remove.
4814 (get_remote_exec_file, set_pspace_remote_exec_file)
4815 (_initialize_remote): Update.
4817 2019-05-08 Tom Tromey <tom@tromey.com>
4819 * breakpoint.c (breakpoint_objfile_key): Change type.
4820 (get_breakpoint_objfile_data): Update.
4821 (free_breakpoint_objfile_data): Remove.
4822 (_initialize_breakpoint): Update.
4824 2019-05-08 Tom Tromey <tom@tromey.com>
4826 * linux-tdep.c (struct linux_info): Add initializers.
4827 (linux_inferior_data): Move. Change type.
4828 (invalidate_linux_cache_inf): Update.
4829 (linux_inferior_data_cleanup): Remove.
4830 (get_linux_inferior_data, _initialize_linux_tdep): Update.
4832 2019-05-08 Tom Tromey <tom@tromey.com>
4834 * auxv.c (auxv_inferior_data): Move. Change type.
4835 (auxv_inferior_data_cleanup): Remove.
4836 (invalidate_auxv_cache_inf): Rewrite.
4837 (get_auxv_inferior_data, _initialize_auxv): Update.
4839 2019-05-08 Tom Tromey <tom@tromey.com>
4841 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
4842 (symfile_debug_objfile_data_key): Change type.
4843 (symfile_debug_installed, debug_qf_has_symbols)
4844 (debug_qf_find_last_source_symtab)
4845 (debug_qf_forget_cached_source_info)
4846 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
4847 (debug_qf_print_stats, debug_qf_dump)
4848 (debug_qf_expand_symtabs_for_function)
4849 (debug_qf_expand_all_symtabs)
4850 (debug_qf_expand_symtabs_with_fullname)
4851 (debug_qf_map_matching_symbols)
4852 (debug_qf_expand_symtabs_matching)
4853 (debug_qf_find_pc_sect_compunit_symtab)
4854 (debug_qf_map_symbol_filenames)
4855 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
4856 (debug_sym_new_init, debug_sym_init, debug_sym_read)
4857 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
4858 (debug_sym_read_linetable, debug_sym_relocate): Update.
4859 (symfile_debug_free_objfile): Remove.
4860 (install_symfile_debug_logging, _initialize_symfile_debug):
4863 2019-05-08 Tom Tromey <tom@tromey.com>
4865 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
4866 allocate_on_obstack.
4867 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
4868 (get_dwarf2_per_objfile): Update.
4869 (set_dwarf2_per_objfile): Remove.
4870 (dwarf2_has_info, dwarf2_get_section_info): Update.
4871 (dwarf2_free_objfile): Remove.
4872 (_initialize_dwarf2_read): Update.
4874 2019-05-08 Tom Tromey <tom@tromey.com>
4876 * auto-load.c (struct auto_load_pspace_info): Add destructor and
4878 <unsupported_script_warning_printed,
4879 script_not_found_warning_printed>: Now bool.
4880 (auto_load_pspace_data): Change type.
4881 (~auto_load_pspace_info): Rename from
4882 auto_load_pspace_data_cleanup.
4883 (get_auto_load_pspace_data, init_loaded_scripts_info)
4884 (clear_section_scripts, maybe_print_unsupported_script_warning)
4885 (maybe_print_script_not_found_warning, _initialize_auto_load):
4888 2019-05-08 Tom Tromey <tom@tromey.com>
4890 * objfiles.c (objfile_pspace_info): Add destructor and
4892 (objfiles_pspace_data): Change type.
4893 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
4894 (get_objfile_pspace_data): Update.
4895 (objfiles_bfd_data): Change type.
4896 (get_objfile_bfd_data): Update.
4897 (objfile_bfd_data_free, _initialize_objfiles): Remove.
4899 2019-05-08 Tom Tromey <tom@tromey.com>
4901 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
4903 (get_catch_syscall_inferior_data): Update.
4904 (catch_syscall_inferior_data_cleanup): Remove.
4905 (_initialize_break_catch_syscall): Update.
4907 2019-05-08 Tom Tromey <tom@tromey.com>
4909 * inflow.c (struct terminal_info): Add destructor and
4911 (inflow_inferior_data): Change type.
4912 (~terminal_info): Rename from inflow_inferior_data_cleanup.
4913 (get_inflow_inferior_data, inflow_inferior_exit)
4914 (swap_terminal_info, _initialize_inflow): Update.
4916 2019-05-08 Tom Tromey <tom@tromey.com>
4918 * target-dcache.c (target_dcache_cleanup): Remove.
4919 (target_dcache_aspace_key): Change type.
4920 (target_dcache_init_p, target_dcache_invalidate)
4921 (target_dcache_get, target_dcache_get_or_init)
4922 (_initialize_target_dcache): Update.
4923 * dcache.h (struct dcache_deleter): New.
4925 2019-05-08 Tom Tromey <tom@tromey.com>
4927 * symtab.c (struct symbol_cache): Add destructor and
4929 (symbol_cache_key): Move. Change type.
4930 (make_symbol_cache, free_symbol_cache): Remove.
4931 (get_symbol_cache): Update.
4932 (symbol_cache_cleanup): Remove.
4933 (ALL_PSPACES, symbol_cache_flush)
4934 (maintenance_print_symbol_cache)
4935 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
4938 2019-05-08 Tom Tromey <tom@tromey.com>
4940 * symtab.c (struct main_info): Add destructor and initializers.
4941 (main_progspace_key): Move. Change type.
4942 (get_main_info): Update.
4943 (main_info_cleanup): Remove.
4944 (_initialize_symtab): Update.
4946 2019-05-08 Tom Tromey <tom@tromey.com>
4948 * registry.h (DECLARE_REGISTRY): Define the _key class.
4950 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
4952 * NEWS: Merge two 'New commands' sections.
4954 2019-05-08 Joel Brobecker <brobecker@adacore.com>
4956 * ada-valprint.c (ada_val_print_gnat_array): Remove language
4957 parameter and use Ada language definition instead.
4958 (ada_val_print_ptr): Remove unused language parameter.
4959 (ada_val_print_num): Remove language parameter and use Ada language
4961 (ada_val_print_enum, ada_val_print_flt): Remove unused language
4963 (ada_val_print_struct_union, ada_val_print_ref): Remove language
4964 parameter and use Ada language definition instead.
4965 (ada_val_print_1): Update all ada_val_print_xxx calls.
4966 Remove language parameter.
4967 (ada_val_print): Update ada_val_print_1 call.
4969 2019-05-08 Tom Tromey <tromey@adacore.com>
4971 * remote.c (remote_hw_watchpoint_limit)
4972 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
4975 2019-05-08 Tom Tromey <tromey@adacore.com>
4977 * maint.c (_initialize_maint_cmds): Move initialization code to
4979 (watchdog, show_watchdog): Move to remote.c.
4980 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
4982 (_initialize_remote): Move initialization code from maint.c.
4983 * defs.h (watchdog): Don't declare.
4985 2019-05-08 Tom Tromey <tromey@adacore.com>
4987 * tui/tui-interp.c: Include main.h.
4988 * interps.c: Include main.h.
4989 * main.h (interpreter_p): Declare.
4990 * defs.h (interpreter_p): Don't declare.
4992 2019-05-08 Tom Tromey <tromey@adacore.com>
4994 * dwarf2loc.c: Include dwarf2read.h.
4995 * defs.h (read_unsigned_leb128): Don't declare.
4996 * dwarf2read.h (read_unsigned_leb128): Declare.
4998 2019-05-08 Tom Tromey <tromey@adacore.com>
5000 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
5003 2019-05-08 Tom Tromey <tromey@adacore.com>
5005 * utils.c (fputs_maybe_filtered): Reset style after paging, even
5006 when no wrap column is set.
5008 2019-05-08 Tom Tromey <tromey@adacore.com>
5010 * c-lang.c (c_get_string): Handle non-C-style arrays.
5012 2019-05-08 Tom Tromey <tromey@adacore.com>
5014 * typeprint.c (print_offset_data::update): Print the bit offset,
5015 not the number of bits remaining.
5017 2019-05-08 Tom Tromey <tromey@adacore.com>
5019 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
5020 padding at end of comment.
5022 2019-05-08 Tom Tromey <tromey@adacore.com>
5024 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
5027 2019-05-06 Tom Tromey <tom@tromey.com>
5029 * common/scoped_mmap.c: Include common-defs.h.
5030 * common/scoped_mmap.h: Don't include config.h.
5032 2019-05-04 Tom Tromey <tom@tromey.com>
5034 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
5035 (struct aarch64_call_info): Add initializers.
5036 <si>: Now a std::vector.
5037 (pass_on_stack, aarch64_push_dummy_call): Update.
5039 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
5040 Tom Tromey <tom@tromey.com>
5042 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
5043 (ppc_threads): Now a std::vector. Now static.
5044 (hwdebug_find_thread_points_by_tid)
5045 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
5048 2019-05-04 Tom Tromey <tom@tromey.com>
5050 * arc-tdep.c (arc_tdesc_init): Return bool.
5052 2019-05-04 Tom Tromey <tom@tromey.com>
5054 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
5055 Use gdb_assert_not_reached.
5057 2019-05-04 Tom Tromey <tom@tromey.com>
5059 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
5062 2019-05-04 Tom Tromey <tom@tromey.com>
5064 * arc-tdep.c (arc_tdesc_init): Use bool.
5066 2019-05-04 Tom Tromey <tom@tromey.com>
5068 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
5070 2019-05-04 Tom Tromey <tom@tromey.com>
5072 * cli/cli-cmds.c (valid_command_p): Return bool.
5074 2019-05-04 Tom Tromey <tom@tromey.com>
5076 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
5077 * command.h (valid_user_defined_cmd_name_p): Channge return type.
5079 2019-05-04 Raul Tambre <raul@tambre.ee>
5081 * python/lib/gdb/prompt.py (_ExtendedPrompt)
5082 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
5083 operator for comparison.
5085 2019-05-04 Tom Tromey <tom@tromey.com>
5087 * psymtab.c (psymbol_name_matches, match_partial_symbol)
5088 (lookup_partial_symbol, print_partial_symbols)
5089 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
5090 (psymbol_compare): Update.
5091 (add_psymbol_to_bcache): Clear the entire psymbol.
5092 (maintenance_check_psymtabs): Update.
5093 * psympriv.h (struct partial_symbol): Don't derive from
5094 general_symbol_info.
5095 <obj_section, unrelocated_address, address,
5096 set_unrelocated_address>: Update.
5097 <ginfo>: New member.
5098 * dwarf-index-write.c (write_psymbols, debug_names::insert)
5099 (debug_names::write_psymbols): Update.
5101 2019-05-04 Tom de Vries <tdevries@suse.de>
5103 * contrib/cc-with-tweaks.sh: Support -n arg.
5105 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5107 * corelow.c (core_target::detach): Ensure frame cache and
5108 register caches are cleared.
5109 inferior.c (exit_inferior_1): Likewise.
5111 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
5112 Tom Tromey <tom@tromey.com>
5114 * dictionary.c (collate_pending_symbols_by_language): Remove
5115 "struct" from foreach.
5116 * symtab.c (lookup_global_symbol_from_objfile)
5117 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
5119 * ser-tcp.c (net_open): Remove "struct" from foreach.
5120 * objfiles.c (objfile_relocate, objfile_rebase)
5121 (objfile_has_symbols): Remove "struct" from foreach.
5122 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
5124 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
5126 * darwin-nat.c (thread_info_from_private_thread_info): Remove
5127 "struct" from foreach.
5128 * ada-lang.c (create_excep_cond_exprs)
5129 (ada_exception_catchpoint_cond_string): Remove "struct" from
5132 2019-05-03 Tom Tromey <tromey@adacore.com>
5134 * ada-exp.y (convert_char_literal): Check suffix of each
5137 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
5140 * ada-exp.y (yywrap): Don't define.
5141 * ada-lex.l (%option): Add noyywrap
5144 2019-05-03 Eli Zaretskii <eliz@gnu.org>
5146 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
5147 _WIN32_WINNT to the XP level, unless already defined to a higher
5150 * unittests/parse-connection-spec-selftests.c:
5152 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
5155 * symfile.c (find_separate_debug_file): Remove colon from the
5156 drive spec of DOS/Windows file names of the target, so that the
5157 file name produced from DEBUGDIR and the target's directory will
5158 be valid on DOS/Windows systems.
5160 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
5162 * rust-lang.c (val_print_struct): Handle printing structures
5165 2019-05-02 Tom Tromey <tromey@adacore.com>
5167 * valarith.c (_initialize_valarith): Remove.
5169 2019-05-01 Tom Tromey <tromey@adacore.com>
5171 * ada-lang.c (ada_value_primitive_field): Treat more fields as
5174 2019-05-01 Tom Tromey <tromey@adacore.com>
5176 * ada-lang.c (ada_value_assign): Correctly compute starting offset
5177 for big-endian copies.
5179 2019-04-30 Ali Tamur <tamur@google.com>
5180 * gdb/dwarf2read.c (read_3_bytes): New declaration.
5181 (read_attribute_value): Added DW_FORM_strx1-4 cases.
5182 (read_3_bytes): New function.
5184 2019-04-30 Joel Brobecker <brobecker@adacore.com>
5186 * windows-nat.c (main_thread_id): Delete.
5187 (handle_output_debug_string): Replace main_thread_id by
5188 current_event.dwThreadId.
5189 (fake_create_process): Likewise.
5190 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
5191 Do not set main_thread_id.
5192 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
5193 current_event.dwThreadId.
5194 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
5196 2019-04-30 Joel Brobecker <brobecker@adacore.com>
5198 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
5199 Use current_event.dwThreadId instead of main_thread_id.
5201 2019-04-30 Tom Tromey <tromey@adacore.com>
5203 * ada-lang.c (ada_lookup_simple_minsyms): New function.
5204 (create_excep_cond_exprs): Iterate over program spaces.
5205 (ada_exception_catchpoint_cond_string): Examine all minimal
5206 symbols for exception types.
5208 2019-04-30 Tom Tromey <tromey@adacore.com>
5211 * dwarf2read.c (process_structure_scope): Handle case where type
5212 has template parameters but no symbol was created.
5214 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5215 Chris January <chris.january@arm.com>
5217 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
5219 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
5221 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5223 * f-typeprint.c (f_print_type): Update rules for printing
5225 (f_type_print_varspec_suffix): Likewise.
5227 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5228 Chris January <chris.january@arm.com>
5230 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
5233 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5235 * f-lang.c (build_fortran_types): Change name of void type to
5237 * f-typeprint.c (f_type_print_base): Print the name of the void
5238 type, rather than a fixed string.
5239 * f-valprint.c (f_decorations): Use lower case void string.
5241 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5242 Chris January <chris.january@arm.com>
5244 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
5247 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5248 Chris January <chris.january@arm.com>
5249 David Lecomber <david.lecomber@arm.com>
5251 * f-exp.y (BINOP_INTRINSIC): New token.
5252 (exp): New parser rule handling BINOP_INTRINSIC.
5253 (f77_keywords): Add new builtin procedures.
5254 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
5255 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5256 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
5257 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5258 (print_unop_subexp_f): New function.
5259 (print_binop_subexp_f): New function.
5260 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
5261 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5262 (dump_subexp_body_f): Likewise.
5263 (operator_check_f): Likewise.
5264 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
5265 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
5267 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5269 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
5271 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
5272 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
5273 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
5274 (operator_length_f): New fuction.
5275 (print_subexp_f): New function.
5276 (op_name_f): New function.
5277 (dump_subexp_body_f): New function.
5278 (operator_check_f): New function.
5279 (exp_descriptor_f): Replace standard expression handling functions
5281 * gdb/fortran-operator.def: New file.
5282 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
5283 * gdb/std-operator.def: Remove UNOP_KIND.
5285 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5287 * std-operator.def: Remove unbalanced, stray double quote
5290 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5291 Chris January <chris.january@arm.com>
5292 Daniel Everett <daniel.everett@arm.com>
5293 Nick Forrington <nick.forrington@arm.com>
5294 Richard Bunt <richard.bunt@arm.com>
5296 * cp-valprint.c (cp_print_value_fields): Allow an additional level
5297 of depth when printing anonymous structs or unions.
5298 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
5299 Don't print either the top-level value, or the children if the
5300 max-depth is exceeded.
5301 (ppscm_print_children): When printing the key of a map, allow one
5302 extra level of depth.
5303 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
5304 print either the top-level value, or the children if the max-depth
5306 (print_children): When printing the key of a map, allow one extra
5308 * python/py-value.c (valpy_format_string): Add max_depth keyword.
5309 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
5310 (user_print_options): Initialise max_depth field.
5311 (val_print_scalar_or_string_type_p): New function.
5312 (val_print): Check to see if the max depth has been reached.
5313 (val_print_check_max_depth): Define new function.
5314 (show_print_max_depth): New function.
5315 (_initialize_valprint): Add 'print max-depth' option.
5316 * valprint.h (struct value_print_options) <max_depth>: New field.
5317 (val_print_check_max_depth): Declare new function.
5318 * NEWS: Document new feature.
5320 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5322 * ada-lang.c (ada_language_defn): Initialise new field.
5323 * c-lang.c (c_is_string_type_p): New function.
5324 (c_language_defn): Initialise new field.
5325 (cplus_language_defn): Initialise new field.
5326 (asm_language_defn): Initialise new field.
5327 (minimal_language_defn): Initialise new field.
5328 * c-lang.h (c_is_string_type_p): Declare new function.
5329 * d-lang.c (d_language_defn): Initialise new field.
5330 * f-lang.c (f_is_string_type_p): New function.
5331 (f_language_defn): Initialise new field.
5332 * go-lang.c (go_is_string_type_p): New function.
5333 (go_language_defn): Initialise new field.
5334 * language.c (default_is_string_type_p): New function.
5335 (unknown_language_defn): Initialise new field.
5336 (auto_language_defn): Initialise new field.
5337 * language.h (struct language_defn) <la_is_string_type_p>: New
5339 (default_is_string_type_p): Declare new function.
5340 * m2-lang.c (m2_language_defn): Initialise new field.
5341 * objc-lang.c (objc_language_defn): Initialise new field.
5342 * opencl-lang.c (opencl_language_defn): Initialise new field.
5343 * p-lang.c (pascal_is_string_type_p): New function.
5344 (pascal_language_defn): Initialise new field.
5345 * rust-lang.c (rust_is_string_type_p): New function.
5346 (rust_language_defn): Initialise new field.
5348 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5350 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
5352 * ada-lang.c (ada_language_defn): Initialise new field.
5353 * c-lang.c (c_language_defn): Likewise.
5354 (cplus_language_defn): Likewise.
5355 (asm_language_defn): Likewise.
5356 (minimal_language_defn): Likewise.
5357 * d-lang.c (d_language_defn): Likewise.
5358 * f-lang.c (f_language_defn): Likewise.
5359 * go-lang.c (go_language_defn): Likewise.
5360 * language.c (unknown_language_defn): Likewise.
5361 (auto_language_defn): Likewise.
5362 * m2-lang.c (m2_language_defn): Likewise.
5363 * objc-lang.c (objc_language_defn): Likewise.
5364 * opencl-lang.c (opencl_language_defn): Likewise.
5365 * p-lang.c (pascal_language_defn): Likewise.
5366 * rust-lang.c (rust_language_defn): Likewise.
5368 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5370 * ada-lang.c (ada_is_character_type): Change return type to bool.
5371 (ada_is_string_type): Likewise.
5372 * ada-lang.h (ada_is_character_type): Update declaration
5373 (ada_is_string_type): Likewise.
5375 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5377 Support style in 'frame|thread apply'
5379 * gdbcmd.h (execute_command_to_string): New term_out parameter.
5380 * record.c (record_start, record_stop): Update callers of
5381 execute_command_to_string with false.
5382 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
5383 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
5385 (class string_file): New constructor with term_out parameter.
5386 Override methods term_out and can_emit_style_escape. New member
5388 (class stdio_file): Override can_emit_style_escape.
5389 (class tee_file): Override term_out and can_emit_style_escape.
5390 * utils.h (can_emit_style_escape): Remove.
5391 * utils.c (can_emit_style_escape): Likewise.
5392 Update all callers of can_emit_style_escape (SOMESTREAM) to
5393 SOMESTREAM->can_emit_style_escape.
5394 * source-cache.c (source_cache::get_source_lines): Likewise.
5395 * stack.c (frame_apply_command_count): Call execute_command_to_string
5396 passing the term_out characteristic of the current gdb_stdout.
5397 * thread.c (thr_try_catch_cmd): Likewise.
5398 * top.c (execute_command_to_string): pass term_out parameter
5399 to construct the string_file for the command output.
5400 * ui-file.c (term_cli_styling): New function (most code moved
5401 from utils.c can_emit_style_escape).
5402 (string_file::string_file, string_file::can_emit_style_escape,
5403 stdio_file::can_emit_style_escape, tee_file::term_out,
5404 tee_file::can_emit_style_escape): New functions.
5406 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5408 * NEWS: Mention the new set|show may-call-functions.
5409 * infcall.c (may_call_functions_p): New variable.
5410 (show_may_call_functions_p): New function.
5411 (call_function_by_hand_dummy): Throws an error if not
5413 (_initialize_infcall): Call add_setshow_boolean_cmd for
5416 2019-04-25 Keith Seitz <keiths@redhat.com>
5419 * cp-support.c (inspect_type): Don't attempt substitutions
5420 of symbol with the same name.
5422 2019-04-25 Tom Tromey <tromey@adacore.com>
5425 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
5428 2019-04-25 Tom Tromey <tromey@adacore.com>
5430 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
5432 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
5433 (gdb_xml_parser::parse): Use std::move.
5434 * python/python-internal.h (gdbpy_convert_exception): Take a const
5436 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
5438 * python/py-utils.c (gdbpy_convert_exception): Take a const
5440 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
5442 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
5444 * mi/mi-main.c (mi_print_exception): Take a const reference.
5445 * main.c (handle_command_errors): Take a const reference.
5446 * linespec.c (parse_linespec): Use std::move.
5447 * infcall.c (run_inferior_call): Use std::move.
5448 (call_function_by_hand_dummy): Use std::move.
5449 * exec.c (try_open_exec_file): Use std::move.
5450 * exceptions.h (exception_print, exception_fprintf)
5451 (exception_print_same): Update.
5452 * exceptions.c (print_exception, exception_print)
5453 (exception_fprintf, exception_print_same): Change parameters to
5455 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
5456 * common/new-op.c: Use std::move.
5457 * common/common-exceptions.h (struct gdb_exception): Add move
5459 (struct gdb_exception_error, struct gdb_exception_quit, struct
5460 gdb_quit_bad_alloc): Change constructor to move constructor.
5461 (throw_exception): Change parameter to rvalue reference.
5462 * common/common-exceptions.c (throw_exception): Take rvalue
5464 * cli/cli-interp.c (safe_execute_command): Use std::move.
5465 * breakpoint.c (insert_bp_location, location_to_sals): Use
5468 2019-04-25 Tom Tromey <tromey@adacore.com>
5470 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
5471 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
5472 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
5473 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
5474 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
5475 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
5476 guile/scm-value.c: Use unpack.
5477 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
5478 gdbscm_gdb_exception.
5479 (gdbscm_throw_gdb_exception): Likewise.
5480 (struct gdbscm_gdb_exception): New.
5481 (unpack): New function.
5482 (gdbscm_wrap): Use unpack.
5484 2019-04-25 Tom Tromey <tromey@adacore.com>
5486 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
5487 (gdb_rl_callback_handler): Use std::move.
5488 * common/common-exceptions.h (struct gdb_exception): Add move
5489 assignment operator.
5490 (throw_exception_sjlj): Change "exception" to const reference.
5491 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
5492 (throw_exception_sjlj): Change "exception" to const reference.
5494 2019-04-25 Tom Tromey <tromey@adacore.com>
5496 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
5497 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
5498 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
5500 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
5502 * mi/mi-interp.c (mi_interp::exec): Update.
5503 * linespec.c (parse_linespec): Update.
5504 * infcall.c (run_inferior_call): Update.
5505 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
5506 * guile/scm-symbol.c (gdbscm_lookup_symbol)
5507 (gdbscm_lookup_global_symbol): Update.
5508 * guile/scm-param.c (gdbscm_parameter_value): Update.
5509 * guile/scm-frame.c (gdbscm_frame_read_register)
5510 (gdbscm_frame_read_var): Update.
5511 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
5512 * exec.c (try_open_exec_file): Update.
5513 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
5514 (gdb_rl_callback_handler): Update.
5515 * common/common-exceptions.h (exception_none): Don't declare.
5516 * common/common-exceptions.c (exception_none): Don't define.
5517 (struct catcher) <exception>: Update.
5518 * cli/cli-interp.c (safe_execute_command): Update.
5519 * breakpoint.c (insert_bp_location, location_to_sals): Update.
5521 2019-04-25 Ali Tamur <tamur@google.com>
5523 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
5524 (read_attribute_value): Likewise.
5525 (dwarf2_read_addr_index): Update comment.
5526 (read_str_index): Add DW_FORM_strx.
5527 (dwarf2_string_attr): Likewise.
5528 (dwarf2_const_value_attr): Likewise.
5529 (dump_die_shallow): Likewise.
5530 (dwarf2_fetch_constant_bytes): Likewise.
5531 (skip_form_bytes): Likewise.
5532 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
5534 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
5538 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
5539 OFFSET. Verify if current mapping contains an ELF header.
5540 (linux_find_memory_regions_full): Adjust call to
5543 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
5544 Kang Li <kanglictf@gmail.com>
5548 * dwarf2-frame.c (read_initial_length): Be consistent about using
5549 unsigned representation of length.
5550 (decode_frame_entry_1): Likewise. Check for wraparound of
5551 end pointer as well as buffer overflow.
5553 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
5555 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
5558 2019-04-24 Tom Tromey <tromey@adacore.com>
5560 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
5562 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5564 * s12z-tdep.c (s12z_unwind_pc): Delete.
5565 (s12z_unwind_sp): Delete.
5566 (s12z_gdbarch_init): Don't register deleted functions with
5569 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5571 * rl78-tdep.c (rl78_unwind_sp): Delete.
5572 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
5574 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5576 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
5577 (xstormy16_unwind_pc): Delete.
5578 (xstormy16_dummy_id): Delete.
5579 (xstormy16_gdbarch_init): Don't register deleted functions with
5582 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5584 * vax-tdep.c (vax_unwind_pc): Delete.
5585 (vax_gdbarch_init): Don't register deleted function with gdbarch.
5587 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5589 * v850-tdep.c (v850_unwind_sp): Delete.
5590 (v850_unwind_pc): Delete.
5591 (v850_dummy_id): Delete.
5592 (v850_gdbarch_init): Don't register deleted functions with
5595 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5597 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
5598 (tilegx_unwind_pc): Delete.
5599 (tilegx_unwind_dummy_id): Delete.
5600 (tilegx_gdbarch_init): Don't register deleted functions with
5603 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5605 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
5606 (tic6x_dummy_id): Delete.
5607 (tic6x_gdbarch_init): Don't register deleted functions with
5610 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5612 * sparc-tdep.c (sparc_unwind_pc): Delete.
5613 (sparc32_gdbarch_init): Don't register deleted function with
5616 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5618 * sh-tdep.c (sh_unwind_sp): Delete.
5619 (sh_unwind_pc): Delete.
5620 (sh_dummy_id): Delete.
5621 (sh_gdbarch_init): Don't register deleted functions with
5624 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5626 * score-tdep.c (score_unwind_sp): Delete.
5627 (score_unwind_pc): Delete.
5628 (score_dummy_id): Delete.
5629 (score_gdbarch_init): Don't register deleted functions with
5632 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5634 * rx-tdep.c (rx_unwind_pc): Delete.
5635 (rx_unwind_sp): Delete.
5636 (rx_dummy_id): Delete.
5637 (rx_gdbarch_init): Don't register deleted functions with
5638 gdbarch. Update comment.
5640 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5642 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
5643 (rs6000_dummy_id): Delete.
5644 (rs6000_gdbarch_init): Don't register deleted functions with
5647 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5649 * or1k-tdep.c (or1k_dummy_id): Delete.
5650 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
5652 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5654 * nios2-tdep.c (nios2_dummy_id): Delete.
5655 (nios2_unwind_sp): Delete.
5656 (nios2_gdbarch_init): Don't register deleted functions with
5659 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5661 * nds32-tdep.c (nds32_dummy_id): Delete.
5662 (nds32_unwind_pc): Delete.
5663 (nds32_unwind_sp): Delete.
5664 (nds32_gdbarch_init): Don't register deleted functions with
5667 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5669 * msp430-tdep.c (msp430_unwind_pc): Delete.
5670 (msp430_unwind_sp): Delete.
5671 (msp430_dummy_id): Delete.
5672 (msp430_gdbarch_init): Don't register deleted functions with
5675 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5677 * moxie-tdep.c (moxie_unwind_sp): Delete.
5678 (moxie_unwind_pc): Delete.
5679 (moxie_dummy_id): Delete.
5680 (moxie_gdbarch_init): Don't register deleted functions with
5683 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5685 * mn10300-tdep.c (mn10300_dummy_id): Delete.
5686 (mn10300_unwind_pc): Delete.
5687 (mn10300_unwind_sp): Delete.
5688 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
5690 (mn10300_frame_unwind_init): Don't register deleted functions with
5693 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5695 * mep-tdep.c (mep_unwind_pc): Delete.
5696 (mep_unwind_sp): Delete.
5697 (mep_dummy_id): Delete.
5698 (mep_gdbarch_init): Don't register deleted functions with
5701 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5703 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
5704 (m68hc11_unwind_sp): Delete.
5705 (m68hc11_gdbarch_init): Don't register deleted functions with
5708 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5710 * m32r-tdep.c (m32r_unwind_sp): Delete.
5711 (m32r_unwind_pc): Delete.
5712 (m32r_dummy_id): Delete.
5713 (m32r_gdbarch_init): Don't register deleted functions with
5716 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5718 * m32c-tdep.c (m32c_unwind_pc): Delete.
5719 (m32c_unwind_sp): Delete.
5720 (m32c_dummy_id): Delete.
5721 (m32c_gdbarch_init): Don't register deleted functions with
5724 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5726 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
5727 (lm32_unwind_pc): Delete.
5728 (lm32_dummy_id): Delete.
5729 (lm32_gdbarch_init): Don't register deleted functions with
5732 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5734 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
5735 (iq2000_unwind_pc): Delete.
5736 (iq2000_dummy_id): Delete.
5737 (iq2000_gdbarch_init): Don't register deleted functions with
5740 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5742 * nds32-tdep.c (nds32_type_align): Delete.
5743 (nds32_push_dummy_call): Use type_align instead.
5745 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5747 * arm-tdep.c (arm_type_align): Only handle vector override case.
5748 (arm_push_dummy_call): Use type_align.
5749 (arm_gdbarch_init): Register arm_type_align gdbarch function.
5751 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5753 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
5755 (pass_on_stack): Use type_align.
5756 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
5759 2019-04-23 Tom Tromey <tromey@adacore.com>
5761 * dwarf2read.c (line_header::file_name_at): Remove unused
5764 2019-04-23 Tom de Vries <tdevries@suse.de>
5767 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
5771 2019-03-27 Ali Tamur <tamur@google.com>
5773 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
5774 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
5775 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
5776 (dwarf_expr_context::get_addr_index): Likewise
5777 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
5778 (symbol_needs_eval_context::get_addr_index): Likewise
5779 (disassemble_dwarf_expression): Add DW_OP_addrx
5780 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
5781 (read_cutu_die_from_dwo): Update comment
5782 (skip_one_die): Add DW_FORM_addrx
5783 (read_attribute_value): Likewise
5784 (var_decode_location): Add DW_OP_addrx
5785 (dwarf2_const_value_attr): Add DW_FORM_addrx
5786 (dump_die_shallow): Likewise
5787 (dwarf2_fetch_constant_bytes): Likewise
5788 (decode_locdesc): Add DW_OP_addrx
5789 (skip_form_bytes): Add DW_FORM_addrx
5791 2019-04-22 Ali Tamur <tamur@google.com>
5793 * MAINTAINERS (Write After Approval): Add self.
5795 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
5797 * solib-svr4.c (get_svr4_info): Add pspace parameter.
5798 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
5799 (open_symbol_file_object): Likewise.
5800 (svr4_default_sos): Add info parameter.
5801 (svr4_read_so_list): Likewise.
5802 (svr4_current_sos_direct): Adjust functions calls to pass down
5804 (svr4_current_sos_1): Add info parameter.
5805 (svr4_current_sos): Call get_svr4_info, pass info down to
5807 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
5809 (svr4_in_dynsym_resolve_code): Pass current_program_space to
5811 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
5813 (probes_table_remove_objfile_probes): Likewise.
5814 (register_solib_event_probe): Add info parameter.
5815 (solist_update_incremental): Pass info parameter down to
5817 (disable_probes_interface): Add info parameter.
5818 (svr4_handle_solib_event): Pass current_program_space to
5819 get_svr4_info. Adjust disable_probes_interface cleanup.
5820 (svr4_create_probe_breakpoints): Add info parameter, pass it
5821 down to register_solib_event_probe.
5822 (svr4_create_solib_event_breakpoints): Add info parameter,
5823 pass it down to svr4_create_probe_breakpoints.
5824 (enable_break): Pass info down to
5825 svr4_create_solib_event_breakpoints.
5826 (svr4_solib_create_inferior_hook): Pass current_program_space to
5828 (svr4_clear_solib): Likewise.
5830 2019-04-22 Pedro Alves <palves@redhat.com>
5832 * solib-svr4.c (svr4_free_objfile_observer): New.
5833 (probe_and_action::objfile): New field.
5834 (probes_table_htab_remove_objfile_probes)
5835 (probes_table_remove_objfile_probes): New functions.
5836 (register_solib_event_probe): Add 'objfile' parameter. Store it
5837 in the new probe_and_action. Don't store the probe in 'lookup'.
5838 (svr4_create_probe_breakpoints): Pass objfile to
5839 register_solib_event_probe.
5840 (_initialize_svr4_solib): Register a free_objfile observer.
5842 2019-04-19 Tom Tromey <tom@tromey.com>
5844 * common/queue.h: Remove.
5846 2019-04-19 Tom Tromey <tom@tromey.com>
5848 * event-loop.c: Don't include "common/queue.h".
5850 2019-04-19 Tom Tromey <tom@tromey.com>
5852 * remote.c (remote_target): Use delete.
5853 * remote-notif.h: Include <list>, not "common/queue.h".
5854 (notif_client_p): Remove typedef.
5855 (remote_notif_state): Add constructor, destructor, initializer.
5856 <notif_queue>: Now a std::list.
5857 (remote_notif_state_xfree): Don't declare.
5858 * remote-notif.c (remote_notif_process, handle_notification)
5859 (remote_notif_state_allocate): Update.
5860 (~remote_notif_state): Rename from remote_notif_state_xfree.
5862 2019-04-19 Tom Tromey <tom@tromey.com>
5864 * symfile.c (reread_symbols): Update.
5865 * objfiles.c (objfile_register_static_link)
5866 (objfile_lookup_static_link): Update
5867 (~objfile) Don't delete static_links.
5868 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
5870 2019-04-19 Tom Tromey <tom@tromey.com>
5872 * type-stack.h (struct type_stack) <insert>: Constify string.
5873 * type-stack.c (type_stack::insert): Constify string.
5874 * gdbtypes.h (lookup_template_type): Update.
5875 (address_space_name_to_int): Update.
5876 * gdbtypes.c (address_space_name_to_int): Make space_identifier
5878 (lookup_template_type): Make name const.
5879 * c-exp.y: Update rules.
5880 (lex_one_token, classify_name, classify_inner_name)
5881 (c_print_token): Update.
5882 * p-exp.y: Update rules.
5884 * f-exp.y: Update rules.
5886 * d-exp.y: Update rules.
5887 (lex_one_token, classify_name, classify_inner_name): Update.
5888 * parse.c (write_dollar_variable, copy_name): Return std::string.
5889 * parser-defs.h (copy_name): Change return type.
5890 * m2-exp.y: Update rules.
5892 * go-exp.y (lex_one_token): Update.
5894 (classify_unsafe_function, classify_packaged_name)
5895 (classify_name, yylex): Update.
5897 2019-04-19 Sergei Trofimovich <siarheit@google.com>
5899 * configure.ac: add --enable-source-highlight switch.
5900 * configure: Regenerate.
5901 * top.c (print_gdb_version): plumb --enable-source-highlight
5902 status to "show configuration".
5904 2019-04-19 Tom Tromey <tromey@adacore.com>
5906 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
5908 (empty_record, ada_template_to_fixed_record_type_1)
5909 (template_to_static_fixed_type)
5910 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
5911 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
5912 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
5915 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
5918 * source.c (print_source_lines_base): Advance "iter" when a
5919 control character is seen.
5921 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5923 * inferior.h (struct infcall_suspend_state_deleter):
5924 Catch exception in destructor to avoid crash.
5926 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5928 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
5929 close to the add_com "shell".
5931 2019-04-18 Tom Tromey <tromey@adacore.com>
5933 * process-stratum-target.h (class process_stratum_target)
5934 <stratum>: Add "final".
5936 2019-04-17 Tom Tromey <tromey@adacore.com>
5938 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
5939 against nullptr before use.
5941 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5943 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
5945 2019-04-17 Jim Wilson <jimw@sifive.com>
5946 Andrew Burgess <andrew.burgess@embecosm.com>
5948 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
5949 code read might fail, assume 4-byte breakpoint in that case.
5951 2019-04-15 Leszek Swirski <leszeks@google.com>
5953 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
5954 rather than a hand-rolled POD check when checking for forced MEMORY
5957 2019-04-15 Alan Hayward <alan.hayward@arm.com>
5959 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
5960 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
5962 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
5963 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
5964 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
5967 2019-04-15 Alan Hayward <alan.hayward@arm.com>
5969 * aarch64-linux-nat.c
5970 (aarch64_linux_nat_target::thread_architecture): Add override.
5971 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
5974 2019-04-15 Alan Hayward <alan.hayward@arm.com>
5976 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
5978 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
5980 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
5981 target types of size 96-bits, add some additional comments, and
5982 check that the builtin type we found was the correct size.
5984 2019-04-12 Eli Zaretskii <eliz@gnu.org>
5986 * utils.c (prompt_for_continue): Don't restore the styling at the
5987 end, as applied_style has the wrong value. This fixes styling in
5988 long lists of file names that are interrupted by the "Continue?"
5991 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
5993 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
5994 * c-lang.c (c_language_defn): Likewise.
5995 (cplus_language_defn): Likewise.
5996 (asm_language_defn): Likewise.
5997 (minimal_language_defn): Likewise.
5998 * d-lang.c (d_language_defn): Likewise.
5999 * f-lang.c (f_language_defn): Likewise.
6000 * go-lang.c (go_language_defn): Likewise.
6001 * language.c (unknown_language_defn): Likewise.
6002 (auto_language_defn): Likewise.
6003 * language.h (struct language_defn): Remove la_magic field.
6004 (LANG_MAGIC): Delete.
6005 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
6006 * objc-lang.c (objc_language_defn): Likewise.
6007 * opencl-lang.c (opencl_language_defn): Likewise.
6008 * p-lang.c (pascal_language_defn): Likewise.
6009 * rust-lang.c (rust_language_defn): Likewise.
6011 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
6013 * riscv-tdep.c (riscv_type_align): New function.
6014 (riscv_type_alignment): Delete.
6015 (riscv_arg_location): Use 'type_align'.
6016 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
6018 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
6020 * gdbtypes.c (type_align): A struct with no non-static fields also
6023 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
6025 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
6027 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
6029 (riscv_struct_info::analyse): New implementation using new
6030 analyse_inner member function.
6031 (riscv_struct_info::field_offset): New member function.
6032 (riscv_struct_info::m_offsets): New member variable.
6033 (riscv_struct_info::analyse_inner): New private member function,
6034 takes the old implementation of riscv_struct_info::analyse but
6035 extended to track field offsets.
6036 (riscv_call_arg_struct): Update the struct folding special cases
6037 to handle cases where empty C++ structs, which are non-zero
6039 (riscv_arg_location): Initialise the length of each location, a
6040 non-zero length now indicates the location is in use.
6041 (riscv_push_dummy_call): Allow for the first location having a
6042 non-zero offset when setting up arguments.
6043 (riscv_return_value): Likewise, but for return values.
6045 2019-04-11 Tom Tromey <tromey@adacore.com>
6047 * utils.c (internal_vproblem): Make "msg" const.
6049 2019-04-11 Alan Hayward <alan.hayward@arm.com>
6051 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
6052 * trad-frame.c (trad_frame_reset_saved_regs): New function.
6053 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
6054 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
6056 2019-04-10 Kevin Buettner <kevinb@redhat.com>
6058 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
6060 (fill_gregset): Call amd64_linux_collect_native_gregset instead
6061 of amd64_collect_native_gregset.
6062 (amd64_linux_nat_target::store_registers): Likewise.
6064 2019-04-10 Tom Tromey <tom@tromey.com>
6066 * symtab.c (lookup_global_symbol_from_objfile)
6067 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
6068 * objfiles.h (class separate_debug_iterator): New.
6069 (class separate_debug_range): New.
6070 (struct objfile) <separate_debug_objfiles>: New method.
6071 (objfile_separate_debug_iterate): Don't declare.
6072 * objfiles.c (separate_debug_iterator::operator++): Rename from
6073 objfile_separate_debug_iterate.
6074 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
6076 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
6079 2019-04-10 Tom Tromey <tom@tromey.com>
6081 * symfile.c (reread_symbols): Remove old comment.
6082 * objfiles.c (free_all_objfiles): Fix a typo.
6084 2019-04-10 Tom Tromey <tom@tromey.com>
6086 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
6087 * minsyms.c (lookup_minimal_symbol): Use foreach.
6088 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6089 (lookup_minimal_symbol_solib_trampoline): Likewise.
6090 * symfile.c (reread_symbols): Use foreach.
6092 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
6093 Tom Tromey <tromey@adacore.com>
6096 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
6097 (rust_lex_int_test): Change "value" to be LONGEST.
6098 (rust_lex_tests): Add test for long integer literal.
6100 2019-04-09 Tom Tromey <tromey@adacore.com>
6102 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
6104 (extended_remote_target::attach): Update.
6105 (remote_target::remote_notice_new_inferior): Update.
6106 (remote_target::add_current_inferior_and_thread): Update.
6107 * inferior.c (exit_inferior_1): Use "false".
6108 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
6110 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
6112 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
6113 the "start" command.
6115 2019-04-08 Kevin Buettner <kevinb@redhat.com>
6117 * python/py-inferior.c (infpy_thread_from_thread_handle):
6118 Adjust comments to reflect renaming of thread_from_thread_handle
6119 to thread_from_handle. Adjust keywords. Fix type error message.
6120 (inferior_object_methods): Add thread_from_handle. Retain
6121 thread_from_thread_handle, but mark it as deprecated.
6123 2019-04-08 Kevin Buettner <kevinb@redhat.com>
6125 * gdbthread.h (find_thread_by_handle): Revise declaration.
6126 * thread.c (find_thread_by_handle): Likewise. Adjust
6128 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
6129 support for buffer objects as handles.
6131 2019-04-08 Kevin Buettner <kevinb@redhat.com>
6133 * python/py-infthread.c (thpy_thread_handle): New function.
6134 (thread_object_methods): Register thpy_thread_handle.
6136 2019-04-08 Kevin Buettner <kevinb@redhat.com>
6138 * gdbthread.h (thread_to_thread_handle): Declare.
6139 * thread.c (gdbtypes.h): Include.
6140 (thread_to_thread_handle): New function.
6142 * target.h (struct target_ops): Add thread_info_to_thread_handle.
6143 (target_thread_info_to_thread_handle): Declare.
6144 * target.c (target_thread_info_to_thread_handle): New function.
6145 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
6146 * target-delegates.c: Regenerate.
6148 * linux-thread-db.c (class thread_db_target): Add method
6149 thread_info_to_thread_handle.
6150 (thread_db_target::thread_info_to_thread_handle): Define.
6151 * remote.c (class remote_target): Add new method
6152 thread_info_to_thread_handle.
6153 (remote_target::thread_info_to_thread_handle): Define.
6155 2019-04-08 Pedro Alves <palves@redhat.com>
6157 * common/common-exceptions.c (throw_exception): Don't create
6158 named object to throw; throw directly.
6159 (throw_it): Likewise. Don't initialize gdb_exception::message
6160 here, with new; pass FMT and AP to the ctor instead.
6161 * common/common-exceptions.h: Include <string>.
6162 (gdb_exception::gdb_exception(enum return_reason, enum errors,
6163 const char *, va_list)): New ctor. Use std::make_shared.
6164 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
6166 (gdb_exception_error::gdb_exception_error(enum errors, const char
6168 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
6170 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
6172 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
6173 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
6176 2019-04-08 Tom Tromey <tom@tromey.com>
6178 * valops.c (value_rtti_indirect_type): Replace throw_exception
6180 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
6182 * thread.c (thr_try_catch_cmd): Replace throw_exception with
6184 * target.c (target_translate_tls_address): Replace throw_exception
6186 * stack.c (frame_apply_command_count): Replace throw_exception
6188 * solib-spu.c (append_ocl_sos): Replace throw_exception with
6190 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
6192 * rs6000-tdep.c (rs6000_frame_cache)
6193 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
6194 * remote.c: Replace throw_exception with throw.
6195 * record-full.c (record_full_message, record_full_wait_1)
6196 (record_full_restore): Replace throw_exception with throw.
6198 (get_thread_current_frame_id, record_btrace_start_replaying)
6199 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
6200 (cmd_record_btrace_start): Replace throw_exception with throw.
6201 * parse.c (parse_exp_in_context_1): Replace throw_exception with
6203 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
6204 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
6206 (find_linespec_symbols): Replace throw_exception with throw.
6207 * infrun.c (displaced_step_prepare, resume): Replace
6208 throw_exception with throw.
6209 * infcmd.c (post_create_inferior): Replace throw_exception with
6211 * inf-loop.c (inferior_event_handler): Replace throw_exception
6213 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
6214 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
6215 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
6216 (get_prev_frame_always, get_frame_pc_if_available)
6217 (get_frame_address_in_block_if_available, get_frame_language):
6218 Replace throw_exception with throw.
6219 * frame-unwind.c (frame_unwind_try_unwinder): Replace
6220 throw_exception with throw.
6221 * eval.c (fetch_subexp_value, evaluate_var_value)
6222 (evaluate_funcall, evaluate_subexp_standard): Replace
6223 throw_exception with throw.
6224 * dwarf2loc.c (call_site_find_chain)
6225 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
6226 Replace throw_exception with throw.
6227 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
6229 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
6231 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
6232 * completer.c (complete_line_internal): Replace throw_exception
6234 * compile/compile-object-run.c (compile_object_run): Replace
6235 throw_exception with throw.
6236 * cli/cli-script.c (process_next_line): Replace throw_exception
6238 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
6239 (btrace_enable, btrace_maint_update_pt_packets): Replace
6240 throw_exception with throw.
6241 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
6242 throw_exception with throw.
6243 * break-catch-throw.c (re_set_exception_catchpoint): Replace
6244 throw_exception with throw.
6245 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
6246 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
6247 * aarch64-tdep.c (aarch64_make_prologue_cache)
6248 (aarch64_make_stub_cache): Replace throw_exception with throw.
6250 2019-04-08 Tom Tromey <tom@tromey.com>
6252 * common/common-exceptions.c (throw_exception): Rename from
6253 throw_exception_cxx. Remove old copy. Make argument const.
6254 (throw_it): Create and throw exception objects directly.
6255 * common/common-exceptions.h (throw_exception): Make argument
6257 (struct gdb_exception_error): Add constructor.
6258 (struct gdb_exception_quit): Add constructor.
6260 2019-04-08 Tom Tromey <tom@tromey.com>
6262 * common/common-exceptions.h (exception_rethrow): Don't declare.
6263 (TRY_SJLJ): Update comment.
6264 (TRY, CATCH, END_CATCH): Remove.
6265 * common/common-exceptions.c (exception_rethrow): Remove.
6267 2019-04-08 Tom Tromey <tom@tromey.com>
6269 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
6271 (gdb_exception_error): Rename from
6272 gdb_exception_RETURN_MASK_ERROR.
6273 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
6274 (gdb_quit_bad_alloc): Update.
6275 * aarch64-tdep.c: Update.
6276 * ada-lang.c: Update.
6277 * ada-typeprint.c: Update.
6278 * ada-valprint.c: Update.
6279 * amd64-tdep.c: Update.
6280 * arch-utils.c: Update.
6281 * break-catch-throw.c: Update.
6282 * breakpoint.c: Update.
6284 * c-varobj.c: Update.
6285 * cli/cli-cmds.c: Update.
6286 * cli/cli-interp.c: Update.
6287 * cli/cli-script.c: Update.
6288 * common/common-exceptions.c: Update.
6289 * common/new-op.c: Update.
6290 * common/selftest.c: Update.
6291 * compile/compile-c-symbols.c: Update.
6292 * compile/compile-cplus-symbols.c: Update.
6293 * compile/compile-object-load.c: Update.
6294 * compile/compile-object-run.c: Update.
6295 * completer.c: Update.
6296 * corelow.c: Update.
6298 * cp-support.c: Update.
6299 * cp-valprint.c: Update.
6300 * darwin-nat.c: Update.
6301 * disasm-selftests.c: Update.
6302 * dtrace-probe.c: Update.
6303 * dwarf-index-cache.c: Update.
6304 * dwarf-index-write.c: Update.
6305 * dwarf2-frame-tailcall.c: Update.
6306 * dwarf2-frame.c: Update.
6307 * dwarf2loc.c: Update.
6308 * dwarf2read.c: Update.
6310 * event-loop.c: Update.
6311 * event-top.c: Update.
6313 * f-valprint.c: Update.
6314 * fbsd-tdep.c: Update.
6315 * frame-unwind.c: Update.
6317 * gdbtypes.c: Update.
6318 * gnu-v3-abi.c: Update.
6319 * guile/guile-internal.h: Update.
6320 * guile/scm-block.c: Update.
6321 * guile/scm-breakpoint.c: Update.
6322 * guile/scm-cmd.c: Update.
6323 * guile/scm-disasm.c: Update.
6324 * guile/scm-frame.c: Update.
6325 * guile/scm-lazy-string.c: Update.
6326 * guile/scm-math.c: Update.
6327 * guile/scm-param.c: Update.
6328 * guile/scm-ports.c: Update.
6329 * guile/scm-pretty-print.c: Update.
6330 * guile/scm-symbol.c: Update.
6331 * guile/scm-symtab.c: Update.
6332 * guile/scm-type.c: Update.
6333 * guile/scm-value.c: Update.
6334 * i386-linux-tdep.c: Update.
6335 * i386-tdep.c: Update.
6336 * inf-loop.c: Update.
6337 * infcall.c: Update.
6341 * language.c: Update.
6342 * linespec.c: Update.
6343 * linux-fork.c: Update.
6344 * linux-nat.c: Update.
6345 * linux-tdep.c: Update.
6346 * linux-thread-db.c: Update.
6348 * mi/mi-cmd-break.c: Update.
6349 * mi/mi-cmd-stack.c: Update.
6350 * mi/mi-interp.c: Update.
6351 * mi/mi-main.c: Update.
6352 * objc-lang.c: Update.
6353 * p-valprint.c: Update.
6355 * ppc-linux-tdep.c: Update.
6356 * printcmd.c: Update.
6357 * python/py-arch.c: Update.
6358 * python/py-breakpoint.c: Update.
6359 * python/py-cmd.c: Update.
6360 * python/py-finishbreakpoint.c: Update.
6361 * python/py-frame.c: Update.
6362 * python/py-framefilter.c: Update.
6363 * python/py-gdb-readline.c: Update.
6364 * python/py-inferior.c: Update.
6365 * python/py-infthread.c: Update.
6366 * python/py-lazy-string.c: Update.
6367 * python/py-linetable.c: Update.
6368 * python/py-objfile.c: Update.
6369 * python/py-param.c: Update.
6370 * python/py-prettyprint.c: Update.
6371 * python/py-progspace.c: Update.
6372 * python/py-record-btrace.c: Update.
6373 * python/py-record.c: Update.
6374 * python/py-symbol.c: Update.
6375 * python/py-type.c: Update.
6376 * python/py-unwind.c: Update.
6377 * python/py-utils.c: Update.
6378 * python/py-value.c: Update.
6379 * python/python.c: Update.
6380 * record-btrace.c: Update.
6381 * record-full.c: Update.
6382 * remote-fileio.c: Update.
6384 * riscv-tdep.c: Update.
6385 * rs6000-aix-tdep.c: Update.
6386 * rs6000-tdep.c: Update.
6387 * rust-exp.y: Update.
6388 * rust-lang.c: Update.
6389 * s390-tdep.c: Update.
6390 * selftest-arch.c: Update.
6391 * solib-dsbt.c: Update.
6392 * solib-frv.c: Update.
6393 * solib-spu.c: Update.
6394 * solib-svr4.c: Update.
6396 * sparc64-linux-tdep.c: Update.
6398 * symfile-mem.c: Update.
6399 * symmisc.c: Update.
6403 * tracefile-tfile.c: Update.
6404 * tui/tui.c: Update.
6405 * typeprint.c: Update.
6406 * unittests/cli-utils-selftests.c: Update.
6407 * unittests/parse-connection-spec-selftests.c: Update.
6409 * valprint.c: Update.
6412 * windows-nat.c: Update.
6413 * x86-linux-nat.c: Update.
6414 * xml-support.c: Update.
6416 2019-04-08 Tom Tromey <tom@tromey.com>
6418 * xml-support.c: Use C++ exception handling.
6419 * x86-linux-nat.c: Use C++ exception handling.
6420 * windows-nat.c: Use C++ exception handling.
6421 * varobj.c: Use C++ exception handling.
6422 * value.c: Use C++ exception handling.
6423 * valprint.c: Use C++ exception handling.
6424 * valops.c: Use C++ exception handling.
6425 * unittests/parse-connection-spec-selftests.c: Use C++ exception
6427 * unittests/cli-utils-selftests.c: Use C++ exception handling.
6428 * typeprint.c: Use C++ exception handling.
6429 * tui/tui.c: Use C++ exception handling.
6430 * tracefile-tfile.c: Use C++ exception handling.
6431 * top.c: Use C++ exception handling.
6432 * thread.c: Use C++ exception handling.
6433 * target.c: Use C++ exception handling.
6434 * symmisc.c: Use C++ exception handling.
6435 * symfile-mem.c: Use C++ exception handling.
6436 * stack.c: Use C++ exception handling.
6437 * sparc64-linux-tdep.c: Use C++ exception handling.
6438 * solib.c: Use C++ exception handling.
6439 * solib-svr4.c: Use C++ exception handling.
6440 * solib-spu.c: Use C++ exception handling.
6441 * solib-frv.c: Use C++ exception handling.
6442 * solib-dsbt.c: Use C++ exception handling.
6443 * selftest-arch.c: Use C++ exception handling.
6444 * s390-tdep.c: Use C++ exception handling.
6445 * rust-lang.c: Use C++ exception handling.
6446 * rust-exp.y: Use C++ exception handling.
6447 * rs6000-tdep.c: Use C++ exception handling.
6448 * rs6000-aix-tdep.c: Use C++ exception handling.
6449 * riscv-tdep.c: Use C++ exception handling.
6450 * remote.c: Use C++ exception handling.
6451 * remote-fileio.c: Use C++ exception handling.
6452 * record-full.c: Use C++ exception handling.
6453 * record-btrace.c: Use C++ exception handling.
6454 * python/python.c: Use C++ exception handling.
6455 * python/py-value.c: Use C++ exception handling.
6456 * python/py-utils.c: Use C++ exception handling.
6457 * python/py-unwind.c: Use C++ exception handling.
6458 * python/py-type.c: Use C++ exception handling.
6459 * python/py-symbol.c: Use C++ exception handling.
6460 * python/py-record.c: Use C++ exception handling.
6461 * python/py-record-btrace.c: Use C++ exception handling.
6462 * python/py-progspace.c: Use C++ exception handling.
6463 * python/py-prettyprint.c: Use C++ exception handling.
6464 * python/py-param.c: Use C++ exception handling.
6465 * python/py-objfile.c: Use C++ exception handling.
6466 * python/py-linetable.c: Use C++ exception handling.
6467 * python/py-lazy-string.c: Use C++ exception handling.
6468 * python/py-infthread.c: Use C++ exception handling.
6469 * python/py-inferior.c: Use C++ exception handling.
6470 * python/py-gdb-readline.c: Use C++ exception handling.
6471 * python/py-framefilter.c: Use C++ exception handling.
6472 * python/py-frame.c: Use C++ exception handling.
6473 * python/py-finishbreakpoint.c: Use C++ exception handling.
6474 * python/py-cmd.c: Use C++ exception handling.
6475 * python/py-breakpoint.c: Use C++ exception handling.
6476 * python/py-arch.c: Use C++ exception handling.
6477 * printcmd.c: Use C++ exception handling.
6478 * ppc-linux-tdep.c: Use C++ exception handling.
6479 * parse.c: Use C++ exception handling.
6480 * p-valprint.c: Use C++ exception handling.
6481 * objc-lang.c: Use C++ exception handling.
6482 * mi/mi-main.c: Use C++ exception handling.
6483 * mi/mi-interp.c: Use C++ exception handling.
6484 * mi/mi-cmd-stack.c: Use C++ exception handling.
6485 * mi/mi-cmd-break.c: Use C++ exception handling.
6486 * main.c: Use C++ exception handling.
6487 * linux-thread-db.c: Use C++ exception handling.
6488 * linux-tdep.c: Use C++ exception handling.
6489 * linux-nat.c: Use C++ exception handling.
6490 * linux-fork.c: Use C++ exception handling.
6491 * linespec.c: Use C++ exception handling.
6492 * language.c: Use C++ exception handling.
6493 * jit.c: Use C++ exception handling.
6494 * infrun.c: Use C++ exception handling.
6495 * infcmd.c: Use C++ exception handling.
6496 * infcall.c: Use C++ exception handling.
6497 * inf-loop.c: Use C++ exception handling.
6498 * i386-tdep.c: Use C++ exception handling.
6499 * i386-linux-tdep.c: Use C++ exception handling.
6500 * guile/scm-value.c: Use C++ exception handling.
6501 * guile/scm-type.c: Use C++ exception handling.
6502 * guile/scm-symtab.c: Use C++ exception handling.
6503 * guile/scm-symbol.c: Use C++ exception handling.
6504 * guile/scm-pretty-print.c: Use C++ exception handling.
6505 * guile/scm-ports.c: Use C++ exception handling.
6506 * guile/scm-param.c: Use C++ exception handling.
6507 * guile/scm-math.c: Use C++ exception handling.
6508 * guile/scm-lazy-string.c: Use C++ exception handling.
6509 * guile/scm-frame.c: Use C++ exception handling.
6510 * guile/scm-disasm.c: Use C++ exception handling.
6511 * guile/scm-cmd.c: Use C++ exception handling.
6512 * guile/scm-breakpoint.c: Use C++ exception handling.
6513 * guile/scm-block.c: Use C++ exception handling.
6514 * guile/guile-internal.h: Use C++ exception handling.
6515 * gnu-v3-abi.c: Use C++ exception handling.
6516 * gdbtypes.c: Use C++ exception handling.
6517 * frame.c: Use C++ exception handling.
6518 * frame-unwind.c: Use C++ exception handling.
6519 * fbsd-tdep.c: Use C++ exception handling.
6520 * f-valprint.c: Use C++ exception handling.
6521 * exec.c: Use C++ exception handling.
6522 * event-top.c: Use C++ exception handling.
6523 * event-loop.c: Use C++ exception handling.
6524 * eval.c: Use C++ exception handling.
6525 * dwarf2read.c: Use C++ exception handling.
6526 * dwarf2loc.c: Use C++ exception handling.
6527 * dwarf2-frame.c: Use C++ exception handling.
6528 * dwarf2-frame-tailcall.c: Use C++ exception handling.
6529 * dwarf-index-write.c: Use C++ exception handling.
6530 * dwarf-index-cache.c: Use C++ exception handling.
6531 * dtrace-probe.c: Use C++ exception handling.
6532 * disasm-selftests.c: Use C++ exception handling.
6533 * darwin-nat.c: Use C++ exception handling.
6534 * cp-valprint.c: Use C++ exception handling.
6535 * cp-support.c: Use C++ exception handling.
6536 * cp-abi.c: Use C++ exception handling.
6537 * corelow.c: Use C++ exception handling.
6538 * completer.c: Use C++ exception handling.
6539 * compile/compile-object-run.c: Use C++ exception handling.
6540 * compile/compile-object-load.c: Use C++ exception handling.
6541 * compile/compile-cplus-symbols.c: Use C++ exception handling.
6542 * compile/compile-c-symbols.c: Use C++ exception handling.
6543 * common/selftest.c: Use C++ exception handling.
6544 * common/new-op.c: Use C++ exception handling.
6545 * cli/cli-script.c: Use C++ exception handling.
6546 * cli/cli-interp.c: Use C++ exception handling.
6547 * cli/cli-cmds.c: Use C++ exception handling.
6548 * c-varobj.c: Use C++ exception handling.
6549 * btrace.c: Use C++ exception handling.
6550 * breakpoint.c: Use C++ exception handling.
6551 * break-catch-throw.c: Use C++ exception handling.
6552 * arch-utils.c: Use C++ exception handling.
6553 * amd64-tdep.c: Use C++ exception handling.
6554 * ada-valprint.c: Use C++ exception handling.
6555 * ada-typeprint.c: Use C++ exception handling.
6556 * ada-lang.c: Use C++ exception handling.
6557 * aarch64-tdep.c: Use C++ exception handling.
6559 2019-04-08 Tom Tromey <tom@tromey.com>
6561 * xml-support.c (gdb_xml_parser::parse): Update.
6562 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
6563 * value.c (show_convenience): Update.
6564 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
6565 (test_parse_flags_qcs): Update.
6566 * thread.c (thr_try_catch_cmd): Update.
6567 * target.c (target_translate_tls_address): Update.
6568 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
6569 (info_frame_command_core, frame_apply_command_count): Update.
6570 * rust-exp.y (rust_lex_exception_test): Update.
6571 * riscv-tdep.c (riscv_print_one_register_info): Update.
6572 * remote.c (remote_target::enable_btrace): Update.
6573 * record-btrace.c (record_btrace_enable_warn): Update.
6574 * python/py-utils.c (gdbpy_convert_exception): Update.
6575 * printcmd.c (do_one_display, print_variable_and_value): Update.
6576 * mi/mi-main.c (mi_print_exception): Update.
6577 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
6578 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
6579 * linux-nat.c (linux_nat_target::attach): Update.
6580 * linux-fork.c (class scoped_switch_fork_info): Update.
6581 * infrun.c (displaced_step_prepare): Update.
6582 * infcall.c (call_function_by_hand_dummy): Update.
6583 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
6584 * gnu-v3-abi.c (print_one_vtable): Update.
6585 * frame.c (get_prev_frame_always): Update.
6586 * f-valprint.c (info_common_command_for_block): Update.
6587 * exec.c (try_open_exec_file): Update.
6588 * exceptions.c (print_exception, exception_print)
6589 (exception_fprintf, exception_print_same): Update.
6590 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
6591 * dwarf-index-cache.c (index_cache::store)
6592 (index_cache::lookup_gdb_index): Update.
6593 * darwin-nat.c (maybe_cache_shell): Update.
6594 * cp-valprint.c (cp_print_value_fields): Update.
6595 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
6596 (gcc_cplus_symbol_address): Update.
6597 * compile/compile-c-symbols.c (gcc_convert_symbol)
6598 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
6599 * common/selftest.c: Update.
6600 * common/common-exceptions.h (struct gdb_exception) <message>: Now
6602 (exception_try_scope_entry, exception_try_scope_exit): Don't
6604 (struct exception_try_scope): Remove.
6605 (TRY): Don't use exception_try_scope.
6606 (struct gdb_exception): Add constructor, operator=.
6608 (struct gdb_exception_RETURN_MASK_ALL)
6609 (struct gdb_exception_RETURN_MASK_ERROR)
6610 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
6611 (struct gdb_quit_bad_alloc): Update.
6612 * common/common-exceptions.c (exception_none): Change
6614 (struct catcher) <state, exception>: Initialize inline.
6615 <prev>: Remove member.
6616 (current_catcher): Remove.
6617 (catchers): New global.
6618 (exceptions_state_mc_init): Simplify.
6619 (catcher_pop): Remove.
6620 (exceptions_state_mc, exceptions_state_mc_catch): Update.
6621 (try_scope_depth, exception_try_scope_entry)
6622 (exception_try_scope_exit): Remove.
6623 (throw_exception_sjlj): Update.
6624 (exception_messages, exception_messages_size): Remove.
6625 (throw_it): Simplify.
6626 (gdb_exception_sliced_copy): Remove.
6627 (throw_exception_cxx): Update.
6628 * cli/cli-script.c (script_from_file): Update.
6629 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
6631 * ada-valprint.c (ada_val_print): Update.
6632 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
6633 (create_excep_cond_exprs): Update.
6635 2019-04-08 Tom Tromey <tom@tromey.com>
6637 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
6638 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
6639 (TRY, CATCH, END_CATCH): Remove some definitions.
6640 * common/common-exceptions.c: Don't use GDB_XCPT.
6641 (catcher_list_size): Remove.
6642 (throw_exception, throw_it): Simplify.
6644 2019-04-05 Tom Tromey <tom@tromey.com>
6646 Revert the header-sorting patch.
6647 * ft32-tdep.c: Revert.
6648 * frv-tdep.c: Revert.
6649 * frv-linux-tdep.c: Revert.
6651 * frame-unwind.c: Revert.
6652 * frame-base.c: Revert.
6653 * fork-child.c: Revert.
6654 * findvar.c: Revert.
6655 * findcmd.c: Revert.
6656 * filesystem.c: Revert.
6657 * filename-seen-cache.h: Revert.
6658 * filename-seen-cache.c: Revert.
6659 * fbsd-tdep.c: Revert.
6660 * fbsd-nat.h: Revert.
6661 * fbsd-nat.c: Revert.
6662 * f-valprint.c: Revert.
6663 * f-typeprint.c: Revert.
6665 * extension.h: Revert.
6666 * extension.c: Revert.
6667 * extension-priv.h: Revert.
6668 * expprint.c: Revert.
6671 * exceptions.c: Revert.
6672 * event-top.c: Revert.
6673 * event-loop.c: Revert.
6675 * elfread.c: Revert.
6676 * dwarf2read.h: Revert.
6677 * dwarf2read.c: Revert.
6678 * dwarf2loc.c: Revert.
6679 * dwarf2expr.h: Revert.
6680 * dwarf2expr.c: Revert.
6681 * dwarf2-frame.c: Revert.
6682 * dwarf2-frame-tailcall.c: Revert.
6683 * dwarf-index-write.h: Revert.
6684 * dwarf-index-write.c: Revert.
6685 * dwarf-index-common.c: Revert.
6686 * dwarf-index-cache.h: Revert.
6687 * dwarf-index-cache.c: Revert.
6688 * dummy-frame.c: Revert.
6689 * dtrace-probe.c: Revert.
6692 * disasm-selftests.c: Revert.
6693 * dictionary.c: Revert.
6694 * dicos-tdep.c: Revert.
6695 * demangle.c: Revert.
6698 * darwin-nat.h: Revert.
6699 * darwin-nat.c: Revert.
6700 * darwin-nat-info.c: Revert.
6701 * d-valprint.c: Revert.
6702 * d-namespace.c: Revert.
6705 * csky-tdep.c: Revert.
6706 * csky-linux-tdep.c: Revert.
6707 * cris-tdep.c: Revert.
6708 * cris-linux-tdep.c: Revert.
6709 * cp-valprint.c: Revert.
6710 * cp-support.c: Revert.
6711 * cp-namespace.c: Revert.
6713 * corelow.c: Revert.
6714 * corefile.c: Revert.
6715 * continuations.c: Revert.
6716 * completer.h: Revert.
6717 * completer.c: Revert.
6718 * complaints.c: Revert.
6719 * coffread.c: Revert.
6720 * coff-pe-read.c: Revert.
6721 * cli-out.h: Revert.
6722 * cli-out.c: Revert.
6723 * charset.c: Revert.
6724 * c-varobj.c: Revert.
6725 * c-valprint.c: Revert.
6726 * c-typeprint.c: Revert.
6728 * buildsym.c: Revert.
6729 * buildsym-legacy.c: Revert.
6730 * build-id.h: Revert.
6731 * build-id.c: Revert.
6733 * bsd-uthread.c: Revert.
6734 * breakpoint.h: Revert.
6735 * breakpoint.c: Revert.
6736 * break-catch-throw.c: Revert.
6737 * break-catch-syscall.c: Revert.
6738 * break-catch-sig.c: Revert.
6739 * blockframe.c: Revert.
6741 * bfin-tdep.c: Revert.
6742 * bfin-linux-tdep.c: Revert.
6743 * bfd-target.c: Revert.
6745 * ax-general.c: Revert.
6748 * avr-tdep.c: Revert.
6750 * auto-load.c: Revert.
6751 * arm-wince-tdep.c: Revert.
6752 * arm-tdep.c: Revert.
6753 * arm-symbian-tdep.c: Revert.
6754 * arm-pikeos-tdep.c: Revert.
6755 * arm-obsd-tdep.c: Revert.
6756 * arm-nbsd-tdep.c: Revert.
6757 * arm-nbsd-nat.c: Revert.
6758 * arm-linux-tdep.c: Revert.
6759 * arm-linux-nat.c: Revert.
6760 * arm-fbsd-tdep.c: Revert.
6761 * arm-fbsd-nat.c: Revert.
6762 * arm-bsd-tdep.c: Revert.
6763 * arch-utils.c: Revert.
6764 * arc-tdep.c: Revert.
6765 * arc-newlib-tdep.c: Revert.
6766 * annotate.h: Revert.
6767 * annotate.c: Revert.
6768 * amd64-windows-tdep.c: Revert.
6769 * amd64-windows-nat.c: Revert.
6770 * amd64-tdep.c: Revert.
6771 * amd64-sol2-tdep.c: Revert.
6772 * amd64-obsd-tdep.c: Revert.
6773 * amd64-obsd-nat.c: Revert.
6774 * amd64-nbsd-tdep.c: Revert.
6775 * amd64-nbsd-nat.c: Revert.
6776 * amd64-nat.c: Revert.
6777 * amd64-linux-tdep.c: Revert.
6778 * amd64-linux-nat.c: Revert.
6779 * amd64-fbsd-tdep.c: Revert.
6780 * amd64-fbsd-nat.c: Revert.
6781 * amd64-dicos-tdep.c: Revert.
6782 * amd64-darwin-tdep.c: Revert.
6783 * amd64-bsd-nat.c: Revert.
6784 * alpha-tdep.c: Revert.
6785 * alpha-obsd-tdep.c: Revert.
6786 * alpha-nbsd-tdep.c: Revert.
6787 * alpha-mdebug-tdep.c: Revert.
6788 * alpha-linux-tdep.c: Revert.
6789 * alpha-linux-nat.c: Revert.
6790 * alpha-bsd-tdep.c: Revert.
6791 * alpha-bsd-nat.c: Revert.
6792 * aix-thread.c: Revert.
6794 * addrmap.c: Revert.
6795 * ada-varobj.c: Revert.
6796 * ada-valprint.c: Revert.
6797 * ada-typeprint.c: Revert.
6798 * ada-tasks.c: Revert.
6799 * ada-lang.c: Revert.
6800 * aarch64-tdep.c: Revert.
6801 * aarch64-ravenscar-thread.c: Revert.
6802 * aarch64-newlib-tdep.c: Revert.
6803 * aarch64-linux-tdep.c: Revert.
6804 * aarch64-linux-nat.c: Revert.
6805 * aarch64-fbsd-tdep.c: Revert.
6806 * aarch64-fbsd-nat.c: Revert.
6807 * aarch32-linux-nat.c: Revert.
6809 2019-04-05 Tom Tromey <tom@tromey.com>
6811 * ft32-tdep.c: Sort headers.
6812 * frv-tdep.c: Sort headers.
6813 * frv-linux-tdep.c: Sort headers.
6814 * frame.c: Sort headers.
6815 * frame-unwind.c: Sort headers.
6816 * frame-base.c: Sort headers.
6817 * fork-child.c: Sort headers.
6818 * findvar.c: Sort headers.
6819 * findcmd.c: Sort headers.
6820 * filesystem.c: Sort headers.
6821 * filename-seen-cache.h: Sort headers.
6822 * filename-seen-cache.c: Sort headers.
6823 * fbsd-tdep.c: Sort headers.
6824 * fbsd-nat.h: Sort headers.
6825 * fbsd-nat.c: Sort headers.
6826 * f-valprint.c: Sort headers.
6827 * f-typeprint.c: Sort headers.
6828 * f-lang.c: Sort headers.
6829 * extension.h: Sort headers.
6830 * extension.c: Sort headers.
6831 * extension-priv.h: Sort headers.
6832 * expprint.c: Sort headers.
6833 * exec.h: Sort headers.
6834 * exec.c: Sort headers.
6835 * exceptions.c: Sort headers.
6836 * event-top.c: Sort headers.
6837 * event-loop.c: Sort headers.
6838 * eval.c: Sort headers.
6839 * elfread.c: Sort headers.
6840 * dwarf2read.h: Sort headers.
6841 * dwarf2read.c: Sort headers.
6842 * dwarf2loc.c: Sort headers.
6843 * dwarf2expr.h: Sort headers.
6844 * dwarf2expr.c: Sort headers.
6845 * dwarf2-frame.c: Sort headers.
6846 * dwarf2-frame-tailcall.c: Sort headers.
6847 * dwarf-index-write.h: Sort headers.
6848 * dwarf-index-write.c: Sort headers.
6849 * dwarf-index-common.c: Sort headers.
6850 * dwarf-index-cache.h: Sort headers.
6851 * dwarf-index-cache.c: Sort headers.
6852 * dummy-frame.c: Sort headers.
6853 * dtrace-probe.c: Sort headers.
6854 * disasm.h: Sort headers.
6855 * disasm.c: Sort headers.
6856 * disasm-selftests.c: Sort headers.
6857 * dictionary.c: Sort headers.
6858 * dicos-tdep.c: Sort headers.
6859 * demangle.c: Sort headers.
6860 * dcache.h: Sort headers.
6861 * dcache.c: Sort headers.
6862 * darwin-nat.h: Sort headers.
6863 * darwin-nat.c: Sort headers.
6864 * darwin-nat-info.c: Sort headers.
6865 * d-valprint.c: Sort headers.
6866 * d-namespace.c: Sort headers.
6867 * d-lang.c: Sort headers.
6868 * ctf.c: Sort headers.
6869 * csky-tdep.c: Sort headers.
6870 * csky-linux-tdep.c: Sort headers.
6871 * cris-tdep.c: Sort headers.
6872 * cris-linux-tdep.c: Sort headers.
6873 * cp-valprint.c: Sort headers.
6874 * cp-support.c: Sort headers.
6875 * cp-namespace.c: Sort headers.
6876 * cp-abi.c: Sort headers.
6877 * corelow.c: Sort headers.
6878 * corefile.c: Sort headers.
6879 * continuations.c: Sort headers.
6880 * completer.h: Sort headers.
6881 * completer.c: Sort headers.
6882 * complaints.c: Sort headers.
6883 * coffread.c: Sort headers.
6884 * coff-pe-read.c: Sort headers.
6885 * cli-out.h: Sort headers.
6886 * cli-out.c: Sort headers.
6887 * charset.c: Sort headers.
6888 * c-varobj.c: Sort headers.
6889 * c-valprint.c: Sort headers.
6890 * c-typeprint.c: Sort headers.
6891 * c-lang.c: Sort headers.
6892 * buildsym.c: Sort headers.
6893 * buildsym-legacy.c: Sort headers.
6894 * build-id.h: Sort headers.
6895 * build-id.c: Sort headers.
6896 * btrace.c: Sort headers.
6897 * bsd-uthread.c: Sort headers.
6898 * breakpoint.h: Sort headers.
6899 * breakpoint.c: Sort headers.
6900 * break-catch-throw.c: Sort headers.
6901 * break-catch-syscall.c: Sort headers.
6902 * break-catch-sig.c: Sort headers.
6903 * blockframe.c: Sort headers.
6904 * block.c: Sort headers.
6905 * bfin-tdep.c: Sort headers.
6906 * bfin-linux-tdep.c: Sort headers.
6907 * bfd-target.c: Sort headers.
6908 * bcache.c: Sort headers.
6909 * ax-general.c: Sort headers.
6910 * ax-gdb.h: Sort headers.
6911 * ax-gdb.c: Sort headers.
6912 * avr-tdep.c: Sort headers.
6913 * auxv.c: Sort headers.
6914 * auto-load.c: Sort headers.
6915 * arm-wince-tdep.c: Sort headers.
6916 * arm-tdep.c: Sort headers.
6917 * arm-symbian-tdep.c: Sort headers.
6918 * arm-pikeos-tdep.c: Sort headers.
6919 * arm-obsd-tdep.c: Sort headers.
6920 * arm-nbsd-tdep.c: Sort headers.
6921 * arm-nbsd-nat.c: Sort headers.
6922 * arm-linux-tdep.c: Sort headers.
6923 * arm-linux-nat.c: Sort headers.
6924 * arm-fbsd-tdep.c: Sort headers.
6925 * arm-fbsd-nat.c: Sort headers.
6926 * arm-bsd-tdep.c: Sort headers.
6927 * arch-utils.c: Sort headers.
6928 * arc-tdep.c: Sort headers.
6929 * arc-newlib-tdep.c: Sort headers.
6930 * annotate.h: Sort headers.
6931 * annotate.c: Sort headers.
6932 * amd64-windows-tdep.c: Sort headers.
6933 * amd64-windows-nat.c: Sort headers.
6934 * amd64-tdep.c: Sort headers.
6935 * amd64-sol2-tdep.c: Sort headers.
6936 * amd64-obsd-tdep.c: Sort headers.
6937 * amd64-obsd-nat.c: Sort headers.
6938 * amd64-nbsd-tdep.c: Sort headers.
6939 * amd64-nbsd-nat.c: Sort headers.
6940 * amd64-nat.c: Sort headers.
6941 * amd64-linux-tdep.c: Sort headers.
6942 * amd64-linux-nat.c: Sort headers.
6943 * amd64-fbsd-tdep.c: Sort headers.
6944 * amd64-fbsd-nat.c: Sort headers.
6945 * amd64-dicos-tdep.c: Sort headers.
6946 * amd64-darwin-tdep.c: Sort headers.
6947 * amd64-bsd-nat.c: Sort headers.
6948 * alpha-tdep.c: Sort headers.
6949 * alpha-obsd-tdep.c: Sort headers.
6950 * alpha-nbsd-tdep.c: Sort headers.
6951 * alpha-mdebug-tdep.c: Sort headers.
6952 * alpha-linux-tdep.c: Sort headers.
6953 * alpha-linux-nat.c: Sort headers.
6954 * alpha-bsd-tdep.c: Sort headers.
6955 * alpha-bsd-nat.c: Sort headers.
6956 * aix-thread.c: Sort headers.
6957 * agent.c: Sort headers.
6958 * addrmap.c: Sort headers.
6959 * ada-varobj.c: Sort headers.
6960 * ada-valprint.c: Sort headers.
6961 * ada-typeprint.c: Sort headers.
6962 * ada-tasks.c: Sort headers.
6963 * ada-lang.c: Sort headers.
6964 * aarch64-tdep.c: Sort headers.
6965 * aarch64-ravenscar-thread.c: Sort headers.
6966 * aarch64-newlib-tdep.c: Sort headers.
6967 * aarch64-linux-tdep.c: Sort headers.
6968 * aarch64-linux-nat.c: Sort headers.
6969 * aarch64-fbsd-tdep.c: Sort headers.
6970 * aarch64-fbsd-nat.c: Sort headers.
6971 * aarch32-linux-nat.c: Sort headers.
6973 2019-04-04 Tom Tromey <tom@tromey.com>
6975 * varobj.c (varobj_create): Update.
6976 * rust-exp.y (struct rust_parser) <update_innermost_block,
6977 lookup_symbol>: New methods.
6978 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
6980 (rust_parser::rust_lookup_type)
6981 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
6982 * printcmd.c (display_command, do_one_display): Update.
6983 * parser-defs.h (struct parser_state) <parser_state>: Add
6984 "tracker" parameter.
6985 (block_tracker): New member.
6986 (class innermost_block_tracker) <innermost_block_tracker>: Add
6988 <reset>: Remove method.
6989 (innermost_block): Don't declare.
6990 (null_post_parser): Update.
6991 * parse.c (innermost_block): Remove global.
6992 (write_dollar_variable): Update.
6993 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
6994 Remove "tracker_types" parameter.
6995 (parse_expression): Add "tracker" parameter.
6996 (parse_expression_for_completion): Update.
6997 (null_post_parser): Add "tracker" parameter.
6998 * p-exp.y: Update rules.
6999 * m2-exp.y: Update rules.
7000 * language.h (struct language_defn) <la_post_parser>: Add
7001 "tracker" parameter.
7002 * go-exp.y: Update rules.
7003 * f-exp.y: Update rules.
7004 * expression.h (parse_expression, parse_exp_1): Add "tracker"
7006 * d-exp.y: Update rules.
7007 * c-exp.y: Update rules.
7008 * breakpoint.c (set_breakpoint_condition): Create an
7009 innermost_block_tracker.
7010 (watch_command_1): Likewise.
7011 * ada-lang.c (resolve): Add "tracker" parameter.
7012 (resolve_subexp): Likewise.
7013 * ada-exp.y (write_var_from_sym): Update.
7015 2019-04-04 Tom Tromey <tom@tromey.com>
7017 * type-stack.h: New file.
7018 * type-stack.c: New file.
7019 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
7021 (insert_into_type_stack, insert_type, push_type, push_type_int)
7022 (insert_type_address_space, pop_type, pop_type_int)
7023 (pop_typelist, pop_type_stack, append_type_stack)
7024 (push_type_stack, get_type_stack, push_typelist)
7025 (follow_type_instance_flags, follow_types): Don't declare.
7026 * parse.c (type_stack): Remove global.
7027 (parse_exp_in_context): Update.
7028 (insert_into_type_stack, insert_type, push_type, push_type_int)
7029 (insert_type_address_space, pop_type, pop_type_int)
7030 (pop_typelist, pop_type_stack, append_type_stack)
7031 (push_type_stack, get_type_stack, push_typelist)
7032 (follow_type_instance_flags, follow_types): Remove (moved to
7034 * f-exp.y (type_stack): New global.
7036 (push_kind_type, f_parse): Update.
7037 * d-exp.y (type_stack): New global.
7040 * c-exp.y (struct c_parse_state) <type_stack>: New member.
7042 * Makefile.in (COMMON_SFILES): Add type-stack.c.
7043 (HFILES_NO_SRCDIR): Add type-stack.h.
7045 2019-04-04 Tom Tromey <tom@tromey.com>
7047 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
7048 (rust_parser::convert_ast_to_expression, rust_parse)
7049 (rust_lex_test_completion, rust_lex_tests): Update.
7050 * parser-defs.h (struct expr_completion_state): New.
7051 (struct parser_state) <parser_state>: Add completion parameter.
7052 <mark_struct_expression, mark_completion_tag>: New methods.
7053 <parse_completion, m_completion_state>: New members.
7054 (prefixify_expression, null_post_parser): Update.
7055 (mark_struct_expression, mark_completion_tag): Don't declare.
7056 * parse.c (parse_completion, expout_last_struct)
7057 (expout_tag_completion_type, expout_completion_name): Remove
7059 (parser_state::mark_struct_expression)
7060 (parser_state::mark_completion_tag): Now methods.
7061 (prefixify_expression): Add last_struct parameter.
7062 (prefixify_subexp): Likewise.
7063 (parse_exp_1): Update.
7064 (parse_exp_in_context): Add cstate parameter. Update.
7065 (parse_expression_for_completion): Create an
7066 expr_completion_state.
7067 (null_post_parser): Add "completion" parameter.
7068 * p-exp.y: Update rules.
7070 * language.h (struct language_defn) <la_post_parser>: Add
7071 "completing" parameter.
7072 * go-exp.y: Update rules.
7073 (lex_one_token): Update.
7074 * expression.h (parse_completion): Don't declare.
7075 * d-exp.y: Update rules.
7076 (lex_one_token): Update rules.
7077 * c-exp.y: Update rules.
7078 (lex_one_token): Update.
7079 * ada-lang.c (resolve): Add "parse_completion" parameter.
7080 (resolve_subexp): Likewise.
7081 (ada_resolve_function): Likewise.
7083 2019-04-04 Tom Tromey <tom@tromey.com>
7085 * parser-defs.h (struct parser_state) <start_arglist,
7086 end_arglist>: New methods.
7087 <arglist_len, m_funcall_chain>: New members.
7088 (arglist_len, start_arglist, end_arglist): Don't declare.
7089 * parse.c (arglist_len, funcall_chain): Remove global.
7090 (start_arglist, end_arglist): Remove functions.
7091 (parse_exp_in_context): Update.
7092 * p-exp.y: Update rules.
7093 * m2-exp.y: Update rules.
7094 * go-exp.y: Update rules.
7095 * f-exp.y: Update rules.
7096 * d-exp.y: Update rules.
7097 * c-exp.y: Update rules.
7099 2019-04-04 Tom Tromey <tom@tromey.com>
7101 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
7102 lex_operator, push_back>: New methods.
7104 (rust_parser::lex_hex, lex_escape): Rename and update.
7105 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
7106 (rust_parser::lex_operator): Rename and update.
7107 (rust_parser::lex_number, rustyylex, rustyyerror)
7108 (rust_lex_test_init, rust_lex_test_sequence)
7109 (rust_lex_test_push_back, rust_lex_tests): Update.
7110 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
7112 <lexptr, prev_lexptr>: New members.
7113 (lexptr, prev_lexptr): Don't declare.
7114 * parse.c (lexptr, prev_lexptr): Remove globals.
7115 (parse_exp_in_context): Update.
7116 * p-exp.y (yylex, yyerror): Update.
7117 * m2-exp.y (parse_number, yylex, yyerror): Update.
7118 * go-exp.y (lex_one_token, yyerror): Update.
7119 * f-exp.y (match_string_literal, yylex, yyerror): Update.
7120 * d-exp.y (lex_one_token, yyerror): Update.
7121 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
7122 (lex_one_token, yyerror): Update.
7123 * ada-lex.l (YY_INPUT): Update.
7124 (rewind_to_char): Update.
7125 * ada-exp.y (yyerror): Update.
7127 2019-04-04 Tom Tromey <tom@tromey.com>
7129 * rust-exp.y (rustyylex, rust_lex_tests): Update.
7130 * parser-defs.h (struct parser_state) <parser_state>: Add new
7132 <comma_terminates>: New member.
7133 (comma_terminates): Don't declare global.
7134 * parse.c (comma_terminates): Remove global.
7135 (parse_exp_in_context): Update.
7136 * p-exp.y (yylex): Update.
7137 * m2-exp.y (yylex): Update.
7138 * go-exp.y (lex_one_token): Update.
7139 * f-exp.y (yylex): Update.
7140 * d-exp.y (lex_one_token): Update.
7141 * c-exp.y (lex_one_token): Update.
7142 * ada-lex.l: Update.
7144 2019-04-04 Tom Tromey <tom@tromey.com>
7146 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
7147 (rustyylex, rust_lex_test_init, rust_lex_test_one)
7148 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
7149 * parser-defs.h (paren_depth): Don't declare.
7150 * parse.c (paren_depth): Remove global.
7151 (parse_exp_in_context): Update.
7152 * p-exp.y (paren_depth): New global.
7153 (pascal_parse): Initialize it.
7154 * m2-exp.y (paren_depth): New global.
7155 (m2_parse): Initialize it.
7156 * go-exp.y (paren_depth): New global.
7157 (go_parse): Initialize it.
7158 * f-exp.y (paren_depth): New global.
7159 (f_parse): Initialize it.
7160 * d-exp.y (paren_depth): New global.
7161 (d_parse): Initialize it.
7162 * c-exp.y (paren_depth): New global.
7163 (c_parse): Initialize it.
7164 * ada-lex.l (paren_depth): New global.
7165 (lexer_init): Initialize it.
7167 2019-04-04 Tom Tromey <tom@tromey.com>
7169 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
7170 (rust_parser::convert_ast_to_type)
7171 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
7172 * parser-defs.h (struct parser_state) <parser_state>: Add
7173 parameters. Initialize new members.
7174 <expression_context_block, expression_context_pc>: New members.
7175 * parse.c (expression_context_block, expression_context_pc):
7177 (parse_exp_in_context): Update.
7178 * p-exp.y: Update all rules.
7180 * m2-exp.y: Update all rules.
7182 * go-exp.y (yylex): Update.
7183 * f-exp.y (yylex): Update.
7184 * d-exp.y: Update all rules.
7186 * c-exp.y: Update all rules.
7187 (lex_one_token, classify_name, yylex, c_parse): Update.
7188 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
7190 2019-04-04 Tom Tromey <tom@tromey.com>
7192 * gdbarch.h, gdbarch.c: Rebuild.
7193 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
7195 (struct stap_parse_info): Replace "parser_state" with
7197 * parser-defs.h (struct expr_builder): Rename from "parser_state".
7198 (parser_state): New class.
7199 * parse.c (expr_builder): Rename.
7200 (expr_builder::release): Rename.
7201 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
7202 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
7203 (write_exp_elt_longcst, write_exp_elt_floatcst)
7204 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
7205 (write_exp_string_vector, write_exp_bitstring)
7206 (write_exp_msymbol, mark_struct_expression)
7207 (write_dollar_variable)
7208 (insert_type_address_space, increase_expout_size): Replace
7209 "parser_state" with "expr_builder".
7210 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
7211 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
7212 "parser_state" with "expr_builder".
7214 2019-04-04 Tom Tromey <tom@tromey.com>
7216 * rust-exp.y: Replace "parse_language" with method call.
7218 (yylex): Replace "parse_language" with method call.
7220 (yylex): Replace "parse_language" with method call.
7221 * go-exp.y (classify_name): Replace "parse_language" with method
7223 * f-exp.y (yylex): Replace "parse_language" with method call.
7224 * d-exp.y (lex_one_token): Replace "parse_language" with method
7227 (lex_one_token, classify_name, yylex): Replace "parse_language"
7229 * ada-exp.y (find_primitive_type, type_char)
7230 (type_system_address): Replace "parse_language" with method call.
7232 2019-04-04 Tom Tromey <tom@tromey.com>
7234 * rust-exp.y: Replace "parse_gdbarch" with method call.
7235 * parse.c (write_dollar_variable, insert_type_address_space):
7236 Replace "parse_gdbarch" with method call.
7237 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
7239 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
7241 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
7242 "parse_gdbarch" with method call.
7243 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
7245 * f-exp.y (parse_type, parse_f_type, yylex): Replace
7246 "parse_gdbarch" with method call.
7247 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
7248 "parse_gdbarch" with method call.
7249 * c-exp.y (parse_type, parse_number, classify_name): Replace
7250 "parse_gdbarch" with method call.
7251 * ada-lex.l: Replace "parse_gdbarch" with method call.
7252 * ada-exp.y (parse_type, find_primitive_type, type_char)
7253 (type_system_address): Replace "parse_gdbarch" with method call.
7255 2019-04-04 Tom Tromey <tom@tromey.com>
7257 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
7258 * stap-probe.c (stap_parse_argument): Update.
7259 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
7260 initial_size parameter.
7261 * rust-exp.y (rust_lex_tests): Update.
7262 * parse.c (parser_state): Update.
7263 (parse_exp_in_context): Update.
7264 * parser-defs.h (struct parser_state) <parser_state>: Remove
7265 "initial_size" parameter.
7267 2019-04-04 Tom Tromey <tom@tromey.com>
7269 * parser-defs.h (increase_expout_size): Don't declare.
7270 * parse.c (increase_expout_size): Now static.
7272 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
7274 * gnu-nat.c (gnu_nat_target::wait): Fix
7275 target_waitstatus_to_string call.
7277 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
7279 * eval.c (evaluate_subexp_standard): Handle internal functions
7280 during Fortran function call handling.
7282 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
7284 * NEWS: Mention new internal functions.
7285 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
7286 (read_base_type): Use dwarf2_init_complex_target_type.
7287 * value.c (creal_internal_fn): New function.
7288 (cimag_internal_fn): New function.
7289 (_initialize_values): Register new internal functions.
7291 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7293 * infrun.c (stop_all_threads): If debug_infrun, always
7294 trace the wait status after wait_one, using
7295 target_waitstatus_to_string and target_pid_to_str.
7296 (handle_inferior_event): Replace various trace of
7297 wait status kind by a single trace.
7298 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
7299 wait status kind image by target_waitstatus_to_string.
7300 * target/waitstatus.c (target_waitstatus_to_string): Fix
7303 2019-04-01 Tom Tromey <tromey@adacore.com>
7306 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
7308 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
7309 Pedro Alves <palves@redhat.com>
7311 * top.c (quit_force): Call 'finalize_values'.
7312 * value.c (finalize_values): New function.
7313 * value.h (finalize_values): Declare.
7315 2019-03-30 Eli Zaretskii <eliz@gnu.org>
7317 * NEWS: Announce $_gdb_major and $_gdb_minor.
7319 * top.c (init_gdb_version_vars): New function.
7320 (gdb_init): Call init_gdb_version_vars.
7322 2019-03-29 Tom Tromey <tromey@adacore.com>
7324 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
7325 help text. Remove dead code.
7327 2019-03-29 Keith Seitz <keiths@redhat.com>
7329 From Siddhesh Poyarekar:
7330 * f-lang.h (f77_get_upperbound): Return LONGEST.
7331 (f77_get_lowerbound): Likewise.
7332 * f-typeprint.c (f_type_print_varspec_suffix): Expand
7333 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
7335 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
7336 plongest to format print it.
7337 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
7338 (f77_get_upperbound): Likewise.
7339 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
7340 LOWER_BOUND to LONGEST.
7341 (f77_create_arrayprint_offset_tbl): Likewise.
7343 2019-03-29 Keith Seitz <keiths@redhat.com>
7345 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7346 %s/pulongest for TYPE_LENGTH instead of %d in format
7348 * ada-typerint.c (ada_print_type): Likewise.
7349 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
7350 * compile/compile-c-support.c (generate_register_struct): Likewise.
7351 * gdbtypes.c (recursive_dump_type): Likewise.
7352 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
7353 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
7354 instead of %d in format strings.
7355 * riscv-tdep.c (riscv_type_alignment): Cast second argument
7356 to std::min to ULONGEST.
7357 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
7358 instead of %d in format strings.
7359 * tracepoint.c (info_scope_command): Likewise.
7360 * typeprint.c (print_offset_data::update)
7361 (print_offset_data::finish): Likewise.
7362 * xtensa-tdep.c (xtensa_store_return_value)
7363 (xtensa_push_dummy_call): Likewise.
7365 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
7367 * windows-nat.c (display_selector): Fixed format specifications
7370 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7372 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
7374 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
7376 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
7377 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
7378 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
7379 (nios2_linux_init_abi): Install it.
7381 2019-03-28 Alan Hayward <alan.hayward@arm.com>
7383 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
7385 2019-03-28 Alan Hayward <alan.hayward@arm.com>
7387 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
7389 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7390 Tom Tromey <tromey@adacore.com>
7392 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
7394 2019-03-26 Joel Brobecker <brobecker@adacore.com>
7396 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
7397 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
7398 method to compute the bounds of range types. Also print "[evaluated]"
7399 if the bounds' values come from a dynamic evaluation.
7401 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
7403 * cp-valprint.c (cp_print_value_fields): Don't print trailing
7404 whitespace when pretty printing is on.
7406 2019-03-26 Alan Hayward <alan.hayward@arm.com>
7408 * ppc-linux-nat.c: Add include.
7410 2019-03-26 Alan Hayward <alan.hayward@arm.com>
7412 * NEWS: Mention AArch64 Pointer Authentication.
7414 2019-03-26 Alan Hayward <alan.hayward@arm.com>
7416 * arm-linux-nat.c: Add include.
7418 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
7420 * source-cache.c (source_cache::get_source_lines): Re-read
7421 fullname after calling open_source_file.
7423 2019-03-25 John Baldwin <jhb@FreeBSD.org>
7425 * NEWS: Mention TLS support for FreeBSD.
7427 2019-03-25 Tom Tromey <tromey@adacore.com>
7429 * minsyms.c (BUNCH_SIZE): Update comment.
7430 (~minimal_symbol_reader): Remove old comment.
7431 (compact_minimal_symbols): Update comment.
7432 (minimal_symbol_reader::install): Remove old comment. Update
7435 2019-03-25 Alan Hayward <alan.hayward@arm.com>
7437 * s390-linux-nat.c: Add include.
7439 2019-03-25 Alan Hayward <alan.hayward@arm.com>
7441 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
7442 Call linux_get_hwcap.
7443 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
7445 (aarch64_linux_get_hwcap): Remove function.
7446 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
7448 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
7450 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
7451 * linux-tdep.c (linux_get_hwcap): Add function.
7452 (linux_get_hwcap2): Likewise.
7453 * linux-tdep.h (linux_get_hwcap): Add declaration.
7454 (linux_get_hwcap2): Likewise.
7455 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
7456 (ppc_linux_get_hwcap2): Likewise.
7457 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
7459 (ppc_linux_nat_target::insert_watchpoint): Likewise.
7460 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
7461 (ppc_linux_nat_target::read_description): Likewise.
7462 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
7463 * s390-linux-nat.c: Likewise.
7464 * s390-linux-tdep.c (s390_core_read_description): Likewise.
7466 2019-03-24 Tom Tromey <tom@tromey.com>
7468 * ada-lang.c (standard_lookup): Simplify initialization.
7469 (ada_lookup_symbol_nonlocal): Simplify return.
7470 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
7471 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
7472 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
7473 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
7475 * solib.c (solib_global_lookup): Simplify.
7476 * symtab.c (null_block_symbol): Remove.
7477 (symbol_cache_lookup): Simplify returns.
7478 (lookup_language_this): Simplify returns.
7479 (lookup_symbol_aux): Simplify return.
7480 (lookup_local_symbol): Simplify returns.
7481 (lookup_global_symbol_from_objfile): Simplify return.
7482 (lookup_symbol_in_objfile_symtabs)
7483 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
7484 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
7485 (lookup_static_symbol, lookup_global_symbol): Simplify return.
7486 * cp-namespace.c (cp_lookup_bare_symbol)
7487 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
7488 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
7489 (cp_lookup_nested_symbol): Don't use null_block_symbol.
7490 (cp_lookup_symbol_via_imports): Simplify initialization.
7491 (find_symbol_in_baseclass): Likewise.
7492 * symtab.h (null_block_symbol): Remove.
7493 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
7494 (d_lookup_nested_symbol, d_lookup_symbol_imports)
7495 (d_lookup_symbol_module): Likewise.
7496 (find_symbol_in_baseclass): Simplify initialization.
7498 2019-03-24 Tom Tromey <tom@tromey.com>
7500 * expression.h: Don't include symtab.h.
7501 (struct block): Forward declare.
7503 2019-03-24 Tom Tromey <tom@tromey.com>
7505 * c-exp.y (typebase): Remove casts.
7506 * gdbtypes.c (lookup_unsigned_typename, )
7507 (lookup_signed_typename): Remove cast.
7508 * eval.c (parse_to_comma_and_eval): Remove cast.
7509 * parse.c (write_dollar_variable): Remove cast.
7510 * block.h (struct block) <superblock>: Now const.
7511 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
7512 * psymtab.c (psym_map_matching_symbols): Make "block" const.
7513 (map_block): Make "block" const.
7514 * symfile.h (struct quick_symbol_functions)
7515 <map_matching_symbols>: Constify block argument to "callback".
7516 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
7518 (find_pc_sect_compunit_symtab): Make "b" const.
7519 (find_symbol_at_address): Likewise.
7520 (search_symbols): Likewise.
7521 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
7522 (dw2_debug_names_lookup_symbol): Likewise.
7523 (dw2_map_matching_symbols): Update.
7524 * p-valprint.c (pascal_val_print): Remove "block".
7525 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
7526 (aux_add_nonlocal_symbols): Make "block" const.
7527 (resolve_subexp): Remove cast.
7528 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
7530 (iterate_over_file_blocks): Likewise.
7531 * f-exp.y (%union) <bval>: Remove.
7532 * coffread.c (patch_opaque_types): Make "b" const.
7533 * spu-tdep.c (spu_catch_start): Make "block" const.
7534 * c-valprint.c (print_unpacked_pointer): Remove "block".
7535 * symmisc.c (dump_symtab_1): Make "b" const.
7536 (block_depth): Make "block" const.
7537 * d-exp.y (%union) <bval>: Remove.
7538 * cp-support.h (cp_lookup_rtti_type): Update.
7539 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
7540 * psymtab.c (psym_lookup_symbol): Make "block" const.
7541 (maintenance_check_psymtabs): Make "b" const.
7542 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
7543 (enumerate_locals, enumerate_args): Update.
7544 * python/py-symtab.c (stpy_global_block): Make "block" const.
7545 (stpy_static_block): Likewise.
7546 * inline-frame.c (block_starting_point_at): Make "new_block"
7548 * block.c (find_block_in_blockvector): Make return type const.
7549 (blockvector_for_pc_sect): Make "b" const.
7550 (find_block_in_blockvector): Make "b" const.
7552 2019-03-23 Tom Tromey <tom@tromey.com>
7554 * varobj.c (varobj_create): Update.
7555 * symfile.c (clear_symtab_users): Don't reset innermost_block.
7556 * printcmd.c (display_command, do_one_display): Don't reset
7558 * parser-defs.h (enum innermost_block_tracker_type): Move to
7560 (innermost_block): Update comment.
7561 * parse.c (parse_exp_1): Add tracker_types parameter.
7562 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
7563 tracker_types parameter. Reset innermost_block.
7564 (parse_exp_in_context): Remove.
7565 (parse_expression_for_completion): Update.
7566 * objfiles.c (~objfile): Don't reset expression_context_block or
7568 * expression.h (enum innermost_block_tracker_type): Move from
7570 (parse_exp_1): Add tracker_types parameter.
7571 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
7572 reset innermost_block.
7574 2019-03-23 Tom Tromey <tom@tromey.com>
7576 * objfiles.h: Include bcache.h.
7578 2019-03-23 Tom Tromey <tom@tromey.com>
7580 * linespec.c (get_current_search_block): Use
7581 scoped_restore_current_language.
7582 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
7584 2019-03-22 Alan Hayward <alan.hayward@arm.com>
7585 Jiong Wang <jiong.wang@arm.com>
7587 * aarch64-linux-tdep.c
7588 (aarch64_linux_iterate_over_regset_sections): Check for pauth
7590 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
7592 2019-03-22 Alan Hayward <alan.hayward@arm.com>
7593 Jiong Wang <jiong.wang@arm.com>
7595 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
7597 (aarch64_analyze_prologue_test): Add PACIASP test.
7598 (aarch64_prologue_prev_register): Unmask PC value.
7600 2019-03-22 Alan Hayward <alan.hayward@arm.com>
7601 Jiong Wang <jiong.wang@arm.com>
7603 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
7604 (aarch64_dwarf2_prev_register): Unmask PC value.
7605 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
7606 (aarch64_execute_dwarf_cfa_vendor_op): Check for
7607 DW_CFA_AARCH64_negate_ra_state.
7608 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
7610 2019-03-22 Alan Hayward <alan.hayward@arm.com>
7611 Jiong Wang <jiong.wang@arm.com>
7613 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
7615 (aarch64_pseudo_register_name): Likewise.
7616 (aarch64_pseudo_register_type): Likewise.
7617 (aarch64_pseudo_register_reggroup_p): Likewise.
7618 (aarch64_gdbarch_init): Add pauth registers.
7619 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
7620 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
7621 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
7622 (struct gdbarch_tdep): Add regnum for ra_state.
7624 2019-03-22 Alan Hayward <alan.hayward@arm.com>
7625 Jiong Wang <jiong.wang@arm.com>
7627 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
7629 2019-03-22 Alan Hayward <alan.hayward@arm.com>
7630 Jiong Wang <jiong.wang@arm.com>
7632 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
7634 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
7635 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
7636 (aarch64_gdbarch_init): Add puth registers.
7637 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
7638 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
7639 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
7641 2019-03-22 Alan Hayward <alan.hayward@arm.com>
7642 Jiong Wang <jiong.wang@arm.com>
7644 * aarch64-linux-nat.c
7645 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
7646 * aarch64-linux-tdep.c
7647 (aarch64_linux_core_read_description): Likewise.
7648 (aarch64_linux_get_hwcap): New function.
7649 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
7650 (aarch64_linux_get_hwcap): New declaration.
7652 2019-03-22 Alan Hayward <alan.hayward@arm.com>
7653 Jiong Wang <jiong.wang@arm.com>
7655 * aarch64-linux-nat.c
7656 (aarch64_linux_nat_target::read_description): Add pauth param.
7657 * aarch64-linux-tdep.c
7658 (aarch64_linux_core_read_description): Likewise.
7659 * aarch64-tdep.c (struct target_desc): Add in pauth.
7660 (aarch64_read_description): Add pauth param.
7661 (aarch64_gdbarch_init): Likewise.
7662 * aarch64-tdep.h (aarch64_read_description): Likewise.
7663 * arch/aarch64.c (aarch64_create_target_description): Likewise.
7664 * arch/aarch64.h (aarch64_create_target_description): Likewise.
7665 * features/Makefile: Add new files.
7666 * features/aarch64-pauth.c: New file.
7667 * features/aarch64-pauth.xml: New file.
7669 2019-03-20 Tom Tromey <tromey@adacore.com>
7671 * infrun.c (handle_inferior_event): Rename from
7672 handle_inferior_event_1. Create a scoped_value_mark.
7673 (handle_inferior_event): Remove.
7675 2019-03-19 Tom Tromey <tromey@adacore.com>
7677 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
7678 * infrun.h (print_stop_event): Add "displays" parameter.
7679 * infrun.c (print_stop_event): Add "displays" parameter.
7681 2019-03-19 Pedro Alves <palves@redhat.com>
7683 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
7684 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
7685 to -1. Fix TABs vs spaces.
7686 (tui_ui_out::tui_ui_out): Don't initialize fields here.
7687 * tui/tui-out.h (tui_ui_out) Add intro comments.
7688 <m_line, m_start_of_line>: In-class initialize, and add describing
7691 2019-03-18 Alan Hayward <alan.hayward@arm.com>
7693 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
7695 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
7697 2019-03-18 Pedro Alves <palves@redhat.com>
7698 Eli Zaretskii <eliz@gnu.org>
7700 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
7701 m_line and m_start_of_line.
7703 2019-03-18 Eli Zaretskii <eliz@gnu.org>
7705 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
7706 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
7707 it returns a newline. This fixes a regression in TU mode, whereby
7708 the next line is output on the same screen line as the user input.
7710 2019-03-18 Tom Tromey <tromey@adacore.com>
7712 * minsyms.c (minimal_symbol_reader::install): Remove call to
7715 2019-03-18 Pedro Alves <palves@redhat.com>
7717 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
7719 (apply_style): New, factored out from ...
7720 (apply_ansi_escape): ... this. Handle reverse video mode.
7721 (tui_set_reverse_mode): New function.
7722 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
7723 * tui/tui-winsource.c (tui_show_source_line): Use
7724 tui_set_reverse_mode instead of setting A_STANDOUT.
7725 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
7728 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
7730 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
7733 2019-03-18 Tom Tromey <tromey@adacore.com>
7735 * ada-lang.c (empty_array): Add "high" parameter.
7736 (ada_evaluate_subexp): Update.
7738 2019-03-17 Sergei Trofimovich <siarheit@google.com>
7740 * unittests/string_view-selftests.c: Define
7741 _initialize_string_view_selftests unconditionally.
7743 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
7746 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
7748 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
7751 * windows-nat.c (display_selector): Fix format specifiers.
7753 2019-03-17 Eli Zaretskii <eliz@gnu.org>
7755 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
7756 tui_refill_source_window instead of tui_refresh_win, to update the
7757 current execution line. This fixes redisplay of the current line
7758 when stepping through the code with "next" or "step".
7760 2019-03-16 Eli Zaretskii <eliz@gnu.org>
7762 * source-cache.c (source_cache::get_source_lines): Call
7763 find_source_lines to initialize s->nlines. This fixes vertical
7764 scrolling of TUI source window when the DOWN arrow is pressed.
7766 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7768 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
7769 linux-thread-db.c (_initialize_thread_db): Likewise.
7771 2019-03-16 Eli Zaretskii <eliz@gnu.org>
7773 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
7774 wclrtoeol in tui_show_source_line". This reverts changes made in
7775 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
7777 2019-03-15 Tom Tromey <tom@tromey.com>
7779 * symtab.h (struct minimal_symbol): Derive from
7780 general_symbol_info.
7781 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
7782 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7783 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7784 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7785 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
7786 (MSYMBOL_SEARCH_NAME): Update.
7787 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
7788 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
7789 * minsyms.c (minimal_symbol_reader::record_full): Update.
7791 2019-03-15 Tom Tromey <tom@tromey.com>
7793 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
7795 2019-03-15 Tom Tromey <tom@tromey.com>
7797 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
7799 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
7801 * minsyms.c (lookup_minimal_symbol_by_pc_section)
7802 (build_minimal_symbol_hash_tables)
7803 (minimal_symbol_reader::install): Update.
7805 2019-03-15 Tom Tromey <tom@tromey.com>
7807 * symtab.c (create_demangled_names_hash): Update.
7808 (symbol_set_names): Update.
7809 * objfiles.h (struct objfile_per_bfd_storage)
7810 <demangled_names_hash>: Now an htab_up.
7811 * objfiles.c (objfile_per_bfd_storage): Simplify.
7813 2019-03-15 Tom Tromey <tom@tromey.com>
7815 * objfiles.h (struct objfile_per_bfd_storage): Declare
7817 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
7819 (get_objfile_bfd_data): Use new. Don't initialize
7821 (free_objfile_per_bfd_storage): Remove.
7822 (objfile_bfd_data_free, objfile::~objfile): Use delete.
7824 2019-03-15 Tom Tromey <tom@tromey.com>
7826 * symfile.c (reread_symbols): Update.
7827 * objfiles.c (objfile::objfile): Update.
7828 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
7829 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
7831 (minimal_symbol_reader::install): Update.
7832 (terminate_minimal_symbol_table): Remove.
7833 * jit.c (jit_object_close_impl): Update.
7835 2019-03-15 Tom Tromey <tom@tromey.com>
7837 * minsyms.c (minimal_symbol_reader::record_full): Remove some
7840 2019-03-15 Tom Tromey <tom@tromey.com>
7842 * objfiles.h (struct objfile_per_bfd_storage)
7843 <demangled_hash_languages>: Now a bitset.
7844 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
7845 (lookup_minimal_symbol): Update.
7847 2019-03-15 Tom Tromey <tom@tromey.com>
7849 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
7850 Don't return the symbol.
7851 * coffread.c (record_minimal_symbol): Use record_full.
7853 2019-03-14 Eli Zaretskii <eliz@gnu.org>
7855 The MS-Windows port of ncurses fails to switch to a color pair if
7856 one or both of the colors are the implicit default colors. This
7857 change records the default colors when TUI is initialized, and
7858 then specifies them explicitly when a color pair uses the default
7859 colors. This allows color styling in TUI mode on MS-Windows.
7861 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
7863 (tui_initialize_io) [__MINGW32__]: Record the default terminal
7864 colors in ncurses_norm_attr.
7865 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
7866 "none", replace it with the default color recorded in
7869 2019-03-14 Tom Tromey <tromey@adacore.com>
7871 * source-cache.h (class source_cache) <get_source_lines>: Return
7873 * source-cache.c (source_cache::extract_lines): Handle case where
7874 first_pos==npos. Return std::string.
7875 (source_cache::get_source_lines): Update.
7877 2019-03-14 Tom Tromey <tromey@adacore.com>
7879 * NEWS: Add item for "style sources" commands.
7880 * source-cache.c (source_cache::get_source_lines): Check
7882 * cli/cli-style.c (source_styling): New global.
7883 (_initialize_cli_style): Add "style sources" commands.
7884 (show_style_sources): New function.
7885 * cli/cli-style.h (source_styling): Declare.
7887 2019-03-14 Pedro Alves <palves@redhat.com>
7888 Tom Tromey <tromey@adacore.com>
7890 * tui/tui-winsource.h (tui_refill_source_window): Declare.
7891 * tui/tui-winsource.c (tui_refill_source_window): New function,
7893 (tui_horizontal_source_scroll): ... here. Move some logic.
7894 * cli/cli-style.c (set_style_enabled): Notify new observable.
7895 * tui/tui-hooks.c (tui_redisplay_source): New function.
7896 (tui_attach_detach_observers): Attach or detach
7897 tui_redisplay_source.
7898 * observable.h (source_styling_changed): New observable.
7899 * observable.c: Define source_styling_changed observable.
7901 2019-03-13 Tom Tromey <tromey@adacore.com>
7903 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
7904 (i386_gnu_nat_target::store_registers): Update.
7905 * target-debug.h (target_debug_print_std_string): New macro.
7906 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
7907 * windows-tdep.c (display_one_tib): Update.
7908 * tui/tui-stack.c (tui_make_status_line): Update.
7909 * top.c (print_inferior_quit_action): Update.
7910 * thread.c (thr_try_catch_cmd): Update.
7911 (add_thread_with_info): Update.
7912 (thread_target_id_str): Update.
7913 (thr_try_catch_cmd): Update.
7914 (thread_command): Update.
7915 (thread_find_command): Update.
7916 * record-btrace.c (record_btrace_target::info_record)
7917 (record_btrace_resume_thread, record_btrace_target::resume)
7918 (record_btrace_cancel_resume, record_btrace_step_thread)
7919 (record_btrace_target::wait, record_btrace_target::wait)
7920 (record_btrace_target::wait, record_btrace_target::stop): Update.
7921 * progspace.c (print_program_space): Update.
7922 * process-stratum-target.c
7923 (process_stratum_target::thread_address_space): Update.
7924 * linux-fork.c (linux_fork_mourn_inferior)
7925 (detach_checkpoint_command, info_checkpoints_command)
7926 (linux_fork_context): Update.
7927 (linux_fork_detach): Update.
7928 (class scoped_switch_fork_info): Update.
7929 (delete_checkpoint_command): Update.
7930 * infrun.c (follow_fork_inferior): Update.
7931 (follow_fork_inferior): Update.
7932 (proceed_after_vfork_done): Update.
7933 (handle_vfork_child_exec_or_exit): Update.
7934 (follow_exec): Update.
7935 (displaced_step_prepare_throw): Update.
7936 (displaced_step_restore): Update.
7937 (start_step_over): Update.
7939 (clear_proceed_status_thread): Update.
7941 (print_target_wait_results): Update.
7942 (do_target_wait): Update.
7943 (context_switch): Update.
7944 (stop_all_threads): Update.
7945 (restart_threads): Update.
7946 (finish_step_over): Update.
7947 (handle_signal_stop): Update.
7948 (switch_back_to_stepped_thread): Update.
7949 (keep_going_pass_signal): Update.
7950 (print_exited_reason): Update.
7951 (normal_stop): Update.
7952 * inferior.c (inferior_pid_to_str): Change return type.
7953 (print_selected_inferior): Update.
7954 (add_inferior): Update.
7955 (detach_inferior): Update.
7956 * dummy-frame.c (fprint_dummy_frames): Update.
7957 * dcache.c (dcache_info_1): Update.
7958 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
7959 (btrace_fetch, btrace_clear): Update.
7960 * linux-tdep.c (linux_core_pid_to_str): Change return type.
7961 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
7963 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
7964 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
7965 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
7966 * gdbarch.c, gdbarch.h: Rebuild.
7967 * gdbarch.sh (core_pid_to_str): Change return type.
7968 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
7970 (windows_nat_target::pid_to_str): Change return type.
7971 (windows_delete_thread): Update.
7972 (windows_nat_target::attach): Update.
7973 (windows_nat_target::files_info): Update.
7974 * target-delegates.c: Rebuild.
7975 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
7977 (sol_thread_target::pid_to_str): Change return type.
7978 * remote.c (class remote_target) <pid_to_str>: Change return
7980 (remote_target::pid_to_str): Change return type.
7981 (extended_remote_target::attach, remote_target::remote_stop_ns)
7982 (remote_target::remote_notif_remove_queued_reply)
7983 (remote_target::push_stop_reply, remote_target::disable_btrace):
7985 (extended_remote_target::attach): Update.
7986 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
7988 (gdbsim_target::pid_to_str): Change return type.
7989 * ravenscar-thread.c (struct ravenscar_thread_target)
7990 <pid_to_str>: Change return type.
7991 (ravenscar_thread_target::pid_to_str): Change return type.
7992 * procfs.c (class procfs_target) <pid_to_str>: Change return
7994 (procfs_target::pid_to_str): Change return type.
7995 (procfs_target::attach): Update.
7996 (procfs_target::detach): Update.
7997 (procfs_target::fetch_registers): Update.
7998 (procfs_target::store_registers): Update.
7999 (procfs_target::wait): Update.
8000 (procfs_target::files_info): Update.
8001 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
8002 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
8004 (nto_procfs_target::pid_to_str): Change return type.
8005 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
8006 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
8008 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
8010 (attach_proc_task_lwp_callback, get_detach_signal)
8011 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
8012 (linux_nat_target::resume, wait_lwp, stop_callback)
8013 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
8014 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
8015 (linux_nat_wait_1, resume_stopped_resumed_lwps)
8016 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
8017 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
8019 (inf_ptrace_target::attach): Update.
8020 (inf_ptrace_target::files_info): Update.
8021 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
8023 (go32_nat_target::pid_to_str): Change return type.
8024 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
8025 (gnu_nat_target::wait): Update.
8026 (gnu_nat_target::wait): Update.
8027 (gnu_nat_target::resume): Update.
8028 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
8029 (fbsd_nat_target::wait): Update.
8030 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
8032 (darwin_nat_target::attach): Update.
8033 * corelow.c (class core_target) <pid_to_str>: Change return type.
8034 (core_target::pid_to_str): Change return type.
8035 * target.c (normal_pid_to_str): Change return type.
8036 (default_pid_to_str): Likewise.
8037 (target_pid_to_str): Change return type.
8038 (target_translate_tls_address): Update.
8039 (target_announce_detach): Update.
8040 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
8042 (bsd_uthread_target::pid_to_str): Change return type.
8043 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
8045 (bsd_kvm_target::pid_to_str): Change return type.
8046 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
8048 (aix_thread_target::pid_to_str): Change return type.
8049 * target.h (struct target_ops) <pid_to_str>: Change return type.
8050 (target_pid_to_str, normal_pid_to_str): Likewise.
8051 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
8053 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
8055 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
8057 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
8059 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
8061 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
8064 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
8066 * NEWS: Mention that the new default MI version is 3. Mention
8067 changes to the output of commands and events that deal with
8068 multi-location breakpoints.
8069 * breakpoint.c: Include "mi/mi-out.h".
8070 (print_one_breakpoint): Change output syntax if using MI version
8072 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
8074 (mi_multi_location_breakpoint_output_fixed): New.
8075 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
8076 (mi_cmd_fix_multi_location_breakpoint_output): New.
8077 (mi_multi_location_breakpoint_output_fixed): New.
8078 * mi/mi-cmds.c (mi_cmds): Register command
8079 -fix-multi-location-breakpoint-output.
8080 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
8083 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8085 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
8086 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
8087 instantiate mi_ui_out based on interpreter name.
8088 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
8089 * mi/mi-main.c (mi_load_progress): Likewise.
8091 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8093 * NEWS: Combine separate "New targets" sections for 8.3.
8095 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8097 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
8098 (ppcfbsd_init_abi): Install gdbarch
8099 "fetch_tls_load_module_address" and "get_thread_local_address"
8102 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8104 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
8105 (riscv_fbsd_init_abi): Install gdbarch
8106 "fetch_tls_load_module_address" and "get_thread_local_address"
8109 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8111 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
8112 (i386fbsd_init_abi): Install gdbarch
8113 "fetch_tls_load_module_address" and "get_thread_local_address"
8116 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8118 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
8119 (amd64fbsd_init_abi): Install gdbarch
8120 "fetch_tls_load_module_address" and "get_thread_local_address"
8123 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8125 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
8126 (struct fbsd_pspace_data): New type.
8127 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
8128 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
8129 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
8130 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
8131 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
8133 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8135 * gdbtypes.c (lookup_struct_elt): New function.
8136 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
8137 * gdbtypes.h (struct struct_elt): New type.
8138 (lookup_struct_elt): New prototype.
8140 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8142 * gdbtypes.c (lookup_struct_elt_type): Update comment and
8143 remove disabled code block.
8145 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8147 * gdbarch.sh (get_thread_local_address): New method.
8148 * gdbarch.h, gdbarch.c: Regenerate.
8149 * target.c (target_translate_tls_address): Use
8150 gdbarch_get_thread_local_address if present instead of
8151 target::get_thread_local_address.
8153 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8155 * target.h (target::get_thread_local_address): Update comment.
8157 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8159 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
8160 objfile->separate_debug_objfile_backlink if not NULL.
8162 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8164 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
8165 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
8166 (amd64bsd_store_inferior_registers): Likewise.
8167 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
8168 Enable segment base registers.
8169 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
8170 PT_GETFSBASE and PT_GETGSBASE.
8171 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
8173 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
8174 segment base registers.
8175 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
8177 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8179 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
8180 Update calls to i386_target_description to add 'segments'
8182 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
8183 add segment base registers.
8184 * arch/i386.c (i386_create_target_description): Add 'segments'
8185 parameter to enable segment base registers.
8186 * arch/i386.h (i386_create_target_description): Likewise.
8187 * features/i386/32bit-segments.xml: New file.
8188 * features/i386/32bit-segments.c: Generate.
8189 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
8190 call to i386_target_description to add 'segments' parameter.
8191 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
8192 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
8193 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
8194 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
8195 if feature is present.
8196 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
8197 Add 'segments' parameter to call to i386_target_description.
8198 (i386_target_description): Add 'segments' parameter to enable
8199 segment base registers.
8200 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
8201 to call to i386_target_description.
8202 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
8203 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
8204 Define I386_NUM_REGS.
8205 (i386_target_description): Add 'segments' parameter to enable
8206 segment base registers.
8208 2019-03-12 Eli Zaretskii <eliz@gnu.org>
8211 * source-cache.c: #undef open and close, to avoid unresolved
8212 externals during linking.
8214 2019-03-12 Tom Tromey <tromey@adacore.com>
8216 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
8217 const. Add initializers.
8218 (_initialize_remote): Don't initialize ptid globals.
8220 2019-03-12 Pedro Alves <palves@redhat.com>
8222 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
8224 2019-03-12 Pedro Alves <palves@redhat.com>
8226 * cp-name-parser.y (main): Remove unused 'len' variable.
8228 2019-03-12 Tom Tromey <tromey@adacore.com>
8230 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
8231 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
8233 2019-03-12 Tom Tromey <tromey@adacore.com>
8235 * linux-nat.c (iterate_over_lwps): Update.
8236 (stop_callback): Remove parameter.
8237 (stop_wait_callback, detach_callback, resume_set_callback)
8238 (select_singlestep_lwp_callback, set_ignore_sigint)
8239 (status_callback, resumed_callback, resume_clear_callback)
8240 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
8242 (linux_nat_target::detach, linux_nat_target::resume)
8243 (linux_stop_and_wait_all_lwps, select_event_lwp)
8244 (linux_nat_filter_event, linux_nat_wait_1)
8245 (linux_nat_target::kill, linux_nat_target::stop)
8246 (linux_nat_target::stop): Update.
8247 (linux_nat_resume_callback): Change type.
8248 (resume_stopped_resumed_lwps, count_events_callback)
8249 (select_event_lwp_callback): Likewise.
8250 (linux_stop_lwp, linux_nat_stop_lwp): Update.
8251 * arm-linux-nat.c (struct update_registers_data): Remove.
8252 (update_registers_callback): Change type.
8253 (arm_linux_insert_hw_breakpoint1): Update.
8254 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
8256 (x86_linux_dr_set_addr): Update.
8257 (x86_linux_dr_set_control): Update.
8258 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
8259 (iterate_over_lwps): Use gdb::function_view.
8260 * nat/aarch64-linux-hw-point.c (struct
8261 aarch64_dr_update_callback_param): Remove.
8262 (debug_reg_change_callback): Change type.
8263 (aarch64_notify_debug_reg_change): Update.
8264 * s390-linux-nat.c (s390_refresh_per_info): Update.
8266 2019-03-11 Tom Tromey <tromey@adacore.com>
8268 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
8269 redundant assignment to "this_cu".
8271 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8273 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
8275 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8277 * gdbtypes.c (rank_one_type_parm_set): New function extracted
8279 (rank_one_type): ... this.
8281 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8283 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
8285 (rank_one_type): ... this.
8287 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8289 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
8291 (rank_one_type): ... this.
8293 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8295 * gdbtypes.c (rank_one_type_parm_float): New function extracted
8297 (rank_one_type): ... this.
8299 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8301 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
8303 (rank_one_type): ... this.
8305 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8307 * gdbtypes.c (rank_one_type_parm_range): New function extracted
8309 (rank_one_type): ... this.
8311 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8313 * gdbtypes.c (rank_one_type_parm_char): New function extracted
8315 (rank_one_type): ... this.
8317 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8319 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
8321 (rank_one_type): ... this.
8323 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8325 * gdbtypes.c (rank_one_type_parm_int): New function extracted
8327 (rank_one_type): ... this.
8329 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8331 * gdbtypes.c (rank_one_type_parm_func): New function extracted
8333 (rank_one_type): ... this.
8335 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8337 * gdbtypes.c (rank_one_type_parm_array): New function extracted
8339 (rank_one_type): ... this.
8341 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8343 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
8345 (rank_one_type): ... this.
8347 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8349 * inferior.c (initialize_inferiors): Ensure 'help set/show print
8350 inferior-events' shows the example events.
8352 2019-03-08 Eli Zaretskii <eliz@gnu.org>
8354 Support styling on native MS-Windows console
8357 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
8358 on MS-Windows if $TERM is not defined.
8360 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
8362 * posix-hdep.c (gdb_console_fputs):
8363 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
8365 * ui-file.h (gdb_console_fputs): Add prototype.
8367 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
8368 back to fputs only if the former returns zero.
8370 2019-03-07 Tom Tromey <tom@tromey.com>
8372 * symmisc.c (print_symbol_bcache_statistics): Update.
8373 (print_objfile_statistics): Update.
8374 * symfile.c (allocate_symtab): Update.
8375 * stabsread.c: Don't include bcache.h.
8376 * psymtab.h (struct psymbol_bcache): Don't declare.
8377 (class psymtab_storage) <psymbol_cache>: Now a bcache.
8378 (psymbol_bcache_init, psymbol_bcache_free)
8379 (psymbol_bcache_get_bcache): Don't declare.
8380 * psymtab.c (struct psymbol_bcache): Remove.
8381 (psymtab_storage::psymtab_storage): Update.
8382 (psymtab_storage::~psymtab_storage): Update.
8383 (psymbol_bcache_init, psymbol_bcache_free)
8384 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
8385 (add_psymbol_to_bcache): Update.
8386 (allocate_psymtab): Update.
8387 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8388 macro_cache>: No longer pointers.
8389 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
8390 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
8391 * macrotab.c (macro_bcache): Update.
8392 * macroexp.c: Don't include bcache.h.
8393 * gdbtypes.c (check_types_worklist): Update.
8394 (types_deeply_equal): Remove TRY/CATCH. Update.
8395 * elfread.c (elf_symtab_read): Update.
8396 * dwarf2read.c: Don't include bcache.h.
8397 * buildsym.c (buildsym_compunit::get_macro_table): Update.
8398 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
8399 (print_bcache_statistics, bcache_memory_used): Don't declare.
8400 (struct bcache): Move from bcache.c. Add constructor, destructor,
8401 methods. Rename all data members.
8402 * bcache.c (struct bcache): Move to bcache.h.
8403 (bcache::expand_hash_table): Rename from expand_hash_table.
8405 (bcache::insert): Rename from bcache_full.
8406 (bcache::compare): Rename from bcache_compare.
8407 (bcache_xmalloc): Remove.
8408 (bcache::~bcache): Rename from bcache_xfree.
8409 (bcache::print_statistics): Rename from print_bcache_statistics.
8410 (bcache::memory_used): Rename from bcache_memory_used.
8412 2019-03-07 Pedro Alves <palves@redhat.com>
8414 * infrun.c (normal_stop): Also check for
8415 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
8417 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
8419 * f-lang.c (value_from_host_double): Moved to...
8420 * value.c (value_from_host_double): ...here.
8421 * value.h (value_from_host_double): Declare.
8422 * guile/scm-math.c (vlscm_convert_typed_number): Use
8423 value_from_host_double.
8424 (vlscm_convert_number): Likewise.
8425 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
8426 * python/py-value.c (convert_value_from_python): Likewise.
8428 2019-03-06 Tom Tromey <tom@tromey.com>
8430 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
8432 2019-03-06 Tom Tromey <tom@tromey.com>
8434 * utils.h (free_current_contents): Don't declare.
8435 * utils.c (free_current_contents): Remove.
8437 2019-03-06 Tom Tromey <tom@tromey.com>
8439 * top.c (quit_force): Update.
8440 * main.c (captured_command_loop): Update.
8441 * common/new-op.c (operator new): Update.
8442 * common/common-exceptions.c (struct catcher)
8443 <save_cleanup_chain>: Remove member.
8444 (exceptions_state_mc_init): Update.
8445 (exception_try_scope_entry): Return nullptr.
8446 (exception_try_scope_exit, exception_rethrow)
8447 (throw_exception_sjlj, throw_exception_cxx): Update.
8448 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
8449 (all_cleanups, do_cleanups, discard_cleanups)
8450 (discard_final_cleanups, save_cleanups, save_final_cleanups)
8451 (restore_cleanups, restore_final_cleanups): Don't declare.
8452 (do_final_cleanups): Remove parameter.
8453 * common/cleanups.c (cleanup_chain, make_cleanup)
8454 (make_cleanup_dtor, all_cleanups, do_cleanups)
8455 (discard_my_cleanups, discard_cleanups)
8456 (discard_final_cleanups, save_my_cleanups, save_cleanups)
8457 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
8458 (null_cleanup): Remove.
8459 (do_final_cleanups): Remove parameter.
8461 2019-03-06 Tom Tromey <tom@tromey.com>
8463 * remote.c (remote_target::remote_parse_stop_reply): Use
8466 2019-03-06 Tom Tromey <tom@tromey.com>
8468 * stabsread.c (struct stabs_field_info): Rename from field_info.
8469 <list, fnlist>: Add initializers.
8470 <obstack>: New member.
8471 (read_member_functions, read_struct_fields, read_baseclasses):
8472 Allocate on obstack. Don't use cleanups.
8473 (read_one_struct_field, read_member_functions, read_struct_fields)
8474 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
8475 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
8476 (read_struct_type): Update.
8478 2019-03-06 Tom Tromey <tom@tromey.com>
8480 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
8481 * common/filestuff.h (make_cleanup_close): Don't declare.
8482 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
8485 2019-03-06 Tom Tromey <tom@tromey.com>
8487 * solib-aix.c: Use make_scope_exit.
8489 2019-03-06 Tom Tromey <tom@tromey.com>
8491 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
8492 Use make_scope_exit.
8494 2019-03-06 Tom Tromey <tom@tromey.com>
8496 * solib-svr4.c (disable_probes_interface): Remove parameter.
8497 (svr4_handle_solib_event): Use make_scope_exit.
8499 2019-03-06 Tom Tromey <tom@tromey.com>
8501 * remote.c (struct stop_reply_deleter): Remove.
8502 (stop_reply_up): Update.
8503 (struct stop_reply): Derive from notif_event. Don't typedef.
8504 <regcache>: Now a std::vector.
8505 (stop_reply_xfree): Remove.
8506 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
8507 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
8508 (remote_target::discard_pending_stop_replies): Use delete.
8509 (remote_target::remote_parse_stop_reply): Update.
8510 (remote_target::process_stop_reply): Update.
8511 * remote-notif.h (struct notif_event): Add virtual destructor.
8512 Remove "dtr" member.
8513 (struct notif_client) <alloc_event>: Return a unique_ptr.
8514 (notif_event_xfree): Don't declare.
8515 (notif_event_up): New typedef.
8516 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
8517 (notif_event_xfree, do_notif_event_xfree): Remove.
8518 (remote_notif_state_xfree): Update.
8520 2019-03-06 Tom Tromey <tom@tromey.com>
8522 * infrun.c (displaced_step_clear_cleanup): Now a
8523 forward_scope_exit type.
8524 (displaced_step_prepare_throw): Update.
8525 (displaced_step_fixup): Update.
8527 2019-03-06 Tom Tromey <tom@tromey.com>
8529 * inferior.h (class inferior): Update comment.
8530 * gdbthread.h (class thread_info): Update comment.
8532 2019-03-06 Joel Brobecker <brobecker@adacore.com>
8533 Tom Tromey <tom@tromey.com>
8535 * stabsread.h (struct stab_section_list): Remove.
8536 (coffstab_build_psymtabs): Update.
8537 * dbxread.c (symbuf_sections): Now a std::vector.
8538 (sect_idx): New global.
8539 (fill_symbuf): Update.
8540 (coffstab_build_psymtabs): Change type of stabsects parameter.
8542 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
8544 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
8545 (coff_locate_sections): Update.
8546 (coff_symfile_read): Remove cleanups. Update.
8547 (init_stringtab): Add storage parameter.
8548 (free_stringtab, free_stringtab_cleanup): Remove.
8549 (init_lineno): Add storage parameter.
8550 (free_linetab, free_linetab_cleanup): Remove.
8552 2019-03-06 Pedro Alves <palves@redhat.com>
8554 * linux-fork.c (fork_info::clobber_regs): Delete.
8555 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
8556 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
8558 (scoped_switch_fork_info::scoped_switch_fork_info)
8559 (checkpoint_command, linux_fork_context): Adjust
8560 fork_save_infrun_state calls.
8562 2019-03-06 Pedro Alves <palves@redhat.com>
8564 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
8565 (inf_has_multiple_threads): Return 'bool' and rewrite using
8566 inferior_info::threads().
8568 2019-03-06 Pedro Alves <palves@redhat.com>
8570 * linux-fork.c: Include <list>.
8571 (fork_list): Now a std::list instance.
8572 (fork_info): Add ctor, dtor, and in-class initialize all fields.
8573 (forks_exist_p, find_last_fork): Adjust.
8577 (free_fork): Delete, folded into fork_info::~fork_info().
8578 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
8580 (init_fork_list): Delete.
8581 (linux_fork_killall, linux_fork_mourn_inferior)
8582 (linux_fork_detach, info_checkpoints_command): Adjust.
8583 (_initialize_linux_fork): No longer call init_fork_list.
8585 2019-03-06 Pedro Alves <palves@redhat.com>
8587 * linux-fork.c (new_fork): New, split out of ...
8588 (add_fork): ... this. Return void. Move "first fork" special
8589 case from here, to ...
8590 (checkpoint_command): ... here.
8591 * linux-linux.h (add_fork): Return void.
8593 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8595 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
8597 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8598 Chris January <chris.january@arm.com>
8599 David Lecomber <david.lecomber@arm.com>
8601 * f-exp.y: New token, UNOP_INTRINSIC.
8602 (exp): New pattern using UNOP_INTRINSIC token.
8603 (f77_keywords): Add 'abs' keyword.
8604 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
8605 (value_from_host_double): New function.
8606 (evaluate_subexp_f): Support UNOP_ABS.
8608 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8610 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
8613 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8615 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
8616 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
8617 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
8619 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8621 * f-exp.y (convert_to_kind_type): Handle more type kinds.
8623 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8624 Chris January <chris.january@arm.com>
8626 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
8627 * f-exp.y: Define 'KIND' token.
8628 (exp): New pattern for KIND expressions.
8629 (ptype): Handle types with a kind extension.
8630 (direct_abs_decl): Extend to spot kind extensions.
8631 (f77_keywords): Add 'kind' to the list.
8632 (push_kind_type): New function.
8633 (convert_to_kind_type): New function.
8634 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
8635 * parse.c (operator_length_standard): Likewise.
8636 * parser-defs.h (enum type_pieces): Add tp_kind.
8637 * std-operator.def: Add UNOP_KIND.
8639 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8641 * f-exp.y (f_parse): Set yydebug.
8643 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8645 * f-lang.c (evaluate_subexp_f): New function.
8646 (exp_descriptor_f): New global.
8647 (f_language_defn): Use exp_descriptor_f instead of
8648 exp_descriptor_standard.
8650 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8652 * f-exp.y (struct token): Add comments.
8653 (dot_ops): Remove uppercase versions and the end marker.
8654 (f77_keywords): Likewise.
8655 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
8656 entries in the dot_ops array are case insensitive, and use
8657 strncasecmp to compare strings. Also some whitespace cleanup in
8658 this area. Similar for the f77_keywords array, except entries in
8659 this list might be case sensitive.
8661 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8663 * f-exp.y (struct f77_boolean_val): Add comments.
8664 (boolean_values): Remove uppercase versions, and end marker.
8665 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
8666 and use strncasecmp to achieve case insensitivity. Additionally,
8667 perform whitespace cleanup around this code.
8669 2019-03-06 Tom Tromey <tromey@adacore.com>
8671 * remote-sim.c (gdbsim_target_open): Use result of
8674 2019-03-06 Richard Bunt <richard.bunt@arm.com>
8675 Dirk Schubert <dirk.schubert@arm.com>
8676 Chris January <chris.january@arm.com>
8678 * eval.c (evaluate_subexp_standard): Call Fortran argument
8680 * f-lang.c (struct value): A value which can be passed into a
8681 Fortran function call.
8682 (fortran_argument_convert): Wrap Fortran arguments in a pointer
8684 (struct type): Value ready for a Fortran function call.
8685 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
8687 * f-lang.h (fortran_argument_convert): Declaration.
8688 (fortran_preserve_arg_pointer): Declaration.
8689 * infcall.c (value_arg_coerce): Call Fortran argument logic.
8691 2019-03-05 Tom Tromey <tromey@adacore.com>
8693 * python/py-prettyprint.c (print_string_repr): Remove #if.
8694 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
8696 2019-03-05 Tom Tromey <tromey@adacore.com>
8698 * target.c (the_dummy_target): Move later. Change type to
8700 (initialize_targets): Don't initialize the_dummy_target.
8702 2019-03-05 Tom Tromey <tromey@adacore.com>
8704 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
8705 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
8707 2019-03-05 Tom Tromey <tromey@adacore.com>
8709 * windows-nat.c (windows_nat_target::attach)
8710 (windows_nat_target::detach): Don't call gdb_flush.
8711 * valprint.c (generic_val_print, val_print, val_print_string):
8712 Don't call gdb_flush.
8713 * utils.c (defaulted_query): Don't call gdb_flush.
8714 * typeprint.c (print_type_scalar): Don't call gdb_flush.
8715 * target.c (target_announce_detach): Don't call gdb_flush.
8716 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
8717 * remote.c (extended_remote_target::attach): Don't call
8719 * procfs.c (procfs_target::detach): Don't call gdb_flush.
8720 * printcmd.c (do_examine): Don't call gdb_flush.
8721 (info_display_command): Don't call gdb_flush.
8722 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
8723 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
8724 * memattr.c (info_mem_command): Don't call gdb_flush.
8725 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
8726 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
8727 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
8728 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
8729 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
8730 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
8731 (gnu_nat_target::detach): Don't call gdb_flush.
8732 * f-valprint.c (f_val_print): Don't call gdb_flush.
8733 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
8734 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
8735 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
8737 * c-valprint.c (c_val_print): Don't call gdb_flush.
8738 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
8740 2019-03-05 Tom Tromey <tromey@adacore.com>
8742 * varobj.c (update_dynamic_varobj_children): Update.
8743 (install_default_visualizer): Use reset, not release.
8744 * value.c (set_internalvar): Update.
8745 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
8746 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
8747 ATTRIBUTE_UNUSED_RESULT.
8749 2019-03-05 Tom Tromey <tromey@adacore.com>
8751 * remote.c (class scoped_remote_fd) <release>: Add
8752 ATTRIBUTE_UNUSED_RESULT.
8754 2019-03-05 Tom Tromey <tromey@adacore.com>
8756 * macroexp.c (struct macro_buffer) <release>: Add
8757 ATTRIBUTE_UNUSED_RESULT.
8759 2019-03-05 Tom Tromey <tromey@adacore.com>
8761 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
8762 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
8763 ATTRIBUTE_UNUSED_RESULT.
8765 2019-03-05 Tom Tromey <tromey@adacore.com>
8767 * common/scoped_fd.h (class scoped_fd) <release>: Add
8768 ATTRIBUTE_UNUSED_RESULT.
8770 2019-03-05 Tom Tromey <tromey@adacore.com>
8772 * parser-defs.h (struct parser_state) <release>: Add
8773 ATTRIBUTE_UNUSED_RESULT.
8775 2019-03-05 Tom Tromey <tromey@adacore.com>
8777 * utils.h (class gdb_argv) <release>: Add
8778 ATTRIBUTE_UNUSED_RESULT.
8779 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
8781 2019-03-02 Eli Zaretskii <eliz@gnu.org>
8783 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
8784 for-loop range, to avoid compiler warnings.
8786 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
8787 avoid compiler warnings about unused variables.
8789 * NEWS: Mention end of support for native debugging on MS-Windows
8793 * common/netstuff.c:
8794 * gdbserver/gdbreplay.c
8795 * gdbserver/remote-utils.c:
8797 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
8798 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
8799 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
8800 'getaddrinfo' and 'freeaddrinfo' were not available before
8801 Windows XP, and mingw.org's MinGW headers by default define
8802 _WIN32_WINNT to 0x500.
8804 2019-03-01 Gary Benson <gbenson@redhat.com>
8806 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
8808 2019-02-28 Brian Vandenberg <phantall@gmail.com>
8809 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8812 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
8813 set_sigint_trap, clear_sigint_trap.
8815 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8817 * target.c (target_detach): Clear the regcache and the
8820 2019-02-27 Pedro Alves <palves@redhat.com>
8822 * utils.c (set_screen_size): When we cap the height/width sizes,
8823 tweak the corresponding command variable to show "unlimited":
8825 2019-02-27 Saagar Jha <saagar@saagarjha.com>
8826 Pedro Alves <palves@redhat.com>
8828 * utils.c (set_screen_size): Reduce "infinite" rows and columns
8829 before calling rl_set_screen_size.
8831 2019-02-27 Tom Tromey <tromey@adacore.com>
8833 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
8835 * python/py-value.c: Remove Python 2.4 workaround.
8836 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
8838 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
8839 Python 2.4 workaround.
8840 * python/python-internal.h: Remove Python 2.4 comment.
8841 (Py_ssize_t): Don't define.
8842 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
8843 (gdb_Py_DECREF): Remove Python 2.4 workaround.
8844 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
8845 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
8846 * python/python.c (do_start_initialization): Remove Python 2.4
8848 * python/py-prettyprint.c (class dummy_python_frame): Remove.
8849 (print_children): Remove Python 2.4 workaround.
8850 * python/py-inferior.c (buffer_procs): Remove Python 2.4
8852 (CHARBUFFERPROC_NAME): Remove.
8853 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
8854 Python 2.4 workaround.
8856 2019-02-27 Kevin Buettner <kevinb@redhat.com>
8858 * NEWS: Note minimum Python version.
8860 2019-02-27 Kevin Buettner <kevinb@redhat.com>
8862 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
8863 code from these functions. Remove corresponding ifdefs. Use
8864 Py_buffer_up instead of explicit calls to PyBuffer_Release.
8865 Remove gotos and target of gotos.
8866 (infpy_search_memory): Likewise.
8868 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8870 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
8871 (hppa_gdbarch_init): Don't register deleted functions with
8874 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8876 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
8877 (h8300_unwind_sp): Delete.
8878 (h8300_dummy_id): Delete.
8879 (h8300_gdbarch_init): Don't register deleted functions with
8882 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8884 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
8885 (ft32_unwind_pc): Delete.
8886 (ft32_unwind_sp): Delete.
8887 (ft32_gdbarch_init): Don't register deleted functions with
8890 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8892 * gdb/frv-tdep.c (frv_dummy_id): Delete.
8893 (frv_unwind_pc): Delete.
8894 (frv_unwind_sp): Delete.
8895 (frv_gdbarch_init): Don't register deleted functions with
8898 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8900 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
8901 (riscv_unwind_pc): Delete.
8902 (riscv_unwind_sp): Delete.
8903 (riscv_gdbarch_init): Don't register deleted functions with
8906 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8908 * gdb/csky-tdep.c (csky_dummy_id): Delete.
8909 (csky_unwind_pc): Delete.
8910 (csky_unwind_sp): Delete.
8911 (csky_gdbarch_init): Don't register deleted functions with
8914 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8916 * gdb/cris-tdep.c (cris_dummy_id): Delete.
8917 (cris_unwind_pc): Delete.
8918 (cris_unwind_sp): Delete.
8919 (cris_gdbarch_init): Don't register deleted functions with
8922 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8924 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
8925 (bfin_unwind_pc): Delete.
8926 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
8928 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8930 * gdb/arm-tdep.c (arm_dummy_id): Delete.
8931 (arm_unwind_pc): Delete.
8932 (arm_unwind_sp): Delete.
8933 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
8935 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8937 * gdb/arc-tdep.c (arc_dummy_id): Delete.
8938 (arc_unwind_pc): Delete.
8939 (arc_unwind_sp): Delete.
8940 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
8942 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8944 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
8945 (alpha_unwind_pc): Delete.
8946 (alpha_gdbarch_init): Don't register deleted functions with
8949 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8951 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
8952 (aarch64_unwind_pc): Delete.
8953 (aarch64_unwind_sp): Delete.
8954 (aarch64_gdbarch_init): Don't register deleted functions with
8957 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8959 * gdbtypes.c (type_align): Don't consider static members when
8960 computing structure alignment.
8962 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8964 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
8965 return 0 for other types.
8966 * arch-utils.c (default_type_align): Always return 0.
8967 * gdbarch.h: Regenerate.
8968 * gdbarch.sh (type_align): Extend comment.
8969 * gdbtypes.c (type_align): Add additional comments, always call
8970 gdbarch_type_align before applying the default rules.
8971 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
8972 generic code will then apply a suitable default.
8973 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
8974 types, return 0 for other types.
8976 2019-02-27 Joel Brobecker <brobecker@adacore.com>
8978 * NEWS: Create a new section for the next release branch.
8979 Rename the section of the current branch, now that it has
8982 2019-02-27 Joel Brobecker <brobecker@adacore.com>
8984 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
8985 * version.in: Bump version to 8.3.50.DATE-git.
8987 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
8989 * aix-thread.c (ptid_cmp): Remove unused variable.
8990 (get_signaled_thread): Likewise.
8991 (store_regs_user_thread): Likewise.
8992 (store_regs_kernel_thread): Likewise.
8993 (fetch_regs_kernel_thread): Remove shadowed variable.
8995 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
8997 * features/riscv/32bit-cpu.xml: Add register numbers.
8998 * features/riscv/32bit-fpu.c: Regenerate.
8999 * features/riscv/32bit-fpu.xml: Add register numbers.
9000 * features/riscv/64bit-cpu.xml: Add register numbers.
9001 * features/riscv/64bit-fpu.c: Regenerate.
9002 * features/riscv/64bit-fpu.xml: Add register numbers.
9004 2019-02-26 Kevin Buettner <kevinb@redhat.com>
9006 * NEWS: Mention two argument form of gdb.Value constructor.
9007 * python/py-value.c (convert_buffer_and_type_to_value): New
9009 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
9010 Add support for handling an optional second argument. Call
9011 convert_buffer_and_type_to_value as appropriate.
9012 * python/python-internal.h (Py_buffer_deleter): New struct.
9013 (Py_buffer_up): New typedef.
9015 2019-02-25 John Baldwin <jhb@FreeBSD.org>
9017 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
9018 instead of releasing ownership.
9020 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
9022 * dwarf2read.c (open_and_init_dwp_file): Call
9023 elf_numsections instead of bfd_count_sections to initialize
9024 dwp_file->num_sections.
9026 2019-02-25 Tom Tromey <tromey@adacore.com>
9028 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
9030 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
9032 * gcore.in: Add '--readnever' option when invoking GDB.
9034 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
9036 * MAINTAINERS: Update my email address.
9038 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
9040 * build-id.c (build_id_to_debug_bfd_1): New function.
9041 (build_id_to_debug_bfd): Look for separate debug file in
9044 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
9046 * gdbarch.sh: Update the copyright year range that is placed into
9049 2019-02-22 Keith Seitz <keiths@redhat.com>
9052 * linespec.c (create_sals_line_offset): Search for the default
9053 symtab's filename instead of its fullname.
9055 2019-02-21 Alan Hayward <alan.hayward@arm.com>
9057 * NEWS: Update style defaults.
9059 2019-02-21 Alan Hayward <alan.hayward@arm.com>
9061 * main.c (captured_main_1): Disable styling in batch mode.
9063 2019-02-20 Tom Tromey <tom@tromey.com>
9065 * symtab.c (symtab_symbol_info): Fix typos.
9067 2019-02-20 Tom Tromey <tromey@adacore.com>
9069 * findcmd.c (_initialize_mem_search): Use upper case for
9070 metasyntactic variables.
9072 2019-02-20 Alan Hayward <alan.hayward@arm.com>
9074 * aarch64-tdep.c (aarch64_add_reggroups): New function.
9075 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
9077 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
9079 * top.h (source_file_name): Change to std::string.
9080 * top.c (source_file_name): Likewise.
9081 (command_line_input): Adjust.
9082 * cli/cli-script.c (script_from_file): Adjust.
9084 2019-02-19 Tom Tromey <tromey@adacore.com>
9086 * ravenscar-thread.c
9087 (ravenscar_thread_target::update_thread_list): Don't call
9088 ada_build_task_list.
9089 * ada-lang.h (ada_build_task_list): Don't declare.
9090 * ada-tasks.c (struct ada_tasks_inferior_data)
9091 <task_list_valid_p>: Now bool.
9092 (read_known_tasks, ada_task_list_changed)
9093 (ada_tasks_invalidate_inferior_data): Update.
9094 (read_known_tasks_array): Return bool.
9095 (read_known_tasks_list): Likewise.
9096 (read_known_tasks): Return void.
9097 (ada_build_task_list): Now static.
9099 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
9101 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
9102 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
9104 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9106 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
9107 variant for ada_tasks_pspace_data_handle and
9108 ada_tasks_inferior_data_handle.
9109 (ada_tasks_pspace_data_cleanup): New function.
9110 (ada_tasks_inferior_data_cleanup): New function.
9112 2019-02-17 Tom Tromey <tom@tromey.com>
9114 * macrotab.h (macro_source_fullname): Return a std::string.
9115 * macrotab.c (macro_include, check_for_redefinition)
9116 (macro_undef, macro_lookup_definition, foreach_macro)
9117 (foreach_macro_in_scope): Update.
9118 (macro_source_fullname): Return a std::string.
9119 * macrocmd.c (show_pp_source_pos): Update.
9121 2019-02-17 Tom Tromey <tom@tromey.com>
9123 * macrocmd.c (show_pp_source_pos): Style the file names.
9125 2019-02-17 Tom Tromey <tom@tromey.com>
9128 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
9130 2019-02-17 Tom Tromey <tom@tromey.com>
9132 * ada-lang.c (user_select_syms): Use filtered printing.
9133 * utils.c (wrap_style): New global.
9134 (desired_style): Remove.
9135 (emit_style_escape): Add stream parameter.
9136 (set_output_style, reset_terminal_style, prompt_for_continue):
9138 (flush_wrap_buffer): Only flush gdb_stdout.
9139 (wrap_here): Set wrap_style.
9140 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
9141 treat escape sequences as a character. Change when wrap buffer is
9143 (fputs_styled): Do not set the output style when the default is
9145 * ui-style.h (struct ui_file_style) <is_default>: New method.
9146 * source.c (print_source_lines_base): Emit escape sequences in one
9149 2019-02-17 Joel Brobecker <brobecker@adacore.com>
9151 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
9152 integers and enumeration types.
9154 2019-02-17 Joel Brobecker <brobecker@adacore.com>
9156 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
9157 instead of lookup_symbol_in_language
9158 (do_exact_match): New function.
9159 (ada_get_symbol_name_matcher): Return do_exact_match when
9160 doing a verbatim match.
9162 2019-02-15 Tom Tromey <tromey@adacore.com>
9164 * ravenscar-thread.c (ravenscar_thread_target::resume)
9165 (ravenscar_thread_target::wait): Special case wildcard requests.
9167 2019-02-15 Tom Tromey <tromey@adacore.com>
9169 * ravenscar-thread.c (base_ptid): Remove.
9170 (struct ravenscar_thread_target) <close>: New method.
9171 <m_base_ptid>: New member.
9172 <update_inferior_ptid, active_task, task_is_currently_active,
9173 runtime_initialized>: Declare methods.
9174 <ravenscar_thread_target>: Add constructor.
9175 (ravenscar_thread_target::task_is_currently_active)
9176 (ravenscar_thread_target::update_inferior_ptid)
9177 (ravenscar_runtime_initialized): Rename. Now methods.
9178 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
9179 (ravenscar_thread_target::update_thread_list): Update.
9180 (ravenscar_thread_target::active_task): Now method.
9181 (ravenscar_thread_target::store_registers)
9182 (ravenscar_thread_target::prepare_to_store)
9183 (ravenscar_thread_target::prepare_to_store)
9184 (ravenscar_thread_target::mourn_inferior): Update.
9185 (ravenscar_inferior_created): Use "new" to create target.
9186 (ravenscar_thread_target::get_ada_task_ptid): Update.
9187 (_initialize_ravenscar): Don't initialize base_ptid.
9188 (ravenscar_ops): Remove global.
9190 2019-02-15 Tom Tromey <tromey@adacore.com>
9192 * target.h (push_target): Declare new overload.
9193 * target.c (push_target): New overload, taking an rvalue reference.
9194 * remote.c (remote_target::open_1): Use push_target overload.
9195 * corelow.c (core_target_open): Use push_target overload.
9197 2019-02-15 Tom Tromey <tromey@adacore.com>
9199 * ravenscar-thread.c (is_ravenscar_task)
9200 (ravenscar_task_is_currently_active): Return bool.
9201 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
9202 (_initialize_ravenscar): Remove "(void)".
9203 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
9206 2019-02-15 Tom Tromey <tromey@adacore.com>
9208 * ravenscar-thread.c (ravenscar_runtime_initializer)
9209 (has_ravenscar_runtime, get_running_thread_id)
9210 (ravenscar_thread_target::resume): Fix indentation.
9212 2019-02-15 Tom Tromey <tromey@adacore.com>
9214 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
9215 from ravenscar_arch_ops.
9216 (sparc_ravenscar_ops::fetch_registers)
9217 (sparc_ravenscar_ops::store_registers): Now methods.
9218 (sparc_ravenscar_prepare_to_store): Remove.
9219 (sparc_ravenscar_ops): Redefine.
9220 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
9221 methods and destructor. Remove members.
9222 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
9223 (ravenscar_thread_target::store_registers)
9224 (ravenscar_thread_target::prepare_to_store): Update.
9225 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
9227 (struct ppc_ravenscar_powerpc_ops): Derive from
9229 (ppc_ravenscar_powerpc_ops::fetch_registers)
9230 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
9231 (ppc_ravenscar_powerpc_ops): Redefine.
9232 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
9233 (ppc_ravenscar_e500_ops::fetch_registers)
9234 (ppc_ravenscar_e500_ops::store_registers): Now methods.
9235 (ppc_ravenscar_e500_ops): Redefine.
9236 * aarch64-ravenscar-thread.c
9237 (aarch64_ravenscar_generic_prepare_to_store): Remove.
9238 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
9239 (aarch64_ravenscar_fetch_registers)
9240 (aarch64_ravenscar_store_registers): Now methods.
9241 (aarch64_ravenscar_ops): Redefine.
9243 2019-02-15 Tom Tromey <tromey@adacore.com>
9245 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
9246 (ravenscar_thread_target::stopped_by_hw_breakpoint)
9247 (ravenscar_thread_target::stopped_by_watchpoint)
9248 (ravenscar_thread_target::stopped_data_address)
9249 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
9251 2019-02-15 Tom Tromey <tromey@adacore.com>
9253 * ravenscar-thread.c: Fix some typos.
9255 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9256 Tom Tromey <tromey@adacore.com>
9258 * ada-lang.c (ada_exception_sal): Change addr_string to a
9260 (create_ada_exception_catchpoint): Update.
9262 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9263 Tom Tromey <tromey@adacore.com>
9265 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
9266 (bp_location_ops): Remove.
9267 (base_breakpoint_allocate_location): Update.
9268 (free_bp_location): Update.
9269 * ada-lang.c (class ada_catchpoint_location)
9270 <ada_catchpoint_location>: Remove ops parameter.
9271 (ada_catchpoint_location_dtor): Remove.
9272 (ada_catchpoint_location_ops): Remove.
9273 (allocate_location_exception): Update.
9274 * breakpoint.h (struct bp_location_ops): Remove.
9275 (class bp_location) <bp_location>: Remove bp_location_ops
9277 <~bp_location>: Add destructor.
9280 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
9281 Pedro Alves <palves@redhat.com>
9283 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
9286 2019-02-14 David Michael <fedora.dm0@gmail.com>
9287 Samuel Thibault <samuel.thibault@gnu.org>
9288 Thomas Schwinge <thomas@codesourcery.com>
9290 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
9291 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
9293 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
9295 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
9296 (check_empty): Use "const char *".
9298 * gnu-nat.c (gnu_nat_target::detach): Instead of
9299 'detach_inferior (pid)' call
9300 'detach_inferior (find_inferior_pid (pid))'.
9302 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
9303 'nat/fork-inferior.o'.
9304 * gnu-nat.c: #include "nat/fork-inferior.h".
9306 * gnu-nat.c (gnu_nat_target::detach): Instead of
9307 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
9308 * gnu-nat.h: #include "inf-child.h".
9309 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
9310 'i386_gnu_nat_target::fetch_registers'.
9311 (gnu_store_registers): Rename/move to
9312 'i386_gnu_nat_target::store_registers'.
9314 * config/i386/nm-i386gnu.h: Don't "#include" any files.
9315 * gnu-nat.h (mach_thread_info): New function.
9316 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
9318 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
9320 2019-02-14 Frederic Konrad <konrad@adacore.com>
9322 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
9324 2019-02-14 Joel Brobecker <brobecker@adacore.com>
9326 * windows-nat.c (windows_add_thread): Add new parameter
9327 "main_thread_p" with default value set to false. Update
9328 function documentation as well as all callers.
9329 (windows_delete_thread): Likewise.
9330 (fake_create_process): Update call to windows_add_thread.
9331 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
9332 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
9333 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
9334 call to windows_delete_thread.
9336 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
9338 * MAINTAINERS: Add Andrew Burgess as global maintainer.
9340 2019-02-12 John Baldwin <jhb@FreeBSD.org>
9342 * symfile.c (find_separate_debug_file): Use canonical path of
9343 sysroot with child_path instead of gdb_sysroot if it is valid.
9345 2019-02-12 John Baldwin <jhb@FreeBSD.org>
9347 * symfile.c (find_separate_debug_file): Use child_path to
9348 determine if an object file is under a sysroot.
9350 2019-02-12 John Baldwin <jhb@FreeBSD.org>
9352 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9353 unittests/child-path-selftests.c.
9354 * common/pathstuff.c (child_path): New function.
9355 * common/pathstuff.h (child_path): New prototype.
9356 * unittests/child-path-selftests.c: New file.
9358 2019-02-12 John Baldwin <jhb@FreeBSD.org>
9360 * symfile.c (find_separate_debug_file): Look for separate debug
9361 files in debug directories under the sysroot.
9363 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9365 * symtab.h (struct minimal_symbol data_p): New const method.
9366 (struct minimal_symbol text_p): Likewise.
9367 * symtab.c (output_source_filename): Use file name style
9369 (print_symbol_info): Likewise.
9370 (print_msymbol_info): Use address style to print addresses.
9371 Use function name style to print executable text symbols.
9372 (expand_symtab_containing_pc): Use data_p.
9373 (find_pc_sect_compunit_symtab): Likewise.
9375 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9377 * breakpoint.c (describe_other_breakpoints): Use address style
9379 (say_where): Likewise.
9381 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9383 * ada-typeprint.c (print_func_type): Print function name
9384 style to print function name.
9385 * c-typeprint.c (c_print_type_1): Likewise.
9387 2019-02-11 Alan Hayward <alan.hayward@arm.com>
9389 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
9392 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9394 * c-exp.y (direct_abs_decl): Use emplace_back to record the
9397 2019-02-10 Joel Brobecker <brobecker@adacore.com>
9399 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
9400 TYPE_CODE_REF types.
9402 2019-02-08 Jim Wilson <jimw@sifive.com>
9404 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
9405 (riscv_linux_fregset): New.
9406 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
9408 2019-02-07 Tom Tromey <tom@tromey.com>
9410 * thread.c (thread_cancel_execution_command): Update.
9411 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
9413 (struct thread_fsm_ops): Remove.
9414 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
9415 (thread_fsm_should_stop, thread_fsm_return_value)
9416 (thread_fsm_set_finished, thread_fsm_finished_p)
9417 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
9419 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
9420 * infrun.c (clear_proceed_status_thread)
9421 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
9422 (print_stop_event): Update.
9423 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
9425 (step_command_fsm_ops): Remove.
9426 (new_step_command_fsm): Remove.
9428 (step_command_fsm::should_stop): Rename from
9429 step_command_fsm_should_stop.
9430 (step_command_fsm::clean_up): Rename from
9431 step_command_fsm_clean_up.
9432 (step_command_fsm::do_async_reply_reason): Rename from
9433 step_command_fsm_async_reply_reason.
9434 (struct until_next_fsm): Inherit from thread_fsm. Add
9436 (until_next_fsm_ops): Remove.
9437 (new_until_next_fsm): Remove.
9438 (until_next_fsm::should_stop): Rename from
9439 until_next_fsm_should_stop.
9440 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
9441 (until_next_fsm::do_async_reply_reason): Rename from
9442 until_next_fsm_async_reply_reason.
9443 (struct finish_command_fsm): Inherit from thread_fsm. Add
9444 constructor. Change type of breakpoint.
9445 (finish_command_fsm_ops): Remove.
9446 (new_finish_command_fsm): Remove.
9447 (finish_command_fsm::should_stop): Rename from
9448 finish_command_fsm_should_stop.
9449 (finish_command_fsm::clean_up): Rename from
9450 finish_command_fsm_clean_up.
9451 (finish_command_fsm::return_value): Rename from
9452 finish_command_fsm_return_value.
9453 (finish_command_fsm::do_async_reply_reason): Rename from
9454 finish_command_fsm_async_reply_reason.
9455 (finish_command): Update.
9456 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
9458 (call_thread_fsm_ops): Remove.
9459 (call_thread_fsm::call_thread_fsm): Rename from
9460 new_call_thread_fsm.
9461 (call_thread_fsm::should_stop): Rename from
9462 call_thread_fsm_should_stop.
9463 (call_thread_fsm::should_notify_stop): Rename from
9464 call_thread_fsm_should_notify_stop.
9465 (run_inferior_call, call_function_by_hand_dummy): Update.
9466 * cli/cli-interp.c (should_print_stop_to_console): Update.
9467 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
9468 Add constructor. Change type of location_breakpoint,
9470 (until_break_fsm_ops): Remove.
9471 (new_until_break_fsm): Remove.
9472 (until_break_fsm::should_stop): Rename from
9473 until_break_fsm_should_stop.
9474 (until_break_fsm::clean_up): Rename from
9475 until_break_fsm_clean_up.
9476 (until_break_fsm::do_async_reply_reason): Rename from
9477 until_break_fsm_async_reply_reason.
9478 (until_break_command): Update.
9479 * thread-fsm.c: Remove.
9480 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
9482 2019-02-07 Tom Tromey <tom@tromey.com>
9484 * yy-remap.h: Add include guard.
9485 * xtensa-tdep.h: Add include guard.
9486 * xcoffread.h: Rename include guard.
9487 * varobj-iter.h: Add include guard.
9488 * tui/tui.h: Rename include guard.
9489 * tui/tui-winsource.h: Rename include guard.
9490 * tui/tui-wingeneral.h: Rename include guard.
9491 * tui/tui-windata.h: Rename include guard.
9492 * tui/tui-win.h: Rename include guard.
9493 * tui/tui-stack.h: Rename include guard.
9494 * tui/tui-source.h: Rename include guard.
9495 * tui/tui-regs.h: Rename include guard.
9496 * tui/tui-out.h: Rename include guard.
9497 * tui/tui-layout.h: Rename include guard.
9498 * tui/tui-io.h: Rename include guard.
9499 * tui/tui-hooks.h: Rename include guard.
9500 * tui/tui-file.h: Rename include guard.
9501 * tui/tui-disasm.h: Rename include guard.
9502 * tui/tui-data.h: Rename include guard.
9503 * tui/tui-command.h: Rename include guard.
9504 * tic6x-tdep.h: Add include guard.
9505 * target/waitstatus.h: Rename include guard.
9506 * target/wait.h: Rename include guard.
9507 * target/target.h: Rename include guard.
9508 * target/resume.h: Rename include guard.
9509 * target-float.h: Rename include guard.
9510 * stabsread.h: Add include guard.
9511 * rs6000-tdep.h: Add include guard.
9512 * riscv-fbsd-tdep.h: Add include guard.
9513 * regformats/regdef.h: Rename include guard.
9514 * record.h: Rename include guard.
9515 * python/python.h: Rename include guard.
9516 * python/python-internal.h: Rename include guard.
9517 * python/py-stopevent.h: Rename include guard.
9518 * python/py-ref.h: Rename include guard.
9519 * python/py-record.h: Rename include guard.
9520 * python/py-record-full.h: Rename include guard.
9521 * python/py-record-btrace.h: Rename include guard.
9522 * python/py-instruction.h: Rename include guard.
9523 * python/py-events.h: Rename include guard.
9524 * python/py-event.h: Rename include guard.
9525 * procfs.h: Add include guard.
9526 * proc-utils.h: Add include guard.
9527 * p-lang.h: Add include guard.
9528 * or1k-tdep.h: Rename include guard.
9529 * observable.h: Rename include guard.
9530 * nto-tdep.h: Rename include guard.
9531 * nat/x86-linux.h: Rename include guard.
9532 * nat/x86-linux-dregs.h: Rename include guard.
9533 * nat/x86-gcc-cpuid.h: Add include guard.
9534 * nat/x86-dregs.h: Rename include guard.
9535 * nat/x86-cpuid.h: Rename include guard.
9536 * nat/ppc-linux.h: Rename include guard.
9537 * nat/mips-linux-watch.h: Rename include guard.
9538 * nat/linux-waitpid.h: Rename include guard.
9539 * nat/linux-ptrace.h: Rename include guard.
9540 * nat/linux-procfs.h: Rename include guard.
9541 * nat/linux-osdata.h: Rename include guard.
9542 * nat/linux-nat.h: Rename include guard.
9543 * nat/linux-namespaces.h: Rename include guard.
9544 * nat/linux-btrace.h: Rename include guard.
9545 * nat/glibc_thread_db.h: Rename include guard.
9546 * nat/gdb_thread_db.h: Rename include guard.
9547 * nat/gdb_ptrace.h: Rename include guard.
9548 * nat/fork-inferior.h: Rename include guard.
9549 * nat/amd64-linux-siginfo.h: Rename include guard.
9550 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
9551 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
9552 * nat/aarch64-linux.h: Rename include guard.
9553 * nat/aarch64-linux-hw-point.h: Rename include guard.
9554 * mn10300-tdep.h: Add include guard.
9555 * mips-linux-tdep.h: Add include guard.
9556 * mi/mi-parse.h: Rename include guard.
9557 * mi/mi-out.h: Rename include guard.
9558 * mi/mi-main.h: Rename include guard.
9559 * mi/mi-interp.h: Rename include guard.
9560 * mi/mi-getopt.h: Rename include guard.
9561 * mi/mi-console.h: Rename include guard.
9562 * mi/mi-common.h: Rename include guard.
9563 * mi/mi-cmds.h: Rename include guard.
9564 * mi/mi-cmd-break.h: Rename include guard.
9565 * m2-lang.h: Add include guard.
9566 * location.h: Rename include guard.
9567 * linux-record.h: Rename include guard.
9568 * linux-nat.h: Add include guard.
9569 * linux-fork.h: Add include guard.
9570 * i386-darwin-tdep.h: Rename include guard.
9571 * hppa-linux-offsets.h: Add include guard.
9572 * guile/guile.h: Rename include guard.
9573 * guile/guile-internal.h: Rename include guard.
9574 * gnu-nat.h: Rename include guard.
9575 * gdb-stabs.h: Rename include guard.
9576 * frv-tdep.h: Add include guard.
9577 * f-lang.h: Add include guard.
9578 * event-loop.h: Add include guard.
9579 * darwin-nat.h: Rename include guard.
9580 * cp-abi.h: Rename include guard.
9581 * config/sparc/nm-sol2.h: Rename include guard.
9582 * config/nm-nto.h: Rename include guard.
9583 * config/nm-linux.h: Add include guard.
9584 * config/i386/nm-i386gnu.h: Rename include guard.
9585 * config/djgpp/nl_types.h: Rename include guard.
9586 * config/djgpp/langinfo.h: Rename include guard.
9587 * compile/gcc-cp-plugin.h: Add include guard.
9588 * compile/gcc-c-plugin.h: Add include guard.
9589 * compile/compile.h: Rename include guard.
9590 * compile/compile-object-run.h: Rename include guard.
9591 * compile/compile-object-load.h: Rename include guard.
9592 * compile/compile-internal.h: Rename include guard.
9593 * compile/compile-cplus.h: Rename include guard.
9594 * compile/compile-c.h: Rename include guard.
9595 * common/xml-utils.h: Rename include guard.
9596 * common/x86-xstate.h: Rename include guard.
9597 * common/version.h: Rename include guard.
9598 * common/vec.h: Rename include guard.
9599 * common/tdesc.h: Rename include guard.
9600 * common/selftest.h: Rename include guard.
9601 * common/scoped_restore.h: Rename include guard.
9602 * common/scoped_mmap.h: Rename include guard.
9603 * common/scoped_fd.h: Rename include guard.
9604 * common/safe-iterator.h: Rename include guard.
9605 * common/run-time-clock.h: Rename include guard.
9606 * common/refcounted-object.h: Rename include guard.
9607 * common/queue.h: Rename include guard.
9608 * common/ptid.h: Rename include guard.
9609 * common/print-utils.h: Rename include guard.
9610 * common/preprocessor.h: Rename include guard.
9611 * common/pathstuff.h: Rename include guard.
9612 * common/observable.h: Rename include guard.
9613 * common/netstuff.h: Rename include guard.
9614 * common/job-control.h: Rename include guard.
9615 * common/host-defs.h: Rename include guard.
9616 * common/gdb_wait.h: Rename include guard.
9617 * common/gdb_vecs.h: Rename include guard.
9618 * common/gdb_unlinker.h: Rename include guard.
9619 * common/gdb_unique_ptr.h: Rename include guard.
9620 * common/gdb_tilde_expand.h: Rename include guard.
9621 * common/gdb_sys_time.h: Rename include guard.
9622 * common/gdb_string_view.h: Rename include guard.
9623 * common/gdb_splay_tree.h: Rename include guard.
9624 * common/gdb_setjmp.h: Rename include guard.
9625 * common/gdb_ref_ptr.h: Rename include guard.
9626 * common/gdb_optional.h: Rename include guard.
9627 * common/gdb_locale.h: Rename include guard.
9628 * common/gdb_assert.h: Rename include guard.
9629 * common/filtered-iterator.h: Rename include guard.
9630 * common/filestuff.h: Rename include guard.
9631 * common/fileio.h: Rename include guard.
9632 * common/environ.h: Rename include guard.
9633 * common/common-utils.h: Rename include guard.
9634 * common/common-types.h: Rename include guard.
9635 * common/common-regcache.h: Rename include guard.
9636 * common/common-inferior.h: Rename include guard.
9637 * common/common-gdbthread.h: Rename include guard.
9638 * common/common-exceptions.h: Rename include guard.
9639 * common/common-defs.h: Rename include guard.
9640 * common/common-debug.h: Rename include guard.
9641 * common/cleanups.h: Rename include guard.
9642 * common/buffer.h: Rename include guard.
9643 * common/btrace-common.h: Rename include guard.
9644 * common/break-common.h: Rename include guard.
9645 * cli/cli-utils.h: Rename include guard.
9646 * cli/cli-style.h: Rename include guard.
9647 * cli/cli-setshow.h: Rename include guard.
9648 * cli/cli-script.h: Rename include guard.
9649 * cli/cli-interp.h: Rename include guard.
9650 * cli/cli-decode.h: Rename include guard.
9651 * cli/cli-cmds.h: Rename include guard.
9652 * charset-list.h: Add include guard.
9653 * buildsym-legacy.h: Rename include guard.
9654 * bfin-tdep.h: Add include guard.
9655 * ax.h: Rename include guard.
9656 * arm-linux-tdep.h: Add include guard.
9657 * arm-fbsd-tdep.h: Add include guard.
9658 * arch/xtensa.h: Rename include guard.
9659 * arch/tic6x.h: Add include guard.
9660 * arch/i386.h: Add include guard.
9661 * arch/arm.h: Rename include guard.
9662 * arch/arm-linux.h: Rename include guard.
9663 * arch/arm-get-next-pcs.h: Rename include guard.
9664 * arch/amd64.h: Add include guard.
9665 * arch/aarch64-insn.h: Rename include guard.
9666 * arch-utils.h: Rename include guard.
9667 * annotate.h: Add include guard.
9668 * amd64-darwin-tdep.h: Rename include guard.
9669 * aarch64-linux-tdep.h: Add include guard.
9670 * aarch64-fbsd-tdep.h: Add include guard.
9671 * aarch32-linux-nat.h: Add include guard.
9673 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9675 * macrotab.c (macro_define_internal): New function that
9676 factorizes macro_define_object_internal and macro_define_function
9678 (macro_define_object_internal): Use macro_define_internal.
9679 (macro_define_function): Likewise.
9681 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9683 * macrocmd.c (extract_identifier): Return
9684 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
9687 2019-02-06 John Baldwin <jhb@FreeBSD.org>
9689 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
9691 2019-02-05 Tom Tromey <tom@tromey.com>
9693 * target.c (target_stack::unpush): Move assertion earlier.
9695 2019-01-30 Tom Tromey <tom@tromey.com>
9698 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
9699 (gdbpy_parse_and_eval): Likewise.
9700 * python/python-internal.h (gdbpy_allow_threads): New class.
9702 2019-01-28 John Baldwin <jhb@FreeBSD.org>
9704 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
9705 (aarch64_fbsd_fpregmap): Move earlier.
9706 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
9707 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
9708 instead of individual calls to trad_frame_set_reg_addr.
9709 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
9711 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
9712 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
9713 instead of individual calls to trad_frame_set_reg_addr.
9715 2019-01-28 Alan Hayward <alan.hayward@arm.com>
9717 * CONTRIBUTE: Replace contribution list with wiki link.
9719 2019-01-25 Tom Tromey <tom@tromey.com>
9721 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
9723 2019-01-25 Tom Tromey <tom@tromey.com>
9725 * xtensa-linux-nat.c: Fix common/ includes.
9726 * xml-support.h: Fix common/ includes.
9727 * xml-support.c: Fix common/ includes.
9728 * x86-linux-nat.c: Fix common/ includes.
9729 * windows-nat.c: Fix common/ includes.
9730 * varobj.h: Fix common/ includes.
9731 * varobj.c: Fix common/ includes.
9732 * value.c: Fix common/ includes.
9733 * valops.c: Fix common/ includes.
9734 * utils.c: Fix common/ includes.
9735 * unittests/xml-utils-selftests.c: Fix common/ includes.
9736 * unittests/utils-selftests.c: Fix common/ includes.
9737 * unittests/unpack-selftests.c: Fix common/ includes.
9738 * unittests/tracepoint-selftests.c: Fix common/ includes.
9739 * unittests/style-selftests.c: Fix common/ includes.
9740 * unittests/string_view-selftests.c: Fix common/ includes.
9741 * unittests/scoped_restore-selftests.c: Fix common/ includes.
9742 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
9743 * unittests/scoped_fd-selftests.c: Fix common/ includes.
9744 * unittests/rsp-low-selftests.c: Fix common/ includes.
9745 * unittests/parse-connection-spec-selftests.c: Fix common/
9747 * unittests/optional-selftests.c: Fix common/ includes.
9748 * unittests/offset-type-selftests.c: Fix common/ includes.
9749 * unittests/observable-selftests.c: Fix common/ includes.
9750 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
9751 * unittests/memrange-selftests.c: Fix common/ includes.
9752 * unittests/memory-map-selftests.c: Fix common/ includes.
9753 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
9754 * unittests/function-view-selftests.c: Fix common/ includes.
9755 * unittests/environ-selftests.c: Fix common/ includes.
9756 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
9757 * unittests/common-utils-selftests.c: Fix common/ includes.
9758 * unittests/cli-utils-selftests.c: Fix common/ includes.
9759 * unittests/array-view-selftests.c: Fix common/ includes.
9760 * ui-file.c: Fix common/ includes.
9761 * tui/tui-io.c: Fix common/ includes.
9762 * tracepoint.h: Fix common/ includes.
9763 * tracepoint.c: Fix common/ includes.
9764 * tracefile-tfile.c: Fix common/ includes.
9765 * top.h: Fix common/ includes.
9766 * top.c: Fix common/ includes.
9767 * thread.c: Fix common/ includes.
9768 * target/waitstatus.h: Fix common/ includes.
9769 * target/waitstatus.c: Fix common/ includes.
9770 * target.h: Fix common/ includes.
9771 * target.c: Fix common/ includes.
9772 * target-memory.c: Fix common/ includes.
9773 * target-descriptions.c: Fix common/ includes.
9774 * symtab.h: Fix common/ includes.
9775 * symfile.c: Fix common/ includes.
9776 * stap-probe.c: Fix common/ includes.
9777 * spu-linux-nat.c: Fix common/ includes.
9778 * sparc-nat.c: Fix common/ includes.
9779 * source.c: Fix common/ includes.
9780 * solib.c: Fix common/ includes.
9781 * solib-target.c: Fix common/ includes.
9782 * ser-unix.c: Fix common/ includes.
9783 * ser-tcp.c: Fix common/ includes.
9784 * ser-pipe.c: Fix common/ includes.
9785 * ser-base.c: Fix common/ includes.
9786 * selftest-arch.c: Fix common/ includes.
9787 * s12z-tdep.c: Fix common/ includes.
9788 * rust-exp.y: Fix common/ includes.
9789 * rs6000-aix-tdep.c: Fix common/ includes.
9790 * riscv-tdep.c: Fix common/ includes.
9791 * remote.c: Fix common/ includes.
9792 * remote-notif.h: Fix common/ includes.
9793 * remote-fileio.h: Fix common/ includes.
9794 * remote-fileio.c: Fix common/ includes.
9795 * regcache.h: Fix common/ includes.
9796 * regcache.c: Fix common/ includes.
9797 * record-btrace.c: Fix common/ includes.
9798 * python/python.c: Fix common/ includes.
9799 * python/py-type.c: Fix common/ includes.
9800 * python/py-inferior.c: Fix common/ includes.
9801 * progspace.h: Fix common/ includes.
9802 * producer.c: Fix common/ includes.
9803 * procfs.c: Fix common/ includes.
9804 * proc-api.c: Fix common/ includes.
9805 * printcmd.c: Fix common/ includes.
9806 * ppc-linux-nat.c: Fix common/ includes.
9807 * parser-defs.h: Fix common/ includes.
9808 * osdata.c: Fix common/ includes.
9809 * obsd-nat.c: Fix common/ includes.
9810 * nat/x86-linux.c: Fix common/ includes.
9811 * nat/x86-linux-dregs.c: Fix common/ includes.
9812 * nat/x86-dregs.h: Fix common/ includes.
9813 * nat/x86-dregs.c: Fix common/ includes.
9814 * nat/ppc-linux.c: Fix common/ includes.
9815 * nat/mips-linux-watch.h: Fix common/ includes.
9816 * nat/mips-linux-watch.c: Fix common/ includes.
9817 * nat/linux-waitpid.c: Fix common/ includes.
9818 * nat/linux-ptrace.h: Fix common/ includes.
9819 * nat/linux-ptrace.c: Fix common/ includes.
9820 * nat/linux-procfs.c: Fix common/ includes.
9821 * nat/linux-personality.c: Fix common/ includes.
9822 * nat/linux-osdata.c: Fix common/ includes.
9823 * nat/linux-namespaces.c: Fix common/ includes.
9824 * nat/linux-btrace.h: Fix common/ includes.
9825 * nat/linux-btrace.c: Fix common/ includes.
9826 * nat/fork-inferior.c: Fix common/ includes.
9827 * nat/amd64-linux-siginfo.c: Fix common/ includes.
9828 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
9829 * nat/aarch64-linux.c: Fix common/ includes.
9830 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
9831 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
9832 * namespace.h: Fix common/ includes.
9833 * mips-linux-tdep.c: Fix common/ includes.
9834 * minsyms.c: Fix common/ includes.
9835 * mi/mi-parse.h: Fix common/ includes.
9836 * mi/mi-main.c: Fix common/ includes.
9837 * mi/mi-cmd-env.c: Fix common/ includes.
9838 * memrange.h: Fix common/ includes.
9839 * memattr.c: Fix common/ includes.
9840 * maint.h: Fix common/ includes.
9841 * maint.c: Fix common/ includes.
9842 * main.c: Fix common/ includes.
9843 * machoread.c: Fix common/ includes.
9844 * location.c: Fix common/ includes.
9845 * linux-thread-db.c: Fix common/ includes.
9846 * linux-nat.c: Fix common/ includes.
9847 * linux-fork.c: Fix common/ includes.
9848 * inline-frame.c: Fix common/ includes.
9849 * infrun.c: Fix common/ includes.
9850 * inflow.c: Fix common/ includes.
9851 * inferior.h: Fix common/ includes.
9852 * inferior.c: Fix common/ includes.
9853 * infcmd.c: Fix common/ includes.
9854 * inf-ptrace.c: Fix common/ includes.
9855 * inf-child.c: Fix common/ includes.
9856 * ia64-linux-nat.c: Fix common/ includes.
9857 * i387-tdep.c: Fix common/ includes.
9858 * i386-tdep.c: Fix common/ includes.
9859 * i386-linux-tdep.c: Fix common/ includes.
9860 * i386-linux-nat.c: Fix common/ includes.
9861 * i386-go32-tdep.c: Fix common/ includes.
9862 * i386-fbsd-tdep.c: Fix common/ includes.
9863 * i386-fbsd-nat.c: Fix common/ includes.
9864 * guile/scm-type.c: Fix common/ includes.
9865 * guile/guile.c: Fix common/ includes.
9866 * go32-nat.c: Fix common/ includes.
9867 * gnu-nat.c: Fix common/ includes.
9868 * gdbthread.h: Fix common/ includes.
9869 * gdbarch-selftests.c: Fix common/ includes.
9870 * gdb_usleep.c: Fix common/ includes.
9871 * gdb_select.h: Fix common/ includes.
9872 * gdb_bfd.c: Fix common/ includes.
9873 * gcore.c: Fix common/ includes.
9874 * fork-child.c: Fix common/ includes.
9875 * findvar.c: Fix common/ includes.
9876 * fbsd-nat.c: Fix common/ includes.
9877 * event-top.c: Fix common/ includes.
9878 * event-loop.c: Fix common/ includes.
9879 * dwarf2read.c: Fix common/ includes.
9880 * dwarf2loc.c: Fix common/ includes.
9881 * dwarf2-frame.c: Fix common/ includes.
9882 * dwarf-index-cache.c: Fix common/ includes.
9883 * dtrace-probe.c: Fix common/ includes.
9884 * disasm-selftests.c: Fix common/ includes.
9885 * defs.h: Fix common/ includes.
9886 * csky-tdep.c: Fix common/ includes.
9887 * cp-valprint.c: Fix common/ includes.
9888 * cp-support.h: Fix common/ includes.
9889 * cp-support.c: Fix common/ includes.
9890 * corelow.c: Fix common/ includes.
9891 * completer.h: Fix common/ includes.
9892 * completer.c: Fix common/ includes.
9893 * compile/compile.c: Fix common/ includes.
9894 * compile/compile-loc2c.c: Fix common/ includes.
9895 * compile/compile-cplus-types.c: Fix common/ includes.
9896 * compile/compile-cplus-symbols.c: Fix common/ includes.
9897 * command.h: Fix common/ includes.
9898 * cli/cli-dump.c: Fix common/ includes.
9899 * cli/cli-cmds.c: Fix common/ includes.
9900 * charset.c: Fix common/ includes.
9901 * build-id.c: Fix common/ includes.
9902 * btrace.h: Fix common/ includes.
9903 * btrace.c: Fix common/ includes.
9904 * breakpoint.h: Fix common/ includes.
9905 * breakpoint.c: Fix common/ includes.
9907 (enum agent_op): Fix common/ includes.
9908 * ax-general.c (struct aop_map): Fix common/ includes.
9909 * ax-gdb.c: Fix common/ includes.
9910 * auxv.c: Fix common/ includes.
9911 * auto-load.c: Fix common/ includes.
9912 * arm-tdep.c: Fix common/ includes.
9913 * arch/riscv.c: Fix common/ includes.
9914 * arch/ppc-linux-common.c: Fix common/ includes.
9915 * arch/i386.c: Fix common/ includes.
9916 * arch/arm.c: Fix common/ includes.
9917 * arch/arm-linux.c: Fix common/ includes.
9918 * arch/arm-get-next-pcs.c: Fix common/ includes.
9919 * arch/amd64.c: Fix common/ includes.
9920 * arch/aarch64.c: Fix common/ includes.
9921 * arch/aarch64-insn.c: Fix common/ includes.
9922 * arch-utils.c: Fix common/ includes.
9923 * amd64-windows-tdep.c: Fix common/ includes.
9924 * amd64-tdep.c: Fix common/ includes.
9925 * amd64-sol2-tdep.c: Fix common/ includes.
9926 * amd64-obsd-tdep.c: Fix common/ includes.
9927 * amd64-nbsd-tdep.c: Fix common/ includes.
9928 * amd64-linux-tdep.c: Fix common/ includes.
9929 * amd64-linux-nat.c: Fix common/ includes.
9930 * amd64-fbsd-tdep.c: Fix common/ includes.
9931 * amd64-fbsd-nat.c: Fix common/ includes.
9932 * amd64-dicos-tdep.c: Fix common/ includes.
9933 * amd64-darwin-tdep.c: Fix common/ includes.
9934 * agent.c: Fix common/ includes.
9935 * ada-lang.h: Fix common/ includes.
9936 * ada-lang.c: Fix common/ includes.
9937 * aarch64-tdep.c: Fix common/ includes.
9939 2019-01-25 Tom Tromey <tom@tromey.com>
9941 * common/create-version.sh: Use common/version.h.
9943 2019-01-24 Pedro Alves <palves@redhat.com>
9945 * infrun.c (signal_stop, signal_print, signal_program)
9946 (signal_catch, signal_pass): Now arrays instead of pointers.
9947 (update_signals_program_target, do_target_resume)
9948 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
9949 * linux-nat.c (linux_nat_target::pass_signals)
9950 (linux_nat_target::create_inferior, linux_nat_target::attach):
9952 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
9953 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
9954 * procfs.c (procfs_target::pass_signals): Adjust.
9955 * record-full.c (record_full_target::resume): Adjust.
9956 * remote.c (remote_target::pass_signals)
9957 (remote_target::program_signals): Adjust.
9958 * target-debug.h (target_debug_print_signals): Now takes a
9959 gdb::array_view as parameter. Adjust.
9960 * target.h (target_ops) <pass_signals, program_signals>: Replace
9961 pointer and length parameters with gdb::array_view.
9962 (target_pass_signals, target_program_signals): Likewise.
9963 * target-delegates.c: Regenerate.
9965 2019-01-24 Pedro Alves <palves@redhat.com>
9967 * common/forward-scope-exit.h
9968 (forward_scope_exit::forward_scope_exit): Pass arguments to
9969 m_bind_function directly, instead of creating a std::bind and
9972 2019-01-24 Alan Hayward <alan.hayward@arm.com>
9974 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
9976 (pass_in_v_vfp_candidate): Likewise.
9978 2019-01-23 Tom Tromey <tom@tromey.com>
9979 Pedro Alves <palves@redhat.com>
9981 * regcache.c (class regcache_invalidator): Remove.
9982 (regcache::raw_write): Use make_scope_exit.
9984 2019-01-23 Tom Tromey <tom@tromey.com>
9986 * ui-out.h (class ui_out_emit_type): Update comment.
9988 2019-01-23 Tom Tromey <tom@tromey.com>
9990 * infrun.c (fetch_inferior_event): Update comment.
9992 2019-01-23 Tom Tromey <tom@tromey.com>
9993 Pedro Alves <palves@redhat.com>
9995 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
9997 (fetch_inferior_event): Use SCOPE_EXIT.
10000 2019-01-23 Tom Tromey <tom@tromey.com>
10001 Pedro Alves <palves@redhat.com>
10003 * infrun.c (disable_thread_events): Delete.
10004 (stop_all_threads): Use SCOPE_EXIT.
10006 2019-01-23 Tom Tromey <tom@tromey.com>
10007 Pedro Alves <palves@redhat.com>
10009 * symfile.c: Include forward-scope-exit.h.
10010 (clear_symtab_users_cleanup): Replace forward declaration with
10011 a FORWARD_SCOPE_EXIT.
10012 (syms_from_objfile_1): Use the forward_scope_exit and
10013 gdb::optional instead of cleanup_function.
10014 (reread_symbols): Use the forward_scope_exit instead of
10016 (clear_symtab_users_cleanup): Remove function.
10018 2019-01-23 Tom Tromey <tom@tromey.com>
10019 Pedro Alves <palves@redhat.com>
10021 * linux-nat.c: Include scope-exit.h.
10022 (cleanup_target_stop): Remove.
10023 (linux_nat_target::static_tracepoint_markers_by_strid): Use
10026 2019-01-23 Tom Tromey <tom@tromey.com>
10027 Pedro Alves <palves@redhat.com>
10029 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
10030 (call_function_by_hand_dummy): Use SCOPE_EXIT.
10032 2019-01-23 Tom Tromey <tom@tromey.com>
10033 Andrew Burgess <andrew.burgess@embecosm.com>
10034 Pedro Alves <palves@redhat.com>
10036 * infrun.c (fetch_inferior_event): Use scope_exit.
10037 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
10038 * top.c (execute_command): Use scope_exit.
10039 * breakpoint.c (bpstat_do_actions): Use scope_exit.
10040 * utils.c (do_bpstat_clear_actions_cleanup)
10041 (make_bpstat_clear_actions_cleanup): Remove.
10043 2019-01-23 Tom Tromey <tom@tromey.com>
10044 Pedro Alves <palves@redhat.com>
10046 * infrun.c: Include "common/scope-exit.h"
10047 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
10048 (wait_for_inferior): Use SCOPE_EXIT.
10049 (fetch_inferior_event): Use scope_exit.
10051 2019-01-23 Tom Tromey <tom@tromey.com>
10052 Pedro Alves <palves@redhat.com>
10054 * breakpoint.c (create_breakpoint): Remove cleanup.
10056 2019-01-23 Tom Tromey <tom@tromey.com>
10057 Andrew Burgess <andrew.burgess@embecosm.com>
10058 Pedro Alves <palves@redhat.com>
10060 2019-01-23 Pedro Alves <palves@redhat.com>
10062 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
10064 2019-01-23 Pedro Alves <palves@redhat.com>
10065 Andrew Burgess <andrew.burgess@embecosm.com>
10067 * gdbthread.h: Include "common/forward-scope-exit.h".
10068 (scoped_finish_thread_state): Redefine custom class in terms of
10069 forward_scope_exit.
10071 2019-01-23 Pedro Alves <palves@redhat.com>
10072 Andrew Burgess <andrew.burgess@embecosm.com>
10074 * common/forward-scope-exit.h: New file.
10076 2019-01-23 Pedro Alves <palves@redhat.com>
10077 Andrew Burgess <andrew.burgess@embecosm.com>
10078 Tom Tromey <tom@tromey.com>
10080 * common/scope-exit.h: New file.
10082 2019-01-23 Pedro Alves <palves@redhat.com>
10084 * common/preprocessor.h (ESC): Rename to ...
10085 (ESC_PARENS): ... this.
10086 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
10087 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
10089 2019-01-23 Tom Tromey <tom@tromey.com>
10091 * language.h (class scoped_switch_to_sym_language_if_auto):
10092 Initialize m_lang in both cases.
10094 2019-01-23 Alan Hayward <alan.hayward@arm.com>
10096 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
10099 2019-01-22 Tom Tromey <tom@tromey.com>
10101 * corelow.c: Do not include sys/file.h.
10103 2019-01-22 Tom Tromey <tom@tromey.com>
10105 * tui/tui-wingeneral.h: Include gdb_curses.h.
10107 2019-01-22 Tom Tromey <tom@tromey.com>
10109 * source-cache.h (class source_cache) <get_source_lines,
10110 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
10112 2019-01-22 Tom Tromey <tom@tromey.com>
10114 * remote-fileio.h (struct remote_target): Declare.
10116 2019-01-22 Tom Tromey <tom@tromey.com>
10118 * python/py-arch.c: Do not include py-ref.h.
10119 * python/py-bpevent.c: Do not include py-ref.h.
10120 * python/py-cmd.c: Do not include py-ref.h.
10121 * python/py-continueevent.c: Do not include py-ref.h.
10122 * python/py-event.h: Do not include py-ref.h.
10123 * python/py-evtregistry.c: Do not include py-ref.h.
10124 * python/py-finishbreakpoint.c: Do not include py-ref.h.
10125 * python/py-frame.c: Do not include py-ref.h.
10126 * python/py-framefilter.c: Do not include py-ref.h.
10127 * python/py-function.c: Do not include py-ref.h.
10128 * python/py-infevents.c: Do not include py-ref.h.
10129 * python/py-linetable.c: Do not include py-ref.h.
10130 * python/py-objfile.c: Do not include py-ref.h.
10131 * python/py-param.c: Do not include py-ref.h.
10132 * python/py-prettyprint.c: Do not include py-ref.h.
10133 * python/py-progspace.c: Do not include py-ref.h.
10134 * python/py-symbol.c: Do not include py-ref.h.
10135 * python/py-symtab.c: Do not include py-ref.h.
10136 * python/py-type.c: Do not include py-ref.h.
10137 * python/py-unwind.c: Do not include py-ref.h.
10138 * python/py-utils.c: Do not include py-ref.h.
10139 * python/py-value.c: Do not include py-ref.h.
10140 * python/py-varobj.c: Do not include py-ref.h.
10141 * python/py-xmethods.c: Do not include py-ref.h.
10142 * python/python.c: Do not include py-ref.h.
10143 * varobj.c: Do not include py-ref.h.
10145 2019-01-22 Tom Tromey <tom@tromey.com>
10147 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
10148 keyword for bcache.
10150 2019-01-22 Tom Tromey <tom@tromey.com>
10152 * compile/compile-cplus-types.c: Remove a comment by #include.
10154 2019-01-22 Tom Tromey <tom@tromey.com>
10156 * compile/gcc-c-plugin.h: Include compile-internal.h.
10158 2019-01-22 Tom Tromey <tom@tromey.com>
10160 * stabsread.c (EXTERN): Do not define.
10161 (symnum, next_symbol_text_func, processing_gcc_compilation)
10162 (within_function, global_sym_chain, global_stabs)
10163 (previous_stab_code, this_object_header_files)
10164 (n_this_object_header_files)
10165 (n_allocated_this_object_header_files): Define.
10166 * stabsread.h (EXTERN): Never define. Use "extern".
10168 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10170 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
10173 2019-01-21 Tom Tromey <tom@tromey.com>
10175 * ui-out.c: Fix includes.
10176 * tui/tui-source.c: Fix includes.
10177 * target.c: Fix includes.
10178 * remote.c: Fix includes.
10179 * regcache.c: Fix includes.
10180 * python/py-block.c: Fix includes.
10181 * printcmd.c: Fix includes.
10182 * or1k-tdep.c: Fix includes.
10183 * mi/mi-main.c: Fix includes.
10184 * m32r-tdep.c: Fix includes.
10185 * csky-tdep.c: Fix includes.
10186 * compile/compile-cplus-types.c: Fix includes.
10187 * cli/cli-interp.c: Fix includes.
10189 2019-01-21 Alan Hayward <alan.hayward@arm.com>
10191 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
10194 2019-01-16 Tom Tromey <tom@tromey.com>
10196 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
10198 (struct objfile) <msymbols_range>: Move from top level.
10199 <msymbols>: New method.
10200 (class objfile_msymbols): Remove.
10201 * symtab.c (default_collect_symbol_completion_matches_break_on):
10203 * symmisc.c (dump_msymbols): Update.
10204 * stabsread.c (scan_file_globals): Update.
10205 * objc-lang.c (info_selectors_command, info_classes_command)
10206 (find_methods): Update.
10207 * minsyms.c (find_solib_trampoline_target): Update.
10208 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
10209 * coffread.c (coff_symfile_read): Update.
10210 * ada-lang.c (ada_lookup_simple_minsym)
10211 (ada_collect_symbol_completion_matches): Update.
10213 2019-01-16 Tom Tromey <tom@tromey.com>
10215 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
10216 type. Remove no-argument constructor.
10217 <iterator::operator++>: Simplify.
10219 <end>: Use minimal_symbol_count.
10221 2019-01-16 Tom Tromey <tom@tromey.com>
10223 * objfiles.h (struct objfile) <psymtabs>: New method.
10224 (class objfile_psymtabs): Remove.
10225 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
10227 <range>: New method.
10228 (require_partial_symbols): Change return type.
10229 * psymtab.c (require_partial_symbols)
10230 (psym_expand_symtabs_matching): Update.
10231 * mdebugread.c (parse_partial_symbols): Update.
10232 * dbxread.c (dbx_end_psymtab): Update.
10234 2019-01-15 Tom Tromey <tom@tromey.com>
10236 * symtab.c (lookup_objfile_from_block)
10237 (lookup_symbol_in_objfile_symtabs)
10238 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
10239 (find_line_symtab, info_sources_command)
10240 (default_collect_symbol_completion_matches_break_on)
10241 (make_source_files_completion_list): Update.
10242 * symmisc.c (print_objfile_statistics, dump_objfile)
10243 (maintenance_print_symbols, maintenance_info_symtabs)
10244 (maintenance_check_symtabs, maintenance_info_line_tables):
10246 * source.c (select_source_symtab)
10247 (forget_cached_source_info_for_objfile): Update.
10248 * objfiles.h (class objfile_compunits): Remove.
10249 (struct objfile) <compunits_range>: New typedef.
10250 (compunits): New method.
10251 * objfiles.c (objfile_relocate1): Update.
10252 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
10253 * maint.c (count_symtabs_and_blocks): Update.
10254 * linespec.c (iterate_over_all_matching_symtabs): Update.
10255 * cp-support.c (add_symbol_overload_list_qualified): Update.
10256 * coffread.c (coff_symtab_read): Update.
10257 * ada-lang.c (add_nonlocal_symbols)
10258 (ada_collect_symbol_completion_matches)
10259 (ada_add_global_exceptions): Update.
10261 2019-01-15 Tom Tromey <tom@tromey.com>
10263 * progspace.h (program_space) <objfiles_safe_range>: New
10265 <objfiles_safe>: New method.
10266 * objfiles.h (class all_objfiles_safe): Remove.
10267 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
10268 * jit.c (jit_inferior_exit_hook): Update.
10270 2019-01-17 Tom Tromey <tom@tromey.com>
10272 * progspace.h (program_space) <objfiles_range>: New typedef.
10273 <objfiles>: New method.
10274 <objfiles_head>: Rename from objfiles.
10275 (object_files): Update.
10276 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
10277 * guile/scm-pretty-print.c
10278 (ppscm_find_pretty_printer_from_objfiles): Update.
10279 * guile/scm-objfile.c (gdbscm_objfiles): Update.
10280 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
10282 * python/py-progspace.c (pspy_get_objfiles): Update.
10283 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
10285 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
10286 (objfpy_lookup_objfile_by_build_id): Update.
10287 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
10288 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
10290 * symtab.c (iterate_over_symtabs, matching_obj_sections)
10291 (expand_symtab_containing_pc, lookup_objfile_from_block)
10292 (lookup_static_symbol, basic_lookup_transparent_type)
10293 (find_pc_sect_compunit_symtab, find_symbol_at_address)
10294 (find_line_symtab, info_sources_command)
10295 (default_collect_symbol_completion_matches_break_on)
10296 (make_source_files_completion_list, find_main_name): Update.
10297 * symmisc.c (print_symbol_bcache_statistics)
10298 (print_objfile_statistics, maintenance_print_symbols)
10299 (maintenance_print_msymbols, maintenance_print_objfiles)
10300 (maintenance_info_symtabs, maintenance_check_symtabs)
10301 (maintenance_expand_symtabs, maintenance_info_line_tables):
10303 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
10304 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
10305 (map_overlay_command, unmap_overlay_command)
10306 (simple_overlay_update, expand_symtabs_matching)
10307 (map_symbol_filenames): Update.
10308 * symfile-debug.c (set_debug_symfile): Update.
10309 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
10311 * source.c (select_source_symtab, forget_cached_source_info):
10313 * solib.c (solib_read_symbols): Update.
10314 * solib-spu.c (append_ocl_sos): Update.
10315 * psymtab.c (maintenance_print_psymbols)
10316 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
10317 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
10318 * printcmd.c (info_symbol_command): Update.
10319 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
10321 * objfiles.h (class all_objfiles): Remove.
10322 * objfiles.c (have_partial_symbols, have_full_symbols)
10323 (have_minimal_symbols, qsort_cmp, update_section_map)
10324 (shared_objfile_contains_address_p)
10325 (default_iterate_over_objfiles_in_search_order): Update.
10326 * objc-lang.c (info_selectors_command, info_classes_command)
10327 (find_methods): Update.
10328 * minsyms.c (find_solib_trampoline_target): Update.
10329 * maint.c (maintenance_info_sections)
10330 (maintenance_translate_address, count_symtabs_and_blocks):
10332 * main.c (captured_main_1): Update.
10333 * linux-thread-db.c (try_thread_db_load_from_pdir)
10334 (has_libpthread): Update.
10335 * linespec.c (iterate_over_all_matching_symtabs)
10336 (search_minsyms_for_name): Update.
10337 * jit.c (jit_find_objf_with_entry_addr): Update.
10338 * hppa-tdep.c (find_unwind_entry)
10339 (hppa_lookup_stub_minimal_symbol): Update.
10340 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
10342 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
10343 (elf_gnu_ifunc_resolve_by_got): Update.
10344 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
10345 * dwarf-index-write.c (save_gdb_index_command): Update.
10346 * cp-support.c (add_symbol_overload_list_qualified): Update.
10347 * breakpoint.c (create_overlay_event_breakpoint)
10348 (create_longjmp_master_breakpoint)
10349 (create_std_terminate_master_breakpoint)
10350 (create_exception_master_breakpoint): Update.
10351 * blockframe.c (find_pc_partial_function): Update.
10352 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
10353 (ada_collect_symbol_completion_matches)
10354 (ada_add_global_exceptions): Update.
10356 2019-01-17 Tom Tromey <tom@tromey.com>
10358 * solib-target.c (lm_info_target_p): Remove typedef. Don't
10360 (solib_target_parse_libraries): Change return type.
10361 (library_list_start_segment, library_list_start_section)
10362 (library_list_end_library, library_list_start_library); Update.
10363 (solib_target_free_library_list): Remove.
10364 (solib_target_parse_libraries): Remove cleanup. Change return
10366 (solib_target_current_sos): Update.
10368 2019-01-17 Tom Tromey <tromey@bapiya>
10370 * valprint.c: Replace "the the" with "the".
10371 * symtab.c: Replace "the the" with "the".
10372 * solib.c: Replace "the the" with "the".
10373 * solib-dsbt.c: Replace "the the" with "the".
10374 * linespec.c: Replace "the the" with "the".
10375 * dwarf2loc.h: Replace "the the" with "the".
10376 * amd64-windows-tdep.c: Replace "the the" with "the".
10377 * aarch64-tdep.c: Replace "the the" with "the".
10379 2019-01-16 Keith Seitz <keiths@redhat.com>
10382 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
10383 <builder>: Rename to ..
10384 <m_builder>: ... this and make private.
10385 (dwarf2_cu::get_builder): New method. Change all users of
10386 `builder' to use this method.
10387 (dwarf2_start_symtab): Move to ...
10388 (dwarf2_cu::start_symtab): ... here. Update all callers
10389 (setup_type_unit_groups): Move to ...
10390 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
10392 (dwarf2_cu::reset_builder): New method.
10393 (process_full_compunit, process_full_type_unit): Use
10394 dwarf2_cu::reset_builder.
10395 (follow_die_offset): Record the ancestor CU if it is different
10396 from the followed DIE's CU.
10397 (follow_die_sig_1): Likewise.
10399 2019-01-15 Tom Tromey <tom@tromey.com>
10401 * remote.c (class remote_state) <buf>: Now a char_vector.
10402 <buf_size>: Remove.
10403 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
10405 (remote_target::getpkt_or_notif_sane_1)
10406 (remote_target::getpkt_sane)
10407 (remote_target::getpkt_or_notif_sane): Likewise.
10408 (class remote_target) <putpkt>: New overload.
10409 (remote_target::read_frame): Change type of "buf_p". Remove
10410 sizeof_p parameter.
10411 (packet_ok): New overload.
10412 (packet_check_result): New overload.
10415 2019-01-14 Tom Tromey <tom@tromey.com>
10417 * remote-notif.c (handle_notification, remote_notif_ack)
10418 (remote_notif_parse): Make "buf" const.
10419 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
10421 (remote_notif_parse, remote_notif_ack, handle_notification):
10423 * remote.c (remote_notif_stop_parse): Make "buf" const.
10424 (remote_target::remote_parse_stop_reply): Make "buf" const.
10425 (remote_notif_stop_ack): Make "buf" const.
10427 2019-01-14 Tom Tromey <tom@tromey.com>
10429 * remote.c (remote_console_output): Make parameter const.
10431 2019-01-14 Tom Tromey <tom@tromey.com>
10433 * target-debug.h (target_debug_print_signals): Constify.
10434 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
10435 * procfs.c (procfs_target::pass_signals): Update.
10436 * linux-nat.c (linux_nat_target::pass_signals): Update.
10437 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
10438 * target-delegates.c: Rebuild.
10439 * remote.c (remote_target::program_signals): Update.
10440 (remote_target::pass_signals): Update.
10441 * target.c (target_pass_signals): Constify argument.
10442 (target_program_signals): Likewise.
10443 * target.h (struct target_ops) <pass_signals, program_signals>:
10445 (target_pass_signals, target_program_signals): Constify argument.
10447 2019-01-14 Tom Tromey <tom@tromey.com>
10450 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
10452 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10454 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
10456 * rs6000-tdep.c: Include reggroups.h.
10457 (IS_V_ALIAS_PSEUDOREG): Define.
10458 (rs6000_register_name): Return names for the "vX" aliases.
10459 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
10460 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
10461 aliases. Call default_register_reggroup_p for all other
10463 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
10465 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
10466 Handle "vX" aliases.
10467 (v_alias_pseudo_register_collect): New function.
10468 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
10469 (rs6000_gdbarch_init): Initialize "vX" aliases as
10470 pseudo-registers. Restore registration of
10471 rs6000_pseudo_register_reggroup_p with
10472 set_tdesc_pseudo_register_reggroup_p.
10474 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
10476 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
10477 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
10478 set_gdbarch_num_pseudo_regs.
10480 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10482 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
10483 Remove arg prefixname, add do_set and do_show.
10484 Add member functions set_list and show_list.
10485 * cli/cli-style.c (class cli_style_option): Update accordingly.
10486 (style_set_list): Move to file scope.
10487 (style_show_list): Likewise.
10488 (set_style): Call help_list.
10489 (show_style): Call cmd_show_list.
10490 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
10491 Update to use the new macro.
10493 2019-10-12 Joel Brobecker <brobecker@adacore.com>
10495 * ada-lang.c (_initialize_ada_language): Expand the help text
10496 for the "catch exception" command.
10498 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10500 * symtab.c (matching_obj_sections): Initialize obj,
10501 declare it closer to its usage.
10503 2019-01-10 Tom Tromey <tom@tromey.com>
10505 * thread-iter.h (inf_threads_iterator): Use next_iterator.
10506 (basic_inf_threads_range): Remove.
10507 (inf_threads_range, inf_non_exited_threads_range)
10508 (safe_inf_threads_range): Use next_adapter.
10510 2019-01-10 Keith Seitz <keiths@redhat.com>
10514 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
10515 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
10517 2019-01-10 Keith Seitz <keiths@redhat.com>
10521 * dictionary.c (pending_to_vector): Remove.
10522 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
10523 Remove _1 suffix, replacing functions of the same name. Update
10525 (dict_create_hashed, dict_create_hashed_expandable)
10526 (dict_create_linear, dict_create_linear_expandable, dict_free)
10527 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
10528 Make functions static.
10530 2019-01-10 Keith Seitz <keiths@redhat.com>
10534 * dictionary.h (struct dictionary): Replace declaration with
10536 (dict_create_hashed, dict_create_hashed_expandable)
10537 (dict_create_linear, dict_create_linear_expandable)
10538 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
10539 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
10540 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
10541 taking multidictionary argument.
10542 [ALL_DICT_SYMBOLS]: Update for multidictionary.
10543 * block.h (struct block) <dict>: Change to multidictionary
10544 and rename `multidict'.
10545 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
10546 symmisc.c: Update all dictionary references to multidictionary.
10548 2019-01-10 Keith Seitz <keiths@redhat.com>
10552 * dictionary.c: Include unordered_map.
10553 (pending_to_vector): New function.
10554 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
10555 Rewrite the non-"_1" functions to take vector instead
10557 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
10558 "new" _1 versions of the same name.
10559 (multidictionary): Define.
10560 (std::hash<enum language): New definition.
10561 (collate_pending_symbols_by_language, mdict_create_hashed)
10562 (mdict_create_hashed_expandable, mdict_create_linear)
10563 (mdict_create_linear_expandable, mdict_free)
10564 (find_language_dictionary, create_new_language_dictionary)
10565 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
10566 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
10567 (mdict_size, mdict_empty): New functions.
10568 * dictionary.h (mdict_iterator): Define.
10570 2019-01-10 Pedro Alves <palves@redhat.com>
10572 * breakpoint.c (read_uploaded_action)
10573 (create_tracepoint_from_upload): Adjust to use
10574 gdb::unique_xmalloc_ptr.
10575 * ctf.c (ctf_write_uploaded_tp):
10576 (SET_ARRAY_FIELD): Use emplace_back.
10577 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
10578 * tracefile-tfile.c (tfile_write_uploaded_tp):
10579 * tracepoint.c (parse_tracepoint_definition): Adjust to use
10580 gdb::unique_xmalloc_ptr.
10581 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
10582 at_string, cond_string, cmd_strings>: Replace char pointers
10583 with gdb::unique_xmalloc_ptr.
10585 2019-01-10 Pedro Alves <palves@redhat.com>
10587 * solib-target.c (library_list_start_library): Don't xstrdup name.
10589 2019-01-10 Pedro Alves <palves@redhat.com>
10591 * mdebugread.c (parse_partial_symbols): Use
10592 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
10594 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
10596 * linux-fork.c (scoped_switch_fork_info)
10597 <~scoped_switch_fork_info>: Fix incorrect variable name.
10599 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
10601 * linux-fork.c (scoped_switch_fork_info)
10602 <scoped_switch_fork_info>: Make explicit.
10603 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
10605 2019-01-10 Tom Tromey <tom@tromey.com>
10607 * objfiles.h (objfile::reset_psymtabs): Update.
10608 * objfiles.c (objfile::objfile): Update.
10609 * psymtab.h (psymtab_storage::obstack): Update.
10610 (psymtab_storage::m_obstack): Use gdb::optional.
10611 (class psymtab_storage): Update comment. Remove objfile
10613 * psymtab.c (psymtab_storage::psymtab_storage): Update.
10615 2019-01-10 Tom Tromey <tom@tromey.com>
10617 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
10618 <free_psymtabs>: Now private.
10619 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
10620 (allocate_psymtab): Use new method.
10622 2019-01-10 Tom Tromey <tom@tromey.com>
10624 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
10625 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
10626 * mdebugread.c (parse_partial_symbols): Use
10627 allocate_dependencies.
10628 * dwarf2read.c (dwarf2_create_include_psymtab): Use
10629 allocate_dependencies.
10630 (process_psymtab_comp_unit_reader)
10631 (build_type_psymtab_dependencies): Likewise.
10632 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
10634 2019-01-10 Tom Tromey <tom@tromey.com>
10636 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
10637 PSYMBOL_SET_LANGUAGE.
10638 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
10640 2019-01-10 Tom Tromey <tom@tromey.com>
10642 * psymtab.h (psymtab_storage::obstack): New method.
10643 <m_obstack>: Rename from obstack; now private.
10644 * psymtab.c (psymtab_storage): Update.
10645 * dwarf2read.c (create_addrmap_from_index)
10646 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
10649 2019-01-10 Tom Tromey <tom@tromey.com>
10651 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
10652 * objfiles.h (objfile::reset_psymtabs): New method.
10654 2019-01-10 Tom Tromey <tom@tromey.com>
10656 * symmisc.c (print_symbol_bcache_statistics): Update.
10657 (print_objfile_statistics): Update.
10658 * symfile.c (reread_symbols): Update.
10659 * psymtab.h (class psymtab_storage): New.
10660 * psymtab.c (psymtab_storage): New constructor.
10661 (~psymtab_storage): New destructor.
10662 (require_partial_symbols): Update.
10663 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
10664 (find_pc_sect_psymtab, find_pc_sect_psymbol)
10665 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
10666 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
10667 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
10668 (start_psymtab_common, end_psymtab_common)
10669 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
10670 (allocate_psymtab): Update.
10671 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
10673 (dump_psymtab_addrmap, maintenance_print_psymbols)
10674 (maintenance_check_psymtabs): Update.
10675 (class objfile_psymtabs): Move to objfiles.h.
10676 * psympriv.h (discard_psymtab): Now inline.
10677 (psymtab_discarder::psymtab_discarder): Update.
10678 (psymtab_discarder::~psymtab_discarder): Update.
10679 (ALL_OBJFILE_PSYMTABS): Rewrite.
10680 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
10681 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
10683 <partial_symtabs>: New field.
10684 (class objfile_psymtabs): Move from psymtab.h. Update.
10685 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
10687 (objfile::~objfile): Don't destroy psymbol_cache.
10688 * mdebugread.c (parse_partial_symbols): Update.
10689 * dwarf2read.c (create_addrmap_from_index)
10690 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10691 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
10692 (add_partial_subprogram, dwarf2_ranges_read): Update.
10693 * dwarf-index-write.c (write_address_map)
10694 (write_one_signatured_type, recursively_write_psymbols)
10695 (class debug_names, class debug_names, write_psymtabs_to_index):
10698 2019-01-10 Tom Tromey <tom@tromey.com>
10700 * symtab.h (SYMBOL_SET_NAMES): Update.
10701 (symbol_set_names): Update.
10702 (MSYMBOL_SET_NAMES): Update.
10703 * symtab.c (symbol_set_names): Change argument to be an
10704 objfile_per_bfd_storage.
10705 * psymtab.c (add_psymbol_to_bcache): Update.
10706 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
10708 2019-01-10 Tom Tromey <tom@tromey.com>
10710 * symtab.c (create_demangled_names_hash): Change argument to be an
10711 objfile_per_bfd_storage.
10712 (symbol_set_names): Update.
10714 2019-01-10 Tom Tromey <tom@tromey.com>
10716 * xcoffread.c (xcoff_initial_scan): Unconditionally call
10718 * psymtab.c (init_psymbol_list): Do nothing if already called.
10719 * psympriv.h (init_psymbol_list): Add comment.
10720 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
10722 * dbxread.c (dbx_symfile_read): Unconditionally call
10725 2019-01-10 Tom Tromey <tom@tromey.com>
10727 * xcoffread.c (scan_xcoff_symtab): Update.
10728 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
10730 * mdebugread.c (parse_partial_symbols)
10731 (handle_psymbol_enumerators): Update.
10732 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
10733 * dbxread.c (read_dbx_symtab): Update.
10734 * psympriv.h (psymbol_placement): New enum.
10735 (add_psymbol_to_list): Update.
10737 2019-01-10 Tom Tromey <tom@tromey.com>
10739 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
10740 static_psymbols parameters.
10741 (scan_xcoff_symtab): Update.
10742 * psymtab.c (start_psymtab_common): Remove global_psymbols and
10743 static_psymbols parameters.
10744 * psympriv.h (start_psymtab_common): Update.
10745 * mdebugread.c (parse_partial_symbols): Update.
10746 * dwarf2read.c (create_partial_symtab): Update.
10747 * dbxread.c (read_dbx_symtab): Update.
10748 (start_psymtab): Remove global_psymbols and static_psymbols
10751 2019-01-10 Tom Tromey <tom@tromey.com>
10753 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
10754 * psymtab.c (allocate_psymtab): Add comment.
10755 * psympriv.h (allocate_psymtab): Add comment.
10756 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
10758 * dbxread.c (dbx_end_psymtab): Remove some initializations.
10760 2019-01-10 Tom Tromey <tom@tromey.com>
10762 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
10764 * mipsread.c: Include mdebugread.h.
10765 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
10767 * elfread.c: Include mdebugread.h.
10769 2019-01-09 Tom Tromey <tom@tromey.com>
10771 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
10772 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
10773 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
10774 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
10775 (psym_lookup_symbol, psym_find_last_source_symtab)
10776 (psym_forget_cached_source_info, psym_print_stats)
10777 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
10778 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
10779 (psym_map_matching_symbols, psym_expand_symtabs_matching)
10780 (psym_find_compunit_symtab_by_address)
10781 (maintenance_print_psymbols, maintenance_info_psymtabs)
10782 (maintenance_check_psymtabs): Use ranged for.
10783 * psymtab.h (class objfile_psymtabs): New.
10784 (require_partial_symbols): Return objfile_psymtabs.
10785 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
10787 2019-01-09 Tom Tromey <tom@tromey.com>
10789 * symfile.c (overlay_invalidate_all, find_pc_overlay)
10790 (find_pc_mapped_section, list_overlays_command)
10791 (map_overlay_command, unmap_overlay_command)
10792 (simple_overlay_update): Use all_objfiles.
10793 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
10794 * printcmd.c (info_symbol_command): Use all_objfiles.
10795 * objfiles.h (ALL_OBJSECTIONS): Remove.
10796 * maint.c (maintenance_translate_address): Use all_objfiles.
10797 * gcore.c (gcore_create_callback): Use all_objfiles.
10798 (objfile_find_memory_regions): Likewise.
10800 2019-01-09 Tom Tromey <tom@tromey.com>
10802 * symtab.c (find_line_symtab, info_sources_command)
10803 (make_source_files_completion_list): Use objfile_compunits.
10804 * source.c (select_source_symtab): Use objfile_compunits.
10805 * objfiles.h (struct objfile): Update comment.
10806 (ALL_OBJFILES): Remove.
10807 (ALL_FILETABS): Remove.
10808 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
10811 2019-01-09 Tom Tromey <tom@tromey.com>
10813 * symmisc.c (print_objfile_statistics, dump_objfile)
10814 (maintenance_print_symbols): Use compunit_filetabs.
10815 * source.c (forget_cached_source_info_for_objfile): Use
10817 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
10818 (ALL_FILETABS): Use compunit_filetabs.
10819 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
10820 * coffread.c (coff_symtab_read): Use compunit_filetabs.
10822 2019-01-09 Tom Tromey <tom@tromey.com>
10824 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
10825 (compunit_filetabs): New.
10826 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
10828 (info_sources_command, make_source_files_completion_list): Remove
10830 * symmisc.c (print_objfile_statistics, dump_objfile)
10831 (maintenance_print_symbols): Remove declaration.
10832 (maintenance_info_symtabs): Use compunit_filetabs.
10833 (maintenance_info_line_tables): Likewise.
10834 * source.c (select_source_symtab): Change local variable name.
10835 (forget_cached_source_info_for_objfile): Remove declaration.
10836 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
10837 * objfiles.c (objfile_relocate1): Remove declaration.
10838 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
10840 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
10841 * coffread.c (coff_symtab_read): Remove declaration.
10842 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
10845 2019-01-09 Tom Tromey <tom@tromey.com>
10847 * symtab.c (lookup_objfile_from_block)
10848 (find_pc_sect_compunit_symtab, search_symbols)
10849 (default_collect_symbol_completion_matches_break_on): Use
10851 * objfiles.h (ALL_COMPUNITS): Remove.
10852 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
10853 * cp-support.c (add_symbol_overload_list_qualified): Use
10855 * ada-lang.c (ada_collect_symbol_completion_matches)
10856 (ada_add_global_exceptions): Use objfile_compunits.
10858 2019-01-09 Tom Tromey <tom@tromey.com>
10860 * source.c (select_source_symtab)
10861 (forget_cached_source_info_for_objfile): Remove declaration.
10862 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
10864 * maint.c (count_symtabs_and_blocks): Remove declaration.
10865 * cp-support.c (add_symbol_overload_list_qualified): Remove
10867 * coffread.c (coff_symtab_read): Remove declaration.
10868 * symtab.c (lookup_symbol_in_objfile_symtabs)
10869 (basic_lookup_transparent_type_1): Use objfile_compunits.
10870 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
10871 (info_sources_command, search_symbols)
10872 (default_collect_symbol_completion_matches_break_on)
10873 (make_source_files_completion_list): Remove declaration.
10874 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
10875 (ada_collect_symbol_completion_matches)
10876 (ada_add_global_exceptions): Remove declaration.
10877 * linespec.c (iterate_over_all_matching_symtabs): Use
10879 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
10880 (class objfile_compunits): New.
10881 (ALL_COMPUNITS): Use objfile_compunits.
10882 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
10883 (maintenance_check_symtabs, maintenance_info_line_tables): Use
10885 * objfiles.c (objfile_relocate1): Use objfile_compunits.
10887 2019-01-09 Tom Tromey <tom@tromey.com>
10889 * symtab.c (search_symbols)
10890 (default_collect_symbol_completion_matches_break_on): Use
10892 * ada-lang.c (ada_lookup_simple_minsym)
10893 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
10894 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
10895 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
10897 * coffread.c (coff_symfile_read): Use objfile_msymbols.
10898 * symmisc.c (dump_msymbols): Use objfile_msymbols.
10899 * objc-lang.c (find_methods): Use objfile_msymbols.
10900 (info_selectors_command, info_classes_command): Likewise.
10901 * stabsread.c (scan_file_globals): Use objfile_msymbols.
10902 * objfiles.h (class objfile_msymbols): New.
10903 (ALL_OBJFILE_MSYMBOLS): Remove.
10904 (ALL_MSYMBOLS): Remove.
10906 2019-01-09 Tom Tromey <tom@tromey.com>
10908 * common/next-iterator.h (next_adapter): Add Iterator template
10910 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
10911 (class all_objfiles_safe): New.
10912 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
10913 * objfiles.c (put_objfile_before): Update comment.
10914 (add_separate_debug_objfile): Likewise.
10915 (free_all_objfiles): Use all_objfiles_safe.
10916 (objfile_purge_solibs): Likewise.
10918 2019-01-09 Tom Tromey <tom@tromey.com>
10920 * symtab.c (iterate_over_symtabs, matching_obj_sections)
10921 (expand_symtab_containing_pc, lookup_static_symbol)
10922 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
10923 (find_symbol_at_address, find_line_symtab, find_main_name): Use
10925 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
10926 * breakpoint.c (create_overlay_event_breakpoint)
10927 (create_longjmp_master_breakpoint)
10928 (create_std_terminate_master_breakpoint)
10929 (create_exception_master_breakpoint): Use all_objfiles.
10930 * linux-thread-db.c (try_thread_db_load_from_pdir)
10931 (has_libpthread): Use all_objfiles.
10932 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
10933 * linespec.c (iterate_over_all_matching_symtabs)
10934 (search_minsyms_for_name): Use all_objfiles.
10935 * maint.c (maintenance_info_sections): Use all_objfiles.
10936 * main.c (captured_main_1): Use all_objfiles.
10937 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
10938 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
10939 * guile/scm-pretty-print.c
10940 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
10941 * solib-spu.c (append_ocl_sos): Use all_objfiles.
10942 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
10943 (maintenance_print_msymbols): Use all_objfiles.
10944 * source.c (select_source_symtab): Use all_objfiles.
10945 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
10946 * symfile.c (remove_symbol_file_command)
10947 (expand_symtabs_matching, map_symbol_filenames): Use
10949 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
10951 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
10952 * objc-lang.c (find_methods): Use all_objfiles.
10953 * objfiles.c (have_partial_symbols, have_full_symbols)
10954 (have_minimal_symbols, qsort_cmp)
10955 (default_iterate_over_objfiles_in_search_order): Use
10957 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
10958 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
10959 (maintenance_check_psymtabs): Use all_objfiles.
10960 (ALL_PSYMTABS): Remove.
10961 * compile/compile-object-run.c (do_module_cleanup): Use
10963 * blockframe.c (find_pc_partial_function): Use all_objfiles.
10964 * cp-support.c (add_symbol_overload_list_qualified): Use
10966 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
10968 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
10969 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
10971 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
10972 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
10973 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
10975 * solib.c (solib_read_symbols): Use all_objfiles
10977 2019-01-09 Tom Tromey <tom@tromey.com>
10979 * probe.c (parse_probes_in_pspace): Use all_objfiles.
10980 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
10982 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
10983 * symmisc.c (print_symbol_bcache_statistics)
10984 (print_objfile_statistics, maintenance_print_objfiles)
10985 (maintenance_info_symtabs, maintenance_check_symtabs)
10986 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
10988 * source.c (forget_cached_source_info): Use all_objfiles.
10989 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
10990 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
10991 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
10992 * objfiles.c (update_section_map): Use all_objfiles.
10993 (shared_objfile_contains_address_p): Likewise.
10994 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
10995 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
10997 2019-01-09 Tom Tromey <tom@tromey.com>
10999 * common/next-iterator.h: New file.
11000 * objfiles.h (class all_objfiles): New.
11001 (struct objfile_iterator): New.
11003 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11005 * NEWS: Move the description of the changed "frame", "select-frame",
11006 and "info frame" commands to the Changed commands section.
11008 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
11010 * gdbtypes.c (check_stub_method_group): Remove handling of old
11012 * linespec.c (find_methods): Likewise.
11013 * stabsread.c (read_member_functions): Likewise.
11014 * valops.c (search_struct_method): Likewise.
11015 (value_struct_elt_for_reference): Likewise.
11016 * NEWS: Mention this change.
11018 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11020 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
11021 print_source_lines.
11022 * source.c (print_source_lines_base): Update line number check.
11023 (print_source_lines): New function.
11024 (source_lines_range::source_lines_range): New function.
11025 * source.h (class source_lines_range): New class.
11026 (print_source_lines): New declaration.
11028 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11030 * linespec.c (linespec_state_destructor): Free self->canonical_names.
11032 2019-01-08 Tom Tromey <tom@tromey.com>
11033 Simon Marchi <simon.marchi@ericsson.com>
11036 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
11037 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
11038 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
11039 * f-exp.y (DOLLAR_VARIABLE): Likewise.
11040 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
11041 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
11043 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
11045 * source.c (select_source_symtab): Move header comment to
11046 declaration in source.h.
11047 (forget_cached_source_info_for_objfile): Likewise.
11048 (forget_cached_source_info): Likewise.
11049 (identify_source_line): Likewise.
11050 * source.h (identify_source_line): Move declaration from symtab.h
11051 and add comment from source.c
11052 (print_source_lines): Likewise.
11053 (forget_cached_source_info_for_objfile): Likewise.
11054 (forget_cached_source_info): Likewise.
11055 (select_source_symtab): Likewise.
11056 (enum print_source_lines_flag): Move definition from symtab.h.
11057 * symtab.h (identify_source_line): Move declaration to source.h.
11058 (print_source_lines): Likewise.
11059 (forget_cached_source_info_for_objfile): Likewise.
11060 (forget_cached_source_info): Likewise.
11061 (select_source_symtab): Likewise.
11062 (enum print_source_lines_flag): Move definition to source.h.
11063 * tui/tui-hooks.c: Add 'source.h' include.
11065 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
11067 * source.c (print_source_lines_base): Handle requests to print
11068 reverse line number sequences, and guard against empty lines
11071 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
11073 * source.c (print_source_lines_base): Fix skip of '\r' if next
11076 2019-01-06 Tom Tromey <tom@tromey.com>
11078 * c-exp.y (struct c_parse_state) <macro_original_text,
11079 expansion_obstack>: New member.
11080 (macro_original_text, expansion_obstack): Remove globals.
11081 (scan_macro_expansion, scanning_macro_expansion)
11082 (finished_macro_expansion): Update.
11083 (scan_macro_cleanup): Remove.
11084 (yylex, c_parse): Update.
11086 2019-01-06 Tom Tromey <tom@tromey.com>
11088 * c-exp.y (struct c_parse_state) <strings>: New member.
11089 (operator_stoken): Update.
11091 2019-01-06 Tom Tromey <tom@tromey.com>
11093 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
11094 (union type_stack_elt) <typelist_val>: Now a pointer to
11096 (type_stack_cleanup): Don't declare.
11097 (push_typelist): Update.
11098 * parse.c (pop_typelist): Return a std::vector.
11099 (push_typelist): Take a std::vector.
11100 (follow_types): Update. Do not free args.
11101 (type_stack_cleanup): Remove.
11102 * c-exp.y (struct c_parse_state): New.
11103 (cpstate): New global.
11104 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
11105 (nonempty_typelist): Update.
11106 (func_mod): Create a new vector.
11107 (c_parse): Create a c_parse_state.
11108 (check_parameter_typelist): Do not delete params.
11109 (function_method): Update. Do not delete type_list.
11111 2019-01-06 Tom Tromey <tom@tromey.com>
11114 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
11116 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
11117 (print_return_value): Likewise.
11119 2019-01-05 Tom Tromey <tom@tromey.com>
11121 * contrib/cleanup_check.py: Remove.
11122 * contrib/gcc-with-excheck: Remove.
11123 * contrib/exsummary.py: Remove.
11124 * contrib/excheck.py: Remove.
11126 2019-01-05 Joel Brobecker <brobecker@adacore.com>
11128 * thread.c (delete_thread_1): Add gdb_assert that THR is not
11129 NULL. Initialize tpprev to NULL instead of assigning it
11130 to NULL on the next statement.
11131 * windows-nat.c (windows_delete_thread): Remove check for
11132 main_thread_id before printing thread exit notifications.
11133 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
11134 Remove thread ID check against main_thread_id.
11135 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
11136 windows_delete_thread.
11137 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
11139 2019-01-04 Tom Tromey <tom@tromey.com>
11141 * compile/compile.c (_initialize_compile): Use upper case for
11142 metasyntactic variables.
11143 * symmisc.c (_initialize_symmisc): Use upper case for
11144 metasyntactic variables.
11145 * psymtab.c (_initialize_psymtab): Use upper case for
11146 metasyntactic variables.
11147 * demangle.c (demangle_command): Use upper case for metasyntactic
11149 (_initialize_demangler): Likewise.
11150 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
11153 2019-01-03 Tom Tromey <tom@tromey.com>
11155 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
11157 2019-01-03 Tom Tromey <tom@tromey.com>
11159 * python/py-symtab.c (salpy_str): Update.
11160 (struct salpy_sal_object) <symtab>: Now a PyObject.
11161 (salpy_dealloc): Update.
11162 (del_objfile_sal): Use gdbpy_ref.
11164 2019-01-03 Tom Tromey <tom@tromey.com>
11166 * python/py-type.c (convert_field): Use new_reference. Return
11168 (make_fielditem): Return gdbpy_ref.
11169 (typy_fields): Update.
11170 (typy_getitem): Update.
11171 (field_name): Return gdbpy_ref. Use new_reference.
11172 (typy_iterator_iternext): Update.
11174 2019-01-03 Tom Tromey <tom@tromey.com>
11176 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
11178 2019-01-03 Tom Tromey <tom@tromey.com>
11180 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
11181 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
11182 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
11183 (pspy_set_frame_filters, pspy_set_frame_unwinders)
11184 (pspy_set_type_printers): Likewise.
11185 * python/py-function.c (fnpy_init): Use gdbpy_ref.
11186 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
11187 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
11188 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
11189 (objfpy_set_type_printers): Likewise.
11191 2019-01-03 Tom Tromey <tom@tromey.com>
11193 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
11194 (gdbpy_print_stack): Use gdbpy_err_fetch.
11195 * python/python-internal.h (class gdbpy_err_fetch): New class.
11196 (class gdbpy_enter) <m_error_type, m_error_value,
11197 m_error_traceback>: Remove.
11198 <m_error>: New member.
11199 (gdbpy_exception_to_string): Don't declare.
11200 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
11201 * python/py-value.c (convert_value_from_python): Use
11203 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
11204 gdbpy_exception_to_string.
11205 (gdbpy_handle_exception): Use gdbpy_err_fetch.
11206 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
11209 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11211 * linux-nat.c (delete_lwp_cleanup): Delete.
11212 (struct lwp_deleter): New struct.
11213 (lwp_info_up): New typedef.
11214 (linux_nat_target::follow_fork): Delete cleanup, and make use of
11217 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11219 * linux-fork.c (class scoped_switch_fork_info): New class.
11220 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
11222 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11224 * valops.c (find_overload_match): Remove use of null_cleanup, and
11225 calls to do_cleanups.
11227 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11229 * compile/compile-cplus-types.c
11230 (compile_cplus_instance::decl_name): Handle changes to
11232 * cp-support.c (cp_func_name): Update header comment, update
11234 * cp-support.h (cp_func_name): Update return type in declaration.
11235 * valops.c (find_overload_match): Move temp_func local to top
11236 level of function and change its type. Use temp_func to hold and
11237 delete temporary string obtained from cp_func_name.
11239 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11241 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
11242 gdb::char_vector, remove cleanup, and update uses of `msg`.
11244 2019-01-03 Jim Wilson <jimw@sifive.com>
11246 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
11248 2019-01-02 Tom Tromey <tom@tromey.com>
11250 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
11251 (tdesc_parse_xml): Remove cleanups.
11252 * target-descriptions.h (make_cleanup_free_target_description):
11254 (target_desc_deleter): New struct.
11255 (target_desc_up): New typedef.
11256 * target-descriptions.c (target_desc_deleter::operator()): Rename
11257 from free_target_description.
11258 (make_cleanup_free_target_description): Remove.
11260 2019-01-02 Tom Tromey <tom@tromey.com>
11262 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
11263 constructor, destructor.
11264 (linespec_parser): Remove typedef.
11265 (~linespec_parser): Rename from linespec_parser_delete.
11266 (linespec_lex_to_end, linespec_complete_label)
11267 (linespec_complete): Update.
11268 (decode_line_full): Remove cleanups.
11269 (decode_line_1): Update.
11271 2019-01-02 Tom Tromey <tom@tromey.com>
11273 * python/python-internal.h (inferior_to_inferior_object): Change
11275 * python/py-exitedevent.c (create_exited_event_object): Update.
11276 * python/py-inferior.c (inferior_to_inferior_object): Return
11278 (python_new_inferior, python_inferior_deleted)
11279 (thread_to_thread_object, delete_thread_object)
11280 (build_inferior_list, gdbpy_selected_inferior): Update.
11281 * python/py-infthread.c (create_thread_object): Update. Also fail
11282 if inferior_to_inferior_object fails.
11284 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
11286 * inferior.h (class inferior) <displaced_step_state>: New field.
11287 * infrun.h (struct displaced_step_state): Move here from
11288 infrun.c. Initialize fields, add constructor.
11289 <inf>: Remove field.
11290 <reset>: New method.
11291 * infrun.c (struct displaced_step_inferior_state): Move to
11293 (displaced_step_inferior_states): Remove.
11294 (get_displaced_stepping_state): Adust.
11295 (displaced_step_in_progress_any_inferior): Adjust.
11296 (displaced_step_in_progress_thread): Adjust.
11297 (displaced_step_in_progress): Adjust.
11298 (add_displaced_stepping_state): Remove.
11299 (get_displaced_step_closure_by_addr): Adjust.
11300 (remove_displaced_stepping_state): Remove.
11301 (infrun_inferior_exit): Call displaced_step_state.reset.
11302 (use_displaced_stepping): Don't check for NULL.
11303 (displaced_step_prepare_throw): Call
11304 get_displaced_stepping_state.
11305 (displaced_step_fixup): Don't check for NULL.
11306 (prepare_for_detach): Don't check for NULL.
11308 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11310 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
11311 in case of call that did not complete.
11313 2019-01-02 Andrey Utkin <autkin@undo.io>
11315 * symfile.c (find_separate_debug_file): Fix search of debug files for
11318 2019-01-02 Tom Tromey <tom@tromey.com>
11320 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
11322 * python/py-frame.c (frapy_older): Remove cast.
11323 (frapy_newer): Likewise.
11324 * python/py-breakpoint.c (local_setattro): Remove cast.
11325 * python/py-arch.c (archpy_name): Remove local variable.
11326 * python/py-type.c (gdbpy_lookup_type): Remove cast.
11328 2019-01-02 Joel Brobecker <brobecker@adacore.com>
11330 * unittests/basic_string_view/element_access/char/empty.cc:
11331 Fix year range in copyright header.
11333 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
11335 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
11337 <operator==>: Update with for removed field.
11339 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
11340 <isa_features>: ...this.
11341 <abi_features>: New field.
11342 (riscv_isa_flen): Update comment.
11343 (riscv_abi_xlen): New declaration.
11344 (riscv_abi_flen): New declaration.
11345 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
11347 (riscv_abi_xlen): New function.
11348 (riscv_isa_flen): Update to get answer from isa_features.
11349 (riscv_abi_flen): New function.
11350 (riscv_has_fp_abi): Update to get answer from abi_features.
11351 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
11353 (riscv_call_info) <xlen, flen>: Update comment.
11354 (riscv_call_arg_struct): Remove invalid assertions
11355 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
11357 (riscv_gdbarch_init): Gather isa features and abi features
11358 separately, ensure both match on the gdbarch when reusing an old
11359 gdbarch. Relax an error check to allow 32-bit abi float to run on
11360 a target with 64-bit float hardware.
11362 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11364 * source.c (search_command_helper): Stop reverse search
11365 when line 1 has been searched.
11367 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11369 * record-full.c (record_full_base_target::close): Rewrite
11370 record_full_core_buf_list free logic.
11372 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11374 * break-catch-syscall.c (print_one_catch_syscall): xfree
11377 2019-01-01 Joel Brobecker <brobecker@adacore.com>
11379 * top.c (print_gdb_version): Update Copyright year in version
11382 2019-01-01 Joel Brobecker <brobecker@adacore.com>
11384 Update copyright year range in all GDB files.
11386 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
11388 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
11390 For older changes see ChangeLog-2018.
11396 version-control: never