1 2019-08-16 Alan Hayward <alan.hayward@arm.com>
3 * NEWS (Other MI changes): New subsection.
4 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
5 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
6 * arch-utils.c (default_get_pc_address_flags): New function.
7 * arch-utils.h (default_get_pc_address_flags): New declaration.
8 * gdbarch.sh: Add get_pc_address_flags.
9 * gdbarch.c: Regenerate.
10 * gdbarch.h: Likewise.
11 * stack.c (print_pc): New function.
12 (print_frame_info) (print_frame): Call print_pc.
14 2019-08-16 Tom de Vries <tdevries@suse.de>
16 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
17 print_objfile_section_info.
19 2019-08-15 Tom Tromey <tom@tromey.com>
21 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
22 calling update_cmdwin_start_line.
23 * tui/tui-winsource.h (struct tui_source_window_base)
24 <do_make_visible_with_new_height, set_new_height>: Don't declare.
26 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
28 (tui_source_window_base::set_new_height): Remove.
29 (tui_source_window_base::rerender): Rename from
30 do_make_visible_with_new_height.
31 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
33 (tui_win_info::make_invisible_and_set_new_height)
34 (tui_win_info::make_visible_with_new_height): Remove.
35 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
37 * tui/tui-stack.c (tui_locator_window::rerender): New method.
38 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
39 do_make_visible_with_new_height>: Don't declare.
41 * tui/tui-regs.c (tui_data_window::rerender): Rename from
43 (tui_data_window::do_make_visible_with_new_height): Remove.
44 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
45 call tui_show_locator_content.
46 (tui_gen_win_info::resize): Call rerender.
47 (show_source_or_disasm_and_command): Don't call
48 tui_show_locator_content.
49 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
51 (struct tui_win_info) <rerender>: Declare.
52 <set_new_height, make_invisible_and_set_new_height,
53 make_visible_with_new_height>: Don't declare.
54 * tui/tui-data.c (tui_win_list::rerender): New method.
55 * tui/tui-command.h (struct tui_cmd_window)
56 <do_make_visible_with_new_height>: Don't declare.
58 (tui_cmd_window::do_make_visible_with_new_height): Remove.
60 2019-08-15 Tom Tromey <tromey@adacore.com>
62 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
63 * ada-lang.c (ada_enum_name): Likewise.
65 2019-08-15 Christian Biesinger <cbiesinger@google.com>
67 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
69 (GdbOutputErrorFile): Likewise.
70 (global scope): Adjust constructor calls to GdbOutput{,Error}File
72 (execute_unwinders): Rename to have a leading underscore.
73 (auto_load_packages): Likewise.
74 (global scope): Adjust call to auto_load_packages accordingly.
75 (GdbSetPythonDirectory): Likewise.
76 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
77 instead of execute_unwinders.
79 2019-08-15 Tom Tromey <tom@tromey.com>
81 * tui/tui-layout.c (show_layout, show_source_disasm_command)
82 (show_data): Don't change window visibility.
83 (tui_gen_win_info::resize): Remove special case for command
84 window. Use wresize, when available.
85 (show_source_or_disasm_and_command): Don't change window
87 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
88 <make_visible>: New method.
89 * tui/tui-command.c (tui_cmd_window::resize): New method.
91 2019-08-15 Tom Tromey <tom@tromey.com>
93 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
94 (struct tui_source_windows): New.
95 * tui/tui-winsource.c (tui_display_main): Update.
96 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
97 (new_height_ok, parse_scrolling_args): Update.
98 * tui/tui-layout.c (show_layout, show_data): Update.
99 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
100 (tui_add_to_source_windows): Don't declare.
101 * tui/tui-data.c (source_windows, tui_source_windows)
102 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
104 2019-08-15 Tom Tromey <tom@tromey.com>
106 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
108 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
109 * tui/tui-layout.c (show_source_disasm_command, show_data):
111 (tui_gen_win_info::resize): Rename.
112 (show_source_or_disasm_and_command): Update.
113 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
116 2019-08-15 Tom Tromey <tom@tromey.com>
118 * tui/tui-stack.c (tui_initialize_static_data): Remove.
119 * tui/tui-interp.c (tui_interp::init): Don't call
120 tui_initialize_static_data.
121 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
123 2019-08-15 Tom Tromey <tom@tromey.com>
125 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
126 examine tui_win_list.
128 2019-08-15 Tom Tromey <tom@tromey.com>
130 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
131 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
132 tui_clear_source_content.
133 (tui_clear_source_content): Remove.
134 (tui_source_window_base::do_erase_source_content): Hoist call to
136 * tui/tui-stack.c (tui_show_frame_info): Don't call
137 tui_clear_source_content.
139 2019-08-15 Tom Tromey <tom@tromey.com>
141 * tui/tui-winsource.h (struct tui_source_window_base)
142 <do_erase_source_content>: New method.
143 <erase_source_content>: New method.
144 (tui_erase_source_content): Don't declare.
145 * tui/tui-winsource.c (tui_clear_source_content): Update.
146 (tui_source_window_base::do_erase_source_content): Rename from
147 tui_erase_source_content.
148 (tui_source_window_base::show_source_content): Update.
149 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
150 * tui/tui-source.h (struct tui_source_window)
151 <erase_source_content>: New method.
152 * tui/tui-disasm.h (struct tui_disasm_window)
153 <erase_source_content>: New method.
155 2019-08-15 Tom Tromey <tom@tromey.com>
157 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
158 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
160 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
161 * tui/tui-source.c (tui_set_source_content): Update.
162 * tui/tui-disasm.c (tui_set_disassem_content): Update.
164 2019-08-15 Tom Tromey <tom@tromey.com>
166 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
167 * tui/tui-winsource.c (tui_line_is_displayed): Move to
169 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
171 * tui/tui-source.c (tui_source_window::line_is_displayed): New
173 (tui_source_window::maybe_update): Update.
175 2019-08-15 Tom Tromey <tom@tromey.com>
177 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
178 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
180 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
182 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
184 (tui_disasm_window::maybe_update): Update.
186 2019-08-15 Tom Tromey <tom@tromey.com>
188 * tui/tui-winsource.h (struct tui_source_window_base)
189 <maybe_update>: Declare.
190 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
192 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
194 * tui/tui-source.c (tui_source_window::maybe_update): New method.
195 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
197 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
199 2019-08-15 Tom Tromey <tom@tromey.com>
201 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
203 2019-08-15 Tom Tromey <tom@tromey.com>
205 * tui/tui-wingeneral.c: Include tui-stack.h.
206 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
207 (struct tui_locator_window): Move from tui-data.h.
208 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
209 (tui_initialize_static_data): Move from tui-data.c.
210 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
211 (struct tui_locator_window): Move to tui-stack.c.
212 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
213 (tui_initialize_static_data): Move to tui-stack.c.
215 2019-08-15 Tom Tromey <tom@tromey.com>
217 * tui/tui-layout.c (show_source_disasm_command)
218 (show_source_or_disasm_and_command): Use make_visible method, not
220 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
223 2019-08-15 Tom Tromey <tom@tromey.com>
225 * tui/tui-wingeneral.h (tui_make_window): Update.
226 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
228 (tui_gen_win_info::make_visible): Update.
229 * tui/tui-regs.c (tui_data_window::display_registers_from):
231 * tui/tui-layout.c (show_source_disasm_command)
232 (show_source_or_disasm_and_command): Update.
233 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
234 (enum tui_box): Remove.
235 (struct tui_win_info) <can_box>: New method.
236 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
239 2019-08-15 Tom de Vries <tdevries@suse.de>
241 * linux-nat-trad.c: Include gdbarch.h.
243 2019-08-14 Alan Hayward <alan.hayward@arm.com>
245 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
248 2019-08-14 Tom Tromey <tromey@adacore.com>
250 * darwin-nat.c: Include gdbarch.h.
251 * darwin-nat-info.c: Include gdbarch.h.
253 2019-08-13 Tom Tromey <tom@tromey.com>
255 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
257 * tui/tui-data.c (tui_initialize_static_data): Update.
259 2019-08-13 Tom Tromey <tom@tromey.com>
261 * tui/tui-winsource.h (struct tui_exec_info_window)
262 <~tui_exec_info_window, maybe_allocate_content, get_content,
264 (struct tui_source_window_base) <set_exec_info_content,
265 show_exec_info_content>: Don't declare.
266 * tui/tui-winsource.c
267 (tui_exec_info_window::maybe_allocate_content): Remove.
268 (tui_source_window_base::update_exec_info): Rename from
269 set_exec_info_content.
270 (tui_source_window_base::show_exec_info_content)
271 (tui_source_window_base::update_exec_info): Remove.
273 2019-08-13 Tom Tromey <tom@tromey.com>
275 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
277 * tui/tui-winsource.c (tui_update_source_window_as_is)
278 (tui_update_source_windows_with_addr, tui_erase_source_content):
280 (tui_clear_exec_info_content): Remove.
282 2019-08-13 Tom Tromey <tom@tromey.com>
284 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
286 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
287 call tui_erase_exec_info_content.
288 (tui_clear_exec_info_content): Rename from
289 tui_erase_exec_info_content.
290 (tui_clear_exec_info_content): Delete.
292 2019-08-13 Tom Tromey <tom@tromey.com>
294 * tui/tui-winsource.h (struct tui_source_window_base)
295 <show_exec_info_content>: Declare.
296 (tui_show_exec_info_content): Don't declare.
297 * tui/tui-winsource.c
298 (tui_source_window_base::show_exec_info_content): Rename from
299 tui_show_exec_info_content.
300 (tui_source_window_base::update_exec_info): Update.
302 2019-08-13 Tom Tromey <tom@tromey.com>
304 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
305 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
306 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
307 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
308 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
309 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
312 2019-08-13 Tom Tromey <tom@tromey.com>
314 * tui/tui-winsource.h (struct tui_source_window_base)
315 <update_exec_info>: Declare.
316 (tui_update_exec_info): Don't declare.
317 * tui/tui-winsource.c (tui_update_source_window_as_is)
318 (tui_source_window_base::refresh_all)
319 (tui_update_all_breakpoint_info): Update.
320 (tui_source_window_base::update_exec_info): Rename from
321 tui_update_exec_info.
322 * tui/tui-stack.c (tui_show_frame_info): Update.
324 2019-08-13 Tom Tromey <tom@tromey.com>
326 * tui/tui-winsource.h (struct tui_source_window_base)
327 <set_exec_info_content>: Declare.
328 (tui_set_exec_info_content): Don't declare.
329 * tui/tui-winsource.c
330 (tui_source_window_base::set_exec_info_content): Rename from
331 tui_set_exec_info_content.
332 (tui_update_exec_info): Update.
334 2019-08-13 Tom Tromey <tom@tromey.com>
336 * tui/tui-winsource.h (struct tui_source_window_base)
337 <show_source_content>: Declare.
338 (tui_show_source_content): Don't declare.
339 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
340 (tui_source_window_base::show_source_content): Rename from
341 tui_show_source_content.
342 (tui_source_window_base::refresh_all): Update.
343 * tui/tui-layout.c (show_source_disasm_command)
344 (show_source_or_disasm_and_command): Update.
346 2019-08-13 Tom Tromey <tom@tromey.com>
348 * tui/tui-winsource.c (tui_erase_source_content)
349 (tui_show_source_content, tui_source_window_base::refresh_all):
351 * tui/tui-wingeneral.h
352 (tui_check_and_display_highlight_if_needed): Don't declare.
353 * tui/tui-wingeneral.c
354 (tui_win_info::check_and_display_highlight_if_needed): Rename from
355 check_and_display_highlight_if_needed.
356 * tui/tui-win.c (tui_rehighlight_all)
357 (tui_win_info::make_visible_with_new_height): Update.
358 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
359 (tui_data_window::erase_data_content)
360 (tui_data_window::display_all_data): Update.
361 * tui/tui-data.h (struct tui_win_info)
362 <check_and_display_highlight_if_needed>: Declare.
364 2019-08-13 Tom Tromey <tom@tromey.com>
366 * tui/tui-win.c (tui_resize_all): Call
367 tui_delete_invisible_windows.
368 * tui/tui-layout.c (show_layout): Call
369 tui_delete_invisible_windows.
370 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
371 * tui/tui-data.c (tui_delete_invisible_windows): New function.
373 2019-08-13 Tom Tromey <tom@tromey.com>
375 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
376 tui_add_win_to_layout.
378 2019-08-13 Tom Tromey <tom@tromey.com>
380 * tui/tui-layout.h (tui_default_win_height): Don't declare.
381 * tui/tui-layout.c (tui_default_win_height): Now static.
383 2019-08-13 Tom Tromey <tom@tromey.com>
385 * tui/tui-layout.c (show_layout): Unify all layout cases into a
387 (show_source_disasm_command, show_source_or_disasm_and_command):
388 Don't check current layout.
390 2019-08-13 Tom Tromey <tom@tromey.com>
392 * tui/tui-wingeneral.c (make_all_visible): Remove.
393 (tui_make_all_invisible): Simplify.
394 * tui/tui-layout.c (tui_make_all_invisible): Move from
395 tui-wingeneral.c; simplify.
396 (show_layout): Hoist call to tui_make_all_invisible.
397 (show_data): Don't call tui_make_all_invisible.
399 2019-08-13 Tom Tromey <tom@tromey.com>
401 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
402 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
404 2019-08-13 Tom Tromey <tom@tromey.com>
406 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
408 (show_source_disasm_command, show_data)
409 (show_source_or_disasm_and_command): Don't use
410 tui_set_current_layout_to.
411 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
412 * tui/tui-data.c (current_layout, tui_current_layout): Move to
414 (tui_set_current_layout_to): Remove.
416 2019-08-13 Tom Tromey <tom@tromey.com>
418 * tui/tui-layout.c (tui_set_layout): Update.
419 * tui/tui-data.h (struct tui_layout_def): Remove.
420 (tui_layout_def): Don't declare.
421 * tui/tui-data.c (layout_def): Remove.
422 (tui_layout_def): Remove.
424 2019-08-13 Tom Tromey <tom@tromey.com>
426 * tui/tui-winsource.h (struct tui_source_window_base)
427 <clear_detail>: No longer "override".
428 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
429 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
430 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
431 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
433 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
435 2019-08-13 Tom Tromey <tromey@adacore.com>
437 * tracepoint.c: Don't include readline.h or history.h.
439 2019-08-12 Tom Tromey <tom@tromey.com>
441 * configure: Rebuild.
442 * configure.ac: Check for readline 7.
443 * NEWS: Mention readline 7 requirement.
446 2019-08-12 Tom Tromey <tom@tromey.com>
448 * mingw-hdep.c (gdb_select): Remove readline hack.
450 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
452 * blockframe.c (find_pc_partial_function): Set *block to nullptr
453 when the function fails.
455 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
457 * s390-tdep.c (s390_type_align): New function.
458 (s390_gdbarch_init): Set it as type_align gdbarch method.
460 2019-08-09 Tom de Vries <tdevries@suse.de>
463 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
464 pc_low with relocation offset.
466 2019-08-07 Tom Tromey <tromey@adacore.com>
468 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
469 (print_frame_args): Update.
470 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
472 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
473 * frame.h (struct frame_arg): Add initializers.
474 <error>: Now a unique_xmalloc_ptr.
476 2019-08-07 Alan Hayward <alan.hayward@arm.com>
478 * NEWS: Expand the Pointer Authentication entry.
479 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
480 (aarch64_frame_unmask_lr): ... to this.
481 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
482 Call aarch64_frame_unmask_lr.
483 * frame.c (struct frame_info): Add "masked" variable.
484 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
485 (fprint_frame): Check for masked pc.
486 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
488 * python/py-framefilter.c (py_print_frame): Check for masked pc.
489 * stack.c (print_frame): Check for masked pc.
491 2019-08-06 Tom Tromey <tom@tromey.com>
493 * stabsread.c (patch_block_stabs, read_one_struct_field)
494 (read_enum_type): Use obstack_strndup.
495 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
496 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
497 * dwarf2read.c (guess_full_die_structure_name)
498 (anonymous_struct_prefix): Use obstack_strndup.
499 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
500 * c-exp.y (yylex): Use obstack_strndup.
501 * ada-exp.y (write_object_renaming, write_ambiguous_var)
502 (write_var_or_type): Use obstack_strndup.
504 2019-08-06 Tom Tromey <tom@tromey.com>
506 * symfile.c (reread_symbols): Use obstack_strdup.
507 * stabsread.c (read_type): Use obstack_strdup.
508 * gdb_obstack.h (obstack_strdup): New overload.
509 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
510 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
511 (dwarf2_canonicalize_name): Use obstack_strdup.
512 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
513 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
516 2019-08-06 Tom Tromey <tom@tromey.com>
518 * gdb_obstack.h (obstack_strdup): Define.
519 * gdb_obstack.c (obstack_strdup): Don't define.
521 2019-08-06 Tom Tromey <tom@tromey.com>
523 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
525 * typeprint.c (typedef_hash_table::find_global_typedef): Use
527 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
528 * stabsread.c (common_block_start): Use obstack_strdup.
529 * objfiles.c (set_objfile_main_name, objfile): Use
531 * namespace.c (add_using_directive): Use obstack_strdup.
532 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
533 * jit.c (finalize_symtab): Use obstack_strdup.
534 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
535 (guess_partial_die_structure_name, partial_die_info::fixup)
536 (dwarf2_name): Use obstack_strdup.
537 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
539 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
540 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
542 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
544 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
546 * unittests/help-doc-selftests.c: New file.
547 * Makefile.in: Add the new file.
549 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
551 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
552 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
553 the full first line, except when FOR_VALUE_PREFIX. In this case,
554 the trailing '.' is not output, and the first character is uppercased.
555 (print_help_for_command): Update call to print_doc_line.
556 (print_doc_of_command): Likewise.
557 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
558 * cli/cli-option.c (append_indented_doc): Do not append newline.
559 (build_help_option): Append newline after first appended_indented_doc
560 only if a second call is done.
561 (build_help): Append 2 new lines before each option, except the first
563 * compile/compile.c (_initialize_compile): Add new lines after
564 %OPTIONS%, when not at the end of the help.
565 Change help doc or code
566 producing the help doc to respect the invariants.
567 * maint-test-options.c (_initialize_maint_test_options): Likewise.
568 Also removed the new line after 'Options:', as all other commands
569 do not put an empty line between 'Options:' and the first option.
570 * printcmd.c (_initialize_printcmd): Likewise.
571 * stack.c (_initialize_stack): Likewise.
572 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
573 incorrectly telling COMMAND is optional.
574 * ada-lang.c (_initialize_ada_language): Change help doc or code
575 producing the help doc to respect the invariants.
576 * ada-tasks.c (_initialize_ada_tasks): Likewise.
577 * breakpoint.c (_initialize_breakpoint): Likewise.
578 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
579 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
580 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
581 * cli/cli-style.c (cli_style_option::add_setshow_commands,
582 _initialize_cli_style): Likewise.
583 * corelow.c (core_target_info): Likewise.
584 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
585 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
586 * filesystem.c (_initialize_filesystem): Likewise.
587 * frame.c (_initialize_frame): Likewise.
588 * gnu-nat.c (add_task_commands): Likewise.
589 * infcall.c (_initialize_infcall): Likewise.
590 * infcmd.c (_initialize_infcmd): Likewise.
591 * interps.c (_initialize_interpreter): Likewise.
592 * language.c (_initialize_language): Likewise.
593 * linux-fork.c (_initialize_linux_fork): Likewise.
594 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
595 * maint.c (_initialize_maint_cmds): Likewise.
596 * memattr.c (_initialize_mem): Likewise.
597 * printcmd.c (_initialize_printcmd): Likewise.
598 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
600 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
601 * record-btrace.c (_initialize_record_btrace): Likewise.
602 * record-full.c (_initialize_record_full): Likewise.
603 * record.c (_initialize_record): Likewise.
604 * regcache-dump.c (_initialize_regcache_dump): Likewise.
605 * regcache.c (_initialize_regcache): Likewise.
606 * remote.c (add_packet_config_cmd, init_remote_threadtests,
607 _initialize_remote): Likewise.
608 * ser-tcp.c (_initialize_ser_tcp): Likewise.
609 * serial.c (_initialize_serial): Likewise.
610 * skip.c (_initialize_step_skip): Likewise.
611 * source.c (_initialize_source): Likewise.
612 * stack.c (_initialize_stack): Likewise.
613 * symfile.c (_initialize_symfile): Likewise.
614 * symtab.c (_initialize_symtab): Likewise.
615 * target-descriptions.c (_initialize_target_descriptions): Likewise.
616 * top.c (init_main): Likewise.
617 * tracefile-tfile.c (tfile_target_info): Likewise.
618 * tracepoint.c (_initialize_tracepoint): Likewise.
619 * tui/tui-win.c (_initialize_tui_win): Likewise.
620 * utils.c (add_internal_problem_command): Likewise.
621 * valprint.c (value_print_option_defs): Likewise.
623 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
626 * configure.ac: Drop enable-libmcheck support.
627 * configure, config.in: Rebuild.
628 * libmcheck.m4: Remove.
629 * acinclude.m4: Don't include it.
630 * Makefile.in: Don't distribute it.
631 * top.c (print_gdb_configuration): Don't mention it.
633 2019-08-06 Tom Tromey <tom@tromey.com>
635 * utils.c (set_output_style): Sometimes pass stream to
637 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
638 * record-btrace.c (btrace_insn_history): Update.
639 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
641 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
643 <m_uiout>: New field.
645 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
646 Remove "uiout" parameter.
647 (dump_insns): Update.
648 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
649 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
651 2019-08-06 Christian Biesinger <cbiesinger@google.com>
653 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
654 (error_in_psymtab_expansion): Likewise.
655 (lookup_symbol_via_quick_fns): Likewise.
656 (basic_lookup_transparent_type_quick): Likewise.
657 (basic_lookup_transparent_type_1): Likewise.
659 2019-08-06 Tom Tromey <tromey@adacore.com>
661 * source.c (last_source_error): Now bool.
662 (print_source_lines_base): Make "noprint" bool. Only open
663 source file when last_source_visited changes.
665 2019-08-06 Tom Tromey <tromey@adacore.com>
667 * annotate.c (annotate_source_line): Use g_source_cache.
668 * source-cache.c (source_cache::get_plain_source_lines): Change
669 parameters. Populate m_offset_cache.
670 (source_cache::ensure): New method.
671 (source_cache::get_line_charpos): New method.
672 (extract_lines): Move lower. Change parameters.
673 (source_cache::get_source_lines): Move lower.
674 * source-cache.h (class source_cache): Update comment.
675 <get_line_charpos>: New method.
676 <get_source_lines>: Update comment.
677 <clear>: Clear m_offset_cache.
678 <get_plain_source_lines>: Change parameters.
680 <m_offset_cache>: New member.
681 * source.c (forget_cached_source_info_for_objfile): Update.
682 (info_source_command): Use g_source_cache.
683 (find_source_lines, open_source_file_with_line_charpos): Remove.
684 (print_source_lines_base, search_command_helper): Use g_source_cache.
685 * source.h (open_source_file_with_line_charpos): Don't declare.
686 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
687 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
690 2019-08-06 Tom Tromey <tromey@adacore.com>
692 * source-cache.c (source_cache::get_plain_source_lines):
693 Remove "first_line" and "last_line" parameters.
694 (source_cache::get_source_lines): Cache plain text.
695 * source-cache.h (class source_cache)
696 <get_plain_source_lines>: Update.
698 2019-08-06 Tom Tromey <tromey@adacore.com>
700 * source-cache.c (extract_lines): No longer a method.
701 Changed type of parameter. Include final newline.
702 (selftests::extract_lines_test): New function.
703 (_initialize_source_cache): Likewise.
704 * source-cache.h (class source_cache)
705 <extract_lines>: Don't declare.
707 2019-08-06 Tom Tromey <tromey@adacore.com>
709 * breakpoint.c (init_breakpoint_sal): Update.
710 (breakpoint): Update.
711 * breakpoint.h (struct breakpoint) <filter>: Now a
714 2019-08-05 Christian Biesinger <cbiesinger@google.com>
716 * NEWS: Mention dictionary access on blocks.
717 * python/py-block.c (blpy_getitem): New function.
718 (block_object_as_mapping): New struct.
719 (block_object_type): Use new struct for tp_as_mapping field.
721 2019-08-05 Christian Biesinger <cbiesinger@google.com>
723 * objfiles.h (objfile): Add a comment describing partial symbols.
725 2019-08-05 Tom Tromey <tromey@adacore.com>
727 * compile/compile.c (_initialize_compile): Use _(), not N_().
728 * thread.c (_initialize_thread): Use _(), not N_().
729 * stack.c (_initialize_stack): Use _(), not N_().
730 * printcmd.c (_initialize_printcmd): Use _(), not N_().
732 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
734 * dwarf2read.c (struct dw2_symtab_iterator):
735 <want_specific_block>: Remove.
736 <block_index>: Change type to gdb::optional.
737 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
738 change type of BLOCK_INDEX parameter to gdb::optional.
739 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
740 (dw2_lookup_symbol): Don't pass argument for
742 (dw2_expand_symtabs_for_function): Don't pass argument for
743 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
744 (class dw2_debug_names_iterator)
745 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
746 parameter, change BLOCK_INDEX type to gdb::optional.
747 <m_want_specific_block>: Remove.
748 <m_block_index>: Change type to gdb::optional.
749 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
750 gdb::optional. Re-write in function of gdb::optional.
751 (dw2_debug_names_lookup_symbol): Don't pass argument for
753 (dw2_debug_names_expand_symtabs_for_function): Don't pass
754 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
757 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
759 * NEWS: Mention changes to "info sources" command.
761 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
763 * symtab.c (filename_partial_match_opts): New struct type.
764 (struct output_source_filename_data): New members
765 regexp, c_regexp, partial_match.
766 (output_source_filename): Use new members to decide to print file.
767 (info_sources_option_defs): New variable.
768 (make_info_sources_options_def_group, print_info_sources_header,
769 info_sources_command_completer):
771 (info_sources_command): Read new optional arguments.
772 (_initialize_symtab): Update info sources help.
774 2019-08-02 Alexandre Oliva <oliva@adacore.com>
776 * ada-lang.c (exception_support_info_v0): Renamed from...
777 (default_exception_support_info): ... this. Create new
779 (ada_has_this_exception_support): Look up catch_handlers_sym.
780 (ada_exception_support_info_sniffer): Try v0 after default.
782 2019-08-01 Tom Tromey <tromey@adacore.com>
784 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
787 2019-08-01 Christian Biesinger <cbiesinger@google.com>
789 * s12z-tdep.c: Fix include path for s12z-opc.h.
791 2019-08-01 Alan Hayward <alan.hayward@arm.com>
793 * NEWS: Require GNU make 3.82.
795 2019-07-16 Tom Tromey <tom@tromey.com>
797 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
800 2019-07-30 Tom Tromey <tromey@adacore.com>
802 * block.c (contained_in): Remove BLOCK_FUNCTION check.
804 2019-07-30 Kevin Buettner <kevinb@redhat.com>
806 * printcmd.c (print_address_symbolic): Print negative offsets.
807 (build_address_symbolic): Force signed arithmetic when computing
810 2019-07-30 Christian Biesinger <cbiesinger@google.com>
812 PR/24474: Add a function to lookup static variables.
813 * NEWS: Mention this new function.
814 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
815 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
816 * python/python.c (python_GdbMethods): Add new function.
818 2019-07-29 Christian Biesinger <cbiesinger@google.com>
820 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
821 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
822 (objfpy_lookup_static_symbol): New function.
823 (objfile_object_methods): Add new functions.
825 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
827 * NEWS: Mention 'set|show print frame-info'. Mention new
828 'presence' value for 'frame-arguments'. Mention new '-frame-info'
829 backtrace argument. Mention that python frame filtering code
830 is now consistent with what 'backtrace' command prints.
832 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
834 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
836 (print_frame_info_auto, print_frame_info_source_line,
837 print_frame_info_location, print_frame_info_source_and_location,
838 print_frame_info_location_and_address, print_frame_info_short_location):
840 (struct frame_print_options): New member print_frame_info.
841 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
842 * stack.h (get_user_print_what_frame_info): New declaration.
843 (frame_show_address): New declaration.
844 * stack.c (print_frame_arguments_choices): New value 'presence'.
845 (print_frame_info_auto, print_frame_info_source_line,
846 print_frame_info_location, print_frame_info_source_and_location,
847 print_frame_info_location_and_address, print_frame_info_short_location,
848 print_frame_info_choices, print_frame_info_print_what): New definitions.
849 (print_frame_args): Only print dots for args if print frame-arguments
851 (frame_print_option_defs): New element for "frame-info".
852 (get_user_print_what_frame_info): New function.
853 (frame_show_address): Make non static. Move comment to stack.h.
854 (print_frame_info_to_print_what): New function.
855 (print_frame_info): Update comment. Use fp_opts.print_frame_info
856 to decide what to print.
857 (backtrace_command_1): Handle the new print_frame_arguments_presence
859 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
860 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
861 (py_print_frame): In non-mi mode, use LOCATION as default for
862 print_what, similarly to frame information printed directly by
863 backtrace command. Handle frame-info user option in non MI mode.
865 2019-07-27 Kevin Buettner <kevinb@redhat.com>
867 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
868 Add case for debugging 32-bit target on 64-bit host. Revise
871 2019-07-27 Kevin Buettner <kevinb@redhat.com>
873 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
874 instead of find_function_entry_range_from_pc.
876 2019-07-27 Kevin Buettner <kevinb@redhat.com>
878 * stack.c (find_frame_funname): Remove code which preferred
879 minsym over symtab sym in "certain pathological cases".
881 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
882 parameter. Change type of "do_demangle" to bool.
883 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
884 Pass suitable "prefer_sym_over_minsym" flag to
885 build_address_symbolic(). Don't output "+" for negative offsets.
886 * printcmd.c (print_address_symbolic): Update invocation of
887 build_address_symbolic to include a "prefer_sym_over_minsym"
889 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
890 Restrict cases in which use of minimal symbol is preferred to that
891 of a found symbol. Update comments.
893 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
894 for entry pc when entry pc is out of range for that FDE.
896 2019-07-26 Brian Callahan <bcallah@openbsd.org>
899 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
902 2019-07-25 Christian Biesinger <cbiesinger@google.com>
904 * python/py-objfile.c (add_separate_debug_file): Fix comment about
905 this function's Python signature.
908 2019-07-24 Christian Biesinger <cbiesinger@google.com>
910 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
911 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
912 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
913 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
914 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
917 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
919 * h8300-tdep.c (h8300_register_name_common): New.
920 h8300_register_name): Use h8300_register_name_common.
921 (h8300s_register_name): Likewise.
922 (h8300sx_register_name): Likewise.
923 (h8300h_register_nam): New.
924 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
927 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
929 * arm-tdep.c (arm_skip_cmse_entry): New function.
930 (arm_is_sgstubs_section): New function.
931 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
933 2019-07-22 Tom Tromey <tom@tromey.com>
935 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
938 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
940 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
943 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
945 * symtab.c (search_symbols): Adjust msymbol matching type arrays
946 so that GDB doesn't match any msymbols when searching in the
948 (print_symbol_info): Print using typedef_print or type_print based
949 on the type of the symbol. Add updated FIXME comment moved from...
950 (_initialize_symtab): ... move and update FIXME comment to above.
952 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
954 * NEWS: Mention adding -q option to "info types".
955 * symtab.c (struct info_types_options): New struct.
956 (info_types_options_defs): New variable.
957 (make_info_types_options_def_group): New function.
958 (info_types_command): Use gdb::option framework to parse options.
959 (info_types_command_completer): New function.
960 (_initialize_symtab): Extend the help text on "info types" and
961 register command completer.
963 2019-07-21 Christian Biesinger <cbiesinger@google.com>
965 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
966 (lookup_symbol_in_objfile): Change int to block_enum and add a
967 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
969 2019-07-20 Christian Biesinger <cbiesinger@google.com>
971 * MAINTAINERS (Write After Approval): Add self.
973 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
975 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
976 instruction to the dummy code region.
978 2019-07-19 Tom Tromey <tromey@adacore.com>
980 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
981 (ARGSUSED, PARAMS, __func__): Remove rules.
983 2019-07-19 Alan Hayward <alan.hayward@arm.com>
985 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
986 * features/arm/arm-with-iwmmxt.c: Remove.
987 * features/arm/arm-with-iwmmxt.xml: Remove.
988 * features/arm/arm-with-m-fpa-layout.c: Remove.
989 * features/arm/arm-with-m-fpa-layout.xml: Remove.
990 * features/arm/arm-with-m-vfp-d16.c: Remove.
991 * features/arm/arm-with-m-vfp-d16.xml: Remove.
992 * features/arm/arm-with-m.c: Remove.
993 * features/arm/arm-with-m.xml: Remove.
994 * features/arm/arm-with-neon.c: Remove.
995 * features/arm/arm-with-neon.xml: Remove.
996 * features/arm/arm-with-vfpv2.c: Remove.
997 * features/arm/arm-with-vfpv2.xml: Remove.
998 * features/arm/arm-with-vfpv3.c: Remove.
999 * features/arm/arm-with-vfpv3.xml: Remove.
1001 2019-07-19 Alan Hayward <alan.hayward@arm.com>
1003 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
1005 2019-07-19 Alan Hayward <alan.hayward@arm.com>
1007 * arch/aarch32.c (aarch32_create_target_description): Create
1008 target descriptions using features.
1009 * arch/arm.c (arm_create_target_description)
1010 (arm_create_mprofile_target_description): Likewise.
1011 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
1013 2019-07-19 Alan Hayward <alan.hayward@arm.com>
1015 * Makefile.in: Add new files.
1016 * aarch32-tdep.c: New file.
1017 * aarch32-tdep.h: New file.
1018 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
1019 Call aarch32_read_description.
1020 * arch/aarch32.c: New file.
1021 * arch/aarch32.h: New file.
1022 * arch/arm.c (arm_create_target_description)
1023 (arm_create_mprofile_target_description): New function.
1024 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
1025 (arm_create_target_description)
1026 (arm_create_mprofile_target_description): New declaration.
1027 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
1028 read_description functions.
1029 * arm-linux-nat.c (arm_linux_nat_target::read_description):
1031 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
1032 * arm-tdep.c (tdesc_arm_list): New variable.
1033 (arm_register_g_packet_guesses): Call create description functions.
1034 (arm_read_description) (arm_read_mprofile_description): New
1036 * arm-tdep.h (arm_read_description)
1037 (arm_read_mprofile_description): Add declaration.
1038 * configure.tgt: Add new files.
1040 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
1042 * top.c (new_ui_command): Open specified terminal just once.
1044 2019-07-18 Tom Tromey <tromey@adacore.com>
1046 * symtab.c (main_name): Constify return type.
1047 * symfile.c (set_initial_language): Update.
1048 * symtab.h (main_name): Constify return type.
1050 2019-07-17 Tom Tromey <tom@tromey.com>
1052 * tui/tui-winsource.c (tui_update_source_window)
1053 (tui_update_source_window_as_is)
1054 (tui_update_source_windows_with_line): Remove return.
1055 * tui/tui-disasm.c (tui_show_disassem)
1056 (tui_show_disassem_and_update_source): Remove return.
1057 * tui/tui.c (tui_reset): Remove return.
1058 * tui/tui-wingeneral.c
1059 (tui_check_and_display_highlight_if_needed): Remove return.
1061 2019-07-17 Tom Tromey <tom@tromey.com>
1063 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
1065 2019-07-17 Tom Tromey <tom@tromey.com>
1067 * tui/tui-winsource.h (struct tui_exec_info_window)
1068 (struct tui_source_window_base): Move from tui-data.h.
1069 * tui/tui-winsource.c: Move many method definitions from
1070 elsewhere. Remove "structuring" comments.
1071 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
1072 (tui_source_window_base::refresh_window): Move to
1074 * tui/tui-win.c (tui_source_window_base::refresh_all)
1075 (tui_source_window_base::update_tab_width)
1076 (tui_source_window_base::set_new_height)
1077 (tui_source_window_base::do_make_visible_with_new_height): Move to
1079 * tui/tui-source.h: Update.
1080 * tui/tui-source.c (tui_source_window_base::reset): Move to
1082 * tui/tui-disasm.h: Update.
1083 * tui/tui-data.h (struct tui_exec_info_window): Move to
1085 (struct tui_source_window_base): Likewise.
1086 * tui/tui-data.c (tui_source_window_base::clear_detail)
1087 (tui_source_window_base, ~tui_source_window_base): Move to
1090 2019-07-17 Tom Tromey <tom@tromey.com>
1092 * tui/tui-win.c (tui_resize_all)
1093 (tui_source_window_base::update_tab_width)
1094 (tui_adjust_win_heights): Update.
1095 (tui_win_info::make_invisible_and_set_new_height): Rename from
1096 make_invisible_and_set_new_height.
1097 * tui/tui-data.h (struct tui_win_info)
1098 <make_invisible_and_set_new_height>: New method.
1100 2019-07-17 Tom Tromey <tom@tromey.com>
1102 * tui/tui.c: Update.
1103 * tui/tui-source.h (struct tui_source_window): Move from
1105 * tui/tui-layout.c: Update.
1106 * tui/tui-disasm.c: Update.
1107 * tui/tui-data.h (struct tui_source_window): Move to
1110 2019-07-17 Tom Tromey <tom@tromey.com>
1112 * tui/tui-disasm.h (struct tui_disasm_window): Move from
1114 * tui/tui-data.h (struct tui_disasm_window): Move to
1117 2019-07-17 Tom Tromey <tom@tromey.com>
1119 * tui/tui-regs.h (struct tui_data_item_window): Move from
1121 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
1122 * tui/tui-data.h (struct tui_data_item_window): Move to
1124 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
1126 2019-07-17 Tom Tromey <tom@tromey.com>
1128 * tui/tui.c: Update.
1129 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
1130 (tui_cmd_window::max_height): Move to tui-command.c.
1131 * tui/tui-layout.c: Update.
1132 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
1133 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
1135 * tui/tui-command.h (struct tui_cmd_window): Move from
1137 * tui/tui-command.c: Remove "structuring" comments.
1138 (tui_cmd_window::clear_detail)
1139 (tui_cmd_window::do_make_visible_with_new_height)
1140 (tui_cmd_window::max_height): Move from elsewhere.
1142 2019-07-17 Tom Tromey <tom@tromey.com>
1144 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
1146 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
1147 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
1149 2019-07-17 Tom Tromey <tom@tromey.com>
1151 * tui/tui.c: Update.
1152 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
1154 * tui/tui-windata.h: Remove file.
1155 * tui/tui-windata.c: Remove file.
1156 * tui/tui-win.c (tui_data_window::set_new_height)
1157 (tui_data_window::do_make_visible_with_new_height): Move to
1159 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
1160 * tui/tui-regs.c: Remove "structuring" comments.
1161 (tui_data_window::first_data_item_displayed)
1162 (tui_data_window::delete_data_content_windows)
1163 (tui_data_window::erase_data_content)
1164 (tui_data_window::display_all_data)
1165 (tui_data_window::refresh_all)
1166 (tui_data_window::do_scroll_vertical)
1167 (tui_data_window::clear_detail, tui_data_window::set_new_height)
1168 (tui_data_window::do_make_visible_with_new_height)
1169 (tui_data_window::refresh_window): Move from elsewhere.
1170 (_initialize_tui_regs): Move to end of file.
1171 * tui/tui-layout.c: Update.
1172 * tui/tui-hooks.c: Update.
1173 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
1174 * tui/tui-data.c (tui_data_window::clear_detail): Move to
1176 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
1178 2019-07-17 Tom Tromey <tom@tromey.com>
1180 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
1183 2019-07-17 Tom Tromey <tom@tromey.com>
1185 * tui/tui-win.c (tui_source_window_base::set_new_height)
1186 (tui_source_window_base::do_make_visible_with_new_height): Use
1187 m_has_locator field directly.
1188 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
1190 (struct tui_source_window_base) <has_locator>: Likewise.
1192 2019-07-17 Tom Tromey <tom@tromey.com>
1194 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
1196 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
1198 * tui/tui-win.c (tui_source_window_base::set_new_height)
1199 (tui_source_window_base::set_new_height)
1200 (make_invisible_and_set_new_height)
1201 (tui_source_window_base::do_make_visible_with_new_height)
1202 (tui_source_window_base::do_make_visible_with_new_height):
1204 * tui/tui-layout.c (show_source_disasm_command, show_data)
1205 (show_source_or_disasm_and_command): Update.
1206 * tui/tui-layout.c (show_layout): Update.
1208 2019-07-17 Tom Tromey <tom@tromey.com>
1210 * tui/tui-layout.c (make_data_window): Remove.
1211 (show_data): Unify creation and re-initialization cases.
1213 2019-07-17 Tom Tromey <tom@tromey.com>
1215 * tui/tui-layout.c (make_source_window, make_disasm_window):
1217 (show_data): Unify creation and re-initialization cases.
1219 2019-07-17 Tom Tromey <tom@tromey.com>
1221 * tui/tui-layout.c (make_command_window): Remove.
1222 (show_source_disasm_command, show_source_or_disasm_and_command):
1223 Unify creation and re-initialization cases.
1225 2019-07-17 Tom Tromey <tom@tromey.com>
1227 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
1228 creation and re-initialization cases.
1230 2019-07-17 Tom Tromey <tom@tromey.com>
1232 * tui/tui-regs.c (tui_get_register): Return void.
1234 2019-07-17 Tom Tromey <tom@tromey.com>
1236 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
1239 2019-07-17 Tom Tromey <tom@tromey.com>
1241 * tui/tui-layout.c (show_source_disasm_command): Simplify window
1244 2019-07-17 Tom Tromey <tom@tromey.com>
1246 * tui/tui.h (tui_set_layout_by_name): Don't declare.
1247 * tui/tui-regs.c (tui_reg_layout): New function.
1248 (tui_show_registers, tui_reg_command): Use it.
1249 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
1250 (tui_layout_command): Rename from tui_set_layout_by_name. Change
1252 (tui_layout_command): Remove.
1254 2019-07-17 Tom Tromey <tom@tromey.com>
1256 * tui/tui-layout.h (tui/tui-layout): Return void.
1257 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
1259 2019-07-17 Tom Tromey <tom@tromey.com>
1261 * tui/tui-layout.c (show_source_disasm_command, show_data):
1263 (reset_locator): Remove.
1264 (show_source_or_disasm_and_command): Update.
1266 2019-07-17 Tom Tromey <tom@tromey.com>
1268 * tui/tui-source.c (tui_source_window_base::reset): Remove
1270 * tui/tui-layout.c (make_command_window, make_source_window)
1271 (make_disasm_window, make_data_window)
1272 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
1273 (reset_locator, show_source_or_disasm_and_command): Update.
1274 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
1276 (struct tui_source_window_base) <reset>: Likewise.
1278 2019-07-17 Tom Tromey <tom@tromey.com>
1280 * tui/tui-layout.c (show_source_disasm_command): Use
1282 (reset_locator): New function.
1283 (init_and_make_win): Remove.
1284 (show_source_or_disasm_and_command): Use reset_locator.
1286 2019-07-17 Tom Tromey <tom@tromey.com>
1288 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
1290 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
1292 * tui/tui-source.c (tui_source_window_base::reset): New method.
1293 * tui/tui-layout.c (make_command_window): Don't call
1295 (make_source_window, make_disasm_window): Don't call
1296 make_source_or_disasm_window.
1297 (make_data_window): Don't call init_and_make_win. Change calling
1299 (show_source_disasm_command, show_data): Simplify.
1300 (make_source_or_disasm_window): Remove.
1301 (show_source_or_disasm_and_command): Simplify.
1302 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
1303 (struct tui_source_window_base) <reset>: Likewise.
1304 <execution_info>: Remove initializer.
1305 * tui/tui-data.c (tui_source_window_base): Initialize
1308 2019-07-17 Tom Tromey <tom@tromey.com>
1310 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
1313 2019-07-17 Tom Tromey <tom@tromey.com>
1315 * tui/tui.c (tui_rl_other_window): Update.
1316 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
1317 superclass method first. Always iterate over regs_content.
1318 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
1320 * tui/tui-win.c (tui_set_focus_command): Update.
1322 2019-07-17 Tom Tromey <tom@tromey.com>
1324 * tui/tui-win.c (tui_set_focus_command): Rename from
1325 tui_set_focus. Call tui_enable.
1326 (tui_set_focus_command): Remove.
1328 2019-07-17 Tom Tromey <tom@tromey.com>
1330 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
1332 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
1334 (tui_data_window::refresh_window): Call refresh_window on data
1335 items. Always call superclass refresh_window.
1336 (tui_win_info::refresh): Remove.
1337 (tui_source_window_base::refresh_window): Update.
1338 (tui_refresh_all): Update.
1339 * tui/tui-layout.c (show_source_disasm_command): Remove call to
1341 (show_source_or_disasm_and_command): Likewise.
1342 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
1343 (struct tui_source_window_base) <refresh>: Likewise.
1345 2019-07-17 Tom Tromey <tom@tromey.com>
1347 * tui/tui-winsource.c (tui_clear_source_content)
1348 (tui_show_source_content): Update.
1349 * tui/tui-source.c (tui_source_window::showing_source_p): Check
1350 whether content is empty.
1351 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
1354 2019-07-17 Tom Tromey <tom@tromey.com>
1356 * tui/tui-winsource.c (tui_erase_source_content): Clear the
1358 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
1359 * tui/tui-source.c (tui_set_source_content_nil): Remove.
1361 2019-07-17 Tom Tromey <tom@tromey.com>
1363 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
1364 (struct tui_data_item_window): Update.
1366 2019-07-17 Tom Tromey <tom@tromey.com>
1368 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
1369 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
1372 2019-07-17 Tom Tromey <tom@tromey.com>
1374 * tui/tui-winsource.h (tui_erase_source_content)
1375 (tui_clear_source_content): Remove "display_prompt" parameter.
1376 * tui/tui-winsource.c (tui_update_source_window_as_is)
1377 (tui_update_source_windows_with_addr): Update.
1378 (tui_clear_source_content): Remove "display_prompt" parameter.
1379 (tui_erase_source_content): Likewise. Simplify.
1380 (tui_show_source_content): Update.
1381 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
1382 * tui/tui-stack.c (tui_show_frame_info): Update.
1383 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
1386 2019-07-17 Tom Tromey <tom@tromey.com>
1388 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1389 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
1391 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
1394 2019-07-17 Tom Tromey <tom@tromey.com>
1396 * tui/tui-winsource.c (tui_clear_source_content)
1397 (tui_show_source_content, tui_show_exec_info_content)
1398 (tui_clear_exec_info_content): Update.
1399 * tui/tui-stack.c (tui_show_locator_content): Update.
1400 (tui_show_frame_info): Update.
1401 * tui/tui-source.h (tui_source_window): Don't declare.
1402 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
1403 from tui_source_is_displayed.
1404 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
1406 (struct tui_source_window_base) <content_in_use>: New field. Now
1408 (struct tui_source_window) <showing_source_p>: New method.
1409 (TUI_SRC_WIN): Change cast.
1410 * tui/tui-data.c (tui_initialize_static_data): Update.
1412 2019-07-17 Tom Tromey <tom@tromey.com>
1414 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
1416 * tui/tui-source.c (tui_source_window::location_matches_p): New
1418 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
1420 * tui/tui-data.h (struct tui_source_window_base)
1421 <location_matches_p>: New method.
1422 (struct tui_source_window, struct tui_disasm_window)
1423 <location_matches_p>: Likewise.
1425 2019-07-17 Tom Tromey <tom@tromey.com>
1427 * tui/tui-win.c (tui_set_win_height_command): Rename from
1429 (tui_set_win_height_command): Remove.
1431 2019-07-17 Tom Tromey <tom@tromey.com>
1433 * tui/tui-source.c (tui_source_window): New constructor. Add
1435 (~tui_source_window): New destructor.
1436 (tui_source_window::style_changed): New method.
1437 * tui/tui-hooks.c (tui_redisplay_source): Remove.
1438 (tui_attach_detach_observers): Update.
1439 * tui/tui-data.h (struct tui_source_window): Make constructor not
1440 inline. Add destructor.
1441 (struct tui_source_window) <style_changed>: New method.
1442 <m_observable>: New member.
1444 2019-07-17 Tom Tromey <tom@tromey.com>
1446 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
1447 * tui/tui-win.c (tui_resize_all): Fix typo.
1449 2019-07-17 Tom Tromey <tom@tromey.com>
1451 * tui/tui-wingeneral.h (tui_refresh_all): Update.
1452 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
1453 (tui_refresh_all): Remove "list" parameter. Use foreach.
1454 * tui/tui-win.c (window_name_completer): Use foreach.
1455 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
1456 (update_tab_width): Likewise.
1457 * tui/tui-layout.c (show_layout): Update.
1458 * tui/tui-data.h (class tui_window_iterator): New.
1459 (struct all_tui_windows): New.
1460 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
1462 2019-07-17 Tom Tromey <tom@tromey.com>
1464 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
1465 parameter. Don't reference globals.
1466 (tui_reg_command): Update.
1468 2019-07-17 Tom Tromey <tom@tromey.com>
1470 * tui/tui-regs.c (tui_show_registers): Simplify.
1472 2019-07-17 Tom Tromey <tom@tromey.com>
1474 * tui/tui-regs.c (tui_show_registers): Update.
1475 (tui_show_register_group): Add win_info parameter.
1477 2019-07-17 Tom Tromey <tom@tromey.com>
1479 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
1480 Rename from tui_display_reg_element_at_line.
1481 (tui_data_window::display_registers_from_line): Update.
1482 * tui/tui-data.h (struct tui_data_window)
1483 <display_reg_element_at_line>: New method.
1485 2019-07-17 Tom Tromey <tom@tromey.com>
1487 * tui/tui-regs.h (tui_display_registers_from)
1488 (tui_display_registers_from_line): Don't declare.
1489 * tui/tui-windata.c (tui_data_window::display_all_data)
1490 (tui_data_window::refresh_all)
1491 (tui_data_window::do_scroll_vertical): Update.
1492 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
1493 from tui_display_registers_from.
1494 (tui_display_reg_element_at_line): Update.
1495 (tui_data_window::display_registers_from_line): Rename from
1496 tui_display_registers_from_line.
1497 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
1498 display_registers_from_line>: New methods.
1500 2019-07-17 Tom Tromey <tom@tromey.com>
1502 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
1503 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
1504 from tui_erase_data_content.
1505 (tui_data_window::display_all_data)
1506 (tui_data_window::refresh_all)
1507 (tui_data_window::do_scroll_vertical): Update.
1508 * tui/tui-regs.c (tui_show_registers): Update.
1509 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
1512 2019-07-17 Tom Tromey <tom@tromey.com>
1514 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
1517 (tui_data_window::delete_data_content_windows): Rename from
1518 tui_delete_data_content_windows.
1519 (tui_data_window::display_all_data)
1520 (tui_data_window::do_scroll_vertical): Update.
1521 * tui/tui-data.h (struct tui_data_window)
1522 <delete_data_content_windows>: New method.
1524 2019-07-17 Tom Tromey <tom@tromey.com>
1526 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
1527 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
1529 2019-07-17 Tom Tromey <tom@tromey.com>
1531 * tui/tui-windata.h (tui_display_all_data): Don't declare.
1532 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
1533 from tui_display_all_data.
1535 (tui_data_window::do_make_visible_with_new_height): Update.
1536 * tui/tui-regs.c (tui_show_registers): Update.
1537 * tui/tui-layout.c (tui_set_layout): Update.
1538 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
1541 2019-07-17 Tom Tromey <tom@tromey.com>
1543 * tui/tui-windata.h (tui_display_data_from): Don't declare.
1544 * tui/tui-windata.c (tui_display_data_from): Remove.
1545 (tui_data_window::refresh_all): Update.
1547 2019-07-17 Tom Tromey <tom@tromey.com>
1549 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
1550 * tui/tui-windata.c (tui_display_data_from_line): Remove.
1551 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
1552 tui_display_registers_from_line.
1553 * tui/tui-regs.h (tui_display_registers_from_line): Update.
1554 * tui/tui-regs.c (tui_display_registers_from_line): Remove
1555 "force_display" parameter.
1557 2019-07-17 Tom Tromey <tom@tromey.com>
1559 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
1561 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
1562 Rename from tui_first_reg_element_no_inline.
1563 (tui_display_reg_element_at_line)
1564 (tui_display_registers_from_line): Update.
1565 * tui/tui-data.h (struct tui_data_window)
1566 <first_reg_element_no_inline>: New method.
1568 2019-07-17 Tom Tromey <tom@tromey.com>
1570 * tui/tui-windata.c (tui_display_data_from)
1571 (tui_data_window::do_scroll_vertical): Update.
1572 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
1573 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
1574 Rename from tui_line_from_reg_element_no.
1575 (tui_display_registers_from_line): Update.
1576 * tui/tui-data.h (struct tui_data_window)
1577 <line_from_reg_element_no>: New method.
1579 2019-07-17 Tom Tromey <tom@tromey.com>
1581 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
1582 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
1583 tui_last_regs_line_no.
1584 (tui_display_reg_element_at_line)
1585 (tui_display_registers_from_line): Update.
1586 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
1589 2019-07-17 Tom Tromey <tom@tromey.com>
1592 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
1593 (tui_update_breakpoint_info): Add "being_deleted" parameter.
1594 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1595 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
1596 (tui_update_breakpoint_info): Likewise.
1597 * tui/tui-hooks.c (tui_event_create_breakpoint)
1598 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
1601 2019-07-17 Tom Tromey <tom@tromey.com>
1603 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
1605 2019-07-17 Tom Tromey <tom@tromey.com>
1607 * tui/tui-winsource.c (tui_update_source_window_as_is)
1608 (tui_update_source_windows_with_addr): Update.
1609 * tui/tui-source.h (tui_set_source_content)
1610 (tui_show_symtab_source): Add "win_info" parameter.
1611 * tui/tui-source.c (tui_set_source_content): Add "win_info"
1613 (tui_show_symtab_source): Likewise.
1615 2019-07-17 Tom Tromey <tom@tromey.com>
1617 * tui/tui-wingeneral.c
1618 (tui_check_and_display_highlight_if_needed): Check can_highlight.
1620 2019-07-17 Tom Tromey <tom@tromey.com>
1622 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
1623 (struct tui_cmd_window) <can_scroll>: New method.
1624 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
1627 2019-07-17 Tom Tromey <tromey@adacore.com>
1629 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
1630 do_field_signed>: Rename. Change type of "value".
1631 * ui-out.c (ui_out::field_signed): Rename from field_int.
1632 Change type of "value".
1633 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
1635 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
1636 do_field_int. Change type of "value".
1637 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
1638 do_field_int. Change type of "value".
1639 * tracepoint.c (trace_status_mi, tfind_1)
1640 (print_one_static_tracepoint_marker): Update.
1641 * thread.c (print_thread_info_1, print_selected_thread_frame):
1643 * stack.c (print_frame, print_frame_info): Update.
1644 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
1646 * source.c (print_source_lines_base): Update.
1647 * skip.c (info_skip_command): Update.
1648 * record-btrace.c (btrace_ui_out_decode_error)
1649 (btrace_call_history_src_line): Update.
1650 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
1652 * progspace.c (print_program_space): Update.
1653 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
1654 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
1655 do_field_int. Change type of "value".
1656 * mi/mi-out.c (mi_ui_out::do_table_begin)
1657 (mi_ui_out::do_table_header): Update.
1658 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
1660 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
1661 (mi_cmd_data_list_changed_registers, output_register)
1662 (mi_cmd_data_read_memory, mi_load_progress)
1663 (mi_cmd_trace_frame_collected): Update.
1664 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
1666 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
1667 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
1668 (mi_cmd_var_list_children, varobj_update_one): Update.
1669 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
1670 (mi_cmd_stack_list_args, list_arg_or_local): Update.
1671 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
1672 * inferior.c (print_inferior): Update.
1673 * gdb_bfd.c (print_one_bfd): Update.
1674 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1676 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
1677 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
1678 do_field_int. Change type of "value".
1679 * cli-out.c (cli_ui_out::do_field_signed): Rename from
1680 do_field_int. Change type of "value".
1681 * breakpoint.c (watchpoint_check, print_breakpoint_location)
1682 (print_one_breakpoint_location, print_it_catch_fork)
1683 (print_one_catch_fork, print_it_catch_vfork)
1684 (print_one_catch_vfork, print_it_catch_solib)
1685 (print_it_catch_exec, print_it_ranged_breakpoint)
1686 (print_mention_watchpoint, print_mention_masked_watchpoint)
1687 (bkpt_print_it, update_static_tracepoint): Update.
1688 * break-catch-throw.c (print_it_exception_catchpoint): Update.
1689 * break-catch-syscall.c (print_it_catch_syscall): Update.
1690 * ada-tasks.c (print_ada_task_info): Update.
1691 * ada-lang.c (print_it_exception, print_mention_exception):
1694 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1696 PR breakpoints/24541
1697 * gdbarch.c: Regenerate.
1698 * gdbarch.h: Regenerate.
1699 * gdbarch.sh: Adjust return type and parameter types for
1700 'stap_adjust_register'.
1701 (i386_stap_adjust_register): Adjust signature and return new
1703 * stap-probe.c (stap_parse_register_operand): Adjust use of
1704 'gdbarch_stap_adjust_register'.
1706 2019-07-17 Tom Tromey <tromey@adacore.com>
1708 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
1710 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
1712 (struct s390_process_info): Add initializers.
1713 (s390_add_process): Use new.
1714 (s390_linux_nat_target::low_forget_process): Use delete.
1715 (s390_linux_nat_target::low_new_fork)
1716 (s390_linux_nat_target::stopped_by_watchpoint)
1717 (s390_linux_nat_target::low_prepare_to_resume)
1718 (s390_linux_nat_target::insert_watchpoint)
1719 (s390_linux_nat_target::insert_hw_breakpoint)
1720 (s390_linux_nat_target::remove_watchpoint)
1721 (s390_linux_nat_target::remove_hw_breakpoint): Update.
1723 2019-07-16 John Baldwin <jhb@FreeBSD.org>
1725 * aarch64-fbsd-nat.c: Include regcache.h.
1726 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
1728 (aarch64_fbsd_nat_target::fetch_registers)
1729 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
1731 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
1733 2019-07-16 John Baldwin <jhb@FreeBSD.org>
1735 * fbsd-nat.c: Include gdbarch.h.
1737 2019-07-15 Tom Tromey <tromey@adacore.com>
1739 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
1741 2019-07-15 Tom Tromey <tromey@adacore.com>
1743 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
1744 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
1745 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
1746 * cli-out.c (cli_ui_out::do_field_int): New method.
1747 * ui-out.c (ui_out::field_unsigned): New method.
1748 * symfile.c (generic_load): Use field_unsigned.
1749 (print_transfer_performance): Likewise.
1750 * record-btrace.c (ui_out_field_uint): Remove.
1751 (btrace_call_history_insn_range, btrace_call_history): Use
1753 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
1755 * ui-out.h (class ui_out) <field_unsigned>: New method.
1756 <do_field_unsigned>: Likewise.
1758 2019-07-15 Tom Tromey <tromey@adacore.com>
1760 * mi/mi-main.c (list_available_thread_groups): Use field_string.
1761 * mi/mi-interp.c (mi_memory_changed): Use field_string.
1762 * target.c (flash_erase_command): Use field_string.
1763 * infrun.c (print_signal_received_reason): Use field_string.
1764 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
1765 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
1767 * ada-tasks.c (print_ada_task_info): Use field_string.
1769 2019-07-15 Tom Tromey <tromey@adacore.com>
1771 * target.c (flash_erase_command): Use field_core_addr.
1772 * symfile.c (generic_load): Use field_core_addr.
1773 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1774 Use field_core_addr.
1775 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
1778 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1780 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
1781 value if its desired type is smaller than a CORE_ADDR and signed.
1783 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1785 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
1786 of changes to field names, and use new is_reference field to
1787 decide if a property is a reference or not.
1788 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
1790 (struct dwarf2_property_baton): Update header comment, rename
1791 'referenced_type' to 'property_type' and update comments.
1792 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
1793 default property type, store in property baton, update to take
1794 accound of renamed field.
1795 (read_func_scope): Update call to attr_to_dynamic_prop.
1796 (read_array_type): Likewise.
1797 (dwarf2_per_cu_addr_sized_int_type): New function.
1798 (read_subrange_index_type): Move type finding code to
1799 dwarf2_per_cu_addr_sized_int_type.
1800 (read_subrange_type): Update calls to attr_to_dynamic_prop.
1801 (dwarf2_per_cu_addr_type): New function.
1802 (set_die_type): Update calls to attr_to_dynamic_prop.
1804 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1806 * dwarf2read.c (read_subrange_index_type): New function.
1807 (read_subrange_type): Move code into new function and call it.
1808 * gdbtypes.c (create_range_type): Add some asserts.
1810 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1812 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
1813 update return statements.
1814 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
1815 declaration, and update comment to match.
1816 * gdbtypes.c (resolve_dynamic_array): Update call to
1817 dwarf2_evaluate_property to match new return type.
1819 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1821 * valarith.c (value_subscripted_rvalue): Change lowerbound
1822 parameter type from int to LONGEST.
1823 * value.h (value_subscripted_rvalue): Likewise in declaration.
1825 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
1827 * cli/cli-utils.c (info_print_command_completer): New function.
1828 * cli/cli-utils.h: Add 'completer.h' include, and forward
1829 declaration for 'struct cmd_list_element'.
1830 (info_print_command_completer): Declare.
1831 * stack.c (_initialize_stack): Add completer for 'info locals' and
1833 * symtab.c (_initialize_symtab): Add completer for 'info
1834 variables' and 'info functions'.
1835 * NEWS: Mention completion for additional info commands.
1837 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
1839 * cli/cli-utils.c (extract_info_print_args): Delete.
1840 (extract_arg_maybe_quoted): Delete.
1841 (info_print_options_defs): New variable.
1842 (make_info_print_options_def_group): New function.
1843 (extract_info_print_options): Define new function.
1844 * cli/cli-utils.h (extract_info_print_args): Delete.
1845 (struct info_print_options): New structure.
1846 (extract_info_print_options): Declare new function.
1847 * stack.c (info_locals_command): Update to use new
1848 extract_info_print_options, also add a header comment.
1849 (info_args_command): Likewise.
1850 * symtab.c (info_variables_command): Likewise.
1851 (info_functions_command): Likewise.
1853 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
1855 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
1856 to extract string arguments.
1857 * common/common-utils.c (extract_string_maybe_quoted): New function.
1858 * common/common-utils.h (extract_string_maybe_quoted): Declare.
1860 2019-07-11 Tom Tromey <tromey@adacore.com>
1862 * main.c (get_init_files): Use GDBINIT, not gdbinit.
1863 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
1864 * top.h (gdbinit): Don't declare.
1865 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
1867 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
1868 * top.c (gdb_init): Don't call init_cli_cmds.
1870 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
1872 2019-07-11 Tom Tromey <tromey@adacore.com>
1874 * python/py-inferior.c (add_thread_object): Don't use thread_obj
1875 after it has been moved.
1877 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1879 * valops.c (value_must_coerce_to_target): Change return type to
1881 * value.h (value_must_coerce_to_target): Likewise.
1883 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
1885 * breakpoint.c (is_hardware_watchpoint): Remove
1886 forward-declaration.
1887 (is_masked_watchpoint): Change return type to bool.
1888 (is_tracepoint): Likewise.
1889 (is_breakpoint): Likewise.
1890 (is_hardware_watchpoint): Likewise.
1891 (is_watchpoint): Likewise.
1892 (is_no_memory_software_watchpoint): Likewise.
1893 (is_catchpoint): Likewise.
1894 (breakpoint_1): Make FILTER parameter's return type bool.
1895 is_masked_watchpoint): Change return type to bool.
1896 (save_breakpoints): Make FILTER parameter's return type bool.
1897 * breakpoint.h (is_breakpoint): Change return type to bool.
1898 (is_watchpoint): Likewise.
1899 (is_catchpoint): Likewise.
1900 (is_tracepoint): Likewise.
1902 2019-07-10 Tom Tromey <tom@tromey.com>
1904 * defs.h: Don't include gdbarch.h.
1905 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
1906 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
1907 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
1908 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
1909 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
1910 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
1911 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
1912 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
1913 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
1914 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
1915 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
1916 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
1917 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
1918 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
1919 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
1920 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
1921 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
1922 record-btrace.c, record.h, regcache-dump.c, regcache.h,
1923 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
1924 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
1925 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
1926 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
1927 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
1928 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
1929 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
1930 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
1931 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
1933 2019-07-10 Tom Tromey <tromey@adacore.com>
1935 * ada-lang.h (is_ada_exception_catchpoint): Declare.
1936 * breakpoint.c (init_ada_exception_breakpoint): Register as
1938 (print_one_breakpoint_location, print_one_breakpoint): Use
1939 is_ada_exception_catchpoint.
1940 * ada-lang.c (class ada_catchpoint_location): Pass
1941 bp_loc_software_breakpoint to bp_location constructor.
1942 (is_ada_exception_catchpoint): New function.
1944 2019-07-10 Tom Tromey <tromey@adacore.com>
1946 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
1948 (struct arm_exidx_entry): New method operator<.
1949 (struct arm_exidx_data) <section_maps>: Change type.
1950 (arm_exidx_data_free): Remove.
1951 (arm_exidx_data_key): Change type. Move lower.
1952 (arm_exidx_new_objfile): Update.
1953 (arm_compare_exidx_entries): Remove.
1954 (arm_find_exidx_entry, _initialize_arm_tdep)
1956 2019-07-10 Tom Tromey <tromey@adacore.com>
1958 * solib-spu.c (ocl_program_data_key): Change type.
1959 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
1962 2019-07-10 Tom Tromey <tromey@adacore.com>
1964 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
1965 (struct solib_aix_inferior_data) <library_list>: Change type.
1966 (solib_aix_inferior_data_handle): Change type.
1967 (get_solib_aix_inferior_data): Update.
1968 (solib_aix_free_library_list): Remove.
1969 (library_list_start_library): Update.
1970 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
1972 (solib_aix_get_library_list)
1973 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
1974 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
1976 2019-07-10 Tom Tromey <tromey@adacore.com>
1978 * solib-dsbt.c (struct dsbt_info): Add initializers.
1979 (solib_dsbt_pspace_data): Change type.
1980 (dsbt_pspace_data_cleanup): Remove.
1981 (get_dsbt_info, _initialize_dsbt_solib): Update.
1983 2019-07-10 Tom Tromey <tromey@adacore.com>
1985 * spu-tdep.c (spu_overlay_data): Change type.
1986 (spu_get_overlay_table, spu_overlay_new_objfile)
1987 (_initialize_spu_tdep): Update.
1989 2019-07-10 Tom Tromey <tromey@adacore.com>
1991 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
1993 (dbx_objfile_data_key): Change type and declare later.
1994 (DBX_SYMFILE_INFO): Rewrite.
1995 * dbxread.c (dbx_objfile_data_key): Change type.
1996 (dbx_symfile_init): Update.
1997 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
1998 (coffstab_build_psymtabs, elfstab_build_psymtabs)
1999 (stabsect_build_psymtabs, _initialize_dbxread): Update.
2001 2019-07-10 Tom Tromey <tromey@adacore.com>
2003 * jit.c (jit_program_space_key): Change type. Move lower.
2004 (get_jit_program_space_data): Update.
2005 (jit_program_space_data_cleanup): Remove.
2006 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
2008 (struct jit_program_space_data): Add initializers.
2010 2019-07-10 Tom Tromey <tromey@adacore.com>
2012 * solib-darwin.c (struct darwin_info): Add initializers.
2013 (solib_darwin_pspace_data): Change type.
2014 (darwin_pspace_data_cleanup): Remove.
2015 (get_darwin_info, _initialize_darwin_solib): Update.
2017 2019-07-10 Tom Tromey <tromey@adacore.com>
2019 * remote-sim.c (struct sim_inferior_data): Add initializers,
2020 constructor, and destructor.
2021 (sim_inferior_data_key): Change type. Move lower.
2022 (check_for_duplicate_sim_descriptor): Update.
2023 (get_sim_inferior_data): Use new. Update.
2024 (~sim_inferior_data_cleanup): Rename from
2025 sim_inferior_data_cleanup. Simplify.
2026 (gdbsim_close_inferior, simulator_command)
2027 (sim_command_completer, _initialize_remote_sim): Update.
2028 (next_pid, INITIAL_PID): Move earlier.
2030 2019-07-10 Tom Tromey <tromey@adacore.com>
2032 * python/python-internal.h (create_thread_object): Return
2034 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
2035 * python/py-inferior.c (struct threadlist_entry): Add
2037 <thread_obj>: Now a gdbpy_ref.
2038 (thread_to_thread_object): Update.
2039 (add_thread_object): Use new.
2040 (delete_thread_object): Use delete.
2041 (infpy_threads): Update.
2042 (py_free_inferior): Update. Construct "inf_obj" after acquiring
2045 2019-07-10 Tom Tromey <tromey@adacore.com>
2047 * valops.c (value_cast): Specialize error message for Ada.
2049 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2051 * breakpoint.c (breakpoint_1): Update doc and parameter names.
2053 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2055 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
2056 bpstat_should_step): Return bool, adjust comments.
2057 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
2058 bpstat_should_step): Likewise.
2060 2019-07-10 Alan Hayward <alan.hayward@arm.com>
2062 * features/Makefile: Use feature target descriptions for Arm.
2063 * features/arm/arm-core.c: Generate new file.
2064 * features/arm/arm-fpa.c: Likewise.
2065 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
2066 * features/arm/arm-m-profile.c: Likewise.
2067 * features/arm/arm-vfpv2.c: Likewise.
2068 * features/arm/arm-vfpv3.c: Likewise.
2069 * features/arm/xscale-iwmmxt.c: Likewise.
2070 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
2072 2019-07-10 Alan Hayward <alan.hayward@arm.com>
2074 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
2077 2019-07-10 Alan Hayward <alan.hayward@arm.com>
2079 * features/aarch64-pauth.c: Regenerate.
2081 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
2083 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
2085 (bpstat_what): Use false instead of 0.
2087 2019-07-09 Pedro Alves <palves@redhat.com>
2089 * break-catch-throw.c (is_exception_catchpoint): New.
2090 * breakpoint.c (print_one_breakpoint_location): New parameter
2091 'raw_loc'. Handle it. Use
2092 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
2093 looking at the breakpoint's type.
2094 (print_one_breakpoint): If handling "maint info breakpoints", also
2095 print locations of exception catchpoints.
2096 * breakpoint.h (is_exception_catchpoint): Declare.
2098 2019-07-09 Pedro Alves <palves@redhat.com>
2100 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
2102 (allocate_location_exception_catchpoint): New.
2103 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
2104 (initialize_throw_catchpoint_ops): Install
2105 allocate_location_exception_catchpoint as allocate_location
2107 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
2108 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
2110 (breakpoint_address_is_meaningful): Delete.
2111 (bl_address_is_meaningful): New.
2112 (breakpoint_locations_match): Adjust comment.
2113 (bp_location_from_bp_type): New, factored out of...
2114 (bp_location::bp_location(breakpoint *)): ... this.
2115 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
2117 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
2118 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
2119 breakpoint_address_is_meaningful.
2120 (bp_locations_compare): Adjust comment.
2121 (update_global_location_list): Use bl_address_is_meaningful
2122 instead of breakpoint_address_is_meaningful.
2123 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
2125 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
2126 * python/py-breakpoint.c (bppy_get_location): No longer check
2127 whether location is null.
2129 2019-07-09 Pedro Alves <palves@redhat.com>
2132 * breakpoint.c (print_one_breakpoint_location): Remove
2133 single-location assert.
2135 2019-07-09 Tom Tromey <tom@tromey.com>
2137 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
2138 * configure: Rebuild.
2139 * configure.ac: Change common to gdbsupport.
2140 * gdbsupport: Rename from common.
2141 * acinclude.m4: Change common to gdbsupport.
2142 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
2143 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
2145 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
2146 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
2147 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
2148 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
2149 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
2150 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
2151 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
2152 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
2153 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
2154 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
2155 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
2156 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
2157 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
2158 coff-pe-read.c, command.h, compile/compile-c-support.c,
2159 compile/compile-c.h, compile/compile-cplus-symbols.c,
2160 compile/compile-cplus-types.c, compile/compile-cplus.h,
2161 compile/compile-loc2c.c, compile/compile.c, completer.c,
2162 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
2163 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
2164 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
2165 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
2166 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
2167 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
2168 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
2169 features/aarch64-core.c, features/aarch64-fpu.c,
2170 features/aarch64-pauth.c, features/aarch64-sve.c,
2171 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
2172 features/i386/32bit-core.c, features/i386/32bit-linux.c,
2173 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
2174 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
2175 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
2176 features/i386/64bit-core.c, features/i386/64bit-linux.c,
2177 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
2178 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
2179 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
2180 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
2181 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
2182 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
2183 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
2184 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
2185 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
2186 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
2187 go32-nat.c, guile/guile.c, guile/scm-ports.c,
2188 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
2189 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
2190 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
2191 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
2192 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
2193 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
2194 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
2195 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
2196 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
2197 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
2198 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
2199 minsyms.c, mips-linux-tdep.c, namespace.h,
2200 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
2201 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
2202 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
2203 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
2204 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
2205 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
2206 nat/linux-waitpid.c, nat/mips-linux-watch.c,
2207 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
2208 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
2209 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
2210 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
2211 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
2212 procfs.c, producer.c, progspace.h, psymtab.h,
2213 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
2214 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
2215 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
2216 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
2217 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
2218 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
2219 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
2220 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
2221 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
2222 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
2223 target-memory.c, target.c, target.h, target/waitstatus.c,
2224 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
2225 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
2226 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
2227 unittests/array-view-selftests.c,
2228 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
2229 unittests/common-utils-selftests.c,
2230 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
2231 unittests/format_pieces-selftests.c,
2232 unittests/function-view-selftests.c,
2233 unittests/lookup_name_info-selftests.c,
2234 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
2235 unittests/mkdir-recursive-selftests.c,
2236 unittests/observable-selftests.c,
2237 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
2238 unittests/parse-connection-spec-selftests.c,
2239 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
2240 unittests/scoped_fd-selftests.c,
2241 unittests/scoped_mmap-selftests.c,
2242 unittests/scoped_restore-selftests.c,
2243 unittests/string_view-selftests.c, unittests/style-selftests.c,
2244 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
2245 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
2246 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
2247 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
2248 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
2249 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
2251 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2253 * linespec.c (decode_digits_list_mode): Set explicit_line to a
2255 (decode_digits_ordinary): Set explicit_line field in sal.
2256 * symtab.c (skip_prologue_sal): Don't skip prologue for a
2257 symtab_and_line that was set on an explicit line number in
2258 assembler code. Do always update the recorded symtab and line if
2259 we do skip the prologue.
2261 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2263 * breakpoint.c (set_breakpoint_location_function): Remove
2264 explicit_loc parameter.
2265 (momentary_breakpoint_from_master): Update call to
2266 set_breakpoint_location_function.
2267 (add_location_to_breakpoint): Likewise.
2269 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2271 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
2272 required features based on default bfd type when no specific bfd
2275 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2277 * NEWS: Mention that GDB printf and eval commands can now print
2278 C-style and Ada-style convenience var strings without
2279 calling the inferior.
2280 * printcmd.c (printf_c_string): Locally print GDB internal var
2281 instead of transiting via the inferior.
2282 (printf_wide_c_string): Likewise.
2284 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2286 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
2288 2019-07-04 Tom Tromey <tom@tromey.com>
2291 * tui/tui-winsource.c (tui_clear_source_content): Update.
2292 (tui_source_window_base::set_is_exec_point_at): Fix comment.
2293 (tui_update_breakpoint_info): Update.
2294 (tui_set_exec_info_content): Update.
2295 * tui/tui-source.c (tui_set_source_content_nil): Update.
2296 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
2298 * tui/tui-data.h (enum tui_bp_flag): New.
2299 (tui_bp_flags): New enum flags type.
2300 (struct tui_source_element) <break_mode>: Change type. Rename
2302 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
2303 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
2305 * tui/tui-winsource.h: Fix comment.
2307 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2309 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
2310 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
2311 (store_fpregs_to_thread)
2312 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
2313 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
2314 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
2315 (IWMMXT_REGS_SIZE): Add define.
2316 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
2317 (fetch_vfp_regs, store_vfp_regs)
2318 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
2319 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
2321 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2323 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
2325 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
2326 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
2327 (ARM_INT_REGISTER_SIZE): ...to this.
2328 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
2329 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
2330 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
2331 (arm_linux_collect_gregset, supply_nwfpe_register)
2332 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
2334 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
2335 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
2336 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
2337 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
2338 (arm_return_in_memory, arm_store_return_value)
2339 (arm_get_longjmp_target, arm_register_g_packet_guesses)
2340 (arm_record_ld_st_multiple): Likewise.
2341 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
2342 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
2344 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2346 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
2347 AARCH64_DISPLACED_MODIFIED_INSNS.
2348 * aarch64-tdep.c (struct aarch64_displaced_step_data)
2349 (aarch64_displaced_step_copy_insn): Likewise.
2350 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
2351 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
2352 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
2353 ARM_DISPLACED_MODIFIED_INSNS.
2354 * arm-tdep.c (arm_gdbarch_init): Likewise.
2355 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
2356 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
2357 (struct arm_displaced_step_closure): Use
2358 ARM_DISPLACED_MODIFIED_INSNS.
2360 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2362 * features/Makefile: Remove unused xml files.
2363 * features/aarch64.xml: Remove.
2364 * features/i386/amd64-avx-avx512-linux.xml: Remove.
2365 * features/i386/amd64-avx-avx512.xml: Remove.
2366 * features/i386/amd64-avx-linux.xml: Remove.
2367 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
2368 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
2369 * features/i386/amd64-avx-mpx-linux.xml: Remove.
2370 * features/i386/amd64-avx-mpx.xml: Remove.
2371 * features/i386/amd64-avx.xml: Remove.
2372 * features/i386/amd64-linux.xml: Remove.
2373 * features/i386/amd64-mpx-linux.xml: Remove.
2374 * features/i386/amd64-mpx.xml: Remove.
2375 * features/i386/amd64.xml: Remove.
2376 * features/i386/i386-avx-avx512-linux.xml: Remove.
2377 * features/i386/i386-avx-avx512.xml: Remove.
2378 * features/i386/i386-avx-linux.xml: Remove.
2379 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
2380 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
2381 * features/i386/i386-avx-mpx-linux.xml: Remove.
2382 * features/i386/i386-avx-mpx.xml: Remove.
2383 * features/i386/i386-avx.xml: Remove.
2384 * features/i386/i386-linux.xml: Remove.
2385 * features/i386/i386-mmx-linux.xml: Remove.
2386 * features/i386/i386-mmx.xml: Remove.
2387 * features/i386/i386-mpx-linux.xml: Remove.
2388 * features/i386/i386-mpx.xml: Remove.
2389 * features/i386/i386.xml: Remove.
2390 * features/i386/x32-avx-avx512-linux.xml: Remove.
2391 * features/i386/x32-avx-linux.xml: Remove.
2392 * features/i386/x32-linux.xml: Remove.
2394 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2396 * regformats/aarch64.dat: Remove.
2397 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
2398 * regformats/i386/amd64-avx-linux.dat: Remove.
2399 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
2400 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
2401 * regformats/i386/amd64-linux.dat: Remove.
2402 * regformats/i386/amd64-mpx-linux.dat: Remove.
2403 * regformats/i386/amd64.dat: Remove.
2404 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
2405 * regformats/i386/i386-avx-linux.dat: Remove.
2406 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
2407 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
2408 * regformats/i386/i386-linux.dat: Remove.
2409 * regformats/i386/i386-mmx-linux.dat: Remove.
2410 * regformats/i386/i386-mpx-linux.dat: Remove.
2411 * regformats/i386/i386.dat: Remove.
2412 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
2413 * regformats/i386/x32-avx-linux.dat: Remove.
2414 * regformats/i386/x32-linux.dat: Remove.
2416 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2418 * aarch64-tdep.c: Remove xml self tests.
2419 * amd64-linux-tdep.c: Likewise.
2420 * amd64-tdep.c: Likewise.
2421 * i386-linux-tdep.c: Likewise.
2422 * i386-tdep.c: Likewise.
2424 2019-07-03 Pedro Alves <palves@redhat.com>
2427 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
2428 (pipe_cmd_option_defs): New.
2429 (make_pipe_cmd_options_def_group): New.
2430 (pipe_command): Use gdb::option::process_options.
2431 (pipe_command_completer): New function.
2432 (_initialize_cli_cmds): Install completer for "pipe" command.
2434 2019-07-03 Pedro Alves <palves@redhat.com>
2436 * cli/cli-option.c (union option_value) <string>: New field.
2437 (struct option_def_and_value): Add ctor, move ctor, dtor and
2438 use DISABLE_COPY_AND_ASSIGN.
2439 (option_def_and_value::clear_value): New.
2440 (parse_option, save_option_value_in_ctx, get_val_type_str)
2441 (add_setshow_cmds_for_options): Handle var_string.
2442 * cli-option.h (union option_def::var_address) <string>: New
2444 (struct string_option_def): New.
2445 * maint-test-options.c (struct test_options_opts): Add default
2446 ctor and use DISABLE_COPY_AND_ASSIGN.
2447 <string_opt>: New field.
2448 (test_options_opts::~test_options_opts): New.
2449 (test_options_opts::dump): Also dump "-string".
2450 (test_options_option_defs): Install "string.
2452 2019-07-03 Pedro Alves <palves@redhat.com>
2454 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
2455 option_value with a null enumeration.
2456 (complete_options): Save the option values in the context.
2457 (save_option_value_in_ctx): New, factored out from ...
2458 (process_options): ... here.
2459 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
2461 * maint-test-options.c (test_options_opts::dump): New, factored
2463 (maintenance_test_options_command_mode): ... here.
2464 (maintenance_test_options_command_completion_result): Delete.
2465 (maintenance_test_options_command_completion_text): Update
2467 (maintenance_show_test_options_completion_result): Change
2468 prototype. Just print
2469 maintenance_test_options_command_completion_text.
2470 (save_completion_result): New.
2471 (maintenance_test_options_completer_mode): Pass options context to
2472 complete_options, and then save a dump.
2473 (_initialize_maint_test_options): Use add_cmd to install "maint
2474 show test-options-completion-result".
2476 2019-07-03 Pedro Alves <palves@redhat.com>
2478 * NEWS (New commands): Mention "with" and "maint with".
2479 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
2480 (with_command, with_command_completer): New.
2481 (pipe_command): Adjust to new repeat_previous
2483 (_initialize_cli_cmds): Install the "with" command and its "w"
2485 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
2487 * cli/cli-setshow.c (parse_cli_var_uinteger)
2488 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
2489 argument strings for all var_types.
2490 (get_setshow_command_value_string): New, factored out from ...
2491 (do_show_command): ... this.
2492 * cli/cli-setshow.h: Include <string>.
2493 (get_setshow_command_value_string): Declare.
2494 * command.h (repeat_previous): Now returns const char *. Adjust
2496 * maint.c: Include "cli/cli-cmds.h".
2497 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
2498 (_initialize_maint_cmds): Register the "maintenance with" command.
2499 * top.c (repeat_previous): Move bits from pipe_command here:
2500 Return the saved command line, if any; error out if there's no
2501 command to relaunch.
2503 2019-07-03 Pedro Alves <palves@redhat.com>
2505 * NEWS (New commands): Mention "maint set/show test-settings"
2506 instead of "maint test-settings".
2507 * maint-test-settings.c (maintenance_test_settings_list): Delete.
2508 (maintenance_test_settings_set_list): Rename to ...
2509 (maintenance_set_test_settings_list): ... this.
2510 (maintenance_test_settings_show_list): Rename to ...
2511 (maintenance_show_test_settings_list): ... this.
2512 (maintenance_test_settings_cmd): Delete.
2513 (maintenance_test_settings_set_cmd): ...
2514 (maintenance_set_test_settings_cmd): ... this.
2515 (maintenance_test_settings_show_cmd): ...
2516 (maintenance_show_test_settings_cmd): ... this.
2517 (maintenance_test_settings_show_value_cmd):
2518 (maintenance_show_test_settings_value_cmd): ... this.
2519 (_initialize_maint_test_settings): No longer install the "maint
2520 test-settings" prefix command. Rename "maint test-settings set"
2521 to "maint set test-settings", and "maint test-settings show" to
2522 "maint show test-settings". Adjust all subcommands.
2524 2019-07-03 Pedro Alves <palves@redhat.com>
2526 * maint-test-settings.c: Fix file's intro comment. Replace all
2527 references to "test-options" with references to "test-settings",
2530 2019-07-03 Pedro Alves <palves@redhat.com>
2532 * maint-test-settings.c (maintenance_test_settings_xxx)
2533 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
2535 (maintenance_test_settings_enums): Use them.
2536 (maintenance_test_settings_enum): Default to
2537 maintenance_test_settings_xxx.
2538 (_initialize_maint_test_settings): Initialize
2539 MAINTENANCE_TEST_SETTINGS_FILENAME.
2541 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2543 * breakpoint.h (remove_breakpoints_inf): Change return type to
2544 void, move function documentation here.
2545 * breakpoint.c (remove_breakpoints_inf): Change return type to
2546 void, move function documentation to header.
2548 2019-07-02 Pedro Alves <palves@redhat.com>
2550 * NEWS (Completion improvements): Mention "info threads".
2551 * thread.c (struct info_threads_opts, info_threads_option_defs)
2552 (make_info_threads_options_def_group): New.
2553 (info_threads_command): Use gdb::option::process_options.
2554 (info_threads_command_completer): New.
2555 (_initialize_thread): Use gdb::option::build_help to build the
2556 help text for "info threads".
2558 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2560 * defs.h (generic_load): Move from here...
2561 * symfile.h (generic_load): ... to here. Rename name parameter
2563 * symfile.c (generic_load): Add comment.
2565 2019-07-01 Tom Tromey <tromey@adacore.com>
2568 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
2569 declaration of without_params. Fix formatting.
2571 2019-07-01 Tom Tromey <tromey@adacore.com>
2573 * ada-exp.y (find_primitive_type): Update.
2574 * ada-lang.h (ada_lookup_symbol): Update.
2575 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
2577 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
2579 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
2581 PR breakpoints/24541
2582 * gdbarch.c: Regenerate.
2583 * gdbarch.h: Regenerate.
2584 * gdbarch.sh: Add 'stap_adjust_register'.
2585 * i386-tdep.c: Include '<unordered_set>'.
2586 (i386_stap_adjust_register): New function.
2587 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
2588 * stap-probe.c (stap_parse_register_operand): Call
2589 'gdbarch_stap_adjust_register'.
2591 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
2594 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
2595 * python/python.c (do_start_initialization): Use 'xmalloc'
2596 instead of 'PyMem_Malloc'.
2598 2019-06-28 Tom Tromey <tromey@adacore.com>
2600 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
2603 2019-06-27 Tom Tromey <tromey@adacore.com>
2605 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
2607 (arm_find_mapping_symbol, arm_record_special_symbol)
2608 (_initialize_arm_tdep): Update.
2609 (arm_objfile_data_free): Remove.
2611 2019-06-27 Tom Tromey <tromey@adacore.com>
2613 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
2614 to cp_print_static_field.
2616 2019-06-26 Tom Tromey <tromey@adacore.com>
2618 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
2619 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
2622 2019-06-26 Alan Hayward <alan.hayward@arm.com>
2624 * features/aarch64-core.c (create_feature_aarch64_core):
2626 * features/aarch64-core.xml: Add cpsr flags.
2628 2019-06-26 Alan Hayward <alan.hayward@arm.com>
2630 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
2631 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
2633 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
2635 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
2637 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
2639 (arm_record_special_symbol): Don't insert new symbol in sorted
2640 position, push it at the end.
2642 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
2644 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
2645 (arm_mapping_symbol_s): Remove.
2646 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
2647 (arm_mapping_symbol_vec): New typedef.
2648 (struct arm_per_objfile): Add constructor.
2649 <section_maps>: Change type to
2650 std::unique_ptr<arm_mapping_symbol_vec[]>.
2651 (arm_compare_mapping_symbols): Remove.
2652 (arm_find_mapping_symbol): Adjust to section_maps type change.
2653 (arm_objfile_data_free): Call delete on arm_per_objfile.
2654 (arm_record_special_symbol): Adjust to section_maps type change.
2655 Allocate arm_per_objfile with new.
2657 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2659 * cli/cli-cmds.c (alias_command): Compare the alias prefix
2660 with the command prefix.
2662 2019-06-25 Tom Tromey <tom@tromey.com>
2664 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
2665 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
2667 2019-06-25 Tom Tromey <tom@tromey.com>
2669 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
2671 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
2674 2019-06-25 Tom Tromey <tom@tromey.com>
2676 * tui/tui-winsource.c
2677 (tui_source_window_base::set_is_exec_point_at): Add check against
2680 2019-06-25 Tom Tromey <tom@tromey.com>
2682 * tui/tui-source.c (tui_set_source_content): Don't check before
2684 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
2686 2019-06-25 Tom Tromey <tom@tromey.com>
2688 * tui/tui-winsource.h (tui_update_source_window_as_is)
2689 (tui_alloc_source_buffer, tui_line_is_displayed)
2690 (tui_addr_is_displayed): Change type of win_info.
2691 * tui/tui-winsource.c (tui_update_source_window_as_is)
2692 (tui_clear_source_content, tui_show_source_line)
2693 (tui_show_source_content, tui_source_window_base::refill)
2694 (tui_source_window_base::set_is_exec_point_at)
2695 (tui_source_window_base::set_is_exec_point_at)
2696 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
2697 (tui_alloc_source_buffer, tui_line_is_displayed)
2698 (tui_addr_is_displayed): Change type of win_info. Update.
2699 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2700 (tui_source_window_base::do_make_visible_with_new_height):
2702 * tui/tui-source.c (tui_set_source_content)
2703 (tui_set_source_content_nil)
2704 (tui_source_window::do_scroll_vertical): Update.
2705 * tui/tui-layout.c (show_layout): Update.
2706 * tui/tui-disasm.c (tui_set_disassem_content)
2707 (tui_disasm_window::do_scroll_vertical): Update.
2708 * tui/tui-data.h (tui_win_content): Remove.
2709 (struct tui_gen_win_info) <content, content_size>: Remove.
2710 (struct tui_source_element): Add initializers and destructor.
2711 (union tui_which_element, struct tui_win_element): Remove.
2712 (struct tui_source_window_base) <content>: New field.
2713 (struct tui_data_window): Remove destructor.
2714 (tui_alloc_content, tui_free_win_content)
2715 (tui_free_all_source_wins_content): Don't declare.
2716 * tui/tui-data.c (tui_initialize_static_data): Update.
2717 (init_content_element, tui_alloc_content): Remove.
2718 (~tui_gen_win_info): Update.
2719 (~tui_data_window, tui_free_all_source_wins_content)
2720 (tui_free_win_content, free_content, free_content_elements):
2723 2019-06-25 Tom Tromey <tom@tromey.com>
2725 * tui/tui-winsource.h (tui_clear_source_content)
2726 (tui_erase_source_content, tui_show_source_content): Change type
2728 * tui/tui-winsource.c (tui_clear_source_content)
2729 (tui_erase_source_content, tui_show_source_content): Change type
2731 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2732 * tui/tui-source.h (tui_set_source_content_nil): Change type of
2734 * tui/tui-source.c (tui_set_source_content_nil): Change type of
2736 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
2738 2019-06-25 Tom Tromey <tom@tromey.com>
2740 * tui/tui-winsource.c (tui_clear_source_content)
2741 (tui_source_window_base::set_is_exec_point_at): Update.
2742 * tui/tui-source.c (tui_set_source_content_nil): Update.
2743 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
2745 * tui/tui-data.c (init_content_element): Update.
2747 2019-06-25 Tom Tromey <tom@tromey.com>
2749 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
2750 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
2751 * tui/tui-layout.c (init_and_make_win): Update.
2752 * tui/tui.h (enum tui_win_type): Update.
2753 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
2754 tui_win_is_auxillary.
2755 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
2756 tui_win_is_auxillary.
2758 2019-06-25 Tom Tromey <tom@tromey.com>
2760 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
2761 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
2762 (tui_delete_data_content_windows, tui_display_all_data)
2763 (tui_data_window::do_scroll_vertical, tui_display_data_from):
2765 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
2766 * tui/tui-regs.c (tui_last_regs_line_no)
2767 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
2768 (tui_show_registers): Update.
2769 (tui_show_register_group): Return void. Update.
2770 (tui_display_registers_from, tui_display_reg_element_at_line)
2771 (tui_display_registers_from_line, tui_check_register_values):
2773 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
2775 (struct tui_data_window) <regs_content>: Now a std::vector.
2776 <regs_content_count>: Remove.
2777 (tui_add_content_elements, tui_free_data_content): Don't declare.
2778 * tui/tui-data.c (tui_data_window::clear_detail): Update.
2779 (init_content_element): Remove DATA_WIN case. Add assert.
2780 (tui_add_content_elements): Remove.
2781 (tui_data_window): Update.
2782 (tui_free_data_content): Remove.
2783 (free_content_elements): Remove DATA_WIN case.
2785 2019-06-25 Tom Tromey <tom@tromey.com>
2787 * tui/tui-data.c (tui_data_item_window): Update.
2788 * tui/tui-windata.h (tui_check_data_values): Don't declare.
2789 * tui/tui-windata.c (tui_display_all_data)
2790 (tui_display_data_from_line): Update.
2791 (tui_check_data_values): Remove.
2792 * tui/tui-regs.c (tui_show_register_group)
2793 (tui_display_reg_element_at_line): Update.
2794 * tui/tui-hooks.c (tui_register_changed)
2795 (tui_refresh_frame_and_register_information): Call
2796 tui_check_register_values.
2797 * tui/tui-data.h (struct tui_data_window) <data_content,
2798 data_content_count, data_type>: Remove.
2799 (enum tui_data_type): Remove.
2801 * tui/tui-data.c (tui_data_window::clear_detail)
2802 (~tui_data_window): Update.
2804 2019-06-25 Tom Tromey <tom@tromey.com>
2806 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
2808 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
2809 Rename from tui_first_data_item_displayed. Update.
2810 (tui_data_window::refresh_all)
2811 (tui_data_window::do_scroll_vertical): Update.
2812 * tui/tui-data.h (struct tui_data_window)
2813 <first_data_item_displayed>: Declare new method.
2815 2019-06-25 Tom Tromey <tom@tromey.com>
2817 * tui/tui-data.h (tui_init_generic_part): Don't declare.
2818 * tui/tui-data.c (tui_init_generic_part): Remove, moving
2820 (tui_initialize_static_data): ...here.
2822 2019-06-25 Tom Tromey <tom@tromey.com>
2824 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
2825 (tui_display_registers_from, tui_check_register_values): Update.
2826 (tui_display_register): Remove win_info parameter; update.
2827 (tui_get_register): Change type of parameters.
2828 * tui/tui-data.h (struct tui_data_element): Remove.
2829 (union tui_which_element) <data>: Remove.
2830 <data_window>: Change type.
2831 (struct tui_data_item_window): New.
2832 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
2834 (~tui_data_item_window): New destructor.
2835 (free_content_elements): Remove DATA_ITEM_WIN case.
2837 2019-06-25 Tom Tromey <tom@tromey.com>
2839 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
2842 2019-06-25 Tom Tromey <tom@tromey.com>
2844 * tui/tui-data.h (struct tui_command_element): Remove.
2845 (union tui_which_element) <command>: Remove.
2846 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
2848 (free_content_elements): Remove CMD_WIN case.
2850 2019-06-25 Tom Tromey <tom@tromey.com>
2852 * tui/tui-layout.c (tui_set_layout): Update.
2853 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
2854 * tui/tui-data.c (layout_def): Update.
2856 2019-06-25 Tom Tromey <tom@tromey.com>
2858 * tui/tui-wingeneral.c (tui_refresh_all): Update.
2859 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2860 (tui_source_window_base::set_new_height): Update.
2861 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
2863 (tui_set_locator_fullname, tui_set_locator_info)
2864 (tui_show_frame_info): Update.
2865 * tui/tui-source.c (tui_set_source_content)
2866 (tui_source_is_displayed): Update.
2867 * tui/tui-layout.c (show_source_disasm_command, show_data)
2868 (show_source_or_disasm_and_command): Update.
2869 * tui/tui-disasm.c (tui_set_disassem_content)
2870 (tui_get_begin_asm_address): Update.
2871 * tui/tui-data.h (struct tui_locator_element): Remove.
2872 (union tui_which_element) <locator>: Remove.
2873 (struct tui_locator_window): New.
2874 (tui_locator_win_info_ptr): Change return type.
2875 * tui/tui-data.c (_locator): Change type.
2876 (tui_locator_win_info_ptr): Change return type.
2877 (init_content_element): Remove LOCATOR_WIN case. Add assert.
2878 (tui_alloc_content): Add assert.
2880 2019-06-25 Tom Tromey <tom@tromey.com>
2882 * tui/tui-winsource.c
2883 (tui_exec_info_window::maybe_allocate_content): New method.
2884 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
2885 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
2886 (make_source_or_disasm_window): Add cast.
2887 * tui/tui-data.h (union tui_which_element) <simple_string>:
2889 (struct tui_source_info): New.
2890 (struct tui_source_window_base) <execution_info>: Change type.
2891 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
2892 case, and add assert.
2893 (tui_alloc_content): Add assert.
2895 2019-06-25 Tom Tromey <tom@tromey.com>
2897 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
2898 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
2899 * tui/tui-data.c (tui_alloc_win_info): Remove.
2901 2019-06-25 Tom Tromey <tom@tromey.com>
2903 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
2904 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
2907 2019-06-25 Tom Tromey <tom@tromey.com>
2909 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
2910 make_visible_with_new_height method.
2911 (tui_win_info::make_visible_with_new_height): New method.
2912 (tui_source_window_base::do_make_visible_with_new_height)
2913 (tui_data_window::do_make_visible_with_new_height)
2914 (tui_cmd_window::do_make_visible_with_new_height): New methods.
2915 (make_visible_with_new_height): Remove.
2916 (tui_resize_all, tui_adjust_win_heights): Use
2917 make_visible_with_new_height method.
2918 * tui/tui-data.h (struct tui_win_info)
2919 <do_make_visible_with_new_height, make_visible_with_new_height>:
2921 (struct tui_source_window_base, struct tui_data_window)
2922 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
2925 2019-06-25 Tom Tromey <tom@tromey.com>
2927 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
2929 (update_tab_width): Call update_tab_width method.
2930 * tui/tui-data.h (struct tui_win_info)
2931 (struct tui_source_window_base) <update_tab_width>: New methods.
2933 2019-06-25 Tom Tromey <tom@tromey.com>
2935 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
2937 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
2939 (tui_gen_win_info::make_visible): Update.
2940 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
2942 * tui/tui-data.h (enum tui_box): New enum.
2943 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
2945 2019-06-25 Tom Tromey <tom@tromey.com>
2947 * tui/tui-layout.c (make_source_or_disasm_window): Always use
2948 init_and_make_win for EXEC_INFO_WIN.
2949 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
2951 (struct tui_win_info) <~tui_win_info>: Inline.
2952 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
2954 * tui/tui-data.c (source_win, disasm_win): Remove globals.
2955 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
2957 (tui_initialize_static_data): Update.
2958 (~tui_gen_win_info): Handle more cleanup here.
2959 (~tui_source_window_base): Delete "execution_info".
2960 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
2962 2019-06-25 Tom Tromey <tom@tromey.com>
2964 * tui/tui-layout.c (make_command_window): Don't set
2966 (show_source_disasm_command): Call the reset method.
2967 (show_data): Don't set can_highlight. Call the reset method.
2968 (tui_gen_win_info::reset): Rename from init_gen_win_info
2969 (init_and_make_win): Simplify. Return tui_gen_win_info.
2970 (show_source_or_disasm_and_command): Call the reset method.
2971 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
2972 (struct tui_cmd_window): Set can_highlight.
2974 2019-06-25 Tom Tromey <tom@tromey.com>
2976 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
2978 (tui_make_visible, tui_make_invisible): Rewrite.
2979 (tui_win_info::make_visible): Remove.
2980 (tui_source_window_base::make_visible): Update.
2981 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
2982 method. Moved from...
2983 (struct tui_win_info) <make_visible>: ...here.
2985 2019-06-25 Tom Tromey <tom@tromey.com>
2987 * tui/tui-winsource.c
2988 (tui_source_window_base::do_scroll_horizontal): Remove direction
2990 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
2991 direction parameter.
2992 * tui/tui-win.c (tui_win_info::forward_scroll)
2993 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
2994 (tui_win_info::right_scroll): Update.
2995 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
2996 direction parameter.
2997 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
2998 direction parameter.
2999 * tui/tui-data.h (enum tui_scroll_direction): Remove.
3000 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
3001 Remove direction parameter.
3002 (struct tui_source_window_base, struct tui_source_window)
3003 (struct tui_disasm_window, struct tui_data_window)
3004 (struct tui_cmd_window): Update.
3006 2019-06-25 Tom Tromey <tom@tromey.com>
3008 * tui/tui-winsource.h (tui_set_exec_info_content)
3009 (tui_show_exec_info_content, tui_erase_exec_info_content)
3010 (tui_clear_exec_info_content, tui_update_exec_info): Change
3011 argument to tui_source_window_base.
3012 * tui/tui-winsource.c (tui_set_exec_info_content)
3013 (tui_show_exec_info_content, tui_erase_exec_info_content)
3014 (tui_clear_exec_info_content, tui_update_exec_info): Change
3015 argument to tui_source_window_base.
3017 2019-06-25 Tom Tromey <tom@tromey.com>
3019 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
3020 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
3022 2019-06-25 Tom Tromey <tom@tromey.com>
3024 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
3027 2019-06-25 Tom Tromey <tom@tromey.com>
3029 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
3031 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
3033 * tui/tui-source.c (tui_set_source_content): Update.
3034 * tui/tui-disasm.c (tui_set_disassem_content): Update.
3036 2019-06-25 Tom Tromey <tom@tromey.com>
3038 * tui/tui-win.c (window_name_completer, tui_set_focus)
3039 (tui_all_windows_info): Use name method.
3040 * tui/tui-data.h (struct tui_gen_win_info)
3041 (struct tui_source_window, struct tui_disasm_window)
3042 (struct tui_data_window, struct tui_cmd_window) <name>: New
3044 (tui_win_name): Don't declare.
3045 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
3046 (tui_win_name): Remove.
3048 2019-06-25 Tom Tromey <tom@tromey.com>
3050 * tui/tui-winsource.h (tui_update_source_window)
3051 (tui_update_source_window_as_is): Change parameter type.
3052 * tui/tui-winsource.c (tui_update_source_window): Change win_info
3053 to be a tui_source_window_base.
3054 (tui_update_source_window_as_is): Likewise.
3055 * tui/tui-win.c (make_visible_with_new_height): Update.
3057 2019-06-25 Tom Tromey <tom@tromey.com>
3059 * tui/tui-winsource.c (tui_erase_source_content)
3060 (tui_show_source_content, tui_show_exec_info_content)
3061 (tui_erase_exec_info_content): Use refresh_window method.
3062 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
3063 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
3064 from tui_refresh_win.
3065 (tui_data_window::refresh_window): New method.
3066 (tui_win_info::refresh, tui_source_window_base::refresh)
3067 (tui_refresh_all): Use refresh_window method.
3068 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
3070 * tui/tui-regs.c (tui_display_register): Call refresh_window
3072 * tui/tui-layout.c (show_source_disasm_command)
3073 (show_source_or_disasm_and_command): Call refresh_window method.
3074 * tui/tui-data.h (struct tui_gen_win_info)
3075 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
3078 2019-06-25 Tom Tromey <tom@tromey.com>
3080 * tui/tui.c (tui_rl_other_window, tui_enable)
3081 (tui_is_window_visible, tui_get_command_dimension): Update.
3082 * tui/tui-winsource.c (tui_update_source_window_as_is)
3083 (tui_clear_source_content, tui_erase_source_content)
3084 (tui_show_source_line, tui_source_window_base::refill)
3085 (tui_source_window_base::do_scroll_horizontal)
3086 (tui_source_window_base::set_is_exec_point_at)
3087 (tui_update_breakpoint_info, tui_set_exec_info_content)
3088 (tui_alloc_source_buffer, tui_line_is_displayed)
3089 (tui_addr_is_displayed): Update.
3090 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
3091 (tui_check_and_display_highlight_if_needed)
3092 (tui_win_info::make_visible, tui_win_info::refresh)
3093 (tui_refresh_all): Update.
3094 * tui/tui-windata.c (tui_first_data_item_displayed)
3095 (tui_delete_data_content_windows, tui_erase_data_content)
3096 (tui_display_all_data, tui_data_window::refresh_all)
3097 (tui_check_data_values): Update.
3098 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
3099 (tui_set_win_focus_to, tui_win_info::forward_scroll)
3100 (tui_win_info::backward_scroll, tui_refresh_all_win)
3101 (tui_resize_all, tui_set_focus, tui_all_windows_info)
3102 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
3103 (tui_source_window_base::set_new_height)
3104 (tui_data_window::set_new_height)
3105 (make_invisible_and_set_new_height)
3106 (make_visible_with_new_height, new_height_ok)
3107 (parse_scrolling_args): Update.
3108 * tui/tui-stack.c (tui_show_frame_info): Update.
3109 * tui/tui-source.c (tui_set_source_content)
3110 (tui_set_source_content_nil, tui_source_is_displayed)
3111 (tui_source_window::do_scroll_vertical): Update.
3112 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
3113 (tui_display_registers_from, tui_display_reg_element_at_line)
3114 (tui_check_register_values, tui_reg_command): Update.
3115 * tui/tui-layout.c (tui_default_win_height)
3116 (show_source_disasm_command, show_data, init_and_make_win)
3117 (show_source_or_disasm_and_command): Update.
3118 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
3119 (tui_redisplay_readline, tui_mld_flush)
3120 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
3122 * tui/tui-disasm.c (tui_set_disassem_content)
3123 (tui_disasm_window::do_scroll_vertical): Update.
3124 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
3126 (struct tui_win_info): Derive from tui_gen_win_info.
3127 <~tui_win_info>: Mark as override.
3128 <generic>: Remove member.
3129 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
3130 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
3131 (~tui_data_window, ~tui_win_info)
3132 (tui_free_all_source_wins_content): Update.
3133 * tui/tui-command.c (tui_refresh_cmd_win): Update.
3135 2019-06-25 Tom Tromey <tom@tromey.com>
3137 * tui/tui-layout.c (init_and_make_win): Use new.
3138 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
3139 destructor, initializers.
3140 (tui_alloc_generic_win_info): Don't declare.
3141 * tui/tui-data.c (_locator): Add argument to constructor.
3142 (source_win, disasm_win): New globals.
3143 (exec_info): Remove.
3144 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
3146 (tui_alloc_generic_win_info): Remove.
3147 (init_content_element): Use new.
3148 (tui_win_info::tui_win_info): Update.
3149 (free_content_elements) <case DATA_WIN>: Use delete.
3151 2019-06-25 Tom Tromey <tom@tromey.com>
3153 * tui/tui-wingeneral.c (tui_refresh_win): Update.
3154 * tui/tui-windata.c (tui_first_data_item_displayed)
3155 (tui_delete_data_content_windows): Update.
3156 * tui/tui-win.c (tui_data_window::set_new_height): Update.
3157 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
3158 (tui_display_registers_from, tui_check_register_values): Update.
3159 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
3161 * tui/tui-data.c (init_content_element): Update. Allocate the new
3163 (tui_free_data_content): Update.
3164 (free_content_elements) <case DATA_WIN>: Free the window.
3166 2019-06-25 Tom Tromey <tom@tromey.com>
3168 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
3170 * tui/tui-layout.c (make_command_window)
3171 (show_source_disasm_command, show_data, init_and_make_win)
3172 (show_source_or_disasm_and_command): Update.
3173 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
3175 <can_highight, is_highlighted>: Now bool.
3176 (tui_set_win_highlight): Don't declare.
3177 * tui/tui-data.c (tui_set_win_highlight): Remove.
3179 2019-06-25 Tom Tromey <tom@tromey.com>
3181 * tui/tui-wingeneral.c (make_visible): Remove check of window
3184 2019-06-25 Tom Tromey <tom@tromey.com>
3186 * tui/tui-win.c (tui_win_info::max_height)
3187 (tui_cmd_window::max_height): New methods.
3188 (new_height_ok): Call max_height.
3189 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
3190 <max_height>: New method.
3192 2019-06-25 Tom Tromey <tom@tromey.com>
3194 * tui/tui-win.c (tui_source_window_base::set_new_height)
3195 (tui_data_window::set_new_height): New methods.
3196 (make_invisible_and_set_new_height): Call set_new_height method.
3197 * tui/tui-data.h (struct tui_win_info)
3198 (struct tui_source_window_base, struct tui_data_window)
3199 <set_new_height>: New method.
3201 2019-06-25 Tom Tromey <tom@tromey.com>
3203 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
3204 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
3205 tui_refresh_data_win.
3206 * tui/tui-win.c (tui_source_window_base::refresh_all): New
3208 (tui_refresh_all_win): Call the refresh_all method.
3209 (tui_set_focus): Likewise.
3210 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
3211 (struct tui_source_window_base, struct tui_data_window) <refresh>:
3214 2019-06-25 Tom Tromey <tom@tromey.com>
3216 * tui/tui-winsource.h (tui_refill_source_window)
3217 (tui_set_is_exec_point_at): Don't declare.
3218 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
3219 (tui_source_window_base::refill): Rename from
3220 tui_refill_source_window.
3221 (tui_source_window_base::do_scroll_horizontal): Update.
3222 (tui_source_window_base::set_is_exec_point_at): Rename from
3223 tui_set_is_exec_point_at.
3224 (tui_update_all_breakpoint_info): Update.
3225 * tui/tui-stack.c (tui_show_frame_info): Update.
3226 * tui/tui-layout.c (show_data): Add cast.
3227 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
3228 * tui/tui-data.h (struct tui_source_window_base) <refill,
3229 set_is_exec_point_at>: New methods.
3230 (tui_source_windows, tui_add_to_source_windows): Update types.
3231 (tui_add_to_source_windows): Remove redundant declaration.
3232 * tui/tui-data.c (source_windows): Store tui_source_window_base.
3233 (tui_source_windows): Change return type.
3234 (tui_clear_source_windows_detail): Update.
3235 (tui_add_to_source_windows): Change type of parameter.
3236 (tui_free_all_source_wins_content): Update.
3238 2019-06-25 Tom Tromey <tom@tromey.com>
3240 * tui/tui-wingeneral.c (tui_win_info::refresh)
3241 (tui_source_window_base::refresh): New methods.
3242 (tui_refresh_all): Call the refresh method.
3243 * tui/tui-data.h (struct tui_win_info)
3244 (struct tui_source_window_base) <refresh>: New method.
3246 2019-06-25 Tom Tromey <tom@tromey.com>
3248 * tui/tui.h (tui_is_window_visible): Return bool.
3249 * tui/tui.c (tui_is_window_visible): Return bool.
3250 * tui/tui-wingeneral.c (tui_make_window, make_visible)
3251 (tui_make_visible, tui_make_invisible)
3252 (tui_win_info::make_visible)
3253 (tui_source_window_base::make_visible, make_all_visible)
3254 (tui_make_all_visible, tui_make_all_invisible): Update.
3255 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
3256 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
3258 (struct tui_win_info, struct tui_source_window_base)
3259 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
3260 * tui/tui-data.c (tui_init_generic_part): Update.
3262 2019-06-25 Tom Tromey <tom@tromey.com>
3264 * tui/tui-wingeneral.c (tui_win_info::make_visible)
3265 (tui_source_window_base::make_visible): New methods.
3266 (make_all_visible): Make method call.
3267 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
3268 (struct tui_source_window_base, struct tui_cmd_window): Override
3270 (tui_win_is_source_type): Don't declare.
3271 * tui/tui-data.c (tui_win_is_source_type): Remove.
3273 2019-06-25 Tom Tromey <tom@tromey.com>
3275 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
3278 2019-06-25 Tom Tromey <tom@tromey.com>
3280 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
3281 Inline constructor. Add initializers for members.
3282 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
3283 constructors; now inline in class.
3285 2019-06-25 Tom Tromey <tom@tromey.com>
3287 * tui/tui-regs.c (tui_show_registers): Update.
3288 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
3290 * tui/tui-data.c (tui_data_window::clear_detail)
3291 (tui_data_window): Update.
3293 2019-06-25 Tom Tromey <tom@tromey.com>
3295 * tui/tui-windata.c (tui_display_all_data)
3296 (tui_display_data_from_line, tui_display_data_from)
3297 (tui_check_data_values, tui_data_window::do_scroll_vertical):
3299 * tui/tui-regs.c (tui_last_regs_line_no)
3300 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
3301 (tui_show_registers, tui_show_register_group)
3302 (tui_display_registers_from, tui_display_reg_element_at_line)
3303 (tui_display_registers_from_line, tui_check_register_values)
3304 (tui_reg_next, tui_reg_prev): Update.
3305 * tui/tui-layout.c (tui_set_layout, show_data): Update.
3306 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
3308 (struct tui_win_info) <detail>: Remove. Add new fields from
3310 (TUI_DATA_WIN): Add cast.
3311 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
3312 (~tui_data_window): Simplify.
3314 2019-06-25 Tom Tromey <tom@tromey.com>
3316 * tui/tui-layout.c (show_source_disasm_command)
3317 (show_source_or_disasm_and_command): Update.
3318 * tui/tui-io.c (update_cmdwin_start_line)
3319 (tui_redisplay_readline): Update.
3320 * tui/tui-data.h (struct tui_command_info): Remove.
3321 (struct tui_win_info) <detail>: Remove command_info member.
3322 (struct tui_data_window) <start_line>: New member, from
3324 (TUI_CMD_WIN): Add casts.
3326 2019-06-25 Tom Tromey <tom@tromey.com>
3328 * tui/tui-winsource.c (tui_update_source_window)
3329 (tui_refill_source_window)
3330 (tui_source_window_base::do_scroll_horizontal)
3331 (tui_update_breakpoint_info, tui_set_exec_info_content)
3332 (tui_show_exec_info_content, tui_erase_exec_info_content)
3333 (tui_clear_exec_info_content): Update.
3334 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
3336 * tui/tui-win.c (make_invisible_and_set_new_height)
3337 (make_visible_with_new_height): Update.
3338 * tui/tui-source.c (tui_set_source_content)
3339 (tui_show_symtab_source): Update.
3340 * tui/tui-layout.c (extract_display_start_addr)
3341 (show_source_disasm_command, show_data)
3342 (make_source_or_disasm_window)
3343 (show_source_or_disasm_and_command): Update.
3344 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
3345 (tui_disasm_window::do_scroll_vertical): Remove shadowing
3347 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
3348 to tui_source_window_base.
3349 (struct tui_win_info) <detail>: Remove source_info member.
3350 (struct tui_source_window_base) <has_locator>: Inline.
3351 Move contents from tui_source_info; rename has_locator member to
3353 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
3354 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
3356 (tui_source_window_base::clear_detail, ~tui_source_window_base):
3358 (tui_free_all_source_wins_content): Cast to
3359 tui_source_window_base.
3361 2019-06-25 Tom Tromey <tom@tromey.com>
3363 * tui/tui-win.c (make_invisible_and_set_new_height)
3364 (make_visible_with_new_height): Call has_locator method.
3365 * tui/tui-layout.c (show_source_disasm_command, show_data)
3366 (show_source_or_disasm_and_command): Update for bool change.
3367 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
3368 (tui_win_info) <has_locator>: New method.
3369 (struct tui_source_window_base) <has_locator>: New method.
3370 (tui_win_has_locator): Don't declare.
3371 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
3372 from tui_win_has_locator.
3373 (tui_source_window_base): Use false, not FALSE.
3375 2019-06-25 Tom Tromey <tom@tromey.com>
3377 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
3378 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
3379 clear_detail method directly.
3380 (tui_clear_win_detail): Remove.
3382 2019-06-25 Tom Tromey <tom@tromey.com>
3384 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
3385 "this", not TUI_DISASM_WIN.
3387 2019-06-25 Tom Tromey <tom@tromey.com>
3389 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
3391 * tui/tui-winsource.c
3392 (tui_source_window_base::do_scroll_horizontal): Rename from
3393 tui_horizontal_source_scroll.
3394 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
3395 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
3396 from tui_vertical_data_scroll.
3397 * tui/tui-win.h (tui_scroll): Don't declare.
3398 * tui/tui-win.c (tui_win_info::forward_scroll)
3399 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
3400 (tui_win_info::right_scroll): Rename and update.
3401 (tui_scroll_forward_command, tui_scroll_backward_command)
3402 (tui_scroll_left_command, tui_scroll_right_command): Update.
3403 (tui_scroll): Remove.
3404 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
3405 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
3406 from tui_vertical_source_scroll.
3407 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
3408 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
3409 from tui_vertical_disassem_scroll.
3410 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
3411 do_scroll_horizontal>: New methods.
3412 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
3414 (struct tui_source_window_base): Add do_scroll_horizontal.
3415 (struct tui_source_window, struct tui_disasm_window): Add
3417 (struct tui_data_window, struct tui_cmd_window): Add
3418 do_scroll_horizontal and do_scroll_vertical.
3419 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
3421 2019-06-25 Tom Tromey <tom@tromey.com>
3423 * tui/tui-data.h (struct tui_source_window_base): New struct.
3424 (struct tui_source_window): Derive from tui_source_window_base.
3425 (struct tui_disasm_window): New struct.
3426 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
3427 from tui_source_window::clear_detail.
3428 (tui_source_window_base): Rename from tui_source_window.
3429 (~tui_source_window_base): Rename from ~tui_source_window.
3430 (tui_alloc_win_info): Create a tui_disasm_window.
3432 2019-06-25 Tom Tromey <tom@tromey.com>
3434 * tui/tui-data.h (struct tui_source_window)
3435 (struct tui_data_window): Declare destructors.
3436 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
3438 (tui_win_info): Simplify.
3440 2019-06-25 Tom Tromey <tom@tromey.com>
3442 * tui/tui-winsource.c (tui_display_main)
3443 (tui_update_source_windows_with_addr)
3444 (tui_update_all_breakpoint_info): Update.
3445 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3446 (new_height_ok, parse_scrolling_args): Update.
3447 * tui/tui-stack.c (tui_show_frame_info): Update.
3448 * tui/tui-data.h (struct tui_list): Remove.
3449 (tui_source_windows): Return a reference to a std::vector.
3450 * tui/tui-data.c (source_windows): Now a std::vector.
3451 (tui_source_windows): Change return type.
3452 (tui_clear_source_windows): Rewrite.
3453 (tui_clear_source_windows_detail, tui_add_to_source_windows)
3454 (tui_free_all_source_wins_content): Rewrite.
3456 2019-06-25 Tom Tromey <tom@tromey.com>
3458 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
3459 (struct tui_data_window, struct tui_cmd_window): Declare
3460 clear_detail method.
3461 * tui/tui-data.c (tui_source_window::clear_detail)
3462 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
3464 (tui_clear_win_detail): Simplify.
3466 2019-06-25 Tom Tromey <tom@tromey.com>
3468 * tui/tui-layout.c (make_source_window, make_disasm_window)
3469 (make_source_or_disasm_window): Remove win_info_ptr parameter.
3470 Return the new window.
3471 (show_source_disasm_command, show_data)
3472 (show_source_or_disasm_and_command): Update.
3474 2019-06-25 Tom Tromey <tom@tromey.com>
3476 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
3477 parameter. Return the new window.
3478 (show_source_disasm_command): Update and remove NULL check.
3479 (show_source_or_disasm_and_command): Update.
3481 2019-06-25 Tom Tromey <tom@tromey.com>
3483 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
3485 2019-06-25 Tom Tromey <tom@tromey.com>
3487 * tui/tui-data.h (struct tui_win_info): Make constructor
3488 protected. Make destructor virtual. Add initializers.
3489 (tui_source_window, tui_data_window, tui_cmd_window): New
3491 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
3492 constructor. Add "type" parameter.
3493 (tui_source_window, tui_data_window, tui_cmd_window): New
3495 (tui_alloc_win_info): Instantiate the appropriate subclass.
3497 2019-06-25 Tom Tromey <tom@tromey.com>
3499 * tui/tui-win.c (tui_resize_all): Use delete.
3500 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
3502 (tui_free_window): Don't declare.
3503 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
3506 2019-06-25 Tom Tromey <tom@tromey.com>
3508 * tui/tui-data.h (struct tui_win_info): Add constructor.
3509 * tui/tui-data.c (tui_alloc_win_info): Use new.
3510 (tui_free_window): Use delete.
3512 2019-06-22 Tom Tromey <tom@tromey.com>
3514 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
3516 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
3518 2019-06-22 Tom Tromey <tom@tromey.com>
3520 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
3522 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
3524 2019-06-22 Tom de Vries <tdevries@suse.de>
3526 * dwarf2read.c (create_addrmap_from_aranges)
3527 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
3530 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
3532 * dwarf2read.h (dwarf2_section_info_def): Remove.
3533 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
3534 * dwarf2read.c (struct dwo_sections) <types>: Change type to
3535 std::vector<dwarf2_section_info>.
3536 (struct dwo_file) <~dwo_file>: Remove.
3537 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
3539 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
3540 (dwarf2_read_debug_names): Likewise.
3541 (create_debug_types_hash_table): Change parameter type to
3542 array_view, adjust code accordingly.
3543 (dwarf2_locate_dwo_sections): Adjust to std::vector.
3544 (partial_die_info::fixup): Likewise.
3545 (determine_prefix): Likewise.
3546 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
3548 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3550 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
3552 <~dwo_file>: Remove call to gdb_bfd_unref.
3553 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
3554 gdb_bfd_ref_ptr::get.
3556 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3558 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
3560 * dwarf2read.c (struct dwo_file): Initialize fields.
3562 (free_dwo_file): Remove, move content to ~dwo_file.
3563 (struct dwo_file_deleter): Remove.
3564 (dwo_file_up>: Remove custom deleter.
3565 (free_dwo_files): Remove.
3566 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
3568 (process_skeletonless_type_units): Call unique_ptr::get.
3569 (allocate_dwo_file_hash_table): Add deleter to created hash
3570 table. Change return type to htab_up.
3571 (lookup_dwo_file_slot): Don't memset dwo_file, call
3573 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
3574 (create_dwo_unit_in_dwp_v2): Likewise.
3575 (open_and_init_dwo_file): Likewise.
3576 (free_dwo_file_from_slot): Remove.
3578 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3580 * dwarf2read.h (struct dwarf2_section_info) <readin,
3581 is_virtual>: Change type to bool.
3582 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
3585 2019-06-19 Tom Tromey <tom@tromey.com>
3587 * tui/tui-data.h (tui_init_content_element): Don't declare.
3589 2019-06-19 Tom Tromey <tom@tromey.com>
3591 * tui/tui-data.h (tui_init_win_info): Don't declare.
3593 2019-06-19 Tom de Vries <tdevries@suse.de>
3595 * dwarf2read.h (abstract_to_concrete): Change type to
3596 std::unordered_map<sect_offset, std::vector<sect_offset>,
3597 gdb::hash_enum<sect_offset>>.
3599 2019-06-19 Tom Tromey <tromey@adacore.com>
3601 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
3602 EVAL_AVOID_SIDE_EFFECTS specially.
3604 2019-06-19 Tom Tromey <tromey@adacore.com>
3606 * source-cache.c (highlighter): New global.
3607 (source_cache::get_source_lines): Create a highlighter on demand.
3609 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
3611 * defs.h (deprecated_interactive_hook): Delete declaration.
3612 * interps.c (clear_interpreter_hooks): Remove use of
3613 deprecated_interactive_hook.
3614 * top.c (deprecated_interactive_hook): Delete definition.
3615 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
3617 2019-06-18 Tom de Vries <tdevries@suse.de>
3620 * dwarf2read.h (abstract_to_concrete): Change type from
3621 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
3622 std::unordered_map<sect_offset, std::vector<sect_offset>>.
3623 * dwarf2read.c (read_variable): Update.
3624 (dwarf2_fetch_die_loc_sect_off): Update.
3626 2019-06-17 Tom de Vries <tdevries@suse.de>
3629 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
3630 accessing parent[parent_len - 1].
3632 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
3635 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
3636 call dtrace_process_dof with NULL dof.
3638 2019-06-16 Tom de Vries <tdevries@suse.de>
3641 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
3643 2019-06-16 Tom Tromey <tom@tromey.com>
3645 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
3646 (make_all_visible): Use address of member.
3648 2019-06-16 Tom Tromey <tom@tromey.com>
3650 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
3651 (tui_free_window, free_content, free_content_elements): Remove
3653 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
3655 * tui/tui-regs.c (tui_show_register_group)
3656 (tui_display_registers_from, tui_display_reg_element_at_line):
3657 Remove unnecessary cast.
3659 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
3661 * linux-nat.c (normal_mask): Delete.
3662 (_initialize_linux_nat): Don't initialise normal_mask.
3664 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
3667 * dwarf-index-write.h (write_psymtabs_to_index): Add
3668 dwz_basename parameter.
3669 * dwarf-index-write.c (write_gdbindex): Move file writing to
3670 write_gdbindex_1. Change return type void.
3671 (assert_file_size): Move up, remove filename parameter.
3672 (write_gdbindex_1): New function.
3673 (write_debug_names): Change return type to void, call
3675 (struct index_wip_file): New struct.
3676 (write_psymtabs_to_index): Add dwz_basename parameter. Move
3677 file logic to index_wip_file. Write index for dwz file if
3679 (save_gdb_index_command): Pass basename of dwz file, if present.
3680 * dwarf-index-cache.c (index_cache::store): Obtain and pass
3681 build-id of dwz file, if present.
3682 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
3683 (dwarf2_get_dwz_file): Likewise.
3684 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
3685 (dwarf2_get_dwz_file): Likewise.
3687 2019-06-16 Tom Tromey <tom@tromey.com>
3689 * coffread.c (process_coff_symbol): Use xstrdup.
3690 * value.c (create_internalvar): Use xstrdup.
3692 2019-06-16 Tom Tromey <tom@tromey.com>
3694 * valops.c (value_cast, value_slice): Remove unnecessary cast.
3695 * breakpoint.c (stopin_command, stopat_command)
3696 (until_break_command, decode_location_default): Remove unnecessary
3698 * utils.c (subset_compare): Remove unnecessary cast.
3699 * ada-lang.c (ada_update_initial_language): Remove unnecessary
3701 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
3703 * infcmd.c (path_command): Remove unnecessary cast.
3704 * coffread.c (decode_type): Remove unnecessary cast.
3705 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
3706 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
3707 * tui/tui-stack.c (tui_show_locator_content)
3708 (tui_show_frame_info): Remove unnecessary cast.
3709 * tui/tui-win.c (tui_scroll_forward_command)
3710 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
3711 (parse_scrolling_args): Remove unnecessary cast.
3712 * tui/tui-data.c (init_win_info, tui_del_window)
3713 (tui_free_window, tui_del_data_windows, tui_free_data_content)
3714 (free_content_elements): Remove unnecessary cast.
3715 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
3717 * tui/tui-source.c (tui_set_source_content)
3718 (tui_vertical_source_scroll): Remove unnecessary cast.
3719 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
3721 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
3722 * tui/tui-regs.c (tui_display_registers_from)
3723 (tui_display_register): Remove unnecessary cast.
3724 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
3725 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
3726 (make_visible): Remove unnecessary cast.
3727 * tui/tui-winsource.c (tui_erase_source_content)
3728 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
3730 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
3731 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
3732 * stabsread.c (read_type, read_array_type, read_range_type):
3733 Remove unnecessary cast.
3734 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
3735 (parse_symbol, parse_type, upgrade_type, parse_external)
3736 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
3738 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
3740 2019-06-16 Tom Tromey <tom@tromey.com>
3742 * tui/tui-data.c (tui_alloc_generic_win_info)
3743 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
3746 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
3747 Andrew Burgess <andrew.burgess@embecosm.com>
3749 * f-typeprint.c (f_print_type): Don't return early for not
3750 associated or not allocated types.
3751 (f_type_print_varspec_suffix): Add print_rank parameter and print
3752 ranks of array types in case they dangling.
3753 (f_type_print_base): Add print_rank parameter.
3755 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3757 * NEWS: Mention new MI commands.
3758 * break-catch-throw.c (enum exception_event_kind): Move to
3760 (print_mention_exception_catchpoint): Output text as a single
3762 (catch_exception_command_1): Rename to...
3763 (catch_exception_event): ...this, make non-static, update header
3764 command, and change some parameter types.
3765 (catch_catch_command): Update for changes to
3766 catch_exception_command_1.
3767 (catch_throw_command): Likewise.
3768 (catch_rethrow_command): Likewise.
3769 * breakpoint.c (enum exception_event_kind): Delete.
3770 * breakpoint.h (enum exception_event_kind): Moved here from
3771 break-catch-throw.c.
3772 (catch_exception_event): Declare.
3773 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
3774 (mi_cmd_catch_throw): New function.
3775 (mi_cmd_catch_rethrow): New function.
3776 (mi_cmd_catch_catch): New function.
3777 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
3778 'catch-catch' entries.
3779 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
3780 (mi_cmd_catch_rethrow): Declare.
3781 (mi_cmd_catch_catch): Declare.
3783 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3785 * annotate.c (annotate_source_line): Change return type to void,
3786 update implementation to match.
3787 * annotate.h (annotate_source_line): Change return type to void,
3788 update header comment.
3789 * stack.c (print_frame_info): Don't change what frame information
3790 is printed based on whether annotations are on or not.
3792 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3794 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
3795 (annotate_source): Make static.
3796 (annotate_source_line): Moved from source.c and renamed from
3797 identify_source_line. Update the return type.
3798 * annotate.h (annotate_source): Delete declaration.
3799 (annotate_source_line): Declaration moved from source.h, and
3800 renamed from identify_source_line. Return type updated.
3801 * source.c (identify_source_line): Moved to annotate.c and renamed
3802 to annotate_source_line.
3803 (info_line_command): Remove check of annotation_level.
3804 * source.h (identify_source_line): Move declaration to annotate.h
3805 and rename to annotate_source_line.
3806 * stack.c: Add 'annotate.h' include.
3807 (print_frame_info): Remove check of annotation_level before
3808 calling annotate_source_line.
3810 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3812 * source-cache.c (source_cache::get_plain_source_lines): Use
3813 open_source_file_with_line_charpos instead of just
3814 open_source_file, remove call to find_source_lines.
3815 (source_cache::get_source_lines): Likewise.
3816 * source.c (find_source_lines): Make static.
3817 (get_filename_and_charpos): Renamed into...
3818 (open_source_file_with_line_charpos): ..this along with changes to
3819 return a scoped_fd, and some other minor clean ups.
3820 (identify_source_line): Use open_source_file_with_line_charpos.
3821 (search_command_helper): Use open_source_file_with_line_charpos
3822 instead of just open_source_file, remove call to
3824 * source.h (open_source_file_with_line_charpos): Declare new
3826 (find_source_lines): Delete declaration.
3828 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3830 * source.c (get_filename_and_charpos): Remove fullname
3832 (identify_source_line): Update call to get_filename_and_charpos.
3834 2019-06-14 Tom Tromey <tromey@adacore.com>
3837 * ui-style.h (skip_ansi_escape): Update comment.
3838 * ui-file.h (class no_terminal_escape_file): New class.
3839 * ui-file.c (no_terminal_escape_file::write)
3840 (no_terminal_escape_file::puts): New methods.
3841 * cli/cli-logging.c (handle_redirections): Use
3842 no_terminal_escape_file.
3844 2019-06-14 Tom Tromey <tromey@adacore.com>
3846 * NEWS: Move convenience variable news above Python news.
3848 2019-06-14 Tom Tromey <tom@tromey.com>
3850 * gnulib: Move directory to top-level.
3851 * configure.ac: Don't configure gnulib.
3852 * configure: Rebuild.
3853 * common/common-defs.h: Use new path to gnulib.
3854 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
3856 (INCGNU): Look in new gnulib location.
3857 (HFILES_NO_SRCDIR): Remove gnulib files.
3858 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
3859 (generated_files): Remove GNULIB_H.
3860 ($(LIBGNU), all-lib): Remove targets.
3861 (distclean): Don't mention GNULIB_BUILDDIR.
3862 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
3864 2019-06-14 Tom Tromey <tromey@adacore.com>
3866 * symfile.c (add_symbol_file_command): Remove obsolete comment.
3867 Warn if symbol file does not provide any symbols.
3869 2019-06-14 Tom Tromey <tromey@adacore.com>
3871 * source.c (find_and_open_source): Respect basenames_may_differ.
3873 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
3875 * annotate.c (annotate_breakpoints_invalid): Make use of
3876 scoped_restore_terminal_state.
3877 (annotate_frames_invalid): Likewise.
3879 2019-06-14 Tom Tromey <tromey@adacore.com>
3881 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
3882 allow assignment to an internalvar.
3884 2019-06-14 Tom Tromey <tromey@adacore.com>
3886 * ada-lex.l: Allow "_" in attribute names.
3888 2019-06-14 Tom Tromey <tromey@adacore.com>
3891 * regcache.c (registers_changed): Don't call alloca.
3892 * top.c (execute_command): Don't call alloca.
3894 2019-06-13 Pedro Alves <palves@redhat.com>
3896 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
3897 'expression'. When parsing an expression, error out if there's
3898 junk after "unlimited".
3899 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
3900 (do_set_command): Adjust calls to is_unlimited_literal.
3902 2019-06-13 Pedro Alves <palves@redhat.com>
3904 * compile/compile.c (make_compile_options_def_group): Add braces
3905 around array_view initializer.
3906 * thread.c (make_thread_apply_all_options_def_group)
3907 (make_thread_apply_all_options_def_group): Likewise.
3909 2019-06-13 Pedro Alves <palves@redhat.com>
3911 * NEWS (New commands): Mention "maint test-options
3912 require-delimiter", "maint test-options unknown-is-error", "maint
3913 test-options unknown-is-operand" and "maint show
3914 test-options-completion-result".
3915 (New command options, command completion): New section.
3916 (Completion improvements): New section.
3917 Mention that you can abbreviate "unlimited".
3919 2019-06-13 Pedro Alves <palves@redhat.com>
3921 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
3922 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
3923 * unittests/cli-utils-selftests.c (test_parse_flags)
3924 (test_parse_flags_qcs): Delete.
3925 (test_cli_utils): Don't call deleted functions.
3927 2019-06-13 Pedro Alves <palves@redhat.com>
3929 * thread.c: Include "cli/cli-option.h".
3930 (tp_array_compar_ascending): Global.
3931 (tp_array_compar): Delete function.
3932 (tp_array_compar_ascending, tp_array_compar_descending): New
3934 (ascending_option_def, qcs_flag_option_def)
3935 (thr_qcs_flags_option_defs)
3936 (make_thread_apply_all_options_def_group)
3937 (make_thread_apply_options_def_group): New.
3938 (thread_apply_all_command): Use gdb::option::process_options.
3939 (thread_apply_command_completer)
3940 (thread_apply_all_command_completer): New.
3941 (thread_apply_command): Use gdb::option::process_options.
3942 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
3943 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
3944 to generate help text of "thread apply". Adjust "taas"'s help.
3945 * tid-parse.c (tid_range_parser::in_thread_range): New method.
3946 * tid-parse.h (tid_range_parser::in_thread_range): New method.
3948 2019-06-13 Pedro Alves <palves@redhat.com>
3950 * thread.c (thread_apply_command): Check for invalid TID with
3951 isdigit instead of !isalpha.
3953 2019-06-13 Pedro Alves <palves@redhat.com>
3955 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
3956 (validate_flags_qcs): New.
3957 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
3958 (validate_flags_qcs): Declare.
3959 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
3960 (make_frame_apply_options_def_group): New.
3961 (frame_apply_command_count): Process options with
3962 gdb::option::process_options.
3963 (frame_apply_completer): New.
3964 (frame_apply_level_completer, frame_apply_all_completer)
3965 (frame_apply_completer): New.
3966 (_initialize_stack): Update help of "frame apply", "frame apply
3967 level", "frame apply all" and "faas" to mention supported options
3968 and install command completers.
3969 * stack.h (frame_apply_all_completer): Declare.
3970 * thread.c: Include "stack.h".
3971 (tfaas_command): Add "--".
3972 (_initialize_thread): Update help "tfaas" to mention supported
3973 options and install command completer.
3975 2019-06-13 Pedro Alves <palves@redhat.com>
3977 * completer.c (complete_nested_command_line): New.
3978 (gdb_completion_word_break_characters_throw): Add assertion.
3979 * completer.h (complete_nested_command_line): Declare.
3981 2019-06-13 Pedro Alves <palves@redhat.com>
3983 * stack.c (parse_backtrace_qualifiers): New.
3984 (backtrace_command): Use it.
3985 (backtrace_command_completer): Complete on qualifiers.
3987 2019-06-13 Pedro Alves <palves@redhat.com>
3989 * frame.c: Include "cli/cli-option.h.
3990 (user_set_backtrace_options): New.
3991 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
3993 (get_prev_frame): Adjust.
3994 (boolean_option_def, uinteger_option_def)
3995 (set_backtrace_option_defs): New.
3996 (_initialize_frame): Adjust and use
3997 gdb::option::add_setshow_cmds_for_options to install "set
3998 backtrace past-main" and "set backtrace past-entry".
3999 * frame.h: Include "cli/cli-option.h".
4000 (struct frame_print_options): Forward declare.
4001 (print_frame_arguments_all, print_frame_arguments_scalars)
4002 (print_frame_arguments_none): Declare.
4003 (print_entry_values): Delete declaration.
4004 (struct frame_print_options, user_frame_print_options): New.
4005 (struct set_backtrace_options): New.
4006 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
4007 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
4008 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
4009 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
4010 (list_args_or_locals): Add frame_print_options parameter.
4011 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
4012 * python/py-framefilter.c (enumerate_args): Pass down
4013 USER_FRAME_PRINT_OPTIONS.
4014 * stack.c: Include "cli/cli-option.h".
4015 (print_frame_arguments_all, print_frame_arguments_scalars)
4016 (print_frame_arguments_none): Declare.
4017 (print_raw_frame_arguments, print_entry_values): Delete.
4018 (user_frame_print_options): New.
4019 (boolean_option_def, enum_option_def, frame_print_option_defs):
4021 (struct backtrace_cmd_options): New.
4022 (bt_flag_option_def): New.
4023 (backtrace_command_option_defs): New.
4024 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
4025 (print_frame_arg, read_frame_arg, print_frame_args)
4026 (print_frame_info, print_frame): Add frame_print_options parameter
4028 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
4029 (backtrace_command_1): Add frame_print_options and
4030 backtrace_cmd_options parameters and use them.
4031 (make_backtrace_options_def_group): New.
4032 (backtrace_command): Process command options with
4033 gdb::option::process_options.
4034 (backtrace_command_completer): New.
4035 (_initialize_stack): Extend "backtrace"'s help to mention
4036 supported options. Install completer for "backtrace".
4037 Install some settings commands with add_setshow_cmds_for_options.
4039 2019-06-13 Pedro Alves <palves@redhat.com>
4041 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
4042 and that "set/show print raw frame-arguments" are now deprecated.
4044 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
4046 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
4047 * stack.c (_initialize_stack): Install "set/show print
4048 raw-frame-arguments", and deprecate "set/show print raw
4050 * valprint.c (_initialize_valprint): Deprecate "set/show print
4053 2019-06-13 Pedro Alves <palves@redhat.com>
4055 * compile/compile.c (struct compile_options): New.
4056 (compile_flag_option_def, compile_command_option_defs)
4057 (make_compile_options_def_group): New.
4058 (compile_file_command): Handle options with
4059 gdb::option::process_options.
4060 (compile_file_command_completer): New function.
4061 (compile_code_command): Handle options with
4062 gdb::option::process_options.
4063 (compile_code_command_completer): New function.
4064 (_initialize_compiler): Install completers for "compile code" and
4065 "compile file". Mention available options in "compile code" and
4066 "compile code"'s help.
4067 * completer.c (advance_to_completion_word): New, factored out from
4069 (advance_to_expression_complete_word_point): ... this.
4070 (advance_to_filename_complete_word_point): New.
4071 * completer.h (advance_to_filename_complete_word_point): New
4074 2019-06-13 Pedro Alves <palves@redhat.com>
4076 * compile/compile.c: Include "cli/cli-option.h".
4077 (compile_print_value): Scope data pointer is now a
4078 value_print_options pointer; adjust.
4079 (compile_print_command): Process options. Scope data pointer is
4080 now a value_print_options pointer; adjust.
4081 (_initialize_compile): Update "compile print"'s help to include
4082 supported options. Install a completer for "compile print".
4083 * cp-valprint.c (show_vtblprint, show_objectprint)
4084 (show_static_field_print): Delete.
4085 (_initialize_cp_valprint): Don't install "set print
4086 static-members", "set print vtbl", "set print object" here.
4087 * printcmd.c: Include "cli/cli-option.h" and
4088 "common/gdb_optional.h".
4089 (print_command_parse_format): Rework to fill in a
4090 value_print_options instead of a format_data.
4091 (print_value): Change parameter type from format_data pointer to
4092 value_print_options reference. Adjust.
4093 (print_command_1): Process options. Adjust to pass down a
4094 value_print_options.
4095 (print_command_completer): New.
4096 (_initialize_printcmd): Install print_command_completer as
4097 handle_brkchars completer for the "print" command. Update
4098 "print"'s help to include supported options.
4099 * valprint.c: Include "cli/cli-option.h".
4100 (show_vtblprint, show_objectprint, show_static_field_print): Moved
4101 here from cp-valprint.c.
4102 (boolean_option_def, uinteger_option_def)
4103 (value_print_option_defs, make_value_print_options_def_group):
4104 New. Use gdb::option::add_setshow_cmds_for_options to install
4105 "set print elements", "set print null-stop", "set print repeats",
4106 "set print pretty", "set print union", "set print array", "set
4107 print address", "set print symbol", "set print array-indexes".
4108 * valprint.h: Include <string> and "cli/cli-option.h".
4109 (make_value_print_options_def_group): Declare.
4110 (print_value): Change parameter type from format_data pointer to
4111 value_print_options reference.
4112 (print_command_completer): Declare.
4114 2019-06-13 Pedro Alves <palves@redhat.com>
4116 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
4117 (COMMON_SFILES): Add maint-test-settings.c.
4118 * cli/cli-decode.c (boolean_enums): New global, factored out from
4120 (add_setshow_boolean_cmd): ... here.
4121 * cli/cli-decode.h (boolean_enums): Declare.
4122 * cli/cli-option.c: New file.
4123 * cli/cli-option.h: New file.
4124 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
4125 factored out from ...
4126 (parse_cli_boolean_value(const char *)): ... this.
4127 (is_unlimited_literal): Change parameter type to pointer to
4128 pointer. Adjust and advance ARG pointer.
4129 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
4130 (parse_cli_var_enum): New, factored out from ...
4131 (do_set_command): ... this. Adjust.
4132 * cli/cli-setshow.h (parse_cli_boolean_value)
4133 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
4134 (parse_cli_var_enum): Declare.
4135 * cli/cli-utils.c: Include "cli/cli-option.h".
4136 (get_ulongest): New.
4137 * cli/cli-utils.h (get_ulongest): Declare.
4138 (check_for_argument): New overloads.
4139 * maint-test-options.c: New file.
4141 2019-06-13 Pedro Alves <palves@redhat.com>
4143 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
4144 parse a range if "-" is at the end of the string.
4146 2019-06-13 Pedro Alves <palves@redhat.com>
4148 * cli/cli-setshow.c (parse_auto_binary_operation)
4149 (parse_cli_boolean_value): Don't allow "o".
4151 2019-06-13 Pedro Alves <palves@redhat.com>
4153 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
4154 * NEWS: Mention maint test-settings KIND.
4155 * maint-test-settings.c: New file.
4157 2019-06-13 Pedro Alves <palves@redhat.com>
4159 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
4161 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
4164 2019-06-13 Pedro Alves <palves@redhat.com>
4166 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
4169 2019-06-13 Pedro Alves <palves@redhat.com>
4171 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
4173 2019-06-13 Pedro Alves <palves@redhat.com>
4175 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
4176 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
4178 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
4179 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
4181 (check_for_argument): Skip spaces after argument.
4183 2019-06-13 Pedro Alves <palves@redhat.com>
4185 * thread.c (thread_apply_command): Adjust TID parsing.
4186 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
4187 detected before end of string.
4188 (tid_is_in_list): Error out if LIST is invalid.
4190 2019-06-13 Pedro Alves <palves@redhat.com>
4192 * completer.c (complete_line_internal_1): Rewind completion word
4194 (completion_tracker::advance_custom_word_point_by): Change
4195 parameter type to int.
4196 * completer.h (completion_tracker::advance_custom_word_point_by):
4199 2019-06-13 Pedro Alves <palves@redhat.com>
4201 * completer.c (advance_to_completion_word): Handle delimiters.
4203 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
4205 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
4207 2019-06-11 Tom Tromey <tom@tromey.com>
4209 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
4210 (xmalloc_failed): Move to alloc.c.
4211 * alloc.c: New file.
4212 * Makefile.in (COMMON_SFILES): Add alloc.c.
4214 2019-06-11 Tom Tromey <tom@tromey.com>
4216 * nat/linux-waitpid.c: Don't include server.h.
4217 (linux_debug): Remove.
4218 (my_waitpid): Update.
4220 2019-06-11 Tom Tromey <tromey@adacore.com>
4222 * infcall.c (_initialize_infcall): Remove trailing newline from
4224 * user-regs.c (_initialize_user_regs): Remove trailing newline
4226 * typeprint.c (_initialize_typeprint): Remove trailing newline
4228 * reverse.c (_initialize_reverse): Remove trailing newlines from
4230 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
4232 * language.c (add_set_language_command): Remove trailing newline
4234 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
4236 * disasm.c (_initialize_disasm): Remove trailing newline from
4238 * top.c (init_main): Remove trailing newline from help.
4239 * interps.c (_initialize_interpreter): Remove trailing newline
4241 * btrace.c (_initialize_btrace): Remove trailing newlines from
4243 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
4245 * python/python.c (_initialize_python): Remove trailing newline
4247 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
4249 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
4250 from help. Reformat some text.
4251 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
4253 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
4256 2019-06-11 Tom Tromey <tromey@adacore.com>
4258 * darwin-nat.c (darwin_decode_exception_message)
4259 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
4261 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
4263 * valops.c (value_slice): Check for not allocated or not
4266 2019-06-10 Tom de Vries <tdevries@suse.de>
4269 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
4270 sure an empty slot (defined by a 32-bit zero pair) is recognized as
4273 2019-06-10 Tom de Vries <tdevries@suse.de>
4276 * linespec.c (linespec_lexer_lex_string): Remove incorrect
4277 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
4279 2019-06-10 Tom de Vries <tdevries@suse.de>
4282 * symtab.c (struct demangled_name_entry): Add language field.
4283 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
4284 static minimal symbol". Set and use language field.
4286 2019-06-10 Tom Tromey <tromey@adacore.com>
4288 * ada-lang.c (_initialize_ada_language): Update help text.
4290 2019-06-10 Tom Tromey <tromey@adacore.com>
4292 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
4294 * guile/guile.c (handle_boot_error): Don't end warning with a
4296 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
4297 warning with a newline.
4298 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
4300 (s12z_frame_cache): Likewise.
4301 * dwarf-index-cache.c (index_cache::store): Don't end warning with
4303 * solib-svr4.c (disable_probes_interface): Don't end warning with
4305 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
4307 * python/python.c (do_finish_initialization): Don't end warning
4310 2019-06-10 Tom Tromey <tom@tromey.com>
4312 * python/py-breakpoint.c (gdbpy_breakpoint_created)
4313 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
4316 2019-06-10 Tom Tromey <tromey@adacore.com>
4318 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
4320 (elf_new_init): Don't call stabsread_new_init.
4321 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
4322 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
4323 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
4325 2019-06-10 Tom de Vries <tdevries@suse.de>
4329 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
4331 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
4333 * source.c (find_and_open_source): Also rewrite relative file
4336 2019-04-26 Amos Bird <amosbird@gmail.com>
4338 * annotate.c (annotate_thread_exited): Add "thread-exited"
4341 2019-06-06 Tom Tromey <tromey@adacore.com>
4343 * maint.h (class scoped_command_stats): Use
4344 DISABLE_COPY_AND_ASSIGN.
4345 <print_time>: New method.
4346 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
4348 (scoped_command_stats::print_time): New method.
4350 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4352 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
4353 instructions of lengths 6 or 8 bytes.
4355 2019-06-04 Pedro Alves <palves@redhat.com>
4357 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
4359 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
4360 * breakpoint.c (condition_completer): Likewise.
4361 * cli/cli-dump.c (scan_expression): Likewise.
4362 * common/filestuff.c (mkdir_recursive): Likewise.
4363 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
4364 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
4365 (gdb_abspath): Likewise.
4366 * compile/compile-cplus-types.c
4367 (compile_cplus_instance::decl_name): Likewise.
4368 * completer.c (complete_explicit_location):
4369 (signal_completer, reg_or_group_completer_1): Likewise.
4370 * cp-support.c (cp_remove_params_if_any): Likewise.
4371 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
4372 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
4373 * infcmd.c (strip_bg_char): Likewise.
4374 * linespec.c (copy_token_string): Likewise.
4375 * mi/mi-main.c (output_cores): Likewise.
4376 * psymtab.c (psymtab_search_name):
4377 * symfile.c (test_set_ext_lang_command): Likewise.
4378 * target.c (target_fileio_read_stralloc): Likewise.
4379 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
4380 * value.c (complete_internalvar): Likewise.
4382 2019-06-04 Christian Biesinger <cbiesinger@google.com>
4384 Add objfile property to gdb.Type.
4385 * NEWS: Mention Python API addition.
4386 * python/py-type.c (typy_get_objfile): New method.
4388 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4390 * NEWS: Mention the new set|show style [title|highlight].
4391 Mention changes to "show style", "help" and "apropos".
4393 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4395 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
4396 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
4397 instead of print_help_for_command.
4398 (print_doc_of_command): New function.
4399 (help_list): Add 'apropos -v word' suggestion.
4400 (print_help_for_command): Style the command name using title style.
4401 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
4402 (_initialize_cli_cmds): Describe -v in apropos_command help.
4404 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4406 * cli/cli-style.h (cli_style_option): Add name in constructor,
4407 add m_name class member, add constructor with intensity,
4408 add name class function.
4409 (cli_style_option::add_setshow_commands): Remove name argument.
4410 (highlight_style, title_style): New styles.
4411 * cli/cli-style.c (do_show): New function that shows a style
4412 characteristic styling the style name with itself.
4413 (set_style_name): New function.
4414 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
4415 Update all callers according to the changes in cli/cli-style.h.
4416 * utils.h (fputs_highlighted): New function.
4417 * utils.c (fputs_highlighted): Likewise.
4419 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4421 * NEWS: Mention new pipe command and new convenience variables.
4423 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4425 * cli/cli-cmds.c (pipe_command): New function.
4426 (_initialize_cli_cmds): Call add_com for pipe_command.
4427 Define | as an alias for pipe.
4428 (exit_status_set_internal_vars): New function.
4429 (shell_escape): Call exit_status_set_internal_vars.
4430 cli/cli-decode.c (find_command_name_length): Recognize | as
4431 a single character command.
4433 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4435 * gdbcmd.h (execute_command_to_ui_file): New declaration.
4436 top.c (execute_command_to_ui_file): New function, mostly a copy
4437 of execute_command_to_string.
4438 (execute_command_to_string): Implement by calling
4439 execute_command_to_ui_file.
4441 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4443 * top.h (saved_command_line): Remove declaration.
4444 * top.c (previous_saved_command_line, previous_repeat_arguments):
4446 (saved_command_line): Make static, define together with other
4448 (dont_repeat): Clear repeat_arguments.
4449 (repeat_previous, get_saved_command_line, save_command_line):
4451 (gdb_init): Initialize saved_command_line
4452 and previous_saved_command_line.
4453 * main.c (captured_main_1): Remove saved_command_line initialization.
4454 * event-top.c (handle_line_of_input): Update to use
4455 the new 'repeat' related functions instead of direct access to
4457 * command.h (repeat_previous, get_saved_command_line,
4458 save_command_line): New declarations.
4459 (dont_repeat): Add comment.
4461 2019-05-30 Tom Tromey <tromey@adacore.com>
4463 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
4465 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
4467 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
4470 * completer.c (complete): Initialize variable word.
4472 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
4474 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
4475 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
4476 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
4477 'body' is NULL to the outter 'if', protecting the '!is_define'
4480 2019-05-29 Tom Tromey <tromey@adacore.com>
4482 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
4483 (dwarf_unknown): New function.
4484 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
4485 (dwarf_type_encoding_name): Use dwarf_unknown.
4487 2019-05-29 Tom Tromey <tromey@adacore.com>
4490 * cp-valprint.c (cp_print_value_fields): Call
4491 cp_print_static_field inside "try".
4493 2019-05-29 Tom Tromey <tromey@adacore.com>
4495 * inflow.c (struct terminal_info): Add default operator=.
4496 * configure: Rebuild.
4497 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
4498 -Wdeprecated-copy-dtor, -Wredundant-move.
4500 2019-05-29 Tom Tromey <tromey@adacore.com>
4503 * infcmd.c (print_return_value_1): Handle finish_print
4505 (show_print_finish): New function.
4506 (_initialize_infcmd): Add "set/show print finish" commands.
4507 * valprint.c (user_print_options): Initialize new member.
4508 * valprint.h (struct value_print_options) <finish_print>: New
4511 2019-05-28 Tom Tromey <tromey@adacore.com>
4513 * ada-lang.c (ada_remove_Xbn_suffix)
4514 (find_old_style_renaming_symbol)
4515 (parse_old_style_renaming): Remove.
4516 (ada_find_renaming_symbol): Don't call
4517 find_old_style_renaming_symbol.
4518 (ada_is_renaming_symbol): Rename from
4519 ada_find_renaming_symbol. Remove "block" parameter. Return
4521 (ada_read_var_value): Update and simplify.
4522 * ada-exp.y (write_var_or_type): Remove old code.
4524 2019-05-28 Alan Hayward <alan.hayward@arm.com>
4526 * event-top.c: Remove include comment.
4527 * inflow.c (class scoped_ignore_sigttou): Move from here...
4528 * inflow.h (class scoped_ignore_sigttou): ...to here.
4529 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
4530 * top.c: Remove include comment.
4532 2019-05-27 Tom Tromey <tom@tromey.com>
4536 2019-05-22 Tom Tromey <tromey@adacore.com>
4538 * target.c (target_follow_exec): Constify parameter.
4539 * target-delegates.c: Rebuild.
4540 * remote.c (remote_target::follow_exec): Constify parameter.
4541 * infrun.c (follow_exec): Constify parameter.
4542 * target.h (struct target_ops) <follow_exec>: Constify parameter.
4543 (target_follow_exec): Likewise.
4545 2019-05-22 Alan Hayward <alan.hayward@arm.com>
4547 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
4548 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
4550 2019-05-22 Alan Hayward <alan.hayward@arm.com>
4552 * NEWS: Add debugredirect and testsuite sections.
4554 2019-05-22 Simon Cook <simon.cook@embecosm.com>
4556 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
4557 target descriptions using exclusively floating point register name
4560 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
4563 * f-lang.c (build_fortran_types): Handle the case where
4564 gdbarch_floatformat_for_type returns a nullptr.
4566 2019-05-21 Tom de Vries <tdevries@suse.de>
4569 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
4571 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
4574 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
4576 * i386-tdep.c (i386_floatformat_for_type): Use
4577 floatformats_ia64_quad for the 16-byte floating point component
4578 within a fortran 32-byte complex number.
4580 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
4582 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
4583 delete default constructor.
4584 (find_partial_die): Update to return const struct.
4585 (partial_die_parent_scope): Move variable declaration into scope
4586 of its use and change its type to auto.
4587 (guess_partial_die_structure_name): Likewise.
4588 (partial_die_info::fixup): Likewise.
4590 2019-05-17 Tom Tromey <tromey@adacore.com>
4592 * source.c (find_and_open_source): Remove cast.
4594 2019-05-17 Tom Tromey <tromey@adacore.com>
4596 * annotate.c (annotate_source): Make "filename" const.
4597 * annotate.h (annotate_source): Use const.
4599 2019-05-17 Alan Hayward <alan.hayward@arm.com>
4601 * disasm.c (set_disassembler_options): Send errors to stderr.
4603 2019-05-17 Alan Hayward <alan.hayward@arm.com>
4605 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
4606 (cli_interp_base::set_logging): Check debug_redirect.
4607 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
4608 * cli/cli-logging.c (debug_redirect): Add static variable.
4609 (pop_output_files): Add default param.
4610 (handle_redirections): Print debug setting.
4611 (show_logging_command): Likewise.
4612 (_initialize_cli_logging): Add debugredirect command.
4613 * interps.c (current_interp_set_logging): Add debug_redirect
4615 * interps.h (set_logging): Add debug_redirect parameter.
4616 (current_interp_set_logging): Likewise.
4617 * mi/mi-common.h: Likewise.
4618 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
4620 2019-05-17 Alan Hayward <alan.hayward@arm.com>
4621 Tom Tromey <tromey@adacore.com>
4623 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
4625 * cli/cli-interp.h (make_logging_output): Remove declaration.
4626 * cli/cli-logging.c (make_logging_output): Remove function.
4627 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
4629 * ui-file.c (tee_file::tee_file): Remove bools.
4630 (tee_file::~tee_file): Remove deletes.
4631 * ui-file.h (tee_file): Remove bools.
4633 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
4635 * mi/mi-cmds.h (mi_cmd_complete): New function.
4636 * mi/mi-main.c (mi_cmd_complete): Likewise.
4637 * mi/mi-cmds.c: Define new MI command -complete.
4638 * NEWS: Mention new -complete command.
4640 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
4642 * completer.h (complete): New function.
4643 * completer.c (complete): Likewise.
4644 * cli/cli-cmds.c: (complete_command): Update to use new complete()
4645 function defined in completer.h.
4647 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
4649 * MAINTAINERS (Write After Approval): Add myself.
4651 2019-05-17 Tom de Vries <tdevries@suse.de>
4654 * dwarf2read.c (struct cu_partial_die_info): New struct.
4655 (find_partial_die): Return cu_partial_die_info.
4656 (partial_die_parent_scope, guess_partial_die_structure_name)
4657 (partial_die_info::fixup): Handle new return type of find_partial_die.
4659 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4661 * stap-probe.c (stap_parse_register_operand): Make "regname" an
4662 "std::string", simplifying the algorithm.
4664 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4666 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
4667 (stap_static_probe_ops::get_probes): Likewise.
4669 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4671 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
4672 '-')" and "else if".
4673 (stap_parse_single_operand): Join checks for
4674 "gdbarch_stap_parse_special_token_p" and
4675 "gdbarch_stap_parse_special_token" in the same "if" statement.
4676 Invert check when verifying for operation on register
4679 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4681 * stap-probe.c (stap_get_opcode): Update comment.
4682 (stap_get_expected_argument_type): Likewise.
4683 (handle_stap_probe): Likewise.
4685 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4687 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
4688 return type to 'bool'. Adjust comment. Use 'bool' when
4690 (i386_stap_parse_special_token_three_arg_disp): Likewise.
4691 * stap-probe.c (stap_parse_argument_1): Likewise.
4692 (stap_is_operator): Likewise.
4693 (stap_is_generic_prefix): Likewise.
4694 (stap_is_register_prefix): Likewise.
4695 (stap_is_register_indirection_prefix): Likewise.
4696 (stap_is_integer_prefix): Likewise.
4697 (stap_generic_check_suffix): Likewise.
4698 (stap_check_integer_suffix): Likewise.
4699 (stap_check_register_suffix): Likewise.
4700 (stap_check_register_indirection_suffix): Likewise.
4701 (stap_parse_register_operand): Likewise.
4702 (stap_parse_single_operand): Likewise.
4703 (stap_parse_argument_1): Likewise.
4704 (stap_probe::get_argument_count): Likewise.
4705 (stap_is_operator): Likewise.
4707 2019-05-16 Tom Tromey <tromey@adacore.com>
4709 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
4712 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
4714 * linux-thread-db.c (try_thread_db_load_1): Change return type
4716 (try_thread_db_load): Likewise.
4717 (try_thread_db_load_from_pdir_1): Likewise.
4718 (try_thread_db_load_from_pdir): Likewise.
4719 (try_thread_db_load_from_sdir): Likewise.
4720 (try_thread_db_load_from_dir): Likewise.
4721 (thread_db_load_search): Likewise.
4722 (has_libpthread): Likewise.
4723 (thread_db_load): Likewise.
4725 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
4727 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
4728 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
4729 NULL, and complain/return if that's the case.
4731 2019-05-15 John Darrington <john@darrington.wattle.id.au>
4733 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
4734 (advance, posn, abstract_read_memory): New functions.
4735 [struct mem_read_abstraction]: New struct.
4736 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
4738 2019-05-14 Tom Tromey <tromey@adacore.com>
4740 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
4741 value is not lval_memory.
4743 2019-05-14 Tom Tromey <tromey@adacore.com>
4745 * solib.c (info_sharedlibrary_command): Style the file name.
4747 2019-05-14 Alan Hayward <alan.hayward@arm.com>
4749 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
4750 (aarch64_vnv_type): Likewise.
4751 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
4752 * common/tdesc.c: Likewise.
4753 * common/tdesc.h (enum tdesc_type_kind): Likewise.
4754 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
4755 * features/aarch64-fpu.xml: Add ieee half view.
4756 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
4757 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
4758 * gdbtypes.h (struct builtin_type): Likewise.
4759 (struct objfile_type): Likewise.
4761 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
4763 * language.c (language_sniff_from_mangled_name): Fix "langauge"
4765 * location.h (string_to_event_location): Likewise.
4767 2019-05-11 Joel Brobecker <brobecker@adacore.com>
4771 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
4773 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
4774 New variable declaration.
4775 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
4777 (print_one_breakpoint): Use ui_out::test_flags and new global
4778 variable to compute use_fixed_output.
4779 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
4781 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
4782 (mi_multi_location_breakpoint_output_fixed): Remove.
4783 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
4785 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
4786 fix_multi_location_breakpoint_output flag if version >= 3.
4787 * ui-out.h (enum ui_out_flag)
4788 <fix_multi_location_breakpoint_output>: New enumerator.
4790 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
4792 * contrib/cc-with-tweaks.sh: Validate dwz's work.
4794 2019-05-10 Tom Tromey <tromey@adacore.com>
4796 * ada-lang.c (catch_ada_completer): New function.
4797 (_initialize_ada_language): Use it.
4799 2019-05-10 Tom Tromey <tromey@adacore.com>
4801 * thread.c (print_thread_info): Make "requested_threads" const.
4802 * gdbthread.h (print_thread_info): Make "requested_threads"
4804 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
4805 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
4807 2019-05-08 Tom Tromey <tom@tromey.com>
4809 * gdbtypes.c (objfile_type_data): Change type.
4810 (objfile_type, _initialize_gdbtypes): Update.
4812 2019-05-08 Tom Tromey <tom@tromey.com>
4814 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
4815 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
4816 (_initialize_dwarf2_frame): Update.
4818 2019-05-08 Tom Tromey <tom@tromey.com>
4820 * objc-lang.c (objc_objfile_data): Change type.
4821 (find_methods): Update.
4822 (_initialize_objc_lang): Remove.
4824 2019-05-08 Tom Tromey <tom@tromey.com>
4826 * stabsread.c (rs6000_builtin_type_data): Change type.
4827 (rs6000_builtin_type, _initialize_stabsread): Update.
4829 2019-05-08 Tom Tromey <tom@tromey.com>
4831 * mips-tdep.c (mips_pdr_data): Remove.
4832 (_initialize_mips_tdep): Update.
4834 2019-05-08 Tom Tromey <tom@tromey.com>
4836 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
4837 (hppa_init_objfile_priv_data, read_unwind_info)
4838 (find_unwind_entry, _initialize_hppa_tdep): Update.
4840 2019-05-08 Tom Tromey <tom@tromey.com>
4842 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
4843 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
4845 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
4847 2019-05-08 Tom Tromey <tom@tromey.com>
4849 * mdebugread.c (basic_type_data): Change type.
4850 (basic_type, _initialize_mdebugread): Update.
4852 2019-05-08 Tom Tromey <tom@tromey.com>
4854 * common/gdb_unique_ptr.h (struct noop_deleter): New.
4856 2019-05-08 Tom Tromey <tom@tromey.com>
4858 * nto-tdep.c (nto_inferior_data_reg): Change type.
4859 (nto_inferior_data): Update.
4860 (nto_inferior_data_cleanup, nto_new_inferior_data)
4861 (_initialize_nto_tdep): Remove.
4862 * nto-tdep.h (struct nto_inferior_data): Add initializers.
4864 2019-05-08 Tom Tromey <tom@tromey.com>
4866 * ada-lang.c (struct ada_inferior_data): Add initializers.
4867 (ada_inferior_data): Change type.
4868 (ada_inferior_data_cleanup): Remove.
4869 (get_ada_inferior_data, ada_inferior_exit)
4870 (struct ada_pspace_data): Add initializers, destructor.
4871 (ada_pspace_data_handle): Change type.
4872 (get_ada_pspace_data): Update.
4873 (ada_pspace_data_cleanup): Remove.
4875 2019-05-08 Tom Tromey <tom@tromey.com>
4877 * coffread.c (struct coff_symfile_info): Add initializers.
4878 (coff_objfile_data_key): Move lower. Change type.
4879 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
4881 (coff_free_info): Remove.
4883 2019-05-08 Tom Tromey <tom@tromey.com>
4885 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
4886 (fbsd_pspace_data_handle): Move lower. Change type.
4887 (get_fbsd_pspace_data): Update.
4888 (fbsd_pspace_data_cleanup): Remove.
4889 (_initialize_fbsd_tdep): Update.
4891 2019-05-08 Tom Tromey <tom@tromey.com>
4893 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
4894 (get_ada_tasks_pspace_data): Update.
4895 (ada_tasks_pspace_data_cleanup): Remove.
4896 (_initialize_tasks): Update.
4897 (ada_tasks_inferior_data_handle): Change type.
4898 (get_ada_tasks_inferior_data): Update.
4899 (ada_tasks_inferior_data_cleanup): Remove.
4900 (struct ada_tasks_pspace_data): Add initializers.
4902 2019-05-08 Tom Tromey <tom@tromey.com>
4904 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
4905 * symfile-debug.c (debug_sym_get_probes): Change type.
4906 * stap-probe.c (handle_stap_probe):
4907 (stap_static_probe_ops::get_probes): Change type.
4908 * probe.h (class static_probe_ops) <get_probes>: Change type.
4909 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
4910 (parse_probes_in_pspace): Update.
4911 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
4913 (any_static_probe_ops::get_probes): Change type.
4914 * elfread.c (elfread_data): New typedef.
4915 (probe_key): Change type.
4916 (elf_get_probes): Likewise. Update.
4917 (probe_key_free): Remove.
4918 (_initialize_elfread): Update.
4919 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
4921 (dtrace_process_dof_probe, dtrace_process_dof)
4922 (dtrace_static_probe_ops::get_probe): Change type.
4924 2019-05-08 Tom Tromey <tom@tromey.com>
4926 * xcoffread.c (struct xcoff_symfile_info): Rename from
4927 coff_symfile_info. Add initializers.
4928 (xcoff_objfile_data_key): Move lower. Change type.
4929 (XCOFF_DATA): Rewrite.
4930 (xcoff_free_info): Remove.
4931 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
4932 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
4933 (xcoff_initial_scan): Update.
4935 2019-05-08 Tom Tromey <tom@tromey.com>
4937 * solib-svr4.c (struct svr4_info): Add initializers and
4939 <probes_table>: Now an htab_up.
4940 (solib_svr4_pspace_data): Change type.
4941 (free_probes_table): Simplify.
4942 (~svr4_info): Rename from svr4_pspace_data_cleanup.
4943 (get_svr4_info, probes_table_htab_remove_objfile_probes)
4944 (probes_table_remove_objfile_probes, register_solib_event_probe)
4945 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
4946 (_initialize_svr4_solib): Update.
4948 2019-05-08 Tom Tromey <tom@tromey.com>
4950 * remote.c (remote_pspace_data): Change type.
4951 (remote_pspace_data_cleanup): Remove.
4952 (get_remote_exec_file, set_pspace_remote_exec_file)
4953 (_initialize_remote): Update.
4955 2019-05-08 Tom Tromey <tom@tromey.com>
4957 * breakpoint.c (breakpoint_objfile_key): Change type.
4958 (get_breakpoint_objfile_data): Update.
4959 (free_breakpoint_objfile_data): Remove.
4960 (_initialize_breakpoint): Update.
4962 2019-05-08 Tom Tromey <tom@tromey.com>
4964 * linux-tdep.c (struct linux_info): Add initializers.
4965 (linux_inferior_data): Move. Change type.
4966 (invalidate_linux_cache_inf): Update.
4967 (linux_inferior_data_cleanup): Remove.
4968 (get_linux_inferior_data, _initialize_linux_tdep): Update.
4970 2019-05-08 Tom Tromey <tom@tromey.com>
4972 * auxv.c (auxv_inferior_data): Move. Change type.
4973 (auxv_inferior_data_cleanup): Remove.
4974 (invalidate_auxv_cache_inf): Rewrite.
4975 (get_auxv_inferior_data, _initialize_auxv): Update.
4977 2019-05-08 Tom Tromey <tom@tromey.com>
4979 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
4980 (symfile_debug_objfile_data_key): Change type.
4981 (symfile_debug_installed, debug_qf_has_symbols)
4982 (debug_qf_find_last_source_symtab)
4983 (debug_qf_forget_cached_source_info)
4984 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
4985 (debug_qf_print_stats, debug_qf_dump)
4986 (debug_qf_expand_symtabs_for_function)
4987 (debug_qf_expand_all_symtabs)
4988 (debug_qf_expand_symtabs_with_fullname)
4989 (debug_qf_map_matching_symbols)
4990 (debug_qf_expand_symtabs_matching)
4991 (debug_qf_find_pc_sect_compunit_symtab)
4992 (debug_qf_map_symbol_filenames)
4993 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
4994 (debug_sym_new_init, debug_sym_init, debug_sym_read)
4995 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
4996 (debug_sym_read_linetable, debug_sym_relocate): Update.
4997 (symfile_debug_free_objfile): Remove.
4998 (install_symfile_debug_logging, _initialize_symfile_debug):
5001 2019-05-08 Tom Tromey <tom@tromey.com>
5003 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
5004 allocate_on_obstack.
5005 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
5006 (get_dwarf2_per_objfile): Update.
5007 (set_dwarf2_per_objfile): Remove.
5008 (dwarf2_has_info, dwarf2_get_section_info): Update.
5009 (dwarf2_free_objfile): Remove.
5010 (_initialize_dwarf2_read): Update.
5012 2019-05-08 Tom Tromey <tom@tromey.com>
5014 * auto-load.c (struct auto_load_pspace_info): Add destructor and
5016 <unsupported_script_warning_printed,
5017 script_not_found_warning_printed>: Now bool.
5018 (auto_load_pspace_data): Change type.
5019 (~auto_load_pspace_info): Rename from
5020 auto_load_pspace_data_cleanup.
5021 (get_auto_load_pspace_data, init_loaded_scripts_info)
5022 (clear_section_scripts, maybe_print_unsupported_script_warning)
5023 (maybe_print_script_not_found_warning, _initialize_auto_load):
5026 2019-05-08 Tom Tromey <tom@tromey.com>
5028 * objfiles.c (objfile_pspace_info): Add destructor and
5030 (objfiles_pspace_data): Change type.
5031 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
5032 (get_objfile_pspace_data): Update.
5033 (objfiles_bfd_data): Change type.
5034 (get_objfile_bfd_data): Update.
5035 (objfile_bfd_data_free, _initialize_objfiles): Remove.
5037 2019-05-08 Tom Tromey <tom@tromey.com>
5039 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
5041 (get_catch_syscall_inferior_data): Update.
5042 (catch_syscall_inferior_data_cleanup): Remove.
5043 (_initialize_break_catch_syscall): Update.
5045 2019-05-08 Tom Tromey <tom@tromey.com>
5047 * inflow.c (struct terminal_info): Add destructor and
5049 (inflow_inferior_data): Change type.
5050 (~terminal_info): Rename from inflow_inferior_data_cleanup.
5051 (get_inflow_inferior_data, inflow_inferior_exit)
5052 (swap_terminal_info, _initialize_inflow): Update.
5054 2019-05-08 Tom Tromey <tom@tromey.com>
5056 * target-dcache.c (target_dcache_cleanup): Remove.
5057 (target_dcache_aspace_key): Change type.
5058 (target_dcache_init_p, target_dcache_invalidate)
5059 (target_dcache_get, target_dcache_get_or_init)
5060 (_initialize_target_dcache): Update.
5061 * dcache.h (struct dcache_deleter): New.
5063 2019-05-08 Tom Tromey <tom@tromey.com>
5065 * symtab.c (struct symbol_cache): Add destructor and
5067 (symbol_cache_key): Move. Change type.
5068 (make_symbol_cache, free_symbol_cache): Remove.
5069 (get_symbol_cache): Update.
5070 (symbol_cache_cleanup): Remove.
5071 (ALL_PSPACES, symbol_cache_flush)
5072 (maintenance_print_symbol_cache)
5073 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
5076 2019-05-08 Tom Tromey <tom@tromey.com>
5078 * symtab.c (struct main_info): Add destructor and initializers.
5079 (main_progspace_key): Move. Change type.
5080 (get_main_info): Update.
5081 (main_info_cleanup): Remove.
5082 (_initialize_symtab): Update.
5084 2019-05-08 Tom Tromey <tom@tromey.com>
5086 * registry.h (DECLARE_REGISTRY): Define the _key class.
5088 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5090 * NEWS: Merge two 'New commands' sections.
5092 2019-05-08 Joel Brobecker <brobecker@adacore.com>
5094 * ada-valprint.c (ada_val_print_gnat_array): Remove language
5095 parameter and use Ada language definition instead.
5096 (ada_val_print_ptr): Remove unused language parameter.
5097 (ada_val_print_num): Remove language parameter and use Ada language
5099 (ada_val_print_enum, ada_val_print_flt): Remove unused language
5101 (ada_val_print_struct_union, ada_val_print_ref): Remove language
5102 parameter and use Ada language definition instead.
5103 (ada_val_print_1): Update all ada_val_print_xxx calls.
5104 Remove language parameter.
5105 (ada_val_print): Update ada_val_print_1 call.
5107 2019-05-08 Tom Tromey <tromey@adacore.com>
5109 * remote.c (remote_hw_watchpoint_limit)
5110 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
5113 2019-05-08 Tom Tromey <tromey@adacore.com>
5115 * maint.c (_initialize_maint_cmds): Move initialization code to
5117 (watchdog, show_watchdog): Move to remote.c.
5118 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
5120 (_initialize_remote): Move initialization code from maint.c.
5121 * defs.h (watchdog): Don't declare.
5123 2019-05-08 Tom Tromey <tromey@adacore.com>
5125 * tui/tui-interp.c: Include main.h.
5126 * interps.c: Include main.h.
5127 * main.h (interpreter_p): Declare.
5128 * defs.h (interpreter_p): Don't declare.
5130 2019-05-08 Tom Tromey <tromey@adacore.com>
5132 * dwarf2loc.c: Include dwarf2read.h.
5133 * defs.h (read_unsigned_leb128): Don't declare.
5134 * dwarf2read.h (read_unsigned_leb128): Declare.
5136 2019-05-08 Tom Tromey <tromey@adacore.com>
5138 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
5141 2019-05-08 Tom Tromey <tromey@adacore.com>
5143 * utils.c (fputs_maybe_filtered): Reset style after paging, even
5144 when no wrap column is set.
5146 2019-05-08 Tom Tromey <tromey@adacore.com>
5148 * c-lang.c (c_get_string): Handle non-C-style arrays.
5150 2019-05-08 Tom Tromey <tromey@adacore.com>
5152 * typeprint.c (print_offset_data::update): Print the bit offset,
5153 not the number of bits remaining.
5155 2019-05-08 Tom Tromey <tromey@adacore.com>
5157 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
5158 padding at end of comment.
5160 2019-05-08 Tom Tromey <tromey@adacore.com>
5162 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
5165 2019-05-06 Tom Tromey <tom@tromey.com>
5167 * common/scoped_mmap.c: Include common-defs.h.
5168 * common/scoped_mmap.h: Don't include config.h.
5170 2019-05-04 Tom Tromey <tom@tromey.com>
5172 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
5173 (struct aarch64_call_info): Add initializers.
5174 <si>: Now a std::vector.
5175 (pass_on_stack, aarch64_push_dummy_call): Update.
5177 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
5178 Tom Tromey <tom@tromey.com>
5180 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
5181 (ppc_threads): Now a std::vector. Now static.
5182 (hwdebug_find_thread_points_by_tid)
5183 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
5186 2019-05-04 Tom Tromey <tom@tromey.com>
5188 * arc-tdep.c (arc_tdesc_init): Return bool.
5190 2019-05-04 Tom Tromey <tom@tromey.com>
5192 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
5193 Use gdb_assert_not_reached.
5195 2019-05-04 Tom Tromey <tom@tromey.com>
5197 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
5200 2019-05-04 Tom Tromey <tom@tromey.com>
5202 * arc-tdep.c (arc_tdesc_init): Use bool.
5204 2019-05-04 Tom Tromey <tom@tromey.com>
5206 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
5208 2019-05-04 Tom Tromey <tom@tromey.com>
5210 * cli/cli-cmds.c (valid_command_p): Return bool.
5212 2019-05-04 Tom Tromey <tom@tromey.com>
5214 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
5215 * command.h (valid_user_defined_cmd_name_p): Channge return type.
5217 2019-05-04 Raul Tambre <raul@tambre.ee>
5219 * python/lib/gdb/prompt.py (_ExtendedPrompt)
5220 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
5221 operator for comparison.
5223 2019-05-04 Tom Tromey <tom@tromey.com>
5225 * psymtab.c (psymbol_name_matches, match_partial_symbol)
5226 (lookup_partial_symbol, print_partial_symbols)
5227 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
5228 (psymbol_compare): Update.
5229 (add_psymbol_to_bcache): Clear the entire psymbol.
5230 (maintenance_check_psymtabs): Update.
5231 * psympriv.h (struct partial_symbol): Don't derive from
5232 general_symbol_info.
5233 <obj_section, unrelocated_address, address,
5234 set_unrelocated_address>: Update.
5235 <ginfo>: New member.
5236 * dwarf-index-write.c (write_psymbols, debug_names::insert)
5237 (debug_names::write_psymbols): Update.
5239 2019-05-04 Tom de Vries <tdevries@suse.de>
5241 * contrib/cc-with-tweaks.sh: Support -n arg.
5243 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5245 * corelow.c (core_target::detach): Ensure frame cache and
5246 register caches are cleared.
5247 inferior.c (exit_inferior_1): Likewise.
5249 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
5250 Tom Tromey <tom@tromey.com>
5252 * dictionary.c (collate_pending_symbols_by_language): Remove
5253 "struct" from foreach.
5254 * symtab.c (lookup_global_symbol_from_objfile)
5255 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
5257 * ser-tcp.c (net_open): Remove "struct" from foreach.
5258 * objfiles.c (objfile_relocate, objfile_rebase)
5259 (objfile_has_symbols): Remove "struct" from foreach.
5260 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
5262 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
5264 * darwin-nat.c (thread_info_from_private_thread_info): Remove
5265 "struct" from foreach.
5266 * ada-lang.c (create_excep_cond_exprs)
5267 (ada_exception_catchpoint_cond_string): Remove "struct" from
5270 2019-05-03 Tom Tromey <tromey@adacore.com>
5272 * ada-exp.y (convert_char_literal): Check suffix of each
5275 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
5278 * ada-exp.y (yywrap): Don't define.
5279 * ada-lex.l (%option): Add noyywrap
5282 2019-05-03 Eli Zaretskii <eliz@gnu.org>
5284 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
5285 _WIN32_WINNT to the XP level, unless already defined to a higher
5288 * unittests/parse-connection-spec-selftests.c:
5290 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
5293 * symfile.c (find_separate_debug_file): Remove colon from the
5294 drive spec of DOS/Windows file names of the target, so that the
5295 file name produced from DEBUGDIR and the target's directory will
5296 be valid on DOS/Windows systems.
5298 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
5300 * rust-lang.c (val_print_struct): Handle printing structures
5303 2019-05-02 Tom Tromey <tromey@adacore.com>
5305 * valarith.c (_initialize_valarith): Remove.
5307 2019-05-01 Tom Tromey <tromey@adacore.com>
5309 * ada-lang.c (ada_value_primitive_field): Treat more fields as
5312 2019-05-01 Tom Tromey <tromey@adacore.com>
5314 * ada-lang.c (ada_value_assign): Correctly compute starting offset
5315 for big-endian copies.
5317 2019-04-30 Ali Tamur <tamur@google.com>
5318 * gdb/dwarf2read.c (read_3_bytes): New declaration.
5319 (read_attribute_value): Added DW_FORM_strx1-4 cases.
5320 (read_3_bytes): New function.
5322 2019-04-30 Joel Brobecker <brobecker@adacore.com>
5324 * windows-nat.c (main_thread_id): Delete.
5325 (handle_output_debug_string): Replace main_thread_id by
5326 current_event.dwThreadId.
5327 (fake_create_process): Likewise.
5328 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
5329 Do not set main_thread_id.
5330 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
5331 current_event.dwThreadId.
5332 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
5334 2019-04-30 Joel Brobecker <brobecker@adacore.com>
5336 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
5337 Use current_event.dwThreadId instead of main_thread_id.
5339 2019-04-30 Tom Tromey <tromey@adacore.com>
5341 * ada-lang.c (ada_lookup_simple_minsyms): New function.
5342 (create_excep_cond_exprs): Iterate over program spaces.
5343 (ada_exception_catchpoint_cond_string): Examine all minimal
5344 symbols for exception types.
5346 2019-04-30 Tom Tromey <tromey@adacore.com>
5349 * dwarf2read.c (process_structure_scope): Handle case where type
5350 has template parameters but no symbol was created.
5352 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5353 Chris January <chris.january@arm.com>
5355 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
5357 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
5359 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5361 * f-typeprint.c (f_print_type): Update rules for printing
5363 (f_type_print_varspec_suffix): Likewise.
5365 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5366 Chris January <chris.january@arm.com>
5368 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
5371 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5373 * f-lang.c (build_fortran_types): Change name of void type to
5375 * f-typeprint.c (f_type_print_base): Print the name of the void
5376 type, rather than a fixed string.
5377 * f-valprint.c (f_decorations): Use lower case void string.
5379 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5380 Chris January <chris.january@arm.com>
5382 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
5385 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5386 Chris January <chris.january@arm.com>
5387 David Lecomber <david.lecomber@arm.com>
5389 * f-exp.y (BINOP_INTRINSIC): New token.
5390 (exp): New parser rule handling BINOP_INTRINSIC.
5391 (f77_keywords): Add new builtin procedures.
5392 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
5393 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5394 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
5395 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5396 (print_unop_subexp_f): New function.
5397 (print_binop_subexp_f): New function.
5398 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
5399 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5400 (dump_subexp_body_f): Likewise.
5401 (operator_check_f): Likewise.
5402 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
5403 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
5405 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5407 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
5409 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
5410 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
5411 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
5412 (operator_length_f): New fuction.
5413 (print_subexp_f): New function.
5414 (op_name_f): New function.
5415 (dump_subexp_body_f): New function.
5416 (operator_check_f): New function.
5417 (exp_descriptor_f): Replace standard expression handling functions
5419 * gdb/fortran-operator.def: New file.
5420 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
5421 * gdb/std-operator.def: Remove UNOP_KIND.
5423 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5425 * std-operator.def: Remove unbalanced, stray double quote
5428 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5429 Chris January <chris.january@arm.com>
5430 Daniel Everett <daniel.everett@arm.com>
5431 Nick Forrington <nick.forrington@arm.com>
5432 Richard Bunt <richard.bunt@arm.com>
5434 * cp-valprint.c (cp_print_value_fields): Allow an additional level
5435 of depth when printing anonymous structs or unions.
5436 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
5437 Don't print either the top-level value, or the children if the
5438 max-depth is exceeded.
5439 (ppscm_print_children): When printing the key of a map, allow one
5440 extra level of depth.
5441 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
5442 print either the top-level value, or the children if the max-depth
5444 (print_children): When printing the key of a map, allow one extra
5446 * python/py-value.c (valpy_format_string): Add max_depth keyword.
5447 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
5448 (user_print_options): Initialise max_depth field.
5449 (val_print_scalar_or_string_type_p): New function.
5450 (val_print): Check to see if the max depth has been reached.
5451 (val_print_check_max_depth): Define new function.
5452 (show_print_max_depth): New function.
5453 (_initialize_valprint): Add 'print max-depth' option.
5454 * valprint.h (struct value_print_options) <max_depth>: New field.
5455 (val_print_check_max_depth): Declare new function.
5456 * NEWS: Document new feature.
5458 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5460 * ada-lang.c (ada_language_defn): Initialise new field.
5461 * c-lang.c (c_is_string_type_p): New function.
5462 (c_language_defn): Initialise new field.
5463 (cplus_language_defn): Initialise new field.
5464 (asm_language_defn): Initialise new field.
5465 (minimal_language_defn): Initialise new field.
5466 * c-lang.h (c_is_string_type_p): Declare new function.
5467 * d-lang.c (d_language_defn): Initialise new field.
5468 * f-lang.c (f_is_string_type_p): New function.
5469 (f_language_defn): Initialise new field.
5470 * go-lang.c (go_is_string_type_p): New function.
5471 (go_language_defn): Initialise new field.
5472 * language.c (default_is_string_type_p): New function.
5473 (unknown_language_defn): Initialise new field.
5474 (auto_language_defn): Initialise new field.
5475 * language.h (struct language_defn) <la_is_string_type_p>: New
5477 (default_is_string_type_p): Declare new function.
5478 * m2-lang.c (m2_language_defn): Initialise new field.
5479 * objc-lang.c (objc_language_defn): Initialise new field.
5480 * opencl-lang.c (opencl_language_defn): Initialise new field.
5481 * p-lang.c (pascal_is_string_type_p): New function.
5482 (pascal_language_defn): Initialise new field.
5483 * rust-lang.c (rust_is_string_type_p): New function.
5484 (rust_language_defn): Initialise new field.
5486 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5488 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
5490 * ada-lang.c (ada_language_defn): Initialise new field.
5491 * c-lang.c (c_language_defn): Likewise.
5492 (cplus_language_defn): Likewise.
5493 (asm_language_defn): Likewise.
5494 (minimal_language_defn): Likewise.
5495 * d-lang.c (d_language_defn): Likewise.
5496 * f-lang.c (f_language_defn): Likewise.
5497 * go-lang.c (go_language_defn): Likewise.
5498 * language.c (unknown_language_defn): Likewise.
5499 (auto_language_defn): Likewise.
5500 * m2-lang.c (m2_language_defn): Likewise.
5501 * objc-lang.c (objc_language_defn): Likewise.
5502 * opencl-lang.c (opencl_language_defn): Likewise.
5503 * p-lang.c (pascal_language_defn): Likewise.
5504 * rust-lang.c (rust_language_defn): Likewise.
5506 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5508 * ada-lang.c (ada_is_character_type): Change return type to bool.
5509 (ada_is_string_type): Likewise.
5510 * ada-lang.h (ada_is_character_type): Update declaration
5511 (ada_is_string_type): Likewise.
5513 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5515 Support style in 'frame|thread apply'
5517 * gdbcmd.h (execute_command_to_string): New term_out parameter.
5518 * record.c (record_start, record_stop): Update callers of
5519 execute_command_to_string with false.
5520 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
5521 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
5523 (class string_file): New constructor with term_out parameter.
5524 Override methods term_out and can_emit_style_escape. New member
5526 (class stdio_file): Override can_emit_style_escape.
5527 (class tee_file): Override term_out and can_emit_style_escape.
5528 * utils.h (can_emit_style_escape): Remove.
5529 * utils.c (can_emit_style_escape): Likewise.
5530 Update all callers of can_emit_style_escape (SOMESTREAM) to
5531 SOMESTREAM->can_emit_style_escape.
5532 * source-cache.c (source_cache::get_source_lines): Likewise.
5533 * stack.c (frame_apply_command_count): Call execute_command_to_string
5534 passing the term_out characteristic of the current gdb_stdout.
5535 * thread.c (thr_try_catch_cmd): Likewise.
5536 * top.c (execute_command_to_string): pass term_out parameter
5537 to construct the string_file for the command output.
5538 * ui-file.c (term_cli_styling): New function (most code moved
5539 from utils.c can_emit_style_escape).
5540 (string_file::string_file, string_file::can_emit_style_escape,
5541 stdio_file::can_emit_style_escape, tee_file::term_out,
5542 tee_file::can_emit_style_escape): New functions.
5544 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5546 * NEWS: Mention the new set|show may-call-functions.
5547 * infcall.c (may_call_functions_p): New variable.
5548 (show_may_call_functions_p): New function.
5549 (call_function_by_hand_dummy): Throws an error if not
5551 (_initialize_infcall): Call add_setshow_boolean_cmd for
5554 2019-04-25 Keith Seitz <keiths@redhat.com>
5557 * cp-support.c (inspect_type): Don't attempt substitutions
5558 of symbol with the same name.
5560 2019-04-25 Tom Tromey <tromey@adacore.com>
5563 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
5566 2019-04-25 Tom Tromey <tromey@adacore.com>
5568 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
5570 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
5571 (gdb_xml_parser::parse): Use std::move.
5572 * python/python-internal.h (gdbpy_convert_exception): Take a const
5574 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
5576 * python/py-utils.c (gdbpy_convert_exception): Take a const
5578 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
5580 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
5582 * mi/mi-main.c (mi_print_exception): Take a const reference.
5583 * main.c (handle_command_errors): Take a const reference.
5584 * linespec.c (parse_linespec): Use std::move.
5585 * infcall.c (run_inferior_call): Use std::move.
5586 (call_function_by_hand_dummy): Use std::move.
5587 * exec.c (try_open_exec_file): Use std::move.
5588 * exceptions.h (exception_print, exception_fprintf)
5589 (exception_print_same): Update.
5590 * exceptions.c (print_exception, exception_print)
5591 (exception_fprintf, exception_print_same): Change parameters to
5593 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
5594 * common/new-op.c: Use std::move.
5595 * common/common-exceptions.h (struct gdb_exception): Add move
5597 (struct gdb_exception_error, struct gdb_exception_quit, struct
5598 gdb_quit_bad_alloc): Change constructor to move constructor.
5599 (throw_exception): Change parameter to rvalue reference.
5600 * common/common-exceptions.c (throw_exception): Take rvalue
5602 * cli/cli-interp.c (safe_execute_command): Use std::move.
5603 * breakpoint.c (insert_bp_location, location_to_sals): Use
5606 2019-04-25 Tom Tromey <tromey@adacore.com>
5608 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
5609 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
5610 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
5611 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
5612 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
5613 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
5614 guile/scm-value.c: Use unpack.
5615 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
5616 gdbscm_gdb_exception.
5617 (gdbscm_throw_gdb_exception): Likewise.
5618 (struct gdbscm_gdb_exception): New.
5619 (unpack): New function.
5620 (gdbscm_wrap): Use unpack.
5622 2019-04-25 Tom Tromey <tromey@adacore.com>
5624 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
5625 (gdb_rl_callback_handler): Use std::move.
5626 * common/common-exceptions.h (struct gdb_exception): Add move
5627 assignment operator.
5628 (throw_exception_sjlj): Change "exception" to const reference.
5629 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
5630 (throw_exception_sjlj): Change "exception" to const reference.
5632 2019-04-25 Tom Tromey <tromey@adacore.com>
5634 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
5635 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
5636 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
5638 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
5640 * mi/mi-interp.c (mi_interp::exec): Update.
5641 * linespec.c (parse_linespec): Update.
5642 * infcall.c (run_inferior_call): Update.
5643 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
5644 * guile/scm-symbol.c (gdbscm_lookup_symbol)
5645 (gdbscm_lookup_global_symbol): Update.
5646 * guile/scm-param.c (gdbscm_parameter_value): Update.
5647 * guile/scm-frame.c (gdbscm_frame_read_register)
5648 (gdbscm_frame_read_var): Update.
5649 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
5650 * exec.c (try_open_exec_file): Update.
5651 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
5652 (gdb_rl_callback_handler): Update.
5653 * common/common-exceptions.h (exception_none): Don't declare.
5654 * common/common-exceptions.c (exception_none): Don't define.
5655 (struct catcher) <exception>: Update.
5656 * cli/cli-interp.c (safe_execute_command): Update.
5657 * breakpoint.c (insert_bp_location, location_to_sals): Update.
5659 2019-04-25 Ali Tamur <tamur@google.com>
5661 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
5662 (read_attribute_value): Likewise.
5663 (dwarf2_read_addr_index): Update comment.
5664 (read_str_index): Add DW_FORM_strx.
5665 (dwarf2_string_attr): Likewise.
5666 (dwarf2_const_value_attr): Likewise.
5667 (dump_die_shallow): Likewise.
5668 (dwarf2_fetch_constant_bytes): Likewise.
5669 (skip_form_bytes): Likewise.
5670 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
5672 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
5676 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
5677 OFFSET. Verify if current mapping contains an ELF header.
5678 (linux_find_memory_regions_full): Adjust call to
5681 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
5682 Kang Li <kanglictf@gmail.com>
5686 * dwarf2-frame.c (read_initial_length): Be consistent about using
5687 unsigned representation of length.
5688 (decode_frame_entry_1): Likewise. Check for wraparound of
5689 end pointer as well as buffer overflow.
5691 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
5693 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
5696 2019-04-24 Tom Tromey <tromey@adacore.com>
5698 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
5700 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5702 * s12z-tdep.c (s12z_unwind_pc): Delete.
5703 (s12z_unwind_sp): Delete.
5704 (s12z_gdbarch_init): Don't register deleted functions with
5707 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5709 * rl78-tdep.c (rl78_unwind_sp): Delete.
5710 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
5712 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5714 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
5715 (xstormy16_unwind_pc): Delete.
5716 (xstormy16_dummy_id): Delete.
5717 (xstormy16_gdbarch_init): Don't register deleted functions with
5720 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5722 * vax-tdep.c (vax_unwind_pc): Delete.
5723 (vax_gdbarch_init): Don't register deleted function with gdbarch.
5725 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5727 * v850-tdep.c (v850_unwind_sp): Delete.
5728 (v850_unwind_pc): Delete.
5729 (v850_dummy_id): Delete.
5730 (v850_gdbarch_init): Don't register deleted functions with
5733 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5735 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
5736 (tilegx_unwind_pc): Delete.
5737 (tilegx_unwind_dummy_id): Delete.
5738 (tilegx_gdbarch_init): Don't register deleted functions with
5741 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5743 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
5744 (tic6x_dummy_id): Delete.
5745 (tic6x_gdbarch_init): Don't register deleted functions with
5748 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5750 * sparc-tdep.c (sparc_unwind_pc): Delete.
5751 (sparc32_gdbarch_init): Don't register deleted function with
5754 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5756 * sh-tdep.c (sh_unwind_sp): Delete.
5757 (sh_unwind_pc): Delete.
5758 (sh_dummy_id): Delete.
5759 (sh_gdbarch_init): Don't register deleted functions with
5762 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5764 * score-tdep.c (score_unwind_sp): Delete.
5765 (score_unwind_pc): Delete.
5766 (score_dummy_id): Delete.
5767 (score_gdbarch_init): Don't register deleted functions with
5770 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5772 * rx-tdep.c (rx_unwind_pc): Delete.
5773 (rx_unwind_sp): Delete.
5774 (rx_dummy_id): Delete.
5775 (rx_gdbarch_init): Don't register deleted functions with
5776 gdbarch. Update comment.
5778 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5780 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
5781 (rs6000_dummy_id): Delete.
5782 (rs6000_gdbarch_init): Don't register deleted functions with
5785 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5787 * or1k-tdep.c (or1k_dummy_id): Delete.
5788 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
5790 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5792 * nios2-tdep.c (nios2_dummy_id): Delete.
5793 (nios2_unwind_sp): Delete.
5794 (nios2_gdbarch_init): Don't register deleted functions with
5797 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5799 * nds32-tdep.c (nds32_dummy_id): Delete.
5800 (nds32_unwind_pc): Delete.
5801 (nds32_unwind_sp): Delete.
5802 (nds32_gdbarch_init): Don't register deleted functions with
5805 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5807 * msp430-tdep.c (msp430_unwind_pc): Delete.
5808 (msp430_unwind_sp): Delete.
5809 (msp430_dummy_id): Delete.
5810 (msp430_gdbarch_init): Don't register deleted functions with
5813 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5815 * moxie-tdep.c (moxie_unwind_sp): Delete.
5816 (moxie_unwind_pc): Delete.
5817 (moxie_dummy_id): Delete.
5818 (moxie_gdbarch_init): Don't register deleted functions with
5821 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5823 * mn10300-tdep.c (mn10300_dummy_id): Delete.
5824 (mn10300_unwind_pc): Delete.
5825 (mn10300_unwind_sp): Delete.
5826 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
5828 (mn10300_frame_unwind_init): Don't register deleted functions with
5831 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5833 * mep-tdep.c (mep_unwind_pc): Delete.
5834 (mep_unwind_sp): Delete.
5835 (mep_dummy_id): Delete.
5836 (mep_gdbarch_init): Don't register deleted functions with
5839 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5841 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
5842 (m68hc11_unwind_sp): Delete.
5843 (m68hc11_gdbarch_init): Don't register deleted functions with
5846 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5848 * m32r-tdep.c (m32r_unwind_sp): Delete.
5849 (m32r_unwind_pc): Delete.
5850 (m32r_dummy_id): Delete.
5851 (m32r_gdbarch_init): Don't register deleted functions with
5854 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5856 * m32c-tdep.c (m32c_unwind_pc): Delete.
5857 (m32c_unwind_sp): Delete.
5858 (m32c_dummy_id): Delete.
5859 (m32c_gdbarch_init): Don't register deleted functions with
5862 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5864 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
5865 (lm32_unwind_pc): Delete.
5866 (lm32_dummy_id): Delete.
5867 (lm32_gdbarch_init): Don't register deleted functions with
5870 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5872 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
5873 (iq2000_unwind_pc): Delete.
5874 (iq2000_dummy_id): Delete.
5875 (iq2000_gdbarch_init): Don't register deleted functions with
5878 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5880 * nds32-tdep.c (nds32_type_align): Delete.
5881 (nds32_push_dummy_call): Use type_align instead.
5883 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5885 * arm-tdep.c (arm_type_align): Only handle vector override case.
5886 (arm_push_dummy_call): Use type_align.
5887 (arm_gdbarch_init): Register arm_type_align gdbarch function.
5889 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5891 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
5893 (pass_on_stack): Use type_align.
5894 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
5897 2019-04-23 Tom Tromey <tromey@adacore.com>
5899 * dwarf2read.c (line_header::file_name_at): Remove unused
5902 2019-04-23 Tom de Vries <tdevries@suse.de>
5905 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
5909 2019-03-27 Ali Tamur <tamur@google.com>
5911 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
5912 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
5913 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
5914 (dwarf_expr_context::get_addr_index): Likewise
5915 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
5916 (symbol_needs_eval_context::get_addr_index): Likewise
5917 (disassemble_dwarf_expression): Add DW_OP_addrx
5918 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
5919 (read_cutu_die_from_dwo): Update comment
5920 (skip_one_die): Add DW_FORM_addrx
5921 (read_attribute_value): Likewise
5922 (var_decode_location): Add DW_OP_addrx
5923 (dwarf2_const_value_attr): Add DW_FORM_addrx
5924 (dump_die_shallow): Likewise
5925 (dwarf2_fetch_constant_bytes): Likewise
5926 (decode_locdesc): Add DW_OP_addrx
5927 (skip_form_bytes): Add DW_FORM_addrx
5929 2019-04-22 Ali Tamur <tamur@google.com>
5931 * MAINTAINERS (Write After Approval): Add self.
5933 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
5935 * solib-svr4.c (get_svr4_info): Add pspace parameter.
5936 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
5937 (open_symbol_file_object): Likewise.
5938 (svr4_default_sos): Add info parameter.
5939 (svr4_read_so_list): Likewise.
5940 (svr4_current_sos_direct): Adjust functions calls to pass down
5942 (svr4_current_sos_1): Add info parameter.
5943 (svr4_current_sos): Call get_svr4_info, pass info down to
5945 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
5947 (svr4_in_dynsym_resolve_code): Pass current_program_space to
5949 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
5951 (probes_table_remove_objfile_probes): Likewise.
5952 (register_solib_event_probe): Add info parameter.
5953 (solist_update_incremental): Pass info parameter down to
5955 (disable_probes_interface): Add info parameter.
5956 (svr4_handle_solib_event): Pass current_program_space to
5957 get_svr4_info. Adjust disable_probes_interface cleanup.
5958 (svr4_create_probe_breakpoints): Add info parameter, pass it
5959 down to register_solib_event_probe.
5960 (svr4_create_solib_event_breakpoints): Add info parameter,
5961 pass it down to svr4_create_probe_breakpoints.
5962 (enable_break): Pass info down to
5963 svr4_create_solib_event_breakpoints.
5964 (svr4_solib_create_inferior_hook): Pass current_program_space to
5966 (svr4_clear_solib): Likewise.
5968 2019-04-22 Pedro Alves <palves@redhat.com>
5970 * solib-svr4.c (svr4_free_objfile_observer): New.
5971 (probe_and_action::objfile): New field.
5972 (probes_table_htab_remove_objfile_probes)
5973 (probes_table_remove_objfile_probes): New functions.
5974 (register_solib_event_probe): Add 'objfile' parameter. Store it
5975 in the new probe_and_action. Don't store the probe in 'lookup'.
5976 (svr4_create_probe_breakpoints): Pass objfile to
5977 register_solib_event_probe.
5978 (_initialize_svr4_solib): Register a free_objfile observer.
5980 2019-04-19 Tom Tromey <tom@tromey.com>
5982 * common/queue.h: Remove.
5984 2019-04-19 Tom Tromey <tom@tromey.com>
5986 * event-loop.c: Don't include "common/queue.h".
5988 2019-04-19 Tom Tromey <tom@tromey.com>
5990 * remote.c (remote_target): Use delete.
5991 * remote-notif.h: Include <list>, not "common/queue.h".
5992 (notif_client_p): Remove typedef.
5993 (remote_notif_state): Add constructor, destructor, initializer.
5994 <notif_queue>: Now a std::list.
5995 (remote_notif_state_xfree): Don't declare.
5996 * remote-notif.c (remote_notif_process, handle_notification)
5997 (remote_notif_state_allocate): Update.
5998 (~remote_notif_state): Rename from remote_notif_state_xfree.
6000 2019-04-19 Tom Tromey <tom@tromey.com>
6002 * symfile.c (reread_symbols): Update.
6003 * objfiles.c (objfile_register_static_link)
6004 (objfile_lookup_static_link): Update
6005 (~objfile) Don't delete static_links.
6006 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
6008 2019-04-19 Tom Tromey <tom@tromey.com>
6010 * type-stack.h (struct type_stack) <insert>: Constify string.
6011 * type-stack.c (type_stack::insert): Constify string.
6012 * gdbtypes.h (lookup_template_type): Update.
6013 (address_space_name_to_int): Update.
6014 * gdbtypes.c (address_space_name_to_int): Make space_identifier
6016 (lookup_template_type): Make name const.
6017 * c-exp.y: Update rules.
6018 (lex_one_token, classify_name, classify_inner_name)
6019 (c_print_token): Update.
6020 * p-exp.y: Update rules.
6022 * f-exp.y: Update rules.
6024 * d-exp.y: Update rules.
6025 (lex_one_token, classify_name, classify_inner_name): Update.
6026 * parse.c (write_dollar_variable, copy_name): Return std::string.
6027 * parser-defs.h (copy_name): Change return type.
6028 * m2-exp.y: Update rules.
6030 * go-exp.y (lex_one_token): Update.
6032 (classify_unsafe_function, classify_packaged_name)
6033 (classify_name, yylex): Update.
6035 2019-04-19 Sergei Trofimovich <siarheit@google.com>
6037 * configure.ac: add --enable-source-highlight switch.
6038 * configure: Regenerate.
6039 * top.c (print_gdb_version): plumb --enable-source-highlight
6040 status to "show configuration".
6042 2019-04-19 Tom Tromey <tromey@adacore.com>
6044 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
6046 (empty_record, ada_template_to_fixed_record_type_1)
6047 (template_to_static_fixed_type)
6048 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
6049 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
6050 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
6053 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
6056 * source.c (print_source_lines_base): Advance "iter" when a
6057 control character is seen.
6059 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6061 * inferior.h (struct infcall_suspend_state_deleter):
6062 Catch exception in destructor to avoid crash.
6064 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6066 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
6067 close to the add_com "shell".
6069 2019-04-18 Tom Tromey <tromey@adacore.com>
6071 * process-stratum-target.h (class process_stratum_target)
6072 <stratum>: Add "final".
6074 2019-04-17 Tom Tromey <tromey@adacore.com>
6076 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
6077 against nullptr before use.
6079 2019-04-17 Alan Hayward <alan.hayward@arm.com>
6081 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
6083 2019-04-17 Jim Wilson <jimw@sifive.com>
6084 Andrew Burgess <andrew.burgess@embecosm.com>
6086 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
6087 code read might fail, assume 4-byte breakpoint in that case.
6089 2019-04-15 Leszek Swirski <leszeks@google.com>
6091 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
6092 rather than a hand-rolled POD check when checking for forced MEMORY
6095 2019-04-15 Alan Hayward <alan.hayward@arm.com>
6097 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
6098 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
6100 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
6101 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
6102 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
6105 2019-04-15 Alan Hayward <alan.hayward@arm.com>
6107 * aarch64-linux-nat.c
6108 (aarch64_linux_nat_target::thread_architecture): Add override.
6109 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
6112 2019-04-15 Alan Hayward <alan.hayward@arm.com>
6114 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
6116 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
6118 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
6119 target types of size 96-bits, add some additional comments, and
6120 check that the builtin type we found was the correct size.
6122 2019-04-12 Eli Zaretskii <eliz@gnu.org>
6124 * utils.c (prompt_for_continue): Don't restore the styling at the
6125 end, as applied_style has the wrong value. This fixes styling in
6126 long lists of file names that are interrupted by the "Continue?"
6129 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
6131 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
6132 * c-lang.c (c_language_defn): Likewise.
6133 (cplus_language_defn): Likewise.
6134 (asm_language_defn): Likewise.
6135 (minimal_language_defn): Likewise.
6136 * d-lang.c (d_language_defn): Likewise.
6137 * f-lang.c (f_language_defn): Likewise.
6138 * go-lang.c (go_language_defn): Likewise.
6139 * language.c (unknown_language_defn): Likewise.
6140 (auto_language_defn): Likewise.
6141 * language.h (struct language_defn): Remove la_magic field.
6142 (LANG_MAGIC): Delete.
6143 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
6144 * objc-lang.c (objc_language_defn): Likewise.
6145 * opencl-lang.c (opencl_language_defn): Likewise.
6146 * p-lang.c (pascal_language_defn): Likewise.
6147 * rust-lang.c (rust_language_defn): Likewise.
6149 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
6151 * riscv-tdep.c (riscv_type_align): New function.
6152 (riscv_type_alignment): Delete.
6153 (riscv_arg_location): Use 'type_align'.
6154 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
6156 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
6158 * gdbtypes.c (type_align): A struct with no non-static fields also
6161 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
6163 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
6165 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
6167 (riscv_struct_info::analyse): New implementation using new
6168 analyse_inner member function.
6169 (riscv_struct_info::field_offset): New member function.
6170 (riscv_struct_info::m_offsets): New member variable.
6171 (riscv_struct_info::analyse_inner): New private member function,
6172 takes the old implementation of riscv_struct_info::analyse but
6173 extended to track field offsets.
6174 (riscv_call_arg_struct): Update the struct folding special cases
6175 to handle cases where empty C++ structs, which are non-zero
6177 (riscv_arg_location): Initialise the length of each location, a
6178 non-zero length now indicates the location is in use.
6179 (riscv_push_dummy_call): Allow for the first location having a
6180 non-zero offset when setting up arguments.
6181 (riscv_return_value): Likewise, but for return values.
6183 2019-04-11 Tom Tromey <tromey@adacore.com>
6185 * utils.c (internal_vproblem): Make "msg" const.
6187 2019-04-11 Alan Hayward <alan.hayward@arm.com>
6189 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
6190 * trad-frame.c (trad_frame_reset_saved_regs): New function.
6191 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
6192 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
6194 2019-04-10 Kevin Buettner <kevinb@redhat.com>
6196 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
6198 (fill_gregset): Call amd64_linux_collect_native_gregset instead
6199 of amd64_collect_native_gregset.
6200 (amd64_linux_nat_target::store_registers): Likewise.
6202 2019-04-10 Tom Tromey <tom@tromey.com>
6204 * symtab.c (lookup_global_symbol_from_objfile)
6205 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
6206 * objfiles.h (class separate_debug_iterator): New.
6207 (class separate_debug_range): New.
6208 (struct objfile) <separate_debug_objfiles>: New method.
6209 (objfile_separate_debug_iterate): Don't declare.
6210 * objfiles.c (separate_debug_iterator::operator++): Rename from
6211 objfile_separate_debug_iterate.
6212 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
6214 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
6217 2019-04-10 Tom Tromey <tom@tromey.com>
6219 * symfile.c (reread_symbols): Remove old comment.
6220 * objfiles.c (free_all_objfiles): Fix a typo.
6222 2019-04-10 Tom Tromey <tom@tromey.com>
6224 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
6225 * minsyms.c (lookup_minimal_symbol): Use foreach.
6226 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6227 (lookup_minimal_symbol_solib_trampoline): Likewise.
6228 * symfile.c (reread_symbols): Use foreach.
6230 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
6231 Tom Tromey <tromey@adacore.com>
6234 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
6235 (rust_lex_int_test): Change "value" to be LONGEST.
6236 (rust_lex_tests): Add test for long integer literal.
6238 2019-04-09 Tom Tromey <tromey@adacore.com>
6240 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
6242 (extended_remote_target::attach): Update.
6243 (remote_target::remote_notice_new_inferior): Update.
6244 (remote_target::add_current_inferior_and_thread): Update.
6245 * inferior.c (exit_inferior_1): Use "false".
6246 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
6248 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
6250 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
6251 the "start" command.
6253 2019-04-08 Kevin Buettner <kevinb@redhat.com>
6255 * python/py-inferior.c (infpy_thread_from_thread_handle):
6256 Adjust comments to reflect renaming of thread_from_thread_handle
6257 to thread_from_handle. Adjust keywords. Fix type error message.
6258 (inferior_object_methods): Add thread_from_handle. Retain
6259 thread_from_thread_handle, but mark it as deprecated.
6261 2019-04-08 Kevin Buettner <kevinb@redhat.com>
6263 * gdbthread.h (find_thread_by_handle): Revise declaration.
6264 * thread.c (find_thread_by_handle): Likewise. Adjust
6266 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
6267 support for buffer objects as handles.
6269 2019-04-08 Kevin Buettner <kevinb@redhat.com>
6271 * python/py-infthread.c (thpy_thread_handle): New function.
6272 (thread_object_methods): Register thpy_thread_handle.
6274 2019-04-08 Kevin Buettner <kevinb@redhat.com>
6276 * gdbthread.h (thread_to_thread_handle): Declare.
6277 * thread.c (gdbtypes.h): Include.
6278 (thread_to_thread_handle): New function.
6280 * target.h (struct target_ops): Add thread_info_to_thread_handle.
6281 (target_thread_info_to_thread_handle): Declare.
6282 * target.c (target_thread_info_to_thread_handle): New function.
6283 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
6284 * target-delegates.c: Regenerate.
6286 * linux-thread-db.c (class thread_db_target): Add method
6287 thread_info_to_thread_handle.
6288 (thread_db_target::thread_info_to_thread_handle): Define.
6289 * remote.c (class remote_target): Add new method
6290 thread_info_to_thread_handle.
6291 (remote_target::thread_info_to_thread_handle): Define.
6293 2019-04-08 Pedro Alves <palves@redhat.com>
6295 * common/common-exceptions.c (throw_exception): Don't create
6296 named object to throw; throw directly.
6297 (throw_it): Likewise. Don't initialize gdb_exception::message
6298 here, with new; pass FMT and AP to the ctor instead.
6299 * common/common-exceptions.h: Include <string>.
6300 (gdb_exception::gdb_exception(enum return_reason, enum errors,
6301 const char *, va_list)): New ctor. Use std::make_shared.
6302 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
6304 (gdb_exception_error::gdb_exception_error(enum errors, const char
6306 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
6308 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
6310 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
6311 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
6314 2019-04-08 Tom Tromey <tom@tromey.com>
6316 * valops.c (value_rtti_indirect_type): Replace throw_exception
6318 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
6320 * thread.c (thr_try_catch_cmd): Replace throw_exception with
6322 * target.c (target_translate_tls_address): Replace throw_exception
6324 * stack.c (frame_apply_command_count): Replace throw_exception
6326 * solib-spu.c (append_ocl_sos): Replace throw_exception with
6328 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
6330 * rs6000-tdep.c (rs6000_frame_cache)
6331 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
6332 * remote.c: Replace throw_exception with throw.
6333 * record-full.c (record_full_message, record_full_wait_1)
6334 (record_full_restore): Replace throw_exception with throw.
6336 (get_thread_current_frame_id, record_btrace_start_replaying)
6337 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
6338 (cmd_record_btrace_start): Replace throw_exception with throw.
6339 * parse.c (parse_exp_in_context_1): Replace throw_exception with
6341 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
6342 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
6344 (find_linespec_symbols): Replace throw_exception with throw.
6345 * infrun.c (displaced_step_prepare, resume): Replace
6346 throw_exception with throw.
6347 * infcmd.c (post_create_inferior): Replace throw_exception with
6349 * inf-loop.c (inferior_event_handler): Replace throw_exception
6351 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
6352 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
6353 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
6354 (get_prev_frame_always, get_frame_pc_if_available)
6355 (get_frame_address_in_block_if_available, get_frame_language):
6356 Replace throw_exception with throw.
6357 * frame-unwind.c (frame_unwind_try_unwinder): Replace
6358 throw_exception with throw.
6359 * eval.c (fetch_subexp_value, evaluate_var_value)
6360 (evaluate_funcall, evaluate_subexp_standard): Replace
6361 throw_exception with throw.
6362 * dwarf2loc.c (call_site_find_chain)
6363 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
6364 Replace throw_exception with throw.
6365 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
6367 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
6369 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
6370 * completer.c (complete_line_internal): Replace throw_exception
6372 * compile/compile-object-run.c (compile_object_run): Replace
6373 throw_exception with throw.
6374 * cli/cli-script.c (process_next_line): Replace throw_exception
6376 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
6377 (btrace_enable, btrace_maint_update_pt_packets): Replace
6378 throw_exception with throw.
6379 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
6380 throw_exception with throw.
6381 * break-catch-throw.c (re_set_exception_catchpoint): Replace
6382 throw_exception with throw.
6383 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
6384 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
6385 * aarch64-tdep.c (aarch64_make_prologue_cache)
6386 (aarch64_make_stub_cache): Replace throw_exception with throw.
6388 2019-04-08 Tom Tromey <tom@tromey.com>
6390 * common/common-exceptions.c (throw_exception): Rename from
6391 throw_exception_cxx. Remove old copy. Make argument const.
6392 (throw_it): Create and throw exception objects directly.
6393 * common/common-exceptions.h (throw_exception): Make argument
6395 (struct gdb_exception_error): Add constructor.
6396 (struct gdb_exception_quit): Add constructor.
6398 2019-04-08 Tom Tromey <tom@tromey.com>
6400 * common/common-exceptions.h (exception_rethrow): Don't declare.
6401 (TRY_SJLJ): Update comment.
6402 (TRY, CATCH, END_CATCH): Remove.
6403 * common/common-exceptions.c (exception_rethrow): Remove.
6405 2019-04-08 Tom Tromey <tom@tromey.com>
6407 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
6409 (gdb_exception_error): Rename from
6410 gdb_exception_RETURN_MASK_ERROR.
6411 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
6412 (gdb_quit_bad_alloc): Update.
6413 * aarch64-tdep.c: Update.
6414 * ada-lang.c: Update.
6415 * ada-typeprint.c: Update.
6416 * ada-valprint.c: Update.
6417 * amd64-tdep.c: Update.
6418 * arch-utils.c: Update.
6419 * break-catch-throw.c: Update.
6420 * breakpoint.c: Update.
6422 * c-varobj.c: Update.
6423 * cli/cli-cmds.c: Update.
6424 * cli/cli-interp.c: Update.
6425 * cli/cli-script.c: Update.
6426 * common/common-exceptions.c: Update.
6427 * common/new-op.c: Update.
6428 * common/selftest.c: Update.
6429 * compile/compile-c-symbols.c: Update.
6430 * compile/compile-cplus-symbols.c: Update.
6431 * compile/compile-object-load.c: Update.
6432 * compile/compile-object-run.c: Update.
6433 * completer.c: Update.
6434 * corelow.c: Update.
6436 * cp-support.c: Update.
6437 * cp-valprint.c: Update.
6438 * darwin-nat.c: Update.
6439 * disasm-selftests.c: Update.
6440 * dtrace-probe.c: Update.
6441 * dwarf-index-cache.c: Update.
6442 * dwarf-index-write.c: Update.
6443 * dwarf2-frame-tailcall.c: Update.
6444 * dwarf2-frame.c: Update.
6445 * dwarf2loc.c: Update.
6446 * dwarf2read.c: Update.
6448 * event-loop.c: Update.
6449 * event-top.c: Update.
6451 * f-valprint.c: Update.
6452 * fbsd-tdep.c: Update.
6453 * frame-unwind.c: Update.
6455 * gdbtypes.c: Update.
6456 * gnu-v3-abi.c: Update.
6457 * guile/guile-internal.h: Update.
6458 * guile/scm-block.c: Update.
6459 * guile/scm-breakpoint.c: Update.
6460 * guile/scm-cmd.c: Update.
6461 * guile/scm-disasm.c: Update.
6462 * guile/scm-frame.c: Update.
6463 * guile/scm-lazy-string.c: Update.
6464 * guile/scm-math.c: Update.
6465 * guile/scm-param.c: Update.
6466 * guile/scm-ports.c: Update.
6467 * guile/scm-pretty-print.c: Update.
6468 * guile/scm-symbol.c: Update.
6469 * guile/scm-symtab.c: Update.
6470 * guile/scm-type.c: Update.
6471 * guile/scm-value.c: Update.
6472 * i386-linux-tdep.c: Update.
6473 * i386-tdep.c: Update.
6474 * inf-loop.c: Update.
6475 * infcall.c: Update.
6479 * language.c: Update.
6480 * linespec.c: Update.
6481 * linux-fork.c: Update.
6482 * linux-nat.c: Update.
6483 * linux-tdep.c: Update.
6484 * linux-thread-db.c: Update.
6486 * mi/mi-cmd-break.c: Update.
6487 * mi/mi-cmd-stack.c: Update.
6488 * mi/mi-interp.c: Update.
6489 * mi/mi-main.c: Update.
6490 * objc-lang.c: Update.
6491 * p-valprint.c: Update.
6493 * ppc-linux-tdep.c: Update.
6494 * printcmd.c: Update.
6495 * python/py-arch.c: Update.
6496 * python/py-breakpoint.c: Update.
6497 * python/py-cmd.c: Update.
6498 * python/py-finishbreakpoint.c: Update.
6499 * python/py-frame.c: Update.
6500 * python/py-framefilter.c: Update.
6501 * python/py-gdb-readline.c: Update.
6502 * python/py-inferior.c: Update.
6503 * python/py-infthread.c: Update.
6504 * python/py-lazy-string.c: Update.
6505 * python/py-linetable.c: Update.
6506 * python/py-objfile.c: Update.
6507 * python/py-param.c: Update.
6508 * python/py-prettyprint.c: Update.
6509 * python/py-progspace.c: Update.
6510 * python/py-record-btrace.c: Update.
6511 * python/py-record.c: Update.
6512 * python/py-symbol.c: Update.
6513 * python/py-type.c: Update.
6514 * python/py-unwind.c: Update.
6515 * python/py-utils.c: Update.
6516 * python/py-value.c: Update.
6517 * python/python.c: Update.
6518 * record-btrace.c: Update.
6519 * record-full.c: Update.
6520 * remote-fileio.c: Update.
6522 * riscv-tdep.c: Update.
6523 * rs6000-aix-tdep.c: Update.
6524 * rs6000-tdep.c: Update.
6525 * rust-exp.y: Update.
6526 * rust-lang.c: Update.
6527 * s390-tdep.c: Update.
6528 * selftest-arch.c: Update.
6529 * solib-dsbt.c: Update.
6530 * solib-frv.c: Update.
6531 * solib-spu.c: Update.
6532 * solib-svr4.c: Update.
6534 * sparc64-linux-tdep.c: Update.
6536 * symfile-mem.c: Update.
6537 * symmisc.c: Update.
6541 * tracefile-tfile.c: Update.
6542 * tui/tui.c: Update.
6543 * typeprint.c: Update.
6544 * unittests/cli-utils-selftests.c: Update.
6545 * unittests/parse-connection-spec-selftests.c: Update.
6547 * valprint.c: Update.
6550 * windows-nat.c: Update.
6551 * x86-linux-nat.c: Update.
6552 * xml-support.c: Update.
6554 2019-04-08 Tom Tromey <tom@tromey.com>
6556 * xml-support.c: Use C++ exception handling.
6557 * x86-linux-nat.c: Use C++ exception handling.
6558 * windows-nat.c: Use C++ exception handling.
6559 * varobj.c: Use C++ exception handling.
6560 * value.c: Use C++ exception handling.
6561 * valprint.c: Use C++ exception handling.
6562 * valops.c: Use C++ exception handling.
6563 * unittests/parse-connection-spec-selftests.c: Use C++ exception
6565 * unittests/cli-utils-selftests.c: Use C++ exception handling.
6566 * typeprint.c: Use C++ exception handling.
6567 * tui/tui.c: Use C++ exception handling.
6568 * tracefile-tfile.c: Use C++ exception handling.
6569 * top.c: Use C++ exception handling.
6570 * thread.c: Use C++ exception handling.
6571 * target.c: Use C++ exception handling.
6572 * symmisc.c: Use C++ exception handling.
6573 * symfile-mem.c: Use C++ exception handling.
6574 * stack.c: Use C++ exception handling.
6575 * sparc64-linux-tdep.c: Use C++ exception handling.
6576 * solib.c: Use C++ exception handling.
6577 * solib-svr4.c: Use C++ exception handling.
6578 * solib-spu.c: Use C++ exception handling.
6579 * solib-frv.c: Use C++ exception handling.
6580 * solib-dsbt.c: Use C++ exception handling.
6581 * selftest-arch.c: Use C++ exception handling.
6582 * s390-tdep.c: Use C++ exception handling.
6583 * rust-lang.c: Use C++ exception handling.
6584 * rust-exp.y: Use C++ exception handling.
6585 * rs6000-tdep.c: Use C++ exception handling.
6586 * rs6000-aix-tdep.c: Use C++ exception handling.
6587 * riscv-tdep.c: Use C++ exception handling.
6588 * remote.c: Use C++ exception handling.
6589 * remote-fileio.c: Use C++ exception handling.
6590 * record-full.c: Use C++ exception handling.
6591 * record-btrace.c: Use C++ exception handling.
6592 * python/python.c: Use C++ exception handling.
6593 * python/py-value.c: Use C++ exception handling.
6594 * python/py-utils.c: Use C++ exception handling.
6595 * python/py-unwind.c: Use C++ exception handling.
6596 * python/py-type.c: Use C++ exception handling.
6597 * python/py-symbol.c: Use C++ exception handling.
6598 * python/py-record.c: Use C++ exception handling.
6599 * python/py-record-btrace.c: Use C++ exception handling.
6600 * python/py-progspace.c: Use C++ exception handling.
6601 * python/py-prettyprint.c: Use C++ exception handling.
6602 * python/py-param.c: Use C++ exception handling.
6603 * python/py-objfile.c: Use C++ exception handling.
6604 * python/py-linetable.c: Use C++ exception handling.
6605 * python/py-lazy-string.c: Use C++ exception handling.
6606 * python/py-infthread.c: Use C++ exception handling.
6607 * python/py-inferior.c: Use C++ exception handling.
6608 * python/py-gdb-readline.c: Use C++ exception handling.
6609 * python/py-framefilter.c: Use C++ exception handling.
6610 * python/py-frame.c: Use C++ exception handling.
6611 * python/py-finishbreakpoint.c: Use C++ exception handling.
6612 * python/py-cmd.c: Use C++ exception handling.
6613 * python/py-breakpoint.c: Use C++ exception handling.
6614 * python/py-arch.c: Use C++ exception handling.
6615 * printcmd.c: Use C++ exception handling.
6616 * ppc-linux-tdep.c: Use C++ exception handling.
6617 * parse.c: Use C++ exception handling.
6618 * p-valprint.c: Use C++ exception handling.
6619 * objc-lang.c: Use C++ exception handling.
6620 * mi/mi-main.c: Use C++ exception handling.
6621 * mi/mi-interp.c: Use C++ exception handling.
6622 * mi/mi-cmd-stack.c: Use C++ exception handling.
6623 * mi/mi-cmd-break.c: Use C++ exception handling.
6624 * main.c: Use C++ exception handling.
6625 * linux-thread-db.c: Use C++ exception handling.
6626 * linux-tdep.c: Use C++ exception handling.
6627 * linux-nat.c: Use C++ exception handling.
6628 * linux-fork.c: Use C++ exception handling.
6629 * linespec.c: Use C++ exception handling.
6630 * language.c: Use C++ exception handling.
6631 * jit.c: Use C++ exception handling.
6632 * infrun.c: Use C++ exception handling.
6633 * infcmd.c: Use C++ exception handling.
6634 * infcall.c: Use C++ exception handling.
6635 * inf-loop.c: Use C++ exception handling.
6636 * i386-tdep.c: Use C++ exception handling.
6637 * i386-linux-tdep.c: Use C++ exception handling.
6638 * guile/scm-value.c: Use C++ exception handling.
6639 * guile/scm-type.c: Use C++ exception handling.
6640 * guile/scm-symtab.c: Use C++ exception handling.
6641 * guile/scm-symbol.c: Use C++ exception handling.
6642 * guile/scm-pretty-print.c: Use C++ exception handling.
6643 * guile/scm-ports.c: Use C++ exception handling.
6644 * guile/scm-param.c: Use C++ exception handling.
6645 * guile/scm-math.c: Use C++ exception handling.
6646 * guile/scm-lazy-string.c: Use C++ exception handling.
6647 * guile/scm-frame.c: Use C++ exception handling.
6648 * guile/scm-disasm.c: Use C++ exception handling.
6649 * guile/scm-cmd.c: Use C++ exception handling.
6650 * guile/scm-breakpoint.c: Use C++ exception handling.
6651 * guile/scm-block.c: Use C++ exception handling.
6652 * guile/guile-internal.h: Use C++ exception handling.
6653 * gnu-v3-abi.c: Use C++ exception handling.
6654 * gdbtypes.c: Use C++ exception handling.
6655 * frame.c: Use C++ exception handling.
6656 * frame-unwind.c: Use C++ exception handling.
6657 * fbsd-tdep.c: Use C++ exception handling.
6658 * f-valprint.c: Use C++ exception handling.
6659 * exec.c: Use C++ exception handling.
6660 * event-top.c: Use C++ exception handling.
6661 * event-loop.c: Use C++ exception handling.
6662 * eval.c: Use C++ exception handling.
6663 * dwarf2read.c: Use C++ exception handling.
6664 * dwarf2loc.c: Use C++ exception handling.
6665 * dwarf2-frame.c: Use C++ exception handling.
6666 * dwarf2-frame-tailcall.c: Use C++ exception handling.
6667 * dwarf-index-write.c: Use C++ exception handling.
6668 * dwarf-index-cache.c: Use C++ exception handling.
6669 * dtrace-probe.c: Use C++ exception handling.
6670 * disasm-selftests.c: Use C++ exception handling.
6671 * darwin-nat.c: Use C++ exception handling.
6672 * cp-valprint.c: Use C++ exception handling.
6673 * cp-support.c: Use C++ exception handling.
6674 * cp-abi.c: Use C++ exception handling.
6675 * corelow.c: Use C++ exception handling.
6676 * completer.c: Use C++ exception handling.
6677 * compile/compile-object-run.c: Use C++ exception handling.
6678 * compile/compile-object-load.c: Use C++ exception handling.
6679 * compile/compile-cplus-symbols.c: Use C++ exception handling.
6680 * compile/compile-c-symbols.c: Use C++ exception handling.
6681 * common/selftest.c: Use C++ exception handling.
6682 * common/new-op.c: Use C++ exception handling.
6683 * cli/cli-script.c: Use C++ exception handling.
6684 * cli/cli-interp.c: Use C++ exception handling.
6685 * cli/cli-cmds.c: Use C++ exception handling.
6686 * c-varobj.c: Use C++ exception handling.
6687 * btrace.c: Use C++ exception handling.
6688 * breakpoint.c: Use C++ exception handling.
6689 * break-catch-throw.c: Use C++ exception handling.
6690 * arch-utils.c: Use C++ exception handling.
6691 * amd64-tdep.c: Use C++ exception handling.
6692 * ada-valprint.c: Use C++ exception handling.
6693 * ada-typeprint.c: Use C++ exception handling.
6694 * ada-lang.c: Use C++ exception handling.
6695 * aarch64-tdep.c: Use C++ exception handling.
6697 2019-04-08 Tom Tromey <tom@tromey.com>
6699 * xml-support.c (gdb_xml_parser::parse): Update.
6700 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
6701 * value.c (show_convenience): Update.
6702 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
6703 (test_parse_flags_qcs): Update.
6704 * thread.c (thr_try_catch_cmd): Update.
6705 * target.c (target_translate_tls_address): Update.
6706 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
6707 (info_frame_command_core, frame_apply_command_count): Update.
6708 * rust-exp.y (rust_lex_exception_test): Update.
6709 * riscv-tdep.c (riscv_print_one_register_info): Update.
6710 * remote.c (remote_target::enable_btrace): Update.
6711 * record-btrace.c (record_btrace_enable_warn): Update.
6712 * python/py-utils.c (gdbpy_convert_exception): Update.
6713 * printcmd.c (do_one_display, print_variable_and_value): Update.
6714 * mi/mi-main.c (mi_print_exception): Update.
6715 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
6716 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
6717 * linux-nat.c (linux_nat_target::attach): Update.
6718 * linux-fork.c (class scoped_switch_fork_info): Update.
6719 * infrun.c (displaced_step_prepare): Update.
6720 * infcall.c (call_function_by_hand_dummy): Update.
6721 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
6722 * gnu-v3-abi.c (print_one_vtable): Update.
6723 * frame.c (get_prev_frame_always): Update.
6724 * f-valprint.c (info_common_command_for_block): Update.
6725 * exec.c (try_open_exec_file): Update.
6726 * exceptions.c (print_exception, exception_print)
6727 (exception_fprintf, exception_print_same): Update.
6728 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
6729 * dwarf-index-cache.c (index_cache::store)
6730 (index_cache::lookup_gdb_index): Update.
6731 * darwin-nat.c (maybe_cache_shell): Update.
6732 * cp-valprint.c (cp_print_value_fields): Update.
6733 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
6734 (gcc_cplus_symbol_address): Update.
6735 * compile/compile-c-symbols.c (gcc_convert_symbol)
6736 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
6737 * common/selftest.c: Update.
6738 * common/common-exceptions.h (struct gdb_exception) <message>: Now
6740 (exception_try_scope_entry, exception_try_scope_exit): Don't
6742 (struct exception_try_scope): Remove.
6743 (TRY): Don't use exception_try_scope.
6744 (struct gdb_exception): Add constructor, operator=.
6746 (struct gdb_exception_RETURN_MASK_ALL)
6747 (struct gdb_exception_RETURN_MASK_ERROR)
6748 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
6749 (struct gdb_quit_bad_alloc): Update.
6750 * common/common-exceptions.c (exception_none): Change
6752 (struct catcher) <state, exception>: Initialize inline.
6753 <prev>: Remove member.
6754 (current_catcher): Remove.
6755 (catchers): New global.
6756 (exceptions_state_mc_init): Simplify.
6757 (catcher_pop): Remove.
6758 (exceptions_state_mc, exceptions_state_mc_catch): Update.
6759 (try_scope_depth, exception_try_scope_entry)
6760 (exception_try_scope_exit): Remove.
6761 (throw_exception_sjlj): Update.
6762 (exception_messages, exception_messages_size): Remove.
6763 (throw_it): Simplify.
6764 (gdb_exception_sliced_copy): Remove.
6765 (throw_exception_cxx): Update.
6766 * cli/cli-script.c (script_from_file): Update.
6767 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
6769 * ada-valprint.c (ada_val_print): Update.
6770 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
6771 (create_excep_cond_exprs): Update.
6773 2019-04-08 Tom Tromey <tom@tromey.com>
6775 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
6776 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
6777 (TRY, CATCH, END_CATCH): Remove some definitions.
6778 * common/common-exceptions.c: Don't use GDB_XCPT.
6779 (catcher_list_size): Remove.
6780 (throw_exception, throw_it): Simplify.
6782 2019-04-05 Tom Tromey <tom@tromey.com>
6784 Revert the header-sorting patch.
6785 * ft32-tdep.c: Revert.
6786 * frv-tdep.c: Revert.
6787 * frv-linux-tdep.c: Revert.
6789 * frame-unwind.c: Revert.
6790 * frame-base.c: Revert.
6791 * fork-child.c: Revert.
6792 * findvar.c: Revert.
6793 * findcmd.c: Revert.
6794 * filesystem.c: Revert.
6795 * filename-seen-cache.h: Revert.
6796 * filename-seen-cache.c: Revert.
6797 * fbsd-tdep.c: Revert.
6798 * fbsd-nat.h: Revert.
6799 * fbsd-nat.c: Revert.
6800 * f-valprint.c: Revert.
6801 * f-typeprint.c: Revert.
6803 * extension.h: Revert.
6804 * extension.c: Revert.
6805 * extension-priv.h: Revert.
6806 * expprint.c: Revert.
6809 * exceptions.c: Revert.
6810 * event-top.c: Revert.
6811 * event-loop.c: Revert.
6813 * elfread.c: Revert.
6814 * dwarf2read.h: Revert.
6815 * dwarf2read.c: Revert.
6816 * dwarf2loc.c: Revert.
6817 * dwarf2expr.h: Revert.
6818 * dwarf2expr.c: Revert.
6819 * dwarf2-frame.c: Revert.
6820 * dwarf2-frame-tailcall.c: Revert.
6821 * dwarf-index-write.h: Revert.
6822 * dwarf-index-write.c: Revert.
6823 * dwarf-index-common.c: Revert.
6824 * dwarf-index-cache.h: Revert.
6825 * dwarf-index-cache.c: Revert.
6826 * dummy-frame.c: Revert.
6827 * dtrace-probe.c: Revert.
6830 * disasm-selftests.c: Revert.
6831 * dictionary.c: Revert.
6832 * dicos-tdep.c: Revert.
6833 * demangle.c: Revert.
6836 * darwin-nat.h: Revert.
6837 * darwin-nat.c: Revert.
6838 * darwin-nat-info.c: Revert.
6839 * d-valprint.c: Revert.
6840 * d-namespace.c: Revert.
6843 * csky-tdep.c: Revert.
6844 * csky-linux-tdep.c: Revert.
6845 * cris-tdep.c: Revert.
6846 * cris-linux-tdep.c: Revert.
6847 * cp-valprint.c: Revert.
6848 * cp-support.c: Revert.
6849 * cp-namespace.c: Revert.
6851 * corelow.c: Revert.
6852 * corefile.c: Revert.
6853 * continuations.c: Revert.
6854 * completer.h: Revert.
6855 * completer.c: Revert.
6856 * complaints.c: Revert.
6857 * coffread.c: Revert.
6858 * coff-pe-read.c: Revert.
6859 * cli-out.h: Revert.
6860 * cli-out.c: Revert.
6861 * charset.c: Revert.
6862 * c-varobj.c: Revert.
6863 * c-valprint.c: Revert.
6864 * c-typeprint.c: Revert.
6866 * buildsym.c: Revert.
6867 * buildsym-legacy.c: Revert.
6868 * build-id.h: Revert.
6869 * build-id.c: Revert.
6871 * bsd-uthread.c: Revert.
6872 * breakpoint.h: Revert.
6873 * breakpoint.c: Revert.
6874 * break-catch-throw.c: Revert.
6875 * break-catch-syscall.c: Revert.
6876 * break-catch-sig.c: Revert.
6877 * blockframe.c: Revert.
6879 * bfin-tdep.c: Revert.
6880 * bfin-linux-tdep.c: Revert.
6881 * bfd-target.c: Revert.
6883 * ax-general.c: Revert.
6886 * avr-tdep.c: Revert.
6888 * auto-load.c: Revert.
6889 * arm-wince-tdep.c: Revert.
6890 * arm-tdep.c: Revert.
6891 * arm-symbian-tdep.c: Revert.
6892 * arm-pikeos-tdep.c: Revert.
6893 * arm-obsd-tdep.c: Revert.
6894 * arm-nbsd-tdep.c: Revert.
6895 * arm-nbsd-nat.c: Revert.
6896 * arm-linux-tdep.c: Revert.
6897 * arm-linux-nat.c: Revert.
6898 * arm-fbsd-tdep.c: Revert.
6899 * arm-fbsd-nat.c: Revert.
6900 * arm-bsd-tdep.c: Revert.
6901 * arch-utils.c: Revert.
6902 * arc-tdep.c: Revert.
6903 * arc-newlib-tdep.c: Revert.
6904 * annotate.h: Revert.
6905 * annotate.c: Revert.
6906 * amd64-windows-tdep.c: Revert.
6907 * amd64-windows-nat.c: Revert.
6908 * amd64-tdep.c: Revert.
6909 * amd64-sol2-tdep.c: Revert.
6910 * amd64-obsd-tdep.c: Revert.
6911 * amd64-obsd-nat.c: Revert.
6912 * amd64-nbsd-tdep.c: Revert.
6913 * amd64-nbsd-nat.c: Revert.
6914 * amd64-nat.c: Revert.
6915 * amd64-linux-tdep.c: Revert.
6916 * amd64-linux-nat.c: Revert.
6917 * amd64-fbsd-tdep.c: Revert.
6918 * amd64-fbsd-nat.c: Revert.
6919 * amd64-dicos-tdep.c: Revert.
6920 * amd64-darwin-tdep.c: Revert.
6921 * amd64-bsd-nat.c: Revert.
6922 * alpha-tdep.c: Revert.
6923 * alpha-obsd-tdep.c: Revert.
6924 * alpha-nbsd-tdep.c: Revert.
6925 * alpha-mdebug-tdep.c: Revert.
6926 * alpha-linux-tdep.c: Revert.
6927 * alpha-linux-nat.c: Revert.
6928 * alpha-bsd-tdep.c: Revert.
6929 * alpha-bsd-nat.c: Revert.
6930 * aix-thread.c: Revert.
6932 * addrmap.c: Revert.
6933 * ada-varobj.c: Revert.
6934 * ada-valprint.c: Revert.
6935 * ada-typeprint.c: Revert.
6936 * ada-tasks.c: Revert.
6937 * ada-lang.c: Revert.
6938 * aarch64-tdep.c: Revert.
6939 * aarch64-ravenscar-thread.c: Revert.
6940 * aarch64-newlib-tdep.c: Revert.
6941 * aarch64-linux-tdep.c: Revert.
6942 * aarch64-linux-nat.c: Revert.
6943 * aarch64-fbsd-tdep.c: Revert.
6944 * aarch64-fbsd-nat.c: Revert.
6945 * aarch32-linux-nat.c: Revert.
6947 2019-04-05 Tom Tromey <tom@tromey.com>
6949 * ft32-tdep.c: Sort headers.
6950 * frv-tdep.c: Sort headers.
6951 * frv-linux-tdep.c: Sort headers.
6952 * frame.c: Sort headers.
6953 * frame-unwind.c: Sort headers.
6954 * frame-base.c: Sort headers.
6955 * fork-child.c: Sort headers.
6956 * findvar.c: Sort headers.
6957 * findcmd.c: Sort headers.
6958 * filesystem.c: Sort headers.
6959 * filename-seen-cache.h: Sort headers.
6960 * filename-seen-cache.c: Sort headers.
6961 * fbsd-tdep.c: Sort headers.
6962 * fbsd-nat.h: Sort headers.
6963 * fbsd-nat.c: Sort headers.
6964 * f-valprint.c: Sort headers.
6965 * f-typeprint.c: Sort headers.
6966 * f-lang.c: Sort headers.
6967 * extension.h: Sort headers.
6968 * extension.c: Sort headers.
6969 * extension-priv.h: Sort headers.
6970 * expprint.c: Sort headers.
6971 * exec.h: Sort headers.
6972 * exec.c: Sort headers.
6973 * exceptions.c: Sort headers.
6974 * event-top.c: Sort headers.
6975 * event-loop.c: Sort headers.
6976 * eval.c: Sort headers.
6977 * elfread.c: Sort headers.
6978 * dwarf2read.h: Sort headers.
6979 * dwarf2read.c: Sort headers.
6980 * dwarf2loc.c: Sort headers.
6981 * dwarf2expr.h: Sort headers.
6982 * dwarf2expr.c: Sort headers.
6983 * dwarf2-frame.c: Sort headers.
6984 * dwarf2-frame-tailcall.c: Sort headers.
6985 * dwarf-index-write.h: Sort headers.
6986 * dwarf-index-write.c: Sort headers.
6987 * dwarf-index-common.c: Sort headers.
6988 * dwarf-index-cache.h: Sort headers.
6989 * dwarf-index-cache.c: Sort headers.
6990 * dummy-frame.c: Sort headers.
6991 * dtrace-probe.c: Sort headers.
6992 * disasm.h: Sort headers.
6993 * disasm.c: Sort headers.
6994 * disasm-selftests.c: Sort headers.
6995 * dictionary.c: Sort headers.
6996 * dicos-tdep.c: Sort headers.
6997 * demangle.c: Sort headers.
6998 * dcache.h: Sort headers.
6999 * dcache.c: Sort headers.
7000 * darwin-nat.h: Sort headers.
7001 * darwin-nat.c: Sort headers.
7002 * darwin-nat-info.c: Sort headers.
7003 * d-valprint.c: Sort headers.
7004 * d-namespace.c: Sort headers.
7005 * d-lang.c: Sort headers.
7006 * ctf.c: Sort headers.
7007 * csky-tdep.c: Sort headers.
7008 * csky-linux-tdep.c: Sort headers.
7009 * cris-tdep.c: Sort headers.
7010 * cris-linux-tdep.c: Sort headers.
7011 * cp-valprint.c: Sort headers.
7012 * cp-support.c: Sort headers.
7013 * cp-namespace.c: Sort headers.
7014 * cp-abi.c: Sort headers.
7015 * corelow.c: Sort headers.
7016 * corefile.c: Sort headers.
7017 * continuations.c: Sort headers.
7018 * completer.h: Sort headers.
7019 * completer.c: Sort headers.
7020 * complaints.c: Sort headers.
7021 * coffread.c: Sort headers.
7022 * coff-pe-read.c: Sort headers.
7023 * cli-out.h: Sort headers.
7024 * cli-out.c: Sort headers.
7025 * charset.c: Sort headers.
7026 * c-varobj.c: Sort headers.
7027 * c-valprint.c: Sort headers.
7028 * c-typeprint.c: Sort headers.
7029 * c-lang.c: Sort headers.
7030 * buildsym.c: Sort headers.
7031 * buildsym-legacy.c: Sort headers.
7032 * build-id.h: Sort headers.
7033 * build-id.c: Sort headers.
7034 * btrace.c: Sort headers.
7035 * bsd-uthread.c: Sort headers.
7036 * breakpoint.h: Sort headers.
7037 * breakpoint.c: Sort headers.
7038 * break-catch-throw.c: Sort headers.
7039 * break-catch-syscall.c: Sort headers.
7040 * break-catch-sig.c: Sort headers.
7041 * blockframe.c: Sort headers.
7042 * block.c: Sort headers.
7043 * bfin-tdep.c: Sort headers.
7044 * bfin-linux-tdep.c: Sort headers.
7045 * bfd-target.c: Sort headers.
7046 * bcache.c: Sort headers.
7047 * ax-general.c: Sort headers.
7048 * ax-gdb.h: Sort headers.
7049 * ax-gdb.c: Sort headers.
7050 * avr-tdep.c: Sort headers.
7051 * auxv.c: Sort headers.
7052 * auto-load.c: Sort headers.
7053 * arm-wince-tdep.c: Sort headers.
7054 * arm-tdep.c: Sort headers.
7055 * arm-symbian-tdep.c: Sort headers.
7056 * arm-pikeos-tdep.c: Sort headers.
7057 * arm-obsd-tdep.c: Sort headers.
7058 * arm-nbsd-tdep.c: Sort headers.
7059 * arm-nbsd-nat.c: Sort headers.
7060 * arm-linux-tdep.c: Sort headers.
7061 * arm-linux-nat.c: Sort headers.
7062 * arm-fbsd-tdep.c: Sort headers.
7063 * arm-fbsd-nat.c: Sort headers.
7064 * arm-bsd-tdep.c: Sort headers.
7065 * arch-utils.c: Sort headers.
7066 * arc-tdep.c: Sort headers.
7067 * arc-newlib-tdep.c: Sort headers.
7068 * annotate.h: Sort headers.
7069 * annotate.c: Sort headers.
7070 * amd64-windows-tdep.c: Sort headers.
7071 * amd64-windows-nat.c: Sort headers.
7072 * amd64-tdep.c: Sort headers.
7073 * amd64-sol2-tdep.c: Sort headers.
7074 * amd64-obsd-tdep.c: Sort headers.
7075 * amd64-obsd-nat.c: Sort headers.
7076 * amd64-nbsd-tdep.c: Sort headers.
7077 * amd64-nbsd-nat.c: Sort headers.
7078 * amd64-nat.c: Sort headers.
7079 * amd64-linux-tdep.c: Sort headers.
7080 * amd64-linux-nat.c: Sort headers.
7081 * amd64-fbsd-tdep.c: Sort headers.
7082 * amd64-fbsd-nat.c: Sort headers.
7083 * amd64-dicos-tdep.c: Sort headers.
7084 * amd64-darwin-tdep.c: Sort headers.
7085 * amd64-bsd-nat.c: Sort headers.
7086 * alpha-tdep.c: Sort headers.
7087 * alpha-obsd-tdep.c: Sort headers.
7088 * alpha-nbsd-tdep.c: Sort headers.
7089 * alpha-mdebug-tdep.c: Sort headers.
7090 * alpha-linux-tdep.c: Sort headers.
7091 * alpha-linux-nat.c: Sort headers.
7092 * alpha-bsd-tdep.c: Sort headers.
7093 * alpha-bsd-nat.c: Sort headers.
7094 * aix-thread.c: Sort headers.
7095 * agent.c: Sort headers.
7096 * addrmap.c: Sort headers.
7097 * ada-varobj.c: Sort headers.
7098 * ada-valprint.c: Sort headers.
7099 * ada-typeprint.c: Sort headers.
7100 * ada-tasks.c: Sort headers.
7101 * ada-lang.c: Sort headers.
7102 * aarch64-tdep.c: Sort headers.
7103 * aarch64-ravenscar-thread.c: Sort headers.
7104 * aarch64-newlib-tdep.c: Sort headers.
7105 * aarch64-linux-tdep.c: Sort headers.
7106 * aarch64-linux-nat.c: Sort headers.
7107 * aarch64-fbsd-tdep.c: Sort headers.
7108 * aarch64-fbsd-nat.c: Sort headers.
7109 * aarch32-linux-nat.c: Sort headers.
7111 2019-04-04 Tom Tromey <tom@tromey.com>
7113 * varobj.c (varobj_create): Update.
7114 * rust-exp.y (struct rust_parser) <update_innermost_block,
7115 lookup_symbol>: New methods.
7116 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
7118 (rust_parser::rust_lookup_type)
7119 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
7120 * printcmd.c (display_command, do_one_display): Update.
7121 * parser-defs.h (struct parser_state) <parser_state>: Add
7122 "tracker" parameter.
7123 (block_tracker): New member.
7124 (class innermost_block_tracker) <innermost_block_tracker>: Add
7126 <reset>: Remove method.
7127 (innermost_block): Don't declare.
7128 (null_post_parser): Update.
7129 * parse.c (innermost_block): Remove global.
7130 (write_dollar_variable): Update.
7131 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
7132 Remove "tracker_types" parameter.
7133 (parse_expression): Add "tracker" parameter.
7134 (parse_expression_for_completion): Update.
7135 (null_post_parser): Add "tracker" parameter.
7136 * p-exp.y: Update rules.
7137 * m2-exp.y: Update rules.
7138 * language.h (struct language_defn) <la_post_parser>: Add
7139 "tracker" parameter.
7140 * go-exp.y: Update rules.
7141 * f-exp.y: Update rules.
7142 * expression.h (parse_expression, parse_exp_1): Add "tracker"
7144 * d-exp.y: Update rules.
7145 * c-exp.y: Update rules.
7146 * breakpoint.c (set_breakpoint_condition): Create an
7147 innermost_block_tracker.
7148 (watch_command_1): Likewise.
7149 * ada-lang.c (resolve): Add "tracker" parameter.
7150 (resolve_subexp): Likewise.
7151 * ada-exp.y (write_var_from_sym): Update.
7153 2019-04-04 Tom Tromey <tom@tromey.com>
7155 * type-stack.h: New file.
7156 * type-stack.c: New file.
7157 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
7159 (insert_into_type_stack, insert_type, push_type, push_type_int)
7160 (insert_type_address_space, pop_type, pop_type_int)
7161 (pop_typelist, pop_type_stack, append_type_stack)
7162 (push_type_stack, get_type_stack, push_typelist)
7163 (follow_type_instance_flags, follow_types): Don't declare.
7164 * parse.c (type_stack): Remove global.
7165 (parse_exp_in_context): Update.
7166 (insert_into_type_stack, insert_type, push_type, push_type_int)
7167 (insert_type_address_space, pop_type, pop_type_int)
7168 (pop_typelist, pop_type_stack, append_type_stack)
7169 (push_type_stack, get_type_stack, push_typelist)
7170 (follow_type_instance_flags, follow_types): Remove (moved to
7172 * f-exp.y (type_stack): New global.
7174 (push_kind_type, f_parse): Update.
7175 * d-exp.y (type_stack): New global.
7178 * c-exp.y (struct c_parse_state) <type_stack>: New member.
7180 * Makefile.in (COMMON_SFILES): Add type-stack.c.
7181 (HFILES_NO_SRCDIR): Add type-stack.h.
7183 2019-04-04 Tom Tromey <tom@tromey.com>
7185 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
7186 (rust_parser::convert_ast_to_expression, rust_parse)
7187 (rust_lex_test_completion, rust_lex_tests): Update.
7188 * parser-defs.h (struct expr_completion_state): New.
7189 (struct parser_state) <parser_state>: Add completion parameter.
7190 <mark_struct_expression, mark_completion_tag>: New methods.
7191 <parse_completion, m_completion_state>: New members.
7192 (prefixify_expression, null_post_parser): Update.
7193 (mark_struct_expression, mark_completion_tag): Don't declare.
7194 * parse.c (parse_completion, expout_last_struct)
7195 (expout_tag_completion_type, expout_completion_name): Remove
7197 (parser_state::mark_struct_expression)
7198 (parser_state::mark_completion_tag): Now methods.
7199 (prefixify_expression): Add last_struct parameter.
7200 (prefixify_subexp): Likewise.
7201 (parse_exp_1): Update.
7202 (parse_exp_in_context): Add cstate parameter. Update.
7203 (parse_expression_for_completion): Create an
7204 expr_completion_state.
7205 (null_post_parser): Add "completion" parameter.
7206 * p-exp.y: Update rules.
7208 * language.h (struct language_defn) <la_post_parser>: Add
7209 "completing" parameter.
7210 * go-exp.y: Update rules.
7211 (lex_one_token): Update.
7212 * expression.h (parse_completion): Don't declare.
7213 * d-exp.y: Update rules.
7214 (lex_one_token): Update rules.
7215 * c-exp.y: Update rules.
7216 (lex_one_token): Update.
7217 * ada-lang.c (resolve): Add "parse_completion" parameter.
7218 (resolve_subexp): Likewise.
7219 (ada_resolve_function): Likewise.
7221 2019-04-04 Tom Tromey <tom@tromey.com>
7223 * parser-defs.h (struct parser_state) <start_arglist,
7224 end_arglist>: New methods.
7225 <arglist_len, m_funcall_chain>: New members.
7226 (arglist_len, start_arglist, end_arglist): Don't declare.
7227 * parse.c (arglist_len, funcall_chain): Remove global.
7228 (start_arglist, end_arglist): Remove functions.
7229 (parse_exp_in_context): Update.
7230 * p-exp.y: Update rules.
7231 * m2-exp.y: Update rules.
7232 * go-exp.y: Update rules.
7233 * f-exp.y: Update rules.
7234 * d-exp.y: Update rules.
7235 * c-exp.y: Update rules.
7237 2019-04-04 Tom Tromey <tom@tromey.com>
7239 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
7240 lex_operator, push_back>: New methods.
7242 (rust_parser::lex_hex, lex_escape): Rename and update.
7243 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
7244 (rust_parser::lex_operator): Rename and update.
7245 (rust_parser::lex_number, rustyylex, rustyyerror)
7246 (rust_lex_test_init, rust_lex_test_sequence)
7247 (rust_lex_test_push_back, rust_lex_tests): Update.
7248 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
7250 <lexptr, prev_lexptr>: New members.
7251 (lexptr, prev_lexptr): Don't declare.
7252 * parse.c (lexptr, prev_lexptr): Remove globals.
7253 (parse_exp_in_context): Update.
7254 * p-exp.y (yylex, yyerror): Update.
7255 * m2-exp.y (parse_number, yylex, yyerror): Update.
7256 * go-exp.y (lex_one_token, yyerror): Update.
7257 * f-exp.y (match_string_literal, yylex, yyerror): Update.
7258 * d-exp.y (lex_one_token, yyerror): Update.
7259 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
7260 (lex_one_token, yyerror): Update.
7261 * ada-lex.l (YY_INPUT): Update.
7262 (rewind_to_char): Update.
7263 * ada-exp.y (yyerror): Update.
7265 2019-04-04 Tom Tromey <tom@tromey.com>
7267 * rust-exp.y (rustyylex, rust_lex_tests): Update.
7268 * parser-defs.h (struct parser_state) <parser_state>: Add new
7270 <comma_terminates>: New member.
7271 (comma_terminates): Don't declare global.
7272 * parse.c (comma_terminates): Remove global.
7273 (parse_exp_in_context): Update.
7274 * p-exp.y (yylex): Update.
7275 * m2-exp.y (yylex): Update.
7276 * go-exp.y (lex_one_token): Update.
7277 * f-exp.y (yylex): Update.
7278 * d-exp.y (lex_one_token): Update.
7279 * c-exp.y (lex_one_token): Update.
7280 * ada-lex.l: Update.
7282 2019-04-04 Tom Tromey <tom@tromey.com>
7284 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
7285 (rustyylex, rust_lex_test_init, rust_lex_test_one)
7286 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
7287 * parser-defs.h (paren_depth): Don't declare.
7288 * parse.c (paren_depth): Remove global.
7289 (parse_exp_in_context): Update.
7290 * p-exp.y (paren_depth): New global.
7291 (pascal_parse): Initialize it.
7292 * m2-exp.y (paren_depth): New global.
7293 (m2_parse): Initialize it.
7294 * go-exp.y (paren_depth): New global.
7295 (go_parse): Initialize it.
7296 * f-exp.y (paren_depth): New global.
7297 (f_parse): Initialize it.
7298 * d-exp.y (paren_depth): New global.
7299 (d_parse): Initialize it.
7300 * c-exp.y (paren_depth): New global.
7301 (c_parse): Initialize it.
7302 * ada-lex.l (paren_depth): New global.
7303 (lexer_init): Initialize it.
7305 2019-04-04 Tom Tromey <tom@tromey.com>
7307 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
7308 (rust_parser::convert_ast_to_type)
7309 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
7310 * parser-defs.h (struct parser_state) <parser_state>: Add
7311 parameters. Initialize new members.
7312 <expression_context_block, expression_context_pc>: New members.
7313 * parse.c (expression_context_block, expression_context_pc):
7315 (parse_exp_in_context): Update.
7316 * p-exp.y: Update all rules.
7318 * m2-exp.y: Update all rules.
7320 * go-exp.y (yylex): Update.
7321 * f-exp.y (yylex): Update.
7322 * d-exp.y: Update all rules.
7324 * c-exp.y: Update all rules.
7325 (lex_one_token, classify_name, yylex, c_parse): Update.
7326 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
7328 2019-04-04 Tom Tromey <tom@tromey.com>
7330 * gdbarch.h, gdbarch.c: Rebuild.
7331 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
7333 (struct stap_parse_info): Replace "parser_state" with
7335 * parser-defs.h (struct expr_builder): Rename from "parser_state".
7336 (parser_state): New class.
7337 * parse.c (expr_builder): Rename.
7338 (expr_builder::release): Rename.
7339 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
7340 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
7341 (write_exp_elt_longcst, write_exp_elt_floatcst)
7342 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
7343 (write_exp_string_vector, write_exp_bitstring)
7344 (write_exp_msymbol, mark_struct_expression)
7345 (write_dollar_variable)
7346 (insert_type_address_space, increase_expout_size): Replace
7347 "parser_state" with "expr_builder".
7348 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
7349 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
7350 "parser_state" with "expr_builder".
7352 2019-04-04 Tom Tromey <tom@tromey.com>
7354 * rust-exp.y: Replace "parse_language" with method call.
7356 (yylex): Replace "parse_language" with method call.
7358 (yylex): Replace "parse_language" with method call.
7359 * go-exp.y (classify_name): Replace "parse_language" with method
7361 * f-exp.y (yylex): Replace "parse_language" with method call.
7362 * d-exp.y (lex_one_token): Replace "parse_language" with method
7365 (lex_one_token, classify_name, yylex): Replace "parse_language"
7367 * ada-exp.y (find_primitive_type, type_char)
7368 (type_system_address): Replace "parse_language" with method call.
7370 2019-04-04 Tom Tromey <tom@tromey.com>
7372 * rust-exp.y: Replace "parse_gdbarch" with method call.
7373 * parse.c (write_dollar_variable, insert_type_address_space):
7374 Replace "parse_gdbarch" with method call.
7375 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
7377 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
7379 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
7380 "parse_gdbarch" with method call.
7381 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
7383 * f-exp.y (parse_type, parse_f_type, yylex): Replace
7384 "parse_gdbarch" with method call.
7385 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
7386 "parse_gdbarch" with method call.
7387 * c-exp.y (parse_type, parse_number, classify_name): Replace
7388 "parse_gdbarch" with method call.
7389 * ada-lex.l: Replace "parse_gdbarch" with method call.
7390 * ada-exp.y (parse_type, find_primitive_type, type_char)
7391 (type_system_address): Replace "parse_gdbarch" with method call.
7393 2019-04-04 Tom Tromey <tom@tromey.com>
7395 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
7396 * stap-probe.c (stap_parse_argument): Update.
7397 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
7398 initial_size parameter.
7399 * rust-exp.y (rust_lex_tests): Update.
7400 * parse.c (parser_state): Update.
7401 (parse_exp_in_context): Update.
7402 * parser-defs.h (struct parser_state) <parser_state>: Remove
7403 "initial_size" parameter.
7405 2019-04-04 Tom Tromey <tom@tromey.com>
7407 * parser-defs.h (increase_expout_size): Don't declare.
7408 * parse.c (increase_expout_size): Now static.
7410 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
7412 * gnu-nat.c (gnu_nat_target::wait): Fix
7413 target_waitstatus_to_string call.
7415 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
7417 * eval.c (evaluate_subexp_standard): Handle internal functions
7418 during Fortran function call handling.
7420 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
7422 * NEWS: Mention new internal functions.
7423 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
7424 (read_base_type): Use dwarf2_init_complex_target_type.
7425 * value.c (creal_internal_fn): New function.
7426 (cimag_internal_fn): New function.
7427 (_initialize_values): Register new internal functions.
7429 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7431 * infrun.c (stop_all_threads): If debug_infrun, always
7432 trace the wait status after wait_one, using
7433 target_waitstatus_to_string and target_pid_to_str.
7434 (handle_inferior_event): Replace various trace of
7435 wait status kind by a single trace.
7436 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
7437 wait status kind image by target_waitstatus_to_string.
7438 * target/waitstatus.c (target_waitstatus_to_string): Fix
7441 2019-04-01 Tom Tromey <tromey@adacore.com>
7444 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
7446 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
7447 Pedro Alves <palves@redhat.com>
7449 * top.c (quit_force): Call 'finalize_values'.
7450 * value.c (finalize_values): New function.
7451 * value.h (finalize_values): Declare.
7453 2019-03-30 Eli Zaretskii <eliz@gnu.org>
7455 * NEWS: Announce $_gdb_major and $_gdb_minor.
7457 * top.c (init_gdb_version_vars): New function.
7458 (gdb_init): Call init_gdb_version_vars.
7460 2019-03-29 Tom Tromey <tromey@adacore.com>
7462 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
7463 help text. Remove dead code.
7465 2019-03-29 Keith Seitz <keiths@redhat.com>
7467 From Siddhesh Poyarekar:
7468 * f-lang.h (f77_get_upperbound): Return LONGEST.
7469 (f77_get_lowerbound): Likewise.
7470 * f-typeprint.c (f_type_print_varspec_suffix): Expand
7471 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
7473 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
7474 plongest to format print it.
7475 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
7476 (f77_get_upperbound): Likewise.
7477 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
7478 LOWER_BOUND to LONGEST.
7479 (f77_create_arrayprint_offset_tbl): Likewise.
7481 2019-03-29 Keith Seitz <keiths@redhat.com>
7483 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7484 %s/pulongest for TYPE_LENGTH instead of %d in format
7486 * ada-typerint.c (ada_print_type): Likewise.
7487 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
7488 * compile/compile-c-support.c (generate_register_struct): Likewise.
7489 * gdbtypes.c (recursive_dump_type): Likewise.
7490 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
7491 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
7492 instead of %d in format strings.
7493 * riscv-tdep.c (riscv_type_alignment): Cast second argument
7494 to std::min to ULONGEST.
7495 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
7496 instead of %d in format strings.
7497 * tracepoint.c (info_scope_command): Likewise.
7498 * typeprint.c (print_offset_data::update)
7499 (print_offset_data::finish): Likewise.
7500 * xtensa-tdep.c (xtensa_store_return_value)
7501 (xtensa_push_dummy_call): Likewise.
7503 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
7505 * windows-nat.c (display_selector): Fixed format specifications
7508 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7510 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
7512 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
7514 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
7515 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
7516 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
7517 (nios2_linux_init_abi): Install it.
7519 2019-03-28 Alan Hayward <alan.hayward@arm.com>
7521 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
7523 2019-03-28 Alan Hayward <alan.hayward@arm.com>
7525 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
7527 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7528 Tom Tromey <tromey@adacore.com>
7530 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
7532 2019-03-26 Joel Brobecker <brobecker@adacore.com>
7534 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
7535 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
7536 method to compute the bounds of range types. Also print "[evaluated]"
7537 if the bounds' values come from a dynamic evaluation.
7539 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
7541 * cp-valprint.c (cp_print_value_fields): Don't print trailing
7542 whitespace when pretty printing is on.
7544 2019-03-26 Alan Hayward <alan.hayward@arm.com>
7546 * ppc-linux-nat.c: Add include.
7548 2019-03-26 Alan Hayward <alan.hayward@arm.com>
7550 * NEWS: Mention AArch64 Pointer Authentication.
7552 2019-03-26 Alan Hayward <alan.hayward@arm.com>
7554 * arm-linux-nat.c: Add include.
7556 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
7558 * source-cache.c (source_cache::get_source_lines): Re-read
7559 fullname after calling open_source_file.
7561 2019-03-25 John Baldwin <jhb@FreeBSD.org>
7563 * NEWS: Mention TLS support for FreeBSD.
7565 2019-03-25 Tom Tromey <tromey@adacore.com>
7567 * minsyms.c (BUNCH_SIZE): Update comment.
7568 (~minimal_symbol_reader): Remove old comment.
7569 (compact_minimal_symbols): Update comment.
7570 (minimal_symbol_reader::install): Remove old comment. Update
7573 2019-03-25 Alan Hayward <alan.hayward@arm.com>
7575 * s390-linux-nat.c: Add include.
7577 2019-03-25 Alan Hayward <alan.hayward@arm.com>
7579 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
7580 Call linux_get_hwcap.
7581 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
7583 (aarch64_linux_get_hwcap): Remove function.
7584 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
7586 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
7588 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
7589 * linux-tdep.c (linux_get_hwcap): Add function.
7590 (linux_get_hwcap2): Likewise.
7591 * linux-tdep.h (linux_get_hwcap): Add declaration.
7592 (linux_get_hwcap2): Likewise.
7593 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
7594 (ppc_linux_get_hwcap2): Likewise.
7595 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
7597 (ppc_linux_nat_target::insert_watchpoint): Likewise.
7598 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
7599 (ppc_linux_nat_target::read_description): Likewise.
7600 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
7601 * s390-linux-nat.c: Likewise.
7602 * s390-linux-tdep.c (s390_core_read_description): Likewise.
7604 2019-03-24 Tom Tromey <tom@tromey.com>
7606 * ada-lang.c (standard_lookup): Simplify initialization.
7607 (ada_lookup_symbol_nonlocal): Simplify return.
7608 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
7609 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
7610 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
7611 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
7613 * solib.c (solib_global_lookup): Simplify.
7614 * symtab.c (null_block_symbol): Remove.
7615 (symbol_cache_lookup): Simplify returns.
7616 (lookup_language_this): Simplify returns.
7617 (lookup_symbol_aux): Simplify return.
7618 (lookup_local_symbol): Simplify returns.
7619 (lookup_global_symbol_from_objfile): Simplify return.
7620 (lookup_symbol_in_objfile_symtabs)
7621 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
7622 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
7623 (lookup_static_symbol, lookup_global_symbol): Simplify return.
7624 * cp-namespace.c (cp_lookup_bare_symbol)
7625 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
7626 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
7627 (cp_lookup_nested_symbol): Don't use null_block_symbol.
7628 (cp_lookup_symbol_via_imports): Simplify initialization.
7629 (find_symbol_in_baseclass): Likewise.
7630 * symtab.h (null_block_symbol): Remove.
7631 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
7632 (d_lookup_nested_symbol, d_lookup_symbol_imports)
7633 (d_lookup_symbol_module): Likewise.
7634 (find_symbol_in_baseclass): Simplify initialization.
7636 2019-03-24 Tom Tromey <tom@tromey.com>
7638 * expression.h: Don't include symtab.h.
7639 (struct block): Forward declare.
7641 2019-03-24 Tom Tromey <tom@tromey.com>
7643 * c-exp.y (typebase): Remove casts.
7644 * gdbtypes.c (lookup_unsigned_typename, )
7645 (lookup_signed_typename): Remove cast.
7646 * eval.c (parse_to_comma_and_eval): Remove cast.
7647 * parse.c (write_dollar_variable): Remove cast.
7648 * block.h (struct block) <superblock>: Now const.
7649 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
7650 * psymtab.c (psym_map_matching_symbols): Make "block" const.
7651 (map_block): Make "block" const.
7652 * symfile.h (struct quick_symbol_functions)
7653 <map_matching_symbols>: Constify block argument to "callback".
7654 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
7656 (find_pc_sect_compunit_symtab): Make "b" const.
7657 (find_symbol_at_address): Likewise.
7658 (search_symbols): Likewise.
7659 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
7660 (dw2_debug_names_lookup_symbol): Likewise.
7661 (dw2_map_matching_symbols): Update.
7662 * p-valprint.c (pascal_val_print): Remove "block".
7663 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
7664 (aux_add_nonlocal_symbols): Make "block" const.
7665 (resolve_subexp): Remove cast.
7666 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
7668 (iterate_over_file_blocks): Likewise.
7669 * f-exp.y (%union) <bval>: Remove.
7670 * coffread.c (patch_opaque_types): Make "b" const.
7671 * spu-tdep.c (spu_catch_start): Make "block" const.
7672 * c-valprint.c (print_unpacked_pointer): Remove "block".
7673 * symmisc.c (dump_symtab_1): Make "b" const.
7674 (block_depth): Make "block" const.
7675 * d-exp.y (%union) <bval>: Remove.
7676 * cp-support.h (cp_lookup_rtti_type): Update.
7677 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
7678 * psymtab.c (psym_lookup_symbol): Make "block" const.
7679 (maintenance_check_psymtabs): Make "b" const.
7680 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
7681 (enumerate_locals, enumerate_args): Update.
7682 * python/py-symtab.c (stpy_global_block): Make "block" const.
7683 (stpy_static_block): Likewise.
7684 * inline-frame.c (block_starting_point_at): Make "new_block"
7686 * block.c (find_block_in_blockvector): Make return type const.
7687 (blockvector_for_pc_sect): Make "b" const.
7688 (find_block_in_blockvector): Make "b" const.
7690 2019-03-23 Tom Tromey <tom@tromey.com>
7692 * varobj.c (varobj_create): Update.
7693 * symfile.c (clear_symtab_users): Don't reset innermost_block.
7694 * printcmd.c (display_command, do_one_display): Don't reset
7696 * parser-defs.h (enum innermost_block_tracker_type): Move to
7698 (innermost_block): Update comment.
7699 * parse.c (parse_exp_1): Add tracker_types parameter.
7700 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
7701 tracker_types parameter. Reset innermost_block.
7702 (parse_exp_in_context): Remove.
7703 (parse_expression_for_completion): Update.
7704 * objfiles.c (~objfile): Don't reset expression_context_block or
7706 * expression.h (enum innermost_block_tracker_type): Move from
7708 (parse_exp_1): Add tracker_types parameter.
7709 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
7710 reset innermost_block.
7712 2019-03-23 Tom Tromey <tom@tromey.com>
7714 * objfiles.h: Include bcache.h.
7716 2019-03-23 Tom Tromey <tom@tromey.com>
7718 * linespec.c (get_current_search_block): Use
7719 scoped_restore_current_language.
7720 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
7722 2019-03-22 Alan Hayward <alan.hayward@arm.com>
7723 Jiong Wang <jiong.wang@arm.com>
7725 * aarch64-linux-tdep.c
7726 (aarch64_linux_iterate_over_regset_sections): Check for pauth
7728 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
7730 2019-03-22 Alan Hayward <alan.hayward@arm.com>
7731 Jiong Wang <jiong.wang@arm.com>
7733 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
7735 (aarch64_analyze_prologue_test): Add PACIASP test.
7736 (aarch64_prologue_prev_register): Unmask PC value.
7738 2019-03-22 Alan Hayward <alan.hayward@arm.com>
7739 Jiong Wang <jiong.wang@arm.com>
7741 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
7742 (aarch64_dwarf2_prev_register): Unmask PC value.
7743 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
7744 (aarch64_execute_dwarf_cfa_vendor_op): Check for
7745 DW_CFA_AARCH64_negate_ra_state.
7746 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
7748 2019-03-22 Alan Hayward <alan.hayward@arm.com>
7749 Jiong Wang <jiong.wang@arm.com>
7751 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
7753 (aarch64_pseudo_register_name): Likewise.
7754 (aarch64_pseudo_register_type): Likewise.
7755 (aarch64_pseudo_register_reggroup_p): Likewise.
7756 (aarch64_gdbarch_init): Add pauth registers.
7757 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
7758 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
7759 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
7760 (struct gdbarch_tdep): Add regnum for ra_state.
7762 2019-03-22 Alan Hayward <alan.hayward@arm.com>
7763 Jiong Wang <jiong.wang@arm.com>
7765 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
7767 2019-03-22 Alan Hayward <alan.hayward@arm.com>
7768 Jiong Wang <jiong.wang@arm.com>
7770 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
7772 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
7773 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
7774 (aarch64_gdbarch_init): Add puth registers.
7775 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
7776 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
7777 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
7779 2019-03-22 Alan Hayward <alan.hayward@arm.com>
7780 Jiong Wang <jiong.wang@arm.com>
7782 * aarch64-linux-nat.c
7783 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
7784 * aarch64-linux-tdep.c
7785 (aarch64_linux_core_read_description): Likewise.
7786 (aarch64_linux_get_hwcap): New function.
7787 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
7788 (aarch64_linux_get_hwcap): New declaration.
7790 2019-03-22 Alan Hayward <alan.hayward@arm.com>
7791 Jiong Wang <jiong.wang@arm.com>
7793 * aarch64-linux-nat.c
7794 (aarch64_linux_nat_target::read_description): Add pauth param.
7795 * aarch64-linux-tdep.c
7796 (aarch64_linux_core_read_description): Likewise.
7797 * aarch64-tdep.c (struct target_desc): Add in pauth.
7798 (aarch64_read_description): Add pauth param.
7799 (aarch64_gdbarch_init): Likewise.
7800 * aarch64-tdep.h (aarch64_read_description): Likewise.
7801 * arch/aarch64.c (aarch64_create_target_description): Likewise.
7802 * arch/aarch64.h (aarch64_create_target_description): Likewise.
7803 * features/Makefile: Add new files.
7804 * features/aarch64-pauth.c: New file.
7805 * features/aarch64-pauth.xml: New file.
7807 2019-03-20 Tom Tromey <tromey@adacore.com>
7809 * infrun.c (handle_inferior_event): Rename from
7810 handle_inferior_event_1. Create a scoped_value_mark.
7811 (handle_inferior_event): Remove.
7813 2019-03-19 Tom Tromey <tromey@adacore.com>
7815 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
7816 * infrun.h (print_stop_event): Add "displays" parameter.
7817 * infrun.c (print_stop_event): Add "displays" parameter.
7819 2019-03-19 Pedro Alves <palves@redhat.com>
7821 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
7822 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
7823 to -1. Fix TABs vs spaces.
7824 (tui_ui_out::tui_ui_out): Don't initialize fields here.
7825 * tui/tui-out.h (tui_ui_out) Add intro comments.
7826 <m_line, m_start_of_line>: In-class initialize, and add describing
7829 2019-03-18 Alan Hayward <alan.hayward@arm.com>
7831 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
7833 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
7835 2019-03-18 Pedro Alves <palves@redhat.com>
7836 Eli Zaretskii <eliz@gnu.org>
7838 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
7839 m_line and m_start_of_line.
7841 2019-03-18 Eli Zaretskii <eliz@gnu.org>
7843 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
7844 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
7845 it returns a newline. This fixes a regression in TU mode, whereby
7846 the next line is output on the same screen line as the user input.
7848 2019-03-18 Tom Tromey <tromey@adacore.com>
7850 * minsyms.c (minimal_symbol_reader::install): Remove call to
7853 2019-03-18 Pedro Alves <palves@redhat.com>
7855 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
7857 (apply_style): New, factored out from ...
7858 (apply_ansi_escape): ... this. Handle reverse video mode.
7859 (tui_set_reverse_mode): New function.
7860 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
7861 * tui/tui-winsource.c (tui_show_source_line): Use
7862 tui_set_reverse_mode instead of setting A_STANDOUT.
7863 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
7866 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
7868 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
7871 2019-03-18 Tom Tromey <tromey@adacore.com>
7873 * ada-lang.c (empty_array): Add "high" parameter.
7874 (ada_evaluate_subexp): Update.
7876 2019-03-17 Sergei Trofimovich <siarheit@google.com>
7878 * unittests/string_view-selftests.c: Define
7879 _initialize_string_view_selftests unconditionally.
7881 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
7884 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
7886 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
7889 * windows-nat.c (display_selector): Fix format specifiers.
7891 2019-03-17 Eli Zaretskii <eliz@gnu.org>
7893 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
7894 tui_refill_source_window instead of tui_refresh_win, to update the
7895 current execution line. This fixes redisplay of the current line
7896 when stepping through the code with "next" or "step".
7898 2019-03-16 Eli Zaretskii <eliz@gnu.org>
7900 * source-cache.c (source_cache::get_source_lines): Call
7901 find_source_lines to initialize s->nlines. This fixes vertical
7902 scrolling of TUI source window when the DOWN arrow is pressed.
7904 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7906 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
7907 linux-thread-db.c (_initialize_thread_db): Likewise.
7909 2019-03-16 Eli Zaretskii <eliz@gnu.org>
7911 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
7912 wclrtoeol in tui_show_source_line". This reverts changes made in
7913 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
7915 2019-03-15 Tom Tromey <tom@tromey.com>
7917 * symtab.h (struct minimal_symbol): Derive from
7918 general_symbol_info.
7919 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
7920 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7921 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7922 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7923 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
7924 (MSYMBOL_SEARCH_NAME): Update.
7925 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
7926 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
7927 * minsyms.c (minimal_symbol_reader::record_full): Update.
7929 2019-03-15 Tom Tromey <tom@tromey.com>
7931 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
7933 2019-03-15 Tom Tromey <tom@tromey.com>
7935 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
7937 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
7939 * minsyms.c (lookup_minimal_symbol_by_pc_section)
7940 (build_minimal_symbol_hash_tables)
7941 (minimal_symbol_reader::install): Update.
7943 2019-03-15 Tom Tromey <tom@tromey.com>
7945 * symtab.c (create_demangled_names_hash): Update.
7946 (symbol_set_names): Update.
7947 * objfiles.h (struct objfile_per_bfd_storage)
7948 <demangled_names_hash>: Now an htab_up.
7949 * objfiles.c (objfile_per_bfd_storage): Simplify.
7951 2019-03-15 Tom Tromey <tom@tromey.com>
7953 * objfiles.h (struct objfile_per_bfd_storage): Declare
7955 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
7957 (get_objfile_bfd_data): Use new. Don't initialize
7959 (free_objfile_per_bfd_storage): Remove.
7960 (objfile_bfd_data_free, objfile::~objfile): Use delete.
7962 2019-03-15 Tom Tromey <tom@tromey.com>
7964 * symfile.c (reread_symbols): Update.
7965 * objfiles.c (objfile::objfile): Update.
7966 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
7967 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
7969 (minimal_symbol_reader::install): Update.
7970 (terminate_minimal_symbol_table): Remove.
7971 * jit.c (jit_object_close_impl): Update.
7973 2019-03-15 Tom Tromey <tom@tromey.com>
7975 * minsyms.c (minimal_symbol_reader::record_full): Remove some
7978 2019-03-15 Tom Tromey <tom@tromey.com>
7980 * objfiles.h (struct objfile_per_bfd_storage)
7981 <demangled_hash_languages>: Now a bitset.
7982 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
7983 (lookup_minimal_symbol): Update.
7985 2019-03-15 Tom Tromey <tom@tromey.com>
7987 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
7988 Don't return the symbol.
7989 * coffread.c (record_minimal_symbol): Use record_full.
7991 2019-03-14 Eli Zaretskii <eliz@gnu.org>
7993 The MS-Windows port of ncurses fails to switch to a color pair if
7994 one or both of the colors are the implicit default colors. This
7995 change records the default colors when TUI is initialized, and
7996 then specifies them explicitly when a color pair uses the default
7997 colors. This allows color styling in TUI mode on MS-Windows.
7999 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
8001 (tui_initialize_io) [__MINGW32__]: Record the default terminal
8002 colors in ncurses_norm_attr.
8003 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
8004 "none", replace it with the default color recorded in
8007 2019-03-14 Tom Tromey <tromey@adacore.com>
8009 * source-cache.h (class source_cache) <get_source_lines>: Return
8011 * source-cache.c (source_cache::extract_lines): Handle case where
8012 first_pos==npos. Return std::string.
8013 (source_cache::get_source_lines): Update.
8015 2019-03-14 Tom Tromey <tromey@adacore.com>
8017 * NEWS: Add item for "style sources" commands.
8018 * source-cache.c (source_cache::get_source_lines): Check
8020 * cli/cli-style.c (source_styling): New global.
8021 (_initialize_cli_style): Add "style sources" commands.
8022 (show_style_sources): New function.
8023 * cli/cli-style.h (source_styling): Declare.
8025 2019-03-14 Pedro Alves <palves@redhat.com>
8026 Tom Tromey <tromey@adacore.com>
8028 * tui/tui-winsource.h (tui_refill_source_window): Declare.
8029 * tui/tui-winsource.c (tui_refill_source_window): New function,
8031 (tui_horizontal_source_scroll): ... here. Move some logic.
8032 * cli/cli-style.c (set_style_enabled): Notify new observable.
8033 * tui/tui-hooks.c (tui_redisplay_source): New function.
8034 (tui_attach_detach_observers): Attach or detach
8035 tui_redisplay_source.
8036 * observable.h (source_styling_changed): New observable.
8037 * observable.c: Define source_styling_changed observable.
8039 2019-03-13 Tom Tromey <tromey@adacore.com>
8041 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
8042 (i386_gnu_nat_target::store_registers): Update.
8043 * target-debug.h (target_debug_print_std_string): New macro.
8044 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
8045 * windows-tdep.c (display_one_tib): Update.
8046 * tui/tui-stack.c (tui_make_status_line): Update.
8047 * top.c (print_inferior_quit_action): Update.
8048 * thread.c (thr_try_catch_cmd): Update.
8049 (add_thread_with_info): Update.
8050 (thread_target_id_str): Update.
8051 (thr_try_catch_cmd): Update.
8052 (thread_command): Update.
8053 (thread_find_command): Update.
8054 * record-btrace.c (record_btrace_target::info_record)
8055 (record_btrace_resume_thread, record_btrace_target::resume)
8056 (record_btrace_cancel_resume, record_btrace_step_thread)
8057 (record_btrace_target::wait, record_btrace_target::wait)
8058 (record_btrace_target::wait, record_btrace_target::stop): Update.
8059 * progspace.c (print_program_space): Update.
8060 * process-stratum-target.c
8061 (process_stratum_target::thread_address_space): Update.
8062 * linux-fork.c (linux_fork_mourn_inferior)
8063 (detach_checkpoint_command, info_checkpoints_command)
8064 (linux_fork_context): Update.
8065 (linux_fork_detach): Update.
8066 (class scoped_switch_fork_info): Update.
8067 (delete_checkpoint_command): Update.
8068 * infrun.c (follow_fork_inferior): Update.
8069 (follow_fork_inferior): Update.
8070 (proceed_after_vfork_done): Update.
8071 (handle_vfork_child_exec_or_exit): Update.
8072 (follow_exec): Update.
8073 (displaced_step_prepare_throw): Update.
8074 (displaced_step_restore): Update.
8075 (start_step_over): Update.
8077 (clear_proceed_status_thread): Update.
8079 (print_target_wait_results): Update.
8080 (do_target_wait): Update.
8081 (context_switch): Update.
8082 (stop_all_threads): Update.
8083 (restart_threads): Update.
8084 (finish_step_over): Update.
8085 (handle_signal_stop): Update.
8086 (switch_back_to_stepped_thread): Update.
8087 (keep_going_pass_signal): Update.
8088 (print_exited_reason): Update.
8089 (normal_stop): Update.
8090 * inferior.c (inferior_pid_to_str): Change return type.
8091 (print_selected_inferior): Update.
8092 (add_inferior): Update.
8093 (detach_inferior): Update.
8094 * dummy-frame.c (fprint_dummy_frames): Update.
8095 * dcache.c (dcache_info_1): Update.
8096 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
8097 (btrace_fetch, btrace_clear): Update.
8098 * linux-tdep.c (linux_core_pid_to_str): Change return type.
8099 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
8101 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
8102 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
8103 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
8104 * gdbarch.c, gdbarch.h: Rebuild.
8105 * gdbarch.sh (core_pid_to_str): Change return type.
8106 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
8108 (windows_nat_target::pid_to_str): Change return type.
8109 (windows_delete_thread): Update.
8110 (windows_nat_target::attach): Update.
8111 (windows_nat_target::files_info): Update.
8112 * target-delegates.c: Rebuild.
8113 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
8115 (sol_thread_target::pid_to_str): Change return type.
8116 * remote.c (class remote_target) <pid_to_str>: Change return
8118 (remote_target::pid_to_str): Change return type.
8119 (extended_remote_target::attach, remote_target::remote_stop_ns)
8120 (remote_target::remote_notif_remove_queued_reply)
8121 (remote_target::push_stop_reply, remote_target::disable_btrace):
8123 (extended_remote_target::attach): Update.
8124 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
8126 (gdbsim_target::pid_to_str): Change return type.
8127 * ravenscar-thread.c (struct ravenscar_thread_target)
8128 <pid_to_str>: Change return type.
8129 (ravenscar_thread_target::pid_to_str): Change return type.
8130 * procfs.c (class procfs_target) <pid_to_str>: Change return
8132 (procfs_target::pid_to_str): Change return type.
8133 (procfs_target::attach): Update.
8134 (procfs_target::detach): Update.
8135 (procfs_target::fetch_registers): Update.
8136 (procfs_target::store_registers): Update.
8137 (procfs_target::wait): Update.
8138 (procfs_target::files_info): Update.
8139 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
8140 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
8142 (nto_procfs_target::pid_to_str): Change return type.
8143 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
8144 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
8146 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
8148 (attach_proc_task_lwp_callback, get_detach_signal)
8149 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
8150 (linux_nat_target::resume, wait_lwp, stop_callback)
8151 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
8152 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
8153 (linux_nat_wait_1, resume_stopped_resumed_lwps)
8154 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
8155 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
8157 (inf_ptrace_target::attach): Update.
8158 (inf_ptrace_target::files_info): Update.
8159 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
8161 (go32_nat_target::pid_to_str): Change return type.
8162 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
8163 (gnu_nat_target::wait): Update.
8164 (gnu_nat_target::wait): Update.
8165 (gnu_nat_target::resume): Update.
8166 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
8167 (fbsd_nat_target::wait): Update.
8168 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
8170 (darwin_nat_target::attach): Update.
8171 * corelow.c (class core_target) <pid_to_str>: Change return type.
8172 (core_target::pid_to_str): Change return type.
8173 * target.c (normal_pid_to_str): Change return type.
8174 (default_pid_to_str): Likewise.
8175 (target_pid_to_str): Change return type.
8176 (target_translate_tls_address): Update.
8177 (target_announce_detach): Update.
8178 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
8180 (bsd_uthread_target::pid_to_str): Change return type.
8181 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
8183 (bsd_kvm_target::pid_to_str): Change return type.
8184 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
8186 (aix_thread_target::pid_to_str): Change return type.
8187 * target.h (struct target_ops) <pid_to_str>: Change return type.
8188 (target_pid_to_str, normal_pid_to_str): Likewise.
8189 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
8191 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
8193 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
8195 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
8197 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
8199 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
8202 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
8204 * NEWS: Mention that the new default MI version is 3. Mention
8205 changes to the output of commands and events that deal with
8206 multi-location breakpoints.
8207 * breakpoint.c: Include "mi/mi-out.h".
8208 (print_one_breakpoint): Change output syntax if using MI version
8210 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
8212 (mi_multi_location_breakpoint_output_fixed): New.
8213 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
8214 (mi_cmd_fix_multi_location_breakpoint_output): New.
8215 (mi_multi_location_breakpoint_output_fixed): New.
8216 * mi/mi-cmds.c (mi_cmds): Register command
8217 -fix-multi-location-breakpoint-output.
8218 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
8221 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8223 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
8224 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
8225 instantiate mi_ui_out based on interpreter name.
8226 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
8227 * mi/mi-main.c (mi_load_progress): Likewise.
8229 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8231 * NEWS: Combine separate "New targets" sections for 8.3.
8233 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8235 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
8236 (ppcfbsd_init_abi): Install gdbarch
8237 "fetch_tls_load_module_address" and "get_thread_local_address"
8240 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8242 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
8243 (riscv_fbsd_init_abi): Install gdbarch
8244 "fetch_tls_load_module_address" and "get_thread_local_address"
8247 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8249 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
8250 (i386fbsd_init_abi): Install gdbarch
8251 "fetch_tls_load_module_address" and "get_thread_local_address"
8254 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8256 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
8257 (amd64fbsd_init_abi): Install gdbarch
8258 "fetch_tls_load_module_address" and "get_thread_local_address"
8261 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8263 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
8264 (struct fbsd_pspace_data): New type.
8265 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
8266 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
8267 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
8268 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
8269 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
8271 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8273 * gdbtypes.c (lookup_struct_elt): New function.
8274 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
8275 * gdbtypes.h (struct struct_elt): New type.
8276 (lookup_struct_elt): New prototype.
8278 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8280 * gdbtypes.c (lookup_struct_elt_type): Update comment and
8281 remove disabled code block.
8283 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8285 * gdbarch.sh (get_thread_local_address): New method.
8286 * gdbarch.h, gdbarch.c: Regenerate.
8287 * target.c (target_translate_tls_address): Use
8288 gdbarch_get_thread_local_address if present instead of
8289 target::get_thread_local_address.
8291 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8293 * target.h (target::get_thread_local_address): Update comment.
8295 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8297 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
8298 objfile->separate_debug_objfile_backlink if not NULL.
8300 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8302 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
8303 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
8304 (amd64bsd_store_inferior_registers): Likewise.
8305 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
8306 Enable segment base registers.
8307 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
8308 PT_GETFSBASE and PT_GETGSBASE.
8309 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
8311 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
8312 segment base registers.
8313 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
8315 2019-03-12 John Baldwin <jhb@FreeBSD.org>
8317 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
8318 Update calls to i386_target_description to add 'segments'
8320 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
8321 add segment base registers.
8322 * arch/i386.c (i386_create_target_description): Add 'segments'
8323 parameter to enable segment base registers.
8324 * arch/i386.h (i386_create_target_description): Likewise.
8325 * features/i386/32bit-segments.xml: New file.
8326 * features/i386/32bit-segments.c: Generate.
8327 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
8328 call to i386_target_description to add 'segments' parameter.
8329 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
8330 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
8331 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
8332 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
8333 if feature is present.
8334 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
8335 Add 'segments' parameter to call to i386_target_description.
8336 (i386_target_description): Add 'segments' parameter to enable
8337 segment base registers.
8338 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
8339 to call to i386_target_description.
8340 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
8341 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
8342 Define I386_NUM_REGS.
8343 (i386_target_description): Add 'segments' parameter to enable
8344 segment base registers.
8346 2019-03-12 Eli Zaretskii <eliz@gnu.org>
8349 * source-cache.c: #undef open and close, to avoid unresolved
8350 externals during linking.
8352 2019-03-12 Tom Tromey <tromey@adacore.com>
8354 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
8355 const. Add initializers.
8356 (_initialize_remote): Don't initialize ptid globals.
8358 2019-03-12 Pedro Alves <palves@redhat.com>
8360 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
8362 2019-03-12 Pedro Alves <palves@redhat.com>
8364 * cp-name-parser.y (main): Remove unused 'len' variable.
8366 2019-03-12 Tom Tromey <tromey@adacore.com>
8368 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
8369 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
8371 2019-03-12 Tom Tromey <tromey@adacore.com>
8373 * linux-nat.c (iterate_over_lwps): Update.
8374 (stop_callback): Remove parameter.
8375 (stop_wait_callback, detach_callback, resume_set_callback)
8376 (select_singlestep_lwp_callback, set_ignore_sigint)
8377 (status_callback, resumed_callback, resume_clear_callback)
8378 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
8380 (linux_nat_target::detach, linux_nat_target::resume)
8381 (linux_stop_and_wait_all_lwps, select_event_lwp)
8382 (linux_nat_filter_event, linux_nat_wait_1)
8383 (linux_nat_target::kill, linux_nat_target::stop)
8384 (linux_nat_target::stop): Update.
8385 (linux_nat_resume_callback): Change type.
8386 (resume_stopped_resumed_lwps, count_events_callback)
8387 (select_event_lwp_callback): Likewise.
8388 (linux_stop_lwp, linux_nat_stop_lwp): Update.
8389 * arm-linux-nat.c (struct update_registers_data): Remove.
8390 (update_registers_callback): Change type.
8391 (arm_linux_insert_hw_breakpoint1): Update.
8392 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
8394 (x86_linux_dr_set_addr): Update.
8395 (x86_linux_dr_set_control): Update.
8396 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
8397 (iterate_over_lwps): Use gdb::function_view.
8398 * nat/aarch64-linux-hw-point.c (struct
8399 aarch64_dr_update_callback_param): Remove.
8400 (debug_reg_change_callback): Change type.
8401 (aarch64_notify_debug_reg_change): Update.
8402 * s390-linux-nat.c (s390_refresh_per_info): Update.
8404 2019-03-11 Tom Tromey <tromey@adacore.com>
8406 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
8407 redundant assignment to "this_cu".
8409 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8411 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
8413 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8415 * gdbtypes.c (rank_one_type_parm_set): New function extracted
8417 (rank_one_type): ... this.
8419 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8421 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
8423 (rank_one_type): ... this.
8425 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8427 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
8429 (rank_one_type): ... this.
8431 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8433 * gdbtypes.c (rank_one_type_parm_float): New function extracted
8435 (rank_one_type): ... this.
8437 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8439 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
8441 (rank_one_type): ... this.
8443 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8445 * gdbtypes.c (rank_one_type_parm_range): New function extracted
8447 (rank_one_type): ... this.
8449 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8451 * gdbtypes.c (rank_one_type_parm_char): New function extracted
8453 (rank_one_type): ... this.
8455 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8457 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
8459 (rank_one_type): ... this.
8461 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8463 * gdbtypes.c (rank_one_type_parm_int): New function extracted
8465 (rank_one_type): ... this.
8467 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8469 * gdbtypes.c (rank_one_type_parm_func): New function extracted
8471 (rank_one_type): ... this.
8473 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8475 * gdbtypes.c (rank_one_type_parm_array): New function extracted
8477 (rank_one_type): ... this.
8479 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
8481 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
8483 (rank_one_type): ... this.
8485 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8487 * inferior.c (initialize_inferiors): Ensure 'help set/show print
8488 inferior-events' shows the example events.
8490 2019-03-08 Eli Zaretskii <eliz@gnu.org>
8492 Support styling on native MS-Windows console
8495 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
8496 on MS-Windows if $TERM is not defined.
8498 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
8500 * posix-hdep.c (gdb_console_fputs):
8501 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
8503 * ui-file.h (gdb_console_fputs): Add prototype.
8505 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
8506 back to fputs only if the former returns zero.
8508 2019-03-07 Tom Tromey <tom@tromey.com>
8510 * symmisc.c (print_symbol_bcache_statistics): Update.
8511 (print_objfile_statistics): Update.
8512 * symfile.c (allocate_symtab): Update.
8513 * stabsread.c: Don't include bcache.h.
8514 * psymtab.h (struct psymbol_bcache): Don't declare.
8515 (class psymtab_storage) <psymbol_cache>: Now a bcache.
8516 (psymbol_bcache_init, psymbol_bcache_free)
8517 (psymbol_bcache_get_bcache): Don't declare.
8518 * psymtab.c (struct psymbol_bcache): Remove.
8519 (psymtab_storage::psymtab_storage): Update.
8520 (psymtab_storage::~psymtab_storage): Update.
8521 (psymbol_bcache_init, psymbol_bcache_free)
8522 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
8523 (add_psymbol_to_bcache): Update.
8524 (allocate_psymtab): Update.
8525 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8526 macro_cache>: No longer pointers.
8527 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
8528 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
8529 * macrotab.c (macro_bcache): Update.
8530 * macroexp.c: Don't include bcache.h.
8531 * gdbtypes.c (check_types_worklist): Update.
8532 (types_deeply_equal): Remove TRY/CATCH. Update.
8533 * elfread.c (elf_symtab_read): Update.
8534 * dwarf2read.c: Don't include bcache.h.
8535 * buildsym.c (buildsym_compunit::get_macro_table): Update.
8536 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
8537 (print_bcache_statistics, bcache_memory_used): Don't declare.
8538 (struct bcache): Move from bcache.c. Add constructor, destructor,
8539 methods. Rename all data members.
8540 * bcache.c (struct bcache): Move to bcache.h.
8541 (bcache::expand_hash_table): Rename from expand_hash_table.
8543 (bcache::insert): Rename from bcache_full.
8544 (bcache::compare): Rename from bcache_compare.
8545 (bcache_xmalloc): Remove.
8546 (bcache::~bcache): Rename from bcache_xfree.
8547 (bcache::print_statistics): Rename from print_bcache_statistics.
8548 (bcache::memory_used): Rename from bcache_memory_used.
8550 2019-03-07 Pedro Alves <palves@redhat.com>
8552 * infrun.c (normal_stop): Also check for
8553 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
8555 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
8557 * f-lang.c (value_from_host_double): Moved to...
8558 * value.c (value_from_host_double): ...here.
8559 * value.h (value_from_host_double): Declare.
8560 * guile/scm-math.c (vlscm_convert_typed_number): Use
8561 value_from_host_double.
8562 (vlscm_convert_number): Likewise.
8563 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
8564 * python/py-value.c (convert_value_from_python): Likewise.
8566 2019-03-06 Tom Tromey <tom@tromey.com>
8568 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
8570 2019-03-06 Tom Tromey <tom@tromey.com>
8572 * utils.h (free_current_contents): Don't declare.
8573 * utils.c (free_current_contents): Remove.
8575 2019-03-06 Tom Tromey <tom@tromey.com>
8577 * top.c (quit_force): Update.
8578 * main.c (captured_command_loop): Update.
8579 * common/new-op.c (operator new): Update.
8580 * common/common-exceptions.c (struct catcher)
8581 <save_cleanup_chain>: Remove member.
8582 (exceptions_state_mc_init): Update.
8583 (exception_try_scope_entry): Return nullptr.
8584 (exception_try_scope_exit, exception_rethrow)
8585 (throw_exception_sjlj, throw_exception_cxx): Update.
8586 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
8587 (all_cleanups, do_cleanups, discard_cleanups)
8588 (discard_final_cleanups, save_cleanups, save_final_cleanups)
8589 (restore_cleanups, restore_final_cleanups): Don't declare.
8590 (do_final_cleanups): Remove parameter.
8591 * common/cleanups.c (cleanup_chain, make_cleanup)
8592 (make_cleanup_dtor, all_cleanups, do_cleanups)
8593 (discard_my_cleanups, discard_cleanups)
8594 (discard_final_cleanups, save_my_cleanups, save_cleanups)
8595 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
8596 (null_cleanup): Remove.
8597 (do_final_cleanups): Remove parameter.
8599 2019-03-06 Tom Tromey <tom@tromey.com>
8601 * remote.c (remote_target::remote_parse_stop_reply): Use
8604 2019-03-06 Tom Tromey <tom@tromey.com>
8606 * stabsread.c (struct stabs_field_info): Rename from field_info.
8607 <list, fnlist>: Add initializers.
8608 <obstack>: New member.
8609 (read_member_functions, read_struct_fields, read_baseclasses):
8610 Allocate on obstack. Don't use cleanups.
8611 (read_one_struct_field, read_member_functions, read_struct_fields)
8612 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
8613 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
8614 (read_struct_type): Update.
8616 2019-03-06 Tom Tromey <tom@tromey.com>
8618 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
8619 * common/filestuff.h (make_cleanup_close): Don't declare.
8620 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
8623 2019-03-06 Tom Tromey <tom@tromey.com>
8625 * solib-aix.c: Use make_scope_exit.
8627 2019-03-06 Tom Tromey <tom@tromey.com>
8629 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
8630 Use make_scope_exit.
8632 2019-03-06 Tom Tromey <tom@tromey.com>
8634 * solib-svr4.c (disable_probes_interface): Remove parameter.
8635 (svr4_handle_solib_event): Use make_scope_exit.
8637 2019-03-06 Tom Tromey <tom@tromey.com>
8639 * remote.c (struct stop_reply_deleter): Remove.
8640 (stop_reply_up): Update.
8641 (struct stop_reply): Derive from notif_event. Don't typedef.
8642 <regcache>: Now a std::vector.
8643 (stop_reply_xfree): Remove.
8644 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
8645 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
8646 (remote_target::discard_pending_stop_replies): Use delete.
8647 (remote_target::remote_parse_stop_reply): Update.
8648 (remote_target::process_stop_reply): Update.
8649 * remote-notif.h (struct notif_event): Add virtual destructor.
8650 Remove "dtr" member.
8651 (struct notif_client) <alloc_event>: Return a unique_ptr.
8652 (notif_event_xfree): Don't declare.
8653 (notif_event_up): New typedef.
8654 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
8655 (notif_event_xfree, do_notif_event_xfree): Remove.
8656 (remote_notif_state_xfree): Update.
8658 2019-03-06 Tom Tromey <tom@tromey.com>
8660 * infrun.c (displaced_step_clear_cleanup): Now a
8661 forward_scope_exit type.
8662 (displaced_step_prepare_throw): Update.
8663 (displaced_step_fixup): Update.
8665 2019-03-06 Tom Tromey <tom@tromey.com>
8667 * inferior.h (class inferior): Update comment.
8668 * gdbthread.h (class thread_info): Update comment.
8670 2019-03-06 Joel Brobecker <brobecker@adacore.com>
8671 Tom Tromey <tom@tromey.com>
8673 * stabsread.h (struct stab_section_list): Remove.
8674 (coffstab_build_psymtabs): Update.
8675 * dbxread.c (symbuf_sections): Now a std::vector.
8676 (sect_idx): New global.
8677 (fill_symbuf): Update.
8678 (coffstab_build_psymtabs): Change type of stabsects parameter.
8680 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
8682 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
8683 (coff_locate_sections): Update.
8684 (coff_symfile_read): Remove cleanups. Update.
8685 (init_stringtab): Add storage parameter.
8686 (free_stringtab, free_stringtab_cleanup): Remove.
8687 (init_lineno): Add storage parameter.
8688 (free_linetab, free_linetab_cleanup): Remove.
8690 2019-03-06 Pedro Alves <palves@redhat.com>
8692 * linux-fork.c (fork_info::clobber_regs): Delete.
8693 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
8694 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
8696 (scoped_switch_fork_info::scoped_switch_fork_info)
8697 (checkpoint_command, linux_fork_context): Adjust
8698 fork_save_infrun_state calls.
8700 2019-03-06 Pedro Alves <palves@redhat.com>
8702 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
8703 (inf_has_multiple_threads): Return 'bool' and rewrite using
8704 inferior_info::threads().
8706 2019-03-06 Pedro Alves <palves@redhat.com>
8708 * linux-fork.c: Include <list>.
8709 (fork_list): Now a std::list instance.
8710 (fork_info): Add ctor, dtor, and in-class initialize all fields.
8711 (forks_exist_p, find_last_fork): Adjust.
8715 (free_fork): Delete, folded into fork_info::~fork_info().
8716 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
8718 (init_fork_list): Delete.
8719 (linux_fork_killall, linux_fork_mourn_inferior)
8720 (linux_fork_detach, info_checkpoints_command): Adjust.
8721 (_initialize_linux_fork): No longer call init_fork_list.
8723 2019-03-06 Pedro Alves <palves@redhat.com>
8725 * linux-fork.c (new_fork): New, split out of ...
8726 (add_fork): ... this. Return void. Move "first fork" special
8727 case from here, to ...
8728 (checkpoint_command): ... here.
8729 * linux-linux.h (add_fork): Return void.
8731 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8733 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
8735 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8736 Chris January <chris.january@arm.com>
8737 David Lecomber <david.lecomber@arm.com>
8739 * f-exp.y: New token, UNOP_INTRINSIC.
8740 (exp): New pattern using UNOP_INTRINSIC token.
8741 (f77_keywords): Add 'abs' keyword.
8742 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
8743 (value_from_host_double): New function.
8744 (evaluate_subexp_f): Support UNOP_ABS.
8746 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8748 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
8751 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8753 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
8754 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
8755 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
8757 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8759 * f-exp.y (convert_to_kind_type): Handle more type kinds.
8761 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8762 Chris January <chris.january@arm.com>
8764 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
8765 * f-exp.y: Define 'KIND' token.
8766 (exp): New pattern for KIND expressions.
8767 (ptype): Handle types with a kind extension.
8768 (direct_abs_decl): Extend to spot kind extensions.
8769 (f77_keywords): Add 'kind' to the list.
8770 (push_kind_type): New function.
8771 (convert_to_kind_type): New function.
8772 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
8773 * parse.c (operator_length_standard): Likewise.
8774 * parser-defs.h (enum type_pieces): Add tp_kind.
8775 * std-operator.def: Add UNOP_KIND.
8777 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8779 * f-exp.y (f_parse): Set yydebug.
8781 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8783 * f-lang.c (evaluate_subexp_f): New function.
8784 (exp_descriptor_f): New global.
8785 (f_language_defn): Use exp_descriptor_f instead of
8786 exp_descriptor_standard.
8788 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8790 * f-exp.y (struct token): Add comments.
8791 (dot_ops): Remove uppercase versions and the end marker.
8792 (f77_keywords): Likewise.
8793 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
8794 entries in the dot_ops array are case insensitive, and use
8795 strncasecmp to compare strings. Also some whitespace cleanup in
8796 this area. Similar for the f77_keywords array, except entries in
8797 this list might be case sensitive.
8799 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8801 * f-exp.y (struct f77_boolean_val): Add comments.
8802 (boolean_values): Remove uppercase versions, and end marker.
8803 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
8804 and use strncasecmp to achieve case insensitivity. Additionally,
8805 perform whitespace cleanup around this code.
8807 2019-03-06 Tom Tromey <tromey@adacore.com>
8809 * remote-sim.c (gdbsim_target_open): Use result of
8812 2019-03-06 Richard Bunt <richard.bunt@arm.com>
8813 Dirk Schubert <dirk.schubert@arm.com>
8814 Chris January <chris.january@arm.com>
8816 * eval.c (evaluate_subexp_standard): Call Fortran argument
8818 * f-lang.c (struct value): A value which can be passed into a
8819 Fortran function call.
8820 (fortran_argument_convert): Wrap Fortran arguments in a pointer
8822 (struct type): Value ready for a Fortran function call.
8823 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
8825 * f-lang.h (fortran_argument_convert): Declaration.
8826 (fortran_preserve_arg_pointer): Declaration.
8827 * infcall.c (value_arg_coerce): Call Fortran argument logic.
8829 2019-03-05 Tom Tromey <tromey@adacore.com>
8831 * python/py-prettyprint.c (print_string_repr): Remove #if.
8832 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
8834 2019-03-05 Tom Tromey <tromey@adacore.com>
8836 * target.c (the_dummy_target): Move later. Change type to
8838 (initialize_targets): Don't initialize the_dummy_target.
8840 2019-03-05 Tom Tromey <tromey@adacore.com>
8842 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
8843 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
8845 2019-03-05 Tom Tromey <tromey@adacore.com>
8847 * windows-nat.c (windows_nat_target::attach)
8848 (windows_nat_target::detach): Don't call gdb_flush.
8849 * valprint.c (generic_val_print, val_print, val_print_string):
8850 Don't call gdb_flush.
8851 * utils.c (defaulted_query): Don't call gdb_flush.
8852 * typeprint.c (print_type_scalar): Don't call gdb_flush.
8853 * target.c (target_announce_detach): Don't call gdb_flush.
8854 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
8855 * remote.c (extended_remote_target::attach): Don't call
8857 * procfs.c (procfs_target::detach): Don't call gdb_flush.
8858 * printcmd.c (do_examine): Don't call gdb_flush.
8859 (info_display_command): Don't call gdb_flush.
8860 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
8861 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
8862 * memattr.c (info_mem_command): Don't call gdb_flush.
8863 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
8864 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
8865 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
8866 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
8867 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
8868 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
8869 (gnu_nat_target::detach): Don't call gdb_flush.
8870 * f-valprint.c (f_val_print): Don't call gdb_flush.
8871 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
8872 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
8873 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
8875 * c-valprint.c (c_val_print): Don't call gdb_flush.
8876 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
8878 2019-03-05 Tom Tromey <tromey@adacore.com>
8880 * varobj.c (update_dynamic_varobj_children): Update.
8881 (install_default_visualizer): Use reset, not release.
8882 * value.c (set_internalvar): Update.
8883 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
8884 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
8885 ATTRIBUTE_UNUSED_RESULT.
8887 2019-03-05 Tom Tromey <tromey@adacore.com>
8889 * remote.c (class scoped_remote_fd) <release>: Add
8890 ATTRIBUTE_UNUSED_RESULT.
8892 2019-03-05 Tom Tromey <tromey@adacore.com>
8894 * macroexp.c (struct macro_buffer) <release>: Add
8895 ATTRIBUTE_UNUSED_RESULT.
8897 2019-03-05 Tom Tromey <tromey@adacore.com>
8899 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
8900 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
8901 ATTRIBUTE_UNUSED_RESULT.
8903 2019-03-05 Tom Tromey <tromey@adacore.com>
8905 * common/scoped_fd.h (class scoped_fd) <release>: Add
8906 ATTRIBUTE_UNUSED_RESULT.
8908 2019-03-05 Tom Tromey <tromey@adacore.com>
8910 * parser-defs.h (struct parser_state) <release>: Add
8911 ATTRIBUTE_UNUSED_RESULT.
8913 2019-03-05 Tom Tromey <tromey@adacore.com>
8915 * utils.h (class gdb_argv) <release>: Add
8916 ATTRIBUTE_UNUSED_RESULT.
8917 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
8919 2019-03-02 Eli Zaretskii <eliz@gnu.org>
8921 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
8922 for-loop range, to avoid compiler warnings.
8924 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
8925 avoid compiler warnings about unused variables.
8927 * NEWS: Mention end of support for native debugging on MS-Windows
8931 * common/netstuff.c:
8932 * gdbserver/gdbreplay.c
8933 * gdbserver/remote-utils.c:
8935 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
8936 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
8937 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
8938 'getaddrinfo' and 'freeaddrinfo' were not available before
8939 Windows XP, and mingw.org's MinGW headers by default define
8940 _WIN32_WINNT to 0x500.
8942 2019-03-01 Gary Benson <gbenson@redhat.com>
8944 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
8946 2019-02-28 Brian Vandenberg <phantall@gmail.com>
8947 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8950 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
8951 set_sigint_trap, clear_sigint_trap.
8953 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8955 * target.c (target_detach): Clear the regcache and the
8958 2019-02-27 Pedro Alves <palves@redhat.com>
8960 * utils.c (set_screen_size): When we cap the height/width sizes,
8961 tweak the corresponding command variable to show "unlimited":
8963 2019-02-27 Saagar Jha <saagar@saagarjha.com>
8964 Pedro Alves <palves@redhat.com>
8966 * utils.c (set_screen_size): Reduce "infinite" rows and columns
8967 before calling rl_set_screen_size.
8969 2019-02-27 Tom Tromey <tromey@adacore.com>
8971 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
8973 * python/py-value.c: Remove Python 2.4 workaround.
8974 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
8976 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
8977 Python 2.4 workaround.
8978 * python/python-internal.h: Remove Python 2.4 comment.
8979 (Py_ssize_t): Don't define.
8980 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
8981 (gdb_Py_DECREF): Remove Python 2.4 workaround.
8982 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
8983 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
8984 * python/python.c (do_start_initialization): Remove Python 2.4
8986 * python/py-prettyprint.c (class dummy_python_frame): Remove.
8987 (print_children): Remove Python 2.4 workaround.
8988 * python/py-inferior.c (buffer_procs): Remove Python 2.4
8990 (CHARBUFFERPROC_NAME): Remove.
8991 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
8992 Python 2.4 workaround.
8994 2019-02-27 Kevin Buettner <kevinb@redhat.com>
8996 * NEWS: Note minimum Python version.
8998 2019-02-27 Kevin Buettner <kevinb@redhat.com>
9000 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
9001 code from these functions. Remove corresponding ifdefs. Use
9002 Py_buffer_up instead of explicit calls to PyBuffer_Release.
9003 Remove gotos and target of gotos.
9004 (infpy_search_memory): Likewise.
9006 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9008 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
9009 (hppa_gdbarch_init): Don't register deleted functions with
9012 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9014 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
9015 (h8300_unwind_sp): Delete.
9016 (h8300_dummy_id): Delete.
9017 (h8300_gdbarch_init): Don't register deleted functions with
9020 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9022 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
9023 (ft32_unwind_pc): Delete.
9024 (ft32_unwind_sp): Delete.
9025 (ft32_gdbarch_init): Don't register deleted functions with
9028 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9030 * gdb/frv-tdep.c (frv_dummy_id): Delete.
9031 (frv_unwind_pc): Delete.
9032 (frv_unwind_sp): Delete.
9033 (frv_gdbarch_init): Don't register deleted functions with
9036 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9038 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
9039 (riscv_unwind_pc): Delete.
9040 (riscv_unwind_sp): Delete.
9041 (riscv_gdbarch_init): Don't register deleted functions with
9044 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9046 * gdb/csky-tdep.c (csky_dummy_id): Delete.
9047 (csky_unwind_pc): Delete.
9048 (csky_unwind_sp): Delete.
9049 (csky_gdbarch_init): Don't register deleted functions with
9052 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9054 * gdb/cris-tdep.c (cris_dummy_id): Delete.
9055 (cris_unwind_pc): Delete.
9056 (cris_unwind_sp): Delete.
9057 (cris_gdbarch_init): Don't register deleted functions with
9060 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9062 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
9063 (bfin_unwind_pc): Delete.
9064 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
9066 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9068 * gdb/arm-tdep.c (arm_dummy_id): Delete.
9069 (arm_unwind_pc): Delete.
9070 (arm_unwind_sp): Delete.
9071 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
9073 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9075 * gdb/arc-tdep.c (arc_dummy_id): Delete.
9076 (arc_unwind_pc): Delete.
9077 (arc_unwind_sp): Delete.
9078 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
9080 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9082 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
9083 (alpha_unwind_pc): Delete.
9084 (alpha_gdbarch_init): Don't register deleted functions with
9087 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9089 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
9090 (aarch64_unwind_pc): Delete.
9091 (aarch64_unwind_sp): Delete.
9092 (aarch64_gdbarch_init): Don't register deleted functions with
9095 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9097 * gdbtypes.c (type_align): Don't consider static members when
9098 computing structure alignment.
9100 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9102 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
9103 return 0 for other types.
9104 * arch-utils.c (default_type_align): Always return 0.
9105 * gdbarch.h: Regenerate.
9106 * gdbarch.sh (type_align): Extend comment.
9107 * gdbtypes.c (type_align): Add additional comments, always call
9108 gdbarch_type_align before applying the default rules.
9109 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
9110 generic code will then apply a suitable default.
9111 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
9112 types, return 0 for other types.
9114 2019-02-27 Joel Brobecker <brobecker@adacore.com>
9116 * NEWS: Create a new section for the next release branch.
9117 Rename the section of the current branch, now that it has
9120 2019-02-27 Joel Brobecker <brobecker@adacore.com>
9122 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
9123 * version.in: Bump version to 8.3.50.DATE-git.
9125 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
9127 * aix-thread.c (ptid_cmp): Remove unused variable.
9128 (get_signaled_thread): Likewise.
9129 (store_regs_user_thread): Likewise.
9130 (store_regs_kernel_thread): Likewise.
9131 (fetch_regs_kernel_thread): Remove shadowed variable.
9133 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
9135 * features/riscv/32bit-cpu.xml: Add register numbers.
9136 * features/riscv/32bit-fpu.c: Regenerate.
9137 * features/riscv/32bit-fpu.xml: Add register numbers.
9138 * features/riscv/64bit-cpu.xml: Add register numbers.
9139 * features/riscv/64bit-fpu.c: Regenerate.
9140 * features/riscv/64bit-fpu.xml: Add register numbers.
9142 2019-02-26 Kevin Buettner <kevinb@redhat.com>
9144 * NEWS: Mention two argument form of gdb.Value constructor.
9145 * python/py-value.c (convert_buffer_and_type_to_value): New
9147 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
9148 Add support for handling an optional second argument. Call
9149 convert_buffer_and_type_to_value as appropriate.
9150 * python/python-internal.h (Py_buffer_deleter): New struct.
9151 (Py_buffer_up): New typedef.
9153 2019-02-25 John Baldwin <jhb@FreeBSD.org>
9155 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
9156 instead of releasing ownership.
9158 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
9160 * dwarf2read.c (open_and_init_dwp_file): Call
9161 elf_numsections instead of bfd_count_sections to initialize
9162 dwp_file->num_sections.
9164 2019-02-25 Tom Tromey <tromey@adacore.com>
9166 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
9168 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
9170 * gcore.in: Add '--readnever' option when invoking GDB.
9172 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
9174 * MAINTAINERS: Update my email address.
9176 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
9178 * build-id.c (build_id_to_debug_bfd_1): New function.
9179 (build_id_to_debug_bfd): Look for separate debug file in
9182 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
9184 * gdbarch.sh: Update the copyright year range that is placed into
9187 2019-02-22 Keith Seitz <keiths@redhat.com>
9190 * linespec.c (create_sals_line_offset): Search for the default
9191 symtab's filename instead of its fullname.
9193 2019-02-21 Alan Hayward <alan.hayward@arm.com>
9195 * NEWS: Update style defaults.
9197 2019-02-21 Alan Hayward <alan.hayward@arm.com>
9199 * main.c (captured_main_1): Disable styling in batch mode.
9201 2019-02-20 Tom Tromey <tom@tromey.com>
9203 * symtab.c (symtab_symbol_info): Fix typos.
9205 2019-02-20 Tom Tromey <tromey@adacore.com>
9207 * findcmd.c (_initialize_mem_search): Use upper case for
9208 metasyntactic variables.
9210 2019-02-20 Alan Hayward <alan.hayward@arm.com>
9212 * aarch64-tdep.c (aarch64_add_reggroups): New function.
9213 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
9215 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
9217 * top.h (source_file_name): Change to std::string.
9218 * top.c (source_file_name): Likewise.
9219 (command_line_input): Adjust.
9220 * cli/cli-script.c (script_from_file): Adjust.
9222 2019-02-19 Tom Tromey <tromey@adacore.com>
9224 * ravenscar-thread.c
9225 (ravenscar_thread_target::update_thread_list): Don't call
9226 ada_build_task_list.
9227 * ada-lang.h (ada_build_task_list): Don't declare.
9228 * ada-tasks.c (struct ada_tasks_inferior_data)
9229 <task_list_valid_p>: Now bool.
9230 (read_known_tasks, ada_task_list_changed)
9231 (ada_tasks_invalidate_inferior_data): Update.
9232 (read_known_tasks_array): Return bool.
9233 (read_known_tasks_list): Likewise.
9234 (read_known_tasks): Return void.
9235 (ada_build_task_list): Now static.
9237 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
9239 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
9240 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
9242 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9244 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
9245 variant for ada_tasks_pspace_data_handle and
9246 ada_tasks_inferior_data_handle.
9247 (ada_tasks_pspace_data_cleanup): New function.
9248 (ada_tasks_inferior_data_cleanup): New function.
9250 2019-02-17 Tom Tromey <tom@tromey.com>
9252 * macrotab.h (macro_source_fullname): Return a std::string.
9253 * macrotab.c (macro_include, check_for_redefinition)
9254 (macro_undef, macro_lookup_definition, foreach_macro)
9255 (foreach_macro_in_scope): Update.
9256 (macro_source_fullname): Return a std::string.
9257 * macrocmd.c (show_pp_source_pos): Update.
9259 2019-02-17 Tom Tromey <tom@tromey.com>
9261 * macrocmd.c (show_pp_source_pos): Style the file names.
9263 2019-02-17 Tom Tromey <tom@tromey.com>
9266 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
9268 2019-02-17 Tom Tromey <tom@tromey.com>
9270 * ada-lang.c (user_select_syms): Use filtered printing.
9271 * utils.c (wrap_style): New global.
9272 (desired_style): Remove.
9273 (emit_style_escape): Add stream parameter.
9274 (set_output_style, reset_terminal_style, prompt_for_continue):
9276 (flush_wrap_buffer): Only flush gdb_stdout.
9277 (wrap_here): Set wrap_style.
9278 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
9279 treat escape sequences as a character. Change when wrap buffer is
9281 (fputs_styled): Do not set the output style when the default is
9283 * ui-style.h (struct ui_file_style) <is_default>: New method.
9284 * source.c (print_source_lines_base): Emit escape sequences in one
9287 2019-02-17 Joel Brobecker <brobecker@adacore.com>
9289 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
9290 integers and enumeration types.
9292 2019-02-17 Joel Brobecker <brobecker@adacore.com>
9294 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
9295 instead of lookup_symbol_in_language
9296 (do_exact_match): New function.
9297 (ada_get_symbol_name_matcher): Return do_exact_match when
9298 doing a verbatim match.
9300 2019-02-15 Tom Tromey <tromey@adacore.com>
9302 * ravenscar-thread.c (ravenscar_thread_target::resume)
9303 (ravenscar_thread_target::wait): Special case wildcard requests.
9305 2019-02-15 Tom Tromey <tromey@adacore.com>
9307 * ravenscar-thread.c (base_ptid): Remove.
9308 (struct ravenscar_thread_target) <close>: New method.
9309 <m_base_ptid>: New member.
9310 <update_inferior_ptid, active_task, task_is_currently_active,
9311 runtime_initialized>: Declare methods.
9312 <ravenscar_thread_target>: Add constructor.
9313 (ravenscar_thread_target::task_is_currently_active)
9314 (ravenscar_thread_target::update_inferior_ptid)
9315 (ravenscar_runtime_initialized): Rename. Now methods.
9316 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
9317 (ravenscar_thread_target::update_thread_list): Update.
9318 (ravenscar_thread_target::active_task): Now method.
9319 (ravenscar_thread_target::store_registers)
9320 (ravenscar_thread_target::prepare_to_store)
9321 (ravenscar_thread_target::prepare_to_store)
9322 (ravenscar_thread_target::mourn_inferior): Update.
9323 (ravenscar_inferior_created): Use "new" to create target.
9324 (ravenscar_thread_target::get_ada_task_ptid): Update.
9325 (_initialize_ravenscar): Don't initialize base_ptid.
9326 (ravenscar_ops): Remove global.
9328 2019-02-15 Tom Tromey <tromey@adacore.com>
9330 * target.h (push_target): Declare new overload.
9331 * target.c (push_target): New overload, taking an rvalue reference.
9332 * remote.c (remote_target::open_1): Use push_target overload.
9333 * corelow.c (core_target_open): Use push_target overload.
9335 2019-02-15 Tom Tromey <tromey@adacore.com>
9337 * ravenscar-thread.c (is_ravenscar_task)
9338 (ravenscar_task_is_currently_active): Return bool.
9339 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
9340 (_initialize_ravenscar): Remove "(void)".
9341 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
9344 2019-02-15 Tom Tromey <tromey@adacore.com>
9346 * ravenscar-thread.c (ravenscar_runtime_initializer)
9347 (has_ravenscar_runtime, get_running_thread_id)
9348 (ravenscar_thread_target::resume): Fix indentation.
9350 2019-02-15 Tom Tromey <tromey@adacore.com>
9352 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
9353 from ravenscar_arch_ops.
9354 (sparc_ravenscar_ops::fetch_registers)
9355 (sparc_ravenscar_ops::store_registers): Now methods.
9356 (sparc_ravenscar_prepare_to_store): Remove.
9357 (sparc_ravenscar_ops): Redefine.
9358 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
9359 methods and destructor. Remove members.
9360 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
9361 (ravenscar_thread_target::store_registers)
9362 (ravenscar_thread_target::prepare_to_store): Update.
9363 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
9365 (struct ppc_ravenscar_powerpc_ops): Derive from
9367 (ppc_ravenscar_powerpc_ops::fetch_registers)
9368 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
9369 (ppc_ravenscar_powerpc_ops): Redefine.
9370 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
9371 (ppc_ravenscar_e500_ops::fetch_registers)
9372 (ppc_ravenscar_e500_ops::store_registers): Now methods.
9373 (ppc_ravenscar_e500_ops): Redefine.
9374 * aarch64-ravenscar-thread.c
9375 (aarch64_ravenscar_generic_prepare_to_store): Remove.
9376 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
9377 (aarch64_ravenscar_fetch_registers)
9378 (aarch64_ravenscar_store_registers): Now methods.
9379 (aarch64_ravenscar_ops): Redefine.
9381 2019-02-15 Tom Tromey <tromey@adacore.com>
9383 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
9384 (ravenscar_thread_target::stopped_by_hw_breakpoint)
9385 (ravenscar_thread_target::stopped_by_watchpoint)
9386 (ravenscar_thread_target::stopped_data_address)
9387 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
9389 2019-02-15 Tom Tromey <tromey@adacore.com>
9391 * ravenscar-thread.c: Fix some typos.
9393 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9394 Tom Tromey <tromey@adacore.com>
9396 * ada-lang.c (ada_exception_sal): Change addr_string to a
9398 (create_ada_exception_catchpoint): Update.
9400 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9401 Tom Tromey <tromey@adacore.com>
9403 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
9404 (bp_location_ops): Remove.
9405 (base_breakpoint_allocate_location): Update.
9406 (free_bp_location): Update.
9407 * ada-lang.c (class ada_catchpoint_location)
9408 <ada_catchpoint_location>: Remove ops parameter.
9409 (ada_catchpoint_location_dtor): Remove.
9410 (ada_catchpoint_location_ops): Remove.
9411 (allocate_location_exception): Update.
9412 * breakpoint.h (struct bp_location_ops): Remove.
9413 (class bp_location) <bp_location>: Remove bp_location_ops
9415 <~bp_location>: Add destructor.
9418 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
9419 Pedro Alves <palves@redhat.com>
9421 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
9424 2019-02-14 David Michael <fedora.dm0@gmail.com>
9425 Samuel Thibault <samuel.thibault@gnu.org>
9426 Thomas Schwinge <thomas@codesourcery.com>
9428 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
9429 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
9431 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
9433 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
9434 (check_empty): Use "const char *".
9436 * gnu-nat.c (gnu_nat_target::detach): Instead of
9437 'detach_inferior (pid)' call
9438 'detach_inferior (find_inferior_pid (pid))'.
9440 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
9441 'nat/fork-inferior.o'.
9442 * gnu-nat.c: #include "nat/fork-inferior.h".
9444 * gnu-nat.c (gnu_nat_target::detach): Instead of
9445 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
9446 * gnu-nat.h: #include "inf-child.h".
9447 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
9448 'i386_gnu_nat_target::fetch_registers'.
9449 (gnu_store_registers): Rename/move to
9450 'i386_gnu_nat_target::store_registers'.
9452 * config/i386/nm-i386gnu.h: Don't "#include" any files.
9453 * gnu-nat.h (mach_thread_info): New function.
9454 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
9456 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
9458 2019-02-14 Frederic Konrad <konrad@adacore.com>
9460 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
9462 2019-02-14 Joel Brobecker <brobecker@adacore.com>
9464 * windows-nat.c (windows_add_thread): Add new parameter
9465 "main_thread_p" with default value set to false. Update
9466 function documentation as well as all callers.
9467 (windows_delete_thread): Likewise.
9468 (fake_create_process): Update call to windows_add_thread.
9469 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
9470 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
9471 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
9472 call to windows_delete_thread.
9474 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
9476 * MAINTAINERS: Add Andrew Burgess as global maintainer.
9478 2019-02-12 John Baldwin <jhb@FreeBSD.org>
9480 * symfile.c (find_separate_debug_file): Use canonical path of
9481 sysroot with child_path instead of gdb_sysroot if it is valid.
9483 2019-02-12 John Baldwin <jhb@FreeBSD.org>
9485 * symfile.c (find_separate_debug_file): Use child_path to
9486 determine if an object file is under a sysroot.
9488 2019-02-12 John Baldwin <jhb@FreeBSD.org>
9490 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9491 unittests/child-path-selftests.c.
9492 * common/pathstuff.c (child_path): New function.
9493 * common/pathstuff.h (child_path): New prototype.
9494 * unittests/child-path-selftests.c: New file.
9496 2019-02-12 John Baldwin <jhb@FreeBSD.org>
9498 * symfile.c (find_separate_debug_file): Look for separate debug
9499 files in debug directories under the sysroot.
9501 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9503 * symtab.h (struct minimal_symbol data_p): New const method.
9504 (struct minimal_symbol text_p): Likewise.
9505 * symtab.c (output_source_filename): Use file name style
9507 (print_symbol_info): Likewise.
9508 (print_msymbol_info): Use address style to print addresses.
9509 Use function name style to print executable text symbols.
9510 (expand_symtab_containing_pc): Use data_p.
9511 (find_pc_sect_compunit_symtab): Likewise.
9513 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9515 * breakpoint.c (describe_other_breakpoints): Use address style
9517 (say_where): Likewise.
9519 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9521 * ada-typeprint.c (print_func_type): Print function name
9522 style to print function name.
9523 * c-typeprint.c (c_print_type_1): Likewise.
9525 2019-02-11 Alan Hayward <alan.hayward@arm.com>
9527 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
9530 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9532 * c-exp.y (direct_abs_decl): Use emplace_back to record the
9535 2019-02-10 Joel Brobecker <brobecker@adacore.com>
9537 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
9538 TYPE_CODE_REF types.
9540 2019-02-08 Jim Wilson <jimw@sifive.com>
9542 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
9543 (riscv_linux_fregset): New.
9544 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
9546 2019-02-07 Tom Tromey <tom@tromey.com>
9548 * thread.c (thread_cancel_execution_command): Update.
9549 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
9551 (struct thread_fsm_ops): Remove.
9552 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
9553 (thread_fsm_should_stop, thread_fsm_return_value)
9554 (thread_fsm_set_finished, thread_fsm_finished_p)
9555 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
9557 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
9558 * infrun.c (clear_proceed_status_thread)
9559 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
9560 (print_stop_event): Update.
9561 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
9563 (step_command_fsm_ops): Remove.
9564 (new_step_command_fsm): Remove.
9566 (step_command_fsm::should_stop): Rename from
9567 step_command_fsm_should_stop.
9568 (step_command_fsm::clean_up): Rename from
9569 step_command_fsm_clean_up.
9570 (step_command_fsm::do_async_reply_reason): Rename from
9571 step_command_fsm_async_reply_reason.
9572 (struct until_next_fsm): Inherit from thread_fsm. Add
9574 (until_next_fsm_ops): Remove.
9575 (new_until_next_fsm): Remove.
9576 (until_next_fsm::should_stop): Rename from
9577 until_next_fsm_should_stop.
9578 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
9579 (until_next_fsm::do_async_reply_reason): Rename from
9580 until_next_fsm_async_reply_reason.
9581 (struct finish_command_fsm): Inherit from thread_fsm. Add
9582 constructor. Change type of breakpoint.
9583 (finish_command_fsm_ops): Remove.
9584 (new_finish_command_fsm): Remove.
9585 (finish_command_fsm::should_stop): Rename from
9586 finish_command_fsm_should_stop.
9587 (finish_command_fsm::clean_up): Rename from
9588 finish_command_fsm_clean_up.
9589 (finish_command_fsm::return_value): Rename from
9590 finish_command_fsm_return_value.
9591 (finish_command_fsm::do_async_reply_reason): Rename from
9592 finish_command_fsm_async_reply_reason.
9593 (finish_command): Update.
9594 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
9596 (call_thread_fsm_ops): Remove.
9597 (call_thread_fsm::call_thread_fsm): Rename from
9598 new_call_thread_fsm.
9599 (call_thread_fsm::should_stop): Rename from
9600 call_thread_fsm_should_stop.
9601 (call_thread_fsm::should_notify_stop): Rename from
9602 call_thread_fsm_should_notify_stop.
9603 (run_inferior_call, call_function_by_hand_dummy): Update.
9604 * cli/cli-interp.c (should_print_stop_to_console): Update.
9605 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
9606 Add constructor. Change type of location_breakpoint,
9608 (until_break_fsm_ops): Remove.
9609 (new_until_break_fsm): Remove.
9610 (until_break_fsm::should_stop): Rename from
9611 until_break_fsm_should_stop.
9612 (until_break_fsm::clean_up): Rename from
9613 until_break_fsm_clean_up.
9614 (until_break_fsm::do_async_reply_reason): Rename from
9615 until_break_fsm_async_reply_reason.
9616 (until_break_command): Update.
9617 * thread-fsm.c: Remove.
9618 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
9620 2019-02-07 Tom Tromey <tom@tromey.com>
9622 * yy-remap.h: Add include guard.
9623 * xtensa-tdep.h: Add include guard.
9624 * xcoffread.h: Rename include guard.
9625 * varobj-iter.h: Add include guard.
9626 * tui/tui.h: Rename include guard.
9627 * tui/tui-winsource.h: Rename include guard.
9628 * tui/tui-wingeneral.h: Rename include guard.
9629 * tui/tui-windata.h: Rename include guard.
9630 * tui/tui-win.h: Rename include guard.
9631 * tui/tui-stack.h: Rename include guard.
9632 * tui/tui-source.h: Rename include guard.
9633 * tui/tui-regs.h: Rename include guard.
9634 * tui/tui-out.h: Rename include guard.
9635 * tui/tui-layout.h: Rename include guard.
9636 * tui/tui-io.h: Rename include guard.
9637 * tui/tui-hooks.h: Rename include guard.
9638 * tui/tui-file.h: Rename include guard.
9639 * tui/tui-disasm.h: Rename include guard.
9640 * tui/tui-data.h: Rename include guard.
9641 * tui/tui-command.h: Rename include guard.
9642 * tic6x-tdep.h: Add include guard.
9643 * target/waitstatus.h: Rename include guard.
9644 * target/wait.h: Rename include guard.
9645 * target/target.h: Rename include guard.
9646 * target/resume.h: Rename include guard.
9647 * target-float.h: Rename include guard.
9648 * stabsread.h: Add include guard.
9649 * rs6000-tdep.h: Add include guard.
9650 * riscv-fbsd-tdep.h: Add include guard.
9651 * regformats/regdef.h: Rename include guard.
9652 * record.h: Rename include guard.
9653 * python/python.h: Rename include guard.
9654 * python/python-internal.h: Rename include guard.
9655 * python/py-stopevent.h: Rename include guard.
9656 * python/py-ref.h: Rename include guard.
9657 * python/py-record.h: Rename include guard.
9658 * python/py-record-full.h: Rename include guard.
9659 * python/py-record-btrace.h: Rename include guard.
9660 * python/py-instruction.h: Rename include guard.
9661 * python/py-events.h: Rename include guard.
9662 * python/py-event.h: Rename include guard.
9663 * procfs.h: Add include guard.
9664 * proc-utils.h: Add include guard.
9665 * p-lang.h: Add include guard.
9666 * or1k-tdep.h: Rename include guard.
9667 * observable.h: Rename include guard.
9668 * nto-tdep.h: Rename include guard.
9669 * nat/x86-linux.h: Rename include guard.
9670 * nat/x86-linux-dregs.h: Rename include guard.
9671 * nat/x86-gcc-cpuid.h: Add include guard.
9672 * nat/x86-dregs.h: Rename include guard.
9673 * nat/x86-cpuid.h: Rename include guard.
9674 * nat/ppc-linux.h: Rename include guard.
9675 * nat/mips-linux-watch.h: Rename include guard.
9676 * nat/linux-waitpid.h: Rename include guard.
9677 * nat/linux-ptrace.h: Rename include guard.
9678 * nat/linux-procfs.h: Rename include guard.
9679 * nat/linux-osdata.h: Rename include guard.
9680 * nat/linux-nat.h: Rename include guard.
9681 * nat/linux-namespaces.h: Rename include guard.
9682 * nat/linux-btrace.h: Rename include guard.
9683 * nat/glibc_thread_db.h: Rename include guard.
9684 * nat/gdb_thread_db.h: Rename include guard.
9685 * nat/gdb_ptrace.h: Rename include guard.
9686 * nat/fork-inferior.h: Rename include guard.
9687 * nat/amd64-linux-siginfo.h: Rename include guard.
9688 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
9689 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
9690 * nat/aarch64-linux.h: Rename include guard.
9691 * nat/aarch64-linux-hw-point.h: Rename include guard.
9692 * mn10300-tdep.h: Add include guard.
9693 * mips-linux-tdep.h: Add include guard.
9694 * mi/mi-parse.h: Rename include guard.
9695 * mi/mi-out.h: Rename include guard.
9696 * mi/mi-main.h: Rename include guard.
9697 * mi/mi-interp.h: Rename include guard.
9698 * mi/mi-getopt.h: Rename include guard.
9699 * mi/mi-console.h: Rename include guard.
9700 * mi/mi-common.h: Rename include guard.
9701 * mi/mi-cmds.h: Rename include guard.
9702 * mi/mi-cmd-break.h: Rename include guard.
9703 * m2-lang.h: Add include guard.
9704 * location.h: Rename include guard.
9705 * linux-record.h: Rename include guard.
9706 * linux-nat.h: Add include guard.
9707 * linux-fork.h: Add include guard.
9708 * i386-darwin-tdep.h: Rename include guard.
9709 * hppa-linux-offsets.h: Add include guard.
9710 * guile/guile.h: Rename include guard.
9711 * guile/guile-internal.h: Rename include guard.
9712 * gnu-nat.h: Rename include guard.
9713 * gdb-stabs.h: Rename include guard.
9714 * frv-tdep.h: Add include guard.
9715 * f-lang.h: Add include guard.
9716 * event-loop.h: Add include guard.
9717 * darwin-nat.h: Rename include guard.
9718 * cp-abi.h: Rename include guard.
9719 * config/sparc/nm-sol2.h: Rename include guard.
9720 * config/nm-nto.h: Rename include guard.
9721 * config/nm-linux.h: Add include guard.
9722 * config/i386/nm-i386gnu.h: Rename include guard.
9723 * config/djgpp/nl_types.h: Rename include guard.
9724 * config/djgpp/langinfo.h: Rename include guard.
9725 * compile/gcc-cp-plugin.h: Add include guard.
9726 * compile/gcc-c-plugin.h: Add include guard.
9727 * compile/compile.h: Rename include guard.
9728 * compile/compile-object-run.h: Rename include guard.
9729 * compile/compile-object-load.h: Rename include guard.
9730 * compile/compile-internal.h: Rename include guard.
9731 * compile/compile-cplus.h: Rename include guard.
9732 * compile/compile-c.h: Rename include guard.
9733 * common/xml-utils.h: Rename include guard.
9734 * common/x86-xstate.h: Rename include guard.
9735 * common/version.h: Rename include guard.
9736 * common/vec.h: Rename include guard.
9737 * common/tdesc.h: Rename include guard.
9738 * common/selftest.h: Rename include guard.
9739 * common/scoped_restore.h: Rename include guard.
9740 * common/scoped_mmap.h: Rename include guard.
9741 * common/scoped_fd.h: Rename include guard.
9742 * common/safe-iterator.h: Rename include guard.
9743 * common/run-time-clock.h: Rename include guard.
9744 * common/refcounted-object.h: Rename include guard.
9745 * common/queue.h: Rename include guard.
9746 * common/ptid.h: Rename include guard.
9747 * common/print-utils.h: Rename include guard.
9748 * common/preprocessor.h: Rename include guard.
9749 * common/pathstuff.h: Rename include guard.
9750 * common/observable.h: Rename include guard.
9751 * common/netstuff.h: Rename include guard.
9752 * common/job-control.h: Rename include guard.
9753 * common/host-defs.h: Rename include guard.
9754 * common/gdb_wait.h: Rename include guard.
9755 * common/gdb_vecs.h: Rename include guard.
9756 * common/gdb_unlinker.h: Rename include guard.
9757 * common/gdb_unique_ptr.h: Rename include guard.
9758 * common/gdb_tilde_expand.h: Rename include guard.
9759 * common/gdb_sys_time.h: Rename include guard.
9760 * common/gdb_string_view.h: Rename include guard.
9761 * common/gdb_splay_tree.h: Rename include guard.
9762 * common/gdb_setjmp.h: Rename include guard.
9763 * common/gdb_ref_ptr.h: Rename include guard.
9764 * common/gdb_optional.h: Rename include guard.
9765 * common/gdb_locale.h: Rename include guard.
9766 * common/gdb_assert.h: Rename include guard.
9767 * common/filtered-iterator.h: Rename include guard.
9768 * common/filestuff.h: Rename include guard.
9769 * common/fileio.h: Rename include guard.
9770 * common/environ.h: Rename include guard.
9771 * common/common-utils.h: Rename include guard.
9772 * common/common-types.h: Rename include guard.
9773 * common/common-regcache.h: Rename include guard.
9774 * common/common-inferior.h: Rename include guard.
9775 * common/common-gdbthread.h: Rename include guard.
9776 * common/common-exceptions.h: Rename include guard.
9777 * common/common-defs.h: Rename include guard.
9778 * common/common-debug.h: Rename include guard.
9779 * common/cleanups.h: Rename include guard.
9780 * common/buffer.h: Rename include guard.
9781 * common/btrace-common.h: Rename include guard.
9782 * common/break-common.h: Rename include guard.
9783 * cli/cli-utils.h: Rename include guard.
9784 * cli/cli-style.h: Rename include guard.
9785 * cli/cli-setshow.h: Rename include guard.
9786 * cli/cli-script.h: Rename include guard.
9787 * cli/cli-interp.h: Rename include guard.
9788 * cli/cli-decode.h: Rename include guard.
9789 * cli/cli-cmds.h: Rename include guard.
9790 * charset-list.h: Add include guard.
9791 * buildsym-legacy.h: Rename include guard.
9792 * bfin-tdep.h: Add include guard.
9793 * ax.h: Rename include guard.
9794 * arm-linux-tdep.h: Add include guard.
9795 * arm-fbsd-tdep.h: Add include guard.
9796 * arch/xtensa.h: Rename include guard.
9797 * arch/tic6x.h: Add include guard.
9798 * arch/i386.h: Add include guard.
9799 * arch/arm.h: Rename include guard.
9800 * arch/arm-linux.h: Rename include guard.
9801 * arch/arm-get-next-pcs.h: Rename include guard.
9802 * arch/amd64.h: Add include guard.
9803 * arch/aarch64-insn.h: Rename include guard.
9804 * arch-utils.h: Rename include guard.
9805 * annotate.h: Add include guard.
9806 * amd64-darwin-tdep.h: Rename include guard.
9807 * aarch64-linux-tdep.h: Add include guard.
9808 * aarch64-fbsd-tdep.h: Add include guard.
9809 * aarch32-linux-nat.h: Add include guard.
9811 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9813 * macrotab.c (macro_define_internal): New function that
9814 factorizes macro_define_object_internal and macro_define_function
9816 (macro_define_object_internal): Use macro_define_internal.
9817 (macro_define_function): Likewise.
9819 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9821 * macrocmd.c (extract_identifier): Return
9822 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
9825 2019-02-06 John Baldwin <jhb@FreeBSD.org>
9827 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
9829 2019-02-05 Tom Tromey <tom@tromey.com>
9831 * target.c (target_stack::unpush): Move assertion earlier.
9833 2019-01-30 Tom Tromey <tom@tromey.com>
9836 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
9837 (gdbpy_parse_and_eval): Likewise.
9838 * python/python-internal.h (gdbpy_allow_threads): New class.
9840 2019-01-28 John Baldwin <jhb@FreeBSD.org>
9842 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
9843 (aarch64_fbsd_fpregmap): Move earlier.
9844 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
9845 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
9846 instead of individual calls to trad_frame_set_reg_addr.
9847 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
9849 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
9850 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
9851 instead of individual calls to trad_frame_set_reg_addr.
9853 2019-01-28 Alan Hayward <alan.hayward@arm.com>
9855 * CONTRIBUTE: Replace contribution list with wiki link.
9857 2019-01-25 Tom Tromey <tom@tromey.com>
9859 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
9861 2019-01-25 Tom Tromey <tom@tromey.com>
9863 * xtensa-linux-nat.c: Fix common/ includes.
9864 * xml-support.h: Fix common/ includes.
9865 * xml-support.c: Fix common/ includes.
9866 * x86-linux-nat.c: Fix common/ includes.
9867 * windows-nat.c: Fix common/ includes.
9868 * varobj.h: Fix common/ includes.
9869 * varobj.c: Fix common/ includes.
9870 * value.c: Fix common/ includes.
9871 * valops.c: Fix common/ includes.
9872 * utils.c: Fix common/ includes.
9873 * unittests/xml-utils-selftests.c: Fix common/ includes.
9874 * unittests/utils-selftests.c: Fix common/ includes.
9875 * unittests/unpack-selftests.c: Fix common/ includes.
9876 * unittests/tracepoint-selftests.c: Fix common/ includes.
9877 * unittests/style-selftests.c: Fix common/ includes.
9878 * unittests/string_view-selftests.c: Fix common/ includes.
9879 * unittests/scoped_restore-selftests.c: Fix common/ includes.
9880 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
9881 * unittests/scoped_fd-selftests.c: Fix common/ includes.
9882 * unittests/rsp-low-selftests.c: Fix common/ includes.
9883 * unittests/parse-connection-spec-selftests.c: Fix common/
9885 * unittests/optional-selftests.c: Fix common/ includes.
9886 * unittests/offset-type-selftests.c: Fix common/ includes.
9887 * unittests/observable-selftests.c: Fix common/ includes.
9888 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
9889 * unittests/memrange-selftests.c: Fix common/ includes.
9890 * unittests/memory-map-selftests.c: Fix common/ includes.
9891 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
9892 * unittests/function-view-selftests.c: Fix common/ includes.
9893 * unittests/environ-selftests.c: Fix common/ includes.
9894 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
9895 * unittests/common-utils-selftests.c: Fix common/ includes.
9896 * unittests/cli-utils-selftests.c: Fix common/ includes.
9897 * unittests/array-view-selftests.c: Fix common/ includes.
9898 * ui-file.c: Fix common/ includes.
9899 * tui/tui-io.c: Fix common/ includes.
9900 * tracepoint.h: Fix common/ includes.
9901 * tracepoint.c: Fix common/ includes.
9902 * tracefile-tfile.c: Fix common/ includes.
9903 * top.h: Fix common/ includes.
9904 * top.c: Fix common/ includes.
9905 * thread.c: Fix common/ includes.
9906 * target/waitstatus.h: Fix common/ includes.
9907 * target/waitstatus.c: Fix common/ includes.
9908 * target.h: Fix common/ includes.
9909 * target.c: Fix common/ includes.
9910 * target-memory.c: Fix common/ includes.
9911 * target-descriptions.c: Fix common/ includes.
9912 * symtab.h: Fix common/ includes.
9913 * symfile.c: Fix common/ includes.
9914 * stap-probe.c: Fix common/ includes.
9915 * spu-linux-nat.c: Fix common/ includes.
9916 * sparc-nat.c: Fix common/ includes.
9917 * source.c: Fix common/ includes.
9918 * solib.c: Fix common/ includes.
9919 * solib-target.c: Fix common/ includes.
9920 * ser-unix.c: Fix common/ includes.
9921 * ser-tcp.c: Fix common/ includes.
9922 * ser-pipe.c: Fix common/ includes.
9923 * ser-base.c: Fix common/ includes.
9924 * selftest-arch.c: Fix common/ includes.
9925 * s12z-tdep.c: Fix common/ includes.
9926 * rust-exp.y: Fix common/ includes.
9927 * rs6000-aix-tdep.c: Fix common/ includes.
9928 * riscv-tdep.c: Fix common/ includes.
9929 * remote.c: Fix common/ includes.
9930 * remote-notif.h: Fix common/ includes.
9931 * remote-fileio.h: Fix common/ includes.
9932 * remote-fileio.c: Fix common/ includes.
9933 * regcache.h: Fix common/ includes.
9934 * regcache.c: Fix common/ includes.
9935 * record-btrace.c: Fix common/ includes.
9936 * python/python.c: Fix common/ includes.
9937 * python/py-type.c: Fix common/ includes.
9938 * python/py-inferior.c: Fix common/ includes.
9939 * progspace.h: Fix common/ includes.
9940 * producer.c: Fix common/ includes.
9941 * procfs.c: Fix common/ includes.
9942 * proc-api.c: Fix common/ includes.
9943 * printcmd.c: Fix common/ includes.
9944 * ppc-linux-nat.c: Fix common/ includes.
9945 * parser-defs.h: Fix common/ includes.
9946 * osdata.c: Fix common/ includes.
9947 * obsd-nat.c: Fix common/ includes.
9948 * nat/x86-linux.c: Fix common/ includes.
9949 * nat/x86-linux-dregs.c: Fix common/ includes.
9950 * nat/x86-dregs.h: Fix common/ includes.
9951 * nat/x86-dregs.c: Fix common/ includes.
9952 * nat/ppc-linux.c: Fix common/ includes.
9953 * nat/mips-linux-watch.h: Fix common/ includes.
9954 * nat/mips-linux-watch.c: Fix common/ includes.
9955 * nat/linux-waitpid.c: Fix common/ includes.
9956 * nat/linux-ptrace.h: Fix common/ includes.
9957 * nat/linux-ptrace.c: Fix common/ includes.
9958 * nat/linux-procfs.c: Fix common/ includes.
9959 * nat/linux-personality.c: Fix common/ includes.
9960 * nat/linux-osdata.c: Fix common/ includes.
9961 * nat/linux-namespaces.c: Fix common/ includes.
9962 * nat/linux-btrace.h: Fix common/ includes.
9963 * nat/linux-btrace.c: Fix common/ includes.
9964 * nat/fork-inferior.c: Fix common/ includes.
9965 * nat/amd64-linux-siginfo.c: Fix common/ includes.
9966 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
9967 * nat/aarch64-linux.c: Fix common/ includes.
9968 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
9969 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
9970 * namespace.h: Fix common/ includes.
9971 * mips-linux-tdep.c: Fix common/ includes.
9972 * minsyms.c: Fix common/ includes.
9973 * mi/mi-parse.h: Fix common/ includes.
9974 * mi/mi-main.c: Fix common/ includes.
9975 * mi/mi-cmd-env.c: Fix common/ includes.
9976 * memrange.h: Fix common/ includes.
9977 * memattr.c: Fix common/ includes.
9978 * maint.h: Fix common/ includes.
9979 * maint.c: Fix common/ includes.
9980 * main.c: Fix common/ includes.
9981 * machoread.c: Fix common/ includes.
9982 * location.c: Fix common/ includes.
9983 * linux-thread-db.c: Fix common/ includes.
9984 * linux-nat.c: Fix common/ includes.
9985 * linux-fork.c: Fix common/ includes.
9986 * inline-frame.c: Fix common/ includes.
9987 * infrun.c: Fix common/ includes.
9988 * inflow.c: Fix common/ includes.
9989 * inferior.h: Fix common/ includes.
9990 * inferior.c: Fix common/ includes.
9991 * infcmd.c: Fix common/ includes.
9992 * inf-ptrace.c: Fix common/ includes.
9993 * inf-child.c: Fix common/ includes.
9994 * ia64-linux-nat.c: Fix common/ includes.
9995 * i387-tdep.c: Fix common/ includes.
9996 * i386-tdep.c: Fix common/ includes.
9997 * i386-linux-tdep.c: Fix common/ includes.
9998 * i386-linux-nat.c: Fix common/ includes.
9999 * i386-go32-tdep.c: Fix common/ includes.
10000 * i386-fbsd-tdep.c: Fix common/ includes.
10001 * i386-fbsd-nat.c: Fix common/ includes.
10002 * guile/scm-type.c: Fix common/ includes.
10003 * guile/guile.c: Fix common/ includes.
10004 * go32-nat.c: Fix common/ includes.
10005 * gnu-nat.c: Fix common/ includes.
10006 * gdbthread.h: Fix common/ includes.
10007 * gdbarch-selftests.c: Fix common/ includes.
10008 * gdb_usleep.c: Fix common/ includes.
10009 * gdb_select.h: Fix common/ includes.
10010 * gdb_bfd.c: Fix common/ includes.
10011 * gcore.c: Fix common/ includes.
10012 * fork-child.c: Fix common/ includes.
10013 * findvar.c: Fix common/ includes.
10014 * fbsd-nat.c: Fix common/ includes.
10015 * event-top.c: Fix common/ includes.
10016 * event-loop.c: Fix common/ includes.
10017 * dwarf2read.c: Fix common/ includes.
10018 * dwarf2loc.c: Fix common/ includes.
10019 * dwarf2-frame.c: Fix common/ includes.
10020 * dwarf-index-cache.c: Fix common/ includes.
10021 * dtrace-probe.c: Fix common/ includes.
10022 * disasm-selftests.c: Fix common/ includes.
10023 * defs.h: Fix common/ includes.
10024 * csky-tdep.c: Fix common/ includes.
10025 * cp-valprint.c: Fix common/ includes.
10026 * cp-support.h: Fix common/ includes.
10027 * cp-support.c: Fix common/ includes.
10028 * corelow.c: Fix common/ includes.
10029 * completer.h: Fix common/ includes.
10030 * completer.c: Fix common/ includes.
10031 * compile/compile.c: Fix common/ includes.
10032 * compile/compile-loc2c.c: Fix common/ includes.
10033 * compile/compile-cplus-types.c: Fix common/ includes.
10034 * compile/compile-cplus-symbols.c: Fix common/ includes.
10035 * command.h: Fix common/ includes.
10036 * cli/cli-dump.c: Fix common/ includes.
10037 * cli/cli-cmds.c: Fix common/ includes.
10038 * charset.c: Fix common/ includes.
10039 * build-id.c: Fix common/ includes.
10040 * btrace.h: Fix common/ includes.
10041 * btrace.c: Fix common/ includes.
10042 * breakpoint.h: Fix common/ includes.
10043 * breakpoint.c: Fix common/ includes.
10045 (enum agent_op): Fix common/ includes.
10046 * ax-general.c (struct aop_map): Fix common/ includes.
10047 * ax-gdb.c: Fix common/ includes.
10048 * auxv.c: Fix common/ includes.
10049 * auto-load.c: Fix common/ includes.
10050 * arm-tdep.c: Fix common/ includes.
10051 * arch/riscv.c: Fix common/ includes.
10052 * arch/ppc-linux-common.c: Fix common/ includes.
10053 * arch/i386.c: Fix common/ includes.
10054 * arch/arm.c: Fix common/ includes.
10055 * arch/arm-linux.c: Fix common/ includes.
10056 * arch/arm-get-next-pcs.c: Fix common/ includes.
10057 * arch/amd64.c: Fix common/ includes.
10058 * arch/aarch64.c: Fix common/ includes.
10059 * arch/aarch64-insn.c: Fix common/ includes.
10060 * arch-utils.c: Fix common/ includes.
10061 * amd64-windows-tdep.c: Fix common/ includes.
10062 * amd64-tdep.c: Fix common/ includes.
10063 * amd64-sol2-tdep.c: Fix common/ includes.
10064 * amd64-obsd-tdep.c: Fix common/ includes.
10065 * amd64-nbsd-tdep.c: Fix common/ includes.
10066 * amd64-linux-tdep.c: Fix common/ includes.
10067 * amd64-linux-nat.c: Fix common/ includes.
10068 * amd64-fbsd-tdep.c: Fix common/ includes.
10069 * amd64-fbsd-nat.c: Fix common/ includes.
10070 * amd64-dicos-tdep.c: Fix common/ includes.
10071 * amd64-darwin-tdep.c: Fix common/ includes.
10072 * agent.c: Fix common/ includes.
10073 * ada-lang.h: Fix common/ includes.
10074 * ada-lang.c: Fix common/ includes.
10075 * aarch64-tdep.c: Fix common/ includes.
10077 2019-01-25 Tom Tromey <tom@tromey.com>
10079 * common/create-version.sh: Use common/version.h.
10081 2019-01-24 Pedro Alves <palves@redhat.com>
10083 * infrun.c (signal_stop, signal_print, signal_program)
10084 (signal_catch, signal_pass): Now arrays instead of pointers.
10085 (update_signals_program_target, do_target_resume)
10086 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
10087 * linux-nat.c (linux_nat_target::pass_signals)
10088 (linux_nat_target::create_inferior, linux_nat_target::attach):
10090 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
10091 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
10092 * procfs.c (procfs_target::pass_signals): Adjust.
10093 * record-full.c (record_full_target::resume): Adjust.
10094 * remote.c (remote_target::pass_signals)
10095 (remote_target::program_signals): Adjust.
10096 * target-debug.h (target_debug_print_signals): Now takes a
10097 gdb::array_view as parameter. Adjust.
10098 * target.h (target_ops) <pass_signals, program_signals>: Replace
10099 pointer and length parameters with gdb::array_view.
10100 (target_pass_signals, target_program_signals): Likewise.
10101 * target-delegates.c: Regenerate.
10103 2019-01-24 Pedro Alves <palves@redhat.com>
10105 * common/forward-scope-exit.h
10106 (forward_scope_exit::forward_scope_exit): Pass arguments to
10107 m_bind_function directly, instead of creating a std::bind and
10110 2019-01-24 Alan Hayward <alan.hayward@arm.com>
10112 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
10113 for static members.
10114 (pass_in_v_vfp_candidate): Likewise.
10116 2019-01-23 Tom Tromey <tom@tromey.com>
10117 Pedro Alves <palves@redhat.com>
10119 * regcache.c (class regcache_invalidator): Remove.
10120 (regcache::raw_write): Use make_scope_exit.
10122 2019-01-23 Tom Tromey <tom@tromey.com>
10124 * ui-out.h (class ui_out_emit_type): Update comment.
10126 2019-01-23 Tom Tromey <tom@tromey.com>
10128 * infrun.c (fetch_inferior_event): Update comment.
10130 2019-01-23 Tom Tromey <tom@tromey.com>
10131 Pedro Alves <palves@redhat.com>
10133 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
10135 (fetch_inferior_event): Use SCOPE_EXIT.
10138 2019-01-23 Tom Tromey <tom@tromey.com>
10139 Pedro Alves <palves@redhat.com>
10141 * infrun.c (disable_thread_events): Delete.
10142 (stop_all_threads): Use SCOPE_EXIT.
10144 2019-01-23 Tom Tromey <tom@tromey.com>
10145 Pedro Alves <palves@redhat.com>
10147 * symfile.c: Include forward-scope-exit.h.
10148 (clear_symtab_users_cleanup): Replace forward declaration with
10149 a FORWARD_SCOPE_EXIT.
10150 (syms_from_objfile_1): Use the forward_scope_exit and
10151 gdb::optional instead of cleanup_function.
10152 (reread_symbols): Use the forward_scope_exit instead of
10154 (clear_symtab_users_cleanup): Remove function.
10156 2019-01-23 Tom Tromey <tom@tromey.com>
10157 Pedro Alves <palves@redhat.com>
10159 * linux-nat.c: Include scope-exit.h.
10160 (cleanup_target_stop): Remove.
10161 (linux_nat_target::static_tracepoint_markers_by_strid): Use
10164 2019-01-23 Tom Tromey <tom@tromey.com>
10165 Pedro Alves <palves@redhat.com>
10167 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
10168 (call_function_by_hand_dummy): Use SCOPE_EXIT.
10170 2019-01-23 Tom Tromey <tom@tromey.com>
10171 Andrew Burgess <andrew.burgess@embecosm.com>
10172 Pedro Alves <palves@redhat.com>
10174 * infrun.c (fetch_inferior_event): Use scope_exit.
10175 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
10176 * top.c (execute_command): Use scope_exit.
10177 * breakpoint.c (bpstat_do_actions): Use scope_exit.
10178 * utils.c (do_bpstat_clear_actions_cleanup)
10179 (make_bpstat_clear_actions_cleanup): Remove.
10181 2019-01-23 Tom Tromey <tom@tromey.com>
10182 Pedro Alves <palves@redhat.com>
10184 * infrun.c: Include "common/scope-exit.h"
10185 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
10186 (wait_for_inferior): Use SCOPE_EXIT.
10187 (fetch_inferior_event): Use scope_exit.
10189 2019-01-23 Tom Tromey <tom@tromey.com>
10190 Pedro Alves <palves@redhat.com>
10192 * breakpoint.c (create_breakpoint): Remove cleanup.
10194 2019-01-23 Tom Tromey <tom@tromey.com>
10195 Andrew Burgess <andrew.burgess@embecosm.com>
10196 Pedro Alves <palves@redhat.com>
10198 2019-01-23 Pedro Alves <palves@redhat.com>
10200 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
10202 2019-01-23 Pedro Alves <palves@redhat.com>
10203 Andrew Burgess <andrew.burgess@embecosm.com>
10205 * gdbthread.h: Include "common/forward-scope-exit.h".
10206 (scoped_finish_thread_state): Redefine custom class in terms of
10207 forward_scope_exit.
10209 2019-01-23 Pedro Alves <palves@redhat.com>
10210 Andrew Burgess <andrew.burgess@embecosm.com>
10212 * common/forward-scope-exit.h: New file.
10214 2019-01-23 Pedro Alves <palves@redhat.com>
10215 Andrew Burgess <andrew.burgess@embecosm.com>
10216 Tom Tromey <tom@tromey.com>
10218 * common/scope-exit.h: New file.
10220 2019-01-23 Pedro Alves <palves@redhat.com>
10222 * common/preprocessor.h (ESC): Rename to ...
10223 (ESC_PARENS): ... this.
10224 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
10225 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
10227 2019-01-23 Tom Tromey <tom@tromey.com>
10229 * language.h (class scoped_switch_to_sym_language_if_auto):
10230 Initialize m_lang in both cases.
10232 2019-01-23 Alan Hayward <alan.hayward@arm.com>
10234 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
10237 2019-01-22 Tom Tromey <tom@tromey.com>
10239 * corelow.c: Do not include sys/file.h.
10241 2019-01-22 Tom Tromey <tom@tromey.com>
10243 * tui/tui-wingeneral.h: Include gdb_curses.h.
10245 2019-01-22 Tom Tromey <tom@tromey.com>
10247 * source-cache.h (class source_cache) <get_source_lines,
10248 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
10250 2019-01-22 Tom Tromey <tom@tromey.com>
10252 * remote-fileio.h (struct remote_target): Declare.
10254 2019-01-22 Tom Tromey <tom@tromey.com>
10256 * python/py-arch.c: Do not include py-ref.h.
10257 * python/py-bpevent.c: Do not include py-ref.h.
10258 * python/py-cmd.c: Do not include py-ref.h.
10259 * python/py-continueevent.c: Do not include py-ref.h.
10260 * python/py-event.h: Do not include py-ref.h.
10261 * python/py-evtregistry.c: Do not include py-ref.h.
10262 * python/py-finishbreakpoint.c: Do not include py-ref.h.
10263 * python/py-frame.c: Do not include py-ref.h.
10264 * python/py-framefilter.c: Do not include py-ref.h.
10265 * python/py-function.c: Do not include py-ref.h.
10266 * python/py-infevents.c: Do not include py-ref.h.
10267 * python/py-linetable.c: Do not include py-ref.h.
10268 * python/py-objfile.c: Do not include py-ref.h.
10269 * python/py-param.c: Do not include py-ref.h.
10270 * python/py-prettyprint.c: Do not include py-ref.h.
10271 * python/py-progspace.c: Do not include py-ref.h.
10272 * python/py-symbol.c: Do not include py-ref.h.
10273 * python/py-symtab.c: Do not include py-ref.h.
10274 * python/py-type.c: Do not include py-ref.h.
10275 * python/py-unwind.c: Do not include py-ref.h.
10276 * python/py-utils.c: Do not include py-ref.h.
10277 * python/py-value.c: Do not include py-ref.h.
10278 * python/py-varobj.c: Do not include py-ref.h.
10279 * python/py-xmethods.c: Do not include py-ref.h.
10280 * python/python.c: Do not include py-ref.h.
10281 * varobj.c: Do not include py-ref.h.
10283 2019-01-22 Tom Tromey <tom@tromey.com>
10285 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
10286 keyword for bcache.
10288 2019-01-22 Tom Tromey <tom@tromey.com>
10290 * compile/compile-cplus-types.c: Remove a comment by #include.
10292 2019-01-22 Tom Tromey <tom@tromey.com>
10294 * compile/gcc-c-plugin.h: Include compile-internal.h.
10296 2019-01-22 Tom Tromey <tom@tromey.com>
10298 * stabsread.c (EXTERN): Do not define.
10299 (symnum, next_symbol_text_func, processing_gcc_compilation)
10300 (within_function, global_sym_chain, global_stabs)
10301 (previous_stab_code, this_object_header_files)
10302 (n_this_object_header_files)
10303 (n_allocated_this_object_header_files): Define.
10304 * stabsread.h (EXTERN): Never define. Use "extern".
10306 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10308 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
10311 2019-01-21 Tom Tromey <tom@tromey.com>
10313 * ui-out.c: Fix includes.
10314 * tui/tui-source.c: Fix includes.
10315 * target.c: Fix includes.
10316 * remote.c: Fix includes.
10317 * regcache.c: Fix includes.
10318 * python/py-block.c: Fix includes.
10319 * printcmd.c: Fix includes.
10320 * or1k-tdep.c: Fix includes.
10321 * mi/mi-main.c: Fix includes.
10322 * m32r-tdep.c: Fix includes.
10323 * csky-tdep.c: Fix includes.
10324 * compile/compile-cplus-types.c: Fix includes.
10325 * cli/cli-interp.c: Fix includes.
10327 2019-01-21 Alan Hayward <alan.hayward@arm.com>
10329 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
10332 2019-01-16 Tom Tromey <tom@tromey.com>
10334 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
10336 (struct objfile) <msymbols_range>: Move from top level.
10337 <msymbols>: New method.
10338 (class objfile_msymbols): Remove.
10339 * symtab.c (default_collect_symbol_completion_matches_break_on):
10341 * symmisc.c (dump_msymbols): Update.
10342 * stabsread.c (scan_file_globals): Update.
10343 * objc-lang.c (info_selectors_command, info_classes_command)
10344 (find_methods): Update.
10345 * minsyms.c (find_solib_trampoline_target): Update.
10346 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
10347 * coffread.c (coff_symfile_read): Update.
10348 * ada-lang.c (ada_lookup_simple_minsym)
10349 (ada_collect_symbol_completion_matches): Update.
10351 2019-01-16 Tom Tromey <tom@tromey.com>
10353 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
10354 type. Remove no-argument constructor.
10355 <iterator::operator++>: Simplify.
10357 <end>: Use minimal_symbol_count.
10359 2019-01-16 Tom Tromey <tom@tromey.com>
10361 * objfiles.h (struct objfile) <psymtabs>: New method.
10362 (class objfile_psymtabs): Remove.
10363 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
10365 <range>: New method.
10366 (require_partial_symbols): Change return type.
10367 * psymtab.c (require_partial_symbols)
10368 (psym_expand_symtabs_matching): Update.
10369 * mdebugread.c (parse_partial_symbols): Update.
10370 * dbxread.c (dbx_end_psymtab): Update.
10372 2019-01-15 Tom Tromey <tom@tromey.com>
10374 * symtab.c (lookup_objfile_from_block)
10375 (lookup_symbol_in_objfile_symtabs)
10376 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
10377 (find_line_symtab, info_sources_command)
10378 (default_collect_symbol_completion_matches_break_on)
10379 (make_source_files_completion_list): Update.
10380 * symmisc.c (print_objfile_statistics, dump_objfile)
10381 (maintenance_print_symbols, maintenance_info_symtabs)
10382 (maintenance_check_symtabs, maintenance_info_line_tables):
10384 * source.c (select_source_symtab)
10385 (forget_cached_source_info_for_objfile): Update.
10386 * objfiles.h (class objfile_compunits): Remove.
10387 (struct objfile) <compunits_range>: New typedef.
10388 (compunits): New method.
10389 * objfiles.c (objfile_relocate1): Update.
10390 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
10391 * maint.c (count_symtabs_and_blocks): Update.
10392 * linespec.c (iterate_over_all_matching_symtabs): Update.
10393 * cp-support.c (add_symbol_overload_list_qualified): Update.
10394 * coffread.c (coff_symtab_read): Update.
10395 * ada-lang.c (add_nonlocal_symbols)
10396 (ada_collect_symbol_completion_matches)
10397 (ada_add_global_exceptions): Update.
10399 2019-01-15 Tom Tromey <tom@tromey.com>
10401 * progspace.h (program_space) <objfiles_safe_range>: New
10403 <objfiles_safe>: New method.
10404 * objfiles.h (class all_objfiles_safe): Remove.
10405 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
10406 * jit.c (jit_inferior_exit_hook): Update.
10408 2019-01-17 Tom Tromey <tom@tromey.com>
10410 * progspace.h (program_space) <objfiles_range>: New typedef.
10411 <objfiles>: New method.
10412 <objfiles_head>: Rename from objfiles.
10413 (object_files): Update.
10414 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
10415 * guile/scm-pretty-print.c
10416 (ppscm_find_pretty_printer_from_objfiles): Update.
10417 * guile/scm-objfile.c (gdbscm_objfiles): Update.
10418 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
10420 * python/py-progspace.c (pspy_get_objfiles): Update.
10421 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
10423 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
10424 (objfpy_lookup_objfile_by_build_id): Update.
10425 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
10426 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
10428 * symtab.c (iterate_over_symtabs, matching_obj_sections)
10429 (expand_symtab_containing_pc, lookup_objfile_from_block)
10430 (lookup_static_symbol, basic_lookup_transparent_type)
10431 (find_pc_sect_compunit_symtab, find_symbol_at_address)
10432 (find_line_symtab, info_sources_command)
10433 (default_collect_symbol_completion_matches_break_on)
10434 (make_source_files_completion_list, find_main_name): Update.
10435 * symmisc.c (print_symbol_bcache_statistics)
10436 (print_objfile_statistics, maintenance_print_symbols)
10437 (maintenance_print_msymbols, maintenance_print_objfiles)
10438 (maintenance_info_symtabs, maintenance_check_symtabs)
10439 (maintenance_expand_symtabs, maintenance_info_line_tables):
10441 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
10442 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
10443 (map_overlay_command, unmap_overlay_command)
10444 (simple_overlay_update, expand_symtabs_matching)
10445 (map_symbol_filenames): Update.
10446 * symfile-debug.c (set_debug_symfile): Update.
10447 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
10449 * source.c (select_source_symtab, forget_cached_source_info):
10451 * solib.c (solib_read_symbols): Update.
10452 * solib-spu.c (append_ocl_sos): Update.
10453 * psymtab.c (maintenance_print_psymbols)
10454 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
10455 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
10456 * printcmd.c (info_symbol_command): Update.
10457 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
10459 * objfiles.h (class all_objfiles): Remove.
10460 * objfiles.c (have_partial_symbols, have_full_symbols)
10461 (have_minimal_symbols, qsort_cmp, update_section_map)
10462 (shared_objfile_contains_address_p)
10463 (default_iterate_over_objfiles_in_search_order): Update.
10464 * objc-lang.c (info_selectors_command, info_classes_command)
10465 (find_methods): Update.
10466 * minsyms.c (find_solib_trampoline_target): Update.
10467 * maint.c (maintenance_info_sections)
10468 (maintenance_translate_address, count_symtabs_and_blocks):
10470 * main.c (captured_main_1): Update.
10471 * linux-thread-db.c (try_thread_db_load_from_pdir)
10472 (has_libpthread): Update.
10473 * linespec.c (iterate_over_all_matching_symtabs)
10474 (search_minsyms_for_name): Update.
10475 * jit.c (jit_find_objf_with_entry_addr): Update.
10476 * hppa-tdep.c (find_unwind_entry)
10477 (hppa_lookup_stub_minimal_symbol): Update.
10478 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
10480 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
10481 (elf_gnu_ifunc_resolve_by_got): Update.
10482 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
10483 * dwarf-index-write.c (save_gdb_index_command): Update.
10484 * cp-support.c (add_symbol_overload_list_qualified): Update.
10485 * breakpoint.c (create_overlay_event_breakpoint)
10486 (create_longjmp_master_breakpoint)
10487 (create_std_terminate_master_breakpoint)
10488 (create_exception_master_breakpoint): Update.
10489 * blockframe.c (find_pc_partial_function): Update.
10490 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
10491 (ada_collect_symbol_completion_matches)
10492 (ada_add_global_exceptions): Update.
10494 2019-01-17 Tom Tromey <tom@tromey.com>
10496 * solib-target.c (lm_info_target_p): Remove typedef. Don't
10498 (solib_target_parse_libraries): Change return type.
10499 (library_list_start_segment, library_list_start_section)
10500 (library_list_end_library, library_list_start_library); Update.
10501 (solib_target_free_library_list): Remove.
10502 (solib_target_parse_libraries): Remove cleanup. Change return
10504 (solib_target_current_sos): Update.
10506 2019-01-17 Tom Tromey <tromey@bapiya>
10508 * valprint.c: Replace "the the" with "the".
10509 * symtab.c: Replace "the the" with "the".
10510 * solib.c: Replace "the the" with "the".
10511 * solib-dsbt.c: Replace "the the" with "the".
10512 * linespec.c: Replace "the the" with "the".
10513 * dwarf2loc.h: Replace "the the" with "the".
10514 * amd64-windows-tdep.c: Replace "the the" with "the".
10515 * aarch64-tdep.c: Replace "the the" with "the".
10517 2019-01-16 Keith Seitz <keiths@redhat.com>
10520 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
10521 <builder>: Rename to ..
10522 <m_builder>: ... this and make private.
10523 (dwarf2_cu::get_builder): New method. Change all users of
10524 `builder' to use this method.
10525 (dwarf2_start_symtab): Move to ...
10526 (dwarf2_cu::start_symtab): ... here. Update all callers
10527 (setup_type_unit_groups): Move to ...
10528 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
10530 (dwarf2_cu::reset_builder): New method.
10531 (process_full_compunit, process_full_type_unit): Use
10532 dwarf2_cu::reset_builder.
10533 (follow_die_offset): Record the ancestor CU if it is different
10534 from the followed DIE's CU.
10535 (follow_die_sig_1): Likewise.
10537 2019-01-15 Tom Tromey <tom@tromey.com>
10539 * remote.c (class remote_state) <buf>: Now a char_vector.
10540 <buf_size>: Remove.
10541 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
10543 (remote_target::getpkt_or_notif_sane_1)
10544 (remote_target::getpkt_sane)
10545 (remote_target::getpkt_or_notif_sane): Likewise.
10546 (class remote_target) <putpkt>: New overload.
10547 (remote_target::read_frame): Change type of "buf_p". Remove
10548 sizeof_p parameter.
10549 (packet_ok): New overload.
10550 (packet_check_result): New overload.
10553 2019-01-14 Tom Tromey <tom@tromey.com>
10555 * remote-notif.c (handle_notification, remote_notif_ack)
10556 (remote_notif_parse): Make "buf" const.
10557 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
10559 (remote_notif_parse, remote_notif_ack, handle_notification):
10561 * remote.c (remote_notif_stop_parse): Make "buf" const.
10562 (remote_target::remote_parse_stop_reply): Make "buf" const.
10563 (remote_notif_stop_ack): Make "buf" const.
10565 2019-01-14 Tom Tromey <tom@tromey.com>
10567 * remote.c (remote_console_output): Make parameter const.
10569 2019-01-14 Tom Tromey <tom@tromey.com>
10571 * target-debug.h (target_debug_print_signals): Constify.
10572 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
10573 * procfs.c (procfs_target::pass_signals): Update.
10574 * linux-nat.c (linux_nat_target::pass_signals): Update.
10575 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
10576 * target-delegates.c: Rebuild.
10577 * remote.c (remote_target::program_signals): Update.
10578 (remote_target::pass_signals): Update.
10579 * target.c (target_pass_signals): Constify argument.
10580 (target_program_signals): Likewise.
10581 * target.h (struct target_ops) <pass_signals, program_signals>:
10583 (target_pass_signals, target_program_signals): Constify argument.
10585 2019-01-14 Tom Tromey <tom@tromey.com>
10588 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
10590 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10592 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
10594 * rs6000-tdep.c: Include reggroups.h.
10595 (IS_V_ALIAS_PSEUDOREG): Define.
10596 (rs6000_register_name): Return names for the "vX" aliases.
10597 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
10598 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
10599 aliases. Call default_register_reggroup_p for all other
10601 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
10603 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
10604 Handle "vX" aliases.
10605 (v_alias_pseudo_register_collect): New function.
10606 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
10607 (rs6000_gdbarch_init): Initialize "vX" aliases as
10608 pseudo-registers. Restore registration of
10609 rs6000_pseudo_register_reggroup_p with
10610 set_tdesc_pseudo_register_reggroup_p.
10612 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
10614 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
10615 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
10616 set_gdbarch_num_pseudo_regs.
10618 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10620 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
10621 Remove arg prefixname, add do_set and do_show.
10622 Add member functions set_list and show_list.
10623 * cli/cli-style.c (class cli_style_option): Update accordingly.
10624 (style_set_list): Move to file scope.
10625 (style_show_list): Likewise.
10626 (set_style): Call help_list.
10627 (show_style): Call cmd_show_list.
10628 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
10629 Update to use the new macro.
10631 2019-10-12 Joel Brobecker <brobecker@adacore.com>
10633 * ada-lang.c (_initialize_ada_language): Expand the help text
10634 for the "catch exception" command.
10636 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10638 * symtab.c (matching_obj_sections): Initialize obj,
10639 declare it closer to its usage.
10641 2019-01-10 Tom Tromey <tom@tromey.com>
10643 * thread-iter.h (inf_threads_iterator): Use next_iterator.
10644 (basic_inf_threads_range): Remove.
10645 (inf_threads_range, inf_non_exited_threads_range)
10646 (safe_inf_threads_range): Use next_adapter.
10648 2019-01-10 Keith Seitz <keiths@redhat.com>
10652 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
10653 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
10655 2019-01-10 Keith Seitz <keiths@redhat.com>
10659 * dictionary.c (pending_to_vector): Remove.
10660 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
10661 Remove _1 suffix, replacing functions of the same name. Update
10663 (dict_create_hashed, dict_create_hashed_expandable)
10664 (dict_create_linear, dict_create_linear_expandable, dict_free)
10665 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
10666 Make functions static.
10668 2019-01-10 Keith Seitz <keiths@redhat.com>
10672 * dictionary.h (struct dictionary): Replace declaration with
10674 (dict_create_hashed, dict_create_hashed_expandable)
10675 (dict_create_linear, dict_create_linear_expandable)
10676 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
10677 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
10678 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
10679 taking multidictionary argument.
10680 [ALL_DICT_SYMBOLS]: Update for multidictionary.
10681 * block.h (struct block) <dict>: Change to multidictionary
10682 and rename `multidict'.
10683 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
10684 symmisc.c: Update all dictionary references to multidictionary.
10686 2019-01-10 Keith Seitz <keiths@redhat.com>
10690 * dictionary.c: Include unordered_map.
10691 (pending_to_vector): New function.
10692 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
10693 Rewrite the non-"_1" functions to take vector instead
10695 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
10696 "new" _1 versions of the same name.
10697 (multidictionary): Define.
10698 (std::hash<enum language): New definition.
10699 (collate_pending_symbols_by_language, mdict_create_hashed)
10700 (mdict_create_hashed_expandable, mdict_create_linear)
10701 (mdict_create_linear_expandable, mdict_free)
10702 (find_language_dictionary, create_new_language_dictionary)
10703 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
10704 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
10705 (mdict_size, mdict_empty): New functions.
10706 * dictionary.h (mdict_iterator): Define.
10708 2019-01-10 Pedro Alves <palves@redhat.com>
10710 * breakpoint.c (read_uploaded_action)
10711 (create_tracepoint_from_upload): Adjust to use
10712 gdb::unique_xmalloc_ptr.
10713 * ctf.c (ctf_write_uploaded_tp):
10714 (SET_ARRAY_FIELD): Use emplace_back.
10715 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
10716 * tracefile-tfile.c (tfile_write_uploaded_tp):
10717 * tracepoint.c (parse_tracepoint_definition): Adjust to use
10718 gdb::unique_xmalloc_ptr.
10719 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
10720 at_string, cond_string, cmd_strings>: Replace char pointers
10721 with gdb::unique_xmalloc_ptr.
10723 2019-01-10 Pedro Alves <palves@redhat.com>
10725 * solib-target.c (library_list_start_library): Don't xstrdup name.
10727 2019-01-10 Pedro Alves <palves@redhat.com>
10729 * mdebugread.c (parse_partial_symbols): Use
10730 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
10732 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
10734 * linux-fork.c (scoped_switch_fork_info)
10735 <~scoped_switch_fork_info>: Fix incorrect variable name.
10737 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
10739 * linux-fork.c (scoped_switch_fork_info)
10740 <scoped_switch_fork_info>: Make explicit.
10741 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
10743 2019-01-10 Tom Tromey <tom@tromey.com>
10745 * objfiles.h (objfile::reset_psymtabs): Update.
10746 * objfiles.c (objfile::objfile): Update.
10747 * psymtab.h (psymtab_storage::obstack): Update.
10748 (psymtab_storage::m_obstack): Use gdb::optional.
10749 (class psymtab_storage): Update comment. Remove objfile
10751 * psymtab.c (psymtab_storage::psymtab_storage): Update.
10753 2019-01-10 Tom Tromey <tom@tromey.com>
10755 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
10756 <free_psymtabs>: Now private.
10757 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
10758 (allocate_psymtab): Use new method.
10760 2019-01-10 Tom Tromey <tom@tromey.com>
10762 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
10763 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
10764 * mdebugread.c (parse_partial_symbols): Use
10765 allocate_dependencies.
10766 * dwarf2read.c (dwarf2_create_include_psymtab): Use
10767 allocate_dependencies.
10768 (process_psymtab_comp_unit_reader)
10769 (build_type_psymtab_dependencies): Likewise.
10770 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
10772 2019-01-10 Tom Tromey <tom@tromey.com>
10774 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
10775 PSYMBOL_SET_LANGUAGE.
10776 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
10778 2019-01-10 Tom Tromey <tom@tromey.com>
10780 * psymtab.h (psymtab_storage::obstack): New method.
10781 <m_obstack>: Rename from obstack; now private.
10782 * psymtab.c (psymtab_storage): Update.
10783 * dwarf2read.c (create_addrmap_from_index)
10784 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
10787 2019-01-10 Tom Tromey <tom@tromey.com>
10789 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
10790 * objfiles.h (objfile::reset_psymtabs): New method.
10792 2019-01-10 Tom Tromey <tom@tromey.com>
10794 * symmisc.c (print_symbol_bcache_statistics): Update.
10795 (print_objfile_statistics): Update.
10796 * symfile.c (reread_symbols): Update.
10797 * psymtab.h (class psymtab_storage): New.
10798 * psymtab.c (psymtab_storage): New constructor.
10799 (~psymtab_storage): New destructor.
10800 (require_partial_symbols): Update.
10801 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
10802 (find_pc_sect_psymtab, find_pc_sect_psymbol)
10803 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
10804 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
10805 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
10806 (start_psymtab_common, end_psymtab_common)
10807 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
10808 (allocate_psymtab): Update.
10809 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
10811 (dump_psymtab_addrmap, maintenance_print_psymbols)
10812 (maintenance_check_psymtabs): Update.
10813 (class objfile_psymtabs): Move to objfiles.h.
10814 * psympriv.h (discard_psymtab): Now inline.
10815 (psymtab_discarder::psymtab_discarder): Update.
10816 (psymtab_discarder::~psymtab_discarder): Update.
10817 (ALL_OBJFILE_PSYMTABS): Rewrite.
10818 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
10819 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
10821 <partial_symtabs>: New field.
10822 (class objfile_psymtabs): Move from psymtab.h. Update.
10823 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
10825 (objfile::~objfile): Don't destroy psymbol_cache.
10826 * mdebugread.c (parse_partial_symbols): Update.
10827 * dwarf2read.c (create_addrmap_from_index)
10828 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10829 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
10830 (add_partial_subprogram, dwarf2_ranges_read): Update.
10831 * dwarf-index-write.c (write_address_map)
10832 (write_one_signatured_type, recursively_write_psymbols)
10833 (class debug_names, class debug_names, write_psymtabs_to_index):
10836 2019-01-10 Tom Tromey <tom@tromey.com>
10838 * symtab.h (SYMBOL_SET_NAMES): Update.
10839 (symbol_set_names): Update.
10840 (MSYMBOL_SET_NAMES): Update.
10841 * symtab.c (symbol_set_names): Change argument to be an
10842 objfile_per_bfd_storage.
10843 * psymtab.c (add_psymbol_to_bcache): Update.
10844 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
10846 2019-01-10 Tom Tromey <tom@tromey.com>
10848 * symtab.c (create_demangled_names_hash): Change argument to be an
10849 objfile_per_bfd_storage.
10850 (symbol_set_names): Update.
10852 2019-01-10 Tom Tromey <tom@tromey.com>
10854 * xcoffread.c (xcoff_initial_scan): Unconditionally call
10856 * psymtab.c (init_psymbol_list): Do nothing if already called.
10857 * psympriv.h (init_psymbol_list): Add comment.
10858 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
10860 * dbxread.c (dbx_symfile_read): Unconditionally call
10863 2019-01-10 Tom Tromey <tom@tromey.com>
10865 * xcoffread.c (scan_xcoff_symtab): Update.
10866 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
10868 * mdebugread.c (parse_partial_symbols)
10869 (handle_psymbol_enumerators): Update.
10870 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
10871 * dbxread.c (read_dbx_symtab): Update.
10872 * psympriv.h (psymbol_placement): New enum.
10873 (add_psymbol_to_list): Update.
10875 2019-01-10 Tom Tromey <tom@tromey.com>
10877 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
10878 static_psymbols parameters.
10879 (scan_xcoff_symtab): Update.
10880 * psymtab.c (start_psymtab_common): Remove global_psymbols and
10881 static_psymbols parameters.
10882 * psympriv.h (start_psymtab_common): Update.
10883 * mdebugread.c (parse_partial_symbols): Update.
10884 * dwarf2read.c (create_partial_symtab): Update.
10885 * dbxread.c (read_dbx_symtab): Update.
10886 (start_psymtab): Remove global_psymbols and static_psymbols
10889 2019-01-10 Tom Tromey <tom@tromey.com>
10891 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
10892 * psymtab.c (allocate_psymtab): Add comment.
10893 * psympriv.h (allocate_psymtab): Add comment.
10894 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
10896 * dbxread.c (dbx_end_psymtab): Remove some initializations.
10898 2019-01-10 Tom Tromey <tom@tromey.com>
10900 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
10902 * mipsread.c: Include mdebugread.h.
10903 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
10905 * elfread.c: Include mdebugread.h.
10907 2019-01-09 Tom Tromey <tom@tromey.com>
10909 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
10910 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
10911 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
10912 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
10913 (psym_lookup_symbol, psym_find_last_source_symtab)
10914 (psym_forget_cached_source_info, psym_print_stats)
10915 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
10916 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
10917 (psym_map_matching_symbols, psym_expand_symtabs_matching)
10918 (psym_find_compunit_symtab_by_address)
10919 (maintenance_print_psymbols, maintenance_info_psymtabs)
10920 (maintenance_check_psymtabs): Use ranged for.
10921 * psymtab.h (class objfile_psymtabs): New.
10922 (require_partial_symbols): Return objfile_psymtabs.
10923 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
10925 2019-01-09 Tom Tromey <tom@tromey.com>
10927 * symfile.c (overlay_invalidate_all, find_pc_overlay)
10928 (find_pc_mapped_section, list_overlays_command)
10929 (map_overlay_command, unmap_overlay_command)
10930 (simple_overlay_update): Use all_objfiles.
10931 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
10932 * printcmd.c (info_symbol_command): Use all_objfiles.
10933 * objfiles.h (ALL_OBJSECTIONS): Remove.
10934 * maint.c (maintenance_translate_address): Use all_objfiles.
10935 * gcore.c (gcore_create_callback): Use all_objfiles.
10936 (objfile_find_memory_regions): Likewise.
10938 2019-01-09 Tom Tromey <tom@tromey.com>
10940 * symtab.c (find_line_symtab, info_sources_command)
10941 (make_source_files_completion_list): Use objfile_compunits.
10942 * source.c (select_source_symtab): Use objfile_compunits.
10943 * objfiles.h (struct objfile): Update comment.
10944 (ALL_OBJFILES): Remove.
10945 (ALL_FILETABS): Remove.
10946 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
10949 2019-01-09 Tom Tromey <tom@tromey.com>
10951 * symmisc.c (print_objfile_statistics, dump_objfile)
10952 (maintenance_print_symbols): Use compunit_filetabs.
10953 * source.c (forget_cached_source_info_for_objfile): Use
10955 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
10956 (ALL_FILETABS): Use compunit_filetabs.
10957 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
10958 * coffread.c (coff_symtab_read): Use compunit_filetabs.
10960 2019-01-09 Tom Tromey <tom@tromey.com>
10962 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
10963 (compunit_filetabs): New.
10964 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
10966 (info_sources_command, make_source_files_completion_list): Remove
10968 * symmisc.c (print_objfile_statistics, dump_objfile)
10969 (maintenance_print_symbols): Remove declaration.
10970 (maintenance_info_symtabs): Use compunit_filetabs.
10971 (maintenance_info_line_tables): Likewise.
10972 * source.c (select_source_symtab): Change local variable name.
10973 (forget_cached_source_info_for_objfile): Remove declaration.
10974 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
10975 * objfiles.c (objfile_relocate1): Remove declaration.
10976 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
10978 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
10979 * coffread.c (coff_symtab_read): Remove declaration.
10980 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
10983 2019-01-09 Tom Tromey <tom@tromey.com>
10985 * symtab.c (lookup_objfile_from_block)
10986 (find_pc_sect_compunit_symtab, search_symbols)
10987 (default_collect_symbol_completion_matches_break_on): Use
10989 * objfiles.h (ALL_COMPUNITS): Remove.
10990 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
10991 * cp-support.c (add_symbol_overload_list_qualified): Use
10993 * ada-lang.c (ada_collect_symbol_completion_matches)
10994 (ada_add_global_exceptions): Use objfile_compunits.
10996 2019-01-09 Tom Tromey <tom@tromey.com>
10998 * source.c (select_source_symtab)
10999 (forget_cached_source_info_for_objfile): Remove declaration.
11000 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
11002 * maint.c (count_symtabs_and_blocks): Remove declaration.
11003 * cp-support.c (add_symbol_overload_list_qualified): Remove
11005 * coffread.c (coff_symtab_read): Remove declaration.
11006 * symtab.c (lookup_symbol_in_objfile_symtabs)
11007 (basic_lookup_transparent_type_1): Use objfile_compunits.
11008 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
11009 (info_sources_command, search_symbols)
11010 (default_collect_symbol_completion_matches_break_on)
11011 (make_source_files_completion_list): Remove declaration.
11012 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
11013 (ada_collect_symbol_completion_matches)
11014 (ada_add_global_exceptions): Remove declaration.
11015 * linespec.c (iterate_over_all_matching_symtabs): Use
11017 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
11018 (class objfile_compunits): New.
11019 (ALL_COMPUNITS): Use objfile_compunits.
11020 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
11021 (maintenance_check_symtabs, maintenance_info_line_tables): Use
11023 * objfiles.c (objfile_relocate1): Use objfile_compunits.
11025 2019-01-09 Tom Tromey <tom@tromey.com>
11027 * symtab.c (search_symbols)
11028 (default_collect_symbol_completion_matches_break_on): Use
11030 * ada-lang.c (ada_lookup_simple_minsym)
11031 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
11032 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
11033 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
11035 * coffread.c (coff_symfile_read): Use objfile_msymbols.
11036 * symmisc.c (dump_msymbols): Use objfile_msymbols.
11037 * objc-lang.c (find_methods): Use objfile_msymbols.
11038 (info_selectors_command, info_classes_command): Likewise.
11039 * stabsread.c (scan_file_globals): Use objfile_msymbols.
11040 * objfiles.h (class objfile_msymbols): New.
11041 (ALL_OBJFILE_MSYMBOLS): Remove.
11042 (ALL_MSYMBOLS): Remove.
11044 2019-01-09 Tom Tromey <tom@tromey.com>
11046 * common/next-iterator.h (next_adapter): Add Iterator template
11048 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
11049 (class all_objfiles_safe): New.
11050 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
11051 * objfiles.c (put_objfile_before): Update comment.
11052 (add_separate_debug_objfile): Likewise.
11053 (free_all_objfiles): Use all_objfiles_safe.
11054 (objfile_purge_solibs): Likewise.
11056 2019-01-09 Tom Tromey <tom@tromey.com>
11058 * symtab.c (iterate_over_symtabs, matching_obj_sections)
11059 (expand_symtab_containing_pc, lookup_static_symbol)
11060 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
11061 (find_symbol_at_address, find_line_symtab, find_main_name): Use
11063 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
11064 * breakpoint.c (create_overlay_event_breakpoint)
11065 (create_longjmp_master_breakpoint)
11066 (create_std_terminate_master_breakpoint)
11067 (create_exception_master_breakpoint): Use all_objfiles.
11068 * linux-thread-db.c (try_thread_db_load_from_pdir)
11069 (has_libpthread): Use all_objfiles.
11070 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
11071 * linespec.c (iterate_over_all_matching_symtabs)
11072 (search_minsyms_for_name): Use all_objfiles.
11073 * maint.c (maintenance_info_sections): Use all_objfiles.
11074 * main.c (captured_main_1): Use all_objfiles.
11075 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
11076 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
11077 * guile/scm-pretty-print.c
11078 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
11079 * solib-spu.c (append_ocl_sos): Use all_objfiles.
11080 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
11081 (maintenance_print_msymbols): Use all_objfiles.
11082 * source.c (select_source_symtab): Use all_objfiles.
11083 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
11084 * symfile.c (remove_symbol_file_command)
11085 (expand_symtabs_matching, map_symbol_filenames): Use
11087 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
11089 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
11090 * objc-lang.c (find_methods): Use all_objfiles.
11091 * objfiles.c (have_partial_symbols, have_full_symbols)
11092 (have_minimal_symbols, qsort_cmp)
11093 (default_iterate_over_objfiles_in_search_order): Use
11095 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
11096 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
11097 (maintenance_check_psymtabs): Use all_objfiles.
11098 (ALL_PSYMTABS): Remove.
11099 * compile/compile-object-run.c (do_module_cleanup): Use
11101 * blockframe.c (find_pc_partial_function): Use all_objfiles.
11102 * cp-support.c (add_symbol_overload_list_qualified): Use
11104 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
11106 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
11107 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
11109 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
11110 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
11111 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
11113 * solib.c (solib_read_symbols): Use all_objfiles
11115 2019-01-09 Tom Tromey <tom@tromey.com>
11117 * probe.c (parse_probes_in_pspace): Use all_objfiles.
11118 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
11120 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
11121 * symmisc.c (print_symbol_bcache_statistics)
11122 (print_objfile_statistics, maintenance_print_objfiles)
11123 (maintenance_info_symtabs, maintenance_check_symtabs)
11124 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
11126 * source.c (forget_cached_source_info): Use all_objfiles.
11127 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
11128 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
11129 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
11130 * objfiles.c (update_section_map): Use all_objfiles.
11131 (shared_objfile_contains_address_p): Likewise.
11132 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
11133 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
11135 2019-01-09 Tom Tromey <tom@tromey.com>
11137 * common/next-iterator.h: New file.
11138 * objfiles.h (class all_objfiles): New.
11139 (struct objfile_iterator): New.
11141 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11143 * NEWS: Move the description of the changed "frame", "select-frame",
11144 and "info frame" commands to the Changed commands section.
11146 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
11148 * gdbtypes.c (check_stub_method_group): Remove handling of old
11150 * linespec.c (find_methods): Likewise.
11151 * stabsread.c (read_member_functions): Likewise.
11152 * valops.c (search_struct_method): Likewise.
11153 (value_struct_elt_for_reference): Likewise.
11154 * NEWS: Mention this change.
11156 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11158 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
11159 print_source_lines.
11160 * source.c (print_source_lines_base): Update line number check.
11161 (print_source_lines): New function.
11162 (source_lines_range::source_lines_range): New function.
11163 * source.h (class source_lines_range): New class.
11164 (print_source_lines): New declaration.
11166 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11168 * linespec.c (linespec_state_destructor): Free self->canonical_names.
11170 2019-01-08 Tom Tromey <tom@tromey.com>
11171 Simon Marchi <simon.marchi@ericsson.com>
11174 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
11175 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
11176 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
11177 * f-exp.y (DOLLAR_VARIABLE): Likewise.
11178 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
11179 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
11181 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
11183 * source.c (select_source_symtab): Move header comment to
11184 declaration in source.h.
11185 (forget_cached_source_info_for_objfile): Likewise.
11186 (forget_cached_source_info): Likewise.
11187 (identify_source_line): Likewise.
11188 * source.h (identify_source_line): Move declaration from symtab.h
11189 and add comment from source.c
11190 (print_source_lines): Likewise.
11191 (forget_cached_source_info_for_objfile): Likewise.
11192 (forget_cached_source_info): Likewise.
11193 (select_source_symtab): Likewise.
11194 (enum print_source_lines_flag): Move definition from symtab.h.
11195 * symtab.h (identify_source_line): Move declaration to source.h.
11196 (print_source_lines): Likewise.
11197 (forget_cached_source_info_for_objfile): Likewise.
11198 (forget_cached_source_info): Likewise.
11199 (select_source_symtab): Likewise.
11200 (enum print_source_lines_flag): Move definition to source.h.
11201 * tui/tui-hooks.c: Add 'source.h' include.
11203 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
11205 * source.c (print_source_lines_base): Handle requests to print
11206 reverse line number sequences, and guard against empty lines
11209 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
11211 * source.c (print_source_lines_base): Fix skip of '\r' if next
11214 2019-01-06 Tom Tromey <tom@tromey.com>
11216 * c-exp.y (struct c_parse_state) <macro_original_text,
11217 expansion_obstack>: New member.
11218 (macro_original_text, expansion_obstack): Remove globals.
11219 (scan_macro_expansion, scanning_macro_expansion)
11220 (finished_macro_expansion): Update.
11221 (scan_macro_cleanup): Remove.
11222 (yylex, c_parse): Update.
11224 2019-01-06 Tom Tromey <tom@tromey.com>
11226 * c-exp.y (struct c_parse_state) <strings>: New member.
11227 (operator_stoken): Update.
11229 2019-01-06 Tom Tromey <tom@tromey.com>
11231 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
11232 (union type_stack_elt) <typelist_val>: Now a pointer to
11234 (type_stack_cleanup): Don't declare.
11235 (push_typelist): Update.
11236 * parse.c (pop_typelist): Return a std::vector.
11237 (push_typelist): Take a std::vector.
11238 (follow_types): Update. Do not free args.
11239 (type_stack_cleanup): Remove.
11240 * c-exp.y (struct c_parse_state): New.
11241 (cpstate): New global.
11242 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
11243 (nonempty_typelist): Update.
11244 (func_mod): Create a new vector.
11245 (c_parse): Create a c_parse_state.
11246 (check_parameter_typelist): Do not delete params.
11247 (function_method): Update. Do not delete type_list.
11249 2019-01-06 Tom Tromey <tom@tromey.com>
11252 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
11254 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
11255 (print_return_value): Likewise.
11257 2019-01-05 Tom Tromey <tom@tromey.com>
11259 * contrib/cleanup_check.py: Remove.
11260 * contrib/gcc-with-excheck: Remove.
11261 * contrib/exsummary.py: Remove.
11262 * contrib/excheck.py: Remove.
11264 2019-01-05 Joel Brobecker <brobecker@adacore.com>
11266 * thread.c (delete_thread_1): Add gdb_assert that THR is not
11267 NULL. Initialize tpprev to NULL instead of assigning it
11268 to NULL on the next statement.
11269 * windows-nat.c (windows_delete_thread): Remove check for
11270 main_thread_id before printing thread exit notifications.
11271 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
11272 Remove thread ID check against main_thread_id.
11273 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
11274 windows_delete_thread.
11275 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
11277 2019-01-04 Tom Tromey <tom@tromey.com>
11279 * compile/compile.c (_initialize_compile): Use upper case for
11280 metasyntactic variables.
11281 * symmisc.c (_initialize_symmisc): Use upper case for
11282 metasyntactic variables.
11283 * psymtab.c (_initialize_psymtab): Use upper case for
11284 metasyntactic variables.
11285 * demangle.c (demangle_command): Use upper case for metasyntactic
11287 (_initialize_demangler): Likewise.
11288 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
11291 2019-01-03 Tom Tromey <tom@tromey.com>
11293 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
11295 2019-01-03 Tom Tromey <tom@tromey.com>
11297 * python/py-symtab.c (salpy_str): Update.
11298 (struct salpy_sal_object) <symtab>: Now a PyObject.
11299 (salpy_dealloc): Update.
11300 (del_objfile_sal): Use gdbpy_ref.
11302 2019-01-03 Tom Tromey <tom@tromey.com>
11304 * python/py-type.c (convert_field): Use new_reference. Return
11306 (make_fielditem): Return gdbpy_ref.
11307 (typy_fields): Update.
11308 (typy_getitem): Update.
11309 (field_name): Return gdbpy_ref. Use new_reference.
11310 (typy_iterator_iternext): Update.
11312 2019-01-03 Tom Tromey <tom@tromey.com>
11314 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
11316 2019-01-03 Tom Tromey <tom@tromey.com>
11318 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
11319 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
11320 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
11321 (pspy_set_frame_filters, pspy_set_frame_unwinders)
11322 (pspy_set_type_printers): Likewise.
11323 * python/py-function.c (fnpy_init): Use gdbpy_ref.
11324 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
11325 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
11326 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
11327 (objfpy_set_type_printers): Likewise.
11329 2019-01-03 Tom Tromey <tom@tromey.com>
11331 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
11332 (gdbpy_print_stack): Use gdbpy_err_fetch.
11333 * python/python-internal.h (class gdbpy_err_fetch): New class.
11334 (class gdbpy_enter) <m_error_type, m_error_value,
11335 m_error_traceback>: Remove.
11336 <m_error>: New member.
11337 (gdbpy_exception_to_string): Don't declare.
11338 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
11339 * python/py-value.c (convert_value_from_python): Use
11341 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
11342 gdbpy_exception_to_string.
11343 (gdbpy_handle_exception): Use gdbpy_err_fetch.
11344 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
11347 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11349 * linux-nat.c (delete_lwp_cleanup): Delete.
11350 (struct lwp_deleter): New struct.
11351 (lwp_info_up): New typedef.
11352 (linux_nat_target::follow_fork): Delete cleanup, and make use of
11355 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11357 * linux-fork.c (class scoped_switch_fork_info): New class.
11358 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
11360 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11362 * valops.c (find_overload_match): Remove use of null_cleanup, and
11363 calls to do_cleanups.
11365 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11367 * compile/compile-cplus-types.c
11368 (compile_cplus_instance::decl_name): Handle changes to
11370 * cp-support.c (cp_func_name): Update header comment, update
11372 * cp-support.h (cp_func_name): Update return type in declaration.
11373 * valops.c (find_overload_match): Move temp_func local to top
11374 level of function and change its type. Use temp_func to hold and
11375 delete temporary string obtained from cp_func_name.
11377 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11379 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
11380 gdb::char_vector, remove cleanup, and update uses of `msg`.
11382 2019-01-03 Jim Wilson <jimw@sifive.com>
11384 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
11386 2019-01-02 Tom Tromey <tom@tromey.com>
11388 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
11389 (tdesc_parse_xml): Remove cleanups.
11390 * target-descriptions.h (make_cleanup_free_target_description):
11392 (target_desc_deleter): New struct.
11393 (target_desc_up): New typedef.
11394 * target-descriptions.c (target_desc_deleter::operator()): Rename
11395 from free_target_description.
11396 (make_cleanup_free_target_description): Remove.
11398 2019-01-02 Tom Tromey <tom@tromey.com>
11400 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
11401 constructor, destructor.
11402 (linespec_parser): Remove typedef.
11403 (~linespec_parser): Rename from linespec_parser_delete.
11404 (linespec_lex_to_end, linespec_complete_label)
11405 (linespec_complete): Update.
11406 (decode_line_full): Remove cleanups.
11407 (decode_line_1): Update.
11409 2019-01-02 Tom Tromey <tom@tromey.com>
11411 * python/python-internal.h (inferior_to_inferior_object): Change
11413 * python/py-exitedevent.c (create_exited_event_object): Update.
11414 * python/py-inferior.c (inferior_to_inferior_object): Return
11416 (python_new_inferior, python_inferior_deleted)
11417 (thread_to_thread_object, delete_thread_object)
11418 (build_inferior_list, gdbpy_selected_inferior): Update.
11419 * python/py-infthread.c (create_thread_object): Update. Also fail
11420 if inferior_to_inferior_object fails.
11422 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
11424 * inferior.h (class inferior) <displaced_step_state>: New field.
11425 * infrun.h (struct displaced_step_state): Move here from
11426 infrun.c. Initialize fields, add constructor.
11427 <inf>: Remove field.
11428 <reset>: New method.
11429 * infrun.c (struct displaced_step_inferior_state): Move to
11431 (displaced_step_inferior_states): Remove.
11432 (get_displaced_stepping_state): Adust.
11433 (displaced_step_in_progress_any_inferior): Adjust.
11434 (displaced_step_in_progress_thread): Adjust.
11435 (displaced_step_in_progress): Adjust.
11436 (add_displaced_stepping_state): Remove.
11437 (get_displaced_step_closure_by_addr): Adjust.
11438 (remove_displaced_stepping_state): Remove.
11439 (infrun_inferior_exit): Call displaced_step_state.reset.
11440 (use_displaced_stepping): Don't check for NULL.
11441 (displaced_step_prepare_throw): Call
11442 get_displaced_stepping_state.
11443 (displaced_step_fixup): Don't check for NULL.
11444 (prepare_for_detach): Don't check for NULL.
11446 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11448 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
11449 in case of call that did not complete.
11451 2019-01-02 Andrey Utkin <autkin@undo.io>
11453 * symfile.c (find_separate_debug_file): Fix search of debug files for
11456 2019-01-02 Tom Tromey <tom@tromey.com>
11458 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
11460 * python/py-frame.c (frapy_older): Remove cast.
11461 (frapy_newer): Likewise.
11462 * python/py-breakpoint.c (local_setattro): Remove cast.
11463 * python/py-arch.c (archpy_name): Remove local variable.
11464 * python/py-type.c (gdbpy_lookup_type): Remove cast.
11466 2019-01-02 Joel Brobecker <brobecker@adacore.com>
11468 * unittests/basic_string_view/element_access/char/empty.cc:
11469 Fix year range in copyright header.
11471 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
11473 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
11475 <operator==>: Update with for removed field.
11477 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
11478 <isa_features>: ...this.
11479 <abi_features>: New field.
11480 (riscv_isa_flen): Update comment.
11481 (riscv_abi_xlen): New declaration.
11482 (riscv_abi_flen): New declaration.
11483 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
11485 (riscv_abi_xlen): New function.
11486 (riscv_isa_flen): Update to get answer from isa_features.
11487 (riscv_abi_flen): New function.
11488 (riscv_has_fp_abi): Update to get answer from abi_features.
11489 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
11491 (riscv_call_info) <xlen, flen>: Update comment.
11492 (riscv_call_arg_struct): Remove invalid assertions
11493 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
11495 (riscv_gdbarch_init): Gather isa features and abi features
11496 separately, ensure both match on the gdbarch when reusing an old
11497 gdbarch. Relax an error check to allow 32-bit abi float to run on
11498 a target with 64-bit float hardware.
11500 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11502 * source.c (search_command_helper): Stop reverse search
11503 when line 1 has been searched.
11505 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11507 * record-full.c (record_full_base_target::close): Rewrite
11508 record_full_core_buf_list free logic.
11510 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11512 * break-catch-syscall.c (print_one_catch_syscall): xfree
11515 2019-01-01 Joel Brobecker <brobecker@adacore.com>
11517 * top.c (print_gdb_version): Update Copyright year in version
11520 2019-01-01 Joel Brobecker <brobecker@adacore.com>
11522 Update copyright year range in all GDB files.
11524 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
11526 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
11528 For older changes see ChangeLog-2018.
11534 version-control: never