(Ada) do not print Ada task names in quotes in "info tasks" output
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
74332189
JB
12019-09-17 Joel Brobecker <brobecker@adacore.com>
2
3 * ada-tasks.c (info_task): Remove quoting of the task's name.
4
f2f24aa9
CB
52019-09-16 Christian Biesinger <cbiesinger@google.com>
6
7 * symfile.c (auto_solib_add): Replace comment with a reference
8 to the header file.
9
6a062a93
CB
102019-09-14 Christian Biesinger <cbiesinger@google.com>
11
12 * NEWS: Mention that gdb can now be compiled with Python 3
13 on Windows.
14
ec6c8338
AB
152019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
16
17 * maint.c (maint_print_section_data::maint_print_section_data):
18 Force use of 'float log10 (float)' by casting the argument to
19 float.
20
aa17805f
AB
212019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
22
23 * maint.c: Add 'cmath' include.
24 (struct maint_print_section_data): New structure.
25 (print_section_index): New function.
26 (print_bfd_section_info): Add header comment, small whitespace
27 cleanup, and update to call new print_section_index function.
28 (print_objfile_section_info): Likewise.
29 (maint_obj_section_from_bfd_section): New function.
30 (print_bfd_section_info_maybe_relocated): New function.
31 (maintenance_info_sections): Add header comment, always use
32 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
33
3dd9bb46
AB
342019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
35
36 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
37 inner scope, add check that the objfile has psymtabs before
38 checking psymtabs_addrmap.
39 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
40
4993045d
PW
412019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
42
43 * NEWS: Announce that Ada task names are now shown at more places,
44 and between quotes (except in info task output).
45 * gdb/ada-tasks.c (task_to_str): New function.
46 (display_current_task_id): Call task_to_str.
47 (task_command_1): Likewise.
48 (print_ada_task_info): In non-mi mode, Properly align headers and data
49 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
50
7a289707
RO
512019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
52
53 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
54 prstatus.pr_lwp.pr_info instead of making it up.
55
f2aec7f6
CB
562019-09-11 Christian Biesinger <cbiesinger@google.com>
57
58 * auto-load.c (auto_load_expand_dir_vars): Update.
59 * defs.h (gdb_datadir): Change to std::string.
60 (python_libdir): Likewise.
61 (relocate_gdb_directory): Change return type to std::string.
62 * guile/guile.c (gdbscm_data_directory): Update.
63 (initialize_scheme_side): Update.
64 * jit.c (jit_reader_dir): Change to std::string.
65 (jit_reader_load_command): Update.
66 * main.c (gdb_datadir): Change to std::string.
67 (python_libdir): Likewise.
68 (set_gdb_data_directory): Update.
69 (relocate_path): Change to return std::string.
70 (relocate_gdb_directory): Change to return std::string.
71 (relocate_gdbinit_path_maybe_in_datadir): Update.
72 (captured_main_1): Update.
73 * python/python.c (do_start_initialization): Update.
74 * top.c (show_gdb_datadir): Update.
75 * xml-syscall.c (xml_init_syscalls_info): Update.
76 (init_syscalls_info): Update.
77
9224a013
CB
782019-09-11 Christian Biesinger <cbiesinger@google.com>
79
80 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
81 out of get_init_files.
82 (get_init_files): Update.
83
f48cd836
CB
842019-09-11 Christian Biesinger <cbiesinger@google.com>
85
86 * main.c (get_init_files): Change to use std::string.
87 (captured_main_1): Update.
88 (print_gdb_help): Update.
89
9cab7ecd
AT
902019-09-11 Ali Tamur <tamur@google.com>
91
92 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
93 implementation.
94
67547d89
CB
952019-09-11 Christian Biesinger <cbiesinger@google.com>
96
97 * dbxread.c (read_dbx_symtab): Update.
98 * dwarf2read.c (load_partial_dies): Update.
99 * mdebugread.c (parse_partial_symbols): Update.
100 (handle_psymbol_enumerators): Update.
101 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
102 * psymtab.c (add_psymbol_to_bcache): Likewise.
103 (add_psymbol_to_list): Likewise.
104 * symtab.c (symbol_set_names): Likewise.
105 * symtab.h (symbol_set_names): Likewise.
106 * xcoffread.c (scan_xcoff_symtab): Update.
107
64b2d4a0
TT
1082019-09-11 Tom Tromey <tom@tromey.com>
109
110 * symfile-mem.c (symbol_file_add_from_memory): Use
111 bfd_set_filename.
112 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
113 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
114
3b00ef10
TT
1152019-09-10 Tom Tromey <tromey@adacore.com>
116
117 * dwarf-index-write.c (write_psymbols): Extend error message.
118 (debug_names::insert): Add Ada code.
119 (debug_names::write_psymbols): Remove Ada check.
120 (debug_names) <m_string_obstack>: New member.
121 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
122 (gdb_index_symbol_name_matcher::matches): Remove.
123 (mapped_index_base::find_name_components_bounds): Add "lang"
124 parameter.
125 (mapped_index_base::build_name_components): Also split names
126 according to Ada syntax.
127 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
128 type of "match_callback".
129 (check_match, check_find_bounds_finds)
130 (dw2_expand_symtabs_matching): Update.
131 (dw2_debug_names_iterator): Add new constructor.
132 (dw2_debug_names_map_matching_symbols): New function.
133 (dw2_debug_names_expand_symtabs_matching): Update.
134 (dwarf2_debug_names_functions): Use
135 dw2_debug_names_map_matching_symbols.
136
aa391654
TT
1372019-09-10 Tom Tromey <tromey@adacore.com>
138
139 * dwarf2read.c (dw2_get_file_names_reader): Add the
140 CU's file name to the results.
141
b054970d
TT
1422019-09-10 Tom Tromey <tromey@adacore.com>
143
144 * ada-lang.c (add_nonlocal_symbols): Combine calls to
145 map_matching_symbols. Update.
146 * dwarf2read.c (dw2_map_matching_symbols): Update.
147 * psymtab.c (match_partial_symbol): Change type; update.
148 (psym_map_matching_symbols): Likewise.
149 * symfile-debug.c (debug_qf_map_matching_symbols): Change
150 type; update.
151 * symfile.h (struct quick_symbol_functions)
152 <map_matching_symbols>: Change "name" to be a lookup_name_info.
153 Remove "match".
154
6a3dbf1b
TT
1552019-09-10 Tom Tromey <tromey@adacore.com>
156
157 * psymtab.c (map_block): Remove.
158 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
159 * symtab.c (iterate_over_symbols_terminated): New function.
160 * symtab.c (iterate_over_symbols_terminated): Declare.
161
6969f124
TT
1622019-09-10 Tom Tromey <tromey@adacore.com>
163
164 * ada-lang.c (ada_iterate_over_symbols): Return bool.
165 * language.h (struct language_defn) <la_iterate_over_symbols>:
166 Return bool.
167 * symtab.c (iterate_over_symbols): Return bool.
168 * symtab.h (iterate_over_symbols): Return bool.
169
199b4314
TT
1702019-09-10 Tom Tromey <tromey@adacore.com>
171
172 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
173 (add_nonlocal_symbols): Update.
174 * dwarf2read.c (dw2_map_matching_symbols): Change type.
175 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
176 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
177 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
178 Change type of "callback". Remove "data".
179
a084a2a6
AT
180
1812019-09-09 Ali Tamur <tamur@google.com>
182
183 * dwarf2read.c (comp_unit_head): Update comment.
184 (dwarf2_dwo_name): New function declaration.
185 (dwarf_unit_type_name): New function declaration.
186 (read_comp_unit_head): Add support for new compilation units,
187 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
188 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
189 (currently named as "signature") in their header. Also clarify error
190 messages.
191 (lookup_dwo_id): New function. Returns the dwo id of the given
192 compile unit.
193 (lookup_dwo_unit): Use the new lookup_dwo_id function.
194 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
195 functions.
196 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
197 (dwarf2_dwo_name): Get the dwo name if present.
198 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
199 purposes.
200
25a2915e
TT
2012019-09-09 Tom Tromey <tom@tromey.com>
202
203 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
204
e4df0874
PW
2052019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
206
207 * python/python.c (do_start_initialization): Make progname_copy static,
208 to avoid a leak report.
209
8634b462
TT
2102019-09-08 Tom Tromey <tom@tromey.com>
211
212 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
213
c7f839cb
SM
2142019-09-07 Simon Marchi <simon.marchi@efficios.com>
215
216 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
217 Change type to gdb::optional<block_enum>.
218 (dw2_symtab_iter_init): Change block_index parameter type
219 to gdb::optional<block_enum>.
220 (dw2_lookup_symbol): Change block_index parameter
221 type to block_enum.c
222 (dw2_debug_names_lookup_symbol): Likewise.
223 * psymtab.c (psym_lookup_symbol): Likewise.
224 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
225 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
226 Likewise.
227
ead0e69a
CB
2282019-09-06 Christian Biesinger <cbiesinger@google.com>
229
230 * defs.h (relocate_gdb_directory): Change int to bool in
231 signature and rename flag to relocatable.
232 * main.c (relocate_path): Likewise.
233 (relocate_gdb_directory): Likewise.
234
b16c44de
AM
2352019-09-06 Alan Modra <amodra@gmail.com>
236
237 * coffread.c (coff_symfile_read): Constify filename variable.
238 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
239 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
240 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
241 * solib.c (reload_shared_libraries_1): Likewise.
242 * symfile.c (reread_symbols): Likewise.
243 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
244 * solib-darwin.c (darwin_bfd_open): Likewise.
245 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
246
06ff036e
AB
2472019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
248
249 * psymtab.c (print_partial_symbols): Handle missing domain_enum
250 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
251
4e962e74
TT
2522019-09-03 Tom Tromey <tromey@adacore.com>
253
254 * ada-valprint.c (ada_val_print_num): Don't recurse for range
255 types.
256 (has_negatives): Unbias a range type bound.
257 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
258 * gdbtypes.c (operator==): Handle new field.
259 (create_range_type): Add "bias" parameter.
260 (create_static_range_type, resolve_dynamic_range): Update.
261 * gdbtypes.h (struct range_bounds) <bias>: New member.
262 (create_range_type): Add bias parameter.
263 * printcmd.c (print_scalar_formatted): Unbias range types.
264 * value.c (unpack_long): Unbias range types.
265 (pack_long): Bias range types.
266
d90b8f26
AH
2672019-09-02 Alan Hayward <alan.hayward@arm.com>
268
269 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
270 probe arguments.
271
fe01123e
AH
2722019-09-02 Alan Hayward <alan.hayward@arm.com>
273
274 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
275 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
276 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
277 (compile_probe_arg): Likewise.
278 * probe.h (get_argument_count): Likewise.
279 * solib-svr4.c (solib_event_probe_action): Likewise.
280 * stap-probe.c (stap_probe::get_argument_count): Likewise.
281
e661ef01
AH
2822019-09-02 Alan Hayward <alan.hayward@arm.com>
283
284 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
285 code to here...
286 (svr4_create_solib_event_breakpoints): ...from here.
287
47a536d9
SDJ
2882019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
289
290 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
291 suffix from warning message.
292
d6a00eba
TT
2932019-08-30 Tom Tromey <tom@tromey.com>
294
295 * tui/tui-winsource.h (struct tui_source_window_base)
296 <refresh_all>: Don't declare.
297 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
298 Remove.
299 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
300 tui_show_locator_content.
301 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
302 declare.
303 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
304 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
305 declare.
306
55b2657b
TT
3072019-08-30 Tom Tromey <tom@tromey.com>
308
309 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
310
12a8555a
TT
3112019-08-30 Tom Tromey <tom@tromey.com>
312
313 * tui/tui-stack.c (_initialize_tui_stack): Move later.
314 Remove unnecessary forward declarations.
315
900ac242
TT
3162019-08-30 Tom Tromey <tom@tromey.com>
317
318 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
319 rerender.
320 (tui_update_locator_fullname, tui_show_frame_info): Don't call
321 tui_show_locator_content.
322
99ab33fb
TT
3232019-08-30 Tom Tromey <tom@tromey.com>
324
325 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
326 (tui_locator_window::rerender): Rewrite using body of previous
327 tui_show_locator_content.
328
e594a5d1
TT
3292019-08-30 Tom Tromey <tom@tromey.com>
330
331 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
332 set_locator_fullname>: New methods.
333 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
334 Rename from tui_set_locator_fullname.
335 (tui_locator_window::set_locator_info): Rename from
336 tui_set_locator_info. Return bool.
337 (tui_update_locator_fullname, tui_show_frame_info): Update.
338
715bb467
TT
3392019-08-30 Tom Tromey <tom@tromey.com>
340
341 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
342
772f3f03
TT
3432019-08-30 Tom Tromey <tom@tromey.com>
344
345 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
346 call touchwin.
347
108e13ab
TT
3482019-08-30 Tom Tromey <tom@tromey.com>
349
350 * tui/tui-wingeneral.c (box_win): Assume win_info and
351 win_info->handle cannot be NULL.
352
cdaa6eb4
TT
3532019-08-30 Tom Tromey <tom@tromey.com>
354
355 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
356 refresh_window>: Declare.
357 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
358 resize.
359 (tui_data_item_window::rerender): Rename from
360 tui_display_register.
361 (tui_data_item_window::refresh_window): New method.
362 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
363 no-op.
364
89df7f90
TT
3652019-08-30 Tom Tromey <tom@tromey.com>
366
367 * tui/tui-regs.h (struct tui_data_window) <regs_content,
368 regs_column_count, current_group>: Move later. Now private.
369 <get_current_group>: New method.
370 * tui/tui-regs.c (tui_reg_command): Update.
371 * tui/tui-layout.c (tui_set_layout): Update.
372
1bf2866a
TT
3732019-08-30 Tom Tromey <tom@tromey.com>
374
375 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
376 (tui_data_window::rerender): Don't call
377 check_and_display_highlight_if_needed.
378 (tui_data_window::refresh_all): Remove call to
379 erase_data_content.
380
0670413d
TT
3812019-08-30 Tom Tromey <tom@tromey.com>
382
383 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
384 (tui_data_window::display_registers_from)
385 (tui_data_window::display_reg_element_at_line)
386 (tui_data_window::display_registers_from_line): Remove checks of
387 "empty".
388
18bb55c7
TT
3892019-08-30 Tom Tromey <tom@tromey.com>
390
391 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
392 Don't declare.
393 * tui/tui-regs.c (tui_data_window::show_registers): Call
394 rerender.
395 (tui_data_window::rerender): Rename from display_all_data.
396 (tui_data_window::rerender): Remove old implementation.
397
1f6d2f10
TT
3982019-08-30 Tom Tromey <tom@tromey.com>
399
400 * tui/tui-regs.c (tui_data_window::display_all_data): Change
401 text.
402 * tui/tui-data.h (NO_DATA_STRING): Remove define.
403
16d01f9c
BW
4042019-08-29 Bernhard Wodok <barto@gmx.net>
405 Sergio Durigan Junior <sergiodj@redhat.com>
406
407 PR win32/24284
408 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
409
d8f27c60
AB
4102019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
411
412 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
413 when searching for types.
414
1f20c35e
AB
4152019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
416
417 * f-lang.c (f_language_defn): Use f_print_typedef.
418 * f-lang.h (f_print_typedef): Declare.
419 * f-typeprint.c (f_print_typedef): Define.
420
550105b7
CB
4212019-08-27 Christian Biesinger <cbiesinger@google.com>
422
423 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
424
4acfdd20
AB
4252019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
426
427 * cli/cli-utils.c (info_print_options_defs): Delete.
428 (make_info_print_options_def_group): Delete.
429 (extract_info_print_options): Delete.
430 (info_print_command_completer): Delete.
431 (info_print_args_help): Add extra parameter, and optionally
432 include text about -n flag.
433 * cli/cli-utils.h (struct info_print_options): Delete.
434 (extract_info_print_options): Delete declaration.
435 (info_print_command_completer): Delete declaration.
436 (info_print_args_help): Add extra parameter, extend header
437 comment.
438 * python/python.c (gdbpy_rbreak): Pass additional parameter to
439 search_symbols.
440 * stack.c (struct info_print_options): New type.
441 (info_print_options_defs): New file scoped variable.
442 (make_info_print_options_def_group): New static function.
443 (info_print_command_completer): New static function.
444 (info_locals_command): Update to use new local functions.
445 (info_args_command): Likewise.
446 (_initialize_stack): Add extra parameter to calls to
447 info_print_args_help.
448 * symtab.c (search_symbols): Add extra parameter, use this to
449 possibly excluse non-debug symbols.
450 (symtab_symbol_info): Add extra parameter, which is passed on to
451 search_symbols.
452 (struct info_print_options): New type.
453 (info_print_options_defs): New file scoped variable.
454 (make_info_print_options_def_group): New static function.
455 (info_print_command_completer): New static function.
456 (info_variables_command): Update to use local functions, and pass
457 extra parameter through to symtab_symbol_info.
458 (info_functions_command): Likewise.
459 (info_types_command): Pass additional argument through to
460 symtab_symbol_info.
461 (rbreak_command): Pass extra argument to search_symbols.
462 (_initialize_symtab): Add extra arguments for calls to
463 info_print_args_help, and update help text for 'info variables',
464 'whereis', and 'info functions' commands.
465 * symtab.h (search_symbols): Add extra argument to declaration.
466 * NEWS: Mention new flags.
467
9aa55206
CB
4682019-08-26 Christian Biesinger <cbiesinger@google.com>
469
470 * symtab.c (lookup_static_symbol): Call the new function (and move
471 it down to be next to lookup_global_symbol).
472 (struct global_sym_lookup_data): Add block_enum member and rename to...
473 (struct global_or_static_sym_lookup_data): ...this.
474 (lookup_symbol_global_iterator_cb): Pass block_index instead of
475 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
476 (lookup_symbol_global_or_static_iterator_cb): ...this.
477 (lookup_global_or_static_symbol): New function.
478 (lookup_global_symbol): Call new function.
479
5c31b358
TV
4802019-08-26 Tom de Vries <tdevries@suse.de>
481
482 PR c++/24852
483 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
484 when pc_probe.prob == NULL.
485
23c13d42
SM
4862019-08-25 Simon Marchi <simon.marchi@efficios.com>
487
488 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
489 variable symbol_linkage to symbol_linkage_.
490
beadd3e8
SM
4912019-08-25 Simon Marchi <simon.marchi@efficios.com>
492
493 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
494 represent whether the symbol is static, dynamic, or we don't
495 know.
496
e3ec872f
YS
4972019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
498
499 * gdb/rx-tdep.c (rx_register_names): New.
500 (rx_register_name): Delete.
501 (rx_psw_type): Delete.
502 (rx_fpsw_type): Delete.
503 (rx_register_type): Delete.
504 (rx_gdbarch_init): Convert target-descriptions.
505 (_initialize_rx_tdep): Add initialize_tdesc_rx.
506 * gdb/features/Makefile: Add rx.xml.
507 * gdb/features/rx.xml: New.
508 * gdb/features/rx.c: Generated.
509 * gdb/NEWS: Mention target description support.
510
d0509ba4
CB
5112019-08-22 Christian Biesinger <cbiesinger@google.com>
512
513 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
514 *slot_ptr.
515
2d41fa11
SDJ
5162019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
517
518 * configure.ac: Don't check for 'dlfcn.h' (moved to
519 gdbsupport/common.m4).
520 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
521 'gdbsupport/'.
522 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
523 * compile/compile-c-support.c: Include
524 'gdbsupport/gdb-dlfcn.h'.
525 * gdbsupport/common.m4: Check for 'dlfcn.h'.
526 * gdb-dlfcn.c: Move to...
527 * gdbsupport/gdb-dlfcn.c: ... here.
528 * gdb-dlfcn.h: Move to...
529 * gdbsupport/gdb-dlfcn.h: ... here.
530
de8af808
SL
5312019-08-23 Sandra Loosemore <sandra@codesourcery.com>
532
533 * nios2-tdep.c (struct reg_value): Improve comments. Make
534 the offset field signed.
535
27204489
CB
5362019-08-22 Christian Biesinger <cbiesinger@google.com>
537
538 * python/lib/gdb/__init__.py (_execute_file): New function.
539 * python/python.c (python_run_simple_file): Call gdb._execute_file
540 on Windows.
541
43771869
AB
5422019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
543
544 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
545 all uses as this was never set to anything but a zero value.
546
26c957f1
PA
5472019-08-21 Bogdan Harjoc <harjoc@gmail.com>
548
549 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
550
c07aae6e
CB
5512019-08-21 Christian Biesinger <cbiesinger@google.com>
552
553 * tui/tui-data.h (tui_gen_win_info): Add an =default
554 move constructor, required by some GCC versions.
555
3960cb7a
JF
5562019-08-21 Jinke Fan <fanjinke51@yeah.net>
557
558 * go32-nat.c (go32_sysinfo): Add hygon_p.
559
04c72a68
TT
5602019-08-20 Tom Tromey <tom@tromey.com>
561
562 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
563 line_from_reg_element_no, first_reg_element_no_inline,
564 display_all_data, delete_data_content_windows,
565 erase_data_content>: Now private.
566
072272ce
TT
5672019-08-20 Tom Tromey <tom@tromey.com>
568
569 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
570 (tui_unhighlight_win, tui_highlight_win)
571 (tui_win_info::make_window): Update.
572 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
573
973961bd
TT
5742019-08-20 Tom Tromey <tom@tromey.com>
575
576 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
577 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
578 (MAX_PID_WIDTH): Move to tui-stack.c.
579 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
580 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
581 (MAX_PID_WIDTH): Move from tui-data.h.
582
ab0e1f1a
TT
5832019-08-20 Tom Tromey <tom@tromey.com>
584
585 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
586 * tui/tui-wingeneral.c (box_win): Change type of win_info.
587 (box_win): Update.
588 (tui_gen_win_info::make_window): Rename from tui_make_window.
589 (tui_win_info::make_window): New method.
590 (tui_gen_win_info::make_visible): Update.
591 * tui/tui-source.c (tui_source_window::set_contents): Update.
592 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
593 (tui_data_window::display_registers_from): Update.
594 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
595 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
596 Declare.
597 <can_box>: Remove.
598 <title>: Remove.
599 (struct tui_win_info) <make_window>: Declare.
600 <can_box>: Now virtual.
601 <title>: New member.
602 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
603 * tui/tui-command.c (tui_cmd_window::resize): Update.
604
100c2bf3
TT
6052019-08-20 Tom Tromey <tom@tromey.com>
606
607 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
608 * tui/tui-regs.c (tui_data_window::show_registers): Update.
609 (tui_data_window::check_register_values): Update.
610
fa4dc567
TT
6112019-08-20 Tom Tromey <tom@tromey.com>
612
613 * tui/tui-regs.h (struct tui_data_window): Use
614 DISABLE_COPY_AND_ASSIGN.
615 <regs_content>: Change type, removing unique_ptr.
616 <tui_data_window>: Add move constructor.
617 * tui/tui-regs.c (tui_data_window::show_registers)
618 (tui_data_window::show_register_group)
619 (tui_data_window::display_registers_from)
620 (tui_data_window::display_registers_from)
621 (tui_data_window::first_data_item_displayed)
622 (tui_data_window::delete_data_content_windows)
623 (tui_data_window::rerender, tui_data_window::refresh_window)
624 (tui_data_window::check_register_values): Update.
625
ca02d7c8
TT
6262019-08-20 Tom Tromey <tom@tromey.com>
627
628 * tui/tui-regs.h (struct tui_data_window) <show_registers,
629 show_register_group>: Declare.
630 (tui_show_register_group): Don't declare.
631 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
632 tui_show_registers.
633 (tui_data_window::show_register_group): Rename from
634 tui_show_register_group.
635 (tui_data_window::check_register_values, tui_reg_command):
636 Update.
637 * tui/tui-layout.c (tui_set_layout): Update.
638
63356bfd
TT
6392019-08-20 Tom Tromey <tom@tromey.com>
640
641 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
642 Declare.
643 (tui_check_register_values): Don't declare.
644 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
645 from tui_check_register_values.
646 * tui/tui-hooks.c (tui_register_changed): Update.
647
42cc14a7
TT
6482019-08-20 Tom Tromey <tom@tromey.com>
649
650 * tui/tui-regs.c (tui_reg_layout): Move later.
651 (tui_show_registers): Don't enable TUI mode or change layout.
652
b9ad3686
TT
6532019-08-20 Tom Tromey <tom@tromey.com>
654
655 * tui/tui-regs.h (struct tui_data_item_window)
656 <~tui_data_item_window>: Remove.
657 <content>: Now a unique_xmalloc_ptr.
658 * tui/tui-regs.c (tui_register_format): Return a
659 unique_xmalloc_ptr.
660 (tui_get_register): Update.
661 (~tui_data_item_window): Remove.
662 (tui_data_window::display_registers_from, tui_display_register):
663 Update.
664 * tui/tui-io.h (tui_expand_tabs): Update.
665 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
666 Remove "col" parameter.
667
8e114aab
TT
6682019-08-20 Tom Tromey <tom@tromey.com>
669
670 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
671 field.
672 * tui/tui-regs.c (~tui_data_item_window): Update.
673
1a4f81dd
TT
6742019-08-20 Tom Tromey <tom@tromey.com>
675
676 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
677 earlier.
678
0f8d8876
TT
6792019-08-20 Tom Tromey <tom@tromey.com>
680
681 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
682
605dc2c2
TT
6832019-08-20 Tom Tromey <tom@tromey.com>
684
685 * tui/tui-source.h (struct tui_source_window): Update.
686 * tui/tui-regs.c (tui_show_registers): Update.
687 * tui/tui-disasm.h (struct tui_disasm_window): Update.
688 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
689 (NO_REGS_STRING): Remove defines.
690
aedbe3bb
CM
6912019-08-20 Conrad Meyer <cem@FreeBSD.org>
692
693 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
694 unnecessary thread walk if remote doesn't support the packet.
695
7ce8f214
TT
6962019-08-19 Tom Tromey <tromey@adacore.com>
697
698 * python/py-value.c (value_has_field): Fix indentation.
699
f21c2bd7
TT
7002019-08-19 Tom Tromey <tromey@adacore.com>
701
702 * printcmd.c (do_one_display, info_display_command): Update.
703 * block.h (contained_in): Return bool. Add allow_nested
704 parameter.
705 * block.c (contained_in): Return bool. Add allow_nested
706 parameter.
707
d806ea2d
TT
7082019-08-19 Tom Tromey <tom@tromey.com>
709
710 * configure: Rebuild.
711 * configure.ac: Disallow the combination of -static-libstdc++ and
712 source highlight.
713 * source-cache.c (get_language_name): Handle rust.
714 (source_cache::get_source_lines): Ignore highlighting exceptions.
715
398fdd60
TT
7162019-08-16 Tom Tromey <tom@tromey.com>
717
718 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
719 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
720 (struct tui_source_window_base) <make_visible, refresh_window,
721 resize>: Remove methods.
722 <execution_info>: Remove field.
723 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
724 (tui_show_source_line, tui_source_window_base)
725 (~tui_source_window_base): Update.
726 (tui_source_window_base::resize)
727 (tui_source_window_base::make_visible)
728 (tui_source_window_base::refresh_window): Remove.
729 (tui_source_window_base::update_exec_info): Update.
730 * tui/tui-source.c (tui_source_window::set_contents): Update.
731 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
732
e699d331
TT
7332019-08-16 Tom Tromey <tom@tromey.com>
734
735 * tui/tui-hooks.c (tui_remove_hooks): Don't set
736 deprecated_query_hook.
737
bb01dbfc
TT
7382019-08-16 Tom Tromey <tom@tromey.com>
739
740 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
741 (tui_update_source_windows_with_line): Update.
742 * tui/tui-source.h (struct tui_source_window)
743 <show_symtab_source>: Declare.
744 (tui_show_symtab_source): Don't declare.
745 * tui/tui-source.c (tui_show_symtab_source): Rename from
746 tui_show_symtab_source.
747
81c82c4b
TT
7482019-08-16 Tom Tromey <tom@tromey.com>
749
750 * tui/tui-winsource.h (struct tui_source_window_base)
751 <set_contents>: Declare.
752 * tui/tui-winsource.c
753 (tui_source_window_base::update_source_window_as_is): Update.
754 * tui/tui-source.h (struct tui_source_window) <set_contents>:
755 Declare.
756 (tui_set_source_content): Don't declare.
757 * tui/tui-source.c (tui_source_window::set_contents): Rename from
758 tui_set_source_content.
759 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
760 Declare.
761 (tui_set_disassem_content): Don't declare.
762 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
763 tui_set_disassem_content.
764
2ddaf614
TT
7652019-08-16 Tom Tromey <tom@tromey.com>
766
767 * tui/tui-winsource.h (struct tui_source_window_base)
768 <update_breakpoint_info>: Declare.
769 (tui_update_breakpoint_info): Don't declare.
770 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
771 (tui_update_all_breakpoint_info): Update.
772 (tui_source_window_base::update_breakpoint_info): Rename from
773 tui_update_breakpoint_info.
774 (tui_source_window_base::update_exec_info): Update.
775
017f9828
TT
7762019-08-16 Tom Tromey <tom@tromey.com>
777
778 * tui/tui-winsource.h (struct tui_source_window_base)
779 <update_source_window>: Declare.
780 (tui_update_source_window): Don't declare.
781 * tui/tui-winsource.c
782 (tui_source_window_base::update_source_window): Rename from
783 tui_update_source_window.
784 (tui_source_window_base::rerender): Update.
785 * tui/tui-source.c (tui_source_window::maybe_update): Update.
786 * tui/tui-disasm.c (tui_show_disassem)
787 (tui_show_disassem_and_update_source)
788 (tui_disasm_window::maybe_update): Update.
789
ed8358e9
TT
7902019-08-16 Tom Tromey <tom@tromey.com>
791
792 * tui/tui-winsource.h (struct tui_source_window_base)
793 <update_source_window_as_is>: Declare.
794 (tui_update_source_window_as_is): Don't declare.
795 * tui/tui-winsource.c (tui_update_source_window): Update
796 (tui_source_window_base::update_source_window_as_is): Rename from
797 tui_update_source_window_as_is.
798 (tui_source_window_base::refill): Update.
799 * tui/tui-source.c (tui_show_symtab_source): Update.
800 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
801 Update.
802
20149b6b
TT
8032019-08-16 Tom Tromey <tom@tromey.com>
804
805 * tui/tui-winsource.h (tui_update_source_window)
806 (tui_update_source_window_as_is): Remove "noerror" parameter.
807 * tui/tui-winsource.c (tui_update_source_window)
808 (tui_update_source_window_as_is): Remove "noerror" parameter.
809 (tui_update_source_windows_with_addr)
810 (tui_update_source_windows_with_line)
811 (tui_source_window_base::rerender)
812 (tui_source_window_base::refill): Update.
813 * tui/tui-source.h (tui_set_source_content)
814 (tui_show_symtab_source): Remove "noerror" parameter.
815 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
816 parameter.
817 (tui_show_symtab_source): Likewise.
818 (tui_source_window::maybe_update): Update.
819 * tui/tui-disasm.c (tui_show_disassem)
820 (tui_show_disassem_and_update_source)
821 (tui_disasm_window::do_scroll_vertical)
822 (tui_disasm_window::maybe_update): Update.
823
2d83e710
TT
8242019-08-16 Tom Tromey <tom@tromey.com>
825
826 * tui/tui.c (tui_is_window_visible): Update.
827 * tui/tui-wingeneral.c (tui_make_window)
828 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
829 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
830 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
831 (tui_set_win_height_command, parse_scrolling_args): Update.
832 * tui/tui-source.c (tui_source_window::style_changed): Update.
833 * tui/tui-regs.c (tui_show_registers)
834 (tui_data_window::first_data_item_displayed)
835 (tui_data_window::delete_data_content_windows)
836 (tui_check_register_values, tui_reg_command): Update.
837 * tui/tui-disasm.c (tui_show_disassem): Update.
838 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
839 method.
840 <is_visible>: Remove field.
841 * tui/tui-data.c (tui_next_win, tui_prev_win)
842 (tui_delete_invisible_windows): Update.
843
d4ab829a
TT
8442019-08-16 Tom Tromey <tom@tromey.com>
845
846 * tui/tui-winsource.h (struct tui_source_window_base)
847 <m_has_locator>: Remove.
848 * tui/tui-layout.c (show_source_disasm_command, show_data)
849 (show_source_or_disasm_and_command): Update.
850
aa7ca1bb
AH
8512019-08-16 Alan Hayward <alan.hayward@arm.com>
852
853 * NEWS (Other MI changes): New subsection.
854 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
855 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
856 * arch-utils.c (default_get_pc_address_flags): New function.
857 * arch-utils.h (default_get_pc_address_flags): New declaration.
858 * gdbarch.sh: Add get_pc_address_flags.
859 * gdbarch.c: Regenerate.
860 * gdbarch.h: Likewise.
861 * stack.c (print_pc): New function.
862 (print_frame_info) (print_frame): Call print_pc.
863
6eac171f
TV
8642019-08-16 Tom de Vries <tdevries@suse.de>
865
866 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
867 print_objfile_section_info.
868
3df505f6
TT
8692019-08-15 Tom Tromey <tom@tromey.com>
870
871 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
872 calling update_cmdwin_start_line.
873 * tui/tui-winsource.h (struct tui_source_window_base)
874 <do_make_visible_with_new_height, set_new_height>: Don't declare.
875 <rerender>: Declare.
876 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
877 Call rerender.
878 (tui_source_window_base::set_new_height): Remove.
879 (tui_source_window_base::rerender): Rename from
880 do_make_visible_with_new_height.
881 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
882 resize method.
883 (tui_win_info::make_invisible_and_set_new_height)
884 (tui_win_info::make_visible_with_new_height): Remove.
885 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
886 Declare.
887 * tui/tui-stack.c (tui_locator_window::rerender): New method.
888 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
889 do_make_visible_with_new_height>: Don't declare.
890 <rerender>: Declare.
891 * tui/tui-regs.c (tui_data_window::rerender): Rename from
892 set_new_height.
893 (tui_data_window::do_make_visible_with_new_height): Remove.
894 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
895 call tui_show_locator_content.
896 (tui_gen_win_info::resize): Call rerender.
897 (show_source_or_disasm_and_command): Don't call
898 tui_show_locator_content.
899 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
900 method.
901 (struct tui_win_info) <rerender>: Declare.
902 <set_new_height, make_invisible_and_set_new_height,
903 make_visible_with_new_height>: Don't declare.
904 * tui/tui-data.c (tui_win_list::rerender): New method.
905 * tui/tui-command.h (struct tui_cmd_window)
906 <do_make_visible_with_new_height>: Don't declare.
907 * tui/tui-command.c
908 (tui_cmd_window::do_make_visible_with_new_height): Remove.
909
272560b5
TT
9102019-08-15 Tom Tromey <tromey@adacore.com>
911
912 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
913 * ada-lang.c (ada_enum_name): Likewise.
914
08235187
CB
9152019-08-15 Christian Biesinger <cbiesinger@google.com>
916
917 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
918 leading underscore.
919 (GdbOutputErrorFile): Likewise.
920 (global scope): Adjust constructor calls to GdbOutput{,Error}File
921 accordingly.
922 (execute_unwinders): Rename to have a leading underscore.
923 (auto_load_packages): Likewise.
924 (global scope): Adjust call to auto_load_packages accordingly.
925 (GdbSetPythonDirectory): Likewise.
926 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
927 instead of execute_unwinders.
928
db502012
TT
9292019-08-15 Tom Tromey <tom@tromey.com>
930
931 * tui/tui-layout.c (show_layout, show_source_disasm_command)
932 (show_data): Don't change window visibility.
933 (tui_gen_win_info::resize): Remove special case for command
934 window. Use wresize, when available.
935 (show_source_or_disasm_and_command): Don't change window
936 visibility.
937 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
938 <make_visible>: New method.
939 * tui/tui-command.c (tui_cmd_window::resize): New method.
940
3891b65e
TT
9412019-08-15 Tom Tromey <tom@tromey.com>
942
943 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
944 (struct tui_source_windows): New.
945 * tui/tui-winsource.c (tui_display_main): Update.
946 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
947 (new_height_ok, parse_scrolling_args): Update.
948 * tui/tui-layout.c (show_layout, show_data): Update.
949 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
950 (tui_add_to_source_windows): Don't declare.
951 * tui/tui-data.c (source_windows, tui_source_windows)
952 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
953
ee556432
TT
9542019-08-15 Tom Tromey <tom@tromey.com>
955
956 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
957 Rename from reset.
958 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
959 * tui/tui-layout.c (show_source_disasm_command, show_data):
960 Update.
961 (tui_gen_win_info::resize): Rename.
962 (show_source_or_disasm_and_command): Update.
963 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
964 reset.
965
46f438e3
TT
9662019-08-15 Tom Tromey <tom@tromey.com>
967
968 * tui/tui-stack.c (tui_initialize_static_data): Remove.
969 * tui/tui-interp.c (tui_interp::init): Don't call
970 tui_initialize_static_data.
971 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
972
f4ce562c
TT
9732019-08-15 Tom Tromey <tom@tromey.com>
974
975 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
976 examine tui_win_list.
977
c398c3d0
TT
9782019-08-15 Tom Tromey <tom@tromey.com>
979
980 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
981 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
982 tui_clear_source_content.
983 (tui_clear_source_content): Remove.
984 (tui_source_window_base::do_erase_source_content): Hoist call to
985 content.clear().
986 * tui/tui-stack.c (tui_show_frame_info): Don't call
987 tui_clear_source_content.
988
e25d2004
TT
9892019-08-15 Tom Tromey <tom@tromey.com>
990
991 * tui/tui-winsource.h (struct tui_source_window_base)
992 <do_erase_source_content>: New method.
993 <erase_source_content>: New method.
994 (tui_erase_source_content): Don't declare.
995 * tui/tui-winsource.c (tui_clear_source_content): Update.
996 (tui_source_window_base::do_erase_source_content): Rename from
997 tui_erase_source_content.
998 (tui_source_window_base::show_source_content): Update.
999 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
1000 * tui/tui-source.h (struct tui_source_window)
1001 <erase_source_content>: New method.
1002 * tui/tui-disasm.h (struct tui_disasm_window)
1003 <erase_source_content>: New method.
1004
002f15c2
TT
10052019-08-15 Tom Tromey <tom@tromey.com>
1006
1007 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
1008 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
1009 constructor.
1010 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
1011 * tui/tui-source.c (tui_set_source_content): Update.
1012 * tui/tui-disasm.c (tui_set_disassem_content): Update.
1013
c9033fe8
TT
10142019-08-15 Tom Tromey <tom@tromey.com>
1015
1016 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
1017 * tui/tui-winsource.c (tui_line_is_displayed): Move to
1018 tui-source.c.
1019 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
1020 Declare.
1021 * tui/tui-source.c (tui_source_window::line_is_displayed): New
1022 method.
1023 (tui_source_window::maybe_update): Update.
1024
088f37dd
TT
10252019-08-15 Tom Tromey <tom@tromey.com>
1026
1027 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
1028 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
1029 tui-disasm.c.
1030 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
1031 Declare.
1032 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
1033 method.
1034 (tui_disasm_window::maybe_update): Update.
1035
a54700c6
TT
10362019-08-15 Tom Tromey <tom@tromey.com>
1037
1038 * tui/tui-winsource.h (struct tui_source_window_base)
1039 <maybe_update>: Declare.
1040 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
1041 method.
1042 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
1043 Declare.
1044 * tui/tui-source.c (tui_source_window::maybe_update): New method.
1045 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
1046 Declare.
1047 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
1048
e2a678a5
TT
10492019-08-15 Tom Tromey <tom@tromey.com>
1050
1051 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
1052
f2dda477
TT
10532019-08-15 Tom Tromey <tom@tromey.com>
1054
1055 * tui/tui-wingeneral.c: Include tui-stack.h.
1056 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
1057 (struct tui_locator_window): Move from tui-data.h.
1058 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
1059 (tui_initialize_static_data): Move from tui-data.c.
1060 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
1061 (struct tui_locator_window): Move to tui-stack.c.
1062 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
1063 (tui_initialize_static_data): Move to tui-stack.c.
1064
ed4a1084
TT
10652019-08-15 Tom Tromey <tom@tromey.com>
1066
1067 * tui/tui-layout.c (show_source_disasm_command)
1068 (show_source_or_disasm_and_command): Use make_visible method, not
1069 tui_make_window.
1070 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
1071 Remove.
1072
65962b20
TT
10732019-08-15 Tom Tromey <tom@tromey.com>
1074
1075 * tui/tui-wingeneral.h (tui_make_window): Update.
1076 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
1077 parameter.
1078 (tui_gen_win_info::make_visible): Update.
1079 * tui/tui-regs.c (tui_data_window::display_registers_from):
1080 Update.
1081 * tui/tui-layout.c (show_source_disasm_command)
1082 (show_source_or_disasm_and_command): Update.
1083 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
1084 (enum tui_box): Remove.
1085 (struct tui_win_info) <can_box>: New method.
1086 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
1087 method.
1088
2208ee91
TV
10892019-08-15 Tom de Vries <tdevries@suse.de>
1090
1091 * linux-nat-trad.c: Include gdbarch.h.
1092
75faf5c4
AH
10932019-08-14 Alan Hayward <alan.hayward@arm.com>
1094
1095 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
1096 register sizes.
1097
b1c896b3
TT
10982019-08-14 Tom Tromey <tromey@adacore.com>
1099
1100 * darwin-nat.c: Include gdbarch.h.
1101 * darwin-nat-info.c: Include gdbarch.h.
1102
6405cd73
TT
11032019-08-13 Tom Tromey <tom@tromey.com>
1104
1105 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
1106 Remove.
1107 * tui/tui-data.c (tui_initialize_static_data): Update.
1108
5216580d
TT
11092019-08-13 Tom Tromey <tom@tromey.com>
1110
1111 * tui/tui-winsource.h (struct tui_exec_info_window)
1112 <~tui_exec_info_window, maybe_allocate_content, get_content,
1113 m_content>: Remove.
1114 (struct tui_source_window_base) <set_exec_info_content,
1115 show_exec_info_content>: Don't declare.
1116 * tui/tui-winsource.c
1117 (tui_exec_info_window::maybe_allocate_content): Remove.
1118 (tui_source_window_base::update_exec_info): Rename from
1119 set_exec_info_content.
1120 (tui_source_window_base::show_exec_info_content)
1121 (tui_source_window_base::update_exec_info): Remove.
1122
93858ad3
TT
11232019-08-13 Tom Tromey <tom@tromey.com>
1124
1125 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
1126 declare.
1127 * tui/tui-winsource.c (tui_update_source_window_as_is)
1128 (tui_update_source_windows_with_addr, tui_erase_source_content):
1129 Update.
1130 (tui_clear_exec_info_content): Remove.
1131
e321e7ce
TT
11322019-08-13 Tom Tromey <tom@tromey.com>
1133
1134 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
1135 declare.
1136 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
1137 call tui_erase_exec_info_content.
1138 (tui_clear_exec_info_content): Rename from
1139 tui_erase_exec_info_content.
1140 (tui_clear_exec_info_content): Delete.
1141
8270ac62
TT
11422019-08-13 Tom Tromey <tom@tromey.com>
1143
1144 * tui/tui-winsource.h (struct tui_source_window_base)
1145 <show_exec_info_content>: Declare.
1146 (tui_show_exec_info_content): Don't declare.
1147 * tui/tui-winsource.c
1148 (tui_source_window_base::show_exec_info_content): Rename from
1149 tui_show_exec_info_content.
1150 (tui_source_window_base::update_exec_info): Update.
1151
7b56485d
TT
11522019-08-13 Tom Tromey <tom@tromey.com>
1153
1154 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
1155 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
1156 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
1157 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
1158 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
1159 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
1160 ... here.
1161
7ba913dc
TT
11622019-08-13 Tom Tromey <tom@tromey.com>
1163
1164 * tui/tui-winsource.h (struct tui_source_window_base)
1165 <update_exec_info>: Declare.
1166 (tui_update_exec_info): Don't declare.
1167 * tui/tui-winsource.c (tui_update_source_window_as_is)
1168 (tui_source_window_base::refresh_all)
1169 (tui_update_all_breakpoint_info): Update.
1170 (tui_source_window_base::update_exec_info): Rename from
1171 tui_update_exec_info.
1172 * tui/tui-stack.c (tui_show_frame_info): Update.
1173
37a4a131
TT
11742019-08-13 Tom Tromey <tom@tromey.com>
1175
1176 * tui/tui-winsource.h (struct tui_source_window_base)
1177 <set_exec_info_content>: Declare.
1178 (tui_set_exec_info_content): Don't declare.
1179 * tui/tui-winsource.c
1180 (tui_source_window_base::set_exec_info_content): Rename from
1181 tui_set_exec_info_content.
1182 (tui_update_exec_info): Update.
1183
0bd27e07
TT
11842019-08-13 Tom Tromey <tom@tromey.com>
1185
1186 * tui/tui-winsource.h (struct tui_source_window_base)
1187 <show_source_content>: Declare.
1188 (tui_show_source_content): Don't declare.
1189 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1190 (tui_source_window_base::show_source_content): Rename from
1191 tui_show_source_content.
1192 (tui_source_window_base::refresh_all): Update.
1193 * tui/tui-layout.c (show_source_disasm_command)
1194 (show_source_or_disasm_and_command): Update.
1195
b4ef5aeb
TT
11962019-08-13 Tom Tromey <tom@tromey.com>
1197
1198 * tui/tui-winsource.c (tui_erase_source_content)
1199 (tui_show_source_content, tui_source_window_base::refresh_all):
1200 Update.
1201 * tui/tui-wingeneral.h
1202 (tui_check_and_display_highlight_if_needed): Don't declare.
1203 * tui/tui-wingeneral.c
1204 (tui_win_info::check_and_display_highlight_if_needed): Rename from
1205 check_and_display_highlight_if_needed.
1206 * tui/tui-win.c (tui_rehighlight_all)
1207 (tui_win_info::make_visible_with_new_height): Update.
1208 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
1209 (tui_data_window::erase_data_content)
1210 (tui_data_window::display_all_data): Update.
1211 * tui/tui-data.h (struct tui_win_info)
1212 <check_and_display_highlight_if_needed>: Declare.
1213
fede5273
TT
12142019-08-13 Tom Tromey <tom@tromey.com>
1215
1216 * tui/tui-win.c (tui_resize_all): Call
1217 tui_delete_invisible_windows.
1218 * tui/tui-layout.c (show_layout): Call
1219 tui_delete_invisible_windows.
1220 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
1221 * tui/tui-data.c (tui_delete_invisible_windows): New function.
1222
22c3f490
TT
12232019-08-13 Tom Tromey <tom@tromey.com>
1224
1225 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
1226 tui_add_win_to_layout.
1227
16cb7910
TT
12282019-08-13 Tom Tromey <tom@tromey.com>
1229
1230 * tui/tui-layout.h (tui_default_win_height): Don't declare.
1231 * tui/tui-layout.c (tui_default_win_height): Now static.
1232
cc0c3ffb
TT
12332019-08-13 Tom Tromey <tom@tromey.com>
1234
1235 * tui/tui-layout.c (show_layout): Unify all layout cases into a
1236 single switch.
1237 (show_source_disasm_command, show_source_or_disasm_and_command):
1238 Don't check current layout.
1239
3f3ffe54
TT
12402019-08-13 Tom Tromey <tom@tromey.com>
1241
1242 * tui/tui-wingeneral.c (make_all_visible): Remove.
1243 (tui_make_all_invisible): Simplify.
1244 * tui/tui-layout.c (tui_make_all_invisible): Move from
1245 tui-wingeneral.c; simplify.
1246 (show_layout): Hoist call to tui_make_all_invisible.
1247 (show_data): Don't call tui_make_all_invisible.
1248
69258091
TT
12492019-08-13 Tom Tromey <tom@tromey.com>
1250
1251 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
1252 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
1253
62cf57fe
TT
12542019-08-13 Tom Tromey <tom@tromey.com>
1255
1256 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
1257 tui-data.c.
1258 (show_source_disasm_command, show_data)
1259 (show_source_or_disasm_and_command): Don't use
1260 tui_set_current_layout_to.
1261 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
1262 * tui/tui-data.c (current_layout, tui_current_layout): Move to
1263 tui-layout.c.
1264 (tui_set_current_layout_to): Remove.
1265
2afade5d
TT
12662019-08-13 Tom Tromey <tom@tromey.com>
1267
1268 * tui/tui-layout.c (tui_set_layout): Update.
1269 * tui/tui-data.h (struct tui_layout_def): Remove.
1270 (tui_layout_def): Don't declare.
1271 * tui/tui-data.c (layout_def): Remove.
1272 (tui_layout_def): Remove.
1273
a3504e96
TT
12742019-08-13 Tom Tromey <tom@tromey.com>
1275
1276 * tui/tui-winsource.h (struct tui_source_window_base)
1277 <clear_detail>: No longer "override".
1278 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
1279 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
1280 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
1281 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
1282 Remove.
1283 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
1284
29c92911
TT
12852019-08-13 Tom Tromey <tromey@adacore.com>
1286
1287 * tracepoint.c: Don't include readline.h or history.h.
1288
86c6b807
TT
12892019-08-12 Tom Tromey <tom@tromey.com>
1290
1291 * configure: Rebuild.
1292 * configure.ac: Check for readline 7.
1293 * NEWS: Mention readline 7 requirement.
1294 * README: Update.
1295
5db2718c
TT
12962019-08-12 Tom Tromey <tom@tromey.com>
1297
1298 * mingw-hdep.c (gdb_select): Remove readline hack.
1299
dac36daf
PFC
13002019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1301
1302 * blockframe.c (find_pc_partial_function): Set *block to nullptr
1303 when the function fails.
1304
1022c627
AA
13052019-08-09 Andreas Arnez <arnez@linux.ibm.com>
1306
1307 * s390-tdep.c (s390_type_align): New function.
1308 (s390_gdbarch_init): Set it as type_align gdbarch method.
1309
eba4caf2
TV
13102019-08-09 Tom de Vries <tdevries@suse.de>
1311
1312 PR gdb/24591
1313 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
1314 pc_low with relocation offset.
1315
123cd851
TT
13162019-08-07 Tom Tromey <tromey@adacore.com>
1317
1318 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
1319 (print_frame_args): Update.
1320 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
1321 Update.
1322 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1323 * frame.h (struct frame_arg): Add initializers.
1324 <error>: Now a unique_xmalloc_ptr.
1325
3d31bc39
AH
13262019-08-07 Alan Hayward <alan.hayward@arm.com>
1327
1328 * NEWS: Expand the Pointer Authentication entry.
1329 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
1330 (aarch64_frame_unmask_lr): ... to this.
1331 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
1332 Call aarch64_frame_unmask_lr.
1333 * frame.c (struct frame_info): Add "masked" variable.
1334 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
1335 (fprint_frame): Check for masked pc.
1336 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
1337 declarations.
1338 * python/py-framefilter.c (py_print_frame): Check for masked pc.
1339 * stack.c (print_frame): Check for masked pc.
1340
0cf9feb9
TT
13412019-08-06 Tom Tromey <tom@tromey.com>
1342
1343 * stabsread.c (patch_block_stabs, read_one_struct_field)
1344 (read_enum_type): Use obstack_strndup.
1345 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
1346 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
1347 * dwarf2read.c (guess_full_die_structure_name)
1348 (anonymous_struct_prefix): Use obstack_strndup.
1349 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
1350 * c-exp.y (yylex): Use obstack_strndup.
1351 * ada-exp.y (write_object_renaming, write_ambiguous_var)
1352 (write_var_or_type): Use obstack_strndup.
1353
efba19b0
TT
13542019-08-06 Tom Tromey <tom@tromey.com>
1355
1356 * symfile.c (reread_symbols): Use obstack_strdup.
1357 * stabsread.c (read_type): Use obstack_strdup.
1358 * gdb_obstack.h (obstack_strdup): New overload.
1359 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
1360 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
1361 (dwarf2_canonicalize_name): Use obstack_strdup.
1362 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
1363 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
1364 Use obstack_strdup.
1365
f25102f7
TT
13662019-08-06 Tom Tromey <tom@tromey.com>
1367
1368 * gdb_obstack.h (obstack_strdup): Define.
1369 * gdb_obstack.c (obstack_strdup): Don't define.
1370
021887d8
TT
13712019-08-06 Tom Tromey <tom@tromey.com>
1372
1373 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
1374 obstack_strdup.
1375 * typeprint.c (typedef_hash_table::find_global_typedef): Use
1376 obstack_strdup.
1377 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
1378 * stabsread.c (common_block_start): Use obstack_strdup.
1379 * objfiles.c (set_objfile_main_name, objfile): Use
1380 obstack_strdup.
1381 * namespace.c (add_using_directive): Use obstack_strdup.
1382 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
1383 * jit.c (finalize_symtab): Use obstack_strdup.
1384 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
1385 (guess_partial_die_structure_name, partial_die_info::fixup)
1386 (dwarf2_name): Use obstack_strdup.
1387 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
1388 obstack_strdup.
1389 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
1390 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
1391 obstack_strdup.
1392 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
1393
d2834edc
PW
13942019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1395
1396 * unittests/help-doc-selftests.c: New file.
1397 * Makefile.in: Add the new file.
1398
590042fc
PW
13992019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1400
1401 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
1402 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
1403 the full first line, except when FOR_VALUE_PREFIX. In this case,
1404 the trailing '.' is not output, and the first character is uppercased.
1405 (print_help_for_command): Update call to print_doc_line.
1406 (print_doc_of_command): Likewise.
1407 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
1408 * cli/cli-option.c (append_indented_doc): Do not append newline.
1409 (build_help_option): Append newline after first appended_indented_doc
1410 only if a second call is done.
1411 (build_help): Append 2 new lines before each option, except the first
1412 one.
1413 * compile/compile.c (_initialize_compile): Add new lines after
1414 %OPTIONS%, when not at the end of the help.
1415 Change help doc or code
1416 producing the help doc to respect the invariants.
1417 * maint-test-options.c (_initialize_maint_test_options): Likewise.
1418 Also removed the new line after 'Options:', as all other commands
1419 do not put an empty line between 'Options:' and the first option.
1420 * printcmd.c (_initialize_printcmd): Likewise.
1421 * stack.c (_initialize_stack): Likewise.
1422 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
1423 incorrectly telling COMMAND is optional.
1424 * ada-lang.c (_initialize_ada_language): Change help doc or code
1425 producing the help doc to respect the invariants.
1426 * ada-tasks.c (_initialize_ada_tasks): Likewise.
1427 * breakpoint.c (_initialize_breakpoint): Likewise.
1428 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
1429 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
1430 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
1431 * cli/cli-style.c (cli_style_option::add_setshow_commands,
1432 _initialize_cli_style): Likewise.
1433 * corelow.c (core_target_info): Likewise.
1434 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
1435 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
1436 * filesystem.c (_initialize_filesystem): Likewise.
1437 * frame.c (_initialize_frame): Likewise.
1438 * gnu-nat.c (add_task_commands): Likewise.
1439 * infcall.c (_initialize_infcall): Likewise.
1440 * infcmd.c (_initialize_infcmd): Likewise.
1441 * interps.c (_initialize_interpreter): Likewise.
1442 * language.c (_initialize_language): Likewise.
1443 * linux-fork.c (_initialize_linux_fork): Likewise.
1444 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
1445 * maint.c (_initialize_maint_cmds): Likewise.
1446 * memattr.c (_initialize_mem): Likewise.
1447 * printcmd.c (_initialize_printcmd): Likewise.
1448 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
1449 _RegEx): Likewise.
1450 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
1451 * record-btrace.c (_initialize_record_btrace): Likewise.
1452 * record-full.c (_initialize_record_full): Likewise.
1453 * record.c (_initialize_record): Likewise.
1454 * regcache-dump.c (_initialize_regcache_dump): Likewise.
1455 * regcache.c (_initialize_regcache): Likewise.
1456 * remote.c (add_packet_config_cmd, init_remote_threadtests,
1457 _initialize_remote): Likewise.
1458 * ser-tcp.c (_initialize_ser_tcp): Likewise.
1459 * serial.c (_initialize_serial): Likewise.
1460 * skip.c (_initialize_step_skip): Likewise.
1461 * source.c (_initialize_source): Likewise.
1462 * stack.c (_initialize_stack): Likewise.
1463 * symfile.c (_initialize_symfile): Likewise.
1464 * symtab.c (_initialize_symtab): Likewise.
1465 * target-descriptions.c (_initialize_target_descriptions): Likewise.
1466 * top.c (init_main): Likewise.
1467 * tracefile-tfile.c (tfile_target_info): Likewise.
1468 * tracepoint.c (_initialize_tracepoint): Likewise.
1469 * tui/tui-win.c (_initialize_tui_win): Likewise.
1470 * utils.c (add_internal_problem_command): Likewise.
1471 * valprint.c (value_print_option_defs): Likewise.
1472
404f2902
FCE
14732019-08-06 Frank Ch. Eigler <fche@redhat.com>
1474
1475 PR build/24886
1476 * configure.ac: Drop enable-libmcheck support.
1477 * configure, config.in: Rebuild.
1478 * libmcheck.m4: Remove.
1479 * acinclude.m4: Don't include it.
1480 * Makefile.in: Don't distribute it.
1481 * top.c (print_gdb_configuration): Don't mention it.
1482
046bebe1
TT
14832019-08-06 Tom Tromey <tom@tromey.com>
1484
1485 * utils.c (set_output_style): Sometimes pass stream to
1486 emit_style_escape.
1487 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
1488 * record-btrace.c (btrace_insn_history): Update.
1489 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
1490 method.
1491 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
1492 Update initializers.
1493 <m_uiout>: New field.
1494 <m_di>: Move lower.
1495 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1496 Remove "uiout" parameter.
1497 (dump_insns): Update.
1498 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
1499 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
1500
ddbcedf5
CB
15012019-08-06 Christian Biesinger <cbiesinger@google.com>
1502
1503 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
1504 (error_in_psymtab_expansion): Likewise.
1505 (lookup_symbol_via_quick_fns): Likewise.
1506 (basic_lookup_transparent_type_quick): Likewise.
1507 (basic_lookup_transparent_type_1): Likewise.
1508
b08b16c8
TT
15092019-08-06 Tom Tromey <tromey@adacore.com>
1510
1511 * source.c (last_source_error): Now bool.
1512 (print_source_lines_base): Make "noprint" bool. Only open
1513 source file when last_source_visited changes.
1514
cb44333d
TT
15152019-08-06 Tom Tromey <tromey@adacore.com>
1516
1517 * annotate.c (annotate_source_line): Use g_source_cache.
1518 * source-cache.c (source_cache::get_plain_source_lines): Change
1519 parameters. Populate m_offset_cache.
1520 (source_cache::ensure): New method.
1521 (source_cache::get_line_charpos): New method.
1522 (extract_lines): Move lower. Change parameters.
1523 (source_cache::get_source_lines): Move lower.
1524 * source-cache.h (class source_cache): Update comment.
1525 <get_line_charpos>: New method.
1526 <get_source_lines>: Update comment.
1527 <clear>: Clear m_offset_cache.
1528 <get_plain_source_lines>: Change parameters.
1529 <ensure>: New method
1530 <m_offset_cache>: New member.
1531 * source.c (forget_cached_source_info_for_objfile): Update.
1532 (info_source_command): Use g_source_cache.
1533 (find_source_lines, open_source_file_with_line_charpos): Remove.
1534 (print_source_lines_base, search_command_helper): Use g_source_cache.
1535 * source.h (open_source_file_with_line_charpos): Don't declare.
1536 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
1537 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
1538 Use g_source_cache.
1539
872dceaa
TT
15402019-08-06 Tom Tromey <tromey@adacore.com>
1541
1542 * source-cache.c (source_cache::get_plain_source_lines):
1543 Remove "first_line" and "last_line" parameters.
1544 (source_cache::get_source_lines): Cache plain text.
1545 * source-cache.h (class source_cache)
1546 <get_plain_source_lines>: Update.
1547
269249d9
TT
15482019-08-06 Tom Tromey <tromey@adacore.com>
1549
1550 * source-cache.c (extract_lines): No longer a method.
1551 Changed type of parameter. Include final newline.
1552 (selftests::extract_lines_test): New function.
1553 (_initialize_source_cache): Likewise.
1554 * source-cache.h (class source_cache)
1555 <extract_lines>: Don't declare.
1556
c0e8dcd8
TT
15572019-08-06 Tom Tromey <tromey@adacore.com>
1558
1559 * breakpoint.c (init_breakpoint_sal): Update.
1560 (breakpoint): Update.
1561 * breakpoint.h (struct breakpoint) <filter>: Now a
1562 unique_xmalloc_ptr.
1563
0b27c27d
CB
15642019-08-05 Christian Biesinger <cbiesinger@google.com>
1565
1566 * NEWS: Mention dictionary access on blocks.
1567 * python/py-block.c (blpy_getitem): New function.
1568 (block_object_as_mapping): New struct.
1569 (block_object_type): Use new struct for tp_as_mapping field.
1570
4ee94178
CB
15712019-08-05 Christian Biesinger <cbiesinger@google.com>
1572
1573 * objfiles.h (objfile): Add a comment describing partial symbols.
1574
8abfcabc
TT
15752019-08-05 Tom Tromey <tromey@adacore.com>
1576
1577 * compile/compile.c (_initialize_compile): Use _(), not N_().
1578 * thread.c (_initialize_thread): Use _(), not N_().
1579 * stack.c (_initialize_stack): Use _(), not N_().
1580 * printcmd.c (_initialize_printcmd): Use _(), not N_().
1581
2b79f376
SM
15822019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1583
1584 * dwarf2read.c (struct dw2_symtab_iterator):
1585 <want_specific_block>: Remove.
1586 <block_index>: Change type to gdb::optional.
1587 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
1588 change type of BLOCK_INDEX parameter to gdb::optional.
1589 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
1590 (dw2_lookup_symbol): Don't pass argument for
1591 WANT_SPECIFIC_BLOCK.
1592 (dw2_expand_symtabs_for_function): Don't pass argument for
1593 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
1594 (class dw2_debug_names_iterator)
1595 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
1596 parameter, change BLOCK_INDEX type to gdb::optional.
1597 <m_want_specific_block>: Remove.
1598 <m_block_index>: Change type to gdb::optional.
1599 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
1600 gdb::optional. Re-write in function of gdb::optional.
1601 (dw2_debug_names_lookup_symbol): Don't pass argument for
1602 WANT_SPECIFIC_BLOCK.
1603 (dw2_debug_names_expand_symtabs_for_function): Don't pass
1604 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
1605 BLOCK_INDEX.
1606
ae60f04e
PW
16072019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1608
1609 * NEWS: Mention changes to "info sources" command.
1610
28cd9371
PW
16112019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1612
1613 * symtab.c (filename_partial_match_opts): New struct type.
1614 (struct output_source_filename_data): New members
1615 regexp, c_regexp, partial_match.
1616 (output_source_filename): Use new members to decide to print file.
1617 (info_sources_option_defs): New variable.
1618 (make_info_sources_options_def_group, print_info_sources_header,
1619 info_sources_command_completer):
1620 New functions.
1621 (info_sources_command): Read new optional arguments.
1622 (_initialize_symtab): Update info sources help.
1623
ca683e3a
AO
16242019-08-02 Alexandre Oliva <oliva@adacore.com>
1625
1626 * ada-lang.c (exception_support_info_v0): Renamed from...
1627 (default_exception_support_info): ... this. Create new
1628 definition for v1.
1629 (ada_has_this_exception_support): Look up catch_handlers_sym.
1630 (ada_exception_support_info_sniffer): Try v0 after default.
1631
f1264162
TT
16322019-08-01 Tom Tromey <tromey@adacore.com>
1633
1634 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
1635 gdbarch.h.
1636
0a7b2485
CB
16372019-08-01 Christian Biesinger <cbiesinger@google.com>
1638
1639 * s12z-tdep.c: Fix include path for s12z-opc.h.
1640
c6bdbeb7
AH
16412019-08-01 Alan Hayward <alan.hayward@arm.com>
1642
1643 * NEWS: Require GNU make 3.82.
1644
a2bd7b82
TT
16452019-07-16 Tom Tromey <tom@tromey.com>
1646
1647 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
1648 declare.
1649
aa3b6533
TT
16502019-07-30 Tom Tromey <tromey@adacore.com>
1651
1652 * block.c (contained_in): Remove BLOCK_FUNCTION check.
1653
a1530dc7
KB
16542019-07-30 Kevin Buettner <kevinb@redhat.com>
1655
1656 * printcmd.c (print_address_symbolic): Print negative offsets.
1657 (build_address_symbolic): Force signed arithmetic when computing
1658 offset.
1659
2906593f
CB
16602019-07-30 Christian Biesinger <cbiesinger@google.com>
1661
1662 PR/24474: Add a function to lookup static variables.
1663 * NEWS: Mention this new function.
1664 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
1665 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
1666 * python/python.c (python_GdbMethods): Add new function.
1667
c620ed88
CB
16682019-07-29 Christian Biesinger <cbiesinger@google.com>
1669
1670 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
1671 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
1672 (objfpy_lookup_static_symbol): New function.
1673 (objfile_object_methods): Add new functions.
1674
bc4268a5
PW
16752019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1676
1677 * NEWS: Mention 'set|show print frame-info'. Mention new
1678 'presence' value for 'frame-arguments'. Mention new '-frame-info'
1679 backtrace argument. Mention that python frame filtering code
1680 is now consistent with what 'backtrace' command prints.
1681
4b5e8d19
PW
16822019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1683
1684 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
1685 comments.
1686 (print_frame_info_auto, print_frame_info_source_line,
1687 print_frame_info_location, print_frame_info_source_and_location,
1688 print_frame_info_location_and_address, print_frame_info_short_location):
1689 New declarations.
1690 (struct frame_print_options): New member print_frame_info.
1691 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
1692 * stack.h (get_user_print_what_frame_info): New declaration.
1693 (frame_show_address): New declaration.
1694 * stack.c (print_frame_arguments_choices): New value 'presence'.
1695 (print_frame_info_auto, print_frame_info_source_line,
1696 print_frame_info_location, print_frame_info_source_and_location,
1697 print_frame_info_location_and_address, print_frame_info_short_location,
1698 print_frame_info_choices, print_frame_info_print_what): New definitions.
1699 (print_frame_args): Only print dots for args if print frame-arguments
1700 is 'presence'.
1701 (frame_print_option_defs): New element for "frame-info".
1702 (get_user_print_what_frame_info): New function.
1703 (frame_show_address): Make non static. Move comment to stack.h.
1704 (print_frame_info_to_print_what): New function.
1705 (print_frame_info): Update comment. Use fp_opts.print_frame_info
1706 to decide what to print.
1707 (backtrace_command_1): Handle the new print_frame_arguments_presence
1708 value.
1709 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
1710 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
1711 (py_print_frame): In non-mi mode, use LOCATION as default for
1712 print_what, similarly to frame information printed directly by
1713 backtrace command. Handle frame-info user option in non MI mode.
1714
6bdfee81
KB
17152019-07-27 Kevin Buettner <kevinb@redhat.com>
1716
1717 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
1718 Add case for debugging 32-bit target on 64-bit host. Revise
1719 comment.
1720
98a617f8
KB
17212019-07-27 Kevin Buettner <kevinb@redhat.com>
1722
1723 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
1724 instead of find_function_entry_range_from_pc.
1725
567238c9
KB
17262019-07-27 Kevin Buettner <kevinb@redhat.com>
1727
1728 * stack.c (find_frame_funname): Remove code which preferred
1729 minsym over symtab sym in "certain pathological cases".
1730
2dc80cf8
KB
1731 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
1732 parameter. Change type of "do_demangle" to bool.
1733 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1734 Pass suitable "prefer_sym_over_minsym" flag to
1735 build_address_symbolic(). Don't output "+" for negative offsets.
1736 * printcmd.c (print_address_symbolic): Update invocation of
1737 build_address_symbolic to include a "prefer_sym_over_minsym"
1738 flag.
1739 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
1740 Restrict cases in which use of minimal symbol is preferred to that
1741 of a found symbol. Update comments.
1742
1aff7173
KB
1743 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
1744 for entry pc when entry pc is out of range for that FDE.
1745
89b085ac
BC
17462019-07-26 Brian Callahan <bcallah@openbsd.org>
1747
1748 PR gdb/24839:
1749 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
1750 type.
1751
f32feb4a
CB
17522019-07-25 Christian Biesinger <cbiesinger@google.com>
1753
1754 * python/py-objfile.c (add_separate_debug_file): Fix comment about
1755 this function's Python signature.
1756
1757
17582019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
1759
1760 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
1761 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
1762 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
1763 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
1764 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
1765
1766
c54e4253
YS
17672019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
1768
1769 * h8300-tdep.c (h8300_register_name_common): New.
1770 h8300_register_name): Use h8300_register_name_common.
1771 (h8300s_register_name): Likewise.
1772 (h8300sx_register_name): Likewise.
1773 (h8300h_register_nam): New.
1774 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
1775
1776
40eadf04
SP
17772019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
1778
1779 * arm-tdep.c (arm_skip_cmse_entry): New function.
1780 (arm_is_sgstubs_section): New function.
1781 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
1782
bfa2a36d
TT
17832019-07-22 Tom Tromey <tom@tromey.com>
1784
1785 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
1786 Don't self-assign.
1787
a8e9d247
AB
17882019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1789
1790 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
1791 type_print.
1792
eb86c5e2
AB
17932019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1794
1795 * symtab.c (search_symbols): Adjust msymbol matching type arrays
1796 so that GDB doesn't match any msymbols when searching in the
1797 TYPES_DOMAIN.
1798 (print_symbol_info): Print using typedef_print or type_print based
1799 on the type of the symbol. Add updated FIXME comment moved from...
1800 (_initialize_symtab): ... move and update FIXME comment to above.
1801
a8eab7c6
AB
18022019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1803
1804 * NEWS: Mention adding -q option to "info types".
1805 * symtab.c (struct info_types_options): New struct.
1806 (info_types_options_defs): New variable.
1807 (make_info_types_options_def_group): New function.
1808 (info_types_command): Use gdb::option framework to parse options.
1809 (info_types_command_completer): New function.
1810 (_initialize_symtab): Extend the help text on "info types" and
1811 register command completer.
1812
b4603c34
CB
18132019-07-21 Christian Biesinger <cbiesinger@google.com>
1814
1815 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
1816 (lookup_symbol_in_objfile): Change int to block_enum and add a
1817 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
1818
c8cdc1e0
CB
18192019-07-20 Christian Biesinger <cbiesinger@google.com>
1820
1821 * MAINTAINERS (Write After Approval): Add self.
1822
01e175fe
AB
18232019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
1824
1825 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
1826 instruction to the dummy code region.
1827
56f79b63
TT
18282019-07-19 Tom Tromey <tromey@adacore.com>
1829
1830 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
1831 (ARGSUSED, PARAMS, __func__): Remove rules.
1832
4c5aa8e0
AH
18332019-07-19 Alan Hayward <alan.hayward@arm.com>
1834
1835 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
1836 * features/arm/arm-with-iwmmxt.c: Remove.
1837 * features/arm/arm-with-iwmmxt.xml: Remove.
1838 * features/arm/arm-with-m-fpa-layout.c: Remove.
1839 * features/arm/arm-with-m-fpa-layout.xml: Remove.
1840 * features/arm/arm-with-m-vfp-d16.c: Remove.
1841 * features/arm/arm-with-m-vfp-d16.xml: Remove.
1842 * features/arm/arm-with-m.c: Remove.
1843 * features/arm/arm-with-m.xml: Remove.
1844 * features/arm/arm-with-neon.c: Remove.
1845 * features/arm/arm-with-neon.xml: Remove.
1846 * features/arm/arm-with-vfpv2.c: Remove.
1847 * features/arm/arm-with-vfpv2.xml: Remove.
1848 * features/arm/arm-with-vfpv3.c: Remove.
1849 * features/arm/arm-with-vfpv3.xml: Remove.
1850
f42b2617
AH
18512019-07-19 Alan Hayward <alan.hayward@arm.com>
1852
1853 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
1854
f29ec966
AH
18552019-07-19 Alan Hayward <alan.hayward@arm.com>
1856
1857 * arch/aarch32.c (aarch32_create_target_description): Create
1858 target descriptions using features.
1859 * arch/arm.c (arm_create_target_description)
1860 (arm_create_mprofile_target_description): Likewise.
1861 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
1862
d105cce5
AH
18632019-07-19 Alan Hayward <alan.hayward@arm.com>
1864
1865 * Makefile.in: Add new files.
1866 * aarch32-tdep.c: New file.
1867 * aarch32-tdep.h: New file.
1868 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
1869 Call aarch32_read_description.
1870 * arch/aarch32.c: New file.
1871 * arch/aarch32.h: New file.
1872 * arch/arm.c (arm_create_target_description)
1873 (arm_create_mprofile_target_description): New function.
1874 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
1875 (arm_create_target_description)
1876 (arm_create_mprofile_target_description): New declaration.
1877 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
1878 read_description functions.
1879 * arm-linux-nat.c (arm_linux_nat_target::read_description):
1880 Likewise.
1881 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
1882 * arm-tdep.c (tdesc_arm_list): New variable.
1883 (arm_register_g_packet_guesses): Call create description functions.
1884 (arm_read_description) (arm_read_mprofile_description): New
1885 function.
1886 * arm-tdep.h (arm_read_description)
1887 (arm_read_mprofile_description): Add declaration.
1888 * configure.tgt: Add new files.
1889
afe09f0b
GL
18902019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
1891
1892 * top.c (new_ui_command): Open specified terminal just once.
1893
cd215b2e
TT
18942019-07-18 Tom Tromey <tromey@adacore.com>
1895
1896 * symtab.c (main_name): Constify return type.
1897 * symfile.c (set_initial_language): Update.
1898 * symtab.h (main_name): Constify return type.
1899
d8f68fcb
TT
19002019-07-17 Tom Tromey <tom@tromey.com>
1901
1902 * tui/tui-winsource.c (tui_update_source_window)
1903 (tui_update_source_window_as_is)
1904 (tui_update_source_windows_with_line): Remove return.
1905 * tui/tui-disasm.c (tui_show_disassem)
1906 (tui_show_disassem_and_update_source): Remove return.
1907 * tui/tui.c (tui_reset): Remove return.
1908 * tui/tui-wingeneral.c
1909 (tui_check_and_display_highlight_if_needed): Remove return.
1910
ca5af91e
TT
19112019-07-17 Tom Tromey <tom@tromey.com>
1912
1913 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
1914
5104fe36
TT
19152019-07-17 Tom Tromey <tom@tromey.com>
1916
1917 * tui/tui-winsource.h (struct tui_exec_info_window)
1918 (struct tui_source_window_base): Move from tui-data.h.
1919 * tui/tui-winsource.c: Move many method definitions from
1920 elsewhere. Remove "structuring" comments.
1921 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
1922 (tui_source_window_base::refresh_window): Move to
1923 tui-winsource.c.
1924 * tui/tui-win.c (tui_source_window_base::refresh_all)
1925 (tui_source_window_base::update_tab_width)
1926 (tui_source_window_base::set_new_height)
1927 (tui_source_window_base::do_make_visible_with_new_height): Move to
1928 tui-winsource.c.
1929 * tui/tui-source.h: Update.
1930 * tui/tui-source.c (tui_source_window_base::reset): Move to
1931 tui-winsource.c.
1932 * tui/tui-disasm.h: Update.
1933 * tui/tui-data.h (struct tui_exec_info_window): Move to
1934 tui-winsource.h.
1935 (struct tui_source_window_base): Likewise.
1936 * tui/tui-data.c (tui_source_window_base::clear_detail)
1937 (tui_source_window_base, ~tui_source_window_base): Move to
1938 tui-winsource.c.
1939
daa15dde
TT
19402019-07-17 Tom Tromey <tom@tromey.com>
1941
1942 * tui/tui-win.c (tui_resize_all)
1943 (tui_source_window_base::update_tab_width)
1944 (tui_adjust_win_heights): Update.
1945 (tui_win_info::make_invisible_and_set_new_height): Rename from
1946 make_invisible_and_set_new_height.
1947 * tui/tui-data.h (struct tui_win_info)
1948 <make_invisible_and_set_new_height>: New method.
1949
bfad4537
TT
19502019-07-17 Tom Tromey <tom@tromey.com>
1951
1952 * tui/tui.c: Update.
1953 * tui/tui-source.h (struct tui_source_window): Move from
1954 tui-data.h.
1955 * tui/tui-layout.c: Update.
1956 * tui/tui-disasm.c: Update.
1957 * tui/tui-data.h (struct tui_source_window): Move to
1958 tui-source.h.
1959
88f7e873
TT
19602019-07-17 Tom Tromey <tom@tromey.com>
1961
1962 * tui/tui-disasm.h (struct tui_disasm_window): Move from
1963 tui-data.h.
1964 * tui/tui-data.h (struct tui_disasm_window): Move to
1965 tui-disasm.h.
1966
96bd6233
TT
19672019-07-17 Tom Tromey <tom@tromey.com>
1968
1969 * tui/tui-regs.h (struct tui_data_item_window): Move from
1970 tui-data.h.
1971 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
1972 * tui/tui-data.h (struct tui_data_item_window): Move to
1973 tui-regs.h.
1974 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
1975
ce38393b
TT
19762019-07-17 Tom Tromey <tom@tromey.com>
1977
1978 * tui/tui.c: Update.
1979 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
1980 (tui_cmd_window::max_height): Move to tui-command.c.
1981 * tui/tui-layout.c: Update.
1982 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
1983 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
1984 tui-command.c.
1985 * tui/tui-command.h (struct tui_cmd_window): Move from
1986 tui-data.h.
1987 * tui/tui-command.c: Remove "structuring" comments.
1988 (tui_cmd_window::clear_detail)
1989 (tui_cmd_window::do_make_visible_with_new_height)
1990 (tui_cmd_window::max_height): Move from elsewhere.
1991
2d8b51cb
TT
19922019-07-17 Tom Tromey <tom@tromey.com>
1993
1994 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
1995 Now static.
1996 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
1997 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
1998
18ab23af
TT
19992019-07-17 Tom Tromey <tom@tromey.com>
2000
2001 * tui/tui.c: Update.
2002 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
2003 tui-regs.c.
2004 * tui/tui-windata.h: Remove file.
2005 * tui/tui-windata.c: Remove file.
2006 * tui/tui-win.c (tui_data_window::set_new_height)
2007 (tui_data_window::do_make_visible_with_new_height): Move to
2008 tui-regs.c.
2009 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
2010 * tui/tui-regs.c: Remove "structuring" comments.
2011 (tui_data_window::first_data_item_displayed)
2012 (tui_data_window::delete_data_content_windows)
2013 (tui_data_window::erase_data_content)
2014 (tui_data_window::display_all_data)
2015 (tui_data_window::refresh_all)
2016 (tui_data_window::do_scroll_vertical)
2017 (tui_data_window::clear_detail, tui_data_window::set_new_height)
2018 (tui_data_window::do_make_visible_with_new_height)
2019 (tui_data_window::refresh_window): Move from elsewhere.
2020 (_initialize_tui_regs): Move to end of file.
2021 * tui/tui-layout.c: Update.
2022 * tui/tui-hooks.c: Update.
2023 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
2024 * tui/tui-data.c (tui_data_window::clear_detail): Move to
2025 tui-regs.c.
2026 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
2027
88b7e7cc
TT
20282019-07-17 Tom Tromey <tom@tromey.com>
2029
2030 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
2031 seen.
2032
0fcd3711
TT
20332019-07-17 Tom Tromey <tom@tromey.com>
2034
2035 * tui/tui-win.c (tui_source_window_base::set_new_height)
2036 (tui_source_window_base::do_make_visible_with_new_height): Use
2037 m_has_locator field directly.
2038 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
2039 method.
2040 (struct tui_source_window_base) <has_locator>: Likewise.
2041
4a38112d
TT
20422019-07-17 Tom Tromey <tom@tromey.com>
2043
2044 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
2045 Don't declare.
2046 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
2047 Remove.
2048 * tui/tui-win.c (tui_source_window_base::set_new_height)
2049 (tui_source_window_base::set_new_height)
2050 (make_invisible_and_set_new_height)
2051 (tui_source_window_base::do_make_visible_with_new_height)
2052 (tui_source_window_base::do_make_visible_with_new_height):
2053 Update.
2054 * tui/tui-layout.c (show_source_disasm_command, show_data)
2055 (show_source_or_disasm_and_command): Update.
2056 * tui/tui-layout.c (show_layout): Update.
2057
09129226
TT
20582019-07-17 Tom Tromey <tom@tromey.com>
2059
2060 * tui/tui-layout.c (make_data_window): Remove.
2061 (show_data): Unify creation and re-initialization cases.
2062
4a8a5e84
TT
20632019-07-17 Tom Tromey <tom@tromey.com>
2064
2065 * tui/tui-layout.c (make_source_window, make_disasm_window):
2066 Remove.
2067 (show_data): Unify creation and re-initialization cases.
2068
76d2be8e
TT
20692019-07-17 Tom Tromey <tom@tromey.com>
2070
2071 * tui/tui-layout.c (make_command_window): Remove.
2072 (show_source_disasm_command, show_source_or_disasm_and_command):
2073 Unify creation and re-initialization cases.
2074
890b8bde
TT
20752019-07-17 Tom Tromey <tom@tromey.com>
2076
2077 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
2078 creation and re-initialization cases.
2079
2cdfa113
TT
20802019-07-17 Tom Tromey <tom@tromey.com>
2081
2082 * tui/tui-regs.c (tui_get_register): Return void.
2083
8e3cfd09
TT
20842019-07-17 Tom Tromey <tom@tromey.com>
2085
2086 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
2087 Simplify.
2088
f4e04977
TT
20892019-07-17 Tom Tromey <tom@tromey.com>
2090
2091 * tui/tui-layout.c (show_source_disasm_command): Simplify window
2092 resetting.
2093
0379b883
TT
20942019-07-17 Tom Tromey <tom@tromey.com>
2095
2096 * tui/tui.h (tui_set_layout_by_name): Don't declare.
2097 * tui/tui-regs.c (tui_reg_layout): New function.
2098 (tui_show_registers, tui_reg_command): Use it.
2099 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
2100 (tui_layout_command): Rename from tui_set_layout_by_name. Change
2101 parameters.
2102 (tui_layout_command): Remove.
2103
b7fbad91
TT
21042019-07-17 Tom Tromey <tom@tromey.com>
2105
2106 * tui/tui-layout.h (tui/tui-layout): Return void.
2107 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
2108
4e1e56b9
TT
21092019-07-17 Tom Tromey <tom@tromey.com>
2110
2111 * tui/tui-layout.c (show_source_disasm_command, show_data):
2112 Update.
2113 (reset_locator): Remove.
2114 (show_source_or_disasm_and_command): Update.
2115
1e0c09ba
TT
21162019-07-17 Tom Tromey <tom@tromey.com>
2117
2118 * tui/tui-source.c (tui_source_window_base::reset): Remove
2119 win_type parameter.
2120 * tui/tui-layout.c (make_command_window, make_source_window)
2121 (make_disasm_window, make_data_window)
2122 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
2123 (reset_locator, show_source_or_disasm_and_command): Update.
2124 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
2125 win_type parameter.
2126 (struct tui_source_window_base) <reset>: Likewise.
2127
1bf605de
TT
21282019-07-17 Tom Tromey <tom@tromey.com>
2129
2130 * tui/tui-layout.c (show_source_disasm_command): Use
2131 reset_locator.
2132 (reset_locator): New function.
2133 (init_and_make_win): Remove.
2134 (show_source_or_disasm_and_command): Use reset_locator.
2135
098f9ed4
TT
21362019-07-17 Tom Tromey <tom@tromey.com>
2137
2138 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
2139 condition.
2140 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
2141 Remove condition.
2142 * tui/tui-source.c (tui_source_window_base::reset): New method.
2143 * tui/tui-layout.c (make_command_window): Don't call
2144 init_and_make_win.
2145 (make_source_window, make_disasm_window): Don't call
2146 make_source_or_disasm_window.
2147 (make_data_window): Don't call init_and_make_win. Change calling
2148 convention.
2149 (show_source_disasm_command, show_data): Simplify.
2150 (make_source_or_disasm_window): Remove.
2151 (show_source_or_disasm_and_command): Simplify.
2152 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
2153 (struct tui_source_window_base) <reset>: Likewise.
2154 <execution_info>: Remove initializer.
2155 * tui/tui-data.c (tui_source_window_base): Initialize
2156 execution_info.
2157
80110957
TT
21582019-07-17 Tom Tromey <tom@tromey.com>
2159
2160 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
2161 variable.
2162
cf82af05
TT
21632019-07-17 Tom Tromey <tom@tromey.com>
2164
2165 * tui/tui.c (tui_rl_other_window): Update.
2166 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
2167 superclass method first. Always iterate over regs_content.
2168 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
2169 method.
2170 * tui/tui-win.c (tui_set_focus_command): Update.
2171
01aeb396
TT
21722019-07-17 Tom Tromey <tom@tromey.com>
2173
2174 * tui/tui-win.c (tui_set_focus_command): Rename from
2175 tui_set_focus. Call tui_enable.
2176 (tui_set_focus_command): Remove.
2177
fd6c75ee
TT
21782019-07-17 Tom Tromey <tom@tromey.com>
2179
2180 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
2181 refresh_window.
2182 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
2183 touchwin.
2184 (tui_data_window::refresh_window): Call refresh_window on data
2185 items. Always call superclass refresh_window.
2186 (tui_win_info::refresh): Remove.
2187 (tui_source_window_base::refresh_window): Update.
2188 (tui_refresh_all): Update.
2189 * tui/tui-layout.c (show_source_disasm_command): Remove call to
2190 refresh_window.
2191 (show_source_or_disasm_and_command): Likewise.
2192 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
2193 (struct tui_source_window_base) <refresh>: Likewise.
2194
f6cc34a9
TT
21952019-07-17 Tom Tromey <tom@tromey.com>
2196
2197 * tui/tui-winsource.c (tui_clear_source_content)
2198 (tui_show_source_content): Update.
2199 * tui/tui-source.c (tui_source_window::showing_source_p): Check
2200 whether content is empty.
2201 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
2202 Remove.
2203
f31ec9af
TT
22042019-07-17 Tom Tromey <tom@tromey.com>
2205
2206 * tui/tui-winsource.c (tui_erase_source_content): Clear the
2207 window's contents.
2208 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
2209 * tui/tui-source.c (tui_set_source_content_nil): Remove.
2210
d1b6f1e5
TT
22112019-07-17 Tom Tromey <tom@tromey.com>
2212
2213 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
2214 (struct tui_data_item_window): Update.
2215
d9743a13
TT
22162019-07-17 Tom Tromey <tom@tromey.com>
2217
2218 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
2219 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
2220 defines.
2221
caf0bc4e
TT
22222019-07-17 Tom Tromey <tom@tromey.com>
2223
2224 * tui/tui-winsource.h (tui_erase_source_content)
2225 (tui_clear_source_content): Remove "display_prompt" parameter.
2226 * tui/tui-winsource.c (tui_update_source_window_as_is)
2227 (tui_update_source_windows_with_addr): Update.
2228 (tui_clear_source_content): Remove "display_prompt" parameter.
2229 (tui_erase_source_content): Likewise. Simplify.
2230 (tui_show_source_content): Update.
2231 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2232 * tui/tui-stack.c (tui_show_frame_info): Update.
2233 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
2234 Remove defines.
2235
9d391078
TT
22362019-07-17 Tom Tromey <tom@tromey.com>
2237
2238 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2239 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
2240 parameter.
2241 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
2242 parameter.
2243
a38da35d
TT
22442019-07-17 Tom Tromey <tom@tromey.com>
2245
2246 * tui/tui-winsource.c (tui_clear_source_content)
2247 (tui_show_source_content, tui_show_exec_info_content)
2248 (tui_clear_exec_info_content): Update.
2249 * tui/tui-stack.c (tui_show_locator_content): Update.
2250 (tui_show_frame_info): Update.
2251 * tui/tui-source.h (tui_source_window): Don't declare.
2252 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
2253 from tui_source_is_displayed.
2254 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
2255 Remove field.
2256 (struct tui_source_window_base) <content_in_use>: New field. Now
2257 bool.
2258 (struct tui_source_window) <showing_source_p>: New method.
2259 (TUI_SRC_WIN): Change cast.
2260 * tui/tui-data.c (tui_initialize_static_data): Update.
2261
c2cd8994
TT
22622019-07-17 Tom Tromey <tom@tromey.com>
2263
2264 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
2265 location_matches_p.
2266 * tui/tui-source.c (tui_source_window::location_matches_p): New
2267 method.
2268 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
2269 method.
2270 * tui/tui-data.h (struct tui_source_window_base)
2271 <location_matches_p>: New method.
2272 (struct tui_source_window, struct tui_disasm_window)
2273 <location_matches_p>: Likewise.
2274
4dde7b34
TT
22752019-07-17 Tom Tromey <tom@tromey.com>
2276
2277 * tui/tui-win.c (tui_set_win_height_command): Rename from
2278 tui_set_win_height.
2279 (tui_set_win_height_command): Remove.
2280
b73dd877
TT
22812019-07-17 Tom Tromey <tom@tromey.com>
2282
2283 * tui/tui-source.c (tui_source_window): New constructor. Add
2284 observer.
2285 (~tui_source_window): New destructor.
2286 (tui_source_window::style_changed): New method.
2287 * tui/tui-hooks.c (tui_redisplay_source): Remove.
2288 (tui_attach_detach_observers): Update.
2289 * tui/tui-data.h (struct tui_source_window): Make constructor not
2290 inline. Add destructor.
2291 (struct tui_source_window) <style_changed>: New method.
2292 <m_observable>: New member.
2293
ae2b5380
TT
22942019-07-17 Tom Tromey <tom@tromey.com>
2295
2296 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
2297 * tui/tui-win.c (tui_resize_all): Fix typo.
2298
1ce3e844
TT
22992019-07-17 Tom Tromey <tom@tromey.com>
2300
2301 * tui/tui-wingeneral.h (tui_refresh_all): Update.
2302 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
2303 (tui_refresh_all): Remove "list" parameter. Use foreach.
2304 * tui/tui-win.c (window_name_completer): Use foreach.
2305 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
2306 (update_tab_width): Likewise.
2307 * tui/tui-layout.c (show_layout): Update.
2308 * tui/tui-data.h (class tui_window_iterator): New.
2309 (struct all_tui_windows): New.
2310 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
2311
fe3eaf1c
TT
23122019-07-17 Tom Tromey <tom@tromey.com>
2313
2314 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
2315 parameter. Don't reference globals.
2316 (tui_reg_command): Update.
2317
368c1354
TT
23182019-07-17 Tom Tromey <tom@tromey.com>
2319
2320 * tui/tui-regs.c (tui_show_registers): Simplify.
2321
e80cd204
TT
23222019-07-17 Tom Tromey <tom@tromey.com>
2323
2324 * tui/tui-regs.c (tui_show_registers): Update.
2325 (tui_show_register_group): Add win_info parameter.
2326
aca2dd16
TT
23272019-07-17 Tom Tromey <tom@tromey.com>
2328
2329 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
2330 Rename from tui_display_reg_element_at_line.
2331 (tui_data_window::display_registers_from_line): Update.
2332 * tui/tui-data.h (struct tui_data_window)
2333 <display_reg_element_at_line>: New method.
2334
517e9505
TT
23352019-07-17 Tom Tromey <tom@tromey.com>
2336
2337 * tui/tui-regs.h (tui_display_registers_from)
2338 (tui_display_registers_from_line): Don't declare.
2339 * tui/tui-windata.c (tui_data_window::display_all_data)
2340 (tui_data_window::refresh_all)
2341 (tui_data_window::do_scroll_vertical): Update.
2342 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
2343 from tui_display_registers_from.
2344 (tui_display_reg_element_at_line): Update.
2345 (tui_data_window::display_registers_from_line): Rename from
2346 tui_display_registers_from_line.
2347 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
2348 display_registers_from_line>: New methods.
2349
f76d8b19
TT
23502019-07-17 Tom Tromey <tom@tromey.com>
2351
2352 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
2353 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
2354 from tui_erase_data_content.
2355 (tui_data_window::display_all_data)
2356 (tui_data_window::refresh_all)
2357 (tui_data_window::do_scroll_vertical): Update.
2358 * tui/tui-regs.c (tui_show_registers): Update.
2359 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
2360 New method.
2361
b4094625
TT
23622019-07-17 Tom Tromey <tom@tromey.com>
2363
2364 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
2365 declare.
2366 * tui/tui-windata.c
2367 (tui_data_window::delete_data_content_windows): Rename from
2368 tui_delete_data_content_windows.
2369 (tui_data_window::display_all_data)
2370 (tui_data_window::do_scroll_vertical): Update.
2371 * tui/tui-data.h (struct tui_data_window)
2372 <delete_data_content_windows>: New method.
2373
c223a729
TT
23742019-07-17 Tom Tromey <tom@tromey.com>
2375
2376 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
2377 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
2378
50daf268
TT
23792019-07-17 Tom Tromey <tom@tromey.com>
2380
2381 * tui/tui-windata.h (tui_display_all_data): Don't declare.
2382 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
2383 from tui_display_all_data.
2384 * tui/tui-win.c
2385 (tui_data_window::do_make_visible_with_new_height): Update.
2386 * tui/tui-regs.c (tui_show_registers): Update.
2387 * tui/tui-layout.c (tui_set_layout): Update.
2388 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
2389 method.
2390
df5f8cab
TT
23912019-07-17 Tom Tromey <tom@tromey.com>
2392
2393 * tui/tui-windata.h (tui_display_data_from): Don't declare.
2394 * tui/tui-windata.c (tui_display_data_from): Remove.
2395 (tui_data_window::refresh_all): Update.
2396
80cb6c27
TT
23972019-07-17 Tom Tromey <tom@tromey.com>
2398
2399 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
2400 * tui/tui-windata.c (tui_display_data_from_line): Remove.
2401 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
2402 tui_display_registers_from_line.
2403 * tui/tui-regs.h (tui_display_registers_from_line): Update.
2404 * tui/tui-regs.c (tui_display_registers_from_line): Remove
2405 "force_display" parameter.
2406
baff0c28
TT
24072019-07-17 Tom Tromey <tom@tromey.com>
2408
2409 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
2410 declare.
2411 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
2412 Rename from tui_first_reg_element_no_inline.
2413 (tui_display_reg_element_at_line)
2414 (tui_display_registers_from_line): Update.
2415 * tui/tui-data.h (struct tui_data_window)
2416 <first_reg_element_no_inline>: New method.
2417
3b23c5f2
TT
24182019-07-17 Tom Tromey <tom@tromey.com>
2419
2420 * tui/tui-windata.c (tui_display_data_from)
2421 (tui_data_window::do_scroll_vertical): Update.
2422 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
2423 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
2424 Rename from tui_line_from_reg_element_no.
2425 (tui_display_registers_from_line): Update.
2426 * tui/tui-data.h (struct tui_data_window)
2427 <line_from_reg_element_no>: New method.
2428
0b5ec218
TT
24292019-07-17 Tom Tromey <tom@tromey.com>
2430
2431 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
2432 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
2433 tui_last_regs_line_no.
2434 (tui_display_reg_element_at_line)
2435 (tui_display_registers_from_line): Update.
2436 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
2437 method.
2438
0807ab7b
TT
24392019-07-17 Tom Tromey <tom@tromey.com>
2440
2441 PR tui/24722:
2442 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
2443 (tui_update_breakpoint_info): Add "being_deleted" parameter.
2444 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2445 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
2446 (tui_update_breakpoint_info): Likewise.
2447 * tui/tui-hooks.c (tui_event_create_breakpoint)
2448 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
2449 Update.
2450
9ad7fdef
TT
24512019-07-17 Tom Tromey <tom@tromey.com>
2452
2453 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
2454
5813316f
TT
24552019-07-17 Tom Tromey <tom@tromey.com>
2456
2457 * tui/tui-winsource.c (tui_update_source_window_as_is)
2458 (tui_update_source_windows_with_addr): Update.
2459 * tui/tui-source.h (tui_set_source_content)
2460 (tui_show_symtab_source): Add "win_info" parameter.
2461 * tui/tui-source.c (tui_set_source_content): Add "win_info"
2462 parameter.
2463 (tui_show_symtab_source): Likewise.
2464
00e264e7
TT
24652019-07-17 Tom Tromey <tom@tromey.com>
2466
2467 * tui/tui-wingeneral.c
2468 (tui_check_and_display_highlight_if_needed): Check can_highlight.
2469
06210ce4
TT
24702019-07-17 Tom Tromey <tom@tromey.com>
2471
2472 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
2473 (struct tui_cmd_window) <can_scroll>: New method.
2474 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
2475 method.
2476
381befee
TT
24772019-07-17 Tom Tromey <tromey@adacore.com>
2478
2479 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
2480 do_field_signed>: Rename. Change type of "value".
2481 * ui-out.c (ui_out::field_signed): Rename from field_int.
2482 Change type of "value".
2483 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
2484 type of "value".
2485 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
2486 do_field_int. Change type of "value".
2487 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
2488 do_field_int. Change type of "value".
2489 * tracepoint.c (trace_status_mi, tfind_1)
2490 (print_one_static_tracepoint_marker): Update.
2491 * thread.c (print_thread_info_1, print_selected_thread_frame):
2492 Update.
2493 * stack.c (print_frame, print_frame_info): Update.
2494 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
2495 Update.
2496 * source.c (print_source_lines_base): Update.
2497 * skip.c (info_skip_command): Update.
2498 * record-btrace.c (btrace_ui_out_decode_error)
2499 (btrace_call_history_src_line): Update.
2500 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
2501 Update.
2502 * progspace.c (print_program_space): Update.
2503 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
2504 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
2505 do_field_int. Change type of "value".
2506 * mi/mi-out.c (mi_ui_out::do_table_begin)
2507 (mi_ui_out::do_table_header): Update.
2508 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
2509 type of "value".
2510 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
2511 (mi_cmd_data_list_changed_registers, output_register)
2512 (mi_cmd_data_read_memory, mi_load_progress)
2513 (mi_cmd_trace_frame_collected): Update.
2514 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
2515 Update.
2516 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
2517 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
2518 (mi_cmd_var_list_children, varobj_update_one): Update.
2519 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
2520 (mi_cmd_stack_list_args, list_arg_or_local): Update.
2521 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
2522 * inferior.c (print_inferior): Update.
2523 * gdb_bfd.c (print_one_bfd): Update.
2524 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2525 Update.
2526 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
2527 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
2528 do_field_int. Change type of "value".
2529 * cli-out.c (cli_ui_out::do_field_signed): Rename from
2530 do_field_int. Change type of "value".
2531 * breakpoint.c (watchpoint_check, print_breakpoint_location)
2532 (print_one_breakpoint_location, print_it_catch_fork)
2533 (print_one_catch_fork, print_it_catch_vfork)
2534 (print_one_catch_vfork, print_it_catch_solib)
2535 (print_it_catch_exec, print_it_ranged_breakpoint)
2536 (print_mention_watchpoint, print_mention_masked_watchpoint)
2537 (bkpt_print_it, update_static_tracepoint): Update.
2538 * break-catch-throw.c (print_it_exception_catchpoint): Update.
2539 * break-catch-syscall.c (print_it_catch_syscall): Update.
2540 * ada-tasks.c (print_ada_task_info): Update.
2541 * ada-lang.c (print_it_exception, print_mention_exception):
2542 Update.
2543
6b78c3f8
AB
25442019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2545
2546 PR breakpoints/24541
2547 * gdbarch.c: Regenerate.
2548 * gdbarch.h: Regenerate.
2549 * gdbarch.sh: Adjust return type and parameter types for
2550 'stap_adjust_register'.
2551 (i386_stap_adjust_register): Adjust signature and return new
2552 register name.
2553 * stap-probe.c (stap_parse_register_operand): Adjust use of
2554 'gdbarch_stap_adjust_register'.
2555
d72a9b85
TT
25562019-07-17 Tom Tromey <tromey@adacore.com>
2557
2558 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
2559 declare VEC.
2560 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
2561 std::vector.
2562 (struct s390_process_info): Add initializers.
2563 (s390_add_process): Use new.
2564 (s390_linux_nat_target::low_forget_process): Use delete.
2565 (s390_linux_nat_target::low_new_fork)
2566 (s390_linux_nat_target::stopped_by_watchpoint)
2567 (s390_linux_nat_target::low_prepare_to_resume)
2568 (s390_linux_nat_target::insert_watchpoint)
2569 (s390_linux_nat_target::insert_hw_breakpoint)
2570 (s390_linux_nat_target::remove_watchpoint)
2571 (s390_linux_nat_target::remove_hw_breakpoint): Update.
2572
206e6c58
JB
25732019-07-16 John Baldwin <jhb@FreeBSD.org>
2574
2575 * aarch64-fbsd-nat.c: Include regcache.h.
2576 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
2577 argument.
2578 (aarch64_fbsd_nat_target::fetch_registers)
2579 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
2580 variable.
2581 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
2582
cbde90f2
JB
25832019-07-16 John Baldwin <jhb@FreeBSD.org>
2584
2585 * fbsd-nat.c: Include gdbarch.h.
2586
07128006
TT
25872019-07-15 Tom Tromey <tromey@adacore.com>
2588
2589 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
2590
1f77b012
TT
25912019-07-15 Tom Tromey <tromey@adacore.com>
2592
2593 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
2594 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
2595 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
2596 * cli-out.c (cli_ui_out::do_field_int): New method.
2597 * ui-out.c (ui_out::field_unsigned): New method.
2598 * symfile.c (generic_load): Use field_unsigned.
2599 (print_transfer_performance): Likewise.
2600 * record-btrace.c (ui_out_field_uint): Remove.
2601 (btrace_call_history_insn_range, btrace_call_history): Use
2602 field_unsigned.
2603 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
2604 field_unsigned.
2605 * ui-out.h (class ui_out) <field_unsigned>: New method.
2606 <do_field_unsigned>: Likewise.
2607
33eca680
TT
26082019-07-15 Tom Tromey <tromey@adacore.com>
2609
2610 * mi/mi-main.c (list_available_thread_groups): Use field_string.
2611 * mi/mi-interp.c (mi_memory_changed): Use field_string.
2612 * target.c (flash_erase_command): Use field_string.
2613 * infrun.c (print_signal_received_reason): Use field_string.
2614 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
2615 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
2616 field_string.
2617 * ada-tasks.c (print_ada_task_info): Use field_string.
2618
ca8d69be
TT
26192019-07-15 Tom Tromey <tromey@adacore.com>
2620
2621 * target.c (flash_erase_command): Use field_core_addr.
2622 * symfile.c (generic_load): Use field_core_addr.
2623 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2624 Use field_core_addr.
2625 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
2626 field_core_addr.
2627
0d4e84ed
AB
26282019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2629
2630 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
2631 value if its desired type is smaller than a CORE_ADDR and signed.
2632
9a49df9d
AB
26332019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2634
2635 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
2636 of changes to field names, and use new is_reference field to
2637 decide if a property is a reference or not.
2638 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
2639 field.
2640 (struct dwarf2_property_baton): Update header comment, rename
2641 'referenced_type' to 'property_type' and update comments.
2642 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
2643 default property type, store in property baton, update to take
2644 accound of renamed field.
2645 (read_func_scope): Update call to attr_to_dynamic_prop.
2646 (read_array_type): Likewise.
2647 (dwarf2_per_cu_addr_sized_int_type): New function.
2648 (read_subrange_index_type): Move type finding code to
2649 dwarf2_per_cu_addr_sized_int_type.
2650 (read_subrange_type): Update calls to attr_to_dynamic_prop.
2651 (dwarf2_per_cu_addr_type): New function.
2652 (set_die_type): Update calls to attr_to_dynamic_prop.
2653
b86352cf
AB
26542019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2655
2656 * dwarf2read.c (read_subrange_index_type): New function.
2657 (read_subrange_type): Move code into new function and call it.
2658 * gdbtypes.c (create_range_type): Add some asserts.
2659
603490bf
AB
26602019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2661
2662 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
2663 update return statements.
2664 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
2665 declaration, and update comment to match.
2666 * gdbtypes.c (resolve_dynamic_array): Update call to
2667 dwarf2_evaluate_property to match new return type.
2668
592f9d27
AB
26692019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2670
2671 * valarith.c (value_subscripted_rvalue): Change lowerbound
2672 parameter type from int to LONGEST.
2673 * value.h (value_subscripted_rvalue): Likewise in declaration.
2674
60cfcb20
AB
26752019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
2676
2677 * cli/cli-utils.c (info_print_command_completer): New function.
2678 * cli/cli-utils.h: Add 'completer.h' include, and forward
2679 declaration for 'struct cmd_list_element'.
2680 (info_print_command_completer): Declare.
2681 * stack.c (_initialize_stack): Add completer for 'info locals' and
2682 'info args'.
2683 * symtab.c (_initialize_symtab): Add completer for 'info
2684 variables' and 'info functions'.
2685 * NEWS: Mention completion for additional info commands.
2686
b16507e0
AB
26872019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
2688
2689 * cli/cli-utils.c (extract_info_print_args): Delete.
2690 (extract_arg_maybe_quoted): Delete.
2691 (info_print_options_defs): New variable.
2692 (make_info_print_options_def_group): New function.
2693 (extract_info_print_options): Define new function.
2694 * cli/cli-utils.h (extract_info_print_args): Delete.
2695 (struct info_print_options): New structure.
2696 (extract_info_print_options): Declare new function.
2697 * stack.c (info_locals_command): Update to use new
2698 extract_info_print_options, also add a header comment.
2699 (info_args_command): Likewise.
2700 * symtab.c (info_variables_command): Likewise.
2701 (info_functions_command): Likewise.
2702
021d8588
AB
27032019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
2704
2705 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
2706 to extract string arguments.
2707 * common/common-utils.c (extract_string_maybe_quoted): New function.
2708 * common/common-utils.h (extract_string_maybe_quoted): Declare.
2709
b777eb6d
TT
27102019-07-11 Tom Tromey <tromey@adacore.com>
2711
2712 * main.c (get_init_files): Use GDBINIT, not gdbinit.
2713 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
2714 * top.h (gdbinit): Don't declare.
2715 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
2716 into...
2717 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
2718 * top.c (gdb_init): Don't call init_cli_cmds.
2719 (gdbinit): Remove.
2720 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
2721
72ee03ff
TT
27222019-07-11 Tom Tromey <tromey@adacore.com>
2723
2724 * python/py-inferior.c (add_thread_object): Don't use thread_obj
2725 after it has been moved.
2726
00db9531
SM
27272019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2728
2729 * valops.c (value_must_coerce_to_target): Change return type to
2730 bool.
2731 * value.h (value_must_coerce_to_target): Likewise.
2732
f2478a7e
SM
27332019-07-10 Simon Marchi <simon.marchi@efficios.com>
2734
2735 * breakpoint.c (is_hardware_watchpoint): Remove
2736 forward-declaration.
2737 (is_masked_watchpoint): Change return type to bool.
2738 (is_tracepoint): Likewise.
2739 (is_breakpoint): Likewise.
2740 (is_hardware_watchpoint): Likewise.
2741 (is_watchpoint): Likewise.
2742 (is_no_memory_software_watchpoint): Likewise.
2743 (is_catchpoint): Likewise.
2744 (breakpoint_1): Make FILTER parameter's return type bool.
2745 is_masked_watchpoint): Change return type to bool.
2746 (save_breakpoints): Make FILTER parameter's return type bool.
2747 * breakpoint.h (is_breakpoint): Change return type to bool.
2748 (is_watchpoint): Likewise.
2749 (is_catchpoint): Likewise.
2750 (is_tracepoint): Likewise.
2751
0d12e84c
TT
27522019-07-10 Tom Tromey <tom@tromey.com>
2753
2754 * defs.h: Don't include gdbarch.h.
2755 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
2756 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
2757 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
2758 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
2759 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
2760 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
2761 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
2762 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
2763 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
2764 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
2765 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
2766 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
2767 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
2768 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
2769 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
2770 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
2771 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
2772 record-btrace.c, record.h, regcache-dump.c, regcache.h,
2773 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
2774 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
2775 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
2776 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
2777 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
2778 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
2779 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
2780 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
2781 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
2782
f06f1252
TT
27832019-07-10 Tom Tromey <tromey@adacore.com>
2784
2785 * ada-lang.h (is_ada_exception_catchpoint): Declare.
2786 * breakpoint.c (init_ada_exception_breakpoint): Register as
2787 bp_catchpoint.
2788 (print_one_breakpoint_location, print_one_breakpoint): Use
2789 is_ada_exception_catchpoint.
2790 * ada-lang.c (class ada_catchpoint_location): Pass
2791 bp_loc_software_breakpoint to bp_location constructor.
2792 (is_ada_exception_catchpoint): New function.
2793
7a5d944b
TT
27942019-07-10 Tom Tromey <tromey@adacore.com>
2795
2796 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
2797 VEC.
2798 (struct arm_exidx_entry): New method operator<.
2799 (struct arm_exidx_data) <section_maps>: Change type.
2800 (arm_exidx_data_free): Remove.
2801 (arm_exidx_data_key): Change type. Move lower.
2802 (arm_exidx_new_objfile): Update.
2803 (arm_compare_exidx_entries): Remove.
2804 (arm_find_exidx_entry, _initialize_arm_tdep)
2805
48c66e1d
TT
28062019-07-10 Tom Tromey <tromey@adacore.com>
2807
2808 * solib-spu.c (ocl_program_data_key): Change type.
2809 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
2810 Update.
2811
a269fbf1
TT
28122019-07-10 Tom Tromey <tromey@adacore.com>
2813
2814 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
2815 (struct solib_aix_inferior_data) <library_list>: Change type.
2816 (solib_aix_inferior_data_handle): Change type.
2817 (get_solib_aix_inferior_data): Update.
2818 (solib_aix_free_library_list): Remove.
2819 (library_list_start_library): Update.
2820 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
2821 return type.
2822 (solib_aix_get_library_list)
2823 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
2824 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
2825
c294730c
TT
28262019-07-10 Tom Tromey <tromey@adacore.com>
2827
2828 * solib-dsbt.c (struct dsbt_info): Add initializers.
2829 (solib_dsbt_pspace_data): Change type.
2830 (dsbt_pspace_data_cleanup): Remove.
2831 (get_dsbt_info, _initialize_dsbt_solib): Update.
2832
9d52077d
TT
28332019-07-10 Tom Tromey <tromey@adacore.com>
2834
2835 * spu-tdep.c (spu_overlay_data): Change type.
2836 (spu_get_overlay_table, spu_overlay_new_objfile)
2837 (_initialize_spu_tdep): Update.
2838
22a20dca
TT
28392019-07-10 Tom Tromey <tromey@adacore.com>
2840
2841 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
2842 destructor.
2843 (dbx_objfile_data_key): Change type and declare later.
2844 (DBX_SYMFILE_INFO): Rewrite.
2845 * dbxread.c (dbx_objfile_data_key): Change type.
2846 (dbx_symfile_init): Update.
2847 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
2848 (coffstab_build_psymtabs, elfstab_build_psymtabs)
2849 (stabsect_build_psymtabs, _initialize_dbxread): Update.
2850
cb60f420
TT
28512019-07-10 Tom Tromey <tromey@adacore.com>
2852
2853 * jit.c (jit_program_space_key): Change type. Move lower.
2854 (get_jit_program_space_data): Update.
2855 (jit_program_space_data_cleanup): Remove.
2856 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
2857 Update.
2858 (struct jit_program_space_data): Add initializers.
2859
51df2ae3
TT
28602019-07-10 Tom Tromey <tromey@adacore.com>
2861
2862 * solib-darwin.c (struct darwin_info): Add initializers.
2863 (solib_darwin_pspace_data): Change type.
2864 (darwin_pspace_data_cleanup): Remove.
2865 (get_darwin_info, _initialize_darwin_solib): Update.
2866
18101a35
TT
28672019-07-10 Tom Tromey <tromey@adacore.com>
2868
2869 * remote-sim.c (struct sim_inferior_data): Add initializers,
2870 constructor, and destructor.
2871 (sim_inferior_data_key): Change type. Move lower.
2872 (check_for_duplicate_sim_descriptor): Update.
2873 (get_sim_inferior_data): Use new. Update.
2874 (~sim_inferior_data_cleanup): Rename from
2875 sim_inferior_data_cleanup. Simplify.
2876 (gdbsim_close_inferior, simulator_command)
2877 (sim_command_completer, _initialize_remote_sim): Update.
2878 (next_pid, INITIAL_PID): Move earlier.
2879
05b08ac1
TT
28802019-07-10 Tom Tromey <tromey@adacore.com>
2881
2882 * python/python-internal.h (create_thread_object): Return
2883 gdbpy_ref.
2884 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
2885 * python/py-inferior.c (struct threadlist_entry): Add
2886 constructor.
2887 <thread_obj>: Now a gdbpy_ref.
2888 (thread_to_thread_object): Update.
2889 (add_thread_object): Use new.
2890 (delete_thread_object): Use delete.
2891 (infpy_threads): Update.
2892 (py_free_inferior): Update. Construct "inf_obj" after acquiring
2893 GIL.
2894
32372d80
TT
28952019-07-10 Tom Tromey <tromey@adacore.com>
2896
2897 * valops.c (value_cast): Specialize error message for Ada.
2898
5c458ae8
SM
28992019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2900
2901 * breakpoint.c (breakpoint_1): Update doc and parameter names.
2902
4c462cb0
SM
29032019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2904
2905 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
2906 bpstat_should_step): Return bool, adjust comments.
2907 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
2908 bpstat_should_step): Likewise.
2909
89abbcc2
AH
29102019-07-10 Alan Hayward <alan.hayward@arm.com>
2911
2912 * features/Makefile: Use feature target descriptions for Arm.
2913 * features/arm/arm-core.c: Generate new file.
2914 * features/arm/arm-fpa.c: Likewise.
2915 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
2916 * features/arm/arm-m-profile.c: Likewise.
2917 * features/arm/arm-vfpv2.c: Likewise.
2918 * features/arm/arm-vfpv3.c: Likewise.
2919 * features/arm/xscale-iwmmxt.c: Likewise.
2920 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
2921
166a82be
AH
29222019-07-10 Alan Hayward <alan.hayward@arm.com>
2923
2924 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
2925 ptrace earlier.
2926
9fb4c7e9
AH
29272019-07-10 Alan Hayward <alan.hayward@arm.com>
2928
2929 * features/aarch64-pauth.c: Regenerate.
2930
e2d0f980
SM
29312019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
2932
2933 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
2934 bool.
2935 (bpstat_what): Use false instead of 0.
2936
a38118e5
PA
29372019-07-09 Pedro Alves <palves@redhat.com>
2938
2939 * break-catch-throw.c (is_exception_catchpoint): New.
2940 * breakpoint.c (print_one_breakpoint_location): New parameter
2941 'raw_loc'. Handle it. Use
2942 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
2943 looking at the breakpoint's type.
2944 (print_one_breakpoint): If handling "maint info breakpoints", also
2945 print locations of exception catchpoints.
2946 * breakpoint.h (is_exception_catchpoint): Declare.
2947
cb1e4e32
PA
29482019-07-09 Pedro Alves <palves@redhat.com>
2949
2950 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
2951 "addr" field.
2952 (allocate_location_exception_catchpoint): New.
2953 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
2954 (initialize_throw_catchpoint_ops): Install
2955 allocate_location_exception_catchpoint as allocate_location
2956 method.
2957 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
2958 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
2959 bp_loc_other.
2960 (breakpoint_address_is_meaningful): Delete.
2961 (bl_address_is_meaningful): New.
2962 (breakpoint_locations_match): Adjust comment.
2963 (bp_location_from_bp_type): New, factored out of...
2964 (bp_location::bp_location(breakpoint *)): ... this.
2965 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
2966 factored out of...
2967 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
2968 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
2969 breakpoint_address_is_meaningful.
2970 (bp_locations_compare): Adjust comment.
2971 (update_global_location_list): Use bl_address_is_meaningful
2972 instead of breakpoint_address_is_meaningful.
2973 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
2974 explicit.
2975 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
2976 * python/py-breakpoint.c (bppy_get_location): No longer check
2977 whether location is null.
2978
b58a68fe
PA
29792019-07-09 Pedro Alves <palves@redhat.com>
2980
2981 PR c++/15468
2982 * breakpoint.c (print_one_breakpoint_location): Remove
2983 single-location assert.
2984
268a13a5
TT
29852019-07-09 Tom Tromey <tom@tromey.com>
2986
2987 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
2988 * configure: Rebuild.
2989 * configure.ac: Change common to gdbsupport.
2990 * gdbsupport: Rename from common.
2991 * acinclude.m4: Change common to gdbsupport.
2992 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
2993 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
2994 gdbsupport.
2995 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
2996 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
2997 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
2998 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
2999 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
3000 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
3001 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
3002 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
3003 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
3004 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
3005 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
3006 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
3007 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
3008 coff-pe-read.c, command.h, compile/compile-c-support.c,
3009 compile/compile-c.h, compile/compile-cplus-symbols.c,
3010 compile/compile-cplus-types.c, compile/compile-cplus.h,
3011 compile/compile-loc2c.c, compile/compile.c, completer.c,
3012 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
3013 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
3014 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
3015 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
3016 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
3017 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
3018 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
3019 features/aarch64-core.c, features/aarch64-fpu.c,
3020 features/aarch64-pauth.c, features/aarch64-sve.c,
3021 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
3022 features/i386/32bit-core.c, features/i386/32bit-linux.c,
3023 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
3024 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
3025 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
3026 features/i386/64bit-core.c, features/i386/64bit-linux.c,
3027 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
3028 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
3029 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
3030 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
3031 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
3032 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
3033 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
3034 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
3035 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
3036 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
3037 go32-nat.c, guile/guile.c, guile/scm-ports.c,
3038 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
3039 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
3040 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
3041 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
3042 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
3043 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
3044 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
3045 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
3046 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
3047 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
3048 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
3049 minsyms.c, mips-linux-tdep.c, namespace.h,
3050 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
3051 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
3052 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
3053 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
3054 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
3055 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
3056 nat/linux-waitpid.c, nat/mips-linux-watch.c,
3057 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
3058 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
3059 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
3060 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
3061 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
3062 procfs.c, producer.c, progspace.h, psymtab.h,
3063 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
3064 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
3065 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
3066 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
3067 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
3068 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
3069 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
3070 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
3071 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
3072 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
3073 target-memory.c, target.c, target.h, target/waitstatus.c,
3074 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
3075 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
3076 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
3077 unittests/array-view-selftests.c,
3078 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
3079 unittests/common-utils-selftests.c,
3080 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
3081 unittests/format_pieces-selftests.c,
3082 unittests/function-view-selftests.c,
3083 unittests/lookup_name_info-selftests.c,
3084 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
3085 unittests/mkdir-recursive-selftests.c,
3086 unittests/observable-selftests.c,
3087 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
3088 unittests/parse-connection-spec-selftests.c,
3089 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
3090 unittests/scoped_fd-selftests.c,
3091 unittests/scoped_mmap-selftests.c,
3092 unittests/scoped_restore-selftests.c,
3093 unittests/string_view-selftests.c, unittests/style-selftests.c,
3094 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
3095 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
3096 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
3097 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
3098 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
3099 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
3100
5b0e2db4
AB
31012019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3102
3103 * linespec.c (decode_digits_list_mode): Set explicit_line to a
3104 bool value.
3105 (decode_digits_ordinary): Set explicit_line field in sal.
3106 * symtab.c (skip_prologue_sal): Don't skip prologue for a
3107 symtab_and_line that was set on an explicit line number in
3108 assembler code. Do always update the recorded symtab and line if
3109 we do skip the prologue.
3110
0ba852ab
AB
31112019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3112
3113 * breakpoint.c (set_breakpoint_location_function): Remove
3114 explicit_loc parameter.
3115 (momentary_breakpoint_from_master): Update call to
3116 set_breakpoint_location_function.
3117 (add_location_to_breakpoint): Likewise.
3118
b3a7d171
AB
31192019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3120
3121 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
3122 required features based on default bfd type when no specific bfd
3123 is present.
3124
1f6f6e21
PW
31252019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3126
3127 * NEWS: Mention that GDB printf and eval commands can now print
3128 C-style and Ada-style convenience var strings without
3129 calling the inferior.
3130 * printcmd.c (printf_c_string): Locally print GDB internal var
3131 instead of transiting via the inferior.
3132 (printf_wide_c_string): Likewise.
3133
31342019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf
AH
3135
3136 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
3137
0598af48
TT
31382019-07-04 Tom Tromey <tom@tromey.com>
3139
3140 PR tui/24724:
3141 * tui/tui-winsource.c (tui_clear_source_content): Update.
3142 (tui_source_window_base::set_is_exec_point_at): Fix comment.
3143 (tui_update_breakpoint_info): Update.
3144 (tui_set_exec_info_content): Update.
3145 * tui/tui-source.c (tui_set_source_content_nil): Update.
3146 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
3147 has_break.
3148 * tui/tui-data.h (enum tui_bp_flag): New.
3149 (tui_bp_flags): New enum flags type.
3150 (struct tui_source_element) <break_mode>: Change type. Rename
3151 from has_break.
3152 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
3153 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
3154 constants.
3155 * tui/tui-winsource.h: Fix comment.
3156
350fab54
AH
31572019-07-04 Alan Hayward <alan.hayward@arm.com>
3158
3159 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
3160 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
3161 (store_fpregs_to_thread)
3162 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
3163 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
3164 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
3165 (IWMMXT_REGS_SIZE): Add define.
3166 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
3167 (fetch_vfp_regs, store_vfp_regs)
3168 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
3169 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
3170
f0452268
AH
31712019-07-04 Alan Hayward <alan.hayward@arm.com>
3172
3173 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
3174 defines.
3175 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
3176 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
3177 (ARM_INT_REGISTER_SIZE): ...to this.
3178 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
3179 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
3180 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
3181 (arm_linux_collect_gregset, supply_nwfpe_register)
3182 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
3183 defines.
3184 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
3185 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
3186 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
3187 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
3188 (arm_return_in_memory, arm_store_return_value)
3189 (arm_get_longjmp_target, arm_register_g_packet_guesses)
3190 (arm_record_ld_st_multiple): Likewise.
3191 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
3192 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
3193
e935475c
AH
31942019-07-04 Alan Hayward <alan.hayward@arm.com>
3195
3196 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
3197 AARCH64_DISPLACED_MODIFIED_INSNS.
3198 * aarch64-tdep.c (struct aarch64_displaced_step_data)
3199 (aarch64_displaced_step_copy_insn): Likewise.
3200 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
3201 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
3202 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
3203 ARM_DISPLACED_MODIFIED_INSNS.
3204 * arm-tdep.c (arm_gdbarch_init): Likewise.
3205 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
3206 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
3207 (struct arm_displaced_step_closure): Use
3208 ARM_DISPLACED_MODIFIED_INSNS.
3209
df0bb381
AH
32102019-07-04 Alan Hayward <alan.hayward@arm.com>
3211
3212 * features/Makefile: Remove unused xml files.
3213 * features/aarch64.xml: Remove.
3214 * features/i386/amd64-avx-avx512-linux.xml: Remove.
3215 * features/i386/amd64-avx-avx512.xml: Remove.
3216 * features/i386/amd64-avx-linux.xml: Remove.
3217 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
3218 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
3219 * features/i386/amd64-avx-mpx-linux.xml: Remove.
3220 * features/i386/amd64-avx-mpx.xml: Remove.
3221 * features/i386/amd64-avx.xml: Remove.
3222 * features/i386/amd64-linux.xml: Remove.
3223 * features/i386/amd64-mpx-linux.xml: Remove.
3224 * features/i386/amd64-mpx.xml: Remove.
3225 * features/i386/amd64.xml: Remove.
3226 * features/i386/i386-avx-avx512-linux.xml: Remove.
3227 * features/i386/i386-avx-avx512.xml: Remove.
3228 * features/i386/i386-avx-linux.xml: Remove.
3229 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
3230 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
3231 * features/i386/i386-avx-mpx-linux.xml: Remove.
3232 * features/i386/i386-avx-mpx.xml: Remove.
3233 * features/i386/i386-avx.xml: Remove.
3234 * features/i386/i386-linux.xml: Remove.
3235 * features/i386/i386-mmx-linux.xml: Remove.
3236 * features/i386/i386-mmx.xml: Remove.
3237 * features/i386/i386-mpx-linux.xml: Remove.
3238 * features/i386/i386-mpx.xml: Remove.
3239 * features/i386/i386.xml: Remove.
3240 * features/i386/x32-avx-avx512-linux.xml: Remove.
3241 * features/i386/x32-avx-linux.xml: Remove.
3242 * features/i386/x32-linux.xml: Remove.
3243
edd6266a
AH
32442019-07-04 Alan Hayward <alan.hayward@arm.com>
3245
3246 * regformats/aarch64.dat: Remove.
3247 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
3248 * regformats/i386/amd64-avx-linux.dat: Remove.
3249 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
3250 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
3251 * regformats/i386/amd64-linux.dat: Remove.
3252 * regformats/i386/amd64-mpx-linux.dat: Remove.
3253 * regformats/i386/amd64.dat: Remove.
3254 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
3255 * regformats/i386/i386-avx-linux.dat: Remove.
3256 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
3257 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
3258 * regformats/i386/i386-linux.dat: Remove.
3259 * regformats/i386/i386-mmx-linux.dat: Remove.
3260 * regformats/i386/i386-mpx-linux.dat: Remove.
3261 * regformats/i386/i386.dat: Remove.
3262 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
3263 * regformats/i386/x32-avx-linux.dat: Remove.
3264 * regformats/i386/x32-linux.dat: Remove.
3265
2b40fda7
AH
32662019-07-04 Alan Hayward <alan.hayward@arm.com>
3267
3268 * aarch64-tdep.c: Remove xml self tests.
3269 * amd64-linux-tdep.c: Likewise.
3270 * amd64-tdep.c: Likewise.
3271 * i386-linux-tdep.c: Likewise.
3272 * i386-tdep.c: Likewise.
3273
5f4ba3e7
PA
32742019-07-03 Pedro Alves <palves@redhat.com>
3275
3276 PR cli/24732
3277 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
3278 (pipe_cmd_option_defs): New.
3279 (make_pipe_cmd_options_def_group): New.
3280 (pipe_command): Use gdb::option::process_options.
3281 (pipe_command_completer): New function.
3282 (_initialize_cli_cmds): Install completer for "pipe" command.
3283
3d9be6f5
PA
32842019-07-03 Pedro Alves <palves@redhat.com>
3285
3286 * cli/cli-option.c (union option_value) <string>: New field.
3287 (struct option_def_and_value): Add ctor, move ctor, dtor and
3288 use DISABLE_COPY_AND_ASSIGN.
3289 (option_def_and_value::clear_value): New.
3290 (parse_option, save_option_value_in_ctx, get_val_type_str)
3291 (add_setshow_cmds_for_options): Handle var_string.
3292 * cli-option.h (union option_def::var_address) <string>: New
3293 field.
3294 (struct string_option_def): New.
3295 * maint-test-options.c (struct test_options_opts): Add default
3296 ctor and use DISABLE_COPY_AND_ASSIGN.
3297 <string_opt>: New field.
3298 (test_options_opts::~test_options_opts): New.
3299 (test_options_opts::dump): Also dump "-string".
3300 (test_options_option_defs): Install "string.
3301
41fc454c
PA
33022019-07-03 Pedro Alves <palves@redhat.com>
3303
3304 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
3305 option_value with a null enumeration.
3306 (complete_options): Save the option values in the context.
3307 (save_option_value_in_ctx): New, factored out from ...
3308 (process_options): ... here.
3309 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
3310 of the function.
3311 * maint-test-options.c (test_options_opts::dump): New, factored
3312 out from ...
3313 (maintenance_test_options_command_mode): ... here.
3314 (maintenance_test_options_command_completion_result): Delete.
3315 (maintenance_test_options_command_completion_text): Update
3316 comment.
3317 (maintenance_show_test_options_completion_result): Change
3318 prototype. Just print
3319 maintenance_test_options_command_completion_text.
3320 (save_completion_result): New.
3321 (maintenance_test_options_completer_mode): Pass options context to
3322 complete_options, and then save a dump.
3323 (_initialize_maint_test_options): Use add_cmd to install "maint
3324 show test-options-completion-result".
3325
fdbc9870
PA
33262019-07-03 Pedro Alves <palves@redhat.com>
3327
3328 * NEWS (New commands): Mention "with" and "maint with".
3329 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
3330 (with_command, with_command_completer): New.
3331 (pipe_command): Adjust to new repeat_previous
3332 interface.
3333 (_initialize_cli_cmds): Install the "with" command and its "w"
3334 alias.
3335 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
3336 declarations.
3337 * cli/cli-setshow.c (parse_cli_var_uinteger)
3338 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
3339 argument strings for all var_types.
3340 (get_setshow_command_value_string): New, factored out from ...
3341 (do_show_command): ... this.
3342 * cli/cli-setshow.h: Include <string>.
3343 (get_setshow_command_value_string): Declare.
3344 * command.h (repeat_previous): Now returns const char *. Adjust
3345 comment.
3346 * maint.c: Include "cli/cli-cmds.h".
3347 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
3348 (_initialize_maint_cmds): Register the "maintenance with" command.
3349 * top.c (repeat_previous): Move bits from pipe_command here:
3350 Return the saved command line, if any; error out if there's no
3351 command to relaunch.
3352
c6ac8931
PA
33532019-07-03 Pedro Alves <palves@redhat.com>
3354
3355 * NEWS (New commands): Mention "maint set/show test-settings"
3356 instead of "maint test-settings".
3357 * maint-test-settings.c (maintenance_test_settings_list): Delete.
3358 (maintenance_test_settings_set_list): Rename to ...
3359 (maintenance_set_test_settings_list): ... this.
3360 (maintenance_test_settings_show_list): Rename to ...
3361 (maintenance_show_test_settings_list): ... this.
3362 (maintenance_test_settings_cmd): Delete.
3363 (maintenance_test_settings_set_cmd): ...
3364 (maintenance_set_test_settings_cmd): ... this.
3365 (maintenance_test_settings_show_cmd): ...
3366 (maintenance_show_test_settings_cmd): ... this.
3367 (maintenance_test_settings_show_value_cmd):
3368 (maintenance_show_test_settings_value_cmd): ... this.
3369 (_initialize_maint_test_settings): No longer install the "maint
3370 test-settings" prefix command. Rename "maint test-settings set"
3371 to "maint set test-settings", and "maint test-settings show" to
3372 "maint show test-settings". Adjust all subcommands.
3373
d1fcf2fd
PA
33742019-07-03 Pedro Alves <palves@redhat.com>
3375
3376 * maint-test-settings.c: Fix file's intro comment. Replace all
3377 references to "test-options" with references to "test-settings",
3378 in comments.
3379
970f9d09
PA
33802019-07-03 Pedro Alves <palves@redhat.com>
3381
3382 * maint-test-settings.c (maintenance_test_settings_xxx)
3383 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
3384 New.
3385 (maintenance_test_settings_enums): Use them.
3386 (maintenance_test_settings_enum): Default to
3387 maintenance_test_settings_xxx.
3388 (_initialize_maint_test_settings): Initialize
3389 MAINTENANCE_TEST_SETTINGS_FILENAME.
3390
f3869b1a
SM
33912019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3392
3393 * breakpoint.h (remove_breakpoints_inf): Change return type to
3394 void, move function documentation here.
3395 * breakpoint.c (remove_breakpoints_inf): Change return type to
3396 void, move function documentation to header.
3397
54d66006
PA
33982019-07-02 Pedro Alves <palves@redhat.com>
3399
3400 * NEWS (Completion improvements): Mention "info threads".
3401 * thread.c (struct info_threads_opts, info_threads_option_defs)
3402 (make_info_threads_options_def_group): New.
3403 (info_threads_command): Use gdb::option::process_options.
3404 (info_threads_command_completer): New.
3405 (_initialize_thread): Use gdb::option::build_help to build the
3406 help text for "info threads".
3407
854f6088
SM
34082019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3409
3410 * defs.h (generic_load): Move from here...
3411 * symfile.h (generic_load): ... to here. Rename name parameter
3412 to args.
3413 * symfile.c (generic_load): Add comment.
3414
54ee4252
TT
34152019-07-01 Tom Tromey <tromey@adacore.com>
3416
3417 * dwarf2read.c
3418 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
3419 declaration of without_params. Fix formatting.
3420
65392b3e
TT
34212019-07-01 Tom Tromey <tromey@adacore.com>
3422
3423 * ada-exp.y (find_primitive_type): Update.
3424 * ada-lang.h (ada_lookup_symbol): Update.
3425 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
3426 parameter.
3427 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
3428
7d7571f0
SDJ
34292019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
3430
3431 PR breakpoints/24541
3432 * gdbarch.c: Regenerate.
3433 * gdbarch.h: Regenerate.
3434 * gdbarch.sh: Add 'stap_adjust_register'.
3435 * i386-tdep.c: Include '<unordered_set>'.
3436 (i386_stap_adjust_register): New function.
3437 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
3438 * stap-probe.c (stap_parse_register_operand): Call
3439 'gdbarch_stap_adjust_register'.
3440
5af5392a
SDJ
34412019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
3442
3443 PR python/24742
3444 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
3445 * python/python.c (do_start_initialization): Use 'xmalloc'
3446 instead of 'PyMem_Malloc'.
3447
10d06d82
TT
34482019-06-28 Tom Tromey <tromey@adacore.com>
3449
3450 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
3451 for Ada.
3452
1b7f24cd
TT
34532019-06-27 Tom Tromey <tromey@adacore.com>
3454
3455 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
3456 objfile_key.
3457 (arm_find_mapping_symbol, arm_record_special_symbol)
3458 (_initialize_arm_tdep): Update.
3459 (arm_objfile_data_free): Remove.
3460
3d507ff2
TT
34612019-06-27 Tom Tromey <tromey@adacore.com>
3462
3463 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
3464 to cp_print_static_field.
3465
762c164d
TT
34662019-06-26 Tom Tromey <tromey@adacore.com>
3467
3468 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
3469 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
3470 declare.
3471
aa2f9bcf
AH
34722019-06-26 Alan Hayward <alan.hayward@arm.com>
3473
3474 * features/aarch64-core.c (create_feature_aarch64_core):
3475 Regenerate.
3476 * features/aarch64-core.xml: Add cpsr flags.
3477
3426ae57
AH
34782019-06-26 Alan Hayward <alan.hayward@arm.com>
3479
3480 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
3481 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
3482
4838e44c
SM
34832019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
3484
3485 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
3486 field.
3487 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
3488 use.
3489 (arm_record_special_symbol): Don't insert new symbol in sorted
3490 position, push it at the end.
3491
54cc7474
SM
34922019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
3493
3494 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
3495 (arm_mapping_symbol_s): Remove.
3496 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
3497 (arm_mapping_symbol_vec): New typedef.
3498 (struct arm_per_objfile): Add constructor.
3499 <section_maps>: Change type to
3500 std::unique_ptr<arm_mapping_symbol_vec[]>.
3501 (arm_compare_mapping_symbols): Remove.
3502 (arm_find_mapping_symbol): Adjust to section_maps type change.
3503 (arm_objfile_data_free): Call delete on arm_per_objfile.
3504 (arm_record_special_symbol): Adjust to section_maps type change.
3505 Allocate arm_per_objfile with new.
3506
b65b566c
PW
35072019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3508
3509 * cli/cli-cmds.c (alias_command): Compare the alias prefix
3510 with the command prefix.
3511
c2fc64f5
TT
35122019-06-25 Tom Tromey <tom@tromey.com>
3513
3514 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
3515 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
3516
fb54fa76
TT
35172019-06-25 Tom Tromey <tom@tromey.com>
3518
3519 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
3520 type.
3521 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
3522 protected.
3523
f7952c57
TT
35242019-06-25 Tom Tromey <tom@tromey.com>
3525
3526 * tui/tui-winsource.c
3527 (tui_source_window_base::set_is_exec_point_at): Add check against
3528 LOA_ADDRESS.
3529
17568d78
TT
35302019-06-25 Tom Tromey <tom@tromey.com>
3531
3532 * tui/tui-source.c (tui_set_source_content): Don't check before
3533 xfree.
3534 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
3535
53e7cdba
TT
35362019-06-25 Tom Tromey <tom@tromey.com>
3537
3538 * tui/tui-winsource.h (tui_update_source_window_as_is)
3539 (tui_alloc_source_buffer, tui_line_is_displayed)
3540 (tui_addr_is_displayed): Change type of win_info.
3541 * tui/tui-winsource.c (tui_update_source_window_as_is)
3542 (tui_clear_source_content, tui_show_source_line)
3543 (tui_show_source_content, tui_source_window_base::refill)
3544 (tui_source_window_base::set_is_exec_point_at)
3545 (tui_source_window_base::set_is_exec_point_at)
3546 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
3547 (tui_alloc_source_buffer, tui_line_is_displayed)
3548 (tui_addr_is_displayed): Change type of win_info. Update.
3549 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3550 (tui_source_window_base::do_make_visible_with_new_height):
3551 Update.
3552 * tui/tui-source.c (tui_set_source_content)
3553 (tui_set_source_content_nil)
3554 (tui_source_window::do_scroll_vertical): Update.
3555 * tui/tui-layout.c (show_layout): Update.
3556 * tui/tui-disasm.c (tui_set_disassem_content)
3557 (tui_disasm_window::do_scroll_vertical): Update.
3558 * tui/tui-data.h (tui_win_content): Remove.
3559 (struct tui_gen_win_info) <content, content_size>: Remove.
3560 (struct tui_source_element): Add initializers and destructor.
3561 (union tui_which_element, struct tui_win_element): Remove.
3562 (struct tui_source_window_base) <content>: New field.
3563 (struct tui_data_window): Remove destructor.
3564 (tui_alloc_content, tui_free_win_content)
3565 (tui_free_all_source_wins_content): Don't declare.
3566 * tui/tui-data.c (tui_initialize_static_data): Update.
3567 (init_content_element, tui_alloc_content): Remove.
3568 (~tui_gen_win_info): Update.
3569 (~tui_data_window, tui_free_all_source_wins_content)
3570 (tui_free_win_content, free_content, free_content_elements):
3571 Remove.
3572
7908abbf
TT
35732019-06-25 Tom Tromey <tom@tromey.com>
3574
3575 * tui/tui-winsource.h (tui_clear_source_content)
3576 (tui_erase_source_content, tui_show_source_content): Change type
3577 of win_info.
3578 * tui/tui-winsource.c (tui_clear_source_content)
3579 (tui_erase_source_content, tui_show_source_content): Change type
3580 of win_info.
3581 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3582 * tui/tui-source.h (tui_set_source_content_nil): Change type of
3583 win_info.
3584 * tui/tui-source.c (tui_set_source_content_nil): Change type of
3585 win_info.
3586 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
3587
02c28df0
TT
35882019-06-25 Tom Tromey <tom@tromey.com>
3589
3590 * tui/tui-winsource.c (tui_clear_source_content)
3591 (tui_source_window_base::set_is_exec_point_at): Update.
3592 * tui/tui-source.c (tui_set_source_content_nil): Update.
3593 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
3594 a bool.
3595 * tui/tui-data.c (init_content_element): Update.
3596
6658b1bf
TT
35972019-06-25 Tom Tromey <tom@tromey.com>
3598
3599 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
3600 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
3601 * tui/tui-layout.c (init_and_make_win): Update.
3602 * tui/tui.h (enum tui_win_type): Update.
3603 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
3604 tui_win_is_auxillary.
3605 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
3606 tui_win_is_auxillary.
3607
21e1c91e
TT
36082019-06-25 Tom Tromey <tom@tromey.com>
3609
3610 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
3611 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
3612 (tui_delete_data_content_windows, tui_display_all_data)
3613 (tui_data_window::do_scroll_vertical, tui_display_data_from):
3614 Update.
3615 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
3616 * tui/tui-regs.c (tui_last_regs_line_no)
3617 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
3618 (tui_show_registers): Update.
3619 (tui_show_register_group): Return void. Update.
3620 (tui_display_registers_from, tui_display_reg_element_at_line)
3621 (tui_display_registers_from_line, tui_check_register_values):
3622 Update.
3623 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
3624 member.
3625 (struct tui_data_window) <regs_content>: Now a std::vector.
3626 <regs_content_count>: Remove.
3627 (tui_add_content_elements, tui_free_data_content): Don't declare.
3628 * tui/tui-data.c (tui_data_window::clear_detail): Update.
3629 (init_content_element): Remove DATA_WIN case. Add assert.
3630 (tui_add_content_elements): Remove.
3631 (tui_data_window): Update.
3632 (tui_free_data_content): Remove.
3633 (free_content_elements): Remove DATA_WIN case.
3634
115ac53b
TT
36352019-06-25 Tom Tromey <tom@tromey.com>
3636
3637 * tui/tui-data.c (tui_data_item_window): Update.
3638 * tui/tui-windata.h (tui_check_data_values): Don't declare.
3639 * tui/tui-windata.c (tui_display_all_data)
3640 (tui_display_data_from_line): Update.
3641 (tui_check_data_values): Remove.
3642 * tui/tui-regs.c (tui_show_register_group)
3643 (tui_display_reg_element_at_line): Update.
3644 * tui/tui-hooks.c (tui_register_changed)
3645 (tui_refresh_frame_and_register_information): Call
3646 tui_check_register_values.
3647 * tui/tui-data.h (struct tui_data_window) <data_content,
3648 data_content_count, data_type>: Remove.
3649 (enum tui_data_type): Remove.
3650
3651 * tui/tui-data.c (tui_data_window::clear_detail)
3652 (~tui_data_window): Update.
3653
eaf9738b
TT
36542019-06-25 Tom Tromey <tom@tromey.com>
3655
3656 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
3657 declare.
3658 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
3659 Rename from tui_first_data_item_displayed. Update.
3660 (tui_data_window::refresh_all)
3661 (tui_data_window::do_scroll_vertical): Update.
3662 * tui/tui-data.h (struct tui_data_window)
3663 <first_data_item_displayed>: Declare new method.
3664
31ca4723
TT
36652019-06-25 Tom Tromey <tom@tromey.com>
3666
3667 * tui/tui-data.h (tui_init_generic_part): Don't declare.
3668 * tui/tui-data.c (tui_init_generic_part): Remove, moving
3669 contents...
3670 (tui_initialize_static_data): ...here.
3671
41bcff7f
TT
36722019-06-25 Tom Tromey <tom@tromey.com>
3673
3674 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
3675 (tui_display_registers_from, tui_check_register_values): Update.
3676 (tui_display_register): Remove win_info parameter; update.
3677 (tui_get_register): Change type of parameters.
3678 * tui/tui-data.h (struct tui_data_element): Remove.
3679 (union tui_which_element) <data>: Remove.
3680 <data_window>: Change type.
3681 (struct tui_data_item_window): New.
3682 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
3683 case. Add assert.
3684 (~tui_data_item_window): New destructor.
3685 (free_content_elements): Remove DATA_ITEM_WIN case.
3686
d2802c33
TT
36872019-06-25 Tom Tromey <tom@tromey.com>
3688
3689 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
3690 Remove.
3691
dd835f8b
TT
36922019-06-25 Tom Tromey <tom@tromey.com>
3693
3694 * tui/tui-data.h (struct tui_command_element): Remove.
3695 (union tui_which_element) <command>: Remove.
3696 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
3697 assert.
3698 (free_content_elements): Remove CMD_WIN case.
3699
bd7db367
TT
37002019-06-25 Tom Tromey <tom@tromey.com>
3701
3702 * tui/tui-layout.c (tui_set_layout): Update.
3703 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
3704 * tui/tui-data.c (layout_def): Update.
3705
3add462f
TT
37062019-06-25 Tom Tromey <tom@tromey.com>
3707
3708 * tui/tui-wingeneral.c (tui_refresh_all): Update.
3709 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3710 (tui_source_window_base::set_new_height): Update.
3711 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
3712 Update.
3713 (tui_set_locator_fullname, tui_set_locator_info)
3714 (tui_show_frame_info): Update.
3715 * tui/tui-source.c (tui_set_source_content)
3716 (tui_source_is_displayed): Update.
3717 * tui/tui-layout.c (show_source_disasm_command, show_data)
3718 (show_source_or_disasm_and_command): Update.
3719 * tui/tui-disasm.c (tui_set_disassem_content)
3720 (tui_get_begin_asm_address): Update.
3721 * tui/tui-data.h (struct tui_locator_element): Remove.
3722 (union tui_which_element) <locator>: Remove.
3723 (struct tui_locator_window): New.
3724 (tui_locator_win_info_ptr): Change return type.
3725 * tui/tui-data.c (_locator): Change type.
3726 (tui_locator_win_info_ptr): Change return type.
3727 (init_content_element): Remove LOCATOR_WIN case. Add assert.
3728 (tui_alloc_content): Add assert.
3729
489e9d8b
TT
37302019-06-25 Tom Tromey <tom@tromey.com>
3731
3732 * tui/tui-winsource.c
3733 (tui_exec_info_window::maybe_allocate_content): New method.
3734 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
3735 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
3736 (make_source_or_disasm_window): Add cast.
3737 * tui/tui-data.h (union tui_which_element) <simple_string>:
3738 Remove.
3739 (struct tui_source_info): New.
3740 (struct tui_source_window_base) <execution_info>: Change type.
3741 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
3742 case, and add assert.
3743 (tui_alloc_content): Add assert.
3744
c3fabb7d
TT
37452019-06-25 Tom Tromey <tom@tromey.com>
3746
3747 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
3748 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
3749 * tui/tui-data.c (tui_alloc_win_info): Remove.
3750
bbc228ee
TT
37512019-06-25 Tom Tromey <tom@tromey.com>
3752
3753 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
3754 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
3755 can_highlight.
3756
5fcee43a
TT
37572019-06-25 Tom Tromey <tom@tromey.com>
3758
3759 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
3760 make_visible_with_new_height method.
3761 (tui_win_info::make_visible_with_new_height): New method.
3762 (tui_source_window_base::do_make_visible_with_new_height)
3763 (tui_data_window::do_make_visible_with_new_height)
3764 (tui_cmd_window::do_make_visible_with_new_height): New methods.
3765 (make_visible_with_new_height): Remove.
3766 (tui_resize_all, tui_adjust_win_heights): Use
3767 make_visible_with_new_height method.
3768 * tui/tui-data.h (struct tui_win_info)
3769 <do_make_visible_with_new_height, make_visible_with_new_height>:
3770 New methods.
3771 (struct tui_source_window_base, struct tui_data_window)
3772 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
3773 methods.
3774
d83f1fe6
TT
37752019-06-25 Tom Tromey <tom@tromey.com>
3776
3777 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
3778 method.
3779 (update_tab_width): Call update_tab_width method.
3780 * tui/tui-data.h (struct tui_win_info)
3781 (struct tui_source_window_base) <update_tab_width>: New methods.
3782
17374de4
TT
37832019-06-25 Tom Tromey <tom@tromey.com>
3784
3785 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
3786 parameter.
3787 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
3788 parameter.
3789 (tui_gen_win_info::make_visible): Update.
3790 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
3791 parameter.
3792 * tui/tui-data.h (enum tui_box): New enum.
3793 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
3794
f936bca2
TT
37952019-06-25 Tom Tromey <tom@tromey.com>
3796
3797 * tui/tui-layout.c (make_source_or_disasm_window): Always use
3798 init_and_make_win for EXEC_INFO_WIN.
3799 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
3800 longer inline.
3801 (struct tui_win_info) <~tui_win_info>: Inline.
3802 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
3803 Don't declare.
3804 * tui/tui-data.c (source_win, disasm_win): Remove globals.
3805 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
3806 Remove.
3807 (tui_initialize_static_data): Update.
3808 (~tui_gen_win_info): Handle more cleanup here.
3809 (~tui_source_window_base): Delete "execution_info".
3810 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
3811
d6ba6a11
TT
38122019-06-25 Tom Tromey <tom@tromey.com>
3813
3814 * tui/tui-layout.c (make_command_window): Don't set
3815 can_highlight.
3816 (show_source_disasm_command): Call the reset method.
3817 (show_data): Don't set can_highlight. Call the reset method.
3818 (tui_gen_win_info::reset): Rename from init_gen_win_info
3819 (init_and_make_win): Simplify. Return tui_gen_win_info.
3820 (show_source_or_disasm_and_command): Call the reset method.
3821 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
3822 (struct tui_cmd_window): Set can_highlight.
3823
48a3bd16
TT
38242019-06-25 Tom Tromey <tom@tromey.com>
3825
3826 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
3827 from make_visible.
3828 (tui_make_visible, tui_make_invisible): Rewrite.
3829 (tui_win_info::make_visible): Remove.
3830 (tui_source_window_base::make_visible): Update.
3831 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
3832 method. Moved from...
3833 (struct tui_win_info) <make_visible>: ...here.
3834
c3bd716f
TT
38352019-06-25 Tom Tromey <tom@tromey.com>
3836
3837 * tui/tui-winsource.c
3838 (tui_source_window_base::do_scroll_horizontal): Remove direction
3839 parameter.
3840 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
3841 direction parameter.
3842 * tui/tui-win.c (tui_win_info::forward_scroll)
3843 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
3844 (tui_win_info::right_scroll): Update.
3845 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
3846 direction parameter.
3847 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
3848 direction parameter.
3849 * tui/tui-data.h (enum tui_scroll_direction): Remove.
3850 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
3851 Remove direction parameter.
3852 (struct tui_source_window_base, struct tui_source_window)
3853 (struct tui_disasm_window, struct tui_data_window)
3854 (struct tui_cmd_window): Update.
3855
21c32dca
TT
38562019-06-25 Tom Tromey <tom@tromey.com>
3857
3858 * tui/tui-winsource.h (tui_set_exec_info_content)
3859 (tui_show_exec_info_content, tui_erase_exec_info_content)
3860 (tui_clear_exec_info_content, tui_update_exec_info): Change
3861 argument to tui_source_window_base.
3862 * tui/tui-winsource.c (tui_set_exec_info_content)
3863 (tui_show_exec_info_content, tui_erase_exec_info_content)
3864 (tui_clear_exec_info_content, tui_update_exec_info): Change
3865 argument to tui_source_window_base.
3866
73fbdc65
TT
38672019-06-25 Tom Tromey <tom@tromey.com>
3868
3869 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
3870 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
3871
33325343
TT
38722019-06-25 Tom Tromey <tom@tromey.com>
3873
3874 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
3875 check.
3876
29d2c474
TT
38772019-06-25 Tom Tromey <tom@tromey.com>
3878
3879 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
3880 type to void.
3881 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
3882 type to void.
3883 * tui/tui-source.c (tui_set_source_content): Update.
3884 * tui/tui-disasm.c (tui_set_disassem_content): Update.
3885
152f3f4b
TT
38862019-06-25 Tom Tromey <tom@tromey.com>
3887
3888 * tui/tui-win.c (window_name_completer, tui_set_focus)
3889 (tui_all_windows_info): Use name method.
3890 * tui/tui-data.h (struct tui_gen_win_info)
3891 (struct tui_source_window, struct tui_disasm_window)
3892 (struct tui_data_window, struct tui_cmd_window) <name>: New
3893 method.
3894 (tui_win_name): Don't declare.
3895 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
3896 (tui_win_name): Remove.
3897
be4da588
TT
38982019-06-25 Tom Tromey <tom@tromey.com>
3899
3900 * tui/tui-winsource.h (tui_update_source_window)
3901 (tui_update_source_window_as_is): Change parameter type.
3902 * tui/tui-winsource.c (tui_update_source_window): Change win_info
3903 to be a tui_source_window_base.
3904 (tui_update_source_window_as_is): Likewise.
3905 * tui/tui-win.c (make_visible_with_new_height): Update.
3906
5b81daba
TT
39072019-06-25 Tom Tromey <tom@tromey.com>
3908
3909 * tui/tui-winsource.c (tui_erase_source_content)
3910 (tui_show_source_content, tui_show_exec_info_content)
3911 (tui_erase_exec_info_content): Use refresh_window method.
3912 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
3913 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
3914 from tui_refresh_win.
3915 (tui_data_window::refresh_window): New method.
3916 (tui_win_info::refresh, tui_source_window_base::refresh)
3917 (tui_refresh_all): Use refresh_window method.
3918 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
3919 method.
3920 * tui/tui-regs.c (tui_display_register): Call refresh_window
3921 method.
3922 * tui/tui-layout.c (show_source_disasm_command)
3923 (show_source_or_disasm_and_command): Call refresh_window method.
3924 * tui/tui-data.h (struct tui_gen_win_info)
3925 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
3926 New method.
3927
cb2ce893
TT
39282019-06-25 Tom Tromey <tom@tromey.com>
3929
3930 * tui/tui.c (tui_rl_other_window, tui_enable)
3931 (tui_is_window_visible, tui_get_command_dimension): Update.
3932 * tui/tui-winsource.c (tui_update_source_window_as_is)
3933 (tui_clear_source_content, tui_erase_source_content)
3934 (tui_show_source_line, tui_source_window_base::refill)
3935 (tui_source_window_base::do_scroll_horizontal)
3936 (tui_source_window_base::set_is_exec_point_at)
3937 (tui_update_breakpoint_info, tui_set_exec_info_content)
3938 (tui_alloc_source_buffer, tui_line_is_displayed)
3939 (tui_addr_is_displayed): Update.
3940 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
3941 (tui_check_and_display_highlight_if_needed)
3942 (tui_win_info::make_visible, tui_win_info::refresh)
3943 (tui_refresh_all): Update.
3944 * tui/tui-windata.c (tui_first_data_item_displayed)
3945 (tui_delete_data_content_windows, tui_erase_data_content)
3946 (tui_display_all_data, tui_data_window::refresh_all)
3947 (tui_check_data_values): Update.
3948 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
3949 (tui_set_win_focus_to, tui_win_info::forward_scroll)
3950 (tui_win_info::backward_scroll, tui_refresh_all_win)
3951 (tui_resize_all, tui_set_focus, tui_all_windows_info)
3952 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
3953 (tui_source_window_base::set_new_height)
3954 (tui_data_window::set_new_height)
3955 (make_invisible_and_set_new_height)
3956 (make_visible_with_new_height, new_height_ok)
3957 (parse_scrolling_args): Update.
3958 * tui/tui-stack.c (tui_show_frame_info): Update.
3959 * tui/tui-source.c (tui_set_source_content)
3960 (tui_set_source_content_nil, tui_source_is_displayed)
3961 (tui_source_window::do_scroll_vertical): Update.
3962 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
3963 (tui_display_registers_from, tui_display_reg_element_at_line)
3964 (tui_check_register_values, tui_reg_command): Update.
3965 * tui/tui-layout.c (tui_default_win_height)
3966 (show_source_disasm_command, show_data, init_and_make_win)
3967 (show_source_or_disasm_and_command): Update.
3968 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
3969 (tui_redisplay_readline, tui_mld_flush)
3970 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
3971 (tui_getc): Update.
3972 * tui/tui-disasm.c (tui_set_disassem_content)
3973 (tui_disasm_window::do_scroll_vertical): Update.
3974 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
3975 Now virtual.
3976 (struct tui_win_info): Derive from tui_gen_win_info.
3977 <~tui_win_info>: Mark as override.
3978 <generic>: Remove member.
3979 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
3980 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
3981 (~tui_data_window, ~tui_win_info)
3982 (tui_free_all_source_wins_content): Update.
3983 * tui/tui-command.c (tui_refresh_cmd_win): Update.
3984
ab313b35
TT
39852019-06-25 Tom Tromey <tom@tromey.com>
3986
3987 * tui/tui-layout.c (init_and_make_win): Use new.
3988 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
3989 destructor, initializers.
3990 (tui_alloc_generic_win_info): Don't declare.
3991 * tui/tui-data.c (_locator): Add argument to constructor.
3992 (source_win, disasm_win): New globals.
3993 (exec_info): Remove.
3994 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
3995 Update.
3996 (tui_alloc_generic_win_info): Remove.
3997 (init_content_element): Use new.
3998 (tui_win_info::tui_win_info): Update.
3999 (free_content_elements) <case DATA_WIN>: Use delete.
4000
dc2c33e4
TT
40012019-06-25 Tom Tromey <tom@tromey.com>
4002
4003 * tui/tui-wingeneral.c (tui_refresh_win): Update.
4004 * tui/tui-windata.c (tui_first_data_item_displayed)
4005 (tui_delete_data_content_windows): Update.
4006 * tui/tui-win.c (tui_data_window::set_new_height): Update.
4007 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4008 (tui_display_registers_from, tui_check_register_values): Update.
4009 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
4010 pointer.
4011 * tui/tui-data.c (init_content_element): Update. Allocate the new
4012 window.
4013 (tui_free_data_content): Update.
4014 (free_content_elements) <case DATA_WIN>: Free the window.
4015
214a5cbe
TT
40162019-06-25 Tom Tromey <tom@tromey.com>
4017
4018 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
4019 Update.
4020 * tui/tui-layout.c (make_command_window)
4021 (show_source_disasm_command, show_data, init_and_make_win)
4022 (show_source_or_disasm_and_command): Update.
4023 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
4024 method.
4025 <can_highight, is_highlighted>: Now bool.
4026 (tui_set_win_highlight): Don't declare.
4027 * tui/tui-data.c (tui_set_win_highlight): Remove.
4028
8e2daf15
TT
40292019-06-25 Tom Tromey <tom@tromey.com>
4030
4031 * tui/tui-wingeneral.c (make_visible): Remove check of window
4032 type.
4033
8903bd8a
TT
40342019-06-25 Tom Tromey <tom@tromey.com>
4035
4036 * tui/tui-win.c (tui_win_info::max_height)
4037 (tui_cmd_window::max_height): New methods.
4038 (new_height_ok): Call max_height.
4039 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
4040 <max_height>: New method.
4041
3f02ce1e
TT
40422019-06-25 Tom Tromey <tom@tromey.com>
4043
4044 * tui/tui-win.c (tui_source_window_base::set_new_height)
4045 (tui_data_window::set_new_height): New methods.
4046 (make_invisible_and_set_new_height): Call set_new_height method.
4047 * tui/tui-data.h (struct tui_win_info)
4048 (struct tui_source_window_base, struct tui_data_window)
4049 <set_new_height>: New method.
4050
1825f487
TT
40512019-06-25 Tom Tromey <tom@tromey.com>
4052
4053 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
4054 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
4055 tui_refresh_data_win.
4056 * tui/tui-win.c (tui_source_window_base::refresh_all): New
4057 method.
4058 (tui_refresh_all_win): Call the refresh_all method.
4059 (tui_set_focus): Likewise.
4060 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
4061 (struct tui_source_window_base, struct tui_data_window) <refresh>:
4062 Likewise.
4063
ad54d15b
TT
40642019-06-25 Tom Tromey <tom@tromey.com>
4065
4066 * tui/tui-winsource.h (tui_refill_source_window)
4067 (tui_set_is_exec_point_at): Don't declare.
4068 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4069 (tui_source_window_base::refill): Rename from
4070 tui_refill_source_window.
4071 (tui_source_window_base::do_scroll_horizontal): Update.
4072 (tui_source_window_base::set_is_exec_point_at): Rename from
4073 tui_set_is_exec_point_at.
4074 (tui_update_all_breakpoint_info): Update.
4075 * tui/tui-stack.c (tui_show_frame_info): Update.
4076 * tui/tui-layout.c (show_data): Add cast.
4077 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
4078 * tui/tui-data.h (struct tui_source_window_base) <refill,
4079 set_is_exec_point_at>: New methods.
4080 (tui_source_windows, tui_add_to_source_windows): Update types.
4081 (tui_add_to_source_windows): Remove redundant declaration.
4082 * tui/tui-data.c (source_windows): Store tui_source_window_base.
4083 (tui_source_windows): Change return type.
4084 (tui_clear_source_windows_detail): Update.
4085 (tui_add_to_source_windows): Change type of parameter.
4086 (tui_free_all_source_wins_content): Update.
4087
2042b506
TT
40882019-06-25 Tom Tromey <tom@tromey.com>
4089
4090 * tui/tui-wingeneral.c (tui_win_info::refresh)
4091 (tui_source_window_base::refresh): New methods.
4092 (tui_refresh_all): Call the refresh method.
4093 * tui/tui-data.h (struct tui_win_info)
4094 (struct tui_source_window_base) <refresh>: New method.
4095
56122977
TT
40962019-06-25 Tom Tromey <tom@tromey.com>
4097
4098 * tui/tui.h (tui_is_window_visible): Return bool.
4099 * tui/tui.c (tui_is_window_visible): Return bool.
4100 * tui/tui-wingeneral.c (tui_make_window, make_visible)
4101 (tui_make_visible, tui_make_invisible)
4102 (tui_win_info::make_visible)
4103 (tui_source_window_base::make_visible, make_all_visible)
4104 (tui_make_all_visible, tui_make_all_invisible): Update.
4105 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
4106 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
4107 bool.
4108 (struct tui_win_info, struct tui_source_window_base)
4109 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
4110 * tui/tui-data.c (tui_init_generic_part): Update.
4111
cda37efb
TT
41122019-06-25 Tom Tromey <tom@tromey.com>
4113
4114 * tui/tui-wingeneral.c (tui_win_info::make_visible)
4115 (tui_source_window_base::make_visible): New methods.
4116 (make_all_visible): Make method call.
4117 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
4118 (struct tui_source_window_base, struct tui_cmd_window): Override
4119 make_visible.
4120 (tui_win_is_source_type): Don't declare.
4121 * tui/tui-data.c (tui_win_is_source_type): Remove.
4122
6a0ee02c
TT
41232019-06-25 Tom Tromey <tom@tromey.com>
4124
4125 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
4126 NULL check.
4127
63901aec
TT
41282019-06-25 Tom Tromey <tom@tromey.com>
4129
4130 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
4131 Inline constructor. Add initializers for members.
4132 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
4133 constructors; now inline in class.
4134
ceb13a13
TT
41352019-06-25 Tom Tromey <tom@tromey.com>
4136
4137 * tui/tui-regs.c (tui_show_registers): Update.
4138 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
4139 bool.
4140 * tui/tui-data.c (tui_data_window::clear_detail)
4141 (tui_data_window): Update.
4142
238eb706
TT
41432019-06-25 Tom Tromey <tom@tromey.com>
4144
4145 * tui/tui-windata.c (tui_display_all_data)
4146 (tui_display_data_from_line, tui_display_data_from)
4147 (tui_check_data_values, tui_data_window::do_scroll_vertical):
4148 Update.
4149 * tui/tui-regs.c (tui_last_regs_line_no)
4150 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
4151 (tui_show_registers, tui_show_register_group)
4152 (tui_display_registers_from, tui_display_reg_element_at_line)
4153 (tui_display_registers_from_line, tui_check_register_values)
4154 (tui_reg_next, tui_reg_prev): Update.
4155 * tui/tui-layout.c (tui_set_layout, show_data): Update.
4156 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
4157 tui_data_window.
4158 (struct tui_win_info) <detail>: Remove. Add new fields from
4159 tui_data_info.
4160 (TUI_DATA_WIN): Add cast.
4161 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
4162 (~tui_data_window): Simplify.
4163
81491aa0
TT
41642019-06-25 Tom Tromey <tom@tromey.com>
4165
4166 * tui/tui-layout.c (show_source_disasm_command)
4167 (show_source_or_disasm_and_command): Update.
4168 * tui/tui-io.c (update_cmdwin_start_line)
4169 (tui_redisplay_readline): Update.
4170 * tui/tui-data.h (struct tui_command_info): Remove.
4171 (struct tui_win_info) <detail>: Remove command_info member.
4172 (struct tui_data_window) <start_line>: New member, from
4173 tui_command_info.
4174 (TUI_CMD_WIN): Add casts.
4175
e6e41501
TT
41762019-06-25 Tom Tromey <tom@tromey.com>
4177
4178 * tui/tui-winsource.c (tui_update_source_window)
4179 (tui_refill_source_window)
4180 (tui_source_window_base::do_scroll_horizontal)
4181 (tui_update_breakpoint_info, tui_set_exec_info_content)
4182 (tui_show_exec_info_content, tui_erase_exec_info_content)
4183 (tui_clear_exec_info_content): Update.
4184 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
4185 Update.
4186 * tui/tui-win.c (make_invisible_and_set_new_height)
4187 (make_visible_with_new_height): Update.
4188 * tui/tui-source.c (tui_set_source_content)
4189 (tui_show_symtab_source): Update.
4190 * tui/tui-layout.c (extract_display_start_addr)
4191 (show_source_disasm_command, show_data)
4192 (make_source_or_disasm_window)
4193 (show_source_or_disasm_and_command): Update.
4194 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
4195 (tui_disasm_window::do_scroll_vertical): Remove shadowing
4196 "gdbarch".
4197 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
4198 to tui_source_window_base.
4199 (struct tui_win_info) <detail>: Remove source_info member.
4200 (struct tui_source_window_base) <has_locator>: Inline.
4201 Move contents from tui_source_info; rename has_locator member to
4202 m_has_locator.
4203 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
4204 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
4205 header file.
4206 (tui_source_window_base::clear_detail, ~tui_source_window_base):
4207 Simplify.
4208 (tui_free_all_source_wins_content): Cast to
4209 tui_source_window_base.
4210
44f0e208
TT
42112019-06-25 Tom Tromey <tom@tromey.com>
4212
4213 * tui/tui-win.c (make_invisible_and_set_new_height)
4214 (make_visible_with_new_height): Call has_locator method.
4215 * tui/tui-layout.c (show_source_disasm_command, show_data)
4216 (show_source_or_disasm_and_command): Update for bool change.
4217 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
4218 (tui_win_info) <has_locator>: New method.
4219 (struct tui_source_window_base) <has_locator>: New method.
4220 (tui_win_has_locator): Don't declare.
4221 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
4222 from tui_win_has_locator.
4223 (tui_source_window_base): Use false, not FALSE.
4224
7778b912
TT
42252019-06-25 Tom Tromey <tom@tromey.com>
4226
4227 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
4228 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
4229 clear_detail method directly.
4230 (tui_clear_win_detail): Remove.
4231
f83d391c
TT
42322019-06-25 Tom Tromey <tom@tromey.com>
4233
4234 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
4235 "this", not TUI_DISASM_WIN.
4236
13446e05
TT
42372019-06-25 Tom Tromey <tom@tromey.com>
4238
4239 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
4240 declare.
4241 * tui/tui-winsource.c
4242 (tui_source_window_base::do_scroll_horizontal): Rename from
4243 tui_horizontal_source_scroll.
4244 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
4245 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
4246 from tui_vertical_data_scroll.
4247 * tui/tui-win.h (tui_scroll): Don't declare.
4248 * tui/tui-win.c (tui_win_info::forward_scroll)
4249 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
4250 (tui_win_info::right_scroll): Rename and update.
4251 (tui_scroll_forward_command, tui_scroll_backward_command)
4252 (tui_scroll_left_command, tui_scroll_right_command): Update.
4253 (tui_scroll): Remove.
4254 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
4255 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
4256 from tui_vertical_source_scroll.
4257 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
4258 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
4259 from tui_vertical_disassem_scroll.
4260 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
4261 do_scroll_horizontal>: New methods.
4262 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
4263 Likewise.
4264 (struct tui_source_window_base): Add do_scroll_horizontal.
4265 (struct tui_source_window, struct tui_disasm_window): Add
4266 do_scroll_vertical.
4267 (struct tui_data_window, struct tui_cmd_window): Add
4268 do_scroll_horizontal and do_scroll_vertical.
4269 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
4270
5cf82909
TT
42712019-06-25 Tom Tromey <tom@tromey.com>
4272
4273 * tui/tui-data.h (struct tui_source_window_base): New struct.
4274 (struct tui_source_window): Derive from tui_source_window_base.
4275 (struct tui_disasm_window): New struct.
4276 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
4277 from tui_source_window::clear_detail.
4278 (tui_source_window_base): Rename from tui_source_window.
4279 (~tui_source_window_base): Rename from ~tui_source_window.
4280 (tui_alloc_win_info): Create a tui_disasm_window.
4281
ee1d42d6
TT
42822019-06-25 Tom Tromey <tom@tromey.com>
4283
4284 * tui/tui-data.h (struct tui_source_window)
4285 (struct tui_data_window): Declare destructors.
4286 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
4287 destructors.
4288 (tui_win_info): Simplify.
4289
b4eb2452
TT
42902019-06-25 Tom Tromey <tom@tromey.com>
4291
4292 * tui/tui-winsource.c (tui_display_main)
4293 (tui_update_source_windows_with_addr)
4294 (tui_update_all_breakpoint_info): Update.
4295 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4296 (new_height_ok, parse_scrolling_args): Update.
4297 * tui/tui-stack.c (tui_show_frame_info): Update.
4298 * tui/tui-data.h (struct tui_list): Remove.
4299 (tui_source_windows): Return a reference to a std::vector.
4300 * tui/tui-data.c (source_windows): Now a std::vector.
4301 (tui_source_windows): Change return type.
4302 (tui_clear_source_windows): Rewrite.
4303 (tui_clear_source_windows_detail, tui_add_to_source_windows)
4304 (tui_free_all_source_wins_content): Rewrite.
4305
8761a91b
TT
43062019-06-25 Tom Tromey <tom@tromey.com>
4307
4308 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
4309 (struct tui_data_window, struct tui_cmd_window): Declare
4310 clear_detail method.
4311 * tui/tui-data.c (tui_source_window::clear_detail)
4312 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
4313 methods.
4314 (tui_clear_win_detail): Simplify.
4315
0ed69eda
TT
43162019-06-25 Tom Tromey <tom@tromey.com>
4317
4318 * tui/tui-layout.c (make_source_window, make_disasm_window)
4319 (make_source_or_disasm_window): Remove win_info_ptr parameter.
4320 Return the new window.
4321 (show_source_disasm_command, show_data)
4322 (show_source_or_disasm_and_command): Update.
4323
82432e10
TT
43242019-06-25 Tom Tromey <tom@tromey.com>
4325
4326 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
4327 parameter. Return the new window.
4328 (show_source_disasm_command): Update and remove NULL check.
4329 (show_source_or_disasm_and_command): Update.
4330
ec328aa5
TT
43312019-06-25 Tom Tromey <tom@tromey.com>
4332
4333 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
4334
33b906ab
TT
43352019-06-25 Tom Tromey <tom@tromey.com>
4336
4337 * tui/tui-data.h (struct tui_win_info): Make constructor
4338 protected. Make destructor virtual. Add initializers.
4339 (tui_source_window, tui_data_window, tui_cmd_window): New
4340 classes.
4341 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
4342 constructor. Add "type" parameter.
4343 (tui_source_window, tui_data_window, tui_cmd_window): New
4344 constructors.
4345 (tui_alloc_win_info): Instantiate the appropriate subclass.
4346
e7e11af4
TT
43472019-06-25 Tom Tromey <tom@tromey.com>
4348
4349 * tui/tui-win.c (tui_resize_all): Use delete.
4350 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
4351 destructor.
4352 (tui_free_window): Don't declare.
4353 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
4354 Update.
4355
6792b55e
TT
43562019-06-25 Tom Tromey <tom@tromey.com>
4357
4358 * tui/tui-data.h (struct tui_win_info): Add constructor.
4359 * tui/tui-data.c (tui_alloc_win_info): Use new.
4360 (tui_free_window): Use delete.
4361
f95675e1
TT
43622019-06-22 Tom Tromey <tom@tromey.com>
4363
4364 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
4365 declare.
4366 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
4367
5bff081c
TT
43682019-06-22 Tom Tromey <tom@tromey.com>
4369
4370 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
4371 declare.
4372 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
4373
47e3f474
TV
43742019-06-22 Tom de Vries <tdevries@suse.de>
4375
4376 * dwarf2read.c (create_addrmap_from_aranges)
4377 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
4378 instead of '%zu'.
4379
fd5866f6
SM
43802019-06-21 Simon Marchi <simon.marchi@efficios.com>
4381
4382 * dwarf2read.h (dwarf2_section_info_def): Remove.
4383 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
4384 * dwarf2read.c (struct dwo_sections) <types>: Change type to
4385 std::vector<dwarf2_section_info>.
4386 (struct dwo_file) <~dwo_file>: Remove.
4387 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
4388 types field.
4389 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
4390 (dwarf2_read_debug_names): Likewise.
4391 (create_debug_types_hash_table): Change parameter type to
4392 array_view, adjust code accordingly.
4393 (dwarf2_locate_dwo_sections): Adjust to std::vector.
4394 (partial_die_info::fixup): Likewise.
4395 (determine_prefix): Likewise.
4396 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
4397
fb1eb2f9
SM
43982019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4399
4400 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
4401 gdb_bfd_ref_ptr.
4402 <~dwo_file>: Remove call to gdb_bfd_unref.
4403 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
4404 gdb_bfd_ref_ptr::get.
4405
51ac9db5
SM
44062019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4407
4408 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
4409 type to htab_up.
4410 * dwarf2read.c (struct dwo_file): Initialize fields.
4411 <~dwo_file>: New.
4412 (free_dwo_file): Remove, move content to ~dwo_file.
4413 (struct dwo_file_deleter): Remove.
4414 (dwo_file_up>: Remove custom deleter.
4415 (free_dwo_files): Remove.
4416 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
4417 dwo_files.
4418 (process_skeletonless_type_units): Call unique_ptr::get.
4419 (allocate_dwo_file_hash_table): Add deleter to created hash
4420 table. Change return type to htab_up.
4421 (lookup_dwo_file_slot): Don't memset dwo_file, call
4422 unique_ptr::get.
4423 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
4424 (create_dwo_unit_in_dwp_v2): Likewise.
4425 (open_and_init_dwo_file): Likewise.
4426 (free_dwo_file_from_slot): Remove.
4427
dc4ccb6f
SM
44282019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4429
4430 * dwarf2read.h (struct dwarf2_section_info) <readin,
4431 is_virtual>: Change type to bool.
4432 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
4433 true instead of 1.
4434
e6a1c5cb
TT
44352019-06-19 Tom Tromey <tom@tromey.com>
4436
4437 * tui/tui-data.h (tui_init_content_element): Don't declare.
4438
6f6ffbeb
TT
44392019-06-19 Tom Tromey <tom@tromey.com>
4440
4441 * tui/tui-data.h (tui_init_win_info): Don't declare.
4442
f23f598e
TV
44432019-06-19 Tom de Vries <tdevries@suse.de>
4444
4445 * dwarf2read.h (abstract_to_concrete): Change type to
4446 std::unordered_map<sect_offset, std::vector<sect_offset>,
4447 gdb::hash_enum<sect_offset>>.
4448
680e1bee
TT
44492019-06-19 Tom Tromey <tromey@adacore.com>
4450
4451 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
4452 EVAL_AVOID_SIDE_EFFECTS specially.
4453
dcf37923
TT
44542019-06-19 Tom Tromey <tromey@adacore.com>
4455
4456 * source-cache.c (highlighter): New global.
4457 (source_cache::get_source_lines): Create a highlighter on demand.
4458
494986d5
AB
44592019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
4460
4461 * defs.h (deprecated_interactive_hook): Delete declaration.
4462 * interps.c (clear_interpreter_hooks): Remove use of
4463 deprecated_interactive_hook.
4464 * top.c (deprecated_interactive_hook): Delete definition.
4465 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
4466
3360b6e7
TV
44672019-06-18 Tom de Vries <tdevries@suse.de>
4468
4469 PR gdb/24515
4470 * dwarf2read.h (abstract_to_concrete): Change type from
4471 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
4472 std::unordered_map<sect_offset, std::vector<sect_offset>>.
4473 * dwarf2read.c (read_variable): Update.
4474 (dwarf2_fetch_die_loc_sect_off): Update.
4475
310b3441
TV
44762019-06-17 Tom de Vries <tdevries@suse.de>
4477
4478 PR gdb/24617
4479 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
4480 accessing parent[parent_len - 1].
4481
ba9777be
PP
44822019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
4483
4484 PR gdb/24364
4485 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
4486 call dtrace_process_dof with NULL dof.
4487
2b9f6e89
TV
44882019-06-16 Tom de Vries <tdevries@suse.de>
4489
4490 PR gdb/24445
4491 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
4492
431b3ead
TT
44932019-06-16 Tom Tromey <tom@tromey.com>
4494
4495 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
4496 (make_all_visible): Use address of member.
4497
d04b44a1
TT
44982019-06-16 Tom Tromey <tom@tromey.com>
4499
4500 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
4501 (tui_free_window, free_content, free_content_elements): Remove
4502 unnecessary cast.
4503 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
4504 cast.
4505 * tui/tui-regs.c (tui_show_register_group)
4506 (tui_display_registers_from, tui_display_reg_element_at_line):
4507 Remove unnecessary cast.
4508
bf5142e7
AB
45092019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
4510
4511 * linux-nat.c (normal_mask): Delete.
4512 (_initialize_linux_nat): Don't initialise normal_mask.
4513
c4973306
SM
45142019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
4515
4516 PR gdb/24445
4517 * dwarf-index-write.h (write_psymtabs_to_index): Add
4518 dwz_basename parameter.
4519 * dwarf-index-write.c (write_gdbindex): Move file writing to
4520 write_gdbindex_1. Change return type void.
4521 (assert_file_size): Move up, remove filename parameter.
4522 (write_gdbindex_1): New function.
4523 (write_debug_names): Change return type to void, call
4524 assert_file_size.
4525 (struct index_wip_file): New struct.
4526 (write_psymtabs_to_index): Add dwz_basename parameter. Move
4527 file logic to index_wip_file. Write index for dwz file if
4528 needed.
4529 (save_gdb_index_command): Pass basename of dwz file, if present.
4530 * dwarf-index-cache.c (index_cache::store): Obtain and pass
4531 build-id of dwz file, if present.
4532 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
4533 (dwarf2_get_dwz_file): Likewise.
4534 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
4535 (dwarf2_get_dwz_file): Likewise.
4536
395f9c91
TT
45372019-06-16 Tom Tromey <tom@tromey.com>
4538
4539 * coffread.c (process_coff_symbol): Use xstrdup.
4540 * value.c (create_internalvar): Use xstrdup.
4541
cafb3438
TT
45422019-06-16 Tom Tromey <tom@tromey.com>
4543
4544 * valops.c (value_cast, value_slice): Remove unnecessary cast.
4545 * breakpoint.c (stopin_command, stopat_command)
4546 (until_break_command, decode_location_default): Remove unnecessary
4547 cast.
4548 * utils.c (subset_compare): Remove unnecessary cast.
4549 * ada-lang.c (ada_update_initial_language): Remove unnecessary
4550 cast.
4551 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
4552 cast.
4553 * infcmd.c (path_command): Remove unnecessary cast.
4554 * coffread.c (decode_type): Remove unnecessary cast.
4555 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
4556 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
4557 * tui/tui-stack.c (tui_show_locator_content)
4558 (tui_show_frame_info): Remove unnecessary cast.
4559 * tui/tui-win.c (tui_scroll_forward_command)
4560 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
4561 (parse_scrolling_args): Remove unnecessary cast.
4562 * tui/tui-data.c (init_win_info, tui_del_window)
4563 (tui_free_window, tui_del_data_windows, tui_free_data_content)
4564 (free_content_elements): Remove unnecessary cast.
4565 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
4566 unnecessary cast.
4567 * tui/tui-source.c (tui_set_source_content)
4568 (tui_vertical_source_scroll): Remove unnecessary cast.
4569 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
4570 cast.
4571 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
4572 * tui/tui-regs.c (tui_display_registers_from)
4573 (tui_display_register): Remove unnecessary cast.
4574 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
4575 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
4576 (make_visible): Remove unnecessary cast.
4577 * tui/tui-winsource.c (tui_erase_source_content)
4578 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
4579 unnecessary cast.
4580 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
4581 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
4582 * stabsread.c (read_type, read_array_type, read_range_type):
4583 Remove unnecessary cast.
4584 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
4585 (parse_symbol, parse_type, upgrade_type, parse_external)
4586 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
4587 unnecessary cast.
4588 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
4589
730ead81
TT
45902019-06-16 Tom Tromey <tom@tromey.com>
4591
4592 * tui/tui-data.c (tui_alloc_generic_win_info)
4593 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
4594 checks.
4595
584a927c
AB
45962019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
4597 Andrew Burgess <andrew.burgess@embecosm.com>
4598
4599 * f-typeprint.c (f_print_type): Don't return early for not
4600 associated or not allocated types.
4601 (f_type_print_varspec_suffix): Add print_rank parameter and print
4602 ranks of array types in case they dangling.
4603 (f_type_print_base): Add print_rank parameter.
4604
30056ea0
AB
46052019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4606
4607 * NEWS: Mention new MI commands.
4608 * break-catch-throw.c (enum exception_event_kind): Move to
4609 breakpoint.h.
4610 (print_mention_exception_catchpoint): Output text as a single
4611 message.
4612 (catch_exception_command_1): Rename to...
4613 (catch_exception_event): ...this, make non-static, update header
4614 command, and change some parameter types.
4615 (catch_catch_command): Update for changes to
4616 catch_exception_command_1.
4617 (catch_throw_command): Likewise.
4618 (catch_rethrow_command): Likewise.
4619 * breakpoint.c (enum exception_event_kind): Delete.
4620 * breakpoint.h (enum exception_event_kind): Moved here from
4621 break-catch-throw.c.
4622 (catch_exception_event): Declare.
4623 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
4624 (mi_cmd_catch_throw): New function.
4625 (mi_cmd_catch_rethrow): New function.
4626 (mi_cmd_catch_catch): New function.
4627 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
4628 'catch-catch' entries.
4629 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
4630 (mi_cmd_catch_rethrow): Declare.
4631 (mi_cmd_catch_catch): Declare.
4632
ec8e2b6d
AB
46332019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4634
4635 * annotate.c (annotate_source_line): Change return type to void,
4636 update implementation to match.
4637 * annotate.h (annotate_source_line): Change return type to void,
4638 update header comment.
4639 * stack.c (print_frame_info): Don't change what frame information
4640 is printed based on whether annotations are on or not.
4641
0d3abd8c
AB
46422019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4643
4644 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
4645 (annotate_source): Make static.
4646 (annotate_source_line): Moved from source.c and renamed from
4647 identify_source_line. Update the return type.
4648 * annotate.h (annotate_source): Delete declaration.
4649 (annotate_source_line): Declaration moved from source.h, and
4650 renamed from identify_source_line. Return type updated.
4651 * source.c (identify_source_line): Moved to annotate.c and renamed
4652 to annotate_source_line.
4653 (info_line_command): Remove check of annotation_level.
4654 * source.h (identify_source_line): Move declaration to annotate.h
4655 and rename to annotate_source_line.
4656 * stack.c: Add 'annotate.h' include.
4657 (print_frame_info): Remove check of annotation_level before
4658 calling annotate_source_line.
4659
00df30ae
AB
46602019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4661
4662 * source-cache.c (source_cache::get_plain_source_lines): Use
4663 open_source_file_with_line_charpos instead of just
4664 open_source_file, remove call to find_source_lines.
4665 (source_cache::get_source_lines): Likewise.
4666 * source.c (find_source_lines): Make static.
4667 (get_filename_and_charpos): Renamed into...
4668 (open_source_file_with_line_charpos): ..this along with changes to
4669 return a scoped_fd, and some other minor clean ups.
4670 (identify_source_line): Use open_source_file_with_line_charpos.
4671 (search_command_helper): Use open_source_file_with_line_charpos
4672 instead of just open_source_file, remove call to
4673 find_source_lines.
4674 * source.h (open_source_file_with_line_charpos): Declare new
4675 function.
4676 (find_source_lines): Delete declaration.
4677
afda45a2
AB
46782019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4679
4680 * source.c (get_filename_and_charpos): Remove fullname
4681 parameter.
4682 (identify_source_line): Update call to get_filename_and_charpos.
4683
0735b091
TT
46842019-06-14 Tom Tromey <tromey@adacore.com>
4685
4686 PR gdb/24502:
4687 * ui-style.h (skip_ansi_escape): Update comment.
4688 * ui-file.h (class no_terminal_escape_file): New class.
4689 * ui-file.c (no_terminal_escape_file::write)
4690 (no_terminal_escape_file::puts): New methods.
4691 * cli/cli-logging.c (handle_redirections): Use
4692 no_terminal_escape_file.
4693
52ce35e2
TT
46942019-06-14 Tom Tromey <tromey@adacore.com>
4695
4696 * NEWS: Move convenience variable news above Python news.
4697
73cc7272
TT
46982019-06-14 Tom Tromey <tom@tromey.com>
4699
4700 * gnulib: Move directory to top-level.
4701 * configure.ac: Don't configure gnulib.
4702 * configure: Rebuild.
4703 * common/common-defs.h: Use new path to gnulib.
4704 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
4705 (GNULIB_H): Remove.
4706 (INCGNU): Look in new gnulib location.
4707 (HFILES_NO_SRCDIR): Remove gnulib files.
4708 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
4709 (generated_files): Remove GNULIB_H.
4710 ($(LIBGNU), all-lib): Remove targets.
4711 (distclean): Don't mention GNULIB_BUILDDIR.
4712 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
4713
f5686554
TT
47142019-06-14 Tom Tromey <tromey@adacore.com>
4715
4716 * symfile.c (add_symbol_file_command): Remove obsolete comment.
4717 Warn if symbol file does not provide any symbols.
4718
a0c1ffed
TT
47192019-06-14 Tom Tromey <tromey@adacore.com>
4720
4721 * source.c (find_and_open_source): Respect basenames_may_differ.
4722
7c39e397
AB
47232019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
4724
4725 * annotate.c (annotate_breakpoints_invalid): Make use of
4726 scoped_restore_terminal_state.
4727 (annotate_frames_invalid): Likewise.
4728
f411722c
TT
47292019-06-14 Tom Tromey <tromey@adacore.com>
4730
4731 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
4732 allow assignment to an internalvar.
4733
4268ec18
TT
47342019-06-14 Tom Tromey <tromey@adacore.com>
4735
4736 * ada-lex.l: Allow "_" in attribute names.
4737
abdb711e
TT
47382019-06-14 Tom Tromey <tromey@adacore.com>
4739
4740 PR gdb/24653:
4741 * regcache.c (registers_changed): Don't call alloca.
4742 * top.c (execute_command): Don't call alloca.
4743
4c048731
PA
47442019-06-13 Pedro Alves <palves@redhat.com>
4745
4746 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
4747 'expression'. When parsing an expression, error out if there's
4748 junk after "unlimited".
4749 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
4750 (do_set_command): Adjust calls to is_unlimited_literal.
4751
66eb1ed3
PA
47522019-06-13 Pedro Alves <palves@redhat.com>
4753
4754 * compile/compile.c (make_compile_options_def_group): Add braces
4755 around array_view initializer.
4756 * thread.c (make_thread_apply_all_options_def_group)
4757 (make_thread_apply_all_options_def_group): Likewise.
4758
3345721a
PA
47592019-06-13 Pedro Alves <palves@redhat.com>
4760
4761 * NEWS (New commands): Mention "maint test-options
4762 require-delimiter", "maint test-options unknown-is-error", "maint
4763 test-options unknown-is-operand" and "maint show
4764 test-options-completion-result".
4765 (New command options, command completion): New section.
4766 (Completion improvements): New section.
4767 Mention that you can abbreviate "unlimited".
4768
6206060d
PA
47692019-06-13 Pedro Alves <palves@redhat.com>
4770
4771 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
4772 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
4773 * unittests/cli-utils-selftests.c (test_parse_flags)
4774 (test_parse_flags_qcs): Delete.
4775 (test_cli_utils): Don't call deleted functions.
4776
6665660a
PA
47772019-06-13 Pedro Alves <palves@redhat.com>
4778
4779 * thread.c: Include "cli/cli-option.h".
4780 (tp_array_compar_ascending): Global.
4781 (tp_array_compar): Delete function.
4782 (tp_array_compar_ascending, tp_array_compar_descending): New
4783 functions.
4784 (ascending_option_def, qcs_flag_option_def)
4785 (thr_qcs_flags_option_defs)
4786 (make_thread_apply_all_options_def_group)
4787 (make_thread_apply_options_def_group): New.
4788 (thread_apply_all_command): Use gdb::option::process_options.
4789 (thread_apply_command_completer)
4790 (thread_apply_all_command_completer): New.
4791 (thread_apply_command): Use gdb::option::process_options.
4792 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
4793 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
4794 to generate help text of "thread apply". Adjust "taas"'s help.
4795 * tid-parse.c (tid_range_parser::in_thread_range): New method.
4796 * tid-parse.h (tid_range_parser::in_thread_range): New method.
4797
f7e13587
PA
47982019-06-13 Pedro Alves <palves@redhat.com>
4799
4800 * thread.c (thread_apply_command): Check for invalid TID with
4801 isdigit instead of !isalpha.
4802
5d707134
PA
48032019-06-13 Pedro Alves <palves@redhat.com>
4804
4805 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
4806 (validate_flags_qcs): New.
4807 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
4808 (validate_flags_qcs): Declare.
4809 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
4810 (make_frame_apply_options_def_group): New.
4811 (frame_apply_command_count): Process options with
4812 gdb::option::process_options.
4813 (frame_apply_completer): New.
4814 (frame_apply_level_completer, frame_apply_all_completer)
4815 (frame_apply_completer): New.
4816 (_initialize_stack): Update help of "frame apply", "frame apply
4817 level", "frame apply all" and "faas" to mention supported options
4818 and install command completers.
4819 * stack.h (frame_apply_all_completer): Declare.
4820 * thread.c: Include "stack.h".
4821 (tfaas_command): Add "--".
4822 (_initialize_thread): Update help "tfaas" to mention supported
4823 options and install command completer.
4824
272d4594
PA
48252019-06-13 Pedro Alves <palves@redhat.com>
4826
4827 * completer.c (complete_nested_command_line): New.
4828 (gdb_completion_word_break_characters_throw): Add assertion.
4829 * completer.h (complete_nested_command_line): Declare.
4830
90a1ef87
PA
48312019-06-13 Pedro Alves <palves@redhat.com>
4832
4833 * stack.c (parse_backtrace_qualifiers): New.
4834 (backtrace_command): Use it.
4835 (backtrace_command_completer): Complete on qualifiers.
4836
d4c16835
PA
48372019-06-13 Pedro Alves <palves@redhat.com>
4838
4839 * frame.c: Include "cli/cli-option.h.
4840 (user_set_backtrace_options): New.
4841 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
4842 Delete.
4843 (get_prev_frame): Adjust.
4844 (boolean_option_def, uinteger_option_def)
4845 (set_backtrace_option_defs): New.
4846 (_initialize_frame): Adjust and use
4847 gdb::option::add_setshow_cmds_for_options to install "set
4848 backtrace past-main" and "set backtrace past-entry".
4849 * frame.h: Include "cli/cli-option.h".
4850 (struct frame_print_options): Forward declare.
4851 (print_frame_arguments_all, print_frame_arguments_scalars)
4852 (print_frame_arguments_none): Declare.
4853 (print_entry_values): Delete declaration.
4854 (struct frame_print_options, user_frame_print_options): New.
4855 (struct set_backtrace_options): New.
4856 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
4857 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
4858 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
4859 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
4860 (list_args_or_locals): Add frame_print_options parameter.
4861 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
4862 * python/py-framefilter.c (enumerate_args): Pass down
4863 USER_FRAME_PRINT_OPTIONS.
4864 * stack.c: Include "cli/cli-option.h".
4865 (print_frame_arguments_all, print_frame_arguments_scalars)
4866 (print_frame_arguments_none): Declare.
4867 (print_raw_frame_arguments, print_entry_values): Delete.
4868 (user_frame_print_options): New.
4869 (boolean_option_def, enum_option_def, frame_print_option_defs):
4870 New.
4871 (struct backtrace_cmd_options): New.
4872 (bt_flag_option_def): New.
4873 (backtrace_command_option_defs): New.
4874 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
4875 (print_frame_arg, read_frame_arg, print_frame_args)
4876 (print_frame_info, print_frame): Add frame_print_options parameter
4877 and use it.
4878 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
4879 (backtrace_command_1): Add frame_print_options and
4880 backtrace_cmd_options parameters and use them.
4881 (make_backtrace_options_def_group): New.
4882 (backtrace_command): Process command options with
4883 gdb::option::process_options.
4884 (backtrace_command_completer): New.
4885 (_initialize_stack): Extend "backtrace"'s help to mention
4886 supported options. Install completer for "backtrace".
4887 Install some settings commands with add_setshow_cmds_for_options.
4888
2daf894e
PA
48892019-06-13 Pedro Alves <palves@redhat.com>
4890
4891 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
4892 and that "set/show print raw frame-arguments" are now deprecated.
4893
4894 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
4895 command.
4896 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
4897 * stack.c (_initialize_stack): Install "set/show print
4898 raw-frame-arguments", and deprecate "set/show print raw
4899 frame-arguments".
4900 * valprint.c (_initialize_valprint): Deprecate "set/show print
4901 raw".
4902
e6ed716c
PA
49032019-06-13 Pedro Alves <palves@redhat.com>
4904
4905 * compile/compile.c (struct compile_options): New.
4906 (compile_flag_option_def, compile_command_option_defs)
4907 (make_compile_options_def_group): New.
4908 (compile_file_command): Handle options with
4909 gdb::option::process_options.
4910 (compile_file_command_completer): New function.
4911 (compile_code_command): Handle options with
4912 gdb::option::process_options.
4913 (compile_code_command_completer): New function.
4914 (_initialize_compiler): Install completers for "compile code" and
4915 "compile file". Mention available options in "compile code" and
4916 "compile code"'s help.
4917 * completer.c (advance_to_completion_word): New, factored out from
4918 ...
4919 (advance_to_expression_complete_word_point): ... this.
4920 (advance_to_filename_complete_word_point): New.
4921 * completer.h (advance_to_filename_complete_word_point): New
4922 declaration.
4923
7d8062de
PA
49242019-06-13 Pedro Alves <palves@redhat.com>
4925
4926 * compile/compile.c: Include "cli/cli-option.h".
4927 (compile_print_value): Scope data pointer is now a
4928 value_print_options pointer; adjust.
4929 (compile_print_command): Process options. Scope data pointer is
4930 now a value_print_options pointer; adjust.
4931 (_initialize_compile): Update "compile print"'s help to include
4932 supported options. Install a completer for "compile print".
4933 * cp-valprint.c (show_vtblprint, show_objectprint)
4934 (show_static_field_print): Delete.
4935 (_initialize_cp_valprint): Don't install "set print
4936 static-members", "set print vtbl", "set print object" here.
4937 * printcmd.c: Include "cli/cli-option.h" and
4938 "common/gdb_optional.h".
4939 (print_command_parse_format): Rework to fill in a
4940 value_print_options instead of a format_data.
4941 (print_value): Change parameter type from format_data pointer to
4942 value_print_options reference. Adjust.
4943 (print_command_1): Process options. Adjust to pass down a
4944 value_print_options.
4945 (print_command_completer): New.
4946 (_initialize_printcmd): Install print_command_completer as
4947 handle_brkchars completer for the "print" command. Update
4948 "print"'s help to include supported options.
4949 * valprint.c: Include "cli/cli-option.h".
4950 (show_vtblprint, show_objectprint, show_static_field_print): Moved
4951 here from cp-valprint.c.
4952 (boolean_option_def, uinteger_option_def)
4953 (value_print_option_defs, make_value_print_options_def_group):
4954 New. Use gdb::option::add_setshow_cmds_for_options to install
4955 "set print elements", "set print null-stop", "set print repeats",
4956 "set print pretty", "set print union", "set print array", "set
4957 print address", "set print symbol", "set print array-indexes".
4958 * valprint.h: Include <string> and "cli/cli-option.h".
4959 (make_value_print_options_def_group): Declare.
4960 (print_value): Change parameter type from format_data pointer to
4961 value_print_options reference.
4962 (print_command_completer): Declare.
4963
9d0faba9
PA
49642019-06-13 Pedro Alves <palves@redhat.com>
4965
4966 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
4967 (COMMON_SFILES): Add maint-test-settings.c.
4968 * cli/cli-decode.c (boolean_enums): New global, factored out from
4969 ...
4970 (add_setshow_boolean_cmd): ... here.
4971 * cli/cli-decode.h (boolean_enums): Declare.
4972 * cli/cli-option.c: New file.
4973 * cli/cli-option.h: New file.
4974 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
4975 factored out from ...
4976 (parse_cli_boolean_value(const char *)): ... this.
4977 (is_unlimited_literal): Change parameter type to pointer to
4978 pointer. Adjust and advance ARG pointer.
4979 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
4980 (parse_cli_var_enum): New, factored out from ...
4981 (do_set_command): ... this. Adjust.
4982 * cli/cli-setshow.h (parse_cli_boolean_value)
4983 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
4984 (parse_cli_var_enum): Declare.
4985 * cli/cli-utils.c: Include "cli/cli-option.h".
4986 (get_ulongest): New.
4987 * cli/cli-utils.h (get_ulongest): Declare.
4988 (check_for_argument): New overloads.
4989 * maint-test-options.c: New file.
4990
2c722807
PA
49912019-06-13 Pedro Alves <palves@redhat.com>
4992
4993 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
4994 parse a range if "-" is at the end of the string.
4995
dee7b4c8
PA
49962019-06-13 Pedro Alves <palves@redhat.com>
4997
4998 * cli/cli-setshow.c (parse_auto_binary_operation)
4999 (parse_cli_boolean_value): Don't allow "o".
5000
dca0f6c0
PA
50012019-06-13 Pedro Alves <palves@redhat.com>
5002
5003 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
5004 * NEWS: Mention maint test-settings KIND.
5005 * maint-test-settings.c: New file.
5006
597bf39d
PA
50072019-06-13 Pedro Alves <palves@redhat.com>
5008
5009 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
5010 completer.
5011 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
5012 "set" completers.
5013
48c410fb
PA
50142019-06-13 Pedro Alves <palves@redhat.com>
5015
5016 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
5017 after item.
5018
93bcb043
PA
50192019-06-13 Pedro Alves <palves@redhat.com>
5020
5021 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
5022
cbba3ecd
PA
50232019-06-13 Pedro Alves <palves@redhat.com>
5024
5025 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
5026 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
5027 call.
5028 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
5029 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
5030 calls.
5031 (check_for_argument): Skip spaces after argument.
5032
b9a3f842
PA
50332019-06-13 Pedro Alves <palves@redhat.com>
5034
5035 * thread.c (thread_apply_command): Adjust TID parsing.
5036 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
5037 detected before end of string.
5038 (tid_is_in_list): Error out if LIST is invalid.
5039
3844e605
PA
50402019-06-13 Pedro Alves <palves@redhat.com>
5041
5042 * completer.c (complete_line_internal_1): Rewind completion word
5043 point.
5044 (completion_tracker::advance_custom_word_point_by): Change
5045 parameter type to int.
5046 * completer.h (completion_tracker::advance_custom_word_point_by):
5047 Likewise.
5048
00b56dbe
PA
50492019-06-13 Pedro Alves <palves@redhat.com>
5050
5051 * completer.c (advance_to_completion_word): Handle delimiters.
5052
d106773e
PA
50532019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
5054
5055 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
5056
08f10e02
TT
50572019-06-11 Tom Tromey <tom@tromey.com>
5058
5059 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
5060 (xmalloc_failed): Move to alloc.c.
5061 * alloc.c: New file.
5062 * Makefile.in (COMMON_SFILES): Add alloc.c.
5063
1c7fe951
TT
50642019-06-11 Tom Tromey <tom@tromey.com>
5065
5066 * nat/linux-waitpid.c: Don't include server.h.
5067 (linux_debug): Remove.
5068 (my_waitpid): Update.
5069
89549d7f
TT
50702019-06-11 Tom Tromey <tromey@adacore.com>
5071
5072 * infcall.c (_initialize_infcall): Remove trailing newline from
5073 help.
5074 * user-regs.c (_initialize_user_regs): Remove trailing newline
5075 from help.
5076 * typeprint.c (_initialize_typeprint): Remove trailing newline
5077 from help.
5078 * reverse.c (_initialize_reverse): Remove trailing newlines from
5079 help.
5080 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
5081 from help.
5082 * language.c (add_set_language_command): Remove trailing newline
5083 from help.
5084 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
5085 help.
5086 * disasm.c (_initialize_disasm): Remove trailing newline from
5087 help.
5088 * top.c (init_main): Remove trailing newline from help.
5089 * interps.c (_initialize_interpreter): Remove trailing newline
5090 from help.
5091 * btrace.c (_initialize_btrace): Remove trailing newlines from
5092 help.
5093 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
5094 from help.
5095 * python/python.c (_initialize_python): Remove trailing newline
5096 from help.
5097 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
5098 help.
5099 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
5100 from help. Reformat some text.
5101 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
5102 from help.
5103 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
5104 newline from help.
5105
86108c13
TT
51062019-06-11 Tom Tromey <tromey@adacore.com>
5107
5108 * darwin-nat.c (darwin_decode_exception_message)
5109 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
5110
a7067863
AB
51112019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
5112
5113 * valops.c (value_slice): Check for not allocated or not
5114 associated values.
5115
9ab08412
TV
51162019-06-10 Tom de Vries <tdevries@suse.de>
5117
5118 PR gdb/24618
5119 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
5120 sure an empty slot (defined by a 32-bit zero pair) is recognized as
5121 invalid.
5122
f19e22e9
TV
51232019-06-10 Tom de Vries <tdevries@suse.de>
5124
5125 PR gdb/24611
5126 * linespec.c (linespec_lexer_lex_string): Remove incorrect
5127 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
5128
e99f9db0
TV
51292019-06-10 Tom de Vries <tdevries@suse.de>
5130
5131 PR symtab/24545
5132 * symtab.c (struct demangled_name_entry): Add language field.
5133 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
5134 static minimal symbol". Set and use language field.
5135
9bf7038b
TT
51362019-06-10 Tom Tromey <tromey@adacore.com>
5137
5138 * ada-lang.c (_initialize_ada_language): Update help text.
5139
422186a9
TT
51402019-06-10 Tom Tromey <tromey@adacore.com>
5141
5142 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
5143 with a newline.
5144 * guile/guile.c (handle_boot_error): Don't end warning with a
5145 newline.
5146 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
5147 warning with a newline.
5148 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
5149 newline.
5150 (s12z_frame_cache): Likewise.
5151 * dwarf-index-cache.c (index_cache::store): Don't end warning with
5152 a newline.
5153 * solib-svr4.c (disable_probes_interface): Don't end warning with
5154 a newline.
5155 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
5156 newline.
5157 * python/python.c (do_finish_initialization): Don't end warning
5158 with a newline.
5159
25ce02ee
TT
51602019-06-10 Tom Tromey <tom@tromey.com>
5161
5162 * python/py-breakpoint.c (gdbpy_breakpoint_created)
5163 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
5164 gdbpy_enter.
5165
caa429d8
TT
51662019-06-10 Tom Tromey <tromey@adacore.com>
5167
5168 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
5169 data.
5170 (elf_new_init): Don't call stabsread_new_init.
5171 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
5172 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
5173 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
5174
81873cc8
TV
51752019-06-10 Tom de Vries <tdevries@suse.de>
5176
5177 PR symtab/16264
5178 PR symtab/24517
5179 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
5180
4fa0265e
РИ
51812019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
5182
5183 * source.c (find_and_open_source): Also rewrite relative file
5184 names.
5185
1a3da2cd
AB
51862019-04-26 Amos Bird <amosbird@gmail.com>
5187
5188 * annotate.c (annotate_thread_exited): Add "thread-exited"
5189 annotation.
5190
3847a7bf
TT
51912019-06-06 Tom Tromey <tromey@adacore.com>
5192
5193 * maint.h (class scoped_command_stats): Use
5194 DISABLE_COPY_AND_ASSIGN.
5195 <print_time>: New method.
5196 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
5197 print_time.
5198 (scoped_command_stats::print_time): New method.
5199
312617a3
AB
52002019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5201
5202 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
5203 instructions of lengths 6 or 8 bytes.
5204
b02f78f9
PA
52052019-06-04 Pedro Alves <palves@redhat.com>
5206
5207 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
5208
5209 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
5210 * breakpoint.c (condition_completer): Likewise.
5211 * cli/cli-dump.c (scan_expression): Likewise.
5212 * common/filestuff.c (mkdir_recursive): Likewise.
5213 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
5214 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
5215 (gdb_abspath): Likewise.
5216 * compile/compile-cplus-types.c
5217 (compile_cplus_instance::decl_name): Likewise.
5218 * completer.c (complete_explicit_location):
5219 (signal_completer, reg_or_group_completer_1): Likewise.
5220 * cp-support.c (cp_remove_params_if_any): Likewise.
5221 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
5222 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
5223 * infcmd.c (strip_bg_char): Likewise.
5224 * linespec.c (copy_token_string): Likewise.
5225 * mi/mi-main.c (output_cores): Likewise.
5226 * psymtab.c (psymtab_search_name):
5227 * symfile.c (test_set_ext_lang_command): Likewise.
5228 * target.c (target_fileio_read_stralloc): Likewise.
5229 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
5230 * value.c (complete_internalvar): Likewise.
5231
e1f2e1a2
CB
52322019-06-04 Christian Biesinger <cbiesinger@google.com>
5233
5234 Add objfile property to gdb.Type.
d3238f7d
PA
5235 * NEWS: Mention Python API addition.
5236 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 5237
e664d728
PW
52382019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5239
5240 * NEWS: Mention the new set|show style [title|highlight].
5241 Mention changes to "show style", "help" and "apropos".
5242
66d8c862
PW
52432019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5244
5245 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
5246 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
5247 instead of print_help_for_command.
5248 (print_doc_of_command): New function.
5249 (help_list): Add 'apropos -v word' suggestion.
5250 (print_help_for_command): Style the command name using title style.
5251 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
5252 (_initialize_cli_cmds): Describe -v in apropos_command help.
5253
9303eb2f
PW
52542019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5255
5256 * cli/cli-style.h (cli_style_option): Add name in constructor,
5257 add m_name class member, add constructor with intensity,
5258 add name class function.
5259 (cli_style_option::add_setshow_commands): Remove name argument.
5260 (highlight_style, title_style): New styles.
5261 * cli/cli-style.c (do_show): New function that shows a style
5262 characteristic styling the style name with itself.
5263 (set_style_name): New function.
5264 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
5265 Update all callers according to the changes in cli/cli-style.h.
5266 * utils.h (fputs_highlighted): New function.
5267 * utils.c (fputs_highlighted): Likewise.
5268
e2c52041
PW
52692019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5270
5271 * NEWS: Mention new pipe command and new convenience variables.
5272
947d3946
PW
52732019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5274
5275 * cli/cli-cmds.c (pipe_command): New function.
5276 (_initialize_cli_cmds): Call add_com for pipe_command.
5277 Define | as an alias for pipe.
5278 (exit_status_set_internal_vars): New function.
5279 (shell_escape): Call exit_status_set_internal_vars.
5280 cli/cli-decode.c (find_command_name_length): Recognize | as
5281 a single character command.
5282
b8fd0918
PW
52832019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5284
5285 * gdbcmd.h (execute_command_to_ui_file): New declaration.
5286 top.c (execute_command_to_ui_file): New function, mostly a copy
5287 of execute_command_to_string.
5288 (execute_command_to_string): Implement by calling
5289 execute_command_to_ui_file.
5290
68bb5386
PW
52912019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5292
5293 * top.h (saved_command_line): Remove declaration.
5294 * top.c (previous_saved_command_line, previous_repeat_arguments):
5295 New variables.
5296 (saved_command_line): Make static, define together with other
5297 'repeat variables'.
5298 (dont_repeat): Clear repeat_arguments.
5299 (repeat_previous, get_saved_command_line, save_command_line):
5300 New functions.
5301 (gdb_init): Initialize saved_command_line
5302 and previous_saved_command_line.
5303 * main.c (captured_main_1): Remove saved_command_line initialization.
5304 * event-top.c (handle_line_of_input): Update to use
5305 the new 'repeat' related functions instead of direct access to
5306 saved_command_line.
5307 * command.h (repeat_previous, get_saved_command_line,
5308 save_command_line): New declarations.
5309 (dont_repeat): Add comment.
5310
bfcdb852
TT
53112019-05-30 Tom Tromey <tromey@adacore.com>
5312
5313 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
5314 Fix comment.
5315 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
5316
0ef209f2
JV
53172019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
5318
5319 PR cli/24587
5320 * completer.c (complete): Initialize variable word.
5321
955b06fa
SDJ
53222019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
5323
5324 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
5325 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
5326 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
5327 'body' is NULL to the outter 'if', protecting the '!is_define'
5328 situation as well.
5329
fa9c3fa0
TT
53302019-05-29 Tom Tromey <tromey@adacore.com>
5331
5332 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
5333 (dwarf_unknown): New function.
5334 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
5335 (dwarf_type_encoding_name): Use dwarf_unknown.
5336
4330d61d
TT
53372019-05-29 Tom Tromey <tromey@adacore.com>
5338
5339 PR c++/20020:
5340 * cp-valprint.c (cp_print_value_fields): Call
5341 cp_print_static_field inside "try".
5342
33a6bc35
TT
53432019-05-29 Tom Tromey <tromey@adacore.com>
5344
5345 * inflow.c (struct terminal_info): Add default operator=.
5346 * configure: Rebuild.
5347 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
5348 -Wdeprecated-copy-dtor, -Wredundant-move.
5349
000439d5
TT
53502019-05-29 Tom Tromey <tromey@adacore.com>
5351
5352 * NEWS: Add entry.
5353 * infcmd.c (print_return_value_1): Handle finish_print
5354 option.
5355 (show_print_finish): New function.
5356 (_initialize_infcmd): Add "set/show print finish" commands.
5357 * valprint.c (user_print_options): Initialize new member.
5358 * valprint.h (struct value_print_options) <finish_print>: New
5359 member.
5360
c0e70c62
TT
53612019-05-28 Tom Tromey <tromey@adacore.com>
5362
5363 * ada-lang.c (ada_remove_Xbn_suffix)
5364 (find_old_style_renaming_symbol)
5365 (parse_old_style_renaming): Remove.
5366 (ada_find_renaming_symbol): Don't call
5367 find_old_style_renaming_symbol.
5368 (ada_is_renaming_symbol): Rename from
5369 ada_find_renaming_symbol. Remove "block" parameter. Return
5370 bool. Now static.
5371 (ada_read_var_value): Update and simplify.
5372 * ada-exp.y (write_var_or_type): Remove old code.
5373
766f8836
AH
53742019-05-28 Alan Hayward <alan.hayward@arm.com>
5375
5376 * event-top.c: Remove include comment.
5377 * inflow.c (class scoped_ignore_sigttou): Move from here...
5378 * inflow.h (class scoped_ignore_sigttou): ...to here.
5379 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
5380 * top.c: Remove include comment.
5381
eb41253a
TT
53822019-05-27 Tom Tromey <tom@tromey.com>
5383
5384 * NEWS: Fix typo.
5385
4ca51187
TT
53862019-05-22 Tom Tromey <tromey@adacore.com>
5387
5388 * target.c (target_follow_exec): Constify parameter.
5389 * target-delegates.c: Rebuild.
5390 * remote.c (remote_target::follow_exec): Constify parameter.
5391 * infrun.c (follow_exec): Constify parameter.
5392 * target.h (struct target_ops) <follow_exec>: Constify parameter.
5393 (target_follow_exec): Likewise.
5394
8fca4da0
AH
53952019-05-22 Alan Hayward <alan.hayward@arm.com>
5396
5397 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
5398 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
5399
b7060614
AH
54002019-05-22 Alan Hayward <alan.hayward@arm.com>
5401
5402 * NEWS: Add debugredirect and testsuite sections.
5403
0a5954bd
SC
54042019-05-22 Simon Cook <simon.cook@embecosm.com>
5405
5406 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
5407 target descriptions using exclusively floating point register name
5408 aliases.
5409
dc42e902
AB
54102019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
5411
5412 PR gdb/18644:
5413 * f-lang.c (build_fortran_types): Handle the case where
5414 gdbarch_floatformat_for_type returns a nullptr.
5415
fb7806c7
TV
54162019-05-21 Tom de Vries <tdevries@suse.de>
5417
5418 PR cli/24587
5419 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
5420
34d11c68
AB
54212019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
5422
5423 PR gdb/18644:
5424 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
5425 16-byte floats.
5426 * i386-tdep.c (i386_floatformat_for_type): Use
5427 floatformats_ia64_quad for the 16-byte floating point component
5428 within a fortran 32-byte complex number.
5429
122cf0f2
AB
54302019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
5431
5432 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
5433 delete default constructor.
5434 (find_partial_die): Update to return const struct.
5435 (partial_die_parent_scope): Move variable declaration into scope
5436 of its use and change its type to auto.
5437 (guess_partial_die_structure_name): Likewise.
5438 (partial_die_info::fixup): Likewise.
5439
33d0e35a
TT
54402019-05-17 Tom Tromey <tromey@adacore.com>
5441
5442 * source.c (find_and_open_source): Remove cast.
5443
a45575b0
TT
54442019-05-17 Tom Tromey <tromey@adacore.com>
5445
5446 * annotate.c (annotate_source): Make "filename" const.
5447 * annotate.h (annotate_source): Use const.
5448
81f47ac2
AH
54492019-05-17 Alan Hayward <alan.hayward@arm.com>
5450
5451 * disasm.c (set_disassembler_options): Send errors to stderr.
5452
ca1285d1
AH
54532019-05-17 Alan Hayward <alan.hayward@arm.com>
5454
5455 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
5456 (cli_interp_base::set_logging): Check debug_redirect.
5457 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
5458 * cli/cli-logging.c (debug_redirect): Add static variable.
5459 (pop_output_files): Add default param.
5460 (handle_redirections): Print debug setting.
5461 (show_logging_command): Likewise.
5462 (_initialize_cli_logging): Add debugredirect command.
5463 * interps.c (current_interp_set_logging): Add debug_redirect
5464 parameter.
5465 * interps.h (set_logging): Add debug_redirect parameter.
5466 (current_interp_set_logging): Likewise.
5467 * mi/mi-common.h: Likewise.
5468 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
5469
54702019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
5471 Tom Tromey <tromey@adacore.com>
5472
5473 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
5474 directly.
5475 * cli/cli-interp.h (make_logging_output): Remove declaration.
5476 * cli/cli-logging.c (make_logging_output): Remove function.
5477 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
5478 directly.
5479 * ui-file.c (tee_file::tee_file): Remove bools.
5480 (tee_file::~tee_file): Remove deletes.
5481 * ui-file.h (tee_file): Remove bools.
5482
26648588
JV
54832019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
5484
5485 * mi/mi-cmds.h (mi_cmd_complete): New function.
5486 * mi/mi-main.c (mi_cmd_complete): Likewise.
5487 * mi/mi-cmds.c: Define new MI command -complete.
5488 * NEWS: Mention new -complete command.
5489
6e035501
JV
54902019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
5491
5492 * completer.h (complete): New function.
5493 * completer.c (complete): Likewise.
5494 * cli/cli-cmds.c: (complete_command): Update to use new complete()
5495 function defined in completer.h.
5496
7d0e2ece
JV
54972019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
5498
e79be6e5 5499 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 5500
fb816e8b
TV
55012019-05-17 Tom de Vries <tdevries@suse.de>
5502
5503 PR gdb/24094
5504 * dwarf2read.c (struct cu_partial_die_info): New struct.
5505 (find_partial_die): Return cu_partial_die_info.
5506 (partial_die_parent_scope, guess_partial_die_structure_name)
5507 (partial_die_info::fixup): Handle new return type of find_partial_die.
5508
677052f2
SDJ
55092019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5510
5511 * stap-probe.c (stap_parse_register_operand): Make "regname" an
5512 "std::string", simplifying the algorithm.
5513
f3da9116
SDJ
55142019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5515
5516 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
5517 (stap_static_probe_ops::get_probes): Likewise.
5518
f1bb75ab
SDJ
55192019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5520
5521 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
5522 '-')" and "else if".
5523 (stap_parse_single_operand): Join checks for
5524 "gdbarch_stap_parse_special_token_p" and
5525 "gdbarch_stap_parse_special_token" in the same "if" statement.
5526 Invert check when verifying for operation on register
5527 displacement.
5528
3ca58cde
SDJ
55292019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5530
5531 * stap-probe.c (stap_get_opcode): Update comment.
5532 (stap_get_expected_argument_type): Likewise.
5533 (handle_stap_probe): Likewise.
5534
af2d9bee
SDJ
55352019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5536
5537 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
5538 return type to 'bool'. Adjust comment. Use 'bool' when
5539 appropriate.
5540 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5541 * stap-probe.c (stap_parse_argument_1): Likewise.
5542 (stap_is_operator): Likewise.
5543 (stap_is_generic_prefix): Likewise.
5544 (stap_is_register_prefix): Likewise.
5545 (stap_is_register_indirection_prefix): Likewise.
5546 (stap_is_integer_prefix): Likewise.
5547 (stap_generic_check_suffix): Likewise.
5548 (stap_check_integer_suffix): Likewise.
5549 (stap_check_register_suffix): Likewise.
5550 (stap_check_register_indirection_suffix): Likewise.
5551 (stap_parse_register_operand): Likewise.
5552 (stap_parse_single_operand): Likewise.
5553 (stap_parse_argument_1): Likewise.
5554 (stap_probe::get_argument_count): Likewise.
5555 (stap_is_operator): Likewise.
5556
61c9c421
TT
55572019-05-16 Tom Tromey <tromey@adacore.com>
5558
5559 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
5560 keyword to foreach.
5561
9ddc1af1
SM
55622019-05-15 Simon Marchi <simon.marchi@efficios.com>
5563
5564 * linux-thread-db.c (try_thread_db_load_1): Change return type
5565 to bool.
5566 (try_thread_db_load): Likewise.
5567 (try_thread_db_load_from_pdir_1): Likewise.
5568 (try_thread_db_load_from_pdir): Likewise.
5569 (try_thread_db_load_from_sdir): Likewise.
5570 (try_thread_db_load_from_dir): Likewise.
5571 (thread_db_load_search): Likewise.
5572 (has_libpthread): Likewise.
5573 (thread_db_load): Likewise.
5574
7bede828
SDJ
55752019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
5576
5577 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
5578 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
5579 NULL, and complain/return if that's the case.
5580
c5358db4
JD
55812019-05-15 John Darrington <john@darrington.wattle.id.au>
5582
5583 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
5584 (advance, posn, abstract_read_memory): New functions.
5585 [struct mem_read_abstraction]: New struct.
5586 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
5587
c408a94f
TT
55882019-05-14 Tom Tromey <tromey@adacore.com>
5589
5590 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
5591 value is not lval_memory.
5592
e7bd7fba
TT
55932019-05-14 Tom Tromey <tromey@adacore.com>
5594
5595 * solib.c (info_sharedlibrary_command): Style the file name.
5596
a6d0f249
AH
55972019-05-14 Alan Hayward <alan.hayward@arm.com>
5598
5599 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
5600 (aarch64_vnv_type): Likewise.
5601 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
5602 * common/tdesc.c: Likewise.
5603 * common/tdesc.h (enum tdesc_type_kind): Likewise.
5604 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
5605 * features/aarch64-fpu.xml: Add ieee half view.
5606 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
5607 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
5608 * gdbtypes.h (struct builtin_type): Likewise.
5609 (struct objfile_type): Likewise.
5610
66b8bb74
SM
56112019-05-12 Paul Naert <paul.naert@polymtl.ca>
5612
5613 * language.c (language_sniff_from_mangled_name): Fix "langauge"
5614 typo.
5615 * location.h (string_to_event_location): Likewise.
5616
21c219fd
JB
56172019-05-11 Joel Brobecker <brobecker@adacore.com>
5618
5619 GDB 8.3 released.
5620
13674803
SM
56212019-05-10 Simon Marchi <simon.marchi@efficios.com>
5622
5623 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
5624 New variable declaration.
5625 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
5626 New variable.
5627 (print_one_breakpoint): Use ui_out::test_flags and new global
5628 variable to compute use_fixed_output.
5629 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
5630 Remove.
5631 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
5632 (mi_multi_location_breakpoint_output_fixed): Remove.
5633 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
5634 new variable.
5635 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
5636 fix_multi_location_breakpoint_output flag if version >= 3.
5637 * ui-out.h (enum ui_out_flag)
5638 <fix_multi_location_breakpoint_output>: New enumerator.
5639
a9eac7f9
SM
56402019-05-10 Simon Marchi <simon.marchi@efficios.com>
5641
5642 * contrib/cc-with-tweaks.sh: Validate dwz's work.
5643
71bed2db
TT
56442019-05-10 Tom Tromey <tromey@adacore.com>
5645
5646 * ada-lang.c (catch_ada_completer): New function.
5647 (_initialize_ada_language): Use it.
5648
24c54127
TT
56492019-05-10 Tom Tromey <tromey@adacore.com>
5650
5651 * thread.c (print_thread_info): Make "requested_threads" const.
5652 * gdbthread.h (print_thread_info): Make "requested_threads"
5653 const.
5654 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
5655 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
5656
7a102139
TT
56572019-05-08 Tom Tromey <tom@tromey.com>
5658
5659 * gdbtypes.c (objfile_type_data): Change type.
5660 (objfile_type, _initialize_gdbtypes): Update.
5661
924d79e2
TT
56622019-05-08 Tom Tromey <tom@tromey.com>
5663
5664 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
5665 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
5666 (_initialize_dwarf2_frame): Update.
5667
4c58e337
TT
56682019-05-08 Tom Tromey <tom@tromey.com>
5669
5670 * objc-lang.c (objc_objfile_data): Change type.
5671 (find_methods): Update.
5672 (_initialize_objc_lang): Remove.
5673
d772d2ab
TT
56742019-05-08 Tom Tromey <tom@tromey.com>
5675
5676 * stabsread.c (rs6000_builtin_type_data): Change type.
5677 (rs6000_builtin_type, _initialize_stabsread): Update.
5678
d11d83f4
TT
56792019-05-08 Tom Tromey <tom@tromey.com>
5680
5681 * mips-tdep.c (mips_pdr_data): Remove.
5682 (_initialize_mips_tdep): Update.
5683
9a73f0ad
TT
56842019-05-08 Tom Tromey <tom@tromey.com>
5685
5686 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
5687 (hppa_init_objfile_priv_data, read_unwind_info)
5688 (find_unwind_entry, _initialize_hppa_tdep): Update.
5689
8127a2fa
TT
56902019-05-08 Tom Tromey <tom@tromey.com>
5691
5692 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
5693 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
5694 on obstack.
5695 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
5696
91d3055d
TT
56972019-05-08 Tom Tromey <tom@tromey.com>
5698
5699 * mdebugread.c (basic_type_data): Change type.
5700 (basic_type, _initialize_mdebugread): Update.
5701
31930bd3
TT
57022019-05-08 Tom Tromey <tom@tromey.com>
5703
5704 * common/gdb_unique_ptr.h (struct noop_deleter): New.
5705
bdb3ed9e
TT
57062019-05-08 Tom Tromey <tom@tromey.com>
5707
5708 * nto-tdep.c (nto_inferior_data_reg): Change type.
5709 (nto_inferior_data): Update.
5710 (nto_inferior_data_cleanup, nto_new_inferior_data)
5711 (_initialize_nto_tdep): Remove.
5712 * nto-tdep.h (struct nto_inferior_data): Add initializers.
5713
f37b313d
TT
57142019-05-08 Tom Tromey <tom@tromey.com>
5715
5716 * ada-lang.c (struct ada_inferior_data): Add initializers.
5717 (ada_inferior_data): Change type.
5718 (ada_inferior_data_cleanup): Remove.
5719 (get_ada_inferior_data, ada_inferior_exit)
5720 (struct ada_pspace_data): Add initializers, destructor.
5721 (ada_pspace_data_handle): Change type.
5722 (get_ada_pspace_data): Update.
5723 (ada_pspace_data_cleanup): Remove.
5724
24699405
TT
57252019-05-08 Tom Tromey <tom@tromey.com>
5726
5727 * coffread.c (struct coff_symfile_info): Add initializers.
5728 (coff_objfile_data_key): Move lower. Change type.
5729 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
5730 Update.
5731 (coff_free_info): Remove.
5732
d4e05d2f
TT
57332019-05-08 Tom Tromey <tom@tromey.com>
5734
5735 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
5736 (fbsd_pspace_data_handle): Move lower. Change type.
5737 (get_fbsd_pspace_data): Update.
5738 (fbsd_pspace_data_cleanup): Remove.
5739 (_initialize_fbsd_tdep): Update.
5740
14ef6690
TT
57412019-05-08 Tom Tromey <tom@tromey.com>
5742
5743 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
5744 (get_ada_tasks_pspace_data): Update.
5745 (ada_tasks_pspace_data_cleanup): Remove.
5746 (_initialize_tasks): Update.
5747 (ada_tasks_inferior_data_handle): Change type.
5748 (get_ada_tasks_inferior_data): Update.
5749 (ada_tasks_inferior_data_cleanup): Remove.
5750 (struct ada_tasks_pspace_data): Add initializers.
5751
814cf43a
TT
57522019-05-08 Tom Tromey <tom@tromey.com>
5753
5754 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
5755 * symfile-debug.c (debug_sym_get_probes): Change type.
5756 * stap-probe.c (handle_stap_probe):
5757 (stap_static_probe_ops::get_probes): Change type.
5758 * probe.h (class static_probe_ops) <get_probes>: Change type.
5759 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
5760 (parse_probes_in_pspace): Update.
5761 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
5762 Update.
5763 (any_static_probe_ops::get_probes): Change type.
5764 * elfread.c (elfread_data): New typedef.
5765 (probe_key): Change type.
5766 (elf_get_probes): Likewise. Update.
5767 (probe_key_free): Remove.
5768 (_initialize_elfread): Update.
5769 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
5770 Change type.
5771 (dtrace_process_dof_probe, dtrace_process_dof)
5772 (dtrace_static_probe_ops::get_probe): Change type.
5773
02dc647e
TT
57742019-05-08 Tom Tromey <tom@tromey.com>
5775
5776 * xcoffread.c (struct xcoff_symfile_info): Rename from
5777 coff_symfile_info. Add initializers.
5778 (xcoff_objfile_data_key): Move lower. Change type.
5779 (XCOFF_DATA): Rewrite.
5780 (xcoff_free_info): Remove.
5781 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
5782 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
5783 (xcoff_initial_scan): Update.
5784
09232438
TT
57852019-05-08 Tom Tromey <tom@tromey.com>
5786
5787 * solib-svr4.c (struct svr4_info): Add initializers and
5788 destructor.
5789 <probes_table>: Now an htab_up.
5790 (solib_svr4_pspace_data): Change type.
5791 (free_probes_table): Simplify.
5792 (~svr4_info): Rename from svr4_pspace_data_cleanup.
5793 (get_svr4_info, probes_table_htab_remove_objfile_probes)
5794 (probes_table_remove_objfile_probes, register_solib_event_probe)
5795 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
5796 (_initialize_svr4_solib): Update.
5797
7b4a314f
TT
57982019-05-08 Tom Tromey <tom@tromey.com>
5799
5800 * remote.c (remote_pspace_data): Change type.
5801 (remote_pspace_data_cleanup): Remove.
5802 (get_remote_exec_file, set_pspace_remote_exec_file)
5803 (_initialize_remote): Update.
5804
51d3063a
TT
58052019-05-08 Tom Tromey <tom@tromey.com>
5806
5807 * breakpoint.c (breakpoint_objfile_key): Change type.
5808 (get_breakpoint_objfile_data): Update.
5809 (free_breakpoint_objfile_data): Remove.
5810 (_initialize_breakpoint): Update.
5811
89fb8848
TT
58122019-05-08 Tom Tromey <tom@tromey.com>
5813
5814 * linux-tdep.c (struct linux_info): Add initializers.
5815 (linux_inferior_data): Move. Change type.
5816 (invalidate_linux_cache_inf): Update.
5817 (linux_inferior_data_cleanup): Remove.
5818 (get_linux_inferior_data, _initialize_linux_tdep): Update.
5819
e9b89e2d
TT
58202019-05-08 Tom Tromey <tom@tromey.com>
5821
5822 * auxv.c (auxv_inferior_data): Move. Change type.
5823 (auxv_inferior_data_cleanup): Remove.
5824 (invalidate_auxv_cache_inf): Rewrite.
5825 (get_auxv_inferior_data, _initialize_auxv): Update.
5826
8c42777c
TT
58272019-05-08 Tom Tromey <tom@tromey.com>
5828
5829 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
5830 (symfile_debug_objfile_data_key): Change type.
5831 (symfile_debug_installed, debug_qf_has_symbols)
5832 (debug_qf_find_last_source_symtab)
5833 (debug_qf_forget_cached_source_info)
5834 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
5835 (debug_qf_print_stats, debug_qf_dump)
5836 (debug_qf_expand_symtabs_for_function)
5837 (debug_qf_expand_all_symtabs)
5838 (debug_qf_expand_symtabs_with_fullname)
5839 (debug_qf_map_matching_symbols)
5840 (debug_qf_expand_symtabs_matching)
5841 (debug_qf_find_pc_sect_compunit_symtab)
5842 (debug_qf_map_symbol_filenames)
5843 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
5844 (debug_sym_new_init, debug_sym_init, debug_sym_read)
5845 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
5846 (debug_sym_read_linetable, debug_sym_relocate): Update.
5847 (symfile_debug_free_objfile): Remove.
5848 (install_symfile_debug_logging, _initialize_symfile_debug):
5849 Update.
5850
5bfd760d
TT
58512019-05-08 Tom Tromey <tom@tromey.com>
5852
5853 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
5854 allocate_on_obstack.
5855 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
5856 (get_dwarf2_per_objfile): Update.
5857 (set_dwarf2_per_objfile): Remove.
5858 (dwarf2_has_info, dwarf2_get_section_info): Update.
5859 (dwarf2_free_objfile): Remove.
5860 (_initialize_dwarf2_read): Update.
5861
e85e19b4
TT
58622019-05-08 Tom Tromey <tom@tromey.com>
5863
5864 * auto-load.c (struct auto_load_pspace_info): Add destructor and
5865 initializers.
5866 <unsupported_script_warning_printed,
5867 script_not_found_warning_printed>: Now bool.
5868 (auto_load_pspace_data): Change type.
5869 (~auto_load_pspace_info): Rename from
5870 auto_load_pspace_data_cleanup.
5871 (get_auto_load_pspace_data, init_loaded_scripts_info)
5872 (clear_section_scripts, maybe_print_unsupported_script_warning)
5873 (maybe_print_script_not_found_warning, _initialize_auto_load):
5874 Update.
5875
f6aa7436
TT
58762019-05-08 Tom Tromey <tom@tromey.com>
5877
5878 * objfiles.c (objfile_pspace_info): Add destructor and
5879 initializers.
5880 (objfiles_pspace_data): Change type.
5881 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
5882 (get_objfile_pspace_data): Update.
5883 (objfiles_bfd_data): Change type.
5884 (get_objfile_bfd_data): Update.
5885 (objfile_bfd_data_free, _initialize_objfiles): Remove.
5886
6ae614f6
TT
58872019-05-08 Tom Tromey <tom@tromey.com>
5888
5889 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
5890 Change type.
5891 (get_catch_syscall_inferior_data): Update.
5892 (catch_syscall_inferior_data_cleanup): Remove.
5893 (_initialize_break_catch_syscall): Update.
5894
6509b8eb
TT
58952019-05-08 Tom Tromey <tom@tromey.com>
5896
5897 * inflow.c (struct terminal_info): Add destructor and
5898 initializers.
5899 (inflow_inferior_data): Change type.
5900 (~terminal_info): Rename from inflow_inferior_data_cleanup.
5901 (get_inflow_inferior_data, inflow_inferior_exit)
5902 (swap_terminal_info, _initialize_inflow): Update.
5903
35632941
TT
59042019-05-08 Tom Tromey <tom@tromey.com>
5905
5906 * target-dcache.c (target_dcache_cleanup): Remove.
5907 (target_dcache_aspace_key): Change type.
5908 (target_dcache_init_p, target_dcache_invalidate)
5909 (target_dcache_get, target_dcache_get_or_init)
5910 (_initialize_target_dcache): Update.
5911 * dcache.h (struct dcache_deleter): New.
5912
3017b94d
TT
59132019-05-08 Tom Tromey <tom@tromey.com>
5914
5915 * symtab.c (struct symbol_cache): Add destructor and
5916 initializers.
5917 (symbol_cache_key): Move. Change type.
5918 (make_symbol_cache, free_symbol_cache): Remove.
5919 (get_symbol_cache): Update.
5920 (symbol_cache_cleanup): Remove.
5921 (ALL_PSPACES, symbol_cache_flush)
5922 (maintenance_print_symbol_cache)
5923 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
5924 Update.
5925
a32ad8c5
TT
59262019-05-08 Tom Tromey <tom@tromey.com>
5927
5928 * symtab.c (struct main_info): Add destructor and initializers.
5929 (main_progspace_key): Move. Change type.
5930 (get_main_info): Update.
5931 (main_info_cleanup): Remove.
5932 (_initialize_symtab): Update.
5933
5f6e90a0
TT
59342019-05-08 Tom Tromey <tom@tromey.com>
5935
5936 * registry.h (DECLARE_REGISTRY): Define the _key class.
5937
1bd0c6e4
AB
59382019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5939
5940 * NEWS: Merge two 'New commands' sections.
5941
2228ef77
XR
59422019-05-08 Joel Brobecker <brobecker@adacore.com>
5943
5944 * ada-valprint.c (ada_val_print_gnat_array): Remove language
5945 parameter and use Ada language definition instead.
5946 (ada_val_print_ptr): Remove unused language parameter.
5947 (ada_val_print_num): Remove language parameter and use Ada language
5948 definition instead.
5949 (ada_val_print_enum, ada_val_print_flt): Remove unused language
5950 parameter.
5951 (ada_val_print_struct_union, ada_val_print_ref): Remove language
5952 parameter and use Ada language definition instead.
5953 (ada_val_print_1): Update all ada_val_print_xxx calls.
5954 Remove language parameter.
5955 (ada_val_print): Update ada_val_print_1 call.
5956
60fcc1c3
TT
59572019-05-08 Tom Tromey <tromey@adacore.com>
5958
5959 * remote.c (remote_hw_watchpoint_limit)
5960 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
5961 Now static.
5962
ed2b7c17
TT
59632019-05-08 Tom Tromey <tromey@adacore.com>
5964
5965 * maint.c (_initialize_maint_cmds): Move initialization code to
5966 remote.c.
5967 (watchdog, show_watchdog): Move to remote.c.
5968 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
5969 "watchdog" static.
5970 (_initialize_remote): Move initialization code from maint.c.
5971 * defs.h (watchdog): Don't declare.
5972
b0be6c91
TT
59732019-05-08 Tom Tromey <tromey@adacore.com>
5974
5975 * tui/tui-interp.c: Include main.h.
5976 * interps.c: Include main.h.
5977 * main.h (interpreter_p): Declare.
5978 * defs.h (interpreter_p): Don't declare.
5979
587ee17b
TT
59802019-05-08 Tom Tromey <tromey@adacore.com>
5981
5982 * dwarf2loc.c: Include dwarf2read.h.
5983 * defs.h (read_unsigned_leb128): Don't declare.
5984 * dwarf2read.h (read_unsigned_leb128): Declare.
5985
ca1df239
TT
59862019-05-08 Tom Tromey <tromey@adacore.com>
5987
5988 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
5989 method.
5990
99f20f08
TT
59912019-05-08 Tom Tromey <tromey@adacore.com>
5992
5993 * utils.c (fputs_maybe_filtered): Reset style after paging, even
5994 when no wrap column is set.
5995
80e55b13
TT
59962019-05-08 Tom Tromey <tromey@adacore.com>
5997
5998 * c-lang.c (c_get_string): Handle non-C-style arrays.
5999
9d3421af
TT
60002019-05-08 Tom Tromey <tromey@adacore.com>
6001
6002 * typeprint.c (print_offset_data::update): Print the bit offset,
6003 not the number of bits remaining.
6004
844333e2
TT
60052019-05-08 Tom Tromey <tromey@adacore.com>
6006
6007 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
6008 padding at end of comment.
6009
988915ee
TT
60102019-05-08 Tom Tromey <tromey@adacore.com>
6011
6012 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
6013 Compare main types.
6014
26bfd823
TT
60152019-05-06 Tom Tromey <tom@tromey.com>
6016
6017 * common/scoped_mmap.c: Include common-defs.h.
6018 * common/scoped_mmap.h: Don't include config.h.
6019
89055eaa
TT
60202019-05-04 Tom Tromey <tom@tromey.com>
6021
6022 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
6023 (struct aarch64_call_info): Add initializers.
6024 <si>: Now a std::vector.
6025 (pass_on_stack, aarch64_push_dummy_call): Update.
6026
5da01df5
TT
60272019-05-04 Simon Marchi <simon.marchi@efficios.com>
6028 Tom Tromey <tom@tromey.com>
6029
6030 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
6031 (ppc_threads): Now a std::vector. Now static.
6032 (hwdebug_find_thread_points_by_tid)
6033 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
6034 Update.
6035
fbdf05a1
TT
60362019-05-04 Tom Tromey <tom@tromey.com>
6037
6038 * arc-tdep.c (arc_tdesc_init): Return bool.
6039
06d16ec9
TT
60402019-05-04 Tom Tromey <tom@tromey.com>
6041
6042 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
6043 Use gdb_assert_not_reached.
6044
9c056022
TT
60452019-05-04 Tom Tromey <tom@tromey.com>
6046
6047 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
6048 "false".
6049
fa9c2a59
TT
60502019-05-04 Tom Tromey <tom@tromey.com>
6051
6052 * arc-tdep.c (arc_tdesc_init): Use bool.
6053
e2eb806a
TT
60542019-05-04 Tom Tromey <tom@tromey.com>
6055
6056 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
6057
6fe87677
TT
60582019-05-04 Tom Tromey <tom@tromey.com>
6059
6060 * cli/cli-cmds.c (valid_command_p): Return bool.
6061
7f008c9e
TT
60622019-05-04 Tom Tromey <tom@tromey.com>
6063
6064 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
6065 * command.h (valid_user_defined_cmd_name_p): Channge return type.
6066
b6484282
RT
60672019-05-04 Raul Tambre <raul@tambre.ee>
6068
6069 * python/lib/gdb/prompt.py (_ExtendedPrompt)
6070 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
6071 operator for comparison.
6072
af97b416
TT
60732019-05-04 Tom Tromey <tom@tromey.com>
6074
6075 * psymtab.c (psymbol_name_matches, match_partial_symbol)
6076 (lookup_partial_symbol, print_partial_symbols)
6077 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
6078 (psymbol_compare): Update.
6079 (add_psymbol_to_bcache): Clear the entire psymbol.
6080 (maintenance_check_psymtabs): Update.
6081 * psympriv.h (struct partial_symbol): Don't derive from
6082 general_symbol_info.
6083 <obj_section, unrelocated_address, address,
6084 set_unrelocated_address>: Update.
6085 <ginfo>: New member.
6086 * dwarf-index-write.c (write_psymbols, debug_names::insert)
6087 (debug_names::write_psymbols): Update.
6088
9d6d4be8
TV
60892019-05-04 Tom de Vries <tdevries@suse.de>
6090
6091 * contrib/cc-with-tweaks.sh: Support -n arg.
6092
66452beb
PW
60932019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6094
6095 * corelow.c (core_target::detach): Ensure frame cache and
6096 register caches are cleared.
6097 inferior.c (exit_inferior_1): Likewise.
6098
bde09ab7
TT
60992019-05-03 Sandra Loosemore <sandra@codesourcery.com>
6100 Tom Tromey <tom@tromey.com>
6101
6102 * dictionary.c (collate_pending_symbols_by_language): Remove
6103 "struct" from foreach.
6104 * symtab.c (lookup_global_symbol_from_objfile)
6105 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
6106 foreach.
6107 * ser-tcp.c (net_open): Remove "struct" from foreach.
6108 * objfiles.c (objfile_relocate, objfile_rebase)
6109 (objfile_has_symbols): Remove "struct" from foreach.
6110 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
6111 from foreach.
6112 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
6113 foreach.
6114 * darwin-nat.c (thread_info_from_private_thread_info): Remove
6115 "struct" from foreach.
6116 * ada-lang.c (create_excep_cond_exprs)
6117 (ada_exception_catchpoint_cond_string): Remove "struct" from
6118 foreach.
6119
222a8d25
TT
61202019-05-03 Tom Tromey <tromey@adacore.com>
6121
6122 * ada-exp.y (convert_char_literal): Check suffix of each
6123 enumerator.
6124
fcd60b84
DP
61252019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
6126
6127 PR ada/21406:
6128 * ada-exp.y (yywrap): Don't define.
6129 * ada-lex.l (%option): Add noyywrap
6130 (yywrap): Remove.
6131
5f2459c2
EZ
61322019-05-03 Eli Zaretskii <eliz@gnu.org>
6133
353ea2d1
EZ
6134 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
6135 _WIN32_WINNT to the XP level, unless already defined to a higher
6136 level.
6137
6138 * unittests/parse-connection-spec-selftests.c:
6139 * ser-tcp.c:
6140 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
6141 override.
6142
5f2459c2
EZ
6143 * symfile.c (find_separate_debug_file): Remove colon from the
6144 drive spec of DOS/Windows file names of the target, so that the
6145 file name produced from DEBUGDIR and the target's directory will
6146 be valid on DOS/Windows systems.
6147
80062eb9
AB
61482019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
6149
6150 * rust-lang.c (val_print_struct): Handle printing structures
6151 containing strings.
6152
b8c05e85
TT
61532019-05-02 Tom Tromey <tromey@adacore.com>
6154
6155 * valarith.c (_initialize_valarith): Remove.
6156
4504bbde
TT
61572019-05-01 Tom Tromey <tromey@adacore.com>
6158
6159 * ada-lang.c (ada_value_primitive_field): Treat more fields as
6160 bitfields.
6161
d48e62f4
TT
61622019-05-01 Tom Tromey <tromey@adacore.com>
6163
6164 * ada-lang.c (ada_value_assign): Correctly compute starting offset
6165 for big-endian copies.
6166
15f18d14
AT
61672019-04-30 Ali Tamur <tamur@google.com>
6168 * gdb/dwarf2read.c (read_3_bytes): New declaration.
6169 (read_attribute_value): Added DW_FORM_strx1-4 cases.
6170 (read_3_bytes): New function.
6171
ab4ee614
JB
61722019-04-30 Joel Brobecker <brobecker@adacore.com>
6173
6174 * windows-nat.c (main_thread_id): Delete.
6175 (handle_output_debug_string): Replace main_thread_id by
6176 current_event.dwThreadId.
6177 (fake_create_process): Likewise.
6178 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
6179 Do not set main_thread_id.
6180 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
6181 current_event.dwThreadId.
6182 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
6183
8ed5b76e
JB
61842019-04-30 Joel Brobecker <brobecker@adacore.com>
6185
6186 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
6187 Use current_event.dwThreadId instead of main_thread_id.
6188
2ff0a947
TT
61892019-04-30 Tom Tromey <tromey@adacore.com>
6190
6191 * ada-lang.c (ada_lookup_simple_minsyms): New function.
6192 (create_excep_cond_exprs): Iterate over program spaces.
6193 (ada_exception_catchpoint_cond_string): Examine all minimal
6194 symbols for exception types.
6195
a776957c
TT
61962019-04-30 Tom Tromey <tromey@adacore.com>
6197
6198 PR c++/24470:
6199 * dwarf2read.c (process_structure_scope): Handle case where type
6200 has template parameters but no symbol was created.
6201
bc68014d
AB
62022019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6203 Chris January <chris.january@arm.com>
6204
6205 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
6206 qualifier.
6207 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
6208
f1fdc960
AB
62092019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6210
6211 * f-typeprint.c (f_print_type): Update rules for printing
6212 whitespace.
6213 (f_type_print_varspec_suffix): Likewise.
6214
bf7a4de1
AB
62152019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6216 Chris January <chris.january@arm.com>
6217
6218 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
6219 function arguments.
6220
bbe75b9d
AB
62212019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6222
6223 * f-lang.c (build_fortran_types): Change name of void type to
6224 lower case.
6225 * f-typeprint.c (f_type_print_base): Print the name of the void
6226 type, rather than a fixed string.
6227 * f-valprint.c (f_decorations): Use lower case void string.
6228
1db455a7
AB
62292019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6230 Chris January <chris.january@arm.com>
6231
6232 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
6233 types for Fortran.
6234
b6d03bb2
AB
62352019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6236 Chris January <chris.january@arm.com>
6237 David Lecomber <david.lecomber@arm.com>
6238
6239 * f-exp.y (BINOP_INTRINSIC): New token.
6240 (exp): New parser rule handling BINOP_INTRINSIC.
6241 (f77_keywords): Add new builtin procedures.
6242 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
6243 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6244 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
6245 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6246 (print_unop_subexp_f): New function.
6247 (print_binop_subexp_f): New function.
6248 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6249 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6250 (dump_subexp_body_f): Likewise.
6251 (operator_check_f): Likewise.
6252 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6253 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
6254
83228e93
AB
62552019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6256
6257 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
6258 UNOP_KIND.
6259 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
6260 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
6261 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
6262 (operator_length_f): New fuction.
6263 (print_subexp_f): New function.
6264 (op_name_f): New function.
6265 (dump_subexp_body_f): New function.
6266 (operator_check_f): New function.
6267 (exp_descriptor_f): Replace standard expression handling functions
6268 with new functions.
6269 * gdb/fortran-operator.def: New file.
6270 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
6271 * gdb/std-operator.def: Remove UNOP_KIND.
6272
6fdcd7cc
AB
62732019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6274
6275 * std-operator.def: Remove unbalanced, stray double quote
6276 character.
6277
2e62ab40
AB
62782019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6279 Chris January <chris.january@arm.com>
6280 Daniel Everett <daniel.everett@arm.com>
6281 Nick Forrington <nick.forrington@arm.com>
6282 Richard Bunt <richard.bunt@arm.com>
6283
6284 * cp-valprint.c (cp_print_value_fields): Allow an additional level
6285 of depth when printing anonymous structs or unions.
6286 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
6287 Don't print either the top-level value, or the children if the
6288 max-depth is exceeded.
6289 (ppscm_print_children): When printing the key of a map, allow one
6290 extra level of depth.
6291 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
6292 print either the top-level value, or the children if the max-depth
6293 is exceeded.
6294 (print_children): When printing the key of a map, allow one extra
6295 level of depth.
6296 * python/py-value.c (valpy_format_string): Add max_depth keyword.
6297 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
6298 (user_print_options): Initialise max_depth field.
6299 (val_print_scalar_or_string_type_p): New function.
6300 (val_print): Check to see if the max depth has been reached.
6301 (val_print_check_max_depth): Define new function.
6302 (show_print_max_depth): New function.
6303 (_initialize_valprint): Add 'print max-depth' option.
6304 * valprint.h (struct value_print_options) <max_depth>: New field.
6305 (val_print_check_max_depth): Declare new function.
6306 * NEWS: Document new feature.
6307
4be290b2
AB
63082019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6309
6310 * ada-lang.c (ada_language_defn): Initialise new field.
6311 * c-lang.c (c_is_string_type_p): New function.
6312 (c_language_defn): Initialise new field.
6313 (cplus_language_defn): Initialise new field.
6314 (asm_language_defn): Initialise new field.
6315 (minimal_language_defn): Initialise new field.
6316 * c-lang.h (c_is_string_type_p): Declare new function.
6317 * d-lang.c (d_language_defn): Initialise new field.
6318 * f-lang.c (f_is_string_type_p): New function.
6319 (f_language_defn): Initialise new field.
6320 * go-lang.c (go_is_string_type_p): New function.
6321 (go_language_defn): Initialise new field.
6322 * language.c (default_is_string_type_p): New function.
6323 (unknown_language_defn): Initialise new field.
6324 (auto_language_defn): Initialise new field.
6325 * language.h (struct language_defn) <la_is_string_type_p>: New
6326 member variable.
6327 (default_is_string_type_p): Declare new function.
6328 * m2-lang.c (m2_language_defn): Initialise new field.
6329 * objc-lang.c (objc_language_defn): Initialise new field.
6330 * opencl-lang.c (opencl_language_defn): Initialise new field.
6331 * p-lang.c (pascal_is_string_type_p): New function.
6332 (pascal_language_defn): Initialise new field.
6333 * rust-lang.c (rust_is_string_type_p): New function.
6334 (rust_language_defn): Initialise new field.
6335
721b08c6
AB
63362019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6337
6338 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
6339 New field.
6340 * ada-lang.c (ada_language_defn): Initialise new field.
6341 * c-lang.c (c_language_defn): Likewise.
6342 (cplus_language_defn): Likewise.
6343 (asm_language_defn): Likewise.
6344 (minimal_language_defn): Likewise.
6345 * d-lang.c (d_language_defn): Likewise.
6346 * f-lang.c (f_language_defn): Likewise.
6347 * go-lang.c (go_language_defn): Likewise.
6348 * language.c (unknown_language_defn): Likewise.
6349 (auto_language_defn): Likewise.
6350 * m2-lang.c (m2_language_defn): Likewise.
6351 * objc-lang.c (objc_language_defn): Likewise.
6352 * opencl-lang.c (opencl_language_defn): Likewise.
6353 * p-lang.c (pascal_language_defn): Likewise.
6354 * rust-lang.c (rust_language_defn): Likewise.
6355
fc913e53
AB
63562019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6357
6358 * ada-lang.c (ada_is_character_type): Change return type to bool.
6359 (ada_is_string_type): Likewise.
6360 * ada-lang.h (ada_is_character_type): Update declaration
6361 (ada_is_string_type): Likewise.
6362
fa731fa0
PW
63632019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6364
6365 Support style in 'frame|thread apply'
6366
6367 * gdbcmd.h (execute_command_to_string): New term_out parameter.
6368 * record.c (record_start, record_stop): Update callers of
6369 execute_command_to_string with false.
6370 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
6371 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
6372 methods.
6373 (class string_file): New constructor with term_out parameter.
6374 Override methods term_out and can_emit_style_escape. New member
6375 term_out.
6376 (class stdio_file): Override can_emit_style_escape.
6377 (class tee_file): Override term_out and can_emit_style_escape.
6378 * utils.h (can_emit_style_escape): Remove.
6379 * utils.c (can_emit_style_escape): Likewise.
6380 Update all callers of can_emit_style_escape (SOMESTREAM) to
6381 SOMESTREAM->can_emit_style_escape.
6382 * source-cache.c (source_cache::get_source_lines): Likewise.
6383 * stack.c (frame_apply_command_count): Call execute_command_to_string
6384 passing the term_out characteristic of the current gdb_stdout.
6385 * thread.c (thr_try_catch_cmd): Likewise.
6386 * top.c (execute_command_to_string): pass term_out parameter
6387 to construct the string_file for the command output.
6388 * ui-file.c (term_cli_styling): New function (most code moved
6389 from utils.c can_emit_style_escape).
6390 (string_file::string_file, string_file::can_emit_style_escape,
6391 stdio_file::can_emit_style_escape, tee_file::term_out,
6392 tee_file::can_emit_style_escape): New functions.
6393
136afab8
PW
63942019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6395
6396 * NEWS: Mention the new set|show may-call-functions.
6397 * infcall.c (may_call_functions_p): New variable.
6398 (show_may_call_functions_p): New function.
6399 (call_function_by_hand_dummy): Throws an error if not
6400 may-call-functions.
6401 (_initialize_infcall): Call add_setshow_boolean_cmd for
6402 may-call-functions.
6403
725cbb63
KS
64042019-04-25 Keith Seitz <keiths@redhat.com>
6405
6406 PR c++/24367
6407 * cp-support.c (inspect_type): Don't attempt substitutions
6408 of symbol with the same name.
6409
3d1cbb78
TT
64102019-04-25 Tom Tromey <tromey@adacore.com>
6411
6412 PR gdb/24475:
6413 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
6414 static.
6415
94aeb44b
TT
64162019-04-25 Tom Tromey <tromey@adacore.com>
6417
6418 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
6419 rvalue reference.
6420 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
6421 (gdb_xml_parser::parse): Use std::move.
6422 * python/python-internal.h (gdbpy_convert_exception): Take a const
6423 reference.
6424 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
6425 std::move.
6426 * python/py-utils.c (gdbpy_convert_exception): Take a const
6427 reference.
6428 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
6429 Use std::move.
6430 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
6431 Use std::move.
6432 * mi/mi-main.c (mi_print_exception): Take a const reference.
6433 * main.c (handle_command_errors): Take a const reference.
6434 * linespec.c (parse_linespec): Use std::move.
6435 * infcall.c (run_inferior_call): Use std::move.
6436 (call_function_by_hand_dummy): Use std::move.
6437 * exec.c (try_open_exec_file): Use std::move.
6438 * exceptions.h (exception_print, exception_fprintf)
6439 (exception_print_same): Update.
6440 * exceptions.c (print_exception, exception_print)
6441 (exception_fprintf, exception_print_same): Change parameters to
6442 const reference.
6443 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
6444 * common/new-op.c: Use std::move.
6445 * common/common-exceptions.h (struct gdb_exception): Add move
6446 constructor.
6447 (struct gdb_exception_error, struct gdb_exception_quit, struct
6448 gdb_quit_bad_alloc): Change constructor to move constructor.
6449 (throw_exception): Change parameter to rvalue reference.
6450 * common/common-exceptions.c (throw_exception): Take rvalue
6451 reference.
6452 * cli/cli-interp.c (safe_execute_command): Use std::move.
6453 * breakpoint.c (insert_bp_location, location_to_sals): Use
6454 std::move.
6455
680d7fd5
TT
64562019-04-25 Tom Tromey <tromey@adacore.com>
6457
6458 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
6459 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
6460 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
6461 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
6462 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
6463 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
6464 guile/scm-value.c: Use unpack.
6465 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
6466 gdbscm_gdb_exception.
6467 (gdbscm_throw_gdb_exception): Likewise.
6468 (struct gdbscm_gdb_exception): New.
6469 (unpack): New function.
6470 (gdbscm_wrap): Use unpack.
6471
c6fdd8b2
TT
64722019-04-25 Tom Tromey <tromey@adacore.com>
6473
6474 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
6475 (gdb_rl_callback_handler): Use std::move.
6476 * common/common-exceptions.h (struct gdb_exception): Add move
6477 assignment operator.
6478 (throw_exception_sjlj): Change "exception" to const reference.
6479 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
6480 (throw_exception_sjlj): Change "exception" to const reference.
6481
cc06b668
TT
64822019-04-25 Tom Tromey <tromey@adacore.com>
6483
6484 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
6485 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
6486 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
6487 Update.
6488 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
6489 Update.
6490 * mi/mi-interp.c (mi_interp::exec): Update.
6491 * linespec.c (parse_linespec): Update.
6492 * infcall.c (run_inferior_call): Update.
6493 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
6494 * guile/scm-symbol.c (gdbscm_lookup_symbol)
6495 (gdbscm_lookup_global_symbol): Update.
6496 * guile/scm-param.c (gdbscm_parameter_value): Update.
6497 * guile/scm-frame.c (gdbscm_frame_read_register)
6498 (gdbscm_frame_read_var): Update.
6499 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
6500 * exec.c (try_open_exec_file): Update.
6501 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
6502 (gdb_rl_callback_handler): Update.
6503 * common/common-exceptions.h (exception_none): Don't declare.
6504 * common/common-exceptions.c (exception_none): Don't define.
6505 (struct catcher) <exception>: Update.
6506 * cli/cli-interp.c (safe_execute_command): Update.
6507 * breakpoint.c (insert_bp_location, location_to_sals): Update.
6508
cf532bd1
AT
65092019-04-25 Ali Tamur <tamur@google.com>
6510
6511 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
6512 (read_attribute_value): Likewise.
6513 (dwarf2_read_addr_index): Update comment.
6514 (read_str_index): Add DW_FORM_strx.
6515 (dwarf2_string_attr): Likewise.
6516 (dwarf2_const_value_attr): Likewise.
6517 (dump_die_shallow): Likewise.
6518 (dwarf2_fetch_constant_bytes): Likewise.
6519 (skip_form_bytes): Likewise.
6520 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
6521
82433e3e
SDJ
65222019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6523
6524 PR corefiles/11608
6525 PR corefiles/18187
6526 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
6527 OFFSET. Verify if current mapping contains an ELF header.
6528 (linux_find_memory_regions_full): Adjust call to
6529 dump_mapping_p.
6530
723adb65
SL
65312019-04-25 Sandra Loosemore <sandra@codesourcery.com>
6532 Kang Li <kanglictf@gmail.com>
6533
6534 PR gdb/21600
6535
6536 * dwarf2-frame.c (read_initial_length): Be consistent about using
6537 unsigned representation of length.
6538 (decode_frame_entry_1): Likewise. Check for wraparound of
6539 end pointer as well as buffer overflow.
6540
596179f7
SDJ
65412019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6542
6543 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
6544 "vq".
6545
a59240a4
TT
65462019-04-24 Tom Tromey <tromey@adacore.com>
6547
6548 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
6549
f872fdbb
AB
65502019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6551
6552 * s12z-tdep.c (s12z_unwind_pc): Delete.
6553 (s12z_unwind_sp): Delete.
6554 (s12z_gdbarch_init): Don't register deleted functions with
6555 gdbarch.
6556
b614e6f3
AB
65572019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6558
6559 * rl78-tdep.c (rl78_unwind_sp): Delete.
6560 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
6561
14faed38
AB
65622019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6563
6564 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
6565 (xstormy16_unwind_pc): Delete.
6566 (xstormy16_dummy_id): Delete.
6567 (xstormy16_gdbarch_init): Don't register deleted functions with
6568 gdbarch.
6569
541aad8a
AB
65702019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6571
6572 * vax-tdep.c (vax_unwind_pc): Delete.
6573 (vax_gdbarch_init): Don't register deleted function with gdbarch.
6574
29222070
AB
65752019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6576
6577 * v850-tdep.c (v850_unwind_sp): Delete.
6578 (v850_unwind_pc): Delete.
6579 (v850_dummy_id): Delete.
6580 (v850_gdbarch_init): Don't register deleted functions with
6581 gdbarch.
6582
0f534d76
AB
65832019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6584
6585 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
6586 (tilegx_unwind_pc): Delete.
6587 (tilegx_unwind_dummy_id): Delete.
6588 (tilegx_gdbarch_init): Don't register deleted functions with
6589 gdbarch.
6590
1ba7b7f9
AB
65912019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6592
6593 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
6594 (tic6x_dummy_id): Delete.
6595 (tic6x_gdbarch_init): Don't register deleted functions with
6596 gdbarch.
6597
d31f262c
AB
65982019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6599
6600 * sparc-tdep.c (sparc_unwind_pc): Delete.
6601 (sparc32_gdbarch_init): Don't register deleted function with
6602 gdbarch.
6603
6d14d64d
AB
66042019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6605
6606 * sh-tdep.c (sh_unwind_sp): Delete.
6607 (sh_unwind_pc): Delete.
6608 (sh_dummy_id): Delete.
6609 (sh_gdbarch_init): Don't register deleted functions with
6610 gdbarch.
6611
a40dde9d
AB
66122019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6613
6614 * score-tdep.c (score_unwind_sp): Delete.
6615 (score_unwind_pc): Delete.
6616 (score_dummy_id): Delete.
6617 (score_gdbarch_init): Don't register deleted functions with
6618 gdbarch.
6619
47c47d69
AB
66202019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6621
6622 * rx-tdep.c (rx_unwind_pc): Delete.
6623 (rx_unwind_sp): Delete.
6624 (rx_dummy_id): Delete.
6625 (rx_gdbarch_init): Don't register deleted functions with
6626 gdbarch. Update comment.
6627
833a4480
AB
66282019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6629
6630 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
6631 (rs6000_dummy_id): Delete.
6632 (rs6000_gdbarch_init): Don't register deleted functions with
6633 gdbarch.
6634
3f2cef49
AB
66352019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6636
6637 * or1k-tdep.c (or1k_dummy_id): Delete.
6638 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
6639
96acf884
AB
66402019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6641
6642 * nios2-tdep.c (nios2_dummy_id): Delete.
6643 (nios2_unwind_sp): Delete.
6644 (nios2_gdbarch_init): Don't register deleted functions with
6645 gdbarch.
6646
ca0ab0aa
AB
66472019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6648
6649 * nds32-tdep.c (nds32_dummy_id): Delete.
6650 (nds32_unwind_pc): Delete.
6651 (nds32_unwind_sp): Delete.
6652 (nds32_gdbarch_init): Don't register deleted functions with
6653 gdbarch.
6654
c8259044
AB
66552019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6656
6657 * msp430-tdep.c (msp430_unwind_pc): Delete.
6658 (msp430_unwind_sp): Delete.
6659 (msp430_dummy_id): Delete.
6660 (msp430_gdbarch_init): Don't register deleted functions with
6661 gdbarch.
6662
27f113c8
AB
66632019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6664
6665 * moxie-tdep.c (moxie_unwind_sp): Delete.
6666 (moxie_unwind_pc): Delete.
6667 (moxie_dummy_id): Delete.
6668 (moxie_gdbarch_init): Don't register deleted functions with
6669 gdbarch.
6670
aee6c3cd
AB
66712019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6672
6673 * mn10300-tdep.c (mn10300_dummy_id): Delete.
6674 (mn10300_unwind_pc): Delete.
6675 (mn10300_unwind_sp): Delete.
6676 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
6677 mn10300_unwind_sp.
6678 (mn10300_frame_unwind_init): Don't register deleted functions with
6679 gdbarch.
6680
8e2b5aea
AB
66812019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6682
6683 * mep-tdep.c (mep_unwind_pc): Delete.
6684 (mep_unwind_sp): Delete.
6685 (mep_dummy_id): Delete.
6686 (mep_gdbarch_init): Don't register deleted functions with
6687 gdbarch.
6688
43cf3ede
AB
66892019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6690
6691 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
6692 (m68hc11_unwind_sp): Delete.
6693 (m68hc11_gdbarch_init): Don't register deleted functions with
6694 gdbarch.
6695
5e79b7bb
AB
66962019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6697
6698 * m32r-tdep.c (m32r_unwind_sp): Delete.
6699 (m32r_unwind_pc): Delete.
6700 (m32r_dummy_id): Delete.
6701 (m32r_gdbarch_init): Don't register deleted functions with
6702 gdbarch.
6703
89b268d8
AB
67042019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6705
6706 * m32c-tdep.c (m32c_unwind_pc): Delete.
6707 (m32c_unwind_sp): Delete.
6708 (m32c_dummy_id): Delete.
6709 (m32c_gdbarch_init): Don't register deleted functions with
6710 gdbarch.
6711
946c28d2
AB
67122019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6713
6714 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
6715 (lm32_unwind_pc): Delete.
6716 (lm32_dummy_id): Delete.
6717 (lm32_gdbarch_init): Don't register deleted functions with
6718 gdbarch.
6719
bf12844a
AB
67202019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6721
6722 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
6723 (iq2000_unwind_pc): Delete.
6724 (iq2000_dummy_id): Delete.
6725 (iq2000_gdbarch_init): Don't register deleted functions with
6726 gdbarch.
6727
ecbc06d2
AB
67282019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6729
6730 * nds32-tdep.c (nds32_type_align): Delete.
6731 (nds32_push_dummy_call): Use type_align instead.
6732
030197b4
AB
67332019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6734
6735 * arm-tdep.c (arm_type_align): Only handle vector override case.
6736 (arm_push_dummy_call): Use type_align.
6737 (arm_gdbarch_init): Register arm_type_align gdbarch function.
6738
b907456c
AB
67392019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6740
6741 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
6742 case.
6743 (pass_on_stack): Use type_align.
6744 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
6745 function.
6746
9e97ba43
TT
67472019-04-23 Tom Tromey <tromey@adacore.com>
6748
6749 * dwarf2read.c (line_header::file_name_at): Remove unused
6750 overload.
6751
6892f601
TV
67522019-04-23 Tom de Vries <tdevries@suse.de>
6753
6754 PR gdb/24438
6755 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
6756 invocation.
6757
336d760d
AT
6758
67592019-03-27 Ali Tamur <tamur@google.com>
6760
6761 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
6762 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
6763 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
6764 (dwarf_expr_context::get_addr_index): Likewise
6765 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
6766 (symbol_needs_eval_context::get_addr_index): Likewise
6767 (disassemble_dwarf_expression): Add DW_OP_addrx
6768 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
6769 (read_cutu_die_from_dwo): Update comment
6770 (skip_one_die): Add DW_FORM_addrx
6771 (read_attribute_value): Likewise
6772 (var_decode_location): Add DW_OP_addrx
6773 (dwarf2_const_value_attr): Add DW_FORM_addrx
6774 (dump_die_shallow): Likewise
6775 (dwarf2_fetch_constant_bytes): Likewise
6776 (decode_locdesc): Add DW_OP_addrx
6777 (skip_form_bytes): Add DW_FORM_addrx
6778
ad9d13f8
AT
67792019-04-22 Ali Tamur <tamur@google.com>
6780
6781 * MAINTAINERS (Write After Approval): Add self.
6782
d70cc3ba
SM
67832019-04-22 Simon Marchi <simon.marchi@efficios.com>
6784
6785 * solib-svr4.c (get_svr4_info): Add pspace parameter.
6786 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
6787 (open_symbol_file_object): Likewise.
6788 (svr4_default_sos): Add info parameter.
6789 (svr4_read_so_list): Likewise.
6790 (svr4_current_sos_direct): Adjust functions calls to pass down
6791 info.
6792 (svr4_current_sos_1): Add info parameter.
6793 (svr4_current_sos): Call get_svr4_info, pass info down to
6794 svr4_current_sos_1.
6795 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
6796 get_svr4_info.
6797 (svr4_in_dynsym_resolve_code): Pass current_program_space to
6798 get_svr4_info.
6799 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
6800 to get_svr4_info.
6801 (probes_table_remove_objfile_probes): Likewise.
6802 (register_solib_event_probe): Add info parameter.
6803 (solist_update_incremental): Pass info parameter down to
6804 svr4_read_so_list.
6805 (disable_probes_interface): Add info parameter.
6806 (svr4_handle_solib_event): Pass current_program_space to
6807 get_svr4_info. Adjust disable_probes_interface cleanup.
6808 (svr4_create_probe_breakpoints): Add info parameter, pass it
6809 down to register_solib_event_probe.
6810 (svr4_create_solib_event_breakpoints): Add info parameter,
6811 pass it down to svr4_create_probe_breakpoints.
6812 (enable_break): Pass info down to
6813 svr4_create_solib_event_breakpoints.
6814 (svr4_solib_create_inferior_hook): Pass current_program_space to
6815 get_svr4_info.
6816 (svr4_clear_solib): Likewise.
6817
7905fc35
PA
68182019-04-22 Pedro Alves <palves@redhat.com>
6819
6820 * solib-svr4.c (svr4_free_objfile_observer): New.
6821 (probe_and_action::objfile): New field.
6822 (probes_table_htab_remove_objfile_probes)
6823 (probes_table_remove_objfile_probes): New functions.
6824 (register_solib_event_probe): Add 'objfile' parameter. Store it
6825 in the new probe_and_action. Don't store the probe in 'lookup'.
6826 (svr4_create_probe_breakpoints): Pass objfile to
6827 register_solib_event_probe.
6828 (_initialize_svr4_solib): Register a free_objfile observer.
6829
fb881986
TT
68302019-04-19 Tom Tromey <tom@tromey.com>
6831
6832 * common/queue.h: Remove.
6833
8732db6c
TT
68342019-04-19 Tom Tromey <tom@tromey.com>
6835
6836 * event-loop.c: Don't include "common/queue.h".
6837
97dfbadd
TT
68382019-04-19 Tom Tromey <tom@tromey.com>
6839
6840 * remote.c (remote_target): Use delete.
6841 * remote-notif.h: Include <list>, not "common/queue.h".
6842 (notif_client_p): Remove typedef.
6843 (remote_notif_state): Add constructor, destructor, initializer.
6844 <notif_queue>: Now a std::list.
6845 (remote_notif_state_xfree): Don't declare.
6846 * remote-notif.c (remote_notif_process, handle_notification)
6847 (remote_notif_state_allocate): Update.
6848 (~remote_notif_state): Rename from remote_notif_state_xfree.
6849
cf250e36
TT
68502019-04-19 Tom Tromey <tom@tromey.com>
6851
6852 * symfile.c (reread_symbols): Update.
6853 * objfiles.c (objfile_register_static_link)
6854 (objfile_lookup_static_link): Update
6855 (~objfile) Don't delete static_links.
6856 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
6857
61f4b350
TT
68582019-04-19 Tom Tromey <tom@tromey.com>
6859
6860 * type-stack.h (struct type_stack) <insert>: Constify string.
6861 * type-stack.c (type_stack::insert): Constify string.
6862 * gdbtypes.h (lookup_template_type): Update.
6863 (address_space_name_to_int): Update.
6864 * gdbtypes.c (address_space_name_to_int): Make space_identifier
6865 const.
6866 (lookup_template_type): Make name const.
6867 * c-exp.y: Update rules.
6868 (lex_one_token, classify_name, classify_inner_name)
6869 (c_print_token): Update.
6870 * p-exp.y: Update rules.
6871 (yylex): Update.
6872 * f-exp.y: Update rules.
6873 (yylex): Update.
6874 * d-exp.y: Update rules.
6875 (lex_one_token, classify_name, classify_inner_name): Update.
6876 * parse.c (write_dollar_variable, copy_name): Return std::string.
6877 * parser-defs.h (copy_name): Change return type.
6878 * m2-exp.y: Update rules.
6879 (yylex): Update.
6880 * go-exp.y (lex_one_token): Update.
6881 Update rules.
6882 (classify_unsafe_function, classify_packaged_name)
6883 (classify_name, yylex): Update.
6884
189b8c2e
ST
68852019-04-19 Sergei Trofimovich <siarheit@google.com>
6886
6887 * configure.ac: add --enable-source-highlight switch.
6888 * configure: Regenerate.
6889 * top.c (print_gdb_version): plumb --enable-source-highlight
6890 status to "show configuration".
6891
8ecb59f8
TT
68922019-04-19 Tom Tromey <tromey@adacore.com>
6893
6894 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
6895 Check ADA_TYPE_P.
6896 (empty_record, ada_template_to_fixed_record_type_1)
6897 (template_to_static_fixed_type)
6898 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
6899 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
6900 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
6901 macros.
6902
62160ec9
TT
69032019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
6904
6905 PR symtab/24423:
6906 * source.c (print_source_lines_base): Advance "iter" when a
6907 control character is seen.
6908
f2ae8bc8
PW
69092019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6910
6911 * inferior.h (struct infcall_suspend_state_deleter):
6912 Catch exception in destructor to avoid crash.
6913
d563b953
PW
69142019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6915
6916 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
6917 close to the add_com "shell".
6918
dc34c897
TT
69192019-04-18 Tom Tromey <tromey@adacore.com>
6920
6921 * process-stratum-target.h (class process_stratum_target)
6922 <stratum>: Add "final".
6923
a12e5744
TT
69242019-04-17 Tom Tromey <tromey@adacore.com>
6925
6926 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
6927 against nullptr before use.
6928
a7e559cc
AH
69292019-04-17 Alan Hayward <alan.hayward@arm.com>
6930
6931 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
6932
c01660c6
AB
69332019-04-17 Jim Wilson <jimw@sifive.com>
6934 Andrew Burgess <andrew.burgess@embecosm.com>
6935
6936 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
6937 code read might fail, assume 4-byte breakpoint in that case.
6938
4aa866af
LS
69392019-04-15 Leszek Swirski <leszeks@google.com>
6940
6941 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
6942 rather than a hand-rolled POD check when checking for forced MEMORY
6943 classification.
6944
48574d91
AH
69452019-04-15 Alan Hayward <alan.hayward@arm.com>
6946
6947 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
6948 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
6949 function.
6950 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
6951 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
6952 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
6953 declaration.
6954
4da037ef
AH
69552019-04-15 Alan Hayward <alan.hayward@arm.com>
6956
6957 * aarch64-linux-nat.c
6958 (aarch64_linux_nat_target::thread_architecture): Add override.
6959 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
6960 each VQ.
6961
ccb8d7e8
AH
69622019-04-15 Alan Hayward <alan.hayward@arm.com>
6963
6964 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
6965
35add35e
AB
69662019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
6967
6968 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
6969 target types of size 96-bits, add some additional comments, and
6970 check that the builtin type we found was the correct size.
6971
51196bbc
EZ
69722019-04-12 Eli Zaretskii <eliz@gnu.org>
6973
6974 * utils.c (prompt_for_continue): Don't restore the styling at the
6975 end, as applied_style has the wrong value. This fixes styling in
6976 long lists of file names that are interrupted by the "Continue?"
6977 prompt.
6978
62253a61
AB
69792019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
6980
6981 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
6982 * c-lang.c (c_language_defn): Likewise.
6983 (cplus_language_defn): Likewise.
6984 (asm_language_defn): Likewise.
6985 (minimal_language_defn): Likewise.
6986 * d-lang.c (d_language_defn): Likewise.
6987 * f-lang.c (f_language_defn): Likewise.
6988 * go-lang.c (go_language_defn): Likewise.
6989 * language.c (unknown_language_defn): Likewise.
6990 (auto_language_defn): Likewise.
6991 * language.h (struct language_defn): Remove la_magic field.
6992 (LANG_MAGIC): Delete.
6993 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
6994 * objc-lang.c (objc_language_defn): Likewise.
6995 * opencl-lang.c (opencl_language_defn): Likewise.
6996 * p-lang.c (pascal_language_defn): Likewise.
6997 * rust-lang.c (rust_language_defn): Likewise.
6998
a9158a86
AB
69992019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7000
7001 * riscv-tdep.c (riscv_type_align): New function.
7002 (riscv_type_alignment): Delete.
7003 (riscv_arg_location): Use 'type_align'.
7004 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
7005
41077b66
AB
70062019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7007
7008 * gdbtypes.c (type_align): A struct with no non-static fields also
7009 has alignment of 1.
7010
9f0272f8
AB
70112019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7012
7013 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
7014 component to 0.
7015 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
7016 member.
7017 (riscv_struct_info::analyse): New implementation using new
7018 analyse_inner member function.
7019 (riscv_struct_info::field_offset): New member function.
7020 (riscv_struct_info::m_offsets): New member variable.
7021 (riscv_struct_info::analyse_inner): New private member function,
7022 takes the old implementation of riscv_struct_info::analyse but
7023 extended to track field offsets.
7024 (riscv_call_arg_struct): Update the struct folding special cases
7025 to handle cases where empty C++ structs, which are non-zero
7026 length, are found.
7027 (riscv_arg_location): Initialise the length of each location, a
7028 non-zero length now indicates the location is in use.
7029 (riscv_push_dummy_call): Allow for the first location having a
7030 non-zero offset when setting up arguments.
7031 (riscv_return_value): Likewise, but for return values.
7032
02cf60c7
TT
70332019-04-11 Tom Tromey <tromey@adacore.com>
7034
7035 * utils.c (internal_vproblem): Make "msg" const.
7036
68811f8f
AH
70372019-04-11 Alan Hayward <alan.hayward@arm.com>
7038
7039 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
7040 * trad-frame.c (trad_frame_reset_saved_regs): New function.
7041 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
7042 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
7043
3f52fdbc
KB
70442019-04-10 Kevin Buettner <kevinb@redhat.com>
7045
7046 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
7047 function.
7048 (fill_gregset): Call amd64_linux_collect_native_gregset instead
7049 of amd64_collect_native_gregset.
7050 (amd64_linux_nat_target::store_registers): Likewise.
7051
e9ad22ee
TT
70522019-04-10 Tom Tromey <tom@tromey.com>
7053
7054 * symtab.c (lookup_global_symbol_from_objfile)
7055 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
7056 * objfiles.h (class separate_debug_iterator): New.
7057 (class separate_debug_range): New.
7058 (struct objfile) <separate_debug_objfiles>: New method.
7059 (objfile_separate_debug_iterate): Don't declare.
7060 * objfiles.c (separate_debug_iterator::operator++): Rename from
7061 objfile_separate_debug_iterate.
7062 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
7063 iterator.
7064 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
7065 iterator.
7066
ee371134
TT
70672019-04-10 Tom Tromey <tom@tromey.com>
7068
7069 * symfile.c (reread_symbols): Remove old comment.
7070 * objfiles.c (free_all_objfiles): Fix a typo.
7071
bf227d61
TT
70722019-04-10 Tom Tromey <tom@tromey.com>
7073
7074 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
7075 * minsyms.c (lookup_minimal_symbol): Use foreach.
7076 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7077 (lookup_minimal_symbol_solib_trampoline): Likewise.
7078 * symfile.c (reread_symbols): Use foreach.
7079
8dc433a0
TT
70802019-04-09 Ivan Begert <ivanbegert@gmail.com>
7081 Tom Tromey <tromey@adacore.com>
7082
7083 PR rust/24414:
7084 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
7085 (rust_lex_int_test): Change "value" to be LONGEST.
7086 (rust_lex_tests): Add test for long integer literal.
7087
9ab8741a
TT
70882019-04-09 Tom Tromey <tromey@adacore.com>
7089
7090 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
7091 to bool.
7092 (extended_remote_target::attach): Update.
7093 (remote_target::remote_notice_new_inferior): Update.
7094 (remote_target::add_current_inferior_and_thread): Update.
7095 * inferior.c (exit_inferior_1): Use "false".
7096 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
7097
e242fd12
SM
70982019-04-09 Simon Marchi <simon.marchi@efficios.com>
7099
9ca1957f 7100 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
7101 the "start" command.
7102
2b0c8b01
KB
71032019-04-08 Kevin Buettner <kevinb@redhat.com>
7104
7105 * python/py-inferior.c (infpy_thread_from_thread_handle):
7106 Adjust comments to reflect renaming of thread_from_thread_handle
7107 to thread_from_handle. Adjust keywords. Fix type error message.
7108 (inferior_object_methods): Add thread_from_handle. Retain
7109 thread_from_thread_handle, but mark it as deprecated.
7110
50a82723
KB
71112019-04-08 Kevin Buettner <kevinb@redhat.com>
7112
7113 * gdbthread.h (find_thread_by_handle): Revise declaration.
7114 * thread.c (find_thread_by_handle): Likewise. Adjust
7115 implementation too.
7116 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
7117 support for buffer objects as handles.
7118
cf63b016
KB
71192019-04-08 Kevin Buettner <kevinb@redhat.com>
7120
7121 * python/py-infthread.c (thpy_thread_handle): New function.
7122 (thread_object_methods): Register thpy_thread_handle.
7123
3d6c6204
KB
71242019-04-08 Kevin Buettner <kevinb@redhat.com>
7125
7126 * gdbthread.h (thread_to_thread_handle): Declare.
7127 * thread.c (gdbtypes.h): Include.
7128 (thread_to_thread_handle): New function.
7129
7130 * target.h (struct target_ops): Add thread_info_to_thread_handle.
7131 (target_thread_info_to_thread_handle): Declare.
7132 * target.c (target_thread_info_to_thread_handle): New function.
7133 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
7134 * target-delegates.c: Regenerate.
7135
7136 * linux-thread-db.c (class thread_db_target): Add method
7137 thread_info_to_thread_handle.
7138 (thread_db_target::thread_info_to_thread_handle): Define.
7139 * remote.c (class remote_target): Add new method
7140 thread_info_to_thread_handle.
7141 (remote_target::thread_info_to_thread_handle): Define.
7142
56be6ea8
PA
71432019-04-08 Pedro Alves <palves@redhat.com>
7144
7145 * common/common-exceptions.c (throw_exception): Don't create
7146 named object to throw; throw directly.
7147 (throw_it): Likewise. Don't initialize gdb_exception::message
7148 here, with new; pass FMT and AP to the ctor instead.
7149 * common/common-exceptions.h: Include <string>.
7150 (gdb_exception::gdb_exception(enum return_reason, enum errors,
7151 const char *, va_list)): New ctor. Use std::make_shared.
7152 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
7153 errors)): Delete.
7154 (gdb_exception_error::gdb_exception_error(enum errors, const char
7155 *, va_list)): New.
7156 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
7157 Add assertion.
7158 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
7159 errors)): Delete.
7160 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
7161 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
7162 Add assertion.
7163
eedc3f4f
TT
71642019-04-08 Tom Tromey <tom@tromey.com>
7165
7166 * valops.c (value_rtti_indirect_type): Replace throw_exception
7167 with throw.
7168 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
7169 with throw.
7170 * thread.c (thr_try_catch_cmd): Replace throw_exception with
7171 throw.
7172 * target.c (target_translate_tls_address): Replace throw_exception
7173 with throw.
7174 * stack.c (frame_apply_command_count): Replace throw_exception
7175 with throw.
7176 * solib-spu.c (append_ocl_sos): Replace throw_exception with
7177 throw.
7178 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
7179 with throw.
7180 * rs6000-tdep.c (rs6000_frame_cache)
7181 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
7182 * remote.c: Replace throw_exception with throw.
7183 * record-full.c (record_full_message, record_full_wait_1)
7184 (record_full_restore): Replace throw_exception with throw.
7185 * record-btrace.c:
7186 (get_thread_current_frame_id, record_btrace_start_replaying)
7187 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
7188 (cmd_record_btrace_start): Replace throw_exception with throw.
7189 * parse.c (parse_exp_in_context_1): Replace throw_exception with
7190 throw.
7191 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
7192 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
7193 * linespec.c:
7194 (find_linespec_symbols): Replace throw_exception with throw.
7195 * infrun.c (displaced_step_prepare, resume): Replace
7196 throw_exception with throw.
7197 * infcmd.c (post_create_inferior): Replace throw_exception with
7198 throw.
7199 * inf-loop.c (inferior_event_handler): Replace throw_exception
7200 with throw.
7201 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
7202 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
7203 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
7204 (get_prev_frame_always, get_frame_pc_if_available)
7205 (get_frame_address_in_block_if_available, get_frame_language):
7206 Replace throw_exception with throw.
7207 * frame-unwind.c (frame_unwind_try_unwinder): Replace
7208 throw_exception with throw.
7209 * eval.c (fetch_subexp_value, evaluate_var_value)
7210 (evaluate_funcall, evaluate_subexp_standard): Replace
7211 throw_exception with throw.
7212 * dwarf2loc.c (call_site_find_chain)
7213 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
7214 Replace throw_exception with throw.
7215 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
7216 with throw.
7217 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
7218 throw.
7219 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
7220 * completer.c (complete_line_internal): Replace throw_exception
7221 with throw.
7222 * compile/compile-object-run.c (compile_object_run): Replace
7223 throw_exception with throw.
7224 * cli/cli-script.c (process_next_line): Replace throw_exception
7225 with throw.
7226 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
7227 (btrace_enable, btrace_maint_update_pt_packets): Replace
7228 throw_exception with throw.
7229 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
7230 throw_exception with throw.
7231 * break-catch-throw.c (re_set_exception_catchpoint): Replace
7232 throw_exception with throw.
7233 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
7234 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
7235 * aarch64-tdep.c (aarch64_make_prologue_cache)
7236 (aarch64_make_stub_cache): Replace throw_exception with throw.
7237
26003a20
TT
72382019-04-08 Tom Tromey <tom@tromey.com>
7239
7240 * common/common-exceptions.c (throw_exception): Rename from
7241 throw_exception_cxx. Remove old copy. Make argument const.
7242 (throw_it): Create and throw exception objects directly.
7243 * common/common-exceptions.h (throw_exception): Make argument
7244 const.
7245 (struct gdb_exception_error): Add constructor.
7246 (struct gdb_exception_quit): Add constructor.
7247
d272eb37
TT
72482019-04-08 Tom Tromey <tom@tromey.com>
7249
7250 * common/common-exceptions.h (exception_rethrow): Don't declare.
7251 (TRY_SJLJ): Update comment.
7252 (TRY, CATCH, END_CATCH): Remove.
7253 * common/common-exceptions.c (exception_rethrow): Remove.
7254
230d2906
TT
72552019-04-08 Tom Tromey <tom@tromey.com>
7256
7257 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
7258 Remove.
7259 (gdb_exception_error): Rename from
7260 gdb_exception_RETURN_MASK_ERROR.
7261 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
7262 (gdb_quit_bad_alloc): Update.
7263 * aarch64-tdep.c: Update.
7264 * ada-lang.c: Update.
7265 * ada-typeprint.c: Update.
7266 * ada-valprint.c: Update.
7267 * amd64-tdep.c: Update.
7268 * arch-utils.c: Update.
7269 * break-catch-throw.c: Update.
7270 * breakpoint.c: Update.
7271 * btrace.c: Update.
7272 * c-varobj.c: Update.
7273 * cli/cli-cmds.c: Update.
7274 * cli/cli-interp.c: Update.
7275 * cli/cli-script.c: Update.
7276 * common/common-exceptions.c: Update.
7277 * common/new-op.c: Update.
7278 * common/selftest.c: Update.
7279 * compile/compile-c-symbols.c: Update.
7280 * compile/compile-cplus-symbols.c: Update.
7281 * compile/compile-object-load.c: Update.
7282 * compile/compile-object-run.c: Update.
7283 * completer.c: Update.
7284 * corelow.c: Update.
7285 * cp-abi.c: Update.
7286 * cp-support.c: Update.
7287 * cp-valprint.c: Update.
7288 * darwin-nat.c: Update.
7289 * disasm-selftests.c: Update.
7290 * dtrace-probe.c: Update.
7291 * dwarf-index-cache.c: Update.
7292 * dwarf-index-write.c: Update.
7293 * dwarf2-frame-tailcall.c: Update.
7294 * dwarf2-frame.c: Update.
7295 * dwarf2loc.c: Update.
7296 * dwarf2read.c: Update.
7297 * eval.c: Update.
7298 * event-loop.c: Update.
7299 * event-top.c: Update.
7300 * exec.c: Update.
7301 * f-valprint.c: Update.
7302 * fbsd-tdep.c: Update.
7303 * frame-unwind.c: Update.
7304 * frame.c: Update.
7305 * gdbtypes.c: Update.
7306 * gnu-v3-abi.c: Update.
7307 * guile/guile-internal.h: Update.
7308 * guile/scm-block.c: Update.
7309 * guile/scm-breakpoint.c: Update.
7310 * guile/scm-cmd.c: Update.
7311 * guile/scm-disasm.c: Update.
7312 * guile/scm-frame.c: Update.
7313 * guile/scm-lazy-string.c: Update.
7314 * guile/scm-math.c: Update.
7315 * guile/scm-param.c: Update.
7316 * guile/scm-ports.c: Update.
7317 * guile/scm-pretty-print.c: Update.
7318 * guile/scm-symbol.c: Update.
7319 * guile/scm-symtab.c: Update.
7320 * guile/scm-type.c: Update.
7321 * guile/scm-value.c: Update.
7322 * i386-linux-tdep.c: Update.
7323 * i386-tdep.c: Update.
7324 * inf-loop.c: Update.
7325 * infcall.c: Update.
7326 * infcmd.c: Update.
7327 * infrun.c: Update.
7328 * jit.c: Update.
7329 * language.c: Update.
7330 * linespec.c: Update.
7331 * linux-fork.c: Update.
7332 * linux-nat.c: Update.
7333 * linux-tdep.c: Update.
7334 * linux-thread-db.c: Update.
7335 * main.c: Update.
7336 * mi/mi-cmd-break.c: Update.
7337 * mi/mi-cmd-stack.c: Update.
7338 * mi/mi-interp.c: Update.
7339 * mi/mi-main.c: Update.
7340 * objc-lang.c: Update.
7341 * p-valprint.c: Update.
7342 * parse.c: Update.
7343 * ppc-linux-tdep.c: Update.
7344 * printcmd.c: Update.
7345 * python/py-arch.c: Update.
7346 * python/py-breakpoint.c: Update.
7347 * python/py-cmd.c: Update.
7348 * python/py-finishbreakpoint.c: Update.
7349 * python/py-frame.c: Update.
7350 * python/py-framefilter.c: Update.
7351 * python/py-gdb-readline.c: Update.
7352 * python/py-inferior.c: Update.
7353 * python/py-infthread.c: Update.
7354 * python/py-lazy-string.c: Update.
7355 * python/py-linetable.c: Update.
7356 * python/py-objfile.c: Update.
7357 * python/py-param.c: Update.
7358 * python/py-prettyprint.c: Update.
7359 * python/py-progspace.c: Update.
7360 * python/py-record-btrace.c: Update.
7361 * python/py-record.c: Update.
7362 * python/py-symbol.c: Update.
7363 * python/py-type.c: Update.
7364 * python/py-unwind.c: Update.
7365 * python/py-utils.c: Update.
7366 * python/py-value.c: Update.
7367 * python/python.c: Update.
7368 * record-btrace.c: Update.
7369 * record-full.c: Update.
7370 * remote-fileio.c: Update.
7371 * remote.c: Update.
7372 * riscv-tdep.c: Update.
7373 * rs6000-aix-tdep.c: Update.
7374 * rs6000-tdep.c: Update.
7375 * rust-exp.y: Update.
7376 * rust-lang.c: Update.
7377 * s390-tdep.c: Update.
7378 * selftest-arch.c: Update.
7379 * solib-dsbt.c: Update.
7380 * solib-frv.c: Update.
7381 * solib-spu.c: Update.
7382 * solib-svr4.c: Update.
7383 * solib.c: Update.
7384 * sparc64-linux-tdep.c: Update.
7385 * stack.c: Update.
7386 * symfile-mem.c: Update.
7387 * symmisc.c: Update.
7388 * target.c: Update.
7389 * thread.c: Update.
7390 * top.c: Update.
7391 * tracefile-tfile.c: Update.
7392 * tui/tui.c: Update.
7393 * typeprint.c: Update.
7394 * unittests/cli-utils-selftests.c: Update.
7395 * unittests/parse-connection-spec-selftests.c: Update.
7396 * valops.c: Update.
7397 * valprint.c: Update.
7398 * value.c: Update.
7399 * varobj.c: Update.
7400 * windows-nat.c: Update.
7401 * x86-linux-nat.c: Update.
7402 * xml-support.c: Update.
7403
a70b8144
TT
74042019-04-08 Tom Tromey <tom@tromey.com>
7405
7406 * xml-support.c: Use C++ exception handling.
7407 * x86-linux-nat.c: Use C++ exception handling.
7408 * windows-nat.c: Use C++ exception handling.
7409 * varobj.c: Use C++ exception handling.
7410 * value.c: Use C++ exception handling.
7411 * valprint.c: Use C++ exception handling.
7412 * valops.c: Use C++ exception handling.
7413 * unittests/parse-connection-spec-selftests.c: Use C++ exception
7414 handling.
7415 * unittests/cli-utils-selftests.c: Use C++ exception handling.
7416 * typeprint.c: Use C++ exception handling.
7417 * tui/tui.c: Use C++ exception handling.
7418 * tracefile-tfile.c: Use C++ exception handling.
7419 * top.c: Use C++ exception handling.
7420 * thread.c: Use C++ exception handling.
7421 * target.c: Use C++ exception handling.
7422 * symmisc.c: Use C++ exception handling.
7423 * symfile-mem.c: Use C++ exception handling.
7424 * stack.c: Use C++ exception handling.
7425 * sparc64-linux-tdep.c: Use C++ exception handling.
7426 * solib.c: Use C++ exception handling.
7427 * solib-svr4.c: Use C++ exception handling.
7428 * solib-spu.c: Use C++ exception handling.
7429 * solib-frv.c: Use C++ exception handling.
7430 * solib-dsbt.c: Use C++ exception handling.
7431 * selftest-arch.c: Use C++ exception handling.
7432 * s390-tdep.c: Use C++ exception handling.
7433 * rust-lang.c: Use C++ exception handling.
7434 * rust-exp.y: Use C++ exception handling.
7435 * rs6000-tdep.c: Use C++ exception handling.
7436 * rs6000-aix-tdep.c: Use C++ exception handling.
7437 * riscv-tdep.c: Use C++ exception handling.
7438 * remote.c: Use C++ exception handling.
7439 * remote-fileio.c: Use C++ exception handling.
7440 * record-full.c: Use C++ exception handling.
7441 * record-btrace.c: Use C++ exception handling.
7442 * python/python.c: Use C++ exception handling.
7443 * python/py-value.c: Use C++ exception handling.
7444 * python/py-utils.c: Use C++ exception handling.
7445 * python/py-unwind.c: Use C++ exception handling.
7446 * python/py-type.c: Use C++ exception handling.
7447 * python/py-symbol.c: Use C++ exception handling.
7448 * python/py-record.c: Use C++ exception handling.
7449 * python/py-record-btrace.c: Use C++ exception handling.
7450 * python/py-progspace.c: Use C++ exception handling.
7451 * python/py-prettyprint.c: Use C++ exception handling.
7452 * python/py-param.c: Use C++ exception handling.
7453 * python/py-objfile.c: Use C++ exception handling.
7454 * python/py-linetable.c: Use C++ exception handling.
7455 * python/py-lazy-string.c: Use C++ exception handling.
7456 * python/py-infthread.c: Use C++ exception handling.
7457 * python/py-inferior.c: Use C++ exception handling.
7458 * python/py-gdb-readline.c: Use C++ exception handling.
7459 * python/py-framefilter.c: Use C++ exception handling.
7460 * python/py-frame.c: Use C++ exception handling.
7461 * python/py-finishbreakpoint.c: Use C++ exception handling.
7462 * python/py-cmd.c: Use C++ exception handling.
7463 * python/py-breakpoint.c: Use C++ exception handling.
7464 * python/py-arch.c: Use C++ exception handling.
7465 * printcmd.c: Use C++ exception handling.
7466 * ppc-linux-tdep.c: Use C++ exception handling.
7467 * parse.c: Use C++ exception handling.
7468 * p-valprint.c: Use C++ exception handling.
7469 * objc-lang.c: Use C++ exception handling.
7470 * mi/mi-main.c: Use C++ exception handling.
7471 * mi/mi-interp.c: Use C++ exception handling.
7472 * mi/mi-cmd-stack.c: Use C++ exception handling.
7473 * mi/mi-cmd-break.c: Use C++ exception handling.
7474 * main.c: Use C++ exception handling.
7475 * linux-thread-db.c: Use C++ exception handling.
7476 * linux-tdep.c: Use C++ exception handling.
7477 * linux-nat.c: Use C++ exception handling.
7478 * linux-fork.c: Use C++ exception handling.
7479 * linespec.c: Use C++ exception handling.
7480 * language.c: Use C++ exception handling.
7481 * jit.c: Use C++ exception handling.
7482 * infrun.c: Use C++ exception handling.
7483 * infcmd.c: Use C++ exception handling.
7484 * infcall.c: Use C++ exception handling.
7485 * inf-loop.c: Use C++ exception handling.
7486 * i386-tdep.c: Use C++ exception handling.
7487 * i386-linux-tdep.c: Use C++ exception handling.
7488 * guile/scm-value.c: Use C++ exception handling.
7489 * guile/scm-type.c: Use C++ exception handling.
7490 * guile/scm-symtab.c: Use C++ exception handling.
7491 * guile/scm-symbol.c: Use C++ exception handling.
7492 * guile/scm-pretty-print.c: Use C++ exception handling.
7493 * guile/scm-ports.c: Use C++ exception handling.
7494 * guile/scm-param.c: Use C++ exception handling.
7495 * guile/scm-math.c: Use C++ exception handling.
7496 * guile/scm-lazy-string.c: Use C++ exception handling.
7497 * guile/scm-frame.c: Use C++ exception handling.
7498 * guile/scm-disasm.c: Use C++ exception handling.
7499 * guile/scm-cmd.c: Use C++ exception handling.
7500 * guile/scm-breakpoint.c: Use C++ exception handling.
7501 * guile/scm-block.c: Use C++ exception handling.
7502 * guile/guile-internal.h: Use C++ exception handling.
7503 * gnu-v3-abi.c: Use C++ exception handling.
7504 * gdbtypes.c: Use C++ exception handling.
7505 * frame.c: Use C++ exception handling.
7506 * frame-unwind.c: Use C++ exception handling.
7507 * fbsd-tdep.c: Use C++ exception handling.
7508 * f-valprint.c: Use C++ exception handling.
7509 * exec.c: Use C++ exception handling.
7510 * event-top.c: Use C++ exception handling.
7511 * event-loop.c: Use C++ exception handling.
7512 * eval.c: Use C++ exception handling.
7513 * dwarf2read.c: Use C++ exception handling.
7514 * dwarf2loc.c: Use C++ exception handling.
7515 * dwarf2-frame.c: Use C++ exception handling.
7516 * dwarf2-frame-tailcall.c: Use C++ exception handling.
7517 * dwarf-index-write.c: Use C++ exception handling.
7518 * dwarf-index-cache.c: Use C++ exception handling.
7519 * dtrace-probe.c: Use C++ exception handling.
7520 * disasm-selftests.c: Use C++ exception handling.
7521 * darwin-nat.c: Use C++ exception handling.
7522 * cp-valprint.c: Use C++ exception handling.
7523 * cp-support.c: Use C++ exception handling.
7524 * cp-abi.c: Use C++ exception handling.
7525 * corelow.c: Use C++ exception handling.
7526 * completer.c: Use C++ exception handling.
7527 * compile/compile-object-run.c: Use C++ exception handling.
7528 * compile/compile-object-load.c: Use C++ exception handling.
7529 * compile/compile-cplus-symbols.c: Use C++ exception handling.
7530 * compile/compile-c-symbols.c: Use C++ exception handling.
7531 * common/selftest.c: Use C++ exception handling.
7532 * common/new-op.c: Use C++ exception handling.
7533 * cli/cli-script.c: Use C++ exception handling.
7534 * cli/cli-interp.c: Use C++ exception handling.
7535 * cli/cli-cmds.c: Use C++ exception handling.
7536 * c-varobj.c: Use C++ exception handling.
7537 * btrace.c: Use C++ exception handling.
7538 * breakpoint.c: Use C++ exception handling.
7539 * break-catch-throw.c: Use C++ exception handling.
7540 * arch-utils.c: Use C++ exception handling.
7541 * amd64-tdep.c: Use C++ exception handling.
7542 * ada-valprint.c: Use C++ exception handling.
7543 * ada-typeprint.c: Use C++ exception handling.
7544 * ada-lang.c: Use C++ exception handling.
7545 * aarch64-tdep.c: Use C++ exception handling.
7546
3d6e9d23
TT
75472019-04-08 Tom Tromey <tom@tromey.com>
7548
7549 * xml-support.c (gdb_xml_parser::parse): Update.
7550 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
7551 * value.c (show_convenience): Update.
7552 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
7553 (test_parse_flags_qcs): Update.
7554 * thread.c (thr_try_catch_cmd): Update.
7555 * target.c (target_translate_tls_address): Update.
7556 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
7557 (info_frame_command_core, frame_apply_command_count): Update.
7558 * rust-exp.y (rust_lex_exception_test): Update.
7559 * riscv-tdep.c (riscv_print_one_register_info): Update.
7560 * remote.c (remote_target::enable_btrace): Update.
7561 * record-btrace.c (record_btrace_enable_warn): Update.
7562 * python/py-utils.c (gdbpy_convert_exception): Update.
7563 * printcmd.c (do_one_display, print_variable_and_value): Update.
7564 * mi/mi-main.c (mi_print_exception): Update.
7565 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
7566 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
7567 * linux-nat.c (linux_nat_target::attach): Update.
7568 * linux-fork.c (class scoped_switch_fork_info): Update.
7569 * infrun.c (displaced_step_prepare): Update.
7570 * infcall.c (call_function_by_hand_dummy): Update.
7571 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
7572 * gnu-v3-abi.c (print_one_vtable): Update.
7573 * frame.c (get_prev_frame_always): Update.
7574 * f-valprint.c (info_common_command_for_block): Update.
7575 * exec.c (try_open_exec_file): Update.
7576 * exceptions.c (print_exception, exception_print)
7577 (exception_fprintf, exception_print_same): Update.
7578 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
7579 * dwarf-index-cache.c (index_cache::store)
7580 (index_cache::lookup_gdb_index): Update.
7581 * darwin-nat.c (maybe_cache_shell): Update.
7582 * cp-valprint.c (cp_print_value_fields): Update.
7583 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
7584 (gcc_cplus_symbol_address): Update.
7585 * compile/compile-c-symbols.c (gcc_convert_symbol)
7586 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
7587 * common/selftest.c: Update.
7588 * common/common-exceptions.h (struct gdb_exception) <message>: Now
7589 a std::string.
7590 (exception_try_scope_entry, exception_try_scope_exit): Don't
7591 declare.
7592 (struct exception_try_scope): Remove.
7593 (TRY): Don't use exception_try_scope.
7594 (struct gdb_exception): Add constructor, operator=.
7595 <what>: New method.
7596 (struct gdb_exception_RETURN_MASK_ALL)
7597 (struct gdb_exception_RETURN_MASK_ERROR)
7598 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
7599 (struct gdb_quit_bad_alloc): Update.
7600 * common/common-exceptions.c (exception_none): Change
7601 initializer.
7602 (struct catcher) <state, exception>: Initialize inline.
7603 <prev>: Remove member.
7604 (current_catcher): Remove.
7605 (catchers): New global.
7606 (exceptions_state_mc_init): Simplify.
7607 (catcher_pop): Remove.
7608 (exceptions_state_mc, exceptions_state_mc_catch): Update.
7609 (try_scope_depth, exception_try_scope_entry)
7610 (exception_try_scope_exit): Remove.
7611 (throw_exception_sjlj): Update.
7612 (exception_messages, exception_messages_size): Remove.
7613 (throw_it): Simplify.
7614 (gdb_exception_sliced_copy): Remove.
7615 (throw_exception_cxx): Update.
7616 * cli/cli-script.c (script_from_file): Update.
7617 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
7618 Update.
7619 * ada-valprint.c (ada_val_print): Update.
7620 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
7621 (create_excep_cond_exprs): Update.
7622
c5c10118
TT
76232019-04-08 Tom Tromey <tom@tromey.com>
7624
7625 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
7626 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
7627 (TRY, CATCH, END_CATCH): Remove some definitions.
7628 * common/common-exceptions.c: Don't use GDB_XCPT.
7629 (catcher_list_size): Remove.
7630 (throw_exception, throw_it): Simplify.
7631
4de283e4
TT
76322019-04-05 Tom Tromey <tom@tromey.com>
7633
7634 Revert the header-sorting patch.
7635 * ft32-tdep.c: Revert.
7636 * frv-tdep.c: Revert.
7637 * frv-linux-tdep.c: Revert.
7638 * frame.c: Revert.
7639 * frame-unwind.c: Revert.
7640 * frame-base.c: Revert.
7641 * fork-child.c: Revert.
7642 * findvar.c: Revert.
7643 * findcmd.c: Revert.
7644 * filesystem.c: Revert.
7645 * filename-seen-cache.h: Revert.
7646 * filename-seen-cache.c: Revert.
7647 * fbsd-tdep.c: Revert.
7648 * fbsd-nat.h: Revert.
7649 * fbsd-nat.c: Revert.
7650 * f-valprint.c: Revert.
7651 * f-typeprint.c: Revert.
7652 * f-lang.c: Revert.
7653 * extension.h: Revert.
7654 * extension.c: Revert.
7655 * extension-priv.h: Revert.
7656 * expprint.c: Revert.
7657 * exec.h: Revert.
7658 * exec.c: Revert.
7659 * exceptions.c: Revert.
7660 * event-top.c: Revert.
7661 * event-loop.c: Revert.
7662 * eval.c: Revert.
7663 * elfread.c: Revert.
7664 * dwarf2read.h: Revert.
7665 * dwarf2read.c: Revert.
7666 * dwarf2loc.c: Revert.
7667 * dwarf2expr.h: Revert.
7668 * dwarf2expr.c: Revert.
7669 * dwarf2-frame.c: Revert.
7670 * dwarf2-frame-tailcall.c: Revert.
7671 * dwarf-index-write.h: Revert.
7672 * dwarf-index-write.c: Revert.
7673 * dwarf-index-common.c: Revert.
7674 * dwarf-index-cache.h: Revert.
7675 * dwarf-index-cache.c: Revert.
7676 * dummy-frame.c: Revert.
7677 * dtrace-probe.c: Revert.
7678 * disasm.h: Revert.
7679 * disasm.c: Revert.
7680 * disasm-selftests.c: Revert.
7681 * dictionary.c: Revert.
7682 * dicos-tdep.c: Revert.
7683 * demangle.c: Revert.
7684 * dcache.h: Revert.
7685 * dcache.c: Revert.
7686 * darwin-nat.h: Revert.
7687 * darwin-nat.c: Revert.
7688 * darwin-nat-info.c: Revert.
7689 * d-valprint.c: Revert.
7690 * d-namespace.c: Revert.
7691 * d-lang.c: Revert.
7692 * ctf.c: Revert.
7693 * csky-tdep.c: Revert.
7694 * csky-linux-tdep.c: Revert.
7695 * cris-tdep.c: Revert.
7696 * cris-linux-tdep.c: Revert.
7697 * cp-valprint.c: Revert.
7698 * cp-support.c: Revert.
7699 * cp-namespace.c: Revert.
7700 * cp-abi.c: Revert.
7701 * corelow.c: Revert.
7702 * corefile.c: Revert.
7703 * continuations.c: Revert.
7704 * completer.h: Revert.
7705 * completer.c: Revert.
7706 * complaints.c: Revert.
7707 * coffread.c: Revert.
7708 * coff-pe-read.c: Revert.
7709 * cli-out.h: Revert.
7710 * cli-out.c: Revert.
7711 * charset.c: Revert.
7712 * c-varobj.c: Revert.
7713 * c-valprint.c: Revert.
7714 * c-typeprint.c: Revert.
7715 * c-lang.c: Revert.
7716 * buildsym.c: Revert.
7717 * buildsym-legacy.c: Revert.
7718 * build-id.h: Revert.
7719 * build-id.c: Revert.
7720 * btrace.c: Revert.
7721 * bsd-uthread.c: Revert.
7722 * breakpoint.h: Revert.
7723 * breakpoint.c: Revert.
7724 * break-catch-throw.c: Revert.
7725 * break-catch-syscall.c: Revert.
7726 * break-catch-sig.c: Revert.
7727 * blockframe.c: Revert.
7728 * block.c: Revert.
7729 * bfin-tdep.c: Revert.
7730 * bfin-linux-tdep.c: Revert.
7731 * bfd-target.c: Revert.
7732 * bcache.c: Revert.
7733 * ax-general.c: Revert.
7734 * ax-gdb.h: Revert.
7735 * ax-gdb.c: Revert.
7736 * avr-tdep.c: Revert.
7737 * auxv.c: Revert.
7738 * auto-load.c: Revert.
7739 * arm-wince-tdep.c: Revert.
7740 * arm-tdep.c: Revert.
7741 * arm-symbian-tdep.c: Revert.
7742 * arm-pikeos-tdep.c: Revert.
7743 * arm-obsd-tdep.c: Revert.
7744 * arm-nbsd-tdep.c: Revert.
7745 * arm-nbsd-nat.c: Revert.
7746 * arm-linux-tdep.c: Revert.
7747 * arm-linux-nat.c: Revert.
7748 * arm-fbsd-tdep.c: Revert.
7749 * arm-fbsd-nat.c: Revert.
7750 * arm-bsd-tdep.c: Revert.
7751 * arch-utils.c: Revert.
7752 * arc-tdep.c: Revert.
7753 * arc-newlib-tdep.c: Revert.
7754 * annotate.h: Revert.
7755 * annotate.c: Revert.
7756 * amd64-windows-tdep.c: Revert.
7757 * amd64-windows-nat.c: Revert.
7758 * amd64-tdep.c: Revert.
7759 * amd64-sol2-tdep.c: Revert.
7760 * amd64-obsd-tdep.c: Revert.
7761 * amd64-obsd-nat.c: Revert.
7762 * amd64-nbsd-tdep.c: Revert.
7763 * amd64-nbsd-nat.c: Revert.
7764 * amd64-nat.c: Revert.
7765 * amd64-linux-tdep.c: Revert.
7766 * amd64-linux-nat.c: Revert.
7767 * amd64-fbsd-tdep.c: Revert.
7768 * amd64-fbsd-nat.c: Revert.
7769 * amd64-dicos-tdep.c: Revert.
7770 * amd64-darwin-tdep.c: Revert.
7771 * amd64-bsd-nat.c: Revert.
7772 * alpha-tdep.c: Revert.
7773 * alpha-obsd-tdep.c: Revert.
7774 * alpha-nbsd-tdep.c: Revert.
7775 * alpha-mdebug-tdep.c: Revert.
7776 * alpha-linux-tdep.c: Revert.
7777 * alpha-linux-nat.c: Revert.
7778 * alpha-bsd-tdep.c: Revert.
7779 * alpha-bsd-nat.c: Revert.
7780 * aix-thread.c: Revert.
7781 * agent.c: Revert.
7782 * addrmap.c: Revert.
7783 * ada-varobj.c: Revert.
7784 * ada-valprint.c: Revert.
7785 * ada-typeprint.c: Revert.
7786 * ada-tasks.c: Revert.
7787 * ada-lang.c: Revert.
7788 * aarch64-tdep.c: Revert.
7789 * aarch64-ravenscar-thread.c: Revert.
7790 * aarch64-newlib-tdep.c: Revert.
7791 * aarch64-linux-tdep.c: Revert.
7792 * aarch64-linux-nat.c: Revert.
7793 * aarch64-fbsd-tdep.c: Revert.
7794 * aarch64-fbsd-nat.c: Revert.
7795 * aarch32-linux-nat.c: Revert.
7796
d55e5aa6
TT
77972019-04-05 Tom Tromey <tom@tromey.com>
7798
7799 * ft32-tdep.c: Sort headers.
7800 * frv-tdep.c: Sort headers.
7801 * frv-linux-tdep.c: Sort headers.
7802 * frame.c: Sort headers.
7803 * frame-unwind.c: Sort headers.
7804 * frame-base.c: Sort headers.
7805 * fork-child.c: Sort headers.
7806 * findvar.c: Sort headers.
7807 * findcmd.c: Sort headers.
7808 * filesystem.c: Sort headers.
7809 * filename-seen-cache.h: Sort headers.
7810 * filename-seen-cache.c: Sort headers.
7811 * fbsd-tdep.c: Sort headers.
7812 * fbsd-nat.h: Sort headers.
7813 * fbsd-nat.c: Sort headers.
7814 * f-valprint.c: Sort headers.
7815 * f-typeprint.c: Sort headers.
7816 * f-lang.c: Sort headers.
7817 * extension.h: Sort headers.
7818 * extension.c: Sort headers.
7819 * extension-priv.h: Sort headers.
7820 * expprint.c: Sort headers.
7821 * exec.h: Sort headers.
7822 * exec.c: Sort headers.
7823 * exceptions.c: Sort headers.
7824 * event-top.c: Sort headers.
7825 * event-loop.c: Sort headers.
7826 * eval.c: Sort headers.
7827 * elfread.c: Sort headers.
7828 * dwarf2read.h: Sort headers.
7829 * dwarf2read.c: Sort headers.
7830 * dwarf2loc.c: Sort headers.
7831 * dwarf2expr.h: Sort headers.
7832 * dwarf2expr.c: Sort headers.
7833 * dwarf2-frame.c: Sort headers.
7834 * dwarf2-frame-tailcall.c: Sort headers.
7835 * dwarf-index-write.h: Sort headers.
7836 * dwarf-index-write.c: Sort headers.
7837 * dwarf-index-common.c: Sort headers.
7838 * dwarf-index-cache.h: Sort headers.
7839 * dwarf-index-cache.c: Sort headers.
7840 * dummy-frame.c: Sort headers.
7841 * dtrace-probe.c: Sort headers.
7842 * disasm.h: Sort headers.
7843 * disasm.c: Sort headers.
7844 * disasm-selftests.c: Sort headers.
7845 * dictionary.c: Sort headers.
7846 * dicos-tdep.c: Sort headers.
7847 * demangle.c: Sort headers.
7848 * dcache.h: Sort headers.
7849 * dcache.c: Sort headers.
7850 * darwin-nat.h: Sort headers.
7851 * darwin-nat.c: Sort headers.
7852 * darwin-nat-info.c: Sort headers.
7853 * d-valprint.c: Sort headers.
7854 * d-namespace.c: Sort headers.
7855 * d-lang.c: Sort headers.
7856 * ctf.c: Sort headers.
7857 * csky-tdep.c: Sort headers.
7858 * csky-linux-tdep.c: Sort headers.
7859 * cris-tdep.c: Sort headers.
7860 * cris-linux-tdep.c: Sort headers.
7861 * cp-valprint.c: Sort headers.
7862 * cp-support.c: Sort headers.
7863 * cp-namespace.c: Sort headers.
7864 * cp-abi.c: Sort headers.
7865 * corelow.c: Sort headers.
7866 * corefile.c: Sort headers.
7867 * continuations.c: Sort headers.
7868 * completer.h: Sort headers.
7869 * completer.c: Sort headers.
7870 * complaints.c: Sort headers.
7871 * coffread.c: Sort headers.
7872 * coff-pe-read.c: Sort headers.
7873 * cli-out.h: Sort headers.
7874 * cli-out.c: Sort headers.
7875 * charset.c: Sort headers.
7876 * c-varobj.c: Sort headers.
7877 * c-valprint.c: Sort headers.
7878 * c-typeprint.c: Sort headers.
7879 * c-lang.c: Sort headers.
7880 * buildsym.c: Sort headers.
7881 * buildsym-legacy.c: Sort headers.
7882 * build-id.h: Sort headers.
7883 * build-id.c: Sort headers.
7884 * btrace.c: Sort headers.
7885 * bsd-uthread.c: Sort headers.
7886 * breakpoint.h: Sort headers.
7887 * breakpoint.c: Sort headers.
7888 * break-catch-throw.c: Sort headers.
7889 * break-catch-syscall.c: Sort headers.
7890 * break-catch-sig.c: Sort headers.
7891 * blockframe.c: Sort headers.
7892 * block.c: Sort headers.
7893 * bfin-tdep.c: Sort headers.
7894 * bfin-linux-tdep.c: Sort headers.
7895 * bfd-target.c: Sort headers.
7896 * bcache.c: Sort headers.
7897 * ax-general.c: Sort headers.
7898 * ax-gdb.h: Sort headers.
7899 * ax-gdb.c: Sort headers.
7900 * avr-tdep.c: Sort headers.
7901 * auxv.c: Sort headers.
7902 * auto-load.c: Sort headers.
7903 * arm-wince-tdep.c: Sort headers.
7904 * arm-tdep.c: Sort headers.
7905 * arm-symbian-tdep.c: Sort headers.
7906 * arm-pikeos-tdep.c: Sort headers.
7907 * arm-obsd-tdep.c: Sort headers.
7908 * arm-nbsd-tdep.c: Sort headers.
7909 * arm-nbsd-nat.c: Sort headers.
7910 * arm-linux-tdep.c: Sort headers.
7911 * arm-linux-nat.c: Sort headers.
7912 * arm-fbsd-tdep.c: Sort headers.
7913 * arm-fbsd-nat.c: Sort headers.
7914 * arm-bsd-tdep.c: Sort headers.
7915 * arch-utils.c: Sort headers.
7916 * arc-tdep.c: Sort headers.
7917 * arc-newlib-tdep.c: Sort headers.
7918 * annotate.h: Sort headers.
7919 * annotate.c: Sort headers.
7920 * amd64-windows-tdep.c: Sort headers.
7921 * amd64-windows-nat.c: Sort headers.
7922 * amd64-tdep.c: Sort headers.
7923 * amd64-sol2-tdep.c: Sort headers.
7924 * amd64-obsd-tdep.c: Sort headers.
7925 * amd64-obsd-nat.c: Sort headers.
7926 * amd64-nbsd-tdep.c: Sort headers.
7927 * amd64-nbsd-nat.c: Sort headers.
7928 * amd64-nat.c: Sort headers.
7929 * amd64-linux-tdep.c: Sort headers.
7930 * amd64-linux-nat.c: Sort headers.
7931 * amd64-fbsd-tdep.c: Sort headers.
7932 * amd64-fbsd-nat.c: Sort headers.
7933 * amd64-dicos-tdep.c: Sort headers.
7934 * amd64-darwin-tdep.c: Sort headers.
7935 * amd64-bsd-nat.c: Sort headers.
7936 * alpha-tdep.c: Sort headers.
7937 * alpha-obsd-tdep.c: Sort headers.
7938 * alpha-nbsd-tdep.c: Sort headers.
7939 * alpha-mdebug-tdep.c: Sort headers.
7940 * alpha-linux-tdep.c: Sort headers.
7941 * alpha-linux-nat.c: Sort headers.
7942 * alpha-bsd-tdep.c: Sort headers.
7943 * alpha-bsd-nat.c: Sort headers.
7944 * aix-thread.c: Sort headers.
7945 * agent.c: Sort headers.
7946 * addrmap.c: Sort headers.
7947 * ada-varobj.c: Sort headers.
7948 * ada-valprint.c: Sort headers.
7949 * ada-typeprint.c: Sort headers.
7950 * ada-tasks.c: Sort headers.
7951 * ada-lang.c: Sort headers.
7952 * aarch64-tdep.c: Sort headers.
7953 * aarch64-ravenscar-thread.c: Sort headers.
7954 * aarch64-newlib-tdep.c: Sort headers.
7955 * aarch64-linux-tdep.c: Sort headers.
7956 * aarch64-linux-nat.c: Sort headers.
7957 * aarch64-fbsd-tdep.c: Sort headers.
7958 * aarch64-fbsd-nat.c: Sort headers.
7959 * aarch32-linux-nat.c: Sort headers.
7960
699bd4cf
TT
79612019-04-04 Tom Tromey <tom@tromey.com>
7962
7963 * varobj.c (varobj_create): Update.
7964 * rust-exp.y (struct rust_parser) <update_innermost_block,
7965 lookup_symbol>: New methods.
7966 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
7967 Rename.
7968 (rust_parser::rust_lookup_type)
7969 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
7970 * printcmd.c (display_command, do_one_display): Update.
7971 * parser-defs.h (struct parser_state) <parser_state>: Add
7972 "tracker" parameter.
7973 (block_tracker): New member.
7974 (class innermost_block_tracker) <innermost_block_tracker>: Add
7975 "types" parameter.
7976 <reset>: Remove method.
7977 (innermost_block): Don't declare.
7978 (null_post_parser): Update.
7979 * parse.c (innermost_block): Remove global.
7980 (write_dollar_variable): Update.
7981 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
7982 Remove "tracker_types" parameter.
7983 (parse_expression): Add "tracker" parameter.
7984 (parse_expression_for_completion): Update.
7985 (null_post_parser): Add "tracker" parameter.
7986 * p-exp.y: Update rules.
7987 * m2-exp.y: Update rules.
7988 * language.h (struct language_defn) <la_post_parser>: Add
7989 "tracker" parameter.
7990 * go-exp.y: Update rules.
7991 * f-exp.y: Update rules.
7992 * expression.h (parse_expression, parse_exp_1): Add "tracker"
7993 parameter.
7994 * d-exp.y: Update rules.
7995 * c-exp.y: Update rules.
7996 * breakpoint.c (set_breakpoint_condition): Create an
7997 innermost_block_tracker.
7998 (watch_command_1): Likewise.
7999 * ada-lang.c (resolve): Add "tracker" parameter.
8000 (resolve_subexp): Likewise.
8001 * ada-exp.y (write_var_from_sym): Update.
8002
dac43e32
TT
80032019-04-04 Tom Tromey <tom@tromey.com>
8004
8005 * type-stack.h: New file.
8006 * type-stack.c: New file.
8007 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
8008 type-stack.h.
8009 (insert_into_type_stack, insert_type, push_type, push_type_int)
8010 (insert_type_address_space, pop_type, pop_type_int)
8011 (pop_typelist, pop_type_stack, append_type_stack)
8012 (push_type_stack, get_type_stack, push_typelist)
8013 (follow_type_instance_flags, follow_types): Don't declare.
8014 * parse.c (type_stack): Remove global.
8015 (parse_exp_in_context): Update.
8016 (insert_into_type_stack, insert_type, push_type, push_type_int)
8017 (insert_type_address_space, pop_type, pop_type_int)
8018 (pop_typelist, pop_type_stack, append_type_stack)
8019 (push_type_stack, get_type_stack, push_typelist)
8020 (follow_type_instance_flags, follow_types): Remove (moved to
8021 type-stack.c).
8022 * f-exp.y (type_stack): New global.
8023 Update rules.
8024 (push_kind_type, f_parse): Update.
8025 * d-exp.y (type_stack): New global.
8026 Update rules.
8027 (d_parse): Update.
8028 * c-exp.y (struct c_parse_state) <type_stack>: New member.
8029 Update rules.
8030 * Makefile.in (COMMON_SFILES): Add type-stack.c.
8031 (HFILES_NO_SRCDIR): Add type-stack.h.
8032
2a612529
TT
80332019-04-04 Tom Tromey <tom@tromey.com>
8034
8035 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
8036 (rust_parser::convert_ast_to_expression, rust_parse)
8037 (rust_lex_test_completion, rust_lex_tests): Update.
8038 * parser-defs.h (struct expr_completion_state): New.
8039 (struct parser_state) <parser_state>: Add completion parameter.
8040 <mark_struct_expression, mark_completion_tag>: New methods.
8041 <parse_completion, m_completion_state>: New members.
8042 (prefixify_expression, null_post_parser): Update.
8043 (mark_struct_expression, mark_completion_tag): Don't declare.
8044 * parse.c (parse_completion, expout_last_struct)
8045 (expout_tag_completion_type, expout_completion_name): Remove
8046 globals.
8047 (parser_state::mark_struct_expression)
8048 (parser_state::mark_completion_tag): Now methods.
8049 (prefixify_expression): Add last_struct parameter.
8050 (prefixify_subexp): Likewise.
8051 (parse_exp_1): Update.
8052 (parse_exp_in_context): Add cstate parameter. Update.
8053 (parse_expression_for_completion): Create an
8054 expr_completion_state.
8055 (null_post_parser): Add "completion" parameter.
8056 * p-exp.y: Update rules.
8057 (yylex): Update.
8058 * language.h (struct language_defn) <la_post_parser>: Add
8059 "completing" parameter.
8060 * go-exp.y: Update rules.
8061 (lex_one_token): Update.
8062 * expression.h (parse_completion): Don't declare.
8063 * d-exp.y: Update rules.
8064 (lex_one_token): Update rules.
8065 * c-exp.y: Update rules.
8066 (lex_one_token): Update.
8067 * ada-lang.c (resolve): Add "parse_completion" parameter.
8068 (resolve_subexp): Likewise.
8069 (ada_resolve_function): Likewise.
8070
43476f0b
TT
80712019-04-04 Tom Tromey <tom@tromey.com>
8072
8073 * parser-defs.h (struct parser_state) <start_arglist,
8074 end_arglist>: New methods.
8075 <arglist_len, m_funcall_chain>: New members.
8076 (arglist_len, start_arglist, end_arglist): Don't declare.
8077 * parse.c (arglist_len, funcall_chain): Remove global.
8078 (start_arglist, end_arglist): Remove functions.
8079 (parse_exp_in_context): Update.
8080 * p-exp.y: Update rules.
8081 * m2-exp.y: Update rules.
8082 * go-exp.y: Update rules.
8083 * f-exp.y: Update rules.
8084 * d-exp.y: Update rules.
8085 * c-exp.y: Update rules.
8086
5776fca3
TT
80872019-04-04 Tom Tromey <tom@tromey.com>
8088
8089 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
8090 lex_operator, push_back>: New methods.
8091 Update all rules.
8092 (rust_parser::lex_hex, lex_escape): Rename and update.
8093 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
8094 (rust_parser::lex_operator): Rename and update.
8095 (rust_parser::lex_number, rustyylex, rustyyerror)
8096 (rust_lex_test_init, rust_lex_test_sequence)
8097 (rust_lex_test_push_back, rust_lex_tests): Update.
8098 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
8099 parameter.
8100 <lexptr, prev_lexptr>: New members.
8101 (lexptr, prev_lexptr): Don't declare.
8102 * parse.c (lexptr, prev_lexptr): Remove globals.
8103 (parse_exp_in_context): Update.
8104 * p-exp.y (yylex, yyerror): Update.
8105 * m2-exp.y (parse_number, yylex, yyerror): Update.
8106 * go-exp.y (lex_one_token, yyerror): Update.
8107 * f-exp.y (match_string_literal, yylex, yyerror): Update.
8108 * d-exp.y (lex_one_token, yyerror): Update.
8109 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
8110 (lex_one_token, yyerror): Update.
8111 * ada-lex.l (YY_INPUT): Update.
8112 (rewind_to_char): Update.
8113 * ada-exp.y (yyerror): Update.
8114
8621b685
TT
81152019-04-04 Tom Tromey <tom@tromey.com>
8116
8117 * rust-exp.y (rustyylex, rust_lex_tests): Update.
8118 * parser-defs.h (struct parser_state) <parser_state>: Add new
8119 parameter.
8120 <comma_terminates>: New member.
8121 (comma_terminates): Don't declare global.
8122 * parse.c (comma_terminates): Remove global.
8123 (parse_exp_in_context): Update.
8124 * p-exp.y (yylex): Update.
8125 * m2-exp.y (yylex): Update.
8126 * go-exp.y (lex_one_token): Update.
8127 * f-exp.y (yylex): Update.
8128 * d-exp.y (lex_one_token): Update.
8129 * c-exp.y (lex_one_token): Update.
8130 * ada-lex.l: Update.
8131
28aaf3fd
TT
81322019-04-04 Tom Tromey <tom@tromey.com>
8133
8134 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
8135 (rustyylex, rust_lex_test_init, rust_lex_test_one)
8136 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
8137 * parser-defs.h (paren_depth): Don't declare.
8138 * parse.c (paren_depth): Remove global.
8139 (parse_exp_in_context): Update.
8140 * p-exp.y (paren_depth): New global.
8141 (pascal_parse): Initialize it.
8142 * m2-exp.y (paren_depth): New global.
8143 (m2_parse): Initialize it.
8144 * go-exp.y (paren_depth): New global.
8145 (go_parse): Initialize it.
8146 * f-exp.y (paren_depth): New global.
8147 (f_parse): Initialize it.
8148 * d-exp.y (paren_depth): New global.
8149 (d_parse): Initialize it.
8150 * c-exp.y (paren_depth): New global.
8151 (c_parse): Initialize it.
8152 * ada-lex.l (paren_depth): New global.
8153 (lexer_init): Initialize it.
8154
1e58a4a4
TT
81552019-04-04 Tom Tromey <tom@tromey.com>
8156
8157 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
8158 (rust_parser::convert_ast_to_type)
8159 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
8160 * parser-defs.h (struct parser_state) <parser_state>: Add
8161 parameters. Initialize new members.
8162 <expression_context_block, expression_context_pc>: New members.
8163 * parse.c (expression_context_block, expression_context_pc):
8164 Remove globals.
8165 (parse_exp_in_context): Update.
8166 * p-exp.y: Update all rules.
8167 (yylex): Update.
8168 * m2-exp.y: Update all rules.
8169 (yylex): Update.
8170 * go-exp.y (yylex): Update.
8171 * f-exp.y (yylex): Update.
8172 * d-exp.y: Update all rules.
8173 (yylex): Update.
8174 * c-exp.y: Update all rules.
8175 (lex_one_token, classify_name, yylex, c_parse): Update.
8176 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
8177
37eedb39
TT
81782019-04-04 Tom Tromey <tom@tromey.com>
8179
8180 * gdbarch.h, gdbarch.c: Rebuild.
8181 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
8182 * stap-probe.h:
8183 (struct stap_parse_info): Replace "parser_state" with
8184 "expr_builder".
8185 * parser-defs.h (struct expr_builder): Rename from "parser_state".
8186 (parser_state): New class.
8187 * parse.c (expr_builder): Rename.
8188 (expr_builder::release): Rename.
8189 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
8190 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
8191 (write_exp_elt_longcst, write_exp_elt_floatcst)
8192 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
8193 (write_exp_string_vector, write_exp_bitstring)
8194 (write_exp_msymbol, mark_struct_expression)
8195 (write_dollar_variable)
8196 (insert_type_address_space, increase_expout_size): Replace
8197 "parser_state" with "expr_builder".
8198 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
8199 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
8200 "parser_state" with "expr_builder".
8201
73923d7e
TT
82022019-04-04 Tom Tromey <tom@tromey.com>
8203
8204 * rust-exp.y: Replace "parse_language" with method call.
8205 * p-exp.y:
8206 (yylex): Replace "parse_language" with method call.
8207 * m2-exp.y:
8208 (yylex): Replace "parse_language" with method call.
8209 * go-exp.y (classify_name): Replace "parse_language" with method
8210 call.
8211 * f-exp.y (yylex): Replace "parse_language" with method call.
8212 * d-exp.y (lex_one_token): Replace "parse_language" with method
8213 call.
8214 * c-exp.y:
8215 (lex_one_token, classify_name, yylex): Replace "parse_language"
8216 with method call.
8217 * ada-exp.y (find_primitive_type, type_char)
8218 (type_system_address): Replace "parse_language" with method call.
8219
fa9f5be6
TT
82202019-04-04 Tom Tromey <tom@tromey.com>
8221
8222 * rust-exp.y: Replace "parse_gdbarch" with method call.
8223 * parse.c (write_dollar_variable, insert_type_address_space):
8224 Replace "parse_gdbarch" with method call.
8225 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
8226 call.
8227 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
8228 call.
8229 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
8230 "parse_gdbarch" with method call.
8231 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
8232 with method call.
8233 * f-exp.y (parse_type, parse_f_type, yylex): Replace
8234 "parse_gdbarch" with method call.
8235 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
8236 "parse_gdbarch" with method call.
8237 * c-exp.y (parse_type, parse_number, classify_name): Replace
8238 "parse_gdbarch" with method call.
8239 * ada-lex.l: Replace "parse_gdbarch" with method call.
8240 * ada-exp.y (parse_type, find_primitive_type, type_char)
8241 (type_system_address): Replace "parse_gdbarch" with method call.
8242
1201a264
TT
82432019-04-04 Tom Tromey <tom@tromey.com>
8244
8245 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
8246 * stap-probe.c (stap_parse_argument): Update.
8247 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
8248 initial_size parameter.
8249 * rust-exp.y (rust_lex_tests): Update.
8250 * parse.c (parser_state): Update.
8251 (parse_exp_in_context): Update.
8252 * parser-defs.h (struct parser_state) <parser_state>: Remove
8253 "initial_size" parameter.
8254
e3980ce2
TT
82552019-04-04 Tom Tromey <tom@tromey.com>
8256
8257 * parser-defs.h (increase_expout_size): Don't declare.
8258 * parse.c (increase_expout_size): Now static.
8259
e9f8e3f1
TS
82602019-04-04 Thomas Schwinge <thomas@codesourcery.com>
8261
8262 * gnu-nat.c (gnu_nat_target::wait): Fix
8263 target_waitstatus_to_string call.
8264
d7df6549
AB
82652019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8266
8267 * eval.c (evaluate_subexp_standard): Handle internal functions
8268 during Fortran function call handling.
8269
8bdc1658
AB
82702019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8271
8272 * NEWS: Mention new internal functions.
8273 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
8274 (read_base_type): Use dwarf2_init_complex_target_type.
8275 * value.c (creal_internal_fn): New function.
8276 (cimag_internal_fn): New function.
8277 (_initialize_values): Register new internal functions.
8278
c29705b7
PW
82792019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8280
8281 * infrun.c (stop_all_threads): If debug_infrun, always
8282 trace the wait status after wait_one, using
8283 target_waitstatus_to_string and target_pid_to_str.
8284 (handle_inferior_event): Replace various trace of
8285 wait status kind by a single trace.
8286 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
8287 wait status kind image by target_waitstatus_to_string.
8288 * target/waitstatus.c (target_waitstatus_to_string): Fix
8289 obsolete comment.
8290
05caa1d2
TT
82912019-04-01 Tom Tromey <tromey@adacore.com>
8292
8293 PR symtab/23331:
8294 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
8295
9d1447e0
SDJ
82962019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
8297 Pedro Alves <palves@redhat.com>
8298
8299 * top.c (quit_force): Call 'finalize_values'.
8300 * value.c (finalize_values): New function.
8301 * value.h (finalize_values): Declare.
8302
7734102d
EZ
83032019-03-30 Eli Zaretskii <eliz@gnu.org>
8304
8305 * NEWS: Announce $_gdb_major and $_gdb_minor.
8306
8307 * top.c (init_gdb_version_vars): New function.
8308 (gdb_init): Call init_gdb_version_vars.
8309
188e1fa9
TT
83102019-03-29 Tom Tromey <tromey@adacore.com>
8311
8312 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
8313 help text. Remove dead code.
8314
2880242d
KS
83152019-03-29 Keith Seitz <keiths@redhat.com>
8316
8317 From Siddhesh Poyarekar:
8318 * f-lang.h (f77_get_upperbound): Return LONGEST.
8319 (f77_get_lowerbound): Likewise.
8320 * f-typeprint.c (f_type_print_varspec_suffix): Expand
8321 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
8322 print them.
8323 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
8324 plongest to format print it.
8325 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
8326 (f77_get_upperbound): Likewise.
8327 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
8328 LOWER_BOUND to LONGEST.
8329 (f77_create_arrayprint_offset_tbl): Likewise.
8330
cc1defb1
KS
83312019-03-29 Keith Seitz <keiths@redhat.com>
8332
8333 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
8334 %s/pulongest for TYPE_LENGTH instead of %d in format
8335 strings.
8336 * ada-typerint.c (ada_print_type): Likewise.
8337 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
8338 * compile/compile-c-support.c (generate_register_struct): Likewise.
8339 * gdbtypes.c (recursive_dump_type): Likewise.
8340 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
8341 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
8342 instead of %d in format strings.
8343 * riscv-tdep.c (riscv_type_alignment): Cast second argument
8344 to std::min to ULONGEST.
8345 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
8346 instead of %d in format strings.
8347 * tracepoint.c (info_scope_command): Likewise.
8348 * typeprint.c (print_offset_data::update)
8349 (print_offset_data::finish): Likewise.
8350 * xtensa-tdep.c (xtensa_store_return_value)
8351 (xtensa_push_dummy_call): Likewise.
8352
e432ccf1
JT
83532019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
8354
8355 * windows-nat.c (display_selector): Fixed format specifications
8356 for 64-bit Cygwin.
8357
65d2b333
PW
83582019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8359
8360 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
8361
f489207e
SL
83622019-03-28 Sandra Loosemore <sandra@codesourcery.com>
8363
8364 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
8365 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
8366 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
8367 (nios2_linux_init_abi): Install it.
8368
bffa1015
AH
83692019-03-28 Alan Hayward <alan.hayward@arm.com>
8370
8371 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
8372
fc96163a
AH
83732019-03-28 Alan Hayward <alan.hayward@arm.com>
8374
8375 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
8376
20dc7e9b
PW
83772019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8378 Tom Tromey <tromey@adacore.com>
8379
8380 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
8381
7f5331a8
JB
83822019-03-26 Joel Brobecker <brobecker@adacore.com>
8383
8384 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
8385 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
8386 method to compute the bounds of range types. Also print "[evaluated]"
8387 if the bounds' values come from a dynamic evaluation.
8388
18c77628
AB
83892019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
8390
8391 * cp-valprint.c (cp_print_value_fields): Don't print trailing
8392 whitespace when pretty printing is on.
8393
53c973f2
AH
83942019-03-26 Alan Hayward <alan.hayward@arm.com>
8395
e79be6e5 8396 * ppc-linux-nat.c: Add include.
53c973f2 8397
d851aa71
AH
83982019-03-26 Alan Hayward <alan.hayward@arm.com>
8399
e79be6e5 8400 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 8401
2fe7bab7
AH
84022019-03-26 Alan Hayward <alan.hayward@arm.com>
8403
e79be6e5 8404 * arm-linux-nat.c: Add include.
2fe7bab7 8405
068ef30e
SM
84062019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
8407
8408 * source-cache.c (source_cache::get_source_lines): Re-read
8409 fullname after calling open_source_file.
8410
81a24d04
JB
84112019-03-25 John Baldwin <jhb@FreeBSD.org>
8412
8413 * NEWS: Mention TLS support for FreeBSD.
8414
79e7ae11
TT
84152019-03-25 Tom Tromey <tromey@adacore.com>
8416
8417 * minsyms.c (BUNCH_SIZE): Update comment.
8418 (~minimal_symbol_reader): Remove old comment.
8419 (compact_minimal_symbols): Update comment.
8420 (minimal_symbol_reader::install): Remove old comment. Update
8421 other comments.
8422
d45963c2
AH
84232019-03-25 Alan Hayward <alan.hayward@arm.com>
8424
8425 * s390-linux-nat.c: Add include.
8426
0f83012e
AH
84272019-03-25 Alan Hayward <alan.hayward@arm.com>
8428
8429 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
8430 Call linux_get_hwcap.
8431 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
8432 Likewise.
8433 (aarch64_linux_get_hwcap): Remove function.
8434 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
8435 declaration.
8436 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
8437 linux_get_hwcap.
8438 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
8439 * linux-tdep.c (linux_get_hwcap): Add function.
8440 (linux_get_hwcap2): Likewise.
8441 * linux-tdep.h (linux_get_hwcap): Add declaration.
8442 (linux_get_hwcap2): Likewise.
8443 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
8444 (ppc_linux_get_hwcap2): Likewise.
8445 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
8446 linux_get_hwcap.
8447 (ppc_linux_nat_target::insert_watchpoint): Likewise.
8448 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
8449 (ppc_linux_nat_target::read_description): Likewise.
8450 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
8451 * s390-linux-nat.c: Likewise.
8452 * s390-linux-tdep.c (s390_core_read_description): Likewise.
8453
6640a367
TT
84542019-03-24 Tom Tromey <tom@tromey.com>
8455
8456 * ada-lang.c (standard_lookup): Simplify initialization.
8457 (ada_lookup_symbol_nonlocal): Simplify return.
8458 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
8459 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
8460 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
8461 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
8462 initialization.
8463 * solib.c (solib_global_lookup): Simplify.
8464 * symtab.c (null_block_symbol): Remove.
8465 (symbol_cache_lookup): Simplify returns.
8466 (lookup_language_this): Simplify returns.
8467 (lookup_symbol_aux): Simplify return.
8468 (lookup_local_symbol): Simplify returns.
8469 (lookup_global_symbol_from_objfile): Simplify return.
8470 (lookup_symbol_in_objfile_symtabs)
8471 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
8472 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
8473 (lookup_static_symbol, lookup_global_symbol): Simplify return.
8474 * cp-namespace.c (cp_lookup_bare_symbol)
8475 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
8476 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
8477 (cp_lookup_nested_symbol): Don't use null_block_symbol.
8478 (cp_lookup_symbol_via_imports): Simplify initialization.
8479 (find_symbol_in_baseclass): Likewise.
8480 * symtab.h (null_block_symbol): Remove.
8481 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
8482 (d_lookup_nested_symbol, d_lookup_symbol_imports)
8483 (d_lookup_symbol_module): Likewise.
8484 (find_symbol_in_baseclass): Simplify initialization.
8485
a930ebcd
TT
84862019-03-24 Tom Tromey <tom@tromey.com>
8487
8488 * expression.h: Don't include symtab.h.
8489 (struct block): Forward declare.
8490
582942f4
TT
84912019-03-24 Tom Tromey <tom@tromey.com>
8492
8493 * c-exp.y (typebase): Remove casts.
8494 * gdbtypes.c (lookup_unsigned_typename, )
8495 (lookup_signed_typename): Remove cast.
8496 * eval.c (parse_to_comma_and_eval): Remove cast.
8497 * parse.c (write_dollar_variable): Remove cast.
8498 * block.h (struct block) <superblock>: Now const.
8499 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
8500 * psymtab.c (psym_map_matching_symbols): Make "block" const.
8501 (map_block): Make "block" const.
8502 * symfile.h (struct quick_symbol_functions)
8503 <map_matching_symbols>: Constify block argument to "callback".
8504 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
8505 const.
8506 (find_pc_sect_compunit_symtab): Make "b" const.
8507 (find_symbol_at_address): Likewise.
8508 (search_symbols): Likewise.
8509 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
8510 (dw2_debug_names_lookup_symbol): Likewise.
8511 (dw2_map_matching_symbols): Update.
8512 * p-valprint.c (pascal_val_print): Remove "block".
8513 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
8514 (aux_add_nonlocal_symbols): Make "block" const.
8515 (resolve_subexp): Remove cast.
8516 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
8517 const.
8518 (iterate_over_file_blocks): Likewise.
8519 * f-exp.y (%union) <bval>: Remove.
8520 * coffread.c (patch_opaque_types): Make "b" const.
8521 * spu-tdep.c (spu_catch_start): Make "block" const.
8522 * c-valprint.c (print_unpacked_pointer): Remove "block".
8523 * symmisc.c (dump_symtab_1): Make "b" const.
8524 (block_depth): Make "block" const.
8525 * d-exp.y (%union) <bval>: Remove.
8526 * cp-support.h (cp_lookup_rtti_type): Update.
8527 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
8528 * psymtab.c (psym_lookup_symbol): Make "block" const.
8529 (maintenance_check_psymtabs): Make "b" const.
8530 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
8531 (enumerate_locals, enumerate_args): Update.
8532 * python/py-symtab.c (stpy_global_block): Make "block" const.
8533 (stpy_static_block): Likewise.
8534 * inline-frame.c (block_starting_point_at): Make "new_block"
8535 const.
8536 * block.c (find_block_in_blockvector): Make return type const.
8537 (blockvector_for_pc_sect): Make "b" const.
8538 (find_block_in_blockvector): Make "b" const.
8539
7ad417dd
TT
85402019-03-23 Tom Tromey <tom@tromey.com>
8541
8542 * varobj.c (varobj_create): Update.
8543 * symfile.c (clear_symtab_users): Don't reset innermost_block.
8544 * printcmd.c (display_command, do_one_display): Don't reset
8545 innermost_block.
8546 * parser-defs.h (enum innermost_block_tracker_type): Move to
8547 expression.h.
8548 (innermost_block): Update comment.
8549 * parse.c (parse_exp_1): Add tracker_types parameter.
8550 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
8551 tracker_types parameter. Reset innermost_block.
8552 (parse_exp_in_context): Remove.
8553 (parse_expression_for_completion): Update.
8554 * objfiles.c (~objfile): Don't reset expression_context_block or
8555 innermost_block.
8556 * expression.h (enum innermost_block_tracker_type): Move from
8557 parser-defs.h.
8558 (parse_exp_1): Add tracker_types parameter.
8559 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
8560 reset innermost_block.
8561
b366c208
TT
85622019-03-23 Tom Tromey <tom@tromey.com>
8563
8564 * objfiles.h: Include bcache.h.
8565
9bb9b2f9
TT
85662019-03-23 Tom Tromey <tom@tromey.com>
8567
8568 * linespec.c (get_current_search_block): Use
8569 scoped_restore_current_language.
8570 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
8571
59c28372
AH
85722019-03-22 Alan Hayward <alan.hayward@arm.com>
8573 Jiong Wang <jiong.wang@arm.com>
8574
8575 * aarch64-linux-tdep.c
8576 (aarch64_linux_iterate_over_regset_sections): Check for pauth
8577 section.
8578 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
8579
17e116a7
AH
85802019-03-22 Alan Hayward <alan.hayward@arm.com>
8581 Jiong Wang <jiong.wang@arm.com>
8582
8583 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
8584 instructions.
8585 (aarch64_analyze_prologue_test): Add PACIASP test.
8586 (aarch64_prologue_prev_register): Unmask PC value.
8587
11e1b75f
AH
85882019-03-22 Alan Hayward <alan.hayward@arm.com>
8589 Jiong Wang <jiong.wang@arm.com>
8590
8591 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
8592 (aarch64_dwarf2_prev_register): Unmask PC value.
8593 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
8594 (aarch64_execute_dwarf_cfa_vendor_op): Check for
8595 DW_CFA_AARCH64_negate_ra_state.
8596 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
8597
34dcc7cf
AH
85982019-03-22 Alan Hayward <alan.hayward@arm.com>
8599 Jiong Wang <jiong.wang@arm.com>
8600
8601 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
8602 registers.
8603 (aarch64_pseudo_register_name): Likewise.
8604 (aarch64_pseudo_register_type): Likewise.
8605 (aarch64_pseudo_register_reggroup_p): Likewise.
8606 (aarch64_gdbarch_init): Add pauth registers.
8607 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
8608 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
8609 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
8610 (struct gdbarch_tdep): Add regnum for ra_state.
8611
1ef53e6b
AH
86122019-03-22 Alan Hayward <alan.hayward@arm.com>
8613 Jiong Wang <jiong.wang@arm.com>
8614
8615 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
8616
76bed0fd
AH
86172019-03-22 Alan Hayward <alan.hayward@arm.com>
8618 Jiong Wang <jiong.wang@arm.com>
8619
8620 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
8621 function.
8622 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
8623 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
8624 (aarch64_gdbarch_init): Add puth registers.
8625 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
8626 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
8627 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
8628
ee4fbcfa
AH
86292019-03-22 Alan Hayward <alan.hayward@arm.com>
8630 Jiong Wang <jiong.wang@arm.com>
8631
8632 * aarch64-linux-nat.c
8633 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
8634 * aarch64-linux-tdep.c
8635 (aarch64_linux_core_read_description): Likewise.
8636 (aarch64_linux_get_hwcap): New function.
8637 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
8638 (aarch64_linux_get_hwcap): New declaration.
8639
6dc0ebde
AH
86402019-03-22 Alan Hayward <alan.hayward@arm.com>
8641 Jiong Wang <jiong.wang@arm.com>
8642
8643 * aarch64-linux-nat.c
8644 (aarch64_linux_nat_target::read_description): Add pauth param.
8645 * aarch64-linux-tdep.c
8646 (aarch64_linux_core_read_description): Likewise.
8647 * aarch64-tdep.c (struct target_desc): Add in pauth.
8648 (aarch64_read_description): Add pauth param.
8649 (aarch64_gdbarch_init): Likewise.
8650 * aarch64-tdep.h (aarch64_read_description): Likewise.
8651 * arch/aarch64.c (aarch64_create_target_description): Likewise.
8652 * arch/aarch64.h (aarch64_create_target_description): Likewise.
8653 * features/Makefile: Add new files.
8654 * features/aarch64-pauth.c: New file.
8655 * features/aarch64-pauth.xml: New file.
8656
595915c1
TT
86572019-03-20 Tom Tromey <tromey@adacore.com>
8658
8659 * infrun.c (handle_inferior_event): Rename from
8660 handle_inferior_event_1. Create a scoped_value_mark.
8661 (handle_inferior_event): Remove.
8662
4c7d57e7
TT
86632019-03-19 Tom Tromey <tromey@adacore.com>
8664
8665 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
8666 * infrun.h (print_stop_event): Add "displays" parameter.
8667 * infrun.c (print_stop_event): Add "displays" parameter.
8668
cb246234
PA
86692019-03-19 Pedro Alves <palves@redhat.com>
8670
8671 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
8672 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
8673 to -1. Fix TABs vs spaces.
8674 (tui_ui_out::tui_ui_out): Don't initialize fields here.
8675 * tui/tui-out.h (tui_ui_out) Add intro comments.
8676 <m_line, m_start_of_line>: In-class initialize, and add describing
8677 comment.
8678
3a0e45b2
AH
86792019-03-18 Alan Hayward <alan.hayward@arm.com>
8680
8681 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
8682 variable names.
8683 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
8684
5371b850
PA
86852019-03-18 Pedro Alves <palves@redhat.com>
8686 Eli Zaretskii <eliz@gnu.org>
8687
8688 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
8689 m_line and m_start_of_line.
8690
b17c4cd0
EZ
86912019-03-18 Eli Zaretskii <eliz@gnu.org>
8692
8693 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
8694 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
8695 it returns a newline. This fixes a regression in TU mode, whereby
8696 the next line is output on the same screen line as the user input.
8697
4bd56d18
TT
86982019-03-18 Tom Tromey <tromey@adacore.com>
8699
8700 * minsyms.c (minimal_symbol_reader::install): Remove call to
8701 obstack_blank.
8702
55c10aca
PA
87032019-03-18 Pedro Alves <palves@redhat.com>
8704
8705 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
8706 New globals.
8707 (apply_style): New, factored out from ...
8708 (apply_ansi_escape): ... this. Handle reverse video mode.
8709 (tui_set_reverse_mode): New function.
8710 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
8711 * tui/tui-winsource.c (tui_show_source_line): Use
8712 tui_set_reverse_mode instead of setting A_STANDOUT.
8713 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
8714 New setter methods.
8715
647bb750
HD
87162019-03-18 Hannes Domani <ssbssa@yahoo.de>
8717
8718 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
8719 Handle tabs.
8720
bff8c71f
TT
87212019-03-18 Tom Tromey <tromey@adacore.com>
8722
8723 * ada-lang.c (empty_array): Add "high" parameter.
8724 (ada_evaluate_subexp): Update.
8725
58785d98
ST
87262019-03-17 Sergei Trofimovich <siarheit@google.com>
8727
8728 * unittests/string_view-selftests.c: Define
8729 _initialize_string_view_selftests unconditionally.
8730
d4cbef22
ВМ
87312019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
8732
8733 PR gdb/24350
8734 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
8735
fce4c071
ВМ
87362019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
8737
8738 PR gdb/24351
8739 * windows-nat.c (display_selector): Fix format specifiers.
8740
f7f0a123
EZ
87412019-03-17 Eli Zaretskii <eliz@gnu.org>
8742
8743 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
8744 tui_refill_source_window instead of tui_refresh_win, to update the
8745 current execution line. This fixes redisplay of the current line
8746 when stepping through the code with "next" or "step".
8747
ab42892f
EZ
87482019-03-16 Eli Zaretskii <eliz@gnu.org>
8749
8750 * source-cache.c (source_cache::get_source_lines): Call
8751 find_source_lines to initialize s->nlines. This fixes vertical
8752 scrolling of TUI source window when the DOWN arrow is pressed.
8753
8d8c087f
PW
87542019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8755
8756 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
8757 linux-thread-db.c (_initialize_thread_db): Likewise.
8758
798e1c30
EZ
87592019-03-16 Eli Zaretskii <eliz@gnu.org>
8760
8761 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
8762 wclrtoeol in tui_show_source_line". This reverts changes made in
8763 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
8764
eefba3da
TT
87652019-03-15 Tom Tromey <tom@tromey.com>
8766
8767 * symtab.h (struct minimal_symbol): Derive from
8768 general_symbol_info.
8769 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
8770 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8771 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8772 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8773 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
8774 (MSYMBOL_SEARCH_NAME): Update.
8775 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
8776 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
8777 * minsyms.c (minimal_symbol_reader::record_full): Update.
8778
0de2420c
TT
87792019-03-15 Tom Tromey <tom@tromey.com>
8780
8781 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
8782
042d75e4
TT
87832019-03-15 Tom Tromey <tom@tromey.com>
8784
8785 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
8786 unique_xmalloc_ptr.
8787 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
8788 Update.
8789 * minsyms.c (lookup_minimal_symbol_by_pc_section)
8790 (build_minimal_symbol_hash_tables)
8791 (minimal_symbol_reader::install): Update.
8792
db92718b
TT
87932019-03-15 Tom Tromey <tom@tromey.com>
8794
8795 * symtab.c (create_demangled_names_hash): Update.
8796 (symbol_set_names): Update.
8797 * objfiles.h (struct objfile_per_bfd_storage)
8798 <demangled_names_hash>: Now an htab_up.
8799 * objfiles.c (objfile_per_bfd_storage): Simplify.
8800
d6797f46
TT
88012019-03-15 Tom Tromey <tom@tromey.com>
8802
8803 * objfiles.h (struct objfile_per_bfd_storage): Declare
8804 destructor.
8805 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
8806 New.
8807 (get_objfile_bfd_data): Use new. Don't initialize
8808 language_of_main.
8809 (free_objfile_per_bfd_storage): Remove.
8810 (objfile_bfd_data_free, objfile::~objfile): Use delete.
8811
741d7538
TT
88122019-03-15 Tom Tromey <tom@tromey.com>
8813
8814 * symfile.c (reread_symbols): Update.
8815 * objfiles.c (objfile::objfile): Update.
8816 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
8817 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
8818 comment.
8819 (minimal_symbol_reader::install): Update.
8820 (terminate_minimal_symbol_table): Remove.
8821 * jit.c (jit_object_close_impl): Update.
8822
788c80d1
TT
88232019-03-15 Tom Tromey <tom@tromey.com>
8824
8825 * minsyms.c (minimal_symbol_reader::record_full): Remove some
8826 initializations.
8827
1b7a07cb
TT
88282019-03-15 Tom Tromey <tom@tromey.com>
8829
8830 * objfiles.h (struct objfile_per_bfd_storage)
8831 <demangled_hash_languages>: Now a bitset.
8832 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
8833 (lookup_minimal_symbol): Update.
8834
3db066bc
TT
88352019-03-15 Tom Tromey <tom@tromey.com>
8836
8837 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
8838 Don't return the symbol.
8839 * coffread.c (record_minimal_symbol): Use record_full.
8840
3fff2c37
EZ
88412019-03-14 Eli Zaretskii <eliz@gnu.org>
8842
8843 The MS-Windows port of ncurses fails to switch to a color pair if
8844 one or both of the colors are the implicit default colors. This
8845 change records the default colors when TUI is initialized, and
8846 then specifies them explicitly when a color pair uses the default
8847 colors. This allows color styling in TUI mode on MS-Windows.
8848
8849 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
8850 ncurses_norm_attr.
8851 (tui_initialize_io) [__MINGW32__]: Record the default terminal
8852 colors in ncurses_norm_attr.
8853 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
8854 "none", replace it with the default color recorded in
8855 ncurses_norm_attr.
8856
3b336828
TT
88572019-03-14 Tom Tromey <tromey@adacore.com>
8858
8859 * source-cache.h (class source_cache) <get_source_lines>: Return
8860 std::string.
8861 * source-cache.c (source_cache::extract_lines): Handle case where
8862 first_pos==npos. Return std::string.
8863 (source_cache::get_source_lines): Update.
8864
d085f989
TT
88652019-03-14 Tom Tromey <tromey@adacore.com>
8866
8867 * NEWS: Add item for "style sources" commands.
8868 * source-cache.c (source_cache::get_source_lines): Check
8869 source_styling.
8870 * cli/cli-style.c (source_styling): New global.
8871 (_initialize_cli_style): Add "style sources" commands.
8872 (show_style_sources): New function.
8873 * cli/cli-style.h (source_styling): Declare.
8874
6f11e682
TT
88752019-03-14 Pedro Alves <palves@redhat.com>
8876 Tom Tromey <tromey@adacore.com>
8877
8878 * tui/tui-winsource.h (tui_refill_source_window): Declare.
8879 * tui/tui-winsource.c (tui_refill_source_window): New function,
8880 from...
8881 (tui_horizontal_source_scroll): ... here. Move some logic.
8882 * cli/cli-style.c (set_style_enabled): Notify new observable.
8883 * tui/tui-hooks.c (tui_redisplay_source): New function.
8884 (tui_attach_detach_observers): Attach or detach
8885 tui_redisplay_source.
8886 * observable.h (source_styling_changed): New observable.
8887 * observable.c: Define source_styling_changed observable.
8888
a068643d
TT
88892019-03-13 Tom Tromey <tromey@adacore.com>
8890
8891 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
8892 (i386_gnu_nat_target::store_registers): Update.
8893 * target-debug.h (target_debug_print_std_string): New macro.
8894 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
8895 * windows-tdep.c (display_one_tib): Update.
8896 * tui/tui-stack.c (tui_make_status_line): Update.
8897 * top.c (print_inferior_quit_action): Update.
8898 * thread.c (thr_try_catch_cmd): Update.
8899 (add_thread_with_info): Update.
8900 (thread_target_id_str): Update.
8901 (thr_try_catch_cmd): Update.
8902 (thread_command): Update.
8903 (thread_find_command): Update.
8904 * record-btrace.c (record_btrace_target::info_record)
8905 (record_btrace_resume_thread, record_btrace_target::resume)
8906 (record_btrace_cancel_resume, record_btrace_step_thread)
8907 (record_btrace_target::wait, record_btrace_target::wait)
8908 (record_btrace_target::wait, record_btrace_target::stop): Update.
8909 * progspace.c (print_program_space): Update.
8910 * process-stratum-target.c
8911 (process_stratum_target::thread_address_space): Update.
8912 * linux-fork.c (linux_fork_mourn_inferior)
8913 (detach_checkpoint_command, info_checkpoints_command)
8914 (linux_fork_context): Update.
8915 (linux_fork_detach): Update.
8916 (class scoped_switch_fork_info): Update.
8917 (delete_checkpoint_command): Update.
8918 * infrun.c (follow_fork_inferior): Update.
8919 (follow_fork_inferior): Update.
8920 (proceed_after_vfork_done): Update.
8921 (handle_vfork_child_exec_or_exit): Update.
8922 (follow_exec): Update.
8923 (displaced_step_prepare_throw): Update.
8924 (displaced_step_restore): Update.
8925 (start_step_over): Update.
8926 (resume_1): Update.
8927 (clear_proceed_status_thread): Update.
8928 (proceed): Update.
8929 (print_target_wait_results): Update.
8930 (do_target_wait): Update.
8931 (context_switch): Update.
8932 (stop_all_threads): Update.
8933 (restart_threads): Update.
8934 (finish_step_over): Update.
8935 (handle_signal_stop): Update.
8936 (switch_back_to_stepped_thread): Update.
8937 (keep_going_pass_signal): Update.
8938 (print_exited_reason): Update.
8939 (normal_stop): Update.
8940 * inferior.c (inferior_pid_to_str): Change return type.
8941 (print_selected_inferior): Update.
8942 (add_inferior): Update.
8943 (detach_inferior): Update.
8944 * dummy-frame.c (fprint_dummy_frames): Update.
8945 * dcache.c (dcache_info_1): Update.
8946 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
8947 (btrace_fetch, btrace_clear): Update.
8948 * linux-tdep.c (linux_core_pid_to_str): Change return type.
8949 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
8950 type.
8951 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
8952 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
8953 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
8954 * gdbarch.c, gdbarch.h: Rebuild.
8955 * gdbarch.sh (core_pid_to_str): Change return type.
8956 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
8957 return type.
8958 (windows_nat_target::pid_to_str): Change return type.
8959 (windows_delete_thread): Update.
8960 (windows_nat_target::attach): Update.
8961 (windows_nat_target::files_info): Update.
8962 * target-delegates.c: Rebuild.
8963 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
8964 return type.
8965 (sol_thread_target::pid_to_str): Change return type.
8966 * remote.c (class remote_target) <pid_to_str>: Change return
8967 type.
8968 (remote_target::pid_to_str): Change return type.
8969 (extended_remote_target::attach, remote_target::remote_stop_ns)
8970 (remote_target::remote_notif_remove_queued_reply)
8971 (remote_target::push_stop_reply, remote_target::disable_btrace):
8972 Update.
8973 (extended_remote_target::attach): Update.
8974 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
8975 type.
8976 (gdbsim_target::pid_to_str): Change return type.
8977 * ravenscar-thread.c (struct ravenscar_thread_target)
8978 <pid_to_str>: Change return type.
8979 (ravenscar_thread_target::pid_to_str): Change return type.
8980 * procfs.c (class procfs_target) <pid_to_str>: Change return
8981 type.
8982 (procfs_target::pid_to_str): Change return type.
8983 (procfs_target::attach): Update.
8984 (procfs_target::detach): Update.
8985 (procfs_target::fetch_registers): Update.
8986 (procfs_target::store_registers): Update.
8987 (procfs_target::wait): Update.
8988 (procfs_target::files_info): Update.
8989 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
8990 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
8991 return type.
8992 (nto_procfs_target::pid_to_str): Change return type.
8993 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
8994 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
8995 return type.
8996 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
8997 (exit_lwp): Update.
8998 (attach_proc_task_lwp_callback, get_detach_signal)
8999 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
9000 (linux_nat_target::resume, wait_lwp, stop_callback)
9001 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
9002 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
9003 (linux_nat_wait_1, resume_stopped_resumed_lwps)
9004 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
9005 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
9006 type.
9007 (inf_ptrace_target::attach): Update.
9008 (inf_ptrace_target::files_info): Update.
9009 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
9010 type.
9011 (go32_nat_target::pid_to_str): Change return type.
9012 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
9013 (gnu_nat_target::wait): Update.
9014 (gnu_nat_target::wait): Update.
9015 (gnu_nat_target::resume): Update.
9016 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
9017 (fbsd_nat_target::wait): Update.
9018 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
9019 type.
9020 (darwin_nat_target::attach): Update.
9021 * corelow.c (class core_target) <pid_to_str>: Change return type.
9022 (core_target::pid_to_str): Change return type.
9023 * target.c (normal_pid_to_str): Change return type.
9024 (default_pid_to_str): Likewise.
9025 (target_pid_to_str): Change return type.
9026 (target_translate_tls_address): Update.
9027 (target_announce_detach): Update.
9028 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
9029 return type.
9030 (bsd_uthread_target::pid_to_str): Change return type.
9031 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
9032 type.
9033 (bsd_kvm_target::pid_to_str): Change return type.
9034 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
9035 return type.
9036 (aix_thread_target::pid_to_str): Change return type.
9037 * target.h (struct target_ops) <pid_to_str>: Change return type.
9038 (target_pid_to_str, normal_pid_to_str): Likewise.
9039 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
9040 type.
9041 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
9042 type.
9043 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
9044 return type.
9045 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
9046 type.
9047 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
9048 type.
9049 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
9050 return type.
9051
b4be1b06
SM
90522019-03-13 Simon Marchi <simon.marchi@ericsson.com>
9053
9054 * NEWS: Mention that the new default MI version is 3. Mention
9055 changes to the output of commands and events that deal with
9056 multi-location breakpoints.
9057 * breakpoint.c: Include "mi/mi-out.h".
9058 (print_one_breakpoint): Change output syntax if using MI version
9059 >= 3.
9060 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
9061 New.
9062 (mi_multi_location_breakpoint_output_fixed): New.
9063 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
9064 (mi_cmd_fix_multi_location_breakpoint_output): New.
9065 (mi_multi_location_breakpoint_output_fixed): New.
9066 * mi/mi-cmds.c (mi_cmds): Register command
9067 -fix-multi-location-breakpoint-output.
9068 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
9069 interpreter "mi".
9070
8e5e5494
SM
90712019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9072
9073 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
9074 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
9075 instantiate mi_ui_out based on interpreter name.
9076 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
9077 * mi/mi-main.c (mi_load_progress): Likewise.
9078
197df35e
JB
90792019-03-12 John Baldwin <jhb@FreeBSD.org>
9080
9081 * NEWS: Combine separate "New targets" sections for 8.3.
9082
8399425f
JB
90832019-03-12 John Baldwin <jhb@FreeBSD.org>
9084
9085 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
9086 (ppcfbsd_init_abi): Install gdbarch
9087 "fetch_tls_load_module_address" and "get_thread_local_address"
9088 methods.
9089
b0f87ed0
JB
90902019-03-12 John Baldwin <jhb@FreeBSD.org>
9091
9092 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
9093 (riscv_fbsd_init_abi): Install gdbarch
9094 "fetch_tls_load_module_address" and "get_thread_local_address"
9095 methods.
9096
ce25aa57
JB
90972019-03-12 John Baldwin <jhb@FreeBSD.org>
9098
9099 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
9100 (i386fbsd_init_abi): Install gdbarch
9101 "fetch_tls_load_module_address" and "get_thread_local_address"
9102 methods.
9103
f5424cfa
JB
91042019-03-12 John Baldwin <jhb@FreeBSD.org>
9105
9106 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
9107 (amd64fbsd_init_abi): Install gdbarch
9108 "fetch_tls_load_module_address" and "get_thread_local_address"
9109 methods.
9110
945f3901
JB
91112019-03-12 John Baldwin <jhb@FreeBSD.org>
9112
9113 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
9114 (struct fbsd_pspace_data): New type.
9115 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
9116 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
9117 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
9118 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
9119 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
9120
ef0bd204
JB
91212019-03-12 John Baldwin <jhb@FreeBSD.org>
9122
9123 * gdbtypes.c (lookup_struct_elt): New function.
9124 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
9125 * gdbtypes.h (struct struct_elt): New type.
9126 (lookup_struct_elt): New prototype.
9127
36c53a02
JB
91282019-03-12 John Baldwin <jhb@FreeBSD.org>
9129
9130 * gdbtypes.c (lookup_struct_elt_type): Update comment and
9131 remove disabled code block.
9132
6e056c81
JB
91332019-03-12 John Baldwin <jhb@FreeBSD.org>
9134
9135 * gdbarch.sh (get_thread_local_address): New method.
9136 * gdbarch.h, gdbarch.c: Regenerate.
9137 * target.c (target_translate_tls_address): Use
9138 gdbarch_get_thread_local_address if present instead of
9139 target::get_thread_local_address.
9140
cd250a18
JB
91412019-03-12 John Baldwin <jhb@FreeBSD.org>
9142
9143 * target.h (target::get_thread_local_address): Update comment.
9144
df22c1e5
JB
91452019-03-12 John Baldwin <jhb@FreeBSD.org>
9146
9147 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
9148 objfile->separate_debug_objfile_backlink if not NULL.
9149
dd6876c9
JB
91502019-03-12 John Baldwin <jhb@FreeBSD.org>
9151
9152 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
9153 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
9154 (amd64bsd_store_inferior_registers): Likewise.
9155 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
9156 Enable segment base registers.
9157 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
9158 PT_GETFSBASE and PT_GETGSBASE.
9159 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
9160 PT_SETGSBASE.
9161 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
9162 segment base registers.
9163 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
9164
1163a4b7
JB
91652019-03-12 John Baldwin <jhb@FreeBSD.org>
9166
9167 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
9168 Update calls to i386_target_description to add 'segments'
9169 parameter.
9170 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
9171 add segment base registers.
9172 * arch/i386.c (i386_create_target_description): Add 'segments'
9173 parameter to enable segment base registers.
9174 * arch/i386.h (i386_create_target_description): Likewise.
9175 * features/i386/32bit-segments.xml: New file.
9176 * features/i386/32bit-segments.c: Generate.
9177 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
9178 call to i386_target_description to add 'segments' parameter.
9179 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
9180 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
9181 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
9182 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
9183 if feature is present.
9184 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
9185 Add 'segments' parameter to call to i386_target_description.
9186 (i386_target_description): Add 'segments' parameter to enable
9187 segment base registers.
9188 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
9189 to call to i386_target_description.
9190 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
9191 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
9192 Define I386_NUM_REGS.
9193 (i386_target_description): Add 'segments' parameter to enable
9194 segment base registers.
9195
3a350822
EZ
91962019-03-12 Eli Zaretskii <eliz@gnu.org>
9197
9198 PR/24325
9199 * source-cache.c: #undef open and close, to avoid unresolved
9200 externals during linking.
9201
ffdd69cf
TT
92022019-03-12 Tom Tromey <tromey@adacore.com>
9203
9204 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
9205 const. Add initializers.
9206 (_initialize_remote): Don't initialize ptid globals.
9207
ec148c57
PA
92082019-03-12 Pedro Alves <palves@redhat.com>
9209
9210 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
9211
32764270
PA
92122019-03-12 Pedro Alves <palves@redhat.com>
9213
9214 * cp-name-parser.y (main): Remove unused 'len' variable.
9215
17547186
TT
92162019-03-12 Tom Tromey <tromey@adacore.com>
9217
9218 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
9219 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
9220
d3a70e03
TT
92212019-03-12 Tom Tromey <tromey@adacore.com>
9222
9223 * linux-nat.c (iterate_over_lwps): Update.
9224 (stop_callback): Remove parameter.
9225 (stop_wait_callback, detach_callback, resume_set_callback)
9226 (select_singlestep_lwp_callback, set_ignore_sigint)
9227 (status_callback, resumed_callback, resume_clear_callback)
9228 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
9229 data parameter.
9230 (linux_nat_target::detach, linux_nat_target::resume)
9231 (linux_stop_and_wait_all_lwps, select_event_lwp)
9232 (linux_nat_filter_event, linux_nat_wait_1)
9233 (linux_nat_target::kill, linux_nat_target::stop)
9234 (linux_nat_target::stop): Update.
9235 (linux_nat_resume_callback): Change type.
9236 (resume_stopped_resumed_lwps, count_events_callback)
9237 (select_event_lwp_callback): Likewise.
9238 (linux_stop_lwp, linux_nat_stop_lwp): Update.
9239 * arm-linux-nat.c (struct update_registers_data): Remove.
9240 (update_registers_callback): Change type.
9241 (arm_linux_insert_hw_breakpoint1): Update.
9242 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
9243 parameter.
9244 (x86_linux_dr_set_addr): Update.
9245 (x86_linux_dr_set_control): Update.
9246 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
9247 (iterate_over_lwps): Use gdb::function_view.
9248 * nat/aarch64-linux-hw-point.c (struct
9249 aarch64_dr_update_callback_param): Remove.
9250 (debug_reg_change_callback): Change type.
9251 (aarch64_notify_debug_reg_change): Update.
9252 * s390-linux-nat.c (s390_refresh_per_info): Update.
9253
82cb27ff
TT
92542019-03-11 Tom Tromey <tromey@adacore.com>
9255
9256 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
9257 redundant assignment to "this_cu".
9258
568c0683
SM
92592019-03-08 Simon Marchi <simon.marchi@efficios.com>
9260
9261 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
9262
f09ce22d
SM
92632019-03-08 Simon Marchi <simon.marchi@efficios.com>
9264
9265 * gdbtypes.c (rank_one_type_parm_set): New function extracted
9266 from...
9267 (rank_one_type): ... this.
9268
595f96a9
SM
92692019-03-08 Simon Marchi <simon.marchi@efficios.com>
9270
9271 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
9272 from...
9273 (rank_one_type): ... this.
9274
2598a94b
SM
92752019-03-08 Simon Marchi <simon.marchi@efficios.com>
9276
9277 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
9278 from...
9279 (rank_one_type): ... this.
9280
7f17b20d
SM
92812019-03-08 Simon Marchi <simon.marchi@efficios.com>
9282
9283 * gdbtypes.c (rank_one_type_parm_float): New function extracted
9284 from...
9285 (rank_one_type): ... this.
9286
2c509035
SM
92872019-03-08 Simon Marchi <simon.marchi@efficios.com>
9288
9289 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
9290 from...
9291 (rank_one_type): ... this.
9292
0dd322dc
SM
92932019-03-08 Simon Marchi <simon.marchi@efficios.com>
9294
9295 * gdbtypes.c (rank_one_type_parm_range): New function extracted
9296 from...
9297 (rank_one_type): ... this.
9298
41ea4728
SM
92992019-03-08 Simon Marchi <simon.marchi@efficios.com>
9300
9301 * gdbtypes.c (rank_one_type_parm_char): New function extracted
9302 from...
9303 (rank_one_type): ... this.
9304
793cd1d2
SM
93052019-03-08 Simon Marchi <simon.marchi@efficios.com>
9306
9307 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
9308 from...
9309 (rank_one_type): ... this.
9310
34910087
SM
93112019-03-08 Simon Marchi <simon.marchi@efficios.com>
9312
9313 * gdbtypes.c (rank_one_type_parm_int): New function extracted
9314 from...
9315 (rank_one_type): ... this.
9316
f1f832d6
SM
93172019-03-08 Simon Marchi <simon.marchi@efficios.com>
9318
9319 * gdbtypes.c (rank_one_type_parm_func): New function extracted
9320 from...
9321 (rank_one_type): ... this.
9322
b9f4512f
SM
93232019-03-08 Simon Marchi <simon.marchi@efficios.com>
9324
9325 * gdbtypes.c (rank_one_type_parm_array): New function extracted
9326 from...
9327 (rank_one_type): ... this.
9328
9293fc63
SM
93292019-03-08 Simon Marchi <simon.marchi@efficios.com>
9330
9331 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
9332 from...
9333 (rank_one_type): ... this.
9334
e3abbe7e
PW
93352019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9336
9337 * inferior.c (initialize_inferiors): Ensure 'help set/show print
9338 inferior-events' shows the example events.
9339
e4adb939
EZ
93402019-03-08 Eli Zaretskii <eliz@gnu.org>
9341
9342 Support styling on native MS-Windows console
9343
9344 PR/24315
9345 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
9346 on MS-Windows if $TERM is not defined.
9347
9348 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
9349
9350 * posix-hdep.c (gdb_console_fputs):
9351 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
9352 functions.
9353 * ui-file.h (gdb_console_fputs): Add prototype.
9354
9355 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
9356 back to fputs only if the former returns zero.
9357
25629dfd
TT
93582019-03-07 Tom Tromey <tom@tromey.com>
9359
9360 * symmisc.c (print_symbol_bcache_statistics): Update.
9361 (print_objfile_statistics): Update.
9362 * symfile.c (allocate_symtab): Update.
9363 * stabsread.c: Don't include bcache.h.
9364 * psymtab.h (struct psymbol_bcache): Don't declare.
9365 (class psymtab_storage) <psymbol_cache>: Now a bcache.
9366 (psymbol_bcache_init, psymbol_bcache_free)
9367 (psymbol_bcache_get_bcache): Don't declare.
9368 * psymtab.c (struct psymbol_bcache): Remove.
9369 (psymtab_storage::psymtab_storage): Update.
9370 (psymtab_storage::~psymtab_storage): Update.
9371 (psymbol_bcache_init, psymbol_bcache_free)
9372 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
9373 (add_psymbol_to_bcache): Update.
9374 (allocate_psymtab): Update.
9375 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
9376 macro_cache>: No longer pointers.
9377 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
9378 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
9379 * macrotab.c (macro_bcache): Update.
9380 * macroexp.c: Don't include bcache.h.
9381 * gdbtypes.c (check_types_worklist): Update.
9382 (types_deeply_equal): Remove TRY/CATCH. Update.
9383 * elfread.c (elf_symtab_read): Update.
9384 * dwarf2read.c: Don't include bcache.h.
9385 * buildsym.c (buildsym_compunit::get_macro_table): Update.
9386 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
9387 (print_bcache_statistics, bcache_memory_used): Don't declare.
9388 (struct bcache): Move from bcache.c. Add constructor, destructor,
9389 methods. Rename all data members.
9390 * bcache.c (struct bcache): Move to bcache.h.
9391 (bcache::expand_hash_table): Rename from expand_hash_table.
9392 (bcache): Remove.
9393 (bcache::insert): Rename from bcache_full.
9394 (bcache::compare): Rename from bcache_compare.
9395 (bcache_xmalloc): Remove.
9396 (bcache::~bcache): Rename from bcache_xfree.
9397 (bcache::print_statistics): Rename from print_bcache_statistics.
9398 (bcache::memory_used): Rename from bcache_memory_used.
9399
fe726667
PA
94002019-03-07 Pedro Alves <palves@redhat.com>
9401
9402 * infrun.c (normal_stop): Also check for
9403 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
9404
7584bb30
AB
94052019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
9406
9407 * f-lang.c (value_from_host_double): Moved to...
9408 * value.c (value_from_host_double): ...here.
9409 * value.h (value_from_host_double): Declare.
9410 * guile/scm-math.c (vlscm_convert_typed_number): Use
9411 value_from_host_double.
9412 (vlscm_convert_number): Likewise.
9413 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
9414 * python/py-value.c (convert_value_from_python): Likewise.
9415
a7b1986e
TT
94162019-03-06 Tom Tromey <tom@tromey.com>
9417
9418 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
9419
0ccf4211
TT
94202019-03-06 Tom Tromey <tom@tromey.com>
9421
9422 * utils.h (free_current_contents): Don't declare.
9423 * utils.c (free_current_contents): Remove.
9424
fe7b42e5
TT
94252019-03-06 Tom Tromey <tom@tromey.com>
9426
9427 * top.c (quit_force): Update.
9428 * main.c (captured_command_loop): Update.
9429 * common/new-op.c (operator new): Update.
9430 * common/common-exceptions.c (struct catcher)
9431 <save_cleanup_chain>: Remove member.
9432 (exceptions_state_mc_init): Update.
9433 (exception_try_scope_entry): Return nullptr.
9434 (exception_try_scope_exit, exception_rethrow)
9435 (throw_exception_sjlj, throw_exception_cxx): Update.
9436 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
9437 (all_cleanups, do_cleanups, discard_cleanups)
9438 (discard_final_cleanups, save_cleanups, save_final_cleanups)
9439 (restore_cleanups, restore_final_cleanups): Don't declare.
9440 (do_final_cleanups): Remove parameter.
9441 * common/cleanups.c (cleanup_chain, make_cleanup)
9442 (make_cleanup_dtor, all_cleanups, do_cleanups)
9443 (discard_my_cleanups, discard_cleanups)
9444 (discard_final_cleanups, save_my_cleanups, save_cleanups)
9445 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
9446 (null_cleanup): Remove.
9447 (do_final_cleanups): Remove parameter.
9448
c6321f19
TT
94492019-03-06 Tom Tromey <tom@tromey.com>
9450
9451 * remote.c (remote_target::remote_parse_stop_reply): Use
9452 unique_xmalloc_ptr.
9453
61b30099
TT
94542019-03-06 Tom Tromey <tom@tromey.com>
9455
9456 * stabsread.c (struct stabs_field_info): Rename from field_info.
9457 <list, fnlist>: Add initializers.
9458 <obstack>: New member.
9459 (read_member_functions, read_struct_fields, read_baseclasses):
9460 Allocate on obstack. Don't use cleanups.
9461 (read_one_struct_field, read_member_functions, read_struct_fields)
9462 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
9463 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
9464 (read_struct_type): Update.
9465
6cceac94
TT
94662019-03-06 Tom Tromey <tom@tromey.com>
9467
9468 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
9469 * common/filestuff.h (make_cleanup_close): Don't declare.
9470 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
9471 Remove.
9472
72412762
TT
94732019-03-06 Tom Tromey <tom@tromey.com>
9474
9475 * solib-aix.c: Use make_scope_exit.
9476
2b6ff1c0
TT
94772019-03-06 Tom Tromey <tom@tromey.com>
9478
9479 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
9480 Use make_scope_exit.
9481
d01c5877
TT
94822019-03-06 Tom Tromey <tom@tromey.com>
9483
9484 * solib-svr4.c (disable_probes_interface): Remove parameter.
9485 (svr4_handle_solib_event): Use make_scope_exit.
9486
32603266
TT
94872019-03-06 Tom Tromey <tom@tromey.com>
9488
9489 * remote.c (struct stop_reply_deleter): Remove.
9490 (stop_reply_up): Update.
9491 (struct stop_reply): Derive from notif_event. Don't typedef.
9492 <regcache>: Now a std::vector.
9493 (stop_reply_xfree): Remove.
9494 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
9495 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
9496 (remote_target::discard_pending_stop_replies): Use delete.
9497 (remote_target::remote_parse_stop_reply): Update.
9498 (remote_target::process_stop_reply): Update.
9499 * remote-notif.h (struct notif_event): Add virtual destructor.
9500 Remove "dtr" member.
9501 (struct notif_client) <alloc_event>: Return a unique_ptr.
9502 (notif_event_xfree): Don't declare.
9503 (notif_event_up): New typedef.
9504 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
9505 (notif_event_xfree, do_notif_event_xfree): Remove.
9506 (remote_notif_state_xfree): Update.
9507
9799571e
TT
95082019-03-06 Tom Tromey <tom@tromey.com>
9509
9510 * infrun.c (displaced_step_clear_cleanup): Now a
9511 forward_scope_exit type.
9512 (displaced_step_prepare_throw): Update.
9513 (displaced_step_fixup): Update.
9514
09e3c4ca
TT
95152019-03-06 Tom Tromey <tom@tromey.com>
9516
9517 * inferior.h (class inferior): Update comment.
9518 * gdbthread.h (class thread_info): Update comment.
9519
e2a03548
TT
95202019-03-06 Joel Brobecker <brobecker@adacore.com>
9521 Tom Tromey <tom@tromey.com>
9522
9523 * stabsread.h (struct stab_section_list): Remove.
9524 (coffstab_build_psymtabs): Update.
9525 * dbxread.c (symbuf_sections): Now a std::vector.
9526 (sect_idx): New global.
9527 (fill_symbuf): Update.
9528 (coffstab_build_psymtabs): Change type of stabsects parameter.
9529 Update.
9530 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
9531 std::vector.
9532 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
9533 (coff_locate_sections): Update.
9534 (coff_symfile_read): Remove cleanups. Update.
9535 (init_stringtab): Add storage parameter.
9536 (free_stringtab, free_stringtab_cleanup): Remove.
9537 (init_lineno): Add storage parameter.
9538 (free_linetab, free_linetab_cleanup): Remove.
9539
b7e60d85
PA
95402019-03-06 Pedro Alves <palves@redhat.com>
9541
9542 * linux-fork.c (fork_info::clobber_regs): Delete.
9543 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
9544 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
9545 comment. Adjust.
9546 (scoped_switch_fork_info::scoped_switch_fork_info)
9547 (checkpoint_command, linux_fork_context): Adjust
9548 fork_save_infrun_state calls.
9549
e52c971f
PA
95502019-03-06 Pedro Alves <palves@redhat.com>
9551
9552 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
9553 (inf_has_multiple_threads): Return 'bool' and rewrite using
9554 inferior_info::threads().
9555
06974e6c
PA
95562019-03-06 Pedro Alves <palves@redhat.com>
9557
9558 * linux-fork.c: Include <list>.
9559 (fork_list): Now a std::list instance.
9560 (fork_info): Add ctor, dtor, and in-class initialize all fields.
9561 (forks_exist_p, find_last_fork): Adjust.
9562 (new_fork): Delete.
9563 (one_fork_p): New.
9564 (add_fork): Adjust.
9565 (free_fork): Delete, folded into fork_info::~fork_info().
9566 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
9567 Adjust.
9568 (init_fork_list): Delete.
9569 (linux_fork_killall, linux_fork_mourn_inferior)
9570 (linux_fork_detach, info_checkpoints_command): Adjust.
9571 (_initialize_linux_fork): No longer call init_fork_list.
9572
72f31aea
PA
95732019-03-06 Pedro Alves <palves@redhat.com>
9574
9575 * linux-fork.c (new_fork): New, split out of ...
9576 (add_fork): ... this. Return void. Move "first fork" special
9577 case from here, to ...
9578 (checkpoint_command): ... here.
9579 * linux-linux.h (add_fork): Return void.
9580
efbecbc1
AB
95812019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9582
9583 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
9584
0841c79a
AB
95852019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9586 Chris January <chris.january@arm.com>
9587 David Lecomber <david.lecomber@arm.com>
9588
9589 * f-exp.y: New token, UNOP_INTRINSIC.
9590 (exp): New pattern using UNOP_INTRINSIC token.
9591 (f77_keywords): Add 'abs' keyword.
9592 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
9593 (value_from_host_double): New function.
9594 (evaluate_subexp_f): Support UNOP_ABS.
9595
4a270568
AB
95962019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9597
9598 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
9599 types.
9600
067630bd
AB
96012019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9602
9603 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
9604 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
9605 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
9606
3be47f7a
AB
96072019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9608
9609 * f-exp.y (convert_to_kind_type): Handle more type kinds.
9610
4d00f5d8
AB
96112019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9612 Chris January <chris.january@arm.com>
9613
9614 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
9615 * f-exp.y: Define 'KIND' token.
9616 (exp): New pattern for KIND expressions.
9617 (ptype): Handle types with a kind extension.
9618 (direct_abs_decl): Extend to spot kind extensions.
9619 (f77_keywords): Add 'kind' to the list.
9620 (push_kind_type): New function.
9621 (convert_to_kind_type): New function.
9622 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
9623 * parse.c (operator_length_standard): Likewise.
9624 * parser-defs.h (enum type_pieces): Add tp_kind.
9625 * std-operator.def: Add UNOP_KIND.
9626
e454224f
AB
96272019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9628
9629 * f-exp.y (f_parse): Set yydebug.
9630
9dad4a58
AB
96312019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9632
9633 * f-lang.c (evaluate_subexp_f): New function.
9634 (exp_descriptor_f): New global.
9635 (f_language_defn): Use exp_descriptor_f instead of
9636 exp_descriptor_standard.
9637
c8f91604
AB
96382019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9639
9640 * f-exp.y (struct token): Add comments.
9641 (dot_ops): Remove uppercase versions and the end marker.
9642 (f77_keywords): Likewise.
9643 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
9644 entries in the dot_ops array are case insensitive, and use
9645 strncasecmp to compare strings. Also some whitespace cleanup in
9646 this area. Similar for the f77_keywords array, except entries in
9647 this list might be case sensitive.
9648
dd9f2c76
AB
96492019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9650
9651 * f-exp.y (struct f77_boolean_val): Add comments.
9652 (boolean_values): Remove uppercase versions, and end marker.
9653 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
9654 and use strncasecmp to achieve case insensitivity. Additionally,
9655 perform whitespace cleanup around this code.
9656
67a3048c
TT
96572019-03-06 Tom Tromey <tromey@adacore.com>
9658
9659 * remote-sim.c (gdbsim_target_open): Use result of
9660 gdb_argv::release.
9661
aa3cfbda
RB
96622019-03-06 Richard Bunt <richard.bunt@arm.com>
9663 Dirk Schubert <dirk.schubert@arm.com>
9664 Chris January <chris.january@arm.com>
9665
9666 * eval.c (evaluate_subexp_standard): Call Fortran argument
9667 wrapping logic.
9668 * f-lang.c (struct value): A value which can be passed into a
9669 Fortran function call.
9670 (fortran_argument_convert): Wrap Fortran arguments in a pointer
9671 where appropriate.
9672 (struct type): Value ready for a Fortran function call.
9673 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
9674 is needed.
9675 * f-lang.h (fortran_argument_convert): Declaration.
9676 (fortran_preserve_arg_pointer): Declaration.
9677 * infcall.c (value_arg_coerce): Call Fortran argument logic.
9678
ea38e5df
TT
96792019-03-05 Tom Tromey <tromey@adacore.com>
9680
9681 * python/py-prettyprint.c (print_string_repr): Remove #if.
9682 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
9683
06b5b831
TT
96842019-03-05 Tom Tromey <tromey@adacore.com>
9685
9686 * target.c (the_dummy_target): Move later. Change type to
9687 "dummy_target".
9688 (initialize_targets): Don't initialize the_dummy_target.
9689
edbd9e45
TT
96902019-03-05 Tom Tromey <tromey@adacore.com>
9691
9692 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
9693 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
9694
c119e040
TT
96952019-03-05 Tom Tromey <tromey@adacore.com>
9696
9697 * windows-nat.c (windows_nat_target::attach)
9698 (windows_nat_target::detach): Don't call gdb_flush.
9699 * valprint.c (generic_val_print, val_print, val_print_string):
9700 Don't call gdb_flush.
9701 * utils.c (defaulted_query): Don't call gdb_flush.
9702 * typeprint.c (print_type_scalar): Don't call gdb_flush.
9703 * target.c (target_announce_detach): Don't call gdb_flush.
9704 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
9705 * remote.c (extended_remote_target::attach): Don't call
9706 gdb_flush.
9707 * procfs.c (procfs_target::detach): Don't call gdb_flush.
9708 * printcmd.c (do_examine): Don't call gdb_flush.
9709 (info_display_command): Don't call gdb_flush.
9710 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
9711 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
9712 * memattr.c (info_mem_command): Don't call gdb_flush.
9713 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
9714 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
9715 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
9716 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
9717 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
9718 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
9719 (gnu_nat_target::detach): Don't call gdb_flush.
9720 * f-valprint.c (f_val_print): Don't call gdb_flush.
9721 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
9722 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
9723 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
9724 gdb_flush.
9725 * c-valprint.c (c_val_print): Don't call gdb_flush.
9726 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
9727
895dafa6
TT
97282019-03-05 Tom Tromey <tromey@adacore.com>
9729
9730 * varobj.c (update_dynamic_varobj_children): Update.
9731 (install_default_visualizer): Use reset, not release.
9732 * value.c (set_internalvar): Update.
9733 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
9734 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
9735 ATTRIBUTE_UNUSED_RESULT.
9736
88a774b9
TT
97372019-03-05 Tom Tromey <tromey@adacore.com>
9738
9739 * remote.c (class scoped_remote_fd) <release>: Add
9740 ATTRIBUTE_UNUSED_RESULT.
9741
4e4a8b93
TT
97422019-03-05 Tom Tromey <tromey@adacore.com>
9743
9744 * macroexp.c (struct macro_buffer) <release>: Add
9745 ATTRIBUTE_UNUSED_RESULT.
9746
083eef1f
TT
97472019-03-05 Tom Tromey <tromey@adacore.com>
9748
9749 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
9750 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
9751 ATTRIBUTE_UNUSED_RESULT.
9752
3cabd438
TT
97532019-03-05 Tom Tromey <tromey@adacore.com>
9754
9755 * common/scoped_fd.h (class scoped_fd) <release>: Add
9756 ATTRIBUTE_UNUSED_RESULT.
9757
41e3300a
TT
97582019-03-05 Tom Tromey <tromey@adacore.com>
9759
9760 * parser-defs.h (struct parser_state) <release>: Add
9761 ATTRIBUTE_UNUSED_RESULT.
9762
18cb7c9f
TT
97632019-03-05 Tom Tromey <tromey@adacore.com>
9764
9765 * utils.h (class gdb_argv) <release>: Add
9766 ATTRIBUTE_UNUSED_RESULT.
9767 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
9768
41fa577f
EZ
97692019-03-02 Eli Zaretskii <eliz@gnu.org>
9770
a6a4b2c6
EZ
9771 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
9772 for-loop range, to avoid compiler warnings.
9773
9774 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
9775 avoid compiler warnings about unused variables.
9776
742a7df5
EZ
9777 * NEWS: Mention end of support for native debugging on MS-Windows
9778 before XP.
9779
41fa577f
EZ
9780 PR gdb/24292
9781 * common/netstuff.c:
9782 * gdbserver/gdbreplay.c
9783 * gdbserver/remote-utils.c:
9784 * ser-tcp.c:
9785 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
9786 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
9787 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
9788 'getaddrinfo' and 'freeaddrinfo' were not available before
9789 Windows XP, and mingw.org's MinGW headers by default define
9790 _WIN32_WINNT to 0x500.
9791
827f438f
GB
97922019-03-01 Gary Benson <gbenson@redhat.com>
9793
9794 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
9795
92137da0
RO
97962019-02-28 Brian Vandenberg <phantall@gmail.com>
9797 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9798
9799 PR gdb/8527
9800 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
9801 set_sigint_trap, clear_sigint_trap.
9802
799efbe8
PW
98032019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9804
9805 * target.c (target_detach): Clear the regcache and the
9806 frame cache.
9807
8ed25214
PA
98082019-02-27 Pedro Alves <palves@redhat.com>
9809
9810 * utils.c (set_screen_size): When we cap the height/width sizes,
9811 tweak the corresponding command variable to show "unlimited":
9812
23031e31
SJ
98132019-02-27 Saagar Jha <saagar@saagarjha.com>
9814 Pedro Alves <palves@redhat.com>
9815
9816 * utils.c (set_screen_size): Reduce "infinite" rows and columns
9817 before calling rl_set_screen_size.
9818
6c28e44a
TT
98192019-02-27 Tom Tromey <tromey@adacore.com>
9820
9821 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
9822 define.
9823 * python/py-value.c: Remove Python 2.4 workaround.
9824 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
9825 workaround.
9826 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
9827 Python 2.4 workaround.
9828 * python/python-internal.h: Remove Python 2.4 comment.
9829 (Py_ssize_t): Don't define.
9830 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
9831 (gdb_Py_DECREF): Remove Python 2.4 workaround.
9832 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
9833 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
9834 * python/python.c (do_start_initialization): Remove Python 2.4
9835 workaround.
9836 * python/py-prettyprint.c (class dummy_python_frame): Remove.
9837 (print_children): Remove Python 2.4 workaround.
9838 * python/py-inferior.c (buffer_procs): Remove Python 2.4
9839 workaround.
9840 (CHARBUFFERPROC_NAME): Remove.
9841 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
9842 Python 2.4 workaround.
9843
2c3fc25d 98442019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 9845
2c3fc25d
KB
9846 * NEWS: Note minimum Python version.
9847
6ca62222
KB
98482019-02-27 Kevin Buettner <kevinb@redhat.com>
9849
9850 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
9851 code from these functions. Remove corresponding ifdefs. Use
9852 Py_buffer_up instead of explicit calls to PyBuffer_Release.
9853 Remove gotos and target of gotos.
9854 (infpy_search_memory): Likewise.
9855
f4bc7d2c
AB
98562019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9857
9858 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
9859 (hppa_gdbarch_init): Don't register deleted functions with
9860 gdbarch.
9861
9734a586
AB
98622019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9863
9864 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
9865 (h8300_unwind_sp): Delete.
9866 (h8300_dummy_id): Delete.
9867 (h8300_gdbarch_init): Don't register deleted functions with
9868 gdbarch.
9869
68b867f3
AB
98702019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9871
9872 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
9873 (ft32_unwind_pc): Delete.
9874 (ft32_unwind_sp): Delete.
9875 (ft32_gdbarch_init): Don't register deleted functions with
9876 gdbarch.
9877
2fbe7ad0
AB
98782019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9879
9880 * gdb/frv-tdep.c (frv_dummy_id): Delete.
9881 (frv_unwind_pc): Delete.
9882 (frv_unwind_sp): Delete.
9883 (frv_gdbarch_init): Don't register deleted functions with
9884 gdbarch.
9885
76055cbe
AB
98862019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9887
9888 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
9889 (riscv_unwind_pc): Delete.
9890 (riscv_unwind_sp): Delete.
9891 (riscv_gdbarch_init): Don't register deleted functions with
9892 gdbarch.
9893
4133e5a1
AB
98942019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9895
9896 * gdb/csky-tdep.c (csky_dummy_id): Delete.
9897 (csky_unwind_pc): Delete.
9898 (csky_unwind_sp): Delete.
9899 (csky_gdbarch_init): Don't register deleted functions with
9900 gdbarch.
9901
8010f576
AB
99022019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9903
9904 * gdb/cris-tdep.c (cris_dummy_id): Delete.
9905 (cris_unwind_pc): Delete.
9906 (cris_unwind_sp): Delete.
9907 (cris_gdbarch_init): Don't register deleted functions with
9908 gdbarch.
9909
b56bf084
AB
99102019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9911
9912 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
9913 (bfin_unwind_pc): Delete.
9914 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
9915
a19a650f
AB
99162019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9917
9918 * gdb/arm-tdep.c (arm_dummy_id): Delete.
9919 (arm_unwind_pc): Delete.
9920 (arm_unwind_sp): Delete.
9921 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
9922
f8278c3c
AB
99232019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9924
9925 * gdb/arc-tdep.c (arc_dummy_id): Delete.
9926 (arc_unwind_pc): Delete.
9927 (arc_unwind_sp): Delete.
9928 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
9929
480e46cf
AB
99302019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9931
9932 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
9933 (alpha_unwind_pc): Delete.
9934 (alpha_gdbarch_init): Don't register deleted functions with
9935 gdbarch.
9936
7a995095
AB
99372019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9938
9939 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
9940 (aarch64_unwind_pc): Delete.
9941 (aarch64_unwind_sp): Delete.
9942 (aarch64_gdbarch_init): Don't register deleted functions with
9943 gdbarch.
9944
bf9a735e
AB
99452019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9946
9947 * gdbtypes.c (type_align): Don't consider static members when
9948 computing structure alignment.
9949
5561fc30
AB
99502019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9951
9952 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
9953 return 0 for other types.
9954 * arch-utils.c (default_type_align): Always return 0.
9955 * gdbarch.h: Regenerate.
9956 * gdbarch.sh (type_align): Extend comment.
9957 * gdbtypes.c (type_align): Add additional comments, always call
9958 gdbarch_type_align before applying the default rules.
9959 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
9960 generic code will then apply a suitable default.
9961 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
9962 types, return 0 for other types.
9963
9335e75a
JB
99642019-02-27 Joel Brobecker <brobecker@adacore.com>
9965
9966 * NEWS: Create a new section for the next release branch.
9967 Rename the section of the current branch, now that it has
9968 been cut.
9969
3d34d8de
JB
99702019-02-27 Joel Brobecker <brobecker@adacore.com>
9971
9972 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
9973 * version.in: Bump version to 8.3.50.DATE-git.
9974
143420fb
SM
99752019-02-26 Simon Marchi <simon.marchi@efficios.com>
9976
9977 * aix-thread.c (ptid_cmp): Remove unused variable.
9978 (get_signaled_thread): Likewise.
9979 (store_regs_user_thread): Likewise.
9980 (store_regs_kernel_thread): Likewise.
9981 (fetch_regs_kernel_thread): Remove shadowed variable.
9982
172fb711
AB
99832019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
9984
9985 * features/riscv/32bit-cpu.xml: Add register numbers.
9986 * features/riscv/32bit-fpu.c: Regenerate.
9987 * features/riscv/32bit-fpu.xml: Add register numbers.
9988 * features/riscv/64bit-cpu.xml: Add register numbers.
9989 * features/riscv/64bit-fpu.c: Regenerate.
9990 * features/riscv/64bit-fpu.xml: Add register numbers.
9991
26c89782
KB
99922019-02-26 Kevin Buettner <kevinb@redhat.com>
9993
af54ade9 9994 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
9995 * python/py-value.c (convert_buffer_and_type_to_value): New
9996 function.
9997 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
9998 Add support for handling an optional second argument. Call
9999 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
10000 * python/python-internal.h (Py_buffer_deleter): New struct.
10001 (Py_buffer_up): New typedef.
10002
0f58c9e8
JB
100032019-02-25 John Baldwin <jhb@FreeBSD.org>
10004
10005 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
10006 instead of releasing ownership.
10007
0a0f4c01
JR
100082019-02-25 Jordan Rupprecht <rupprecht@google.com>
10009
10010 * dwarf2read.c (open_and_init_dwp_file): Call
10011 elf_numsections instead of bfd_count_sections to initialize
10012 dwp_file->num_sections.
10013
cd5a152c
TT
100142019-02-25 Tom Tromey <tromey@adacore.com>
10015
10016 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
10017
8a6a8513
SDJ
100182019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
10019
10020 * gcore.in: Add '--readnever' option when invoking GDB.
10021
04dcda9c
SM
100222019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
10023
10024 * MAINTAINERS: Update my email address.
10025
07bc701d
SM
100262019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
10027
10028 * build-id.c (build_id_to_debug_bfd_1): New function.
10029 (build_id_to_debug_bfd): Look for separate debug file in
10030 sysroot.
10031
c6f4a5d0
AB
100322019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
10033
10034 * gdbarch.sh: Update the copyright year range that is placed into
10035 generated files.
10036
9600246d
KS
100372019-02-22 Keith Seitz <keiths@redhat.com>
10038
10039 PR symtab/23853
10040 * linespec.c (create_sals_line_offset): Search for the default
10041 symtab's filename instead of its fullname.
10042
7557a514
AH
100432019-02-21 Alan Hayward <alan.hayward@arm.com>
10044
10045 * NEWS: Update style defaults.
10046
ee2bcb0c
AH
100472019-02-21 Alan Hayward <alan.hayward@arm.com>
10048
10049 * main.c (captured_main_1): Disable styling in batch mode.
10050
0c95f9ed
TT
100512019-02-20 Tom Tromey <tom@tromey.com>
10052
10053 * symtab.c (symtab_symbol_info): Fix typos.
10054
c763b894
TT
100552019-02-20 Tom Tromey <tromey@adacore.com>
10056
10057 * findcmd.c (_initialize_mem_search): Use upper case for
10058 metasyntactic variables.
10059
0ef8a082
AH
100602019-02-20 Alan Hayward <alan.hayward@arm.com>
10061
10062 * aarch64-tdep.c (aarch64_add_reggroups): New function.
10063 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
10064
6caa91b6
SM
100652019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
10066
10067 * top.h (source_file_name): Change to std::string.
10068 * top.c (source_file_name): Likewise.
10069 (command_line_input): Adjust.
10070 * cli/cli-script.c (script_from_file): Adjust.
10071
98814c6c
TT
100722019-02-19 Tom Tromey <tromey@adacore.com>
10073
10074 * ravenscar-thread.c
10075 (ravenscar_thread_target::update_thread_list): Don't call
10076 ada_build_task_list.
10077 * ada-lang.h (ada_build_task_list): Don't declare.
10078 * ada-tasks.c (struct ada_tasks_inferior_data)
10079 <task_list_valid_p>: Now bool.
10080 (read_known_tasks, ada_task_list_changed)
10081 (ada_tasks_invalidate_inferior_data): Update.
10082 (read_known_tasks_array): Return bool.
10083 (read_known_tasks_list): Likewise.
10084 (read_known_tasks): Return void.
10085 (ada_build_task_list): Now static.
10086
70cd633e
AB
100872019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
10088
10089 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
10090 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
10091
040b3e95
PW
100922019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10093
10094 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
10095 variant for ada_tasks_pspace_data_handle and
10096 ada_tasks_inferior_data_handle.
10097 (ada_tasks_pspace_data_cleanup): New function.
10098 (ada_tasks_inferior_data_cleanup): New function.
10099
9409233b
TT
101002019-02-17 Tom Tromey <tom@tromey.com>
10101
10102 * macrotab.h (macro_source_fullname): Return a std::string.
10103 * macrotab.c (macro_include, check_for_redefinition)
10104 (macro_undef, macro_lookup_definition, foreach_macro)
10105 (foreach_macro_in_scope): Update.
10106 (macro_source_fullname): Return a std::string.
10107 * macrocmd.c (show_pp_source_pos): Update.
10108
6506371f
TT
101092019-02-17 Tom Tromey <tom@tromey.com>
10110
10111 * macrocmd.c (show_pp_source_pos): Style the file names.
10112
0c820d67
TT
101132019-02-17 Tom Tromey <tom@tromey.com>
10114
10115 PR tui/24197:
10116 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
10117
a0087920
TT
101182019-02-17 Tom Tromey <tom@tromey.com>
10119
10120 * ada-lang.c (user_select_syms): Use filtered printing.
10121 * utils.c (wrap_style): New global.
10122 (desired_style): Remove.
10123 (emit_style_escape): Add stream parameter.
10124 (set_output_style, reset_terminal_style, prompt_for_continue):
10125 Update.
10126 (flush_wrap_buffer): Only flush gdb_stdout.
10127 (wrap_here): Set wrap_style.
10128 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
10129 treat escape sequences as a character. Change when wrap buffer is
10130 flushed.
10131 (fputs_styled): Do not set the output style when the default is
10132 requested.
10133 * ui-style.h (struct ui_file_style) <is_default>: New method.
10134 * source.c (print_source_lines_base): Emit escape sequences in one
10135 piece.
10136
75ba10dc
JB
101372019-02-17 Joel Brobecker <brobecker@adacore.com>
10138
10139 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
10140 integers and enumeration types.
10141
a2cd4f14
JB
101422019-02-17 Joel Brobecker <brobecker@adacore.com>
10143
10144 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
10145 instead of lookup_symbol_in_language
10146 (do_exact_match): New function.
10147 (ada_get_symbol_name_matcher): Return do_exact_match when
10148 doing a verbatim match.
10149
485b851b
TT
101502019-02-15 Tom Tromey <tromey@adacore.com>
10151
10152 * ravenscar-thread.c (ravenscar_thread_target::resume)
10153 (ravenscar_thread_target::wait): Special case wildcard requests.
10154
0b790b1e
TT
101552019-02-15 Tom Tromey <tromey@adacore.com>
10156
10157 * ravenscar-thread.c (base_ptid): Remove.
10158 (struct ravenscar_thread_target) <close>: New method.
10159 <m_base_ptid>: New member.
10160 <update_inferior_ptid, active_task, task_is_currently_active,
10161 runtime_initialized>: Declare methods.
10162 <ravenscar_thread_target>: Add constructor.
10163 (ravenscar_thread_target::task_is_currently_active)
10164 (ravenscar_thread_target::update_inferior_ptid)
10165 (ravenscar_runtime_initialized): Rename. Now methods.
10166 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
10167 (ravenscar_thread_target::update_thread_list): Update.
10168 (ravenscar_thread_target::active_task): Now method.
10169 (ravenscar_thread_target::store_registers)
10170 (ravenscar_thread_target::prepare_to_store)
10171 (ravenscar_thread_target::prepare_to_store)
10172 (ravenscar_thread_target::mourn_inferior): Update.
10173 (ravenscar_inferior_created): Use "new" to create target.
10174 (ravenscar_thread_target::get_ada_task_ptid): Update.
10175 (_initialize_ravenscar): Don't initialize base_ptid.
10176 (ravenscar_ops): Remove global.
10177
dea57a62
TT
101782019-02-15 Tom Tromey <tromey@adacore.com>
10179
10180 * target.h (push_target): Declare new overload.
10181 * target.c (push_target): New overload, taking an rvalue reference.
10182 * remote.c (remote_target::open_1): Use push_target overload.
10183 * corelow.c (core_target_open): Use push_target overload.
10184
989f3c58
TT
101852019-02-15 Tom Tromey <tromey@adacore.com>
10186
10187 * ravenscar-thread.c (is_ravenscar_task)
10188 (ravenscar_task_is_currently_active): Return bool.
10189 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
10190 (_initialize_ravenscar): Remove "(void)".
10191 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
10192 Return bool.
10193
6cbcc006
TT
101942019-02-15 Tom Tromey <tromey@adacore.com>
10195
10196 * ravenscar-thread.c (ravenscar_runtime_initializer)
10197 (has_ravenscar_runtime, get_running_thread_id)
10198 (ravenscar_thread_target::resume): Fix indentation.
10199
7657f14d
TT
102002019-02-15 Tom Tromey <tromey@adacore.com>
10201
10202 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
10203 from ravenscar_arch_ops.
10204 (sparc_ravenscar_ops::fetch_registers)
10205 (sparc_ravenscar_ops::store_registers): Now methods.
10206 (sparc_ravenscar_prepare_to_store): Remove.
10207 (sparc_ravenscar_ops): Redefine.
10208 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
10209 methods and destructor. Remove members.
10210 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
10211 (ravenscar_thread_target::store_registers)
10212 (ravenscar_thread_target::prepare_to_store): Update.
10213 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
10214 Remove.
10215 (struct ppc_ravenscar_powerpc_ops): Derive from
10216 ravenscar_arch_ops.
10217 (ppc_ravenscar_powerpc_ops::fetch_registers)
10218 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
10219 (ppc_ravenscar_powerpc_ops): Redefine.
10220 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
10221 (ppc_ravenscar_e500_ops::fetch_registers)
10222 (ppc_ravenscar_e500_ops::store_registers): Now methods.
10223 (ppc_ravenscar_e500_ops): Redefine.
10224 * aarch64-ravenscar-thread.c
10225 (aarch64_ravenscar_generic_prepare_to_store): Remove.
10226 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
10227 (aarch64_ravenscar_fetch_registers)
10228 (aarch64_ravenscar_store_registers): Now methods.
10229 (aarch64_ravenscar_ops): Redefine.
10230
5b6ea500
TT
102312019-02-15 Tom Tromey <tromey@adacore.com>
10232
10233 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
10234 (ravenscar_thread_target::stopped_by_hw_breakpoint)
10235 (ravenscar_thread_target::stopped_by_watchpoint)
10236 (ravenscar_thread_target::stopped_data_address)
10237 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
10238
e397fd39
TT
102392019-02-15 Tom Tromey <tromey@adacore.com>
10240
10241 * ravenscar-thread.c: Fix some typos.
10242
cc12f4a8
TT
102432019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10244 Tom Tromey <tromey@adacore.com>
10245
10246 * ada-lang.c (ada_exception_sal): Change addr_string to a
10247 std::string.
10248 (create_ada_exception_catchpoint): Update.
10249
5f486660
TT
102502019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10251 Tom Tromey <tromey@adacore.com>
10252
10253 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
10254 (bp_location_ops): Remove.
10255 (base_breakpoint_allocate_location): Update.
10256 (free_bp_location): Update.
10257 * ada-lang.c (class ada_catchpoint_location)
10258 <ada_catchpoint_location>: Remove ops parameter.
10259 (ada_catchpoint_location_dtor): Remove.
10260 (ada_catchpoint_location_ops): Remove.
10261 (allocate_location_exception): Update.
10262 * breakpoint.h (struct bp_location_ops): Remove.
10263 (class bp_location) <bp_location>: Remove bp_location_ops
10264 parameter.
10265 <~bp_location>: Add destructor.
10266 <ops>: Remove.
10267
b671c7fb
TS
102682019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10269 Pedro Alves <palves@redhat.com>
10270
10271 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
10272 'PATH_MAX'.
10273
8071c5ce
DM
102742019-02-14 David Michael <fedora.dm0@gmail.com>
10275 Samuel Thibault <samuel.thibault@gnu.org>
10276 Thomas Schwinge <thomas@codesourcery.com>
10277
10278 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
10279 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
10280
b1041ae0
TS
102812019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10282
924514e1
TS
10283 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
10284 (check_empty): Use "const char *".
10285
c29ee8d4
TS
10286 * gnu-nat.c (gnu_nat_target::detach): Instead of
10287 'detach_inferior (pid)' call
10288 'detach_inferior (find_inferior_pid (pid))'.
10289
6c6ef69f
TS
10290 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
10291 'nat/fork-inferior.o'.
10292 * gnu-nat.c: #include "nat/fork-inferior.h".
10293
2d0a338c
TS
10294 * gnu-nat.c (gnu_nat_target::detach): Instead of
10295 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
10296 * gnu-nat.h: #include "inf-child.h".
10297 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
10298 'i386_gnu_nat_target::fetch_registers'.
10299 (gnu_store_registers): Rename/move to
10300 'i386_gnu_nat_target::store_registers'.
10301
cabb5f06
TS
10302 * config/i386/nm-i386gnu.h: Don't "#include" any files.
10303 * gnu-nat.h (mach_thread_info): New function.
10304 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
10305
b1041ae0
TS
10306 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
10307
2988d01e
KF
103082019-02-14 Frederic Konrad <konrad@adacore.com>
10309
10310 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
10311
c559d709
JB
103122019-02-14 Joel Brobecker <brobecker@adacore.com>
10313
10314 * windows-nat.c (windows_add_thread): Add new parameter
10315 "main_thread_p" with default value set to false. Update
10316 function documentation as well as all callers.
10317 (windows_delete_thread): Likewise.
10318 (fake_create_process): Update call to windows_add_thread.
10319 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
10320 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
10321 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
10322 call to windows_delete_thread.
10323
007024cc
SM
103242019-02-13 Simon Marchi <simon.marchi@ericsson.com>
10325
10326 * MAINTAINERS: Add Andrew Burgess as global maintainer.
10327
f62318e9
JB
103282019-02-12 John Baldwin <jhb@FreeBSD.org>
10329
10330 * symfile.c (find_separate_debug_file): Use canonical path of
10331 sysroot with child_path instead of gdb_sysroot if it is valid.
10332
cd4b7848
JB
103332019-02-12 John Baldwin <jhb@FreeBSD.org>
10334
10335 * symfile.c (find_separate_debug_file): Use child_path to
10336 determine if an object file is under a sysroot.
10337
efac4bfe
JB
103382019-02-12 John Baldwin <jhb@FreeBSD.org>
10339
10340 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10341 unittests/child-path-selftests.c.
10342 * common/pathstuff.c (child_path): New function.
10343 * common/pathstuff.h (child_path): New prototype.
10344 * unittests/child-path-selftests.c: New file.
10345
402d2bfe
JB
103462019-02-12 John Baldwin <jhb@FreeBSD.org>
10347
10348 * symfile.c (find_separate_debug_file): Look for separate debug
10349 files in debug directories under the sysroot.
10350
1ed9f74e
PW
103512019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10352
10353 * symtab.h (struct minimal_symbol data_p): New const method.
10354 (struct minimal_symbol text_p): Likewise.
10355 * symtab.c (output_source_filename): Use file name style
10356 to print file name.
10357 (print_symbol_info): Likewise.
10358 (print_msymbol_info): Use address style to print addresses.
10359 Use function name style to print executable text symbols.
10360 (expand_symtab_containing_pc): Use data_p.
10361 (find_pc_sect_compunit_symtab): Likewise.
10362
2636d81d
PW
103632019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10364
10365 * breakpoint.c (describe_other_breakpoints): Use address style
10366 to print addresses.
10367 (say_where): Likewise.
10368
ac8c53cc
PW
103692019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10370
10371 * ada-typeprint.c (print_func_type): Print function name
10372 style to print function name.
10373 * c-typeprint.c (c_print_type_1): Likewise.
10374
ea638c43
AH
103752019-02-11 Alan Hayward <alan.hayward@arm.com>
10376
10377 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
10378 for execve.
10379
ab759ca8
PW
103802019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10381
10382 * c-exp.y (direct_abs_decl): Use emplace_back to record the
10383 type_stack.
10384
aff29d1c
JB
103852019-02-10 Joel Brobecker <brobecker@adacore.com>
10386
10387 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
10388 TYPE_CODE_REF types.
10389
617126bc
JW
103902019-02-08 Jim Wilson <jimw@sifive.com>
10391
10392 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
10393 (riscv_linux_fregset): New.
10394 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
10395
46e3ed7f
TT
103962019-02-07 Tom Tromey <tom@tromey.com>
10397
10398 * thread.c (thread_cancel_execution_command): Update.
10399 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
10400 methods.
10401 (struct thread_fsm_ops): Remove.
10402 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
10403 (thread_fsm_should_stop, thread_fsm_return_value)
10404 (thread_fsm_set_finished, thread_fsm_finished_p)
10405 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
10406 Don't declare.
10407 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
10408 * infrun.c (clear_proceed_status_thread)
10409 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
10410 (print_stop_event): Update.
10411 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
10412 Add constructor.
10413 (step_command_fsm_ops): Remove.
10414 (new_step_command_fsm): Remove.
10415 (step_1): Update.
10416 (step_command_fsm::should_stop): Rename from
10417 step_command_fsm_should_stop.
10418 (step_command_fsm::clean_up): Rename from
10419 step_command_fsm_clean_up.
10420 (step_command_fsm::do_async_reply_reason): Rename from
10421 step_command_fsm_async_reply_reason.
10422 (struct until_next_fsm): Inherit from thread_fsm. Add
10423 constructor.
10424 (until_next_fsm_ops): Remove.
10425 (new_until_next_fsm): Remove.
10426 (until_next_fsm::should_stop): Rename from
10427 until_next_fsm_should_stop.
10428 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
10429 (until_next_fsm::do_async_reply_reason): Rename from
10430 until_next_fsm_async_reply_reason.
10431 (struct finish_command_fsm): Inherit from thread_fsm. Add
10432 constructor. Change type of breakpoint.
10433 (finish_command_fsm_ops): Remove.
10434 (new_finish_command_fsm): Remove.
10435 (finish_command_fsm::should_stop): Rename from
10436 finish_command_fsm_should_stop.
10437 (finish_command_fsm::clean_up): Rename from
10438 finish_command_fsm_clean_up.
10439 (finish_command_fsm::return_value): Rename from
10440 finish_command_fsm_return_value.
10441 (finish_command_fsm::do_async_reply_reason): Rename from
10442 finish_command_fsm_async_reply_reason.
10443 (finish_command): Update.
10444 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
10445 Add constructor.
10446 (call_thread_fsm_ops): Remove.
10447 (call_thread_fsm::call_thread_fsm): Rename from
10448 new_call_thread_fsm.
10449 (call_thread_fsm::should_stop): Rename from
10450 call_thread_fsm_should_stop.
10451 (call_thread_fsm::should_notify_stop): Rename from
10452 call_thread_fsm_should_notify_stop.
10453 (run_inferior_call, call_function_by_hand_dummy): Update.
10454 * cli/cli-interp.c (should_print_stop_to_console): Update.
10455 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
10456 Add constructor. Change type of location_breakpoint,
10457 caller_breakpoint.
10458 (until_break_fsm_ops): Remove.
10459 (new_until_break_fsm): Remove.
10460 (until_break_fsm::should_stop): Rename from
10461 until_break_fsm_should_stop.
10462 (until_break_fsm::clean_up): Rename from
10463 until_break_fsm_clean_up.
10464 (until_break_fsm::do_async_reply_reason): Rename from
10465 until_break_fsm_async_reply_reason.
10466 (until_break_command): Update.
10467 * thread-fsm.c: Remove.
10468 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
10469
1a5c2598
TT
104702019-02-07 Tom Tromey <tom@tromey.com>
10471
10472 * yy-remap.h: Add include guard.
10473 * xtensa-tdep.h: Add include guard.
10474 * xcoffread.h: Rename include guard.
10475 * varobj-iter.h: Add include guard.
10476 * tui/tui.h: Rename include guard.
10477 * tui/tui-winsource.h: Rename include guard.
10478 * tui/tui-wingeneral.h: Rename include guard.
10479 * tui/tui-windata.h: Rename include guard.
10480 * tui/tui-win.h: Rename include guard.
10481 * tui/tui-stack.h: Rename include guard.
10482 * tui/tui-source.h: Rename include guard.
10483 * tui/tui-regs.h: Rename include guard.
10484 * tui/tui-out.h: Rename include guard.
10485 * tui/tui-layout.h: Rename include guard.
10486 * tui/tui-io.h: Rename include guard.
10487 * tui/tui-hooks.h: Rename include guard.
10488 * tui/tui-file.h: Rename include guard.
10489 * tui/tui-disasm.h: Rename include guard.
10490 * tui/tui-data.h: Rename include guard.
10491 * tui/tui-command.h: Rename include guard.
10492 * tic6x-tdep.h: Add include guard.
10493 * target/waitstatus.h: Rename include guard.
10494 * target/wait.h: Rename include guard.
10495 * target/target.h: Rename include guard.
10496 * target/resume.h: Rename include guard.
10497 * target-float.h: Rename include guard.
10498 * stabsread.h: Add include guard.
10499 * rs6000-tdep.h: Add include guard.
10500 * riscv-fbsd-tdep.h: Add include guard.
10501 * regformats/regdef.h: Rename include guard.
10502 * record.h: Rename include guard.
10503 * python/python.h: Rename include guard.
10504 * python/python-internal.h: Rename include guard.
10505 * python/py-stopevent.h: Rename include guard.
10506 * python/py-ref.h: Rename include guard.
10507 * python/py-record.h: Rename include guard.
10508 * python/py-record-full.h: Rename include guard.
10509 * python/py-record-btrace.h: Rename include guard.
10510 * python/py-instruction.h: Rename include guard.
10511 * python/py-events.h: Rename include guard.
10512 * python/py-event.h: Rename include guard.
10513 * procfs.h: Add include guard.
10514 * proc-utils.h: Add include guard.
10515 * p-lang.h: Add include guard.
10516 * or1k-tdep.h: Rename include guard.
10517 * observable.h: Rename include guard.
10518 * nto-tdep.h: Rename include guard.
10519 * nat/x86-linux.h: Rename include guard.
10520 * nat/x86-linux-dregs.h: Rename include guard.
10521 * nat/x86-gcc-cpuid.h: Add include guard.
10522 * nat/x86-dregs.h: Rename include guard.
10523 * nat/x86-cpuid.h: Rename include guard.
10524 * nat/ppc-linux.h: Rename include guard.
10525 * nat/mips-linux-watch.h: Rename include guard.
10526 * nat/linux-waitpid.h: Rename include guard.
10527 * nat/linux-ptrace.h: Rename include guard.
10528 * nat/linux-procfs.h: Rename include guard.
10529 * nat/linux-osdata.h: Rename include guard.
10530 * nat/linux-nat.h: Rename include guard.
10531 * nat/linux-namespaces.h: Rename include guard.
10532 * nat/linux-btrace.h: Rename include guard.
10533 * nat/glibc_thread_db.h: Rename include guard.
10534 * nat/gdb_thread_db.h: Rename include guard.
10535 * nat/gdb_ptrace.h: Rename include guard.
10536 * nat/fork-inferior.h: Rename include guard.
10537 * nat/amd64-linux-siginfo.h: Rename include guard.
10538 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
10539 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
10540 * nat/aarch64-linux.h: Rename include guard.
10541 * nat/aarch64-linux-hw-point.h: Rename include guard.
10542 * mn10300-tdep.h: Add include guard.
10543 * mips-linux-tdep.h: Add include guard.
10544 * mi/mi-parse.h: Rename include guard.
10545 * mi/mi-out.h: Rename include guard.
10546 * mi/mi-main.h: Rename include guard.
10547 * mi/mi-interp.h: Rename include guard.
10548 * mi/mi-getopt.h: Rename include guard.
10549 * mi/mi-console.h: Rename include guard.
10550 * mi/mi-common.h: Rename include guard.
10551 * mi/mi-cmds.h: Rename include guard.
10552 * mi/mi-cmd-break.h: Rename include guard.
10553 * m2-lang.h: Add include guard.
10554 * location.h: Rename include guard.
10555 * linux-record.h: Rename include guard.
10556 * linux-nat.h: Add include guard.
10557 * linux-fork.h: Add include guard.
10558 * i386-darwin-tdep.h: Rename include guard.
10559 * hppa-linux-offsets.h: Add include guard.
10560 * guile/guile.h: Rename include guard.
10561 * guile/guile-internal.h: Rename include guard.
10562 * gnu-nat.h: Rename include guard.
10563 * gdb-stabs.h: Rename include guard.
10564 * frv-tdep.h: Add include guard.
10565 * f-lang.h: Add include guard.
10566 * event-loop.h: Add include guard.
10567 * darwin-nat.h: Rename include guard.
10568 * cp-abi.h: Rename include guard.
10569 * config/sparc/nm-sol2.h: Rename include guard.
10570 * config/nm-nto.h: Rename include guard.
10571 * config/nm-linux.h: Add include guard.
10572 * config/i386/nm-i386gnu.h: Rename include guard.
10573 * config/djgpp/nl_types.h: Rename include guard.
10574 * config/djgpp/langinfo.h: Rename include guard.
10575 * compile/gcc-cp-plugin.h: Add include guard.
10576 * compile/gcc-c-plugin.h: Add include guard.
10577 * compile/compile.h: Rename include guard.
10578 * compile/compile-object-run.h: Rename include guard.
10579 * compile/compile-object-load.h: Rename include guard.
10580 * compile/compile-internal.h: Rename include guard.
10581 * compile/compile-cplus.h: Rename include guard.
10582 * compile/compile-c.h: Rename include guard.
10583 * common/xml-utils.h: Rename include guard.
10584 * common/x86-xstate.h: Rename include guard.
10585 * common/version.h: Rename include guard.
10586 * common/vec.h: Rename include guard.
10587 * common/tdesc.h: Rename include guard.
10588 * common/selftest.h: Rename include guard.
10589 * common/scoped_restore.h: Rename include guard.
10590 * common/scoped_mmap.h: Rename include guard.
10591 * common/scoped_fd.h: Rename include guard.
10592 * common/safe-iterator.h: Rename include guard.
10593 * common/run-time-clock.h: Rename include guard.
10594 * common/refcounted-object.h: Rename include guard.
10595 * common/queue.h: Rename include guard.
10596 * common/ptid.h: Rename include guard.
10597 * common/print-utils.h: Rename include guard.
10598 * common/preprocessor.h: Rename include guard.
10599 * common/pathstuff.h: Rename include guard.
10600 * common/observable.h: Rename include guard.
10601 * common/netstuff.h: Rename include guard.
10602 * common/job-control.h: Rename include guard.
10603 * common/host-defs.h: Rename include guard.
10604 * common/gdb_wait.h: Rename include guard.
10605 * common/gdb_vecs.h: Rename include guard.
10606 * common/gdb_unlinker.h: Rename include guard.
10607 * common/gdb_unique_ptr.h: Rename include guard.
10608 * common/gdb_tilde_expand.h: Rename include guard.
10609 * common/gdb_sys_time.h: Rename include guard.
10610 * common/gdb_string_view.h: Rename include guard.
10611 * common/gdb_splay_tree.h: Rename include guard.
10612 * common/gdb_setjmp.h: Rename include guard.
10613 * common/gdb_ref_ptr.h: Rename include guard.
10614 * common/gdb_optional.h: Rename include guard.
10615 * common/gdb_locale.h: Rename include guard.
10616 * common/gdb_assert.h: Rename include guard.
10617 * common/filtered-iterator.h: Rename include guard.
10618 * common/filestuff.h: Rename include guard.
10619 * common/fileio.h: Rename include guard.
10620 * common/environ.h: Rename include guard.
10621 * common/common-utils.h: Rename include guard.
10622 * common/common-types.h: Rename include guard.
10623 * common/common-regcache.h: Rename include guard.
10624 * common/common-inferior.h: Rename include guard.
10625 * common/common-gdbthread.h: Rename include guard.
10626 * common/common-exceptions.h: Rename include guard.
10627 * common/common-defs.h: Rename include guard.
10628 * common/common-debug.h: Rename include guard.
10629 * common/cleanups.h: Rename include guard.
10630 * common/buffer.h: Rename include guard.
10631 * common/btrace-common.h: Rename include guard.
10632 * common/break-common.h: Rename include guard.
10633 * cli/cli-utils.h: Rename include guard.
10634 * cli/cli-style.h: Rename include guard.
10635 * cli/cli-setshow.h: Rename include guard.
10636 * cli/cli-script.h: Rename include guard.
10637 * cli/cli-interp.h: Rename include guard.
10638 * cli/cli-decode.h: Rename include guard.
10639 * cli/cli-cmds.h: Rename include guard.
10640 * charset-list.h: Add include guard.
10641 * buildsym-legacy.h: Rename include guard.
10642 * bfin-tdep.h: Add include guard.
10643 * ax.h: Rename include guard.
10644 * arm-linux-tdep.h: Add include guard.
10645 * arm-fbsd-tdep.h: Add include guard.
10646 * arch/xtensa.h: Rename include guard.
10647 * arch/tic6x.h: Add include guard.
10648 * arch/i386.h: Add include guard.
10649 * arch/arm.h: Rename include guard.
10650 * arch/arm-linux.h: Rename include guard.
10651 * arch/arm-get-next-pcs.h: Rename include guard.
10652 * arch/amd64.h: Add include guard.
10653 * arch/aarch64-insn.h: Rename include guard.
10654 * arch-utils.h: Rename include guard.
10655 * annotate.h: Add include guard.
10656 * amd64-darwin-tdep.h: Rename include guard.
10657 * aarch64-linux-tdep.h: Add include guard.
10658 * aarch64-fbsd-tdep.h: Add include guard.
10659 * aarch32-linux-nat.h: Add include guard.
10660
ab9268d2
PW
106612019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10662
10663 * macrotab.c (macro_define_internal): New function that
10664 factorizes macro_define_object_internal and macro_define_function
10665 code.
10666 (macro_define_object_internal): Use macro_define_internal.
10667 (macro_define_function): Likewise.
10668
bb0da2b4
PW
106692019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10670
10671 * macrocmd.c (extract_identifier): Return
10672 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
10673 callers.
10674
424eb552
JB
106752019-02-06 John Baldwin <jhb@FreeBSD.org>
10676
10677 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
10678
1688cb29
TT
106792019-02-05 Tom Tromey <tom@tromey.com>
10680
10681 * target.c (target_stack::unpush): Move assertion earlier.
10682
b5eba2d8
TT
106832019-01-30 Tom Tromey <tom@tromey.com>
10684
10685 PR python/23615:
10686 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
10687 (gdbpy_parse_and_eval): Likewise.
10688 * python/python-internal.h (gdbpy_allow_threads): New class.
10689
7054e2ff
JB
106902019-01-28 John Baldwin <jhb@FreeBSD.org>
10691
10692 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
10693 (aarch64_fbsd_fpregmap): Move earlier.
10694 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
10695 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
10696 instead of individual calls to trad_frame_set_reg_addr.
10697 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
10698 earlier.
10699 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
10700 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
10701 instead of individual calls to trad_frame_set_reg_addr.
10702
36c25ffa
AH
107032019-01-28 Alan Hayward <alan.hayward@arm.com>
10704
10705 * CONTRIBUTE: Replace contribution list with wiki link.
10706
a0707f3c
TT
107072019-01-25 Tom Tromey <tom@tromey.com>
10708
10709 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
10710
0747795c
TT
107112019-01-25 Tom Tromey <tom@tromey.com>
10712
10713 * xtensa-linux-nat.c: Fix common/ includes.
10714 * xml-support.h: Fix common/ includes.
10715 * xml-support.c: Fix common/ includes.
10716 * x86-linux-nat.c: Fix common/ includes.
10717 * windows-nat.c: Fix common/ includes.
10718 * varobj.h: Fix common/ includes.
10719 * varobj.c: Fix common/ includes.
10720 * value.c: Fix common/ includes.
10721 * valops.c: Fix common/ includes.
10722 * utils.c: Fix common/ includes.
10723 * unittests/xml-utils-selftests.c: Fix common/ includes.
10724 * unittests/utils-selftests.c: Fix common/ includes.
10725 * unittests/unpack-selftests.c: Fix common/ includes.
10726 * unittests/tracepoint-selftests.c: Fix common/ includes.
10727 * unittests/style-selftests.c: Fix common/ includes.
10728 * unittests/string_view-selftests.c: Fix common/ includes.
10729 * unittests/scoped_restore-selftests.c: Fix common/ includes.
10730 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
10731 * unittests/scoped_fd-selftests.c: Fix common/ includes.
10732 * unittests/rsp-low-selftests.c: Fix common/ includes.
10733 * unittests/parse-connection-spec-selftests.c: Fix common/
10734 includes.
10735 * unittests/optional-selftests.c: Fix common/ includes.
10736 * unittests/offset-type-selftests.c: Fix common/ includes.
10737 * unittests/observable-selftests.c: Fix common/ includes.
10738 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
10739 * unittests/memrange-selftests.c: Fix common/ includes.
10740 * unittests/memory-map-selftests.c: Fix common/ includes.
10741 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
10742 * unittests/function-view-selftests.c: Fix common/ includes.
10743 * unittests/environ-selftests.c: Fix common/ includes.
10744 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
10745 * unittests/common-utils-selftests.c: Fix common/ includes.
10746 * unittests/cli-utils-selftests.c: Fix common/ includes.
10747 * unittests/array-view-selftests.c: Fix common/ includes.
10748 * ui-file.c: Fix common/ includes.
10749 * tui/tui-io.c: Fix common/ includes.
10750 * tracepoint.h: Fix common/ includes.
10751 * tracepoint.c: Fix common/ includes.
10752 * tracefile-tfile.c: Fix common/ includes.
10753 * top.h: Fix common/ includes.
10754 * top.c: Fix common/ includes.
10755 * thread.c: Fix common/ includes.
10756 * target/waitstatus.h: Fix common/ includes.
10757 * target/waitstatus.c: Fix common/ includes.
10758 * target.h: Fix common/ includes.
10759 * target.c: Fix common/ includes.
10760 * target-memory.c: Fix common/ includes.
10761 * target-descriptions.c: Fix common/ includes.
10762 * symtab.h: Fix common/ includes.
10763 * symfile.c: Fix common/ includes.
10764 * stap-probe.c: Fix common/ includes.
10765 * spu-linux-nat.c: Fix common/ includes.
10766 * sparc-nat.c: Fix common/ includes.
10767 * source.c: Fix common/ includes.
10768 * solib.c: Fix common/ includes.
10769 * solib-target.c: Fix common/ includes.
10770 * ser-unix.c: Fix common/ includes.
10771 * ser-tcp.c: Fix common/ includes.
10772 * ser-pipe.c: Fix common/ includes.
10773 * ser-base.c: Fix common/ includes.
10774 * selftest-arch.c: Fix common/ includes.
10775 * s12z-tdep.c: Fix common/ includes.
10776 * rust-exp.y: Fix common/ includes.
10777 * rs6000-aix-tdep.c: Fix common/ includes.
10778 * riscv-tdep.c: Fix common/ includes.
10779 * remote.c: Fix common/ includes.
10780 * remote-notif.h: Fix common/ includes.
10781 * remote-fileio.h: Fix common/ includes.
10782 * remote-fileio.c: Fix common/ includes.
10783 * regcache.h: Fix common/ includes.
10784 * regcache.c: Fix common/ includes.
10785 * record-btrace.c: Fix common/ includes.
10786 * python/python.c: Fix common/ includes.
10787 * python/py-type.c: Fix common/ includes.
10788 * python/py-inferior.c: Fix common/ includes.
10789 * progspace.h: Fix common/ includes.
10790 * producer.c: Fix common/ includes.
10791 * procfs.c: Fix common/ includes.
10792 * proc-api.c: Fix common/ includes.
10793 * printcmd.c: Fix common/ includes.
10794 * ppc-linux-nat.c: Fix common/ includes.
10795 * parser-defs.h: Fix common/ includes.
10796 * osdata.c: Fix common/ includes.
10797 * obsd-nat.c: Fix common/ includes.
10798 * nat/x86-linux.c: Fix common/ includes.
10799 * nat/x86-linux-dregs.c: Fix common/ includes.
10800 * nat/x86-dregs.h: Fix common/ includes.
10801 * nat/x86-dregs.c: Fix common/ includes.
10802 * nat/ppc-linux.c: Fix common/ includes.
10803 * nat/mips-linux-watch.h: Fix common/ includes.
10804 * nat/mips-linux-watch.c: Fix common/ includes.
10805 * nat/linux-waitpid.c: Fix common/ includes.
10806 * nat/linux-ptrace.h: Fix common/ includes.
10807 * nat/linux-ptrace.c: Fix common/ includes.
10808 * nat/linux-procfs.c: Fix common/ includes.
10809 * nat/linux-personality.c: Fix common/ includes.
10810 * nat/linux-osdata.c: Fix common/ includes.
10811 * nat/linux-namespaces.c: Fix common/ includes.
10812 * nat/linux-btrace.h: Fix common/ includes.
10813 * nat/linux-btrace.c: Fix common/ includes.
10814 * nat/fork-inferior.c: Fix common/ includes.
10815 * nat/amd64-linux-siginfo.c: Fix common/ includes.
10816 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
10817 * nat/aarch64-linux.c: Fix common/ includes.
10818 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
10819 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
10820 * namespace.h: Fix common/ includes.
10821 * mips-linux-tdep.c: Fix common/ includes.
10822 * minsyms.c: Fix common/ includes.
10823 * mi/mi-parse.h: Fix common/ includes.
10824 * mi/mi-main.c: Fix common/ includes.
10825 * mi/mi-cmd-env.c: Fix common/ includes.
10826 * memrange.h: Fix common/ includes.
10827 * memattr.c: Fix common/ includes.
10828 * maint.h: Fix common/ includes.
10829 * maint.c: Fix common/ includes.
10830 * main.c: Fix common/ includes.
10831 * machoread.c: Fix common/ includes.
10832 * location.c: Fix common/ includes.
10833 * linux-thread-db.c: Fix common/ includes.
10834 * linux-nat.c: Fix common/ includes.
10835 * linux-fork.c: Fix common/ includes.
10836 * inline-frame.c: Fix common/ includes.
10837 * infrun.c: Fix common/ includes.
10838 * inflow.c: Fix common/ includes.
10839 * inferior.h: Fix common/ includes.
10840 * inferior.c: Fix common/ includes.
10841 * infcmd.c: Fix common/ includes.
10842 * inf-ptrace.c: Fix common/ includes.
10843 * inf-child.c: Fix common/ includes.
10844 * ia64-linux-nat.c: Fix common/ includes.
10845 * i387-tdep.c: Fix common/ includes.
10846 * i386-tdep.c: Fix common/ includes.
10847 * i386-linux-tdep.c: Fix common/ includes.
10848 * i386-linux-nat.c: Fix common/ includes.
10849 * i386-go32-tdep.c: Fix common/ includes.
10850 * i386-fbsd-tdep.c: Fix common/ includes.
10851 * i386-fbsd-nat.c: Fix common/ includes.
10852 * guile/scm-type.c: Fix common/ includes.
10853 * guile/guile.c: Fix common/ includes.
10854 * go32-nat.c: Fix common/ includes.
10855 * gnu-nat.c: Fix common/ includes.
10856 * gdbthread.h: Fix common/ includes.
10857 * gdbarch-selftests.c: Fix common/ includes.
10858 * gdb_usleep.c: Fix common/ includes.
10859 * gdb_select.h: Fix common/ includes.
10860 * gdb_bfd.c: Fix common/ includes.
10861 * gcore.c: Fix common/ includes.
10862 * fork-child.c: Fix common/ includes.
10863 * findvar.c: Fix common/ includes.
10864 * fbsd-nat.c: Fix common/ includes.
10865 * event-top.c: Fix common/ includes.
10866 * event-loop.c: Fix common/ includes.
10867 * dwarf2read.c: Fix common/ includes.
10868 * dwarf2loc.c: Fix common/ includes.
10869 * dwarf2-frame.c: Fix common/ includes.
10870 * dwarf-index-cache.c: Fix common/ includes.
10871 * dtrace-probe.c: Fix common/ includes.
10872 * disasm-selftests.c: Fix common/ includes.
10873 * defs.h: Fix common/ includes.
10874 * csky-tdep.c: Fix common/ includes.
10875 * cp-valprint.c: Fix common/ includes.
10876 * cp-support.h: Fix common/ includes.
10877 * cp-support.c: Fix common/ includes.
10878 * corelow.c: Fix common/ includes.
10879 * completer.h: Fix common/ includes.
10880 * completer.c: Fix common/ includes.
10881 * compile/compile.c: Fix common/ includes.
10882 * compile/compile-loc2c.c: Fix common/ includes.
10883 * compile/compile-cplus-types.c: Fix common/ includes.
10884 * compile/compile-cplus-symbols.c: Fix common/ includes.
10885 * command.h: Fix common/ includes.
10886 * cli/cli-dump.c: Fix common/ includes.
10887 * cli/cli-cmds.c: Fix common/ includes.
10888 * charset.c: Fix common/ includes.
10889 * build-id.c: Fix common/ includes.
10890 * btrace.h: Fix common/ includes.
10891 * btrace.c: Fix common/ includes.
10892 * breakpoint.h: Fix common/ includes.
10893 * breakpoint.c: Fix common/ includes.
10894 * ax.h:
10895 (enum agent_op): Fix common/ includes.
10896 * ax-general.c (struct aop_map): Fix common/ includes.
10897 * ax-gdb.c: Fix common/ includes.
10898 * auxv.c: Fix common/ includes.
10899 * auto-load.c: Fix common/ includes.
10900 * arm-tdep.c: Fix common/ includes.
10901 * arch/riscv.c: Fix common/ includes.
10902 * arch/ppc-linux-common.c: Fix common/ includes.
10903 * arch/i386.c: Fix common/ includes.
10904 * arch/arm.c: Fix common/ includes.
10905 * arch/arm-linux.c: Fix common/ includes.
10906 * arch/arm-get-next-pcs.c: Fix common/ includes.
10907 * arch/amd64.c: Fix common/ includes.
10908 * arch/aarch64.c: Fix common/ includes.
10909 * arch/aarch64-insn.c: Fix common/ includes.
10910 * arch-utils.c: Fix common/ includes.
10911 * amd64-windows-tdep.c: Fix common/ includes.
10912 * amd64-tdep.c: Fix common/ includes.
10913 * amd64-sol2-tdep.c: Fix common/ includes.
10914 * amd64-obsd-tdep.c: Fix common/ includes.
10915 * amd64-nbsd-tdep.c: Fix common/ includes.
10916 * amd64-linux-tdep.c: Fix common/ includes.
10917 * amd64-linux-nat.c: Fix common/ includes.
10918 * amd64-fbsd-tdep.c: Fix common/ includes.
10919 * amd64-fbsd-nat.c: Fix common/ includes.
10920 * amd64-dicos-tdep.c: Fix common/ includes.
10921 * amd64-darwin-tdep.c: Fix common/ includes.
10922 * agent.c: Fix common/ includes.
10923 * ada-lang.h: Fix common/ includes.
10924 * ada-lang.c: Fix common/ includes.
10925 * aarch64-tdep.c: Fix common/ includes.
10926
2f5c153e
TT
109272019-01-25 Tom Tromey <tom@tromey.com>
10928
10929 * common/create-version.sh: Use common/version.h.
10930
adc6a863
PA
109312019-01-24 Pedro Alves <palves@redhat.com>
10932
10933 * infrun.c (signal_stop, signal_print, signal_program)
10934 (signal_catch, signal_pass): Now arrays instead of pointers.
10935 (update_signals_program_target, do_target_resume)
10936 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
10937 * linux-nat.c (linux_nat_target::pass_signals)
10938 (linux_nat_target::create_inferior, linux_nat_target::attach):
10939 Adjust.
10940 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
10941 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
10942 * procfs.c (procfs_target::pass_signals): Adjust.
10943 * record-full.c (record_full_target::resume): Adjust.
10944 * remote.c (remote_target::pass_signals)
10945 (remote_target::program_signals): Adjust.
10946 * target-debug.h (target_debug_print_signals): Now takes a
10947 gdb::array_view as parameter. Adjust.
10948 * target.h (target_ops) <pass_signals, program_signals>: Replace
10949 pointer and length parameters with gdb::array_view.
10950 (target_pass_signals, target_program_signals): Likewise.
10951 * target-delegates.c: Regenerate.
10952
3046d67a
PA
109532019-01-24 Pedro Alves <palves@redhat.com>
10954
10955 * common/forward-scope-exit.h
10956 (forward_scope_exit::forward_scope_exit): Pass arguments to
10957 m_bind_function directly, instead of creating a std::bind and
10958 copying that.
10959
353229bf
AH
109602019-01-24 Alan Hayward <alan.hayward@arm.com>
10961
10962 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
10963 for static members.
10964 (pass_in_v_vfp_candidate): Likewise.
10965
311dc83a
TT
109662019-01-23 Tom Tromey <tom@tromey.com>
10967 Pedro Alves <palves@redhat.com>
10968
10969 * regcache.c (class regcache_invalidator): Remove.
10970 (regcache::raw_write): Use make_scope_exit.
10971
296bd123
TT
109722019-01-23 Tom Tromey <tom@tromey.com>
10973
10974 * ui-out.h (class ui_out_emit_type): Update comment.
10975
979a0d13
TT
109762019-01-23 Tom Tromey <tom@tromey.com>
10977
10978 * infrun.c (fetch_inferior_event): Update comment.
10979
d238133d
TT
109802019-01-23 Tom Tromey <tom@tromey.com>
10981 Pedro Alves <palves@redhat.com>
10982
10983 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
10984 parameter.
10985 (fetch_inferior_event): Use SCOPE_EXIT.
10986
10987
9885e6bb
TT
109882019-01-23 Tom Tromey <tom@tromey.com>
10989 Pedro Alves <palves@redhat.com>
10990
10991 * infrun.c (disable_thread_events): Delete.
10992 (stop_all_threads): Use SCOPE_EXIT.
10993
286526c1
TT
109942019-01-23 Tom Tromey <tom@tromey.com>
10995 Pedro Alves <palves@redhat.com>
10996
10997 * symfile.c: Include forward-scope-exit.h.
10998 (clear_symtab_users_cleanup): Replace forward declaration with
10999 a FORWARD_SCOPE_EXIT.
11000 (syms_from_objfile_1): Use the forward_scope_exit and
11001 gdb::optional instead of cleanup_function.
11002 (reread_symbols): Use the forward_scope_exit instead of
11003 cleanup_function.
11004 (clear_symtab_users_cleanup): Remove function.
11005
1db93f14
TT
110062019-01-23 Tom Tromey <tom@tromey.com>
11007 Pedro Alves <palves@redhat.com>
11008
11009 * linux-nat.c: Include scope-exit.h.
11010 (cleanup_target_stop): Remove.
11011 (linux_nat_target::static_tracepoint_markers_by_strid): Use
11012 SCOPE_EXIT.
11013
2cc83d1e
TT
110142019-01-23 Tom Tromey <tom@tromey.com>
11015 Pedro Alves <palves@redhat.com>
11016
11017 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
11018 (call_function_by_hand_dummy): Use SCOPE_EXIT.
11019
694c6bf5
TT
110202019-01-23 Tom Tromey <tom@tromey.com>
11021 Andrew Burgess <andrew.burgess@embecosm.com>
11022 Pedro Alves <palves@redhat.com>
11023
11024 * infrun.c (fetch_inferior_event): Use scope_exit.
11025 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
11026 * top.c (execute_command): Use scope_exit.
11027 * breakpoint.c (bpstat_do_actions): Use scope_exit.
11028 * utils.c (do_bpstat_clear_actions_cleanup)
11029 (make_bpstat_clear_actions_cleanup): Remove.
11030
4c41382a
TT
110312019-01-23 Tom Tromey <tom@tromey.com>
11032 Pedro Alves <palves@redhat.com>
11033
11034 * infrun.c: Include "common/scope-exit.h"
11035 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
11036 (wait_for_inferior): Use SCOPE_EXIT.
11037 (fetch_inferior_event): Use scope_exit.
11038
89f8fb50
TT
110392019-01-23 Tom Tromey <tom@tromey.com>
11040 Pedro Alves <palves@redhat.com>
11041
11042 * breakpoint.c (create_breakpoint): Remove cleanup.
11043
5419bdae
TT
110442019-01-23 Tom Tromey <tom@tromey.com>
11045 Andrew Burgess <andrew.burgess@embecosm.com>
11046 Pedro Alves <palves@redhat.com>
11047
e587ef42
PA
110482019-01-23 Pedro Alves <palves@redhat.com>
11049
11050 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
11051
77f0e74c
PA
110522019-01-23 Pedro Alves <palves@redhat.com>
11053 Andrew Burgess <andrew.burgess@embecosm.com>
11054
11055 * gdbthread.h: Include "common/forward-scope-exit.h".
11056 (scoped_finish_thread_state): Redefine custom class in terms of
11057 forward_scope_exit.
11058
5b9b3e53
PA
110592019-01-23 Pedro Alves <palves@redhat.com>
11060 Andrew Burgess <andrew.burgess@embecosm.com>
11061
11062 * common/forward-scope-exit.h: New file.
11063
54b65c9b
PA
110642019-01-23 Pedro Alves <palves@redhat.com>
11065 Andrew Burgess <andrew.burgess@embecosm.com>
11066 Tom Tromey <tom@tromey.com>
11067
11068 * common/scope-exit.h: New file.
11069
cf08fb29
PA
110702019-01-23 Pedro Alves <palves@redhat.com>
11071
11072 * common/preprocessor.h (ESC): Rename to ...
11073 (ESC_PARENS): ... this.
11074 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
11075 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
11076
ae73e2e2
TT
110772019-01-23 Tom Tromey <tom@tromey.com>
11078
11079 * language.h (class scoped_switch_to_sym_language_if_auto):
11080 Initialize m_lang in both cases.
11081
6594e122
AH
110822019-01-23 Alan Hayward <alan.hayward@arm.com>
11083
11084 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
11085 with XCNEW.
11086
a7c9855d
TT
110872019-01-22 Tom Tromey <tom@tromey.com>
11088
11089 * corelow.c: Do not include sys/file.h.
11090
93cc1d53
TT
110912019-01-22 Tom Tromey <tom@tromey.com>
11092
11093 * tui/tui-wingeneral.h: Include gdb_curses.h.
11094
38561778
TT
110952019-01-22 Tom Tromey <tom@tromey.com>
11096
11097 * source-cache.h (class source_cache) <get_source_lines,
11098 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
11099
37b3ab5b
TT
111002019-01-22 Tom Tromey <tom@tromey.com>
11101
11102 * remote-fileio.h (struct remote_target): Declare.
11103
3fabc016
TT
111042019-01-22 Tom Tromey <tom@tromey.com>
11105
11106 * python/py-arch.c: Do not include py-ref.h.
11107 * python/py-bpevent.c: Do not include py-ref.h.
11108 * python/py-cmd.c: Do not include py-ref.h.
11109 * python/py-continueevent.c: Do not include py-ref.h.
11110 * python/py-event.h: Do not include py-ref.h.
11111 * python/py-evtregistry.c: Do not include py-ref.h.
11112 * python/py-finishbreakpoint.c: Do not include py-ref.h.
11113 * python/py-frame.c: Do not include py-ref.h.
11114 * python/py-framefilter.c: Do not include py-ref.h.
11115 * python/py-function.c: Do not include py-ref.h.
11116 * python/py-infevents.c: Do not include py-ref.h.
11117 * python/py-linetable.c: Do not include py-ref.h.
11118 * python/py-objfile.c: Do not include py-ref.h.
11119 * python/py-param.c: Do not include py-ref.h.
11120 * python/py-prettyprint.c: Do not include py-ref.h.
11121 * python/py-progspace.c: Do not include py-ref.h.
11122 * python/py-symbol.c: Do not include py-ref.h.
11123 * python/py-symtab.c: Do not include py-ref.h.
11124 * python/py-type.c: Do not include py-ref.h.
11125 * python/py-unwind.c: Do not include py-ref.h.
11126 * python/py-utils.c: Do not include py-ref.h.
11127 * python/py-value.c: Do not include py-ref.h.
11128 * python/py-varobj.c: Do not include py-ref.h.
11129 * python/py-xmethods.c: Do not include py-ref.h.
11130 * python/python.c: Do not include py-ref.h.
11131 * varobj.c: Do not include py-ref.h.
11132
6b4d7774
TT
111332019-01-22 Tom Tromey <tom@tromey.com>
11134
11135 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
11136 keyword for bcache.
11137
7af7e9b5
TT
111382019-01-22 Tom Tromey <tom@tromey.com>
11139
11140 * compile/compile-cplus-types.c: Remove a comment by #include.
11141
951d1049
TT
111422019-01-22 Tom Tromey <tom@tromey.com>
11143
11144 * compile/gcc-c-plugin.h: Include compile-internal.h.
11145
d65d5705
TT
111462019-01-22 Tom Tromey <tom@tromey.com>
11147
11148 * stabsread.c (EXTERN): Do not define.
11149 (symnum, next_symbol_text_func, processing_gcc_compilation)
11150 (within_function, global_sym_chain, global_stabs)
11151 (previous_stab_code, this_object_header_files)
11152 (n_this_object_header_files)
11153 (n_allocated_this_object_header_files): Define.
11154 * stabsread.h (EXTERN): Never define. Use "extern".
11155
b6fb1ee5
PW
111562019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11157
11158 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
11159 history_value.
11160
be6d4f74
TT
111612019-01-21 Tom Tromey <tom@tromey.com>
11162
11163 * ui-out.c: Fix includes.
11164 * tui/tui-source.c: Fix includes.
11165 * target.c: Fix includes.
11166 * remote.c: Fix includes.
11167 * regcache.c: Fix includes.
11168 * python/py-block.c: Fix includes.
11169 * printcmd.c: Fix includes.
11170 * or1k-tdep.c: Fix includes.
11171 * mi/mi-main.c: Fix includes.
11172 * m32r-tdep.c: Fix includes.
11173 * csky-tdep.c: Fix includes.
11174 * compile/compile-cplus-types.c: Fix includes.
11175 * cli/cli-interp.c: Fix includes.
11176
73021deb
AH
111772019-01-21 Alan Hayward <alan.hayward@arm.com>
11178
11179 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
11180 for padding.
11181
7932255d
TT
111822019-01-16 Tom Tromey <tom@tromey.com>
11183
11184 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
11185 earlier.
11186 (struct objfile) <msymbols_range>: Move from top level.
11187 <msymbols>: New method.
11188 (class objfile_msymbols): Remove.
11189 * symtab.c (default_collect_symbol_completion_matches_break_on):
11190 Update.
11191 * symmisc.c (dump_msymbols): Update.
11192 * stabsread.c (scan_file_globals): Update.
11193 * objc-lang.c (info_selectors_command, info_classes_command)
11194 (find_methods): Update.
11195 * minsyms.c (find_solib_trampoline_target): Update.
11196 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
11197 * coffread.c (coff_symfile_read): Update.
11198 * ada-lang.c (ada_lookup_simple_minsym)
11199 (ada_collect_symbol_completion_matches): Update.
11200
604b1bfb
TT
112012019-01-16 Tom Tromey <tom@tromey.com>
11202
11203 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
11204 type. Remove no-argument constructor.
11205 <iterator::operator++>: Simplify.
11206 <begin>: Update.
11207 <end>: Use minimal_symbol_count.
11208
f252c6d5
TT
112092019-01-16 Tom Tromey <tom@tromey.com>
11210
11211 * objfiles.h (struct objfile) <psymtabs>: New method.
11212 (class objfile_psymtabs): Remove.
11213 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
11214 typedef.
11215 <range>: New method.
11216 (require_partial_symbols): Change return type.
11217 * psymtab.c (require_partial_symbols)
11218 (psym_expand_symtabs_matching): Update.
11219 * mdebugread.c (parse_partial_symbols): Update.
11220 * dbxread.c (dbx_end_psymtab): Update.
11221
b669c953
TT
112222019-01-15 Tom Tromey <tom@tromey.com>
11223
11224 * symtab.c (lookup_objfile_from_block)
11225 (lookup_symbol_in_objfile_symtabs)
11226 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
11227 (find_line_symtab, info_sources_command)
11228 (default_collect_symbol_completion_matches_break_on)
11229 (make_source_files_completion_list): Update.
11230 * symmisc.c (print_objfile_statistics, dump_objfile)
11231 (maintenance_print_symbols, maintenance_info_symtabs)
11232 (maintenance_check_symtabs, maintenance_info_line_tables):
11233 Update.
11234 * source.c (select_source_symtab)
11235 (forget_cached_source_info_for_objfile): Update.
11236 * objfiles.h (class objfile_compunits): Remove.
11237 (struct objfile) <compunits_range>: New typedef.
11238 (compunits): New method.
11239 * objfiles.c (objfile_relocate1): Update.
11240 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11241 * maint.c (count_symtabs_and_blocks): Update.
11242 * linespec.c (iterate_over_all_matching_symtabs): Update.
11243 * cp-support.c (add_symbol_overload_list_qualified): Update.
11244 * coffread.c (coff_symtab_read): Update.
11245 * ada-lang.c (add_nonlocal_symbols)
11246 (ada_collect_symbol_completion_matches)
11247 (ada_add_global_exceptions): Update.
11248
7e955d83
TT
112492019-01-15 Tom Tromey <tom@tromey.com>
11250
11251 * progspace.h (program_space) <objfiles_safe_range>: New
11252 typedef.
11253 <objfiles_safe>: New method.
11254 * objfiles.h (class all_objfiles_safe): Remove.
11255 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
11256 * jit.c (jit_inferior_exit_hook): Update.
11257
2030c079
TT
112582019-01-17 Tom Tromey <tom@tromey.com>
11259
11260 * progspace.h (program_space) <objfiles_range>: New typedef.
11261 <objfiles>: New method.
11262 <objfiles_head>: Rename from objfiles.
11263 (object_files): Update.
11264 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
11265 * guile/scm-pretty-print.c
11266 (ppscm_find_pretty_printer_from_objfiles): Update.
11267 * guile/scm-objfile.c (gdbscm_objfiles): Update.
11268 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
11269 Update.
11270 * python/py-progspace.c (pspy_get_objfiles): Update.
11271 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
11272 Update.
11273 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
11274 (objfpy_lookup_objfile_by_build_id): Update.
11275 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11276 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
11277 Update.
11278 * symtab.c (iterate_over_symtabs, matching_obj_sections)
11279 (expand_symtab_containing_pc, lookup_objfile_from_block)
11280 (lookup_static_symbol, basic_lookup_transparent_type)
11281 (find_pc_sect_compunit_symtab, find_symbol_at_address)
11282 (find_line_symtab, info_sources_command)
11283 (default_collect_symbol_completion_matches_break_on)
11284 (make_source_files_completion_list, find_main_name): Update.
11285 * symmisc.c (print_symbol_bcache_statistics)
11286 (print_objfile_statistics, maintenance_print_symbols)
11287 (maintenance_print_msymbols, maintenance_print_objfiles)
11288 (maintenance_info_symtabs, maintenance_check_symtabs)
11289 (maintenance_expand_symtabs, maintenance_info_line_tables):
11290 Update.
11291 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
11292 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
11293 (map_overlay_command, unmap_overlay_command)
11294 (simple_overlay_update, expand_symtabs_matching)
11295 (map_symbol_filenames): Update.
11296 * symfile-debug.c (set_debug_symfile): Update.
11297 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
11298 Update.
11299 * source.c (select_source_symtab, forget_cached_source_info):
11300 Update.
11301 * solib.c (solib_read_symbols): Update.
11302 * solib-spu.c (append_ocl_sos): Update.
11303 * psymtab.c (maintenance_print_psymbols)
11304 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
11305 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
11306 * printcmd.c (info_symbol_command): Update.
11307 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
11308 Update.
11309 * objfiles.h (class all_objfiles): Remove.
11310 * objfiles.c (have_partial_symbols, have_full_symbols)
11311 (have_minimal_symbols, qsort_cmp, update_section_map)
11312 (shared_objfile_contains_address_p)
11313 (default_iterate_over_objfiles_in_search_order): Update.
11314 * objc-lang.c (info_selectors_command, info_classes_command)
11315 (find_methods): Update.
11316 * minsyms.c (find_solib_trampoline_target): Update.
11317 * maint.c (maintenance_info_sections)
11318 (maintenance_translate_address, count_symtabs_and_blocks):
11319 Update.
11320 * main.c (captured_main_1): Update.
11321 * linux-thread-db.c (try_thread_db_load_from_pdir)
11322 (has_libpthread): Update.
11323 * linespec.c (iterate_over_all_matching_symtabs)
11324 (search_minsyms_for_name): Update.
11325 * jit.c (jit_find_objf_with_entry_addr): Update.
11326 * hppa-tdep.c (find_unwind_entry)
11327 (hppa_lookup_stub_minimal_symbol): Update.
11328 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
11329 Update.
11330 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
11331 (elf_gnu_ifunc_resolve_by_got): Update.
11332 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
11333 * dwarf-index-write.c (save_gdb_index_command): Update.
11334 * cp-support.c (add_symbol_overload_list_qualified): Update.
11335 * breakpoint.c (create_overlay_event_breakpoint)
11336 (create_longjmp_master_breakpoint)
11337 (create_std_terminate_master_breakpoint)
11338 (create_exception_master_breakpoint): Update.
11339 * blockframe.c (find_pc_partial_function): Update.
11340 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
11341 (ada_collect_symbol_completion_matches)
11342 (ada_add_global_exceptions): Update.
11343
776489e0
TT
113442019-01-17 Tom Tromey <tom@tromey.com>
11345
11346 * solib-target.c (lm_info_target_p): Remove typedef. Don't
11347 declare VEC.
11348 (solib_target_parse_libraries): Change return type.
11349 (library_list_start_segment, library_list_start_section)
11350 (library_list_end_library, library_list_start_library); Update.
11351 (solib_target_free_library_list): Remove.
11352 (solib_target_parse_libraries): Remove cleanup. Change return
11353 type.
11354 (solib_target_current_sos): Update.
11355
6471e7d2
TT
113562019-01-17 Tom Tromey <tromey@bapiya>
11357
11358 * valprint.c: Replace "the the" with "the".
11359 * symtab.c: Replace "the the" with "the".
11360 * solib.c: Replace "the the" with "the".
11361 * solib-dsbt.c: Replace "the the" with "the".
11362 * linespec.c: Replace "the the" with "the".
11363 * dwarf2loc.h: Replace "the the" with "the".
11364 * amd64-windows-tdep.c: Replace "the the" with "the".
11365 * aarch64-tdep.c: Replace "the the" with "the".
11366
c24bdb02
KS
113672019-01-16 Keith Seitz <keiths@redhat.com>
11368
11369 PR gdb/23773
11370 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
11371 <builder>: Rename to ..
11372 <m_builder>: ... this and make private.
11373 (dwarf2_cu::get_builder): New method. Change all users of
11374 `builder' to use this method.
11375 (dwarf2_start_symtab): Move to ...
11376 (dwarf2_cu::start_symtab): ... here. Update all callers
11377 (setup_type_unit_groups): Move to ...
11378 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
11379 callers.
11380 (dwarf2_cu::reset_builder): New method.
11381 (process_full_compunit, process_full_type_unit): Use
11382 dwarf2_cu::reset_builder.
11383 (follow_die_offset): Record the ancestor CU if it is different
11384 from the followed DIE's CU.
11385 (follow_die_sig_1): Likewise.
11386
8d64371b
TT
113872019-01-15 Tom Tromey <tom@tromey.com>
11388
11389 * remote.c (class remote_state) <buf>: Now a char_vector.
11390 <buf_size>: Remove.
11391 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
11392 parameter.
11393 (remote_target::getpkt_or_notif_sane_1)
11394 (remote_target::getpkt_sane)
11395 (remote_target::getpkt_or_notif_sane): Likewise.
11396 (class remote_target) <putpkt>: New overload.
11397 (remote_target::read_frame): Change type of "buf_p". Remove
11398 sizeof_p parameter.
11399 (packet_ok): New overload.
11400 (packet_check_result): New overload.
11401 Update all uses.
11402
bb277751
TT
114032019-01-14 Tom Tromey <tom@tromey.com>
11404
11405 * remote-notif.c (handle_notification, remote_notif_ack)
11406 (remote_notif_parse): Make "buf" const.
11407 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
11408 const.
11409 (remote_notif_parse, remote_notif_ack, handle_notification):
11410 Likewise.
11411 * remote.c (remote_notif_stop_parse): Make "buf" const.
11412 (remote_target::remote_parse_stop_reply): Make "buf" const.
11413 (remote_notif_stop_ack): Make "buf" const.
11414
05be00a8
TT
114152019-01-14 Tom Tromey <tom@tromey.com>
11416
11417 * remote.c (remote_console_output): Make parameter const.
11418
491adeca
TT
114192019-01-14 Tom Tromey <tom@tromey.com>
11420
11421 * target-debug.h (target_debug_print_signals): Constify.
11422 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
11423 * procfs.c (procfs_target::pass_signals): Update.
11424 * linux-nat.c (linux_nat_target::pass_signals): Update.
11425 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
11426 * target-delegates.c: Rebuild.
11427 * remote.c (remote_target::program_signals): Update.
11428 (remote_target::pass_signals): Update.
11429 * target.c (target_pass_signals): Constify argument.
11430 (target_program_signals): Likewise.
11431 * target.h (struct target_ops) <pass_signals, program_signals>:
11432 Constify argument.
11433 (target_pass_signals, target_program_signals): Constify argument.
11434
bbd94648
TT
114352019-01-14 Tom Tromey <tom@tromey.com>
11436
11437 PR tui/28819:
11438 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
11439
6f072a10
PFC
114402019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11441
11442 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
11443 field.
11444 * rs6000-tdep.c: Include reggroups.h.
11445 (IS_V_ALIAS_PSEUDOREG): Define.
11446 (rs6000_register_name): Return names for the "vX" aliases.
11447 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
11448 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
11449 aliases. Call default_register_reggroup_p for all other
11450 pseudo-registers.
11451 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
11452 New functions.
11453 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
11454 Handle "vX" aliases.
11455 (v_alias_pseudo_register_collect): New function.
11456 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
11457 (rs6000_gdbarch_init): Initialize "vX" aliases as
11458 pseudo-registers. Restore registration of
11459 rs6000_pseudo_register_reggroup_p with
11460 set_tdesc_pseudo_register_reggroup_p.
11461
1a782351
MF
114622019-01-13 Max Filippov <jcmvbkbc@gmail.com>
11463
11464 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
11465 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
11466 set_gdbarch_num_pseudo_regs.
11467
d73cff18
PW
114682019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11469
11470 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
11471 Remove arg prefixname, add do_set and do_show.
11472 Add member functions set_list and show_list.
11473 * cli/cli-style.c (class cli_style_option): Update accordingly.
11474 (style_set_list): Move to file scope.
11475 (style_show_list): Likewise.
11476 (set_style): Call help_list.
11477 (show_style): Call cmd_show_list.
11478 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
11479 Update to use the new macro.
11480
60a90376
JB
114812019-10-12 Joel Brobecker <brobecker@adacore.com>
11482
11483 * ada-lang.c (_initialize_ada_language): Expand the help text
11484 for the "catch exception" command.
11485
9d7c67bf
PW
114862019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11487
11488 * symtab.c (matching_obj_sections): Initialize obj,
11489 declare it closer to its usage.
11490
7cf47dc4
TT
114912019-01-10 Tom Tromey <tom@tromey.com>
11492
11493 * thread-iter.h (inf_threads_iterator): Use next_iterator.
11494 (basic_inf_threads_range): Remove.
11495 (inf_threads_range, inf_non_exited_threads_range)
11496 (safe_inf_threads_range): Use next_adapter.
11497
d3cb6808
KS
114982019-01-10 Keith Seitz <keiths@redhat.com>
11499
11500 PR gdb/23712
11501 PR symtab/23010
11502 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
11503 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
11504
63a20375
KS
115052019-01-10 Keith Seitz <keiths@redhat.com>
11506
11507 PR gdb/23712
11508 PR symtab/23010
11509 * dictionary.c (pending_to_vector): Remove.
11510 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
11511 Remove _1 suffix, replacing functions of the same name. Update
11512 all callers.
11513 (dict_create_hashed, dict_create_hashed_expandable)
11514 (dict_create_linear, dict_create_linear_expandable, dict_free)
11515 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
11516 Make functions static.
11517
b026f593
KS
115182019-01-10 Keith Seitz <keiths@redhat.com>
11519
11520 PR gdb/23712
11521 PR symtab/23010
11522 * dictionary.h (struct dictionary): Replace declaration with
11523 multidictionary.
11524 (dict_create_hashed, dict_create_hashed_expandable)
11525 (dict_create_linear, dict_create_linear_expandable)
11526 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
11527 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
11528 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
11529 taking multidictionary argument.
11530 [ALL_DICT_SYMBOLS]: Update for multidictionary.
11531 * block.h (struct block) <dict>: Change to multidictionary
11532 and rename `multidict'.
11533 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
11534 symmisc.c: Update all dictionary references to multidictionary.
11535
c7748ee9
KS
115362019-01-10 Keith Seitz <keiths@redhat.com>
11537
11538 PR gdb/23712
11539 PR symtab/23010
11540 * dictionary.c: Include unordered_map.
11541 (pending_to_vector): New function.
11542 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
11543 Rewrite the non-"_1" functions to take vector instead
11544 of linked list.
11545 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
11546 "new" _1 versions of the same name.
11547 (multidictionary): Define.
11548 (std::hash<enum language): New definition.
11549 (collate_pending_symbols_by_language, mdict_create_hashed)
11550 (mdict_create_hashed_expandable, mdict_create_linear)
11551 (mdict_create_linear_expandable, mdict_free)
11552 (find_language_dictionary, create_new_language_dictionary)
11553 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
11554 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
11555 (mdict_size, mdict_empty): New functions.
11556 * dictionary.h (mdict_iterator): Define.
11557
67aa1f3c
PA
115582019-01-10 Pedro Alves <palves@redhat.com>
11559
11560 * breakpoint.c (read_uploaded_action)
11561 (create_tracepoint_from_upload): Adjust to use
11562 gdb::unique_xmalloc_ptr.
11563 * ctf.c (ctf_write_uploaded_tp):
11564 (SET_ARRAY_FIELD): Use emplace_back.
11565 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
11566 * tracefile-tfile.c (tfile_write_uploaded_tp):
11567 * tracepoint.c (parse_tracepoint_definition): Adjust to use
11568 gdb::unique_xmalloc_ptr.
11569 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
11570 at_string, cond_string, cmd_strings>: Replace char pointers
11571 with gdb::unique_xmalloc_ptr.
11572
2f667667
PA
115732019-01-10 Pedro Alves <palves@redhat.com>
11574
11575 * solib-target.c (library_list_start_library): Don't xstrdup name.
11576
36cb7237
PA
115772019-01-10 Pedro Alves <palves@redhat.com>
11578
11579 * mdebugread.c (parse_partial_symbols): Use
11580 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
11581
da584958
AB
115822019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
11583
11584 * linux-fork.c (scoped_switch_fork_info)
11585 <~scoped_switch_fork_info>: Fix incorrect variable name.
11586
1ef8573c
AB
115872019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
11588
11589 * linux-fork.c (scoped_switch_fork_info)
11590 <scoped_switch_fork_info>: Make explicit.
11591 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
11592
8d7bcccb
TT
115932019-01-10 Tom Tromey <tom@tromey.com>
11594
11595 * objfiles.h (objfile::reset_psymtabs): Update.
11596 * objfiles.c (objfile::objfile): Update.
11597 * psymtab.h (psymtab_storage::obstack): Update.
11598 (psymtab_storage::m_obstack): Use gdb::optional.
11599 (class psymtab_storage): Update comment. Remove objfile
11600 parameter.
11601 * psymtab.c (psymtab_storage::psymtab_storage): Update.
11602
b596a3c7
TT
116032019-01-10 Tom Tromey <tom@tromey.com>
11604
11605 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
11606 <free_psymtabs>: Now private.
11607 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
11608 (allocate_psymtab): Use new method.
11609
a9342b62
TT
116102019-01-10 Tom Tromey <tom@tromey.com>
11611
11612 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
11613 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
11614 * mdebugread.c (parse_partial_symbols): Use
11615 allocate_dependencies.
11616 * dwarf2read.c (dwarf2_create_include_psymtab): Use
11617 allocate_dependencies.
11618 (process_psymtab_comp_unit_reader)
11619 (build_type_psymtab_dependencies): Likewise.
11620 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
11621
5af70966
TT
116222019-01-10 Tom Tromey <tom@tromey.com>
11623
11624 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
11625 PSYMBOL_SET_LANGUAGE.
11626 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
11627
5923a04c
TT
116282019-01-10 Tom Tromey <tom@tromey.com>
11629
11630 * psymtab.h (psymtab_storage::obstack): New method.
11631 <m_obstack>: Rename from obstack; now private.
11632 * psymtab.c (psymtab_storage): Update.
11633 * dwarf2read.c (create_addrmap_from_index)
11634 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
11635 Update.
11636
6d6a12bf
TT
116372019-01-10 Tom Tromey <tom@tromey.com>
11638
11639 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
11640 * objfiles.h (objfile::reset_psymtabs): New method.
11641
d320c2b5
TT
116422019-01-10 Tom Tromey <tom@tromey.com>
11643
11644 * symmisc.c (print_symbol_bcache_statistics): Update.
11645 (print_objfile_statistics): Update.
11646 * symfile.c (reread_symbols): Update.
11647 * psymtab.h (class psymtab_storage): New.
11648 * psymtab.c (psymtab_storage): New constructor.
11649 (~psymtab_storage): New destructor.
11650 (require_partial_symbols): Update.
11651 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
11652 (find_pc_sect_psymtab, find_pc_sect_psymbol)
11653 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
11654 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
11655 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
11656 (start_psymtab_common, end_psymtab_common)
11657 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
11658 (allocate_psymtab): Update.
11659 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
11660 Update.
11661 (dump_psymtab_addrmap, maintenance_print_psymbols)
11662 (maintenance_check_psymtabs): Update.
11663 (class objfile_psymtabs): Move to objfiles.h.
11664 * psympriv.h (discard_psymtab): Now inline.
11665 (psymtab_discarder::psymtab_discarder): Update.
11666 (psymtab_discarder::~psymtab_discarder): Update.
11667 (ALL_OBJFILE_PSYMTABS): Rewrite.
11668 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
11669 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
11670 Remove fields.
11671 <partial_symtabs>: New field.
11672 (class objfile_psymtabs): Move from psymtab.h. Update.
11673 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
11674 psymbol_cache.
11675 (objfile::~objfile): Don't destroy psymbol_cache.
11676 * mdebugread.c (parse_partial_symbols): Update.
11677 * dwarf2read.c (create_addrmap_from_index)
11678 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11679 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
11680 (add_partial_subprogram, dwarf2_ranges_read): Update.
11681 * dwarf-index-write.c (write_address_map)
11682 (write_one_signatured_type, recursively_write_psymbols)
11683 (class debug_names, class debug_names, write_psymtabs_to_index):
11684 Update.
11685
1d94a5a3
TT
116862019-01-10 Tom Tromey <tom@tromey.com>
11687
11688 * symtab.h (SYMBOL_SET_NAMES): Update.
11689 (symbol_set_names): Update.
11690 (MSYMBOL_SET_NAMES): Update.
11691 * symtab.c (symbol_set_names): Change argument to be an
11692 objfile_per_bfd_storage.
11693 * psymtab.c (add_psymbol_to_bcache): Update.
11694 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
11695
0f14768a
TT
116962019-01-10 Tom Tromey <tom@tromey.com>
11697
11698 * symtab.c (create_demangled_names_hash): Change argument to be an
11699 objfile_per_bfd_storage.
11700 (symbol_set_names): Update.
11701
6eee24ce
TT
117022019-01-10 Tom Tromey <tom@tromey.com>
11703
11704 * xcoffread.c (xcoff_initial_scan): Unconditionally call
11705 init_psymbol_list.
11706 * psymtab.c (init_psymbol_list): Do nothing if already called.
11707 * psympriv.h (init_psymbol_list): Add comment.
11708 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
11709 init_psymbol_list.
11710 * dbxread.c (dbx_symfile_read): Unconditionally call
11711 init_psymbol_list.
11712
75aedd27
TT
117132019-01-10 Tom Tromey <tom@tromey.com>
11714
11715 * xcoffread.c (scan_xcoff_symtab): Update.
11716 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
11717 "where".
11718 * mdebugread.c (parse_partial_symbols)
11719 (handle_psymbol_enumerators): Update.
11720 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
11721 * dbxread.c (read_dbx_symtab): Update.
11722 * psympriv.h (psymbol_placement): New enum.
11723 (add_psymbol_to_list): Update.
11724
939652a5
TT
117252019-01-10 Tom Tromey <tom@tromey.com>
11726
11727 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
11728 static_psymbols parameters.
11729 (scan_xcoff_symtab): Update.
11730 * psymtab.c (start_psymtab_common): Remove global_psymbols and
11731 static_psymbols parameters.
11732 * psympriv.h (start_psymtab_common): Update.
11733 * mdebugread.c (parse_partial_symbols): Update.
11734 * dwarf2read.c (create_partial_symtab): Update.
11735 * dbxread.c (read_dbx_symtab): Update.
11736 (start_psymtab): Remove global_psymbols and static_psymbols
11737 parameters.
11738
baa62830
TT
117392019-01-10 Tom Tromey <tom@tromey.com>
11740
11741 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
11742 * psymtab.c (allocate_psymtab): Add comment.
11743 * psympriv.h (allocate_psymtab): Add comment.
11744 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
11745 initializations.
11746 * dbxread.c (dbx_end_psymtab): Remove some initializations.
11747
0e8f53ba
TT
117482019-01-10 Tom Tromey <tom@tromey.com>
11749
11750 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
11751 Don't declare.
11752 * mipsread.c: Include mdebugread.h.
11753 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
11754 Declare.
11755 * elfread.c: Include mdebugread.h.
11756
b22a7c6a
TT
117572019-01-09 Tom Tromey <tom@tromey.com>
11758
11759 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
11760 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
11761 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
11762 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
11763 (psym_lookup_symbol, psym_find_last_source_symtab)
11764 (psym_forget_cached_source_info, psym_print_stats)
11765 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
11766 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
11767 (psym_map_matching_symbols, psym_expand_symtabs_matching)
11768 (psym_find_compunit_symtab_by_address)
11769 (maintenance_print_psymbols, maintenance_info_psymtabs)
11770 (maintenance_check_psymtabs): Use ranged for.
11771 * psymtab.h (class objfile_psymtabs): New.
11772 (require_partial_symbols): Return objfile_psymtabs.
11773 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
11774
3b9d3ac2
TT
117752019-01-09 Tom Tromey <tom@tromey.com>
11776
11777 * symfile.c (overlay_invalidate_all, find_pc_overlay)
11778 (find_pc_mapped_section, list_overlays_command)
11779 (map_overlay_command, unmap_overlay_command)
11780 (simple_overlay_update): Use all_objfiles.
11781 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
11782 * printcmd.c (info_symbol_command): Use all_objfiles.
11783 * objfiles.h (ALL_OBJSECTIONS): Remove.
11784 * maint.c (maintenance_translate_address): Use all_objfiles.
11785 * gcore.c (gcore_create_callback): Use all_objfiles.
11786 (objfile_find_memory_regions): Likewise.
11787
8b31193a
TT
117882019-01-09 Tom Tromey <tom@tromey.com>
11789
11790 * symtab.c (find_line_symtab, info_sources_command)
11791 (make_source_files_completion_list): Use objfile_compunits.
11792 * source.c (select_source_symtab): Use objfile_compunits.
11793 * objfiles.h (struct objfile): Update comment.
11794 (ALL_OBJFILES): Remove.
11795 (ALL_FILETABS): Remove.
11796 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
11797 objfile_compunits.
11798
d5da8b3c
TT
117992019-01-09 Tom Tromey <tom@tromey.com>
11800
11801 * symmisc.c (print_objfile_statistics, dump_objfile)
11802 (maintenance_print_symbols): Use compunit_filetabs.
11803 * source.c (forget_cached_source_info_for_objfile): Use
11804 compunit_filetabs.
11805 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
11806 (ALL_FILETABS): Use compunit_filetabs.
11807 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
11808 * coffread.c (coff_symtab_read): Use compunit_filetabs.
11809
5accd1a0
TT
118102019-01-09 Tom Tromey <tom@tromey.com>
11811
11812 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
11813 (compunit_filetabs): New.
11814 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
11815 compunit_filetabs.
11816 (info_sources_command, make_source_files_completion_list): Remove
11817 declaration.
11818 * symmisc.c (print_objfile_statistics, dump_objfile)
11819 (maintenance_print_symbols): Remove declaration.
11820 (maintenance_info_symtabs): Use compunit_filetabs.
11821 (maintenance_info_line_tables): Likewise.
11822 * source.c (select_source_symtab): Change local variable name.
11823 (forget_cached_source_info_for_objfile): Remove declaration.
11824 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
11825 * objfiles.c (objfile_relocate1): Remove declaration.
11826 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
11827 declaration.
11828 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
11829 * coffread.c (coff_symtab_read): Remove declaration.
11830 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
11831 compunit_filetabs.
11832
d8aeb77f
TT
118332019-01-09 Tom Tromey <tom@tromey.com>
11834
11835 * symtab.c (lookup_objfile_from_block)
11836 (find_pc_sect_compunit_symtab, search_symbols)
11837 (default_collect_symbol_completion_matches_break_on): Use
11838 objfile_compunits.
11839 * objfiles.h (ALL_COMPUNITS): Remove.
11840 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
11841 * cp-support.c (add_symbol_overload_list_qualified): Use
11842 objfile_compunits.
11843 * ada-lang.c (ada_collect_symbol_completion_matches)
11844 (ada_add_global_exceptions): Use objfile_compunits.
11845
592553c4
TT
118462019-01-09 Tom Tromey <tom@tromey.com>
11847
11848 * source.c (select_source_symtab)
11849 (forget_cached_source_info_for_objfile): Remove declaration.
11850 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
11851 declaration.
11852 * maint.c (count_symtabs_and_blocks): Remove declaration.
11853 * cp-support.c (add_symbol_overload_list_qualified): Remove
11854 declaration.
11855 * coffread.c (coff_symtab_read): Remove declaration.
11856 * symtab.c (lookup_symbol_in_objfile_symtabs)
11857 (basic_lookup_transparent_type_1): Use objfile_compunits.
11858 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
11859 (info_sources_command, search_symbols)
11860 (default_collect_symbol_completion_matches_break_on)
11861 (make_source_files_completion_list): Remove declaration.
11862 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
11863 (ada_collect_symbol_completion_matches)
11864 (ada_add_global_exceptions): Remove declaration.
11865 * linespec.c (iterate_over_all_matching_symtabs): Use
11866 objfile_compunits.
11867 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
11868 (class objfile_compunits): New.
11869 (ALL_COMPUNITS): Use objfile_compunits.
11870 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
11871 (maintenance_check_symtabs, maintenance_info_line_tables): Use
11872 objfile_compunits.
11873 * objfiles.c (objfile_relocate1): Use objfile_compunits.
11874
5325b9bf
TT
118752019-01-09 Tom Tromey <tom@tromey.com>
11876
11877 * symtab.c (search_symbols)
11878 (default_collect_symbol_completion_matches_break_on): Use
11879 objfile_msymbols.
11880 * ada-lang.c (ada_lookup_simple_minsym)
11881 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
11882 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
11883 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
11884 objfile_msymbols.
11885 * coffread.c (coff_symfile_read): Use objfile_msymbols.
11886 * symmisc.c (dump_msymbols): Use objfile_msymbols.
11887 * objc-lang.c (find_methods): Use objfile_msymbols.
11888 (info_selectors_command, info_classes_command): Likewise.
11889 * stabsread.c (scan_file_globals): Use objfile_msymbols.
11890 * objfiles.h (class objfile_msymbols): New.
11891 (ALL_OBJFILE_MSYMBOLS): Remove.
11892 (ALL_MSYMBOLS): Remove.
11893
cac85af2
TT
118942019-01-09 Tom Tromey <tom@tromey.com>
11895
11896 * common/next-iterator.h (next_adapter): Add Iterator template
11897 parameter.
11898 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
11899 (class all_objfiles_safe): New.
11900 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
11901 * objfiles.c (put_objfile_before): Update comment.
11902 (add_separate_debug_objfile): Likewise.
11903 (free_all_objfiles): Use all_objfiles_safe.
11904 (objfile_purge_solibs): Likewise.
11905
aed57c53
TT
119062019-01-09 Tom Tromey <tom@tromey.com>
11907
11908 * symtab.c (iterate_over_symtabs, matching_obj_sections)
11909 (expand_symtab_containing_pc, lookup_static_symbol)
11910 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
11911 (find_symbol_at_address, find_line_symtab, find_main_name): Use
11912 all_objfiles.
11913 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
11914 * breakpoint.c (create_overlay_event_breakpoint)
11915 (create_longjmp_master_breakpoint)
11916 (create_std_terminate_master_breakpoint)
11917 (create_exception_master_breakpoint): Use all_objfiles.
11918 * linux-thread-db.c (try_thread_db_load_from_pdir)
11919 (has_libpthread): Use all_objfiles.
11920 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
11921 * linespec.c (iterate_over_all_matching_symtabs)
11922 (search_minsyms_for_name): Use all_objfiles.
11923 * maint.c (maintenance_info_sections): Use all_objfiles.
11924 * main.c (captured_main_1): Use all_objfiles.
11925 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
11926 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
11927 * guile/scm-pretty-print.c
11928 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
11929 * solib-spu.c (append_ocl_sos): Use all_objfiles.
11930 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
11931 (maintenance_print_msymbols): Use all_objfiles.
11932 * source.c (select_source_symtab): Use all_objfiles.
11933 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
11934 * symfile.c (remove_symbol_file_command)
11935 (expand_symtabs_matching, map_symbol_filenames): Use
11936 all_objfiles.
11937 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
11938 all_objfiles.
11939 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
11940 * objc-lang.c (find_methods): Use all_objfiles.
11941 * objfiles.c (have_partial_symbols, have_full_symbols)
11942 (have_minimal_symbols, qsort_cmp)
11943 (default_iterate_over_objfiles_in_search_order): Use
11944 all_objfiles.
11945 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
11946 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
11947 (maintenance_check_psymtabs): Use all_objfiles.
11948 (ALL_PSYMTABS): Remove.
11949 * compile/compile-object-run.c (do_module_cleanup): Use
11950 all_objfiles.
11951 * blockframe.c (find_pc_partial_function): Use all_objfiles.
11952 * cp-support.c (add_symbol_overload_list_qualified): Use
11953 all_objfiles.
11954 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
11955 Use all_objfiles.
11956 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
11957 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
11958 all_objfiles.
11959 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
11960 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
11961 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
11962 Uses all_objfiles.
11963 * solib.c (solib_read_symbols): Use all_objfiles
11964
99d89cde
TT
119652019-01-09 Tom Tromey <tom@tromey.com>
11966
11967 * probe.c (parse_probes_in_pspace): Use all_objfiles.
11968 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
11969 all_objfiles.
11970 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
11971 * symmisc.c (print_symbol_bcache_statistics)
11972 (print_objfile_statistics, maintenance_print_objfiles)
11973 (maintenance_info_symtabs, maintenance_check_symtabs)
11974 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
11975 all_objfiles.
11976 * source.c (forget_cached_source_info): Use all_objfiles.
11977 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
11978 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
11979 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
11980 * objfiles.c (update_section_map): Use all_objfiles.
11981 (shared_objfile_contains_address_p): Likewise.
11982 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
11983 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
11984
21708325
TT
119852019-01-09 Tom Tromey <tom@tromey.com>
11986
11987 * common/next-iterator.h: New file.
11988 * objfiles.h (class all_objfiles): New.
11989 (struct objfile_iterator): New.
11990
669e09f6
PW
119912019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11992
11993 * NEWS: Move the description of the changed "frame", "select-frame",
11994 and "info frame" commands to the Changed commands section.
11995
041be526
SM
119962019-01-09 Simon Marchi <simon.marchi@ericsson.com>
11997
11998 * gdbtypes.c (check_stub_method_group): Remove handling of old
11999 mangling schemes.
12000 * linespec.c (find_methods): Likewise.
12001 * stabsread.c (read_member_functions): Likewise.
12002 * valops.c (search_struct_method): Likewise.
12003 (value_struct_elt_for_reference): Likewise.
12004 * NEWS: Mention this change.
12005
0e2a2133
AB
120062019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12007
12008 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
12009 print_source_lines.
12010 * source.c (print_source_lines_base): Update line number check.
12011 (print_source_lines): New function.
12012 (source_lines_range::source_lines_range): New function.
12013 * source.h (class source_lines_range): New class.
12014 (print_source_lines): New declaration.
12015
1055a3b4
PW
120162019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12017
12018 * linespec.c (linespec_state_destructor): Free self->canonical_names.
12019
cfeadda5
TT
120202019-01-08 Tom Tromey <tom@tromey.com>
12021 Simon Marchi <simon.marchi@ericsson.com>
12022
12023 PR gdb/24060
12024 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
12025 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
12026 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
12027 * f-exp.y (DOLLAR_VARIABLE): Likewise.
12028 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
12029 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
12030
583068ca
AB
120312019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12032
12033 * source.c (select_source_symtab): Move header comment to
12034 declaration in source.h.
12035 (forget_cached_source_info_for_objfile): Likewise.
12036 (forget_cached_source_info): Likewise.
12037 (identify_source_line): Likewise.
12038 * source.h (identify_source_line): Move declaration from symtab.h
12039 and add comment from source.c
12040 (print_source_lines): Likewise.
12041 (forget_cached_source_info_for_objfile): Likewise.
12042 (forget_cached_source_info): Likewise.
12043 (select_source_symtab): Likewise.
12044 (enum print_source_lines_flag): Move definition from symtab.h.
12045 * symtab.h (identify_source_line): Move declaration to source.h.
12046 (print_source_lines): Likewise.
12047 (forget_cached_source_info_for_objfile): Likewise.
12048 (forget_cached_source_info): Likewise.
12049 (select_source_symtab): Likewise.
12050 (enum print_source_lines_flag): Move definition to source.h.
12051 * tui/tui-hooks.c: Add 'source.h' include.
12052
ec98a4ad
AB
120532019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12054
12055 * source.c (print_source_lines_base): Handle requests to print
12056 reverse line number sequences, and guard against empty lines
12057 string.
12058
62ea19c1
AB
120592019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12060
12061 * source.c (print_source_lines_base): Fix skip of '\r' if next
12062 character is '\n'.
12063
9d30e1fd
TT
120642019-01-06 Tom Tromey <tom@tromey.com>
12065
12066 * c-exp.y (struct c_parse_state) <macro_original_text,
12067 expansion_obstack>: New member.
12068 (macro_original_text, expansion_obstack): Remove globals.
12069 (scan_macro_expansion, scanning_macro_expansion)
12070 (finished_macro_expansion): Update.
12071 (scan_macro_cleanup): Remove.
12072 (yylex, c_parse): Update.
12073
c65bac38
TT
120742019-01-06 Tom Tromey <tom@tromey.com>
12075
12076 * c-exp.y (struct c_parse_state) <strings>: New member.
12077 (operator_stoken): Update.
12078
02e12e38
TT
120792019-01-06 Tom Tromey <tom@tromey.com>
12080
12081 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
12082 (union type_stack_elt) <typelist_val>: Now a pointer to
12083 std::vector.
12084 (type_stack_cleanup): Don't declare.
12085 (push_typelist): Update.
12086 * parse.c (pop_typelist): Return a std::vector.
12087 (push_typelist): Take a std::vector.
12088 (follow_types): Update. Do not free args.
12089 (type_stack_cleanup): Remove.
12090 * c-exp.y (struct c_parse_state): New.
12091 (cpstate): New global.
12092 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
12093 (nonempty_typelist): Update.
12094 (func_mod): Create a new vector.
12095 (c_parse): Create a c_parse_state.
12096 (check_parameter_typelist): Do not delete params.
12097 (function_method): Update. Do not delete type_list.
12098
f097f5ad
TT
120992019-01-06 Tom Tromey <tom@tromey.com>
12100
12101 PR gdb/28155:
12102 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
12103 check_typedef.
12104 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
12105 (print_return_value): Likewise.
12106
d2adf9f1
TT
121072019-01-05 Tom Tromey <tom@tromey.com>
12108
12109 * contrib/cleanup_check.py: Remove.
12110 * contrib/gcc-with-excheck: Remove.
12111 * contrib/exsummary.py: Remove.
12112 * contrib/excheck.py: Remove.
12113
2eab46b1
JB
121142019-01-05 Joel Brobecker <brobecker@adacore.com>
12115
12116 * thread.c (delete_thread_1): Add gdb_assert that THR is not
12117 NULL. Initialize tpprev to NULL instead of assigning it
12118 to NULL on the next statement.
12119 * windows-nat.c (windows_delete_thread): Remove check for
12120 main_thread_id before printing thread exit notifications.
12121 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
12122 Remove thread ID check against main_thread_id.
12123 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
12124 windows_delete_thread.
12125 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
12126
48c5e7e2
TT
121272019-01-04 Tom Tromey <tom@tromey.com>
12128
12129 * compile/compile.c (_initialize_compile): Use upper case for
12130 metasyntactic variables.
12131 * symmisc.c (_initialize_symmisc): Use upper case for
12132 metasyntactic variables.
12133 * psymtab.c (_initialize_psymtab): Use upper case for
12134 metasyntactic variables.
12135 * demangle.c (demangle_command): Use upper case for metasyntactic
12136 variables.
12137 (_initialize_demangler): Likewise.
12138 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
12139 variables.
12140
986041cd
TT
121412019-01-03 Tom Tromey <tom@tromey.com>
12142
12143 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
12144
7c711119
TT
121452019-01-03 Tom Tromey <tom@tromey.com>
12146
12147 * python/py-symtab.c (salpy_str): Update.
12148 (struct salpy_sal_object) <symtab>: Now a PyObject.
12149 (salpy_dealloc): Update.
12150 (del_objfile_sal): Use gdbpy_ref.
12151
1b20edf0
TT
121522019-01-03 Tom Tromey <tom@tromey.com>
12153
12154 * python/py-type.c (convert_field): Use new_reference. Return
12155 gdbpy_ref.
12156 (make_fielditem): Return gdbpy_ref.
12157 (typy_fields): Update.
12158 (typy_getitem): Update.
12159 (field_name): Return gdbpy_ref. Use new_reference.
12160 (typy_iterator_iternext): Update.
12161
ea41325b
TT
121622019-01-03 Tom Tromey <tom@tromey.com>
12163
12164 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
12165
2a3c71d6
TT
121662019-01-03 Tom Tromey <tom@tromey.com>
12167
12168 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
12169 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
12170 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
12171 (pspy_set_frame_filters, pspy_set_frame_unwinders)
12172 (pspy_set_type_printers): Likewise.
12173 * python/py-function.c (fnpy_init): Use gdbpy_ref.
12174 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
12175 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
12176 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
12177 (objfpy_set_type_printers): Likewise.
12178
5c329e6a
TT
121792019-01-03 Tom Tromey <tom@tromey.com>
12180
12181 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
12182 (gdbpy_print_stack): Use gdbpy_err_fetch.
12183 * python/python-internal.h (class gdbpy_err_fetch): New class.
12184 (class gdbpy_enter) <m_error_type, m_error_value,
12185 m_error_traceback>: Remove.
12186 <m_error>: New member.
12187 (gdbpy_exception_to_string): Don't declare.
12188 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
12189 * python/py-value.c (convert_value_from_python): Use
12190 gdbpy_err_fetch.
12191 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
12192 gdbpy_exception_to_string.
12193 (gdbpy_handle_exception): Use gdbpy_err_fetch.
12194 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
12195 gdbpy_err_fetch.
12196
169bb27b
AB
121972019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12198
12199 * linux-nat.c (delete_lwp_cleanup): Delete.
12200 (struct lwp_deleter): New struct.
12201 (lwp_info_up): New typedef.
12202 (linux_nat_target::follow_fork): Delete cleanup, and make use of
12203 lwp_info_up.
12204
a07c8880
AB
122052019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12206
12207 * linux-fork.c (class scoped_switch_fork_info): New class.
12208 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
12209
26089c49
AB
122102019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12211
12212 * valops.c (find_overload_match): Remove use of null_cleanup, and
12213 calls to do_cleanups.
12214
06d3e5b0
AB
122152019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12216
12217 * compile/compile-cplus-types.c
12218 (compile_cplus_instance::decl_name): Handle changes to
12219 cp_func_name.
12220 * cp-support.c (cp_func_name): Update header comment, update
12221 return type.
12222 * cp-support.h (cp_func_name): Update return type in declaration.
12223 * valops.c (find_overload_match): Move temp_func local to top
12224 level of function and change its type. Use temp_func to hold and
12225 delete temporary string obtained from cp_func_name.
12226
66644cd3
AB
122272019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12228
12229 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
12230 gdb::char_vector, remove cleanup, and update uses of `msg`.
12231
592d8c0a
JW
122322019-01-03 Jim Wilson <jimw@sifive.com>
12233
12234 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
12235
c55d06ec
TT
122362019-01-02 Tom Tromey <tom@tromey.com>
12237
12238 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
12239 (tdesc_parse_xml): Remove cleanups.
12240 * target-descriptions.h (make_cleanup_free_target_description):
12241 Don't declare.
12242 (target_desc_deleter): New struct.
12243 (target_desc_up): New typedef.
12244 * target-descriptions.c (target_desc_deleter::operator()): Rename
12245 from free_target_description.
12246 (make_cleanup_free_target_description): Remove.
12247
3a6ae42d
TT
122482019-01-02 Tom Tromey <tom@tromey.com>
12249
12250 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
12251 constructor, destructor.
12252 (linespec_parser): Remove typedef.
12253 (~linespec_parser): Rename from linespec_parser_delete.
12254 (linespec_lex_to_end, linespec_complete_label)
12255 (linespec_complete): Update.
12256 (decode_line_full): Remove cleanups.
12257 (decode_line_1): Update.
12258
61fd3e73
TT
122592019-01-02 Tom Tromey <tom@tromey.com>
12260
12261 * python/python-internal.h (inferior_to_inferior_object): Change
12262 return type.
12263 * python/py-exitedevent.c (create_exited_event_object): Update.
12264 * python/py-inferior.c (inferior_to_inferior_object): Return
12265 gdbpy_ref.
12266 (python_new_inferior, python_inferior_deleted)
12267 (thread_to_thread_object, delete_thread_object)
12268 (build_inferior_list, gdbpy_selected_inferior): Update.
12269 * python/py-infthread.c (create_thread_object): Update. Also fail
12270 if inferior_to_inferior_object fails.
12271
d20172fc
SM
122722019-01-02 Simon Marchi <simon.marchi@ericsson.com>
12273
12274 * inferior.h (class inferior) <displaced_step_state>: New field.
12275 * infrun.h (struct displaced_step_state): Move here from
12276 infrun.c. Initialize fields, add constructor.
12277 <inf>: Remove field.
12278 <reset>: New method.
12279 * infrun.c (struct displaced_step_inferior_state): Move to
12280 infrun.h.
12281 (displaced_step_inferior_states): Remove.
12282 (get_displaced_stepping_state): Adust.
12283 (displaced_step_in_progress_any_inferior): Adjust.
12284 (displaced_step_in_progress_thread): Adjust.
12285 (displaced_step_in_progress): Adjust.
12286 (add_displaced_stepping_state): Remove.
12287 (get_displaced_step_closure_by_addr): Adjust.
12288 (remove_displaced_stepping_state): Remove.
12289 (infrun_inferior_exit): Call displaced_step_state.reset.
12290 (use_displaced_stepping): Don't check for NULL.
12291 (displaced_step_prepare_throw): Call
12292 get_displaced_stepping_state.
12293 (displaced_step_fixup): Don't check for NULL.
12294 (prepare_for_detach): Don't check for NULL.
12295
e3319240
PW
122962019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12297
12298 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
12299 in case of call that did not complete.
12300
5d36dfb9
AU
123012019-01-02 Andrey Utkin <autkin@undo.io>
12302
12303 * symfile.c (find_separate_debug_file): Fix search of debug files for
12304 remote debuggee.
12305
8833fbf0
TT
123062019-01-02 Tom Tromey <tom@tromey.com>
12307
12308 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
12309 indentation.
12310 * python/py-frame.c (frapy_older): Remove cast.
12311 (frapy_newer): Likewise.
12312 * python/py-breakpoint.c (local_setattro): Remove cast.
12313 * python/py-arch.c (archpy_name): Remove local variable.
12314 * python/py-type.c (gdbpy_lookup_type): Remove cast.
12315
4ada3dfd
JB
123162019-01-02 Joel Brobecker <brobecker@adacore.com>
12317
12318 * unittests/basic_string_view/element_access/char/empty.cc:
12319 Fix year range in copyright header.
12320
113b7b81
AB
123212019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
12322
12323 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
12324 Delete.
12325 <operator==>: Update with for removed field.
12326 <hash>: Likewise.
12327 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
12328 <isa_features>: ...this.
12329 <abi_features>: New field.
12330 (riscv_isa_flen): Update comment.
12331 (riscv_abi_xlen): New declaration.
12332 (riscv_abi_flen): New declaration.
12333 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
12334 isa_features.
12335 (riscv_abi_xlen): New function.
12336 (riscv_isa_flen): Update to get answer from isa_features.
12337 (riscv_abi_flen): New function.
12338 (riscv_has_fp_abi): Update to get answer from abi_features.
12339 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
12340 xlen and flen.
12341 (riscv_call_info) <xlen, flen>: Update comment.
12342 (riscv_call_arg_struct): Remove invalid assertions
12343 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
12344 is removed.
12345 (riscv_gdbarch_init): Gather isa features and abi features
12346 separately, ensure both match on the gdbarch when reusing an old
12347 gdbarch. Relax an error check to allow 32-bit abi float to run on
12348 a target with 64-bit float hardware.
12349
b18ca514
PW
123502019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12351
12352 * source.c (search_command_helper): Stop reverse search
12353 when line 1 has been searched.
12354
ec70d8db
PW
123552019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12356
12357 * record-full.c (record_full_base_target::close): Rewrite
12358 record_full_core_buf_list free logic.
12359
5b38f9c1
PW
123602019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12361
12362 * break-catch-syscall.c (print_one_catch_syscall): xfree
12363 the last text.
12364
66d91b39
JB
123652019-01-01 Joel Brobecker <brobecker@adacore.com>
12366
12367 * top.c (print_gdb_version): Update Copyright year in version
12368 message.
12369
42a4f53d
JB
123702019-01-01 Joel Brobecker <brobecker@adacore.com>
12371
12372 Update copyright year range in all GDB files.
12373
7e955d83 123742019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 12375
5bbd631d 12376 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 12377
5bbd631d 12378For older changes see ChangeLog-2018.
c906108c
SS
12379\f
12380Local Variables:
12381mode: change-log
12382left-margin: 8
12383fill-column: 74
12384version-control: never
57da7796 12385coding: utf-8
c906108c 12386End:
5bbd631d 12387
This page took 3.288746 seconds and 4 git commands to generate.