]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
gdb: Catch exceptions when accessing source cache
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * source-cache.c (source_cache::get_line_charpos): Catch
4 exceptions and return false, this matches the behaviour documented
5 in the header file.
6
7 2019-09-17 Joel Brobecker <brobecker@adacore.com>
8
9 * ada-tasks.c (info_task): Remove quoting of the task's name.
10
11 2019-09-16 Christian Biesinger <cbiesinger@google.com>
12
13 * symfile.c (auto_solib_add): Replace comment with a reference
14 to the header file.
15
16 2019-09-14 Christian Biesinger <cbiesinger@google.com>
17
18 * NEWS: Mention that gdb can now be compiled with Python 3
19 on Windows.
20
21 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
22
23 * maint.c (maint_print_section_data::maint_print_section_data):
24 Force use of 'float log10 (float)' by casting the argument to
25 float.
26
27 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
28
29 * maint.c: Add 'cmath' include.
30 (struct maint_print_section_data): New structure.
31 (print_section_index): New function.
32 (print_bfd_section_info): Add header comment, small whitespace
33 cleanup, and update to call new print_section_index function.
34 (print_objfile_section_info): Likewise.
35 (maint_obj_section_from_bfd_section): New function.
36 (print_bfd_section_info_maybe_relocated): New function.
37 (maintenance_info_sections): Add header comment, always use
38 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
39
40 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
41
42 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
43 inner scope, add check that the objfile has psymtabs before
44 checking psymtabs_addrmap.
45 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
46
47 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
48
49 * NEWS: Announce that Ada task names are now shown at more places,
50 and between quotes (except in info task output).
51 * gdb/ada-tasks.c (task_to_str): New function.
52 (display_current_task_id): Call task_to_str.
53 (task_command_1): Likewise.
54 (print_ada_task_info): In non-mi mode, Properly align headers and data
55 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
56
57 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
58
59 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
60 prstatus.pr_lwp.pr_info instead of making it up.
61
62 2019-09-11 Christian Biesinger <cbiesinger@google.com>
63
64 * auto-load.c (auto_load_expand_dir_vars): Update.
65 * defs.h (gdb_datadir): Change to std::string.
66 (python_libdir): Likewise.
67 (relocate_gdb_directory): Change return type to std::string.
68 * guile/guile.c (gdbscm_data_directory): Update.
69 (initialize_scheme_side): Update.
70 * jit.c (jit_reader_dir): Change to std::string.
71 (jit_reader_load_command): Update.
72 * main.c (gdb_datadir): Change to std::string.
73 (python_libdir): Likewise.
74 (set_gdb_data_directory): Update.
75 (relocate_path): Change to return std::string.
76 (relocate_gdb_directory): Change to return std::string.
77 (relocate_gdbinit_path_maybe_in_datadir): Update.
78 (captured_main_1): Update.
79 * python/python.c (do_start_initialization): Update.
80 * top.c (show_gdb_datadir): Update.
81 * xml-syscall.c (xml_init_syscalls_info): Update.
82 (init_syscalls_info): Update.
83
84 2019-09-11 Christian Biesinger <cbiesinger@google.com>
85
86 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
87 out of get_init_files.
88 (get_init_files): Update.
89
90 2019-09-11 Christian Biesinger <cbiesinger@google.com>
91
92 * main.c (get_init_files): Change to use std::string.
93 (captured_main_1): Update.
94 (print_gdb_help): Update.
95
96 2019-09-11 Ali Tamur <tamur@google.com>
97
98 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
99 implementation.
100
101 2019-09-11 Christian Biesinger <cbiesinger@google.com>
102
103 * dbxread.c (read_dbx_symtab): Update.
104 * dwarf2read.c (load_partial_dies): Update.
105 * mdebugread.c (parse_partial_symbols): Update.
106 (handle_psymbol_enumerators): Update.
107 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
108 * psymtab.c (add_psymbol_to_bcache): Likewise.
109 (add_psymbol_to_list): Likewise.
110 * symtab.c (symbol_set_names): Likewise.
111 * symtab.h (symbol_set_names): Likewise.
112 * xcoffread.c (scan_xcoff_symtab): Update.
113
114 2019-09-11 Tom Tromey <tom@tromey.com>
115
116 * symfile-mem.c (symbol_file_add_from_memory): Use
117 bfd_set_filename.
118 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
119 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
120
121 2019-09-10 Tom Tromey <tromey@adacore.com>
122
123 * dwarf-index-write.c (write_psymbols): Extend error message.
124 (debug_names::insert): Add Ada code.
125 (debug_names::write_psymbols): Remove Ada check.
126 (debug_names) <m_string_obstack>: New member.
127 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
128 (gdb_index_symbol_name_matcher::matches): Remove.
129 (mapped_index_base::find_name_components_bounds): Add "lang"
130 parameter.
131 (mapped_index_base::build_name_components): Also split names
132 according to Ada syntax.
133 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
134 type of "match_callback".
135 (check_match, check_find_bounds_finds)
136 (dw2_expand_symtabs_matching): Update.
137 (dw2_debug_names_iterator): Add new constructor.
138 (dw2_debug_names_map_matching_symbols): New function.
139 (dw2_debug_names_expand_symtabs_matching): Update.
140 (dwarf2_debug_names_functions): Use
141 dw2_debug_names_map_matching_symbols.
142
143 2019-09-10 Tom Tromey <tromey@adacore.com>
144
145 * dwarf2read.c (dw2_get_file_names_reader): Add the
146 CU's file name to the results.
147
148 2019-09-10 Tom Tromey <tromey@adacore.com>
149
150 * ada-lang.c (add_nonlocal_symbols): Combine calls to
151 map_matching_symbols. Update.
152 * dwarf2read.c (dw2_map_matching_symbols): Update.
153 * psymtab.c (match_partial_symbol): Change type; update.
154 (psym_map_matching_symbols): Likewise.
155 * symfile-debug.c (debug_qf_map_matching_symbols): Change
156 type; update.
157 * symfile.h (struct quick_symbol_functions)
158 <map_matching_symbols>: Change "name" to be a lookup_name_info.
159 Remove "match".
160
161 2019-09-10 Tom Tromey <tromey@adacore.com>
162
163 * psymtab.c (map_block): Remove.
164 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
165 * symtab.c (iterate_over_symbols_terminated): New function.
166 * symtab.c (iterate_over_symbols_terminated): Declare.
167
168 2019-09-10 Tom Tromey <tromey@adacore.com>
169
170 * ada-lang.c (ada_iterate_over_symbols): Return bool.
171 * language.h (struct language_defn) <la_iterate_over_symbols>:
172 Return bool.
173 * symtab.c (iterate_over_symbols): Return bool.
174 * symtab.h (iterate_over_symbols): Return bool.
175
176 2019-09-10 Tom Tromey <tromey@adacore.com>
177
178 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
179 (add_nonlocal_symbols): Update.
180 * dwarf2read.c (dw2_map_matching_symbols): Change type.
181 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
182 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
183 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
184 Change type of "callback". Remove "data".
185
186
187 2019-09-09 Ali Tamur <tamur@google.com>
188
189 * dwarf2read.c (comp_unit_head): Update comment.
190 (dwarf2_dwo_name): New function declaration.
191 (dwarf_unit_type_name): New function declaration.
192 (read_comp_unit_head): Add support for new compilation units,
193 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
194 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
195 (currently named as "signature") in their header. Also clarify error
196 messages.
197 (lookup_dwo_id): New function. Returns the dwo id of the given
198 compile unit.
199 (lookup_dwo_unit): Use the new lookup_dwo_id function.
200 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
201 functions.
202 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
203 (dwarf2_dwo_name): Get the dwo name if present.
204 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
205 purposes.
206
207 2019-09-09 Tom Tromey <tom@tromey.com>
208
209 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
210
211 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
212
213 * python/python.c (do_start_initialization): Make progname_copy static,
214 to avoid a leak report.
215
216 2019-09-08 Tom Tromey <tom@tromey.com>
217
218 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
219
220 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
221
222 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
223 Change type to gdb::optional<block_enum>.
224 (dw2_symtab_iter_init): Change block_index parameter type
225 to gdb::optional<block_enum>.
226 (dw2_lookup_symbol): Change block_index parameter
227 type to block_enum.c
228 (dw2_debug_names_lookup_symbol): Likewise.
229 * psymtab.c (psym_lookup_symbol): Likewise.
230 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
231 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
232 Likewise.
233
234 2019-09-06 Christian Biesinger <cbiesinger@google.com>
235
236 * defs.h (relocate_gdb_directory): Change int to bool in
237 signature and rename flag to relocatable.
238 * main.c (relocate_path): Likewise.
239 (relocate_gdb_directory): Likewise.
240
241 2019-09-06 Alan Modra <amodra@gmail.com>
242
243 * coffread.c (coff_symfile_read): Constify filename variable.
244 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
245 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
246 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
247 * solib.c (reload_shared_libraries_1): Likewise.
248 * symfile.c (reread_symbols): Likewise.
249 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
250 * solib-darwin.c (darwin_bfd_open): Likewise.
251 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
252
253 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
254
255 * psymtab.c (print_partial_symbols): Handle missing domain_enum
256 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
257
258 2019-09-03 Tom Tromey <tromey@adacore.com>
259
260 * ada-valprint.c (ada_val_print_num): Don't recurse for range
261 types.
262 (has_negatives): Unbias a range type bound.
263 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
264 * gdbtypes.c (operator==): Handle new field.
265 (create_range_type): Add "bias" parameter.
266 (create_static_range_type, resolve_dynamic_range): Update.
267 * gdbtypes.h (struct range_bounds) <bias>: New member.
268 (create_range_type): Add bias parameter.
269 * printcmd.c (print_scalar_formatted): Unbias range types.
270 * value.c (unpack_long): Unbias range types.
271 (pack_long): Bias range types.
272
273 2019-09-02 Alan Hayward <alan.hayward@arm.com>
274
275 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
276 probe arguments.
277
278 2019-09-02 Alan Hayward <alan.hayward@arm.com>
279
280 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
281 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
282 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
283 (compile_probe_arg): Likewise.
284 * probe.h (get_argument_count): Likewise.
285 * solib-svr4.c (solib_event_probe_action): Likewise.
286 * stap-probe.c (stap_probe::get_argument_count): Likewise.
287
288 2019-09-02 Alan Hayward <alan.hayward@arm.com>
289
290 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
291 code to here...
292 (svr4_create_solib_event_breakpoints): ...from here.
293
294 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
295
296 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
297 suffix from warning message.
298
299 2019-08-30 Tom Tromey <tom@tromey.com>
300
301 * tui/tui-winsource.h (struct tui_source_window_base)
302 <refresh_all>: Don't declare.
303 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
304 Remove.
305 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
306 tui_show_locator_content.
307 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
308 declare.
309 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
310 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
311 declare.
312
313 2019-08-30 Tom Tromey <tom@tromey.com>
314
315 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
316
317 2019-08-30 Tom Tromey <tom@tromey.com>
318
319 * tui/tui-stack.c (_initialize_tui_stack): Move later.
320 Remove unnecessary forward declarations.
321
322 2019-08-30 Tom Tromey <tom@tromey.com>
323
324 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
325 rerender.
326 (tui_update_locator_fullname, tui_show_frame_info): Don't call
327 tui_show_locator_content.
328
329 2019-08-30 Tom Tromey <tom@tromey.com>
330
331 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
332 (tui_locator_window::rerender): Rewrite using body of previous
333 tui_show_locator_content.
334
335 2019-08-30 Tom Tromey <tom@tromey.com>
336
337 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
338 set_locator_fullname>: New methods.
339 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
340 Rename from tui_set_locator_fullname.
341 (tui_locator_window::set_locator_info): Rename from
342 tui_set_locator_info. Return bool.
343 (tui_update_locator_fullname, tui_show_frame_info): Update.
344
345 2019-08-30 Tom Tromey <tom@tromey.com>
346
347 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
348
349 2019-08-30 Tom Tromey <tom@tromey.com>
350
351 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
352 call touchwin.
353
354 2019-08-30 Tom Tromey <tom@tromey.com>
355
356 * tui/tui-wingeneral.c (box_win): Assume win_info and
357 win_info->handle cannot be NULL.
358
359 2019-08-30 Tom Tromey <tom@tromey.com>
360
361 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
362 refresh_window>: Declare.
363 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
364 resize.
365 (tui_data_item_window::rerender): Rename from
366 tui_display_register.
367 (tui_data_item_window::refresh_window): New method.
368 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
369 no-op.
370
371 2019-08-30 Tom Tromey <tom@tromey.com>
372
373 * tui/tui-regs.h (struct tui_data_window) <regs_content,
374 regs_column_count, current_group>: Move later. Now private.
375 <get_current_group>: New method.
376 * tui/tui-regs.c (tui_reg_command): Update.
377 * tui/tui-layout.c (tui_set_layout): Update.
378
379 2019-08-30 Tom Tromey <tom@tromey.com>
380
381 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
382 (tui_data_window::rerender): Don't call
383 check_and_display_highlight_if_needed.
384 (tui_data_window::refresh_all): Remove call to
385 erase_data_content.
386
387 2019-08-30 Tom Tromey <tom@tromey.com>
388
389 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
390 (tui_data_window::display_registers_from)
391 (tui_data_window::display_reg_element_at_line)
392 (tui_data_window::display_registers_from_line): Remove checks of
393 "empty".
394
395 2019-08-30 Tom Tromey <tom@tromey.com>
396
397 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
398 Don't declare.
399 * tui/tui-regs.c (tui_data_window::show_registers): Call
400 rerender.
401 (tui_data_window::rerender): Rename from display_all_data.
402 (tui_data_window::rerender): Remove old implementation.
403
404 2019-08-30 Tom Tromey <tom@tromey.com>
405
406 * tui/tui-regs.c (tui_data_window::display_all_data): Change
407 text.
408 * tui/tui-data.h (NO_DATA_STRING): Remove define.
409
410 2019-08-29 Bernhard Wodok <barto@gmx.net>
411 Sergio Durigan Junior <sergiodj@redhat.com>
412
413 PR win32/24284
414 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
415
416 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
417
418 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
419 when searching for types.
420
421 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
422
423 * f-lang.c (f_language_defn): Use f_print_typedef.
424 * f-lang.h (f_print_typedef): Declare.
425 * f-typeprint.c (f_print_typedef): Define.
426
427 2019-08-27 Christian Biesinger <cbiesinger@google.com>
428
429 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
430
431 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
432
433 * cli/cli-utils.c (info_print_options_defs): Delete.
434 (make_info_print_options_def_group): Delete.
435 (extract_info_print_options): Delete.
436 (info_print_command_completer): Delete.
437 (info_print_args_help): Add extra parameter, and optionally
438 include text about -n flag.
439 * cli/cli-utils.h (struct info_print_options): Delete.
440 (extract_info_print_options): Delete declaration.
441 (info_print_command_completer): Delete declaration.
442 (info_print_args_help): Add extra parameter, extend header
443 comment.
444 * python/python.c (gdbpy_rbreak): Pass additional parameter to
445 search_symbols.
446 * stack.c (struct info_print_options): New type.
447 (info_print_options_defs): New file scoped variable.
448 (make_info_print_options_def_group): New static function.
449 (info_print_command_completer): New static function.
450 (info_locals_command): Update to use new local functions.
451 (info_args_command): Likewise.
452 (_initialize_stack): Add extra parameter to calls to
453 info_print_args_help.
454 * symtab.c (search_symbols): Add extra parameter, use this to
455 possibly excluse non-debug symbols.
456 (symtab_symbol_info): Add extra parameter, which is passed on to
457 search_symbols.
458 (struct info_print_options): New type.
459 (info_print_options_defs): New file scoped variable.
460 (make_info_print_options_def_group): New static function.
461 (info_print_command_completer): New static function.
462 (info_variables_command): Update to use local functions, and pass
463 extra parameter through to symtab_symbol_info.
464 (info_functions_command): Likewise.
465 (info_types_command): Pass additional argument through to
466 symtab_symbol_info.
467 (rbreak_command): Pass extra argument to search_symbols.
468 (_initialize_symtab): Add extra arguments for calls to
469 info_print_args_help, and update help text for 'info variables',
470 'whereis', and 'info functions' commands.
471 * symtab.h (search_symbols): Add extra argument to declaration.
472 * NEWS: Mention new flags.
473
474 2019-08-26 Christian Biesinger <cbiesinger@google.com>
475
476 * symtab.c (lookup_static_symbol): Call the new function (and move
477 it down to be next to lookup_global_symbol).
478 (struct global_sym_lookup_data): Add block_enum member and rename to...
479 (struct global_or_static_sym_lookup_data): ...this.
480 (lookup_symbol_global_iterator_cb): Pass block_index instead of
481 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
482 (lookup_symbol_global_or_static_iterator_cb): ...this.
483 (lookup_global_or_static_symbol): New function.
484 (lookup_global_symbol): Call new function.
485
486 2019-08-26 Tom de Vries <tdevries@suse.de>
487
488 PR c++/24852
489 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
490 when pc_probe.prob == NULL.
491
492 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
493
494 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
495 variable symbol_linkage to symbol_linkage_.
496
497 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
498
499 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
500 represent whether the symbol is static, dynamic, or we don't
501 know.
502
503 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
504
505 * gdb/rx-tdep.c (rx_register_names): New.
506 (rx_register_name): Delete.
507 (rx_psw_type): Delete.
508 (rx_fpsw_type): Delete.
509 (rx_register_type): Delete.
510 (rx_gdbarch_init): Convert target-descriptions.
511 (_initialize_rx_tdep): Add initialize_tdesc_rx.
512 * gdb/features/Makefile: Add rx.xml.
513 * gdb/features/rx.xml: New.
514 * gdb/features/rx.c: Generated.
515 * gdb/NEWS: Mention target description support.
516
517 2019-08-22 Christian Biesinger <cbiesinger@google.com>
518
519 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
520 *slot_ptr.
521
522 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
523
524 * configure.ac: Don't check for 'dlfcn.h' (moved to
525 gdbsupport/common.m4).
526 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
527 'gdbsupport/'.
528 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
529 * compile/compile-c-support.c: Include
530 'gdbsupport/gdb-dlfcn.h'.
531 * gdbsupport/common.m4: Check for 'dlfcn.h'.
532 * gdb-dlfcn.c: Move to...
533 * gdbsupport/gdb-dlfcn.c: ... here.
534 * gdb-dlfcn.h: Move to...
535 * gdbsupport/gdb-dlfcn.h: ... here.
536
537 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
538
539 * nios2-tdep.c (struct reg_value): Improve comments. Make
540 the offset field signed.
541
542 2019-08-22 Christian Biesinger <cbiesinger@google.com>
543
544 * python/lib/gdb/__init__.py (_execute_file): New function.
545 * python/python.c (python_run_simple_file): Call gdb._execute_file
546 on Windows.
547
548 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
549
550 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
551 all uses as this was never set to anything but a zero value.
552
553 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
554
555 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
556
557 2019-08-21 Christian Biesinger <cbiesinger@google.com>
558
559 * tui/tui-data.h (tui_gen_win_info): Add an =default
560 move constructor, required by some GCC versions.
561
562 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
563
564 * go32-nat.c (go32_sysinfo): Add hygon_p.
565
566 2019-08-20 Tom Tromey <tom@tromey.com>
567
568 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
569 line_from_reg_element_no, first_reg_element_no_inline,
570 display_all_data, delete_data_content_windows,
571 erase_data_content>: Now private.
572
573 2019-08-20 Tom Tromey <tom@tromey.com>
574
575 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
576 (tui_unhighlight_win, tui_highlight_win)
577 (tui_win_info::make_window): Update.
578 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
579
580 2019-08-20 Tom Tromey <tom@tromey.com>
581
582 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
583 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
584 (MAX_PID_WIDTH): Move to tui-stack.c.
585 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
586 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
587 (MAX_PID_WIDTH): Move from tui-data.h.
588
589 2019-08-20 Tom Tromey <tom@tromey.com>
590
591 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
592 * tui/tui-wingeneral.c (box_win): Change type of win_info.
593 (box_win): Update.
594 (tui_gen_win_info::make_window): Rename from tui_make_window.
595 (tui_win_info::make_window): New method.
596 (tui_gen_win_info::make_visible): Update.
597 * tui/tui-source.c (tui_source_window::set_contents): Update.
598 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
599 (tui_data_window::display_registers_from): Update.
600 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
601 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
602 Declare.
603 <can_box>: Remove.
604 <title>: Remove.
605 (struct tui_win_info) <make_window>: Declare.
606 <can_box>: Now virtual.
607 <title>: New member.
608 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
609 * tui/tui-command.c (tui_cmd_window::resize): Update.
610
611 2019-08-20 Tom Tromey <tom@tromey.com>
612
613 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
614 * tui/tui-regs.c (tui_data_window::show_registers): Update.
615 (tui_data_window::check_register_values): Update.
616
617 2019-08-20 Tom Tromey <tom@tromey.com>
618
619 * tui/tui-regs.h (struct tui_data_window): Use
620 DISABLE_COPY_AND_ASSIGN.
621 <regs_content>: Change type, removing unique_ptr.
622 <tui_data_window>: Add move constructor.
623 * tui/tui-regs.c (tui_data_window::show_registers)
624 (tui_data_window::show_register_group)
625 (tui_data_window::display_registers_from)
626 (tui_data_window::display_registers_from)
627 (tui_data_window::first_data_item_displayed)
628 (tui_data_window::delete_data_content_windows)
629 (tui_data_window::rerender, tui_data_window::refresh_window)
630 (tui_data_window::check_register_values): Update.
631
632 2019-08-20 Tom Tromey <tom@tromey.com>
633
634 * tui/tui-regs.h (struct tui_data_window) <show_registers,
635 show_register_group>: Declare.
636 (tui_show_register_group): Don't declare.
637 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
638 tui_show_registers.
639 (tui_data_window::show_register_group): Rename from
640 tui_show_register_group.
641 (tui_data_window::check_register_values, tui_reg_command):
642 Update.
643 * tui/tui-layout.c (tui_set_layout): Update.
644
645 2019-08-20 Tom Tromey <tom@tromey.com>
646
647 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
648 Declare.
649 (tui_check_register_values): Don't declare.
650 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
651 from tui_check_register_values.
652 * tui/tui-hooks.c (tui_register_changed): Update.
653
654 2019-08-20 Tom Tromey <tom@tromey.com>
655
656 * tui/tui-regs.c (tui_reg_layout): Move later.
657 (tui_show_registers): Don't enable TUI mode or change layout.
658
659 2019-08-20 Tom Tromey <tom@tromey.com>
660
661 * tui/tui-regs.h (struct tui_data_item_window)
662 <~tui_data_item_window>: Remove.
663 <content>: Now a unique_xmalloc_ptr.
664 * tui/tui-regs.c (tui_register_format): Return a
665 unique_xmalloc_ptr.
666 (tui_get_register): Update.
667 (~tui_data_item_window): Remove.
668 (tui_data_window::display_registers_from, tui_display_register):
669 Update.
670 * tui/tui-io.h (tui_expand_tabs): Update.
671 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
672 Remove "col" parameter.
673
674 2019-08-20 Tom Tromey <tom@tromey.com>
675
676 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
677 field.
678 * tui/tui-regs.c (~tui_data_item_window): Update.
679
680 2019-08-20 Tom Tromey <tom@tromey.com>
681
682 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
683 earlier.
684
685 2019-08-20 Tom Tromey <tom@tromey.com>
686
687 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
688
689 2019-08-20 Tom Tromey <tom@tromey.com>
690
691 * tui/tui-source.h (struct tui_source_window): Update.
692 * tui/tui-regs.c (tui_show_registers): Update.
693 * tui/tui-disasm.h (struct tui_disasm_window): Update.
694 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
695 (NO_REGS_STRING): Remove defines.
696
697 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
698
699 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
700 unnecessary thread walk if remote doesn't support the packet.
701
702 2019-08-19 Tom Tromey <tromey@adacore.com>
703
704 * python/py-value.c (value_has_field): Fix indentation.
705
706 2019-08-19 Tom Tromey <tromey@adacore.com>
707
708 * printcmd.c (do_one_display, info_display_command): Update.
709 * block.h (contained_in): Return bool. Add allow_nested
710 parameter.
711 * block.c (contained_in): Return bool. Add allow_nested
712 parameter.
713
714 2019-08-19 Tom Tromey <tom@tromey.com>
715
716 * configure: Rebuild.
717 * configure.ac: Disallow the combination of -static-libstdc++ and
718 source highlight.
719 * source-cache.c (get_language_name): Handle rust.
720 (source_cache::get_source_lines): Ignore highlighting exceptions.
721
722 2019-08-16 Tom Tromey <tom@tromey.com>
723
724 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
725 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
726 (struct tui_source_window_base) <make_visible, refresh_window,
727 resize>: Remove methods.
728 <execution_info>: Remove field.
729 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
730 (tui_show_source_line, tui_source_window_base)
731 (~tui_source_window_base): Update.
732 (tui_source_window_base::resize)
733 (tui_source_window_base::make_visible)
734 (tui_source_window_base::refresh_window): Remove.
735 (tui_source_window_base::update_exec_info): Update.
736 * tui/tui-source.c (tui_source_window::set_contents): Update.
737 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
738
739 2019-08-16 Tom Tromey <tom@tromey.com>
740
741 * tui/tui-hooks.c (tui_remove_hooks): Don't set
742 deprecated_query_hook.
743
744 2019-08-16 Tom Tromey <tom@tromey.com>
745
746 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
747 (tui_update_source_windows_with_line): Update.
748 * tui/tui-source.h (struct tui_source_window)
749 <show_symtab_source>: Declare.
750 (tui_show_symtab_source): Don't declare.
751 * tui/tui-source.c (tui_show_symtab_source): Rename from
752 tui_show_symtab_source.
753
754 2019-08-16 Tom Tromey <tom@tromey.com>
755
756 * tui/tui-winsource.h (struct tui_source_window_base)
757 <set_contents>: Declare.
758 * tui/tui-winsource.c
759 (tui_source_window_base::update_source_window_as_is): Update.
760 * tui/tui-source.h (struct tui_source_window) <set_contents>:
761 Declare.
762 (tui_set_source_content): Don't declare.
763 * tui/tui-source.c (tui_source_window::set_contents): Rename from
764 tui_set_source_content.
765 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
766 Declare.
767 (tui_set_disassem_content): Don't declare.
768 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
769 tui_set_disassem_content.
770
771 2019-08-16 Tom Tromey <tom@tromey.com>
772
773 * tui/tui-winsource.h (struct tui_source_window_base)
774 <update_breakpoint_info>: Declare.
775 (tui_update_breakpoint_info): Don't declare.
776 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
777 (tui_update_all_breakpoint_info): Update.
778 (tui_source_window_base::update_breakpoint_info): Rename from
779 tui_update_breakpoint_info.
780 (tui_source_window_base::update_exec_info): Update.
781
782 2019-08-16 Tom Tromey <tom@tromey.com>
783
784 * tui/tui-winsource.h (struct tui_source_window_base)
785 <update_source_window>: Declare.
786 (tui_update_source_window): Don't declare.
787 * tui/tui-winsource.c
788 (tui_source_window_base::update_source_window): Rename from
789 tui_update_source_window.
790 (tui_source_window_base::rerender): Update.
791 * tui/tui-source.c (tui_source_window::maybe_update): Update.
792 * tui/tui-disasm.c (tui_show_disassem)
793 (tui_show_disassem_and_update_source)
794 (tui_disasm_window::maybe_update): Update.
795
796 2019-08-16 Tom Tromey <tom@tromey.com>
797
798 * tui/tui-winsource.h (struct tui_source_window_base)
799 <update_source_window_as_is>: Declare.
800 (tui_update_source_window_as_is): Don't declare.
801 * tui/tui-winsource.c (tui_update_source_window): Update
802 (tui_source_window_base::update_source_window_as_is): Rename from
803 tui_update_source_window_as_is.
804 (tui_source_window_base::refill): Update.
805 * tui/tui-source.c (tui_show_symtab_source): Update.
806 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
807 Update.
808
809 2019-08-16 Tom Tromey <tom@tromey.com>
810
811 * tui/tui-winsource.h (tui_update_source_window)
812 (tui_update_source_window_as_is): Remove "noerror" parameter.
813 * tui/tui-winsource.c (tui_update_source_window)
814 (tui_update_source_window_as_is): Remove "noerror" parameter.
815 (tui_update_source_windows_with_addr)
816 (tui_update_source_windows_with_line)
817 (tui_source_window_base::rerender)
818 (tui_source_window_base::refill): Update.
819 * tui/tui-source.h (tui_set_source_content)
820 (tui_show_symtab_source): Remove "noerror" parameter.
821 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
822 parameter.
823 (tui_show_symtab_source): Likewise.
824 (tui_source_window::maybe_update): Update.
825 * tui/tui-disasm.c (tui_show_disassem)
826 (tui_show_disassem_and_update_source)
827 (tui_disasm_window::do_scroll_vertical)
828 (tui_disasm_window::maybe_update): Update.
829
830 2019-08-16 Tom Tromey <tom@tromey.com>
831
832 * tui/tui.c (tui_is_window_visible): Update.
833 * tui/tui-wingeneral.c (tui_make_window)
834 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
835 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
836 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
837 (tui_set_win_height_command, parse_scrolling_args): Update.
838 * tui/tui-source.c (tui_source_window::style_changed): Update.
839 * tui/tui-regs.c (tui_show_registers)
840 (tui_data_window::first_data_item_displayed)
841 (tui_data_window::delete_data_content_windows)
842 (tui_check_register_values, tui_reg_command): Update.
843 * tui/tui-disasm.c (tui_show_disassem): Update.
844 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
845 method.
846 <is_visible>: Remove field.
847 * tui/tui-data.c (tui_next_win, tui_prev_win)
848 (tui_delete_invisible_windows): Update.
849
850 2019-08-16 Tom Tromey <tom@tromey.com>
851
852 * tui/tui-winsource.h (struct tui_source_window_base)
853 <m_has_locator>: Remove.
854 * tui/tui-layout.c (show_source_disasm_command, show_data)
855 (show_source_or_disasm_and_command): Update.
856
857 2019-08-16 Alan Hayward <alan.hayward@arm.com>
858
859 * NEWS (Other MI changes): New subsection.
860 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
861 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
862 * arch-utils.c (default_get_pc_address_flags): New function.
863 * arch-utils.h (default_get_pc_address_flags): New declaration.
864 * gdbarch.sh: Add get_pc_address_flags.
865 * gdbarch.c: Regenerate.
866 * gdbarch.h: Likewise.
867 * stack.c (print_pc): New function.
868 (print_frame_info) (print_frame): Call print_pc.
869
870 2019-08-16 Tom de Vries <tdevries@suse.de>
871
872 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
873 print_objfile_section_info.
874
875 2019-08-15 Tom Tromey <tom@tromey.com>
876
877 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
878 calling update_cmdwin_start_line.
879 * tui/tui-winsource.h (struct tui_source_window_base)
880 <do_make_visible_with_new_height, set_new_height>: Don't declare.
881 <rerender>: Declare.
882 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
883 Call rerender.
884 (tui_source_window_base::set_new_height): Remove.
885 (tui_source_window_base::rerender): Rename from
886 do_make_visible_with_new_height.
887 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
888 resize method.
889 (tui_win_info::make_invisible_and_set_new_height)
890 (tui_win_info::make_visible_with_new_height): Remove.
891 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
892 Declare.
893 * tui/tui-stack.c (tui_locator_window::rerender): New method.
894 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
895 do_make_visible_with_new_height>: Don't declare.
896 <rerender>: Declare.
897 * tui/tui-regs.c (tui_data_window::rerender): Rename from
898 set_new_height.
899 (tui_data_window::do_make_visible_with_new_height): Remove.
900 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
901 call tui_show_locator_content.
902 (tui_gen_win_info::resize): Call rerender.
903 (show_source_or_disasm_and_command): Don't call
904 tui_show_locator_content.
905 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
906 method.
907 (struct tui_win_info) <rerender>: Declare.
908 <set_new_height, make_invisible_and_set_new_height,
909 make_visible_with_new_height>: Don't declare.
910 * tui/tui-data.c (tui_win_list::rerender): New method.
911 * tui/tui-command.h (struct tui_cmd_window)
912 <do_make_visible_with_new_height>: Don't declare.
913 * tui/tui-command.c
914 (tui_cmd_window::do_make_visible_with_new_height): Remove.
915
916 2019-08-15 Tom Tromey <tromey@adacore.com>
917
918 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
919 * ada-lang.c (ada_enum_name): Likewise.
920
921 2019-08-15 Christian Biesinger <cbiesinger@google.com>
922
923 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
924 leading underscore.
925 (GdbOutputErrorFile): Likewise.
926 (global scope): Adjust constructor calls to GdbOutput{,Error}File
927 accordingly.
928 (execute_unwinders): Rename to have a leading underscore.
929 (auto_load_packages): Likewise.
930 (global scope): Adjust call to auto_load_packages accordingly.
931 (GdbSetPythonDirectory): Likewise.
932 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
933 instead of execute_unwinders.
934
935 2019-08-15 Tom Tromey <tom@tromey.com>
936
937 * tui/tui-layout.c (show_layout, show_source_disasm_command)
938 (show_data): Don't change window visibility.
939 (tui_gen_win_info::resize): Remove special case for command
940 window. Use wresize, when available.
941 (show_source_or_disasm_and_command): Don't change window
942 visibility.
943 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
944 <make_visible>: New method.
945 * tui/tui-command.c (tui_cmd_window::resize): New method.
946
947 2019-08-15 Tom Tromey <tom@tromey.com>
948
949 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
950 (struct tui_source_windows): New.
951 * tui/tui-winsource.c (tui_display_main): Update.
952 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
953 (new_height_ok, parse_scrolling_args): Update.
954 * tui/tui-layout.c (show_layout, show_data): Update.
955 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
956 (tui_add_to_source_windows): Don't declare.
957 * tui/tui-data.c (source_windows, tui_source_windows)
958 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
959
960 2019-08-15 Tom Tromey <tom@tromey.com>
961
962 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
963 Rename from reset.
964 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
965 * tui/tui-layout.c (show_source_disasm_command, show_data):
966 Update.
967 (tui_gen_win_info::resize): Rename.
968 (show_source_or_disasm_and_command): Update.
969 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
970 reset.
971
972 2019-08-15 Tom Tromey <tom@tromey.com>
973
974 * tui/tui-stack.c (tui_initialize_static_data): Remove.
975 * tui/tui-interp.c (tui_interp::init): Don't call
976 tui_initialize_static_data.
977 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
978
979 2019-08-15 Tom Tromey <tom@tromey.com>
980
981 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
982 examine tui_win_list.
983
984 2019-08-15 Tom Tromey <tom@tromey.com>
985
986 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
987 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
988 tui_clear_source_content.
989 (tui_clear_source_content): Remove.
990 (tui_source_window_base::do_erase_source_content): Hoist call to
991 content.clear().
992 * tui/tui-stack.c (tui_show_frame_info): Don't call
993 tui_clear_source_content.
994
995 2019-08-15 Tom Tromey <tom@tromey.com>
996
997 * tui/tui-winsource.h (struct tui_source_window_base)
998 <do_erase_source_content>: New method.
999 <erase_source_content>: New method.
1000 (tui_erase_source_content): Don't declare.
1001 * tui/tui-winsource.c (tui_clear_source_content): Update.
1002 (tui_source_window_base::do_erase_source_content): Rename from
1003 tui_erase_source_content.
1004 (tui_source_window_base::show_source_content): Update.
1005 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
1006 * tui/tui-source.h (struct tui_source_window)
1007 <erase_source_content>: New method.
1008 * tui/tui-disasm.h (struct tui_disasm_window)
1009 <erase_source_content>: New method.
1010
1011 2019-08-15 Tom Tromey <tom@tromey.com>
1012
1013 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
1014 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
1015 constructor.
1016 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
1017 * tui/tui-source.c (tui_set_source_content): Update.
1018 * tui/tui-disasm.c (tui_set_disassem_content): Update.
1019
1020 2019-08-15 Tom Tromey <tom@tromey.com>
1021
1022 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
1023 * tui/tui-winsource.c (tui_line_is_displayed): Move to
1024 tui-source.c.
1025 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
1026 Declare.
1027 * tui/tui-source.c (tui_source_window::line_is_displayed): New
1028 method.
1029 (tui_source_window::maybe_update): Update.
1030
1031 2019-08-15 Tom Tromey <tom@tromey.com>
1032
1033 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
1034 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
1035 tui-disasm.c.
1036 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
1037 Declare.
1038 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
1039 method.
1040 (tui_disasm_window::maybe_update): Update.
1041
1042 2019-08-15 Tom Tromey <tom@tromey.com>
1043
1044 * tui/tui-winsource.h (struct tui_source_window_base)
1045 <maybe_update>: Declare.
1046 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
1047 method.
1048 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
1049 Declare.
1050 * tui/tui-source.c (tui_source_window::maybe_update): New method.
1051 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
1052 Declare.
1053 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
1054
1055 2019-08-15 Tom Tromey <tom@tromey.com>
1056
1057 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
1058
1059 2019-08-15 Tom Tromey <tom@tromey.com>
1060
1061 * tui/tui-wingeneral.c: Include tui-stack.h.
1062 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
1063 (struct tui_locator_window): Move from tui-data.h.
1064 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
1065 (tui_initialize_static_data): Move from tui-data.c.
1066 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
1067 (struct tui_locator_window): Move to tui-stack.c.
1068 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
1069 (tui_initialize_static_data): Move to tui-stack.c.
1070
1071 2019-08-15 Tom Tromey <tom@tromey.com>
1072
1073 * tui/tui-layout.c (show_source_disasm_command)
1074 (show_source_or_disasm_and_command): Use make_visible method, not
1075 tui_make_window.
1076 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
1077 Remove.
1078
1079 2019-08-15 Tom Tromey <tom@tromey.com>
1080
1081 * tui/tui-wingeneral.h (tui_make_window): Update.
1082 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
1083 parameter.
1084 (tui_gen_win_info::make_visible): Update.
1085 * tui/tui-regs.c (tui_data_window::display_registers_from):
1086 Update.
1087 * tui/tui-layout.c (show_source_disasm_command)
1088 (show_source_or_disasm_and_command): Update.
1089 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
1090 (enum tui_box): Remove.
1091 (struct tui_win_info) <can_box>: New method.
1092 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
1093 method.
1094
1095 2019-08-15 Tom de Vries <tdevries@suse.de>
1096
1097 * linux-nat-trad.c: Include gdbarch.h.
1098
1099 2019-08-14 Alan Hayward <alan.hayward@arm.com>
1100
1101 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
1102 register sizes.
1103
1104 2019-08-14 Tom Tromey <tromey@adacore.com>
1105
1106 * darwin-nat.c: Include gdbarch.h.
1107 * darwin-nat-info.c: Include gdbarch.h.
1108
1109 2019-08-13 Tom Tromey <tom@tromey.com>
1110
1111 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
1112 Remove.
1113 * tui/tui-data.c (tui_initialize_static_data): Update.
1114
1115 2019-08-13 Tom Tromey <tom@tromey.com>
1116
1117 * tui/tui-winsource.h (struct tui_exec_info_window)
1118 <~tui_exec_info_window, maybe_allocate_content, get_content,
1119 m_content>: Remove.
1120 (struct tui_source_window_base) <set_exec_info_content,
1121 show_exec_info_content>: Don't declare.
1122 * tui/tui-winsource.c
1123 (tui_exec_info_window::maybe_allocate_content): Remove.
1124 (tui_source_window_base::update_exec_info): Rename from
1125 set_exec_info_content.
1126 (tui_source_window_base::show_exec_info_content)
1127 (tui_source_window_base::update_exec_info): Remove.
1128
1129 2019-08-13 Tom Tromey <tom@tromey.com>
1130
1131 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
1132 declare.
1133 * tui/tui-winsource.c (tui_update_source_window_as_is)
1134 (tui_update_source_windows_with_addr, tui_erase_source_content):
1135 Update.
1136 (tui_clear_exec_info_content): Remove.
1137
1138 2019-08-13 Tom Tromey <tom@tromey.com>
1139
1140 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
1141 declare.
1142 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
1143 call tui_erase_exec_info_content.
1144 (tui_clear_exec_info_content): Rename from
1145 tui_erase_exec_info_content.
1146 (tui_clear_exec_info_content): Delete.
1147
1148 2019-08-13 Tom Tromey <tom@tromey.com>
1149
1150 * tui/tui-winsource.h (struct tui_source_window_base)
1151 <show_exec_info_content>: Declare.
1152 (tui_show_exec_info_content): Don't declare.
1153 * tui/tui-winsource.c
1154 (tui_source_window_base::show_exec_info_content): Rename from
1155 tui_show_exec_info_content.
1156 (tui_source_window_base::update_exec_info): Update.
1157
1158 2019-08-13 Tom Tromey <tom@tromey.com>
1159
1160 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
1161 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
1162 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
1163 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
1164 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
1165 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
1166 ... here.
1167
1168 2019-08-13 Tom Tromey <tom@tromey.com>
1169
1170 * tui/tui-winsource.h (struct tui_source_window_base)
1171 <update_exec_info>: Declare.
1172 (tui_update_exec_info): Don't declare.
1173 * tui/tui-winsource.c (tui_update_source_window_as_is)
1174 (tui_source_window_base::refresh_all)
1175 (tui_update_all_breakpoint_info): Update.
1176 (tui_source_window_base::update_exec_info): Rename from
1177 tui_update_exec_info.
1178 * tui/tui-stack.c (tui_show_frame_info): Update.
1179
1180 2019-08-13 Tom Tromey <tom@tromey.com>
1181
1182 * tui/tui-winsource.h (struct tui_source_window_base)
1183 <set_exec_info_content>: Declare.
1184 (tui_set_exec_info_content): Don't declare.
1185 * tui/tui-winsource.c
1186 (tui_source_window_base::set_exec_info_content): Rename from
1187 tui_set_exec_info_content.
1188 (tui_update_exec_info): Update.
1189
1190 2019-08-13 Tom Tromey <tom@tromey.com>
1191
1192 * tui/tui-winsource.h (struct tui_source_window_base)
1193 <show_source_content>: Declare.
1194 (tui_show_source_content): Don't declare.
1195 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1196 (tui_source_window_base::show_source_content): Rename from
1197 tui_show_source_content.
1198 (tui_source_window_base::refresh_all): Update.
1199 * tui/tui-layout.c (show_source_disasm_command)
1200 (show_source_or_disasm_and_command): Update.
1201
1202 2019-08-13 Tom Tromey <tom@tromey.com>
1203
1204 * tui/tui-winsource.c (tui_erase_source_content)
1205 (tui_show_source_content, tui_source_window_base::refresh_all):
1206 Update.
1207 * tui/tui-wingeneral.h
1208 (tui_check_and_display_highlight_if_needed): Don't declare.
1209 * tui/tui-wingeneral.c
1210 (tui_win_info::check_and_display_highlight_if_needed): Rename from
1211 check_and_display_highlight_if_needed.
1212 * tui/tui-win.c (tui_rehighlight_all)
1213 (tui_win_info::make_visible_with_new_height): Update.
1214 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
1215 (tui_data_window::erase_data_content)
1216 (tui_data_window::display_all_data): Update.
1217 * tui/tui-data.h (struct tui_win_info)
1218 <check_and_display_highlight_if_needed>: Declare.
1219
1220 2019-08-13 Tom Tromey <tom@tromey.com>
1221
1222 * tui/tui-win.c (tui_resize_all): Call
1223 tui_delete_invisible_windows.
1224 * tui/tui-layout.c (show_layout): Call
1225 tui_delete_invisible_windows.
1226 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
1227 * tui/tui-data.c (tui_delete_invisible_windows): New function.
1228
1229 2019-08-13 Tom Tromey <tom@tromey.com>
1230
1231 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
1232 tui_add_win_to_layout.
1233
1234 2019-08-13 Tom Tromey <tom@tromey.com>
1235
1236 * tui/tui-layout.h (tui_default_win_height): Don't declare.
1237 * tui/tui-layout.c (tui_default_win_height): Now static.
1238
1239 2019-08-13 Tom Tromey <tom@tromey.com>
1240
1241 * tui/tui-layout.c (show_layout): Unify all layout cases into a
1242 single switch.
1243 (show_source_disasm_command, show_source_or_disasm_and_command):
1244 Don't check current layout.
1245
1246 2019-08-13 Tom Tromey <tom@tromey.com>
1247
1248 * tui/tui-wingeneral.c (make_all_visible): Remove.
1249 (tui_make_all_invisible): Simplify.
1250 * tui/tui-layout.c (tui_make_all_invisible): Move from
1251 tui-wingeneral.c; simplify.
1252 (show_layout): Hoist call to tui_make_all_invisible.
1253 (show_data): Don't call tui_make_all_invisible.
1254
1255 2019-08-13 Tom Tromey <tom@tromey.com>
1256
1257 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
1258 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
1259
1260 2019-08-13 Tom Tromey <tom@tromey.com>
1261
1262 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
1263 tui-data.c.
1264 (show_source_disasm_command, show_data)
1265 (show_source_or_disasm_and_command): Don't use
1266 tui_set_current_layout_to.
1267 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
1268 * tui/tui-data.c (current_layout, tui_current_layout): Move to
1269 tui-layout.c.
1270 (tui_set_current_layout_to): Remove.
1271
1272 2019-08-13 Tom Tromey <tom@tromey.com>
1273
1274 * tui/tui-layout.c (tui_set_layout): Update.
1275 * tui/tui-data.h (struct tui_layout_def): Remove.
1276 (tui_layout_def): Don't declare.
1277 * tui/tui-data.c (layout_def): Remove.
1278 (tui_layout_def): Remove.
1279
1280 2019-08-13 Tom Tromey <tom@tromey.com>
1281
1282 * tui/tui-winsource.h (struct tui_source_window_base)
1283 <clear_detail>: No longer "override".
1284 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
1285 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
1286 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
1287 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
1288 Remove.
1289 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
1290
1291 2019-08-13 Tom Tromey <tromey@adacore.com>
1292
1293 * tracepoint.c: Don't include readline.h or history.h.
1294
1295 2019-08-12 Tom Tromey <tom@tromey.com>
1296
1297 * configure: Rebuild.
1298 * configure.ac: Check for readline 7.
1299 * NEWS: Mention readline 7 requirement.
1300 * README: Update.
1301
1302 2019-08-12 Tom Tromey <tom@tromey.com>
1303
1304 * mingw-hdep.c (gdb_select): Remove readline hack.
1305
1306 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1307
1308 * blockframe.c (find_pc_partial_function): Set *block to nullptr
1309 when the function fails.
1310
1311 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
1312
1313 * s390-tdep.c (s390_type_align): New function.
1314 (s390_gdbarch_init): Set it as type_align gdbarch method.
1315
1316 2019-08-09 Tom de Vries <tdevries@suse.de>
1317
1318 PR gdb/24591
1319 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
1320 pc_low with relocation offset.
1321
1322 2019-08-07 Tom Tromey <tromey@adacore.com>
1323
1324 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
1325 (print_frame_args): Update.
1326 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
1327 Update.
1328 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1329 * frame.h (struct frame_arg): Add initializers.
1330 <error>: Now a unique_xmalloc_ptr.
1331
1332 2019-08-07 Alan Hayward <alan.hayward@arm.com>
1333
1334 * NEWS: Expand the Pointer Authentication entry.
1335 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
1336 (aarch64_frame_unmask_lr): ... to this.
1337 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
1338 Call aarch64_frame_unmask_lr.
1339 * frame.c (struct frame_info): Add "masked" variable.
1340 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
1341 (fprint_frame): Check for masked pc.
1342 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
1343 declarations.
1344 * python/py-framefilter.c (py_print_frame): Check for masked pc.
1345 * stack.c (print_frame): Check for masked pc.
1346
1347 2019-08-06 Tom Tromey <tom@tromey.com>
1348
1349 * stabsread.c (patch_block_stabs, read_one_struct_field)
1350 (read_enum_type): Use obstack_strndup.
1351 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
1352 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
1353 * dwarf2read.c (guess_full_die_structure_name)
1354 (anonymous_struct_prefix): Use obstack_strndup.
1355 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
1356 * c-exp.y (yylex): Use obstack_strndup.
1357 * ada-exp.y (write_object_renaming, write_ambiguous_var)
1358 (write_var_or_type): Use obstack_strndup.
1359
1360 2019-08-06 Tom Tromey <tom@tromey.com>
1361
1362 * symfile.c (reread_symbols): Use obstack_strdup.
1363 * stabsread.c (read_type): Use obstack_strdup.
1364 * gdb_obstack.h (obstack_strdup): New overload.
1365 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
1366 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
1367 (dwarf2_canonicalize_name): Use obstack_strdup.
1368 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
1369 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
1370 Use obstack_strdup.
1371
1372 2019-08-06 Tom Tromey <tom@tromey.com>
1373
1374 * gdb_obstack.h (obstack_strdup): Define.
1375 * gdb_obstack.c (obstack_strdup): Don't define.
1376
1377 2019-08-06 Tom Tromey <tom@tromey.com>
1378
1379 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
1380 obstack_strdup.
1381 * typeprint.c (typedef_hash_table::find_global_typedef): Use
1382 obstack_strdup.
1383 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
1384 * stabsread.c (common_block_start): Use obstack_strdup.
1385 * objfiles.c (set_objfile_main_name, objfile): Use
1386 obstack_strdup.
1387 * namespace.c (add_using_directive): Use obstack_strdup.
1388 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
1389 * jit.c (finalize_symtab): Use obstack_strdup.
1390 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
1391 (guess_partial_die_structure_name, partial_die_info::fixup)
1392 (dwarf2_name): Use obstack_strdup.
1393 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
1394 obstack_strdup.
1395 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
1396 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
1397 obstack_strdup.
1398 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
1399
1400 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1401
1402 * unittests/help-doc-selftests.c: New file.
1403 * Makefile.in: Add the new file.
1404
1405 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1406
1407 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
1408 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
1409 the full first line, except when FOR_VALUE_PREFIX. In this case,
1410 the trailing '.' is not output, and the first character is uppercased.
1411 (print_help_for_command): Update call to print_doc_line.
1412 (print_doc_of_command): Likewise.
1413 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
1414 * cli/cli-option.c (append_indented_doc): Do not append newline.
1415 (build_help_option): Append newline after first appended_indented_doc
1416 only if a second call is done.
1417 (build_help): Append 2 new lines before each option, except the first
1418 one.
1419 * compile/compile.c (_initialize_compile): Add new lines after
1420 %OPTIONS%, when not at the end of the help.
1421 Change help doc or code
1422 producing the help doc to respect the invariants.
1423 * maint-test-options.c (_initialize_maint_test_options): Likewise.
1424 Also removed the new line after 'Options:', as all other commands
1425 do not put an empty line between 'Options:' and the first option.
1426 * printcmd.c (_initialize_printcmd): Likewise.
1427 * stack.c (_initialize_stack): Likewise.
1428 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
1429 incorrectly telling COMMAND is optional.
1430 * ada-lang.c (_initialize_ada_language): Change help doc or code
1431 producing the help doc to respect the invariants.
1432 * ada-tasks.c (_initialize_ada_tasks): Likewise.
1433 * breakpoint.c (_initialize_breakpoint): Likewise.
1434 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
1435 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
1436 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
1437 * cli/cli-style.c (cli_style_option::add_setshow_commands,
1438 _initialize_cli_style): Likewise.
1439 * corelow.c (core_target_info): Likewise.
1440 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
1441 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
1442 * filesystem.c (_initialize_filesystem): Likewise.
1443 * frame.c (_initialize_frame): Likewise.
1444 * gnu-nat.c (add_task_commands): Likewise.
1445 * infcall.c (_initialize_infcall): Likewise.
1446 * infcmd.c (_initialize_infcmd): Likewise.
1447 * interps.c (_initialize_interpreter): Likewise.
1448 * language.c (_initialize_language): Likewise.
1449 * linux-fork.c (_initialize_linux_fork): Likewise.
1450 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
1451 * maint.c (_initialize_maint_cmds): Likewise.
1452 * memattr.c (_initialize_mem): Likewise.
1453 * printcmd.c (_initialize_printcmd): Likewise.
1454 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
1455 _RegEx): Likewise.
1456 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
1457 * record-btrace.c (_initialize_record_btrace): Likewise.
1458 * record-full.c (_initialize_record_full): Likewise.
1459 * record.c (_initialize_record): Likewise.
1460 * regcache-dump.c (_initialize_regcache_dump): Likewise.
1461 * regcache.c (_initialize_regcache): Likewise.
1462 * remote.c (add_packet_config_cmd, init_remote_threadtests,
1463 _initialize_remote): Likewise.
1464 * ser-tcp.c (_initialize_ser_tcp): Likewise.
1465 * serial.c (_initialize_serial): Likewise.
1466 * skip.c (_initialize_step_skip): Likewise.
1467 * source.c (_initialize_source): Likewise.
1468 * stack.c (_initialize_stack): Likewise.
1469 * symfile.c (_initialize_symfile): Likewise.
1470 * symtab.c (_initialize_symtab): Likewise.
1471 * target-descriptions.c (_initialize_target_descriptions): Likewise.
1472 * top.c (init_main): Likewise.
1473 * tracefile-tfile.c (tfile_target_info): Likewise.
1474 * tracepoint.c (_initialize_tracepoint): Likewise.
1475 * tui/tui-win.c (_initialize_tui_win): Likewise.
1476 * utils.c (add_internal_problem_command): Likewise.
1477 * valprint.c (value_print_option_defs): Likewise.
1478
1479 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
1480
1481 PR build/24886
1482 * configure.ac: Drop enable-libmcheck support.
1483 * configure, config.in: Rebuild.
1484 * libmcheck.m4: Remove.
1485 * acinclude.m4: Don't include it.
1486 * Makefile.in: Don't distribute it.
1487 * top.c (print_gdb_configuration): Don't mention it.
1488
1489 2019-08-06 Tom Tromey <tom@tromey.com>
1490
1491 * utils.c (set_output_style): Sometimes pass stream to
1492 emit_style_escape.
1493 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
1494 * record-btrace.c (btrace_insn_history): Update.
1495 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
1496 method.
1497 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
1498 Update initializers.
1499 <m_uiout>: New field.
1500 <m_di>: Move lower.
1501 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1502 Remove "uiout" parameter.
1503 (dump_insns): Update.
1504 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
1505 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
1506
1507 2019-08-06 Christian Biesinger <cbiesinger@google.com>
1508
1509 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
1510 (error_in_psymtab_expansion): Likewise.
1511 (lookup_symbol_via_quick_fns): Likewise.
1512 (basic_lookup_transparent_type_quick): Likewise.
1513 (basic_lookup_transparent_type_1): Likewise.
1514
1515 2019-08-06 Tom Tromey <tromey@adacore.com>
1516
1517 * source.c (last_source_error): Now bool.
1518 (print_source_lines_base): Make "noprint" bool. Only open
1519 source file when last_source_visited changes.
1520
1521 2019-08-06 Tom Tromey <tromey@adacore.com>
1522
1523 * annotate.c (annotate_source_line): Use g_source_cache.
1524 * source-cache.c (source_cache::get_plain_source_lines): Change
1525 parameters. Populate m_offset_cache.
1526 (source_cache::ensure): New method.
1527 (source_cache::get_line_charpos): New method.
1528 (extract_lines): Move lower. Change parameters.
1529 (source_cache::get_source_lines): Move lower.
1530 * source-cache.h (class source_cache): Update comment.
1531 <get_line_charpos>: New method.
1532 <get_source_lines>: Update comment.
1533 <clear>: Clear m_offset_cache.
1534 <get_plain_source_lines>: Change parameters.
1535 <ensure>: New method
1536 <m_offset_cache>: New member.
1537 * source.c (forget_cached_source_info_for_objfile): Update.
1538 (info_source_command): Use g_source_cache.
1539 (find_source_lines, open_source_file_with_line_charpos): Remove.
1540 (print_source_lines_base, search_command_helper): Use g_source_cache.
1541 * source.h (open_source_file_with_line_charpos): Don't declare.
1542 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
1543 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
1544 Use g_source_cache.
1545
1546 2019-08-06 Tom Tromey <tromey@adacore.com>
1547
1548 * source-cache.c (source_cache::get_plain_source_lines):
1549 Remove "first_line" and "last_line" parameters.
1550 (source_cache::get_source_lines): Cache plain text.
1551 * source-cache.h (class source_cache)
1552 <get_plain_source_lines>: Update.
1553
1554 2019-08-06 Tom Tromey <tromey@adacore.com>
1555
1556 * source-cache.c (extract_lines): No longer a method.
1557 Changed type of parameter. Include final newline.
1558 (selftests::extract_lines_test): New function.
1559 (_initialize_source_cache): Likewise.
1560 * source-cache.h (class source_cache)
1561 <extract_lines>: Don't declare.
1562
1563 2019-08-06 Tom Tromey <tromey@adacore.com>
1564
1565 * breakpoint.c (init_breakpoint_sal): Update.
1566 (breakpoint): Update.
1567 * breakpoint.h (struct breakpoint) <filter>: Now a
1568 unique_xmalloc_ptr.
1569
1570 2019-08-05 Christian Biesinger <cbiesinger@google.com>
1571
1572 * NEWS: Mention dictionary access on blocks.
1573 * python/py-block.c (blpy_getitem): New function.
1574 (block_object_as_mapping): New struct.
1575 (block_object_type): Use new struct for tp_as_mapping field.
1576
1577 2019-08-05 Christian Biesinger <cbiesinger@google.com>
1578
1579 * objfiles.h (objfile): Add a comment describing partial symbols.
1580
1581 2019-08-05 Tom Tromey <tromey@adacore.com>
1582
1583 * compile/compile.c (_initialize_compile): Use _(), not N_().
1584 * thread.c (_initialize_thread): Use _(), not N_().
1585 * stack.c (_initialize_stack): Use _(), not N_().
1586 * printcmd.c (_initialize_printcmd): Use _(), not N_().
1587
1588 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1589
1590 * dwarf2read.c (struct dw2_symtab_iterator):
1591 <want_specific_block>: Remove.
1592 <block_index>: Change type to gdb::optional.
1593 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
1594 change type of BLOCK_INDEX parameter to gdb::optional.
1595 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
1596 (dw2_lookup_symbol): Don't pass argument for
1597 WANT_SPECIFIC_BLOCK.
1598 (dw2_expand_symtabs_for_function): Don't pass argument for
1599 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
1600 (class dw2_debug_names_iterator)
1601 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
1602 parameter, change BLOCK_INDEX type to gdb::optional.
1603 <m_want_specific_block>: Remove.
1604 <m_block_index>: Change type to gdb::optional.
1605 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
1606 gdb::optional. Re-write in function of gdb::optional.
1607 (dw2_debug_names_lookup_symbol): Don't pass argument for
1608 WANT_SPECIFIC_BLOCK.
1609 (dw2_debug_names_expand_symtabs_for_function): Don't pass
1610 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
1611 BLOCK_INDEX.
1612
1613 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1614
1615 * NEWS: Mention changes to "info sources" command.
1616
1617 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1618
1619 * symtab.c (filename_partial_match_opts): New struct type.
1620 (struct output_source_filename_data): New members
1621 regexp, c_regexp, partial_match.
1622 (output_source_filename): Use new members to decide to print file.
1623 (info_sources_option_defs): New variable.
1624 (make_info_sources_options_def_group, print_info_sources_header,
1625 info_sources_command_completer):
1626 New functions.
1627 (info_sources_command): Read new optional arguments.
1628 (_initialize_symtab): Update info sources help.
1629
1630 2019-08-02 Alexandre Oliva <oliva@adacore.com>
1631
1632 * ada-lang.c (exception_support_info_v0): Renamed from...
1633 (default_exception_support_info): ... this. Create new
1634 definition for v1.
1635 (ada_has_this_exception_support): Look up catch_handlers_sym.
1636 (ada_exception_support_info_sniffer): Try v0 after default.
1637
1638 2019-08-01 Tom Tromey <tromey@adacore.com>
1639
1640 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
1641 gdbarch.h.
1642
1643 2019-08-01 Christian Biesinger <cbiesinger@google.com>
1644
1645 * s12z-tdep.c: Fix include path for s12z-opc.h.
1646
1647 2019-08-01 Alan Hayward <alan.hayward@arm.com>
1648
1649 * NEWS: Require GNU make 3.82.
1650
1651 2019-07-16 Tom Tromey <tom@tromey.com>
1652
1653 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
1654 declare.
1655
1656 2019-07-30 Tom Tromey <tromey@adacore.com>
1657
1658 * block.c (contained_in): Remove BLOCK_FUNCTION check.
1659
1660 2019-07-30 Kevin Buettner <kevinb@redhat.com>
1661
1662 * printcmd.c (print_address_symbolic): Print negative offsets.
1663 (build_address_symbolic): Force signed arithmetic when computing
1664 offset.
1665
1666 2019-07-30 Christian Biesinger <cbiesinger@google.com>
1667
1668 PR/24474: Add a function to lookup static variables.
1669 * NEWS: Mention this new function.
1670 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
1671 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
1672 * python/python.c (python_GdbMethods): Add new function.
1673
1674 2019-07-29 Christian Biesinger <cbiesinger@google.com>
1675
1676 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
1677 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
1678 (objfpy_lookup_static_symbol): New function.
1679 (objfile_object_methods): Add new functions.
1680
1681 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1682
1683 * NEWS: Mention 'set|show print frame-info'. Mention new
1684 'presence' value for 'frame-arguments'. Mention new '-frame-info'
1685 backtrace argument. Mention that python frame filtering code
1686 is now consistent with what 'backtrace' command prints.
1687
1688 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1689
1690 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
1691 comments.
1692 (print_frame_info_auto, print_frame_info_source_line,
1693 print_frame_info_location, print_frame_info_source_and_location,
1694 print_frame_info_location_and_address, print_frame_info_short_location):
1695 New declarations.
1696 (struct frame_print_options): New member print_frame_info.
1697 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
1698 * stack.h (get_user_print_what_frame_info): New declaration.
1699 (frame_show_address): New declaration.
1700 * stack.c (print_frame_arguments_choices): New value 'presence'.
1701 (print_frame_info_auto, print_frame_info_source_line,
1702 print_frame_info_location, print_frame_info_source_and_location,
1703 print_frame_info_location_and_address, print_frame_info_short_location,
1704 print_frame_info_choices, print_frame_info_print_what): New definitions.
1705 (print_frame_args): Only print dots for args if print frame-arguments
1706 is 'presence'.
1707 (frame_print_option_defs): New element for "frame-info".
1708 (get_user_print_what_frame_info): New function.
1709 (frame_show_address): Make non static. Move comment to stack.h.
1710 (print_frame_info_to_print_what): New function.
1711 (print_frame_info): Update comment. Use fp_opts.print_frame_info
1712 to decide what to print.
1713 (backtrace_command_1): Handle the new print_frame_arguments_presence
1714 value.
1715 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
1716 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
1717 (py_print_frame): In non-mi mode, use LOCATION as default for
1718 print_what, similarly to frame information printed directly by
1719 backtrace command. Handle frame-info user option in non MI mode.
1720
1721 2019-07-27 Kevin Buettner <kevinb@redhat.com>
1722
1723 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
1724 Add case for debugging 32-bit target on 64-bit host. Revise
1725 comment.
1726
1727 2019-07-27 Kevin Buettner <kevinb@redhat.com>
1728
1729 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
1730 instead of find_function_entry_range_from_pc.
1731
1732 2019-07-27 Kevin Buettner <kevinb@redhat.com>
1733
1734 * stack.c (find_frame_funname): Remove code which preferred
1735 minsym over symtab sym in "certain pathological cases".
1736
1737 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
1738 parameter. Change type of "do_demangle" to bool.
1739 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1740 Pass suitable "prefer_sym_over_minsym" flag to
1741 build_address_symbolic(). Don't output "+" for negative offsets.
1742 * printcmd.c (print_address_symbolic): Update invocation of
1743 build_address_symbolic to include a "prefer_sym_over_minsym"
1744 flag.
1745 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
1746 Restrict cases in which use of minimal symbol is preferred to that
1747 of a found symbol. Update comments.
1748
1749 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
1750 for entry pc when entry pc is out of range for that FDE.
1751
1752 2019-07-26 Brian Callahan <bcallah@openbsd.org>
1753
1754 PR gdb/24839:
1755 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
1756 type.
1757
1758 2019-07-25 Christian Biesinger <cbiesinger@google.com>
1759
1760 * python/py-objfile.c (add_separate_debug_file): Fix comment about
1761 this function's Python signature.
1762
1763
1764 2019-07-24 Christian Biesinger <cbiesinger@google.com>
1765
1766 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
1767 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
1768 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
1769 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
1770 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
1771
1772
1773 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
1774
1775 * h8300-tdep.c (h8300_register_name_common): New.
1776 h8300_register_name): Use h8300_register_name_common.
1777 (h8300s_register_name): Likewise.
1778 (h8300sx_register_name): Likewise.
1779 (h8300h_register_nam): New.
1780 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
1781
1782
1783 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
1784
1785 * arm-tdep.c (arm_skip_cmse_entry): New function.
1786 (arm_is_sgstubs_section): New function.
1787 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
1788
1789 2019-07-22 Tom Tromey <tom@tromey.com>
1790
1791 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
1792 Don't self-assign.
1793
1794 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1795
1796 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
1797 type_print.
1798
1799 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1800
1801 * symtab.c (search_symbols): Adjust msymbol matching type arrays
1802 so that GDB doesn't match any msymbols when searching in the
1803 TYPES_DOMAIN.
1804 (print_symbol_info): Print using typedef_print or type_print based
1805 on the type of the symbol. Add updated FIXME comment moved from...
1806 (_initialize_symtab): ... move and update FIXME comment to above.
1807
1808 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1809
1810 * NEWS: Mention adding -q option to "info types".
1811 * symtab.c (struct info_types_options): New struct.
1812 (info_types_options_defs): New variable.
1813 (make_info_types_options_def_group): New function.
1814 (info_types_command): Use gdb::option framework to parse options.
1815 (info_types_command_completer): New function.
1816 (_initialize_symtab): Extend the help text on "info types" and
1817 register command completer.
1818
1819 2019-07-21 Christian Biesinger <cbiesinger@google.com>
1820
1821 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
1822 (lookup_symbol_in_objfile): Change int to block_enum and add a
1823 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
1824
1825 2019-07-20 Christian Biesinger <cbiesinger@google.com>
1826
1827 * MAINTAINERS (Write After Approval): Add self.
1828
1829 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
1830
1831 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
1832 instruction to the dummy code region.
1833
1834 2019-07-19 Tom Tromey <tromey@adacore.com>
1835
1836 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
1837 (ARGSUSED, PARAMS, __func__): Remove rules.
1838
1839 2019-07-19 Alan Hayward <alan.hayward@arm.com>
1840
1841 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
1842 * features/arm/arm-with-iwmmxt.c: Remove.
1843 * features/arm/arm-with-iwmmxt.xml: Remove.
1844 * features/arm/arm-with-m-fpa-layout.c: Remove.
1845 * features/arm/arm-with-m-fpa-layout.xml: Remove.
1846 * features/arm/arm-with-m-vfp-d16.c: Remove.
1847 * features/arm/arm-with-m-vfp-d16.xml: Remove.
1848 * features/arm/arm-with-m.c: Remove.
1849 * features/arm/arm-with-m.xml: Remove.
1850 * features/arm/arm-with-neon.c: Remove.
1851 * features/arm/arm-with-neon.xml: Remove.
1852 * features/arm/arm-with-vfpv2.c: Remove.
1853 * features/arm/arm-with-vfpv2.xml: Remove.
1854 * features/arm/arm-with-vfpv3.c: Remove.
1855 * features/arm/arm-with-vfpv3.xml: Remove.
1856
1857 2019-07-19 Alan Hayward <alan.hayward@arm.com>
1858
1859 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
1860
1861 2019-07-19 Alan Hayward <alan.hayward@arm.com>
1862
1863 * arch/aarch32.c (aarch32_create_target_description): Create
1864 target descriptions using features.
1865 * arch/arm.c (arm_create_target_description)
1866 (arm_create_mprofile_target_description): Likewise.
1867 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
1868
1869 2019-07-19 Alan Hayward <alan.hayward@arm.com>
1870
1871 * Makefile.in: Add new files.
1872 * aarch32-tdep.c: New file.
1873 * aarch32-tdep.h: New file.
1874 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
1875 Call aarch32_read_description.
1876 * arch/aarch32.c: New file.
1877 * arch/aarch32.h: New file.
1878 * arch/arm.c (arm_create_target_description)
1879 (arm_create_mprofile_target_description): New function.
1880 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
1881 (arm_create_target_description)
1882 (arm_create_mprofile_target_description): New declaration.
1883 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
1884 read_description functions.
1885 * arm-linux-nat.c (arm_linux_nat_target::read_description):
1886 Likewise.
1887 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
1888 * arm-tdep.c (tdesc_arm_list): New variable.
1889 (arm_register_g_packet_guesses): Call create description functions.
1890 (arm_read_description) (arm_read_mprofile_description): New
1891 function.
1892 * arm-tdep.h (arm_read_description)
1893 (arm_read_mprofile_description): Add declaration.
1894 * configure.tgt: Add new files.
1895
1896 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
1897
1898 * top.c (new_ui_command): Open specified terminal just once.
1899
1900 2019-07-18 Tom Tromey <tromey@adacore.com>
1901
1902 * symtab.c (main_name): Constify return type.
1903 * symfile.c (set_initial_language): Update.
1904 * symtab.h (main_name): Constify return type.
1905
1906 2019-07-17 Tom Tromey <tom@tromey.com>
1907
1908 * tui/tui-winsource.c (tui_update_source_window)
1909 (tui_update_source_window_as_is)
1910 (tui_update_source_windows_with_line): Remove return.
1911 * tui/tui-disasm.c (tui_show_disassem)
1912 (tui_show_disassem_and_update_source): Remove return.
1913 * tui/tui.c (tui_reset): Remove return.
1914 * tui/tui-wingeneral.c
1915 (tui_check_and_display_highlight_if_needed): Remove return.
1916
1917 2019-07-17 Tom Tromey <tom@tromey.com>
1918
1919 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
1920
1921 2019-07-17 Tom Tromey <tom@tromey.com>
1922
1923 * tui/tui-winsource.h (struct tui_exec_info_window)
1924 (struct tui_source_window_base): Move from tui-data.h.
1925 * tui/tui-winsource.c: Move many method definitions from
1926 elsewhere. Remove "structuring" comments.
1927 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
1928 (tui_source_window_base::refresh_window): Move to
1929 tui-winsource.c.
1930 * tui/tui-win.c (tui_source_window_base::refresh_all)
1931 (tui_source_window_base::update_tab_width)
1932 (tui_source_window_base::set_new_height)
1933 (tui_source_window_base::do_make_visible_with_new_height): Move to
1934 tui-winsource.c.
1935 * tui/tui-source.h: Update.
1936 * tui/tui-source.c (tui_source_window_base::reset): Move to
1937 tui-winsource.c.
1938 * tui/tui-disasm.h: Update.
1939 * tui/tui-data.h (struct tui_exec_info_window): Move to
1940 tui-winsource.h.
1941 (struct tui_source_window_base): Likewise.
1942 * tui/tui-data.c (tui_source_window_base::clear_detail)
1943 (tui_source_window_base, ~tui_source_window_base): Move to
1944 tui-winsource.c.
1945
1946 2019-07-17 Tom Tromey <tom@tromey.com>
1947
1948 * tui/tui-win.c (tui_resize_all)
1949 (tui_source_window_base::update_tab_width)
1950 (tui_adjust_win_heights): Update.
1951 (tui_win_info::make_invisible_and_set_new_height): Rename from
1952 make_invisible_and_set_new_height.
1953 * tui/tui-data.h (struct tui_win_info)
1954 <make_invisible_and_set_new_height>: New method.
1955
1956 2019-07-17 Tom Tromey <tom@tromey.com>
1957
1958 * tui/tui.c: Update.
1959 * tui/tui-source.h (struct tui_source_window): Move from
1960 tui-data.h.
1961 * tui/tui-layout.c: Update.
1962 * tui/tui-disasm.c: Update.
1963 * tui/tui-data.h (struct tui_source_window): Move to
1964 tui-source.h.
1965
1966 2019-07-17 Tom Tromey <tom@tromey.com>
1967
1968 * tui/tui-disasm.h (struct tui_disasm_window): Move from
1969 tui-data.h.
1970 * tui/tui-data.h (struct tui_disasm_window): Move to
1971 tui-disasm.h.
1972
1973 2019-07-17 Tom Tromey <tom@tromey.com>
1974
1975 * tui/tui-regs.h (struct tui_data_item_window): Move from
1976 tui-data.h.
1977 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
1978 * tui/tui-data.h (struct tui_data_item_window): Move to
1979 tui-regs.h.
1980 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
1981
1982 2019-07-17 Tom Tromey <tom@tromey.com>
1983
1984 * tui/tui.c: Update.
1985 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
1986 (tui_cmd_window::max_height): Move to tui-command.c.
1987 * tui/tui-layout.c: Update.
1988 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
1989 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
1990 tui-command.c.
1991 * tui/tui-command.h (struct tui_cmd_window): Move from
1992 tui-data.h.
1993 * tui/tui-command.c: Remove "structuring" comments.
1994 (tui_cmd_window::clear_detail)
1995 (tui_cmd_window::do_make_visible_with_new_height)
1996 (tui_cmd_window::max_height): Move from elsewhere.
1997
1998 2019-07-17 Tom Tromey <tom@tromey.com>
1999
2000 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
2001 Now static.
2002 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
2003 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
2004
2005 2019-07-17 Tom Tromey <tom@tromey.com>
2006
2007 * tui/tui.c: Update.
2008 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
2009 tui-regs.c.
2010 * tui/tui-windata.h: Remove file.
2011 * tui/tui-windata.c: Remove file.
2012 * tui/tui-win.c (tui_data_window::set_new_height)
2013 (tui_data_window::do_make_visible_with_new_height): Move to
2014 tui-regs.c.
2015 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
2016 * tui/tui-regs.c: Remove "structuring" comments.
2017 (tui_data_window::first_data_item_displayed)
2018 (tui_data_window::delete_data_content_windows)
2019 (tui_data_window::erase_data_content)
2020 (tui_data_window::display_all_data)
2021 (tui_data_window::refresh_all)
2022 (tui_data_window::do_scroll_vertical)
2023 (tui_data_window::clear_detail, tui_data_window::set_new_height)
2024 (tui_data_window::do_make_visible_with_new_height)
2025 (tui_data_window::refresh_window): Move from elsewhere.
2026 (_initialize_tui_regs): Move to end of file.
2027 * tui/tui-layout.c: Update.
2028 * tui/tui-hooks.c: Update.
2029 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
2030 * tui/tui-data.c (tui_data_window::clear_detail): Move to
2031 tui-regs.c.
2032 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
2033
2034 2019-07-17 Tom Tromey <tom@tromey.com>
2035
2036 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
2037 seen.
2038
2039 2019-07-17 Tom Tromey <tom@tromey.com>
2040
2041 * tui/tui-win.c (tui_source_window_base::set_new_height)
2042 (tui_source_window_base::do_make_visible_with_new_height): Use
2043 m_has_locator field directly.
2044 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
2045 method.
2046 (struct tui_source_window_base) <has_locator>: Likewise.
2047
2048 2019-07-17 Tom Tromey <tom@tromey.com>
2049
2050 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
2051 Don't declare.
2052 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
2053 Remove.
2054 * tui/tui-win.c (tui_source_window_base::set_new_height)
2055 (tui_source_window_base::set_new_height)
2056 (make_invisible_and_set_new_height)
2057 (tui_source_window_base::do_make_visible_with_new_height)
2058 (tui_source_window_base::do_make_visible_with_new_height):
2059 Update.
2060 * tui/tui-layout.c (show_source_disasm_command, show_data)
2061 (show_source_or_disasm_and_command): Update.
2062 * tui/tui-layout.c (show_layout): Update.
2063
2064 2019-07-17 Tom Tromey <tom@tromey.com>
2065
2066 * tui/tui-layout.c (make_data_window): Remove.
2067 (show_data): Unify creation and re-initialization cases.
2068
2069 2019-07-17 Tom Tromey <tom@tromey.com>
2070
2071 * tui/tui-layout.c (make_source_window, make_disasm_window):
2072 Remove.
2073 (show_data): Unify creation and re-initialization cases.
2074
2075 2019-07-17 Tom Tromey <tom@tromey.com>
2076
2077 * tui/tui-layout.c (make_command_window): Remove.
2078 (show_source_disasm_command, show_source_or_disasm_and_command):
2079 Unify creation and re-initialization cases.
2080
2081 2019-07-17 Tom Tromey <tom@tromey.com>
2082
2083 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
2084 creation and re-initialization cases.
2085
2086 2019-07-17 Tom Tromey <tom@tromey.com>
2087
2088 * tui/tui-regs.c (tui_get_register): Return void.
2089
2090 2019-07-17 Tom Tromey <tom@tromey.com>
2091
2092 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
2093 Simplify.
2094
2095 2019-07-17 Tom Tromey <tom@tromey.com>
2096
2097 * tui/tui-layout.c (show_source_disasm_command): Simplify window
2098 resetting.
2099
2100 2019-07-17 Tom Tromey <tom@tromey.com>
2101
2102 * tui/tui.h (tui_set_layout_by_name): Don't declare.
2103 * tui/tui-regs.c (tui_reg_layout): New function.
2104 (tui_show_registers, tui_reg_command): Use it.
2105 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
2106 (tui_layout_command): Rename from tui_set_layout_by_name. Change
2107 parameters.
2108 (tui_layout_command): Remove.
2109
2110 2019-07-17 Tom Tromey <tom@tromey.com>
2111
2112 * tui/tui-layout.h (tui/tui-layout): Return void.
2113 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
2114
2115 2019-07-17 Tom Tromey <tom@tromey.com>
2116
2117 * tui/tui-layout.c (show_source_disasm_command, show_data):
2118 Update.
2119 (reset_locator): Remove.
2120 (show_source_or_disasm_and_command): Update.
2121
2122 2019-07-17 Tom Tromey <tom@tromey.com>
2123
2124 * tui/tui-source.c (tui_source_window_base::reset): Remove
2125 win_type parameter.
2126 * tui/tui-layout.c (make_command_window, make_source_window)
2127 (make_disasm_window, make_data_window)
2128 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
2129 (reset_locator, show_source_or_disasm_and_command): Update.
2130 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
2131 win_type parameter.
2132 (struct tui_source_window_base) <reset>: Likewise.
2133
2134 2019-07-17 Tom Tromey <tom@tromey.com>
2135
2136 * tui/tui-layout.c (show_source_disasm_command): Use
2137 reset_locator.
2138 (reset_locator): New function.
2139 (init_and_make_win): Remove.
2140 (show_source_or_disasm_and_command): Use reset_locator.
2141
2142 2019-07-17 Tom Tromey <tom@tromey.com>
2143
2144 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
2145 condition.
2146 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
2147 Remove condition.
2148 * tui/tui-source.c (tui_source_window_base::reset): New method.
2149 * tui/tui-layout.c (make_command_window): Don't call
2150 init_and_make_win.
2151 (make_source_window, make_disasm_window): Don't call
2152 make_source_or_disasm_window.
2153 (make_data_window): Don't call init_and_make_win. Change calling
2154 convention.
2155 (show_source_disasm_command, show_data): Simplify.
2156 (make_source_or_disasm_window): Remove.
2157 (show_source_or_disasm_and_command): Simplify.
2158 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
2159 (struct tui_source_window_base) <reset>: Likewise.
2160 <execution_info>: Remove initializer.
2161 * tui/tui-data.c (tui_source_window_base): Initialize
2162 execution_info.
2163
2164 2019-07-17 Tom Tromey <tom@tromey.com>
2165
2166 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
2167 variable.
2168
2169 2019-07-17 Tom Tromey <tom@tromey.com>
2170
2171 * tui/tui.c (tui_rl_other_window): Update.
2172 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
2173 superclass method first. Always iterate over regs_content.
2174 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
2175 method.
2176 * tui/tui-win.c (tui_set_focus_command): Update.
2177
2178 2019-07-17 Tom Tromey <tom@tromey.com>
2179
2180 * tui/tui-win.c (tui_set_focus_command): Rename from
2181 tui_set_focus. Call tui_enable.
2182 (tui_set_focus_command): Remove.
2183
2184 2019-07-17 Tom Tromey <tom@tromey.com>
2185
2186 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
2187 refresh_window.
2188 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
2189 touchwin.
2190 (tui_data_window::refresh_window): Call refresh_window on data
2191 items. Always call superclass refresh_window.
2192 (tui_win_info::refresh): Remove.
2193 (tui_source_window_base::refresh_window): Update.
2194 (tui_refresh_all): Update.
2195 * tui/tui-layout.c (show_source_disasm_command): Remove call to
2196 refresh_window.
2197 (show_source_or_disasm_and_command): Likewise.
2198 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
2199 (struct tui_source_window_base) <refresh>: Likewise.
2200
2201 2019-07-17 Tom Tromey <tom@tromey.com>
2202
2203 * tui/tui-winsource.c (tui_clear_source_content)
2204 (tui_show_source_content): Update.
2205 * tui/tui-source.c (tui_source_window::showing_source_p): Check
2206 whether content is empty.
2207 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
2208 Remove.
2209
2210 2019-07-17 Tom Tromey <tom@tromey.com>
2211
2212 * tui/tui-winsource.c (tui_erase_source_content): Clear the
2213 window's contents.
2214 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
2215 * tui/tui-source.c (tui_set_source_content_nil): Remove.
2216
2217 2019-07-17 Tom Tromey <tom@tromey.com>
2218
2219 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
2220 (struct tui_data_item_window): Update.
2221
2222 2019-07-17 Tom Tromey <tom@tromey.com>
2223
2224 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
2225 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
2226 defines.
2227
2228 2019-07-17 Tom Tromey <tom@tromey.com>
2229
2230 * tui/tui-winsource.h (tui_erase_source_content)
2231 (tui_clear_source_content): Remove "display_prompt" parameter.
2232 * tui/tui-winsource.c (tui_update_source_window_as_is)
2233 (tui_update_source_windows_with_addr): Update.
2234 (tui_clear_source_content): Remove "display_prompt" parameter.
2235 (tui_erase_source_content): Likewise. Simplify.
2236 (tui_show_source_content): Update.
2237 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2238 * tui/tui-stack.c (tui_show_frame_info): Update.
2239 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
2240 Remove defines.
2241
2242 2019-07-17 Tom Tromey <tom@tromey.com>
2243
2244 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2245 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
2246 parameter.
2247 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
2248 parameter.
2249
2250 2019-07-17 Tom Tromey <tom@tromey.com>
2251
2252 * tui/tui-winsource.c (tui_clear_source_content)
2253 (tui_show_source_content, tui_show_exec_info_content)
2254 (tui_clear_exec_info_content): Update.
2255 * tui/tui-stack.c (tui_show_locator_content): Update.
2256 (tui_show_frame_info): Update.
2257 * tui/tui-source.h (tui_source_window): Don't declare.
2258 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
2259 from tui_source_is_displayed.
2260 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
2261 Remove field.
2262 (struct tui_source_window_base) <content_in_use>: New field. Now
2263 bool.
2264 (struct tui_source_window) <showing_source_p>: New method.
2265 (TUI_SRC_WIN): Change cast.
2266 * tui/tui-data.c (tui_initialize_static_data): Update.
2267
2268 2019-07-17 Tom Tromey <tom@tromey.com>
2269
2270 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
2271 location_matches_p.
2272 * tui/tui-source.c (tui_source_window::location_matches_p): New
2273 method.
2274 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
2275 method.
2276 * tui/tui-data.h (struct tui_source_window_base)
2277 <location_matches_p>: New method.
2278 (struct tui_source_window, struct tui_disasm_window)
2279 <location_matches_p>: Likewise.
2280
2281 2019-07-17 Tom Tromey <tom@tromey.com>
2282
2283 * tui/tui-win.c (tui_set_win_height_command): Rename from
2284 tui_set_win_height.
2285 (tui_set_win_height_command): Remove.
2286
2287 2019-07-17 Tom Tromey <tom@tromey.com>
2288
2289 * tui/tui-source.c (tui_source_window): New constructor. Add
2290 observer.
2291 (~tui_source_window): New destructor.
2292 (tui_source_window::style_changed): New method.
2293 * tui/tui-hooks.c (tui_redisplay_source): Remove.
2294 (tui_attach_detach_observers): Update.
2295 * tui/tui-data.h (struct tui_source_window): Make constructor not
2296 inline. Add destructor.
2297 (struct tui_source_window) <style_changed>: New method.
2298 <m_observable>: New member.
2299
2300 2019-07-17 Tom Tromey <tom@tromey.com>
2301
2302 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
2303 * tui/tui-win.c (tui_resize_all): Fix typo.
2304
2305 2019-07-17 Tom Tromey <tom@tromey.com>
2306
2307 * tui/tui-wingeneral.h (tui_refresh_all): Update.
2308 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
2309 (tui_refresh_all): Remove "list" parameter. Use foreach.
2310 * tui/tui-win.c (window_name_completer): Use foreach.
2311 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
2312 (update_tab_width): Likewise.
2313 * tui/tui-layout.c (show_layout): Update.
2314 * tui/tui-data.h (class tui_window_iterator): New.
2315 (struct all_tui_windows): New.
2316 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
2317
2318 2019-07-17 Tom Tromey <tom@tromey.com>
2319
2320 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
2321 parameter. Don't reference globals.
2322 (tui_reg_command): Update.
2323
2324 2019-07-17 Tom Tromey <tom@tromey.com>
2325
2326 * tui/tui-regs.c (tui_show_registers): Simplify.
2327
2328 2019-07-17 Tom Tromey <tom@tromey.com>
2329
2330 * tui/tui-regs.c (tui_show_registers): Update.
2331 (tui_show_register_group): Add win_info parameter.
2332
2333 2019-07-17 Tom Tromey <tom@tromey.com>
2334
2335 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
2336 Rename from tui_display_reg_element_at_line.
2337 (tui_data_window::display_registers_from_line): Update.
2338 * tui/tui-data.h (struct tui_data_window)
2339 <display_reg_element_at_line>: New method.
2340
2341 2019-07-17 Tom Tromey <tom@tromey.com>
2342
2343 * tui/tui-regs.h (tui_display_registers_from)
2344 (tui_display_registers_from_line): Don't declare.
2345 * tui/tui-windata.c (tui_data_window::display_all_data)
2346 (tui_data_window::refresh_all)
2347 (tui_data_window::do_scroll_vertical): Update.
2348 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
2349 from tui_display_registers_from.
2350 (tui_display_reg_element_at_line): Update.
2351 (tui_data_window::display_registers_from_line): Rename from
2352 tui_display_registers_from_line.
2353 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
2354 display_registers_from_line>: New methods.
2355
2356 2019-07-17 Tom Tromey <tom@tromey.com>
2357
2358 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
2359 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
2360 from tui_erase_data_content.
2361 (tui_data_window::display_all_data)
2362 (tui_data_window::refresh_all)
2363 (tui_data_window::do_scroll_vertical): Update.
2364 * tui/tui-regs.c (tui_show_registers): Update.
2365 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
2366 New method.
2367
2368 2019-07-17 Tom Tromey <tom@tromey.com>
2369
2370 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
2371 declare.
2372 * tui/tui-windata.c
2373 (tui_data_window::delete_data_content_windows): Rename from
2374 tui_delete_data_content_windows.
2375 (tui_data_window::display_all_data)
2376 (tui_data_window::do_scroll_vertical): Update.
2377 * tui/tui-data.h (struct tui_data_window)
2378 <delete_data_content_windows>: New method.
2379
2380 2019-07-17 Tom Tromey <tom@tromey.com>
2381
2382 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
2383 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
2384
2385 2019-07-17 Tom Tromey <tom@tromey.com>
2386
2387 * tui/tui-windata.h (tui_display_all_data): Don't declare.
2388 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
2389 from tui_display_all_data.
2390 * tui/tui-win.c
2391 (tui_data_window::do_make_visible_with_new_height): Update.
2392 * tui/tui-regs.c (tui_show_registers): Update.
2393 * tui/tui-layout.c (tui_set_layout): Update.
2394 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
2395 method.
2396
2397 2019-07-17 Tom Tromey <tom@tromey.com>
2398
2399 * tui/tui-windata.h (tui_display_data_from): Don't declare.
2400 * tui/tui-windata.c (tui_display_data_from): Remove.
2401 (tui_data_window::refresh_all): Update.
2402
2403 2019-07-17 Tom Tromey <tom@tromey.com>
2404
2405 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
2406 * tui/tui-windata.c (tui_display_data_from_line): Remove.
2407 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
2408 tui_display_registers_from_line.
2409 * tui/tui-regs.h (tui_display_registers_from_line): Update.
2410 * tui/tui-regs.c (tui_display_registers_from_line): Remove
2411 "force_display" parameter.
2412
2413 2019-07-17 Tom Tromey <tom@tromey.com>
2414
2415 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
2416 declare.
2417 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
2418 Rename from tui_first_reg_element_no_inline.
2419 (tui_display_reg_element_at_line)
2420 (tui_display_registers_from_line): Update.
2421 * tui/tui-data.h (struct tui_data_window)
2422 <first_reg_element_no_inline>: New method.
2423
2424 2019-07-17 Tom Tromey <tom@tromey.com>
2425
2426 * tui/tui-windata.c (tui_display_data_from)
2427 (tui_data_window::do_scroll_vertical): Update.
2428 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
2429 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
2430 Rename from tui_line_from_reg_element_no.
2431 (tui_display_registers_from_line): Update.
2432 * tui/tui-data.h (struct tui_data_window)
2433 <line_from_reg_element_no>: New method.
2434
2435 2019-07-17 Tom Tromey <tom@tromey.com>
2436
2437 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
2438 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
2439 tui_last_regs_line_no.
2440 (tui_display_reg_element_at_line)
2441 (tui_display_registers_from_line): Update.
2442 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
2443 method.
2444
2445 2019-07-17 Tom Tromey <tom@tromey.com>
2446
2447 PR tui/24722:
2448 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
2449 (tui_update_breakpoint_info): Add "being_deleted" parameter.
2450 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2451 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
2452 (tui_update_breakpoint_info): Likewise.
2453 * tui/tui-hooks.c (tui_event_create_breakpoint)
2454 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
2455 Update.
2456
2457 2019-07-17 Tom Tromey <tom@tromey.com>
2458
2459 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
2460
2461 2019-07-17 Tom Tromey <tom@tromey.com>
2462
2463 * tui/tui-winsource.c (tui_update_source_window_as_is)
2464 (tui_update_source_windows_with_addr): Update.
2465 * tui/tui-source.h (tui_set_source_content)
2466 (tui_show_symtab_source): Add "win_info" parameter.
2467 * tui/tui-source.c (tui_set_source_content): Add "win_info"
2468 parameter.
2469 (tui_show_symtab_source): Likewise.
2470
2471 2019-07-17 Tom Tromey <tom@tromey.com>
2472
2473 * tui/tui-wingeneral.c
2474 (tui_check_and_display_highlight_if_needed): Check can_highlight.
2475
2476 2019-07-17 Tom Tromey <tom@tromey.com>
2477
2478 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
2479 (struct tui_cmd_window) <can_scroll>: New method.
2480 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
2481 method.
2482
2483 2019-07-17 Tom Tromey <tromey@adacore.com>
2484
2485 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
2486 do_field_signed>: Rename. Change type of "value".
2487 * ui-out.c (ui_out::field_signed): Rename from field_int.
2488 Change type of "value".
2489 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
2490 type of "value".
2491 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
2492 do_field_int. Change type of "value".
2493 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
2494 do_field_int. Change type of "value".
2495 * tracepoint.c (trace_status_mi, tfind_1)
2496 (print_one_static_tracepoint_marker): Update.
2497 * thread.c (print_thread_info_1, print_selected_thread_frame):
2498 Update.
2499 * stack.c (print_frame, print_frame_info): Update.
2500 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
2501 Update.
2502 * source.c (print_source_lines_base): Update.
2503 * skip.c (info_skip_command): Update.
2504 * record-btrace.c (btrace_ui_out_decode_error)
2505 (btrace_call_history_src_line): Update.
2506 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
2507 Update.
2508 * progspace.c (print_program_space): Update.
2509 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
2510 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
2511 do_field_int. Change type of "value".
2512 * mi/mi-out.c (mi_ui_out::do_table_begin)
2513 (mi_ui_out::do_table_header): Update.
2514 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
2515 type of "value".
2516 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
2517 (mi_cmd_data_list_changed_registers, output_register)
2518 (mi_cmd_data_read_memory, mi_load_progress)
2519 (mi_cmd_trace_frame_collected): Update.
2520 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
2521 Update.
2522 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
2523 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
2524 (mi_cmd_var_list_children, varobj_update_one): Update.
2525 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
2526 (mi_cmd_stack_list_args, list_arg_or_local): Update.
2527 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
2528 * inferior.c (print_inferior): Update.
2529 * gdb_bfd.c (print_one_bfd): Update.
2530 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2531 Update.
2532 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
2533 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
2534 do_field_int. Change type of "value".
2535 * cli-out.c (cli_ui_out::do_field_signed): Rename from
2536 do_field_int. Change type of "value".
2537 * breakpoint.c (watchpoint_check, print_breakpoint_location)
2538 (print_one_breakpoint_location, print_it_catch_fork)
2539 (print_one_catch_fork, print_it_catch_vfork)
2540 (print_one_catch_vfork, print_it_catch_solib)
2541 (print_it_catch_exec, print_it_ranged_breakpoint)
2542 (print_mention_watchpoint, print_mention_masked_watchpoint)
2543 (bkpt_print_it, update_static_tracepoint): Update.
2544 * break-catch-throw.c (print_it_exception_catchpoint): Update.
2545 * break-catch-syscall.c (print_it_catch_syscall): Update.
2546 * ada-tasks.c (print_ada_task_info): Update.
2547 * ada-lang.c (print_it_exception, print_mention_exception):
2548 Update.
2549
2550 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2551
2552 PR breakpoints/24541
2553 * gdbarch.c: Regenerate.
2554 * gdbarch.h: Regenerate.
2555 * gdbarch.sh: Adjust return type and parameter types for
2556 'stap_adjust_register'.
2557 (i386_stap_adjust_register): Adjust signature and return new
2558 register name.
2559 * stap-probe.c (stap_parse_register_operand): Adjust use of
2560 'gdbarch_stap_adjust_register'.
2561
2562 2019-07-17 Tom Tromey <tromey@adacore.com>
2563
2564 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
2565 declare VEC.
2566 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
2567 std::vector.
2568 (struct s390_process_info): Add initializers.
2569 (s390_add_process): Use new.
2570 (s390_linux_nat_target::low_forget_process): Use delete.
2571 (s390_linux_nat_target::low_new_fork)
2572 (s390_linux_nat_target::stopped_by_watchpoint)
2573 (s390_linux_nat_target::low_prepare_to_resume)
2574 (s390_linux_nat_target::insert_watchpoint)
2575 (s390_linux_nat_target::insert_hw_breakpoint)
2576 (s390_linux_nat_target::remove_watchpoint)
2577 (s390_linux_nat_target::remove_hw_breakpoint): Update.
2578
2579 2019-07-16 John Baldwin <jhb@FreeBSD.org>
2580
2581 * aarch64-fbsd-nat.c: Include regcache.h.
2582 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
2583 argument.
2584 (aarch64_fbsd_nat_target::fetch_registers)
2585 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
2586 variable.
2587 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
2588
2589 2019-07-16 John Baldwin <jhb@FreeBSD.org>
2590
2591 * fbsd-nat.c: Include gdbarch.h.
2592
2593 2019-07-15 Tom Tromey <tromey@adacore.com>
2594
2595 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
2596
2597 2019-07-15 Tom Tromey <tromey@adacore.com>
2598
2599 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
2600 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
2601 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
2602 * cli-out.c (cli_ui_out::do_field_int): New method.
2603 * ui-out.c (ui_out::field_unsigned): New method.
2604 * symfile.c (generic_load): Use field_unsigned.
2605 (print_transfer_performance): Likewise.
2606 * record-btrace.c (ui_out_field_uint): Remove.
2607 (btrace_call_history_insn_range, btrace_call_history): Use
2608 field_unsigned.
2609 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
2610 field_unsigned.
2611 * ui-out.h (class ui_out) <field_unsigned>: New method.
2612 <do_field_unsigned>: Likewise.
2613
2614 2019-07-15 Tom Tromey <tromey@adacore.com>
2615
2616 * mi/mi-main.c (list_available_thread_groups): Use field_string.
2617 * mi/mi-interp.c (mi_memory_changed): Use field_string.
2618 * target.c (flash_erase_command): Use field_string.
2619 * infrun.c (print_signal_received_reason): Use field_string.
2620 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
2621 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
2622 field_string.
2623 * ada-tasks.c (print_ada_task_info): Use field_string.
2624
2625 2019-07-15 Tom Tromey <tromey@adacore.com>
2626
2627 * target.c (flash_erase_command): Use field_core_addr.
2628 * symfile.c (generic_load): Use field_core_addr.
2629 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2630 Use field_core_addr.
2631 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
2632 field_core_addr.
2633
2634 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2635
2636 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
2637 value if its desired type is smaller than a CORE_ADDR and signed.
2638
2639 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2640
2641 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
2642 of changes to field names, and use new is_reference field to
2643 decide if a property is a reference or not.
2644 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
2645 field.
2646 (struct dwarf2_property_baton): Update header comment, rename
2647 'referenced_type' to 'property_type' and update comments.
2648 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
2649 default property type, store in property baton, update to take
2650 accound of renamed field.
2651 (read_func_scope): Update call to attr_to_dynamic_prop.
2652 (read_array_type): Likewise.
2653 (dwarf2_per_cu_addr_sized_int_type): New function.
2654 (read_subrange_index_type): Move type finding code to
2655 dwarf2_per_cu_addr_sized_int_type.
2656 (read_subrange_type): Update calls to attr_to_dynamic_prop.
2657 (dwarf2_per_cu_addr_type): New function.
2658 (set_die_type): Update calls to attr_to_dynamic_prop.
2659
2660 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2661
2662 * dwarf2read.c (read_subrange_index_type): New function.
2663 (read_subrange_type): Move code into new function and call it.
2664 * gdbtypes.c (create_range_type): Add some asserts.
2665
2666 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2667
2668 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
2669 update return statements.
2670 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
2671 declaration, and update comment to match.
2672 * gdbtypes.c (resolve_dynamic_array): Update call to
2673 dwarf2_evaluate_property to match new return type.
2674
2675 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2676
2677 * valarith.c (value_subscripted_rvalue): Change lowerbound
2678 parameter type from int to LONGEST.
2679 * value.h (value_subscripted_rvalue): Likewise in declaration.
2680
2681 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
2682
2683 * cli/cli-utils.c (info_print_command_completer): New function.
2684 * cli/cli-utils.h: Add 'completer.h' include, and forward
2685 declaration for 'struct cmd_list_element'.
2686 (info_print_command_completer): Declare.
2687 * stack.c (_initialize_stack): Add completer for 'info locals' and
2688 'info args'.
2689 * symtab.c (_initialize_symtab): Add completer for 'info
2690 variables' and 'info functions'.
2691 * NEWS: Mention completion for additional info commands.
2692
2693 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
2694
2695 * cli/cli-utils.c (extract_info_print_args): Delete.
2696 (extract_arg_maybe_quoted): Delete.
2697 (info_print_options_defs): New variable.
2698 (make_info_print_options_def_group): New function.
2699 (extract_info_print_options): Define new function.
2700 * cli/cli-utils.h (extract_info_print_args): Delete.
2701 (struct info_print_options): New structure.
2702 (extract_info_print_options): Declare new function.
2703 * stack.c (info_locals_command): Update to use new
2704 extract_info_print_options, also add a header comment.
2705 (info_args_command): Likewise.
2706 * symtab.c (info_variables_command): Likewise.
2707 (info_functions_command): Likewise.
2708
2709 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
2710
2711 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
2712 to extract string arguments.
2713 * common/common-utils.c (extract_string_maybe_quoted): New function.
2714 * common/common-utils.h (extract_string_maybe_quoted): Declare.
2715
2716 2019-07-11 Tom Tromey <tromey@adacore.com>
2717
2718 * main.c (get_init_files): Use GDBINIT, not gdbinit.
2719 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
2720 * top.h (gdbinit): Don't declare.
2721 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
2722 into...
2723 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
2724 * top.c (gdb_init): Don't call init_cli_cmds.
2725 (gdbinit): Remove.
2726 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
2727
2728 2019-07-11 Tom Tromey <tromey@adacore.com>
2729
2730 * python/py-inferior.c (add_thread_object): Don't use thread_obj
2731 after it has been moved.
2732
2733 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2734
2735 * valops.c (value_must_coerce_to_target): Change return type to
2736 bool.
2737 * value.h (value_must_coerce_to_target): Likewise.
2738
2739 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
2740
2741 * breakpoint.c (is_hardware_watchpoint): Remove
2742 forward-declaration.
2743 (is_masked_watchpoint): Change return type to bool.
2744 (is_tracepoint): Likewise.
2745 (is_breakpoint): Likewise.
2746 (is_hardware_watchpoint): Likewise.
2747 (is_watchpoint): Likewise.
2748 (is_no_memory_software_watchpoint): Likewise.
2749 (is_catchpoint): Likewise.
2750 (breakpoint_1): Make FILTER parameter's return type bool.
2751 is_masked_watchpoint): Change return type to bool.
2752 (save_breakpoints): Make FILTER parameter's return type bool.
2753 * breakpoint.h (is_breakpoint): Change return type to bool.
2754 (is_watchpoint): Likewise.
2755 (is_catchpoint): Likewise.
2756 (is_tracepoint): Likewise.
2757
2758 2019-07-10 Tom Tromey <tom@tromey.com>
2759
2760 * defs.h: Don't include gdbarch.h.
2761 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
2762 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
2763 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
2764 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
2765 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
2766 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
2767 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
2768 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
2769 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
2770 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
2771 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
2772 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
2773 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
2774 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
2775 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
2776 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
2777 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
2778 record-btrace.c, record.h, regcache-dump.c, regcache.h,
2779 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
2780 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
2781 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
2782 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
2783 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
2784 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
2785 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
2786 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
2787 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
2788
2789 2019-07-10 Tom Tromey <tromey@adacore.com>
2790
2791 * ada-lang.h (is_ada_exception_catchpoint): Declare.
2792 * breakpoint.c (init_ada_exception_breakpoint): Register as
2793 bp_catchpoint.
2794 (print_one_breakpoint_location, print_one_breakpoint): Use
2795 is_ada_exception_catchpoint.
2796 * ada-lang.c (class ada_catchpoint_location): Pass
2797 bp_loc_software_breakpoint to bp_location constructor.
2798 (is_ada_exception_catchpoint): New function.
2799
2800 2019-07-10 Tom Tromey <tromey@adacore.com>
2801
2802 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
2803 VEC.
2804 (struct arm_exidx_entry): New method operator<.
2805 (struct arm_exidx_data) <section_maps>: Change type.
2806 (arm_exidx_data_free): Remove.
2807 (arm_exidx_data_key): Change type. Move lower.
2808 (arm_exidx_new_objfile): Update.
2809 (arm_compare_exidx_entries): Remove.
2810 (arm_find_exidx_entry, _initialize_arm_tdep)
2811
2812 2019-07-10 Tom Tromey <tromey@adacore.com>
2813
2814 * solib-spu.c (ocl_program_data_key): Change type.
2815 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
2816 Update.
2817
2818 2019-07-10 Tom Tromey <tromey@adacore.com>
2819
2820 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
2821 (struct solib_aix_inferior_data) <library_list>: Change type.
2822 (solib_aix_inferior_data_handle): Change type.
2823 (get_solib_aix_inferior_data): Update.
2824 (solib_aix_free_library_list): Remove.
2825 (library_list_start_library): Update.
2826 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
2827 return type.
2828 (solib_aix_get_library_list)
2829 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
2830 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
2831
2832 2019-07-10 Tom Tromey <tromey@adacore.com>
2833
2834 * solib-dsbt.c (struct dsbt_info): Add initializers.
2835 (solib_dsbt_pspace_data): Change type.
2836 (dsbt_pspace_data_cleanup): Remove.
2837 (get_dsbt_info, _initialize_dsbt_solib): Update.
2838
2839 2019-07-10 Tom Tromey <tromey@adacore.com>
2840
2841 * spu-tdep.c (spu_overlay_data): Change type.
2842 (spu_get_overlay_table, spu_overlay_new_objfile)
2843 (_initialize_spu_tdep): Update.
2844
2845 2019-07-10 Tom Tromey <tromey@adacore.com>
2846
2847 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
2848 destructor.
2849 (dbx_objfile_data_key): Change type and declare later.
2850 (DBX_SYMFILE_INFO): Rewrite.
2851 * dbxread.c (dbx_objfile_data_key): Change type.
2852 (dbx_symfile_init): Update.
2853 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
2854 (coffstab_build_psymtabs, elfstab_build_psymtabs)
2855 (stabsect_build_psymtabs, _initialize_dbxread): Update.
2856
2857 2019-07-10 Tom Tromey <tromey@adacore.com>
2858
2859 * jit.c (jit_program_space_key): Change type. Move lower.
2860 (get_jit_program_space_data): Update.
2861 (jit_program_space_data_cleanup): Remove.
2862 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
2863 Update.
2864 (struct jit_program_space_data): Add initializers.
2865
2866 2019-07-10 Tom Tromey <tromey@adacore.com>
2867
2868 * solib-darwin.c (struct darwin_info): Add initializers.
2869 (solib_darwin_pspace_data): Change type.
2870 (darwin_pspace_data_cleanup): Remove.
2871 (get_darwin_info, _initialize_darwin_solib): Update.
2872
2873 2019-07-10 Tom Tromey <tromey@adacore.com>
2874
2875 * remote-sim.c (struct sim_inferior_data): Add initializers,
2876 constructor, and destructor.
2877 (sim_inferior_data_key): Change type. Move lower.
2878 (check_for_duplicate_sim_descriptor): Update.
2879 (get_sim_inferior_data): Use new. Update.
2880 (~sim_inferior_data_cleanup): Rename from
2881 sim_inferior_data_cleanup. Simplify.
2882 (gdbsim_close_inferior, simulator_command)
2883 (sim_command_completer, _initialize_remote_sim): Update.
2884 (next_pid, INITIAL_PID): Move earlier.
2885
2886 2019-07-10 Tom Tromey <tromey@adacore.com>
2887
2888 * python/python-internal.h (create_thread_object): Return
2889 gdbpy_ref.
2890 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
2891 * python/py-inferior.c (struct threadlist_entry): Add
2892 constructor.
2893 <thread_obj>: Now a gdbpy_ref.
2894 (thread_to_thread_object): Update.
2895 (add_thread_object): Use new.
2896 (delete_thread_object): Use delete.
2897 (infpy_threads): Update.
2898 (py_free_inferior): Update. Construct "inf_obj" after acquiring
2899 GIL.
2900
2901 2019-07-10 Tom Tromey <tromey@adacore.com>
2902
2903 * valops.c (value_cast): Specialize error message for Ada.
2904
2905 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2906
2907 * breakpoint.c (breakpoint_1): Update doc and parameter names.
2908
2909 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2910
2911 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
2912 bpstat_should_step): Return bool, adjust comments.
2913 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
2914 bpstat_should_step): Likewise.
2915
2916 2019-07-10 Alan Hayward <alan.hayward@arm.com>
2917
2918 * features/Makefile: Use feature target descriptions for Arm.
2919 * features/arm/arm-core.c: Generate new file.
2920 * features/arm/arm-fpa.c: Likewise.
2921 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
2922 * features/arm/arm-m-profile.c: Likewise.
2923 * features/arm/arm-vfpv2.c: Likewise.
2924 * features/arm/arm-vfpv3.c: Likewise.
2925 * features/arm/xscale-iwmmxt.c: Likewise.
2926 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
2927
2928 2019-07-10 Alan Hayward <alan.hayward@arm.com>
2929
2930 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
2931 ptrace earlier.
2932
2933 2019-07-10 Alan Hayward <alan.hayward@arm.com>
2934
2935 * features/aarch64-pauth.c: Regenerate.
2936
2937 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
2938
2939 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
2940 bool.
2941 (bpstat_what): Use false instead of 0.
2942
2943 2019-07-09 Pedro Alves <palves@redhat.com>
2944
2945 * break-catch-throw.c (is_exception_catchpoint): New.
2946 * breakpoint.c (print_one_breakpoint_location): New parameter
2947 'raw_loc'. Handle it. Use
2948 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
2949 looking at the breakpoint's type.
2950 (print_one_breakpoint): If handling "maint info breakpoints", also
2951 print locations of exception catchpoints.
2952 * breakpoint.h (is_exception_catchpoint): Declare.
2953
2954 2019-07-09 Pedro Alves <palves@redhat.com>
2955
2956 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
2957 "addr" field.
2958 (allocate_location_exception_catchpoint): New.
2959 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
2960 (initialize_throw_catchpoint_ops): Install
2961 allocate_location_exception_catchpoint as allocate_location
2962 method.
2963 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
2964 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
2965 bp_loc_other.
2966 (breakpoint_address_is_meaningful): Delete.
2967 (bl_address_is_meaningful): New.
2968 (breakpoint_locations_match): Adjust comment.
2969 (bp_location_from_bp_type): New, factored out of...
2970 (bp_location::bp_location(breakpoint *)): ... this.
2971 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
2972 factored out of...
2973 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
2974 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
2975 breakpoint_address_is_meaningful.
2976 (bp_locations_compare): Adjust comment.
2977 (update_global_location_list): Use bl_address_is_meaningful
2978 instead of breakpoint_address_is_meaningful.
2979 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
2980 explicit.
2981 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
2982 * python/py-breakpoint.c (bppy_get_location): No longer check
2983 whether location is null.
2984
2985 2019-07-09 Pedro Alves <palves@redhat.com>
2986
2987 PR c++/15468
2988 * breakpoint.c (print_one_breakpoint_location): Remove
2989 single-location assert.
2990
2991 2019-07-09 Tom Tromey <tom@tromey.com>
2992
2993 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
2994 * configure: Rebuild.
2995 * configure.ac: Change common to gdbsupport.
2996 * gdbsupport: Rename from common.
2997 * acinclude.m4: Change common to gdbsupport.
2998 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
2999 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
3000 gdbsupport.
3001 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
3002 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
3003 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
3004 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
3005 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
3006 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
3007 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
3008 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
3009 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
3010 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
3011 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
3012 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
3013 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
3014 coff-pe-read.c, command.h, compile/compile-c-support.c,
3015 compile/compile-c.h, compile/compile-cplus-symbols.c,
3016 compile/compile-cplus-types.c, compile/compile-cplus.h,
3017 compile/compile-loc2c.c, compile/compile.c, completer.c,
3018 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
3019 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
3020 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
3021 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
3022 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
3023 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
3024 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
3025 features/aarch64-core.c, features/aarch64-fpu.c,
3026 features/aarch64-pauth.c, features/aarch64-sve.c,
3027 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
3028 features/i386/32bit-core.c, features/i386/32bit-linux.c,
3029 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
3030 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
3031 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
3032 features/i386/64bit-core.c, features/i386/64bit-linux.c,
3033 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
3034 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
3035 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
3036 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
3037 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
3038 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
3039 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
3040 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
3041 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
3042 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
3043 go32-nat.c, guile/guile.c, guile/scm-ports.c,
3044 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
3045 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
3046 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
3047 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
3048 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
3049 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
3050 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
3051 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
3052 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
3053 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
3054 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
3055 minsyms.c, mips-linux-tdep.c, namespace.h,
3056 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
3057 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
3058 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
3059 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
3060 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
3061 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
3062 nat/linux-waitpid.c, nat/mips-linux-watch.c,
3063 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
3064 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
3065 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
3066 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
3067 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
3068 procfs.c, producer.c, progspace.h, psymtab.h,
3069 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
3070 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
3071 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
3072 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
3073 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
3074 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
3075 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
3076 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
3077 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
3078 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
3079 target-memory.c, target.c, target.h, target/waitstatus.c,
3080 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
3081 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
3082 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
3083 unittests/array-view-selftests.c,
3084 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
3085 unittests/common-utils-selftests.c,
3086 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
3087 unittests/format_pieces-selftests.c,
3088 unittests/function-view-selftests.c,
3089 unittests/lookup_name_info-selftests.c,
3090 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
3091 unittests/mkdir-recursive-selftests.c,
3092 unittests/observable-selftests.c,
3093 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
3094 unittests/parse-connection-spec-selftests.c,
3095 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
3096 unittests/scoped_fd-selftests.c,
3097 unittests/scoped_mmap-selftests.c,
3098 unittests/scoped_restore-selftests.c,
3099 unittests/string_view-selftests.c, unittests/style-selftests.c,
3100 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
3101 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
3102 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
3103 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
3104 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
3105 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
3106
3107 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3108
3109 * linespec.c (decode_digits_list_mode): Set explicit_line to a
3110 bool value.
3111 (decode_digits_ordinary): Set explicit_line field in sal.
3112 * symtab.c (skip_prologue_sal): Don't skip prologue for a
3113 symtab_and_line that was set on an explicit line number in
3114 assembler code. Do always update the recorded symtab and line if
3115 we do skip the prologue.
3116
3117 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3118
3119 * breakpoint.c (set_breakpoint_location_function): Remove
3120 explicit_loc parameter.
3121 (momentary_breakpoint_from_master): Update call to
3122 set_breakpoint_location_function.
3123 (add_location_to_breakpoint): Likewise.
3124
3125 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3126
3127 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
3128 required features based on default bfd type when no specific bfd
3129 is present.
3130
3131 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3132
3133 * NEWS: Mention that GDB printf and eval commands can now print
3134 C-style and Ada-style convenience var strings without
3135 calling the inferior.
3136 * printcmd.c (printf_c_string): Locally print GDB internal var
3137 instead of transiting via the inferior.
3138 (printf_wide_c_string): Likewise.
3139
3140 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3141
3142 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
3143
3144 2019-07-04 Tom Tromey <tom@tromey.com>
3145
3146 PR tui/24724:
3147 * tui/tui-winsource.c (tui_clear_source_content): Update.
3148 (tui_source_window_base::set_is_exec_point_at): Fix comment.
3149 (tui_update_breakpoint_info): Update.
3150 (tui_set_exec_info_content): Update.
3151 * tui/tui-source.c (tui_set_source_content_nil): Update.
3152 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
3153 has_break.
3154 * tui/tui-data.h (enum tui_bp_flag): New.
3155 (tui_bp_flags): New enum flags type.
3156 (struct tui_source_element) <break_mode>: Change type. Rename
3157 from has_break.
3158 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
3159 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
3160 constants.
3161 * tui/tui-winsource.h: Fix comment.
3162
3163 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3164
3165 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
3166 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
3167 (store_fpregs_to_thread)
3168 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
3169 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
3170 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
3171 (IWMMXT_REGS_SIZE): Add define.
3172 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
3173 (fetch_vfp_regs, store_vfp_regs)
3174 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
3175 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
3176
3177 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3178
3179 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
3180 defines.
3181 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
3182 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
3183 (ARM_INT_REGISTER_SIZE): ...to this.
3184 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
3185 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
3186 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
3187 (arm_linux_collect_gregset, supply_nwfpe_register)
3188 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
3189 defines.
3190 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
3191 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
3192 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
3193 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
3194 (arm_return_in_memory, arm_store_return_value)
3195 (arm_get_longjmp_target, arm_register_g_packet_guesses)
3196 (arm_record_ld_st_multiple): Likewise.
3197 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
3198 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
3199
3200 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3201
3202 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
3203 AARCH64_DISPLACED_MODIFIED_INSNS.
3204 * aarch64-tdep.c (struct aarch64_displaced_step_data)
3205 (aarch64_displaced_step_copy_insn): Likewise.
3206 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
3207 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
3208 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
3209 ARM_DISPLACED_MODIFIED_INSNS.
3210 * arm-tdep.c (arm_gdbarch_init): Likewise.
3211 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
3212 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
3213 (struct arm_displaced_step_closure): Use
3214 ARM_DISPLACED_MODIFIED_INSNS.
3215
3216 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3217
3218 * features/Makefile: Remove unused xml files.
3219 * features/aarch64.xml: Remove.
3220 * features/i386/amd64-avx-avx512-linux.xml: Remove.
3221 * features/i386/amd64-avx-avx512.xml: Remove.
3222 * features/i386/amd64-avx-linux.xml: Remove.
3223 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
3224 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
3225 * features/i386/amd64-avx-mpx-linux.xml: Remove.
3226 * features/i386/amd64-avx-mpx.xml: Remove.
3227 * features/i386/amd64-avx.xml: Remove.
3228 * features/i386/amd64-linux.xml: Remove.
3229 * features/i386/amd64-mpx-linux.xml: Remove.
3230 * features/i386/amd64-mpx.xml: Remove.
3231 * features/i386/amd64.xml: Remove.
3232 * features/i386/i386-avx-avx512-linux.xml: Remove.
3233 * features/i386/i386-avx-avx512.xml: Remove.
3234 * features/i386/i386-avx-linux.xml: Remove.
3235 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
3236 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
3237 * features/i386/i386-avx-mpx-linux.xml: Remove.
3238 * features/i386/i386-avx-mpx.xml: Remove.
3239 * features/i386/i386-avx.xml: Remove.
3240 * features/i386/i386-linux.xml: Remove.
3241 * features/i386/i386-mmx-linux.xml: Remove.
3242 * features/i386/i386-mmx.xml: Remove.
3243 * features/i386/i386-mpx-linux.xml: Remove.
3244 * features/i386/i386-mpx.xml: Remove.
3245 * features/i386/i386.xml: Remove.
3246 * features/i386/x32-avx-avx512-linux.xml: Remove.
3247 * features/i386/x32-avx-linux.xml: Remove.
3248 * features/i386/x32-linux.xml: Remove.
3249
3250 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3251
3252 * regformats/aarch64.dat: Remove.
3253 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
3254 * regformats/i386/amd64-avx-linux.dat: Remove.
3255 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
3256 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
3257 * regformats/i386/amd64-linux.dat: Remove.
3258 * regformats/i386/amd64-mpx-linux.dat: Remove.
3259 * regformats/i386/amd64.dat: Remove.
3260 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
3261 * regformats/i386/i386-avx-linux.dat: Remove.
3262 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
3263 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
3264 * regformats/i386/i386-linux.dat: Remove.
3265 * regformats/i386/i386-mmx-linux.dat: Remove.
3266 * regformats/i386/i386-mpx-linux.dat: Remove.
3267 * regformats/i386/i386.dat: Remove.
3268 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
3269 * regformats/i386/x32-avx-linux.dat: Remove.
3270 * regformats/i386/x32-linux.dat: Remove.
3271
3272 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3273
3274 * aarch64-tdep.c: Remove xml self tests.
3275 * amd64-linux-tdep.c: Likewise.
3276 * amd64-tdep.c: Likewise.
3277 * i386-linux-tdep.c: Likewise.
3278 * i386-tdep.c: Likewise.
3279
3280 2019-07-03 Pedro Alves <palves@redhat.com>
3281
3282 PR cli/24732
3283 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
3284 (pipe_cmd_option_defs): New.
3285 (make_pipe_cmd_options_def_group): New.
3286 (pipe_command): Use gdb::option::process_options.
3287 (pipe_command_completer): New function.
3288 (_initialize_cli_cmds): Install completer for "pipe" command.
3289
3290 2019-07-03 Pedro Alves <palves@redhat.com>
3291
3292 * cli/cli-option.c (union option_value) <string>: New field.
3293 (struct option_def_and_value): Add ctor, move ctor, dtor and
3294 use DISABLE_COPY_AND_ASSIGN.
3295 (option_def_and_value::clear_value): New.
3296 (parse_option, save_option_value_in_ctx, get_val_type_str)
3297 (add_setshow_cmds_for_options): Handle var_string.
3298 * cli-option.h (union option_def::var_address) <string>: New
3299 field.
3300 (struct string_option_def): New.
3301 * maint-test-options.c (struct test_options_opts): Add default
3302 ctor and use DISABLE_COPY_AND_ASSIGN.
3303 <string_opt>: New field.
3304 (test_options_opts::~test_options_opts): New.
3305 (test_options_opts::dump): Also dump "-string".
3306 (test_options_option_defs): Install "string.
3307
3308 2019-07-03 Pedro Alves <palves@redhat.com>
3309
3310 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
3311 option_value with a null enumeration.
3312 (complete_options): Save the option values in the context.
3313 (save_option_value_in_ctx): New, factored out from ...
3314 (process_options): ... here.
3315 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
3316 of the function.
3317 * maint-test-options.c (test_options_opts::dump): New, factored
3318 out from ...
3319 (maintenance_test_options_command_mode): ... here.
3320 (maintenance_test_options_command_completion_result): Delete.
3321 (maintenance_test_options_command_completion_text): Update
3322 comment.
3323 (maintenance_show_test_options_completion_result): Change
3324 prototype. Just print
3325 maintenance_test_options_command_completion_text.
3326 (save_completion_result): New.
3327 (maintenance_test_options_completer_mode): Pass options context to
3328 complete_options, and then save a dump.
3329 (_initialize_maint_test_options): Use add_cmd to install "maint
3330 show test-options-completion-result".
3331
3332 2019-07-03 Pedro Alves <palves@redhat.com>
3333
3334 * NEWS (New commands): Mention "with" and "maint with".
3335 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
3336 (with_command, with_command_completer): New.
3337 (pipe_command): Adjust to new repeat_previous
3338 interface.
3339 (_initialize_cli_cmds): Install the "with" command and its "w"
3340 alias.
3341 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
3342 declarations.
3343 * cli/cli-setshow.c (parse_cli_var_uinteger)
3344 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
3345 argument strings for all var_types.
3346 (get_setshow_command_value_string): New, factored out from ...
3347 (do_show_command): ... this.
3348 * cli/cli-setshow.h: Include <string>.
3349 (get_setshow_command_value_string): Declare.
3350 * command.h (repeat_previous): Now returns const char *. Adjust
3351 comment.
3352 * maint.c: Include "cli/cli-cmds.h".
3353 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
3354 (_initialize_maint_cmds): Register the "maintenance with" command.
3355 * top.c (repeat_previous): Move bits from pipe_command here:
3356 Return the saved command line, if any; error out if there's no
3357 command to relaunch.
3358
3359 2019-07-03 Pedro Alves <palves@redhat.com>
3360
3361 * NEWS (New commands): Mention "maint set/show test-settings"
3362 instead of "maint test-settings".
3363 * maint-test-settings.c (maintenance_test_settings_list): Delete.
3364 (maintenance_test_settings_set_list): Rename to ...
3365 (maintenance_set_test_settings_list): ... this.
3366 (maintenance_test_settings_show_list): Rename to ...
3367 (maintenance_show_test_settings_list): ... this.
3368 (maintenance_test_settings_cmd): Delete.
3369 (maintenance_test_settings_set_cmd): ...
3370 (maintenance_set_test_settings_cmd): ... this.
3371 (maintenance_test_settings_show_cmd): ...
3372 (maintenance_show_test_settings_cmd): ... this.
3373 (maintenance_test_settings_show_value_cmd):
3374 (maintenance_show_test_settings_value_cmd): ... this.
3375 (_initialize_maint_test_settings): No longer install the "maint
3376 test-settings" prefix command. Rename "maint test-settings set"
3377 to "maint set test-settings", and "maint test-settings show" to
3378 "maint show test-settings". Adjust all subcommands.
3379
3380 2019-07-03 Pedro Alves <palves@redhat.com>
3381
3382 * maint-test-settings.c: Fix file's intro comment. Replace all
3383 references to "test-options" with references to "test-settings",
3384 in comments.
3385
3386 2019-07-03 Pedro Alves <palves@redhat.com>
3387
3388 * maint-test-settings.c (maintenance_test_settings_xxx)
3389 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
3390 New.
3391 (maintenance_test_settings_enums): Use them.
3392 (maintenance_test_settings_enum): Default to
3393 maintenance_test_settings_xxx.
3394 (_initialize_maint_test_settings): Initialize
3395 MAINTENANCE_TEST_SETTINGS_FILENAME.
3396
3397 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3398
3399 * breakpoint.h (remove_breakpoints_inf): Change return type to
3400 void, move function documentation here.
3401 * breakpoint.c (remove_breakpoints_inf): Change return type to
3402 void, move function documentation to header.
3403
3404 2019-07-02 Pedro Alves <palves@redhat.com>
3405
3406 * NEWS (Completion improvements): Mention "info threads".
3407 * thread.c (struct info_threads_opts, info_threads_option_defs)
3408 (make_info_threads_options_def_group): New.
3409 (info_threads_command): Use gdb::option::process_options.
3410 (info_threads_command_completer): New.
3411 (_initialize_thread): Use gdb::option::build_help to build the
3412 help text for "info threads".
3413
3414 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3415
3416 * defs.h (generic_load): Move from here...
3417 * symfile.h (generic_load): ... to here. Rename name parameter
3418 to args.
3419 * symfile.c (generic_load): Add comment.
3420
3421 2019-07-01 Tom Tromey <tromey@adacore.com>
3422
3423 * dwarf2read.c
3424 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
3425 declaration of without_params. Fix formatting.
3426
3427 2019-07-01 Tom Tromey <tromey@adacore.com>
3428
3429 * ada-exp.y (find_primitive_type): Update.
3430 * ada-lang.h (ada_lookup_symbol): Update.
3431 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
3432 parameter.
3433 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
3434
3435 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
3436
3437 PR breakpoints/24541
3438 * gdbarch.c: Regenerate.
3439 * gdbarch.h: Regenerate.
3440 * gdbarch.sh: Add 'stap_adjust_register'.
3441 * i386-tdep.c: Include '<unordered_set>'.
3442 (i386_stap_adjust_register): New function.
3443 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
3444 * stap-probe.c (stap_parse_register_operand): Call
3445 'gdbarch_stap_adjust_register'.
3446
3447 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
3448
3449 PR python/24742
3450 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
3451 * python/python.c (do_start_initialization): Use 'xmalloc'
3452 instead of 'PyMem_Malloc'.
3453
3454 2019-06-28 Tom Tromey <tromey@adacore.com>
3455
3456 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
3457 for Ada.
3458
3459 2019-06-27 Tom Tromey <tromey@adacore.com>
3460
3461 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
3462 objfile_key.
3463 (arm_find_mapping_symbol, arm_record_special_symbol)
3464 (_initialize_arm_tdep): Update.
3465 (arm_objfile_data_free): Remove.
3466
3467 2019-06-27 Tom Tromey <tromey@adacore.com>
3468
3469 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
3470 to cp_print_static_field.
3471
3472 2019-06-26 Tom Tromey <tromey@adacore.com>
3473
3474 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
3475 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
3476 declare.
3477
3478 2019-06-26 Alan Hayward <alan.hayward@arm.com>
3479
3480 * features/aarch64-core.c (create_feature_aarch64_core):
3481 Regenerate.
3482 * features/aarch64-core.xml: Add cpsr flags.
3483
3484 2019-06-26 Alan Hayward <alan.hayward@arm.com>
3485
3486 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
3487 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
3488
3489 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
3490
3491 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
3492 field.
3493 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
3494 use.
3495 (arm_record_special_symbol): Don't insert new symbol in sorted
3496 position, push it at the end.
3497
3498 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
3499
3500 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
3501 (arm_mapping_symbol_s): Remove.
3502 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
3503 (arm_mapping_symbol_vec): New typedef.
3504 (struct arm_per_objfile): Add constructor.
3505 <section_maps>: Change type to
3506 std::unique_ptr<arm_mapping_symbol_vec[]>.
3507 (arm_compare_mapping_symbols): Remove.
3508 (arm_find_mapping_symbol): Adjust to section_maps type change.
3509 (arm_objfile_data_free): Call delete on arm_per_objfile.
3510 (arm_record_special_symbol): Adjust to section_maps type change.
3511 Allocate arm_per_objfile with new.
3512
3513 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3514
3515 * cli/cli-cmds.c (alias_command): Compare the alias prefix
3516 with the command prefix.
3517
3518 2019-06-25 Tom Tromey <tom@tromey.com>
3519
3520 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
3521 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
3522
3523 2019-06-25 Tom Tromey <tom@tromey.com>
3524
3525 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
3526 type.
3527 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
3528 protected.
3529
3530 2019-06-25 Tom Tromey <tom@tromey.com>
3531
3532 * tui/tui-winsource.c
3533 (tui_source_window_base::set_is_exec_point_at): Add check against
3534 LOA_ADDRESS.
3535
3536 2019-06-25 Tom Tromey <tom@tromey.com>
3537
3538 * tui/tui-source.c (tui_set_source_content): Don't check before
3539 xfree.
3540 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
3541
3542 2019-06-25 Tom Tromey <tom@tromey.com>
3543
3544 * tui/tui-winsource.h (tui_update_source_window_as_is)
3545 (tui_alloc_source_buffer, tui_line_is_displayed)
3546 (tui_addr_is_displayed): Change type of win_info.
3547 * tui/tui-winsource.c (tui_update_source_window_as_is)
3548 (tui_clear_source_content, tui_show_source_line)
3549 (tui_show_source_content, tui_source_window_base::refill)
3550 (tui_source_window_base::set_is_exec_point_at)
3551 (tui_source_window_base::set_is_exec_point_at)
3552 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
3553 (tui_alloc_source_buffer, tui_line_is_displayed)
3554 (tui_addr_is_displayed): Change type of win_info. Update.
3555 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3556 (tui_source_window_base::do_make_visible_with_new_height):
3557 Update.
3558 * tui/tui-source.c (tui_set_source_content)
3559 (tui_set_source_content_nil)
3560 (tui_source_window::do_scroll_vertical): Update.
3561 * tui/tui-layout.c (show_layout): Update.
3562 * tui/tui-disasm.c (tui_set_disassem_content)
3563 (tui_disasm_window::do_scroll_vertical): Update.
3564 * tui/tui-data.h (tui_win_content): Remove.
3565 (struct tui_gen_win_info) <content, content_size>: Remove.
3566 (struct tui_source_element): Add initializers and destructor.
3567 (union tui_which_element, struct tui_win_element): Remove.
3568 (struct tui_source_window_base) <content>: New field.
3569 (struct tui_data_window): Remove destructor.
3570 (tui_alloc_content, tui_free_win_content)
3571 (tui_free_all_source_wins_content): Don't declare.
3572 * tui/tui-data.c (tui_initialize_static_data): Update.
3573 (init_content_element, tui_alloc_content): Remove.
3574 (~tui_gen_win_info): Update.
3575 (~tui_data_window, tui_free_all_source_wins_content)
3576 (tui_free_win_content, free_content, free_content_elements):
3577 Remove.
3578
3579 2019-06-25 Tom Tromey <tom@tromey.com>
3580
3581 * tui/tui-winsource.h (tui_clear_source_content)
3582 (tui_erase_source_content, tui_show_source_content): Change type
3583 of win_info.
3584 * tui/tui-winsource.c (tui_clear_source_content)
3585 (tui_erase_source_content, tui_show_source_content): Change type
3586 of win_info.
3587 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3588 * tui/tui-source.h (tui_set_source_content_nil): Change type of
3589 win_info.
3590 * tui/tui-source.c (tui_set_source_content_nil): Change type of
3591 win_info.
3592 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
3593
3594 2019-06-25 Tom Tromey <tom@tromey.com>
3595
3596 * tui/tui-winsource.c (tui_clear_source_content)
3597 (tui_source_window_base::set_is_exec_point_at): Update.
3598 * tui/tui-source.c (tui_set_source_content_nil): Update.
3599 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
3600 a bool.
3601 * tui/tui-data.c (init_content_element): Update.
3602
3603 2019-06-25 Tom Tromey <tom@tromey.com>
3604
3605 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
3606 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
3607 * tui/tui-layout.c (init_and_make_win): Update.
3608 * tui/tui.h (enum tui_win_type): Update.
3609 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
3610 tui_win_is_auxillary.
3611 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
3612 tui_win_is_auxillary.
3613
3614 2019-06-25 Tom Tromey <tom@tromey.com>
3615
3616 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
3617 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
3618 (tui_delete_data_content_windows, tui_display_all_data)
3619 (tui_data_window::do_scroll_vertical, tui_display_data_from):
3620 Update.
3621 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
3622 * tui/tui-regs.c (tui_last_regs_line_no)
3623 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
3624 (tui_show_registers): Update.
3625 (tui_show_register_group): Return void. Update.
3626 (tui_display_registers_from, tui_display_reg_element_at_line)
3627 (tui_display_registers_from_line, tui_check_register_values):
3628 Update.
3629 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
3630 member.
3631 (struct tui_data_window) <regs_content>: Now a std::vector.
3632 <regs_content_count>: Remove.
3633 (tui_add_content_elements, tui_free_data_content): Don't declare.
3634 * tui/tui-data.c (tui_data_window::clear_detail): Update.
3635 (init_content_element): Remove DATA_WIN case. Add assert.
3636 (tui_add_content_elements): Remove.
3637 (tui_data_window): Update.
3638 (tui_free_data_content): Remove.
3639 (free_content_elements): Remove DATA_WIN case.
3640
3641 2019-06-25 Tom Tromey <tom@tromey.com>
3642
3643 * tui/tui-data.c (tui_data_item_window): Update.
3644 * tui/tui-windata.h (tui_check_data_values): Don't declare.
3645 * tui/tui-windata.c (tui_display_all_data)
3646 (tui_display_data_from_line): Update.
3647 (tui_check_data_values): Remove.
3648 * tui/tui-regs.c (tui_show_register_group)
3649 (tui_display_reg_element_at_line): Update.
3650 * tui/tui-hooks.c (tui_register_changed)
3651 (tui_refresh_frame_and_register_information): Call
3652 tui_check_register_values.
3653 * tui/tui-data.h (struct tui_data_window) <data_content,
3654 data_content_count, data_type>: Remove.
3655 (enum tui_data_type): Remove.
3656
3657 * tui/tui-data.c (tui_data_window::clear_detail)
3658 (~tui_data_window): Update.
3659
3660 2019-06-25 Tom Tromey <tom@tromey.com>
3661
3662 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
3663 declare.
3664 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
3665 Rename from tui_first_data_item_displayed. Update.
3666 (tui_data_window::refresh_all)
3667 (tui_data_window::do_scroll_vertical): Update.
3668 * tui/tui-data.h (struct tui_data_window)
3669 <first_data_item_displayed>: Declare new method.
3670
3671 2019-06-25 Tom Tromey <tom@tromey.com>
3672
3673 * tui/tui-data.h (tui_init_generic_part): Don't declare.
3674 * tui/tui-data.c (tui_init_generic_part): Remove, moving
3675 contents...
3676 (tui_initialize_static_data): ...here.
3677
3678 2019-06-25 Tom Tromey <tom@tromey.com>
3679
3680 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
3681 (tui_display_registers_from, tui_check_register_values): Update.
3682 (tui_display_register): Remove win_info parameter; update.
3683 (tui_get_register): Change type of parameters.
3684 * tui/tui-data.h (struct tui_data_element): Remove.
3685 (union tui_which_element) <data>: Remove.
3686 <data_window>: Change type.
3687 (struct tui_data_item_window): New.
3688 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
3689 case. Add assert.
3690 (~tui_data_item_window): New destructor.
3691 (free_content_elements): Remove DATA_ITEM_WIN case.
3692
3693 2019-06-25 Tom Tromey <tom@tromey.com>
3694
3695 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
3696 Remove.
3697
3698 2019-06-25 Tom Tromey <tom@tromey.com>
3699
3700 * tui/tui-data.h (struct tui_command_element): Remove.
3701 (union tui_which_element) <command>: Remove.
3702 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
3703 assert.
3704 (free_content_elements): Remove CMD_WIN case.
3705
3706 2019-06-25 Tom Tromey <tom@tromey.com>
3707
3708 * tui/tui-layout.c (tui_set_layout): Update.
3709 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
3710 * tui/tui-data.c (layout_def): Update.
3711
3712 2019-06-25 Tom Tromey <tom@tromey.com>
3713
3714 * tui/tui-wingeneral.c (tui_refresh_all): Update.
3715 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3716 (tui_source_window_base::set_new_height): Update.
3717 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
3718 Update.
3719 (tui_set_locator_fullname, tui_set_locator_info)
3720 (tui_show_frame_info): Update.
3721 * tui/tui-source.c (tui_set_source_content)
3722 (tui_source_is_displayed): Update.
3723 * tui/tui-layout.c (show_source_disasm_command, show_data)
3724 (show_source_or_disasm_and_command): Update.
3725 * tui/tui-disasm.c (tui_set_disassem_content)
3726 (tui_get_begin_asm_address): Update.
3727 * tui/tui-data.h (struct tui_locator_element): Remove.
3728 (union tui_which_element) <locator>: Remove.
3729 (struct tui_locator_window): New.
3730 (tui_locator_win_info_ptr): Change return type.
3731 * tui/tui-data.c (_locator): Change type.
3732 (tui_locator_win_info_ptr): Change return type.
3733 (init_content_element): Remove LOCATOR_WIN case. Add assert.
3734 (tui_alloc_content): Add assert.
3735
3736 2019-06-25 Tom Tromey <tom@tromey.com>
3737
3738 * tui/tui-winsource.c
3739 (tui_exec_info_window::maybe_allocate_content): New method.
3740 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
3741 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
3742 (make_source_or_disasm_window): Add cast.
3743 * tui/tui-data.h (union tui_which_element) <simple_string>:
3744 Remove.
3745 (struct tui_source_info): New.
3746 (struct tui_source_window_base) <execution_info>: Change type.
3747 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
3748 case, and add assert.
3749 (tui_alloc_content): Add assert.
3750
3751 2019-06-25 Tom Tromey <tom@tromey.com>
3752
3753 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
3754 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
3755 * tui/tui-data.c (tui_alloc_win_info): Remove.
3756
3757 2019-06-25 Tom Tromey <tom@tromey.com>
3758
3759 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
3760 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
3761 can_highlight.
3762
3763 2019-06-25 Tom Tromey <tom@tromey.com>
3764
3765 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
3766 make_visible_with_new_height method.
3767 (tui_win_info::make_visible_with_new_height): New method.
3768 (tui_source_window_base::do_make_visible_with_new_height)
3769 (tui_data_window::do_make_visible_with_new_height)
3770 (tui_cmd_window::do_make_visible_with_new_height): New methods.
3771 (make_visible_with_new_height): Remove.
3772 (tui_resize_all, tui_adjust_win_heights): Use
3773 make_visible_with_new_height method.
3774 * tui/tui-data.h (struct tui_win_info)
3775 <do_make_visible_with_new_height, make_visible_with_new_height>:
3776 New methods.
3777 (struct tui_source_window_base, struct tui_data_window)
3778 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
3779 methods.
3780
3781 2019-06-25 Tom Tromey <tom@tromey.com>
3782
3783 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
3784 method.
3785 (update_tab_width): Call update_tab_width method.
3786 * tui/tui-data.h (struct tui_win_info)
3787 (struct tui_source_window_base) <update_tab_width>: New methods.
3788
3789 2019-06-25 Tom Tromey <tom@tromey.com>
3790
3791 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
3792 parameter.
3793 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
3794 parameter.
3795 (tui_gen_win_info::make_visible): Update.
3796 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
3797 parameter.
3798 * tui/tui-data.h (enum tui_box): New enum.
3799 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
3800
3801 2019-06-25 Tom Tromey <tom@tromey.com>
3802
3803 * tui/tui-layout.c (make_source_or_disasm_window): Always use
3804 init_and_make_win for EXEC_INFO_WIN.
3805 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
3806 longer inline.
3807 (struct tui_win_info) <~tui_win_info>: Inline.
3808 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
3809 Don't declare.
3810 * tui/tui-data.c (source_win, disasm_win): Remove globals.
3811 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
3812 Remove.
3813 (tui_initialize_static_data): Update.
3814 (~tui_gen_win_info): Handle more cleanup here.
3815 (~tui_source_window_base): Delete "execution_info".
3816 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
3817
3818 2019-06-25 Tom Tromey <tom@tromey.com>
3819
3820 * tui/tui-layout.c (make_command_window): Don't set
3821 can_highlight.
3822 (show_source_disasm_command): Call the reset method.
3823 (show_data): Don't set can_highlight. Call the reset method.
3824 (tui_gen_win_info::reset): Rename from init_gen_win_info
3825 (init_and_make_win): Simplify. Return tui_gen_win_info.
3826 (show_source_or_disasm_and_command): Call the reset method.
3827 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
3828 (struct tui_cmd_window): Set can_highlight.
3829
3830 2019-06-25 Tom Tromey <tom@tromey.com>
3831
3832 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
3833 from make_visible.
3834 (tui_make_visible, tui_make_invisible): Rewrite.
3835 (tui_win_info::make_visible): Remove.
3836 (tui_source_window_base::make_visible): Update.
3837 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
3838 method. Moved from...
3839 (struct tui_win_info) <make_visible>: ...here.
3840
3841 2019-06-25 Tom Tromey <tom@tromey.com>
3842
3843 * tui/tui-winsource.c
3844 (tui_source_window_base::do_scroll_horizontal): Remove direction
3845 parameter.
3846 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
3847 direction parameter.
3848 * tui/tui-win.c (tui_win_info::forward_scroll)
3849 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
3850 (tui_win_info::right_scroll): Update.
3851 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
3852 direction parameter.
3853 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
3854 direction parameter.
3855 * tui/tui-data.h (enum tui_scroll_direction): Remove.
3856 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
3857 Remove direction parameter.
3858 (struct tui_source_window_base, struct tui_source_window)
3859 (struct tui_disasm_window, struct tui_data_window)
3860 (struct tui_cmd_window): Update.
3861
3862 2019-06-25 Tom Tromey <tom@tromey.com>
3863
3864 * tui/tui-winsource.h (tui_set_exec_info_content)
3865 (tui_show_exec_info_content, tui_erase_exec_info_content)
3866 (tui_clear_exec_info_content, tui_update_exec_info): Change
3867 argument to tui_source_window_base.
3868 * tui/tui-winsource.c (tui_set_exec_info_content)
3869 (tui_show_exec_info_content, tui_erase_exec_info_content)
3870 (tui_clear_exec_info_content, tui_update_exec_info): Change
3871 argument to tui_source_window_base.
3872
3873 2019-06-25 Tom Tromey <tom@tromey.com>
3874
3875 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
3876 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
3877
3878 2019-06-25 Tom Tromey <tom@tromey.com>
3879
3880 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
3881 check.
3882
3883 2019-06-25 Tom Tromey <tom@tromey.com>
3884
3885 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
3886 type to void.
3887 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
3888 type to void.
3889 * tui/tui-source.c (tui_set_source_content): Update.
3890 * tui/tui-disasm.c (tui_set_disassem_content): Update.
3891
3892 2019-06-25 Tom Tromey <tom@tromey.com>
3893
3894 * tui/tui-win.c (window_name_completer, tui_set_focus)
3895 (tui_all_windows_info): Use name method.
3896 * tui/tui-data.h (struct tui_gen_win_info)
3897 (struct tui_source_window, struct tui_disasm_window)
3898 (struct tui_data_window, struct tui_cmd_window) <name>: New
3899 method.
3900 (tui_win_name): Don't declare.
3901 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
3902 (tui_win_name): Remove.
3903
3904 2019-06-25 Tom Tromey <tom@tromey.com>
3905
3906 * tui/tui-winsource.h (tui_update_source_window)
3907 (tui_update_source_window_as_is): Change parameter type.
3908 * tui/tui-winsource.c (tui_update_source_window): Change win_info
3909 to be a tui_source_window_base.
3910 (tui_update_source_window_as_is): Likewise.
3911 * tui/tui-win.c (make_visible_with_new_height): Update.
3912
3913 2019-06-25 Tom Tromey <tom@tromey.com>
3914
3915 * tui/tui-winsource.c (tui_erase_source_content)
3916 (tui_show_source_content, tui_show_exec_info_content)
3917 (tui_erase_exec_info_content): Use refresh_window method.
3918 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
3919 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
3920 from tui_refresh_win.
3921 (tui_data_window::refresh_window): New method.
3922 (tui_win_info::refresh, tui_source_window_base::refresh)
3923 (tui_refresh_all): Use refresh_window method.
3924 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
3925 method.
3926 * tui/tui-regs.c (tui_display_register): Call refresh_window
3927 method.
3928 * tui/tui-layout.c (show_source_disasm_command)
3929 (show_source_or_disasm_and_command): Call refresh_window method.
3930 * tui/tui-data.h (struct tui_gen_win_info)
3931 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
3932 New method.
3933
3934 2019-06-25 Tom Tromey <tom@tromey.com>
3935
3936 * tui/tui.c (tui_rl_other_window, tui_enable)
3937 (tui_is_window_visible, tui_get_command_dimension): Update.
3938 * tui/tui-winsource.c (tui_update_source_window_as_is)
3939 (tui_clear_source_content, tui_erase_source_content)
3940 (tui_show_source_line, tui_source_window_base::refill)
3941 (tui_source_window_base::do_scroll_horizontal)
3942 (tui_source_window_base::set_is_exec_point_at)
3943 (tui_update_breakpoint_info, tui_set_exec_info_content)
3944 (tui_alloc_source_buffer, tui_line_is_displayed)
3945 (tui_addr_is_displayed): Update.
3946 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
3947 (tui_check_and_display_highlight_if_needed)
3948 (tui_win_info::make_visible, tui_win_info::refresh)
3949 (tui_refresh_all): Update.
3950 * tui/tui-windata.c (tui_first_data_item_displayed)
3951 (tui_delete_data_content_windows, tui_erase_data_content)
3952 (tui_display_all_data, tui_data_window::refresh_all)
3953 (tui_check_data_values): Update.
3954 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
3955 (tui_set_win_focus_to, tui_win_info::forward_scroll)
3956 (tui_win_info::backward_scroll, tui_refresh_all_win)
3957 (tui_resize_all, tui_set_focus, tui_all_windows_info)
3958 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
3959 (tui_source_window_base::set_new_height)
3960 (tui_data_window::set_new_height)
3961 (make_invisible_and_set_new_height)
3962 (make_visible_with_new_height, new_height_ok)
3963 (parse_scrolling_args): Update.
3964 * tui/tui-stack.c (tui_show_frame_info): Update.
3965 * tui/tui-source.c (tui_set_source_content)
3966 (tui_set_source_content_nil, tui_source_is_displayed)
3967 (tui_source_window::do_scroll_vertical): Update.
3968 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
3969 (tui_display_registers_from, tui_display_reg_element_at_line)
3970 (tui_check_register_values, tui_reg_command): Update.
3971 * tui/tui-layout.c (tui_default_win_height)
3972 (show_source_disasm_command, show_data, init_and_make_win)
3973 (show_source_or_disasm_and_command): Update.
3974 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
3975 (tui_redisplay_readline, tui_mld_flush)
3976 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
3977 (tui_getc): Update.
3978 * tui/tui-disasm.c (tui_set_disassem_content)
3979 (tui_disasm_window::do_scroll_vertical): Update.
3980 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
3981 Now virtual.
3982 (struct tui_win_info): Derive from tui_gen_win_info.
3983 <~tui_win_info>: Mark as override.
3984 <generic>: Remove member.
3985 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
3986 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
3987 (~tui_data_window, ~tui_win_info)
3988 (tui_free_all_source_wins_content): Update.
3989 * tui/tui-command.c (tui_refresh_cmd_win): Update.
3990
3991 2019-06-25 Tom Tromey <tom@tromey.com>
3992
3993 * tui/tui-layout.c (init_and_make_win): Use new.
3994 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
3995 destructor, initializers.
3996 (tui_alloc_generic_win_info): Don't declare.
3997 * tui/tui-data.c (_locator): Add argument to constructor.
3998 (source_win, disasm_win): New globals.
3999 (exec_info): Remove.
4000 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
4001 Update.
4002 (tui_alloc_generic_win_info): Remove.
4003 (init_content_element): Use new.
4004 (tui_win_info::tui_win_info): Update.
4005 (free_content_elements) <case DATA_WIN>: Use delete.
4006
4007 2019-06-25 Tom Tromey <tom@tromey.com>
4008
4009 * tui/tui-wingeneral.c (tui_refresh_win): Update.
4010 * tui/tui-windata.c (tui_first_data_item_displayed)
4011 (tui_delete_data_content_windows): Update.
4012 * tui/tui-win.c (tui_data_window::set_new_height): Update.
4013 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4014 (tui_display_registers_from, tui_check_register_values): Update.
4015 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
4016 pointer.
4017 * tui/tui-data.c (init_content_element): Update. Allocate the new
4018 window.
4019 (tui_free_data_content): Update.
4020 (free_content_elements) <case DATA_WIN>: Free the window.
4021
4022 2019-06-25 Tom Tromey <tom@tromey.com>
4023
4024 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
4025 Update.
4026 * tui/tui-layout.c (make_command_window)
4027 (show_source_disasm_command, show_data, init_and_make_win)
4028 (show_source_or_disasm_and_command): Update.
4029 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
4030 method.
4031 <can_highight, is_highlighted>: Now bool.
4032 (tui_set_win_highlight): Don't declare.
4033 * tui/tui-data.c (tui_set_win_highlight): Remove.
4034
4035 2019-06-25 Tom Tromey <tom@tromey.com>
4036
4037 * tui/tui-wingeneral.c (make_visible): Remove check of window
4038 type.
4039
4040 2019-06-25 Tom Tromey <tom@tromey.com>
4041
4042 * tui/tui-win.c (tui_win_info::max_height)
4043 (tui_cmd_window::max_height): New methods.
4044 (new_height_ok): Call max_height.
4045 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
4046 <max_height>: New method.
4047
4048 2019-06-25 Tom Tromey <tom@tromey.com>
4049
4050 * tui/tui-win.c (tui_source_window_base::set_new_height)
4051 (tui_data_window::set_new_height): New methods.
4052 (make_invisible_and_set_new_height): Call set_new_height method.
4053 * tui/tui-data.h (struct tui_win_info)
4054 (struct tui_source_window_base, struct tui_data_window)
4055 <set_new_height>: New method.
4056
4057 2019-06-25 Tom Tromey <tom@tromey.com>
4058
4059 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
4060 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
4061 tui_refresh_data_win.
4062 * tui/tui-win.c (tui_source_window_base::refresh_all): New
4063 method.
4064 (tui_refresh_all_win): Call the refresh_all method.
4065 (tui_set_focus): Likewise.
4066 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
4067 (struct tui_source_window_base, struct tui_data_window) <refresh>:
4068 Likewise.
4069
4070 2019-06-25 Tom Tromey <tom@tromey.com>
4071
4072 * tui/tui-winsource.h (tui_refill_source_window)
4073 (tui_set_is_exec_point_at): Don't declare.
4074 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4075 (tui_source_window_base::refill): Rename from
4076 tui_refill_source_window.
4077 (tui_source_window_base::do_scroll_horizontal): Update.
4078 (tui_source_window_base::set_is_exec_point_at): Rename from
4079 tui_set_is_exec_point_at.
4080 (tui_update_all_breakpoint_info): Update.
4081 * tui/tui-stack.c (tui_show_frame_info): Update.
4082 * tui/tui-layout.c (show_data): Add cast.
4083 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
4084 * tui/tui-data.h (struct tui_source_window_base) <refill,
4085 set_is_exec_point_at>: New methods.
4086 (tui_source_windows, tui_add_to_source_windows): Update types.
4087 (tui_add_to_source_windows): Remove redundant declaration.
4088 * tui/tui-data.c (source_windows): Store tui_source_window_base.
4089 (tui_source_windows): Change return type.
4090 (tui_clear_source_windows_detail): Update.
4091 (tui_add_to_source_windows): Change type of parameter.
4092 (tui_free_all_source_wins_content): Update.
4093
4094 2019-06-25 Tom Tromey <tom@tromey.com>
4095
4096 * tui/tui-wingeneral.c (tui_win_info::refresh)
4097 (tui_source_window_base::refresh): New methods.
4098 (tui_refresh_all): Call the refresh method.
4099 * tui/tui-data.h (struct tui_win_info)
4100 (struct tui_source_window_base) <refresh>: New method.
4101
4102 2019-06-25 Tom Tromey <tom@tromey.com>
4103
4104 * tui/tui.h (tui_is_window_visible): Return bool.
4105 * tui/tui.c (tui_is_window_visible): Return bool.
4106 * tui/tui-wingeneral.c (tui_make_window, make_visible)
4107 (tui_make_visible, tui_make_invisible)
4108 (tui_win_info::make_visible)
4109 (tui_source_window_base::make_visible, make_all_visible)
4110 (tui_make_all_visible, tui_make_all_invisible): Update.
4111 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
4112 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
4113 bool.
4114 (struct tui_win_info, struct tui_source_window_base)
4115 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
4116 * tui/tui-data.c (tui_init_generic_part): Update.
4117
4118 2019-06-25 Tom Tromey <tom@tromey.com>
4119
4120 * tui/tui-wingeneral.c (tui_win_info::make_visible)
4121 (tui_source_window_base::make_visible): New methods.
4122 (make_all_visible): Make method call.
4123 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
4124 (struct tui_source_window_base, struct tui_cmd_window): Override
4125 make_visible.
4126 (tui_win_is_source_type): Don't declare.
4127 * tui/tui-data.c (tui_win_is_source_type): Remove.
4128
4129 2019-06-25 Tom Tromey <tom@tromey.com>
4130
4131 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
4132 NULL check.
4133
4134 2019-06-25 Tom Tromey <tom@tromey.com>
4135
4136 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
4137 Inline constructor. Add initializers for members.
4138 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
4139 constructors; now inline in class.
4140
4141 2019-06-25 Tom Tromey <tom@tromey.com>
4142
4143 * tui/tui-regs.c (tui_show_registers): Update.
4144 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
4145 bool.
4146 * tui/tui-data.c (tui_data_window::clear_detail)
4147 (tui_data_window): Update.
4148
4149 2019-06-25 Tom Tromey <tom@tromey.com>
4150
4151 * tui/tui-windata.c (tui_display_all_data)
4152 (tui_display_data_from_line, tui_display_data_from)
4153 (tui_check_data_values, tui_data_window::do_scroll_vertical):
4154 Update.
4155 * tui/tui-regs.c (tui_last_regs_line_no)
4156 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
4157 (tui_show_registers, tui_show_register_group)
4158 (tui_display_registers_from, tui_display_reg_element_at_line)
4159 (tui_display_registers_from_line, tui_check_register_values)
4160 (tui_reg_next, tui_reg_prev): Update.
4161 * tui/tui-layout.c (tui_set_layout, show_data): Update.
4162 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
4163 tui_data_window.
4164 (struct tui_win_info) <detail>: Remove. Add new fields from
4165 tui_data_info.
4166 (TUI_DATA_WIN): Add cast.
4167 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
4168 (~tui_data_window): Simplify.
4169
4170 2019-06-25 Tom Tromey <tom@tromey.com>
4171
4172 * tui/tui-layout.c (show_source_disasm_command)
4173 (show_source_or_disasm_and_command): Update.
4174 * tui/tui-io.c (update_cmdwin_start_line)
4175 (tui_redisplay_readline): Update.
4176 * tui/tui-data.h (struct tui_command_info): Remove.
4177 (struct tui_win_info) <detail>: Remove command_info member.
4178 (struct tui_data_window) <start_line>: New member, from
4179 tui_command_info.
4180 (TUI_CMD_WIN): Add casts.
4181
4182 2019-06-25 Tom Tromey <tom@tromey.com>
4183
4184 * tui/tui-winsource.c (tui_update_source_window)
4185 (tui_refill_source_window)
4186 (tui_source_window_base::do_scroll_horizontal)
4187 (tui_update_breakpoint_info, tui_set_exec_info_content)
4188 (tui_show_exec_info_content, tui_erase_exec_info_content)
4189 (tui_clear_exec_info_content): Update.
4190 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
4191 Update.
4192 * tui/tui-win.c (make_invisible_and_set_new_height)
4193 (make_visible_with_new_height): Update.
4194 * tui/tui-source.c (tui_set_source_content)
4195 (tui_show_symtab_source): Update.
4196 * tui/tui-layout.c (extract_display_start_addr)
4197 (show_source_disasm_command, show_data)
4198 (make_source_or_disasm_window)
4199 (show_source_or_disasm_and_command): Update.
4200 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
4201 (tui_disasm_window::do_scroll_vertical): Remove shadowing
4202 "gdbarch".
4203 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
4204 to tui_source_window_base.
4205 (struct tui_win_info) <detail>: Remove source_info member.
4206 (struct tui_source_window_base) <has_locator>: Inline.
4207 Move contents from tui_source_info; rename has_locator member to
4208 m_has_locator.
4209 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
4210 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
4211 header file.
4212 (tui_source_window_base::clear_detail, ~tui_source_window_base):
4213 Simplify.
4214 (tui_free_all_source_wins_content): Cast to
4215 tui_source_window_base.
4216
4217 2019-06-25 Tom Tromey <tom@tromey.com>
4218
4219 * tui/tui-win.c (make_invisible_and_set_new_height)
4220 (make_visible_with_new_height): Call has_locator method.
4221 * tui/tui-layout.c (show_source_disasm_command, show_data)
4222 (show_source_or_disasm_and_command): Update for bool change.
4223 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
4224 (tui_win_info) <has_locator>: New method.
4225 (struct tui_source_window_base) <has_locator>: New method.
4226 (tui_win_has_locator): Don't declare.
4227 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
4228 from tui_win_has_locator.
4229 (tui_source_window_base): Use false, not FALSE.
4230
4231 2019-06-25 Tom Tromey <tom@tromey.com>
4232
4233 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
4234 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
4235 clear_detail method directly.
4236 (tui_clear_win_detail): Remove.
4237
4238 2019-06-25 Tom Tromey <tom@tromey.com>
4239
4240 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
4241 "this", not TUI_DISASM_WIN.
4242
4243 2019-06-25 Tom Tromey <tom@tromey.com>
4244
4245 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
4246 declare.
4247 * tui/tui-winsource.c
4248 (tui_source_window_base::do_scroll_horizontal): Rename from
4249 tui_horizontal_source_scroll.
4250 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
4251 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
4252 from tui_vertical_data_scroll.
4253 * tui/tui-win.h (tui_scroll): Don't declare.
4254 * tui/tui-win.c (tui_win_info::forward_scroll)
4255 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
4256 (tui_win_info::right_scroll): Rename and update.
4257 (tui_scroll_forward_command, tui_scroll_backward_command)
4258 (tui_scroll_left_command, tui_scroll_right_command): Update.
4259 (tui_scroll): Remove.
4260 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
4261 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
4262 from tui_vertical_source_scroll.
4263 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
4264 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
4265 from tui_vertical_disassem_scroll.
4266 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
4267 do_scroll_horizontal>: New methods.
4268 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
4269 Likewise.
4270 (struct tui_source_window_base): Add do_scroll_horizontal.
4271 (struct tui_source_window, struct tui_disasm_window): Add
4272 do_scroll_vertical.
4273 (struct tui_data_window, struct tui_cmd_window): Add
4274 do_scroll_horizontal and do_scroll_vertical.
4275 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
4276
4277 2019-06-25 Tom Tromey <tom@tromey.com>
4278
4279 * tui/tui-data.h (struct tui_source_window_base): New struct.
4280 (struct tui_source_window): Derive from tui_source_window_base.
4281 (struct tui_disasm_window): New struct.
4282 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
4283 from tui_source_window::clear_detail.
4284 (tui_source_window_base): Rename from tui_source_window.
4285 (~tui_source_window_base): Rename from ~tui_source_window.
4286 (tui_alloc_win_info): Create a tui_disasm_window.
4287
4288 2019-06-25 Tom Tromey <tom@tromey.com>
4289
4290 * tui/tui-data.h (struct tui_source_window)
4291 (struct tui_data_window): Declare destructors.
4292 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
4293 destructors.
4294 (tui_win_info): Simplify.
4295
4296 2019-06-25 Tom Tromey <tom@tromey.com>
4297
4298 * tui/tui-winsource.c (tui_display_main)
4299 (tui_update_source_windows_with_addr)
4300 (tui_update_all_breakpoint_info): Update.
4301 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4302 (new_height_ok, parse_scrolling_args): Update.
4303 * tui/tui-stack.c (tui_show_frame_info): Update.
4304 * tui/tui-data.h (struct tui_list): Remove.
4305 (tui_source_windows): Return a reference to a std::vector.
4306 * tui/tui-data.c (source_windows): Now a std::vector.
4307 (tui_source_windows): Change return type.
4308 (tui_clear_source_windows): Rewrite.
4309 (tui_clear_source_windows_detail, tui_add_to_source_windows)
4310 (tui_free_all_source_wins_content): Rewrite.
4311
4312 2019-06-25 Tom Tromey <tom@tromey.com>
4313
4314 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
4315 (struct tui_data_window, struct tui_cmd_window): Declare
4316 clear_detail method.
4317 * tui/tui-data.c (tui_source_window::clear_detail)
4318 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
4319 methods.
4320 (tui_clear_win_detail): Simplify.
4321
4322 2019-06-25 Tom Tromey <tom@tromey.com>
4323
4324 * tui/tui-layout.c (make_source_window, make_disasm_window)
4325 (make_source_or_disasm_window): Remove win_info_ptr parameter.
4326 Return the new window.
4327 (show_source_disasm_command, show_data)
4328 (show_source_or_disasm_and_command): Update.
4329
4330 2019-06-25 Tom Tromey <tom@tromey.com>
4331
4332 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
4333 parameter. Return the new window.
4334 (show_source_disasm_command): Update and remove NULL check.
4335 (show_source_or_disasm_and_command): Update.
4336
4337 2019-06-25 Tom Tromey <tom@tromey.com>
4338
4339 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
4340
4341 2019-06-25 Tom Tromey <tom@tromey.com>
4342
4343 * tui/tui-data.h (struct tui_win_info): Make constructor
4344 protected. Make destructor virtual. Add initializers.
4345 (tui_source_window, tui_data_window, tui_cmd_window): New
4346 classes.
4347 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
4348 constructor. Add "type" parameter.
4349 (tui_source_window, tui_data_window, tui_cmd_window): New
4350 constructors.
4351 (tui_alloc_win_info): Instantiate the appropriate subclass.
4352
4353 2019-06-25 Tom Tromey <tom@tromey.com>
4354
4355 * tui/tui-win.c (tui_resize_all): Use delete.
4356 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
4357 destructor.
4358 (tui_free_window): Don't declare.
4359 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
4360 Update.
4361
4362 2019-06-25 Tom Tromey <tom@tromey.com>
4363
4364 * tui/tui-data.h (struct tui_win_info): Add constructor.
4365 * tui/tui-data.c (tui_alloc_win_info): Use new.
4366 (tui_free_window): Use delete.
4367
4368 2019-06-22 Tom Tromey <tom@tromey.com>
4369
4370 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
4371 declare.
4372 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
4373
4374 2019-06-22 Tom Tromey <tom@tromey.com>
4375
4376 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
4377 declare.
4378 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
4379
4380 2019-06-22 Tom de Vries <tdevries@suse.de>
4381
4382 * dwarf2read.c (create_addrmap_from_aranges)
4383 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
4384 instead of '%zu'.
4385
4386 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
4387
4388 * dwarf2read.h (dwarf2_section_info_def): Remove.
4389 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
4390 * dwarf2read.c (struct dwo_sections) <types>: Change type to
4391 std::vector<dwarf2_section_info>.
4392 (struct dwo_file) <~dwo_file>: Remove.
4393 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
4394 types field.
4395 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
4396 (dwarf2_read_debug_names): Likewise.
4397 (create_debug_types_hash_table): Change parameter type to
4398 array_view, adjust code accordingly.
4399 (dwarf2_locate_dwo_sections): Adjust to std::vector.
4400 (partial_die_info::fixup): Likewise.
4401 (determine_prefix): Likewise.
4402 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
4403
4404 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4405
4406 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
4407 gdb_bfd_ref_ptr.
4408 <~dwo_file>: Remove call to gdb_bfd_unref.
4409 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
4410 gdb_bfd_ref_ptr::get.
4411
4412 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4413
4414 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
4415 type to htab_up.
4416 * dwarf2read.c (struct dwo_file): Initialize fields.
4417 <~dwo_file>: New.
4418 (free_dwo_file): Remove, move content to ~dwo_file.
4419 (struct dwo_file_deleter): Remove.
4420 (dwo_file_up>: Remove custom deleter.
4421 (free_dwo_files): Remove.
4422 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
4423 dwo_files.
4424 (process_skeletonless_type_units): Call unique_ptr::get.
4425 (allocate_dwo_file_hash_table): Add deleter to created hash
4426 table. Change return type to htab_up.
4427 (lookup_dwo_file_slot): Don't memset dwo_file, call
4428 unique_ptr::get.
4429 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
4430 (create_dwo_unit_in_dwp_v2): Likewise.
4431 (open_and_init_dwo_file): Likewise.
4432 (free_dwo_file_from_slot): Remove.
4433
4434 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4435
4436 * dwarf2read.h (struct dwarf2_section_info) <readin,
4437 is_virtual>: Change type to bool.
4438 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
4439 true instead of 1.
4440
4441 2019-06-19 Tom Tromey <tom@tromey.com>
4442
4443 * tui/tui-data.h (tui_init_content_element): Don't declare.
4444
4445 2019-06-19 Tom Tromey <tom@tromey.com>
4446
4447 * tui/tui-data.h (tui_init_win_info): Don't declare.
4448
4449 2019-06-19 Tom de Vries <tdevries@suse.de>
4450
4451 * dwarf2read.h (abstract_to_concrete): Change type to
4452 std::unordered_map<sect_offset, std::vector<sect_offset>,
4453 gdb::hash_enum<sect_offset>>.
4454
4455 2019-06-19 Tom Tromey <tromey@adacore.com>
4456
4457 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
4458 EVAL_AVOID_SIDE_EFFECTS specially.
4459
4460 2019-06-19 Tom Tromey <tromey@adacore.com>
4461
4462 * source-cache.c (highlighter): New global.
4463 (source_cache::get_source_lines): Create a highlighter on demand.
4464
4465 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
4466
4467 * defs.h (deprecated_interactive_hook): Delete declaration.
4468 * interps.c (clear_interpreter_hooks): Remove use of
4469 deprecated_interactive_hook.
4470 * top.c (deprecated_interactive_hook): Delete definition.
4471 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
4472
4473 2019-06-18 Tom de Vries <tdevries@suse.de>
4474
4475 PR gdb/24515
4476 * dwarf2read.h (abstract_to_concrete): Change type from
4477 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
4478 std::unordered_map<sect_offset, std::vector<sect_offset>>.
4479 * dwarf2read.c (read_variable): Update.
4480 (dwarf2_fetch_die_loc_sect_off): Update.
4481
4482 2019-06-17 Tom de Vries <tdevries@suse.de>
4483
4484 PR gdb/24617
4485 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
4486 accessing parent[parent_len - 1].
4487
4488 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
4489
4490 PR gdb/24364
4491 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
4492 call dtrace_process_dof with NULL dof.
4493
4494 2019-06-16 Tom de Vries <tdevries@suse.de>
4495
4496 PR gdb/24445
4497 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
4498
4499 2019-06-16 Tom Tromey <tom@tromey.com>
4500
4501 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
4502 (make_all_visible): Use address of member.
4503
4504 2019-06-16 Tom Tromey <tom@tromey.com>
4505
4506 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
4507 (tui_free_window, free_content, free_content_elements): Remove
4508 unnecessary cast.
4509 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
4510 cast.
4511 * tui/tui-regs.c (tui_show_register_group)
4512 (tui_display_registers_from, tui_display_reg_element_at_line):
4513 Remove unnecessary cast.
4514
4515 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
4516
4517 * linux-nat.c (normal_mask): Delete.
4518 (_initialize_linux_nat): Don't initialise normal_mask.
4519
4520 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
4521
4522 PR gdb/24445
4523 * dwarf-index-write.h (write_psymtabs_to_index): Add
4524 dwz_basename parameter.
4525 * dwarf-index-write.c (write_gdbindex): Move file writing to
4526 write_gdbindex_1. Change return type void.
4527 (assert_file_size): Move up, remove filename parameter.
4528 (write_gdbindex_1): New function.
4529 (write_debug_names): Change return type to void, call
4530 assert_file_size.
4531 (struct index_wip_file): New struct.
4532 (write_psymtabs_to_index): Add dwz_basename parameter. Move
4533 file logic to index_wip_file. Write index for dwz file if
4534 needed.
4535 (save_gdb_index_command): Pass basename of dwz file, if present.
4536 * dwarf-index-cache.c (index_cache::store): Obtain and pass
4537 build-id of dwz file, if present.
4538 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
4539 (dwarf2_get_dwz_file): Likewise.
4540 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
4541 (dwarf2_get_dwz_file): Likewise.
4542
4543 2019-06-16 Tom Tromey <tom@tromey.com>
4544
4545 * coffread.c (process_coff_symbol): Use xstrdup.
4546 * value.c (create_internalvar): Use xstrdup.
4547
4548 2019-06-16 Tom Tromey <tom@tromey.com>
4549
4550 * valops.c (value_cast, value_slice): Remove unnecessary cast.
4551 * breakpoint.c (stopin_command, stopat_command)
4552 (until_break_command, decode_location_default): Remove unnecessary
4553 cast.
4554 * utils.c (subset_compare): Remove unnecessary cast.
4555 * ada-lang.c (ada_update_initial_language): Remove unnecessary
4556 cast.
4557 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
4558 cast.
4559 * infcmd.c (path_command): Remove unnecessary cast.
4560 * coffread.c (decode_type): Remove unnecessary cast.
4561 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
4562 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
4563 * tui/tui-stack.c (tui_show_locator_content)
4564 (tui_show_frame_info): Remove unnecessary cast.
4565 * tui/tui-win.c (tui_scroll_forward_command)
4566 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
4567 (parse_scrolling_args): Remove unnecessary cast.
4568 * tui/tui-data.c (init_win_info, tui_del_window)
4569 (tui_free_window, tui_del_data_windows, tui_free_data_content)
4570 (free_content_elements): Remove unnecessary cast.
4571 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
4572 unnecessary cast.
4573 * tui/tui-source.c (tui_set_source_content)
4574 (tui_vertical_source_scroll): Remove unnecessary cast.
4575 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
4576 cast.
4577 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
4578 * tui/tui-regs.c (tui_display_registers_from)
4579 (tui_display_register): Remove unnecessary cast.
4580 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
4581 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
4582 (make_visible): Remove unnecessary cast.
4583 * tui/tui-winsource.c (tui_erase_source_content)
4584 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
4585 unnecessary cast.
4586 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
4587 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
4588 * stabsread.c (read_type, read_array_type, read_range_type):
4589 Remove unnecessary cast.
4590 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
4591 (parse_symbol, parse_type, upgrade_type, parse_external)
4592 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
4593 unnecessary cast.
4594 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
4595
4596 2019-06-16 Tom Tromey <tom@tromey.com>
4597
4598 * tui/tui-data.c (tui_alloc_generic_win_info)
4599 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
4600 checks.
4601
4602 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
4603 Andrew Burgess <andrew.burgess@embecosm.com>
4604
4605 * f-typeprint.c (f_print_type): Don't return early for not
4606 associated or not allocated types.
4607 (f_type_print_varspec_suffix): Add print_rank parameter and print
4608 ranks of array types in case they dangling.
4609 (f_type_print_base): Add print_rank parameter.
4610
4611 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4612
4613 * NEWS: Mention new MI commands.
4614 * break-catch-throw.c (enum exception_event_kind): Move to
4615 breakpoint.h.
4616 (print_mention_exception_catchpoint): Output text as a single
4617 message.
4618 (catch_exception_command_1): Rename to...
4619 (catch_exception_event): ...this, make non-static, update header
4620 command, and change some parameter types.
4621 (catch_catch_command): Update for changes to
4622 catch_exception_command_1.
4623 (catch_throw_command): Likewise.
4624 (catch_rethrow_command): Likewise.
4625 * breakpoint.c (enum exception_event_kind): Delete.
4626 * breakpoint.h (enum exception_event_kind): Moved here from
4627 break-catch-throw.c.
4628 (catch_exception_event): Declare.
4629 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
4630 (mi_cmd_catch_throw): New function.
4631 (mi_cmd_catch_rethrow): New function.
4632 (mi_cmd_catch_catch): New function.
4633 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
4634 'catch-catch' entries.
4635 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
4636 (mi_cmd_catch_rethrow): Declare.
4637 (mi_cmd_catch_catch): Declare.
4638
4639 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4640
4641 * annotate.c (annotate_source_line): Change return type to void,
4642 update implementation to match.
4643 * annotate.h (annotate_source_line): Change return type to void,
4644 update header comment.
4645 * stack.c (print_frame_info): Don't change what frame information
4646 is printed based on whether annotations are on or not.
4647
4648 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4649
4650 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
4651 (annotate_source): Make static.
4652 (annotate_source_line): Moved from source.c and renamed from
4653 identify_source_line. Update the return type.
4654 * annotate.h (annotate_source): Delete declaration.
4655 (annotate_source_line): Declaration moved from source.h, and
4656 renamed from identify_source_line. Return type updated.
4657 * source.c (identify_source_line): Moved to annotate.c and renamed
4658 to annotate_source_line.
4659 (info_line_command): Remove check of annotation_level.
4660 * source.h (identify_source_line): Move declaration to annotate.h
4661 and rename to annotate_source_line.
4662 * stack.c: Add 'annotate.h' include.
4663 (print_frame_info): Remove check of annotation_level before
4664 calling annotate_source_line.
4665
4666 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4667
4668 * source-cache.c (source_cache::get_plain_source_lines): Use
4669 open_source_file_with_line_charpos instead of just
4670 open_source_file, remove call to find_source_lines.
4671 (source_cache::get_source_lines): Likewise.
4672 * source.c (find_source_lines): Make static.
4673 (get_filename_and_charpos): Renamed into...
4674 (open_source_file_with_line_charpos): ..this along with changes to
4675 return a scoped_fd, and some other minor clean ups.
4676 (identify_source_line): Use open_source_file_with_line_charpos.
4677 (search_command_helper): Use open_source_file_with_line_charpos
4678 instead of just open_source_file, remove call to
4679 find_source_lines.
4680 * source.h (open_source_file_with_line_charpos): Declare new
4681 function.
4682 (find_source_lines): Delete declaration.
4683
4684 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4685
4686 * source.c (get_filename_and_charpos): Remove fullname
4687 parameter.
4688 (identify_source_line): Update call to get_filename_and_charpos.
4689
4690 2019-06-14 Tom Tromey <tromey@adacore.com>
4691
4692 PR gdb/24502:
4693 * ui-style.h (skip_ansi_escape): Update comment.
4694 * ui-file.h (class no_terminal_escape_file): New class.
4695 * ui-file.c (no_terminal_escape_file::write)
4696 (no_terminal_escape_file::puts): New methods.
4697 * cli/cli-logging.c (handle_redirections): Use
4698 no_terminal_escape_file.
4699
4700 2019-06-14 Tom Tromey <tromey@adacore.com>
4701
4702 * NEWS: Move convenience variable news above Python news.
4703
4704 2019-06-14 Tom Tromey <tom@tromey.com>
4705
4706 * gnulib: Move directory to top-level.
4707 * configure.ac: Don't configure gnulib.
4708 * configure: Rebuild.
4709 * common/common-defs.h: Use new path to gnulib.
4710 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
4711 (GNULIB_H): Remove.
4712 (INCGNU): Look in new gnulib location.
4713 (HFILES_NO_SRCDIR): Remove gnulib files.
4714 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
4715 (generated_files): Remove GNULIB_H.
4716 ($(LIBGNU), all-lib): Remove targets.
4717 (distclean): Don't mention GNULIB_BUILDDIR.
4718 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
4719
4720 2019-06-14 Tom Tromey <tromey@adacore.com>
4721
4722 * symfile.c (add_symbol_file_command): Remove obsolete comment.
4723 Warn if symbol file does not provide any symbols.
4724
4725 2019-06-14 Tom Tromey <tromey@adacore.com>
4726
4727 * source.c (find_and_open_source): Respect basenames_may_differ.
4728
4729 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
4730
4731 * annotate.c (annotate_breakpoints_invalid): Make use of
4732 scoped_restore_terminal_state.
4733 (annotate_frames_invalid): Likewise.
4734
4735 2019-06-14 Tom Tromey <tromey@adacore.com>
4736
4737 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
4738 allow assignment to an internalvar.
4739
4740 2019-06-14 Tom Tromey <tromey@adacore.com>
4741
4742 * ada-lex.l: Allow "_" in attribute names.
4743
4744 2019-06-14 Tom Tromey <tromey@adacore.com>
4745
4746 PR gdb/24653:
4747 * regcache.c (registers_changed): Don't call alloca.
4748 * top.c (execute_command): Don't call alloca.
4749
4750 2019-06-13 Pedro Alves <palves@redhat.com>
4751
4752 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
4753 'expression'. When parsing an expression, error out if there's
4754 junk after "unlimited".
4755 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
4756 (do_set_command): Adjust calls to is_unlimited_literal.
4757
4758 2019-06-13 Pedro Alves <palves@redhat.com>
4759
4760 * compile/compile.c (make_compile_options_def_group): Add braces
4761 around array_view initializer.
4762 * thread.c (make_thread_apply_all_options_def_group)
4763 (make_thread_apply_all_options_def_group): Likewise.
4764
4765 2019-06-13 Pedro Alves <palves@redhat.com>
4766
4767 * NEWS (New commands): Mention "maint test-options
4768 require-delimiter", "maint test-options unknown-is-error", "maint
4769 test-options unknown-is-operand" and "maint show
4770 test-options-completion-result".
4771 (New command options, command completion): New section.
4772 (Completion improvements): New section.
4773 Mention that you can abbreviate "unlimited".
4774
4775 2019-06-13 Pedro Alves <palves@redhat.com>
4776
4777 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
4778 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
4779 * unittests/cli-utils-selftests.c (test_parse_flags)
4780 (test_parse_flags_qcs): Delete.
4781 (test_cli_utils): Don't call deleted functions.
4782
4783 2019-06-13 Pedro Alves <palves@redhat.com>
4784
4785 * thread.c: Include "cli/cli-option.h".
4786 (tp_array_compar_ascending): Global.
4787 (tp_array_compar): Delete function.
4788 (tp_array_compar_ascending, tp_array_compar_descending): New
4789 functions.
4790 (ascending_option_def, qcs_flag_option_def)
4791 (thr_qcs_flags_option_defs)
4792 (make_thread_apply_all_options_def_group)
4793 (make_thread_apply_options_def_group): New.
4794 (thread_apply_all_command): Use gdb::option::process_options.
4795 (thread_apply_command_completer)
4796 (thread_apply_all_command_completer): New.
4797 (thread_apply_command): Use gdb::option::process_options.
4798 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
4799 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
4800 to generate help text of "thread apply". Adjust "taas"'s help.
4801 * tid-parse.c (tid_range_parser::in_thread_range): New method.
4802 * tid-parse.h (tid_range_parser::in_thread_range): New method.
4803
4804 2019-06-13 Pedro Alves <palves@redhat.com>
4805
4806 * thread.c (thread_apply_command): Check for invalid TID with
4807 isdigit instead of !isalpha.
4808
4809 2019-06-13 Pedro Alves <palves@redhat.com>
4810
4811 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
4812 (validate_flags_qcs): New.
4813 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
4814 (validate_flags_qcs): Declare.
4815 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
4816 (make_frame_apply_options_def_group): New.
4817 (frame_apply_command_count): Process options with
4818 gdb::option::process_options.
4819 (frame_apply_completer): New.
4820 (frame_apply_level_completer, frame_apply_all_completer)
4821 (frame_apply_completer): New.
4822 (_initialize_stack): Update help of "frame apply", "frame apply
4823 level", "frame apply all" and "faas" to mention supported options
4824 and install command completers.
4825 * stack.h (frame_apply_all_completer): Declare.
4826 * thread.c: Include "stack.h".
4827 (tfaas_command): Add "--".
4828 (_initialize_thread): Update help "tfaas" to mention supported
4829 options and install command completer.
4830
4831 2019-06-13 Pedro Alves <palves@redhat.com>
4832
4833 * completer.c (complete_nested_command_line): New.
4834 (gdb_completion_word_break_characters_throw): Add assertion.
4835 * completer.h (complete_nested_command_line): Declare.
4836
4837 2019-06-13 Pedro Alves <palves@redhat.com>
4838
4839 * stack.c (parse_backtrace_qualifiers): New.
4840 (backtrace_command): Use it.
4841 (backtrace_command_completer): Complete on qualifiers.
4842
4843 2019-06-13 Pedro Alves <palves@redhat.com>
4844
4845 * frame.c: Include "cli/cli-option.h.
4846 (user_set_backtrace_options): New.
4847 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
4848 Delete.
4849 (get_prev_frame): Adjust.
4850 (boolean_option_def, uinteger_option_def)
4851 (set_backtrace_option_defs): New.
4852 (_initialize_frame): Adjust and use
4853 gdb::option::add_setshow_cmds_for_options to install "set
4854 backtrace past-main" and "set backtrace past-entry".
4855 * frame.h: Include "cli/cli-option.h".
4856 (struct frame_print_options): Forward declare.
4857 (print_frame_arguments_all, print_frame_arguments_scalars)
4858 (print_frame_arguments_none): Declare.
4859 (print_entry_values): Delete declaration.
4860 (struct frame_print_options, user_frame_print_options): New.
4861 (struct set_backtrace_options): New.
4862 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
4863 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
4864 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
4865 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
4866 (list_args_or_locals): Add frame_print_options parameter.
4867 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
4868 * python/py-framefilter.c (enumerate_args): Pass down
4869 USER_FRAME_PRINT_OPTIONS.
4870 * stack.c: Include "cli/cli-option.h".
4871 (print_frame_arguments_all, print_frame_arguments_scalars)
4872 (print_frame_arguments_none): Declare.
4873 (print_raw_frame_arguments, print_entry_values): Delete.
4874 (user_frame_print_options): New.
4875 (boolean_option_def, enum_option_def, frame_print_option_defs):
4876 New.
4877 (struct backtrace_cmd_options): New.
4878 (bt_flag_option_def): New.
4879 (backtrace_command_option_defs): New.
4880 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
4881 (print_frame_arg, read_frame_arg, print_frame_args)
4882 (print_frame_info, print_frame): Add frame_print_options parameter
4883 and use it.
4884 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
4885 (backtrace_command_1): Add frame_print_options and
4886 backtrace_cmd_options parameters and use them.
4887 (make_backtrace_options_def_group): New.
4888 (backtrace_command): Process command options with
4889 gdb::option::process_options.
4890 (backtrace_command_completer): New.
4891 (_initialize_stack): Extend "backtrace"'s help to mention
4892 supported options. Install completer for "backtrace".
4893 Install some settings commands with add_setshow_cmds_for_options.
4894
4895 2019-06-13 Pedro Alves <palves@redhat.com>
4896
4897 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
4898 and that "set/show print raw frame-arguments" are now deprecated.
4899
4900 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
4901 command.
4902 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
4903 * stack.c (_initialize_stack): Install "set/show print
4904 raw-frame-arguments", and deprecate "set/show print raw
4905 frame-arguments".
4906 * valprint.c (_initialize_valprint): Deprecate "set/show print
4907 raw".
4908
4909 2019-06-13 Pedro Alves <palves@redhat.com>
4910
4911 * compile/compile.c (struct compile_options): New.
4912 (compile_flag_option_def, compile_command_option_defs)
4913 (make_compile_options_def_group): New.
4914 (compile_file_command): Handle options with
4915 gdb::option::process_options.
4916 (compile_file_command_completer): New function.
4917 (compile_code_command): Handle options with
4918 gdb::option::process_options.
4919 (compile_code_command_completer): New function.
4920 (_initialize_compiler): Install completers for "compile code" and
4921 "compile file". Mention available options in "compile code" and
4922 "compile code"'s help.
4923 * completer.c (advance_to_completion_word): New, factored out from
4924 ...
4925 (advance_to_expression_complete_word_point): ... this.
4926 (advance_to_filename_complete_word_point): New.
4927 * completer.h (advance_to_filename_complete_word_point): New
4928 declaration.
4929
4930 2019-06-13 Pedro Alves <palves@redhat.com>
4931
4932 * compile/compile.c: Include "cli/cli-option.h".
4933 (compile_print_value): Scope data pointer is now a
4934 value_print_options pointer; adjust.
4935 (compile_print_command): Process options. Scope data pointer is
4936 now a value_print_options pointer; adjust.
4937 (_initialize_compile): Update "compile print"'s help to include
4938 supported options. Install a completer for "compile print".
4939 * cp-valprint.c (show_vtblprint, show_objectprint)
4940 (show_static_field_print): Delete.
4941 (_initialize_cp_valprint): Don't install "set print
4942 static-members", "set print vtbl", "set print object" here.
4943 * printcmd.c: Include "cli/cli-option.h" and
4944 "common/gdb_optional.h".
4945 (print_command_parse_format): Rework to fill in a
4946 value_print_options instead of a format_data.
4947 (print_value): Change parameter type from format_data pointer to
4948 value_print_options reference. Adjust.
4949 (print_command_1): Process options. Adjust to pass down a
4950 value_print_options.
4951 (print_command_completer): New.
4952 (_initialize_printcmd): Install print_command_completer as
4953 handle_brkchars completer for the "print" command. Update
4954 "print"'s help to include supported options.
4955 * valprint.c: Include "cli/cli-option.h".
4956 (show_vtblprint, show_objectprint, show_static_field_print): Moved
4957 here from cp-valprint.c.
4958 (boolean_option_def, uinteger_option_def)
4959 (value_print_option_defs, make_value_print_options_def_group):
4960 New. Use gdb::option::add_setshow_cmds_for_options to install
4961 "set print elements", "set print null-stop", "set print repeats",
4962 "set print pretty", "set print union", "set print array", "set
4963 print address", "set print symbol", "set print array-indexes".
4964 * valprint.h: Include <string> and "cli/cli-option.h".
4965 (make_value_print_options_def_group): Declare.
4966 (print_value): Change parameter type from format_data pointer to
4967 value_print_options reference.
4968 (print_command_completer): Declare.
4969
4970 2019-06-13 Pedro Alves <palves@redhat.com>
4971
4972 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
4973 (COMMON_SFILES): Add maint-test-settings.c.
4974 * cli/cli-decode.c (boolean_enums): New global, factored out from
4975 ...
4976 (add_setshow_boolean_cmd): ... here.
4977 * cli/cli-decode.h (boolean_enums): Declare.
4978 * cli/cli-option.c: New file.
4979 * cli/cli-option.h: New file.
4980 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
4981 factored out from ...
4982 (parse_cli_boolean_value(const char *)): ... this.
4983 (is_unlimited_literal): Change parameter type to pointer to
4984 pointer. Adjust and advance ARG pointer.
4985 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
4986 (parse_cli_var_enum): New, factored out from ...
4987 (do_set_command): ... this. Adjust.
4988 * cli/cli-setshow.h (parse_cli_boolean_value)
4989 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
4990 (parse_cli_var_enum): Declare.
4991 * cli/cli-utils.c: Include "cli/cli-option.h".
4992 (get_ulongest): New.
4993 * cli/cli-utils.h (get_ulongest): Declare.
4994 (check_for_argument): New overloads.
4995 * maint-test-options.c: New file.
4996
4997 2019-06-13 Pedro Alves <palves@redhat.com>
4998
4999 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
5000 parse a range if "-" is at the end of the string.
5001
5002 2019-06-13 Pedro Alves <palves@redhat.com>
5003
5004 * cli/cli-setshow.c (parse_auto_binary_operation)
5005 (parse_cli_boolean_value): Don't allow "o".
5006
5007 2019-06-13 Pedro Alves <palves@redhat.com>
5008
5009 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
5010 * NEWS: Mention maint test-settings KIND.
5011 * maint-test-settings.c: New file.
5012
5013 2019-06-13 Pedro Alves <palves@redhat.com>
5014
5015 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
5016 completer.
5017 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
5018 "set" completers.
5019
5020 2019-06-13 Pedro Alves <palves@redhat.com>
5021
5022 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
5023 after item.
5024
5025 2019-06-13 Pedro Alves <palves@redhat.com>
5026
5027 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
5028
5029 2019-06-13 Pedro Alves <palves@redhat.com>
5030
5031 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
5032 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
5033 call.
5034 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
5035 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
5036 calls.
5037 (check_for_argument): Skip spaces after argument.
5038
5039 2019-06-13 Pedro Alves <palves@redhat.com>
5040
5041 * thread.c (thread_apply_command): Adjust TID parsing.
5042 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
5043 detected before end of string.
5044 (tid_is_in_list): Error out if LIST is invalid.
5045
5046 2019-06-13 Pedro Alves <palves@redhat.com>
5047
5048 * completer.c (complete_line_internal_1): Rewind completion word
5049 point.
5050 (completion_tracker::advance_custom_word_point_by): Change
5051 parameter type to int.
5052 * completer.h (completion_tracker::advance_custom_word_point_by):
5053 Likewise.
5054
5055 2019-06-13 Pedro Alves <palves@redhat.com>
5056
5057 * completer.c (advance_to_completion_word): Handle delimiters.
5058
5059 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
5060
5061 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
5062
5063 2019-06-11 Tom Tromey <tom@tromey.com>
5064
5065 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
5066 (xmalloc_failed): Move to alloc.c.
5067 * alloc.c: New file.
5068 * Makefile.in (COMMON_SFILES): Add alloc.c.
5069
5070 2019-06-11 Tom Tromey <tom@tromey.com>
5071
5072 * nat/linux-waitpid.c: Don't include server.h.
5073 (linux_debug): Remove.
5074 (my_waitpid): Update.
5075
5076 2019-06-11 Tom Tromey <tromey@adacore.com>
5077
5078 * infcall.c (_initialize_infcall): Remove trailing newline from
5079 help.
5080 * user-regs.c (_initialize_user_regs): Remove trailing newline
5081 from help.
5082 * typeprint.c (_initialize_typeprint): Remove trailing newline
5083 from help.
5084 * reverse.c (_initialize_reverse): Remove trailing newlines from
5085 help.
5086 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
5087 from help.
5088 * language.c (add_set_language_command): Remove trailing newline
5089 from help.
5090 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
5091 help.
5092 * disasm.c (_initialize_disasm): Remove trailing newline from
5093 help.
5094 * top.c (init_main): Remove trailing newline from help.
5095 * interps.c (_initialize_interpreter): Remove trailing newline
5096 from help.
5097 * btrace.c (_initialize_btrace): Remove trailing newlines from
5098 help.
5099 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
5100 from help.
5101 * python/python.c (_initialize_python): Remove trailing newline
5102 from help.
5103 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
5104 help.
5105 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
5106 from help. Reformat some text.
5107 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
5108 from help.
5109 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
5110 newline from help.
5111
5112 2019-06-11 Tom Tromey <tromey@adacore.com>
5113
5114 * darwin-nat.c (darwin_decode_exception_message)
5115 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
5116
5117 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
5118
5119 * valops.c (value_slice): Check for not allocated or not
5120 associated values.
5121
5122 2019-06-10 Tom de Vries <tdevries@suse.de>
5123
5124 PR gdb/24618
5125 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
5126 sure an empty slot (defined by a 32-bit zero pair) is recognized as
5127 invalid.
5128
5129 2019-06-10 Tom de Vries <tdevries@suse.de>
5130
5131 PR gdb/24611
5132 * linespec.c (linespec_lexer_lex_string): Remove incorrect
5133 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
5134
5135 2019-06-10 Tom de Vries <tdevries@suse.de>
5136
5137 PR symtab/24545
5138 * symtab.c (struct demangled_name_entry): Add language field.
5139 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
5140 static minimal symbol". Set and use language field.
5141
5142 2019-06-10 Tom Tromey <tromey@adacore.com>
5143
5144 * ada-lang.c (_initialize_ada_language): Update help text.
5145
5146 2019-06-10 Tom Tromey <tromey@adacore.com>
5147
5148 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
5149 with a newline.
5150 * guile/guile.c (handle_boot_error): Don't end warning with a
5151 newline.
5152 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
5153 warning with a newline.
5154 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
5155 newline.
5156 (s12z_frame_cache): Likewise.
5157 * dwarf-index-cache.c (index_cache::store): Don't end warning with
5158 a newline.
5159 * solib-svr4.c (disable_probes_interface): Don't end warning with
5160 a newline.
5161 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
5162 newline.
5163 * python/python.c (do_finish_initialization): Don't end warning
5164 with a newline.
5165
5166 2019-06-10 Tom Tromey <tom@tromey.com>
5167
5168 * python/py-breakpoint.c (gdbpy_breakpoint_created)
5169 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
5170 gdbpy_enter.
5171
5172 2019-06-10 Tom Tromey <tromey@adacore.com>
5173
5174 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
5175 data.
5176 (elf_new_init): Don't call stabsread_new_init.
5177 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
5178 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
5179 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
5180
5181 2019-06-10 Tom de Vries <tdevries@suse.de>
5182
5183 PR symtab/16264
5184 PR symtab/24517
5185 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
5186
5187 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
5188
5189 * source.c (find_and_open_source): Also rewrite relative file
5190 names.
5191
5192 2019-04-26 Amos Bird <amosbird@gmail.com>
5193
5194 * annotate.c (annotate_thread_exited): Add "thread-exited"
5195 annotation.
5196
5197 2019-06-06 Tom Tromey <tromey@adacore.com>
5198
5199 * maint.h (class scoped_command_stats): Use
5200 DISABLE_COPY_AND_ASSIGN.
5201 <print_time>: New method.
5202 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
5203 print_time.
5204 (scoped_command_stats::print_time): New method.
5205
5206 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5207
5208 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
5209 instructions of lengths 6 or 8 bytes.
5210
5211 2019-06-04 Pedro Alves <palves@redhat.com>
5212
5213 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
5214
5215 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
5216 * breakpoint.c (condition_completer): Likewise.
5217 * cli/cli-dump.c (scan_expression): Likewise.
5218 * common/filestuff.c (mkdir_recursive): Likewise.
5219 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
5220 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
5221 (gdb_abspath): Likewise.
5222 * compile/compile-cplus-types.c
5223 (compile_cplus_instance::decl_name): Likewise.
5224 * completer.c (complete_explicit_location):
5225 (signal_completer, reg_or_group_completer_1): Likewise.
5226 * cp-support.c (cp_remove_params_if_any): Likewise.
5227 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
5228 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
5229 * infcmd.c (strip_bg_char): Likewise.
5230 * linespec.c (copy_token_string): Likewise.
5231 * mi/mi-main.c (output_cores): Likewise.
5232 * psymtab.c (psymtab_search_name):
5233 * symfile.c (test_set_ext_lang_command): Likewise.
5234 * target.c (target_fileio_read_stralloc): Likewise.
5235 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
5236 * value.c (complete_internalvar): Likewise.
5237
5238 2019-06-04 Christian Biesinger <cbiesinger@google.com>
5239
5240 Add objfile property to gdb.Type.
5241 * NEWS: Mention Python API addition.
5242 * python/py-type.c (typy_get_objfile): New method.
5243
5244 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5245
5246 * NEWS: Mention the new set|show style [title|highlight].
5247 Mention changes to "show style", "help" and "apropos".
5248
5249 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5250
5251 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
5252 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
5253 instead of print_help_for_command.
5254 (print_doc_of_command): New function.
5255 (help_list): Add 'apropos -v word' suggestion.
5256 (print_help_for_command): Style the command name using title style.
5257 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
5258 (_initialize_cli_cmds): Describe -v in apropos_command help.
5259
5260 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5261
5262 * cli/cli-style.h (cli_style_option): Add name in constructor,
5263 add m_name class member, add constructor with intensity,
5264 add name class function.
5265 (cli_style_option::add_setshow_commands): Remove name argument.
5266 (highlight_style, title_style): New styles.
5267 * cli/cli-style.c (do_show): New function that shows a style
5268 characteristic styling the style name with itself.
5269 (set_style_name): New function.
5270 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
5271 Update all callers according to the changes in cli/cli-style.h.
5272 * utils.h (fputs_highlighted): New function.
5273 * utils.c (fputs_highlighted): Likewise.
5274
5275 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5276
5277 * NEWS: Mention new pipe command and new convenience variables.
5278
5279 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5280
5281 * cli/cli-cmds.c (pipe_command): New function.
5282 (_initialize_cli_cmds): Call add_com for pipe_command.
5283 Define | as an alias for pipe.
5284 (exit_status_set_internal_vars): New function.
5285 (shell_escape): Call exit_status_set_internal_vars.
5286 cli/cli-decode.c (find_command_name_length): Recognize | as
5287 a single character command.
5288
5289 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5290
5291 * gdbcmd.h (execute_command_to_ui_file): New declaration.
5292 top.c (execute_command_to_ui_file): New function, mostly a copy
5293 of execute_command_to_string.
5294 (execute_command_to_string): Implement by calling
5295 execute_command_to_ui_file.
5296
5297 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5298
5299 * top.h (saved_command_line): Remove declaration.
5300 * top.c (previous_saved_command_line, previous_repeat_arguments):
5301 New variables.
5302 (saved_command_line): Make static, define together with other
5303 'repeat variables'.
5304 (dont_repeat): Clear repeat_arguments.
5305 (repeat_previous, get_saved_command_line, save_command_line):
5306 New functions.
5307 (gdb_init): Initialize saved_command_line
5308 and previous_saved_command_line.
5309 * main.c (captured_main_1): Remove saved_command_line initialization.
5310 * event-top.c (handle_line_of_input): Update to use
5311 the new 'repeat' related functions instead of direct access to
5312 saved_command_line.
5313 * command.h (repeat_previous, get_saved_command_line,
5314 save_command_line): New declarations.
5315 (dont_repeat): Add comment.
5316
5317 2019-05-30 Tom Tromey <tromey@adacore.com>
5318
5319 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
5320 Fix comment.
5321 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
5322
5323 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
5324
5325 PR cli/24587
5326 * completer.c (complete): Initialize variable word.
5327
5328 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
5329
5330 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
5331 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
5332 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
5333 'body' is NULL to the outter 'if', protecting the '!is_define'
5334 situation as well.
5335
5336 2019-05-29 Tom Tromey <tromey@adacore.com>
5337
5338 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
5339 (dwarf_unknown): New function.
5340 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
5341 (dwarf_type_encoding_name): Use dwarf_unknown.
5342
5343 2019-05-29 Tom Tromey <tromey@adacore.com>
5344
5345 PR c++/20020:
5346 * cp-valprint.c (cp_print_value_fields): Call
5347 cp_print_static_field inside "try".
5348
5349 2019-05-29 Tom Tromey <tromey@adacore.com>
5350
5351 * inflow.c (struct terminal_info): Add default operator=.
5352 * configure: Rebuild.
5353 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
5354 -Wdeprecated-copy-dtor, -Wredundant-move.
5355
5356 2019-05-29 Tom Tromey <tromey@adacore.com>
5357
5358 * NEWS: Add entry.
5359 * infcmd.c (print_return_value_1): Handle finish_print
5360 option.
5361 (show_print_finish): New function.
5362 (_initialize_infcmd): Add "set/show print finish" commands.
5363 * valprint.c (user_print_options): Initialize new member.
5364 * valprint.h (struct value_print_options) <finish_print>: New
5365 member.
5366
5367 2019-05-28 Tom Tromey <tromey@adacore.com>
5368
5369 * ada-lang.c (ada_remove_Xbn_suffix)
5370 (find_old_style_renaming_symbol)
5371 (parse_old_style_renaming): Remove.
5372 (ada_find_renaming_symbol): Don't call
5373 find_old_style_renaming_symbol.
5374 (ada_is_renaming_symbol): Rename from
5375 ada_find_renaming_symbol. Remove "block" parameter. Return
5376 bool. Now static.
5377 (ada_read_var_value): Update and simplify.
5378 * ada-exp.y (write_var_or_type): Remove old code.
5379
5380 2019-05-28 Alan Hayward <alan.hayward@arm.com>
5381
5382 * event-top.c: Remove include comment.
5383 * inflow.c (class scoped_ignore_sigttou): Move from here...
5384 * inflow.h (class scoped_ignore_sigttou): ...to here.
5385 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
5386 * top.c: Remove include comment.
5387
5388 2019-05-27 Tom Tromey <tom@tromey.com>
5389
5390 * NEWS: Fix typo.
5391
5392 2019-05-22 Tom Tromey <tromey@adacore.com>
5393
5394 * target.c (target_follow_exec): Constify parameter.
5395 * target-delegates.c: Rebuild.
5396 * remote.c (remote_target::follow_exec): Constify parameter.
5397 * infrun.c (follow_exec): Constify parameter.
5398 * target.h (struct target_ops) <follow_exec>: Constify parameter.
5399 (target_follow_exec): Likewise.
5400
5401 2019-05-22 Alan Hayward <alan.hayward@arm.com>
5402
5403 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
5404 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
5405
5406 2019-05-22 Alan Hayward <alan.hayward@arm.com>
5407
5408 * NEWS: Add debugredirect and testsuite sections.
5409
5410 2019-05-22 Simon Cook <simon.cook@embecosm.com>
5411
5412 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
5413 target descriptions using exclusively floating point register name
5414 aliases.
5415
5416 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
5417
5418 PR gdb/18644:
5419 * f-lang.c (build_fortran_types): Handle the case where
5420 gdbarch_floatformat_for_type returns a nullptr.
5421
5422 2019-05-21 Tom de Vries <tdevries@suse.de>
5423
5424 PR cli/24587
5425 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
5426
5427 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
5428
5429 PR gdb/18644:
5430 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
5431 16-byte floats.
5432 * i386-tdep.c (i386_floatformat_for_type): Use
5433 floatformats_ia64_quad for the 16-byte floating point component
5434 within a fortran 32-byte complex number.
5435
5436 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
5437
5438 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
5439 delete default constructor.
5440 (find_partial_die): Update to return const struct.
5441 (partial_die_parent_scope): Move variable declaration into scope
5442 of its use and change its type to auto.
5443 (guess_partial_die_structure_name): Likewise.
5444 (partial_die_info::fixup): Likewise.
5445
5446 2019-05-17 Tom Tromey <tromey@adacore.com>
5447
5448 * source.c (find_and_open_source): Remove cast.
5449
5450 2019-05-17 Tom Tromey <tromey@adacore.com>
5451
5452 * annotate.c (annotate_source): Make "filename" const.
5453 * annotate.h (annotate_source): Use const.
5454
5455 2019-05-17 Alan Hayward <alan.hayward@arm.com>
5456
5457 * disasm.c (set_disassembler_options): Send errors to stderr.
5458
5459 2019-05-17 Alan Hayward <alan.hayward@arm.com>
5460
5461 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
5462 (cli_interp_base::set_logging): Check debug_redirect.
5463 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
5464 * cli/cli-logging.c (debug_redirect): Add static variable.
5465 (pop_output_files): Add default param.
5466 (handle_redirections): Print debug setting.
5467 (show_logging_command): Likewise.
5468 (_initialize_cli_logging): Add debugredirect command.
5469 * interps.c (current_interp_set_logging): Add debug_redirect
5470 parameter.
5471 * interps.h (set_logging): Add debug_redirect parameter.
5472 (current_interp_set_logging): Likewise.
5473 * mi/mi-common.h: Likewise.
5474 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
5475
5476 2019-05-17 Alan Hayward <alan.hayward@arm.com>
5477 Tom Tromey <tromey@adacore.com>
5478
5479 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
5480 directly.
5481 * cli/cli-interp.h (make_logging_output): Remove declaration.
5482 * cli/cli-logging.c (make_logging_output): Remove function.
5483 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
5484 directly.
5485 * ui-file.c (tee_file::tee_file): Remove bools.
5486 (tee_file::~tee_file): Remove deletes.
5487 * ui-file.h (tee_file): Remove bools.
5488
5489 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
5490
5491 * mi/mi-cmds.h (mi_cmd_complete): New function.
5492 * mi/mi-main.c (mi_cmd_complete): Likewise.
5493 * mi/mi-cmds.c: Define new MI command -complete.
5494 * NEWS: Mention new -complete command.
5495
5496 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
5497
5498 * completer.h (complete): New function.
5499 * completer.c (complete): Likewise.
5500 * cli/cli-cmds.c: (complete_command): Update to use new complete()
5501 function defined in completer.h.
5502
5503 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
5504
5505 * MAINTAINERS (Write After Approval): Add myself.
5506
5507 2019-05-17 Tom de Vries <tdevries@suse.de>
5508
5509 PR gdb/24094
5510 * dwarf2read.c (struct cu_partial_die_info): New struct.
5511 (find_partial_die): Return cu_partial_die_info.
5512 (partial_die_parent_scope, guess_partial_die_structure_name)
5513 (partial_die_info::fixup): Handle new return type of find_partial_die.
5514
5515 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5516
5517 * stap-probe.c (stap_parse_register_operand): Make "regname" an
5518 "std::string", simplifying the algorithm.
5519
5520 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5521
5522 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
5523 (stap_static_probe_ops::get_probes): Likewise.
5524
5525 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5526
5527 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
5528 '-')" and "else if".
5529 (stap_parse_single_operand): Join checks for
5530 "gdbarch_stap_parse_special_token_p" and
5531 "gdbarch_stap_parse_special_token" in the same "if" statement.
5532 Invert check when verifying for operation on register
5533 displacement.
5534
5535 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5536
5537 * stap-probe.c (stap_get_opcode): Update comment.
5538 (stap_get_expected_argument_type): Likewise.
5539 (handle_stap_probe): Likewise.
5540
5541 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5542
5543 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
5544 return type to 'bool'. Adjust comment. Use 'bool' when
5545 appropriate.
5546 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5547 * stap-probe.c (stap_parse_argument_1): Likewise.
5548 (stap_is_operator): Likewise.
5549 (stap_is_generic_prefix): Likewise.
5550 (stap_is_register_prefix): Likewise.
5551 (stap_is_register_indirection_prefix): Likewise.
5552 (stap_is_integer_prefix): Likewise.
5553 (stap_generic_check_suffix): Likewise.
5554 (stap_check_integer_suffix): Likewise.
5555 (stap_check_register_suffix): Likewise.
5556 (stap_check_register_indirection_suffix): Likewise.
5557 (stap_parse_register_operand): Likewise.
5558 (stap_parse_single_operand): Likewise.
5559 (stap_parse_argument_1): Likewise.
5560 (stap_probe::get_argument_count): Likewise.
5561 (stap_is_operator): Likewise.
5562
5563 2019-05-16 Tom Tromey <tromey@adacore.com>
5564
5565 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
5566 keyword to foreach.
5567
5568 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
5569
5570 * linux-thread-db.c (try_thread_db_load_1): Change return type
5571 to bool.
5572 (try_thread_db_load): Likewise.
5573 (try_thread_db_load_from_pdir_1): Likewise.
5574 (try_thread_db_load_from_pdir): Likewise.
5575 (try_thread_db_load_from_sdir): Likewise.
5576 (try_thread_db_load_from_dir): Likewise.
5577 (thread_db_load_search): Likewise.
5578 (has_libpthread): Likewise.
5579 (thread_db_load): Likewise.
5580
5581 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
5582
5583 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
5584 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
5585 NULL, and complain/return if that's the case.
5586
5587 2019-05-15 John Darrington <john@darrington.wattle.id.au>
5588
5589 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
5590 (advance, posn, abstract_read_memory): New functions.
5591 [struct mem_read_abstraction]: New struct.
5592 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
5593
5594 2019-05-14 Tom Tromey <tromey@adacore.com>
5595
5596 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
5597 value is not lval_memory.
5598
5599 2019-05-14 Tom Tromey <tromey@adacore.com>
5600
5601 * solib.c (info_sharedlibrary_command): Style the file name.
5602
5603 2019-05-14 Alan Hayward <alan.hayward@arm.com>
5604
5605 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
5606 (aarch64_vnv_type): Likewise.
5607 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
5608 * common/tdesc.c: Likewise.
5609 * common/tdesc.h (enum tdesc_type_kind): Likewise.
5610 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
5611 * features/aarch64-fpu.xml: Add ieee half view.
5612 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
5613 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
5614 * gdbtypes.h (struct builtin_type): Likewise.
5615 (struct objfile_type): Likewise.
5616
5617 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
5618
5619 * language.c (language_sniff_from_mangled_name): Fix "langauge"
5620 typo.
5621 * location.h (string_to_event_location): Likewise.
5622
5623 2019-05-11 Joel Brobecker <brobecker@adacore.com>
5624
5625 GDB 8.3 released.
5626
5627 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
5628
5629 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
5630 New variable declaration.
5631 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
5632 New variable.
5633 (print_one_breakpoint): Use ui_out::test_flags and new global
5634 variable to compute use_fixed_output.
5635 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
5636 Remove.
5637 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
5638 (mi_multi_location_breakpoint_output_fixed): Remove.
5639 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
5640 new variable.
5641 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
5642 fix_multi_location_breakpoint_output flag if version >= 3.
5643 * ui-out.h (enum ui_out_flag)
5644 <fix_multi_location_breakpoint_output>: New enumerator.
5645
5646 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
5647
5648 * contrib/cc-with-tweaks.sh: Validate dwz's work.
5649
5650 2019-05-10 Tom Tromey <tromey@adacore.com>
5651
5652 * ada-lang.c (catch_ada_completer): New function.
5653 (_initialize_ada_language): Use it.
5654
5655 2019-05-10 Tom Tromey <tromey@adacore.com>
5656
5657 * thread.c (print_thread_info): Make "requested_threads" const.
5658 * gdbthread.h (print_thread_info): Make "requested_threads"
5659 const.
5660 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
5661 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
5662
5663 2019-05-08 Tom Tromey <tom@tromey.com>
5664
5665 * gdbtypes.c (objfile_type_data): Change type.
5666 (objfile_type, _initialize_gdbtypes): Update.
5667
5668 2019-05-08 Tom Tromey <tom@tromey.com>
5669
5670 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
5671 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
5672 (_initialize_dwarf2_frame): Update.
5673
5674 2019-05-08 Tom Tromey <tom@tromey.com>
5675
5676 * objc-lang.c (objc_objfile_data): Change type.
5677 (find_methods): Update.
5678 (_initialize_objc_lang): Remove.
5679
5680 2019-05-08 Tom Tromey <tom@tromey.com>
5681
5682 * stabsread.c (rs6000_builtin_type_data): Change type.
5683 (rs6000_builtin_type, _initialize_stabsread): Update.
5684
5685 2019-05-08 Tom Tromey <tom@tromey.com>
5686
5687 * mips-tdep.c (mips_pdr_data): Remove.
5688 (_initialize_mips_tdep): Update.
5689
5690 2019-05-08 Tom Tromey <tom@tromey.com>
5691
5692 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
5693 (hppa_init_objfile_priv_data, read_unwind_info)
5694 (find_unwind_entry, _initialize_hppa_tdep): Update.
5695
5696 2019-05-08 Tom Tromey <tom@tromey.com>
5697
5698 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
5699 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
5700 on obstack.
5701 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
5702
5703 2019-05-08 Tom Tromey <tom@tromey.com>
5704
5705 * mdebugread.c (basic_type_data): Change type.
5706 (basic_type, _initialize_mdebugread): Update.
5707
5708 2019-05-08 Tom Tromey <tom@tromey.com>
5709
5710 * common/gdb_unique_ptr.h (struct noop_deleter): New.
5711
5712 2019-05-08 Tom Tromey <tom@tromey.com>
5713
5714 * nto-tdep.c (nto_inferior_data_reg): Change type.
5715 (nto_inferior_data): Update.
5716 (nto_inferior_data_cleanup, nto_new_inferior_data)
5717 (_initialize_nto_tdep): Remove.
5718 * nto-tdep.h (struct nto_inferior_data): Add initializers.
5719
5720 2019-05-08 Tom Tromey <tom@tromey.com>
5721
5722 * ada-lang.c (struct ada_inferior_data): Add initializers.
5723 (ada_inferior_data): Change type.
5724 (ada_inferior_data_cleanup): Remove.
5725 (get_ada_inferior_data, ada_inferior_exit)
5726 (struct ada_pspace_data): Add initializers, destructor.
5727 (ada_pspace_data_handle): Change type.
5728 (get_ada_pspace_data): Update.
5729 (ada_pspace_data_cleanup): Remove.
5730
5731 2019-05-08 Tom Tromey <tom@tromey.com>
5732
5733 * coffread.c (struct coff_symfile_info): Add initializers.
5734 (coff_objfile_data_key): Move lower. Change type.
5735 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
5736 Update.
5737 (coff_free_info): Remove.
5738
5739 2019-05-08 Tom Tromey <tom@tromey.com>
5740
5741 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
5742 (fbsd_pspace_data_handle): Move lower. Change type.
5743 (get_fbsd_pspace_data): Update.
5744 (fbsd_pspace_data_cleanup): Remove.
5745 (_initialize_fbsd_tdep): Update.
5746
5747 2019-05-08 Tom Tromey <tom@tromey.com>
5748
5749 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
5750 (get_ada_tasks_pspace_data): Update.
5751 (ada_tasks_pspace_data_cleanup): Remove.
5752 (_initialize_tasks): Update.
5753 (ada_tasks_inferior_data_handle): Change type.
5754 (get_ada_tasks_inferior_data): Update.
5755 (ada_tasks_inferior_data_cleanup): Remove.
5756 (struct ada_tasks_pspace_data): Add initializers.
5757
5758 2019-05-08 Tom Tromey <tom@tromey.com>
5759
5760 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
5761 * symfile-debug.c (debug_sym_get_probes): Change type.
5762 * stap-probe.c (handle_stap_probe):
5763 (stap_static_probe_ops::get_probes): Change type.
5764 * probe.h (class static_probe_ops) <get_probes>: Change type.
5765 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
5766 (parse_probes_in_pspace): Update.
5767 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
5768 Update.
5769 (any_static_probe_ops::get_probes): Change type.
5770 * elfread.c (elfread_data): New typedef.
5771 (probe_key): Change type.
5772 (elf_get_probes): Likewise. Update.
5773 (probe_key_free): Remove.
5774 (_initialize_elfread): Update.
5775 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
5776 Change type.
5777 (dtrace_process_dof_probe, dtrace_process_dof)
5778 (dtrace_static_probe_ops::get_probe): Change type.
5779
5780 2019-05-08 Tom Tromey <tom@tromey.com>
5781
5782 * xcoffread.c (struct xcoff_symfile_info): Rename from
5783 coff_symfile_info. Add initializers.
5784 (xcoff_objfile_data_key): Move lower. Change type.
5785 (XCOFF_DATA): Rewrite.
5786 (xcoff_free_info): Remove.
5787 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
5788 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
5789 (xcoff_initial_scan): Update.
5790
5791 2019-05-08 Tom Tromey <tom@tromey.com>
5792
5793 * solib-svr4.c (struct svr4_info): Add initializers and
5794 destructor.
5795 <probes_table>: Now an htab_up.
5796 (solib_svr4_pspace_data): Change type.
5797 (free_probes_table): Simplify.
5798 (~svr4_info): Rename from svr4_pspace_data_cleanup.
5799 (get_svr4_info, probes_table_htab_remove_objfile_probes)
5800 (probes_table_remove_objfile_probes, register_solib_event_probe)
5801 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
5802 (_initialize_svr4_solib): Update.
5803
5804 2019-05-08 Tom Tromey <tom@tromey.com>
5805
5806 * remote.c (remote_pspace_data): Change type.
5807 (remote_pspace_data_cleanup): Remove.
5808 (get_remote_exec_file, set_pspace_remote_exec_file)
5809 (_initialize_remote): Update.
5810
5811 2019-05-08 Tom Tromey <tom@tromey.com>
5812
5813 * breakpoint.c (breakpoint_objfile_key): Change type.
5814 (get_breakpoint_objfile_data): Update.
5815 (free_breakpoint_objfile_data): Remove.
5816 (_initialize_breakpoint): Update.
5817
5818 2019-05-08 Tom Tromey <tom@tromey.com>
5819
5820 * linux-tdep.c (struct linux_info): Add initializers.
5821 (linux_inferior_data): Move. Change type.
5822 (invalidate_linux_cache_inf): Update.
5823 (linux_inferior_data_cleanup): Remove.
5824 (get_linux_inferior_data, _initialize_linux_tdep): Update.
5825
5826 2019-05-08 Tom Tromey <tom@tromey.com>
5827
5828 * auxv.c (auxv_inferior_data): Move. Change type.
5829 (auxv_inferior_data_cleanup): Remove.
5830 (invalidate_auxv_cache_inf): Rewrite.
5831 (get_auxv_inferior_data, _initialize_auxv): Update.
5832
5833 2019-05-08 Tom Tromey <tom@tromey.com>
5834
5835 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
5836 (symfile_debug_objfile_data_key): Change type.
5837 (symfile_debug_installed, debug_qf_has_symbols)
5838 (debug_qf_find_last_source_symtab)
5839 (debug_qf_forget_cached_source_info)
5840 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
5841 (debug_qf_print_stats, debug_qf_dump)
5842 (debug_qf_expand_symtabs_for_function)
5843 (debug_qf_expand_all_symtabs)
5844 (debug_qf_expand_symtabs_with_fullname)
5845 (debug_qf_map_matching_symbols)
5846 (debug_qf_expand_symtabs_matching)
5847 (debug_qf_find_pc_sect_compunit_symtab)
5848 (debug_qf_map_symbol_filenames)
5849 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
5850 (debug_sym_new_init, debug_sym_init, debug_sym_read)
5851 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
5852 (debug_sym_read_linetable, debug_sym_relocate): Update.
5853 (symfile_debug_free_objfile): Remove.
5854 (install_symfile_debug_logging, _initialize_symfile_debug):
5855 Update.
5856
5857 2019-05-08 Tom Tromey <tom@tromey.com>
5858
5859 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
5860 allocate_on_obstack.
5861 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
5862 (get_dwarf2_per_objfile): Update.
5863 (set_dwarf2_per_objfile): Remove.
5864 (dwarf2_has_info, dwarf2_get_section_info): Update.
5865 (dwarf2_free_objfile): Remove.
5866 (_initialize_dwarf2_read): Update.
5867
5868 2019-05-08 Tom Tromey <tom@tromey.com>
5869
5870 * auto-load.c (struct auto_load_pspace_info): Add destructor and
5871 initializers.
5872 <unsupported_script_warning_printed,
5873 script_not_found_warning_printed>: Now bool.
5874 (auto_load_pspace_data): Change type.
5875 (~auto_load_pspace_info): Rename from
5876 auto_load_pspace_data_cleanup.
5877 (get_auto_load_pspace_data, init_loaded_scripts_info)
5878 (clear_section_scripts, maybe_print_unsupported_script_warning)
5879 (maybe_print_script_not_found_warning, _initialize_auto_load):
5880 Update.
5881
5882 2019-05-08 Tom Tromey <tom@tromey.com>
5883
5884 * objfiles.c (objfile_pspace_info): Add destructor and
5885 initializers.
5886 (objfiles_pspace_data): Change type.
5887 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
5888 (get_objfile_pspace_data): Update.
5889 (objfiles_bfd_data): Change type.
5890 (get_objfile_bfd_data): Update.
5891 (objfile_bfd_data_free, _initialize_objfiles): Remove.
5892
5893 2019-05-08 Tom Tromey <tom@tromey.com>
5894
5895 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
5896 Change type.
5897 (get_catch_syscall_inferior_data): Update.
5898 (catch_syscall_inferior_data_cleanup): Remove.
5899 (_initialize_break_catch_syscall): Update.
5900
5901 2019-05-08 Tom Tromey <tom@tromey.com>
5902
5903 * inflow.c (struct terminal_info): Add destructor and
5904 initializers.
5905 (inflow_inferior_data): Change type.
5906 (~terminal_info): Rename from inflow_inferior_data_cleanup.
5907 (get_inflow_inferior_data, inflow_inferior_exit)
5908 (swap_terminal_info, _initialize_inflow): Update.
5909
5910 2019-05-08 Tom Tromey <tom@tromey.com>
5911
5912 * target-dcache.c (target_dcache_cleanup): Remove.
5913 (target_dcache_aspace_key): Change type.
5914 (target_dcache_init_p, target_dcache_invalidate)
5915 (target_dcache_get, target_dcache_get_or_init)
5916 (_initialize_target_dcache): Update.
5917 * dcache.h (struct dcache_deleter): New.
5918
5919 2019-05-08 Tom Tromey <tom@tromey.com>
5920
5921 * symtab.c (struct symbol_cache): Add destructor and
5922 initializers.
5923 (symbol_cache_key): Move. Change type.
5924 (make_symbol_cache, free_symbol_cache): Remove.
5925 (get_symbol_cache): Update.
5926 (symbol_cache_cleanup): Remove.
5927 (ALL_PSPACES, symbol_cache_flush)
5928 (maintenance_print_symbol_cache)
5929 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
5930 Update.
5931
5932 2019-05-08 Tom Tromey <tom@tromey.com>
5933
5934 * symtab.c (struct main_info): Add destructor and initializers.
5935 (main_progspace_key): Move. Change type.
5936 (get_main_info): Update.
5937 (main_info_cleanup): Remove.
5938 (_initialize_symtab): Update.
5939
5940 2019-05-08 Tom Tromey <tom@tromey.com>
5941
5942 * registry.h (DECLARE_REGISTRY): Define the _key class.
5943
5944 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5945
5946 * NEWS: Merge two 'New commands' sections.
5947
5948 2019-05-08 Joel Brobecker <brobecker@adacore.com>
5949
5950 * ada-valprint.c (ada_val_print_gnat_array): Remove language
5951 parameter and use Ada language definition instead.
5952 (ada_val_print_ptr): Remove unused language parameter.
5953 (ada_val_print_num): Remove language parameter and use Ada language
5954 definition instead.
5955 (ada_val_print_enum, ada_val_print_flt): Remove unused language
5956 parameter.
5957 (ada_val_print_struct_union, ada_val_print_ref): Remove language
5958 parameter and use Ada language definition instead.
5959 (ada_val_print_1): Update all ada_val_print_xxx calls.
5960 Remove language parameter.
5961 (ada_val_print): Update ada_val_print_1 call.
5962
5963 2019-05-08 Tom Tromey <tromey@adacore.com>
5964
5965 * remote.c (remote_hw_watchpoint_limit)
5966 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
5967 Now static.
5968
5969 2019-05-08 Tom Tromey <tromey@adacore.com>
5970
5971 * maint.c (_initialize_maint_cmds): Move initialization code to
5972 remote.c.
5973 (watchdog, show_watchdog): Move to remote.c.
5974 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
5975 "watchdog" static.
5976 (_initialize_remote): Move initialization code from maint.c.
5977 * defs.h (watchdog): Don't declare.
5978
5979 2019-05-08 Tom Tromey <tromey@adacore.com>
5980
5981 * tui/tui-interp.c: Include main.h.
5982 * interps.c: Include main.h.
5983 * main.h (interpreter_p): Declare.
5984 * defs.h (interpreter_p): Don't declare.
5985
5986 2019-05-08 Tom Tromey <tromey@adacore.com>
5987
5988 * dwarf2loc.c: Include dwarf2read.h.
5989 * defs.h (read_unsigned_leb128): Don't declare.
5990 * dwarf2read.h (read_unsigned_leb128): Declare.
5991
5992 2019-05-08 Tom Tromey <tromey@adacore.com>
5993
5994 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
5995 method.
5996
5997 2019-05-08 Tom Tromey <tromey@adacore.com>
5998
5999 * utils.c (fputs_maybe_filtered): Reset style after paging, even
6000 when no wrap column is set.
6001
6002 2019-05-08 Tom Tromey <tromey@adacore.com>
6003
6004 * c-lang.c (c_get_string): Handle non-C-style arrays.
6005
6006 2019-05-08 Tom Tromey <tromey@adacore.com>
6007
6008 * typeprint.c (print_offset_data::update): Print the bit offset,
6009 not the number of bits remaining.
6010
6011 2019-05-08 Tom Tromey <tromey@adacore.com>
6012
6013 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
6014 padding at end of comment.
6015
6016 2019-05-08 Tom Tromey <tromey@adacore.com>
6017
6018 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
6019 Compare main types.
6020
6021 2019-05-06 Tom Tromey <tom@tromey.com>
6022
6023 * common/scoped_mmap.c: Include common-defs.h.
6024 * common/scoped_mmap.h: Don't include config.h.
6025
6026 2019-05-04 Tom Tromey <tom@tromey.com>
6027
6028 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
6029 (struct aarch64_call_info): Add initializers.
6030 <si>: Now a std::vector.
6031 (pass_on_stack, aarch64_push_dummy_call): Update.
6032
6033 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
6034 Tom Tromey <tom@tromey.com>
6035
6036 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
6037 (ppc_threads): Now a std::vector. Now static.
6038 (hwdebug_find_thread_points_by_tid)
6039 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
6040 Update.
6041
6042 2019-05-04 Tom Tromey <tom@tromey.com>
6043
6044 * arc-tdep.c (arc_tdesc_init): Return bool.
6045
6046 2019-05-04 Tom Tromey <tom@tromey.com>
6047
6048 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
6049 Use gdb_assert_not_reached.
6050
6051 2019-05-04 Tom Tromey <tom@tromey.com>
6052
6053 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
6054 "false".
6055
6056 2019-05-04 Tom Tromey <tom@tromey.com>
6057
6058 * arc-tdep.c (arc_tdesc_init): Use bool.
6059
6060 2019-05-04 Tom Tromey <tom@tromey.com>
6061
6062 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
6063
6064 2019-05-04 Tom Tromey <tom@tromey.com>
6065
6066 * cli/cli-cmds.c (valid_command_p): Return bool.
6067
6068 2019-05-04 Tom Tromey <tom@tromey.com>
6069
6070 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
6071 * command.h (valid_user_defined_cmd_name_p): Channge return type.
6072
6073 2019-05-04 Raul Tambre <raul@tambre.ee>
6074
6075 * python/lib/gdb/prompt.py (_ExtendedPrompt)
6076 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
6077 operator for comparison.
6078
6079 2019-05-04 Tom Tromey <tom@tromey.com>
6080
6081 * psymtab.c (psymbol_name_matches, match_partial_symbol)
6082 (lookup_partial_symbol, print_partial_symbols)
6083 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
6084 (psymbol_compare): Update.
6085 (add_psymbol_to_bcache): Clear the entire psymbol.
6086 (maintenance_check_psymtabs): Update.
6087 * psympriv.h (struct partial_symbol): Don't derive from
6088 general_symbol_info.
6089 <obj_section, unrelocated_address, address,
6090 set_unrelocated_address>: Update.
6091 <ginfo>: New member.
6092 * dwarf-index-write.c (write_psymbols, debug_names::insert)
6093 (debug_names::write_psymbols): Update.
6094
6095 2019-05-04 Tom de Vries <tdevries@suse.de>
6096
6097 * contrib/cc-with-tweaks.sh: Support -n arg.
6098
6099 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6100
6101 * corelow.c (core_target::detach): Ensure frame cache and
6102 register caches are cleared.
6103 inferior.c (exit_inferior_1): Likewise.
6104
6105 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
6106 Tom Tromey <tom@tromey.com>
6107
6108 * dictionary.c (collate_pending_symbols_by_language): Remove
6109 "struct" from foreach.
6110 * symtab.c (lookup_global_symbol_from_objfile)
6111 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
6112 foreach.
6113 * ser-tcp.c (net_open): Remove "struct" from foreach.
6114 * objfiles.c (objfile_relocate, objfile_rebase)
6115 (objfile_has_symbols): Remove "struct" from foreach.
6116 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
6117 from foreach.
6118 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
6119 foreach.
6120 * darwin-nat.c (thread_info_from_private_thread_info): Remove
6121 "struct" from foreach.
6122 * ada-lang.c (create_excep_cond_exprs)
6123 (ada_exception_catchpoint_cond_string): Remove "struct" from
6124 foreach.
6125
6126 2019-05-03 Tom Tromey <tromey@adacore.com>
6127
6128 * ada-exp.y (convert_char_literal): Check suffix of each
6129 enumerator.
6130
6131 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
6132
6133 PR ada/21406:
6134 * ada-exp.y (yywrap): Don't define.
6135 * ada-lex.l (%option): Add noyywrap
6136 (yywrap): Remove.
6137
6138 2019-05-03 Eli Zaretskii <eliz@gnu.org>
6139
6140 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
6141 _WIN32_WINNT to the XP level, unless already defined to a higher
6142 level.
6143
6144 * unittests/parse-connection-spec-selftests.c:
6145 * ser-tcp.c:
6146 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
6147 override.
6148
6149 * symfile.c (find_separate_debug_file): Remove colon from the
6150 drive spec of DOS/Windows file names of the target, so that the
6151 file name produced from DEBUGDIR and the target's directory will
6152 be valid on DOS/Windows systems.
6153
6154 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
6155
6156 * rust-lang.c (val_print_struct): Handle printing structures
6157 containing strings.
6158
6159 2019-05-02 Tom Tromey <tromey@adacore.com>
6160
6161 * valarith.c (_initialize_valarith): Remove.
6162
6163 2019-05-01 Tom Tromey <tromey@adacore.com>
6164
6165 * ada-lang.c (ada_value_primitive_field): Treat more fields as
6166 bitfields.
6167
6168 2019-05-01 Tom Tromey <tromey@adacore.com>
6169
6170 * ada-lang.c (ada_value_assign): Correctly compute starting offset
6171 for big-endian copies.
6172
6173 2019-04-30 Ali Tamur <tamur@google.com>
6174 * gdb/dwarf2read.c (read_3_bytes): New declaration.
6175 (read_attribute_value): Added DW_FORM_strx1-4 cases.
6176 (read_3_bytes): New function.
6177
6178 2019-04-30 Joel Brobecker <brobecker@adacore.com>
6179
6180 * windows-nat.c (main_thread_id): Delete.
6181 (handle_output_debug_string): Replace main_thread_id by
6182 current_event.dwThreadId.
6183 (fake_create_process): Likewise.
6184 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
6185 Do not set main_thread_id.
6186 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
6187 current_event.dwThreadId.
6188 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
6189
6190 2019-04-30 Joel Brobecker <brobecker@adacore.com>
6191
6192 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
6193 Use current_event.dwThreadId instead of main_thread_id.
6194
6195 2019-04-30 Tom Tromey <tromey@adacore.com>
6196
6197 * ada-lang.c (ada_lookup_simple_minsyms): New function.
6198 (create_excep_cond_exprs): Iterate over program spaces.
6199 (ada_exception_catchpoint_cond_string): Examine all minimal
6200 symbols for exception types.
6201
6202 2019-04-30 Tom Tromey <tromey@adacore.com>
6203
6204 PR c++/24470:
6205 * dwarf2read.c (process_structure_scope): Handle case where type
6206 has template parameters but no symbol was created.
6207
6208 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6209 Chris January <chris.january@arm.com>
6210
6211 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
6212 qualifier.
6213 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
6214
6215 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6216
6217 * f-typeprint.c (f_print_type): Update rules for printing
6218 whitespace.
6219 (f_type_print_varspec_suffix): Likewise.
6220
6221 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6222 Chris January <chris.january@arm.com>
6223
6224 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
6225 function arguments.
6226
6227 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6228
6229 * f-lang.c (build_fortran_types): Change name of void type to
6230 lower case.
6231 * f-typeprint.c (f_type_print_base): Print the name of the void
6232 type, rather than a fixed string.
6233 * f-valprint.c (f_decorations): Use lower case void string.
6234
6235 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6236 Chris January <chris.january@arm.com>
6237
6238 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
6239 types for Fortran.
6240
6241 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6242 Chris January <chris.january@arm.com>
6243 David Lecomber <david.lecomber@arm.com>
6244
6245 * f-exp.y (BINOP_INTRINSIC): New token.
6246 (exp): New parser rule handling BINOP_INTRINSIC.
6247 (f77_keywords): Add new builtin procedures.
6248 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
6249 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6250 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
6251 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6252 (print_unop_subexp_f): New function.
6253 (print_binop_subexp_f): New function.
6254 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6255 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6256 (dump_subexp_body_f): Likewise.
6257 (operator_check_f): Likewise.
6258 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6259 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
6260
6261 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6262
6263 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
6264 UNOP_KIND.
6265 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
6266 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
6267 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
6268 (operator_length_f): New fuction.
6269 (print_subexp_f): New function.
6270 (op_name_f): New function.
6271 (dump_subexp_body_f): New function.
6272 (operator_check_f): New function.
6273 (exp_descriptor_f): Replace standard expression handling functions
6274 with new functions.
6275 * gdb/fortran-operator.def: New file.
6276 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
6277 * gdb/std-operator.def: Remove UNOP_KIND.
6278
6279 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6280
6281 * std-operator.def: Remove unbalanced, stray double quote
6282 character.
6283
6284 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6285 Chris January <chris.january@arm.com>
6286 Daniel Everett <daniel.everett@arm.com>
6287 Nick Forrington <nick.forrington@arm.com>
6288 Richard Bunt <richard.bunt@arm.com>
6289
6290 * cp-valprint.c (cp_print_value_fields): Allow an additional level
6291 of depth when printing anonymous structs or unions.
6292 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
6293 Don't print either the top-level value, or the children if the
6294 max-depth is exceeded.
6295 (ppscm_print_children): When printing the key of a map, allow one
6296 extra level of depth.
6297 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
6298 print either the top-level value, or the children if the max-depth
6299 is exceeded.
6300 (print_children): When printing the key of a map, allow one extra
6301 level of depth.
6302 * python/py-value.c (valpy_format_string): Add max_depth keyword.
6303 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
6304 (user_print_options): Initialise max_depth field.
6305 (val_print_scalar_or_string_type_p): New function.
6306 (val_print): Check to see if the max depth has been reached.
6307 (val_print_check_max_depth): Define new function.
6308 (show_print_max_depth): New function.
6309 (_initialize_valprint): Add 'print max-depth' option.
6310 * valprint.h (struct value_print_options) <max_depth>: New field.
6311 (val_print_check_max_depth): Declare new function.
6312 * NEWS: Document new feature.
6313
6314 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6315
6316 * ada-lang.c (ada_language_defn): Initialise new field.
6317 * c-lang.c (c_is_string_type_p): New function.
6318 (c_language_defn): Initialise new field.
6319 (cplus_language_defn): Initialise new field.
6320 (asm_language_defn): Initialise new field.
6321 (minimal_language_defn): Initialise new field.
6322 * c-lang.h (c_is_string_type_p): Declare new function.
6323 * d-lang.c (d_language_defn): Initialise new field.
6324 * f-lang.c (f_is_string_type_p): New function.
6325 (f_language_defn): Initialise new field.
6326 * go-lang.c (go_is_string_type_p): New function.
6327 (go_language_defn): Initialise new field.
6328 * language.c (default_is_string_type_p): New function.
6329 (unknown_language_defn): Initialise new field.
6330 (auto_language_defn): Initialise new field.
6331 * language.h (struct language_defn) <la_is_string_type_p>: New
6332 member variable.
6333 (default_is_string_type_p): Declare new function.
6334 * m2-lang.c (m2_language_defn): Initialise new field.
6335 * objc-lang.c (objc_language_defn): Initialise new field.
6336 * opencl-lang.c (opencl_language_defn): Initialise new field.
6337 * p-lang.c (pascal_is_string_type_p): New function.
6338 (pascal_language_defn): Initialise new field.
6339 * rust-lang.c (rust_is_string_type_p): New function.
6340 (rust_language_defn): Initialise new field.
6341
6342 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6343
6344 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
6345 New field.
6346 * ada-lang.c (ada_language_defn): Initialise new field.
6347 * c-lang.c (c_language_defn): Likewise.
6348 (cplus_language_defn): Likewise.
6349 (asm_language_defn): Likewise.
6350 (minimal_language_defn): Likewise.
6351 * d-lang.c (d_language_defn): Likewise.
6352 * f-lang.c (f_language_defn): Likewise.
6353 * go-lang.c (go_language_defn): Likewise.
6354 * language.c (unknown_language_defn): Likewise.
6355 (auto_language_defn): Likewise.
6356 * m2-lang.c (m2_language_defn): Likewise.
6357 * objc-lang.c (objc_language_defn): Likewise.
6358 * opencl-lang.c (opencl_language_defn): Likewise.
6359 * p-lang.c (pascal_language_defn): Likewise.
6360 * rust-lang.c (rust_language_defn): Likewise.
6361
6362 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6363
6364 * ada-lang.c (ada_is_character_type): Change return type to bool.
6365 (ada_is_string_type): Likewise.
6366 * ada-lang.h (ada_is_character_type): Update declaration
6367 (ada_is_string_type): Likewise.
6368
6369 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6370
6371 Support style in 'frame|thread apply'
6372
6373 * gdbcmd.h (execute_command_to_string): New term_out parameter.
6374 * record.c (record_start, record_stop): Update callers of
6375 execute_command_to_string with false.
6376 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
6377 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
6378 methods.
6379 (class string_file): New constructor with term_out parameter.
6380 Override methods term_out and can_emit_style_escape. New member
6381 term_out.
6382 (class stdio_file): Override can_emit_style_escape.
6383 (class tee_file): Override term_out and can_emit_style_escape.
6384 * utils.h (can_emit_style_escape): Remove.
6385 * utils.c (can_emit_style_escape): Likewise.
6386 Update all callers of can_emit_style_escape (SOMESTREAM) to
6387 SOMESTREAM->can_emit_style_escape.
6388 * source-cache.c (source_cache::get_source_lines): Likewise.
6389 * stack.c (frame_apply_command_count): Call execute_command_to_string
6390 passing the term_out characteristic of the current gdb_stdout.
6391 * thread.c (thr_try_catch_cmd): Likewise.
6392 * top.c (execute_command_to_string): pass term_out parameter
6393 to construct the string_file for the command output.
6394 * ui-file.c (term_cli_styling): New function (most code moved
6395 from utils.c can_emit_style_escape).
6396 (string_file::string_file, string_file::can_emit_style_escape,
6397 stdio_file::can_emit_style_escape, tee_file::term_out,
6398 tee_file::can_emit_style_escape): New functions.
6399
6400 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6401
6402 * NEWS: Mention the new set|show may-call-functions.
6403 * infcall.c (may_call_functions_p): New variable.
6404 (show_may_call_functions_p): New function.
6405 (call_function_by_hand_dummy): Throws an error if not
6406 may-call-functions.
6407 (_initialize_infcall): Call add_setshow_boolean_cmd for
6408 may-call-functions.
6409
6410 2019-04-25 Keith Seitz <keiths@redhat.com>
6411
6412 PR c++/24367
6413 * cp-support.c (inspect_type): Don't attempt substitutions
6414 of symbol with the same name.
6415
6416 2019-04-25 Tom Tromey <tromey@adacore.com>
6417
6418 PR gdb/24475:
6419 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
6420 static.
6421
6422 2019-04-25 Tom Tromey <tromey@adacore.com>
6423
6424 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
6425 rvalue reference.
6426 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
6427 (gdb_xml_parser::parse): Use std::move.
6428 * python/python-internal.h (gdbpy_convert_exception): Take a const
6429 reference.
6430 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
6431 std::move.
6432 * python/py-utils.c (gdbpy_convert_exception): Take a const
6433 reference.
6434 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
6435 Use std::move.
6436 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
6437 Use std::move.
6438 * mi/mi-main.c (mi_print_exception): Take a const reference.
6439 * main.c (handle_command_errors): Take a const reference.
6440 * linespec.c (parse_linespec): Use std::move.
6441 * infcall.c (run_inferior_call): Use std::move.
6442 (call_function_by_hand_dummy): Use std::move.
6443 * exec.c (try_open_exec_file): Use std::move.
6444 * exceptions.h (exception_print, exception_fprintf)
6445 (exception_print_same): Update.
6446 * exceptions.c (print_exception, exception_print)
6447 (exception_fprintf, exception_print_same): Change parameters to
6448 const reference.
6449 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
6450 * common/new-op.c: Use std::move.
6451 * common/common-exceptions.h (struct gdb_exception): Add move
6452 constructor.
6453 (struct gdb_exception_error, struct gdb_exception_quit, struct
6454 gdb_quit_bad_alloc): Change constructor to move constructor.
6455 (throw_exception): Change parameter to rvalue reference.
6456 * common/common-exceptions.c (throw_exception): Take rvalue
6457 reference.
6458 * cli/cli-interp.c (safe_execute_command): Use std::move.
6459 * breakpoint.c (insert_bp_location, location_to_sals): Use
6460 std::move.
6461
6462 2019-04-25 Tom Tromey <tromey@adacore.com>
6463
6464 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
6465 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
6466 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
6467 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
6468 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
6469 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
6470 guile/scm-value.c: Use unpack.
6471 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
6472 gdbscm_gdb_exception.
6473 (gdbscm_throw_gdb_exception): Likewise.
6474 (struct gdbscm_gdb_exception): New.
6475 (unpack): New function.
6476 (gdbscm_wrap): Use unpack.
6477
6478 2019-04-25 Tom Tromey <tromey@adacore.com>
6479
6480 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
6481 (gdb_rl_callback_handler): Use std::move.
6482 * common/common-exceptions.h (struct gdb_exception): Add move
6483 assignment operator.
6484 (throw_exception_sjlj): Change "exception" to const reference.
6485 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
6486 (throw_exception_sjlj): Change "exception" to const reference.
6487
6488 2019-04-25 Tom Tromey <tromey@adacore.com>
6489
6490 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
6491 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
6492 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
6493 Update.
6494 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
6495 Update.
6496 * mi/mi-interp.c (mi_interp::exec): Update.
6497 * linespec.c (parse_linespec): Update.
6498 * infcall.c (run_inferior_call): Update.
6499 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
6500 * guile/scm-symbol.c (gdbscm_lookup_symbol)
6501 (gdbscm_lookup_global_symbol): Update.
6502 * guile/scm-param.c (gdbscm_parameter_value): Update.
6503 * guile/scm-frame.c (gdbscm_frame_read_register)
6504 (gdbscm_frame_read_var): Update.
6505 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
6506 * exec.c (try_open_exec_file): Update.
6507 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
6508 (gdb_rl_callback_handler): Update.
6509 * common/common-exceptions.h (exception_none): Don't declare.
6510 * common/common-exceptions.c (exception_none): Don't define.
6511 (struct catcher) <exception>: Update.
6512 * cli/cli-interp.c (safe_execute_command): Update.
6513 * breakpoint.c (insert_bp_location, location_to_sals): Update.
6514
6515 2019-04-25 Ali Tamur <tamur@google.com>
6516
6517 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
6518 (read_attribute_value): Likewise.
6519 (dwarf2_read_addr_index): Update comment.
6520 (read_str_index): Add DW_FORM_strx.
6521 (dwarf2_string_attr): Likewise.
6522 (dwarf2_const_value_attr): Likewise.
6523 (dump_die_shallow): Likewise.
6524 (dwarf2_fetch_constant_bytes): Likewise.
6525 (skip_form_bytes): Likewise.
6526 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
6527
6528 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6529
6530 PR corefiles/11608
6531 PR corefiles/18187
6532 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
6533 OFFSET. Verify if current mapping contains an ELF header.
6534 (linux_find_memory_regions_full): Adjust call to
6535 dump_mapping_p.
6536
6537 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
6538 Kang Li <kanglictf@gmail.com>
6539
6540 PR gdb/21600
6541
6542 * dwarf2-frame.c (read_initial_length): Be consistent about using
6543 unsigned representation of length.
6544 (decode_frame_entry_1): Likewise. Check for wraparound of
6545 end pointer as well as buffer overflow.
6546
6547 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6548
6549 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
6550 "vq".
6551
6552 2019-04-24 Tom Tromey <tromey@adacore.com>
6553
6554 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
6555
6556 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6557
6558 * s12z-tdep.c (s12z_unwind_pc): Delete.
6559 (s12z_unwind_sp): Delete.
6560 (s12z_gdbarch_init): Don't register deleted functions with
6561 gdbarch.
6562
6563 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6564
6565 * rl78-tdep.c (rl78_unwind_sp): Delete.
6566 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
6567
6568 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6569
6570 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
6571 (xstormy16_unwind_pc): Delete.
6572 (xstormy16_dummy_id): Delete.
6573 (xstormy16_gdbarch_init): Don't register deleted functions with
6574 gdbarch.
6575
6576 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6577
6578 * vax-tdep.c (vax_unwind_pc): Delete.
6579 (vax_gdbarch_init): Don't register deleted function with gdbarch.
6580
6581 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6582
6583 * v850-tdep.c (v850_unwind_sp): Delete.
6584 (v850_unwind_pc): Delete.
6585 (v850_dummy_id): Delete.
6586 (v850_gdbarch_init): Don't register deleted functions with
6587 gdbarch.
6588
6589 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6590
6591 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
6592 (tilegx_unwind_pc): Delete.
6593 (tilegx_unwind_dummy_id): Delete.
6594 (tilegx_gdbarch_init): Don't register deleted functions with
6595 gdbarch.
6596
6597 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6598
6599 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
6600 (tic6x_dummy_id): Delete.
6601 (tic6x_gdbarch_init): Don't register deleted functions with
6602 gdbarch.
6603
6604 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6605
6606 * sparc-tdep.c (sparc_unwind_pc): Delete.
6607 (sparc32_gdbarch_init): Don't register deleted function with
6608 gdbarch.
6609
6610 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6611
6612 * sh-tdep.c (sh_unwind_sp): Delete.
6613 (sh_unwind_pc): Delete.
6614 (sh_dummy_id): Delete.
6615 (sh_gdbarch_init): Don't register deleted functions with
6616 gdbarch.
6617
6618 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6619
6620 * score-tdep.c (score_unwind_sp): Delete.
6621 (score_unwind_pc): Delete.
6622 (score_dummy_id): Delete.
6623 (score_gdbarch_init): Don't register deleted functions with
6624 gdbarch.
6625
6626 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6627
6628 * rx-tdep.c (rx_unwind_pc): Delete.
6629 (rx_unwind_sp): Delete.
6630 (rx_dummy_id): Delete.
6631 (rx_gdbarch_init): Don't register deleted functions with
6632 gdbarch. Update comment.
6633
6634 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6635
6636 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
6637 (rs6000_dummy_id): Delete.
6638 (rs6000_gdbarch_init): Don't register deleted functions with
6639 gdbarch.
6640
6641 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6642
6643 * or1k-tdep.c (or1k_dummy_id): Delete.
6644 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
6645
6646 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6647
6648 * nios2-tdep.c (nios2_dummy_id): Delete.
6649 (nios2_unwind_sp): Delete.
6650 (nios2_gdbarch_init): Don't register deleted functions with
6651 gdbarch.
6652
6653 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6654
6655 * nds32-tdep.c (nds32_dummy_id): Delete.
6656 (nds32_unwind_pc): Delete.
6657 (nds32_unwind_sp): Delete.
6658 (nds32_gdbarch_init): Don't register deleted functions with
6659 gdbarch.
6660
6661 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6662
6663 * msp430-tdep.c (msp430_unwind_pc): Delete.
6664 (msp430_unwind_sp): Delete.
6665 (msp430_dummy_id): Delete.
6666 (msp430_gdbarch_init): Don't register deleted functions with
6667 gdbarch.
6668
6669 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6670
6671 * moxie-tdep.c (moxie_unwind_sp): Delete.
6672 (moxie_unwind_pc): Delete.
6673 (moxie_dummy_id): Delete.
6674 (moxie_gdbarch_init): Don't register deleted functions with
6675 gdbarch.
6676
6677 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6678
6679 * mn10300-tdep.c (mn10300_dummy_id): Delete.
6680 (mn10300_unwind_pc): Delete.
6681 (mn10300_unwind_sp): Delete.
6682 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
6683 mn10300_unwind_sp.
6684 (mn10300_frame_unwind_init): Don't register deleted functions with
6685 gdbarch.
6686
6687 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6688
6689 * mep-tdep.c (mep_unwind_pc): Delete.
6690 (mep_unwind_sp): Delete.
6691 (mep_dummy_id): Delete.
6692 (mep_gdbarch_init): Don't register deleted functions with
6693 gdbarch.
6694
6695 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6696
6697 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
6698 (m68hc11_unwind_sp): Delete.
6699 (m68hc11_gdbarch_init): Don't register deleted functions with
6700 gdbarch.
6701
6702 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6703
6704 * m32r-tdep.c (m32r_unwind_sp): Delete.
6705 (m32r_unwind_pc): Delete.
6706 (m32r_dummy_id): Delete.
6707 (m32r_gdbarch_init): Don't register deleted functions with
6708 gdbarch.
6709
6710 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6711
6712 * m32c-tdep.c (m32c_unwind_pc): Delete.
6713 (m32c_unwind_sp): Delete.
6714 (m32c_dummy_id): Delete.
6715 (m32c_gdbarch_init): Don't register deleted functions with
6716 gdbarch.
6717
6718 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6719
6720 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
6721 (lm32_unwind_pc): Delete.
6722 (lm32_dummy_id): Delete.
6723 (lm32_gdbarch_init): Don't register deleted functions with
6724 gdbarch.
6725
6726 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6727
6728 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
6729 (iq2000_unwind_pc): Delete.
6730 (iq2000_dummy_id): Delete.
6731 (iq2000_gdbarch_init): Don't register deleted functions with
6732 gdbarch.
6733
6734 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6735
6736 * nds32-tdep.c (nds32_type_align): Delete.
6737 (nds32_push_dummy_call): Use type_align instead.
6738
6739 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6740
6741 * arm-tdep.c (arm_type_align): Only handle vector override case.
6742 (arm_push_dummy_call): Use type_align.
6743 (arm_gdbarch_init): Register arm_type_align gdbarch function.
6744
6745 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6746
6747 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
6748 case.
6749 (pass_on_stack): Use type_align.
6750 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
6751 function.
6752
6753 2019-04-23 Tom Tromey <tromey@adacore.com>
6754
6755 * dwarf2read.c (line_header::file_name_at): Remove unused
6756 overload.
6757
6758 2019-04-23 Tom de Vries <tdevries@suse.de>
6759
6760 PR gdb/24438
6761 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
6762 invocation.
6763
6764
6765 2019-03-27 Ali Tamur <tamur@google.com>
6766
6767 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
6768 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
6769 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
6770 (dwarf_expr_context::get_addr_index): Likewise
6771 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
6772 (symbol_needs_eval_context::get_addr_index): Likewise
6773 (disassemble_dwarf_expression): Add DW_OP_addrx
6774 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
6775 (read_cutu_die_from_dwo): Update comment
6776 (skip_one_die): Add DW_FORM_addrx
6777 (read_attribute_value): Likewise
6778 (var_decode_location): Add DW_OP_addrx
6779 (dwarf2_const_value_attr): Add DW_FORM_addrx
6780 (dump_die_shallow): Likewise
6781 (dwarf2_fetch_constant_bytes): Likewise
6782 (decode_locdesc): Add DW_OP_addrx
6783 (skip_form_bytes): Add DW_FORM_addrx
6784
6785 2019-04-22 Ali Tamur <tamur@google.com>
6786
6787 * MAINTAINERS (Write After Approval): Add self.
6788
6789 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
6790
6791 * solib-svr4.c (get_svr4_info): Add pspace parameter.
6792 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
6793 (open_symbol_file_object): Likewise.
6794 (svr4_default_sos): Add info parameter.
6795 (svr4_read_so_list): Likewise.
6796 (svr4_current_sos_direct): Adjust functions calls to pass down
6797 info.
6798 (svr4_current_sos_1): Add info parameter.
6799 (svr4_current_sos): Call get_svr4_info, pass info down to
6800 svr4_current_sos_1.
6801 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
6802 get_svr4_info.
6803 (svr4_in_dynsym_resolve_code): Pass current_program_space to
6804 get_svr4_info.
6805 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
6806 to get_svr4_info.
6807 (probes_table_remove_objfile_probes): Likewise.
6808 (register_solib_event_probe): Add info parameter.
6809 (solist_update_incremental): Pass info parameter down to
6810 svr4_read_so_list.
6811 (disable_probes_interface): Add info parameter.
6812 (svr4_handle_solib_event): Pass current_program_space to
6813 get_svr4_info. Adjust disable_probes_interface cleanup.
6814 (svr4_create_probe_breakpoints): Add info parameter, pass it
6815 down to register_solib_event_probe.
6816 (svr4_create_solib_event_breakpoints): Add info parameter,
6817 pass it down to svr4_create_probe_breakpoints.
6818 (enable_break): Pass info down to
6819 svr4_create_solib_event_breakpoints.
6820 (svr4_solib_create_inferior_hook): Pass current_program_space to
6821 get_svr4_info.
6822 (svr4_clear_solib): Likewise.
6823
6824 2019-04-22 Pedro Alves <palves@redhat.com>
6825
6826 * solib-svr4.c (svr4_free_objfile_observer): New.
6827 (probe_and_action::objfile): New field.
6828 (probes_table_htab_remove_objfile_probes)
6829 (probes_table_remove_objfile_probes): New functions.
6830 (register_solib_event_probe): Add 'objfile' parameter. Store it
6831 in the new probe_and_action. Don't store the probe in 'lookup'.
6832 (svr4_create_probe_breakpoints): Pass objfile to
6833 register_solib_event_probe.
6834 (_initialize_svr4_solib): Register a free_objfile observer.
6835
6836 2019-04-19 Tom Tromey <tom@tromey.com>
6837
6838 * common/queue.h: Remove.
6839
6840 2019-04-19 Tom Tromey <tom@tromey.com>
6841
6842 * event-loop.c: Don't include "common/queue.h".
6843
6844 2019-04-19 Tom Tromey <tom@tromey.com>
6845
6846 * remote.c (remote_target): Use delete.
6847 * remote-notif.h: Include <list>, not "common/queue.h".
6848 (notif_client_p): Remove typedef.
6849 (remote_notif_state): Add constructor, destructor, initializer.
6850 <notif_queue>: Now a std::list.
6851 (remote_notif_state_xfree): Don't declare.
6852 * remote-notif.c (remote_notif_process, handle_notification)
6853 (remote_notif_state_allocate): Update.
6854 (~remote_notif_state): Rename from remote_notif_state_xfree.
6855
6856 2019-04-19 Tom Tromey <tom@tromey.com>
6857
6858 * symfile.c (reread_symbols): Update.
6859 * objfiles.c (objfile_register_static_link)
6860 (objfile_lookup_static_link): Update
6861 (~objfile) Don't delete static_links.
6862 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
6863
6864 2019-04-19 Tom Tromey <tom@tromey.com>
6865
6866 * type-stack.h (struct type_stack) <insert>: Constify string.
6867 * type-stack.c (type_stack::insert): Constify string.
6868 * gdbtypes.h (lookup_template_type): Update.
6869 (address_space_name_to_int): Update.
6870 * gdbtypes.c (address_space_name_to_int): Make space_identifier
6871 const.
6872 (lookup_template_type): Make name const.
6873 * c-exp.y: Update rules.
6874 (lex_one_token, classify_name, classify_inner_name)
6875 (c_print_token): Update.
6876 * p-exp.y: Update rules.
6877 (yylex): Update.
6878 * f-exp.y: Update rules.
6879 (yylex): Update.
6880 * d-exp.y: Update rules.
6881 (lex_one_token, classify_name, classify_inner_name): Update.
6882 * parse.c (write_dollar_variable, copy_name): Return std::string.
6883 * parser-defs.h (copy_name): Change return type.
6884 * m2-exp.y: Update rules.
6885 (yylex): Update.
6886 * go-exp.y (lex_one_token): Update.
6887 Update rules.
6888 (classify_unsafe_function, classify_packaged_name)
6889 (classify_name, yylex): Update.
6890
6891 2019-04-19 Sergei Trofimovich <siarheit@google.com>
6892
6893 * configure.ac: add --enable-source-highlight switch.
6894 * configure: Regenerate.
6895 * top.c (print_gdb_version): plumb --enable-source-highlight
6896 status to "show configuration".
6897
6898 2019-04-19 Tom Tromey <tromey@adacore.com>
6899
6900 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
6901 Check ADA_TYPE_P.
6902 (empty_record, ada_template_to_fixed_record_type_1)
6903 (template_to_static_fixed_type)
6904 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
6905 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
6906 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
6907 macros.
6908
6909 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
6910
6911 PR symtab/24423:
6912 * source.c (print_source_lines_base): Advance "iter" when a
6913 control character is seen.
6914
6915 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6916
6917 * inferior.h (struct infcall_suspend_state_deleter):
6918 Catch exception in destructor to avoid crash.
6919
6920 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6921
6922 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
6923 close to the add_com "shell".
6924
6925 2019-04-18 Tom Tromey <tromey@adacore.com>
6926
6927 * process-stratum-target.h (class process_stratum_target)
6928 <stratum>: Add "final".
6929
6930 2019-04-17 Tom Tromey <tromey@adacore.com>
6931
6932 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
6933 against nullptr before use.
6934
6935 2019-04-17 Alan Hayward <alan.hayward@arm.com>
6936
6937 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
6938
6939 2019-04-17 Jim Wilson <jimw@sifive.com>
6940 Andrew Burgess <andrew.burgess@embecosm.com>
6941
6942 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
6943 code read might fail, assume 4-byte breakpoint in that case.
6944
6945 2019-04-15 Leszek Swirski <leszeks@google.com>
6946
6947 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
6948 rather than a hand-rolled POD check when checking for forced MEMORY
6949 classification.
6950
6951 2019-04-15 Alan Hayward <alan.hayward@arm.com>
6952
6953 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
6954 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
6955 function.
6956 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
6957 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
6958 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
6959 declaration.
6960
6961 2019-04-15 Alan Hayward <alan.hayward@arm.com>
6962
6963 * aarch64-linux-nat.c
6964 (aarch64_linux_nat_target::thread_architecture): Add override.
6965 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
6966 each VQ.
6967
6968 2019-04-15 Alan Hayward <alan.hayward@arm.com>
6969
6970 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
6971
6972 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
6973
6974 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
6975 target types of size 96-bits, add some additional comments, and
6976 check that the builtin type we found was the correct size.
6977
6978 2019-04-12 Eli Zaretskii <eliz@gnu.org>
6979
6980 * utils.c (prompt_for_continue): Don't restore the styling at the
6981 end, as applied_style has the wrong value. This fixes styling in
6982 long lists of file names that are interrupted by the "Continue?"
6983 prompt.
6984
6985 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
6986
6987 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
6988 * c-lang.c (c_language_defn): Likewise.
6989 (cplus_language_defn): Likewise.
6990 (asm_language_defn): Likewise.
6991 (minimal_language_defn): Likewise.
6992 * d-lang.c (d_language_defn): Likewise.
6993 * f-lang.c (f_language_defn): Likewise.
6994 * go-lang.c (go_language_defn): Likewise.
6995 * language.c (unknown_language_defn): Likewise.
6996 (auto_language_defn): Likewise.
6997 * language.h (struct language_defn): Remove la_magic field.
6998 (LANG_MAGIC): Delete.
6999 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
7000 * objc-lang.c (objc_language_defn): Likewise.
7001 * opencl-lang.c (opencl_language_defn): Likewise.
7002 * p-lang.c (pascal_language_defn): Likewise.
7003 * rust-lang.c (rust_language_defn): Likewise.
7004
7005 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7006
7007 * riscv-tdep.c (riscv_type_align): New function.
7008 (riscv_type_alignment): Delete.
7009 (riscv_arg_location): Use 'type_align'.
7010 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
7011
7012 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7013
7014 * gdbtypes.c (type_align): A struct with no non-static fields also
7015 has alignment of 1.
7016
7017 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7018
7019 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
7020 component to 0.
7021 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
7022 member.
7023 (riscv_struct_info::analyse): New implementation using new
7024 analyse_inner member function.
7025 (riscv_struct_info::field_offset): New member function.
7026 (riscv_struct_info::m_offsets): New member variable.
7027 (riscv_struct_info::analyse_inner): New private member function,
7028 takes the old implementation of riscv_struct_info::analyse but
7029 extended to track field offsets.
7030 (riscv_call_arg_struct): Update the struct folding special cases
7031 to handle cases where empty C++ structs, which are non-zero
7032 length, are found.
7033 (riscv_arg_location): Initialise the length of each location, a
7034 non-zero length now indicates the location is in use.
7035 (riscv_push_dummy_call): Allow for the first location having a
7036 non-zero offset when setting up arguments.
7037 (riscv_return_value): Likewise, but for return values.
7038
7039 2019-04-11 Tom Tromey <tromey@adacore.com>
7040
7041 * utils.c (internal_vproblem): Make "msg" const.
7042
7043 2019-04-11 Alan Hayward <alan.hayward@arm.com>
7044
7045 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
7046 * trad-frame.c (trad_frame_reset_saved_regs): New function.
7047 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
7048 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
7049
7050 2019-04-10 Kevin Buettner <kevinb@redhat.com>
7051
7052 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
7053 function.
7054 (fill_gregset): Call amd64_linux_collect_native_gregset instead
7055 of amd64_collect_native_gregset.
7056 (amd64_linux_nat_target::store_registers): Likewise.
7057
7058 2019-04-10 Tom Tromey <tom@tromey.com>
7059
7060 * symtab.c (lookup_global_symbol_from_objfile)
7061 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
7062 * objfiles.h (class separate_debug_iterator): New.
7063 (class separate_debug_range): New.
7064 (struct objfile) <separate_debug_objfiles>: New method.
7065 (objfile_separate_debug_iterate): Don't declare.
7066 * objfiles.c (separate_debug_iterator::operator++): Rename from
7067 objfile_separate_debug_iterate.
7068 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
7069 iterator.
7070 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
7071 iterator.
7072
7073 2019-04-10 Tom Tromey <tom@tromey.com>
7074
7075 * symfile.c (reread_symbols): Remove old comment.
7076 * objfiles.c (free_all_objfiles): Fix a typo.
7077
7078 2019-04-10 Tom Tromey <tom@tromey.com>
7079
7080 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
7081 * minsyms.c (lookup_minimal_symbol): Use foreach.
7082 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7083 (lookup_minimal_symbol_solib_trampoline): Likewise.
7084 * symfile.c (reread_symbols): Use foreach.
7085
7086 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
7087 Tom Tromey <tromey@adacore.com>
7088
7089 PR rust/24414:
7090 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
7091 (rust_lex_int_test): Change "value" to be LONGEST.
7092 (rust_lex_tests): Add test for long integer literal.
7093
7094 2019-04-09 Tom Tromey <tromey@adacore.com>
7095
7096 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
7097 to bool.
7098 (extended_remote_target::attach): Update.
7099 (remote_target::remote_notice_new_inferior): Update.
7100 (remote_target::add_current_inferior_and_thread): Update.
7101 * inferior.c (exit_inferior_1): Use "false".
7102 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
7103
7104 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
7105
7106 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
7107 the "start" command.
7108
7109 2019-04-08 Kevin Buettner <kevinb@redhat.com>
7110
7111 * python/py-inferior.c (infpy_thread_from_thread_handle):
7112 Adjust comments to reflect renaming of thread_from_thread_handle
7113 to thread_from_handle. Adjust keywords. Fix type error message.
7114 (inferior_object_methods): Add thread_from_handle. Retain
7115 thread_from_thread_handle, but mark it as deprecated.
7116
7117 2019-04-08 Kevin Buettner <kevinb@redhat.com>
7118
7119 * gdbthread.h (find_thread_by_handle): Revise declaration.
7120 * thread.c (find_thread_by_handle): Likewise. Adjust
7121 implementation too.
7122 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
7123 support for buffer objects as handles.
7124
7125 2019-04-08 Kevin Buettner <kevinb@redhat.com>
7126
7127 * python/py-infthread.c (thpy_thread_handle): New function.
7128 (thread_object_methods): Register thpy_thread_handle.
7129
7130 2019-04-08 Kevin Buettner <kevinb@redhat.com>
7131
7132 * gdbthread.h (thread_to_thread_handle): Declare.
7133 * thread.c (gdbtypes.h): Include.
7134 (thread_to_thread_handle): New function.
7135
7136 * target.h (struct target_ops): Add thread_info_to_thread_handle.
7137 (target_thread_info_to_thread_handle): Declare.
7138 * target.c (target_thread_info_to_thread_handle): New function.
7139 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
7140 * target-delegates.c: Regenerate.
7141
7142 * linux-thread-db.c (class thread_db_target): Add method
7143 thread_info_to_thread_handle.
7144 (thread_db_target::thread_info_to_thread_handle): Define.
7145 * remote.c (class remote_target): Add new method
7146 thread_info_to_thread_handle.
7147 (remote_target::thread_info_to_thread_handle): Define.
7148
7149 2019-04-08 Pedro Alves <palves@redhat.com>
7150
7151 * common/common-exceptions.c (throw_exception): Don't create
7152 named object to throw; throw directly.
7153 (throw_it): Likewise. Don't initialize gdb_exception::message
7154 here, with new; pass FMT and AP to the ctor instead.
7155 * common/common-exceptions.h: Include <string>.
7156 (gdb_exception::gdb_exception(enum return_reason, enum errors,
7157 const char *, va_list)): New ctor. Use std::make_shared.
7158 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
7159 errors)): Delete.
7160 (gdb_exception_error::gdb_exception_error(enum errors, const char
7161 *, va_list)): New.
7162 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
7163 Add assertion.
7164 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
7165 errors)): Delete.
7166 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
7167 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
7168 Add assertion.
7169
7170 2019-04-08 Tom Tromey <tom@tromey.com>
7171
7172 * valops.c (value_rtti_indirect_type): Replace throw_exception
7173 with throw.
7174 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
7175 with throw.
7176 * thread.c (thr_try_catch_cmd): Replace throw_exception with
7177 throw.
7178 * target.c (target_translate_tls_address): Replace throw_exception
7179 with throw.
7180 * stack.c (frame_apply_command_count): Replace throw_exception
7181 with throw.
7182 * solib-spu.c (append_ocl_sos): Replace throw_exception with
7183 throw.
7184 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
7185 with throw.
7186 * rs6000-tdep.c (rs6000_frame_cache)
7187 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
7188 * remote.c: Replace throw_exception with throw.
7189 * record-full.c (record_full_message, record_full_wait_1)
7190 (record_full_restore): Replace throw_exception with throw.
7191 * record-btrace.c:
7192 (get_thread_current_frame_id, record_btrace_start_replaying)
7193 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
7194 (cmd_record_btrace_start): Replace throw_exception with throw.
7195 * parse.c (parse_exp_in_context_1): Replace throw_exception with
7196 throw.
7197 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
7198 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
7199 * linespec.c:
7200 (find_linespec_symbols): Replace throw_exception with throw.
7201 * infrun.c (displaced_step_prepare, resume): Replace
7202 throw_exception with throw.
7203 * infcmd.c (post_create_inferior): Replace throw_exception with
7204 throw.
7205 * inf-loop.c (inferior_event_handler): Replace throw_exception
7206 with throw.
7207 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
7208 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
7209 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
7210 (get_prev_frame_always, get_frame_pc_if_available)
7211 (get_frame_address_in_block_if_available, get_frame_language):
7212 Replace throw_exception with throw.
7213 * frame-unwind.c (frame_unwind_try_unwinder): Replace
7214 throw_exception with throw.
7215 * eval.c (fetch_subexp_value, evaluate_var_value)
7216 (evaluate_funcall, evaluate_subexp_standard): Replace
7217 throw_exception with throw.
7218 * dwarf2loc.c (call_site_find_chain)
7219 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
7220 Replace throw_exception with throw.
7221 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
7222 with throw.
7223 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
7224 throw.
7225 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
7226 * completer.c (complete_line_internal): Replace throw_exception
7227 with throw.
7228 * compile/compile-object-run.c (compile_object_run): Replace
7229 throw_exception with throw.
7230 * cli/cli-script.c (process_next_line): Replace throw_exception
7231 with throw.
7232 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
7233 (btrace_enable, btrace_maint_update_pt_packets): Replace
7234 throw_exception with throw.
7235 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
7236 throw_exception with throw.
7237 * break-catch-throw.c (re_set_exception_catchpoint): Replace
7238 throw_exception with throw.
7239 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
7240 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
7241 * aarch64-tdep.c (aarch64_make_prologue_cache)
7242 (aarch64_make_stub_cache): Replace throw_exception with throw.
7243
7244 2019-04-08 Tom Tromey <tom@tromey.com>
7245
7246 * common/common-exceptions.c (throw_exception): Rename from
7247 throw_exception_cxx. Remove old copy. Make argument const.
7248 (throw_it): Create and throw exception objects directly.
7249 * common/common-exceptions.h (throw_exception): Make argument
7250 const.
7251 (struct gdb_exception_error): Add constructor.
7252 (struct gdb_exception_quit): Add constructor.
7253
7254 2019-04-08 Tom Tromey <tom@tromey.com>
7255
7256 * common/common-exceptions.h (exception_rethrow): Don't declare.
7257 (TRY_SJLJ): Update comment.
7258 (TRY, CATCH, END_CATCH): Remove.
7259 * common/common-exceptions.c (exception_rethrow): Remove.
7260
7261 2019-04-08 Tom Tromey <tom@tromey.com>
7262
7263 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
7264 Remove.
7265 (gdb_exception_error): Rename from
7266 gdb_exception_RETURN_MASK_ERROR.
7267 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
7268 (gdb_quit_bad_alloc): Update.
7269 * aarch64-tdep.c: Update.
7270 * ada-lang.c: Update.
7271 * ada-typeprint.c: Update.
7272 * ada-valprint.c: Update.
7273 * amd64-tdep.c: Update.
7274 * arch-utils.c: Update.
7275 * break-catch-throw.c: Update.
7276 * breakpoint.c: Update.
7277 * btrace.c: Update.
7278 * c-varobj.c: Update.
7279 * cli/cli-cmds.c: Update.
7280 * cli/cli-interp.c: Update.
7281 * cli/cli-script.c: Update.
7282 * common/common-exceptions.c: Update.
7283 * common/new-op.c: Update.
7284 * common/selftest.c: Update.
7285 * compile/compile-c-symbols.c: Update.
7286 * compile/compile-cplus-symbols.c: Update.
7287 * compile/compile-object-load.c: Update.
7288 * compile/compile-object-run.c: Update.
7289 * completer.c: Update.
7290 * corelow.c: Update.
7291 * cp-abi.c: Update.
7292 * cp-support.c: Update.
7293 * cp-valprint.c: Update.
7294 * darwin-nat.c: Update.
7295 * disasm-selftests.c: Update.
7296 * dtrace-probe.c: Update.
7297 * dwarf-index-cache.c: Update.
7298 * dwarf-index-write.c: Update.
7299 * dwarf2-frame-tailcall.c: Update.
7300 * dwarf2-frame.c: Update.
7301 * dwarf2loc.c: Update.
7302 * dwarf2read.c: Update.
7303 * eval.c: Update.
7304 * event-loop.c: Update.
7305 * event-top.c: Update.
7306 * exec.c: Update.
7307 * f-valprint.c: Update.
7308 * fbsd-tdep.c: Update.
7309 * frame-unwind.c: Update.
7310 * frame.c: Update.
7311 * gdbtypes.c: Update.
7312 * gnu-v3-abi.c: Update.
7313 * guile/guile-internal.h: Update.
7314 * guile/scm-block.c: Update.
7315 * guile/scm-breakpoint.c: Update.
7316 * guile/scm-cmd.c: Update.
7317 * guile/scm-disasm.c: Update.
7318 * guile/scm-frame.c: Update.
7319 * guile/scm-lazy-string.c: Update.
7320 * guile/scm-math.c: Update.
7321 * guile/scm-param.c: Update.
7322 * guile/scm-ports.c: Update.
7323 * guile/scm-pretty-print.c: Update.
7324 * guile/scm-symbol.c: Update.
7325 * guile/scm-symtab.c: Update.
7326 * guile/scm-type.c: Update.
7327 * guile/scm-value.c: Update.
7328 * i386-linux-tdep.c: Update.
7329 * i386-tdep.c: Update.
7330 * inf-loop.c: Update.
7331 * infcall.c: Update.
7332 * infcmd.c: Update.
7333 * infrun.c: Update.
7334 * jit.c: Update.
7335 * language.c: Update.
7336 * linespec.c: Update.
7337 * linux-fork.c: Update.
7338 * linux-nat.c: Update.
7339 * linux-tdep.c: Update.
7340 * linux-thread-db.c: Update.
7341 * main.c: Update.
7342 * mi/mi-cmd-break.c: Update.
7343 * mi/mi-cmd-stack.c: Update.
7344 * mi/mi-interp.c: Update.
7345 * mi/mi-main.c: Update.
7346 * objc-lang.c: Update.
7347 * p-valprint.c: Update.
7348 * parse.c: Update.
7349 * ppc-linux-tdep.c: Update.
7350 * printcmd.c: Update.
7351 * python/py-arch.c: Update.
7352 * python/py-breakpoint.c: Update.
7353 * python/py-cmd.c: Update.
7354 * python/py-finishbreakpoint.c: Update.
7355 * python/py-frame.c: Update.
7356 * python/py-framefilter.c: Update.
7357 * python/py-gdb-readline.c: Update.
7358 * python/py-inferior.c: Update.
7359 * python/py-infthread.c: Update.
7360 * python/py-lazy-string.c: Update.
7361 * python/py-linetable.c: Update.
7362 * python/py-objfile.c: Update.
7363 * python/py-param.c: Update.
7364 * python/py-prettyprint.c: Update.
7365 * python/py-progspace.c: Update.
7366 * python/py-record-btrace.c: Update.
7367 * python/py-record.c: Update.
7368 * python/py-symbol.c: Update.
7369 * python/py-type.c: Update.
7370 * python/py-unwind.c: Update.
7371 * python/py-utils.c: Update.
7372 * python/py-value.c: Update.
7373 * python/python.c: Update.
7374 * record-btrace.c: Update.
7375 * record-full.c: Update.
7376 * remote-fileio.c: Update.
7377 * remote.c: Update.
7378 * riscv-tdep.c: Update.
7379 * rs6000-aix-tdep.c: Update.
7380 * rs6000-tdep.c: Update.
7381 * rust-exp.y: Update.
7382 * rust-lang.c: Update.
7383 * s390-tdep.c: Update.
7384 * selftest-arch.c: Update.
7385 * solib-dsbt.c: Update.
7386 * solib-frv.c: Update.
7387 * solib-spu.c: Update.
7388 * solib-svr4.c: Update.
7389 * solib.c: Update.
7390 * sparc64-linux-tdep.c: Update.
7391 * stack.c: Update.
7392 * symfile-mem.c: Update.
7393 * symmisc.c: Update.
7394 * target.c: Update.
7395 * thread.c: Update.
7396 * top.c: Update.
7397 * tracefile-tfile.c: Update.
7398 * tui/tui.c: Update.
7399 * typeprint.c: Update.
7400 * unittests/cli-utils-selftests.c: Update.
7401 * unittests/parse-connection-spec-selftests.c: Update.
7402 * valops.c: Update.
7403 * valprint.c: Update.
7404 * value.c: Update.
7405 * varobj.c: Update.
7406 * windows-nat.c: Update.
7407 * x86-linux-nat.c: Update.
7408 * xml-support.c: Update.
7409
7410 2019-04-08 Tom Tromey <tom@tromey.com>
7411
7412 * xml-support.c: Use C++ exception handling.
7413 * x86-linux-nat.c: Use C++ exception handling.
7414 * windows-nat.c: Use C++ exception handling.
7415 * varobj.c: Use C++ exception handling.
7416 * value.c: Use C++ exception handling.
7417 * valprint.c: Use C++ exception handling.
7418 * valops.c: Use C++ exception handling.
7419 * unittests/parse-connection-spec-selftests.c: Use C++ exception
7420 handling.
7421 * unittests/cli-utils-selftests.c: Use C++ exception handling.
7422 * typeprint.c: Use C++ exception handling.
7423 * tui/tui.c: Use C++ exception handling.
7424 * tracefile-tfile.c: Use C++ exception handling.
7425 * top.c: Use C++ exception handling.
7426 * thread.c: Use C++ exception handling.
7427 * target.c: Use C++ exception handling.
7428 * symmisc.c: Use C++ exception handling.
7429 * symfile-mem.c: Use C++ exception handling.
7430 * stack.c: Use C++ exception handling.
7431 * sparc64-linux-tdep.c: Use C++ exception handling.
7432 * solib.c: Use C++ exception handling.
7433 * solib-svr4.c: Use C++ exception handling.
7434 * solib-spu.c: Use C++ exception handling.
7435 * solib-frv.c: Use C++ exception handling.
7436 * solib-dsbt.c: Use C++ exception handling.
7437 * selftest-arch.c: Use C++ exception handling.
7438 * s390-tdep.c: Use C++ exception handling.
7439 * rust-lang.c: Use C++ exception handling.
7440 * rust-exp.y: Use C++ exception handling.
7441 * rs6000-tdep.c: Use C++ exception handling.
7442 * rs6000-aix-tdep.c: Use C++ exception handling.
7443 * riscv-tdep.c: Use C++ exception handling.
7444 * remote.c: Use C++ exception handling.
7445 * remote-fileio.c: Use C++ exception handling.
7446 * record-full.c: Use C++ exception handling.
7447 * record-btrace.c: Use C++ exception handling.
7448 * python/python.c: Use C++ exception handling.
7449 * python/py-value.c: Use C++ exception handling.
7450 * python/py-utils.c: Use C++ exception handling.
7451 * python/py-unwind.c: Use C++ exception handling.
7452 * python/py-type.c: Use C++ exception handling.
7453 * python/py-symbol.c: Use C++ exception handling.
7454 * python/py-record.c: Use C++ exception handling.
7455 * python/py-record-btrace.c: Use C++ exception handling.
7456 * python/py-progspace.c: Use C++ exception handling.
7457 * python/py-prettyprint.c: Use C++ exception handling.
7458 * python/py-param.c: Use C++ exception handling.
7459 * python/py-objfile.c: Use C++ exception handling.
7460 * python/py-linetable.c: Use C++ exception handling.
7461 * python/py-lazy-string.c: Use C++ exception handling.
7462 * python/py-infthread.c: Use C++ exception handling.
7463 * python/py-inferior.c: Use C++ exception handling.
7464 * python/py-gdb-readline.c: Use C++ exception handling.
7465 * python/py-framefilter.c: Use C++ exception handling.
7466 * python/py-frame.c: Use C++ exception handling.
7467 * python/py-finishbreakpoint.c: Use C++ exception handling.
7468 * python/py-cmd.c: Use C++ exception handling.
7469 * python/py-breakpoint.c: Use C++ exception handling.
7470 * python/py-arch.c: Use C++ exception handling.
7471 * printcmd.c: Use C++ exception handling.
7472 * ppc-linux-tdep.c: Use C++ exception handling.
7473 * parse.c: Use C++ exception handling.
7474 * p-valprint.c: Use C++ exception handling.
7475 * objc-lang.c: Use C++ exception handling.
7476 * mi/mi-main.c: Use C++ exception handling.
7477 * mi/mi-interp.c: Use C++ exception handling.
7478 * mi/mi-cmd-stack.c: Use C++ exception handling.
7479 * mi/mi-cmd-break.c: Use C++ exception handling.
7480 * main.c: Use C++ exception handling.
7481 * linux-thread-db.c: Use C++ exception handling.
7482 * linux-tdep.c: Use C++ exception handling.
7483 * linux-nat.c: Use C++ exception handling.
7484 * linux-fork.c: Use C++ exception handling.
7485 * linespec.c: Use C++ exception handling.
7486 * language.c: Use C++ exception handling.
7487 * jit.c: Use C++ exception handling.
7488 * infrun.c: Use C++ exception handling.
7489 * infcmd.c: Use C++ exception handling.
7490 * infcall.c: Use C++ exception handling.
7491 * inf-loop.c: Use C++ exception handling.
7492 * i386-tdep.c: Use C++ exception handling.
7493 * i386-linux-tdep.c: Use C++ exception handling.
7494 * guile/scm-value.c: Use C++ exception handling.
7495 * guile/scm-type.c: Use C++ exception handling.
7496 * guile/scm-symtab.c: Use C++ exception handling.
7497 * guile/scm-symbol.c: Use C++ exception handling.
7498 * guile/scm-pretty-print.c: Use C++ exception handling.
7499 * guile/scm-ports.c: Use C++ exception handling.
7500 * guile/scm-param.c: Use C++ exception handling.
7501 * guile/scm-math.c: Use C++ exception handling.
7502 * guile/scm-lazy-string.c: Use C++ exception handling.
7503 * guile/scm-frame.c: Use C++ exception handling.
7504 * guile/scm-disasm.c: Use C++ exception handling.
7505 * guile/scm-cmd.c: Use C++ exception handling.
7506 * guile/scm-breakpoint.c: Use C++ exception handling.
7507 * guile/scm-block.c: Use C++ exception handling.
7508 * guile/guile-internal.h: Use C++ exception handling.
7509 * gnu-v3-abi.c: Use C++ exception handling.
7510 * gdbtypes.c: Use C++ exception handling.
7511 * frame.c: Use C++ exception handling.
7512 * frame-unwind.c: Use C++ exception handling.
7513 * fbsd-tdep.c: Use C++ exception handling.
7514 * f-valprint.c: Use C++ exception handling.
7515 * exec.c: Use C++ exception handling.
7516 * event-top.c: Use C++ exception handling.
7517 * event-loop.c: Use C++ exception handling.
7518 * eval.c: Use C++ exception handling.
7519 * dwarf2read.c: Use C++ exception handling.
7520 * dwarf2loc.c: Use C++ exception handling.
7521 * dwarf2-frame.c: Use C++ exception handling.
7522 * dwarf2-frame-tailcall.c: Use C++ exception handling.
7523 * dwarf-index-write.c: Use C++ exception handling.
7524 * dwarf-index-cache.c: Use C++ exception handling.
7525 * dtrace-probe.c: Use C++ exception handling.
7526 * disasm-selftests.c: Use C++ exception handling.
7527 * darwin-nat.c: Use C++ exception handling.
7528 * cp-valprint.c: Use C++ exception handling.
7529 * cp-support.c: Use C++ exception handling.
7530 * cp-abi.c: Use C++ exception handling.
7531 * corelow.c: Use C++ exception handling.
7532 * completer.c: Use C++ exception handling.
7533 * compile/compile-object-run.c: Use C++ exception handling.
7534 * compile/compile-object-load.c: Use C++ exception handling.
7535 * compile/compile-cplus-symbols.c: Use C++ exception handling.
7536 * compile/compile-c-symbols.c: Use C++ exception handling.
7537 * common/selftest.c: Use C++ exception handling.
7538 * common/new-op.c: Use C++ exception handling.
7539 * cli/cli-script.c: Use C++ exception handling.
7540 * cli/cli-interp.c: Use C++ exception handling.
7541 * cli/cli-cmds.c: Use C++ exception handling.
7542 * c-varobj.c: Use C++ exception handling.
7543 * btrace.c: Use C++ exception handling.
7544 * breakpoint.c: Use C++ exception handling.
7545 * break-catch-throw.c: Use C++ exception handling.
7546 * arch-utils.c: Use C++ exception handling.
7547 * amd64-tdep.c: Use C++ exception handling.
7548 * ada-valprint.c: Use C++ exception handling.
7549 * ada-typeprint.c: Use C++ exception handling.
7550 * ada-lang.c: Use C++ exception handling.
7551 * aarch64-tdep.c: Use C++ exception handling.
7552
7553 2019-04-08 Tom Tromey <tom@tromey.com>
7554
7555 * xml-support.c (gdb_xml_parser::parse): Update.
7556 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
7557 * value.c (show_convenience): Update.
7558 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
7559 (test_parse_flags_qcs): Update.
7560 * thread.c (thr_try_catch_cmd): Update.
7561 * target.c (target_translate_tls_address): Update.
7562 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
7563 (info_frame_command_core, frame_apply_command_count): Update.
7564 * rust-exp.y (rust_lex_exception_test): Update.
7565 * riscv-tdep.c (riscv_print_one_register_info): Update.
7566 * remote.c (remote_target::enable_btrace): Update.
7567 * record-btrace.c (record_btrace_enable_warn): Update.
7568 * python/py-utils.c (gdbpy_convert_exception): Update.
7569 * printcmd.c (do_one_display, print_variable_and_value): Update.
7570 * mi/mi-main.c (mi_print_exception): Update.
7571 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
7572 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
7573 * linux-nat.c (linux_nat_target::attach): Update.
7574 * linux-fork.c (class scoped_switch_fork_info): Update.
7575 * infrun.c (displaced_step_prepare): Update.
7576 * infcall.c (call_function_by_hand_dummy): Update.
7577 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
7578 * gnu-v3-abi.c (print_one_vtable): Update.
7579 * frame.c (get_prev_frame_always): Update.
7580 * f-valprint.c (info_common_command_for_block): Update.
7581 * exec.c (try_open_exec_file): Update.
7582 * exceptions.c (print_exception, exception_print)
7583 (exception_fprintf, exception_print_same): Update.
7584 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
7585 * dwarf-index-cache.c (index_cache::store)
7586 (index_cache::lookup_gdb_index): Update.
7587 * darwin-nat.c (maybe_cache_shell): Update.
7588 * cp-valprint.c (cp_print_value_fields): Update.
7589 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
7590 (gcc_cplus_symbol_address): Update.
7591 * compile/compile-c-symbols.c (gcc_convert_symbol)
7592 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
7593 * common/selftest.c: Update.
7594 * common/common-exceptions.h (struct gdb_exception) <message>: Now
7595 a std::string.
7596 (exception_try_scope_entry, exception_try_scope_exit): Don't
7597 declare.
7598 (struct exception_try_scope): Remove.
7599 (TRY): Don't use exception_try_scope.
7600 (struct gdb_exception): Add constructor, operator=.
7601 <what>: New method.
7602 (struct gdb_exception_RETURN_MASK_ALL)
7603 (struct gdb_exception_RETURN_MASK_ERROR)
7604 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
7605 (struct gdb_quit_bad_alloc): Update.
7606 * common/common-exceptions.c (exception_none): Change
7607 initializer.
7608 (struct catcher) <state, exception>: Initialize inline.
7609 <prev>: Remove member.
7610 (current_catcher): Remove.
7611 (catchers): New global.
7612 (exceptions_state_mc_init): Simplify.
7613 (catcher_pop): Remove.
7614 (exceptions_state_mc, exceptions_state_mc_catch): Update.
7615 (try_scope_depth, exception_try_scope_entry)
7616 (exception_try_scope_exit): Remove.
7617 (throw_exception_sjlj): Update.
7618 (exception_messages, exception_messages_size): Remove.
7619 (throw_it): Simplify.
7620 (gdb_exception_sliced_copy): Remove.
7621 (throw_exception_cxx): Update.
7622 * cli/cli-script.c (script_from_file): Update.
7623 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
7624 Update.
7625 * ada-valprint.c (ada_val_print): Update.
7626 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
7627 (create_excep_cond_exprs): Update.
7628
7629 2019-04-08 Tom Tromey <tom@tromey.com>
7630
7631 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
7632 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
7633 (TRY, CATCH, END_CATCH): Remove some definitions.
7634 * common/common-exceptions.c: Don't use GDB_XCPT.
7635 (catcher_list_size): Remove.
7636 (throw_exception, throw_it): Simplify.
7637
7638 2019-04-05 Tom Tromey <tom@tromey.com>
7639
7640 Revert the header-sorting patch.
7641 * ft32-tdep.c: Revert.
7642 * frv-tdep.c: Revert.
7643 * frv-linux-tdep.c: Revert.
7644 * frame.c: Revert.
7645 * frame-unwind.c: Revert.
7646 * frame-base.c: Revert.
7647 * fork-child.c: Revert.
7648 * findvar.c: Revert.
7649 * findcmd.c: Revert.
7650 * filesystem.c: Revert.
7651 * filename-seen-cache.h: Revert.
7652 * filename-seen-cache.c: Revert.
7653 * fbsd-tdep.c: Revert.
7654 * fbsd-nat.h: Revert.
7655 * fbsd-nat.c: Revert.
7656 * f-valprint.c: Revert.
7657 * f-typeprint.c: Revert.
7658 * f-lang.c: Revert.
7659 * extension.h: Revert.
7660 * extension.c: Revert.
7661 * extension-priv.h: Revert.
7662 * expprint.c: Revert.
7663 * exec.h: Revert.
7664 * exec.c: Revert.
7665 * exceptions.c: Revert.
7666 * event-top.c: Revert.
7667 * event-loop.c: Revert.
7668 * eval.c: Revert.
7669 * elfread.c: Revert.
7670 * dwarf2read.h: Revert.
7671 * dwarf2read.c: Revert.
7672 * dwarf2loc.c: Revert.
7673 * dwarf2expr.h: Revert.
7674 * dwarf2expr.c: Revert.
7675 * dwarf2-frame.c: Revert.
7676 * dwarf2-frame-tailcall.c: Revert.
7677 * dwarf-index-write.h: Revert.
7678 * dwarf-index-write.c: Revert.
7679 * dwarf-index-common.c: Revert.
7680 * dwarf-index-cache.h: Revert.
7681 * dwarf-index-cache.c: Revert.
7682 * dummy-frame.c: Revert.
7683 * dtrace-probe.c: Revert.
7684 * disasm.h: Revert.
7685 * disasm.c: Revert.
7686 * disasm-selftests.c: Revert.
7687 * dictionary.c: Revert.
7688 * dicos-tdep.c: Revert.
7689 * demangle.c: Revert.
7690 * dcache.h: Revert.
7691 * dcache.c: Revert.
7692 * darwin-nat.h: Revert.
7693 * darwin-nat.c: Revert.
7694 * darwin-nat-info.c: Revert.
7695 * d-valprint.c: Revert.
7696 * d-namespace.c: Revert.
7697 * d-lang.c: Revert.
7698 * ctf.c: Revert.
7699 * csky-tdep.c: Revert.
7700 * csky-linux-tdep.c: Revert.
7701 * cris-tdep.c: Revert.
7702 * cris-linux-tdep.c: Revert.
7703 * cp-valprint.c: Revert.
7704 * cp-support.c: Revert.
7705 * cp-namespace.c: Revert.
7706 * cp-abi.c: Revert.
7707 * corelow.c: Revert.
7708 * corefile.c: Revert.
7709 * continuations.c: Revert.
7710 * completer.h: Revert.
7711 * completer.c: Revert.
7712 * complaints.c: Revert.
7713 * coffread.c: Revert.
7714 * coff-pe-read.c: Revert.
7715 * cli-out.h: Revert.
7716 * cli-out.c: Revert.
7717 * charset.c: Revert.
7718 * c-varobj.c: Revert.
7719 * c-valprint.c: Revert.
7720 * c-typeprint.c: Revert.
7721 * c-lang.c: Revert.
7722 * buildsym.c: Revert.
7723 * buildsym-legacy.c: Revert.
7724 * build-id.h: Revert.
7725 * build-id.c: Revert.
7726 * btrace.c: Revert.
7727 * bsd-uthread.c: Revert.
7728 * breakpoint.h: Revert.
7729 * breakpoint.c: Revert.
7730 * break-catch-throw.c: Revert.
7731 * break-catch-syscall.c: Revert.
7732 * break-catch-sig.c: Revert.
7733 * blockframe.c: Revert.
7734 * block.c: Revert.
7735 * bfin-tdep.c: Revert.
7736 * bfin-linux-tdep.c: Revert.
7737 * bfd-target.c: Revert.
7738 * bcache.c: Revert.
7739 * ax-general.c: Revert.
7740 * ax-gdb.h: Revert.
7741 * ax-gdb.c: Revert.
7742 * avr-tdep.c: Revert.
7743 * auxv.c: Revert.
7744 * auto-load.c: Revert.
7745 * arm-wince-tdep.c: Revert.
7746 * arm-tdep.c: Revert.
7747 * arm-symbian-tdep.c: Revert.
7748 * arm-pikeos-tdep.c: Revert.
7749 * arm-obsd-tdep.c: Revert.
7750 * arm-nbsd-tdep.c: Revert.
7751 * arm-nbsd-nat.c: Revert.
7752 * arm-linux-tdep.c: Revert.
7753 * arm-linux-nat.c: Revert.
7754 * arm-fbsd-tdep.c: Revert.
7755 * arm-fbsd-nat.c: Revert.
7756 * arm-bsd-tdep.c: Revert.
7757 * arch-utils.c: Revert.
7758 * arc-tdep.c: Revert.
7759 * arc-newlib-tdep.c: Revert.
7760 * annotate.h: Revert.
7761 * annotate.c: Revert.
7762 * amd64-windows-tdep.c: Revert.
7763 * amd64-windows-nat.c: Revert.
7764 * amd64-tdep.c: Revert.
7765 * amd64-sol2-tdep.c: Revert.
7766 * amd64-obsd-tdep.c: Revert.
7767 * amd64-obsd-nat.c: Revert.
7768 * amd64-nbsd-tdep.c: Revert.
7769 * amd64-nbsd-nat.c: Revert.
7770 * amd64-nat.c: Revert.
7771 * amd64-linux-tdep.c: Revert.
7772 * amd64-linux-nat.c: Revert.
7773 * amd64-fbsd-tdep.c: Revert.
7774 * amd64-fbsd-nat.c: Revert.
7775 * amd64-dicos-tdep.c: Revert.
7776 * amd64-darwin-tdep.c: Revert.
7777 * amd64-bsd-nat.c: Revert.
7778 * alpha-tdep.c: Revert.
7779 * alpha-obsd-tdep.c: Revert.
7780 * alpha-nbsd-tdep.c: Revert.
7781 * alpha-mdebug-tdep.c: Revert.
7782 * alpha-linux-tdep.c: Revert.
7783 * alpha-linux-nat.c: Revert.
7784 * alpha-bsd-tdep.c: Revert.
7785 * alpha-bsd-nat.c: Revert.
7786 * aix-thread.c: Revert.
7787 * agent.c: Revert.
7788 * addrmap.c: Revert.
7789 * ada-varobj.c: Revert.
7790 * ada-valprint.c: Revert.
7791 * ada-typeprint.c: Revert.
7792 * ada-tasks.c: Revert.
7793 * ada-lang.c: Revert.
7794 * aarch64-tdep.c: Revert.
7795 * aarch64-ravenscar-thread.c: Revert.
7796 * aarch64-newlib-tdep.c: Revert.
7797 * aarch64-linux-tdep.c: Revert.
7798 * aarch64-linux-nat.c: Revert.
7799 * aarch64-fbsd-tdep.c: Revert.
7800 * aarch64-fbsd-nat.c: Revert.
7801 * aarch32-linux-nat.c: Revert.
7802
7803 2019-04-05 Tom Tromey <tom@tromey.com>
7804
7805 * ft32-tdep.c: Sort headers.
7806 * frv-tdep.c: Sort headers.
7807 * frv-linux-tdep.c: Sort headers.
7808 * frame.c: Sort headers.
7809 * frame-unwind.c: Sort headers.
7810 * frame-base.c: Sort headers.
7811 * fork-child.c: Sort headers.
7812 * findvar.c: Sort headers.
7813 * findcmd.c: Sort headers.
7814 * filesystem.c: Sort headers.
7815 * filename-seen-cache.h: Sort headers.
7816 * filename-seen-cache.c: Sort headers.
7817 * fbsd-tdep.c: Sort headers.
7818 * fbsd-nat.h: Sort headers.
7819 * fbsd-nat.c: Sort headers.
7820 * f-valprint.c: Sort headers.
7821 * f-typeprint.c: Sort headers.
7822 * f-lang.c: Sort headers.
7823 * extension.h: Sort headers.
7824 * extension.c: Sort headers.
7825 * extension-priv.h: Sort headers.
7826 * expprint.c: Sort headers.
7827 * exec.h: Sort headers.
7828 * exec.c: Sort headers.
7829 * exceptions.c: Sort headers.
7830 * event-top.c: Sort headers.
7831 * event-loop.c: Sort headers.
7832 * eval.c: Sort headers.
7833 * elfread.c: Sort headers.
7834 * dwarf2read.h: Sort headers.
7835 * dwarf2read.c: Sort headers.
7836 * dwarf2loc.c: Sort headers.
7837 * dwarf2expr.h: Sort headers.
7838 * dwarf2expr.c: Sort headers.
7839 * dwarf2-frame.c: Sort headers.
7840 * dwarf2-frame-tailcall.c: Sort headers.
7841 * dwarf-index-write.h: Sort headers.
7842 * dwarf-index-write.c: Sort headers.
7843 * dwarf-index-common.c: Sort headers.
7844 * dwarf-index-cache.h: Sort headers.
7845 * dwarf-index-cache.c: Sort headers.
7846 * dummy-frame.c: Sort headers.
7847 * dtrace-probe.c: Sort headers.
7848 * disasm.h: Sort headers.
7849 * disasm.c: Sort headers.
7850 * disasm-selftests.c: Sort headers.
7851 * dictionary.c: Sort headers.
7852 * dicos-tdep.c: Sort headers.
7853 * demangle.c: Sort headers.
7854 * dcache.h: Sort headers.
7855 * dcache.c: Sort headers.
7856 * darwin-nat.h: Sort headers.
7857 * darwin-nat.c: Sort headers.
7858 * darwin-nat-info.c: Sort headers.
7859 * d-valprint.c: Sort headers.
7860 * d-namespace.c: Sort headers.
7861 * d-lang.c: Sort headers.
7862 * ctf.c: Sort headers.
7863 * csky-tdep.c: Sort headers.
7864 * csky-linux-tdep.c: Sort headers.
7865 * cris-tdep.c: Sort headers.
7866 * cris-linux-tdep.c: Sort headers.
7867 * cp-valprint.c: Sort headers.
7868 * cp-support.c: Sort headers.
7869 * cp-namespace.c: Sort headers.
7870 * cp-abi.c: Sort headers.
7871 * corelow.c: Sort headers.
7872 * corefile.c: Sort headers.
7873 * continuations.c: Sort headers.
7874 * completer.h: Sort headers.
7875 * completer.c: Sort headers.
7876 * complaints.c: Sort headers.
7877 * coffread.c: Sort headers.
7878 * coff-pe-read.c: Sort headers.
7879 * cli-out.h: Sort headers.
7880 * cli-out.c: Sort headers.
7881 * charset.c: Sort headers.
7882 * c-varobj.c: Sort headers.
7883 * c-valprint.c: Sort headers.
7884 * c-typeprint.c: Sort headers.
7885 * c-lang.c: Sort headers.
7886 * buildsym.c: Sort headers.
7887 * buildsym-legacy.c: Sort headers.
7888 * build-id.h: Sort headers.
7889 * build-id.c: Sort headers.
7890 * btrace.c: Sort headers.
7891 * bsd-uthread.c: Sort headers.
7892 * breakpoint.h: Sort headers.
7893 * breakpoint.c: Sort headers.
7894 * break-catch-throw.c: Sort headers.
7895 * break-catch-syscall.c: Sort headers.
7896 * break-catch-sig.c: Sort headers.
7897 * blockframe.c: Sort headers.
7898 * block.c: Sort headers.
7899 * bfin-tdep.c: Sort headers.
7900 * bfin-linux-tdep.c: Sort headers.
7901 * bfd-target.c: Sort headers.
7902 * bcache.c: Sort headers.
7903 * ax-general.c: Sort headers.
7904 * ax-gdb.h: Sort headers.
7905 * ax-gdb.c: Sort headers.
7906 * avr-tdep.c: Sort headers.
7907 * auxv.c: Sort headers.
7908 * auto-load.c: Sort headers.
7909 * arm-wince-tdep.c: Sort headers.
7910 * arm-tdep.c: Sort headers.
7911 * arm-symbian-tdep.c: Sort headers.
7912 * arm-pikeos-tdep.c: Sort headers.
7913 * arm-obsd-tdep.c: Sort headers.
7914 * arm-nbsd-tdep.c: Sort headers.
7915 * arm-nbsd-nat.c: Sort headers.
7916 * arm-linux-tdep.c: Sort headers.
7917 * arm-linux-nat.c: Sort headers.
7918 * arm-fbsd-tdep.c: Sort headers.
7919 * arm-fbsd-nat.c: Sort headers.
7920 * arm-bsd-tdep.c: Sort headers.
7921 * arch-utils.c: Sort headers.
7922 * arc-tdep.c: Sort headers.
7923 * arc-newlib-tdep.c: Sort headers.
7924 * annotate.h: Sort headers.
7925 * annotate.c: Sort headers.
7926 * amd64-windows-tdep.c: Sort headers.
7927 * amd64-windows-nat.c: Sort headers.
7928 * amd64-tdep.c: Sort headers.
7929 * amd64-sol2-tdep.c: Sort headers.
7930 * amd64-obsd-tdep.c: Sort headers.
7931 * amd64-obsd-nat.c: Sort headers.
7932 * amd64-nbsd-tdep.c: Sort headers.
7933 * amd64-nbsd-nat.c: Sort headers.
7934 * amd64-nat.c: Sort headers.
7935 * amd64-linux-tdep.c: Sort headers.
7936 * amd64-linux-nat.c: Sort headers.
7937 * amd64-fbsd-tdep.c: Sort headers.
7938 * amd64-fbsd-nat.c: Sort headers.
7939 * amd64-dicos-tdep.c: Sort headers.
7940 * amd64-darwin-tdep.c: Sort headers.
7941 * amd64-bsd-nat.c: Sort headers.
7942 * alpha-tdep.c: Sort headers.
7943 * alpha-obsd-tdep.c: Sort headers.
7944 * alpha-nbsd-tdep.c: Sort headers.
7945 * alpha-mdebug-tdep.c: Sort headers.
7946 * alpha-linux-tdep.c: Sort headers.
7947 * alpha-linux-nat.c: Sort headers.
7948 * alpha-bsd-tdep.c: Sort headers.
7949 * alpha-bsd-nat.c: Sort headers.
7950 * aix-thread.c: Sort headers.
7951 * agent.c: Sort headers.
7952 * addrmap.c: Sort headers.
7953 * ada-varobj.c: Sort headers.
7954 * ada-valprint.c: Sort headers.
7955 * ada-typeprint.c: Sort headers.
7956 * ada-tasks.c: Sort headers.
7957 * ada-lang.c: Sort headers.
7958 * aarch64-tdep.c: Sort headers.
7959 * aarch64-ravenscar-thread.c: Sort headers.
7960 * aarch64-newlib-tdep.c: Sort headers.
7961 * aarch64-linux-tdep.c: Sort headers.
7962 * aarch64-linux-nat.c: Sort headers.
7963 * aarch64-fbsd-tdep.c: Sort headers.
7964 * aarch64-fbsd-nat.c: Sort headers.
7965 * aarch32-linux-nat.c: Sort headers.
7966
7967 2019-04-04 Tom Tromey <tom@tromey.com>
7968
7969 * varobj.c (varobj_create): Update.
7970 * rust-exp.y (struct rust_parser) <update_innermost_block,
7971 lookup_symbol>: New methods.
7972 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
7973 Rename.
7974 (rust_parser::rust_lookup_type)
7975 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
7976 * printcmd.c (display_command, do_one_display): Update.
7977 * parser-defs.h (struct parser_state) <parser_state>: Add
7978 "tracker" parameter.
7979 (block_tracker): New member.
7980 (class innermost_block_tracker) <innermost_block_tracker>: Add
7981 "types" parameter.
7982 <reset>: Remove method.
7983 (innermost_block): Don't declare.
7984 (null_post_parser): Update.
7985 * parse.c (innermost_block): Remove global.
7986 (write_dollar_variable): Update.
7987 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
7988 Remove "tracker_types" parameter.
7989 (parse_expression): Add "tracker" parameter.
7990 (parse_expression_for_completion): Update.
7991 (null_post_parser): Add "tracker" parameter.
7992 * p-exp.y: Update rules.
7993 * m2-exp.y: Update rules.
7994 * language.h (struct language_defn) <la_post_parser>: Add
7995 "tracker" parameter.
7996 * go-exp.y: Update rules.
7997 * f-exp.y: Update rules.
7998 * expression.h (parse_expression, parse_exp_1): Add "tracker"
7999 parameter.
8000 * d-exp.y: Update rules.
8001 * c-exp.y: Update rules.
8002 * breakpoint.c (set_breakpoint_condition): Create an
8003 innermost_block_tracker.
8004 (watch_command_1): Likewise.
8005 * ada-lang.c (resolve): Add "tracker" parameter.
8006 (resolve_subexp): Likewise.
8007 * ada-exp.y (write_var_from_sym): Update.
8008
8009 2019-04-04 Tom Tromey <tom@tromey.com>
8010
8011 * type-stack.h: New file.
8012 * type-stack.c: New file.
8013 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
8014 type-stack.h.
8015 (insert_into_type_stack, insert_type, push_type, push_type_int)
8016 (insert_type_address_space, pop_type, pop_type_int)
8017 (pop_typelist, pop_type_stack, append_type_stack)
8018 (push_type_stack, get_type_stack, push_typelist)
8019 (follow_type_instance_flags, follow_types): Don't declare.
8020 * parse.c (type_stack): Remove global.
8021 (parse_exp_in_context): Update.
8022 (insert_into_type_stack, insert_type, push_type, push_type_int)
8023 (insert_type_address_space, pop_type, pop_type_int)
8024 (pop_typelist, pop_type_stack, append_type_stack)
8025 (push_type_stack, get_type_stack, push_typelist)
8026 (follow_type_instance_flags, follow_types): Remove (moved to
8027 type-stack.c).
8028 * f-exp.y (type_stack): New global.
8029 Update rules.
8030 (push_kind_type, f_parse): Update.
8031 * d-exp.y (type_stack): New global.
8032 Update rules.
8033 (d_parse): Update.
8034 * c-exp.y (struct c_parse_state) <type_stack>: New member.
8035 Update rules.
8036 * Makefile.in (COMMON_SFILES): Add type-stack.c.
8037 (HFILES_NO_SRCDIR): Add type-stack.h.
8038
8039 2019-04-04 Tom Tromey <tom@tromey.com>
8040
8041 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
8042 (rust_parser::convert_ast_to_expression, rust_parse)
8043 (rust_lex_test_completion, rust_lex_tests): Update.
8044 * parser-defs.h (struct expr_completion_state): New.
8045 (struct parser_state) <parser_state>: Add completion parameter.
8046 <mark_struct_expression, mark_completion_tag>: New methods.
8047 <parse_completion, m_completion_state>: New members.
8048 (prefixify_expression, null_post_parser): Update.
8049 (mark_struct_expression, mark_completion_tag): Don't declare.
8050 * parse.c (parse_completion, expout_last_struct)
8051 (expout_tag_completion_type, expout_completion_name): Remove
8052 globals.
8053 (parser_state::mark_struct_expression)
8054 (parser_state::mark_completion_tag): Now methods.
8055 (prefixify_expression): Add last_struct parameter.
8056 (prefixify_subexp): Likewise.
8057 (parse_exp_1): Update.
8058 (parse_exp_in_context): Add cstate parameter. Update.
8059 (parse_expression_for_completion): Create an
8060 expr_completion_state.
8061 (null_post_parser): Add "completion" parameter.
8062 * p-exp.y: Update rules.
8063 (yylex): Update.
8064 * language.h (struct language_defn) <la_post_parser>: Add
8065 "completing" parameter.
8066 * go-exp.y: Update rules.
8067 (lex_one_token): Update.
8068 * expression.h (parse_completion): Don't declare.
8069 * d-exp.y: Update rules.
8070 (lex_one_token): Update rules.
8071 * c-exp.y: Update rules.
8072 (lex_one_token): Update.
8073 * ada-lang.c (resolve): Add "parse_completion" parameter.
8074 (resolve_subexp): Likewise.
8075 (ada_resolve_function): Likewise.
8076
8077 2019-04-04 Tom Tromey <tom@tromey.com>
8078
8079 * parser-defs.h (struct parser_state) <start_arglist,
8080 end_arglist>: New methods.
8081 <arglist_len, m_funcall_chain>: New members.
8082 (arglist_len, start_arglist, end_arglist): Don't declare.
8083 * parse.c (arglist_len, funcall_chain): Remove global.
8084 (start_arglist, end_arglist): Remove functions.
8085 (parse_exp_in_context): Update.
8086 * p-exp.y: Update rules.
8087 * m2-exp.y: Update rules.
8088 * go-exp.y: Update rules.
8089 * f-exp.y: Update rules.
8090 * d-exp.y: Update rules.
8091 * c-exp.y: Update rules.
8092
8093 2019-04-04 Tom Tromey <tom@tromey.com>
8094
8095 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
8096 lex_operator, push_back>: New methods.
8097 Update all rules.
8098 (rust_parser::lex_hex, lex_escape): Rename and update.
8099 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
8100 (rust_parser::lex_operator): Rename and update.
8101 (rust_parser::lex_number, rustyylex, rustyyerror)
8102 (rust_lex_test_init, rust_lex_test_sequence)
8103 (rust_lex_test_push_back, rust_lex_tests): Update.
8104 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
8105 parameter.
8106 <lexptr, prev_lexptr>: New members.
8107 (lexptr, prev_lexptr): Don't declare.
8108 * parse.c (lexptr, prev_lexptr): Remove globals.
8109 (parse_exp_in_context): Update.
8110 * p-exp.y (yylex, yyerror): Update.
8111 * m2-exp.y (parse_number, yylex, yyerror): Update.
8112 * go-exp.y (lex_one_token, yyerror): Update.
8113 * f-exp.y (match_string_literal, yylex, yyerror): Update.
8114 * d-exp.y (lex_one_token, yyerror): Update.
8115 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
8116 (lex_one_token, yyerror): Update.
8117 * ada-lex.l (YY_INPUT): Update.
8118 (rewind_to_char): Update.
8119 * ada-exp.y (yyerror): Update.
8120
8121 2019-04-04 Tom Tromey <tom@tromey.com>
8122
8123 * rust-exp.y (rustyylex, rust_lex_tests): Update.
8124 * parser-defs.h (struct parser_state) <parser_state>: Add new
8125 parameter.
8126 <comma_terminates>: New member.
8127 (comma_terminates): Don't declare global.
8128 * parse.c (comma_terminates): Remove global.
8129 (parse_exp_in_context): Update.
8130 * p-exp.y (yylex): Update.
8131 * m2-exp.y (yylex): Update.
8132 * go-exp.y (lex_one_token): Update.
8133 * f-exp.y (yylex): Update.
8134 * d-exp.y (lex_one_token): Update.
8135 * c-exp.y (lex_one_token): Update.
8136 * ada-lex.l: Update.
8137
8138 2019-04-04 Tom Tromey <tom@tromey.com>
8139
8140 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
8141 (rustyylex, rust_lex_test_init, rust_lex_test_one)
8142 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
8143 * parser-defs.h (paren_depth): Don't declare.
8144 * parse.c (paren_depth): Remove global.
8145 (parse_exp_in_context): Update.
8146 * p-exp.y (paren_depth): New global.
8147 (pascal_parse): Initialize it.
8148 * m2-exp.y (paren_depth): New global.
8149 (m2_parse): Initialize it.
8150 * go-exp.y (paren_depth): New global.
8151 (go_parse): Initialize it.
8152 * f-exp.y (paren_depth): New global.
8153 (f_parse): Initialize it.
8154 * d-exp.y (paren_depth): New global.
8155 (d_parse): Initialize it.
8156 * c-exp.y (paren_depth): New global.
8157 (c_parse): Initialize it.
8158 * ada-lex.l (paren_depth): New global.
8159 (lexer_init): Initialize it.
8160
8161 2019-04-04 Tom Tromey <tom@tromey.com>
8162
8163 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
8164 (rust_parser::convert_ast_to_type)
8165 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
8166 * parser-defs.h (struct parser_state) <parser_state>: Add
8167 parameters. Initialize new members.
8168 <expression_context_block, expression_context_pc>: New members.
8169 * parse.c (expression_context_block, expression_context_pc):
8170 Remove globals.
8171 (parse_exp_in_context): Update.
8172 * p-exp.y: Update all rules.
8173 (yylex): Update.
8174 * m2-exp.y: Update all rules.
8175 (yylex): Update.
8176 * go-exp.y (yylex): Update.
8177 * f-exp.y (yylex): Update.
8178 * d-exp.y: Update all rules.
8179 (yylex): Update.
8180 * c-exp.y: Update all rules.
8181 (lex_one_token, classify_name, yylex, c_parse): Update.
8182 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
8183
8184 2019-04-04 Tom Tromey <tom@tromey.com>
8185
8186 * gdbarch.h, gdbarch.c: Rebuild.
8187 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
8188 * stap-probe.h:
8189 (struct stap_parse_info): Replace "parser_state" with
8190 "expr_builder".
8191 * parser-defs.h (struct expr_builder): Rename from "parser_state".
8192 (parser_state): New class.
8193 * parse.c (expr_builder): Rename.
8194 (expr_builder::release): Rename.
8195 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
8196 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
8197 (write_exp_elt_longcst, write_exp_elt_floatcst)
8198 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
8199 (write_exp_string_vector, write_exp_bitstring)
8200 (write_exp_msymbol, mark_struct_expression)
8201 (write_dollar_variable)
8202 (insert_type_address_space, increase_expout_size): Replace
8203 "parser_state" with "expr_builder".
8204 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
8205 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
8206 "parser_state" with "expr_builder".
8207
8208 2019-04-04 Tom Tromey <tom@tromey.com>
8209
8210 * rust-exp.y: Replace "parse_language" with method call.
8211 * p-exp.y:
8212 (yylex): Replace "parse_language" with method call.
8213 * m2-exp.y:
8214 (yylex): Replace "parse_language" with method call.
8215 * go-exp.y (classify_name): Replace "parse_language" with method
8216 call.
8217 * f-exp.y (yylex): Replace "parse_language" with method call.
8218 * d-exp.y (lex_one_token): Replace "parse_language" with method
8219 call.
8220 * c-exp.y:
8221 (lex_one_token, classify_name, yylex): Replace "parse_language"
8222 with method call.
8223 * ada-exp.y (find_primitive_type, type_char)
8224 (type_system_address): Replace "parse_language" with method call.
8225
8226 2019-04-04 Tom Tromey <tom@tromey.com>
8227
8228 * rust-exp.y: Replace "parse_gdbarch" with method call.
8229 * parse.c (write_dollar_variable, insert_type_address_space):
8230 Replace "parse_gdbarch" with method call.
8231 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
8232 call.
8233 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
8234 call.
8235 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
8236 "parse_gdbarch" with method call.
8237 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
8238 with method call.
8239 * f-exp.y (parse_type, parse_f_type, yylex): Replace
8240 "parse_gdbarch" with method call.
8241 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
8242 "parse_gdbarch" with method call.
8243 * c-exp.y (parse_type, parse_number, classify_name): Replace
8244 "parse_gdbarch" with method call.
8245 * ada-lex.l: Replace "parse_gdbarch" with method call.
8246 * ada-exp.y (parse_type, find_primitive_type, type_char)
8247 (type_system_address): Replace "parse_gdbarch" with method call.
8248
8249 2019-04-04 Tom Tromey <tom@tromey.com>
8250
8251 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
8252 * stap-probe.c (stap_parse_argument): Update.
8253 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
8254 initial_size parameter.
8255 * rust-exp.y (rust_lex_tests): Update.
8256 * parse.c (parser_state): Update.
8257 (parse_exp_in_context): Update.
8258 * parser-defs.h (struct parser_state) <parser_state>: Remove
8259 "initial_size" parameter.
8260
8261 2019-04-04 Tom Tromey <tom@tromey.com>
8262
8263 * parser-defs.h (increase_expout_size): Don't declare.
8264 * parse.c (increase_expout_size): Now static.
8265
8266 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
8267
8268 * gnu-nat.c (gnu_nat_target::wait): Fix
8269 target_waitstatus_to_string call.
8270
8271 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8272
8273 * eval.c (evaluate_subexp_standard): Handle internal functions
8274 during Fortran function call handling.
8275
8276 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8277
8278 * NEWS: Mention new internal functions.
8279 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
8280 (read_base_type): Use dwarf2_init_complex_target_type.
8281 * value.c (creal_internal_fn): New function.
8282 (cimag_internal_fn): New function.
8283 (_initialize_values): Register new internal functions.
8284
8285 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8286
8287 * infrun.c (stop_all_threads): If debug_infrun, always
8288 trace the wait status after wait_one, using
8289 target_waitstatus_to_string and target_pid_to_str.
8290 (handle_inferior_event): Replace various trace of
8291 wait status kind by a single trace.
8292 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
8293 wait status kind image by target_waitstatus_to_string.
8294 * target/waitstatus.c (target_waitstatus_to_string): Fix
8295 obsolete comment.
8296
8297 2019-04-01 Tom Tromey <tromey@adacore.com>
8298
8299 PR symtab/23331:
8300 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
8301
8302 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
8303 Pedro Alves <palves@redhat.com>
8304
8305 * top.c (quit_force): Call 'finalize_values'.
8306 * value.c (finalize_values): New function.
8307 * value.h (finalize_values): Declare.
8308
8309 2019-03-30 Eli Zaretskii <eliz@gnu.org>
8310
8311 * NEWS: Announce $_gdb_major and $_gdb_minor.
8312
8313 * top.c (init_gdb_version_vars): New function.
8314 (gdb_init): Call init_gdb_version_vars.
8315
8316 2019-03-29 Tom Tromey <tromey@adacore.com>
8317
8318 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
8319 help text. Remove dead code.
8320
8321 2019-03-29 Keith Seitz <keiths@redhat.com>
8322
8323 From Siddhesh Poyarekar:
8324 * f-lang.h (f77_get_upperbound): Return LONGEST.
8325 (f77_get_lowerbound): Likewise.
8326 * f-typeprint.c (f_type_print_varspec_suffix): Expand
8327 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
8328 print them.
8329 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
8330 plongest to format print it.
8331 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
8332 (f77_get_upperbound): Likewise.
8333 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
8334 LOWER_BOUND to LONGEST.
8335 (f77_create_arrayprint_offset_tbl): Likewise.
8336
8337 2019-03-29 Keith Seitz <keiths@redhat.com>
8338
8339 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
8340 %s/pulongest for TYPE_LENGTH instead of %d in format
8341 strings.
8342 * ada-typerint.c (ada_print_type): Likewise.
8343 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
8344 * compile/compile-c-support.c (generate_register_struct): Likewise.
8345 * gdbtypes.c (recursive_dump_type): Likewise.
8346 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
8347 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
8348 instead of %d in format strings.
8349 * riscv-tdep.c (riscv_type_alignment): Cast second argument
8350 to std::min to ULONGEST.
8351 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
8352 instead of %d in format strings.
8353 * tracepoint.c (info_scope_command): Likewise.
8354 * typeprint.c (print_offset_data::update)
8355 (print_offset_data::finish): Likewise.
8356 * xtensa-tdep.c (xtensa_store_return_value)
8357 (xtensa_push_dummy_call): Likewise.
8358
8359 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
8360
8361 * windows-nat.c (display_selector): Fixed format specifications
8362 for 64-bit Cygwin.
8363
8364 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8365
8366 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
8367
8368 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
8369
8370 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
8371 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
8372 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
8373 (nios2_linux_init_abi): Install it.
8374
8375 2019-03-28 Alan Hayward <alan.hayward@arm.com>
8376
8377 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
8378
8379 2019-03-28 Alan Hayward <alan.hayward@arm.com>
8380
8381 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
8382
8383 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8384 Tom Tromey <tromey@adacore.com>
8385
8386 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
8387
8388 2019-03-26 Joel Brobecker <brobecker@adacore.com>
8389
8390 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
8391 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
8392 method to compute the bounds of range types. Also print "[evaluated]"
8393 if the bounds' values come from a dynamic evaluation.
8394
8395 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
8396
8397 * cp-valprint.c (cp_print_value_fields): Don't print trailing
8398 whitespace when pretty printing is on.
8399
8400 2019-03-26 Alan Hayward <alan.hayward@arm.com>
8401
8402 * ppc-linux-nat.c: Add include.
8403
8404 2019-03-26 Alan Hayward <alan.hayward@arm.com>
8405
8406 * NEWS: Mention AArch64 Pointer Authentication.
8407
8408 2019-03-26 Alan Hayward <alan.hayward@arm.com>
8409
8410 * arm-linux-nat.c: Add include.
8411
8412 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
8413
8414 * source-cache.c (source_cache::get_source_lines): Re-read
8415 fullname after calling open_source_file.
8416
8417 2019-03-25 John Baldwin <jhb@FreeBSD.org>
8418
8419 * NEWS: Mention TLS support for FreeBSD.
8420
8421 2019-03-25 Tom Tromey <tromey@adacore.com>
8422
8423 * minsyms.c (BUNCH_SIZE): Update comment.
8424 (~minimal_symbol_reader): Remove old comment.
8425 (compact_minimal_symbols): Update comment.
8426 (minimal_symbol_reader::install): Remove old comment. Update
8427 other comments.
8428
8429 2019-03-25 Alan Hayward <alan.hayward@arm.com>
8430
8431 * s390-linux-nat.c: Add include.
8432
8433 2019-03-25 Alan Hayward <alan.hayward@arm.com>
8434
8435 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
8436 Call linux_get_hwcap.
8437 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
8438 Likewise.
8439 (aarch64_linux_get_hwcap): Remove function.
8440 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
8441 declaration.
8442 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
8443 linux_get_hwcap.
8444 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
8445 * linux-tdep.c (linux_get_hwcap): Add function.
8446 (linux_get_hwcap2): Likewise.
8447 * linux-tdep.h (linux_get_hwcap): Add declaration.
8448 (linux_get_hwcap2): Likewise.
8449 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
8450 (ppc_linux_get_hwcap2): Likewise.
8451 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
8452 linux_get_hwcap.
8453 (ppc_linux_nat_target::insert_watchpoint): Likewise.
8454 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
8455 (ppc_linux_nat_target::read_description): Likewise.
8456 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
8457 * s390-linux-nat.c: Likewise.
8458 * s390-linux-tdep.c (s390_core_read_description): Likewise.
8459
8460 2019-03-24 Tom Tromey <tom@tromey.com>
8461
8462 * ada-lang.c (standard_lookup): Simplify initialization.
8463 (ada_lookup_symbol_nonlocal): Simplify return.
8464 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
8465 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
8466 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
8467 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
8468 initialization.
8469 * solib.c (solib_global_lookup): Simplify.
8470 * symtab.c (null_block_symbol): Remove.
8471 (symbol_cache_lookup): Simplify returns.
8472 (lookup_language_this): Simplify returns.
8473 (lookup_symbol_aux): Simplify return.
8474 (lookup_local_symbol): Simplify returns.
8475 (lookup_global_symbol_from_objfile): Simplify return.
8476 (lookup_symbol_in_objfile_symtabs)
8477 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
8478 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
8479 (lookup_static_symbol, lookup_global_symbol): Simplify return.
8480 * cp-namespace.c (cp_lookup_bare_symbol)
8481 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
8482 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
8483 (cp_lookup_nested_symbol): Don't use null_block_symbol.
8484 (cp_lookup_symbol_via_imports): Simplify initialization.
8485 (find_symbol_in_baseclass): Likewise.
8486 * symtab.h (null_block_symbol): Remove.
8487 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
8488 (d_lookup_nested_symbol, d_lookup_symbol_imports)
8489 (d_lookup_symbol_module): Likewise.
8490 (find_symbol_in_baseclass): Simplify initialization.
8491
8492 2019-03-24 Tom Tromey <tom@tromey.com>
8493
8494 * expression.h: Don't include symtab.h.
8495 (struct block): Forward declare.
8496
8497 2019-03-24 Tom Tromey <tom@tromey.com>
8498
8499 * c-exp.y (typebase): Remove casts.
8500 * gdbtypes.c (lookup_unsigned_typename, )
8501 (lookup_signed_typename): Remove cast.
8502 * eval.c (parse_to_comma_and_eval): Remove cast.
8503 * parse.c (write_dollar_variable): Remove cast.
8504 * block.h (struct block) <superblock>: Now const.
8505 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
8506 * psymtab.c (psym_map_matching_symbols): Make "block" const.
8507 (map_block): Make "block" const.
8508 * symfile.h (struct quick_symbol_functions)
8509 <map_matching_symbols>: Constify block argument to "callback".
8510 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
8511 const.
8512 (find_pc_sect_compunit_symtab): Make "b" const.
8513 (find_symbol_at_address): Likewise.
8514 (search_symbols): Likewise.
8515 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
8516 (dw2_debug_names_lookup_symbol): Likewise.
8517 (dw2_map_matching_symbols): Update.
8518 * p-valprint.c (pascal_val_print): Remove "block".
8519 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
8520 (aux_add_nonlocal_symbols): Make "block" const.
8521 (resolve_subexp): Remove cast.
8522 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
8523 const.
8524 (iterate_over_file_blocks): Likewise.
8525 * f-exp.y (%union) <bval>: Remove.
8526 * coffread.c (patch_opaque_types): Make "b" const.
8527 * spu-tdep.c (spu_catch_start): Make "block" const.
8528 * c-valprint.c (print_unpacked_pointer): Remove "block".
8529 * symmisc.c (dump_symtab_1): Make "b" const.
8530 (block_depth): Make "block" const.
8531 * d-exp.y (%union) <bval>: Remove.
8532 * cp-support.h (cp_lookup_rtti_type): Update.
8533 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
8534 * psymtab.c (psym_lookup_symbol): Make "block" const.
8535 (maintenance_check_psymtabs): Make "b" const.
8536 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
8537 (enumerate_locals, enumerate_args): Update.
8538 * python/py-symtab.c (stpy_global_block): Make "block" const.
8539 (stpy_static_block): Likewise.
8540 * inline-frame.c (block_starting_point_at): Make "new_block"
8541 const.
8542 * block.c (find_block_in_blockvector): Make return type const.
8543 (blockvector_for_pc_sect): Make "b" const.
8544 (find_block_in_blockvector): Make "b" const.
8545
8546 2019-03-23 Tom Tromey <tom@tromey.com>
8547
8548 * varobj.c (varobj_create): Update.
8549 * symfile.c (clear_symtab_users): Don't reset innermost_block.
8550 * printcmd.c (display_command, do_one_display): Don't reset
8551 innermost_block.
8552 * parser-defs.h (enum innermost_block_tracker_type): Move to
8553 expression.h.
8554 (innermost_block): Update comment.
8555 * parse.c (parse_exp_1): Add tracker_types parameter.
8556 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
8557 tracker_types parameter. Reset innermost_block.
8558 (parse_exp_in_context): Remove.
8559 (parse_expression_for_completion): Update.
8560 * objfiles.c (~objfile): Don't reset expression_context_block or
8561 innermost_block.
8562 * expression.h (enum innermost_block_tracker_type): Move from
8563 parser-defs.h.
8564 (parse_exp_1): Add tracker_types parameter.
8565 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
8566 reset innermost_block.
8567
8568 2019-03-23 Tom Tromey <tom@tromey.com>
8569
8570 * objfiles.h: Include bcache.h.
8571
8572 2019-03-23 Tom Tromey <tom@tromey.com>
8573
8574 * linespec.c (get_current_search_block): Use
8575 scoped_restore_current_language.
8576 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
8577
8578 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8579 Jiong Wang <jiong.wang@arm.com>
8580
8581 * aarch64-linux-tdep.c
8582 (aarch64_linux_iterate_over_regset_sections): Check for pauth
8583 section.
8584 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
8585
8586 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8587 Jiong Wang <jiong.wang@arm.com>
8588
8589 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
8590 instructions.
8591 (aarch64_analyze_prologue_test): Add PACIASP test.
8592 (aarch64_prologue_prev_register): Unmask PC value.
8593
8594 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8595 Jiong Wang <jiong.wang@arm.com>
8596
8597 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
8598 (aarch64_dwarf2_prev_register): Unmask PC value.
8599 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
8600 (aarch64_execute_dwarf_cfa_vendor_op): Check for
8601 DW_CFA_AARCH64_negate_ra_state.
8602 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
8603
8604 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8605 Jiong Wang <jiong.wang@arm.com>
8606
8607 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
8608 registers.
8609 (aarch64_pseudo_register_name): Likewise.
8610 (aarch64_pseudo_register_type): Likewise.
8611 (aarch64_pseudo_register_reggroup_p): Likewise.
8612 (aarch64_gdbarch_init): Add pauth registers.
8613 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
8614 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
8615 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
8616 (struct gdbarch_tdep): Add regnum for ra_state.
8617
8618 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8619 Jiong Wang <jiong.wang@arm.com>
8620
8621 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
8622
8623 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8624 Jiong Wang <jiong.wang@arm.com>
8625
8626 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
8627 function.
8628 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
8629 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
8630 (aarch64_gdbarch_init): Add puth registers.
8631 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
8632 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
8633 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
8634
8635 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8636 Jiong Wang <jiong.wang@arm.com>
8637
8638 * aarch64-linux-nat.c
8639 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
8640 * aarch64-linux-tdep.c
8641 (aarch64_linux_core_read_description): Likewise.
8642 (aarch64_linux_get_hwcap): New function.
8643 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
8644 (aarch64_linux_get_hwcap): New declaration.
8645
8646 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8647 Jiong Wang <jiong.wang@arm.com>
8648
8649 * aarch64-linux-nat.c
8650 (aarch64_linux_nat_target::read_description): Add pauth param.
8651 * aarch64-linux-tdep.c
8652 (aarch64_linux_core_read_description): Likewise.
8653 * aarch64-tdep.c (struct target_desc): Add in pauth.
8654 (aarch64_read_description): Add pauth param.
8655 (aarch64_gdbarch_init): Likewise.
8656 * aarch64-tdep.h (aarch64_read_description): Likewise.
8657 * arch/aarch64.c (aarch64_create_target_description): Likewise.
8658 * arch/aarch64.h (aarch64_create_target_description): Likewise.
8659 * features/Makefile: Add new files.
8660 * features/aarch64-pauth.c: New file.
8661 * features/aarch64-pauth.xml: New file.
8662
8663 2019-03-20 Tom Tromey <tromey@adacore.com>
8664
8665 * infrun.c (handle_inferior_event): Rename from
8666 handle_inferior_event_1. Create a scoped_value_mark.
8667 (handle_inferior_event): Remove.
8668
8669 2019-03-19 Tom Tromey <tromey@adacore.com>
8670
8671 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
8672 * infrun.h (print_stop_event): Add "displays" parameter.
8673 * infrun.c (print_stop_event): Add "displays" parameter.
8674
8675 2019-03-19 Pedro Alves <palves@redhat.com>
8676
8677 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
8678 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
8679 to -1. Fix TABs vs spaces.
8680 (tui_ui_out::tui_ui_out): Don't initialize fields here.
8681 * tui/tui-out.h (tui_ui_out) Add intro comments.
8682 <m_line, m_start_of_line>: In-class initialize, and add describing
8683 comment.
8684
8685 2019-03-18 Alan Hayward <alan.hayward@arm.com>
8686
8687 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
8688 variable names.
8689 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
8690
8691 2019-03-18 Pedro Alves <palves@redhat.com>
8692 Eli Zaretskii <eliz@gnu.org>
8693
8694 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
8695 m_line and m_start_of_line.
8696
8697 2019-03-18 Eli Zaretskii <eliz@gnu.org>
8698
8699 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
8700 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
8701 it returns a newline. This fixes a regression in TU mode, whereby
8702 the next line is output on the same screen line as the user input.
8703
8704 2019-03-18 Tom Tromey <tromey@adacore.com>
8705
8706 * minsyms.c (minimal_symbol_reader::install): Remove call to
8707 obstack_blank.
8708
8709 2019-03-18 Pedro Alves <palves@redhat.com>
8710
8711 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
8712 New globals.
8713 (apply_style): New, factored out from ...
8714 (apply_ansi_escape): ... this. Handle reverse video mode.
8715 (tui_set_reverse_mode): New function.
8716 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
8717 * tui/tui-winsource.c (tui_show_source_line): Use
8718 tui_set_reverse_mode instead of setting A_STANDOUT.
8719 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
8720 New setter methods.
8721
8722 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
8723
8724 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
8725 Handle tabs.
8726
8727 2019-03-18 Tom Tromey <tromey@adacore.com>
8728
8729 * ada-lang.c (empty_array): Add "high" parameter.
8730 (ada_evaluate_subexp): Update.
8731
8732 2019-03-17 Sergei Trofimovich <siarheit@google.com>
8733
8734 * unittests/string_view-selftests.c: Define
8735 _initialize_string_view_selftests unconditionally.
8736
8737 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
8738
8739 PR gdb/24350
8740 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
8741
8742 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
8743
8744 PR gdb/24351
8745 * windows-nat.c (display_selector): Fix format specifiers.
8746
8747 2019-03-17 Eli Zaretskii <eliz@gnu.org>
8748
8749 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
8750 tui_refill_source_window instead of tui_refresh_win, to update the
8751 current execution line. This fixes redisplay of the current line
8752 when stepping through the code with "next" or "step".
8753
8754 2019-03-16 Eli Zaretskii <eliz@gnu.org>
8755
8756 * source-cache.c (source_cache::get_source_lines): Call
8757 find_source_lines to initialize s->nlines. This fixes vertical
8758 scrolling of TUI source window when the DOWN arrow is pressed.
8759
8760 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8761
8762 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
8763 linux-thread-db.c (_initialize_thread_db): Likewise.
8764
8765 2019-03-16 Eli Zaretskii <eliz@gnu.org>
8766
8767 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
8768 wclrtoeol in tui_show_source_line". This reverts changes made in
8769 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
8770
8771 2019-03-15 Tom Tromey <tom@tromey.com>
8772
8773 * symtab.h (struct minimal_symbol): Derive from
8774 general_symbol_info.
8775 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
8776 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8777 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8778 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8779 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
8780 (MSYMBOL_SEARCH_NAME): Update.
8781 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
8782 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
8783 * minsyms.c (minimal_symbol_reader::record_full): Update.
8784
8785 2019-03-15 Tom Tromey <tom@tromey.com>
8786
8787 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
8788
8789 2019-03-15 Tom Tromey <tom@tromey.com>
8790
8791 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
8792 unique_xmalloc_ptr.
8793 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
8794 Update.
8795 * minsyms.c (lookup_minimal_symbol_by_pc_section)
8796 (build_minimal_symbol_hash_tables)
8797 (minimal_symbol_reader::install): Update.
8798
8799 2019-03-15 Tom Tromey <tom@tromey.com>
8800
8801 * symtab.c (create_demangled_names_hash): Update.
8802 (symbol_set_names): Update.
8803 * objfiles.h (struct objfile_per_bfd_storage)
8804 <demangled_names_hash>: Now an htab_up.
8805 * objfiles.c (objfile_per_bfd_storage): Simplify.
8806
8807 2019-03-15 Tom Tromey <tom@tromey.com>
8808
8809 * objfiles.h (struct objfile_per_bfd_storage): Declare
8810 destructor.
8811 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
8812 New.
8813 (get_objfile_bfd_data): Use new. Don't initialize
8814 language_of_main.
8815 (free_objfile_per_bfd_storage): Remove.
8816 (objfile_bfd_data_free, objfile::~objfile): Use delete.
8817
8818 2019-03-15 Tom Tromey <tom@tromey.com>
8819
8820 * symfile.c (reread_symbols): Update.
8821 * objfiles.c (objfile::objfile): Update.
8822 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
8823 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
8824 comment.
8825 (minimal_symbol_reader::install): Update.
8826 (terminate_minimal_symbol_table): Remove.
8827 * jit.c (jit_object_close_impl): Update.
8828
8829 2019-03-15 Tom Tromey <tom@tromey.com>
8830
8831 * minsyms.c (minimal_symbol_reader::record_full): Remove some
8832 initializations.
8833
8834 2019-03-15 Tom Tromey <tom@tromey.com>
8835
8836 * objfiles.h (struct objfile_per_bfd_storage)
8837 <demangled_hash_languages>: Now a bitset.
8838 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
8839 (lookup_minimal_symbol): Update.
8840
8841 2019-03-15 Tom Tromey <tom@tromey.com>
8842
8843 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
8844 Don't return the symbol.
8845 * coffread.c (record_minimal_symbol): Use record_full.
8846
8847 2019-03-14 Eli Zaretskii <eliz@gnu.org>
8848
8849 The MS-Windows port of ncurses fails to switch to a color pair if
8850 one or both of the colors are the implicit default colors. This
8851 change records the default colors when TUI is initialized, and
8852 then specifies them explicitly when a color pair uses the default
8853 colors. This allows color styling in TUI mode on MS-Windows.
8854
8855 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
8856 ncurses_norm_attr.
8857 (tui_initialize_io) [__MINGW32__]: Record the default terminal
8858 colors in ncurses_norm_attr.
8859 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
8860 "none", replace it with the default color recorded in
8861 ncurses_norm_attr.
8862
8863 2019-03-14 Tom Tromey <tromey@adacore.com>
8864
8865 * source-cache.h (class source_cache) <get_source_lines>: Return
8866 std::string.
8867 * source-cache.c (source_cache::extract_lines): Handle case where
8868 first_pos==npos. Return std::string.
8869 (source_cache::get_source_lines): Update.
8870
8871 2019-03-14 Tom Tromey <tromey@adacore.com>
8872
8873 * NEWS: Add item for "style sources" commands.
8874 * source-cache.c (source_cache::get_source_lines): Check
8875 source_styling.
8876 * cli/cli-style.c (source_styling): New global.
8877 (_initialize_cli_style): Add "style sources" commands.
8878 (show_style_sources): New function.
8879 * cli/cli-style.h (source_styling): Declare.
8880
8881 2019-03-14 Pedro Alves <palves@redhat.com>
8882 Tom Tromey <tromey@adacore.com>
8883
8884 * tui/tui-winsource.h (tui_refill_source_window): Declare.
8885 * tui/tui-winsource.c (tui_refill_source_window): New function,
8886 from...
8887 (tui_horizontal_source_scroll): ... here. Move some logic.
8888 * cli/cli-style.c (set_style_enabled): Notify new observable.
8889 * tui/tui-hooks.c (tui_redisplay_source): New function.
8890 (tui_attach_detach_observers): Attach or detach
8891 tui_redisplay_source.
8892 * observable.h (source_styling_changed): New observable.
8893 * observable.c: Define source_styling_changed observable.
8894
8895 2019-03-13 Tom Tromey <tromey@adacore.com>
8896
8897 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
8898 (i386_gnu_nat_target::store_registers): Update.
8899 * target-debug.h (target_debug_print_std_string): New macro.
8900 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
8901 * windows-tdep.c (display_one_tib): Update.
8902 * tui/tui-stack.c (tui_make_status_line): Update.
8903 * top.c (print_inferior_quit_action): Update.
8904 * thread.c (thr_try_catch_cmd): Update.
8905 (add_thread_with_info): Update.
8906 (thread_target_id_str): Update.
8907 (thr_try_catch_cmd): Update.
8908 (thread_command): Update.
8909 (thread_find_command): Update.
8910 * record-btrace.c (record_btrace_target::info_record)
8911 (record_btrace_resume_thread, record_btrace_target::resume)
8912 (record_btrace_cancel_resume, record_btrace_step_thread)
8913 (record_btrace_target::wait, record_btrace_target::wait)
8914 (record_btrace_target::wait, record_btrace_target::stop): Update.
8915 * progspace.c (print_program_space): Update.
8916 * process-stratum-target.c
8917 (process_stratum_target::thread_address_space): Update.
8918 * linux-fork.c (linux_fork_mourn_inferior)
8919 (detach_checkpoint_command, info_checkpoints_command)
8920 (linux_fork_context): Update.
8921 (linux_fork_detach): Update.
8922 (class scoped_switch_fork_info): Update.
8923 (delete_checkpoint_command): Update.
8924 * infrun.c (follow_fork_inferior): Update.
8925 (follow_fork_inferior): Update.
8926 (proceed_after_vfork_done): Update.
8927 (handle_vfork_child_exec_or_exit): Update.
8928 (follow_exec): Update.
8929 (displaced_step_prepare_throw): Update.
8930 (displaced_step_restore): Update.
8931 (start_step_over): Update.
8932 (resume_1): Update.
8933 (clear_proceed_status_thread): Update.
8934 (proceed): Update.
8935 (print_target_wait_results): Update.
8936 (do_target_wait): Update.
8937 (context_switch): Update.
8938 (stop_all_threads): Update.
8939 (restart_threads): Update.
8940 (finish_step_over): Update.
8941 (handle_signal_stop): Update.
8942 (switch_back_to_stepped_thread): Update.
8943 (keep_going_pass_signal): Update.
8944 (print_exited_reason): Update.
8945 (normal_stop): Update.
8946 * inferior.c (inferior_pid_to_str): Change return type.
8947 (print_selected_inferior): Update.
8948 (add_inferior): Update.
8949 (detach_inferior): Update.
8950 * dummy-frame.c (fprint_dummy_frames): Update.
8951 * dcache.c (dcache_info_1): Update.
8952 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
8953 (btrace_fetch, btrace_clear): Update.
8954 * linux-tdep.c (linux_core_pid_to_str): Change return type.
8955 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
8956 type.
8957 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
8958 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
8959 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
8960 * gdbarch.c, gdbarch.h: Rebuild.
8961 * gdbarch.sh (core_pid_to_str): Change return type.
8962 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
8963 return type.
8964 (windows_nat_target::pid_to_str): Change return type.
8965 (windows_delete_thread): Update.
8966 (windows_nat_target::attach): Update.
8967 (windows_nat_target::files_info): Update.
8968 * target-delegates.c: Rebuild.
8969 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
8970 return type.
8971 (sol_thread_target::pid_to_str): Change return type.
8972 * remote.c (class remote_target) <pid_to_str>: Change return
8973 type.
8974 (remote_target::pid_to_str): Change return type.
8975 (extended_remote_target::attach, remote_target::remote_stop_ns)
8976 (remote_target::remote_notif_remove_queued_reply)
8977 (remote_target::push_stop_reply, remote_target::disable_btrace):
8978 Update.
8979 (extended_remote_target::attach): Update.
8980 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
8981 type.
8982 (gdbsim_target::pid_to_str): Change return type.
8983 * ravenscar-thread.c (struct ravenscar_thread_target)
8984 <pid_to_str>: Change return type.
8985 (ravenscar_thread_target::pid_to_str): Change return type.
8986 * procfs.c (class procfs_target) <pid_to_str>: Change return
8987 type.
8988 (procfs_target::pid_to_str): Change return type.
8989 (procfs_target::attach): Update.
8990 (procfs_target::detach): Update.
8991 (procfs_target::fetch_registers): Update.
8992 (procfs_target::store_registers): Update.
8993 (procfs_target::wait): Update.
8994 (procfs_target::files_info): Update.
8995 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
8996 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
8997 return type.
8998 (nto_procfs_target::pid_to_str): Change return type.
8999 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
9000 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
9001 return type.
9002 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
9003 (exit_lwp): Update.
9004 (attach_proc_task_lwp_callback, get_detach_signal)
9005 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
9006 (linux_nat_target::resume, wait_lwp, stop_callback)
9007 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
9008 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
9009 (linux_nat_wait_1, resume_stopped_resumed_lwps)
9010 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
9011 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
9012 type.
9013 (inf_ptrace_target::attach): Update.
9014 (inf_ptrace_target::files_info): Update.
9015 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
9016 type.
9017 (go32_nat_target::pid_to_str): Change return type.
9018 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
9019 (gnu_nat_target::wait): Update.
9020 (gnu_nat_target::wait): Update.
9021 (gnu_nat_target::resume): Update.
9022 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
9023 (fbsd_nat_target::wait): Update.
9024 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
9025 type.
9026 (darwin_nat_target::attach): Update.
9027 * corelow.c (class core_target) <pid_to_str>: Change return type.
9028 (core_target::pid_to_str): Change return type.
9029 * target.c (normal_pid_to_str): Change return type.
9030 (default_pid_to_str): Likewise.
9031 (target_pid_to_str): Change return type.
9032 (target_translate_tls_address): Update.
9033 (target_announce_detach): Update.
9034 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
9035 return type.
9036 (bsd_uthread_target::pid_to_str): Change return type.
9037 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
9038 type.
9039 (bsd_kvm_target::pid_to_str): Change return type.
9040 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
9041 return type.
9042 (aix_thread_target::pid_to_str): Change return type.
9043 * target.h (struct target_ops) <pid_to_str>: Change return type.
9044 (target_pid_to_str, normal_pid_to_str): Likewise.
9045 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
9046 type.
9047 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
9048 type.
9049 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
9050 return type.
9051 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
9052 type.
9053 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
9054 type.
9055 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
9056 return type.
9057
9058 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
9059
9060 * NEWS: Mention that the new default MI version is 3. Mention
9061 changes to the output of commands and events that deal with
9062 multi-location breakpoints.
9063 * breakpoint.c: Include "mi/mi-out.h".
9064 (print_one_breakpoint): Change output syntax if using MI version
9065 >= 3.
9066 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
9067 New.
9068 (mi_multi_location_breakpoint_output_fixed): New.
9069 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
9070 (mi_cmd_fix_multi_location_breakpoint_output): New.
9071 (mi_multi_location_breakpoint_output_fixed): New.
9072 * mi/mi-cmds.c (mi_cmds): Register command
9073 -fix-multi-location-breakpoint-output.
9074 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
9075 interpreter "mi".
9076
9077 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9078
9079 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
9080 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
9081 instantiate mi_ui_out based on interpreter name.
9082 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
9083 * mi/mi-main.c (mi_load_progress): Likewise.
9084
9085 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9086
9087 * NEWS: Combine separate "New targets" sections for 8.3.
9088
9089 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9090
9091 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
9092 (ppcfbsd_init_abi): Install gdbarch
9093 "fetch_tls_load_module_address" and "get_thread_local_address"
9094 methods.
9095
9096 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9097
9098 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
9099 (riscv_fbsd_init_abi): Install gdbarch
9100 "fetch_tls_load_module_address" and "get_thread_local_address"
9101 methods.
9102
9103 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9104
9105 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
9106 (i386fbsd_init_abi): Install gdbarch
9107 "fetch_tls_load_module_address" and "get_thread_local_address"
9108 methods.
9109
9110 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9111
9112 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
9113 (amd64fbsd_init_abi): Install gdbarch
9114 "fetch_tls_load_module_address" and "get_thread_local_address"
9115 methods.
9116
9117 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9118
9119 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
9120 (struct fbsd_pspace_data): New type.
9121 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
9122 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
9123 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
9124 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
9125 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
9126
9127 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9128
9129 * gdbtypes.c (lookup_struct_elt): New function.
9130 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
9131 * gdbtypes.h (struct struct_elt): New type.
9132 (lookup_struct_elt): New prototype.
9133
9134 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9135
9136 * gdbtypes.c (lookup_struct_elt_type): Update comment and
9137 remove disabled code block.
9138
9139 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9140
9141 * gdbarch.sh (get_thread_local_address): New method.
9142 * gdbarch.h, gdbarch.c: Regenerate.
9143 * target.c (target_translate_tls_address): Use
9144 gdbarch_get_thread_local_address if present instead of
9145 target::get_thread_local_address.
9146
9147 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9148
9149 * target.h (target::get_thread_local_address): Update comment.
9150
9151 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9152
9153 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
9154 objfile->separate_debug_objfile_backlink if not NULL.
9155
9156 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9157
9158 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
9159 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
9160 (amd64bsd_store_inferior_registers): Likewise.
9161 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
9162 Enable segment base registers.
9163 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
9164 PT_GETFSBASE and PT_GETGSBASE.
9165 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
9166 PT_SETGSBASE.
9167 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
9168 segment base registers.
9169 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
9170
9171 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9172
9173 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
9174 Update calls to i386_target_description to add 'segments'
9175 parameter.
9176 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
9177 add segment base registers.
9178 * arch/i386.c (i386_create_target_description): Add 'segments'
9179 parameter to enable segment base registers.
9180 * arch/i386.h (i386_create_target_description): Likewise.
9181 * features/i386/32bit-segments.xml: New file.
9182 * features/i386/32bit-segments.c: Generate.
9183 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
9184 call to i386_target_description to add 'segments' parameter.
9185 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
9186 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
9187 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
9188 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
9189 if feature is present.
9190 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
9191 Add 'segments' parameter to call to i386_target_description.
9192 (i386_target_description): Add 'segments' parameter to enable
9193 segment base registers.
9194 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
9195 to call to i386_target_description.
9196 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
9197 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
9198 Define I386_NUM_REGS.
9199 (i386_target_description): Add 'segments' parameter to enable
9200 segment base registers.
9201
9202 2019-03-12 Eli Zaretskii <eliz@gnu.org>
9203
9204 PR/24325
9205 * source-cache.c: #undef open and close, to avoid unresolved
9206 externals during linking.
9207
9208 2019-03-12 Tom Tromey <tromey@adacore.com>
9209
9210 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
9211 const. Add initializers.
9212 (_initialize_remote): Don't initialize ptid globals.
9213
9214 2019-03-12 Pedro Alves <palves@redhat.com>
9215
9216 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
9217
9218 2019-03-12 Pedro Alves <palves@redhat.com>
9219
9220 * cp-name-parser.y (main): Remove unused 'len' variable.
9221
9222 2019-03-12 Tom Tromey <tromey@adacore.com>
9223
9224 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
9225 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
9226
9227 2019-03-12 Tom Tromey <tromey@adacore.com>
9228
9229 * linux-nat.c (iterate_over_lwps): Update.
9230 (stop_callback): Remove parameter.
9231 (stop_wait_callback, detach_callback, resume_set_callback)
9232 (select_singlestep_lwp_callback, set_ignore_sigint)
9233 (status_callback, resumed_callback, resume_clear_callback)
9234 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
9235 data parameter.
9236 (linux_nat_target::detach, linux_nat_target::resume)
9237 (linux_stop_and_wait_all_lwps, select_event_lwp)
9238 (linux_nat_filter_event, linux_nat_wait_1)
9239 (linux_nat_target::kill, linux_nat_target::stop)
9240 (linux_nat_target::stop): Update.
9241 (linux_nat_resume_callback): Change type.
9242 (resume_stopped_resumed_lwps, count_events_callback)
9243 (select_event_lwp_callback): Likewise.
9244 (linux_stop_lwp, linux_nat_stop_lwp): Update.
9245 * arm-linux-nat.c (struct update_registers_data): Remove.
9246 (update_registers_callback): Change type.
9247 (arm_linux_insert_hw_breakpoint1): Update.
9248 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
9249 parameter.
9250 (x86_linux_dr_set_addr): Update.
9251 (x86_linux_dr_set_control): Update.
9252 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
9253 (iterate_over_lwps): Use gdb::function_view.
9254 * nat/aarch64-linux-hw-point.c (struct
9255 aarch64_dr_update_callback_param): Remove.
9256 (debug_reg_change_callback): Change type.
9257 (aarch64_notify_debug_reg_change): Update.
9258 * s390-linux-nat.c (s390_refresh_per_info): Update.
9259
9260 2019-03-11 Tom Tromey <tromey@adacore.com>
9261
9262 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
9263 redundant assignment to "this_cu".
9264
9265 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9266
9267 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
9268
9269 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9270
9271 * gdbtypes.c (rank_one_type_parm_set): New function extracted
9272 from...
9273 (rank_one_type): ... this.
9274
9275 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9276
9277 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
9278 from...
9279 (rank_one_type): ... this.
9280
9281 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9282
9283 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
9284 from...
9285 (rank_one_type): ... this.
9286
9287 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9288
9289 * gdbtypes.c (rank_one_type_parm_float): New function extracted
9290 from...
9291 (rank_one_type): ... this.
9292
9293 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9294
9295 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
9296 from...
9297 (rank_one_type): ... this.
9298
9299 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9300
9301 * gdbtypes.c (rank_one_type_parm_range): New function extracted
9302 from...
9303 (rank_one_type): ... this.
9304
9305 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9306
9307 * gdbtypes.c (rank_one_type_parm_char): New function extracted
9308 from...
9309 (rank_one_type): ... this.
9310
9311 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9312
9313 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
9314 from...
9315 (rank_one_type): ... this.
9316
9317 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9318
9319 * gdbtypes.c (rank_one_type_parm_int): New function extracted
9320 from...
9321 (rank_one_type): ... this.
9322
9323 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9324
9325 * gdbtypes.c (rank_one_type_parm_func): New function extracted
9326 from...
9327 (rank_one_type): ... this.
9328
9329 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9330
9331 * gdbtypes.c (rank_one_type_parm_array): New function extracted
9332 from...
9333 (rank_one_type): ... this.
9334
9335 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9336
9337 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
9338 from...
9339 (rank_one_type): ... this.
9340
9341 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9342
9343 * inferior.c (initialize_inferiors): Ensure 'help set/show print
9344 inferior-events' shows the example events.
9345
9346 2019-03-08 Eli Zaretskii <eliz@gnu.org>
9347
9348 Support styling on native MS-Windows console
9349
9350 PR/24315
9351 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
9352 on MS-Windows if $TERM is not defined.
9353
9354 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
9355
9356 * posix-hdep.c (gdb_console_fputs):
9357 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
9358 functions.
9359 * ui-file.h (gdb_console_fputs): Add prototype.
9360
9361 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
9362 back to fputs only if the former returns zero.
9363
9364 2019-03-07 Tom Tromey <tom@tromey.com>
9365
9366 * symmisc.c (print_symbol_bcache_statistics): Update.
9367 (print_objfile_statistics): Update.
9368 * symfile.c (allocate_symtab): Update.
9369 * stabsread.c: Don't include bcache.h.
9370 * psymtab.h (struct psymbol_bcache): Don't declare.
9371 (class psymtab_storage) <psymbol_cache>: Now a bcache.
9372 (psymbol_bcache_init, psymbol_bcache_free)
9373 (psymbol_bcache_get_bcache): Don't declare.
9374 * psymtab.c (struct psymbol_bcache): Remove.
9375 (psymtab_storage::psymtab_storage): Update.
9376 (psymtab_storage::~psymtab_storage): Update.
9377 (psymbol_bcache_init, psymbol_bcache_free)
9378 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
9379 (add_psymbol_to_bcache): Update.
9380 (allocate_psymtab): Update.
9381 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
9382 macro_cache>: No longer pointers.
9383 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
9384 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
9385 * macrotab.c (macro_bcache): Update.
9386 * macroexp.c: Don't include bcache.h.
9387 * gdbtypes.c (check_types_worklist): Update.
9388 (types_deeply_equal): Remove TRY/CATCH. Update.
9389 * elfread.c (elf_symtab_read): Update.
9390 * dwarf2read.c: Don't include bcache.h.
9391 * buildsym.c (buildsym_compunit::get_macro_table): Update.
9392 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
9393 (print_bcache_statistics, bcache_memory_used): Don't declare.
9394 (struct bcache): Move from bcache.c. Add constructor, destructor,
9395 methods. Rename all data members.
9396 * bcache.c (struct bcache): Move to bcache.h.
9397 (bcache::expand_hash_table): Rename from expand_hash_table.
9398 (bcache): Remove.
9399 (bcache::insert): Rename from bcache_full.
9400 (bcache::compare): Rename from bcache_compare.
9401 (bcache_xmalloc): Remove.
9402 (bcache::~bcache): Rename from bcache_xfree.
9403 (bcache::print_statistics): Rename from print_bcache_statistics.
9404 (bcache::memory_used): Rename from bcache_memory_used.
9405
9406 2019-03-07 Pedro Alves <palves@redhat.com>
9407
9408 * infrun.c (normal_stop): Also check for
9409 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
9410
9411 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
9412
9413 * f-lang.c (value_from_host_double): Moved to...
9414 * value.c (value_from_host_double): ...here.
9415 * value.h (value_from_host_double): Declare.
9416 * guile/scm-math.c (vlscm_convert_typed_number): Use
9417 value_from_host_double.
9418 (vlscm_convert_number): Likewise.
9419 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
9420 * python/py-value.c (convert_value_from_python): Likewise.
9421
9422 2019-03-06 Tom Tromey <tom@tromey.com>
9423
9424 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
9425
9426 2019-03-06 Tom Tromey <tom@tromey.com>
9427
9428 * utils.h (free_current_contents): Don't declare.
9429 * utils.c (free_current_contents): Remove.
9430
9431 2019-03-06 Tom Tromey <tom@tromey.com>
9432
9433 * top.c (quit_force): Update.
9434 * main.c (captured_command_loop): Update.
9435 * common/new-op.c (operator new): Update.
9436 * common/common-exceptions.c (struct catcher)
9437 <save_cleanup_chain>: Remove member.
9438 (exceptions_state_mc_init): Update.
9439 (exception_try_scope_entry): Return nullptr.
9440 (exception_try_scope_exit, exception_rethrow)
9441 (throw_exception_sjlj, throw_exception_cxx): Update.
9442 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
9443 (all_cleanups, do_cleanups, discard_cleanups)
9444 (discard_final_cleanups, save_cleanups, save_final_cleanups)
9445 (restore_cleanups, restore_final_cleanups): Don't declare.
9446 (do_final_cleanups): Remove parameter.
9447 * common/cleanups.c (cleanup_chain, make_cleanup)
9448 (make_cleanup_dtor, all_cleanups, do_cleanups)
9449 (discard_my_cleanups, discard_cleanups)
9450 (discard_final_cleanups, save_my_cleanups, save_cleanups)
9451 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
9452 (null_cleanup): Remove.
9453 (do_final_cleanups): Remove parameter.
9454
9455 2019-03-06 Tom Tromey <tom@tromey.com>
9456
9457 * remote.c (remote_target::remote_parse_stop_reply): Use
9458 unique_xmalloc_ptr.
9459
9460 2019-03-06 Tom Tromey <tom@tromey.com>
9461
9462 * stabsread.c (struct stabs_field_info): Rename from field_info.
9463 <list, fnlist>: Add initializers.
9464 <obstack>: New member.
9465 (read_member_functions, read_struct_fields, read_baseclasses):
9466 Allocate on obstack. Don't use cleanups.
9467 (read_one_struct_field, read_member_functions, read_struct_fields)
9468 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
9469 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
9470 (read_struct_type): Update.
9471
9472 2019-03-06 Tom Tromey <tom@tromey.com>
9473
9474 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
9475 * common/filestuff.h (make_cleanup_close): Don't declare.
9476 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
9477 Remove.
9478
9479 2019-03-06 Tom Tromey <tom@tromey.com>
9480
9481 * solib-aix.c: Use make_scope_exit.
9482
9483 2019-03-06 Tom Tromey <tom@tromey.com>
9484
9485 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
9486 Use make_scope_exit.
9487
9488 2019-03-06 Tom Tromey <tom@tromey.com>
9489
9490 * solib-svr4.c (disable_probes_interface): Remove parameter.
9491 (svr4_handle_solib_event): Use make_scope_exit.
9492
9493 2019-03-06 Tom Tromey <tom@tromey.com>
9494
9495 * remote.c (struct stop_reply_deleter): Remove.
9496 (stop_reply_up): Update.
9497 (struct stop_reply): Derive from notif_event. Don't typedef.
9498 <regcache>: Now a std::vector.
9499 (stop_reply_xfree): Remove.
9500 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
9501 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
9502 (remote_target::discard_pending_stop_replies): Use delete.
9503 (remote_target::remote_parse_stop_reply): Update.
9504 (remote_target::process_stop_reply): Update.
9505 * remote-notif.h (struct notif_event): Add virtual destructor.
9506 Remove "dtr" member.
9507 (struct notif_client) <alloc_event>: Return a unique_ptr.
9508 (notif_event_xfree): Don't declare.
9509 (notif_event_up): New typedef.
9510 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
9511 (notif_event_xfree, do_notif_event_xfree): Remove.
9512 (remote_notif_state_xfree): Update.
9513
9514 2019-03-06 Tom Tromey <tom@tromey.com>
9515
9516 * infrun.c (displaced_step_clear_cleanup): Now a
9517 forward_scope_exit type.
9518 (displaced_step_prepare_throw): Update.
9519 (displaced_step_fixup): Update.
9520
9521 2019-03-06 Tom Tromey <tom@tromey.com>
9522
9523 * inferior.h (class inferior): Update comment.
9524 * gdbthread.h (class thread_info): Update comment.
9525
9526 2019-03-06 Joel Brobecker <brobecker@adacore.com>
9527 Tom Tromey <tom@tromey.com>
9528
9529 * stabsread.h (struct stab_section_list): Remove.
9530 (coffstab_build_psymtabs): Update.
9531 * dbxread.c (symbuf_sections): Now a std::vector.
9532 (sect_idx): New global.
9533 (fill_symbuf): Update.
9534 (coffstab_build_psymtabs): Change type of stabsects parameter.
9535 Update.
9536 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
9537 std::vector.
9538 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
9539 (coff_locate_sections): Update.
9540 (coff_symfile_read): Remove cleanups. Update.
9541 (init_stringtab): Add storage parameter.
9542 (free_stringtab, free_stringtab_cleanup): Remove.
9543 (init_lineno): Add storage parameter.
9544 (free_linetab, free_linetab_cleanup): Remove.
9545
9546 2019-03-06 Pedro Alves <palves@redhat.com>
9547
9548 * linux-fork.c (fork_info::clobber_regs): Delete.
9549 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
9550 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
9551 comment. Adjust.
9552 (scoped_switch_fork_info::scoped_switch_fork_info)
9553 (checkpoint_command, linux_fork_context): Adjust
9554 fork_save_infrun_state calls.
9555
9556 2019-03-06 Pedro Alves <palves@redhat.com>
9557
9558 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
9559 (inf_has_multiple_threads): Return 'bool' and rewrite using
9560 inferior_info::threads().
9561
9562 2019-03-06 Pedro Alves <palves@redhat.com>
9563
9564 * linux-fork.c: Include <list>.
9565 (fork_list): Now a std::list instance.
9566 (fork_info): Add ctor, dtor, and in-class initialize all fields.
9567 (forks_exist_p, find_last_fork): Adjust.
9568 (new_fork): Delete.
9569 (one_fork_p): New.
9570 (add_fork): Adjust.
9571 (free_fork): Delete, folded into fork_info::~fork_info().
9572 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
9573 Adjust.
9574 (init_fork_list): Delete.
9575 (linux_fork_killall, linux_fork_mourn_inferior)
9576 (linux_fork_detach, info_checkpoints_command): Adjust.
9577 (_initialize_linux_fork): No longer call init_fork_list.
9578
9579 2019-03-06 Pedro Alves <palves@redhat.com>
9580
9581 * linux-fork.c (new_fork): New, split out of ...
9582 (add_fork): ... this. Return void. Move "first fork" special
9583 case from here, to ...
9584 (checkpoint_command): ... here.
9585 * linux-linux.h (add_fork): Return void.
9586
9587 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9588
9589 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
9590
9591 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9592 Chris January <chris.january@arm.com>
9593 David Lecomber <david.lecomber@arm.com>
9594
9595 * f-exp.y: New token, UNOP_INTRINSIC.
9596 (exp): New pattern using UNOP_INTRINSIC token.
9597 (f77_keywords): Add 'abs' keyword.
9598 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
9599 (value_from_host_double): New function.
9600 (evaluate_subexp_f): Support UNOP_ABS.
9601
9602 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9603
9604 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
9605 types.
9606
9607 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9608
9609 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
9610 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
9611 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
9612
9613 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9614
9615 * f-exp.y (convert_to_kind_type): Handle more type kinds.
9616
9617 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9618 Chris January <chris.january@arm.com>
9619
9620 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
9621 * f-exp.y: Define 'KIND' token.
9622 (exp): New pattern for KIND expressions.
9623 (ptype): Handle types with a kind extension.
9624 (direct_abs_decl): Extend to spot kind extensions.
9625 (f77_keywords): Add 'kind' to the list.
9626 (push_kind_type): New function.
9627 (convert_to_kind_type): New function.
9628 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
9629 * parse.c (operator_length_standard): Likewise.
9630 * parser-defs.h (enum type_pieces): Add tp_kind.
9631 * std-operator.def: Add UNOP_KIND.
9632
9633 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9634
9635 * f-exp.y (f_parse): Set yydebug.
9636
9637 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9638
9639 * f-lang.c (evaluate_subexp_f): New function.
9640 (exp_descriptor_f): New global.
9641 (f_language_defn): Use exp_descriptor_f instead of
9642 exp_descriptor_standard.
9643
9644 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9645
9646 * f-exp.y (struct token): Add comments.
9647 (dot_ops): Remove uppercase versions and the end marker.
9648 (f77_keywords): Likewise.
9649 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
9650 entries in the dot_ops array are case insensitive, and use
9651 strncasecmp to compare strings. Also some whitespace cleanup in
9652 this area. Similar for the f77_keywords array, except entries in
9653 this list might be case sensitive.
9654
9655 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9656
9657 * f-exp.y (struct f77_boolean_val): Add comments.
9658 (boolean_values): Remove uppercase versions, and end marker.
9659 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
9660 and use strncasecmp to achieve case insensitivity. Additionally,
9661 perform whitespace cleanup around this code.
9662
9663 2019-03-06 Tom Tromey <tromey@adacore.com>
9664
9665 * remote-sim.c (gdbsim_target_open): Use result of
9666 gdb_argv::release.
9667
9668 2019-03-06 Richard Bunt <richard.bunt@arm.com>
9669 Dirk Schubert <dirk.schubert@arm.com>
9670 Chris January <chris.january@arm.com>
9671
9672 * eval.c (evaluate_subexp_standard): Call Fortran argument
9673 wrapping logic.
9674 * f-lang.c (struct value): A value which can be passed into a
9675 Fortran function call.
9676 (fortran_argument_convert): Wrap Fortran arguments in a pointer
9677 where appropriate.
9678 (struct type): Value ready for a Fortran function call.
9679 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
9680 is needed.
9681 * f-lang.h (fortran_argument_convert): Declaration.
9682 (fortran_preserve_arg_pointer): Declaration.
9683 * infcall.c (value_arg_coerce): Call Fortran argument logic.
9684
9685 2019-03-05 Tom Tromey <tromey@adacore.com>
9686
9687 * python/py-prettyprint.c (print_string_repr): Remove #if.
9688 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
9689
9690 2019-03-05 Tom Tromey <tromey@adacore.com>
9691
9692 * target.c (the_dummy_target): Move later. Change type to
9693 "dummy_target".
9694 (initialize_targets): Don't initialize the_dummy_target.
9695
9696 2019-03-05 Tom Tromey <tromey@adacore.com>
9697
9698 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
9699 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
9700
9701 2019-03-05 Tom Tromey <tromey@adacore.com>
9702
9703 * windows-nat.c (windows_nat_target::attach)
9704 (windows_nat_target::detach): Don't call gdb_flush.
9705 * valprint.c (generic_val_print, val_print, val_print_string):
9706 Don't call gdb_flush.
9707 * utils.c (defaulted_query): Don't call gdb_flush.
9708 * typeprint.c (print_type_scalar): Don't call gdb_flush.
9709 * target.c (target_announce_detach): Don't call gdb_flush.
9710 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
9711 * remote.c (extended_remote_target::attach): Don't call
9712 gdb_flush.
9713 * procfs.c (procfs_target::detach): Don't call gdb_flush.
9714 * printcmd.c (do_examine): Don't call gdb_flush.
9715 (info_display_command): Don't call gdb_flush.
9716 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
9717 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
9718 * memattr.c (info_mem_command): Don't call gdb_flush.
9719 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
9720 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
9721 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
9722 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
9723 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
9724 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
9725 (gnu_nat_target::detach): Don't call gdb_flush.
9726 * f-valprint.c (f_val_print): Don't call gdb_flush.
9727 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
9728 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
9729 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
9730 gdb_flush.
9731 * c-valprint.c (c_val_print): Don't call gdb_flush.
9732 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
9733
9734 2019-03-05 Tom Tromey <tromey@adacore.com>
9735
9736 * varobj.c (update_dynamic_varobj_children): Update.
9737 (install_default_visualizer): Use reset, not release.
9738 * value.c (set_internalvar): Update.
9739 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
9740 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
9741 ATTRIBUTE_UNUSED_RESULT.
9742
9743 2019-03-05 Tom Tromey <tromey@adacore.com>
9744
9745 * remote.c (class scoped_remote_fd) <release>: Add
9746 ATTRIBUTE_UNUSED_RESULT.
9747
9748 2019-03-05 Tom Tromey <tromey@adacore.com>
9749
9750 * macroexp.c (struct macro_buffer) <release>: Add
9751 ATTRIBUTE_UNUSED_RESULT.
9752
9753 2019-03-05 Tom Tromey <tromey@adacore.com>
9754
9755 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
9756 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
9757 ATTRIBUTE_UNUSED_RESULT.
9758
9759 2019-03-05 Tom Tromey <tromey@adacore.com>
9760
9761 * common/scoped_fd.h (class scoped_fd) <release>: Add
9762 ATTRIBUTE_UNUSED_RESULT.
9763
9764 2019-03-05 Tom Tromey <tromey@adacore.com>
9765
9766 * parser-defs.h (struct parser_state) <release>: Add
9767 ATTRIBUTE_UNUSED_RESULT.
9768
9769 2019-03-05 Tom Tromey <tromey@adacore.com>
9770
9771 * utils.h (class gdb_argv) <release>: Add
9772 ATTRIBUTE_UNUSED_RESULT.
9773 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
9774
9775 2019-03-02 Eli Zaretskii <eliz@gnu.org>
9776
9777 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
9778 for-loop range, to avoid compiler warnings.
9779
9780 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
9781 avoid compiler warnings about unused variables.
9782
9783 * NEWS: Mention end of support for native debugging on MS-Windows
9784 before XP.
9785
9786 PR gdb/24292
9787 * common/netstuff.c:
9788 * gdbserver/gdbreplay.c
9789 * gdbserver/remote-utils.c:
9790 * ser-tcp.c:
9791 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
9792 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
9793 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
9794 'getaddrinfo' and 'freeaddrinfo' were not available before
9795 Windows XP, and mingw.org's MinGW headers by default define
9796 _WIN32_WINNT to 0x500.
9797
9798 2019-03-01 Gary Benson <gbenson@redhat.com>
9799
9800 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
9801
9802 2019-02-28 Brian Vandenberg <phantall@gmail.com>
9803 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9804
9805 PR gdb/8527
9806 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
9807 set_sigint_trap, clear_sigint_trap.
9808
9809 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9810
9811 * target.c (target_detach): Clear the regcache and the
9812 frame cache.
9813
9814 2019-02-27 Pedro Alves <palves@redhat.com>
9815
9816 * utils.c (set_screen_size): When we cap the height/width sizes,
9817 tweak the corresponding command variable to show "unlimited":
9818
9819 2019-02-27 Saagar Jha <saagar@saagarjha.com>
9820 Pedro Alves <palves@redhat.com>
9821
9822 * utils.c (set_screen_size): Reduce "infinite" rows and columns
9823 before calling rl_set_screen_size.
9824
9825 2019-02-27 Tom Tromey <tromey@adacore.com>
9826
9827 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
9828 define.
9829 * python/py-value.c: Remove Python 2.4 workaround.
9830 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
9831 workaround.
9832 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
9833 Python 2.4 workaround.
9834 * python/python-internal.h: Remove Python 2.4 comment.
9835 (Py_ssize_t): Don't define.
9836 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
9837 (gdb_Py_DECREF): Remove Python 2.4 workaround.
9838 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
9839 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
9840 * python/python.c (do_start_initialization): Remove Python 2.4
9841 workaround.
9842 * python/py-prettyprint.c (class dummy_python_frame): Remove.
9843 (print_children): Remove Python 2.4 workaround.
9844 * python/py-inferior.c (buffer_procs): Remove Python 2.4
9845 workaround.
9846 (CHARBUFFERPROC_NAME): Remove.
9847 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
9848 Python 2.4 workaround.
9849
9850 2019-02-27 Kevin Buettner <kevinb@redhat.com>
9851
9852 * NEWS: Note minimum Python version.
9853
9854 2019-02-27 Kevin Buettner <kevinb@redhat.com>
9855
9856 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
9857 code from these functions. Remove corresponding ifdefs. Use
9858 Py_buffer_up instead of explicit calls to PyBuffer_Release.
9859 Remove gotos and target of gotos.
9860 (infpy_search_memory): Likewise.
9861
9862 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9863
9864 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
9865 (hppa_gdbarch_init): Don't register deleted functions with
9866 gdbarch.
9867
9868 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9869
9870 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
9871 (h8300_unwind_sp): Delete.
9872 (h8300_dummy_id): Delete.
9873 (h8300_gdbarch_init): Don't register deleted functions with
9874 gdbarch.
9875
9876 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9877
9878 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
9879 (ft32_unwind_pc): Delete.
9880 (ft32_unwind_sp): Delete.
9881 (ft32_gdbarch_init): Don't register deleted functions with
9882 gdbarch.
9883
9884 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9885
9886 * gdb/frv-tdep.c (frv_dummy_id): Delete.
9887 (frv_unwind_pc): Delete.
9888 (frv_unwind_sp): Delete.
9889 (frv_gdbarch_init): Don't register deleted functions with
9890 gdbarch.
9891
9892 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9893
9894 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
9895 (riscv_unwind_pc): Delete.
9896 (riscv_unwind_sp): Delete.
9897 (riscv_gdbarch_init): Don't register deleted functions with
9898 gdbarch.
9899
9900 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9901
9902 * gdb/csky-tdep.c (csky_dummy_id): Delete.
9903 (csky_unwind_pc): Delete.
9904 (csky_unwind_sp): Delete.
9905 (csky_gdbarch_init): Don't register deleted functions with
9906 gdbarch.
9907
9908 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9909
9910 * gdb/cris-tdep.c (cris_dummy_id): Delete.
9911 (cris_unwind_pc): Delete.
9912 (cris_unwind_sp): Delete.
9913 (cris_gdbarch_init): Don't register deleted functions with
9914 gdbarch.
9915
9916 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9917
9918 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
9919 (bfin_unwind_pc): Delete.
9920 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
9921
9922 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9923
9924 * gdb/arm-tdep.c (arm_dummy_id): Delete.
9925 (arm_unwind_pc): Delete.
9926 (arm_unwind_sp): Delete.
9927 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
9928
9929 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9930
9931 * gdb/arc-tdep.c (arc_dummy_id): Delete.
9932 (arc_unwind_pc): Delete.
9933 (arc_unwind_sp): Delete.
9934 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
9935
9936 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9937
9938 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
9939 (alpha_unwind_pc): Delete.
9940 (alpha_gdbarch_init): Don't register deleted functions with
9941 gdbarch.
9942
9943 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9944
9945 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
9946 (aarch64_unwind_pc): Delete.
9947 (aarch64_unwind_sp): Delete.
9948 (aarch64_gdbarch_init): Don't register deleted functions with
9949 gdbarch.
9950
9951 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9952
9953 * gdbtypes.c (type_align): Don't consider static members when
9954 computing structure alignment.
9955
9956 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9957
9958 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
9959 return 0 for other types.
9960 * arch-utils.c (default_type_align): Always return 0.
9961 * gdbarch.h: Regenerate.
9962 * gdbarch.sh (type_align): Extend comment.
9963 * gdbtypes.c (type_align): Add additional comments, always call
9964 gdbarch_type_align before applying the default rules.
9965 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
9966 generic code will then apply a suitable default.
9967 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
9968 types, return 0 for other types.
9969
9970 2019-02-27 Joel Brobecker <brobecker@adacore.com>
9971
9972 * NEWS: Create a new section for the next release branch.
9973 Rename the section of the current branch, now that it has
9974 been cut.
9975
9976 2019-02-27 Joel Brobecker <brobecker@adacore.com>
9977
9978 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
9979 * version.in: Bump version to 8.3.50.DATE-git.
9980
9981 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
9982
9983 * aix-thread.c (ptid_cmp): Remove unused variable.
9984 (get_signaled_thread): Likewise.
9985 (store_regs_user_thread): Likewise.
9986 (store_regs_kernel_thread): Likewise.
9987 (fetch_regs_kernel_thread): Remove shadowed variable.
9988
9989 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
9990
9991 * features/riscv/32bit-cpu.xml: Add register numbers.
9992 * features/riscv/32bit-fpu.c: Regenerate.
9993 * features/riscv/32bit-fpu.xml: Add register numbers.
9994 * features/riscv/64bit-cpu.xml: Add register numbers.
9995 * features/riscv/64bit-fpu.c: Regenerate.
9996 * features/riscv/64bit-fpu.xml: Add register numbers.
9997
9998 2019-02-26 Kevin Buettner <kevinb@redhat.com>
9999
10000 * NEWS: Mention two argument form of gdb.Value constructor.
10001 * python/py-value.c (convert_buffer_and_type_to_value): New
10002 function.
10003 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
10004 Add support for handling an optional second argument. Call
10005 convert_buffer_and_type_to_value as appropriate.
10006 * python/python-internal.h (Py_buffer_deleter): New struct.
10007 (Py_buffer_up): New typedef.
10008
10009 2019-02-25 John Baldwin <jhb@FreeBSD.org>
10010
10011 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
10012 instead of releasing ownership.
10013
10014 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
10015
10016 * dwarf2read.c (open_and_init_dwp_file): Call
10017 elf_numsections instead of bfd_count_sections to initialize
10018 dwp_file->num_sections.
10019
10020 2019-02-25 Tom Tromey <tromey@adacore.com>
10021
10022 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
10023
10024 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
10025
10026 * gcore.in: Add '--readnever' option when invoking GDB.
10027
10028 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
10029
10030 * MAINTAINERS: Update my email address.
10031
10032 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
10033
10034 * build-id.c (build_id_to_debug_bfd_1): New function.
10035 (build_id_to_debug_bfd): Look for separate debug file in
10036 sysroot.
10037
10038 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
10039
10040 * gdbarch.sh: Update the copyright year range that is placed into
10041 generated files.
10042
10043 2019-02-22 Keith Seitz <keiths@redhat.com>
10044
10045 PR symtab/23853
10046 * linespec.c (create_sals_line_offset): Search for the default
10047 symtab's filename instead of its fullname.
10048
10049 2019-02-21 Alan Hayward <alan.hayward@arm.com>
10050
10051 * NEWS: Update style defaults.
10052
10053 2019-02-21 Alan Hayward <alan.hayward@arm.com>
10054
10055 * main.c (captured_main_1): Disable styling in batch mode.
10056
10057 2019-02-20 Tom Tromey <tom@tromey.com>
10058
10059 * symtab.c (symtab_symbol_info): Fix typos.
10060
10061 2019-02-20 Tom Tromey <tromey@adacore.com>
10062
10063 * findcmd.c (_initialize_mem_search): Use upper case for
10064 metasyntactic variables.
10065
10066 2019-02-20 Alan Hayward <alan.hayward@arm.com>
10067
10068 * aarch64-tdep.c (aarch64_add_reggroups): New function.
10069 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
10070
10071 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
10072
10073 * top.h (source_file_name): Change to std::string.
10074 * top.c (source_file_name): Likewise.
10075 (command_line_input): Adjust.
10076 * cli/cli-script.c (script_from_file): Adjust.
10077
10078 2019-02-19 Tom Tromey <tromey@adacore.com>
10079
10080 * ravenscar-thread.c
10081 (ravenscar_thread_target::update_thread_list): Don't call
10082 ada_build_task_list.
10083 * ada-lang.h (ada_build_task_list): Don't declare.
10084 * ada-tasks.c (struct ada_tasks_inferior_data)
10085 <task_list_valid_p>: Now bool.
10086 (read_known_tasks, ada_task_list_changed)
10087 (ada_tasks_invalidate_inferior_data): Update.
10088 (read_known_tasks_array): Return bool.
10089 (read_known_tasks_list): Likewise.
10090 (read_known_tasks): Return void.
10091 (ada_build_task_list): Now static.
10092
10093 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
10094
10095 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
10096 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
10097
10098 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10099
10100 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
10101 variant for ada_tasks_pspace_data_handle and
10102 ada_tasks_inferior_data_handle.
10103 (ada_tasks_pspace_data_cleanup): New function.
10104 (ada_tasks_inferior_data_cleanup): New function.
10105
10106 2019-02-17 Tom Tromey <tom@tromey.com>
10107
10108 * macrotab.h (macro_source_fullname): Return a std::string.
10109 * macrotab.c (macro_include, check_for_redefinition)
10110 (macro_undef, macro_lookup_definition, foreach_macro)
10111 (foreach_macro_in_scope): Update.
10112 (macro_source_fullname): Return a std::string.
10113 * macrocmd.c (show_pp_source_pos): Update.
10114
10115 2019-02-17 Tom Tromey <tom@tromey.com>
10116
10117 * macrocmd.c (show_pp_source_pos): Style the file names.
10118
10119 2019-02-17 Tom Tromey <tom@tromey.com>
10120
10121 PR tui/24197:
10122 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
10123
10124 2019-02-17 Tom Tromey <tom@tromey.com>
10125
10126 * ada-lang.c (user_select_syms): Use filtered printing.
10127 * utils.c (wrap_style): New global.
10128 (desired_style): Remove.
10129 (emit_style_escape): Add stream parameter.
10130 (set_output_style, reset_terminal_style, prompt_for_continue):
10131 Update.
10132 (flush_wrap_buffer): Only flush gdb_stdout.
10133 (wrap_here): Set wrap_style.
10134 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
10135 treat escape sequences as a character. Change when wrap buffer is
10136 flushed.
10137 (fputs_styled): Do not set the output style when the default is
10138 requested.
10139 * ui-style.h (struct ui_file_style) <is_default>: New method.
10140 * source.c (print_source_lines_base): Emit escape sequences in one
10141 piece.
10142
10143 2019-02-17 Joel Brobecker <brobecker@adacore.com>
10144
10145 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
10146 integers and enumeration types.
10147
10148 2019-02-17 Joel Brobecker <brobecker@adacore.com>
10149
10150 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
10151 instead of lookup_symbol_in_language
10152 (do_exact_match): New function.
10153 (ada_get_symbol_name_matcher): Return do_exact_match when
10154 doing a verbatim match.
10155
10156 2019-02-15 Tom Tromey <tromey@adacore.com>
10157
10158 * ravenscar-thread.c (ravenscar_thread_target::resume)
10159 (ravenscar_thread_target::wait): Special case wildcard requests.
10160
10161 2019-02-15 Tom Tromey <tromey@adacore.com>
10162
10163 * ravenscar-thread.c (base_ptid): Remove.
10164 (struct ravenscar_thread_target) <close>: New method.
10165 <m_base_ptid>: New member.
10166 <update_inferior_ptid, active_task, task_is_currently_active,
10167 runtime_initialized>: Declare methods.
10168 <ravenscar_thread_target>: Add constructor.
10169 (ravenscar_thread_target::task_is_currently_active)
10170 (ravenscar_thread_target::update_inferior_ptid)
10171 (ravenscar_runtime_initialized): Rename. Now methods.
10172 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
10173 (ravenscar_thread_target::update_thread_list): Update.
10174 (ravenscar_thread_target::active_task): Now method.
10175 (ravenscar_thread_target::store_registers)
10176 (ravenscar_thread_target::prepare_to_store)
10177 (ravenscar_thread_target::prepare_to_store)
10178 (ravenscar_thread_target::mourn_inferior): Update.
10179 (ravenscar_inferior_created): Use "new" to create target.
10180 (ravenscar_thread_target::get_ada_task_ptid): Update.
10181 (_initialize_ravenscar): Don't initialize base_ptid.
10182 (ravenscar_ops): Remove global.
10183
10184 2019-02-15 Tom Tromey <tromey@adacore.com>
10185
10186 * target.h (push_target): Declare new overload.
10187 * target.c (push_target): New overload, taking an rvalue reference.
10188 * remote.c (remote_target::open_1): Use push_target overload.
10189 * corelow.c (core_target_open): Use push_target overload.
10190
10191 2019-02-15 Tom Tromey <tromey@adacore.com>
10192
10193 * ravenscar-thread.c (is_ravenscar_task)
10194 (ravenscar_task_is_currently_active): Return bool.
10195 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
10196 (_initialize_ravenscar): Remove "(void)".
10197 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
10198 Return bool.
10199
10200 2019-02-15 Tom Tromey <tromey@adacore.com>
10201
10202 * ravenscar-thread.c (ravenscar_runtime_initializer)
10203 (has_ravenscar_runtime, get_running_thread_id)
10204 (ravenscar_thread_target::resume): Fix indentation.
10205
10206 2019-02-15 Tom Tromey <tromey@adacore.com>
10207
10208 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
10209 from ravenscar_arch_ops.
10210 (sparc_ravenscar_ops::fetch_registers)
10211 (sparc_ravenscar_ops::store_registers): Now methods.
10212 (sparc_ravenscar_prepare_to_store): Remove.
10213 (sparc_ravenscar_ops): Redefine.
10214 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
10215 methods and destructor. Remove members.
10216 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
10217 (ravenscar_thread_target::store_registers)
10218 (ravenscar_thread_target::prepare_to_store): Update.
10219 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
10220 Remove.
10221 (struct ppc_ravenscar_powerpc_ops): Derive from
10222 ravenscar_arch_ops.
10223 (ppc_ravenscar_powerpc_ops::fetch_registers)
10224 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
10225 (ppc_ravenscar_powerpc_ops): Redefine.
10226 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
10227 (ppc_ravenscar_e500_ops::fetch_registers)
10228 (ppc_ravenscar_e500_ops::store_registers): Now methods.
10229 (ppc_ravenscar_e500_ops): Redefine.
10230 * aarch64-ravenscar-thread.c
10231 (aarch64_ravenscar_generic_prepare_to_store): Remove.
10232 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
10233 (aarch64_ravenscar_fetch_registers)
10234 (aarch64_ravenscar_store_registers): Now methods.
10235 (aarch64_ravenscar_ops): Redefine.
10236
10237 2019-02-15 Tom Tromey <tromey@adacore.com>
10238
10239 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
10240 (ravenscar_thread_target::stopped_by_hw_breakpoint)
10241 (ravenscar_thread_target::stopped_by_watchpoint)
10242 (ravenscar_thread_target::stopped_data_address)
10243 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
10244
10245 2019-02-15 Tom Tromey <tromey@adacore.com>
10246
10247 * ravenscar-thread.c: Fix some typos.
10248
10249 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10250 Tom Tromey <tromey@adacore.com>
10251
10252 * ada-lang.c (ada_exception_sal): Change addr_string to a
10253 std::string.
10254 (create_ada_exception_catchpoint): Update.
10255
10256 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10257 Tom Tromey <tromey@adacore.com>
10258
10259 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
10260 (bp_location_ops): Remove.
10261 (base_breakpoint_allocate_location): Update.
10262 (free_bp_location): Update.
10263 * ada-lang.c (class ada_catchpoint_location)
10264 <ada_catchpoint_location>: Remove ops parameter.
10265 (ada_catchpoint_location_dtor): Remove.
10266 (ada_catchpoint_location_ops): Remove.
10267 (allocate_location_exception): Update.
10268 * breakpoint.h (struct bp_location_ops): Remove.
10269 (class bp_location) <bp_location>: Remove bp_location_ops
10270 parameter.
10271 <~bp_location>: Add destructor.
10272 <ops>: Remove.
10273
10274 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10275 Pedro Alves <palves@redhat.com>
10276
10277 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
10278 'PATH_MAX'.
10279
10280 2019-02-14 David Michael <fedora.dm0@gmail.com>
10281 Samuel Thibault <samuel.thibault@gnu.org>
10282 Thomas Schwinge <thomas@codesourcery.com>
10283
10284 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
10285 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
10286
10287 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10288
10289 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
10290 (check_empty): Use "const char *".
10291
10292 * gnu-nat.c (gnu_nat_target::detach): Instead of
10293 'detach_inferior (pid)' call
10294 'detach_inferior (find_inferior_pid (pid))'.
10295
10296 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
10297 'nat/fork-inferior.o'.
10298 * gnu-nat.c: #include "nat/fork-inferior.h".
10299
10300 * gnu-nat.c (gnu_nat_target::detach): Instead of
10301 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
10302 * gnu-nat.h: #include "inf-child.h".
10303 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
10304 'i386_gnu_nat_target::fetch_registers'.
10305 (gnu_store_registers): Rename/move to
10306 'i386_gnu_nat_target::store_registers'.
10307
10308 * config/i386/nm-i386gnu.h: Don't "#include" any files.
10309 * gnu-nat.h (mach_thread_info): New function.
10310 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
10311
10312 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
10313
10314 2019-02-14 Frederic Konrad <konrad@adacore.com>
10315
10316 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
10317
10318 2019-02-14 Joel Brobecker <brobecker@adacore.com>
10319
10320 * windows-nat.c (windows_add_thread): Add new parameter
10321 "main_thread_p" with default value set to false. Update
10322 function documentation as well as all callers.
10323 (windows_delete_thread): Likewise.
10324 (fake_create_process): Update call to windows_add_thread.
10325 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
10326 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
10327 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
10328 call to windows_delete_thread.
10329
10330 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
10331
10332 * MAINTAINERS: Add Andrew Burgess as global maintainer.
10333
10334 2019-02-12 John Baldwin <jhb@FreeBSD.org>
10335
10336 * symfile.c (find_separate_debug_file): Use canonical path of
10337 sysroot with child_path instead of gdb_sysroot if it is valid.
10338
10339 2019-02-12 John Baldwin <jhb@FreeBSD.org>
10340
10341 * symfile.c (find_separate_debug_file): Use child_path to
10342 determine if an object file is under a sysroot.
10343
10344 2019-02-12 John Baldwin <jhb@FreeBSD.org>
10345
10346 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10347 unittests/child-path-selftests.c.
10348 * common/pathstuff.c (child_path): New function.
10349 * common/pathstuff.h (child_path): New prototype.
10350 * unittests/child-path-selftests.c: New file.
10351
10352 2019-02-12 John Baldwin <jhb@FreeBSD.org>
10353
10354 * symfile.c (find_separate_debug_file): Look for separate debug
10355 files in debug directories under the sysroot.
10356
10357 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10358
10359 * symtab.h (struct minimal_symbol data_p): New const method.
10360 (struct minimal_symbol text_p): Likewise.
10361 * symtab.c (output_source_filename): Use file name style
10362 to print file name.
10363 (print_symbol_info): Likewise.
10364 (print_msymbol_info): Use address style to print addresses.
10365 Use function name style to print executable text symbols.
10366 (expand_symtab_containing_pc): Use data_p.
10367 (find_pc_sect_compunit_symtab): Likewise.
10368
10369 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10370
10371 * breakpoint.c (describe_other_breakpoints): Use address style
10372 to print addresses.
10373 (say_where): Likewise.
10374
10375 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10376
10377 * ada-typeprint.c (print_func_type): Print function name
10378 style to print function name.
10379 * c-typeprint.c (c_print_type_1): Likewise.
10380
10381 2019-02-11 Alan Hayward <alan.hayward@arm.com>
10382
10383 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
10384 for execve.
10385
10386 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10387
10388 * c-exp.y (direct_abs_decl): Use emplace_back to record the
10389 type_stack.
10390
10391 2019-02-10 Joel Brobecker <brobecker@adacore.com>
10392
10393 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
10394 TYPE_CODE_REF types.
10395
10396 2019-02-08 Jim Wilson <jimw@sifive.com>
10397
10398 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
10399 (riscv_linux_fregset): New.
10400 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
10401
10402 2019-02-07 Tom Tromey <tom@tromey.com>
10403
10404 * thread.c (thread_cancel_execution_command): Update.
10405 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
10406 methods.
10407 (struct thread_fsm_ops): Remove.
10408 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
10409 (thread_fsm_should_stop, thread_fsm_return_value)
10410 (thread_fsm_set_finished, thread_fsm_finished_p)
10411 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
10412 Don't declare.
10413 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
10414 * infrun.c (clear_proceed_status_thread)
10415 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
10416 (print_stop_event): Update.
10417 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
10418 Add constructor.
10419 (step_command_fsm_ops): Remove.
10420 (new_step_command_fsm): Remove.
10421 (step_1): Update.
10422 (step_command_fsm::should_stop): Rename from
10423 step_command_fsm_should_stop.
10424 (step_command_fsm::clean_up): Rename from
10425 step_command_fsm_clean_up.
10426 (step_command_fsm::do_async_reply_reason): Rename from
10427 step_command_fsm_async_reply_reason.
10428 (struct until_next_fsm): Inherit from thread_fsm. Add
10429 constructor.
10430 (until_next_fsm_ops): Remove.
10431 (new_until_next_fsm): Remove.
10432 (until_next_fsm::should_stop): Rename from
10433 until_next_fsm_should_stop.
10434 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
10435 (until_next_fsm::do_async_reply_reason): Rename from
10436 until_next_fsm_async_reply_reason.
10437 (struct finish_command_fsm): Inherit from thread_fsm. Add
10438 constructor. Change type of breakpoint.
10439 (finish_command_fsm_ops): Remove.
10440 (new_finish_command_fsm): Remove.
10441 (finish_command_fsm::should_stop): Rename from
10442 finish_command_fsm_should_stop.
10443 (finish_command_fsm::clean_up): Rename from
10444 finish_command_fsm_clean_up.
10445 (finish_command_fsm::return_value): Rename from
10446 finish_command_fsm_return_value.
10447 (finish_command_fsm::do_async_reply_reason): Rename from
10448 finish_command_fsm_async_reply_reason.
10449 (finish_command): Update.
10450 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
10451 Add constructor.
10452 (call_thread_fsm_ops): Remove.
10453 (call_thread_fsm::call_thread_fsm): Rename from
10454 new_call_thread_fsm.
10455 (call_thread_fsm::should_stop): Rename from
10456 call_thread_fsm_should_stop.
10457 (call_thread_fsm::should_notify_stop): Rename from
10458 call_thread_fsm_should_notify_stop.
10459 (run_inferior_call, call_function_by_hand_dummy): Update.
10460 * cli/cli-interp.c (should_print_stop_to_console): Update.
10461 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
10462 Add constructor. Change type of location_breakpoint,
10463 caller_breakpoint.
10464 (until_break_fsm_ops): Remove.
10465 (new_until_break_fsm): Remove.
10466 (until_break_fsm::should_stop): Rename from
10467 until_break_fsm_should_stop.
10468 (until_break_fsm::clean_up): Rename from
10469 until_break_fsm_clean_up.
10470 (until_break_fsm::do_async_reply_reason): Rename from
10471 until_break_fsm_async_reply_reason.
10472 (until_break_command): Update.
10473 * thread-fsm.c: Remove.
10474 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
10475
10476 2019-02-07 Tom Tromey <tom@tromey.com>
10477
10478 * yy-remap.h: Add include guard.
10479 * xtensa-tdep.h: Add include guard.
10480 * xcoffread.h: Rename include guard.
10481 * varobj-iter.h: Add include guard.
10482 * tui/tui.h: Rename include guard.
10483 * tui/tui-winsource.h: Rename include guard.
10484 * tui/tui-wingeneral.h: Rename include guard.
10485 * tui/tui-windata.h: Rename include guard.
10486 * tui/tui-win.h: Rename include guard.
10487 * tui/tui-stack.h: Rename include guard.
10488 * tui/tui-source.h: Rename include guard.
10489 * tui/tui-regs.h: Rename include guard.
10490 * tui/tui-out.h: Rename include guard.
10491 * tui/tui-layout.h: Rename include guard.
10492 * tui/tui-io.h: Rename include guard.
10493 * tui/tui-hooks.h: Rename include guard.
10494 * tui/tui-file.h: Rename include guard.
10495 * tui/tui-disasm.h: Rename include guard.
10496 * tui/tui-data.h: Rename include guard.
10497 * tui/tui-command.h: Rename include guard.
10498 * tic6x-tdep.h: Add include guard.
10499 * target/waitstatus.h: Rename include guard.
10500 * target/wait.h: Rename include guard.
10501 * target/target.h: Rename include guard.
10502 * target/resume.h: Rename include guard.
10503 * target-float.h: Rename include guard.
10504 * stabsread.h: Add include guard.
10505 * rs6000-tdep.h: Add include guard.
10506 * riscv-fbsd-tdep.h: Add include guard.
10507 * regformats/regdef.h: Rename include guard.
10508 * record.h: Rename include guard.
10509 * python/python.h: Rename include guard.
10510 * python/python-internal.h: Rename include guard.
10511 * python/py-stopevent.h: Rename include guard.
10512 * python/py-ref.h: Rename include guard.
10513 * python/py-record.h: Rename include guard.
10514 * python/py-record-full.h: Rename include guard.
10515 * python/py-record-btrace.h: Rename include guard.
10516 * python/py-instruction.h: Rename include guard.
10517 * python/py-events.h: Rename include guard.
10518 * python/py-event.h: Rename include guard.
10519 * procfs.h: Add include guard.
10520 * proc-utils.h: Add include guard.
10521 * p-lang.h: Add include guard.
10522 * or1k-tdep.h: Rename include guard.
10523 * observable.h: Rename include guard.
10524 * nto-tdep.h: Rename include guard.
10525 * nat/x86-linux.h: Rename include guard.
10526 * nat/x86-linux-dregs.h: Rename include guard.
10527 * nat/x86-gcc-cpuid.h: Add include guard.
10528 * nat/x86-dregs.h: Rename include guard.
10529 * nat/x86-cpuid.h: Rename include guard.
10530 * nat/ppc-linux.h: Rename include guard.
10531 * nat/mips-linux-watch.h: Rename include guard.
10532 * nat/linux-waitpid.h: Rename include guard.
10533 * nat/linux-ptrace.h: Rename include guard.
10534 * nat/linux-procfs.h: Rename include guard.
10535 * nat/linux-osdata.h: Rename include guard.
10536 * nat/linux-nat.h: Rename include guard.
10537 * nat/linux-namespaces.h: Rename include guard.
10538 * nat/linux-btrace.h: Rename include guard.
10539 * nat/glibc_thread_db.h: Rename include guard.
10540 * nat/gdb_thread_db.h: Rename include guard.
10541 * nat/gdb_ptrace.h: Rename include guard.
10542 * nat/fork-inferior.h: Rename include guard.
10543 * nat/amd64-linux-siginfo.h: Rename include guard.
10544 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
10545 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
10546 * nat/aarch64-linux.h: Rename include guard.
10547 * nat/aarch64-linux-hw-point.h: Rename include guard.
10548 * mn10300-tdep.h: Add include guard.
10549 * mips-linux-tdep.h: Add include guard.
10550 * mi/mi-parse.h: Rename include guard.
10551 * mi/mi-out.h: Rename include guard.
10552 * mi/mi-main.h: Rename include guard.
10553 * mi/mi-interp.h: Rename include guard.
10554 * mi/mi-getopt.h: Rename include guard.
10555 * mi/mi-console.h: Rename include guard.
10556 * mi/mi-common.h: Rename include guard.
10557 * mi/mi-cmds.h: Rename include guard.
10558 * mi/mi-cmd-break.h: Rename include guard.
10559 * m2-lang.h: Add include guard.
10560 * location.h: Rename include guard.
10561 * linux-record.h: Rename include guard.
10562 * linux-nat.h: Add include guard.
10563 * linux-fork.h: Add include guard.
10564 * i386-darwin-tdep.h: Rename include guard.
10565 * hppa-linux-offsets.h: Add include guard.
10566 * guile/guile.h: Rename include guard.
10567 * guile/guile-internal.h: Rename include guard.
10568 * gnu-nat.h: Rename include guard.
10569 * gdb-stabs.h: Rename include guard.
10570 * frv-tdep.h: Add include guard.
10571 * f-lang.h: Add include guard.
10572 * event-loop.h: Add include guard.
10573 * darwin-nat.h: Rename include guard.
10574 * cp-abi.h: Rename include guard.
10575 * config/sparc/nm-sol2.h: Rename include guard.
10576 * config/nm-nto.h: Rename include guard.
10577 * config/nm-linux.h: Add include guard.
10578 * config/i386/nm-i386gnu.h: Rename include guard.
10579 * config/djgpp/nl_types.h: Rename include guard.
10580 * config/djgpp/langinfo.h: Rename include guard.
10581 * compile/gcc-cp-plugin.h: Add include guard.
10582 * compile/gcc-c-plugin.h: Add include guard.
10583 * compile/compile.h: Rename include guard.
10584 * compile/compile-object-run.h: Rename include guard.
10585 * compile/compile-object-load.h: Rename include guard.
10586 * compile/compile-internal.h: Rename include guard.
10587 * compile/compile-cplus.h: Rename include guard.
10588 * compile/compile-c.h: Rename include guard.
10589 * common/xml-utils.h: Rename include guard.
10590 * common/x86-xstate.h: Rename include guard.
10591 * common/version.h: Rename include guard.
10592 * common/vec.h: Rename include guard.
10593 * common/tdesc.h: Rename include guard.
10594 * common/selftest.h: Rename include guard.
10595 * common/scoped_restore.h: Rename include guard.
10596 * common/scoped_mmap.h: Rename include guard.
10597 * common/scoped_fd.h: Rename include guard.
10598 * common/safe-iterator.h: Rename include guard.
10599 * common/run-time-clock.h: Rename include guard.
10600 * common/refcounted-object.h: Rename include guard.
10601 * common/queue.h: Rename include guard.
10602 * common/ptid.h: Rename include guard.
10603 * common/print-utils.h: Rename include guard.
10604 * common/preprocessor.h: Rename include guard.
10605 * common/pathstuff.h: Rename include guard.
10606 * common/observable.h: Rename include guard.
10607 * common/netstuff.h: Rename include guard.
10608 * common/job-control.h: Rename include guard.
10609 * common/host-defs.h: Rename include guard.
10610 * common/gdb_wait.h: Rename include guard.
10611 * common/gdb_vecs.h: Rename include guard.
10612 * common/gdb_unlinker.h: Rename include guard.
10613 * common/gdb_unique_ptr.h: Rename include guard.
10614 * common/gdb_tilde_expand.h: Rename include guard.
10615 * common/gdb_sys_time.h: Rename include guard.
10616 * common/gdb_string_view.h: Rename include guard.
10617 * common/gdb_splay_tree.h: Rename include guard.
10618 * common/gdb_setjmp.h: Rename include guard.
10619 * common/gdb_ref_ptr.h: Rename include guard.
10620 * common/gdb_optional.h: Rename include guard.
10621 * common/gdb_locale.h: Rename include guard.
10622 * common/gdb_assert.h: Rename include guard.
10623 * common/filtered-iterator.h: Rename include guard.
10624 * common/filestuff.h: Rename include guard.
10625 * common/fileio.h: Rename include guard.
10626 * common/environ.h: Rename include guard.
10627 * common/common-utils.h: Rename include guard.
10628 * common/common-types.h: Rename include guard.
10629 * common/common-regcache.h: Rename include guard.
10630 * common/common-inferior.h: Rename include guard.
10631 * common/common-gdbthread.h: Rename include guard.
10632 * common/common-exceptions.h: Rename include guard.
10633 * common/common-defs.h: Rename include guard.
10634 * common/common-debug.h: Rename include guard.
10635 * common/cleanups.h: Rename include guard.
10636 * common/buffer.h: Rename include guard.
10637 * common/btrace-common.h: Rename include guard.
10638 * common/break-common.h: Rename include guard.
10639 * cli/cli-utils.h: Rename include guard.
10640 * cli/cli-style.h: Rename include guard.
10641 * cli/cli-setshow.h: Rename include guard.
10642 * cli/cli-script.h: Rename include guard.
10643 * cli/cli-interp.h: Rename include guard.
10644 * cli/cli-decode.h: Rename include guard.
10645 * cli/cli-cmds.h: Rename include guard.
10646 * charset-list.h: Add include guard.
10647 * buildsym-legacy.h: Rename include guard.
10648 * bfin-tdep.h: Add include guard.
10649 * ax.h: Rename include guard.
10650 * arm-linux-tdep.h: Add include guard.
10651 * arm-fbsd-tdep.h: Add include guard.
10652 * arch/xtensa.h: Rename include guard.
10653 * arch/tic6x.h: Add include guard.
10654 * arch/i386.h: Add include guard.
10655 * arch/arm.h: Rename include guard.
10656 * arch/arm-linux.h: Rename include guard.
10657 * arch/arm-get-next-pcs.h: Rename include guard.
10658 * arch/amd64.h: Add include guard.
10659 * arch/aarch64-insn.h: Rename include guard.
10660 * arch-utils.h: Rename include guard.
10661 * annotate.h: Add include guard.
10662 * amd64-darwin-tdep.h: Rename include guard.
10663 * aarch64-linux-tdep.h: Add include guard.
10664 * aarch64-fbsd-tdep.h: Add include guard.
10665 * aarch32-linux-nat.h: Add include guard.
10666
10667 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10668
10669 * macrotab.c (macro_define_internal): New function that
10670 factorizes macro_define_object_internal and macro_define_function
10671 code.
10672 (macro_define_object_internal): Use macro_define_internal.
10673 (macro_define_function): Likewise.
10674
10675 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10676
10677 * macrocmd.c (extract_identifier): Return
10678 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
10679 callers.
10680
10681 2019-02-06 John Baldwin <jhb@FreeBSD.org>
10682
10683 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
10684
10685 2019-02-05 Tom Tromey <tom@tromey.com>
10686
10687 * target.c (target_stack::unpush): Move assertion earlier.
10688
10689 2019-01-30 Tom Tromey <tom@tromey.com>
10690
10691 PR python/23615:
10692 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
10693 (gdbpy_parse_and_eval): Likewise.
10694 * python/python-internal.h (gdbpy_allow_threads): New class.
10695
10696 2019-01-28 John Baldwin <jhb@FreeBSD.org>
10697
10698 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
10699 (aarch64_fbsd_fpregmap): Move earlier.
10700 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
10701 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
10702 instead of individual calls to trad_frame_set_reg_addr.
10703 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
10704 earlier.
10705 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
10706 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
10707 instead of individual calls to trad_frame_set_reg_addr.
10708
10709 2019-01-28 Alan Hayward <alan.hayward@arm.com>
10710
10711 * CONTRIBUTE: Replace contribution list with wiki link.
10712
10713 2019-01-25 Tom Tromey <tom@tromey.com>
10714
10715 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
10716
10717 2019-01-25 Tom Tromey <tom@tromey.com>
10718
10719 * xtensa-linux-nat.c: Fix common/ includes.
10720 * xml-support.h: Fix common/ includes.
10721 * xml-support.c: Fix common/ includes.
10722 * x86-linux-nat.c: Fix common/ includes.
10723 * windows-nat.c: Fix common/ includes.
10724 * varobj.h: Fix common/ includes.
10725 * varobj.c: Fix common/ includes.
10726 * value.c: Fix common/ includes.
10727 * valops.c: Fix common/ includes.
10728 * utils.c: Fix common/ includes.
10729 * unittests/xml-utils-selftests.c: Fix common/ includes.
10730 * unittests/utils-selftests.c: Fix common/ includes.
10731 * unittests/unpack-selftests.c: Fix common/ includes.
10732 * unittests/tracepoint-selftests.c: Fix common/ includes.
10733 * unittests/style-selftests.c: Fix common/ includes.
10734 * unittests/string_view-selftests.c: Fix common/ includes.
10735 * unittests/scoped_restore-selftests.c: Fix common/ includes.
10736 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
10737 * unittests/scoped_fd-selftests.c: Fix common/ includes.
10738 * unittests/rsp-low-selftests.c: Fix common/ includes.
10739 * unittests/parse-connection-spec-selftests.c: Fix common/
10740 includes.
10741 * unittests/optional-selftests.c: Fix common/ includes.
10742 * unittests/offset-type-selftests.c: Fix common/ includes.
10743 * unittests/observable-selftests.c: Fix common/ includes.
10744 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
10745 * unittests/memrange-selftests.c: Fix common/ includes.
10746 * unittests/memory-map-selftests.c: Fix common/ includes.
10747 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
10748 * unittests/function-view-selftests.c: Fix common/ includes.
10749 * unittests/environ-selftests.c: Fix common/ includes.
10750 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
10751 * unittests/common-utils-selftests.c: Fix common/ includes.
10752 * unittests/cli-utils-selftests.c: Fix common/ includes.
10753 * unittests/array-view-selftests.c: Fix common/ includes.
10754 * ui-file.c: Fix common/ includes.
10755 * tui/tui-io.c: Fix common/ includes.
10756 * tracepoint.h: Fix common/ includes.
10757 * tracepoint.c: Fix common/ includes.
10758 * tracefile-tfile.c: Fix common/ includes.
10759 * top.h: Fix common/ includes.
10760 * top.c: Fix common/ includes.
10761 * thread.c: Fix common/ includes.
10762 * target/waitstatus.h: Fix common/ includes.
10763 * target/waitstatus.c: Fix common/ includes.
10764 * target.h: Fix common/ includes.
10765 * target.c: Fix common/ includes.
10766 * target-memory.c: Fix common/ includes.
10767 * target-descriptions.c: Fix common/ includes.
10768 * symtab.h: Fix common/ includes.
10769 * symfile.c: Fix common/ includes.
10770 * stap-probe.c: Fix common/ includes.
10771 * spu-linux-nat.c: Fix common/ includes.
10772 * sparc-nat.c: Fix common/ includes.
10773 * source.c: Fix common/ includes.
10774 * solib.c: Fix common/ includes.
10775 * solib-target.c: Fix common/ includes.
10776 * ser-unix.c: Fix common/ includes.
10777 * ser-tcp.c: Fix common/ includes.
10778 * ser-pipe.c: Fix common/ includes.
10779 * ser-base.c: Fix common/ includes.
10780 * selftest-arch.c: Fix common/ includes.
10781 * s12z-tdep.c: Fix common/ includes.
10782 * rust-exp.y: Fix common/ includes.
10783 * rs6000-aix-tdep.c: Fix common/ includes.
10784 * riscv-tdep.c: Fix common/ includes.
10785 * remote.c: Fix common/ includes.
10786 * remote-notif.h: Fix common/ includes.
10787 * remote-fileio.h: Fix common/ includes.
10788 * remote-fileio.c: Fix common/ includes.
10789 * regcache.h: Fix common/ includes.
10790 * regcache.c: Fix common/ includes.
10791 * record-btrace.c: Fix common/ includes.
10792 * python/python.c: Fix common/ includes.
10793 * python/py-type.c: Fix common/ includes.
10794 * python/py-inferior.c: Fix common/ includes.
10795 * progspace.h: Fix common/ includes.
10796 * producer.c: Fix common/ includes.
10797 * procfs.c: Fix common/ includes.
10798 * proc-api.c: Fix common/ includes.
10799 * printcmd.c: Fix common/ includes.
10800 * ppc-linux-nat.c: Fix common/ includes.
10801 * parser-defs.h: Fix common/ includes.
10802 * osdata.c: Fix common/ includes.
10803 * obsd-nat.c: Fix common/ includes.
10804 * nat/x86-linux.c: Fix common/ includes.
10805 * nat/x86-linux-dregs.c: Fix common/ includes.
10806 * nat/x86-dregs.h: Fix common/ includes.
10807 * nat/x86-dregs.c: Fix common/ includes.
10808 * nat/ppc-linux.c: Fix common/ includes.
10809 * nat/mips-linux-watch.h: Fix common/ includes.
10810 * nat/mips-linux-watch.c: Fix common/ includes.
10811 * nat/linux-waitpid.c: Fix common/ includes.
10812 * nat/linux-ptrace.h: Fix common/ includes.
10813 * nat/linux-ptrace.c: Fix common/ includes.
10814 * nat/linux-procfs.c: Fix common/ includes.
10815 * nat/linux-personality.c: Fix common/ includes.
10816 * nat/linux-osdata.c: Fix common/ includes.
10817 * nat/linux-namespaces.c: Fix common/ includes.
10818 * nat/linux-btrace.h: Fix common/ includes.
10819 * nat/linux-btrace.c: Fix common/ includes.
10820 * nat/fork-inferior.c: Fix common/ includes.
10821 * nat/amd64-linux-siginfo.c: Fix common/ includes.
10822 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
10823 * nat/aarch64-linux.c: Fix common/ includes.
10824 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
10825 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
10826 * namespace.h: Fix common/ includes.
10827 * mips-linux-tdep.c: Fix common/ includes.
10828 * minsyms.c: Fix common/ includes.
10829 * mi/mi-parse.h: Fix common/ includes.
10830 * mi/mi-main.c: Fix common/ includes.
10831 * mi/mi-cmd-env.c: Fix common/ includes.
10832 * memrange.h: Fix common/ includes.
10833 * memattr.c: Fix common/ includes.
10834 * maint.h: Fix common/ includes.
10835 * maint.c: Fix common/ includes.
10836 * main.c: Fix common/ includes.
10837 * machoread.c: Fix common/ includes.
10838 * location.c: Fix common/ includes.
10839 * linux-thread-db.c: Fix common/ includes.
10840 * linux-nat.c: Fix common/ includes.
10841 * linux-fork.c: Fix common/ includes.
10842 * inline-frame.c: Fix common/ includes.
10843 * infrun.c: Fix common/ includes.
10844 * inflow.c: Fix common/ includes.
10845 * inferior.h: Fix common/ includes.
10846 * inferior.c: Fix common/ includes.
10847 * infcmd.c: Fix common/ includes.
10848 * inf-ptrace.c: Fix common/ includes.
10849 * inf-child.c: Fix common/ includes.
10850 * ia64-linux-nat.c: Fix common/ includes.
10851 * i387-tdep.c: Fix common/ includes.
10852 * i386-tdep.c: Fix common/ includes.
10853 * i386-linux-tdep.c: Fix common/ includes.
10854 * i386-linux-nat.c: Fix common/ includes.
10855 * i386-go32-tdep.c: Fix common/ includes.
10856 * i386-fbsd-tdep.c: Fix common/ includes.
10857 * i386-fbsd-nat.c: Fix common/ includes.
10858 * guile/scm-type.c: Fix common/ includes.
10859 * guile/guile.c: Fix common/ includes.
10860 * go32-nat.c: Fix common/ includes.
10861 * gnu-nat.c: Fix common/ includes.
10862 * gdbthread.h: Fix common/ includes.
10863 * gdbarch-selftests.c: Fix common/ includes.
10864 * gdb_usleep.c: Fix common/ includes.
10865 * gdb_select.h: Fix common/ includes.
10866 * gdb_bfd.c: Fix common/ includes.
10867 * gcore.c: Fix common/ includes.
10868 * fork-child.c: Fix common/ includes.
10869 * findvar.c: Fix common/ includes.
10870 * fbsd-nat.c: Fix common/ includes.
10871 * event-top.c: Fix common/ includes.
10872 * event-loop.c: Fix common/ includes.
10873 * dwarf2read.c: Fix common/ includes.
10874 * dwarf2loc.c: Fix common/ includes.
10875 * dwarf2-frame.c: Fix common/ includes.
10876 * dwarf-index-cache.c: Fix common/ includes.
10877 * dtrace-probe.c: Fix common/ includes.
10878 * disasm-selftests.c: Fix common/ includes.
10879 * defs.h: Fix common/ includes.
10880 * csky-tdep.c: Fix common/ includes.
10881 * cp-valprint.c: Fix common/ includes.
10882 * cp-support.h: Fix common/ includes.
10883 * cp-support.c: Fix common/ includes.
10884 * corelow.c: Fix common/ includes.
10885 * completer.h: Fix common/ includes.
10886 * completer.c: Fix common/ includes.
10887 * compile/compile.c: Fix common/ includes.
10888 * compile/compile-loc2c.c: Fix common/ includes.
10889 * compile/compile-cplus-types.c: Fix common/ includes.
10890 * compile/compile-cplus-symbols.c: Fix common/ includes.
10891 * command.h: Fix common/ includes.
10892 * cli/cli-dump.c: Fix common/ includes.
10893 * cli/cli-cmds.c: Fix common/ includes.
10894 * charset.c: Fix common/ includes.
10895 * build-id.c: Fix common/ includes.
10896 * btrace.h: Fix common/ includes.
10897 * btrace.c: Fix common/ includes.
10898 * breakpoint.h: Fix common/ includes.
10899 * breakpoint.c: Fix common/ includes.
10900 * ax.h:
10901 (enum agent_op): Fix common/ includes.
10902 * ax-general.c (struct aop_map): Fix common/ includes.
10903 * ax-gdb.c: Fix common/ includes.
10904 * auxv.c: Fix common/ includes.
10905 * auto-load.c: Fix common/ includes.
10906 * arm-tdep.c: Fix common/ includes.
10907 * arch/riscv.c: Fix common/ includes.
10908 * arch/ppc-linux-common.c: Fix common/ includes.
10909 * arch/i386.c: Fix common/ includes.
10910 * arch/arm.c: Fix common/ includes.
10911 * arch/arm-linux.c: Fix common/ includes.
10912 * arch/arm-get-next-pcs.c: Fix common/ includes.
10913 * arch/amd64.c: Fix common/ includes.
10914 * arch/aarch64.c: Fix common/ includes.
10915 * arch/aarch64-insn.c: Fix common/ includes.
10916 * arch-utils.c: Fix common/ includes.
10917 * amd64-windows-tdep.c: Fix common/ includes.
10918 * amd64-tdep.c: Fix common/ includes.
10919 * amd64-sol2-tdep.c: Fix common/ includes.
10920 * amd64-obsd-tdep.c: Fix common/ includes.
10921 * amd64-nbsd-tdep.c: Fix common/ includes.
10922 * amd64-linux-tdep.c: Fix common/ includes.
10923 * amd64-linux-nat.c: Fix common/ includes.
10924 * amd64-fbsd-tdep.c: Fix common/ includes.
10925 * amd64-fbsd-nat.c: Fix common/ includes.
10926 * amd64-dicos-tdep.c: Fix common/ includes.
10927 * amd64-darwin-tdep.c: Fix common/ includes.
10928 * agent.c: Fix common/ includes.
10929 * ada-lang.h: Fix common/ includes.
10930 * ada-lang.c: Fix common/ includes.
10931 * aarch64-tdep.c: Fix common/ includes.
10932
10933 2019-01-25 Tom Tromey <tom@tromey.com>
10934
10935 * common/create-version.sh: Use common/version.h.
10936
10937 2019-01-24 Pedro Alves <palves@redhat.com>
10938
10939 * infrun.c (signal_stop, signal_print, signal_program)
10940 (signal_catch, signal_pass): Now arrays instead of pointers.
10941 (update_signals_program_target, do_target_resume)
10942 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
10943 * linux-nat.c (linux_nat_target::pass_signals)
10944 (linux_nat_target::create_inferior, linux_nat_target::attach):
10945 Adjust.
10946 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
10947 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
10948 * procfs.c (procfs_target::pass_signals): Adjust.
10949 * record-full.c (record_full_target::resume): Adjust.
10950 * remote.c (remote_target::pass_signals)
10951 (remote_target::program_signals): Adjust.
10952 * target-debug.h (target_debug_print_signals): Now takes a
10953 gdb::array_view as parameter. Adjust.
10954 * target.h (target_ops) <pass_signals, program_signals>: Replace
10955 pointer and length parameters with gdb::array_view.
10956 (target_pass_signals, target_program_signals): Likewise.
10957 * target-delegates.c: Regenerate.
10958
10959 2019-01-24 Pedro Alves <palves@redhat.com>
10960
10961 * common/forward-scope-exit.h
10962 (forward_scope_exit::forward_scope_exit): Pass arguments to
10963 m_bind_function directly, instead of creating a std::bind and
10964 copying that.
10965
10966 2019-01-24 Alan Hayward <alan.hayward@arm.com>
10967
10968 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
10969 for static members.
10970 (pass_in_v_vfp_candidate): Likewise.
10971
10972 2019-01-23 Tom Tromey <tom@tromey.com>
10973 Pedro Alves <palves@redhat.com>
10974
10975 * regcache.c (class regcache_invalidator): Remove.
10976 (regcache::raw_write): Use make_scope_exit.
10977
10978 2019-01-23 Tom Tromey <tom@tromey.com>
10979
10980 * ui-out.h (class ui_out_emit_type): Update comment.
10981
10982 2019-01-23 Tom Tromey <tom@tromey.com>
10983
10984 * infrun.c (fetch_inferior_event): Update comment.
10985
10986 2019-01-23 Tom Tromey <tom@tromey.com>
10987 Pedro Alves <palves@redhat.com>
10988
10989 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
10990 parameter.
10991 (fetch_inferior_event): Use SCOPE_EXIT.
10992
10993
10994 2019-01-23 Tom Tromey <tom@tromey.com>
10995 Pedro Alves <palves@redhat.com>
10996
10997 * infrun.c (disable_thread_events): Delete.
10998 (stop_all_threads): Use SCOPE_EXIT.
10999
11000 2019-01-23 Tom Tromey <tom@tromey.com>
11001 Pedro Alves <palves@redhat.com>
11002
11003 * symfile.c: Include forward-scope-exit.h.
11004 (clear_symtab_users_cleanup): Replace forward declaration with
11005 a FORWARD_SCOPE_EXIT.
11006 (syms_from_objfile_1): Use the forward_scope_exit and
11007 gdb::optional instead of cleanup_function.
11008 (reread_symbols): Use the forward_scope_exit instead of
11009 cleanup_function.
11010 (clear_symtab_users_cleanup): Remove function.
11011
11012 2019-01-23 Tom Tromey <tom@tromey.com>
11013 Pedro Alves <palves@redhat.com>
11014
11015 * linux-nat.c: Include scope-exit.h.
11016 (cleanup_target_stop): Remove.
11017 (linux_nat_target::static_tracepoint_markers_by_strid): Use
11018 SCOPE_EXIT.
11019
11020 2019-01-23 Tom Tromey <tom@tromey.com>
11021 Pedro Alves <palves@redhat.com>
11022
11023 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
11024 (call_function_by_hand_dummy): Use SCOPE_EXIT.
11025
11026 2019-01-23 Tom Tromey <tom@tromey.com>
11027 Andrew Burgess <andrew.burgess@embecosm.com>
11028 Pedro Alves <palves@redhat.com>
11029
11030 * infrun.c (fetch_inferior_event): Use scope_exit.
11031 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
11032 * top.c (execute_command): Use scope_exit.
11033 * breakpoint.c (bpstat_do_actions): Use scope_exit.
11034 * utils.c (do_bpstat_clear_actions_cleanup)
11035 (make_bpstat_clear_actions_cleanup): Remove.
11036
11037 2019-01-23 Tom Tromey <tom@tromey.com>
11038 Pedro Alves <palves@redhat.com>
11039
11040 * infrun.c: Include "common/scope-exit.h"
11041 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
11042 (wait_for_inferior): Use SCOPE_EXIT.
11043 (fetch_inferior_event): Use scope_exit.
11044
11045 2019-01-23 Tom Tromey <tom@tromey.com>
11046 Pedro Alves <palves@redhat.com>
11047
11048 * breakpoint.c (create_breakpoint): Remove cleanup.
11049
11050 2019-01-23 Tom Tromey <tom@tromey.com>
11051 Andrew Burgess <andrew.burgess@embecosm.com>
11052 Pedro Alves <palves@redhat.com>
11053
11054 2019-01-23 Pedro Alves <palves@redhat.com>
11055
11056 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
11057
11058 2019-01-23 Pedro Alves <palves@redhat.com>
11059 Andrew Burgess <andrew.burgess@embecosm.com>
11060
11061 * gdbthread.h: Include "common/forward-scope-exit.h".
11062 (scoped_finish_thread_state): Redefine custom class in terms of
11063 forward_scope_exit.
11064
11065 2019-01-23 Pedro Alves <palves@redhat.com>
11066 Andrew Burgess <andrew.burgess@embecosm.com>
11067
11068 * common/forward-scope-exit.h: New file.
11069
11070 2019-01-23 Pedro Alves <palves@redhat.com>
11071 Andrew Burgess <andrew.burgess@embecosm.com>
11072 Tom Tromey <tom@tromey.com>
11073
11074 * common/scope-exit.h: New file.
11075
11076 2019-01-23 Pedro Alves <palves@redhat.com>
11077
11078 * common/preprocessor.h (ESC): Rename to ...
11079 (ESC_PARENS): ... this.
11080 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
11081 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
11082
11083 2019-01-23 Tom Tromey <tom@tromey.com>
11084
11085 * language.h (class scoped_switch_to_sym_language_if_auto):
11086 Initialize m_lang in both cases.
11087
11088 2019-01-23 Alan Hayward <alan.hayward@arm.com>
11089
11090 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
11091 with XCNEW.
11092
11093 2019-01-22 Tom Tromey <tom@tromey.com>
11094
11095 * corelow.c: Do not include sys/file.h.
11096
11097 2019-01-22 Tom Tromey <tom@tromey.com>
11098
11099 * tui/tui-wingeneral.h: Include gdb_curses.h.
11100
11101 2019-01-22 Tom Tromey <tom@tromey.com>
11102
11103 * source-cache.h (class source_cache) <get_source_lines,
11104 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
11105
11106 2019-01-22 Tom Tromey <tom@tromey.com>
11107
11108 * remote-fileio.h (struct remote_target): Declare.
11109
11110 2019-01-22 Tom Tromey <tom@tromey.com>
11111
11112 * python/py-arch.c: Do not include py-ref.h.
11113 * python/py-bpevent.c: Do not include py-ref.h.
11114 * python/py-cmd.c: Do not include py-ref.h.
11115 * python/py-continueevent.c: Do not include py-ref.h.
11116 * python/py-event.h: Do not include py-ref.h.
11117 * python/py-evtregistry.c: Do not include py-ref.h.
11118 * python/py-finishbreakpoint.c: Do not include py-ref.h.
11119 * python/py-frame.c: Do not include py-ref.h.
11120 * python/py-framefilter.c: Do not include py-ref.h.
11121 * python/py-function.c: Do not include py-ref.h.
11122 * python/py-infevents.c: Do not include py-ref.h.
11123 * python/py-linetable.c: Do not include py-ref.h.
11124 * python/py-objfile.c: Do not include py-ref.h.
11125 * python/py-param.c: Do not include py-ref.h.
11126 * python/py-prettyprint.c: Do not include py-ref.h.
11127 * python/py-progspace.c: Do not include py-ref.h.
11128 * python/py-symbol.c: Do not include py-ref.h.
11129 * python/py-symtab.c: Do not include py-ref.h.
11130 * python/py-type.c: Do not include py-ref.h.
11131 * python/py-unwind.c: Do not include py-ref.h.
11132 * python/py-utils.c: Do not include py-ref.h.
11133 * python/py-value.c: Do not include py-ref.h.
11134 * python/py-varobj.c: Do not include py-ref.h.
11135 * python/py-xmethods.c: Do not include py-ref.h.
11136 * python/python.c: Do not include py-ref.h.
11137 * varobj.c: Do not include py-ref.h.
11138
11139 2019-01-22 Tom Tromey <tom@tromey.com>
11140
11141 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
11142 keyword for bcache.
11143
11144 2019-01-22 Tom Tromey <tom@tromey.com>
11145
11146 * compile/compile-cplus-types.c: Remove a comment by #include.
11147
11148 2019-01-22 Tom Tromey <tom@tromey.com>
11149
11150 * compile/gcc-c-plugin.h: Include compile-internal.h.
11151
11152 2019-01-22 Tom Tromey <tom@tromey.com>
11153
11154 * stabsread.c (EXTERN): Do not define.
11155 (symnum, next_symbol_text_func, processing_gcc_compilation)
11156 (within_function, global_sym_chain, global_stabs)
11157 (previous_stab_code, this_object_header_files)
11158 (n_this_object_header_files)
11159 (n_allocated_this_object_header_files): Define.
11160 * stabsread.h (EXTERN): Never define. Use "extern".
11161
11162 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11163
11164 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
11165 history_value.
11166
11167 2019-01-21 Tom Tromey <tom@tromey.com>
11168
11169 * ui-out.c: Fix includes.
11170 * tui/tui-source.c: Fix includes.
11171 * target.c: Fix includes.
11172 * remote.c: Fix includes.
11173 * regcache.c: Fix includes.
11174 * python/py-block.c: Fix includes.
11175 * printcmd.c: Fix includes.
11176 * or1k-tdep.c: Fix includes.
11177 * mi/mi-main.c: Fix includes.
11178 * m32r-tdep.c: Fix includes.
11179 * csky-tdep.c: Fix includes.
11180 * compile/compile-cplus-types.c: Fix includes.
11181 * cli/cli-interp.c: Fix includes.
11182
11183 2019-01-21 Alan Hayward <alan.hayward@arm.com>
11184
11185 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
11186 for padding.
11187
11188 2019-01-16 Tom Tromey <tom@tromey.com>
11189
11190 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
11191 earlier.
11192 (struct objfile) <msymbols_range>: Move from top level.
11193 <msymbols>: New method.
11194 (class objfile_msymbols): Remove.
11195 * symtab.c (default_collect_symbol_completion_matches_break_on):
11196 Update.
11197 * symmisc.c (dump_msymbols): Update.
11198 * stabsread.c (scan_file_globals): Update.
11199 * objc-lang.c (info_selectors_command, info_classes_command)
11200 (find_methods): Update.
11201 * minsyms.c (find_solib_trampoline_target): Update.
11202 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
11203 * coffread.c (coff_symfile_read): Update.
11204 * ada-lang.c (ada_lookup_simple_minsym)
11205 (ada_collect_symbol_completion_matches): Update.
11206
11207 2019-01-16 Tom Tromey <tom@tromey.com>
11208
11209 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
11210 type. Remove no-argument constructor.
11211 <iterator::operator++>: Simplify.
11212 <begin>: Update.
11213 <end>: Use minimal_symbol_count.
11214
11215 2019-01-16 Tom Tromey <tom@tromey.com>
11216
11217 * objfiles.h (struct objfile) <psymtabs>: New method.
11218 (class objfile_psymtabs): Remove.
11219 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
11220 typedef.
11221 <range>: New method.
11222 (require_partial_symbols): Change return type.
11223 * psymtab.c (require_partial_symbols)
11224 (psym_expand_symtabs_matching): Update.
11225 * mdebugread.c (parse_partial_symbols): Update.
11226 * dbxread.c (dbx_end_psymtab): Update.
11227
11228 2019-01-15 Tom Tromey <tom@tromey.com>
11229
11230 * symtab.c (lookup_objfile_from_block)
11231 (lookup_symbol_in_objfile_symtabs)
11232 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
11233 (find_line_symtab, info_sources_command)
11234 (default_collect_symbol_completion_matches_break_on)
11235 (make_source_files_completion_list): Update.
11236 * symmisc.c (print_objfile_statistics, dump_objfile)
11237 (maintenance_print_symbols, maintenance_info_symtabs)
11238 (maintenance_check_symtabs, maintenance_info_line_tables):
11239 Update.
11240 * source.c (select_source_symtab)
11241 (forget_cached_source_info_for_objfile): Update.
11242 * objfiles.h (class objfile_compunits): Remove.
11243 (struct objfile) <compunits_range>: New typedef.
11244 (compunits): New method.
11245 * objfiles.c (objfile_relocate1): Update.
11246 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11247 * maint.c (count_symtabs_and_blocks): Update.
11248 * linespec.c (iterate_over_all_matching_symtabs): Update.
11249 * cp-support.c (add_symbol_overload_list_qualified): Update.
11250 * coffread.c (coff_symtab_read): Update.
11251 * ada-lang.c (add_nonlocal_symbols)
11252 (ada_collect_symbol_completion_matches)
11253 (ada_add_global_exceptions): Update.
11254
11255 2019-01-15 Tom Tromey <tom@tromey.com>
11256
11257 * progspace.h (program_space) <objfiles_safe_range>: New
11258 typedef.
11259 <objfiles_safe>: New method.
11260 * objfiles.h (class all_objfiles_safe): Remove.
11261 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
11262 * jit.c (jit_inferior_exit_hook): Update.
11263
11264 2019-01-17 Tom Tromey <tom@tromey.com>
11265
11266 * progspace.h (program_space) <objfiles_range>: New typedef.
11267 <objfiles>: New method.
11268 <objfiles_head>: Rename from objfiles.
11269 (object_files): Update.
11270 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
11271 * guile/scm-pretty-print.c
11272 (ppscm_find_pretty_printer_from_objfiles): Update.
11273 * guile/scm-objfile.c (gdbscm_objfiles): Update.
11274 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
11275 Update.
11276 * python/py-progspace.c (pspy_get_objfiles): Update.
11277 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
11278 Update.
11279 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
11280 (objfpy_lookup_objfile_by_build_id): Update.
11281 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11282 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
11283 Update.
11284 * symtab.c (iterate_over_symtabs, matching_obj_sections)
11285 (expand_symtab_containing_pc, lookup_objfile_from_block)
11286 (lookup_static_symbol, basic_lookup_transparent_type)
11287 (find_pc_sect_compunit_symtab, find_symbol_at_address)
11288 (find_line_symtab, info_sources_command)
11289 (default_collect_symbol_completion_matches_break_on)
11290 (make_source_files_completion_list, find_main_name): Update.
11291 * symmisc.c (print_symbol_bcache_statistics)
11292 (print_objfile_statistics, maintenance_print_symbols)
11293 (maintenance_print_msymbols, maintenance_print_objfiles)
11294 (maintenance_info_symtabs, maintenance_check_symtabs)
11295 (maintenance_expand_symtabs, maintenance_info_line_tables):
11296 Update.
11297 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
11298 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
11299 (map_overlay_command, unmap_overlay_command)
11300 (simple_overlay_update, expand_symtabs_matching)
11301 (map_symbol_filenames): Update.
11302 * symfile-debug.c (set_debug_symfile): Update.
11303 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
11304 Update.
11305 * source.c (select_source_symtab, forget_cached_source_info):
11306 Update.
11307 * solib.c (solib_read_symbols): Update.
11308 * solib-spu.c (append_ocl_sos): Update.
11309 * psymtab.c (maintenance_print_psymbols)
11310 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
11311 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
11312 * printcmd.c (info_symbol_command): Update.
11313 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
11314 Update.
11315 * objfiles.h (class all_objfiles): Remove.
11316 * objfiles.c (have_partial_symbols, have_full_symbols)
11317 (have_minimal_symbols, qsort_cmp, update_section_map)
11318 (shared_objfile_contains_address_p)
11319 (default_iterate_over_objfiles_in_search_order): Update.
11320 * objc-lang.c (info_selectors_command, info_classes_command)
11321 (find_methods): Update.
11322 * minsyms.c (find_solib_trampoline_target): Update.
11323 * maint.c (maintenance_info_sections)
11324 (maintenance_translate_address, count_symtabs_and_blocks):
11325 Update.
11326 * main.c (captured_main_1): Update.
11327 * linux-thread-db.c (try_thread_db_load_from_pdir)
11328 (has_libpthread): Update.
11329 * linespec.c (iterate_over_all_matching_symtabs)
11330 (search_minsyms_for_name): Update.
11331 * jit.c (jit_find_objf_with_entry_addr): Update.
11332 * hppa-tdep.c (find_unwind_entry)
11333 (hppa_lookup_stub_minimal_symbol): Update.
11334 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
11335 Update.
11336 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
11337 (elf_gnu_ifunc_resolve_by_got): Update.
11338 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
11339 * dwarf-index-write.c (save_gdb_index_command): Update.
11340 * cp-support.c (add_symbol_overload_list_qualified): Update.
11341 * breakpoint.c (create_overlay_event_breakpoint)
11342 (create_longjmp_master_breakpoint)
11343 (create_std_terminate_master_breakpoint)
11344 (create_exception_master_breakpoint): Update.
11345 * blockframe.c (find_pc_partial_function): Update.
11346 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
11347 (ada_collect_symbol_completion_matches)
11348 (ada_add_global_exceptions): Update.
11349
11350 2019-01-17 Tom Tromey <tom@tromey.com>
11351
11352 * solib-target.c (lm_info_target_p): Remove typedef. Don't
11353 declare VEC.
11354 (solib_target_parse_libraries): Change return type.
11355 (library_list_start_segment, library_list_start_section)
11356 (library_list_end_library, library_list_start_library); Update.
11357 (solib_target_free_library_list): Remove.
11358 (solib_target_parse_libraries): Remove cleanup. Change return
11359 type.
11360 (solib_target_current_sos): Update.
11361
11362 2019-01-17 Tom Tromey <tromey@bapiya>
11363
11364 * valprint.c: Replace "the the" with "the".
11365 * symtab.c: Replace "the the" with "the".
11366 * solib.c: Replace "the the" with "the".
11367 * solib-dsbt.c: Replace "the the" with "the".
11368 * linespec.c: Replace "the the" with "the".
11369 * dwarf2loc.h: Replace "the the" with "the".
11370 * amd64-windows-tdep.c: Replace "the the" with "the".
11371 * aarch64-tdep.c: Replace "the the" with "the".
11372
11373 2019-01-16 Keith Seitz <keiths@redhat.com>
11374
11375 PR gdb/23773
11376 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
11377 <builder>: Rename to ..
11378 <m_builder>: ... this and make private.
11379 (dwarf2_cu::get_builder): New method. Change all users of
11380 `builder' to use this method.
11381 (dwarf2_start_symtab): Move to ...
11382 (dwarf2_cu::start_symtab): ... here. Update all callers
11383 (setup_type_unit_groups): Move to ...
11384 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
11385 callers.
11386 (dwarf2_cu::reset_builder): New method.
11387 (process_full_compunit, process_full_type_unit): Use
11388 dwarf2_cu::reset_builder.
11389 (follow_die_offset): Record the ancestor CU if it is different
11390 from the followed DIE's CU.
11391 (follow_die_sig_1): Likewise.
11392
11393 2019-01-15 Tom Tromey <tom@tromey.com>
11394
11395 * remote.c (class remote_state) <buf>: Now a char_vector.
11396 <buf_size>: Remove.
11397 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
11398 parameter.
11399 (remote_target::getpkt_or_notif_sane_1)
11400 (remote_target::getpkt_sane)
11401 (remote_target::getpkt_or_notif_sane): Likewise.
11402 (class remote_target) <putpkt>: New overload.
11403 (remote_target::read_frame): Change type of "buf_p". Remove
11404 sizeof_p parameter.
11405 (packet_ok): New overload.
11406 (packet_check_result): New overload.
11407 Update all uses.
11408
11409 2019-01-14 Tom Tromey <tom@tromey.com>
11410
11411 * remote-notif.c (handle_notification, remote_notif_ack)
11412 (remote_notif_parse): Make "buf" const.
11413 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
11414 const.
11415 (remote_notif_parse, remote_notif_ack, handle_notification):
11416 Likewise.
11417 * remote.c (remote_notif_stop_parse): Make "buf" const.
11418 (remote_target::remote_parse_stop_reply): Make "buf" const.
11419 (remote_notif_stop_ack): Make "buf" const.
11420
11421 2019-01-14 Tom Tromey <tom@tromey.com>
11422
11423 * remote.c (remote_console_output): Make parameter const.
11424
11425 2019-01-14 Tom Tromey <tom@tromey.com>
11426
11427 * target-debug.h (target_debug_print_signals): Constify.
11428 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
11429 * procfs.c (procfs_target::pass_signals): Update.
11430 * linux-nat.c (linux_nat_target::pass_signals): Update.
11431 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
11432 * target-delegates.c: Rebuild.
11433 * remote.c (remote_target::program_signals): Update.
11434 (remote_target::pass_signals): Update.
11435 * target.c (target_pass_signals): Constify argument.
11436 (target_program_signals): Likewise.
11437 * target.h (struct target_ops) <pass_signals, program_signals>:
11438 Constify argument.
11439 (target_pass_signals, target_program_signals): Constify argument.
11440
11441 2019-01-14 Tom Tromey <tom@tromey.com>
11442
11443 PR tui/28819:
11444 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
11445
11446 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11447
11448 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
11449 field.
11450 * rs6000-tdep.c: Include reggroups.h.
11451 (IS_V_ALIAS_PSEUDOREG): Define.
11452 (rs6000_register_name): Return names for the "vX" aliases.
11453 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
11454 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
11455 aliases. Call default_register_reggroup_p for all other
11456 pseudo-registers.
11457 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
11458 New functions.
11459 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
11460 Handle "vX" aliases.
11461 (v_alias_pseudo_register_collect): New function.
11462 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
11463 (rs6000_gdbarch_init): Initialize "vX" aliases as
11464 pseudo-registers. Restore registration of
11465 rs6000_pseudo_register_reggroup_p with
11466 set_tdesc_pseudo_register_reggroup_p.
11467
11468 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
11469
11470 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
11471 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
11472 set_gdbarch_num_pseudo_regs.
11473
11474 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11475
11476 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
11477 Remove arg prefixname, add do_set and do_show.
11478 Add member functions set_list and show_list.
11479 * cli/cli-style.c (class cli_style_option): Update accordingly.
11480 (style_set_list): Move to file scope.
11481 (style_show_list): Likewise.
11482 (set_style): Call help_list.
11483 (show_style): Call cmd_show_list.
11484 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
11485 Update to use the new macro.
11486
11487 2019-10-12 Joel Brobecker <brobecker@adacore.com>
11488
11489 * ada-lang.c (_initialize_ada_language): Expand the help text
11490 for the "catch exception" command.
11491
11492 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11493
11494 * symtab.c (matching_obj_sections): Initialize obj,
11495 declare it closer to its usage.
11496
11497 2019-01-10 Tom Tromey <tom@tromey.com>
11498
11499 * thread-iter.h (inf_threads_iterator): Use next_iterator.
11500 (basic_inf_threads_range): Remove.
11501 (inf_threads_range, inf_non_exited_threads_range)
11502 (safe_inf_threads_range): Use next_adapter.
11503
11504 2019-01-10 Keith Seitz <keiths@redhat.com>
11505
11506 PR gdb/23712
11507 PR symtab/23010
11508 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
11509 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
11510
11511 2019-01-10 Keith Seitz <keiths@redhat.com>
11512
11513 PR gdb/23712
11514 PR symtab/23010
11515 * dictionary.c (pending_to_vector): Remove.
11516 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
11517 Remove _1 suffix, replacing functions of the same name. Update
11518 all callers.
11519 (dict_create_hashed, dict_create_hashed_expandable)
11520 (dict_create_linear, dict_create_linear_expandable, dict_free)
11521 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
11522 Make functions static.
11523
11524 2019-01-10 Keith Seitz <keiths@redhat.com>
11525
11526 PR gdb/23712
11527 PR symtab/23010
11528 * dictionary.h (struct dictionary): Replace declaration with
11529 multidictionary.
11530 (dict_create_hashed, dict_create_hashed_expandable)
11531 (dict_create_linear, dict_create_linear_expandable)
11532 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
11533 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
11534 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
11535 taking multidictionary argument.
11536 [ALL_DICT_SYMBOLS]: Update for multidictionary.
11537 * block.h (struct block) <dict>: Change to multidictionary
11538 and rename `multidict'.
11539 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
11540 symmisc.c: Update all dictionary references to multidictionary.
11541
11542 2019-01-10 Keith Seitz <keiths@redhat.com>
11543
11544 PR gdb/23712
11545 PR symtab/23010
11546 * dictionary.c: Include unordered_map.
11547 (pending_to_vector): New function.
11548 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
11549 Rewrite the non-"_1" functions to take vector instead
11550 of linked list.
11551 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
11552 "new" _1 versions of the same name.
11553 (multidictionary): Define.
11554 (std::hash<enum language): New definition.
11555 (collate_pending_symbols_by_language, mdict_create_hashed)
11556 (mdict_create_hashed_expandable, mdict_create_linear)
11557 (mdict_create_linear_expandable, mdict_free)
11558 (find_language_dictionary, create_new_language_dictionary)
11559 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
11560 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
11561 (mdict_size, mdict_empty): New functions.
11562 * dictionary.h (mdict_iterator): Define.
11563
11564 2019-01-10 Pedro Alves <palves@redhat.com>
11565
11566 * breakpoint.c (read_uploaded_action)
11567 (create_tracepoint_from_upload): Adjust to use
11568 gdb::unique_xmalloc_ptr.
11569 * ctf.c (ctf_write_uploaded_tp):
11570 (SET_ARRAY_FIELD): Use emplace_back.
11571 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
11572 * tracefile-tfile.c (tfile_write_uploaded_tp):
11573 * tracepoint.c (parse_tracepoint_definition): Adjust to use
11574 gdb::unique_xmalloc_ptr.
11575 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
11576 at_string, cond_string, cmd_strings>: Replace char pointers
11577 with gdb::unique_xmalloc_ptr.
11578
11579 2019-01-10 Pedro Alves <palves@redhat.com>
11580
11581 * solib-target.c (library_list_start_library): Don't xstrdup name.
11582
11583 2019-01-10 Pedro Alves <palves@redhat.com>
11584
11585 * mdebugread.c (parse_partial_symbols): Use
11586 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
11587
11588 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
11589
11590 * linux-fork.c (scoped_switch_fork_info)
11591 <~scoped_switch_fork_info>: Fix incorrect variable name.
11592
11593 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
11594
11595 * linux-fork.c (scoped_switch_fork_info)
11596 <scoped_switch_fork_info>: Make explicit.
11597 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
11598
11599 2019-01-10 Tom Tromey <tom@tromey.com>
11600
11601 * objfiles.h (objfile::reset_psymtabs): Update.
11602 * objfiles.c (objfile::objfile): Update.
11603 * psymtab.h (psymtab_storage::obstack): Update.
11604 (psymtab_storage::m_obstack): Use gdb::optional.
11605 (class psymtab_storage): Update comment. Remove objfile
11606 parameter.
11607 * psymtab.c (psymtab_storage::psymtab_storage): Update.
11608
11609 2019-01-10 Tom Tromey <tom@tromey.com>
11610
11611 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
11612 <free_psymtabs>: Now private.
11613 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
11614 (allocate_psymtab): Use new method.
11615
11616 2019-01-10 Tom Tromey <tom@tromey.com>
11617
11618 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
11619 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
11620 * mdebugread.c (parse_partial_symbols): Use
11621 allocate_dependencies.
11622 * dwarf2read.c (dwarf2_create_include_psymtab): Use
11623 allocate_dependencies.
11624 (process_psymtab_comp_unit_reader)
11625 (build_type_psymtab_dependencies): Likewise.
11626 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
11627
11628 2019-01-10 Tom Tromey <tom@tromey.com>
11629
11630 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
11631 PSYMBOL_SET_LANGUAGE.
11632 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
11633
11634 2019-01-10 Tom Tromey <tom@tromey.com>
11635
11636 * psymtab.h (psymtab_storage::obstack): New method.
11637 <m_obstack>: Rename from obstack; now private.
11638 * psymtab.c (psymtab_storage): Update.
11639 * dwarf2read.c (create_addrmap_from_index)
11640 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
11641 Update.
11642
11643 2019-01-10 Tom Tromey <tom@tromey.com>
11644
11645 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
11646 * objfiles.h (objfile::reset_psymtabs): New method.
11647
11648 2019-01-10 Tom Tromey <tom@tromey.com>
11649
11650 * symmisc.c (print_symbol_bcache_statistics): Update.
11651 (print_objfile_statistics): Update.
11652 * symfile.c (reread_symbols): Update.
11653 * psymtab.h (class psymtab_storage): New.
11654 * psymtab.c (psymtab_storage): New constructor.
11655 (~psymtab_storage): New destructor.
11656 (require_partial_symbols): Update.
11657 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
11658 (find_pc_sect_psymtab, find_pc_sect_psymbol)
11659 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
11660 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
11661 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
11662 (start_psymtab_common, end_psymtab_common)
11663 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
11664 (allocate_psymtab): Update.
11665 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
11666 Update.
11667 (dump_psymtab_addrmap, maintenance_print_psymbols)
11668 (maintenance_check_psymtabs): Update.
11669 (class objfile_psymtabs): Move to objfiles.h.
11670 * psympriv.h (discard_psymtab): Now inline.
11671 (psymtab_discarder::psymtab_discarder): Update.
11672 (psymtab_discarder::~psymtab_discarder): Update.
11673 (ALL_OBJFILE_PSYMTABS): Rewrite.
11674 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
11675 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
11676 Remove fields.
11677 <partial_symtabs>: New field.
11678 (class objfile_psymtabs): Move from psymtab.h. Update.
11679 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
11680 psymbol_cache.
11681 (objfile::~objfile): Don't destroy psymbol_cache.
11682 * mdebugread.c (parse_partial_symbols): Update.
11683 * dwarf2read.c (create_addrmap_from_index)
11684 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11685 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
11686 (add_partial_subprogram, dwarf2_ranges_read): Update.
11687 * dwarf-index-write.c (write_address_map)
11688 (write_one_signatured_type, recursively_write_psymbols)
11689 (class debug_names, class debug_names, write_psymtabs_to_index):
11690 Update.
11691
11692 2019-01-10 Tom Tromey <tom@tromey.com>
11693
11694 * symtab.h (SYMBOL_SET_NAMES): Update.
11695 (symbol_set_names): Update.
11696 (MSYMBOL_SET_NAMES): Update.
11697 * symtab.c (symbol_set_names): Change argument to be an
11698 objfile_per_bfd_storage.
11699 * psymtab.c (add_psymbol_to_bcache): Update.
11700 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
11701
11702 2019-01-10 Tom Tromey <tom@tromey.com>
11703
11704 * symtab.c (create_demangled_names_hash): Change argument to be an
11705 objfile_per_bfd_storage.
11706 (symbol_set_names): Update.
11707
11708 2019-01-10 Tom Tromey <tom@tromey.com>
11709
11710 * xcoffread.c (xcoff_initial_scan): Unconditionally call
11711 init_psymbol_list.
11712 * psymtab.c (init_psymbol_list): Do nothing if already called.
11713 * psympriv.h (init_psymbol_list): Add comment.
11714 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
11715 init_psymbol_list.
11716 * dbxread.c (dbx_symfile_read): Unconditionally call
11717 init_psymbol_list.
11718
11719 2019-01-10 Tom Tromey <tom@tromey.com>
11720
11721 * xcoffread.c (scan_xcoff_symtab): Update.
11722 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
11723 "where".
11724 * mdebugread.c (parse_partial_symbols)
11725 (handle_psymbol_enumerators): Update.
11726 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
11727 * dbxread.c (read_dbx_symtab): Update.
11728 * psympriv.h (psymbol_placement): New enum.
11729 (add_psymbol_to_list): Update.
11730
11731 2019-01-10 Tom Tromey <tom@tromey.com>
11732
11733 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
11734 static_psymbols parameters.
11735 (scan_xcoff_symtab): Update.
11736 * psymtab.c (start_psymtab_common): Remove global_psymbols and
11737 static_psymbols parameters.
11738 * psympriv.h (start_psymtab_common): Update.
11739 * mdebugread.c (parse_partial_symbols): Update.
11740 * dwarf2read.c (create_partial_symtab): Update.
11741 * dbxread.c (read_dbx_symtab): Update.
11742 (start_psymtab): Remove global_psymbols and static_psymbols
11743 parameters.
11744
11745 2019-01-10 Tom Tromey <tom@tromey.com>
11746
11747 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
11748 * psymtab.c (allocate_psymtab): Add comment.
11749 * psympriv.h (allocate_psymtab): Add comment.
11750 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
11751 initializations.
11752 * dbxread.c (dbx_end_psymtab): Remove some initializations.
11753
11754 2019-01-10 Tom Tromey <tom@tromey.com>
11755
11756 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
11757 Don't declare.
11758 * mipsread.c: Include mdebugread.h.
11759 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
11760 Declare.
11761 * elfread.c: Include mdebugread.h.
11762
11763 2019-01-09 Tom Tromey <tom@tromey.com>
11764
11765 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
11766 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
11767 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
11768 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
11769 (psym_lookup_symbol, psym_find_last_source_symtab)
11770 (psym_forget_cached_source_info, psym_print_stats)
11771 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
11772 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
11773 (psym_map_matching_symbols, psym_expand_symtabs_matching)
11774 (psym_find_compunit_symtab_by_address)
11775 (maintenance_print_psymbols, maintenance_info_psymtabs)
11776 (maintenance_check_psymtabs): Use ranged for.
11777 * psymtab.h (class objfile_psymtabs): New.
11778 (require_partial_symbols): Return objfile_psymtabs.
11779 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
11780
11781 2019-01-09 Tom Tromey <tom@tromey.com>
11782
11783 * symfile.c (overlay_invalidate_all, find_pc_overlay)
11784 (find_pc_mapped_section, list_overlays_command)
11785 (map_overlay_command, unmap_overlay_command)
11786 (simple_overlay_update): Use all_objfiles.
11787 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
11788 * printcmd.c (info_symbol_command): Use all_objfiles.
11789 * objfiles.h (ALL_OBJSECTIONS): Remove.
11790 * maint.c (maintenance_translate_address): Use all_objfiles.
11791 * gcore.c (gcore_create_callback): Use all_objfiles.
11792 (objfile_find_memory_regions): Likewise.
11793
11794 2019-01-09 Tom Tromey <tom@tromey.com>
11795
11796 * symtab.c (find_line_symtab, info_sources_command)
11797 (make_source_files_completion_list): Use objfile_compunits.
11798 * source.c (select_source_symtab): Use objfile_compunits.
11799 * objfiles.h (struct objfile): Update comment.
11800 (ALL_OBJFILES): Remove.
11801 (ALL_FILETABS): Remove.
11802 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
11803 objfile_compunits.
11804
11805 2019-01-09 Tom Tromey <tom@tromey.com>
11806
11807 * symmisc.c (print_objfile_statistics, dump_objfile)
11808 (maintenance_print_symbols): Use compunit_filetabs.
11809 * source.c (forget_cached_source_info_for_objfile): Use
11810 compunit_filetabs.
11811 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
11812 (ALL_FILETABS): Use compunit_filetabs.
11813 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
11814 * coffread.c (coff_symtab_read): Use compunit_filetabs.
11815
11816 2019-01-09 Tom Tromey <tom@tromey.com>
11817
11818 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
11819 (compunit_filetabs): New.
11820 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
11821 compunit_filetabs.
11822 (info_sources_command, make_source_files_completion_list): Remove
11823 declaration.
11824 * symmisc.c (print_objfile_statistics, dump_objfile)
11825 (maintenance_print_symbols): Remove declaration.
11826 (maintenance_info_symtabs): Use compunit_filetabs.
11827 (maintenance_info_line_tables): Likewise.
11828 * source.c (select_source_symtab): Change local variable name.
11829 (forget_cached_source_info_for_objfile): Remove declaration.
11830 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
11831 * objfiles.c (objfile_relocate1): Remove declaration.
11832 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
11833 declaration.
11834 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
11835 * coffread.c (coff_symtab_read): Remove declaration.
11836 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
11837 compunit_filetabs.
11838
11839 2019-01-09 Tom Tromey <tom@tromey.com>
11840
11841 * symtab.c (lookup_objfile_from_block)
11842 (find_pc_sect_compunit_symtab, search_symbols)
11843 (default_collect_symbol_completion_matches_break_on): Use
11844 objfile_compunits.
11845 * objfiles.h (ALL_COMPUNITS): Remove.
11846 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
11847 * cp-support.c (add_symbol_overload_list_qualified): Use
11848 objfile_compunits.
11849 * ada-lang.c (ada_collect_symbol_completion_matches)
11850 (ada_add_global_exceptions): Use objfile_compunits.
11851
11852 2019-01-09 Tom Tromey <tom@tromey.com>
11853
11854 * source.c (select_source_symtab)
11855 (forget_cached_source_info_for_objfile): Remove declaration.
11856 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
11857 declaration.
11858 * maint.c (count_symtabs_and_blocks): Remove declaration.
11859 * cp-support.c (add_symbol_overload_list_qualified): Remove
11860 declaration.
11861 * coffread.c (coff_symtab_read): Remove declaration.
11862 * symtab.c (lookup_symbol_in_objfile_symtabs)
11863 (basic_lookup_transparent_type_1): Use objfile_compunits.
11864 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
11865 (info_sources_command, search_symbols)
11866 (default_collect_symbol_completion_matches_break_on)
11867 (make_source_files_completion_list): Remove declaration.
11868 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
11869 (ada_collect_symbol_completion_matches)
11870 (ada_add_global_exceptions): Remove declaration.
11871 * linespec.c (iterate_over_all_matching_symtabs): Use
11872 objfile_compunits.
11873 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
11874 (class objfile_compunits): New.
11875 (ALL_COMPUNITS): Use objfile_compunits.
11876 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
11877 (maintenance_check_symtabs, maintenance_info_line_tables): Use
11878 objfile_compunits.
11879 * objfiles.c (objfile_relocate1): Use objfile_compunits.
11880
11881 2019-01-09 Tom Tromey <tom@tromey.com>
11882
11883 * symtab.c (search_symbols)
11884 (default_collect_symbol_completion_matches_break_on): Use
11885 objfile_msymbols.
11886 * ada-lang.c (ada_lookup_simple_minsym)
11887 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
11888 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
11889 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
11890 objfile_msymbols.
11891 * coffread.c (coff_symfile_read): Use objfile_msymbols.
11892 * symmisc.c (dump_msymbols): Use objfile_msymbols.
11893 * objc-lang.c (find_methods): Use objfile_msymbols.
11894 (info_selectors_command, info_classes_command): Likewise.
11895 * stabsread.c (scan_file_globals): Use objfile_msymbols.
11896 * objfiles.h (class objfile_msymbols): New.
11897 (ALL_OBJFILE_MSYMBOLS): Remove.
11898 (ALL_MSYMBOLS): Remove.
11899
11900 2019-01-09 Tom Tromey <tom@tromey.com>
11901
11902 * common/next-iterator.h (next_adapter): Add Iterator template
11903 parameter.
11904 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
11905 (class all_objfiles_safe): New.
11906 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
11907 * objfiles.c (put_objfile_before): Update comment.
11908 (add_separate_debug_objfile): Likewise.
11909 (free_all_objfiles): Use all_objfiles_safe.
11910 (objfile_purge_solibs): Likewise.
11911
11912 2019-01-09 Tom Tromey <tom@tromey.com>
11913
11914 * symtab.c (iterate_over_symtabs, matching_obj_sections)
11915 (expand_symtab_containing_pc, lookup_static_symbol)
11916 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
11917 (find_symbol_at_address, find_line_symtab, find_main_name): Use
11918 all_objfiles.
11919 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
11920 * breakpoint.c (create_overlay_event_breakpoint)
11921 (create_longjmp_master_breakpoint)
11922 (create_std_terminate_master_breakpoint)
11923 (create_exception_master_breakpoint): Use all_objfiles.
11924 * linux-thread-db.c (try_thread_db_load_from_pdir)
11925 (has_libpthread): Use all_objfiles.
11926 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
11927 * linespec.c (iterate_over_all_matching_symtabs)
11928 (search_minsyms_for_name): Use all_objfiles.
11929 * maint.c (maintenance_info_sections): Use all_objfiles.
11930 * main.c (captured_main_1): Use all_objfiles.
11931 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
11932 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
11933 * guile/scm-pretty-print.c
11934 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
11935 * solib-spu.c (append_ocl_sos): Use all_objfiles.
11936 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
11937 (maintenance_print_msymbols): Use all_objfiles.
11938 * source.c (select_source_symtab): Use all_objfiles.
11939 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
11940 * symfile.c (remove_symbol_file_command)
11941 (expand_symtabs_matching, map_symbol_filenames): Use
11942 all_objfiles.
11943 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
11944 all_objfiles.
11945 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
11946 * objc-lang.c (find_methods): Use all_objfiles.
11947 * objfiles.c (have_partial_symbols, have_full_symbols)
11948 (have_minimal_symbols, qsort_cmp)
11949 (default_iterate_over_objfiles_in_search_order): Use
11950 all_objfiles.
11951 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
11952 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
11953 (maintenance_check_psymtabs): Use all_objfiles.
11954 (ALL_PSYMTABS): Remove.
11955 * compile/compile-object-run.c (do_module_cleanup): Use
11956 all_objfiles.
11957 * blockframe.c (find_pc_partial_function): Use all_objfiles.
11958 * cp-support.c (add_symbol_overload_list_qualified): Use
11959 all_objfiles.
11960 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
11961 Use all_objfiles.
11962 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
11963 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
11964 all_objfiles.
11965 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
11966 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
11967 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
11968 Uses all_objfiles.
11969 * solib.c (solib_read_symbols): Use all_objfiles
11970
11971 2019-01-09 Tom Tromey <tom@tromey.com>
11972
11973 * probe.c (parse_probes_in_pspace): Use all_objfiles.
11974 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
11975 all_objfiles.
11976 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
11977 * symmisc.c (print_symbol_bcache_statistics)
11978 (print_objfile_statistics, maintenance_print_objfiles)
11979 (maintenance_info_symtabs, maintenance_check_symtabs)
11980 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
11981 all_objfiles.
11982 * source.c (forget_cached_source_info): Use all_objfiles.
11983 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
11984 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
11985 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
11986 * objfiles.c (update_section_map): Use all_objfiles.
11987 (shared_objfile_contains_address_p): Likewise.
11988 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
11989 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
11990
11991 2019-01-09 Tom Tromey <tom@tromey.com>
11992
11993 * common/next-iterator.h: New file.
11994 * objfiles.h (class all_objfiles): New.
11995 (struct objfile_iterator): New.
11996
11997 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11998
11999 * NEWS: Move the description of the changed "frame", "select-frame",
12000 and "info frame" commands to the Changed commands section.
12001
12002 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
12003
12004 * gdbtypes.c (check_stub_method_group): Remove handling of old
12005 mangling schemes.
12006 * linespec.c (find_methods): Likewise.
12007 * stabsread.c (read_member_functions): Likewise.
12008 * valops.c (search_struct_method): Likewise.
12009 (value_struct_elt_for_reference): Likewise.
12010 * NEWS: Mention this change.
12011
12012 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12013
12014 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
12015 print_source_lines.
12016 * source.c (print_source_lines_base): Update line number check.
12017 (print_source_lines): New function.
12018 (source_lines_range::source_lines_range): New function.
12019 * source.h (class source_lines_range): New class.
12020 (print_source_lines): New declaration.
12021
12022 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12023
12024 * linespec.c (linespec_state_destructor): Free self->canonical_names.
12025
12026 2019-01-08 Tom Tromey <tom@tromey.com>
12027 Simon Marchi <simon.marchi@ericsson.com>
12028
12029 PR gdb/24060
12030 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
12031 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
12032 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
12033 * f-exp.y (DOLLAR_VARIABLE): Likewise.
12034 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
12035 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
12036
12037 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12038
12039 * source.c (select_source_symtab): Move header comment to
12040 declaration in source.h.
12041 (forget_cached_source_info_for_objfile): Likewise.
12042 (forget_cached_source_info): Likewise.
12043 (identify_source_line): Likewise.
12044 * source.h (identify_source_line): Move declaration from symtab.h
12045 and add comment from source.c
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 from symtab.h.
12051 * symtab.h (identify_source_line): Move declaration to source.h.
12052 (print_source_lines): Likewise.
12053 (forget_cached_source_info_for_objfile): Likewise.
12054 (forget_cached_source_info): Likewise.
12055 (select_source_symtab): Likewise.
12056 (enum print_source_lines_flag): Move definition to source.h.
12057 * tui/tui-hooks.c: Add 'source.h' include.
12058
12059 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12060
12061 * source.c (print_source_lines_base): Handle requests to print
12062 reverse line number sequences, and guard against empty lines
12063 string.
12064
12065 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12066
12067 * source.c (print_source_lines_base): Fix skip of '\r' if next
12068 character is '\n'.
12069
12070 2019-01-06 Tom Tromey <tom@tromey.com>
12071
12072 * c-exp.y (struct c_parse_state) <macro_original_text,
12073 expansion_obstack>: New member.
12074 (macro_original_text, expansion_obstack): Remove globals.
12075 (scan_macro_expansion, scanning_macro_expansion)
12076 (finished_macro_expansion): Update.
12077 (scan_macro_cleanup): Remove.
12078 (yylex, c_parse): Update.
12079
12080 2019-01-06 Tom Tromey <tom@tromey.com>
12081
12082 * c-exp.y (struct c_parse_state) <strings>: New member.
12083 (operator_stoken): Update.
12084
12085 2019-01-06 Tom Tromey <tom@tromey.com>
12086
12087 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
12088 (union type_stack_elt) <typelist_val>: Now a pointer to
12089 std::vector.
12090 (type_stack_cleanup): Don't declare.
12091 (push_typelist): Update.
12092 * parse.c (pop_typelist): Return a std::vector.
12093 (push_typelist): Take a std::vector.
12094 (follow_types): Update. Do not free args.
12095 (type_stack_cleanup): Remove.
12096 * c-exp.y (struct c_parse_state): New.
12097 (cpstate): New global.
12098 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
12099 (nonempty_typelist): Update.
12100 (func_mod): Create a new vector.
12101 (c_parse): Create a c_parse_state.
12102 (check_parameter_typelist): Do not delete params.
12103 (function_method): Update. Do not delete type_list.
12104
12105 2019-01-06 Tom Tromey <tom@tromey.com>
12106
12107 PR gdb/28155:
12108 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
12109 check_typedef.
12110 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
12111 (print_return_value): Likewise.
12112
12113 2019-01-05 Tom Tromey <tom@tromey.com>
12114
12115 * contrib/cleanup_check.py: Remove.
12116 * contrib/gcc-with-excheck: Remove.
12117 * contrib/exsummary.py: Remove.
12118 * contrib/excheck.py: Remove.
12119
12120 2019-01-05 Joel Brobecker <brobecker@adacore.com>
12121
12122 * thread.c (delete_thread_1): Add gdb_assert that THR is not
12123 NULL. Initialize tpprev to NULL instead of assigning it
12124 to NULL on the next statement.
12125 * windows-nat.c (windows_delete_thread): Remove check for
12126 main_thread_id before printing thread exit notifications.
12127 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
12128 Remove thread ID check against main_thread_id.
12129 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
12130 windows_delete_thread.
12131 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
12132
12133 2019-01-04 Tom Tromey <tom@tromey.com>
12134
12135 * compile/compile.c (_initialize_compile): Use upper case for
12136 metasyntactic variables.
12137 * symmisc.c (_initialize_symmisc): Use upper case for
12138 metasyntactic variables.
12139 * psymtab.c (_initialize_psymtab): Use upper case for
12140 metasyntactic variables.
12141 * demangle.c (demangle_command): Use upper case for metasyntactic
12142 variables.
12143 (_initialize_demangler): Likewise.
12144 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
12145 variables.
12146
12147 2019-01-03 Tom Tromey <tom@tromey.com>
12148
12149 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
12150
12151 2019-01-03 Tom Tromey <tom@tromey.com>
12152
12153 * python/py-symtab.c (salpy_str): Update.
12154 (struct salpy_sal_object) <symtab>: Now a PyObject.
12155 (salpy_dealloc): Update.
12156 (del_objfile_sal): Use gdbpy_ref.
12157
12158 2019-01-03 Tom Tromey <tom@tromey.com>
12159
12160 * python/py-type.c (convert_field): Use new_reference. Return
12161 gdbpy_ref.
12162 (make_fielditem): Return gdbpy_ref.
12163 (typy_fields): Update.
12164 (typy_getitem): Update.
12165 (field_name): Return gdbpy_ref. Use new_reference.
12166 (typy_iterator_iternext): Update.
12167
12168 2019-01-03 Tom Tromey <tom@tromey.com>
12169
12170 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
12171
12172 2019-01-03 Tom Tromey <tom@tromey.com>
12173
12174 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
12175 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
12176 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
12177 (pspy_set_frame_filters, pspy_set_frame_unwinders)
12178 (pspy_set_type_printers): Likewise.
12179 * python/py-function.c (fnpy_init): Use gdbpy_ref.
12180 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
12181 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
12182 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
12183 (objfpy_set_type_printers): Likewise.
12184
12185 2019-01-03 Tom Tromey <tom@tromey.com>
12186
12187 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
12188 (gdbpy_print_stack): Use gdbpy_err_fetch.
12189 * python/python-internal.h (class gdbpy_err_fetch): New class.
12190 (class gdbpy_enter) <m_error_type, m_error_value,
12191 m_error_traceback>: Remove.
12192 <m_error>: New member.
12193 (gdbpy_exception_to_string): Don't declare.
12194 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
12195 * python/py-value.c (convert_value_from_python): Use
12196 gdbpy_err_fetch.
12197 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
12198 gdbpy_exception_to_string.
12199 (gdbpy_handle_exception): Use gdbpy_err_fetch.
12200 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
12201 gdbpy_err_fetch.
12202
12203 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12204
12205 * linux-nat.c (delete_lwp_cleanup): Delete.
12206 (struct lwp_deleter): New struct.
12207 (lwp_info_up): New typedef.
12208 (linux_nat_target::follow_fork): Delete cleanup, and make use of
12209 lwp_info_up.
12210
12211 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12212
12213 * linux-fork.c (class scoped_switch_fork_info): New class.
12214 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
12215
12216 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12217
12218 * valops.c (find_overload_match): Remove use of null_cleanup, and
12219 calls to do_cleanups.
12220
12221 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12222
12223 * compile/compile-cplus-types.c
12224 (compile_cplus_instance::decl_name): Handle changes to
12225 cp_func_name.
12226 * cp-support.c (cp_func_name): Update header comment, update
12227 return type.
12228 * cp-support.h (cp_func_name): Update return type in declaration.
12229 * valops.c (find_overload_match): Move temp_func local to top
12230 level of function and change its type. Use temp_func to hold and
12231 delete temporary string obtained from cp_func_name.
12232
12233 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12234
12235 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
12236 gdb::char_vector, remove cleanup, and update uses of `msg`.
12237
12238 2019-01-03 Jim Wilson <jimw@sifive.com>
12239
12240 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
12241
12242 2019-01-02 Tom Tromey <tom@tromey.com>
12243
12244 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
12245 (tdesc_parse_xml): Remove cleanups.
12246 * target-descriptions.h (make_cleanup_free_target_description):
12247 Don't declare.
12248 (target_desc_deleter): New struct.
12249 (target_desc_up): New typedef.
12250 * target-descriptions.c (target_desc_deleter::operator()): Rename
12251 from free_target_description.
12252 (make_cleanup_free_target_description): Remove.
12253
12254 2019-01-02 Tom Tromey <tom@tromey.com>
12255
12256 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
12257 constructor, destructor.
12258 (linespec_parser): Remove typedef.
12259 (~linespec_parser): Rename from linespec_parser_delete.
12260 (linespec_lex_to_end, linespec_complete_label)
12261 (linespec_complete): Update.
12262 (decode_line_full): Remove cleanups.
12263 (decode_line_1): Update.
12264
12265 2019-01-02 Tom Tromey <tom@tromey.com>
12266
12267 * python/python-internal.h (inferior_to_inferior_object): Change
12268 return type.
12269 * python/py-exitedevent.c (create_exited_event_object): Update.
12270 * python/py-inferior.c (inferior_to_inferior_object): Return
12271 gdbpy_ref.
12272 (python_new_inferior, python_inferior_deleted)
12273 (thread_to_thread_object, delete_thread_object)
12274 (build_inferior_list, gdbpy_selected_inferior): Update.
12275 * python/py-infthread.c (create_thread_object): Update. Also fail
12276 if inferior_to_inferior_object fails.
12277
12278 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
12279
12280 * inferior.h (class inferior) <displaced_step_state>: New field.
12281 * infrun.h (struct displaced_step_state): Move here from
12282 infrun.c. Initialize fields, add constructor.
12283 <inf>: Remove field.
12284 <reset>: New method.
12285 * infrun.c (struct displaced_step_inferior_state): Move to
12286 infrun.h.
12287 (displaced_step_inferior_states): Remove.
12288 (get_displaced_stepping_state): Adust.
12289 (displaced_step_in_progress_any_inferior): Adjust.
12290 (displaced_step_in_progress_thread): Adjust.
12291 (displaced_step_in_progress): Adjust.
12292 (add_displaced_stepping_state): Remove.
12293 (get_displaced_step_closure_by_addr): Adjust.
12294 (remove_displaced_stepping_state): Remove.
12295 (infrun_inferior_exit): Call displaced_step_state.reset.
12296 (use_displaced_stepping): Don't check for NULL.
12297 (displaced_step_prepare_throw): Call
12298 get_displaced_stepping_state.
12299 (displaced_step_fixup): Don't check for NULL.
12300 (prepare_for_detach): Don't check for NULL.
12301
12302 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12303
12304 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
12305 in case of call that did not complete.
12306
12307 2019-01-02 Andrey Utkin <autkin@undo.io>
12308
12309 * symfile.c (find_separate_debug_file): Fix search of debug files for
12310 remote debuggee.
12311
12312 2019-01-02 Tom Tromey <tom@tromey.com>
12313
12314 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
12315 indentation.
12316 * python/py-frame.c (frapy_older): Remove cast.
12317 (frapy_newer): Likewise.
12318 * python/py-breakpoint.c (local_setattro): Remove cast.
12319 * python/py-arch.c (archpy_name): Remove local variable.
12320 * python/py-type.c (gdbpy_lookup_type): Remove cast.
12321
12322 2019-01-02 Joel Brobecker <brobecker@adacore.com>
12323
12324 * unittests/basic_string_view/element_access/char/empty.cc:
12325 Fix year range in copyright header.
12326
12327 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
12328
12329 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
12330 Delete.
12331 <operator==>: Update with for removed field.
12332 <hash>: Likewise.
12333 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
12334 <isa_features>: ...this.
12335 <abi_features>: New field.
12336 (riscv_isa_flen): Update comment.
12337 (riscv_abi_xlen): New declaration.
12338 (riscv_abi_flen): New declaration.
12339 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
12340 isa_features.
12341 (riscv_abi_xlen): New function.
12342 (riscv_isa_flen): Update to get answer from isa_features.
12343 (riscv_abi_flen): New function.
12344 (riscv_has_fp_abi): Update to get answer from abi_features.
12345 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
12346 xlen and flen.
12347 (riscv_call_info) <xlen, flen>: Update comment.
12348 (riscv_call_arg_struct): Remove invalid assertions
12349 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
12350 is removed.
12351 (riscv_gdbarch_init): Gather isa features and abi features
12352 separately, ensure both match on the gdbarch when reusing an old
12353 gdbarch. Relax an error check to allow 32-bit abi float to run on
12354 a target with 64-bit float hardware.
12355
12356 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12357
12358 * source.c (search_command_helper): Stop reverse search
12359 when line 1 has been searched.
12360
12361 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12362
12363 * record-full.c (record_full_base_target::close): Rewrite
12364 record_full_core_buf_list free logic.
12365
12366 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12367
12368 * break-catch-syscall.c (print_one_catch_syscall): xfree
12369 the last text.
12370
12371 2019-01-01 Joel Brobecker <brobecker@adacore.com>
12372
12373 * top.c (print_gdb_version): Update Copyright year in version
12374 message.
12375
12376 2019-01-01 Joel Brobecker <brobecker@adacore.com>
12377
12378 Update copyright year range in all GDB files.
12379
12380 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
12381
12382 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
12383
12384 For older changes see ChangeLog-2018.
12385 \f
12386 Local Variables:
12387 mode: change-log
12388 left-margin: 8
12389 fill-column: 74
12390 version-control: never
12391 coding: utf-8
12392 End:
12393