]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame_incremental - gdb/ChangeLog
Rename the "reset" method to "resize"
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
... / ...
CommitLineData
12019-08-15 Tom Tromey <tom@tromey.com>
2
3 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
4 Rename from reset.
5 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
6 * tui/tui-layout.c (show_source_disasm_command, show_data):
7 Update.
8 (tui_gen_win_info::resize): Rename.
9 (show_source_or_disasm_and_command): Update.
10 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
11 reset.
12
132019-08-15 Tom Tromey <tom@tromey.com>
14
15 * tui/tui-stack.c (tui_initialize_static_data): Remove.
16 * tui/tui-interp.c (tui_interp::init): Don't call
17 tui_initialize_static_data.
18 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
19
202019-08-15 Tom Tromey <tom@tromey.com>
21
22 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
23 examine tui_win_list.
24
252019-08-15 Tom Tromey <tom@tromey.com>
26
27 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
28 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
29 tui_clear_source_content.
30 (tui_clear_source_content): Remove.
31 (tui_source_window_base::do_erase_source_content): Hoist call to
32 content.clear().
33 * tui/tui-stack.c (tui_show_frame_info): Don't call
34 tui_clear_source_content.
35
362019-08-15 Tom Tromey <tom@tromey.com>
37
38 * tui/tui-winsource.h (struct tui_source_window_base)
39 <do_erase_source_content>: New method.
40 <erase_source_content>: New method.
41 (tui_erase_source_content): Don't declare.
42 * tui/tui-winsource.c (tui_clear_source_content): Update.
43 (tui_source_window_base::do_erase_source_content): Rename from
44 tui_erase_source_content.
45 (tui_source_window_base::show_source_content): Update.
46 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
47 * tui/tui-source.h (struct tui_source_window)
48 <erase_source_content>: New method.
49 * tui/tui-disasm.h (struct tui_disasm_window)
50 <erase_source_content>: New method.
51
522019-08-15 Tom Tromey <tom@tromey.com>
53
54 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
55 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
56 constructor.
57 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
58 * tui/tui-source.c (tui_set_source_content): Update.
59 * tui/tui-disasm.c (tui_set_disassem_content): Update.
60
612019-08-15 Tom Tromey <tom@tromey.com>
62
63 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
64 * tui/tui-winsource.c (tui_line_is_displayed): Move to
65 tui-source.c.
66 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
67 Declare.
68 * tui/tui-source.c (tui_source_window::line_is_displayed): New
69 method.
70 (tui_source_window::maybe_update): Update.
71
722019-08-15 Tom Tromey <tom@tromey.com>
73
74 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
75 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
76 tui-disasm.c.
77 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
78 Declare.
79 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
80 method.
81 (tui_disasm_window::maybe_update): Update.
82
832019-08-15 Tom Tromey <tom@tromey.com>
84
85 * tui/tui-winsource.h (struct tui_source_window_base)
86 <maybe_update>: Declare.
87 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
88 method.
89 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
90 Declare.
91 * tui/tui-source.c (tui_source_window::maybe_update): New method.
92 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
93 Declare.
94 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
95
962019-08-15 Tom Tromey <tom@tromey.com>
97
98 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
99
1002019-08-15 Tom Tromey <tom@tromey.com>
101
102 * tui/tui-wingeneral.c: Include tui-stack.h.
103 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
104 (struct tui_locator_window): Move from tui-data.h.
105 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
106 (tui_initialize_static_data): Move from tui-data.c.
107 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
108 (struct tui_locator_window): Move to tui-stack.c.
109 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
110 (tui_initialize_static_data): Move to tui-stack.c.
111
1122019-08-15 Tom Tromey <tom@tromey.com>
113
114 * tui/tui-layout.c (show_source_disasm_command)
115 (show_source_or_disasm_and_command): Use make_visible method, not
116 tui_make_window.
117 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
118 Remove.
119
1202019-08-15 Tom Tromey <tom@tromey.com>
121
122 * tui/tui-wingeneral.h (tui_make_window): Update.
123 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
124 parameter.
125 (tui_gen_win_info::make_visible): Update.
126 * tui/tui-regs.c (tui_data_window::display_registers_from):
127 Update.
128 * tui/tui-layout.c (show_source_disasm_command)
129 (show_source_or_disasm_and_command): Update.
130 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
131 (enum tui_box): Remove.
132 (struct tui_win_info) <can_box>: New method.
133 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
134 method.
135
1362019-08-15 Tom de Vries <tdevries@suse.de>
137
138 * linux-nat-trad.c: Include gdbarch.h.
139
1402019-08-14 Alan Hayward <alan.hayward@arm.com>
141
142 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
143 register sizes.
144
1452019-08-14 Tom Tromey <tromey@adacore.com>
146
147 * darwin-nat.c: Include gdbarch.h.
148 * darwin-nat-info.c: Include gdbarch.h.
149
1502019-08-13 Tom Tromey <tom@tromey.com>
151
152 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
153 Remove.
154 * tui/tui-data.c (tui_initialize_static_data): Update.
155
1562019-08-13 Tom Tromey <tom@tromey.com>
157
158 * tui/tui-winsource.h (struct tui_exec_info_window)
159 <~tui_exec_info_window, maybe_allocate_content, get_content,
160 m_content>: Remove.
161 (struct tui_source_window_base) <set_exec_info_content,
162 show_exec_info_content>: Don't declare.
163 * tui/tui-winsource.c
164 (tui_exec_info_window::maybe_allocate_content): Remove.
165 (tui_source_window_base::update_exec_info): Rename from
166 set_exec_info_content.
167 (tui_source_window_base::show_exec_info_content)
168 (tui_source_window_base::update_exec_info): Remove.
169
1702019-08-13 Tom Tromey <tom@tromey.com>
171
172 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
173 declare.
174 * tui/tui-winsource.c (tui_update_source_window_as_is)
175 (tui_update_source_windows_with_addr, tui_erase_source_content):
176 Update.
177 (tui_clear_exec_info_content): Remove.
178
1792019-08-13 Tom Tromey <tom@tromey.com>
180
181 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
182 declare.
183 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
184 call tui_erase_exec_info_content.
185 (tui_clear_exec_info_content): Rename from
186 tui_erase_exec_info_content.
187 (tui_clear_exec_info_content): Delete.
188
1892019-08-13 Tom Tromey <tom@tromey.com>
190
191 * tui/tui-winsource.h (struct tui_source_window_base)
192 <show_exec_info_content>: Declare.
193 (tui_show_exec_info_content): Don't declare.
194 * tui/tui-winsource.c
195 (tui_source_window_base::show_exec_info_content): Rename from
196 tui_show_exec_info_content.
197 (tui_source_window_base::update_exec_info): Update.
198
1992019-08-13 Tom Tromey <tom@tromey.com>
200
201 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
202 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
203 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
204 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
205 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
206 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
207 ... here.
208
2092019-08-13 Tom Tromey <tom@tromey.com>
210
211 * tui/tui-winsource.h (struct tui_source_window_base)
212 <update_exec_info>: Declare.
213 (tui_update_exec_info): Don't declare.
214 * tui/tui-winsource.c (tui_update_source_window_as_is)
215 (tui_source_window_base::refresh_all)
216 (tui_update_all_breakpoint_info): Update.
217 (tui_source_window_base::update_exec_info): Rename from
218 tui_update_exec_info.
219 * tui/tui-stack.c (tui_show_frame_info): Update.
220
2212019-08-13 Tom Tromey <tom@tromey.com>
222
223 * tui/tui-winsource.h (struct tui_source_window_base)
224 <set_exec_info_content>: Declare.
225 (tui_set_exec_info_content): Don't declare.
226 * tui/tui-winsource.c
227 (tui_source_window_base::set_exec_info_content): Rename from
228 tui_set_exec_info_content.
229 (tui_update_exec_info): Update.
230
2312019-08-13 Tom Tromey <tom@tromey.com>
232
233 * tui/tui-winsource.h (struct tui_source_window_base)
234 <show_source_content>: Declare.
235 (tui_show_source_content): Don't declare.
236 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
237 (tui_source_window_base::show_source_content): Rename from
238 tui_show_source_content.
239 (tui_source_window_base::refresh_all): Update.
240 * tui/tui-layout.c (show_source_disasm_command)
241 (show_source_or_disasm_and_command): Update.
242
2432019-08-13 Tom Tromey <tom@tromey.com>
244
245 * tui/tui-winsource.c (tui_erase_source_content)
246 (tui_show_source_content, tui_source_window_base::refresh_all):
247 Update.
248 * tui/tui-wingeneral.h
249 (tui_check_and_display_highlight_if_needed): Don't declare.
250 * tui/tui-wingeneral.c
251 (tui_win_info::check_and_display_highlight_if_needed): Rename from
252 check_and_display_highlight_if_needed.
253 * tui/tui-win.c (tui_rehighlight_all)
254 (tui_win_info::make_visible_with_new_height): Update.
255 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
256 (tui_data_window::erase_data_content)
257 (tui_data_window::display_all_data): Update.
258 * tui/tui-data.h (struct tui_win_info)
259 <check_and_display_highlight_if_needed>: Declare.
260
2612019-08-13 Tom Tromey <tom@tromey.com>
262
263 * tui/tui-win.c (tui_resize_all): Call
264 tui_delete_invisible_windows.
265 * tui/tui-layout.c (show_layout): Call
266 tui_delete_invisible_windows.
267 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
268 * tui/tui-data.c (tui_delete_invisible_windows): New function.
269
2702019-08-13 Tom Tromey <tom@tromey.com>
271
272 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
273 tui_add_win_to_layout.
274
2752019-08-13 Tom Tromey <tom@tromey.com>
276
277 * tui/tui-layout.h (tui_default_win_height): Don't declare.
278 * tui/tui-layout.c (tui_default_win_height): Now static.
279
2802019-08-13 Tom Tromey <tom@tromey.com>
281
282 * tui/tui-layout.c (show_layout): Unify all layout cases into a
283 single switch.
284 (show_source_disasm_command, show_source_or_disasm_and_command):
285 Don't check current layout.
286
2872019-08-13 Tom Tromey <tom@tromey.com>
288
289 * tui/tui-wingeneral.c (make_all_visible): Remove.
290 (tui_make_all_invisible): Simplify.
291 * tui/tui-layout.c (tui_make_all_invisible): Move from
292 tui-wingeneral.c; simplify.
293 (show_layout): Hoist call to tui_make_all_invisible.
294 (show_data): Don't call tui_make_all_invisible.
295
2962019-08-13 Tom Tromey <tom@tromey.com>
297
298 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
299 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
300
3012019-08-13 Tom Tromey <tom@tromey.com>
302
303 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
304 tui-data.c.
305 (show_source_disasm_command, show_data)
306 (show_source_or_disasm_and_command): Don't use
307 tui_set_current_layout_to.
308 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
309 * tui/tui-data.c (current_layout, tui_current_layout): Move to
310 tui-layout.c.
311 (tui_set_current_layout_to): Remove.
312
3132019-08-13 Tom Tromey <tom@tromey.com>
314
315 * tui/tui-layout.c (tui_set_layout): Update.
316 * tui/tui-data.h (struct tui_layout_def): Remove.
317 (tui_layout_def): Don't declare.
318 * tui/tui-data.c (layout_def): Remove.
319 (tui_layout_def): Remove.
320
3212019-08-13 Tom Tromey <tom@tromey.com>
322
323 * tui/tui-winsource.h (struct tui_source_window_base)
324 <clear_detail>: No longer "override".
325 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
326 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
327 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
328 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
329 Remove.
330 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
331
3322019-08-13 Tom Tromey <tromey@adacore.com>
333
334 * tracepoint.c: Don't include readline.h or history.h.
335
3362019-08-12 Tom Tromey <tom@tromey.com>
337
338 * configure: Rebuild.
339 * configure.ac: Check for readline 7.
340 * NEWS: Mention readline 7 requirement.
341 * README: Update.
342
3432019-08-12 Tom Tromey <tom@tromey.com>
344
345 * mingw-hdep.c (gdb_select): Remove readline hack.
346
3472019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
348
349 * blockframe.c (find_pc_partial_function): Set *block to nullptr
350 when the function fails.
351
3522019-08-09 Andreas Arnez <arnez@linux.ibm.com>
353
354 * s390-tdep.c (s390_type_align): New function.
355 (s390_gdbarch_init): Set it as type_align gdbarch method.
356
3572019-08-09 Tom de Vries <tdevries@suse.de>
358
359 PR gdb/24591
360 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
361 pc_low with relocation offset.
362
3632019-08-07 Tom Tromey <tromey@adacore.com>
364
365 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
366 (print_frame_args): Update.
367 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
368 Update.
369 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
370 * frame.h (struct frame_arg): Add initializers.
371 <error>: Now a unique_xmalloc_ptr.
372
3732019-08-07 Alan Hayward <alan.hayward@arm.com>
374
375 * NEWS: Expand the Pointer Authentication entry.
376 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
377 (aarch64_frame_unmask_lr): ... to this.
378 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
379 Call aarch64_frame_unmask_lr.
380 * frame.c (struct frame_info): Add "masked" variable.
381 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
382 (fprint_frame): Check for masked pc.
383 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
384 declarations.
385 * python/py-framefilter.c (py_print_frame): Check for masked pc.
386 * stack.c (print_frame): Check for masked pc.
387
3882019-08-06 Tom Tromey <tom@tromey.com>
389
390 * stabsread.c (patch_block_stabs, read_one_struct_field)
391 (read_enum_type): Use obstack_strndup.
392 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
393 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
394 * dwarf2read.c (guess_full_die_structure_name)
395 (anonymous_struct_prefix): Use obstack_strndup.
396 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
397 * c-exp.y (yylex): Use obstack_strndup.
398 * ada-exp.y (write_object_renaming, write_ambiguous_var)
399 (write_var_or_type): Use obstack_strndup.
400
4012019-08-06 Tom Tromey <tom@tromey.com>
402
403 * symfile.c (reread_symbols): Use obstack_strdup.
404 * stabsread.c (read_type): Use obstack_strdup.
405 * gdb_obstack.h (obstack_strdup): New overload.
406 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
407 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
408 (dwarf2_canonicalize_name): Use obstack_strdup.
409 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
410 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
411 Use obstack_strdup.
412
4132019-08-06 Tom Tromey <tom@tromey.com>
414
415 * gdb_obstack.h (obstack_strdup): Define.
416 * gdb_obstack.c (obstack_strdup): Don't define.
417
4182019-08-06 Tom Tromey <tom@tromey.com>
419
420 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
421 obstack_strdup.
422 * typeprint.c (typedef_hash_table::find_global_typedef): Use
423 obstack_strdup.
424 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
425 * stabsread.c (common_block_start): Use obstack_strdup.
426 * objfiles.c (set_objfile_main_name, objfile): Use
427 obstack_strdup.
428 * namespace.c (add_using_directive): Use obstack_strdup.
429 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
430 * jit.c (finalize_symtab): Use obstack_strdup.
431 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
432 (guess_partial_die_structure_name, partial_die_info::fixup)
433 (dwarf2_name): Use obstack_strdup.
434 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
435 obstack_strdup.
436 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
437 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
438 obstack_strdup.
439 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
440
4412019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
442
443 * unittests/help-doc-selftests.c: New file.
444 * Makefile.in: Add the new file.
445
4462019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
447
448 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
449 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
450 the full first line, except when FOR_VALUE_PREFIX. In this case,
451 the trailing '.' is not output, and the first character is uppercased.
452 (print_help_for_command): Update call to print_doc_line.
453 (print_doc_of_command): Likewise.
454 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
455 * cli/cli-option.c (append_indented_doc): Do not append newline.
456 (build_help_option): Append newline after first appended_indented_doc
457 only if a second call is done.
458 (build_help): Append 2 new lines before each option, except the first
459 one.
460 * compile/compile.c (_initialize_compile): Add new lines after
461 %OPTIONS%, when not at the end of the help.
462 Change help doc or code
463 producing the help doc to respect the invariants.
464 * maint-test-options.c (_initialize_maint_test_options): Likewise.
465 Also removed the new line after 'Options:', as all other commands
466 do not put an empty line between 'Options:' and the first option.
467 * printcmd.c (_initialize_printcmd): Likewise.
468 * stack.c (_initialize_stack): Likewise.
469 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
470 incorrectly telling COMMAND is optional.
471 * ada-lang.c (_initialize_ada_language): Change help doc or code
472 producing the help doc to respect the invariants.
473 * ada-tasks.c (_initialize_ada_tasks): Likewise.
474 * breakpoint.c (_initialize_breakpoint): Likewise.
475 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
476 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
477 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
478 * cli/cli-style.c (cli_style_option::add_setshow_commands,
479 _initialize_cli_style): Likewise.
480 * corelow.c (core_target_info): Likewise.
481 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
482 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
483 * filesystem.c (_initialize_filesystem): Likewise.
484 * frame.c (_initialize_frame): Likewise.
485 * gnu-nat.c (add_task_commands): Likewise.
486 * infcall.c (_initialize_infcall): Likewise.
487 * infcmd.c (_initialize_infcmd): Likewise.
488 * interps.c (_initialize_interpreter): Likewise.
489 * language.c (_initialize_language): Likewise.
490 * linux-fork.c (_initialize_linux_fork): Likewise.
491 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
492 * maint.c (_initialize_maint_cmds): Likewise.
493 * memattr.c (_initialize_mem): Likewise.
494 * printcmd.c (_initialize_printcmd): Likewise.
495 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
496 _RegEx): Likewise.
497 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
498 * record-btrace.c (_initialize_record_btrace): Likewise.
499 * record-full.c (_initialize_record_full): Likewise.
500 * record.c (_initialize_record): Likewise.
501 * regcache-dump.c (_initialize_regcache_dump): Likewise.
502 * regcache.c (_initialize_regcache): Likewise.
503 * remote.c (add_packet_config_cmd, init_remote_threadtests,
504 _initialize_remote): Likewise.
505 * ser-tcp.c (_initialize_ser_tcp): Likewise.
506 * serial.c (_initialize_serial): Likewise.
507 * skip.c (_initialize_step_skip): Likewise.
508 * source.c (_initialize_source): Likewise.
509 * stack.c (_initialize_stack): Likewise.
510 * symfile.c (_initialize_symfile): Likewise.
511 * symtab.c (_initialize_symtab): Likewise.
512 * target-descriptions.c (_initialize_target_descriptions): Likewise.
513 * top.c (init_main): Likewise.
514 * tracefile-tfile.c (tfile_target_info): Likewise.
515 * tracepoint.c (_initialize_tracepoint): Likewise.
516 * tui/tui-win.c (_initialize_tui_win): Likewise.
517 * utils.c (add_internal_problem_command): Likewise.
518 * valprint.c (value_print_option_defs): Likewise.
519
5202019-08-06 Frank Ch. Eigler <fche@redhat.com>
521
522 PR build/24886
523 * configure.ac: Drop enable-libmcheck support.
524 * configure, config.in: Rebuild.
525 * libmcheck.m4: Remove.
526 * acinclude.m4: Don't include it.
527 * Makefile.in: Don't distribute it.
528 * top.c (print_gdb_configuration): Don't mention it.
529
5302019-08-06 Tom Tromey <tom@tromey.com>
531
532 * utils.c (set_output_style): Sometimes pass stream to
533 emit_style_escape.
534 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
535 * record-btrace.c (btrace_insn_history): Update.
536 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
537 method.
538 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
539 Update initializers.
540 <m_uiout>: New field.
541 <m_di>: Move lower.
542 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
543 Remove "uiout" parameter.
544 (dump_insns): Update.
545 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
546 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
547
5482019-08-06 Christian Biesinger <cbiesinger@google.com>
549
550 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
551 (error_in_psymtab_expansion): Likewise.
552 (lookup_symbol_via_quick_fns): Likewise.
553 (basic_lookup_transparent_type_quick): Likewise.
554 (basic_lookup_transparent_type_1): Likewise.
555
5562019-08-06 Tom Tromey <tromey@adacore.com>
557
558 * source.c (last_source_error): Now bool.
559 (print_source_lines_base): Make "noprint" bool. Only open
560 source file when last_source_visited changes.
561
5622019-08-06 Tom Tromey <tromey@adacore.com>
563
564 * annotate.c (annotate_source_line): Use g_source_cache.
565 * source-cache.c (source_cache::get_plain_source_lines): Change
566 parameters. Populate m_offset_cache.
567 (source_cache::ensure): New method.
568 (source_cache::get_line_charpos): New method.
569 (extract_lines): Move lower. Change parameters.
570 (source_cache::get_source_lines): Move lower.
571 * source-cache.h (class source_cache): Update comment.
572 <get_line_charpos>: New method.
573 <get_source_lines>: Update comment.
574 <clear>: Clear m_offset_cache.
575 <get_plain_source_lines>: Change parameters.
576 <ensure>: New method
577 <m_offset_cache>: New member.
578 * source.c (forget_cached_source_info_for_objfile): Update.
579 (info_source_command): Use g_source_cache.
580 (find_source_lines, open_source_file_with_line_charpos): Remove.
581 (print_source_lines_base, search_command_helper): Use g_source_cache.
582 * source.h (open_source_file_with_line_charpos): Don't declare.
583 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
584 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
585 Use g_source_cache.
586
5872019-08-06 Tom Tromey <tromey@adacore.com>
588
589 * source-cache.c (source_cache::get_plain_source_lines):
590 Remove "first_line" and "last_line" parameters.
591 (source_cache::get_source_lines): Cache plain text.
592 * source-cache.h (class source_cache)
593 <get_plain_source_lines>: Update.
594
5952019-08-06 Tom Tromey <tromey@adacore.com>
596
597 * source-cache.c (extract_lines): No longer a method.
598 Changed type of parameter. Include final newline.
599 (selftests::extract_lines_test): New function.
600 (_initialize_source_cache): Likewise.
601 * source-cache.h (class source_cache)
602 <extract_lines>: Don't declare.
603
6042019-08-06 Tom Tromey <tromey@adacore.com>
605
606 * breakpoint.c (init_breakpoint_sal): Update.
607 (breakpoint): Update.
608 * breakpoint.h (struct breakpoint) <filter>: Now a
609 unique_xmalloc_ptr.
610
6112019-08-05 Christian Biesinger <cbiesinger@google.com>
612
613 * NEWS: Mention dictionary access on blocks.
614 * python/py-block.c (blpy_getitem): New function.
615 (block_object_as_mapping): New struct.
616 (block_object_type): Use new struct for tp_as_mapping field.
617
6182019-08-05 Christian Biesinger <cbiesinger@google.com>
619
620 * objfiles.h (objfile): Add a comment describing partial symbols.
621
6222019-08-05 Tom Tromey <tromey@adacore.com>
623
624 * compile/compile.c (_initialize_compile): Use _(), not N_().
625 * thread.c (_initialize_thread): Use _(), not N_().
626 * stack.c (_initialize_stack): Use _(), not N_().
627 * printcmd.c (_initialize_printcmd): Use _(), not N_().
628
6292019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
630
631 * dwarf2read.c (struct dw2_symtab_iterator):
632 <want_specific_block>: Remove.
633 <block_index>: Change type to gdb::optional.
634 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
635 change type of BLOCK_INDEX parameter to gdb::optional.
636 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
637 (dw2_lookup_symbol): Don't pass argument for
638 WANT_SPECIFIC_BLOCK.
639 (dw2_expand_symtabs_for_function): Don't pass argument for
640 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
641 (class dw2_debug_names_iterator)
642 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
643 parameter, change BLOCK_INDEX type to gdb::optional.
644 <m_want_specific_block>: Remove.
645 <m_block_index>: Change type to gdb::optional.
646 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
647 gdb::optional. Re-write in function of gdb::optional.
648 (dw2_debug_names_lookup_symbol): Don't pass argument for
649 WANT_SPECIFIC_BLOCK.
650 (dw2_debug_names_expand_symtabs_for_function): Don't pass
651 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
652 BLOCK_INDEX.
653
6542019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
655
656 * NEWS: Mention changes to "info sources" command.
657
6582019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
659
660 * symtab.c (filename_partial_match_opts): New struct type.
661 (struct output_source_filename_data): New members
662 regexp, c_regexp, partial_match.
663 (output_source_filename): Use new members to decide to print file.
664 (info_sources_option_defs): New variable.
665 (make_info_sources_options_def_group, print_info_sources_header,
666 info_sources_command_completer):
667 New functions.
668 (info_sources_command): Read new optional arguments.
669 (_initialize_symtab): Update info sources help.
670
6712019-08-02 Alexandre Oliva <oliva@adacore.com>
672
673 * ada-lang.c (exception_support_info_v0): Renamed from...
674 (default_exception_support_info): ... this. Create new
675 definition for v1.
676 (ada_has_this_exception_support): Look up catch_handlers_sym.
677 (ada_exception_support_info_sniffer): Try v0 after default.
678
6792019-08-01 Tom Tromey <tromey@adacore.com>
680
681 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
682 gdbarch.h.
683
6842019-08-01 Christian Biesinger <cbiesinger@google.com>
685
686 * s12z-tdep.c: Fix include path for s12z-opc.h.
687
6882019-08-01 Alan Hayward <alan.hayward@arm.com>
689
690 * NEWS: Require GNU make 3.82.
691
6922019-07-16 Tom Tromey <tom@tromey.com>
693
694 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
695 declare.
696
6972019-07-30 Tom Tromey <tromey@adacore.com>
698
699 * block.c (contained_in): Remove BLOCK_FUNCTION check.
700
7012019-07-30 Kevin Buettner <kevinb@redhat.com>
702
703 * printcmd.c (print_address_symbolic): Print negative offsets.
704 (build_address_symbolic): Force signed arithmetic when computing
705 offset.
706
7072019-07-30 Christian Biesinger <cbiesinger@google.com>
708
709 PR/24474: Add a function to lookup static variables.
710 * NEWS: Mention this new function.
711 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
712 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
713 * python/python.c (python_GdbMethods): Add new function.
714
7152019-07-29 Christian Biesinger <cbiesinger@google.com>
716
717 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
718 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
719 (objfpy_lookup_static_symbol): New function.
720 (objfile_object_methods): Add new functions.
721
7222019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
723
724 * NEWS: Mention 'set|show print frame-info'. Mention new
725 'presence' value for 'frame-arguments'. Mention new '-frame-info'
726 backtrace argument. Mention that python frame filtering code
727 is now consistent with what 'backtrace' command prints.
728
7292019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
730
731 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
732 comments.
733 (print_frame_info_auto, print_frame_info_source_line,
734 print_frame_info_location, print_frame_info_source_and_location,
735 print_frame_info_location_and_address, print_frame_info_short_location):
736 New declarations.
737 (struct frame_print_options): New member print_frame_info.
738 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
739 * stack.h (get_user_print_what_frame_info): New declaration.
740 (frame_show_address): New declaration.
741 * stack.c (print_frame_arguments_choices): New value 'presence'.
742 (print_frame_info_auto, print_frame_info_source_line,
743 print_frame_info_location, print_frame_info_source_and_location,
744 print_frame_info_location_and_address, print_frame_info_short_location,
745 print_frame_info_choices, print_frame_info_print_what): New definitions.
746 (print_frame_args): Only print dots for args if print frame-arguments
747 is 'presence'.
748 (frame_print_option_defs): New element for "frame-info".
749 (get_user_print_what_frame_info): New function.
750 (frame_show_address): Make non static. Move comment to stack.h.
751 (print_frame_info_to_print_what): New function.
752 (print_frame_info): Update comment. Use fp_opts.print_frame_info
753 to decide what to print.
754 (backtrace_command_1): Handle the new print_frame_arguments_presence
755 value.
756 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
757 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
758 (py_print_frame): In non-mi mode, use LOCATION as default for
759 print_what, similarly to frame information printed directly by
760 backtrace command. Handle frame-info user option in non MI mode.
761
7622019-07-27 Kevin Buettner <kevinb@redhat.com>
763
764 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
765 Add case for debugging 32-bit target on 64-bit host. Revise
766 comment.
767
7682019-07-27 Kevin Buettner <kevinb@redhat.com>
769
770 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
771 instead of find_function_entry_range_from_pc.
772
7732019-07-27 Kevin Buettner <kevinb@redhat.com>
774
775 * stack.c (find_frame_funname): Remove code which preferred
776 minsym over symtab sym in "certain pathological cases".
777
778 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
779 parameter. Change type of "do_demangle" to bool.
780 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
781 Pass suitable "prefer_sym_over_minsym" flag to
782 build_address_symbolic(). Don't output "+" for negative offsets.
783 * printcmd.c (print_address_symbolic): Update invocation of
784 build_address_symbolic to include a "prefer_sym_over_minsym"
785 flag.
786 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
787 Restrict cases in which use of minimal symbol is preferred to that
788 of a found symbol. Update comments.
789
790 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
791 for entry pc when entry pc is out of range for that FDE.
792
7932019-07-26 Brian Callahan <bcallah@openbsd.org>
794
795 PR gdb/24839:
796 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
797 type.
798
7992019-07-25 Christian Biesinger <cbiesinger@google.com>
800
801 * python/py-objfile.c (add_separate_debug_file): Fix comment about
802 this function's Python signature.
803
804
8052019-07-24 Christian Biesinger <cbiesinger@google.com>
806
807 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
808 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
809 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
810 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
811 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
812
813
8142019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
815
816 * h8300-tdep.c (h8300_register_name_common): New.
817 h8300_register_name): Use h8300_register_name_common.
818 (h8300s_register_name): Likewise.
819 (h8300sx_register_name): Likewise.
820 (h8300h_register_nam): New.
821 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
822
823
8242019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
825
826 * arm-tdep.c (arm_skip_cmse_entry): New function.
827 (arm_is_sgstubs_section): New function.
828 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
829
8302019-07-22 Tom Tromey <tom@tromey.com>
831
832 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
833 Don't self-assign.
834
8352019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
836
837 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
838 type_print.
839
8402019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
841
842 * symtab.c (search_symbols): Adjust msymbol matching type arrays
843 so that GDB doesn't match any msymbols when searching in the
844 TYPES_DOMAIN.
845 (print_symbol_info): Print using typedef_print or type_print based
846 on the type of the symbol. Add updated FIXME comment moved from...
847 (_initialize_symtab): ... move and update FIXME comment to above.
848
8492019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
850
851 * NEWS: Mention adding -q option to "info types".
852 * symtab.c (struct info_types_options): New struct.
853 (info_types_options_defs): New variable.
854 (make_info_types_options_def_group): New function.
855 (info_types_command): Use gdb::option framework to parse options.
856 (info_types_command_completer): New function.
857 (_initialize_symtab): Extend the help text on "info types" and
858 register command completer.
859
8602019-07-21 Christian Biesinger <cbiesinger@google.com>
861
862 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
863 (lookup_symbol_in_objfile): Change int to block_enum and add a
864 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
865
8662019-07-20 Christian Biesinger <cbiesinger@google.com>
867
868 * MAINTAINERS (Write After Approval): Add self.
869
8702019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
871
872 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
873 instruction to the dummy code region.
874
8752019-07-19 Tom Tromey <tromey@adacore.com>
876
877 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
878 (ARGSUSED, PARAMS, __func__): Remove rules.
879
8802019-07-19 Alan Hayward <alan.hayward@arm.com>
881
882 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
883 * features/arm/arm-with-iwmmxt.c: Remove.
884 * features/arm/arm-with-iwmmxt.xml: Remove.
885 * features/arm/arm-with-m-fpa-layout.c: Remove.
886 * features/arm/arm-with-m-fpa-layout.xml: Remove.
887 * features/arm/arm-with-m-vfp-d16.c: Remove.
888 * features/arm/arm-with-m-vfp-d16.xml: Remove.
889 * features/arm/arm-with-m.c: Remove.
890 * features/arm/arm-with-m.xml: Remove.
891 * features/arm/arm-with-neon.c: Remove.
892 * features/arm/arm-with-neon.xml: Remove.
893 * features/arm/arm-with-vfpv2.c: Remove.
894 * features/arm/arm-with-vfpv2.xml: Remove.
895 * features/arm/arm-with-vfpv3.c: Remove.
896 * features/arm/arm-with-vfpv3.xml: Remove.
897
8982019-07-19 Alan Hayward <alan.hayward@arm.com>
899
900 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
901
9022019-07-19 Alan Hayward <alan.hayward@arm.com>
903
904 * arch/aarch32.c (aarch32_create_target_description): Create
905 target descriptions using features.
906 * arch/arm.c (arm_create_target_description)
907 (arm_create_mprofile_target_description): Likewise.
908 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
909
9102019-07-19 Alan Hayward <alan.hayward@arm.com>
911
912 * Makefile.in: Add new files.
913 * aarch32-tdep.c: New file.
914 * aarch32-tdep.h: New file.
915 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
916 Call aarch32_read_description.
917 * arch/aarch32.c: New file.
918 * arch/aarch32.h: New file.
919 * arch/arm.c (arm_create_target_description)
920 (arm_create_mprofile_target_description): New function.
921 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
922 (arm_create_target_description)
923 (arm_create_mprofile_target_description): New declaration.
924 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
925 read_description functions.
926 * arm-linux-nat.c (arm_linux_nat_target::read_description):
927 Likewise.
928 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
929 * arm-tdep.c (tdesc_arm_list): New variable.
930 (arm_register_g_packet_guesses): Call create description functions.
931 (arm_read_description) (arm_read_mprofile_description): New
932 function.
933 * arm-tdep.h (arm_read_description)
934 (arm_read_mprofile_description): Add declaration.
935 * configure.tgt: Add new files.
936
9372019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
938
939 * top.c (new_ui_command): Open specified terminal just once.
940
9412019-07-18 Tom Tromey <tromey@adacore.com>
942
943 * symtab.c (main_name): Constify return type.
944 * symfile.c (set_initial_language): Update.
945 * symtab.h (main_name): Constify return type.
946
9472019-07-17 Tom Tromey <tom@tromey.com>
948
949 * tui/tui-winsource.c (tui_update_source_window)
950 (tui_update_source_window_as_is)
951 (tui_update_source_windows_with_line): Remove return.
952 * tui/tui-disasm.c (tui_show_disassem)
953 (tui_show_disassem_and_update_source): Remove return.
954 * tui/tui.c (tui_reset): Remove return.
955 * tui/tui-wingeneral.c
956 (tui_check_and_display_highlight_if_needed): Remove return.
957
9582019-07-17 Tom Tromey <tom@tromey.com>
959
960 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
961
9622019-07-17 Tom Tromey <tom@tromey.com>
963
964 * tui/tui-winsource.h (struct tui_exec_info_window)
965 (struct tui_source_window_base): Move from tui-data.h.
966 * tui/tui-winsource.c: Move many method definitions from
967 elsewhere. Remove "structuring" comments.
968 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
969 (tui_source_window_base::refresh_window): Move to
970 tui-winsource.c.
971 * tui/tui-win.c (tui_source_window_base::refresh_all)
972 (tui_source_window_base::update_tab_width)
973 (tui_source_window_base::set_new_height)
974 (tui_source_window_base::do_make_visible_with_new_height): Move to
975 tui-winsource.c.
976 * tui/tui-source.h: Update.
977 * tui/tui-source.c (tui_source_window_base::reset): Move to
978 tui-winsource.c.
979 * tui/tui-disasm.h: Update.
980 * tui/tui-data.h (struct tui_exec_info_window): Move to
981 tui-winsource.h.
982 (struct tui_source_window_base): Likewise.
983 * tui/tui-data.c (tui_source_window_base::clear_detail)
984 (tui_source_window_base, ~tui_source_window_base): Move to
985 tui-winsource.c.
986
9872019-07-17 Tom Tromey <tom@tromey.com>
988
989 * tui/tui-win.c (tui_resize_all)
990 (tui_source_window_base::update_tab_width)
991 (tui_adjust_win_heights): Update.
992 (tui_win_info::make_invisible_and_set_new_height): Rename from
993 make_invisible_and_set_new_height.
994 * tui/tui-data.h (struct tui_win_info)
995 <make_invisible_and_set_new_height>: New method.
996
9972019-07-17 Tom Tromey <tom@tromey.com>
998
999 * tui/tui.c: Update.
1000 * tui/tui-source.h (struct tui_source_window): Move from
1001 tui-data.h.
1002 * tui/tui-layout.c: Update.
1003 * tui/tui-disasm.c: Update.
1004 * tui/tui-data.h (struct tui_source_window): Move to
1005 tui-source.h.
1006
10072019-07-17 Tom Tromey <tom@tromey.com>
1008
1009 * tui/tui-disasm.h (struct tui_disasm_window): Move from
1010 tui-data.h.
1011 * tui/tui-data.h (struct tui_disasm_window): Move to
1012 tui-disasm.h.
1013
10142019-07-17 Tom Tromey <tom@tromey.com>
1015
1016 * tui/tui-regs.h (struct tui_data_item_window): Move from
1017 tui-data.h.
1018 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
1019 * tui/tui-data.h (struct tui_data_item_window): Move to
1020 tui-regs.h.
1021 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
1022
10232019-07-17 Tom Tromey <tom@tromey.com>
1024
1025 * tui/tui.c: Update.
1026 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
1027 (tui_cmd_window::max_height): Move to tui-command.c.
1028 * tui/tui-layout.c: Update.
1029 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
1030 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
1031 tui-command.c.
1032 * tui/tui-command.h (struct tui_cmd_window): Move from
1033 tui-data.h.
1034 * tui/tui-command.c: Remove "structuring" comments.
1035 (tui_cmd_window::clear_detail)
1036 (tui_cmd_window::do_make_visible_with_new_height)
1037 (tui_cmd_window::max_height): Move from elsewhere.
1038
10392019-07-17 Tom Tromey <tom@tromey.com>
1040
1041 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
1042 Now static.
1043 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
1044 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
1045
10462019-07-17 Tom Tromey <tom@tromey.com>
1047
1048 * tui/tui.c: Update.
1049 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
1050 tui-regs.c.
1051 * tui/tui-windata.h: Remove file.
1052 * tui/tui-windata.c: Remove file.
1053 * tui/tui-win.c (tui_data_window::set_new_height)
1054 (tui_data_window::do_make_visible_with_new_height): Move to
1055 tui-regs.c.
1056 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
1057 * tui/tui-regs.c: Remove "structuring" comments.
1058 (tui_data_window::first_data_item_displayed)
1059 (tui_data_window::delete_data_content_windows)
1060 (tui_data_window::erase_data_content)
1061 (tui_data_window::display_all_data)
1062 (tui_data_window::refresh_all)
1063 (tui_data_window::do_scroll_vertical)
1064 (tui_data_window::clear_detail, tui_data_window::set_new_height)
1065 (tui_data_window::do_make_visible_with_new_height)
1066 (tui_data_window::refresh_window): Move from elsewhere.
1067 (_initialize_tui_regs): Move to end of file.
1068 * tui/tui-layout.c: Update.
1069 * tui/tui-hooks.c: Update.
1070 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
1071 * tui/tui-data.c (tui_data_window::clear_detail): Move to
1072 tui-regs.c.
1073 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
1074
10752019-07-17 Tom Tromey <tom@tromey.com>
1076
1077 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
1078 seen.
1079
10802019-07-17 Tom Tromey <tom@tromey.com>
1081
1082 * tui/tui-win.c (tui_source_window_base::set_new_height)
1083 (tui_source_window_base::do_make_visible_with_new_height): Use
1084 m_has_locator field directly.
1085 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
1086 method.
1087 (struct tui_source_window_base) <has_locator>: Likewise.
1088
10892019-07-17 Tom Tromey <tom@tromey.com>
1090
1091 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
1092 Don't declare.
1093 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
1094 Remove.
1095 * tui/tui-win.c (tui_source_window_base::set_new_height)
1096 (tui_source_window_base::set_new_height)
1097 (make_invisible_and_set_new_height)
1098 (tui_source_window_base::do_make_visible_with_new_height)
1099 (tui_source_window_base::do_make_visible_with_new_height):
1100 Update.
1101 * tui/tui-layout.c (show_source_disasm_command, show_data)
1102 (show_source_or_disasm_and_command): Update.
1103 * tui/tui-layout.c (show_layout): Update.
1104
11052019-07-17 Tom Tromey <tom@tromey.com>
1106
1107 * tui/tui-layout.c (make_data_window): Remove.
1108 (show_data): Unify creation and re-initialization cases.
1109
11102019-07-17 Tom Tromey <tom@tromey.com>
1111
1112 * tui/tui-layout.c (make_source_window, make_disasm_window):
1113 Remove.
1114 (show_data): Unify creation and re-initialization cases.
1115
11162019-07-17 Tom Tromey <tom@tromey.com>
1117
1118 * tui/tui-layout.c (make_command_window): Remove.
1119 (show_source_disasm_command, show_source_or_disasm_and_command):
1120 Unify creation and re-initialization cases.
1121
11222019-07-17 Tom Tromey <tom@tromey.com>
1123
1124 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
1125 creation and re-initialization cases.
1126
11272019-07-17 Tom Tromey <tom@tromey.com>
1128
1129 * tui/tui-regs.c (tui_get_register): Return void.
1130
11312019-07-17 Tom Tromey <tom@tromey.com>
1132
1133 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
1134 Simplify.
1135
11362019-07-17 Tom Tromey <tom@tromey.com>
1137
1138 * tui/tui-layout.c (show_source_disasm_command): Simplify window
1139 resetting.
1140
11412019-07-17 Tom Tromey <tom@tromey.com>
1142
1143 * tui/tui.h (tui_set_layout_by_name): Don't declare.
1144 * tui/tui-regs.c (tui_reg_layout): New function.
1145 (tui_show_registers, tui_reg_command): Use it.
1146 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
1147 (tui_layout_command): Rename from tui_set_layout_by_name. Change
1148 parameters.
1149 (tui_layout_command): Remove.
1150
11512019-07-17 Tom Tromey <tom@tromey.com>
1152
1153 * tui/tui-layout.h (tui/tui-layout): Return void.
1154 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
1155
11562019-07-17 Tom Tromey <tom@tromey.com>
1157
1158 * tui/tui-layout.c (show_source_disasm_command, show_data):
1159 Update.
1160 (reset_locator): Remove.
1161 (show_source_or_disasm_and_command): Update.
1162
11632019-07-17 Tom Tromey <tom@tromey.com>
1164
1165 * tui/tui-source.c (tui_source_window_base::reset): Remove
1166 win_type parameter.
1167 * tui/tui-layout.c (make_command_window, make_source_window)
1168 (make_disasm_window, make_data_window)
1169 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
1170 (reset_locator, show_source_or_disasm_and_command): Update.
1171 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
1172 win_type parameter.
1173 (struct tui_source_window_base) <reset>: Likewise.
1174
11752019-07-17 Tom Tromey <tom@tromey.com>
1176
1177 * tui/tui-layout.c (show_source_disasm_command): Use
1178 reset_locator.
1179 (reset_locator): New function.
1180 (init_and_make_win): Remove.
1181 (show_source_or_disasm_and_command): Use reset_locator.
1182
11832019-07-17 Tom Tromey <tom@tromey.com>
1184
1185 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
1186 condition.
1187 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
1188 Remove condition.
1189 * tui/tui-source.c (tui_source_window_base::reset): New method.
1190 * tui/tui-layout.c (make_command_window): Don't call
1191 init_and_make_win.
1192 (make_source_window, make_disasm_window): Don't call
1193 make_source_or_disasm_window.
1194 (make_data_window): Don't call init_and_make_win. Change calling
1195 convention.
1196 (show_source_disasm_command, show_data): Simplify.
1197 (make_source_or_disasm_window): Remove.
1198 (show_source_or_disasm_and_command): Simplify.
1199 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
1200 (struct tui_source_window_base) <reset>: Likewise.
1201 <execution_info>: Remove initializer.
1202 * tui/tui-data.c (tui_source_window_base): Initialize
1203 execution_info.
1204
12052019-07-17 Tom Tromey <tom@tromey.com>
1206
1207 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
1208 variable.
1209
12102019-07-17 Tom Tromey <tom@tromey.com>
1211
1212 * tui/tui.c (tui_rl_other_window): Update.
1213 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
1214 superclass method first. Always iterate over regs_content.
1215 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
1216 method.
1217 * tui/tui-win.c (tui_set_focus_command): Update.
1218
12192019-07-17 Tom Tromey <tom@tromey.com>
1220
1221 * tui/tui-win.c (tui_set_focus_command): Rename from
1222 tui_set_focus. Call tui_enable.
1223 (tui_set_focus_command): Remove.
1224
12252019-07-17 Tom Tromey <tom@tromey.com>
1226
1227 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
1228 refresh_window.
1229 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
1230 touchwin.
1231 (tui_data_window::refresh_window): Call refresh_window on data
1232 items. Always call superclass refresh_window.
1233 (tui_win_info::refresh): Remove.
1234 (tui_source_window_base::refresh_window): Update.
1235 (tui_refresh_all): Update.
1236 * tui/tui-layout.c (show_source_disasm_command): Remove call to
1237 refresh_window.
1238 (show_source_or_disasm_and_command): Likewise.
1239 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
1240 (struct tui_source_window_base) <refresh>: Likewise.
1241
12422019-07-17 Tom Tromey <tom@tromey.com>
1243
1244 * tui/tui-winsource.c (tui_clear_source_content)
1245 (tui_show_source_content): Update.
1246 * tui/tui-source.c (tui_source_window::showing_source_p): Check
1247 whether content is empty.
1248 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
1249 Remove.
1250
12512019-07-17 Tom Tromey <tom@tromey.com>
1252
1253 * tui/tui-winsource.c (tui_erase_source_content): Clear the
1254 window's contents.
1255 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
1256 * tui/tui-source.c (tui_set_source_content_nil): Remove.
1257
12582019-07-17 Tom Tromey <tom@tromey.com>
1259
1260 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
1261 (struct tui_data_item_window): Update.
1262
12632019-07-17 Tom Tromey <tom@tromey.com>
1264
1265 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
1266 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
1267 defines.
1268
12692019-07-17 Tom Tromey <tom@tromey.com>
1270
1271 * tui/tui-winsource.h (tui_erase_source_content)
1272 (tui_clear_source_content): Remove "display_prompt" parameter.
1273 * tui/tui-winsource.c (tui_update_source_window_as_is)
1274 (tui_update_source_windows_with_addr): Update.
1275 (tui_clear_source_content): Remove "display_prompt" parameter.
1276 (tui_erase_source_content): Likewise. Simplify.
1277 (tui_show_source_content): Update.
1278 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
1279 * tui/tui-stack.c (tui_show_frame_info): Update.
1280 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
1281 Remove defines.
1282
12832019-07-17 Tom Tromey <tom@tromey.com>
1284
1285 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1286 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
1287 parameter.
1288 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
1289 parameter.
1290
12912019-07-17 Tom Tromey <tom@tromey.com>
1292
1293 * tui/tui-winsource.c (tui_clear_source_content)
1294 (tui_show_source_content, tui_show_exec_info_content)
1295 (tui_clear_exec_info_content): Update.
1296 * tui/tui-stack.c (tui_show_locator_content): Update.
1297 (tui_show_frame_info): Update.
1298 * tui/tui-source.h (tui_source_window): Don't declare.
1299 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
1300 from tui_source_is_displayed.
1301 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
1302 Remove field.
1303 (struct tui_source_window_base) <content_in_use>: New field. Now
1304 bool.
1305 (struct tui_source_window) <showing_source_p>: New method.
1306 (TUI_SRC_WIN): Change cast.
1307 * tui/tui-data.c (tui_initialize_static_data): Update.
1308
13092019-07-17 Tom Tromey <tom@tromey.com>
1310
1311 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
1312 location_matches_p.
1313 * tui/tui-source.c (tui_source_window::location_matches_p): New
1314 method.
1315 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
1316 method.
1317 * tui/tui-data.h (struct tui_source_window_base)
1318 <location_matches_p>: New method.
1319 (struct tui_source_window, struct tui_disasm_window)
1320 <location_matches_p>: Likewise.
1321
13222019-07-17 Tom Tromey <tom@tromey.com>
1323
1324 * tui/tui-win.c (tui_set_win_height_command): Rename from
1325 tui_set_win_height.
1326 (tui_set_win_height_command): Remove.
1327
13282019-07-17 Tom Tromey <tom@tromey.com>
1329
1330 * tui/tui-source.c (tui_source_window): New constructor. Add
1331 observer.
1332 (~tui_source_window): New destructor.
1333 (tui_source_window::style_changed): New method.
1334 * tui/tui-hooks.c (tui_redisplay_source): Remove.
1335 (tui_attach_detach_observers): Update.
1336 * tui/tui-data.h (struct tui_source_window): Make constructor not
1337 inline. Add destructor.
1338 (struct tui_source_window) <style_changed>: New method.
1339 <m_observable>: New member.
1340
13412019-07-17 Tom Tromey <tom@tromey.com>
1342
1343 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
1344 * tui/tui-win.c (tui_resize_all): Fix typo.
1345
13462019-07-17 Tom Tromey <tom@tromey.com>
1347
1348 * tui/tui-wingeneral.h (tui_refresh_all): Update.
1349 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
1350 (tui_refresh_all): Remove "list" parameter. Use foreach.
1351 * tui/tui-win.c (window_name_completer): Use foreach.
1352 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
1353 (update_tab_width): Likewise.
1354 * tui/tui-layout.c (show_layout): Update.
1355 * tui/tui-data.h (class tui_window_iterator): New.
1356 (struct all_tui_windows): New.
1357 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
1358
13592019-07-17 Tom Tromey <tom@tromey.com>
1360
1361 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
1362 parameter. Don't reference globals.
1363 (tui_reg_command): Update.
1364
13652019-07-17 Tom Tromey <tom@tromey.com>
1366
1367 * tui/tui-regs.c (tui_show_registers): Simplify.
1368
13692019-07-17 Tom Tromey <tom@tromey.com>
1370
1371 * tui/tui-regs.c (tui_show_registers): Update.
1372 (tui_show_register_group): Add win_info parameter.
1373
13742019-07-17 Tom Tromey <tom@tromey.com>
1375
1376 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
1377 Rename from tui_display_reg_element_at_line.
1378 (tui_data_window::display_registers_from_line): Update.
1379 * tui/tui-data.h (struct tui_data_window)
1380 <display_reg_element_at_line>: New method.
1381
13822019-07-17 Tom Tromey <tom@tromey.com>
1383
1384 * tui/tui-regs.h (tui_display_registers_from)
1385 (tui_display_registers_from_line): Don't declare.
1386 * tui/tui-windata.c (tui_data_window::display_all_data)
1387 (tui_data_window::refresh_all)
1388 (tui_data_window::do_scroll_vertical): Update.
1389 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
1390 from tui_display_registers_from.
1391 (tui_display_reg_element_at_line): Update.
1392 (tui_data_window::display_registers_from_line): Rename from
1393 tui_display_registers_from_line.
1394 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
1395 display_registers_from_line>: New methods.
1396
13972019-07-17 Tom Tromey <tom@tromey.com>
1398
1399 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
1400 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
1401 from tui_erase_data_content.
1402 (tui_data_window::display_all_data)
1403 (tui_data_window::refresh_all)
1404 (tui_data_window::do_scroll_vertical): Update.
1405 * tui/tui-regs.c (tui_show_registers): Update.
1406 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
1407 New method.
1408
14092019-07-17 Tom Tromey <tom@tromey.com>
1410
1411 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
1412 declare.
1413 * tui/tui-windata.c
1414 (tui_data_window::delete_data_content_windows): Rename from
1415 tui_delete_data_content_windows.
1416 (tui_data_window::display_all_data)
1417 (tui_data_window::do_scroll_vertical): Update.
1418 * tui/tui-data.h (struct tui_data_window)
1419 <delete_data_content_windows>: New method.
1420
14212019-07-17 Tom Tromey <tom@tromey.com>
1422
1423 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
1424 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
1425
14262019-07-17 Tom Tromey <tom@tromey.com>
1427
1428 * tui/tui-windata.h (tui_display_all_data): Don't declare.
1429 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
1430 from tui_display_all_data.
1431 * tui/tui-win.c
1432 (tui_data_window::do_make_visible_with_new_height): Update.
1433 * tui/tui-regs.c (tui_show_registers): Update.
1434 * tui/tui-layout.c (tui_set_layout): Update.
1435 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
1436 method.
1437
14382019-07-17 Tom Tromey <tom@tromey.com>
1439
1440 * tui/tui-windata.h (tui_display_data_from): Don't declare.
1441 * tui/tui-windata.c (tui_display_data_from): Remove.
1442 (tui_data_window::refresh_all): Update.
1443
14442019-07-17 Tom Tromey <tom@tromey.com>
1445
1446 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
1447 * tui/tui-windata.c (tui_display_data_from_line): Remove.
1448 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
1449 tui_display_registers_from_line.
1450 * tui/tui-regs.h (tui_display_registers_from_line): Update.
1451 * tui/tui-regs.c (tui_display_registers_from_line): Remove
1452 "force_display" parameter.
1453
14542019-07-17 Tom Tromey <tom@tromey.com>
1455
1456 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
1457 declare.
1458 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
1459 Rename from tui_first_reg_element_no_inline.
1460 (tui_display_reg_element_at_line)
1461 (tui_display_registers_from_line): Update.
1462 * tui/tui-data.h (struct tui_data_window)
1463 <first_reg_element_no_inline>: New method.
1464
14652019-07-17 Tom Tromey <tom@tromey.com>
1466
1467 * tui/tui-windata.c (tui_display_data_from)
1468 (tui_data_window::do_scroll_vertical): Update.
1469 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
1470 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
1471 Rename from tui_line_from_reg_element_no.
1472 (tui_display_registers_from_line): Update.
1473 * tui/tui-data.h (struct tui_data_window)
1474 <line_from_reg_element_no>: New method.
1475
14762019-07-17 Tom Tromey <tom@tromey.com>
1477
1478 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
1479 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
1480 tui_last_regs_line_no.
1481 (tui_display_reg_element_at_line)
1482 (tui_display_registers_from_line): Update.
1483 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
1484 method.
1485
14862019-07-17 Tom Tromey <tom@tromey.com>
1487
1488 PR tui/24722:
1489 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
1490 (tui_update_breakpoint_info): Add "being_deleted" parameter.
1491 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1492 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
1493 (tui_update_breakpoint_info): Likewise.
1494 * tui/tui-hooks.c (tui_event_create_breakpoint)
1495 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
1496 Update.
1497
14982019-07-17 Tom Tromey <tom@tromey.com>
1499
1500 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
1501
15022019-07-17 Tom Tromey <tom@tromey.com>
1503
1504 * tui/tui-winsource.c (tui_update_source_window_as_is)
1505 (tui_update_source_windows_with_addr): Update.
1506 * tui/tui-source.h (tui_set_source_content)
1507 (tui_show_symtab_source): Add "win_info" parameter.
1508 * tui/tui-source.c (tui_set_source_content): Add "win_info"
1509 parameter.
1510 (tui_show_symtab_source): Likewise.
1511
15122019-07-17 Tom Tromey <tom@tromey.com>
1513
1514 * tui/tui-wingeneral.c
1515 (tui_check_and_display_highlight_if_needed): Check can_highlight.
1516
15172019-07-17 Tom Tromey <tom@tromey.com>
1518
1519 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
1520 (struct tui_cmd_window) <can_scroll>: New method.
1521 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
1522 method.
1523
15242019-07-17 Tom Tromey <tromey@adacore.com>
1525
1526 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
1527 do_field_signed>: Rename. Change type of "value".
1528 * ui-out.c (ui_out::field_signed): Rename from field_int.
1529 Change type of "value".
1530 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
1531 type of "value".
1532 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
1533 do_field_int. Change type of "value".
1534 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
1535 do_field_int. Change type of "value".
1536 * tracepoint.c (trace_status_mi, tfind_1)
1537 (print_one_static_tracepoint_marker): Update.
1538 * thread.c (print_thread_info_1, print_selected_thread_frame):
1539 Update.
1540 * stack.c (print_frame, print_frame_info): Update.
1541 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
1542 Update.
1543 * source.c (print_source_lines_base): Update.
1544 * skip.c (info_skip_command): Update.
1545 * record-btrace.c (btrace_ui_out_decode_error)
1546 (btrace_call_history_src_line): Update.
1547 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
1548 Update.
1549 * progspace.c (print_program_space): Update.
1550 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
1551 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
1552 do_field_int. Change type of "value".
1553 * mi/mi-out.c (mi_ui_out::do_table_begin)
1554 (mi_ui_out::do_table_header): Update.
1555 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
1556 type of "value".
1557 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
1558 (mi_cmd_data_list_changed_registers, output_register)
1559 (mi_cmd_data_read_memory, mi_load_progress)
1560 (mi_cmd_trace_frame_collected): Update.
1561 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
1562 Update.
1563 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
1564 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
1565 (mi_cmd_var_list_children, varobj_update_one): Update.
1566 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
1567 (mi_cmd_stack_list_args, list_arg_or_local): Update.
1568 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
1569 * inferior.c (print_inferior): Update.
1570 * gdb_bfd.c (print_one_bfd): Update.
1571 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1572 Update.
1573 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
1574 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
1575 do_field_int. Change type of "value".
1576 * cli-out.c (cli_ui_out::do_field_signed): Rename from
1577 do_field_int. Change type of "value".
1578 * breakpoint.c (watchpoint_check, print_breakpoint_location)
1579 (print_one_breakpoint_location, print_it_catch_fork)
1580 (print_one_catch_fork, print_it_catch_vfork)
1581 (print_one_catch_vfork, print_it_catch_solib)
1582 (print_it_catch_exec, print_it_ranged_breakpoint)
1583 (print_mention_watchpoint, print_mention_masked_watchpoint)
1584 (bkpt_print_it, update_static_tracepoint): Update.
1585 * break-catch-throw.c (print_it_exception_catchpoint): Update.
1586 * break-catch-syscall.c (print_it_catch_syscall): Update.
1587 * ada-tasks.c (print_ada_task_info): Update.
1588 * ada-lang.c (print_it_exception, print_mention_exception):
1589 Update.
1590
15912019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1592
1593 PR breakpoints/24541
1594 * gdbarch.c: Regenerate.
1595 * gdbarch.h: Regenerate.
1596 * gdbarch.sh: Adjust return type and parameter types for
1597 'stap_adjust_register'.
1598 (i386_stap_adjust_register): Adjust signature and return new
1599 register name.
1600 * stap-probe.c (stap_parse_register_operand): Adjust use of
1601 'gdbarch_stap_adjust_register'.
1602
16032019-07-17 Tom Tromey <tromey@adacore.com>
1604
1605 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
1606 declare VEC.
1607 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
1608 std::vector.
1609 (struct s390_process_info): Add initializers.
1610 (s390_add_process): Use new.
1611 (s390_linux_nat_target::low_forget_process): Use delete.
1612 (s390_linux_nat_target::low_new_fork)
1613 (s390_linux_nat_target::stopped_by_watchpoint)
1614 (s390_linux_nat_target::low_prepare_to_resume)
1615 (s390_linux_nat_target::insert_watchpoint)
1616 (s390_linux_nat_target::insert_hw_breakpoint)
1617 (s390_linux_nat_target::remove_watchpoint)
1618 (s390_linux_nat_target::remove_hw_breakpoint): Update.
1619
16202019-07-16 John Baldwin <jhb@FreeBSD.org>
1621
1622 * aarch64-fbsd-nat.c: Include regcache.h.
1623 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
1624 argument.
1625 (aarch64_fbsd_nat_target::fetch_registers)
1626 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
1627 variable.
1628 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
1629
16302019-07-16 John Baldwin <jhb@FreeBSD.org>
1631
1632 * fbsd-nat.c: Include gdbarch.h.
1633
16342019-07-15 Tom Tromey <tromey@adacore.com>
1635
1636 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
1637
16382019-07-15 Tom Tromey <tromey@adacore.com>
1639
1640 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
1641 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
1642 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
1643 * cli-out.c (cli_ui_out::do_field_int): New method.
1644 * ui-out.c (ui_out::field_unsigned): New method.
1645 * symfile.c (generic_load): Use field_unsigned.
1646 (print_transfer_performance): Likewise.
1647 * record-btrace.c (ui_out_field_uint): Remove.
1648 (btrace_call_history_insn_range, btrace_call_history): Use
1649 field_unsigned.
1650 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
1651 field_unsigned.
1652 * ui-out.h (class ui_out) <field_unsigned>: New method.
1653 <do_field_unsigned>: Likewise.
1654
16552019-07-15 Tom Tromey <tromey@adacore.com>
1656
1657 * mi/mi-main.c (list_available_thread_groups): Use field_string.
1658 * mi/mi-interp.c (mi_memory_changed): Use field_string.
1659 * target.c (flash_erase_command): Use field_string.
1660 * infrun.c (print_signal_received_reason): Use field_string.
1661 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
1662 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
1663 field_string.
1664 * ada-tasks.c (print_ada_task_info): Use field_string.
1665
16662019-07-15 Tom Tromey <tromey@adacore.com>
1667
1668 * target.c (flash_erase_command): Use field_core_addr.
1669 * symfile.c (generic_load): Use field_core_addr.
1670 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1671 Use field_core_addr.
1672 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
1673 field_core_addr.
1674
16752019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1676
1677 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
1678 value if its desired type is smaller than a CORE_ADDR and signed.
1679
16802019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1681
1682 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
1683 of changes to field names, and use new is_reference field to
1684 decide if a property is a reference or not.
1685 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
1686 field.
1687 (struct dwarf2_property_baton): Update header comment, rename
1688 'referenced_type' to 'property_type' and update comments.
1689 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
1690 default property type, store in property baton, update to take
1691 accound of renamed field.
1692 (read_func_scope): Update call to attr_to_dynamic_prop.
1693 (read_array_type): Likewise.
1694 (dwarf2_per_cu_addr_sized_int_type): New function.
1695 (read_subrange_index_type): Move type finding code to
1696 dwarf2_per_cu_addr_sized_int_type.
1697 (read_subrange_type): Update calls to attr_to_dynamic_prop.
1698 (dwarf2_per_cu_addr_type): New function.
1699 (set_die_type): Update calls to attr_to_dynamic_prop.
1700
17012019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1702
1703 * dwarf2read.c (read_subrange_index_type): New function.
1704 (read_subrange_type): Move code into new function and call it.
1705 * gdbtypes.c (create_range_type): Add some asserts.
1706
17072019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1708
1709 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
1710 update return statements.
1711 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
1712 declaration, and update comment to match.
1713 * gdbtypes.c (resolve_dynamic_array): Update call to
1714 dwarf2_evaluate_property to match new return type.
1715
17162019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1717
1718 * valarith.c (value_subscripted_rvalue): Change lowerbound
1719 parameter type from int to LONGEST.
1720 * value.h (value_subscripted_rvalue): Likewise in declaration.
1721
17222019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
1723
1724 * cli/cli-utils.c (info_print_command_completer): New function.
1725 * cli/cli-utils.h: Add 'completer.h' include, and forward
1726 declaration for 'struct cmd_list_element'.
1727 (info_print_command_completer): Declare.
1728 * stack.c (_initialize_stack): Add completer for 'info locals' and
1729 'info args'.
1730 * symtab.c (_initialize_symtab): Add completer for 'info
1731 variables' and 'info functions'.
1732 * NEWS: Mention completion for additional info commands.
1733
17342019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
1735
1736 * cli/cli-utils.c (extract_info_print_args): Delete.
1737 (extract_arg_maybe_quoted): Delete.
1738 (info_print_options_defs): New variable.
1739 (make_info_print_options_def_group): New function.
1740 (extract_info_print_options): Define new function.
1741 * cli/cli-utils.h (extract_info_print_args): Delete.
1742 (struct info_print_options): New structure.
1743 (extract_info_print_options): Declare new function.
1744 * stack.c (info_locals_command): Update to use new
1745 extract_info_print_options, also add a header comment.
1746 (info_args_command): Likewise.
1747 * symtab.c (info_variables_command): Likewise.
1748 (info_functions_command): Likewise.
1749
17502019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
1751
1752 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
1753 to extract string arguments.
1754 * common/common-utils.c (extract_string_maybe_quoted): New function.
1755 * common/common-utils.h (extract_string_maybe_quoted): Declare.
1756
17572019-07-11 Tom Tromey <tromey@adacore.com>
1758
1759 * main.c (get_init_files): Use GDBINIT, not gdbinit.
1760 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
1761 * top.h (gdbinit): Don't declare.
1762 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
1763 into...
1764 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
1765 * top.c (gdb_init): Don't call init_cli_cmds.
1766 (gdbinit): Remove.
1767 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
1768
17692019-07-11 Tom Tromey <tromey@adacore.com>
1770
1771 * python/py-inferior.c (add_thread_object): Don't use thread_obj
1772 after it has been moved.
1773
17742019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1775
1776 * valops.c (value_must_coerce_to_target): Change return type to
1777 bool.
1778 * value.h (value_must_coerce_to_target): Likewise.
1779
17802019-07-10 Simon Marchi <simon.marchi@efficios.com>
1781
1782 * breakpoint.c (is_hardware_watchpoint): Remove
1783 forward-declaration.
1784 (is_masked_watchpoint): Change return type to bool.
1785 (is_tracepoint): Likewise.
1786 (is_breakpoint): Likewise.
1787 (is_hardware_watchpoint): Likewise.
1788 (is_watchpoint): Likewise.
1789 (is_no_memory_software_watchpoint): Likewise.
1790 (is_catchpoint): Likewise.
1791 (breakpoint_1): Make FILTER parameter's return type bool.
1792 is_masked_watchpoint): Change return type to bool.
1793 (save_breakpoints): Make FILTER parameter's return type bool.
1794 * breakpoint.h (is_breakpoint): Change return type to bool.
1795 (is_watchpoint): Likewise.
1796 (is_catchpoint): Likewise.
1797 (is_tracepoint): Likewise.
1798
17992019-07-10 Tom Tromey <tom@tromey.com>
1800
1801 * defs.h: Don't include gdbarch.h.
1802 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
1803 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
1804 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
1805 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
1806 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
1807 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
1808 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
1809 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
1810 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
1811 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
1812 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
1813 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
1814 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
1815 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
1816 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
1817 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
1818 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
1819 record-btrace.c, record.h, regcache-dump.c, regcache.h,
1820 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
1821 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
1822 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
1823 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
1824 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
1825 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
1826 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
1827 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
1828 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
1829
18302019-07-10 Tom Tromey <tromey@adacore.com>
1831
1832 * ada-lang.h (is_ada_exception_catchpoint): Declare.
1833 * breakpoint.c (init_ada_exception_breakpoint): Register as
1834 bp_catchpoint.
1835 (print_one_breakpoint_location, print_one_breakpoint): Use
1836 is_ada_exception_catchpoint.
1837 * ada-lang.c (class ada_catchpoint_location): Pass
1838 bp_loc_software_breakpoint to bp_location constructor.
1839 (is_ada_exception_catchpoint): New function.
1840
18412019-07-10 Tom Tromey <tromey@adacore.com>
1842
1843 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
1844 VEC.
1845 (struct arm_exidx_entry): New method operator<.
1846 (struct arm_exidx_data) <section_maps>: Change type.
1847 (arm_exidx_data_free): Remove.
1848 (arm_exidx_data_key): Change type. Move lower.
1849 (arm_exidx_new_objfile): Update.
1850 (arm_compare_exidx_entries): Remove.
1851 (arm_find_exidx_entry, _initialize_arm_tdep)
1852
18532019-07-10 Tom Tromey <tromey@adacore.com>
1854
1855 * solib-spu.c (ocl_program_data_key): Change type.
1856 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
1857 Update.
1858
18592019-07-10 Tom Tromey <tromey@adacore.com>
1860
1861 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
1862 (struct solib_aix_inferior_data) <library_list>: Change type.
1863 (solib_aix_inferior_data_handle): Change type.
1864 (get_solib_aix_inferior_data): Update.
1865 (solib_aix_free_library_list): Remove.
1866 (library_list_start_library): Update.
1867 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
1868 return type.
1869 (solib_aix_get_library_list)
1870 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
1871 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
1872
18732019-07-10 Tom Tromey <tromey@adacore.com>
1874
1875 * solib-dsbt.c (struct dsbt_info): Add initializers.
1876 (solib_dsbt_pspace_data): Change type.
1877 (dsbt_pspace_data_cleanup): Remove.
1878 (get_dsbt_info, _initialize_dsbt_solib): Update.
1879
18802019-07-10 Tom Tromey <tromey@adacore.com>
1881
1882 * spu-tdep.c (spu_overlay_data): Change type.
1883 (spu_get_overlay_table, spu_overlay_new_objfile)
1884 (_initialize_spu_tdep): Update.
1885
18862019-07-10 Tom Tromey <tromey@adacore.com>
1887
1888 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
1889 destructor.
1890 (dbx_objfile_data_key): Change type and declare later.
1891 (DBX_SYMFILE_INFO): Rewrite.
1892 * dbxread.c (dbx_objfile_data_key): Change type.
1893 (dbx_symfile_init): Update.
1894 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
1895 (coffstab_build_psymtabs, elfstab_build_psymtabs)
1896 (stabsect_build_psymtabs, _initialize_dbxread): Update.
1897
18982019-07-10 Tom Tromey <tromey@adacore.com>
1899
1900 * jit.c (jit_program_space_key): Change type. Move lower.
1901 (get_jit_program_space_data): Update.
1902 (jit_program_space_data_cleanup): Remove.
1903 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
1904 Update.
1905 (struct jit_program_space_data): Add initializers.
1906
19072019-07-10 Tom Tromey <tromey@adacore.com>
1908
1909 * solib-darwin.c (struct darwin_info): Add initializers.
1910 (solib_darwin_pspace_data): Change type.
1911 (darwin_pspace_data_cleanup): Remove.
1912 (get_darwin_info, _initialize_darwin_solib): Update.
1913
19142019-07-10 Tom Tromey <tromey@adacore.com>
1915
1916 * remote-sim.c (struct sim_inferior_data): Add initializers,
1917 constructor, and destructor.
1918 (sim_inferior_data_key): Change type. Move lower.
1919 (check_for_duplicate_sim_descriptor): Update.
1920 (get_sim_inferior_data): Use new. Update.
1921 (~sim_inferior_data_cleanup): Rename from
1922 sim_inferior_data_cleanup. Simplify.
1923 (gdbsim_close_inferior, simulator_command)
1924 (sim_command_completer, _initialize_remote_sim): Update.
1925 (next_pid, INITIAL_PID): Move earlier.
1926
19272019-07-10 Tom Tromey <tromey@adacore.com>
1928
1929 * python/python-internal.h (create_thread_object): Return
1930 gdbpy_ref.
1931 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
1932 * python/py-inferior.c (struct threadlist_entry): Add
1933 constructor.
1934 <thread_obj>: Now a gdbpy_ref.
1935 (thread_to_thread_object): Update.
1936 (add_thread_object): Use new.
1937 (delete_thread_object): Use delete.
1938 (infpy_threads): Update.
1939 (py_free_inferior): Update. Construct "inf_obj" after acquiring
1940 GIL.
1941
19422019-07-10 Tom Tromey <tromey@adacore.com>
1943
1944 * valops.c (value_cast): Specialize error message for Ada.
1945
19462019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1947
1948 * breakpoint.c (breakpoint_1): Update doc and parameter names.
1949
19502019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1951
1952 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
1953 bpstat_should_step): Return bool, adjust comments.
1954 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
1955 bpstat_should_step): Likewise.
1956
19572019-07-10 Alan Hayward <alan.hayward@arm.com>
1958
1959 * features/Makefile: Use feature target descriptions for Arm.
1960 * features/arm/arm-core.c: Generate new file.
1961 * features/arm/arm-fpa.c: Likewise.
1962 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
1963 * features/arm/arm-m-profile.c: Likewise.
1964 * features/arm/arm-vfpv2.c: Likewise.
1965 * features/arm/arm-vfpv3.c: Likewise.
1966 * features/arm/xscale-iwmmxt.c: Likewise.
1967 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
1968
19692019-07-10 Alan Hayward <alan.hayward@arm.com>
1970
1971 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
1972 ptrace earlier.
1973
19742019-07-10 Alan Hayward <alan.hayward@arm.com>
1975
1976 * features/aarch64-pauth.c: Regenerate.
1977
19782019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
1979
1980 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
1981 bool.
1982 (bpstat_what): Use false instead of 0.
1983
19842019-07-09 Pedro Alves <palves@redhat.com>
1985
1986 * break-catch-throw.c (is_exception_catchpoint): New.
1987 * breakpoint.c (print_one_breakpoint_location): New parameter
1988 'raw_loc'. Handle it. Use
1989 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
1990 looking at the breakpoint's type.
1991 (print_one_breakpoint): If handling "maint info breakpoints", also
1992 print locations of exception catchpoints.
1993 * breakpoint.h (is_exception_catchpoint): Declare.
1994
19952019-07-09 Pedro Alves <palves@redhat.com>
1996
1997 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
1998 "addr" field.
1999 (allocate_location_exception_catchpoint): New.
2000 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
2001 (initialize_throw_catchpoint_ops): Install
2002 allocate_location_exception_catchpoint as allocate_location
2003 method.
2004 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
2005 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
2006 bp_loc_other.
2007 (breakpoint_address_is_meaningful): Delete.
2008 (bl_address_is_meaningful): New.
2009 (breakpoint_locations_match): Adjust comment.
2010 (bp_location_from_bp_type): New, factored out of...
2011 (bp_location::bp_location(breakpoint *)): ... this.
2012 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
2013 factored out of...
2014 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
2015 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
2016 breakpoint_address_is_meaningful.
2017 (bp_locations_compare): Adjust comment.
2018 (update_global_location_list): Use bl_address_is_meaningful
2019 instead of breakpoint_address_is_meaningful.
2020 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
2021 explicit.
2022 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
2023 * python/py-breakpoint.c (bppy_get_location): No longer check
2024 whether location is null.
2025
20262019-07-09 Pedro Alves <palves@redhat.com>
2027
2028 PR c++/15468
2029 * breakpoint.c (print_one_breakpoint_location): Remove
2030 single-location assert.
2031
20322019-07-09 Tom Tromey <tom@tromey.com>
2033
2034 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
2035 * configure: Rebuild.
2036 * configure.ac: Change common to gdbsupport.
2037 * gdbsupport: Rename from common.
2038 * acinclude.m4: Change common to gdbsupport.
2039 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
2040 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
2041 gdbsupport.
2042 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
2043 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
2044 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
2045 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
2046 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
2047 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
2048 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
2049 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
2050 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
2051 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
2052 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
2053 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
2054 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
2055 coff-pe-read.c, command.h, compile/compile-c-support.c,
2056 compile/compile-c.h, compile/compile-cplus-symbols.c,
2057 compile/compile-cplus-types.c, compile/compile-cplus.h,
2058 compile/compile-loc2c.c, compile/compile.c, completer.c,
2059 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
2060 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
2061 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
2062 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
2063 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
2064 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
2065 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
2066 features/aarch64-core.c, features/aarch64-fpu.c,
2067 features/aarch64-pauth.c, features/aarch64-sve.c,
2068 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
2069 features/i386/32bit-core.c, features/i386/32bit-linux.c,
2070 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
2071 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
2072 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
2073 features/i386/64bit-core.c, features/i386/64bit-linux.c,
2074 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
2075 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
2076 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
2077 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
2078 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
2079 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
2080 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
2081 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
2082 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
2083 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
2084 go32-nat.c, guile/guile.c, guile/scm-ports.c,
2085 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
2086 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
2087 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
2088 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
2089 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
2090 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
2091 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
2092 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
2093 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
2094 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
2095 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
2096 minsyms.c, mips-linux-tdep.c, namespace.h,
2097 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
2098 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
2099 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
2100 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
2101 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
2102 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
2103 nat/linux-waitpid.c, nat/mips-linux-watch.c,
2104 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
2105 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
2106 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
2107 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
2108 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
2109 procfs.c, producer.c, progspace.h, psymtab.h,
2110 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
2111 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
2112 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
2113 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
2114 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
2115 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
2116 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
2117 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
2118 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
2119 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
2120 target-memory.c, target.c, target.h, target/waitstatus.c,
2121 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
2122 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
2123 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
2124 unittests/array-view-selftests.c,
2125 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
2126 unittests/common-utils-selftests.c,
2127 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
2128 unittests/format_pieces-selftests.c,
2129 unittests/function-view-selftests.c,
2130 unittests/lookup_name_info-selftests.c,
2131 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
2132 unittests/mkdir-recursive-selftests.c,
2133 unittests/observable-selftests.c,
2134 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
2135 unittests/parse-connection-spec-selftests.c,
2136 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
2137 unittests/scoped_fd-selftests.c,
2138 unittests/scoped_mmap-selftests.c,
2139 unittests/scoped_restore-selftests.c,
2140 unittests/string_view-selftests.c, unittests/style-selftests.c,
2141 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
2142 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
2143 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
2144 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
2145 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
2146 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
2147
21482019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2149
2150 * linespec.c (decode_digits_list_mode): Set explicit_line to a
2151 bool value.
2152 (decode_digits_ordinary): Set explicit_line field in sal.
2153 * symtab.c (skip_prologue_sal): Don't skip prologue for a
2154 symtab_and_line that was set on an explicit line number in
2155 assembler code. Do always update the recorded symtab and line if
2156 we do skip the prologue.
2157
21582019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2159
2160 * breakpoint.c (set_breakpoint_location_function): Remove
2161 explicit_loc parameter.
2162 (momentary_breakpoint_from_master): Update call to
2163 set_breakpoint_location_function.
2164 (add_location_to_breakpoint): Likewise.
2165
21662019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2167
2168 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
2169 required features based on default bfd type when no specific bfd
2170 is present.
2171
21722019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2173
2174 * NEWS: Mention that GDB printf and eval commands can now print
2175 C-style and Ada-style convenience var strings without
2176 calling the inferior.
2177 * printcmd.c (printf_c_string): Locally print GDB internal var
2178 instead of transiting via the inferior.
2179 (printf_wide_c_string): Likewise.
2180
21812019-07-04 Alan Hayward <alan.hayward@arm.com>
2182
2183 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
2184
21852019-07-04 Tom Tromey <tom@tromey.com>
2186
2187 PR tui/24724:
2188 * tui/tui-winsource.c (tui_clear_source_content): Update.
2189 (tui_source_window_base::set_is_exec_point_at): Fix comment.
2190 (tui_update_breakpoint_info): Update.
2191 (tui_set_exec_info_content): Update.
2192 * tui/tui-source.c (tui_set_source_content_nil): Update.
2193 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
2194 has_break.
2195 * tui/tui-data.h (enum tui_bp_flag): New.
2196 (tui_bp_flags): New enum flags type.
2197 (struct tui_source_element) <break_mode>: Change type. Rename
2198 from has_break.
2199 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
2200 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
2201 constants.
2202 * tui/tui-winsource.h: Fix comment.
2203
22042019-07-04 Alan Hayward <alan.hayward@arm.com>
2205
2206 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
2207 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
2208 (store_fpregs_to_thread)
2209 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
2210 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
2211 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
2212 (IWMMXT_REGS_SIZE): Add define.
2213 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
2214 (fetch_vfp_regs, store_vfp_regs)
2215 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
2216 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
2217
22182019-07-04 Alan Hayward <alan.hayward@arm.com>
2219
2220 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
2221 defines.
2222 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
2223 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
2224 (ARM_INT_REGISTER_SIZE): ...to this.
2225 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
2226 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
2227 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
2228 (arm_linux_collect_gregset, supply_nwfpe_register)
2229 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
2230 defines.
2231 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
2232 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
2233 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
2234 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
2235 (arm_return_in_memory, arm_store_return_value)
2236 (arm_get_longjmp_target, arm_register_g_packet_guesses)
2237 (arm_record_ld_st_multiple): Likewise.
2238 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
2239 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
2240
22412019-07-04 Alan Hayward <alan.hayward@arm.com>
2242
2243 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
2244 AARCH64_DISPLACED_MODIFIED_INSNS.
2245 * aarch64-tdep.c (struct aarch64_displaced_step_data)
2246 (aarch64_displaced_step_copy_insn): Likewise.
2247 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
2248 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
2249 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
2250 ARM_DISPLACED_MODIFIED_INSNS.
2251 * arm-tdep.c (arm_gdbarch_init): Likewise.
2252 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
2253 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
2254 (struct arm_displaced_step_closure): Use
2255 ARM_DISPLACED_MODIFIED_INSNS.
2256
22572019-07-04 Alan Hayward <alan.hayward@arm.com>
2258
2259 * features/Makefile: Remove unused xml files.
2260 * features/aarch64.xml: Remove.
2261 * features/i386/amd64-avx-avx512-linux.xml: Remove.
2262 * features/i386/amd64-avx-avx512.xml: Remove.
2263 * features/i386/amd64-avx-linux.xml: Remove.
2264 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
2265 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
2266 * features/i386/amd64-avx-mpx-linux.xml: Remove.
2267 * features/i386/amd64-avx-mpx.xml: Remove.
2268 * features/i386/amd64-avx.xml: Remove.
2269 * features/i386/amd64-linux.xml: Remove.
2270 * features/i386/amd64-mpx-linux.xml: Remove.
2271 * features/i386/amd64-mpx.xml: Remove.
2272 * features/i386/amd64.xml: Remove.
2273 * features/i386/i386-avx-avx512-linux.xml: Remove.
2274 * features/i386/i386-avx-avx512.xml: Remove.
2275 * features/i386/i386-avx-linux.xml: Remove.
2276 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
2277 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
2278 * features/i386/i386-avx-mpx-linux.xml: Remove.
2279 * features/i386/i386-avx-mpx.xml: Remove.
2280 * features/i386/i386-avx.xml: Remove.
2281 * features/i386/i386-linux.xml: Remove.
2282 * features/i386/i386-mmx-linux.xml: Remove.
2283 * features/i386/i386-mmx.xml: Remove.
2284 * features/i386/i386-mpx-linux.xml: Remove.
2285 * features/i386/i386-mpx.xml: Remove.
2286 * features/i386/i386.xml: Remove.
2287 * features/i386/x32-avx-avx512-linux.xml: Remove.
2288 * features/i386/x32-avx-linux.xml: Remove.
2289 * features/i386/x32-linux.xml: Remove.
2290
22912019-07-04 Alan Hayward <alan.hayward@arm.com>
2292
2293 * regformats/aarch64.dat: Remove.
2294 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
2295 * regformats/i386/amd64-avx-linux.dat: Remove.
2296 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
2297 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
2298 * regformats/i386/amd64-linux.dat: Remove.
2299 * regformats/i386/amd64-mpx-linux.dat: Remove.
2300 * regformats/i386/amd64.dat: Remove.
2301 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
2302 * regformats/i386/i386-avx-linux.dat: Remove.
2303 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
2304 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
2305 * regformats/i386/i386-linux.dat: Remove.
2306 * regformats/i386/i386-mmx-linux.dat: Remove.
2307 * regformats/i386/i386-mpx-linux.dat: Remove.
2308 * regformats/i386/i386.dat: Remove.
2309 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
2310 * regformats/i386/x32-avx-linux.dat: Remove.
2311 * regformats/i386/x32-linux.dat: Remove.
2312
23132019-07-04 Alan Hayward <alan.hayward@arm.com>
2314
2315 * aarch64-tdep.c: Remove xml self tests.
2316 * amd64-linux-tdep.c: Likewise.
2317 * amd64-tdep.c: Likewise.
2318 * i386-linux-tdep.c: Likewise.
2319 * i386-tdep.c: Likewise.
2320
23212019-07-03 Pedro Alves <palves@redhat.com>
2322
2323 PR cli/24732
2324 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
2325 (pipe_cmd_option_defs): New.
2326 (make_pipe_cmd_options_def_group): New.
2327 (pipe_command): Use gdb::option::process_options.
2328 (pipe_command_completer): New function.
2329 (_initialize_cli_cmds): Install completer for "pipe" command.
2330
23312019-07-03 Pedro Alves <palves@redhat.com>
2332
2333 * cli/cli-option.c (union option_value) <string>: New field.
2334 (struct option_def_and_value): Add ctor, move ctor, dtor and
2335 use DISABLE_COPY_AND_ASSIGN.
2336 (option_def_and_value::clear_value): New.
2337 (parse_option, save_option_value_in_ctx, get_val_type_str)
2338 (add_setshow_cmds_for_options): Handle var_string.
2339 * cli-option.h (union option_def::var_address) <string>: New
2340 field.
2341 (struct string_option_def): New.
2342 * maint-test-options.c (struct test_options_opts): Add default
2343 ctor and use DISABLE_COPY_AND_ASSIGN.
2344 <string_opt>: New field.
2345 (test_options_opts::~test_options_opts): New.
2346 (test_options_opts::dump): Also dump "-string".
2347 (test_options_option_defs): Install "string.
2348
23492019-07-03 Pedro Alves <palves@redhat.com>
2350
2351 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
2352 option_value with a null enumeration.
2353 (complete_options): Save the option values in the context.
2354 (save_option_value_in_ctx): New, factored out from ...
2355 (process_options): ... here.
2356 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
2357 of the function.
2358 * maint-test-options.c (test_options_opts::dump): New, factored
2359 out from ...
2360 (maintenance_test_options_command_mode): ... here.
2361 (maintenance_test_options_command_completion_result): Delete.
2362 (maintenance_test_options_command_completion_text): Update
2363 comment.
2364 (maintenance_show_test_options_completion_result): Change
2365 prototype. Just print
2366 maintenance_test_options_command_completion_text.
2367 (save_completion_result): New.
2368 (maintenance_test_options_completer_mode): Pass options context to
2369 complete_options, and then save a dump.
2370 (_initialize_maint_test_options): Use add_cmd to install "maint
2371 show test-options-completion-result".
2372
23732019-07-03 Pedro Alves <palves@redhat.com>
2374
2375 * NEWS (New commands): Mention "with" and "maint with".
2376 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
2377 (with_command, with_command_completer): New.
2378 (pipe_command): Adjust to new repeat_previous
2379 interface.
2380 (_initialize_cli_cmds): Install the "with" command and its "w"
2381 alias.
2382 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
2383 declarations.
2384 * cli/cli-setshow.c (parse_cli_var_uinteger)
2385 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
2386 argument strings for all var_types.
2387 (get_setshow_command_value_string): New, factored out from ...
2388 (do_show_command): ... this.
2389 * cli/cli-setshow.h: Include <string>.
2390 (get_setshow_command_value_string): Declare.
2391 * command.h (repeat_previous): Now returns const char *. Adjust
2392 comment.
2393 * maint.c: Include "cli/cli-cmds.h".
2394 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
2395 (_initialize_maint_cmds): Register the "maintenance with" command.
2396 * top.c (repeat_previous): Move bits from pipe_command here:
2397 Return the saved command line, if any; error out if there's no
2398 command to relaunch.
2399
24002019-07-03 Pedro Alves <palves@redhat.com>
2401
2402 * NEWS (New commands): Mention "maint set/show test-settings"
2403 instead of "maint test-settings".
2404 * maint-test-settings.c (maintenance_test_settings_list): Delete.
2405 (maintenance_test_settings_set_list): Rename to ...
2406 (maintenance_set_test_settings_list): ... this.
2407 (maintenance_test_settings_show_list): Rename to ...
2408 (maintenance_show_test_settings_list): ... this.
2409 (maintenance_test_settings_cmd): Delete.
2410 (maintenance_test_settings_set_cmd): ...
2411 (maintenance_set_test_settings_cmd): ... this.
2412 (maintenance_test_settings_show_cmd): ...
2413 (maintenance_show_test_settings_cmd): ... this.
2414 (maintenance_test_settings_show_value_cmd):
2415 (maintenance_show_test_settings_value_cmd): ... this.
2416 (_initialize_maint_test_settings): No longer install the "maint
2417 test-settings" prefix command. Rename "maint test-settings set"
2418 to "maint set test-settings", and "maint test-settings show" to
2419 "maint show test-settings". Adjust all subcommands.
2420
24212019-07-03 Pedro Alves <palves@redhat.com>
2422
2423 * maint-test-settings.c: Fix file's intro comment. Replace all
2424 references to "test-options" with references to "test-settings",
2425 in comments.
2426
24272019-07-03 Pedro Alves <palves@redhat.com>
2428
2429 * maint-test-settings.c (maintenance_test_settings_xxx)
2430 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
2431 New.
2432 (maintenance_test_settings_enums): Use them.
2433 (maintenance_test_settings_enum): Default to
2434 maintenance_test_settings_xxx.
2435 (_initialize_maint_test_settings): Initialize
2436 MAINTENANCE_TEST_SETTINGS_FILENAME.
2437
24382019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2439
2440 * breakpoint.h (remove_breakpoints_inf): Change return type to
2441 void, move function documentation here.
2442 * breakpoint.c (remove_breakpoints_inf): Change return type to
2443 void, move function documentation to header.
2444
24452019-07-02 Pedro Alves <palves@redhat.com>
2446
2447 * NEWS (Completion improvements): Mention "info threads".
2448 * thread.c (struct info_threads_opts, info_threads_option_defs)
2449 (make_info_threads_options_def_group): New.
2450 (info_threads_command): Use gdb::option::process_options.
2451 (info_threads_command_completer): New.
2452 (_initialize_thread): Use gdb::option::build_help to build the
2453 help text for "info threads".
2454
24552019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2456
2457 * defs.h (generic_load): Move from here...
2458 * symfile.h (generic_load): ... to here. Rename name parameter
2459 to args.
2460 * symfile.c (generic_load): Add comment.
2461
24622019-07-01 Tom Tromey <tromey@adacore.com>
2463
2464 * dwarf2read.c
2465 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
2466 declaration of without_params. Fix formatting.
2467
24682019-07-01 Tom Tromey <tromey@adacore.com>
2469
2470 * ada-exp.y (find_primitive_type): Update.
2471 * ada-lang.h (ada_lookup_symbol): Update.
2472 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
2473 parameter.
2474 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
2475
24762019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
2477
2478 PR breakpoints/24541
2479 * gdbarch.c: Regenerate.
2480 * gdbarch.h: Regenerate.
2481 * gdbarch.sh: Add 'stap_adjust_register'.
2482 * i386-tdep.c: Include '<unordered_set>'.
2483 (i386_stap_adjust_register): New function.
2484 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
2485 * stap-probe.c (stap_parse_register_operand): Call
2486 'gdbarch_stap_adjust_register'.
2487
24882019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
2489
2490 PR python/24742
2491 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
2492 * python/python.c (do_start_initialization): Use 'xmalloc'
2493 instead of 'PyMem_Malloc'.
2494
24952019-06-28 Tom Tromey <tromey@adacore.com>
2496
2497 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
2498 for Ada.
2499
25002019-06-27 Tom Tromey <tromey@adacore.com>
2501
2502 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
2503 objfile_key.
2504 (arm_find_mapping_symbol, arm_record_special_symbol)
2505 (_initialize_arm_tdep): Update.
2506 (arm_objfile_data_free): Remove.
2507
25082019-06-27 Tom Tromey <tromey@adacore.com>
2509
2510 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
2511 to cp_print_static_field.
2512
25132019-06-26 Tom Tromey <tromey@adacore.com>
2514
2515 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
2516 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
2517 declare.
2518
25192019-06-26 Alan Hayward <alan.hayward@arm.com>
2520
2521 * features/aarch64-core.c (create_feature_aarch64_core):
2522 Regenerate.
2523 * features/aarch64-core.xml: Add cpsr flags.
2524
25252019-06-26 Alan Hayward <alan.hayward@arm.com>
2526
2527 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
2528 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
2529
25302019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
2531
2532 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
2533 field.
2534 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
2535 use.
2536 (arm_record_special_symbol): Don't insert new symbol in sorted
2537 position, push it at the end.
2538
25392019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
2540
2541 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
2542 (arm_mapping_symbol_s): Remove.
2543 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
2544 (arm_mapping_symbol_vec): New typedef.
2545 (struct arm_per_objfile): Add constructor.
2546 <section_maps>: Change type to
2547 std::unique_ptr<arm_mapping_symbol_vec[]>.
2548 (arm_compare_mapping_symbols): Remove.
2549 (arm_find_mapping_symbol): Adjust to section_maps type change.
2550 (arm_objfile_data_free): Call delete on arm_per_objfile.
2551 (arm_record_special_symbol): Adjust to section_maps type change.
2552 Allocate arm_per_objfile with new.
2553
25542019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2555
2556 * cli/cli-cmds.c (alias_command): Compare the alias prefix
2557 with the command prefix.
2558
25592019-06-25 Tom Tromey <tom@tromey.com>
2560
2561 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
2562 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
2563
25642019-06-25 Tom Tromey <tom@tromey.com>
2565
2566 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
2567 type.
2568 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
2569 protected.
2570
25712019-06-25 Tom Tromey <tom@tromey.com>
2572
2573 * tui/tui-winsource.c
2574 (tui_source_window_base::set_is_exec_point_at): Add check against
2575 LOA_ADDRESS.
2576
25772019-06-25 Tom Tromey <tom@tromey.com>
2578
2579 * tui/tui-source.c (tui_set_source_content): Don't check before
2580 xfree.
2581 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
2582
25832019-06-25 Tom Tromey <tom@tromey.com>
2584
2585 * tui/tui-winsource.h (tui_update_source_window_as_is)
2586 (tui_alloc_source_buffer, tui_line_is_displayed)
2587 (tui_addr_is_displayed): Change type of win_info.
2588 * tui/tui-winsource.c (tui_update_source_window_as_is)
2589 (tui_clear_source_content, tui_show_source_line)
2590 (tui_show_source_content, tui_source_window_base::refill)
2591 (tui_source_window_base::set_is_exec_point_at)
2592 (tui_source_window_base::set_is_exec_point_at)
2593 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
2594 (tui_alloc_source_buffer, tui_line_is_displayed)
2595 (tui_addr_is_displayed): Change type of win_info. Update.
2596 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2597 (tui_source_window_base::do_make_visible_with_new_height):
2598 Update.
2599 * tui/tui-source.c (tui_set_source_content)
2600 (tui_set_source_content_nil)
2601 (tui_source_window::do_scroll_vertical): Update.
2602 * tui/tui-layout.c (show_layout): Update.
2603 * tui/tui-disasm.c (tui_set_disassem_content)
2604 (tui_disasm_window::do_scroll_vertical): Update.
2605 * tui/tui-data.h (tui_win_content): Remove.
2606 (struct tui_gen_win_info) <content, content_size>: Remove.
2607 (struct tui_source_element): Add initializers and destructor.
2608 (union tui_which_element, struct tui_win_element): Remove.
2609 (struct tui_source_window_base) <content>: New field.
2610 (struct tui_data_window): Remove destructor.
2611 (tui_alloc_content, tui_free_win_content)
2612 (tui_free_all_source_wins_content): Don't declare.
2613 * tui/tui-data.c (tui_initialize_static_data): Update.
2614 (init_content_element, tui_alloc_content): Remove.
2615 (~tui_gen_win_info): Update.
2616 (~tui_data_window, tui_free_all_source_wins_content)
2617 (tui_free_win_content, free_content, free_content_elements):
2618 Remove.
2619
26202019-06-25 Tom Tromey <tom@tromey.com>
2621
2622 * tui/tui-winsource.h (tui_clear_source_content)
2623 (tui_erase_source_content, tui_show_source_content): Change type
2624 of win_info.
2625 * tui/tui-winsource.c (tui_clear_source_content)
2626 (tui_erase_source_content, tui_show_source_content): Change type
2627 of win_info.
2628 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2629 * tui/tui-source.h (tui_set_source_content_nil): Change type of
2630 win_info.
2631 * tui/tui-source.c (tui_set_source_content_nil): Change type of
2632 win_info.
2633 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
2634
26352019-06-25 Tom Tromey <tom@tromey.com>
2636
2637 * tui/tui-winsource.c (tui_clear_source_content)
2638 (tui_source_window_base::set_is_exec_point_at): Update.
2639 * tui/tui-source.c (tui_set_source_content_nil): Update.
2640 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
2641 a bool.
2642 * tui/tui-data.c (init_content_element): Update.
2643
26442019-06-25 Tom Tromey <tom@tromey.com>
2645
2646 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
2647 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
2648 * tui/tui-layout.c (init_and_make_win): Update.
2649 * tui/tui.h (enum tui_win_type): Update.
2650 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
2651 tui_win_is_auxillary.
2652 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
2653 tui_win_is_auxillary.
2654
26552019-06-25 Tom Tromey <tom@tromey.com>
2656
2657 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
2658 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
2659 (tui_delete_data_content_windows, tui_display_all_data)
2660 (tui_data_window::do_scroll_vertical, tui_display_data_from):
2661 Update.
2662 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
2663 * tui/tui-regs.c (tui_last_regs_line_no)
2664 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
2665 (tui_show_registers): Update.
2666 (tui_show_register_group): Return void. Update.
2667 (tui_display_registers_from, tui_display_reg_element_at_line)
2668 (tui_display_registers_from_line, tui_check_register_values):
2669 Update.
2670 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
2671 member.
2672 (struct tui_data_window) <regs_content>: Now a std::vector.
2673 <regs_content_count>: Remove.
2674 (tui_add_content_elements, tui_free_data_content): Don't declare.
2675 * tui/tui-data.c (tui_data_window::clear_detail): Update.
2676 (init_content_element): Remove DATA_WIN case. Add assert.
2677 (tui_add_content_elements): Remove.
2678 (tui_data_window): Update.
2679 (tui_free_data_content): Remove.
2680 (free_content_elements): Remove DATA_WIN case.
2681
26822019-06-25 Tom Tromey <tom@tromey.com>
2683
2684 * tui/tui-data.c (tui_data_item_window): Update.
2685 * tui/tui-windata.h (tui_check_data_values): Don't declare.
2686 * tui/tui-windata.c (tui_display_all_data)
2687 (tui_display_data_from_line): Update.
2688 (tui_check_data_values): Remove.
2689 * tui/tui-regs.c (tui_show_register_group)
2690 (tui_display_reg_element_at_line): Update.
2691 * tui/tui-hooks.c (tui_register_changed)
2692 (tui_refresh_frame_and_register_information): Call
2693 tui_check_register_values.
2694 * tui/tui-data.h (struct tui_data_window) <data_content,
2695 data_content_count, data_type>: Remove.
2696 (enum tui_data_type): Remove.
2697
2698 * tui/tui-data.c (tui_data_window::clear_detail)
2699 (~tui_data_window): Update.
2700
27012019-06-25 Tom Tromey <tom@tromey.com>
2702
2703 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
2704 declare.
2705 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
2706 Rename from tui_first_data_item_displayed. Update.
2707 (tui_data_window::refresh_all)
2708 (tui_data_window::do_scroll_vertical): Update.
2709 * tui/tui-data.h (struct tui_data_window)
2710 <first_data_item_displayed>: Declare new method.
2711
27122019-06-25 Tom Tromey <tom@tromey.com>
2713
2714 * tui/tui-data.h (tui_init_generic_part): Don't declare.
2715 * tui/tui-data.c (tui_init_generic_part): Remove, moving
2716 contents...
2717 (tui_initialize_static_data): ...here.
2718
27192019-06-25 Tom Tromey <tom@tromey.com>
2720
2721 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
2722 (tui_display_registers_from, tui_check_register_values): Update.
2723 (tui_display_register): Remove win_info parameter; update.
2724 (tui_get_register): Change type of parameters.
2725 * tui/tui-data.h (struct tui_data_element): Remove.
2726 (union tui_which_element) <data>: Remove.
2727 <data_window>: Change type.
2728 (struct tui_data_item_window): New.
2729 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
2730 case. Add assert.
2731 (~tui_data_item_window): New destructor.
2732 (free_content_elements): Remove DATA_ITEM_WIN case.
2733
27342019-06-25 Tom Tromey <tom@tromey.com>
2735
2736 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
2737 Remove.
2738
27392019-06-25 Tom Tromey <tom@tromey.com>
2740
2741 * tui/tui-data.h (struct tui_command_element): Remove.
2742 (union tui_which_element) <command>: Remove.
2743 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
2744 assert.
2745 (free_content_elements): Remove CMD_WIN case.
2746
27472019-06-25 Tom Tromey <tom@tromey.com>
2748
2749 * tui/tui-layout.c (tui_set_layout): Update.
2750 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
2751 * tui/tui-data.c (layout_def): Update.
2752
27532019-06-25 Tom Tromey <tom@tromey.com>
2754
2755 * tui/tui-wingeneral.c (tui_refresh_all): Update.
2756 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2757 (tui_source_window_base::set_new_height): Update.
2758 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
2759 Update.
2760 (tui_set_locator_fullname, tui_set_locator_info)
2761 (tui_show_frame_info): Update.
2762 * tui/tui-source.c (tui_set_source_content)
2763 (tui_source_is_displayed): Update.
2764 * tui/tui-layout.c (show_source_disasm_command, show_data)
2765 (show_source_or_disasm_and_command): Update.
2766 * tui/tui-disasm.c (tui_set_disassem_content)
2767 (tui_get_begin_asm_address): Update.
2768 * tui/tui-data.h (struct tui_locator_element): Remove.
2769 (union tui_which_element) <locator>: Remove.
2770 (struct tui_locator_window): New.
2771 (tui_locator_win_info_ptr): Change return type.
2772 * tui/tui-data.c (_locator): Change type.
2773 (tui_locator_win_info_ptr): Change return type.
2774 (init_content_element): Remove LOCATOR_WIN case. Add assert.
2775 (tui_alloc_content): Add assert.
2776
27772019-06-25 Tom Tromey <tom@tromey.com>
2778
2779 * tui/tui-winsource.c
2780 (tui_exec_info_window::maybe_allocate_content): New method.
2781 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
2782 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
2783 (make_source_or_disasm_window): Add cast.
2784 * tui/tui-data.h (union tui_which_element) <simple_string>:
2785 Remove.
2786 (struct tui_source_info): New.
2787 (struct tui_source_window_base) <execution_info>: Change type.
2788 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
2789 case, and add assert.
2790 (tui_alloc_content): Add assert.
2791
27922019-06-25 Tom Tromey <tom@tromey.com>
2793
2794 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
2795 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
2796 * tui/tui-data.c (tui_alloc_win_info): Remove.
2797
27982019-06-25 Tom Tromey <tom@tromey.com>
2799
2800 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
2801 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
2802 can_highlight.
2803
28042019-06-25 Tom Tromey <tom@tromey.com>
2805
2806 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
2807 make_visible_with_new_height method.
2808 (tui_win_info::make_visible_with_new_height): New method.
2809 (tui_source_window_base::do_make_visible_with_new_height)
2810 (tui_data_window::do_make_visible_with_new_height)
2811 (tui_cmd_window::do_make_visible_with_new_height): New methods.
2812 (make_visible_with_new_height): Remove.
2813 (tui_resize_all, tui_adjust_win_heights): Use
2814 make_visible_with_new_height method.
2815 * tui/tui-data.h (struct tui_win_info)
2816 <do_make_visible_with_new_height, make_visible_with_new_height>:
2817 New methods.
2818 (struct tui_source_window_base, struct tui_data_window)
2819 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
2820 methods.
2821
28222019-06-25 Tom Tromey <tom@tromey.com>
2823
2824 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
2825 method.
2826 (update_tab_width): Call update_tab_width method.
2827 * tui/tui-data.h (struct tui_win_info)
2828 (struct tui_source_window_base) <update_tab_width>: New methods.
2829
28302019-06-25 Tom Tromey <tom@tromey.com>
2831
2832 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
2833 parameter.
2834 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
2835 parameter.
2836 (tui_gen_win_info::make_visible): Update.
2837 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
2838 parameter.
2839 * tui/tui-data.h (enum tui_box): New enum.
2840 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
2841
28422019-06-25 Tom Tromey <tom@tromey.com>
2843
2844 * tui/tui-layout.c (make_source_or_disasm_window): Always use
2845 init_and_make_win for EXEC_INFO_WIN.
2846 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
2847 longer inline.
2848 (struct tui_win_info) <~tui_win_info>: Inline.
2849 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
2850 Don't declare.
2851 * tui/tui-data.c (source_win, disasm_win): Remove globals.
2852 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
2853 Remove.
2854 (tui_initialize_static_data): Update.
2855 (~tui_gen_win_info): Handle more cleanup here.
2856 (~tui_source_window_base): Delete "execution_info".
2857 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
2858
28592019-06-25 Tom Tromey <tom@tromey.com>
2860
2861 * tui/tui-layout.c (make_command_window): Don't set
2862 can_highlight.
2863 (show_source_disasm_command): Call the reset method.
2864 (show_data): Don't set can_highlight. Call the reset method.
2865 (tui_gen_win_info::reset): Rename from init_gen_win_info
2866 (init_and_make_win): Simplify. Return tui_gen_win_info.
2867 (show_source_or_disasm_and_command): Call the reset method.
2868 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
2869 (struct tui_cmd_window): Set can_highlight.
2870
28712019-06-25 Tom Tromey <tom@tromey.com>
2872
2873 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
2874 from make_visible.
2875 (tui_make_visible, tui_make_invisible): Rewrite.
2876 (tui_win_info::make_visible): Remove.
2877 (tui_source_window_base::make_visible): Update.
2878 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
2879 method. Moved from...
2880 (struct tui_win_info) <make_visible>: ...here.
2881
28822019-06-25 Tom Tromey <tom@tromey.com>
2883
2884 * tui/tui-winsource.c
2885 (tui_source_window_base::do_scroll_horizontal): Remove direction
2886 parameter.
2887 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
2888 direction parameter.
2889 * tui/tui-win.c (tui_win_info::forward_scroll)
2890 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
2891 (tui_win_info::right_scroll): Update.
2892 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
2893 direction parameter.
2894 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
2895 direction parameter.
2896 * tui/tui-data.h (enum tui_scroll_direction): Remove.
2897 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
2898 Remove direction parameter.
2899 (struct tui_source_window_base, struct tui_source_window)
2900 (struct tui_disasm_window, struct tui_data_window)
2901 (struct tui_cmd_window): Update.
2902
29032019-06-25 Tom Tromey <tom@tromey.com>
2904
2905 * tui/tui-winsource.h (tui_set_exec_info_content)
2906 (tui_show_exec_info_content, tui_erase_exec_info_content)
2907 (tui_clear_exec_info_content, tui_update_exec_info): Change
2908 argument to tui_source_window_base.
2909 * tui/tui-winsource.c (tui_set_exec_info_content)
2910 (tui_show_exec_info_content, tui_erase_exec_info_content)
2911 (tui_clear_exec_info_content, tui_update_exec_info): Change
2912 argument to tui_source_window_base.
2913
29142019-06-25 Tom Tromey <tom@tromey.com>
2915
2916 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
2917 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
2918
29192019-06-25 Tom Tromey <tom@tromey.com>
2920
2921 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
2922 check.
2923
29242019-06-25 Tom Tromey <tom@tromey.com>
2925
2926 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
2927 type to void.
2928 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
2929 type to void.
2930 * tui/tui-source.c (tui_set_source_content): Update.
2931 * tui/tui-disasm.c (tui_set_disassem_content): Update.
2932
29332019-06-25 Tom Tromey <tom@tromey.com>
2934
2935 * tui/tui-win.c (window_name_completer, tui_set_focus)
2936 (tui_all_windows_info): Use name method.
2937 * tui/tui-data.h (struct tui_gen_win_info)
2938 (struct tui_source_window, struct tui_disasm_window)
2939 (struct tui_data_window, struct tui_cmd_window) <name>: New
2940 method.
2941 (tui_win_name): Don't declare.
2942 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
2943 (tui_win_name): Remove.
2944
29452019-06-25 Tom Tromey <tom@tromey.com>
2946
2947 * tui/tui-winsource.h (tui_update_source_window)
2948 (tui_update_source_window_as_is): Change parameter type.
2949 * tui/tui-winsource.c (tui_update_source_window): Change win_info
2950 to be a tui_source_window_base.
2951 (tui_update_source_window_as_is): Likewise.
2952 * tui/tui-win.c (make_visible_with_new_height): Update.
2953
29542019-06-25 Tom Tromey <tom@tromey.com>
2955
2956 * tui/tui-winsource.c (tui_erase_source_content)
2957 (tui_show_source_content, tui_show_exec_info_content)
2958 (tui_erase_exec_info_content): Use refresh_window method.
2959 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
2960 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
2961 from tui_refresh_win.
2962 (tui_data_window::refresh_window): New method.
2963 (tui_win_info::refresh, tui_source_window_base::refresh)
2964 (tui_refresh_all): Use refresh_window method.
2965 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
2966 method.
2967 * tui/tui-regs.c (tui_display_register): Call refresh_window
2968 method.
2969 * tui/tui-layout.c (show_source_disasm_command)
2970 (show_source_or_disasm_and_command): Call refresh_window method.
2971 * tui/tui-data.h (struct tui_gen_win_info)
2972 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
2973 New method.
2974
29752019-06-25 Tom Tromey <tom@tromey.com>
2976
2977 * tui/tui.c (tui_rl_other_window, tui_enable)
2978 (tui_is_window_visible, tui_get_command_dimension): Update.
2979 * tui/tui-winsource.c (tui_update_source_window_as_is)
2980 (tui_clear_source_content, tui_erase_source_content)
2981 (tui_show_source_line, tui_source_window_base::refill)
2982 (tui_source_window_base::do_scroll_horizontal)
2983 (tui_source_window_base::set_is_exec_point_at)
2984 (tui_update_breakpoint_info, tui_set_exec_info_content)
2985 (tui_alloc_source_buffer, tui_line_is_displayed)
2986 (tui_addr_is_displayed): Update.
2987 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
2988 (tui_check_and_display_highlight_if_needed)
2989 (tui_win_info::make_visible, tui_win_info::refresh)
2990 (tui_refresh_all): Update.
2991 * tui/tui-windata.c (tui_first_data_item_displayed)
2992 (tui_delete_data_content_windows, tui_erase_data_content)
2993 (tui_display_all_data, tui_data_window::refresh_all)
2994 (tui_check_data_values): Update.
2995 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
2996 (tui_set_win_focus_to, tui_win_info::forward_scroll)
2997 (tui_win_info::backward_scroll, tui_refresh_all_win)
2998 (tui_resize_all, tui_set_focus, tui_all_windows_info)
2999 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
3000 (tui_source_window_base::set_new_height)
3001 (tui_data_window::set_new_height)
3002 (make_invisible_and_set_new_height)
3003 (make_visible_with_new_height, new_height_ok)
3004 (parse_scrolling_args): Update.
3005 * tui/tui-stack.c (tui_show_frame_info): Update.
3006 * tui/tui-source.c (tui_set_source_content)
3007 (tui_set_source_content_nil, tui_source_is_displayed)
3008 (tui_source_window::do_scroll_vertical): Update.
3009 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
3010 (tui_display_registers_from, tui_display_reg_element_at_line)
3011 (tui_check_register_values, tui_reg_command): Update.
3012 * tui/tui-layout.c (tui_default_win_height)
3013 (show_source_disasm_command, show_data, init_and_make_win)
3014 (show_source_or_disasm_and_command): Update.
3015 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
3016 (tui_redisplay_readline, tui_mld_flush)
3017 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
3018 (tui_getc): Update.
3019 * tui/tui-disasm.c (tui_set_disassem_content)
3020 (tui_disasm_window::do_scroll_vertical): Update.
3021 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
3022 Now virtual.
3023 (struct tui_win_info): Derive from tui_gen_win_info.
3024 <~tui_win_info>: Mark as override.
3025 <generic>: Remove member.
3026 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
3027 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
3028 (~tui_data_window, ~tui_win_info)
3029 (tui_free_all_source_wins_content): Update.
3030 * tui/tui-command.c (tui_refresh_cmd_win): Update.
3031
30322019-06-25 Tom Tromey <tom@tromey.com>
3033
3034 * tui/tui-layout.c (init_and_make_win): Use new.
3035 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
3036 destructor, initializers.
3037 (tui_alloc_generic_win_info): Don't declare.
3038 * tui/tui-data.c (_locator): Add argument to constructor.
3039 (source_win, disasm_win): New globals.
3040 (exec_info): Remove.
3041 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
3042 Update.
3043 (tui_alloc_generic_win_info): Remove.
3044 (init_content_element): Use new.
3045 (tui_win_info::tui_win_info): Update.
3046 (free_content_elements) <case DATA_WIN>: Use delete.
3047
30482019-06-25 Tom Tromey <tom@tromey.com>
3049
3050 * tui/tui-wingeneral.c (tui_refresh_win): Update.
3051 * tui/tui-windata.c (tui_first_data_item_displayed)
3052 (tui_delete_data_content_windows): Update.
3053 * tui/tui-win.c (tui_data_window::set_new_height): Update.
3054 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
3055 (tui_display_registers_from, tui_check_register_values): Update.
3056 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
3057 pointer.
3058 * tui/tui-data.c (init_content_element): Update. Allocate the new
3059 window.
3060 (tui_free_data_content): Update.
3061 (free_content_elements) <case DATA_WIN>: Free the window.
3062
30632019-06-25 Tom Tromey <tom@tromey.com>
3064
3065 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
3066 Update.
3067 * tui/tui-layout.c (make_command_window)
3068 (show_source_disasm_command, show_data, init_and_make_win)
3069 (show_source_or_disasm_and_command): Update.
3070 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
3071 method.
3072 <can_highight, is_highlighted>: Now bool.
3073 (tui_set_win_highlight): Don't declare.
3074 * tui/tui-data.c (tui_set_win_highlight): Remove.
3075
30762019-06-25 Tom Tromey <tom@tromey.com>
3077
3078 * tui/tui-wingeneral.c (make_visible): Remove check of window
3079 type.
3080
30812019-06-25 Tom Tromey <tom@tromey.com>
3082
3083 * tui/tui-win.c (tui_win_info::max_height)
3084 (tui_cmd_window::max_height): New methods.
3085 (new_height_ok): Call max_height.
3086 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
3087 <max_height>: New method.
3088
30892019-06-25 Tom Tromey <tom@tromey.com>
3090
3091 * tui/tui-win.c (tui_source_window_base::set_new_height)
3092 (tui_data_window::set_new_height): New methods.
3093 (make_invisible_and_set_new_height): Call set_new_height method.
3094 * tui/tui-data.h (struct tui_win_info)
3095 (struct tui_source_window_base, struct tui_data_window)
3096 <set_new_height>: New method.
3097
30982019-06-25 Tom Tromey <tom@tromey.com>
3099
3100 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
3101 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
3102 tui_refresh_data_win.
3103 * tui/tui-win.c (tui_source_window_base::refresh_all): New
3104 method.
3105 (tui_refresh_all_win): Call the refresh_all method.
3106 (tui_set_focus): Likewise.
3107 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
3108 (struct tui_source_window_base, struct tui_data_window) <refresh>:
3109 Likewise.
3110
31112019-06-25 Tom Tromey <tom@tromey.com>
3112
3113 * tui/tui-winsource.h (tui_refill_source_window)
3114 (tui_set_is_exec_point_at): Don't declare.
3115 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
3116 (tui_source_window_base::refill): Rename from
3117 tui_refill_source_window.
3118 (tui_source_window_base::do_scroll_horizontal): Update.
3119 (tui_source_window_base::set_is_exec_point_at): Rename from
3120 tui_set_is_exec_point_at.
3121 (tui_update_all_breakpoint_info): Update.
3122 * tui/tui-stack.c (tui_show_frame_info): Update.
3123 * tui/tui-layout.c (show_data): Add cast.
3124 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
3125 * tui/tui-data.h (struct tui_source_window_base) <refill,
3126 set_is_exec_point_at>: New methods.
3127 (tui_source_windows, tui_add_to_source_windows): Update types.
3128 (tui_add_to_source_windows): Remove redundant declaration.
3129 * tui/tui-data.c (source_windows): Store tui_source_window_base.
3130 (tui_source_windows): Change return type.
3131 (tui_clear_source_windows_detail): Update.
3132 (tui_add_to_source_windows): Change type of parameter.
3133 (tui_free_all_source_wins_content): Update.
3134
31352019-06-25 Tom Tromey <tom@tromey.com>
3136
3137 * tui/tui-wingeneral.c (tui_win_info::refresh)
3138 (tui_source_window_base::refresh): New methods.
3139 (tui_refresh_all): Call the refresh method.
3140 * tui/tui-data.h (struct tui_win_info)
3141 (struct tui_source_window_base) <refresh>: New method.
3142
31432019-06-25 Tom Tromey <tom@tromey.com>
3144
3145 * tui/tui.h (tui_is_window_visible): Return bool.
3146 * tui/tui.c (tui_is_window_visible): Return bool.
3147 * tui/tui-wingeneral.c (tui_make_window, make_visible)
3148 (tui_make_visible, tui_make_invisible)
3149 (tui_win_info::make_visible)
3150 (tui_source_window_base::make_visible, make_all_visible)
3151 (tui_make_all_visible, tui_make_all_invisible): Update.
3152 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
3153 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
3154 bool.
3155 (struct tui_win_info, struct tui_source_window_base)
3156 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
3157 * tui/tui-data.c (tui_init_generic_part): Update.
3158
31592019-06-25 Tom Tromey <tom@tromey.com>
3160
3161 * tui/tui-wingeneral.c (tui_win_info::make_visible)
3162 (tui_source_window_base::make_visible): New methods.
3163 (make_all_visible): Make method call.
3164 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
3165 (struct tui_source_window_base, struct tui_cmd_window): Override
3166 make_visible.
3167 (tui_win_is_source_type): Don't declare.
3168 * tui/tui-data.c (tui_win_is_source_type): Remove.
3169
31702019-06-25 Tom Tromey <tom@tromey.com>
3171
3172 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
3173 NULL check.
3174
31752019-06-25 Tom Tromey <tom@tromey.com>
3176
3177 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
3178 Inline constructor. Add initializers for members.
3179 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
3180 constructors; now inline in class.
3181
31822019-06-25 Tom Tromey <tom@tromey.com>
3183
3184 * tui/tui-regs.c (tui_show_registers): Update.
3185 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
3186 bool.
3187 * tui/tui-data.c (tui_data_window::clear_detail)
3188 (tui_data_window): Update.
3189
31902019-06-25 Tom Tromey <tom@tromey.com>
3191
3192 * tui/tui-windata.c (tui_display_all_data)
3193 (tui_display_data_from_line, tui_display_data_from)
3194 (tui_check_data_values, tui_data_window::do_scroll_vertical):
3195 Update.
3196 * tui/tui-regs.c (tui_last_regs_line_no)
3197 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
3198 (tui_show_registers, tui_show_register_group)
3199 (tui_display_registers_from, tui_display_reg_element_at_line)
3200 (tui_display_registers_from_line, tui_check_register_values)
3201 (tui_reg_next, tui_reg_prev): Update.
3202 * tui/tui-layout.c (tui_set_layout, show_data): Update.
3203 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
3204 tui_data_window.
3205 (struct tui_win_info) <detail>: Remove. Add new fields from
3206 tui_data_info.
3207 (TUI_DATA_WIN): Add cast.
3208 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
3209 (~tui_data_window): Simplify.
3210
32112019-06-25 Tom Tromey <tom@tromey.com>
3212
3213 * tui/tui-layout.c (show_source_disasm_command)
3214 (show_source_or_disasm_and_command): Update.
3215 * tui/tui-io.c (update_cmdwin_start_line)
3216 (tui_redisplay_readline): Update.
3217 * tui/tui-data.h (struct tui_command_info): Remove.
3218 (struct tui_win_info) <detail>: Remove command_info member.
3219 (struct tui_data_window) <start_line>: New member, from
3220 tui_command_info.
3221 (TUI_CMD_WIN): Add casts.
3222
32232019-06-25 Tom Tromey <tom@tromey.com>
3224
3225 * tui/tui-winsource.c (tui_update_source_window)
3226 (tui_refill_source_window)
3227 (tui_source_window_base::do_scroll_horizontal)
3228 (tui_update_breakpoint_info, tui_set_exec_info_content)
3229 (tui_show_exec_info_content, tui_erase_exec_info_content)
3230 (tui_clear_exec_info_content): Update.
3231 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
3232 Update.
3233 * tui/tui-win.c (make_invisible_and_set_new_height)
3234 (make_visible_with_new_height): Update.
3235 * tui/tui-source.c (tui_set_source_content)
3236 (tui_show_symtab_source): Update.
3237 * tui/tui-layout.c (extract_display_start_addr)
3238 (show_source_disasm_command, show_data)
3239 (make_source_or_disasm_window)
3240 (show_source_or_disasm_and_command): Update.
3241 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
3242 (tui_disasm_window::do_scroll_vertical): Remove shadowing
3243 "gdbarch".
3244 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
3245 to tui_source_window_base.
3246 (struct tui_win_info) <detail>: Remove source_info member.
3247 (struct tui_source_window_base) <has_locator>: Inline.
3248 Move contents from tui_source_info; rename has_locator member to
3249 m_has_locator.
3250 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
3251 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
3252 header file.
3253 (tui_source_window_base::clear_detail, ~tui_source_window_base):
3254 Simplify.
3255 (tui_free_all_source_wins_content): Cast to
3256 tui_source_window_base.
3257
32582019-06-25 Tom Tromey <tom@tromey.com>
3259
3260 * tui/tui-win.c (make_invisible_and_set_new_height)
3261 (make_visible_with_new_height): Call has_locator method.
3262 * tui/tui-layout.c (show_source_disasm_command, show_data)
3263 (show_source_or_disasm_and_command): Update for bool change.
3264 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
3265 (tui_win_info) <has_locator>: New method.
3266 (struct tui_source_window_base) <has_locator>: New method.
3267 (tui_win_has_locator): Don't declare.
3268 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
3269 from tui_win_has_locator.
3270 (tui_source_window_base): Use false, not FALSE.
3271
32722019-06-25 Tom Tromey <tom@tromey.com>
3273
3274 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
3275 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
3276 clear_detail method directly.
3277 (tui_clear_win_detail): Remove.
3278
32792019-06-25 Tom Tromey <tom@tromey.com>
3280
3281 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
3282 "this", not TUI_DISASM_WIN.
3283
32842019-06-25 Tom Tromey <tom@tromey.com>
3285
3286 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
3287 declare.
3288 * tui/tui-winsource.c
3289 (tui_source_window_base::do_scroll_horizontal): Rename from
3290 tui_horizontal_source_scroll.
3291 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
3292 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
3293 from tui_vertical_data_scroll.
3294 * tui/tui-win.h (tui_scroll): Don't declare.
3295 * tui/tui-win.c (tui_win_info::forward_scroll)
3296 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
3297 (tui_win_info::right_scroll): Rename and update.
3298 (tui_scroll_forward_command, tui_scroll_backward_command)
3299 (tui_scroll_left_command, tui_scroll_right_command): Update.
3300 (tui_scroll): Remove.
3301 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
3302 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
3303 from tui_vertical_source_scroll.
3304 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
3305 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
3306 from tui_vertical_disassem_scroll.
3307 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
3308 do_scroll_horizontal>: New methods.
3309 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
3310 Likewise.
3311 (struct tui_source_window_base): Add do_scroll_horizontal.
3312 (struct tui_source_window, struct tui_disasm_window): Add
3313 do_scroll_vertical.
3314 (struct tui_data_window, struct tui_cmd_window): Add
3315 do_scroll_horizontal and do_scroll_vertical.
3316 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
3317
33182019-06-25 Tom Tromey <tom@tromey.com>
3319
3320 * tui/tui-data.h (struct tui_source_window_base): New struct.
3321 (struct tui_source_window): Derive from tui_source_window_base.
3322 (struct tui_disasm_window): New struct.
3323 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
3324 from tui_source_window::clear_detail.
3325 (tui_source_window_base): Rename from tui_source_window.
3326 (~tui_source_window_base): Rename from ~tui_source_window.
3327 (tui_alloc_win_info): Create a tui_disasm_window.
3328
33292019-06-25 Tom Tromey <tom@tromey.com>
3330
3331 * tui/tui-data.h (struct tui_source_window)
3332 (struct tui_data_window): Declare destructors.
3333 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
3334 destructors.
3335 (tui_win_info): Simplify.
3336
33372019-06-25 Tom Tromey <tom@tromey.com>
3338
3339 * tui/tui-winsource.c (tui_display_main)
3340 (tui_update_source_windows_with_addr)
3341 (tui_update_all_breakpoint_info): Update.
3342 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3343 (new_height_ok, parse_scrolling_args): Update.
3344 * tui/tui-stack.c (tui_show_frame_info): Update.
3345 * tui/tui-data.h (struct tui_list): Remove.
3346 (tui_source_windows): Return a reference to a std::vector.
3347 * tui/tui-data.c (source_windows): Now a std::vector.
3348 (tui_source_windows): Change return type.
3349 (tui_clear_source_windows): Rewrite.
3350 (tui_clear_source_windows_detail, tui_add_to_source_windows)
3351 (tui_free_all_source_wins_content): Rewrite.
3352
33532019-06-25 Tom Tromey <tom@tromey.com>
3354
3355 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
3356 (struct tui_data_window, struct tui_cmd_window): Declare
3357 clear_detail method.
3358 * tui/tui-data.c (tui_source_window::clear_detail)
3359 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
3360 methods.
3361 (tui_clear_win_detail): Simplify.
3362
33632019-06-25 Tom Tromey <tom@tromey.com>
3364
3365 * tui/tui-layout.c (make_source_window, make_disasm_window)
3366 (make_source_or_disasm_window): Remove win_info_ptr parameter.
3367 Return the new window.
3368 (show_source_disasm_command, show_data)
3369 (show_source_or_disasm_and_command): Update.
3370
33712019-06-25 Tom Tromey <tom@tromey.com>
3372
3373 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
3374 parameter. Return the new window.
3375 (show_source_disasm_command): Update and remove NULL check.
3376 (show_source_or_disasm_and_command): Update.
3377
33782019-06-25 Tom Tromey <tom@tromey.com>
3379
3380 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
3381
33822019-06-25 Tom Tromey <tom@tromey.com>
3383
3384 * tui/tui-data.h (struct tui_win_info): Make constructor
3385 protected. Make destructor virtual. Add initializers.
3386 (tui_source_window, tui_data_window, tui_cmd_window): New
3387 classes.
3388 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
3389 constructor. Add "type" parameter.
3390 (tui_source_window, tui_data_window, tui_cmd_window): New
3391 constructors.
3392 (tui_alloc_win_info): Instantiate the appropriate subclass.
3393
33942019-06-25 Tom Tromey <tom@tromey.com>
3395
3396 * tui/tui-win.c (tui_resize_all): Use delete.
3397 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
3398 destructor.
3399 (tui_free_window): Don't declare.
3400 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
3401 Update.
3402
34032019-06-25 Tom Tromey <tom@tromey.com>
3404
3405 * tui/tui-data.h (struct tui_win_info): Add constructor.
3406 * tui/tui-data.c (tui_alloc_win_info): Use new.
3407 (tui_free_window): Use delete.
3408
34092019-06-22 Tom Tromey <tom@tromey.com>
3410
3411 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
3412 declare.
3413 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
3414
34152019-06-22 Tom Tromey <tom@tromey.com>
3416
3417 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
3418 declare.
3419 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
3420
34212019-06-22 Tom de Vries <tdevries@suse.de>
3422
3423 * dwarf2read.c (create_addrmap_from_aranges)
3424 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
3425 instead of '%zu'.
3426
34272019-06-21 Simon Marchi <simon.marchi@efficios.com>
3428
3429 * dwarf2read.h (dwarf2_section_info_def): Remove.
3430 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
3431 * dwarf2read.c (struct dwo_sections) <types>: Change type to
3432 std::vector<dwarf2_section_info>.
3433 (struct dwo_file) <~dwo_file>: Remove.
3434 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
3435 types field.
3436 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
3437 (dwarf2_read_debug_names): Likewise.
3438 (create_debug_types_hash_table): Change parameter type to
3439 array_view, adjust code accordingly.
3440 (dwarf2_locate_dwo_sections): Adjust to std::vector.
3441 (partial_die_info::fixup): Likewise.
3442 (determine_prefix): Likewise.
3443 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
3444
34452019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3446
3447 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
3448 gdb_bfd_ref_ptr.
3449 <~dwo_file>: Remove call to gdb_bfd_unref.
3450 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
3451 gdb_bfd_ref_ptr::get.
3452
34532019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3454
3455 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
3456 type to htab_up.
3457 * dwarf2read.c (struct dwo_file): Initialize fields.
3458 <~dwo_file>: New.
3459 (free_dwo_file): Remove, move content to ~dwo_file.
3460 (struct dwo_file_deleter): Remove.
3461 (dwo_file_up>: Remove custom deleter.
3462 (free_dwo_files): Remove.
3463 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
3464 dwo_files.
3465 (process_skeletonless_type_units): Call unique_ptr::get.
3466 (allocate_dwo_file_hash_table): Add deleter to created hash
3467 table. Change return type to htab_up.
3468 (lookup_dwo_file_slot): Don't memset dwo_file, call
3469 unique_ptr::get.
3470 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
3471 (create_dwo_unit_in_dwp_v2): Likewise.
3472 (open_and_init_dwo_file): Likewise.
3473 (free_dwo_file_from_slot): Remove.
3474
34752019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3476
3477 * dwarf2read.h (struct dwarf2_section_info) <readin,
3478 is_virtual>: Change type to bool.
3479 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
3480 true instead of 1.
3481
34822019-06-19 Tom Tromey <tom@tromey.com>
3483
3484 * tui/tui-data.h (tui_init_content_element): Don't declare.
3485
34862019-06-19 Tom Tromey <tom@tromey.com>
3487
3488 * tui/tui-data.h (tui_init_win_info): Don't declare.
3489
34902019-06-19 Tom de Vries <tdevries@suse.de>
3491
3492 * dwarf2read.h (abstract_to_concrete): Change type to
3493 std::unordered_map<sect_offset, std::vector<sect_offset>,
3494 gdb::hash_enum<sect_offset>>.
3495
34962019-06-19 Tom Tromey <tromey@adacore.com>
3497
3498 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
3499 EVAL_AVOID_SIDE_EFFECTS specially.
3500
35012019-06-19 Tom Tromey <tromey@adacore.com>
3502
3503 * source-cache.c (highlighter): New global.
3504 (source_cache::get_source_lines): Create a highlighter on demand.
3505
35062019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
3507
3508 * defs.h (deprecated_interactive_hook): Delete declaration.
3509 * interps.c (clear_interpreter_hooks): Remove use of
3510 deprecated_interactive_hook.
3511 * top.c (deprecated_interactive_hook): Delete definition.
3512 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
3513
35142019-06-18 Tom de Vries <tdevries@suse.de>
3515
3516 PR gdb/24515
3517 * dwarf2read.h (abstract_to_concrete): Change type from
3518 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
3519 std::unordered_map<sect_offset, std::vector<sect_offset>>.
3520 * dwarf2read.c (read_variable): Update.
3521 (dwarf2_fetch_die_loc_sect_off): Update.
3522
35232019-06-17 Tom de Vries <tdevries@suse.de>
3524
3525 PR gdb/24617
3526 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
3527 accessing parent[parent_len - 1].
3528
35292019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
3530
3531 PR gdb/24364
3532 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
3533 call dtrace_process_dof with NULL dof.
3534
35352019-06-16 Tom de Vries <tdevries@suse.de>
3536
3537 PR gdb/24445
3538 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
3539
35402019-06-16 Tom Tromey <tom@tromey.com>
3541
3542 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
3543 (make_all_visible): Use address of member.
3544
35452019-06-16 Tom Tromey <tom@tromey.com>
3546
3547 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
3548 (tui_free_window, free_content, free_content_elements): Remove
3549 unnecessary cast.
3550 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
3551 cast.
3552 * tui/tui-regs.c (tui_show_register_group)
3553 (tui_display_registers_from, tui_display_reg_element_at_line):
3554 Remove unnecessary cast.
3555
35562019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
3557
3558 * linux-nat.c (normal_mask): Delete.
3559 (_initialize_linux_nat): Don't initialise normal_mask.
3560
35612019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
3562
3563 PR gdb/24445
3564 * dwarf-index-write.h (write_psymtabs_to_index): Add
3565 dwz_basename parameter.
3566 * dwarf-index-write.c (write_gdbindex): Move file writing to
3567 write_gdbindex_1. Change return type void.
3568 (assert_file_size): Move up, remove filename parameter.
3569 (write_gdbindex_1): New function.
3570 (write_debug_names): Change return type to void, call
3571 assert_file_size.
3572 (struct index_wip_file): New struct.
3573 (write_psymtabs_to_index): Add dwz_basename parameter. Move
3574 file logic to index_wip_file. Write index for dwz file if
3575 needed.
3576 (save_gdb_index_command): Pass basename of dwz file, if present.
3577 * dwarf-index-cache.c (index_cache::store): Obtain and pass
3578 build-id of dwz file, if present.
3579 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
3580 (dwarf2_get_dwz_file): Likewise.
3581 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
3582 (dwarf2_get_dwz_file): Likewise.
3583
35842019-06-16 Tom Tromey <tom@tromey.com>
3585
3586 * coffread.c (process_coff_symbol): Use xstrdup.
3587 * value.c (create_internalvar): Use xstrdup.
3588
35892019-06-16 Tom Tromey <tom@tromey.com>
3590
3591 * valops.c (value_cast, value_slice): Remove unnecessary cast.
3592 * breakpoint.c (stopin_command, stopat_command)
3593 (until_break_command, decode_location_default): Remove unnecessary
3594 cast.
3595 * utils.c (subset_compare): Remove unnecessary cast.
3596 * ada-lang.c (ada_update_initial_language): Remove unnecessary
3597 cast.
3598 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
3599 cast.
3600 * infcmd.c (path_command): Remove unnecessary cast.
3601 * coffread.c (decode_type): Remove unnecessary cast.
3602 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
3603 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
3604 * tui/tui-stack.c (tui_show_locator_content)
3605 (tui_show_frame_info): Remove unnecessary cast.
3606 * tui/tui-win.c (tui_scroll_forward_command)
3607 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
3608 (parse_scrolling_args): Remove unnecessary cast.
3609 * tui/tui-data.c (init_win_info, tui_del_window)
3610 (tui_free_window, tui_del_data_windows, tui_free_data_content)
3611 (free_content_elements): Remove unnecessary cast.
3612 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
3613 unnecessary cast.
3614 * tui/tui-source.c (tui_set_source_content)
3615 (tui_vertical_source_scroll): Remove unnecessary cast.
3616 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
3617 cast.
3618 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
3619 * tui/tui-regs.c (tui_display_registers_from)
3620 (tui_display_register): Remove unnecessary cast.
3621 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
3622 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
3623 (make_visible): Remove unnecessary cast.
3624 * tui/tui-winsource.c (tui_erase_source_content)
3625 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
3626 unnecessary cast.
3627 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
3628 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
3629 * stabsread.c (read_type, read_array_type, read_range_type):
3630 Remove unnecessary cast.
3631 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
3632 (parse_symbol, parse_type, upgrade_type, parse_external)
3633 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
3634 unnecessary cast.
3635 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
3636
36372019-06-16 Tom Tromey <tom@tromey.com>
3638
3639 * tui/tui-data.c (tui_alloc_generic_win_info)
3640 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
3641 checks.
3642
36432019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
3644 Andrew Burgess <andrew.burgess@embecosm.com>
3645
3646 * f-typeprint.c (f_print_type): Don't return early for not
3647 associated or not allocated types.
3648 (f_type_print_varspec_suffix): Add print_rank parameter and print
3649 ranks of array types in case they dangling.
3650 (f_type_print_base): Add print_rank parameter.
3651
36522019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3653
3654 * NEWS: Mention new MI commands.
3655 * break-catch-throw.c (enum exception_event_kind): Move to
3656 breakpoint.h.
3657 (print_mention_exception_catchpoint): Output text as a single
3658 message.
3659 (catch_exception_command_1): Rename to...
3660 (catch_exception_event): ...this, make non-static, update header
3661 command, and change some parameter types.
3662 (catch_catch_command): Update for changes to
3663 catch_exception_command_1.
3664 (catch_throw_command): Likewise.
3665 (catch_rethrow_command): Likewise.
3666 * breakpoint.c (enum exception_event_kind): Delete.
3667 * breakpoint.h (enum exception_event_kind): Moved here from
3668 break-catch-throw.c.
3669 (catch_exception_event): Declare.
3670 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
3671 (mi_cmd_catch_throw): New function.
3672 (mi_cmd_catch_rethrow): New function.
3673 (mi_cmd_catch_catch): New function.
3674 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
3675 'catch-catch' entries.
3676 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
3677 (mi_cmd_catch_rethrow): Declare.
3678 (mi_cmd_catch_catch): Declare.
3679
36802019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3681
3682 * annotate.c (annotate_source_line): Change return type to void,
3683 update implementation to match.
3684 * annotate.h (annotate_source_line): Change return type to void,
3685 update header comment.
3686 * stack.c (print_frame_info): Don't change what frame information
3687 is printed based on whether annotations are on or not.
3688
36892019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3690
3691 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
3692 (annotate_source): Make static.
3693 (annotate_source_line): Moved from source.c and renamed from
3694 identify_source_line. Update the return type.
3695 * annotate.h (annotate_source): Delete declaration.
3696 (annotate_source_line): Declaration moved from source.h, and
3697 renamed from identify_source_line. Return type updated.
3698 * source.c (identify_source_line): Moved to annotate.c and renamed
3699 to annotate_source_line.
3700 (info_line_command): Remove check of annotation_level.
3701 * source.h (identify_source_line): Move declaration to annotate.h
3702 and rename to annotate_source_line.
3703 * stack.c: Add 'annotate.h' include.
3704 (print_frame_info): Remove check of annotation_level before
3705 calling annotate_source_line.
3706
37072019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3708
3709 * source-cache.c (source_cache::get_plain_source_lines): Use
3710 open_source_file_with_line_charpos instead of just
3711 open_source_file, remove call to find_source_lines.
3712 (source_cache::get_source_lines): Likewise.
3713 * source.c (find_source_lines): Make static.
3714 (get_filename_and_charpos): Renamed into...
3715 (open_source_file_with_line_charpos): ..this along with changes to
3716 return a scoped_fd, and some other minor clean ups.
3717 (identify_source_line): Use open_source_file_with_line_charpos.
3718 (search_command_helper): Use open_source_file_with_line_charpos
3719 instead of just open_source_file, remove call to
3720 find_source_lines.
3721 * source.h (open_source_file_with_line_charpos): Declare new
3722 function.
3723 (find_source_lines): Delete declaration.
3724
37252019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3726
3727 * source.c (get_filename_and_charpos): Remove fullname
3728 parameter.
3729 (identify_source_line): Update call to get_filename_and_charpos.
3730
37312019-06-14 Tom Tromey <tromey@adacore.com>
3732
3733 PR gdb/24502:
3734 * ui-style.h (skip_ansi_escape): Update comment.
3735 * ui-file.h (class no_terminal_escape_file): New class.
3736 * ui-file.c (no_terminal_escape_file::write)
3737 (no_terminal_escape_file::puts): New methods.
3738 * cli/cli-logging.c (handle_redirections): Use
3739 no_terminal_escape_file.
3740
37412019-06-14 Tom Tromey <tromey@adacore.com>
3742
3743 * NEWS: Move convenience variable news above Python news.
3744
37452019-06-14 Tom Tromey <tom@tromey.com>
3746
3747 * gnulib: Move directory to top-level.
3748 * configure.ac: Don't configure gnulib.
3749 * configure: Rebuild.
3750 * common/common-defs.h: Use new path to gnulib.
3751 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
3752 (GNULIB_H): Remove.
3753 (INCGNU): Look in new gnulib location.
3754 (HFILES_NO_SRCDIR): Remove gnulib files.
3755 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
3756 (generated_files): Remove GNULIB_H.
3757 ($(LIBGNU), all-lib): Remove targets.
3758 (distclean): Don't mention GNULIB_BUILDDIR.
3759 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
3760
37612019-06-14 Tom Tromey <tromey@adacore.com>
3762
3763 * symfile.c (add_symbol_file_command): Remove obsolete comment.
3764 Warn if symbol file does not provide any symbols.
3765
37662019-06-14 Tom Tromey <tromey@adacore.com>
3767
3768 * source.c (find_and_open_source): Respect basenames_may_differ.
3769
37702019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
3771
3772 * annotate.c (annotate_breakpoints_invalid): Make use of
3773 scoped_restore_terminal_state.
3774 (annotate_frames_invalid): Likewise.
3775
37762019-06-14 Tom Tromey <tromey@adacore.com>
3777
3778 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
3779 allow assignment to an internalvar.
3780
37812019-06-14 Tom Tromey <tromey@adacore.com>
3782
3783 * ada-lex.l: Allow "_" in attribute names.
3784
37852019-06-14 Tom Tromey <tromey@adacore.com>
3786
3787 PR gdb/24653:
3788 * regcache.c (registers_changed): Don't call alloca.
3789 * top.c (execute_command): Don't call alloca.
3790
37912019-06-13 Pedro Alves <palves@redhat.com>
3792
3793 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
3794 'expression'. When parsing an expression, error out if there's
3795 junk after "unlimited".
3796 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
3797 (do_set_command): Adjust calls to is_unlimited_literal.
3798
37992019-06-13 Pedro Alves <palves@redhat.com>
3800
3801 * compile/compile.c (make_compile_options_def_group): Add braces
3802 around array_view initializer.
3803 * thread.c (make_thread_apply_all_options_def_group)
3804 (make_thread_apply_all_options_def_group): Likewise.
3805
38062019-06-13 Pedro Alves <palves@redhat.com>
3807
3808 * NEWS (New commands): Mention "maint test-options
3809 require-delimiter", "maint test-options unknown-is-error", "maint
3810 test-options unknown-is-operand" and "maint show
3811 test-options-completion-result".
3812 (New command options, command completion): New section.
3813 (Completion improvements): New section.
3814 Mention that you can abbreviate "unlimited".
3815
38162019-06-13 Pedro Alves <palves@redhat.com>
3817
3818 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
3819 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
3820 * unittests/cli-utils-selftests.c (test_parse_flags)
3821 (test_parse_flags_qcs): Delete.
3822 (test_cli_utils): Don't call deleted functions.
3823
38242019-06-13 Pedro Alves <palves@redhat.com>
3825
3826 * thread.c: Include "cli/cli-option.h".
3827 (tp_array_compar_ascending): Global.
3828 (tp_array_compar): Delete function.
3829 (tp_array_compar_ascending, tp_array_compar_descending): New
3830 functions.
3831 (ascending_option_def, qcs_flag_option_def)
3832 (thr_qcs_flags_option_defs)
3833 (make_thread_apply_all_options_def_group)
3834 (make_thread_apply_options_def_group): New.
3835 (thread_apply_all_command): Use gdb::option::process_options.
3836 (thread_apply_command_completer)
3837 (thread_apply_all_command_completer): New.
3838 (thread_apply_command): Use gdb::option::process_options.
3839 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
3840 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
3841 to generate help text of "thread apply". Adjust "taas"'s help.
3842 * tid-parse.c (tid_range_parser::in_thread_range): New method.
3843 * tid-parse.h (tid_range_parser::in_thread_range): New method.
3844
38452019-06-13 Pedro Alves <palves@redhat.com>
3846
3847 * thread.c (thread_apply_command): Check for invalid TID with
3848 isdigit instead of !isalpha.
3849
38502019-06-13 Pedro Alves <palves@redhat.com>
3851
3852 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
3853 (validate_flags_qcs): New.
3854 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
3855 (validate_flags_qcs): Declare.
3856 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
3857 (make_frame_apply_options_def_group): New.
3858 (frame_apply_command_count): Process options with
3859 gdb::option::process_options.
3860 (frame_apply_completer): New.
3861 (frame_apply_level_completer, frame_apply_all_completer)
3862 (frame_apply_completer): New.
3863 (_initialize_stack): Update help of "frame apply", "frame apply
3864 level", "frame apply all" and "faas" to mention supported options
3865 and install command completers.
3866 * stack.h (frame_apply_all_completer): Declare.
3867 * thread.c: Include "stack.h".
3868 (tfaas_command): Add "--".
3869 (_initialize_thread): Update help "tfaas" to mention supported
3870 options and install command completer.
3871
38722019-06-13 Pedro Alves <palves@redhat.com>
3873
3874 * completer.c (complete_nested_command_line): New.
3875 (gdb_completion_word_break_characters_throw): Add assertion.
3876 * completer.h (complete_nested_command_line): Declare.
3877
38782019-06-13 Pedro Alves <palves@redhat.com>
3879
3880 * stack.c (parse_backtrace_qualifiers): New.
3881 (backtrace_command): Use it.
3882 (backtrace_command_completer): Complete on qualifiers.
3883
38842019-06-13 Pedro Alves <palves@redhat.com>
3885
3886 * frame.c: Include "cli/cli-option.h.
3887 (user_set_backtrace_options): New.
3888 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
3889 Delete.
3890 (get_prev_frame): Adjust.
3891 (boolean_option_def, uinteger_option_def)
3892 (set_backtrace_option_defs): New.
3893 (_initialize_frame): Adjust and use
3894 gdb::option::add_setshow_cmds_for_options to install "set
3895 backtrace past-main" and "set backtrace past-entry".
3896 * frame.h: Include "cli/cli-option.h".
3897 (struct frame_print_options): Forward declare.
3898 (print_frame_arguments_all, print_frame_arguments_scalars)
3899 (print_frame_arguments_none): Declare.
3900 (print_entry_values): Delete declaration.
3901 (struct frame_print_options, user_frame_print_options): New.
3902 (struct set_backtrace_options): New.
3903 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
3904 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3905 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
3906 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
3907 (list_args_or_locals): Add frame_print_options parameter.
3908 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
3909 * python/py-framefilter.c (enumerate_args): Pass down
3910 USER_FRAME_PRINT_OPTIONS.
3911 * stack.c: Include "cli/cli-option.h".
3912 (print_frame_arguments_all, print_frame_arguments_scalars)
3913 (print_frame_arguments_none): Declare.
3914 (print_raw_frame_arguments, print_entry_values): Delete.
3915 (user_frame_print_options): New.
3916 (boolean_option_def, enum_option_def, frame_print_option_defs):
3917 New.
3918 (struct backtrace_cmd_options): New.
3919 (bt_flag_option_def): New.
3920 (backtrace_command_option_defs): New.
3921 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
3922 (print_frame_arg, read_frame_arg, print_frame_args)
3923 (print_frame_info, print_frame): Add frame_print_options parameter
3924 and use it.
3925 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
3926 (backtrace_command_1): Add frame_print_options and
3927 backtrace_cmd_options parameters and use them.
3928 (make_backtrace_options_def_group): New.
3929 (backtrace_command): Process command options with
3930 gdb::option::process_options.
3931 (backtrace_command_completer): New.
3932 (_initialize_stack): Extend "backtrace"'s help to mention
3933 supported options. Install completer for "backtrace".
3934 Install some settings commands with add_setshow_cmds_for_options.
3935
39362019-06-13 Pedro Alves <palves@redhat.com>
3937
3938 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
3939 and that "set/show print raw frame-arguments" are now deprecated.
3940
3941 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
3942 command.
3943 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
3944 * stack.c (_initialize_stack): Install "set/show print
3945 raw-frame-arguments", and deprecate "set/show print raw
3946 frame-arguments".
3947 * valprint.c (_initialize_valprint): Deprecate "set/show print
3948 raw".
3949
39502019-06-13 Pedro Alves <palves@redhat.com>
3951
3952 * compile/compile.c (struct compile_options): New.
3953 (compile_flag_option_def, compile_command_option_defs)
3954 (make_compile_options_def_group): New.
3955 (compile_file_command): Handle options with
3956 gdb::option::process_options.
3957 (compile_file_command_completer): New function.
3958 (compile_code_command): Handle options with
3959 gdb::option::process_options.
3960 (compile_code_command_completer): New function.
3961 (_initialize_compiler): Install completers for "compile code" and
3962 "compile file". Mention available options in "compile code" and
3963 "compile code"'s help.
3964 * completer.c (advance_to_completion_word): New, factored out from
3965 ...
3966 (advance_to_expression_complete_word_point): ... this.
3967 (advance_to_filename_complete_word_point): New.
3968 * completer.h (advance_to_filename_complete_word_point): New
3969 declaration.
3970
39712019-06-13 Pedro Alves <palves@redhat.com>
3972
3973 * compile/compile.c: Include "cli/cli-option.h".
3974 (compile_print_value): Scope data pointer is now a
3975 value_print_options pointer; adjust.
3976 (compile_print_command): Process options. Scope data pointer is
3977 now a value_print_options pointer; adjust.
3978 (_initialize_compile): Update "compile print"'s help to include
3979 supported options. Install a completer for "compile print".
3980 * cp-valprint.c (show_vtblprint, show_objectprint)
3981 (show_static_field_print): Delete.
3982 (_initialize_cp_valprint): Don't install "set print
3983 static-members", "set print vtbl", "set print object" here.
3984 * printcmd.c: Include "cli/cli-option.h" and
3985 "common/gdb_optional.h".
3986 (print_command_parse_format): Rework to fill in a
3987 value_print_options instead of a format_data.
3988 (print_value): Change parameter type from format_data pointer to
3989 value_print_options reference. Adjust.
3990 (print_command_1): Process options. Adjust to pass down a
3991 value_print_options.
3992 (print_command_completer): New.
3993 (_initialize_printcmd): Install print_command_completer as
3994 handle_brkchars completer for the "print" command. Update
3995 "print"'s help to include supported options.
3996 * valprint.c: Include "cli/cli-option.h".
3997 (show_vtblprint, show_objectprint, show_static_field_print): Moved
3998 here from cp-valprint.c.
3999 (boolean_option_def, uinteger_option_def)
4000 (value_print_option_defs, make_value_print_options_def_group):
4001 New. Use gdb::option::add_setshow_cmds_for_options to install
4002 "set print elements", "set print null-stop", "set print repeats",
4003 "set print pretty", "set print union", "set print array", "set
4004 print address", "set print symbol", "set print array-indexes".
4005 * valprint.h: Include <string> and "cli/cli-option.h".
4006 (make_value_print_options_def_group): Declare.
4007 (print_value): Change parameter type from format_data pointer to
4008 value_print_options reference.
4009 (print_command_completer): Declare.
4010
40112019-06-13 Pedro Alves <palves@redhat.com>
4012
4013 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
4014 (COMMON_SFILES): Add maint-test-settings.c.
4015 * cli/cli-decode.c (boolean_enums): New global, factored out from
4016 ...
4017 (add_setshow_boolean_cmd): ... here.
4018 * cli/cli-decode.h (boolean_enums): Declare.
4019 * cli/cli-option.c: New file.
4020 * cli/cli-option.h: New file.
4021 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
4022 factored out from ...
4023 (parse_cli_boolean_value(const char *)): ... this.
4024 (is_unlimited_literal): Change parameter type to pointer to
4025 pointer. Adjust and advance ARG pointer.
4026 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
4027 (parse_cli_var_enum): New, factored out from ...
4028 (do_set_command): ... this. Adjust.
4029 * cli/cli-setshow.h (parse_cli_boolean_value)
4030 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
4031 (parse_cli_var_enum): Declare.
4032 * cli/cli-utils.c: Include "cli/cli-option.h".
4033 (get_ulongest): New.
4034 * cli/cli-utils.h (get_ulongest): Declare.
4035 (check_for_argument): New overloads.
4036 * maint-test-options.c: New file.
4037
40382019-06-13 Pedro Alves <palves@redhat.com>
4039
4040 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
4041 parse a range if "-" is at the end of the string.
4042
40432019-06-13 Pedro Alves <palves@redhat.com>
4044
4045 * cli/cli-setshow.c (parse_auto_binary_operation)
4046 (parse_cli_boolean_value): Don't allow "o".
4047
40482019-06-13 Pedro Alves <palves@redhat.com>
4049
4050 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
4051 * NEWS: Mention maint test-settings KIND.
4052 * maint-test-settings.c: New file.
4053
40542019-06-13 Pedro Alves <palves@redhat.com>
4055
4056 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
4057 completer.
4058 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
4059 "set" completers.
4060
40612019-06-13 Pedro Alves <palves@redhat.com>
4062
4063 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
4064 after item.
4065
40662019-06-13 Pedro Alves <palves@redhat.com>
4067
4068 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
4069
40702019-06-13 Pedro Alves <palves@redhat.com>
4071
4072 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
4073 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
4074 call.
4075 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
4076 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
4077 calls.
4078 (check_for_argument): Skip spaces after argument.
4079
40802019-06-13 Pedro Alves <palves@redhat.com>
4081
4082 * thread.c (thread_apply_command): Adjust TID parsing.
4083 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
4084 detected before end of string.
4085 (tid_is_in_list): Error out if LIST is invalid.
4086
40872019-06-13 Pedro Alves <palves@redhat.com>
4088
4089 * completer.c (complete_line_internal_1): Rewind completion word
4090 point.
4091 (completion_tracker::advance_custom_word_point_by): Change
4092 parameter type to int.
4093 * completer.h (completion_tracker::advance_custom_word_point_by):
4094 Likewise.
4095
40962019-06-13 Pedro Alves <palves@redhat.com>
4097
4098 * completer.c (advance_to_completion_word): Handle delimiters.
4099
41002019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
4101
4102 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
4103
41042019-06-11 Tom Tromey <tom@tromey.com>
4105
4106 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
4107 (xmalloc_failed): Move to alloc.c.
4108 * alloc.c: New file.
4109 * Makefile.in (COMMON_SFILES): Add alloc.c.
4110
41112019-06-11 Tom Tromey <tom@tromey.com>
4112
4113 * nat/linux-waitpid.c: Don't include server.h.
4114 (linux_debug): Remove.
4115 (my_waitpid): Update.
4116
41172019-06-11 Tom Tromey <tromey@adacore.com>
4118
4119 * infcall.c (_initialize_infcall): Remove trailing newline from
4120 help.
4121 * user-regs.c (_initialize_user_regs): Remove trailing newline
4122 from help.
4123 * typeprint.c (_initialize_typeprint): Remove trailing newline
4124 from help.
4125 * reverse.c (_initialize_reverse): Remove trailing newlines from
4126 help.
4127 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
4128 from help.
4129 * language.c (add_set_language_command): Remove trailing newline
4130 from help.
4131 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
4132 help.
4133 * disasm.c (_initialize_disasm): Remove trailing newline from
4134 help.
4135 * top.c (init_main): Remove trailing newline from help.
4136 * interps.c (_initialize_interpreter): Remove trailing newline
4137 from help.
4138 * btrace.c (_initialize_btrace): Remove trailing newlines from
4139 help.
4140 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
4141 from help.
4142 * python/python.c (_initialize_python): Remove trailing newline
4143 from help.
4144 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
4145 help.
4146 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
4147 from help. Reformat some text.
4148 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
4149 from help.
4150 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
4151 newline from help.
4152
41532019-06-11 Tom Tromey <tromey@adacore.com>
4154
4155 * darwin-nat.c (darwin_decode_exception_message)
4156 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
4157
41582019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
4159
4160 * valops.c (value_slice): Check for not allocated or not
4161 associated values.
4162
41632019-06-10 Tom de Vries <tdevries@suse.de>
4164
4165 PR gdb/24618
4166 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
4167 sure an empty slot (defined by a 32-bit zero pair) is recognized as
4168 invalid.
4169
41702019-06-10 Tom de Vries <tdevries@suse.de>
4171
4172 PR gdb/24611
4173 * linespec.c (linespec_lexer_lex_string): Remove incorrect
4174 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
4175
41762019-06-10 Tom de Vries <tdevries@suse.de>
4177
4178 PR symtab/24545
4179 * symtab.c (struct demangled_name_entry): Add language field.
4180 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
4181 static minimal symbol". Set and use language field.
4182
41832019-06-10 Tom Tromey <tromey@adacore.com>
4184
4185 * ada-lang.c (_initialize_ada_language): Update help text.
4186
41872019-06-10 Tom Tromey <tromey@adacore.com>
4188
4189 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
4190 with a newline.
4191 * guile/guile.c (handle_boot_error): Don't end warning with a
4192 newline.
4193 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
4194 warning with a newline.
4195 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
4196 newline.
4197 (s12z_frame_cache): Likewise.
4198 * dwarf-index-cache.c (index_cache::store): Don't end warning with
4199 a newline.
4200 * solib-svr4.c (disable_probes_interface): Don't end warning with
4201 a newline.
4202 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
4203 newline.
4204 * python/python.c (do_finish_initialization): Don't end warning
4205 with a newline.
4206
42072019-06-10 Tom Tromey <tom@tromey.com>
4208
4209 * python/py-breakpoint.c (gdbpy_breakpoint_created)
4210 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
4211 gdbpy_enter.
4212
42132019-06-10 Tom Tromey <tromey@adacore.com>
4214
4215 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
4216 data.
4217 (elf_new_init): Don't call stabsread_new_init.
4218 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
4219 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
4220 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
4221
42222019-06-10 Tom de Vries <tdevries@suse.de>
4223
4224 PR symtab/16264
4225 PR symtab/24517
4226 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
4227
42282019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
4229
4230 * source.c (find_and_open_source): Also rewrite relative file
4231 names.
4232
42332019-04-26 Amos Bird <amosbird@gmail.com>
4234
4235 * annotate.c (annotate_thread_exited): Add "thread-exited"
4236 annotation.
4237
42382019-06-06 Tom Tromey <tromey@adacore.com>
4239
4240 * maint.h (class scoped_command_stats): Use
4241 DISABLE_COPY_AND_ASSIGN.
4242 <print_time>: New method.
4243 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
4244 print_time.
4245 (scoped_command_stats::print_time): New method.
4246
42472019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4248
4249 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
4250 instructions of lengths 6 or 8 bytes.
4251
42522019-06-04 Pedro Alves <palves@redhat.com>
4253
4254 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
4255
4256 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
4257 * breakpoint.c (condition_completer): Likewise.
4258 * cli/cli-dump.c (scan_expression): Likewise.
4259 * common/filestuff.c (mkdir_recursive): Likewise.
4260 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
4261 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
4262 (gdb_abspath): Likewise.
4263 * compile/compile-cplus-types.c
4264 (compile_cplus_instance::decl_name): Likewise.
4265 * completer.c (complete_explicit_location):
4266 (signal_completer, reg_or_group_completer_1): Likewise.
4267 * cp-support.c (cp_remove_params_if_any): Likewise.
4268 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
4269 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
4270 * infcmd.c (strip_bg_char): Likewise.
4271 * linespec.c (copy_token_string): Likewise.
4272 * mi/mi-main.c (output_cores): Likewise.
4273 * psymtab.c (psymtab_search_name):
4274 * symfile.c (test_set_ext_lang_command): Likewise.
4275 * target.c (target_fileio_read_stralloc): Likewise.
4276 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
4277 * value.c (complete_internalvar): Likewise.
4278
42792019-06-04 Christian Biesinger <cbiesinger@google.com>
4280
4281 Add objfile property to gdb.Type.
4282 * NEWS: Mention Python API addition.
4283 * python/py-type.c (typy_get_objfile): New method.
4284
42852019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4286
4287 * NEWS: Mention the new set|show style [title|highlight].
4288 Mention changes to "show style", "help" and "apropos".
4289
42902019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4291
4292 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
4293 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
4294 instead of print_help_for_command.
4295 (print_doc_of_command): New function.
4296 (help_list): Add 'apropos -v word' suggestion.
4297 (print_help_for_command): Style the command name using title style.
4298 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
4299 (_initialize_cli_cmds): Describe -v in apropos_command help.
4300
43012019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4302
4303 * cli/cli-style.h (cli_style_option): Add name in constructor,
4304 add m_name class member, add constructor with intensity,
4305 add name class function.
4306 (cli_style_option::add_setshow_commands): Remove name argument.
4307 (highlight_style, title_style): New styles.
4308 * cli/cli-style.c (do_show): New function that shows a style
4309 characteristic styling the style name with itself.
4310 (set_style_name): New function.
4311 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
4312 Update all callers according to the changes in cli/cli-style.h.
4313 * utils.h (fputs_highlighted): New function.
4314 * utils.c (fputs_highlighted): Likewise.
4315
43162019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4317
4318 * NEWS: Mention new pipe command and new convenience variables.
4319
43202019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4321
4322 * cli/cli-cmds.c (pipe_command): New function.
4323 (_initialize_cli_cmds): Call add_com for pipe_command.
4324 Define | as an alias for pipe.
4325 (exit_status_set_internal_vars): New function.
4326 (shell_escape): Call exit_status_set_internal_vars.
4327 cli/cli-decode.c (find_command_name_length): Recognize | as
4328 a single character command.
4329
43302019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4331
4332 * gdbcmd.h (execute_command_to_ui_file): New declaration.
4333 top.c (execute_command_to_ui_file): New function, mostly a copy
4334 of execute_command_to_string.
4335 (execute_command_to_string): Implement by calling
4336 execute_command_to_ui_file.
4337
43382019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4339
4340 * top.h (saved_command_line): Remove declaration.
4341 * top.c (previous_saved_command_line, previous_repeat_arguments):
4342 New variables.
4343 (saved_command_line): Make static, define together with other
4344 'repeat variables'.
4345 (dont_repeat): Clear repeat_arguments.
4346 (repeat_previous, get_saved_command_line, save_command_line):
4347 New functions.
4348 (gdb_init): Initialize saved_command_line
4349 and previous_saved_command_line.
4350 * main.c (captured_main_1): Remove saved_command_line initialization.
4351 * event-top.c (handle_line_of_input): Update to use
4352 the new 'repeat' related functions instead of direct access to
4353 saved_command_line.
4354 * command.h (repeat_previous, get_saved_command_line,
4355 save_command_line): New declarations.
4356 (dont_repeat): Add comment.
4357
43582019-05-30 Tom Tromey <tromey@adacore.com>
4359
4360 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
4361 Fix comment.
4362 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
4363
43642019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
4365
4366 PR cli/24587
4367 * completer.c (complete): Initialize variable word.
4368
43692019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
4370
4371 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
4372 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
4373 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
4374 'body' is NULL to the outter 'if', protecting the '!is_define'
4375 situation as well.
4376
43772019-05-29 Tom Tromey <tromey@adacore.com>
4378
4379 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
4380 (dwarf_unknown): New function.
4381 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
4382 (dwarf_type_encoding_name): Use dwarf_unknown.
4383
43842019-05-29 Tom Tromey <tromey@adacore.com>
4385
4386 PR c++/20020:
4387 * cp-valprint.c (cp_print_value_fields): Call
4388 cp_print_static_field inside "try".
4389
43902019-05-29 Tom Tromey <tromey@adacore.com>
4391
4392 * inflow.c (struct terminal_info): Add default operator=.
4393 * configure: Rebuild.
4394 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
4395 -Wdeprecated-copy-dtor, -Wredundant-move.
4396
43972019-05-29 Tom Tromey <tromey@adacore.com>
4398
4399 * NEWS: Add entry.
4400 * infcmd.c (print_return_value_1): Handle finish_print
4401 option.
4402 (show_print_finish): New function.
4403 (_initialize_infcmd): Add "set/show print finish" commands.
4404 * valprint.c (user_print_options): Initialize new member.
4405 * valprint.h (struct value_print_options) <finish_print>: New
4406 member.
4407
44082019-05-28 Tom Tromey <tromey@adacore.com>
4409
4410 * ada-lang.c (ada_remove_Xbn_suffix)
4411 (find_old_style_renaming_symbol)
4412 (parse_old_style_renaming): Remove.
4413 (ada_find_renaming_symbol): Don't call
4414 find_old_style_renaming_symbol.
4415 (ada_is_renaming_symbol): Rename from
4416 ada_find_renaming_symbol. Remove "block" parameter. Return
4417 bool. Now static.
4418 (ada_read_var_value): Update and simplify.
4419 * ada-exp.y (write_var_or_type): Remove old code.
4420
44212019-05-28 Alan Hayward <alan.hayward@arm.com>
4422
4423 * event-top.c: Remove include comment.
4424 * inflow.c (class scoped_ignore_sigttou): Move from here...
4425 * inflow.h (class scoped_ignore_sigttou): ...to here.
4426 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
4427 * top.c: Remove include comment.
4428
44292019-05-27 Tom Tromey <tom@tromey.com>
4430
4431 * NEWS: Fix typo.
4432
44332019-05-22 Tom Tromey <tromey@adacore.com>
4434
4435 * target.c (target_follow_exec): Constify parameter.
4436 * target-delegates.c: Rebuild.
4437 * remote.c (remote_target::follow_exec): Constify parameter.
4438 * infrun.c (follow_exec): Constify parameter.
4439 * target.h (struct target_ops) <follow_exec>: Constify parameter.
4440 (target_follow_exec): Likewise.
4441
44422019-05-22 Alan Hayward <alan.hayward@arm.com>
4443
4444 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
4445 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
4446
44472019-05-22 Alan Hayward <alan.hayward@arm.com>
4448
4449 * NEWS: Add debugredirect and testsuite sections.
4450
44512019-05-22 Simon Cook <simon.cook@embecosm.com>
4452
4453 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
4454 target descriptions using exclusively floating point register name
4455 aliases.
4456
44572019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
4458
4459 PR gdb/18644:
4460 * f-lang.c (build_fortran_types): Handle the case where
4461 gdbarch_floatformat_for_type returns a nullptr.
4462
44632019-05-21 Tom de Vries <tdevries@suse.de>
4464
4465 PR cli/24587
4466 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
4467
44682019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
4469
4470 PR gdb/18644:
4471 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
4472 16-byte floats.
4473 * i386-tdep.c (i386_floatformat_for_type): Use
4474 floatformats_ia64_quad for the 16-byte floating point component
4475 within a fortran 32-byte complex number.
4476
44772019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
4478
4479 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
4480 delete default constructor.
4481 (find_partial_die): Update to return const struct.
4482 (partial_die_parent_scope): Move variable declaration into scope
4483 of its use and change its type to auto.
4484 (guess_partial_die_structure_name): Likewise.
4485 (partial_die_info::fixup): Likewise.
4486
44872019-05-17 Tom Tromey <tromey@adacore.com>
4488
4489 * source.c (find_and_open_source): Remove cast.
4490
44912019-05-17 Tom Tromey <tromey@adacore.com>
4492
4493 * annotate.c (annotate_source): Make "filename" const.
4494 * annotate.h (annotate_source): Use const.
4495
44962019-05-17 Alan Hayward <alan.hayward@arm.com>
4497
4498 * disasm.c (set_disassembler_options): Send errors to stderr.
4499
45002019-05-17 Alan Hayward <alan.hayward@arm.com>
4501
4502 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
4503 (cli_interp_base::set_logging): Check debug_redirect.
4504 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
4505 * cli/cli-logging.c (debug_redirect): Add static variable.
4506 (pop_output_files): Add default param.
4507 (handle_redirections): Print debug setting.
4508 (show_logging_command): Likewise.
4509 (_initialize_cli_logging): Add debugredirect command.
4510 * interps.c (current_interp_set_logging): Add debug_redirect
4511 parameter.
4512 * interps.h (set_logging): Add debug_redirect parameter.
4513 (current_interp_set_logging): Likewise.
4514 * mi/mi-common.h: Likewise.
4515 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
4516
45172019-05-17 Alan Hayward <alan.hayward@arm.com>
4518 Tom Tromey <tromey@adacore.com>
4519
4520 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
4521 directly.
4522 * cli/cli-interp.h (make_logging_output): Remove declaration.
4523 * cli/cli-logging.c (make_logging_output): Remove function.
4524 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
4525 directly.
4526 * ui-file.c (tee_file::tee_file): Remove bools.
4527 (tee_file::~tee_file): Remove deletes.
4528 * ui-file.h (tee_file): Remove bools.
4529
45302019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
4531
4532 * mi/mi-cmds.h (mi_cmd_complete): New function.
4533 * mi/mi-main.c (mi_cmd_complete): Likewise.
4534 * mi/mi-cmds.c: Define new MI command -complete.
4535 * NEWS: Mention new -complete command.
4536
45372019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
4538
4539 * completer.h (complete): New function.
4540 * completer.c (complete): Likewise.
4541 * cli/cli-cmds.c: (complete_command): Update to use new complete()
4542 function defined in completer.h.
4543
45442019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
4545
4546 * MAINTAINERS (Write After Approval): Add myself.
4547
45482019-05-17 Tom de Vries <tdevries@suse.de>
4549
4550 PR gdb/24094
4551 * dwarf2read.c (struct cu_partial_die_info): New struct.
4552 (find_partial_die): Return cu_partial_die_info.
4553 (partial_die_parent_scope, guess_partial_die_structure_name)
4554 (partial_die_info::fixup): Handle new return type of find_partial_die.
4555
45562019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4557
4558 * stap-probe.c (stap_parse_register_operand): Make "regname" an
4559 "std::string", simplifying the algorithm.
4560
45612019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4562
4563 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
4564 (stap_static_probe_ops::get_probes): Likewise.
4565
45662019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4567
4568 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
4569 '-')" and "else if".
4570 (stap_parse_single_operand): Join checks for
4571 "gdbarch_stap_parse_special_token_p" and
4572 "gdbarch_stap_parse_special_token" in the same "if" statement.
4573 Invert check when verifying for operation on register
4574 displacement.
4575
45762019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4577
4578 * stap-probe.c (stap_get_opcode): Update comment.
4579 (stap_get_expected_argument_type): Likewise.
4580 (handle_stap_probe): Likewise.
4581
45822019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4583
4584 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
4585 return type to 'bool'. Adjust comment. Use 'bool' when
4586 appropriate.
4587 (i386_stap_parse_special_token_three_arg_disp): Likewise.
4588 * stap-probe.c (stap_parse_argument_1): Likewise.
4589 (stap_is_operator): Likewise.
4590 (stap_is_generic_prefix): Likewise.
4591 (stap_is_register_prefix): Likewise.
4592 (stap_is_register_indirection_prefix): Likewise.
4593 (stap_is_integer_prefix): Likewise.
4594 (stap_generic_check_suffix): Likewise.
4595 (stap_check_integer_suffix): Likewise.
4596 (stap_check_register_suffix): Likewise.
4597 (stap_check_register_indirection_suffix): Likewise.
4598 (stap_parse_register_operand): Likewise.
4599 (stap_parse_single_operand): Likewise.
4600 (stap_parse_argument_1): Likewise.
4601 (stap_probe::get_argument_count): Likewise.
4602 (stap_is_operator): Likewise.
4603
46042019-05-16 Tom Tromey <tromey@adacore.com>
4605
4606 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
4607 keyword to foreach.
4608
46092019-05-15 Simon Marchi <simon.marchi@efficios.com>
4610
4611 * linux-thread-db.c (try_thread_db_load_1): Change return type
4612 to bool.
4613 (try_thread_db_load): Likewise.
4614 (try_thread_db_load_from_pdir_1): Likewise.
4615 (try_thread_db_load_from_pdir): Likewise.
4616 (try_thread_db_load_from_sdir): Likewise.
4617 (try_thread_db_load_from_dir): Likewise.
4618 (thread_db_load_search): Likewise.
4619 (has_libpthread): Likewise.
4620 (thread_db_load): Likewise.
4621
46222019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
4623
4624 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
4625 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
4626 NULL, and complain/return if that's the case.
4627
46282019-05-15 John Darrington <john@darrington.wattle.id.au>
4629
4630 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
4631 (advance, posn, abstract_read_memory): New functions.
4632 [struct mem_read_abstraction]: New struct.
4633 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
4634
46352019-05-14 Tom Tromey <tromey@adacore.com>
4636
4637 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
4638 value is not lval_memory.
4639
46402019-05-14 Tom Tromey <tromey@adacore.com>
4641
4642 * solib.c (info_sharedlibrary_command): Style the file name.
4643
46442019-05-14 Alan Hayward <alan.hayward@arm.com>
4645
4646 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
4647 (aarch64_vnv_type): Likewise.
4648 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
4649 * common/tdesc.c: Likewise.
4650 * common/tdesc.h (enum tdesc_type_kind): Likewise.
4651 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
4652 * features/aarch64-fpu.xml: Add ieee half view.
4653 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
4654 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
4655 * gdbtypes.h (struct builtin_type): Likewise.
4656 (struct objfile_type): Likewise.
4657
46582019-05-12 Paul Naert <paul.naert@polymtl.ca>
4659
4660 * language.c (language_sniff_from_mangled_name): Fix "langauge"
4661 typo.
4662 * location.h (string_to_event_location): Likewise.
4663
46642019-05-11 Joel Brobecker <brobecker@adacore.com>
4665
4666 GDB 8.3 released.
4667
46682019-05-10 Simon Marchi <simon.marchi@efficios.com>
4669
4670 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
4671 New variable declaration.
4672 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
4673 New variable.
4674 (print_one_breakpoint): Use ui_out::test_flags and new global
4675 variable to compute use_fixed_output.
4676 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
4677 Remove.
4678 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
4679 (mi_multi_location_breakpoint_output_fixed): Remove.
4680 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
4681 new variable.
4682 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
4683 fix_multi_location_breakpoint_output flag if version >= 3.
4684 * ui-out.h (enum ui_out_flag)
4685 <fix_multi_location_breakpoint_output>: New enumerator.
4686
46872019-05-10 Simon Marchi <simon.marchi@efficios.com>
4688
4689 * contrib/cc-with-tweaks.sh: Validate dwz's work.
4690
46912019-05-10 Tom Tromey <tromey@adacore.com>
4692
4693 * ada-lang.c (catch_ada_completer): New function.
4694 (_initialize_ada_language): Use it.
4695
46962019-05-10 Tom Tromey <tromey@adacore.com>
4697
4698 * thread.c (print_thread_info): Make "requested_threads" const.
4699 * gdbthread.h (print_thread_info): Make "requested_threads"
4700 const.
4701 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
4702 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
4703
47042019-05-08 Tom Tromey <tom@tromey.com>
4705
4706 * gdbtypes.c (objfile_type_data): Change type.
4707 (objfile_type, _initialize_gdbtypes): Update.
4708
47092019-05-08 Tom Tromey <tom@tromey.com>
4710
4711 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
4712 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
4713 (_initialize_dwarf2_frame): Update.
4714
47152019-05-08 Tom Tromey <tom@tromey.com>
4716
4717 * objc-lang.c (objc_objfile_data): Change type.
4718 (find_methods): Update.
4719 (_initialize_objc_lang): Remove.
4720
47212019-05-08 Tom Tromey <tom@tromey.com>
4722
4723 * stabsread.c (rs6000_builtin_type_data): Change type.
4724 (rs6000_builtin_type, _initialize_stabsread): Update.
4725
47262019-05-08 Tom Tromey <tom@tromey.com>
4727
4728 * mips-tdep.c (mips_pdr_data): Remove.
4729 (_initialize_mips_tdep): Update.
4730
47312019-05-08 Tom Tromey <tom@tromey.com>
4732
4733 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
4734 (hppa_init_objfile_priv_data, read_unwind_info)
4735 (find_unwind_entry, _initialize_hppa_tdep): Update.
4736
47372019-05-08 Tom Tromey <tom@tromey.com>
4738
4739 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
4740 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
4741 on obstack.
4742 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
4743
47442019-05-08 Tom Tromey <tom@tromey.com>
4745
4746 * mdebugread.c (basic_type_data): Change type.
4747 (basic_type, _initialize_mdebugread): Update.
4748
47492019-05-08 Tom Tromey <tom@tromey.com>
4750
4751 * common/gdb_unique_ptr.h (struct noop_deleter): New.
4752
47532019-05-08 Tom Tromey <tom@tromey.com>
4754
4755 * nto-tdep.c (nto_inferior_data_reg): Change type.
4756 (nto_inferior_data): Update.
4757 (nto_inferior_data_cleanup, nto_new_inferior_data)
4758 (_initialize_nto_tdep): Remove.
4759 * nto-tdep.h (struct nto_inferior_data): Add initializers.
4760
47612019-05-08 Tom Tromey <tom@tromey.com>
4762
4763 * ada-lang.c (struct ada_inferior_data): Add initializers.
4764 (ada_inferior_data): Change type.
4765 (ada_inferior_data_cleanup): Remove.
4766 (get_ada_inferior_data, ada_inferior_exit)
4767 (struct ada_pspace_data): Add initializers, destructor.
4768 (ada_pspace_data_handle): Change type.
4769 (get_ada_pspace_data): Update.
4770 (ada_pspace_data_cleanup): Remove.
4771
47722019-05-08 Tom Tromey <tom@tromey.com>
4773
4774 * coffread.c (struct coff_symfile_info): Add initializers.
4775 (coff_objfile_data_key): Move lower. Change type.
4776 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
4777 Update.
4778 (coff_free_info): Remove.
4779
47802019-05-08 Tom Tromey <tom@tromey.com>
4781
4782 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
4783 (fbsd_pspace_data_handle): Move lower. Change type.
4784 (get_fbsd_pspace_data): Update.
4785 (fbsd_pspace_data_cleanup): Remove.
4786 (_initialize_fbsd_tdep): Update.
4787
47882019-05-08 Tom Tromey <tom@tromey.com>
4789
4790 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
4791 (get_ada_tasks_pspace_data): Update.
4792 (ada_tasks_pspace_data_cleanup): Remove.
4793 (_initialize_tasks): Update.
4794 (ada_tasks_inferior_data_handle): Change type.
4795 (get_ada_tasks_inferior_data): Update.
4796 (ada_tasks_inferior_data_cleanup): Remove.
4797 (struct ada_tasks_pspace_data): Add initializers.
4798
47992019-05-08 Tom Tromey <tom@tromey.com>
4800
4801 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
4802 * symfile-debug.c (debug_sym_get_probes): Change type.
4803 * stap-probe.c (handle_stap_probe):
4804 (stap_static_probe_ops::get_probes): Change type.
4805 * probe.h (class static_probe_ops) <get_probes>: Change type.
4806 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
4807 (parse_probes_in_pspace): Update.
4808 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
4809 Update.
4810 (any_static_probe_ops::get_probes): Change type.
4811 * elfread.c (elfread_data): New typedef.
4812 (probe_key): Change type.
4813 (elf_get_probes): Likewise. Update.
4814 (probe_key_free): Remove.
4815 (_initialize_elfread): Update.
4816 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
4817 Change type.
4818 (dtrace_process_dof_probe, dtrace_process_dof)
4819 (dtrace_static_probe_ops::get_probe): Change type.
4820
48212019-05-08 Tom Tromey <tom@tromey.com>
4822
4823 * xcoffread.c (struct xcoff_symfile_info): Rename from
4824 coff_symfile_info. Add initializers.
4825 (xcoff_objfile_data_key): Move lower. Change type.
4826 (XCOFF_DATA): Rewrite.
4827 (xcoff_free_info): Remove.
4828 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
4829 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
4830 (xcoff_initial_scan): Update.
4831
48322019-05-08 Tom Tromey <tom@tromey.com>
4833
4834 * solib-svr4.c (struct svr4_info): Add initializers and
4835 destructor.
4836 <probes_table>: Now an htab_up.
4837 (solib_svr4_pspace_data): Change type.
4838 (free_probes_table): Simplify.
4839 (~svr4_info): Rename from svr4_pspace_data_cleanup.
4840 (get_svr4_info, probes_table_htab_remove_objfile_probes)
4841 (probes_table_remove_objfile_probes, register_solib_event_probe)
4842 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
4843 (_initialize_svr4_solib): Update.
4844
48452019-05-08 Tom Tromey <tom@tromey.com>
4846
4847 * remote.c (remote_pspace_data): Change type.
4848 (remote_pspace_data_cleanup): Remove.
4849 (get_remote_exec_file, set_pspace_remote_exec_file)
4850 (_initialize_remote): Update.
4851
48522019-05-08 Tom Tromey <tom@tromey.com>
4853
4854 * breakpoint.c (breakpoint_objfile_key): Change type.
4855 (get_breakpoint_objfile_data): Update.
4856 (free_breakpoint_objfile_data): Remove.
4857 (_initialize_breakpoint): Update.
4858
48592019-05-08 Tom Tromey <tom@tromey.com>
4860
4861 * linux-tdep.c (struct linux_info): Add initializers.
4862 (linux_inferior_data): Move. Change type.
4863 (invalidate_linux_cache_inf): Update.
4864 (linux_inferior_data_cleanup): Remove.
4865 (get_linux_inferior_data, _initialize_linux_tdep): Update.
4866
48672019-05-08 Tom Tromey <tom@tromey.com>
4868
4869 * auxv.c (auxv_inferior_data): Move. Change type.
4870 (auxv_inferior_data_cleanup): Remove.
4871 (invalidate_auxv_cache_inf): Rewrite.
4872 (get_auxv_inferior_data, _initialize_auxv): Update.
4873
48742019-05-08 Tom Tromey <tom@tromey.com>
4875
4876 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
4877 (symfile_debug_objfile_data_key): Change type.
4878 (symfile_debug_installed, debug_qf_has_symbols)
4879 (debug_qf_find_last_source_symtab)
4880 (debug_qf_forget_cached_source_info)
4881 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
4882 (debug_qf_print_stats, debug_qf_dump)
4883 (debug_qf_expand_symtabs_for_function)
4884 (debug_qf_expand_all_symtabs)
4885 (debug_qf_expand_symtabs_with_fullname)
4886 (debug_qf_map_matching_symbols)
4887 (debug_qf_expand_symtabs_matching)
4888 (debug_qf_find_pc_sect_compunit_symtab)
4889 (debug_qf_map_symbol_filenames)
4890 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
4891 (debug_sym_new_init, debug_sym_init, debug_sym_read)
4892 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
4893 (debug_sym_read_linetable, debug_sym_relocate): Update.
4894 (symfile_debug_free_objfile): Remove.
4895 (install_symfile_debug_logging, _initialize_symfile_debug):
4896 Update.
4897
48982019-05-08 Tom Tromey <tom@tromey.com>
4899
4900 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
4901 allocate_on_obstack.
4902 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
4903 (get_dwarf2_per_objfile): Update.
4904 (set_dwarf2_per_objfile): Remove.
4905 (dwarf2_has_info, dwarf2_get_section_info): Update.
4906 (dwarf2_free_objfile): Remove.
4907 (_initialize_dwarf2_read): Update.
4908
49092019-05-08 Tom Tromey <tom@tromey.com>
4910
4911 * auto-load.c (struct auto_load_pspace_info): Add destructor and
4912 initializers.
4913 <unsupported_script_warning_printed,
4914 script_not_found_warning_printed>: Now bool.
4915 (auto_load_pspace_data): Change type.
4916 (~auto_load_pspace_info): Rename from
4917 auto_load_pspace_data_cleanup.
4918 (get_auto_load_pspace_data, init_loaded_scripts_info)
4919 (clear_section_scripts, maybe_print_unsupported_script_warning)
4920 (maybe_print_script_not_found_warning, _initialize_auto_load):
4921 Update.
4922
49232019-05-08 Tom Tromey <tom@tromey.com>
4924
4925 * objfiles.c (objfile_pspace_info): Add destructor and
4926 initializers.
4927 (objfiles_pspace_data): Change type.
4928 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
4929 (get_objfile_pspace_data): Update.
4930 (objfiles_bfd_data): Change type.
4931 (get_objfile_bfd_data): Update.
4932 (objfile_bfd_data_free, _initialize_objfiles): Remove.
4933
49342019-05-08 Tom Tromey <tom@tromey.com>
4935
4936 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
4937 Change type.
4938 (get_catch_syscall_inferior_data): Update.
4939 (catch_syscall_inferior_data_cleanup): Remove.
4940 (_initialize_break_catch_syscall): Update.
4941
49422019-05-08 Tom Tromey <tom@tromey.com>
4943
4944 * inflow.c (struct terminal_info): Add destructor and
4945 initializers.
4946 (inflow_inferior_data): Change type.
4947 (~terminal_info): Rename from inflow_inferior_data_cleanup.
4948 (get_inflow_inferior_data, inflow_inferior_exit)
4949 (swap_terminal_info, _initialize_inflow): Update.
4950
49512019-05-08 Tom Tromey <tom@tromey.com>
4952
4953 * target-dcache.c (target_dcache_cleanup): Remove.
4954 (target_dcache_aspace_key): Change type.
4955 (target_dcache_init_p, target_dcache_invalidate)
4956 (target_dcache_get, target_dcache_get_or_init)
4957 (_initialize_target_dcache): Update.
4958 * dcache.h (struct dcache_deleter): New.
4959
49602019-05-08 Tom Tromey <tom@tromey.com>
4961
4962 * symtab.c (struct symbol_cache): Add destructor and
4963 initializers.
4964 (symbol_cache_key): Move. Change type.
4965 (make_symbol_cache, free_symbol_cache): Remove.
4966 (get_symbol_cache): Update.
4967 (symbol_cache_cleanup): Remove.
4968 (ALL_PSPACES, symbol_cache_flush)
4969 (maintenance_print_symbol_cache)
4970 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
4971 Update.
4972
49732019-05-08 Tom Tromey <tom@tromey.com>
4974
4975 * symtab.c (struct main_info): Add destructor and initializers.
4976 (main_progspace_key): Move. Change type.
4977 (get_main_info): Update.
4978 (main_info_cleanup): Remove.
4979 (_initialize_symtab): Update.
4980
49812019-05-08 Tom Tromey <tom@tromey.com>
4982
4983 * registry.h (DECLARE_REGISTRY): Define the _key class.
4984
49852019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
4986
4987 * NEWS: Merge two 'New commands' sections.
4988
49892019-05-08 Joel Brobecker <brobecker@adacore.com>
4990
4991 * ada-valprint.c (ada_val_print_gnat_array): Remove language
4992 parameter and use Ada language definition instead.
4993 (ada_val_print_ptr): Remove unused language parameter.
4994 (ada_val_print_num): Remove language parameter and use Ada language
4995 definition instead.
4996 (ada_val_print_enum, ada_val_print_flt): Remove unused language
4997 parameter.
4998 (ada_val_print_struct_union, ada_val_print_ref): Remove language
4999 parameter and use Ada language definition instead.
5000 (ada_val_print_1): Update all ada_val_print_xxx calls.
5001 Remove language parameter.
5002 (ada_val_print): Update ada_val_print_1 call.
5003
50042019-05-08 Tom Tromey <tromey@adacore.com>
5005
5006 * remote.c (remote_hw_watchpoint_limit)
5007 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
5008 Now static.
5009
50102019-05-08 Tom Tromey <tromey@adacore.com>
5011
5012 * maint.c (_initialize_maint_cmds): Move initialization code to
5013 remote.c.
5014 (watchdog, show_watchdog): Move to remote.c.
5015 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
5016 "watchdog" static.
5017 (_initialize_remote): Move initialization code from maint.c.
5018 * defs.h (watchdog): Don't declare.
5019
50202019-05-08 Tom Tromey <tromey@adacore.com>
5021
5022 * tui/tui-interp.c: Include main.h.
5023 * interps.c: Include main.h.
5024 * main.h (interpreter_p): Declare.
5025 * defs.h (interpreter_p): Don't declare.
5026
50272019-05-08 Tom Tromey <tromey@adacore.com>
5028
5029 * dwarf2loc.c: Include dwarf2read.h.
5030 * defs.h (read_unsigned_leb128): Don't declare.
5031 * dwarf2read.h (read_unsigned_leb128): Declare.
5032
50332019-05-08 Tom Tromey <tromey@adacore.com>
5034
5035 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
5036 method.
5037
50382019-05-08 Tom Tromey <tromey@adacore.com>
5039
5040 * utils.c (fputs_maybe_filtered): Reset style after paging, even
5041 when no wrap column is set.
5042
50432019-05-08 Tom Tromey <tromey@adacore.com>
5044
5045 * c-lang.c (c_get_string): Handle non-C-style arrays.
5046
50472019-05-08 Tom Tromey <tromey@adacore.com>
5048
5049 * typeprint.c (print_offset_data::update): Print the bit offset,
5050 not the number of bits remaining.
5051
50522019-05-08 Tom Tromey <tromey@adacore.com>
5053
5054 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
5055 padding at end of comment.
5056
50572019-05-08 Tom Tromey <tromey@adacore.com>
5058
5059 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
5060 Compare main types.
5061
50622019-05-06 Tom Tromey <tom@tromey.com>
5063
5064 * common/scoped_mmap.c: Include common-defs.h.
5065 * common/scoped_mmap.h: Don't include config.h.
5066
50672019-05-04 Tom Tromey <tom@tromey.com>
5068
5069 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
5070 (struct aarch64_call_info): Add initializers.
5071 <si>: Now a std::vector.
5072 (pass_on_stack, aarch64_push_dummy_call): Update.
5073
50742019-05-04 Simon Marchi <simon.marchi@efficios.com>
5075 Tom Tromey <tom@tromey.com>
5076
5077 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
5078 (ppc_threads): Now a std::vector. Now static.
5079 (hwdebug_find_thread_points_by_tid)
5080 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
5081 Update.
5082
50832019-05-04 Tom Tromey <tom@tromey.com>
5084
5085 * arc-tdep.c (arc_tdesc_init): Return bool.
5086
50872019-05-04 Tom Tromey <tom@tromey.com>
5088
5089 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
5090 Use gdb_assert_not_reached.
5091
50922019-05-04 Tom Tromey <tom@tromey.com>
5093
5094 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
5095 "false".
5096
50972019-05-04 Tom Tromey <tom@tromey.com>
5098
5099 * arc-tdep.c (arc_tdesc_init): Use bool.
5100
51012019-05-04 Tom Tromey <tom@tromey.com>
5102
5103 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
5104
51052019-05-04 Tom Tromey <tom@tromey.com>
5106
5107 * cli/cli-cmds.c (valid_command_p): Return bool.
5108
51092019-05-04 Tom Tromey <tom@tromey.com>
5110
5111 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
5112 * command.h (valid_user_defined_cmd_name_p): Channge return type.
5113
51142019-05-04 Raul Tambre <raul@tambre.ee>
5115
5116 * python/lib/gdb/prompt.py (_ExtendedPrompt)
5117 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
5118 operator for comparison.
5119
51202019-05-04 Tom Tromey <tom@tromey.com>
5121
5122 * psymtab.c (psymbol_name_matches, match_partial_symbol)
5123 (lookup_partial_symbol, print_partial_symbols)
5124 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
5125 (psymbol_compare): Update.
5126 (add_psymbol_to_bcache): Clear the entire psymbol.
5127 (maintenance_check_psymtabs): Update.
5128 * psympriv.h (struct partial_symbol): Don't derive from
5129 general_symbol_info.
5130 <obj_section, unrelocated_address, address,
5131 set_unrelocated_address>: Update.
5132 <ginfo>: New member.
5133 * dwarf-index-write.c (write_psymbols, debug_names::insert)
5134 (debug_names::write_psymbols): Update.
5135
51362019-05-04 Tom de Vries <tdevries@suse.de>
5137
5138 * contrib/cc-with-tweaks.sh: Support -n arg.
5139
51402019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5141
5142 * corelow.c (core_target::detach): Ensure frame cache and
5143 register caches are cleared.
5144 inferior.c (exit_inferior_1): Likewise.
5145
51462019-05-03 Sandra Loosemore <sandra@codesourcery.com>
5147 Tom Tromey <tom@tromey.com>
5148
5149 * dictionary.c (collate_pending_symbols_by_language): Remove
5150 "struct" from foreach.
5151 * symtab.c (lookup_global_symbol_from_objfile)
5152 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
5153 foreach.
5154 * ser-tcp.c (net_open): Remove "struct" from foreach.
5155 * objfiles.c (objfile_relocate, objfile_rebase)
5156 (objfile_has_symbols): Remove "struct" from foreach.
5157 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
5158 from foreach.
5159 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
5160 foreach.
5161 * darwin-nat.c (thread_info_from_private_thread_info): Remove
5162 "struct" from foreach.
5163 * ada-lang.c (create_excep_cond_exprs)
5164 (ada_exception_catchpoint_cond_string): Remove "struct" from
5165 foreach.
5166
51672019-05-03 Tom Tromey <tromey@adacore.com>
5168
5169 * ada-exp.y (convert_char_literal): Check suffix of each
5170 enumerator.
5171
51722019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
5173
5174 PR ada/21406:
5175 * ada-exp.y (yywrap): Don't define.
5176 * ada-lex.l (%option): Add noyywrap
5177 (yywrap): Remove.
5178
51792019-05-03 Eli Zaretskii <eliz@gnu.org>
5180
5181 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
5182 _WIN32_WINNT to the XP level, unless already defined to a higher
5183 level.
5184
5185 * unittests/parse-connection-spec-selftests.c:
5186 * ser-tcp.c:
5187 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
5188 override.
5189
5190 * symfile.c (find_separate_debug_file): Remove colon from the
5191 drive spec of DOS/Windows file names of the target, so that the
5192 file name produced from DEBUGDIR and the target's directory will
5193 be valid on DOS/Windows systems.
5194
51952019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
5196
5197 * rust-lang.c (val_print_struct): Handle printing structures
5198 containing strings.
5199
52002019-05-02 Tom Tromey <tromey@adacore.com>
5201
5202 * valarith.c (_initialize_valarith): Remove.
5203
52042019-05-01 Tom Tromey <tromey@adacore.com>
5205
5206 * ada-lang.c (ada_value_primitive_field): Treat more fields as
5207 bitfields.
5208
52092019-05-01 Tom Tromey <tromey@adacore.com>
5210
5211 * ada-lang.c (ada_value_assign): Correctly compute starting offset
5212 for big-endian copies.
5213
52142019-04-30 Ali Tamur <tamur@google.com>
5215 * gdb/dwarf2read.c (read_3_bytes): New declaration.
5216 (read_attribute_value): Added DW_FORM_strx1-4 cases.
5217 (read_3_bytes): New function.
5218
52192019-04-30 Joel Brobecker <brobecker@adacore.com>
5220
5221 * windows-nat.c (main_thread_id): Delete.
5222 (handle_output_debug_string): Replace main_thread_id by
5223 current_event.dwThreadId.
5224 (fake_create_process): Likewise.
5225 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
5226 Do not set main_thread_id.
5227 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
5228 current_event.dwThreadId.
5229 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
5230
52312019-04-30 Joel Brobecker <brobecker@adacore.com>
5232
5233 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
5234 Use current_event.dwThreadId instead of main_thread_id.
5235
52362019-04-30 Tom Tromey <tromey@adacore.com>
5237
5238 * ada-lang.c (ada_lookup_simple_minsyms): New function.
5239 (create_excep_cond_exprs): Iterate over program spaces.
5240 (ada_exception_catchpoint_cond_string): Examine all minimal
5241 symbols for exception types.
5242
52432019-04-30 Tom Tromey <tromey@adacore.com>
5244
5245 PR c++/24470:
5246 * dwarf2read.c (process_structure_scope): Handle case where type
5247 has template parameters but no symbol was created.
5248
52492019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5250 Chris January <chris.january@arm.com>
5251
5252 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
5253 qualifier.
5254 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
5255
52562019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5257
5258 * f-typeprint.c (f_print_type): Update rules for printing
5259 whitespace.
5260 (f_type_print_varspec_suffix): Likewise.
5261
52622019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5263 Chris January <chris.january@arm.com>
5264
5265 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
5266 function arguments.
5267
52682019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5269
5270 * f-lang.c (build_fortran_types): Change name of void type to
5271 lower case.
5272 * f-typeprint.c (f_type_print_base): Print the name of the void
5273 type, rather than a fixed string.
5274 * f-valprint.c (f_decorations): Use lower case void string.
5275
52762019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5277 Chris January <chris.january@arm.com>
5278
5279 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
5280 types for Fortran.
5281
52822019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5283 Chris January <chris.january@arm.com>
5284 David Lecomber <david.lecomber@arm.com>
5285
5286 * f-exp.y (BINOP_INTRINSIC): New token.
5287 (exp): New parser rule handling BINOP_INTRINSIC.
5288 (f77_keywords): Add new builtin procedures.
5289 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
5290 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5291 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
5292 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5293 (print_unop_subexp_f): New function.
5294 (print_binop_subexp_f): New function.
5295 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
5296 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5297 (dump_subexp_body_f): Likewise.
5298 (operator_check_f): Likewise.
5299 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
5300 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
5301
53022019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5303
5304 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
5305 UNOP_KIND.
5306 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
5307 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
5308 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
5309 (operator_length_f): New fuction.
5310 (print_subexp_f): New function.
5311 (op_name_f): New function.
5312 (dump_subexp_body_f): New function.
5313 (operator_check_f): New function.
5314 (exp_descriptor_f): Replace standard expression handling functions
5315 with new functions.
5316 * gdb/fortran-operator.def: New file.
5317 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
5318 * gdb/std-operator.def: Remove UNOP_KIND.
5319
53202019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5321
5322 * std-operator.def: Remove unbalanced, stray double quote
5323 character.
5324
53252019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5326 Chris January <chris.january@arm.com>
5327 Daniel Everett <daniel.everett@arm.com>
5328 Nick Forrington <nick.forrington@arm.com>
5329 Richard Bunt <richard.bunt@arm.com>
5330
5331 * cp-valprint.c (cp_print_value_fields): Allow an additional level
5332 of depth when printing anonymous structs or unions.
5333 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
5334 Don't print either the top-level value, or the children if the
5335 max-depth is exceeded.
5336 (ppscm_print_children): When printing the key of a map, allow one
5337 extra level of depth.
5338 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
5339 print either the top-level value, or the children if the max-depth
5340 is exceeded.
5341 (print_children): When printing the key of a map, allow one extra
5342 level of depth.
5343 * python/py-value.c (valpy_format_string): Add max_depth keyword.
5344 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
5345 (user_print_options): Initialise max_depth field.
5346 (val_print_scalar_or_string_type_p): New function.
5347 (val_print): Check to see if the max depth has been reached.
5348 (val_print_check_max_depth): Define new function.
5349 (show_print_max_depth): New function.
5350 (_initialize_valprint): Add 'print max-depth' option.
5351 * valprint.h (struct value_print_options) <max_depth>: New field.
5352 (val_print_check_max_depth): Declare new function.
5353 * NEWS: Document new feature.
5354
53552019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5356
5357 * ada-lang.c (ada_language_defn): Initialise new field.
5358 * c-lang.c (c_is_string_type_p): New function.
5359 (c_language_defn): Initialise new field.
5360 (cplus_language_defn): Initialise new field.
5361 (asm_language_defn): Initialise new field.
5362 (minimal_language_defn): Initialise new field.
5363 * c-lang.h (c_is_string_type_p): Declare new function.
5364 * d-lang.c (d_language_defn): Initialise new field.
5365 * f-lang.c (f_is_string_type_p): New function.
5366 (f_language_defn): Initialise new field.
5367 * go-lang.c (go_is_string_type_p): New function.
5368 (go_language_defn): Initialise new field.
5369 * language.c (default_is_string_type_p): New function.
5370 (unknown_language_defn): Initialise new field.
5371 (auto_language_defn): Initialise new field.
5372 * language.h (struct language_defn) <la_is_string_type_p>: New
5373 member variable.
5374 (default_is_string_type_p): Declare new function.
5375 * m2-lang.c (m2_language_defn): Initialise new field.
5376 * objc-lang.c (objc_language_defn): Initialise new field.
5377 * opencl-lang.c (opencl_language_defn): Initialise new field.
5378 * p-lang.c (pascal_is_string_type_p): New function.
5379 (pascal_language_defn): Initialise new field.
5380 * rust-lang.c (rust_is_string_type_p): New function.
5381 (rust_language_defn): Initialise new field.
5382
53832019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5384
5385 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
5386 New field.
5387 * ada-lang.c (ada_language_defn): Initialise new field.
5388 * c-lang.c (c_language_defn): Likewise.
5389 (cplus_language_defn): Likewise.
5390 (asm_language_defn): Likewise.
5391 (minimal_language_defn): Likewise.
5392 * d-lang.c (d_language_defn): Likewise.
5393 * f-lang.c (f_language_defn): Likewise.
5394 * go-lang.c (go_language_defn): Likewise.
5395 * language.c (unknown_language_defn): Likewise.
5396 (auto_language_defn): Likewise.
5397 * m2-lang.c (m2_language_defn): Likewise.
5398 * objc-lang.c (objc_language_defn): Likewise.
5399 * opencl-lang.c (opencl_language_defn): Likewise.
5400 * p-lang.c (pascal_language_defn): Likewise.
5401 * rust-lang.c (rust_language_defn): Likewise.
5402
54032019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5404
5405 * ada-lang.c (ada_is_character_type): Change return type to bool.
5406 (ada_is_string_type): Likewise.
5407 * ada-lang.h (ada_is_character_type): Update declaration
5408 (ada_is_string_type): Likewise.
5409
54102019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5411
5412 Support style in 'frame|thread apply'
5413
5414 * gdbcmd.h (execute_command_to_string): New term_out parameter.
5415 * record.c (record_start, record_stop): Update callers of
5416 execute_command_to_string with false.
5417 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
5418 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
5419 methods.
5420 (class string_file): New constructor with term_out parameter.
5421 Override methods term_out and can_emit_style_escape. New member
5422 term_out.
5423 (class stdio_file): Override can_emit_style_escape.
5424 (class tee_file): Override term_out and can_emit_style_escape.
5425 * utils.h (can_emit_style_escape): Remove.
5426 * utils.c (can_emit_style_escape): Likewise.
5427 Update all callers of can_emit_style_escape (SOMESTREAM) to
5428 SOMESTREAM->can_emit_style_escape.
5429 * source-cache.c (source_cache::get_source_lines): Likewise.
5430 * stack.c (frame_apply_command_count): Call execute_command_to_string
5431 passing the term_out characteristic of the current gdb_stdout.
5432 * thread.c (thr_try_catch_cmd): Likewise.
5433 * top.c (execute_command_to_string): pass term_out parameter
5434 to construct the string_file for the command output.
5435 * ui-file.c (term_cli_styling): New function (most code moved
5436 from utils.c can_emit_style_escape).
5437 (string_file::string_file, string_file::can_emit_style_escape,
5438 stdio_file::can_emit_style_escape, tee_file::term_out,
5439 tee_file::can_emit_style_escape): New functions.
5440
54412019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5442
5443 * NEWS: Mention the new set|show may-call-functions.
5444 * infcall.c (may_call_functions_p): New variable.
5445 (show_may_call_functions_p): New function.
5446 (call_function_by_hand_dummy): Throws an error if not
5447 may-call-functions.
5448 (_initialize_infcall): Call add_setshow_boolean_cmd for
5449 may-call-functions.
5450
54512019-04-25 Keith Seitz <keiths@redhat.com>
5452
5453 PR c++/24367
5454 * cp-support.c (inspect_type): Don't attempt substitutions
5455 of symbol with the same name.
5456
54572019-04-25 Tom Tromey <tromey@adacore.com>
5458
5459 PR gdb/24475:
5460 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
5461 static.
5462
54632019-04-25 Tom Tromey <tromey@adacore.com>
5464
5465 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
5466 rvalue reference.
5467 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
5468 (gdb_xml_parser::parse): Use std::move.
5469 * python/python-internal.h (gdbpy_convert_exception): Take a const
5470 reference.
5471 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
5472 std::move.
5473 * python/py-utils.c (gdbpy_convert_exception): Take a const
5474 reference.
5475 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
5476 Use std::move.
5477 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
5478 Use std::move.
5479 * mi/mi-main.c (mi_print_exception): Take a const reference.
5480 * main.c (handle_command_errors): Take a const reference.
5481 * linespec.c (parse_linespec): Use std::move.
5482 * infcall.c (run_inferior_call): Use std::move.
5483 (call_function_by_hand_dummy): Use std::move.
5484 * exec.c (try_open_exec_file): Use std::move.
5485 * exceptions.h (exception_print, exception_fprintf)
5486 (exception_print_same): Update.
5487 * exceptions.c (print_exception, exception_print)
5488 (exception_fprintf, exception_print_same): Change parameters to
5489 const reference.
5490 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
5491 * common/new-op.c: Use std::move.
5492 * common/common-exceptions.h (struct gdb_exception): Add move
5493 constructor.
5494 (struct gdb_exception_error, struct gdb_exception_quit, struct
5495 gdb_quit_bad_alloc): Change constructor to move constructor.
5496 (throw_exception): Change parameter to rvalue reference.
5497 * common/common-exceptions.c (throw_exception): Take rvalue
5498 reference.
5499 * cli/cli-interp.c (safe_execute_command): Use std::move.
5500 * breakpoint.c (insert_bp_location, location_to_sals): Use
5501 std::move.
5502
55032019-04-25 Tom Tromey <tromey@adacore.com>
5504
5505 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
5506 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
5507 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
5508 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
5509 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
5510 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
5511 guile/scm-value.c: Use unpack.
5512 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
5513 gdbscm_gdb_exception.
5514 (gdbscm_throw_gdb_exception): Likewise.
5515 (struct gdbscm_gdb_exception): New.
5516 (unpack): New function.
5517 (gdbscm_wrap): Use unpack.
5518
55192019-04-25 Tom Tromey <tromey@adacore.com>
5520
5521 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
5522 (gdb_rl_callback_handler): Use std::move.
5523 * common/common-exceptions.h (struct gdb_exception): Add move
5524 assignment operator.
5525 (throw_exception_sjlj): Change "exception" to const reference.
5526 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
5527 (throw_exception_sjlj): Change "exception" to const reference.
5528
55292019-04-25 Tom Tromey <tromey@adacore.com>
5530
5531 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
5532 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
5533 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
5534 Update.
5535 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
5536 Update.
5537 * mi/mi-interp.c (mi_interp::exec): Update.
5538 * linespec.c (parse_linespec): Update.
5539 * infcall.c (run_inferior_call): Update.
5540 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
5541 * guile/scm-symbol.c (gdbscm_lookup_symbol)
5542 (gdbscm_lookup_global_symbol): Update.
5543 * guile/scm-param.c (gdbscm_parameter_value): Update.
5544 * guile/scm-frame.c (gdbscm_frame_read_register)
5545 (gdbscm_frame_read_var): Update.
5546 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
5547 * exec.c (try_open_exec_file): Update.
5548 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
5549 (gdb_rl_callback_handler): Update.
5550 * common/common-exceptions.h (exception_none): Don't declare.
5551 * common/common-exceptions.c (exception_none): Don't define.
5552 (struct catcher) <exception>: Update.
5553 * cli/cli-interp.c (safe_execute_command): Update.
5554 * breakpoint.c (insert_bp_location, location_to_sals): Update.
5555
55562019-04-25 Ali Tamur <tamur@google.com>
5557
5558 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
5559 (read_attribute_value): Likewise.
5560 (dwarf2_read_addr_index): Update comment.
5561 (read_str_index): Add DW_FORM_strx.
5562 (dwarf2_string_attr): Likewise.
5563 (dwarf2_const_value_attr): Likewise.
5564 (dump_die_shallow): Likewise.
5565 (dwarf2_fetch_constant_bytes): Likewise.
5566 (skip_form_bytes): Likewise.
5567 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
5568
55692019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
5570
5571 PR corefiles/11608
5572 PR corefiles/18187
5573 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
5574 OFFSET. Verify if current mapping contains an ELF header.
5575 (linux_find_memory_regions_full): Adjust call to
5576 dump_mapping_p.
5577
55782019-04-25 Sandra Loosemore <sandra@codesourcery.com>
5579 Kang Li <kanglictf@gmail.com>
5580
5581 PR gdb/21600
5582
5583 * dwarf2-frame.c (read_initial_length): Be consistent about using
5584 unsigned representation of length.
5585 (decode_frame_entry_1): Likewise. Check for wraparound of
5586 end pointer as well as buffer overflow.
5587
55882019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
5589
5590 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
5591 "vq".
5592
55932019-04-24 Tom Tromey <tromey@adacore.com>
5594
5595 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
5596
55972019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5598
5599 * s12z-tdep.c (s12z_unwind_pc): Delete.
5600 (s12z_unwind_sp): Delete.
5601 (s12z_gdbarch_init): Don't register deleted functions with
5602 gdbarch.
5603
56042019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5605
5606 * rl78-tdep.c (rl78_unwind_sp): Delete.
5607 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
5608
56092019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5610
5611 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
5612 (xstormy16_unwind_pc): Delete.
5613 (xstormy16_dummy_id): Delete.
5614 (xstormy16_gdbarch_init): Don't register deleted functions with
5615 gdbarch.
5616
56172019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5618
5619 * vax-tdep.c (vax_unwind_pc): Delete.
5620 (vax_gdbarch_init): Don't register deleted function with gdbarch.
5621
56222019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5623
5624 * v850-tdep.c (v850_unwind_sp): Delete.
5625 (v850_unwind_pc): Delete.
5626 (v850_dummy_id): Delete.
5627 (v850_gdbarch_init): Don't register deleted functions with
5628 gdbarch.
5629
56302019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5631
5632 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
5633 (tilegx_unwind_pc): Delete.
5634 (tilegx_unwind_dummy_id): Delete.
5635 (tilegx_gdbarch_init): Don't register deleted functions with
5636 gdbarch.
5637
56382019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5639
5640 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
5641 (tic6x_dummy_id): Delete.
5642 (tic6x_gdbarch_init): Don't register deleted functions with
5643 gdbarch.
5644
56452019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5646
5647 * sparc-tdep.c (sparc_unwind_pc): Delete.
5648 (sparc32_gdbarch_init): Don't register deleted function with
5649 gdbarch.
5650
56512019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5652
5653 * sh-tdep.c (sh_unwind_sp): Delete.
5654 (sh_unwind_pc): Delete.
5655 (sh_dummy_id): Delete.
5656 (sh_gdbarch_init): Don't register deleted functions with
5657 gdbarch.
5658
56592019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5660
5661 * score-tdep.c (score_unwind_sp): Delete.
5662 (score_unwind_pc): Delete.
5663 (score_dummy_id): Delete.
5664 (score_gdbarch_init): Don't register deleted functions with
5665 gdbarch.
5666
56672019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5668
5669 * rx-tdep.c (rx_unwind_pc): Delete.
5670 (rx_unwind_sp): Delete.
5671 (rx_dummy_id): Delete.
5672 (rx_gdbarch_init): Don't register deleted functions with
5673 gdbarch. Update comment.
5674
56752019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5676
5677 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
5678 (rs6000_dummy_id): Delete.
5679 (rs6000_gdbarch_init): Don't register deleted functions with
5680 gdbarch.
5681
56822019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5683
5684 * or1k-tdep.c (or1k_dummy_id): Delete.
5685 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
5686
56872019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5688
5689 * nios2-tdep.c (nios2_dummy_id): Delete.
5690 (nios2_unwind_sp): Delete.
5691 (nios2_gdbarch_init): Don't register deleted functions with
5692 gdbarch.
5693
56942019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5695
5696 * nds32-tdep.c (nds32_dummy_id): Delete.
5697 (nds32_unwind_pc): Delete.
5698 (nds32_unwind_sp): Delete.
5699 (nds32_gdbarch_init): Don't register deleted functions with
5700 gdbarch.
5701
57022019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5703
5704 * msp430-tdep.c (msp430_unwind_pc): Delete.
5705 (msp430_unwind_sp): Delete.
5706 (msp430_dummy_id): Delete.
5707 (msp430_gdbarch_init): Don't register deleted functions with
5708 gdbarch.
5709
57102019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5711
5712 * moxie-tdep.c (moxie_unwind_sp): Delete.
5713 (moxie_unwind_pc): Delete.
5714 (moxie_dummy_id): Delete.
5715 (moxie_gdbarch_init): Don't register deleted functions with
5716 gdbarch.
5717
57182019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5719
5720 * mn10300-tdep.c (mn10300_dummy_id): Delete.
5721 (mn10300_unwind_pc): Delete.
5722 (mn10300_unwind_sp): Delete.
5723 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
5724 mn10300_unwind_sp.
5725 (mn10300_frame_unwind_init): Don't register deleted functions with
5726 gdbarch.
5727
57282019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5729
5730 * mep-tdep.c (mep_unwind_pc): Delete.
5731 (mep_unwind_sp): Delete.
5732 (mep_dummy_id): Delete.
5733 (mep_gdbarch_init): Don't register deleted functions with
5734 gdbarch.
5735
57362019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5737
5738 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
5739 (m68hc11_unwind_sp): Delete.
5740 (m68hc11_gdbarch_init): Don't register deleted functions with
5741 gdbarch.
5742
57432019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5744
5745 * m32r-tdep.c (m32r_unwind_sp): Delete.
5746 (m32r_unwind_pc): Delete.
5747 (m32r_dummy_id): Delete.
5748 (m32r_gdbarch_init): Don't register deleted functions with
5749 gdbarch.
5750
57512019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5752
5753 * m32c-tdep.c (m32c_unwind_pc): Delete.
5754 (m32c_unwind_sp): Delete.
5755 (m32c_dummy_id): Delete.
5756 (m32c_gdbarch_init): Don't register deleted functions with
5757 gdbarch.
5758
57592019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5760
5761 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
5762 (lm32_unwind_pc): Delete.
5763 (lm32_dummy_id): Delete.
5764 (lm32_gdbarch_init): Don't register deleted functions with
5765 gdbarch.
5766
57672019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5768
5769 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
5770 (iq2000_unwind_pc): Delete.
5771 (iq2000_dummy_id): Delete.
5772 (iq2000_gdbarch_init): Don't register deleted functions with
5773 gdbarch.
5774
57752019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5776
5777 * nds32-tdep.c (nds32_type_align): Delete.
5778 (nds32_push_dummy_call): Use type_align instead.
5779
57802019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5781
5782 * arm-tdep.c (arm_type_align): Only handle vector override case.
5783 (arm_push_dummy_call): Use type_align.
5784 (arm_gdbarch_init): Register arm_type_align gdbarch function.
5785
57862019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5787
5788 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
5789 case.
5790 (pass_on_stack): Use type_align.
5791 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
5792 function.
5793
57942019-04-23 Tom Tromey <tromey@adacore.com>
5795
5796 * dwarf2read.c (line_header::file_name_at): Remove unused
5797 overload.
5798
57992019-04-23 Tom de Vries <tdevries@suse.de>
5800
5801 PR gdb/24438
5802 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
5803 invocation.
5804
5805
58062019-03-27 Ali Tamur <tamur@google.com>
5807
5808 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
5809 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
5810 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
5811 (dwarf_expr_context::get_addr_index): Likewise
5812 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
5813 (symbol_needs_eval_context::get_addr_index): Likewise
5814 (disassemble_dwarf_expression): Add DW_OP_addrx
5815 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
5816 (read_cutu_die_from_dwo): Update comment
5817 (skip_one_die): Add DW_FORM_addrx
5818 (read_attribute_value): Likewise
5819 (var_decode_location): Add DW_OP_addrx
5820 (dwarf2_const_value_attr): Add DW_FORM_addrx
5821 (dump_die_shallow): Likewise
5822 (dwarf2_fetch_constant_bytes): Likewise
5823 (decode_locdesc): Add DW_OP_addrx
5824 (skip_form_bytes): Add DW_FORM_addrx
5825
58262019-04-22 Ali Tamur <tamur@google.com>
5827
5828 * MAINTAINERS (Write After Approval): Add self.
5829
58302019-04-22 Simon Marchi <simon.marchi@efficios.com>
5831
5832 * solib-svr4.c (get_svr4_info): Add pspace parameter.
5833 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
5834 (open_symbol_file_object): Likewise.
5835 (svr4_default_sos): Add info parameter.
5836 (svr4_read_so_list): Likewise.
5837 (svr4_current_sos_direct): Adjust functions calls to pass down
5838 info.
5839 (svr4_current_sos_1): Add info parameter.
5840 (svr4_current_sos): Call get_svr4_info, pass info down to
5841 svr4_current_sos_1.
5842 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
5843 get_svr4_info.
5844 (svr4_in_dynsym_resolve_code): Pass current_program_space to
5845 get_svr4_info.
5846 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
5847 to get_svr4_info.
5848 (probes_table_remove_objfile_probes): Likewise.
5849 (register_solib_event_probe): Add info parameter.
5850 (solist_update_incremental): Pass info parameter down to
5851 svr4_read_so_list.
5852 (disable_probes_interface): Add info parameter.
5853 (svr4_handle_solib_event): Pass current_program_space to
5854 get_svr4_info. Adjust disable_probes_interface cleanup.
5855 (svr4_create_probe_breakpoints): Add info parameter, pass it
5856 down to register_solib_event_probe.
5857 (svr4_create_solib_event_breakpoints): Add info parameter,
5858 pass it down to svr4_create_probe_breakpoints.
5859 (enable_break): Pass info down to
5860 svr4_create_solib_event_breakpoints.
5861 (svr4_solib_create_inferior_hook): Pass current_program_space to
5862 get_svr4_info.
5863 (svr4_clear_solib): Likewise.
5864
58652019-04-22 Pedro Alves <palves@redhat.com>
5866
5867 * solib-svr4.c (svr4_free_objfile_observer): New.
5868 (probe_and_action::objfile): New field.
5869 (probes_table_htab_remove_objfile_probes)
5870 (probes_table_remove_objfile_probes): New functions.
5871 (register_solib_event_probe): Add 'objfile' parameter. Store it
5872 in the new probe_and_action. Don't store the probe in 'lookup'.
5873 (svr4_create_probe_breakpoints): Pass objfile to
5874 register_solib_event_probe.
5875 (_initialize_svr4_solib): Register a free_objfile observer.
5876
58772019-04-19 Tom Tromey <tom@tromey.com>
5878
5879 * common/queue.h: Remove.
5880
58812019-04-19 Tom Tromey <tom@tromey.com>
5882
5883 * event-loop.c: Don't include "common/queue.h".
5884
58852019-04-19 Tom Tromey <tom@tromey.com>
5886
5887 * remote.c (remote_target): Use delete.
5888 * remote-notif.h: Include <list>, not "common/queue.h".
5889 (notif_client_p): Remove typedef.
5890 (remote_notif_state): Add constructor, destructor, initializer.
5891 <notif_queue>: Now a std::list.
5892 (remote_notif_state_xfree): Don't declare.
5893 * remote-notif.c (remote_notif_process, handle_notification)
5894 (remote_notif_state_allocate): Update.
5895 (~remote_notif_state): Rename from remote_notif_state_xfree.
5896
58972019-04-19 Tom Tromey <tom@tromey.com>
5898
5899 * symfile.c (reread_symbols): Update.
5900 * objfiles.c (objfile_register_static_link)
5901 (objfile_lookup_static_link): Update
5902 (~objfile) Don't delete static_links.
5903 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
5904
59052019-04-19 Tom Tromey <tom@tromey.com>
5906
5907 * type-stack.h (struct type_stack) <insert>: Constify string.
5908 * type-stack.c (type_stack::insert): Constify string.
5909 * gdbtypes.h (lookup_template_type): Update.
5910 (address_space_name_to_int): Update.
5911 * gdbtypes.c (address_space_name_to_int): Make space_identifier
5912 const.
5913 (lookup_template_type): Make name const.
5914 * c-exp.y: Update rules.
5915 (lex_one_token, classify_name, classify_inner_name)
5916 (c_print_token): Update.
5917 * p-exp.y: Update rules.
5918 (yylex): Update.
5919 * f-exp.y: Update rules.
5920 (yylex): Update.
5921 * d-exp.y: Update rules.
5922 (lex_one_token, classify_name, classify_inner_name): Update.
5923 * parse.c (write_dollar_variable, copy_name): Return std::string.
5924 * parser-defs.h (copy_name): Change return type.
5925 * m2-exp.y: Update rules.
5926 (yylex): Update.
5927 * go-exp.y (lex_one_token): Update.
5928 Update rules.
5929 (classify_unsafe_function, classify_packaged_name)
5930 (classify_name, yylex): Update.
5931
59322019-04-19 Sergei Trofimovich <siarheit@google.com>
5933
5934 * configure.ac: add --enable-source-highlight switch.
5935 * configure: Regenerate.
5936 * top.c (print_gdb_version): plumb --enable-source-highlight
5937 status to "show configuration".
5938
59392019-04-19 Tom Tromey <tromey@adacore.com>
5940
5941 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
5942 Check ADA_TYPE_P.
5943 (empty_record, ada_template_to_fixed_record_type_1)
5944 (template_to_static_fixed_type)
5945 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
5946 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
5947 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
5948 macros.
5949
59502019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
5951
5952 PR symtab/24423:
5953 * source.c (print_source_lines_base): Advance "iter" when a
5954 control character is seen.
5955
59562019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5957
5958 * inferior.h (struct infcall_suspend_state_deleter):
5959 Catch exception in destructor to avoid crash.
5960
59612019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5962
5963 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
5964 close to the add_com "shell".
5965
59662019-04-18 Tom Tromey <tromey@adacore.com>
5967
5968 * process-stratum-target.h (class process_stratum_target)
5969 <stratum>: Add "final".
5970
59712019-04-17 Tom Tromey <tromey@adacore.com>
5972
5973 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
5974 against nullptr before use.
5975
59762019-04-17 Alan Hayward <alan.hayward@arm.com>
5977
5978 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
5979
59802019-04-17 Jim Wilson <jimw@sifive.com>
5981 Andrew Burgess <andrew.burgess@embecosm.com>
5982
5983 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
5984 code read might fail, assume 4-byte breakpoint in that case.
5985
59862019-04-15 Leszek Swirski <leszeks@google.com>
5987
5988 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
5989 rather than a hand-rolled POD check when checking for forced MEMORY
5990 classification.
5991
59922019-04-15 Alan Hayward <alan.hayward@arm.com>
5993
5994 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
5995 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
5996 function.
5997 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
5998 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
5999 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
6000 declaration.
6001
60022019-04-15 Alan Hayward <alan.hayward@arm.com>
6003
6004 * aarch64-linux-nat.c
6005 (aarch64_linux_nat_target::thread_architecture): Add override.
6006 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
6007 each VQ.
6008
60092019-04-15 Alan Hayward <alan.hayward@arm.com>
6010
6011 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
6012
60132019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
6014
6015 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
6016 target types of size 96-bits, add some additional comments, and
6017 check that the builtin type we found was the correct size.
6018
60192019-04-12 Eli Zaretskii <eliz@gnu.org>
6020
6021 * utils.c (prompt_for_continue): Don't restore the styling at the
6022 end, as applied_style has the wrong value. This fixes styling in
6023 long lists of file names that are interrupted by the "Continue?"
6024 prompt.
6025
60262019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
6027
6028 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
6029 * c-lang.c (c_language_defn): Likewise.
6030 (cplus_language_defn): Likewise.
6031 (asm_language_defn): Likewise.
6032 (minimal_language_defn): Likewise.
6033 * d-lang.c (d_language_defn): Likewise.
6034 * f-lang.c (f_language_defn): Likewise.
6035 * go-lang.c (go_language_defn): Likewise.
6036 * language.c (unknown_language_defn): Likewise.
6037 (auto_language_defn): Likewise.
6038 * language.h (struct language_defn): Remove la_magic field.
6039 (LANG_MAGIC): Delete.
6040 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
6041 * objc-lang.c (objc_language_defn): Likewise.
6042 * opencl-lang.c (opencl_language_defn): Likewise.
6043 * p-lang.c (pascal_language_defn): Likewise.
6044 * rust-lang.c (rust_language_defn): Likewise.
6045
60462019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
6047
6048 * riscv-tdep.c (riscv_type_align): New function.
6049 (riscv_type_alignment): Delete.
6050 (riscv_arg_location): Use 'type_align'.
6051 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
6052
60532019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
6054
6055 * gdbtypes.c (type_align): A struct with no non-static fields also
6056 has alignment of 1.
6057
60582019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
6059
6060 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
6061 component to 0.
6062 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
6063 member.
6064 (riscv_struct_info::analyse): New implementation using new
6065 analyse_inner member function.
6066 (riscv_struct_info::field_offset): New member function.
6067 (riscv_struct_info::m_offsets): New member variable.
6068 (riscv_struct_info::analyse_inner): New private member function,
6069 takes the old implementation of riscv_struct_info::analyse but
6070 extended to track field offsets.
6071 (riscv_call_arg_struct): Update the struct folding special cases
6072 to handle cases where empty C++ structs, which are non-zero
6073 length, are found.
6074 (riscv_arg_location): Initialise the length of each location, a
6075 non-zero length now indicates the location is in use.
6076 (riscv_push_dummy_call): Allow for the first location having a
6077 non-zero offset when setting up arguments.
6078 (riscv_return_value): Likewise, but for return values.
6079
60802019-04-11 Tom Tromey <tromey@adacore.com>
6081
6082 * utils.c (internal_vproblem): Make "msg" const.
6083
60842019-04-11 Alan Hayward <alan.hayward@arm.com>
6085
6086 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
6087 * trad-frame.c (trad_frame_reset_saved_regs): New function.
6088 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
6089 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
6090
60912019-04-10 Kevin Buettner <kevinb@redhat.com>
6092
6093 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
6094 function.
6095 (fill_gregset): Call amd64_linux_collect_native_gregset instead
6096 of amd64_collect_native_gregset.
6097 (amd64_linux_nat_target::store_registers): Likewise.
6098
60992019-04-10 Tom Tromey <tom@tromey.com>
6100
6101 * symtab.c (lookup_global_symbol_from_objfile)
6102 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
6103 * objfiles.h (class separate_debug_iterator): New.
6104 (class separate_debug_range): New.
6105 (struct objfile) <separate_debug_objfiles>: New method.
6106 (objfile_separate_debug_iterate): Don't declare.
6107 * objfiles.c (separate_debug_iterator::operator++): Rename from
6108 objfile_separate_debug_iterate.
6109 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
6110 iterator.
6111 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
6112 iterator.
6113
61142019-04-10 Tom Tromey <tom@tromey.com>
6115
6116 * symfile.c (reread_symbols): Remove old comment.
6117 * objfiles.c (free_all_objfiles): Fix a typo.
6118
61192019-04-10 Tom Tromey <tom@tromey.com>
6120
6121 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
6122 * minsyms.c (lookup_minimal_symbol): Use foreach.
6123 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6124 (lookup_minimal_symbol_solib_trampoline): Likewise.
6125 * symfile.c (reread_symbols): Use foreach.
6126
61272019-04-09 Ivan Begert <ivanbegert@gmail.com>
6128 Tom Tromey <tromey@adacore.com>
6129
6130 PR rust/24414:
6131 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
6132 (rust_lex_int_test): Change "value" to be LONGEST.
6133 (rust_lex_tests): Add test for long integer literal.
6134
61352019-04-09 Tom Tromey <tromey@adacore.com>
6136
6137 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
6138 to bool.
6139 (extended_remote_target::attach): Update.
6140 (remote_target::remote_notice_new_inferior): Update.
6141 (remote_target::add_current_inferior_and_thread): Update.
6142 * inferior.c (exit_inferior_1): Use "false".
6143 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
6144
61452019-04-09 Simon Marchi <simon.marchi@efficios.com>
6146
6147 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
6148 the "start" command.
6149
61502019-04-08 Kevin Buettner <kevinb@redhat.com>
6151
6152 * python/py-inferior.c (infpy_thread_from_thread_handle):
6153 Adjust comments to reflect renaming of thread_from_thread_handle
6154 to thread_from_handle. Adjust keywords. Fix type error message.
6155 (inferior_object_methods): Add thread_from_handle. Retain
6156 thread_from_thread_handle, but mark it as deprecated.
6157
61582019-04-08 Kevin Buettner <kevinb@redhat.com>
6159
6160 * gdbthread.h (find_thread_by_handle): Revise declaration.
6161 * thread.c (find_thread_by_handle): Likewise. Adjust
6162 implementation too.
6163 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
6164 support for buffer objects as handles.
6165
61662019-04-08 Kevin Buettner <kevinb@redhat.com>
6167
6168 * python/py-infthread.c (thpy_thread_handle): New function.
6169 (thread_object_methods): Register thpy_thread_handle.
6170
61712019-04-08 Kevin Buettner <kevinb@redhat.com>
6172
6173 * gdbthread.h (thread_to_thread_handle): Declare.
6174 * thread.c (gdbtypes.h): Include.
6175 (thread_to_thread_handle): New function.
6176
6177 * target.h (struct target_ops): Add thread_info_to_thread_handle.
6178 (target_thread_info_to_thread_handle): Declare.
6179 * target.c (target_thread_info_to_thread_handle): New function.
6180 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
6181 * target-delegates.c: Regenerate.
6182
6183 * linux-thread-db.c (class thread_db_target): Add method
6184 thread_info_to_thread_handle.
6185 (thread_db_target::thread_info_to_thread_handle): Define.
6186 * remote.c (class remote_target): Add new method
6187 thread_info_to_thread_handle.
6188 (remote_target::thread_info_to_thread_handle): Define.
6189
61902019-04-08 Pedro Alves <palves@redhat.com>
6191
6192 * common/common-exceptions.c (throw_exception): Don't create
6193 named object to throw; throw directly.
6194 (throw_it): Likewise. Don't initialize gdb_exception::message
6195 here, with new; pass FMT and AP to the ctor instead.
6196 * common/common-exceptions.h: Include <string>.
6197 (gdb_exception::gdb_exception(enum return_reason, enum errors,
6198 const char *, va_list)): New ctor. Use std::make_shared.
6199 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
6200 errors)): Delete.
6201 (gdb_exception_error::gdb_exception_error(enum errors, const char
6202 *, va_list)): New.
6203 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
6204 Add assertion.
6205 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
6206 errors)): Delete.
6207 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
6208 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
6209 Add assertion.
6210
62112019-04-08 Tom Tromey <tom@tromey.com>
6212
6213 * valops.c (value_rtti_indirect_type): Replace throw_exception
6214 with throw.
6215 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
6216 with throw.
6217 * thread.c (thr_try_catch_cmd): Replace throw_exception with
6218 throw.
6219 * target.c (target_translate_tls_address): Replace throw_exception
6220 with throw.
6221 * stack.c (frame_apply_command_count): Replace throw_exception
6222 with throw.
6223 * solib-spu.c (append_ocl_sos): Replace throw_exception with
6224 throw.
6225 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
6226 with throw.
6227 * rs6000-tdep.c (rs6000_frame_cache)
6228 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
6229 * remote.c: Replace throw_exception with throw.
6230 * record-full.c (record_full_message, record_full_wait_1)
6231 (record_full_restore): Replace throw_exception with throw.
6232 * record-btrace.c:
6233 (get_thread_current_frame_id, record_btrace_start_replaying)
6234 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
6235 (cmd_record_btrace_start): Replace throw_exception with throw.
6236 * parse.c (parse_exp_in_context_1): Replace throw_exception with
6237 throw.
6238 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
6239 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
6240 * linespec.c:
6241 (find_linespec_symbols): Replace throw_exception with throw.
6242 * infrun.c (displaced_step_prepare, resume): Replace
6243 throw_exception with throw.
6244 * infcmd.c (post_create_inferior): Replace throw_exception with
6245 throw.
6246 * inf-loop.c (inferior_event_handler): Replace throw_exception
6247 with throw.
6248 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
6249 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
6250 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
6251 (get_prev_frame_always, get_frame_pc_if_available)
6252 (get_frame_address_in_block_if_available, get_frame_language):
6253 Replace throw_exception with throw.
6254 * frame-unwind.c (frame_unwind_try_unwinder): Replace
6255 throw_exception with throw.
6256 * eval.c (fetch_subexp_value, evaluate_var_value)
6257 (evaluate_funcall, evaluate_subexp_standard): Replace
6258 throw_exception with throw.
6259 * dwarf2loc.c (call_site_find_chain)
6260 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
6261 Replace throw_exception with throw.
6262 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
6263 with throw.
6264 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
6265 throw.
6266 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
6267 * completer.c (complete_line_internal): Replace throw_exception
6268 with throw.
6269 * compile/compile-object-run.c (compile_object_run): Replace
6270 throw_exception with throw.
6271 * cli/cli-script.c (process_next_line): Replace throw_exception
6272 with throw.
6273 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
6274 (btrace_enable, btrace_maint_update_pt_packets): Replace
6275 throw_exception with throw.
6276 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
6277 throw_exception with throw.
6278 * break-catch-throw.c (re_set_exception_catchpoint): Replace
6279 throw_exception with throw.
6280 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
6281 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
6282 * aarch64-tdep.c (aarch64_make_prologue_cache)
6283 (aarch64_make_stub_cache): Replace throw_exception with throw.
6284
62852019-04-08 Tom Tromey <tom@tromey.com>
6286
6287 * common/common-exceptions.c (throw_exception): Rename from
6288 throw_exception_cxx. Remove old copy. Make argument const.
6289 (throw_it): Create and throw exception objects directly.
6290 * common/common-exceptions.h (throw_exception): Make argument
6291 const.
6292 (struct gdb_exception_error): Add constructor.
6293 (struct gdb_exception_quit): Add constructor.
6294
62952019-04-08 Tom Tromey <tom@tromey.com>
6296
6297 * common/common-exceptions.h (exception_rethrow): Don't declare.
6298 (TRY_SJLJ): Update comment.
6299 (TRY, CATCH, END_CATCH): Remove.
6300 * common/common-exceptions.c (exception_rethrow): Remove.
6301
63022019-04-08 Tom Tromey <tom@tromey.com>
6303
6304 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
6305 Remove.
6306 (gdb_exception_error): Rename from
6307 gdb_exception_RETURN_MASK_ERROR.
6308 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
6309 (gdb_quit_bad_alloc): Update.
6310 * aarch64-tdep.c: Update.
6311 * ada-lang.c: Update.
6312 * ada-typeprint.c: Update.
6313 * ada-valprint.c: Update.
6314 * amd64-tdep.c: Update.
6315 * arch-utils.c: Update.
6316 * break-catch-throw.c: Update.
6317 * breakpoint.c: Update.
6318 * btrace.c: Update.
6319 * c-varobj.c: Update.
6320 * cli/cli-cmds.c: Update.
6321 * cli/cli-interp.c: Update.
6322 * cli/cli-script.c: Update.
6323 * common/common-exceptions.c: Update.
6324 * common/new-op.c: Update.
6325 * common/selftest.c: Update.
6326 * compile/compile-c-symbols.c: Update.
6327 * compile/compile-cplus-symbols.c: Update.
6328 * compile/compile-object-load.c: Update.
6329 * compile/compile-object-run.c: Update.
6330 * completer.c: Update.
6331 * corelow.c: Update.
6332 * cp-abi.c: Update.
6333 * cp-support.c: Update.
6334 * cp-valprint.c: Update.
6335 * darwin-nat.c: Update.
6336 * disasm-selftests.c: Update.
6337 * dtrace-probe.c: Update.
6338 * dwarf-index-cache.c: Update.
6339 * dwarf-index-write.c: Update.
6340 * dwarf2-frame-tailcall.c: Update.
6341 * dwarf2-frame.c: Update.
6342 * dwarf2loc.c: Update.
6343 * dwarf2read.c: Update.
6344 * eval.c: Update.
6345 * event-loop.c: Update.
6346 * event-top.c: Update.
6347 * exec.c: Update.
6348 * f-valprint.c: Update.
6349 * fbsd-tdep.c: Update.
6350 * frame-unwind.c: Update.
6351 * frame.c: Update.
6352 * gdbtypes.c: Update.
6353 * gnu-v3-abi.c: Update.
6354 * guile/guile-internal.h: Update.
6355 * guile/scm-block.c: Update.
6356 * guile/scm-breakpoint.c: Update.
6357 * guile/scm-cmd.c: Update.
6358 * guile/scm-disasm.c: Update.
6359 * guile/scm-frame.c: Update.
6360 * guile/scm-lazy-string.c: Update.
6361 * guile/scm-math.c: Update.
6362 * guile/scm-param.c: Update.
6363 * guile/scm-ports.c: Update.
6364 * guile/scm-pretty-print.c: Update.
6365 * guile/scm-symbol.c: Update.
6366 * guile/scm-symtab.c: Update.
6367 * guile/scm-type.c: Update.
6368 * guile/scm-value.c: Update.
6369 * i386-linux-tdep.c: Update.
6370 * i386-tdep.c: Update.
6371 * inf-loop.c: Update.
6372 * infcall.c: Update.
6373 * infcmd.c: Update.
6374 * infrun.c: Update.
6375 * jit.c: Update.
6376 * language.c: Update.
6377 * linespec.c: Update.
6378 * linux-fork.c: Update.
6379 * linux-nat.c: Update.
6380 * linux-tdep.c: Update.
6381 * linux-thread-db.c: Update.
6382 * main.c: Update.
6383 * mi/mi-cmd-break.c: Update.
6384 * mi/mi-cmd-stack.c: Update.
6385 * mi/mi-interp.c: Update.
6386 * mi/mi-main.c: Update.
6387 * objc-lang.c: Update.
6388 * p-valprint.c: Update.
6389 * parse.c: Update.
6390 * ppc-linux-tdep.c: Update.
6391 * printcmd.c: Update.
6392 * python/py-arch.c: Update.
6393 * python/py-breakpoint.c: Update.
6394 * python/py-cmd.c: Update.
6395 * python/py-finishbreakpoint.c: Update.
6396 * python/py-frame.c: Update.
6397 * python/py-framefilter.c: Update.
6398 * python/py-gdb-readline.c: Update.
6399 * python/py-inferior.c: Update.
6400 * python/py-infthread.c: Update.
6401 * python/py-lazy-string.c: Update.
6402 * python/py-linetable.c: Update.
6403 * python/py-objfile.c: Update.
6404 * python/py-param.c: Update.
6405 * python/py-prettyprint.c: Update.
6406 * python/py-progspace.c: Update.
6407 * python/py-record-btrace.c: Update.
6408 * python/py-record.c: Update.
6409 * python/py-symbol.c: Update.
6410 * python/py-type.c: Update.
6411 * python/py-unwind.c: Update.
6412 * python/py-utils.c: Update.
6413 * python/py-value.c: Update.
6414 * python/python.c: Update.
6415 * record-btrace.c: Update.
6416 * record-full.c: Update.
6417 * remote-fileio.c: Update.
6418 * remote.c: Update.
6419 * riscv-tdep.c: Update.
6420 * rs6000-aix-tdep.c: Update.
6421 * rs6000-tdep.c: Update.
6422 * rust-exp.y: Update.
6423 * rust-lang.c: Update.
6424 * s390-tdep.c: Update.
6425 * selftest-arch.c: Update.
6426 * solib-dsbt.c: Update.
6427 * solib-frv.c: Update.
6428 * solib-spu.c: Update.
6429 * solib-svr4.c: Update.
6430 * solib.c: Update.
6431 * sparc64-linux-tdep.c: Update.
6432 * stack.c: Update.
6433 * symfile-mem.c: Update.
6434 * symmisc.c: Update.
6435 * target.c: Update.
6436 * thread.c: Update.
6437 * top.c: Update.
6438 * tracefile-tfile.c: Update.
6439 * tui/tui.c: Update.
6440 * typeprint.c: Update.
6441 * unittests/cli-utils-selftests.c: Update.
6442 * unittests/parse-connection-spec-selftests.c: Update.
6443 * valops.c: Update.
6444 * valprint.c: Update.
6445 * value.c: Update.
6446 * varobj.c: Update.
6447 * windows-nat.c: Update.
6448 * x86-linux-nat.c: Update.
6449 * xml-support.c: Update.
6450
64512019-04-08 Tom Tromey <tom@tromey.com>
6452
6453 * xml-support.c: Use C++ exception handling.
6454 * x86-linux-nat.c: Use C++ exception handling.
6455 * windows-nat.c: Use C++ exception handling.
6456 * varobj.c: Use C++ exception handling.
6457 * value.c: Use C++ exception handling.
6458 * valprint.c: Use C++ exception handling.
6459 * valops.c: Use C++ exception handling.
6460 * unittests/parse-connection-spec-selftests.c: Use C++ exception
6461 handling.
6462 * unittests/cli-utils-selftests.c: Use C++ exception handling.
6463 * typeprint.c: Use C++ exception handling.
6464 * tui/tui.c: Use C++ exception handling.
6465 * tracefile-tfile.c: Use C++ exception handling.
6466 * top.c: Use C++ exception handling.
6467 * thread.c: Use C++ exception handling.
6468 * target.c: Use C++ exception handling.
6469 * symmisc.c: Use C++ exception handling.
6470 * symfile-mem.c: Use C++ exception handling.
6471 * stack.c: Use C++ exception handling.
6472 * sparc64-linux-tdep.c: Use C++ exception handling.
6473 * solib.c: Use C++ exception handling.
6474 * solib-svr4.c: Use C++ exception handling.
6475 * solib-spu.c: Use C++ exception handling.
6476 * solib-frv.c: Use C++ exception handling.
6477 * solib-dsbt.c: Use C++ exception handling.
6478 * selftest-arch.c: Use C++ exception handling.
6479 * s390-tdep.c: Use C++ exception handling.
6480 * rust-lang.c: Use C++ exception handling.
6481 * rust-exp.y: Use C++ exception handling.
6482 * rs6000-tdep.c: Use C++ exception handling.
6483 * rs6000-aix-tdep.c: Use C++ exception handling.
6484 * riscv-tdep.c: Use C++ exception handling.
6485 * remote.c: Use C++ exception handling.
6486 * remote-fileio.c: Use C++ exception handling.
6487 * record-full.c: Use C++ exception handling.
6488 * record-btrace.c: Use C++ exception handling.
6489 * python/python.c: Use C++ exception handling.
6490 * python/py-value.c: Use C++ exception handling.
6491 * python/py-utils.c: Use C++ exception handling.
6492 * python/py-unwind.c: Use C++ exception handling.
6493 * python/py-type.c: Use C++ exception handling.
6494 * python/py-symbol.c: Use C++ exception handling.
6495 * python/py-record.c: Use C++ exception handling.
6496 * python/py-record-btrace.c: Use C++ exception handling.
6497 * python/py-progspace.c: Use C++ exception handling.
6498 * python/py-prettyprint.c: Use C++ exception handling.
6499 * python/py-param.c: Use C++ exception handling.
6500 * python/py-objfile.c: Use C++ exception handling.
6501 * python/py-linetable.c: Use C++ exception handling.
6502 * python/py-lazy-string.c: Use C++ exception handling.
6503 * python/py-infthread.c: Use C++ exception handling.
6504 * python/py-inferior.c: Use C++ exception handling.
6505 * python/py-gdb-readline.c: Use C++ exception handling.
6506 * python/py-framefilter.c: Use C++ exception handling.
6507 * python/py-frame.c: Use C++ exception handling.
6508 * python/py-finishbreakpoint.c: Use C++ exception handling.
6509 * python/py-cmd.c: Use C++ exception handling.
6510 * python/py-breakpoint.c: Use C++ exception handling.
6511 * python/py-arch.c: Use C++ exception handling.
6512 * printcmd.c: Use C++ exception handling.
6513 * ppc-linux-tdep.c: Use C++ exception handling.
6514 * parse.c: Use C++ exception handling.
6515 * p-valprint.c: Use C++ exception handling.
6516 * objc-lang.c: Use C++ exception handling.
6517 * mi/mi-main.c: Use C++ exception handling.
6518 * mi/mi-interp.c: Use C++ exception handling.
6519 * mi/mi-cmd-stack.c: Use C++ exception handling.
6520 * mi/mi-cmd-break.c: Use C++ exception handling.
6521 * main.c: Use C++ exception handling.
6522 * linux-thread-db.c: Use C++ exception handling.
6523 * linux-tdep.c: Use C++ exception handling.
6524 * linux-nat.c: Use C++ exception handling.
6525 * linux-fork.c: Use C++ exception handling.
6526 * linespec.c: Use C++ exception handling.
6527 * language.c: Use C++ exception handling.
6528 * jit.c: Use C++ exception handling.
6529 * infrun.c: Use C++ exception handling.
6530 * infcmd.c: Use C++ exception handling.
6531 * infcall.c: Use C++ exception handling.
6532 * inf-loop.c: Use C++ exception handling.
6533 * i386-tdep.c: Use C++ exception handling.
6534 * i386-linux-tdep.c: Use C++ exception handling.
6535 * guile/scm-value.c: Use C++ exception handling.
6536 * guile/scm-type.c: Use C++ exception handling.
6537 * guile/scm-symtab.c: Use C++ exception handling.
6538 * guile/scm-symbol.c: Use C++ exception handling.
6539 * guile/scm-pretty-print.c: Use C++ exception handling.
6540 * guile/scm-ports.c: Use C++ exception handling.
6541 * guile/scm-param.c: Use C++ exception handling.
6542 * guile/scm-math.c: Use C++ exception handling.
6543 * guile/scm-lazy-string.c: Use C++ exception handling.
6544 * guile/scm-frame.c: Use C++ exception handling.
6545 * guile/scm-disasm.c: Use C++ exception handling.
6546 * guile/scm-cmd.c: Use C++ exception handling.
6547 * guile/scm-breakpoint.c: Use C++ exception handling.
6548 * guile/scm-block.c: Use C++ exception handling.
6549 * guile/guile-internal.h: Use C++ exception handling.
6550 * gnu-v3-abi.c: Use C++ exception handling.
6551 * gdbtypes.c: Use C++ exception handling.
6552 * frame.c: Use C++ exception handling.
6553 * frame-unwind.c: Use C++ exception handling.
6554 * fbsd-tdep.c: Use C++ exception handling.
6555 * f-valprint.c: Use C++ exception handling.
6556 * exec.c: Use C++ exception handling.
6557 * event-top.c: Use C++ exception handling.
6558 * event-loop.c: Use C++ exception handling.
6559 * eval.c: Use C++ exception handling.
6560 * dwarf2read.c: Use C++ exception handling.
6561 * dwarf2loc.c: Use C++ exception handling.
6562 * dwarf2-frame.c: Use C++ exception handling.
6563 * dwarf2-frame-tailcall.c: Use C++ exception handling.
6564 * dwarf-index-write.c: Use C++ exception handling.
6565 * dwarf-index-cache.c: Use C++ exception handling.
6566 * dtrace-probe.c: Use C++ exception handling.
6567 * disasm-selftests.c: Use C++ exception handling.
6568 * darwin-nat.c: Use C++ exception handling.
6569 * cp-valprint.c: Use C++ exception handling.
6570 * cp-support.c: Use C++ exception handling.
6571 * cp-abi.c: Use C++ exception handling.
6572 * corelow.c: Use C++ exception handling.
6573 * completer.c: Use C++ exception handling.
6574 * compile/compile-object-run.c: Use C++ exception handling.
6575 * compile/compile-object-load.c: Use C++ exception handling.
6576 * compile/compile-cplus-symbols.c: Use C++ exception handling.
6577 * compile/compile-c-symbols.c: Use C++ exception handling.
6578 * common/selftest.c: Use C++ exception handling.
6579 * common/new-op.c: Use C++ exception handling.
6580 * cli/cli-script.c: Use C++ exception handling.
6581 * cli/cli-interp.c: Use C++ exception handling.
6582 * cli/cli-cmds.c: Use C++ exception handling.
6583 * c-varobj.c: Use C++ exception handling.
6584 * btrace.c: Use C++ exception handling.
6585 * breakpoint.c: Use C++ exception handling.
6586 * break-catch-throw.c: Use C++ exception handling.
6587 * arch-utils.c: Use C++ exception handling.
6588 * amd64-tdep.c: Use C++ exception handling.
6589 * ada-valprint.c: Use C++ exception handling.
6590 * ada-typeprint.c: Use C++ exception handling.
6591 * ada-lang.c: Use C++ exception handling.
6592 * aarch64-tdep.c: Use C++ exception handling.
6593
65942019-04-08 Tom Tromey <tom@tromey.com>
6595
6596 * xml-support.c (gdb_xml_parser::parse): Update.
6597 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
6598 * value.c (show_convenience): Update.
6599 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
6600 (test_parse_flags_qcs): Update.
6601 * thread.c (thr_try_catch_cmd): Update.
6602 * target.c (target_translate_tls_address): Update.
6603 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
6604 (info_frame_command_core, frame_apply_command_count): Update.
6605 * rust-exp.y (rust_lex_exception_test): Update.
6606 * riscv-tdep.c (riscv_print_one_register_info): Update.
6607 * remote.c (remote_target::enable_btrace): Update.
6608 * record-btrace.c (record_btrace_enable_warn): Update.
6609 * python/py-utils.c (gdbpy_convert_exception): Update.
6610 * printcmd.c (do_one_display, print_variable_and_value): Update.
6611 * mi/mi-main.c (mi_print_exception): Update.
6612 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
6613 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
6614 * linux-nat.c (linux_nat_target::attach): Update.
6615 * linux-fork.c (class scoped_switch_fork_info): Update.
6616 * infrun.c (displaced_step_prepare): Update.
6617 * infcall.c (call_function_by_hand_dummy): Update.
6618 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
6619 * gnu-v3-abi.c (print_one_vtable): Update.
6620 * frame.c (get_prev_frame_always): Update.
6621 * f-valprint.c (info_common_command_for_block): Update.
6622 * exec.c (try_open_exec_file): Update.
6623 * exceptions.c (print_exception, exception_print)
6624 (exception_fprintf, exception_print_same): Update.
6625 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
6626 * dwarf-index-cache.c (index_cache::store)
6627 (index_cache::lookup_gdb_index): Update.
6628 * darwin-nat.c (maybe_cache_shell): Update.
6629 * cp-valprint.c (cp_print_value_fields): Update.
6630 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
6631 (gcc_cplus_symbol_address): Update.
6632 * compile/compile-c-symbols.c (gcc_convert_symbol)
6633 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
6634 * common/selftest.c: Update.
6635 * common/common-exceptions.h (struct gdb_exception) <message>: Now
6636 a std::string.
6637 (exception_try_scope_entry, exception_try_scope_exit): Don't
6638 declare.
6639 (struct exception_try_scope): Remove.
6640 (TRY): Don't use exception_try_scope.
6641 (struct gdb_exception): Add constructor, operator=.
6642 <what>: New method.
6643 (struct gdb_exception_RETURN_MASK_ALL)
6644 (struct gdb_exception_RETURN_MASK_ERROR)
6645 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
6646 (struct gdb_quit_bad_alloc): Update.
6647 * common/common-exceptions.c (exception_none): Change
6648 initializer.
6649 (struct catcher) <state, exception>: Initialize inline.
6650 <prev>: Remove member.
6651 (current_catcher): Remove.
6652 (catchers): New global.
6653 (exceptions_state_mc_init): Simplify.
6654 (catcher_pop): Remove.
6655 (exceptions_state_mc, exceptions_state_mc_catch): Update.
6656 (try_scope_depth, exception_try_scope_entry)
6657 (exception_try_scope_exit): Remove.
6658 (throw_exception_sjlj): Update.
6659 (exception_messages, exception_messages_size): Remove.
6660 (throw_it): Simplify.
6661 (gdb_exception_sliced_copy): Remove.
6662 (throw_exception_cxx): Update.
6663 * cli/cli-script.c (script_from_file): Update.
6664 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
6665 Update.
6666 * ada-valprint.c (ada_val_print): Update.
6667 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
6668 (create_excep_cond_exprs): Update.
6669
66702019-04-08 Tom Tromey <tom@tromey.com>
6671
6672 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
6673 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
6674 (TRY, CATCH, END_CATCH): Remove some definitions.
6675 * common/common-exceptions.c: Don't use GDB_XCPT.
6676 (catcher_list_size): Remove.
6677 (throw_exception, throw_it): Simplify.
6678
66792019-04-05 Tom Tromey <tom@tromey.com>
6680
6681 Revert the header-sorting patch.
6682 * ft32-tdep.c: Revert.
6683 * frv-tdep.c: Revert.
6684 * frv-linux-tdep.c: Revert.
6685 * frame.c: Revert.
6686 * frame-unwind.c: Revert.
6687 * frame-base.c: Revert.
6688 * fork-child.c: Revert.
6689 * findvar.c: Revert.
6690 * findcmd.c: Revert.
6691 * filesystem.c: Revert.
6692 * filename-seen-cache.h: Revert.
6693 * filename-seen-cache.c: Revert.
6694 * fbsd-tdep.c: Revert.
6695 * fbsd-nat.h: Revert.
6696 * fbsd-nat.c: Revert.
6697 * f-valprint.c: Revert.
6698 * f-typeprint.c: Revert.
6699 * f-lang.c: Revert.
6700 * extension.h: Revert.
6701 * extension.c: Revert.
6702 * extension-priv.h: Revert.
6703 * expprint.c: Revert.
6704 * exec.h: Revert.
6705 * exec.c: Revert.
6706 * exceptions.c: Revert.
6707 * event-top.c: Revert.
6708 * event-loop.c: Revert.
6709 * eval.c: Revert.
6710 * elfread.c: Revert.
6711 * dwarf2read.h: Revert.
6712 * dwarf2read.c: Revert.
6713 * dwarf2loc.c: Revert.
6714 * dwarf2expr.h: Revert.
6715 * dwarf2expr.c: Revert.
6716 * dwarf2-frame.c: Revert.
6717 * dwarf2-frame-tailcall.c: Revert.
6718 * dwarf-index-write.h: Revert.
6719 * dwarf-index-write.c: Revert.
6720 * dwarf-index-common.c: Revert.
6721 * dwarf-index-cache.h: Revert.
6722 * dwarf-index-cache.c: Revert.
6723 * dummy-frame.c: Revert.
6724 * dtrace-probe.c: Revert.
6725 * disasm.h: Revert.
6726 * disasm.c: Revert.
6727 * disasm-selftests.c: Revert.
6728 * dictionary.c: Revert.
6729 * dicos-tdep.c: Revert.
6730 * demangle.c: Revert.
6731 * dcache.h: Revert.
6732 * dcache.c: Revert.
6733 * darwin-nat.h: Revert.
6734 * darwin-nat.c: Revert.
6735 * darwin-nat-info.c: Revert.
6736 * d-valprint.c: Revert.
6737 * d-namespace.c: Revert.
6738 * d-lang.c: Revert.
6739 * ctf.c: Revert.
6740 * csky-tdep.c: Revert.
6741 * csky-linux-tdep.c: Revert.
6742 * cris-tdep.c: Revert.
6743 * cris-linux-tdep.c: Revert.
6744 * cp-valprint.c: Revert.
6745 * cp-support.c: Revert.
6746 * cp-namespace.c: Revert.
6747 * cp-abi.c: Revert.
6748 * corelow.c: Revert.
6749 * corefile.c: Revert.
6750 * continuations.c: Revert.
6751 * completer.h: Revert.
6752 * completer.c: Revert.
6753 * complaints.c: Revert.
6754 * coffread.c: Revert.
6755 * coff-pe-read.c: Revert.
6756 * cli-out.h: Revert.
6757 * cli-out.c: Revert.
6758 * charset.c: Revert.
6759 * c-varobj.c: Revert.
6760 * c-valprint.c: Revert.
6761 * c-typeprint.c: Revert.
6762 * c-lang.c: Revert.
6763 * buildsym.c: Revert.
6764 * buildsym-legacy.c: Revert.
6765 * build-id.h: Revert.
6766 * build-id.c: Revert.
6767 * btrace.c: Revert.
6768 * bsd-uthread.c: Revert.
6769 * breakpoint.h: Revert.
6770 * breakpoint.c: Revert.
6771 * break-catch-throw.c: Revert.
6772 * break-catch-syscall.c: Revert.
6773 * break-catch-sig.c: Revert.
6774 * blockframe.c: Revert.
6775 * block.c: Revert.
6776 * bfin-tdep.c: Revert.
6777 * bfin-linux-tdep.c: Revert.
6778 * bfd-target.c: Revert.
6779 * bcache.c: Revert.
6780 * ax-general.c: Revert.
6781 * ax-gdb.h: Revert.
6782 * ax-gdb.c: Revert.
6783 * avr-tdep.c: Revert.
6784 * auxv.c: Revert.
6785 * auto-load.c: Revert.
6786 * arm-wince-tdep.c: Revert.
6787 * arm-tdep.c: Revert.
6788 * arm-symbian-tdep.c: Revert.
6789 * arm-pikeos-tdep.c: Revert.
6790 * arm-obsd-tdep.c: Revert.
6791 * arm-nbsd-tdep.c: Revert.
6792 * arm-nbsd-nat.c: Revert.
6793 * arm-linux-tdep.c: Revert.
6794 * arm-linux-nat.c: Revert.
6795 * arm-fbsd-tdep.c: Revert.
6796 * arm-fbsd-nat.c: Revert.
6797 * arm-bsd-tdep.c: Revert.
6798 * arch-utils.c: Revert.
6799 * arc-tdep.c: Revert.
6800 * arc-newlib-tdep.c: Revert.
6801 * annotate.h: Revert.
6802 * annotate.c: Revert.
6803 * amd64-windows-tdep.c: Revert.
6804 * amd64-windows-nat.c: Revert.
6805 * amd64-tdep.c: Revert.
6806 * amd64-sol2-tdep.c: Revert.
6807 * amd64-obsd-tdep.c: Revert.
6808 * amd64-obsd-nat.c: Revert.
6809 * amd64-nbsd-tdep.c: Revert.
6810 * amd64-nbsd-nat.c: Revert.
6811 * amd64-nat.c: Revert.
6812 * amd64-linux-tdep.c: Revert.
6813 * amd64-linux-nat.c: Revert.
6814 * amd64-fbsd-tdep.c: Revert.
6815 * amd64-fbsd-nat.c: Revert.
6816 * amd64-dicos-tdep.c: Revert.
6817 * amd64-darwin-tdep.c: Revert.
6818 * amd64-bsd-nat.c: Revert.
6819 * alpha-tdep.c: Revert.
6820 * alpha-obsd-tdep.c: Revert.
6821 * alpha-nbsd-tdep.c: Revert.
6822 * alpha-mdebug-tdep.c: Revert.
6823 * alpha-linux-tdep.c: Revert.
6824 * alpha-linux-nat.c: Revert.
6825 * alpha-bsd-tdep.c: Revert.
6826 * alpha-bsd-nat.c: Revert.
6827 * aix-thread.c: Revert.
6828 * agent.c: Revert.
6829 * addrmap.c: Revert.
6830 * ada-varobj.c: Revert.
6831 * ada-valprint.c: Revert.
6832 * ada-typeprint.c: Revert.
6833 * ada-tasks.c: Revert.
6834 * ada-lang.c: Revert.
6835 * aarch64-tdep.c: Revert.
6836 * aarch64-ravenscar-thread.c: Revert.
6837 * aarch64-newlib-tdep.c: Revert.
6838 * aarch64-linux-tdep.c: Revert.
6839 * aarch64-linux-nat.c: Revert.
6840 * aarch64-fbsd-tdep.c: Revert.
6841 * aarch64-fbsd-nat.c: Revert.
6842 * aarch32-linux-nat.c: Revert.
6843
68442019-04-05 Tom Tromey <tom@tromey.com>
6845
6846 * ft32-tdep.c: Sort headers.
6847 * frv-tdep.c: Sort headers.
6848 * frv-linux-tdep.c: Sort headers.
6849 * frame.c: Sort headers.
6850 * frame-unwind.c: Sort headers.
6851 * frame-base.c: Sort headers.
6852 * fork-child.c: Sort headers.
6853 * findvar.c: Sort headers.
6854 * findcmd.c: Sort headers.
6855 * filesystem.c: Sort headers.
6856 * filename-seen-cache.h: Sort headers.
6857 * filename-seen-cache.c: Sort headers.
6858 * fbsd-tdep.c: Sort headers.
6859 * fbsd-nat.h: Sort headers.
6860 * fbsd-nat.c: Sort headers.
6861 * f-valprint.c: Sort headers.
6862 * f-typeprint.c: Sort headers.
6863 * f-lang.c: Sort headers.
6864 * extension.h: Sort headers.
6865 * extension.c: Sort headers.
6866 * extension-priv.h: Sort headers.
6867 * expprint.c: Sort headers.
6868 * exec.h: Sort headers.
6869 * exec.c: Sort headers.
6870 * exceptions.c: Sort headers.
6871 * event-top.c: Sort headers.
6872 * event-loop.c: Sort headers.
6873 * eval.c: Sort headers.
6874 * elfread.c: Sort headers.
6875 * dwarf2read.h: Sort headers.
6876 * dwarf2read.c: Sort headers.
6877 * dwarf2loc.c: Sort headers.
6878 * dwarf2expr.h: Sort headers.
6879 * dwarf2expr.c: Sort headers.
6880 * dwarf2-frame.c: Sort headers.
6881 * dwarf2-frame-tailcall.c: Sort headers.
6882 * dwarf-index-write.h: Sort headers.
6883 * dwarf-index-write.c: Sort headers.
6884 * dwarf-index-common.c: Sort headers.
6885 * dwarf-index-cache.h: Sort headers.
6886 * dwarf-index-cache.c: Sort headers.
6887 * dummy-frame.c: Sort headers.
6888 * dtrace-probe.c: Sort headers.
6889 * disasm.h: Sort headers.
6890 * disasm.c: Sort headers.
6891 * disasm-selftests.c: Sort headers.
6892 * dictionary.c: Sort headers.
6893 * dicos-tdep.c: Sort headers.
6894 * demangle.c: Sort headers.
6895 * dcache.h: Sort headers.
6896 * dcache.c: Sort headers.
6897 * darwin-nat.h: Sort headers.
6898 * darwin-nat.c: Sort headers.
6899 * darwin-nat-info.c: Sort headers.
6900 * d-valprint.c: Sort headers.
6901 * d-namespace.c: Sort headers.
6902 * d-lang.c: Sort headers.
6903 * ctf.c: Sort headers.
6904 * csky-tdep.c: Sort headers.
6905 * csky-linux-tdep.c: Sort headers.
6906 * cris-tdep.c: Sort headers.
6907 * cris-linux-tdep.c: Sort headers.
6908 * cp-valprint.c: Sort headers.
6909 * cp-support.c: Sort headers.
6910 * cp-namespace.c: Sort headers.
6911 * cp-abi.c: Sort headers.
6912 * corelow.c: Sort headers.
6913 * corefile.c: Sort headers.
6914 * continuations.c: Sort headers.
6915 * completer.h: Sort headers.
6916 * completer.c: Sort headers.
6917 * complaints.c: Sort headers.
6918 * coffread.c: Sort headers.
6919 * coff-pe-read.c: Sort headers.
6920 * cli-out.h: Sort headers.
6921 * cli-out.c: Sort headers.
6922 * charset.c: Sort headers.
6923 * c-varobj.c: Sort headers.
6924 * c-valprint.c: Sort headers.
6925 * c-typeprint.c: Sort headers.
6926 * c-lang.c: Sort headers.
6927 * buildsym.c: Sort headers.
6928 * buildsym-legacy.c: Sort headers.
6929 * build-id.h: Sort headers.
6930 * build-id.c: Sort headers.
6931 * btrace.c: Sort headers.
6932 * bsd-uthread.c: Sort headers.
6933 * breakpoint.h: Sort headers.
6934 * breakpoint.c: Sort headers.
6935 * break-catch-throw.c: Sort headers.
6936 * break-catch-syscall.c: Sort headers.
6937 * break-catch-sig.c: Sort headers.
6938 * blockframe.c: Sort headers.
6939 * block.c: Sort headers.
6940 * bfin-tdep.c: Sort headers.
6941 * bfin-linux-tdep.c: Sort headers.
6942 * bfd-target.c: Sort headers.
6943 * bcache.c: Sort headers.
6944 * ax-general.c: Sort headers.
6945 * ax-gdb.h: Sort headers.
6946 * ax-gdb.c: Sort headers.
6947 * avr-tdep.c: Sort headers.
6948 * auxv.c: Sort headers.
6949 * auto-load.c: Sort headers.
6950 * arm-wince-tdep.c: Sort headers.
6951 * arm-tdep.c: Sort headers.
6952 * arm-symbian-tdep.c: Sort headers.
6953 * arm-pikeos-tdep.c: Sort headers.
6954 * arm-obsd-tdep.c: Sort headers.
6955 * arm-nbsd-tdep.c: Sort headers.
6956 * arm-nbsd-nat.c: Sort headers.
6957 * arm-linux-tdep.c: Sort headers.
6958 * arm-linux-nat.c: Sort headers.
6959 * arm-fbsd-tdep.c: Sort headers.
6960 * arm-fbsd-nat.c: Sort headers.
6961 * arm-bsd-tdep.c: Sort headers.
6962 * arch-utils.c: Sort headers.
6963 * arc-tdep.c: Sort headers.
6964 * arc-newlib-tdep.c: Sort headers.
6965 * annotate.h: Sort headers.
6966 * annotate.c: Sort headers.
6967 * amd64-windows-tdep.c: Sort headers.
6968 * amd64-windows-nat.c: Sort headers.
6969 * amd64-tdep.c: Sort headers.
6970 * amd64-sol2-tdep.c: Sort headers.
6971 * amd64-obsd-tdep.c: Sort headers.
6972 * amd64-obsd-nat.c: Sort headers.
6973 * amd64-nbsd-tdep.c: Sort headers.
6974 * amd64-nbsd-nat.c: Sort headers.
6975 * amd64-nat.c: Sort headers.
6976 * amd64-linux-tdep.c: Sort headers.
6977 * amd64-linux-nat.c: Sort headers.
6978 * amd64-fbsd-tdep.c: Sort headers.
6979 * amd64-fbsd-nat.c: Sort headers.
6980 * amd64-dicos-tdep.c: Sort headers.
6981 * amd64-darwin-tdep.c: Sort headers.
6982 * amd64-bsd-nat.c: Sort headers.
6983 * alpha-tdep.c: Sort headers.
6984 * alpha-obsd-tdep.c: Sort headers.
6985 * alpha-nbsd-tdep.c: Sort headers.
6986 * alpha-mdebug-tdep.c: Sort headers.
6987 * alpha-linux-tdep.c: Sort headers.
6988 * alpha-linux-nat.c: Sort headers.
6989 * alpha-bsd-tdep.c: Sort headers.
6990 * alpha-bsd-nat.c: Sort headers.
6991 * aix-thread.c: Sort headers.
6992 * agent.c: Sort headers.
6993 * addrmap.c: Sort headers.
6994 * ada-varobj.c: Sort headers.
6995 * ada-valprint.c: Sort headers.
6996 * ada-typeprint.c: Sort headers.
6997 * ada-tasks.c: Sort headers.
6998 * ada-lang.c: Sort headers.
6999 * aarch64-tdep.c: Sort headers.
7000 * aarch64-ravenscar-thread.c: Sort headers.
7001 * aarch64-newlib-tdep.c: Sort headers.
7002 * aarch64-linux-tdep.c: Sort headers.
7003 * aarch64-linux-nat.c: Sort headers.
7004 * aarch64-fbsd-tdep.c: Sort headers.
7005 * aarch64-fbsd-nat.c: Sort headers.
7006 * aarch32-linux-nat.c: Sort headers.
7007
70082019-04-04 Tom Tromey <tom@tromey.com>
7009
7010 * varobj.c (varobj_create): Update.
7011 * rust-exp.y (struct rust_parser) <update_innermost_block,
7012 lookup_symbol>: New methods.
7013 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
7014 Rename.
7015 (rust_parser::rust_lookup_type)
7016 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
7017 * printcmd.c (display_command, do_one_display): Update.
7018 * parser-defs.h (struct parser_state) <parser_state>: Add
7019 "tracker" parameter.
7020 (block_tracker): New member.
7021 (class innermost_block_tracker) <innermost_block_tracker>: Add
7022 "types" parameter.
7023 <reset>: Remove method.
7024 (innermost_block): Don't declare.
7025 (null_post_parser): Update.
7026 * parse.c (innermost_block): Remove global.
7027 (write_dollar_variable): Update.
7028 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
7029 Remove "tracker_types" parameter.
7030 (parse_expression): Add "tracker" parameter.
7031 (parse_expression_for_completion): Update.
7032 (null_post_parser): Add "tracker" parameter.
7033 * p-exp.y: Update rules.
7034 * m2-exp.y: Update rules.
7035 * language.h (struct language_defn) <la_post_parser>: Add
7036 "tracker" parameter.
7037 * go-exp.y: Update rules.
7038 * f-exp.y: Update rules.
7039 * expression.h (parse_expression, parse_exp_1): Add "tracker"
7040 parameter.
7041 * d-exp.y: Update rules.
7042 * c-exp.y: Update rules.
7043 * breakpoint.c (set_breakpoint_condition): Create an
7044 innermost_block_tracker.
7045 (watch_command_1): Likewise.
7046 * ada-lang.c (resolve): Add "tracker" parameter.
7047 (resolve_subexp): Likewise.
7048 * ada-exp.y (write_var_from_sym): Update.
7049
70502019-04-04 Tom Tromey <tom@tromey.com>
7051
7052 * type-stack.h: New file.
7053 * type-stack.c: New file.
7054 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
7055 type-stack.h.
7056 (insert_into_type_stack, insert_type, push_type, push_type_int)
7057 (insert_type_address_space, pop_type, pop_type_int)
7058 (pop_typelist, pop_type_stack, append_type_stack)
7059 (push_type_stack, get_type_stack, push_typelist)
7060 (follow_type_instance_flags, follow_types): Don't declare.
7061 * parse.c (type_stack): Remove global.
7062 (parse_exp_in_context): Update.
7063 (insert_into_type_stack, insert_type, push_type, push_type_int)
7064 (insert_type_address_space, pop_type, pop_type_int)
7065 (pop_typelist, pop_type_stack, append_type_stack)
7066 (push_type_stack, get_type_stack, push_typelist)
7067 (follow_type_instance_flags, follow_types): Remove (moved to
7068 type-stack.c).
7069 * f-exp.y (type_stack): New global.
7070 Update rules.
7071 (push_kind_type, f_parse): Update.
7072 * d-exp.y (type_stack): New global.
7073 Update rules.
7074 (d_parse): Update.
7075 * c-exp.y (struct c_parse_state) <type_stack>: New member.
7076 Update rules.
7077 * Makefile.in (COMMON_SFILES): Add type-stack.c.
7078 (HFILES_NO_SRCDIR): Add type-stack.h.
7079
70802019-04-04 Tom Tromey <tom@tromey.com>
7081
7082 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
7083 (rust_parser::convert_ast_to_expression, rust_parse)
7084 (rust_lex_test_completion, rust_lex_tests): Update.
7085 * parser-defs.h (struct expr_completion_state): New.
7086 (struct parser_state) <parser_state>: Add completion parameter.
7087 <mark_struct_expression, mark_completion_tag>: New methods.
7088 <parse_completion, m_completion_state>: New members.
7089 (prefixify_expression, null_post_parser): Update.
7090 (mark_struct_expression, mark_completion_tag): Don't declare.
7091 * parse.c (parse_completion, expout_last_struct)
7092 (expout_tag_completion_type, expout_completion_name): Remove
7093 globals.
7094 (parser_state::mark_struct_expression)
7095 (parser_state::mark_completion_tag): Now methods.
7096 (prefixify_expression): Add last_struct parameter.
7097 (prefixify_subexp): Likewise.
7098 (parse_exp_1): Update.
7099 (parse_exp_in_context): Add cstate parameter. Update.
7100 (parse_expression_for_completion): Create an
7101 expr_completion_state.
7102 (null_post_parser): Add "completion" parameter.
7103 * p-exp.y: Update rules.
7104 (yylex): Update.
7105 * language.h (struct language_defn) <la_post_parser>: Add
7106 "completing" parameter.
7107 * go-exp.y: Update rules.
7108 (lex_one_token): Update.
7109 * expression.h (parse_completion): Don't declare.
7110 * d-exp.y: Update rules.
7111 (lex_one_token): Update rules.
7112 * c-exp.y: Update rules.
7113 (lex_one_token): Update.
7114 * ada-lang.c (resolve): Add "parse_completion" parameter.
7115 (resolve_subexp): Likewise.
7116 (ada_resolve_function): Likewise.
7117
71182019-04-04 Tom Tromey <tom@tromey.com>
7119
7120 * parser-defs.h (struct parser_state) <start_arglist,
7121 end_arglist>: New methods.
7122 <arglist_len, m_funcall_chain>: New members.
7123 (arglist_len, start_arglist, end_arglist): Don't declare.
7124 * parse.c (arglist_len, funcall_chain): Remove global.
7125 (start_arglist, end_arglist): Remove functions.
7126 (parse_exp_in_context): Update.
7127 * p-exp.y: Update rules.
7128 * m2-exp.y: Update rules.
7129 * go-exp.y: Update rules.
7130 * f-exp.y: Update rules.
7131 * d-exp.y: Update rules.
7132 * c-exp.y: Update rules.
7133
71342019-04-04 Tom Tromey <tom@tromey.com>
7135
7136 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
7137 lex_operator, push_back>: New methods.
7138 Update all rules.
7139 (rust_parser::lex_hex, lex_escape): Rename and update.
7140 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
7141 (rust_parser::lex_operator): Rename and update.
7142 (rust_parser::lex_number, rustyylex, rustyyerror)
7143 (rust_lex_test_init, rust_lex_test_sequence)
7144 (rust_lex_test_push_back, rust_lex_tests): Update.
7145 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
7146 parameter.
7147 <lexptr, prev_lexptr>: New members.
7148 (lexptr, prev_lexptr): Don't declare.
7149 * parse.c (lexptr, prev_lexptr): Remove globals.
7150 (parse_exp_in_context): Update.
7151 * p-exp.y (yylex, yyerror): Update.
7152 * m2-exp.y (parse_number, yylex, yyerror): Update.
7153 * go-exp.y (lex_one_token, yyerror): Update.
7154 * f-exp.y (match_string_literal, yylex, yyerror): Update.
7155 * d-exp.y (lex_one_token, yyerror): Update.
7156 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
7157 (lex_one_token, yyerror): Update.
7158 * ada-lex.l (YY_INPUT): Update.
7159 (rewind_to_char): Update.
7160 * ada-exp.y (yyerror): Update.
7161
71622019-04-04 Tom Tromey <tom@tromey.com>
7163
7164 * rust-exp.y (rustyylex, rust_lex_tests): Update.
7165 * parser-defs.h (struct parser_state) <parser_state>: Add new
7166 parameter.
7167 <comma_terminates>: New member.
7168 (comma_terminates): Don't declare global.
7169 * parse.c (comma_terminates): Remove global.
7170 (parse_exp_in_context): Update.
7171 * p-exp.y (yylex): Update.
7172 * m2-exp.y (yylex): Update.
7173 * go-exp.y (lex_one_token): Update.
7174 * f-exp.y (yylex): Update.
7175 * d-exp.y (lex_one_token): Update.
7176 * c-exp.y (lex_one_token): Update.
7177 * ada-lex.l: Update.
7178
71792019-04-04 Tom Tromey <tom@tromey.com>
7180
7181 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
7182 (rustyylex, rust_lex_test_init, rust_lex_test_one)
7183 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
7184 * parser-defs.h (paren_depth): Don't declare.
7185 * parse.c (paren_depth): Remove global.
7186 (parse_exp_in_context): Update.
7187 * p-exp.y (paren_depth): New global.
7188 (pascal_parse): Initialize it.
7189 * m2-exp.y (paren_depth): New global.
7190 (m2_parse): Initialize it.
7191 * go-exp.y (paren_depth): New global.
7192 (go_parse): Initialize it.
7193 * f-exp.y (paren_depth): New global.
7194 (f_parse): Initialize it.
7195 * d-exp.y (paren_depth): New global.
7196 (d_parse): Initialize it.
7197 * c-exp.y (paren_depth): New global.
7198 (c_parse): Initialize it.
7199 * ada-lex.l (paren_depth): New global.
7200 (lexer_init): Initialize it.
7201
72022019-04-04 Tom Tromey <tom@tromey.com>
7203
7204 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
7205 (rust_parser::convert_ast_to_type)
7206 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
7207 * parser-defs.h (struct parser_state) <parser_state>: Add
7208 parameters. Initialize new members.
7209 <expression_context_block, expression_context_pc>: New members.
7210 * parse.c (expression_context_block, expression_context_pc):
7211 Remove globals.
7212 (parse_exp_in_context): Update.
7213 * p-exp.y: Update all rules.
7214 (yylex): Update.
7215 * m2-exp.y: Update all rules.
7216 (yylex): Update.
7217 * go-exp.y (yylex): Update.
7218 * f-exp.y (yylex): Update.
7219 * d-exp.y: Update all rules.
7220 (yylex): Update.
7221 * c-exp.y: Update all rules.
7222 (lex_one_token, classify_name, yylex, c_parse): Update.
7223 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
7224
72252019-04-04 Tom Tromey <tom@tromey.com>
7226
7227 * gdbarch.h, gdbarch.c: Rebuild.
7228 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
7229 * stap-probe.h:
7230 (struct stap_parse_info): Replace "parser_state" with
7231 "expr_builder".
7232 * parser-defs.h (struct expr_builder): Rename from "parser_state".
7233 (parser_state): New class.
7234 * parse.c (expr_builder): Rename.
7235 (expr_builder::release): Rename.
7236 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
7237 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
7238 (write_exp_elt_longcst, write_exp_elt_floatcst)
7239 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
7240 (write_exp_string_vector, write_exp_bitstring)
7241 (write_exp_msymbol, mark_struct_expression)
7242 (write_dollar_variable)
7243 (insert_type_address_space, increase_expout_size): Replace
7244 "parser_state" with "expr_builder".
7245 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
7246 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
7247 "parser_state" with "expr_builder".
7248
72492019-04-04 Tom Tromey <tom@tromey.com>
7250
7251 * rust-exp.y: Replace "parse_language" with method call.
7252 * p-exp.y:
7253 (yylex): Replace "parse_language" with method call.
7254 * m2-exp.y:
7255 (yylex): Replace "parse_language" with method call.
7256 * go-exp.y (classify_name): Replace "parse_language" with method
7257 call.
7258 * f-exp.y (yylex): Replace "parse_language" with method call.
7259 * d-exp.y (lex_one_token): Replace "parse_language" with method
7260 call.
7261 * c-exp.y:
7262 (lex_one_token, classify_name, yylex): Replace "parse_language"
7263 with method call.
7264 * ada-exp.y (find_primitive_type, type_char)
7265 (type_system_address): Replace "parse_language" with method call.
7266
72672019-04-04 Tom Tromey <tom@tromey.com>
7268
7269 * rust-exp.y: Replace "parse_gdbarch" with method call.
7270 * parse.c (write_dollar_variable, insert_type_address_space):
7271 Replace "parse_gdbarch" with method call.
7272 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
7273 call.
7274 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
7275 call.
7276 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
7277 "parse_gdbarch" with method call.
7278 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
7279 with method call.
7280 * f-exp.y (parse_type, parse_f_type, yylex): Replace
7281 "parse_gdbarch" with method call.
7282 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
7283 "parse_gdbarch" with method call.
7284 * c-exp.y (parse_type, parse_number, classify_name): Replace
7285 "parse_gdbarch" with method call.
7286 * ada-lex.l: Replace "parse_gdbarch" with method call.
7287 * ada-exp.y (parse_type, find_primitive_type, type_char)
7288 (type_system_address): Replace "parse_gdbarch" with method call.
7289
72902019-04-04 Tom Tromey <tom@tromey.com>
7291
7292 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
7293 * stap-probe.c (stap_parse_argument): Update.
7294 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
7295 initial_size parameter.
7296 * rust-exp.y (rust_lex_tests): Update.
7297 * parse.c (parser_state): Update.
7298 (parse_exp_in_context): Update.
7299 * parser-defs.h (struct parser_state) <parser_state>: Remove
7300 "initial_size" parameter.
7301
73022019-04-04 Tom Tromey <tom@tromey.com>
7303
7304 * parser-defs.h (increase_expout_size): Don't declare.
7305 * parse.c (increase_expout_size): Now static.
7306
73072019-04-04 Thomas Schwinge <thomas@codesourcery.com>
7308
7309 * gnu-nat.c (gnu_nat_target::wait): Fix
7310 target_waitstatus_to_string call.
7311
73122019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
7313
7314 * eval.c (evaluate_subexp_standard): Handle internal functions
7315 during Fortran function call handling.
7316
73172019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
7318
7319 * NEWS: Mention new internal functions.
7320 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
7321 (read_base_type): Use dwarf2_init_complex_target_type.
7322 * value.c (creal_internal_fn): New function.
7323 (cimag_internal_fn): New function.
7324 (_initialize_values): Register new internal functions.
7325
73262019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7327
7328 * infrun.c (stop_all_threads): If debug_infrun, always
7329 trace the wait status after wait_one, using
7330 target_waitstatus_to_string and target_pid_to_str.
7331 (handle_inferior_event): Replace various trace of
7332 wait status kind by a single trace.
7333 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
7334 wait status kind image by target_waitstatus_to_string.
7335 * target/waitstatus.c (target_waitstatus_to_string): Fix
7336 obsolete comment.
7337
73382019-04-01 Tom Tromey <tromey@adacore.com>
7339
7340 PR symtab/23331:
7341 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
7342
73432019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
7344 Pedro Alves <palves@redhat.com>
7345
7346 * top.c (quit_force): Call 'finalize_values'.
7347 * value.c (finalize_values): New function.
7348 * value.h (finalize_values): Declare.
7349
73502019-03-30 Eli Zaretskii <eliz@gnu.org>
7351
7352 * NEWS: Announce $_gdb_major and $_gdb_minor.
7353
7354 * top.c (init_gdb_version_vars): New function.
7355 (gdb_init): Call init_gdb_version_vars.
7356
73572019-03-29 Tom Tromey <tromey@adacore.com>
7358
7359 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
7360 help text. Remove dead code.
7361
73622019-03-29 Keith Seitz <keiths@redhat.com>
7363
7364 From Siddhesh Poyarekar:
7365 * f-lang.h (f77_get_upperbound): Return LONGEST.
7366 (f77_get_lowerbound): Likewise.
7367 * f-typeprint.c (f_type_print_varspec_suffix): Expand
7368 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
7369 print them.
7370 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
7371 plongest to format print it.
7372 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
7373 (f77_get_upperbound): Likewise.
7374 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
7375 LOWER_BOUND to LONGEST.
7376 (f77_create_arrayprint_offset_tbl): Likewise.
7377
73782019-03-29 Keith Seitz <keiths@redhat.com>
7379
7380 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7381 %s/pulongest for TYPE_LENGTH instead of %d in format
7382 strings.
7383 * ada-typerint.c (ada_print_type): Likewise.
7384 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
7385 * compile/compile-c-support.c (generate_register_struct): Likewise.
7386 * gdbtypes.c (recursive_dump_type): Likewise.
7387 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
7388 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
7389 instead of %d in format strings.
7390 * riscv-tdep.c (riscv_type_alignment): Cast second argument
7391 to std::min to ULONGEST.
7392 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
7393 instead of %d in format strings.
7394 * tracepoint.c (info_scope_command): Likewise.
7395 * typeprint.c (print_offset_data::update)
7396 (print_offset_data::finish): Likewise.
7397 * xtensa-tdep.c (xtensa_store_return_value)
7398 (xtensa_push_dummy_call): Likewise.
7399
74002019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
7401
7402 * windows-nat.c (display_selector): Fixed format specifications
7403 for 64-bit Cygwin.
7404
74052019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7406
7407 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
7408
74092019-03-28 Sandra Loosemore <sandra@codesourcery.com>
7410
7411 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
7412 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
7413 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
7414 (nios2_linux_init_abi): Install it.
7415
74162019-03-28 Alan Hayward <alan.hayward@arm.com>
7417
7418 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
7419
74202019-03-28 Alan Hayward <alan.hayward@arm.com>
7421
7422 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
7423
74242019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7425 Tom Tromey <tromey@adacore.com>
7426
7427 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
7428
74292019-03-26 Joel Brobecker <brobecker@adacore.com>
7430
7431 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
7432 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
7433 method to compute the bounds of range types. Also print "[evaluated]"
7434 if the bounds' values come from a dynamic evaluation.
7435
74362019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
7437
7438 * cp-valprint.c (cp_print_value_fields): Don't print trailing
7439 whitespace when pretty printing is on.
7440
74412019-03-26 Alan Hayward <alan.hayward@arm.com>
7442
7443 * ppc-linux-nat.c: Add include.
7444
74452019-03-26 Alan Hayward <alan.hayward@arm.com>
7446
7447 * NEWS: Mention AArch64 Pointer Authentication.
7448
74492019-03-26 Alan Hayward <alan.hayward@arm.com>
7450
7451 * arm-linux-nat.c: Add include.
7452
74532019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
7454
7455 * source-cache.c (source_cache::get_source_lines): Re-read
7456 fullname after calling open_source_file.
7457
74582019-03-25 John Baldwin <jhb@FreeBSD.org>
7459
7460 * NEWS: Mention TLS support for FreeBSD.
7461
74622019-03-25 Tom Tromey <tromey@adacore.com>
7463
7464 * minsyms.c (BUNCH_SIZE): Update comment.
7465 (~minimal_symbol_reader): Remove old comment.
7466 (compact_minimal_symbols): Update comment.
7467 (minimal_symbol_reader::install): Remove old comment. Update
7468 other comments.
7469
74702019-03-25 Alan Hayward <alan.hayward@arm.com>
7471
7472 * s390-linux-nat.c: Add include.
7473
74742019-03-25 Alan Hayward <alan.hayward@arm.com>
7475
7476 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
7477 Call linux_get_hwcap.
7478 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
7479 Likewise.
7480 (aarch64_linux_get_hwcap): Remove function.
7481 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
7482 declaration.
7483 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
7484 linux_get_hwcap.
7485 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
7486 * linux-tdep.c (linux_get_hwcap): Add function.
7487 (linux_get_hwcap2): Likewise.
7488 * linux-tdep.h (linux_get_hwcap): Add declaration.
7489 (linux_get_hwcap2): Likewise.
7490 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
7491 (ppc_linux_get_hwcap2): Likewise.
7492 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
7493 linux_get_hwcap.
7494 (ppc_linux_nat_target::insert_watchpoint): Likewise.
7495 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
7496 (ppc_linux_nat_target::read_description): Likewise.
7497 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
7498 * s390-linux-nat.c: Likewise.
7499 * s390-linux-tdep.c (s390_core_read_description): Likewise.
7500
75012019-03-24 Tom Tromey <tom@tromey.com>
7502
7503 * ada-lang.c (standard_lookup): Simplify initialization.
7504 (ada_lookup_symbol_nonlocal): Simplify return.
7505 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
7506 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
7507 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
7508 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
7509 initialization.
7510 * solib.c (solib_global_lookup): Simplify.
7511 * symtab.c (null_block_symbol): Remove.
7512 (symbol_cache_lookup): Simplify returns.
7513 (lookup_language_this): Simplify returns.
7514 (lookup_symbol_aux): Simplify return.
7515 (lookup_local_symbol): Simplify returns.
7516 (lookup_global_symbol_from_objfile): Simplify return.
7517 (lookup_symbol_in_objfile_symtabs)
7518 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
7519 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
7520 (lookup_static_symbol, lookup_global_symbol): Simplify return.
7521 * cp-namespace.c (cp_lookup_bare_symbol)
7522 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
7523 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
7524 (cp_lookup_nested_symbol): Don't use null_block_symbol.
7525 (cp_lookup_symbol_via_imports): Simplify initialization.
7526 (find_symbol_in_baseclass): Likewise.
7527 * symtab.h (null_block_symbol): Remove.
7528 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
7529 (d_lookup_nested_symbol, d_lookup_symbol_imports)
7530 (d_lookup_symbol_module): Likewise.
7531 (find_symbol_in_baseclass): Simplify initialization.
7532
75332019-03-24 Tom Tromey <tom@tromey.com>
7534
7535 * expression.h: Don't include symtab.h.
7536 (struct block): Forward declare.
7537
75382019-03-24 Tom Tromey <tom@tromey.com>
7539
7540 * c-exp.y (typebase): Remove casts.
7541 * gdbtypes.c (lookup_unsigned_typename, )
7542 (lookup_signed_typename): Remove cast.
7543 * eval.c (parse_to_comma_and_eval): Remove cast.
7544 * parse.c (write_dollar_variable): Remove cast.
7545 * block.h (struct block) <superblock>: Now const.
7546 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
7547 * psymtab.c (psym_map_matching_symbols): Make "block" const.
7548 (map_block): Make "block" const.
7549 * symfile.h (struct quick_symbol_functions)
7550 <map_matching_symbols>: Constify block argument to "callback".
7551 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
7552 const.
7553 (find_pc_sect_compunit_symtab): Make "b" const.
7554 (find_symbol_at_address): Likewise.
7555 (search_symbols): Likewise.
7556 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
7557 (dw2_debug_names_lookup_symbol): Likewise.
7558 (dw2_map_matching_symbols): Update.
7559 * p-valprint.c (pascal_val_print): Remove "block".
7560 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
7561 (aux_add_nonlocal_symbols): Make "block" const.
7562 (resolve_subexp): Remove cast.
7563 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
7564 const.
7565 (iterate_over_file_blocks): Likewise.
7566 * f-exp.y (%union) <bval>: Remove.
7567 * coffread.c (patch_opaque_types): Make "b" const.
7568 * spu-tdep.c (spu_catch_start): Make "block" const.
7569 * c-valprint.c (print_unpacked_pointer): Remove "block".
7570 * symmisc.c (dump_symtab_1): Make "b" const.
7571 (block_depth): Make "block" const.
7572 * d-exp.y (%union) <bval>: Remove.
7573 * cp-support.h (cp_lookup_rtti_type): Update.
7574 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
7575 * psymtab.c (psym_lookup_symbol): Make "block" const.
7576 (maintenance_check_psymtabs): Make "b" const.
7577 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
7578 (enumerate_locals, enumerate_args): Update.
7579 * python/py-symtab.c (stpy_global_block): Make "block" const.
7580 (stpy_static_block): Likewise.
7581 * inline-frame.c (block_starting_point_at): Make "new_block"
7582 const.
7583 * block.c (find_block_in_blockvector): Make return type const.
7584 (blockvector_for_pc_sect): Make "b" const.
7585 (find_block_in_blockvector): Make "b" const.
7586
75872019-03-23 Tom Tromey <tom@tromey.com>
7588
7589 * varobj.c (varobj_create): Update.
7590 * symfile.c (clear_symtab_users): Don't reset innermost_block.
7591 * printcmd.c (display_command, do_one_display): Don't reset
7592 innermost_block.
7593 * parser-defs.h (enum innermost_block_tracker_type): Move to
7594 expression.h.
7595 (innermost_block): Update comment.
7596 * parse.c (parse_exp_1): Add tracker_types parameter.
7597 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
7598 tracker_types parameter. Reset innermost_block.
7599 (parse_exp_in_context): Remove.
7600 (parse_expression_for_completion): Update.
7601 * objfiles.c (~objfile): Don't reset expression_context_block or
7602 innermost_block.
7603 * expression.h (enum innermost_block_tracker_type): Move from
7604 parser-defs.h.
7605 (parse_exp_1): Add tracker_types parameter.
7606 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
7607 reset innermost_block.
7608
76092019-03-23 Tom Tromey <tom@tromey.com>
7610
7611 * objfiles.h: Include bcache.h.
7612
76132019-03-23 Tom Tromey <tom@tromey.com>
7614
7615 * linespec.c (get_current_search_block): Use
7616 scoped_restore_current_language.
7617 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
7618
76192019-03-22 Alan Hayward <alan.hayward@arm.com>
7620 Jiong Wang <jiong.wang@arm.com>
7621
7622 * aarch64-linux-tdep.c
7623 (aarch64_linux_iterate_over_regset_sections): Check for pauth
7624 section.
7625 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
7626
76272019-03-22 Alan Hayward <alan.hayward@arm.com>
7628 Jiong Wang <jiong.wang@arm.com>
7629
7630 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
7631 instructions.
7632 (aarch64_analyze_prologue_test): Add PACIASP test.
7633 (aarch64_prologue_prev_register): Unmask PC value.
7634
76352019-03-22 Alan Hayward <alan.hayward@arm.com>
7636 Jiong Wang <jiong.wang@arm.com>
7637
7638 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
7639 (aarch64_dwarf2_prev_register): Unmask PC value.
7640 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
7641 (aarch64_execute_dwarf_cfa_vendor_op): Check for
7642 DW_CFA_AARCH64_negate_ra_state.
7643 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
7644
76452019-03-22 Alan Hayward <alan.hayward@arm.com>
7646 Jiong Wang <jiong.wang@arm.com>
7647
7648 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
7649 registers.
7650 (aarch64_pseudo_register_name): Likewise.
7651 (aarch64_pseudo_register_type): Likewise.
7652 (aarch64_pseudo_register_reggroup_p): Likewise.
7653 (aarch64_gdbarch_init): Add pauth registers.
7654 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
7655 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
7656 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
7657 (struct gdbarch_tdep): Add regnum for ra_state.
7658
76592019-03-22 Alan Hayward <alan.hayward@arm.com>
7660 Jiong Wang <jiong.wang@arm.com>
7661
7662 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
7663
76642019-03-22 Alan Hayward <alan.hayward@arm.com>
7665 Jiong Wang <jiong.wang@arm.com>
7666
7667 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
7668 function.
7669 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
7670 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
7671 (aarch64_gdbarch_init): Add puth registers.
7672 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
7673 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
7674 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
7675
76762019-03-22 Alan Hayward <alan.hayward@arm.com>
7677 Jiong Wang <jiong.wang@arm.com>
7678
7679 * aarch64-linux-nat.c
7680 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
7681 * aarch64-linux-tdep.c
7682 (aarch64_linux_core_read_description): Likewise.
7683 (aarch64_linux_get_hwcap): New function.
7684 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
7685 (aarch64_linux_get_hwcap): New declaration.
7686
76872019-03-22 Alan Hayward <alan.hayward@arm.com>
7688 Jiong Wang <jiong.wang@arm.com>
7689
7690 * aarch64-linux-nat.c
7691 (aarch64_linux_nat_target::read_description): Add pauth param.
7692 * aarch64-linux-tdep.c
7693 (aarch64_linux_core_read_description): Likewise.
7694 * aarch64-tdep.c (struct target_desc): Add in pauth.
7695 (aarch64_read_description): Add pauth param.
7696 (aarch64_gdbarch_init): Likewise.
7697 * aarch64-tdep.h (aarch64_read_description): Likewise.
7698 * arch/aarch64.c (aarch64_create_target_description): Likewise.
7699 * arch/aarch64.h (aarch64_create_target_description): Likewise.
7700 * features/Makefile: Add new files.
7701 * features/aarch64-pauth.c: New file.
7702 * features/aarch64-pauth.xml: New file.
7703
77042019-03-20 Tom Tromey <tromey@adacore.com>
7705
7706 * infrun.c (handle_inferior_event): Rename from
7707 handle_inferior_event_1. Create a scoped_value_mark.
7708 (handle_inferior_event): Remove.
7709
77102019-03-19 Tom Tromey <tromey@adacore.com>
7711
7712 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
7713 * infrun.h (print_stop_event): Add "displays" parameter.
7714 * infrun.c (print_stop_event): Add "displays" parameter.
7715
77162019-03-19 Pedro Alves <palves@redhat.com>
7717
7718 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
7719 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
7720 to -1. Fix TABs vs spaces.
7721 (tui_ui_out::tui_ui_out): Don't initialize fields here.
7722 * tui/tui-out.h (tui_ui_out) Add intro comments.
7723 <m_line, m_start_of_line>: In-class initialize, and add describing
7724 comment.
7725
77262019-03-18 Alan Hayward <alan.hayward@arm.com>
7727
7728 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
7729 variable names.
7730 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
7731
77322019-03-18 Pedro Alves <palves@redhat.com>
7733 Eli Zaretskii <eliz@gnu.org>
7734
7735 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
7736 m_line and m_start_of_line.
7737
77382019-03-18 Eli Zaretskii <eliz@gnu.org>
7739
7740 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
7741 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
7742 it returns a newline. This fixes a regression in TU mode, whereby
7743 the next line is output on the same screen line as the user input.
7744
77452019-03-18 Tom Tromey <tromey@adacore.com>
7746
7747 * minsyms.c (minimal_symbol_reader::install): Remove call to
7748 obstack_blank.
7749
77502019-03-18 Pedro Alves <palves@redhat.com>
7751
7752 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
7753 New globals.
7754 (apply_style): New, factored out from ...
7755 (apply_ansi_escape): ... this. Handle reverse video mode.
7756 (tui_set_reverse_mode): New function.
7757 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
7758 * tui/tui-winsource.c (tui_show_source_line): Use
7759 tui_set_reverse_mode instead of setting A_STANDOUT.
7760 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
7761 New setter methods.
7762
77632019-03-18 Hannes Domani <ssbssa@yahoo.de>
7764
7765 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
7766 Handle tabs.
7767
77682019-03-18 Tom Tromey <tromey@adacore.com>
7769
7770 * ada-lang.c (empty_array): Add "high" parameter.
7771 (ada_evaluate_subexp): Update.
7772
77732019-03-17 Sergei Trofimovich <siarheit@google.com>
7774
7775 * unittests/string_view-selftests.c: Define
7776 _initialize_string_view_selftests unconditionally.
7777
77782019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
7779
7780 PR gdb/24350
7781 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
7782
77832019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
7784
7785 PR gdb/24351
7786 * windows-nat.c (display_selector): Fix format specifiers.
7787
77882019-03-17 Eli Zaretskii <eliz@gnu.org>
7789
7790 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
7791 tui_refill_source_window instead of tui_refresh_win, to update the
7792 current execution line. This fixes redisplay of the current line
7793 when stepping through the code with "next" or "step".
7794
77952019-03-16 Eli Zaretskii <eliz@gnu.org>
7796
7797 * source-cache.c (source_cache::get_source_lines): Call
7798 find_source_lines to initialize s->nlines. This fixes vertical
7799 scrolling of TUI source window when the DOWN arrow is pressed.
7800
78012019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7802
7803 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
7804 linux-thread-db.c (_initialize_thread_db): Likewise.
7805
78062019-03-16 Eli Zaretskii <eliz@gnu.org>
7807
7808 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
7809 wclrtoeol in tui_show_source_line". This reverts changes made in
7810 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
7811
78122019-03-15 Tom Tromey <tom@tromey.com>
7813
7814 * symtab.h (struct minimal_symbol): Derive from
7815 general_symbol_info.
7816 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
7817 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7818 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7819 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7820 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
7821 (MSYMBOL_SEARCH_NAME): Update.
7822 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
7823 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
7824 * minsyms.c (minimal_symbol_reader::record_full): Update.
7825
78262019-03-15 Tom Tromey <tom@tromey.com>
7827
7828 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
7829
78302019-03-15 Tom Tromey <tom@tromey.com>
7831
7832 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
7833 unique_xmalloc_ptr.
7834 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
7835 Update.
7836 * minsyms.c (lookup_minimal_symbol_by_pc_section)
7837 (build_minimal_symbol_hash_tables)
7838 (minimal_symbol_reader::install): Update.
7839
78402019-03-15 Tom Tromey <tom@tromey.com>
7841
7842 * symtab.c (create_demangled_names_hash): Update.
7843 (symbol_set_names): Update.
7844 * objfiles.h (struct objfile_per_bfd_storage)
7845 <demangled_names_hash>: Now an htab_up.
7846 * objfiles.c (objfile_per_bfd_storage): Simplify.
7847
78482019-03-15 Tom Tromey <tom@tromey.com>
7849
7850 * objfiles.h (struct objfile_per_bfd_storage): Declare
7851 destructor.
7852 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
7853 New.
7854 (get_objfile_bfd_data): Use new. Don't initialize
7855 language_of_main.
7856 (free_objfile_per_bfd_storage): Remove.
7857 (objfile_bfd_data_free, objfile::~objfile): Use delete.
7858
78592019-03-15 Tom Tromey <tom@tromey.com>
7860
7861 * symfile.c (reread_symbols): Update.
7862 * objfiles.c (objfile::objfile): Update.
7863 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
7864 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
7865 comment.
7866 (minimal_symbol_reader::install): Update.
7867 (terminate_minimal_symbol_table): Remove.
7868 * jit.c (jit_object_close_impl): Update.
7869
78702019-03-15 Tom Tromey <tom@tromey.com>
7871
7872 * minsyms.c (minimal_symbol_reader::record_full): Remove some
7873 initializations.
7874
78752019-03-15 Tom Tromey <tom@tromey.com>
7876
7877 * objfiles.h (struct objfile_per_bfd_storage)
7878 <demangled_hash_languages>: Now a bitset.
7879 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
7880 (lookup_minimal_symbol): Update.
7881
78822019-03-15 Tom Tromey <tom@tromey.com>
7883
7884 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
7885 Don't return the symbol.
7886 * coffread.c (record_minimal_symbol): Use record_full.
7887
78882019-03-14 Eli Zaretskii <eliz@gnu.org>
7889
7890 The MS-Windows port of ncurses fails to switch to a color pair if
7891 one or both of the colors are the implicit default colors. This
7892 change records the default colors when TUI is initialized, and
7893 then specifies them explicitly when a color pair uses the default
7894 colors. This allows color styling in TUI mode on MS-Windows.
7895
7896 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
7897 ncurses_norm_attr.
7898 (tui_initialize_io) [__MINGW32__]: Record the default terminal
7899 colors in ncurses_norm_attr.
7900 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
7901 "none", replace it with the default color recorded in
7902 ncurses_norm_attr.
7903
79042019-03-14 Tom Tromey <tromey@adacore.com>
7905
7906 * source-cache.h (class source_cache) <get_source_lines>: Return
7907 std::string.
7908 * source-cache.c (source_cache::extract_lines): Handle case where
7909 first_pos==npos. Return std::string.
7910 (source_cache::get_source_lines): Update.
7911
79122019-03-14 Tom Tromey <tromey@adacore.com>
7913
7914 * NEWS: Add item for "style sources" commands.
7915 * source-cache.c (source_cache::get_source_lines): Check
7916 source_styling.
7917 * cli/cli-style.c (source_styling): New global.
7918 (_initialize_cli_style): Add "style sources" commands.
7919 (show_style_sources): New function.
7920 * cli/cli-style.h (source_styling): Declare.
7921
79222019-03-14 Pedro Alves <palves@redhat.com>
7923 Tom Tromey <tromey@adacore.com>
7924
7925 * tui/tui-winsource.h (tui_refill_source_window): Declare.
7926 * tui/tui-winsource.c (tui_refill_source_window): New function,
7927 from...
7928 (tui_horizontal_source_scroll): ... here. Move some logic.
7929 * cli/cli-style.c (set_style_enabled): Notify new observable.
7930 * tui/tui-hooks.c (tui_redisplay_source): New function.
7931 (tui_attach_detach_observers): Attach or detach
7932 tui_redisplay_source.
7933 * observable.h (source_styling_changed): New observable.
7934 * observable.c: Define source_styling_changed observable.
7935
79362019-03-13 Tom Tromey <tromey@adacore.com>
7937
7938 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
7939 (i386_gnu_nat_target::store_registers): Update.
7940 * target-debug.h (target_debug_print_std_string): New macro.
7941 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
7942 * windows-tdep.c (display_one_tib): Update.
7943 * tui/tui-stack.c (tui_make_status_line): Update.
7944 * top.c (print_inferior_quit_action): Update.
7945 * thread.c (thr_try_catch_cmd): Update.
7946 (add_thread_with_info): Update.
7947 (thread_target_id_str): Update.
7948 (thr_try_catch_cmd): Update.
7949 (thread_command): Update.
7950 (thread_find_command): Update.
7951 * record-btrace.c (record_btrace_target::info_record)
7952 (record_btrace_resume_thread, record_btrace_target::resume)
7953 (record_btrace_cancel_resume, record_btrace_step_thread)
7954 (record_btrace_target::wait, record_btrace_target::wait)
7955 (record_btrace_target::wait, record_btrace_target::stop): Update.
7956 * progspace.c (print_program_space): Update.
7957 * process-stratum-target.c
7958 (process_stratum_target::thread_address_space): Update.
7959 * linux-fork.c (linux_fork_mourn_inferior)
7960 (detach_checkpoint_command, info_checkpoints_command)
7961 (linux_fork_context): Update.
7962 (linux_fork_detach): Update.
7963 (class scoped_switch_fork_info): Update.
7964 (delete_checkpoint_command): Update.
7965 * infrun.c (follow_fork_inferior): Update.
7966 (follow_fork_inferior): Update.
7967 (proceed_after_vfork_done): Update.
7968 (handle_vfork_child_exec_or_exit): Update.
7969 (follow_exec): Update.
7970 (displaced_step_prepare_throw): Update.
7971 (displaced_step_restore): Update.
7972 (start_step_over): Update.
7973 (resume_1): Update.
7974 (clear_proceed_status_thread): Update.
7975 (proceed): Update.
7976 (print_target_wait_results): Update.
7977 (do_target_wait): Update.
7978 (context_switch): Update.
7979 (stop_all_threads): Update.
7980 (restart_threads): Update.
7981 (finish_step_over): Update.
7982 (handle_signal_stop): Update.
7983 (switch_back_to_stepped_thread): Update.
7984 (keep_going_pass_signal): Update.
7985 (print_exited_reason): Update.
7986 (normal_stop): Update.
7987 * inferior.c (inferior_pid_to_str): Change return type.
7988 (print_selected_inferior): Update.
7989 (add_inferior): Update.
7990 (detach_inferior): Update.
7991 * dummy-frame.c (fprint_dummy_frames): Update.
7992 * dcache.c (dcache_info_1): Update.
7993 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
7994 (btrace_fetch, btrace_clear): Update.
7995 * linux-tdep.c (linux_core_pid_to_str): Change return type.
7996 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
7997 type.
7998 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
7999 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
8000 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
8001 * gdbarch.c, gdbarch.h: Rebuild.
8002 * gdbarch.sh (core_pid_to_str): Change return type.
8003 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
8004 return type.
8005 (windows_nat_target::pid_to_str): Change return type.
8006 (windows_delete_thread): Update.
8007 (windows_nat_target::attach): Update.
8008 (windows_nat_target::files_info): Update.
8009 * target-delegates.c: Rebuild.
8010 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
8011 return type.
8012 (sol_thread_target::pid_to_str): Change return type.
8013 * remote.c (class remote_target) <pid_to_str>: Change return
8014 type.
8015 (remote_target::pid_to_str): Change return type.
8016 (extended_remote_target::attach, remote_target::remote_stop_ns)
8017 (remote_target::remote_notif_remove_queued_reply)
8018 (remote_target::push_stop_reply, remote_target::disable_btrace):
8019 Update.
8020 (extended_remote_target::attach): Update.
8021 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
8022 type.
8023 (gdbsim_target::pid_to_str): Change return type.
8024 * ravenscar-thread.c (struct ravenscar_thread_target)
8025 <pid_to_str>: Change return type.
8026 (ravenscar_thread_target::pid_to_str): Change return type.
8027 * procfs.c (class procfs_target) <pid_to_str>: Change return
8028 type.
8029 (procfs_target::pid_to_str): Change return type.
8030 (procfs_target::attach): Update.
8031 (procfs_target::detach): Update.
8032 (procfs_target::fetch_registers): Update.
8033 (procfs_target::store_registers): Update.
8034 (procfs_target::wait): Update.
8035 (procfs_target::files_info): Update.
8036 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
8037 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
8038 return type.
8039 (nto_procfs_target::pid_to_str): Change return type.
8040 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
8041 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
8042 return type.
8043 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
8044 (exit_lwp): Update.
8045 (attach_proc_task_lwp_callback, get_detach_signal)
8046 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
8047 (linux_nat_target::resume, wait_lwp, stop_callback)
8048 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
8049 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
8050 (linux_nat_wait_1, resume_stopped_resumed_lwps)
8051 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
8052 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
8053 type.
8054 (inf_ptrace_target::attach): Update.
8055 (inf_ptrace_target::files_info): Update.
8056 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
8057 type.
8058 (go32_nat_target::pid_to_str): Change return type.
8059 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
8060 (gnu_nat_target::wait): Update.
8061 (gnu_nat_target::wait): Update.
8062 (gnu_nat_target::resume): Update.
8063 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
8064 (fbsd_nat_target::wait): Update.
8065 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
8066 type.
8067 (darwin_nat_target::attach): Update.
8068 * corelow.c (class core_target) <pid_to_str>: Change return type.
8069 (core_target::pid_to_str): Change return type.
8070 * target.c (normal_pid_to_str): Change return type.
8071 (default_pid_to_str): Likewise.
8072 (target_pid_to_str): Change return type.
8073 (target_translate_tls_address): Update.
8074 (target_announce_detach): Update.
8075 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
8076 return type.
8077 (bsd_uthread_target::pid_to_str): Change return type.
8078 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
8079 type.
8080 (bsd_kvm_target::pid_to_str): Change return type.
8081 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
8082 return type.
8083 (aix_thread_target::pid_to_str): Change return type.
8084 * target.h (struct target_ops) <pid_to_str>: Change return type.
8085 (target_pid_to_str, normal_pid_to_str): Likewise.
8086 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
8087 type.
8088 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
8089 type.
8090 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
8091 return type.
8092 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
8093 type.
8094 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
8095 type.
8096 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
8097 return type.
8098
80992019-03-13 Simon Marchi <simon.marchi@ericsson.com>
8100
8101 * NEWS: Mention that the new default MI version is 3. Mention
8102 changes to the output of commands and events that deal with
8103 multi-location breakpoints.
8104 * breakpoint.c: Include "mi/mi-out.h".
8105 (print_one_breakpoint): Change output syntax if using MI version
8106 >= 3.
8107 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
8108 New.
8109 (mi_multi_location_breakpoint_output_fixed): New.
8110 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
8111 (mi_cmd_fix_multi_location_breakpoint_output): New.
8112 (mi_multi_location_breakpoint_output_fixed): New.
8113 * mi/mi-cmds.c (mi_cmds): Register command
8114 -fix-multi-location-breakpoint-output.
8115 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
8116 interpreter "mi".
8117
81182019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8119
8120 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
8121 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
8122 instantiate mi_ui_out based on interpreter name.
8123 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
8124 * mi/mi-main.c (mi_load_progress): Likewise.
8125
81262019-03-12 John Baldwin <jhb@FreeBSD.org>
8127
8128 * NEWS: Combine separate "New targets" sections for 8.3.
8129
81302019-03-12 John Baldwin <jhb@FreeBSD.org>
8131
8132 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
8133 (ppcfbsd_init_abi): Install gdbarch
8134 "fetch_tls_load_module_address" and "get_thread_local_address"
8135 methods.
8136
81372019-03-12 John Baldwin <jhb@FreeBSD.org>
8138
8139 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
8140 (riscv_fbsd_init_abi): Install gdbarch
8141 "fetch_tls_load_module_address" and "get_thread_local_address"
8142 methods.
8143
81442019-03-12 John Baldwin <jhb@FreeBSD.org>
8145
8146 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
8147 (i386fbsd_init_abi): Install gdbarch
8148 "fetch_tls_load_module_address" and "get_thread_local_address"
8149 methods.
8150
81512019-03-12 John Baldwin <jhb@FreeBSD.org>
8152
8153 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
8154 (amd64fbsd_init_abi): Install gdbarch
8155 "fetch_tls_load_module_address" and "get_thread_local_address"
8156 methods.
8157
81582019-03-12 John Baldwin <jhb@FreeBSD.org>
8159
8160 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
8161 (struct fbsd_pspace_data): New type.
8162 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
8163 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
8164 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
8165 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
8166 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
8167
81682019-03-12 John Baldwin <jhb@FreeBSD.org>
8169
8170 * gdbtypes.c (lookup_struct_elt): New function.
8171 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
8172 * gdbtypes.h (struct struct_elt): New type.
8173 (lookup_struct_elt): New prototype.
8174
81752019-03-12 John Baldwin <jhb@FreeBSD.org>
8176
8177 * gdbtypes.c (lookup_struct_elt_type): Update comment and
8178 remove disabled code block.
8179
81802019-03-12 John Baldwin <jhb@FreeBSD.org>
8181
8182 * gdbarch.sh (get_thread_local_address): New method.
8183 * gdbarch.h, gdbarch.c: Regenerate.
8184 * target.c (target_translate_tls_address): Use
8185 gdbarch_get_thread_local_address if present instead of
8186 target::get_thread_local_address.
8187
81882019-03-12 John Baldwin <jhb@FreeBSD.org>
8189
8190 * target.h (target::get_thread_local_address): Update comment.
8191
81922019-03-12 John Baldwin <jhb@FreeBSD.org>
8193
8194 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
8195 objfile->separate_debug_objfile_backlink if not NULL.
8196
81972019-03-12 John Baldwin <jhb@FreeBSD.org>
8198
8199 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
8200 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
8201 (amd64bsd_store_inferior_registers): Likewise.
8202 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
8203 Enable segment base registers.
8204 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
8205 PT_GETFSBASE and PT_GETGSBASE.
8206 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
8207 PT_SETGSBASE.
8208 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
8209 segment base registers.
8210 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
8211
82122019-03-12 John Baldwin <jhb@FreeBSD.org>
8213
8214 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
8215 Update calls to i386_target_description to add 'segments'
8216 parameter.
8217 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
8218 add segment base registers.
8219 * arch/i386.c (i386_create_target_description): Add 'segments'
8220 parameter to enable segment base registers.
8221 * arch/i386.h (i386_create_target_description): Likewise.
8222 * features/i386/32bit-segments.xml: New file.
8223 * features/i386/32bit-segments.c: Generate.
8224 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
8225 call to i386_target_description to add 'segments' parameter.
8226 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
8227 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
8228 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
8229 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
8230 if feature is present.
8231 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
8232 Add 'segments' parameter to call to i386_target_description.
8233 (i386_target_description): Add 'segments' parameter to enable
8234 segment base registers.
8235 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
8236 to call to i386_target_description.
8237 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
8238 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
8239 Define I386_NUM_REGS.
8240 (i386_target_description): Add 'segments' parameter to enable
8241 segment base registers.
8242
82432019-03-12 Eli Zaretskii <eliz@gnu.org>
8244
8245 PR/24325
8246 * source-cache.c: #undef open and close, to avoid unresolved
8247 externals during linking.
8248
82492019-03-12 Tom Tromey <tromey@adacore.com>
8250
8251 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
8252 const. Add initializers.
8253 (_initialize_remote): Don't initialize ptid globals.
8254
82552019-03-12 Pedro Alves <palves@redhat.com>
8256
8257 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
8258
82592019-03-12 Pedro Alves <palves@redhat.com>
8260
8261 * cp-name-parser.y (main): Remove unused 'len' variable.
8262
82632019-03-12 Tom Tromey <tromey@adacore.com>
8264
8265 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
8266 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
8267
82682019-03-12 Tom Tromey <tromey@adacore.com>
8269
8270 * linux-nat.c (iterate_over_lwps): Update.
8271 (stop_callback): Remove parameter.
8272 (stop_wait_callback, detach_callback, resume_set_callback)
8273 (select_singlestep_lwp_callback, set_ignore_sigint)
8274 (status_callback, resumed_callback, resume_clear_callback)
8275 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
8276 data parameter.
8277 (linux_nat_target::detach, linux_nat_target::resume)
8278 (linux_stop_and_wait_all_lwps, select_event_lwp)
8279 (linux_nat_filter_event, linux_nat_wait_1)
8280 (linux_nat_target::kill, linux_nat_target::stop)
8281 (linux_nat_target::stop): Update.
8282 (linux_nat_resume_callback): Change type.
8283 (resume_stopped_resumed_lwps, count_events_callback)
8284 (select_event_lwp_callback): Likewise.
8285 (linux_stop_lwp, linux_nat_stop_lwp): Update.
8286 * arm-linux-nat.c (struct update_registers_data): Remove.
8287 (update_registers_callback): Change type.
8288 (arm_linux_insert_hw_breakpoint1): Update.
8289 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
8290 parameter.
8291 (x86_linux_dr_set_addr): Update.
8292 (x86_linux_dr_set_control): Update.
8293 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
8294 (iterate_over_lwps): Use gdb::function_view.
8295 * nat/aarch64-linux-hw-point.c (struct
8296 aarch64_dr_update_callback_param): Remove.
8297 (debug_reg_change_callback): Change type.
8298 (aarch64_notify_debug_reg_change): Update.
8299 * s390-linux-nat.c (s390_refresh_per_info): Update.
8300
83012019-03-11 Tom Tromey <tromey@adacore.com>
8302
8303 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
8304 redundant assignment to "this_cu".
8305
83062019-03-08 Simon Marchi <simon.marchi@efficios.com>
8307
8308 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
8309
83102019-03-08 Simon Marchi <simon.marchi@efficios.com>
8311
8312 * gdbtypes.c (rank_one_type_parm_set): New function extracted
8313 from...
8314 (rank_one_type): ... this.
8315
83162019-03-08 Simon Marchi <simon.marchi@efficios.com>
8317
8318 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
8319 from...
8320 (rank_one_type): ... this.
8321
83222019-03-08 Simon Marchi <simon.marchi@efficios.com>
8323
8324 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
8325 from...
8326 (rank_one_type): ... this.
8327
83282019-03-08 Simon Marchi <simon.marchi@efficios.com>
8329
8330 * gdbtypes.c (rank_one_type_parm_float): New function extracted
8331 from...
8332 (rank_one_type): ... this.
8333
83342019-03-08 Simon Marchi <simon.marchi@efficios.com>
8335
8336 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
8337 from...
8338 (rank_one_type): ... this.
8339
83402019-03-08 Simon Marchi <simon.marchi@efficios.com>
8341
8342 * gdbtypes.c (rank_one_type_parm_range): New function extracted
8343 from...
8344 (rank_one_type): ... this.
8345
83462019-03-08 Simon Marchi <simon.marchi@efficios.com>
8347
8348 * gdbtypes.c (rank_one_type_parm_char): New function extracted
8349 from...
8350 (rank_one_type): ... this.
8351
83522019-03-08 Simon Marchi <simon.marchi@efficios.com>
8353
8354 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
8355 from...
8356 (rank_one_type): ... this.
8357
83582019-03-08 Simon Marchi <simon.marchi@efficios.com>
8359
8360 * gdbtypes.c (rank_one_type_parm_int): New function extracted
8361 from...
8362 (rank_one_type): ... this.
8363
83642019-03-08 Simon Marchi <simon.marchi@efficios.com>
8365
8366 * gdbtypes.c (rank_one_type_parm_func): New function extracted
8367 from...
8368 (rank_one_type): ... this.
8369
83702019-03-08 Simon Marchi <simon.marchi@efficios.com>
8371
8372 * gdbtypes.c (rank_one_type_parm_array): New function extracted
8373 from...
8374 (rank_one_type): ... this.
8375
83762019-03-08 Simon Marchi <simon.marchi@efficios.com>
8377
8378 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
8379 from...
8380 (rank_one_type): ... this.
8381
83822019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8383
8384 * inferior.c (initialize_inferiors): Ensure 'help set/show print
8385 inferior-events' shows the example events.
8386
83872019-03-08 Eli Zaretskii <eliz@gnu.org>
8388
8389 Support styling on native MS-Windows console
8390
8391 PR/24315
8392 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
8393 on MS-Windows if $TERM is not defined.
8394
8395 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
8396
8397 * posix-hdep.c (gdb_console_fputs):
8398 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
8399 functions.
8400 * ui-file.h (gdb_console_fputs): Add prototype.
8401
8402 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
8403 back to fputs only if the former returns zero.
8404
84052019-03-07 Tom Tromey <tom@tromey.com>
8406
8407 * symmisc.c (print_symbol_bcache_statistics): Update.
8408 (print_objfile_statistics): Update.
8409 * symfile.c (allocate_symtab): Update.
8410 * stabsread.c: Don't include bcache.h.
8411 * psymtab.h (struct psymbol_bcache): Don't declare.
8412 (class psymtab_storage) <psymbol_cache>: Now a bcache.
8413 (psymbol_bcache_init, psymbol_bcache_free)
8414 (psymbol_bcache_get_bcache): Don't declare.
8415 * psymtab.c (struct psymbol_bcache): Remove.
8416 (psymtab_storage::psymtab_storage): Update.
8417 (psymtab_storage::~psymtab_storage): Update.
8418 (psymbol_bcache_init, psymbol_bcache_free)
8419 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
8420 (add_psymbol_to_bcache): Update.
8421 (allocate_psymtab): Update.
8422 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8423 macro_cache>: No longer pointers.
8424 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
8425 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
8426 * macrotab.c (macro_bcache): Update.
8427 * macroexp.c: Don't include bcache.h.
8428 * gdbtypes.c (check_types_worklist): Update.
8429 (types_deeply_equal): Remove TRY/CATCH. Update.
8430 * elfread.c (elf_symtab_read): Update.
8431 * dwarf2read.c: Don't include bcache.h.
8432 * buildsym.c (buildsym_compunit::get_macro_table): Update.
8433 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
8434 (print_bcache_statistics, bcache_memory_used): Don't declare.
8435 (struct bcache): Move from bcache.c. Add constructor, destructor,
8436 methods. Rename all data members.
8437 * bcache.c (struct bcache): Move to bcache.h.
8438 (bcache::expand_hash_table): Rename from expand_hash_table.
8439 (bcache): Remove.
8440 (bcache::insert): Rename from bcache_full.
8441 (bcache::compare): Rename from bcache_compare.
8442 (bcache_xmalloc): Remove.
8443 (bcache::~bcache): Rename from bcache_xfree.
8444 (bcache::print_statistics): Rename from print_bcache_statistics.
8445 (bcache::memory_used): Rename from bcache_memory_used.
8446
84472019-03-07 Pedro Alves <palves@redhat.com>
8448
8449 * infrun.c (normal_stop): Also check for
8450 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
8451
84522019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
8453
8454 * f-lang.c (value_from_host_double): Moved to...
8455 * value.c (value_from_host_double): ...here.
8456 * value.h (value_from_host_double): Declare.
8457 * guile/scm-math.c (vlscm_convert_typed_number): Use
8458 value_from_host_double.
8459 (vlscm_convert_number): Likewise.
8460 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
8461 * python/py-value.c (convert_value_from_python): Likewise.
8462
84632019-03-06 Tom Tromey <tom@tromey.com>
8464
8465 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
8466
84672019-03-06 Tom Tromey <tom@tromey.com>
8468
8469 * utils.h (free_current_contents): Don't declare.
8470 * utils.c (free_current_contents): Remove.
8471
84722019-03-06 Tom Tromey <tom@tromey.com>
8473
8474 * top.c (quit_force): Update.
8475 * main.c (captured_command_loop): Update.
8476 * common/new-op.c (operator new): Update.
8477 * common/common-exceptions.c (struct catcher)
8478 <save_cleanup_chain>: Remove member.
8479 (exceptions_state_mc_init): Update.
8480 (exception_try_scope_entry): Return nullptr.
8481 (exception_try_scope_exit, exception_rethrow)
8482 (throw_exception_sjlj, throw_exception_cxx): Update.
8483 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
8484 (all_cleanups, do_cleanups, discard_cleanups)
8485 (discard_final_cleanups, save_cleanups, save_final_cleanups)
8486 (restore_cleanups, restore_final_cleanups): Don't declare.
8487 (do_final_cleanups): Remove parameter.
8488 * common/cleanups.c (cleanup_chain, make_cleanup)
8489 (make_cleanup_dtor, all_cleanups, do_cleanups)
8490 (discard_my_cleanups, discard_cleanups)
8491 (discard_final_cleanups, save_my_cleanups, save_cleanups)
8492 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
8493 (null_cleanup): Remove.
8494 (do_final_cleanups): Remove parameter.
8495
84962019-03-06 Tom Tromey <tom@tromey.com>
8497
8498 * remote.c (remote_target::remote_parse_stop_reply): Use
8499 unique_xmalloc_ptr.
8500
85012019-03-06 Tom Tromey <tom@tromey.com>
8502
8503 * stabsread.c (struct stabs_field_info): Rename from field_info.
8504 <list, fnlist>: Add initializers.
8505 <obstack>: New member.
8506 (read_member_functions, read_struct_fields, read_baseclasses):
8507 Allocate on obstack. Don't use cleanups.
8508 (read_one_struct_field, read_member_functions, read_struct_fields)
8509 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
8510 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
8511 (read_struct_type): Update.
8512
85132019-03-06 Tom Tromey <tom@tromey.com>
8514
8515 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
8516 * common/filestuff.h (make_cleanup_close): Don't declare.
8517 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
8518 Remove.
8519
85202019-03-06 Tom Tromey <tom@tromey.com>
8521
8522 * solib-aix.c: Use make_scope_exit.
8523
85242019-03-06 Tom Tromey <tom@tromey.com>
8525
8526 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
8527 Use make_scope_exit.
8528
85292019-03-06 Tom Tromey <tom@tromey.com>
8530
8531 * solib-svr4.c (disable_probes_interface): Remove parameter.
8532 (svr4_handle_solib_event): Use make_scope_exit.
8533
85342019-03-06 Tom Tromey <tom@tromey.com>
8535
8536 * remote.c (struct stop_reply_deleter): Remove.
8537 (stop_reply_up): Update.
8538 (struct stop_reply): Derive from notif_event. Don't typedef.
8539 <regcache>: Now a std::vector.
8540 (stop_reply_xfree): Remove.
8541 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
8542 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
8543 (remote_target::discard_pending_stop_replies): Use delete.
8544 (remote_target::remote_parse_stop_reply): Update.
8545 (remote_target::process_stop_reply): Update.
8546 * remote-notif.h (struct notif_event): Add virtual destructor.
8547 Remove "dtr" member.
8548 (struct notif_client) <alloc_event>: Return a unique_ptr.
8549 (notif_event_xfree): Don't declare.
8550 (notif_event_up): New typedef.
8551 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
8552 (notif_event_xfree, do_notif_event_xfree): Remove.
8553 (remote_notif_state_xfree): Update.
8554
85552019-03-06 Tom Tromey <tom@tromey.com>
8556
8557 * infrun.c (displaced_step_clear_cleanup): Now a
8558 forward_scope_exit type.
8559 (displaced_step_prepare_throw): Update.
8560 (displaced_step_fixup): Update.
8561
85622019-03-06 Tom Tromey <tom@tromey.com>
8563
8564 * inferior.h (class inferior): Update comment.
8565 * gdbthread.h (class thread_info): Update comment.
8566
85672019-03-06 Joel Brobecker <brobecker@adacore.com>
8568 Tom Tromey <tom@tromey.com>
8569
8570 * stabsread.h (struct stab_section_list): Remove.
8571 (coffstab_build_psymtabs): Update.
8572 * dbxread.c (symbuf_sections): Now a std::vector.
8573 (sect_idx): New global.
8574 (fill_symbuf): Update.
8575 (coffstab_build_psymtabs): Change type of stabsects parameter.
8576 Update.
8577 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
8578 std::vector.
8579 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
8580 (coff_locate_sections): Update.
8581 (coff_symfile_read): Remove cleanups. Update.
8582 (init_stringtab): Add storage parameter.
8583 (free_stringtab, free_stringtab_cleanup): Remove.
8584 (init_lineno): Add storage parameter.
8585 (free_linetab, free_linetab_cleanup): Remove.
8586
85872019-03-06 Pedro Alves <palves@redhat.com>
8588
8589 * linux-fork.c (fork_info::clobber_regs): Delete.
8590 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
8591 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
8592 comment. Adjust.
8593 (scoped_switch_fork_info::scoped_switch_fork_info)
8594 (checkpoint_command, linux_fork_context): Adjust
8595 fork_save_infrun_state calls.
8596
85972019-03-06 Pedro Alves <palves@redhat.com>
8598
8599 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
8600 (inf_has_multiple_threads): Return 'bool' and rewrite using
8601 inferior_info::threads().
8602
86032019-03-06 Pedro Alves <palves@redhat.com>
8604
8605 * linux-fork.c: Include <list>.
8606 (fork_list): Now a std::list instance.
8607 (fork_info): Add ctor, dtor, and in-class initialize all fields.
8608 (forks_exist_p, find_last_fork): Adjust.
8609 (new_fork): Delete.
8610 (one_fork_p): New.
8611 (add_fork): Adjust.
8612 (free_fork): Delete, folded into fork_info::~fork_info().
8613 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
8614 Adjust.
8615 (init_fork_list): Delete.
8616 (linux_fork_killall, linux_fork_mourn_inferior)
8617 (linux_fork_detach, info_checkpoints_command): Adjust.
8618 (_initialize_linux_fork): No longer call init_fork_list.
8619
86202019-03-06 Pedro Alves <palves@redhat.com>
8621
8622 * linux-fork.c (new_fork): New, split out of ...
8623 (add_fork): ... this. Return void. Move "first fork" special
8624 case from here, to ...
8625 (checkpoint_command): ... here.
8626 * linux-linux.h (add_fork): Return void.
8627
86282019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8629
8630 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
8631
86322019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8633 Chris January <chris.january@arm.com>
8634 David Lecomber <david.lecomber@arm.com>
8635
8636 * f-exp.y: New token, UNOP_INTRINSIC.
8637 (exp): New pattern using UNOP_INTRINSIC token.
8638 (f77_keywords): Add 'abs' keyword.
8639 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
8640 (value_from_host_double): New function.
8641 (evaluate_subexp_f): Support UNOP_ABS.
8642
86432019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8644
8645 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
8646 types.
8647
86482019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8649
8650 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
8651 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
8652 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
8653
86542019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8655
8656 * f-exp.y (convert_to_kind_type): Handle more type kinds.
8657
86582019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8659 Chris January <chris.january@arm.com>
8660
8661 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
8662 * f-exp.y: Define 'KIND' token.
8663 (exp): New pattern for KIND expressions.
8664 (ptype): Handle types with a kind extension.
8665 (direct_abs_decl): Extend to spot kind extensions.
8666 (f77_keywords): Add 'kind' to the list.
8667 (push_kind_type): New function.
8668 (convert_to_kind_type): New function.
8669 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
8670 * parse.c (operator_length_standard): Likewise.
8671 * parser-defs.h (enum type_pieces): Add tp_kind.
8672 * std-operator.def: Add UNOP_KIND.
8673
86742019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8675
8676 * f-exp.y (f_parse): Set yydebug.
8677
86782019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8679
8680 * f-lang.c (evaluate_subexp_f): New function.
8681 (exp_descriptor_f): New global.
8682 (f_language_defn): Use exp_descriptor_f instead of
8683 exp_descriptor_standard.
8684
86852019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8686
8687 * f-exp.y (struct token): Add comments.
8688 (dot_ops): Remove uppercase versions and the end marker.
8689 (f77_keywords): Likewise.
8690 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
8691 entries in the dot_ops array are case insensitive, and use
8692 strncasecmp to compare strings. Also some whitespace cleanup in
8693 this area. Similar for the f77_keywords array, except entries in
8694 this list might be case sensitive.
8695
86962019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8697
8698 * f-exp.y (struct f77_boolean_val): Add comments.
8699 (boolean_values): Remove uppercase versions, and end marker.
8700 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
8701 and use strncasecmp to achieve case insensitivity. Additionally,
8702 perform whitespace cleanup around this code.
8703
87042019-03-06 Tom Tromey <tromey@adacore.com>
8705
8706 * remote-sim.c (gdbsim_target_open): Use result of
8707 gdb_argv::release.
8708
87092019-03-06 Richard Bunt <richard.bunt@arm.com>
8710 Dirk Schubert <dirk.schubert@arm.com>
8711 Chris January <chris.january@arm.com>
8712
8713 * eval.c (evaluate_subexp_standard): Call Fortran argument
8714 wrapping logic.
8715 * f-lang.c (struct value): A value which can be passed into a
8716 Fortran function call.
8717 (fortran_argument_convert): Wrap Fortran arguments in a pointer
8718 where appropriate.
8719 (struct type): Value ready for a Fortran function call.
8720 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
8721 is needed.
8722 * f-lang.h (fortran_argument_convert): Declaration.
8723 (fortran_preserve_arg_pointer): Declaration.
8724 * infcall.c (value_arg_coerce): Call Fortran argument logic.
8725
87262019-03-05 Tom Tromey <tromey@adacore.com>
8727
8728 * python/py-prettyprint.c (print_string_repr): Remove #if.
8729 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
8730
87312019-03-05 Tom Tromey <tromey@adacore.com>
8732
8733 * target.c (the_dummy_target): Move later. Change type to
8734 "dummy_target".
8735 (initialize_targets): Don't initialize the_dummy_target.
8736
87372019-03-05 Tom Tromey <tromey@adacore.com>
8738
8739 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
8740 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
8741
87422019-03-05 Tom Tromey <tromey@adacore.com>
8743
8744 * windows-nat.c (windows_nat_target::attach)
8745 (windows_nat_target::detach): Don't call gdb_flush.
8746 * valprint.c (generic_val_print, val_print, val_print_string):
8747 Don't call gdb_flush.
8748 * utils.c (defaulted_query): Don't call gdb_flush.
8749 * typeprint.c (print_type_scalar): Don't call gdb_flush.
8750 * target.c (target_announce_detach): Don't call gdb_flush.
8751 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
8752 * remote.c (extended_remote_target::attach): Don't call
8753 gdb_flush.
8754 * procfs.c (procfs_target::detach): Don't call gdb_flush.
8755 * printcmd.c (do_examine): Don't call gdb_flush.
8756 (info_display_command): Don't call gdb_flush.
8757 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
8758 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
8759 * memattr.c (info_mem_command): Don't call gdb_flush.
8760 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
8761 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
8762 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
8763 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
8764 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
8765 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
8766 (gnu_nat_target::detach): Don't call gdb_flush.
8767 * f-valprint.c (f_val_print): Don't call gdb_flush.
8768 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
8769 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
8770 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
8771 gdb_flush.
8772 * c-valprint.c (c_val_print): Don't call gdb_flush.
8773 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
8774
87752019-03-05 Tom Tromey <tromey@adacore.com>
8776
8777 * varobj.c (update_dynamic_varobj_children): Update.
8778 (install_default_visualizer): Use reset, not release.
8779 * value.c (set_internalvar): Update.
8780 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
8781 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
8782 ATTRIBUTE_UNUSED_RESULT.
8783
87842019-03-05 Tom Tromey <tromey@adacore.com>
8785
8786 * remote.c (class scoped_remote_fd) <release>: Add
8787 ATTRIBUTE_UNUSED_RESULT.
8788
87892019-03-05 Tom Tromey <tromey@adacore.com>
8790
8791 * macroexp.c (struct macro_buffer) <release>: Add
8792 ATTRIBUTE_UNUSED_RESULT.
8793
87942019-03-05 Tom Tromey <tromey@adacore.com>
8795
8796 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
8797 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
8798 ATTRIBUTE_UNUSED_RESULT.
8799
88002019-03-05 Tom Tromey <tromey@adacore.com>
8801
8802 * common/scoped_fd.h (class scoped_fd) <release>: Add
8803 ATTRIBUTE_UNUSED_RESULT.
8804
88052019-03-05 Tom Tromey <tromey@adacore.com>
8806
8807 * parser-defs.h (struct parser_state) <release>: Add
8808 ATTRIBUTE_UNUSED_RESULT.
8809
88102019-03-05 Tom Tromey <tromey@adacore.com>
8811
8812 * utils.h (class gdb_argv) <release>: Add
8813 ATTRIBUTE_UNUSED_RESULT.
8814 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
8815
88162019-03-02 Eli Zaretskii <eliz@gnu.org>
8817
8818 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
8819 for-loop range, to avoid compiler warnings.
8820
8821 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
8822 avoid compiler warnings about unused variables.
8823
8824 * NEWS: Mention end of support for native debugging on MS-Windows
8825 before XP.
8826
8827 PR gdb/24292
8828 * common/netstuff.c:
8829 * gdbserver/gdbreplay.c
8830 * gdbserver/remote-utils.c:
8831 * ser-tcp.c:
8832 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
8833 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
8834 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
8835 'getaddrinfo' and 'freeaddrinfo' were not available before
8836 Windows XP, and mingw.org's MinGW headers by default define
8837 _WIN32_WINNT to 0x500.
8838
88392019-03-01 Gary Benson <gbenson@redhat.com>
8840
8841 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
8842
88432019-02-28 Brian Vandenberg <phantall@gmail.com>
8844 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8845
8846 PR gdb/8527
8847 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
8848 set_sigint_trap, clear_sigint_trap.
8849
88502019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8851
8852 * target.c (target_detach): Clear the regcache and the
8853 frame cache.
8854
88552019-02-27 Pedro Alves <palves@redhat.com>
8856
8857 * utils.c (set_screen_size): When we cap the height/width sizes,
8858 tweak the corresponding command variable to show "unlimited":
8859
88602019-02-27 Saagar Jha <saagar@saagarjha.com>
8861 Pedro Alves <palves@redhat.com>
8862
8863 * utils.c (set_screen_size): Reduce "infinite" rows and columns
8864 before calling rl_set_screen_size.
8865
88662019-02-27 Tom Tromey <tromey@adacore.com>
8867
8868 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
8869 define.
8870 * python/py-value.c: Remove Python 2.4 workaround.
8871 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
8872 workaround.
8873 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
8874 Python 2.4 workaround.
8875 * python/python-internal.h: Remove Python 2.4 comment.
8876 (Py_ssize_t): Don't define.
8877 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
8878 (gdb_Py_DECREF): Remove Python 2.4 workaround.
8879 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
8880 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
8881 * python/python.c (do_start_initialization): Remove Python 2.4
8882 workaround.
8883 * python/py-prettyprint.c (class dummy_python_frame): Remove.
8884 (print_children): Remove Python 2.4 workaround.
8885 * python/py-inferior.c (buffer_procs): Remove Python 2.4
8886 workaround.
8887 (CHARBUFFERPROC_NAME): Remove.
8888 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
8889 Python 2.4 workaround.
8890
88912019-02-27 Kevin Buettner <kevinb@redhat.com>
8892
8893 * NEWS: Note minimum Python version.
8894
88952019-02-27 Kevin Buettner <kevinb@redhat.com>
8896
8897 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
8898 code from these functions. Remove corresponding ifdefs. Use
8899 Py_buffer_up instead of explicit calls to PyBuffer_Release.
8900 Remove gotos and target of gotos.
8901 (infpy_search_memory): Likewise.
8902
89032019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8904
8905 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
8906 (hppa_gdbarch_init): Don't register deleted functions with
8907 gdbarch.
8908
89092019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8910
8911 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
8912 (h8300_unwind_sp): Delete.
8913 (h8300_dummy_id): Delete.
8914 (h8300_gdbarch_init): Don't register deleted functions with
8915 gdbarch.
8916
89172019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8918
8919 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
8920 (ft32_unwind_pc): Delete.
8921 (ft32_unwind_sp): Delete.
8922 (ft32_gdbarch_init): Don't register deleted functions with
8923 gdbarch.
8924
89252019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8926
8927 * gdb/frv-tdep.c (frv_dummy_id): Delete.
8928 (frv_unwind_pc): Delete.
8929 (frv_unwind_sp): Delete.
8930 (frv_gdbarch_init): Don't register deleted functions with
8931 gdbarch.
8932
89332019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8934
8935 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
8936 (riscv_unwind_pc): Delete.
8937 (riscv_unwind_sp): Delete.
8938 (riscv_gdbarch_init): Don't register deleted functions with
8939 gdbarch.
8940
89412019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8942
8943 * gdb/csky-tdep.c (csky_dummy_id): Delete.
8944 (csky_unwind_pc): Delete.
8945 (csky_unwind_sp): Delete.
8946 (csky_gdbarch_init): Don't register deleted functions with
8947 gdbarch.
8948
89492019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8950
8951 * gdb/cris-tdep.c (cris_dummy_id): Delete.
8952 (cris_unwind_pc): Delete.
8953 (cris_unwind_sp): Delete.
8954 (cris_gdbarch_init): Don't register deleted functions with
8955 gdbarch.
8956
89572019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8958
8959 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
8960 (bfin_unwind_pc): Delete.
8961 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
8962
89632019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8964
8965 * gdb/arm-tdep.c (arm_dummy_id): Delete.
8966 (arm_unwind_pc): Delete.
8967 (arm_unwind_sp): Delete.
8968 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
8969
89702019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8971
8972 * gdb/arc-tdep.c (arc_dummy_id): Delete.
8973 (arc_unwind_pc): Delete.
8974 (arc_unwind_sp): Delete.
8975 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
8976
89772019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8978
8979 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
8980 (alpha_unwind_pc): Delete.
8981 (alpha_gdbarch_init): Don't register deleted functions with
8982 gdbarch.
8983
89842019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8985
8986 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
8987 (aarch64_unwind_pc): Delete.
8988 (aarch64_unwind_sp): Delete.
8989 (aarch64_gdbarch_init): Don't register deleted functions with
8990 gdbarch.
8991
89922019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8993
8994 * gdbtypes.c (type_align): Don't consider static members when
8995 computing structure alignment.
8996
89972019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8998
8999 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
9000 return 0 for other types.
9001 * arch-utils.c (default_type_align): Always return 0.
9002 * gdbarch.h: Regenerate.
9003 * gdbarch.sh (type_align): Extend comment.
9004 * gdbtypes.c (type_align): Add additional comments, always call
9005 gdbarch_type_align before applying the default rules.
9006 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
9007 generic code will then apply a suitable default.
9008 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
9009 types, return 0 for other types.
9010
90112019-02-27 Joel Brobecker <brobecker@adacore.com>
9012
9013 * NEWS: Create a new section for the next release branch.
9014 Rename the section of the current branch, now that it has
9015 been cut.
9016
90172019-02-27 Joel Brobecker <brobecker@adacore.com>
9018
9019 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
9020 * version.in: Bump version to 8.3.50.DATE-git.
9021
90222019-02-26 Simon Marchi <simon.marchi@efficios.com>
9023
9024 * aix-thread.c (ptid_cmp): Remove unused variable.
9025 (get_signaled_thread): Likewise.
9026 (store_regs_user_thread): Likewise.
9027 (store_regs_kernel_thread): Likewise.
9028 (fetch_regs_kernel_thread): Remove shadowed variable.
9029
90302019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
9031
9032 * features/riscv/32bit-cpu.xml: Add register numbers.
9033 * features/riscv/32bit-fpu.c: Regenerate.
9034 * features/riscv/32bit-fpu.xml: Add register numbers.
9035 * features/riscv/64bit-cpu.xml: Add register numbers.
9036 * features/riscv/64bit-fpu.c: Regenerate.
9037 * features/riscv/64bit-fpu.xml: Add register numbers.
9038
90392019-02-26 Kevin Buettner <kevinb@redhat.com>
9040
9041 * NEWS: Mention two argument form of gdb.Value constructor.
9042 * python/py-value.c (convert_buffer_and_type_to_value): New
9043 function.
9044 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
9045 Add support for handling an optional second argument. Call
9046 convert_buffer_and_type_to_value as appropriate.
9047 * python/python-internal.h (Py_buffer_deleter): New struct.
9048 (Py_buffer_up): New typedef.
9049
90502019-02-25 John Baldwin <jhb@FreeBSD.org>
9051
9052 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
9053 instead of releasing ownership.
9054
90552019-02-25 Jordan Rupprecht <rupprecht@google.com>
9056
9057 * dwarf2read.c (open_and_init_dwp_file): Call
9058 elf_numsections instead of bfd_count_sections to initialize
9059 dwp_file->num_sections.
9060
90612019-02-25 Tom Tromey <tromey@adacore.com>
9062
9063 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
9064
90652019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
9066
9067 * gcore.in: Add '--readnever' option when invoking GDB.
9068
90692019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
9070
9071 * MAINTAINERS: Update my email address.
9072
90732019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
9074
9075 * build-id.c (build_id_to_debug_bfd_1): New function.
9076 (build_id_to_debug_bfd): Look for separate debug file in
9077 sysroot.
9078
90792019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
9080
9081 * gdbarch.sh: Update the copyright year range that is placed into
9082 generated files.
9083
90842019-02-22 Keith Seitz <keiths@redhat.com>
9085
9086 PR symtab/23853
9087 * linespec.c (create_sals_line_offset): Search for the default
9088 symtab's filename instead of its fullname.
9089
90902019-02-21 Alan Hayward <alan.hayward@arm.com>
9091
9092 * NEWS: Update style defaults.
9093
90942019-02-21 Alan Hayward <alan.hayward@arm.com>
9095
9096 * main.c (captured_main_1): Disable styling in batch mode.
9097
90982019-02-20 Tom Tromey <tom@tromey.com>
9099
9100 * symtab.c (symtab_symbol_info): Fix typos.
9101
91022019-02-20 Tom Tromey <tromey@adacore.com>
9103
9104 * findcmd.c (_initialize_mem_search): Use upper case for
9105 metasyntactic variables.
9106
91072019-02-20 Alan Hayward <alan.hayward@arm.com>
9108
9109 * aarch64-tdep.c (aarch64_add_reggroups): New function.
9110 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
9111
91122019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
9113
9114 * top.h (source_file_name): Change to std::string.
9115 * top.c (source_file_name): Likewise.
9116 (command_line_input): Adjust.
9117 * cli/cli-script.c (script_from_file): Adjust.
9118
91192019-02-19 Tom Tromey <tromey@adacore.com>
9120
9121 * ravenscar-thread.c
9122 (ravenscar_thread_target::update_thread_list): Don't call
9123 ada_build_task_list.
9124 * ada-lang.h (ada_build_task_list): Don't declare.
9125 * ada-tasks.c (struct ada_tasks_inferior_data)
9126 <task_list_valid_p>: Now bool.
9127 (read_known_tasks, ada_task_list_changed)
9128 (ada_tasks_invalidate_inferior_data): Update.
9129 (read_known_tasks_array): Return bool.
9130 (read_known_tasks_list): Likewise.
9131 (read_known_tasks): Return void.
9132 (ada_build_task_list): Now static.
9133
91342019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
9135
9136 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
9137 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
9138
91392019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9140
9141 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
9142 variant for ada_tasks_pspace_data_handle and
9143 ada_tasks_inferior_data_handle.
9144 (ada_tasks_pspace_data_cleanup): New function.
9145 (ada_tasks_inferior_data_cleanup): New function.
9146
91472019-02-17 Tom Tromey <tom@tromey.com>
9148
9149 * macrotab.h (macro_source_fullname): Return a std::string.
9150 * macrotab.c (macro_include, check_for_redefinition)
9151 (macro_undef, macro_lookup_definition, foreach_macro)
9152 (foreach_macro_in_scope): Update.
9153 (macro_source_fullname): Return a std::string.
9154 * macrocmd.c (show_pp_source_pos): Update.
9155
91562019-02-17 Tom Tromey <tom@tromey.com>
9157
9158 * macrocmd.c (show_pp_source_pos): Style the file names.
9159
91602019-02-17 Tom Tromey <tom@tromey.com>
9161
9162 PR tui/24197:
9163 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
9164
91652019-02-17 Tom Tromey <tom@tromey.com>
9166
9167 * ada-lang.c (user_select_syms): Use filtered printing.
9168 * utils.c (wrap_style): New global.
9169 (desired_style): Remove.
9170 (emit_style_escape): Add stream parameter.
9171 (set_output_style, reset_terminal_style, prompt_for_continue):
9172 Update.
9173 (flush_wrap_buffer): Only flush gdb_stdout.
9174 (wrap_here): Set wrap_style.
9175 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
9176 treat escape sequences as a character. Change when wrap buffer is
9177 flushed.
9178 (fputs_styled): Do not set the output style when the default is
9179 requested.
9180 * ui-style.h (struct ui_file_style) <is_default>: New method.
9181 * source.c (print_source_lines_base): Emit escape sequences in one
9182 piece.
9183
91842019-02-17 Joel Brobecker <brobecker@adacore.com>
9185
9186 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
9187 integers and enumeration types.
9188
91892019-02-17 Joel Brobecker <brobecker@adacore.com>
9190
9191 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
9192 instead of lookup_symbol_in_language
9193 (do_exact_match): New function.
9194 (ada_get_symbol_name_matcher): Return do_exact_match when
9195 doing a verbatim match.
9196
91972019-02-15 Tom Tromey <tromey@adacore.com>
9198
9199 * ravenscar-thread.c (ravenscar_thread_target::resume)
9200 (ravenscar_thread_target::wait): Special case wildcard requests.
9201
92022019-02-15 Tom Tromey <tromey@adacore.com>
9203
9204 * ravenscar-thread.c (base_ptid): Remove.
9205 (struct ravenscar_thread_target) <close>: New method.
9206 <m_base_ptid>: New member.
9207 <update_inferior_ptid, active_task, task_is_currently_active,
9208 runtime_initialized>: Declare methods.
9209 <ravenscar_thread_target>: Add constructor.
9210 (ravenscar_thread_target::task_is_currently_active)
9211 (ravenscar_thread_target::update_inferior_ptid)
9212 (ravenscar_runtime_initialized): Rename. Now methods.
9213 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
9214 (ravenscar_thread_target::update_thread_list): Update.
9215 (ravenscar_thread_target::active_task): Now method.
9216 (ravenscar_thread_target::store_registers)
9217 (ravenscar_thread_target::prepare_to_store)
9218 (ravenscar_thread_target::prepare_to_store)
9219 (ravenscar_thread_target::mourn_inferior): Update.
9220 (ravenscar_inferior_created): Use "new" to create target.
9221 (ravenscar_thread_target::get_ada_task_ptid): Update.
9222 (_initialize_ravenscar): Don't initialize base_ptid.
9223 (ravenscar_ops): Remove global.
9224
92252019-02-15 Tom Tromey <tromey@adacore.com>
9226
9227 * target.h (push_target): Declare new overload.
9228 * target.c (push_target): New overload, taking an rvalue reference.
9229 * remote.c (remote_target::open_1): Use push_target overload.
9230 * corelow.c (core_target_open): Use push_target overload.
9231
92322019-02-15 Tom Tromey <tromey@adacore.com>
9233
9234 * ravenscar-thread.c (is_ravenscar_task)
9235 (ravenscar_task_is_currently_active): Return bool.
9236 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
9237 (_initialize_ravenscar): Remove "(void)".
9238 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
9239 Return bool.
9240
92412019-02-15 Tom Tromey <tromey@adacore.com>
9242
9243 * ravenscar-thread.c (ravenscar_runtime_initializer)
9244 (has_ravenscar_runtime, get_running_thread_id)
9245 (ravenscar_thread_target::resume): Fix indentation.
9246
92472019-02-15 Tom Tromey <tromey@adacore.com>
9248
9249 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
9250 from ravenscar_arch_ops.
9251 (sparc_ravenscar_ops::fetch_registers)
9252 (sparc_ravenscar_ops::store_registers): Now methods.
9253 (sparc_ravenscar_prepare_to_store): Remove.
9254 (sparc_ravenscar_ops): Redefine.
9255 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
9256 methods and destructor. Remove members.
9257 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
9258 (ravenscar_thread_target::store_registers)
9259 (ravenscar_thread_target::prepare_to_store): Update.
9260 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
9261 Remove.
9262 (struct ppc_ravenscar_powerpc_ops): Derive from
9263 ravenscar_arch_ops.
9264 (ppc_ravenscar_powerpc_ops::fetch_registers)
9265 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
9266 (ppc_ravenscar_powerpc_ops): Redefine.
9267 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
9268 (ppc_ravenscar_e500_ops::fetch_registers)
9269 (ppc_ravenscar_e500_ops::store_registers): Now methods.
9270 (ppc_ravenscar_e500_ops): Redefine.
9271 * aarch64-ravenscar-thread.c
9272 (aarch64_ravenscar_generic_prepare_to_store): Remove.
9273 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
9274 (aarch64_ravenscar_fetch_registers)
9275 (aarch64_ravenscar_store_registers): Now methods.
9276 (aarch64_ravenscar_ops): Redefine.
9277
92782019-02-15 Tom Tromey <tromey@adacore.com>
9279
9280 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
9281 (ravenscar_thread_target::stopped_by_hw_breakpoint)
9282 (ravenscar_thread_target::stopped_by_watchpoint)
9283 (ravenscar_thread_target::stopped_data_address)
9284 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
9285
92862019-02-15 Tom Tromey <tromey@adacore.com>
9287
9288 * ravenscar-thread.c: Fix some typos.
9289
92902019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9291 Tom Tromey <tromey@adacore.com>
9292
9293 * ada-lang.c (ada_exception_sal): Change addr_string to a
9294 std::string.
9295 (create_ada_exception_catchpoint): Update.
9296
92972019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9298 Tom Tromey <tromey@adacore.com>
9299
9300 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
9301 (bp_location_ops): Remove.
9302 (base_breakpoint_allocate_location): Update.
9303 (free_bp_location): Update.
9304 * ada-lang.c (class ada_catchpoint_location)
9305 <ada_catchpoint_location>: Remove ops parameter.
9306 (ada_catchpoint_location_dtor): Remove.
9307 (ada_catchpoint_location_ops): Remove.
9308 (allocate_location_exception): Update.
9309 * breakpoint.h (struct bp_location_ops): Remove.
9310 (class bp_location) <bp_location>: Remove bp_location_ops
9311 parameter.
9312 <~bp_location>: Add destructor.
9313 <ops>: Remove.
9314
93152019-02-14 Thomas Schwinge <thomas@codesourcery.com>
9316 Pedro Alves <palves@redhat.com>
9317
9318 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
9319 'PATH_MAX'.
9320
93212019-02-14 David Michael <fedora.dm0@gmail.com>
9322 Samuel Thibault <samuel.thibault@gnu.org>
9323 Thomas Schwinge <thomas@codesourcery.com>
9324
9325 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
9326 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
9327
93282019-02-14 Thomas Schwinge <thomas@codesourcery.com>
9329
9330 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
9331 (check_empty): Use "const char *".
9332
9333 * gnu-nat.c (gnu_nat_target::detach): Instead of
9334 'detach_inferior (pid)' call
9335 'detach_inferior (find_inferior_pid (pid))'.
9336
9337 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
9338 'nat/fork-inferior.o'.
9339 * gnu-nat.c: #include "nat/fork-inferior.h".
9340
9341 * gnu-nat.c (gnu_nat_target::detach): Instead of
9342 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
9343 * gnu-nat.h: #include "inf-child.h".
9344 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
9345 'i386_gnu_nat_target::fetch_registers'.
9346 (gnu_store_registers): Rename/move to
9347 'i386_gnu_nat_target::store_registers'.
9348
9349 * config/i386/nm-i386gnu.h: Don't "#include" any files.
9350 * gnu-nat.h (mach_thread_info): New function.
9351 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
9352
9353 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
9354
93552019-02-14 Frederic Konrad <konrad@adacore.com>
9356
9357 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
9358
93592019-02-14 Joel Brobecker <brobecker@adacore.com>
9360
9361 * windows-nat.c (windows_add_thread): Add new parameter
9362 "main_thread_p" with default value set to false. Update
9363 function documentation as well as all callers.
9364 (windows_delete_thread): Likewise.
9365 (fake_create_process): Update call to windows_add_thread.
9366 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
9367 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
9368 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
9369 call to windows_delete_thread.
9370
93712019-02-13 Simon Marchi <simon.marchi@ericsson.com>
9372
9373 * MAINTAINERS: Add Andrew Burgess as global maintainer.
9374
93752019-02-12 John Baldwin <jhb@FreeBSD.org>
9376
9377 * symfile.c (find_separate_debug_file): Use canonical path of
9378 sysroot with child_path instead of gdb_sysroot if it is valid.
9379
93802019-02-12 John Baldwin <jhb@FreeBSD.org>
9381
9382 * symfile.c (find_separate_debug_file): Use child_path to
9383 determine if an object file is under a sysroot.
9384
93852019-02-12 John Baldwin <jhb@FreeBSD.org>
9386
9387 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9388 unittests/child-path-selftests.c.
9389 * common/pathstuff.c (child_path): New function.
9390 * common/pathstuff.h (child_path): New prototype.
9391 * unittests/child-path-selftests.c: New file.
9392
93932019-02-12 John Baldwin <jhb@FreeBSD.org>
9394
9395 * symfile.c (find_separate_debug_file): Look for separate debug
9396 files in debug directories under the sysroot.
9397
93982019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9399
9400 * symtab.h (struct minimal_symbol data_p): New const method.
9401 (struct minimal_symbol text_p): Likewise.
9402 * symtab.c (output_source_filename): Use file name style
9403 to print file name.
9404 (print_symbol_info): Likewise.
9405 (print_msymbol_info): Use address style to print addresses.
9406 Use function name style to print executable text symbols.
9407 (expand_symtab_containing_pc): Use data_p.
9408 (find_pc_sect_compunit_symtab): Likewise.
9409
94102019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9411
9412 * breakpoint.c (describe_other_breakpoints): Use address style
9413 to print addresses.
9414 (say_where): Likewise.
9415
94162019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9417
9418 * ada-typeprint.c (print_func_type): Print function name
9419 style to print function name.
9420 * c-typeprint.c (c_print_type_1): Likewise.
9421
94222019-02-11 Alan Hayward <alan.hayward@arm.com>
9423
9424 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
9425 for execve.
9426
94272019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9428
9429 * c-exp.y (direct_abs_decl): Use emplace_back to record the
9430 type_stack.
9431
94322019-02-10 Joel Brobecker <brobecker@adacore.com>
9433
9434 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
9435 TYPE_CODE_REF types.
9436
94372019-02-08 Jim Wilson <jimw@sifive.com>
9438
9439 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
9440 (riscv_linux_fregset): New.
9441 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
9442
94432019-02-07 Tom Tromey <tom@tromey.com>
9444
9445 * thread.c (thread_cancel_execution_command): Update.
9446 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
9447 methods.
9448 (struct thread_fsm_ops): Remove.
9449 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
9450 (thread_fsm_should_stop, thread_fsm_return_value)
9451 (thread_fsm_set_finished, thread_fsm_finished_p)
9452 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
9453 Don't declare.
9454 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
9455 * infrun.c (clear_proceed_status_thread)
9456 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
9457 (print_stop_event): Update.
9458 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
9459 Add constructor.
9460 (step_command_fsm_ops): Remove.
9461 (new_step_command_fsm): Remove.
9462 (step_1): Update.
9463 (step_command_fsm::should_stop): Rename from
9464 step_command_fsm_should_stop.
9465 (step_command_fsm::clean_up): Rename from
9466 step_command_fsm_clean_up.
9467 (step_command_fsm::do_async_reply_reason): Rename from
9468 step_command_fsm_async_reply_reason.
9469 (struct until_next_fsm): Inherit from thread_fsm. Add
9470 constructor.
9471 (until_next_fsm_ops): Remove.
9472 (new_until_next_fsm): Remove.
9473 (until_next_fsm::should_stop): Rename from
9474 until_next_fsm_should_stop.
9475 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
9476 (until_next_fsm::do_async_reply_reason): Rename from
9477 until_next_fsm_async_reply_reason.
9478 (struct finish_command_fsm): Inherit from thread_fsm. Add
9479 constructor. Change type of breakpoint.
9480 (finish_command_fsm_ops): Remove.
9481 (new_finish_command_fsm): Remove.
9482 (finish_command_fsm::should_stop): Rename from
9483 finish_command_fsm_should_stop.
9484 (finish_command_fsm::clean_up): Rename from
9485 finish_command_fsm_clean_up.
9486 (finish_command_fsm::return_value): Rename from
9487 finish_command_fsm_return_value.
9488 (finish_command_fsm::do_async_reply_reason): Rename from
9489 finish_command_fsm_async_reply_reason.
9490 (finish_command): Update.
9491 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
9492 Add constructor.
9493 (call_thread_fsm_ops): Remove.
9494 (call_thread_fsm::call_thread_fsm): Rename from
9495 new_call_thread_fsm.
9496 (call_thread_fsm::should_stop): Rename from
9497 call_thread_fsm_should_stop.
9498 (call_thread_fsm::should_notify_stop): Rename from
9499 call_thread_fsm_should_notify_stop.
9500 (run_inferior_call, call_function_by_hand_dummy): Update.
9501 * cli/cli-interp.c (should_print_stop_to_console): Update.
9502 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
9503 Add constructor. Change type of location_breakpoint,
9504 caller_breakpoint.
9505 (until_break_fsm_ops): Remove.
9506 (new_until_break_fsm): Remove.
9507 (until_break_fsm::should_stop): Rename from
9508 until_break_fsm_should_stop.
9509 (until_break_fsm::clean_up): Rename from
9510 until_break_fsm_clean_up.
9511 (until_break_fsm::do_async_reply_reason): Rename from
9512 until_break_fsm_async_reply_reason.
9513 (until_break_command): Update.
9514 * thread-fsm.c: Remove.
9515 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
9516
95172019-02-07 Tom Tromey <tom@tromey.com>
9518
9519 * yy-remap.h: Add include guard.
9520 * xtensa-tdep.h: Add include guard.
9521 * xcoffread.h: Rename include guard.
9522 * varobj-iter.h: Add include guard.
9523 * tui/tui.h: Rename include guard.
9524 * tui/tui-winsource.h: Rename include guard.
9525 * tui/tui-wingeneral.h: Rename include guard.
9526 * tui/tui-windata.h: Rename include guard.
9527 * tui/tui-win.h: Rename include guard.
9528 * tui/tui-stack.h: Rename include guard.
9529 * tui/tui-source.h: Rename include guard.
9530 * tui/tui-regs.h: Rename include guard.
9531 * tui/tui-out.h: Rename include guard.
9532 * tui/tui-layout.h: Rename include guard.
9533 * tui/tui-io.h: Rename include guard.
9534 * tui/tui-hooks.h: Rename include guard.
9535 * tui/tui-file.h: Rename include guard.
9536 * tui/tui-disasm.h: Rename include guard.
9537 * tui/tui-data.h: Rename include guard.
9538 * tui/tui-command.h: Rename include guard.
9539 * tic6x-tdep.h: Add include guard.
9540 * target/waitstatus.h: Rename include guard.
9541 * target/wait.h: Rename include guard.
9542 * target/target.h: Rename include guard.
9543 * target/resume.h: Rename include guard.
9544 * target-float.h: Rename include guard.
9545 * stabsread.h: Add include guard.
9546 * rs6000-tdep.h: Add include guard.
9547 * riscv-fbsd-tdep.h: Add include guard.
9548 * regformats/regdef.h: Rename include guard.
9549 * record.h: Rename include guard.
9550 * python/python.h: Rename include guard.
9551 * python/python-internal.h: Rename include guard.
9552 * python/py-stopevent.h: Rename include guard.
9553 * python/py-ref.h: Rename include guard.
9554 * python/py-record.h: Rename include guard.
9555 * python/py-record-full.h: Rename include guard.
9556 * python/py-record-btrace.h: Rename include guard.
9557 * python/py-instruction.h: Rename include guard.
9558 * python/py-events.h: Rename include guard.
9559 * python/py-event.h: Rename include guard.
9560 * procfs.h: Add include guard.
9561 * proc-utils.h: Add include guard.
9562 * p-lang.h: Add include guard.
9563 * or1k-tdep.h: Rename include guard.
9564 * observable.h: Rename include guard.
9565 * nto-tdep.h: Rename include guard.
9566 * nat/x86-linux.h: Rename include guard.
9567 * nat/x86-linux-dregs.h: Rename include guard.
9568 * nat/x86-gcc-cpuid.h: Add include guard.
9569 * nat/x86-dregs.h: Rename include guard.
9570 * nat/x86-cpuid.h: Rename include guard.
9571 * nat/ppc-linux.h: Rename include guard.
9572 * nat/mips-linux-watch.h: Rename include guard.
9573 * nat/linux-waitpid.h: Rename include guard.
9574 * nat/linux-ptrace.h: Rename include guard.
9575 * nat/linux-procfs.h: Rename include guard.
9576 * nat/linux-osdata.h: Rename include guard.
9577 * nat/linux-nat.h: Rename include guard.
9578 * nat/linux-namespaces.h: Rename include guard.
9579 * nat/linux-btrace.h: Rename include guard.
9580 * nat/glibc_thread_db.h: Rename include guard.
9581 * nat/gdb_thread_db.h: Rename include guard.
9582 * nat/gdb_ptrace.h: Rename include guard.
9583 * nat/fork-inferior.h: Rename include guard.
9584 * nat/amd64-linux-siginfo.h: Rename include guard.
9585 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
9586 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
9587 * nat/aarch64-linux.h: Rename include guard.
9588 * nat/aarch64-linux-hw-point.h: Rename include guard.
9589 * mn10300-tdep.h: Add include guard.
9590 * mips-linux-tdep.h: Add include guard.
9591 * mi/mi-parse.h: Rename include guard.
9592 * mi/mi-out.h: Rename include guard.
9593 * mi/mi-main.h: Rename include guard.
9594 * mi/mi-interp.h: Rename include guard.
9595 * mi/mi-getopt.h: Rename include guard.
9596 * mi/mi-console.h: Rename include guard.
9597 * mi/mi-common.h: Rename include guard.
9598 * mi/mi-cmds.h: Rename include guard.
9599 * mi/mi-cmd-break.h: Rename include guard.
9600 * m2-lang.h: Add include guard.
9601 * location.h: Rename include guard.
9602 * linux-record.h: Rename include guard.
9603 * linux-nat.h: Add include guard.
9604 * linux-fork.h: Add include guard.
9605 * i386-darwin-tdep.h: Rename include guard.
9606 * hppa-linux-offsets.h: Add include guard.
9607 * guile/guile.h: Rename include guard.
9608 * guile/guile-internal.h: Rename include guard.
9609 * gnu-nat.h: Rename include guard.
9610 * gdb-stabs.h: Rename include guard.
9611 * frv-tdep.h: Add include guard.
9612 * f-lang.h: Add include guard.
9613 * event-loop.h: Add include guard.
9614 * darwin-nat.h: Rename include guard.
9615 * cp-abi.h: Rename include guard.
9616 * config/sparc/nm-sol2.h: Rename include guard.
9617 * config/nm-nto.h: Rename include guard.
9618 * config/nm-linux.h: Add include guard.
9619 * config/i386/nm-i386gnu.h: Rename include guard.
9620 * config/djgpp/nl_types.h: Rename include guard.
9621 * config/djgpp/langinfo.h: Rename include guard.
9622 * compile/gcc-cp-plugin.h: Add include guard.
9623 * compile/gcc-c-plugin.h: Add include guard.
9624 * compile/compile.h: Rename include guard.
9625 * compile/compile-object-run.h: Rename include guard.
9626 * compile/compile-object-load.h: Rename include guard.
9627 * compile/compile-internal.h: Rename include guard.
9628 * compile/compile-cplus.h: Rename include guard.
9629 * compile/compile-c.h: Rename include guard.
9630 * common/xml-utils.h: Rename include guard.
9631 * common/x86-xstate.h: Rename include guard.
9632 * common/version.h: Rename include guard.
9633 * common/vec.h: Rename include guard.
9634 * common/tdesc.h: Rename include guard.
9635 * common/selftest.h: Rename include guard.
9636 * common/scoped_restore.h: Rename include guard.
9637 * common/scoped_mmap.h: Rename include guard.
9638 * common/scoped_fd.h: Rename include guard.
9639 * common/safe-iterator.h: Rename include guard.
9640 * common/run-time-clock.h: Rename include guard.
9641 * common/refcounted-object.h: Rename include guard.
9642 * common/queue.h: Rename include guard.
9643 * common/ptid.h: Rename include guard.
9644 * common/print-utils.h: Rename include guard.
9645 * common/preprocessor.h: Rename include guard.
9646 * common/pathstuff.h: Rename include guard.
9647 * common/observable.h: Rename include guard.
9648 * common/netstuff.h: Rename include guard.
9649 * common/job-control.h: Rename include guard.
9650 * common/host-defs.h: Rename include guard.
9651 * common/gdb_wait.h: Rename include guard.
9652 * common/gdb_vecs.h: Rename include guard.
9653 * common/gdb_unlinker.h: Rename include guard.
9654 * common/gdb_unique_ptr.h: Rename include guard.
9655 * common/gdb_tilde_expand.h: Rename include guard.
9656 * common/gdb_sys_time.h: Rename include guard.
9657 * common/gdb_string_view.h: Rename include guard.
9658 * common/gdb_splay_tree.h: Rename include guard.
9659 * common/gdb_setjmp.h: Rename include guard.
9660 * common/gdb_ref_ptr.h: Rename include guard.
9661 * common/gdb_optional.h: Rename include guard.
9662 * common/gdb_locale.h: Rename include guard.
9663 * common/gdb_assert.h: Rename include guard.
9664 * common/filtered-iterator.h: Rename include guard.
9665 * common/filestuff.h: Rename include guard.
9666 * common/fileio.h: Rename include guard.
9667 * common/environ.h: Rename include guard.
9668 * common/common-utils.h: Rename include guard.
9669 * common/common-types.h: Rename include guard.
9670 * common/common-regcache.h: Rename include guard.
9671 * common/common-inferior.h: Rename include guard.
9672 * common/common-gdbthread.h: Rename include guard.
9673 * common/common-exceptions.h: Rename include guard.
9674 * common/common-defs.h: Rename include guard.
9675 * common/common-debug.h: Rename include guard.
9676 * common/cleanups.h: Rename include guard.
9677 * common/buffer.h: Rename include guard.
9678 * common/btrace-common.h: Rename include guard.
9679 * common/break-common.h: Rename include guard.
9680 * cli/cli-utils.h: Rename include guard.
9681 * cli/cli-style.h: Rename include guard.
9682 * cli/cli-setshow.h: Rename include guard.
9683 * cli/cli-script.h: Rename include guard.
9684 * cli/cli-interp.h: Rename include guard.
9685 * cli/cli-decode.h: Rename include guard.
9686 * cli/cli-cmds.h: Rename include guard.
9687 * charset-list.h: Add include guard.
9688 * buildsym-legacy.h: Rename include guard.
9689 * bfin-tdep.h: Add include guard.
9690 * ax.h: Rename include guard.
9691 * arm-linux-tdep.h: Add include guard.
9692 * arm-fbsd-tdep.h: Add include guard.
9693 * arch/xtensa.h: Rename include guard.
9694 * arch/tic6x.h: Add include guard.
9695 * arch/i386.h: Add include guard.
9696 * arch/arm.h: Rename include guard.
9697 * arch/arm-linux.h: Rename include guard.
9698 * arch/arm-get-next-pcs.h: Rename include guard.
9699 * arch/amd64.h: Add include guard.
9700 * arch/aarch64-insn.h: Rename include guard.
9701 * arch-utils.h: Rename include guard.
9702 * annotate.h: Add include guard.
9703 * amd64-darwin-tdep.h: Rename include guard.
9704 * aarch64-linux-tdep.h: Add include guard.
9705 * aarch64-fbsd-tdep.h: Add include guard.
9706 * aarch32-linux-nat.h: Add include guard.
9707
97082019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9709
9710 * macrotab.c (macro_define_internal): New function that
9711 factorizes macro_define_object_internal and macro_define_function
9712 code.
9713 (macro_define_object_internal): Use macro_define_internal.
9714 (macro_define_function): Likewise.
9715
97162019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9717
9718 * macrocmd.c (extract_identifier): Return
9719 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
9720 callers.
9721
97222019-02-06 John Baldwin <jhb@FreeBSD.org>
9723
9724 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
9725
97262019-02-05 Tom Tromey <tom@tromey.com>
9727
9728 * target.c (target_stack::unpush): Move assertion earlier.
9729
97302019-01-30 Tom Tromey <tom@tromey.com>
9731
9732 PR python/23615:
9733 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
9734 (gdbpy_parse_and_eval): Likewise.
9735 * python/python-internal.h (gdbpy_allow_threads): New class.
9736
97372019-01-28 John Baldwin <jhb@FreeBSD.org>
9738
9739 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
9740 (aarch64_fbsd_fpregmap): Move earlier.
9741 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
9742 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
9743 instead of individual calls to trad_frame_set_reg_addr.
9744 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
9745 earlier.
9746 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
9747 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
9748 instead of individual calls to trad_frame_set_reg_addr.
9749
97502019-01-28 Alan Hayward <alan.hayward@arm.com>
9751
9752 * CONTRIBUTE: Replace contribution list with wiki link.
9753
97542019-01-25 Tom Tromey <tom@tromey.com>
9755
9756 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
9757
97582019-01-25 Tom Tromey <tom@tromey.com>
9759
9760 * xtensa-linux-nat.c: Fix common/ includes.
9761 * xml-support.h: Fix common/ includes.
9762 * xml-support.c: Fix common/ includes.
9763 * x86-linux-nat.c: Fix common/ includes.
9764 * windows-nat.c: Fix common/ includes.
9765 * varobj.h: Fix common/ includes.
9766 * varobj.c: Fix common/ includes.
9767 * value.c: Fix common/ includes.
9768 * valops.c: Fix common/ includes.
9769 * utils.c: Fix common/ includes.
9770 * unittests/xml-utils-selftests.c: Fix common/ includes.
9771 * unittests/utils-selftests.c: Fix common/ includes.
9772 * unittests/unpack-selftests.c: Fix common/ includes.
9773 * unittests/tracepoint-selftests.c: Fix common/ includes.
9774 * unittests/style-selftests.c: Fix common/ includes.
9775 * unittests/string_view-selftests.c: Fix common/ includes.
9776 * unittests/scoped_restore-selftests.c: Fix common/ includes.
9777 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
9778 * unittests/scoped_fd-selftests.c: Fix common/ includes.
9779 * unittests/rsp-low-selftests.c: Fix common/ includes.
9780 * unittests/parse-connection-spec-selftests.c: Fix common/
9781 includes.
9782 * unittests/optional-selftests.c: Fix common/ includes.
9783 * unittests/offset-type-selftests.c: Fix common/ includes.
9784 * unittests/observable-selftests.c: Fix common/ includes.
9785 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
9786 * unittests/memrange-selftests.c: Fix common/ includes.
9787 * unittests/memory-map-selftests.c: Fix common/ includes.
9788 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
9789 * unittests/function-view-selftests.c: Fix common/ includes.
9790 * unittests/environ-selftests.c: Fix common/ includes.
9791 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
9792 * unittests/common-utils-selftests.c: Fix common/ includes.
9793 * unittests/cli-utils-selftests.c: Fix common/ includes.
9794 * unittests/array-view-selftests.c: Fix common/ includes.
9795 * ui-file.c: Fix common/ includes.
9796 * tui/tui-io.c: Fix common/ includes.
9797 * tracepoint.h: Fix common/ includes.
9798 * tracepoint.c: Fix common/ includes.
9799 * tracefile-tfile.c: Fix common/ includes.
9800 * top.h: Fix common/ includes.
9801 * top.c: Fix common/ includes.
9802 * thread.c: Fix common/ includes.
9803 * target/waitstatus.h: Fix common/ includes.
9804 * target/waitstatus.c: Fix common/ includes.
9805 * target.h: Fix common/ includes.
9806 * target.c: Fix common/ includes.
9807 * target-memory.c: Fix common/ includes.
9808 * target-descriptions.c: Fix common/ includes.
9809 * symtab.h: Fix common/ includes.
9810 * symfile.c: Fix common/ includes.
9811 * stap-probe.c: Fix common/ includes.
9812 * spu-linux-nat.c: Fix common/ includes.
9813 * sparc-nat.c: Fix common/ includes.
9814 * source.c: Fix common/ includes.
9815 * solib.c: Fix common/ includes.
9816 * solib-target.c: Fix common/ includes.
9817 * ser-unix.c: Fix common/ includes.
9818 * ser-tcp.c: Fix common/ includes.
9819 * ser-pipe.c: Fix common/ includes.
9820 * ser-base.c: Fix common/ includes.
9821 * selftest-arch.c: Fix common/ includes.
9822 * s12z-tdep.c: Fix common/ includes.
9823 * rust-exp.y: Fix common/ includes.
9824 * rs6000-aix-tdep.c: Fix common/ includes.
9825 * riscv-tdep.c: Fix common/ includes.
9826 * remote.c: Fix common/ includes.
9827 * remote-notif.h: Fix common/ includes.
9828 * remote-fileio.h: Fix common/ includes.
9829 * remote-fileio.c: Fix common/ includes.
9830 * regcache.h: Fix common/ includes.
9831 * regcache.c: Fix common/ includes.
9832 * record-btrace.c: Fix common/ includes.
9833 * python/python.c: Fix common/ includes.
9834 * python/py-type.c: Fix common/ includes.
9835 * python/py-inferior.c: Fix common/ includes.
9836 * progspace.h: Fix common/ includes.
9837 * producer.c: Fix common/ includes.
9838 * procfs.c: Fix common/ includes.
9839 * proc-api.c: Fix common/ includes.
9840 * printcmd.c: Fix common/ includes.
9841 * ppc-linux-nat.c: Fix common/ includes.
9842 * parser-defs.h: Fix common/ includes.
9843 * osdata.c: Fix common/ includes.
9844 * obsd-nat.c: Fix common/ includes.
9845 * nat/x86-linux.c: Fix common/ includes.
9846 * nat/x86-linux-dregs.c: Fix common/ includes.
9847 * nat/x86-dregs.h: Fix common/ includes.
9848 * nat/x86-dregs.c: Fix common/ includes.
9849 * nat/ppc-linux.c: Fix common/ includes.
9850 * nat/mips-linux-watch.h: Fix common/ includes.
9851 * nat/mips-linux-watch.c: Fix common/ includes.
9852 * nat/linux-waitpid.c: Fix common/ includes.
9853 * nat/linux-ptrace.h: Fix common/ includes.
9854 * nat/linux-ptrace.c: Fix common/ includes.
9855 * nat/linux-procfs.c: Fix common/ includes.
9856 * nat/linux-personality.c: Fix common/ includes.
9857 * nat/linux-osdata.c: Fix common/ includes.
9858 * nat/linux-namespaces.c: Fix common/ includes.
9859 * nat/linux-btrace.h: Fix common/ includes.
9860 * nat/linux-btrace.c: Fix common/ includes.
9861 * nat/fork-inferior.c: Fix common/ includes.
9862 * nat/amd64-linux-siginfo.c: Fix common/ includes.
9863 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
9864 * nat/aarch64-linux.c: Fix common/ includes.
9865 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
9866 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
9867 * namespace.h: Fix common/ includes.
9868 * mips-linux-tdep.c: Fix common/ includes.
9869 * minsyms.c: Fix common/ includes.
9870 * mi/mi-parse.h: Fix common/ includes.
9871 * mi/mi-main.c: Fix common/ includes.
9872 * mi/mi-cmd-env.c: Fix common/ includes.
9873 * memrange.h: Fix common/ includes.
9874 * memattr.c: Fix common/ includes.
9875 * maint.h: Fix common/ includes.
9876 * maint.c: Fix common/ includes.
9877 * main.c: Fix common/ includes.
9878 * machoread.c: Fix common/ includes.
9879 * location.c: Fix common/ includes.
9880 * linux-thread-db.c: Fix common/ includes.
9881 * linux-nat.c: Fix common/ includes.
9882 * linux-fork.c: Fix common/ includes.
9883 * inline-frame.c: Fix common/ includes.
9884 * infrun.c: Fix common/ includes.
9885 * inflow.c: Fix common/ includes.
9886 * inferior.h: Fix common/ includes.
9887 * inferior.c: Fix common/ includes.
9888 * infcmd.c: Fix common/ includes.
9889 * inf-ptrace.c: Fix common/ includes.
9890 * inf-child.c: Fix common/ includes.
9891 * ia64-linux-nat.c: Fix common/ includes.
9892 * i387-tdep.c: Fix common/ includes.
9893 * i386-tdep.c: Fix common/ includes.
9894 * i386-linux-tdep.c: Fix common/ includes.
9895 * i386-linux-nat.c: Fix common/ includes.
9896 * i386-go32-tdep.c: Fix common/ includes.
9897 * i386-fbsd-tdep.c: Fix common/ includes.
9898 * i386-fbsd-nat.c: Fix common/ includes.
9899 * guile/scm-type.c: Fix common/ includes.
9900 * guile/guile.c: Fix common/ includes.
9901 * go32-nat.c: Fix common/ includes.
9902 * gnu-nat.c: Fix common/ includes.
9903 * gdbthread.h: Fix common/ includes.
9904 * gdbarch-selftests.c: Fix common/ includes.
9905 * gdb_usleep.c: Fix common/ includes.
9906 * gdb_select.h: Fix common/ includes.
9907 * gdb_bfd.c: Fix common/ includes.
9908 * gcore.c: Fix common/ includes.
9909 * fork-child.c: Fix common/ includes.
9910 * findvar.c: Fix common/ includes.
9911 * fbsd-nat.c: Fix common/ includes.
9912 * event-top.c: Fix common/ includes.
9913 * event-loop.c: Fix common/ includes.
9914 * dwarf2read.c: Fix common/ includes.
9915 * dwarf2loc.c: Fix common/ includes.
9916 * dwarf2-frame.c: Fix common/ includes.
9917 * dwarf-index-cache.c: Fix common/ includes.
9918 * dtrace-probe.c: Fix common/ includes.
9919 * disasm-selftests.c: Fix common/ includes.
9920 * defs.h: Fix common/ includes.
9921 * csky-tdep.c: Fix common/ includes.
9922 * cp-valprint.c: Fix common/ includes.
9923 * cp-support.h: Fix common/ includes.
9924 * cp-support.c: Fix common/ includes.
9925 * corelow.c: Fix common/ includes.
9926 * completer.h: Fix common/ includes.
9927 * completer.c: Fix common/ includes.
9928 * compile/compile.c: Fix common/ includes.
9929 * compile/compile-loc2c.c: Fix common/ includes.
9930 * compile/compile-cplus-types.c: Fix common/ includes.
9931 * compile/compile-cplus-symbols.c: Fix common/ includes.
9932 * command.h: Fix common/ includes.
9933 * cli/cli-dump.c: Fix common/ includes.
9934 * cli/cli-cmds.c: Fix common/ includes.
9935 * charset.c: Fix common/ includes.
9936 * build-id.c: Fix common/ includes.
9937 * btrace.h: Fix common/ includes.
9938 * btrace.c: Fix common/ includes.
9939 * breakpoint.h: Fix common/ includes.
9940 * breakpoint.c: Fix common/ includes.
9941 * ax.h:
9942 (enum agent_op): Fix common/ includes.
9943 * ax-general.c (struct aop_map): Fix common/ includes.
9944 * ax-gdb.c: Fix common/ includes.
9945 * auxv.c: Fix common/ includes.
9946 * auto-load.c: Fix common/ includes.
9947 * arm-tdep.c: Fix common/ includes.
9948 * arch/riscv.c: Fix common/ includes.
9949 * arch/ppc-linux-common.c: Fix common/ includes.
9950 * arch/i386.c: Fix common/ includes.
9951 * arch/arm.c: Fix common/ includes.
9952 * arch/arm-linux.c: Fix common/ includes.
9953 * arch/arm-get-next-pcs.c: Fix common/ includes.
9954 * arch/amd64.c: Fix common/ includes.
9955 * arch/aarch64.c: Fix common/ includes.
9956 * arch/aarch64-insn.c: Fix common/ includes.
9957 * arch-utils.c: Fix common/ includes.
9958 * amd64-windows-tdep.c: Fix common/ includes.
9959 * amd64-tdep.c: Fix common/ includes.
9960 * amd64-sol2-tdep.c: Fix common/ includes.
9961 * amd64-obsd-tdep.c: Fix common/ includes.
9962 * amd64-nbsd-tdep.c: Fix common/ includes.
9963 * amd64-linux-tdep.c: Fix common/ includes.
9964 * amd64-linux-nat.c: Fix common/ includes.
9965 * amd64-fbsd-tdep.c: Fix common/ includes.
9966 * amd64-fbsd-nat.c: Fix common/ includes.
9967 * amd64-dicos-tdep.c: Fix common/ includes.
9968 * amd64-darwin-tdep.c: Fix common/ includes.
9969 * agent.c: Fix common/ includes.
9970 * ada-lang.h: Fix common/ includes.
9971 * ada-lang.c: Fix common/ includes.
9972 * aarch64-tdep.c: Fix common/ includes.
9973
99742019-01-25 Tom Tromey <tom@tromey.com>
9975
9976 * common/create-version.sh: Use common/version.h.
9977
99782019-01-24 Pedro Alves <palves@redhat.com>
9979
9980 * infrun.c (signal_stop, signal_print, signal_program)
9981 (signal_catch, signal_pass): Now arrays instead of pointers.
9982 (update_signals_program_target, do_target_resume)
9983 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
9984 * linux-nat.c (linux_nat_target::pass_signals)
9985 (linux_nat_target::create_inferior, linux_nat_target::attach):
9986 Adjust.
9987 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
9988 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
9989 * procfs.c (procfs_target::pass_signals): Adjust.
9990 * record-full.c (record_full_target::resume): Adjust.
9991 * remote.c (remote_target::pass_signals)
9992 (remote_target::program_signals): Adjust.
9993 * target-debug.h (target_debug_print_signals): Now takes a
9994 gdb::array_view as parameter. Adjust.
9995 * target.h (target_ops) <pass_signals, program_signals>: Replace
9996 pointer and length parameters with gdb::array_view.
9997 (target_pass_signals, target_program_signals): Likewise.
9998 * target-delegates.c: Regenerate.
9999
100002019-01-24 Pedro Alves <palves@redhat.com>
10001
10002 * common/forward-scope-exit.h
10003 (forward_scope_exit::forward_scope_exit): Pass arguments to
10004 m_bind_function directly, instead of creating a std::bind and
10005 copying that.
10006
100072019-01-24 Alan Hayward <alan.hayward@arm.com>
10008
10009 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
10010 for static members.
10011 (pass_in_v_vfp_candidate): Likewise.
10012
100132019-01-23 Tom Tromey <tom@tromey.com>
10014 Pedro Alves <palves@redhat.com>
10015
10016 * regcache.c (class regcache_invalidator): Remove.
10017 (regcache::raw_write): Use make_scope_exit.
10018
100192019-01-23 Tom Tromey <tom@tromey.com>
10020
10021 * ui-out.h (class ui_out_emit_type): Update comment.
10022
100232019-01-23 Tom Tromey <tom@tromey.com>
10024
10025 * infrun.c (fetch_inferior_event): Update comment.
10026
100272019-01-23 Tom Tromey <tom@tromey.com>
10028 Pedro Alves <palves@redhat.com>
10029
10030 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
10031 parameter.
10032 (fetch_inferior_event): Use SCOPE_EXIT.
10033
10034
100352019-01-23 Tom Tromey <tom@tromey.com>
10036 Pedro Alves <palves@redhat.com>
10037
10038 * infrun.c (disable_thread_events): Delete.
10039 (stop_all_threads): Use SCOPE_EXIT.
10040
100412019-01-23 Tom Tromey <tom@tromey.com>
10042 Pedro Alves <palves@redhat.com>
10043
10044 * symfile.c: Include forward-scope-exit.h.
10045 (clear_symtab_users_cleanup): Replace forward declaration with
10046 a FORWARD_SCOPE_EXIT.
10047 (syms_from_objfile_1): Use the forward_scope_exit and
10048 gdb::optional instead of cleanup_function.
10049 (reread_symbols): Use the forward_scope_exit instead of
10050 cleanup_function.
10051 (clear_symtab_users_cleanup): Remove function.
10052
100532019-01-23 Tom Tromey <tom@tromey.com>
10054 Pedro Alves <palves@redhat.com>
10055
10056 * linux-nat.c: Include scope-exit.h.
10057 (cleanup_target_stop): Remove.
10058 (linux_nat_target::static_tracepoint_markers_by_strid): Use
10059 SCOPE_EXIT.
10060
100612019-01-23 Tom Tromey <tom@tromey.com>
10062 Pedro Alves <palves@redhat.com>
10063
10064 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
10065 (call_function_by_hand_dummy): Use SCOPE_EXIT.
10066
100672019-01-23 Tom Tromey <tom@tromey.com>
10068 Andrew Burgess <andrew.burgess@embecosm.com>
10069 Pedro Alves <palves@redhat.com>
10070
10071 * infrun.c (fetch_inferior_event): Use scope_exit.
10072 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
10073 * top.c (execute_command): Use scope_exit.
10074 * breakpoint.c (bpstat_do_actions): Use scope_exit.
10075 * utils.c (do_bpstat_clear_actions_cleanup)
10076 (make_bpstat_clear_actions_cleanup): Remove.
10077
100782019-01-23 Tom Tromey <tom@tromey.com>
10079 Pedro Alves <palves@redhat.com>
10080
10081 * infrun.c: Include "common/scope-exit.h"
10082 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
10083 (wait_for_inferior): Use SCOPE_EXIT.
10084 (fetch_inferior_event): Use scope_exit.
10085
100862019-01-23 Tom Tromey <tom@tromey.com>
10087 Pedro Alves <palves@redhat.com>
10088
10089 * breakpoint.c (create_breakpoint): Remove cleanup.
10090
100912019-01-23 Tom Tromey <tom@tromey.com>
10092 Andrew Burgess <andrew.burgess@embecosm.com>
10093 Pedro Alves <palves@redhat.com>
10094
100952019-01-23 Pedro Alves <palves@redhat.com>
10096
10097 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
10098
100992019-01-23 Pedro Alves <palves@redhat.com>
10100 Andrew Burgess <andrew.burgess@embecosm.com>
10101
10102 * gdbthread.h: Include "common/forward-scope-exit.h".
10103 (scoped_finish_thread_state): Redefine custom class in terms of
10104 forward_scope_exit.
10105
101062019-01-23 Pedro Alves <palves@redhat.com>
10107 Andrew Burgess <andrew.burgess@embecosm.com>
10108
10109 * common/forward-scope-exit.h: New file.
10110
101112019-01-23 Pedro Alves <palves@redhat.com>
10112 Andrew Burgess <andrew.burgess@embecosm.com>
10113 Tom Tromey <tom@tromey.com>
10114
10115 * common/scope-exit.h: New file.
10116
101172019-01-23 Pedro Alves <palves@redhat.com>
10118
10119 * common/preprocessor.h (ESC): Rename to ...
10120 (ESC_PARENS): ... this.
10121 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
10122 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
10123
101242019-01-23 Tom Tromey <tom@tromey.com>
10125
10126 * language.h (class scoped_switch_to_sym_language_if_auto):
10127 Initialize m_lang in both cases.
10128
101292019-01-23 Alan Hayward <alan.hayward@arm.com>
10130
10131 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
10132 with XCNEW.
10133
101342019-01-22 Tom Tromey <tom@tromey.com>
10135
10136 * corelow.c: Do not include sys/file.h.
10137
101382019-01-22 Tom Tromey <tom@tromey.com>
10139
10140 * tui/tui-wingeneral.h: Include gdb_curses.h.
10141
101422019-01-22 Tom Tromey <tom@tromey.com>
10143
10144 * source-cache.h (class source_cache) <get_source_lines,
10145 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
10146
101472019-01-22 Tom Tromey <tom@tromey.com>
10148
10149 * remote-fileio.h (struct remote_target): Declare.
10150
101512019-01-22 Tom Tromey <tom@tromey.com>
10152
10153 * python/py-arch.c: Do not include py-ref.h.
10154 * python/py-bpevent.c: Do not include py-ref.h.
10155 * python/py-cmd.c: Do not include py-ref.h.
10156 * python/py-continueevent.c: Do not include py-ref.h.
10157 * python/py-event.h: Do not include py-ref.h.
10158 * python/py-evtregistry.c: Do not include py-ref.h.
10159 * python/py-finishbreakpoint.c: Do not include py-ref.h.
10160 * python/py-frame.c: Do not include py-ref.h.
10161 * python/py-framefilter.c: Do not include py-ref.h.
10162 * python/py-function.c: Do not include py-ref.h.
10163 * python/py-infevents.c: Do not include py-ref.h.
10164 * python/py-linetable.c: Do not include py-ref.h.
10165 * python/py-objfile.c: Do not include py-ref.h.
10166 * python/py-param.c: Do not include py-ref.h.
10167 * python/py-prettyprint.c: Do not include py-ref.h.
10168 * python/py-progspace.c: Do not include py-ref.h.
10169 * python/py-symbol.c: Do not include py-ref.h.
10170 * python/py-symtab.c: Do not include py-ref.h.
10171 * python/py-type.c: Do not include py-ref.h.
10172 * python/py-unwind.c: Do not include py-ref.h.
10173 * python/py-utils.c: Do not include py-ref.h.
10174 * python/py-value.c: Do not include py-ref.h.
10175 * python/py-varobj.c: Do not include py-ref.h.
10176 * python/py-xmethods.c: Do not include py-ref.h.
10177 * python/python.c: Do not include py-ref.h.
10178 * varobj.c: Do not include py-ref.h.
10179
101802019-01-22 Tom Tromey <tom@tromey.com>
10181
10182 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
10183 keyword for bcache.
10184
101852019-01-22 Tom Tromey <tom@tromey.com>
10186
10187 * compile/compile-cplus-types.c: Remove a comment by #include.
10188
101892019-01-22 Tom Tromey <tom@tromey.com>
10190
10191 * compile/gcc-c-plugin.h: Include compile-internal.h.
10192
101932019-01-22 Tom Tromey <tom@tromey.com>
10194
10195 * stabsread.c (EXTERN): Do not define.
10196 (symnum, next_symbol_text_func, processing_gcc_compilation)
10197 (within_function, global_sym_chain, global_stabs)
10198 (previous_stab_code, this_object_header_files)
10199 (n_this_object_header_files)
10200 (n_allocated_this_object_header_files): Define.
10201 * stabsread.h (EXTERN): Never define. Use "extern".
10202
102032019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10204
10205 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
10206 history_value.
10207
102082019-01-21 Tom Tromey <tom@tromey.com>
10209
10210 * ui-out.c: Fix includes.
10211 * tui/tui-source.c: Fix includes.
10212 * target.c: Fix includes.
10213 * remote.c: Fix includes.
10214 * regcache.c: Fix includes.
10215 * python/py-block.c: Fix includes.
10216 * printcmd.c: Fix includes.
10217 * or1k-tdep.c: Fix includes.
10218 * mi/mi-main.c: Fix includes.
10219 * m32r-tdep.c: Fix includes.
10220 * csky-tdep.c: Fix includes.
10221 * compile/compile-cplus-types.c: Fix includes.
10222 * cli/cli-interp.c: Fix includes.
10223
102242019-01-21 Alan Hayward <alan.hayward@arm.com>
10225
10226 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
10227 for padding.
10228
102292019-01-16 Tom Tromey <tom@tromey.com>
10230
10231 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
10232 earlier.
10233 (struct objfile) <msymbols_range>: Move from top level.
10234 <msymbols>: New method.
10235 (class objfile_msymbols): Remove.
10236 * symtab.c (default_collect_symbol_completion_matches_break_on):
10237 Update.
10238 * symmisc.c (dump_msymbols): Update.
10239 * stabsread.c (scan_file_globals): Update.
10240 * objc-lang.c (info_selectors_command, info_classes_command)
10241 (find_methods): Update.
10242 * minsyms.c (find_solib_trampoline_target): Update.
10243 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
10244 * coffread.c (coff_symfile_read): Update.
10245 * ada-lang.c (ada_lookup_simple_minsym)
10246 (ada_collect_symbol_completion_matches): Update.
10247
102482019-01-16 Tom Tromey <tom@tromey.com>
10249
10250 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
10251 type. Remove no-argument constructor.
10252 <iterator::operator++>: Simplify.
10253 <begin>: Update.
10254 <end>: Use minimal_symbol_count.
10255
102562019-01-16 Tom Tromey <tom@tromey.com>
10257
10258 * objfiles.h (struct objfile) <psymtabs>: New method.
10259 (class objfile_psymtabs): Remove.
10260 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
10261 typedef.
10262 <range>: New method.
10263 (require_partial_symbols): Change return type.
10264 * psymtab.c (require_partial_symbols)
10265 (psym_expand_symtabs_matching): Update.
10266 * mdebugread.c (parse_partial_symbols): Update.
10267 * dbxread.c (dbx_end_psymtab): Update.
10268
102692019-01-15 Tom Tromey <tom@tromey.com>
10270
10271 * symtab.c (lookup_objfile_from_block)
10272 (lookup_symbol_in_objfile_symtabs)
10273 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
10274 (find_line_symtab, info_sources_command)
10275 (default_collect_symbol_completion_matches_break_on)
10276 (make_source_files_completion_list): Update.
10277 * symmisc.c (print_objfile_statistics, dump_objfile)
10278 (maintenance_print_symbols, maintenance_info_symtabs)
10279 (maintenance_check_symtabs, maintenance_info_line_tables):
10280 Update.
10281 * source.c (select_source_symtab)
10282 (forget_cached_source_info_for_objfile): Update.
10283 * objfiles.h (class objfile_compunits): Remove.
10284 (struct objfile) <compunits_range>: New typedef.
10285 (compunits): New method.
10286 * objfiles.c (objfile_relocate1): Update.
10287 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
10288 * maint.c (count_symtabs_and_blocks): Update.
10289 * linespec.c (iterate_over_all_matching_symtabs): Update.
10290 * cp-support.c (add_symbol_overload_list_qualified): Update.
10291 * coffread.c (coff_symtab_read): Update.
10292 * ada-lang.c (add_nonlocal_symbols)
10293 (ada_collect_symbol_completion_matches)
10294 (ada_add_global_exceptions): Update.
10295
102962019-01-15 Tom Tromey <tom@tromey.com>
10297
10298 * progspace.h (program_space) <objfiles_safe_range>: New
10299 typedef.
10300 <objfiles_safe>: New method.
10301 * objfiles.h (class all_objfiles_safe): Remove.
10302 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
10303 * jit.c (jit_inferior_exit_hook): Update.
10304
103052019-01-17 Tom Tromey <tom@tromey.com>
10306
10307 * progspace.h (program_space) <objfiles_range>: New typedef.
10308 <objfiles>: New method.
10309 <objfiles_head>: Rename from objfiles.
10310 (object_files): Update.
10311 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
10312 * guile/scm-pretty-print.c
10313 (ppscm_find_pretty_printer_from_objfiles): Update.
10314 * guile/scm-objfile.c (gdbscm_objfiles): Update.
10315 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
10316 Update.
10317 * python/py-progspace.c (pspy_get_objfiles): Update.
10318 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
10319 Update.
10320 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
10321 (objfpy_lookup_objfile_by_build_id): Update.
10322 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
10323 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
10324 Update.
10325 * symtab.c (iterate_over_symtabs, matching_obj_sections)
10326 (expand_symtab_containing_pc, lookup_objfile_from_block)
10327 (lookup_static_symbol, basic_lookup_transparent_type)
10328 (find_pc_sect_compunit_symtab, find_symbol_at_address)
10329 (find_line_symtab, info_sources_command)
10330 (default_collect_symbol_completion_matches_break_on)
10331 (make_source_files_completion_list, find_main_name): Update.
10332 * symmisc.c (print_symbol_bcache_statistics)
10333 (print_objfile_statistics, maintenance_print_symbols)
10334 (maintenance_print_msymbols, maintenance_print_objfiles)
10335 (maintenance_info_symtabs, maintenance_check_symtabs)
10336 (maintenance_expand_symtabs, maintenance_info_line_tables):
10337 Update.
10338 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
10339 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
10340 (map_overlay_command, unmap_overlay_command)
10341 (simple_overlay_update, expand_symtabs_matching)
10342 (map_symbol_filenames): Update.
10343 * symfile-debug.c (set_debug_symfile): Update.
10344 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
10345 Update.
10346 * source.c (select_source_symtab, forget_cached_source_info):
10347 Update.
10348 * solib.c (solib_read_symbols): Update.
10349 * solib-spu.c (append_ocl_sos): Update.
10350 * psymtab.c (maintenance_print_psymbols)
10351 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
10352 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
10353 * printcmd.c (info_symbol_command): Update.
10354 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
10355 Update.
10356 * objfiles.h (class all_objfiles): Remove.
10357 * objfiles.c (have_partial_symbols, have_full_symbols)
10358 (have_minimal_symbols, qsort_cmp, update_section_map)
10359 (shared_objfile_contains_address_p)
10360 (default_iterate_over_objfiles_in_search_order): Update.
10361 * objc-lang.c (info_selectors_command, info_classes_command)
10362 (find_methods): Update.
10363 * minsyms.c (find_solib_trampoline_target): Update.
10364 * maint.c (maintenance_info_sections)
10365 (maintenance_translate_address, count_symtabs_and_blocks):
10366 Update.
10367 * main.c (captured_main_1): Update.
10368 * linux-thread-db.c (try_thread_db_load_from_pdir)
10369 (has_libpthread): Update.
10370 * linespec.c (iterate_over_all_matching_symtabs)
10371 (search_minsyms_for_name): Update.
10372 * jit.c (jit_find_objf_with_entry_addr): Update.
10373 * hppa-tdep.c (find_unwind_entry)
10374 (hppa_lookup_stub_minimal_symbol): Update.
10375 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
10376 Update.
10377 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
10378 (elf_gnu_ifunc_resolve_by_got): Update.
10379 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
10380 * dwarf-index-write.c (save_gdb_index_command): Update.
10381 * cp-support.c (add_symbol_overload_list_qualified): Update.
10382 * breakpoint.c (create_overlay_event_breakpoint)
10383 (create_longjmp_master_breakpoint)
10384 (create_std_terminate_master_breakpoint)
10385 (create_exception_master_breakpoint): Update.
10386 * blockframe.c (find_pc_partial_function): Update.
10387 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
10388 (ada_collect_symbol_completion_matches)
10389 (ada_add_global_exceptions): Update.
10390
103912019-01-17 Tom Tromey <tom@tromey.com>
10392
10393 * solib-target.c (lm_info_target_p): Remove typedef. Don't
10394 declare VEC.
10395 (solib_target_parse_libraries): Change return type.
10396 (library_list_start_segment, library_list_start_section)
10397 (library_list_end_library, library_list_start_library); Update.
10398 (solib_target_free_library_list): Remove.
10399 (solib_target_parse_libraries): Remove cleanup. Change return
10400 type.
10401 (solib_target_current_sos): Update.
10402
104032019-01-17 Tom Tromey <tromey@bapiya>
10404
10405 * valprint.c: Replace "the the" with "the".
10406 * symtab.c: Replace "the the" with "the".
10407 * solib.c: Replace "the the" with "the".
10408 * solib-dsbt.c: Replace "the the" with "the".
10409 * linespec.c: Replace "the the" with "the".
10410 * dwarf2loc.h: Replace "the the" with "the".
10411 * amd64-windows-tdep.c: Replace "the the" with "the".
10412 * aarch64-tdep.c: Replace "the the" with "the".
10413
104142019-01-16 Keith Seitz <keiths@redhat.com>
10415
10416 PR gdb/23773
10417 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
10418 <builder>: Rename to ..
10419 <m_builder>: ... this and make private.
10420 (dwarf2_cu::get_builder): New method. Change all users of
10421 `builder' to use this method.
10422 (dwarf2_start_symtab): Move to ...
10423 (dwarf2_cu::start_symtab): ... here. Update all callers
10424 (setup_type_unit_groups): Move to ...
10425 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
10426 callers.
10427 (dwarf2_cu::reset_builder): New method.
10428 (process_full_compunit, process_full_type_unit): Use
10429 dwarf2_cu::reset_builder.
10430 (follow_die_offset): Record the ancestor CU if it is different
10431 from the followed DIE's CU.
10432 (follow_die_sig_1): Likewise.
10433
104342019-01-15 Tom Tromey <tom@tromey.com>
10435
10436 * remote.c (class remote_state) <buf>: Now a char_vector.
10437 <buf_size>: Remove.
10438 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
10439 parameter.
10440 (remote_target::getpkt_or_notif_sane_1)
10441 (remote_target::getpkt_sane)
10442 (remote_target::getpkt_or_notif_sane): Likewise.
10443 (class remote_target) <putpkt>: New overload.
10444 (remote_target::read_frame): Change type of "buf_p". Remove
10445 sizeof_p parameter.
10446 (packet_ok): New overload.
10447 (packet_check_result): New overload.
10448 Update all uses.
10449
104502019-01-14 Tom Tromey <tom@tromey.com>
10451
10452 * remote-notif.c (handle_notification, remote_notif_ack)
10453 (remote_notif_parse): Make "buf" const.
10454 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
10455 const.
10456 (remote_notif_parse, remote_notif_ack, handle_notification):
10457 Likewise.
10458 * remote.c (remote_notif_stop_parse): Make "buf" const.
10459 (remote_target::remote_parse_stop_reply): Make "buf" const.
10460 (remote_notif_stop_ack): Make "buf" const.
10461
104622019-01-14 Tom Tromey <tom@tromey.com>
10463
10464 * remote.c (remote_console_output): Make parameter const.
10465
104662019-01-14 Tom Tromey <tom@tromey.com>
10467
10468 * target-debug.h (target_debug_print_signals): Constify.
10469 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
10470 * procfs.c (procfs_target::pass_signals): Update.
10471 * linux-nat.c (linux_nat_target::pass_signals): Update.
10472 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
10473 * target-delegates.c: Rebuild.
10474 * remote.c (remote_target::program_signals): Update.
10475 (remote_target::pass_signals): Update.
10476 * target.c (target_pass_signals): Constify argument.
10477 (target_program_signals): Likewise.
10478 * target.h (struct target_ops) <pass_signals, program_signals>:
10479 Constify argument.
10480 (target_pass_signals, target_program_signals): Constify argument.
10481
104822019-01-14 Tom Tromey <tom@tromey.com>
10483
10484 PR tui/28819:
10485 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
10486
104872019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10488
10489 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
10490 field.
10491 * rs6000-tdep.c: Include reggroups.h.
10492 (IS_V_ALIAS_PSEUDOREG): Define.
10493 (rs6000_register_name): Return names for the "vX" aliases.
10494 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
10495 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
10496 aliases. Call default_register_reggroup_p for all other
10497 pseudo-registers.
10498 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
10499 New functions.
10500 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
10501 Handle "vX" aliases.
10502 (v_alias_pseudo_register_collect): New function.
10503 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
10504 (rs6000_gdbarch_init): Initialize "vX" aliases as
10505 pseudo-registers. Restore registration of
10506 rs6000_pseudo_register_reggroup_p with
10507 set_tdesc_pseudo_register_reggroup_p.
10508
105092019-01-13 Max Filippov <jcmvbkbc@gmail.com>
10510
10511 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
10512 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
10513 set_gdbarch_num_pseudo_regs.
10514
105152019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10516
10517 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
10518 Remove arg prefixname, add do_set and do_show.
10519 Add member functions set_list and show_list.
10520 * cli/cli-style.c (class cli_style_option): Update accordingly.
10521 (style_set_list): Move to file scope.
10522 (style_show_list): Likewise.
10523 (set_style): Call help_list.
10524 (show_style): Call cmd_show_list.
10525 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
10526 Update to use the new macro.
10527
105282019-10-12 Joel Brobecker <brobecker@adacore.com>
10529
10530 * ada-lang.c (_initialize_ada_language): Expand the help text
10531 for the "catch exception" command.
10532
105332019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10534
10535 * symtab.c (matching_obj_sections): Initialize obj,
10536 declare it closer to its usage.
10537
105382019-01-10 Tom Tromey <tom@tromey.com>
10539
10540 * thread-iter.h (inf_threads_iterator): Use next_iterator.
10541 (basic_inf_threads_range): Remove.
10542 (inf_threads_range, inf_non_exited_threads_range)
10543 (safe_inf_threads_range): Use next_adapter.
10544
105452019-01-10 Keith Seitz <keiths@redhat.com>
10546
10547 PR gdb/23712
10548 PR symtab/23010
10549 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
10550 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
10551
105522019-01-10 Keith Seitz <keiths@redhat.com>
10553
10554 PR gdb/23712
10555 PR symtab/23010
10556 * dictionary.c (pending_to_vector): Remove.
10557 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
10558 Remove _1 suffix, replacing functions of the same name. Update
10559 all callers.
10560 (dict_create_hashed, dict_create_hashed_expandable)
10561 (dict_create_linear, dict_create_linear_expandable, dict_free)
10562 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
10563 Make functions static.
10564
105652019-01-10 Keith Seitz <keiths@redhat.com>
10566
10567 PR gdb/23712
10568 PR symtab/23010
10569 * dictionary.h (struct dictionary): Replace declaration with
10570 multidictionary.
10571 (dict_create_hashed, dict_create_hashed_expandable)
10572 (dict_create_linear, dict_create_linear_expandable)
10573 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
10574 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
10575 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
10576 taking multidictionary argument.
10577 [ALL_DICT_SYMBOLS]: Update for multidictionary.
10578 * block.h (struct block) <dict>: Change to multidictionary
10579 and rename `multidict'.
10580 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
10581 symmisc.c: Update all dictionary references to multidictionary.
10582
105832019-01-10 Keith Seitz <keiths@redhat.com>
10584
10585 PR gdb/23712
10586 PR symtab/23010
10587 * dictionary.c: Include unordered_map.
10588 (pending_to_vector): New function.
10589 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
10590 Rewrite the non-"_1" functions to take vector instead
10591 of linked list.
10592 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
10593 "new" _1 versions of the same name.
10594 (multidictionary): Define.
10595 (std::hash<enum language): New definition.
10596 (collate_pending_symbols_by_language, mdict_create_hashed)
10597 (mdict_create_hashed_expandable, mdict_create_linear)
10598 (mdict_create_linear_expandable, mdict_free)
10599 (find_language_dictionary, create_new_language_dictionary)
10600 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
10601 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
10602 (mdict_size, mdict_empty): New functions.
10603 * dictionary.h (mdict_iterator): Define.
10604
106052019-01-10 Pedro Alves <palves@redhat.com>
10606
10607 * breakpoint.c (read_uploaded_action)
10608 (create_tracepoint_from_upload): Adjust to use
10609 gdb::unique_xmalloc_ptr.
10610 * ctf.c (ctf_write_uploaded_tp):
10611 (SET_ARRAY_FIELD): Use emplace_back.
10612 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
10613 * tracefile-tfile.c (tfile_write_uploaded_tp):
10614 * tracepoint.c (parse_tracepoint_definition): Adjust to use
10615 gdb::unique_xmalloc_ptr.
10616 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
10617 at_string, cond_string, cmd_strings>: Replace char pointers
10618 with gdb::unique_xmalloc_ptr.
10619
106202019-01-10 Pedro Alves <palves@redhat.com>
10621
10622 * solib-target.c (library_list_start_library): Don't xstrdup name.
10623
106242019-01-10 Pedro Alves <palves@redhat.com>
10625
10626 * mdebugread.c (parse_partial_symbols): Use
10627 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
10628
106292019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
10630
10631 * linux-fork.c (scoped_switch_fork_info)
10632 <~scoped_switch_fork_info>: Fix incorrect variable name.
10633
106342019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
10635
10636 * linux-fork.c (scoped_switch_fork_info)
10637 <scoped_switch_fork_info>: Make explicit.
10638 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
10639
106402019-01-10 Tom Tromey <tom@tromey.com>
10641
10642 * objfiles.h (objfile::reset_psymtabs): Update.
10643 * objfiles.c (objfile::objfile): Update.
10644 * psymtab.h (psymtab_storage::obstack): Update.
10645 (psymtab_storage::m_obstack): Use gdb::optional.
10646 (class psymtab_storage): Update comment. Remove objfile
10647 parameter.
10648 * psymtab.c (psymtab_storage::psymtab_storage): Update.
10649
106502019-01-10 Tom Tromey <tom@tromey.com>
10651
10652 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
10653 <free_psymtabs>: Now private.
10654 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
10655 (allocate_psymtab): Use new method.
10656
106572019-01-10 Tom Tromey <tom@tromey.com>
10658
10659 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
10660 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
10661 * mdebugread.c (parse_partial_symbols): Use
10662 allocate_dependencies.
10663 * dwarf2read.c (dwarf2_create_include_psymtab): Use
10664 allocate_dependencies.
10665 (process_psymtab_comp_unit_reader)
10666 (build_type_psymtab_dependencies): Likewise.
10667 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
10668
106692019-01-10 Tom Tromey <tom@tromey.com>
10670
10671 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
10672 PSYMBOL_SET_LANGUAGE.
10673 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
10674
106752019-01-10 Tom Tromey <tom@tromey.com>
10676
10677 * psymtab.h (psymtab_storage::obstack): New method.
10678 <m_obstack>: Rename from obstack; now private.
10679 * psymtab.c (psymtab_storage): Update.
10680 * dwarf2read.c (create_addrmap_from_index)
10681 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
10682 Update.
10683
106842019-01-10 Tom Tromey <tom@tromey.com>
10685
10686 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
10687 * objfiles.h (objfile::reset_psymtabs): New method.
10688
106892019-01-10 Tom Tromey <tom@tromey.com>
10690
10691 * symmisc.c (print_symbol_bcache_statistics): Update.
10692 (print_objfile_statistics): Update.
10693 * symfile.c (reread_symbols): Update.
10694 * psymtab.h (class psymtab_storage): New.
10695 * psymtab.c (psymtab_storage): New constructor.
10696 (~psymtab_storage): New destructor.
10697 (require_partial_symbols): Update.
10698 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
10699 (find_pc_sect_psymtab, find_pc_sect_psymbol)
10700 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
10701 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
10702 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
10703 (start_psymtab_common, end_psymtab_common)
10704 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
10705 (allocate_psymtab): Update.
10706 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
10707 Update.
10708 (dump_psymtab_addrmap, maintenance_print_psymbols)
10709 (maintenance_check_psymtabs): Update.
10710 (class objfile_psymtabs): Move to objfiles.h.
10711 * psympriv.h (discard_psymtab): Now inline.
10712 (psymtab_discarder::psymtab_discarder): Update.
10713 (psymtab_discarder::~psymtab_discarder): Update.
10714 (ALL_OBJFILE_PSYMTABS): Rewrite.
10715 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
10716 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
10717 Remove fields.
10718 <partial_symtabs>: New field.
10719 (class objfile_psymtabs): Move from psymtab.h. Update.
10720 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
10721 psymbol_cache.
10722 (objfile::~objfile): Don't destroy psymbol_cache.
10723 * mdebugread.c (parse_partial_symbols): Update.
10724 * dwarf2read.c (create_addrmap_from_index)
10725 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10726 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
10727 (add_partial_subprogram, dwarf2_ranges_read): Update.
10728 * dwarf-index-write.c (write_address_map)
10729 (write_one_signatured_type, recursively_write_psymbols)
10730 (class debug_names, class debug_names, write_psymtabs_to_index):
10731 Update.
10732
107332019-01-10 Tom Tromey <tom@tromey.com>
10734
10735 * symtab.h (SYMBOL_SET_NAMES): Update.
10736 (symbol_set_names): Update.
10737 (MSYMBOL_SET_NAMES): Update.
10738 * symtab.c (symbol_set_names): Change argument to be an
10739 objfile_per_bfd_storage.
10740 * psymtab.c (add_psymbol_to_bcache): Update.
10741 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
10742
107432019-01-10 Tom Tromey <tom@tromey.com>
10744
10745 * symtab.c (create_demangled_names_hash): Change argument to be an
10746 objfile_per_bfd_storage.
10747 (symbol_set_names): Update.
10748
107492019-01-10 Tom Tromey <tom@tromey.com>
10750
10751 * xcoffread.c (xcoff_initial_scan): Unconditionally call
10752 init_psymbol_list.
10753 * psymtab.c (init_psymbol_list): Do nothing if already called.
10754 * psympriv.h (init_psymbol_list): Add comment.
10755 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
10756 init_psymbol_list.
10757 * dbxread.c (dbx_symfile_read): Unconditionally call
10758 init_psymbol_list.
10759
107602019-01-10 Tom Tromey <tom@tromey.com>
10761
10762 * xcoffread.c (scan_xcoff_symtab): Update.
10763 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
10764 "where".
10765 * mdebugread.c (parse_partial_symbols)
10766 (handle_psymbol_enumerators): Update.
10767 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
10768 * dbxread.c (read_dbx_symtab): Update.
10769 * psympriv.h (psymbol_placement): New enum.
10770 (add_psymbol_to_list): Update.
10771
107722019-01-10 Tom Tromey <tom@tromey.com>
10773
10774 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
10775 static_psymbols parameters.
10776 (scan_xcoff_symtab): Update.
10777 * psymtab.c (start_psymtab_common): Remove global_psymbols and
10778 static_psymbols parameters.
10779 * psympriv.h (start_psymtab_common): Update.
10780 * mdebugread.c (parse_partial_symbols): Update.
10781 * dwarf2read.c (create_partial_symtab): Update.
10782 * dbxread.c (read_dbx_symtab): Update.
10783 (start_psymtab): Remove global_psymbols and static_psymbols
10784 parameters.
10785
107862019-01-10 Tom Tromey <tom@tromey.com>
10787
10788 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
10789 * psymtab.c (allocate_psymtab): Add comment.
10790 * psympriv.h (allocate_psymtab): Add comment.
10791 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
10792 initializations.
10793 * dbxread.c (dbx_end_psymtab): Remove some initializations.
10794
107952019-01-10 Tom Tromey <tom@tromey.com>
10796
10797 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
10798 Don't declare.
10799 * mipsread.c: Include mdebugread.h.
10800 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
10801 Declare.
10802 * elfread.c: Include mdebugread.h.
10803
108042019-01-09 Tom Tromey <tom@tromey.com>
10805
10806 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
10807 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
10808 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
10809 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
10810 (psym_lookup_symbol, psym_find_last_source_symtab)
10811 (psym_forget_cached_source_info, psym_print_stats)
10812 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
10813 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
10814 (psym_map_matching_symbols, psym_expand_symtabs_matching)
10815 (psym_find_compunit_symtab_by_address)
10816 (maintenance_print_psymbols, maintenance_info_psymtabs)
10817 (maintenance_check_psymtabs): Use ranged for.
10818 * psymtab.h (class objfile_psymtabs): New.
10819 (require_partial_symbols): Return objfile_psymtabs.
10820 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
10821
108222019-01-09 Tom Tromey <tom@tromey.com>
10823
10824 * symfile.c (overlay_invalidate_all, find_pc_overlay)
10825 (find_pc_mapped_section, list_overlays_command)
10826 (map_overlay_command, unmap_overlay_command)
10827 (simple_overlay_update): Use all_objfiles.
10828 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
10829 * printcmd.c (info_symbol_command): Use all_objfiles.
10830 * objfiles.h (ALL_OBJSECTIONS): Remove.
10831 * maint.c (maintenance_translate_address): Use all_objfiles.
10832 * gcore.c (gcore_create_callback): Use all_objfiles.
10833 (objfile_find_memory_regions): Likewise.
10834
108352019-01-09 Tom Tromey <tom@tromey.com>
10836
10837 * symtab.c (find_line_symtab, info_sources_command)
10838 (make_source_files_completion_list): Use objfile_compunits.
10839 * source.c (select_source_symtab): Use objfile_compunits.
10840 * objfiles.h (struct objfile): Update comment.
10841 (ALL_OBJFILES): Remove.
10842 (ALL_FILETABS): Remove.
10843 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
10844 objfile_compunits.
10845
108462019-01-09 Tom Tromey <tom@tromey.com>
10847
10848 * symmisc.c (print_objfile_statistics, dump_objfile)
10849 (maintenance_print_symbols): Use compunit_filetabs.
10850 * source.c (forget_cached_source_info_for_objfile): Use
10851 compunit_filetabs.
10852 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
10853 (ALL_FILETABS): Use compunit_filetabs.
10854 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
10855 * coffread.c (coff_symtab_read): Use compunit_filetabs.
10856
108572019-01-09 Tom Tromey <tom@tromey.com>
10858
10859 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
10860 (compunit_filetabs): New.
10861 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
10862 compunit_filetabs.
10863 (info_sources_command, make_source_files_completion_list): Remove
10864 declaration.
10865 * symmisc.c (print_objfile_statistics, dump_objfile)
10866 (maintenance_print_symbols): Remove declaration.
10867 (maintenance_info_symtabs): Use compunit_filetabs.
10868 (maintenance_info_line_tables): Likewise.
10869 * source.c (select_source_symtab): Change local variable name.
10870 (forget_cached_source_info_for_objfile): Remove declaration.
10871 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
10872 * objfiles.c (objfile_relocate1): Remove declaration.
10873 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
10874 declaration.
10875 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
10876 * coffread.c (coff_symtab_read): Remove declaration.
10877 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
10878 compunit_filetabs.
10879
108802019-01-09 Tom Tromey <tom@tromey.com>
10881
10882 * symtab.c (lookup_objfile_from_block)
10883 (find_pc_sect_compunit_symtab, search_symbols)
10884 (default_collect_symbol_completion_matches_break_on): Use
10885 objfile_compunits.
10886 * objfiles.h (ALL_COMPUNITS): Remove.
10887 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
10888 * cp-support.c (add_symbol_overload_list_qualified): Use
10889 objfile_compunits.
10890 * ada-lang.c (ada_collect_symbol_completion_matches)
10891 (ada_add_global_exceptions): Use objfile_compunits.
10892
108932019-01-09 Tom Tromey <tom@tromey.com>
10894
10895 * source.c (select_source_symtab)
10896 (forget_cached_source_info_for_objfile): Remove declaration.
10897 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
10898 declaration.
10899 * maint.c (count_symtabs_and_blocks): Remove declaration.
10900 * cp-support.c (add_symbol_overload_list_qualified): Remove
10901 declaration.
10902 * coffread.c (coff_symtab_read): Remove declaration.
10903 * symtab.c (lookup_symbol_in_objfile_symtabs)
10904 (basic_lookup_transparent_type_1): Use objfile_compunits.
10905 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
10906 (info_sources_command, search_symbols)
10907 (default_collect_symbol_completion_matches_break_on)
10908 (make_source_files_completion_list): Remove declaration.
10909 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
10910 (ada_collect_symbol_completion_matches)
10911 (ada_add_global_exceptions): Remove declaration.
10912 * linespec.c (iterate_over_all_matching_symtabs): Use
10913 objfile_compunits.
10914 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
10915 (class objfile_compunits): New.
10916 (ALL_COMPUNITS): Use objfile_compunits.
10917 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
10918 (maintenance_check_symtabs, maintenance_info_line_tables): Use
10919 objfile_compunits.
10920 * objfiles.c (objfile_relocate1): Use objfile_compunits.
10921
109222019-01-09 Tom Tromey <tom@tromey.com>
10923
10924 * symtab.c (search_symbols)
10925 (default_collect_symbol_completion_matches_break_on): Use
10926 objfile_msymbols.
10927 * ada-lang.c (ada_lookup_simple_minsym)
10928 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
10929 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
10930 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
10931 objfile_msymbols.
10932 * coffread.c (coff_symfile_read): Use objfile_msymbols.
10933 * symmisc.c (dump_msymbols): Use objfile_msymbols.
10934 * objc-lang.c (find_methods): Use objfile_msymbols.
10935 (info_selectors_command, info_classes_command): Likewise.
10936 * stabsread.c (scan_file_globals): Use objfile_msymbols.
10937 * objfiles.h (class objfile_msymbols): New.
10938 (ALL_OBJFILE_MSYMBOLS): Remove.
10939 (ALL_MSYMBOLS): Remove.
10940
109412019-01-09 Tom Tromey <tom@tromey.com>
10942
10943 * common/next-iterator.h (next_adapter): Add Iterator template
10944 parameter.
10945 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
10946 (class all_objfiles_safe): New.
10947 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
10948 * objfiles.c (put_objfile_before): Update comment.
10949 (add_separate_debug_objfile): Likewise.
10950 (free_all_objfiles): Use all_objfiles_safe.
10951 (objfile_purge_solibs): Likewise.
10952
109532019-01-09 Tom Tromey <tom@tromey.com>
10954
10955 * symtab.c (iterate_over_symtabs, matching_obj_sections)
10956 (expand_symtab_containing_pc, lookup_static_symbol)
10957 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
10958 (find_symbol_at_address, find_line_symtab, find_main_name): Use
10959 all_objfiles.
10960 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
10961 * breakpoint.c (create_overlay_event_breakpoint)
10962 (create_longjmp_master_breakpoint)
10963 (create_std_terminate_master_breakpoint)
10964 (create_exception_master_breakpoint): Use all_objfiles.
10965 * linux-thread-db.c (try_thread_db_load_from_pdir)
10966 (has_libpthread): Use all_objfiles.
10967 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
10968 * linespec.c (iterate_over_all_matching_symtabs)
10969 (search_minsyms_for_name): Use all_objfiles.
10970 * maint.c (maintenance_info_sections): Use all_objfiles.
10971 * main.c (captured_main_1): Use all_objfiles.
10972 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
10973 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
10974 * guile/scm-pretty-print.c
10975 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
10976 * solib-spu.c (append_ocl_sos): Use all_objfiles.
10977 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
10978 (maintenance_print_msymbols): Use all_objfiles.
10979 * source.c (select_source_symtab): Use all_objfiles.
10980 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
10981 * symfile.c (remove_symbol_file_command)
10982 (expand_symtabs_matching, map_symbol_filenames): Use
10983 all_objfiles.
10984 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
10985 all_objfiles.
10986 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
10987 * objc-lang.c (find_methods): Use all_objfiles.
10988 * objfiles.c (have_partial_symbols, have_full_symbols)
10989 (have_minimal_symbols, qsort_cmp)
10990 (default_iterate_over_objfiles_in_search_order): Use
10991 all_objfiles.
10992 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
10993 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
10994 (maintenance_check_psymtabs): Use all_objfiles.
10995 (ALL_PSYMTABS): Remove.
10996 * compile/compile-object-run.c (do_module_cleanup): Use
10997 all_objfiles.
10998 * blockframe.c (find_pc_partial_function): Use all_objfiles.
10999 * cp-support.c (add_symbol_overload_list_qualified): Use
11000 all_objfiles.
11001 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
11002 Use all_objfiles.
11003 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
11004 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
11005 all_objfiles.
11006 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
11007 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
11008 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
11009 Uses all_objfiles.
11010 * solib.c (solib_read_symbols): Use all_objfiles
11011
110122019-01-09 Tom Tromey <tom@tromey.com>
11013
11014 * probe.c (parse_probes_in_pspace): Use all_objfiles.
11015 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
11016 all_objfiles.
11017 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
11018 * symmisc.c (print_symbol_bcache_statistics)
11019 (print_objfile_statistics, maintenance_print_objfiles)
11020 (maintenance_info_symtabs, maintenance_check_symtabs)
11021 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
11022 all_objfiles.
11023 * source.c (forget_cached_source_info): Use all_objfiles.
11024 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
11025 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
11026 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
11027 * objfiles.c (update_section_map): Use all_objfiles.
11028 (shared_objfile_contains_address_p): Likewise.
11029 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
11030 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
11031
110322019-01-09 Tom Tromey <tom@tromey.com>
11033
11034 * common/next-iterator.h: New file.
11035 * objfiles.h (class all_objfiles): New.
11036 (struct objfile_iterator): New.
11037
110382019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11039
11040 * NEWS: Move the description of the changed "frame", "select-frame",
11041 and "info frame" commands to the Changed commands section.
11042
110432019-01-09 Simon Marchi <simon.marchi@ericsson.com>
11044
11045 * gdbtypes.c (check_stub_method_group): Remove handling of old
11046 mangling schemes.
11047 * linespec.c (find_methods): Likewise.
11048 * stabsread.c (read_member_functions): Likewise.
11049 * valops.c (search_struct_method): Likewise.
11050 (value_struct_elt_for_reference): Likewise.
11051 * NEWS: Mention this change.
11052
110532019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11054
11055 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
11056 print_source_lines.
11057 * source.c (print_source_lines_base): Update line number check.
11058 (print_source_lines): New function.
11059 (source_lines_range::source_lines_range): New function.
11060 * source.h (class source_lines_range): New class.
11061 (print_source_lines): New declaration.
11062
110632019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11064
11065 * linespec.c (linespec_state_destructor): Free self->canonical_names.
11066
110672019-01-08 Tom Tromey <tom@tromey.com>
11068 Simon Marchi <simon.marchi@ericsson.com>
11069
11070 PR gdb/24060
11071 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
11072 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
11073 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
11074 * f-exp.y (DOLLAR_VARIABLE): Likewise.
11075 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
11076 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
11077
110782019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
11079
11080 * source.c (select_source_symtab): Move header comment to
11081 declaration in source.h.
11082 (forget_cached_source_info_for_objfile): Likewise.
11083 (forget_cached_source_info): Likewise.
11084 (identify_source_line): Likewise.
11085 * source.h (identify_source_line): Move declaration from symtab.h
11086 and add comment from source.c
11087 (print_source_lines): Likewise.
11088 (forget_cached_source_info_for_objfile): Likewise.
11089 (forget_cached_source_info): Likewise.
11090 (select_source_symtab): Likewise.
11091 (enum print_source_lines_flag): Move definition from symtab.h.
11092 * symtab.h (identify_source_line): Move declaration to source.h.
11093 (print_source_lines): Likewise.
11094 (forget_cached_source_info_for_objfile): Likewise.
11095 (forget_cached_source_info): Likewise.
11096 (select_source_symtab): Likewise.
11097 (enum print_source_lines_flag): Move definition to source.h.
11098 * tui/tui-hooks.c: Add 'source.h' include.
11099
111002019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
11101
11102 * source.c (print_source_lines_base): Handle requests to print
11103 reverse line number sequences, and guard against empty lines
11104 string.
11105
111062019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
11107
11108 * source.c (print_source_lines_base): Fix skip of '\r' if next
11109 character is '\n'.
11110
111112019-01-06 Tom Tromey <tom@tromey.com>
11112
11113 * c-exp.y (struct c_parse_state) <macro_original_text,
11114 expansion_obstack>: New member.
11115 (macro_original_text, expansion_obstack): Remove globals.
11116 (scan_macro_expansion, scanning_macro_expansion)
11117 (finished_macro_expansion): Update.
11118 (scan_macro_cleanup): Remove.
11119 (yylex, c_parse): Update.
11120
111212019-01-06 Tom Tromey <tom@tromey.com>
11122
11123 * c-exp.y (struct c_parse_state) <strings>: New member.
11124 (operator_stoken): Update.
11125
111262019-01-06 Tom Tromey <tom@tromey.com>
11127
11128 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
11129 (union type_stack_elt) <typelist_val>: Now a pointer to
11130 std::vector.
11131 (type_stack_cleanup): Don't declare.
11132 (push_typelist): Update.
11133 * parse.c (pop_typelist): Return a std::vector.
11134 (push_typelist): Take a std::vector.
11135 (follow_types): Update. Do not free args.
11136 (type_stack_cleanup): Remove.
11137 * c-exp.y (struct c_parse_state): New.
11138 (cpstate): New global.
11139 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
11140 (nonempty_typelist): Update.
11141 (func_mod): Create a new vector.
11142 (c_parse): Create a c_parse_state.
11143 (check_parameter_typelist): Do not delete params.
11144 (function_method): Update. Do not delete type_list.
11145
111462019-01-06 Tom Tromey <tom@tromey.com>
11147
11148 PR gdb/28155:
11149 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
11150 check_typedef.
11151 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
11152 (print_return_value): Likewise.
11153
111542019-01-05 Tom Tromey <tom@tromey.com>
11155
11156 * contrib/cleanup_check.py: Remove.
11157 * contrib/gcc-with-excheck: Remove.
11158 * contrib/exsummary.py: Remove.
11159 * contrib/excheck.py: Remove.
11160
111612019-01-05 Joel Brobecker <brobecker@adacore.com>
11162
11163 * thread.c (delete_thread_1): Add gdb_assert that THR is not
11164 NULL. Initialize tpprev to NULL instead of assigning it
11165 to NULL on the next statement.
11166 * windows-nat.c (windows_delete_thread): Remove check for
11167 main_thread_id before printing thread exit notifications.
11168 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
11169 Remove thread ID check against main_thread_id.
11170 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
11171 windows_delete_thread.
11172 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
11173
111742019-01-04 Tom Tromey <tom@tromey.com>
11175
11176 * compile/compile.c (_initialize_compile): Use upper case for
11177 metasyntactic variables.
11178 * symmisc.c (_initialize_symmisc): Use upper case for
11179 metasyntactic variables.
11180 * psymtab.c (_initialize_psymtab): Use upper case for
11181 metasyntactic variables.
11182 * demangle.c (demangle_command): Use upper case for metasyntactic
11183 variables.
11184 (_initialize_demangler): Likewise.
11185 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
11186 variables.
11187
111882019-01-03 Tom Tromey <tom@tromey.com>
11189
11190 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
11191
111922019-01-03 Tom Tromey <tom@tromey.com>
11193
11194 * python/py-symtab.c (salpy_str): Update.
11195 (struct salpy_sal_object) <symtab>: Now a PyObject.
11196 (salpy_dealloc): Update.
11197 (del_objfile_sal): Use gdbpy_ref.
11198
111992019-01-03 Tom Tromey <tom@tromey.com>
11200
11201 * python/py-type.c (convert_field): Use new_reference. Return
11202 gdbpy_ref.
11203 (make_fielditem): Return gdbpy_ref.
11204 (typy_fields): Update.
11205 (typy_getitem): Update.
11206 (field_name): Return gdbpy_ref. Use new_reference.
11207 (typy_iterator_iternext): Update.
11208
112092019-01-03 Tom Tromey <tom@tromey.com>
11210
11211 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
11212
112132019-01-03 Tom Tromey <tom@tromey.com>
11214
11215 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
11216 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
11217 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
11218 (pspy_set_frame_filters, pspy_set_frame_unwinders)
11219 (pspy_set_type_printers): Likewise.
11220 * python/py-function.c (fnpy_init): Use gdbpy_ref.
11221 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
11222 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
11223 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
11224 (objfpy_set_type_printers): Likewise.
11225
112262019-01-03 Tom Tromey <tom@tromey.com>
11227
11228 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
11229 (gdbpy_print_stack): Use gdbpy_err_fetch.
11230 * python/python-internal.h (class gdbpy_err_fetch): New class.
11231 (class gdbpy_enter) <m_error_type, m_error_value,
11232 m_error_traceback>: Remove.
11233 <m_error>: New member.
11234 (gdbpy_exception_to_string): Don't declare.
11235 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
11236 * python/py-value.c (convert_value_from_python): Use
11237 gdbpy_err_fetch.
11238 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
11239 gdbpy_exception_to_string.
11240 (gdbpy_handle_exception): Use gdbpy_err_fetch.
11241 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
11242 gdbpy_err_fetch.
11243
112442019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11245
11246 * linux-nat.c (delete_lwp_cleanup): Delete.
11247 (struct lwp_deleter): New struct.
11248 (lwp_info_up): New typedef.
11249 (linux_nat_target::follow_fork): Delete cleanup, and make use of
11250 lwp_info_up.
11251
112522019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11253
11254 * linux-fork.c (class scoped_switch_fork_info): New class.
11255 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
11256
112572019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11258
11259 * valops.c (find_overload_match): Remove use of null_cleanup, and
11260 calls to do_cleanups.
11261
112622019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11263
11264 * compile/compile-cplus-types.c
11265 (compile_cplus_instance::decl_name): Handle changes to
11266 cp_func_name.
11267 * cp-support.c (cp_func_name): Update header comment, update
11268 return type.
11269 * cp-support.h (cp_func_name): Update return type in declaration.
11270 * valops.c (find_overload_match): Move temp_func local to top
11271 level of function and change its type. Use temp_func to hold and
11272 delete temporary string obtained from cp_func_name.
11273
112742019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11275
11276 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
11277 gdb::char_vector, remove cleanup, and update uses of `msg`.
11278
112792019-01-03 Jim Wilson <jimw@sifive.com>
11280
11281 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
11282
112832019-01-02 Tom Tromey <tom@tromey.com>
11284
11285 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
11286 (tdesc_parse_xml): Remove cleanups.
11287 * target-descriptions.h (make_cleanup_free_target_description):
11288 Don't declare.
11289 (target_desc_deleter): New struct.
11290 (target_desc_up): New typedef.
11291 * target-descriptions.c (target_desc_deleter::operator()): Rename
11292 from free_target_description.
11293 (make_cleanup_free_target_description): Remove.
11294
112952019-01-02 Tom Tromey <tom@tromey.com>
11296
11297 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
11298 constructor, destructor.
11299 (linespec_parser): Remove typedef.
11300 (~linespec_parser): Rename from linespec_parser_delete.
11301 (linespec_lex_to_end, linespec_complete_label)
11302 (linespec_complete): Update.
11303 (decode_line_full): Remove cleanups.
11304 (decode_line_1): Update.
11305
113062019-01-02 Tom Tromey <tom@tromey.com>
11307
11308 * python/python-internal.h (inferior_to_inferior_object): Change
11309 return type.
11310 * python/py-exitedevent.c (create_exited_event_object): Update.
11311 * python/py-inferior.c (inferior_to_inferior_object): Return
11312 gdbpy_ref.
11313 (python_new_inferior, python_inferior_deleted)
11314 (thread_to_thread_object, delete_thread_object)
11315 (build_inferior_list, gdbpy_selected_inferior): Update.
11316 * python/py-infthread.c (create_thread_object): Update. Also fail
11317 if inferior_to_inferior_object fails.
11318
113192019-01-02 Simon Marchi <simon.marchi@ericsson.com>
11320
11321 * inferior.h (class inferior) <displaced_step_state>: New field.
11322 * infrun.h (struct displaced_step_state): Move here from
11323 infrun.c. Initialize fields, add constructor.
11324 <inf>: Remove field.
11325 <reset>: New method.
11326 * infrun.c (struct displaced_step_inferior_state): Move to
11327 infrun.h.
11328 (displaced_step_inferior_states): Remove.
11329 (get_displaced_stepping_state): Adust.
11330 (displaced_step_in_progress_any_inferior): Adjust.
11331 (displaced_step_in_progress_thread): Adjust.
11332 (displaced_step_in_progress): Adjust.
11333 (add_displaced_stepping_state): Remove.
11334 (get_displaced_step_closure_by_addr): Adjust.
11335 (remove_displaced_stepping_state): Remove.
11336 (infrun_inferior_exit): Call displaced_step_state.reset.
11337 (use_displaced_stepping): Don't check for NULL.
11338 (displaced_step_prepare_throw): Call
11339 get_displaced_stepping_state.
11340 (displaced_step_fixup): Don't check for NULL.
11341 (prepare_for_detach): Don't check for NULL.
11342
113432019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11344
11345 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
11346 in case of call that did not complete.
11347
113482019-01-02 Andrey Utkin <autkin@undo.io>
11349
11350 * symfile.c (find_separate_debug_file): Fix search of debug files for
11351 remote debuggee.
11352
113532019-01-02 Tom Tromey <tom@tromey.com>
11354
11355 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
11356 indentation.
11357 * python/py-frame.c (frapy_older): Remove cast.
11358 (frapy_newer): Likewise.
11359 * python/py-breakpoint.c (local_setattro): Remove cast.
11360 * python/py-arch.c (archpy_name): Remove local variable.
11361 * python/py-type.c (gdbpy_lookup_type): Remove cast.
11362
113632019-01-02 Joel Brobecker <brobecker@adacore.com>
11364
11365 * unittests/basic_string_view/element_access/char/empty.cc:
11366 Fix year range in copyright header.
11367
113682019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
11369
11370 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
11371 Delete.
11372 <operator==>: Update with for removed field.
11373 <hash>: Likewise.
11374 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
11375 <isa_features>: ...this.
11376 <abi_features>: New field.
11377 (riscv_isa_flen): Update comment.
11378 (riscv_abi_xlen): New declaration.
11379 (riscv_abi_flen): New declaration.
11380 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
11381 isa_features.
11382 (riscv_abi_xlen): New function.
11383 (riscv_isa_flen): Update to get answer from isa_features.
11384 (riscv_abi_flen): New function.
11385 (riscv_has_fp_abi): Update to get answer from abi_features.
11386 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
11387 xlen and flen.
11388 (riscv_call_info) <xlen, flen>: Update comment.
11389 (riscv_call_arg_struct): Remove invalid assertions
11390 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
11391 is removed.
11392 (riscv_gdbarch_init): Gather isa features and abi features
11393 separately, ensure both match on the gdbarch when reusing an old
11394 gdbarch. Relax an error check to allow 32-bit abi float to run on
11395 a target with 64-bit float hardware.
11396
113972019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11398
11399 * source.c (search_command_helper): Stop reverse search
11400 when line 1 has been searched.
11401
114022019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11403
11404 * record-full.c (record_full_base_target::close): Rewrite
11405 record_full_core_buf_list free logic.
11406
114072019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11408
11409 * break-catch-syscall.c (print_one_catch_syscall): xfree
11410 the last text.
11411
114122019-01-01 Joel Brobecker <brobecker@adacore.com>
11413
11414 * top.c (print_gdb_version): Update Copyright year in version
11415 message.
11416
114172019-01-01 Joel Brobecker <brobecker@adacore.com>
11418
11419 Update copyright year range in all GDB files.
11420
114212019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
11422
11423 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
11424
11425For older changes see ChangeLog-2018.
11426\f
11427Local Variables:
11428mode: change-log
11429left-margin: 8
11430fill-column: 74
11431version-control: never
11432coding: utf-8
11433End:
11434