]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
Don't duplicate comment in symfile.c and .h
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2019-09-16 Christian Biesinger <cbiesinger@google.com>
2
3 * symfile.c (auto_solib_add): Replace comment with a reference
4 to the header file.
5
6 2019-09-14 Christian Biesinger <cbiesinger@google.com>
7
8 * NEWS: Mention that gdb can now be compiled with Python 3
9 on Windows.
10
11 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
12
13 * maint.c (maint_print_section_data::maint_print_section_data):
14 Force use of 'float log10 (float)' by casting the argument to
15 float.
16
17 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
18
19 * maint.c: Add 'cmath' include.
20 (struct maint_print_section_data): New structure.
21 (print_section_index): New function.
22 (print_bfd_section_info): Add header comment, small whitespace
23 cleanup, and update to call new print_section_index function.
24 (print_objfile_section_info): Likewise.
25 (maint_obj_section_from_bfd_section): New function.
26 (print_bfd_section_info_maybe_relocated): New function.
27 (maintenance_info_sections): Add header comment, always use
28 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
29
30 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
31
32 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
33 inner scope, add check that the objfile has psymtabs before
34 checking psymtabs_addrmap.
35 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
36
37 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
38
39 * NEWS: Announce that Ada task names are now shown at more places,
40 and between quotes (except in info task output).
41 * gdb/ada-tasks.c (task_to_str): New function.
42 (display_current_task_id): Call task_to_str.
43 (task_command_1): Likewise.
44 (print_ada_task_info): In non-mi mode, Properly align headers and data
45 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
46
47 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
48
49 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
50 prstatus.pr_lwp.pr_info instead of making it up.
51
52 2019-09-11 Christian Biesinger <cbiesinger@google.com>
53
54 * auto-load.c (auto_load_expand_dir_vars): Update.
55 * defs.h (gdb_datadir): Change to std::string.
56 (python_libdir): Likewise.
57 (relocate_gdb_directory): Change return type to std::string.
58 * guile/guile.c (gdbscm_data_directory): Update.
59 (initialize_scheme_side): Update.
60 * jit.c (jit_reader_dir): Change to std::string.
61 (jit_reader_load_command): Update.
62 * main.c (gdb_datadir): Change to std::string.
63 (python_libdir): Likewise.
64 (set_gdb_data_directory): Update.
65 (relocate_path): Change to return std::string.
66 (relocate_gdb_directory): Change to return std::string.
67 (relocate_gdbinit_path_maybe_in_datadir): Update.
68 (captured_main_1): Update.
69 * python/python.c (do_start_initialization): Update.
70 * top.c (show_gdb_datadir): Update.
71 * xml-syscall.c (xml_init_syscalls_info): Update.
72 (init_syscalls_info): Update.
73
74 2019-09-11 Christian Biesinger <cbiesinger@google.com>
75
76 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
77 out of get_init_files.
78 (get_init_files): Update.
79
80 2019-09-11 Christian Biesinger <cbiesinger@google.com>
81
82 * main.c (get_init_files): Change to use std::string.
83 (captured_main_1): Update.
84 (print_gdb_help): Update.
85
86 2019-09-11 Ali Tamur <tamur@google.com>
87
88 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
89 implementation.
90
91 2019-09-11 Christian Biesinger <cbiesinger@google.com>
92
93 * dbxread.c (read_dbx_symtab): Update.
94 * dwarf2read.c (load_partial_dies): Update.
95 * mdebugread.c (parse_partial_symbols): Update.
96 (handle_psymbol_enumerators): Update.
97 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
98 * psymtab.c (add_psymbol_to_bcache): Likewise.
99 (add_psymbol_to_list): Likewise.
100 * symtab.c (symbol_set_names): Likewise.
101 * symtab.h (symbol_set_names): Likewise.
102 * xcoffread.c (scan_xcoff_symtab): Update.
103
104 2019-09-11 Tom Tromey <tom@tromey.com>
105
106 * symfile-mem.c (symbol_file_add_from_memory): Use
107 bfd_set_filename.
108 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
109 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
110
111 2019-09-10 Tom Tromey <tromey@adacore.com>
112
113 * dwarf-index-write.c (write_psymbols): Extend error message.
114 (debug_names::insert): Add Ada code.
115 (debug_names::write_psymbols): Remove Ada check.
116 (debug_names) <m_string_obstack>: New member.
117 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
118 (gdb_index_symbol_name_matcher::matches): Remove.
119 (mapped_index_base::find_name_components_bounds): Add "lang"
120 parameter.
121 (mapped_index_base::build_name_components): Also split names
122 according to Ada syntax.
123 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
124 type of "match_callback".
125 (check_match, check_find_bounds_finds)
126 (dw2_expand_symtabs_matching): Update.
127 (dw2_debug_names_iterator): Add new constructor.
128 (dw2_debug_names_map_matching_symbols): New function.
129 (dw2_debug_names_expand_symtabs_matching): Update.
130 (dwarf2_debug_names_functions): Use
131 dw2_debug_names_map_matching_symbols.
132
133 2019-09-10 Tom Tromey <tromey@adacore.com>
134
135 * dwarf2read.c (dw2_get_file_names_reader): Add the
136 CU's file name to the results.
137
138 2019-09-10 Tom Tromey <tromey@adacore.com>
139
140 * ada-lang.c (add_nonlocal_symbols): Combine calls to
141 map_matching_symbols. Update.
142 * dwarf2read.c (dw2_map_matching_symbols): Update.
143 * psymtab.c (match_partial_symbol): Change type; update.
144 (psym_map_matching_symbols): Likewise.
145 * symfile-debug.c (debug_qf_map_matching_symbols): Change
146 type; update.
147 * symfile.h (struct quick_symbol_functions)
148 <map_matching_symbols>: Change "name" to be a lookup_name_info.
149 Remove "match".
150
151 2019-09-10 Tom Tromey <tromey@adacore.com>
152
153 * psymtab.c (map_block): Remove.
154 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
155 * symtab.c (iterate_over_symbols_terminated): New function.
156 * symtab.c (iterate_over_symbols_terminated): Declare.
157
158 2019-09-10 Tom Tromey <tromey@adacore.com>
159
160 * ada-lang.c (ada_iterate_over_symbols): Return bool.
161 * language.h (struct language_defn) <la_iterate_over_symbols>:
162 Return bool.
163 * symtab.c (iterate_over_symbols): Return bool.
164 * symtab.h (iterate_over_symbols): Return bool.
165
166 2019-09-10 Tom Tromey <tromey@adacore.com>
167
168 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
169 (add_nonlocal_symbols): Update.
170 * dwarf2read.c (dw2_map_matching_symbols): Change type.
171 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
172 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
173 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
174 Change type of "callback". Remove "data".
175
176
177 2019-09-09 Ali Tamur <tamur@google.com>
178
179 * dwarf2read.c (comp_unit_head): Update comment.
180 (dwarf2_dwo_name): New function declaration.
181 (dwarf_unit_type_name): New function declaration.
182 (read_comp_unit_head): Add support for new compilation units,
183 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
184 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
185 (currently named as "signature") in their header. Also clarify error
186 messages.
187 (lookup_dwo_id): New function. Returns the dwo id of the given
188 compile unit.
189 (lookup_dwo_unit): Use the new lookup_dwo_id function.
190 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
191 functions.
192 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
193 (dwarf2_dwo_name): Get the dwo name if present.
194 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
195 purposes.
196
197 2019-09-09 Tom Tromey <tom@tromey.com>
198
199 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
200
201 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
202
203 * python/python.c (do_start_initialization): Make progname_copy static,
204 to avoid a leak report.
205
206 2019-09-08 Tom Tromey <tom@tromey.com>
207
208 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
209
210 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
211
212 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
213 Change type to gdb::optional<block_enum>.
214 (dw2_symtab_iter_init): Change block_index parameter type
215 to gdb::optional<block_enum>.
216 (dw2_lookup_symbol): Change block_index parameter
217 type to block_enum.c
218 (dw2_debug_names_lookup_symbol): Likewise.
219 * psymtab.c (psym_lookup_symbol): Likewise.
220 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
221 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
222 Likewise.
223
224 2019-09-06 Christian Biesinger <cbiesinger@google.com>
225
226 * defs.h (relocate_gdb_directory): Change int to bool in
227 signature and rename flag to relocatable.
228 * main.c (relocate_path): Likewise.
229 (relocate_gdb_directory): Likewise.
230
231 2019-09-06 Alan Modra <amodra@gmail.com>
232
233 * coffread.c (coff_symfile_read): Constify filename variable.
234 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
235 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
236 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
237 * solib.c (reload_shared_libraries_1): Likewise.
238 * symfile.c (reread_symbols): Likewise.
239 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
240 * solib-darwin.c (darwin_bfd_open): Likewise.
241 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
242
243 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
244
245 * psymtab.c (print_partial_symbols): Handle missing domain_enum
246 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
247
248 2019-09-03 Tom Tromey <tromey@adacore.com>
249
250 * ada-valprint.c (ada_val_print_num): Don't recurse for range
251 types.
252 (has_negatives): Unbias a range type bound.
253 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
254 * gdbtypes.c (operator==): Handle new field.
255 (create_range_type): Add "bias" parameter.
256 (create_static_range_type, resolve_dynamic_range): Update.
257 * gdbtypes.h (struct range_bounds) <bias>: New member.
258 (create_range_type): Add bias parameter.
259 * printcmd.c (print_scalar_formatted): Unbias range types.
260 * value.c (unpack_long): Unbias range types.
261 (pack_long): Bias range types.
262
263 2019-09-02 Alan Hayward <alan.hayward@arm.com>
264
265 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
266 probe arguments.
267
268 2019-09-02 Alan Hayward <alan.hayward@arm.com>
269
270 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
271 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
272 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
273 (compile_probe_arg): Likewise.
274 * probe.h (get_argument_count): Likewise.
275 * solib-svr4.c (solib_event_probe_action): Likewise.
276 * stap-probe.c (stap_probe::get_argument_count): Likewise.
277
278 2019-09-02 Alan Hayward <alan.hayward@arm.com>
279
280 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
281 code to here...
282 (svr4_create_solib_event_breakpoints): ...from here.
283
284 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
285
286 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
287 suffix from warning message.
288
289 2019-08-30 Tom Tromey <tom@tromey.com>
290
291 * tui/tui-winsource.h (struct tui_source_window_base)
292 <refresh_all>: Don't declare.
293 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
294 Remove.
295 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
296 tui_show_locator_content.
297 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
298 declare.
299 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
300 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
301 declare.
302
303 2019-08-30 Tom Tromey <tom@tromey.com>
304
305 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
306
307 2019-08-30 Tom Tromey <tom@tromey.com>
308
309 * tui/tui-stack.c (_initialize_tui_stack): Move later.
310 Remove unnecessary forward declarations.
311
312 2019-08-30 Tom Tromey <tom@tromey.com>
313
314 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
315 rerender.
316 (tui_update_locator_fullname, tui_show_frame_info): Don't call
317 tui_show_locator_content.
318
319 2019-08-30 Tom Tromey <tom@tromey.com>
320
321 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
322 (tui_locator_window::rerender): Rewrite using body of previous
323 tui_show_locator_content.
324
325 2019-08-30 Tom Tromey <tom@tromey.com>
326
327 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
328 set_locator_fullname>: New methods.
329 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
330 Rename from tui_set_locator_fullname.
331 (tui_locator_window::set_locator_info): Rename from
332 tui_set_locator_info. Return bool.
333 (tui_update_locator_fullname, tui_show_frame_info): Update.
334
335 2019-08-30 Tom Tromey <tom@tromey.com>
336
337 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
338
339 2019-08-30 Tom Tromey <tom@tromey.com>
340
341 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
342 call touchwin.
343
344 2019-08-30 Tom Tromey <tom@tromey.com>
345
346 * tui/tui-wingeneral.c (box_win): Assume win_info and
347 win_info->handle cannot be NULL.
348
349 2019-08-30 Tom Tromey <tom@tromey.com>
350
351 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
352 refresh_window>: Declare.
353 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
354 resize.
355 (tui_data_item_window::rerender): Rename from
356 tui_display_register.
357 (tui_data_item_window::refresh_window): New method.
358 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
359 no-op.
360
361 2019-08-30 Tom Tromey <tom@tromey.com>
362
363 * tui/tui-regs.h (struct tui_data_window) <regs_content,
364 regs_column_count, current_group>: Move later. Now private.
365 <get_current_group>: New method.
366 * tui/tui-regs.c (tui_reg_command): Update.
367 * tui/tui-layout.c (tui_set_layout): Update.
368
369 2019-08-30 Tom Tromey <tom@tromey.com>
370
371 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
372 (tui_data_window::rerender): Don't call
373 check_and_display_highlight_if_needed.
374 (tui_data_window::refresh_all): Remove call to
375 erase_data_content.
376
377 2019-08-30 Tom Tromey <tom@tromey.com>
378
379 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
380 (tui_data_window::display_registers_from)
381 (tui_data_window::display_reg_element_at_line)
382 (tui_data_window::display_registers_from_line): Remove checks of
383 "empty".
384
385 2019-08-30 Tom Tromey <tom@tromey.com>
386
387 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
388 Don't declare.
389 * tui/tui-regs.c (tui_data_window::show_registers): Call
390 rerender.
391 (tui_data_window::rerender): Rename from display_all_data.
392 (tui_data_window::rerender): Remove old implementation.
393
394 2019-08-30 Tom Tromey <tom@tromey.com>
395
396 * tui/tui-regs.c (tui_data_window::display_all_data): Change
397 text.
398 * tui/tui-data.h (NO_DATA_STRING): Remove define.
399
400 2019-08-29 Bernhard Wodok <barto@gmx.net>
401 Sergio Durigan Junior <sergiodj@redhat.com>
402
403 PR win32/24284
404 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
405
406 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
407
408 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
409 when searching for types.
410
411 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
412
413 * f-lang.c (f_language_defn): Use f_print_typedef.
414 * f-lang.h (f_print_typedef): Declare.
415 * f-typeprint.c (f_print_typedef): Define.
416
417 2019-08-27 Christian Biesinger <cbiesinger@google.com>
418
419 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
420
421 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
422
423 * cli/cli-utils.c (info_print_options_defs): Delete.
424 (make_info_print_options_def_group): Delete.
425 (extract_info_print_options): Delete.
426 (info_print_command_completer): Delete.
427 (info_print_args_help): Add extra parameter, and optionally
428 include text about -n flag.
429 * cli/cli-utils.h (struct info_print_options): Delete.
430 (extract_info_print_options): Delete declaration.
431 (info_print_command_completer): Delete declaration.
432 (info_print_args_help): Add extra parameter, extend header
433 comment.
434 * python/python.c (gdbpy_rbreak): Pass additional parameter to
435 search_symbols.
436 * stack.c (struct info_print_options): New type.
437 (info_print_options_defs): New file scoped variable.
438 (make_info_print_options_def_group): New static function.
439 (info_print_command_completer): New static function.
440 (info_locals_command): Update to use new local functions.
441 (info_args_command): Likewise.
442 (_initialize_stack): Add extra parameter to calls to
443 info_print_args_help.
444 * symtab.c (search_symbols): Add extra parameter, use this to
445 possibly excluse non-debug symbols.
446 (symtab_symbol_info): Add extra parameter, which is passed on to
447 search_symbols.
448 (struct info_print_options): New type.
449 (info_print_options_defs): New file scoped variable.
450 (make_info_print_options_def_group): New static function.
451 (info_print_command_completer): New static function.
452 (info_variables_command): Update to use local functions, and pass
453 extra parameter through to symtab_symbol_info.
454 (info_functions_command): Likewise.
455 (info_types_command): Pass additional argument through to
456 symtab_symbol_info.
457 (rbreak_command): Pass extra argument to search_symbols.
458 (_initialize_symtab): Add extra arguments for calls to
459 info_print_args_help, and update help text for 'info variables',
460 'whereis', and 'info functions' commands.
461 * symtab.h (search_symbols): Add extra argument to declaration.
462 * NEWS: Mention new flags.
463
464 2019-08-26 Christian Biesinger <cbiesinger@google.com>
465
466 * symtab.c (lookup_static_symbol): Call the new function (and move
467 it down to be next to lookup_global_symbol).
468 (struct global_sym_lookup_data): Add block_enum member and rename to...
469 (struct global_or_static_sym_lookup_data): ...this.
470 (lookup_symbol_global_iterator_cb): Pass block_index instead of
471 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
472 (lookup_symbol_global_or_static_iterator_cb): ...this.
473 (lookup_global_or_static_symbol): New function.
474 (lookup_global_symbol): Call new function.
475
476 2019-08-26 Tom de Vries <tdevries@suse.de>
477
478 PR c++/24852
479 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
480 when pc_probe.prob == NULL.
481
482 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
483
484 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
485 variable symbol_linkage to symbol_linkage_.
486
487 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
488
489 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
490 represent whether the symbol is static, dynamic, or we don't
491 know.
492
493 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
494
495 * gdb/rx-tdep.c (rx_register_names): New.
496 (rx_register_name): Delete.
497 (rx_psw_type): Delete.
498 (rx_fpsw_type): Delete.
499 (rx_register_type): Delete.
500 (rx_gdbarch_init): Convert target-descriptions.
501 (_initialize_rx_tdep): Add initialize_tdesc_rx.
502 * gdb/features/Makefile: Add rx.xml.
503 * gdb/features/rx.xml: New.
504 * gdb/features/rx.c: Generated.
505 * gdb/NEWS: Mention target description support.
506
507 2019-08-22 Christian Biesinger <cbiesinger@google.com>
508
509 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
510 *slot_ptr.
511
512 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
513
514 * configure.ac: Don't check for 'dlfcn.h' (moved to
515 gdbsupport/common.m4).
516 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
517 'gdbsupport/'.
518 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
519 * compile/compile-c-support.c: Include
520 'gdbsupport/gdb-dlfcn.h'.
521 * gdbsupport/common.m4: Check for 'dlfcn.h'.
522 * gdb-dlfcn.c: Move to...
523 * gdbsupport/gdb-dlfcn.c: ... here.
524 * gdb-dlfcn.h: Move to...
525 * gdbsupport/gdb-dlfcn.h: ... here.
526
527 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
528
529 * nios2-tdep.c (struct reg_value): Improve comments. Make
530 the offset field signed.
531
532 2019-08-22 Christian Biesinger <cbiesinger@google.com>
533
534 * python/lib/gdb/__init__.py (_execute_file): New function.
535 * python/python.c (python_run_simple_file): Call gdb._execute_file
536 on Windows.
537
538 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
539
540 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
541 all uses as this was never set to anything but a zero value.
542
543 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
544
545 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
546
547 2019-08-21 Christian Biesinger <cbiesinger@google.com>
548
549 * tui/tui-data.h (tui_gen_win_info): Add an =default
550 move constructor, required by some GCC versions.
551
552 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
553
554 * go32-nat.c (go32_sysinfo): Add hygon_p.
555
556 2019-08-20 Tom Tromey <tom@tromey.com>
557
558 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
559 line_from_reg_element_no, first_reg_element_no_inline,
560 display_all_data, delete_data_content_windows,
561 erase_data_content>: Now private.
562
563 2019-08-20 Tom Tromey <tom@tromey.com>
564
565 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
566 (tui_unhighlight_win, tui_highlight_win)
567 (tui_win_info::make_window): Update.
568 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
569
570 2019-08-20 Tom Tromey <tom@tromey.com>
571
572 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
573 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
574 (MAX_PID_WIDTH): Move to tui-stack.c.
575 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
576 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
577 (MAX_PID_WIDTH): Move from tui-data.h.
578
579 2019-08-20 Tom Tromey <tom@tromey.com>
580
581 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
582 * tui/tui-wingeneral.c (box_win): Change type of win_info.
583 (box_win): Update.
584 (tui_gen_win_info::make_window): Rename from tui_make_window.
585 (tui_win_info::make_window): New method.
586 (tui_gen_win_info::make_visible): Update.
587 * tui/tui-source.c (tui_source_window::set_contents): Update.
588 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
589 (tui_data_window::display_registers_from): Update.
590 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
591 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
592 Declare.
593 <can_box>: Remove.
594 <title>: Remove.
595 (struct tui_win_info) <make_window>: Declare.
596 <can_box>: Now virtual.
597 <title>: New member.
598 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
599 * tui/tui-command.c (tui_cmd_window::resize): Update.
600
601 2019-08-20 Tom Tromey <tom@tromey.com>
602
603 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
604 * tui/tui-regs.c (tui_data_window::show_registers): Update.
605 (tui_data_window::check_register_values): Update.
606
607 2019-08-20 Tom Tromey <tom@tromey.com>
608
609 * tui/tui-regs.h (struct tui_data_window): Use
610 DISABLE_COPY_AND_ASSIGN.
611 <regs_content>: Change type, removing unique_ptr.
612 <tui_data_window>: Add move constructor.
613 * tui/tui-regs.c (tui_data_window::show_registers)
614 (tui_data_window::show_register_group)
615 (tui_data_window::display_registers_from)
616 (tui_data_window::display_registers_from)
617 (tui_data_window::first_data_item_displayed)
618 (tui_data_window::delete_data_content_windows)
619 (tui_data_window::rerender, tui_data_window::refresh_window)
620 (tui_data_window::check_register_values): Update.
621
622 2019-08-20 Tom Tromey <tom@tromey.com>
623
624 * tui/tui-regs.h (struct tui_data_window) <show_registers,
625 show_register_group>: Declare.
626 (tui_show_register_group): Don't declare.
627 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
628 tui_show_registers.
629 (tui_data_window::show_register_group): Rename from
630 tui_show_register_group.
631 (tui_data_window::check_register_values, tui_reg_command):
632 Update.
633 * tui/tui-layout.c (tui_set_layout): Update.
634
635 2019-08-20 Tom Tromey <tom@tromey.com>
636
637 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
638 Declare.
639 (tui_check_register_values): Don't declare.
640 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
641 from tui_check_register_values.
642 * tui/tui-hooks.c (tui_register_changed): Update.
643
644 2019-08-20 Tom Tromey <tom@tromey.com>
645
646 * tui/tui-regs.c (tui_reg_layout): Move later.
647 (tui_show_registers): Don't enable TUI mode or change layout.
648
649 2019-08-20 Tom Tromey <tom@tromey.com>
650
651 * tui/tui-regs.h (struct tui_data_item_window)
652 <~tui_data_item_window>: Remove.
653 <content>: Now a unique_xmalloc_ptr.
654 * tui/tui-regs.c (tui_register_format): Return a
655 unique_xmalloc_ptr.
656 (tui_get_register): Update.
657 (~tui_data_item_window): Remove.
658 (tui_data_window::display_registers_from, tui_display_register):
659 Update.
660 * tui/tui-io.h (tui_expand_tabs): Update.
661 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
662 Remove "col" parameter.
663
664 2019-08-20 Tom Tromey <tom@tromey.com>
665
666 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
667 field.
668 * tui/tui-regs.c (~tui_data_item_window): Update.
669
670 2019-08-20 Tom Tromey <tom@tromey.com>
671
672 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
673 earlier.
674
675 2019-08-20 Tom Tromey <tom@tromey.com>
676
677 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
678
679 2019-08-20 Tom Tromey <tom@tromey.com>
680
681 * tui/tui-source.h (struct tui_source_window): Update.
682 * tui/tui-regs.c (tui_show_registers): Update.
683 * tui/tui-disasm.h (struct tui_disasm_window): Update.
684 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
685 (NO_REGS_STRING): Remove defines.
686
687 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
688
689 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
690 unnecessary thread walk if remote doesn't support the packet.
691
692 2019-08-19 Tom Tromey <tromey@adacore.com>
693
694 * python/py-value.c (value_has_field): Fix indentation.
695
696 2019-08-19 Tom Tromey <tromey@adacore.com>
697
698 * printcmd.c (do_one_display, info_display_command): Update.
699 * block.h (contained_in): Return bool. Add allow_nested
700 parameter.
701 * block.c (contained_in): Return bool. Add allow_nested
702 parameter.
703
704 2019-08-19 Tom Tromey <tom@tromey.com>
705
706 * configure: Rebuild.
707 * configure.ac: Disallow the combination of -static-libstdc++ and
708 source highlight.
709 * source-cache.c (get_language_name): Handle rust.
710 (source_cache::get_source_lines): Ignore highlighting exceptions.
711
712 2019-08-16 Tom Tromey <tom@tromey.com>
713
714 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
715 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
716 (struct tui_source_window_base) <make_visible, refresh_window,
717 resize>: Remove methods.
718 <execution_info>: Remove field.
719 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
720 (tui_show_source_line, tui_source_window_base)
721 (~tui_source_window_base): Update.
722 (tui_source_window_base::resize)
723 (tui_source_window_base::make_visible)
724 (tui_source_window_base::refresh_window): Remove.
725 (tui_source_window_base::update_exec_info): Update.
726 * tui/tui-source.c (tui_source_window::set_contents): Update.
727 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
728
729 2019-08-16 Tom Tromey <tom@tromey.com>
730
731 * tui/tui-hooks.c (tui_remove_hooks): Don't set
732 deprecated_query_hook.
733
734 2019-08-16 Tom Tromey <tom@tromey.com>
735
736 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
737 (tui_update_source_windows_with_line): Update.
738 * tui/tui-source.h (struct tui_source_window)
739 <show_symtab_source>: Declare.
740 (tui_show_symtab_source): Don't declare.
741 * tui/tui-source.c (tui_show_symtab_source): Rename from
742 tui_show_symtab_source.
743
744 2019-08-16 Tom Tromey <tom@tromey.com>
745
746 * tui/tui-winsource.h (struct tui_source_window_base)
747 <set_contents>: Declare.
748 * tui/tui-winsource.c
749 (tui_source_window_base::update_source_window_as_is): Update.
750 * tui/tui-source.h (struct tui_source_window) <set_contents>:
751 Declare.
752 (tui_set_source_content): Don't declare.
753 * tui/tui-source.c (tui_source_window::set_contents): Rename from
754 tui_set_source_content.
755 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
756 Declare.
757 (tui_set_disassem_content): Don't declare.
758 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
759 tui_set_disassem_content.
760
761 2019-08-16 Tom Tromey <tom@tromey.com>
762
763 * tui/tui-winsource.h (struct tui_source_window_base)
764 <update_breakpoint_info>: Declare.
765 (tui_update_breakpoint_info): Don't declare.
766 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
767 (tui_update_all_breakpoint_info): Update.
768 (tui_source_window_base::update_breakpoint_info): Rename from
769 tui_update_breakpoint_info.
770 (tui_source_window_base::update_exec_info): Update.
771
772 2019-08-16 Tom Tromey <tom@tromey.com>
773
774 * tui/tui-winsource.h (struct tui_source_window_base)
775 <update_source_window>: Declare.
776 (tui_update_source_window): Don't declare.
777 * tui/tui-winsource.c
778 (tui_source_window_base::update_source_window): Rename from
779 tui_update_source_window.
780 (tui_source_window_base::rerender): Update.
781 * tui/tui-source.c (tui_source_window::maybe_update): Update.
782 * tui/tui-disasm.c (tui_show_disassem)
783 (tui_show_disassem_and_update_source)
784 (tui_disasm_window::maybe_update): Update.
785
786 2019-08-16 Tom Tromey <tom@tromey.com>
787
788 * tui/tui-winsource.h (struct tui_source_window_base)
789 <update_source_window_as_is>: Declare.
790 (tui_update_source_window_as_is): Don't declare.
791 * tui/tui-winsource.c (tui_update_source_window): Update
792 (tui_source_window_base::update_source_window_as_is): Rename from
793 tui_update_source_window_as_is.
794 (tui_source_window_base::refill): Update.
795 * tui/tui-source.c (tui_show_symtab_source): Update.
796 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
797 Update.
798
799 2019-08-16 Tom Tromey <tom@tromey.com>
800
801 * tui/tui-winsource.h (tui_update_source_window)
802 (tui_update_source_window_as_is): Remove "noerror" parameter.
803 * tui/tui-winsource.c (tui_update_source_window)
804 (tui_update_source_window_as_is): Remove "noerror" parameter.
805 (tui_update_source_windows_with_addr)
806 (tui_update_source_windows_with_line)
807 (tui_source_window_base::rerender)
808 (tui_source_window_base::refill): Update.
809 * tui/tui-source.h (tui_set_source_content)
810 (tui_show_symtab_source): Remove "noerror" parameter.
811 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
812 parameter.
813 (tui_show_symtab_source): Likewise.
814 (tui_source_window::maybe_update): Update.
815 * tui/tui-disasm.c (tui_show_disassem)
816 (tui_show_disassem_and_update_source)
817 (tui_disasm_window::do_scroll_vertical)
818 (tui_disasm_window::maybe_update): Update.
819
820 2019-08-16 Tom Tromey <tom@tromey.com>
821
822 * tui/tui.c (tui_is_window_visible): Update.
823 * tui/tui-wingeneral.c (tui_make_window)
824 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
825 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
826 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
827 (tui_set_win_height_command, parse_scrolling_args): Update.
828 * tui/tui-source.c (tui_source_window::style_changed): Update.
829 * tui/tui-regs.c (tui_show_registers)
830 (tui_data_window::first_data_item_displayed)
831 (tui_data_window::delete_data_content_windows)
832 (tui_check_register_values, tui_reg_command): Update.
833 * tui/tui-disasm.c (tui_show_disassem): Update.
834 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
835 method.
836 <is_visible>: Remove field.
837 * tui/tui-data.c (tui_next_win, tui_prev_win)
838 (tui_delete_invisible_windows): Update.
839
840 2019-08-16 Tom Tromey <tom@tromey.com>
841
842 * tui/tui-winsource.h (struct tui_source_window_base)
843 <m_has_locator>: Remove.
844 * tui/tui-layout.c (show_source_disasm_command, show_data)
845 (show_source_or_disasm_and_command): Update.
846
847 2019-08-16 Alan Hayward <alan.hayward@arm.com>
848
849 * NEWS (Other MI changes): New subsection.
850 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
851 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
852 * arch-utils.c (default_get_pc_address_flags): New function.
853 * arch-utils.h (default_get_pc_address_flags): New declaration.
854 * gdbarch.sh: Add get_pc_address_flags.
855 * gdbarch.c: Regenerate.
856 * gdbarch.h: Likewise.
857 * stack.c (print_pc): New function.
858 (print_frame_info) (print_frame): Call print_pc.
859
860 2019-08-16 Tom de Vries <tdevries@suse.de>
861
862 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
863 print_objfile_section_info.
864
865 2019-08-15 Tom Tromey <tom@tromey.com>
866
867 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
868 calling update_cmdwin_start_line.
869 * tui/tui-winsource.h (struct tui_source_window_base)
870 <do_make_visible_with_new_height, set_new_height>: Don't declare.
871 <rerender>: Declare.
872 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
873 Call rerender.
874 (tui_source_window_base::set_new_height): Remove.
875 (tui_source_window_base::rerender): Rename from
876 do_make_visible_with_new_height.
877 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
878 resize method.
879 (tui_win_info::make_invisible_and_set_new_height)
880 (tui_win_info::make_visible_with_new_height): Remove.
881 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
882 Declare.
883 * tui/tui-stack.c (tui_locator_window::rerender): New method.
884 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
885 do_make_visible_with_new_height>: Don't declare.
886 <rerender>: Declare.
887 * tui/tui-regs.c (tui_data_window::rerender): Rename from
888 set_new_height.
889 (tui_data_window::do_make_visible_with_new_height): Remove.
890 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
891 call tui_show_locator_content.
892 (tui_gen_win_info::resize): Call rerender.
893 (show_source_or_disasm_and_command): Don't call
894 tui_show_locator_content.
895 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
896 method.
897 (struct tui_win_info) <rerender>: Declare.
898 <set_new_height, make_invisible_and_set_new_height,
899 make_visible_with_new_height>: Don't declare.
900 * tui/tui-data.c (tui_win_list::rerender): New method.
901 * tui/tui-command.h (struct tui_cmd_window)
902 <do_make_visible_with_new_height>: Don't declare.
903 * tui/tui-command.c
904 (tui_cmd_window::do_make_visible_with_new_height): Remove.
905
906 2019-08-15 Tom Tromey <tromey@adacore.com>
907
908 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
909 * ada-lang.c (ada_enum_name): Likewise.
910
911 2019-08-15 Christian Biesinger <cbiesinger@google.com>
912
913 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
914 leading underscore.
915 (GdbOutputErrorFile): Likewise.
916 (global scope): Adjust constructor calls to GdbOutput{,Error}File
917 accordingly.
918 (execute_unwinders): Rename to have a leading underscore.
919 (auto_load_packages): Likewise.
920 (global scope): Adjust call to auto_load_packages accordingly.
921 (GdbSetPythonDirectory): Likewise.
922 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
923 instead of execute_unwinders.
924
925 2019-08-15 Tom Tromey <tom@tromey.com>
926
927 * tui/tui-layout.c (show_layout, show_source_disasm_command)
928 (show_data): Don't change window visibility.
929 (tui_gen_win_info::resize): Remove special case for command
930 window. Use wresize, when available.
931 (show_source_or_disasm_and_command): Don't change window
932 visibility.
933 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
934 <make_visible>: New method.
935 * tui/tui-command.c (tui_cmd_window::resize): New method.
936
937 2019-08-15 Tom Tromey <tom@tromey.com>
938
939 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
940 (struct tui_source_windows): New.
941 * tui/tui-winsource.c (tui_display_main): Update.
942 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
943 (new_height_ok, parse_scrolling_args): Update.
944 * tui/tui-layout.c (show_layout, show_data): Update.
945 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
946 (tui_add_to_source_windows): Don't declare.
947 * tui/tui-data.c (source_windows, tui_source_windows)
948 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
949
950 2019-08-15 Tom Tromey <tom@tromey.com>
951
952 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
953 Rename from reset.
954 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
955 * tui/tui-layout.c (show_source_disasm_command, show_data):
956 Update.
957 (tui_gen_win_info::resize): Rename.
958 (show_source_or_disasm_and_command): Update.
959 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
960 reset.
961
962 2019-08-15 Tom Tromey <tom@tromey.com>
963
964 * tui/tui-stack.c (tui_initialize_static_data): Remove.
965 * tui/tui-interp.c (tui_interp::init): Don't call
966 tui_initialize_static_data.
967 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
968
969 2019-08-15 Tom Tromey <tom@tromey.com>
970
971 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
972 examine tui_win_list.
973
974 2019-08-15 Tom Tromey <tom@tromey.com>
975
976 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
977 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
978 tui_clear_source_content.
979 (tui_clear_source_content): Remove.
980 (tui_source_window_base::do_erase_source_content): Hoist call to
981 content.clear().
982 * tui/tui-stack.c (tui_show_frame_info): Don't call
983 tui_clear_source_content.
984
985 2019-08-15 Tom Tromey <tom@tromey.com>
986
987 * tui/tui-winsource.h (struct tui_source_window_base)
988 <do_erase_source_content>: New method.
989 <erase_source_content>: New method.
990 (tui_erase_source_content): Don't declare.
991 * tui/tui-winsource.c (tui_clear_source_content): Update.
992 (tui_source_window_base::do_erase_source_content): Rename from
993 tui_erase_source_content.
994 (tui_source_window_base::show_source_content): Update.
995 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
996 * tui/tui-source.h (struct tui_source_window)
997 <erase_source_content>: New method.
998 * tui/tui-disasm.h (struct tui_disasm_window)
999 <erase_source_content>: New method.
1000
1001 2019-08-15 Tom Tromey <tom@tromey.com>
1002
1003 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
1004 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
1005 constructor.
1006 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
1007 * tui/tui-source.c (tui_set_source_content): Update.
1008 * tui/tui-disasm.c (tui_set_disassem_content): Update.
1009
1010 2019-08-15 Tom Tromey <tom@tromey.com>
1011
1012 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
1013 * tui/tui-winsource.c (tui_line_is_displayed): Move to
1014 tui-source.c.
1015 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
1016 Declare.
1017 * tui/tui-source.c (tui_source_window::line_is_displayed): New
1018 method.
1019 (tui_source_window::maybe_update): Update.
1020
1021 2019-08-15 Tom Tromey <tom@tromey.com>
1022
1023 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
1024 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
1025 tui-disasm.c.
1026 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
1027 Declare.
1028 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
1029 method.
1030 (tui_disasm_window::maybe_update): Update.
1031
1032 2019-08-15 Tom Tromey <tom@tromey.com>
1033
1034 * tui/tui-winsource.h (struct tui_source_window_base)
1035 <maybe_update>: Declare.
1036 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
1037 method.
1038 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
1039 Declare.
1040 * tui/tui-source.c (tui_source_window::maybe_update): New method.
1041 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
1042 Declare.
1043 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
1044
1045 2019-08-15 Tom Tromey <tom@tromey.com>
1046
1047 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
1048
1049 2019-08-15 Tom Tromey <tom@tromey.com>
1050
1051 * tui/tui-wingeneral.c: Include tui-stack.h.
1052 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
1053 (struct tui_locator_window): Move from tui-data.h.
1054 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
1055 (tui_initialize_static_data): Move from tui-data.c.
1056 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
1057 (struct tui_locator_window): Move to tui-stack.c.
1058 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
1059 (tui_initialize_static_data): Move to tui-stack.c.
1060
1061 2019-08-15 Tom Tromey <tom@tromey.com>
1062
1063 * tui/tui-layout.c (show_source_disasm_command)
1064 (show_source_or_disasm_and_command): Use make_visible method, not
1065 tui_make_window.
1066 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
1067 Remove.
1068
1069 2019-08-15 Tom Tromey <tom@tromey.com>
1070
1071 * tui/tui-wingeneral.h (tui_make_window): Update.
1072 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
1073 parameter.
1074 (tui_gen_win_info::make_visible): Update.
1075 * tui/tui-regs.c (tui_data_window::display_registers_from):
1076 Update.
1077 * tui/tui-layout.c (show_source_disasm_command)
1078 (show_source_or_disasm_and_command): Update.
1079 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
1080 (enum tui_box): Remove.
1081 (struct tui_win_info) <can_box>: New method.
1082 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
1083 method.
1084
1085 2019-08-15 Tom de Vries <tdevries@suse.de>
1086
1087 * linux-nat-trad.c: Include gdbarch.h.
1088
1089 2019-08-14 Alan Hayward <alan.hayward@arm.com>
1090
1091 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
1092 register sizes.
1093
1094 2019-08-14 Tom Tromey <tromey@adacore.com>
1095
1096 * darwin-nat.c: Include gdbarch.h.
1097 * darwin-nat-info.c: Include gdbarch.h.
1098
1099 2019-08-13 Tom Tromey <tom@tromey.com>
1100
1101 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
1102 Remove.
1103 * tui/tui-data.c (tui_initialize_static_data): Update.
1104
1105 2019-08-13 Tom Tromey <tom@tromey.com>
1106
1107 * tui/tui-winsource.h (struct tui_exec_info_window)
1108 <~tui_exec_info_window, maybe_allocate_content, get_content,
1109 m_content>: Remove.
1110 (struct tui_source_window_base) <set_exec_info_content,
1111 show_exec_info_content>: Don't declare.
1112 * tui/tui-winsource.c
1113 (tui_exec_info_window::maybe_allocate_content): Remove.
1114 (tui_source_window_base::update_exec_info): Rename from
1115 set_exec_info_content.
1116 (tui_source_window_base::show_exec_info_content)
1117 (tui_source_window_base::update_exec_info): Remove.
1118
1119 2019-08-13 Tom Tromey <tom@tromey.com>
1120
1121 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
1122 declare.
1123 * tui/tui-winsource.c (tui_update_source_window_as_is)
1124 (tui_update_source_windows_with_addr, tui_erase_source_content):
1125 Update.
1126 (tui_clear_exec_info_content): Remove.
1127
1128 2019-08-13 Tom Tromey <tom@tromey.com>
1129
1130 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
1131 declare.
1132 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
1133 call tui_erase_exec_info_content.
1134 (tui_clear_exec_info_content): Rename from
1135 tui_erase_exec_info_content.
1136 (tui_clear_exec_info_content): Delete.
1137
1138 2019-08-13 Tom Tromey <tom@tromey.com>
1139
1140 * tui/tui-winsource.h (struct tui_source_window_base)
1141 <show_exec_info_content>: Declare.
1142 (tui_show_exec_info_content): Don't declare.
1143 * tui/tui-winsource.c
1144 (tui_source_window_base::show_exec_info_content): Rename from
1145 tui_show_exec_info_content.
1146 (tui_source_window_base::update_exec_info): Update.
1147
1148 2019-08-13 Tom Tromey <tom@tromey.com>
1149
1150 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
1151 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
1152 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
1153 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
1154 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
1155 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
1156 ... here.
1157
1158 2019-08-13 Tom Tromey <tom@tromey.com>
1159
1160 * tui/tui-winsource.h (struct tui_source_window_base)
1161 <update_exec_info>: Declare.
1162 (tui_update_exec_info): Don't declare.
1163 * tui/tui-winsource.c (tui_update_source_window_as_is)
1164 (tui_source_window_base::refresh_all)
1165 (tui_update_all_breakpoint_info): Update.
1166 (tui_source_window_base::update_exec_info): Rename from
1167 tui_update_exec_info.
1168 * tui/tui-stack.c (tui_show_frame_info): Update.
1169
1170 2019-08-13 Tom Tromey <tom@tromey.com>
1171
1172 * tui/tui-winsource.h (struct tui_source_window_base)
1173 <set_exec_info_content>: Declare.
1174 (tui_set_exec_info_content): Don't declare.
1175 * tui/tui-winsource.c
1176 (tui_source_window_base::set_exec_info_content): Rename from
1177 tui_set_exec_info_content.
1178 (tui_update_exec_info): Update.
1179
1180 2019-08-13 Tom Tromey <tom@tromey.com>
1181
1182 * tui/tui-winsource.h (struct tui_source_window_base)
1183 <show_source_content>: Declare.
1184 (tui_show_source_content): Don't declare.
1185 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1186 (tui_source_window_base::show_source_content): Rename from
1187 tui_show_source_content.
1188 (tui_source_window_base::refresh_all): Update.
1189 * tui/tui-layout.c (show_source_disasm_command)
1190 (show_source_or_disasm_and_command): Update.
1191
1192 2019-08-13 Tom Tromey <tom@tromey.com>
1193
1194 * tui/tui-winsource.c (tui_erase_source_content)
1195 (tui_show_source_content, tui_source_window_base::refresh_all):
1196 Update.
1197 * tui/tui-wingeneral.h
1198 (tui_check_and_display_highlight_if_needed): Don't declare.
1199 * tui/tui-wingeneral.c
1200 (tui_win_info::check_and_display_highlight_if_needed): Rename from
1201 check_and_display_highlight_if_needed.
1202 * tui/tui-win.c (tui_rehighlight_all)
1203 (tui_win_info::make_visible_with_new_height): Update.
1204 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
1205 (tui_data_window::erase_data_content)
1206 (tui_data_window::display_all_data): Update.
1207 * tui/tui-data.h (struct tui_win_info)
1208 <check_and_display_highlight_if_needed>: Declare.
1209
1210 2019-08-13 Tom Tromey <tom@tromey.com>
1211
1212 * tui/tui-win.c (tui_resize_all): Call
1213 tui_delete_invisible_windows.
1214 * tui/tui-layout.c (show_layout): Call
1215 tui_delete_invisible_windows.
1216 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
1217 * tui/tui-data.c (tui_delete_invisible_windows): New function.
1218
1219 2019-08-13 Tom Tromey <tom@tromey.com>
1220
1221 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
1222 tui_add_win_to_layout.
1223
1224 2019-08-13 Tom Tromey <tom@tromey.com>
1225
1226 * tui/tui-layout.h (tui_default_win_height): Don't declare.
1227 * tui/tui-layout.c (tui_default_win_height): Now static.
1228
1229 2019-08-13 Tom Tromey <tom@tromey.com>
1230
1231 * tui/tui-layout.c (show_layout): Unify all layout cases into a
1232 single switch.
1233 (show_source_disasm_command, show_source_or_disasm_and_command):
1234 Don't check current layout.
1235
1236 2019-08-13 Tom Tromey <tom@tromey.com>
1237
1238 * tui/tui-wingeneral.c (make_all_visible): Remove.
1239 (tui_make_all_invisible): Simplify.
1240 * tui/tui-layout.c (tui_make_all_invisible): Move from
1241 tui-wingeneral.c; simplify.
1242 (show_layout): Hoist call to tui_make_all_invisible.
1243 (show_data): Don't call tui_make_all_invisible.
1244
1245 2019-08-13 Tom Tromey <tom@tromey.com>
1246
1247 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
1248 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
1249
1250 2019-08-13 Tom Tromey <tom@tromey.com>
1251
1252 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
1253 tui-data.c.
1254 (show_source_disasm_command, show_data)
1255 (show_source_or_disasm_and_command): Don't use
1256 tui_set_current_layout_to.
1257 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
1258 * tui/tui-data.c (current_layout, tui_current_layout): Move to
1259 tui-layout.c.
1260 (tui_set_current_layout_to): Remove.
1261
1262 2019-08-13 Tom Tromey <tom@tromey.com>
1263
1264 * tui/tui-layout.c (tui_set_layout): Update.
1265 * tui/tui-data.h (struct tui_layout_def): Remove.
1266 (tui_layout_def): Don't declare.
1267 * tui/tui-data.c (layout_def): Remove.
1268 (tui_layout_def): Remove.
1269
1270 2019-08-13 Tom Tromey <tom@tromey.com>
1271
1272 * tui/tui-winsource.h (struct tui_source_window_base)
1273 <clear_detail>: No longer "override".
1274 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
1275 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
1276 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
1277 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
1278 Remove.
1279 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
1280
1281 2019-08-13 Tom Tromey <tromey@adacore.com>
1282
1283 * tracepoint.c: Don't include readline.h or history.h.
1284
1285 2019-08-12 Tom Tromey <tom@tromey.com>
1286
1287 * configure: Rebuild.
1288 * configure.ac: Check for readline 7.
1289 * NEWS: Mention readline 7 requirement.
1290 * README: Update.
1291
1292 2019-08-12 Tom Tromey <tom@tromey.com>
1293
1294 * mingw-hdep.c (gdb_select): Remove readline hack.
1295
1296 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1297
1298 * blockframe.c (find_pc_partial_function): Set *block to nullptr
1299 when the function fails.
1300
1301 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
1302
1303 * s390-tdep.c (s390_type_align): New function.
1304 (s390_gdbarch_init): Set it as type_align gdbarch method.
1305
1306 2019-08-09 Tom de Vries <tdevries@suse.de>
1307
1308 PR gdb/24591
1309 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
1310 pc_low with relocation offset.
1311
1312 2019-08-07 Tom Tromey <tromey@adacore.com>
1313
1314 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
1315 (print_frame_args): Update.
1316 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
1317 Update.
1318 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1319 * frame.h (struct frame_arg): Add initializers.
1320 <error>: Now a unique_xmalloc_ptr.
1321
1322 2019-08-07 Alan Hayward <alan.hayward@arm.com>
1323
1324 * NEWS: Expand the Pointer Authentication entry.
1325 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
1326 (aarch64_frame_unmask_lr): ... to this.
1327 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
1328 Call aarch64_frame_unmask_lr.
1329 * frame.c (struct frame_info): Add "masked" variable.
1330 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
1331 (fprint_frame): Check for masked pc.
1332 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
1333 declarations.
1334 * python/py-framefilter.c (py_print_frame): Check for masked pc.
1335 * stack.c (print_frame): Check for masked pc.
1336
1337 2019-08-06 Tom Tromey <tom@tromey.com>
1338
1339 * stabsread.c (patch_block_stabs, read_one_struct_field)
1340 (read_enum_type): Use obstack_strndup.
1341 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
1342 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
1343 * dwarf2read.c (guess_full_die_structure_name)
1344 (anonymous_struct_prefix): Use obstack_strndup.
1345 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
1346 * c-exp.y (yylex): Use obstack_strndup.
1347 * ada-exp.y (write_object_renaming, write_ambiguous_var)
1348 (write_var_or_type): Use obstack_strndup.
1349
1350 2019-08-06 Tom Tromey <tom@tromey.com>
1351
1352 * symfile.c (reread_symbols): Use obstack_strdup.
1353 * stabsread.c (read_type): Use obstack_strdup.
1354 * gdb_obstack.h (obstack_strdup): New overload.
1355 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
1356 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
1357 (dwarf2_canonicalize_name): Use obstack_strdup.
1358 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
1359 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
1360 Use obstack_strdup.
1361
1362 2019-08-06 Tom Tromey <tom@tromey.com>
1363
1364 * gdb_obstack.h (obstack_strdup): Define.
1365 * gdb_obstack.c (obstack_strdup): Don't define.
1366
1367 2019-08-06 Tom Tromey <tom@tromey.com>
1368
1369 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
1370 obstack_strdup.
1371 * typeprint.c (typedef_hash_table::find_global_typedef): Use
1372 obstack_strdup.
1373 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
1374 * stabsread.c (common_block_start): Use obstack_strdup.
1375 * objfiles.c (set_objfile_main_name, objfile): Use
1376 obstack_strdup.
1377 * namespace.c (add_using_directive): Use obstack_strdup.
1378 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
1379 * jit.c (finalize_symtab): Use obstack_strdup.
1380 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
1381 (guess_partial_die_structure_name, partial_die_info::fixup)
1382 (dwarf2_name): Use obstack_strdup.
1383 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
1384 obstack_strdup.
1385 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
1386 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
1387 obstack_strdup.
1388 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
1389
1390 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1391
1392 * unittests/help-doc-selftests.c: New file.
1393 * Makefile.in: Add the new file.
1394
1395 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1396
1397 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
1398 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
1399 the full first line, except when FOR_VALUE_PREFIX. In this case,
1400 the trailing '.' is not output, and the first character is uppercased.
1401 (print_help_for_command): Update call to print_doc_line.
1402 (print_doc_of_command): Likewise.
1403 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
1404 * cli/cli-option.c (append_indented_doc): Do not append newline.
1405 (build_help_option): Append newline after first appended_indented_doc
1406 only if a second call is done.
1407 (build_help): Append 2 new lines before each option, except the first
1408 one.
1409 * compile/compile.c (_initialize_compile): Add new lines after
1410 %OPTIONS%, when not at the end of the help.
1411 Change help doc or code
1412 producing the help doc to respect the invariants.
1413 * maint-test-options.c (_initialize_maint_test_options): Likewise.
1414 Also removed the new line after 'Options:', as all other commands
1415 do not put an empty line between 'Options:' and the first option.
1416 * printcmd.c (_initialize_printcmd): Likewise.
1417 * stack.c (_initialize_stack): Likewise.
1418 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
1419 incorrectly telling COMMAND is optional.
1420 * ada-lang.c (_initialize_ada_language): Change help doc or code
1421 producing the help doc to respect the invariants.
1422 * ada-tasks.c (_initialize_ada_tasks): Likewise.
1423 * breakpoint.c (_initialize_breakpoint): Likewise.
1424 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
1425 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
1426 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
1427 * cli/cli-style.c (cli_style_option::add_setshow_commands,
1428 _initialize_cli_style): Likewise.
1429 * corelow.c (core_target_info): Likewise.
1430 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
1431 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
1432 * filesystem.c (_initialize_filesystem): Likewise.
1433 * frame.c (_initialize_frame): Likewise.
1434 * gnu-nat.c (add_task_commands): Likewise.
1435 * infcall.c (_initialize_infcall): Likewise.
1436 * infcmd.c (_initialize_infcmd): Likewise.
1437 * interps.c (_initialize_interpreter): Likewise.
1438 * language.c (_initialize_language): Likewise.
1439 * linux-fork.c (_initialize_linux_fork): Likewise.
1440 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
1441 * maint.c (_initialize_maint_cmds): Likewise.
1442 * memattr.c (_initialize_mem): Likewise.
1443 * printcmd.c (_initialize_printcmd): Likewise.
1444 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
1445 _RegEx): Likewise.
1446 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
1447 * record-btrace.c (_initialize_record_btrace): Likewise.
1448 * record-full.c (_initialize_record_full): Likewise.
1449 * record.c (_initialize_record): Likewise.
1450 * regcache-dump.c (_initialize_regcache_dump): Likewise.
1451 * regcache.c (_initialize_regcache): Likewise.
1452 * remote.c (add_packet_config_cmd, init_remote_threadtests,
1453 _initialize_remote): Likewise.
1454 * ser-tcp.c (_initialize_ser_tcp): Likewise.
1455 * serial.c (_initialize_serial): Likewise.
1456 * skip.c (_initialize_step_skip): Likewise.
1457 * source.c (_initialize_source): Likewise.
1458 * stack.c (_initialize_stack): Likewise.
1459 * symfile.c (_initialize_symfile): Likewise.
1460 * symtab.c (_initialize_symtab): Likewise.
1461 * target-descriptions.c (_initialize_target_descriptions): Likewise.
1462 * top.c (init_main): Likewise.
1463 * tracefile-tfile.c (tfile_target_info): Likewise.
1464 * tracepoint.c (_initialize_tracepoint): Likewise.
1465 * tui/tui-win.c (_initialize_tui_win): Likewise.
1466 * utils.c (add_internal_problem_command): Likewise.
1467 * valprint.c (value_print_option_defs): Likewise.
1468
1469 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
1470
1471 PR build/24886
1472 * configure.ac: Drop enable-libmcheck support.
1473 * configure, config.in: Rebuild.
1474 * libmcheck.m4: Remove.
1475 * acinclude.m4: Don't include it.
1476 * Makefile.in: Don't distribute it.
1477 * top.c (print_gdb_configuration): Don't mention it.
1478
1479 2019-08-06 Tom Tromey <tom@tromey.com>
1480
1481 * utils.c (set_output_style): Sometimes pass stream to
1482 emit_style_escape.
1483 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
1484 * record-btrace.c (btrace_insn_history): Update.
1485 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
1486 method.
1487 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
1488 Update initializers.
1489 <m_uiout>: New field.
1490 <m_di>: Move lower.
1491 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1492 Remove "uiout" parameter.
1493 (dump_insns): Update.
1494 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
1495 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
1496
1497 2019-08-06 Christian Biesinger <cbiesinger@google.com>
1498
1499 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
1500 (error_in_psymtab_expansion): Likewise.
1501 (lookup_symbol_via_quick_fns): Likewise.
1502 (basic_lookup_transparent_type_quick): Likewise.
1503 (basic_lookup_transparent_type_1): Likewise.
1504
1505 2019-08-06 Tom Tromey <tromey@adacore.com>
1506
1507 * source.c (last_source_error): Now bool.
1508 (print_source_lines_base): Make "noprint" bool. Only open
1509 source file when last_source_visited changes.
1510
1511 2019-08-06 Tom Tromey <tromey@adacore.com>
1512
1513 * annotate.c (annotate_source_line): Use g_source_cache.
1514 * source-cache.c (source_cache::get_plain_source_lines): Change
1515 parameters. Populate m_offset_cache.
1516 (source_cache::ensure): New method.
1517 (source_cache::get_line_charpos): New method.
1518 (extract_lines): Move lower. Change parameters.
1519 (source_cache::get_source_lines): Move lower.
1520 * source-cache.h (class source_cache): Update comment.
1521 <get_line_charpos>: New method.
1522 <get_source_lines>: Update comment.
1523 <clear>: Clear m_offset_cache.
1524 <get_plain_source_lines>: Change parameters.
1525 <ensure>: New method
1526 <m_offset_cache>: New member.
1527 * source.c (forget_cached_source_info_for_objfile): Update.
1528 (info_source_command): Use g_source_cache.
1529 (find_source_lines, open_source_file_with_line_charpos): Remove.
1530 (print_source_lines_base, search_command_helper): Use g_source_cache.
1531 * source.h (open_source_file_with_line_charpos): Don't declare.
1532 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
1533 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
1534 Use g_source_cache.
1535
1536 2019-08-06 Tom Tromey <tromey@adacore.com>
1537
1538 * source-cache.c (source_cache::get_plain_source_lines):
1539 Remove "first_line" and "last_line" parameters.
1540 (source_cache::get_source_lines): Cache plain text.
1541 * source-cache.h (class source_cache)
1542 <get_plain_source_lines>: Update.
1543
1544 2019-08-06 Tom Tromey <tromey@adacore.com>
1545
1546 * source-cache.c (extract_lines): No longer a method.
1547 Changed type of parameter. Include final newline.
1548 (selftests::extract_lines_test): New function.
1549 (_initialize_source_cache): Likewise.
1550 * source-cache.h (class source_cache)
1551 <extract_lines>: Don't declare.
1552
1553 2019-08-06 Tom Tromey <tromey@adacore.com>
1554
1555 * breakpoint.c (init_breakpoint_sal): Update.
1556 (breakpoint): Update.
1557 * breakpoint.h (struct breakpoint) <filter>: Now a
1558 unique_xmalloc_ptr.
1559
1560 2019-08-05 Christian Biesinger <cbiesinger@google.com>
1561
1562 * NEWS: Mention dictionary access on blocks.
1563 * python/py-block.c (blpy_getitem): New function.
1564 (block_object_as_mapping): New struct.
1565 (block_object_type): Use new struct for tp_as_mapping field.
1566
1567 2019-08-05 Christian Biesinger <cbiesinger@google.com>
1568
1569 * objfiles.h (objfile): Add a comment describing partial symbols.
1570
1571 2019-08-05 Tom Tromey <tromey@adacore.com>
1572
1573 * compile/compile.c (_initialize_compile): Use _(), not N_().
1574 * thread.c (_initialize_thread): Use _(), not N_().
1575 * stack.c (_initialize_stack): Use _(), not N_().
1576 * printcmd.c (_initialize_printcmd): Use _(), not N_().
1577
1578 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1579
1580 * dwarf2read.c (struct dw2_symtab_iterator):
1581 <want_specific_block>: Remove.
1582 <block_index>: Change type to gdb::optional.
1583 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
1584 change type of BLOCK_INDEX parameter to gdb::optional.
1585 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
1586 (dw2_lookup_symbol): Don't pass argument for
1587 WANT_SPECIFIC_BLOCK.
1588 (dw2_expand_symtabs_for_function): Don't pass argument for
1589 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
1590 (class dw2_debug_names_iterator)
1591 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
1592 parameter, change BLOCK_INDEX type to gdb::optional.
1593 <m_want_specific_block>: Remove.
1594 <m_block_index>: Change type to gdb::optional.
1595 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
1596 gdb::optional. Re-write in function of gdb::optional.
1597 (dw2_debug_names_lookup_symbol): Don't pass argument for
1598 WANT_SPECIFIC_BLOCK.
1599 (dw2_debug_names_expand_symtabs_for_function): Don't pass
1600 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
1601 BLOCK_INDEX.
1602
1603 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1604
1605 * NEWS: Mention changes to "info sources" command.
1606
1607 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1608
1609 * symtab.c (filename_partial_match_opts): New struct type.
1610 (struct output_source_filename_data): New members
1611 regexp, c_regexp, partial_match.
1612 (output_source_filename): Use new members to decide to print file.
1613 (info_sources_option_defs): New variable.
1614 (make_info_sources_options_def_group, print_info_sources_header,
1615 info_sources_command_completer):
1616 New functions.
1617 (info_sources_command): Read new optional arguments.
1618 (_initialize_symtab): Update info sources help.
1619
1620 2019-08-02 Alexandre Oliva <oliva@adacore.com>
1621
1622 * ada-lang.c (exception_support_info_v0): Renamed from...
1623 (default_exception_support_info): ... this. Create new
1624 definition for v1.
1625 (ada_has_this_exception_support): Look up catch_handlers_sym.
1626 (ada_exception_support_info_sniffer): Try v0 after default.
1627
1628 2019-08-01 Tom Tromey <tromey@adacore.com>
1629
1630 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
1631 gdbarch.h.
1632
1633 2019-08-01 Christian Biesinger <cbiesinger@google.com>
1634
1635 * s12z-tdep.c: Fix include path for s12z-opc.h.
1636
1637 2019-08-01 Alan Hayward <alan.hayward@arm.com>
1638
1639 * NEWS: Require GNU make 3.82.
1640
1641 2019-07-16 Tom Tromey <tom@tromey.com>
1642
1643 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
1644 declare.
1645
1646 2019-07-30 Tom Tromey <tromey@adacore.com>
1647
1648 * block.c (contained_in): Remove BLOCK_FUNCTION check.
1649
1650 2019-07-30 Kevin Buettner <kevinb@redhat.com>
1651
1652 * printcmd.c (print_address_symbolic): Print negative offsets.
1653 (build_address_symbolic): Force signed arithmetic when computing
1654 offset.
1655
1656 2019-07-30 Christian Biesinger <cbiesinger@google.com>
1657
1658 PR/24474: Add a function to lookup static variables.
1659 * NEWS: Mention this new function.
1660 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
1661 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
1662 * python/python.c (python_GdbMethods): Add new function.
1663
1664 2019-07-29 Christian Biesinger <cbiesinger@google.com>
1665
1666 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
1667 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
1668 (objfpy_lookup_static_symbol): New function.
1669 (objfile_object_methods): Add new functions.
1670
1671 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1672
1673 * NEWS: Mention 'set|show print frame-info'. Mention new
1674 'presence' value for 'frame-arguments'. Mention new '-frame-info'
1675 backtrace argument. Mention that python frame filtering code
1676 is now consistent with what 'backtrace' command prints.
1677
1678 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1679
1680 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
1681 comments.
1682 (print_frame_info_auto, print_frame_info_source_line,
1683 print_frame_info_location, print_frame_info_source_and_location,
1684 print_frame_info_location_and_address, print_frame_info_short_location):
1685 New declarations.
1686 (struct frame_print_options): New member print_frame_info.
1687 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
1688 * stack.h (get_user_print_what_frame_info): New declaration.
1689 (frame_show_address): New declaration.
1690 * stack.c (print_frame_arguments_choices): New value 'presence'.
1691 (print_frame_info_auto, print_frame_info_source_line,
1692 print_frame_info_location, print_frame_info_source_and_location,
1693 print_frame_info_location_and_address, print_frame_info_short_location,
1694 print_frame_info_choices, print_frame_info_print_what): New definitions.
1695 (print_frame_args): Only print dots for args if print frame-arguments
1696 is 'presence'.
1697 (frame_print_option_defs): New element for "frame-info".
1698 (get_user_print_what_frame_info): New function.
1699 (frame_show_address): Make non static. Move comment to stack.h.
1700 (print_frame_info_to_print_what): New function.
1701 (print_frame_info): Update comment. Use fp_opts.print_frame_info
1702 to decide what to print.
1703 (backtrace_command_1): Handle the new print_frame_arguments_presence
1704 value.
1705 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
1706 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
1707 (py_print_frame): In non-mi mode, use LOCATION as default for
1708 print_what, similarly to frame information printed directly by
1709 backtrace command. Handle frame-info user option in non MI mode.
1710
1711 2019-07-27 Kevin Buettner <kevinb@redhat.com>
1712
1713 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
1714 Add case for debugging 32-bit target on 64-bit host. Revise
1715 comment.
1716
1717 2019-07-27 Kevin Buettner <kevinb@redhat.com>
1718
1719 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
1720 instead of find_function_entry_range_from_pc.
1721
1722 2019-07-27 Kevin Buettner <kevinb@redhat.com>
1723
1724 * stack.c (find_frame_funname): Remove code which preferred
1725 minsym over symtab sym in "certain pathological cases".
1726
1727 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
1728 parameter. Change type of "do_demangle" to bool.
1729 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1730 Pass suitable "prefer_sym_over_minsym" flag to
1731 build_address_symbolic(). Don't output "+" for negative offsets.
1732 * printcmd.c (print_address_symbolic): Update invocation of
1733 build_address_symbolic to include a "prefer_sym_over_minsym"
1734 flag.
1735 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
1736 Restrict cases in which use of minimal symbol is preferred to that
1737 of a found symbol. Update comments.
1738
1739 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
1740 for entry pc when entry pc is out of range for that FDE.
1741
1742 2019-07-26 Brian Callahan <bcallah@openbsd.org>
1743
1744 PR gdb/24839:
1745 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
1746 type.
1747
1748 2019-07-25 Christian Biesinger <cbiesinger@google.com>
1749
1750 * python/py-objfile.c (add_separate_debug_file): Fix comment about
1751 this function's Python signature.
1752
1753
1754 2019-07-24 Christian Biesinger <cbiesinger@google.com>
1755
1756 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
1757 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
1758 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
1759 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
1760 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
1761
1762
1763 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
1764
1765 * h8300-tdep.c (h8300_register_name_common): New.
1766 h8300_register_name): Use h8300_register_name_common.
1767 (h8300s_register_name): Likewise.
1768 (h8300sx_register_name): Likewise.
1769 (h8300h_register_nam): New.
1770 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
1771
1772
1773 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
1774
1775 * arm-tdep.c (arm_skip_cmse_entry): New function.
1776 (arm_is_sgstubs_section): New function.
1777 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
1778
1779 2019-07-22 Tom Tromey <tom@tromey.com>
1780
1781 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
1782 Don't self-assign.
1783
1784 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1785
1786 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
1787 type_print.
1788
1789 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1790
1791 * symtab.c (search_symbols): Adjust msymbol matching type arrays
1792 so that GDB doesn't match any msymbols when searching in the
1793 TYPES_DOMAIN.
1794 (print_symbol_info): Print using typedef_print or type_print based
1795 on the type of the symbol. Add updated FIXME comment moved from...
1796 (_initialize_symtab): ... move and update FIXME comment to above.
1797
1798 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1799
1800 * NEWS: Mention adding -q option to "info types".
1801 * symtab.c (struct info_types_options): New struct.
1802 (info_types_options_defs): New variable.
1803 (make_info_types_options_def_group): New function.
1804 (info_types_command): Use gdb::option framework to parse options.
1805 (info_types_command_completer): New function.
1806 (_initialize_symtab): Extend the help text on "info types" and
1807 register command completer.
1808
1809 2019-07-21 Christian Biesinger <cbiesinger@google.com>
1810
1811 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
1812 (lookup_symbol_in_objfile): Change int to block_enum and add a
1813 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
1814
1815 2019-07-20 Christian Biesinger <cbiesinger@google.com>
1816
1817 * MAINTAINERS (Write After Approval): Add self.
1818
1819 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
1820
1821 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
1822 instruction to the dummy code region.
1823
1824 2019-07-19 Tom Tromey <tromey@adacore.com>
1825
1826 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
1827 (ARGSUSED, PARAMS, __func__): Remove rules.
1828
1829 2019-07-19 Alan Hayward <alan.hayward@arm.com>
1830
1831 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
1832 * features/arm/arm-with-iwmmxt.c: Remove.
1833 * features/arm/arm-with-iwmmxt.xml: Remove.
1834 * features/arm/arm-with-m-fpa-layout.c: Remove.
1835 * features/arm/arm-with-m-fpa-layout.xml: Remove.
1836 * features/arm/arm-with-m-vfp-d16.c: Remove.
1837 * features/arm/arm-with-m-vfp-d16.xml: Remove.
1838 * features/arm/arm-with-m.c: Remove.
1839 * features/arm/arm-with-m.xml: Remove.
1840 * features/arm/arm-with-neon.c: Remove.
1841 * features/arm/arm-with-neon.xml: Remove.
1842 * features/arm/arm-with-vfpv2.c: Remove.
1843 * features/arm/arm-with-vfpv2.xml: Remove.
1844 * features/arm/arm-with-vfpv3.c: Remove.
1845 * features/arm/arm-with-vfpv3.xml: Remove.
1846
1847 2019-07-19 Alan Hayward <alan.hayward@arm.com>
1848
1849 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
1850
1851 2019-07-19 Alan Hayward <alan.hayward@arm.com>
1852
1853 * arch/aarch32.c (aarch32_create_target_description): Create
1854 target descriptions using features.
1855 * arch/arm.c (arm_create_target_description)
1856 (arm_create_mprofile_target_description): Likewise.
1857 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
1858
1859 2019-07-19 Alan Hayward <alan.hayward@arm.com>
1860
1861 * Makefile.in: Add new files.
1862 * aarch32-tdep.c: New file.
1863 * aarch32-tdep.h: New file.
1864 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
1865 Call aarch32_read_description.
1866 * arch/aarch32.c: New file.
1867 * arch/aarch32.h: New file.
1868 * arch/arm.c (arm_create_target_description)
1869 (arm_create_mprofile_target_description): New function.
1870 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
1871 (arm_create_target_description)
1872 (arm_create_mprofile_target_description): New declaration.
1873 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
1874 read_description functions.
1875 * arm-linux-nat.c (arm_linux_nat_target::read_description):
1876 Likewise.
1877 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
1878 * arm-tdep.c (tdesc_arm_list): New variable.
1879 (arm_register_g_packet_guesses): Call create description functions.
1880 (arm_read_description) (arm_read_mprofile_description): New
1881 function.
1882 * arm-tdep.h (arm_read_description)
1883 (arm_read_mprofile_description): Add declaration.
1884 * configure.tgt: Add new files.
1885
1886 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
1887
1888 * top.c (new_ui_command): Open specified terminal just once.
1889
1890 2019-07-18 Tom Tromey <tromey@adacore.com>
1891
1892 * symtab.c (main_name): Constify return type.
1893 * symfile.c (set_initial_language): Update.
1894 * symtab.h (main_name): Constify return type.
1895
1896 2019-07-17 Tom Tromey <tom@tromey.com>
1897
1898 * tui/tui-winsource.c (tui_update_source_window)
1899 (tui_update_source_window_as_is)
1900 (tui_update_source_windows_with_line): Remove return.
1901 * tui/tui-disasm.c (tui_show_disassem)
1902 (tui_show_disassem_and_update_source): Remove return.
1903 * tui/tui.c (tui_reset): Remove return.
1904 * tui/tui-wingeneral.c
1905 (tui_check_and_display_highlight_if_needed): Remove return.
1906
1907 2019-07-17 Tom Tromey <tom@tromey.com>
1908
1909 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
1910
1911 2019-07-17 Tom Tromey <tom@tromey.com>
1912
1913 * tui/tui-winsource.h (struct tui_exec_info_window)
1914 (struct tui_source_window_base): Move from tui-data.h.
1915 * tui/tui-winsource.c: Move many method definitions from
1916 elsewhere. Remove "structuring" comments.
1917 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
1918 (tui_source_window_base::refresh_window): Move to
1919 tui-winsource.c.
1920 * tui/tui-win.c (tui_source_window_base::refresh_all)
1921 (tui_source_window_base::update_tab_width)
1922 (tui_source_window_base::set_new_height)
1923 (tui_source_window_base::do_make_visible_with_new_height): Move to
1924 tui-winsource.c.
1925 * tui/tui-source.h: Update.
1926 * tui/tui-source.c (tui_source_window_base::reset): Move to
1927 tui-winsource.c.
1928 * tui/tui-disasm.h: Update.
1929 * tui/tui-data.h (struct tui_exec_info_window): Move to
1930 tui-winsource.h.
1931 (struct tui_source_window_base): Likewise.
1932 * tui/tui-data.c (tui_source_window_base::clear_detail)
1933 (tui_source_window_base, ~tui_source_window_base): Move to
1934 tui-winsource.c.
1935
1936 2019-07-17 Tom Tromey <tom@tromey.com>
1937
1938 * tui/tui-win.c (tui_resize_all)
1939 (tui_source_window_base::update_tab_width)
1940 (tui_adjust_win_heights): Update.
1941 (tui_win_info::make_invisible_and_set_new_height): Rename from
1942 make_invisible_and_set_new_height.
1943 * tui/tui-data.h (struct tui_win_info)
1944 <make_invisible_and_set_new_height>: New method.
1945
1946 2019-07-17 Tom Tromey <tom@tromey.com>
1947
1948 * tui/tui.c: Update.
1949 * tui/tui-source.h (struct tui_source_window): Move from
1950 tui-data.h.
1951 * tui/tui-layout.c: Update.
1952 * tui/tui-disasm.c: Update.
1953 * tui/tui-data.h (struct tui_source_window): Move to
1954 tui-source.h.
1955
1956 2019-07-17 Tom Tromey <tom@tromey.com>
1957
1958 * tui/tui-disasm.h (struct tui_disasm_window): Move from
1959 tui-data.h.
1960 * tui/tui-data.h (struct tui_disasm_window): Move to
1961 tui-disasm.h.
1962
1963 2019-07-17 Tom Tromey <tom@tromey.com>
1964
1965 * tui/tui-regs.h (struct tui_data_item_window): Move from
1966 tui-data.h.
1967 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
1968 * tui/tui-data.h (struct tui_data_item_window): Move to
1969 tui-regs.h.
1970 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
1971
1972 2019-07-17 Tom Tromey <tom@tromey.com>
1973
1974 * tui/tui.c: Update.
1975 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
1976 (tui_cmd_window::max_height): Move to tui-command.c.
1977 * tui/tui-layout.c: Update.
1978 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
1979 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
1980 tui-command.c.
1981 * tui/tui-command.h (struct tui_cmd_window): Move from
1982 tui-data.h.
1983 * tui/tui-command.c: Remove "structuring" comments.
1984 (tui_cmd_window::clear_detail)
1985 (tui_cmd_window::do_make_visible_with_new_height)
1986 (tui_cmd_window::max_height): Move from elsewhere.
1987
1988 2019-07-17 Tom Tromey <tom@tromey.com>
1989
1990 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
1991 Now static.
1992 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
1993 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
1994
1995 2019-07-17 Tom Tromey <tom@tromey.com>
1996
1997 * tui/tui.c: Update.
1998 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
1999 tui-regs.c.
2000 * tui/tui-windata.h: Remove file.
2001 * tui/tui-windata.c: Remove file.
2002 * tui/tui-win.c (tui_data_window::set_new_height)
2003 (tui_data_window::do_make_visible_with_new_height): Move to
2004 tui-regs.c.
2005 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
2006 * tui/tui-regs.c: Remove "structuring" comments.
2007 (tui_data_window::first_data_item_displayed)
2008 (tui_data_window::delete_data_content_windows)
2009 (tui_data_window::erase_data_content)
2010 (tui_data_window::display_all_data)
2011 (tui_data_window::refresh_all)
2012 (tui_data_window::do_scroll_vertical)
2013 (tui_data_window::clear_detail, tui_data_window::set_new_height)
2014 (tui_data_window::do_make_visible_with_new_height)
2015 (tui_data_window::refresh_window): Move from elsewhere.
2016 (_initialize_tui_regs): Move to end of file.
2017 * tui/tui-layout.c: Update.
2018 * tui/tui-hooks.c: Update.
2019 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
2020 * tui/tui-data.c (tui_data_window::clear_detail): Move to
2021 tui-regs.c.
2022 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
2023
2024 2019-07-17 Tom Tromey <tom@tromey.com>
2025
2026 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
2027 seen.
2028
2029 2019-07-17 Tom Tromey <tom@tromey.com>
2030
2031 * tui/tui-win.c (tui_source_window_base::set_new_height)
2032 (tui_source_window_base::do_make_visible_with_new_height): Use
2033 m_has_locator field directly.
2034 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
2035 method.
2036 (struct tui_source_window_base) <has_locator>: Likewise.
2037
2038 2019-07-17 Tom Tromey <tom@tromey.com>
2039
2040 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
2041 Don't declare.
2042 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
2043 Remove.
2044 * tui/tui-win.c (tui_source_window_base::set_new_height)
2045 (tui_source_window_base::set_new_height)
2046 (make_invisible_and_set_new_height)
2047 (tui_source_window_base::do_make_visible_with_new_height)
2048 (tui_source_window_base::do_make_visible_with_new_height):
2049 Update.
2050 * tui/tui-layout.c (show_source_disasm_command, show_data)
2051 (show_source_or_disasm_and_command): Update.
2052 * tui/tui-layout.c (show_layout): Update.
2053
2054 2019-07-17 Tom Tromey <tom@tromey.com>
2055
2056 * tui/tui-layout.c (make_data_window): Remove.
2057 (show_data): Unify creation and re-initialization cases.
2058
2059 2019-07-17 Tom Tromey <tom@tromey.com>
2060
2061 * tui/tui-layout.c (make_source_window, make_disasm_window):
2062 Remove.
2063 (show_data): Unify creation and re-initialization cases.
2064
2065 2019-07-17 Tom Tromey <tom@tromey.com>
2066
2067 * tui/tui-layout.c (make_command_window): Remove.
2068 (show_source_disasm_command, show_source_or_disasm_and_command):
2069 Unify creation and re-initialization cases.
2070
2071 2019-07-17 Tom Tromey <tom@tromey.com>
2072
2073 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
2074 creation and re-initialization cases.
2075
2076 2019-07-17 Tom Tromey <tom@tromey.com>
2077
2078 * tui/tui-regs.c (tui_get_register): Return void.
2079
2080 2019-07-17 Tom Tromey <tom@tromey.com>
2081
2082 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
2083 Simplify.
2084
2085 2019-07-17 Tom Tromey <tom@tromey.com>
2086
2087 * tui/tui-layout.c (show_source_disasm_command): Simplify window
2088 resetting.
2089
2090 2019-07-17 Tom Tromey <tom@tromey.com>
2091
2092 * tui/tui.h (tui_set_layout_by_name): Don't declare.
2093 * tui/tui-regs.c (tui_reg_layout): New function.
2094 (tui_show_registers, tui_reg_command): Use it.
2095 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
2096 (tui_layout_command): Rename from tui_set_layout_by_name. Change
2097 parameters.
2098 (tui_layout_command): Remove.
2099
2100 2019-07-17 Tom Tromey <tom@tromey.com>
2101
2102 * tui/tui-layout.h (tui/tui-layout): Return void.
2103 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
2104
2105 2019-07-17 Tom Tromey <tom@tromey.com>
2106
2107 * tui/tui-layout.c (show_source_disasm_command, show_data):
2108 Update.
2109 (reset_locator): Remove.
2110 (show_source_or_disasm_and_command): Update.
2111
2112 2019-07-17 Tom Tromey <tom@tromey.com>
2113
2114 * tui/tui-source.c (tui_source_window_base::reset): Remove
2115 win_type parameter.
2116 * tui/tui-layout.c (make_command_window, make_source_window)
2117 (make_disasm_window, make_data_window)
2118 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
2119 (reset_locator, show_source_or_disasm_and_command): Update.
2120 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
2121 win_type parameter.
2122 (struct tui_source_window_base) <reset>: Likewise.
2123
2124 2019-07-17 Tom Tromey <tom@tromey.com>
2125
2126 * tui/tui-layout.c (show_source_disasm_command): Use
2127 reset_locator.
2128 (reset_locator): New function.
2129 (init_and_make_win): Remove.
2130 (show_source_or_disasm_and_command): Use reset_locator.
2131
2132 2019-07-17 Tom Tromey <tom@tromey.com>
2133
2134 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
2135 condition.
2136 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
2137 Remove condition.
2138 * tui/tui-source.c (tui_source_window_base::reset): New method.
2139 * tui/tui-layout.c (make_command_window): Don't call
2140 init_and_make_win.
2141 (make_source_window, make_disasm_window): Don't call
2142 make_source_or_disasm_window.
2143 (make_data_window): Don't call init_and_make_win. Change calling
2144 convention.
2145 (show_source_disasm_command, show_data): Simplify.
2146 (make_source_or_disasm_window): Remove.
2147 (show_source_or_disasm_and_command): Simplify.
2148 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
2149 (struct tui_source_window_base) <reset>: Likewise.
2150 <execution_info>: Remove initializer.
2151 * tui/tui-data.c (tui_source_window_base): Initialize
2152 execution_info.
2153
2154 2019-07-17 Tom Tromey <tom@tromey.com>
2155
2156 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
2157 variable.
2158
2159 2019-07-17 Tom Tromey <tom@tromey.com>
2160
2161 * tui/tui.c (tui_rl_other_window): Update.
2162 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
2163 superclass method first. Always iterate over regs_content.
2164 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
2165 method.
2166 * tui/tui-win.c (tui_set_focus_command): Update.
2167
2168 2019-07-17 Tom Tromey <tom@tromey.com>
2169
2170 * tui/tui-win.c (tui_set_focus_command): Rename from
2171 tui_set_focus. Call tui_enable.
2172 (tui_set_focus_command): Remove.
2173
2174 2019-07-17 Tom Tromey <tom@tromey.com>
2175
2176 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
2177 refresh_window.
2178 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
2179 touchwin.
2180 (tui_data_window::refresh_window): Call refresh_window on data
2181 items. Always call superclass refresh_window.
2182 (tui_win_info::refresh): Remove.
2183 (tui_source_window_base::refresh_window): Update.
2184 (tui_refresh_all): Update.
2185 * tui/tui-layout.c (show_source_disasm_command): Remove call to
2186 refresh_window.
2187 (show_source_or_disasm_and_command): Likewise.
2188 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
2189 (struct tui_source_window_base) <refresh>: Likewise.
2190
2191 2019-07-17 Tom Tromey <tom@tromey.com>
2192
2193 * tui/tui-winsource.c (tui_clear_source_content)
2194 (tui_show_source_content): Update.
2195 * tui/tui-source.c (tui_source_window::showing_source_p): Check
2196 whether content is empty.
2197 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
2198 Remove.
2199
2200 2019-07-17 Tom Tromey <tom@tromey.com>
2201
2202 * tui/tui-winsource.c (tui_erase_source_content): Clear the
2203 window's contents.
2204 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
2205 * tui/tui-source.c (tui_set_source_content_nil): Remove.
2206
2207 2019-07-17 Tom Tromey <tom@tromey.com>
2208
2209 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
2210 (struct tui_data_item_window): Update.
2211
2212 2019-07-17 Tom Tromey <tom@tromey.com>
2213
2214 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
2215 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
2216 defines.
2217
2218 2019-07-17 Tom Tromey <tom@tromey.com>
2219
2220 * tui/tui-winsource.h (tui_erase_source_content)
2221 (tui_clear_source_content): Remove "display_prompt" parameter.
2222 * tui/tui-winsource.c (tui_update_source_window_as_is)
2223 (tui_update_source_windows_with_addr): Update.
2224 (tui_clear_source_content): Remove "display_prompt" parameter.
2225 (tui_erase_source_content): Likewise. Simplify.
2226 (tui_show_source_content): Update.
2227 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2228 * tui/tui-stack.c (tui_show_frame_info): Update.
2229 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
2230 Remove defines.
2231
2232 2019-07-17 Tom Tromey <tom@tromey.com>
2233
2234 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2235 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
2236 parameter.
2237 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
2238 parameter.
2239
2240 2019-07-17 Tom Tromey <tom@tromey.com>
2241
2242 * tui/tui-winsource.c (tui_clear_source_content)
2243 (tui_show_source_content, tui_show_exec_info_content)
2244 (tui_clear_exec_info_content): Update.
2245 * tui/tui-stack.c (tui_show_locator_content): Update.
2246 (tui_show_frame_info): Update.
2247 * tui/tui-source.h (tui_source_window): Don't declare.
2248 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
2249 from tui_source_is_displayed.
2250 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
2251 Remove field.
2252 (struct tui_source_window_base) <content_in_use>: New field. Now
2253 bool.
2254 (struct tui_source_window) <showing_source_p>: New method.
2255 (TUI_SRC_WIN): Change cast.
2256 * tui/tui-data.c (tui_initialize_static_data): Update.
2257
2258 2019-07-17 Tom Tromey <tom@tromey.com>
2259
2260 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
2261 location_matches_p.
2262 * tui/tui-source.c (tui_source_window::location_matches_p): New
2263 method.
2264 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
2265 method.
2266 * tui/tui-data.h (struct tui_source_window_base)
2267 <location_matches_p>: New method.
2268 (struct tui_source_window, struct tui_disasm_window)
2269 <location_matches_p>: Likewise.
2270
2271 2019-07-17 Tom Tromey <tom@tromey.com>
2272
2273 * tui/tui-win.c (tui_set_win_height_command): Rename from
2274 tui_set_win_height.
2275 (tui_set_win_height_command): Remove.
2276
2277 2019-07-17 Tom Tromey <tom@tromey.com>
2278
2279 * tui/tui-source.c (tui_source_window): New constructor. Add
2280 observer.
2281 (~tui_source_window): New destructor.
2282 (tui_source_window::style_changed): New method.
2283 * tui/tui-hooks.c (tui_redisplay_source): Remove.
2284 (tui_attach_detach_observers): Update.
2285 * tui/tui-data.h (struct tui_source_window): Make constructor not
2286 inline. Add destructor.
2287 (struct tui_source_window) <style_changed>: New method.
2288 <m_observable>: New member.
2289
2290 2019-07-17 Tom Tromey <tom@tromey.com>
2291
2292 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
2293 * tui/tui-win.c (tui_resize_all): Fix typo.
2294
2295 2019-07-17 Tom Tromey <tom@tromey.com>
2296
2297 * tui/tui-wingeneral.h (tui_refresh_all): Update.
2298 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
2299 (tui_refresh_all): Remove "list" parameter. Use foreach.
2300 * tui/tui-win.c (window_name_completer): Use foreach.
2301 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
2302 (update_tab_width): Likewise.
2303 * tui/tui-layout.c (show_layout): Update.
2304 * tui/tui-data.h (class tui_window_iterator): New.
2305 (struct all_tui_windows): New.
2306 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
2307
2308 2019-07-17 Tom Tromey <tom@tromey.com>
2309
2310 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
2311 parameter. Don't reference globals.
2312 (tui_reg_command): Update.
2313
2314 2019-07-17 Tom Tromey <tom@tromey.com>
2315
2316 * tui/tui-regs.c (tui_show_registers): Simplify.
2317
2318 2019-07-17 Tom Tromey <tom@tromey.com>
2319
2320 * tui/tui-regs.c (tui_show_registers): Update.
2321 (tui_show_register_group): Add win_info parameter.
2322
2323 2019-07-17 Tom Tromey <tom@tromey.com>
2324
2325 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
2326 Rename from tui_display_reg_element_at_line.
2327 (tui_data_window::display_registers_from_line): Update.
2328 * tui/tui-data.h (struct tui_data_window)
2329 <display_reg_element_at_line>: New method.
2330
2331 2019-07-17 Tom Tromey <tom@tromey.com>
2332
2333 * tui/tui-regs.h (tui_display_registers_from)
2334 (tui_display_registers_from_line): Don't declare.
2335 * tui/tui-windata.c (tui_data_window::display_all_data)
2336 (tui_data_window::refresh_all)
2337 (tui_data_window::do_scroll_vertical): Update.
2338 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
2339 from tui_display_registers_from.
2340 (tui_display_reg_element_at_line): Update.
2341 (tui_data_window::display_registers_from_line): Rename from
2342 tui_display_registers_from_line.
2343 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
2344 display_registers_from_line>: New methods.
2345
2346 2019-07-17 Tom Tromey <tom@tromey.com>
2347
2348 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
2349 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
2350 from tui_erase_data_content.
2351 (tui_data_window::display_all_data)
2352 (tui_data_window::refresh_all)
2353 (tui_data_window::do_scroll_vertical): Update.
2354 * tui/tui-regs.c (tui_show_registers): Update.
2355 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
2356 New method.
2357
2358 2019-07-17 Tom Tromey <tom@tromey.com>
2359
2360 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
2361 declare.
2362 * tui/tui-windata.c
2363 (tui_data_window::delete_data_content_windows): Rename from
2364 tui_delete_data_content_windows.
2365 (tui_data_window::display_all_data)
2366 (tui_data_window::do_scroll_vertical): Update.
2367 * tui/tui-data.h (struct tui_data_window)
2368 <delete_data_content_windows>: New method.
2369
2370 2019-07-17 Tom Tromey <tom@tromey.com>
2371
2372 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
2373 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
2374
2375 2019-07-17 Tom Tromey <tom@tromey.com>
2376
2377 * tui/tui-windata.h (tui_display_all_data): Don't declare.
2378 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
2379 from tui_display_all_data.
2380 * tui/tui-win.c
2381 (tui_data_window::do_make_visible_with_new_height): Update.
2382 * tui/tui-regs.c (tui_show_registers): Update.
2383 * tui/tui-layout.c (tui_set_layout): Update.
2384 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
2385 method.
2386
2387 2019-07-17 Tom Tromey <tom@tromey.com>
2388
2389 * tui/tui-windata.h (tui_display_data_from): Don't declare.
2390 * tui/tui-windata.c (tui_display_data_from): Remove.
2391 (tui_data_window::refresh_all): Update.
2392
2393 2019-07-17 Tom Tromey <tom@tromey.com>
2394
2395 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
2396 * tui/tui-windata.c (tui_display_data_from_line): Remove.
2397 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
2398 tui_display_registers_from_line.
2399 * tui/tui-regs.h (tui_display_registers_from_line): Update.
2400 * tui/tui-regs.c (tui_display_registers_from_line): Remove
2401 "force_display" parameter.
2402
2403 2019-07-17 Tom Tromey <tom@tromey.com>
2404
2405 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
2406 declare.
2407 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
2408 Rename from tui_first_reg_element_no_inline.
2409 (tui_display_reg_element_at_line)
2410 (tui_display_registers_from_line): Update.
2411 * tui/tui-data.h (struct tui_data_window)
2412 <first_reg_element_no_inline>: New method.
2413
2414 2019-07-17 Tom Tromey <tom@tromey.com>
2415
2416 * tui/tui-windata.c (tui_display_data_from)
2417 (tui_data_window::do_scroll_vertical): Update.
2418 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
2419 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
2420 Rename from tui_line_from_reg_element_no.
2421 (tui_display_registers_from_line): Update.
2422 * tui/tui-data.h (struct tui_data_window)
2423 <line_from_reg_element_no>: New method.
2424
2425 2019-07-17 Tom Tromey <tom@tromey.com>
2426
2427 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
2428 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
2429 tui_last_regs_line_no.
2430 (tui_display_reg_element_at_line)
2431 (tui_display_registers_from_line): Update.
2432 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
2433 method.
2434
2435 2019-07-17 Tom Tromey <tom@tromey.com>
2436
2437 PR tui/24722:
2438 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
2439 (tui_update_breakpoint_info): Add "being_deleted" parameter.
2440 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2441 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
2442 (tui_update_breakpoint_info): Likewise.
2443 * tui/tui-hooks.c (tui_event_create_breakpoint)
2444 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
2445 Update.
2446
2447 2019-07-17 Tom Tromey <tom@tromey.com>
2448
2449 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
2450
2451 2019-07-17 Tom Tromey <tom@tromey.com>
2452
2453 * tui/tui-winsource.c (tui_update_source_window_as_is)
2454 (tui_update_source_windows_with_addr): Update.
2455 * tui/tui-source.h (tui_set_source_content)
2456 (tui_show_symtab_source): Add "win_info" parameter.
2457 * tui/tui-source.c (tui_set_source_content): Add "win_info"
2458 parameter.
2459 (tui_show_symtab_source): Likewise.
2460
2461 2019-07-17 Tom Tromey <tom@tromey.com>
2462
2463 * tui/tui-wingeneral.c
2464 (tui_check_and_display_highlight_if_needed): Check can_highlight.
2465
2466 2019-07-17 Tom Tromey <tom@tromey.com>
2467
2468 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
2469 (struct tui_cmd_window) <can_scroll>: New method.
2470 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
2471 method.
2472
2473 2019-07-17 Tom Tromey <tromey@adacore.com>
2474
2475 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
2476 do_field_signed>: Rename. Change type of "value".
2477 * ui-out.c (ui_out::field_signed): Rename from field_int.
2478 Change type of "value".
2479 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
2480 type of "value".
2481 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
2482 do_field_int. Change type of "value".
2483 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
2484 do_field_int. Change type of "value".
2485 * tracepoint.c (trace_status_mi, tfind_1)
2486 (print_one_static_tracepoint_marker): Update.
2487 * thread.c (print_thread_info_1, print_selected_thread_frame):
2488 Update.
2489 * stack.c (print_frame, print_frame_info): Update.
2490 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
2491 Update.
2492 * source.c (print_source_lines_base): Update.
2493 * skip.c (info_skip_command): Update.
2494 * record-btrace.c (btrace_ui_out_decode_error)
2495 (btrace_call_history_src_line): Update.
2496 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
2497 Update.
2498 * progspace.c (print_program_space): Update.
2499 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
2500 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
2501 do_field_int. Change type of "value".
2502 * mi/mi-out.c (mi_ui_out::do_table_begin)
2503 (mi_ui_out::do_table_header): Update.
2504 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
2505 type of "value".
2506 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
2507 (mi_cmd_data_list_changed_registers, output_register)
2508 (mi_cmd_data_read_memory, mi_load_progress)
2509 (mi_cmd_trace_frame_collected): Update.
2510 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
2511 Update.
2512 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
2513 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
2514 (mi_cmd_var_list_children, varobj_update_one): Update.
2515 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
2516 (mi_cmd_stack_list_args, list_arg_or_local): Update.
2517 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
2518 * inferior.c (print_inferior): Update.
2519 * gdb_bfd.c (print_one_bfd): Update.
2520 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2521 Update.
2522 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
2523 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
2524 do_field_int. Change type of "value".
2525 * cli-out.c (cli_ui_out::do_field_signed): Rename from
2526 do_field_int. Change type of "value".
2527 * breakpoint.c (watchpoint_check, print_breakpoint_location)
2528 (print_one_breakpoint_location, print_it_catch_fork)
2529 (print_one_catch_fork, print_it_catch_vfork)
2530 (print_one_catch_vfork, print_it_catch_solib)
2531 (print_it_catch_exec, print_it_ranged_breakpoint)
2532 (print_mention_watchpoint, print_mention_masked_watchpoint)
2533 (bkpt_print_it, update_static_tracepoint): Update.
2534 * break-catch-throw.c (print_it_exception_catchpoint): Update.
2535 * break-catch-syscall.c (print_it_catch_syscall): Update.
2536 * ada-tasks.c (print_ada_task_info): Update.
2537 * ada-lang.c (print_it_exception, print_mention_exception):
2538 Update.
2539
2540 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2541
2542 PR breakpoints/24541
2543 * gdbarch.c: Regenerate.
2544 * gdbarch.h: Regenerate.
2545 * gdbarch.sh: Adjust return type and parameter types for
2546 'stap_adjust_register'.
2547 (i386_stap_adjust_register): Adjust signature and return new
2548 register name.
2549 * stap-probe.c (stap_parse_register_operand): Adjust use of
2550 'gdbarch_stap_adjust_register'.
2551
2552 2019-07-17 Tom Tromey <tromey@adacore.com>
2553
2554 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
2555 declare VEC.
2556 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
2557 std::vector.
2558 (struct s390_process_info): Add initializers.
2559 (s390_add_process): Use new.
2560 (s390_linux_nat_target::low_forget_process): Use delete.
2561 (s390_linux_nat_target::low_new_fork)
2562 (s390_linux_nat_target::stopped_by_watchpoint)
2563 (s390_linux_nat_target::low_prepare_to_resume)
2564 (s390_linux_nat_target::insert_watchpoint)
2565 (s390_linux_nat_target::insert_hw_breakpoint)
2566 (s390_linux_nat_target::remove_watchpoint)
2567 (s390_linux_nat_target::remove_hw_breakpoint): Update.
2568
2569 2019-07-16 John Baldwin <jhb@FreeBSD.org>
2570
2571 * aarch64-fbsd-nat.c: Include regcache.h.
2572 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
2573 argument.
2574 (aarch64_fbsd_nat_target::fetch_registers)
2575 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
2576 variable.
2577 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
2578
2579 2019-07-16 John Baldwin <jhb@FreeBSD.org>
2580
2581 * fbsd-nat.c: Include gdbarch.h.
2582
2583 2019-07-15 Tom Tromey <tromey@adacore.com>
2584
2585 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
2586
2587 2019-07-15 Tom Tromey <tromey@adacore.com>
2588
2589 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
2590 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
2591 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
2592 * cli-out.c (cli_ui_out::do_field_int): New method.
2593 * ui-out.c (ui_out::field_unsigned): New method.
2594 * symfile.c (generic_load): Use field_unsigned.
2595 (print_transfer_performance): Likewise.
2596 * record-btrace.c (ui_out_field_uint): Remove.
2597 (btrace_call_history_insn_range, btrace_call_history): Use
2598 field_unsigned.
2599 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
2600 field_unsigned.
2601 * ui-out.h (class ui_out) <field_unsigned>: New method.
2602 <do_field_unsigned>: Likewise.
2603
2604 2019-07-15 Tom Tromey <tromey@adacore.com>
2605
2606 * mi/mi-main.c (list_available_thread_groups): Use field_string.
2607 * mi/mi-interp.c (mi_memory_changed): Use field_string.
2608 * target.c (flash_erase_command): Use field_string.
2609 * infrun.c (print_signal_received_reason): Use field_string.
2610 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
2611 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
2612 field_string.
2613 * ada-tasks.c (print_ada_task_info): Use field_string.
2614
2615 2019-07-15 Tom Tromey <tromey@adacore.com>
2616
2617 * target.c (flash_erase_command): Use field_core_addr.
2618 * symfile.c (generic_load): Use field_core_addr.
2619 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2620 Use field_core_addr.
2621 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
2622 field_core_addr.
2623
2624 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2625
2626 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
2627 value if its desired type is smaller than a CORE_ADDR and signed.
2628
2629 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2630
2631 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
2632 of changes to field names, and use new is_reference field to
2633 decide if a property is a reference or not.
2634 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
2635 field.
2636 (struct dwarf2_property_baton): Update header comment, rename
2637 'referenced_type' to 'property_type' and update comments.
2638 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
2639 default property type, store in property baton, update to take
2640 accound of renamed field.
2641 (read_func_scope): Update call to attr_to_dynamic_prop.
2642 (read_array_type): Likewise.
2643 (dwarf2_per_cu_addr_sized_int_type): New function.
2644 (read_subrange_index_type): Move type finding code to
2645 dwarf2_per_cu_addr_sized_int_type.
2646 (read_subrange_type): Update calls to attr_to_dynamic_prop.
2647 (dwarf2_per_cu_addr_type): New function.
2648 (set_die_type): Update calls to attr_to_dynamic_prop.
2649
2650 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2651
2652 * dwarf2read.c (read_subrange_index_type): New function.
2653 (read_subrange_type): Move code into new function and call it.
2654 * gdbtypes.c (create_range_type): Add some asserts.
2655
2656 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2657
2658 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
2659 update return statements.
2660 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
2661 declaration, and update comment to match.
2662 * gdbtypes.c (resolve_dynamic_array): Update call to
2663 dwarf2_evaluate_property to match new return type.
2664
2665 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2666
2667 * valarith.c (value_subscripted_rvalue): Change lowerbound
2668 parameter type from int to LONGEST.
2669 * value.h (value_subscripted_rvalue): Likewise in declaration.
2670
2671 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
2672
2673 * cli/cli-utils.c (info_print_command_completer): New function.
2674 * cli/cli-utils.h: Add 'completer.h' include, and forward
2675 declaration for 'struct cmd_list_element'.
2676 (info_print_command_completer): Declare.
2677 * stack.c (_initialize_stack): Add completer for 'info locals' and
2678 'info args'.
2679 * symtab.c (_initialize_symtab): Add completer for 'info
2680 variables' and 'info functions'.
2681 * NEWS: Mention completion for additional info commands.
2682
2683 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
2684
2685 * cli/cli-utils.c (extract_info_print_args): Delete.
2686 (extract_arg_maybe_quoted): Delete.
2687 (info_print_options_defs): New variable.
2688 (make_info_print_options_def_group): New function.
2689 (extract_info_print_options): Define new function.
2690 * cli/cli-utils.h (extract_info_print_args): Delete.
2691 (struct info_print_options): New structure.
2692 (extract_info_print_options): Declare new function.
2693 * stack.c (info_locals_command): Update to use new
2694 extract_info_print_options, also add a header comment.
2695 (info_args_command): Likewise.
2696 * symtab.c (info_variables_command): Likewise.
2697 (info_functions_command): Likewise.
2698
2699 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
2700
2701 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
2702 to extract string arguments.
2703 * common/common-utils.c (extract_string_maybe_quoted): New function.
2704 * common/common-utils.h (extract_string_maybe_quoted): Declare.
2705
2706 2019-07-11 Tom Tromey <tromey@adacore.com>
2707
2708 * main.c (get_init_files): Use GDBINIT, not gdbinit.
2709 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
2710 * top.h (gdbinit): Don't declare.
2711 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
2712 into...
2713 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
2714 * top.c (gdb_init): Don't call init_cli_cmds.
2715 (gdbinit): Remove.
2716 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
2717
2718 2019-07-11 Tom Tromey <tromey@adacore.com>
2719
2720 * python/py-inferior.c (add_thread_object): Don't use thread_obj
2721 after it has been moved.
2722
2723 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2724
2725 * valops.c (value_must_coerce_to_target): Change return type to
2726 bool.
2727 * value.h (value_must_coerce_to_target): Likewise.
2728
2729 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
2730
2731 * breakpoint.c (is_hardware_watchpoint): Remove
2732 forward-declaration.
2733 (is_masked_watchpoint): Change return type to bool.
2734 (is_tracepoint): Likewise.
2735 (is_breakpoint): Likewise.
2736 (is_hardware_watchpoint): Likewise.
2737 (is_watchpoint): Likewise.
2738 (is_no_memory_software_watchpoint): Likewise.
2739 (is_catchpoint): Likewise.
2740 (breakpoint_1): Make FILTER parameter's return type bool.
2741 is_masked_watchpoint): Change return type to bool.
2742 (save_breakpoints): Make FILTER parameter's return type bool.
2743 * breakpoint.h (is_breakpoint): Change return type to bool.
2744 (is_watchpoint): Likewise.
2745 (is_catchpoint): Likewise.
2746 (is_tracepoint): Likewise.
2747
2748 2019-07-10 Tom Tromey <tom@tromey.com>
2749
2750 * defs.h: Don't include gdbarch.h.
2751 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
2752 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
2753 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
2754 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
2755 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
2756 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
2757 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
2758 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
2759 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
2760 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
2761 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
2762 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
2763 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
2764 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
2765 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
2766 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
2767 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
2768 record-btrace.c, record.h, regcache-dump.c, regcache.h,
2769 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
2770 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
2771 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
2772 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
2773 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
2774 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
2775 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
2776 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
2777 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
2778
2779 2019-07-10 Tom Tromey <tromey@adacore.com>
2780
2781 * ada-lang.h (is_ada_exception_catchpoint): Declare.
2782 * breakpoint.c (init_ada_exception_breakpoint): Register as
2783 bp_catchpoint.
2784 (print_one_breakpoint_location, print_one_breakpoint): Use
2785 is_ada_exception_catchpoint.
2786 * ada-lang.c (class ada_catchpoint_location): Pass
2787 bp_loc_software_breakpoint to bp_location constructor.
2788 (is_ada_exception_catchpoint): New function.
2789
2790 2019-07-10 Tom Tromey <tromey@adacore.com>
2791
2792 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
2793 VEC.
2794 (struct arm_exidx_entry): New method operator<.
2795 (struct arm_exidx_data) <section_maps>: Change type.
2796 (arm_exidx_data_free): Remove.
2797 (arm_exidx_data_key): Change type. Move lower.
2798 (arm_exidx_new_objfile): Update.
2799 (arm_compare_exidx_entries): Remove.
2800 (arm_find_exidx_entry, _initialize_arm_tdep)
2801
2802 2019-07-10 Tom Tromey <tromey@adacore.com>
2803
2804 * solib-spu.c (ocl_program_data_key): Change type.
2805 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
2806 Update.
2807
2808 2019-07-10 Tom Tromey <tromey@adacore.com>
2809
2810 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
2811 (struct solib_aix_inferior_data) <library_list>: Change type.
2812 (solib_aix_inferior_data_handle): Change type.
2813 (get_solib_aix_inferior_data): Update.
2814 (solib_aix_free_library_list): Remove.
2815 (library_list_start_library): Update.
2816 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
2817 return type.
2818 (solib_aix_get_library_list)
2819 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
2820 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
2821
2822 2019-07-10 Tom Tromey <tromey@adacore.com>
2823
2824 * solib-dsbt.c (struct dsbt_info): Add initializers.
2825 (solib_dsbt_pspace_data): Change type.
2826 (dsbt_pspace_data_cleanup): Remove.
2827 (get_dsbt_info, _initialize_dsbt_solib): Update.
2828
2829 2019-07-10 Tom Tromey <tromey@adacore.com>
2830
2831 * spu-tdep.c (spu_overlay_data): Change type.
2832 (spu_get_overlay_table, spu_overlay_new_objfile)
2833 (_initialize_spu_tdep): Update.
2834
2835 2019-07-10 Tom Tromey <tromey@adacore.com>
2836
2837 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
2838 destructor.
2839 (dbx_objfile_data_key): Change type and declare later.
2840 (DBX_SYMFILE_INFO): Rewrite.
2841 * dbxread.c (dbx_objfile_data_key): Change type.
2842 (dbx_symfile_init): Update.
2843 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
2844 (coffstab_build_psymtabs, elfstab_build_psymtabs)
2845 (stabsect_build_psymtabs, _initialize_dbxread): Update.
2846
2847 2019-07-10 Tom Tromey <tromey@adacore.com>
2848
2849 * jit.c (jit_program_space_key): Change type. Move lower.
2850 (get_jit_program_space_data): Update.
2851 (jit_program_space_data_cleanup): Remove.
2852 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
2853 Update.
2854 (struct jit_program_space_data): Add initializers.
2855
2856 2019-07-10 Tom Tromey <tromey@adacore.com>
2857
2858 * solib-darwin.c (struct darwin_info): Add initializers.
2859 (solib_darwin_pspace_data): Change type.
2860 (darwin_pspace_data_cleanup): Remove.
2861 (get_darwin_info, _initialize_darwin_solib): Update.
2862
2863 2019-07-10 Tom Tromey <tromey@adacore.com>
2864
2865 * remote-sim.c (struct sim_inferior_data): Add initializers,
2866 constructor, and destructor.
2867 (sim_inferior_data_key): Change type. Move lower.
2868 (check_for_duplicate_sim_descriptor): Update.
2869 (get_sim_inferior_data): Use new. Update.
2870 (~sim_inferior_data_cleanup): Rename from
2871 sim_inferior_data_cleanup. Simplify.
2872 (gdbsim_close_inferior, simulator_command)
2873 (sim_command_completer, _initialize_remote_sim): Update.
2874 (next_pid, INITIAL_PID): Move earlier.
2875
2876 2019-07-10 Tom Tromey <tromey@adacore.com>
2877
2878 * python/python-internal.h (create_thread_object): Return
2879 gdbpy_ref.
2880 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
2881 * python/py-inferior.c (struct threadlist_entry): Add
2882 constructor.
2883 <thread_obj>: Now a gdbpy_ref.
2884 (thread_to_thread_object): Update.
2885 (add_thread_object): Use new.
2886 (delete_thread_object): Use delete.
2887 (infpy_threads): Update.
2888 (py_free_inferior): Update. Construct "inf_obj" after acquiring
2889 GIL.
2890
2891 2019-07-10 Tom Tromey <tromey@adacore.com>
2892
2893 * valops.c (value_cast): Specialize error message for Ada.
2894
2895 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2896
2897 * breakpoint.c (breakpoint_1): Update doc and parameter names.
2898
2899 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2900
2901 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
2902 bpstat_should_step): Return bool, adjust comments.
2903 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
2904 bpstat_should_step): Likewise.
2905
2906 2019-07-10 Alan Hayward <alan.hayward@arm.com>
2907
2908 * features/Makefile: Use feature target descriptions for Arm.
2909 * features/arm/arm-core.c: Generate new file.
2910 * features/arm/arm-fpa.c: Likewise.
2911 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
2912 * features/arm/arm-m-profile.c: Likewise.
2913 * features/arm/arm-vfpv2.c: Likewise.
2914 * features/arm/arm-vfpv3.c: Likewise.
2915 * features/arm/xscale-iwmmxt.c: Likewise.
2916 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
2917
2918 2019-07-10 Alan Hayward <alan.hayward@arm.com>
2919
2920 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
2921 ptrace earlier.
2922
2923 2019-07-10 Alan Hayward <alan.hayward@arm.com>
2924
2925 * features/aarch64-pauth.c: Regenerate.
2926
2927 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
2928
2929 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
2930 bool.
2931 (bpstat_what): Use false instead of 0.
2932
2933 2019-07-09 Pedro Alves <palves@redhat.com>
2934
2935 * break-catch-throw.c (is_exception_catchpoint): New.
2936 * breakpoint.c (print_one_breakpoint_location): New parameter
2937 'raw_loc'. Handle it. Use
2938 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
2939 looking at the breakpoint's type.
2940 (print_one_breakpoint): If handling "maint info breakpoints", also
2941 print locations of exception catchpoints.
2942 * breakpoint.h (is_exception_catchpoint): Declare.
2943
2944 2019-07-09 Pedro Alves <palves@redhat.com>
2945
2946 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
2947 "addr" field.
2948 (allocate_location_exception_catchpoint): New.
2949 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
2950 (initialize_throw_catchpoint_ops): Install
2951 allocate_location_exception_catchpoint as allocate_location
2952 method.
2953 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
2954 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
2955 bp_loc_other.
2956 (breakpoint_address_is_meaningful): Delete.
2957 (bl_address_is_meaningful): New.
2958 (breakpoint_locations_match): Adjust comment.
2959 (bp_location_from_bp_type): New, factored out of...
2960 (bp_location::bp_location(breakpoint *)): ... this.
2961 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
2962 factored out of...
2963 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
2964 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
2965 breakpoint_address_is_meaningful.
2966 (bp_locations_compare): Adjust comment.
2967 (update_global_location_list): Use bl_address_is_meaningful
2968 instead of breakpoint_address_is_meaningful.
2969 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
2970 explicit.
2971 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
2972 * python/py-breakpoint.c (bppy_get_location): No longer check
2973 whether location is null.
2974
2975 2019-07-09 Pedro Alves <palves@redhat.com>
2976
2977 PR c++/15468
2978 * breakpoint.c (print_one_breakpoint_location): Remove
2979 single-location assert.
2980
2981 2019-07-09 Tom Tromey <tom@tromey.com>
2982
2983 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
2984 * configure: Rebuild.
2985 * configure.ac: Change common to gdbsupport.
2986 * gdbsupport: Rename from common.
2987 * acinclude.m4: Change common to gdbsupport.
2988 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
2989 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
2990 gdbsupport.
2991 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
2992 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
2993 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
2994 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
2995 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
2996 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
2997 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
2998 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
2999 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
3000 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
3001 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
3002 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
3003 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
3004 coff-pe-read.c, command.h, compile/compile-c-support.c,
3005 compile/compile-c.h, compile/compile-cplus-symbols.c,
3006 compile/compile-cplus-types.c, compile/compile-cplus.h,
3007 compile/compile-loc2c.c, compile/compile.c, completer.c,
3008 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
3009 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
3010 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
3011 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
3012 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
3013 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
3014 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
3015 features/aarch64-core.c, features/aarch64-fpu.c,
3016 features/aarch64-pauth.c, features/aarch64-sve.c,
3017 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
3018 features/i386/32bit-core.c, features/i386/32bit-linux.c,
3019 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
3020 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
3021 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
3022 features/i386/64bit-core.c, features/i386/64bit-linux.c,
3023 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
3024 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
3025 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
3026 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
3027 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
3028 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
3029 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
3030 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
3031 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
3032 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
3033 go32-nat.c, guile/guile.c, guile/scm-ports.c,
3034 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
3035 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
3036 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
3037 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
3038 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
3039 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
3040 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
3041 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
3042 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
3043 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
3044 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
3045 minsyms.c, mips-linux-tdep.c, namespace.h,
3046 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
3047 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
3048 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
3049 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
3050 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
3051 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
3052 nat/linux-waitpid.c, nat/mips-linux-watch.c,
3053 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
3054 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
3055 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
3056 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
3057 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
3058 procfs.c, producer.c, progspace.h, psymtab.h,
3059 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
3060 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
3061 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
3062 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
3063 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
3064 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
3065 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
3066 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
3067 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
3068 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
3069 target-memory.c, target.c, target.h, target/waitstatus.c,
3070 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
3071 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
3072 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
3073 unittests/array-view-selftests.c,
3074 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
3075 unittests/common-utils-selftests.c,
3076 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
3077 unittests/format_pieces-selftests.c,
3078 unittests/function-view-selftests.c,
3079 unittests/lookup_name_info-selftests.c,
3080 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
3081 unittests/mkdir-recursive-selftests.c,
3082 unittests/observable-selftests.c,
3083 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
3084 unittests/parse-connection-spec-selftests.c,
3085 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
3086 unittests/scoped_fd-selftests.c,
3087 unittests/scoped_mmap-selftests.c,
3088 unittests/scoped_restore-selftests.c,
3089 unittests/string_view-selftests.c, unittests/style-selftests.c,
3090 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
3091 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
3092 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
3093 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
3094 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
3095 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
3096
3097 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3098
3099 * linespec.c (decode_digits_list_mode): Set explicit_line to a
3100 bool value.
3101 (decode_digits_ordinary): Set explicit_line field in sal.
3102 * symtab.c (skip_prologue_sal): Don't skip prologue for a
3103 symtab_and_line that was set on an explicit line number in
3104 assembler code. Do always update the recorded symtab and line if
3105 we do skip the prologue.
3106
3107 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3108
3109 * breakpoint.c (set_breakpoint_location_function): Remove
3110 explicit_loc parameter.
3111 (momentary_breakpoint_from_master): Update call to
3112 set_breakpoint_location_function.
3113 (add_location_to_breakpoint): Likewise.
3114
3115 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3116
3117 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
3118 required features based on default bfd type when no specific bfd
3119 is present.
3120
3121 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3122
3123 * NEWS: Mention that GDB printf and eval commands can now print
3124 C-style and Ada-style convenience var strings without
3125 calling the inferior.
3126 * printcmd.c (printf_c_string): Locally print GDB internal var
3127 instead of transiting via the inferior.
3128 (printf_wide_c_string): Likewise.
3129
3130 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3131
3132 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
3133
3134 2019-07-04 Tom Tromey <tom@tromey.com>
3135
3136 PR tui/24724:
3137 * tui/tui-winsource.c (tui_clear_source_content): Update.
3138 (tui_source_window_base::set_is_exec_point_at): Fix comment.
3139 (tui_update_breakpoint_info): Update.
3140 (tui_set_exec_info_content): Update.
3141 * tui/tui-source.c (tui_set_source_content_nil): Update.
3142 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
3143 has_break.
3144 * tui/tui-data.h (enum tui_bp_flag): New.
3145 (tui_bp_flags): New enum flags type.
3146 (struct tui_source_element) <break_mode>: Change type. Rename
3147 from has_break.
3148 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
3149 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
3150 constants.
3151 * tui/tui-winsource.h: Fix comment.
3152
3153 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3154
3155 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
3156 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
3157 (store_fpregs_to_thread)
3158 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
3159 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
3160 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
3161 (IWMMXT_REGS_SIZE): Add define.
3162 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
3163 (fetch_vfp_regs, store_vfp_regs)
3164 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
3165 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
3166
3167 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3168
3169 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
3170 defines.
3171 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
3172 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
3173 (ARM_INT_REGISTER_SIZE): ...to this.
3174 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
3175 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
3176 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
3177 (arm_linux_collect_gregset, supply_nwfpe_register)
3178 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
3179 defines.
3180 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
3181 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
3182 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
3183 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
3184 (arm_return_in_memory, arm_store_return_value)
3185 (arm_get_longjmp_target, arm_register_g_packet_guesses)
3186 (arm_record_ld_st_multiple): Likewise.
3187 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
3188 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
3189
3190 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3191
3192 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
3193 AARCH64_DISPLACED_MODIFIED_INSNS.
3194 * aarch64-tdep.c (struct aarch64_displaced_step_data)
3195 (aarch64_displaced_step_copy_insn): Likewise.
3196 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
3197 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
3198 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
3199 ARM_DISPLACED_MODIFIED_INSNS.
3200 * arm-tdep.c (arm_gdbarch_init): Likewise.
3201 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
3202 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
3203 (struct arm_displaced_step_closure): Use
3204 ARM_DISPLACED_MODIFIED_INSNS.
3205
3206 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3207
3208 * features/Makefile: Remove unused xml files.
3209 * features/aarch64.xml: Remove.
3210 * features/i386/amd64-avx-avx512-linux.xml: Remove.
3211 * features/i386/amd64-avx-avx512.xml: Remove.
3212 * features/i386/amd64-avx-linux.xml: Remove.
3213 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
3214 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
3215 * features/i386/amd64-avx-mpx-linux.xml: Remove.
3216 * features/i386/amd64-avx-mpx.xml: Remove.
3217 * features/i386/amd64-avx.xml: Remove.
3218 * features/i386/amd64-linux.xml: Remove.
3219 * features/i386/amd64-mpx-linux.xml: Remove.
3220 * features/i386/amd64-mpx.xml: Remove.
3221 * features/i386/amd64.xml: Remove.
3222 * features/i386/i386-avx-avx512-linux.xml: Remove.
3223 * features/i386/i386-avx-avx512.xml: Remove.
3224 * features/i386/i386-avx-linux.xml: Remove.
3225 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
3226 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
3227 * features/i386/i386-avx-mpx-linux.xml: Remove.
3228 * features/i386/i386-avx-mpx.xml: Remove.
3229 * features/i386/i386-avx.xml: Remove.
3230 * features/i386/i386-linux.xml: Remove.
3231 * features/i386/i386-mmx-linux.xml: Remove.
3232 * features/i386/i386-mmx.xml: Remove.
3233 * features/i386/i386-mpx-linux.xml: Remove.
3234 * features/i386/i386-mpx.xml: Remove.
3235 * features/i386/i386.xml: Remove.
3236 * features/i386/x32-avx-avx512-linux.xml: Remove.
3237 * features/i386/x32-avx-linux.xml: Remove.
3238 * features/i386/x32-linux.xml: Remove.
3239
3240 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3241
3242 * regformats/aarch64.dat: Remove.
3243 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
3244 * regformats/i386/amd64-avx-linux.dat: Remove.
3245 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
3246 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
3247 * regformats/i386/amd64-linux.dat: Remove.
3248 * regformats/i386/amd64-mpx-linux.dat: Remove.
3249 * regformats/i386/amd64.dat: Remove.
3250 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
3251 * regformats/i386/i386-avx-linux.dat: Remove.
3252 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
3253 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
3254 * regformats/i386/i386-linux.dat: Remove.
3255 * regformats/i386/i386-mmx-linux.dat: Remove.
3256 * regformats/i386/i386-mpx-linux.dat: Remove.
3257 * regformats/i386/i386.dat: Remove.
3258 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
3259 * regformats/i386/x32-avx-linux.dat: Remove.
3260 * regformats/i386/x32-linux.dat: Remove.
3261
3262 2019-07-04 Alan Hayward <alan.hayward@arm.com>
3263
3264 * aarch64-tdep.c: Remove xml self tests.
3265 * amd64-linux-tdep.c: Likewise.
3266 * amd64-tdep.c: Likewise.
3267 * i386-linux-tdep.c: Likewise.
3268 * i386-tdep.c: Likewise.
3269
3270 2019-07-03 Pedro Alves <palves@redhat.com>
3271
3272 PR cli/24732
3273 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
3274 (pipe_cmd_option_defs): New.
3275 (make_pipe_cmd_options_def_group): New.
3276 (pipe_command): Use gdb::option::process_options.
3277 (pipe_command_completer): New function.
3278 (_initialize_cli_cmds): Install completer for "pipe" command.
3279
3280 2019-07-03 Pedro Alves <palves@redhat.com>
3281
3282 * cli/cli-option.c (union option_value) <string>: New field.
3283 (struct option_def_and_value): Add ctor, move ctor, dtor and
3284 use DISABLE_COPY_AND_ASSIGN.
3285 (option_def_and_value::clear_value): New.
3286 (parse_option, save_option_value_in_ctx, get_val_type_str)
3287 (add_setshow_cmds_for_options): Handle var_string.
3288 * cli-option.h (union option_def::var_address) <string>: New
3289 field.
3290 (struct string_option_def): New.
3291 * maint-test-options.c (struct test_options_opts): Add default
3292 ctor and use DISABLE_COPY_AND_ASSIGN.
3293 <string_opt>: New field.
3294 (test_options_opts::~test_options_opts): New.
3295 (test_options_opts::dump): Also dump "-string".
3296 (test_options_option_defs): Install "string.
3297
3298 2019-07-03 Pedro Alves <palves@redhat.com>
3299
3300 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
3301 option_value with a null enumeration.
3302 (complete_options): Save the option values in the context.
3303 (save_option_value_in_ctx): New, factored out from ...
3304 (process_options): ... here.
3305 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
3306 of the function.
3307 * maint-test-options.c (test_options_opts::dump): New, factored
3308 out from ...
3309 (maintenance_test_options_command_mode): ... here.
3310 (maintenance_test_options_command_completion_result): Delete.
3311 (maintenance_test_options_command_completion_text): Update
3312 comment.
3313 (maintenance_show_test_options_completion_result): Change
3314 prototype. Just print
3315 maintenance_test_options_command_completion_text.
3316 (save_completion_result): New.
3317 (maintenance_test_options_completer_mode): Pass options context to
3318 complete_options, and then save a dump.
3319 (_initialize_maint_test_options): Use add_cmd to install "maint
3320 show test-options-completion-result".
3321
3322 2019-07-03 Pedro Alves <palves@redhat.com>
3323
3324 * NEWS (New commands): Mention "with" and "maint with".
3325 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
3326 (with_command, with_command_completer): New.
3327 (pipe_command): Adjust to new repeat_previous
3328 interface.
3329 (_initialize_cli_cmds): Install the "with" command and its "w"
3330 alias.
3331 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
3332 declarations.
3333 * cli/cli-setshow.c (parse_cli_var_uinteger)
3334 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
3335 argument strings for all var_types.
3336 (get_setshow_command_value_string): New, factored out from ...
3337 (do_show_command): ... this.
3338 * cli/cli-setshow.h: Include <string>.
3339 (get_setshow_command_value_string): Declare.
3340 * command.h (repeat_previous): Now returns const char *. Adjust
3341 comment.
3342 * maint.c: Include "cli/cli-cmds.h".
3343 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
3344 (_initialize_maint_cmds): Register the "maintenance with" command.
3345 * top.c (repeat_previous): Move bits from pipe_command here:
3346 Return the saved command line, if any; error out if there's no
3347 command to relaunch.
3348
3349 2019-07-03 Pedro Alves <palves@redhat.com>
3350
3351 * NEWS (New commands): Mention "maint set/show test-settings"
3352 instead of "maint test-settings".
3353 * maint-test-settings.c (maintenance_test_settings_list): Delete.
3354 (maintenance_test_settings_set_list): Rename to ...
3355 (maintenance_set_test_settings_list): ... this.
3356 (maintenance_test_settings_show_list): Rename to ...
3357 (maintenance_show_test_settings_list): ... this.
3358 (maintenance_test_settings_cmd): Delete.
3359 (maintenance_test_settings_set_cmd): ...
3360 (maintenance_set_test_settings_cmd): ... this.
3361 (maintenance_test_settings_show_cmd): ...
3362 (maintenance_show_test_settings_cmd): ... this.
3363 (maintenance_test_settings_show_value_cmd):
3364 (maintenance_show_test_settings_value_cmd): ... this.
3365 (_initialize_maint_test_settings): No longer install the "maint
3366 test-settings" prefix command. Rename "maint test-settings set"
3367 to "maint set test-settings", and "maint test-settings show" to
3368 "maint show test-settings". Adjust all subcommands.
3369
3370 2019-07-03 Pedro Alves <palves@redhat.com>
3371
3372 * maint-test-settings.c: Fix file's intro comment. Replace all
3373 references to "test-options" with references to "test-settings",
3374 in comments.
3375
3376 2019-07-03 Pedro Alves <palves@redhat.com>
3377
3378 * maint-test-settings.c (maintenance_test_settings_xxx)
3379 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
3380 New.
3381 (maintenance_test_settings_enums): Use them.
3382 (maintenance_test_settings_enum): Default to
3383 maintenance_test_settings_xxx.
3384 (_initialize_maint_test_settings): Initialize
3385 MAINTENANCE_TEST_SETTINGS_FILENAME.
3386
3387 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3388
3389 * breakpoint.h (remove_breakpoints_inf): Change return type to
3390 void, move function documentation here.
3391 * breakpoint.c (remove_breakpoints_inf): Change return type to
3392 void, move function documentation to header.
3393
3394 2019-07-02 Pedro Alves <palves@redhat.com>
3395
3396 * NEWS (Completion improvements): Mention "info threads".
3397 * thread.c (struct info_threads_opts, info_threads_option_defs)
3398 (make_info_threads_options_def_group): New.
3399 (info_threads_command): Use gdb::option::process_options.
3400 (info_threads_command_completer): New.
3401 (_initialize_thread): Use gdb::option::build_help to build the
3402 help text for "info threads".
3403
3404 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3405
3406 * defs.h (generic_load): Move from here...
3407 * symfile.h (generic_load): ... to here. Rename name parameter
3408 to args.
3409 * symfile.c (generic_load): Add comment.
3410
3411 2019-07-01 Tom Tromey <tromey@adacore.com>
3412
3413 * dwarf2read.c
3414 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
3415 declaration of without_params. Fix formatting.
3416
3417 2019-07-01 Tom Tromey <tromey@adacore.com>
3418
3419 * ada-exp.y (find_primitive_type): Update.
3420 * ada-lang.h (ada_lookup_symbol): Update.
3421 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
3422 parameter.
3423 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
3424
3425 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
3426
3427 PR breakpoints/24541
3428 * gdbarch.c: Regenerate.
3429 * gdbarch.h: Regenerate.
3430 * gdbarch.sh: Add 'stap_adjust_register'.
3431 * i386-tdep.c: Include '<unordered_set>'.
3432 (i386_stap_adjust_register): New function.
3433 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
3434 * stap-probe.c (stap_parse_register_operand): Call
3435 'gdbarch_stap_adjust_register'.
3436
3437 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
3438
3439 PR python/24742
3440 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
3441 * python/python.c (do_start_initialization): Use 'xmalloc'
3442 instead of 'PyMem_Malloc'.
3443
3444 2019-06-28 Tom Tromey <tromey@adacore.com>
3445
3446 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
3447 for Ada.
3448
3449 2019-06-27 Tom Tromey <tromey@adacore.com>
3450
3451 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
3452 objfile_key.
3453 (arm_find_mapping_symbol, arm_record_special_symbol)
3454 (_initialize_arm_tdep): Update.
3455 (arm_objfile_data_free): Remove.
3456
3457 2019-06-27 Tom Tromey <tromey@adacore.com>
3458
3459 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
3460 to cp_print_static_field.
3461
3462 2019-06-26 Tom Tromey <tromey@adacore.com>
3463
3464 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
3465 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
3466 declare.
3467
3468 2019-06-26 Alan Hayward <alan.hayward@arm.com>
3469
3470 * features/aarch64-core.c (create_feature_aarch64_core):
3471 Regenerate.
3472 * features/aarch64-core.xml: Add cpsr flags.
3473
3474 2019-06-26 Alan Hayward <alan.hayward@arm.com>
3475
3476 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
3477 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
3478
3479 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
3480
3481 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
3482 field.
3483 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
3484 use.
3485 (arm_record_special_symbol): Don't insert new symbol in sorted
3486 position, push it at the end.
3487
3488 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
3489
3490 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
3491 (arm_mapping_symbol_s): Remove.
3492 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
3493 (arm_mapping_symbol_vec): New typedef.
3494 (struct arm_per_objfile): Add constructor.
3495 <section_maps>: Change type to
3496 std::unique_ptr<arm_mapping_symbol_vec[]>.
3497 (arm_compare_mapping_symbols): Remove.
3498 (arm_find_mapping_symbol): Adjust to section_maps type change.
3499 (arm_objfile_data_free): Call delete on arm_per_objfile.
3500 (arm_record_special_symbol): Adjust to section_maps type change.
3501 Allocate arm_per_objfile with new.
3502
3503 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3504
3505 * cli/cli-cmds.c (alias_command): Compare the alias prefix
3506 with the command prefix.
3507
3508 2019-06-25 Tom Tromey <tom@tromey.com>
3509
3510 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
3511 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
3512
3513 2019-06-25 Tom Tromey <tom@tromey.com>
3514
3515 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
3516 type.
3517 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
3518 protected.
3519
3520 2019-06-25 Tom Tromey <tom@tromey.com>
3521
3522 * tui/tui-winsource.c
3523 (tui_source_window_base::set_is_exec_point_at): Add check against
3524 LOA_ADDRESS.
3525
3526 2019-06-25 Tom Tromey <tom@tromey.com>
3527
3528 * tui/tui-source.c (tui_set_source_content): Don't check before
3529 xfree.
3530 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
3531
3532 2019-06-25 Tom Tromey <tom@tromey.com>
3533
3534 * tui/tui-winsource.h (tui_update_source_window_as_is)
3535 (tui_alloc_source_buffer, tui_line_is_displayed)
3536 (tui_addr_is_displayed): Change type of win_info.
3537 * tui/tui-winsource.c (tui_update_source_window_as_is)
3538 (tui_clear_source_content, tui_show_source_line)
3539 (tui_show_source_content, tui_source_window_base::refill)
3540 (tui_source_window_base::set_is_exec_point_at)
3541 (tui_source_window_base::set_is_exec_point_at)
3542 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
3543 (tui_alloc_source_buffer, tui_line_is_displayed)
3544 (tui_addr_is_displayed): Change type of win_info. Update.
3545 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3546 (tui_source_window_base::do_make_visible_with_new_height):
3547 Update.
3548 * tui/tui-source.c (tui_set_source_content)
3549 (tui_set_source_content_nil)
3550 (tui_source_window::do_scroll_vertical): Update.
3551 * tui/tui-layout.c (show_layout): Update.
3552 * tui/tui-disasm.c (tui_set_disassem_content)
3553 (tui_disasm_window::do_scroll_vertical): Update.
3554 * tui/tui-data.h (tui_win_content): Remove.
3555 (struct tui_gen_win_info) <content, content_size>: Remove.
3556 (struct tui_source_element): Add initializers and destructor.
3557 (union tui_which_element, struct tui_win_element): Remove.
3558 (struct tui_source_window_base) <content>: New field.
3559 (struct tui_data_window): Remove destructor.
3560 (tui_alloc_content, tui_free_win_content)
3561 (tui_free_all_source_wins_content): Don't declare.
3562 * tui/tui-data.c (tui_initialize_static_data): Update.
3563 (init_content_element, tui_alloc_content): Remove.
3564 (~tui_gen_win_info): Update.
3565 (~tui_data_window, tui_free_all_source_wins_content)
3566 (tui_free_win_content, free_content, free_content_elements):
3567 Remove.
3568
3569 2019-06-25 Tom Tromey <tom@tromey.com>
3570
3571 * tui/tui-winsource.h (tui_clear_source_content)
3572 (tui_erase_source_content, tui_show_source_content): Change type
3573 of win_info.
3574 * tui/tui-winsource.c (tui_clear_source_content)
3575 (tui_erase_source_content, tui_show_source_content): Change type
3576 of win_info.
3577 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3578 * tui/tui-source.h (tui_set_source_content_nil): Change type of
3579 win_info.
3580 * tui/tui-source.c (tui_set_source_content_nil): Change type of
3581 win_info.
3582 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
3583
3584 2019-06-25 Tom Tromey <tom@tromey.com>
3585
3586 * tui/tui-winsource.c (tui_clear_source_content)
3587 (tui_source_window_base::set_is_exec_point_at): Update.
3588 * tui/tui-source.c (tui_set_source_content_nil): Update.
3589 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
3590 a bool.
3591 * tui/tui-data.c (init_content_element): Update.
3592
3593 2019-06-25 Tom Tromey <tom@tromey.com>
3594
3595 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
3596 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
3597 * tui/tui-layout.c (init_and_make_win): Update.
3598 * tui/tui.h (enum tui_win_type): Update.
3599 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
3600 tui_win_is_auxillary.
3601 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
3602 tui_win_is_auxillary.
3603
3604 2019-06-25 Tom Tromey <tom@tromey.com>
3605
3606 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
3607 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
3608 (tui_delete_data_content_windows, tui_display_all_data)
3609 (tui_data_window::do_scroll_vertical, tui_display_data_from):
3610 Update.
3611 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
3612 * tui/tui-regs.c (tui_last_regs_line_no)
3613 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
3614 (tui_show_registers): Update.
3615 (tui_show_register_group): Return void. Update.
3616 (tui_display_registers_from, tui_display_reg_element_at_line)
3617 (tui_display_registers_from_line, tui_check_register_values):
3618 Update.
3619 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
3620 member.
3621 (struct tui_data_window) <regs_content>: Now a std::vector.
3622 <regs_content_count>: Remove.
3623 (tui_add_content_elements, tui_free_data_content): Don't declare.
3624 * tui/tui-data.c (tui_data_window::clear_detail): Update.
3625 (init_content_element): Remove DATA_WIN case. Add assert.
3626 (tui_add_content_elements): Remove.
3627 (tui_data_window): Update.
3628 (tui_free_data_content): Remove.
3629 (free_content_elements): Remove DATA_WIN case.
3630
3631 2019-06-25 Tom Tromey <tom@tromey.com>
3632
3633 * tui/tui-data.c (tui_data_item_window): Update.
3634 * tui/tui-windata.h (tui_check_data_values): Don't declare.
3635 * tui/tui-windata.c (tui_display_all_data)
3636 (tui_display_data_from_line): Update.
3637 (tui_check_data_values): Remove.
3638 * tui/tui-regs.c (tui_show_register_group)
3639 (tui_display_reg_element_at_line): Update.
3640 * tui/tui-hooks.c (tui_register_changed)
3641 (tui_refresh_frame_and_register_information): Call
3642 tui_check_register_values.
3643 * tui/tui-data.h (struct tui_data_window) <data_content,
3644 data_content_count, data_type>: Remove.
3645 (enum tui_data_type): Remove.
3646
3647 * tui/tui-data.c (tui_data_window::clear_detail)
3648 (~tui_data_window): Update.
3649
3650 2019-06-25 Tom Tromey <tom@tromey.com>
3651
3652 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
3653 declare.
3654 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
3655 Rename from tui_first_data_item_displayed. Update.
3656 (tui_data_window::refresh_all)
3657 (tui_data_window::do_scroll_vertical): Update.
3658 * tui/tui-data.h (struct tui_data_window)
3659 <first_data_item_displayed>: Declare new method.
3660
3661 2019-06-25 Tom Tromey <tom@tromey.com>
3662
3663 * tui/tui-data.h (tui_init_generic_part): Don't declare.
3664 * tui/tui-data.c (tui_init_generic_part): Remove, moving
3665 contents...
3666 (tui_initialize_static_data): ...here.
3667
3668 2019-06-25 Tom Tromey <tom@tromey.com>
3669
3670 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
3671 (tui_display_registers_from, tui_check_register_values): Update.
3672 (tui_display_register): Remove win_info parameter; update.
3673 (tui_get_register): Change type of parameters.
3674 * tui/tui-data.h (struct tui_data_element): Remove.
3675 (union tui_which_element) <data>: Remove.
3676 <data_window>: Change type.
3677 (struct tui_data_item_window): New.
3678 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
3679 case. Add assert.
3680 (~tui_data_item_window): New destructor.
3681 (free_content_elements): Remove DATA_ITEM_WIN case.
3682
3683 2019-06-25 Tom Tromey <tom@tromey.com>
3684
3685 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
3686 Remove.
3687
3688 2019-06-25 Tom Tromey <tom@tromey.com>
3689
3690 * tui/tui-data.h (struct tui_command_element): Remove.
3691 (union tui_which_element) <command>: Remove.
3692 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
3693 assert.
3694 (free_content_elements): Remove CMD_WIN case.
3695
3696 2019-06-25 Tom Tromey <tom@tromey.com>
3697
3698 * tui/tui-layout.c (tui_set_layout): Update.
3699 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
3700 * tui/tui-data.c (layout_def): Update.
3701
3702 2019-06-25 Tom Tromey <tom@tromey.com>
3703
3704 * tui/tui-wingeneral.c (tui_refresh_all): Update.
3705 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3706 (tui_source_window_base::set_new_height): Update.
3707 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
3708 Update.
3709 (tui_set_locator_fullname, tui_set_locator_info)
3710 (tui_show_frame_info): Update.
3711 * tui/tui-source.c (tui_set_source_content)
3712 (tui_source_is_displayed): Update.
3713 * tui/tui-layout.c (show_source_disasm_command, show_data)
3714 (show_source_or_disasm_and_command): Update.
3715 * tui/tui-disasm.c (tui_set_disassem_content)
3716 (tui_get_begin_asm_address): Update.
3717 * tui/tui-data.h (struct tui_locator_element): Remove.
3718 (union tui_which_element) <locator>: Remove.
3719 (struct tui_locator_window): New.
3720 (tui_locator_win_info_ptr): Change return type.
3721 * tui/tui-data.c (_locator): Change type.
3722 (tui_locator_win_info_ptr): Change return type.
3723 (init_content_element): Remove LOCATOR_WIN case. Add assert.
3724 (tui_alloc_content): Add assert.
3725
3726 2019-06-25 Tom Tromey <tom@tromey.com>
3727
3728 * tui/tui-winsource.c
3729 (tui_exec_info_window::maybe_allocate_content): New method.
3730 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
3731 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
3732 (make_source_or_disasm_window): Add cast.
3733 * tui/tui-data.h (union tui_which_element) <simple_string>:
3734 Remove.
3735 (struct tui_source_info): New.
3736 (struct tui_source_window_base) <execution_info>: Change type.
3737 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
3738 case, and add assert.
3739 (tui_alloc_content): Add assert.
3740
3741 2019-06-25 Tom Tromey <tom@tromey.com>
3742
3743 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
3744 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
3745 * tui/tui-data.c (tui_alloc_win_info): Remove.
3746
3747 2019-06-25 Tom Tromey <tom@tromey.com>
3748
3749 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
3750 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
3751 can_highlight.
3752
3753 2019-06-25 Tom Tromey <tom@tromey.com>
3754
3755 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
3756 make_visible_with_new_height method.
3757 (tui_win_info::make_visible_with_new_height): New method.
3758 (tui_source_window_base::do_make_visible_with_new_height)
3759 (tui_data_window::do_make_visible_with_new_height)
3760 (tui_cmd_window::do_make_visible_with_new_height): New methods.
3761 (make_visible_with_new_height): Remove.
3762 (tui_resize_all, tui_adjust_win_heights): Use
3763 make_visible_with_new_height method.
3764 * tui/tui-data.h (struct tui_win_info)
3765 <do_make_visible_with_new_height, make_visible_with_new_height>:
3766 New methods.
3767 (struct tui_source_window_base, struct tui_data_window)
3768 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
3769 methods.
3770
3771 2019-06-25 Tom Tromey <tom@tromey.com>
3772
3773 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
3774 method.
3775 (update_tab_width): Call update_tab_width method.
3776 * tui/tui-data.h (struct tui_win_info)
3777 (struct tui_source_window_base) <update_tab_width>: New methods.
3778
3779 2019-06-25 Tom Tromey <tom@tromey.com>
3780
3781 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
3782 parameter.
3783 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
3784 parameter.
3785 (tui_gen_win_info::make_visible): Update.
3786 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
3787 parameter.
3788 * tui/tui-data.h (enum tui_box): New enum.
3789 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
3790
3791 2019-06-25 Tom Tromey <tom@tromey.com>
3792
3793 * tui/tui-layout.c (make_source_or_disasm_window): Always use
3794 init_and_make_win for EXEC_INFO_WIN.
3795 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
3796 longer inline.
3797 (struct tui_win_info) <~tui_win_info>: Inline.
3798 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
3799 Don't declare.
3800 * tui/tui-data.c (source_win, disasm_win): Remove globals.
3801 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
3802 Remove.
3803 (tui_initialize_static_data): Update.
3804 (~tui_gen_win_info): Handle more cleanup here.
3805 (~tui_source_window_base): Delete "execution_info".
3806 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
3807
3808 2019-06-25 Tom Tromey <tom@tromey.com>
3809
3810 * tui/tui-layout.c (make_command_window): Don't set
3811 can_highlight.
3812 (show_source_disasm_command): Call the reset method.
3813 (show_data): Don't set can_highlight. Call the reset method.
3814 (tui_gen_win_info::reset): Rename from init_gen_win_info
3815 (init_and_make_win): Simplify. Return tui_gen_win_info.
3816 (show_source_or_disasm_and_command): Call the reset method.
3817 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
3818 (struct tui_cmd_window): Set can_highlight.
3819
3820 2019-06-25 Tom Tromey <tom@tromey.com>
3821
3822 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
3823 from make_visible.
3824 (tui_make_visible, tui_make_invisible): Rewrite.
3825 (tui_win_info::make_visible): Remove.
3826 (tui_source_window_base::make_visible): Update.
3827 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
3828 method. Moved from...
3829 (struct tui_win_info) <make_visible>: ...here.
3830
3831 2019-06-25 Tom Tromey <tom@tromey.com>
3832
3833 * tui/tui-winsource.c
3834 (tui_source_window_base::do_scroll_horizontal): Remove direction
3835 parameter.
3836 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
3837 direction parameter.
3838 * tui/tui-win.c (tui_win_info::forward_scroll)
3839 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
3840 (tui_win_info::right_scroll): Update.
3841 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
3842 direction parameter.
3843 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
3844 direction parameter.
3845 * tui/tui-data.h (enum tui_scroll_direction): Remove.
3846 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
3847 Remove direction parameter.
3848 (struct tui_source_window_base, struct tui_source_window)
3849 (struct tui_disasm_window, struct tui_data_window)
3850 (struct tui_cmd_window): Update.
3851
3852 2019-06-25 Tom Tromey <tom@tromey.com>
3853
3854 * tui/tui-winsource.h (tui_set_exec_info_content)
3855 (tui_show_exec_info_content, tui_erase_exec_info_content)
3856 (tui_clear_exec_info_content, tui_update_exec_info): Change
3857 argument to tui_source_window_base.
3858 * tui/tui-winsource.c (tui_set_exec_info_content)
3859 (tui_show_exec_info_content, tui_erase_exec_info_content)
3860 (tui_clear_exec_info_content, tui_update_exec_info): Change
3861 argument to tui_source_window_base.
3862
3863 2019-06-25 Tom Tromey <tom@tromey.com>
3864
3865 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
3866 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
3867
3868 2019-06-25 Tom Tromey <tom@tromey.com>
3869
3870 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
3871 check.
3872
3873 2019-06-25 Tom Tromey <tom@tromey.com>
3874
3875 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
3876 type to void.
3877 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
3878 type to void.
3879 * tui/tui-source.c (tui_set_source_content): Update.
3880 * tui/tui-disasm.c (tui_set_disassem_content): Update.
3881
3882 2019-06-25 Tom Tromey <tom@tromey.com>
3883
3884 * tui/tui-win.c (window_name_completer, tui_set_focus)
3885 (tui_all_windows_info): Use name method.
3886 * tui/tui-data.h (struct tui_gen_win_info)
3887 (struct tui_source_window, struct tui_disasm_window)
3888 (struct tui_data_window, struct tui_cmd_window) <name>: New
3889 method.
3890 (tui_win_name): Don't declare.
3891 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
3892 (tui_win_name): Remove.
3893
3894 2019-06-25 Tom Tromey <tom@tromey.com>
3895
3896 * tui/tui-winsource.h (tui_update_source_window)
3897 (tui_update_source_window_as_is): Change parameter type.
3898 * tui/tui-winsource.c (tui_update_source_window): Change win_info
3899 to be a tui_source_window_base.
3900 (tui_update_source_window_as_is): Likewise.
3901 * tui/tui-win.c (make_visible_with_new_height): Update.
3902
3903 2019-06-25 Tom Tromey <tom@tromey.com>
3904
3905 * tui/tui-winsource.c (tui_erase_source_content)
3906 (tui_show_source_content, tui_show_exec_info_content)
3907 (tui_erase_exec_info_content): Use refresh_window method.
3908 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
3909 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
3910 from tui_refresh_win.
3911 (tui_data_window::refresh_window): New method.
3912 (tui_win_info::refresh, tui_source_window_base::refresh)
3913 (tui_refresh_all): Use refresh_window method.
3914 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
3915 method.
3916 * tui/tui-regs.c (tui_display_register): Call refresh_window
3917 method.
3918 * tui/tui-layout.c (show_source_disasm_command)
3919 (show_source_or_disasm_and_command): Call refresh_window method.
3920 * tui/tui-data.h (struct tui_gen_win_info)
3921 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
3922 New method.
3923
3924 2019-06-25 Tom Tromey <tom@tromey.com>
3925
3926 * tui/tui.c (tui_rl_other_window, tui_enable)
3927 (tui_is_window_visible, tui_get_command_dimension): Update.
3928 * tui/tui-winsource.c (tui_update_source_window_as_is)
3929 (tui_clear_source_content, tui_erase_source_content)
3930 (tui_show_source_line, tui_source_window_base::refill)
3931 (tui_source_window_base::do_scroll_horizontal)
3932 (tui_source_window_base::set_is_exec_point_at)
3933 (tui_update_breakpoint_info, tui_set_exec_info_content)
3934 (tui_alloc_source_buffer, tui_line_is_displayed)
3935 (tui_addr_is_displayed): Update.
3936 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
3937 (tui_check_and_display_highlight_if_needed)
3938 (tui_win_info::make_visible, tui_win_info::refresh)
3939 (tui_refresh_all): Update.
3940 * tui/tui-windata.c (tui_first_data_item_displayed)
3941 (tui_delete_data_content_windows, tui_erase_data_content)
3942 (tui_display_all_data, tui_data_window::refresh_all)
3943 (tui_check_data_values): Update.
3944 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
3945 (tui_set_win_focus_to, tui_win_info::forward_scroll)
3946 (tui_win_info::backward_scroll, tui_refresh_all_win)
3947 (tui_resize_all, tui_set_focus, tui_all_windows_info)
3948 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
3949 (tui_source_window_base::set_new_height)
3950 (tui_data_window::set_new_height)
3951 (make_invisible_and_set_new_height)
3952 (make_visible_with_new_height, new_height_ok)
3953 (parse_scrolling_args): Update.
3954 * tui/tui-stack.c (tui_show_frame_info): Update.
3955 * tui/tui-source.c (tui_set_source_content)
3956 (tui_set_source_content_nil, tui_source_is_displayed)
3957 (tui_source_window::do_scroll_vertical): Update.
3958 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
3959 (tui_display_registers_from, tui_display_reg_element_at_line)
3960 (tui_check_register_values, tui_reg_command): Update.
3961 * tui/tui-layout.c (tui_default_win_height)
3962 (show_source_disasm_command, show_data, init_and_make_win)
3963 (show_source_or_disasm_and_command): Update.
3964 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
3965 (tui_redisplay_readline, tui_mld_flush)
3966 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
3967 (tui_getc): Update.
3968 * tui/tui-disasm.c (tui_set_disassem_content)
3969 (tui_disasm_window::do_scroll_vertical): Update.
3970 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
3971 Now virtual.
3972 (struct tui_win_info): Derive from tui_gen_win_info.
3973 <~tui_win_info>: Mark as override.
3974 <generic>: Remove member.
3975 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
3976 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
3977 (~tui_data_window, ~tui_win_info)
3978 (tui_free_all_source_wins_content): Update.
3979 * tui/tui-command.c (tui_refresh_cmd_win): Update.
3980
3981 2019-06-25 Tom Tromey <tom@tromey.com>
3982
3983 * tui/tui-layout.c (init_and_make_win): Use new.
3984 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
3985 destructor, initializers.
3986 (tui_alloc_generic_win_info): Don't declare.
3987 * tui/tui-data.c (_locator): Add argument to constructor.
3988 (source_win, disasm_win): New globals.
3989 (exec_info): Remove.
3990 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
3991 Update.
3992 (tui_alloc_generic_win_info): Remove.
3993 (init_content_element): Use new.
3994 (tui_win_info::tui_win_info): Update.
3995 (free_content_elements) <case DATA_WIN>: Use delete.
3996
3997 2019-06-25 Tom Tromey <tom@tromey.com>
3998
3999 * tui/tui-wingeneral.c (tui_refresh_win): Update.
4000 * tui/tui-windata.c (tui_first_data_item_displayed)
4001 (tui_delete_data_content_windows): Update.
4002 * tui/tui-win.c (tui_data_window::set_new_height): Update.
4003 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4004 (tui_display_registers_from, tui_check_register_values): Update.
4005 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
4006 pointer.
4007 * tui/tui-data.c (init_content_element): Update. Allocate the new
4008 window.
4009 (tui_free_data_content): Update.
4010 (free_content_elements) <case DATA_WIN>: Free the window.
4011
4012 2019-06-25 Tom Tromey <tom@tromey.com>
4013
4014 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
4015 Update.
4016 * tui/tui-layout.c (make_command_window)
4017 (show_source_disasm_command, show_data, init_and_make_win)
4018 (show_source_or_disasm_and_command): Update.
4019 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
4020 method.
4021 <can_highight, is_highlighted>: Now bool.
4022 (tui_set_win_highlight): Don't declare.
4023 * tui/tui-data.c (tui_set_win_highlight): Remove.
4024
4025 2019-06-25 Tom Tromey <tom@tromey.com>
4026
4027 * tui/tui-wingeneral.c (make_visible): Remove check of window
4028 type.
4029
4030 2019-06-25 Tom Tromey <tom@tromey.com>
4031
4032 * tui/tui-win.c (tui_win_info::max_height)
4033 (tui_cmd_window::max_height): New methods.
4034 (new_height_ok): Call max_height.
4035 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
4036 <max_height>: New method.
4037
4038 2019-06-25 Tom Tromey <tom@tromey.com>
4039
4040 * tui/tui-win.c (tui_source_window_base::set_new_height)
4041 (tui_data_window::set_new_height): New methods.
4042 (make_invisible_and_set_new_height): Call set_new_height method.
4043 * tui/tui-data.h (struct tui_win_info)
4044 (struct tui_source_window_base, struct tui_data_window)
4045 <set_new_height>: New method.
4046
4047 2019-06-25 Tom Tromey <tom@tromey.com>
4048
4049 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
4050 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
4051 tui_refresh_data_win.
4052 * tui/tui-win.c (tui_source_window_base::refresh_all): New
4053 method.
4054 (tui_refresh_all_win): Call the refresh_all method.
4055 (tui_set_focus): Likewise.
4056 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
4057 (struct tui_source_window_base, struct tui_data_window) <refresh>:
4058 Likewise.
4059
4060 2019-06-25 Tom Tromey <tom@tromey.com>
4061
4062 * tui/tui-winsource.h (tui_refill_source_window)
4063 (tui_set_is_exec_point_at): Don't declare.
4064 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4065 (tui_source_window_base::refill): Rename from
4066 tui_refill_source_window.
4067 (tui_source_window_base::do_scroll_horizontal): Update.
4068 (tui_source_window_base::set_is_exec_point_at): Rename from
4069 tui_set_is_exec_point_at.
4070 (tui_update_all_breakpoint_info): Update.
4071 * tui/tui-stack.c (tui_show_frame_info): Update.
4072 * tui/tui-layout.c (show_data): Add cast.
4073 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
4074 * tui/tui-data.h (struct tui_source_window_base) <refill,
4075 set_is_exec_point_at>: New methods.
4076 (tui_source_windows, tui_add_to_source_windows): Update types.
4077 (tui_add_to_source_windows): Remove redundant declaration.
4078 * tui/tui-data.c (source_windows): Store tui_source_window_base.
4079 (tui_source_windows): Change return type.
4080 (tui_clear_source_windows_detail): Update.
4081 (tui_add_to_source_windows): Change type of parameter.
4082 (tui_free_all_source_wins_content): Update.
4083
4084 2019-06-25 Tom Tromey <tom@tromey.com>
4085
4086 * tui/tui-wingeneral.c (tui_win_info::refresh)
4087 (tui_source_window_base::refresh): New methods.
4088 (tui_refresh_all): Call the refresh method.
4089 * tui/tui-data.h (struct tui_win_info)
4090 (struct tui_source_window_base) <refresh>: New method.
4091
4092 2019-06-25 Tom Tromey <tom@tromey.com>
4093
4094 * tui/tui.h (tui_is_window_visible): Return bool.
4095 * tui/tui.c (tui_is_window_visible): Return bool.
4096 * tui/tui-wingeneral.c (tui_make_window, make_visible)
4097 (tui_make_visible, tui_make_invisible)
4098 (tui_win_info::make_visible)
4099 (tui_source_window_base::make_visible, make_all_visible)
4100 (tui_make_all_visible, tui_make_all_invisible): Update.
4101 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
4102 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
4103 bool.
4104 (struct tui_win_info, struct tui_source_window_base)
4105 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
4106 * tui/tui-data.c (tui_init_generic_part): Update.
4107
4108 2019-06-25 Tom Tromey <tom@tromey.com>
4109
4110 * tui/tui-wingeneral.c (tui_win_info::make_visible)
4111 (tui_source_window_base::make_visible): New methods.
4112 (make_all_visible): Make method call.
4113 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
4114 (struct tui_source_window_base, struct tui_cmd_window): Override
4115 make_visible.
4116 (tui_win_is_source_type): Don't declare.
4117 * tui/tui-data.c (tui_win_is_source_type): Remove.
4118
4119 2019-06-25 Tom Tromey <tom@tromey.com>
4120
4121 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
4122 NULL check.
4123
4124 2019-06-25 Tom Tromey <tom@tromey.com>
4125
4126 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
4127 Inline constructor. Add initializers for members.
4128 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
4129 constructors; now inline in class.
4130
4131 2019-06-25 Tom Tromey <tom@tromey.com>
4132
4133 * tui/tui-regs.c (tui_show_registers): Update.
4134 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
4135 bool.
4136 * tui/tui-data.c (tui_data_window::clear_detail)
4137 (tui_data_window): Update.
4138
4139 2019-06-25 Tom Tromey <tom@tromey.com>
4140
4141 * tui/tui-windata.c (tui_display_all_data)
4142 (tui_display_data_from_line, tui_display_data_from)
4143 (tui_check_data_values, tui_data_window::do_scroll_vertical):
4144 Update.
4145 * tui/tui-regs.c (tui_last_regs_line_no)
4146 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
4147 (tui_show_registers, tui_show_register_group)
4148 (tui_display_registers_from, tui_display_reg_element_at_line)
4149 (tui_display_registers_from_line, tui_check_register_values)
4150 (tui_reg_next, tui_reg_prev): Update.
4151 * tui/tui-layout.c (tui_set_layout, show_data): Update.
4152 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
4153 tui_data_window.
4154 (struct tui_win_info) <detail>: Remove. Add new fields from
4155 tui_data_info.
4156 (TUI_DATA_WIN): Add cast.
4157 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
4158 (~tui_data_window): Simplify.
4159
4160 2019-06-25 Tom Tromey <tom@tromey.com>
4161
4162 * tui/tui-layout.c (show_source_disasm_command)
4163 (show_source_or_disasm_and_command): Update.
4164 * tui/tui-io.c (update_cmdwin_start_line)
4165 (tui_redisplay_readline): Update.
4166 * tui/tui-data.h (struct tui_command_info): Remove.
4167 (struct tui_win_info) <detail>: Remove command_info member.
4168 (struct tui_data_window) <start_line>: New member, from
4169 tui_command_info.
4170 (TUI_CMD_WIN): Add casts.
4171
4172 2019-06-25 Tom Tromey <tom@tromey.com>
4173
4174 * tui/tui-winsource.c (tui_update_source_window)
4175 (tui_refill_source_window)
4176 (tui_source_window_base::do_scroll_horizontal)
4177 (tui_update_breakpoint_info, tui_set_exec_info_content)
4178 (tui_show_exec_info_content, tui_erase_exec_info_content)
4179 (tui_clear_exec_info_content): Update.
4180 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
4181 Update.
4182 * tui/tui-win.c (make_invisible_and_set_new_height)
4183 (make_visible_with_new_height): Update.
4184 * tui/tui-source.c (tui_set_source_content)
4185 (tui_show_symtab_source): Update.
4186 * tui/tui-layout.c (extract_display_start_addr)
4187 (show_source_disasm_command, show_data)
4188 (make_source_or_disasm_window)
4189 (show_source_or_disasm_and_command): Update.
4190 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
4191 (tui_disasm_window::do_scroll_vertical): Remove shadowing
4192 "gdbarch".
4193 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
4194 to tui_source_window_base.
4195 (struct tui_win_info) <detail>: Remove source_info member.
4196 (struct tui_source_window_base) <has_locator>: Inline.
4197 Move contents from tui_source_info; rename has_locator member to
4198 m_has_locator.
4199 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
4200 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
4201 header file.
4202 (tui_source_window_base::clear_detail, ~tui_source_window_base):
4203 Simplify.
4204 (tui_free_all_source_wins_content): Cast to
4205 tui_source_window_base.
4206
4207 2019-06-25 Tom Tromey <tom@tromey.com>
4208
4209 * tui/tui-win.c (make_invisible_and_set_new_height)
4210 (make_visible_with_new_height): Call has_locator method.
4211 * tui/tui-layout.c (show_source_disasm_command, show_data)
4212 (show_source_or_disasm_and_command): Update for bool change.
4213 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
4214 (tui_win_info) <has_locator>: New method.
4215 (struct tui_source_window_base) <has_locator>: New method.
4216 (tui_win_has_locator): Don't declare.
4217 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
4218 from tui_win_has_locator.
4219 (tui_source_window_base): Use false, not FALSE.
4220
4221 2019-06-25 Tom Tromey <tom@tromey.com>
4222
4223 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
4224 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
4225 clear_detail method directly.
4226 (tui_clear_win_detail): Remove.
4227
4228 2019-06-25 Tom Tromey <tom@tromey.com>
4229
4230 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
4231 "this", not TUI_DISASM_WIN.
4232
4233 2019-06-25 Tom Tromey <tom@tromey.com>
4234
4235 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
4236 declare.
4237 * tui/tui-winsource.c
4238 (tui_source_window_base::do_scroll_horizontal): Rename from
4239 tui_horizontal_source_scroll.
4240 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
4241 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
4242 from tui_vertical_data_scroll.
4243 * tui/tui-win.h (tui_scroll): Don't declare.
4244 * tui/tui-win.c (tui_win_info::forward_scroll)
4245 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
4246 (tui_win_info::right_scroll): Rename and update.
4247 (tui_scroll_forward_command, tui_scroll_backward_command)
4248 (tui_scroll_left_command, tui_scroll_right_command): Update.
4249 (tui_scroll): Remove.
4250 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
4251 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
4252 from tui_vertical_source_scroll.
4253 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
4254 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
4255 from tui_vertical_disassem_scroll.
4256 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
4257 do_scroll_horizontal>: New methods.
4258 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
4259 Likewise.
4260 (struct tui_source_window_base): Add do_scroll_horizontal.
4261 (struct tui_source_window, struct tui_disasm_window): Add
4262 do_scroll_vertical.
4263 (struct tui_data_window, struct tui_cmd_window): Add
4264 do_scroll_horizontal and do_scroll_vertical.
4265 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
4266
4267 2019-06-25 Tom Tromey <tom@tromey.com>
4268
4269 * tui/tui-data.h (struct tui_source_window_base): New struct.
4270 (struct tui_source_window): Derive from tui_source_window_base.
4271 (struct tui_disasm_window): New struct.
4272 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
4273 from tui_source_window::clear_detail.
4274 (tui_source_window_base): Rename from tui_source_window.
4275 (~tui_source_window_base): Rename from ~tui_source_window.
4276 (tui_alloc_win_info): Create a tui_disasm_window.
4277
4278 2019-06-25 Tom Tromey <tom@tromey.com>
4279
4280 * tui/tui-data.h (struct tui_source_window)
4281 (struct tui_data_window): Declare destructors.
4282 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
4283 destructors.
4284 (tui_win_info): Simplify.
4285
4286 2019-06-25 Tom Tromey <tom@tromey.com>
4287
4288 * tui/tui-winsource.c (tui_display_main)
4289 (tui_update_source_windows_with_addr)
4290 (tui_update_all_breakpoint_info): Update.
4291 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4292 (new_height_ok, parse_scrolling_args): Update.
4293 * tui/tui-stack.c (tui_show_frame_info): Update.
4294 * tui/tui-data.h (struct tui_list): Remove.
4295 (tui_source_windows): Return a reference to a std::vector.
4296 * tui/tui-data.c (source_windows): Now a std::vector.
4297 (tui_source_windows): Change return type.
4298 (tui_clear_source_windows): Rewrite.
4299 (tui_clear_source_windows_detail, tui_add_to_source_windows)
4300 (tui_free_all_source_wins_content): Rewrite.
4301
4302 2019-06-25 Tom Tromey <tom@tromey.com>
4303
4304 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
4305 (struct tui_data_window, struct tui_cmd_window): Declare
4306 clear_detail method.
4307 * tui/tui-data.c (tui_source_window::clear_detail)
4308 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
4309 methods.
4310 (tui_clear_win_detail): Simplify.
4311
4312 2019-06-25 Tom Tromey <tom@tromey.com>
4313
4314 * tui/tui-layout.c (make_source_window, make_disasm_window)
4315 (make_source_or_disasm_window): Remove win_info_ptr parameter.
4316 Return the new window.
4317 (show_source_disasm_command, show_data)
4318 (show_source_or_disasm_and_command): Update.
4319
4320 2019-06-25 Tom Tromey <tom@tromey.com>
4321
4322 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
4323 parameter. Return the new window.
4324 (show_source_disasm_command): Update and remove NULL check.
4325 (show_source_or_disasm_and_command): Update.
4326
4327 2019-06-25 Tom Tromey <tom@tromey.com>
4328
4329 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
4330
4331 2019-06-25 Tom Tromey <tom@tromey.com>
4332
4333 * tui/tui-data.h (struct tui_win_info): Make constructor
4334 protected. Make destructor virtual. Add initializers.
4335 (tui_source_window, tui_data_window, tui_cmd_window): New
4336 classes.
4337 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
4338 constructor. Add "type" parameter.
4339 (tui_source_window, tui_data_window, tui_cmd_window): New
4340 constructors.
4341 (tui_alloc_win_info): Instantiate the appropriate subclass.
4342
4343 2019-06-25 Tom Tromey <tom@tromey.com>
4344
4345 * tui/tui-win.c (tui_resize_all): Use delete.
4346 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
4347 destructor.
4348 (tui_free_window): Don't declare.
4349 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
4350 Update.
4351
4352 2019-06-25 Tom Tromey <tom@tromey.com>
4353
4354 * tui/tui-data.h (struct tui_win_info): Add constructor.
4355 * tui/tui-data.c (tui_alloc_win_info): Use new.
4356 (tui_free_window): Use delete.
4357
4358 2019-06-22 Tom Tromey <tom@tromey.com>
4359
4360 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
4361 declare.
4362 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
4363
4364 2019-06-22 Tom Tromey <tom@tromey.com>
4365
4366 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
4367 declare.
4368 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
4369
4370 2019-06-22 Tom de Vries <tdevries@suse.de>
4371
4372 * dwarf2read.c (create_addrmap_from_aranges)
4373 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
4374 instead of '%zu'.
4375
4376 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
4377
4378 * dwarf2read.h (dwarf2_section_info_def): Remove.
4379 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
4380 * dwarf2read.c (struct dwo_sections) <types>: Change type to
4381 std::vector<dwarf2_section_info>.
4382 (struct dwo_file) <~dwo_file>: Remove.
4383 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
4384 types field.
4385 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
4386 (dwarf2_read_debug_names): Likewise.
4387 (create_debug_types_hash_table): Change parameter type to
4388 array_view, adjust code accordingly.
4389 (dwarf2_locate_dwo_sections): Adjust to std::vector.
4390 (partial_die_info::fixup): Likewise.
4391 (determine_prefix): Likewise.
4392 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
4393
4394 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4395
4396 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
4397 gdb_bfd_ref_ptr.
4398 <~dwo_file>: Remove call to gdb_bfd_unref.
4399 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
4400 gdb_bfd_ref_ptr::get.
4401
4402 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4403
4404 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
4405 type to htab_up.
4406 * dwarf2read.c (struct dwo_file): Initialize fields.
4407 <~dwo_file>: New.
4408 (free_dwo_file): Remove, move content to ~dwo_file.
4409 (struct dwo_file_deleter): Remove.
4410 (dwo_file_up>: Remove custom deleter.
4411 (free_dwo_files): Remove.
4412 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
4413 dwo_files.
4414 (process_skeletonless_type_units): Call unique_ptr::get.
4415 (allocate_dwo_file_hash_table): Add deleter to created hash
4416 table. Change return type to htab_up.
4417 (lookup_dwo_file_slot): Don't memset dwo_file, call
4418 unique_ptr::get.
4419 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
4420 (create_dwo_unit_in_dwp_v2): Likewise.
4421 (open_and_init_dwo_file): Likewise.
4422 (free_dwo_file_from_slot): Remove.
4423
4424 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4425
4426 * dwarf2read.h (struct dwarf2_section_info) <readin,
4427 is_virtual>: Change type to bool.
4428 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
4429 true instead of 1.
4430
4431 2019-06-19 Tom Tromey <tom@tromey.com>
4432
4433 * tui/tui-data.h (tui_init_content_element): Don't declare.
4434
4435 2019-06-19 Tom Tromey <tom@tromey.com>
4436
4437 * tui/tui-data.h (tui_init_win_info): Don't declare.
4438
4439 2019-06-19 Tom de Vries <tdevries@suse.de>
4440
4441 * dwarf2read.h (abstract_to_concrete): Change type to
4442 std::unordered_map<sect_offset, std::vector<sect_offset>,
4443 gdb::hash_enum<sect_offset>>.
4444
4445 2019-06-19 Tom Tromey <tromey@adacore.com>
4446
4447 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
4448 EVAL_AVOID_SIDE_EFFECTS specially.
4449
4450 2019-06-19 Tom Tromey <tromey@adacore.com>
4451
4452 * source-cache.c (highlighter): New global.
4453 (source_cache::get_source_lines): Create a highlighter on demand.
4454
4455 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
4456
4457 * defs.h (deprecated_interactive_hook): Delete declaration.
4458 * interps.c (clear_interpreter_hooks): Remove use of
4459 deprecated_interactive_hook.
4460 * top.c (deprecated_interactive_hook): Delete definition.
4461 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
4462
4463 2019-06-18 Tom de Vries <tdevries@suse.de>
4464
4465 PR gdb/24515
4466 * dwarf2read.h (abstract_to_concrete): Change type from
4467 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
4468 std::unordered_map<sect_offset, std::vector<sect_offset>>.
4469 * dwarf2read.c (read_variable): Update.
4470 (dwarf2_fetch_die_loc_sect_off): Update.
4471
4472 2019-06-17 Tom de Vries <tdevries@suse.de>
4473
4474 PR gdb/24617
4475 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
4476 accessing parent[parent_len - 1].
4477
4478 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
4479
4480 PR gdb/24364
4481 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
4482 call dtrace_process_dof with NULL dof.
4483
4484 2019-06-16 Tom de Vries <tdevries@suse.de>
4485
4486 PR gdb/24445
4487 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
4488
4489 2019-06-16 Tom Tromey <tom@tromey.com>
4490
4491 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
4492 (make_all_visible): Use address of member.
4493
4494 2019-06-16 Tom Tromey <tom@tromey.com>
4495
4496 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
4497 (tui_free_window, free_content, free_content_elements): Remove
4498 unnecessary cast.
4499 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
4500 cast.
4501 * tui/tui-regs.c (tui_show_register_group)
4502 (tui_display_registers_from, tui_display_reg_element_at_line):
4503 Remove unnecessary cast.
4504
4505 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
4506
4507 * linux-nat.c (normal_mask): Delete.
4508 (_initialize_linux_nat): Don't initialise normal_mask.
4509
4510 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
4511
4512 PR gdb/24445
4513 * dwarf-index-write.h (write_psymtabs_to_index): Add
4514 dwz_basename parameter.
4515 * dwarf-index-write.c (write_gdbindex): Move file writing to
4516 write_gdbindex_1. Change return type void.
4517 (assert_file_size): Move up, remove filename parameter.
4518 (write_gdbindex_1): New function.
4519 (write_debug_names): Change return type to void, call
4520 assert_file_size.
4521 (struct index_wip_file): New struct.
4522 (write_psymtabs_to_index): Add dwz_basename parameter. Move
4523 file logic to index_wip_file. Write index for dwz file if
4524 needed.
4525 (save_gdb_index_command): Pass basename of dwz file, if present.
4526 * dwarf-index-cache.c (index_cache::store): Obtain and pass
4527 build-id of dwz file, if present.
4528 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
4529 (dwarf2_get_dwz_file): Likewise.
4530 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
4531 (dwarf2_get_dwz_file): Likewise.
4532
4533 2019-06-16 Tom Tromey <tom@tromey.com>
4534
4535 * coffread.c (process_coff_symbol): Use xstrdup.
4536 * value.c (create_internalvar): Use xstrdup.
4537
4538 2019-06-16 Tom Tromey <tom@tromey.com>
4539
4540 * valops.c (value_cast, value_slice): Remove unnecessary cast.
4541 * breakpoint.c (stopin_command, stopat_command)
4542 (until_break_command, decode_location_default): Remove unnecessary
4543 cast.
4544 * utils.c (subset_compare): Remove unnecessary cast.
4545 * ada-lang.c (ada_update_initial_language): Remove unnecessary
4546 cast.
4547 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
4548 cast.
4549 * infcmd.c (path_command): Remove unnecessary cast.
4550 * coffread.c (decode_type): Remove unnecessary cast.
4551 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
4552 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
4553 * tui/tui-stack.c (tui_show_locator_content)
4554 (tui_show_frame_info): Remove unnecessary cast.
4555 * tui/tui-win.c (tui_scroll_forward_command)
4556 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
4557 (parse_scrolling_args): Remove unnecessary cast.
4558 * tui/tui-data.c (init_win_info, tui_del_window)
4559 (tui_free_window, tui_del_data_windows, tui_free_data_content)
4560 (free_content_elements): Remove unnecessary cast.
4561 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
4562 unnecessary cast.
4563 * tui/tui-source.c (tui_set_source_content)
4564 (tui_vertical_source_scroll): Remove unnecessary cast.
4565 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
4566 cast.
4567 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
4568 * tui/tui-regs.c (tui_display_registers_from)
4569 (tui_display_register): Remove unnecessary cast.
4570 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
4571 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
4572 (make_visible): Remove unnecessary cast.
4573 * tui/tui-winsource.c (tui_erase_source_content)
4574 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
4575 unnecessary cast.
4576 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
4577 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
4578 * stabsread.c (read_type, read_array_type, read_range_type):
4579 Remove unnecessary cast.
4580 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
4581 (parse_symbol, parse_type, upgrade_type, parse_external)
4582 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
4583 unnecessary cast.
4584 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
4585
4586 2019-06-16 Tom Tromey <tom@tromey.com>
4587
4588 * tui/tui-data.c (tui_alloc_generic_win_info)
4589 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
4590 checks.
4591
4592 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
4593 Andrew Burgess <andrew.burgess@embecosm.com>
4594
4595 * f-typeprint.c (f_print_type): Don't return early for not
4596 associated or not allocated types.
4597 (f_type_print_varspec_suffix): Add print_rank parameter and print
4598 ranks of array types in case they dangling.
4599 (f_type_print_base): Add print_rank parameter.
4600
4601 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4602
4603 * NEWS: Mention new MI commands.
4604 * break-catch-throw.c (enum exception_event_kind): Move to
4605 breakpoint.h.
4606 (print_mention_exception_catchpoint): Output text as a single
4607 message.
4608 (catch_exception_command_1): Rename to...
4609 (catch_exception_event): ...this, make non-static, update header
4610 command, and change some parameter types.
4611 (catch_catch_command): Update for changes to
4612 catch_exception_command_1.
4613 (catch_throw_command): Likewise.
4614 (catch_rethrow_command): Likewise.
4615 * breakpoint.c (enum exception_event_kind): Delete.
4616 * breakpoint.h (enum exception_event_kind): Moved here from
4617 break-catch-throw.c.
4618 (catch_exception_event): Declare.
4619 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
4620 (mi_cmd_catch_throw): New function.
4621 (mi_cmd_catch_rethrow): New function.
4622 (mi_cmd_catch_catch): New function.
4623 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
4624 'catch-catch' entries.
4625 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
4626 (mi_cmd_catch_rethrow): Declare.
4627 (mi_cmd_catch_catch): Declare.
4628
4629 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4630
4631 * annotate.c (annotate_source_line): Change return type to void,
4632 update implementation to match.
4633 * annotate.h (annotate_source_line): Change return type to void,
4634 update header comment.
4635 * stack.c (print_frame_info): Don't change what frame information
4636 is printed based on whether annotations are on or not.
4637
4638 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4639
4640 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
4641 (annotate_source): Make static.
4642 (annotate_source_line): Moved from source.c and renamed from
4643 identify_source_line. Update the return type.
4644 * annotate.h (annotate_source): Delete declaration.
4645 (annotate_source_line): Declaration moved from source.h, and
4646 renamed from identify_source_line. Return type updated.
4647 * source.c (identify_source_line): Moved to annotate.c and renamed
4648 to annotate_source_line.
4649 (info_line_command): Remove check of annotation_level.
4650 * source.h (identify_source_line): Move declaration to annotate.h
4651 and rename to annotate_source_line.
4652 * stack.c: Add 'annotate.h' include.
4653 (print_frame_info): Remove check of annotation_level before
4654 calling annotate_source_line.
4655
4656 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4657
4658 * source-cache.c (source_cache::get_plain_source_lines): Use
4659 open_source_file_with_line_charpos instead of just
4660 open_source_file, remove call to find_source_lines.
4661 (source_cache::get_source_lines): Likewise.
4662 * source.c (find_source_lines): Make static.
4663 (get_filename_and_charpos): Renamed into...
4664 (open_source_file_with_line_charpos): ..this along with changes to
4665 return a scoped_fd, and some other minor clean ups.
4666 (identify_source_line): Use open_source_file_with_line_charpos.
4667 (search_command_helper): Use open_source_file_with_line_charpos
4668 instead of just open_source_file, remove call to
4669 find_source_lines.
4670 * source.h (open_source_file_with_line_charpos): Declare new
4671 function.
4672 (find_source_lines): Delete declaration.
4673
4674 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4675
4676 * source.c (get_filename_and_charpos): Remove fullname
4677 parameter.
4678 (identify_source_line): Update call to get_filename_and_charpos.
4679
4680 2019-06-14 Tom Tromey <tromey@adacore.com>
4681
4682 PR gdb/24502:
4683 * ui-style.h (skip_ansi_escape): Update comment.
4684 * ui-file.h (class no_terminal_escape_file): New class.
4685 * ui-file.c (no_terminal_escape_file::write)
4686 (no_terminal_escape_file::puts): New methods.
4687 * cli/cli-logging.c (handle_redirections): Use
4688 no_terminal_escape_file.
4689
4690 2019-06-14 Tom Tromey <tromey@adacore.com>
4691
4692 * NEWS: Move convenience variable news above Python news.
4693
4694 2019-06-14 Tom Tromey <tom@tromey.com>
4695
4696 * gnulib: Move directory to top-level.
4697 * configure.ac: Don't configure gnulib.
4698 * configure: Rebuild.
4699 * common/common-defs.h: Use new path to gnulib.
4700 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
4701 (GNULIB_H): Remove.
4702 (INCGNU): Look in new gnulib location.
4703 (HFILES_NO_SRCDIR): Remove gnulib files.
4704 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
4705 (generated_files): Remove GNULIB_H.
4706 ($(LIBGNU), all-lib): Remove targets.
4707 (distclean): Don't mention GNULIB_BUILDDIR.
4708 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
4709
4710 2019-06-14 Tom Tromey <tromey@adacore.com>
4711
4712 * symfile.c (add_symbol_file_command): Remove obsolete comment.
4713 Warn if symbol file does not provide any symbols.
4714
4715 2019-06-14 Tom Tromey <tromey@adacore.com>
4716
4717 * source.c (find_and_open_source): Respect basenames_may_differ.
4718
4719 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
4720
4721 * annotate.c (annotate_breakpoints_invalid): Make use of
4722 scoped_restore_terminal_state.
4723 (annotate_frames_invalid): Likewise.
4724
4725 2019-06-14 Tom Tromey <tromey@adacore.com>
4726
4727 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
4728 allow assignment to an internalvar.
4729
4730 2019-06-14 Tom Tromey <tromey@adacore.com>
4731
4732 * ada-lex.l: Allow "_" in attribute names.
4733
4734 2019-06-14 Tom Tromey <tromey@adacore.com>
4735
4736 PR gdb/24653:
4737 * regcache.c (registers_changed): Don't call alloca.
4738 * top.c (execute_command): Don't call alloca.
4739
4740 2019-06-13 Pedro Alves <palves@redhat.com>
4741
4742 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
4743 'expression'. When parsing an expression, error out if there's
4744 junk after "unlimited".
4745 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
4746 (do_set_command): Adjust calls to is_unlimited_literal.
4747
4748 2019-06-13 Pedro Alves <palves@redhat.com>
4749
4750 * compile/compile.c (make_compile_options_def_group): Add braces
4751 around array_view initializer.
4752 * thread.c (make_thread_apply_all_options_def_group)
4753 (make_thread_apply_all_options_def_group): Likewise.
4754
4755 2019-06-13 Pedro Alves <palves@redhat.com>
4756
4757 * NEWS (New commands): Mention "maint test-options
4758 require-delimiter", "maint test-options unknown-is-error", "maint
4759 test-options unknown-is-operand" and "maint show
4760 test-options-completion-result".
4761 (New command options, command completion): New section.
4762 (Completion improvements): New section.
4763 Mention that you can abbreviate "unlimited".
4764
4765 2019-06-13 Pedro Alves <palves@redhat.com>
4766
4767 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
4768 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
4769 * unittests/cli-utils-selftests.c (test_parse_flags)
4770 (test_parse_flags_qcs): Delete.
4771 (test_cli_utils): Don't call deleted functions.
4772
4773 2019-06-13 Pedro Alves <palves@redhat.com>
4774
4775 * thread.c: Include "cli/cli-option.h".
4776 (tp_array_compar_ascending): Global.
4777 (tp_array_compar): Delete function.
4778 (tp_array_compar_ascending, tp_array_compar_descending): New
4779 functions.
4780 (ascending_option_def, qcs_flag_option_def)
4781 (thr_qcs_flags_option_defs)
4782 (make_thread_apply_all_options_def_group)
4783 (make_thread_apply_options_def_group): New.
4784 (thread_apply_all_command): Use gdb::option::process_options.
4785 (thread_apply_command_completer)
4786 (thread_apply_all_command_completer): New.
4787 (thread_apply_command): Use gdb::option::process_options.
4788 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
4789 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
4790 to generate help text of "thread apply". Adjust "taas"'s help.
4791 * tid-parse.c (tid_range_parser::in_thread_range): New method.
4792 * tid-parse.h (tid_range_parser::in_thread_range): New method.
4793
4794 2019-06-13 Pedro Alves <palves@redhat.com>
4795
4796 * thread.c (thread_apply_command): Check for invalid TID with
4797 isdigit instead of !isalpha.
4798
4799 2019-06-13 Pedro Alves <palves@redhat.com>
4800
4801 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
4802 (validate_flags_qcs): New.
4803 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
4804 (validate_flags_qcs): Declare.
4805 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
4806 (make_frame_apply_options_def_group): New.
4807 (frame_apply_command_count): Process options with
4808 gdb::option::process_options.
4809 (frame_apply_completer): New.
4810 (frame_apply_level_completer, frame_apply_all_completer)
4811 (frame_apply_completer): New.
4812 (_initialize_stack): Update help of "frame apply", "frame apply
4813 level", "frame apply all" and "faas" to mention supported options
4814 and install command completers.
4815 * stack.h (frame_apply_all_completer): Declare.
4816 * thread.c: Include "stack.h".
4817 (tfaas_command): Add "--".
4818 (_initialize_thread): Update help "tfaas" to mention supported
4819 options and install command completer.
4820
4821 2019-06-13 Pedro Alves <palves@redhat.com>
4822
4823 * completer.c (complete_nested_command_line): New.
4824 (gdb_completion_word_break_characters_throw): Add assertion.
4825 * completer.h (complete_nested_command_line): Declare.
4826
4827 2019-06-13 Pedro Alves <palves@redhat.com>
4828
4829 * stack.c (parse_backtrace_qualifiers): New.
4830 (backtrace_command): Use it.
4831 (backtrace_command_completer): Complete on qualifiers.
4832
4833 2019-06-13 Pedro Alves <palves@redhat.com>
4834
4835 * frame.c: Include "cli/cli-option.h.
4836 (user_set_backtrace_options): New.
4837 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
4838 Delete.
4839 (get_prev_frame): Adjust.
4840 (boolean_option_def, uinteger_option_def)
4841 (set_backtrace_option_defs): New.
4842 (_initialize_frame): Adjust and use
4843 gdb::option::add_setshow_cmds_for_options to install "set
4844 backtrace past-main" and "set backtrace past-entry".
4845 * frame.h: Include "cli/cli-option.h".
4846 (struct frame_print_options): Forward declare.
4847 (print_frame_arguments_all, print_frame_arguments_scalars)
4848 (print_frame_arguments_none): Declare.
4849 (print_entry_values): Delete declaration.
4850 (struct frame_print_options, user_frame_print_options): New.
4851 (struct set_backtrace_options): New.
4852 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
4853 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
4854 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
4855 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
4856 (list_args_or_locals): Add frame_print_options parameter.
4857 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
4858 * python/py-framefilter.c (enumerate_args): Pass down
4859 USER_FRAME_PRINT_OPTIONS.
4860 * stack.c: Include "cli/cli-option.h".
4861 (print_frame_arguments_all, print_frame_arguments_scalars)
4862 (print_frame_arguments_none): Declare.
4863 (print_raw_frame_arguments, print_entry_values): Delete.
4864 (user_frame_print_options): New.
4865 (boolean_option_def, enum_option_def, frame_print_option_defs):
4866 New.
4867 (struct backtrace_cmd_options): New.
4868 (bt_flag_option_def): New.
4869 (backtrace_command_option_defs): New.
4870 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
4871 (print_frame_arg, read_frame_arg, print_frame_args)
4872 (print_frame_info, print_frame): Add frame_print_options parameter
4873 and use it.
4874 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
4875 (backtrace_command_1): Add frame_print_options and
4876 backtrace_cmd_options parameters and use them.
4877 (make_backtrace_options_def_group): New.
4878 (backtrace_command): Process command options with
4879 gdb::option::process_options.
4880 (backtrace_command_completer): New.
4881 (_initialize_stack): Extend "backtrace"'s help to mention
4882 supported options. Install completer for "backtrace".
4883 Install some settings commands with add_setshow_cmds_for_options.
4884
4885 2019-06-13 Pedro Alves <palves@redhat.com>
4886
4887 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
4888 and that "set/show print raw frame-arguments" are now deprecated.
4889
4890 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
4891 command.
4892 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
4893 * stack.c (_initialize_stack): Install "set/show print
4894 raw-frame-arguments", and deprecate "set/show print raw
4895 frame-arguments".
4896 * valprint.c (_initialize_valprint): Deprecate "set/show print
4897 raw".
4898
4899 2019-06-13 Pedro Alves <palves@redhat.com>
4900
4901 * compile/compile.c (struct compile_options): New.
4902 (compile_flag_option_def, compile_command_option_defs)
4903 (make_compile_options_def_group): New.
4904 (compile_file_command): Handle options with
4905 gdb::option::process_options.
4906 (compile_file_command_completer): New function.
4907 (compile_code_command): Handle options with
4908 gdb::option::process_options.
4909 (compile_code_command_completer): New function.
4910 (_initialize_compiler): Install completers for "compile code" and
4911 "compile file". Mention available options in "compile code" and
4912 "compile code"'s help.
4913 * completer.c (advance_to_completion_word): New, factored out from
4914 ...
4915 (advance_to_expression_complete_word_point): ... this.
4916 (advance_to_filename_complete_word_point): New.
4917 * completer.h (advance_to_filename_complete_word_point): New
4918 declaration.
4919
4920 2019-06-13 Pedro Alves <palves@redhat.com>
4921
4922 * compile/compile.c: Include "cli/cli-option.h".
4923 (compile_print_value): Scope data pointer is now a
4924 value_print_options pointer; adjust.
4925 (compile_print_command): Process options. Scope data pointer is
4926 now a value_print_options pointer; adjust.
4927 (_initialize_compile): Update "compile print"'s help to include
4928 supported options. Install a completer for "compile print".
4929 * cp-valprint.c (show_vtblprint, show_objectprint)
4930 (show_static_field_print): Delete.
4931 (_initialize_cp_valprint): Don't install "set print
4932 static-members", "set print vtbl", "set print object" here.
4933 * printcmd.c: Include "cli/cli-option.h" and
4934 "common/gdb_optional.h".
4935 (print_command_parse_format): Rework to fill in a
4936 value_print_options instead of a format_data.
4937 (print_value): Change parameter type from format_data pointer to
4938 value_print_options reference. Adjust.
4939 (print_command_1): Process options. Adjust to pass down a
4940 value_print_options.
4941 (print_command_completer): New.
4942 (_initialize_printcmd): Install print_command_completer as
4943 handle_brkchars completer for the "print" command. Update
4944 "print"'s help to include supported options.
4945 * valprint.c: Include "cli/cli-option.h".
4946 (show_vtblprint, show_objectprint, show_static_field_print): Moved
4947 here from cp-valprint.c.
4948 (boolean_option_def, uinteger_option_def)
4949 (value_print_option_defs, make_value_print_options_def_group):
4950 New. Use gdb::option::add_setshow_cmds_for_options to install
4951 "set print elements", "set print null-stop", "set print repeats",
4952 "set print pretty", "set print union", "set print array", "set
4953 print address", "set print symbol", "set print array-indexes".
4954 * valprint.h: Include <string> and "cli/cli-option.h".
4955 (make_value_print_options_def_group): Declare.
4956 (print_value): Change parameter type from format_data pointer to
4957 value_print_options reference.
4958 (print_command_completer): Declare.
4959
4960 2019-06-13 Pedro Alves <palves@redhat.com>
4961
4962 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
4963 (COMMON_SFILES): Add maint-test-settings.c.
4964 * cli/cli-decode.c (boolean_enums): New global, factored out from
4965 ...
4966 (add_setshow_boolean_cmd): ... here.
4967 * cli/cli-decode.h (boolean_enums): Declare.
4968 * cli/cli-option.c: New file.
4969 * cli/cli-option.h: New file.
4970 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
4971 factored out from ...
4972 (parse_cli_boolean_value(const char *)): ... this.
4973 (is_unlimited_literal): Change parameter type to pointer to
4974 pointer. Adjust and advance ARG pointer.
4975 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
4976 (parse_cli_var_enum): New, factored out from ...
4977 (do_set_command): ... this. Adjust.
4978 * cli/cli-setshow.h (parse_cli_boolean_value)
4979 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
4980 (parse_cli_var_enum): Declare.
4981 * cli/cli-utils.c: Include "cli/cli-option.h".
4982 (get_ulongest): New.
4983 * cli/cli-utils.h (get_ulongest): Declare.
4984 (check_for_argument): New overloads.
4985 * maint-test-options.c: New file.
4986
4987 2019-06-13 Pedro Alves <palves@redhat.com>
4988
4989 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
4990 parse a range if "-" is at the end of the string.
4991
4992 2019-06-13 Pedro Alves <palves@redhat.com>
4993
4994 * cli/cli-setshow.c (parse_auto_binary_operation)
4995 (parse_cli_boolean_value): Don't allow "o".
4996
4997 2019-06-13 Pedro Alves <palves@redhat.com>
4998
4999 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
5000 * NEWS: Mention maint test-settings KIND.
5001 * maint-test-settings.c: New file.
5002
5003 2019-06-13 Pedro Alves <palves@redhat.com>
5004
5005 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
5006 completer.
5007 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
5008 "set" completers.
5009
5010 2019-06-13 Pedro Alves <palves@redhat.com>
5011
5012 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
5013 after item.
5014
5015 2019-06-13 Pedro Alves <palves@redhat.com>
5016
5017 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
5018
5019 2019-06-13 Pedro Alves <palves@redhat.com>
5020
5021 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
5022 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
5023 call.
5024 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
5025 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
5026 calls.
5027 (check_for_argument): Skip spaces after argument.
5028
5029 2019-06-13 Pedro Alves <palves@redhat.com>
5030
5031 * thread.c (thread_apply_command): Adjust TID parsing.
5032 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
5033 detected before end of string.
5034 (tid_is_in_list): Error out if LIST is invalid.
5035
5036 2019-06-13 Pedro Alves <palves@redhat.com>
5037
5038 * completer.c (complete_line_internal_1): Rewind completion word
5039 point.
5040 (completion_tracker::advance_custom_word_point_by): Change
5041 parameter type to int.
5042 * completer.h (completion_tracker::advance_custom_word_point_by):
5043 Likewise.
5044
5045 2019-06-13 Pedro Alves <palves@redhat.com>
5046
5047 * completer.c (advance_to_completion_word): Handle delimiters.
5048
5049 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
5050
5051 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
5052
5053 2019-06-11 Tom Tromey <tom@tromey.com>
5054
5055 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
5056 (xmalloc_failed): Move to alloc.c.
5057 * alloc.c: New file.
5058 * Makefile.in (COMMON_SFILES): Add alloc.c.
5059
5060 2019-06-11 Tom Tromey <tom@tromey.com>
5061
5062 * nat/linux-waitpid.c: Don't include server.h.
5063 (linux_debug): Remove.
5064 (my_waitpid): Update.
5065
5066 2019-06-11 Tom Tromey <tromey@adacore.com>
5067
5068 * infcall.c (_initialize_infcall): Remove trailing newline from
5069 help.
5070 * user-regs.c (_initialize_user_regs): Remove trailing newline
5071 from help.
5072 * typeprint.c (_initialize_typeprint): Remove trailing newline
5073 from help.
5074 * reverse.c (_initialize_reverse): Remove trailing newlines from
5075 help.
5076 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
5077 from help.
5078 * language.c (add_set_language_command): Remove trailing newline
5079 from help.
5080 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
5081 help.
5082 * disasm.c (_initialize_disasm): Remove trailing newline from
5083 help.
5084 * top.c (init_main): Remove trailing newline from help.
5085 * interps.c (_initialize_interpreter): Remove trailing newline
5086 from help.
5087 * btrace.c (_initialize_btrace): Remove trailing newlines from
5088 help.
5089 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
5090 from help.
5091 * python/python.c (_initialize_python): Remove trailing newline
5092 from help.
5093 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
5094 help.
5095 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
5096 from help. Reformat some text.
5097 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
5098 from help.
5099 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
5100 newline from help.
5101
5102 2019-06-11 Tom Tromey <tromey@adacore.com>
5103
5104 * darwin-nat.c (darwin_decode_exception_message)
5105 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
5106
5107 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
5108
5109 * valops.c (value_slice): Check for not allocated or not
5110 associated values.
5111
5112 2019-06-10 Tom de Vries <tdevries@suse.de>
5113
5114 PR gdb/24618
5115 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
5116 sure an empty slot (defined by a 32-bit zero pair) is recognized as
5117 invalid.
5118
5119 2019-06-10 Tom de Vries <tdevries@suse.de>
5120
5121 PR gdb/24611
5122 * linespec.c (linespec_lexer_lex_string): Remove incorrect
5123 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
5124
5125 2019-06-10 Tom de Vries <tdevries@suse.de>
5126
5127 PR symtab/24545
5128 * symtab.c (struct demangled_name_entry): Add language field.
5129 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
5130 static minimal symbol". Set and use language field.
5131
5132 2019-06-10 Tom Tromey <tromey@adacore.com>
5133
5134 * ada-lang.c (_initialize_ada_language): Update help text.
5135
5136 2019-06-10 Tom Tromey <tromey@adacore.com>
5137
5138 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
5139 with a newline.
5140 * guile/guile.c (handle_boot_error): Don't end warning with a
5141 newline.
5142 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
5143 warning with a newline.
5144 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
5145 newline.
5146 (s12z_frame_cache): Likewise.
5147 * dwarf-index-cache.c (index_cache::store): Don't end warning with
5148 a newline.
5149 * solib-svr4.c (disable_probes_interface): Don't end warning with
5150 a newline.
5151 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
5152 newline.
5153 * python/python.c (do_finish_initialization): Don't end warning
5154 with a newline.
5155
5156 2019-06-10 Tom Tromey <tom@tromey.com>
5157
5158 * python/py-breakpoint.c (gdbpy_breakpoint_created)
5159 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
5160 gdbpy_enter.
5161
5162 2019-06-10 Tom Tromey <tromey@adacore.com>
5163
5164 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
5165 data.
5166 (elf_new_init): Don't call stabsread_new_init.
5167 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
5168 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
5169 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
5170
5171 2019-06-10 Tom de Vries <tdevries@suse.de>
5172
5173 PR symtab/16264
5174 PR symtab/24517
5175 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
5176
5177 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
5178
5179 * source.c (find_and_open_source): Also rewrite relative file
5180 names.
5181
5182 2019-04-26 Amos Bird <amosbird@gmail.com>
5183
5184 * annotate.c (annotate_thread_exited): Add "thread-exited"
5185 annotation.
5186
5187 2019-06-06 Tom Tromey <tromey@adacore.com>
5188
5189 * maint.h (class scoped_command_stats): Use
5190 DISABLE_COPY_AND_ASSIGN.
5191 <print_time>: New method.
5192 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
5193 print_time.
5194 (scoped_command_stats::print_time): New method.
5195
5196 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5197
5198 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
5199 instructions of lengths 6 or 8 bytes.
5200
5201 2019-06-04 Pedro Alves <palves@redhat.com>
5202
5203 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
5204
5205 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
5206 * breakpoint.c (condition_completer): Likewise.
5207 * cli/cli-dump.c (scan_expression): Likewise.
5208 * common/filestuff.c (mkdir_recursive): Likewise.
5209 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
5210 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
5211 (gdb_abspath): Likewise.
5212 * compile/compile-cplus-types.c
5213 (compile_cplus_instance::decl_name): Likewise.
5214 * completer.c (complete_explicit_location):
5215 (signal_completer, reg_or_group_completer_1): Likewise.
5216 * cp-support.c (cp_remove_params_if_any): Likewise.
5217 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
5218 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
5219 * infcmd.c (strip_bg_char): Likewise.
5220 * linespec.c (copy_token_string): Likewise.
5221 * mi/mi-main.c (output_cores): Likewise.
5222 * psymtab.c (psymtab_search_name):
5223 * symfile.c (test_set_ext_lang_command): Likewise.
5224 * target.c (target_fileio_read_stralloc): Likewise.
5225 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
5226 * value.c (complete_internalvar): Likewise.
5227
5228 2019-06-04 Christian Biesinger <cbiesinger@google.com>
5229
5230 Add objfile property to gdb.Type.
5231 * NEWS: Mention Python API addition.
5232 * python/py-type.c (typy_get_objfile): New method.
5233
5234 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5235
5236 * NEWS: Mention the new set|show style [title|highlight].
5237 Mention changes to "show style", "help" and "apropos".
5238
5239 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5240
5241 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
5242 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
5243 instead of print_help_for_command.
5244 (print_doc_of_command): New function.
5245 (help_list): Add 'apropos -v word' suggestion.
5246 (print_help_for_command): Style the command name using title style.
5247 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
5248 (_initialize_cli_cmds): Describe -v in apropos_command help.
5249
5250 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5251
5252 * cli/cli-style.h (cli_style_option): Add name in constructor,
5253 add m_name class member, add constructor with intensity,
5254 add name class function.
5255 (cli_style_option::add_setshow_commands): Remove name argument.
5256 (highlight_style, title_style): New styles.
5257 * cli/cli-style.c (do_show): New function that shows a style
5258 characteristic styling the style name with itself.
5259 (set_style_name): New function.
5260 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
5261 Update all callers according to the changes in cli/cli-style.h.
5262 * utils.h (fputs_highlighted): New function.
5263 * utils.c (fputs_highlighted): Likewise.
5264
5265 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5266
5267 * NEWS: Mention new pipe command and new convenience variables.
5268
5269 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5270
5271 * cli/cli-cmds.c (pipe_command): New function.
5272 (_initialize_cli_cmds): Call add_com for pipe_command.
5273 Define | as an alias for pipe.
5274 (exit_status_set_internal_vars): New function.
5275 (shell_escape): Call exit_status_set_internal_vars.
5276 cli/cli-decode.c (find_command_name_length): Recognize | as
5277 a single character command.
5278
5279 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5280
5281 * gdbcmd.h (execute_command_to_ui_file): New declaration.
5282 top.c (execute_command_to_ui_file): New function, mostly a copy
5283 of execute_command_to_string.
5284 (execute_command_to_string): Implement by calling
5285 execute_command_to_ui_file.
5286
5287 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5288
5289 * top.h (saved_command_line): Remove declaration.
5290 * top.c (previous_saved_command_line, previous_repeat_arguments):
5291 New variables.
5292 (saved_command_line): Make static, define together with other
5293 'repeat variables'.
5294 (dont_repeat): Clear repeat_arguments.
5295 (repeat_previous, get_saved_command_line, save_command_line):
5296 New functions.
5297 (gdb_init): Initialize saved_command_line
5298 and previous_saved_command_line.
5299 * main.c (captured_main_1): Remove saved_command_line initialization.
5300 * event-top.c (handle_line_of_input): Update to use
5301 the new 'repeat' related functions instead of direct access to
5302 saved_command_line.
5303 * command.h (repeat_previous, get_saved_command_line,
5304 save_command_line): New declarations.
5305 (dont_repeat): Add comment.
5306
5307 2019-05-30 Tom Tromey <tromey@adacore.com>
5308
5309 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
5310 Fix comment.
5311 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
5312
5313 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
5314
5315 PR cli/24587
5316 * completer.c (complete): Initialize variable word.
5317
5318 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
5319
5320 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
5321 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
5322 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
5323 'body' is NULL to the outter 'if', protecting the '!is_define'
5324 situation as well.
5325
5326 2019-05-29 Tom Tromey <tromey@adacore.com>
5327
5328 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
5329 (dwarf_unknown): New function.
5330 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
5331 (dwarf_type_encoding_name): Use dwarf_unknown.
5332
5333 2019-05-29 Tom Tromey <tromey@adacore.com>
5334
5335 PR c++/20020:
5336 * cp-valprint.c (cp_print_value_fields): Call
5337 cp_print_static_field inside "try".
5338
5339 2019-05-29 Tom Tromey <tromey@adacore.com>
5340
5341 * inflow.c (struct terminal_info): Add default operator=.
5342 * configure: Rebuild.
5343 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
5344 -Wdeprecated-copy-dtor, -Wredundant-move.
5345
5346 2019-05-29 Tom Tromey <tromey@adacore.com>
5347
5348 * NEWS: Add entry.
5349 * infcmd.c (print_return_value_1): Handle finish_print
5350 option.
5351 (show_print_finish): New function.
5352 (_initialize_infcmd): Add "set/show print finish" commands.
5353 * valprint.c (user_print_options): Initialize new member.
5354 * valprint.h (struct value_print_options) <finish_print>: New
5355 member.
5356
5357 2019-05-28 Tom Tromey <tromey@adacore.com>
5358
5359 * ada-lang.c (ada_remove_Xbn_suffix)
5360 (find_old_style_renaming_symbol)
5361 (parse_old_style_renaming): Remove.
5362 (ada_find_renaming_symbol): Don't call
5363 find_old_style_renaming_symbol.
5364 (ada_is_renaming_symbol): Rename from
5365 ada_find_renaming_symbol. Remove "block" parameter. Return
5366 bool. Now static.
5367 (ada_read_var_value): Update and simplify.
5368 * ada-exp.y (write_var_or_type): Remove old code.
5369
5370 2019-05-28 Alan Hayward <alan.hayward@arm.com>
5371
5372 * event-top.c: Remove include comment.
5373 * inflow.c (class scoped_ignore_sigttou): Move from here...
5374 * inflow.h (class scoped_ignore_sigttou): ...to here.
5375 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
5376 * top.c: Remove include comment.
5377
5378 2019-05-27 Tom Tromey <tom@tromey.com>
5379
5380 * NEWS: Fix typo.
5381
5382 2019-05-22 Tom Tromey <tromey@adacore.com>
5383
5384 * target.c (target_follow_exec): Constify parameter.
5385 * target-delegates.c: Rebuild.
5386 * remote.c (remote_target::follow_exec): Constify parameter.
5387 * infrun.c (follow_exec): Constify parameter.
5388 * target.h (struct target_ops) <follow_exec>: Constify parameter.
5389 (target_follow_exec): Likewise.
5390
5391 2019-05-22 Alan Hayward <alan.hayward@arm.com>
5392
5393 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
5394 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
5395
5396 2019-05-22 Alan Hayward <alan.hayward@arm.com>
5397
5398 * NEWS: Add debugredirect and testsuite sections.
5399
5400 2019-05-22 Simon Cook <simon.cook@embecosm.com>
5401
5402 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
5403 target descriptions using exclusively floating point register name
5404 aliases.
5405
5406 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
5407
5408 PR gdb/18644:
5409 * f-lang.c (build_fortran_types): Handle the case where
5410 gdbarch_floatformat_for_type returns a nullptr.
5411
5412 2019-05-21 Tom de Vries <tdevries@suse.de>
5413
5414 PR cli/24587
5415 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
5416
5417 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
5418
5419 PR gdb/18644:
5420 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
5421 16-byte floats.
5422 * i386-tdep.c (i386_floatformat_for_type): Use
5423 floatformats_ia64_quad for the 16-byte floating point component
5424 within a fortran 32-byte complex number.
5425
5426 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
5427
5428 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
5429 delete default constructor.
5430 (find_partial_die): Update to return const struct.
5431 (partial_die_parent_scope): Move variable declaration into scope
5432 of its use and change its type to auto.
5433 (guess_partial_die_structure_name): Likewise.
5434 (partial_die_info::fixup): Likewise.
5435
5436 2019-05-17 Tom Tromey <tromey@adacore.com>
5437
5438 * source.c (find_and_open_source): Remove cast.
5439
5440 2019-05-17 Tom Tromey <tromey@adacore.com>
5441
5442 * annotate.c (annotate_source): Make "filename" const.
5443 * annotate.h (annotate_source): Use const.
5444
5445 2019-05-17 Alan Hayward <alan.hayward@arm.com>
5446
5447 * disasm.c (set_disassembler_options): Send errors to stderr.
5448
5449 2019-05-17 Alan Hayward <alan.hayward@arm.com>
5450
5451 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
5452 (cli_interp_base::set_logging): Check debug_redirect.
5453 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
5454 * cli/cli-logging.c (debug_redirect): Add static variable.
5455 (pop_output_files): Add default param.
5456 (handle_redirections): Print debug setting.
5457 (show_logging_command): Likewise.
5458 (_initialize_cli_logging): Add debugredirect command.
5459 * interps.c (current_interp_set_logging): Add debug_redirect
5460 parameter.
5461 * interps.h (set_logging): Add debug_redirect parameter.
5462 (current_interp_set_logging): Likewise.
5463 * mi/mi-common.h: Likewise.
5464 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
5465
5466 2019-05-17 Alan Hayward <alan.hayward@arm.com>
5467 Tom Tromey <tromey@adacore.com>
5468
5469 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
5470 directly.
5471 * cli/cli-interp.h (make_logging_output): Remove declaration.
5472 * cli/cli-logging.c (make_logging_output): Remove function.
5473 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
5474 directly.
5475 * ui-file.c (tee_file::tee_file): Remove bools.
5476 (tee_file::~tee_file): Remove deletes.
5477 * ui-file.h (tee_file): Remove bools.
5478
5479 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
5480
5481 * mi/mi-cmds.h (mi_cmd_complete): New function.
5482 * mi/mi-main.c (mi_cmd_complete): Likewise.
5483 * mi/mi-cmds.c: Define new MI command -complete.
5484 * NEWS: Mention new -complete command.
5485
5486 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
5487
5488 * completer.h (complete): New function.
5489 * completer.c (complete): Likewise.
5490 * cli/cli-cmds.c: (complete_command): Update to use new complete()
5491 function defined in completer.h.
5492
5493 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
5494
5495 * MAINTAINERS (Write After Approval): Add myself.
5496
5497 2019-05-17 Tom de Vries <tdevries@suse.de>
5498
5499 PR gdb/24094
5500 * dwarf2read.c (struct cu_partial_die_info): New struct.
5501 (find_partial_die): Return cu_partial_die_info.
5502 (partial_die_parent_scope, guess_partial_die_structure_name)
5503 (partial_die_info::fixup): Handle new return type of find_partial_die.
5504
5505 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5506
5507 * stap-probe.c (stap_parse_register_operand): Make "regname" an
5508 "std::string", simplifying the algorithm.
5509
5510 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5511
5512 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
5513 (stap_static_probe_ops::get_probes): Likewise.
5514
5515 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5516
5517 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
5518 '-')" and "else if".
5519 (stap_parse_single_operand): Join checks for
5520 "gdbarch_stap_parse_special_token_p" and
5521 "gdbarch_stap_parse_special_token" in the same "if" statement.
5522 Invert check when verifying for operation on register
5523 displacement.
5524
5525 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5526
5527 * stap-probe.c (stap_get_opcode): Update comment.
5528 (stap_get_expected_argument_type): Likewise.
5529 (handle_stap_probe): Likewise.
5530
5531 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5532
5533 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
5534 return type to 'bool'. Adjust comment. Use 'bool' when
5535 appropriate.
5536 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5537 * stap-probe.c (stap_parse_argument_1): Likewise.
5538 (stap_is_operator): Likewise.
5539 (stap_is_generic_prefix): Likewise.
5540 (stap_is_register_prefix): Likewise.
5541 (stap_is_register_indirection_prefix): Likewise.
5542 (stap_is_integer_prefix): Likewise.
5543 (stap_generic_check_suffix): Likewise.
5544 (stap_check_integer_suffix): Likewise.
5545 (stap_check_register_suffix): Likewise.
5546 (stap_check_register_indirection_suffix): Likewise.
5547 (stap_parse_register_operand): Likewise.
5548 (stap_parse_single_operand): Likewise.
5549 (stap_parse_argument_1): Likewise.
5550 (stap_probe::get_argument_count): Likewise.
5551 (stap_is_operator): Likewise.
5552
5553 2019-05-16 Tom Tromey <tromey@adacore.com>
5554
5555 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
5556 keyword to foreach.
5557
5558 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
5559
5560 * linux-thread-db.c (try_thread_db_load_1): Change return type
5561 to bool.
5562 (try_thread_db_load): Likewise.
5563 (try_thread_db_load_from_pdir_1): Likewise.
5564 (try_thread_db_load_from_pdir): Likewise.
5565 (try_thread_db_load_from_sdir): Likewise.
5566 (try_thread_db_load_from_dir): Likewise.
5567 (thread_db_load_search): Likewise.
5568 (has_libpthread): Likewise.
5569 (thread_db_load): Likewise.
5570
5571 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
5572
5573 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
5574 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
5575 NULL, and complain/return if that's the case.
5576
5577 2019-05-15 John Darrington <john@darrington.wattle.id.au>
5578
5579 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
5580 (advance, posn, abstract_read_memory): New functions.
5581 [struct mem_read_abstraction]: New struct.
5582 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
5583
5584 2019-05-14 Tom Tromey <tromey@adacore.com>
5585
5586 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
5587 value is not lval_memory.
5588
5589 2019-05-14 Tom Tromey <tromey@adacore.com>
5590
5591 * solib.c (info_sharedlibrary_command): Style the file name.
5592
5593 2019-05-14 Alan Hayward <alan.hayward@arm.com>
5594
5595 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
5596 (aarch64_vnv_type): Likewise.
5597 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
5598 * common/tdesc.c: Likewise.
5599 * common/tdesc.h (enum tdesc_type_kind): Likewise.
5600 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
5601 * features/aarch64-fpu.xml: Add ieee half view.
5602 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
5603 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
5604 * gdbtypes.h (struct builtin_type): Likewise.
5605 (struct objfile_type): Likewise.
5606
5607 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
5608
5609 * language.c (language_sniff_from_mangled_name): Fix "langauge"
5610 typo.
5611 * location.h (string_to_event_location): Likewise.
5612
5613 2019-05-11 Joel Brobecker <brobecker@adacore.com>
5614
5615 GDB 8.3 released.
5616
5617 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
5618
5619 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
5620 New variable declaration.
5621 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
5622 New variable.
5623 (print_one_breakpoint): Use ui_out::test_flags and new global
5624 variable to compute use_fixed_output.
5625 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
5626 Remove.
5627 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
5628 (mi_multi_location_breakpoint_output_fixed): Remove.
5629 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
5630 new variable.
5631 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
5632 fix_multi_location_breakpoint_output flag if version >= 3.
5633 * ui-out.h (enum ui_out_flag)
5634 <fix_multi_location_breakpoint_output>: New enumerator.
5635
5636 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
5637
5638 * contrib/cc-with-tweaks.sh: Validate dwz's work.
5639
5640 2019-05-10 Tom Tromey <tromey@adacore.com>
5641
5642 * ada-lang.c (catch_ada_completer): New function.
5643 (_initialize_ada_language): Use it.
5644
5645 2019-05-10 Tom Tromey <tromey@adacore.com>
5646
5647 * thread.c (print_thread_info): Make "requested_threads" const.
5648 * gdbthread.h (print_thread_info): Make "requested_threads"
5649 const.
5650 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
5651 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
5652
5653 2019-05-08 Tom Tromey <tom@tromey.com>
5654
5655 * gdbtypes.c (objfile_type_data): Change type.
5656 (objfile_type, _initialize_gdbtypes): Update.
5657
5658 2019-05-08 Tom Tromey <tom@tromey.com>
5659
5660 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
5661 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
5662 (_initialize_dwarf2_frame): Update.
5663
5664 2019-05-08 Tom Tromey <tom@tromey.com>
5665
5666 * objc-lang.c (objc_objfile_data): Change type.
5667 (find_methods): Update.
5668 (_initialize_objc_lang): Remove.
5669
5670 2019-05-08 Tom Tromey <tom@tromey.com>
5671
5672 * stabsread.c (rs6000_builtin_type_data): Change type.
5673 (rs6000_builtin_type, _initialize_stabsread): Update.
5674
5675 2019-05-08 Tom Tromey <tom@tromey.com>
5676
5677 * mips-tdep.c (mips_pdr_data): Remove.
5678 (_initialize_mips_tdep): Update.
5679
5680 2019-05-08 Tom Tromey <tom@tromey.com>
5681
5682 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
5683 (hppa_init_objfile_priv_data, read_unwind_info)
5684 (find_unwind_entry, _initialize_hppa_tdep): Update.
5685
5686 2019-05-08 Tom Tromey <tom@tromey.com>
5687
5688 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
5689 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
5690 on obstack.
5691 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
5692
5693 2019-05-08 Tom Tromey <tom@tromey.com>
5694
5695 * mdebugread.c (basic_type_data): Change type.
5696 (basic_type, _initialize_mdebugread): Update.
5697
5698 2019-05-08 Tom Tromey <tom@tromey.com>
5699
5700 * common/gdb_unique_ptr.h (struct noop_deleter): New.
5701
5702 2019-05-08 Tom Tromey <tom@tromey.com>
5703
5704 * nto-tdep.c (nto_inferior_data_reg): Change type.
5705 (nto_inferior_data): Update.
5706 (nto_inferior_data_cleanup, nto_new_inferior_data)
5707 (_initialize_nto_tdep): Remove.
5708 * nto-tdep.h (struct nto_inferior_data): Add initializers.
5709
5710 2019-05-08 Tom Tromey <tom@tromey.com>
5711
5712 * ada-lang.c (struct ada_inferior_data): Add initializers.
5713 (ada_inferior_data): Change type.
5714 (ada_inferior_data_cleanup): Remove.
5715 (get_ada_inferior_data, ada_inferior_exit)
5716 (struct ada_pspace_data): Add initializers, destructor.
5717 (ada_pspace_data_handle): Change type.
5718 (get_ada_pspace_data): Update.
5719 (ada_pspace_data_cleanup): Remove.
5720
5721 2019-05-08 Tom Tromey <tom@tromey.com>
5722
5723 * coffread.c (struct coff_symfile_info): Add initializers.
5724 (coff_objfile_data_key): Move lower. Change type.
5725 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
5726 Update.
5727 (coff_free_info): Remove.
5728
5729 2019-05-08 Tom Tromey <tom@tromey.com>
5730
5731 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
5732 (fbsd_pspace_data_handle): Move lower. Change type.
5733 (get_fbsd_pspace_data): Update.
5734 (fbsd_pspace_data_cleanup): Remove.
5735 (_initialize_fbsd_tdep): Update.
5736
5737 2019-05-08 Tom Tromey <tom@tromey.com>
5738
5739 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
5740 (get_ada_tasks_pspace_data): Update.
5741 (ada_tasks_pspace_data_cleanup): Remove.
5742 (_initialize_tasks): Update.
5743 (ada_tasks_inferior_data_handle): Change type.
5744 (get_ada_tasks_inferior_data): Update.
5745 (ada_tasks_inferior_data_cleanup): Remove.
5746 (struct ada_tasks_pspace_data): Add initializers.
5747
5748 2019-05-08 Tom Tromey <tom@tromey.com>
5749
5750 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
5751 * symfile-debug.c (debug_sym_get_probes): Change type.
5752 * stap-probe.c (handle_stap_probe):
5753 (stap_static_probe_ops::get_probes): Change type.
5754 * probe.h (class static_probe_ops) <get_probes>: Change type.
5755 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
5756 (parse_probes_in_pspace): Update.
5757 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
5758 Update.
5759 (any_static_probe_ops::get_probes): Change type.
5760 * elfread.c (elfread_data): New typedef.
5761 (probe_key): Change type.
5762 (elf_get_probes): Likewise. Update.
5763 (probe_key_free): Remove.
5764 (_initialize_elfread): Update.
5765 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
5766 Change type.
5767 (dtrace_process_dof_probe, dtrace_process_dof)
5768 (dtrace_static_probe_ops::get_probe): Change type.
5769
5770 2019-05-08 Tom Tromey <tom@tromey.com>
5771
5772 * xcoffread.c (struct xcoff_symfile_info): Rename from
5773 coff_symfile_info. Add initializers.
5774 (xcoff_objfile_data_key): Move lower. Change type.
5775 (XCOFF_DATA): Rewrite.
5776 (xcoff_free_info): Remove.
5777 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
5778 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
5779 (xcoff_initial_scan): Update.
5780
5781 2019-05-08 Tom Tromey <tom@tromey.com>
5782
5783 * solib-svr4.c (struct svr4_info): Add initializers and
5784 destructor.
5785 <probes_table>: Now an htab_up.
5786 (solib_svr4_pspace_data): Change type.
5787 (free_probes_table): Simplify.
5788 (~svr4_info): Rename from svr4_pspace_data_cleanup.
5789 (get_svr4_info, probes_table_htab_remove_objfile_probes)
5790 (probes_table_remove_objfile_probes, register_solib_event_probe)
5791 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
5792 (_initialize_svr4_solib): Update.
5793
5794 2019-05-08 Tom Tromey <tom@tromey.com>
5795
5796 * remote.c (remote_pspace_data): Change type.
5797 (remote_pspace_data_cleanup): Remove.
5798 (get_remote_exec_file, set_pspace_remote_exec_file)
5799 (_initialize_remote): Update.
5800
5801 2019-05-08 Tom Tromey <tom@tromey.com>
5802
5803 * breakpoint.c (breakpoint_objfile_key): Change type.
5804 (get_breakpoint_objfile_data): Update.
5805 (free_breakpoint_objfile_data): Remove.
5806 (_initialize_breakpoint): Update.
5807
5808 2019-05-08 Tom Tromey <tom@tromey.com>
5809
5810 * linux-tdep.c (struct linux_info): Add initializers.
5811 (linux_inferior_data): Move. Change type.
5812 (invalidate_linux_cache_inf): Update.
5813 (linux_inferior_data_cleanup): Remove.
5814 (get_linux_inferior_data, _initialize_linux_tdep): Update.
5815
5816 2019-05-08 Tom Tromey <tom@tromey.com>
5817
5818 * auxv.c (auxv_inferior_data): Move. Change type.
5819 (auxv_inferior_data_cleanup): Remove.
5820 (invalidate_auxv_cache_inf): Rewrite.
5821 (get_auxv_inferior_data, _initialize_auxv): Update.
5822
5823 2019-05-08 Tom Tromey <tom@tromey.com>
5824
5825 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
5826 (symfile_debug_objfile_data_key): Change type.
5827 (symfile_debug_installed, debug_qf_has_symbols)
5828 (debug_qf_find_last_source_symtab)
5829 (debug_qf_forget_cached_source_info)
5830 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
5831 (debug_qf_print_stats, debug_qf_dump)
5832 (debug_qf_expand_symtabs_for_function)
5833 (debug_qf_expand_all_symtabs)
5834 (debug_qf_expand_symtabs_with_fullname)
5835 (debug_qf_map_matching_symbols)
5836 (debug_qf_expand_symtabs_matching)
5837 (debug_qf_find_pc_sect_compunit_symtab)
5838 (debug_qf_map_symbol_filenames)
5839 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
5840 (debug_sym_new_init, debug_sym_init, debug_sym_read)
5841 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
5842 (debug_sym_read_linetable, debug_sym_relocate): Update.
5843 (symfile_debug_free_objfile): Remove.
5844 (install_symfile_debug_logging, _initialize_symfile_debug):
5845 Update.
5846
5847 2019-05-08 Tom Tromey <tom@tromey.com>
5848
5849 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
5850 allocate_on_obstack.
5851 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
5852 (get_dwarf2_per_objfile): Update.
5853 (set_dwarf2_per_objfile): Remove.
5854 (dwarf2_has_info, dwarf2_get_section_info): Update.
5855 (dwarf2_free_objfile): Remove.
5856 (_initialize_dwarf2_read): Update.
5857
5858 2019-05-08 Tom Tromey <tom@tromey.com>
5859
5860 * auto-load.c (struct auto_load_pspace_info): Add destructor and
5861 initializers.
5862 <unsupported_script_warning_printed,
5863 script_not_found_warning_printed>: Now bool.
5864 (auto_load_pspace_data): Change type.
5865 (~auto_load_pspace_info): Rename from
5866 auto_load_pspace_data_cleanup.
5867 (get_auto_load_pspace_data, init_loaded_scripts_info)
5868 (clear_section_scripts, maybe_print_unsupported_script_warning)
5869 (maybe_print_script_not_found_warning, _initialize_auto_load):
5870 Update.
5871
5872 2019-05-08 Tom Tromey <tom@tromey.com>
5873
5874 * objfiles.c (objfile_pspace_info): Add destructor and
5875 initializers.
5876 (objfiles_pspace_data): Change type.
5877 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
5878 (get_objfile_pspace_data): Update.
5879 (objfiles_bfd_data): Change type.
5880 (get_objfile_bfd_data): Update.
5881 (objfile_bfd_data_free, _initialize_objfiles): Remove.
5882
5883 2019-05-08 Tom Tromey <tom@tromey.com>
5884
5885 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
5886 Change type.
5887 (get_catch_syscall_inferior_data): Update.
5888 (catch_syscall_inferior_data_cleanup): Remove.
5889 (_initialize_break_catch_syscall): Update.
5890
5891 2019-05-08 Tom Tromey <tom@tromey.com>
5892
5893 * inflow.c (struct terminal_info): Add destructor and
5894 initializers.
5895 (inflow_inferior_data): Change type.
5896 (~terminal_info): Rename from inflow_inferior_data_cleanup.
5897 (get_inflow_inferior_data, inflow_inferior_exit)
5898 (swap_terminal_info, _initialize_inflow): Update.
5899
5900 2019-05-08 Tom Tromey <tom@tromey.com>
5901
5902 * target-dcache.c (target_dcache_cleanup): Remove.
5903 (target_dcache_aspace_key): Change type.
5904 (target_dcache_init_p, target_dcache_invalidate)
5905 (target_dcache_get, target_dcache_get_or_init)
5906 (_initialize_target_dcache): Update.
5907 * dcache.h (struct dcache_deleter): New.
5908
5909 2019-05-08 Tom Tromey <tom@tromey.com>
5910
5911 * symtab.c (struct symbol_cache): Add destructor and
5912 initializers.
5913 (symbol_cache_key): Move. Change type.
5914 (make_symbol_cache, free_symbol_cache): Remove.
5915 (get_symbol_cache): Update.
5916 (symbol_cache_cleanup): Remove.
5917 (ALL_PSPACES, symbol_cache_flush)
5918 (maintenance_print_symbol_cache)
5919 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
5920 Update.
5921
5922 2019-05-08 Tom Tromey <tom@tromey.com>
5923
5924 * symtab.c (struct main_info): Add destructor and initializers.
5925 (main_progspace_key): Move. Change type.
5926 (get_main_info): Update.
5927 (main_info_cleanup): Remove.
5928 (_initialize_symtab): Update.
5929
5930 2019-05-08 Tom Tromey <tom@tromey.com>
5931
5932 * registry.h (DECLARE_REGISTRY): Define the _key class.
5933
5934 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5935
5936 * NEWS: Merge two 'New commands' sections.
5937
5938 2019-05-08 Joel Brobecker <brobecker@adacore.com>
5939
5940 * ada-valprint.c (ada_val_print_gnat_array): Remove language
5941 parameter and use Ada language definition instead.
5942 (ada_val_print_ptr): Remove unused language parameter.
5943 (ada_val_print_num): Remove language parameter and use Ada language
5944 definition instead.
5945 (ada_val_print_enum, ada_val_print_flt): Remove unused language
5946 parameter.
5947 (ada_val_print_struct_union, ada_val_print_ref): Remove language
5948 parameter and use Ada language definition instead.
5949 (ada_val_print_1): Update all ada_val_print_xxx calls.
5950 Remove language parameter.
5951 (ada_val_print): Update ada_val_print_1 call.
5952
5953 2019-05-08 Tom Tromey <tromey@adacore.com>
5954
5955 * remote.c (remote_hw_watchpoint_limit)
5956 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
5957 Now static.
5958
5959 2019-05-08 Tom Tromey <tromey@adacore.com>
5960
5961 * maint.c (_initialize_maint_cmds): Move initialization code to
5962 remote.c.
5963 (watchdog, show_watchdog): Move to remote.c.
5964 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
5965 "watchdog" static.
5966 (_initialize_remote): Move initialization code from maint.c.
5967 * defs.h (watchdog): Don't declare.
5968
5969 2019-05-08 Tom Tromey <tromey@adacore.com>
5970
5971 * tui/tui-interp.c: Include main.h.
5972 * interps.c: Include main.h.
5973 * main.h (interpreter_p): Declare.
5974 * defs.h (interpreter_p): Don't declare.
5975
5976 2019-05-08 Tom Tromey <tromey@adacore.com>
5977
5978 * dwarf2loc.c: Include dwarf2read.h.
5979 * defs.h (read_unsigned_leb128): Don't declare.
5980 * dwarf2read.h (read_unsigned_leb128): Declare.
5981
5982 2019-05-08 Tom Tromey <tromey@adacore.com>
5983
5984 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
5985 method.
5986
5987 2019-05-08 Tom Tromey <tromey@adacore.com>
5988
5989 * utils.c (fputs_maybe_filtered): Reset style after paging, even
5990 when no wrap column is set.
5991
5992 2019-05-08 Tom Tromey <tromey@adacore.com>
5993
5994 * c-lang.c (c_get_string): Handle non-C-style arrays.
5995
5996 2019-05-08 Tom Tromey <tromey@adacore.com>
5997
5998 * typeprint.c (print_offset_data::update): Print the bit offset,
5999 not the number of bits remaining.
6000
6001 2019-05-08 Tom Tromey <tromey@adacore.com>
6002
6003 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
6004 padding at end of comment.
6005
6006 2019-05-08 Tom Tromey <tromey@adacore.com>
6007
6008 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
6009 Compare main types.
6010
6011 2019-05-06 Tom Tromey <tom@tromey.com>
6012
6013 * common/scoped_mmap.c: Include common-defs.h.
6014 * common/scoped_mmap.h: Don't include config.h.
6015
6016 2019-05-04 Tom Tromey <tom@tromey.com>
6017
6018 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
6019 (struct aarch64_call_info): Add initializers.
6020 <si>: Now a std::vector.
6021 (pass_on_stack, aarch64_push_dummy_call): Update.
6022
6023 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
6024 Tom Tromey <tom@tromey.com>
6025
6026 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
6027 (ppc_threads): Now a std::vector. Now static.
6028 (hwdebug_find_thread_points_by_tid)
6029 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
6030 Update.
6031
6032 2019-05-04 Tom Tromey <tom@tromey.com>
6033
6034 * arc-tdep.c (arc_tdesc_init): Return bool.
6035
6036 2019-05-04 Tom Tromey <tom@tromey.com>
6037
6038 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
6039 Use gdb_assert_not_reached.
6040
6041 2019-05-04 Tom Tromey <tom@tromey.com>
6042
6043 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
6044 "false".
6045
6046 2019-05-04 Tom Tromey <tom@tromey.com>
6047
6048 * arc-tdep.c (arc_tdesc_init): Use bool.
6049
6050 2019-05-04 Tom Tromey <tom@tromey.com>
6051
6052 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
6053
6054 2019-05-04 Tom Tromey <tom@tromey.com>
6055
6056 * cli/cli-cmds.c (valid_command_p): Return bool.
6057
6058 2019-05-04 Tom Tromey <tom@tromey.com>
6059
6060 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
6061 * command.h (valid_user_defined_cmd_name_p): Channge return type.
6062
6063 2019-05-04 Raul Tambre <raul@tambre.ee>
6064
6065 * python/lib/gdb/prompt.py (_ExtendedPrompt)
6066 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
6067 operator for comparison.
6068
6069 2019-05-04 Tom Tromey <tom@tromey.com>
6070
6071 * psymtab.c (psymbol_name_matches, match_partial_symbol)
6072 (lookup_partial_symbol, print_partial_symbols)
6073 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
6074 (psymbol_compare): Update.
6075 (add_psymbol_to_bcache): Clear the entire psymbol.
6076 (maintenance_check_psymtabs): Update.
6077 * psympriv.h (struct partial_symbol): Don't derive from
6078 general_symbol_info.
6079 <obj_section, unrelocated_address, address,
6080 set_unrelocated_address>: Update.
6081 <ginfo>: New member.
6082 * dwarf-index-write.c (write_psymbols, debug_names::insert)
6083 (debug_names::write_psymbols): Update.
6084
6085 2019-05-04 Tom de Vries <tdevries@suse.de>
6086
6087 * contrib/cc-with-tweaks.sh: Support -n arg.
6088
6089 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6090
6091 * corelow.c (core_target::detach): Ensure frame cache and
6092 register caches are cleared.
6093 inferior.c (exit_inferior_1): Likewise.
6094
6095 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
6096 Tom Tromey <tom@tromey.com>
6097
6098 * dictionary.c (collate_pending_symbols_by_language): Remove
6099 "struct" from foreach.
6100 * symtab.c (lookup_global_symbol_from_objfile)
6101 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
6102 foreach.
6103 * ser-tcp.c (net_open): Remove "struct" from foreach.
6104 * objfiles.c (objfile_relocate, objfile_rebase)
6105 (objfile_has_symbols): Remove "struct" from foreach.
6106 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
6107 from foreach.
6108 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
6109 foreach.
6110 * darwin-nat.c (thread_info_from_private_thread_info): Remove
6111 "struct" from foreach.
6112 * ada-lang.c (create_excep_cond_exprs)
6113 (ada_exception_catchpoint_cond_string): Remove "struct" from
6114 foreach.
6115
6116 2019-05-03 Tom Tromey <tromey@adacore.com>
6117
6118 * ada-exp.y (convert_char_literal): Check suffix of each
6119 enumerator.
6120
6121 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
6122
6123 PR ada/21406:
6124 * ada-exp.y (yywrap): Don't define.
6125 * ada-lex.l (%option): Add noyywrap
6126 (yywrap): Remove.
6127
6128 2019-05-03 Eli Zaretskii <eliz@gnu.org>
6129
6130 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
6131 _WIN32_WINNT to the XP level, unless already defined to a higher
6132 level.
6133
6134 * unittests/parse-connection-spec-selftests.c:
6135 * ser-tcp.c:
6136 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
6137 override.
6138
6139 * symfile.c (find_separate_debug_file): Remove colon from the
6140 drive spec of DOS/Windows file names of the target, so that the
6141 file name produced from DEBUGDIR and the target's directory will
6142 be valid on DOS/Windows systems.
6143
6144 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
6145
6146 * rust-lang.c (val_print_struct): Handle printing structures
6147 containing strings.
6148
6149 2019-05-02 Tom Tromey <tromey@adacore.com>
6150
6151 * valarith.c (_initialize_valarith): Remove.
6152
6153 2019-05-01 Tom Tromey <tromey@adacore.com>
6154
6155 * ada-lang.c (ada_value_primitive_field): Treat more fields as
6156 bitfields.
6157
6158 2019-05-01 Tom Tromey <tromey@adacore.com>
6159
6160 * ada-lang.c (ada_value_assign): Correctly compute starting offset
6161 for big-endian copies.
6162
6163 2019-04-30 Ali Tamur <tamur@google.com>
6164 * gdb/dwarf2read.c (read_3_bytes): New declaration.
6165 (read_attribute_value): Added DW_FORM_strx1-4 cases.
6166 (read_3_bytes): New function.
6167
6168 2019-04-30 Joel Brobecker <brobecker@adacore.com>
6169
6170 * windows-nat.c (main_thread_id): Delete.
6171 (handle_output_debug_string): Replace main_thread_id by
6172 current_event.dwThreadId.
6173 (fake_create_process): Likewise.
6174 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
6175 Do not set main_thread_id.
6176 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
6177 current_event.dwThreadId.
6178 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
6179
6180 2019-04-30 Joel Brobecker <brobecker@adacore.com>
6181
6182 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
6183 Use current_event.dwThreadId instead of main_thread_id.
6184
6185 2019-04-30 Tom Tromey <tromey@adacore.com>
6186
6187 * ada-lang.c (ada_lookup_simple_minsyms): New function.
6188 (create_excep_cond_exprs): Iterate over program spaces.
6189 (ada_exception_catchpoint_cond_string): Examine all minimal
6190 symbols for exception types.
6191
6192 2019-04-30 Tom Tromey <tromey@adacore.com>
6193
6194 PR c++/24470:
6195 * dwarf2read.c (process_structure_scope): Handle case where type
6196 has template parameters but no symbol was created.
6197
6198 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6199 Chris January <chris.january@arm.com>
6200
6201 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
6202 qualifier.
6203 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
6204
6205 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6206
6207 * f-typeprint.c (f_print_type): Update rules for printing
6208 whitespace.
6209 (f_type_print_varspec_suffix): Likewise.
6210
6211 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6212 Chris January <chris.january@arm.com>
6213
6214 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
6215 function arguments.
6216
6217 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6218
6219 * f-lang.c (build_fortran_types): Change name of void type to
6220 lower case.
6221 * f-typeprint.c (f_type_print_base): Print the name of the void
6222 type, rather than a fixed string.
6223 * f-valprint.c (f_decorations): Use lower case void string.
6224
6225 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6226 Chris January <chris.january@arm.com>
6227
6228 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
6229 types for Fortran.
6230
6231 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6232 Chris January <chris.january@arm.com>
6233 David Lecomber <david.lecomber@arm.com>
6234
6235 * f-exp.y (BINOP_INTRINSIC): New token.
6236 (exp): New parser rule handling BINOP_INTRINSIC.
6237 (f77_keywords): Add new builtin procedures.
6238 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
6239 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6240 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
6241 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6242 (print_unop_subexp_f): New function.
6243 (print_binop_subexp_f): New function.
6244 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6245 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6246 (dump_subexp_body_f): Likewise.
6247 (operator_check_f): Likewise.
6248 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6249 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
6250
6251 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6252
6253 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
6254 UNOP_KIND.
6255 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
6256 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
6257 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
6258 (operator_length_f): New fuction.
6259 (print_subexp_f): New function.
6260 (op_name_f): New function.
6261 (dump_subexp_body_f): New function.
6262 (operator_check_f): New function.
6263 (exp_descriptor_f): Replace standard expression handling functions
6264 with new functions.
6265 * gdb/fortran-operator.def: New file.
6266 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
6267 * gdb/std-operator.def: Remove UNOP_KIND.
6268
6269 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6270
6271 * std-operator.def: Remove unbalanced, stray double quote
6272 character.
6273
6274 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6275 Chris January <chris.january@arm.com>
6276 Daniel Everett <daniel.everett@arm.com>
6277 Nick Forrington <nick.forrington@arm.com>
6278 Richard Bunt <richard.bunt@arm.com>
6279
6280 * cp-valprint.c (cp_print_value_fields): Allow an additional level
6281 of depth when printing anonymous structs or unions.
6282 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
6283 Don't print either the top-level value, or the children if the
6284 max-depth is exceeded.
6285 (ppscm_print_children): When printing the key of a map, allow one
6286 extra level of depth.
6287 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
6288 print either the top-level value, or the children if the max-depth
6289 is exceeded.
6290 (print_children): When printing the key of a map, allow one extra
6291 level of depth.
6292 * python/py-value.c (valpy_format_string): Add max_depth keyword.
6293 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
6294 (user_print_options): Initialise max_depth field.
6295 (val_print_scalar_or_string_type_p): New function.
6296 (val_print): Check to see if the max depth has been reached.
6297 (val_print_check_max_depth): Define new function.
6298 (show_print_max_depth): New function.
6299 (_initialize_valprint): Add 'print max-depth' option.
6300 * valprint.h (struct value_print_options) <max_depth>: New field.
6301 (val_print_check_max_depth): Declare new function.
6302 * NEWS: Document new feature.
6303
6304 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6305
6306 * ada-lang.c (ada_language_defn): Initialise new field.
6307 * c-lang.c (c_is_string_type_p): New function.
6308 (c_language_defn): Initialise new field.
6309 (cplus_language_defn): Initialise new field.
6310 (asm_language_defn): Initialise new field.
6311 (minimal_language_defn): Initialise new field.
6312 * c-lang.h (c_is_string_type_p): Declare new function.
6313 * d-lang.c (d_language_defn): Initialise new field.
6314 * f-lang.c (f_is_string_type_p): New function.
6315 (f_language_defn): Initialise new field.
6316 * go-lang.c (go_is_string_type_p): New function.
6317 (go_language_defn): Initialise new field.
6318 * language.c (default_is_string_type_p): New function.
6319 (unknown_language_defn): Initialise new field.
6320 (auto_language_defn): Initialise new field.
6321 * language.h (struct language_defn) <la_is_string_type_p>: New
6322 member variable.
6323 (default_is_string_type_p): Declare new function.
6324 * m2-lang.c (m2_language_defn): Initialise new field.
6325 * objc-lang.c (objc_language_defn): Initialise new field.
6326 * opencl-lang.c (opencl_language_defn): Initialise new field.
6327 * p-lang.c (pascal_is_string_type_p): New function.
6328 (pascal_language_defn): Initialise new field.
6329 * rust-lang.c (rust_is_string_type_p): New function.
6330 (rust_language_defn): Initialise new field.
6331
6332 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6333
6334 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
6335 New field.
6336 * ada-lang.c (ada_language_defn): Initialise new field.
6337 * c-lang.c (c_language_defn): Likewise.
6338 (cplus_language_defn): Likewise.
6339 (asm_language_defn): Likewise.
6340 (minimal_language_defn): Likewise.
6341 * d-lang.c (d_language_defn): Likewise.
6342 * f-lang.c (f_language_defn): Likewise.
6343 * go-lang.c (go_language_defn): Likewise.
6344 * language.c (unknown_language_defn): Likewise.
6345 (auto_language_defn): Likewise.
6346 * m2-lang.c (m2_language_defn): Likewise.
6347 * objc-lang.c (objc_language_defn): Likewise.
6348 * opencl-lang.c (opencl_language_defn): Likewise.
6349 * p-lang.c (pascal_language_defn): Likewise.
6350 * rust-lang.c (rust_language_defn): Likewise.
6351
6352 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6353
6354 * ada-lang.c (ada_is_character_type): Change return type to bool.
6355 (ada_is_string_type): Likewise.
6356 * ada-lang.h (ada_is_character_type): Update declaration
6357 (ada_is_string_type): Likewise.
6358
6359 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6360
6361 Support style in 'frame|thread apply'
6362
6363 * gdbcmd.h (execute_command_to_string): New term_out parameter.
6364 * record.c (record_start, record_stop): Update callers of
6365 execute_command_to_string with false.
6366 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
6367 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
6368 methods.
6369 (class string_file): New constructor with term_out parameter.
6370 Override methods term_out and can_emit_style_escape. New member
6371 term_out.
6372 (class stdio_file): Override can_emit_style_escape.
6373 (class tee_file): Override term_out and can_emit_style_escape.
6374 * utils.h (can_emit_style_escape): Remove.
6375 * utils.c (can_emit_style_escape): Likewise.
6376 Update all callers of can_emit_style_escape (SOMESTREAM) to
6377 SOMESTREAM->can_emit_style_escape.
6378 * source-cache.c (source_cache::get_source_lines): Likewise.
6379 * stack.c (frame_apply_command_count): Call execute_command_to_string
6380 passing the term_out characteristic of the current gdb_stdout.
6381 * thread.c (thr_try_catch_cmd): Likewise.
6382 * top.c (execute_command_to_string): pass term_out parameter
6383 to construct the string_file for the command output.
6384 * ui-file.c (term_cli_styling): New function (most code moved
6385 from utils.c can_emit_style_escape).
6386 (string_file::string_file, string_file::can_emit_style_escape,
6387 stdio_file::can_emit_style_escape, tee_file::term_out,
6388 tee_file::can_emit_style_escape): New functions.
6389
6390 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6391
6392 * NEWS: Mention the new set|show may-call-functions.
6393 * infcall.c (may_call_functions_p): New variable.
6394 (show_may_call_functions_p): New function.
6395 (call_function_by_hand_dummy): Throws an error if not
6396 may-call-functions.
6397 (_initialize_infcall): Call add_setshow_boolean_cmd for
6398 may-call-functions.
6399
6400 2019-04-25 Keith Seitz <keiths@redhat.com>
6401
6402 PR c++/24367
6403 * cp-support.c (inspect_type): Don't attempt substitutions
6404 of symbol with the same name.
6405
6406 2019-04-25 Tom Tromey <tromey@adacore.com>
6407
6408 PR gdb/24475:
6409 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
6410 static.
6411
6412 2019-04-25 Tom Tromey <tromey@adacore.com>
6413
6414 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
6415 rvalue reference.
6416 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
6417 (gdb_xml_parser::parse): Use std::move.
6418 * python/python-internal.h (gdbpy_convert_exception): Take a const
6419 reference.
6420 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
6421 std::move.
6422 * python/py-utils.c (gdbpy_convert_exception): Take a const
6423 reference.
6424 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
6425 Use std::move.
6426 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
6427 Use std::move.
6428 * mi/mi-main.c (mi_print_exception): Take a const reference.
6429 * main.c (handle_command_errors): Take a const reference.
6430 * linespec.c (parse_linespec): Use std::move.
6431 * infcall.c (run_inferior_call): Use std::move.
6432 (call_function_by_hand_dummy): Use std::move.
6433 * exec.c (try_open_exec_file): Use std::move.
6434 * exceptions.h (exception_print, exception_fprintf)
6435 (exception_print_same): Update.
6436 * exceptions.c (print_exception, exception_print)
6437 (exception_fprintf, exception_print_same): Change parameters to
6438 const reference.
6439 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
6440 * common/new-op.c: Use std::move.
6441 * common/common-exceptions.h (struct gdb_exception): Add move
6442 constructor.
6443 (struct gdb_exception_error, struct gdb_exception_quit, struct
6444 gdb_quit_bad_alloc): Change constructor to move constructor.
6445 (throw_exception): Change parameter to rvalue reference.
6446 * common/common-exceptions.c (throw_exception): Take rvalue
6447 reference.
6448 * cli/cli-interp.c (safe_execute_command): Use std::move.
6449 * breakpoint.c (insert_bp_location, location_to_sals): Use
6450 std::move.
6451
6452 2019-04-25 Tom Tromey <tromey@adacore.com>
6453
6454 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
6455 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
6456 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
6457 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
6458 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
6459 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
6460 guile/scm-value.c: Use unpack.
6461 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
6462 gdbscm_gdb_exception.
6463 (gdbscm_throw_gdb_exception): Likewise.
6464 (struct gdbscm_gdb_exception): New.
6465 (unpack): New function.
6466 (gdbscm_wrap): Use unpack.
6467
6468 2019-04-25 Tom Tromey <tromey@adacore.com>
6469
6470 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
6471 (gdb_rl_callback_handler): Use std::move.
6472 * common/common-exceptions.h (struct gdb_exception): Add move
6473 assignment operator.
6474 (throw_exception_sjlj): Change "exception" to const reference.
6475 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
6476 (throw_exception_sjlj): Change "exception" to const reference.
6477
6478 2019-04-25 Tom Tromey <tromey@adacore.com>
6479
6480 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
6481 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
6482 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
6483 Update.
6484 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
6485 Update.
6486 * mi/mi-interp.c (mi_interp::exec): Update.
6487 * linespec.c (parse_linespec): Update.
6488 * infcall.c (run_inferior_call): Update.
6489 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
6490 * guile/scm-symbol.c (gdbscm_lookup_symbol)
6491 (gdbscm_lookup_global_symbol): Update.
6492 * guile/scm-param.c (gdbscm_parameter_value): Update.
6493 * guile/scm-frame.c (gdbscm_frame_read_register)
6494 (gdbscm_frame_read_var): Update.
6495 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
6496 * exec.c (try_open_exec_file): Update.
6497 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
6498 (gdb_rl_callback_handler): Update.
6499 * common/common-exceptions.h (exception_none): Don't declare.
6500 * common/common-exceptions.c (exception_none): Don't define.
6501 (struct catcher) <exception>: Update.
6502 * cli/cli-interp.c (safe_execute_command): Update.
6503 * breakpoint.c (insert_bp_location, location_to_sals): Update.
6504
6505 2019-04-25 Ali Tamur <tamur@google.com>
6506
6507 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
6508 (read_attribute_value): Likewise.
6509 (dwarf2_read_addr_index): Update comment.
6510 (read_str_index): Add DW_FORM_strx.
6511 (dwarf2_string_attr): Likewise.
6512 (dwarf2_const_value_attr): Likewise.
6513 (dump_die_shallow): Likewise.
6514 (dwarf2_fetch_constant_bytes): Likewise.
6515 (skip_form_bytes): Likewise.
6516 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
6517
6518 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6519
6520 PR corefiles/11608
6521 PR corefiles/18187
6522 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
6523 OFFSET. Verify if current mapping contains an ELF header.
6524 (linux_find_memory_regions_full): Adjust call to
6525 dump_mapping_p.
6526
6527 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
6528 Kang Li <kanglictf@gmail.com>
6529
6530 PR gdb/21600
6531
6532 * dwarf2-frame.c (read_initial_length): Be consistent about using
6533 unsigned representation of length.
6534 (decode_frame_entry_1): Likewise. Check for wraparound of
6535 end pointer as well as buffer overflow.
6536
6537 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6538
6539 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
6540 "vq".
6541
6542 2019-04-24 Tom Tromey <tromey@adacore.com>
6543
6544 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
6545
6546 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6547
6548 * s12z-tdep.c (s12z_unwind_pc): Delete.
6549 (s12z_unwind_sp): Delete.
6550 (s12z_gdbarch_init): Don't register deleted functions with
6551 gdbarch.
6552
6553 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6554
6555 * rl78-tdep.c (rl78_unwind_sp): Delete.
6556 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
6557
6558 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6559
6560 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
6561 (xstormy16_unwind_pc): Delete.
6562 (xstormy16_dummy_id): Delete.
6563 (xstormy16_gdbarch_init): Don't register deleted functions with
6564 gdbarch.
6565
6566 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6567
6568 * vax-tdep.c (vax_unwind_pc): Delete.
6569 (vax_gdbarch_init): Don't register deleted function with gdbarch.
6570
6571 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6572
6573 * v850-tdep.c (v850_unwind_sp): Delete.
6574 (v850_unwind_pc): Delete.
6575 (v850_dummy_id): Delete.
6576 (v850_gdbarch_init): Don't register deleted functions with
6577 gdbarch.
6578
6579 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6580
6581 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
6582 (tilegx_unwind_pc): Delete.
6583 (tilegx_unwind_dummy_id): Delete.
6584 (tilegx_gdbarch_init): Don't register deleted functions with
6585 gdbarch.
6586
6587 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6588
6589 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
6590 (tic6x_dummy_id): Delete.
6591 (tic6x_gdbarch_init): Don't register deleted functions with
6592 gdbarch.
6593
6594 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6595
6596 * sparc-tdep.c (sparc_unwind_pc): Delete.
6597 (sparc32_gdbarch_init): Don't register deleted function with
6598 gdbarch.
6599
6600 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6601
6602 * sh-tdep.c (sh_unwind_sp): Delete.
6603 (sh_unwind_pc): Delete.
6604 (sh_dummy_id): Delete.
6605 (sh_gdbarch_init): Don't register deleted functions with
6606 gdbarch.
6607
6608 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6609
6610 * score-tdep.c (score_unwind_sp): Delete.
6611 (score_unwind_pc): Delete.
6612 (score_dummy_id): Delete.
6613 (score_gdbarch_init): Don't register deleted functions with
6614 gdbarch.
6615
6616 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6617
6618 * rx-tdep.c (rx_unwind_pc): Delete.
6619 (rx_unwind_sp): Delete.
6620 (rx_dummy_id): Delete.
6621 (rx_gdbarch_init): Don't register deleted functions with
6622 gdbarch. Update comment.
6623
6624 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6625
6626 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
6627 (rs6000_dummy_id): Delete.
6628 (rs6000_gdbarch_init): Don't register deleted functions with
6629 gdbarch.
6630
6631 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6632
6633 * or1k-tdep.c (or1k_dummy_id): Delete.
6634 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
6635
6636 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6637
6638 * nios2-tdep.c (nios2_dummy_id): Delete.
6639 (nios2_unwind_sp): Delete.
6640 (nios2_gdbarch_init): Don't register deleted functions with
6641 gdbarch.
6642
6643 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6644
6645 * nds32-tdep.c (nds32_dummy_id): Delete.
6646 (nds32_unwind_pc): Delete.
6647 (nds32_unwind_sp): Delete.
6648 (nds32_gdbarch_init): Don't register deleted functions with
6649 gdbarch.
6650
6651 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6652
6653 * msp430-tdep.c (msp430_unwind_pc): Delete.
6654 (msp430_unwind_sp): Delete.
6655 (msp430_dummy_id): Delete.
6656 (msp430_gdbarch_init): Don't register deleted functions with
6657 gdbarch.
6658
6659 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6660
6661 * moxie-tdep.c (moxie_unwind_sp): Delete.
6662 (moxie_unwind_pc): Delete.
6663 (moxie_dummy_id): Delete.
6664 (moxie_gdbarch_init): Don't register deleted functions with
6665 gdbarch.
6666
6667 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6668
6669 * mn10300-tdep.c (mn10300_dummy_id): Delete.
6670 (mn10300_unwind_pc): Delete.
6671 (mn10300_unwind_sp): Delete.
6672 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
6673 mn10300_unwind_sp.
6674 (mn10300_frame_unwind_init): Don't register deleted functions with
6675 gdbarch.
6676
6677 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6678
6679 * mep-tdep.c (mep_unwind_pc): Delete.
6680 (mep_unwind_sp): Delete.
6681 (mep_dummy_id): Delete.
6682 (mep_gdbarch_init): Don't register deleted functions with
6683 gdbarch.
6684
6685 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6686
6687 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
6688 (m68hc11_unwind_sp): Delete.
6689 (m68hc11_gdbarch_init): Don't register deleted functions with
6690 gdbarch.
6691
6692 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6693
6694 * m32r-tdep.c (m32r_unwind_sp): Delete.
6695 (m32r_unwind_pc): Delete.
6696 (m32r_dummy_id): Delete.
6697 (m32r_gdbarch_init): Don't register deleted functions with
6698 gdbarch.
6699
6700 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6701
6702 * m32c-tdep.c (m32c_unwind_pc): Delete.
6703 (m32c_unwind_sp): Delete.
6704 (m32c_dummy_id): Delete.
6705 (m32c_gdbarch_init): Don't register deleted functions with
6706 gdbarch.
6707
6708 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6709
6710 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
6711 (lm32_unwind_pc): Delete.
6712 (lm32_dummy_id): Delete.
6713 (lm32_gdbarch_init): Don't register deleted functions with
6714 gdbarch.
6715
6716 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6717
6718 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
6719 (iq2000_unwind_pc): Delete.
6720 (iq2000_dummy_id): Delete.
6721 (iq2000_gdbarch_init): Don't register deleted functions with
6722 gdbarch.
6723
6724 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6725
6726 * nds32-tdep.c (nds32_type_align): Delete.
6727 (nds32_push_dummy_call): Use type_align instead.
6728
6729 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6730
6731 * arm-tdep.c (arm_type_align): Only handle vector override case.
6732 (arm_push_dummy_call): Use type_align.
6733 (arm_gdbarch_init): Register arm_type_align gdbarch function.
6734
6735 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6736
6737 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
6738 case.
6739 (pass_on_stack): Use type_align.
6740 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
6741 function.
6742
6743 2019-04-23 Tom Tromey <tromey@adacore.com>
6744
6745 * dwarf2read.c (line_header::file_name_at): Remove unused
6746 overload.
6747
6748 2019-04-23 Tom de Vries <tdevries@suse.de>
6749
6750 PR gdb/24438
6751 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
6752 invocation.
6753
6754
6755 2019-03-27 Ali Tamur <tamur@google.com>
6756
6757 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
6758 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
6759 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
6760 (dwarf_expr_context::get_addr_index): Likewise
6761 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
6762 (symbol_needs_eval_context::get_addr_index): Likewise
6763 (disassemble_dwarf_expression): Add DW_OP_addrx
6764 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
6765 (read_cutu_die_from_dwo): Update comment
6766 (skip_one_die): Add DW_FORM_addrx
6767 (read_attribute_value): Likewise
6768 (var_decode_location): Add DW_OP_addrx
6769 (dwarf2_const_value_attr): Add DW_FORM_addrx
6770 (dump_die_shallow): Likewise
6771 (dwarf2_fetch_constant_bytes): Likewise
6772 (decode_locdesc): Add DW_OP_addrx
6773 (skip_form_bytes): Add DW_FORM_addrx
6774
6775 2019-04-22 Ali Tamur <tamur@google.com>
6776
6777 * MAINTAINERS (Write After Approval): Add self.
6778
6779 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
6780
6781 * solib-svr4.c (get_svr4_info): Add pspace parameter.
6782 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
6783 (open_symbol_file_object): Likewise.
6784 (svr4_default_sos): Add info parameter.
6785 (svr4_read_so_list): Likewise.
6786 (svr4_current_sos_direct): Adjust functions calls to pass down
6787 info.
6788 (svr4_current_sos_1): Add info parameter.
6789 (svr4_current_sos): Call get_svr4_info, pass info down to
6790 svr4_current_sos_1.
6791 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
6792 get_svr4_info.
6793 (svr4_in_dynsym_resolve_code): Pass current_program_space to
6794 get_svr4_info.
6795 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
6796 to get_svr4_info.
6797 (probes_table_remove_objfile_probes): Likewise.
6798 (register_solib_event_probe): Add info parameter.
6799 (solist_update_incremental): Pass info parameter down to
6800 svr4_read_so_list.
6801 (disable_probes_interface): Add info parameter.
6802 (svr4_handle_solib_event): Pass current_program_space to
6803 get_svr4_info. Adjust disable_probes_interface cleanup.
6804 (svr4_create_probe_breakpoints): Add info parameter, pass it
6805 down to register_solib_event_probe.
6806 (svr4_create_solib_event_breakpoints): Add info parameter,
6807 pass it down to svr4_create_probe_breakpoints.
6808 (enable_break): Pass info down to
6809 svr4_create_solib_event_breakpoints.
6810 (svr4_solib_create_inferior_hook): Pass current_program_space to
6811 get_svr4_info.
6812 (svr4_clear_solib): Likewise.
6813
6814 2019-04-22 Pedro Alves <palves@redhat.com>
6815
6816 * solib-svr4.c (svr4_free_objfile_observer): New.
6817 (probe_and_action::objfile): New field.
6818 (probes_table_htab_remove_objfile_probes)
6819 (probes_table_remove_objfile_probes): New functions.
6820 (register_solib_event_probe): Add 'objfile' parameter. Store it
6821 in the new probe_and_action. Don't store the probe in 'lookup'.
6822 (svr4_create_probe_breakpoints): Pass objfile to
6823 register_solib_event_probe.
6824 (_initialize_svr4_solib): Register a free_objfile observer.
6825
6826 2019-04-19 Tom Tromey <tom@tromey.com>
6827
6828 * common/queue.h: Remove.
6829
6830 2019-04-19 Tom Tromey <tom@tromey.com>
6831
6832 * event-loop.c: Don't include "common/queue.h".
6833
6834 2019-04-19 Tom Tromey <tom@tromey.com>
6835
6836 * remote.c (remote_target): Use delete.
6837 * remote-notif.h: Include <list>, not "common/queue.h".
6838 (notif_client_p): Remove typedef.
6839 (remote_notif_state): Add constructor, destructor, initializer.
6840 <notif_queue>: Now a std::list.
6841 (remote_notif_state_xfree): Don't declare.
6842 * remote-notif.c (remote_notif_process, handle_notification)
6843 (remote_notif_state_allocate): Update.
6844 (~remote_notif_state): Rename from remote_notif_state_xfree.
6845
6846 2019-04-19 Tom Tromey <tom@tromey.com>
6847
6848 * symfile.c (reread_symbols): Update.
6849 * objfiles.c (objfile_register_static_link)
6850 (objfile_lookup_static_link): Update
6851 (~objfile) Don't delete static_links.
6852 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
6853
6854 2019-04-19 Tom Tromey <tom@tromey.com>
6855
6856 * type-stack.h (struct type_stack) <insert>: Constify string.
6857 * type-stack.c (type_stack::insert): Constify string.
6858 * gdbtypes.h (lookup_template_type): Update.
6859 (address_space_name_to_int): Update.
6860 * gdbtypes.c (address_space_name_to_int): Make space_identifier
6861 const.
6862 (lookup_template_type): Make name const.
6863 * c-exp.y: Update rules.
6864 (lex_one_token, classify_name, classify_inner_name)
6865 (c_print_token): Update.
6866 * p-exp.y: Update rules.
6867 (yylex): Update.
6868 * f-exp.y: Update rules.
6869 (yylex): Update.
6870 * d-exp.y: Update rules.
6871 (lex_one_token, classify_name, classify_inner_name): Update.
6872 * parse.c (write_dollar_variable, copy_name): Return std::string.
6873 * parser-defs.h (copy_name): Change return type.
6874 * m2-exp.y: Update rules.
6875 (yylex): Update.
6876 * go-exp.y (lex_one_token): Update.
6877 Update rules.
6878 (classify_unsafe_function, classify_packaged_name)
6879 (classify_name, yylex): Update.
6880
6881 2019-04-19 Sergei Trofimovich <siarheit@google.com>
6882
6883 * configure.ac: add --enable-source-highlight switch.
6884 * configure: Regenerate.
6885 * top.c (print_gdb_version): plumb --enable-source-highlight
6886 status to "show configuration".
6887
6888 2019-04-19 Tom Tromey <tromey@adacore.com>
6889
6890 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
6891 Check ADA_TYPE_P.
6892 (empty_record, ada_template_to_fixed_record_type_1)
6893 (template_to_static_fixed_type)
6894 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
6895 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
6896 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
6897 macros.
6898
6899 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
6900
6901 PR symtab/24423:
6902 * source.c (print_source_lines_base): Advance "iter" when a
6903 control character is seen.
6904
6905 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6906
6907 * inferior.h (struct infcall_suspend_state_deleter):
6908 Catch exception in destructor to avoid crash.
6909
6910 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6911
6912 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
6913 close to the add_com "shell".
6914
6915 2019-04-18 Tom Tromey <tromey@adacore.com>
6916
6917 * process-stratum-target.h (class process_stratum_target)
6918 <stratum>: Add "final".
6919
6920 2019-04-17 Tom Tromey <tromey@adacore.com>
6921
6922 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
6923 against nullptr before use.
6924
6925 2019-04-17 Alan Hayward <alan.hayward@arm.com>
6926
6927 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
6928
6929 2019-04-17 Jim Wilson <jimw@sifive.com>
6930 Andrew Burgess <andrew.burgess@embecosm.com>
6931
6932 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
6933 code read might fail, assume 4-byte breakpoint in that case.
6934
6935 2019-04-15 Leszek Swirski <leszeks@google.com>
6936
6937 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
6938 rather than a hand-rolled POD check when checking for forced MEMORY
6939 classification.
6940
6941 2019-04-15 Alan Hayward <alan.hayward@arm.com>
6942
6943 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
6944 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
6945 function.
6946 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
6947 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
6948 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
6949 declaration.
6950
6951 2019-04-15 Alan Hayward <alan.hayward@arm.com>
6952
6953 * aarch64-linux-nat.c
6954 (aarch64_linux_nat_target::thread_architecture): Add override.
6955 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
6956 each VQ.
6957
6958 2019-04-15 Alan Hayward <alan.hayward@arm.com>
6959
6960 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
6961
6962 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
6963
6964 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
6965 target types of size 96-bits, add some additional comments, and
6966 check that the builtin type we found was the correct size.
6967
6968 2019-04-12 Eli Zaretskii <eliz@gnu.org>
6969
6970 * utils.c (prompt_for_continue): Don't restore the styling at the
6971 end, as applied_style has the wrong value. This fixes styling in
6972 long lists of file names that are interrupted by the "Continue?"
6973 prompt.
6974
6975 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
6976
6977 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
6978 * c-lang.c (c_language_defn): Likewise.
6979 (cplus_language_defn): Likewise.
6980 (asm_language_defn): Likewise.
6981 (minimal_language_defn): Likewise.
6982 * d-lang.c (d_language_defn): Likewise.
6983 * f-lang.c (f_language_defn): Likewise.
6984 * go-lang.c (go_language_defn): Likewise.
6985 * language.c (unknown_language_defn): Likewise.
6986 (auto_language_defn): Likewise.
6987 * language.h (struct language_defn): Remove la_magic field.
6988 (LANG_MAGIC): Delete.
6989 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
6990 * objc-lang.c (objc_language_defn): Likewise.
6991 * opencl-lang.c (opencl_language_defn): Likewise.
6992 * p-lang.c (pascal_language_defn): Likewise.
6993 * rust-lang.c (rust_language_defn): Likewise.
6994
6995 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
6996
6997 * riscv-tdep.c (riscv_type_align): New function.
6998 (riscv_type_alignment): Delete.
6999 (riscv_arg_location): Use 'type_align'.
7000 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
7001
7002 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7003
7004 * gdbtypes.c (type_align): A struct with no non-static fields also
7005 has alignment of 1.
7006
7007 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
7008
7009 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
7010 component to 0.
7011 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
7012 member.
7013 (riscv_struct_info::analyse): New implementation using new
7014 analyse_inner member function.
7015 (riscv_struct_info::field_offset): New member function.
7016 (riscv_struct_info::m_offsets): New member variable.
7017 (riscv_struct_info::analyse_inner): New private member function,
7018 takes the old implementation of riscv_struct_info::analyse but
7019 extended to track field offsets.
7020 (riscv_call_arg_struct): Update the struct folding special cases
7021 to handle cases where empty C++ structs, which are non-zero
7022 length, are found.
7023 (riscv_arg_location): Initialise the length of each location, a
7024 non-zero length now indicates the location is in use.
7025 (riscv_push_dummy_call): Allow for the first location having a
7026 non-zero offset when setting up arguments.
7027 (riscv_return_value): Likewise, but for return values.
7028
7029 2019-04-11 Tom Tromey <tromey@adacore.com>
7030
7031 * utils.c (internal_vproblem): Make "msg" const.
7032
7033 2019-04-11 Alan Hayward <alan.hayward@arm.com>
7034
7035 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
7036 * trad-frame.c (trad_frame_reset_saved_regs): New function.
7037 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
7038 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
7039
7040 2019-04-10 Kevin Buettner <kevinb@redhat.com>
7041
7042 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
7043 function.
7044 (fill_gregset): Call amd64_linux_collect_native_gregset instead
7045 of amd64_collect_native_gregset.
7046 (amd64_linux_nat_target::store_registers): Likewise.
7047
7048 2019-04-10 Tom Tromey <tom@tromey.com>
7049
7050 * symtab.c (lookup_global_symbol_from_objfile)
7051 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
7052 * objfiles.h (class separate_debug_iterator): New.
7053 (class separate_debug_range): New.
7054 (struct objfile) <separate_debug_objfiles>: New method.
7055 (objfile_separate_debug_iterate): Don't declare.
7056 * objfiles.c (separate_debug_iterator::operator++): Rename from
7057 objfile_separate_debug_iterate.
7058 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
7059 iterator.
7060 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
7061 iterator.
7062
7063 2019-04-10 Tom Tromey <tom@tromey.com>
7064
7065 * symfile.c (reread_symbols): Remove old comment.
7066 * objfiles.c (free_all_objfiles): Fix a typo.
7067
7068 2019-04-10 Tom Tromey <tom@tromey.com>
7069
7070 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
7071 * minsyms.c (lookup_minimal_symbol): Use foreach.
7072 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7073 (lookup_minimal_symbol_solib_trampoline): Likewise.
7074 * symfile.c (reread_symbols): Use foreach.
7075
7076 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
7077 Tom Tromey <tromey@adacore.com>
7078
7079 PR rust/24414:
7080 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
7081 (rust_lex_int_test): Change "value" to be LONGEST.
7082 (rust_lex_tests): Add test for long integer literal.
7083
7084 2019-04-09 Tom Tromey <tromey@adacore.com>
7085
7086 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
7087 to bool.
7088 (extended_remote_target::attach): Update.
7089 (remote_target::remote_notice_new_inferior): Update.
7090 (remote_target::add_current_inferior_and_thread): Update.
7091 * inferior.c (exit_inferior_1): Use "false".
7092 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
7093
7094 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
7095
7096 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
7097 the "start" command.
7098
7099 2019-04-08 Kevin Buettner <kevinb@redhat.com>
7100
7101 * python/py-inferior.c (infpy_thread_from_thread_handle):
7102 Adjust comments to reflect renaming of thread_from_thread_handle
7103 to thread_from_handle. Adjust keywords. Fix type error message.
7104 (inferior_object_methods): Add thread_from_handle. Retain
7105 thread_from_thread_handle, but mark it as deprecated.
7106
7107 2019-04-08 Kevin Buettner <kevinb@redhat.com>
7108
7109 * gdbthread.h (find_thread_by_handle): Revise declaration.
7110 * thread.c (find_thread_by_handle): Likewise. Adjust
7111 implementation too.
7112 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
7113 support for buffer objects as handles.
7114
7115 2019-04-08 Kevin Buettner <kevinb@redhat.com>
7116
7117 * python/py-infthread.c (thpy_thread_handle): New function.
7118 (thread_object_methods): Register thpy_thread_handle.
7119
7120 2019-04-08 Kevin Buettner <kevinb@redhat.com>
7121
7122 * gdbthread.h (thread_to_thread_handle): Declare.
7123 * thread.c (gdbtypes.h): Include.
7124 (thread_to_thread_handle): New function.
7125
7126 * target.h (struct target_ops): Add thread_info_to_thread_handle.
7127 (target_thread_info_to_thread_handle): Declare.
7128 * target.c (target_thread_info_to_thread_handle): New function.
7129 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
7130 * target-delegates.c: Regenerate.
7131
7132 * linux-thread-db.c (class thread_db_target): Add method
7133 thread_info_to_thread_handle.
7134 (thread_db_target::thread_info_to_thread_handle): Define.
7135 * remote.c (class remote_target): Add new method
7136 thread_info_to_thread_handle.
7137 (remote_target::thread_info_to_thread_handle): Define.
7138
7139 2019-04-08 Pedro Alves <palves@redhat.com>
7140
7141 * common/common-exceptions.c (throw_exception): Don't create
7142 named object to throw; throw directly.
7143 (throw_it): Likewise. Don't initialize gdb_exception::message
7144 here, with new; pass FMT and AP to the ctor instead.
7145 * common/common-exceptions.h: Include <string>.
7146 (gdb_exception::gdb_exception(enum return_reason, enum errors,
7147 const char *, va_list)): New ctor. Use std::make_shared.
7148 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
7149 errors)): Delete.
7150 (gdb_exception_error::gdb_exception_error(enum errors, const char
7151 *, va_list)): New.
7152 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
7153 Add assertion.
7154 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
7155 errors)): Delete.
7156 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
7157 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
7158 Add assertion.
7159
7160 2019-04-08 Tom Tromey <tom@tromey.com>
7161
7162 * valops.c (value_rtti_indirect_type): Replace throw_exception
7163 with throw.
7164 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
7165 with throw.
7166 * thread.c (thr_try_catch_cmd): Replace throw_exception with
7167 throw.
7168 * target.c (target_translate_tls_address): Replace throw_exception
7169 with throw.
7170 * stack.c (frame_apply_command_count): Replace throw_exception
7171 with throw.
7172 * solib-spu.c (append_ocl_sos): Replace throw_exception with
7173 throw.
7174 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
7175 with throw.
7176 * rs6000-tdep.c (rs6000_frame_cache)
7177 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
7178 * remote.c: Replace throw_exception with throw.
7179 * record-full.c (record_full_message, record_full_wait_1)
7180 (record_full_restore): Replace throw_exception with throw.
7181 * record-btrace.c:
7182 (get_thread_current_frame_id, record_btrace_start_replaying)
7183 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
7184 (cmd_record_btrace_start): Replace throw_exception with throw.
7185 * parse.c (parse_exp_in_context_1): Replace throw_exception with
7186 throw.
7187 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
7188 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
7189 * linespec.c:
7190 (find_linespec_symbols): Replace throw_exception with throw.
7191 * infrun.c (displaced_step_prepare, resume): Replace
7192 throw_exception with throw.
7193 * infcmd.c (post_create_inferior): Replace throw_exception with
7194 throw.
7195 * inf-loop.c (inferior_event_handler): Replace throw_exception
7196 with throw.
7197 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
7198 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
7199 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
7200 (get_prev_frame_always, get_frame_pc_if_available)
7201 (get_frame_address_in_block_if_available, get_frame_language):
7202 Replace throw_exception with throw.
7203 * frame-unwind.c (frame_unwind_try_unwinder): Replace
7204 throw_exception with throw.
7205 * eval.c (fetch_subexp_value, evaluate_var_value)
7206 (evaluate_funcall, evaluate_subexp_standard): Replace
7207 throw_exception with throw.
7208 * dwarf2loc.c (call_site_find_chain)
7209 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
7210 Replace throw_exception with throw.
7211 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
7212 with throw.
7213 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
7214 throw.
7215 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
7216 * completer.c (complete_line_internal): Replace throw_exception
7217 with throw.
7218 * compile/compile-object-run.c (compile_object_run): Replace
7219 throw_exception with throw.
7220 * cli/cli-script.c (process_next_line): Replace throw_exception
7221 with throw.
7222 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
7223 (btrace_enable, btrace_maint_update_pt_packets): Replace
7224 throw_exception with throw.
7225 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
7226 throw_exception with throw.
7227 * break-catch-throw.c (re_set_exception_catchpoint): Replace
7228 throw_exception with throw.
7229 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
7230 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
7231 * aarch64-tdep.c (aarch64_make_prologue_cache)
7232 (aarch64_make_stub_cache): Replace throw_exception with throw.
7233
7234 2019-04-08 Tom Tromey <tom@tromey.com>
7235
7236 * common/common-exceptions.c (throw_exception): Rename from
7237 throw_exception_cxx. Remove old copy. Make argument const.
7238 (throw_it): Create and throw exception objects directly.
7239 * common/common-exceptions.h (throw_exception): Make argument
7240 const.
7241 (struct gdb_exception_error): Add constructor.
7242 (struct gdb_exception_quit): Add constructor.
7243
7244 2019-04-08 Tom Tromey <tom@tromey.com>
7245
7246 * common/common-exceptions.h (exception_rethrow): Don't declare.
7247 (TRY_SJLJ): Update comment.
7248 (TRY, CATCH, END_CATCH): Remove.
7249 * common/common-exceptions.c (exception_rethrow): Remove.
7250
7251 2019-04-08 Tom Tromey <tom@tromey.com>
7252
7253 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
7254 Remove.
7255 (gdb_exception_error): Rename from
7256 gdb_exception_RETURN_MASK_ERROR.
7257 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
7258 (gdb_quit_bad_alloc): Update.
7259 * aarch64-tdep.c: Update.
7260 * ada-lang.c: Update.
7261 * ada-typeprint.c: Update.
7262 * ada-valprint.c: Update.
7263 * amd64-tdep.c: Update.
7264 * arch-utils.c: Update.
7265 * break-catch-throw.c: Update.
7266 * breakpoint.c: Update.
7267 * btrace.c: Update.
7268 * c-varobj.c: Update.
7269 * cli/cli-cmds.c: Update.
7270 * cli/cli-interp.c: Update.
7271 * cli/cli-script.c: Update.
7272 * common/common-exceptions.c: Update.
7273 * common/new-op.c: Update.
7274 * common/selftest.c: Update.
7275 * compile/compile-c-symbols.c: Update.
7276 * compile/compile-cplus-symbols.c: Update.
7277 * compile/compile-object-load.c: Update.
7278 * compile/compile-object-run.c: Update.
7279 * completer.c: Update.
7280 * corelow.c: Update.
7281 * cp-abi.c: Update.
7282 * cp-support.c: Update.
7283 * cp-valprint.c: Update.
7284 * darwin-nat.c: Update.
7285 * disasm-selftests.c: Update.
7286 * dtrace-probe.c: Update.
7287 * dwarf-index-cache.c: Update.
7288 * dwarf-index-write.c: Update.
7289 * dwarf2-frame-tailcall.c: Update.
7290 * dwarf2-frame.c: Update.
7291 * dwarf2loc.c: Update.
7292 * dwarf2read.c: Update.
7293 * eval.c: Update.
7294 * event-loop.c: Update.
7295 * event-top.c: Update.
7296 * exec.c: Update.
7297 * f-valprint.c: Update.
7298 * fbsd-tdep.c: Update.
7299 * frame-unwind.c: Update.
7300 * frame.c: Update.
7301 * gdbtypes.c: Update.
7302 * gnu-v3-abi.c: Update.
7303 * guile/guile-internal.h: Update.
7304 * guile/scm-block.c: Update.
7305 * guile/scm-breakpoint.c: Update.
7306 * guile/scm-cmd.c: Update.
7307 * guile/scm-disasm.c: Update.
7308 * guile/scm-frame.c: Update.
7309 * guile/scm-lazy-string.c: Update.
7310 * guile/scm-math.c: Update.
7311 * guile/scm-param.c: Update.
7312 * guile/scm-ports.c: Update.
7313 * guile/scm-pretty-print.c: Update.
7314 * guile/scm-symbol.c: Update.
7315 * guile/scm-symtab.c: Update.
7316 * guile/scm-type.c: Update.
7317 * guile/scm-value.c: Update.
7318 * i386-linux-tdep.c: Update.
7319 * i386-tdep.c: Update.
7320 * inf-loop.c: Update.
7321 * infcall.c: Update.
7322 * infcmd.c: Update.
7323 * infrun.c: Update.
7324 * jit.c: Update.
7325 * language.c: Update.
7326 * linespec.c: Update.
7327 * linux-fork.c: Update.
7328 * linux-nat.c: Update.
7329 * linux-tdep.c: Update.
7330 * linux-thread-db.c: Update.
7331 * main.c: Update.
7332 * mi/mi-cmd-break.c: Update.
7333 * mi/mi-cmd-stack.c: Update.
7334 * mi/mi-interp.c: Update.
7335 * mi/mi-main.c: Update.
7336 * objc-lang.c: Update.
7337 * p-valprint.c: Update.
7338 * parse.c: Update.
7339 * ppc-linux-tdep.c: Update.
7340 * printcmd.c: Update.
7341 * python/py-arch.c: Update.
7342 * python/py-breakpoint.c: Update.
7343 * python/py-cmd.c: Update.
7344 * python/py-finishbreakpoint.c: Update.
7345 * python/py-frame.c: Update.
7346 * python/py-framefilter.c: Update.
7347 * python/py-gdb-readline.c: Update.
7348 * python/py-inferior.c: Update.
7349 * python/py-infthread.c: Update.
7350 * python/py-lazy-string.c: Update.
7351 * python/py-linetable.c: Update.
7352 * python/py-objfile.c: Update.
7353 * python/py-param.c: Update.
7354 * python/py-prettyprint.c: Update.
7355 * python/py-progspace.c: Update.
7356 * python/py-record-btrace.c: Update.
7357 * python/py-record.c: Update.
7358 * python/py-symbol.c: Update.
7359 * python/py-type.c: Update.
7360 * python/py-unwind.c: Update.
7361 * python/py-utils.c: Update.
7362 * python/py-value.c: Update.
7363 * python/python.c: Update.
7364 * record-btrace.c: Update.
7365 * record-full.c: Update.
7366 * remote-fileio.c: Update.
7367 * remote.c: Update.
7368 * riscv-tdep.c: Update.
7369 * rs6000-aix-tdep.c: Update.
7370 * rs6000-tdep.c: Update.
7371 * rust-exp.y: Update.
7372 * rust-lang.c: Update.
7373 * s390-tdep.c: Update.
7374 * selftest-arch.c: Update.
7375 * solib-dsbt.c: Update.
7376 * solib-frv.c: Update.
7377 * solib-spu.c: Update.
7378 * solib-svr4.c: Update.
7379 * solib.c: Update.
7380 * sparc64-linux-tdep.c: Update.
7381 * stack.c: Update.
7382 * symfile-mem.c: Update.
7383 * symmisc.c: Update.
7384 * target.c: Update.
7385 * thread.c: Update.
7386 * top.c: Update.
7387 * tracefile-tfile.c: Update.
7388 * tui/tui.c: Update.
7389 * typeprint.c: Update.
7390 * unittests/cli-utils-selftests.c: Update.
7391 * unittests/parse-connection-spec-selftests.c: Update.
7392 * valops.c: Update.
7393 * valprint.c: Update.
7394 * value.c: Update.
7395 * varobj.c: Update.
7396 * windows-nat.c: Update.
7397 * x86-linux-nat.c: Update.
7398 * xml-support.c: Update.
7399
7400 2019-04-08 Tom Tromey <tom@tromey.com>
7401
7402 * xml-support.c: Use C++ exception handling.
7403 * x86-linux-nat.c: Use C++ exception handling.
7404 * windows-nat.c: Use C++ exception handling.
7405 * varobj.c: Use C++ exception handling.
7406 * value.c: Use C++ exception handling.
7407 * valprint.c: Use C++ exception handling.
7408 * valops.c: Use C++ exception handling.
7409 * unittests/parse-connection-spec-selftests.c: Use C++ exception
7410 handling.
7411 * unittests/cli-utils-selftests.c: Use C++ exception handling.
7412 * typeprint.c: Use C++ exception handling.
7413 * tui/tui.c: Use C++ exception handling.
7414 * tracefile-tfile.c: Use C++ exception handling.
7415 * top.c: Use C++ exception handling.
7416 * thread.c: Use C++ exception handling.
7417 * target.c: Use C++ exception handling.
7418 * symmisc.c: Use C++ exception handling.
7419 * symfile-mem.c: Use C++ exception handling.
7420 * stack.c: Use C++ exception handling.
7421 * sparc64-linux-tdep.c: Use C++ exception handling.
7422 * solib.c: Use C++ exception handling.
7423 * solib-svr4.c: Use C++ exception handling.
7424 * solib-spu.c: Use C++ exception handling.
7425 * solib-frv.c: Use C++ exception handling.
7426 * solib-dsbt.c: Use C++ exception handling.
7427 * selftest-arch.c: Use C++ exception handling.
7428 * s390-tdep.c: Use C++ exception handling.
7429 * rust-lang.c: Use C++ exception handling.
7430 * rust-exp.y: Use C++ exception handling.
7431 * rs6000-tdep.c: Use C++ exception handling.
7432 * rs6000-aix-tdep.c: Use C++ exception handling.
7433 * riscv-tdep.c: Use C++ exception handling.
7434 * remote.c: Use C++ exception handling.
7435 * remote-fileio.c: Use C++ exception handling.
7436 * record-full.c: Use C++ exception handling.
7437 * record-btrace.c: Use C++ exception handling.
7438 * python/python.c: Use C++ exception handling.
7439 * python/py-value.c: Use C++ exception handling.
7440 * python/py-utils.c: Use C++ exception handling.
7441 * python/py-unwind.c: Use C++ exception handling.
7442 * python/py-type.c: Use C++ exception handling.
7443 * python/py-symbol.c: Use C++ exception handling.
7444 * python/py-record.c: Use C++ exception handling.
7445 * python/py-record-btrace.c: Use C++ exception handling.
7446 * python/py-progspace.c: Use C++ exception handling.
7447 * python/py-prettyprint.c: Use C++ exception handling.
7448 * python/py-param.c: Use C++ exception handling.
7449 * python/py-objfile.c: Use C++ exception handling.
7450 * python/py-linetable.c: Use C++ exception handling.
7451 * python/py-lazy-string.c: Use C++ exception handling.
7452 * python/py-infthread.c: Use C++ exception handling.
7453 * python/py-inferior.c: Use C++ exception handling.
7454 * python/py-gdb-readline.c: Use C++ exception handling.
7455 * python/py-framefilter.c: Use C++ exception handling.
7456 * python/py-frame.c: Use C++ exception handling.
7457 * python/py-finishbreakpoint.c: Use C++ exception handling.
7458 * python/py-cmd.c: Use C++ exception handling.
7459 * python/py-breakpoint.c: Use C++ exception handling.
7460 * python/py-arch.c: Use C++ exception handling.
7461 * printcmd.c: Use C++ exception handling.
7462 * ppc-linux-tdep.c: Use C++ exception handling.
7463 * parse.c: Use C++ exception handling.
7464 * p-valprint.c: Use C++ exception handling.
7465 * objc-lang.c: Use C++ exception handling.
7466 * mi/mi-main.c: Use C++ exception handling.
7467 * mi/mi-interp.c: Use C++ exception handling.
7468 * mi/mi-cmd-stack.c: Use C++ exception handling.
7469 * mi/mi-cmd-break.c: Use C++ exception handling.
7470 * main.c: Use C++ exception handling.
7471 * linux-thread-db.c: Use C++ exception handling.
7472 * linux-tdep.c: Use C++ exception handling.
7473 * linux-nat.c: Use C++ exception handling.
7474 * linux-fork.c: Use C++ exception handling.
7475 * linespec.c: Use C++ exception handling.
7476 * language.c: Use C++ exception handling.
7477 * jit.c: Use C++ exception handling.
7478 * infrun.c: Use C++ exception handling.
7479 * infcmd.c: Use C++ exception handling.
7480 * infcall.c: Use C++ exception handling.
7481 * inf-loop.c: Use C++ exception handling.
7482 * i386-tdep.c: Use C++ exception handling.
7483 * i386-linux-tdep.c: Use C++ exception handling.
7484 * guile/scm-value.c: Use C++ exception handling.
7485 * guile/scm-type.c: Use C++ exception handling.
7486 * guile/scm-symtab.c: Use C++ exception handling.
7487 * guile/scm-symbol.c: Use C++ exception handling.
7488 * guile/scm-pretty-print.c: Use C++ exception handling.
7489 * guile/scm-ports.c: Use C++ exception handling.
7490 * guile/scm-param.c: Use C++ exception handling.
7491 * guile/scm-math.c: Use C++ exception handling.
7492 * guile/scm-lazy-string.c: Use C++ exception handling.
7493 * guile/scm-frame.c: Use C++ exception handling.
7494 * guile/scm-disasm.c: Use C++ exception handling.
7495 * guile/scm-cmd.c: Use C++ exception handling.
7496 * guile/scm-breakpoint.c: Use C++ exception handling.
7497 * guile/scm-block.c: Use C++ exception handling.
7498 * guile/guile-internal.h: Use C++ exception handling.
7499 * gnu-v3-abi.c: Use C++ exception handling.
7500 * gdbtypes.c: Use C++ exception handling.
7501 * frame.c: Use C++ exception handling.
7502 * frame-unwind.c: Use C++ exception handling.
7503 * fbsd-tdep.c: Use C++ exception handling.
7504 * f-valprint.c: Use C++ exception handling.
7505 * exec.c: Use C++ exception handling.
7506 * event-top.c: Use C++ exception handling.
7507 * event-loop.c: Use C++ exception handling.
7508 * eval.c: Use C++ exception handling.
7509 * dwarf2read.c: Use C++ exception handling.
7510 * dwarf2loc.c: Use C++ exception handling.
7511 * dwarf2-frame.c: Use C++ exception handling.
7512 * dwarf2-frame-tailcall.c: Use C++ exception handling.
7513 * dwarf-index-write.c: Use C++ exception handling.
7514 * dwarf-index-cache.c: Use C++ exception handling.
7515 * dtrace-probe.c: Use C++ exception handling.
7516 * disasm-selftests.c: Use C++ exception handling.
7517 * darwin-nat.c: Use C++ exception handling.
7518 * cp-valprint.c: Use C++ exception handling.
7519 * cp-support.c: Use C++ exception handling.
7520 * cp-abi.c: Use C++ exception handling.
7521 * corelow.c: Use C++ exception handling.
7522 * completer.c: Use C++ exception handling.
7523 * compile/compile-object-run.c: Use C++ exception handling.
7524 * compile/compile-object-load.c: Use C++ exception handling.
7525 * compile/compile-cplus-symbols.c: Use C++ exception handling.
7526 * compile/compile-c-symbols.c: Use C++ exception handling.
7527 * common/selftest.c: Use C++ exception handling.
7528 * common/new-op.c: Use C++ exception handling.
7529 * cli/cli-script.c: Use C++ exception handling.
7530 * cli/cli-interp.c: Use C++ exception handling.
7531 * cli/cli-cmds.c: Use C++ exception handling.
7532 * c-varobj.c: Use C++ exception handling.
7533 * btrace.c: Use C++ exception handling.
7534 * breakpoint.c: Use C++ exception handling.
7535 * break-catch-throw.c: Use C++ exception handling.
7536 * arch-utils.c: Use C++ exception handling.
7537 * amd64-tdep.c: Use C++ exception handling.
7538 * ada-valprint.c: Use C++ exception handling.
7539 * ada-typeprint.c: Use C++ exception handling.
7540 * ada-lang.c: Use C++ exception handling.
7541 * aarch64-tdep.c: Use C++ exception handling.
7542
7543 2019-04-08 Tom Tromey <tom@tromey.com>
7544
7545 * xml-support.c (gdb_xml_parser::parse): Update.
7546 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
7547 * value.c (show_convenience): Update.
7548 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
7549 (test_parse_flags_qcs): Update.
7550 * thread.c (thr_try_catch_cmd): Update.
7551 * target.c (target_translate_tls_address): Update.
7552 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
7553 (info_frame_command_core, frame_apply_command_count): Update.
7554 * rust-exp.y (rust_lex_exception_test): Update.
7555 * riscv-tdep.c (riscv_print_one_register_info): Update.
7556 * remote.c (remote_target::enable_btrace): Update.
7557 * record-btrace.c (record_btrace_enable_warn): Update.
7558 * python/py-utils.c (gdbpy_convert_exception): Update.
7559 * printcmd.c (do_one_display, print_variable_and_value): Update.
7560 * mi/mi-main.c (mi_print_exception): Update.
7561 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
7562 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
7563 * linux-nat.c (linux_nat_target::attach): Update.
7564 * linux-fork.c (class scoped_switch_fork_info): Update.
7565 * infrun.c (displaced_step_prepare): Update.
7566 * infcall.c (call_function_by_hand_dummy): Update.
7567 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
7568 * gnu-v3-abi.c (print_one_vtable): Update.
7569 * frame.c (get_prev_frame_always): Update.
7570 * f-valprint.c (info_common_command_for_block): Update.
7571 * exec.c (try_open_exec_file): Update.
7572 * exceptions.c (print_exception, exception_print)
7573 (exception_fprintf, exception_print_same): Update.
7574 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
7575 * dwarf-index-cache.c (index_cache::store)
7576 (index_cache::lookup_gdb_index): Update.
7577 * darwin-nat.c (maybe_cache_shell): Update.
7578 * cp-valprint.c (cp_print_value_fields): Update.
7579 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
7580 (gcc_cplus_symbol_address): Update.
7581 * compile/compile-c-symbols.c (gcc_convert_symbol)
7582 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
7583 * common/selftest.c: Update.
7584 * common/common-exceptions.h (struct gdb_exception) <message>: Now
7585 a std::string.
7586 (exception_try_scope_entry, exception_try_scope_exit): Don't
7587 declare.
7588 (struct exception_try_scope): Remove.
7589 (TRY): Don't use exception_try_scope.
7590 (struct gdb_exception): Add constructor, operator=.
7591 <what>: New method.
7592 (struct gdb_exception_RETURN_MASK_ALL)
7593 (struct gdb_exception_RETURN_MASK_ERROR)
7594 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
7595 (struct gdb_quit_bad_alloc): Update.
7596 * common/common-exceptions.c (exception_none): Change
7597 initializer.
7598 (struct catcher) <state, exception>: Initialize inline.
7599 <prev>: Remove member.
7600 (current_catcher): Remove.
7601 (catchers): New global.
7602 (exceptions_state_mc_init): Simplify.
7603 (catcher_pop): Remove.
7604 (exceptions_state_mc, exceptions_state_mc_catch): Update.
7605 (try_scope_depth, exception_try_scope_entry)
7606 (exception_try_scope_exit): Remove.
7607 (throw_exception_sjlj): Update.
7608 (exception_messages, exception_messages_size): Remove.
7609 (throw_it): Simplify.
7610 (gdb_exception_sliced_copy): Remove.
7611 (throw_exception_cxx): Update.
7612 * cli/cli-script.c (script_from_file): Update.
7613 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
7614 Update.
7615 * ada-valprint.c (ada_val_print): Update.
7616 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
7617 (create_excep_cond_exprs): Update.
7618
7619 2019-04-08 Tom Tromey <tom@tromey.com>
7620
7621 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
7622 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
7623 (TRY, CATCH, END_CATCH): Remove some definitions.
7624 * common/common-exceptions.c: Don't use GDB_XCPT.
7625 (catcher_list_size): Remove.
7626 (throw_exception, throw_it): Simplify.
7627
7628 2019-04-05 Tom Tromey <tom@tromey.com>
7629
7630 Revert the header-sorting patch.
7631 * ft32-tdep.c: Revert.
7632 * frv-tdep.c: Revert.
7633 * frv-linux-tdep.c: Revert.
7634 * frame.c: Revert.
7635 * frame-unwind.c: Revert.
7636 * frame-base.c: Revert.
7637 * fork-child.c: Revert.
7638 * findvar.c: Revert.
7639 * findcmd.c: Revert.
7640 * filesystem.c: Revert.
7641 * filename-seen-cache.h: Revert.
7642 * filename-seen-cache.c: Revert.
7643 * fbsd-tdep.c: Revert.
7644 * fbsd-nat.h: Revert.
7645 * fbsd-nat.c: Revert.
7646 * f-valprint.c: Revert.
7647 * f-typeprint.c: Revert.
7648 * f-lang.c: Revert.
7649 * extension.h: Revert.
7650 * extension.c: Revert.
7651 * extension-priv.h: Revert.
7652 * expprint.c: Revert.
7653 * exec.h: Revert.
7654 * exec.c: Revert.
7655 * exceptions.c: Revert.
7656 * event-top.c: Revert.
7657 * event-loop.c: Revert.
7658 * eval.c: Revert.
7659 * elfread.c: Revert.
7660 * dwarf2read.h: Revert.
7661 * dwarf2read.c: Revert.
7662 * dwarf2loc.c: Revert.
7663 * dwarf2expr.h: Revert.
7664 * dwarf2expr.c: Revert.
7665 * dwarf2-frame.c: Revert.
7666 * dwarf2-frame-tailcall.c: Revert.
7667 * dwarf-index-write.h: Revert.
7668 * dwarf-index-write.c: Revert.
7669 * dwarf-index-common.c: Revert.
7670 * dwarf-index-cache.h: Revert.
7671 * dwarf-index-cache.c: Revert.
7672 * dummy-frame.c: Revert.
7673 * dtrace-probe.c: Revert.
7674 * disasm.h: Revert.
7675 * disasm.c: Revert.
7676 * disasm-selftests.c: Revert.
7677 * dictionary.c: Revert.
7678 * dicos-tdep.c: Revert.
7679 * demangle.c: Revert.
7680 * dcache.h: Revert.
7681 * dcache.c: Revert.
7682 * darwin-nat.h: Revert.
7683 * darwin-nat.c: Revert.
7684 * darwin-nat-info.c: Revert.
7685 * d-valprint.c: Revert.
7686 * d-namespace.c: Revert.
7687 * d-lang.c: Revert.
7688 * ctf.c: Revert.
7689 * csky-tdep.c: Revert.
7690 * csky-linux-tdep.c: Revert.
7691 * cris-tdep.c: Revert.
7692 * cris-linux-tdep.c: Revert.
7693 * cp-valprint.c: Revert.
7694 * cp-support.c: Revert.
7695 * cp-namespace.c: Revert.
7696 * cp-abi.c: Revert.
7697 * corelow.c: Revert.
7698 * corefile.c: Revert.
7699 * continuations.c: Revert.
7700 * completer.h: Revert.
7701 * completer.c: Revert.
7702 * complaints.c: Revert.
7703 * coffread.c: Revert.
7704 * coff-pe-read.c: Revert.
7705 * cli-out.h: Revert.
7706 * cli-out.c: Revert.
7707 * charset.c: Revert.
7708 * c-varobj.c: Revert.
7709 * c-valprint.c: Revert.
7710 * c-typeprint.c: Revert.
7711 * c-lang.c: Revert.
7712 * buildsym.c: Revert.
7713 * buildsym-legacy.c: Revert.
7714 * build-id.h: Revert.
7715 * build-id.c: Revert.
7716 * btrace.c: Revert.
7717 * bsd-uthread.c: Revert.
7718 * breakpoint.h: Revert.
7719 * breakpoint.c: Revert.
7720 * break-catch-throw.c: Revert.
7721 * break-catch-syscall.c: Revert.
7722 * break-catch-sig.c: Revert.
7723 * blockframe.c: Revert.
7724 * block.c: Revert.
7725 * bfin-tdep.c: Revert.
7726 * bfin-linux-tdep.c: Revert.
7727 * bfd-target.c: Revert.
7728 * bcache.c: Revert.
7729 * ax-general.c: Revert.
7730 * ax-gdb.h: Revert.
7731 * ax-gdb.c: Revert.
7732 * avr-tdep.c: Revert.
7733 * auxv.c: Revert.
7734 * auto-load.c: Revert.
7735 * arm-wince-tdep.c: Revert.
7736 * arm-tdep.c: Revert.
7737 * arm-symbian-tdep.c: Revert.
7738 * arm-pikeos-tdep.c: Revert.
7739 * arm-obsd-tdep.c: Revert.
7740 * arm-nbsd-tdep.c: Revert.
7741 * arm-nbsd-nat.c: Revert.
7742 * arm-linux-tdep.c: Revert.
7743 * arm-linux-nat.c: Revert.
7744 * arm-fbsd-tdep.c: Revert.
7745 * arm-fbsd-nat.c: Revert.
7746 * arm-bsd-tdep.c: Revert.
7747 * arch-utils.c: Revert.
7748 * arc-tdep.c: Revert.
7749 * arc-newlib-tdep.c: Revert.
7750 * annotate.h: Revert.
7751 * annotate.c: Revert.
7752 * amd64-windows-tdep.c: Revert.
7753 * amd64-windows-nat.c: Revert.
7754 * amd64-tdep.c: Revert.
7755 * amd64-sol2-tdep.c: Revert.
7756 * amd64-obsd-tdep.c: Revert.
7757 * amd64-obsd-nat.c: Revert.
7758 * amd64-nbsd-tdep.c: Revert.
7759 * amd64-nbsd-nat.c: Revert.
7760 * amd64-nat.c: Revert.
7761 * amd64-linux-tdep.c: Revert.
7762 * amd64-linux-nat.c: Revert.
7763 * amd64-fbsd-tdep.c: Revert.
7764 * amd64-fbsd-nat.c: Revert.
7765 * amd64-dicos-tdep.c: Revert.
7766 * amd64-darwin-tdep.c: Revert.
7767 * amd64-bsd-nat.c: Revert.
7768 * alpha-tdep.c: Revert.
7769 * alpha-obsd-tdep.c: Revert.
7770 * alpha-nbsd-tdep.c: Revert.
7771 * alpha-mdebug-tdep.c: Revert.
7772 * alpha-linux-tdep.c: Revert.
7773 * alpha-linux-nat.c: Revert.
7774 * alpha-bsd-tdep.c: Revert.
7775 * alpha-bsd-nat.c: Revert.
7776 * aix-thread.c: Revert.
7777 * agent.c: Revert.
7778 * addrmap.c: Revert.
7779 * ada-varobj.c: Revert.
7780 * ada-valprint.c: Revert.
7781 * ada-typeprint.c: Revert.
7782 * ada-tasks.c: Revert.
7783 * ada-lang.c: Revert.
7784 * aarch64-tdep.c: Revert.
7785 * aarch64-ravenscar-thread.c: Revert.
7786 * aarch64-newlib-tdep.c: Revert.
7787 * aarch64-linux-tdep.c: Revert.
7788 * aarch64-linux-nat.c: Revert.
7789 * aarch64-fbsd-tdep.c: Revert.
7790 * aarch64-fbsd-nat.c: Revert.
7791 * aarch32-linux-nat.c: Revert.
7792
7793 2019-04-05 Tom Tromey <tom@tromey.com>
7794
7795 * ft32-tdep.c: Sort headers.
7796 * frv-tdep.c: Sort headers.
7797 * frv-linux-tdep.c: Sort headers.
7798 * frame.c: Sort headers.
7799 * frame-unwind.c: Sort headers.
7800 * frame-base.c: Sort headers.
7801 * fork-child.c: Sort headers.
7802 * findvar.c: Sort headers.
7803 * findcmd.c: Sort headers.
7804 * filesystem.c: Sort headers.
7805 * filename-seen-cache.h: Sort headers.
7806 * filename-seen-cache.c: Sort headers.
7807 * fbsd-tdep.c: Sort headers.
7808 * fbsd-nat.h: Sort headers.
7809 * fbsd-nat.c: Sort headers.
7810 * f-valprint.c: Sort headers.
7811 * f-typeprint.c: Sort headers.
7812 * f-lang.c: Sort headers.
7813 * extension.h: Sort headers.
7814 * extension.c: Sort headers.
7815 * extension-priv.h: Sort headers.
7816 * expprint.c: Sort headers.
7817 * exec.h: Sort headers.
7818 * exec.c: Sort headers.
7819 * exceptions.c: Sort headers.
7820 * event-top.c: Sort headers.
7821 * event-loop.c: Sort headers.
7822 * eval.c: Sort headers.
7823 * elfread.c: Sort headers.
7824 * dwarf2read.h: Sort headers.
7825 * dwarf2read.c: Sort headers.
7826 * dwarf2loc.c: Sort headers.
7827 * dwarf2expr.h: Sort headers.
7828 * dwarf2expr.c: Sort headers.
7829 * dwarf2-frame.c: Sort headers.
7830 * dwarf2-frame-tailcall.c: Sort headers.
7831 * dwarf-index-write.h: Sort headers.
7832 * dwarf-index-write.c: Sort headers.
7833 * dwarf-index-common.c: Sort headers.
7834 * dwarf-index-cache.h: Sort headers.
7835 * dwarf-index-cache.c: Sort headers.
7836 * dummy-frame.c: Sort headers.
7837 * dtrace-probe.c: Sort headers.
7838 * disasm.h: Sort headers.
7839 * disasm.c: Sort headers.
7840 * disasm-selftests.c: Sort headers.
7841 * dictionary.c: Sort headers.
7842 * dicos-tdep.c: Sort headers.
7843 * demangle.c: Sort headers.
7844 * dcache.h: Sort headers.
7845 * dcache.c: Sort headers.
7846 * darwin-nat.h: Sort headers.
7847 * darwin-nat.c: Sort headers.
7848 * darwin-nat-info.c: Sort headers.
7849 * d-valprint.c: Sort headers.
7850 * d-namespace.c: Sort headers.
7851 * d-lang.c: Sort headers.
7852 * ctf.c: Sort headers.
7853 * csky-tdep.c: Sort headers.
7854 * csky-linux-tdep.c: Sort headers.
7855 * cris-tdep.c: Sort headers.
7856 * cris-linux-tdep.c: Sort headers.
7857 * cp-valprint.c: Sort headers.
7858 * cp-support.c: Sort headers.
7859 * cp-namespace.c: Sort headers.
7860 * cp-abi.c: Sort headers.
7861 * corelow.c: Sort headers.
7862 * corefile.c: Sort headers.
7863 * continuations.c: Sort headers.
7864 * completer.h: Sort headers.
7865 * completer.c: Sort headers.
7866 * complaints.c: Sort headers.
7867 * coffread.c: Sort headers.
7868 * coff-pe-read.c: Sort headers.
7869 * cli-out.h: Sort headers.
7870 * cli-out.c: Sort headers.
7871 * charset.c: Sort headers.
7872 * c-varobj.c: Sort headers.
7873 * c-valprint.c: Sort headers.
7874 * c-typeprint.c: Sort headers.
7875 * c-lang.c: Sort headers.
7876 * buildsym.c: Sort headers.
7877 * buildsym-legacy.c: Sort headers.
7878 * build-id.h: Sort headers.
7879 * build-id.c: Sort headers.
7880 * btrace.c: Sort headers.
7881 * bsd-uthread.c: Sort headers.
7882 * breakpoint.h: Sort headers.
7883 * breakpoint.c: Sort headers.
7884 * break-catch-throw.c: Sort headers.
7885 * break-catch-syscall.c: Sort headers.
7886 * break-catch-sig.c: Sort headers.
7887 * blockframe.c: Sort headers.
7888 * block.c: Sort headers.
7889 * bfin-tdep.c: Sort headers.
7890 * bfin-linux-tdep.c: Sort headers.
7891 * bfd-target.c: Sort headers.
7892 * bcache.c: Sort headers.
7893 * ax-general.c: Sort headers.
7894 * ax-gdb.h: Sort headers.
7895 * ax-gdb.c: Sort headers.
7896 * avr-tdep.c: Sort headers.
7897 * auxv.c: Sort headers.
7898 * auto-load.c: Sort headers.
7899 * arm-wince-tdep.c: Sort headers.
7900 * arm-tdep.c: Sort headers.
7901 * arm-symbian-tdep.c: Sort headers.
7902 * arm-pikeos-tdep.c: Sort headers.
7903 * arm-obsd-tdep.c: Sort headers.
7904 * arm-nbsd-tdep.c: Sort headers.
7905 * arm-nbsd-nat.c: Sort headers.
7906 * arm-linux-tdep.c: Sort headers.
7907 * arm-linux-nat.c: Sort headers.
7908 * arm-fbsd-tdep.c: Sort headers.
7909 * arm-fbsd-nat.c: Sort headers.
7910 * arm-bsd-tdep.c: Sort headers.
7911 * arch-utils.c: Sort headers.
7912 * arc-tdep.c: Sort headers.
7913 * arc-newlib-tdep.c: Sort headers.
7914 * annotate.h: Sort headers.
7915 * annotate.c: Sort headers.
7916 * amd64-windows-tdep.c: Sort headers.
7917 * amd64-windows-nat.c: Sort headers.
7918 * amd64-tdep.c: Sort headers.
7919 * amd64-sol2-tdep.c: Sort headers.
7920 * amd64-obsd-tdep.c: Sort headers.
7921 * amd64-obsd-nat.c: Sort headers.
7922 * amd64-nbsd-tdep.c: Sort headers.
7923 * amd64-nbsd-nat.c: Sort headers.
7924 * amd64-nat.c: Sort headers.
7925 * amd64-linux-tdep.c: Sort headers.
7926 * amd64-linux-nat.c: Sort headers.
7927 * amd64-fbsd-tdep.c: Sort headers.
7928 * amd64-fbsd-nat.c: Sort headers.
7929 * amd64-dicos-tdep.c: Sort headers.
7930 * amd64-darwin-tdep.c: Sort headers.
7931 * amd64-bsd-nat.c: Sort headers.
7932 * alpha-tdep.c: Sort headers.
7933 * alpha-obsd-tdep.c: Sort headers.
7934 * alpha-nbsd-tdep.c: Sort headers.
7935 * alpha-mdebug-tdep.c: Sort headers.
7936 * alpha-linux-tdep.c: Sort headers.
7937 * alpha-linux-nat.c: Sort headers.
7938 * alpha-bsd-tdep.c: Sort headers.
7939 * alpha-bsd-nat.c: Sort headers.
7940 * aix-thread.c: Sort headers.
7941 * agent.c: Sort headers.
7942 * addrmap.c: Sort headers.
7943 * ada-varobj.c: Sort headers.
7944 * ada-valprint.c: Sort headers.
7945 * ada-typeprint.c: Sort headers.
7946 * ada-tasks.c: Sort headers.
7947 * ada-lang.c: Sort headers.
7948 * aarch64-tdep.c: Sort headers.
7949 * aarch64-ravenscar-thread.c: Sort headers.
7950 * aarch64-newlib-tdep.c: Sort headers.
7951 * aarch64-linux-tdep.c: Sort headers.
7952 * aarch64-linux-nat.c: Sort headers.
7953 * aarch64-fbsd-tdep.c: Sort headers.
7954 * aarch64-fbsd-nat.c: Sort headers.
7955 * aarch32-linux-nat.c: Sort headers.
7956
7957 2019-04-04 Tom Tromey <tom@tromey.com>
7958
7959 * varobj.c (varobj_create): Update.
7960 * rust-exp.y (struct rust_parser) <update_innermost_block,
7961 lookup_symbol>: New methods.
7962 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
7963 Rename.
7964 (rust_parser::rust_lookup_type)
7965 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
7966 * printcmd.c (display_command, do_one_display): Update.
7967 * parser-defs.h (struct parser_state) <parser_state>: Add
7968 "tracker" parameter.
7969 (block_tracker): New member.
7970 (class innermost_block_tracker) <innermost_block_tracker>: Add
7971 "types" parameter.
7972 <reset>: Remove method.
7973 (innermost_block): Don't declare.
7974 (null_post_parser): Update.
7975 * parse.c (innermost_block): Remove global.
7976 (write_dollar_variable): Update.
7977 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
7978 Remove "tracker_types" parameter.
7979 (parse_expression): Add "tracker" parameter.
7980 (parse_expression_for_completion): Update.
7981 (null_post_parser): Add "tracker" parameter.
7982 * p-exp.y: Update rules.
7983 * m2-exp.y: Update rules.
7984 * language.h (struct language_defn) <la_post_parser>: Add
7985 "tracker" parameter.
7986 * go-exp.y: Update rules.
7987 * f-exp.y: Update rules.
7988 * expression.h (parse_expression, parse_exp_1): Add "tracker"
7989 parameter.
7990 * d-exp.y: Update rules.
7991 * c-exp.y: Update rules.
7992 * breakpoint.c (set_breakpoint_condition): Create an
7993 innermost_block_tracker.
7994 (watch_command_1): Likewise.
7995 * ada-lang.c (resolve): Add "tracker" parameter.
7996 (resolve_subexp): Likewise.
7997 * ada-exp.y (write_var_from_sym): Update.
7998
7999 2019-04-04 Tom Tromey <tom@tromey.com>
8000
8001 * type-stack.h: New file.
8002 * type-stack.c: New file.
8003 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
8004 type-stack.h.
8005 (insert_into_type_stack, insert_type, push_type, push_type_int)
8006 (insert_type_address_space, pop_type, pop_type_int)
8007 (pop_typelist, pop_type_stack, append_type_stack)
8008 (push_type_stack, get_type_stack, push_typelist)
8009 (follow_type_instance_flags, follow_types): Don't declare.
8010 * parse.c (type_stack): Remove global.
8011 (parse_exp_in_context): Update.
8012 (insert_into_type_stack, insert_type, push_type, push_type_int)
8013 (insert_type_address_space, pop_type, pop_type_int)
8014 (pop_typelist, pop_type_stack, append_type_stack)
8015 (push_type_stack, get_type_stack, push_typelist)
8016 (follow_type_instance_flags, follow_types): Remove (moved to
8017 type-stack.c).
8018 * f-exp.y (type_stack): New global.
8019 Update rules.
8020 (push_kind_type, f_parse): Update.
8021 * d-exp.y (type_stack): New global.
8022 Update rules.
8023 (d_parse): Update.
8024 * c-exp.y (struct c_parse_state) <type_stack>: New member.
8025 Update rules.
8026 * Makefile.in (COMMON_SFILES): Add type-stack.c.
8027 (HFILES_NO_SRCDIR): Add type-stack.h.
8028
8029 2019-04-04 Tom Tromey <tom@tromey.com>
8030
8031 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
8032 (rust_parser::convert_ast_to_expression, rust_parse)
8033 (rust_lex_test_completion, rust_lex_tests): Update.
8034 * parser-defs.h (struct expr_completion_state): New.
8035 (struct parser_state) <parser_state>: Add completion parameter.
8036 <mark_struct_expression, mark_completion_tag>: New methods.
8037 <parse_completion, m_completion_state>: New members.
8038 (prefixify_expression, null_post_parser): Update.
8039 (mark_struct_expression, mark_completion_tag): Don't declare.
8040 * parse.c (parse_completion, expout_last_struct)
8041 (expout_tag_completion_type, expout_completion_name): Remove
8042 globals.
8043 (parser_state::mark_struct_expression)
8044 (parser_state::mark_completion_tag): Now methods.
8045 (prefixify_expression): Add last_struct parameter.
8046 (prefixify_subexp): Likewise.
8047 (parse_exp_1): Update.
8048 (parse_exp_in_context): Add cstate parameter. Update.
8049 (parse_expression_for_completion): Create an
8050 expr_completion_state.
8051 (null_post_parser): Add "completion" parameter.
8052 * p-exp.y: Update rules.
8053 (yylex): Update.
8054 * language.h (struct language_defn) <la_post_parser>: Add
8055 "completing" parameter.
8056 * go-exp.y: Update rules.
8057 (lex_one_token): Update.
8058 * expression.h (parse_completion): Don't declare.
8059 * d-exp.y: Update rules.
8060 (lex_one_token): Update rules.
8061 * c-exp.y: Update rules.
8062 (lex_one_token): Update.
8063 * ada-lang.c (resolve): Add "parse_completion" parameter.
8064 (resolve_subexp): Likewise.
8065 (ada_resolve_function): Likewise.
8066
8067 2019-04-04 Tom Tromey <tom@tromey.com>
8068
8069 * parser-defs.h (struct parser_state) <start_arglist,
8070 end_arglist>: New methods.
8071 <arglist_len, m_funcall_chain>: New members.
8072 (arglist_len, start_arglist, end_arglist): Don't declare.
8073 * parse.c (arglist_len, funcall_chain): Remove global.
8074 (start_arglist, end_arglist): Remove functions.
8075 (parse_exp_in_context): Update.
8076 * p-exp.y: Update rules.
8077 * m2-exp.y: Update rules.
8078 * go-exp.y: Update rules.
8079 * f-exp.y: Update rules.
8080 * d-exp.y: Update rules.
8081 * c-exp.y: Update rules.
8082
8083 2019-04-04 Tom Tromey <tom@tromey.com>
8084
8085 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
8086 lex_operator, push_back>: New methods.
8087 Update all rules.
8088 (rust_parser::lex_hex, lex_escape): Rename and update.
8089 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
8090 (rust_parser::lex_operator): Rename and update.
8091 (rust_parser::lex_number, rustyylex, rustyyerror)
8092 (rust_lex_test_init, rust_lex_test_sequence)
8093 (rust_lex_test_push_back, rust_lex_tests): Update.
8094 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
8095 parameter.
8096 <lexptr, prev_lexptr>: New members.
8097 (lexptr, prev_lexptr): Don't declare.
8098 * parse.c (lexptr, prev_lexptr): Remove globals.
8099 (parse_exp_in_context): Update.
8100 * p-exp.y (yylex, yyerror): Update.
8101 * m2-exp.y (parse_number, yylex, yyerror): Update.
8102 * go-exp.y (lex_one_token, yyerror): Update.
8103 * f-exp.y (match_string_literal, yylex, yyerror): Update.
8104 * d-exp.y (lex_one_token, yyerror): Update.
8105 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
8106 (lex_one_token, yyerror): Update.
8107 * ada-lex.l (YY_INPUT): Update.
8108 (rewind_to_char): Update.
8109 * ada-exp.y (yyerror): Update.
8110
8111 2019-04-04 Tom Tromey <tom@tromey.com>
8112
8113 * rust-exp.y (rustyylex, rust_lex_tests): Update.
8114 * parser-defs.h (struct parser_state) <parser_state>: Add new
8115 parameter.
8116 <comma_terminates>: New member.
8117 (comma_terminates): Don't declare global.
8118 * parse.c (comma_terminates): Remove global.
8119 (parse_exp_in_context): Update.
8120 * p-exp.y (yylex): Update.
8121 * m2-exp.y (yylex): Update.
8122 * go-exp.y (lex_one_token): Update.
8123 * f-exp.y (yylex): Update.
8124 * d-exp.y (lex_one_token): Update.
8125 * c-exp.y (lex_one_token): Update.
8126 * ada-lex.l: Update.
8127
8128 2019-04-04 Tom Tromey <tom@tromey.com>
8129
8130 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
8131 (rustyylex, rust_lex_test_init, rust_lex_test_one)
8132 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
8133 * parser-defs.h (paren_depth): Don't declare.
8134 * parse.c (paren_depth): Remove global.
8135 (parse_exp_in_context): Update.
8136 * p-exp.y (paren_depth): New global.
8137 (pascal_parse): Initialize it.
8138 * m2-exp.y (paren_depth): New global.
8139 (m2_parse): Initialize it.
8140 * go-exp.y (paren_depth): New global.
8141 (go_parse): Initialize it.
8142 * f-exp.y (paren_depth): New global.
8143 (f_parse): Initialize it.
8144 * d-exp.y (paren_depth): New global.
8145 (d_parse): Initialize it.
8146 * c-exp.y (paren_depth): New global.
8147 (c_parse): Initialize it.
8148 * ada-lex.l (paren_depth): New global.
8149 (lexer_init): Initialize it.
8150
8151 2019-04-04 Tom Tromey <tom@tromey.com>
8152
8153 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
8154 (rust_parser::convert_ast_to_type)
8155 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
8156 * parser-defs.h (struct parser_state) <parser_state>: Add
8157 parameters. Initialize new members.
8158 <expression_context_block, expression_context_pc>: New members.
8159 * parse.c (expression_context_block, expression_context_pc):
8160 Remove globals.
8161 (parse_exp_in_context): Update.
8162 * p-exp.y: Update all rules.
8163 (yylex): Update.
8164 * m2-exp.y: Update all rules.
8165 (yylex): Update.
8166 * go-exp.y (yylex): Update.
8167 * f-exp.y (yylex): Update.
8168 * d-exp.y: Update all rules.
8169 (yylex): Update.
8170 * c-exp.y: Update all rules.
8171 (lex_one_token, classify_name, yylex, c_parse): Update.
8172 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
8173
8174 2019-04-04 Tom Tromey <tom@tromey.com>
8175
8176 * gdbarch.h, gdbarch.c: Rebuild.
8177 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
8178 * stap-probe.h:
8179 (struct stap_parse_info): Replace "parser_state" with
8180 "expr_builder".
8181 * parser-defs.h (struct expr_builder): Rename from "parser_state".
8182 (parser_state): New class.
8183 * parse.c (expr_builder): Rename.
8184 (expr_builder::release): Rename.
8185 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
8186 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
8187 (write_exp_elt_longcst, write_exp_elt_floatcst)
8188 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
8189 (write_exp_string_vector, write_exp_bitstring)
8190 (write_exp_msymbol, mark_struct_expression)
8191 (write_dollar_variable)
8192 (insert_type_address_space, increase_expout_size): Replace
8193 "parser_state" with "expr_builder".
8194 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
8195 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
8196 "parser_state" with "expr_builder".
8197
8198 2019-04-04 Tom Tromey <tom@tromey.com>
8199
8200 * rust-exp.y: Replace "parse_language" with method call.
8201 * p-exp.y:
8202 (yylex): Replace "parse_language" with method call.
8203 * m2-exp.y:
8204 (yylex): Replace "parse_language" with method call.
8205 * go-exp.y (classify_name): Replace "parse_language" with method
8206 call.
8207 * f-exp.y (yylex): Replace "parse_language" with method call.
8208 * d-exp.y (lex_one_token): Replace "parse_language" with method
8209 call.
8210 * c-exp.y:
8211 (lex_one_token, classify_name, yylex): Replace "parse_language"
8212 with method call.
8213 * ada-exp.y (find_primitive_type, type_char)
8214 (type_system_address): Replace "parse_language" with method call.
8215
8216 2019-04-04 Tom Tromey <tom@tromey.com>
8217
8218 * rust-exp.y: Replace "parse_gdbarch" with method call.
8219 * parse.c (write_dollar_variable, insert_type_address_space):
8220 Replace "parse_gdbarch" with method call.
8221 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
8222 call.
8223 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
8224 call.
8225 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
8226 "parse_gdbarch" with method call.
8227 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
8228 with method call.
8229 * f-exp.y (parse_type, parse_f_type, yylex): Replace
8230 "parse_gdbarch" with method call.
8231 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
8232 "parse_gdbarch" with method call.
8233 * c-exp.y (parse_type, parse_number, classify_name): Replace
8234 "parse_gdbarch" with method call.
8235 * ada-lex.l: Replace "parse_gdbarch" with method call.
8236 * ada-exp.y (parse_type, find_primitive_type, type_char)
8237 (type_system_address): Replace "parse_gdbarch" with method call.
8238
8239 2019-04-04 Tom Tromey <tom@tromey.com>
8240
8241 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
8242 * stap-probe.c (stap_parse_argument): Update.
8243 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
8244 initial_size parameter.
8245 * rust-exp.y (rust_lex_tests): Update.
8246 * parse.c (parser_state): Update.
8247 (parse_exp_in_context): Update.
8248 * parser-defs.h (struct parser_state) <parser_state>: Remove
8249 "initial_size" parameter.
8250
8251 2019-04-04 Tom Tromey <tom@tromey.com>
8252
8253 * parser-defs.h (increase_expout_size): Don't declare.
8254 * parse.c (increase_expout_size): Now static.
8255
8256 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
8257
8258 * gnu-nat.c (gnu_nat_target::wait): Fix
8259 target_waitstatus_to_string call.
8260
8261 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8262
8263 * eval.c (evaluate_subexp_standard): Handle internal functions
8264 during Fortran function call handling.
8265
8266 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8267
8268 * NEWS: Mention new internal functions.
8269 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
8270 (read_base_type): Use dwarf2_init_complex_target_type.
8271 * value.c (creal_internal_fn): New function.
8272 (cimag_internal_fn): New function.
8273 (_initialize_values): Register new internal functions.
8274
8275 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8276
8277 * infrun.c (stop_all_threads): If debug_infrun, always
8278 trace the wait status after wait_one, using
8279 target_waitstatus_to_string and target_pid_to_str.
8280 (handle_inferior_event): Replace various trace of
8281 wait status kind by a single trace.
8282 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
8283 wait status kind image by target_waitstatus_to_string.
8284 * target/waitstatus.c (target_waitstatus_to_string): Fix
8285 obsolete comment.
8286
8287 2019-04-01 Tom Tromey <tromey@adacore.com>
8288
8289 PR symtab/23331:
8290 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
8291
8292 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
8293 Pedro Alves <palves@redhat.com>
8294
8295 * top.c (quit_force): Call 'finalize_values'.
8296 * value.c (finalize_values): New function.
8297 * value.h (finalize_values): Declare.
8298
8299 2019-03-30 Eli Zaretskii <eliz@gnu.org>
8300
8301 * NEWS: Announce $_gdb_major and $_gdb_minor.
8302
8303 * top.c (init_gdb_version_vars): New function.
8304 (gdb_init): Call init_gdb_version_vars.
8305
8306 2019-03-29 Tom Tromey <tromey@adacore.com>
8307
8308 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
8309 help text. Remove dead code.
8310
8311 2019-03-29 Keith Seitz <keiths@redhat.com>
8312
8313 From Siddhesh Poyarekar:
8314 * f-lang.h (f77_get_upperbound): Return LONGEST.
8315 (f77_get_lowerbound): Likewise.
8316 * f-typeprint.c (f_type_print_varspec_suffix): Expand
8317 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
8318 print them.
8319 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
8320 plongest to format print it.
8321 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
8322 (f77_get_upperbound): Likewise.
8323 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
8324 LOWER_BOUND to LONGEST.
8325 (f77_create_arrayprint_offset_tbl): Likewise.
8326
8327 2019-03-29 Keith Seitz <keiths@redhat.com>
8328
8329 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
8330 %s/pulongest for TYPE_LENGTH instead of %d in format
8331 strings.
8332 * ada-typerint.c (ada_print_type): Likewise.
8333 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
8334 * compile/compile-c-support.c (generate_register_struct): Likewise.
8335 * gdbtypes.c (recursive_dump_type): Likewise.
8336 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
8337 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
8338 instead of %d in format strings.
8339 * riscv-tdep.c (riscv_type_alignment): Cast second argument
8340 to std::min to ULONGEST.
8341 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
8342 instead of %d in format strings.
8343 * tracepoint.c (info_scope_command): Likewise.
8344 * typeprint.c (print_offset_data::update)
8345 (print_offset_data::finish): Likewise.
8346 * xtensa-tdep.c (xtensa_store_return_value)
8347 (xtensa_push_dummy_call): Likewise.
8348
8349 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
8350
8351 * windows-nat.c (display_selector): Fixed format specifications
8352 for 64-bit Cygwin.
8353
8354 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8355
8356 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
8357
8358 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
8359
8360 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
8361 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
8362 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
8363 (nios2_linux_init_abi): Install it.
8364
8365 2019-03-28 Alan Hayward <alan.hayward@arm.com>
8366
8367 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
8368
8369 2019-03-28 Alan Hayward <alan.hayward@arm.com>
8370
8371 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
8372
8373 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8374 Tom Tromey <tromey@adacore.com>
8375
8376 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
8377
8378 2019-03-26 Joel Brobecker <brobecker@adacore.com>
8379
8380 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
8381 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
8382 method to compute the bounds of range types. Also print "[evaluated]"
8383 if the bounds' values come from a dynamic evaluation.
8384
8385 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
8386
8387 * cp-valprint.c (cp_print_value_fields): Don't print trailing
8388 whitespace when pretty printing is on.
8389
8390 2019-03-26 Alan Hayward <alan.hayward@arm.com>
8391
8392 * ppc-linux-nat.c: Add include.
8393
8394 2019-03-26 Alan Hayward <alan.hayward@arm.com>
8395
8396 * NEWS: Mention AArch64 Pointer Authentication.
8397
8398 2019-03-26 Alan Hayward <alan.hayward@arm.com>
8399
8400 * arm-linux-nat.c: Add include.
8401
8402 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
8403
8404 * source-cache.c (source_cache::get_source_lines): Re-read
8405 fullname after calling open_source_file.
8406
8407 2019-03-25 John Baldwin <jhb@FreeBSD.org>
8408
8409 * NEWS: Mention TLS support for FreeBSD.
8410
8411 2019-03-25 Tom Tromey <tromey@adacore.com>
8412
8413 * minsyms.c (BUNCH_SIZE): Update comment.
8414 (~minimal_symbol_reader): Remove old comment.
8415 (compact_minimal_symbols): Update comment.
8416 (minimal_symbol_reader::install): Remove old comment. Update
8417 other comments.
8418
8419 2019-03-25 Alan Hayward <alan.hayward@arm.com>
8420
8421 * s390-linux-nat.c: Add include.
8422
8423 2019-03-25 Alan Hayward <alan.hayward@arm.com>
8424
8425 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
8426 Call linux_get_hwcap.
8427 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
8428 Likewise.
8429 (aarch64_linux_get_hwcap): Remove function.
8430 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
8431 declaration.
8432 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
8433 linux_get_hwcap.
8434 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
8435 * linux-tdep.c (linux_get_hwcap): Add function.
8436 (linux_get_hwcap2): Likewise.
8437 * linux-tdep.h (linux_get_hwcap): Add declaration.
8438 (linux_get_hwcap2): Likewise.
8439 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
8440 (ppc_linux_get_hwcap2): Likewise.
8441 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
8442 linux_get_hwcap.
8443 (ppc_linux_nat_target::insert_watchpoint): Likewise.
8444 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
8445 (ppc_linux_nat_target::read_description): Likewise.
8446 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
8447 * s390-linux-nat.c: Likewise.
8448 * s390-linux-tdep.c (s390_core_read_description): Likewise.
8449
8450 2019-03-24 Tom Tromey <tom@tromey.com>
8451
8452 * ada-lang.c (standard_lookup): Simplify initialization.
8453 (ada_lookup_symbol_nonlocal): Simplify return.
8454 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
8455 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
8456 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
8457 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
8458 initialization.
8459 * solib.c (solib_global_lookup): Simplify.
8460 * symtab.c (null_block_symbol): Remove.
8461 (symbol_cache_lookup): Simplify returns.
8462 (lookup_language_this): Simplify returns.
8463 (lookup_symbol_aux): Simplify return.
8464 (lookup_local_symbol): Simplify returns.
8465 (lookup_global_symbol_from_objfile): Simplify return.
8466 (lookup_symbol_in_objfile_symtabs)
8467 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
8468 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
8469 (lookup_static_symbol, lookup_global_symbol): Simplify return.
8470 * cp-namespace.c (cp_lookup_bare_symbol)
8471 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
8472 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
8473 (cp_lookup_nested_symbol): Don't use null_block_symbol.
8474 (cp_lookup_symbol_via_imports): Simplify initialization.
8475 (find_symbol_in_baseclass): Likewise.
8476 * symtab.h (null_block_symbol): Remove.
8477 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
8478 (d_lookup_nested_symbol, d_lookup_symbol_imports)
8479 (d_lookup_symbol_module): Likewise.
8480 (find_symbol_in_baseclass): Simplify initialization.
8481
8482 2019-03-24 Tom Tromey <tom@tromey.com>
8483
8484 * expression.h: Don't include symtab.h.
8485 (struct block): Forward declare.
8486
8487 2019-03-24 Tom Tromey <tom@tromey.com>
8488
8489 * c-exp.y (typebase): Remove casts.
8490 * gdbtypes.c (lookup_unsigned_typename, )
8491 (lookup_signed_typename): Remove cast.
8492 * eval.c (parse_to_comma_and_eval): Remove cast.
8493 * parse.c (write_dollar_variable): Remove cast.
8494 * block.h (struct block) <superblock>: Now const.
8495 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
8496 * psymtab.c (psym_map_matching_symbols): Make "block" const.
8497 (map_block): Make "block" const.
8498 * symfile.h (struct quick_symbol_functions)
8499 <map_matching_symbols>: Constify block argument to "callback".
8500 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
8501 const.
8502 (find_pc_sect_compunit_symtab): Make "b" const.
8503 (find_symbol_at_address): Likewise.
8504 (search_symbols): Likewise.
8505 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
8506 (dw2_debug_names_lookup_symbol): Likewise.
8507 (dw2_map_matching_symbols): Update.
8508 * p-valprint.c (pascal_val_print): Remove "block".
8509 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
8510 (aux_add_nonlocal_symbols): Make "block" const.
8511 (resolve_subexp): Remove cast.
8512 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
8513 const.
8514 (iterate_over_file_blocks): Likewise.
8515 * f-exp.y (%union) <bval>: Remove.
8516 * coffread.c (patch_opaque_types): Make "b" const.
8517 * spu-tdep.c (spu_catch_start): Make "block" const.
8518 * c-valprint.c (print_unpacked_pointer): Remove "block".
8519 * symmisc.c (dump_symtab_1): Make "b" const.
8520 (block_depth): Make "block" const.
8521 * d-exp.y (%union) <bval>: Remove.
8522 * cp-support.h (cp_lookup_rtti_type): Update.
8523 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
8524 * psymtab.c (psym_lookup_symbol): Make "block" const.
8525 (maintenance_check_psymtabs): Make "b" const.
8526 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
8527 (enumerate_locals, enumerate_args): Update.
8528 * python/py-symtab.c (stpy_global_block): Make "block" const.
8529 (stpy_static_block): Likewise.
8530 * inline-frame.c (block_starting_point_at): Make "new_block"
8531 const.
8532 * block.c (find_block_in_blockvector): Make return type const.
8533 (blockvector_for_pc_sect): Make "b" const.
8534 (find_block_in_blockvector): Make "b" const.
8535
8536 2019-03-23 Tom Tromey <tom@tromey.com>
8537
8538 * varobj.c (varobj_create): Update.
8539 * symfile.c (clear_symtab_users): Don't reset innermost_block.
8540 * printcmd.c (display_command, do_one_display): Don't reset
8541 innermost_block.
8542 * parser-defs.h (enum innermost_block_tracker_type): Move to
8543 expression.h.
8544 (innermost_block): Update comment.
8545 * parse.c (parse_exp_1): Add tracker_types parameter.
8546 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
8547 tracker_types parameter. Reset innermost_block.
8548 (parse_exp_in_context): Remove.
8549 (parse_expression_for_completion): Update.
8550 * objfiles.c (~objfile): Don't reset expression_context_block or
8551 innermost_block.
8552 * expression.h (enum innermost_block_tracker_type): Move from
8553 parser-defs.h.
8554 (parse_exp_1): Add tracker_types parameter.
8555 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
8556 reset innermost_block.
8557
8558 2019-03-23 Tom Tromey <tom@tromey.com>
8559
8560 * objfiles.h: Include bcache.h.
8561
8562 2019-03-23 Tom Tromey <tom@tromey.com>
8563
8564 * linespec.c (get_current_search_block): Use
8565 scoped_restore_current_language.
8566 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
8567
8568 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8569 Jiong Wang <jiong.wang@arm.com>
8570
8571 * aarch64-linux-tdep.c
8572 (aarch64_linux_iterate_over_regset_sections): Check for pauth
8573 section.
8574 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
8575
8576 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8577 Jiong Wang <jiong.wang@arm.com>
8578
8579 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
8580 instructions.
8581 (aarch64_analyze_prologue_test): Add PACIASP test.
8582 (aarch64_prologue_prev_register): Unmask PC value.
8583
8584 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8585 Jiong Wang <jiong.wang@arm.com>
8586
8587 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
8588 (aarch64_dwarf2_prev_register): Unmask PC value.
8589 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
8590 (aarch64_execute_dwarf_cfa_vendor_op): Check for
8591 DW_CFA_AARCH64_negate_ra_state.
8592 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
8593
8594 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8595 Jiong Wang <jiong.wang@arm.com>
8596
8597 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
8598 registers.
8599 (aarch64_pseudo_register_name): Likewise.
8600 (aarch64_pseudo_register_type): Likewise.
8601 (aarch64_pseudo_register_reggroup_p): Likewise.
8602 (aarch64_gdbarch_init): Add pauth registers.
8603 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
8604 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
8605 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
8606 (struct gdbarch_tdep): Add regnum for ra_state.
8607
8608 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8609 Jiong Wang <jiong.wang@arm.com>
8610
8611 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
8612
8613 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8614 Jiong Wang <jiong.wang@arm.com>
8615
8616 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
8617 function.
8618 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
8619 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
8620 (aarch64_gdbarch_init): Add puth registers.
8621 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
8622 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
8623 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
8624
8625 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8626 Jiong Wang <jiong.wang@arm.com>
8627
8628 * aarch64-linux-nat.c
8629 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
8630 * aarch64-linux-tdep.c
8631 (aarch64_linux_core_read_description): Likewise.
8632 (aarch64_linux_get_hwcap): New function.
8633 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
8634 (aarch64_linux_get_hwcap): New declaration.
8635
8636 2019-03-22 Alan Hayward <alan.hayward@arm.com>
8637 Jiong Wang <jiong.wang@arm.com>
8638
8639 * aarch64-linux-nat.c
8640 (aarch64_linux_nat_target::read_description): Add pauth param.
8641 * aarch64-linux-tdep.c
8642 (aarch64_linux_core_read_description): Likewise.
8643 * aarch64-tdep.c (struct target_desc): Add in pauth.
8644 (aarch64_read_description): Add pauth param.
8645 (aarch64_gdbarch_init): Likewise.
8646 * aarch64-tdep.h (aarch64_read_description): Likewise.
8647 * arch/aarch64.c (aarch64_create_target_description): Likewise.
8648 * arch/aarch64.h (aarch64_create_target_description): Likewise.
8649 * features/Makefile: Add new files.
8650 * features/aarch64-pauth.c: New file.
8651 * features/aarch64-pauth.xml: New file.
8652
8653 2019-03-20 Tom Tromey <tromey@adacore.com>
8654
8655 * infrun.c (handle_inferior_event): Rename from
8656 handle_inferior_event_1. Create a scoped_value_mark.
8657 (handle_inferior_event): Remove.
8658
8659 2019-03-19 Tom Tromey <tromey@adacore.com>
8660
8661 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
8662 * infrun.h (print_stop_event): Add "displays" parameter.
8663 * infrun.c (print_stop_event): Add "displays" parameter.
8664
8665 2019-03-19 Pedro Alves <palves@redhat.com>
8666
8667 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
8668 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
8669 to -1. Fix TABs vs spaces.
8670 (tui_ui_out::tui_ui_out): Don't initialize fields here.
8671 * tui/tui-out.h (tui_ui_out) Add intro comments.
8672 <m_line, m_start_of_line>: In-class initialize, and add describing
8673 comment.
8674
8675 2019-03-18 Alan Hayward <alan.hayward@arm.com>
8676
8677 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
8678 variable names.
8679 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
8680
8681 2019-03-18 Pedro Alves <palves@redhat.com>
8682 Eli Zaretskii <eliz@gnu.org>
8683
8684 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
8685 m_line and m_start_of_line.
8686
8687 2019-03-18 Eli Zaretskii <eliz@gnu.org>
8688
8689 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
8690 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
8691 it returns a newline. This fixes a regression in TU mode, whereby
8692 the next line is output on the same screen line as the user input.
8693
8694 2019-03-18 Tom Tromey <tromey@adacore.com>
8695
8696 * minsyms.c (minimal_symbol_reader::install): Remove call to
8697 obstack_blank.
8698
8699 2019-03-18 Pedro Alves <palves@redhat.com>
8700
8701 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
8702 New globals.
8703 (apply_style): New, factored out from ...
8704 (apply_ansi_escape): ... this. Handle reverse video mode.
8705 (tui_set_reverse_mode): New function.
8706 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
8707 * tui/tui-winsource.c (tui_show_source_line): Use
8708 tui_set_reverse_mode instead of setting A_STANDOUT.
8709 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
8710 New setter methods.
8711
8712 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
8713
8714 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
8715 Handle tabs.
8716
8717 2019-03-18 Tom Tromey <tromey@adacore.com>
8718
8719 * ada-lang.c (empty_array): Add "high" parameter.
8720 (ada_evaluate_subexp): Update.
8721
8722 2019-03-17 Sergei Trofimovich <siarheit@google.com>
8723
8724 * unittests/string_view-selftests.c: Define
8725 _initialize_string_view_selftests unconditionally.
8726
8727 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
8728
8729 PR gdb/24350
8730 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
8731
8732 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
8733
8734 PR gdb/24351
8735 * windows-nat.c (display_selector): Fix format specifiers.
8736
8737 2019-03-17 Eli Zaretskii <eliz@gnu.org>
8738
8739 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
8740 tui_refill_source_window instead of tui_refresh_win, to update the
8741 current execution line. This fixes redisplay of the current line
8742 when stepping through the code with "next" or "step".
8743
8744 2019-03-16 Eli Zaretskii <eliz@gnu.org>
8745
8746 * source-cache.c (source_cache::get_source_lines): Call
8747 find_source_lines to initialize s->nlines. This fixes vertical
8748 scrolling of TUI source window when the DOWN arrow is pressed.
8749
8750 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8751
8752 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
8753 linux-thread-db.c (_initialize_thread_db): Likewise.
8754
8755 2019-03-16 Eli Zaretskii <eliz@gnu.org>
8756
8757 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
8758 wclrtoeol in tui_show_source_line". This reverts changes made in
8759 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
8760
8761 2019-03-15 Tom Tromey <tom@tromey.com>
8762
8763 * symtab.h (struct minimal_symbol): Derive from
8764 general_symbol_info.
8765 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
8766 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8767 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8768 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8769 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
8770 (MSYMBOL_SEARCH_NAME): Update.
8771 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
8772 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
8773 * minsyms.c (minimal_symbol_reader::record_full): Update.
8774
8775 2019-03-15 Tom Tromey <tom@tromey.com>
8776
8777 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
8778
8779 2019-03-15 Tom Tromey <tom@tromey.com>
8780
8781 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
8782 unique_xmalloc_ptr.
8783 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
8784 Update.
8785 * minsyms.c (lookup_minimal_symbol_by_pc_section)
8786 (build_minimal_symbol_hash_tables)
8787 (minimal_symbol_reader::install): Update.
8788
8789 2019-03-15 Tom Tromey <tom@tromey.com>
8790
8791 * symtab.c (create_demangled_names_hash): Update.
8792 (symbol_set_names): Update.
8793 * objfiles.h (struct objfile_per_bfd_storage)
8794 <demangled_names_hash>: Now an htab_up.
8795 * objfiles.c (objfile_per_bfd_storage): Simplify.
8796
8797 2019-03-15 Tom Tromey <tom@tromey.com>
8798
8799 * objfiles.h (struct objfile_per_bfd_storage): Declare
8800 destructor.
8801 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
8802 New.
8803 (get_objfile_bfd_data): Use new. Don't initialize
8804 language_of_main.
8805 (free_objfile_per_bfd_storage): Remove.
8806 (objfile_bfd_data_free, objfile::~objfile): Use delete.
8807
8808 2019-03-15 Tom Tromey <tom@tromey.com>
8809
8810 * symfile.c (reread_symbols): Update.
8811 * objfiles.c (objfile::objfile): Update.
8812 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
8813 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
8814 comment.
8815 (minimal_symbol_reader::install): Update.
8816 (terminate_minimal_symbol_table): Remove.
8817 * jit.c (jit_object_close_impl): Update.
8818
8819 2019-03-15 Tom Tromey <tom@tromey.com>
8820
8821 * minsyms.c (minimal_symbol_reader::record_full): Remove some
8822 initializations.
8823
8824 2019-03-15 Tom Tromey <tom@tromey.com>
8825
8826 * objfiles.h (struct objfile_per_bfd_storage)
8827 <demangled_hash_languages>: Now a bitset.
8828 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
8829 (lookup_minimal_symbol): Update.
8830
8831 2019-03-15 Tom Tromey <tom@tromey.com>
8832
8833 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
8834 Don't return the symbol.
8835 * coffread.c (record_minimal_symbol): Use record_full.
8836
8837 2019-03-14 Eli Zaretskii <eliz@gnu.org>
8838
8839 The MS-Windows port of ncurses fails to switch to a color pair if
8840 one or both of the colors are the implicit default colors. This
8841 change records the default colors when TUI is initialized, and
8842 then specifies them explicitly when a color pair uses the default
8843 colors. This allows color styling in TUI mode on MS-Windows.
8844
8845 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
8846 ncurses_norm_attr.
8847 (tui_initialize_io) [__MINGW32__]: Record the default terminal
8848 colors in ncurses_norm_attr.
8849 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
8850 "none", replace it with the default color recorded in
8851 ncurses_norm_attr.
8852
8853 2019-03-14 Tom Tromey <tromey@adacore.com>
8854
8855 * source-cache.h (class source_cache) <get_source_lines>: Return
8856 std::string.
8857 * source-cache.c (source_cache::extract_lines): Handle case where
8858 first_pos==npos. Return std::string.
8859 (source_cache::get_source_lines): Update.
8860
8861 2019-03-14 Tom Tromey <tromey@adacore.com>
8862
8863 * NEWS: Add item for "style sources" commands.
8864 * source-cache.c (source_cache::get_source_lines): Check
8865 source_styling.
8866 * cli/cli-style.c (source_styling): New global.
8867 (_initialize_cli_style): Add "style sources" commands.
8868 (show_style_sources): New function.
8869 * cli/cli-style.h (source_styling): Declare.
8870
8871 2019-03-14 Pedro Alves <palves@redhat.com>
8872 Tom Tromey <tromey@adacore.com>
8873
8874 * tui/tui-winsource.h (tui_refill_source_window): Declare.
8875 * tui/tui-winsource.c (tui_refill_source_window): New function,
8876 from...
8877 (tui_horizontal_source_scroll): ... here. Move some logic.
8878 * cli/cli-style.c (set_style_enabled): Notify new observable.
8879 * tui/tui-hooks.c (tui_redisplay_source): New function.
8880 (tui_attach_detach_observers): Attach or detach
8881 tui_redisplay_source.
8882 * observable.h (source_styling_changed): New observable.
8883 * observable.c: Define source_styling_changed observable.
8884
8885 2019-03-13 Tom Tromey <tromey@adacore.com>
8886
8887 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
8888 (i386_gnu_nat_target::store_registers): Update.
8889 * target-debug.h (target_debug_print_std_string): New macro.
8890 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
8891 * windows-tdep.c (display_one_tib): Update.
8892 * tui/tui-stack.c (tui_make_status_line): Update.
8893 * top.c (print_inferior_quit_action): Update.
8894 * thread.c (thr_try_catch_cmd): Update.
8895 (add_thread_with_info): Update.
8896 (thread_target_id_str): Update.
8897 (thr_try_catch_cmd): Update.
8898 (thread_command): Update.
8899 (thread_find_command): Update.
8900 * record-btrace.c (record_btrace_target::info_record)
8901 (record_btrace_resume_thread, record_btrace_target::resume)
8902 (record_btrace_cancel_resume, record_btrace_step_thread)
8903 (record_btrace_target::wait, record_btrace_target::wait)
8904 (record_btrace_target::wait, record_btrace_target::stop): Update.
8905 * progspace.c (print_program_space): Update.
8906 * process-stratum-target.c
8907 (process_stratum_target::thread_address_space): Update.
8908 * linux-fork.c (linux_fork_mourn_inferior)
8909 (detach_checkpoint_command, info_checkpoints_command)
8910 (linux_fork_context): Update.
8911 (linux_fork_detach): Update.
8912 (class scoped_switch_fork_info): Update.
8913 (delete_checkpoint_command): Update.
8914 * infrun.c (follow_fork_inferior): Update.
8915 (follow_fork_inferior): Update.
8916 (proceed_after_vfork_done): Update.
8917 (handle_vfork_child_exec_or_exit): Update.
8918 (follow_exec): Update.
8919 (displaced_step_prepare_throw): Update.
8920 (displaced_step_restore): Update.
8921 (start_step_over): Update.
8922 (resume_1): Update.
8923 (clear_proceed_status_thread): Update.
8924 (proceed): Update.
8925 (print_target_wait_results): Update.
8926 (do_target_wait): Update.
8927 (context_switch): Update.
8928 (stop_all_threads): Update.
8929 (restart_threads): Update.
8930 (finish_step_over): Update.
8931 (handle_signal_stop): Update.
8932 (switch_back_to_stepped_thread): Update.
8933 (keep_going_pass_signal): Update.
8934 (print_exited_reason): Update.
8935 (normal_stop): Update.
8936 * inferior.c (inferior_pid_to_str): Change return type.
8937 (print_selected_inferior): Update.
8938 (add_inferior): Update.
8939 (detach_inferior): Update.
8940 * dummy-frame.c (fprint_dummy_frames): Update.
8941 * dcache.c (dcache_info_1): Update.
8942 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
8943 (btrace_fetch, btrace_clear): Update.
8944 * linux-tdep.c (linux_core_pid_to_str): Change return type.
8945 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
8946 type.
8947 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
8948 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
8949 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
8950 * gdbarch.c, gdbarch.h: Rebuild.
8951 * gdbarch.sh (core_pid_to_str): Change return type.
8952 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
8953 return type.
8954 (windows_nat_target::pid_to_str): Change return type.
8955 (windows_delete_thread): Update.
8956 (windows_nat_target::attach): Update.
8957 (windows_nat_target::files_info): Update.
8958 * target-delegates.c: Rebuild.
8959 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
8960 return type.
8961 (sol_thread_target::pid_to_str): Change return type.
8962 * remote.c (class remote_target) <pid_to_str>: Change return
8963 type.
8964 (remote_target::pid_to_str): Change return type.
8965 (extended_remote_target::attach, remote_target::remote_stop_ns)
8966 (remote_target::remote_notif_remove_queued_reply)
8967 (remote_target::push_stop_reply, remote_target::disable_btrace):
8968 Update.
8969 (extended_remote_target::attach): Update.
8970 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
8971 type.
8972 (gdbsim_target::pid_to_str): Change return type.
8973 * ravenscar-thread.c (struct ravenscar_thread_target)
8974 <pid_to_str>: Change return type.
8975 (ravenscar_thread_target::pid_to_str): Change return type.
8976 * procfs.c (class procfs_target) <pid_to_str>: Change return
8977 type.
8978 (procfs_target::pid_to_str): Change return type.
8979 (procfs_target::attach): Update.
8980 (procfs_target::detach): Update.
8981 (procfs_target::fetch_registers): Update.
8982 (procfs_target::store_registers): Update.
8983 (procfs_target::wait): Update.
8984 (procfs_target::files_info): Update.
8985 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
8986 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
8987 return type.
8988 (nto_procfs_target::pid_to_str): Change return type.
8989 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
8990 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
8991 return type.
8992 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
8993 (exit_lwp): Update.
8994 (attach_proc_task_lwp_callback, get_detach_signal)
8995 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
8996 (linux_nat_target::resume, wait_lwp, stop_callback)
8997 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
8998 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
8999 (linux_nat_wait_1, resume_stopped_resumed_lwps)
9000 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
9001 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
9002 type.
9003 (inf_ptrace_target::attach): Update.
9004 (inf_ptrace_target::files_info): Update.
9005 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
9006 type.
9007 (go32_nat_target::pid_to_str): Change return type.
9008 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
9009 (gnu_nat_target::wait): Update.
9010 (gnu_nat_target::wait): Update.
9011 (gnu_nat_target::resume): Update.
9012 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
9013 (fbsd_nat_target::wait): Update.
9014 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
9015 type.
9016 (darwin_nat_target::attach): Update.
9017 * corelow.c (class core_target) <pid_to_str>: Change return type.
9018 (core_target::pid_to_str): Change return type.
9019 * target.c (normal_pid_to_str): Change return type.
9020 (default_pid_to_str): Likewise.
9021 (target_pid_to_str): Change return type.
9022 (target_translate_tls_address): Update.
9023 (target_announce_detach): Update.
9024 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
9025 return type.
9026 (bsd_uthread_target::pid_to_str): Change return type.
9027 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
9028 type.
9029 (bsd_kvm_target::pid_to_str): Change return type.
9030 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
9031 return type.
9032 (aix_thread_target::pid_to_str): Change return type.
9033 * target.h (struct target_ops) <pid_to_str>: Change return type.
9034 (target_pid_to_str, normal_pid_to_str): Likewise.
9035 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
9036 type.
9037 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
9038 type.
9039 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
9040 return type.
9041 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
9042 type.
9043 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
9044 type.
9045 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
9046 return type.
9047
9048 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
9049
9050 * NEWS: Mention that the new default MI version is 3. Mention
9051 changes to the output of commands and events that deal with
9052 multi-location breakpoints.
9053 * breakpoint.c: Include "mi/mi-out.h".
9054 (print_one_breakpoint): Change output syntax if using MI version
9055 >= 3.
9056 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
9057 New.
9058 (mi_multi_location_breakpoint_output_fixed): New.
9059 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
9060 (mi_cmd_fix_multi_location_breakpoint_output): New.
9061 (mi_multi_location_breakpoint_output_fixed): New.
9062 * mi/mi-cmds.c (mi_cmds): Register command
9063 -fix-multi-location-breakpoint-output.
9064 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
9065 interpreter "mi".
9066
9067 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9068
9069 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
9070 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
9071 instantiate mi_ui_out based on interpreter name.
9072 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
9073 * mi/mi-main.c (mi_load_progress): Likewise.
9074
9075 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9076
9077 * NEWS: Combine separate "New targets" sections for 8.3.
9078
9079 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9080
9081 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
9082 (ppcfbsd_init_abi): Install gdbarch
9083 "fetch_tls_load_module_address" and "get_thread_local_address"
9084 methods.
9085
9086 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9087
9088 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
9089 (riscv_fbsd_init_abi): Install gdbarch
9090 "fetch_tls_load_module_address" and "get_thread_local_address"
9091 methods.
9092
9093 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9094
9095 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
9096 (i386fbsd_init_abi): Install gdbarch
9097 "fetch_tls_load_module_address" and "get_thread_local_address"
9098 methods.
9099
9100 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9101
9102 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
9103 (amd64fbsd_init_abi): Install gdbarch
9104 "fetch_tls_load_module_address" and "get_thread_local_address"
9105 methods.
9106
9107 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9108
9109 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
9110 (struct fbsd_pspace_data): New type.
9111 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
9112 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
9113 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
9114 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
9115 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
9116
9117 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9118
9119 * gdbtypes.c (lookup_struct_elt): New function.
9120 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
9121 * gdbtypes.h (struct struct_elt): New type.
9122 (lookup_struct_elt): New prototype.
9123
9124 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9125
9126 * gdbtypes.c (lookup_struct_elt_type): Update comment and
9127 remove disabled code block.
9128
9129 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9130
9131 * gdbarch.sh (get_thread_local_address): New method.
9132 * gdbarch.h, gdbarch.c: Regenerate.
9133 * target.c (target_translate_tls_address): Use
9134 gdbarch_get_thread_local_address if present instead of
9135 target::get_thread_local_address.
9136
9137 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9138
9139 * target.h (target::get_thread_local_address): Update comment.
9140
9141 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9142
9143 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
9144 objfile->separate_debug_objfile_backlink if not NULL.
9145
9146 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9147
9148 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
9149 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
9150 (amd64bsd_store_inferior_registers): Likewise.
9151 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
9152 Enable segment base registers.
9153 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
9154 PT_GETFSBASE and PT_GETGSBASE.
9155 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
9156 PT_SETGSBASE.
9157 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
9158 segment base registers.
9159 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
9160
9161 2019-03-12 John Baldwin <jhb@FreeBSD.org>
9162
9163 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
9164 Update calls to i386_target_description to add 'segments'
9165 parameter.
9166 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
9167 add segment base registers.
9168 * arch/i386.c (i386_create_target_description): Add 'segments'
9169 parameter to enable segment base registers.
9170 * arch/i386.h (i386_create_target_description): Likewise.
9171 * features/i386/32bit-segments.xml: New file.
9172 * features/i386/32bit-segments.c: Generate.
9173 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
9174 call to i386_target_description to add 'segments' parameter.
9175 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
9176 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
9177 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
9178 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
9179 if feature is present.
9180 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
9181 Add 'segments' parameter to call to i386_target_description.
9182 (i386_target_description): Add 'segments' parameter to enable
9183 segment base registers.
9184 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
9185 to call to i386_target_description.
9186 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
9187 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
9188 Define I386_NUM_REGS.
9189 (i386_target_description): Add 'segments' parameter to enable
9190 segment base registers.
9191
9192 2019-03-12 Eli Zaretskii <eliz@gnu.org>
9193
9194 PR/24325
9195 * source-cache.c: #undef open and close, to avoid unresolved
9196 externals during linking.
9197
9198 2019-03-12 Tom Tromey <tromey@adacore.com>
9199
9200 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
9201 const. Add initializers.
9202 (_initialize_remote): Don't initialize ptid globals.
9203
9204 2019-03-12 Pedro Alves <palves@redhat.com>
9205
9206 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
9207
9208 2019-03-12 Pedro Alves <palves@redhat.com>
9209
9210 * cp-name-parser.y (main): Remove unused 'len' variable.
9211
9212 2019-03-12 Tom Tromey <tromey@adacore.com>
9213
9214 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
9215 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
9216
9217 2019-03-12 Tom Tromey <tromey@adacore.com>
9218
9219 * linux-nat.c (iterate_over_lwps): Update.
9220 (stop_callback): Remove parameter.
9221 (stop_wait_callback, detach_callback, resume_set_callback)
9222 (select_singlestep_lwp_callback, set_ignore_sigint)
9223 (status_callback, resumed_callback, resume_clear_callback)
9224 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
9225 data parameter.
9226 (linux_nat_target::detach, linux_nat_target::resume)
9227 (linux_stop_and_wait_all_lwps, select_event_lwp)
9228 (linux_nat_filter_event, linux_nat_wait_1)
9229 (linux_nat_target::kill, linux_nat_target::stop)
9230 (linux_nat_target::stop): Update.
9231 (linux_nat_resume_callback): Change type.
9232 (resume_stopped_resumed_lwps, count_events_callback)
9233 (select_event_lwp_callback): Likewise.
9234 (linux_stop_lwp, linux_nat_stop_lwp): Update.
9235 * arm-linux-nat.c (struct update_registers_data): Remove.
9236 (update_registers_callback): Change type.
9237 (arm_linux_insert_hw_breakpoint1): Update.
9238 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
9239 parameter.
9240 (x86_linux_dr_set_addr): Update.
9241 (x86_linux_dr_set_control): Update.
9242 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
9243 (iterate_over_lwps): Use gdb::function_view.
9244 * nat/aarch64-linux-hw-point.c (struct
9245 aarch64_dr_update_callback_param): Remove.
9246 (debug_reg_change_callback): Change type.
9247 (aarch64_notify_debug_reg_change): Update.
9248 * s390-linux-nat.c (s390_refresh_per_info): Update.
9249
9250 2019-03-11 Tom Tromey <tromey@adacore.com>
9251
9252 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
9253 redundant assignment to "this_cu".
9254
9255 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9256
9257 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
9258
9259 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9260
9261 * gdbtypes.c (rank_one_type_parm_set): New function extracted
9262 from...
9263 (rank_one_type): ... this.
9264
9265 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9266
9267 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
9268 from...
9269 (rank_one_type): ... this.
9270
9271 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9272
9273 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
9274 from...
9275 (rank_one_type): ... this.
9276
9277 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9278
9279 * gdbtypes.c (rank_one_type_parm_float): New function extracted
9280 from...
9281 (rank_one_type): ... this.
9282
9283 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9284
9285 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
9286 from...
9287 (rank_one_type): ... this.
9288
9289 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9290
9291 * gdbtypes.c (rank_one_type_parm_range): New function extracted
9292 from...
9293 (rank_one_type): ... this.
9294
9295 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9296
9297 * gdbtypes.c (rank_one_type_parm_char): New function extracted
9298 from...
9299 (rank_one_type): ... this.
9300
9301 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9302
9303 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
9304 from...
9305 (rank_one_type): ... this.
9306
9307 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9308
9309 * gdbtypes.c (rank_one_type_parm_int): New function extracted
9310 from...
9311 (rank_one_type): ... this.
9312
9313 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9314
9315 * gdbtypes.c (rank_one_type_parm_func): New function extracted
9316 from...
9317 (rank_one_type): ... this.
9318
9319 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9320
9321 * gdbtypes.c (rank_one_type_parm_array): New function extracted
9322 from...
9323 (rank_one_type): ... this.
9324
9325 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
9326
9327 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
9328 from...
9329 (rank_one_type): ... this.
9330
9331 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9332
9333 * inferior.c (initialize_inferiors): Ensure 'help set/show print
9334 inferior-events' shows the example events.
9335
9336 2019-03-08 Eli Zaretskii <eliz@gnu.org>
9337
9338 Support styling on native MS-Windows console
9339
9340 PR/24315
9341 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
9342 on MS-Windows if $TERM is not defined.
9343
9344 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
9345
9346 * posix-hdep.c (gdb_console_fputs):
9347 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
9348 functions.
9349 * ui-file.h (gdb_console_fputs): Add prototype.
9350
9351 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
9352 back to fputs only if the former returns zero.
9353
9354 2019-03-07 Tom Tromey <tom@tromey.com>
9355
9356 * symmisc.c (print_symbol_bcache_statistics): Update.
9357 (print_objfile_statistics): Update.
9358 * symfile.c (allocate_symtab): Update.
9359 * stabsread.c: Don't include bcache.h.
9360 * psymtab.h (struct psymbol_bcache): Don't declare.
9361 (class psymtab_storage) <psymbol_cache>: Now a bcache.
9362 (psymbol_bcache_init, psymbol_bcache_free)
9363 (psymbol_bcache_get_bcache): Don't declare.
9364 * psymtab.c (struct psymbol_bcache): Remove.
9365 (psymtab_storage::psymtab_storage): Update.
9366 (psymtab_storage::~psymtab_storage): Update.
9367 (psymbol_bcache_init, psymbol_bcache_free)
9368 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
9369 (add_psymbol_to_bcache): Update.
9370 (allocate_psymtab): Update.
9371 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
9372 macro_cache>: No longer pointers.
9373 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
9374 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
9375 * macrotab.c (macro_bcache): Update.
9376 * macroexp.c: Don't include bcache.h.
9377 * gdbtypes.c (check_types_worklist): Update.
9378 (types_deeply_equal): Remove TRY/CATCH. Update.
9379 * elfread.c (elf_symtab_read): Update.
9380 * dwarf2read.c: Don't include bcache.h.
9381 * buildsym.c (buildsym_compunit::get_macro_table): Update.
9382 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
9383 (print_bcache_statistics, bcache_memory_used): Don't declare.
9384 (struct bcache): Move from bcache.c. Add constructor, destructor,
9385 methods. Rename all data members.
9386 * bcache.c (struct bcache): Move to bcache.h.
9387 (bcache::expand_hash_table): Rename from expand_hash_table.
9388 (bcache): Remove.
9389 (bcache::insert): Rename from bcache_full.
9390 (bcache::compare): Rename from bcache_compare.
9391 (bcache_xmalloc): Remove.
9392 (bcache::~bcache): Rename from bcache_xfree.
9393 (bcache::print_statistics): Rename from print_bcache_statistics.
9394 (bcache::memory_used): Rename from bcache_memory_used.
9395
9396 2019-03-07 Pedro Alves <palves@redhat.com>
9397
9398 * infrun.c (normal_stop): Also check for
9399 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
9400
9401 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
9402
9403 * f-lang.c (value_from_host_double): Moved to...
9404 * value.c (value_from_host_double): ...here.
9405 * value.h (value_from_host_double): Declare.
9406 * guile/scm-math.c (vlscm_convert_typed_number): Use
9407 value_from_host_double.
9408 (vlscm_convert_number): Likewise.
9409 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
9410 * python/py-value.c (convert_value_from_python): Likewise.
9411
9412 2019-03-06 Tom Tromey <tom@tromey.com>
9413
9414 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
9415
9416 2019-03-06 Tom Tromey <tom@tromey.com>
9417
9418 * utils.h (free_current_contents): Don't declare.
9419 * utils.c (free_current_contents): Remove.
9420
9421 2019-03-06 Tom Tromey <tom@tromey.com>
9422
9423 * top.c (quit_force): Update.
9424 * main.c (captured_command_loop): Update.
9425 * common/new-op.c (operator new): Update.
9426 * common/common-exceptions.c (struct catcher)
9427 <save_cleanup_chain>: Remove member.
9428 (exceptions_state_mc_init): Update.
9429 (exception_try_scope_entry): Return nullptr.
9430 (exception_try_scope_exit, exception_rethrow)
9431 (throw_exception_sjlj, throw_exception_cxx): Update.
9432 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
9433 (all_cleanups, do_cleanups, discard_cleanups)
9434 (discard_final_cleanups, save_cleanups, save_final_cleanups)
9435 (restore_cleanups, restore_final_cleanups): Don't declare.
9436 (do_final_cleanups): Remove parameter.
9437 * common/cleanups.c (cleanup_chain, make_cleanup)
9438 (make_cleanup_dtor, all_cleanups, do_cleanups)
9439 (discard_my_cleanups, discard_cleanups)
9440 (discard_final_cleanups, save_my_cleanups, save_cleanups)
9441 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
9442 (null_cleanup): Remove.
9443 (do_final_cleanups): Remove parameter.
9444
9445 2019-03-06 Tom Tromey <tom@tromey.com>
9446
9447 * remote.c (remote_target::remote_parse_stop_reply): Use
9448 unique_xmalloc_ptr.
9449
9450 2019-03-06 Tom Tromey <tom@tromey.com>
9451
9452 * stabsread.c (struct stabs_field_info): Rename from field_info.
9453 <list, fnlist>: Add initializers.
9454 <obstack>: New member.
9455 (read_member_functions, read_struct_fields, read_baseclasses):
9456 Allocate on obstack. Don't use cleanups.
9457 (read_one_struct_field, read_member_functions, read_struct_fields)
9458 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
9459 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
9460 (read_struct_type): Update.
9461
9462 2019-03-06 Tom Tromey <tom@tromey.com>
9463
9464 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
9465 * common/filestuff.h (make_cleanup_close): Don't declare.
9466 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
9467 Remove.
9468
9469 2019-03-06 Tom Tromey <tom@tromey.com>
9470
9471 * solib-aix.c: Use make_scope_exit.
9472
9473 2019-03-06 Tom Tromey <tom@tromey.com>
9474
9475 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
9476 Use make_scope_exit.
9477
9478 2019-03-06 Tom Tromey <tom@tromey.com>
9479
9480 * solib-svr4.c (disable_probes_interface): Remove parameter.
9481 (svr4_handle_solib_event): Use make_scope_exit.
9482
9483 2019-03-06 Tom Tromey <tom@tromey.com>
9484
9485 * remote.c (struct stop_reply_deleter): Remove.
9486 (stop_reply_up): Update.
9487 (struct stop_reply): Derive from notif_event. Don't typedef.
9488 <regcache>: Now a std::vector.
9489 (stop_reply_xfree): Remove.
9490 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
9491 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
9492 (remote_target::discard_pending_stop_replies): Use delete.
9493 (remote_target::remote_parse_stop_reply): Update.
9494 (remote_target::process_stop_reply): Update.
9495 * remote-notif.h (struct notif_event): Add virtual destructor.
9496 Remove "dtr" member.
9497 (struct notif_client) <alloc_event>: Return a unique_ptr.
9498 (notif_event_xfree): Don't declare.
9499 (notif_event_up): New typedef.
9500 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
9501 (notif_event_xfree, do_notif_event_xfree): Remove.
9502 (remote_notif_state_xfree): Update.
9503
9504 2019-03-06 Tom Tromey <tom@tromey.com>
9505
9506 * infrun.c (displaced_step_clear_cleanup): Now a
9507 forward_scope_exit type.
9508 (displaced_step_prepare_throw): Update.
9509 (displaced_step_fixup): Update.
9510
9511 2019-03-06 Tom Tromey <tom@tromey.com>
9512
9513 * inferior.h (class inferior): Update comment.
9514 * gdbthread.h (class thread_info): Update comment.
9515
9516 2019-03-06 Joel Brobecker <brobecker@adacore.com>
9517 Tom Tromey <tom@tromey.com>
9518
9519 * stabsread.h (struct stab_section_list): Remove.
9520 (coffstab_build_psymtabs): Update.
9521 * dbxread.c (symbuf_sections): Now a std::vector.
9522 (sect_idx): New global.
9523 (fill_symbuf): Update.
9524 (coffstab_build_psymtabs): Change type of stabsects parameter.
9525 Update.
9526 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
9527 std::vector.
9528 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
9529 (coff_locate_sections): Update.
9530 (coff_symfile_read): Remove cleanups. Update.
9531 (init_stringtab): Add storage parameter.
9532 (free_stringtab, free_stringtab_cleanup): Remove.
9533 (init_lineno): Add storage parameter.
9534 (free_linetab, free_linetab_cleanup): Remove.
9535
9536 2019-03-06 Pedro Alves <palves@redhat.com>
9537
9538 * linux-fork.c (fork_info::clobber_regs): Delete.
9539 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
9540 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
9541 comment. Adjust.
9542 (scoped_switch_fork_info::scoped_switch_fork_info)
9543 (checkpoint_command, linux_fork_context): Adjust
9544 fork_save_infrun_state calls.
9545
9546 2019-03-06 Pedro Alves <palves@redhat.com>
9547
9548 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
9549 (inf_has_multiple_threads): Return 'bool' and rewrite using
9550 inferior_info::threads().
9551
9552 2019-03-06 Pedro Alves <palves@redhat.com>
9553
9554 * linux-fork.c: Include <list>.
9555 (fork_list): Now a std::list instance.
9556 (fork_info): Add ctor, dtor, and in-class initialize all fields.
9557 (forks_exist_p, find_last_fork): Adjust.
9558 (new_fork): Delete.
9559 (one_fork_p): New.
9560 (add_fork): Adjust.
9561 (free_fork): Delete, folded into fork_info::~fork_info().
9562 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
9563 Adjust.
9564 (init_fork_list): Delete.
9565 (linux_fork_killall, linux_fork_mourn_inferior)
9566 (linux_fork_detach, info_checkpoints_command): Adjust.
9567 (_initialize_linux_fork): No longer call init_fork_list.
9568
9569 2019-03-06 Pedro Alves <palves@redhat.com>
9570
9571 * linux-fork.c (new_fork): New, split out of ...
9572 (add_fork): ... this. Return void. Move "first fork" special
9573 case from here, to ...
9574 (checkpoint_command): ... here.
9575 * linux-linux.h (add_fork): Return void.
9576
9577 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9578
9579 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
9580
9581 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9582 Chris January <chris.january@arm.com>
9583 David Lecomber <david.lecomber@arm.com>
9584
9585 * f-exp.y: New token, UNOP_INTRINSIC.
9586 (exp): New pattern using UNOP_INTRINSIC token.
9587 (f77_keywords): Add 'abs' keyword.
9588 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
9589 (value_from_host_double): New function.
9590 (evaluate_subexp_f): Support UNOP_ABS.
9591
9592 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9593
9594 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
9595 types.
9596
9597 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9598
9599 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
9600 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
9601 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
9602
9603 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9604
9605 * f-exp.y (convert_to_kind_type): Handle more type kinds.
9606
9607 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9608 Chris January <chris.january@arm.com>
9609
9610 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
9611 * f-exp.y: Define 'KIND' token.
9612 (exp): New pattern for KIND expressions.
9613 (ptype): Handle types with a kind extension.
9614 (direct_abs_decl): Extend to spot kind extensions.
9615 (f77_keywords): Add 'kind' to the list.
9616 (push_kind_type): New function.
9617 (convert_to_kind_type): New function.
9618 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
9619 * parse.c (operator_length_standard): Likewise.
9620 * parser-defs.h (enum type_pieces): Add tp_kind.
9621 * std-operator.def: Add UNOP_KIND.
9622
9623 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9624
9625 * f-exp.y (f_parse): Set yydebug.
9626
9627 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9628
9629 * f-lang.c (evaluate_subexp_f): New function.
9630 (exp_descriptor_f): New global.
9631 (f_language_defn): Use exp_descriptor_f instead of
9632 exp_descriptor_standard.
9633
9634 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9635
9636 * f-exp.y (struct token): Add comments.
9637 (dot_ops): Remove uppercase versions and the end marker.
9638 (f77_keywords): Likewise.
9639 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
9640 entries in the dot_ops array are case insensitive, and use
9641 strncasecmp to compare strings. Also some whitespace cleanup in
9642 this area. Similar for the f77_keywords array, except entries in
9643 this list might be case sensitive.
9644
9645 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9646
9647 * f-exp.y (struct f77_boolean_val): Add comments.
9648 (boolean_values): Remove uppercase versions, and end marker.
9649 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
9650 and use strncasecmp to achieve case insensitivity. Additionally,
9651 perform whitespace cleanup around this code.
9652
9653 2019-03-06 Tom Tromey <tromey@adacore.com>
9654
9655 * remote-sim.c (gdbsim_target_open): Use result of
9656 gdb_argv::release.
9657
9658 2019-03-06 Richard Bunt <richard.bunt@arm.com>
9659 Dirk Schubert <dirk.schubert@arm.com>
9660 Chris January <chris.january@arm.com>
9661
9662 * eval.c (evaluate_subexp_standard): Call Fortran argument
9663 wrapping logic.
9664 * f-lang.c (struct value): A value which can be passed into a
9665 Fortran function call.
9666 (fortran_argument_convert): Wrap Fortran arguments in a pointer
9667 where appropriate.
9668 (struct type): Value ready for a Fortran function call.
9669 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
9670 is needed.
9671 * f-lang.h (fortran_argument_convert): Declaration.
9672 (fortran_preserve_arg_pointer): Declaration.
9673 * infcall.c (value_arg_coerce): Call Fortran argument logic.
9674
9675 2019-03-05 Tom Tromey <tromey@adacore.com>
9676
9677 * python/py-prettyprint.c (print_string_repr): Remove #if.
9678 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
9679
9680 2019-03-05 Tom Tromey <tromey@adacore.com>
9681
9682 * target.c (the_dummy_target): Move later. Change type to
9683 "dummy_target".
9684 (initialize_targets): Don't initialize the_dummy_target.
9685
9686 2019-03-05 Tom Tromey <tromey@adacore.com>
9687
9688 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
9689 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
9690
9691 2019-03-05 Tom Tromey <tromey@adacore.com>
9692
9693 * windows-nat.c (windows_nat_target::attach)
9694 (windows_nat_target::detach): Don't call gdb_flush.
9695 * valprint.c (generic_val_print, val_print, val_print_string):
9696 Don't call gdb_flush.
9697 * utils.c (defaulted_query): Don't call gdb_flush.
9698 * typeprint.c (print_type_scalar): Don't call gdb_flush.
9699 * target.c (target_announce_detach): Don't call gdb_flush.
9700 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
9701 * remote.c (extended_remote_target::attach): Don't call
9702 gdb_flush.
9703 * procfs.c (procfs_target::detach): Don't call gdb_flush.
9704 * printcmd.c (do_examine): Don't call gdb_flush.
9705 (info_display_command): Don't call gdb_flush.
9706 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
9707 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
9708 * memattr.c (info_mem_command): Don't call gdb_flush.
9709 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
9710 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
9711 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
9712 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
9713 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
9714 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
9715 (gnu_nat_target::detach): Don't call gdb_flush.
9716 * f-valprint.c (f_val_print): Don't call gdb_flush.
9717 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
9718 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
9719 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
9720 gdb_flush.
9721 * c-valprint.c (c_val_print): Don't call gdb_flush.
9722 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
9723
9724 2019-03-05 Tom Tromey <tromey@adacore.com>
9725
9726 * varobj.c (update_dynamic_varobj_children): Update.
9727 (install_default_visualizer): Use reset, not release.
9728 * value.c (set_internalvar): Update.
9729 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
9730 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
9731 ATTRIBUTE_UNUSED_RESULT.
9732
9733 2019-03-05 Tom Tromey <tromey@adacore.com>
9734
9735 * remote.c (class scoped_remote_fd) <release>: Add
9736 ATTRIBUTE_UNUSED_RESULT.
9737
9738 2019-03-05 Tom Tromey <tromey@adacore.com>
9739
9740 * macroexp.c (struct macro_buffer) <release>: Add
9741 ATTRIBUTE_UNUSED_RESULT.
9742
9743 2019-03-05 Tom Tromey <tromey@adacore.com>
9744
9745 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
9746 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
9747 ATTRIBUTE_UNUSED_RESULT.
9748
9749 2019-03-05 Tom Tromey <tromey@adacore.com>
9750
9751 * common/scoped_fd.h (class scoped_fd) <release>: Add
9752 ATTRIBUTE_UNUSED_RESULT.
9753
9754 2019-03-05 Tom Tromey <tromey@adacore.com>
9755
9756 * parser-defs.h (struct parser_state) <release>: Add
9757 ATTRIBUTE_UNUSED_RESULT.
9758
9759 2019-03-05 Tom Tromey <tromey@adacore.com>
9760
9761 * utils.h (class gdb_argv) <release>: Add
9762 ATTRIBUTE_UNUSED_RESULT.
9763 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
9764
9765 2019-03-02 Eli Zaretskii <eliz@gnu.org>
9766
9767 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
9768 for-loop range, to avoid compiler warnings.
9769
9770 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
9771 avoid compiler warnings about unused variables.
9772
9773 * NEWS: Mention end of support for native debugging on MS-Windows
9774 before XP.
9775
9776 PR gdb/24292
9777 * common/netstuff.c:
9778 * gdbserver/gdbreplay.c
9779 * gdbserver/remote-utils.c:
9780 * ser-tcp.c:
9781 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
9782 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
9783 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
9784 'getaddrinfo' and 'freeaddrinfo' were not available before
9785 Windows XP, and mingw.org's MinGW headers by default define
9786 _WIN32_WINNT to 0x500.
9787
9788 2019-03-01 Gary Benson <gbenson@redhat.com>
9789
9790 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
9791
9792 2019-02-28 Brian Vandenberg <phantall@gmail.com>
9793 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9794
9795 PR gdb/8527
9796 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
9797 set_sigint_trap, clear_sigint_trap.
9798
9799 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9800
9801 * target.c (target_detach): Clear the regcache and the
9802 frame cache.
9803
9804 2019-02-27 Pedro Alves <palves@redhat.com>
9805
9806 * utils.c (set_screen_size): When we cap the height/width sizes,
9807 tweak the corresponding command variable to show "unlimited":
9808
9809 2019-02-27 Saagar Jha <saagar@saagarjha.com>
9810 Pedro Alves <palves@redhat.com>
9811
9812 * utils.c (set_screen_size): Reduce "infinite" rows and columns
9813 before calling rl_set_screen_size.
9814
9815 2019-02-27 Tom Tromey <tromey@adacore.com>
9816
9817 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
9818 define.
9819 * python/py-value.c: Remove Python 2.4 workaround.
9820 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
9821 workaround.
9822 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
9823 Python 2.4 workaround.
9824 * python/python-internal.h: Remove Python 2.4 comment.
9825 (Py_ssize_t): Don't define.
9826 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
9827 (gdb_Py_DECREF): Remove Python 2.4 workaround.
9828 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
9829 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
9830 * python/python.c (do_start_initialization): Remove Python 2.4
9831 workaround.
9832 * python/py-prettyprint.c (class dummy_python_frame): Remove.
9833 (print_children): Remove Python 2.4 workaround.
9834 * python/py-inferior.c (buffer_procs): Remove Python 2.4
9835 workaround.
9836 (CHARBUFFERPROC_NAME): Remove.
9837 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
9838 Python 2.4 workaround.
9839
9840 2019-02-27 Kevin Buettner <kevinb@redhat.com>
9841
9842 * NEWS: Note minimum Python version.
9843
9844 2019-02-27 Kevin Buettner <kevinb@redhat.com>
9845
9846 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
9847 code from these functions. Remove corresponding ifdefs. Use
9848 Py_buffer_up instead of explicit calls to PyBuffer_Release.
9849 Remove gotos and target of gotos.
9850 (infpy_search_memory): Likewise.
9851
9852 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9853
9854 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
9855 (hppa_gdbarch_init): Don't register deleted functions with
9856 gdbarch.
9857
9858 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9859
9860 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
9861 (h8300_unwind_sp): Delete.
9862 (h8300_dummy_id): Delete.
9863 (h8300_gdbarch_init): Don't register deleted functions with
9864 gdbarch.
9865
9866 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9867
9868 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
9869 (ft32_unwind_pc): Delete.
9870 (ft32_unwind_sp): Delete.
9871 (ft32_gdbarch_init): Don't register deleted functions with
9872 gdbarch.
9873
9874 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9875
9876 * gdb/frv-tdep.c (frv_dummy_id): Delete.
9877 (frv_unwind_pc): Delete.
9878 (frv_unwind_sp): Delete.
9879 (frv_gdbarch_init): Don't register deleted functions with
9880 gdbarch.
9881
9882 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9883
9884 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
9885 (riscv_unwind_pc): Delete.
9886 (riscv_unwind_sp): Delete.
9887 (riscv_gdbarch_init): Don't register deleted functions with
9888 gdbarch.
9889
9890 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9891
9892 * gdb/csky-tdep.c (csky_dummy_id): Delete.
9893 (csky_unwind_pc): Delete.
9894 (csky_unwind_sp): Delete.
9895 (csky_gdbarch_init): Don't register deleted functions with
9896 gdbarch.
9897
9898 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9899
9900 * gdb/cris-tdep.c (cris_dummy_id): Delete.
9901 (cris_unwind_pc): Delete.
9902 (cris_unwind_sp): Delete.
9903 (cris_gdbarch_init): Don't register deleted functions with
9904 gdbarch.
9905
9906 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9907
9908 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
9909 (bfin_unwind_pc): Delete.
9910 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
9911
9912 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9913
9914 * gdb/arm-tdep.c (arm_dummy_id): Delete.
9915 (arm_unwind_pc): Delete.
9916 (arm_unwind_sp): Delete.
9917 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
9918
9919 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9920
9921 * gdb/arc-tdep.c (arc_dummy_id): Delete.
9922 (arc_unwind_pc): Delete.
9923 (arc_unwind_sp): Delete.
9924 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
9925
9926 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9927
9928 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
9929 (alpha_unwind_pc): Delete.
9930 (alpha_gdbarch_init): Don't register deleted functions with
9931 gdbarch.
9932
9933 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9934
9935 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
9936 (aarch64_unwind_pc): Delete.
9937 (aarch64_unwind_sp): Delete.
9938 (aarch64_gdbarch_init): Don't register deleted functions with
9939 gdbarch.
9940
9941 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9942
9943 * gdbtypes.c (type_align): Don't consider static members when
9944 computing structure alignment.
9945
9946 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9947
9948 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
9949 return 0 for other types.
9950 * arch-utils.c (default_type_align): Always return 0.
9951 * gdbarch.h: Regenerate.
9952 * gdbarch.sh (type_align): Extend comment.
9953 * gdbtypes.c (type_align): Add additional comments, always call
9954 gdbarch_type_align before applying the default rules.
9955 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
9956 generic code will then apply a suitable default.
9957 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
9958 types, return 0 for other types.
9959
9960 2019-02-27 Joel Brobecker <brobecker@adacore.com>
9961
9962 * NEWS: Create a new section for the next release branch.
9963 Rename the section of the current branch, now that it has
9964 been cut.
9965
9966 2019-02-27 Joel Brobecker <brobecker@adacore.com>
9967
9968 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
9969 * version.in: Bump version to 8.3.50.DATE-git.
9970
9971 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
9972
9973 * aix-thread.c (ptid_cmp): Remove unused variable.
9974 (get_signaled_thread): Likewise.
9975 (store_regs_user_thread): Likewise.
9976 (store_regs_kernel_thread): Likewise.
9977 (fetch_regs_kernel_thread): Remove shadowed variable.
9978
9979 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
9980
9981 * features/riscv/32bit-cpu.xml: Add register numbers.
9982 * features/riscv/32bit-fpu.c: Regenerate.
9983 * features/riscv/32bit-fpu.xml: Add register numbers.
9984 * features/riscv/64bit-cpu.xml: Add register numbers.
9985 * features/riscv/64bit-fpu.c: Regenerate.
9986 * features/riscv/64bit-fpu.xml: Add register numbers.
9987
9988 2019-02-26 Kevin Buettner <kevinb@redhat.com>
9989
9990 * NEWS: Mention two argument form of gdb.Value constructor.
9991 * python/py-value.c (convert_buffer_and_type_to_value): New
9992 function.
9993 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
9994 Add support for handling an optional second argument. Call
9995 convert_buffer_and_type_to_value as appropriate.
9996 * python/python-internal.h (Py_buffer_deleter): New struct.
9997 (Py_buffer_up): New typedef.
9998
9999 2019-02-25 John Baldwin <jhb@FreeBSD.org>
10000
10001 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
10002 instead of releasing ownership.
10003
10004 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
10005
10006 * dwarf2read.c (open_and_init_dwp_file): Call
10007 elf_numsections instead of bfd_count_sections to initialize
10008 dwp_file->num_sections.
10009
10010 2019-02-25 Tom Tromey <tromey@adacore.com>
10011
10012 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
10013
10014 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
10015
10016 * gcore.in: Add '--readnever' option when invoking GDB.
10017
10018 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
10019
10020 * MAINTAINERS: Update my email address.
10021
10022 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
10023
10024 * build-id.c (build_id_to_debug_bfd_1): New function.
10025 (build_id_to_debug_bfd): Look for separate debug file in
10026 sysroot.
10027
10028 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
10029
10030 * gdbarch.sh: Update the copyright year range that is placed into
10031 generated files.
10032
10033 2019-02-22 Keith Seitz <keiths@redhat.com>
10034
10035 PR symtab/23853
10036 * linespec.c (create_sals_line_offset): Search for the default
10037 symtab's filename instead of its fullname.
10038
10039 2019-02-21 Alan Hayward <alan.hayward@arm.com>
10040
10041 * NEWS: Update style defaults.
10042
10043 2019-02-21 Alan Hayward <alan.hayward@arm.com>
10044
10045 * main.c (captured_main_1): Disable styling in batch mode.
10046
10047 2019-02-20 Tom Tromey <tom@tromey.com>
10048
10049 * symtab.c (symtab_symbol_info): Fix typos.
10050
10051 2019-02-20 Tom Tromey <tromey@adacore.com>
10052
10053 * findcmd.c (_initialize_mem_search): Use upper case for
10054 metasyntactic variables.
10055
10056 2019-02-20 Alan Hayward <alan.hayward@arm.com>
10057
10058 * aarch64-tdep.c (aarch64_add_reggroups): New function.
10059 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
10060
10061 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
10062
10063 * top.h (source_file_name): Change to std::string.
10064 * top.c (source_file_name): Likewise.
10065 (command_line_input): Adjust.
10066 * cli/cli-script.c (script_from_file): Adjust.
10067
10068 2019-02-19 Tom Tromey <tromey@adacore.com>
10069
10070 * ravenscar-thread.c
10071 (ravenscar_thread_target::update_thread_list): Don't call
10072 ada_build_task_list.
10073 * ada-lang.h (ada_build_task_list): Don't declare.
10074 * ada-tasks.c (struct ada_tasks_inferior_data)
10075 <task_list_valid_p>: Now bool.
10076 (read_known_tasks, ada_task_list_changed)
10077 (ada_tasks_invalidate_inferior_data): Update.
10078 (read_known_tasks_array): Return bool.
10079 (read_known_tasks_list): Likewise.
10080 (read_known_tasks): Return void.
10081 (ada_build_task_list): Now static.
10082
10083 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
10084
10085 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
10086 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
10087
10088 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10089
10090 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
10091 variant for ada_tasks_pspace_data_handle and
10092 ada_tasks_inferior_data_handle.
10093 (ada_tasks_pspace_data_cleanup): New function.
10094 (ada_tasks_inferior_data_cleanup): New function.
10095
10096 2019-02-17 Tom Tromey <tom@tromey.com>
10097
10098 * macrotab.h (macro_source_fullname): Return a std::string.
10099 * macrotab.c (macro_include, check_for_redefinition)
10100 (macro_undef, macro_lookup_definition, foreach_macro)
10101 (foreach_macro_in_scope): Update.
10102 (macro_source_fullname): Return a std::string.
10103 * macrocmd.c (show_pp_source_pos): Update.
10104
10105 2019-02-17 Tom Tromey <tom@tromey.com>
10106
10107 * macrocmd.c (show_pp_source_pos): Style the file names.
10108
10109 2019-02-17 Tom Tromey <tom@tromey.com>
10110
10111 PR tui/24197:
10112 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
10113
10114 2019-02-17 Tom Tromey <tom@tromey.com>
10115
10116 * ada-lang.c (user_select_syms): Use filtered printing.
10117 * utils.c (wrap_style): New global.
10118 (desired_style): Remove.
10119 (emit_style_escape): Add stream parameter.
10120 (set_output_style, reset_terminal_style, prompt_for_continue):
10121 Update.
10122 (flush_wrap_buffer): Only flush gdb_stdout.
10123 (wrap_here): Set wrap_style.
10124 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
10125 treat escape sequences as a character. Change when wrap buffer is
10126 flushed.
10127 (fputs_styled): Do not set the output style when the default is
10128 requested.
10129 * ui-style.h (struct ui_file_style) <is_default>: New method.
10130 * source.c (print_source_lines_base): Emit escape sequences in one
10131 piece.
10132
10133 2019-02-17 Joel Brobecker <brobecker@adacore.com>
10134
10135 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
10136 integers and enumeration types.
10137
10138 2019-02-17 Joel Brobecker <brobecker@adacore.com>
10139
10140 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
10141 instead of lookup_symbol_in_language
10142 (do_exact_match): New function.
10143 (ada_get_symbol_name_matcher): Return do_exact_match when
10144 doing a verbatim match.
10145
10146 2019-02-15 Tom Tromey <tromey@adacore.com>
10147
10148 * ravenscar-thread.c (ravenscar_thread_target::resume)
10149 (ravenscar_thread_target::wait): Special case wildcard requests.
10150
10151 2019-02-15 Tom Tromey <tromey@adacore.com>
10152
10153 * ravenscar-thread.c (base_ptid): Remove.
10154 (struct ravenscar_thread_target) <close>: New method.
10155 <m_base_ptid>: New member.
10156 <update_inferior_ptid, active_task, task_is_currently_active,
10157 runtime_initialized>: Declare methods.
10158 <ravenscar_thread_target>: Add constructor.
10159 (ravenscar_thread_target::task_is_currently_active)
10160 (ravenscar_thread_target::update_inferior_ptid)
10161 (ravenscar_runtime_initialized): Rename. Now methods.
10162 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
10163 (ravenscar_thread_target::update_thread_list): Update.
10164 (ravenscar_thread_target::active_task): Now method.
10165 (ravenscar_thread_target::store_registers)
10166 (ravenscar_thread_target::prepare_to_store)
10167 (ravenscar_thread_target::prepare_to_store)
10168 (ravenscar_thread_target::mourn_inferior): Update.
10169 (ravenscar_inferior_created): Use "new" to create target.
10170 (ravenscar_thread_target::get_ada_task_ptid): Update.
10171 (_initialize_ravenscar): Don't initialize base_ptid.
10172 (ravenscar_ops): Remove global.
10173
10174 2019-02-15 Tom Tromey <tromey@adacore.com>
10175
10176 * target.h (push_target): Declare new overload.
10177 * target.c (push_target): New overload, taking an rvalue reference.
10178 * remote.c (remote_target::open_1): Use push_target overload.
10179 * corelow.c (core_target_open): Use push_target overload.
10180
10181 2019-02-15 Tom Tromey <tromey@adacore.com>
10182
10183 * ravenscar-thread.c (is_ravenscar_task)
10184 (ravenscar_task_is_currently_active): Return bool.
10185 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
10186 (_initialize_ravenscar): Remove "(void)".
10187 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
10188 Return bool.
10189
10190 2019-02-15 Tom Tromey <tromey@adacore.com>
10191
10192 * ravenscar-thread.c (ravenscar_runtime_initializer)
10193 (has_ravenscar_runtime, get_running_thread_id)
10194 (ravenscar_thread_target::resume): Fix indentation.
10195
10196 2019-02-15 Tom Tromey <tromey@adacore.com>
10197
10198 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
10199 from ravenscar_arch_ops.
10200 (sparc_ravenscar_ops::fetch_registers)
10201 (sparc_ravenscar_ops::store_registers): Now methods.
10202 (sparc_ravenscar_prepare_to_store): Remove.
10203 (sparc_ravenscar_ops): Redefine.
10204 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
10205 methods and destructor. Remove members.
10206 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
10207 (ravenscar_thread_target::store_registers)
10208 (ravenscar_thread_target::prepare_to_store): Update.
10209 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
10210 Remove.
10211 (struct ppc_ravenscar_powerpc_ops): Derive from
10212 ravenscar_arch_ops.
10213 (ppc_ravenscar_powerpc_ops::fetch_registers)
10214 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
10215 (ppc_ravenscar_powerpc_ops): Redefine.
10216 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
10217 (ppc_ravenscar_e500_ops::fetch_registers)
10218 (ppc_ravenscar_e500_ops::store_registers): Now methods.
10219 (ppc_ravenscar_e500_ops): Redefine.
10220 * aarch64-ravenscar-thread.c
10221 (aarch64_ravenscar_generic_prepare_to_store): Remove.
10222 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
10223 (aarch64_ravenscar_fetch_registers)
10224 (aarch64_ravenscar_store_registers): Now methods.
10225 (aarch64_ravenscar_ops): Redefine.
10226
10227 2019-02-15 Tom Tromey <tromey@adacore.com>
10228
10229 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
10230 (ravenscar_thread_target::stopped_by_hw_breakpoint)
10231 (ravenscar_thread_target::stopped_by_watchpoint)
10232 (ravenscar_thread_target::stopped_data_address)
10233 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
10234
10235 2019-02-15 Tom Tromey <tromey@adacore.com>
10236
10237 * ravenscar-thread.c: Fix some typos.
10238
10239 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10240 Tom Tromey <tromey@adacore.com>
10241
10242 * ada-lang.c (ada_exception_sal): Change addr_string to a
10243 std::string.
10244 (create_ada_exception_catchpoint): Update.
10245
10246 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10247 Tom Tromey <tromey@adacore.com>
10248
10249 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
10250 (bp_location_ops): Remove.
10251 (base_breakpoint_allocate_location): Update.
10252 (free_bp_location): Update.
10253 * ada-lang.c (class ada_catchpoint_location)
10254 <ada_catchpoint_location>: Remove ops parameter.
10255 (ada_catchpoint_location_dtor): Remove.
10256 (ada_catchpoint_location_ops): Remove.
10257 (allocate_location_exception): Update.
10258 * breakpoint.h (struct bp_location_ops): Remove.
10259 (class bp_location) <bp_location>: Remove bp_location_ops
10260 parameter.
10261 <~bp_location>: Add destructor.
10262 <ops>: Remove.
10263
10264 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10265 Pedro Alves <palves@redhat.com>
10266
10267 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
10268 'PATH_MAX'.
10269
10270 2019-02-14 David Michael <fedora.dm0@gmail.com>
10271 Samuel Thibault <samuel.thibault@gnu.org>
10272 Thomas Schwinge <thomas@codesourcery.com>
10273
10274 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
10275 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
10276
10277 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10278
10279 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
10280 (check_empty): Use "const char *".
10281
10282 * gnu-nat.c (gnu_nat_target::detach): Instead of
10283 'detach_inferior (pid)' call
10284 'detach_inferior (find_inferior_pid (pid))'.
10285
10286 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
10287 'nat/fork-inferior.o'.
10288 * gnu-nat.c: #include "nat/fork-inferior.h".
10289
10290 * gnu-nat.c (gnu_nat_target::detach): Instead of
10291 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
10292 * gnu-nat.h: #include "inf-child.h".
10293 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
10294 'i386_gnu_nat_target::fetch_registers'.
10295 (gnu_store_registers): Rename/move to
10296 'i386_gnu_nat_target::store_registers'.
10297
10298 * config/i386/nm-i386gnu.h: Don't "#include" any files.
10299 * gnu-nat.h (mach_thread_info): New function.
10300 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
10301
10302 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
10303
10304 2019-02-14 Frederic Konrad <konrad@adacore.com>
10305
10306 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
10307
10308 2019-02-14 Joel Brobecker <brobecker@adacore.com>
10309
10310 * windows-nat.c (windows_add_thread): Add new parameter
10311 "main_thread_p" with default value set to false. Update
10312 function documentation as well as all callers.
10313 (windows_delete_thread): Likewise.
10314 (fake_create_process): Update call to windows_add_thread.
10315 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
10316 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
10317 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
10318 call to windows_delete_thread.
10319
10320 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
10321
10322 * MAINTAINERS: Add Andrew Burgess as global maintainer.
10323
10324 2019-02-12 John Baldwin <jhb@FreeBSD.org>
10325
10326 * symfile.c (find_separate_debug_file): Use canonical path of
10327 sysroot with child_path instead of gdb_sysroot if it is valid.
10328
10329 2019-02-12 John Baldwin <jhb@FreeBSD.org>
10330
10331 * symfile.c (find_separate_debug_file): Use child_path to
10332 determine if an object file is under a sysroot.
10333
10334 2019-02-12 John Baldwin <jhb@FreeBSD.org>
10335
10336 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10337 unittests/child-path-selftests.c.
10338 * common/pathstuff.c (child_path): New function.
10339 * common/pathstuff.h (child_path): New prototype.
10340 * unittests/child-path-selftests.c: New file.
10341
10342 2019-02-12 John Baldwin <jhb@FreeBSD.org>
10343
10344 * symfile.c (find_separate_debug_file): Look for separate debug
10345 files in debug directories under the sysroot.
10346
10347 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10348
10349 * symtab.h (struct minimal_symbol data_p): New const method.
10350 (struct minimal_symbol text_p): Likewise.
10351 * symtab.c (output_source_filename): Use file name style
10352 to print file name.
10353 (print_symbol_info): Likewise.
10354 (print_msymbol_info): Use address style to print addresses.
10355 Use function name style to print executable text symbols.
10356 (expand_symtab_containing_pc): Use data_p.
10357 (find_pc_sect_compunit_symtab): Likewise.
10358
10359 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10360
10361 * breakpoint.c (describe_other_breakpoints): Use address style
10362 to print addresses.
10363 (say_where): Likewise.
10364
10365 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10366
10367 * ada-typeprint.c (print_func_type): Print function name
10368 style to print function name.
10369 * c-typeprint.c (c_print_type_1): Likewise.
10370
10371 2019-02-11 Alan Hayward <alan.hayward@arm.com>
10372
10373 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
10374 for execve.
10375
10376 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10377
10378 * c-exp.y (direct_abs_decl): Use emplace_back to record the
10379 type_stack.
10380
10381 2019-02-10 Joel Brobecker <brobecker@adacore.com>
10382
10383 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
10384 TYPE_CODE_REF types.
10385
10386 2019-02-08 Jim Wilson <jimw@sifive.com>
10387
10388 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
10389 (riscv_linux_fregset): New.
10390 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
10391
10392 2019-02-07 Tom Tromey <tom@tromey.com>
10393
10394 * thread.c (thread_cancel_execution_command): Update.
10395 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
10396 methods.
10397 (struct thread_fsm_ops): Remove.
10398 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
10399 (thread_fsm_should_stop, thread_fsm_return_value)
10400 (thread_fsm_set_finished, thread_fsm_finished_p)
10401 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
10402 Don't declare.
10403 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
10404 * infrun.c (clear_proceed_status_thread)
10405 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
10406 (print_stop_event): Update.
10407 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
10408 Add constructor.
10409 (step_command_fsm_ops): Remove.
10410 (new_step_command_fsm): Remove.
10411 (step_1): Update.
10412 (step_command_fsm::should_stop): Rename from
10413 step_command_fsm_should_stop.
10414 (step_command_fsm::clean_up): Rename from
10415 step_command_fsm_clean_up.
10416 (step_command_fsm::do_async_reply_reason): Rename from
10417 step_command_fsm_async_reply_reason.
10418 (struct until_next_fsm): Inherit from thread_fsm. Add
10419 constructor.
10420 (until_next_fsm_ops): Remove.
10421 (new_until_next_fsm): Remove.
10422 (until_next_fsm::should_stop): Rename from
10423 until_next_fsm_should_stop.
10424 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
10425 (until_next_fsm::do_async_reply_reason): Rename from
10426 until_next_fsm_async_reply_reason.
10427 (struct finish_command_fsm): Inherit from thread_fsm. Add
10428 constructor. Change type of breakpoint.
10429 (finish_command_fsm_ops): Remove.
10430 (new_finish_command_fsm): Remove.
10431 (finish_command_fsm::should_stop): Rename from
10432 finish_command_fsm_should_stop.
10433 (finish_command_fsm::clean_up): Rename from
10434 finish_command_fsm_clean_up.
10435 (finish_command_fsm::return_value): Rename from
10436 finish_command_fsm_return_value.
10437 (finish_command_fsm::do_async_reply_reason): Rename from
10438 finish_command_fsm_async_reply_reason.
10439 (finish_command): Update.
10440 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
10441 Add constructor.
10442 (call_thread_fsm_ops): Remove.
10443 (call_thread_fsm::call_thread_fsm): Rename from
10444 new_call_thread_fsm.
10445 (call_thread_fsm::should_stop): Rename from
10446 call_thread_fsm_should_stop.
10447 (call_thread_fsm::should_notify_stop): Rename from
10448 call_thread_fsm_should_notify_stop.
10449 (run_inferior_call, call_function_by_hand_dummy): Update.
10450 * cli/cli-interp.c (should_print_stop_to_console): Update.
10451 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
10452 Add constructor. Change type of location_breakpoint,
10453 caller_breakpoint.
10454 (until_break_fsm_ops): Remove.
10455 (new_until_break_fsm): Remove.
10456 (until_break_fsm::should_stop): Rename from
10457 until_break_fsm_should_stop.
10458 (until_break_fsm::clean_up): Rename from
10459 until_break_fsm_clean_up.
10460 (until_break_fsm::do_async_reply_reason): Rename from
10461 until_break_fsm_async_reply_reason.
10462 (until_break_command): Update.
10463 * thread-fsm.c: Remove.
10464 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
10465
10466 2019-02-07 Tom Tromey <tom@tromey.com>
10467
10468 * yy-remap.h: Add include guard.
10469 * xtensa-tdep.h: Add include guard.
10470 * xcoffread.h: Rename include guard.
10471 * varobj-iter.h: Add include guard.
10472 * tui/tui.h: Rename include guard.
10473 * tui/tui-winsource.h: Rename include guard.
10474 * tui/tui-wingeneral.h: Rename include guard.
10475 * tui/tui-windata.h: Rename include guard.
10476 * tui/tui-win.h: Rename include guard.
10477 * tui/tui-stack.h: Rename include guard.
10478 * tui/tui-source.h: Rename include guard.
10479 * tui/tui-regs.h: Rename include guard.
10480 * tui/tui-out.h: Rename include guard.
10481 * tui/tui-layout.h: Rename include guard.
10482 * tui/tui-io.h: Rename include guard.
10483 * tui/tui-hooks.h: Rename include guard.
10484 * tui/tui-file.h: Rename include guard.
10485 * tui/tui-disasm.h: Rename include guard.
10486 * tui/tui-data.h: Rename include guard.
10487 * tui/tui-command.h: Rename include guard.
10488 * tic6x-tdep.h: Add include guard.
10489 * target/waitstatus.h: Rename include guard.
10490 * target/wait.h: Rename include guard.
10491 * target/target.h: Rename include guard.
10492 * target/resume.h: Rename include guard.
10493 * target-float.h: Rename include guard.
10494 * stabsread.h: Add include guard.
10495 * rs6000-tdep.h: Add include guard.
10496 * riscv-fbsd-tdep.h: Add include guard.
10497 * regformats/regdef.h: Rename include guard.
10498 * record.h: Rename include guard.
10499 * python/python.h: Rename include guard.
10500 * python/python-internal.h: Rename include guard.
10501 * python/py-stopevent.h: Rename include guard.
10502 * python/py-ref.h: Rename include guard.
10503 * python/py-record.h: Rename include guard.
10504 * python/py-record-full.h: Rename include guard.
10505 * python/py-record-btrace.h: Rename include guard.
10506 * python/py-instruction.h: Rename include guard.
10507 * python/py-events.h: Rename include guard.
10508 * python/py-event.h: Rename include guard.
10509 * procfs.h: Add include guard.
10510 * proc-utils.h: Add include guard.
10511 * p-lang.h: Add include guard.
10512 * or1k-tdep.h: Rename include guard.
10513 * observable.h: Rename include guard.
10514 * nto-tdep.h: Rename include guard.
10515 * nat/x86-linux.h: Rename include guard.
10516 * nat/x86-linux-dregs.h: Rename include guard.
10517 * nat/x86-gcc-cpuid.h: Add include guard.
10518 * nat/x86-dregs.h: Rename include guard.
10519 * nat/x86-cpuid.h: Rename include guard.
10520 * nat/ppc-linux.h: Rename include guard.
10521 * nat/mips-linux-watch.h: Rename include guard.
10522 * nat/linux-waitpid.h: Rename include guard.
10523 * nat/linux-ptrace.h: Rename include guard.
10524 * nat/linux-procfs.h: Rename include guard.
10525 * nat/linux-osdata.h: Rename include guard.
10526 * nat/linux-nat.h: Rename include guard.
10527 * nat/linux-namespaces.h: Rename include guard.
10528 * nat/linux-btrace.h: Rename include guard.
10529 * nat/glibc_thread_db.h: Rename include guard.
10530 * nat/gdb_thread_db.h: Rename include guard.
10531 * nat/gdb_ptrace.h: Rename include guard.
10532 * nat/fork-inferior.h: Rename include guard.
10533 * nat/amd64-linux-siginfo.h: Rename include guard.
10534 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
10535 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
10536 * nat/aarch64-linux.h: Rename include guard.
10537 * nat/aarch64-linux-hw-point.h: Rename include guard.
10538 * mn10300-tdep.h: Add include guard.
10539 * mips-linux-tdep.h: Add include guard.
10540 * mi/mi-parse.h: Rename include guard.
10541 * mi/mi-out.h: Rename include guard.
10542 * mi/mi-main.h: Rename include guard.
10543 * mi/mi-interp.h: Rename include guard.
10544 * mi/mi-getopt.h: Rename include guard.
10545 * mi/mi-console.h: Rename include guard.
10546 * mi/mi-common.h: Rename include guard.
10547 * mi/mi-cmds.h: Rename include guard.
10548 * mi/mi-cmd-break.h: Rename include guard.
10549 * m2-lang.h: Add include guard.
10550 * location.h: Rename include guard.
10551 * linux-record.h: Rename include guard.
10552 * linux-nat.h: Add include guard.
10553 * linux-fork.h: Add include guard.
10554 * i386-darwin-tdep.h: Rename include guard.
10555 * hppa-linux-offsets.h: Add include guard.
10556 * guile/guile.h: Rename include guard.
10557 * guile/guile-internal.h: Rename include guard.
10558 * gnu-nat.h: Rename include guard.
10559 * gdb-stabs.h: Rename include guard.
10560 * frv-tdep.h: Add include guard.
10561 * f-lang.h: Add include guard.
10562 * event-loop.h: Add include guard.
10563 * darwin-nat.h: Rename include guard.
10564 * cp-abi.h: Rename include guard.
10565 * config/sparc/nm-sol2.h: Rename include guard.
10566 * config/nm-nto.h: Rename include guard.
10567 * config/nm-linux.h: Add include guard.
10568 * config/i386/nm-i386gnu.h: Rename include guard.
10569 * config/djgpp/nl_types.h: Rename include guard.
10570 * config/djgpp/langinfo.h: Rename include guard.
10571 * compile/gcc-cp-plugin.h: Add include guard.
10572 * compile/gcc-c-plugin.h: Add include guard.
10573 * compile/compile.h: Rename include guard.
10574 * compile/compile-object-run.h: Rename include guard.
10575 * compile/compile-object-load.h: Rename include guard.
10576 * compile/compile-internal.h: Rename include guard.
10577 * compile/compile-cplus.h: Rename include guard.
10578 * compile/compile-c.h: Rename include guard.
10579 * common/xml-utils.h: Rename include guard.
10580 * common/x86-xstate.h: Rename include guard.
10581 * common/version.h: Rename include guard.
10582 * common/vec.h: Rename include guard.
10583 * common/tdesc.h: Rename include guard.
10584 * common/selftest.h: Rename include guard.
10585 * common/scoped_restore.h: Rename include guard.
10586 * common/scoped_mmap.h: Rename include guard.
10587 * common/scoped_fd.h: Rename include guard.
10588 * common/safe-iterator.h: Rename include guard.
10589 * common/run-time-clock.h: Rename include guard.
10590 * common/refcounted-object.h: Rename include guard.
10591 * common/queue.h: Rename include guard.
10592 * common/ptid.h: Rename include guard.
10593 * common/print-utils.h: Rename include guard.
10594 * common/preprocessor.h: Rename include guard.
10595 * common/pathstuff.h: Rename include guard.
10596 * common/observable.h: Rename include guard.
10597 * common/netstuff.h: Rename include guard.
10598 * common/job-control.h: Rename include guard.
10599 * common/host-defs.h: Rename include guard.
10600 * common/gdb_wait.h: Rename include guard.
10601 * common/gdb_vecs.h: Rename include guard.
10602 * common/gdb_unlinker.h: Rename include guard.
10603 * common/gdb_unique_ptr.h: Rename include guard.
10604 * common/gdb_tilde_expand.h: Rename include guard.
10605 * common/gdb_sys_time.h: Rename include guard.
10606 * common/gdb_string_view.h: Rename include guard.
10607 * common/gdb_splay_tree.h: Rename include guard.
10608 * common/gdb_setjmp.h: Rename include guard.
10609 * common/gdb_ref_ptr.h: Rename include guard.
10610 * common/gdb_optional.h: Rename include guard.
10611 * common/gdb_locale.h: Rename include guard.
10612 * common/gdb_assert.h: Rename include guard.
10613 * common/filtered-iterator.h: Rename include guard.
10614 * common/filestuff.h: Rename include guard.
10615 * common/fileio.h: Rename include guard.
10616 * common/environ.h: Rename include guard.
10617 * common/common-utils.h: Rename include guard.
10618 * common/common-types.h: Rename include guard.
10619 * common/common-regcache.h: Rename include guard.
10620 * common/common-inferior.h: Rename include guard.
10621 * common/common-gdbthread.h: Rename include guard.
10622 * common/common-exceptions.h: Rename include guard.
10623 * common/common-defs.h: Rename include guard.
10624 * common/common-debug.h: Rename include guard.
10625 * common/cleanups.h: Rename include guard.
10626 * common/buffer.h: Rename include guard.
10627 * common/btrace-common.h: Rename include guard.
10628 * common/break-common.h: Rename include guard.
10629 * cli/cli-utils.h: Rename include guard.
10630 * cli/cli-style.h: Rename include guard.
10631 * cli/cli-setshow.h: Rename include guard.
10632 * cli/cli-script.h: Rename include guard.
10633 * cli/cli-interp.h: Rename include guard.
10634 * cli/cli-decode.h: Rename include guard.
10635 * cli/cli-cmds.h: Rename include guard.
10636 * charset-list.h: Add include guard.
10637 * buildsym-legacy.h: Rename include guard.
10638 * bfin-tdep.h: Add include guard.
10639 * ax.h: Rename include guard.
10640 * arm-linux-tdep.h: Add include guard.
10641 * arm-fbsd-tdep.h: Add include guard.
10642 * arch/xtensa.h: Rename include guard.
10643 * arch/tic6x.h: Add include guard.
10644 * arch/i386.h: Add include guard.
10645 * arch/arm.h: Rename include guard.
10646 * arch/arm-linux.h: Rename include guard.
10647 * arch/arm-get-next-pcs.h: Rename include guard.
10648 * arch/amd64.h: Add include guard.
10649 * arch/aarch64-insn.h: Rename include guard.
10650 * arch-utils.h: Rename include guard.
10651 * annotate.h: Add include guard.
10652 * amd64-darwin-tdep.h: Rename include guard.
10653 * aarch64-linux-tdep.h: Add include guard.
10654 * aarch64-fbsd-tdep.h: Add include guard.
10655 * aarch32-linux-nat.h: Add include guard.
10656
10657 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10658
10659 * macrotab.c (macro_define_internal): New function that
10660 factorizes macro_define_object_internal and macro_define_function
10661 code.
10662 (macro_define_object_internal): Use macro_define_internal.
10663 (macro_define_function): Likewise.
10664
10665 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10666
10667 * macrocmd.c (extract_identifier): Return
10668 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
10669 callers.
10670
10671 2019-02-06 John Baldwin <jhb@FreeBSD.org>
10672
10673 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
10674
10675 2019-02-05 Tom Tromey <tom@tromey.com>
10676
10677 * target.c (target_stack::unpush): Move assertion earlier.
10678
10679 2019-01-30 Tom Tromey <tom@tromey.com>
10680
10681 PR python/23615:
10682 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
10683 (gdbpy_parse_and_eval): Likewise.
10684 * python/python-internal.h (gdbpy_allow_threads): New class.
10685
10686 2019-01-28 John Baldwin <jhb@FreeBSD.org>
10687
10688 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
10689 (aarch64_fbsd_fpregmap): Move earlier.
10690 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
10691 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
10692 instead of individual calls to trad_frame_set_reg_addr.
10693 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
10694 earlier.
10695 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
10696 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
10697 instead of individual calls to trad_frame_set_reg_addr.
10698
10699 2019-01-28 Alan Hayward <alan.hayward@arm.com>
10700
10701 * CONTRIBUTE: Replace contribution list with wiki link.
10702
10703 2019-01-25 Tom Tromey <tom@tromey.com>
10704
10705 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
10706
10707 2019-01-25 Tom Tromey <tom@tromey.com>
10708
10709 * xtensa-linux-nat.c: Fix common/ includes.
10710 * xml-support.h: Fix common/ includes.
10711 * xml-support.c: Fix common/ includes.
10712 * x86-linux-nat.c: Fix common/ includes.
10713 * windows-nat.c: Fix common/ includes.
10714 * varobj.h: Fix common/ includes.
10715 * varobj.c: Fix common/ includes.
10716 * value.c: Fix common/ includes.
10717 * valops.c: Fix common/ includes.
10718 * utils.c: Fix common/ includes.
10719 * unittests/xml-utils-selftests.c: Fix common/ includes.
10720 * unittests/utils-selftests.c: Fix common/ includes.
10721 * unittests/unpack-selftests.c: Fix common/ includes.
10722 * unittests/tracepoint-selftests.c: Fix common/ includes.
10723 * unittests/style-selftests.c: Fix common/ includes.
10724 * unittests/string_view-selftests.c: Fix common/ includes.
10725 * unittests/scoped_restore-selftests.c: Fix common/ includes.
10726 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
10727 * unittests/scoped_fd-selftests.c: Fix common/ includes.
10728 * unittests/rsp-low-selftests.c: Fix common/ includes.
10729 * unittests/parse-connection-spec-selftests.c: Fix common/
10730 includes.
10731 * unittests/optional-selftests.c: Fix common/ includes.
10732 * unittests/offset-type-selftests.c: Fix common/ includes.
10733 * unittests/observable-selftests.c: Fix common/ includes.
10734 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
10735 * unittests/memrange-selftests.c: Fix common/ includes.
10736 * unittests/memory-map-selftests.c: Fix common/ includes.
10737 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
10738 * unittests/function-view-selftests.c: Fix common/ includes.
10739 * unittests/environ-selftests.c: Fix common/ includes.
10740 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
10741 * unittests/common-utils-selftests.c: Fix common/ includes.
10742 * unittests/cli-utils-selftests.c: Fix common/ includes.
10743 * unittests/array-view-selftests.c: Fix common/ includes.
10744 * ui-file.c: Fix common/ includes.
10745 * tui/tui-io.c: Fix common/ includes.
10746 * tracepoint.h: Fix common/ includes.
10747 * tracepoint.c: Fix common/ includes.
10748 * tracefile-tfile.c: Fix common/ includes.
10749 * top.h: Fix common/ includes.
10750 * top.c: Fix common/ includes.
10751 * thread.c: Fix common/ includes.
10752 * target/waitstatus.h: Fix common/ includes.
10753 * target/waitstatus.c: Fix common/ includes.
10754 * target.h: Fix common/ includes.
10755 * target.c: Fix common/ includes.
10756 * target-memory.c: Fix common/ includes.
10757 * target-descriptions.c: Fix common/ includes.
10758 * symtab.h: Fix common/ includes.
10759 * symfile.c: Fix common/ includes.
10760 * stap-probe.c: Fix common/ includes.
10761 * spu-linux-nat.c: Fix common/ includes.
10762 * sparc-nat.c: Fix common/ includes.
10763 * source.c: Fix common/ includes.
10764 * solib.c: Fix common/ includes.
10765 * solib-target.c: Fix common/ includes.
10766 * ser-unix.c: Fix common/ includes.
10767 * ser-tcp.c: Fix common/ includes.
10768 * ser-pipe.c: Fix common/ includes.
10769 * ser-base.c: Fix common/ includes.
10770 * selftest-arch.c: Fix common/ includes.
10771 * s12z-tdep.c: Fix common/ includes.
10772 * rust-exp.y: Fix common/ includes.
10773 * rs6000-aix-tdep.c: Fix common/ includes.
10774 * riscv-tdep.c: Fix common/ includes.
10775 * remote.c: Fix common/ includes.
10776 * remote-notif.h: Fix common/ includes.
10777 * remote-fileio.h: Fix common/ includes.
10778 * remote-fileio.c: Fix common/ includes.
10779 * regcache.h: Fix common/ includes.
10780 * regcache.c: Fix common/ includes.
10781 * record-btrace.c: Fix common/ includes.
10782 * python/python.c: Fix common/ includes.
10783 * python/py-type.c: Fix common/ includes.
10784 * python/py-inferior.c: Fix common/ includes.
10785 * progspace.h: Fix common/ includes.
10786 * producer.c: Fix common/ includes.
10787 * procfs.c: Fix common/ includes.
10788 * proc-api.c: Fix common/ includes.
10789 * printcmd.c: Fix common/ includes.
10790 * ppc-linux-nat.c: Fix common/ includes.
10791 * parser-defs.h: Fix common/ includes.
10792 * osdata.c: Fix common/ includes.
10793 * obsd-nat.c: Fix common/ includes.
10794 * nat/x86-linux.c: Fix common/ includes.
10795 * nat/x86-linux-dregs.c: Fix common/ includes.
10796 * nat/x86-dregs.h: Fix common/ includes.
10797 * nat/x86-dregs.c: Fix common/ includes.
10798 * nat/ppc-linux.c: Fix common/ includes.
10799 * nat/mips-linux-watch.h: Fix common/ includes.
10800 * nat/mips-linux-watch.c: Fix common/ includes.
10801 * nat/linux-waitpid.c: Fix common/ includes.
10802 * nat/linux-ptrace.h: Fix common/ includes.
10803 * nat/linux-ptrace.c: Fix common/ includes.
10804 * nat/linux-procfs.c: Fix common/ includes.
10805 * nat/linux-personality.c: Fix common/ includes.
10806 * nat/linux-osdata.c: Fix common/ includes.
10807 * nat/linux-namespaces.c: Fix common/ includes.
10808 * nat/linux-btrace.h: Fix common/ includes.
10809 * nat/linux-btrace.c: Fix common/ includes.
10810 * nat/fork-inferior.c: Fix common/ includes.
10811 * nat/amd64-linux-siginfo.c: Fix common/ includes.
10812 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
10813 * nat/aarch64-linux.c: Fix common/ includes.
10814 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
10815 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
10816 * namespace.h: Fix common/ includes.
10817 * mips-linux-tdep.c: Fix common/ includes.
10818 * minsyms.c: Fix common/ includes.
10819 * mi/mi-parse.h: Fix common/ includes.
10820 * mi/mi-main.c: Fix common/ includes.
10821 * mi/mi-cmd-env.c: Fix common/ includes.
10822 * memrange.h: Fix common/ includes.
10823 * memattr.c: Fix common/ includes.
10824 * maint.h: Fix common/ includes.
10825 * maint.c: Fix common/ includes.
10826 * main.c: Fix common/ includes.
10827 * machoread.c: Fix common/ includes.
10828 * location.c: Fix common/ includes.
10829 * linux-thread-db.c: Fix common/ includes.
10830 * linux-nat.c: Fix common/ includes.
10831 * linux-fork.c: Fix common/ includes.
10832 * inline-frame.c: Fix common/ includes.
10833 * infrun.c: Fix common/ includes.
10834 * inflow.c: Fix common/ includes.
10835 * inferior.h: Fix common/ includes.
10836 * inferior.c: Fix common/ includes.
10837 * infcmd.c: Fix common/ includes.
10838 * inf-ptrace.c: Fix common/ includes.
10839 * inf-child.c: Fix common/ includes.
10840 * ia64-linux-nat.c: Fix common/ includes.
10841 * i387-tdep.c: Fix common/ includes.
10842 * i386-tdep.c: Fix common/ includes.
10843 * i386-linux-tdep.c: Fix common/ includes.
10844 * i386-linux-nat.c: Fix common/ includes.
10845 * i386-go32-tdep.c: Fix common/ includes.
10846 * i386-fbsd-tdep.c: Fix common/ includes.
10847 * i386-fbsd-nat.c: Fix common/ includes.
10848 * guile/scm-type.c: Fix common/ includes.
10849 * guile/guile.c: Fix common/ includes.
10850 * go32-nat.c: Fix common/ includes.
10851 * gnu-nat.c: Fix common/ includes.
10852 * gdbthread.h: Fix common/ includes.
10853 * gdbarch-selftests.c: Fix common/ includes.
10854 * gdb_usleep.c: Fix common/ includes.
10855 * gdb_select.h: Fix common/ includes.
10856 * gdb_bfd.c: Fix common/ includes.
10857 * gcore.c: Fix common/ includes.
10858 * fork-child.c: Fix common/ includes.
10859 * findvar.c: Fix common/ includes.
10860 * fbsd-nat.c: Fix common/ includes.
10861 * event-top.c: Fix common/ includes.
10862 * event-loop.c: Fix common/ includes.
10863 * dwarf2read.c: Fix common/ includes.
10864 * dwarf2loc.c: Fix common/ includes.
10865 * dwarf2-frame.c: Fix common/ includes.
10866 * dwarf-index-cache.c: Fix common/ includes.
10867 * dtrace-probe.c: Fix common/ includes.
10868 * disasm-selftests.c: Fix common/ includes.
10869 * defs.h: Fix common/ includes.
10870 * csky-tdep.c: Fix common/ includes.
10871 * cp-valprint.c: Fix common/ includes.
10872 * cp-support.h: Fix common/ includes.
10873 * cp-support.c: Fix common/ includes.
10874 * corelow.c: Fix common/ includes.
10875 * completer.h: Fix common/ includes.
10876 * completer.c: Fix common/ includes.
10877 * compile/compile.c: Fix common/ includes.
10878 * compile/compile-loc2c.c: Fix common/ includes.
10879 * compile/compile-cplus-types.c: Fix common/ includes.
10880 * compile/compile-cplus-symbols.c: Fix common/ includes.
10881 * command.h: Fix common/ includes.
10882 * cli/cli-dump.c: Fix common/ includes.
10883 * cli/cli-cmds.c: Fix common/ includes.
10884 * charset.c: Fix common/ includes.
10885 * build-id.c: Fix common/ includes.
10886 * btrace.h: Fix common/ includes.
10887 * btrace.c: Fix common/ includes.
10888 * breakpoint.h: Fix common/ includes.
10889 * breakpoint.c: Fix common/ includes.
10890 * ax.h:
10891 (enum agent_op): Fix common/ includes.
10892 * ax-general.c (struct aop_map): Fix common/ includes.
10893 * ax-gdb.c: Fix common/ includes.
10894 * auxv.c: Fix common/ includes.
10895 * auto-load.c: Fix common/ includes.
10896 * arm-tdep.c: Fix common/ includes.
10897 * arch/riscv.c: Fix common/ includes.
10898 * arch/ppc-linux-common.c: Fix common/ includes.
10899 * arch/i386.c: Fix common/ includes.
10900 * arch/arm.c: Fix common/ includes.
10901 * arch/arm-linux.c: Fix common/ includes.
10902 * arch/arm-get-next-pcs.c: Fix common/ includes.
10903 * arch/amd64.c: Fix common/ includes.
10904 * arch/aarch64.c: Fix common/ includes.
10905 * arch/aarch64-insn.c: Fix common/ includes.
10906 * arch-utils.c: Fix common/ includes.
10907 * amd64-windows-tdep.c: Fix common/ includes.
10908 * amd64-tdep.c: Fix common/ includes.
10909 * amd64-sol2-tdep.c: Fix common/ includes.
10910 * amd64-obsd-tdep.c: Fix common/ includes.
10911 * amd64-nbsd-tdep.c: Fix common/ includes.
10912 * amd64-linux-tdep.c: Fix common/ includes.
10913 * amd64-linux-nat.c: Fix common/ includes.
10914 * amd64-fbsd-tdep.c: Fix common/ includes.
10915 * amd64-fbsd-nat.c: Fix common/ includes.
10916 * amd64-dicos-tdep.c: Fix common/ includes.
10917 * amd64-darwin-tdep.c: Fix common/ includes.
10918 * agent.c: Fix common/ includes.
10919 * ada-lang.h: Fix common/ includes.
10920 * ada-lang.c: Fix common/ includes.
10921 * aarch64-tdep.c: Fix common/ includes.
10922
10923 2019-01-25 Tom Tromey <tom@tromey.com>
10924
10925 * common/create-version.sh: Use common/version.h.
10926
10927 2019-01-24 Pedro Alves <palves@redhat.com>
10928
10929 * infrun.c (signal_stop, signal_print, signal_program)
10930 (signal_catch, signal_pass): Now arrays instead of pointers.
10931 (update_signals_program_target, do_target_resume)
10932 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
10933 * linux-nat.c (linux_nat_target::pass_signals)
10934 (linux_nat_target::create_inferior, linux_nat_target::attach):
10935 Adjust.
10936 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
10937 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
10938 * procfs.c (procfs_target::pass_signals): Adjust.
10939 * record-full.c (record_full_target::resume): Adjust.
10940 * remote.c (remote_target::pass_signals)
10941 (remote_target::program_signals): Adjust.
10942 * target-debug.h (target_debug_print_signals): Now takes a
10943 gdb::array_view as parameter. Adjust.
10944 * target.h (target_ops) <pass_signals, program_signals>: Replace
10945 pointer and length parameters with gdb::array_view.
10946 (target_pass_signals, target_program_signals): Likewise.
10947 * target-delegates.c: Regenerate.
10948
10949 2019-01-24 Pedro Alves <palves@redhat.com>
10950
10951 * common/forward-scope-exit.h
10952 (forward_scope_exit::forward_scope_exit): Pass arguments to
10953 m_bind_function directly, instead of creating a std::bind and
10954 copying that.
10955
10956 2019-01-24 Alan Hayward <alan.hayward@arm.com>
10957
10958 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
10959 for static members.
10960 (pass_in_v_vfp_candidate): Likewise.
10961
10962 2019-01-23 Tom Tromey <tom@tromey.com>
10963 Pedro Alves <palves@redhat.com>
10964
10965 * regcache.c (class regcache_invalidator): Remove.
10966 (regcache::raw_write): Use make_scope_exit.
10967
10968 2019-01-23 Tom Tromey <tom@tromey.com>
10969
10970 * ui-out.h (class ui_out_emit_type): Update comment.
10971
10972 2019-01-23 Tom Tromey <tom@tromey.com>
10973
10974 * infrun.c (fetch_inferior_event): Update comment.
10975
10976 2019-01-23 Tom Tromey <tom@tromey.com>
10977 Pedro Alves <palves@redhat.com>
10978
10979 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
10980 parameter.
10981 (fetch_inferior_event): Use SCOPE_EXIT.
10982
10983
10984 2019-01-23 Tom Tromey <tom@tromey.com>
10985 Pedro Alves <palves@redhat.com>
10986
10987 * infrun.c (disable_thread_events): Delete.
10988 (stop_all_threads): Use SCOPE_EXIT.
10989
10990 2019-01-23 Tom Tromey <tom@tromey.com>
10991 Pedro Alves <palves@redhat.com>
10992
10993 * symfile.c: Include forward-scope-exit.h.
10994 (clear_symtab_users_cleanup): Replace forward declaration with
10995 a FORWARD_SCOPE_EXIT.
10996 (syms_from_objfile_1): Use the forward_scope_exit and
10997 gdb::optional instead of cleanup_function.
10998 (reread_symbols): Use the forward_scope_exit instead of
10999 cleanup_function.
11000 (clear_symtab_users_cleanup): Remove function.
11001
11002 2019-01-23 Tom Tromey <tom@tromey.com>
11003 Pedro Alves <palves@redhat.com>
11004
11005 * linux-nat.c: Include scope-exit.h.
11006 (cleanup_target_stop): Remove.
11007 (linux_nat_target::static_tracepoint_markers_by_strid): Use
11008 SCOPE_EXIT.
11009
11010 2019-01-23 Tom Tromey <tom@tromey.com>
11011 Pedro Alves <palves@redhat.com>
11012
11013 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
11014 (call_function_by_hand_dummy): Use SCOPE_EXIT.
11015
11016 2019-01-23 Tom Tromey <tom@tromey.com>
11017 Andrew Burgess <andrew.burgess@embecosm.com>
11018 Pedro Alves <palves@redhat.com>
11019
11020 * infrun.c (fetch_inferior_event): Use scope_exit.
11021 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
11022 * top.c (execute_command): Use scope_exit.
11023 * breakpoint.c (bpstat_do_actions): Use scope_exit.
11024 * utils.c (do_bpstat_clear_actions_cleanup)
11025 (make_bpstat_clear_actions_cleanup): Remove.
11026
11027 2019-01-23 Tom Tromey <tom@tromey.com>
11028 Pedro Alves <palves@redhat.com>
11029
11030 * infrun.c: Include "common/scope-exit.h"
11031 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
11032 (wait_for_inferior): Use SCOPE_EXIT.
11033 (fetch_inferior_event): Use scope_exit.
11034
11035 2019-01-23 Tom Tromey <tom@tromey.com>
11036 Pedro Alves <palves@redhat.com>
11037
11038 * breakpoint.c (create_breakpoint): Remove cleanup.
11039
11040 2019-01-23 Tom Tromey <tom@tromey.com>
11041 Andrew Burgess <andrew.burgess@embecosm.com>
11042 Pedro Alves <palves@redhat.com>
11043
11044 2019-01-23 Pedro Alves <palves@redhat.com>
11045
11046 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
11047
11048 2019-01-23 Pedro Alves <palves@redhat.com>
11049 Andrew Burgess <andrew.burgess@embecosm.com>
11050
11051 * gdbthread.h: Include "common/forward-scope-exit.h".
11052 (scoped_finish_thread_state): Redefine custom class in terms of
11053 forward_scope_exit.
11054
11055 2019-01-23 Pedro Alves <palves@redhat.com>
11056 Andrew Burgess <andrew.burgess@embecosm.com>
11057
11058 * common/forward-scope-exit.h: New file.
11059
11060 2019-01-23 Pedro Alves <palves@redhat.com>
11061 Andrew Burgess <andrew.burgess@embecosm.com>
11062 Tom Tromey <tom@tromey.com>
11063
11064 * common/scope-exit.h: New file.
11065
11066 2019-01-23 Pedro Alves <palves@redhat.com>
11067
11068 * common/preprocessor.h (ESC): Rename to ...
11069 (ESC_PARENS): ... this.
11070 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
11071 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
11072
11073 2019-01-23 Tom Tromey <tom@tromey.com>
11074
11075 * language.h (class scoped_switch_to_sym_language_if_auto):
11076 Initialize m_lang in both cases.
11077
11078 2019-01-23 Alan Hayward <alan.hayward@arm.com>
11079
11080 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
11081 with XCNEW.
11082
11083 2019-01-22 Tom Tromey <tom@tromey.com>
11084
11085 * corelow.c: Do not include sys/file.h.
11086
11087 2019-01-22 Tom Tromey <tom@tromey.com>
11088
11089 * tui/tui-wingeneral.h: Include gdb_curses.h.
11090
11091 2019-01-22 Tom Tromey <tom@tromey.com>
11092
11093 * source-cache.h (class source_cache) <get_source_lines,
11094 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
11095
11096 2019-01-22 Tom Tromey <tom@tromey.com>
11097
11098 * remote-fileio.h (struct remote_target): Declare.
11099
11100 2019-01-22 Tom Tromey <tom@tromey.com>
11101
11102 * python/py-arch.c: Do not include py-ref.h.
11103 * python/py-bpevent.c: Do not include py-ref.h.
11104 * python/py-cmd.c: Do not include py-ref.h.
11105 * python/py-continueevent.c: Do not include py-ref.h.
11106 * python/py-event.h: Do not include py-ref.h.
11107 * python/py-evtregistry.c: Do not include py-ref.h.
11108 * python/py-finishbreakpoint.c: Do not include py-ref.h.
11109 * python/py-frame.c: Do not include py-ref.h.
11110 * python/py-framefilter.c: Do not include py-ref.h.
11111 * python/py-function.c: Do not include py-ref.h.
11112 * python/py-infevents.c: Do not include py-ref.h.
11113 * python/py-linetable.c: Do not include py-ref.h.
11114 * python/py-objfile.c: Do not include py-ref.h.
11115 * python/py-param.c: Do not include py-ref.h.
11116 * python/py-prettyprint.c: Do not include py-ref.h.
11117 * python/py-progspace.c: Do not include py-ref.h.
11118 * python/py-symbol.c: Do not include py-ref.h.
11119 * python/py-symtab.c: Do not include py-ref.h.
11120 * python/py-type.c: Do not include py-ref.h.
11121 * python/py-unwind.c: Do not include py-ref.h.
11122 * python/py-utils.c: Do not include py-ref.h.
11123 * python/py-value.c: Do not include py-ref.h.
11124 * python/py-varobj.c: Do not include py-ref.h.
11125 * python/py-xmethods.c: Do not include py-ref.h.
11126 * python/python.c: Do not include py-ref.h.
11127 * varobj.c: Do not include py-ref.h.
11128
11129 2019-01-22 Tom Tromey <tom@tromey.com>
11130
11131 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
11132 keyword for bcache.
11133
11134 2019-01-22 Tom Tromey <tom@tromey.com>
11135
11136 * compile/compile-cplus-types.c: Remove a comment by #include.
11137
11138 2019-01-22 Tom Tromey <tom@tromey.com>
11139
11140 * compile/gcc-c-plugin.h: Include compile-internal.h.
11141
11142 2019-01-22 Tom Tromey <tom@tromey.com>
11143
11144 * stabsread.c (EXTERN): Do not define.
11145 (symnum, next_symbol_text_func, processing_gcc_compilation)
11146 (within_function, global_sym_chain, global_stabs)
11147 (previous_stab_code, this_object_header_files)
11148 (n_this_object_header_files)
11149 (n_allocated_this_object_header_files): Define.
11150 * stabsread.h (EXTERN): Never define. Use "extern".
11151
11152 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11153
11154 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
11155 history_value.
11156
11157 2019-01-21 Tom Tromey <tom@tromey.com>
11158
11159 * ui-out.c: Fix includes.
11160 * tui/tui-source.c: Fix includes.
11161 * target.c: Fix includes.
11162 * remote.c: Fix includes.
11163 * regcache.c: Fix includes.
11164 * python/py-block.c: Fix includes.
11165 * printcmd.c: Fix includes.
11166 * or1k-tdep.c: Fix includes.
11167 * mi/mi-main.c: Fix includes.
11168 * m32r-tdep.c: Fix includes.
11169 * csky-tdep.c: Fix includes.
11170 * compile/compile-cplus-types.c: Fix includes.
11171 * cli/cli-interp.c: Fix includes.
11172
11173 2019-01-21 Alan Hayward <alan.hayward@arm.com>
11174
11175 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
11176 for padding.
11177
11178 2019-01-16 Tom Tromey <tom@tromey.com>
11179
11180 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
11181 earlier.
11182 (struct objfile) <msymbols_range>: Move from top level.
11183 <msymbols>: New method.
11184 (class objfile_msymbols): Remove.
11185 * symtab.c (default_collect_symbol_completion_matches_break_on):
11186 Update.
11187 * symmisc.c (dump_msymbols): Update.
11188 * stabsread.c (scan_file_globals): Update.
11189 * objc-lang.c (info_selectors_command, info_classes_command)
11190 (find_methods): Update.
11191 * minsyms.c (find_solib_trampoline_target): Update.
11192 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
11193 * coffread.c (coff_symfile_read): Update.
11194 * ada-lang.c (ada_lookup_simple_minsym)
11195 (ada_collect_symbol_completion_matches): Update.
11196
11197 2019-01-16 Tom Tromey <tom@tromey.com>
11198
11199 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
11200 type. Remove no-argument constructor.
11201 <iterator::operator++>: Simplify.
11202 <begin>: Update.
11203 <end>: Use minimal_symbol_count.
11204
11205 2019-01-16 Tom Tromey <tom@tromey.com>
11206
11207 * objfiles.h (struct objfile) <psymtabs>: New method.
11208 (class objfile_psymtabs): Remove.
11209 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
11210 typedef.
11211 <range>: New method.
11212 (require_partial_symbols): Change return type.
11213 * psymtab.c (require_partial_symbols)
11214 (psym_expand_symtabs_matching): Update.
11215 * mdebugread.c (parse_partial_symbols): Update.
11216 * dbxread.c (dbx_end_psymtab): Update.
11217
11218 2019-01-15 Tom Tromey <tom@tromey.com>
11219
11220 * symtab.c (lookup_objfile_from_block)
11221 (lookup_symbol_in_objfile_symtabs)
11222 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
11223 (find_line_symtab, info_sources_command)
11224 (default_collect_symbol_completion_matches_break_on)
11225 (make_source_files_completion_list): Update.
11226 * symmisc.c (print_objfile_statistics, dump_objfile)
11227 (maintenance_print_symbols, maintenance_info_symtabs)
11228 (maintenance_check_symtabs, maintenance_info_line_tables):
11229 Update.
11230 * source.c (select_source_symtab)
11231 (forget_cached_source_info_for_objfile): Update.
11232 * objfiles.h (class objfile_compunits): Remove.
11233 (struct objfile) <compunits_range>: New typedef.
11234 (compunits): New method.
11235 * objfiles.c (objfile_relocate1): Update.
11236 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11237 * maint.c (count_symtabs_and_blocks): Update.
11238 * linespec.c (iterate_over_all_matching_symtabs): Update.
11239 * cp-support.c (add_symbol_overload_list_qualified): Update.
11240 * coffread.c (coff_symtab_read): Update.
11241 * ada-lang.c (add_nonlocal_symbols)
11242 (ada_collect_symbol_completion_matches)
11243 (ada_add_global_exceptions): Update.
11244
11245 2019-01-15 Tom Tromey <tom@tromey.com>
11246
11247 * progspace.h (program_space) <objfiles_safe_range>: New
11248 typedef.
11249 <objfiles_safe>: New method.
11250 * objfiles.h (class all_objfiles_safe): Remove.
11251 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
11252 * jit.c (jit_inferior_exit_hook): Update.
11253
11254 2019-01-17 Tom Tromey <tom@tromey.com>
11255
11256 * progspace.h (program_space) <objfiles_range>: New typedef.
11257 <objfiles>: New method.
11258 <objfiles_head>: Rename from objfiles.
11259 (object_files): Update.
11260 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
11261 * guile/scm-pretty-print.c
11262 (ppscm_find_pretty_printer_from_objfiles): Update.
11263 * guile/scm-objfile.c (gdbscm_objfiles): Update.
11264 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
11265 Update.
11266 * python/py-progspace.c (pspy_get_objfiles): Update.
11267 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
11268 Update.
11269 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
11270 (objfpy_lookup_objfile_by_build_id): Update.
11271 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11272 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
11273 Update.
11274 * symtab.c (iterate_over_symtabs, matching_obj_sections)
11275 (expand_symtab_containing_pc, lookup_objfile_from_block)
11276 (lookup_static_symbol, basic_lookup_transparent_type)
11277 (find_pc_sect_compunit_symtab, find_symbol_at_address)
11278 (find_line_symtab, info_sources_command)
11279 (default_collect_symbol_completion_matches_break_on)
11280 (make_source_files_completion_list, find_main_name): Update.
11281 * symmisc.c (print_symbol_bcache_statistics)
11282 (print_objfile_statistics, maintenance_print_symbols)
11283 (maintenance_print_msymbols, maintenance_print_objfiles)
11284 (maintenance_info_symtabs, maintenance_check_symtabs)
11285 (maintenance_expand_symtabs, maintenance_info_line_tables):
11286 Update.
11287 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
11288 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
11289 (map_overlay_command, unmap_overlay_command)
11290 (simple_overlay_update, expand_symtabs_matching)
11291 (map_symbol_filenames): Update.
11292 * symfile-debug.c (set_debug_symfile): Update.
11293 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
11294 Update.
11295 * source.c (select_source_symtab, forget_cached_source_info):
11296 Update.
11297 * solib.c (solib_read_symbols): Update.
11298 * solib-spu.c (append_ocl_sos): Update.
11299 * psymtab.c (maintenance_print_psymbols)
11300 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
11301 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
11302 * printcmd.c (info_symbol_command): Update.
11303 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
11304 Update.
11305 * objfiles.h (class all_objfiles): Remove.
11306 * objfiles.c (have_partial_symbols, have_full_symbols)
11307 (have_minimal_symbols, qsort_cmp, update_section_map)
11308 (shared_objfile_contains_address_p)
11309 (default_iterate_over_objfiles_in_search_order): Update.
11310 * objc-lang.c (info_selectors_command, info_classes_command)
11311 (find_methods): Update.
11312 * minsyms.c (find_solib_trampoline_target): Update.
11313 * maint.c (maintenance_info_sections)
11314 (maintenance_translate_address, count_symtabs_and_blocks):
11315 Update.
11316 * main.c (captured_main_1): Update.
11317 * linux-thread-db.c (try_thread_db_load_from_pdir)
11318 (has_libpthread): Update.
11319 * linespec.c (iterate_over_all_matching_symtabs)
11320 (search_minsyms_for_name): Update.
11321 * jit.c (jit_find_objf_with_entry_addr): Update.
11322 * hppa-tdep.c (find_unwind_entry)
11323 (hppa_lookup_stub_minimal_symbol): Update.
11324 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
11325 Update.
11326 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
11327 (elf_gnu_ifunc_resolve_by_got): Update.
11328 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
11329 * dwarf-index-write.c (save_gdb_index_command): Update.
11330 * cp-support.c (add_symbol_overload_list_qualified): Update.
11331 * breakpoint.c (create_overlay_event_breakpoint)
11332 (create_longjmp_master_breakpoint)
11333 (create_std_terminate_master_breakpoint)
11334 (create_exception_master_breakpoint): Update.
11335 * blockframe.c (find_pc_partial_function): Update.
11336 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
11337 (ada_collect_symbol_completion_matches)
11338 (ada_add_global_exceptions): Update.
11339
11340 2019-01-17 Tom Tromey <tom@tromey.com>
11341
11342 * solib-target.c (lm_info_target_p): Remove typedef. Don't
11343 declare VEC.
11344 (solib_target_parse_libraries): Change return type.
11345 (library_list_start_segment, library_list_start_section)
11346 (library_list_end_library, library_list_start_library); Update.
11347 (solib_target_free_library_list): Remove.
11348 (solib_target_parse_libraries): Remove cleanup. Change return
11349 type.
11350 (solib_target_current_sos): Update.
11351
11352 2019-01-17 Tom Tromey <tromey@bapiya>
11353
11354 * valprint.c: Replace "the the" with "the".
11355 * symtab.c: Replace "the the" with "the".
11356 * solib.c: Replace "the the" with "the".
11357 * solib-dsbt.c: Replace "the the" with "the".
11358 * linespec.c: Replace "the the" with "the".
11359 * dwarf2loc.h: Replace "the the" with "the".
11360 * amd64-windows-tdep.c: Replace "the the" with "the".
11361 * aarch64-tdep.c: Replace "the the" with "the".
11362
11363 2019-01-16 Keith Seitz <keiths@redhat.com>
11364
11365 PR gdb/23773
11366 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
11367 <builder>: Rename to ..
11368 <m_builder>: ... this and make private.
11369 (dwarf2_cu::get_builder): New method. Change all users of
11370 `builder' to use this method.
11371 (dwarf2_start_symtab): Move to ...
11372 (dwarf2_cu::start_symtab): ... here. Update all callers
11373 (setup_type_unit_groups): Move to ...
11374 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
11375 callers.
11376 (dwarf2_cu::reset_builder): New method.
11377 (process_full_compunit, process_full_type_unit): Use
11378 dwarf2_cu::reset_builder.
11379 (follow_die_offset): Record the ancestor CU if it is different
11380 from the followed DIE's CU.
11381 (follow_die_sig_1): Likewise.
11382
11383 2019-01-15 Tom Tromey <tom@tromey.com>
11384
11385 * remote.c (class remote_state) <buf>: Now a char_vector.
11386 <buf_size>: Remove.
11387 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
11388 parameter.
11389 (remote_target::getpkt_or_notif_sane_1)
11390 (remote_target::getpkt_sane)
11391 (remote_target::getpkt_or_notif_sane): Likewise.
11392 (class remote_target) <putpkt>: New overload.
11393 (remote_target::read_frame): Change type of "buf_p". Remove
11394 sizeof_p parameter.
11395 (packet_ok): New overload.
11396 (packet_check_result): New overload.
11397 Update all uses.
11398
11399 2019-01-14 Tom Tromey <tom@tromey.com>
11400
11401 * remote-notif.c (handle_notification, remote_notif_ack)
11402 (remote_notif_parse): Make "buf" const.
11403 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
11404 const.
11405 (remote_notif_parse, remote_notif_ack, handle_notification):
11406 Likewise.
11407 * remote.c (remote_notif_stop_parse): Make "buf" const.
11408 (remote_target::remote_parse_stop_reply): Make "buf" const.
11409 (remote_notif_stop_ack): Make "buf" const.
11410
11411 2019-01-14 Tom Tromey <tom@tromey.com>
11412
11413 * remote.c (remote_console_output): Make parameter const.
11414
11415 2019-01-14 Tom Tromey <tom@tromey.com>
11416
11417 * target-debug.h (target_debug_print_signals): Constify.
11418 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
11419 * procfs.c (procfs_target::pass_signals): Update.
11420 * linux-nat.c (linux_nat_target::pass_signals): Update.
11421 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
11422 * target-delegates.c: Rebuild.
11423 * remote.c (remote_target::program_signals): Update.
11424 (remote_target::pass_signals): Update.
11425 * target.c (target_pass_signals): Constify argument.
11426 (target_program_signals): Likewise.
11427 * target.h (struct target_ops) <pass_signals, program_signals>:
11428 Constify argument.
11429 (target_pass_signals, target_program_signals): Constify argument.
11430
11431 2019-01-14 Tom Tromey <tom@tromey.com>
11432
11433 PR tui/28819:
11434 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
11435
11436 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11437
11438 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
11439 field.
11440 * rs6000-tdep.c: Include reggroups.h.
11441 (IS_V_ALIAS_PSEUDOREG): Define.
11442 (rs6000_register_name): Return names for the "vX" aliases.
11443 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
11444 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
11445 aliases. Call default_register_reggroup_p for all other
11446 pseudo-registers.
11447 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
11448 New functions.
11449 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
11450 Handle "vX" aliases.
11451 (v_alias_pseudo_register_collect): New function.
11452 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
11453 (rs6000_gdbarch_init): Initialize "vX" aliases as
11454 pseudo-registers. Restore registration of
11455 rs6000_pseudo_register_reggroup_p with
11456 set_tdesc_pseudo_register_reggroup_p.
11457
11458 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
11459
11460 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
11461 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
11462 set_gdbarch_num_pseudo_regs.
11463
11464 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11465
11466 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
11467 Remove arg prefixname, add do_set and do_show.
11468 Add member functions set_list and show_list.
11469 * cli/cli-style.c (class cli_style_option): Update accordingly.
11470 (style_set_list): Move to file scope.
11471 (style_show_list): Likewise.
11472 (set_style): Call help_list.
11473 (show_style): Call cmd_show_list.
11474 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
11475 Update to use the new macro.
11476
11477 2019-10-12 Joel Brobecker <brobecker@adacore.com>
11478
11479 * ada-lang.c (_initialize_ada_language): Expand the help text
11480 for the "catch exception" command.
11481
11482 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11483
11484 * symtab.c (matching_obj_sections): Initialize obj,
11485 declare it closer to its usage.
11486
11487 2019-01-10 Tom Tromey <tom@tromey.com>
11488
11489 * thread-iter.h (inf_threads_iterator): Use next_iterator.
11490 (basic_inf_threads_range): Remove.
11491 (inf_threads_range, inf_non_exited_threads_range)
11492 (safe_inf_threads_range): Use next_adapter.
11493
11494 2019-01-10 Keith Seitz <keiths@redhat.com>
11495
11496 PR gdb/23712
11497 PR symtab/23010
11498 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
11499 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
11500
11501 2019-01-10 Keith Seitz <keiths@redhat.com>
11502
11503 PR gdb/23712
11504 PR symtab/23010
11505 * dictionary.c (pending_to_vector): Remove.
11506 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
11507 Remove _1 suffix, replacing functions of the same name. Update
11508 all callers.
11509 (dict_create_hashed, dict_create_hashed_expandable)
11510 (dict_create_linear, dict_create_linear_expandable, dict_free)
11511 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
11512 Make functions static.
11513
11514 2019-01-10 Keith Seitz <keiths@redhat.com>
11515
11516 PR gdb/23712
11517 PR symtab/23010
11518 * dictionary.h (struct dictionary): Replace declaration with
11519 multidictionary.
11520 (dict_create_hashed, dict_create_hashed_expandable)
11521 (dict_create_linear, dict_create_linear_expandable)
11522 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
11523 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
11524 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
11525 taking multidictionary argument.
11526 [ALL_DICT_SYMBOLS]: Update for multidictionary.
11527 * block.h (struct block) <dict>: Change to multidictionary
11528 and rename `multidict'.
11529 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
11530 symmisc.c: Update all dictionary references to multidictionary.
11531
11532 2019-01-10 Keith Seitz <keiths@redhat.com>
11533
11534 PR gdb/23712
11535 PR symtab/23010
11536 * dictionary.c: Include unordered_map.
11537 (pending_to_vector): New function.
11538 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
11539 Rewrite the non-"_1" functions to take vector instead
11540 of linked list.
11541 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
11542 "new" _1 versions of the same name.
11543 (multidictionary): Define.
11544 (std::hash<enum language): New definition.
11545 (collate_pending_symbols_by_language, mdict_create_hashed)
11546 (mdict_create_hashed_expandable, mdict_create_linear)
11547 (mdict_create_linear_expandable, mdict_free)
11548 (find_language_dictionary, create_new_language_dictionary)
11549 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
11550 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
11551 (mdict_size, mdict_empty): New functions.
11552 * dictionary.h (mdict_iterator): Define.
11553
11554 2019-01-10 Pedro Alves <palves@redhat.com>
11555
11556 * breakpoint.c (read_uploaded_action)
11557 (create_tracepoint_from_upload): Adjust to use
11558 gdb::unique_xmalloc_ptr.
11559 * ctf.c (ctf_write_uploaded_tp):
11560 (SET_ARRAY_FIELD): Use emplace_back.
11561 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
11562 * tracefile-tfile.c (tfile_write_uploaded_tp):
11563 * tracepoint.c (parse_tracepoint_definition): Adjust to use
11564 gdb::unique_xmalloc_ptr.
11565 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
11566 at_string, cond_string, cmd_strings>: Replace char pointers
11567 with gdb::unique_xmalloc_ptr.
11568
11569 2019-01-10 Pedro Alves <palves@redhat.com>
11570
11571 * solib-target.c (library_list_start_library): Don't xstrdup name.
11572
11573 2019-01-10 Pedro Alves <palves@redhat.com>
11574
11575 * mdebugread.c (parse_partial_symbols): Use
11576 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
11577
11578 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
11579
11580 * linux-fork.c (scoped_switch_fork_info)
11581 <~scoped_switch_fork_info>: Fix incorrect variable name.
11582
11583 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
11584
11585 * linux-fork.c (scoped_switch_fork_info)
11586 <scoped_switch_fork_info>: Make explicit.
11587 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
11588
11589 2019-01-10 Tom Tromey <tom@tromey.com>
11590
11591 * objfiles.h (objfile::reset_psymtabs): Update.
11592 * objfiles.c (objfile::objfile): Update.
11593 * psymtab.h (psymtab_storage::obstack): Update.
11594 (psymtab_storage::m_obstack): Use gdb::optional.
11595 (class psymtab_storage): Update comment. Remove objfile
11596 parameter.
11597 * psymtab.c (psymtab_storage::psymtab_storage): Update.
11598
11599 2019-01-10 Tom Tromey <tom@tromey.com>
11600
11601 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
11602 <free_psymtabs>: Now private.
11603 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
11604 (allocate_psymtab): Use new method.
11605
11606 2019-01-10 Tom Tromey <tom@tromey.com>
11607
11608 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
11609 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
11610 * mdebugread.c (parse_partial_symbols): Use
11611 allocate_dependencies.
11612 * dwarf2read.c (dwarf2_create_include_psymtab): Use
11613 allocate_dependencies.
11614 (process_psymtab_comp_unit_reader)
11615 (build_type_psymtab_dependencies): Likewise.
11616 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
11617
11618 2019-01-10 Tom Tromey <tom@tromey.com>
11619
11620 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
11621 PSYMBOL_SET_LANGUAGE.
11622 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
11623
11624 2019-01-10 Tom Tromey <tom@tromey.com>
11625
11626 * psymtab.h (psymtab_storage::obstack): New method.
11627 <m_obstack>: Rename from obstack; now private.
11628 * psymtab.c (psymtab_storage): Update.
11629 * dwarf2read.c (create_addrmap_from_index)
11630 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
11631 Update.
11632
11633 2019-01-10 Tom Tromey <tom@tromey.com>
11634
11635 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
11636 * objfiles.h (objfile::reset_psymtabs): New method.
11637
11638 2019-01-10 Tom Tromey <tom@tromey.com>
11639
11640 * symmisc.c (print_symbol_bcache_statistics): Update.
11641 (print_objfile_statistics): Update.
11642 * symfile.c (reread_symbols): Update.
11643 * psymtab.h (class psymtab_storage): New.
11644 * psymtab.c (psymtab_storage): New constructor.
11645 (~psymtab_storage): New destructor.
11646 (require_partial_symbols): Update.
11647 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
11648 (find_pc_sect_psymtab, find_pc_sect_psymbol)
11649 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
11650 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
11651 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
11652 (start_psymtab_common, end_psymtab_common)
11653 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
11654 (allocate_psymtab): Update.
11655 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
11656 Update.
11657 (dump_psymtab_addrmap, maintenance_print_psymbols)
11658 (maintenance_check_psymtabs): Update.
11659 (class objfile_psymtabs): Move to objfiles.h.
11660 * psympriv.h (discard_psymtab): Now inline.
11661 (psymtab_discarder::psymtab_discarder): Update.
11662 (psymtab_discarder::~psymtab_discarder): Update.
11663 (ALL_OBJFILE_PSYMTABS): Rewrite.
11664 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
11665 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
11666 Remove fields.
11667 <partial_symtabs>: New field.
11668 (class objfile_psymtabs): Move from psymtab.h. Update.
11669 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
11670 psymbol_cache.
11671 (objfile::~objfile): Don't destroy psymbol_cache.
11672 * mdebugread.c (parse_partial_symbols): Update.
11673 * dwarf2read.c (create_addrmap_from_index)
11674 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11675 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
11676 (add_partial_subprogram, dwarf2_ranges_read): Update.
11677 * dwarf-index-write.c (write_address_map)
11678 (write_one_signatured_type, recursively_write_psymbols)
11679 (class debug_names, class debug_names, write_psymtabs_to_index):
11680 Update.
11681
11682 2019-01-10 Tom Tromey <tom@tromey.com>
11683
11684 * symtab.h (SYMBOL_SET_NAMES): Update.
11685 (symbol_set_names): Update.
11686 (MSYMBOL_SET_NAMES): Update.
11687 * symtab.c (symbol_set_names): Change argument to be an
11688 objfile_per_bfd_storage.
11689 * psymtab.c (add_psymbol_to_bcache): Update.
11690 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
11691
11692 2019-01-10 Tom Tromey <tom@tromey.com>
11693
11694 * symtab.c (create_demangled_names_hash): Change argument to be an
11695 objfile_per_bfd_storage.
11696 (symbol_set_names): Update.
11697
11698 2019-01-10 Tom Tromey <tom@tromey.com>
11699
11700 * xcoffread.c (xcoff_initial_scan): Unconditionally call
11701 init_psymbol_list.
11702 * psymtab.c (init_psymbol_list): Do nothing if already called.
11703 * psympriv.h (init_psymbol_list): Add comment.
11704 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
11705 init_psymbol_list.
11706 * dbxread.c (dbx_symfile_read): Unconditionally call
11707 init_psymbol_list.
11708
11709 2019-01-10 Tom Tromey <tom@tromey.com>
11710
11711 * xcoffread.c (scan_xcoff_symtab): Update.
11712 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
11713 "where".
11714 * mdebugread.c (parse_partial_symbols)
11715 (handle_psymbol_enumerators): Update.
11716 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
11717 * dbxread.c (read_dbx_symtab): Update.
11718 * psympriv.h (psymbol_placement): New enum.
11719 (add_psymbol_to_list): Update.
11720
11721 2019-01-10 Tom Tromey <tom@tromey.com>
11722
11723 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
11724 static_psymbols parameters.
11725 (scan_xcoff_symtab): Update.
11726 * psymtab.c (start_psymtab_common): Remove global_psymbols and
11727 static_psymbols parameters.
11728 * psympriv.h (start_psymtab_common): Update.
11729 * mdebugread.c (parse_partial_symbols): Update.
11730 * dwarf2read.c (create_partial_symtab): Update.
11731 * dbxread.c (read_dbx_symtab): Update.
11732 (start_psymtab): Remove global_psymbols and static_psymbols
11733 parameters.
11734
11735 2019-01-10 Tom Tromey <tom@tromey.com>
11736
11737 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
11738 * psymtab.c (allocate_psymtab): Add comment.
11739 * psympriv.h (allocate_psymtab): Add comment.
11740 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
11741 initializations.
11742 * dbxread.c (dbx_end_psymtab): Remove some initializations.
11743
11744 2019-01-10 Tom Tromey <tom@tromey.com>
11745
11746 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
11747 Don't declare.
11748 * mipsread.c: Include mdebugread.h.
11749 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
11750 Declare.
11751 * elfread.c: Include mdebugread.h.
11752
11753 2019-01-09 Tom Tromey <tom@tromey.com>
11754
11755 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
11756 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
11757 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
11758 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
11759 (psym_lookup_symbol, psym_find_last_source_symtab)
11760 (psym_forget_cached_source_info, psym_print_stats)
11761 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
11762 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
11763 (psym_map_matching_symbols, psym_expand_symtabs_matching)
11764 (psym_find_compunit_symtab_by_address)
11765 (maintenance_print_psymbols, maintenance_info_psymtabs)
11766 (maintenance_check_psymtabs): Use ranged for.
11767 * psymtab.h (class objfile_psymtabs): New.
11768 (require_partial_symbols): Return objfile_psymtabs.
11769 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
11770
11771 2019-01-09 Tom Tromey <tom@tromey.com>
11772
11773 * symfile.c (overlay_invalidate_all, find_pc_overlay)
11774 (find_pc_mapped_section, list_overlays_command)
11775 (map_overlay_command, unmap_overlay_command)
11776 (simple_overlay_update): Use all_objfiles.
11777 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
11778 * printcmd.c (info_symbol_command): Use all_objfiles.
11779 * objfiles.h (ALL_OBJSECTIONS): Remove.
11780 * maint.c (maintenance_translate_address): Use all_objfiles.
11781 * gcore.c (gcore_create_callback): Use all_objfiles.
11782 (objfile_find_memory_regions): Likewise.
11783
11784 2019-01-09 Tom Tromey <tom@tromey.com>
11785
11786 * symtab.c (find_line_symtab, info_sources_command)
11787 (make_source_files_completion_list): Use objfile_compunits.
11788 * source.c (select_source_symtab): Use objfile_compunits.
11789 * objfiles.h (struct objfile): Update comment.
11790 (ALL_OBJFILES): Remove.
11791 (ALL_FILETABS): Remove.
11792 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
11793 objfile_compunits.
11794
11795 2019-01-09 Tom Tromey <tom@tromey.com>
11796
11797 * symmisc.c (print_objfile_statistics, dump_objfile)
11798 (maintenance_print_symbols): Use compunit_filetabs.
11799 * source.c (forget_cached_source_info_for_objfile): Use
11800 compunit_filetabs.
11801 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
11802 (ALL_FILETABS): Use compunit_filetabs.
11803 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
11804 * coffread.c (coff_symtab_read): Use compunit_filetabs.
11805
11806 2019-01-09 Tom Tromey <tom@tromey.com>
11807
11808 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
11809 (compunit_filetabs): New.
11810 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
11811 compunit_filetabs.
11812 (info_sources_command, make_source_files_completion_list): Remove
11813 declaration.
11814 * symmisc.c (print_objfile_statistics, dump_objfile)
11815 (maintenance_print_symbols): Remove declaration.
11816 (maintenance_info_symtabs): Use compunit_filetabs.
11817 (maintenance_info_line_tables): Likewise.
11818 * source.c (select_source_symtab): Change local variable name.
11819 (forget_cached_source_info_for_objfile): Remove declaration.
11820 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
11821 * objfiles.c (objfile_relocate1): Remove declaration.
11822 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
11823 declaration.
11824 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
11825 * coffread.c (coff_symtab_read): Remove declaration.
11826 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
11827 compunit_filetabs.
11828
11829 2019-01-09 Tom Tromey <tom@tromey.com>
11830
11831 * symtab.c (lookup_objfile_from_block)
11832 (find_pc_sect_compunit_symtab, search_symbols)
11833 (default_collect_symbol_completion_matches_break_on): Use
11834 objfile_compunits.
11835 * objfiles.h (ALL_COMPUNITS): Remove.
11836 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
11837 * cp-support.c (add_symbol_overload_list_qualified): Use
11838 objfile_compunits.
11839 * ada-lang.c (ada_collect_symbol_completion_matches)
11840 (ada_add_global_exceptions): Use objfile_compunits.
11841
11842 2019-01-09 Tom Tromey <tom@tromey.com>
11843
11844 * source.c (select_source_symtab)
11845 (forget_cached_source_info_for_objfile): Remove declaration.
11846 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
11847 declaration.
11848 * maint.c (count_symtabs_and_blocks): Remove declaration.
11849 * cp-support.c (add_symbol_overload_list_qualified): Remove
11850 declaration.
11851 * coffread.c (coff_symtab_read): Remove declaration.
11852 * symtab.c (lookup_symbol_in_objfile_symtabs)
11853 (basic_lookup_transparent_type_1): Use objfile_compunits.
11854 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
11855 (info_sources_command, search_symbols)
11856 (default_collect_symbol_completion_matches_break_on)
11857 (make_source_files_completion_list): Remove declaration.
11858 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
11859 (ada_collect_symbol_completion_matches)
11860 (ada_add_global_exceptions): Remove declaration.
11861 * linespec.c (iterate_over_all_matching_symtabs): Use
11862 objfile_compunits.
11863 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
11864 (class objfile_compunits): New.
11865 (ALL_COMPUNITS): Use objfile_compunits.
11866 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
11867 (maintenance_check_symtabs, maintenance_info_line_tables): Use
11868 objfile_compunits.
11869 * objfiles.c (objfile_relocate1): Use objfile_compunits.
11870
11871 2019-01-09 Tom Tromey <tom@tromey.com>
11872
11873 * symtab.c (search_symbols)
11874 (default_collect_symbol_completion_matches_break_on): Use
11875 objfile_msymbols.
11876 * ada-lang.c (ada_lookup_simple_minsym)
11877 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
11878 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
11879 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
11880 objfile_msymbols.
11881 * coffread.c (coff_symfile_read): Use objfile_msymbols.
11882 * symmisc.c (dump_msymbols): Use objfile_msymbols.
11883 * objc-lang.c (find_methods): Use objfile_msymbols.
11884 (info_selectors_command, info_classes_command): Likewise.
11885 * stabsread.c (scan_file_globals): Use objfile_msymbols.
11886 * objfiles.h (class objfile_msymbols): New.
11887 (ALL_OBJFILE_MSYMBOLS): Remove.
11888 (ALL_MSYMBOLS): Remove.
11889
11890 2019-01-09 Tom Tromey <tom@tromey.com>
11891
11892 * common/next-iterator.h (next_adapter): Add Iterator template
11893 parameter.
11894 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
11895 (class all_objfiles_safe): New.
11896 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
11897 * objfiles.c (put_objfile_before): Update comment.
11898 (add_separate_debug_objfile): Likewise.
11899 (free_all_objfiles): Use all_objfiles_safe.
11900 (objfile_purge_solibs): Likewise.
11901
11902 2019-01-09 Tom Tromey <tom@tromey.com>
11903
11904 * symtab.c (iterate_over_symtabs, matching_obj_sections)
11905 (expand_symtab_containing_pc, lookup_static_symbol)
11906 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
11907 (find_symbol_at_address, find_line_symtab, find_main_name): Use
11908 all_objfiles.
11909 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
11910 * breakpoint.c (create_overlay_event_breakpoint)
11911 (create_longjmp_master_breakpoint)
11912 (create_std_terminate_master_breakpoint)
11913 (create_exception_master_breakpoint): Use all_objfiles.
11914 * linux-thread-db.c (try_thread_db_load_from_pdir)
11915 (has_libpthread): Use all_objfiles.
11916 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
11917 * linespec.c (iterate_over_all_matching_symtabs)
11918 (search_minsyms_for_name): Use all_objfiles.
11919 * maint.c (maintenance_info_sections): Use all_objfiles.
11920 * main.c (captured_main_1): Use all_objfiles.
11921 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
11922 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
11923 * guile/scm-pretty-print.c
11924 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
11925 * solib-spu.c (append_ocl_sos): Use all_objfiles.
11926 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
11927 (maintenance_print_msymbols): Use all_objfiles.
11928 * source.c (select_source_symtab): Use all_objfiles.
11929 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
11930 * symfile.c (remove_symbol_file_command)
11931 (expand_symtabs_matching, map_symbol_filenames): Use
11932 all_objfiles.
11933 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
11934 all_objfiles.
11935 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
11936 * objc-lang.c (find_methods): Use all_objfiles.
11937 * objfiles.c (have_partial_symbols, have_full_symbols)
11938 (have_minimal_symbols, qsort_cmp)
11939 (default_iterate_over_objfiles_in_search_order): Use
11940 all_objfiles.
11941 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
11942 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
11943 (maintenance_check_psymtabs): Use all_objfiles.
11944 (ALL_PSYMTABS): Remove.
11945 * compile/compile-object-run.c (do_module_cleanup): Use
11946 all_objfiles.
11947 * blockframe.c (find_pc_partial_function): Use all_objfiles.
11948 * cp-support.c (add_symbol_overload_list_qualified): Use
11949 all_objfiles.
11950 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
11951 Use all_objfiles.
11952 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
11953 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
11954 all_objfiles.
11955 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
11956 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
11957 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
11958 Uses all_objfiles.
11959 * solib.c (solib_read_symbols): Use all_objfiles
11960
11961 2019-01-09 Tom Tromey <tom@tromey.com>
11962
11963 * probe.c (parse_probes_in_pspace): Use all_objfiles.
11964 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
11965 all_objfiles.
11966 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
11967 * symmisc.c (print_symbol_bcache_statistics)
11968 (print_objfile_statistics, maintenance_print_objfiles)
11969 (maintenance_info_symtabs, maintenance_check_symtabs)
11970 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
11971 all_objfiles.
11972 * source.c (forget_cached_source_info): Use all_objfiles.
11973 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
11974 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
11975 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
11976 * objfiles.c (update_section_map): Use all_objfiles.
11977 (shared_objfile_contains_address_p): Likewise.
11978 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
11979 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
11980
11981 2019-01-09 Tom Tromey <tom@tromey.com>
11982
11983 * common/next-iterator.h: New file.
11984 * objfiles.h (class all_objfiles): New.
11985 (struct objfile_iterator): New.
11986
11987 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11988
11989 * NEWS: Move the description of the changed "frame", "select-frame",
11990 and "info frame" commands to the Changed commands section.
11991
11992 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
11993
11994 * gdbtypes.c (check_stub_method_group): Remove handling of old
11995 mangling schemes.
11996 * linespec.c (find_methods): Likewise.
11997 * stabsread.c (read_member_functions): Likewise.
11998 * valops.c (search_struct_method): Likewise.
11999 (value_struct_elt_for_reference): Likewise.
12000 * NEWS: Mention this change.
12001
12002 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12003
12004 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
12005 print_source_lines.
12006 * source.c (print_source_lines_base): Update line number check.
12007 (print_source_lines): New function.
12008 (source_lines_range::source_lines_range): New function.
12009 * source.h (class source_lines_range): New class.
12010 (print_source_lines): New declaration.
12011
12012 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12013
12014 * linespec.c (linespec_state_destructor): Free self->canonical_names.
12015
12016 2019-01-08 Tom Tromey <tom@tromey.com>
12017 Simon Marchi <simon.marchi@ericsson.com>
12018
12019 PR gdb/24060
12020 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
12021 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
12022 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
12023 * f-exp.y (DOLLAR_VARIABLE): Likewise.
12024 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
12025 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
12026
12027 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12028
12029 * source.c (select_source_symtab): Move header comment to
12030 declaration in source.h.
12031 (forget_cached_source_info_for_objfile): Likewise.
12032 (forget_cached_source_info): Likewise.
12033 (identify_source_line): Likewise.
12034 * source.h (identify_source_line): Move declaration from symtab.h
12035 and add comment from source.c
12036 (print_source_lines): Likewise.
12037 (forget_cached_source_info_for_objfile): Likewise.
12038 (forget_cached_source_info): Likewise.
12039 (select_source_symtab): Likewise.
12040 (enum print_source_lines_flag): Move definition from symtab.h.
12041 * symtab.h (identify_source_line): Move declaration to source.h.
12042 (print_source_lines): Likewise.
12043 (forget_cached_source_info_for_objfile): Likewise.
12044 (forget_cached_source_info): Likewise.
12045 (select_source_symtab): Likewise.
12046 (enum print_source_lines_flag): Move definition to source.h.
12047 * tui/tui-hooks.c: Add 'source.h' include.
12048
12049 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12050
12051 * source.c (print_source_lines_base): Handle requests to print
12052 reverse line number sequences, and guard against empty lines
12053 string.
12054
12055 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
12056
12057 * source.c (print_source_lines_base): Fix skip of '\r' if next
12058 character is '\n'.
12059
12060 2019-01-06 Tom Tromey <tom@tromey.com>
12061
12062 * c-exp.y (struct c_parse_state) <macro_original_text,
12063 expansion_obstack>: New member.
12064 (macro_original_text, expansion_obstack): Remove globals.
12065 (scan_macro_expansion, scanning_macro_expansion)
12066 (finished_macro_expansion): Update.
12067 (scan_macro_cleanup): Remove.
12068 (yylex, c_parse): Update.
12069
12070 2019-01-06 Tom Tromey <tom@tromey.com>
12071
12072 * c-exp.y (struct c_parse_state) <strings>: New member.
12073 (operator_stoken): Update.
12074
12075 2019-01-06 Tom Tromey <tom@tromey.com>
12076
12077 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
12078 (union type_stack_elt) <typelist_val>: Now a pointer to
12079 std::vector.
12080 (type_stack_cleanup): Don't declare.
12081 (push_typelist): Update.
12082 * parse.c (pop_typelist): Return a std::vector.
12083 (push_typelist): Take a std::vector.
12084 (follow_types): Update. Do not free args.
12085 (type_stack_cleanup): Remove.
12086 * c-exp.y (struct c_parse_state): New.
12087 (cpstate): New global.
12088 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
12089 (nonempty_typelist): Update.
12090 (func_mod): Create a new vector.
12091 (c_parse): Create a c_parse_state.
12092 (check_parameter_typelist): Do not delete params.
12093 (function_method): Update. Do not delete type_list.
12094
12095 2019-01-06 Tom Tromey <tom@tromey.com>
12096
12097 PR gdb/28155:
12098 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
12099 check_typedef.
12100 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
12101 (print_return_value): Likewise.
12102
12103 2019-01-05 Tom Tromey <tom@tromey.com>
12104
12105 * contrib/cleanup_check.py: Remove.
12106 * contrib/gcc-with-excheck: Remove.
12107 * contrib/exsummary.py: Remove.
12108 * contrib/excheck.py: Remove.
12109
12110 2019-01-05 Joel Brobecker <brobecker@adacore.com>
12111
12112 * thread.c (delete_thread_1): Add gdb_assert that THR is not
12113 NULL. Initialize tpprev to NULL instead of assigning it
12114 to NULL on the next statement.
12115 * windows-nat.c (windows_delete_thread): Remove check for
12116 main_thread_id before printing thread exit notifications.
12117 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
12118 Remove thread ID check against main_thread_id.
12119 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
12120 windows_delete_thread.
12121 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
12122
12123 2019-01-04 Tom Tromey <tom@tromey.com>
12124
12125 * compile/compile.c (_initialize_compile): Use upper case for
12126 metasyntactic variables.
12127 * symmisc.c (_initialize_symmisc): Use upper case for
12128 metasyntactic variables.
12129 * psymtab.c (_initialize_psymtab): Use upper case for
12130 metasyntactic variables.
12131 * demangle.c (demangle_command): Use upper case for metasyntactic
12132 variables.
12133 (_initialize_demangler): Likewise.
12134 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
12135 variables.
12136
12137 2019-01-03 Tom Tromey <tom@tromey.com>
12138
12139 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
12140
12141 2019-01-03 Tom Tromey <tom@tromey.com>
12142
12143 * python/py-symtab.c (salpy_str): Update.
12144 (struct salpy_sal_object) <symtab>: Now a PyObject.
12145 (salpy_dealloc): Update.
12146 (del_objfile_sal): Use gdbpy_ref.
12147
12148 2019-01-03 Tom Tromey <tom@tromey.com>
12149
12150 * python/py-type.c (convert_field): Use new_reference. Return
12151 gdbpy_ref.
12152 (make_fielditem): Return gdbpy_ref.
12153 (typy_fields): Update.
12154 (typy_getitem): Update.
12155 (field_name): Return gdbpy_ref. Use new_reference.
12156 (typy_iterator_iternext): Update.
12157
12158 2019-01-03 Tom Tromey <tom@tromey.com>
12159
12160 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
12161
12162 2019-01-03 Tom Tromey <tom@tromey.com>
12163
12164 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
12165 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
12166 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
12167 (pspy_set_frame_filters, pspy_set_frame_unwinders)
12168 (pspy_set_type_printers): Likewise.
12169 * python/py-function.c (fnpy_init): Use gdbpy_ref.
12170 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
12171 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
12172 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
12173 (objfpy_set_type_printers): Likewise.
12174
12175 2019-01-03 Tom Tromey <tom@tromey.com>
12176
12177 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
12178 (gdbpy_print_stack): Use gdbpy_err_fetch.
12179 * python/python-internal.h (class gdbpy_err_fetch): New class.
12180 (class gdbpy_enter) <m_error_type, m_error_value,
12181 m_error_traceback>: Remove.
12182 <m_error>: New member.
12183 (gdbpy_exception_to_string): Don't declare.
12184 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
12185 * python/py-value.c (convert_value_from_python): Use
12186 gdbpy_err_fetch.
12187 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
12188 gdbpy_exception_to_string.
12189 (gdbpy_handle_exception): Use gdbpy_err_fetch.
12190 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
12191 gdbpy_err_fetch.
12192
12193 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12194
12195 * linux-nat.c (delete_lwp_cleanup): Delete.
12196 (struct lwp_deleter): New struct.
12197 (lwp_info_up): New typedef.
12198 (linux_nat_target::follow_fork): Delete cleanup, and make use of
12199 lwp_info_up.
12200
12201 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12202
12203 * linux-fork.c (class scoped_switch_fork_info): New class.
12204 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
12205
12206 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12207
12208 * valops.c (find_overload_match): Remove use of null_cleanup, and
12209 calls to do_cleanups.
12210
12211 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12212
12213 * compile/compile-cplus-types.c
12214 (compile_cplus_instance::decl_name): Handle changes to
12215 cp_func_name.
12216 * cp-support.c (cp_func_name): Update header comment, update
12217 return type.
12218 * cp-support.h (cp_func_name): Update return type in declaration.
12219 * valops.c (find_overload_match): Move temp_func local to top
12220 level of function and change its type. Use temp_func to hold and
12221 delete temporary string obtained from cp_func_name.
12222
12223 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
12224
12225 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
12226 gdb::char_vector, remove cleanup, and update uses of `msg`.
12227
12228 2019-01-03 Jim Wilson <jimw@sifive.com>
12229
12230 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
12231
12232 2019-01-02 Tom Tromey <tom@tromey.com>
12233
12234 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
12235 (tdesc_parse_xml): Remove cleanups.
12236 * target-descriptions.h (make_cleanup_free_target_description):
12237 Don't declare.
12238 (target_desc_deleter): New struct.
12239 (target_desc_up): New typedef.
12240 * target-descriptions.c (target_desc_deleter::operator()): Rename
12241 from free_target_description.
12242 (make_cleanup_free_target_description): Remove.
12243
12244 2019-01-02 Tom Tromey <tom@tromey.com>
12245
12246 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
12247 constructor, destructor.
12248 (linespec_parser): Remove typedef.
12249 (~linespec_parser): Rename from linespec_parser_delete.
12250 (linespec_lex_to_end, linespec_complete_label)
12251 (linespec_complete): Update.
12252 (decode_line_full): Remove cleanups.
12253 (decode_line_1): Update.
12254
12255 2019-01-02 Tom Tromey <tom@tromey.com>
12256
12257 * python/python-internal.h (inferior_to_inferior_object): Change
12258 return type.
12259 * python/py-exitedevent.c (create_exited_event_object): Update.
12260 * python/py-inferior.c (inferior_to_inferior_object): Return
12261 gdbpy_ref.
12262 (python_new_inferior, python_inferior_deleted)
12263 (thread_to_thread_object, delete_thread_object)
12264 (build_inferior_list, gdbpy_selected_inferior): Update.
12265 * python/py-infthread.c (create_thread_object): Update. Also fail
12266 if inferior_to_inferior_object fails.
12267
12268 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
12269
12270 * inferior.h (class inferior) <displaced_step_state>: New field.
12271 * infrun.h (struct displaced_step_state): Move here from
12272 infrun.c. Initialize fields, add constructor.
12273 <inf>: Remove field.
12274 <reset>: New method.
12275 * infrun.c (struct displaced_step_inferior_state): Move to
12276 infrun.h.
12277 (displaced_step_inferior_states): Remove.
12278 (get_displaced_stepping_state): Adust.
12279 (displaced_step_in_progress_any_inferior): Adjust.
12280 (displaced_step_in_progress_thread): Adjust.
12281 (displaced_step_in_progress): Adjust.
12282 (add_displaced_stepping_state): Remove.
12283 (get_displaced_step_closure_by_addr): Adjust.
12284 (remove_displaced_stepping_state): Remove.
12285 (infrun_inferior_exit): Call displaced_step_state.reset.
12286 (use_displaced_stepping): Don't check for NULL.
12287 (displaced_step_prepare_throw): Call
12288 get_displaced_stepping_state.
12289 (displaced_step_fixup): Don't check for NULL.
12290 (prepare_for_detach): Don't check for NULL.
12291
12292 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12293
12294 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
12295 in case of call that did not complete.
12296
12297 2019-01-02 Andrey Utkin <autkin@undo.io>
12298
12299 * symfile.c (find_separate_debug_file): Fix search of debug files for
12300 remote debuggee.
12301
12302 2019-01-02 Tom Tromey <tom@tromey.com>
12303
12304 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
12305 indentation.
12306 * python/py-frame.c (frapy_older): Remove cast.
12307 (frapy_newer): Likewise.
12308 * python/py-breakpoint.c (local_setattro): Remove cast.
12309 * python/py-arch.c (archpy_name): Remove local variable.
12310 * python/py-type.c (gdbpy_lookup_type): Remove cast.
12311
12312 2019-01-02 Joel Brobecker <brobecker@adacore.com>
12313
12314 * unittests/basic_string_view/element_access/char/empty.cc:
12315 Fix year range in copyright header.
12316
12317 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
12318
12319 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
12320 Delete.
12321 <operator==>: Update with for removed field.
12322 <hash>: Likewise.
12323 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
12324 <isa_features>: ...this.
12325 <abi_features>: New field.
12326 (riscv_isa_flen): Update comment.
12327 (riscv_abi_xlen): New declaration.
12328 (riscv_abi_flen): New declaration.
12329 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
12330 isa_features.
12331 (riscv_abi_xlen): New function.
12332 (riscv_isa_flen): Update to get answer from isa_features.
12333 (riscv_abi_flen): New function.
12334 (riscv_has_fp_abi): Update to get answer from abi_features.
12335 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
12336 xlen and flen.
12337 (riscv_call_info) <xlen, flen>: Update comment.
12338 (riscv_call_arg_struct): Remove invalid assertions
12339 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
12340 is removed.
12341 (riscv_gdbarch_init): Gather isa features and abi features
12342 separately, ensure both match on the gdbarch when reusing an old
12343 gdbarch. Relax an error check to allow 32-bit abi float to run on
12344 a target with 64-bit float hardware.
12345
12346 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12347
12348 * source.c (search_command_helper): Stop reverse search
12349 when line 1 has been searched.
12350
12351 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12352
12353 * record-full.c (record_full_base_target::close): Rewrite
12354 record_full_core_buf_list free logic.
12355
12356 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12357
12358 * break-catch-syscall.c (print_one_catch_syscall): xfree
12359 the last text.
12360
12361 2019-01-01 Joel Brobecker <brobecker@adacore.com>
12362
12363 * top.c (print_gdb_version): Update Copyright year in version
12364 message.
12365
12366 2019-01-01 Joel Brobecker <brobecker@adacore.com>
12367
12368 Update copyright year range in all GDB files.
12369
12370 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
12371
12372 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
12373
12374 For older changes see ChangeLog-2018.
12375 \f
12376 Local Variables:
12377 mode: change-log
12378 left-margin: 8
12379 fill-column: 74
12380 version-control: never
12381 coding: utf-8
12382 End:
12383