1 2019-08-15 Tom Tromey <tom@tromey.com>
3 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
4 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
5 tui_clear_source_content.
6 (tui_clear_source_content): Remove.
7 (tui_source_window_base::do_erase_source_content): Hoist call to
9 * tui/tui-stack.c (tui_show_frame_info): Don't call
10 tui_clear_source_content.
12 2019-08-15 Tom Tromey <tom@tromey.com>
14 * tui/tui-winsource.h (struct tui_source_window_base)
15 <do_erase_source_content>: New method.
16 <erase_source_content>: New method.
17 (tui_erase_source_content): Don't declare.
18 * tui/tui-winsource.c (tui_clear_source_content): Update.
19 (tui_source_window_base::do_erase_source_content): Rename from
20 tui_erase_source_content.
21 (tui_source_window_base::show_source_content): Update.
22 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
23 * tui/tui-source.h (struct tui_source_window)
24 <erase_source_content>: New method.
25 * tui/tui-disasm.h (struct tui_disasm_window)
26 <erase_source_content>: New method.
28 2019-08-15 Tom Tromey <tom@tromey.com>
30 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
31 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
33 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
34 * tui/tui-source.c (tui_set_source_content): Update.
35 * tui/tui-disasm.c (tui_set_disassem_content): Update.
37 2019-08-15 Tom Tromey <tom@tromey.com>
39 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
40 * tui/tui-winsource.c (tui_line_is_displayed): Move to
42 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
44 * tui/tui-source.c (tui_source_window::line_is_displayed): New
46 (tui_source_window::maybe_update): Update.
48 2019-08-15 Tom Tromey <tom@tromey.com>
50 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
51 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
53 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
55 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
57 (tui_disasm_window::maybe_update): Update.
59 2019-08-15 Tom Tromey <tom@tromey.com>
61 * tui/tui-winsource.h (struct tui_source_window_base)
62 <maybe_update>: Declare.
63 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
65 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
67 * tui/tui-source.c (tui_source_window::maybe_update): New method.
68 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
70 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
72 2019-08-15 Tom Tromey <tom@tromey.com>
74 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
76 2019-08-15 Tom Tromey <tom@tromey.com>
78 * tui/tui-wingeneral.c: Include tui-stack.h.
79 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
80 (struct tui_locator_window): Move from tui-data.h.
81 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
82 (tui_initialize_static_data): Move from tui-data.c.
83 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
84 (struct tui_locator_window): Move to tui-stack.c.
85 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
86 (tui_initialize_static_data): Move to tui-stack.c.
88 2019-08-15 Tom Tromey <tom@tromey.com>
90 * tui/tui-layout.c (show_source_disasm_command)
91 (show_source_or_disasm_and_command): Use make_visible method, not
93 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
96 2019-08-15 Tom Tromey <tom@tromey.com>
98 * tui/tui-wingeneral.h (tui_make_window): Update.
99 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
101 (tui_gen_win_info::make_visible): Update.
102 * tui/tui-regs.c (tui_data_window::display_registers_from):
104 * tui/tui-layout.c (show_source_disasm_command)
105 (show_source_or_disasm_and_command): Update.
106 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
107 (enum tui_box): Remove.
108 (struct tui_win_info) <can_box>: New method.
109 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
112 2019-08-15 Tom de Vries <tdevries@suse.de>
114 * linux-nat-trad.c: Include gdbarch.h.
116 2019-08-14 Alan Hayward <alan.hayward@arm.com>
118 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
121 2019-08-14 Tom Tromey <tromey@adacore.com>
123 * darwin-nat.c: Include gdbarch.h.
124 * darwin-nat-info.c: Include gdbarch.h.
126 2019-08-13 Tom Tromey <tom@tromey.com>
128 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
130 * tui/tui-data.c (tui_initialize_static_data): Update.
132 2019-08-13 Tom Tromey <tom@tromey.com>
134 * tui/tui-winsource.h (struct tui_exec_info_window)
135 <~tui_exec_info_window, maybe_allocate_content, get_content,
137 (struct tui_source_window_base) <set_exec_info_content,
138 show_exec_info_content>: Don't declare.
139 * tui/tui-winsource.c
140 (tui_exec_info_window::maybe_allocate_content): Remove.
141 (tui_source_window_base::update_exec_info): Rename from
142 set_exec_info_content.
143 (tui_source_window_base::show_exec_info_content)
144 (tui_source_window_base::update_exec_info): Remove.
146 2019-08-13 Tom Tromey <tom@tromey.com>
148 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
150 * tui/tui-winsource.c (tui_update_source_window_as_is)
151 (tui_update_source_windows_with_addr, tui_erase_source_content):
153 (tui_clear_exec_info_content): Remove.
155 2019-08-13 Tom Tromey <tom@tromey.com>
157 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
159 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
160 call tui_erase_exec_info_content.
161 (tui_clear_exec_info_content): Rename from
162 tui_erase_exec_info_content.
163 (tui_clear_exec_info_content): Delete.
165 2019-08-13 Tom Tromey <tom@tromey.com>
167 * tui/tui-winsource.h (struct tui_source_window_base)
168 <show_exec_info_content>: Declare.
169 (tui_show_exec_info_content): Don't declare.
170 * tui/tui-winsource.c
171 (tui_source_window_base::show_exec_info_content): Rename from
172 tui_show_exec_info_content.
173 (tui_source_window_base::update_exec_info): Update.
175 2019-08-13 Tom Tromey <tom@tromey.com>
177 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
178 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
179 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
180 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
181 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
182 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
185 2019-08-13 Tom Tromey <tom@tromey.com>
187 * tui/tui-winsource.h (struct tui_source_window_base)
188 <update_exec_info>: Declare.
189 (tui_update_exec_info): Don't declare.
190 * tui/tui-winsource.c (tui_update_source_window_as_is)
191 (tui_source_window_base::refresh_all)
192 (tui_update_all_breakpoint_info): Update.
193 (tui_source_window_base::update_exec_info): Rename from
194 tui_update_exec_info.
195 * tui/tui-stack.c (tui_show_frame_info): Update.
197 2019-08-13 Tom Tromey <tom@tromey.com>
199 * tui/tui-winsource.h (struct tui_source_window_base)
200 <set_exec_info_content>: Declare.
201 (tui_set_exec_info_content): Don't declare.
202 * tui/tui-winsource.c
203 (tui_source_window_base::set_exec_info_content): Rename from
204 tui_set_exec_info_content.
205 (tui_update_exec_info): Update.
207 2019-08-13 Tom Tromey <tom@tromey.com>
209 * tui/tui-winsource.h (struct tui_source_window_base)
210 <show_source_content>: Declare.
211 (tui_show_source_content): Don't declare.
212 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
213 (tui_source_window_base::show_source_content): Rename from
214 tui_show_source_content.
215 (tui_source_window_base::refresh_all): Update.
216 * tui/tui-layout.c (show_source_disasm_command)
217 (show_source_or_disasm_and_command): Update.
219 2019-08-13 Tom Tromey <tom@tromey.com>
221 * tui/tui-winsource.c (tui_erase_source_content)
222 (tui_show_source_content, tui_source_window_base::refresh_all):
224 * tui/tui-wingeneral.h
225 (tui_check_and_display_highlight_if_needed): Don't declare.
226 * tui/tui-wingeneral.c
227 (tui_win_info::check_and_display_highlight_if_needed): Rename from
228 check_and_display_highlight_if_needed.
229 * tui/tui-win.c (tui_rehighlight_all)
230 (tui_win_info::make_visible_with_new_height): Update.
231 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
232 (tui_data_window::erase_data_content)
233 (tui_data_window::display_all_data): Update.
234 * tui/tui-data.h (struct tui_win_info)
235 <check_and_display_highlight_if_needed>: Declare.
237 2019-08-13 Tom Tromey <tom@tromey.com>
239 * tui/tui-win.c (tui_resize_all): Call
240 tui_delete_invisible_windows.
241 * tui/tui-layout.c (show_layout): Call
242 tui_delete_invisible_windows.
243 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
244 * tui/tui-data.c (tui_delete_invisible_windows): New function.
246 2019-08-13 Tom Tromey <tom@tromey.com>
248 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
249 tui_add_win_to_layout.
251 2019-08-13 Tom Tromey <tom@tromey.com>
253 * tui/tui-layout.h (tui_default_win_height): Don't declare.
254 * tui/tui-layout.c (tui_default_win_height): Now static.
256 2019-08-13 Tom Tromey <tom@tromey.com>
258 * tui/tui-layout.c (show_layout): Unify all layout cases into a
260 (show_source_disasm_command, show_source_or_disasm_and_command):
261 Don't check current layout.
263 2019-08-13 Tom Tromey <tom@tromey.com>
265 * tui/tui-wingeneral.c (make_all_visible): Remove.
266 (tui_make_all_invisible): Simplify.
267 * tui/tui-layout.c (tui_make_all_invisible): Move from
268 tui-wingeneral.c; simplify.
269 (show_layout): Hoist call to tui_make_all_invisible.
270 (show_data): Don't call tui_make_all_invisible.
272 2019-08-13 Tom Tromey <tom@tromey.com>
274 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
275 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
277 2019-08-13 Tom Tromey <tom@tromey.com>
279 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
281 (show_source_disasm_command, show_data)
282 (show_source_or_disasm_and_command): Don't use
283 tui_set_current_layout_to.
284 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
285 * tui/tui-data.c (current_layout, tui_current_layout): Move to
287 (tui_set_current_layout_to): Remove.
289 2019-08-13 Tom Tromey <tom@tromey.com>
291 * tui/tui-layout.c (tui_set_layout): Update.
292 * tui/tui-data.h (struct tui_layout_def): Remove.
293 (tui_layout_def): Don't declare.
294 * tui/tui-data.c (layout_def): Remove.
295 (tui_layout_def): Remove.
297 2019-08-13 Tom Tromey <tom@tromey.com>
299 * tui/tui-winsource.h (struct tui_source_window_base)
300 <clear_detail>: No longer "override".
301 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
302 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
303 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
304 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
306 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
308 2019-08-13 Tom Tromey <tromey@adacore.com>
310 * tracepoint.c: Don't include readline.h or history.h.
312 2019-08-12 Tom Tromey <tom@tromey.com>
314 * configure: Rebuild.
315 * configure.ac: Check for readline 7.
316 * NEWS: Mention readline 7 requirement.
319 2019-08-12 Tom Tromey <tom@tromey.com>
321 * mingw-hdep.c (gdb_select): Remove readline hack.
323 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
325 * blockframe.c (find_pc_partial_function): Set *block to nullptr
326 when the function fails.
328 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
330 * s390-tdep.c (s390_type_align): New function.
331 (s390_gdbarch_init): Set it as type_align gdbarch method.
333 2019-08-09 Tom de Vries <tdevries@suse.de>
336 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
337 pc_low with relocation offset.
339 2019-08-07 Tom Tromey <tromey@adacore.com>
341 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
342 (print_frame_args): Update.
343 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
345 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
346 * frame.h (struct frame_arg): Add initializers.
347 <error>: Now a unique_xmalloc_ptr.
349 2019-08-07 Alan Hayward <alan.hayward@arm.com>
351 * NEWS: Expand the Pointer Authentication entry.
352 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
353 (aarch64_frame_unmask_lr): ... to this.
354 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
355 Call aarch64_frame_unmask_lr.
356 * frame.c (struct frame_info): Add "masked" variable.
357 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
358 (fprint_frame): Check for masked pc.
359 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
361 * python/py-framefilter.c (py_print_frame): Check for masked pc.
362 * stack.c (print_frame): Check for masked pc.
364 2019-08-06 Tom Tromey <tom@tromey.com>
366 * stabsread.c (patch_block_stabs, read_one_struct_field)
367 (read_enum_type): Use obstack_strndup.
368 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
369 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
370 * dwarf2read.c (guess_full_die_structure_name)
371 (anonymous_struct_prefix): Use obstack_strndup.
372 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
373 * c-exp.y (yylex): Use obstack_strndup.
374 * ada-exp.y (write_object_renaming, write_ambiguous_var)
375 (write_var_or_type): Use obstack_strndup.
377 2019-08-06 Tom Tromey <tom@tromey.com>
379 * symfile.c (reread_symbols): Use obstack_strdup.
380 * stabsread.c (read_type): Use obstack_strdup.
381 * gdb_obstack.h (obstack_strdup): New overload.
382 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
383 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
384 (dwarf2_canonicalize_name): Use obstack_strdup.
385 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
386 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
389 2019-08-06 Tom Tromey <tom@tromey.com>
391 * gdb_obstack.h (obstack_strdup): Define.
392 * gdb_obstack.c (obstack_strdup): Don't define.
394 2019-08-06 Tom Tromey <tom@tromey.com>
396 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
398 * typeprint.c (typedef_hash_table::find_global_typedef): Use
400 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
401 * stabsread.c (common_block_start): Use obstack_strdup.
402 * objfiles.c (set_objfile_main_name, objfile): Use
404 * namespace.c (add_using_directive): Use obstack_strdup.
405 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
406 * jit.c (finalize_symtab): Use obstack_strdup.
407 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
408 (guess_partial_die_structure_name, partial_die_info::fixup)
409 (dwarf2_name): Use obstack_strdup.
410 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
412 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
413 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
415 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
417 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
419 * unittests/help-doc-selftests.c: New file.
420 * Makefile.in: Add the new file.
422 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
424 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
425 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
426 the full first line, except when FOR_VALUE_PREFIX. In this case,
427 the trailing '.' is not output, and the first character is uppercased.
428 (print_help_for_command): Update call to print_doc_line.
429 (print_doc_of_command): Likewise.
430 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
431 * cli/cli-option.c (append_indented_doc): Do not append newline.
432 (build_help_option): Append newline after first appended_indented_doc
433 only if a second call is done.
434 (build_help): Append 2 new lines before each option, except the first
436 * compile/compile.c (_initialize_compile): Add new lines after
437 %OPTIONS%, when not at the end of the help.
438 Change help doc or code
439 producing the help doc to respect the invariants.
440 * maint-test-options.c (_initialize_maint_test_options): Likewise.
441 Also removed the new line after 'Options:', as all other commands
442 do not put an empty line between 'Options:' and the first option.
443 * printcmd.c (_initialize_printcmd): Likewise.
444 * stack.c (_initialize_stack): Likewise.
445 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
446 incorrectly telling COMMAND is optional.
447 * ada-lang.c (_initialize_ada_language): Change help doc or code
448 producing the help doc to respect the invariants.
449 * ada-tasks.c (_initialize_ada_tasks): Likewise.
450 * breakpoint.c (_initialize_breakpoint): Likewise.
451 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
452 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
453 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
454 * cli/cli-style.c (cli_style_option::add_setshow_commands,
455 _initialize_cli_style): Likewise.
456 * corelow.c (core_target_info): Likewise.
457 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
458 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
459 * filesystem.c (_initialize_filesystem): Likewise.
460 * frame.c (_initialize_frame): Likewise.
461 * gnu-nat.c (add_task_commands): Likewise.
462 * infcall.c (_initialize_infcall): Likewise.
463 * infcmd.c (_initialize_infcmd): Likewise.
464 * interps.c (_initialize_interpreter): Likewise.
465 * language.c (_initialize_language): Likewise.
466 * linux-fork.c (_initialize_linux_fork): Likewise.
467 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
468 * maint.c (_initialize_maint_cmds): Likewise.
469 * memattr.c (_initialize_mem): Likewise.
470 * printcmd.c (_initialize_printcmd): Likewise.
471 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
473 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
474 * record-btrace.c (_initialize_record_btrace): Likewise.
475 * record-full.c (_initialize_record_full): Likewise.
476 * record.c (_initialize_record): Likewise.
477 * regcache-dump.c (_initialize_regcache_dump): Likewise.
478 * regcache.c (_initialize_regcache): Likewise.
479 * remote.c (add_packet_config_cmd, init_remote_threadtests,
480 _initialize_remote): Likewise.
481 * ser-tcp.c (_initialize_ser_tcp): Likewise.
482 * serial.c (_initialize_serial): Likewise.
483 * skip.c (_initialize_step_skip): Likewise.
484 * source.c (_initialize_source): Likewise.
485 * stack.c (_initialize_stack): Likewise.
486 * symfile.c (_initialize_symfile): Likewise.
487 * symtab.c (_initialize_symtab): Likewise.
488 * target-descriptions.c (_initialize_target_descriptions): Likewise.
489 * top.c (init_main): Likewise.
490 * tracefile-tfile.c (tfile_target_info): Likewise.
491 * tracepoint.c (_initialize_tracepoint): Likewise.
492 * tui/tui-win.c (_initialize_tui_win): Likewise.
493 * utils.c (add_internal_problem_command): Likewise.
494 * valprint.c (value_print_option_defs): Likewise.
496 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
499 * configure.ac: Drop enable-libmcheck support.
500 * configure, config.in: Rebuild.
501 * libmcheck.m4: Remove.
502 * acinclude.m4: Don't include it.
503 * Makefile.in: Don't distribute it.
504 * top.c (print_gdb_configuration): Don't mention it.
506 2019-08-06 Tom Tromey <tom@tromey.com>
508 * utils.c (set_output_style): Sometimes pass stream to
510 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
511 * record-btrace.c (btrace_insn_history): Update.
512 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
514 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
516 <m_uiout>: New field.
518 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
519 Remove "uiout" parameter.
520 (dump_insns): Update.
521 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
522 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
524 2019-08-06 Christian Biesinger <cbiesinger@google.com>
526 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
527 (error_in_psymtab_expansion): Likewise.
528 (lookup_symbol_via_quick_fns): Likewise.
529 (basic_lookup_transparent_type_quick): Likewise.
530 (basic_lookup_transparent_type_1): Likewise.
532 2019-08-06 Tom Tromey <tromey@adacore.com>
534 * source.c (last_source_error): Now bool.
535 (print_source_lines_base): Make "noprint" bool. Only open
536 source file when last_source_visited changes.
538 2019-08-06 Tom Tromey <tromey@adacore.com>
540 * annotate.c (annotate_source_line): Use g_source_cache.
541 * source-cache.c (source_cache::get_plain_source_lines): Change
542 parameters. Populate m_offset_cache.
543 (source_cache::ensure): New method.
544 (source_cache::get_line_charpos): New method.
545 (extract_lines): Move lower. Change parameters.
546 (source_cache::get_source_lines): Move lower.
547 * source-cache.h (class source_cache): Update comment.
548 <get_line_charpos>: New method.
549 <get_source_lines>: Update comment.
550 <clear>: Clear m_offset_cache.
551 <get_plain_source_lines>: Change parameters.
553 <m_offset_cache>: New member.
554 * source.c (forget_cached_source_info_for_objfile): Update.
555 (info_source_command): Use g_source_cache.
556 (find_source_lines, open_source_file_with_line_charpos): Remove.
557 (print_source_lines_base, search_command_helper): Use g_source_cache.
558 * source.h (open_source_file_with_line_charpos): Don't declare.
559 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
560 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
563 2019-08-06 Tom Tromey <tromey@adacore.com>
565 * source-cache.c (source_cache::get_plain_source_lines):
566 Remove "first_line" and "last_line" parameters.
567 (source_cache::get_source_lines): Cache plain text.
568 * source-cache.h (class source_cache)
569 <get_plain_source_lines>: Update.
571 2019-08-06 Tom Tromey <tromey@adacore.com>
573 * source-cache.c (extract_lines): No longer a method.
574 Changed type of parameter. Include final newline.
575 (selftests::extract_lines_test): New function.
576 (_initialize_source_cache): Likewise.
577 * source-cache.h (class source_cache)
578 <extract_lines>: Don't declare.
580 2019-08-06 Tom Tromey <tromey@adacore.com>
582 * breakpoint.c (init_breakpoint_sal): Update.
583 (breakpoint): Update.
584 * breakpoint.h (struct breakpoint) <filter>: Now a
587 2019-08-05 Christian Biesinger <cbiesinger@google.com>
589 * NEWS: Mention dictionary access on blocks.
590 * python/py-block.c (blpy_getitem): New function.
591 (block_object_as_mapping): New struct.
592 (block_object_type): Use new struct for tp_as_mapping field.
594 2019-08-05 Christian Biesinger <cbiesinger@google.com>
596 * objfiles.h (objfile): Add a comment describing partial symbols.
598 2019-08-05 Tom Tromey <tromey@adacore.com>
600 * compile/compile.c (_initialize_compile): Use _(), not N_().
601 * thread.c (_initialize_thread): Use _(), not N_().
602 * stack.c (_initialize_stack): Use _(), not N_().
603 * printcmd.c (_initialize_printcmd): Use _(), not N_().
605 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
607 * dwarf2read.c (struct dw2_symtab_iterator):
608 <want_specific_block>: Remove.
609 <block_index>: Change type to gdb::optional.
610 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
611 change type of BLOCK_INDEX parameter to gdb::optional.
612 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
613 (dw2_lookup_symbol): Don't pass argument for
615 (dw2_expand_symtabs_for_function): Don't pass argument for
616 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
617 (class dw2_debug_names_iterator)
618 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
619 parameter, change BLOCK_INDEX type to gdb::optional.
620 <m_want_specific_block>: Remove.
621 <m_block_index>: Change type to gdb::optional.
622 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
623 gdb::optional. Re-write in function of gdb::optional.
624 (dw2_debug_names_lookup_symbol): Don't pass argument for
626 (dw2_debug_names_expand_symtabs_for_function): Don't pass
627 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
630 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
632 * NEWS: Mention changes to "info sources" command.
634 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
636 * symtab.c (filename_partial_match_opts): New struct type.
637 (struct output_source_filename_data): New members
638 regexp, c_regexp, partial_match.
639 (output_source_filename): Use new members to decide to print file.
640 (info_sources_option_defs): New variable.
641 (make_info_sources_options_def_group, print_info_sources_header,
642 info_sources_command_completer):
644 (info_sources_command): Read new optional arguments.
645 (_initialize_symtab): Update info sources help.
647 2019-08-02 Alexandre Oliva <oliva@adacore.com>
649 * ada-lang.c (exception_support_info_v0): Renamed from...
650 (default_exception_support_info): ... this. Create new
652 (ada_has_this_exception_support): Look up catch_handlers_sym.
653 (ada_exception_support_info_sniffer): Try v0 after default.
655 2019-08-01 Tom Tromey <tromey@adacore.com>
657 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
660 2019-08-01 Christian Biesinger <cbiesinger@google.com>
662 * s12z-tdep.c: Fix include path for s12z-opc.h.
664 2019-08-01 Alan Hayward <alan.hayward@arm.com>
666 * NEWS: Require GNU make 3.82.
668 2019-07-16 Tom Tromey <tom@tromey.com>
670 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
673 2019-07-30 Tom Tromey <tromey@adacore.com>
675 * block.c (contained_in): Remove BLOCK_FUNCTION check.
677 2019-07-30 Kevin Buettner <kevinb@redhat.com>
679 * printcmd.c (print_address_symbolic): Print negative offsets.
680 (build_address_symbolic): Force signed arithmetic when computing
683 2019-07-30 Christian Biesinger <cbiesinger@google.com>
685 PR/24474: Add a function to lookup static variables.
686 * NEWS: Mention this new function.
687 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
688 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
689 * python/python.c (python_GdbMethods): Add new function.
691 2019-07-29 Christian Biesinger <cbiesinger@google.com>
693 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
694 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
695 (objfpy_lookup_static_symbol): New function.
696 (objfile_object_methods): Add new functions.
698 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
700 * NEWS: Mention 'set|show print frame-info'. Mention new
701 'presence' value for 'frame-arguments'. Mention new '-frame-info'
702 backtrace argument. Mention that python frame filtering code
703 is now consistent with what 'backtrace' command prints.
705 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
707 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
709 (print_frame_info_auto, print_frame_info_source_line,
710 print_frame_info_location, print_frame_info_source_and_location,
711 print_frame_info_location_and_address, print_frame_info_short_location):
713 (struct frame_print_options): New member print_frame_info.
714 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
715 * stack.h (get_user_print_what_frame_info): New declaration.
716 (frame_show_address): New declaration.
717 * stack.c (print_frame_arguments_choices): New value 'presence'.
718 (print_frame_info_auto, print_frame_info_source_line,
719 print_frame_info_location, print_frame_info_source_and_location,
720 print_frame_info_location_and_address, print_frame_info_short_location,
721 print_frame_info_choices, print_frame_info_print_what): New definitions.
722 (print_frame_args): Only print dots for args if print frame-arguments
724 (frame_print_option_defs): New element for "frame-info".
725 (get_user_print_what_frame_info): New function.
726 (frame_show_address): Make non static. Move comment to stack.h.
727 (print_frame_info_to_print_what): New function.
728 (print_frame_info): Update comment. Use fp_opts.print_frame_info
729 to decide what to print.
730 (backtrace_command_1): Handle the new print_frame_arguments_presence
732 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
733 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
734 (py_print_frame): In non-mi mode, use LOCATION as default for
735 print_what, similarly to frame information printed directly by
736 backtrace command. Handle frame-info user option in non MI mode.
738 2019-07-27 Kevin Buettner <kevinb@redhat.com>
740 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
741 Add case for debugging 32-bit target on 64-bit host. Revise
744 2019-07-27 Kevin Buettner <kevinb@redhat.com>
746 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
747 instead of find_function_entry_range_from_pc.
749 2019-07-27 Kevin Buettner <kevinb@redhat.com>
751 * stack.c (find_frame_funname): Remove code which preferred
752 minsym over symtab sym in "certain pathological cases".
754 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
755 parameter. Change type of "do_demangle" to bool.
756 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
757 Pass suitable "prefer_sym_over_minsym" flag to
758 build_address_symbolic(). Don't output "+" for negative offsets.
759 * printcmd.c (print_address_symbolic): Update invocation of
760 build_address_symbolic to include a "prefer_sym_over_minsym"
762 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
763 Restrict cases in which use of minimal symbol is preferred to that
764 of a found symbol. Update comments.
766 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
767 for entry pc when entry pc is out of range for that FDE.
769 2019-07-26 Brian Callahan <bcallah@openbsd.org>
772 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
775 2019-07-25 Christian Biesinger <cbiesinger@google.com>
777 * python/py-objfile.c (add_separate_debug_file): Fix comment about
778 this function's Python signature.
781 2019-07-24 Christian Biesinger <cbiesinger@google.com>
783 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
784 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
785 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
786 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
787 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
790 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
792 * h8300-tdep.c (h8300_register_name_common): New.
793 h8300_register_name): Use h8300_register_name_common.
794 (h8300s_register_name): Likewise.
795 (h8300sx_register_name): Likewise.
796 (h8300h_register_nam): New.
797 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
800 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
802 * arm-tdep.c (arm_skip_cmse_entry): New function.
803 (arm_is_sgstubs_section): New function.
804 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
806 2019-07-22 Tom Tromey <tom@tromey.com>
808 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
811 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
813 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
816 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
818 * symtab.c (search_symbols): Adjust msymbol matching type arrays
819 so that GDB doesn't match any msymbols when searching in the
821 (print_symbol_info): Print using typedef_print or type_print based
822 on the type of the symbol. Add updated FIXME comment moved from...
823 (_initialize_symtab): ... move and update FIXME comment to above.
825 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
827 * NEWS: Mention adding -q option to "info types".
828 * symtab.c (struct info_types_options): New struct.
829 (info_types_options_defs): New variable.
830 (make_info_types_options_def_group): New function.
831 (info_types_command): Use gdb::option framework to parse options.
832 (info_types_command_completer): New function.
833 (_initialize_symtab): Extend the help text on "info types" and
834 register command completer.
836 2019-07-21 Christian Biesinger <cbiesinger@google.com>
838 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
839 (lookup_symbol_in_objfile): Change int to block_enum and add a
840 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
842 2019-07-20 Christian Biesinger <cbiesinger@google.com>
844 * MAINTAINERS (Write After Approval): Add self.
846 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
848 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
849 instruction to the dummy code region.
851 2019-07-19 Tom Tromey <tromey@adacore.com>
853 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
854 (ARGSUSED, PARAMS, __func__): Remove rules.
856 2019-07-19 Alan Hayward <alan.hayward@arm.com>
858 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
859 * features/arm/arm-with-iwmmxt.c: Remove.
860 * features/arm/arm-with-iwmmxt.xml: Remove.
861 * features/arm/arm-with-m-fpa-layout.c: Remove.
862 * features/arm/arm-with-m-fpa-layout.xml: Remove.
863 * features/arm/arm-with-m-vfp-d16.c: Remove.
864 * features/arm/arm-with-m-vfp-d16.xml: Remove.
865 * features/arm/arm-with-m.c: Remove.
866 * features/arm/arm-with-m.xml: Remove.
867 * features/arm/arm-with-neon.c: Remove.
868 * features/arm/arm-with-neon.xml: Remove.
869 * features/arm/arm-with-vfpv2.c: Remove.
870 * features/arm/arm-with-vfpv2.xml: Remove.
871 * features/arm/arm-with-vfpv3.c: Remove.
872 * features/arm/arm-with-vfpv3.xml: Remove.
874 2019-07-19 Alan Hayward <alan.hayward@arm.com>
876 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
878 2019-07-19 Alan Hayward <alan.hayward@arm.com>
880 * arch/aarch32.c (aarch32_create_target_description): Create
881 target descriptions using features.
882 * arch/arm.c (arm_create_target_description)
883 (arm_create_mprofile_target_description): Likewise.
884 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
886 2019-07-19 Alan Hayward <alan.hayward@arm.com>
888 * Makefile.in: Add new files.
889 * aarch32-tdep.c: New file.
890 * aarch32-tdep.h: New file.
891 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
892 Call aarch32_read_description.
893 * arch/aarch32.c: New file.
894 * arch/aarch32.h: New file.
895 * arch/arm.c (arm_create_target_description)
896 (arm_create_mprofile_target_description): New function.
897 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
898 (arm_create_target_description)
899 (arm_create_mprofile_target_description): New declaration.
900 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
901 read_description functions.
902 * arm-linux-nat.c (arm_linux_nat_target::read_description):
904 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
905 * arm-tdep.c (tdesc_arm_list): New variable.
906 (arm_register_g_packet_guesses): Call create description functions.
907 (arm_read_description) (arm_read_mprofile_description): New
909 * arm-tdep.h (arm_read_description)
910 (arm_read_mprofile_description): Add declaration.
911 * configure.tgt: Add new files.
913 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
915 * top.c (new_ui_command): Open specified terminal just once.
917 2019-07-18 Tom Tromey <tromey@adacore.com>
919 * symtab.c (main_name): Constify return type.
920 * symfile.c (set_initial_language): Update.
921 * symtab.h (main_name): Constify return type.
923 2019-07-17 Tom Tromey <tom@tromey.com>
925 * tui/tui-winsource.c (tui_update_source_window)
926 (tui_update_source_window_as_is)
927 (tui_update_source_windows_with_line): Remove return.
928 * tui/tui-disasm.c (tui_show_disassem)
929 (tui_show_disassem_and_update_source): Remove return.
930 * tui/tui.c (tui_reset): Remove return.
931 * tui/tui-wingeneral.c
932 (tui_check_and_display_highlight_if_needed): Remove return.
934 2019-07-17 Tom Tromey <tom@tromey.com>
936 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
938 2019-07-17 Tom Tromey <tom@tromey.com>
940 * tui/tui-winsource.h (struct tui_exec_info_window)
941 (struct tui_source_window_base): Move from tui-data.h.
942 * tui/tui-winsource.c: Move many method definitions from
943 elsewhere. Remove "structuring" comments.
944 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
945 (tui_source_window_base::refresh_window): Move to
947 * tui/tui-win.c (tui_source_window_base::refresh_all)
948 (tui_source_window_base::update_tab_width)
949 (tui_source_window_base::set_new_height)
950 (tui_source_window_base::do_make_visible_with_new_height): Move to
952 * tui/tui-source.h: Update.
953 * tui/tui-source.c (tui_source_window_base::reset): Move to
955 * tui/tui-disasm.h: Update.
956 * tui/tui-data.h (struct tui_exec_info_window): Move to
958 (struct tui_source_window_base): Likewise.
959 * tui/tui-data.c (tui_source_window_base::clear_detail)
960 (tui_source_window_base, ~tui_source_window_base): Move to
963 2019-07-17 Tom Tromey <tom@tromey.com>
965 * tui/tui-win.c (tui_resize_all)
966 (tui_source_window_base::update_tab_width)
967 (tui_adjust_win_heights): Update.
968 (tui_win_info::make_invisible_and_set_new_height): Rename from
969 make_invisible_and_set_new_height.
970 * tui/tui-data.h (struct tui_win_info)
971 <make_invisible_and_set_new_height>: New method.
973 2019-07-17 Tom Tromey <tom@tromey.com>
976 * tui/tui-source.h (struct tui_source_window): Move from
978 * tui/tui-layout.c: Update.
979 * tui/tui-disasm.c: Update.
980 * tui/tui-data.h (struct tui_source_window): Move to
983 2019-07-17 Tom Tromey <tom@tromey.com>
985 * tui/tui-disasm.h (struct tui_disasm_window): Move from
987 * tui/tui-data.h (struct tui_disasm_window): Move to
990 2019-07-17 Tom Tromey <tom@tromey.com>
992 * tui/tui-regs.h (struct tui_data_item_window): Move from
994 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
995 * tui/tui-data.h (struct tui_data_item_window): Move to
997 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
999 2019-07-17 Tom Tromey <tom@tromey.com>
1001 * tui/tui.c: Update.
1002 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
1003 (tui_cmd_window::max_height): Move to tui-command.c.
1004 * tui/tui-layout.c: Update.
1005 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
1006 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
1008 * tui/tui-command.h (struct tui_cmd_window): Move from
1010 * tui/tui-command.c: Remove "structuring" comments.
1011 (tui_cmd_window::clear_detail)
1012 (tui_cmd_window::do_make_visible_with_new_height)
1013 (tui_cmd_window::max_height): Move from elsewhere.
1015 2019-07-17 Tom Tromey <tom@tromey.com>
1017 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
1019 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
1020 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
1022 2019-07-17 Tom Tromey <tom@tromey.com>
1024 * tui/tui.c: Update.
1025 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
1027 * tui/tui-windata.h: Remove file.
1028 * tui/tui-windata.c: Remove file.
1029 * tui/tui-win.c (tui_data_window::set_new_height)
1030 (tui_data_window::do_make_visible_with_new_height): Move to
1032 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
1033 * tui/tui-regs.c: Remove "structuring" comments.
1034 (tui_data_window::first_data_item_displayed)
1035 (tui_data_window::delete_data_content_windows)
1036 (tui_data_window::erase_data_content)
1037 (tui_data_window::display_all_data)
1038 (tui_data_window::refresh_all)
1039 (tui_data_window::do_scroll_vertical)
1040 (tui_data_window::clear_detail, tui_data_window::set_new_height)
1041 (tui_data_window::do_make_visible_with_new_height)
1042 (tui_data_window::refresh_window): Move from elsewhere.
1043 (_initialize_tui_regs): Move to end of file.
1044 * tui/tui-layout.c: Update.
1045 * tui/tui-hooks.c: Update.
1046 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
1047 * tui/tui-data.c (tui_data_window::clear_detail): Move to
1049 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
1051 2019-07-17 Tom Tromey <tom@tromey.com>
1053 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
1056 2019-07-17 Tom Tromey <tom@tromey.com>
1058 * tui/tui-win.c (tui_source_window_base::set_new_height)
1059 (tui_source_window_base::do_make_visible_with_new_height): Use
1060 m_has_locator field directly.
1061 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
1063 (struct tui_source_window_base) <has_locator>: Likewise.
1065 2019-07-17 Tom Tromey <tom@tromey.com>
1067 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
1069 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
1071 * tui/tui-win.c (tui_source_window_base::set_new_height)
1072 (tui_source_window_base::set_new_height)
1073 (make_invisible_and_set_new_height)
1074 (tui_source_window_base::do_make_visible_with_new_height)
1075 (tui_source_window_base::do_make_visible_with_new_height):
1077 * tui/tui-layout.c (show_source_disasm_command, show_data)
1078 (show_source_or_disasm_and_command): Update.
1079 * tui/tui-layout.c (show_layout): Update.
1081 2019-07-17 Tom Tromey <tom@tromey.com>
1083 * tui/tui-layout.c (make_data_window): Remove.
1084 (show_data): Unify creation and re-initialization cases.
1086 2019-07-17 Tom Tromey <tom@tromey.com>
1088 * tui/tui-layout.c (make_source_window, make_disasm_window):
1090 (show_data): Unify creation and re-initialization cases.
1092 2019-07-17 Tom Tromey <tom@tromey.com>
1094 * tui/tui-layout.c (make_command_window): Remove.
1095 (show_source_disasm_command, show_source_or_disasm_and_command):
1096 Unify creation and re-initialization cases.
1098 2019-07-17 Tom Tromey <tom@tromey.com>
1100 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
1101 creation and re-initialization cases.
1103 2019-07-17 Tom Tromey <tom@tromey.com>
1105 * tui/tui-regs.c (tui_get_register): Return void.
1107 2019-07-17 Tom Tromey <tom@tromey.com>
1109 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
1112 2019-07-17 Tom Tromey <tom@tromey.com>
1114 * tui/tui-layout.c (show_source_disasm_command): Simplify window
1117 2019-07-17 Tom Tromey <tom@tromey.com>
1119 * tui/tui.h (tui_set_layout_by_name): Don't declare.
1120 * tui/tui-regs.c (tui_reg_layout): New function.
1121 (tui_show_registers, tui_reg_command): Use it.
1122 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
1123 (tui_layout_command): Rename from tui_set_layout_by_name. Change
1125 (tui_layout_command): Remove.
1127 2019-07-17 Tom Tromey <tom@tromey.com>
1129 * tui/tui-layout.h (tui/tui-layout): Return void.
1130 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
1132 2019-07-17 Tom Tromey <tom@tromey.com>
1134 * tui/tui-layout.c (show_source_disasm_command, show_data):
1136 (reset_locator): Remove.
1137 (show_source_or_disasm_and_command): Update.
1139 2019-07-17 Tom Tromey <tom@tromey.com>
1141 * tui/tui-source.c (tui_source_window_base::reset): Remove
1143 * tui/tui-layout.c (make_command_window, make_source_window)
1144 (make_disasm_window, make_data_window)
1145 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
1146 (reset_locator, show_source_or_disasm_and_command): Update.
1147 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
1149 (struct tui_source_window_base) <reset>: Likewise.
1151 2019-07-17 Tom Tromey <tom@tromey.com>
1153 * tui/tui-layout.c (show_source_disasm_command): Use
1155 (reset_locator): New function.
1156 (init_and_make_win): Remove.
1157 (show_source_or_disasm_and_command): Use reset_locator.
1159 2019-07-17 Tom Tromey <tom@tromey.com>
1161 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
1163 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
1165 * tui/tui-source.c (tui_source_window_base::reset): New method.
1166 * tui/tui-layout.c (make_command_window): Don't call
1168 (make_source_window, make_disasm_window): Don't call
1169 make_source_or_disasm_window.
1170 (make_data_window): Don't call init_and_make_win. Change calling
1172 (show_source_disasm_command, show_data): Simplify.
1173 (make_source_or_disasm_window): Remove.
1174 (show_source_or_disasm_and_command): Simplify.
1175 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
1176 (struct tui_source_window_base) <reset>: Likewise.
1177 <execution_info>: Remove initializer.
1178 * tui/tui-data.c (tui_source_window_base): Initialize
1181 2019-07-17 Tom Tromey <tom@tromey.com>
1183 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
1186 2019-07-17 Tom Tromey <tom@tromey.com>
1188 * tui/tui.c (tui_rl_other_window): Update.
1189 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
1190 superclass method first. Always iterate over regs_content.
1191 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
1193 * tui/tui-win.c (tui_set_focus_command): Update.
1195 2019-07-17 Tom Tromey <tom@tromey.com>
1197 * tui/tui-win.c (tui_set_focus_command): Rename from
1198 tui_set_focus. Call tui_enable.
1199 (tui_set_focus_command): Remove.
1201 2019-07-17 Tom Tromey <tom@tromey.com>
1203 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
1205 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
1207 (tui_data_window::refresh_window): Call refresh_window on data
1208 items. Always call superclass refresh_window.
1209 (tui_win_info::refresh): Remove.
1210 (tui_source_window_base::refresh_window): Update.
1211 (tui_refresh_all): Update.
1212 * tui/tui-layout.c (show_source_disasm_command): Remove call to
1214 (show_source_or_disasm_and_command): Likewise.
1215 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
1216 (struct tui_source_window_base) <refresh>: Likewise.
1218 2019-07-17 Tom Tromey <tom@tromey.com>
1220 * tui/tui-winsource.c (tui_clear_source_content)
1221 (tui_show_source_content): Update.
1222 * tui/tui-source.c (tui_source_window::showing_source_p): Check
1223 whether content is empty.
1224 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
1227 2019-07-17 Tom Tromey <tom@tromey.com>
1229 * tui/tui-winsource.c (tui_erase_source_content): Clear the
1231 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
1232 * tui/tui-source.c (tui_set_source_content_nil): Remove.
1234 2019-07-17 Tom Tromey <tom@tromey.com>
1236 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
1237 (struct tui_data_item_window): Update.
1239 2019-07-17 Tom Tromey <tom@tromey.com>
1241 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
1242 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
1245 2019-07-17 Tom Tromey <tom@tromey.com>
1247 * tui/tui-winsource.h (tui_erase_source_content)
1248 (tui_clear_source_content): Remove "display_prompt" parameter.
1249 * tui/tui-winsource.c (tui_update_source_window_as_is)
1250 (tui_update_source_windows_with_addr): Update.
1251 (tui_clear_source_content): Remove "display_prompt" parameter.
1252 (tui_erase_source_content): Likewise. Simplify.
1253 (tui_show_source_content): Update.
1254 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
1255 * tui/tui-stack.c (tui_show_frame_info): Update.
1256 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
1259 2019-07-17 Tom Tromey <tom@tromey.com>
1261 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1262 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
1264 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
1267 2019-07-17 Tom Tromey <tom@tromey.com>
1269 * tui/tui-winsource.c (tui_clear_source_content)
1270 (tui_show_source_content, tui_show_exec_info_content)
1271 (tui_clear_exec_info_content): Update.
1272 * tui/tui-stack.c (tui_show_locator_content): Update.
1273 (tui_show_frame_info): Update.
1274 * tui/tui-source.h (tui_source_window): Don't declare.
1275 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
1276 from tui_source_is_displayed.
1277 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
1279 (struct tui_source_window_base) <content_in_use>: New field. Now
1281 (struct tui_source_window) <showing_source_p>: New method.
1282 (TUI_SRC_WIN): Change cast.
1283 * tui/tui-data.c (tui_initialize_static_data): Update.
1285 2019-07-17 Tom Tromey <tom@tromey.com>
1287 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
1289 * tui/tui-source.c (tui_source_window::location_matches_p): New
1291 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
1293 * tui/tui-data.h (struct tui_source_window_base)
1294 <location_matches_p>: New method.
1295 (struct tui_source_window, struct tui_disasm_window)
1296 <location_matches_p>: Likewise.
1298 2019-07-17 Tom Tromey <tom@tromey.com>
1300 * tui/tui-win.c (tui_set_win_height_command): Rename from
1302 (tui_set_win_height_command): Remove.
1304 2019-07-17 Tom Tromey <tom@tromey.com>
1306 * tui/tui-source.c (tui_source_window): New constructor. Add
1308 (~tui_source_window): New destructor.
1309 (tui_source_window::style_changed): New method.
1310 * tui/tui-hooks.c (tui_redisplay_source): Remove.
1311 (tui_attach_detach_observers): Update.
1312 * tui/tui-data.h (struct tui_source_window): Make constructor not
1313 inline. Add destructor.
1314 (struct tui_source_window) <style_changed>: New method.
1315 <m_observable>: New member.
1317 2019-07-17 Tom Tromey <tom@tromey.com>
1319 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
1320 * tui/tui-win.c (tui_resize_all): Fix typo.
1322 2019-07-17 Tom Tromey <tom@tromey.com>
1324 * tui/tui-wingeneral.h (tui_refresh_all): Update.
1325 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
1326 (tui_refresh_all): Remove "list" parameter. Use foreach.
1327 * tui/tui-win.c (window_name_completer): Use foreach.
1328 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
1329 (update_tab_width): Likewise.
1330 * tui/tui-layout.c (show_layout): Update.
1331 * tui/tui-data.h (class tui_window_iterator): New.
1332 (struct all_tui_windows): New.
1333 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
1335 2019-07-17 Tom Tromey <tom@tromey.com>
1337 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
1338 parameter. Don't reference globals.
1339 (tui_reg_command): Update.
1341 2019-07-17 Tom Tromey <tom@tromey.com>
1343 * tui/tui-regs.c (tui_show_registers): Simplify.
1345 2019-07-17 Tom Tromey <tom@tromey.com>
1347 * tui/tui-regs.c (tui_show_registers): Update.
1348 (tui_show_register_group): Add win_info parameter.
1350 2019-07-17 Tom Tromey <tom@tromey.com>
1352 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
1353 Rename from tui_display_reg_element_at_line.
1354 (tui_data_window::display_registers_from_line): Update.
1355 * tui/tui-data.h (struct tui_data_window)
1356 <display_reg_element_at_line>: New method.
1358 2019-07-17 Tom Tromey <tom@tromey.com>
1360 * tui/tui-regs.h (tui_display_registers_from)
1361 (tui_display_registers_from_line): Don't declare.
1362 * tui/tui-windata.c (tui_data_window::display_all_data)
1363 (tui_data_window::refresh_all)
1364 (tui_data_window::do_scroll_vertical): Update.
1365 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
1366 from tui_display_registers_from.
1367 (tui_display_reg_element_at_line): Update.
1368 (tui_data_window::display_registers_from_line): Rename from
1369 tui_display_registers_from_line.
1370 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
1371 display_registers_from_line>: New methods.
1373 2019-07-17 Tom Tromey <tom@tromey.com>
1375 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
1376 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
1377 from tui_erase_data_content.
1378 (tui_data_window::display_all_data)
1379 (tui_data_window::refresh_all)
1380 (tui_data_window::do_scroll_vertical): Update.
1381 * tui/tui-regs.c (tui_show_registers): Update.
1382 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
1385 2019-07-17 Tom Tromey <tom@tromey.com>
1387 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
1390 (tui_data_window::delete_data_content_windows): Rename from
1391 tui_delete_data_content_windows.
1392 (tui_data_window::display_all_data)
1393 (tui_data_window::do_scroll_vertical): Update.
1394 * tui/tui-data.h (struct tui_data_window)
1395 <delete_data_content_windows>: New method.
1397 2019-07-17 Tom Tromey <tom@tromey.com>
1399 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
1400 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
1402 2019-07-17 Tom Tromey <tom@tromey.com>
1404 * tui/tui-windata.h (tui_display_all_data): Don't declare.
1405 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
1406 from tui_display_all_data.
1408 (tui_data_window::do_make_visible_with_new_height): Update.
1409 * tui/tui-regs.c (tui_show_registers): Update.
1410 * tui/tui-layout.c (tui_set_layout): Update.
1411 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
1414 2019-07-17 Tom Tromey <tom@tromey.com>
1416 * tui/tui-windata.h (tui_display_data_from): Don't declare.
1417 * tui/tui-windata.c (tui_display_data_from): Remove.
1418 (tui_data_window::refresh_all): Update.
1420 2019-07-17 Tom Tromey <tom@tromey.com>
1422 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
1423 * tui/tui-windata.c (tui_display_data_from_line): Remove.
1424 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
1425 tui_display_registers_from_line.
1426 * tui/tui-regs.h (tui_display_registers_from_line): Update.
1427 * tui/tui-regs.c (tui_display_registers_from_line): Remove
1428 "force_display" parameter.
1430 2019-07-17 Tom Tromey <tom@tromey.com>
1432 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
1434 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
1435 Rename from tui_first_reg_element_no_inline.
1436 (tui_display_reg_element_at_line)
1437 (tui_display_registers_from_line): Update.
1438 * tui/tui-data.h (struct tui_data_window)
1439 <first_reg_element_no_inline>: New method.
1441 2019-07-17 Tom Tromey <tom@tromey.com>
1443 * tui/tui-windata.c (tui_display_data_from)
1444 (tui_data_window::do_scroll_vertical): Update.
1445 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
1446 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
1447 Rename from tui_line_from_reg_element_no.
1448 (tui_display_registers_from_line): Update.
1449 * tui/tui-data.h (struct tui_data_window)
1450 <line_from_reg_element_no>: New method.
1452 2019-07-17 Tom Tromey <tom@tromey.com>
1454 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
1455 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
1456 tui_last_regs_line_no.
1457 (tui_display_reg_element_at_line)
1458 (tui_display_registers_from_line): Update.
1459 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
1462 2019-07-17 Tom Tromey <tom@tromey.com>
1465 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
1466 (tui_update_breakpoint_info): Add "being_deleted" parameter.
1467 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1468 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
1469 (tui_update_breakpoint_info): Likewise.
1470 * tui/tui-hooks.c (tui_event_create_breakpoint)
1471 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
1474 2019-07-17 Tom Tromey <tom@tromey.com>
1476 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
1478 2019-07-17 Tom Tromey <tom@tromey.com>
1480 * tui/tui-winsource.c (tui_update_source_window_as_is)
1481 (tui_update_source_windows_with_addr): Update.
1482 * tui/tui-source.h (tui_set_source_content)
1483 (tui_show_symtab_source): Add "win_info" parameter.
1484 * tui/tui-source.c (tui_set_source_content): Add "win_info"
1486 (tui_show_symtab_source): Likewise.
1488 2019-07-17 Tom Tromey <tom@tromey.com>
1490 * tui/tui-wingeneral.c
1491 (tui_check_and_display_highlight_if_needed): Check can_highlight.
1493 2019-07-17 Tom Tromey <tom@tromey.com>
1495 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
1496 (struct tui_cmd_window) <can_scroll>: New method.
1497 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
1500 2019-07-17 Tom Tromey <tromey@adacore.com>
1502 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
1503 do_field_signed>: Rename. Change type of "value".
1504 * ui-out.c (ui_out::field_signed): Rename from field_int.
1505 Change type of "value".
1506 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
1508 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
1509 do_field_int. Change type of "value".
1510 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
1511 do_field_int. Change type of "value".
1512 * tracepoint.c (trace_status_mi, tfind_1)
1513 (print_one_static_tracepoint_marker): Update.
1514 * thread.c (print_thread_info_1, print_selected_thread_frame):
1516 * stack.c (print_frame, print_frame_info): Update.
1517 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
1519 * source.c (print_source_lines_base): Update.
1520 * skip.c (info_skip_command): Update.
1521 * record-btrace.c (btrace_ui_out_decode_error)
1522 (btrace_call_history_src_line): Update.
1523 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
1525 * progspace.c (print_program_space): Update.
1526 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
1527 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
1528 do_field_int. Change type of "value".
1529 * mi/mi-out.c (mi_ui_out::do_table_begin)
1530 (mi_ui_out::do_table_header): Update.
1531 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
1533 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
1534 (mi_cmd_data_list_changed_registers, output_register)
1535 (mi_cmd_data_read_memory, mi_load_progress)
1536 (mi_cmd_trace_frame_collected): Update.
1537 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
1539 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
1540 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
1541 (mi_cmd_var_list_children, varobj_update_one): Update.
1542 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
1543 (mi_cmd_stack_list_args, list_arg_or_local): Update.
1544 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
1545 * inferior.c (print_inferior): Update.
1546 * gdb_bfd.c (print_one_bfd): Update.
1547 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1549 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
1550 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
1551 do_field_int. Change type of "value".
1552 * cli-out.c (cli_ui_out::do_field_signed): Rename from
1553 do_field_int. Change type of "value".
1554 * breakpoint.c (watchpoint_check, print_breakpoint_location)
1555 (print_one_breakpoint_location, print_it_catch_fork)
1556 (print_one_catch_fork, print_it_catch_vfork)
1557 (print_one_catch_vfork, print_it_catch_solib)
1558 (print_it_catch_exec, print_it_ranged_breakpoint)
1559 (print_mention_watchpoint, print_mention_masked_watchpoint)
1560 (bkpt_print_it, update_static_tracepoint): Update.
1561 * break-catch-throw.c (print_it_exception_catchpoint): Update.
1562 * break-catch-syscall.c (print_it_catch_syscall): Update.
1563 * ada-tasks.c (print_ada_task_info): Update.
1564 * ada-lang.c (print_it_exception, print_mention_exception):
1567 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1569 PR breakpoints/24541
1570 * gdbarch.c: Regenerate.
1571 * gdbarch.h: Regenerate.
1572 * gdbarch.sh: Adjust return type and parameter types for
1573 'stap_adjust_register'.
1574 (i386_stap_adjust_register): Adjust signature and return new
1576 * stap-probe.c (stap_parse_register_operand): Adjust use of
1577 'gdbarch_stap_adjust_register'.
1579 2019-07-17 Tom Tromey <tromey@adacore.com>
1581 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
1583 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
1585 (struct s390_process_info): Add initializers.
1586 (s390_add_process): Use new.
1587 (s390_linux_nat_target::low_forget_process): Use delete.
1588 (s390_linux_nat_target::low_new_fork)
1589 (s390_linux_nat_target::stopped_by_watchpoint)
1590 (s390_linux_nat_target::low_prepare_to_resume)
1591 (s390_linux_nat_target::insert_watchpoint)
1592 (s390_linux_nat_target::insert_hw_breakpoint)
1593 (s390_linux_nat_target::remove_watchpoint)
1594 (s390_linux_nat_target::remove_hw_breakpoint): Update.
1596 2019-07-16 John Baldwin <jhb@FreeBSD.org>
1598 * aarch64-fbsd-nat.c: Include regcache.h.
1599 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
1601 (aarch64_fbsd_nat_target::fetch_registers)
1602 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
1604 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
1606 2019-07-16 John Baldwin <jhb@FreeBSD.org>
1608 * fbsd-nat.c: Include gdbarch.h.
1610 2019-07-15 Tom Tromey <tromey@adacore.com>
1612 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
1614 2019-07-15 Tom Tromey <tromey@adacore.com>
1616 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
1617 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
1618 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
1619 * cli-out.c (cli_ui_out::do_field_int): New method.
1620 * ui-out.c (ui_out::field_unsigned): New method.
1621 * symfile.c (generic_load): Use field_unsigned.
1622 (print_transfer_performance): Likewise.
1623 * record-btrace.c (ui_out_field_uint): Remove.
1624 (btrace_call_history_insn_range, btrace_call_history): Use
1626 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
1628 * ui-out.h (class ui_out) <field_unsigned>: New method.
1629 <do_field_unsigned>: Likewise.
1631 2019-07-15 Tom Tromey <tromey@adacore.com>
1633 * mi/mi-main.c (list_available_thread_groups): Use field_string.
1634 * mi/mi-interp.c (mi_memory_changed): Use field_string.
1635 * target.c (flash_erase_command): Use field_string.
1636 * infrun.c (print_signal_received_reason): Use field_string.
1637 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
1638 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
1640 * ada-tasks.c (print_ada_task_info): Use field_string.
1642 2019-07-15 Tom Tromey <tromey@adacore.com>
1644 * target.c (flash_erase_command): Use field_core_addr.
1645 * symfile.c (generic_load): Use field_core_addr.
1646 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1647 Use field_core_addr.
1648 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
1651 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1653 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
1654 value if its desired type is smaller than a CORE_ADDR and signed.
1656 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1658 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
1659 of changes to field names, and use new is_reference field to
1660 decide if a property is a reference or not.
1661 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
1663 (struct dwarf2_property_baton): Update header comment, rename
1664 'referenced_type' to 'property_type' and update comments.
1665 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
1666 default property type, store in property baton, update to take
1667 accound of renamed field.
1668 (read_func_scope): Update call to attr_to_dynamic_prop.
1669 (read_array_type): Likewise.
1670 (dwarf2_per_cu_addr_sized_int_type): New function.
1671 (read_subrange_index_type): Move type finding code to
1672 dwarf2_per_cu_addr_sized_int_type.
1673 (read_subrange_type): Update calls to attr_to_dynamic_prop.
1674 (dwarf2_per_cu_addr_type): New function.
1675 (set_die_type): Update calls to attr_to_dynamic_prop.
1677 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1679 * dwarf2read.c (read_subrange_index_type): New function.
1680 (read_subrange_type): Move code into new function and call it.
1681 * gdbtypes.c (create_range_type): Add some asserts.
1683 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1685 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
1686 update return statements.
1687 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
1688 declaration, and update comment to match.
1689 * gdbtypes.c (resolve_dynamic_array): Update call to
1690 dwarf2_evaluate_property to match new return type.
1692 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1694 * valarith.c (value_subscripted_rvalue): Change lowerbound
1695 parameter type from int to LONGEST.
1696 * value.h (value_subscripted_rvalue): Likewise in declaration.
1698 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
1700 * cli/cli-utils.c (info_print_command_completer): New function.
1701 * cli/cli-utils.h: Add 'completer.h' include, and forward
1702 declaration for 'struct cmd_list_element'.
1703 (info_print_command_completer): Declare.
1704 * stack.c (_initialize_stack): Add completer for 'info locals' and
1706 * symtab.c (_initialize_symtab): Add completer for 'info
1707 variables' and 'info functions'.
1708 * NEWS: Mention completion for additional info commands.
1710 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
1712 * cli/cli-utils.c (extract_info_print_args): Delete.
1713 (extract_arg_maybe_quoted): Delete.
1714 (info_print_options_defs): New variable.
1715 (make_info_print_options_def_group): New function.
1716 (extract_info_print_options): Define new function.
1717 * cli/cli-utils.h (extract_info_print_args): Delete.
1718 (struct info_print_options): New structure.
1719 (extract_info_print_options): Declare new function.
1720 * stack.c (info_locals_command): Update to use new
1721 extract_info_print_options, also add a header comment.
1722 (info_args_command): Likewise.
1723 * symtab.c (info_variables_command): Likewise.
1724 (info_functions_command): Likewise.
1726 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
1728 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
1729 to extract string arguments.
1730 * common/common-utils.c (extract_string_maybe_quoted): New function.
1731 * common/common-utils.h (extract_string_maybe_quoted): Declare.
1733 2019-07-11 Tom Tromey <tromey@adacore.com>
1735 * main.c (get_init_files): Use GDBINIT, not gdbinit.
1736 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
1737 * top.h (gdbinit): Don't declare.
1738 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
1740 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
1741 * top.c (gdb_init): Don't call init_cli_cmds.
1743 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
1745 2019-07-11 Tom Tromey <tromey@adacore.com>
1747 * python/py-inferior.c (add_thread_object): Don't use thread_obj
1748 after it has been moved.
1750 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1752 * valops.c (value_must_coerce_to_target): Change return type to
1754 * value.h (value_must_coerce_to_target): Likewise.
1756 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
1758 * breakpoint.c (is_hardware_watchpoint): Remove
1759 forward-declaration.
1760 (is_masked_watchpoint): Change return type to bool.
1761 (is_tracepoint): Likewise.
1762 (is_breakpoint): Likewise.
1763 (is_hardware_watchpoint): Likewise.
1764 (is_watchpoint): Likewise.
1765 (is_no_memory_software_watchpoint): Likewise.
1766 (is_catchpoint): Likewise.
1767 (breakpoint_1): Make FILTER parameter's return type bool.
1768 is_masked_watchpoint): Change return type to bool.
1769 (save_breakpoints): Make FILTER parameter's return type bool.
1770 * breakpoint.h (is_breakpoint): Change return type to bool.
1771 (is_watchpoint): Likewise.
1772 (is_catchpoint): Likewise.
1773 (is_tracepoint): Likewise.
1775 2019-07-10 Tom Tromey <tom@tromey.com>
1777 * defs.h: Don't include gdbarch.h.
1778 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
1779 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
1780 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
1781 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
1782 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
1783 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
1784 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
1785 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
1786 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
1787 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
1788 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
1789 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
1790 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
1791 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
1792 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
1793 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
1794 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
1795 record-btrace.c, record.h, regcache-dump.c, regcache.h,
1796 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
1797 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
1798 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
1799 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
1800 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
1801 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
1802 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
1803 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
1804 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
1806 2019-07-10 Tom Tromey <tromey@adacore.com>
1808 * ada-lang.h (is_ada_exception_catchpoint): Declare.
1809 * breakpoint.c (init_ada_exception_breakpoint): Register as
1811 (print_one_breakpoint_location, print_one_breakpoint): Use
1812 is_ada_exception_catchpoint.
1813 * ada-lang.c (class ada_catchpoint_location): Pass
1814 bp_loc_software_breakpoint to bp_location constructor.
1815 (is_ada_exception_catchpoint): New function.
1817 2019-07-10 Tom Tromey <tromey@adacore.com>
1819 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
1821 (struct arm_exidx_entry): New method operator<.
1822 (struct arm_exidx_data) <section_maps>: Change type.
1823 (arm_exidx_data_free): Remove.
1824 (arm_exidx_data_key): Change type. Move lower.
1825 (arm_exidx_new_objfile): Update.
1826 (arm_compare_exidx_entries): Remove.
1827 (arm_find_exidx_entry, _initialize_arm_tdep)
1829 2019-07-10 Tom Tromey <tromey@adacore.com>
1831 * solib-spu.c (ocl_program_data_key): Change type.
1832 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
1835 2019-07-10 Tom Tromey <tromey@adacore.com>
1837 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
1838 (struct solib_aix_inferior_data) <library_list>: Change type.
1839 (solib_aix_inferior_data_handle): Change type.
1840 (get_solib_aix_inferior_data): Update.
1841 (solib_aix_free_library_list): Remove.
1842 (library_list_start_library): Update.
1843 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
1845 (solib_aix_get_library_list)
1846 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
1847 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
1849 2019-07-10 Tom Tromey <tromey@adacore.com>
1851 * solib-dsbt.c (struct dsbt_info): Add initializers.
1852 (solib_dsbt_pspace_data): Change type.
1853 (dsbt_pspace_data_cleanup): Remove.
1854 (get_dsbt_info, _initialize_dsbt_solib): Update.
1856 2019-07-10 Tom Tromey <tromey@adacore.com>
1858 * spu-tdep.c (spu_overlay_data): Change type.
1859 (spu_get_overlay_table, spu_overlay_new_objfile)
1860 (_initialize_spu_tdep): Update.
1862 2019-07-10 Tom Tromey <tromey@adacore.com>
1864 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
1866 (dbx_objfile_data_key): Change type and declare later.
1867 (DBX_SYMFILE_INFO): Rewrite.
1868 * dbxread.c (dbx_objfile_data_key): Change type.
1869 (dbx_symfile_init): Update.
1870 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
1871 (coffstab_build_psymtabs, elfstab_build_psymtabs)
1872 (stabsect_build_psymtabs, _initialize_dbxread): Update.
1874 2019-07-10 Tom Tromey <tromey@adacore.com>
1876 * jit.c (jit_program_space_key): Change type. Move lower.
1877 (get_jit_program_space_data): Update.
1878 (jit_program_space_data_cleanup): Remove.
1879 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
1881 (struct jit_program_space_data): Add initializers.
1883 2019-07-10 Tom Tromey <tromey@adacore.com>
1885 * solib-darwin.c (struct darwin_info): Add initializers.
1886 (solib_darwin_pspace_data): Change type.
1887 (darwin_pspace_data_cleanup): Remove.
1888 (get_darwin_info, _initialize_darwin_solib): Update.
1890 2019-07-10 Tom Tromey <tromey@adacore.com>
1892 * remote-sim.c (struct sim_inferior_data): Add initializers,
1893 constructor, and destructor.
1894 (sim_inferior_data_key): Change type. Move lower.
1895 (check_for_duplicate_sim_descriptor): Update.
1896 (get_sim_inferior_data): Use new. Update.
1897 (~sim_inferior_data_cleanup): Rename from
1898 sim_inferior_data_cleanup. Simplify.
1899 (gdbsim_close_inferior, simulator_command)
1900 (sim_command_completer, _initialize_remote_sim): Update.
1901 (next_pid, INITIAL_PID): Move earlier.
1903 2019-07-10 Tom Tromey <tromey@adacore.com>
1905 * python/python-internal.h (create_thread_object): Return
1907 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
1908 * python/py-inferior.c (struct threadlist_entry): Add
1910 <thread_obj>: Now a gdbpy_ref.
1911 (thread_to_thread_object): Update.
1912 (add_thread_object): Use new.
1913 (delete_thread_object): Use delete.
1914 (infpy_threads): Update.
1915 (py_free_inferior): Update. Construct "inf_obj" after acquiring
1918 2019-07-10 Tom Tromey <tromey@adacore.com>
1920 * valops.c (value_cast): Specialize error message for Ada.
1922 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1924 * breakpoint.c (breakpoint_1): Update doc and parameter names.
1926 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1928 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
1929 bpstat_should_step): Return bool, adjust comments.
1930 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
1931 bpstat_should_step): Likewise.
1933 2019-07-10 Alan Hayward <alan.hayward@arm.com>
1935 * features/Makefile: Use feature target descriptions for Arm.
1936 * features/arm/arm-core.c: Generate new file.
1937 * features/arm/arm-fpa.c: Likewise.
1938 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
1939 * features/arm/arm-m-profile.c: Likewise.
1940 * features/arm/arm-vfpv2.c: Likewise.
1941 * features/arm/arm-vfpv3.c: Likewise.
1942 * features/arm/xscale-iwmmxt.c: Likewise.
1943 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
1945 2019-07-10 Alan Hayward <alan.hayward@arm.com>
1947 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
1950 2019-07-10 Alan Hayward <alan.hayward@arm.com>
1952 * features/aarch64-pauth.c: Regenerate.
1954 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
1956 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
1958 (bpstat_what): Use false instead of 0.
1960 2019-07-09 Pedro Alves <palves@redhat.com>
1962 * break-catch-throw.c (is_exception_catchpoint): New.
1963 * breakpoint.c (print_one_breakpoint_location): New parameter
1964 'raw_loc'. Handle it. Use
1965 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
1966 looking at the breakpoint's type.
1967 (print_one_breakpoint): If handling "maint info breakpoints", also
1968 print locations of exception catchpoints.
1969 * breakpoint.h (is_exception_catchpoint): Declare.
1971 2019-07-09 Pedro Alves <palves@redhat.com>
1973 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
1975 (allocate_location_exception_catchpoint): New.
1976 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
1977 (initialize_throw_catchpoint_ops): Install
1978 allocate_location_exception_catchpoint as allocate_location
1980 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
1981 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
1983 (breakpoint_address_is_meaningful): Delete.
1984 (bl_address_is_meaningful): New.
1985 (breakpoint_locations_match): Adjust comment.
1986 (bp_location_from_bp_type): New, factored out of...
1987 (bp_location::bp_location(breakpoint *)): ... this.
1988 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
1990 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
1991 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
1992 breakpoint_address_is_meaningful.
1993 (bp_locations_compare): Adjust comment.
1994 (update_global_location_list): Use bl_address_is_meaningful
1995 instead of breakpoint_address_is_meaningful.
1996 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
1998 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
1999 * python/py-breakpoint.c (bppy_get_location): No longer check
2000 whether location is null.
2002 2019-07-09 Pedro Alves <palves@redhat.com>
2005 * breakpoint.c (print_one_breakpoint_location): Remove
2006 single-location assert.
2008 2019-07-09 Tom Tromey <tom@tromey.com>
2010 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
2011 * configure: Rebuild.
2012 * configure.ac: Change common to gdbsupport.
2013 * gdbsupport: Rename from common.
2014 * acinclude.m4: Change common to gdbsupport.
2015 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
2016 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
2018 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
2019 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
2020 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
2021 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
2022 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
2023 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
2024 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
2025 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
2026 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
2027 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
2028 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
2029 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
2030 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
2031 coff-pe-read.c, command.h, compile/compile-c-support.c,
2032 compile/compile-c.h, compile/compile-cplus-symbols.c,
2033 compile/compile-cplus-types.c, compile/compile-cplus.h,
2034 compile/compile-loc2c.c, compile/compile.c, completer.c,
2035 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
2036 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
2037 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
2038 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
2039 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
2040 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
2041 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
2042 features/aarch64-core.c, features/aarch64-fpu.c,
2043 features/aarch64-pauth.c, features/aarch64-sve.c,
2044 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
2045 features/i386/32bit-core.c, features/i386/32bit-linux.c,
2046 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
2047 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
2048 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
2049 features/i386/64bit-core.c, features/i386/64bit-linux.c,
2050 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
2051 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
2052 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
2053 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
2054 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
2055 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
2056 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
2057 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
2058 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
2059 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
2060 go32-nat.c, guile/guile.c, guile/scm-ports.c,
2061 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
2062 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
2063 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
2064 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
2065 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
2066 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
2067 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
2068 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
2069 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
2070 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
2071 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
2072 minsyms.c, mips-linux-tdep.c, namespace.h,
2073 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
2074 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
2075 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
2076 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
2077 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
2078 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
2079 nat/linux-waitpid.c, nat/mips-linux-watch.c,
2080 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
2081 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
2082 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
2083 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
2084 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
2085 procfs.c, producer.c, progspace.h, psymtab.h,
2086 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
2087 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
2088 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
2089 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
2090 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
2091 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
2092 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
2093 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
2094 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
2095 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
2096 target-memory.c, target.c, target.h, target/waitstatus.c,
2097 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
2098 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
2099 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
2100 unittests/array-view-selftests.c,
2101 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
2102 unittests/common-utils-selftests.c,
2103 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
2104 unittests/format_pieces-selftests.c,
2105 unittests/function-view-selftests.c,
2106 unittests/lookup_name_info-selftests.c,
2107 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
2108 unittests/mkdir-recursive-selftests.c,
2109 unittests/observable-selftests.c,
2110 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
2111 unittests/parse-connection-spec-selftests.c,
2112 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
2113 unittests/scoped_fd-selftests.c,
2114 unittests/scoped_mmap-selftests.c,
2115 unittests/scoped_restore-selftests.c,
2116 unittests/string_view-selftests.c, unittests/style-selftests.c,
2117 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
2118 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
2119 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
2120 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
2121 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
2122 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
2124 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2126 * linespec.c (decode_digits_list_mode): Set explicit_line to a
2128 (decode_digits_ordinary): Set explicit_line field in sal.
2129 * symtab.c (skip_prologue_sal): Don't skip prologue for a
2130 symtab_and_line that was set on an explicit line number in
2131 assembler code. Do always update the recorded symtab and line if
2132 we do skip the prologue.
2134 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2136 * breakpoint.c (set_breakpoint_location_function): Remove
2137 explicit_loc parameter.
2138 (momentary_breakpoint_from_master): Update call to
2139 set_breakpoint_location_function.
2140 (add_location_to_breakpoint): Likewise.
2142 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2144 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
2145 required features based on default bfd type when no specific bfd
2148 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2150 * NEWS: Mention that GDB printf and eval commands can now print
2151 C-style and Ada-style convenience var strings without
2152 calling the inferior.
2153 * printcmd.c (printf_c_string): Locally print GDB internal var
2154 instead of transiting via the inferior.
2155 (printf_wide_c_string): Likewise.
2157 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2159 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
2161 2019-07-04 Tom Tromey <tom@tromey.com>
2164 * tui/tui-winsource.c (tui_clear_source_content): Update.
2165 (tui_source_window_base::set_is_exec_point_at): Fix comment.
2166 (tui_update_breakpoint_info): Update.
2167 (tui_set_exec_info_content): Update.
2168 * tui/tui-source.c (tui_set_source_content_nil): Update.
2169 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
2171 * tui/tui-data.h (enum tui_bp_flag): New.
2172 (tui_bp_flags): New enum flags type.
2173 (struct tui_source_element) <break_mode>: Change type. Rename
2175 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
2176 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
2178 * tui/tui-winsource.h: Fix comment.
2180 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2182 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
2183 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
2184 (store_fpregs_to_thread)
2185 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
2186 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
2187 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
2188 (IWMMXT_REGS_SIZE): Add define.
2189 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
2190 (fetch_vfp_regs, store_vfp_regs)
2191 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
2192 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
2194 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2196 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
2198 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
2199 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
2200 (ARM_INT_REGISTER_SIZE): ...to this.
2201 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
2202 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
2203 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
2204 (arm_linux_collect_gregset, supply_nwfpe_register)
2205 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
2207 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
2208 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
2209 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
2210 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
2211 (arm_return_in_memory, arm_store_return_value)
2212 (arm_get_longjmp_target, arm_register_g_packet_guesses)
2213 (arm_record_ld_st_multiple): Likewise.
2214 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
2215 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
2217 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2219 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
2220 AARCH64_DISPLACED_MODIFIED_INSNS.
2221 * aarch64-tdep.c (struct aarch64_displaced_step_data)
2222 (aarch64_displaced_step_copy_insn): Likewise.
2223 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
2224 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
2225 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
2226 ARM_DISPLACED_MODIFIED_INSNS.
2227 * arm-tdep.c (arm_gdbarch_init): Likewise.
2228 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
2229 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
2230 (struct arm_displaced_step_closure): Use
2231 ARM_DISPLACED_MODIFIED_INSNS.
2233 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2235 * features/Makefile: Remove unused xml files.
2236 * features/aarch64.xml: Remove.
2237 * features/i386/amd64-avx-avx512-linux.xml: Remove.
2238 * features/i386/amd64-avx-avx512.xml: Remove.
2239 * features/i386/amd64-avx-linux.xml: Remove.
2240 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
2241 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
2242 * features/i386/amd64-avx-mpx-linux.xml: Remove.
2243 * features/i386/amd64-avx-mpx.xml: Remove.
2244 * features/i386/amd64-avx.xml: Remove.
2245 * features/i386/amd64-linux.xml: Remove.
2246 * features/i386/amd64-mpx-linux.xml: Remove.
2247 * features/i386/amd64-mpx.xml: Remove.
2248 * features/i386/amd64.xml: Remove.
2249 * features/i386/i386-avx-avx512-linux.xml: Remove.
2250 * features/i386/i386-avx-avx512.xml: Remove.
2251 * features/i386/i386-avx-linux.xml: Remove.
2252 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
2253 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
2254 * features/i386/i386-avx-mpx-linux.xml: Remove.
2255 * features/i386/i386-avx-mpx.xml: Remove.
2256 * features/i386/i386-avx.xml: Remove.
2257 * features/i386/i386-linux.xml: Remove.
2258 * features/i386/i386-mmx-linux.xml: Remove.
2259 * features/i386/i386-mmx.xml: Remove.
2260 * features/i386/i386-mpx-linux.xml: Remove.
2261 * features/i386/i386-mpx.xml: Remove.
2262 * features/i386/i386.xml: Remove.
2263 * features/i386/x32-avx-avx512-linux.xml: Remove.
2264 * features/i386/x32-avx-linux.xml: Remove.
2265 * features/i386/x32-linux.xml: Remove.
2267 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2269 * regformats/aarch64.dat: Remove.
2270 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
2271 * regformats/i386/amd64-avx-linux.dat: Remove.
2272 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
2273 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
2274 * regformats/i386/amd64-linux.dat: Remove.
2275 * regformats/i386/amd64-mpx-linux.dat: Remove.
2276 * regformats/i386/amd64.dat: Remove.
2277 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
2278 * regformats/i386/i386-avx-linux.dat: Remove.
2279 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
2280 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
2281 * regformats/i386/i386-linux.dat: Remove.
2282 * regformats/i386/i386-mmx-linux.dat: Remove.
2283 * regformats/i386/i386-mpx-linux.dat: Remove.
2284 * regformats/i386/i386.dat: Remove.
2285 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
2286 * regformats/i386/x32-avx-linux.dat: Remove.
2287 * regformats/i386/x32-linux.dat: Remove.
2289 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2291 * aarch64-tdep.c: Remove xml self tests.
2292 * amd64-linux-tdep.c: Likewise.
2293 * amd64-tdep.c: Likewise.
2294 * i386-linux-tdep.c: Likewise.
2295 * i386-tdep.c: Likewise.
2297 2019-07-03 Pedro Alves <palves@redhat.com>
2300 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
2301 (pipe_cmd_option_defs): New.
2302 (make_pipe_cmd_options_def_group): New.
2303 (pipe_command): Use gdb::option::process_options.
2304 (pipe_command_completer): New function.
2305 (_initialize_cli_cmds): Install completer for "pipe" command.
2307 2019-07-03 Pedro Alves <palves@redhat.com>
2309 * cli/cli-option.c (union option_value) <string>: New field.
2310 (struct option_def_and_value): Add ctor, move ctor, dtor and
2311 use DISABLE_COPY_AND_ASSIGN.
2312 (option_def_and_value::clear_value): New.
2313 (parse_option, save_option_value_in_ctx, get_val_type_str)
2314 (add_setshow_cmds_for_options): Handle var_string.
2315 * cli-option.h (union option_def::var_address) <string>: New
2317 (struct string_option_def): New.
2318 * maint-test-options.c (struct test_options_opts): Add default
2319 ctor and use DISABLE_COPY_AND_ASSIGN.
2320 <string_opt>: New field.
2321 (test_options_opts::~test_options_opts): New.
2322 (test_options_opts::dump): Also dump "-string".
2323 (test_options_option_defs): Install "string.
2325 2019-07-03 Pedro Alves <palves@redhat.com>
2327 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
2328 option_value with a null enumeration.
2329 (complete_options): Save the option values in the context.
2330 (save_option_value_in_ctx): New, factored out from ...
2331 (process_options): ... here.
2332 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
2334 * maint-test-options.c (test_options_opts::dump): New, factored
2336 (maintenance_test_options_command_mode): ... here.
2337 (maintenance_test_options_command_completion_result): Delete.
2338 (maintenance_test_options_command_completion_text): Update
2340 (maintenance_show_test_options_completion_result): Change
2341 prototype. Just print
2342 maintenance_test_options_command_completion_text.
2343 (save_completion_result): New.
2344 (maintenance_test_options_completer_mode): Pass options context to
2345 complete_options, and then save a dump.
2346 (_initialize_maint_test_options): Use add_cmd to install "maint
2347 show test-options-completion-result".
2349 2019-07-03 Pedro Alves <palves@redhat.com>
2351 * NEWS (New commands): Mention "with" and "maint with".
2352 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
2353 (with_command, with_command_completer): New.
2354 (pipe_command): Adjust to new repeat_previous
2356 (_initialize_cli_cmds): Install the "with" command and its "w"
2358 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
2360 * cli/cli-setshow.c (parse_cli_var_uinteger)
2361 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
2362 argument strings for all var_types.
2363 (get_setshow_command_value_string): New, factored out from ...
2364 (do_show_command): ... this.
2365 * cli/cli-setshow.h: Include <string>.
2366 (get_setshow_command_value_string): Declare.
2367 * command.h (repeat_previous): Now returns const char *. Adjust
2369 * maint.c: Include "cli/cli-cmds.h".
2370 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
2371 (_initialize_maint_cmds): Register the "maintenance with" command.
2372 * top.c (repeat_previous): Move bits from pipe_command here:
2373 Return the saved command line, if any; error out if there's no
2374 command to relaunch.
2376 2019-07-03 Pedro Alves <palves@redhat.com>
2378 * NEWS (New commands): Mention "maint set/show test-settings"
2379 instead of "maint test-settings".
2380 * maint-test-settings.c (maintenance_test_settings_list): Delete.
2381 (maintenance_test_settings_set_list): Rename to ...
2382 (maintenance_set_test_settings_list): ... this.
2383 (maintenance_test_settings_show_list): Rename to ...
2384 (maintenance_show_test_settings_list): ... this.
2385 (maintenance_test_settings_cmd): Delete.
2386 (maintenance_test_settings_set_cmd): ...
2387 (maintenance_set_test_settings_cmd): ... this.
2388 (maintenance_test_settings_show_cmd): ...
2389 (maintenance_show_test_settings_cmd): ... this.
2390 (maintenance_test_settings_show_value_cmd):
2391 (maintenance_show_test_settings_value_cmd): ... this.
2392 (_initialize_maint_test_settings): No longer install the "maint
2393 test-settings" prefix command. Rename "maint test-settings set"
2394 to "maint set test-settings", and "maint test-settings show" to
2395 "maint show test-settings". Adjust all subcommands.
2397 2019-07-03 Pedro Alves <palves@redhat.com>
2399 * maint-test-settings.c: Fix file's intro comment. Replace all
2400 references to "test-options" with references to "test-settings",
2403 2019-07-03 Pedro Alves <palves@redhat.com>
2405 * maint-test-settings.c (maintenance_test_settings_xxx)
2406 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
2408 (maintenance_test_settings_enums): Use them.
2409 (maintenance_test_settings_enum): Default to
2410 maintenance_test_settings_xxx.
2411 (_initialize_maint_test_settings): Initialize
2412 MAINTENANCE_TEST_SETTINGS_FILENAME.
2414 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2416 * breakpoint.h (remove_breakpoints_inf): Change return type to
2417 void, move function documentation here.
2418 * breakpoint.c (remove_breakpoints_inf): Change return type to
2419 void, move function documentation to header.
2421 2019-07-02 Pedro Alves <palves@redhat.com>
2423 * NEWS (Completion improvements): Mention "info threads".
2424 * thread.c (struct info_threads_opts, info_threads_option_defs)
2425 (make_info_threads_options_def_group): New.
2426 (info_threads_command): Use gdb::option::process_options.
2427 (info_threads_command_completer): New.
2428 (_initialize_thread): Use gdb::option::build_help to build the
2429 help text for "info threads".
2431 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2433 * defs.h (generic_load): Move from here...
2434 * symfile.h (generic_load): ... to here. Rename name parameter
2436 * symfile.c (generic_load): Add comment.
2438 2019-07-01 Tom Tromey <tromey@adacore.com>
2441 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
2442 declaration of without_params. Fix formatting.
2444 2019-07-01 Tom Tromey <tromey@adacore.com>
2446 * ada-exp.y (find_primitive_type): Update.
2447 * ada-lang.h (ada_lookup_symbol): Update.
2448 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
2450 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
2452 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
2454 PR breakpoints/24541
2455 * gdbarch.c: Regenerate.
2456 * gdbarch.h: Regenerate.
2457 * gdbarch.sh: Add 'stap_adjust_register'.
2458 * i386-tdep.c: Include '<unordered_set>'.
2459 (i386_stap_adjust_register): New function.
2460 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
2461 * stap-probe.c (stap_parse_register_operand): Call
2462 'gdbarch_stap_adjust_register'.
2464 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
2467 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
2468 * python/python.c (do_start_initialization): Use 'xmalloc'
2469 instead of 'PyMem_Malloc'.
2471 2019-06-28 Tom Tromey <tromey@adacore.com>
2473 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
2476 2019-06-27 Tom Tromey <tromey@adacore.com>
2478 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
2480 (arm_find_mapping_symbol, arm_record_special_symbol)
2481 (_initialize_arm_tdep): Update.
2482 (arm_objfile_data_free): Remove.
2484 2019-06-27 Tom Tromey <tromey@adacore.com>
2486 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
2487 to cp_print_static_field.
2489 2019-06-26 Tom Tromey <tromey@adacore.com>
2491 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
2492 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
2495 2019-06-26 Alan Hayward <alan.hayward@arm.com>
2497 * features/aarch64-core.c (create_feature_aarch64_core):
2499 * features/aarch64-core.xml: Add cpsr flags.
2501 2019-06-26 Alan Hayward <alan.hayward@arm.com>
2503 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
2504 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
2506 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
2508 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
2510 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
2512 (arm_record_special_symbol): Don't insert new symbol in sorted
2513 position, push it at the end.
2515 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
2517 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
2518 (arm_mapping_symbol_s): Remove.
2519 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
2520 (arm_mapping_symbol_vec): New typedef.
2521 (struct arm_per_objfile): Add constructor.
2522 <section_maps>: Change type to
2523 std::unique_ptr<arm_mapping_symbol_vec[]>.
2524 (arm_compare_mapping_symbols): Remove.
2525 (arm_find_mapping_symbol): Adjust to section_maps type change.
2526 (arm_objfile_data_free): Call delete on arm_per_objfile.
2527 (arm_record_special_symbol): Adjust to section_maps type change.
2528 Allocate arm_per_objfile with new.
2530 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2532 * cli/cli-cmds.c (alias_command): Compare the alias prefix
2533 with the command prefix.
2535 2019-06-25 Tom Tromey <tom@tromey.com>
2537 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
2538 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
2540 2019-06-25 Tom Tromey <tom@tromey.com>
2542 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
2544 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
2547 2019-06-25 Tom Tromey <tom@tromey.com>
2549 * tui/tui-winsource.c
2550 (tui_source_window_base::set_is_exec_point_at): Add check against
2553 2019-06-25 Tom Tromey <tom@tromey.com>
2555 * tui/tui-source.c (tui_set_source_content): Don't check before
2557 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
2559 2019-06-25 Tom Tromey <tom@tromey.com>
2561 * tui/tui-winsource.h (tui_update_source_window_as_is)
2562 (tui_alloc_source_buffer, tui_line_is_displayed)
2563 (tui_addr_is_displayed): Change type of win_info.
2564 * tui/tui-winsource.c (tui_update_source_window_as_is)
2565 (tui_clear_source_content, tui_show_source_line)
2566 (tui_show_source_content, tui_source_window_base::refill)
2567 (tui_source_window_base::set_is_exec_point_at)
2568 (tui_source_window_base::set_is_exec_point_at)
2569 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
2570 (tui_alloc_source_buffer, tui_line_is_displayed)
2571 (tui_addr_is_displayed): Change type of win_info. Update.
2572 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2573 (tui_source_window_base::do_make_visible_with_new_height):
2575 * tui/tui-source.c (tui_set_source_content)
2576 (tui_set_source_content_nil)
2577 (tui_source_window::do_scroll_vertical): Update.
2578 * tui/tui-layout.c (show_layout): Update.
2579 * tui/tui-disasm.c (tui_set_disassem_content)
2580 (tui_disasm_window::do_scroll_vertical): Update.
2581 * tui/tui-data.h (tui_win_content): Remove.
2582 (struct tui_gen_win_info) <content, content_size>: Remove.
2583 (struct tui_source_element): Add initializers and destructor.
2584 (union tui_which_element, struct tui_win_element): Remove.
2585 (struct tui_source_window_base) <content>: New field.
2586 (struct tui_data_window): Remove destructor.
2587 (tui_alloc_content, tui_free_win_content)
2588 (tui_free_all_source_wins_content): Don't declare.
2589 * tui/tui-data.c (tui_initialize_static_data): Update.
2590 (init_content_element, tui_alloc_content): Remove.
2591 (~tui_gen_win_info): Update.
2592 (~tui_data_window, tui_free_all_source_wins_content)
2593 (tui_free_win_content, free_content, free_content_elements):
2596 2019-06-25 Tom Tromey <tom@tromey.com>
2598 * tui/tui-winsource.h (tui_clear_source_content)
2599 (tui_erase_source_content, tui_show_source_content): Change type
2601 * tui/tui-winsource.c (tui_clear_source_content)
2602 (tui_erase_source_content, tui_show_source_content): Change type
2604 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2605 * tui/tui-source.h (tui_set_source_content_nil): Change type of
2607 * tui/tui-source.c (tui_set_source_content_nil): Change type of
2609 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
2611 2019-06-25 Tom Tromey <tom@tromey.com>
2613 * tui/tui-winsource.c (tui_clear_source_content)
2614 (tui_source_window_base::set_is_exec_point_at): Update.
2615 * tui/tui-source.c (tui_set_source_content_nil): Update.
2616 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
2618 * tui/tui-data.c (init_content_element): Update.
2620 2019-06-25 Tom Tromey <tom@tromey.com>
2622 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
2623 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
2624 * tui/tui-layout.c (init_and_make_win): Update.
2625 * tui/tui.h (enum tui_win_type): Update.
2626 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
2627 tui_win_is_auxillary.
2628 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
2629 tui_win_is_auxillary.
2631 2019-06-25 Tom Tromey <tom@tromey.com>
2633 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
2634 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
2635 (tui_delete_data_content_windows, tui_display_all_data)
2636 (tui_data_window::do_scroll_vertical, tui_display_data_from):
2638 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
2639 * tui/tui-regs.c (tui_last_regs_line_no)
2640 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
2641 (tui_show_registers): Update.
2642 (tui_show_register_group): Return void. Update.
2643 (tui_display_registers_from, tui_display_reg_element_at_line)
2644 (tui_display_registers_from_line, tui_check_register_values):
2646 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
2648 (struct tui_data_window) <regs_content>: Now a std::vector.
2649 <regs_content_count>: Remove.
2650 (tui_add_content_elements, tui_free_data_content): Don't declare.
2651 * tui/tui-data.c (tui_data_window::clear_detail): Update.
2652 (init_content_element): Remove DATA_WIN case. Add assert.
2653 (tui_add_content_elements): Remove.
2654 (tui_data_window): Update.
2655 (tui_free_data_content): Remove.
2656 (free_content_elements): Remove DATA_WIN case.
2658 2019-06-25 Tom Tromey <tom@tromey.com>
2660 * tui/tui-data.c (tui_data_item_window): Update.
2661 * tui/tui-windata.h (tui_check_data_values): Don't declare.
2662 * tui/tui-windata.c (tui_display_all_data)
2663 (tui_display_data_from_line): Update.
2664 (tui_check_data_values): Remove.
2665 * tui/tui-regs.c (tui_show_register_group)
2666 (tui_display_reg_element_at_line): Update.
2667 * tui/tui-hooks.c (tui_register_changed)
2668 (tui_refresh_frame_and_register_information): Call
2669 tui_check_register_values.
2670 * tui/tui-data.h (struct tui_data_window) <data_content,
2671 data_content_count, data_type>: Remove.
2672 (enum tui_data_type): Remove.
2674 * tui/tui-data.c (tui_data_window::clear_detail)
2675 (~tui_data_window): Update.
2677 2019-06-25 Tom Tromey <tom@tromey.com>
2679 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
2681 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
2682 Rename from tui_first_data_item_displayed. Update.
2683 (tui_data_window::refresh_all)
2684 (tui_data_window::do_scroll_vertical): Update.
2685 * tui/tui-data.h (struct tui_data_window)
2686 <first_data_item_displayed>: Declare new method.
2688 2019-06-25 Tom Tromey <tom@tromey.com>
2690 * tui/tui-data.h (tui_init_generic_part): Don't declare.
2691 * tui/tui-data.c (tui_init_generic_part): Remove, moving
2693 (tui_initialize_static_data): ...here.
2695 2019-06-25 Tom Tromey <tom@tromey.com>
2697 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
2698 (tui_display_registers_from, tui_check_register_values): Update.
2699 (tui_display_register): Remove win_info parameter; update.
2700 (tui_get_register): Change type of parameters.
2701 * tui/tui-data.h (struct tui_data_element): Remove.
2702 (union tui_which_element) <data>: Remove.
2703 <data_window>: Change type.
2704 (struct tui_data_item_window): New.
2705 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
2707 (~tui_data_item_window): New destructor.
2708 (free_content_elements): Remove DATA_ITEM_WIN case.
2710 2019-06-25 Tom Tromey <tom@tromey.com>
2712 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
2715 2019-06-25 Tom Tromey <tom@tromey.com>
2717 * tui/tui-data.h (struct tui_command_element): Remove.
2718 (union tui_which_element) <command>: Remove.
2719 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
2721 (free_content_elements): Remove CMD_WIN case.
2723 2019-06-25 Tom Tromey <tom@tromey.com>
2725 * tui/tui-layout.c (tui_set_layout): Update.
2726 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
2727 * tui/tui-data.c (layout_def): Update.
2729 2019-06-25 Tom Tromey <tom@tromey.com>
2731 * tui/tui-wingeneral.c (tui_refresh_all): Update.
2732 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2733 (tui_source_window_base::set_new_height): Update.
2734 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
2736 (tui_set_locator_fullname, tui_set_locator_info)
2737 (tui_show_frame_info): Update.
2738 * tui/tui-source.c (tui_set_source_content)
2739 (tui_source_is_displayed): Update.
2740 * tui/tui-layout.c (show_source_disasm_command, show_data)
2741 (show_source_or_disasm_and_command): Update.
2742 * tui/tui-disasm.c (tui_set_disassem_content)
2743 (tui_get_begin_asm_address): Update.
2744 * tui/tui-data.h (struct tui_locator_element): Remove.
2745 (union tui_which_element) <locator>: Remove.
2746 (struct tui_locator_window): New.
2747 (tui_locator_win_info_ptr): Change return type.
2748 * tui/tui-data.c (_locator): Change type.
2749 (tui_locator_win_info_ptr): Change return type.
2750 (init_content_element): Remove LOCATOR_WIN case. Add assert.
2751 (tui_alloc_content): Add assert.
2753 2019-06-25 Tom Tromey <tom@tromey.com>
2755 * tui/tui-winsource.c
2756 (tui_exec_info_window::maybe_allocate_content): New method.
2757 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
2758 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
2759 (make_source_or_disasm_window): Add cast.
2760 * tui/tui-data.h (union tui_which_element) <simple_string>:
2762 (struct tui_source_info): New.
2763 (struct tui_source_window_base) <execution_info>: Change type.
2764 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
2765 case, and add assert.
2766 (tui_alloc_content): Add assert.
2768 2019-06-25 Tom Tromey <tom@tromey.com>
2770 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
2771 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
2772 * tui/tui-data.c (tui_alloc_win_info): Remove.
2774 2019-06-25 Tom Tromey <tom@tromey.com>
2776 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
2777 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
2780 2019-06-25 Tom Tromey <tom@tromey.com>
2782 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
2783 make_visible_with_new_height method.
2784 (tui_win_info::make_visible_with_new_height): New method.
2785 (tui_source_window_base::do_make_visible_with_new_height)
2786 (tui_data_window::do_make_visible_with_new_height)
2787 (tui_cmd_window::do_make_visible_with_new_height): New methods.
2788 (make_visible_with_new_height): Remove.
2789 (tui_resize_all, tui_adjust_win_heights): Use
2790 make_visible_with_new_height method.
2791 * tui/tui-data.h (struct tui_win_info)
2792 <do_make_visible_with_new_height, make_visible_with_new_height>:
2794 (struct tui_source_window_base, struct tui_data_window)
2795 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
2798 2019-06-25 Tom Tromey <tom@tromey.com>
2800 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
2802 (update_tab_width): Call update_tab_width method.
2803 * tui/tui-data.h (struct tui_win_info)
2804 (struct tui_source_window_base) <update_tab_width>: New methods.
2806 2019-06-25 Tom Tromey <tom@tromey.com>
2808 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
2810 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
2812 (tui_gen_win_info::make_visible): Update.
2813 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
2815 * tui/tui-data.h (enum tui_box): New enum.
2816 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
2818 2019-06-25 Tom Tromey <tom@tromey.com>
2820 * tui/tui-layout.c (make_source_or_disasm_window): Always use
2821 init_and_make_win for EXEC_INFO_WIN.
2822 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
2824 (struct tui_win_info) <~tui_win_info>: Inline.
2825 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
2827 * tui/tui-data.c (source_win, disasm_win): Remove globals.
2828 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
2830 (tui_initialize_static_data): Update.
2831 (~tui_gen_win_info): Handle more cleanup here.
2832 (~tui_source_window_base): Delete "execution_info".
2833 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
2835 2019-06-25 Tom Tromey <tom@tromey.com>
2837 * tui/tui-layout.c (make_command_window): Don't set
2839 (show_source_disasm_command): Call the reset method.
2840 (show_data): Don't set can_highlight. Call the reset method.
2841 (tui_gen_win_info::reset): Rename from init_gen_win_info
2842 (init_and_make_win): Simplify. Return tui_gen_win_info.
2843 (show_source_or_disasm_and_command): Call the reset method.
2844 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
2845 (struct tui_cmd_window): Set can_highlight.
2847 2019-06-25 Tom Tromey <tom@tromey.com>
2849 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
2851 (tui_make_visible, tui_make_invisible): Rewrite.
2852 (tui_win_info::make_visible): Remove.
2853 (tui_source_window_base::make_visible): Update.
2854 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
2855 method. Moved from...
2856 (struct tui_win_info) <make_visible>: ...here.
2858 2019-06-25 Tom Tromey <tom@tromey.com>
2860 * tui/tui-winsource.c
2861 (tui_source_window_base::do_scroll_horizontal): Remove direction
2863 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
2864 direction parameter.
2865 * tui/tui-win.c (tui_win_info::forward_scroll)
2866 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
2867 (tui_win_info::right_scroll): Update.
2868 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
2869 direction parameter.
2870 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
2871 direction parameter.
2872 * tui/tui-data.h (enum tui_scroll_direction): Remove.
2873 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
2874 Remove direction parameter.
2875 (struct tui_source_window_base, struct tui_source_window)
2876 (struct tui_disasm_window, struct tui_data_window)
2877 (struct tui_cmd_window): Update.
2879 2019-06-25 Tom Tromey <tom@tromey.com>
2881 * tui/tui-winsource.h (tui_set_exec_info_content)
2882 (tui_show_exec_info_content, tui_erase_exec_info_content)
2883 (tui_clear_exec_info_content, tui_update_exec_info): Change
2884 argument to tui_source_window_base.
2885 * tui/tui-winsource.c (tui_set_exec_info_content)
2886 (tui_show_exec_info_content, tui_erase_exec_info_content)
2887 (tui_clear_exec_info_content, tui_update_exec_info): Change
2888 argument to tui_source_window_base.
2890 2019-06-25 Tom Tromey <tom@tromey.com>
2892 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
2893 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
2895 2019-06-25 Tom Tromey <tom@tromey.com>
2897 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
2900 2019-06-25 Tom Tromey <tom@tromey.com>
2902 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
2904 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
2906 * tui/tui-source.c (tui_set_source_content): Update.
2907 * tui/tui-disasm.c (tui_set_disassem_content): Update.
2909 2019-06-25 Tom Tromey <tom@tromey.com>
2911 * tui/tui-win.c (window_name_completer, tui_set_focus)
2912 (tui_all_windows_info): Use name method.
2913 * tui/tui-data.h (struct tui_gen_win_info)
2914 (struct tui_source_window, struct tui_disasm_window)
2915 (struct tui_data_window, struct tui_cmd_window) <name>: New
2917 (tui_win_name): Don't declare.
2918 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
2919 (tui_win_name): Remove.
2921 2019-06-25 Tom Tromey <tom@tromey.com>
2923 * tui/tui-winsource.h (tui_update_source_window)
2924 (tui_update_source_window_as_is): Change parameter type.
2925 * tui/tui-winsource.c (tui_update_source_window): Change win_info
2926 to be a tui_source_window_base.
2927 (tui_update_source_window_as_is): Likewise.
2928 * tui/tui-win.c (make_visible_with_new_height): Update.
2930 2019-06-25 Tom Tromey <tom@tromey.com>
2932 * tui/tui-winsource.c (tui_erase_source_content)
2933 (tui_show_source_content, tui_show_exec_info_content)
2934 (tui_erase_exec_info_content): Use refresh_window method.
2935 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
2936 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
2937 from tui_refresh_win.
2938 (tui_data_window::refresh_window): New method.
2939 (tui_win_info::refresh, tui_source_window_base::refresh)
2940 (tui_refresh_all): Use refresh_window method.
2941 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
2943 * tui/tui-regs.c (tui_display_register): Call refresh_window
2945 * tui/tui-layout.c (show_source_disasm_command)
2946 (show_source_or_disasm_and_command): Call refresh_window method.
2947 * tui/tui-data.h (struct tui_gen_win_info)
2948 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
2951 2019-06-25 Tom Tromey <tom@tromey.com>
2953 * tui/tui.c (tui_rl_other_window, tui_enable)
2954 (tui_is_window_visible, tui_get_command_dimension): Update.
2955 * tui/tui-winsource.c (tui_update_source_window_as_is)
2956 (tui_clear_source_content, tui_erase_source_content)
2957 (tui_show_source_line, tui_source_window_base::refill)
2958 (tui_source_window_base::do_scroll_horizontal)
2959 (tui_source_window_base::set_is_exec_point_at)
2960 (tui_update_breakpoint_info, tui_set_exec_info_content)
2961 (tui_alloc_source_buffer, tui_line_is_displayed)
2962 (tui_addr_is_displayed): Update.
2963 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
2964 (tui_check_and_display_highlight_if_needed)
2965 (tui_win_info::make_visible, tui_win_info::refresh)
2966 (tui_refresh_all): Update.
2967 * tui/tui-windata.c (tui_first_data_item_displayed)
2968 (tui_delete_data_content_windows, tui_erase_data_content)
2969 (tui_display_all_data, tui_data_window::refresh_all)
2970 (tui_check_data_values): Update.
2971 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
2972 (tui_set_win_focus_to, tui_win_info::forward_scroll)
2973 (tui_win_info::backward_scroll, tui_refresh_all_win)
2974 (tui_resize_all, tui_set_focus, tui_all_windows_info)
2975 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
2976 (tui_source_window_base::set_new_height)
2977 (tui_data_window::set_new_height)
2978 (make_invisible_and_set_new_height)
2979 (make_visible_with_new_height, new_height_ok)
2980 (parse_scrolling_args): Update.
2981 * tui/tui-stack.c (tui_show_frame_info): Update.
2982 * tui/tui-source.c (tui_set_source_content)
2983 (tui_set_source_content_nil, tui_source_is_displayed)
2984 (tui_source_window::do_scroll_vertical): Update.
2985 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
2986 (tui_display_registers_from, tui_display_reg_element_at_line)
2987 (tui_check_register_values, tui_reg_command): Update.
2988 * tui/tui-layout.c (tui_default_win_height)
2989 (show_source_disasm_command, show_data, init_and_make_win)
2990 (show_source_or_disasm_and_command): Update.
2991 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2992 (tui_redisplay_readline, tui_mld_flush)
2993 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
2995 * tui/tui-disasm.c (tui_set_disassem_content)
2996 (tui_disasm_window::do_scroll_vertical): Update.
2997 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
2999 (struct tui_win_info): Derive from tui_gen_win_info.
3000 <~tui_win_info>: Mark as override.
3001 <generic>: Remove member.
3002 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
3003 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
3004 (~tui_data_window, ~tui_win_info)
3005 (tui_free_all_source_wins_content): Update.
3006 * tui/tui-command.c (tui_refresh_cmd_win): Update.
3008 2019-06-25 Tom Tromey <tom@tromey.com>
3010 * tui/tui-layout.c (init_and_make_win): Use new.
3011 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
3012 destructor, initializers.
3013 (tui_alloc_generic_win_info): Don't declare.
3014 * tui/tui-data.c (_locator): Add argument to constructor.
3015 (source_win, disasm_win): New globals.
3016 (exec_info): Remove.
3017 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
3019 (tui_alloc_generic_win_info): Remove.
3020 (init_content_element): Use new.
3021 (tui_win_info::tui_win_info): Update.
3022 (free_content_elements) <case DATA_WIN>: Use delete.
3024 2019-06-25 Tom Tromey <tom@tromey.com>
3026 * tui/tui-wingeneral.c (tui_refresh_win): Update.
3027 * tui/tui-windata.c (tui_first_data_item_displayed)
3028 (tui_delete_data_content_windows): Update.
3029 * tui/tui-win.c (tui_data_window::set_new_height): Update.
3030 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
3031 (tui_display_registers_from, tui_check_register_values): Update.
3032 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
3034 * tui/tui-data.c (init_content_element): Update. Allocate the new
3036 (tui_free_data_content): Update.
3037 (free_content_elements) <case DATA_WIN>: Free the window.
3039 2019-06-25 Tom Tromey <tom@tromey.com>
3041 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
3043 * tui/tui-layout.c (make_command_window)
3044 (show_source_disasm_command, show_data, init_and_make_win)
3045 (show_source_or_disasm_and_command): Update.
3046 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
3048 <can_highight, is_highlighted>: Now bool.
3049 (tui_set_win_highlight): Don't declare.
3050 * tui/tui-data.c (tui_set_win_highlight): Remove.
3052 2019-06-25 Tom Tromey <tom@tromey.com>
3054 * tui/tui-wingeneral.c (make_visible): Remove check of window
3057 2019-06-25 Tom Tromey <tom@tromey.com>
3059 * tui/tui-win.c (tui_win_info::max_height)
3060 (tui_cmd_window::max_height): New methods.
3061 (new_height_ok): Call max_height.
3062 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
3063 <max_height>: New method.
3065 2019-06-25 Tom Tromey <tom@tromey.com>
3067 * tui/tui-win.c (tui_source_window_base::set_new_height)
3068 (tui_data_window::set_new_height): New methods.
3069 (make_invisible_and_set_new_height): Call set_new_height method.
3070 * tui/tui-data.h (struct tui_win_info)
3071 (struct tui_source_window_base, struct tui_data_window)
3072 <set_new_height>: New method.
3074 2019-06-25 Tom Tromey <tom@tromey.com>
3076 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
3077 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
3078 tui_refresh_data_win.
3079 * tui/tui-win.c (tui_source_window_base::refresh_all): New
3081 (tui_refresh_all_win): Call the refresh_all method.
3082 (tui_set_focus): Likewise.
3083 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
3084 (struct tui_source_window_base, struct tui_data_window) <refresh>:
3087 2019-06-25 Tom Tromey <tom@tromey.com>
3089 * tui/tui-winsource.h (tui_refill_source_window)
3090 (tui_set_is_exec_point_at): Don't declare.
3091 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
3092 (tui_source_window_base::refill): Rename from
3093 tui_refill_source_window.
3094 (tui_source_window_base::do_scroll_horizontal): Update.
3095 (tui_source_window_base::set_is_exec_point_at): Rename from
3096 tui_set_is_exec_point_at.
3097 (tui_update_all_breakpoint_info): Update.
3098 * tui/tui-stack.c (tui_show_frame_info): Update.
3099 * tui/tui-layout.c (show_data): Add cast.
3100 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
3101 * tui/tui-data.h (struct tui_source_window_base) <refill,
3102 set_is_exec_point_at>: New methods.
3103 (tui_source_windows, tui_add_to_source_windows): Update types.
3104 (tui_add_to_source_windows): Remove redundant declaration.
3105 * tui/tui-data.c (source_windows): Store tui_source_window_base.
3106 (tui_source_windows): Change return type.
3107 (tui_clear_source_windows_detail): Update.
3108 (tui_add_to_source_windows): Change type of parameter.
3109 (tui_free_all_source_wins_content): Update.
3111 2019-06-25 Tom Tromey <tom@tromey.com>
3113 * tui/tui-wingeneral.c (tui_win_info::refresh)
3114 (tui_source_window_base::refresh): New methods.
3115 (tui_refresh_all): Call the refresh method.
3116 * tui/tui-data.h (struct tui_win_info)
3117 (struct tui_source_window_base) <refresh>: New method.
3119 2019-06-25 Tom Tromey <tom@tromey.com>
3121 * tui/tui.h (tui_is_window_visible): Return bool.
3122 * tui/tui.c (tui_is_window_visible): Return bool.
3123 * tui/tui-wingeneral.c (tui_make_window, make_visible)
3124 (tui_make_visible, tui_make_invisible)
3125 (tui_win_info::make_visible)
3126 (tui_source_window_base::make_visible, make_all_visible)
3127 (tui_make_all_visible, tui_make_all_invisible): Update.
3128 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
3129 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
3131 (struct tui_win_info, struct tui_source_window_base)
3132 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
3133 * tui/tui-data.c (tui_init_generic_part): Update.
3135 2019-06-25 Tom Tromey <tom@tromey.com>
3137 * tui/tui-wingeneral.c (tui_win_info::make_visible)
3138 (tui_source_window_base::make_visible): New methods.
3139 (make_all_visible): Make method call.
3140 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
3141 (struct tui_source_window_base, struct tui_cmd_window): Override
3143 (tui_win_is_source_type): Don't declare.
3144 * tui/tui-data.c (tui_win_is_source_type): Remove.
3146 2019-06-25 Tom Tromey <tom@tromey.com>
3148 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
3151 2019-06-25 Tom Tromey <tom@tromey.com>
3153 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
3154 Inline constructor. Add initializers for members.
3155 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
3156 constructors; now inline in class.
3158 2019-06-25 Tom Tromey <tom@tromey.com>
3160 * tui/tui-regs.c (tui_show_registers): Update.
3161 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
3163 * tui/tui-data.c (tui_data_window::clear_detail)
3164 (tui_data_window): Update.
3166 2019-06-25 Tom Tromey <tom@tromey.com>
3168 * tui/tui-windata.c (tui_display_all_data)
3169 (tui_display_data_from_line, tui_display_data_from)
3170 (tui_check_data_values, tui_data_window::do_scroll_vertical):
3172 * tui/tui-regs.c (tui_last_regs_line_no)
3173 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
3174 (tui_show_registers, tui_show_register_group)
3175 (tui_display_registers_from, tui_display_reg_element_at_line)
3176 (tui_display_registers_from_line, tui_check_register_values)
3177 (tui_reg_next, tui_reg_prev): Update.
3178 * tui/tui-layout.c (tui_set_layout, show_data): Update.
3179 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
3181 (struct tui_win_info) <detail>: Remove. Add new fields from
3183 (TUI_DATA_WIN): Add cast.
3184 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
3185 (~tui_data_window): Simplify.
3187 2019-06-25 Tom Tromey <tom@tromey.com>
3189 * tui/tui-layout.c (show_source_disasm_command)
3190 (show_source_or_disasm_and_command): Update.
3191 * tui/tui-io.c (update_cmdwin_start_line)
3192 (tui_redisplay_readline): Update.
3193 * tui/tui-data.h (struct tui_command_info): Remove.
3194 (struct tui_win_info) <detail>: Remove command_info member.
3195 (struct tui_data_window) <start_line>: New member, from
3197 (TUI_CMD_WIN): Add casts.
3199 2019-06-25 Tom Tromey <tom@tromey.com>
3201 * tui/tui-winsource.c (tui_update_source_window)
3202 (tui_refill_source_window)
3203 (tui_source_window_base::do_scroll_horizontal)
3204 (tui_update_breakpoint_info, tui_set_exec_info_content)
3205 (tui_show_exec_info_content, tui_erase_exec_info_content)
3206 (tui_clear_exec_info_content): Update.
3207 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
3209 * tui/tui-win.c (make_invisible_and_set_new_height)
3210 (make_visible_with_new_height): Update.
3211 * tui/tui-source.c (tui_set_source_content)
3212 (tui_show_symtab_source): Update.
3213 * tui/tui-layout.c (extract_display_start_addr)
3214 (show_source_disasm_command, show_data)
3215 (make_source_or_disasm_window)
3216 (show_source_or_disasm_and_command): Update.
3217 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
3218 (tui_disasm_window::do_scroll_vertical): Remove shadowing
3220 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
3221 to tui_source_window_base.
3222 (struct tui_win_info) <detail>: Remove source_info member.
3223 (struct tui_source_window_base) <has_locator>: Inline.
3224 Move contents from tui_source_info; rename has_locator member to
3226 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
3227 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
3229 (tui_source_window_base::clear_detail, ~tui_source_window_base):
3231 (tui_free_all_source_wins_content): Cast to
3232 tui_source_window_base.
3234 2019-06-25 Tom Tromey <tom@tromey.com>
3236 * tui/tui-win.c (make_invisible_and_set_new_height)
3237 (make_visible_with_new_height): Call has_locator method.
3238 * tui/tui-layout.c (show_source_disasm_command, show_data)
3239 (show_source_or_disasm_and_command): Update for bool change.
3240 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
3241 (tui_win_info) <has_locator>: New method.
3242 (struct tui_source_window_base) <has_locator>: New method.
3243 (tui_win_has_locator): Don't declare.
3244 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
3245 from tui_win_has_locator.
3246 (tui_source_window_base): Use false, not FALSE.
3248 2019-06-25 Tom Tromey <tom@tromey.com>
3250 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
3251 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
3252 clear_detail method directly.
3253 (tui_clear_win_detail): Remove.
3255 2019-06-25 Tom Tromey <tom@tromey.com>
3257 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
3258 "this", not TUI_DISASM_WIN.
3260 2019-06-25 Tom Tromey <tom@tromey.com>
3262 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
3264 * tui/tui-winsource.c
3265 (tui_source_window_base::do_scroll_horizontal): Rename from
3266 tui_horizontal_source_scroll.
3267 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
3268 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
3269 from tui_vertical_data_scroll.
3270 * tui/tui-win.h (tui_scroll): Don't declare.
3271 * tui/tui-win.c (tui_win_info::forward_scroll)
3272 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
3273 (tui_win_info::right_scroll): Rename and update.
3274 (tui_scroll_forward_command, tui_scroll_backward_command)
3275 (tui_scroll_left_command, tui_scroll_right_command): Update.
3276 (tui_scroll): Remove.
3277 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
3278 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
3279 from tui_vertical_source_scroll.
3280 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
3281 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
3282 from tui_vertical_disassem_scroll.
3283 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
3284 do_scroll_horizontal>: New methods.
3285 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
3287 (struct tui_source_window_base): Add do_scroll_horizontal.
3288 (struct tui_source_window, struct tui_disasm_window): Add
3290 (struct tui_data_window, struct tui_cmd_window): Add
3291 do_scroll_horizontal and do_scroll_vertical.
3292 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
3294 2019-06-25 Tom Tromey <tom@tromey.com>
3296 * tui/tui-data.h (struct tui_source_window_base): New struct.
3297 (struct tui_source_window): Derive from tui_source_window_base.
3298 (struct tui_disasm_window): New struct.
3299 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
3300 from tui_source_window::clear_detail.
3301 (tui_source_window_base): Rename from tui_source_window.
3302 (~tui_source_window_base): Rename from ~tui_source_window.
3303 (tui_alloc_win_info): Create a tui_disasm_window.
3305 2019-06-25 Tom Tromey <tom@tromey.com>
3307 * tui/tui-data.h (struct tui_source_window)
3308 (struct tui_data_window): Declare destructors.
3309 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
3311 (tui_win_info): Simplify.
3313 2019-06-25 Tom Tromey <tom@tromey.com>
3315 * tui/tui-winsource.c (tui_display_main)
3316 (tui_update_source_windows_with_addr)
3317 (tui_update_all_breakpoint_info): Update.
3318 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3319 (new_height_ok, parse_scrolling_args): Update.
3320 * tui/tui-stack.c (tui_show_frame_info): Update.
3321 * tui/tui-data.h (struct tui_list): Remove.
3322 (tui_source_windows): Return a reference to a std::vector.
3323 * tui/tui-data.c (source_windows): Now a std::vector.
3324 (tui_source_windows): Change return type.
3325 (tui_clear_source_windows): Rewrite.
3326 (tui_clear_source_windows_detail, tui_add_to_source_windows)
3327 (tui_free_all_source_wins_content): Rewrite.
3329 2019-06-25 Tom Tromey <tom@tromey.com>
3331 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
3332 (struct tui_data_window, struct tui_cmd_window): Declare
3333 clear_detail method.
3334 * tui/tui-data.c (tui_source_window::clear_detail)
3335 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
3337 (tui_clear_win_detail): Simplify.
3339 2019-06-25 Tom Tromey <tom@tromey.com>
3341 * tui/tui-layout.c (make_source_window, make_disasm_window)
3342 (make_source_or_disasm_window): Remove win_info_ptr parameter.
3343 Return the new window.
3344 (show_source_disasm_command, show_data)
3345 (show_source_or_disasm_and_command): Update.
3347 2019-06-25 Tom Tromey <tom@tromey.com>
3349 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
3350 parameter. Return the new window.
3351 (show_source_disasm_command): Update and remove NULL check.
3352 (show_source_or_disasm_and_command): Update.
3354 2019-06-25 Tom Tromey <tom@tromey.com>
3356 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
3358 2019-06-25 Tom Tromey <tom@tromey.com>
3360 * tui/tui-data.h (struct tui_win_info): Make constructor
3361 protected. Make destructor virtual. Add initializers.
3362 (tui_source_window, tui_data_window, tui_cmd_window): New
3364 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
3365 constructor. Add "type" parameter.
3366 (tui_source_window, tui_data_window, tui_cmd_window): New
3368 (tui_alloc_win_info): Instantiate the appropriate subclass.
3370 2019-06-25 Tom Tromey <tom@tromey.com>
3372 * tui/tui-win.c (tui_resize_all): Use delete.
3373 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
3375 (tui_free_window): Don't declare.
3376 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
3379 2019-06-25 Tom Tromey <tom@tromey.com>
3381 * tui/tui-data.h (struct tui_win_info): Add constructor.
3382 * tui/tui-data.c (tui_alloc_win_info): Use new.
3383 (tui_free_window): Use delete.
3385 2019-06-22 Tom Tromey <tom@tromey.com>
3387 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
3389 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
3391 2019-06-22 Tom Tromey <tom@tromey.com>
3393 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
3395 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
3397 2019-06-22 Tom de Vries <tdevries@suse.de>
3399 * dwarf2read.c (create_addrmap_from_aranges)
3400 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
3403 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
3405 * dwarf2read.h (dwarf2_section_info_def): Remove.
3406 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
3407 * dwarf2read.c (struct dwo_sections) <types>: Change type to
3408 std::vector<dwarf2_section_info>.
3409 (struct dwo_file) <~dwo_file>: Remove.
3410 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
3412 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
3413 (dwarf2_read_debug_names): Likewise.
3414 (create_debug_types_hash_table): Change parameter type to
3415 array_view, adjust code accordingly.
3416 (dwarf2_locate_dwo_sections): Adjust to std::vector.
3417 (partial_die_info::fixup): Likewise.
3418 (determine_prefix): Likewise.
3419 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
3421 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3423 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
3425 <~dwo_file>: Remove call to gdb_bfd_unref.
3426 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
3427 gdb_bfd_ref_ptr::get.
3429 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3431 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
3433 * dwarf2read.c (struct dwo_file): Initialize fields.
3435 (free_dwo_file): Remove, move content to ~dwo_file.
3436 (struct dwo_file_deleter): Remove.
3437 (dwo_file_up>: Remove custom deleter.
3438 (free_dwo_files): Remove.
3439 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
3441 (process_skeletonless_type_units): Call unique_ptr::get.
3442 (allocate_dwo_file_hash_table): Add deleter to created hash
3443 table. Change return type to htab_up.
3444 (lookup_dwo_file_slot): Don't memset dwo_file, call
3446 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
3447 (create_dwo_unit_in_dwp_v2): Likewise.
3448 (open_and_init_dwo_file): Likewise.
3449 (free_dwo_file_from_slot): Remove.
3451 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3453 * dwarf2read.h (struct dwarf2_section_info) <readin,
3454 is_virtual>: Change type to bool.
3455 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
3458 2019-06-19 Tom Tromey <tom@tromey.com>
3460 * tui/tui-data.h (tui_init_content_element): Don't declare.
3462 2019-06-19 Tom Tromey <tom@tromey.com>
3464 * tui/tui-data.h (tui_init_win_info): Don't declare.
3466 2019-06-19 Tom de Vries <tdevries@suse.de>
3468 * dwarf2read.h (abstract_to_concrete): Change type to
3469 std::unordered_map<sect_offset, std::vector<sect_offset>,
3470 gdb::hash_enum<sect_offset>>.
3472 2019-06-19 Tom Tromey <tromey@adacore.com>
3474 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
3475 EVAL_AVOID_SIDE_EFFECTS specially.
3477 2019-06-19 Tom Tromey <tromey@adacore.com>
3479 * source-cache.c (highlighter): New global.
3480 (source_cache::get_source_lines): Create a highlighter on demand.
3482 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
3484 * defs.h (deprecated_interactive_hook): Delete declaration.
3485 * interps.c (clear_interpreter_hooks): Remove use of
3486 deprecated_interactive_hook.
3487 * top.c (deprecated_interactive_hook): Delete definition.
3488 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
3490 2019-06-18 Tom de Vries <tdevries@suse.de>
3493 * dwarf2read.h (abstract_to_concrete): Change type from
3494 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
3495 std::unordered_map<sect_offset, std::vector<sect_offset>>.
3496 * dwarf2read.c (read_variable): Update.
3497 (dwarf2_fetch_die_loc_sect_off): Update.
3499 2019-06-17 Tom de Vries <tdevries@suse.de>
3502 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
3503 accessing parent[parent_len - 1].
3505 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
3508 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
3509 call dtrace_process_dof with NULL dof.
3511 2019-06-16 Tom de Vries <tdevries@suse.de>
3514 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
3516 2019-06-16 Tom Tromey <tom@tromey.com>
3518 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
3519 (make_all_visible): Use address of member.
3521 2019-06-16 Tom Tromey <tom@tromey.com>
3523 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
3524 (tui_free_window, free_content, free_content_elements): Remove
3526 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
3528 * tui/tui-regs.c (tui_show_register_group)
3529 (tui_display_registers_from, tui_display_reg_element_at_line):
3530 Remove unnecessary cast.
3532 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
3534 * linux-nat.c (normal_mask): Delete.
3535 (_initialize_linux_nat): Don't initialise normal_mask.
3537 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
3540 * dwarf-index-write.h (write_psymtabs_to_index): Add
3541 dwz_basename parameter.
3542 * dwarf-index-write.c (write_gdbindex): Move file writing to
3543 write_gdbindex_1. Change return type void.
3544 (assert_file_size): Move up, remove filename parameter.
3545 (write_gdbindex_1): New function.
3546 (write_debug_names): Change return type to void, call
3548 (struct index_wip_file): New struct.
3549 (write_psymtabs_to_index): Add dwz_basename parameter. Move
3550 file logic to index_wip_file. Write index for dwz file if
3552 (save_gdb_index_command): Pass basename of dwz file, if present.
3553 * dwarf-index-cache.c (index_cache::store): Obtain and pass
3554 build-id of dwz file, if present.
3555 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
3556 (dwarf2_get_dwz_file): Likewise.
3557 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
3558 (dwarf2_get_dwz_file): Likewise.
3560 2019-06-16 Tom Tromey <tom@tromey.com>
3562 * coffread.c (process_coff_symbol): Use xstrdup.
3563 * value.c (create_internalvar): Use xstrdup.
3565 2019-06-16 Tom Tromey <tom@tromey.com>
3567 * valops.c (value_cast, value_slice): Remove unnecessary cast.
3568 * breakpoint.c (stopin_command, stopat_command)
3569 (until_break_command, decode_location_default): Remove unnecessary
3571 * utils.c (subset_compare): Remove unnecessary cast.
3572 * ada-lang.c (ada_update_initial_language): Remove unnecessary
3574 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
3576 * infcmd.c (path_command): Remove unnecessary cast.
3577 * coffread.c (decode_type): Remove unnecessary cast.
3578 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
3579 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
3580 * tui/tui-stack.c (tui_show_locator_content)
3581 (tui_show_frame_info): Remove unnecessary cast.
3582 * tui/tui-win.c (tui_scroll_forward_command)
3583 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
3584 (parse_scrolling_args): Remove unnecessary cast.
3585 * tui/tui-data.c (init_win_info, tui_del_window)
3586 (tui_free_window, tui_del_data_windows, tui_free_data_content)
3587 (free_content_elements): Remove unnecessary cast.
3588 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
3590 * tui/tui-source.c (tui_set_source_content)
3591 (tui_vertical_source_scroll): Remove unnecessary cast.
3592 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
3594 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
3595 * tui/tui-regs.c (tui_display_registers_from)
3596 (tui_display_register): Remove unnecessary cast.
3597 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
3598 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
3599 (make_visible): Remove unnecessary cast.
3600 * tui/tui-winsource.c (tui_erase_source_content)
3601 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
3603 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
3604 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
3605 * stabsread.c (read_type, read_array_type, read_range_type):
3606 Remove unnecessary cast.
3607 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
3608 (parse_symbol, parse_type, upgrade_type, parse_external)
3609 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
3611 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
3613 2019-06-16 Tom Tromey <tom@tromey.com>
3615 * tui/tui-data.c (tui_alloc_generic_win_info)
3616 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
3619 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
3620 Andrew Burgess <andrew.burgess@embecosm.com>
3622 * f-typeprint.c (f_print_type): Don't return early for not
3623 associated or not allocated types.
3624 (f_type_print_varspec_suffix): Add print_rank parameter and print
3625 ranks of array types in case they dangling.
3626 (f_type_print_base): Add print_rank parameter.
3628 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3630 * NEWS: Mention new MI commands.
3631 * break-catch-throw.c (enum exception_event_kind): Move to
3633 (print_mention_exception_catchpoint): Output text as a single
3635 (catch_exception_command_1): Rename to...
3636 (catch_exception_event): ...this, make non-static, update header
3637 command, and change some parameter types.
3638 (catch_catch_command): Update for changes to
3639 catch_exception_command_1.
3640 (catch_throw_command): Likewise.
3641 (catch_rethrow_command): Likewise.
3642 * breakpoint.c (enum exception_event_kind): Delete.
3643 * breakpoint.h (enum exception_event_kind): Moved here from
3644 break-catch-throw.c.
3645 (catch_exception_event): Declare.
3646 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
3647 (mi_cmd_catch_throw): New function.
3648 (mi_cmd_catch_rethrow): New function.
3649 (mi_cmd_catch_catch): New function.
3650 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
3651 'catch-catch' entries.
3652 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
3653 (mi_cmd_catch_rethrow): Declare.
3654 (mi_cmd_catch_catch): Declare.
3656 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3658 * annotate.c (annotate_source_line): Change return type to void,
3659 update implementation to match.
3660 * annotate.h (annotate_source_line): Change return type to void,
3661 update header comment.
3662 * stack.c (print_frame_info): Don't change what frame information
3663 is printed based on whether annotations are on or not.
3665 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3667 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
3668 (annotate_source): Make static.
3669 (annotate_source_line): Moved from source.c and renamed from
3670 identify_source_line. Update the return type.
3671 * annotate.h (annotate_source): Delete declaration.
3672 (annotate_source_line): Declaration moved from source.h, and
3673 renamed from identify_source_line. Return type updated.
3674 * source.c (identify_source_line): Moved to annotate.c and renamed
3675 to annotate_source_line.
3676 (info_line_command): Remove check of annotation_level.
3677 * source.h (identify_source_line): Move declaration to annotate.h
3678 and rename to annotate_source_line.
3679 * stack.c: Add 'annotate.h' include.
3680 (print_frame_info): Remove check of annotation_level before
3681 calling annotate_source_line.
3683 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3685 * source-cache.c (source_cache::get_plain_source_lines): Use
3686 open_source_file_with_line_charpos instead of just
3687 open_source_file, remove call to find_source_lines.
3688 (source_cache::get_source_lines): Likewise.
3689 * source.c (find_source_lines): Make static.
3690 (get_filename_and_charpos): Renamed into...
3691 (open_source_file_with_line_charpos): ..this along with changes to
3692 return a scoped_fd, and some other minor clean ups.
3693 (identify_source_line): Use open_source_file_with_line_charpos.
3694 (search_command_helper): Use open_source_file_with_line_charpos
3695 instead of just open_source_file, remove call to
3697 * source.h (open_source_file_with_line_charpos): Declare new
3699 (find_source_lines): Delete declaration.
3701 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3703 * source.c (get_filename_and_charpos): Remove fullname
3705 (identify_source_line): Update call to get_filename_and_charpos.
3707 2019-06-14 Tom Tromey <tromey@adacore.com>
3710 * ui-style.h (skip_ansi_escape): Update comment.
3711 * ui-file.h (class no_terminal_escape_file): New class.
3712 * ui-file.c (no_terminal_escape_file::write)
3713 (no_terminal_escape_file::puts): New methods.
3714 * cli/cli-logging.c (handle_redirections): Use
3715 no_terminal_escape_file.
3717 2019-06-14 Tom Tromey <tromey@adacore.com>
3719 * NEWS: Move convenience variable news above Python news.
3721 2019-06-14 Tom Tromey <tom@tromey.com>
3723 * gnulib: Move directory to top-level.
3724 * configure.ac: Don't configure gnulib.
3725 * configure: Rebuild.
3726 * common/common-defs.h: Use new path to gnulib.
3727 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
3729 (INCGNU): Look in new gnulib location.
3730 (HFILES_NO_SRCDIR): Remove gnulib files.
3731 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
3732 (generated_files): Remove GNULIB_H.
3733 ($(LIBGNU), all-lib): Remove targets.
3734 (distclean): Don't mention GNULIB_BUILDDIR.
3735 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
3737 2019-06-14 Tom Tromey <tromey@adacore.com>
3739 * symfile.c (add_symbol_file_command): Remove obsolete comment.
3740 Warn if symbol file does not provide any symbols.
3742 2019-06-14 Tom Tromey <tromey@adacore.com>
3744 * source.c (find_and_open_source): Respect basenames_may_differ.
3746 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
3748 * annotate.c (annotate_breakpoints_invalid): Make use of
3749 scoped_restore_terminal_state.
3750 (annotate_frames_invalid): Likewise.
3752 2019-06-14 Tom Tromey <tromey@adacore.com>
3754 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
3755 allow assignment to an internalvar.
3757 2019-06-14 Tom Tromey <tromey@adacore.com>
3759 * ada-lex.l: Allow "_" in attribute names.
3761 2019-06-14 Tom Tromey <tromey@adacore.com>
3764 * regcache.c (registers_changed): Don't call alloca.
3765 * top.c (execute_command): Don't call alloca.
3767 2019-06-13 Pedro Alves <palves@redhat.com>
3769 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
3770 'expression'. When parsing an expression, error out if there's
3771 junk after "unlimited".
3772 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
3773 (do_set_command): Adjust calls to is_unlimited_literal.
3775 2019-06-13 Pedro Alves <palves@redhat.com>
3777 * compile/compile.c (make_compile_options_def_group): Add braces
3778 around array_view initializer.
3779 * thread.c (make_thread_apply_all_options_def_group)
3780 (make_thread_apply_all_options_def_group): Likewise.
3782 2019-06-13 Pedro Alves <palves@redhat.com>
3784 * NEWS (New commands): Mention "maint test-options
3785 require-delimiter", "maint test-options unknown-is-error", "maint
3786 test-options unknown-is-operand" and "maint show
3787 test-options-completion-result".
3788 (New command options, command completion): New section.
3789 (Completion improvements): New section.
3790 Mention that you can abbreviate "unlimited".
3792 2019-06-13 Pedro Alves <palves@redhat.com>
3794 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
3795 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
3796 * unittests/cli-utils-selftests.c (test_parse_flags)
3797 (test_parse_flags_qcs): Delete.
3798 (test_cli_utils): Don't call deleted functions.
3800 2019-06-13 Pedro Alves <palves@redhat.com>
3802 * thread.c: Include "cli/cli-option.h".
3803 (tp_array_compar_ascending): Global.
3804 (tp_array_compar): Delete function.
3805 (tp_array_compar_ascending, tp_array_compar_descending): New
3807 (ascending_option_def, qcs_flag_option_def)
3808 (thr_qcs_flags_option_defs)
3809 (make_thread_apply_all_options_def_group)
3810 (make_thread_apply_options_def_group): New.
3811 (thread_apply_all_command): Use gdb::option::process_options.
3812 (thread_apply_command_completer)
3813 (thread_apply_all_command_completer): New.
3814 (thread_apply_command): Use gdb::option::process_options.
3815 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
3816 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
3817 to generate help text of "thread apply". Adjust "taas"'s help.
3818 * tid-parse.c (tid_range_parser::in_thread_range): New method.
3819 * tid-parse.h (tid_range_parser::in_thread_range): New method.
3821 2019-06-13 Pedro Alves <palves@redhat.com>
3823 * thread.c (thread_apply_command): Check for invalid TID with
3824 isdigit instead of !isalpha.
3826 2019-06-13 Pedro Alves <palves@redhat.com>
3828 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
3829 (validate_flags_qcs): New.
3830 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
3831 (validate_flags_qcs): Declare.
3832 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
3833 (make_frame_apply_options_def_group): New.
3834 (frame_apply_command_count): Process options with
3835 gdb::option::process_options.
3836 (frame_apply_completer): New.
3837 (frame_apply_level_completer, frame_apply_all_completer)
3838 (frame_apply_completer): New.
3839 (_initialize_stack): Update help of "frame apply", "frame apply
3840 level", "frame apply all" and "faas" to mention supported options
3841 and install command completers.
3842 * stack.h (frame_apply_all_completer): Declare.
3843 * thread.c: Include "stack.h".
3844 (tfaas_command): Add "--".
3845 (_initialize_thread): Update help "tfaas" to mention supported
3846 options and install command completer.
3848 2019-06-13 Pedro Alves <palves@redhat.com>
3850 * completer.c (complete_nested_command_line): New.
3851 (gdb_completion_word_break_characters_throw): Add assertion.
3852 * completer.h (complete_nested_command_line): Declare.
3854 2019-06-13 Pedro Alves <palves@redhat.com>
3856 * stack.c (parse_backtrace_qualifiers): New.
3857 (backtrace_command): Use it.
3858 (backtrace_command_completer): Complete on qualifiers.
3860 2019-06-13 Pedro Alves <palves@redhat.com>
3862 * frame.c: Include "cli/cli-option.h.
3863 (user_set_backtrace_options): New.
3864 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
3866 (get_prev_frame): Adjust.
3867 (boolean_option_def, uinteger_option_def)
3868 (set_backtrace_option_defs): New.
3869 (_initialize_frame): Adjust and use
3870 gdb::option::add_setshow_cmds_for_options to install "set
3871 backtrace past-main" and "set backtrace past-entry".
3872 * frame.h: Include "cli/cli-option.h".
3873 (struct frame_print_options): Forward declare.
3874 (print_frame_arguments_all, print_frame_arguments_scalars)
3875 (print_frame_arguments_none): Declare.
3876 (print_entry_values): Delete declaration.
3877 (struct frame_print_options, user_frame_print_options): New.
3878 (struct set_backtrace_options): New.
3879 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
3880 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3881 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
3882 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
3883 (list_args_or_locals): Add frame_print_options parameter.
3884 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
3885 * python/py-framefilter.c (enumerate_args): Pass down
3886 USER_FRAME_PRINT_OPTIONS.
3887 * stack.c: Include "cli/cli-option.h".
3888 (print_frame_arguments_all, print_frame_arguments_scalars)
3889 (print_frame_arguments_none): Declare.
3890 (print_raw_frame_arguments, print_entry_values): Delete.
3891 (user_frame_print_options): New.
3892 (boolean_option_def, enum_option_def, frame_print_option_defs):
3894 (struct backtrace_cmd_options): New.
3895 (bt_flag_option_def): New.
3896 (backtrace_command_option_defs): New.
3897 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
3898 (print_frame_arg, read_frame_arg, print_frame_args)
3899 (print_frame_info, print_frame): Add frame_print_options parameter
3901 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
3902 (backtrace_command_1): Add frame_print_options and
3903 backtrace_cmd_options parameters and use them.
3904 (make_backtrace_options_def_group): New.
3905 (backtrace_command): Process command options with
3906 gdb::option::process_options.
3907 (backtrace_command_completer): New.
3908 (_initialize_stack): Extend "backtrace"'s help to mention
3909 supported options. Install completer for "backtrace".
3910 Install some settings commands with add_setshow_cmds_for_options.
3912 2019-06-13 Pedro Alves <palves@redhat.com>
3914 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
3915 and that "set/show print raw frame-arguments" are now deprecated.
3917 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
3919 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
3920 * stack.c (_initialize_stack): Install "set/show print
3921 raw-frame-arguments", and deprecate "set/show print raw
3923 * valprint.c (_initialize_valprint): Deprecate "set/show print
3926 2019-06-13 Pedro Alves <palves@redhat.com>
3928 * compile/compile.c (struct compile_options): New.
3929 (compile_flag_option_def, compile_command_option_defs)
3930 (make_compile_options_def_group): New.
3931 (compile_file_command): Handle options with
3932 gdb::option::process_options.
3933 (compile_file_command_completer): New function.
3934 (compile_code_command): Handle options with
3935 gdb::option::process_options.
3936 (compile_code_command_completer): New function.
3937 (_initialize_compiler): Install completers for "compile code" and
3938 "compile file". Mention available options in "compile code" and
3939 "compile code"'s help.
3940 * completer.c (advance_to_completion_word): New, factored out from
3942 (advance_to_expression_complete_word_point): ... this.
3943 (advance_to_filename_complete_word_point): New.
3944 * completer.h (advance_to_filename_complete_word_point): New
3947 2019-06-13 Pedro Alves <palves@redhat.com>
3949 * compile/compile.c: Include "cli/cli-option.h".
3950 (compile_print_value): Scope data pointer is now a
3951 value_print_options pointer; adjust.
3952 (compile_print_command): Process options. Scope data pointer is
3953 now a value_print_options pointer; adjust.
3954 (_initialize_compile): Update "compile print"'s help to include
3955 supported options. Install a completer for "compile print".
3956 * cp-valprint.c (show_vtblprint, show_objectprint)
3957 (show_static_field_print): Delete.
3958 (_initialize_cp_valprint): Don't install "set print
3959 static-members", "set print vtbl", "set print object" here.
3960 * printcmd.c: Include "cli/cli-option.h" and
3961 "common/gdb_optional.h".
3962 (print_command_parse_format): Rework to fill in a
3963 value_print_options instead of a format_data.
3964 (print_value): Change parameter type from format_data pointer to
3965 value_print_options reference. Adjust.
3966 (print_command_1): Process options. Adjust to pass down a
3967 value_print_options.
3968 (print_command_completer): New.
3969 (_initialize_printcmd): Install print_command_completer as
3970 handle_brkchars completer for the "print" command. Update
3971 "print"'s help to include supported options.
3972 * valprint.c: Include "cli/cli-option.h".
3973 (show_vtblprint, show_objectprint, show_static_field_print): Moved
3974 here from cp-valprint.c.
3975 (boolean_option_def, uinteger_option_def)
3976 (value_print_option_defs, make_value_print_options_def_group):
3977 New. Use gdb::option::add_setshow_cmds_for_options to install
3978 "set print elements", "set print null-stop", "set print repeats",
3979 "set print pretty", "set print union", "set print array", "set
3980 print address", "set print symbol", "set print array-indexes".
3981 * valprint.h: Include <string> and "cli/cli-option.h".
3982 (make_value_print_options_def_group): Declare.
3983 (print_value): Change parameter type from format_data pointer to
3984 value_print_options reference.
3985 (print_command_completer): Declare.
3987 2019-06-13 Pedro Alves <palves@redhat.com>
3989 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
3990 (COMMON_SFILES): Add maint-test-settings.c.
3991 * cli/cli-decode.c (boolean_enums): New global, factored out from
3993 (add_setshow_boolean_cmd): ... here.
3994 * cli/cli-decode.h (boolean_enums): Declare.
3995 * cli/cli-option.c: New file.
3996 * cli/cli-option.h: New file.
3997 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
3998 factored out from ...
3999 (parse_cli_boolean_value(const char *)): ... this.
4000 (is_unlimited_literal): Change parameter type to pointer to
4001 pointer. Adjust and advance ARG pointer.
4002 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
4003 (parse_cli_var_enum): New, factored out from ...
4004 (do_set_command): ... this. Adjust.
4005 * cli/cli-setshow.h (parse_cli_boolean_value)
4006 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
4007 (parse_cli_var_enum): Declare.
4008 * cli/cli-utils.c: Include "cli/cli-option.h".
4009 (get_ulongest): New.
4010 * cli/cli-utils.h (get_ulongest): Declare.
4011 (check_for_argument): New overloads.
4012 * maint-test-options.c: New file.
4014 2019-06-13 Pedro Alves <palves@redhat.com>
4016 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
4017 parse a range if "-" is at the end of the string.
4019 2019-06-13 Pedro Alves <palves@redhat.com>
4021 * cli/cli-setshow.c (parse_auto_binary_operation)
4022 (parse_cli_boolean_value): Don't allow "o".
4024 2019-06-13 Pedro Alves <palves@redhat.com>
4026 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
4027 * NEWS: Mention maint test-settings KIND.
4028 * maint-test-settings.c: New file.
4030 2019-06-13 Pedro Alves <palves@redhat.com>
4032 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
4034 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
4037 2019-06-13 Pedro Alves <palves@redhat.com>
4039 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
4042 2019-06-13 Pedro Alves <palves@redhat.com>
4044 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
4046 2019-06-13 Pedro Alves <palves@redhat.com>
4048 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
4049 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
4051 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
4052 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
4054 (check_for_argument): Skip spaces after argument.
4056 2019-06-13 Pedro Alves <palves@redhat.com>
4058 * thread.c (thread_apply_command): Adjust TID parsing.
4059 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
4060 detected before end of string.
4061 (tid_is_in_list): Error out if LIST is invalid.
4063 2019-06-13 Pedro Alves <palves@redhat.com>
4065 * completer.c (complete_line_internal_1): Rewind completion word
4067 (completion_tracker::advance_custom_word_point_by): Change
4068 parameter type to int.
4069 * completer.h (completion_tracker::advance_custom_word_point_by):
4072 2019-06-13 Pedro Alves <palves@redhat.com>
4074 * completer.c (advance_to_completion_word): Handle delimiters.
4076 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
4078 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
4080 2019-06-11 Tom Tromey <tom@tromey.com>
4082 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
4083 (xmalloc_failed): Move to alloc.c.
4084 * alloc.c: New file.
4085 * Makefile.in (COMMON_SFILES): Add alloc.c.
4087 2019-06-11 Tom Tromey <tom@tromey.com>
4089 * nat/linux-waitpid.c: Don't include server.h.
4090 (linux_debug): Remove.
4091 (my_waitpid): Update.
4093 2019-06-11 Tom Tromey <tromey@adacore.com>
4095 * infcall.c (_initialize_infcall): Remove trailing newline from
4097 * user-regs.c (_initialize_user_regs): Remove trailing newline
4099 * typeprint.c (_initialize_typeprint): Remove trailing newline
4101 * reverse.c (_initialize_reverse): Remove trailing newlines from
4103 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
4105 * language.c (add_set_language_command): Remove trailing newline
4107 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
4109 * disasm.c (_initialize_disasm): Remove trailing newline from
4111 * top.c (init_main): Remove trailing newline from help.
4112 * interps.c (_initialize_interpreter): Remove trailing newline
4114 * btrace.c (_initialize_btrace): Remove trailing newlines from
4116 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
4118 * python/python.c (_initialize_python): Remove trailing newline
4120 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
4122 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
4123 from help. Reformat some text.
4124 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
4126 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
4129 2019-06-11 Tom Tromey <tromey@adacore.com>
4131 * darwin-nat.c (darwin_decode_exception_message)
4132 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
4134 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
4136 * valops.c (value_slice): Check for not allocated or not
4139 2019-06-10 Tom de Vries <tdevries@suse.de>
4142 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
4143 sure an empty slot (defined by a 32-bit zero pair) is recognized as
4146 2019-06-10 Tom de Vries <tdevries@suse.de>
4149 * linespec.c (linespec_lexer_lex_string): Remove incorrect
4150 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
4152 2019-06-10 Tom de Vries <tdevries@suse.de>
4155 * symtab.c (struct demangled_name_entry): Add language field.
4156 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
4157 static minimal symbol". Set and use language field.
4159 2019-06-10 Tom Tromey <tromey@adacore.com>
4161 * ada-lang.c (_initialize_ada_language): Update help text.
4163 2019-06-10 Tom Tromey <tromey@adacore.com>
4165 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
4167 * guile/guile.c (handle_boot_error): Don't end warning with a
4169 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
4170 warning with a newline.
4171 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
4173 (s12z_frame_cache): Likewise.
4174 * dwarf-index-cache.c (index_cache::store): Don't end warning with
4176 * solib-svr4.c (disable_probes_interface): Don't end warning with
4178 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
4180 * python/python.c (do_finish_initialization): Don't end warning
4183 2019-06-10 Tom Tromey <tom@tromey.com>
4185 * python/py-breakpoint.c (gdbpy_breakpoint_created)
4186 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
4189 2019-06-10 Tom Tromey <tromey@adacore.com>
4191 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
4193 (elf_new_init): Don't call stabsread_new_init.
4194 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
4195 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
4196 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
4198 2019-06-10 Tom de Vries <tdevries@suse.de>
4202 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
4204 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
4206 * source.c (find_and_open_source): Also rewrite relative file
4209 2019-04-26 Amos Bird <amosbird@gmail.com>
4211 * annotate.c (annotate_thread_exited): Add "thread-exited"
4214 2019-06-06 Tom Tromey <tromey@adacore.com>
4216 * maint.h (class scoped_command_stats): Use
4217 DISABLE_COPY_AND_ASSIGN.
4218 <print_time>: New method.
4219 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
4221 (scoped_command_stats::print_time): New method.
4223 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4225 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
4226 instructions of lengths 6 or 8 bytes.
4228 2019-06-04 Pedro Alves <palves@redhat.com>
4230 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
4232 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
4233 * breakpoint.c (condition_completer): Likewise.
4234 * cli/cli-dump.c (scan_expression): Likewise.
4235 * common/filestuff.c (mkdir_recursive): Likewise.
4236 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
4237 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
4238 (gdb_abspath): Likewise.
4239 * compile/compile-cplus-types.c
4240 (compile_cplus_instance::decl_name): Likewise.
4241 * completer.c (complete_explicit_location):
4242 (signal_completer, reg_or_group_completer_1): Likewise.
4243 * cp-support.c (cp_remove_params_if_any): Likewise.
4244 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
4245 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
4246 * infcmd.c (strip_bg_char): Likewise.
4247 * linespec.c (copy_token_string): Likewise.
4248 * mi/mi-main.c (output_cores): Likewise.
4249 * psymtab.c (psymtab_search_name):
4250 * symfile.c (test_set_ext_lang_command): Likewise.
4251 * target.c (target_fileio_read_stralloc): Likewise.
4252 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
4253 * value.c (complete_internalvar): Likewise.
4255 2019-06-04 Christian Biesinger <cbiesinger@google.com>
4257 Add objfile property to gdb.Type.
4258 * NEWS: Mention Python API addition.
4259 * python/py-type.c (typy_get_objfile): New method.
4261 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4263 * NEWS: Mention the new set|show style [title|highlight].
4264 Mention changes to "show style", "help" and "apropos".
4266 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4268 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
4269 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
4270 instead of print_help_for_command.
4271 (print_doc_of_command): New function.
4272 (help_list): Add 'apropos -v word' suggestion.
4273 (print_help_for_command): Style the command name using title style.
4274 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
4275 (_initialize_cli_cmds): Describe -v in apropos_command help.
4277 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4279 * cli/cli-style.h (cli_style_option): Add name in constructor,
4280 add m_name class member, add constructor with intensity,
4281 add name class function.
4282 (cli_style_option::add_setshow_commands): Remove name argument.
4283 (highlight_style, title_style): New styles.
4284 * cli/cli-style.c (do_show): New function that shows a style
4285 characteristic styling the style name with itself.
4286 (set_style_name): New function.
4287 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
4288 Update all callers according to the changes in cli/cli-style.h.
4289 * utils.h (fputs_highlighted): New function.
4290 * utils.c (fputs_highlighted): Likewise.
4292 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4294 * NEWS: Mention new pipe command and new convenience variables.
4296 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4298 * cli/cli-cmds.c (pipe_command): New function.
4299 (_initialize_cli_cmds): Call add_com for pipe_command.
4300 Define | as an alias for pipe.
4301 (exit_status_set_internal_vars): New function.
4302 (shell_escape): Call exit_status_set_internal_vars.
4303 cli/cli-decode.c (find_command_name_length): Recognize | as
4304 a single character command.
4306 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4308 * gdbcmd.h (execute_command_to_ui_file): New declaration.
4309 top.c (execute_command_to_ui_file): New function, mostly a copy
4310 of execute_command_to_string.
4311 (execute_command_to_string): Implement by calling
4312 execute_command_to_ui_file.
4314 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4316 * top.h (saved_command_line): Remove declaration.
4317 * top.c (previous_saved_command_line, previous_repeat_arguments):
4319 (saved_command_line): Make static, define together with other
4321 (dont_repeat): Clear repeat_arguments.
4322 (repeat_previous, get_saved_command_line, save_command_line):
4324 (gdb_init): Initialize saved_command_line
4325 and previous_saved_command_line.
4326 * main.c (captured_main_1): Remove saved_command_line initialization.
4327 * event-top.c (handle_line_of_input): Update to use
4328 the new 'repeat' related functions instead of direct access to
4330 * command.h (repeat_previous, get_saved_command_line,
4331 save_command_line): New declarations.
4332 (dont_repeat): Add comment.
4334 2019-05-30 Tom Tromey <tromey@adacore.com>
4336 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
4338 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
4340 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
4343 * completer.c (complete): Initialize variable word.
4345 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
4347 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
4348 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
4349 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
4350 'body' is NULL to the outter 'if', protecting the '!is_define'
4353 2019-05-29 Tom Tromey <tromey@adacore.com>
4355 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
4356 (dwarf_unknown): New function.
4357 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
4358 (dwarf_type_encoding_name): Use dwarf_unknown.
4360 2019-05-29 Tom Tromey <tromey@adacore.com>
4363 * cp-valprint.c (cp_print_value_fields): Call
4364 cp_print_static_field inside "try".
4366 2019-05-29 Tom Tromey <tromey@adacore.com>
4368 * inflow.c (struct terminal_info): Add default operator=.
4369 * configure: Rebuild.
4370 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
4371 -Wdeprecated-copy-dtor, -Wredundant-move.
4373 2019-05-29 Tom Tromey <tromey@adacore.com>
4376 * infcmd.c (print_return_value_1): Handle finish_print
4378 (show_print_finish): New function.
4379 (_initialize_infcmd): Add "set/show print finish" commands.
4380 * valprint.c (user_print_options): Initialize new member.
4381 * valprint.h (struct value_print_options) <finish_print>: New
4384 2019-05-28 Tom Tromey <tromey@adacore.com>
4386 * ada-lang.c (ada_remove_Xbn_suffix)
4387 (find_old_style_renaming_symbol)
4388 (parse_old_style_renaming): Remove.
4389 (ada_find_renaming_symbol): Don't call
4390 find_old_style_renaming_symbol.
4391 (ada_is_renaming_symbol): Rename from
4392 ada_find_renaming_symbol. Remove "block" parameter. Return
4394 (ada_read_var_value): Update and simplify.
4395 * ada-exp.y (write_var_or_type): Remove old code.
4397 2019-05-28 Alan Hayward <alan.hayward@arm.com>
4399 * event-top.c: Remove include comment.
4400 * inflow.c (class scoped_ignore_sigttou): Move from here...
4401 * inflow.h (class scoped_ignore_sigttou): ...to here.
4402 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
4403 * top.c: Remove include comment.
4405 2019-05-27 Tom Tromey <tom@tromey.com>
4409 2019-05-22 Tom Tromey <tromey@adacore.com>
4411 * target.c (target_follow_exec): Constify parameter.
4412 * target-delegates.c: Rebuild.
4413 * remote.c (remote_target::follow_exec): Constify parameter.
4414 * infrun.c (follow_exec): Constify parameter.
4415 * target.h (struct target_ops) <follow_exec>: Constify parameter.
4416 (target_follow_exec): Likewise.
4418 2019-05-22 Alan Hayward <alan.hayward@arm.com>
4420 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
4421 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
4423 2019-05-22 Alan Hayward <alan.hayward@arm.com>
4425 * NEWS: Add debugredirect and testsuite sections.
4427 2019-05-22 Simon Cook <simon.cook@embecosm.com>
4429 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
4430 target descriptions using exclusively floating point register name
4433 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
4436 * f-lang.c (build_fortran_types): Handle the case where
4437 gdbarch_floatformat_for_type returns a nullptr.
4439 2019-05-21 Tom de Vries <tdevries@suse.de>
4442 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
4444 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
4447 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
4449 * i386-tdep.c (i386_floatformat_for_type): Use
4450 floatformats_ia64_quad for the 16-byte floating point component
4451 within a fortran 32-byte complex number.
4453 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
4455 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
4456 delete default constructor.
4457 (find_partial_die): Update to return const struct.
4458 (partial_die_parent_scope): Move variable declaration into scope
4459 of its use and change its type to auto.
4460 (guess_partial_die_structure_name): Likewise.
4461 (partial_die_info::fixup): Likewise.
4463 2019-05-17 Tom Tromey <tromey@adacore.com>
4465 * source.c (find_and_open_source): Remove cast.
4467 2019-05-17 Tom Tromey <tromey@adacore.com>
4469 * annotate.c (annotate_source): Make "filename" const.
4470 * annotate.h (annotate_source): Use const.
4472 2019-05-17 Alan Hayward <alan.hayward@arm.com>
4474 * disasm.c (set_disassembler_options): Send errors to stderr.
4476 2019-05-17 Alan Hayward <alan.hayward@arm.com>
4478 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
4479 (cli_interp_base::set_logging): Check debug_redirect.
4480 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
4481 * cli/cli-logging.c (debug_redirect): Add static variable.
4482 (pop_output_files): Add default param.
4483 (handle_redirections): Print debug setting.
4484 (show_logging_command): Likewise.
4485 (_initialize_cli_logging): Add debugredirect command.
4486 * interps.c (current_interp_set_logging): Add debug_redirect
4488 * interps.h (set_logging): Add debug_redirect parameter.
4489 (current_interp_set_logging): Likewise.
4490 * mi/mi-common.h: Likewise.
4491 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
4493 2019-05-17 Alan Hayward <alan.hayward@arm.com>
4494 Tom Tromey <tromey@adacore.com>
4496 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
4498 * cli/cli-interp.h (make_logging_output): Remove declaration.
4499 * cli/cli-logging.c (make_logging_output): Remove function.
4500 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
4502 * ui-file.c (tee_file::tee_file): Remove bools.
4503 (tee_file::~tee_file): Remove deletes.
4504 * ui-file.h (tee_file): Remove bools.
4506 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
4508 * mi/mi-cmds.h (mi_cmd_complete): New function.
4509 * mi/mi-main.c (mi_cmd_complete): Likewise.
4510 * mi/mi-cmds.c: Define new MI command -complete.
4511 * NEWS: Mention new -complete command.
4513 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
4515 * completer.h (complete): New function.
4516 * completer.c (complete): Likewise.
4517 * cli/cli-cmds.c: (complete_command): Update to use new complete()
4518 function defined in completer.h.
4520 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
4522 * MAINTAINERS (Write After Approval): Add myself.
4524 2019-05-17 Tom de Vries <tdevries@suse.de>
4527 * dwarf2read.c (struct cu_partial_die_info): New struct.
4528 (find_partial_die): Return cu_partial_die_info.
4529 (partial_die_parent_scope, guess_partial_die_structure_name)
4530 (partial_die_info::fixup): Handle new return type of find_partial_die.
4532 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4534 * stap-probe.c (stap_parse_register_operand): Make "regname" an
4535 "std::string", simplifying the algorithm.
4537 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4539 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
4540 (stap_static_probe_ops::get_probes): Likewise.
4542 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4544 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
4545 '-')" and "else if".
4546 (stap_parse_single_operand): Join checks for
4547 "gdbarch_stap_parse_special_token_p" and
4548 "gdbarch_stap_parse_special_token" in the same "if" statement.
4549 Invert check when verifying for operation on register
4552 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4554 * stap-probe.c (stap_get_opcode): Update comment.
4555 (stap_get_expected_argument_type): Likewise.
4556 (handle_stap_probe): Likewise.
4558 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4560 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
4561 return type to 'bool'. Adjust comment. Use 'bool' when
4563 (i386_stap_parse_special_token_three_arg_disp): Likewise.
4564 * stap-probe.c (stap_parse_argument_1): Likewise.
4565 (stap_is_operator): Likewise.
4566 (stap_is_generic_prefix): Likewise.
4567 (stap_is_register_prefix): Likewise.
4568 (stap_is_register_indirection_prefix): Likewise.
4569 (stap_is_integer_prefix): Likewise.
4570 (stap_generic_check_suffix): Likewise.
4571 (stap_check_integer_suffix): Likewise.
4572 (stap_check_register_suffix): Likewise.
4573 (stap_check_register_indirection_suffix): Likewise.
4574 (stap_parse_register_operand): Likewise.
4575 (stap_parse_single_operand): Likewise.
4576 (stap_parse_argument_1): Likewise.
4577 (stap_probe::get_argument_count): Likewise.
4578 (stap_is_operator): Likewise.
4580 2019-05-16 Tom Tromey <tromey@adacore.com>
4582 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
4585 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
4587 * linux-thread-db.c (try_thread_db_load_1): Change return type
4589 (try_thread_db_load): Likewise.
4590 (try_thread_db_load_from_pdir_1): Likewise.
4591 (try_thread_db_load_from_pdir): Likewise.
4592 (try_thread_db_load_from_sdir): Likewise.
4593 (try_thread_db_load_from_dir): Likewise.
4594 (thread_db_load_search): Likewise.
4595 (has_libpthread): Likewise.
4596 (thread_db_load): Likewise.
4598 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
4600 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
4601 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
4602 NULL, and complain/return if that's the case.
4604 2019-05-15 John Darrington <john@darrington.wattle.id.au>
4606 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
4607 (advance, posn, abstract_read_memory): New functions.
4608 [struct mem_read_abstraction]: New struct.
4609 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
4611 2019-05-14 Tom Tromey <tromey@adacore.com>
4613 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
4614 value is not lval_memory.
4616 2019-05-14 Tom Tromey <tromey@adacore.com>
4618 * solib.c (info_sharedlibrary_command): Style the file name.
4620 2019-05-14 Alan Hayward <alan.hayward@arm.com>
4622 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
4623 (aarch64_vnv_type): Likewise.
4624 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
4625 * common/tdesc.c: Likewise.
4626 * common/tdesc.h (enum tdesc_type_kind): Likewise.
4627 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
4628 * features/aarch64-fpu.xml: Add ieee half view.
4629 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
4630 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
4631 * gdbtypes.h (struct builtin_type): Likewise.
4632 (struct objfile_type): Likewise.
4634 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
4636 * language.c (language_sniff_from_mangled_name): Fix "langauge"
4638 * location.h (string_to_event_location): Likewise.
4640 2019-05-11 Joel Brobecker <brobecker@adacore.com>
4644 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
4646 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
4647 New variable declaration.
4648 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
4650 (print_one_breakpoint): Use ui_out::test_flags and new global
4651 variable to compute use_fixed_output.
4652 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
4654 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
4655 (mi_multi_location_breakpoint_output_fixed): Remove.
4656 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
4658 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
4659 fix_multi_location_breakpoint_output flag if version >= 3.
4660 * ui-out.h (enum ui_out_flag)
4661 <fix_multi_location_breakpoint_output>: New enumerator.
4663 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
4665 * contrib/cc-with-tweaks.sh: Validate dwz's work.
4667 2019-05-10 Tom Tromey <tromey@adacore.com>
4669 * ada-lang.c (catch_ada_completer): New function.
4670 (_initialize_ada_language): Use it.
4672 2019-05-10 Tom Tromey <tromey@adacore.com>
4674 * thread.c (print_thread_info): Make "requested_threads" const.
4675 * gdbthread.h (print_thread_info): Make "requested_threads"
4677 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
4678 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
4680 2019-05-08 Tom Tromey <tom@tromey.com>
4682 * gdbtypes.c (objfile_type_data): Change type.
4683 (objfile_type, _initialize_gdbtypes): Update.
4685 2019-05-08 Tom Tromey <tom@tromey.com>
4687 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
4688 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
4689 (_initialize_dwarf2_frame): Update.
4691 2019-05-08 Tom Tromey <tom@tromey.com>
4693 * objc-lang.c (objc_objfile_data): Change type.
4694 (find_methods): Update.
4695 (_initialize_objc_lang): Remove.
4697 2019-05-08 Tom Tromey <tom@tromey.com>
4699 * stabsread.c (rs6000_builtin_type_data): Change type.
4700 (rs6000_builtin_type, _initialize_stabsread): Update.
4702 2019-05-08 Tom Tromey <tom@tromey.com>
4704 * mips-tdep.c (mips_pdr_data): Remove.
4705 (_initialize_mips_tdep): Update.
4707 2019-05-08 Tom Tromey <tom@tromey.com>
4709 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
4710 (hppa_init_objfile_priv_data, read_unwind_info)
4711 (find_unwind_entry, _initialize_hppa_tdep): Update.
4713 2019-05-08 Tom Tromey <tom@tromey.com>
4715 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
4716 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
4718 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
4720 2019-05-08 Tom Tromey <tom@tromey.com>
4722 * mdebugread.c (basic_type_data): Change type.
4723 (basic_type, _initialize_mdebugread): Update.
4725 2019-05-08 Tom Tromey <tom@tromey.com>
4727 * common/gdb_unique_ptr.h (struct noop_deleter): New.
4729 2019-05-08 Tom Tromey <tom@tromey.com>
4731 * nto-tdep.c (nto_inferior_data_reg): Change type.
4732 (nto_inferior_data): Update.
4733 (nto_inferior_data_cleanup, nto_new_inferior_data)
4734 (_initialize_nto_tdep): Remove.
4735 * nto-tdep.h (struct nto_inferior_data): Add initializers.
4737 2019-05-08 Tom Tromey <tom@tromey.com>
4739 * ada-lang.c (struct ada_inferior_data): Add initializers.
4740 (ada_inferior_data): Change type.
4741 (ada_inferior_data_cleanup): Remove.
4742 (get_ada_inferior_data, ada_inferior_exit)
4743 (struct ada_pspace_data): Add initializers, destructor.
4744 (ada_pspace_data_handle): Change type.
4745 (get_ada_pspace_data): Update.
4746 (ada_pspace_data_cleanup): Remove.
4748 2019-05-08 Tom Tromey <tom@tromey.com>
4750 * coffread.c (struct coff_symfile_info): Add initializers.
4751 (coff_objfile_data_key): Move lower. Change type.
4752 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
4754 (coff_free_info): Remove.
4756 2019-05-08 Tom Tromey <tom@tromey.com>
4758 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
4759 (fbsd_pspace_data_handle): Move lower. Change type.
4760 (get_fbsd_pspace_data): Update.
4761 (fbsd_pspace_data_cleanup): Remove.
4762 (_initialize_fbsd_tdep): Update.
4764 2019-05-08 Tom Tromey <tom@tromey.com>
4766 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
4767 (get_ada_tasks_pspace_data): Update.
4768 (ada_tasks_pspace_data_cleanup): Remove.
4769 (_initialize_tasks): Update.
4770 (ada_tasks_inferior_data_handle): Change type.
4771 (get_ada_tasks_inferior_data): Update.
4772 (ada_tasks_inferior_data_cleanup): Remove.
4773 (struct ada_tasks_pspace_data): Add initializers.
4775 2019-05-08 Tom Tromey <tom@tromey.com>
4777 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
4778 * symfile-debug.c (debug_sym_get_probes): Change type.
4779 * stap-probe.c (handle_stap_probe):
4780 (stap_static_probe_ops::get_probes): Change type.
4781 * probe.h (class static_probe_ops) <get_probes>: Change type.
4782 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
4783 (parse_probes_in_pspace): Update.
4784 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
4786 (any_static_probe_ops::get_probes): Change type.
4787 * elfread.c (elfread_data): New typedef.
4788 (probe_key): Change type.
4789 (elf_get_probes): Likewise. Update.
4790 (probe_key_free): Remove.
4791 (_initialize_elfread): Update.
4792 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
4794 (dtrace_process_dof_probe, dtrace_process_dof)
4795 (dtrace_static_probe_ops::get_probe): Change type.
4797 2019-05-08 Tom Tromey <tom@tromey.com>
4799 * xcoffread.c (struct xcoff_symfile_info): Rename from
4800 coff_symfile_info. Add initializers.
4801 (xcoff_objfile_data_key): Move lower. Change type.
4802 (XCOFF_DATA): Rewrite.
4803 (xcoff_free_info): Remove.
4804 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
4805 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
4806 (xcoff_initial_scan): Update.
4808 2019-05-08 Tom Tromey <tom@tromey.com>
4810 * solib-svr4.c (struct svr4_info): Add initializers and
4812 <probes_table>: Now an htab_up.
4813 (solib_svr4_pspace_data): Change type.
4814 (free_probes_table): Simplify.
4815 (~svr4_info): Rename from svr4_pspace_data_cleanup.
4816 (get_svr4_info, probes_table_htab_remove_objfile_probes)
4817 (probes_table_remove_objfile_probes, register_solib_event_probe)
4818 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
4819 (_initialize_svr4_solib): Update.
4821 2019-05-08 Tom Tromey <tom@tromey.com>
4823 * remote.c (remote_pspace_data): Change type.
4824 (remote_pspace_data_cleanup): Remove.
4825 (get_remote_exec_file, set_pspace_remote_exec_file)
4826 (_initialize_remote): Update.
4828 2019-05-08 Tom Tromey <tom@tromey.com>
4830 * breakpoint.c (breakpoint_objfile_key): Change type.
4831 (get_breakpoint_objfile_data): Update.
4832 (free_breakpoint_objfile_data): Remove.
4833 (_initialize_breakpoint): Update.
4835 2019-05-08 Tom Tromey <tom@tromey.com>
4837 * linux-tdep.c (struct linux_info): Add initializers.
4838 (linux_inferior_data): Move. Change type.
4839 (invalidate_linux_cache_inf): Update.
4840 (linux_inferior_data_cleanup): Remove.
4841 (get_linux_inferior_data, _initialize_linux_tdep): Update.
4843 2019-05-08 Tom Tromey <tom@tromey.com>
4845 * auxv.c (auxv_inferior_data): Move. Change type.
4846 (auxv_inferior_data_cleanup): Remove.
4847 (invalidate_auxv_cache_inf): Rewrite.
4848 (get_auxv_inferior_data, _initialize_auxv): Update.
4850 2019-05-08 Tom Tromey <tom@tromey.com>
4852 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
4853 (symfile_debug_objfile_data_key): Change type.
4854 (symfile_debug_installed, debug_qf_has_symbols)
4855 (debug_qf_find_last_source_symtab)
4856 (debug_qf_forget_cached_source_info)
4857 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
4858 (debug_qf_print_stats, debug_qf_dump)
4859 (debug_qf_expand_symtabs_for_function)
4860 (debug_qf_expand_all_symtabs)
4861 (debug_qf_expand_symtabs_with_fullname)
4862 (debug_qf_map_matching_symbols)
4863 (debug_qf_expand_symtabs_matching)
4864 (debug_qf_find_pc_sect_compunit_symtab)
4865 (debug_qf_map_symbol_filenames)
4866 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
4867 (debug_sym_new_init, debug_sym_init, debug_sym_read)
4868 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
4869 (debug_sym_read_linetable, debug_sym_relocate): Update.
4870 (symfile_debug_free_objfile): Remove.
4871 (install_symfile_debug_logging, _initialize_symfile_debug):
4874 2019-05-08 Tom Tromey <tom@tromey.com>
4876 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
4877 allocate_on_obstack.
4878 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
4879 (get_dwarf2_per_objfile): Update.
4880 (set_dwarf2_per_objfile): Remove.
4881 (dwarf2_has_info, dwarf2_get_section_info): Update.
4882 (dwarf2_free_objfile): Remove.
4883 (_initialize_dwarf2_read): Update.
4885 2019-05-08 Tom Tromey <tom@tromey.com>
4887 * auto-load.c (struct auto_load_pspace_info): Add destructor and
4889 <unsupported_script_warning_printed,
4890 script_not_found_warning_printed>: Now bool.
4891 (auto_load_pspace_data): Change type.
4892 (~auto_load_pspace_info): Rename from
4893 auto_load_pspace_data_cleanup.
4894 (get_auto_load_pspace_data, init_loaded_scripts_info)
4895 (clear_section_scripts, maybe_print_unsupported_script_warning)
4896 (maybe_print_script_not_found_warning, _initialize_auto_load):
4899 2019-05-08 Tom Tromey <tom@tromey.com>
4901 * objfiles.c (objfile_pspace_info): Add destructor and
4903 (objfiles_pspace_data): Change type.
4904 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
4905 (get_objfile_pspace_data): Update.
4906 (objfiles_bfd_data): Change type.
4907 (get_objfile_bfd_data): Update.
4908 (objfile_bfd_data_free, _initialize_objfiles): Remove.
4910 2019-05-08 Tom Tromey <tom@tromey.com>
4912 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
4914 (get_catch_syscall_inferior_data): Update.
4915 (catch_syscall_inferior_data_cleanup): Remove.
4916 (_initialize_break_catch_syscall): Update.
4918 2019-05-08 Tom Tromey <tom@tromey.com>
4920 * inflow.c (struct terminal_info): Add destructor and
4922 (inflow_inferior_data): Change type.
4923 (~terminal_info): Rename from inflow_inferior_data_cleanup.
4924 (get_inflow_inferior_data, inflow_inferior_exit)
4925 (swap_terminal_info, _initialize_inflow): Update.
4927 2019-05-08 Tom Tromey <tom@tromey.com>
4929 * target-dcache.c (target_dcache_cleanup): Remove.
4930 (target_dcache_aspace_key): Change type.
4931 (target_dcache_init_p, target_dcache_invalidate)
4932 (target_dcache_get, target_dcache_get_or_init)
4933 (_initialize_target_dcache): Update.
4934 * dcache.h (struct dcache_deleter): New.
4936 2019-05-08 Tom Tromey <tom@tromey.com>
4938 * symtab.c (struct symbol_cache): Add destructor and
4940 (symbol_cache_key): Move. Change type.
4941 (make_symbol_cache, free_symbol_cache): Remove.
4942 (get_symbol_cache): Update.
4943 (symbol_cache_cleanup): Remove.
4944 (ALL_PSPACES, symbol_cache_flush)
4945 (maintenance_print_symbol_cache)
4946 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
4949 2019-05-08 Tom Tromey <tom@tromey.com>
4951 * symtab.c (struct main_info): Add destructor and initializers.
4952 (main_progspace_key): Move. Change type.
4953 (get_main_info): Update.
4954 (main_info_cleanup): Remove.
4955 (_initialize_symtab): Update.
4957 2019-05-08 Tom Tromey <tom@tromey.com>
4959 * registry.h (DECLARE_REGISTRY): Define the _key class.
4961 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
4963 * NEWS: Merge two 'New commands' sections.
4965 2019-05-08 Joel Brobecker <brobecker@adacore.com>
4967 * ada-valprint.c (ada_val_print_gnat_array): Remove language
4968 parameter and use Ada language definition instead.
4969 (ada_val_print_ptr): Remove unused language parameter.
4970 (ada_val_print_num): Remove language parameter and use Ada language
4972 (ada_val_print_enum, ada_val_print_flt): Remove unused language
4974 (ada_val_print_struct_union, ada_val_print_ref): Remove language
4975 parameter and use Ada language definition instead.
4976 (ada_val_print_1): Update all ada_val_print_xxx calls.
4977 Remove language parameter.
4978 (ada_val_print): Update ada_val_print_1 call.
4980 2019-05-08 Tom Tromey <tromey@adacore.com>
4982 * remote.c (remote_hw_watchpoint_limit)
4983 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
4986 2019-05-08 Tom Tromey <tromey@adacore.com>
4988 * maint.c (_initialize_maint_cmds): Move initialization code to
4990 (watchdog, show_watchdog): Move to remote.c.
4991 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
4993 (_initialize_remote): Move initialization code from maint.c.
4994 * defs.h (watchdog): Don't declare.
4996 2019-05-08 Tom Tromey <tromey@adacore.com>
4998 * tui/tui-interp.c: Include main.h.
4999 * interps.c: Include main.h.
5000 * main.h (interpreter_p): Declare.
5001 * defs.h (interpreter_p): Don't declare.
5003 2019-05-08 Tom Tromey <tromey@adacore.com>
5005 * dwarf2loc.c: Include dwarf2read.h.
5006 * defs.h (read_unsigned_leb128): Don't declare.
5007 * dwarf2read.h (read_unsigned_leb128): Declare.
5009 2019-05-08 Tom Tromey <tromey@adacore.com>
5011 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
5014 2019-05-08 Tom Tromey <tromey@adacore.com>
5016 * utils.c (fputs_maybe_filtered): Reset style after paging, even
5017 when no wrap column is set.
5019 2019-05-08 Tom Tromey <tromey@adacore.com>
5021 * c-lang.c (c_get_string): Handle non-C-style arrays.
5023 2019-05-08 Tom Tromey <tromey@adacore.com>
5025 * typeprint.c (print_offset_data::update): Print the bit offset,
5026 not the number of bits remaining.
5028 2019-05-08 Tom Tromey <tromey@adacore.com>
5030 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
5031 padding at end of comment.
5033 2019-05-08 Tom Tromey <tromey@adacore.com>
5035 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
5038 2019-05-06 Tom Tromey <tom@tromey.com>
5040 * common/scoped_mmap.c: Include common-defs.h.
5041 * common/scoped_mmap.h: Don't include config.h.
5043 2019-05-04 Tom Tromey <tom@tromey.com>
5045 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
5046 (struct aarch64_call_info): Add initializers.
5047 <si>: Now a std::vector.
5048 (pass_on_stack, aarch64_push_dummy_call): Update.
5050 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
5051 Tom Tromey <tom@tromey.com>
5053 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
5054 (ppc_threads): Now a std::vector. Now static.
5055 (hwdebug_find_thread_points_by_tid)
5056 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
5059 2019-05-04 Tom Tromey <tom@tromey.com>
5061 * arc-tdep.c (arc_tdesc_init): Return bool.
5063 2019-05-04 Tom Tromey <tom@tromey.com>
5065 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
5066 Use gdb_assert_not_reached.
5068 2019-05-04 Tom Tromey <tom@tromey.com>
5070 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
5073 2019-05-04 Tom Tromey <tom@tromey.com>
5075 * arc-tdep.c (arc_tdesc_init): Use bool.
5077 2019-05-04 Tom Tromey <tom@tromey.com>
5079 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
5081 2019-05-04 Tom Tromey <tom@tromey.com>
5083 * cli/cli-cmds.c (valid_command_p): Return bool.
5085 2019-05-04 Tom Tromey <tom@tromey.com>
5087 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
5088 * command.h (valid_user_defined_cmd_name_p): Channge return type.
5090 2019-05-04 Raul Tambre <raul@tambre.ee>
5092 * python/lib/gdb/prompt.py (_ExtendedPrompt)
5093 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
5094 operator for comparison.
5096 2019-05-04 Tom Tromey <tom@tromey.com>
5098 * psymtab.c (psymbol_name_matches, match_partial_symbol)
5099 (lookup_partial_symbol, print_partial_symbols)
5100 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
5101 (psymbol_compare): Update.
5102 (add_psymbol_to_bcache): Clear the entire psymbol.
5103 (maintenance_check_psymtabs): Update.
5104 * psympriv.h (struct partial_symbol): Don't derive from
5105 general_symbol_info.
5106 <obj_section, unrelocated_address, address,
5107 set_unrelocated_address>: Update.
5108 <ginfo>: New member.
5109 * dwarf-index-write.c (write_psymbols, debug_names::insert)
5110 (debug_names::write_psymbols): Update.
5112 2019-05-04 Tom de Vries <tdevries@suse.de>
5114 * contrib/cc-with-tweaks.sh: Support -n arg.
5116 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5118 * corelow.c (core_target::detach): Ensure frame cache and
5119 register caches are cleared.
5120 inferior.c (exit_inferior_1): Likewise.
5122 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
5123 Tom Tromey <tom@tromey.com>
5125 * dictionary.c (collate_pending_symbols_by_language): Remove
5126 "struct" from foreach.
5127 * symtab.c (lookup_global_symbol_from_objfile)
5128 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
5130 * ser-tcp.c (net_open): Remove "struct" from foreach.
5131 * objfiles.c (objfile_relocate, objfile_rebase)
5132 (objfile_has_symbols): Remove "struct" from foreach.
5133 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
5135 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
5137 * darwin-nat.c (thread_info_from_private_thread_info): Remove
5138 "struct" from foreach.
5139 * ada-lang.c (create_excep_cond_exprs)
5140 (ada_exception_catchpoint_cond_string): Remove "struct" from
5143 2019-05-03 Tom Tromey <tromey@adacore.com>
5145 * ada-exp.y (convert_char_literal): Check suffix of each
5148 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
5151 * ada-exp.y (yywrap): Don't define.
5152 * ada-lex.l (%option): Add noyywrap
5155 2019-05-03 Eli Zaretskii <eliz@gnu.org>
5157 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
5158 _WIN32_WINNT to the XP level, unless already defined to a higher
5161 * unittests/parse-connection-spec-selftests.c:
5163 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
5166 * symfile.c (find_separate_debug_file): Remove colon from the
5167 drive spec of DOS/Windows file names of the target, so that the
5168 file name produced from DEBUGDIR and the target's directory will
5169 be valid on DOS/Windows systems.
5171 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
5173 * rust-lang.c (val_print_struct): Handle printing structures
5176 2019-05-02 Tom Tromey <tromey@adacore.com>
5178 * valarith.c (_initialize_valarith): Remove.
5180 2019-05-01 Tom Tromey <tromey@adacore.com>
5182 * ada-lang.c (ada_value_primitive_field): Treat more fields as
5185 2019-05-01 Tom Tromey <tromey@adacore.com>
5187 * ada-lang.c (ada_value_assign): Correctly compute starting offset
5188 for big-endian copies.
5190 2019-04-30 Ali Tamur <tamur@google.com>
5191 * gdb/dwarf2read.c (read_3_bytes): New declaration.
5192 (read_attribute_value): Added DW_FORM_strx1-4 cases.
5193 (read_3_bytes): New function.
5195 2019-04-30 Joel Brobecker <brobecker@adacore.com>
5197 * windows-nat.c (main_thread_id): Delete.
5198 (handle_output_debug_string): Replace main_thread_id by
5199 current_event.dwThreadId.
5200 (fake_create_process): Likewise.
5201 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
5202 Do not set main_thread_id.
5203 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
5204 current_event.dwThreadId.
5205 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
5207 2019-04-30 Joel Brobecker <brobecker@adacore.com>
5209 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
5210 Use current_event.dwThreadId instead of main_thread_id.
5212 2019-04-30 Tom Tromey <tromey@adacore.com>
5214 * ada-lang.c (ada_lookup_simple_minsyms): New function.
5215 (create_excep_cond_exprs): Iterate over program spaces.
5216 (ada_exception_catchpoint_cond_string): Examine all minimal
5217 symbols for exception types.
5219 2019-04-30 Tom Tromey <tromey@adacore.com>
5222 * dwarf2read.c (process_structure_scope): Handle case where type
5223 has template parameters but no symbol was created.
5225 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5226 Chris January <chris.january@arm.com>
5228 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
5230 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
5232 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5234 * f-typeprint.c (f_print_type): Update rules for printing
5236 (f_type_print_varspec_suffix): Likewise.
5238 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5239 Chris January <chris.january@arm.com>
5241 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
5244 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5246 * f-lang.c (build_fortran_types): Change name of void type to
5248 * f-typeprint.c (f_type_print_base): Print the name of the void
5249 type, rather than a fixed string.
5250 * f-valprint.c (f_decorations): Use lower case void string.
5252 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5253 Chris January <chris.january@arm.com>
5255 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
5258 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5259 Chris January <chris.january@arm.com>
5260 David Lecomber <david.lecomber@arm.com>
5262 * f-exp.y (BINOP_INTRINSIC): New token.
5263 (exp): New parser rule handling BINOP_INTRINSIC.
5264 (f77_keywords): Add new builtin procedures.
5265 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
5266 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5267 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
5268 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5269 (print_unop_subexp_f): New function.
5270 (print_binop_subexp_f): New function.
5271 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
5272 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5273 (dump_subexp_body_f): Likewise.
5274 (operator_check_f): Likewise.
5275 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
5276 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
5278 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5280 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
5282 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
5283 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
5284 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
5285 (operator_length_f): New fuction.
5286 (print_subexp_f): New function.
5287 (op_name_f): New function.
5288 (dump_subexp_body_f): New function.
5289 (operator_check_f): New function.
5290 (exp_descriptor_f): Replace standard expression handling functions
5292 * gdb/fortran-operator.def: New file.
5293 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
5294 * gdb/std-operator.def: Remove UNOP_KIND.
5296 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5298 * std-operator.def: Remove unbalanced, stray double quote
5301 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5302 Chris January <chris.january@arm.com>
5303 Daniel Everett <daniel.everett@arm.com>
5304 Nick Forrington <nick.forrington@arm.com>
5305 Richard Bunt <richard.bunt@arm.com>
5307 * cp-valprint.c (cp_print_value_fields): Allow an additional level
5308 of depth when printing anonymous structs or unions.
5309 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
5310 Don't print either the top-level value, or the children if the
5311 max-depth is exceeded.
5312 (ppscm_print_children): When printing the key of a map, allow one
5313 extra level of depth.
5314 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
5315 print either the top-level value, or the children if the max-depth
5317 (print_children): When printing the key of a map, allow one extra
5319 * python/py-value.c (valpy_format_string): Add max_depth keyword.
5320 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
5321 (user_print_options): Initialise max_depth field.
5322 (val_print_scalar_or_string_type_p): New function.
5323 (val_print): Check to see if the max depth has been reached.
5324 (val_print_check_max_depth): Define new function.
5325 (show_print_max_depth): New function.
5326 (_initialize_valprint): Add 'print max-depth' option.
5327 * valprint.h (struct value_print_options) <max_depth>: New field.
5328 (val_print_check_max_depth): Declare new function.
5329 * NEWS: Document new feature.
5331 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5333 * ada-lang.c (ada_language_defn): Initialise new field.
5334 * c-lang.c (c_is_string_type_p): New function.
5335 (c_language_defn): Initialise new field.
5336 (cplus_language_defn): Initialise new field.
5337 (asm_language_defn): Initialise new field.
5338 (minimal_language_defn): Initialise new field.
5339 * c-lang.h (c_is_string_type_p): Declare new function.
5340 * d-lang.c (d_language_defn): Initialise new field.
5341 * f-lang.c (f_is_string_type_p): New function.
5342 (f_language_defn): Initialise new field.
5343 * go-lang.c (go_is_string_type_p): New function.
5344 (go_language_defn): Initialise new field.
5345 * language.c (default_is_string_type_p): New function.
5346 (unknown_language_defn): Initialise new field.
5347 (auto_language_defn): Initialise new field.
5348 * language.h (struct language_defn) <la_is_string_type_p>: New
5350 (default_is_string_type_p): Declare new function.
5351 * m2-lang.c (m2_language_defn): Initialise new field.
5352 * objc-lang.c (objc_language_defn): Initialise new field.
5353 * opencl-lang.c (opencl_language_defn): Initialise new field.
5354 * p-lang.c (pascal_is_string_type_p): New function.
5355 (pascal_language_defn): Initialise new field.
5356 * rust-lang.c (rust_is_string_type_p): New function.
5357 (rust_language_defn): Initialise new field.
5359 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5361 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
5363 * ada-lang.c (ada_language_defn): Initialise new field.
5364 * c-lang.c (c_language_defn): Likewise.
5365 (cplus_language_defn): Likewise.
5366 (asm_language_defn): Likewise.
5367 (minimal_language_defn): Likewise.
5368 * d-lang.c (d_language_defn): Likewise.
5369 * f-lang.c (f_language_defn): Likewise.
5370 * go-lang.c (go_language_defn): Likewise.
5371 * language.c (unknown_language_defn): Likewise.
5372 (auto_language_defn): Likewise.
5373 * m2-lang.c (m2_language_defn): Likewise.
5374 * objc-lang.c (objc_language_defn): Likewise.
5375 * opencl-lang.c (opencl_language_defn): Likewise.
5376 * p-lang.c (pascal_language_defn): Likewise.
5377 * rust-lang.c (rust_language_defn): Likewise.
5379 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5381 * ada-lang.c (ada_is_character_type): Change return type to bool.
5382 (ada_is_string_type): Likewise.
5383 * ada-lang.h (ada_is_character_type): Update declaration
5384 (ada_is_string_type): Likewise.
5386 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5388 Support style in 'frame|thread apply'
5390 * gdbcmd.h (execute_command_to_string): New term_out parameter.
5391 * record.c (record_start, record_stop): Update callers of
5392 execute_command_to_string with false.
5393 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
5394 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
5396 (class string_file): New constructor with term_out parameter.
5397 Override methods term_out and can_emit_style_escape. New member
5399 (class stdio_file): Override can_emit_style_escape.
5400 (class tee_file): Override term_out and can_emit_style_escape.
5401 * utils.h (can_emit_style_escape): Remove.
5402 * utils.c (can_emit_style_escape): Likewise.
5403 Update all callers of can_emit_style_escape (SOMESTREAM) to
5404 SOMESTREAM->can_emit_style_escape.
5405 * source-cache.c (source_cache::get_source_lines): Likewise.
5406 * stack.c (frame_apply_command_count): Call execute_command_to_string
5407 passing the term_out characteristic of the current gdb_stdout.
5408 * thread.c (thr_try_catch_cmd): Likewise.
5409 * top.c (execute_command_to_string): pass term_out parameter
5410 to construct the string_file for the command output.
5411 * ui-file.c (term_cli_styling): New function (most code moved
5412 from utils.c can_emit_style_escape).
5413 (string_file::string_file, string_file::can_emit_style_escape,
5414 stdio_file::can_emit_style_escape, tee_file::term_out,
5415 tee_file::can_emit_style_escape): New functions.
5417 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5419 * NEWS: Mention the new set|show may-call-functions.
5420 * infcall.c (may_call_functions_p): New variable.
5421 (show_may_call_functions_p): New function.
5422 (call_function_by_hand_dummy): Throws an error if not
5424 (_initialize_infcall): Call add_setshow_boolean_cmd for
5427 2019-04-25 Keith Seitz <keiths@redhat.com>
5430 * cp-support.c (inspect_type): Don't attempt substitutions
5431 of symbol with the same name.
5433 2019-04-25 Tom Tromey <tromey@adacore.com>
5436 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
5439 2019-04-25 Tom Tromey <tromey@adacore.com>
5441 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
5443 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
5444 (gdb_xml_parser::parse): Use std::move.
5445 * python/python-internal.h (gdbpy_convert_exception): Take a const
5447 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
5449 * python/py-utils.c (gdbpy_convert_exception): Take a const
5451 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
5453 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
5455 * mi/mi-main.c (mi_print_exception): Take a const reference.
5456 * main.c (handle_command_errors): Take a const reference.
5457 * linespec.c (parse_linespec): Use std::move.
5458 * infcall.c (run_inferior_call): Use std::move.
5459 (call_function_by_hand_dummy): Use std::move.
5460 * exec.c (try_open_exec_file): Use std::move.
5461 * exceptions.h (exception_print, exception_fprintf)
5462 (exception_print_same): Update.
5463 * exceptions.c (print_exception, exception_print)
5464 (exception_fprintf, exception_print_same): Change parameters to
5466 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
5467 * common/new-op.c: Use std::move.
5468 * common/common-exceptions.h (struct gdb_exception): Add move
5470 (struct gdb_exception_error, struct gdb_exception_quit, struct
5471 gdb_quit_bad_alloc): Change constructor to move constructor.
5472 (throw_exception): Change parameter to rvalue reference.
5473 * common/common-exceptions.c (throw_exception): Take rvalue
5475 * cli/cli-interp.c (safe_execute_command): Use std::move.
5476 * breakpoint.c (insert_bp_location, location_to_sals): Use
5479 2019-04-25 Tom Tromey <tromey@adacore.com>
5481 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
5482 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
5483 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
5484 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
5485 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
5486 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
5487 guile/scm-value.c: Use unpack.
5488 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
5489 gdbscm_gdb_exception.
5490 (gdbscm_throw_gdb_exception): Likewise.
5491 (struct gdbscm_gdb_exception): New.
5492 (unpack): New function.
5493 (gdbscm_wrap): Use unpack.
5495 2019-04-25 Tom Tromey <tromey@adacore.com>
5497 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
5498 (gdb_rl_callback_handler): Use std::move.
5499 * common/common-exceptions.h (struct gdb_exception): Add move
5500 assignment operator.
5501 (throw_exception_sjlj): Change "exception" to const reference.
5502 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
5503 (throw_exception_sjlj): Change "exception" to const reference.
5505 2019-04-25 Tom Tromey <tromey@adacore.com>
5507 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
5508 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
5509 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
5511 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
5513 * mi/mi-interp.c (mi_interp::exec): Update.
5514 * linespec.c (parse_linespec): Update.
5515 * infcall.c (run_inferior_call): Update.
5516 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
5517 * guile/scm-symbol.c (gdbscm_lookup_symbol)
5518 (gdbscm_lookup_global_symbol): Update.
5519 * guile/scm-param.c (gdbscm_parameter_value): Update.
5520 * guile/scm-frame.c (gdbscm_frame_read_register)
5521 (gdbscm_frame_read_var): Update.
5522 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
5523 * exec.c (try_open_exec_file): Update.
5524 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
5525 (gdb_rl_callback_handler): Update.
5526 * common/common-exceptions.h (exception_none): Don't declare.
5527 * common/common-exceptions.c (exception_none): Don't define.
5528 (struct catcher) <exception>: Update.
5529 * cli/cli-interp.c (safe_execute_command): Update.
5530 * breakpoint.c (insert_bp_location, location_to_sals): Update.
5532 2019-04-25 Ali Tamur <tamur@google.com>
5534 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
5535 (read_attribute_value): Likewise.
5536 (dwarf2_read_addr_index): Update comment.
5537 (read_str_index): Add DW_FORM_strx.
5538 (dwarf2_string_attr): Likewise.
5539 (dwarf2_const_value_attr): Likewise.
5540 (dump_die_shallow): Likewise.
5541 (dwarf2_fetch_constant_bytes): Likewise.
5542 (skip_form_bytes): Likewise.
5543 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
5545 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
5549 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
5550 OFFSET. Verify if current mapping contains an ELF header.
5551 (linux_find_memory_regions_full): Adjust call to
5554 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
5555 Kang Li <kanglictf@gmail.com>
5559 * dwarf2-frame.c (read_initial_length): Be consistent about using
5560 unsigned representation of length.
5561 (decode_frame_entry_1): Likewise. Check for wraparound of
5562 end pointer as well as buffer overflow.
5564 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
5566 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
5569 2019-04-24 Tom Tromey <tromey@adacore.com>
5571 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
5573 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5575 * s12z-tdep.c (s12z_unwind_pc): Delete.
5576 (s12z_unwind_sp): Delete.
5577 (s12z_gdbarch_init): Don't register deleted functions with
5580 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5582 * rl78-tdep.c (rl78_unwind_sp): Delete.
5583 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
5585 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5587 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
5588 (xstormy16_unwind_pc): Delete.
5589 (xstormy16_dummy_id): Delete.
5590 (xstormy16_gdbarch_init): Don't register deleted functions with
5593 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5595 * vax-tdep.c (vax_unwind_pc): Delete.
5596 (vax_gdbarch_init): Don't register deleted function with gdbarch.
5598 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5600 * v850-tdep.c (v850_unwind_sp): Delete.
5601 (v850_unwind_pc): Delete.
5602 (v850_dummy_id): Delete.
5603 (v850_gdbarch_init): Don't register deleted functions with
5606 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5608 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
5609 (tilegx_unwind_pc): Delete.
5610 (tilegx_unwind_dummy_id): Delete.
5611 (tilegx_gdbarch_init): Don't register deleted functions with
5614 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5616 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
5617 (tic6x_dummy_id): Delete.
5618 (tic6x_gdbarch_init): Don't register deleted functions with
5621 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5623 * sparc-tdep.c (sparc_unwind_pc): Delete.
5624 (sparc32_gdbarch_init): Don't register deleted function with
5627 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5629 * sh-tdep.c (sh_unwind_sp): Delete.
5630 (sh_unwind_pc): Delete.
5631 (sh_dummy_id): Delete.
5632 (sh_gdbarch_init): Don't register deleted functions with
5635 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5637 * score-tdep.c (score_unwind_sp): Delete.
5638 (score_unwind_pc): Delete.
5639 (score_dummy_id): Delete.
5640 (score_gdbarch_init): Don't register deleted functions with
5643 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5645 * rx-tdep.c (rx_unwind_pc): Delete.
5646 (rx_unwind_sp): Delete.
5647 (rx_dummy_id): Delete.
5648 (rx_gdbarch_init): Don't register deleted functions with
5649 gdbarch. Update comment.
5651 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5653 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
5654 (rs6000_dummy_id): Delete.
5655 (rs6000_gdbarch_init): Don't register deleted functions with
5658 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5660 * or1k-tdep.c (or1k_dummy_id): Delete.
5661 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
5663 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5665 * nios2-tdep.c (nios2_dummy_id): Delete.
5666 (nios2_unwind_sp): Delete.
5667 (nios2_gdbarch_init): Don't register deleted functions with
5670 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5672 * nds32-tdep.c (nds32_dummy_id): Delete.
5673 (nds32_unwind_pc): Delete.
5674 (nds32_unwind_sp): Delete.
5675 (nds32_gdbarch_init): Don't register deleted functions with
5678 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5680 * msp430-tdep.c (msp430_unwind_pc): Delete.
5681 (msp430_unwind_sp): Delete.
5682 (msp430_dummy_id): Delete.
5683 (msp430_gdbarch_init): Don't register deleted functions with
5686 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5688 * moxie-tdep.c (moxie_unwind_sp): Delete.
5689 (moxie_unwind_pc): Delete.
5690 (moxie_dummy_id): Delete.
5691 (moxie_gdbarch_init): Don't register deleted functions with
5694 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5696 * mn10300-tdep.c (mn10300_dummy_id): Delete.
5697 (mn10300_unwind_pc): Delete.
5698 (mn10300_unwind_sp): Delete.
5699 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
5701 (mn10300_frame_unwind_init): Don't register deleted functions with
5704 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5706 * mep-tdep.c (mep_unwind_pc): Delete.
5707 (mep_unwind_sp): Delete.
5708 (mep_dummy_id): Delete.
5709 (mep_gdbarch_init): Don't register deleted functions with
5712 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5714 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
5715 (m68hc11_unwind_sp): Delete.
5716 (m68hc11_gdbarch_init): Don't register deleted functions with
5719 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5721 * m32r-tdep.c (m32r_unwind_sp): Delete.
5722 (m32r_unwind_pc): Delete.
5723 (m32r_dummy_id): Delete.
5724 (m32r_gdbarch_init): Don't register deleted functions with
5727 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5729 * m32c-tdep.c (m32c_unwind_pc): Delete.
5730 (m32c_unwind_sp): Delete.
5731 (m32c_dummy_id): Delete.
5732 (m32c_gdbarch_init): Don't register deleted functions with
5735 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5737 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
5738 (lm32_unwind_pc): Delete.
5739 (lm32_dummy_id): Delete.
5740 (lm32_gdbarch_init): Don't register deleted functions with
5743 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5745 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
5746 (iq2000_unwind_pc): Delete.
5747 (iq2000_dummy_id): Delete.
5748 (iq2000_gdbarch_init): Don't register deleted functions with
5751 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5753 * nds32-tdep.c (nds32_type_align): Delete.
5754 (nds32_push_dummy_call): Use type_align instead.
5756 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5758 * arm-tdep.c (arm_type_align): Only handle vector override case.
5759 (arm_push_dummy_call): Use type_align.
5760 (arm_gdbarch_init): Register arm_type_align gdbarch function.
5762 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5764 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
5766 (pass_on_stack): Use type_align.
5767 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
5770 2019-04-23 Tom Tromey <tromey@adacore.com>
5772 * dwarf2read.c (line_header::file_name_at): Remove unused
5775 2019-04-23 Tom de Vries <tdevries@suse.de>
5778 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
5782 2019-03-27 Ali Tamur <tamur@google.com>
5784 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
5785 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
5786 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
5787 (dwarf_expr_context::get_addr_index): Likewise
5788 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
5789 (symbol_needs_eval_context::get_addr_index): Likewise
5790 (disassemble_dwarf_expression): Add DW_OP_addrx
5791 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
5792 (read_cutu_die_from_dwo): Update comment
5793 (skip_one_die): Add DW_FORM_addrx
5794 (read_attribute_value): Likewise
5795 (var_decode_location): Add DW_OP_addrx
5796 (dwarf2_const_value_attr): Add DW_FORM_addrx
5797 (dump_die_shallow): Likewise
5798 (dwarf2_fetch_constant_bytes): Likewise
5799 (decode_locdesc): Add DW_OP_addrx
5800 (skip_form_bytes): Add DW_FORM_addrx
5802 2019-04-22 Ali Tamur <tamur@google.com>
5804 * MAINTAINERS (Write After Approval): Add self.
5806 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
5808 * solib-svr4.c (get_svr4_info): Add pspace parameter.
5809 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
5810 (open_symbol_file_object): Likewise.
5811 (svr4_default_sos): Add info parameter.
5812 (svr4_read_so_list): Likewise.
5813 (svr4_current_sos_direct): Adjust functions calls to pass down
5815 (svr4_current_sos_1): Add info parameter.
5816 (svr4_current_sos): Call get_svr4_info, pass info down to
5818 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
5820 (svr4_in_dynsym_resolve_code): Pass current_program_space to
5822 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
5824 (probes_table_remove_objfile_probes): Likewise.
5825 (register_solib_event_probe): Add info parameter.
5826 (solist_update_incremental): Pass info parameter down to
5828 (disable_probes_interface): Add info parameter.
5829 (svr4_handle_solib_event): Pass current_program_space to
5830 get_svr4_info. Adjust disable_probes_interface cleanup.
5831 (svr4_create_probe_breakpoints): Add info parameter, pass it
5832 down to register_solib_event_probe.
5833 (svr4_create_solib_event_breakpoints): Add info parameter,
5834 pass it down to svr4_create_probe_breakpoints.
5835 (enable_break): Pass info down to
5836 svr4_create_solib_event_breakpoints.
5837 (svr4_solib_create_inferior_hook): Pass current_program_space to
5839 (svr4_clear_solib): Likewise.
5841 2019-04-22 Pedro Alves <palves@redhat.com>
5843 * solib-svr4.c (svr4_free_objfile_observer): New.
5844 (probe_and_action::objfile): New field.
5845 (probes_table_htab_remove_objfile_probes)
5846 (probes_table_remove_objfile_probes): New functions.
5847 (register_solib_event_probe): Add 'objfile' parameter. Store it
5848 in the new probe_and_action. Don't store the probe in 'lookup'.
5849 (svr4_create_probe_breakpoints): Pass objfile to
5850 register_solib_event_probe.
5851 (_initialize_svr4_solib): Register a free_objfile observer.
5853 2019-04-19 Tom Tromey <tom@tromey.com>
5855 * common/queue.h: Remove.
5857 2019-04-19 Tom Tromey <tom@tromey.com>
5859 * event-loop.c: Don't include "common/queue.h".
5861 2019-04-19 Tom Tromey <tom@tromey.com>
5863 * remote.c (remote_target): Use delete.
5864 * remote-notif.h: Include <list>, not "common/queue.h".
5865 (notif_client_p): Remove typedef.
5866 (remote_notif_state): Add constructor, destructor, initializer.
5867 <notif_queue>: Now a std::list.
5868 (remote_notif_state_xfree): Don't declare.
5869 * remote-notif.c (remote_notif_process, handle_notification)
5870 (remote_notif_state_allocate): Update.
5871 (~remote_notif_state): Rename from remote_notif_state_xfree.
5873 2019-04-19 Tom Tromey <tom@tromey.com>
5875 * symfile.c (reread_symbols): Update.
5876 * objfiles.c (objfile_register_static_link)
5877 (objfile_lookup_static_link): Update
5878 (~objfile) Don't delete static_links.
5879 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
5881 2019-04-19 Tom Tromey <tom@tromey.com>
5883 * type-stack.h (struct type_stack) <insert>: Constify string.
5884 * type-stack.c (type_stack::insert): Constify string.
5885 * gdbtypes.h (lookup_template_type): Update.
5886 (address_space_name_to_int): Update.
5887 * gdbtypes.c (address_space_name_to_int): Make space_identifier
5889 (lookup_template_type): Make name const.
5890 * c-exp.y: Update rules.
5891 (lex_one_token, classify_name, classify_inner_name)
5892 (c_print_token): Update.
5893 * p-exp.y: Update rules.
5895 * f-exp.y: Update rules.
5897 * d-exp.y: Update rules.
5898 (lex_one_token, classify_name, classify_inner_name): Update.
5899 * parse.c (write_dollar_variable, copy_name): Return std::string.
5900 * parser-defs.h (copy_name): Change return type.
5901 * m2-exp.y: Update rules.
5903 * go-exp.y (lex_one_token): Update.
5905 (classify_unsafe_function, classify_packaged_name)
5906 (classify_name, yylex): Update.
5908 2019-04-19 Sergei Trofimovich <siarheit@google.com>
5910 * configure.ac: add --enable-source-highlight switch.
5911 * configure: Regenerate.
5912 * top.c (print_gdb_version): plumb --enable-source-highlight
5913 status to "show configuration".
5915 2019-04-19 Tom Tromey <tromey@adacore.com>
5917 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
5919 (empty_record, ada_template_to_fixed_record_type_1)
5920 (template_to_static_fixed_type)
5921 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
5922 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
5923 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
5926 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
5929 * source.c (print_source_lines_base): Advance "iter" when a
5930 control character is seen.
5932 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5934 * inferior.h (struct infcall_suspend_state_deleter):
5935 Catch exception in destructor to avoid crash.
5937 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5939 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
5940 close to the add_com "shell".
5942 2019-04-18 Tom Tromey <tromey@adacore.com>
5944 * process-stratum-target.h (class process_stratum_target)
5945 <stratum>: Add "final".
5947 2019-04-17 Tom Tromey <tromey@adacore.com>
5949 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
5950 against nullptr before use.
5952 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5954 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
5956 2019-04-17 Jim Wilson <jimw@sifive.com>
5957 Andrew Burgess <andrew.burgess@embecosm.com>
5959 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
5960 code read might fail, assume 4-byte breakpoint in that case.
5962 2019-04-15 Leszek Swirski <leszeks@google.com>
5964 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
5965 rather than a hand-rolled POD check when checking for forced MEMORY
5968 2019-04-15 Alan Hayward <alan.hayward@arm.com>
5970 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
5971 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
5973 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
5974 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
5975 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
5978 2019-04-15 Alan Hayward <alan.hayward@arm.com>
5980 * aarch64-linux-nat.c
5981 (aarch64_linux_nat_target::thread_architecture): Add override.
5982 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
5985 2019-04-15 Alan Hayward <alan.hayward@arm.com>
5987 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
5989 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
5991 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
5992 target types of size 96-bits, add some additional comments, and
5993 check that the builtin type we found was the correct size.
5995 2019-04-12 Eli Zaretskii <eliz@gnu.org>
5997 * utils.c (prompt_for_continue): Don't restore the styling at the
5998 end, as applied_style has the wrong value. This fixes styling in
5999 long lists of file names that are interrupted by the "Continue?"
6002 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
6004 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
6005 * c-lang.c (c_language_defn): Likewise.
6006 (cplus_language_defn): Likewise.
6007 (asm_language_defn): Likewise.
6008 (minimal_language_defn): Likewise.
6009 * d-lang.c (d_language_defn): Likewise.
6010 * f-lang.c (f_language_defn): Likewise.
6011 * go-lang.c (go_language_defn): Likewise.
6012 * language.c (unknown_language_defn): Likewise.
6013 (auto_language_defn): Likewise.
6014 * language.h (struct language_defn): Remove la_magic field.
6015 (LANG_MAGIC): Delete.
6016 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
6017 * objc-lang.c (objc_language_defn): Likewise.
6018 * opencl-lang.c (opencl_language_defn): Likewise.
6019 * p-lang.c (pascal_language_defn): Likewise.
6020 * rust-lang.c (rust_language_defn): Likewise.
6022 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
6024 * riscv-tdep.c (riscv_type_align): New function.
6025 (riscv_type_alignment): Delete.
6026 (riscv_arg_location): Use 'type_align'.
6027 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
6029 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
6031 * gdbtypes.c (type_align): A struct with no non-static fields also
6034 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
6036 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
6038 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
6040 (riscv_struct_info::analyse): New implementation using new
6041 analyse_inner member function.
6042 (riscv_struct_info::field_offset): New member function.
6043 (riscv_struct_info::m_offsets): New member variable.
6044 (riscv_struct_info::analyse_inner): New private member function,
6045 takes the old implementation of riscv_struct_info::analyse but
6046 extended to track field offsets.
6047 (riscv_call_arg_struct): Update the struct folding special cases
6048 to handle cases where empty C++ structs, which are non-zero
6050 (riscv_arg_location): Initialise the length of each location, a
6051 non-zero length now indicates the location is in use.
6052 (riscv_push_dummy_call): Allow for the first location having a
6053 non-zero offset when setting up arguments.
6054 (riscv_return_value): Likewise, but for return values.
6056 2019-04-11 Tom Tromey <tromey@adacore.com>
6058 * utils.c (internal_vproblem): Make "msg" const.
6060 2019-04-11 Alan Hayward <alan.hayward@arm.com>
6062 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
6063 * trad-frame.c (trad_frame_reset_saved_regs): New function.
6064 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
6065 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
6067 2019-04-10 Kevin Buettner <kevinb@redhat.com>
6069 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
6071 (fill_gregset): Call amd64_linux_collect_native_gregset instead
6072 of amd64_collect_native_gregset.
6073 (amd64_linux_nat_target::store_registers): Likewise.
6075 2019-04-10 Tom Tromey <tom@tromey.com>
6077 * symtab.c (lookup_global_symbol_from_objfile)
6078 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
6079 * objfiles.h (class separate_debug_iterator): New.
6080 (class separate_debug_range): New.
6081 (struct objfile) <separate_debug_objfiles>: New method.
6082 (objfile_separate_debug_iterate): Don't declare.
6083 * objfiles.c (separate_debug_iterator::operator++): Rename from
6084 objfile_separate_debug_iterate.
6085 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
6087 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
6090 2019-04-10 Tom Tromey <tom@tromey.com>
6092 * symfile.c (reread_symbols): Remove old comment.
6093 * objfiles.c (free_all_objfiles): Fix a typo.
6095 2019-04-10 Tom Tromey <tom@tromey.com>
6097 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
6098 * minsyms.c (lookup_minimal_symbol): Use foreach.
6099 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6100 (lookup_minimal_symbol_solib_trampoline): Likewise.
6101 * symfile.c (reread_symbols): Use foreach.
6103 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
6104 Tom Tromey <tromey@adacore.com>
6107 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
6108 (rust_lex_int_test): Change "value" to be LONGEST.
6109 (rust_lex_tests): Add test for long integer literal.
6111 2019-04-09 Tom Tromey <tromey@adacore.com>
6113 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
6115 (extended_remote_target::attach): Update.
6116 (remote_target::remote_notice_new_inferior): Update.
6117 (remote_target::add_current_inferior_and_thread): Update.
6118 * inferior.c (exit_inferior_1): Use "false".
6119 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
6121 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
6123 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
6124 the "start" command.
6126 2019-04-08 Kevin Buettner <kevinb@redhat.com>
6128 * python/py-inferior.c (infpy_thread_from_thread_handle):
6129 Adjust comments to reflect renaming of thread_from_thread_handle
6130 to thread_from_handle. Adjust keywords. Fix type error message.
6131 (inferior_object_methods): Add thread_from_handle. Retain
6132 thread_from_thread_handle, but mark it as deprecated.
6134 2019-04-08 Kevin Buettner <kevinb@redhat.com>
6136 * gdbthread.h (find_thread_by_handle): Revise declaration.
6137 * thread.c (find_thread_by_handle): Likewise. Adjust
6139 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
6140 support for buffer objects as handles.
6142 2019-04-08 Kevin Buettner <kevinb@redhat.com>
6144 * python/py-infthread.c (thpy_thread_handle): New function.
6145 (thread_object_methods): Register thpy_thread_handle.
6147 2019-04-08 Kevin Buettner <kevinb@redhat.com>
6149 * gdbthread.h (thread_to_thread_handle): Declare.
6150 * thread.c (gdbtypes.h): Include.
6151 (thread_to_thread_handle): New function.
6153 * target.h (struct target_ops): Add thread_info_to_thread_handle.
6154 (target_thread_info_to_thread_handle): Declare.
6155 * target.c (target_thread_info_to_thread_handle): New function.
6156 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
6157 * target-delegates.c: Regenerate.
6159 * linux-thread-db.c (class thread_db_target): Add method
6160 thread_info_to_thread_handle.
6161 (thread_db_target::thread_info_to_thread_handle): Define.
6162 * remote.c (class remote_target): Add new method
6163 thread_info_to_thread_handle.
6164 (remote_target::thread_info_to_thread_handle): Define.
6166 2019-04-08 Pedro Alves <palves@redhat.com>
6168 * common/common-exceptions.c (throw_exception): Don't create
6169 named object to throw; throw directly.
6170 (throw_it): Likewise. Don't initialize gdb_exception::message
6171 here, with new; pass FMT and AP to the ctor instead.
6172 * common/common-exceptions.h: Include <string>.
6173 (gdb_exception::gdb_exception(enum return_reason, enum errors,
6174 const char *, va_list)): New ctor. Use std::make_shared.
6175 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
6177 (gdb_exception_error::gdb_exception_error(enum errors, const char
6179 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
6181 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
6183 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
6184 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
6187 2019-04-08 Tom Tromey <tom@tromey.com>
6189 * valops.c (value_rtti_indirect_type): Replace throw_exception
6191 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
6193 * thread.c (thr_try_catch_cmd): Replace throw_exception with
6195 * target.c (target_translate_tls_address): Replace throw_exception
6197 * stack.c (frame_apply_command_count): Replace throw_exception
6199 * solib-spu.c (append_ocl_sos): Replace throw_exception with
6201 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
6203 * rs6000-tdep.c (rs6000_frame_cache)
6204 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
6205 * remote.c: Replace throw_exception with throw.
6206 * record-full.c (record_full_message, record_full_wait_1)
6207 (record_full_restore): Replace throw_exception with throw.
6209 (get_thread_current_frame_id, record_btrace_start_replaying)
6210 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
6211 (cmd_record_btrace_start): Replace throw_exception with throw.
6212 * parse.c (parse_exp_in_context_1): Replace throw_exception with
6214 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
6215 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
6217 (find_linespec_symbols): Replace throw_exception with throw.
6218 * infrun.c (displaced_step_prepare, resume): Replace
6219 throw_exception with throw.
6220 * infcmd.c (post_create_inferior): Replace throw_exception with
6222 * inf-loop.c (inferior_event_handler): Replace throw_exception
6224 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
6225 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
6226 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
6227 (get_prev_frame_always, get_frame_pc_if_available)
6228 (get_frame_address_in_block_if_available, get_frame_language):
6229 Replace throw_exception with throw.
6230 * frame-unwind.c (frame_unwind_try_unwinder): Replace
6231 throw_exception with throw.
6232 * eval.c (fetch_subexp_value, evaluate_var_value)
6233 (evaluate_funcall, evaluate_subexp_standard): Replace
6234 throw_exception with throw.
6235 * dwarf2loc.c (call_site_find_chain)
6236 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
6237 Replace throw_exception with throw.
6238 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
6240 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
6242 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
6243 * completer.c (complete_line_internal): Replace throw_exception
6245 * compile/compile-object-run.c (compile_object_run): Replace
6246 throw_exception with throw.
6247 * cli/cli-script.c (process_next_line): Replace throw_exception
6249 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
6250 (btrace_enable, btrace_maint_update_pt_packets): Replace
6251 throw_exception with throw.
6252 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
6253 throw_exception with throw.
6254 * break-catch-throw.c (re_set_exception_catchpoint): Replace
6255 throw_exception with throw.
6256 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
6257 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
6258 * aarch64-tdep.c (aarch64_make_prologue_cache)
6259 (aarch64_make_stub_cache): Replace throw_exception with throw.
6261 2019-04-08 Tom Tromey <tom@tromey.com>
6263 * common/common-exceptions.c (throw_exception): Rename from
6264 throw_exception_cxx. Remove old copy. Make argument const.
6265 (throw_it): Create and throw exception objects directly.
6266 * common/common-exceptions.h (throw_exception): Make argument
6268 (struct gdb_exception_error): Add constructor.
6269 (struct gdb_exception_quit): Add constructor.
6271 2019-04-08 Tom Tromey <tom@tromey.com>
6273 * common/common-exceptions.h (exception_rethrow): Don't declare.
6274 (TRY_SJLJ): Update comment.
6275 (TRY, CATCH, END_CATCH): Remove.
6276 * common/common-exceptions.c (exception_rethrow): Remove.
6278 2019-04-08 Tom Tromey <tom@tromey.com>
6280 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
6282 (gdb_exception_error): Rename from
6283 gdb_exception_RETURN_MASK_ERROR.
6284 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
6285 (gdb_quit_bad_alloc): Update.
6286 * aarch64-tdep.c: Update.
6287 * ada-lang.c: Update.
6288 * ada-typeprint.c: Update.
6289 * ada-valprint.c: Update.
6290 * amd64-tdep.c: Update.
6291 * arch-utils.c: Update.
6292 * break-catch-throw.c: Update.
6293 * breakpoint.c: Update.
6295 * c-varobj.c: Update.
6296 * cli/cli-cmds.c: Update.
6297 * cli/cli-interp.c: Update.
6298 * cli/cli-script.c: Update.
6299 * common/common-exceptions.c: Update.
6300 * common/new-op.c: Update.
6301 * common/selftest.c: Update.
6302 * compile/compile-c-symbols.c: Update.
6303 * compile/compile-cplus-symbols.c: Update.
6304 * compile/compile-object-load.c: Update.
6305 * compile/compile-object-run.c: Update.
6306 * completer.c: Update.
6307 * corelow.c: Update.
6309 * cp-support.c: Update.
6310 * cp-valprint.c: Update.
6311 * darwin-nat.c: Update.
6312 * disasm-selftests.c: Update.
6313 * dtrace-probe.c: Update.
6314 * dwarf-index-cache.c: Update.
6315 * dwarf-index-write.c: Update.
6316 * dwarf2-frame-tailcall.c: Update.
6317 * dwarf2-frame.c: Update.
6318 * dwarf2loc.c: Update.
6319 * dwarf2read.c: Update.
6321 * event-loop.c: Update.
6322 * event-top.c: Update.
6324 * f-valprint.c: Update.
6325 * fbsd-tdep.c: Update.
6326 * frame-unwind.c: Update.
6328 * gdbtypes.c: Update.
6329 * gnu-v3-abi.c: Update.
6330 * guile/guile-internal.h: Update.
6331 * guile/scm-block.c: Update.
6332 * guile/scm-breakpoint.c: Update.
6333 * guile/scm-cmd.c: Update.
6334 * guile/scm-disasm.c: Update.
6335 * guile/scm-frame.c: Update.
6336 * guile/scm-lazy-string.c: Update.
6337 * guile/scm-math.c: Update.
6338 * guile/scm-param.c: Update.
6339 * guile/scm-ports.c: Update.
6340 * guile/scm-pretty-print.c: Update.
6341 * guile/scm-symbol.c: Update.
6342 * guile/scm-symtab.c: Update.
6343 * guile/scm-type.c: Update.
6344 * guile/scm-value.c: Update.
6345 * i386-linux-tdep.c: Update.
6346 * i386-tdep.c: Update.
6347 * inf-loop.c: Update.
6348 * infcall.c: Update.
6352 * language.c: Update.
6353 * linespec.c: Update.
6354 * linux-fork.c: Update.
6355 * linux-nat.c: Update.
6356 * linux-tdep.c: Update.
6357 * linux-thread-db.c: Update.
6359 * mi/mi-cmd-break.c: Update.
6360 * mi/mi-cmd-stack.c: Update.
6361 * mi/mi-interp.c: Update.
6362 * mi/mi-main.c: Update.
6363 * objc-lang.c: Update.
6364 * p-valprint.c: Update.
6366 * ppc-linux-tdep.c: Update.
6367 * printcmd.c: Update.
6368 * python/py-arch.c: Update.
6369 * python/py-breakpoint.c: Update.
6370 * python/py-cmd.c: Update.
6371 * python/py-finishbreakpoint.c: Update.
6372 * python/py-frame.c: Update.
6373 * python/py-framefilter.c: Update.
6374 * python/py-gdb-readline.c: Update.
6375 * python/py-inferior.c: Update.
6376 * python/py-infthread.c: Update.
6377 * python/py-lazy-string.c: Update.
6378 * python/py-linetable.c: Update.
6379 * python/py-objfile.c: Update.
6380 * python/py-param.c: Update.
6381 * python/py-prettyprint.c: Update.
6382 * python/py-progspace.c: Update.
6383 * python/py-record-btrace.c: Update.
6384 * python/py-record.c: Update.
6385 * python/py-symbol.c: Update.
6386 * python/py-type.c: Update.
6387 * python/py-unwind.c: Update.
6388 * python/py-utils.c: Update.
6389 * python/py-value.c: Update.
6390 * python/python.c: Update.
6391 * record-btrace.c: Update.
6392 * record-full.c: Update.
6393 * remote-fileio.c: Update.
6395 * riscv-tdep.c: Update.
6396 * rs6000-aix-tdep.c: Update.
6397 * rs6000-tdep.c: Update.
6398 * rust-exp.y: Update.
6399 * rust-lang.c: Update.
6400 * s390-tdep.c: Update.
6401 * selftest-arch.c: Update.
6402 * solib-dsbt.c: Update.
6403 * solib-frv.c: Update.
6404 * solib-spu.c: Update.
6405 * solib-svr4.c: Update.
6407 * sparc64-linux-tdep.c: Update.
6409 * symfile-mem.c: Update.
6410 * symmisc.c: Update.
6414 * tracefile-tfile.c: Update.
6415 * tui/tui.c: Update.
6416 * typeprint.c: Update.
6417 * unittests/cli-utils-selftests.c: Update.
6418 * unittests/parse-connection-spec-selftests.c: Update.
6420 * valprint.c: Update.
6423 * windows-nat.c: Update.
6424 * x86-linux-nat.c: Update.
6425 * xml-support.c: Update.
6427 2019-04-08 Tom Tromey <tom@tromey.com>
6429 * xml-support.c: Use C++ exception handling.
6430 * x86-linux-nat.c: Use C++ exception handling.
6431 * windows-nat.c: Use C++ exception handling.
6432 * varobj.c: Use C++ exception handling.
6433 * value.c: Use C++ exception handling.
6434 * valprint.c: Use C++ exception handling.
6435 * valops.c: Use C++ exception handling.
6436 * unittests/parse-connection-spec-selftests.c: Use C++ exception
6438 * unittests/cli-utils-selftests.c: Use C++ exception handling.
6439 * typeprint.c: Use C++ exception handling.
6440 * tui/tui.c: Use C++ exception handling.
6441 * tracefile-tfile.c: Use C++ exception handling.
6442 * top.c: Use C++ exception handling.
6443 * thread.c: Use C++ exception handling.
6444 * target.c: Use C++ exception handling.
6445 * symmisc.c: Use C++ exception handling.
6446 * symfile-mem.c: Use C++ exception handling.
6447 * stack.c: Use C++ exception handling.
6448 * sparc64-linux-tdep.c: Use C++ exception handling.
6449 * solib.c: Use C++ exception handling.
6450 * solib-svr4.c: Use C++ exception handling.
6451 * solib-spu.c: Use C++ exception handling.
6452 * solib-frv.c: Use C++ exception handling.
6453 * solib-dsbt.c: Use C++ exception handling.
6454 * selftest-arch.c: Use C++ exception handling.
6455 * s390-tdep.c: Use C++ exception handling.
6456 * rust-lang.c: Use C++ exception handling.
6457 * rust-exp.y: Use C++ exception handling.
6458 * rs6000-tdep.c: Use C++ exception handling.
6459 * rs6000-aix-tdep.c: Use C++ exception handling.
6460 * riscv-tdep.c: Use C++ exception handling.
6461 * remote.c: Use C++ exception handling.
6462 * remote-fileio.c: Use C++ exception handling.
6463 * record-full.c: Use C++ exception handling.
6464 * record-btrace.c: Use C++ exception handling.
6465 * python/python.c: Use C++ exception handling.
6466 * python/py-value.c: Use C++ exception handling.
6467 * python/py-utils.c: Use C++ exception handling.
6468 * python/py-unwind.c: Use C++ exception handling.
6469 * python/py-type.c: Use C++ exception handling.
6470 * python/py-symbol.c: Use C++ exception handling.
6471 * python/py-record.c: Use C++ exception handling.
6472 * python/py-record-btrace.c: Use C++ exception handling.
6473 * python/py-progspace.c: Use C++ exception handling.
6474 * python/py-prettyprint.c: Use C++ exception handling.
6475 * python/py-param.c: Use C++ exception handling.
6476 * python/py-objfile.c: Use C++ exception handling.
6477 * python/py-linetable.c: Use C++ exception handling.
6478 * python/py-lazy-string.c: Use C++ exception handling.
6479 * python/py-infthread.c: Use C++ exception handling.
6480 * python/py-inferior.c: Use C++ exception handling.
6481 * python/py-gdb-readline.c: Use C++ exception handling.
6482 * python/py-framefilter.c: Use C++ exception handling.
6483 * python/py-frame.c: Use C++ exception handling.
6484 * python/py-finishbreakpoint.c: Use C++ exception handling.
6485 * python/py-cmd.c: Use C++ exception handling.
6486 * python/py-breakpoint.c: Use C++ exception handling.
6487 * python/py-arch.c: Use C++ exception handling.
6488 * printcmd.c: Use C++ exception handling.
6489 * ppc-linux-tdep.c: Use C++ exception handling.
6490 * parse.c: Use C++ exception handling.
6491 * p-valprint.c: Use C++ exception handling.
6492 * objc-lang.c: Use C++ exception handling.
6493 * mi/mi-main.c: Use C++ exception handling.
6494 * mi/mi-interp.c: Use C++ exception handling.
6495 * mi/mi-cmd-stack.c: Use C++ exception handling.
6496 * mi/mi-cmd-break.c: Use C++ exception handling.
6497 * main.c: Use C++ exception handling.
6498 * linux-thread-db.c: Use C++ exception handling.
6499 * linux-tdep.c: Use C++ exception handling.
6500 * linux-nat.c: Use C++ exception handling.
6501 * linux-fork.c: Use C++ exception handling.
6502 * linespec.c: Use C++ exception handling.
6503 * language.c: Use C++ exception handling.
6504 * jit.c: Use C++ exception handling.
6505 * infrun.c: Use C++ exception handling.
6506 * infcmd.c: Use C++ exception handling.
6507 * infcall.c: Use C++ exception handling.
6508 * inf-loop.c: Use C++ exception handling.
6509 * i386-tdep.c: Use C++ exception handling.
6510 * i386-linux-tdep.c: Use C++ exception handling.
6511 * guile/scm-value.c: Use C++ exception handling.
6512 * guile/scm-type.c: Use C++ exception handling.
6513 * guile/scm-symtab.c: Use C++ exception handling.
6514 * guile/scm-symbol.c: Use C++ exception handling.
6515 * guile/scm-pretty-print.c: Use C++ exception handling.
6516 * guile/scm-ports.c: Use C++ exception handling.
6517 * guile/scm-param.c: Use C++ exception handling.
6518 * guile/scm-math.c: Use C++ exception handling.
6519 * guile/scm-lazy-string.c: Use C++ exception handling.
6520 * guile/scm-frame.c: Use C++ exception handling.
6521 * guile/scm-disasm.c: Use C++ exception handling.
6522 * guile/scm-cmd.c: Use C++ exception handling.
6523 * guile/scm-breakpoint.c: Use C++ exception handling.
6524 * guile/scm-block.c: Use C++ exception handling.
6525 * guile/guile-internal.h: Use C++ exception handling.
6526 * gnu-v3-abi.c: Use C++ exception handling.
6527 * gdbtypes.c: Use C++ exception handling.
6528 * frame.c: Use C++ exception handling.
6529 * frame-unwind.c: Use C++ exception handling.
6530 * fbsd-tdep.c: Use C++ exception handling.
6531 * f-valprint.c: Use C++ exception handling.
6532 * exec.c: Use C++ exception handling.
6533 * event-top.c: Use C++ exception handling.
6534 * event-loop.c: Use C++ exception handling.
6535 * eval.c: Use C++ exception handling.
6536 * dwarf2read.c: Use C++ exception handling.
6537 * dwarf2loc.c: Use C++ exception handling.
6538 * dwarf2-frame.c: Use C++ exception handling.
6539 * dwarf2-frame-tailcall.c: Use C++ exception handling.
6540 * dwarf-index-write.c: Use C++ exception handling.
6541 * dwarf-index-cache.c: Use C++ exception handling.
6542 * dtrace-probe.c: Use C++ exception handling.
6543 * disasm-selftests.c: Use C++ exception handling.
6544 * darwin-nat.c: Use C++ exception handling.
6545 * cp-valprint.c: Use C++ exception handling.
6546 * cp-support.c: Use C++ exception handling.
6547 * cp-abi.c: Use C++ exception handling.
6548 * corelow.c: Use C++ exception handling.
6549 * completer.c: Use C++ exception handling.
6550 * compile/compile-object-run.c: Use C++ exception handling.
6551 * compile/compile-object-load.c: Use C++ exception handling.
6552 * compile/compile-cplus-symbols.c: Use C++ exception handling.
6553 * compile/compile-c-symbols.c: Use C++ exception handling.
6554 * common/selftest.c: Use C++ exception handling.
6555 * common/new-op.c: Use C++ exception handling.
6556 * cli/cli-script.c: Use C++ exception handling.
6557 * cli/cli-interp.c: Use C++ exception handling.
6558 * cli/cli-cmds.c: Use C++ exception handling.
6559 * c-varobj.c: Use C++ exception handling.
6560 * btrace.c: Use C++ exception handling.
6561 * breakpoint.c: Use C++ exception handling.
6562 * break-catch-throw.c: Use C++ exception handling.
6563 * arch-utils.c: Use C++ exception handling.
6564 * amd64-tdep.c: Use C++ exception handling.
6565 * ada-valprint.c: Use C++ exception handling.
6566 * ada-typeprint.c: Use C++ exception handling.
6567 * ada-lang.c: Use C++ exception handling.
6568 * aarch64-tdep.c: Use C++ exception handling.
6570 2019-04-08 Tom Tromey <tom@tromey.com>
6572 * xml-support.c (gdb_xml_parser::parse): Update.
6573 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
6574 * value.c (show_convenience): Update.
6575 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
6576 (test_parse_flags_qcs): Update.
6577 * thread.c (thr_try_catch_cmd): Update.
6578 * target.c (target_translate_tls_address): Update.
6579 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
6580 (info_frame_command_core, frame_apply_command_count): Update.
6581 * rust-exp.y (rust_lex_exception_test): Update.
6582 * riscv-tdep.c (riscv_print_one_register_info): Update.
6583 * remote.c (remote_target::enable_btrace): Update.
6584 * record-btrace.c (record_btrace_enable_warn): Update.
6585 * python/py-utils.c (gdbpy_convert_exception): Update.
6586 * printcmd.c (do_one_display, print_variable_and_value): Update.
6587 * mi/mi-main.c (mi_print_exception): Update.
6588 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
6589 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
6590 * linux-nat.c (linux_nat_target::attach): Update.
6591 * linux-fork.c (class scoped_switch_fork_info): Update.
6592 * infrun.c (displaced_step_prepare): Update.
6593 * infcall.c (call_function_by_hand_dummy): Update.
6594 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
6595 * gnu-v3-abi.c (print_one_vtable): Update.
6596 * frame.c (get_prev_frame_always): Update.
6597 * f-valprint.c (info_common_command_for_block): Update.
6598 * exec.c (try_open_exec_file): Update.
6599 * exceptions.c (print_exception, exception_print)
6600 (exception_fprintf, exception_print_same): Update.
6601 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
6602 * dwarf-index-cache.c (index_cache::store)
6603 (index_cache::lookup_gdb_index): Update.
6604 * darwin-nat.c (maybe_cache_shell): Update.
6605 * cp-valprint.c (cp_print_value_fields): Update.
6606 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
6607 (gcc_cplus_symbol_address): Update.
6608 * compile/compile-c-symbols.c (gcc_convert_symbol)
6609 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
6610 * common/selftest.c: Update.
6611 * common/common-exceptions.h (struct gdb_exception) <message>: Now
6613 (exception_try_scope_entry, exception_try_scope_exit): Don't
6615 (struct exception_try_scope): Remove.
6616 (TRY): Don't use exception_try_scope.
6617 (struct gdb_exception): Add constructor, operator=.
6619 (struct gdb_exception_RETURN_MASK_ALL)
6620 (struct gdb_exception_RETURN_MASK_ERROR)
6621 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
6622 (struct gdb_quit_bad_alloc): Update.
6623 * common/common-exceptions.c (exception_none): Change
6625 (struct catcher) <state, exception>: Initialize inline.
6626 <prev>: Remove member.
6627 (current_catcher): Remove.
6628 (catchers): New global.
6629 (exceptions_state_mc_init): Simplify.
6630 (catcher_pop): Remove.
6631 (exceptions_state_mc, exceptions_state_mc_catch): Update.
6632 (try_scope_depth, exception_try_scope_entry)
6633 (exception_try_scope_exit): Remove.
6634 (throw_exception_sjlj): Update.
6635 (exception_messages, exception_messages_size): Remove.
6636 (throw_it): Simplify.
6637 (gdb_exception_sliced_copy): Remove.
6638 (throw_exception_cxx): Update.
6639 * cli/cli-script.c (script_from_file): Update.
6640 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
6642 * ada-valprint.c (ada_val_print): Update.
6643 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
6644 (create_excep_cond_exprs): Update.
6646 2019-04-08 Tom Tromey <tom@tromey.com>
6648 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
6649 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
6650 (TRY, CATCH, END_CATCH): Remove some definitions.
6651 * common/common-exceptions.c: Don't use GDB_XCPT.
6652 (catcher_list_size): Remove.
6653 (throw_exception, throw_it): Simplify.
6655 2019-04-05 Tom Tromey <tom@tromey.com>
6657 Revert the header-sorting patch.
6658 * ft32-tdep.c: Revert.
6659 * frv-tdep.c: Revert.
6660 * frv-linux-tdep.c: Revert.
6662 * frame-unwind.c: Revert.
6663 * frame-base.c: Revert.
6664 * fork-child.c: Revert.
6665 * findvar.c: Revert.
6666 * findcmd.c: Revert.
6667 * filesystem.c: Revert.
6668 * filename-seen-cache.h: Revert.
6669 * filename-seen-cache.c: Revert.
6670 * fbsd-tdep.c: Revert.
6671 * fbsd-nat.h: Revert.
6672 * fbsd-nat.c: Revert.
6673 * f-valprint.c: Revert.
6674 * f-typeprint.c: Revert.
6676 * extension.h: Revert.
6677 * extension.c: Revert.
6678 * extension-priv.h: Revert.
6679 * expprint.c: Revert.
6682 * exceptions.c: Revert.
6683 * event-top.c: Revert.
6684 * event-loop.c: Revert.
6686 * elfread.c: Revert.
6687 * dwarf2read.h: Revert.
6688 * dwarf2read.c: Revert.
6689 * dwarf2loc.c: Revert.
6690 * dwarf2expr.h: Revert.
6691 * dwarf2expr.c: Revert.
6692 * dwarf2-frame.c: Revert.
6693 * dwarf2-frame-tailcall.c: Revert.
6694 * dwarf-index-write.h: Revert.
6695 * dwarf-index-write.c: Revert.
6696 * dwarf-index-common.c: Revert.
6697 * dwarf-index-cache.h: Revert.
6698 * dwarf-index-cache.c: Revert.
6699 * dummy-frame.c: Revert.
6700 * dtrace-probe.c: Revert.
6703 * disasm-selftests.c: Revert.
6704 * dictionary.c: Revert.
6705 * dicos-tdep.c: Revert.
6706 * demangle.c: Revert.
6709 * darwin-nat.h: Revert.
6710 * darwin-nat.c: Revert.
6711 * darwin-nat-info.c: Revert.
6712 * d-valprint.c: Revert.
6713 * d-namespace.c: Revert.
6716 * csky-tdep.c: Revert.
6717 * csky-linux-tdep.c: Revert.
6718 * cris-tdep.c: Revert.
6719 * cris-linux-tdep.c: Revert.
6720 * cp-valprint.c: Revert.
6721 * cp-support.c: Revert.
6722 * cp-namespace.c: Revert.
6724 * corelow.c: Revert.
6725 * corefile.c: Revert.
6726 * continuations.c: Revert.
6727 * completer.h: Revert.
6728 * completer.c: Revert.
6729 * complaints.c: Revert.
6730 * coffread.c: Revert.
6731 * coff-pe-read.c: Revert.
6732 * cli-out.h: Revert.
6733 * cli-out.c: Revert.
6734 * charset.c: Revert.
6735 * c-varobj.c: Revert.
6736 * c-valprint.c: Revert.
6737 * c-typeprint.c: Revert.
6739 * buildsym.c: Revert.
6740 * buildsym-legacy.c: Revert.
6741 * build-id.h: Revert.
6742 * build-id.c: Revert.
6744 * bsd-uthread.c: Revert.
6745 * breakpoint.h: Revert.
6746 * breakpoint.c: Revert.
6747 * break-catch-throw.c: Revert.
6748 * break-catch-syscall.c: Revert.
6749 * break-catch-sig.c: Revert.
6750 * blockframe.c: Revert.
6752 * bfin-tdep.c: Revert.
6753 * bfin-linux-tdep.c: Revert.
6754 * bfd-target.c: Revert.
6756 * ax-general.c: Revert.
6759 * avr-tdep.c: Revert.
6761 * auto-load.c: Revert.
6762 * arm-wince-tdep.c: Revert.
6763 * arm-tdep.c: Revert.
6764 * arm-symbian-tdep.c: Revert.
6765 * arm-pikeos-tdep.c: Revert.
6766 * arm-obsd-tdep.c: Revert.
6767 * arm-nbsd-tdep.c: Revert.
6768 * arm-nbsd-nat.c: Revert.
6769 * arm-linux-tdep.c: Revert.
6770 * arm-linux-nat.c: Revert.
6771 * arm-fbsd-tdep.c: Revert.
6772 * arm-fbsd-nat.c: Revert.
6773 * arm-bsd-tdep.c: Revert.
6774 * arch-utils.c: Revert.
6775 * arc-tdep.c: Revert.
6776 * arc-newlib-tdep.c: Revert.
6777 * annotate.h: Revert.
6778 * annotate.c: Revert.
6779 * amd64-windows-tdep.c: Revert.
6780 * amd64-windows-nat.c: Revert.
6781 * amd64-tdep.c: Revert.
6782 * amd64-sol2-tdep.c: Revert.
6783 * amd64-obsd-tdep.c: Revert.
6784 * amd64-obsd-nat.c: Revert.
6785 * amd64-nbsd-tdep.c: Revert.
6786 * amd64-nbsd-nat.c: Revert.
6787 * amd64-nat.c: Revert.
6788 * amd64-linux-tdep.c: Revert.
6789 * amd64-linux-nat.c: Revert.
6790 * amd64-fbsd-tdep.c: Revert.
6791 * amd64-fbsd-nat.c: Revert.
6792 * amd64-dicos-tdep.c: Revert.
6793 * amd64-darwin-tdep.c: Revert.
6794 * amd64-bsd-nat.c: Revert.
6795 * alpha-tdep.c: Revert.
6796 * alpha-obsd-tdep.c: Revert.
6797 * alpha-nbsd-tdep.c: Revert.
6798 * alpha-mdebug-tdep.c: Revert.
6799 * alpha-linux-tdep.c: Revert.
6800 * alpha-linux-nat.c: Revert.
6801 * alpha-bsd-tdep.c: Revert.
6802 * alpha-bsd-nat.c: Revert.
6803 * aix-thread.c: Revert.
6805 * addrmap.c: Revert.
6806 * ada-varobj.c: Revert.
6807 * ada-valprint.c: Revert.
6808 * ada-typeprint.c: Revert.
6809 * ada-tasks.c: Revert.
6810 * ada-lang.c: Revert.
6811 * aarch64-tdep.c: Revert.
6812 * aarch64-ravenscar-thread.c: Revert.
6813 * aarch64-newlib-tdep.c: Revert.
6814 * aarch64-linux-tdep.c: Revert.
6815 * aarch64-linux-nat.c: Revert.
6816 * aarch64-fbsd-tdep.c: Revert.
6817 * aarch64-fbsd-nat.c: Revert.
6818 * aarch32-linux-nat.c: Revert.
6820 2019-04-05 Tom Tromey <tom@tromey.com>
6822 * ft32-tdep.c: Sort headers.
6823 * frv-tdep.c: Sort headers.
6824 * frv-linux-tdep.c: Sort headers.
6825 * frame.c: Sort headers.
6826 * frame-unwind.c: Sort headers.
6827 * frame-base.c: Sort headers.
6828 * fork-child.c: Sort headers.
6829 * findvar.c: Sort headers.
6830 * findcmd.c: Sort headers.
6831 * filesystem.c: Sort headers.
6832 * filename-seen-cache.h: Sort headers.
6833 * filename-seen-cache.c: Sort headers.
6834 * fbsd-tdep.c: Sort headers.
6835 * fbsd-nat.h: Sort headers.
6836 * fbsd-nat.c: Sort headers.
6837 * f-valprint.c: Sort headers.
6838 * f-typeprint.c: Sort headers.
6839 * f-lang.c: Sort headers.
6840 * extension.h: Sort headers.
6841 * extension.c: Sort headers.
6842 * extension-priv.h: Sort headers.
6843 * expprint.c: Sort headers.
6844 * exec.h: Sort headers.
6845 * exec.c: Sort headers.
6846 * exceptions.c: Sort headers.
6847 * event-top.c: Sort headers.
6848 * event-loop.c: Sort headers.
6849 * eval.c: Sort headers.
6850 * elfread.c: Sort headers.
6851 * dwarf2read.h: Sort headers.
6852 * dwarf2read.c: Sort headers.
6853 * dwarf2loc.c: Sort headers.
6854 * dwarf2expr.h: Sort headers.
6855 * dwarf2expr.c: Sort headers.
6856 * dwarf2-frame.c: Sort headers.
6857 * dwarf2-frame-tailcall.c: Sort headers.
6858 * dwarf-index-write.h: Sort headers.
6859 * dwarf-index-write.c: Sort headers.
6860 * dwarf-index-common.c: Sort headers.
6861 * dwarf-index-cache.h: Sort headers.
6862 * dwarf-index-cache.c: Sort headers.
6863 * dummy-frame.c: Sort headers.
6864 * dtrace-probe.c: Sort headers.
6865 * disasm.h: Sort headers.
6866 * disasm.c: Sort headers.
6867 * disasm-selftests.c: Sort headers.
6868 * dictionary.c: Sort headers.
6869 * dicos-tdep.c: Sort headers.
6870 * demangle.c: Sort headers.
6871 * dcache.h: Sort headers.
6872 * dcache.c: Sort headers.
6873 * darwin-nat.h: Sort headers.
6874 * darwin-nat.c: Sort headers.
6875 * darwin-nat-info.c: Sort headers.
6876 * d-valprint.c: Sort headers.
6877 * d-namespace.c: Sort headers.
6878 * d-lang.c: Sort headers.
6879 * ctf.c: Sort headers.
6880 * csky-tdep.c: Sort headers.
6881 * csky-linux-tdep.c: Sort headers.
6882 * cris-tdep.c: Sort headers.
6883 * cris-linux-tdep.c: Sort headers.
6884 * cp-valprint.c: Sort headers.
6885 * cp-support.c: Sort headers.
6886 * cp-namespace.c: Sort headers.
6887 * cp-abi.c: Sort headers.
6888 * corelow.c: Sort headers.
6889 * corefile.c: Sort headers.
6890 * continuations.c: Sort headers.
6891 * completer.h: Sort headers.
6892 * completer.c: Sort headers.
6893 * complaints.c: Sort headers.
6894 * coffread.c: Sort headers.
6895 * coff-pe-read.c: Sort headers.
6896 * cli-out.h: Sort headers.
6897 * cli-out.c: Sort headers.
6898 * charset.c: Sort headers.
6899 * c-varobj.c: Sort headers.
6900 * c-valprint.c: Sort headers.
6901 * c-typeprint.c: Sort headers.
6902 * c-lang.c: Sort headers.
6903 * buildsym.c: Sort headers.
6904 * buildsym-legacy.c: Sort headers.
6905 * build-id.h: Sort headers.
6906 * build-id.c: Sort headers.
6907 * btrace.c: Sort headers.
6908 * bsd-uthread.c: Sort headers.
6909 * breakpoint.h: Sort headers.
6910 * breakpoint.c: Sort headers.
6911 * break-catch-throw.c: Sort headers.
6912 * break-catch-syscall.c: Sort headers.
6913 * break-catch-sig.c: Sort headers.
6914 * blockframe.c: Sort headers.
6915 * block.c: Sort headers.
6916 * bfin-tdep.c: Sort headers.
6917 * bfin-linux-tdep.c: Sort headers.
6918 * bfd-target.c: Sort headers.
6919 * bcache.c: Sort headers.
6920 * ax-general.c: Sort headers.
6921 * ax-gdb.h: Sort headers.
6922 * ax-gdb.c: Sort headers.
6923 * avr-tdep.c: Sort headers.
6924 * auxv.c: Sort headers.
6925 * auto-load.c: Sort headers.
6926 * arm-wince-tdep.c: Sort headers.
6927 * arm-tdep.c: Sort headers.
6928 * arm-symbian-tdep.c: Sort headers.
6929 * arm-pikeos-tdep.c: Sort headers.
6930 * arm-obsd-tdep.c: Sort headers.
6931 * arm-nbsd-tdep.c: Sort headers.
6932 * arm-nbsd-nat.c: Sort headers.
6933 * arm-linux-tdep.c: Sort headers.
6934 * arm-linux-nat.c: Sort headers.
6935 * arm-fbsd-tdep.c: Sort headers.
6936 * arm-fbsd-nat.c: Sort headers.
6937 * arm-bsd-tdep.c: Sort headers.
6938 * arch-utils.c: Sort headers.
6939 * arc-tdep.c: Sort headers.
6940 * arc-newlib-tdep.c: Sort headers.
6941 * annotate.h: Sort headers.
6942 * annotate.c: Sort headers.
6943 * amd64-windows-tdep.c: Sort headers.
6944 * amd64-windows-nat.c: Sort headers.
6945 * amd64-tdep.c: Sort headers.
6946 * amd64-sol2-tdep.c: Sort headers.
6947 * amd64-obsd-tdep.c: Sort headers.
6948 * amd64-obsd-nat.c: Sort headers.
6949 * amd64-nbsd-tdep.c: Sort headers.
6950 * amd64-nbsd-nat.c: Sort headers.
6951 * amd64-nat.c: Sort headers.
6952 * amd64-linux-tdep.c: Sort headers.
6953 * amd64-linux-nat.c: Sort headers.
6954 * amd64-fbsd-tdep.c: Sort headers.
6955 * amd64-fbsd-nat.c: Sort headers.
6956 * amd64-dicos-tdep.c: Sort headers.
6957 * amd64-darwin-tdep.c: Sort headers.
6958 * amd64-bsd-nat.c: Sort headers.
6959 * alpha-tdep.c: Sort headers.
6960 * alpha-obsd-tdep.c: Sort headers.
6961 * alpha-nbsd-tdep.c: Sort headers.
6962 * alpha-mdebug-tdep.c: Sort headers.
6963 * alpha-linux-tdep.c: Sort headers.
6964 * alpha-linux-nat.c: Sort headers.
6965 * alpha-bsd-tdep.c: Sort headers.
6966 * alpha-bsd-nat.c: Sort headers.
6967 * aix-thread.c: Sort headers.
6968 * agent.c: Sort headers.
6969 * addrmap.c: Sort headers.
6970 * ada-varobj.c: Sort headers.
6971 * ada-valprint.c: Sort headers.
6972 * ada-typeprint.c: Sort headers.
6973 * ada-tasks.c: Sort headers.
6974 * ada-lang.c: Sort headers.
6975 * aarch64-tdep.c: Sort headers.
6976 * aarch64-ravenscar-thread.c: Sort headers.
6977 * aarch64-newlib-tdep.c: Sort headers.
6978 * aarch64-linux-tdep.c: Sort headers.
6979 * aarch64-linux-nat.c: Sort headers.
6980 * aarch64-fbsd-tdep.c: Sort headers.
6981 * aarch64-fbsd-nat.c: Sort headers.
6982 * aarch32-linux-nat.c: Sort headers.
6984 2019-04-04 Tom Tromey <tom@tromey.com>
6986 * varobj.c (varobj_create): Update.
6987 * rust-exp.y (struct rust_parser) <update_innermost_block,
6988 lookup_symbol>: New methods.
6989 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
6991 (rust_parser::rust_lookup_type)
6992 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
6993 * printcmd.c (display_command, do_one_display): Update.
6994 * parser-defs.h (struct parser_state) <parser_state>: Add
6995 "tracker" parameter.
6996 (block_tracker): New member.
6997 (class innermost_block_tracker) <innermost_block_tracker>: Add
6999 <reset>: Remove method.
7000 (innermost_block): Don't declare.
7001 (null_post_parser): Update.
7002 * parse.c (innermost_block): Remove global.
7003 (write_dollar_variable): Update.
7004 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
7005 Remove "tracker_types" parameter.
7006 (parse_expression): Add "tracker" parameter.
7007 (parse_expression_for_completion): Update.
7008 (null_post_parser): Add "tracker" parameter.
7009 * p-exp.y: Update rules.
7010 * m2-exp.y: Update rules.
7011 * language.h (struct language_defn) <la_post_parser>: Add
7012 "tracker" parameter.
7013 * go-exp.y: Update rules.
7014 * f-exp.y: Update rules.
7015 * expression.h (parse_expression, parse_exp_1): Add "tracker"
7017 * d-exp.y: Update rules.
7018 * c-exp.y: Update rules.
7019 * breakpoint.c (set_breakpoint_condition): Create an
7020 innermost_block_tracker.
7021 (watch_command_1): Likewise.
7022 * ada-lang.c (resolve): Add "tracker" parameter.
7023 (resolve_subexp): Likewise.
7024 * ada-exp.y (write_var_from_sym): Update.
7026 2019-04-04 Tom Tromey <tom@tromey.com>
7028 * type-stack.h: New file.
7029 * type-stack.c: New file.
7030 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
7032 (insert_into_type_stack, insert_type, push_type, push_type_int)
7033 (insert_type_address_space, pop_type, pop_type_int)
7034 (pop_typelist, pop_type_stack, append_type_stack)
7035 (push_type_stack, get_type_stack, push_typelist)
7036 (follow_type_instance_flags, follow_types): Don't declare.
7037 * parse.c (type_stack): Remove global.
7038 (parse_exp_in_context): Update.
7039 (insert_into_type_stack, insert_type, push_type, push_type_int)
7040 (insert_type_address_space, pop_type, pop_type_int)
7041 (pop_typelist, pop_type_stack, append_type_stack)
7042 (push_type_stack, get_type_stack, push_typelist)
7043 (follow_type_instance_flags, follow_types): Remove (moved to
7045 * f-exp.y (type_stack): New global.
7047 (push_kind_type, f_parse): Update.
7048 * d-exp.y (type_stack): New global.
7051 * c-exp.y (struct c_parse_state) <type_stack>: New member.
7053 * Makefile.in (COMMON_SFILES): Add type-stack.c.
7054 (HFILES_NO_SRCDIR): Add type-stack.h.
7056 2019-04-04 Tom Tromey <tom@tromey.com>
7058 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
7059 (rust_parser::convert_ast_to_expression, rust_parse)
7060 (rust_lex_test_completion, rust_lex_tests): Update.
7061 * parser-defs.h (struct expr_completion_state): New.
7062 (struct parser_state) <parser_state>: Add completion parameter.
7063 <mark_struct_expression, mark_completion_tag>: New methods.
7064 <parse_completion, m_completion_state>: New members.
7065 (prefixify_expression, null_post_parser): Update.
7066 (mark_struct_expression, mark_completion_tag): Don't declare.
7067 * parse.c (parse_completion, expout_last_struct)
7068 (expout_tag_completion_type, expout_completion_name): Remove
7070 (parser_state::mark_struct_expression)
7071 (parser_state::mark_completion_tag): Now methods.
7072 (prefixify_expression): Add last_struct parameter.
7073 (prefixify_subexp): Likewise.
7074 (parse_exp_1): Update.
7075 (parse_exp_in_context): Add cstate parameter. Update.
7076 (parse_expression_for_completion): Create an
7077 expr_completion_state.
7078 (null_post_parser): Add "completion" parameter.
7079 * p-exp.y: Update rules.
7081 * language.h (struct language_defn) <la_post_parser>: Add
7082 "completing" parameter.
7083 * go-exp.y: Update rules.
7084 (lex_one_token): Update.
7085 * expression.h (parse_completion): Don't declare.
7086 * d-exp.y: Update rules.
7087 (lex_one_token): Update rules.
7088 * c-exp.y: Update rules.
7089 (lex_one_token): Update.
7090 * ada-lang.c (resolve): Add "parse_completion" parameter.
7091 (resolve_subexp): Likewise.
7092 (ada_resolve_function): Likewise.
7094 2019-04-04 Tom Tromey <tom@tromey.com>
7096 * parser-defs.h (struct parser_state) <start_arglist,
7097 end_arglist>: New methods.
7098 <arglist_len, m_funcall_chain>: New members.
7099 (arglist_len, start_arglist, end_arglist): Don't declare.
7100 * parse.c (arglist_len, funcall_chain): Remove global.
7101 (start_arglist, end_arglist): Remove functions.
7102 (parse_exp_in_context): Update.
7103 * p-exp.y: Update rules.
7104 * m2-exp.y: Update rules.
7105 * go-exp.y: Update rules.
7106 * f-exp.y: Update rules.
7107 * d-exp.y: Update rules.
7108 * c-exp.y: Update rules.
7110 2019-04-04 Tom Tromey <tom@tromey.com>
7112 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
7113 lex_operator, push_back>: New methods.
7115 (rust_parser::lex_hex, lex_escape): Rename and update.
7116 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
7117 (rust_parser::lex_operator): Rename and update.
7118 (rust_parser::lex_number, rustyylex, rustyyerror)
7119 (rust_lex_test_init, rust_lex_test_sequence)
7120 (rust_lex_test_push_back, rust_lex_tests): Update.
7121 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
7123 <lexptr, prev_lexptr>: New members.
7124 (lexptr, prev_lexptr): Don't declare.
7125 * parse.c (lexptr, prev_lexptr): Remove globals.
7126 (parse_exp_in_context): Update.
7127 * p-exp.y (yylex, yyerror): Update.
7128 * m2-exp.y (parse_number, yylex, yyerror): Update.
7129 * go-exp.y (lex_one_token, yyerror): Update.
7130 * f-exp.y (match_string_literal, yylex, yyerror): Update.
7131 * d-exp.y (lex_one_token, yyerror): Update.
7132 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
7133 (lex_one_token, yyerror): Update.
7134 * ada-lex.l (YY_INPUT): Update.
7135 (rewind_to_char): Update.
7136 * ada-exp.y (yyerror): Update.
7138 2019-04-04 Tom Tromey <tom@tromey.com>
7140 * rust-exp.y (rustyylex, rust_lex_tests): Update.
7141 * parser-defs.h (struct parser_state) <parser_state>: Add new
7143 <comma_terminates>: New member.
7144 (comma_terminates): Don't declare global.
7145 * parse.c (comma_terminates): Remove global.
7146 (parse_exp_in_context): Update.
7147 * p-exp.y (yylex): Update.
7148 * m2-exp.y (yylex): Update.
7149 * go-exp.y (lex_one_token): Update.
7150 * f-exp.y (yylex): Update.
7151 * d-exp.y (lex_one_token): Update.
7152 * c-exp.y (lex_one_token): Update.
7153 * ada-lex.l: Update.
7155 2019-04-04 Tom Tromey <tom@tromey.com>
7157 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
7158 (rustyylex, rust_lex_test_init, rust_lex_test_one)
7159 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
7160 * parser-defs.h (paren_depth): Don't declare.
7161 * parse.c (paren_depth): Remove global.
7162 (parse_exp_in_context): Update.
7163 * p-exp.y (paren_depth): New global.
7164 (pascal_parse): Initialize it.
7165 * m2-exp.y (paren_depth): New global.
7166 (m2_parse): Initialize it.
7167 * go-exp.y (paren_depth): New global.
7168 (go_parse): Initialize it.
7169 * f-exp.y (paren_depth): New global.
7170 (f_parse): Initialize it.
7171 * d-exp.y (paren_depth): New global.
7172 (d_parse): Initialize it.
7173 * c-exp.y (paren_depth): New global.
7174 (c_parse): Initialize it.
7175 * ada-lex.l (paren_depth): New global.
7176 (lexer_init): Initialize it.
7178 2019-04-04 Tom Tromey <tom@tromey.com>
7180 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
7181 (rust_parser::convert_ast_to_type)
7182 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
7183 * parser-defs.h (struct parser_state) <parser_state>: Add
7184 parameters. Initialize new members.
7185 <expression_context_block, expression_context_pc>: New members.
7186 * parse.c (expression_context_block, expression_context_pc):
7188 (parse_exp_in_context): Update.
7189 * p-exp.y: Update all rules.
7191 * m2-exp.y: Update all rules.
7193 * go-exp.y (yylex): Update.
7194 * f-exp.y (yylex): Update.
7195 * d-exp.y: Update all rules.
7197 * c-exp.y: Update all rules.
7198 (lex_one_token, classify_name, yylex, c_parse): Update.
7199 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
7201 2019-04-04 Tom Tromey <tom@tromey.com>
7203 * gdbarch.h, gdbarch.c: Rebuild.
7204 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
7206 (struct stap_parse_info): Replace "parser_state" with
7208 * parser-defs.h (struct expr_builder): Rename from "parser_state".
7209 (parser_state): New class.
7210 * parse.c (expr_builder): Rename.
7211 (expr_builder::release): Rename.
7212 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
7213 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
7214 (write_exp_elt_longcst, write_exp_elt_floatcst)
7215 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
7216 (write_exp_string_vector, write_exp_bitstring)
7217 (write_exp_msymbol, mark_struct_expression)
7218 (write_dollar_variable)
7219 (insert_type_address_space, increase_expout_size): Replace
7220 "parser_state" with "expr_builder".
7221 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
7222 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
7223 "parser_state" with "expr_builder".
7225 2019-04-04 Tom Tromey <tom@tromey.com>
7227 * rust-exp.y: Replace "parse_language" with method call.
7229 (yylex): Replace "parse_language" with method call.
7231 (yylex): Replace "parse_language" with method call.
7232 * go-exp.y (classify_name): Replace "parse_language" with method
7234 * f-exp.y (yylex): Replace "parse_language" with method call.
7235 * d-exp.y (lex_one_token): Replace "parse_language" with method
7238 (lex_one_token, classify_name, yylex): Replace "parse_language"
7240 * ada-exp.y (find_primitive_type, type_char)
7241 (type_system_address): Replace "parse_language" with method call.
7243 2019-04-04 Tom Tromey <tom@tromey.com>
7245 * rust-exp.y: Replace "parse_gdbarch" with method call.
7246 * parse.c (write_dollar_variable, insert_type_address_space):
7247 Replace "parse_gdbarch" with method call.
7248 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
7250 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
7252 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
7253 "parse_gdbarch" with method call.
7254 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
7256 * f-exp.y (parse_type, parse_f_type, yylex): Replace
7257 "parse_gdbarch" with method call.
7258 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
7259 "parse_gdbarch" with method call.
7260 * c-exp.y (parse_type, parse_number, classify_name): Replace
7261 "parse_gdbarch" with method call.
7262 * ada-lex.l: Replace "parse_gdbarch" with method call.
7263 * ada-exp.y (parse_type, find_primitive_type, type_char)
7264 (type_system_address): Replace "parse_gdbarch" with method call.
7266 2019-04-04 Tom Tromey <tom@tromey.com>
7268 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
7269 * stap-probe.c (stap_parse_argument): Update.
7270 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
7271 initial_size parameter.
7272 * rust-exp.y (rust_lex_tests): Update.
7273 * parse.c (parser_state): Update.
7274 (parse_exp_in_context): Update.
7275 * parser-defs.h (struct parser_state) <parser_state>: Remove
7276 "initial_size" parameter.
7278 2019-04-04 Tom Tromey <tom@tromey.com>
7280 * parser-defs.h (increase_expout_size): Don't declare.
7281 * parse.c (increase_expout_size): Now static.
7283 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
7285 * gnu-nat.c (gnu_nat_target::wait): Fix
7286 target_waitstatus_to_string call.
7288 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
7290 * eval.c (evaluate_subexp_standard): Handle internal functions
7291 during Fortran function call handling.
7293 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
7295 * NEWS: Mention new internal functions.
7296 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
7297 (read_base_type): Use dwarf2_init_complex_target_type.
7298 * value.c (creal_internal_fn): New function.
7299 (cimag_internal_fn): New function.
7300 (_initialize_values): Register new internal functions.
7302 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7304 * infrun.c (stop_all_threads): If debug_infrun, always
7305 trace the wait status after wait_one, using
7306 target_waitstatus_to_string and target_pid_to_str.
7307 (handle_inferior_event): Replace various trace of
7308 wait status kind by a single trace.
7309 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
7310 wait status kind image by target_waitstatus_to_string.
7311 * target/waitstatus.c (target_waitstatus_to_string): Fix
7314 2019-04-01 Tom Tromey <tromey@adacore.com>
7317 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
7319 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
7320 Pedro Alves <palves@redhat.com>
7322 * top.c (quit_force): Call 'finalize_values'.
7323 * value.c (finalize_values): New function.
7324 * value.h (finalize_values): Declare.
7326 2019-03-30 Eli Zaretskii <eliz@gnu.org>
7328 * NEWS: Announce $_gdb_major and $_gdb_minor.
7330 * top.c (init_gdb_version_vars): New function.
7331 (gdb_init): Call init_gdb_version_vars.
7333 2019-03-29 Tom Tromey <tromey@adacore.com>
7335 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
7336 help text. Remove dead code.
7338 2019-03-29 Keith Seitz <keiths@redhat.com>
7340 From Siddhesh Poyarekar:
7341 * f-lang.h (f77_get_upperbound): Return LONGEST.
7342 (f77_get_lowerbound): Likewise.
7343 * f-typeprint.c (f_type_print_varspec_suffix): Expand
7344 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
7346 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
7347 plongest to format print it.
7348 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
7349 (f77_get_upperbound): Likewise.
7350 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
7351 LOWER_BOUND to LONGEST.
7352 (f77_create_arrayprint_offset_tbl): Likewise.
7354 2019-03-29 Keith Seitz <keiths@redhat.com>
7356 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7357 %s/pulongest for TYPE_LENGTH instead of %d in format
7359 * ada-typerint.c (ada_print_type): Likewise.
7360 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
7361 * compile/compile-c-support.c (generate_register_struct): Likewise.
7362 * gdbtypes.c (recursive_dump_type): Likewise.
7363 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
7364 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
7365 instead of %d in format strings.
7366 * riscv-tdep.c (riscv_type_alignment): Cast second argument
7367 to std::min to ULONGEST.
7368 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
7369 instead of %d in format strings.
7370 * tracepoint.c (info_scope_command): Likewise.
7371 * typeprint.c (print_offset_data::update)
7372 (print_offset_data::finish): Likewise.
7373 * xtensa-tdep.c (xtensa_store_return_value)
7374 (xtensa_push_dummy_call): Likewise.
7376 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
7378 * windows-nat.c (display_selector): Fixed format specifications
7381 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7383 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
7385 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
7387 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
7388 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
7389 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
7390 (nios2_linux_init_abi): Install it.
7392 2019-03-28 Alan Hayward <alan.hayward@arm.com>
7394 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
7396 2019-03-28 Alan Hayward <alan.hayward@arm.com>
7398 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
7400 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7401 Tom Tromey <tromey@adacore.com>
7403 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
7405 2019-03-26 Joel Brobecker <brobecker@adacore.com>
7407 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
7408 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
7409 method to compute the bounds of range types. Also print "[evaluated]"
7410 if the bounds' values come from a dynamic evaluation.
7412 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
7414 * cp-valprint.c (cp_print_value_fields): Don't print trailing
7415 whitespace when pretty printing is on.
7417 2019-03-26 Alan Hayward <alan.hayward@arm.com>
7419 * ppc-linux-nat.c: Add include.
7421 2019-03-26 Alan Hayward <alan.hayward@arm.com>
7423 * NEWS: Mention AArch64 Pointer Authentication.
7425 2019-03-26 Alan Hayward <alan.hayward@arm.com>
7427 * arm-linux-nat.c: Add include.
7429 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
7431 * source-cache.c (source_cache::get_source_lines): Re-read
7432 fullname after calling open_source_file.
7434 2019-03-25 John Baldwin <jhb@FreeBSD.org>
7436 * NEWS: Mention TLS support for FreeBSD.
7438 2019-03-25 Tom Tromey <tromey@adacore.com>
7440 * minsyms.c (BUNCH_SIZE): Update comment.
7441 (~minimal_symbol_reader): Remove old comment.
7442 (compact_minimal_symbols): Update comment.
7443 (minimal_symbol_reader::install): Remove old comment. Update
7446 2019-03-25 Alan Hayward <alan.hayward@arm.com>
7448 * s390-linux-nat.c: Add include.
7450 2019-03-25 Alan Hayward <alan.hayward@arm.com>
7452 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
7453 Call linux_get_hwcap.
7454 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
7456 (aarch64_linux_get_hwcap): Remove function.
7457 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
7459 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
7461 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
7462 * linux-tdep.c (linux_get_hwcap): Add function.
7463 (linux_get_hwcap2): Likewise.
7464 * linux-tdep.h (linux_get_hwcap): Add declaration.
7465 (linux_get_hwcap2): Likewise.
7466 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
7467 (ppc_linux_get_hwcap2): Likewise.
7468 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
7470 (ppc_linux_nat_target::insert_watchpoint): Likewise.
7471 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
7472 (ppc_linux_nat_target::read_description): Likewise.
7473 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
7474 * s390-linux-nat.c: Likewise.
7475 * s390-linux-tdep.c (s390_core_read_description): Likewise.
7477 2019-03-24 Tom Tromey <tom@tromey.com>
7479 * ada-lang.c (standard_lookup): Simplify initialization.
7480 (ada_lookup_symbol_nonlocal): Simplify return.
7481 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
7482 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
7483 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
7484 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
7486 * solib.c (solib_global_lookup): Simplify.
7487 * symtab.c (null_block_symbol): Remove.
7488 (symbol_cache_lookup): Simplify returns.
7489 (lookup_language_this): Simplify returns.
7490 (lookup_symbol_aux): Simplify return.
7491 (lookup_local_symbol): Simplify returns.
7492 (lookup_global_symbol_from_objfile): Simplify return.
7493 (lookup_symbol_in_objfile_symtabs)
7494 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
7495 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
7496 (lookup_static_symbol, lookup_global_symbol): Simplify return.
7497 * cp-namespace.c (cp_lookup_bare_symbol)
7498 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
7499 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
7500 (cp_lookup_nested_symbol): Don't use null_block_symbol.
7501 (cp_lookup_symbol_via_imports): Simplify initialization.
7502 (find_symbol_in_baseclass): Likewise.
7503 * symtab.h (null_block_symbol): Remove.
7504 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
7505 (d_lookup_nested_symbol, d_lookup_symbol_imports)
7506 (d_lookup_symbol_module): Likewise.
7507 (find_symbol_in_baseclass): Simplify initialization.
7509 2019-03-24 Tom Tromey <tom@tromey.com>
7511 * expression.h: Don't include symtab.h.
7512 (struct block): Forward declare.
7514 2019-03-24 Tom Tromey <tom@tromey.com>
7516 * c-exp.y (typebase): Remove casts.
7517 * gdbtypes.c (lookup_unsigned_typename, )
7518 (lookup_signed_typename): Remove cast.
7519 * eval.c (parse_to_comma_and_eval): Remove cast.
7520 * parse.c (write_dollar_variable): Remove cast.
7521 * block.h (struct block) <superblock>: Now const.
7522 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
7523 * psymtab.c (psym_map_matching_symbols): Make "block" const.
7524 (map_block): Make "block" const.
7525 * symfile.h (struct quick_symbol_functions)
7526 <map_matching_symbols>: Constify block argument to "callback".
7527 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
7529 (find_pc_sect_compunit_symtab): Make "b" const.
7530 (find_symbol_at_address): Likewise.
7531 (search_symbols): Likewise.
7532 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
7533 (dw2_debug_names_lookup_symbol): Likewise.
7534 (dw2_map_matching_symbols): Update.
7535 * p-valprint.c (pascal_val_print): Remove "block".
7536 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
7537 (aux_add_nonlocal_symbols): Make "block" const.
7538 (resolve_subexp): Remove cast.
7539 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
7541 (iterate_over_file_blocks): Likewise.
7542 * f-exp.y (%union) <bval>: Remove.
7543 * coffread.c (patch_opaque_types): Make "b" const.
7544 * spu-tdep.c (spu_catch_start): Make "block" const.
7545 * c-valprint.c (print_unpacked_pointer): Remove "block".
7546 * symmisc.c (dump_symtab_1): Make "b" const.
7547 (block_depth): Make "block" const.
7548 * d-exp.y (%union) <bval>: Remove.
7549 * cp-support.h (cp_lookup_rtti_type): Update.
7550 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
7551 * psymtab.c (psym_lookup_symbol): Make "block" const.
7552 (maintenance_check_psymtabs): Make "b" const.
7553 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
7554 (enumerate_locals, enumerate_args): Update.
7555 * python/py-symtab.c (stpy_global_block): Make "block" const.
7556 (stpy_static_block): Likewise.
7557 * inline-frame.c (block_starting_point_at): Make "new_block"
7559 * block.c (find_block_in_blockvector): Make return type const.
7560 (blockvector_for_pc_sect): Make "b" const.
7561 (find_block_in_blockvector): Make "b" const.
7563 2019-03-23 Tom Tromey <tom@tromey.com>
7565 * varobj.c (varobj_create): Update.
7566 * symfile.c (clear_symtab_users): Don't reset innermost_block.
7567 * printcmd.c (display_command, do_one_display): Don't reset
7569 * parser-defs.h (enum innermost_block_tracker_type): Move to
7571 (innermost_block): Update comment.
7572 * parse.c (parse_exp_1): Add tracker_types parameter.
7573 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
7574 tracker_types parameter. Reset innermost_block.
7575 (parse_exp_in_context): Remove.
7576 (parse_expression_for_completion): Update.
7577 * objfiles.c (~objfile): Don't reset expression_context_block or
7579 * expression.h (enum innermost_block_tracker_type): Move from
7581 (parse_exp_1): Add tracker_types parameter.
7582 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
7583 reset innermost_block.
7585 2019-03-23 Tom Tromey <tom@tromey.com>
7587 * objfiles.h: Include bcache.h.
7589 2019-03-23 Tom Tromey <tom@tromey.com>
7591 * linespec.c (get_current_search_block): Use
7592 scoped_restore_current_language.
7593 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
7595 2019-03-22 Alan Hayward <alan.hayward@arm.com>
7596 Jiong Wang <jiong.wang@arm.com>
7598 * aarch64-linux-tdep.c
7599 (aarch64_linux_iterate_over_regset_sections): Check for pauth
7601 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
7603 2019-03-22 Alan Hayward <alan.hayward@arm.com>
7604 Jiong Wang <jiong.wang@arm.com>
7606 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
7608 (aarch64_analyze_prologue_test): Add PACIASP test.
7609 (aarch64_prologue_prev_register): Unmask PC value.
7611 2019-03-22 Alan Hayward <alan.hayward@arm.com>
7612 Jiong Wang <jiong.wang@arm.com>
7614 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
7615 (aarch64_dwarf2_prev_register): Unmask PC value.
7616 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
7617 (aarch64_execute_dwarf_cfa_vendor_op): Check for
7618 DW_CFA_AARCH64_negate_ra_state.
7619 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
7621 2019-03-22 Alan Hayward <alan.hayward@arm.com>
7622 Jiong Wang <jiong.wang@arm.com>
7624 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
7626 (aarch64_pseudo_register_name): Likewise.
7627 (aarch64_pseudo_register_type): Likewise.
7628 (aarch64_pseudo_register_reggroup_p): Likewise.
7629 (aarch64_gdbarch_init): Add pauth registers.
7630 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
7631 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
7632 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
7633 (struct gdbarch_tdep): Add regnum for ra_state.
7635 2019-03-22 Alan Hayward <alan.hayward@arm.com>
7636 Jiong Wang <jiong.wang@arm.com>
7638 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
7640 2019-03-22 Alan Hayward <alan.hayward@arm.com>
7641 Jiong Wang <jiong.wang@arm.com>
7643 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
7645 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
7646 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
7647 (aarch64_gdbarch_init): Add puth registers.
7648 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
7649 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
7650 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
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): Read PACA hwcap.
7657 * aarch64-linux-tdep.c
7658 (aarch64_linux_core_read_description): Likewise.
7659 (aarch64_linux_get_hwcap): New function.
7660 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
7661 (aarch64_linux_get_hwcap): New declaration.
7663 2019-03-22 Alan Hayward <alan.hayward@arm.com>
7664 Jiong Wang <jiong.wang@arm.com>
7666 * aarch64-linux-nat.c
7667 (aarch64_linux_nat_target::read_description): Add pauth param.
7668 * aarch64-linux-tdep.c
7669 (aarch64_linux_core_read_description): Likewise.
7670 * aarch64-tdep.c (struct target_desc): Add in pauth.
7671 (aarch64_read_description): Add pauth param.
7672 (aarch64_gdbarch_init): Likewise.
7673 * aarch64-tdep.h (aarch64_read_description): Likewise.
7674 * arch/aarch64.c (aarch64_create_target_description): Likewise.
7675 * arch/aarch64.h (aarch64_create_target_description): Likewise.
7676 * features/Makefile: Add new files.
7677 * features/aarch64-pauth.c: New file.
7678 * features/aarch64-pauth.xml: New file.
7680 2019-03-20 Tom Tromey <tromey@adacore.com>
7682 * infrun.c (handle_inferior_event): Rename from
7683 handle_inferior_event_1. Create a scoped_value_mark.
7684 (handle_inferior_event): Remove.
7686 2019-03-19 Tom Tromey <tromey@adacore.com>
7688 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
7689 * infrun.h (print_stop_event): Add "displays" parameter.
7690 * infrun.c (print_stop_event): Add "displays" parameter.
7692 2019-03-19 Pedro Alves <palves@redhat.com>
7694 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
7695 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
7696 to -1. Fix TABs vs spaces.
7697 (tui_ui_out::tui_ui_out): Don't initialize fields here.
7698 * tui/tui-out.h (tui_ui_out) Add intro comments.
7699 <m_line, m_start_of_line>: In-class initialize, and add describing
7702 2019-03-18 Alan Hayward <alan.hayward@arm.com>
7704 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
7706 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
7708 2019-03-18 Pedro Alves <palves@redhat.com>
7709 Eli Zaretskii <eliz@gnu.org>
7711 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
7712 m_line and m_start_of_line.
7714 2019-03-18 Eli Zaretskii <eliz@gnu.org>
7716 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
7717 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
7718 it returns a newline. This fixes a regression in TU mode, whereby
7719 the next line is output on the same screen line as the user input.
7721 2019-03-18 Tom Tromey <tromey@adacore.com>
7723 * minsyms.c (minimal_symbol_reader::install): Remove call to
7726 2019-03-18 Pedro Alves <palves@redhat.com>
7728 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
7730 (apply_style): New, factored out from ...
7731 (apply_ansi_escape): ... this. Handle reverse video mode.
7732 (tui_set_reverse_mode): New function.
7733 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
7734 * tui/tui-winsource.c (tui_show_source_line): Use
7735 tui_set_reverse_mode instead of setting A_STANDOUT.
7736 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
7739 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
7741 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
7744 2019-03-18 Tom Tromey <tromey@adacore.com>
7746 * ada-lang.c (empty_array): Add "high" parameter.
7747 (ada_evaluate_subexp): Update.
7749 2019-03-17 Sergei Trofimovich <siarheit@google.com>
7751 * unittests/string_view-selftests.c: Define
7752 _initialize_string_view_selftests unconditionally.
7754 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
7757 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
7759 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
7762 * windows-nat.c (display_selector): Fix format specifiers.
7764 2019-03-17 Eli Zaretskii <eliz@gnu.org>
7766 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
7767 tui_refill_source_window instead of tui_refresh_win, to update the
7768 current execution line. This fixes redisplay of the current line
7769 when stepping through the code with "next" or "step".
7771 2019-03-16 Eli Zaretskii <eliz@gnu.org>
7773 * source-cache.c (source_cache::get_source_lines): Call
7774 find_source_lines to initialize s->nlines. This fixes vertical
7775 scrolling of TUI source window when the DOWN arrow is pressed.
7777 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7779 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
7780 linux-thread-db.c (_initialize_thread_db): Likewise.
7782 2019-03-16 Eli Zaretskii <eliz@gnu.org>
7784 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
7785 wclrtoeol in tui_show_source_line". This reverts changes made in
7786 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
7788 2019-03-15 Tom Tromey <tom@tromey.com>
7790 * symtab.h (struct minimal_symbol): Derive from
7791 general_symbol_info.
7792 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
7793 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7794 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7795 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7796 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
7797 (MSYMBOL_SEARCH_NAME): Update.
7798 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
7799 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
7800 * minsyms.c (minimal_symbol_reader::record_full): Update.
7802 2019-03-15 Tom Tromey <tom@tromey.com>
7804 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
7806 2019-03-15 Tom Tromey <tom@tromey.com>
7808 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
7810 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
7812 * minsyms.c (lookup_minimal_symbol_by_pc_section)
7813 (build_minimal_symbol_hash_tables)
7814 (minimal_symbol_reader::install): Update.
7816 2019-03-15 Tom Tromey <tom@tromey.com>
7818 * symtab.c (create_demangled_names_hash): Update.
7819 (symbol_set_names): Update.
7820 * objfiles.h (struct objfile_per_bfd_storage)
7821 <demangled_names_hash>: Now an htab_up.
7822 * objfiles.c (objfile_per_bfd_storage): Simplify.
7824 2019-03-15 Tom Tromey <tom@tromey.com>
7826 * objfiles.h (struct objfile_per_bfd_storage): Declare
7828 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
7830 (get_objfile_bfd_data): Use new. Don't initialize
7832 (free_objfile_per_bfd_storage): Remove.
7833 (objfile_bfd_data_free, objfile::~objfile): Use delete.
7835 2019-03-15 Tom Tromey <tom@tromey.com>
7837 * symfile.c (reread_symbols): Update.
7838 * objfiles.c (objfile::objfile): Update.
7839 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
7840 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
7842 (minimal_symbol_reader::install): Update.
7843 (terminate_minimal_symbol_table): Remove.
7844 * jit.c (jit_object_close_impl): Update.
7846 2019-03-15 Tom Tromey <tom@tromey.com>
7848 * minsyms.c (minimal_symbol_reader::record_full): Remove some
7851 2019-03-15 Tom Tromey <tom@tromey.com>
7853 * objfiles.h (struct objfile_per_bfd_storage)
7854 <demangled_hash_languages>: Now a bitset.
7855 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
7856 (lookup_minimal_symbol): Update.
7858 2019-03-15 Tom Tromey <tom@tromey.com>
7860 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
7861 Don't return the symbol.
7862 * coffread.c (record_minimal_symbol): Use record_full.
7864 2019-03-14 Eli Zaretskii <eliz@gnu.org>
7866 The MS-Windows port of ncurses fails to switch to a color pair if
7867 one or both of the colors are the implicit default colors. This
7868 change records the default colors when TUI is initialized, and
7869 then specifies them explicitly when a color pair uses the default
7870 colors. This allows color styling in TUI mode on MS-Windows.
7872 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
7874 (tui_initialize_io) [__MINGW32__]: Record the default terminal
7875 colors in ncurses_norm_attr.
7876 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
7877 "none", replace it with the default color recorded in
7880 2019-03-14 Tom Tromey <tromey@adacore.com>
7882 * source-cache.h (class source_cache) <get_source_lines>: Return
7884 * source-cache.c (source_cache::extract_lines): Handle case where
7885 first_pos==npos. Return std::string.
7886 (source_cache::get_source_lines): Update.
7888 2019-03-14 Tom Tromey <tromey@adacore.com>
7890 * NEWS: Add item for "style sources" commands.
7891 * source-cache.c (source_cache::get_source_lines): Check
7893 * cli/cli-style.c (source_styling): New global.
7894 (_initialize_cli_style): Add "style sources" commands.
7895 (show_style_sources): New function.
7896 * cli/cli-style.h (source_styling): Declare.
7898 2019-03-14 Pedro Alves <palves@redhat.com>
7899 Tom Tromey <tromey@adacore.com>
7901 * tui/tui-winsource.h (tui_refill_source_window): Declare.
7902 * tui/tui-winsource.c (tui_refill_source_window): New function,
7904 (tui_horizontal_source_scroll): ... here. Move some logic.
7905 * cli/cli-style.c (set_style_enabled): Notify new observable.
7906 * tui/tui-hooks.c (tui_redisplay_source): New function.
7907 (tui_attach_detach_observers): Attach or detach
7908 tui_redisplay_source.
7909 * observable.h (source_styling_changed): New observable.
7910 * observable.c: Define source_styling_changed observable.
7912 2019-03-13 Tom Tromey <tromey@adacore.com>
7914 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
7915 (i386_gnu_nat_target::store_registers): Update.
7916 * target-debug.h (target_debug_print_std_string): New macro.
7917 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
7918 * windows-tdep.c (display_one_tib): Update.
7919 * tui/tui-stack.c (tui_make_status_line): Update.
7920 * top.c (print_inferior_quit_action): Update.
7921 * thread.c (thr_try_catch_cmd): Update.
7922 (add_thread_with_info): Update.
7923 (thread_target_id_str): Update.
7924 (thr_try_catch_cmd): Update.
7925 (thread_command): Update.
7926 (thread_find_command): Update.
7927 * record-btrace.c (record_btrace_target::info_record)
7928 (record_btrace_resume_thread, record_btrace_target::resume)
7929 (record_btrace_cancel_resume, record_btrace_step_thread)
7930 (record_btrace_target::wait, record_btrace_target::wait)
7931 (record_btrace_target::wait, record_btrace_target::stop): Update.
7932 * progspace.c (print_program_space): Update.
7933 * process-stratum-target.c
7934 (process_stratum_target::thread_address_space): Update.
7935 * linux-fork.c (linux_fork_mourn_inferior)
7936 (detach_checkpoint_command, info_checkpoints_command)
7937 (linux_fork_context): Update.
7938 (linux_fork_detach): Update.
7939 (class scoped_switch_fork_info): Update.
7940 (delete_checkpoint_command): Update.
7941 * infrun.c (follow_fork_inferior): Update.
7942 (follow_fork_inferior): Update.
7943 (proceed_after_vfork_done): Update.
7944 (handle_vfork_child_exec_or_exit): Update.
7945 (follow_exec): Update.
7946 (displaced_step_prepare_throw): Update.
7947 (displaced_step_restore): Update.
7948 (start_step_over): Update.
7950 (clear_proceed_status_thread): Update.
7952 (print_target_wait_results): Update.
7953 (do_target_wait): Update.
7954 (context_switch): Update.
7955 (stop_all_threads): Update.
7956 (restart_threads): Update.
7957 (finish_step_over): Update.
7958 (handle_signal_stop): Update.
7959 (switch_back_to_stepped_thread): Update.
7960 (keep_going_pass_signal): Update.
7961 (print_exited_reason): Update.
7962 (normal_stop): Update.
7963 * inferior.c (inferior_pid_to_str): Change return type.
7964 (print_selected_inferior): Update.
7965 (add_inferior): Update.
7966 (detach_inferior): Update.
7967 * dummy-frame.c (fprint_dummy_frames): Update.
7968 * dcache.c (dcache_info_1): Update.
7969 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
7970 (btrace_fetch, btrace_clear): Update.
7971 * linux-tdep.c (linux_core_pid_to_str): Change return type.
7972 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
7974 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
7975 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
7976 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
7977 * gdbarch.c, gdbarch.h: Rebuild.
7978 * gdbarch.sh (core_pid_to_str): Change return type.
7979 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
7981 (windows_nat_target::pid_to_str): Change return type.
7982 (windows_delete_thread): Update.
7983 (windows_nat_target::attach): Update.
7984 (windows_nat_target::files_info): Update.
7985 * target-delegates.c: Rebuild.
7986 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
7988 (sol_thread_target::pid_to_str): Change return type.
7989 * remote.c (class remote_target) <pid_to_str>: Change return
7991 (remote_target::pid_to_str): Change return type.
7992 (extended_remote_target::attach, remote_target::remote_stop_ns)
7993 (remote_target::remote_notif_remove_queued_reply)
7994 (remote_target::push_stop_reply, remote_target::disable_btrace):
7996 (extended_remote_target::attach): Update.
7997 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
7999 (gdbsim_target::pid_to_str): Change return type.
8000 * ravenscar-thread.c (struct ravenscar_thread_target)
8001 <pid_to_str>: Change return type.
8002 (ravenscar_thread_target::pid_to_str): Change return type.
8003 * procfs.c (class procfs_target) <pid_to_str>: Change return
8005 (procfs_target::pid_to_str): Change return type.
8006 (procfs_target::attach): Update.
8007 (procfs_target::detach): Update.
8008 (procfs_target::fetch_registers): Update.
8009 (procfs_target::store_registers): Update.
8010 (procfs_target::wait): Update.
8011 (procfs_target::files_info): Update.
8012 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
8013 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
8015 (nto_procfs_target::pid_to_str): Change return type.
8016 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
8017 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
8019 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
8021 (attach_proc_task_lwp_callback, get_detach_signal)
8022 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
8023 (linux_nat_target::resume, wait_lwp, stop_callback)
8024 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
8025 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
8026 (linux_nat_wait_1, resume_stopped_resumed_lwps)
8027 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
8028 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
8030 (inf_ptrace_target::attach): Update.
8031 (inf_ptrace_target::files_info): Update.
8032 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
8034 (go32_nat_target::pid_to_str): Change return type.
8035 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
8036 (gnu_nat_target::wait): Update.
8037 (gnu_nat_target::wait): Update.
8038 (gnu_nat_target::resume): Update.
8039 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
8040 (fbsd_nat_target::wait): Update.
8041 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
8043 (darwin_nat_target::attach): Update.
8044 * corelow.c (class core_target) <pid_to_str>: Change return type.
8045 (core_target::pid_to_str): Change return type.
8046 * target.c (normal_pid_to_str): Change return type.
8047 (default_pid_to_str): Likewise.
8048 (target_pid_to_str): Change return type.
8049 (target_translate_tls_address): Update.
8050 (target_announce_detach): Update.
8051 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
8053 (bsd_uthread_target::pid_to_str): Change return type.
8054 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
8056 (bsd_kvm_target::pid_to_str): Change return type.
8057 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
8059 (aix_thread_target::pid_to_str): Change return type.
8060 * target.h (struct target_ops) <pid_to_str>: Change return type.
8061 (target_pid_to_str, normal_pid_to_str): Likewise.
8062 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
8064 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
8066 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
8068 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
8070 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
8072 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
8075 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
8077 * NEWS: Mention that the new default MI version is 3. Mention
8078 changes to the output of commands and events that deal with
8079 multi-location breakpoints.
8080 * breakpoint.c: Include "mi/mi-out.h".
8081 (print_one_breakpoint): Change output syntax if using MI version
8083 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
8085 (mi_multi_location_breakpoint_output_fixed): New.
8086 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
8087 (mi_cmd_fix_multi_location_breakpoint_output): New.
8088 (mi_multi_location_breakpoint_output_fixed): New.
8089 * mi/mi-cmds.c (mi_cmds): Register command
8090 -fix-multi-location-breakpoint-output.
8091 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
8094 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8096 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
8097 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
8098 instantiate mi_ui_out based on interpreter name.
8099 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
8100 * mi/mi-main.c (mi_load_progress): Likewise.
8102 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8104 * NEWS: Combine separate "New targets" sections for 8.3.
8106 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8108 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
8109 (ppcfbsd_init_abi): Install gdbarch
8110 "fetch_tls_load_module_address" and "get_thread_local_address"
8113 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8115 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
8116 (riscv_fbsd_init_abi): Install gdbarch
8117 "fetch_tls_load_module_address" and "get_thread_local_address"
8120 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8122 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
8123 (i386fbsd_init_abi): Install gdbarch
8124 "fetch_tls_load_module_address" and "get_thread_local_address"
8127 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8129 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
8130 (amd64fbsd_init_abi): Install gdbarch
8131 "fetch_tls_load_module_address" and "get_thread_local_address"
8134 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8136 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
8137 (struct fbsd_pspace_data): New type.
8138 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
8139 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
8140 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
8141 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
8142 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
8144 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8146 * gdbtypes.c (lookup_struct_elt): New function.
8147 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
8148 * gdbtypes.h (struct struct_elt): New type.
8149 (lookup_struct_elt): New prototype.
8151 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8153 * gdbtypes.c (lookup_struct_elt_type): Update comment and
8154 remove disabled code block.
8156 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8158 * gdbarch.sh (get_thread_local_address): New method.
8159 * gdbarch.h, gdbarch.c: Regenerate.
8160 * target.c (target_translate_tls_address): Use
8161 gdbarch_get_thread_local_address if present instead of
8162 target::get_thread_local_address.
8164 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8166 * target.h (target::get_thread_local_address): Update comment.
8168 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8170 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
8171 objfile->separate_debug_objfile_backlink if not NULL.
8173 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8175 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
8176 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
8177 (amd64bsd_store_inferior_registers): Likewise.
8178 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
8179 Enable segment base registers.
8180 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
8181 PT_GETFSBASE and PT_GETGSBASE.
8182 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
8184 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
8185 segment base registers.
8186 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
8188 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8190 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
8191 Update calls to i386_target_description to add 'segments'
8193 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
8194 add segment base registers.
8195 * arch/i386.c (i386_create_target_description): Add 'segments'
8196 parameter to enable segment base registers.
8197 * arch/i386.h (i386_create_target_description): Likewise.
8198 * features/i386/32bit-segments.xml: New file.
8199 * features/i386/32bit-segments.c: Generate.
8200 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
8201 call to i386_target_description to add 'segments' parameter.
8202 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
8203 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
8204 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
8205 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
8206 if feature is present.
8207 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
8208 Add 'segments' parameter to call to i386_target_description.
8209 (i386_target_description): Add 'segments' parameter to enable
8210 segment base registers.
8211 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
8212 to call to i386_target_description.
8213 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
8214 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
8215 Define I386_NUM_REGS.
8216 (i386_target_description): Add 'segments' parameter to enable
8217 segment base registers.
8219 2019-03-12 Eli Zaretskii <eliz@gnu.org>
8222 * source-cache.c: #undef open and close, to avoid unresolved
8223 externals during linking.
8225 2019-03-12 Tom Tromey <tromey@adacore.com>
8227 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
8228 const. Add initializers.
8229 (_initialize_remote): Don't initialize ptid globals.
8231 2019-03-12 Pedro Alves <palves@redhat.com>
8233 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
8235 2019-03-12 Pedro Alves <palves@redhat.com>
8237 * cp-name-parser.y (main): Remove unused 'len' variable.
8239 2019-03-12 Tom Tromey <tromey@adacore.com>
8241 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
8242 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
8244 2019-03-12 Tom Tromey <tromey@adacore.com>
8246 * linux-nat.c (iterate_over_lwps): Update.
8247 (stop_callback): Remove parameter.
8248 (stop_wait_callback, detach_callback, resume_set_callback)
8249 (select_singlestep_lwp_callback, set_ignore_sigint)
8250 (status_callback, resumed_callback, resume_clear_callback)
8251 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
8253 (linux_nat_target::detach, linux_nat_target::resume)
8254 (linux_stop_and_wait_all_lwps, select_event_lwp)
8255 (linux_nat_filter_event, linux_nat_wait_1)
8256 (linux_nat_target::kill, linux_nat_target::stop)
8257 (linux_nat_target::stop): Update.
8258 (linux_nat_resume_callback): Change type.
8259 (resume_stopped_resumed_lwps, count_events_callback)
8260 (select_event_lwp_callback): Likewise.
8261 (linux_stop_lwp, linux_nat_stop_lwp): Update.
8262 * arm-linux-nat.c (struct update_registers_data): Remove.
8263 (update_registers_callback): Change type.
8264 (arm_linux_insert_hw_breakpoint1): Update.
8265 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
8267 (x86_linux_dr_set_addr): Update.
8268 (x86_linux_dr_set_control): Update.
8269 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
8270 (iterate_over_lwps): Use gdb::function_view.
8271 * nat/aarch64-linux-hw-point.c (struct
8272 aarch64_dr_update_callback_param): Remove.
8273 (debug_reg_change_callback): Change type.
8274 (aarch64_notify_debug_reg_change): Update.
8275 * s390-linux-nat.c (s390_refresh_per_info): Update.
8277 2019-03-11 Tom Tromey <tromey@adacore.com>
8279 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
8280 redundant assignment to "this_cu".
8282 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8284 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
8286 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8288 * gdbtypes.c (rank_one_type_parm_set): New function extracted
8290 (rank_one_type): ... this.
8292 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8294 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
8296 (rank_one_type): ... this.
8298 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8300 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
8302 (rank_one_type): ... this.
8304 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8306 * gdbtypes.c (rank_one_type_parm_float): New function extracted
8308 (rank_one_type): ... this.
8310 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8312 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
8314 (rank_one_type): ... this.
8316 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8318 * gdbtypes.c (rank_one_type_parm_range): New function extracted
8320 (rank_one_type): ... this.
8322 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8324 * gdbtypes.c (rank_one_type_parm_char): New function extracted
8326 (rank_one_type): ... this.
8328 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8330 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
8332 (rank_one_type): ... this.
8334 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8336 * gdbtypes.c (rank_one_type_parm_int): New function extracted
8338 (rank_one_type): ... this.
8340 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8342 * gdbtypes.c (rank_one_type_parm_func): New function extracted
8344 (rank_one_type): ... this.
8346 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8348 * gdbtypes.c (rank_one_type_parm_array): New function extracted
8350 (rank_one_type): ... this.
8352 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8354 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
8356 (rank_one_type): ... this.
8358 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8360 * inferior.c (initialize_inferiors): Ensure 'help set/show print
8361 inferior-events' shows the example events.
8363 2019-03-08 Eli Zaretskii <eliz@gnu.org>
8365 Support styling on native MS-Windows console
8368 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
8369 on MS-Windows if $TERM is not defined.
8371 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
8373 * posix-hdep.c (gdb_console_fputs):
8374 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
8376 * ui-file.h (gdb_console_fputs): Add prototype.
8378 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
8379 back to fputs only if the former returns zero.
8381 2019-03-07 Tom Tromey <tom@tromey.com>
8383 * symmisc.c (print_symbol_bcache_statistics): Update.
8384 (print_objfile_statistics): Update.
8385 * symfile.c (allocate_symtab): Update.
8386 * stabsread.c: Don't include bcache.h.
8387 * psymtab.h (struct psymbol_bcache): Don't declare.
8388 (class psymtab_storage) <psymbol_cache>: Now a bcache.
8389 (psymbol_bcache_init, psymbol_bcache_free)
8390 (psymbol_bcache_get_bcache): Don't declare.
8391 * psymtab.c (struct psymbol_bcache): Remove.
8392 (psymtab_storage::psymtab_storage): Update.
8393 (psymtab_storage::~psymtab_storage): Update.
8394 (psymbol_bcache_init, psymbol_bcache_free)
8395 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
8396 (add_psymbol_to_bcache): Update.
8397 (allocate_psymtab): Update.
8398 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8399 macro_cache>: No longer pointers.
8400 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
8401 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
8402 * macrotab.c (macro_bcache): Update.
8403 * macroexp.c: Don't include bcache.h.
8404 * gdbtypes.c (check_types_worklist): Update.
8405 (types_deeply_equal): Remove TRY/CATCH. Update.
8406 * elfread.c (elf_symtab_read): Update.
8407 * dwarf2read.c: Don't include bcache.h.
8408 * buildsym.c (buildsym_compunit::get_macro_table): Update.
8409 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
8410 (print_bcache_statistics, bcache_memory_used): Don't declare.
8411 (struct bcache): Move from bcache.c. Add constructor, destructor,
8412 methods. Rename all data members.
8413 * bcache.c (struct bcache): Move to bcache.h.
8414 (bcache::expand_hash_table): Rename from expand_hash_table.
8416 (bcache::insert): Rename from bcache_full.
8417 (bcache::compare): Rename from bcache_compare.
8418 (bcache_xmalloc): Remove.
8419 (bcache::~bcache): Rename from bcache_xfree.
8420 (bcache::print_statistics): Rename from print_bcache_statistics.
8421 (bcache::memory_used): Rename from bcache_memory_used.
8423 2019-03-07 Pedro Alves <palves@redhat.com>
8425 * infrun.c (normal_stop): Also check for
8426 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
8428 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
8430 * f-lang.c (value_from_host_double): Moved to...
8431 * value.c (value_from_host_double): ...here.
8432 * value.h (value_from_host_double): Declare.
8433 * guile/scm-math.c (vlscm_convert_typed_number): Use
8434 value_from_host_double.
8435 (vlscm_convert_number): Likewise.
8436 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
8437 * python/py-value.c (convert_value_from_python): Likewise.
8439 2019-03-06 Tom Tromey <tom@tromey.com>
8441 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
8443 2019-03-06 Tom Tromey <tom@tromey.com>
8445 * utils.h (free_current_contents): Don't declare.
8446 * utils.c (free_current_contents): Remove.
8448 2019-03-06 Tom Tromey <tom@tromey.com>
8450 * top.c (quit_force): Update.
8451 * main.c (captured_command_loop): Update.
8452 * common/new-op.c (operator new): Update.
8453 * common/common-exceptions.c (struct catcher)
8454 <save_cleanup_chain>: Remove member.
8455 (exceptions_state_mc_init): Update.
8456 (exception_try_scope_entry): Return nullptr.
8457 (exception_try_scope_exit, exception_rethrow)
8458 (throw_exception_sjlj, throw_exception_cxx): Update.
8459 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
8460 (all_cleanups, do_cleanups, discard_cleanups)
8461 (discard_final_cleanups, save_cleanups, save_final_cleanups)
8462 (restore_cleanups, restore_final_cleanups): Don't declare.
8463 (do_final_cleanups): Remove parameter.
8464 * common/cleanups.c (cleanup_chain, make_cleanup)
8465 (make_cleanup_dtor, all_cleanups, do_cleanups)
8466 (discard_my_cleanups, discard_cleanups)
8467 (discard_final_cleanups, save_my_cleanups, save_cleanups)
8468 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
8469 (null_cleanup): Remove.
8470 (do_final_cleanups): Remove parameter.
8472 2019-03-06 Tom Tromey <tom@tromey.com>
8474 * remote.c (remote_target::remote_parse_stop_reply): Use
8477 2019-03-06 Tom Tromey <tom@tromey.com>
8479 * stabsread.c (struct stabs_field_info): Rename from field_info.
8480 <list, fnlist>: Add initializers.
8481 <obstack>: New member.
8482 (read_member_functions, read_struct_fields, read_baseclasses):
8483 Allocate on obstack. Don't use cleanups.
8484 (read_one_struct_field, read_member_functions, read_struct_fields)
8485 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
8486 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
8487 (read_struct_type): Update.
8489 2019-03-06 Tom Tromey <tom@tromey.com>
8491 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
8492 * common/filestuff.h (make_cleanup_close): Don't declare.
8493 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
8496 2019-03-06 Tom Tromey <tom@tromey.com>
8498 * solib-aix.c: Use make_scope_exit.
8500 2019-03-06 Tom Tromey <tom@tromey.com>
8502 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
8503 Use make_scope_exit.
8505 2019-03-06 Tom Tromey <tom@tromey.com>
8507 * solib-svr4.c (disable_probes_interface): Remove parameter.
8508 (svr4_handle_solib_event): Use make_scope_exit.
8510 2019-03-06 Tom Tromey <tom@tromey.com>
8512 * remote.c (struct stop_reply_deleter): Remove.
8513 (stop_reply_up): Update.
8514 (struct stop_reply): Derive from notif_event. Don't typedef.
8515 <regcache>: Now a std::vector.
8516 (stop_reply_xfree): Remove.
8517 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
8518 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
8519 (remote_target::discard_pending_stop_replies): Use delete.
8520 (remote_target::remote_parse_stop_reply): Update.
8521 (remote_target::process_stop_reply): Update.
8522 * remote-notif.h (struct notif_event): Add virtual destructor.
8523 Remove "dtr" member.
8524 (struct notif_client) <alloc_event>: Return a unique_ptr.
8525 (notif_event_xfree): Don't declare.
8526 (notif_event_up): New typedef.
8527 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
8528 (notif_event_xfree, do_notif_event_xfree): Remove.
8529 (remote_notif_state_xfree): Update.
8531 2019-03-06 Tom Tromey <tom@tromey.com>
8533 * infrun.c (displaced_step_clear_cleanup): Now a
8534 forward_scope_exit type.
8535 (displaced_step_prepare_throw): Update.
8536 (displaced_step_fixup): Update.
8538 2019-03-06 Tom Tromey <tom@tromey.com>
8540 * inferior.h (class inferior): Update comment.
8541 * gdbthread.h (class thread_info): Update comment.
8543 2019-03-06 Joel Brobecker <brobecker@adacore.com>
8544 Tom Tromey <tom@tromey.com>
8546 * stabsread.h (struct stab_section_list): Remove.
8547 (coffstab_build_psymtabs): Update.
8548 * dbxread.c (symbuf_sections): Now a std::vector.
8549 (sect_idx): New global.
8550 (fill_symbuf): Update.
8551 (coffstab_build_psymtabs): Change type of stabsects parameter.
8553 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
8555 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
8556 (coff_locate_sections): Update.
8557 (coff_symfile_read): Remove cleanups. Update.
8558 (init_stringtab): Add storage parameter.
8559 (free_stringtab, free_stringtab_cleanup): Remove.
8560 (init_lineno): Add storage parameter.
8561 (free_linetab, free_linetab_cleanup): Remove.
8563 2019-03-06 Pedro Alves <palves@redhat.com>
8565 * linux-fork.c (fork_info::clobber_regs): Delete.
8566 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
8567 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
8569 (scoped_switch_fork_info::scoped_switch_fork_info)
8570 (checkpoint_command, linux_fork_context): Adjust
8571 fork_save_infrun_state calls.
8573 2019-03-06 Pedro Alves <palves@redhat.com>
8575 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
8576 (inf_has_multiple_threads): Return 'bool' and rewrite using
8577 inferior_info::threads().
8579 2019-03-06 Pedro Alves <palves@redhat.com>
8581 * linux-fork.c: Include <list>.
8582 (fork_list): Now a std::list instance.
8583 (fork_info): Add ctor, dtor, and in-class initialize all fields.
8584 (forks_exist_p, find_last_fork): Adjust.
8588 (free_fork): Delete, folded into fork_info::~fork_info().
8589 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
8591 (init_fork_list): Delete.
8592 (linux_fork_killall, linux_fork_mourn_inferior)
8593 (linux_fork_detach, info_checkpoints_command): Adjust.
8594 (_initialize_linux_fork): No longer call init_fork_list.
8596 2019-03-06 Pedro Alves <palves@redhat.com>
8598 * linux-fork.c (new_fork): New, split out of ...
8599 (add_fork): ... this. Return void. Move "first fork" special
8600 case from here, to ...
8601 (checkpoint_command): ... here.
8602 * linux-linux.h (add_fork): Return void.
8604 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8606 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
8608 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8609 Chris January <chris.january@arm.com>
8610 David Lecomber <david.lecomber@arm.com>
8612 * f-exp.y: New token, UNOP_INTRINSIC.
8613 (exp): New pattern using UNOP_INTRINSIC token.
8614 (f77_keywords): Add 'abs' keyword.
8615 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
8616 (value_from_host_double): New function.
8617 (evaluate_subexp_f): Support UNOP_ABS.
8619 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8621 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
8624 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8626 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
8627 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
8628 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
8630 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8632 * f-exp.y (convert_to_kind_type): Handle more type kinds.
8634 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8635 Chris January <chris.january@arm.com>
8637 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
8638 * f-exp.y: Define 'KIND' token.
8639 (exp): New pattern for KIND expressions.
8640 (ptype): Handle types with a kind extension.
8641 (direct_abs_decl): Extend to spot kind extensions.
8642 (f77_keywords): Add 'kind' to the list.
8643 (push_kind_type): New function.
8644 (convert_to_kind_type): New function.
8645 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
8646 * parse.c (operator_length_standard): Likewise.
8647 * parser-defs.h (enum type_pieces): Add tp_kind.
8648 * std-operator.def: Add UNOP_KIND.
8650 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8652 * f-exp.y (f_parse): Set yydebug.
8654 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8656 * f-lang.c (evaluate_subexp_f): New function.
8657 (exp_descriptor_f): New global.
8658 (f_language_defn): Use exp_descriptor_f instead of
8659 exp_descriptor_standard.
8661 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8663 * f-exp.y (struct token): Add comments.
8664 (dot_ops): Remove uppercase versions and the end marker.
8665 (f77_keywords): Likewise.
8666 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
8667 entries in the dot_ops array are case insensitive, and use
8668 strncasecmp to compare strings. Also some whitespace cleanup in
8669 this area. Similar for the f77_keywords array, except entries in
8670 this list might be case sensitive.
8672 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8674 * f-exp.y (struct f77_boolean_val): Add comments.
8675 (boolean_values): Remove uppercase versions, and end marker.
8676 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
8677 and use strncasecmp to achieve case insensitivity. Additionally,
8678 perform whitespace cleanup around this code.
8680 2019-03-06 Tom Tromey <tromey@adacore.com>
8682 * remote-sim.c (gdbsim_target_open): Use result of
8685 2019-03-06 Richard Bunt <richard.bunt@arm.com>
8686 Dirk Schubert <dirk.schubert@arm.com>
8687 Chris January <chris.january@arm.com>
8689 * eval.c (evaluate_subexp_standard): Call Fortran argument
8691 * f-lang.c (struct value): A value which can be passed into a
8692 Fortran function call.
8693 (fortran_argument_convert): Wrap Fortran arguments in a pointer
8695 (struct type): Value ready for a Fortran function call.
8696 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
8698 * f-lang.h (fortran_argument_convert): Declaration.
8699 (fortran_preserve_arg_pointer): Declaration.
8700 * infcall.c (value_arg_coerce): Call Fortran argument logic.
8702 2019-03-05 Tom Tromey <tromey@adacore.com>
8704 * python/py-prettyprint.c (print_string_repr): Remove #if.
8705 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
8707 2019-03-05 Tom Tromey <tromey@adacore.com>
8709 * target.c (the_dummy_target): Move later. Change type to
8711 (initialize_targets): Don't initialize the_dummy_target.
8713 2019-03-05 Tom Tromey <tromey@adacore.com>
8715 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
8716 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
8718 2019-03-05 Tom Tromey <tromey@adacore.com>
8720 * windows-nat.c (windows_nat_target::attach)
8721 (windows_nat_target::detach): Don't call gdb_flush.
8722 * valprint.c (generic_val_print, val_print, val_print_string):
8723 Don't call gdb_flush.
8724 * utils.c (defaulted_query): Don't call gdb_flush.
8725 * typeprint.c (print_type_scalar): Don't call gdb_flush.
8726 * target.c (target_announce_detach): Don't call gdb_flush.
8727 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
8728 * remote.c (extended_remote_target::attach): Don't call
8730 * procfs.c (procfs_target::detach): Don't call gdb_flush.
8731 * printcmd.c (do_examine): Don't call gdb_flush.
8732 (info_display_command): Don't call gdb_flush.
8733 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
8734 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
8735 * memattr.c (info_mem_command): Don't call gdb_flush.
8736 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
8737 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
8738 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
8739 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
8740 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
8741 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
8742 (gnu_nat_target::detach): Don't call gdb_flush.
8743 * f-valprint.c (f_val_print): Don't call gdb_flush.
8744 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
8745 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
8746 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
8748 * c-valprint.c (c_val_print): Don't call gdb_flush.
8749 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
8751 2019-03-05 Tom Tromey <tromey@adacore.com>
8753 * varobj.c (update_dynamic_varobj_children): Update.
8754 (install_default_visualizer): Use reset, not release.
8755 * value.c (set_internalvar): Update.
8756 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
8757 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
8758 ATTRIBUTE_UNUSED_RESULT.
8760 2019-03-05 Tom Tromey <tromey@adacore.com>
8762 * remote.c (class scoped_remote_fd) <release>: Add
8763 ATTRIBUTE_UNUSED_RESULT.
8765 2019-03-05 Tom Tromey <tromey@adacore.com>
8767 * macroexp.c (struct macro_buffer) <release>: Add
8768 ATTRIBUTE_UNUSED_RESULT.
8770 2019-03-05 Tom Tromey <tromey@adacore.com>
8772 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
8773 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
8774 ATTRIBUTE_UNUSED_RESULT.
8776 2019-03-05 Tom Tromey <tromey@adacore.com>
8778 * common/scoped_fd.h (class scoped_fd) <release>: Add
8779 ATTRIBUTE_UNUSED_RESULT.
8781 2019-03-05 Tom Tromey <tromey@adacore.com>
8783 * parser-defs.h (struct parser_state) <release>: Add
8784 ATTRIBUTE_UNUSED_RESULT.
8786 2019-03-05 Tom Tromey <tromey@adacore.com>
8788 * utils.h (class gdb_argv) <release>: Add
8789 ATTRIBUTE_UNUSED_RESULT.
8790 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
8792 2019-03-02 Eli Zaretskii <eliz@gnu.org>
8794 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
8795 for-loop range, to avoid compiler warnings.
8797 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
8798 avoid compiler warnings about unused variables.
8800 * NEWS: Mention end of support for native debugging on MS-Windows
8804 * common/netstuff.c:
8805 * gdbserver/gdbreplay.c
8806 * gdbserver/remote-utils.c:
8808 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
8809 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
8810 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
8811 'getaddrinfo' and 'freeaddrinfo' were not available before
8812 Windows XP, and mingw.org's MinGW headers by default define
8813 _WIN32_WINNT to 0x500.
8815 2019-03-01 Gary Benson <gbenson@redhat.com>
8817 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
8819 2019-02-28 Brian Vandenberg <phantall@gmail.com>
8820 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8823 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
8824 set_sigint_trap, clear_sigint_trap.
8826 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8828 * target.c (target_detach): Clear the regcache and the
8831 2019-02-27 Pedro Alves <palves@redhat.com>
8833 * utils.c (set_screen_size): When we cap the height/width sizes,
8834 tweak the corresponding command variable to show "unlimited":
8836 2019-02-27 Saagar Jha <saagar@saagarjha.com>
8837 Pedro Alves <palves@redhat.com>
8839 * utils.c (set_screen_size): Reduce "infinite" rows and columns
8840 before calling rl_set_screen_size.
8842 2019-02-27 Tom Tromey <tromey@adacore.com>
8844 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
8846 * python/py-value.c: Remove Python 2.4 workaround.
8847 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
8849 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
8850 Python 2.4 workaround.
8851 * python/python-internal.h: Remove Python 2.4 comment.
8852 (Py_ssize_t): Don't define.
8853 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
8854 (gdb_Py_DECREF): Remove Python 2.4 workaround.
8855 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
8856 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
8857 * python/python.c (do_start_initialization): Remove Python 2.4
8859 * python/py-prettyprint.c (class dummy_python_frame): Remove.
8860 (print_children): Remove Python 2.4 workaround.
8861 * python/py-inferior.c (buffer_procs): Remove Python 2.4
8863 (CHARBUFFERPROC_NAME): Remove.
8864 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
8865 Python 2.4 workaround.
8867 2019-02-27 Kevin Buettner <kevinb@redhat.com>
8869 * NEWS: Note minimum Python version.
8871 2019-02-27 Kevin Buettner <kevinb@redhat.com>
8873 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
8874 code from these functions. Remove corresponding ifdefs. Use
8875 Py_buffer_up instead of explicit calls to PyBuffer_Release.
8876 Remove gotos and target of gotos.
8877 (infpy_search_memory): Likewise.
8879 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8881 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
8882 (hppa_gdbarch_init): Don't register deleted functions with
8885 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8887 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
8888 (h8300_unwind_sp): Delete.
8889 (h8300_dummy_id): Delete.
8890 (h8300_gdbarch_init): Don't register deleted functions with
8893 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8895 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
8896 (ft32_unwind_pc): Delete.
8897 (ft32_unwind_sp): Delete.
8898 (ft32_gdbarch_init): Don't register deleted functions with
8901 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8903 * gdb/frv-tdep.c (frv_dummy_id): Delete.
8904 (frv_unwind_pc): Delete.
8905 (frv_unwind_sp): Delete.
8906 (frv_gdbarch_init): Don't register deleted functions with
8909 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8911 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
8912 (riscv_unwind_pc): Delete.
8913 (riscv_unwind_sp): Delete.
8914 (riscv_gdbarch_init): Don't register deleted functions with
8917 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8919 * gdb/csky-tdep.c (csky_dummy_id): Delete.
8920 (csky_unwind_pc): Delete.
8921 (csky_unwind_sp): Delete.
8922 (csky_gdbarch_init): Don't register deleted functions with
8925 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8927 * gdb/cris-tdep.c (cris_dummy_id): Delete.
8928 (cris_unwind_pc): Delete.
8929 (cris_unwind_sp): Delete.
8930 (cris_gdbarch_init): Don't register deleted functions with
8933 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8935 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
8936 (bfin_unwind_pc): Delete.
8937 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
8939 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8941 * gdb/arm-tdep.c (arm_dummy_id): Delete.
8942 (arm_unwind_pc): Delete.
8943 (arm_unwind_sp): Delete.
8944 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
8946 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8948 * gdb/arc-tdep.c (arc_dummy_id): Delete.
8949 (arc_unwind_pc): Delete.
8950 (arc_unwind_sp): Delete.
8951 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
8953 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8955 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
8956 (alpha_unwind_pc): Delete.
8957 (alpha_gdbarch_init): Don't register deleted functions with
8960 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8962 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
8963 (aarch64_unwind_pc): Delete.
8964 (aarch64_unwind_sp): Delete.
8965 (aarch64_gdbarch_init): Don't register deleted functions with
8968 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8970 * gdbtypes.c (type_align): Don't consider static members when
8971 computing structure alignment.
8973 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8975 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
8976 return 0 for other types.
8977 * arch-utils.c (default_type_align): Always return 0.
8978 * gdbarch.h: Regenerate.
8979 * gdbarch.sh (type_align): Extend comment.
8980 * gdbtypes.c (type_align): Add additional comments, always call
8981 gdbarch_type_align before applying the default rules.
8982 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
8983 generic code will then apply a suitable default.
8984 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
8985 types, return 0 for other types.
8987 2019-02-27 Joel Brobecker <brobecker@adacore.com>
8989 * NEWS: Create a new section for the next release branch.
8990 Rename the section of the current branch, now that it has
8993 2019-02-27 Joel Brobecker <brobecker@adacore.com>
8995 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
8996 * version.in: Bump version to 8.3.50.DATE-git.
8998 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
9000 * aix-thread.c (ptid_cmp): Remove unused variable.
9001 (get_signaled_thread): Likewise.
9002 (store_regs_user_thread): Likewise.
9003 (store_regs_kernel_thread): Likewise.
9004 (fetch_regs_kernel_thread): Remove shadowed variable.
9006 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
9008 * features/riscv/32bit-cpu.xml: Add register numbers.
9009 * features/riscv/32bit-fpu.c: Regenerate.
9010 * features/riscv/32bit-fpu.xml: Add register numbers.
9011 * features/riscv/64bit-cpu.xml: Add register numbers.
9012 * features/riscv/64bit-fpu.c: Regenerate.
9013 * features/riscv/64bit-fpu.xml: Add register numbers.
9015 2019-02-26 Kevin Buettner <kevinb@redhat.com>
9017 * NEWS: Mention two argument form of gdb.Value constructor.
9018 * python/py-value.c (convert_buffer_and_type_to_value): New
9020 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
9021 Add support for handling an optional second argument. Call
9022 convert_buffer_and_type_to_value as appropriate.
9023 * python/python-internal.h (Py_buffer_deleter): New struct.
9024 (Py_buffer_up): New typedef.
9026 2019-02-25 John Baldwin <jhb@FreeBSD.org>
9028 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
9029 instead of releasing ownership.
9031 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
9033 * dwarf2read.c (open_and_init_dwp_file): Call
9034 elf_numsections instead of bfd_count_sections to initialize
9035 dwp_file->num_sections.
9037 2019-02-25 Tom Tromey <tromey@adacore.com>
9039 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
9041 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
9043 * gcore.in: Add '--readnever' option when invoking GDB.
9045 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
9047 * MAINTAINERS: Update my email address.
9049 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
9051 * build-id.c (build_id_to_debug_bfd_1): New function.
9052 (build_id_to_debug_bfd): Look for separate debug file in
9055 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
9057 * gdbarch.sh: Update the copyright year range that is placed into
9060 2019-02-22 Keith Seitz <keiths@redhat.com>
9063 * linespec.c (create_sals_line_offset): Search for the default
9064 symtab's filename instead of its fullname.
9066 2019-02-21 Alan Hayward <alan.hayward@arm.com>
9068 * NEWS: Update style defaults.
9070 2019-02-21 Alan Hayward <alan.hayward@arm.com>
9072 * main.c (captured_main_1): Disable styling in batch mode.
9074 2019-02-20 Tom Tromey <tom@tromey.com>
9076 * symtab.c (symtab_symbol_info): Fix typos.
9078 2019-02-20 Tom Tromey <tromey@adacore.com>
9080 * findcmd.c (_initialize_mem_search): Use upper case for
9081 metasyntactic variables.
9083 2019-02-20 Alan Hayward <alan.hayward@arm.com>
9085 * aarch64-tdep.c (aarch64_add_reggroups): New function.
9086 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
9088 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
9090 * top.h (source_file_name): Change to std::string.
9091 * top.c (source_file_name): Likewise.
9092 (command_line_input): Adjust.
9093 * cli/cli-script.c (script_from_file): Adjust.
9095 2019-02-19 Tom Tromey <tromey@adacore.com>
9097 * ravenscar-thread.c
9098 (ravenscar_thread_target::update_thread_list): Don't call
9099 ada_build_task_list.
9100 * ada-lang.h (ada_build_task_list): Don't declare.
9101 * ada-tasks.c (struct ada_tasks_inferior_data)
9102 <task_list_valid_p>: Now bool.
9103 (read_known_tasks, ada_task_list_changed)
9104 (ada_tasks_invalidate_inferior_data): Update.
9105 (read_known_tasks_array): Return bool.
9106 (read_known_tasks_list): Likewise.
9107 (read_known_tasks): Return void.
9108 (ada_build_task_list): Now static.
9110 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
9112 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
9113 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
9115 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9117 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
9118 variant for ada_tasks_pspace_data_handle and
9119 ada_tasks_inferior_data_handle.
9120 (ada_tasks_pspace_data_cleanup): New function.
9121 (ada_tasks_inferior_data_cleanup): New function.
9123 2019-02-17 Tom Tromey <tom@tromey.com>
9125 * macrotab.h (macro_source_fullname): Return a std::string.
9126 * macrotab.c (macro_include, check_for_redefinition)
9127 (macro_undef, macro_lookup_definition, foreach_macro)
9128 (foreach_macro_in_scope): Update.
9129 (macro_source_fullname): Return a std::string.
9130 * macrocmd.c (show_pp_source_pos): Update.
9132 2019-02-17 Tom Tromey <tom@tromey.com>
9134 * macrocmd.c (show_pp_source_pos): Style the file names.
9136 2019-02-17 Tom Tromey <tom@tromey.com>
9139 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
9141 2019-02-17 Tom Tromey <tom@tromey.com>
9143 * ada-lang.c (user_select_syms): Use filtered printing.
9144 * utils.c (wrap_style): New global.
9145 (desired_style): Remove.
9146 (emit_style_escape): Add stream parameter.
9147 (set_output_style, reset_terminal_style, prompt_for_continue):
9149 (flush_wrap_buffer): Only flush gdb_stdout.
9150 (wrap_here): Set wrap_style.
9151 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
9152 treat escape sequences as a character. Change when wrap buffer is
9154 (fputs_styled): Do not set the output style when the default is
9156 * ui-style.h (struct ui_file_style) <is_default>: New method.
9157 * source.c (print_source_lines_base): Emit escape sequences in one
9160 2019-02-17 Joel Brobecker <brobecker@adacore.com>
9162 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
9163 integers and enumeration types.
9165 2019-02-17 Joel Brobecker <brobecker@adacore.com>
9167 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
9168 instead of lookup_symbol_in_language
9169 (do_exact_match): New function.
9170 (ada_get_symbol_name_matcher): Return do_exact_match when
9171 doing a verbatim match.
9173 2019-02-15 Tom Tromey <tromey@adacore.com>
9175 * ravenscar-thread.c (ravenscar_thread_target::resume)
9176 (ravenscar_thread_target::wait): Special case wildcard requests.
9178 2019-02-15 Tom Tromey <tromey@adacore.com>
9180 * ravenscar-thread.c (base_ptid): Remove.
9181 (struct ravenscar_thread_target) <close>: New method.
9182 <m_base_ptid>: New member.
9183 <update_inferior_ptid, active_task, task_is_currently_active,
9184 runtime_initialized>: Declare methods.
9185 <ravenscar_thread_target>: Add constructor.
9186 (ravenscar_thread_target::task_is_currently_active)
9187 (ravenscar_thread_target::update_inferior_ptid)
9188 (ravenscar_runtime_initialized): Rename. Now methods.
9189 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
9190 (ravenscar_thread_target::update_thread_list): Update.
9191 (ravenscar_thread_target::active_task): Now method.
9192 (ravenscar_thread_target::store_registers)
9193 (ravenscar_thread_target::prepare_to_store)
9194 (ravenscar_thread_target::prepare_to_store)
9195 (ravenscar_thread_target::mourn_inferior): Update.
9196 (ravenscar_inferior_created): Use "new" to create target.
9197 (ravenscar_thread_target::get_ada_task_ptid): Update.
9198 (_initialize_ravenscar): Don't initialize base_ptid.
9199 (ravenscar_ops): Remove global.
9201 2019-02-15 Tom Tromey <tromey@adacore.com>
9203 * target.h (push_target): Declare new overload.
9204 * target.c (push_target): New overload, taking an rvalue reference.
9205 * remote.c (remote_target::open_1): Use push_target overload.
9206 * corelow.c (core_target_open): Use push_target overload.
9208 2019-02-15 Tom Tromey <tromey@adacore.com>
9210 * ravenscar-thread.c (is_ravenscar_task)
9211 (ravenscar_task_is_currently_active): Return bool.
9212 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
9213 (_initialize_ravenscar): Remove "(void)".
9214 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
9217 2019-02-15 Tom Tromey <tromey@adacore.com>
9219 * ravenscar-thread.c (ravenscar_runtime_initializer)
9220 (has_ravenscar_runtime, get_running_thread_id)
9221 (ravenscar_thread_target::resume): Fix indentation.
9223 2019-02-15 Tom Tromey <tromey@adacore.com>
9225 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
9226 from ravenscar_arch_ops.
9227 (sparc_ravenscar_ops::fetch_registers)
9228 (sparc_ravenscar_ops::store_registers): Now methods.
9229 (sparc_ravenscar_prepare_to_store): Remove.
9230 (sparc_ravenscar_ops): Redefine.
9231 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
9232 methods and destructor. Remove members.
9233 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
9234 (ravenscar_thread_target::store_registers)
9235 (ravenscar_thread_target::prepare_to_store): Update.
9236 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
9238 (struct ppc_ravenscar_powerpc_ops): Derive from
9240 (ppc_ravenscar_powerpc_ops::fetch_registers)
9241 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
9242 (ppc_ravenscar_powerpc_ops): Redefine.
9243 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
9244 (ppc_ravenscar_e500_ops::fetch_registers)
9245 (ppc_ravenscar_e500_ops::store_registers): Now methods.
9246 (ppc_ravenscar_e500_ops): Redefine.
9247 * aarch64-ravenscar-thread.c
9248 (aarch64_ravenscar_generic_prepare_to_store): Remove.
9249 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
9250 (aarch64_ravenscar_fetch_registers)
9251 (aarch64_ravenscar_store_registers): Now methods.
9252 (aarch64_ravenscar_ops): Redefine.
9254 2019-02-15 Tom Tromey <tromey@adacore.com>
9256 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
9257 (ravenscar_thread_target::stopped_by_hw_breakpoint)
9258 (ravenscar_thread_target::stopped_by_watchpoint)
9259 (ravenscar_thread_target::stopped_data_address)
9260 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
9262 2019-02-15 Tom Tromey <tromey@adacore.com>
9264 * ravenscar-thread.c: Fix some typos.
9266 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9267 Tom Tromey <tromey@adacore.com>
9269 * ada-lang.c (ada_exception_sal): Change addr_string to a
9271 (create_ada_exception_catchpoint): Update.
9273 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9274 Tom Tromey <tromey@adacore.com>
9276 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
9277 (bp_location_ops): Remove.
9278 (base_breakpoint_allocate_location): Update.
9279 (free_bp_location): Update.
9280 * ada-lang.c (class ada_catchpoint_location)
9281 <ada_catchpoint_location>: Remove ops parameter.
9282 (ada_catchpoint_location_dtor): Remove.
9283 (ada_catchpoint_location_ops): Remove.
9284 (allocate_location_exception): Update.
9285 * breakpoint.h (struct bp_location_ops): Remove.
9286 (class bp_location) <bp_location>: Remove bp_location_ops
9288 <~bp_location>: Add destructor.
9291 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
9292 Pedro Alves <palves@redhat.com>
9294 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
9297 2019-02-14 David Michael <fedora.dm0@gmail.com>
9298 Samuel Thibault <samuel.thibault@gnu.org>
9299 Thomas Schwinge <thomas@codesourcery.com>
9301 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
9302 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
9304 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
9306 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
9307 (check_empty): Use "const char *".
9309 * gnu-nat.c (gnu_nat_target::detach): Instead of
9310 'detach_inferior (pid)' call
9311 'detach_inferior (find_inferior_pid (pid))'.
9313 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
9314 'nat/fork-inferior.o'.
9315 * gnu-nat.c: #include "nat/fork-inferior.h".
9317 * gnu-nat.c (gnu_nat_target::detach): Instead of
9318 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
9319 * gnu-nat.h: #include "inf-child.h".
9320 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
9321 'i386_gnu_nat_target::fetch_registers'.
9322 (gnu_store_registers): Rename/move to
9323 'i386_gnu_nat_target::store_registers'.
9325 * config/i386/nm-i386gnu.h: Don't "#include" any files.
9326 * gnu-nat.h (mach_thread_info): New function.
9327 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
9329 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
9331 2019-02-14 Frederic Konrad <konrad@adacore.com>
9333 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
9335 2019-02-14 Joel Brobecker <brobecker@adacore.com>
9337 * windows-nat.c (windows_add_thread): Add new parameter
9338 "main_thread_p" with default value set to false. Update
9339 function documentation as well as all callers.
9340 (windows_delete_thread): Likewise.
9341 (fake_create_process): Update call to windows_add_thread.
9342 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
9343 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
9344 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
9345 call to windows_delete_thread.
9347 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
9349 * MAINTAINERS: Add Andrew Burgess as global maintainer.
9351 2019-02-12 John Baldwin <jhb@FreeBSD.org>
9353 * symfile.c (find_separate_debug_file): Use canonical path of
9354 sysroot with child_path instead of gdb_sysroot if it is valid.
9356 2019-02-12 John Baldwin <jhb@FreeBSD.org>
9358 * symfile.c (find_separate_debug_file): Use child_path to
9359 determine if an object file is under a sysroot.
9361 2019-02-12 John Baldwin <jhb@FreeBSD.org>
9363 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9364 unittests/child-path-selftests.c.
9365 * common/pathstuff.c (child_path): New function.
9366 * common/pathstuff.h (child_path): New prototype.
9367 * unittests/child-path-selftests.c: New file.
9369 2019-02-12 John Baldwin <jhb@FreeBSD.org>
9371 * symfile.c (find_separate_debug_file): Look for separate debug
9372 files in debug directories under the sysroot.
9374 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9376 * symtab.h (struct minimal_symbol data_p): New const method.
9377 (struct minimal_symbol text_p): Likewise.
9378 * symtab.c (output_source_filename): Use file name style
9380 (print_symbol_info): Likewise.
9381 (print_msymbol_info): Use address style to print addresses.
9382 Use function name style to print executable text symbols.
9383 (expand_symtab_containing_pc): Use data_p.
9384 (find_pc_sect_compunit_symtab): Likewise.
9386 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9388 * breakpoint.c (describe_other_breakpoints): Use address style
9390 (say_where): Likewise.
9392 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9394 * ada-typeprint.c (print_func_type): Print function name
9395 style to print function name.
9396 * c-typeprint.c (c_print_type_1): Likewise.
9398 2019-02-11 Alan Hayward <alan.hayward@arm.com>
9400 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
9403 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9405 * c-exp.y (direct_abs_decl): Use emplace_back to record the
9408 2019-02-10 Joel Brobecker <brobecker@adacore.com>
9410 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
9411 TYPE_CODE_REF types.
9413 2019-02-08 Jim Wilson <jimw@sifive.com>
9415 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
9416 (riscv_linux_fregset): New.
9417 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
9419 2019-02-07 Tom Tromey <tom@tromey.com>
9421 * thread.c (thread_cancel_execution_command): Update.
9422 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
9424 (struct thread_fsm_ops): Remove.
9425 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
9426 (thread_fsm_should_stop, thread_fsm_return_value)
9427 (thread_fsm_set_finished, thread_fsm_finished_p)
9428 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
9430 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
9431 * infrun.c (clear_proceed_status_thread)
9432 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
9433 (print_stop_event): Update.
9434 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
9436 (step_command_fsm_ops): Remove.
9437 (new_step_command_fsm): Remove.
9439 (step_command_fsm::should_stop): Rename from
9440 step_command_fsm_should_stop.
9441 (step_command_fsm::clean_up): Rename from
9442 step_command_fsm_clean_up.
9443 (step_command_fsm::do_async_reply_reason): Rename from
9444 step_command_fsm_async_reply_reason.
9445 (struct until_next_fsm): Inherit from thread_fsm. Add
9447 (until_next_fsm_ops): Remove.
9448 (new_until_next_fsm): Remove.
9449 (until_next_fsm::should_stop): Rename from
9450 until_next_fsm_should_stop.
9451 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
9452 (until_next_fsm::do_async_reply_reason): Rename from
9453 until_next_fsm_async_reply_reason.
9454 (struct finish_command_fsm): Inherit from thread_fsm. Add
9455 constructor. Change type of breakpoint.
9456 (finish_command_fsm_ops): Remove.
9457 (new_finish_command_fsm): Remove.
9458 (finish_command_fsm::should_stop): Rename from
9459 finish_command_fsm_should_stop.
9460 (finish_command_fsm::clean_up): Rename from
9461 finish_command_fsm_clean_up.
9462 (finish_command_fsm::return_value): Rename from
9463 finish_command_fsm_return_value.
9464 (finish_command_fsm::do_async_reply_reason): Rename from
9465 finish_command_fsm_async_reply_reason.
9466 (finish_command): Update.
9467 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
9469 (call_thread_fsm_ops): Remove.
9470 (call_thread_fsm::call_thread_fsm): Rename from
9471 new_call_thread_fsm.
9472 (call_thread_fsm::should_stop): Rename from
9473 call_thread_fsm_should_stop.
9474 (call_thread_fsm::should_notify_stop): Rename from
9475 call_thread_fsm_should_notify_stop.
9476 (run_inferior_call, call_function_by_hand_dummy): Update.
9477 * cli/cli-interp.c (should_print_stop_to_console): Update.
9478 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
9479 Add constructor. Change type of location_breakpoint,
9481 (until_break_fsm_ops): Remove.
9482 (new_until_break_fsm): Remove.
9483 (until_break_fsm::should_stop): Rename from
9484 until_break_fsm_should_stop.
9485 (until_break_fsm::clean_up): Rename from
9486 until_break_fsm_clean_up.
9487 (until_break_fsm::do_async_reply_reason): Rename from
9488 until_break_fsm_async_reply_reason.
9489 (until_break_command): Update.
9490 * thread-fsm.c: Remove.
9491 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
9493 2019-02-07 Tom Tromey <tom@tromey.com>
9495 * yy-remap.h: Add include guard.
9496 * xtensa-tdep.h: Add include guard.
9497 * xcoffread.h: Rename include guard.
9498 * varobj-iter.h: Add include guard.
9499 * tui/tui.h: Rename include guard.
9500 * tui/tui-winsource.h: Rename include guard.
9501 * tui/tui-wingeneral.h: Rename include guard.
9502 * tui/tui-windata.h: Rename include guard.
9503 * tui/tui-win.h: Rename include guard.
9504 * tui/tui-stack.h: Rename include guard.
9505 * tui/tui-source.h: Rename include guard.
9506 * tui/tui-regs.h: Rename include guard.
9507 * tui/tui-out.h: Rename include guard.
9508 * tui/tui-layout.h: Rename include guard.
9509 * tui/tui-io.h: Rename include guard.
9510 * tui/tui-hooks.h: Rename include guard.
9511 * tui/tui-file.h: Rename include guard.
9512 * tui/tui-disasm.h: Rename include guard.
9513 * tui/tui-data.h: Rename include guard.
9514 * tui/tui-command.h: Rename include guard.
9515 * tic6x-tdep.h: Add include guard.
9516 * target/waitstatus.h: Rename include guard.
9517 * target/wait.h: Rename include guard.
9518 * target/target.h: Rename include guard.
9519 * target/resume.h: Rename include guard.
9520 * target-float.h: Rename include guard.
9521 * stabsread.h: Add include guard.
9522 * rs6000-tdep.h: Add include guard.
9523 * riscv-fbsd-tdep.h: Add include guard.
9524 * regformats/regdef.h: Rename include guard.
9525 * record.h: Rename include guard.
9526 * python/python.h: Rename include guard.
9527 * python/python-internal.h: Rename include guard.
9528 * python/py-stopevent.h: Rename include guard.
9529 * python/py-ref.h: Rename include guard.
9530 * python/py-record.h: Rename include guard.
9531 * python/py-record-full.h: Rename include guard.
9532 * python/py-record-btrace.h: Rename include guard.
9533 * python/py-instruction.h: Rename include guard.
9534 * python/py-events.h: Rename include guard.
9535 * python/py-event.h: Rename include guard.
9536 * procfs.h: Add include guard.
9537 * proc-utils.h: Add include guard.
9538 * p-lang.h: Add include guard.
9539 * or1k-tdep.h: Rename include guard.
9540 * observable.h: Rename include guard.
9541 * nto-tdep.h: Rename include guard.
9542 * nat/x86-linux.h: Rename include guard.
9543 * nat/x86-linux-dregs.h: Rename include guard.
9544 * nat/x86-gcc-cpuid.h: Add include guard.
9545 * nat/x86-dregs.h: Rename include guard.
9546 * nat/x86-cpuid.h: Rename include guard.
9547 * nat/ppc-linux.h: Rename include guard.
9548 * nat/mips-linux-watch.h: Rename include guard.
9549 * nat/linux-waitpid.h: Rename include guard.
9550 * nat/linux-ptrace.h: Rename include guard.
9551 * nat/linux-procfs.h: Rename include guard.
9552 * nat/linux-osdata.h: Rename include guard.
9553 * nat/linux-nat.h: Rename include guard.
9554 * nat/linux-namespaces.h: Rename include guard.
9555 * nat/linux-btrace.h: Rename include guard.
9556 * nat/glibc_thread_db.h: Rename include guard.
9557 * nat/gdb_thread_db.h: Rename include guard.
9558 * nat/gdb_ptrace.h: Rename include guard.
9559 * nat/fork-inferior.h: Rename include guard.
9560 * nat/amd64-linux-siginfo.h: Rename include guard.
9561 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
9562 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
9563 * nat/aarch64-linux.h: Rename include guard.
9564 * nat/aarch64-linux-hw-point.h: Rename include guard.
9565 * mn10300-tdep.h: Add include guard.
9566 * mips-linux-tdep.h: Add include guard.
9567 * mi/mi-parse.h: Rename include guard.
9568 * mi/mi-out.h: Rename include guard.
9569 * mi/mi-main.h: Rename include guard.
9570 * mi/mi-interp.h: Rename include guard.
9571 * mi/mi-getopt.h: Rename include guard.
9572 * mi/mi-console.h: Rename include guard.
9573 * mi/mi-common.h: Rename include guard.
9574 * mi/mi-cmds.h: Rename include guard.
9575 * mi/mi-cmd-break.h: Rename include guard.
9576 * m2-lang.h: Add include guard.
9577 * location.h: Rename include guard.
9578 * linux-record.h: Rename include guard.
9579 * linux-nat.h: Add include guard.
9580 * linux-fork.h: Add include guard.
9581 * i386-darwin-tdep.h: Rename include guard.
9582 * hppa-linux-offsets.h: Add include guard.
9583 * guile/guile.h: Rename include guard.
9584 * guile/guile-internal.h: Rename include guard.
9585 * gnu-nat.h: Rename include guard.
9586 * gdb-stabs.h: Rename include guard.
9587 * frv-tdep.h: Add include guard.
9588 * f-lang.h: Add include guard.
9589 * event-loop.h: Add include guard.
9590 * darwin-nat.h: Rename include guard.
9591 * cp-abi.h: Rename include guard.
9592 * config/sparc/nm-sol2.h: Rename include guard.
9593 * config/nm-nto.h: Rename include guard.
9594 * config/nm-linux.h: Add include guard.
9595 * config/i386/nm-i386gnu.h: Rename include guard.
9596 * config/djgpp/nl_types.h: Rename include guard.
9597 * config/djgpp/langinfo.h: Rename include guard.
9598 * compile/gcc-cp-plugin.h: Add include guard.
9599 * compile/gcc-c-plugin.h: Add include guard.
9600 * compile/compile.h: Rename include guard.
9601 * compile/compile-object-run.h: Rename include guard.
9602 * compile/compile-object-load.h: Rename include guard.
9603 * compile/compile-internal.h: Rename include guard.
9604 * compile/compile-cplus.h: Rename include guard.
9605 * compile/compile-c.h: Rename include guard.
9606 * common/xml-utils.h: Rename include guard.
9607 * common/x86-xstate.h: Rename include guard.
9608 * common/version.h: Rename include guard.
9609 * common/vec.h: Rename include guard.
9610 * common/tdesc.h: Rename include guard.
9611 * common/selftest.h: Rename include guard.
9612 * common/scoped_restore.h: Rename include guard.
9613 * common/scoped_mmap.h: Rename include guard.
9614 * common/scoped_fd.h: Rename include guard.
9615 * common/safe-iterator.h: Rename include guard.
9616 * common/run-time-clock.h: Rename include guard.
9617 * common/refcounted-object.h: Rename include guard.
9618 * common/queue.h: Rename include guard.
9619 * common/ptid.h: Rename include guard.
9620 * common/print-utils.h: Rename include guard.
9621 * common/preprocessor.h: Rename include guard.
9622 * common/pathstuff.h: Rename include guard.
9623 * common/observable.h: Rename include guard.
9624 * common/netstuff.h: Rename include guard.
9625 * common/job-control.h: Rename include guard.
9626 * common/host-defs.h: Rename include guard.
9627 * common/gdb_wait.h: Rename include guard.
9628 * common/gdb_vecs.h: Rename include guard.
9629 * common/gdb_unlinker.h: Rename include guard.
9630 * common/gdb_unique_ptr.h: Rename include guard.
9631 * common/gdb_tilde_expand.h: Rename include guard.
9632 * common/gdb_sys_time.h: Rename include guard.
9633 * common/gdb_string_view.h: Rename include guard.
9634 * common/gdb_splay_tree.h: Rename include guard.
9635 * common/gdb_setjmp.h: Rename include guard.
9636 * common/gdb_ref_ptr.h: Rename include guard.
9637 * common/gdb_optional.h: Rename include guard.
9638 * common/gdb_locale.h: Rename include guard.
9639 * common/gdb_assert.h: Rename include guard.
9640 * common/filtered-iterator.h: Rename include guard.
9641 * common/filestuff.h: Rename include guard.
9642 * common/fileio.h: Rename include guard.
9643 * common/environ.h: Rename include guard.
9644 * common/common-utils.h: Rename include guard.
9645 * common/common-types.h: Rename include guard.
9646 * common/common-regcache.h: Rename include guard.
9647 * common/common-inferior.h: Rename include guard.
9648 * common/common-gdbthread.h: Rename include guard.
9649 * common/common-exceptions.h: Rename include guard.
9650 * common/common-defs.h: Rename include guard.
9651 * common/common-debug.h: Rename include guard.
9652 * common/cleanups.h: Rename include guard.
9653 * common/buffer.h: Rename include guard.
9654 * common/btrace-common.h: Rename include guard.
9655 * common/break-common.h: Rename include guard.
9656 * cli/cli-utils.h: Rename include guard.
9657 * cli/cli-style.h: Rename include guard.
9658 * cli/cli-setshow.h: Rename include guard.
9659 * cli/cli-script.h: Rename include guard.
9660 * cli/cli-interp.h: Rename include guard.
9661 * cli/cli-decode.h: Rename include guard.
9662 * cli/cli-cmds.h: Rename include guard.
9663 * charset-list.h: Add include guard.
9664 * buildsym-legacy.h: Rename include guard.
9665 * bfin-tdep.h: Add include guard.
9666 * ax.h: Rename include guard.
9667 * arm-linux-tdep.h: Add include guard.
9668 * arm-fbsd-tdep.h: Add include guard.
9669 * arch/xtensa.h: Rename include guard.
9670 * arch/tic6x.h: Add include guard.
9671 * arch/i386.h: Add include guard.
9672 * arch/arm.h: Rename include guard.
9673 * arch/arm-linux.h: Rename include guard.
9674 * arch/arm-get-next-pcs.h: Rename include guard.
9675 * arch/amd64.h: Add include guard.
9676 * arch/aarch64-insn.h: Rename include guard.
9677 * arch-utils.h: Rename include guard.
9678 * annotate.h: Add include guard.
9679 * amd64-darwin-tdep.h: Rename include guard.
9680 * aarch64-linux-tdep.h: Add include guard.
9681 * aarch64-fbsd-tdep.h: Add include guard.
9682 * aarch32-linux-nat.h: Add include guard.
9684 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9686 * macrotab.c (macro_define_internal): New function that
9687 factorizes macro_define_object_internal and macro_define_function
9689 (macro_define_object_internal): Use macro_define_internal.
9690 (macro_define_function): Likewise.
9692 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9694 * macrocmd.c (extract_identifier): Return
9695 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
9698 2019-02-06 John Baldwin <jhb@FreeBSD.org>
9700 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
9702 2019-02-05 Tom Tromey <tom@tromey.com>
9704 * target.c (target_stack::unpush): Move assertion earlier.
9706 2019-01-30 Tom Tromey <tom@tromey.com>
9709 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
9710 (gdbpy_parse_and_eval): Likewise.
9711 * python/python-internal.h (gdbpy_allow_threads): New class.
9713 2019-01-28 John Baldwin <jhb@FreeBSD.org>
9715 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
9716 (aarch64_fbsd_fpregmap): Move earlier.
9717 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
9718 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
9719 instead of individual calls to trad_frame_set_reg_addr.
9720 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
9722 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
9723 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
9724 instead of individual calls to trad_frame_set_reg_addr.
9726 2019-01-28 Alan Hayward <alan.hayward@arm.com>
9728 * CONTRIBUTE: Replace contribution list with wiki link.
9730 2019-01-25 Tom Tromey <tom@tromey.com>
9732 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
9734 2019-01-25 Tom Tromey <tom@tromey.com>
9736 * xtensa-linux-nat.c: Fix common/ includes.
9737 * xml-support.h: Fix common/ includes.
9738 * xml-support.c: Fix common/ includes.
9739 * x86-linux-nat.c: Fix common/ includes.
9740 * windows-nat.c: Fix common/ includes.
9741 * varobj.h: Fix common/ includes.
9742 * varobj.c: Fix common/ includes.
9743 * value.c: Fix common/ includes.
9744 * valops.c: Fix common/ includes.
9745 * utils.c: Fix common/ includes.
9746 * unittests/xml-utils-selftests.c: Fix common/ includes.
9747 * unittests/utils-selftests.c: Fix common/ includes.
9748 * unittests/unpack-selftests.c: Fix common/ includes.
9749 * unittests/tracepoint-selftests.c: Fix common/ includes.
9750 * unittests/style-selftests.c: Fix common/ includes.
9751 * unittests/string_view-selftests.c: Fix common/ includes.
9752 * unittests/scoped_restore-selftests.c: Fix common/ includes.
9753 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
9754 * unittests/scoped_fd-selftests.c: Fix common/ includes.
9755 * unittests/rsp-low-selftests.c: Fix common/ includes.
9756 * unittests/parse-connection-spec-selftests.c: Fix common/
9758 * unittests/optional-selftests.c: Fix common/ includes.
9759 * unittests/offset-type-selftests.c: Fix common/ includes.
9760 * unittests/observable-selftests.c: Fix common/ includes.
9761 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
9762 * unittests/memrange-selftests.c: Fix common/ includes.
9763 * unittests/memory-map-selftests.c: Fix common/ includes.
9764 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
9765 * unittests/function-view-selftests.c: Fix common/ includes.
9766 * unittests/environ-selftests.c: Fix common/ includes.
9767 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
9768 * unittests/common-utils-selftests.c: Fix common/ includes.
9769 * unittests/cli-utils-selftests.c: Fix common/ includes.
9770 * unittests/array-view-selftests.c: Fix common/ includes.
9771 * ui-file.c: Fix common/ includes.
9772 * tui/tui-io.c: Fix common/ includes.
9773 * tracepoint.h: Fix common/ includes.
9774 * tracepoint.c: Fix common/ includes.
9775 * tracefile-tfile.c: Fix common/ includes.
9776 * top.h: Fix common/ includes.
9777 * top.c: Fix common/ includes.
9778 * thread.c: Fix common/ includes.
9779 * target/waitstatus.h: Fix common/ includes.
9780 * target/waitstatus.c: Fix common/ includes.
9781 * target.h: Fix common/ includes.
9782 * target.c: Fix common/ includes.
9783 * target-memory.c: Fix common/ includes.
9784 * target-descriptions.c: Fix common/ includes.
9785 * symtab.h: Fix common/ includes.
9786 * symfile.c: Fix common/ includes.
9787 * stap-probe.c: Fix common/ includes.
9788 * spu-linux-nat.c: Fix common/ includes.
9789 * sparc-nat.c: Fix common/ includes.
9790 * source.c: Fix common/ includes.
9791 * solib.c: Fix common/ includes.
9792 * solib-target.c: Fix common/ includes.
9793 * ser-unix.c: Fix common/ includes.
9794 * ser-tcp.c: Fix common/ includes.
9795 * ser-pipe.c: Fix common/ includes.
9796 * ser-base.c: Fix common/ includes.
9797 * selftest-arch.c: Fix common/ includes.
9798 * s12z-tdep.c: Fix common/ includes.
9799 * rust-exp.y: Fix common/ includes.
9800 * rs6000-aix-tdep.c: Fix common/ includes.
9801 * riscv-tdep.c: Fix common/ includes.
9802 * remote.c: Fix common/ includes.
9803 * remote-notif.h: Fix common/ includes.
9804 * remote-fileio.h: Fix common/ includes.
9805 * remote-fileio.c: Fix common/ includes.
9806 * regcache.h: Fix common/ includes.
9807 * regcache.c: Fix common/ includes.
9808 * record-btrace.c: Fix common/ includes.
9809 * python/python.c: Fix common/ includes.
9810 * python/py-type.c: Fix common/ includes.
9811 * python/py-inferior.c: Fix common/ includes.
9812 * progspace.h: Fix common/ includes.
9813 * producer.c: Fix common/ includes.
9814 * procfs.c: Fix common/ includes.
9815 * proc-api.c: Fix common/ includes.
9816 * printcmd.c: Fix common/ includes.
9817 * ppc-linux-nat.c: Fix common/ includes.
9818 * parser-defs.h: Fix common/ includes.
9819 * osdata.c: Fix common/ includes.
9820 * obsd-nat.c: Fix common/ includes.
9821 * nat/x86-linux.c: Fix common/ includes.
9822 * nat/x86-linux-dregs.c: Fix common/ includes.
9823 * nat/x86-dregs.h: Fix common/ includes.
9824 * nat/x86-dregs.c: Fix common/ includes.
9825 * nat/ppc-linux.c: Fix common/ includes.
9826 * nat/mips-linux-watch.h: Fix common/ includes.
9827 * nat/mips-linux-watch.c: Fix common/ includes.
9828 * nat/linux-waitpid.c: Fix common/ includes.
9829 * nat/linux-ptrace.h: Fix common/ includes.
9830 * nat/linux-ptrace.c: Fix common/ includes.
9831 * nat/linux-procfs.c: Fix common/ includes.
9832 * nat/linux-personality.c: Fix common/ includes.
9833 * nat/linux-osdata.c: Fix common/ includes.
9834 * nat/linux-namespaces.c: Fix common/ includes.
9835 * nat/linux-btrace.h: Fix common/ includes.
9836 * nat/linux-btrace.c: Fix common/ includes.
9837 * nat/fork-inferior.c: Fix common/ includes.
9838 * nat/amd64-linux-siginfo.c: Fix common/ includes.
9839 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
9840 * nat/aarch64-linux.c: Fix common/ includes.
9841 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
9842 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
9843 * namespace.h: Fix common/ includes.
9844 * mips-linux-tdep.c: Fix common/ includes.
9845 * minsyms.c: Fix common/ includes.
9846 * mi/mi-parse.h: Fix common/ includes.
9847 * mi/mi-main.c: Fix common/ includes.
9848 * mi/mi-cmd-env.c: Fix common/ includes.
9849 * memrange.h: Fix common/ includes.
9850 * memattr.c: Fix common/ includes.
9851 * maint.h: Fix common/ includes.
9852 * maint.c: Fix common/ includes.
9853 * main.c: Fix common/ includes.
9854 * machoread.c: Fix common/ includes.
9855 * location.c: Fix common/ includes.
9856 * linux-thread-db.c: Fix common/ includes.
9857 * linux-nat.c: Fix common/ includes.
9858 * linux-fork.c: Fix common/ includes.
9859 * inline-frame.c: Fix common/ includes.
9860 * infrun.c: Fix common/ includes.
9861 * inflow.c: Fix common/ includes.
9862 * inferior.h: Fix common/ includes.
9863 * inferior.c: Fix common/ includes.
9864 * infcmd.c: Fix common/ includes.
9865 * inf-ptrace.c: Fix common/ includes.
9866 * inf-child.c: Fix common/ includes.
9867 * ia64-linux-nat.c: Fix common/ includes.
9868 * i387-tdep.c: Fix common/ includes.
9869 * i386-tdep.c: Fix common/ includes.
9870 * i386-linux-tdep.c: Fix common/ includes.
9871 * i386-linux-nat.c: Fix common/ includes.
9872 * i386-go32-tdep.c: Fix common/ includes.
9873 * i386-fbsd-tdep.c: Fix common/ includes.
9874 * i386-fbsd-nat.c: Fix common/ includes.
9875 * guile/scm-type.c: Fix common/ includes.
9876 * guile/guile.c: Fix common/ includes.
9877 * go32-nat.c: Fix common/ includes.
9878 * gnu-nat.c: Fix common/ includes.
9879 * gdbthread.h: Fix common/ includes.
9880 * gdbarch-selftests.c: Fix common/ includes.
9881 * gdb_usleep.c: Fix common/ includes.
9882 * gdb_select.h: Fix common/ includes.
9883 * gdb_bfd.c: Fix common/ includes.
9884 * gcore.c: Fix common/ includes.
9885 * fork-child.c: Fix common/ includes.
9886 * findvar.c: Fix common/ includes.
9887 * fbsd-nat.c: Fix common/ includes.
9888 * event-top.c: Fix common/ includes.
9889 * event-loop.c: Fix common/ includes.
9890 * dwarf2read.c: Fix common/ includes.
9891 * dwarf2loc.c: Fix common/ includes.
9892 * dwarf2-frame.c: Fix common/ includes.
9893 * dwarf-index-cache.c: Fix common/ includes.
9894 * dtrace-probe.c: Fix common/ includes.
9895 * disasm-selftests.c: Fix common/ includes.
9896 * defs.h: Fix common/ includes.
9897 * csky-tdep.c: Fix common/ includes.
9898 * cp-valprint.c: Fix common/ includes.
9899 * cp-support.h: Fix common/ includes.
9900 * cp-support.c: Fix common/ includes.
9901 * corelow.c: Fix common/ includes.
9902 * completer.h: Fix common/ includes.
9903 * completer.c: Fix common/ includes.
9904 * compile/compile.c: Fix common/ includes.
9905 * compile/compile-loc2c.c: Fix common/ includes.
9906 * compile/compile-cplus-types.c: Fix common/ includes.
9907 * compile/compile-cplus-symbols.c: Fix common/ includes.
9908 * command.h: Fix common/ includes.
9909 * cli/cli-dump.c: Fix common/ includes.
9910 * cli/cli-cmds.c: Fix common/ includes.
9911 * charset.c: Fix common/ includes.
9912 * build-id.c: Fix common/ includes.
9913 * btrace.h: Fix common/ includes.
9914 * btrace.c: Fix common/ includes.
9915 * breakpoint.h: Fix common/ includes.
9916 * breakpoint.c: Fix common/ includes.
9918 (enum agent_op): Fix common/ includes.
9919 * ax-general.c (struct aop_map): Fix common/ includes.
9920 * ax-gdb.c: Fix common/ includes.
9921 * auxv.c: Fix common/ includes.
9922 * auto-load.c: Fix common/ includes.
9923 * arm-tdep.c: Fix common/ includes.
9924 * arch/riscv.c: Fix common/ includes.
9925 * arch/ppc-linux-common.c: Fix common/ includes.
9926 * arch/i386.c: Fix common/ includes.
9927 * arch/arm.c: Fix common/ includes.
9928 * arch/arm-linux.c: Fix common/ includes.
9929 * arch/arm-get-next-pcs.c: Fix common/ includes.
9930 * arch/amd64.c: Fix common/ includes.
9931 * arch/aarch64.c: Fix common/ includes.
9932 * arch/aarch64-insn.c: Fix common/ includes.
9933 * arch-utils.c: Fix common/ includes.
9934 * amd64-windows-tdep.c: Fix common/ includes.
9935 * amd64-tdep.c: Fix common/ includes.
9936 * amd64-sol2-tdep.c: Fix common/ includes.
9937 * amd64-obsd-tdep.c: Fix common/ includes.
9938 * amd64-nbsd-tdep.c: Fix common/ includes.
9939 * amd64-linux-tdep.c: Fix common/ includes.
9940 * amd64-linux-nat.c: Fix common/ includes.
9941 * amd64-fbsd-tdep.c: Fix common/ includes.
9942 * amd64-fbsd-nat.c: Fix common/ includes.
9943 * amd64-dicos-tdep.c: Fix common/ includes.
9944 * amd64-darwin-tdep.c: Fix common/ includes.
9945 * agent.c: Fix common/ includes.
9946 * ada-lang.h: Fix common/ includes.
9947 * ada-lang.c: Fix common/ includes.
9948 * aarch64-tdep.c: Fix common/ includes.
9950 2019-01-25 Tom Tromey <tom@tromey.com>
9952 * common/create-version.sh: Use common/version.h.
9954 2019-01-24 Pedro Alves <palves@redhat.com>
9956 * infrun.c (signal_stop, signal_print, signal_program)
9957 (signal_catch, signal_pass): Now arrays instead of pointers.
9958 (update_signals_program_target, do_target_resume)
9959 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
9960 * linux-nat.c (linux_nat_target::pass_signals)
9961 (linux_nat_target::create_inferior, linux_nat_target::attach):
9963 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
9964 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
9965 * procfs.c (procfs_target::pass_signals): Adjust.
9966 * record-full.c (record_full_target::resume): Adjust.
9967 * remote.c (remote_target::pass_signals)
9968 (remote_target::program_signals): Adjust.
9969 * target-debug.h (target_debug_print_signals): Now takes a
9970 gdb::array_view as parameter. Adjust.
9971 * target.h (target_ops) <pass_signals, program_signals>: Replace
9972 pointer and length parameters with gdb::array_view.
9973 (target_pass_signals, target_program_signals): Likewise.
9974 * target-delegates.c: Regenerate.
9976 2019-01-24 Pedro Alves <palves@redhat.com>
9978 * common/forward-scope-exit.h
9979 (forward_scope_exit::forward_scope_exit): Pass arguments to
9980 m_bind_function directly, instead of creating a std::bind and
9983 2019-01-24 Alan Hayward <alan.hayward@arm.com>
9985 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
9987 (pass_in_v_vfp_candidate): Likewise.
9989 2019-01-23 Tom Tromey <tom@tromey.com>
9990 Pedro Alves <palves@redhat.com>
9992 * regcache.c (class regcache_invalidator): Remove.
9993 (regcache::raw_write): Use make_scope_exit.
9995 2019-01-23 Tom Tromey <tom@tromey.com>
9997 * ui-out.h (class ui_out_emit_type): Update comment.
9999 2019-01-23 Tom Tromey <tom@tromey.com>
10001 * infrun.c (fetch_inferior_event): Update comment.
10003 2019-01-23 Tom Tromey <tom@tromey.com>
10004 Pedro Alves <palves@redhat.com>
10006 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
10008 (fetch_inferior_event): Use SCOPE_EXIT.
10011 2019-01-23 Tom Tromey <tom@tromey.com>
10012 Pedro Alves <palves@redhat.com>
10014 * infrun.c (disable_thread_events): Delete.
10015 (stop_all_threads): Use SCOPE_EXIT.
10017 2019-01-23 Tom Tromey <tom@tromey.com>
10018 Pedro Alves <palves@redhat.com>
10020 * symfile.c: Include forward-scope-exit.h.
10021 (clear_symtab_users_cleanup): Replace forward declaration with
10022 a FORWARD_SCOPE_EXIT.
10023 (syms_from_objfile_1): Use the forward_scope_exit and
10024 gdb::optional instead of cleanup_function.
10025 (reread_symbols): Use the forward_scope_exit instead of
10027 (clear_symtab_users_cleanup): Remove function.
10029 2019-01-23 Tom Tromey <tom@tromey.com>
10030 Pedro Alves <palves@redhat.com>
10032 * linux-nat.c: Include scope-exit.h.
10033 (cleanup_target_stop): Remove.
10034 (linux_nat_target::static_tracepoint_markers_by_strid): Use
10037 2019-01-23 Tom Tromey <tom@tromey.com>
10038 Pedro Alves <palves@redhat.com>
10040 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
10041 (call_function_by_hand_dummy): Use SCOPE_EXIT.
10043 2019-01-23 Tom Tromey <tom@tromey.com>
10044 Andrew Burgess <andrew.burgess@embecosm.com>
10045 Pedro Alves <palves@redhat.com>
10047 * infrun.c (fetch_inferior_event): Use scope_exit.
10048 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
10049 * top.c (execute_command): Use scope_exit.
10050 * breakpoint.c (bpstat_do_actions): Use scope_exit.
10051 * utils.c (do_bpstat_clear_actions_cleanup)
10052 (make_bpstat_clear_actions_cleanup): Remove.
10054 2019-01-23 Tom Tromey <tom@tromey.com>
10055 Pedro Alves <palves@redhat.com>
10057 * infrun.c: Include "common/scope-exit.h"
10058 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
10059 (wait_for_inferior): Use SCOPE_EXIT.
10060 (fetch_inferior_event): Use scope_exit.
10062 2019-01-23 Tom Tromey <tom@tromey.com>
10063 Pedro Alves <palves@redhat.com>
10065 * breakpoint.c (create_breakpoint): Remove cleanup.
10067 2019-01-23 Tom Tromey <tom@tromey.com>
10068 Andrew Burgess <andrew.burgess@embecosm.com>
10069 Pedro Alves <palves@redhat.com>
10071 2019-01-23 Pedro Alves <palves@redhat.com>
10073 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
10075 2019-01-23 Pedro Alves <palves@redhat.com>
10076 Andrew Burgess <andrew.burgess@embecosm.com>
10078 * gdbthread.h: Include "common/forward-scope-exit.h".
10079 (scoped_finish_thread_state): Redefine custom class in terms of
10080 forward_scope_exit.
10082 2019-01-23 Pedro Alves <palves@redhat.com>
10083 Andrew Burgess <andrew.burgess@embecosm.com>
10085 * common/forward-scope-exit.h: New file.
10087 2019-01-23 Pedro Alves <palves@redhat.com>
10088 Andrew Burgess <andrew.burgess@embecosm.com>
10089 Tom Tromey <tom@tromey.com>
10091 * common/scope-exit.h: New file.
10093 2019-01-23 Pedro Alves <palves@redhat.com>
10095 * common/preprocessor.h (ESC): Rename to ...
10096 (ESC_PARENS): ... this.
10097 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
10098 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
10100 2019-01-23 Tom Tromey <tom@tromey.com>
10102 * language.h (class scoped_switch_to_sym_language_if_auto):
10103 Initialize m_lang in both cases.
10105 2019-01-23 Alan Hayward <alan.hayward@arm.com>
10107 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
10110 2019-01-22 Tom Tromey <tom@tromey.com>
10112 * corelow.c: Do not include sys/file.h.
10114 2019-01-22 Tom Tromey <tom@tromey.com>
10116 * tui/tui-wingeneral.h: Include gdb_curses.h.
10118 2019-01-22 Tom Tromey <tom@tromey.com>
10120 * source-cache.h (class source_cache) <get_source_lines,
10121 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
10123 2019-01-22 Tom Tromey <tom@tromey.com>
10125 * remote-fileio.h (struct remote_target): Declare.
10127 2019-01-22 Tom Tromey <tom@tromey.com>
10129 * python/py-arch.c: Do not include py-ref.h.
10130 * python/py-bpevent.c: Do not include py-ref.h.
10131 * python/py-cmd.c: Do not include py-ref.h.
10132 * python/py-continueevent.c: Do not include py-ref.h.
10133 * python/py-event.h: Do not include py-ref.h.
10134 * python/py-evtregistry.c: Do not include py-ref.h.
10135 * python/py-finishbreakpoint.c: Do not include py-ref.h.
10136 * python/py-frame.c: Do not include py-ref.h.
10137 * python/py-framefilter.c: Do not include py-ref.h.
10138 * python/py-function.c: Do not include py-ref.h.
10139 * python/py-infevents.c: Do not include py-ref.h.
10140 * python/py-linetable.c: Do not include py-ref.h.
10141 * python/py-objfile.c: Do not include py-ref.h.
10142 * python/py-param.c: Do not include py-ref.h.
10143 * python/py-prettyprint.c: Do not include py-ref.h.
10144 * python/py-progspace.c: Do not include py-ref.h.
10145 * python/py-symbol.c: Do not include py-ref.h.
10146 * python/py-symtab.c: Do not include py-ref.h.
10147 * python/py-type.c: Do not include py-ref.h.
10148 * python/py-unwind.c: Do not include py-ref.h.
10149 * python/py-utils.c: Do not include py-ref.h.
10150 * python/py-value.c: Do not include py-ref.h.
10151 * python/py-varobj.c: Do not include py-ref.h.
10152 * python/py-xmethods.c: Do not include py-ref.h.
10153 * python/python.c: Do not include py-ref.h.
10154 * varobj.c: Do not include py-ref.h.
10156 2019-01-22 Tom Tromey <tom@tromey.com>
10158 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
10159 keyword for bcache.
10161 2019-01-22 Tom Tromey <tom@tromey.com>
10163 * compile/compile-cplus-types.c: Remove a comment by #include.
10165 2019-01-22 Tom Tromey <tom@tromey.com>
10167 * compile/gcc-c-plugin.h: Include compile-internal.h.
10169 2019-01-22 Tom Tromey <tom@tromey.com>
10171 * stabsread.c (EXTERN): Do not define.
10172 (symnum, next_symbol_text_func, processing_gcc_compilation)
10173 (within_function, global_sym_chain, global_stabs)
10174 (previous_stab_code, this_object_header_files)
10175 (n_this_object_header_files)
10176 (n_allocated_this_object_header_files): Define.
10177 * stabsread.h (EXTERN): Never define. Use "extern".
10179 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10181 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
10184 2019-01-21 Tom Tromey <tom@tromey.com>
10186 * ui-out.c: Fix includes.
10187 * tui/tui-source.c: Fix includes.
10188 * target.c: Fix includes.
10189 * remote.c: Fix includes.
10190 * regcache.c: Fix includes.
10191 * python/py-block.c: Fix includes.
10192 * printcmd.c: Fix includes.
10193 * or1k-tdep.c: Fix includes.
10194 * mi/mi-main.c: Fix includes.
10195 * m32r-tdep.c: Fix includes.
10196 * csky-tdep.c: Fix includes.
10197 * compile/compile-cplus-types.c: Fix includes.
10198 * cli/cli-interp.c: Fix includes.
10200 2019-01-21 Alan Hayward <alan.hayward@arm.com>
10202 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
10205 2019-01-16 Tom Tromey <tom@tromey.com>
10207 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
10209 (struct objfile) <msymbols_range>: Move from top level.
10210 <msymbols>: New method.
10211 (class objfile_msymbols): Remove.
10212 * symtab.c (default_collect_symbol_completion_matches_break_on):
10214 * symmisc.c (dump_msymbols): Update.
10215 * stabsread.c (scan_file_globals): Update.
10216 * objc-lang.c (info_selectors_command, info_classes_command)
10217 (find_methods): Update.
10218 * minsyms.c (find_solib_trampoline_target): Update.
10219 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
10220 * coffread.c (coff_symfile_read): Update.
10221 * ada-lang.c (ada_lookup_simple_minsym)
10222 (ada_collect_symbol_completion_matches): Update.
10224 2019-01-16 Tom Tromey <tom@tromey.com>
10226 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
10227 type. Remove no-argument constructor.
10228 <iterator::operator++>: Simplify.
10230 <end>: Use minimal_symbol_count.
10232 2019-01-16 Tom Tromey <tom@tromey.com>
10234 * objfiles.h (struct objfile) <psymtabs>: New method.
10235 (class objfile_psymtabs): Remove.
10236 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
10238 <range>: New method.
10239 (require_partial_symbols): Change return type.
10240 * psymtab.c (require_partial_symbols)
10241 (psym_expand_symtabs_matching): Update.
10242 * mdebugread.c (parse_partial_symbols): Update.
10243 * dbxread.c (dbx_end_psymtab): Update.
10245 2019-01-15 Tom Tromey <tom@tromey.com>
10247 * symtab.c (lookup_objfile_from_block)
10248 (lookup_symbol_in_objfile_symtabs)
10249 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
10250 (find_line_symtab, info_sources_command)
10251 (default_collect_symbol_completion_matches_break_on)
10252 (make_source_files_completion_list): Update.
10253 * symmisc.c (print_objfile_statistics, dump_objfile)
10254 (maintenance_print_symbols, maintenance_info_symtabs)
10255 (maintenance_check_symtabs, maintenance_info_line_tables):
10257 * source.c (select_source_symtab)
10258 (forget_cached_source_info_for_objfile): Update.
10259 * objfiles.h (class objfile_compunits): Remove.
10260 (struct objfile) <compunits_range>: New typedef.
10261 (compunits): New method.
10262 * objfiles.c (objfile_relocate1): Update.
10263 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
10264 * maint.c (count_symtabs_and_blocks): Update.
10265 * linespec.c (iterate_over_all_matching_symtabs): Update.
10266 * cp-support.c (add_symbol_overload_list_qualified): Update.
10267 * coffread.c (coff_symtab_read): Update.
10268 * ada-lang.c (add_nonlocal_symbols)
10269 (ada_collect_symbol_completion_matches)
10270 (ada_add_global_exceptions): Update.
10272 2019-01-15 Tom Tromey <tom@tromey.com>
10274 * progspace.h (program_space) <objfiles_safe_range>: New
10276 <objfiles_safe>: New method.
10277 * objfiles.h (class all_objfiles_safe): Remove.
10278 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
10279 * jit.c (jit_inferior_exit_hook): Update.
10281 2019-01-17 Tom Tromey <tom@tromey.com>
10283 * progspace.h (program_space) <objfiles_range>: New typedef.
10284 <objfiles>: New method.
10285 <objfiles_head>: Rename from objfiles.
10286 (object_files): Update.
10287 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
10288 * guile/scm-pretty-print.c
10289 (ppscm_find_pretty_printer_from_objfiles): Update.
10290 * guile/scm-objfile.c (gdbscm_objfiles): Update.
10291 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
10293 * python/py-progspace.c (pspy_get_objfiles): Update.
10294 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
10296 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
10297 (objfpy_lookup_objfile_by_build_id): Update.
10298 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
10299 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
10301 * symtab.c (iterate_over_symtabs, matching_obj_sections)
10302 (expand_symtab_containing_pc, lookup_objfile_from_block)
10303 (lookup_static_symbol, basic_lookup_transparent_type)
10304 (find_pc_sect_compunit_symtab, find_symbol_at_address)
10305 (find_line_symtab, info_sources_command)
10306 (default_collect_symbol_completion_matches_break_on)
10307 (make_source_files_completion_list, find_main_name): Update.
10308 * symmisc.c (print_symbol_bcache_statistics)
10309 (print_objfile_statistics, maintenance_print_symbols)
10310 (maintenance_print_msymbols, maintenance_print_objfiles)
10311 (maintenance_info_symtabs, maintenance_check_symtabs)
10312 (maintenance_expand_symtabs, maintenance_info_line_tables):
10314 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
10315 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
10316 (map_overlay_command, unmap_overlay_command)
10317 (simple_overlay_update, expand_symtabs_matching)
10318 (map_symbol_filenames): Update.
10319 * symfile-debug.c (set_debug_symfile): Update.
10320 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
10322 * source.c (select_source_symtab, forget_cached_source_info):
10324 * solib.c (solib_read_symbols): Update.
10325 * solib-spu.c (append_ocl_sos): Update.
10326 * psymtab.c (maintenance_print_psymbols)
10327 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
10328 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
10329 * printcmd.c (info_symbol_command): Update.
10330 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
10332 * objfiles.h (class all_objfiles): Remove.
10333 * objfiles.c (have_partial_symbols, have_full_symbols)
10334 (have_minimal_symbols, qsort_cmp, update_section_map)
10335 (shared_objfile_contains_address_p)
10336 (default_iterate_over_objfiles_in_search_order): Update.
10337 * objc-lang.c (info_selectors_command, info_classes_command)
10338 (find_methods): Update.
10339 * minsyms.c (find_solib_trampoline_target): Update.
10340 * maint.c (maintenance_info_sections)
10341 (maintenance_translate_address, count_symtabs_and_blocks):
10343 * main.c (captured_main_1): Update.
10344 * linux-thread-db.c (try_thread_db_load_from_pdir)
10345 (has_libpthread): Update.
10346 * linespec.c (iterate_over_all_matching_symtabs)
10347 (search_minsyms_for_name): Update.
10348 * jit.c (jit_find_objf_with_entry_addr): Update.
10349 * hppa-tdep.c (find_unwind_entry)
10350 (hppa_lookup_stub_minimal_symbol): Update.
10351 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
10353 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
10354 (elf_gnu_ifunc_resolve_by_got): Update.
10355 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
10356 * dwarf-index-write.c (save_gdb_index_command): Update.
10357 * cp-support.c (add_symbol_overload_list_qualified): Update.
10358 * breakpoint.c (create_overlay_event_breakpoint)
10359 (create_longjmp_master_breakpoint)
10360 (create_std_terminate_master_breakpoint)
10361 (create_exception_master_breakpoint): Update.
10362 * blockframe.c (find_pc_partial_function): Update.
10363 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
10364 (ada_collect_symbol_completion_matches)
10365 (ada_add_global_exceptions): Update.
10367 2019-01-17 Tom Tromey <tom@tromey.com>
10369 * solib-target.c (lm_info_target_p): Remove typedef. Don't
10371 (solib_target_parse_libraries): Change return type.
10372 (library_list_start_segment, library_list_start_section)
10373 (library_list_end_library, library_list_start_library); Update.
10374 (solib_target_free_library_list): Remove.
10375 (solib_target_parse_libraries): Remove cleanup. Change return
10377 (solib_target_current_sos): Update.
10379 2019-01-17 Tom Tromey <tromey@bapiya>
10381 * valprint.c: Replace "the the" with "the".
10382 * symtab.c: Replace "the the" with "the".
10383 * solib.c: Replace "the the" with "the".
10384 * solib-dsbt.c: Replace "the the" with "the".
10385 * linespec.c: Replace "the the" with "the".
10386 * dwarf2loc.h: Replace "the the" with "the".
10387 * amd64-windows-tdep.c: Replace "the the" with "the".
10388 * aarch64-tdep.c: Replace "the the" with "the".
10390 2019-01-16 Keith Seitz <keiths@redhat.com>
10393 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
10394 <builder>: Rename to ..
10395 <m_builder>: ... this and make private.
10396 (dwarf2_cu::get_builder): New method. Change all users of
10397 `builder' to use this method.
10398 (dwarf2_start_symtab): Move to ...
10399 (dwarf2_cu::start_symtab): ... here. Update all callers
10400 (setup_type_unit_groups): Move to ...
10401 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
10403 (dwarf2_cu::reset_builder): New method.
10404 (process_full_compunit, process_full_type_unit): Use
10405 dwarf2_cu::reset_builder.
10406 (follow_die_offset): Record the ancestor CU if it is different
10407 from the followed DIE's CU.
10408 (follow_die_sig_1): Likewise.
10410 2019-01-15 Tom Tromey <tom@tromey.com>
10412 * remote.c (class remote_state) <buf>: Now a char_vector.
10413 <buf_size>: Remove.
10414 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
10416 (remote_target::getpkt_or_notif_sane_1)
10417 (remote_target::getpkt_sane)
10418 (remote_target::getpkt_or_notif_sane): Likewise.
10419 (class remote_target) <putpkt>: New overload.
10420 (remote_target::read_frame): Change type of "buf_p". Remove
10421 sizeof_p parameter.
10422 (packet_ok): New overload.
10423 (packet_check_result): New overload.
10426 2019-01-14 Tom Tromey <tom@tromey.com>
10428 * remote-notif.c (handle_notification, remote_notif_ack)
10429 (remote_notif_parse): Make "buf" const.
10430 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
10432 (remote_notif_parse, remote_notif_ack, handle_notification):
10434 * remote.c (remote_notif_stop_parse): Make "buf" const.
10435 (remote_target::remote_parse_stop_reply): Make "buf" const.
10436 (remote_notif_stop_ack): Make "buf" const.
10438 2019-01-14 Tom Tromey <tom@tromey.com>
10440 * remote.c (remote_console_output): Make parameter const.
10442 2019-01-14 Tom Tromey <tom@tromey.com>
10444 * target-debug.h (target_debug_print_signals): Constify.
10445 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
10446 * procfs.c (procfs_target::pass_signals): Update.
10447 * linux-nat.c (linux_nat_target::pass_signals): Update.
10448 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
10449 * target-delegates.c: Rebuild.
10450 * remote.c (remote_target::program_signals): Update.
10451 (remote_target::pass_signals): Update.
10452 * target.c (target_pass_signals): Constify argument.
10453 (target_program_signals): Likewise.
10454 * target.h (struct target_ops) <pass_signals, program_signals>:
10456 (target_pass_signals, target_program_signals): Constify argument.
10458 2019-01-14 Tom Tromey <tom@tromey.com>
10461 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
10463 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10465 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
10467 * rs6000-tdep.c: Include reggroups.h.
10468 (IS_V_ALIAS_PSEUDOREG): Define.
10469 (rs6000_register_name): Return names for the "vX" aliases.
10470 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
10471 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
10472 aliases. Call default_register_reggroup_p for all other
10474 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
10476 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
10477 Handle "vX" aliases.
10478 (v_alias_pseudo_register_collect): New function.
10479 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
10480 (rs6000_gdbarch_init): Initialize "vX" aliases as
10481 pseudo-registers. Restore registration of
10482 rs6000_pseudo_register_reggroup_p with
10483 set_tdesc_pseudo_register_reggroup_p.
10485 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
10487 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
10488 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
10489 set_gdbarch_num_pseudo_regs.
10491 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10493 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
10494 Remove arg prefixname, add do_set and do_show.
10495 Add member functions set_list and show_list.
10496 * cli/cli-style.c (class cli_style_option): Update accordingly.
10497 (style_set_list): Move to file scope.
10498 (style_show_list): Likewise.
10499 (set_style): Call help_list.
10500 (show_style): Call cmd_show_list.
10501 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
10502 Update to use the new macro.
10504 2019-10-12 Joel Brobecker <brobecker@adacore.com>
10506 * ada-lang.c (_initialize_ada_language): Expand the help text
10507 for the "catch exception" command.
10509 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10511 * symtab.c (matching_obj_sections): Initialize obj,
10512 declare it closer to its usage.
10514 2019-01-10 Tom Tromey <tom@tromey.com>
10516 * thread-iter.h (inf_threads_iterator): Use next_iterator.
10517 (basic_inf_threads_range): Remove.
10518 (inf_threads_range, inf_non_exited_threads_range)
10519 (safe_inf_threads_range): Use next_adapter.
10521 2019-01-10 Keith Seitz <keiths@redhat.com>
10525 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
10526 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
10528 2019-01-10 Keith Seitz <keiths@redhat.com>
10532 * dictionary.c (pending_to_vector): Remove.
10533 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
10534 Remove _1 suffix, replacing functions of the same name. Update
10536 (dict_create_hashed, dict_create_hashed_expandable)
10537 (dict_create_linear, dict_create_linear_expandable, dict_free)
10538 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
10539 Make functions static.
10541 2019-01-10 Keith Seitz <keiths@redhat.com>
10545 * dictionary.h (struct dictionary): Replace declaration with
10547 (dict_create_hashed, dict_create_hashed_expandable)
10548 (dict_create_linear, dict_create_linear_expandable)
10549 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
10550 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
10551 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
10552 taking multidictionary argument.
10553 [ALL_DICT_SYMBOLS]: Update for multidictionary.
10554 * block.h (struct block) <dict>: Change to multidictionary
10555 and rename `multidict'.
10556 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
10557 symmisc.c: Update all dictionary references to multidictionary.
10559 2019-01-10 Keith Seitz <keiths@redhat.com>
10563 * dictionary.c: Include unordered_map.
10564 (pending_to_vector): New function.
10565 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
10566 Rewrite the non-"_1" functions to take vector instead
10568 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
10569 "new" _1 versions of the same name.
10570 (multidictionary): Define.
10571 (std::hash<enum language): New definition.
10572 (collate_pending_symbols_by_language, mdict_create_hashed)
10573 (mdict_create_hashed_expandable, mdict_create_linear)
10574 (mdict_create_linear_expandable, mdict_free)
10575 (find_language_dictionary, create_new_language_dictionary)
10576 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
10577 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
10578 (mdict_size, mdict_empty): New functions.
10579 * dictionary.h (mdict_iterator): Define.
10581 2019-01-10 Pedro Alves <palves@redhat.com>
10583 * breakpoint.c (read_uploaded_action)
10584 (create_tracepoint_from_upload): Adjust to use
10585 gdb::unique_xmalloc_ptr.
10586 * ctf.c (ctf_write_uploaded_tp):
10587 (SET_ARRAY_FIELD): Use emplace_back.
10588 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
10589 * tracefile-tfile.c (tfile_write_uploaded_tp):
10590 * tracepoint.c (parse_tracepoint_definition): Adjust to use
10591 gdb::unique_xmalloc_ptr.
10592 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
10593 at_string, cond_string, cmd_strings>: Replace char pointers
10594 with gdb::unique_xmalloc_ptr.
10596 2019-01-10 Pedro Alves <palves@redhat.com>
10598 * solib-target.c (library_list_start_library): Don't xstrdup name.
10600 2019-01-10 Pedro Alves <palves@redhat.com>
10602 * mdebugread.c (parse_partial_symbols): Use
10603 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
10605 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
10607 * linux-fork.c (scoped_switch_fork_info)
10608 <~scoped_switch_fork_info>: Fix incorrect variable name.
10610 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
10612 * linux-fork.c (scoped_switch_fork_info)
10613 <scoped_switch_fork_info>: Make explicit.
10614 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
10616 2019-01-10 Tom Tromey <tom@tromey.com>
10618 * objfiles.h (objfile::reset_psymtabs): Update.
10619 * objfiles.c (objfile::objfile): Update.
10620 * psymtab.h (psymtab_storage::obstack): Update.
10621 (psymtab_storage::m_obstack): Use gdb::optional.
10622 (class psymtab_storage): Update comment. Remove objfile
10624 * psymtab.c (psymtab_storage::psymtab_storage): Update.
10626 2019-01-10 Tom Tromey <tom@tromey.com>
10628 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
10629 <free_psymtabs>: Now private.
10630 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
10631 (allocate_psymtab): Use new method.
10633 2019-01-10 Tom Tromey <tom@tromey.com>
10635 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
10636 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
10637 * mdebugread.c (parse_partial_symbols): Use
10638 allocate_dependencies.
10639 * dwarf2read.c (dwarf2_create_include_psymtab): Use
10640 allocate_dependencies.
10641 (process_psymtab_comp_unit_reader)
10642 (build_type_psymtab_dependencies): Likewise.
10643 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
10645 2019-01-10 Tom Tromey <tom@tromey.com>
10647 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
10648 PSYMBOL_SET_LANGUAGE.
10649 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
10651 2019-01-10 Tom Tromey <tom@tromey.com>
10653 * psymtab.h (psymtab_storage::obstack): New method.
10654 <m_obstack>: Rename from obstack; now private.
10655 * psymtab.c (psymtab_storage): Update.
10656 * dwarf2read.c (create_addrmap_from_index)
10657 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
10660 2019-01-10 Tom Tromey <tom@tromey.com>
10662 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
10663 * objfiles.h (objfile::reset_psymtabs): New method.
10665 2019-01-10 Tom Tromey <tom@tromey.com>
10667 * symmisc.c (print_symbol_bcache_statistics): Update.
10668 (print_objfile_statistics): Update.
10669 * symfile.c (reread_symbols): Update.
10670 * psymtab.h (class psymtab_storage): New.
10671 * psymtab.c (psymtab_storage): New constructor.
10672 (~psymtab_storage): New destructor.
10673 (require_partial_symbols): Update.
10674 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
10675 (find_pc_sect_psymtab, find_pc_sect_psymbol)
10676 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
10677 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
10678 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
10679 (start_psymtab_common, end_psymtab_common)
10680 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
10681 (allocate_psymtab): Update.
10682 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
10684 (dump_psymtab_addrmap, maintenance_print_psymbols)
10685 (maintenance_check_psymtabs): Update.
10686 (class objfile_psymtabs): Move to objfiles.h.
10687 * psympriv.h (discard_psymtab): Now inline.
10688 (psymtab_discarder::psymtab_discarder): Update.
10689 (psymtab_discarder::~psymtab_discarder): Update.
10690 (ALL_OBJFILE_PSYMTABS): Rewrite.
10691 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
10692 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
10694 <partial_symtabs>: New field.
10695 (class objfile_psymtabs): Move from psymtab.h. Update.
10696 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
10698 (objfile::~objfile): Don't destroy psymbol_cache.
10699 * mdebugread.c (parse_partial_symbols): Update.
10700 * dwarf2read.c (create_addrmap_from_index)
10701 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10702 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
10703 (add_partial_subprogram, dwarf2_ranges_read): Update.
10704 * dwarf-index-write.c (write_address_map)
10705 (write_one_signatured_type, recursively_write_psymbols)
10706 (class debug_names, class debug_names, write_psymtabs_to_index):
10709 2019-01-10 Tom Tromey <tom@tromey.com>
10711 * symtab.h (SYMBOL_SET_NAMES): Update.
10712 (symbol_set_names): Update.
10713 (MSYMBOL_SET_NAMES): Update.
10714 * symtab.c (symbol_set_names): Change argument to be an
10715 objfile_per_bfd_storage.
10716 * psymtab.c (add_psymbol_to_bcache): Update.
10717 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
10719 2019-01-10 Tom Tromey <tom@tromey.com>
10721 * symtab.c (create_demangled_names_hash): Change argument to be an
10722 objfile_per_bfd_storage.
10723 (symbol_set_names): Update.
10725 2019-01-10 Tom Tromey <tom@tromey.com>
10727 * xcoffread.c (xcoff_initial_scan): Unconditionally call
10729 * psymtab.c (init_psymbol_list): Do nothing if already called.
10730 * psympriv.h (init_psymbol_list): Add comment.
10731 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
10733 * dbxread.c (dbx_symfile_read): Unconditionally call
10736 2019-01-10 Tom Tromey <tom@tromey.com>
10738 * xcoffread.c (scan_xcoff_symtab): Update.
10739 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
10741 * mdebugread.c (parse_partial_symbols)
10742 (handle_psymbol_enumerators): Update.
10743 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
10744 * dbxread.c (read_dbx_symtab): Update.
10745 * psympriv.h (psymbol_placement): New enum.
10746 (add_psymbol_to_list): Update.
10748 2019-01-10 Tom Tromey <tom@tromey.com>
10750 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
10751 static_psymbols parameters.
10752 (scan_xcoff_symtab): Update.
10753 * psymtab.c (start_psymtab_common): Remove global_psymbols and
10754 static_psymbols parameters.
10755 * psympriv.h (start_psymtab_common): Update.
10756 * mdebugread.c (parse_partial_symbols): Update.
10757 * dwarf2read.c (create_partial_symtab): Update.
10758 * dbxread.c (read_dbx_symtab): Update.
10759 (start_psymtab): Remove global_psymbols and static_psymbols
10762 2019-01-10 Tom Tromey <tom@tromey.com>
10764 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
10765 * psymtab.c (allocate_psymtab): Add comment.
10766 * psympriv.h (allocate_psymtab): Add comment.
10767 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
10769 * dbxread.c (dbx_end_psymtab): Remove some initializations.
10771 2019-01-10 Tom Tromey <tom@tromey.com>
10773 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
10775 * mipsread.c: Include mdebugread.h.
10776 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
10778 * elfread.c: Include mdebugread.h.
10780 2019-01-09 Tom Tromey <tom@tromey.com>
10782 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
10783 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
10784 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
10785 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
10786 (psym_lookup_symbol, psym_find_last_source_symtab)
10787 (psym_forget_cached_source_info, psym_print_stats)
10788 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
10789 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
10790 (psym_map_matching_symbols, psym_expand_symtabs_matching)
10791 (psym_find_compunit_symtab_by_address)
10792 (maintenance_print_psymbols, maintenance_info_psymtabs)
10793 (maintenance_check_psymtabs): Use ranged for.
10794 * psymtab.h (class objfile_psymtabs): New.
10795 (require_partial_symbols): Return objfile_psymtabs.
10796 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
10798 2019-01-09 Tom Tromey <tom@tromey.com>
10800 * symfile.c (overlay_invalidate_all, find_pc_overlay)
10801 (find_pc_mapped_section, list_overlays_command)
10802 (map_overlay_command, unmap_overlay_command)
10803 (simple_overlay_update): Use all_objfiles.
10804 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
10805 * printcmd.c (info_symbol_command): Use all_objfiles.
10806 * objfiles.h (ALL_OBJSECTIONS): Remove.
10807 * maint.c (maintenance_translate_address): Use all_objfiles.
10808 * gcore.c (gcore_create_callback): Use all_objfiles.
10809 (objfile_find_memory_regions): Likewise.
10811 2019-01-09 Tom Tromey <tom@tromey.com>
10813 * symtab.c (find_line_symtab, info_sources_command)
10814 (make_source_files_completion_list): Use objfile_compunits.
10815 * source.c (select_source_symtab): Use objfile_compunits.
10816 * objfiles.h (struct objfile): Update comment.
10817 (ALL_OBJFILES): Remove.
10818 (ALL_FILETABS): Remove.
10819 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
10822 2019-01-09 Tom Tromey <tom@tromey.com>
10824 * symmisc.c (print_objfile_statistics, dump_objfile)
10825 (maintenance_print_symbols): Use compunit_filetabs.
10826 * source.c (forget_cached_source_info_for_objfile): Use
10828 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
10829 (ALL_FILETABS): Use compunit_filetabs.
10830 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
10831 * coffread.c (coff_symtab_read): Use compunit_filetabs.
10833 2019-01-09 Tom Tromey <tom@tromey.com>
10835 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
10836 (compunit_filetabs): New.
10837 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
10839 (info_sources_command, make_source_files_completion_list): Remove
10841 * symmisc.c (print_objfile_statistics, dump_objfile)
10842 (maintenance_print_symbols): Remove declaration.
10843 (maintenance_info_symtabs): Use compunit_filetabs.
10844 (maintenance_info_line_tables): Likewise.
10845 * source.c (select_source_symtab): Change local variable name.
10846 (forget_cached_source_info_for_objfile): Remove declaration.
10847 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
10848 * objfiles.c (objfile_relocate1): Remove declaration.
10849 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
10851 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
10852 * coffread.c (coff_symtab_read): Remove declaration.
10853 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
10856 2019-01-09 Tom Tromey <tom@tromey.com>
10858 * symtab.c (lookup_objfile_from_block)
10859 (find_pc_sect_compunit_symtab, search_symbols)
10860 (default_collect_symbol_completion_matches_break_on): Use
10862 * objfiles.h (ALL_COMPUNITS): Remove.
10863 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
10864 * cp-support.c (add_symbol_overload_list_qualified): Use
10866 * ada-lang.c (ada_collect_symbol_completion_matches)
10867 (ada_add_global_exceptions): Use objfile_compunits.
10869 2019-01-09 Tom Tromey <tom@tromey.com>
10871 * source.c (select_source_symtab)
10872 (forget_cached_source_info_for_objfile): Remove declaration.
10873 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
10875 * maint.c (count_symtabs_and_blocks): Remove declaration.
10876 * cp-support.c (add_symbol_overload_list_qualified): Remove
10878 * coffread.c (coff_symtab_read): Remove declaration.
10879 * symtab.c (lookup_symbol_in_objfile_symtabs)
10880 (basic_lookup_transparent_type_1): Use objfile_compunits.
10881 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
10882 (info_sources_command, search_symbols)
10883 (default_collect_symbol_completion_matches_break_on)
10884 (make_source_files_completion_list): Remove declaration.
10885 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
10886 (ada_collect_symbol_completion_matches)
10887 (ada_add_global_exceptions): Remove declaration.
10888 * linespec.c (iterate_over_all_matching_symtabs): Use
10890 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
10891 (class objfile_compunits): New.
10892 (ALL_COMPUNITS): Use objfile_compunits.
10893 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
10894 (maintenance_check_symtabs, maintenance_info_line_tables): Use
10896 * objfiles.c (objfile_relocate1): Use objfile_compunits.
10898 2019-01-09 Tom Tromey <tom@tromey.com>
10900 * symtab.c (search_symbols)
10901 (default_collect_symbol_completion_matches_break_on): Use
10903 * ada-lang.c (ada_lookup_simple_minsym)
10904 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
10905 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
10906 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
10908 * coffread.c (coff_symfile_read): Use objfile_msymbols.
10909 * symmisc.c (dump_msymbols): Use objfile_msymbols.
10910 * objc-lang.c (find_methods): Use objfile_msymbols.
10911 (info_selectors_command, info_classes_command): Likewise.
10912 * stabsread.c (scan_file_globals): Use objfile_msymbols.
10913 * objfiles.h (class objfile_msymbols): New.
10914 (ALL_OBJFILE_MSYMBOLS): Remove.
10915 (ALL_MSYMBOLS): Remove.
10917 2019-01-09 Tom Tromey <tom@tromey.com>
10919 * common/next-iterator.h (next_adapter): Add Iterator template
10921 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
10922 (class all_objfiles_safe): New.
10923 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
10924 * objfiles.c (put_objfile_before): Update comment.
10925 (add_separate_debug_objfile): Likewise.
10926 (free_all_objfiles): Use all_objfiles_safe.
10927 (objfile_purge_solibs): Likewise.
10929 2019-01-09 Tom Tromey <tom@tromey.com>
10931 * symtab.c (iterate_over_symtabs, matching_obj_sections)
10932 (expand_symtab_containing_pc, lookup_static_symbol)
10933 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
10934 (find_symbol_at_address, find_line_symtab, find_main_name): Use
10936 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
10937 * breakpoint.c (create_overlay_event_breakpoint)
10938 (create_longjmp_master_breakpoint)
10939 (create_std_terminate_master_breakpoint)
10940 (create_exception_master_breakpoint): Use all_objfiles.
10941 * linux-thread-db.c (try_thread_db_load_from_pdir)
10942 (has_libpthread): Use all_objfiles.
10943 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
10944 * linespec.c (iterate_over_all_matching_symtabs)
10945 (search_minsyms_for_name): Use all_objfiles.
10946 * maint.c (maintenance_info_sections): Use all_objfiles.
10947 * main.c (captured_main_1): Use all_objfiles.
10948 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
10949 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
10950 * guile/scm-pretty-print.c
10951 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
10952 * solib-spu.c (append_ocl_sos): Use all_objfiles.
10953 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
10954 (maintenance_print_msymbols): Use all_objfiles.
10955 * source.c (select_source_symtab): Use all_objfiles.
10956 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
10957 * symfile.c (remove_symbol_file_command)
10958 (expand_symtabs_matching, map_symbol_filenames): Use
10960 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
10962 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
10963 * objc-lang.c (find_methods): Use all_objfiles.
10964 * objfiles.c (have_partial_symbols, have_full_symbols)
10965 (have_minimal_symbols, qsort_cmp)
10966 (default_iterate_over_objfiles_in_search_order): Use
10968 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
10969 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
10970 (maintenance_check_psymtabs): Use all_objfiles.
10971 (ALL_PSYMTABS): Remove.
10972 * compile/compile-object-run.c (do_module_cleanup): Use
10974 * blockframe.c (find_pc_partial_function): Use all_objfiles.
10975 * cp-support.c (add_symbol_overload_list_qualified): Use
10977 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
10979 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
10980 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
10982 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
10983 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
10984 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
10986 * solib.c (solib_read_symbols): Use all_objfiles
10988 2019-01-09 Tom Tromey <tom@tromey.com>
10990 * probe.c (parse_probes_in_pspace): Use all_objfiles.
10991 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
10993 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
10994 * symmisc.c (print_symbol_bcache_statistics)
10995 (print_objfile_statistics, maintenance_print_objfiles)
10996 (maintenance_info_symtabs, maintenance_check_symtabs)
10997 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
10999 * source.c (forget_cached_source_info): Use all_objfiles.
11000 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
11001 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
11002 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
11003 * objfiles.c (update_section_map): Use all_objfiles.
11004 (shared_objfile_contains_address_p): Likewise.
11005 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
11006 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
11008 2019-01-09 Tom Tromey <tom@tromey.com>
11010 * common/next-iterator.h: New file.
11011 * objfiles.h (class all_objfiles): New.
11012 (struct objfile_iterator): New.
11014 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11016 * NEWS: Move the description of the changed "frame", "select-frame",
11017 and "info frame" commands to the Changed commands section.
11019 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
11021 * gdbtypes.c (check_stub_method_group): Remove handling of old
11023 * linespec.c (find_methods): Likewise.
11024 * stabsread.c (read_member_functions): Likewise.
11025 * valops.c (search_struct_method): Likewise.
11026 (value_struct_elt_for_reference): Likewise.
11027 * NEWS: Mention this change.
11029 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11031 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
11032 print_source_lines.
11033 * source.c (print_source_lines_base): Update line number check.
11034 (print_source_lines): New function.
11035 (source_lines_range::source_lines_range): New function.
11036 * source.h (class source_lines_range): New class.
11037 (print_source_lines): New declaration.
11039 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11041 * linespec.c (linespec_state_destructor): Free self->canonical_names.
11043 2019-01-08 Tom Tromey <tom@tromey.com>
11044 Simon Marchi <simon.marchi@ericsson.com>
11047 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
11048 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
11049 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
11050 * f-exp.y (DOLLAR_VARIABLE): Likewise.
11051 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
11052 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
11054 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
11056 * source.c (select_source_symtab): Move header comment to
11057 declaration in source.h.
11058 (forget_cached_source_info_for_objfile): Likewise.
11059 (forget_cached_source_info): Likewise.
11060 (identify_source_line): Likewise.
11061 * source.h (identify_source_line): Move declaration from symtab.h
11062 and add comment from source.c
11063 (print_source_lines): Likewise.
11064 (forget_cached_source_info_for_objfile): Likewise.
11065 (forget_cached_source_info): Likewise.
11066 (select_source_symtab): Likewise.
11067 (enum print_source_lines_flag): Move definition from symtab.h.
11068 * symtab.h (identify_source_line): Move declaration to source.h.
11069 (print_source_lines): Likewise.
11070 (forget_cached_source_info_for_objfile): Likewise.
11071 (forget_cached_source_info): Likewise.
11072 (select_source_symtab): Likewise.
11073 (enum print_source_lines_flag): Move definition to source.h.
11074 * tui/tui-hooks.c: Add 'source.h' include.
11076 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
11078 * source.c (print_source_lines_base): Handle requests to print
11079 reverse line number sequences, and guard against empty lines
11082 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
11084 * source.c (print_source_lines_base): Fix skip of '\r' if next
11087 2019-01-06 Tom Tromey <tom@tromey.com>
11089 * c-exp.y (struct c_parse_state) <macro_original_text,
11090 expansion_obstack>: New member.
11091 (macro_original_text, expansion_obstack): Remove globals.
11092 (scan_macro_expansion, scanning_macro_expansion)
11093 (finished_macro_expansion): Update.
11094 (scan_macro_cleanup): Remove.
11095 (yylex, c_parse): Update.
11097 2019-01-06 Tom Tromey <tom@tromey.com>
11099 * c-exp.y (struct c_parse_state) <strings>: New member.
11100 (operator_stoken): Update.
11102 2019-01-06 Tom Tromey <tom@tromey.com>
11104 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
11105 (union type_stack_elt) <typelist_val>: Now a pointer to
11107 (type_stack_cleanup): Don't declare.
11108 (push_typelist): Update.
11109 * parse.c (pop_typelist): Return a std::vector.
11110 (push_typelist): Take a std::vector.
11111 (follow_types): Update. Do not free args.
11112 (type_stack_cleanup): Remove.
11113 * c-exp.y (struct c_parse_state): New.
11114 (cpstate): New global.
11115 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
11116 (nonempty_typelist): Update.
11117 (func_mod): Create a new vector.
11118 (c_parse): Create a c_parse_state.
11119 (check_parameter_typelist): Do not delete params.
11120 (function_method): Update. Do not delete type_list.
11122 2019-01-06 Tom Tromey <tom@tromey.com>
11125 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
11127 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
11128 (print_return_value): Likewise.
11130 2019-01-05 Tom Tromey <tom@tromey.com>
11132 * contrib/cleanup_check.py: Remove.
11133 * contrib/gcc-with-excheck: Remove.
11134 * contrib/exsummary.py: Remove.
11135 * contrib/excheck.py: Remove.
11137 2019-01-05 Joel Brobecker <brobecker@adacore.com>
11139 * thread.c (delete_thread_1): Add gdb_assert that THR is not
11140 NULL. Initialize tpprev to NULL instead of assigning it
11141 to NULL on the next statement.
11142 * windows-nat.c (windows_delete_thread): Remove check for
11143 main_thread_id before printing thread exit notifications.
11144 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
11145 Remove thread ID check against main_thread_id.
11146 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
11147 windows_delete_thread.
11148 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
11150 2019-01-04 Tom Tromey <tom@tromey.com>
11152 * compile/compile.c (_initialize_compile): Use upper case for
11153 metasyntactic variables.
11154 * symmisc.c (_initialize_symmisc): Use upper case for
11155 metasyntactic variables.
11156 * psymtab.c (_initialize_psymtab): Use upper case for
11157 metasyntactic variables.
11158 * demangle.c (demangle_command): Use upper case for metasyntactic
11160 (_initialize_demangler): Likewise.
11161 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
11164 2019-01-03 Tom Tromey <tom@tromey.com>
11166 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
11168 2019-01-03 Tom Tromey <tom@tromey.com>
11170 * python/py-symtab.c (salpy_str): Update.
11171 (struct salpy_sal_object) <symtab>: Now a PyObject.
11172 (salpy_dealloc): Update.
11173 (del_objfile_sal): Use gdbpy_ref.
11175 2019-01-03 Tom Tromey <tom@tromey.com>
11177 * python/py-type.c (convert_field): Use new_reference. Return
11179 (make_fielditem): Return gdbpy_ref.
11180 (typy_fields): Update.
11181 (typy_getitem): Update.
11182 (field_name): Return gdbpy_ref. Use new_reference.
11183 (typy_iterator_iternext): Update.
11185 2019-01-03 Tom Tromey <tom@tromey.com>
11187 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
11189 2019-01-03 Tom Tromey <tom@tromey.com>
11191 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
11192 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
11193 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
11194 (pspy_set_frame_filters, pspy_set_frame_unwinders)
11195 (pspy_set_type_printers): Likewise.
11196 * python/py-function.c (fnpy_init): Use gdbpy_ref.
11197 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
11198 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
11199 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
11200 (objfpy_set_type_printers): Likewise.
11202 2019-01-03 Tom Tromey <tom@tromey.com>
11204 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
11205 (gdbpy_print_stack): Use gdbpy_err_fetch.
11206 * python/python-internal.h (class gdbpy_err_fetch): New class.
11207 (class gdbpy_enter) <m_error_type, m_error_value,
11208 m_error_traceback>: Remove.
11209 <m_error>: New member.
11210 (gdbpy_exception_to_string): Don't declare.
11211 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
11212 * python/py-value.c (convert_value_from_python): Use
11214 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
11215 gdbpy_exception_to_string.
11216 (gdbpy_handle_exception): Use gdbpy_err_fetch.
11217 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
11220 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11222 * linux-nat.c (delete_lwp_cleanup): Delete.
11223 (struct lwp_deleter): New struct.
11224 (lwp_info_up): New typedef.
11225 (linux_nat_target::follow_fork): Delete cleanup, and make use of
11228 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11230 * linux-fork.c (class scoped_switch_fork_info): New class.
11231 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
11233 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11235 * valops.c (find_overload_match): Remove use of null_cleanup, and
11236 calls to do_cleanups.
11238 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11240 * compile/compile-cplus-types.c
11241 (compile_cplus_instance::decl_name): Handle changes to
11243 * cp-support.c (cp_func_name): Update header comment, update
11245 * cp-support.h (cp_func_name): Update return type in declaration.
11246 * valops.c (find_overload_match): Move temp_func local to top
11247 level of function and change its type. Use temp_func to hold and
11248 delete temporary string obtained from cp_func_name.
11250 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11252 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
11253 gdb::char_vector, remove cleanup, and update uses of `msg`.
11255 2019-01-03 Jim Wilson <jimw@sifive.com>
11257 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
11259 2019-01-02 Tom Tromey <tom@tromey.com>
11261 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
11262 (tdesc_parse_xml): Remove cleanups.
11263 * target-descriptions.h (make_cleanup_free_target_description):
11265 (target_desc_deleter): New struct.
11266 (target_desc_up): New typedef.
11267 * target-descriptions.c (target_desc_deleter::operator()): Rename
11268 from free_target_description.
11269 (make_cleanup_free_target_description): Remove.
11271 2019-01-02 Tom Tromey <tom@tromey.com>
11273 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
11274 constructor, destructor.
11275 (linespec_parser): Remove typedef.
11276 (~linespec_parser): Rename from linespec_parser_delete.
11277 (linespec_lex_to_end, linespec_complete_label)
11278 (linespec_complete): Update.
11279 (decode_line_full): Remove cleanups.
11280 (decode_line_1): Update.
11282 2019-01-02 Tom Tromey <tom@tromey.com>
11284 * python/python-internal.h (inferior_to_inferior_object): Change
11286 * python/py-exitedevent.c (create_exited_event_object): Update.
11287 * python/py-inferior.c (inferior_to_inferior_object): Return
11289 (python_new_inferior, python_inferior_deleted)
11290 (thread_to_thread_object, delete_thread_object)
11291 (build_inferior_list, gdbpy_selected_inferior): Update.
11292 * python/py-infthread.c (create_thread_object): Update. Also fail
11293 if inferior_to_inferior_object fails.
11295 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
11297 * inferior.h (class inferior) <displaced_step_state>: New field.
11298 * infrun.h (struct displaced_step_state): Move here from
11299 infrun.c. Initialize fields, add constructor.
11300 <inf>: Remove field.
11301 <reset>: New method.
11302 * infrun.c (struct displaced_step_inferior_state): Move to
11304 (displaced_step_inferior_states): Remove.
11305 (get_displaced_stepping_state): Adust.
11306 (displaced_step_in_progress_any_inferior): Adjust.
11307 (displaced_step_in_progress_thread): Adjust.
11308 (displaced_step_in_progress): Adjust.
11309 (add_displaced_stepping_state): Remove.
11310 (get_displaced_step_closure_by_addr): Adjust.
11311 (remove_displaced_stepping_state): Remove.
11312 (infrun_inferior_exit): Call displaced_step_state.reset.
11313 (use_displaced_stepping): Don't check for NULL.
11314 (displaced_step_prepare_throw): Call
11315 get_displaced_stepping_state.
11316 (displaced_step_fixup): Don't check for NULL.
11317 (prepare_for_detach): Don't check for NULL.
11319 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11321 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
11322 in case of call that did not complete.
11324 2019-01-02 Andrey Utkin <autkin@undo.io>
11326 * symfile.c (find_separate_debug_file): Fix search of debug files for
11329 2019-01-02 Tom Tromey <tom@tromey.com>
11331 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
11333 * python/py-frame.c (frapy_older): Remove cast.
11334 (frapy_newer): Likewise.
11335 * python/py-breakpoint.c (local_setattro): Remove cast.
11336 * python/py-arch.c (archpy_name): Remove local variable.
11337 * python/py-type.c (gdbpy_lookup_type): Remove cast.
11339 2019-01-02 Joel Brobecker <brobecker@adacore.com>
11341 * unittests/basic_string_view/element_access/char/empty.cc:
11342 Fix year range in copyright header.
11344 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
11346 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
11348 <operator==>: Update with for removed field.
11350 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
11351 <isa_features>: ...this.
11352 <abi_features>: New field.
11353 (riscv_isa_flen): Update comment.
11354 (riscv_abi_xlen): New declaration.
11355 (riscv_abi_flen): New declaration.
11356 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
11358 (riscv_abi_xlen): New function.
11359 (riscv_isa_flen): Update to get answer from isa_features.
11360 (riscv_abi_flen): New function.
11361 (riscv_has_fp_abi): Update to get answer from abi_features.
11362 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
11364 (riscv_call_info) <xlen, flen>: Update comment.
11365 (riscv_call_arg_struct): Remove invalid assertions
11366 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
11368 (riscv_gdbarch_init): Gather isa features and abi features
11369 separately, ensure both match on the gdbarch when reusing an old
11370 gdbarch. Relax an error check to allow 32-bit abi float to run on
11371 a target with 64-bit float hardware.
11373 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11375 * source.c (search_command_helper): Stop reverse search
11376 when line 1 has been searched.
11378 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11380 * record-full.c (record_full_base_target::close): Rewrite
11381 record_full_core_buf_list free logic.
11383 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11385 * break-catch-syscall.c (print_one_catch_syscall): xfree
11388 2019-01-01 Joel Brobecker <brobecker@adacore.com>
11390 * top.c (print_gdb_version): Update Copyright year in version
11393 2019-01-01 Joel Brobecker <brobecker@adacore.com>
11395 Update copyright year range in all GDB files.
11397 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
11399 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
11401 For older changes see ChangeLog-2018.
11407 version-control: never