]> Git Repo - binutils.git/blob - gdb/ChangeLog
Rename pid -> tid in windows-nat.c
[binutils.git] / gdb / ChangeLog
1 2019-10-15  Tom Tromey  <[email protected]>
2
3         * windows-nat.c (windows_nat_target::fetch_registers)
4         (windows_nat_target::store_registers): Rename "pid" to "tid".
5
6 2019-10-15  Tom Tromey  <[email protected]>
7
8         * gdbarch.h, gdbarch.c: Rebuild.
9         * gdbarch.sh (gcc_target_options): Change return type to
10         std::string.
11         * compile/compile.c (get_args): Update.
12         * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
13         * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
14         std::string.
15         * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
16         std::string.
17         * arch-utils.c (default_gcc_target_options): Return std::string.
18         * arch-utils.h (default_gcc_target_options): Return std::string.
19         * s390-tdep.c (s390_gcc_target_options): Return std::string.
20
21 2019-10-15  Christian Biesinger  <[email protected]>
22
23         * breakpoint.c (breakpoint_chain): Make static.
24         * tui/tui-winsource.c: Call iterate_over_breakpoints instead
25         of accessing breakpoint_chain.
26
27 2019-10-15  Christian Biesinger  <[email protected]>
28
29         * breakpoint.c (iterate_over_breakpoints): Change function pointer
30         to a gdb::function_view and return value to bool.
31         * breakpoint.h (iterate_over_breakpoints): Likewise.
32         * dummy-frame.c (pop_dummy_frame_bpt): Update.
33         (pop_dummy_frame): Update.
34         * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
35         (gdbscm_breakpoints): Update.
36         * python/py-breakpoint.c (build_bp_list): Update.
37         (gdbpy_breakpoints): Update.
38         * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
39         Update.
40         (bpfinishpy_handle_stop): Update.
41         (bpfinishpy_handle_exit): Update.
42         * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
43         (svr4_update_solib_event_breakpoints): Update.
44
45 2019-10-15  Andreas Arnez  <[email protected]>
46
47         * s390-tdep.c (s390_effective_inner_type): Ignore static fields
48         when unwrapping single-field structs.
49
50 2019-10-14  Simon Marchi  <[email protected]>
51
52         * dwarf2read.c: Remove includes.
53
54 2019-10-13  Simon Marchi  <[email protected]>
55
56         * ui-out.c (ui_out::call_do_message): Silence
57         -Wformat-nonliteral warning.
58
59 2019-10-12  Simon Marchi  <[email protected]>
60
61         * breakpoint.c: Remove some includes: continuations.h, skip.h,
62         mi/mi-main.h, readline/readline.h, readline/history.h.  Add
63         include: readline/tilde.h.
64
65 2019-10-12  Christian Biesinger  <[email protected]>
66
67         * remote.c (remote_target::get_trace_status): Remove declaration of
68         trace_regblock_size.
69
70 2019-10-12  Christian Biesinger  <[email protected]>
71
72         * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
73         (show_user): Remove declaration of cmdlist.
74         * cli/cli-cmds.h (max_user_call_depth): Declare.
75         * cli/cli-script.c (execute_user_command): Remove declaration
76         of max_user_call_depth.
77
78 2019-10-11  Jim Wilson  <[email protected]>
79
80         * gdbsupport/print-utils.h (pulongest): Fix comment.
81         (plongest): Likewise.
82         (phex): Add missing comment, mention leading zeros.
83         (phex_nz): Add mention of no leading zeros to comment.
84
85         * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
86         plongest instead of unsigned long long cast.
87
88 2019-10-10  Christian Biesinger  <[email protected]>
89
90         * main.c (captured_main_1): Include gdbtk.h and remove declarations
91         for external_editor_command and gdbtk_test.
92
93 2019-10-10  Christian Biesinger  <[email protected]>
94
95         * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
96         * varobj.c (varobjdebug): Move comment to...
97         * varobj.h (varobjdebug): ...here, and declare.
98
99 2019-10-09  Tom Tromey  <[email protected]>
100
101         * tui/tui-regs.c (tui_data_window::show_registers): Don't call
102         erase_data_content.
103
104 2019-10-09  Tom Tromey  <[email protected]>
105
106         * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
107         * tui/tui-stack.c (tui_locator_window::rerender): Update.
108         * tui/tui-command.c (tui_cmd_window::resize)
109         (tui_refresh_cmd_win): Update.
110         * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
111         * tui/tui.c (tui_rl_other_window, tui_enable): Update.
112         * tui/tui-data.c (~tui_gen_win_info): Remove.
113         * tui/tui-layout.c (tui_gen_win_info::resize): Update.
114         * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
115         (tui_redisplay_readline, tui_mld_flush)
116         (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
117         * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
118         (tui_data_window::erase_data_content)
119         (tui_data_item_window::rerender)
120         (tui_data_item_window::refresh_window): Update.
121         * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
122         (box_win, tui_gen_win_info::make_window)
123         (tui_gen_win_info::make_visible): Update.
124         (tui_delete_win): Remove.
125         * tui/tui-winsource.c
126         (tui_source_window_base::do_erase_source_content): Update.
127         (tui_show_source_line, tui_source_window_base::update_tab_width)
128         (tui_source_window_base::update_exec_info): Update.
129         * tui/tui-data.h (struct curses_deleter): New.
130         (struct tui_gen_win_info) <handle>: Now a unique_ptr.
131         (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
132
133 2019-10-09  Tom Tromey  <[email protected]>
134
135         * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
136
137 2019-10-09  Tom Tromey  <[email protected]>
138
139         * tui/tui-data.c (tui_win_is_auxiliary): Remove.
140         * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
141
142 2019-10-09  Tom Tromey  <[email protected]>
143
144         * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
145         window height directly.
146         * tui/tui-layout.h (tui_default_win_viewport_height): Don't
147         declare.
148         * tui/tui-layout.c (tui_default_win_height): Remove.
149         (tui_default_win_viewport_height): Remove.
150
151 2019-10-09  Tom Tromey  <[email protected]>
152
153         * tui/tui.h: Remove comments.
154
155 2019-10-09  Tom de Vries  <[email protected]>
156
157         * python/lib/gdb/printer/bound_registers.py: Use
158         '^builtin_type_bound128' as regexp argument for
159         add_builtin_pretty_printer.
160
161 2019-10-09  Christian Biesinger  <[email protected]>
162
163         * guile/guile.c (guile_extension_script_ops): Remove forward
164         declaration and mark as static.
165         (guile_script_ops): Likewise.
166         (extension_language_guile): Move further down in the file so
167         it can reference the definitions for guile_{extension_,}script_ops.
168
169 2019-10-09  Andreas Arnez  <[email protected]>
170
171         * s390-tdep.c (390_process_record): Handle new arch13 instructions
172         except SORTL, DFLTCC, and KDSA.
173
174 2019-10-08  Tom Tromey  <[email protected]>
175
176         * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
177         (struct safe_symbol_file_add_args): Remove.
178
179 2019-10-08  Tom Tromey  <[email protected]>
180
181         * windows-nat.c: Don't include buildsym-legacy.h.
182
183 2019-10-08  Tom Tromey  <[email protected]>
184
185         * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
186
187 2019-10-08  Christian Biesinger  <[email protected]>
188
189         * gdbtypes.c (overload_debug): Move comment to header.
190         * gdbtypes.h (overload_debug): Declare.
191         * valops.c: Remove declaration of overload_debug, instead
192         include gdbtypes.h.
193
194 2019-10-08  Christian Biesinger  <[email protected]>
195
196         * language.c (show_language_command): Pass lang_frame_mismatch_warn
197         through _().
198         (lang_frame_mismatch_warn): Make const, mark with N_(), and
199         move comment...
200         * language.h (lang_frame_mismatch_warn): ... here. Also add
201         declaration.
202         * top.c (lang_frame_mismatch_warn): Remove declaration.
203         (check_frame_language_change): Pass lang_frame_mismatch_warn
204         through _().
205
206 2019-10-07  Christian Biesinger  <[email protected]>
207
208         * c-lang.h (vtbl_ptr_name): Declare.
209         * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
210         it from the header.
211         * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
212
213 2019-10-07  Christian Biesinger  <[email protected]>
214
215         * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
216         gdb_static_assert.
217
218 2019-10-07  Weimin Pan  <[email protected]>
219
220         * ../Makefile.def (dependencies): Add all-libctf to all-gdb
221         * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
222         * ctfread.c: New file.
223         * ctfread.h: New file.
224         * elfread.c: Include ctfread.h.
225         (struct elfinfo text_p): New member ctfsect.
226         (elf_locate_sections): Mark CTF section.
227         (elf_symfile_read): Call elfctf_build_psymtabs.
228         * Makefile.in (LIBCTF): Add.
229         (CLIBS): Use it.
230         (CDEPS): Likewise.
231         (DIST): Add ctfread.c.
232
233 2019-10-07  Andrew Burgess  <[email protected]>
234
235         * ctfread.c (struct nextfield): Renamed to ...
236         (struct ctf_nextfield): ... this.
237         (struct field_info): Renamed to ...
238         (strut ctf_field_info): ... this.
239         (attach_fields_to_type): Update for renamed structures.
240         (ctf_add_member_cb): Likewise.
241         (ctf_add_enum_member_cb): Likewise.
242         (process_struct_members): Likewise.
243         (process_enum_type): Likewise.
244
245 2019-10-07  Weimin Pan  <[email protected]>
246
247         * tracectf.h: Rename, was ctf.h.
248         * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
249         * tracefile.c: Likewise.
250         * tracepoint.c: Remove unused include ctf.h.
251         * mi/mi-main.c: Likewise.
252         * Makefile.in Replace ctf.c with tracectf.c.
253
254 2019-10-06  Joel Brobecker  <[email protected]>
255
256         * version.in: Change version number to "9.0.50.DATE-git".
257
258 2019-10-03  Tom Tromey  <[email protected]>
259
260         PR rust/24976:
261         * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
262
263 2019-10-03  Andrew Burgess  <[email protected]>
264
265         * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
266         cp_search_name_hash.
267         * NEWS: Add entry about nested function support.
268
269 2019-10-03  Bernhard Heckel  <[email protected]>
270             Andrew Burgess  <[email protected]>
271
272         * cp-namespace.c (cp_search_static_and_baseclasses): Only search
273         for nested static variables when searchin VAR_DOMAIN.
274         * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
275         global scope, update comment.
276         (add_partial_subprogram): Call add_partial_subprogram recursively
277         for nested subroutines when processinng Fortran.
278         (load_partial_dies): Process the child entities of a subprogram
279         when processing Fortran.
280         (partial_die_parent_scope): Handle building scope
281         for Fortran nested functions.
282         (process_die): Record that nested functions have a scope.
283         (new_symbol): Always record Fortran subprograms on the global
284         symbol list.
285         (determine_prefix): How to build the prefix for Fortran
286         subprograms.
287
288 2019-10-03  Andrew Burgess  <[email protected]>
289
290         * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
291         have just sent the thread a SIGSTOP and are waiting for it to
292         arrive.
293
294 2019-10-03  Andrew Burgess  <[email protected]>
295
296         * btrace.c (btrace_add_pc): Remove whitespace before the template
297         parameter in 'std::vector <...>'.
298         (parse_xml_btrace_block): Likewise.
299         (btrace_maint_decode_pt): Likewise.
300         (btrace_maint_update_packets): Likewise.
301         (btrace_maint_print_packets): Likewise.
302         * btrace.h (struct btrace_maint_info): Likewise.
303         * dwarf2read.c (struct type_unit_group): Likewise.
304         (build_type_psymtabs_reader): Likewise.
305         * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
306         * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
307         * nat/linux-btrace.c (perf_event_read_bts): Likewise.
308
309 2019-10-03  Tom de Vries  <[email protected]>
310
311         * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
312         the first line of the help text for set/show style metadata.
313
314 2019-10-02  Tom Tromey  <[email protected]>
315
316         * Makefile.in (COMMON_SFILES): Add common-inferior.c.
317         * gdbsupport/common-inferior.c: New file.
318         * infcmd.c (startup_with_shell): Don't define.
319         * nat/fork-inferior.h (startup_with_shell): Don't declare.
320         * gdbsupport/common-inferior.h (startup_with_shell): Declare.
321         * inferior.h (startup_with_shell): Don't declare.
322
323 2019-10-02  Christian Biesinger  <[email protected]>
324
325         * gdbsupport/gdb_assert.h: Include errors.h.
326         * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
327
328 2019-10-02  Tom Tromey  <[email protected]>
329
330         * NEWS: Add $_ada_exception entry.
331         * ada-lang.c (struct ada_catchpoint): Add constructor.
332         <m_kind>: New member.
333         (allocate_location_exception, re_set_exception): Remove
334         "ex" parameter.
335         (should_stop_exception): Compute $_ada_exception.
336         (check_status_exception, print_it_exception)
337         (print_one_exception, print_mention_exception): Remove
338         "ex" parameter.
339         (allocate_location_catch_exception, re_set_catch_exception)
340         (check_status_exception, print_it_catch_exception)
341         (print_one_catch_exception, print_mention_catch_exception)
342         (print_recreate_catch_exception)
343         (allocate_location_catch_exception_unhandled)
344         (re_set_catch_exception_unhandled)
345         (check_status_exception, print_it_catch_exception_unhandled)
346         (print_one_catch_exception_unhandled)
347         (print_mention_catch_exception_unhandled)
348         (print_recreate_catch_exception_unhandled)
349         (allocate_location_catch_assert, re_set_catch_assert)
350         (check_status_assert, print_it_catch_assert)
351         (print_one_catch_assert, print_mention_catch_assert)
352         (print_recreate_catch_assert)
353         (allocate_location_catch_handlers, re_set_catch_handlers)
354         (check_status_handlers, print_it_catch_handlers)
355         (print_one_catch_handlers, print_mention_catch_handlers)
356         (print_recreate_catch_handlers): Remove.
357         (create_ada_exception_catchpoint): Update.
358         (initialize_ada_catchpoint_ops): Update.
359
360 2019-10-02  Tom Tromey  <[email protected]>
361
362         * ada-lang.c (ada_lookup_simple_minsyms): Remove.
363         (create_excep_cond_exprs): Simplify exception string computation.
364         (ada_exception_catchpoint_cond_string): Likewise.
365
366 2019-10-02  Tom Tromey  <[email protected]>
367
368         * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
369         * ada-lang.c (lesseq_defined_than): Handle
370         LOC_STATIC.
371         * dwarf2read.c (dwarf2_per_objfile): Add can_copy
372         parameter.
373         (dwarf2_has_info): Likewise.
374         (new_symbol): Set maybe_copied on symbol when
375         appropriate.
376         * dwarf2read.h (dwarf2_per_objfile): Add can_copy
377         parameter.
378         <can_copy>: New member.
379         * elfread.c (record_minimal_symbol): Set maybe_copied
380         on symbol when appropriate.
381         (elf_symfile_read): Update call to dwarf2_has_info.
382         * minsyms.c (lookup_minimal_symbol_linkage): New
383         function.
384         * minsyms.h (lookup_minimal_symbol_linkage): Declare.
385         * symtab.c (get_symbol_address, get_msymbol_address):
386         New functions.
387         * symtab.h (get_symbol_address, get_msymbol_address):
388         Declare.
389         (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
390         maybe_copied.
391         (struct symbol, struct minimal_symbol) <maybe_copied>:
392         New member.
393
394 2019-10-02  Tom Tromey  <[email protected]>
395
396         * source.c (struct current_source_location): New.
397         (current_source_key): New global.
398         (current_source_symtab, current_source_line)
399         (current_source_pspace): Remove.
400         (get_source_location): New function.
401         (get_current_source_symtab_and_line)
402         (set_default_source_symtab_and_line)
403         (set_current_source_symtab_and_line)
404         (clear_current_source_symtab_and_line, select_source_symtab)
405         (info_source_command, print_source_lines_base)
406         (info_line_command, search_command_helper, _initialize_source):
407         Update.
408
409 2019-10-02  Tom Tromey  <[email protected]>
410
411         * source.c (select_source_symtab): Don't call
412         decode_line_with_current_source.
413
414 2019-10-02  Andrew Burgess  <[email protected]>
415
416         * symtab.c (lookup_global_symbol): Search global block.
417
418 2019-10-02  Tom Tromey  <[email protected]>
419
420         * coffread.c (process_coff_symbol): Update.
421         * dwarf2read.c (var_decode_location, new_symbol): Update.
422         * mdebugread.c (parse_symbol): Update.
423         * objfiles.c (relocate_one_symbol): Update.
424         * stabsread.c (define_symbol, fix_common_block)
425         (scan_file_globals): Update.
426         * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
427         (SET_SYMBOL_VALUE_ADDRESS): New macro.
428         * xcoffread.c (process_xcoff_symbol): Update.
429
430 2019-10-02  Andreas Arnez  <[email protected]>
431
432         * MAINTAINERS: Update my email address.
433
434 2019-10-02  Andrew Burgess  <[email protected]>
435
436         * dwarf2read.c (struct type_unit_group) <tus>: Convert to
437         std::vector.
438         (build_type_psymtabs_reader): Update for std::vector.
439         (build_type_psymtab_dependencies): Likewise.
440         * dwarf2read.h: Remove use of DEF_VEC_P.
441         (typedef sig_type_ptr): Delete.
442
443 2019-10-02  Andrew Burgess  <[email protected]>
444
445         * btrace.c (btrace_maint_clear): Update to handle change from VEC
446         to std::vector.
447         (btrace_maint_decode_pt): Likewise, and move allocation of the
448         vector outside of the loop.
449         (btrace_maint_update_packets): Update to handle change from VEC to
450         std::vector.
451         (btrace_maint_print_packets): Likewise.
452         (maint_info_btrace_cmd): Likewise.
453         * btrace.h: Remove use of DEF_VEC_O.
454         (typedef btrace_pt_packet_s): Delete.
455         (struct btrace_maint_info) <packets>: Change fromm VEC to
456         std::vector.
457         * gdbsupport/btrace-common.h: Remove 'vec.h' include.
458
459 2019-10-02  Andrew Burgess  <[email protected]>
460
461         * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
462         make accesses into the vector constant references.
463         (btrace_add_pc): Update for std::vector.
464         (btrace_stitch_bts): Likewise.
465         (parse_xml_btrace_block): Likewise.
466         (btrace_maint_update_packets): Likewise.
467         (btrace_maint_print_packets): Likewise.
468         (maint_info_btrace_cmd): Likewise.
469         * gdbsupport/btrace-common.c (btrace_data::fini): Update for
470         std::vector.
471         (btrace_data::empty): Likewise.
472         (btrace_data_append): Likewise.
473         * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
474         (typedef btrace_block_s): Delete.
475         (struct btrace_block): Add constructor.
476         (struct btrace_data_bts) <blocks>: Change to std::vector.
477         * nat/linux-btrace.c (perf_event_read_bts): Update for
478         std::vector.
479         (linux_read_bts): Likewise.
480
481 2019-10-01  Tom Tromey  <[email protected]>
482
483         * cli/cli-logging.c (show_logging_filename): Use styled_string.
484
485 2019-10-01  Tom Tromey  <[email protected]>
486
487         * stack.c (print_frame, info_frame_command_core): Use
488         styled_string.
489         * linux-thread-db.c (try_thread_db_load_1)
490         (try_thread_db_load_from_pdir_1): Use styled_string.
491         * auto-load.c (file_is_auto_load_safe, execute_script_contents)
492         (auto_load_section_scripts, info_auto_load_local_gdbinit)
493         (maybe_print_unsupported_script_warning)
494         (maybe_print_script_not_found_warning): Use styled_string.
495         * ada-lang.c (user_select_syms): Use styled_string.
496
497 2019-10-01  Tom Tromey  <[email protected]>
498
499         * p-lang.c (pascal_printstr): Use metadata style.
500         * value.c (show_convenience): Use metadata style.
501         * valprint.c (valprint_check_validity, val_print_optimized_out)
502         (val_print_not_saved, val_print_unavailable)
503         (val_print_invalid_address, generic_val_print, val_print)
504         (value_check_printable, val_print_array_elements): Use metadata
505         style.
506         * ui-out.h (class ui_out) <field_fmt>: New overload.
507         <do_field_fmt>: Add style parameter.
508         * ui-out.c (ui_out::field_fmt): New overload.
509         * typeprint.c (type_print_unknown_return_type)
510         (val_print_not_allocated, val_print_not_associated): Use metadata
511         style.
512         * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
513         parameter.
514         * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
515         * tracepoint.c (tvariables_info_1): Use metadata style.
516         * stack.c (print_frame_arg, print_frame_info, print_frame)
517         (info_frame_command_core): Use metadata style.
518         * skip.c (info_skip_command): Use metadata style.
519         * rust-lang.c (rust_print_enum): Use metadata style.
520         * python/py-prettyprint.c (print_stack_unless_memory_error): Use
521         metadata style.
522         * python/py-framefilter.c (py_print_single_arg): Use metadata
523         style.
524         * printcmd.c (do_one_display, print_variable_and_value): Use
525         metadata style.
526         * p-valprint.c (pascal_val_print)
527         (pascal_object_print_value_fields): Use metadata style.
528         * p-typeprint.c (pascal_type_print_base): Use metadata style.
529         * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
530         parameter.
531         * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
532         * m2-valprint.c (m2_print_long_set): Use metadata style.
533         * m2-typeprint.c (m2_print_type): Use metadata style.
534         * infcmd.c (print_return_value_1): Use metadata style.
535         * gnu-v3-abi.c (print_one_vtable): Use metadata style.
536         * f-valprint.c (info_common_command_for_block): Use metadata
537         style.
538         * f-typeprint.c (f_type_print_base): Use metadata style.
539         * expprint.c (print_subexp_standard): Use metadata style.
540         * cp-valprint.c (cp_print_value_fields): Use metadata style.
541         * cli/cli-style.h (class cli_style_option): Add constructor.
542         (metadata_style): Declare.
543         * cli/cli-style.c (metadata_style): New global.
544         (_initialize_cli_style): Register metadata style.
545         * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
546         parameter.
547         * cli-out.c (cli_ui_out::do_field_fmt): Update.
548         * c-typeprint.c (c_type_print_base_struct_union)
549         (c_type_print_base_1): Use metadata style.
550         * breakpoint.c (watchpoint_value_print)
551         (print_one_breakpoint_location): Use metadata style.
552         * break-catch-syscall.c (print_one_catch_syscall): Use metadata
553         style.
554         * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
555         style.
556         * ada-valprint.c (val_print_packed_array_elements, printstr)
557         (print_field_values, ada_val_print_ref, ada_val_print): Use
558         metadata style.
559         * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
560         style.
561         * ada-tasks.c (print_ada_task_info, info_task): Use metadata
562         style.
563         * ada-lang.c (user_select_syms): Use metadata style.
564
565 2019-10-01  Tom Tromey  <[email protected]>
566
567         * cli/cli-cmds.c (pwd_command): Style output.
568
569 2019-10-01  Pedro Alves  <[email protected]>
570             Tom Tromey  <[email protected]>
571
572         * symtab.c (print_symbol_info): Use %ps.
573         (print_msymbol_info): Use %ps.
574         * symfile.c (symbol_file_add_with_addrs): Use %ps.
575         * printcmd.c (print_variable_and_value): Use %ps.
576         * macrocmd.c (show_pp_source_pos): Use %ps.
577         * infrun.c (print_exited_reason): Use ui_out::message.
578         * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
579         (describe_other_breakpoints): Use ui_out::message and new
580         formats.
581         (say_where): Use new formats.
582         (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
583         and new formats.
584
585 2019-10-01  Pedro Alves  <[email protected]>
586             Tom Tromey  <[email protected]>
587
588         * unittests/format_pieces-selftests.c: Add gdb_format parameter.
589         (test_gdb_formats): New function.
590         (run_tests): Call it.
591         (test_format_specifier): Update.
592         * utils.h (fputs_filtered): Update comment.
593         (vfprintf_styled, vfprintf_styled_no_gdbfmt)
594         (fputs_styled_unfiltered): Declare.
595         * utils.c (fputs_styled_unfiltered): New function.
596         (vfprintf_maybe_filtered): Add gdbfmt parameter.
597         (vfprintf_filtered): Update.
598         (vfprintf_unfiltered, vprintf_filtered): Update.
599         (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
600         * ui-out.h (enum ui_out_flag) <unfiltered_output,
601         disallow_ui_out_field>: New constants.
602         (enum class field_kind): New.
603         (struct base_field_s, struct signed_field_s): New.
604         (signed_field): New function.
605         (struct string_field_s): New.
606         (string_field): New function.
607         (struct styled_string_s): New.
608         (styled_string): New function.
609         (class ui_out) <message>: Add comment.
610         <vmessage, call_do_message>: New methods.
611         <do_message>: Add style parameter.
612         * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
613         methods.
614         (ui_out::message): Rewrite.
615         * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
616         parameter.
617         * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
618         * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
619         gdb_extensions parameter.
620         (class format_piece): Add parameter to constructor.
621         (n_int_args): New field.
622         * gdbsupport/format.c (format_pieces::format_pieces): Add
623         gdb_extensions parameter.  Handle '*'.
624         * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
625         * cli-out.c (cli_ui_out::do_message): Add style parameter.  Call
626         vfprintf_styled_no_gdbfmt.
627         (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
628         (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
629         unfiltered output.
630         * ui-style.h (struct ui_file_style) <ptr>: New method.
631
632 2019-10-01  Tom Tromey  <[email protected]>
633
634         * unittests/format_pieces-selftests.c: Update.  Add final format.
635         * gdbsupport/format.c (format_pieces::format_pieces): Don't add
636         empty literal pieces.
637
638 2019-10-01  Tom Tromey  <[email protected]>
639
640         * ui-out.h (enum class ui_out_style_kind): Remove.
641         (class ui_out) <field_string, field_stsream, do_field_string>:
642         Change type of "style".
643         * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
644         (ui_out::field_string): Update.
645         * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
646         of "style".
647         * tui/tui-out.c (tui_ui_out::do_field_string): Update.
648         * tracepoint.c (print_one_static_tracepoint_marker): Update.
649         * stack.c (print_frame_arg, print_frame_info, print_frame):
650         Update.
651         * source.c (print_source_lines_base): Update.
652         * solib.c (info_sharedlibrary_command): Update.
653         * skip.c (info_skip_command): Update.
654         * record-btrace.c (btrace_call_history_src_line)
655         (btrace_call_history): Update.
656         * python/py-framefilter.c (py_print_frame): Update.
657         * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
658         "style".
659         * mi/mi-out.c (mi_ui_out::do_table_header)
660         (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
661         (mi_ui_out::do_field_string): Update.
662         * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
663         Update.
664         * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
665         "style".
666         * cli-out.c (cli_ui_out::do_table_header)
667         (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
668         (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
669         (cli_ui_out::do_field_fmt): Update.
670         * breakpoint.c (print_breakpoint_location): Update.
671         (update_static_tracepoint): Update.
672
673 2019-10-01  Philippe Waroquiers  <[email protected]>
674
675         * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
676         conversion of gdb_datadir.
677         (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
678         remove not needed c_str ().
679
680 2019-09-30  Ali Tamur <[email protected]>
681
682         * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
683         (dwarf2_string_attr): Likewise.
684
685 2019-09-30  Ali Tamur <[email protected]>
686
687         * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
688         (process_full_type_unit): Likewise.
689         (dump_die_shallow): Likewise.
690         (cu_debug_loc_section): Likewise.
691
692 2019-09-28  Christian Biesinger  <[email protected]>
693
694         * minsyms.c (compare_minimal_symbols): Rename to...
695         (minimal_symbol_is_less_than): ...this, and adjust to STL
696         conventions (return bool, take arguments as references)
697         (minimal_symbol_reader::install): Call std::sort instead
698         of qsort.
699
700 2019-09-29  Christian Biesinger  <[email protected]>
701
702         * minsyms.h (msymbol_hash): Document that this is a case-insensitive
703         hash and why.
704         * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
705         msymbol_hash, msymbol_demangled_hash>: Improve comments.
706
707 2019-09-30  Simon Marchi  <[email protected]>
708
709         * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
710         * psympriv.h (add_psymbol_to_list): Move comment here and update
711         it.
712
713 2019-09-29  Tom de Vries  <[email protected]>
714
715         * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
716         Use $tmpdir/$(basename "$output_file").dwz instead of
717         "${output_file}.dwz".
718
719 2019-09-28  Simon Marchi  <[email protected]>
720
721         PR gdb/25045
722         * hppa-linux-nat.c: Include gdbarch.h.
723
724 2019-09-26  Christian Biesinger  <[email protected]>
725
726         * blockframe.c (find_pc_partial_function): Change return type to bool.
727         * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
728         * minsyms.c (in_gnu_ifunc_stub): Likewise.
729         (stub_gnu_ifunc_resolve_name): Likewise.
730         * symtab.c (compare_filenames_for_search): Likewise.
731         (compare_glob_filenames_for_search): Likewise.
732         (matching_obj_sections): Likewise.
733         (symbol_matches_domain): Likewise.
734         (find_line_symtab): Change out param EXACT_MATCH to bool *.
735         (find_line_pc): Change return type to bool.
736         (find_line_pc_range): Likewise.
737         (producer_is_realview): Likewise.
738         * symtab.h (symbol_matches_domain): Likewise.
739         (find_pc_partial_function): Likewise.
740         (find_pc_line_pc_range): Likewise.
741         (in_gnu_ifunc_stub): Likewise.
742         (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
743         (find_line_pc): Likewise.
744         (find_line_pc_range): Likewise.
745         (matching_obj_sections): Likewise.
746         (find_line_symtab): Change out parameter to bool.
747         (producer_is_realview): Change return type to bool.
748         (compare_filenames_for_search): Likewise.
749         (compare_glob_filenames_for_search): Likewise.
750
751 2019-09-26  Tom Tromey  <[email protected]>
752
753         * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
754         (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
755         * gdb_usleep.h: Remove.
756         * gdb_usleep.c: Remove.
757         * utils.c: Don't include gdb_usleep.h.
758
759 2019-09-26  Tom Tromey  <[email protected]>
760
761         * python/py-type.c (type_to_type_object): Call check_typedef
762         for stub types.
763
764 2019-09-26  Tom Tromey  <[email protected]>
765
766         * utils.h (initialize_utils): Don't declare.
767         * top.c (gdb_init): Don't call initialize_utils.
768         * utils.c (initialize_utils): Remove.  Move contents...
769         (_initialize_utils): ... here.
770
771 2019-09-25  Tom Tromey  <[email protected]>
772
773         * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
774         * utils.h (make_hex_string): Don't declare.
775         * utils.c (make_hex_string): Remove.
776
777 2019-09-24  Tom de Vries  <[email protected]>
778
779         PR gdb/23815
780         * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
781         Initialize xstateregs before ptrace PTRACE_GETREGSET call.
782
783 2019-09-23  Dimitar Dimitrov  <[email protected]>
784
785         * NEWS: Mention new simulator port for PRU.
786
787 2019-09-23  Christian Biesinger  <[email protected]>
788
789         * ada-exp.y (write_object_remaining): Update.
790         * ada-lang.c (ada_decode): Return a std::string instead of a char*
791         and eliminate the static buffer.
792         (ada_decode_symbol): Update.
793         (ada_la_decode): Update.
794         (ada_sniff_from_mangled_name): Update.
795         (is_valid_name_for_wild_match): Update.
796         (ada_lookup_name_info::matches): Update and simplify.
797         (name_matches_regex): Update.
798         (ada_add_global_exceptions): Update.
799         * ada-lang.h (ada_decode): Update signature.
800         * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
801         * dwarf-index-write.c (debug_names::insert): Update.
802
803 2019-09-21  Simon Marchi  <[email protected]>
804
805         * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
806         formatting.
807
808 2019-09-21  Simon Marchi  <[email protected]>
809
810         * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
811         Change "nonzero" to "true" in documentation.
812
813 2019-09-20  Christian Biesinger  <[email protected]>
814
815         * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
816         (_initialize_darwin_solib): Don't set
817         darwin_so_ops.lookup_lib_global_symbol.
818         * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
819         set_gdbarch_iterate_over_objfiles_in_search_order.
820         (elf_lookup_lib_symbol): Rename to...
821         (svr4_iterate_over_objfiles_in_search_order): this, and update
822         to iterate semantics.
823         (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
824         * solib.c (solib_global_lookup): Remove.
825         * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
826         (solib_global_lookup): Remove.
827         * symtab.c (lookup_global_or_static_symbol): Remove call to
828         solib_global_lookup.
829
830 2019-09-20  Joel Brobecker  <[email protected]>
831
832         * NEWS: Move entries about default MI version now being
833         version 3, and about the GDB/MI fix for multi-location
834         breakpoints to the "since GDB 8.3" section.
835
836 2019-09-20  Joel Brobecker  <[email protected]>
837
838         GDB 8.3.1 released.
839
840 2019-09-20  Ulrich Weigand  <[email protected]>
841
842         * NEWS: Mention that Cell/B.E. debugging support was removed.
843         * MAINTAINERS: Remove spu target.
844
845         * config/djgpp/fnchange.lst: Remove entries for removed files.
846
847         * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
848         spu-multiarch.o, and spu-tdep.o.
849         (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
850         (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
851         spu-multiarch.c, and spu-tdep.c.
852         * spu-linux-nat.c: Remove file.
853         * spu-multiarch.c: Remove file.
854         * spu-tdep.c: Remove file.
855         * spu-tdep.h: Remove file.
856         * solib-spu.c: Remove file.
857         * solib-spu.h: Remove file.
858
859         * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
860         * configure.nat (spu-linux): Remove.
861         * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
862         solib-multiarch.o from gdb_target_obs.
863         (spu*-*-*): Remove.
864
865         * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
866         feature flag.
867         (ppc_linux_no_features): Update.
868         * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
869         Cell/B.E. support.
870         * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
871         (tdesc_powerpc_cell64l): Likewise.
872         * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
873         * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
874         Cell/B.E. support.
875         * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
876         Do not include "features/rs6000/powerpc-cell32l.c" or
877         "features/rs6000/powerpc-cell64l.c".
878         (ppc_linux_spu_section): Remove.
879         (ppc_linux_core_read_description): Remove Cell/B.E. support.
880         (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
881         spe_context_cache_ptid, spe_context_cache_ptid): Remove.
882         (ppc_linux_spe_context_lookup): Remove.
883         (ppc_linux_spe_context_inferior_created): Remove.
884         (ppc_linux_spe_context_solib_loaded): Remove.
885         (ppc_linux_spe_context_solib_unloaded): Remove.
886         (ppc_linux_spe_context): Remove.
887         (struct ppu2spu_cache): Remove.
888         (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
889         (struct ppu2spu_data): Remove.
890         (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
891         ppu2spu_unwind): Remove.
892         (ppc_linux_init_abi): Remove Cell/B.E. support.
893         * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
894
895         * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
896         (rs6000/powerpc-cell64l-expedite): Likewise
897         (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
898         (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
899         rs6000/powerpc-cell64l.xml.
900         * features/rs6000/powerpc-cell32l.xml: Remove.
901         * features/rs6000/powerpc-cell64l.xml: Likewise.
902         * features/rs6000/powerpc-cell32l.c: Remove generated file.
903         * features/rs6000/powerpc-cell64l.c: Likewise.
904         * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
905         * regformats/rs6000/powerpc-cell64l.dat: Likewise.
906         * regformats/reg-spu.dat: Remove.
907
908         * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
909         * corelow.c (struct spuid_list): Remove.
910         (add_to_spuid_list): Remove.
911         (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
912         * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
913         (remote_protocol_features): Remove associated entries.
914         (_initialize_remote): No longer initialize them.
915         (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
916         * linux-nat.c (SPUFS_MAGIC): Remove.
917         (linux_proc_xfer_spu): Remove.
918         (spu_enumerate_spu_ids): Remove.
919         (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
920         * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
921         (linux_make_corefile_notes): No longer call it.
922
923         * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
924         (cooked_write_test): Likewise.
925
926 2019-09-20  Tom Tromey  <[email protected]>
927
928         * NEWS: Mention case-sensitivity of TUI commands.
929         * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
930         (tui_set_win_height_command, parse_scrolling_args): Likewise.
931         * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
932
933 2019-09-20  Tom Tromey  <[email protected]>
934
935         * tui/tui-source.c (tui_source_window::set_contents): Use
936         make_unique_xstrdup.
937         * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
938         make_unique_xstrdup.
939
940 2019-09-20  Tom Tromey  <[email protected]>
941
942         * tui/tui-data.c: Remove separator comments.
943         * tui/tui-layout.c: Remove separator comments.
944         * tui/tui-win.c: Remove separator comments.
945         * tui/tui-wingeneral.c: Remove separator comments.
946
947 2019-09-20  Tom Tromey  <[email protected]>
948
949         * tui/tui.h (strcat_to_buf): Don't declare.
950         * tui/tui.c (strcat_to_buf): Remove.
951
952 2019-09-20  Tom Tromey  <[email protected]>
953
954         * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
955         from "fullname".
956         * tui/tui-source.c (tui_source_window::set_contents)
957         (tui_source_window::location_matches_p)
958         (tui_source_window::maybe_update): Update.
959
960 2019-09-20  Tom Tromey  <[email protected]>
961
962         * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
963         Update.
964         <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
965         prefix.
966         * tui/tui-regs.c (tui_data_window::last_regs_line_no)
967         (tui_data_window::line_from_reg_element_no)
968         (tui_data_window::first_reg_element_no_inline)
969         (tui_data_window::show_registers)
970         (tui_data_window::show_register_group)
971         (tui_data_window::display_registers_from)
972         (tui_data_window::display_registers_from_line)
973         (tui_data_window::first_data_item_displayed)
974         (tui_data_window::delete_data_content_windows)
975         (tui_data_window::erase_data_content)
976         (tui_data_window::do_scroll_vertical)
977         (tui_data_window::refresh_window)
978         (tui_data_window::check_register_values): Update.
979
980 2019-09-20  Tom Tromey  <[email protected]>
981
982         * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
983         (struct tui_locator_window) <full_name, proc_name>: Now
984         std::string.
985         * tui/tui-stack.c (tui_locator_window::make_status_line)
986         (tui_locator_window::set_locator_fullname)
987         (tui_locator_window::set_locator_info): Update.
988         * tui/tui-source.c (tui_source_window::set_contents)
989         (tui_source_window::showing_source_p): Update.
990
991 2019-09-20  Tom Tromey  <[email protected]>
992
993         * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
994         Don't call tui_locator_win_info_ptr.
995
996 2019-09-20  Tom Tromey  <[email protected]>
997
998         * tui/tui-win.c (tui_resize_all): Don't call refresh.
999
1000 2019-09-20  Tom Tromey  <[email protected]>
1001
1002         * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
1003         height for locator.
1004         * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
1005         * tui/tui-layout.c (show_source_disasm_command, show_data)
1006         (show_source_or_disasm_and_command): Use 1 as height for locator.
1007
1008 2019-09-20  Tom Tromey  <[email protected]>
1009
1010         * tui/tui.c (tui_enable): Update.
1011         * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
1012         Update.
1013         * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
1014         Update.
1015         * tui/tui-data.c (win_resized): Now bool.
1016         (tui_win_resized): Return bool.
1017         (tui_set_win_resized_to): Accept a bool.
1018
1019 2019-09-20  Tom Tromey  <[email protected]>
1020
1021         * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
1022         Change type of "refresh_values_only".
1023         * tui/tui-regs.c (tui_data_window::show_register_group): Change
1024         type of "refresh_values_only".
1025
1026 2019-09-20  Tom Tromey  <[email protected]>
1027
1028         * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
1029         std::string.
1030         (tui_disassemble): Add "pos" parameter.
1031         (tui_disasm_window::set_contents): Simplify.
1032
1033 2019-09-20  Tom Tromey  <[email protected]>
1034
1035         * tui/tui-winsource.h (struct tui_source_window_base)
1036         <show_source_content>: Now private.
1037         * tui/tui-winsource.c
1038         (tui_source_window_base::show_source_content): Don't handle empty
1039         content case.
1040
1041 2019-09-20  Tom Tromey  <[email protected]>
1042
1043         * tui/tui-layout.c (show_source_disasm_command)
1044         (show_source_or_disasm_and_command): Don't call
1045         show_source_content.
1046
1047 2019-09-20  Tom Tromey  <[email protected]>
1048
1049         * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
1050         Declare.
1051         * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
1052         from tui_make_status_line.
1053         (tui_locator_window::rerender): Update.
1054
1055 2019-09-20  Tom Tromey  <[email protected]>
1056
1057         * tui/tui-stack.c (tui_make_status_line): Return std::string.
1058         (tui_locator_window::rerender): Update.
1059
1060 2019-09-20  Tom Tromey  <[email protected]>
1061
1062         * tui/tui-winsource.h (struct tui_source_window_base)
1063         <~tui_source_window_base>: Don't declare.
1064         <fullname>: Remove.
1065         * tui/tui-winsource.c (~tui_source_window_base): Remove.
1066         * tui/tui-source.h (struct tui_source_window) <fullname>: New
1067         member.
1068         * tui/tui-source.c (tui_source_window::set_contents): Update.
1069         (tui_source_window::location_matches_p)
1070         (tui_source_window::maybe_update): Update.
1071
1072 2019-09-20  Tom Tromey  <[email protected]>
1073
1074         * tui/tui-winsource.h (~tui_source_element): Remove.
1075         (tui_source_element): Update.
1076         (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
1077         * tui/tui-winsource.c (tui_show_source_line): Update.
1078         * tui/tui-source.c (tui_source_window::set_contents): Update.
1079         * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1080
1081 2019-09-20  Tom Tromey  <[email protected]>
1082
1083         * tui/tui-data.h (tui_clear_source_windows_detail): Don't
1084         declare.
1085         * tui/tui-layout.c (tui_add_win_to_layout): Don't call
1086         tui_clear_source_windows_detail.
1087         * tui/tui-winsource.h (struct tui_source_window_base)
1088         <clear_detail>: Don't declare.
1089         * tui/tui-winsource.c (tui_source_window_base::clear_detail):
1090         Remove.
1091         * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
1092
1093 2019-09-20  Tom Tromey  <[email protected]>
1094
1095         PR ada/24919:
1096         * block.c (contained_in): Fix final return value.
1097
1098 2019-09-20  Alan Modra  <[email protected]>
1099
1100         * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
1101         * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
1102         (read_indirect_string_from_dwz): Use bfd accessor.
1103         * dwarf2read.h (struct dwz_file <filename>): Likewise.
1104         * machoread.c (macho_symfile_read_all_oso): Likewise.
1105         * solib.c (solib_bfd_open): Likewise.
1106
1107 2019-09-19  Christian Biesinger  <[email protected]>
1108
1109         * eval.c: Move declaration of overload_resolution to...
1110         * value.h: ...here.
1111
1112 2019-09-19  Christian Biesinger  <[email protected]>
1113
1114         * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
1115         * arm-linux-tdep.c: Likewise.
1116         * arm-nbsd-nat.c: Likewise.
1117         * arm-tdep.h: Declare arm_apcs_32.
1118         * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
1119
1120 2019-09-19  Christian Biesinger  <[email protected]>
1121
1122         * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
1123         * dwarf2read.h: Declare dwarf_always_disassemble.
1124
1125 2019-09-19  Tom de Vries  <[email protected]>
1126
1127         PR gdb/25009
1128         * source-cache.c (source_cache::ensure): Catch exception thrown during
1129         construction of the highlighter.
1130
1131 2019-09-18  Alan Modra  <[email protected]>
1132
1133         * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
1134         * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
1135         * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
1136         * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
1137         * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
1138         * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
1139         * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
1140         * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
1141         * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
1142         * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
1143         * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
1144         * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
1145         * solib-spu.c, * solib-svr4.c, * solib-target.c,
1146         * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
1147         * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
1148         * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
1149         * mi/mi-interp.c: Update throughout for bfd section macro and
1150         function changes.
1151         * gcore (gcore_create_callback): Use bfd_set_section_lma.
1152         * spu-tdep.c (spu_overlay_new_objfile): Likewise.
1153
1154 2019-09-18  Tom Tromey  <[email protected]>
1155
1156         * NEWS: Add entry.
1157         * tui/tui.c (tui_initialize_readline): Set name of keymap.  Do not
1158         call rl_initialize.
1159         (tui_enable): Do not call rl_initialize.
1160
1161 2019-09-18  Christian Groessler  <[email protected]>
1162
1163         * alpha-linux-nat.c: Include gdbarch.h.
1164
1165 2019-09-18  Simon Marchi  <[email protected]>
1166
1167         * ui-file.c: Include cli/cli-style.h.
1168         (term_cli_styling): Remove cli_styling declaration.
1169
1170 2019-09-18  Alan Modra  <[email protected]>
1171
1172         * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
1173         to bfd_asymbol_section.
1174
1175 2019-09-18  Alan Modra  <[email protected]>
1176
1177         * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
1178         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
1179         * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
1180
1181 2019-09-18  Alan Modra  <[email protected]>
1182
1183         * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
1184         * spu-linux-nat.c (spu_bfd_open): Likewise.
1185
1186 2019-09-18  Christian Biesinger  <[email protected]>
1187
1188         * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
1189         to bool to match definition in dwarf2read.c.
1190
1191 2019-09-17  Christian Biesinger  <[email protected]>
1192
1193         * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
1194         (print_signatures): Likewise.
1195         (trust_pad_over_xvs): Likewise.
1196         * arch/aarch64-insn.c (aarch64_debug): Likewise.
1197         * arch/aarch64-insn.h (aarch64_debug): Likewise.
1198         * arm-linux-nat.c (arm_apcs_32): Likewise.
1199         * arm-linux-tdep.c (arm_apcs_32): Likewise.
1200         * arm-nbsd-nat.c (arm_apcs_32): Likewise.
1201         * arm-tdep.c (arm_debug): Likewise.
1202         (arm_apcs_32): Likewise.
1203         * auto-load.c (debug_auto_load): Likewise.
1204         (auto_load_gdb_scripts): Likewise.
1205         (global_auto_load): Likewise.
1206         (auto_load_local_gdbinit): Likewise.
1207         (auto_load_local_gdbinit_loaded): Likewise.
1208         * auto-load.h (global_auto_load): Likewise.
1209         (auto_load_local_gdbinit): Likewise.
1210         (auto_load_local_gdbinit_loaded): Likewise.
1211         * breakpoint.c (disconnected_dprintf): Likewise.
1212         (breakpoint_proceeded): Likewise.
1213         (automatic_hardware_breakpoints): Likewise.
1214         (always_inserted_mode): Likewise.
1215         (target_exact_watchpoints): Likewise.
1216         (_initialize_breakpoint): Update.
1217         * breakpoint.h (target_exact_watchpoints): Change to bool.
1218         * btrace.c (maint_btrace_pt_skip_pad): Likewise.
1219         * cli/cli-cmds.c (trace_commands): Likewise.
1220         * cli/cli-cmds.h (trace_commands): Likewise.
1221         * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
1222         to bool*.
1223         * cli/cli-logging.c (logging_overwrite): Change to bool.
1224         (logging_redirect): Likewise.
1225         (debug_redirect): Likewise.
1226         * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
1227         (struct boolean_option_def) <get_var_address_cb_>: Change return type
1228         to bool.
1229         <boolean_option_def>: Update.
1230         (struct flag_option_def): Change default type of Context to bool
1231         from int.
1232         <flag_option_def>: Change return type of var_address_cb_ to bool*.
1233         * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
1234         (get_setshow_command_value_string): Likewise.
1235         * cli/cli-style.c (cli_styling): Change to bool.
1236         (source_styling): Likewise.
1237         * cli/cli-style.h (source_styling): Likewise.
1238         (cli_styling): Likewise.
1239         * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
1240         to bool.
1241         * command.h (var_types): Update comment.
1242         (add_setshow_boolean_cmd): Change int* var argument to bool*.
1243         * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
1244         bool.
1245         (debug_compile_cplus_scopes): Likewise.
1246         * compile/compile-internal.h (compile_debug): Likewise.
1247         * compile/compile.c (compile_debug): Likewise.
1248         (struct compile_options) <raw>: Likewise.
1249         * cp-support.c (catch_demangler_crashes): Likewise.
1250         * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
1251         (usr_cmd_cris_dwarf2_cfi): Likewise.
1252         * csky-tdep.c (csky_debug): Likewise.
1253         * darwin-nat.c (enable_mach_exceptions): Likewise.
1254         * dcache.c (dcache_enabled_p): Likewise.
1255         * defs.h (info_verbose): Likewise.
1256         * demangle.c (demangle): Likewise.
1257         (asm_demangle): Likewise.
1258         * dwarf-index-cache.c (debug_index_cache): Likewise.
1259         * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
1260         * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
1261         * dwarf2read.c (check_physname): Likewise.
1262         (use_deprecated_index_sections): Likewise.
1263         (dwarf_always_disassemble): Likewise.
1264         * eval.c (overload_resolution): Likewise.
1265         * event-top.c (set_editing_cmd_var): Likewise.
1266         (exec_done_display_p): Likewise.
1267         * event-top.h (set_editing_cmd_var): Likewise.
1268         (exec_done_display_p): Likewise.
1269         * exec.c (write_files): Likewise.
1270         * fbsd-nat.c (debug_fbsd_lwp): Likewise
1271         (debug_fbsd_nat): Likewise.
1272         * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
1273         Likewise.
1274         (struct set_backtrace_options) <backtrace_past_main>: Likewise.
1275         <backtrace_past_entry> Likewise.
1276         * gdb-demangle.h (demangle): Likewise.
1277         (asm_demangle): Likewise.
1278         * gdb_bfd.c (bfd_sharing): Likewise.
1279         * gdbcore.h (write_files): Likewise.
1280         * gdbsupport/common-debug.c (show_debug_regs): Likewise.
1281         * gdbsupport/common-debug.h (show_debug_regs): Likewise.
1282         * gdbthread.h (print_thread_events): Likewise.
1283         * gdbtypes.c (opaque_type_resolution): Likewise.
1284         (strict_type_checking): Likewise.
1285         * gnu-nat.c (gnu_debug_flag): Likewise.
1286         * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
1287         * guile/scm-param.c (pascm_variable): Add boolval.
1288         (add_setshow_generic): Update.
1289         (pascm_param_value): Update.
1290         (pascm_set_param_value_x): Update.
1291         * hppa-tdep.c (hppa_debug): Change to bool..
1292         * infcall.c (may_call_functions_p): Likewise.
1293         (coerce_float_to_double_p): Likewise.
1294         (unwind_on_signal_p): Likewise.
1295         (unwind_on_terminating_exception_p): Likewise.
1296         * infcmd.c (startup_with_shell): Likewise.
1297         * inferior.c (print_inferior_events): Likewise.
1298         * inferior.h (startup_with_shell): Likewise.
1299         (print_inferior_events): Likewise.
1300         * infrun.c (step_stop_if_no_debug): Likewise.
1301         (detach_fork): Likewise.
1302         (debug_displaced): Likewise.
1303         (disable_randomization): Likewise.
1304         (non_stop): Likewise.
1305         (non_stop_1): Likewise.
1306         (observer_mode): Likewise.
1307         (observer_mode_1): Likewise.
1308         (set_observer_mode): Update.
1309         (sched_multi): Change to bool.
1310         * infrun.h (debug_displaced): Likewise.
1311         (sched_multi): Likewise.
1312         (step_stop_if_no_debug): Likewise.
1313         (non_stop): Likewise.
1314         (disable_randomization): Likewise.
1315         * linux-tdep.c (use_coredump_filter): Likewise.
1316         (dump_excluded_mappings): Likewise.
1317         * linux-thread-db.c (auto_load_thread_db): Likewise.
1318         (check_thread_db_on_load): Likewise.
1319         * main.c (captured_main_1): Update.
1320         * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
1321         xx2_opt, boolean_opt>: Change to bool.
1322         * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
1323         * maint.c (maintenance_profile_p): Likewise.
1324         (per_command_time): Likewise.
1325         (per_command_space): Likewise.
1326         (per_command_symtab): Likewise.
1327         * memattr.c (inaccessible_by_default): Likewise.
1328         * mi/mi-main.c (mi_async): Likewise.
1329         (mi_async_1): Likewise.
1330         * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
1331         * nat/fork-inferior.h (startup_with_shell): Likewise.
1332         * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
1333         * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
1334         * nios2-tdep.c (nios2_debug): Likewise.
1335         * or1k-tdep.c (or1k_debug): Likewise.
1336         * parse.c (parser_debug): Likewise.
1337         * parser-defs.h (parser_debug): Likewise.
1338         * printcmd.c (print_symbol_filename): Likewise.
1339         * proc-api.c (procfs_trace): Likewise.
1340         * python/py-auto-load.c (auto_load_python_scripts): Likewise.
1341         * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
1342         (set_parameter_value): Update.
1343         (add_setshow_generic): Update.
1344         * python/py-value.c (copy_py_bool_obj): Change argument from int*
1345         to bool*.
1346         * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
1347         int*.
1348         * ravenscar-thread.c (ravenscar_task_support): Change to bool.
1349         * record-btrace.c (record_btrace_target::store_registers): Update.
1350         * record-full.c (record_full_memory_query): Change to bool.
1351         (record_full_stop_at_limit): Likewise.
1352         * record-full.h (record_full_memory_query): Likewise.
1353         * remote-notif.c (notif_debug): Likewise.
1354         * remote-notif.h (notif_debug): Likewise.
1355         * remote.c (use_range_stepping): Likewise.
1356         (interrupt_on_connect): Likewise.
1357         (remote_break): Likewise.
1358         * ser-tcp.c (tcp_auto_retry): Likewise.
1359         * ser-unix.c (serial_hwflow): Likewise.
1360         * skip.c (debug_skip): Likewise.
1361         * solib-aix.c (solib_aix_debug): Likewise.
1362         * spu-tdep.c (spu_stop_on_load_p): Likewise.
1363         (spu_auto_flush_cache_p): Likewise.
1364         * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
1365         Likewise.
1366         (struct info_print_options) <quiet>: Likewise.
1367         * symfile-debug.c (debug_symfile): Likewise.
1368         * symfile.c (auto_solib_add): Likewise.
1369         (separate_debug_file_debug): Likewise.
1370         * symfile.h (auto_solib_add): Likewise.
1371         (separate_debug_file_debug): Likewise.
1372         * symtab.c (basenames_may_differ): Likewise.
1373         (struct filename_partial_match_opts) <dirname, basename>: Likewise.
1374         (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
1375         (struct info_types_options) <quiet>: Likewise.
1376         * symtab.h (demangle): Likewise.
1377         (basenames_may_differ): Likewise.
1378         * target-dcache.c (stack_cache_enabled_1): Likewise.
1379         (code_cache_enabled_1): Likewise.
1380         * target.c (trust_readonly): Likewise.
1381         (may_write_registers): Likewise.
1382         (may_write_memory): Likewise.
1383         (may_insert_breakpoints): Likewise.
1384         (may_insert_tracepoints): Likewise.
1385         (may_insert_fast_tracepoints): Likewise.
1386         (may_stop): Likewise.
1387         (auto_connect_native_target): Likewise.
1388         (target_stop_and_wait): Update.
1389         (target_async_permitted): Change to bool.
1390         (target_async_permitted_1): Likewise.
1391         (may_write_registers_1): Likewise.
1392         (may_write_memory_1): Likewise.
1393         (may_insert_breakpoints_1): Likewise.
1394         (may_insert_tracepoints_1): Likewise.
1395         (may_insert_fast_tracepoints_1): Likewise.
1396         (may_stop_1): Likewise.
1397         * target.h (target_async_permitted): Likewise.
1398         (may_write_registers): Likewise.
1399         (may_write_memory): Likewise.
1400         (may_insert_breakpoints): Likewise.
1401         (may_insert_tracepoints): Likewise.
1402         (may_insert_fast_tracepoints): Likewise.
1403         (may_stop): Likewise.
1404         * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
1405         (make_thread_apply_all_options_def_group): Change argument from int*
1406         to bool*.
1407         (thread_apply_all_command): Update.
1408         (print_thread_events): Change to bool.
1409         * top.c (confirm): Likewise.
1410         (command_editing_p): Likewise.
1411         (history_expansion_p): Likewise.
1412         (write_history_p): Likewise.
1413         (info_verbose): Likewise.
1414         * top.h (confirm): Likewise.
1415         (history_expansion_p): Likewise.
1416         * tracepoint.c (disconnected_tracing): Likewise.
1417         (circular_trace_buffer): Likewise.
1418         * typeprint.c (print_methods): Likewise.
1419         (print_typedefs): Likewise.
1420         * utils.c (debug_timestamp): Likewise.
1421         (sevenbit_strings): Likewise.
1422         (pagination_enabled): Likewise.
1423         * utils.h (sevenbit_strings): Likewise.
1424         (pagination_enabled): Likewise.
1425         * valops.c (overload_resolution): Likewise.
1426         * valprint.h (struct value_print_options) <prettyformat_arrays,
1427         prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
1428         stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
1429         pascal_static_field_print, raw, summary, symbol_print, finish_print>:
1430         Likewise.
1431         * windows-nat.c (new_console): Likewise.
1432         (cygwin_exceptions): Likewise.
1433         (new_group): Likewise.
1434         (debug_exec): Likewise.
1435         (debug_events): Likewise.
1436         (debug_memory): Likewise.
1437         (debug_exceptions): Likewise.
1438         (useshell): Likewise.
1439         * windows-tdep.c (maint_display_all_tib): Likewise.
1440         * xml-support.c (debug_xml): Likewise.
1441
1442 2019-09-17  Mike Gulick  <[email protected]>
1443
1444         * source.c (prepare_path_for_appending): New function.
1445         (openp): Make use of new function.
1446         (find_and_open_source): Search for the compilation directory and
1447         source file as a relative path beneath the directory search path.
1448
1449 2019-09-17  Andrew Burgess  <[email protected]>
1450
1451         * source-cache.c (source_cache::get_line_charpos): Catch
1452         exceptions and return false, this matches the behaviour documented
1453         in the header file.
1454
1455 2019-09-17  Joel Brobecker  <[email protected]>
1456
1457         * ada-tasks.c (info_task): Remove quoting of the task's name.
1458
1459 2019-09-16  Christian Biesinger  <[email protected]>
1460
1461         * symfile.c (auto_solib_add): Replace comment with a reference
1462         to the header file.
1463
1464 2019-09-14  Christian Biesinger  <[email protected]>
1465
1466         * NEWS: Mention that gdb can now be compiled with Python 3
1467         on Windows.
1468
1469 2019-09-12  Andrew Burgess  <[email protected]>
1470
1471         * maint.c (maint_print_section_data::maint_print_section_data):
1472         Force use of 'float log10 (float)' by casting the argument to
1473         float.
1474
1475 2019-09-12  Andrew Burgess  <[email protected]>
1476
1477         * maint.c: Add 'cmath' include.
1478         (struct maint_print_section_data): New structure.
1479         (print_section_index): New function.
1480         (print_bfd_section_info): Add header comment, small whitespace
1481         cleanup, and update to call new print_section_index function.
1482         (print_objfile_section_info): Likewise.
1483         (maint_obj_section_from_bfd_section): New function.
1484         (print_bfd_section_info_maybe_relocated): New function.
1485         (maintenance_info_sections): Add header comment, always use
1486         bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
1487
1488 2019-09-12  Andrew Burgess  <[email protected]>
1489
1490         * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
1491         inner scope, add check that the objfile has psymtabs before
1492         checking psymtabs_addrmap.
1493         * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
1494
1495 2019-09-12  Philippe Waroquiers  <[email protected]>
1496
1497         * NEWS: Announce that Ada task names are now shown at more places,
1498         and between quotes (except in info task output).
1499         * gdb/ada-tasks.c (task_to_str): New function.
1500         (display_current_task_id): Call task_to_str.
1501         (task_command_1): Likewise.
1502         (print_ada_task_info): In non-mi mode, Properly align headers and data
1503         when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
1504
1505 2019-09-12  Rainer Orth  <[email protected]>
1506
1507         * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
1508         prstatus.pr_lwp.pr_info instead of making it up.
1509
1510 2019-09-11  Christian Biesinger  <[email protected]>
1511
1512         * auto-load.c (auto_load_expand_dir_vars): Update.
1513         * defs.h (gdb_datadir): Change to std::string.
1514         (python_libdir): Likewise.
1515         (relocate_gdb_directory): Change return type to std::string.
1516         * guile/guile.c (gdbscm_data_directory): Update.
1517         (initialize_scheme_side): Update.
1518         * jit.c (jit_reader_dir): Change to std::string.
1519         (jit_reader_load_command): Update.
1520         * main.c (gdb_datadir): Change to std::string.
1521         (python_libdir): Likewise.
1522         (set_gdb_data_directory): Update.
1523         (relocate_path): Change to return std::string.
1524         (relocate_gdb_directory): Change to return std::string.
1525         (relocate_gdbinit_path_maybe_in_datadir): Update.
1526         (captured_main_1): Update.
1527         * python/python.c (do_start_initialization): Update.
1528         * top.c (show_gdb_datadir): Update.
1529         * xml-syscall.c (xml_init_syscalls_info): Update.
1530         (init_syscalls_info): Update.
1531
1532 2019-09-11  Christian Biesinger  <[email protected]>
1533
1534         * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
1535         out of get_init_files.
1536         (get_init_files): Update.
1537
1538 2019-09-11  Christian Biesinger  <[email protected]>
1539
1540         * main.c (get_init_files): Change to use std::string.
1541         (captured_main_1): Update.
1542         (print_gdb_help): Update.
1543
1544 2019-09-11  Ali Tamur  <[email protected]>
1545
1546         *gdb/target-float.c (host_float_ops<T>::to_longest): Update
1547         implementation.
1548
1549 2019-09-11  Christian Biesinger  <[email protected]>
1550
1551         * dbxread.c (read_dbx_symtab): Update.
1552         * dwarf2read.c (load_partial_dies): Update.
1553         * mdebugread.c (parse_partial_symbols): Update.
1554         (handle_psymbol_enumerators): Update.
1555         * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
1556         * psymtab.c (add_psymbol_to_bcache): Likewise.
1557         (add_psymbol_to_list): Likewise.
1558         * symtab.c (symbol_set_names): Likewise.
1559         * symtab.h (symbol_set_names): Likewise.
1560         * xcoffread.c (scan_xcoff_symtab): Update.
1561
1562 2019-09-11  Tom Tromey  <[email protected]>
1563
1564         * symfile-mem.c (symbol_file_add_from_memory): Use
1565         bfd_set_filename.
1566         * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
1567         * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
1568
1569 2019-09-10  Tom Tromey  <[email protected]>
1570
1571         * dwarf-index-write.c (write_psymbols): Extend error message.
1572         (debug_names::insert): Add Ada code.
1573         (debug_names::write_psymbols): Remove Ada check.
1574         (debug_names) <m_string_obstack>: New member.
1575         * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
1576         (gdb_index_symbol_name_matcher::matches): Remove.
1577         (mapped_index_base::find_name_components_bounds): Add "lang"
1578         parameter.
1579         (mapped_index_base::build_name_components): Also split names
1580         according to Ada syntax.
1581         (dw2_expand_symtabs_matching_symbol): Loop over languages.  Change
1582         type of "match_callback".
1583         (check_match, check_find_bounds_finds)
1584         (dw2_expand_symtabs_matching): Update.
1585         (dw2_debug_names_iterator): Add new constructor.
1586         (dw2_debug_names_map_matching_symbols): New function.
1587         (dw2_debug_names_expand_symtabs_matching): Update.
1588         (dwarf2_debug_names_functions): Use
1589         dw2_debug_names_map_matching_symbols.
1590
1591 2019-09-10  Tom Tromey  <[email protected]>
1592
1593         * dwarf2read.c (dw2_get_file_names_reader): Add the
1594         CU's file name to the results.
1595
1596 2019-09-10  Tom Tromey  <[email protected]>
1597
1598         * ada-lang.c (add_nonlocal_symbols): Combine calls to
1599         map_matching_symbols.  Update.
1600         * dwarf2read.c (dw2_map_matching_symbols): Update.
1601         * psymtab.c (match_partial_symbol): Change type; update.
1602         (psym_map_matching_symbols): Likewise.
1603         * symfile-debug.c (debug_qf_map_matching_symbols): Change
1604         type; update.
1605         * symfile.h (struct quick_symbol_functions)
1606         <map_matching_symbols>: Change "name" to be a lookup_name_info.
1607         Remove "match".
1608
1609 2019-09-10  Tom Tromey  <[email protected]>
1610
1611         * psymtab.c (map_block): Remove.
1612         (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
1613         * symtab.c (iterate_over_symbols_terminated): New function.
1614         * symtab.c (iterate_over_symbols_terminated): Declare.
1615
1616 2019-09-10  Tom Tromey  <[email protected]>
1617
1618         * ada-lang.c (ada_iterate_over_symbols): Return bool.
1619         * language.h (struct language_defn) <la_iterate_over_symbols>:
1620         Return bool.
1621         * symtab.c (iterate_over_symbols): Return bool.
1622         * symtab.h (iterate_over_symbols): Return bool.
1623
1624 2019-09-10  Tom Tromey  <[email protected]>
1625
1626         * ada-lang.c (aux_add_nonlocal_symbols): Change type.
1627         (add_nonlocal_symbols): Update.
1628         * dwarf2read.c (dw2_map_matching_symbols): Change type.
1629         * psymtab.c (map_block, psym_map_matching_symbols): Change type.
1630         * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
1631         * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
1632         Change type of "callback".  Remove "data".
1633
1634
1635 2019-09-09  Ali Tamur  <[email protected]>
1636
1637         * dwarf2read.c (comp_unit_head): Update comment.                     
1638         (dwarf2_dwo_name): New function declaration.                             
1639         (dwarf_unit_type_name): New function declaration.                        
1640         (read_comp_unit_head): Add support for new compilation units,            
1641         DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.    
1642         Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id         
1643         (currently named as "signature") in their header. Also clarify error     
1644         messages.                                                                
1645         (lookup_dwo_id): New function. Returns the dwo id of the given           
1646         compile unit.                                                            
1647         (lookup_dwo_unit): Use the new lookup_dwo_id function.                   
1648         (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id 
1649         functions.                                                               
1650         (create_dwo_cu_reader): Use the added lookup_dwo_id function.            
1651         (dwarf2_dwo_name): Get the dwo name if present.                          
1652         (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic   
1653         purposes.
1654
1655 2019-09-09  Tom Tromey  <[email protected]>
1656
1657         * tui/tui-win.c (tui_all_windows_info): Use ui_out.
1658
1659 2019-09-09  Philippe Waroquiers  <[email protected]>
1660
1661         * python/python.c (do_start_initialization): Make progname_copy static,
1662         to avoid a leak report.
1663
1664 2019-09-08  Tom Tromey  <[email protected]>
1665
1666         * tui/tui-wingeneral.c (box_win): Truncate long window titles.
1667
1668 2019-09-07  Simon Marchi  <[email protected]>
1669
1670         * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
1671         Change type to gdb::optional<block_enum>.
1672         (dw2_symtab_iter_init): Change block_index parameter type
1673         to gdb::optional<block_enum>.
1674         (dw2_lookup_symbol): Change block_index parameter
1675         type to block_enum.c
1676         (dw2_debug_names_lookup_symbol): Likewise.
1677         * psymtab.c (psym_lookup_symbol): Likewise.
1678         * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
1679         * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
1680         Likewise.
1681
1682 2019-09-06  Christian Biesinger  <[email protected]>
1683
1684         * defs.h (relocate_gdb_directory): Change int to bool in
1685         signature and rename flag to relocatable.
1686         * main.c (relocate_path): Likewise.
1687         (relocate_gdb_directory): Likewise.
1688
1689 2019-09-06  Alan Modra  <[email protected]>
1690
1691         * coffread.c (coff_symfile_read): Constify filename variable.
1692         * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
1693         (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
1694         * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
1695         * solib.c (reload_shared_libraries_1): Likewise.
1696         * symfile.c (reread_symbols): Likewise.
1697         * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
1698         * solib-darwin.c (darwin_bfd_open): Likewise.
1699         * symfile-mem.c (symbol_file_add_from_memory): Likewise.
1700
1701 2019-09-03  Andrew Burgess  <[email protected]>
1702
1703         * psymtab.c (print_partial_symbols): Handle missing domain_enum
1704         values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
1705
1706 2019-09-03  Tom Tromey  <[email protected]>
1707
1708         * ada-valprint.c (ada_val_print_num): Don't recurse for range
1709         types.
1710         (has_negatives): Unbias a range type bound.
1711         * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
1712         * gdbtypes.c (operator==): Handle new field.
1713         (create_range_type): Add "bias" parameter.
1714         (create_static_range_type, resolve_dynamic_range): Update.
1715         * gdbtypes.h (struct range_bounds) <bias>: New member.
1716         (create_range_type): Add bias parameter.
1717         * printcmd.c (print_scalar_formatted): Unbias range types.
1718         * value.c (unpack_long): Unbias range types.
1719         (pack_long): Bias range types.
1720
1721 2019-09-02  Alan Hayward  <[email protected]>
1722
1723         * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
1724         probe arguments.
1725
1726 2019-09-02  Alan Hayward  <[email protected]>
1727
1728         * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
1729         * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
1730         * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
1731         (compile_probe_arg): Likewise.
1732         * probe.h (get_argument_count): Likewise.
1733         * solib-svr4.c (solib_event_probe_action): Likewise.
1734         * stap-probe.c (stap_probe::get_argument_count): Likewise.
1735
1736 2019-09-02  Alan Hayward  <[email protected]>
1737
1738         * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
1739         code to here...
1740         (svr4_create_solib_event_breakpoints): ...from here.
1741
1742 2019-08-30  Sergio Durigan Junior  <[email protected]>
1743
1744         * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
1745         suffix from warning message.
1746
1747 2019-08-30  Tom Tromey  <[email protected]>
1748
1749         * tui/tui-winsource.h (struct tui_source_window_base)
1750         <refresh_all>: Don't declare.
1751         * tui/tui-winsource.c (tui_source_window_base::refresh_all):
1752         Remove.
1753         * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
1754         tui_show_locator_content.
1755         * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
1756         declare.
1757         * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
1758         * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
1759         declare.
1760
1761 2019-08-30  Tom Tromey  <[email protected]>
1762
1763         * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
1764
1765 2019-08-30  Tom Tromey  <[email protected]>
1766
1767         * tui/tui-stack.c (_initialize_tui_stack): Move later.
1768         Remove unnecessary forward declarations.
1769
1770 2019-08-30  Tom Tromey  <[email protected]>
1771
1772         * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
1773         rerender.
1774         (tui_update_locator_fullname, tui_show_frame_info): Don't call
1775         tui_show_locator_content.
1776
1777 2019-08-30  Tom Tromey  <[email protected]>
1778
1779         * tui/tui-stack.c (tui_show_locator_content): Move lower.  Rewrite.
1780         (tui_locator_window::rerender): Rewrite using body of previous
1781         tui_show_locator_content.
1782
1783 2019-08-30  Tom Tromey  <[email protected]>
1784
1785         * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
1786         set_locator_fullname>: New methods.
1787         * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
1788         Rename from tui_set_locator_fullname.
1789         (tui_locator_window::set_locator_info): Rename from
1790         tui_set_locator_info.  Return bool.
1791         (tui_update_locator_fullname, tui_show_frame_info): Update.
1792
1793 2019-08-30  Tom Tromey  <[email protected]>
1794
1795         * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
1796
1797 2019-08-30  Tom Tromey  <[email protected]>
1798
1799         * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
1800         call touchwin.
1801
1802 2019-08-30  Tom Tromey  <[email protected]>
1803
1804         * tui/tui-wingeneral.c (box_win): Assume win_info and
1805         win_info->handle cannot be NULL.
1806
1807 2019-08-30  Tom Tromey  <[email protected]>
1808
1809         * tui/tui-regs.h (struct tui_data_item_window) <rerender,
1810         refresh_window>: Declare.
1811         * tui/tui-regs.c (tui_data_window::display_registers_from): Call
1812         resize.
1813         (tui_data_item_window::rerender): Rename from
1814         tui_display_register.
1815         (tui_data_item_window::refresh_window): New method.
1816         * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
1817         no-op.
1818
1819 2019-08-30  Tom Tromey  <[email protected]>
1820
1821         * tui/tui-regs.h (struct tui_data_window) <regs_content,
1822         regs_column_count, current_group>: Move later.  Now private.
1823         <get_current_group>: New method.
1824         * tui/tui-regs.c (tui_reg_command): Update.
1825         * tui/tui-layout.c (tui_set_layout): Update.
1826
1827 2019-08-30  Tom Tromey  <[email protected]>
1828
1829         * tui/tui-regs.c (tui_data_window::display_registers_from_line)
1830         (tui_data_window::rerender): Don't call
1831         check_and_display_highlight_if_needed.
1832         (tui_data_window::refresh_all): Remove call to
1833         erase_data_content.
1834
1835 2019-08-30  Tom Tromey  <[email protected]>
1836
1837         * tui/tui-regs.c (tui_data_window::last_regs_line_no)
1838         (tui_data_window::display_registers_from)
1839         (tui_data_window::display_reg_element_at_line)
1840         (tui_data_window::display_registers_from_line): Remove checks of
1841         "empty".
1842
1843 2019-08-30  Tom Tromey  <[email protected]>
1844
1845         * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
1846         Don't declare.
1847         * tui/tui-regs.c (tui_data_window::show_registers): Call
1848         rerender.
1849         (tui_data_window::rerender): Rename from display_all_data.
1850         (tui_data_window::rerender): Remove old implementation.
1851
1852 2019-08-30  Tom Tromey  <[email protected]>
1853
1854         * tui/tui-regs.c (tui_data_window::display_all_data): Change
1855         text.
1856         * tui/tui-data.h (NO_DATA_STRING): Remove define.
1857
1858 2019-08-29  Bernhard Wodok  <[email protected]>
1859             Sergio Durigan Junior  <[email protected]>
1860
1861         PR win32/24284
1862         * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
1863
1864 2019-08-28  Andrew Burgess  <[email protected]>
1865
1866         * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
1867         when searching for types.
1868
1869 2019-08-28  Andrew Burgess  <[email protected]>
1870
1871         * f-lang.c (f_language_defn): Use f_print_typedef.
1872         * f-lang.h (f_print_typedef): Declare.
1873         * f-typeprint.c (f_print_typedef): Define.
1874
1875 2019-08-27  Christian Biesinger  <[email protected]>
1876
1877         * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
1878
1879 2019-08-27  Andrew Burgess  <[email protected]>
1880
1881         * cli/cli-utils.c (info_print_options_defs): Delete.
1882         (make_info_print_options_def_group): Delete.
1883         (extract_info_print_options): Delete.
1884         (info_print_command_completer): Delete.
1885         (info_print_args_help): Add extra parameter, and optionally
1886         include text about -n flag.
1887         * cli/cli-utils.h (struct info_print_options): Delete.
1888         (extract_info_print_options): Delete declaration.
1889         (info_print_command_completer): Delete declaration.
1890         (info_print_args_help): Add extra parameter, extend header
1891         comment.
1892         * python/python.c (gdbpy_rbreak): Pass additional parameter to
1893         search_symbols.
1894         * stack.c (struct info_print_options): New type.
1895         (info_print_options_defs): New file scoped variable.
1896         (make_info_print_options_def_group): New static function.
1897         (info_print_command_completer): New static function.
1898         (info_locals_command): Update to use new local functions.
1899         (info_args_command): Likewise.
1900         (_initialize_stack): Add extra parameter to calls to
1901         info_print_args_help.
1902         * symtab.c (search_symbols): Add extra parameter, use this to
1903         possibly excluse non-debug symbols.
1904         (symtab_symbol_info): Add extra parameter, which is passed on to
1905         search_symbols.
1906         (struct info_print_options): New type.
1907         (info_print_options_defs): New file scoped variable.
1908         (make_info_print_options_def_group): New static function.
1909         (info_print_command_completer): New static function.
1910         (info_variables_command): Update to use local functions, and pass
1911         extra parameter through to symtab_symbol_info.
1912         (info_functions_command): Likewise.
1913         (info_types_command): Pass additional argument through to
1914         symtab_symbol_info.
1915         (rbreak_command): Pass extra argument to search_symbols.
1916         (_initialize_symtab): Add extra arguments for calls to
1917         info_print_args_help, and update help text for 'info variables',
1918         'whereis', and 'info functions' commands.
1919         * symtab.h (search_symbols): Add extra argument to declaration.
1920         * NEWS: Mention new flags.
1921
1922 2019-08-26  Christian Biesinger  <[email protected]>
1923
1924         * symtab.c (lookup_static_symbol): Call the new function (and move
1925         it down to be next to lookup_global_symbol).
1926         (struct global_sym_lookup_data): Add block_enum member and rename to...
1927         (struct global_or_static_sym_lookup_data): ...this.
1928         (lookup_symbol_global_iterator_cb): Pass block_index instead of
1929         GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
1930         (lookup_symbol_global_or_static_iterator_cb): ...this.
1931         (lookup_global_or_static_symbol): New function.
1932         (lookup_global_symbol): Call new function.
1933
1934 2019-08-26  Tom de Vries  <[email protected]>
1935
1936         PR c++/24852
1937         * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
1938         when pc_probe.prob == NULL.
1939
1940 2019-08-25  Simon Marchi  <[email protected]>
1941
1942         * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
1943         variable symbol_linkage to symbol_linkage_.
1944
1945 2019-08-25  Simon Marchi  <[email protected]>
1946
1947         * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
1948         represent whether the symbol is static, dynamic, or we don't
1949         know.
1950
1951 2019-08-25  Yoshinori Sato <[email protected]>
1952
1953         * gdb/rx-tdep.c (rx_register_names): New.
1954         (rx_register_name): Delete.
1955         (rx_psw_type): Delete.
1956         (rx_fpsw_type): Delete.
1957         (rx_register_type): Delete.
1958         (rx_gdbarch_init): Convert target-descriptions.
1959         (_initialize_rx_tdep): Add initialize_tdesc_rx.
1960         * gdb/features/Makefile: Add rx.xml.
1961         * gdb/features/rx.xml: New.
1962         * gdb/features/rx.c: Generated.
1963         * gdb/NEWS: Mention target description support.
1964
1965 2019-08-22  Christian Biesinger  <[email protected]>
1966
1967         * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
1968         *slot_ptr.
1969
1970 2019-08-23  Sergio Durigan Junior  <[email protected]>
1971
1972         * configure.ac: Don't check for 'dlfcn.h' (moved to
1973         gdbsupport/common.m4).
1974         * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
1975         'gdbsupport/'.
1976         (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
1977         * compile/compile-c-support.c: Include
1978         'gdbsupport/gdb-dlfcn.h'.
1979         * gdbsupport/common.m4: Check for 'dlfcn.h'.
1980         * gdb-dlfcn.c: Move to...
1981         * gdbsupport/gdb-dlfcn.c: ... here.
1982         * gdb-dlfcn.h: Move to...
1983         * gdbsupport/gdb-dlfcn.h: ... here.
1984
1985 2019-08-23  Sandra Loosemore  <[email protected]>
1986
1987         * nios2-tdep.c (struct reg_value): Improve comments.  Make
1988         the offset field signed.
1989
1990 2019-08-22  Christian Biesinger  <[email protected]>
1991
1992         * python/lib/gdb/__init__.py (_execute_file): New function.
1993         * python/python.c (python_run_simple_file): Call gdb._execute_file
1994         on Windows.
1995
1996 2019-08-22  Andrew Burgess  <[email protected]>
1997
1998         * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
1999         all uses as this was never set to anything but a zero value.
2000
2001 2019-08-21  Bogdan Harjoc  <[email protected]>
2002
2003         * cli/cli-cmds.c (with_command_1): Error out if no arguments.
2004
2005 2019-08-21  Christian Biesinger  <[email protected]>
2006
2007         * tui/tui-data.h (tui_gen_win_info): Add an =default
2008         move constructor, required by some GCC versions.
2009
2010 2019-08-21  Jinke Fan  <[email protected]>
2011
2012         * go32-nat.c (go32_sysinfo): Add hygon_p.
2013
2014 2019-08-20  Tom Tromey  <[email protected]>
2015
2016         * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
2017         line_from_reg_element_no, first_reg_element_no_inline,
2018         display_all_data, delete_data_content_windows,
2019         erase_data_content>: Now private.
2020
2021 2019-08-20  Tom Tromey  <[email protected]>
2022
2023         * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
2024         (tui_unhighlight_win, tui_highlight_win)
2025         (tui_win_info::make_window): Update.
2026         * tui/tui-data.h (HILITE, NO_HILITE): Remove.
2027
2028 2019-08-20  Tom Tromey  <[email protected]>
2029
2030         * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
2031         (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
2032         (MAX_PID_WIDTH): Move to tui-stack.c.
2033         * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
2034         (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
2035         (MAX_PID_WIDTH): Move from tui-data.h.
2036
2037 2019-08-20  Tom Tromey  <[email protected]>
2038
2039         * tui/tui-wingeneral.h (tui_make_window): Don't declare.
2040         * tui/tui-wingeneral.c (box_win): Change type of win_info.
2041         (box_win): Update.
2042         (tui_gen_win_info::make_window): Rename from tui_make_window.
2043         (tui_win_info::make_window): New method.
2044         (tui_gen_win_info::make_visible): Update.
2045         * tui/tui-source.c (tui_source_window::set_contents): Update.
2046         * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2047         (tui_data_window::display_registers_from): Update.
2048         * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2049         * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
2050         Declare.
2051         <can_box>: Remove.
2052         <title>: Remove.
2053         (struct tui_win_info) <make_window>: Declare.
2054         <can_box>: Now virtual.
2055         <title>: New member.
2056         * tui/tui-data.c (~tui_gen_win_info): Don't free title.
2057         * tui/tui-command.c (tui_cmd_window::resize): Update.
2058
2059 2019-08-20  Tom Tromey  <[email protected]>
2060
2061         * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
2062         * tui/tui-regs.c (tui_data_window::show_registers): Update.
2063         (tui_data_window::check_register_values): Update.
2064
2065 2019-08-20  Tom Tromey  <[email protected]>
2066
2067         * tui/tui-regs.h (struct tui_data_window): Use
2068         DISABLE_COPY_AND_ASSIGN.
2069         <regs_content>: Change type, removing unique_ptr.
2070         <tui_data_window>: Add move constructor.
2071         * tui/tui-regs.c (tui_data_window::show_registers)
2072         (tui_data_window::show_register_group)
2073         (tui_data_window::display_registers_from)
2074         (tui_data_window::display_registers_from)
2075         (tui_data_window::first_data_item_displayed)
2076         (tui_data_window::delete_data_content_windows)
2077         (tui_data_window::rerender, tui_data_window::refresh_window)
2078         (tui_data_window::check_register_values): Update.
2079
2080 2019-08-20  Tom Tromey  <[email protected]>
2081
2082         * tui/tui-regs.h (struct tui_data_window) <show_registers,
2083         show_register_group>: Declare.
2084         (tui_show_register_group): Don't declare.
2085         * tui/tui-regs.c (tui_data_window::show_registers): Rename from
2086         tui_show_registers.
2087         (tui_data_window::show_register_group): Rename from
2088         tui_show_register_group.
2089         (tui_data_window::check_register_values, tui_reg_command):
2090         Update.
2091         * tui/tui-layout.c (tui_set_layout): Update.
2092
2093 2019-08-20  Tom Tromey  <[email protected]>
2094
2095         * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
2096         Declare.
2097         (tui_check_register_values): Don't declare.
2098         * tui/tui-regs.c (tui_data_window::check_register_values): Rename
2099         from tui_check_register_values.
2100         * tui/tui-hooks.c (tui_register_changed): Update.
2101
2102 2019-08-20  Tom Tromey  <[email protected]>
2103
2104         * tui/tui-regs.c (tui_reg_layout): Move later.
2105         (tui_show_registers): Don't enable TUI mode or change layout.
2106
2107 2019-08-20  Tom Tromey  <[email protected]>
2108
2109         * tui/tui-regs.h (struct tui_data_item_window)
2110         <~tui_data_item_window>: Remove.
2111         <content>: Now a unique_xmalloc_ptr.
2112         * tui/tui-regs.c (tui_register_format): Return a
2113         unique_xmalloc_ptr.
2114         (tui_get_register): Update.
2115         (~tui_data_item_window): Remove.
2116         (tui_data_window::display_registers_from, tui_display_register):
2117         Update.
2118         * tui/tui-io.h (tui_expand_tabs): Update.
2119         * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
2120         Remove "col" parameter.
2121
2122 2019-08-20  Tom Tromey  <[email protected]>
2123
2124         * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
2125         field.
2126         * tui/tui-regs.c (~tui_data_item_window): Update.
2127
2128 2019-08-20  Tom Tromey  <[email protected]>
2129
2130         * tui/tui-regs.c (tui_register_format, tui_get_register): Move
2131         earlier.
2132
2133 2019-08-20  Tom Tromey  <[email protected]>
2134
2135         * tui/tui-regs.c (tui_reg_command): Remove NULL check.
2136
2137 2019-08-20  Tom Tromey  <[email protected]>
2138
2139         * tui/tui-source.h (struct tui_source_window): Update.
2140         * tui/tui-regs.c (tui_show_registers): Update.
2141         * tui/tui-disasm.h (struct tui_disasm_window): Update.
2142         * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
2143         (NO_REGS_STRING): Remove defines.
2144
2145 2019-08-20  Conrad Meyer  <[email protected]>
2146
2147         * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
2148         unnecessary thread walk if remote doesn't support the packet.
2149
2150 2019-08-19  Tom Tromey  <[email protected]>
2151
2152         * python/py-value.c (value_has_field): Fix indentation.
2153
2154 2019-08-19  Tom Tromey  <[email protected]>
2155
2156         * printcmd.c (do_one_display, info_display_command): Update.
2157         * block.h (contained_in): Return bool.  Add allow_nested
2158         parameter.
2159         * block.c (contained_in): Return bool.  Add allow_nested
2160         parameter.
2161
2162 2019-08-19  Tom Tromey  <[email protected]>
2163
2164         * configure: Rebuild.
2165         * configure.ac: Disallow the combination of -static-libstdc++ and
2166         source highlight.
2167         * source-cache.c (get_language_name): Handle rust.
2168         (source_cache::get_source_lines): Ignore highlighting exceptions.
2169
2170 2019-08-16  Tom Tromey  <[email protected]>
2171
2172         * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
2173         * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
2174         (struct tui_source_window_base) <make_visible, refresh_window,
2175         resize>: Remove methods.
2176         <execution_info>: Remove field.
2177         * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
2178         (tui_show_source_line, tui_source_window_base)
2179         (~tui_source_window_base): Update.
2180         (tui_source_window_base::resize)
2181         (tui_source_window_base::make_visible)
2182         (tui_source_window_base::refresh_window): Remove.
2183         (tui_source_window_base::update_exec_info): Update.
2184         * tui/tui-source.c (tui_source_window::set_contents): Update.
2185         * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2186
2187 2019-08-16  Tom Tromey  <[email protected]>
2188
2189         * tui/tui-hooks.c (tui_remove_hooks): Don't set
2190         deprecated_query_hook.
2191
2192 2019-08-16  Tom Tromey  <[email protected]>
2193
2194         * tui/tui-winsource.c (tui_update_source_windows_with_addr)
2195         (tui_update_source_windows_with_line): Update.
2196         * tui/tui-source.h (struct tui_source_window)
2197         <show_symtab_source>: Declare.
2198         (tui_show_symtab_source): Don't declare.
2199         * tui/tui-source.c (tui_show_symtab_source): Rename from
2200         tui_show_symtab_source.
2201
2202 2019-08-16  Tom Tromey  <[email protected]>
2203
2204         * tui/tui-winsource.h (struct tui_source_window_base)
2205         <set_contents>: Declare.
2206         * tui/tui-winsource.c
2207         (tui_source_window_base::update_source_window_as_is): Update.
2208         * tui/tui-source.h (struct tui_source_window) <set_contents>:
2209         Declare.
2210         (tui_set_source_content): Don't declare.
2211         * tui/tui-source.c (tui_source_window::set_contents): Rename from
2212         tui_set_source_content.
2213         * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
2214         Declare.
2215         (tui_set_disassem_content): Don't declare.
2216         * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
2217         tui_set_disassem_content.
2218
2219 2019-08-16  Tom Tromey  <[email protected]>
2220
2221         * tui/tui-winsource.h (struct tui_source_window_base)
2222         <update_breakpoint_info>: Declare.
2223         (tui_update_breakpoint_info): Don't declare.
2224         * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
2225         (tui_update_all_breakpoint_info): Update.
2226         (tui_source_window_base::update_breakpoint_info): Rename from
2227         tui_update_breakpoint_info.
2228         (tui_source_window_base::update_exec_info): Update.
2229
2230 2019-08-16  Tom Tromey  <[email protected]>
2231
2232         * tui/tui-winsource.h (struct tui_source_window_base)
2233         <update_source_window>: Declare.
2234         (tui_update_source_window): Don't declare.
2235         * tui/tui-winsource.c
2236         (tui_source_window_base::update_source_window): Rename from
2237         tui_update_source_window.
2238         (tui_source_window_base::rerender): Update.
2239         * tui/tui-source.c (tui_source_window::maybe_update): Update.
2240         * tui/tui-disasm.c (tui_show_disassem)
2241         (tui_show_disassem_and_update_source)
2242         (tui_disasm_window::maybe_update): Update.
2243
2244 2019-08-16  Tom Tromey  <[email protected]>
2245
2246         * tui/tui-winsource.h (struct tui_source_window_base)
2247         <update_source_window_as_is>: Declare.
2248         (tui_update_source_window_as_is): Don't declare.
2249         * tui/tui-winsource.c (tui_update_source_window): Update
2250         (tui_source_window_base::update_source_window_as_is): Rename from
2251         tui_update_source_window_as_is.
2252         (tui_source_window_base::refill): Update.
2253         * tui/tui-source.c (tui_show_symtab_source): Update.
2254         * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
2255         Update.
2256
2257 2019-08-16  Tom Tromey  <[email protected]>
2258
2259         * tui/tui-winsource.h (tui_update_source_window)
2260         (tui_update_source_window_as_is): Remove "noerror" parameter.
2261         * tui/tui-winsource.c (tui_update_source_window)
2262         (tui_update_source_window_as_is): Remove "noerror" parameter.
2263         (tui_update_source_windows_with_addr)
2264         (tui_update_source_windows_with_line)
2265         (tui_source_window_base::rerender)
2266         (tui_source_window_base::refill): Update.
2267         * tui/tui-source.h (tui_set_source_content)
2268         (tui_show_symtab_source): Remove "noerror" parameter.
2269         * tui/tui-source.c (tui_set_source_content): Remove "noerror"
2270         parameter.
2271         (tui_show_symtab_source): Likewise.
2272         (tui_source_window::maybe_update): Update.
2273         * tui/tui-disasm.c (tui_show_disassem)
2274         (tui_show_disassem_and_update_source)
2275         (tui_disasm_window::do_scroll_vertical)
2276         (tui_disasm_window::maybe_update): Update.
2277
2278 2019-08-16  Tom Tromey  <[email protected]>
2279
2280         * tui/tui.c (tui_is_window_visible): Update.
2281         * tui/tui-wingeneral.c (tui_make_window)
2282         (tui_gen_win_info::make_visible, tui_refresh_all): Update.
2283         * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
2284         (tui_set_focus_command, tui_all_windows_info, update_tab_width)
2285         (tui_set_win_height_command, parse_scrolling_args): Update.
2286         * tui/tui-source.c (tui_source_window::style_changed): Update.
2287         * tui/tui-regs.c (tui_show_registers)
2288         (tui_data_window::first_data_item_displayed)
2289         (tui_data_window::delete_data_content_windows)
2290         (tui_check_register_values, tui_reg_command): Update.
2291         * tui/tui-disasm.c (tui_show_disassem): Update.
2292         * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
2293         method.
2294         <is_visible>: Remove field.
2295         * tui/tui-data.c (tui_next_win, tui_prev_win)
2296         (tui_delete_invisible_windows): Update.
2297
2298 2019-08-16  Tom Tromey  <[email protected]>
2299
2300         * tui/tui-winsource.h (struct tui_source_window_base)
2301         <m_has_locator>: Remove.
2302         * tui/tui-layout.c (show_source_disasm_command, show_data)
2303         (show_source_or_disasm_and_command): Update.
2304
2305 2019-08-16  Alan Hayward  <[email protected]>
2306
2307         * NEWS (Other MI changes): New subsection.
2308         * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
2309         (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
2310         * arch-utils.c (default_get_pc_address_flags): New function.
2311         * arch-utils.h (default_get_pc_address_flags): New declaration.
2312         * gdbarch.sh: Add get_pc_address_flags.
2313         * gdbarch.c: Regenerate.
2314         * gdbarch.h: Likewise.
2315         * stack.c (print_pc): New function.
2316         (print_frame_info) (print_frame): Call print_pc.
2317
2318 2019-08-16  Tom de Vries  <[email protected]>
2319
2320         * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
2321         print_objfile_section_info.
2322
2323 2019-08-15  Tom Tromey  <[email protected]>
2324
2325         * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
2326         calling update_cmdwin_start_line.
2327         * tui/tui-winsource.h (struct tui_source_window_base)
2328         <do_make_visible_with_new_height, set_new_height>: Don't declare.
2329         <rerender>: Declare.
2330         * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
2331         Call rerender.
2332         (tui_source_window_base::set_new_height): Remove.
2333         (tui_source_window_base::rerender): Rename from
2334         do_make_visible_with_new_height.
2335         * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
2336         resize method.
2337         (tui_win_info::make_invisible_and_set_new_height)
2338         (tui_win_info::make_visible_with_new_height): Remove.
2339         * tui/tui-stack.h (struct tui_locator_window) <rerender>:
2340         Declare.
2341         * tui/tui-stack.c (tui_locator_window::rerender): New method.
2342         * tui/tui-regs.h (struct tui_data_window) <set_new_height,
2343         do_make_visible_with_new_height>: Don't declare.
2344         <rerender>: Declare.
2345         * tui/tui-regs.c (tui_data_window::rerender): Rename from
2346         set_new_height.
2347         (tui_data_window::do_make_visible_with_new_height): Remove.
2348         * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
2349         call tui_show_locator_content.
2350         (tui_gen_win_info::resize): Call rerender.
2351         (show_source_or_disasm_and_command): Don't call
2352         tui_show_locator_content.
2353         * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
2354         method.
2355         (struct tui_win_info) <rerender>: Declare.
2356         <set_new_height, make_invisible_and_set_new_height,
2357         make_visible_with_new_height>: Don't declare.
2358         * tui/tui-data.c (tui_win_list::rerender): New method.
2359         * tui/tui-command.h (struct tui_cmd_window)
2360         <do_make_visible_with_new_height>: Don't declare.
2361         * tui/tui-command.c
2362         (tui_cmd_window::do_make_visible_with_new_height): Remove.
2363
2364 2019-08-15  Tom Tromey  <[email protected]>
2365
2366         * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
2367         * ada-lang.c (ada_enum_name): Likewise.
2368
2369 2019-08-15  Christian Biesinger  <[email protected]>
2370
2371         * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
2372         leading underscore.
2373         (GdbOutputErrorFile): Likewise.
2374         (global scope): Adjust constructor calls to GdbOutput{,Error}File
2375         accordingly.
2376         (execute_unwinders): Rename to have a leading underscore.
2377         (auto_load_packages): Likewise.
2378         (global scope): Adjust call to auto_load_packages accordingly.
2379         (GdbSetPythonDirectory): Likewise.
2380         * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
2381         instead of execute_unwinders.
2382
2383 2019-08-15  Tom Tromey  <[email protected]>
2384
2385         * tui/tui-layout.c (show_layout, show_source_disasm_command)
2386         (show_data): Don't change window visibility.
2387         (tui_gen_win_info::resize): Remove special case for command
2388         window.  Use wresize, when available.
2389         (show_source_or_disasm_and_command): Don't change window
2390         visibility.
2391         * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
2392         <make_visible>: New method.
2393         * tui/tui-command.c (tui_cmd_window::resize): New method.
2394
2395 2019-08-15  Tom Tromey  <[email protected]>
2396
2397         * tui/tui-winsource.h (struct tui_source_window_iterator): New.
2398         (struct tui_source_windows): New.
2399         * tui/tui-winsource.c (tui_display_main): Update.
2400         * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2401         (new_height_ok, parse_scrolling_args): Update.
2402         * tui/tui-layout.c (show_layout, show_data): Update.
2403         * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
2404         (tui_add_to_source_windows): Don't declare.
2405         * tui/tui-data.c (source_windows, tui_source_windows)
2406         (tui_clear_source_windows, tui_add_to_source_windows): Remove.
2407
2408 2019-08-15  Tom Tromey  <[email protected]>
2409
2410         * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
2411         Rename from reset.
2412         * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
2413         * tui/tui-layout.c (show_source_disasm_command, show_data):
2414         Update.
2415         (tui_gen_win_info::resize): Rename.
2416         (show_source_or_disasm_and_command): Update.
2417         * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
2418         reset.
2419
2420 2019-08-15  Tom Tromey  <[email protected]>
2421
2422         * tui/tui-stack.c (tui_initialize_static_data): Remove.
2423         * tui/tui-interp.c (tui_interp::init): Don't call
2424         tui_initialize_static_data.
2425         * tui/tui-data.h (tui_initialize_static_data): Don't declare.
2426
2427 2019-08-15  Tom Tromey  <[email protected]>
2428
2429         * tui/tui-layout.c (tui_default_win_viewport_height): Don't
2430         examine tui_win_list.
2431
2432 2019-08-15  Tom Tromey  <[email protected]>
2433
2434         * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
2435         * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
2436         tui_clear_source_content.
2437         (tui_clear_source_content): Remove.
2438         (tui_source_window_base::do_erase_source_content): Hoist call to
2439         content.clear().
2440         * tui/tui-stack.c (tui_show_frame_info): Don't call
2441         tui_clear_source_content.
2442
2443 2019-08-15  Tom Tromey  <[email protected]>
2444
2445         * tui/tui-winsource.h (struct tui_source_window_base)
2446         <do_erase_source_content>: New method.
2447         <erase_source_content>: New method.
2448         (tui_erase_source_content): Don't declare.
2449         * tui/tui-winsource.c (tui_clear_source_content): Update.
2450         (tui_source_window_base::do_erase_source_content): Rename from
2451         tui_erase_source_content.
2452         (tui_source_window_base::show_source_content): Update.
2453         * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2454         * tui/tui-source.h (struct tui_source_window)
2455         <erase_source_content>: New method.
2456         * tui/tui-disasm.h (struct tui_disasm_window)
2457         <erase_source_content>: New method.
2458
2459 2019-08-15  Tom Tromey  <[email protected]>
2460
2461         * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
2462         (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
2463         constructor.
2464         * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
2465         * tui/tui-source.c (tui_set_source_content): Update.
2466         * tui/tui-disasm.c (tui_set_disassem_content): Update.
2467
2468 2019-08-15  Tom Tromey  <[email protected]>
2469
2470         * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
2471         * tui/tui-winsource.c (tui_line_is_displayed): Move to
2472         tui-source.c.
2473         * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
2474         Declare.
2475         * tui/tui-source.c (tui_source_window::line_is_displayed): New
2476         method.
2477         (tui_source_window::maybe_update): Update.
2478
2479 2019-08-15  Tom Tromey  <[email protected]>
2480
2481         * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
2482         * tui/tui-winsource.c (tui_addr_is_displayed): Move to
2483         tui-disasm.c.
2484         * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
2485         Declare.
2486         * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
2487         method.
2488         (tui_disasm_window::maybe_update): Update.
2489
2490 2019-08-15  Tom Tromey  <[email protected]>
2491
2492         * tui/tui-winsource.h (struct tui_source_window_base)
2493         <maybe_update>: Declare.
2494         * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
2495         method.
2496         * tui/tui-source.h (struct tui_source_window) <maybe_update>:
2497         Declare.
2498         * tui/tui-source.c (tui_source_window::maybe_update): New method.
2499         * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
2500         Declare.
2501         * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
2502
2503 2019-08-15  Tom Tromey  <[email protected]>
2504
2505         * tui/tui-stack.c (tui_make_status_line): Use string constructor.
2506
2507 2019-08-15  Tom Tromey  <[email protected]>
2508
2509         * tui/tui-wingeneral.c: Include tui-stack.h.
2510         * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
2511         (struct tui_locator_window): Move from tui-data.h.
2512         * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
2513         (tui_initialize_static_data): Move from tui-data.c.
2514         * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
2515         (struct tui_locator_window): Move to tui-stack.c.
2516         * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
2517         (tui_initialize_static_data): Move to tui-stack.c.
2518
2519 2019-08-15  Tom Tromey  <[email protected]>
2520
2521         * tui/tui-layout.c (show_source_disasm_command)
2522         (show_source_or_disasm_and_command): Use make_visible method, not
2523         tui_make_window.
2524         * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
2525         Remove.
2526
2527 2019-08-15  Tom Tromey  <[email protected]>
2528
2529         * tui/tui-wingeneral.h (tui_make_window): Update.
2530         * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
2531         parameter.
2532         (tui_gen_win_info::make_visible): Update.
2533         * tui/tui-regs.c (tui_data_window::display_registers_from):
2534         Update.
2535         * tui/tui-layout.c (show_source_disasm_command)
2536         (show_source_or_disasm_and_command): Update.
2537         * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
2538         (enum tui_box): Remove.
2539         (struct tui_win_info) <can_box>: New method.
2540         * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
2541         method.
2542
2543 2019-08-15  Tom de Vries  <[email protected]>
2544
2545         * linux-nat-trad.c: Include gdbarch.h.
2546
2547 2019-08-14  Alan Hayward  <[email protected]>
2548
2549         * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
2550         register sizes.
2551
2552 2019-08-14  Tom Tromey  <[email protected]>
2553
2554         * darwin-nat.c: Include gdbarch.h.
2555         * darwin-nat-info.c: Include gdbarch.h.
2556
2557 2019-08-13  Tom Tromey  <[email protected]>
2558
2559         * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
2560         Remove.
2561         * tui/tui-data.c (tui_initialize_static_data): Update.
2562
2563 2019-08-13  Tom Tromey  <[email protected]>
2564
2565         * tui/tui-winsource.h (struct tui_exec_info_window)
2566         <~tui_exec_info_window, maybe_allocate_content, get_content,
2567         m_content>: Remove.
2568         (struct tui_source_window_base) <set_exec_info_content,
2569         show_exec_info_content>: Don't declare.
2570         * tui/tui-winsource.c
2571         (tui_exec_info_window::maybe_allocate_content): Remove.
2572         (tui_source_window_base::update_exec_info): Rename from
2573         set_exec_info_content.
2574         (tui_source_window_base::show_exec_info_content)
2575         (tui_source_window_base::update_exec_info): Remove.
2576
2577 2019-08-13  Tom Tromey  <[email protected]>
2578
2579         * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
2580         declare.
2581         * tui/tui-winsource.c (tui_update_source_window_as_is)
2582         (tui_update_source_windows_with_addr, tui_erase_source_content):
2583         Update.
2584         (tui_clear_exec_info_content): Remove.
2585
2586 2019-08-13  Tom Tromey  <[email protected]>
2587
2588         * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
2589         declare.
2590         * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
2591         call tui_erase_exec_info_content.
2592         (tui_clear_exec_info_content): Rename from
2593         tui_erase_exec_info_content.
2594         (tui_clear_exec_info_content): Delete.
2595
2596 2019-08-13  Tom Tromey  <[email protected]>
2597
2598         * tui/tui-winsource.h (struct tui_source_window_base)
2599         <show_exec_info_content>: Declare.
2600         (tui_show_exec_info_content): Don't declare.
2601         * tui/tui-winsource.c
2602         (tui_source_window_base::show_exec_info_content): Rename from
2603         tui_show_exec_info_content.
2604         (tui_source_window_base::update_exec_info): Update.
2605
2606 2019-08-13  Tom Tromey  <[email protected]>
2607
2608         * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
2609         (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
2610         (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
2611         * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
2612         tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
2613         (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
2614         ... here.
2615
2616 2019-08-13  Tom Tromey  <[email protected]>
2617
2618         * tui/tui-winsource.h (struct tui_source_window_base)
2619         <update_exec_info>: Declare.
2620         (tui_update_exec_info): Don't declare.
2621         * tui/tui-winsource.c (tui_update_source_window_as_is)
2622         (tui_source_window_base::refresh_all)
2623         (tui_update_all_breakpoint_info): Update.
2624         (tui_source_window_base::update_exec_info): Rename from
2625         tui_update_exec_info.
2626         * tui/tui-stack.c (tui_show_frame_info): Update.
2627
2628 2019-08-13  Tom Tromey  <[email protected]>
2629
2630         * tui/tui-winsource.h (struct tui_source_window_base)
2631         <set_exec_info_content>: Declare.
2632         (tui_set_exec_info_content): Don't declare.
2633         * tui/tui-winsource.c
2634         (tui_source_window_base::set_exec_info_content): Rename from
2635         tui_set_exec_info_content.
2636         (tui_update_exec_info): Update.
2637
2638 2019-08-13  Tom Tromey  <[email protected]>
2639
2640         * tui/tui-winsource.h (struct tui_source_window_base)
2641         <show_source_content>: Declare.
2642         (tui_show_source_content): Don't declare.
2643         * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2644         (tui_source_window_base::show_source_content): Rename from
2645         tui_show_source_content.
2646         (tui_source_window_base::refresh_all): Update.
2647         * tui/tui-layout.c (show_source_disasm_command)
2648         (show_source_or_disasm_and_command): Update.
2649
2650 2019-08-13  Tom Tromey  <[email protected]>
2651
2652         * tui/tui-winsource.c (tui_erase_source_content)
2653         (tui_show_source_content, tui_source_window_base::refresh_all):
2654         Update.
2655         * tui/tui-wingeneral.h
2656         (tui_check_and_display_highlight_if_needed): Don't declare.
2657         * tui/tui-wingeneral.c
2658         (tui_win_info::check_and_display_highlight_if_needed): Rename from
2659         check_and_display_highlight_if_needed.
2660         * tui/tui-win.c (tui_rehighlight_all)
2661         (tui_win_info::make_visible_with_new_height): Update.
2662         * tui/tui-regs.c (tui_data_window::display_registers_from_line)
2663         (tui_data_window::erase_data_content)
2664         (tui_data_window::display_all_data): Update.
2665         * tui/tui-data.h (struct tui_win_info)
2666         <check_and_display_highlight_if_needed>: Declare.
2667
2668 2019-08-13  Tom Tromey  <[email protected]>
2669
2670         * tui/tui-win.c (tui_resize_all): Call
2671         tui_delete_invisible_windows.
2672         * tui/tui-layout.c (show_layout): Call
2673         tui_delete_invisible_windows.
2674         * tui/tui-data.h (tui_delete_invisible_windows): Declare.
2675         * tui/tui-data.c (tui_delete_invisible_windows): New function.
2676
2677 2019-08-13  Tom Tromey  <[email protected]>
2678
2679         * tui/tui-disasm.c (tui_show_disassem): Add assertion.  Don't call
2680         tui_add_win_to_layout.
2681
2682 2019-08-13  Tom Tromey  <[email protected]>
2683
2684         * tui/tui-layout.h (tui_default_win_height): Don't declare.
2685         * tui/tui-layout.c (tui_default_win_height): Now static.
2686
2687 2019-08-13  Tom Tromey  <[email protected]>
2688
2689         * tui/tui-layout.c (show_layout): Unify all layout cases into a
2690         single switch.
2691         (show_source_disasm_command, show_source_or_disasm_and_command):
2692         Don't check current layout.
2693
2694 2019-08-13  Tom Tromey  <[email protected]>
2695
2696         * tui/tui-wingeneral.c (make_all_visible): Remove.
2697         (tui_make_all_invisible): Simplify.
2698         * tui/tui-layout.c (tui_make_all_invisible): Move from
2699         tui-wingeneral.c; simplify.
2700         (show_layout): Hoist call to tui_make_all_invisible.
2701         (show_data): Don't call tui_make_all_invisible.
2702
2703 2019-08-13  Tom Tromey  <[email protected]>
2704
2705         * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
2706         * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
2707
2708 2019-08-13  Tom Tromey  <[email protected]>
2709
2710         * tui/tui-layout.c (current_layout, tui_current_layout): Move from
2711         tui-data.c.
2712         (show_source_disasm_command, show_data)
2713         (show_source_or_disasm_and_command): Don't use
2714         tui_set_current_layout_to.
2715         * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
2716         * tui/tui-data.c (current_layout, tui_current_layout): Move to
2717         tui-layout.c.
2718         (tui_set_current_layout_to): Remove.
2719
2720 2019-08-13  Tom Tromey  <[email protected]>
2721
2722         * tui/tui-layout.c (tui_set_layout): Update.
2723         * tui/tui-data.h (struct tui_layout_def): Remove.
2724         (tui_layout_def): Don't declare.
2725         * tui/tui-data.c (layout_def): Remove.
2726         (tui_layout_def): Remove.
2727
2728 2019-08-13  Tom Tromey  <[email protected]>
2729
2730         * tui/tui-winsource.h (struct tui_source_window_base)
2731         <clear_detail>: No longer "override".
2732         * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
2733         * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
2734         * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
2735         * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
2736         Remove.
2737         * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
2738
2739 2019-08-13  Tom Tromey  <[email protected]>
2740
2741         * tracepoint.c: Don't include readline.h or history.h.
2742
2743 2019-08-12  Tom Tromey  <[email protected]>
2744
2745         * configure: Rebuild.
2746         * configure.ac: Check for readline 7.
2747         * NEWS: Mention readline 7 requirement.
2748         * README: Update.
2749
2750 2019-08-12  Tom Tromey  <[email protected]>
2751
2752         * mingw-hdep.c (gdb_select): Remove readline hack.
2753
2754 2019-08-09  Pedro Franco de Carvalho  <[email protected]>
2755
2756         * blockframe.c (find_pc_partial_function): Set *block to nullptr
2757         when the function fails.
2758
2759 2019-08-09  Andreas Arnez  <[email protected]>
2760
2761         * s390-tdep.c (s390_type_align): New function.
2762         (s390_gdbarch_init): Set it as type_align gdbarch method.
2763
2764 2019-08-09  Tom de Vries  <[email protected]>
2765
2766         PR gdb/24591
2767         * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
2768         pc_low with relocation offset.
2769
2770 2019-08-07  Tom Tromey  <[email protected]>
2771
2772         * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
2773         (print_frame_args): Update.
2774         * python/py-framefilter.c (py_print_single_arg, enumerate_args):
2775         Update.
2776         * mi/mi-cmd-stack.c (list_arg_or_local): Update.
2777         * frame.h (struct frame_arg): Add initializers.
2778         <error>: Now a unique_xmalloc_ptr.
2779
2780 2019-08-07  Alan Hayward  <[email protected]>
2781
2782         * NEWS: Expand the Pointer Authentication entry.
2783         * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
2784         (aarch64_frame_unmask_lr): ... to this.
2785         (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
2786         Call aarch64_frame_unmask_lr.
2787         * frame.c (struct frame_info): Add "masked" variable.
2788         (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
2789         (fprint_frame): Check for masked pc.
2790         * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
2791         declarations.
2792         * python/py-framefilter.c (py_print_frame): Check for masked pc.
2793         * stack.c (print_frame): Check for masked pc.
2794
2795 2019-08-06  Tom Tromey  <[email protected]>
2796
2797         * stabsread.c (patch_block_stabs, read_one_struct_field)
2798         (read_enum_type): Use obstack_strndup.
2799         * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
2800         * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
2801         * dwarf2read.c (guess_full_die_structure_name)
2802         (anonymous_struct_prefix): Use obstack_strndup.
2803         * dbxread.c (cp_set_block_scope): Use obstack_strndup.
2804         * c-exp.y (yylex): Use obstack_strndup.
2805         * ada-exp.y (write_object_renaming, write_ambiguous_var)
2806         (write_var_or_type): Use obstack_strndup.
2807
2808 2019-08-06  Tom Tromey  <[email protected]>
2809
2810         * symfile.c (reread_symbols): Use obstack_strdup.
2811         * stabsread.c (read_type): Use obstack_strdup.
2812         * gdb_obstack.h (obstack_strdup): New overload.
2813         * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
2814         (create_dwo_unit_in_dwp_v2, build_error_marker_type)
2815         (dwarf2_canonicalize_name): Use obstack_strdup.
2816         * dbxread.c (read_dbx_symtab): Use obstack_strdup.
2817         * cp-support.c (inspect_type, replace_typedefs_qualified_name):
2818         Use obstack_strdup.
2819
2820 2019-08-06  Tom Tromey  <[email protected]>
2821
2822         * gdb_obstack.h (obstack_strdup): Define.
2823         * gdb_obstack.c (obstack_strdup): Don't define.
2824
2825 2019-08-06  Tom Tromey  <[email protected]>
2826
2827         * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
2828         obstack_strdup.
2829         * typeprint.c (typedef_hash_table::find_global_typedef): Use
2830         obstack_strdup.
2831         * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
2832         * stabsread.c (common_block_start): Use obstack_strdup.
2833         * objfiles.c (set_objfile_main_name, objfile): Use
2834         obstack_strdup.
2835         * namespace.c (add_using_directive): Use obstack_strdup.
2836         * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
2837         * jit.c (finalize_symtab): Use obstack_strdup.
2838         * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
2839         (guess_partial_die_structure_name, partial_die_info::fixup)
2840         (dwarf2_name): Use obstack_strdup.
2841         * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
2842         obstack_strdup.
2843         * c-exp.y (scan_macro_expansion): Use obstack_strdup.
2844         * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
2845         obstack_strdup.
2846         * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
2847
2848 2019-08-07  Philippe Waroquiers  <[email protected]>
2849
2850         * unittests/help-doc-selftests.c: New file.
2851         * Makefile.in: Add the new file.
2852
2853 2019-08-07  Philippe Waroquiers  <[email protected]>
2854
2855         * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
2856         * cli/cli-decode.c (print_doc_line): Likewise.  It now prints
2857         the full first line, except when FOR_VALUE_PREFIX.  In this case,
2858         the trailing '.' is not output, and the first character is uppercased.
2859         (print_help_for_command): Update call to print_doc_line.
2860         (print_doc_of_command): Likewise.
2861         * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
2862         * cli/cli-option.c (append_indented_doc): Do not append newline.
2863         (build_help_option): Append newline after first appended_indented_doc
2864         only if a second call is done.
2865         (build_help): Append 2 new lines before each option, except the first
2866         one.
2867         * compile/compile.c (_initialize_compile): Add new lines after
2868         %OPTIONS%, when not at the end of the help.
2869         Change help doc or code
2870         producing the help doc to respect the invariants.
2871         * maint-test-options.c (_initialize_maint_test_options): Likewise.
2872         Also removed the new line after 'Options:', as all other commands
2873         do not put an empty line between 'Options:' and the first option.
2874         * printcmd.c (_initialize_printcmd): Likewise.
2875         * stack.c (_initialize_stack): Likewise.
2876         * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
2877         incorrectly telling COMMAND is optional.
2878         * ada-lang.c (_initialize_ada_language): Change help doc or code
2879         producing the help doc to respect the invariants.
2880         * ada-tasks.c (_initialize_ada_tasks): Likewise.
2881         * breakpoint.c (_initialize_breakpoint): Likewise.
2882         * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
2883         * cli/cli-logging.c (_initialize_cli_logging): Likewise.
2884         * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
2885         * cli/cli-style.c (cli_style_option::add_setshow_commands,
2886         _initialize_cli_style): Likewise.
2887         * corelow.c (core_target_info): Likewise.
2888         * dwarf-index-cache.c (_initialize_index_cache): Likewise.
2889         * dwarf2read.c (_initialize_dwarf2_read): Likewise.
2890         * filesystem.c (_initialize_filesystem): Likewise.
2891         * frame.c (_initialize_frame): Likewise.
2892         * gnu-nat.c (add_task_commands): Likewise.
2893         * infcall.c (_initialize_infcall): Likewise.
2894         * infcmd.c (_initialize_infcmd): Likewise.
2895         * interps.c (_initialize_interpreter): Likewise.
2896         * language.c (_initialize_language): Likewise.
2897         * linux-fork.c (_initialize_linux_fork): Likewise.
2898         * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
2899         * maint.c (_initialize_maint_cmds): Likewise.
2900         * memattr.c (_initialize_mem): Likewise.
2901         * printcmd.c (_initialize_printcmd): Likewise.
2902         * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
2903         _RegEx): Likewise.
2904         * ravenscar-thread.c (_initialize_ravenscar): Likewise.
2905         * record-btrace.c (_initialize_record_btrace): Likewise.
2906         * record-full.c (_initialize_record_full): Likewise.
2907         * record.c (_initialize_record): Likewise.
2908         * regcache-dump.c (_initialize_regcache_dump): Likewise.
2909         * regcache.c (_initialize_regcache): Likewise.
2910         * remote.c (add_packet_config_cmd, init_remote_threadtests,
2911         _initialize_remote): Likewise.
2912         * ser-tcp.c (_initialize_ser_tcp): Likewise.
2913         * serial.c (_initialize_serial): Likewise.
2914         * skip.c (_initialize_step_skip): Likewise.
2915         * source.c (_initialize_source): Likewise.
2916         * stack.c (_initialize_stack): Likewise.
2917         * symfile.c (_initialize_symfile): Likewise.
2918         * symtab.c (_initialize_symtab): Likewise.
2919         * target-descriptions.c (_initialize_target_descriptions): Likewise.
2920         * top.c (init_main): Likewise.
2921         * tracefile-tfile.c (tfile_target_info): Likewise.
2922         * tracepoint.c (_initialize_tracepoint): Likewise.
2923         * tui/tui-win.c (_initialize_tui_win): Likewise.
2924         * utils.c (add_internal_problem_command): Likewise.
2925         * valprint.c (value_print_option_defs): Likewise.
2926
2927 2019-08-06  Frank Ch. Eigler  <[email protected]>
2928
2929         PR build/24886
2930         * configure.ac: Drop enable-libmcheck support.
2931         * configure, config.in: Rebuild.
2932         * libmcheck.m4: Remove.
2933         * acinclude.m4: Don't include it.
2934         * Makefile.in: Don't distribute it.
2935         * top.c (print_gdb_configuration): Don't mention it.
2936
2937 2019-08-06  Tom Tromey  <[email protected]>
2938
2939         * utils.c (set_output_style): Sometimes pass stream to
2940         emit_style_escape.
2941         * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
2942         * record-btrace.c (btrace_insn_history): Update.
2943         * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
2944         method.
2945         * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
2946         Update initializers.
2947         <m_uiout>: New field.
2948         <m_di>: Move lower.
2949         * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2950         Remove "uiout" parameter.
2951         (dump_insns): Update.
2952         * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
2953         * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
2954
2955 2019-08-06  Christian Biesinger  <[email protected]>
2956
2957         * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
2958         (error_in_psymtab_expansion): Likewise.
2959         (lookup_symbol_via_quick_fns): Likewise.
2960         (basic_lookup_transparent_type_quick): Likewise.
2961         (basic_lookup_transparent_type_1): Likewise.
2962
2963 2019-08-06  Tom Tromey  <[email protected]>
2964
2965         * source.c (last_source_error): Now bool.
2966         (print_source_lines_base): Make "noprint" bool.  Only open
2967         source file when last_source_visited changes.
2968
2969 2019-08-06  Tom Tromey  <[email protected]>
2970
2971         * annotate.c (annotate_source_line): Use g_source_cache.
2972         * source-cache.c (source_cache::get_plain_source_lines): Change
2973         parameters.  Populate m_offset_cache.
2974         (source_cache::ensure): New method.
2975         (source_cache::get_line_charpos): New method.
2976         (extract_lines): Move lower.  Change parameters.
2977         (source_cache::get_source_lines): Move lower.
2978         * source-cache.h (class source_cache): Update comment.
2979         <get_line_charpos>: New method.
2980         <get_source_lines>: Update comment.
2981         <clear>: Clear m_offset_cache.
2982         <get_plain_source_lines>: Change parameters.
2983         <ensure>: New method
2984         <m_offset_cache>: New member.
2985         * source.c (forget_cached_source_info_for_objfile): Update.
2986         (info_source_command): Use g_source_cache.
2987         (find_source_lines, open_source_file_with_line_charpos): Remove.
2988         (print_source_lines_base, search_command_helper): Use g_source_cache.
2989         * source.h (open_source_file_with_line_charpos): Don't declare.
2990         * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
2991         * tui/tui-source.c (tui_source_window::do_scroll_vertical):
2992         Use g_source_cache.
2993
2994 2019-08-06  Tom Tromey  <[email protected]>
2995
2996         * source-cache.c (source_cache::get_plain_source_lines):
2997         Remove "first_line" and "last_line" parameters.
2998         (source_cache::get_source_lines): Cache plain text.
2999         * source-cache.h (class source_cache)
3000         <get_plain_source_lines>: Update.
3001
3002 2019-08-06  Tom Tromey  <[email protected]>
3003
3004         * source-cache.c (extract_lines): No longer a method.
3005         Changed type of parameter.  Include final newline.
3006         (selftests::extract_lines_test): New function.
3007         (_initialize_source_cache): Likewise.
3008         * source-cache.h (class source_cache)
3009         <extract_lines>: Don't declare.
3010
3011 2019-08-06  Tom Tromey  <[email protected]>
3012
3013         * breakpoint.c (init_breakpoint_sal): Update.
3014         (breakpoint): Update.
3015         * breakpoint.h (struct breakpoint) <filter>: Now a
3016         unique_xmalloc_ptr.
3017
3018 2019-08-05  Christian Biesinger  <[email protected]>
3019
3020         * NEWS: Mention dictionary access on blocks.
3021         * python/py-block.c (blpy_getitem): New function.
3022         (block_object_as_mapping): New struct.
3023         (block_object_type): Use new struct for tp_as_mapping field.
3024
3025 2019-08-05  Christian Biesinger  <[email protected]>
3026
3027         * objfiles.h (objfile): Add a comment describing partial symbols.
3028
3029 2019-08-05  Tom Tromey  <[email protected]>
3030
3031         * compile/compile.c (_initialize_compile): Use _(), not N_().
3032         * thread.c (_initialize_thread): Use _(), not N_().
3033         * stack.c (_initialize_stack): Use _(), not N_().
3034         * printcmd.c (_initialize_printcmd): Use _(), not N_().
3035
3036 2019-08-04  Simon Marchi  <[email protected]>
3037
3038         * dwarf2read.c (struct dw2_symtab_iterator):
3039         <want_specific_block>: Remove.
3040         <block_index>: Change type to gdb::optional.
3041         (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
3042         change type of BLOCK_INDEX parameter to gdb::optional.
3043         (dw2_symtab_iter_next): Re-write in function of gdb::optional.
3044         (dw2_lookup_symbol): Don't pass argument for
3045         WANT_SPECIFIC_BLOCK.
3046         (dw2_expand_symtabs_for_function): Don't pass argument for
3047         WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
3048         (class dw2_debug_names_iterator)
3049         <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
3050         parameter, change BLOCK_INDEX type to gdb::optional.
3051         <m_want_specific_block>: Remove.
3052         <m_block_index>: Change type to gdb::optional.
3053         (dw2_debug_names_iterator::next): Change type of IS_STATIC to
3054         gdb::optional.  Re-write in function of gdb::optional.
3055         (dw2_debug_names_lookup_symbol): Don't pass argument for
3056         WANT_SPECIFIC_BLOCK.
3057         (dw2_debug_names_expand_symtabs_for_function): Don't pass
3058         argument for WANT_SPECIFIC_BLOCK, pass empty optional for
3059         BLOCK_INDEX.
3060
3061 2019-08-03  Philippe Waroquiers  <[email protected]>
3062
3063         * NEWS: Mention changes to "info sources" command.
3064
3065 2019-08-03  Philippe Waroquiers  <[email protected]>
3066
3067         * symtab.c (filename_partial_match_opts): New struct type.
3068         (struct output_source_filename_data): New members
3069         regexp, c_regexp, partial_match.
3070         (output_source_filename): Use new members to decide to print file.
3071         (info_sources_option_defs): New variable.
3072         (make_info_sources_options_def_group, print_info_sources_header,
3073         info_sources_command_completer):
3074         New functions.
3075         (info_sources_command): Read new optional arguments.
3076         (_initialize_symtab): Update info sources help.
3077
3078 2019-08-02  Alexandre Oliva <[email protected]>
3079
3080         * ada-lang.c (exception_support_info_v0): Renamed from...
3081         (default_exception_support_info): ... this.  Create new
3082         definition for v1.
3083         (ada_has_this_exception_support): Look up catch_handlers_sym.
3084         (ada_exception_support_info_sniffer): Try v0 after default.
3085
3086 2019-08-01  Tom Tromey  <[email protected]>
3087
3088         * ia64-libunwind-tdep.h (struct libunwind_descr): Include
3089         gdbarch.h.
3090
3091 2019-08-01  Christian Biesinger  <[email protected]>
3092
3093         * s12z-tdep.c: Fix include path for s12z-opc.h.
3094
3095 2019-08-01  Alan Hayward  <[email protected]>
3096
3097         * NEWS: Require GNU make 3.82.
3098
3099 2019-07-16  Tom Tromey  <[email protected]>
3100
3101         * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
3102         declare.
3103
3104 2019-07-30  Tom Tromey  <[email protected]>
3105
3106         * block.c (contained_in): Remove BLOCK_FUNCTION check.
3107
3108 2019-07-30  Kevin Buettner  <[email protected]>
3109
3110         * printcmd.c (print_address_symbolic): Print negative offsets.
3111         (build_address_symbolic): Force signed arithmetic when computing
3112         offset.
3113
3114 2019-07-30  Christian Biesinger  <[email protected]>
3115
3116         PR/24474: Add a function to lookup static variables.
3117         * NEWS: Mention this new function.
3118         * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
3119         * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
3120         * python/python.c (python_GdbMethods): Add new function.
3121
3122 2019-07-29  Christian Biesinger  <[email protected]>
3123
3124         * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
3125         * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
3126         (objfpy_lookup_static_symbol): New function.
3127         (objfile_object_methods): Add new functions.
3128
3129 2019-07-29  Philippe Waroquiers  <[email protected]>
3130
3131         * NEWS: Mention 'set|show print frame-info'.  Mention new
3132         'presence' value for 'frame-arguments'.  Mention new '-frame-info'
3133         backtrace argument.  Mention that python frame filtering code
3134         is now consistent with what 'backtrace' command prints.
3135
3136 2019-07-29  Philippe Waroquiers  <[email protected]>
3137
3138         * frame.h (enum print_what): New value 'SHORT_LOCATION', update
3139         comments.
3140         (print_frame_info_auto, print_frame_info_source_line,
3141         print_frame_info_location, print_frame_info_source_and_location,
3142         print_frame_info_location_and_address, print_frame_info_short_location):
3143         New declarations.
3144         (struct frame_print_options): New member print_frame_info.
3145         * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
3146         * stack.h (get_user_print_what_frame_info): New declaration.
3147         (frame_show_address): New declaration.
3148         * stack.c (print_frame_arguments_choices): New value 'presence'.
3149         (print_frame_info_auto, print_frame_info_source_line,
3150         print_frame_info_location, print_frame_info_source_and_location,
3151         print_frame_info_location_and_address, print_frame_info_short_location,
3152         print_frame_info_choices, print_frame_info_print_what): New definitions.
3153         (print_frame_args): Only print dots for args if print frame-arguments
3154         is 'presence'.
3155         (frame_print_option_defs): New element for "frame-info".
3156         (get_user_print_what_frame_info): New function.
3157         (frame_show_address): Make non static.  Move comment to stack.h.
3158         (print_frame_info_to_print_what): New function.
3159         (print_frame_info): Update comment.  Use fp_opts.print_frame_info
3160         to decide what to print.
3161         (backtrace_command_1): Handle the new print_frame_arguments_presence
3162         value.
3163         (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
3164         * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
3165         (py_print_frame): In non-mi mode, use LOCATION as default for
3166         print_what, similarly to frame information printed directly by
3167         backtrace command. Handle frame-info user option in non MI mode.
3168
3169 2019-07-27  Kevin Buettner  <[email protected]>
3170
3171         * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
3172         Add case for debugging 32-bit target on 64-bit host.  Revise
3173         comment.
3174
3175 2019-07-27  Kevin Buettner  <[email protected]>
3176
3177         * infrun.c (fill_in_stop_func): Use find_pc_partial_function
3178         instead of find_function_entry_range_from_pc.
3179
3180 2019-07-27  Kevin Buettner  <[email protected]>
3181
3182         * stack.c (find_frame_funname): Remove code which preferred
3183         minsym over symtab sym in "certain pathological cases".
3184
3185         * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
3186         parameter.  Change type of "do_demangle" to bool.
3187         * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3188         Pass suitable "prefer_sym_over_minsym" flag to
3189         build_address_symbolic().  Don't output "+" for negative offsets.
3190         * printcmd.c (print_address_symbolic): Update invocation of
3191         build_address_symbolic to include a "prefer_sym_over_minsym"
3192         flag.
3193         (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
3194         Restrict cases in which use of minimal symbol is preferred to that
3195         of a found symbol.  Update comments.
3196
3197         * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
3198         for entry pc when entry pc is out of range for that FDE.
3199
3200 2019-07-26  Brian Callahan  <[email protected]>
3201
3202         PR gdb/24839:
3203         * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
3204         type.
3205
3206 2019-07-25  Christian Biesinger  <[email protected]>
3207
3208         * python/py-objfile.c (add_separate_debug_file): Fix comment about
3209         this function's Python signature.
3210
3211
3212 2019-07-24  Christian Biesinger  <[email protected]>
3213
3214         * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
3215         * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
3216         * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
3217         * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
3218         * symtab.h (lookup_global_symbol_from_objfile): Likewise.
3219
3220
3221 2019-07-24  Yoshinori Sato  <[email protected]>
3222
3223         * h8300-tdep.c (h8300_register_name_common): New.
3224         h8300_register_name): Use h8300_register_name_common.
3225         (h8300s_register_name): Likewise.
3226         (h8300sx_register_name): Likewise.
3227         (h8300h_register_nam): New.
3228         (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
3229
3230
3231 2019-07-23  Srinath Parvathaneni  <[email protected]>
3232
3233         * arm-tdep.c (arm_skip_cmse_entry): New function.
3234         (arm_is_sgstubs_section): New function.
3235         (arm_skip_stub): Add call to arm_skip_cmse_entry function.
3236
3237 2019-07-22  Tom Tromey  <[email protected]>
3238
3239         * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
3240         Don't self-assign.
3241
3242 2019-07-22  Andrew Burgess  <[email protected]>
3243
3244         * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
3245         type_print.
3246
3247 2019-07-22  Andrew Burgess  <[email protected]>
3248
3249         * symtab.c (search_symbols): Adjust msymbol matching type arrays
3250         so that GDB doesn't match any msymbols when searching in the
3251         TYPES_DOMAIN.
3252         (print_symbol_info): Print using typedef_print or type_print based
3253         on the type of the symbol.  Add updated FIXME comment moved from...
3254         (_initialize_symtab): ... move and update FIXME comment to above.
3255
3256 2019-07-22  Andrew Burgess  <[email protected]>
3257
3258         * NEWS: Mention adding -q option to "info types".
3259         * symtab.c (struct info_types_options): New struct.
3260         (info_types_options_defs): New variable.
3261         (make_info_types_options_def_group): New function.
3262         (info_types_command): Use gdb::option framework to parse options.
3263         (info_types_command_completer): New function.
3264         (_initialize_symtab): Extend the help text on "info types" and
3265         register command completer.
3266
3267 2019-07-21  Christian Biesinger  <[email protected]>
3268
3269         * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
3270         (lookup_symbol_in_objfile): Change int to block_enum and add a
3271         gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
3272
3273 2019-07-20  Christian Biesinger  <[email protected]>
3274
3275         * MAINTAINERS (Write After Approval): Add self.
3276
3277 2019-07-19  Andrew Burgess  <[email protected]>
3278
3279         * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
3280         instruction to the dummy code region.
3281
3282 2019-07-19  Tom Tromey  <[email protected]>
3283
3284         * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
3285         (ARGSUSED, PARAMS, __func__): Remove rules.
3286
3287 2019-07-19  Alan Hayward  <[email protected]>
3288
3289         * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
3290         * features/arm/arm-with-iwmmxt.c: Remove.
3291         * features/arm/arm-with-iwmmxt.xml: Remove.
3292         * features/arm/arm-with-m-fpa-layout.c: Remove.
3293         * features/arm/arm-with-m-fpa-layout.xml: Remove.
3294         * features/arm/arm-with-m-vfp-d16.c: Remove.
3295         * features/arm/arm-with-m-vfp-d16.xml: Remove.
3296         * features/arm/arm-with-m.c: Remove.
3297         * features/arm/arm-with-m.xml: Remove.
3298         * features/arm/arm-with-neon.c: Remove.
3299         * features/arm/arm-with-neon.xml: Remove.
3300         * features/arm/arm-with-vfpv2.c: Remove.
3301         * features/arm/arm-with-vfpv2.xml: Remove.
3302         * features/arm/arm-with-vfpv3.c: Remove.
3303         * features/arm/arm-with-vfpv3.xml: Remove.
3304
3305 2019-07-19  Alan Hayward  <[email protected]>
3306
3307         * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
3308
3309 2019-07-19  Alan Hayward  <[email protected]>
3310
3311         * arch/aarch32.c (aarch32_create_target_description): Create
3312         target descriptions using features.
3313         * arch/arm.c (arm_create_target_description)
3314         (arm_create_mprofile_target_description): Likewise.
3315         * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
3316
3317 2019-07-19  Alan Hayward  <[email protected]>
3318
3319         * Makefile.in: Add new files.
3320         * aarch32-tdep.c: New file.
3321         * aarch32-tdep.h: New file.
3322         * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
3323         Call aarch32_read_description.
3324         * arch/aarch32.c: New file.
3325         * arch/aarch32.h: New file.
3326         * arch/arm.c (arm_create_target_description)
3327         (arm_create_mprofile_target_description): New function.
3328         * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
3329         (arm_create_target_description)
3330         (arm_create_mprofile_target_description): New declaration.
3331         * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
3332         read_description functions.
3333         * arm-linux-nat.c (arm_linux_nat_target::read_description):
3334         Likewise.
3335         * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
3336         * arm-tdep.c (tdesc_arm_list): New variable.
3337         (arm_register_g_packet_guesses): Call create description functions.
3338         (arm_read_description) (arm_read_mprofile_description): New
3339         function.
3340         * arm-tdep.h (arm_read_description)
3341         (arm_read_mprofile_description): Add declaration.
3342         * configure.tgt: Add new files.
3343
3344 2019-07-18  Guillaume LABARTHE  <[email protected]>
3345
3346         * top.c (new_ui_command): Open specified terminal just once.
3347
3348 2019-07-18  Tom Tromey  <[email protected]>
3349
3350         * symtab.c (main_name): Constify return type.
3351         * symfile.c (set_initial_language): Update.
3352         * symtab.h (main_name): Constify return type.
3353
3354 2019-07-17  Tom Tromey  <[email protected]>
3355
3356         * tui/tui-winsource.c (tui_update_source_window)
3357         (tui_update_source_window_as_is)
3358         (tui_update_source_windows_with_line): Remove return.
3359         * tui/tui-disasm.c (tui_show_disassem)
3360         (tui_show_disassem_and_update_source): Remove return.
3361         * tui/tui.c (tui_reset): Remove return.
3362         * tui/tui-wingeneral.c
3363         (tui_check_and_display_highlight_if_needed): Remove return.
3364
3365 2019-07-17  Tom Tromey  <[email protected]>
3366
3367         * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
3368
3369 2019-07-17  Tom Tromey  <[email protected]>
3370
3371         * tui/tui-winsource.h (struct tui_exec_info_window)
3372         (struct tui_source_window_base): Move from tui-data.h.
3373         * tui/tui-winsource.c: Move many method definitions from
3374         elsewhere.  Remove "structuring" comments.
3375         * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
3376         (tui_source_window_base::refresh_window): Move to
3377         tui-winsource.c.
3378         * tui/tui-win.c (tui_source_window_base::refresh_all)
3379         (tui_source_window_base::update_tab_width)
3380         (tui_source_window_base::set_new_height)
3381         (tui_source_window_base::do_make_visible_with_new_height): Move to
3382         tui-winsource.c.
3383         * tui/tui-source.h: Update.
3384         * tui/tui-source.c (tui_source_window_base::reset): Move to
3385         tui-winsource.c.
3386         * tui/tui-disasm.h: Update.
3387         * tui/tui-data.h (struct tui_exec_info_window): Move to
3388         tui-winsource.h.
3389         (struct tui_source_window_base): Likewise.
3390         * tui/tui-data.c (tui_source_window_base::clear_detail)
3391         (tui_source_window_base, ~tui_source_window_base): Move to
3392         tui-winsource.c.
3393
3394 2019-07-17  Tom Tromey  <[email protected]>
3395
3396         * tui/tui-win.c (tui_resize_all)
3397         (tui_source_window_base::update_tab_width)
3398         (tui_adjust_win_heights): Update.
3399         (tui_win_info::make_invisible_and_set_new_height): Rename from
3400         make_invisible_and_set_new_height.
3401         * tui/tui-data.h (struct tui_win_info)
3402         <make_invisible_and_set_new_height>: New method.
3403
3404 2019-07-17  Tom Tromey  <[email protected]>
3405
3406         * tui/tui.c: Update.
3407         * tui/tui-source.h (struct tui_source_window): Move from
3408         tui-data.h.
3409         * tui/tui-layout.c: Update.
3410         * tui/tui-disasm.c: Update.
3411         * tui/tui-data.h (struct tui_source_window): Move to
3412         tui-source.h.
3413
3414 2019-07-17  Tom Tromey  <[email protected]>
3415
3416         * tui/tui-disasm.h (struct tui_disasm_window): Move from
3417         tui-data.h.
3418         * tui/tui-data.h (struct tui_disasm_window): Move to
3419         tui-disasm.h.
3420
3421 2019-07-17  Tom Tromey  <[email protected]>
3422
3423         * tui/tui-regs.h (struct tui_data_item_window): Move from
3424         tui-data.h.
3425         * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
3426         * tui/tui-data.h (struct tui_data_item_window): Move to
3427         tui-regs.h.
3428         * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
3429
3430 2019-07-17  Tom Tromey  <[email protected]>
3431
3432         * tui/tui.c: Update.
3433         * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
3434         (tui_cmd_window::max_height): Move to tui-command.c.
3435         * tui/tui-layout.c: Update.
3436         * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
3437         * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
3438         tui-command.c.
3439         * tui/tui-command.h (struct tui_cmd_window): Move from
3440         tui-data.h.
3441         * tui/tui-command.c: Remove "structuring" comments.
3442         (tui_cmd_window::clear_detail)
3443         (tui_cmd_window::do_make_visible_with_new_height)
3444         (tui_cmd_window::max_height): Move from elsewhere.
3445
3446 2019-07-17  Tom Tromey  <[email protected]>
3447
3448         * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
3449         Now static.
3450         * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
3451         * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
3452
3453 2019-07-17  Tom Tromey  <[email protected]>
3454
3455         * tui/tui.c: Update.
3456         * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
3457         tui-regs.c.
3458         * tui/tui-windata.h: Remove file.
3459         * tui/tui-windata.c: Remove file.
3460         * tui/tui-win.c (tui_data_window::set_new_height)
3461         (tui_data_window::do_make_visible_with_new_height): Move to
3462         tui-regs.c.
3463         * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
3464         * tui/tui-regs.c: Remove "structuring" comments.
3465         (tui_data_window::first_data_item_displayed)
3466         (tui_data_window::delete_data_content_windows)
3467         (tui_data_window::erase_data_content)
3468         (tui_data_window::display_all_data)
3469         (tui_data_window::refresh_all)
3470         (tui_data_window::do_scroll_vertical)
3471         (tui_data_window::clear_detail, tui_data_window::set_new_height)
3472         (tui_data_window::do_make_visible_with_new_height)
3473         (tui_data_window::refresh_window): Move from elsewhere.
3474         (_initialize_tui_regs): Move to end of file.
3475         * tui/tui-layout.c: Update.
3476         * tui/tui-hooks.c: Update.
3477         * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
3478         * tui/tui-data.c (tui_data_window::clear_detail): Move to
3479         tui-regs.c.
3480         * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
3481
3482 2019-07-17  Tom Tromey  <[email protected]>
3483
3484         * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
3485         seen.
3486
3487 2019-07-17  Tom Tromey  <[email protected]>
3488
3489         * tui/tui-win.c (tui_source_window_base::set_new_height)
3490         (tui_source_window_base::do_make_visible_with_new_height): Use
3491         m_has_locator field directly.
3492         * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
3493         method.
3494         (struct tui_source_window_base) <has_locator>: Likewise.
3495
3496 2019-07-17  Tom Tromey  <[email protected]>
3497
3498         * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
3499         Don't declare.
3500         * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
3501         Remove.
3502         * tui/tui-win.c (tui_source_window_base::set_new_height)
3503         (tui_source_window_base::set_new_height)
3504         (make_invisible_and_set_new_height)
3505         (tui_source_window_base::do_make_visible_with_new_height)
3506         (tui_source_window_base::do_make_visible_with_new_height):
3507         Update.
3508         * tui/tui-layout.c (show_source_disasm_command, show_data)
3509         (show_source_or_disasm_and_command): Update.
3510         * tui/tui-layout.c (show_layout): Update.
3511
3512 2019-07-17  Tom Tromey  <[email protected]>
3513
3514         * tui/tui-layout.c (make_data_window): Remove.
3515         (show_data): Unify creation and re-initialization cases.
3516
3517 2019-07-17  Tom Tromey  <[email protected]>
3518
3519         * tui/tui-layout.c (make_source_window, make_disasm_window):
3520         Remove.
3521         (show_data): Unify creation and re-initialization cases.
3522
3523 2019-07-17  Tom Tromey  <[email protected]>
3524
3525         * tui/tui-layout.c (make_command_window): Remove.
3526         (show_source_disasm_command, show_source_or_disasm_and_command):
3527         Unify creation and re-initialization cases.
3528
3529 2019-07-17  Tom Tromey  <[email protected]>
3530
3531         * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
3532         creation and re-initialization cases.
3533
3534 2019-07-17  Tom Tromey  <[email protected]>
3535
3536         * tui/tui-regs.c (tui_get_register): Return void.
3537
3538 2019-07-17  Tom Tromey  <[email protected]>
3539
3540         * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
3541         Simplify.
3542
3543 2019-07-17  Tom Tromey  <[email protected]>
3544
3545         * tui/tui-layout.c (show_source_disasm_command): Simplify window
3546         resetting.
3547
3548 2019-07-17  Tom Tromey  <[email protected]>
3549
3550         * tui/tui.h (tui_set_layout_by_name): Don't declare.
3551         * tui/tui-regs.c (tui_reg_layout): New function.
3552         (tui_show_registers, tui_reg_command): Use it.
3553         * tui/tui-layout.c (LAYOUT_USAGE): Remove.
3554         (tui_layout_command): Rename from tui_set_layout_by_name.  Change
3555         parameters.
3556         (tui_layout_command): Remove.
3557
3558 2019-07-17  Tom Tromey  <[email protected]>
3559
3560         * tui/tui-layout.h (tui/tui-layout): Return void.
3561         * tui/tui-layout.c (tui_set_layout): Return void.  Add assert.
3562
3563 2019-07-17  Tom Tromey  <[email protected]>
3564
3565         * tui/tui-layout.c (show_source_disasm_command, show_data):
3566         Update.
3567         (reset_locator): Remove.
3568         (show_source_or_disasm_and_command): Update.
3569
3570 2019-07-17  Tom Tromey  <[email protected]>
3571
3572         * tui/tui-source.c (tui_source_window_base::reset): Remove
3573         win_type parameter.
3574         * tui/tui-layout.c (make_command_window, make_source_window)
3575         (make_disasm_window, make_data_window)
3576         (show_source_disasm_command, show_data, tui_gen_win_info::reset)
3577         (reset_locator, show_source_or_disasm_and_command): Update.
3578         * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
3579         win_type parameter.
3580         (struct tui_source_window_base) <reset>: Likewise.
3581
3582 2019-07-17  Tom Tromey  <[email protected]>
3583
3584         * tui/tui-layout.c (show_source_disasm_command): Use
3585         reset_locator.
3586         (reset_locator): New function.
3587         (init_and_make_win): Remove.
3588         (show_source_or_disasm_and_command): Use reset_locator.
3589
3590 2019-07-17  Tom Tromey  <[email protected]>
3591
3592         * tui/tui-winsource.c (tui_set_exec_info_content): Remove
3593         condition.
3594         * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
3595         Remove condition.
3596         * tui/tui-source.c (tui_source_window_base::reset): New method.
3597         * tui/tui-layout.c (make_command_window): Don't call
3598         init_and_make_win.
3599         (make_source_window, make_disasm_window): Don't call
3600         make_source_or_disasm_window.
3601         (make_data_window): Don't call init_and_make_win.  Change calling
3602         convention.
3603         (show_source_disasm_command, show_data): Simplify.
3604         (make_source_or_disasm_window): Remove.
3605         (show_source_or_disasm_and_command): Simplify.
3606         * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
3607         (struct tui_source_window_base) <reset>: Likewise.
3608         <execution_info>: Remove initializer.
3609         * tui/tui-data.c (tui_source_window_base): Initialize
3610         execution_info.
3611
3612 2019-07-17  Tom Tromey  <[email protected]>
3613
3614         * tui/tui-layout.c (tui_set_layout): Remove regs_populate
3615         variable.
3616
3617 2019-07-17  Tom Tromey  <[email protected]>
3618
3619         * tui/tui.c (tui_rl_other_window): Update.
3620         * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
3621         superclass method first.  Always iterate over regs_content.
3622         (tui_unhighlight_win, tui_highlight_win): Use refresh_window
3623         method.
3624         * tui/tui-win.c (tui_set_focus_command): Update.
3625
3626 2019-07-17  Tom Tromey  <[email protected]>
3627
3628         * tui/tui-win.c (tui_set_focus_command): Rename from
3629         tui_set_focus.  Call tui_enable.
3630         (tui_set_focus_command): Remove.
3631
3632 2019-07-17  Tom Tromey  <[email protected]>
3633
3634         * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
3635         refresh_window.
3636         * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
3637         touchwin.
3638         (tui_data_window::refresh_window): Call refresh_window on data
3639         items.  Always call superclass refresh_window.
3640         (tui_win_info::refresh): Remove.
3641         (tui_source_window_base::refresh_window): Update.
3642         (tui_refresh_all): Update.
3643         * tui/tui-layout.c (show_source_disasm_command): Remove call to
3644         refresh_window.
3645         (show_source_or_disasm_and_command): Likewise.
3646         * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
3647         (struct tui_source_window_base) <refresh>: Likewise.
3648
3649 2019-07-17  Tom Tromey  <[email protected]>
3650
3651         * tui/tui-winsource.c (tui_clear_source_content)
3652         (tui_show_source_content): Update.
3653         * tui/tui-source.c (tui_source_window::showing_source_p): Check
3654         whether content is empty.
3655         * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
3656         Remove.
3657
3658 2019-07-17  Tom Tromey  <[email protected]>
3659
3660         * tui/tui-winsource.c (tui_erase_source_content): Clear the
3661         window's contents.
3662         * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
3663         * tui/tui-source.c (tui_set_source_content_nil): Remove.
3664
3665 2019-07-17  Tom Tromey  <[email protected]>
3666
3667         * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
3668         (struct tui_data_item_window): Update.
3669
3670 2019-07-17  Tom Tromey  <[email protected]>
3671
3672         * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
3673         (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
3674         defines.
3675
3676 2019-07-17  Tom Tromey  <[email protected]>
3677
3678         * tui/tui-winsource.h (tui_erase_source_content)
3679         (tui_clear_source_content): Remove "display_prompt" parameter.
3680         * tui/tui-winsource.c (tui_update_source_window_as_is)
3681         (tui_update_source_windows_with_addr): Update.
3682         (tui_clear_source_content): Remove "display_prompt" parameter.
3683         (tui_erase_source_content): Likewise.  Simplify.
3684         (tui_show_source_content): Update.
3685         * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3686         * tui/tui-stack.c (tui_show_frame_info): Update.
3687         * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
3688         Remove defines.
3689
3690 2019-07-17  Tom Tromey  <[email protected]>
3691
3692         * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3693         * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
3694         parameter.
3695         * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
3696         parameter.
3697
3698 2019-07-17  Tom Tromey  <[email protected]>
3699
3700         * tui/tui-winsource.c (tui_clear_source_content)
3701         (tui_show_source_content, tui_show_exec_info_content)
3702         (tui_clear_exec_info_content): Update.
3703         * tui/tui-stack.c (tui_show_locator_content): Update.
3704         (tui_show_frame_info): Update.
3705         * tui/tui-source.h (tui_source_window): Don't declare.
3706         * tui/tui-source.c (tui_source_window::showing_source_p): Rename
3707         from tui_source_is_displayed.
3708         * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
3709         Remove field.
3710         (struct tui_source_window_base) <content_in_use>: New field.  Now
3711         bool.
3712         (struct tui_source_window) <showing_source_p>: New method.
3713         (TUI_SRC_WIN): Change cast.
3714         * tui/tui-data.c (tui_initialize_static_data): Update.
3715
3716 2019-07-17  Tom Tromey  <[email protected]>
3717
3718         * tui/tui-winsource.c (tui_update_breakpoint_info): Use
3719         location_matches_p.
3720         * tui/tui-source.c (tui_source_window::location_matches_p): New
3721         method.
3722         * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
3723         method.
3724         * tui/tui-data.h (struct tui_source_window_base)
3725         <location_matches_p>: New method.
3726         (struct tui_source_window, struct tui_disasm_window)
3727         <location_matches_p>: Likewise.
3728
3729 2019-07-17  Tom Tromey  <[email protected]>
3730
3731         * tui/tui-win.c (tui_set_win_height_command): Rename from
3732         tui_set_win_height.
3733         (tui_set_win_height_command): Remove.
3734
3735 2019-07-17  Tom Tromey  <[email protected]>
3736
3737         * tui/tui-source.c (tui_source_window): New constructor.  Add
3738         observer.
3739         (~tui_source_window): New destructor.
3740         (tui_source_window::style_changed): New method.
3741         * tui/tui-hooks.c (tui_redisplay_source): Remove.
3742         (tui_attach_detach_observers): Update.
3743         * tui/tui-data.h (struct tui_source_window): Make constructor not
3744         inline.  Add destructor.
3745         (struct tui_source_window) <style_changed>: New method.
3746         <m_observable>: New member.
3747
3748 2019-07-17  Tom Tromey  <[email protected]>
3749
3750         * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
3751         * tui/tui-win.c (tui_resize_all): Fix typo.
3752
3753 2019-07-17  Tom Tromey  <[email protected]>
3754
3755         * tui/tui-wingeneral.h (tui_refresh_all): Update.
3756         * tui/tui-wingeneral.c (make_all_visible): Use foreach.
3757         (tui_refresh_all): Remove "list" parameter.  Use foreach.
3758         * tui/tui-win.c (window_name_completer): Use foreach.
3759         (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
3760         (update_tab_width): Likewise.
3761         * tui/tui-layout.c (show_layout): Update.
3762         * tui/tui-data.h (class tui_window_iterator): New.
3763         (struct all_tui_windows): New.
3764         * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
3765
3766 2019-07-17  Tom Tromey  <[email protected]>
3767
3768         * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
3769         parameter.  Don't reference globals.
3770         (tui_reg_command): Update.
3771
3772 2019-07-17  Tom Tromey  <[email protected]>
3773
3774         * tui/tui-regs.c (tui_show_registers): Simplify.
3775
3776 2019-07-17  Tom Tromey  <[email protected]>
3777
3778         * tui/tui-regs.c (tui_show_registers): Update.
3779         (tui_show_register_group): Add win_info parameter.
3780
3781 2019-07-17  Tom Tromey  <[email protected]>
3782
3783         * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
3784         Rename from tui_display_reg_element_at_line.
3785         (tui_data_window::display_registers_from_line): Update.
3786         * tui/tui-data.h (struct tui_data_window)
3787         <display_reg_element_at_line>: New method.
3788
3789 2019-07-17  Tom Tromey  <[email protected]>
3790
3791         * tui/tui-regs.h (tui_display_registers_from)
3792         (tui_display_registers_from_line): Don't declare.
3793         * tui/tui-windata.c (tui_data_window::display_all_data)
3794         (tui_data_window::refresh_all)
3795         (tui_data_window::do_scroll_vertical): Update.
3796         * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
3797         from tui_display_registers_from.
3798         (tui_display_reg_element_at_line): Update.
3799         (tui_data_window::display_registers_from_line): Rename from
3800         tui_display_registers_from_line.
3801         * tui/tui-data.h (struct tui_data_window) <display_registers_from,
3802         display_registers_from_line>: New methods.
3803
3804 2019-07-17  Tom Tromey  <[email protected]>
3805
3806         * tui/tui-windata.h (tui_erase_data_content): Don't declare.
3807         * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
3808         from tui_erase_data_content.
3809         (tui_data_window::display_all_data)
3810         (tui_data_window::refresh_all)
3811         (tui_data_window::do_scroll_vertical): Update.
3812         * tui/tui-regs.c (tui_show_registers): Update.
3813         * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
3814         New method.
3815
3816 2019-07-17  Tom Tromey  <[email protected]>
3817
3818         * tui/tui-windata.h (tui_delete_data_content_windows): Don't
3819         declare.
3820         * tui/tui-windata.c
3821         (tui_data_window::delete_data_content_windows): Rename from
3822         tui_delete_data_content_windows.
3823         (tui_data_window::display_all_data)
3824         (tui_data_window::do_scroll_vertical): Update.
3825         * tui/tui-data.h (struct tui_data_window)
3826         <delete_data_content_windows>: New method.
3827
3828 2019-07-17  Tom Tromey  <[email protected]>
3829
3830         * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
3831         * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
3832
3833 2019-07-17  Tom Tromey  <[email protected]>
3834
3835         * tui/tui-windata.h (tui_display_all_data): Don't declare.
3836         * tui/tui-windata.c (tui_data_window::display_all_data): Rename
3837         from tui_display_all_data.
3838         * tui/tui-win.c
3839         (tui_data_window::do_make_visible_with_new_height): Update.
3840         * tui/tui-regs.c (tui_show_registers): Update.
3841         * tui/tui-layout.c (tui_set_layout): Update.
3842         * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
3843         method.
3844
3845 2019-07-17  Tom Tromey  <[email protected]>
3846
3847         * tui/tui-windata.h (tui_display_data_from): Don't declare.
3848         * tui/tui-windata.c (tui_display_data_from): Remove.
3849         (tui_data_window::refresh_all): Update.
3850
3851 2019-07-17  Tom Tromey  <[email protected]>
3852
3853         * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
3854         * tui/tui-windata.c (tui_display_data_from_line): Remove.
3855         (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
3856         tui_display_registers_from_line.
3857         * tui/tui-regs.h (tui_display_registers_from_line): Update.
3858         * tui/tui-regs.c (tui_display_registers_from_line): Remove
3859         "force_display" parameter.
3860
3861 2019-07-17  Tom Tromey  <[email protected]>
3862
3863         * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
3864         declare.
3865         * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
3866         Rename from tui_first_reg_element_no_inline.
3867         (tui_display_reg_element_at_line)
3868         (tui_display_registers_from_line): Update.
3869         * tui/tui-data.h (struct tui_data_window)
3870         <first_reg_element_no_inline>: New method.
3871
3872 2019-07-17  Tom Tromey  <[email protected]>
3873
3874         * tui/tui-windata.c (tui_display_data_from)
3875         (tui_data_window::do_scroll_vertical): Update.
3876         * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
3877         * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
3878         Rename from tui_line_from_reg_element_no.
3879         (tui_display_registers_from_line): Update.
3880         * tui/tui-data.h (struct tui_data_window)
3881         <line_from_reg_element_no>: New method.
3882
3883 2019-07-17  Tom Tromey  <[email protected]>
3884
3885         * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
3886         * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
3887         tui_last_regs_line_no.
3888         (tui_display_reg_element_at_line)
3889         (tui_display_registers_from_line): Update.
3890         * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
3891         method.
3892
3893 2019-07-17  Tom Tromey  <[email protected]>
3894
3895         PR tui/24722:
3896         * tui/tui-winsource.h (tui_update_all_breakpoint_info)
3897         (tui_update_breakpoint_info): Add "being_deleted" parameter.
3898         * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3899         (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
3900         (tui_update_breakpoint_info): Likewise.
3901         * tui/tui-hooks.c (tui_event_create_breakpoint)
3902         (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
3903         Update.
3904
3905 2019-07-17  Tom Tromey  <[email protected]>
3906
3907         * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
3908
3909 2019-07-17  Tom Tromey  <[email protected]>
3910
3911         * tui/tui-winsource.c (tui_update_source_window_as_is)
3912         (tui_update_source_windows_with_addr): Update.
3913         * tui/tui-source.h (tui_set_source_content)
3914         (tui_show_symtab_source): Add "win_info" parameter.
3915         * tui/tui-source.c (tui_set_source_content): Add "win_info"
3916         parameter.
3917         (tui_show_symtab_source): Likewise.
3918
3919 2019-07-17  Tom Tromey  <[email protected]>
3920
3921         * tui/tui-wingeneral.c
3922         (tui_check_and_display_highlight_if_needed): Check can_highlight.
3923
3924 2019-07-17  Tom Tromey  <[email protected]>
3925
3926         * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
3927         (struct tui_cmd_window) <can_scroll>: New method.
3928         * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
3929         method.
3930
3931 2019-07-17  Tom Tromey  <[email protected]>
3932
3933         * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
3934         do_field_signed>: Rename.  Change type of "value".
3935         * ui-out.c (ui_out::field_signed): Rename from field_int.
3936         Change type of "value".
3937         (ui_out::field_fmt_signed): Rename from field_fmt_int.  Change
3938         type of "value".
3939         * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
3940         do_field_int.  Change type of "value".
3941         * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
3942         do_field_int.  Change type of "value".
3943         * tracepoint.c (trace_status_mi, tfind_1)
3944         (print_one_static_tracepoint_marker): Update.
3945         * thread.c (print_thread_info_1, print_selected_thread_frame):
3946         Update.
3947         * stack.c (print_frame, print_frame_info): Update.
3948         * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
3949         Update.
3950         * source.c (print_source_lines_base): Update.
3951         * skip.c (info_skip_command): Update.
3952         * record-btrace.c (btrace_ui_out_decode_error)
3953         (btrace_call_history_src_line): Update.
3954         * python/py-framefilter.c (py_print_single_arg, py_print_frame):
3955         Update.
3956         * progspace.c (print_program_space): Update.
3957         * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
3958         * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
3959         do_field_int.  Change type of "value".
3960         * mi/mi-out.c (mi_ui_out::do_table_begin)
3961         (mi_ui_out::do_table_header): Update.
3962         (mi_ui_out::do_field_signed): Rename from do_field_int.  Change
3963         type of "value".
3964         * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
3965         (mi_cmd_data_list_changed_registers, output_register)
3966         (mi_cmd_data_read_memory, mi_load_progress)
3967         (mi_cmd_trace_frame_collected): Update.
3968         * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
3969         Update.
3970         * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3971         (mi_cmd_var_delete, mi_cmd_var_info_num_children)
3972         (mi_cmd_var_list_children, varobj_update_one): Update.
3973         * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
3974         (mi_cmd_stack_list_args, list_arg_or_local): Update.
3975         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
3976         * inferior.c (print_inferior): Update.
3977         * gdb_bfd.c (print_one_bfd): Update.
3978         * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3979         Update.
3980         * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
3981         * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
3982         do_field_int.  Change type of "value".
3983         * cli-out.c (cli_ui_out::do_field_signed): Rename from
3984         do_field_int.  Change type of "value".
3985         * breakpoint.c (watchpoint_check, print_breakpoint_location)
3986         (print_one_breakpoint_location, print_it_catch_fork)
3987         (print_one_catch_fork, print_it_catch_vfork)
3988         (print_one_catch_vfork, print_it_catch_solib)
3989         (print_it_catch_exec, print_it_ranged_breakpoint)
3990         (print_mention_watchpoint, print_mention_masked_watchpoint)
3991         (bkpt_print_it, update_static_tracepoint): Update.
3992         * break-catch-throw.c (print_it_exception_catchpoint): Update.
3993         * break-catch-syscall.c (print_it_catch_syscall): Update.
3994         * ada-tasks.c (print_ada_task_info): Update.
3995         * ada-lang.c (print_it_exception, print_mention_exception):
3996         Update.
3997
3998 2019-07-17  Andrew Burgess  <[email protected]>
3999
4000         PR breakpoints/24541
4001         * gdbarch.c: Regenerate.
4002         * gdbarch.h: Regenerate.
4003         * gdbarch.sh: Adjust return type and parameter types for
4004         'stap_adjust_register'.
4005         (i386_stap_adjust_register): Adjust signature and return new
4006         register name.
4007         * stap-probe.c (stap_parse_register_operand): Adjust use of
4008         'gdbarch_stap_adjust_register'.
4009
4010 2019-07-17  Tom Tromey  <[email protected]>
4011
4012         * s390-linux-nat.c (s390_watch_area): Remove typedef.  Don't
4013         declare VEC.
4014         (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
4015         std::vector.
4016         (struct s390_process_info): Add initializers.
4017         (s390_add_process): Use new.
4018         (s390_linux_nat_target::low_forget_process): Use delete.
4019         (s390_linux_nat_target::low_new_fork)
4020         (s390_linux_nat_target::stopped_by_watchpoint)
4021         (s390_linux_nat_target::low_prepare_to_resume)
4022         (s390_linux_nat_target::insert_watchpoint)
4023         (s390_linux_nat_target::insert_hw_breakpoint)
4024         (s390_linux_nat_target::remove_watchpoint)
4025         (s390_linux_nat_target::remove_hw_breakpoint): Update.
4026
4027 2019-07-16  John Baldwin  <[email protected]>
4028
4029         * aarch64-fbsd-nat.c: Include regcache.h.
4030         (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
4031         argument.
4032         (aarch64_fbsd_nat_target::fetch_registers)
4033         (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
4034         variable.
4035         * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
4036
4037 2019-07-16  John Baldwin  <[email protected]>
4038
4039         * fbsd-nat.c: Include gdbarch.h.
4040
4041 2019-07-15  Tom Tromey  <[email protected]>
4042
4043         * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
4044
4045 2019-07-15  Tom Tromey  <[email protected]>
4046
4047         * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
4048         * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
4049         * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
4050         * cli-out.c (cli_ui_out::do_field_int): New method.
4051         * ui-out.c (ui_out::field_unsigned): New method.
4052         * symfile.c (generic_load): Use field_unsigned.
4053         (print_transfer_performance): Likewise.
4054         * record-btrace.c (ui_out_field_uint): Remove.
4055         (btrace_call_history_insn_range, btrace_call_history): Use
4056         field_unsigned.
4057         * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
4058         field_unsigned.
4059         * ui-out.h (class ui_out) <field_unsigned>: New method.
4060         <do_field_unsigned>: Likewise.
4061
4062 2019-07-15  Tom Tromey  <[email protected]>
4063
4064         * mi/mi-main.c (list_available_thread_groups): Use field_string.
4065         * mi/mi-interp.c (mi_memory_changed): Use field_string.
4066         * target.c (flash_erase_command): Use field_string.
4067         * infrun.c (print_signal_received_reason): Use field_string.
4068         * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
4069         * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
4070         field_string.
4071         * ada-tasks.c (print_ada_task_info): Use field_string.
4072
4073 2019-07-15  Tom Tromey  <[email protected]>
4074
4075         * target.c (flash_erase_command): Use field_core_addr.
4076         * symfile.c (generic_load): Use field_core_addr.
4077         * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4078         Use field_core_addr.
4079         * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
4080         field_core_addr.
4081
4082 2019-07-12  Andrew Burgess  <[email protected]>
4083
4084         * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
4085         value if its desired type is smaller than a CORE_ADDR and signed.
4086
4087 2019-07-12  Andrew Burgess  <[email protected]>
4088
4089         * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
4090         of changes to field names, and use new is_reference field to
4091         decide if a property is a reference or not.
4092         * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
4093         field.
4094         (struct dwarf2_property_baton): Update header comment, rename
4095         'referenced_type' to 'property_type' and update comments.
4096         * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
4097         default property type, store in property baton, update to take
4098         accound of renamed field.
4099         (read_func_scope): Update call to attr_to_dynamic_prop.
4100         (read_array_type): Likewise.
4101         (dwarf2_per_cu_addr_sized_int_type): New function.
4102         (read_subrange_index_type): Move type finding code to
4103         dwarf2_per_cu_addr_sized_int_type.
4104         (read_subrange_type): Update calls to attr_to_dynamic_prop.
4105         (dwarf2_per_cu_addr_type): New function.
4106         (set_die_type): Update calls to attr_to_dynamic_prop.
4107
4108 2019-07-12  Andrew Burgess  <[email protected]>
4109
4110         * dwarf2read.c (read_subrange_index_type): New function.
4111         (read_subrange_type): Move code into new function and call it.
4112         * gdbtypes.c (create_range_type): Add some asserts.
4113
4114 2019-07-12  Andrew Burgess  <[email protected]>
4115
4116         * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
4117         update return statements.
4118         * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
4119         declaration, and update comment to match.
4120         * gdbtypes.c (resolve_dynamic_array): Update call to
4121         dwarf2_evaluate_property to match new return type.
4122
4123 2019-07-12  Andrew Burgess  <[email protected]>
4124
4125         * valarith.c (value_subscripted_rvalue): Change lowerbound
4126         parameter type from int to LONGEST.
4127         * value.h (value_subscripted_rvalue): Likewise in declaration.
4128
4129 2019-07-11  Andrew Burgess  <[email protected]>
4130
4131         * cli/cli-utils.c (info_print_command_completer): New function.
4132         * cli/cli-utils.h: Add 'completer.h' include, and forward
4133         declaration for 'struct cmd_list_element'.
4134         (info_print_command_completer): Declare.
4135         * stack.c (_initialize_stack): Add completer for 'info locals' and
4136         'info args'.
4137         * symtab.c (_initialize_symtab): Add completer for 'info
4138         variables' and 'info functions'.
4139         * NEWS: Mention completion for additional info commands.
4140
4141 2019-07-11  Andrew Burgess  <[email protected]>
4142
4143         * cli/cli-utils.c (extract_info_print_args): Delete.
4144         (extract_arg_maybe_quoted): Delete.
4145         (info_print_options_defs): New variable.
4146         (make_info_print_options_def_group): New function.
4147         (extract_info_print_options): Define new function.
4148         * cli/cli-utils.h (extract_info_print_args): Delete.
4149         (struct info_print_options): New structure.
4150         (extract_info_print_options): Declare new function.
4151         * stack.c (info_locals_command): Update to use new
4152         extract_info_print_options, also add a header comment.
4153         (info_args_command): Likewise.
4154         * symtab.c (info_variables_command): Likewise.
4155         (info_functions_command): Likewise.
4156
4157 2019-07-11  Andrew Burgess  <[email protected]>
4158
4159         * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
4160         to extract string arguments.
4161         * common/common-utils.c (extract_string_maybe_quoted): New function.
4162         * common/common-utils.h (extract_string_maybe_quoted): Declare.
4163
4164 2019-07-11  Tom Tromey  <[email protected]>
4165
4166         * main.c (get_init_files): Use GDBINIT, not gdbinit.
4167         * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
4168         * top.h (gdbinit): Don't declare.
4169         * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
4170         into...
4171         (_initialize_cli_cmds): ...here.  Use GDBINIT, not gdbinit.
4172         * top.c (gdb_init): Don't call init_cli_cmds.
4173         (gdbinit): Remove.
4174         * cli/cli-cmds.h (init_cli_cmds): Don't declare.
4175
4176 2019-07-11  Tom Tromey  <[email protected]>
4177
4178         * python/py-inferior.c (add_thread_object): Don't use thread_obj
4179         after it has been moved.
4180
4181 2019-07-10  Simon Marchi  <[email protected]>
4182
4183         * valops.c (value_must_coerce_to_target): Change return type to
4184         bool.
4185         * value.h (value_must_coerce_to_target): Likewise.
4186
4187 2019-07-10  Simon Marchi  <[email protected]>
4188
4189         * breakpoint.c (is_hardware_watchpoint): Remove
4190         forward-declaration.
4191         (is_masked_watchpoint): Change return type to bool.
4192         (is_tracepoint): Likewise.
4193         (is_breakpoint): Likewise.
4194         (is_hardware_watchpoint): Likewise.
4195         (is_watchpoint): Likewise.
4196         (is_no_memory_software_watchpoint): Likewise.
4197         (is_catchpoint): Likewise.
4198         (breakpoint_1): Make FILTER parameter's return type bool.
4199         is_masked_watchpoint): Change return type to bool.
4200         (save_breakpoints): Make FILTER parameter's return type bool.
4201         * breakpoint.h (is_breakpoint): Change return type to bool.
4202         (is_watchpoint): Likewise.
4203         (is_catchpoint): Likewise.
4204         (is_tracepoint): Likewise.
4205
4206 2019-07-10  Tom Tromey  <[email protected]>
4207
4208         * defs.h: Don't include gdbarch.h.
4209         * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
4210         alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
4211         ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
4212         cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
4213         cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
4214         compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
4215         cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
4216         dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
4217         dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
4218         dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
4219         frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
4220         go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
4221         i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
4222         linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
4223         mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
4224         objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
4225         parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
4226         record-btrace.c, record.h, regcache-dump.c, regcache.h,
4227         riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
4228         sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
4229         sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
4230         sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
4231         target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
4232         tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
4233         utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
4234         xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
4235         * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
4236
4237 2019-07-10  Tom Tromey  <[email protected]>
4238
4239         * ada-lang.h (is_ada_exception_catchpoint): Declare.
4240         * breakpoint.c (init_ada_exception_breakpoint): Register as
4241         bp_catchpoint.
4242         (print_one_breakpoint_location, print_one_breakpoint): Use
4243         is_ada_exception_catchpoint.
4244         * ada-lang.c (class ada_catchpoint_location): Pass
4245         bp_loc_software_breakpoint to bp_location constructor.
4246         (is_ada_exception_catchpoint): New function.
4247
4248 2019-07-10  Tom Tromey  <[email protected]>
4249
4250         * arm-tdep.c (arm_exidx_entry_s): Remove typedef.  Don't define
4251         VEC.
4252         (struct arm_exidx_entry): New method operator<.
4253         (struct arm_exidx_data) <section_maps>: Change type.
4254         (arm_exidx_data_free): Remove.
4255         (arm_exidx_data_key): Change type.  Move lower.
4256         (arm_exidx_new_objfile): Update.
4257         (arm_compare_exidx_entries): Remove.
4258         (arm_find_exidx_entry, _initialize_arm_tdep)
4259
4260 2019-07-10  Tom Tromey  <[email protected]>
4261
4262         * solib-spu.c (ocl_program_data_key): Change type.
4263         (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
4264         Update.
4265
4266 2019-07-10  Tom Tromey  <[email protected]>
4267
4268         * solib-aix.c (lm_info_aix_p): Remove typedef.  Don't define VEC.
4269         (struct solib_aix_inferior_data) <library_list>: Change type.
4270         (solib_aix_inferior_data_handle): Change type.
4271         (get_solib_aix_inferior_data): Update.
4272         (solib_aix_free_library_list): Remove.
4273         (library_list_start_library): Update.
4274         (solib_aix_parse_libraries, solib_aix_get_library_list): Change
4275         return type.
4276         (solib_aix_get_library_list)
4277         (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
4278         (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
4279
4280 2019-07-10  Tom Tromey  <[email protected]>
4281
4282         * solib-dsbt.c (struct dsbt_info): Add initializers.
4283         (solib_dsbt_pspace_data): Change type.
4284         (dsbt_pspace_data_cleanup): Remove.
4285         (get_dsbt_info, _initialize_dsbt_solib): Update.
4286
4287 2019-07-10  Tom Tromey  <[email protected]>
4288
4289         * spu-tdep.c (spu_overlay_data): Change type.
4290         (spu_get_overlay_table, spu_overlay_new_objfile)
4291         (_initialize_spu_tdep): Update.
4292
4293 2019-07-10  Tom Tromey  <[email protected]>
4294
4295         * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
4296         destructor.
4297         (dbx_objfile_data_key): Change type and declare later.
4298         (DBX_SYMFILE_INFO): Rewrite.
4299         * dbxread.c (dbx_objfile_data_key): Change type.
4300         (dbx_symfile_init): Update.
4301         (~dbx_symfile_info): Rename from dbx_free_symfile_info.  Update.
4302         (coffstab_build_psymtabs, elfstab_build_psymtabs)
4303         (stabsect_build_psymtabs, _initialize_dbxread): Update.
4304
4305 2019-07-10  Tom Tromey  <[email protected]>
4306
4307         * jit.c (jit_program_space_key): Change type.  Move lower.
4308         (get_jit_program_space_data): Update.
4309         (jit_program_space_data_cleanup): Remove.
4310         (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
4311         Update.
4312         (struct jit_program_space_data): Add initializers.
4313
4314 2019-07-10  Tom Tromey  <[email protected]>
4315
4316         * solib-darwin.c (struct darwin_info): Add initializers.
4317         (solib_darwin_pspace_data): Change type.
4318         (darwin_pspace_data_cleanup): Remove.
4319         (get_darwin_info, _initialize_darwin_solib): Update.
4320
4321 2019-07-10  Tom Tromey  <[email protected]>
4322
4323         * remote-sim.c (struct sim_inferior_data): Add initializers,
4324         constructor, and destructor.
4325         (sim_inferior_data_key): Change type.  Move lower.
4326         (check_for_duplicate_sim_descriptor): Update.
4327         (get_sim_inferior_data): Use new.  Update.
4328         (~sim_inferior_data_cleanup): Rename from
4329         sim_inferior_data_cleanup.  Simplify.
4330         (gdbsim_close_inferior, simulator_command)
4331         (sim_command_completer, _initialize_remote_sim): Update.
4332         (next_pid, INITIAL_PID): Move earlier.
4333
4334 2019-07-10  Tom Tromey  <[email protected]>
4335
4336         * python/python-internal.h (create_thread_object): Return
4337         gdbpy_ref.
4338         * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
4339         * python/py-inferior.c (struct threadlist_entry): Add
4340         constructor.
4341         <thread_obj>: Now a gdbpy_ref.
4342         (thread_to_thread_object): Update.
4343         (add_thread_object): Use new.
4344         (delete_thread_object): Use delete.
4345         (infpy_threads): Update.
4346         (py_free_inferior): Update.  Construct "inf_obj" after acquiring
4347         GIL.
4348
4349 2019-07-10  Tom Tromey  <[email protected]>
4350
4351         * valops.c (value_cast): Specialize error message for Ada.
4352
4353 2019-07-10  Simon Marchi  <[email protected]>
4354
4355         * breakpoint.c (breakpoint_1): Update doc and parameter names.
4356
4357 2019-07-10  Simon Marchi  <[email protected]>
4358
4359         * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
4360         bpstat_should_step): Return bool, adjust comments.
4361         * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
4362         bpstat_should_step): Likewise.
4363
4364 2019-07-10  Alan Hayward  <[email protected]>
4365
4366         * features/Makefile: Use feature target descriptions for Arm.
4367         * features/arm/arm-core.c: Generate new file.
4368         * features/arm/arm-fpa.c: Likewise.
4369         * features/arm/arm-m-profile-with-fpa.xml: Likewise.
4370         * features/arm/arm-m-profile.c: Likewise.
4371         * features/arm/arm-vfpv2.c: Likewise.
4372         * features/arm/arm-vfpv3.c: Likewise.
4373         * features/arm/xscale-iwmmxt.c: Likewise.
4374         * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
4375
4376 2019-07-10  Alan Hayward  <[email protected]>
4377
4378         * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
4379         ptrace earlier.
4380
4381 2019-07-10  Alan Hayward  <[email protected]>
4382
4383         * features/aarch64-pauth.c: Regenerate.
4384
4385 2019-07-09  Simon Marchi  <[email protected]>
4386
4387         * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
4388         bool.
4389         (bpstat_what): Use false instead of 0.
4390
4391 2019-07-09  Pedro Alves  <[email protected]>
4392
4393         * break-catch-throw.c (is_exception_catchpoint): New.
4394         * breakpoint.c (print_one_breakpoint_location): New parameter
4395         'raw_loc'.  Handle it.  Use
4396         is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
4397         looking at the breakpoint's type.
4398         (print_one_breakpoint): If handling "maint info breakpoints", also
4399         print locations of exception catchpoints.
4400         * breakpoint.h (is_exception_catchpoint): Declare.
4401
4402 2019-07-09  Pedro Alves  <[email protected]>
4403
4404         * break-catch-throw.c (print_one_exception_catchpoint): Skip the
4405         "addr" field.
4406         (allocate_location_exception_catchpoint): New.
4407         (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
4408         (initialize_throw_catchpoint_ops): Install
4409         allocate_location_exception_catchpoint as allocate_location
4410         method.
4411         * breakpoint.c (bpstat_what) <bp_catch>: Set action to
4412         BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
4413         bp_loc_other.
4414         (breakpoint_address_is_meaningful): Delete.
4415         (bl_address_is_meaningful): New.
4416         (breakpoint_locations_match): Adjust comment.
4417         (bp_location_from_bp_type): New, factored out of...
4418         (bp_location::bp_location(breakpoint *)): ... this.
4419         (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
4420         factored out of...
4421         (bp_location::bp_location(breakpoint *)): ... this.  Reimplement.
4422         (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
4423         breakpoint_address_is_meaningful.
4424         (bp_locations_compare): Adjust comment.
4425         (update_global_location_list): Use bl_address_is_meaningful
4426         instead of breakpoint_address_is_meaningful.
4427         * breakpoint.h (bp_location::bp_location(breakpoint *)): New
4428         explicit.
4429         (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
4430         * python/py-breakpoint.c (bppy_get_location): No longer check
4431         whether location is null.
4432
4433 2019-07-09  Pedro Alves  <[email protected]>
4434
4435         PR c++/15468
4436         * breakpoint.c (print_one_breakpoint_location): Remove
4437         single-location assert.
4438
4439 2019-07-09  Tom Tromey  <[email protected]>
4440
4441         * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
4442         * configure: Rebuild.
4443         * configure.ac: Change common to gdbsupport.
4444         * gdbsupport: Rename from common.
4445         * acinclude.m4: Change common to gdbsupport.
4446         * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
4447         (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
4448         gdbsupport.
4449         * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
4450         amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
4451         amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
4452         amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
4453         amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
4454         arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
4455         arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
4456         arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
4457         arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
4458         auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
4459         btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
4460         charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
4461         cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
4462         coff-pe-read.c, command.h, compile/compile-c-support.c,
4463         compile/compile-c.h, compile/compile-cplus-symbols.c,
4464         compile/compile-cplus-types.c, compile/compile-cplus.h,
4465         compile/compile-loc2c.c, compile/compile.c, completer.c,
4466         completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
4467         cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
4468         darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
4469         disasm.h, dtrace-probe.c, dwarf-index-cache.c,
4470         dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
4471         dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
4472         event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
4473         features/aarch64-core.c, features/aarch64-fpu.c,
4474         features/aarch64-pauth.c, features/aarch64-sve.c,
4475         features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
4476         features/i386/32bit-core.c, features/i386/32bit-linux.c,
4477         features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
4478         features/i386/32bit-segments.c, features/i386/32bit-sse.c,
4479         features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
4480         features/i386/64bit-core.c, features/i386/64bit-linux.c,
4481         features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
4482         features/i386/64bit-segments.c, features/i386/64bit-sse.c,
4483         features/i386/x32-core.c, features/riscv/32bit-cpu.c,
4484         features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
4485         features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
4486         features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
4487         features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
4488         findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
4489         gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
4490         gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
4491         go32-nat.c, guile/guile.c, guile/scm-ports.c,
4492         guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
4493         i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
4494         i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
4495         ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
4496         inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
4497         inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
4498         inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
4499         linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
4500         macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
4501         mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
4502         mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
4503         minsyms.c, mips-linux-tdep.c, namespace.h,
4504         nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
4505         nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
4506         nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
4507         nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
4508         nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
4509         nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
4510         nat/linux-waitpid.c, nat/mips-linux-watch.c,
4511         nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
4512         nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
4513         nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
4514         obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
4515         parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
4516         procfs.c, producer.c, progspace.h, psymtab.h,
4517         python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
4518         python/py-type.c, python/python.c, record-btrace.c, record-full.c,
4519         record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
4520         remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
4521         riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
4522         selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
4523         ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
4524         source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
4525         stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
4526         symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
4527         target-memory.c, target.c, target.h, target/waitstatus.c,
4528         target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
4529         top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
4530         tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
4531         unittests/array-view-selftests.c,
4532         unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
4533         unittests/common-utils-selftests.c,
4534         unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
4535         unittests/format_pieces-selftests.c,
4536         unittests/function-view-selftests.c,
4537         unittests/lookup_name_info-selftests.c,
4538         unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
4539         unittests/mkdir-recursive-selftests.c,
4540         unittests/observable-selftests.c,
4541         unittests/offset-type-selftests.c, unittests/optional-selftests.c,
4542         unittests/parse-connection-spec-selftests.c,
4543         unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
4544         unittests/scoped_fd-selftests.c,
4545         unittests/scoped_mmap-selftests.c,
4546         unittests/scoped_restore-selftests.c,
4547         unittests/string_view-selftests.c, unittests/style-selftests.c,
4548         unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
4549         unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
4550         utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
4551         value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
4552         xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
4553         xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
4554
4555 2019-07-09  Andrew Burgess  <[email protected]>
4556
4557         * linespec.c (decode_digits_list_mode): Set explicit_line to a
4558         bool value.
4559         (decode_digits_ordinary): Set explicit_line field in sal.
4560         * symtab.c (skip_prologue_sal): Don't skip prologue for a
4561         symtab_and_line that was set on an explicit line number in
4562         assembler code.  Do always update the recorded symtab and line if
4563         we do skip the prologue.
4564
4565 2019-07-09  Andrew Burgess  <[email protected]>
4566
4567         * breakpoint.c (set_breakpoint_location_function): Remove
4568         explicit_loc parameter.
4569         (momentary_breakpoint_from_master): Update call to
4570         set_breakpoint_location_function.
4571         (add_location_to_breakpoint): Likewise.
4572
4573 2019-07-09  Andrew Burgess  <[email protected]>
4574
4575         * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
4576         required features based on default bfd type when no specific bfd
4577         is present.
4578
4579 2019-07-08  Philippe Waroquiers  <[email protected]>
4580
4581         * NEWS: Mention that GDB printf and eval commands can now print
4582         C-style and Ada-style convenience var strings without
4583         calling the inferior.
4584         * printcmd.c (printf_c_string): Locally print GDB internal var
4585         instead of transiting via the inferior.
4586         (printf_wide_c_string): Likewise.
4587
4588 2019-07-04  Alan Hayward  <[email protected]>
4589
4590         PR breakpoints/25011
4591         * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
4592
4593 2019-07-04  Tom Tromey  <[email protected]>
4594
4595         PR tui/24724:
4596         * tui/tui-winsource.c (tui_clear_source_content): Update.
4597         (tui_source_window_base::set_is_exec_point_at): Fix comment.
4598         (tui_update_breakpoint_info): Update.
4599         (tui_set_exec_info_content): Update.
4600         * tui/tui-source.c (tui_set_source_content_nil): Update.
4601         * tui/tui-disasm.c (tui_set_disassem_content): Don't set
4602         has_break.
4603         * tui/tui-data.h (enum tui_bp_flag): New.
4604         (tui_bp_flags): New enum flags type.
4605         (struct tui_source_element) <break_mode>: Change type.  Rename
4606         from has_break.
4607         (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
4608         (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define.  Now enum
4609         constants.
4610         * tui/tui-winsource.h: Fix comment.
4611
4612 2019-07-04  Alan Hayward  <[email protected]>
4613
4614         * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
4615         * aarch64-linux-nat.c (fetch_fpregs_from_thread)
4616         (store_fpregs_to_thread)
4617         (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
4618         * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
4619         (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
4620         (IWMMXT_REGS_SIZE): Add define.
4621         * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
4622         (fetch_vfp_regs, store_vfp_regs)
4623         (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
4624         * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
4625
4626 2019-07-04  Alan Hayward  <[email protected]>
4627
4628         * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
4629         defines.
4630         * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
4631         * arch/arm.h (INT_REGISTER_SIZE) Rename from...
4632         (ARM_INT_REGISTER_SIZE): ...to this.
4633         (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
4634         * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
4635         (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
4636         (arm_linux_collect_gregset, supply_nwfpe_register)
4637         (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
4638         defines.
4639         * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
4640         (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
4641         * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
4642         * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
4643         (arm_return_in_memory, arm_store_return_value)
4644         (arm_get_longjmp_target, arm_register_g_packet_guesses)
4645         (arm_record_ld_st_multiple): Likewise.
4646         * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
4647         * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
4648
4649 2019-07-04  Alan Hayward  <[email protected]>
4650
4651         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
4652         AARCH64_DISPLACED_MODIFIED_INSNS.
4653         * aarch64-tdep.c (struct aarch64_displaced_step_data)
4654         (aarch64_displaced_step_copy_insn): Likewise.
4655         * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
4656         (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
4657         * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
4658         ARM_DISPLACED_MODIFIED_INSNS.
4659         * arm-tdep.c (arm_gdbarch_init): Likewise.
4660         * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
4661         (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
4662         (struct arm_displaced_step_closure): Use
4663         ARM_DISPLACED_MODIFIED_INSNS.
4664
4665 2019-07-04  Alan Hayward  <[email protected]>
4666
4667         * features/Makefile: Remove unused xml files.
4668         * features/aarch64.xml: Remove.
4669         * features/i386/amd64-avx-avx512-linux.xml: Remove.
4670         * features/i386/amd64-avx-avx512.xml: Remove.
4671         * features/i386/amd64-avx-linux.xml: Remove.
4672         * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
4673         * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
4674         * features/i386/amd64-avx-mpx-linux.xml: Remove.
4675         * features/i386/amd64-avx-mpx.xml: Remove.
4676         * features/i386/amd64-avx.xml: Remove.
4677         * features/i386/amd64-linux.xml: Remove.
4678         * features/i386/amd64-mpx-linux.xml: Remove.
4679         * features/i386/amd64-mpx.xml: Remove.
4680         * features/i386/amd64.xml: Remove.
4681         * features/i386/i386-avx-avx512-linux.xml: Remove.
4682         * features/i386/i386-avx-avx512.xml: Remove.
4683         * features/i386/i386-avx-linux.xml: Remove.
4684         * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
4685         * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
4686         * features/i386/i386-avx-mpx-linux.xml: Remove.
4687         * features/i386/i386-avx-mpx.xml: Remove.
4688         * features/i386/i386-avx.xml: Remove.
4689         * features/i386/i386-linux.xml: Remove.
4690         * features/i386/i386-mmx-linux.xml: Remove.
4691         * features/i386/i386-mmx.xml: Remove.
4692         * features/i386/i386-mpx-linux.xml: Remove.
4693         * features/i386/i386-mpx.xml: Remove.
4694         * features/i386/i386.xml: Remove.
4695         * features/i386/x32-avx-avx512-linux.xml: Remove.
4696         * features/i386/x32-avx-linux.xml: Remove.
4697         * features/i386/x32-linux.xml: Remove.
4698
4699 2019-07-04  Alan Hayward  <[email protected]>
4700
4701         * regformats/aarch64.dat: Remove.
4702         * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
4703         * regformats/i386/amd64-avx-linux.dat: Remove.
4704         * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
4705         * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
4706         * regformats/i386/amd64-linux.dat: Remove.
4707         * regformats/i386/amd64-mpx-linux.dat: Remove.
4708         * regformats/i386/amd64.dat: Remove.
4709         * regformats/i386/i386-avx-avx512-linux.dat: Remove.
4710         * regformats/i386/i386-avx-linux.dat: Remove.
4711         * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
4712         * regformats/i386/i386-avx-mpx-linux.dat: Remove.
4713         * regformats/i386/i386-linux.dat: Remove.
4714         * regformats/i386/i386-mmx-linux.dat: Remove.
4715         * regformats/i386/i386-mpx-linux.dat: Remove.
4716         * regformats/i386/i386.dat: Remove.
4717         * regformats/i386/x32-avx-avx512-linux.dat: Remove.
4718         * regformats/i386/x32-avx-linux.dat: Remove.
4719         * regformats/i386/x32-linux.dat: Remove.
4720
4721 2019-07-04  Alan Hayward  <[email protected]>
4722
4723         * aarch64-tdep.c: Remove xml self tests.
4724         * amd64-linux-tdep.c: Likewise.
4725         * amd64-tdep.c: Likewise.
4726         * i386-linux-tdep.c: Likewise.
4727         * i386-tdep.c: Likewise.
4728
4729 2019-07-03  Pedro Alves  <[email protected]>
4730
4731         PR cli/24732
4732         * cli/cli-cmds.c (struct pipe_cmd_opts): New.
4733         (pipe_cmd_option_defs): New.
4734         (make_pipe_cmd_options_def_group): New.
4735         (pipe_command): Use gdb::option::process_options.
4736         (pipe_command_completer): New function.
4737         (_initialize_cli_cmds): Install completer for "pipe" command.
4738
4739 2019-07-03  Pedro Alves  <[email protected]>
4740
4741         * cli/cli-option.c (union option_value) <string>: New field.
4742         (struct option_def_and_value): Add ctor, move ctor, dtor and
4743         use DISABLE_COPY_AND_ASSIGN.
4744         (option_def_and_value::clear_value): New.
4745         (parse_option, save_option_value_in_ctx, get_val_type_str)
4746         (add_setshow_cmds_for_options): Handle var_string.
4747         * cli-option.h (union option_def::var_address) <string>: New
4748         field.
4749         (struct string_option_def): New.
4750         * maint-test-options.c (struct test_options_opts): Add default
4751         ctor and use DISABLE_COPY_AND_ASSIGN.
4752         <string_opt>: New field.
4753         (test_options_opts::~test_options_opts): New.
4754         (test_options_opts::dump): Also dump "-string".
4755         (test_options_option_defs): Install "string.
4756
4757 2019-07-03  Pedro Alves  <[email protected]>
4758
4759         * cli/cli-option.c (parse_option) <var_enum>: Don't return an
4760         option_value with a null enumeration.
4761         (complete_options): Save the option values in the context.
4762         (save_option_value_in_ctx): New, factored out from ...
4763         (process_options): ... here.
4764         * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
4765         of the function.
4766         * maint-test-options.c (test_options_opts::dump): New, factored
4767         out from ...
4768         (maintenance_test_options_command_mode): ... here.
4769         (maintenance_test_options_command_completion_result): Delete.
4770         (maintenance_test_options_command_completion_text): Update
4771         comment.
4772         (maintenance_show_test_options_completion_result): Change
4773         prototype.  Just print
4774         maintenance_test_options_command_completion_text.
4775         (save_completion_result): New.
4776         (maintenance_test_options_completer_mode): Pass options context to
4777         complete_options, and then save a dump.
4778         (_initialize_maint_test_options): Use add_cmd to install "maint
4779         show test-options-completion-result".
4780
4781 2019-07-03  Pedro Alves  <[email protected]>
4782
4783         * NEWS (New commands): Mention "with" and "maint with".
4784         * cli/cli-cmds.c (with_command_1, with_command_completer_1)
4785         (with_command, with_command_completer): New.
4786         (pipe_command): Adjust to new repeat_previous
4787         interface.
4788         (_initialize_cli_cmds): Install the "with" command and its "w"
4789         alias.
4790         * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
4791         declarations.
4792         * cli/cli-setshow.c (parse_cli_var_uinteger)
4793         (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
4794         argument strings for all var_types.
4795         (get_setshow_command_value_string): New, factored out from ...
4796         (do_show_command): ... this.
4797         * cli/cli-setshow.h: Include <string>.
4798         (get_setshow_command_value_string): Declare.
4799         * command.h (repeat_previous): Now returns const char *.  Adjust
4800         comment.
4801         * maint.c: Include "cli/cli-cmds.h".
4802         (maintenance_with_cmd, maintenance_with_cmd_completer): New.
4803         (_initialize_maint_cmds): Register the "maintenance with" command.
4804         * top.c (repeat_previous): Move bits from pipe_command here:
4805         Return the saved command line, if any; error out if there's no
4806         command to relaunch.
4807
4808 2019-07-03  Pedro Alves  <[email protected]>
4809
4810         * NEWS (New commands): Mention "maint set/show test-settings"
4811         instead of "maint test-settings".
4812         * maint-test-settings.c (maintenance_test_settings_list): Delete.
4813         (maintenance_test_settings_set_list): Rename to ...
4814         (maintenance_set_test_settings_list): ... this.
4815         (maintenance_test_settings_show_list): Rename to  ...
4816         (maintenance_show_test_settings_list): ... this.
4817         (maintenance_test_settings_cmd): Delete.
4818         (maintenance_test_settings_set_cmd): ...
4819         (maintenance_set_test_settings_cmd): ... this.
4820         (maintenance_test_settings_show_cmd): ...
4821         (maintenance_show_test_settings_cmd): ... this.
4822         (maintenance_test_settings_show_value_cmd):
4823         (maintenance_show_test_settings_value_cmd): ... this.
4824         (_initialize_maint_test_settings): No longer install the "maint
4825         test-settings" prefix command.  Rename "maint test-settings set"
4826         to "maint set test-settings", and "maint test-settings show" to
4827         "maint show test-settings".  Adjust all subcommands.
4828
4829 2019-07-03  Pedro Alves  <[email protected]>
4830
4831         * maint-test-settings.c: Fix file's intro comment.  Replace all
4832         references to "test-options" with references to "test-settings",
4833         in comments.
4834
4835 2019-07-03  Pedro Alves  <[email protected]>
4836
4837         * maint-test-settings.c (maintenance_test_settings_xxx)
4838         (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
4839         New.
4840         (maintenance_test_settings_enums): Use them.
4841         (maintenance_test_settings_enum): Default to
4842         maintenance_test_settings_xxx.
4843         (_initialize_maint_test_settings): Initialize
4844         MAINTENANCE_TEST_SETTINGS_FILENAME.
4845
4846 2019-07-02  Simon Marchi  <[email protected]>
4847
4848         * breakpoint.h (remove_breakpoints_inf): Change return type to
4849         void, move function documentation here.
4850         * breakpoint.c (remove_breakpoints_inf): Change return type to
4851         void, move function documentation to header.
4852
4853 2019-07-02  Pedro Alves  <[email protected]>
4854
4855         * NEWS (Completion improvements): Mention "info threads".
4856         * thread.c (struct info_threads_opts, info_threads_option_defs)
4857         (make_info_threads_options_def_group): New.
4858         (info_threads_command): Use gdb::option::process_options.
4859         (info_threads_command_completer): New.
4860         (_initialize_thread): Use gdb::option::build_help to build the
4861         help text for "info threads".
4862
4863 2019-07-02  Simon Marchi  <[email protected]>
4864
4865         * defs.h (generic_load): Move from here...
4866         * symfile.h (generic_load): ... to here.  Rename name parameter
4867         to args.
4868         * symfile.c (generic_load): Add comment.
4869
4870 2019-07-01  Tom Tromey  <[email protected]>
4871
4872         * dwarf2read.c
4873         (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
4874         declaration of without_params.  Fix formatting.
4875
4876 2019-07-01  Tom Tromey  <[email protected]>
4877
4878         * ada-exp.y (find_primitive_type): Update.
4879         * ada-lang.h (ada_lookup_symbol): Update.
4880         * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
4881         parameter.
4882         (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
4883
4884 2019-06-28  Sergio Durigan Junior  <[email protected]>
4885
4886         PR breakpoints/24541
4887         * gdbarch.c: Regenerate.
4888         * gdbarch.h: Regenerate.
4889         * gdbarch.sh: Add 'stap_adjust_register'.
4890         * i386-tdep.c: Include '<unordered_set>'.
4891         (i386_stap_adjust_register): New function.
4892         (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
4893         * stap-probe.c (stap_parse_register_operand): Call
4894         'gdbarch_stap_adjust_register'.
4895
4896 2019-06-28  Sergio Durigan Junior  <[email protected]>
4897
4898         PR python/24742
4899         https://bugzilla.redhat.com/show_bug.cgi?id=1723564
4900         * python/python.c (do_start_initialization): Use 'xmalloc'
4901         instead of 'PyMem_Malloc'.
4902
4903 2019-06-28  Tom Tromey  <[email protected]>
4904
4905         * dwarf2read.c (partial_die_info::read): Prefer the linkage name
4906         for Ada.
4907
4908 2019-06-27  Tom Tromey  <[email protected]>
4909
4910         * arm-tdep.c (arm_objfile_data_key): Move lower.  Change type to
4911         objfile_key.
4912         (arm_find_mapping_symbol, arm_record_special_symbol)
4913         (_initialize_arm_tdep): Update.
4914         (arm_objfile_data_free): Remove.
4915
4916 2019-06-27  Tom Tromey  <[email protected]>
4917
4918         * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
4919         to cp_print_static_field.
4920
4921 2019-06-26  Tom Tromey  <[email protected]>
4922
4923         * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
4924         * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
4925         declare.
4926
4927 2019-06-26  Alan Hayward  <[email protected]>
4928
4929         * features/aarch64-core.c (create_feature_aarch64_core):
4930         Regenerate.
4931         * features/aarch64-core.xml: Add cpsr flags.
4932
4933 2019-06-26  Alan Hayward  <[email protected]>
4934
4935         * arm-tdep.c (arm_gnu_triplet_regexp): New function.
4936         (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
4937
4938 2019-06-25  Simon Marchi  <[email protected]>
4939
4940         * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
4941         field.
4942         (arm_find_mapping_symbol): Sort mapping symbol vectors on first
4943         use.
4944         (arm_record_special_symbol): Don't insert new symbol in sorted
4945         position, push it at the end.
4946
4947 2019-06-25  Simon Marchi  <[email protected]>
4948
4949         * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
4950         (arm_mapping_symbol_s): Remove.
4951         (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
4952         (arm_mapping_symbol_vec): New typedef.
4953         (struct arm_per_objfile): Add constructor.
4954         <section_maps>: Change type to
4955         std::unique_ptr<arm_mapping_symbol_vec[]>.
4956         (arm_compare_mapping_symbols): Remove.
4957         (arm_find_mapping_symbol): Adjust to section_maps type change.
4958         (arm_objfile_data_free): Call delete on arm_per_objfile.
4959         (arm_record_special_symbol): Adjust to section_maps type change.
4960         Allocate arm_per_objfile with new.
4961
4962 2019-06-25  Philippe Waroquiers  <[email protected]>
4963
4964         * cli/cli-cmds.c (alias_command): Compare the alias prefix
4965         with the command prefix.
4966
4967 2019-06-25  Tom Tromey  <[email protected]>
4968
4969         * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
4970         * tui/tui-data.c (~tui_gen_win_info): Remove "if".
4971
4972 2019-06-25  Tom Tromey  <[email protected]>
4973
4974         * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
4975         type.
4976         * tui/tui-data.h (struct tui_gen_win_info): Make constructor
4977         protected.
4978
4979 2019-06-25  Tom Tromey  <[email protected]>
4980
4981         * tui/tui-winsource.c
4982         (tui_source_window_base::set_is_exec_point_at): Add check against
4983         LOA_ADDRESS.
4984
4985 2019-06-25  Tom Tromey  <[email protected]>
4986
4987         * tui/tui-source.c (tui_set_source_content): Don't check before
4988         xfree.
4989         * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
4990
4991 2019-06-25  Tom Tromey  <[email protected]>
4992
4993         * tui/tui-winsource.h (tui_update_source_window_as_is)
4994         (tui_alloc_source_buffer, tui_line_is_displayed)
4995         (tui_addr_is_displayed): Change type of win_info.
4996         * tui/tui-winsource.c (tui_update_source_window_as_is)
4997         (tui_clear_source_content, tui_show_source_line)
4998         (tui_show_source_content, tui_source_window_base::refill)
4999         (tui_source_window_base::set_is_exec_point_at)
5000         (tui_source_window_base::set_is_exec_point_at)
5001         (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
5002         (tui_alloc_source_buffer, tui_line_is_displayed)
5003         (tui_addr_is_displayed): Change type of win_info.  Update.
5004         * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5005         (tui_source_window_base::do_make_visible_with_new_height):
5006         Update.
5007         * tui/tui-source.c (tui_set_source_content)
5008         (tui_set_source_content_nil)
5009         (tui_source_window::do_scroll_vertical): Update.
5010         * tui/tui-layout.c (show_layout): Update.
5011         * tui/tui-disasm.c (tui_set_disassem_content)
5012         (tui_disasm_window::do_scroll_vertical): Update.
5013         * tui/tui-data.h (tui_win_content): Remove.
5014         (struct tui_gen_win_info) <content, content_size>: Remove.
5015         (struct tui_source_element): Add initializers and destructor.
5016         (union tui_which_element, struct tui_win_element): Remove.
5017         (struct tui_source_window_base) <content>: New field.
5018         (struct tui_data_window): Remove destructor.
5019         (tui_alloc_content, tui_free_win_content)
5020         (tui_free_all_source_wins_content): Don't declare.
5021         * tui/tui-data.c (tui_initialize_static_data): Update.
5022         (init_content_element, tui_alloc_content): Remove.
5023         (~tui_gen_win_info): Update.
5024         (~tui_data_window, tui_free_all_source_wins_content)
5025         (tui_free_win_content, free_content, free_content_elements):
5026         Remove.
5027
5028 2019-06-25  Tom Tromey  <[email protected]>
5029
5030         * tui/tui-winsource.h (tui_clear_source_content)
5031         (tui_erase_source_content, tui_show_source_content): Change type
5032         of win_info.
5033         * tui/tui-winsource.c (tui_clear_source_content)
5034         (tui_erase_source_content, tui_show_source_content): Change type
5035         of win_info.
5036         * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5037         * tui/tui-source.h (tui_set_source_content_nil): Change type of
5038         win_info.
5039         * tui/tui-source.c (tui_set_source_content_nil): Change type of
5040         win_info.
5041         * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
5042
5043 2019-06-25  Tom Tromey  <[email protected]>
5044
5045         * tui/tui-winsource.c (tui_clear_source_content)
5046         (tui_source_window_base::set_is_exec_point_at): Update.
5047         * tui/tui-source.c (tui_set_source_content_nil): Update.
5048         * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
5049         a bool.
5050         * tui/tui-data.c (init_content_element): Update.
5051
5052 2019-06-25  Tom Tromey  <[email protected]>
5053
5054         * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
5055         * tui/tui-win.c (make_invisible_and_set_new_height): Update.
5056         * tui/tui-layout.c (init_and_make_win): Update.
5057         * tui/tui.h (enum tui_win_type): Update.
5058         * tui/tui-data.h (tui_win_is_auxiliary): Rename from
5059         tui_win_is_auxillary.
5060         * tui/tui-data.c (tui_win_is_auxiliary): Rename from
5061         tui_win_is_auxillary.
5062
5063 2019-06-25  Tom Tromey  <[email protected]>
5064
5065         * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
5066         * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
5067         (tui_delete_data_content_windows, tui_display_all_data)
5068         (tui_data_window::do_scroll_vertical, tui_display_data_from):
5069         Update.
5070         * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
5071         * tui/tui-regs.c (tui_last_regs_line_no)
5072         (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
5073         (tui_show_registers): Update.
5074         (tui_show_register_group): Return void.  Update.
5075         (tui_display_registers_from, tui_display_reg_element_at_line)
5076         (tui_display_registers_from_line, tui_check_register_values):
5077         Update.
5078         * tui/tui-data.h (union tui_which_element) <data_window>: Remove
5079         member.
5080         (struct tui_data_window) <regs_content>: Now a std::vector.
5081         <regs_content_count>: Remove.
5082         (tui_add_content_elements, tui_free_data_content): Don't declare.
5083         * tui/tui-data.c (tui_data_window::clear_detail): Update.
5084         (init_content_element): Remove DATA_WIN case.  Add assert.
5085         (tui_add_content_elements): Remove.
5086         (tui_data_window): Update.
5087         (tui_free_data_content): Remove.
5088         (free_content_elements): Remove DATA_WIN case.
5089
5090 2019-06-25  Tom Tromey  <[email protected]>
5091
5092         * tui/tui-data.c (tui_data_item_window): Update.
5093         * tui/tui-windata.h (tui_check_data_values): Don't declare.
5094         * tui/tui-windata.c (tui_display_all_data)
5095         (tui_display_data_from_line): Update.
5096         (tui_check_data_values): Remove.
5097         * tui/tui-regs.c (tui_show_register_group)
5098         (tui_display_reg_element_at_line): Update.
5099         * tui/tui-hooks.c (tui_register_changed)
5100         (tui_refresh_frame_and_register_information): Call
5101         tui_check_register_values.
5102         * tui/tui-data.h (struct tui_data_window) <data_content,
5103         data_content_count, data_type>: Remove.
5104         (enum tui_data_type): Remove.
5105
5106         * tui/tui-data.c (tui_data_window::clear_detail)
5107         (~tui_data_window): Update.
5108
5109 2019-06-25  Tom Tromey  <[email protected]>
5110
5111         * tui/tui-windata.h (tui_first_data_item_displayed): Don't
5112         declare.
5113         * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
5114         Rename from tui_first_data_item_displayed.  Update.
5115         (tui_data_window::refresh_all)
5116         (tui_data_window::do_scroll_vertical): Update.
5117         * tui/tui-data.h (struct tui_data_window)
5118         <first_data_item_displayed>: Declare new method.
5119
5120 2019-06-25  Tom Tromey  <[email protected]>
5121
5122         * tui/tui-data.h (tui_init_generic_part): Don't declare.
5123         * tui/tui-data.c (tui_init_generic_part): Remove, moving
5124         contents...
5125         (tui_initialize_static_data): ...here.
5126
5127 2019-06-25  Tom Tromey  <[email protected]>
5128
5129         * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5130         (tui_display_registers_from, tui_check_register_values): Update.
5131         (tui_display_register): Remove win_info parameter; update.
5132         (tui_get_register): Change type of parameters.
5133         * tui/tui-data.h (struct tui_data_element): Remove.
5134         (union tui_which_element) <data>: Remove.
5135         <data_window>: Change type.
5136         (struct tui_data_item_window): New.
5137         * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
5138         case.  Add assert.
5139         (~tui_data_item_window): New destructor.
5140         (free_content_elements): Remove DATA_ITEM_WIN case.
5141
5142 2019-06-25  Tom Tromey  <[email protected]>
5143
5144         * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
5145         Remove.
5146
5147 2019-06-25  Tom Tromey  <[email protected]>
5148
5149         * tui/tui-data.h (struct tui_command_element): Remove.
5150         (union tui_which_element) <command>: Remove.
5151         * tui/tui-data.c (init_content_element): Remove CMD_WIN case.  Add
5152         assert.
5153         (free_content_elements): Remove CMD_WIN case.
5154
5155 2019-06-25  Tom Tromey  <[email protected]>
5156
5157         * tui/tui-layout.c (tui_set_layout): Update.
5158         * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
5159         * tui/tui-data.c (layout_def): Update.
5160
5161 2019-06-25  Tom Tromey  <[email protected]>
5162
5163         * tui/tui-wingeneral.c (tui_refresh_all): Update.
5164         * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5165         (tui_source_window_base::set_new_height): Update.
5166         * tui/tui-stack.c (tui_make_status_line): Change parameter type.
5167         Update.
5168         (tui_set_locator_fullname, tui_set_locator_info)
5169         (tui_show_frame_info): Update.
5170         * tui/tui-source.c (tui_set_source_content)
5171         (tui_source_is_displayed): Update.
5172         * tui/tui-layout.c (show_source_disasm_command, show_data)
5173         (show_source_or_disasm_and_command): Update.
5174         * tui/tui-disasm.c (tui_set_disassem_content)
5175         (tui_get_begin_asm_address): Update.
5176         * tui/tui-data.h (struct tui_locator_element): Remove.
5177         (union tui_which_element) <locator>: Remove.
5178         (struct tui_locator_window): New.
5179         (tui_locator_win_info_ptr): Change return type.
5180         * tui/tui-data.c (_locator): Change type.
5181         (tui_locator_win_info_ptr): Change return type.
5182         (init_content_element): Remove LOCATOR_WIN case.  Add assert.
5183         (tui_alloc_content): Add assert.
5184
5185 2019-06-25  Tom Tromey  <[email protected]>
5186
5187         * tui/tui-winsource.c
5188         (tui_exec_info_window::maybe_allocate_content): New method.
5189         (tui_set_exec_info_content, tui_show_exec_info_content): Update.
5190         * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
5191         (make_source_or_disasm_window): Add cast.
5192         * tui/tui-data.h (union tui_which_element) <simple_string>:
5193         Remove.
5194         (struct tui_source_info): New.
5195         (struct tui_source_window_base) <execution_info>: Change type.
5196         * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
5197         case, and add assert.
5198         (tui_alloc_content): Add assert.
5199
5200 2019-06-25  Tom Tromey  <[email protected]>
5201
5202         * tui/tui-data.h (tui_alloc_win_info): Don't declare.
5203         * tui/tui-layout.c (init_and_make_win): Use "new" directly.
5204         * tui/tui-data.c (tui_alloc_win_info): Remove.
5205
5206 2019-06-25  Tom Tromey  <[email protected]>
5207
5208         * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
5209         * tui/tui-wingeneral.c (tui_unhighlight_win): Check
5210         can_highlight.
5211
5212 2019-06-25  Tom Tromey  <[email protected]>
5213
5214         * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
5215         make_visible_with_new_height method.
5216         (tui_win_info::make_visible_with_new_height): New method.
5217         (tui_source_window_base::do_make_visible_with_new_height)
5218         (tui_data_window::do_make_visible_with_new_height)
5219         (tui_cmd_window::do_make_visible_with_new_height): New methods.
5220         (make_visible_with_new_height): Remove.
5221         (tui_resize_all, tui_adjust_win_heights): Use
5222         make_visible_with_new_height method.
5223         * tui/tui-data.h (struct tui_win_info)
5224         <do_make_visible_with_new_height, make_visible_with_new_height>:
5225         New methods.
5226         (struct tui_source_window_base, struct tui_data_window)
5227         (struct tui_cmd_window) <do_make_visible_with_new_height>: New
5228         methods.
5229
5230 2019-06-25  Tom Tromey  <[email protected]>
5231
5232         * tui/tui-win.c (tui_source_window_base::update_tab_width): New
5233         method.
5234         (update_tab_width): Call update_tab_width method.
5235         * tui/tui-data.h (struct tui_win_info)
5236         (struct tui_source_window_base) <update_tab_width>: New methods.
5237
5238 2019-06-25  Tom Tromey  <[email protected]>
5239
5240         * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
5241         parameter.
5242         * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
5243         parameter.
5244         (tui_gen_win_info::make_visible): Update.
5245         * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
5246         parameter.
5247         * tui/tui-data.h (enum tui_box): New enum.
5248         (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
5249
5250 2019-06-25  Tom Tromey  <[email protected]>
5251
5252         * tui/tui-layout.c (make_source_or_disasm_window): Always use
5253         init_and_make_win for EXEC_INFO_WIN.
5254         * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
5255         longer inline.
5256         (struct tui_win_info) <~tui_win_info>: Inline.
5257         (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5258         Don't declare.
5259         * tui/tui-data.c (source_win, disasm_win): Remove globals.
5260         (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5261         Remove.
5262         (tui_initialize_static_data): Update.
5263         (~tui_gen_win_info): Handle more cleanup here.
5264         (~tui_source_window_base): Delete "execution_info".
5265         (~tui_win_info): Move code to ~tui_gen_win_info; remove.
5266
5267 2019-06-25  Tom Tromey  <[email protected]>
5268
5269         * tui/tui-layout.c (make_command_window): Don't set
5270         can_highlight.
5271         (show_source_disasm_command): Call the reset method.
5272         (show_data): Don't set can_highlight.  Call the reset method.
5273         (tui_gen_win_info::reset): Rename from init_gen_win_info
5274         (init_and_make_win): Simplify.  Return tui_gen_win_info.
5275         (show_source_or_disasm_and_command): Call the reset method.
5276         * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
5277         (struct tui_cmd_window): Set can_highlight.
5278
5279 2019-06-25  Tom Tromey  <[email protected]>
5280
5281         * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
5282         from make_visible.
5283         (tui_make_visible, tui_make_invisible): Rewrite.
5284         (tui_win_info::make_visible): Remove.
5285         (tui_source_window_base::make_visible): Update.
5286         * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
5287         method.  Moved from...
5288         (struct tui_win_info) <make_visible>: ...here.
5289
5290 2019-06-25  Tom Tromey  <[email protected]>
5291
5292         * tui/tui-winsource.c
5293         (tui_source_window_base::do_scroll_horizontal): Remove direction
5294         parameter.
5295         * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
5296         direction parameter.
5297         * tui/tui-win.c (tui_win_info::forward_scroll)
5298         (tui_win_info::backward_scroll, tui_win_info::left_scroll)
5299         (tui_win_info::right_scroll): Update.
5300         * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
5301         direction parameter.
5302         * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
5303         direction parameter.
5304         * tui/tui-data.h (enum tui_scroll_direction): Remove.
5305         (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
5306         Remove direction parameter.
5307         (struct tui_source_window_base, struct tui_source_window)
5308         (struct tui_disasm_window, struct tui_data_window)
5309         (struct tui_cmd_window): Update.
5310
5311 2019-06-25  Tom Tromey  <[email protected]>
5312
5313         * tui/tui-winsource.h (tui_set_exec_info_content)
5314         (tui_show_exec_info_content, tui_erase_exec_info_content)
5315         (tui_clear_exec_info_content, tui_update_exec_info): Change
5316         argument to tui_source_window_base.
5317         * tui/tui-winsource.c (tui_set_exec_info_content)
5318         (tui_show_exec_info_content, tui_erase_exec_info_content)
5319         (tui_clear_exec_info_content, tui_update_exec_info): Change
5320         argument to tui_source_window_base.
5321
5322 2019-06-25  Tom Tromey  <[email protected]>
5323
5324         * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
5325         * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
5326
5327 2019-06-25  Tom Tromey  <[email protected]>
5328
5329         * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
5330         check.
5331
5332 2019-06-25  Tom Tromey  <[email protected]>
5333
5334         * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
5335         type to void.
5336         * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
5337         type to void.
5338         * tui/tui-source.c (tui_set_source_content): Update.
5339         * tui/tui-disasm.c (tui_set_disassem_content): Update.
5340
5341 2019-06-25  Tom Tromey  <[email protected]>
5342
5343         * tui/tui-win.c (window_name_completer, tui_set_focus)
5344         (tui_all_windows_info): Use name method.
5345         * tui/tui-data.h (struct tui_gen_win_info)
5346         (struct tui_source_window, struct tui_disasm_window)
5347         (struct tui_data_window, struct tui_cmd_window) <name>: New
5348         method.
5349         (tui_win_name): Don't declare.
5350         * tui/tui-data.c (tui_partial_win_by_name): Use name method.
5351         (tui_win_name): Remove.
5352
5353 2019-06-25  Tom Tromey  <[email protected]>
5354
5355         * tui/tui-winsource.h (tui_update_source_window)
5356         (tui_update_source_window_as_is): Change parameter type.
5357         * tui/tui-winsource.c (tui_update_source_window): Change win_info
5358         to be a tui_source_window_base.
5359         (tui_update_source_window_as_is): Likewise.
5360         * tui/tui-win.c (make_visible_with_new_height): Update.
5361
5362 2019-06-25  Tom Tromey  <[email protected]>
5363
5364         * tui/tui-winsource.c (tui_erase_source_content)
5365         (tui_show_source_content, tui_show_exec_info_content)
5366         (tui_erase_exec_info_content): Use refresh_window method.
5367         * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
5368         * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
5369         from tui_refresh_win.
5370         (tui_data_window::refresh_window): New method.
5371         (tui_win_info::refresh, tui_source_window_base::refresh)
5372         (tui_refresh_all): Use refresh_window method.
5373         * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
5374         method.
5375         * tui/tui-regs.c (tui_display_register): Call refresh_window
5376         method.
5377         * tui/tui-layout.c (show_source_disasm_command)
5378         (show_source_or_disasm_and_command): Call refresh_window method.
5379         * tui/tui-data.h (struct tui_gen_win_info)
5380         (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
5381         New method.
5382
5383 2019-06-25  Tom Tromey  <[email protected]>
5384
5385         * tui/tui.c (tui_rl_other_window, tui_enable)
5386         (tui_is_window_visible, tui_get_command_dimension): Update.
5387         * tui/tui-winsource.c (tui_update_source_window_as_is)
5388         (tui_clear_source_content, tui_erase_source_content)
5389         (tui_show_source_line, tui_source_window_base::refill)
5390         (tui_source_window_base::do_scroll_horizontal)
5391         (tui_source_window_base::set_is_exec_point_at)
5392         (tui_update_breakpoint_info, tui_set_exec_info_content)
5393         (tui_alloc_source_buffer, tui_line_is_displayed)
5394         (tui_addr_is_displayed): Update.
5395         * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
5396         (tui_check_and_display_highlight_if_needed)
5397         (tui_win_info::make_visible, tui_win_info::refresh)
5398         (tui_refresh_all): Update.
5399         * tui/tui-windata.c (tui_first_data_item_displayed)
5400         (tui_delete_data_content_windows, tui_erase_data_content)
5401         (tui_display_all_data, tui_data_window::refresh_all)
5402         (tui_check_data_values): Update.
5403         * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
5404         (tui_set_win_focus_to, tui_win_info::forward_scroll)
5405         (tui_win_info::backward_scroll, tui_refresh_all_win)
5406         (tui_resize_all, tui_set_focus, tui_all_windows_info)
5407         (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
5408         (tui_source_window_base::set_new_height)
5409         (tui_data_window::set_new_height)
5410         (make_invisible_and_set_new_height)
5411         (make_visible_with_new_height, new_height_ok)
5412         (parse_scrolling_args): Update.
5413         * tui/tui-stack.c (tui_show_frame_info): Update.
5414         * tui/tui-source.c (tui_set_source_content)
5415         (tui_set_source_content_nil, tui_source_is_displayed)
5416         (tui_source_window::do_scroll_vertical): Update.
5417         * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5418         (tui_display_registers_from, tui_display_reg_element_at_line)
5419         (tui_check_register_values, tui_reg_command): Update.
5420         * tui/tui-layout.c (tui_default_win_height)
5421         (show_source_disasm_command, show_data, init_and_make_win)
5422         (show_source_or_disasm_and_command): Update.
5423         * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
5424         (tui_redisplay_readline, tui_mld_flush)
5425         (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
5426         (tui_getc): Update.
5427         * tui/tui-disasm.c (tui_set_disassem_content)
5428         (tui_disasm_window::do_scroll_vertical): Update.
5429         * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
5430         Now virtual.
5431         (struct tui_win_info): Derive from tui_gen_win_info.
5432         <~tui_win_info>: Mark as override.
5433         <generic>: Remove member.
5434         * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
5435         (tui_prev_win, tui_partial_win_by_name, tui_win_info)
5436         (~tui_data_window, ~tui_win_info)
5437         (tui_free_all_source_wins_content): Update.
5438         * tui/tui-command.c (tui_refresh_cmd_win): Update.
5439
5440 2019-06-25  Tom Tromey  <[email protected]>
5441
5442         * tui/tui-layout.c (init_and_make_win): Use new.
5443         * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
5444         destructor, initializers.
5445         (tui_alloc_generic_win_info): Don't declare.
5446         * tui/tui-data.c (_locator): Add argument to constructor.
5447         (source_win, disasm_win): New globals.
5448         (exec_info): Remove.
5449         (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5450         Update.
5451         (tui_alloc_generic_win_info): Remove.
5452         (init_content_element): Use new.
5453         (tui_win_info::tui_win_info): Update.
5454         (free_content_elements) <case DATA_WIN>: Use delete.
5455
5456 2019-06-25  Tom Tromey  <[email protected]>
5457
5458         * tui/tui-wingeneral.c (tui_refresh_win): Update.
5459         * tui/tui-windata.c (tui_first_data_item_displayed)
5460         (tui_delete_data_content_windows): Update.
5461         * tui/tui-win.c (tui_data_window::set_new_height): Update.
5462         * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5463         (tui_display_registers_from, tui_check_register_values): Update.
5464         * tui/tui-data.h (union tui_which_element) <data_window>: Now a
5465         pointer.
5466         * tui/tui-data.c (init_content_element): Update.  Allocate the new
5467         window.
5468         (tui_free_data_content): Update.
5469         (free_content_elements) <case DATA_WIN>: Free the window.
5470
5471 2019-06-25  Tom Tromey  <[email protected]>
5472
5473         * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
5474         Update.
5475         * tui/tui-layout.c (make_command_window)
5476         (show_source_disasm_command, show_data, init_and_make_win)
5477         (show_source_or_disasm_and_command): Update.
5478         * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
5479         method.
5480         <can_highight, is_highlighted>: Now bool.
5481         (tui_set_win_highlight): Don't declare.
5482         * tui/tui-data.c (tui_set_win_highlight): Remove.
5483
5484 2019-06-25  Tom Tromey  <[email protected]>
5485
5486         * tui/tui-wingeneral.c (make_visible): Remove check of window
5487         type.
5488
5489 2019-06-25  Tom Tromey  <[email protected]>
5490
5491         * tui/tui-win.c (tui_win_info::max_height)
5492         (tui_cmd_window::max_height): New methods.
5493         (new_height_ok): Call max_height.
5494         * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
5495         <max_height>: New method.
5496
5497 2019-06-25  Tom Tromey  <[email protected]>
5498
5499         * tui/tui-win.c (tui_source_window_base::set_new_height)
5500         (tui_data_window::set_new_height): New methods.
5501         (make_invisible_and_set_new_height): Call set_new_height method.
5502         * tui/tui-data.h (struct tui_win_info)
5503         (struct tui_source_window_base, struct tui_data_window)
5504         <set_new_height>: New method.
5505
5506 2019-06-25  Tom Tromey  <[email protected]>
5507
5508         * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
5509         * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
5510         tui_refresh_data_win.
5511         * tui/tui-win.c (tui_source_window_base::refresh_all): New
5512         method.
5513         (tui_refresh_all_win): Call the refresh_all method.
5514         (tui_set_focus): Likewise.
5515         * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
5516         (struct tui_source_window_base, struct tui_data_window) <refresh>:
5517         Likewise.
5518
5519 2019-06-25  Tom Tromey  <[email protected]>
5520
5521         * tui/tui-winsource.h (tui_refill_source_window)
5522         (tui_set_is_exec_point_at): Don't declare.
5523         * tui/tui-winsource.c (tui_update_source_windows_with_addr)
5524         (tui_source_window_base::refill): Rename from
5525         tui_refill_source_window.
5526         (tui_source_window_base::do_scroll_horizontal): Update.
5527         (tui_source_window_base::set_is_exec_point_at): Rename from
5528         tui_set_is_exec_point_at.
5529         (tui_update_all_breakpoint_info): Update.
5530         * tui/tui-stack.c (tui_show_frame_info): Update.
5531         * tui/tui-layout.c (show_data): Add cast.
5532         * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
5533         * tui/tui-data.h (struct tui_source_window_base) <refill,
5534         set_is_exec_point_at>: New methods.
5535         (tui_source_windows, tui_add_to_source_windows): Update types.
5536         (tui_add_to_source_windows): Remove redundant declaration.
5537         * tui/tui-data.c (source_windows): Store tui_source_window_base.
5538         (tui_source_windows): Change return type.
5539         (tui_clear_source_windows_detail): Update.
5540         (tui_add_to_source_windows): Change type of parameter.
5541         (tui_free_all_source_wins_content): Update.
5542
5543 2019-06-25  Tom Tromey  <[email protected]>
5544
5545         * tui/tui-wingeneral.c (tui_win_info::refresh)
5546         (tui_source_window_base::refresh): New methods.
5547         (tui_refresh_all): Call the refresh method.
5548         * tui/tui-data.h (struct tui_win_info)
5549         (struct tui_source_window_base) <refresh>: New method.
5550
5551 2019-06-25  Tom Tromey  <[email protected]>
5552
5553         * tui/tui.h (tui_is_window_visible): Return bool.
5554         * tui/tui.c (tui_is_window_visible): Return bool.
5555         * tui/tui-wingeneral.c (tui_make_window, make_visible)
5556         (tui_make_visible, tui_make_invisible)
5557         (tui_win_info::make_visible)
5558         (tui_source_window_base::make_visible, make_all_visible)
5559         (tui_make_all_visible, tui_make_all_invisible): Update.
5560         * tui/tui-windata.c (tui_delete_data_content_windows): Update.
5561         * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
5562         bool.
5563         (struct tui_win_info, struct tui_source_window_base)
5564         (struct tui_cmd_window) <make_visible>: Change parameter to bool.
5565         * tui/tui-data.c (tui_init_generic_part): Update.
5566
5567 2019-06-25  Tom Tromey  <[email protected]>
5568
5569         * tui/tui-wingeneral.c (tui_win_info::make_visible)
5570         (tui_source_window_base::make_visible): New methods.
5571         (make_all_visible): Make method call.
5572         * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
5573         (struct tui_source_window_base, struct tui_cmd_window): Override
5574         make_visible.
5575         (tui_win_is_source_type): Don't declare.
5576         * tui/tui-data.c (tui_win_is_source_type): Remove.
5577
5578 2019-06-25  Tom Tromey  <[email protected]>
5579
5580         * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
5581         NULL check.
5582
5583 2019-06-25  Tom Tromey  <[email protected]>
5584
5585         * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
5586         Inline constructor.  Add initializers for members.
5587         * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
5588         constructors; now inline in class.
5589
5590 2019-06-25  Tom Tromey  <[email protected]>
5591
5592         * tui/tui-regs.c (tui_show_registers): Update.
5593         * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
5594         bool.
5595         * tui/tui-data.c (tui_data_window::clear_detail)
5596         (tui_data_window): Update.
5597
5598 2019-06-25  Tom Tromey  <[email protected]>
5599
5600         * tui/tui-windata.c (tui_display_all_data)
5601         (tui_display_data_from_line, tui_display_data_from)
5602         (tui_check_data_values, tui_data_window::do_scroll_vertical):
5603         Update.
5604         * tui/tui-regs.c (tui_last_regs_line_no)
5605         (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
5606         (tui_show_registers, tui_show_register_group)
5607         (tui_display_registers_from, tui_display_reg_element_at_line)
5608         (tui_display_registers_from_line, tui_check_register_values)
5609         (tui_reg_next, tui_reg_prev): Update.
5610         * tui/tui-layout.c (tui_set_layout, show_data): Update.
5611         * tui/tui-data.h (struct tui_data_info): Remove.  Move contents to
5612         tui_data_window.
5613         (struct tui_win_info) <detail>: Remove.  Add new fields from
5614         tui_data_info.
5615         (TUI_DATA_WIN): Add cast.
5616         * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
5617         (~tui_data_window): Simplify.
5618
5619 2019-06-25  Tom Tromey  <[email protected]>
5620
5621         * tui/tui-layout.c (show_source_disasm_command)
5622         (show_source_or_disasm_and_command): Update.
5623         * tui/tui-io.c (update_cmdwin_start_line)
5624         (tui_redisplay_readline): Update.
5625         * tui/tui-data.h (struct tui_command_info): Remove.
5626         (struct tui_win_info) <detail>: Remove command_info member.
5627         (struct tui_data_window) <start_line>: New member, from
5628         tui_command_info.
5629         (TUI_CMD_WIN): Add casts.
5630
5631 2019-06-25  Tom Tromey  <[email protected]>
5632
5633         * tui/tui-winsource.c (tui_update_source_window)
5634         (tui_refill_source_window)
5635         (tui_source_window_base::do_scroll_horizontal)
5636         (tui_update_breakpoint_info, tui_set_exec_info_content)
5637         (tui_show_exec_info_content, tui_erase_exec_info_content)
5638         (tui_clear_exec_info_content): Update.
5639         * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
5640         Update.
5641         * tui/tui-win.c (make_invisible_and_set_new_height)
5642         (make_visible_with_new_height): Update.
5643         * tui/tui-source.c (tui_set_source_content)
5644         (tui_show_symtab_source): Update.
5645         * tui/tui-layout.c (extract_display_start_addr)
5646         (show_source_disasm_command, show_data)
5647         (make_source_or_disasm_window)
5648         (show_source_or_disasm_and_command): Update.
5649         * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
5650         (tui_disasm_window::do_scroll_vertical): Remove shadowing
5651         "gdbarch".
5652         * tui/tui-data.h (struct tui_source_info): Remove.  Move contents
5653         to tui_source_window_base.
5654         (struct tui_win_info) <detail>: Remove source_info member.
5655         (struct tui_source_window_base) <has_locator>: Inline.
5656         Move contents from tui_source_info; rename has_locator member to
5657         m_has_locator.
5658         (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
5659         * tui/tui-data.c (tui_source_window_base::has_locator): Move to
5660         header file.
5661         (tui_source_window_base::clear_detail, ~tui_source_window_base):
5662         Simplify.
5663         (tui_free_all_source_wins_content): Cast to
5664         tui_source_window_base.
5665
5666 2019-06-25  Tom Tromey  <[email protected]>
5667
5668         * tui/tui-win.c (make_invisible_and_set_new_height)
5669         (make_visible_with_new_height): Call has_locator method.
5670         * tui/tui-layout.c (show_source_disasm_command, show_data)
5671         (show_source_or_disasm_and_command): Update for bool change.
5672         * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
5673         (tui_win_info) <has_locator>: New method.
5674         (struct tui_source_window_base) <has_locator>: New method.
5675         (tui_win_has_locator): Don't declare.
5676         * tui/tui-data.c (tui_source_window_base::has_locator): Rename
5677         from tui_win_has_locator.
5678         (tui_source_window_base): Use false, not FALSE.
5679
5680 2019-06-25  Tom Tromey  <[email protected]>
5681
5682         * tui/tui-data.h (tui_clear_win_detail): Don't declare.
5683         * tui/tui-data.c (tui_clear_source_windows_detail): Call the
5684         clear_detail method directly.
5685         (tui_clear_win_detail): Remove.
5686
5687 2019-06-25  Tom Tromey  <[email protected]>
5688
5689         * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
5690         "this", not TUI_DISASM_WIN.
5691
5692 2019-06-25  Tom Tromey  <[email protected]>
5693
5694         * tui/tui-winsource.h (tui_horizontal_source_scroll):  Don't
5695         declare.
5696         * tui/tui-winsource.c
5697         (tui_source_window_base::do_scroll_horizontal): Rename from
5698         tui_horizontal_source_scroll.
5699         * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
5700         * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
5701         from tui_vertical_data_scroll.
5702         * tui/tui-win.h (tui_scroll): Don't declare.
5703         * tui/tui-win.c (tui_win_info::forward_scroll)
5704         (tui_win_info::backward_scroll, tui_win_info::left_scroll)
5705         (tui_win_info::right_scroll): Rename and update.
5706         (tui_scroll_forward_command, tui_scroll_backward_command)
5707         (tui_scroll_left_command, tui_scroll_right_command): Update.
5708         (tui_scroll): Remove.
5709         * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
5710         * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
5711         from tui_vertical_source_scroll.
5712         * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
5713         * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
5714         from tui_vertical_disassem_scroll.
5715         * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
5716         do_scroll_horizontal>: New methods.
5717         <forward_scroll, backward_scroll, left_scroll, right_scroll>:
5718         Likewise.
5719         (struct tui_source_window_base): Add do_scroll_horizontal.
5720         (struct tui_source_window, struct tui_disasm_window): Add
5721         do_scroll_vertical.
5722         (struct tui_data_window, struct tui_cmd_window): Add
5723         do_scroll_horizontal and do_scroll_vertical.
5724         * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
5725
5726 2019-06-25  Tom Tromey  <[email protected]>
5727
5728         * tui/tui-data.h (struct tui_source_window_base): New struct.
5729         (struct tui_source_window): Derive from tui_source_window_base.
5730         (struct tui_disasm_window): New struct.
5731         * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
5732         from tui_source_window::clear_detail.
5733         (tui_source_window_base): Rename from tui_source_window.
5734         (~tui_source_window_base): Rename from ~tui_source_window.
5735         (tui_alloc_win_info): Create a tui_disasm_window.
5736
5737 2019-06-25  Tom Tromey  <[email protected]>
5738
5739         * tui/tui-data.h (struct tui_source_window)
5740         (struct tui_data_window): Declare destructors.
5741         * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
5742         destructors.
5743         (tui_win_info): Simplify.
5744
5745 2019-06-25  Tom Tromey  <[email protected]>
5746
5747         * tui/tui-winsource.c (tui_display_main)
5748         (tui_update_source_windows_with_addr)
5749         (tui_update_all_breakpoint_info): Update.
5750         * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5751         (new_height_ok, parse_scrolling_args): Update.
5752         * tui/tui-stack.c (tui_show_frame_info): Update.
5753         * tui/tui-data.h (struct tui_list): Remove.
5754         (tui_source_windows): Return a reference to a std::vector.
5755         * tui/tui-data.c (source_windows): Now a std::vector.
5756         (tui_source_windows): Change return type.
5757         (tui_clear_source_windows): Rewrite.
5758         (tui_clear_source_windows_detail, tui_add_to_source_windows)
5759         (tui_free_all_source_wins_content): Rewrite.
5760
5761 2019-06-25  Tom Tromey  <[email protected]>
5762
5763         * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
5764         (struct tui_data_window, struct tui_cmd_window): Declare
5765         clear_detail method.
5766         * tui/tui-data.c (tui_source_window::clear_detail)
5767         (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
5768         methods.
5769         (tui_clear_win_detail): Simplify.
5770
5771 2019-06-25  Tom Tromey  <[email protected]>
5772
5773         * tui/tui-layout.c (make_source_window, make_disasm_window)
5774         (make_source_or_disasm_window): Remove win_info_ptr parameter.
5775         Return the new window.
5776         (show_source_disasm_command, show_data)
5777         (show_source_or_disasm_and_command): Update.
5778
5779 2019-06-25  Tom Tromey  <[email protected]>
5780
5781         * tui/tui-layout.c (make_command_window): Remove win_info_ptr
5782         parameter.  Return the new window.
5783         (show_source_disasm_command): Update and remove NULL check.
5784         (show_source_or_disasm_and_command): Update.
5785
5786 2019-06-25  Tom Tromey  <[email protected]>
5787
5788         * tui/tui-layout.c (init_and_make_win): Remove NULL check.
5789
5790 2019-06-25  Tom Tromey  <[email protected]>
5791
5792         * tui/tui-data.h (struct tui_win_info): Make constructor
5793         protected.  Make destructor virtual.  Add initializers.
5794         (tui_source_window, tui_data_window, tui_cmd_window): New
5795         classes.
5796         * tui/tui-data.c (tui_win_info): Rename from init_win_info.  Now a
5797         constructor.  Add "type" parameter.
5798         (tui_source_window, tui_data_window, tui_cmd_window): New
5799         constructors.
5800         (tui_alloc_win_info): Instantiate the appropriate subclass.
5801
5802 2019-06-25  Tom Tromey  <[email protected]>
5803
5804         * tui/tui-win.c (tui_resize_all): Use delete.
5805         * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
5806         destructor.
5807         (tui_free_window): Don't declare.
5808         * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
5809         Update.
5810
5811 2019-06-25  Tom Tromey  <[email protected]>
5812
5813         * tui/tui-data.h (struct tui_win_info): Add constructor.
5814         * tui/tui-data.c (tui_alloc_win_info): Use new.
5815         (tui_free_window): Use delete.
5816
5817 2019-06-22  Tom Tromey  <[email protected]>
5818
5819         * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
5820         declare.
5821         * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
5822
5823 2019-06-22  Tom Tromey  <[email protected]>
5824
5825         * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
5826         declare.
5827         * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
5828
5829 2019-06-22  Tom de Vries  <[email protected]>
5830
5831         * dwarf2read.c (create_addrmap_from_aranges)
5832         (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
5833         instead of '%zu'.
5834
5835 2019-06-21  Simon Marchi  <[email protected]>
5836
5837         * dwarf2read.h (dwarf2_section_info_def): Remove.
5838         (DEF_VEC_O (dwarf2_section_info_def)): Remove.
5839         * dwarf2read.c (struct dwo_sections) <types>: Change type to
5840         std::vector<dwarf2_section_info>.
5841         (struct dwo_file) <~dwo_file>: Remove.
5842         (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
5843         types field.
5844         (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
5845         (dwarf2_read_debug_names): Likewise.
5846         (create_debug_types_hash_table): Change parameter type to
5847         array_view, adjust code accordingly.
5848         (dwarf2_locate_dwo_sections): Adjust to std::vector.
5849         (partial_die_info::fixup): Likewise.
5850         (determine_prefix): Likewise.
5851         * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
5852
5853 2019-06-21  Simon Marchi  <[email protected]>
5854
5855         * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
5856         gdb_bfd_ref_ptr.
5857         <~dwo_file>: Remove call to gdb_bfd_unref.
5858         (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
5859         gdb_bfd_ref_ptr::get.
5860
5861 2019-06-21  Simon Marchi  <[email protected]>
5862
5863         * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
5864         type to htab_up.
5865         * dwarf2read.c (struct dwo_file): Initialize fields.
5866         <~dwo_file>: New.
5867         (free_dwo_file): Remove, move content to ~dwo_file.
5868         (struct dwo_file_deleter): Remove.
5869         (dwo_file_up>: Remove custom deleter.
5870         (free_dwo_files): Remove.
5871         (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
5872         dwo_files.
5873         (process_skeletonless_type_units): Call unique_ptr::get.
5874         (allocate_dwo_file_hash_table): Add deleter to created hash
5875         table.  Change return type to htab_up.
5876         (lookup_dwo_file_slot): Don't memset dwo_file, call
5877         unique_ptr::get.
5878         (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
5879         (create_dwo_unit_in_dwp_v2): Likewise.
5880         (open_and_init_dwo_file): Likewise.
5881         (free_dwo_file_from_slot): Remove.
5882
5883 2019-06-21  Simon Marchi  <[email protected]>
5884
5885         * dwarf2read.h (struct dwarf2_section_info) <readin,
5886         is_virtual>: Change type to bool.
5887         * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
5888         true instead of 1.
5889
5890 2019-06-19  Tom Tromey  <[email protected]>
5891
5892         * tui/tui-data.h (tui_init_content_element): Don't declare.
5893
5894 2019-06-19  Tom Tromey  <[email protected]>
5895
5896         * tui/tui-data.h (tui_init_win_info): Don't declare.
5897
5898 2019-06-19  Tom de Vries  <[email protected]>
5899
5900         * dwarf2read.h (abstract_to_concrete): Change type to
5901         std::unordered_map<sect_offset, std::vector<sect_offset>,
5902         gdb::hash_enum<sect_offset>>.
5903
5904 2019-06-19  Tom Tromey  <[email protected]>
5905
5906         * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
5907         EVAL_AVOID_SIDE_EFFECTS specially.
5908
5909 2019-06-19  Tom Tromey  <[email protected]>
5910
5911         * source-cache.c (highlighter): New global.
5912         (source_cache::get_source_lines): Create a highlighter on demand.
5913
5914 2019-06-18  Andrew Burgess  <[email protected]>
5915
5916         * defs.h (deprecated_interactive_hook): Delete declaration.
5917         * interps.c (clear_interpreter_hooks): Remove use of
5918         deprecated_interactive_hook.
5919         * top.c (deprecated_interactive_hook): Delete definition.
5920         * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
5921
5922 2019-06-18  Tom de Vries  <[email protected]>
5923
5924         PR gdb/24515
5925         * dwarf2read.h (abstract_to_concrete): Change type from
5926         std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
5927         std::unordered_map<sect_offset, std::vector<sect_offset>>.
5928         * dwarf2read.c (read_variable): Update.
5929         (dwarf2_fetch_die_loc_sect_off): Update.
5930
5931 2019-06-17  Tom de Vries  <[email protected]>
5932
5933         PR gdb/24617
5934         * common/pathstuff.c (child_path): Make sure parent_len > 0 before
5935         accessing parent[parent_len - 1].
5936
5937 2019-06-17  Paul Pluzhnikov  <[email protected]>
5938
5939         PR gdb/24364
5940         * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
5941         call dtrace_process_dof with NULL dof.
5942
5943 2019-06-16  Tom de Vries  <[email protected]>
5944
5945         PR gdb/24445
5946         * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
5947
5948 2019-06-16  Tom Tromey  <[email protected]>
5949
5950         * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
5951         (make_all_visible): Use address of member.
5952
5953 2019-06-16  Tom Tromey  <[email protected]>
5954
5955         * tui/tui-data.c (tui_clear_win_detail, init_win_info)
5956         (tui_free_window, free_content, free_content_elements): Remove
5957         unnecessary cast.
5958         * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
5959         cast.
5960         * tui/tui-regs.c (tui_show_register_group)
5961         (tui_display_registers_from, tui_display_reg_element_at_line):
5962         Remove unnecessary cast.
5963
5964 2019-06-16  Andrew Burgess  <[email protected]>
5965
5966         * linux-nat.c (normal_mask): Delete.
5967         (_initialize_linux_nat): Don't initialise normal_mask.
5968
5969 2019-06-16  Simon Marchi  <[email protected]>
5970
5971         PR gdb/24445
5972         * dwarf-index-write.h (write_psymtabs_to_index): Add
5973         dwz_basename parameter.
5974         * dwarf-index-write.c (write_gdbindex): Move file writing to
5975         write_gdbindex_1.  Change return type void.
5976         (assert_file_size): Move up, remove filename parameter.
5977         (write_gdbindex_1): New function.
5978         (write_debug_names): Change return type to void, call
5979         assert_file_size.
5980         (struct index_wip_file): New struct.
5981         (write_psymtabs_to_index): Add dwz_basename parameter.  Move
5982         file logic to index_wip_file.  Write index for dwz file if
5983         needed.
5984         (save_gdb_index_command): Pass basename of dwz file, if present.
5985         * dwarf-index-cache.c (index_cache::store): Obtain and pass
5986         build-id of dwz file, if present.
5987         * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
5988         (dwarf2_get_dwz_file): Likewise.
5989         * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
5990         (dwarf2_get_dwz_file): Likewise.
5991
5992 2019-06-16  Tom Tromey  <[email protected]>
5993
5994         * coffread.c (process_coff_symbol): Use xstrdup.
5995         * value.c (create_internalvar): Use xstrdup.
5996
5997 2019-06-16  Tom Tromey  <[email protected]>
5998
5999         * valops.c (value_cast, value_slice): Remove unnecessary cast.
6000         * breakpoint.c (stopin_command, stopat_command)
6001         (until_break_command, decode_location_default): Remove unnecessary
6002         cast.
6003         * utils.c (subset_compare): Remove unnecessary cast.
6004         * ada-lang.c (ada_update_initial_language): Remove unnecessary
6005         cast.
6006         * linespec.c (decode_line_with_last_displayed): Remove unnecessary
6007         cast.
6008         * infcmd.c (path_command): Remove unnecessary cast.
6009         * coffread.c (decode_type): Remove unnecessary cast.
6010         * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
6011         * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
6012         * tui/tui-stack.c (tui_show_locator_content)
6013         (tui_show_frame_info): Remove unnecessary cast.
6014         * tui/tui-win.c (tui_scroll_forward_command)
6015         (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
6016         (parse_scrolling_args): Remove unnecessary cast.
6017         * tui/tui-data.c (init_win_info, tui_del_window)
6018         (tui_free_window, tui_del_data_windows, tui_free_data_content)
6019         (free_content_elements): Remove unnecessary cast.
6020         * tui/tui-windata.c (tui_first_data_item_displayed): Remove
6021         unnecessary cast.
6022         * tui/tui-source.c (tui_set_source_content)
6023         (tui_vertical_source_scroll): Remove unnecessary cast.
6024         * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
6025         cast.
6026         * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
6027         * tui/tui-regs.c (tui_display_registers_from)
6028         (tui_display_register): Remove unnecessary cast.
6029         * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
6030         (tui_unhighlight_win, tui_highlight_win, tui_make_window)
6031         (make_visible): Remove unnecessary cast.
6032         * tui/tui-winsource.c (tui_erase_source_content)
6033         (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
6034         unnecessary cast.
6035         * ax-gdb.c (agent_command_1): Remove unnecessary cast.
6036         * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
6037         * stabsread.c (read_type, read_array_type, read_range_type):
6038         Remove unnecessary cast.
6039         * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
6040         (parse_symbol, parse_type, upgrade_type, parse_external)
6041         (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
6042         unnecessary cast.
6043         * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
6044
6045 2019-06-16  Tom Tromey  <[email protected]>
6046
6047         * tui/tui-data.c (tui_alloc_generic_win_info)
6048         (tui_alloc_win_info, tui_add_content_elements): Remove NULL
6049         checks.
6050
6051 2019-06-16  Bernhard Heckel  <[email protected]>
6052             Andrew Burgess  <[email protected]>
6053
6054         * f-typeprint.c (f_print_type): Don't return early for not
6055         associated or not allocated types.
6056         (f_type_print_varspec_suffix): Add print_rank parameter and print
6057         ranks of array types in case they dangling.
6058         (f_type_print_base): Add print_rank parameter.
6059
6060 2019-06-15  Andrew Burgess  <[email protected]>
6061
6062         * NEWS: Mention new MI commands.
6063         * break-catch-throw.c (enum exception_event_kind): Move to
6064         breakpoint.h.
6065         (print_mention_exception_catchpoint): Output text as a single
6066         message.
6067         (catch_exception_command_1): Rename to...
6068         (catch_exception_event): ...this, make non-static, update header
6069         command, and change some parameter types.
6070         (catch_catch_command): Update for changes to
6071         catch_exception_command_1.
6072         (catch_throw_command): Likewise.
6073         (catch_rethrow_command): Likewise.
6074         * breakpoint.c (enum exception_event_kind): Delete.
6075         * breakpoint.h (enum exception_event_kind): Moved here from
6076         break-catch-throw.c.
6077         (catch_exception_event): Declare.
6078         * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
6079         (mi_cmd_catch_throw): New function.
6080         (mi_cmd_catch_rethrow): New function.
6081         (mi_cmd_catch_catch): New function.
6082         * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
6083         'catch-catch' entries.
6084         * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
6085         (mi_cmd_catch_rethrow): Declare.
6086         (mi_cmd_catch_catch): Declare.
6087
6088 2019-06-15  Andrew Burgess  <[email protected]>
6089
6090         * annotate.c (annotate_source_line): Change return type to void,
6091         update implementation to match.
6092         * annotate.h (annotate_source_line): Change return type to void,
6093         update header comment.
6094         * stack.c (print_frame_info): Don't change what frame information
6095         is printed based on whether annotations are on or not.
6096
6097 2019-06-15  Andrew Burgess  <[email protected]>
6098
6099         * annotate.c: Add 'source.h' and 'objfiles.h' includes.
6100         (annotate_source): Make static.
6101         (annotate_source_line): Moved from source.c and renamed from
6102         identify_source_line.  Update the return type.
6103         * annotate.h (annotate_source): Delete declaration.
6104         (annotate_source_line): Declaration moved from source.h, and
6105         renamed from identify_source_line.  Return type updated.
6106         * source.c (identify_source_line): Moved to annotate.c and renamed
6107         to annotate_source_line.
6108         (info_line_command): Remove check of annotation_level.
6109         * source.h (identify_source_line): Move declaration to annotate.h
6110         and rename to annotate_source_line.
6111         * stack.c: Add 'annotate.h' include.
6112         (print_frame_info): Remove check of annotation_level before
6113         calling annotate_source_line.
6114
6115 2019-06-15  Andrew Burgess  <[email protected]>
6116
6117         * source-cache.c (source_cache::get_plain_source_lines): Use
6118         open_source_file_with_line_charpos instead of just
6119         open_source_file, remove call to find_source_lines.
6120         (source_cache::get_source_lines): Likewise.
6121         * source.c (find_source_lines): Make static.
6122         (get_filename_and_charpos): Renamed into...
6123         (open_source_file_with_line_charpos): ..this along with changes to
6124         return a scoped_fd, and some other minor clean ups.
6125         (identify_source_line): Use open_source_file_with_line_charpos.
6126         (search_command_helper): Use open_source_file_with_line_charpos
6127         instead of just open_source_file, remove call to
6128         find_source_lines.
6129         * source.h (open_source_file_with_line_charpos): Declare new
6130         function.
6131         (find_source_lines): Delete declaration.
6132
6133 2019-06-15  Andrew Burgess  <[email protected]>
6134
6135         * source.c (get_filename_and_charpos): Remove fullname
6136         parameter.
6137         (identify_source_line): Update call to get_filename_and_charpos.
6138
6139 2019-06-14  Tom Tromey  <[email protected]>
6140
6141         PR gdb/24502:
6142         * ui-style.h (skip_ansi_escape): Update comment.
6143         * ui-file.h (class no_terminal_escape_file): New class.
6144         * ui-file.c (no_terminal_escape_file::write)
6145         (no_terminal_escape_file::puts): New methods.
6146         * cli/cli-logging.c (handle_redirections): Use
6147         no_terminal_escape_file.
6148
6149 2019-06-14  Tom Tromey  <[email protected]>
6150
6151         * NEWS: Move convenience variable news above Python news.
6152
6153 2019-06-14  Tom Tromey  <[email protected]>
6154
6155         * gnulib: Move directory to top-level.
6156         * configure.ac: Don't configure gnulib.
6157         * configure: Rebuild.
6158         * common/common-defs.h: Use new path to gnulib.
6159         * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
6160         (GNULIB_H): Remove.
6161         (INCGNU): Look in new gnulib location.
6162         (HFILES_NO_SRCDIR): Remove gnulib files.
6163         (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
6164         (generated_files): Remove GNULIB_H.
6165         ($(LIBGNU), all-lib): Remove targets.
6166         (distclean): Don't mention GNULIB_BUILDDIR.
6167         ($(GNULIB_BUILDDIR)/Makefile): Remove target.
6168
6169 2019-06-14  Tom Tromey  <[email protected]>
6170
6171         * symfile.c (add_symbol_file_command): Remove obsolete comment.
6172         Warn if symbol file does not provide any symbols.
6173
6174 2019-06-14  Tom Tromey  <[email protected]>
6175
6176         * source.c (find_and_open_source): Respect basenames_may_differ.
6177
6178 2019-06-14  Andrew Burgess  <[email protected]>
6179
6180         * annotate.c (annotate_breakpoints_invalid): Make use of
6181         scoped_restore_terminal_state.
6182         (annotate_frames_invalid): Likewise.
6183
6184 2019-06-14  Tom Tromey  <[email protected]>
6185
6186         * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
6187         allow assignment to an internalvar.
6188
6189 2019-06-14  Tom Tromey  <[email protected]>
6190
6191         * ada-lex.l: Allow "_" in attribute names.
6192
6193 2019-06-14  Tom Tromey  <[email protected]>
6194
6195         PR gdb/24653:
6196         * regcache.c (registers_changed): Don't call alloca.
6197         * top.c (execute_command): Don't call alloca.
6198
6199 2019-06-13  Pedro Alves  <[email protected]>
6200
6201         * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
6202         'expression'.  When parsing an expression, error out if there's
6203         junk after "unlimited".
6204         (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6205         (do_set_command): Adjust calls to is_unlimited_literal.
6206
6207 2019-06-13  Pedro Alves  <[email protected]>
6208
6209         * compile/compile.c (make_compile_options_def_group): Add braces
6210         around array_view initializer.
6211         * thread.c (make_thread_apply_all_options_def_group)
6212         (make_thread_apply_all_options_def_group): Likewise.
6213
6214 2019-06-13  Pedro Alves  <[email protected]>
6215
6216         * NEWS (New commands): Mention "maint test-options
6217         require-delimiter", "maint test-options unknown-is-error", "maint
6218         test-options unknown-is-operand" and "maint show
6219         test-options-completion-result".
6220         (New command options, command completion): New section.
6221         (Completion improvements): New section.
6222         Mention that you can abbreviate "unlimited".
6223
6224 2019-06-13  Pedro Alves  <[email protected]>
6225
6226         * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
6227         * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
6228         * unittests/cli-utils-selftests.c (test_parse_flags)
6229         (test_parse_flags_qcs): Delete.
6230         (test_cli_utils): Don't call deleted functions.
6231
6232 2019-06-13  Pedro Alves  <[email protected]>
6233
6234         * thread.c: Include "cli/cli-option.h".
6235         (tp_array_compar_ascending): Global.
6236         (tp_array_compar): Delete function.
6237         (tp_array_compar_ascending, tp_array_compar_descending): New
6238         functions.
6239         (ascending_option_def, qcs_flag_option_def)
6240         (thr_qcs_flags_option_defs)
6241         (make_thread_apply_all_options_def_group)
6242         (make_thread_apply_options_def_group): New.
6243         (thread_apply_all_command): Use gdb::option::process_options.
6244         (thread_apply_command_completer)
6245         (thread_apply_all_command_completer): New.
6246         (thread_apply_command): Use gdb::option::process_options.
6247         (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
6248         with a new THREAD_APPLY_OPTION_HELP.  Use gdb::option::build_help
6249         to generate help text of "thread apply".  Adjust "taas"'s help.
6250         * tid-parse.c (tid_range_parser::in_thread_range): New method.
6251         * tid-parse.h (tid_range_parser::in_thread_range): New method.
6252
6253 2019-06-13  Pedro Alves  <[email protected]>
6254
6255         * thread.c (thread_apply_command): Check for invalid TID with
6256         isdigit instead of !isalpha.
6257
6258 2019-06-13  Pedro Alves  <[email protected]>
6259
6260         * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
6261         (validate_flags_qcs): New.
6262         * cli/cli-utils.h (struct qcs_flags): Change field types to int.
6263         (validate_flags_qcs): Declare.
6264         * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
6265         (make_frame_apply_options_def_group): New.
6266         (frame_apply_command_count): Process options with
6267         gdb::option::process_options.
6268         (frame_apply_completer): New.
6269         (frame_apply_level_completer, frame_apply_all_completer)
6270         (frame_apply_completer): New.
6271         (_initialize_stack): Update help of "frame apply", "frame apply
6272         level", "frame apply all" and "faas" to mention supported options
6273         and install command completers.
6274         * stack.h (frame_apply_all_completer): Declare.
6275         * thread.c: Include "stack.h".
6276         (tfaas_command): Add "--".
6277         (_initialize_thread): Update help "tfaas" to mention supported
6278         options and install command completer.
6279
6280 2019-06-13  Pedro Alves  <[email protected]>
6281
6282         * completer.c (complete_nested_command_line): New.
6283         (gdb_completion_word_break_characters_throw): Add assertion.
6284         * completer.h (complete_nested_command_line): Declare.
6285
6286 2019-06-13  Pedro Alves  <[email protected]>
6287
6288         * stack.c (parse_backtrace_qualifiers): New.
6289         (backtrace_command): Use it.
6290         (backtrace_command_completer): Complete on qualifiers.
6291
6292 2019-06-13  Pedro Alves  <[email protected]>
6293
6294         * frame.c: Include "cli/cli-option.h.
6295         (user_set_backtrace_options): New.
6296         (backtrace_past_main, backtrace_past_entry, backtrace_limit):
6297         Delete.
6298         (get_prev_frame): Adjust.
6299         (boolean_option_def, uinteger_option_def)
6300         (set_backtrace_option_defs): New.
6301         (_initialize_frame): Adjust and use
6302         gdb::option::add_setshow_cmds_for_options to install "set
6303         backtrace past-main" and "set backtrace past-entry".
6304         * frame.h: Include "cli/cli-option.h".
6305         (struct frame_print_options): Forward declare.
6306         (print_frame_arguments_all, print_frame_arguments_scalars)
6307         (print_frame_arguments_none): Declare.
6308         (print_entry_values): Delete declaration.
6309         (struct frame_print_options, user_frame_print_options): New.
6310         (struct set_backtrace_options): New.
6311         (set_backtrace_option_defs, user_set_backtrace_options): Declare.
6312         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
6313         (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
6314         (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
6315         (list_args_or_locals): Add frame_print_options parameter.
6316         (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
6317         * python/py-framefilter.c (enumerate_args): Pass down
6318         USER_FRAME_PRINT_OPTIONS.
6319         * stack.c: Include "cli/cli-option.h".
6320         (print_frame_arguments_all, print_frame_arguments_scalars)
6321         (print_frame_arguments_none): Declare.
6322         (print_raw_frame_arguments, print_entry_values): Delete.
6323         (user_frame_print_options): New.
6324         (boolean_option_def, enum_option_def, frame_print_option_defs):
6325         New.
6326         (struct backtrace_cmd_options): New.
6327         (bt_flag_option_def): New.
6328         (backtrace_command_option_defs): New.
6329         (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
6330         (print_frame_arg, read_frame_arg, print_frame_args)
6331         (print_frame_info, print_frame): Add frame_print_options parameter
6332         and use it.
6333         (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
6334         (backtrace_command_1): Add frame_print_options and
6335         backtrace_cmd_options parameters and use them.
6336         (make_backtrace_options_def_group): New.
6337         (backtrace_command): Process command options with
6338         gdb::option::process_options.
6339         (backtrace_command_completer): New.
6340         (_initialize_stack): Extend "backtrace"'s help to mention
6341         supported options.  Install completer for "backtrace".
6342         Install some settings commands with add_setshow_cmds_for_options.
6343
6344 2019-06-13  Pedro Alves  <[email protected]>
6345
6346         * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
6347         and that "set/show print raw frame-arguments" are now deprecated.
6348
6349         * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
6350         command.
6351         * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
6352         * stack.c (_initialize_stack): Install "set/show print
6353         raw-frame-arguments", and deprecate "set/show print raw
6354         frame-arguments".
6355         * valprint.c (_initialize_valprint): Deprecate "set/show print
6356         raw".
6357
6358 2019-06-13  Pedro Alves  <[email protected]>
6359
6360         * compile/compile.c (struct compile_options): New.
6361         (compile_flag_option_def, compile_command_option_defs)
6362         (make_compile_options_def_group): New.
6363         (compile_file_command): Handle options with
6364         gdb::option::process_options.
6365         (compile_file_command_completer): New function.
6366         (compile_code_command): Handle options with
6367         gdb::option::process_options.
6368         (compile_code_command_completer): New function.
6369         (_initialize_compiler): Install completers for "compile code" and
6370         "compile file".  Mention available options in "compile code" and
6371         "compile code"'s help.
6372         * completer.c (advance_to_completion_word): New, factored out from
6373         ...
6374         (advance_to_expression_complete_word_point): ... this.
6375         (advance_to_filename_complete_word_point): New.
6376         * completer.h (advance_to_filename_complete_word_point): New
6377         declaration.
6378
6379 2019-06-13  Pedro Alves  <[email protected]>
6380
6381         * compile/compile.c: Include "cli/cli-option.h".
6382         (compile_print_value): Scope data pointer is now a
6383         value_print_options pointer; adjust.
6384         (compile_print_command): Process options.  Scope data pointer is
6385         now a value_print_options pointer; adjust.
6386         (_initialize_compile): Update "compile print"'s help to include
6387         supported options.  Install a completer for "compile print".
6388         * cp-valprint.c (show_vtblprint, show_objectprint)
6389         (show_static_field_print): Delete.
6390         (_initialize_cp_valprint): Don't install "set print
6391         static-members", "set print vtbl", "set print object" here.
6392         * printcmd.c: Include "cli/cli-option.h" and
6393         "common/gdb_optional.h".
6394         (print_command_parse_format): Rework to fill in a
6395         value_print_options instead of a format_data.
6396         (print_value): Change parameter type from format_data pointer to
6397         value_print_options reference.  Adjust.
6398         (print_command_1): Process options.  Adjust to pass down a
6399         value_print_options.
6400         (print_command_completer): New.
6401         (_initialize_printcmd): Install print_command_completer as
6402         handle_brkchars completer for the "print" command.  Update
6403         "print"'s help to include supported options.
6404         * valprint.c: Include "cli/cli-option.h".
6405         (show_vtblprint, show_objectprint, show_static_field_print): Moved
6406         here from cp-valprint.c.
6407         (boolean_option_def, uinteger_option_def)
6408         (value_print_option_defs, make_value_print_options_def_group):
6409         New.  Use gdb::option::add_setshow_cmds_for_options to install
6410         "set print elements", "set print null-stop", "set print repeats",
6411         "set print pretty", "set print union", "set print array", "set
6412         print address", "set print symbol", "set print array-indexes".
6413         * valprint.h: Include <string> and "cli/cli-option.h".
6414         (make_value_print_options_def_group): Declare.
6415         (print_value): Change parameter type from format_data pointer to
6416         value_print_options reference.
6417         (print_command_completer): Declare.
6418
6419 2019-06-13  Pedro Alves  <[email protected]>
6420
6421         * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
6422         (COMMON_SFILES): Add maint-test-settings.c.
6423         * cli/cli-decode.c (boolean_enums): New global, factored out from
6424         ...
6425         (add_setshow_boolean_cmd): ... here.
6426         * cli/cli-decode.h (boolean_enums): Declare.
6427         * cli/cli-option.c: New file.
6428         * cli/cli-option.h: New file.
6429         * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
6430         factored out from ...
6431         (parse_cli_boolean_value(const char *)): ... this.
6432         (is_unlimited_literal): Change parameter type to pointer to
6433         pointer.  Adjust and advance ARG pointer.
6434         (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6435         (parse_cli_var_enum): New, factored out from ...
6436         (do_set_command): ... this.  Adjust.
6437         * cli/cli-setshow.h (parse_cli_boolean_value)
6438         (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6439         (parse_cli_var_enum): Declare.
6440         * cli/cli-utils.c: Include "cli/cli-option.h".
6441         (get_ulongest): New.
6442         * cli/cli-utils.h (get_ulongest): Declare.
6443         (check_for_argument): New overloads.
6444         * maint-test-options.c: New file.
6445
6446 2019-06-13  Pedro Alves  <[email protected]>
6447
6448         * cli/cli-utils.c (number_or_range_parser::get_number): Do not
6449         parse a range if "-" is at the end of the string.
6450
6451 2019-06-13  Pedro Alves  <[email protected]>
6452
6453         * cli/cli-setshow.c (parse_auto_binary_operation)
6454         (parse_cli_boolean_value): Don't allow "o".
6455
6456 2019-06-13  Pedro Alves  <[email protected]>
6457
6458         * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
6459         * NEWS: Mention maint test-settings KIND.
6460         * maint-test-settings.c: New file.
6461
6462 2019-06-13  Pedro Alves  <[email protected]>
6463
6464         * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
6465         completer.
6466         (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
6467         "set" completers.
6468
6469 2019-06-13  Pedro Alves  <[email protected]>
6470
6471         * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
6472         after item.
6473
6474 2019-06-13  Pedro Alves  <[email protected]>
6475
6476         * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
6477
6478 2019-06-13  Pedro Alves <[email protected]>
6479
6480         * ax-gdb.c (agent_command_1): Remove skip_spaces call.
6481         * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
6482         call.
6483         * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
6484         * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
6485         calls.
6486         (check_for_argument): Skip spaces after argument.
6487
6488 2019-06-13  Pedro Alves  <[email protected]>
6489
6490         * thread.c (thread_apply_command): Adjust TID parsing.
6491         * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
6492         detected before end of string.
6493         (tid_is_in_list): Error out if LIST is invalid.
6494
6495 2019-06-13  Pedro Alves  <[email protected]>
6496
6497         * completer.c (complete_line_internal_1): Rewind completion word
6498         point.
6499         (completion_tracker::advance_custom_word_point_by): Change
6500         parameter type to int.
6501         * completer.h (completion_tracker::advance_custom_word_point_by):
6502         Likewise.
6503
6504 2019-06-13  Pedro Alves  <[email protected]>
6505
6506         * completer.c (advance_to_completion_word): Handle delimiters.
6507
6508 2019-06-11  Bernhard Heckel  <[email protected]>
6509
6510         * dwarf2read.c (add_partial_symbol): Skip nameless modules.
6511
6512 2019-06-11  Tom Tromey  <[email protected]>
6513
6514         * common/common-utils.c (xmalloc, xrealloc, xcalloc)
6515         (xmalloc_failed): Move to alloc.c.
6516         * alloc.c: New file.
6517         * Makefile.in (COMMON_SFILES): Add alloc.c.
6518
6519 2019-06-11  Tom Tromey  <[email protected]>
6520
6521         * nat/linux-waitpid.c: Don't include server.h.
6522         (linux_debug): Remove.
6523         (my_waitpid): Update.
6524
6525 2019-06-11  Tom Tromey  <[email protected]>
6526
6527         * infcall.c (_initialize_infcall): Remove trailing newline from
6528         help.
6529         * user-regs.c (_initialize_user_regs): Remove trailing newline
6530         from help.
6531         * typeprint.c (_initialize_typeprint): Remove trailing newline
6532         from help.
6533         * reverse.c (_initialize_reverse): Remove trailing newlines from
6534         help.
6535         * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
6536         from help.
6537         * language.c (add_set_language_command): Remove trailing newline
6538         from help.
6539         * infcmd.c (_initialize_infcmd): Remove trailing newlines from
6540         help.
6541         * disasm.c (_initialize_disasm): Remove trailing newline from
6542         help.
6543         * top.c (init_main): Remove trailing newline from help.
6544         * interps.c (_initialize_interpreter): Remove trailing newline
6545         from help.
6546         * btrace.c (_initialize_btrace): Remove trailing newlines from
6547         help.
6548         * breakpoint.c (_initialize_breakpoint): Remove trailing newline
6549         from help.
6550         * python/python.c (_initialize_python): Remove trailing newline
6551         from help.
6552         * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
6553         help.
6554         * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
6555         from help.  Reformat some text.
6556         * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
6557         from help.
6558         * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
6559         newline from help.
6560
6561 2019-06-11  Tom Tromey  <[email protected]>
6562
6563         * darwin-nat.c (darwin_decode_exception_message)
6564         (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
6565
6566 2019-06-10  Andrew Burgess  <[email protected]>
6567
6568         * valops.c (value_slice): Check for not allocated or not
6569         associated values.
6570
6571 2019-06-10  Tom de Vries  <[email protected]>
6572
6573         PR gdb/24618
6574         * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
6575         sure an empty slot (defined by a 32-bit zero pair) is recognized as
6576         invalid.
6577
6578 2019-06-10  Tom de Vries  <[email protected]>
6579
6580         PR gdb/24611
6581         * linespec.c (linespec_lexer_lex_string): Remove incorrect
6582         "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon.  Add assert.
6583
6584 2019-06-10  Tom de Vries  <[email protected]>
6585
6586         PR symtab/24545
6587         * symtab.c (struct demangled_name_entry): Add language field.
6588         (symbol_set_names):  Revert "[gdb/symtab] Fix language of duplicate
6589         static minimal symbol".  Set and use language field.
6590
6591 2019-06-10  Tom Tromey  <[email protected]>
6592
6593         * ada-lang.c (_initialize_ada_language): Update help text.
6594
6595 2019-06-10  Tom Tromey  <[email protected]>
6596
6597         * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
6598         with a newline.
6599         * guile/guile.c (handle_boot_error): Don't end warning with a
6600         newline.
6601         * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
6602         warning with a newline.
6603         * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
6604         newline.
6605         (s12z_frame_cache): Likewise.
6606         * dwarf-index-cache.c (index_cache::store): Don't end warning with
6607         a newline.
6608         * solib-svr4.c (disable_probes_interface): Don't end warning with
6609         a newline.
6610         * nat/fork-inferior.c (fork_inferior): Don't end warning with a
6611         newline.
6612         * python/python.c (do_finish_initialization): Don't end warning
6613         with a newline.
6614
6615 2019-06-10  Tom Tromey  <[email protected]>
6616
6617         * python/py-breakpoint.c (gdbpy_breakpoint_created)
6618         (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
6619         gdbpy_enter.
6620
6621 2019-06-10  Tom Tromey  <[email protected]>
6622
6623         * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
6624         data.
6625         (elf_new_init): Don't call stabsread_new_init.
6626         * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
6627         (elfstab_build_psymtabs): Likewise.  Call stabsread_new_init.
6628         * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
6629
6630 2019-06-10  Tom de Vries  <[email protected]>
6631
6632         PR symtab/16264
6633         PR symtab/24517
6634         * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
6635
6636 2019-06-06  Руслан Ижбулатов <[email protected]>
6637
6638         * source.c (find_and_open_source): Also rewrite relative file
6639         names.
6640
6641 2019-04-26  Amos Bird  <[email protected]>
6642
6643         * annotate.c (annotate_thread_exited): Add "thread-exited"
6644         annotation.
6645
6646 2019-06-06  Tom Tromey  <[email protected]>
6647
6648         * maint.h (class scoped_command_stats): Use
6649         DISABLE_COPY_AND_ASSIGN.
6650         <print_time>: New method.
6651         * maint.c (scoped_command_stats, ~scoped_command_stats): Call
6652         print_time.
6653         (scoped_command_stats::print_time): New method.
6654
6655 2019-06-05  Andrew Burgess  <[email protected]>
6656
6657         * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
6658         instructions of lengths 6 or 8 bytes.
6659
6660 2019-06-04  Pedro Alves  <[email protected]>
6661
6662         * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
6663
6664         * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
6665         * breakpoint.c (condition_completer): Likewise.
6666         * cli/cli-dump.c (scan_expression): Likewise.
6667         * common/filestuff.c (mkdir_recursive): Likewise.
6668         * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
6669         * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
6670         (gdb_abspath): Likewise.
6671         * compile/compile-cplus-types.c
6672         (compile_cplus_instance::decl_name): Likewise.
6673         * completer.c (complete_explicit_location):
6674         (signal_completer, reg_or_group_completer_1): Likewise.
6675         * cp-support.c (cp_remove_params_if_any): Likewise.
6676         * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
6677         * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
6678         * infcmd.c (strip_bg_char): Likewise.
6679         * linespec.c (copy_token_string): Likewise.
6680         * mi/mi-main.c (output_cores): Likewise.
6681         * psymtab.c (psymtab_search_name):
6682         * symfile.c (test_set_ext_lang_command): Likewise.
6683         * target.c (target_fileio_read_stralloc): Likewise.
6684         * tui/tui-regs.c (tui_reggroup_completer): Likewise.
6685         * value.c (complete_internalvar): Likewise.
6686
6687 2019-06-04  Christian Biesinger  <[email protected]>
6688
6689         Add objfile property to gdb.Type.
6690         * NEWS: Mention Python API addition.
6691         * python/py-type.c (typy_get_objfile): New method.
6692
6693 2019-06-03  Philippe Waroquiers  <[email protected]>
6694
6695         * NEWS: Mention the new set|show style [title|highlight].
6696         Mention changes to "show style", "help" and "apropos".
6697
6698 2019-06-03  Philippe Waroquiers  <[email protected]>
6699
6700         * cli/cli-decode.h (apropos_cmd): Add verbose argument.
6701         * cli/cli-decode.c (apropos_cmd): Likewise.  Use print_doc_of_command
6702         instead of print_help_for_command.
6703         (print_doc_of_command): New function.
6704         (help_list): Add 'apropos -v word' suggestion.
6705         (print_help_for_command): Style the command name using title style.
6706         * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
6707         (_initialize_cli_cmds): Describe -v in apropos_command help.
6708
6709 2019-06-03  Philippe Waroquiers  <[email protected]>
6710
6711         * cli/cli-style.h (cli_style_option): Add name in constructor,
6712         add m_name class member, add constructor with intensity,
6713         add name class function.
6714         (cli_style_option::add_setshow_commands): Remove name argument.
6715         (highlight_style, title_style): New styles.
6716         * cli/cli-style.c (do_show): New function that shows a style
6717         characteristic styling the style name with itself.
6718         (set_style_name): New function.
6719         (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
6720         Update all callers according to the changes in cli/cli-style.h.
6721         * utils.h (fputs_highlighted): New function.
6722         * utils.c (fputs_highlighted): Likewise.
6723
6724 2019-05-31  Philippe Waroquiers  <[email protected]>
6725
6726         * NEWS: Mention new pipe command and new convenience variables.
6727
6728 2019-05-31  Philippe Waroquiers  <[email protected]>
6729
6730         * cli/cli-cmds.c (pipe_command): New function.
6731         (_initialize_cli_cmds): Call add_com for pipe_command.
6732         Define | as an alias for pipe.
6733         (exit_status_set_internal_vars): New function.
6734         (shell_escape): Call exit_status_set_internal_vars.
6735         cli/cli-decode.c (find_command_name_length): Recognize | as
6736         a single character command.
6737
6738 2019-05-31  Philippe Waroquiers  <[email protected]>
6739
6740         * gdbcmd.h (execute_command_to_ui_file): New declaration.
6741         top.c (execute_command_to_ui_file): New function, mostly a copy
6742         of execute_command_to_string.
6743         (execute_command_to_string): Implement by calling
6744         execute_command_to_ui_file.
6745
6746 2019-05-31  Philippe Waroquiers  <[email protected]>
6747
6748         * top.h (saved_command_line): Remove declaration.
6749         * top.c (previous_saved_command_line, previous_repeat_arguments):
6750         New variables.
6751         (saved_command_line): Make static, define together with other
6752         'repeat variables'.
6753         (dont_repeat): Clear repeat_arguments.
6754         (repeat_previous, get_saved_command_line, save_command_line):
6755         New functions.
6756         (gdb_init): Initialize saved_command_line
6757         and previous_saved_command_line.
6758         * main.c (captured_main_1): Remove saved_command_line initialization.
6759         * event-top.c (handle_line_of_input): Update to use
6760         the new 'repeat' related functions instead of direct access to
6761         saved_command_line.
6762         * command.h (repeat_previous, get_saved_command_line,
6763         save_command_line): New declarations.
6764         (dont_repeat): Add comment.
6765
6766 2019-05-30  Tom Tromey  <[email protected]>
6767
6768         * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
6769         Fix comment.
6770         (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
6771
6772 2019-05-30  Jan Vrany  <[email protected]>
6773
6774         PR cli/24587
6775         * completer.c (complete): Initialize variable word.
6776
6777 2019-05-29  Sergio Durigan Junior  <[email protected]>
6778
6779         Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
6780         Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
6781         * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
6782         'body' is NULL to the outter 'if', protecting the '!is_define'
6783         situation as well.
6784
6785 2019-05-29  Tom Tromey  <[email protected]>
6786
6787         * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
6788         (dwarf_unknown): New function.
6789         (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
6790         (dwarf_type_encoding_name): Use dwarf_unknown.
6791
6792 2019-05-29  Tom Tromey  <[email protected]>
6793
6794         PR c++/20020:
6795         * cp-valprint.c (cp_print_value_fields): Call
6796         cp_print_static_field inside "try".
6797
6798 2019-05-29  Tom Tromey  <[email protected]>
6799
6800         * inflow.c (struct terminal_info): Add default operator=.
6801         * configure: Rebuild.
6802         * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
6803         -Wdeprecated-copy-dtor, -Wredundant-move.
6804
6805 2019-05-29  Tom Tromey  <[email protected]>
6806
6807         * NEWS: Add entry.
6808         * infcmd.c (print_return_value_1): Handle finish_print
6809         option.
6810         (show_print_finish): New function.
6811         (_initialize_infcmd): Add "set/show print finish" commands.
6812         * valprint.c (user_print_options): Initialize new member.
6813         * valprint.h (struct value_print_options) <finish_print>: New
6814         member.
6815
6816 2019-05-28  Tom Tromey  <[email protected]>
6817
6818         * ada-lang.c (ada_remove_Xbn_suffix)
6819         (find_old_style_renaming_symbol)
6820         (parse_old_style_renaming): Remove.
6821         (ada_find_renaming_symbol): Don't call
6822         find_old_style_renaming_symbol.
6823         (ada_is_renaming_symbol): Rename from
6824         ada_find_renaming_symbol.  Remove "block" parameter.  Return
6825         bool.  Now static.
6826         (ada_read_var_value): Update and simplify.
6827         * ada-exp.y (write_var_or_type): Remove old code.
6828
6829 2019-05-28  Alan Hayward  <[email protected]>
6830
6831         PR gdb/25010
6832         * event-top.c: Remove include comment.
6833         * inflow.c (class scoped_ignore_sigttou): Move from here...
6834         * inflow.h (class scoped_ignore_sigttou): ...to here.
6835         * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
6836         * top.c:  Remove include comment.
6837
6838 2019-05-27  Tom Tromey  <[email protected]>
6839
6840         * NEWS: Fix typo.
6841
6842 2019-05-22  Tom Tromey  <[email protected]>
6843
6844         * target.c (target_follow_exec): Constify parameter.
6845         * target-delegates.c: Rebuild.
6846         * remote.c (remote_target::follow_exec): Constify parameter.
6847         * infrun.c (follow_exec): Constify parameter.
6848         * target.h (struct target_ops) <follow_exec>: Constify parameter.
6849         (target_follow_exec): Likewise.
6850
6851 2019-05-22  Alan Hayward  <[email protected]>
6852
6853         * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
6854         DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
6855
6856 2019-05-22  Alan Hayward  <[email protected]>
6857
6858         * NEWS: Add debugredirect and testsuite sections.
6859
6860 2019-05-22  Simon Cook  <[email protected]>
6861
6862         * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
6863         target descriptions using exclusively floating point register name
6864         aliases.
6865
6866 2019-05-21  Andrew Burgess  <[email protected]>
6867
6868         PR gdb/18644:
6869         * f-lang.c (build_fortran_types): Handle the case where
6870         gdbarch_floatformat_for_type returns a nullptr.
6871
6872 2019-05-21  Tom de Vries  <[email protected]>
6873
6874         PR cli/24587
6875         * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
6876
6877 2019-05-18  Andrew Burgess  <[email protected]>
6878
6879         PR gdb/18644:
6880         * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
6881         16-byte floats.
6882         * i386-tdep.c (i386_floatformat_for_type): Use
6883         floatformats_ia64_quad for the 16-byte floating point component
6884         within a fortran 32-byte complex number.
6885
6886 2019-05-18  Andrew Burgess  <[email protected]>
6887
6888         * dwarf2read.c (struct cu_partial_die_info): Add constructor,
6889         delete default constructor.
6890         (find_partial_die): Update to return const struct.
6891         (partial_die_parent_scope): Move variable declaration into scope
6892         of its use and change its type to auto.
6893         (guess_partial_die_structure_name): Likewise.
6894         (partial_die_info::fixup): Likewise.
6895
6896 2019-05-17  Tom Tromey  <[email protected]>
6897
6898         * source.c (find_and_open_source): Remove cast.
6899
6900 2019-05-17  Tom Tromey  <[email protected]>
6901
6902         * annotate.c (annotate_source): Make "filename" const.
6903         * annotate.h (annotate_source): Use const.
6904
6905 2019-05-17  Alan Hayward  <[email protected]>
6906
6907         * disasm.c (set_disassembler_options): Send errors to stderr.
6908
6909 2019-05-17  Alan Hayward  <[email protected]>
6910
6911         * cli/cli-interp.c (struct saved_output_files): Add saved entry.
6912         (cli_interp_base::set_logging): Check debug_redirect.
6913         * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
6914         * cli/cli-logging.c (debug_redirect): Add static variable.
6915         (pop_output_files): Add default param.
6916         (handle_redirections): Print debug setting.
6917         (show_logging_command): Likewise.
6918         (_initialize_cli_logging): Add debugredirect command.
6919         * interps.c (current_interp_set_logging): Add debug_redirect
6920         parameter.
6921         * interps.h (set_logging): Add debug_redirect parameter.
6922         (current_interp_set_logging): Likewise.
6923         * mi/mi-common.h: Likewise.
6924         * mi/mi-interp.c (mi_interp::set_logging): Likewise.
6925
6926 2019-05-17  Alan Hayward  <[email protected]>
6927             Tom Tromey  <[email protected]>
6928
6929         * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
6930         directly.
6931         * cli/cli-interp.h (make_logging_output): Remove declaration.
6932         * cli/cli-logging.c (make_logging_output): Remove function.
6933         * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
6934         directly.
6935         * ui-file.c (tee_file::tee_file): Remove bools.
6936         (tee_file::~tee_file): Remove deletes.
6937         * ui-file.h (tee_file): Remove bools.
6938
6939 2019-01-28  Jan Vrany  <[email protected]>
6940
6941         * mi/mi-cmds.h (mi_cmd_complete): New function.
6942         * mi/mi-main.c (mi_cmd_complete): Likewise.
6943         * mi/mi-cmds.c: Define new MI command -complete.
6944         * NEWS: Mention new -complete command.
6945
6946 2019-01-24  Jan Vrany  <[email protected]>
6947
6948         * completer.h (complete): New function.
6949         * completer.c (complete): Likewise.
6950         * cli/cli-cmds.c: (complete_command): Update to use new complete()
6951         function defined in completer.h.
6952
6953 2019-05-17  Jan Vrany  <[email protected]>
6954
6955         * MAINTAINERS (Write After Approval): Add myself.
6956
6957 2019-05-17  Tom de Vries  <[email protected]>
6958
6959         PR gdb/24094
6960         * dwarf2read.c (struct cu_partial_die_info): New struct.
6961         (find_partial_die): Return cu_partial_die_info.
6962         (partial_die_parent_scope, guess_partial_die_structure_name)
6963         (partial_die_info::fixup): Handle new return type of find_partial_die.
6964
6965 2019-05-16  Sergio Durigan Junior  <[email protected]>
6966
6967         PR breakpoints/24541
6968         * stap-probe.c (stap_parse_register_operand): Make "regname" an
6969         "std::string", simplifying the algorithm.
6970
6971 2019-05-16  Sergio Durigan Junior  <[email protected]>
6972
6973         * stap-probe.c (handle_stap_probe): Fix complaint formatting.
6974         (stap_static_probe_ops::get_probes): Likewise.
6975
6976 2019-05-16  Sergio Durigan Junior  <[email protected]>
6977
6978         * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
6979         '-')" and "else if".
6980         (stap_parse_single_operand): Join checks for
6981         "gdbarch_stap_parse_special_token_p" and
6982         "gdbarch_stap_parse_special_token" in the same "if" statement.
6983         Invert check when verifying for operation on register
6984         displacement.
6985
6986 2019-05-16  Sergio Durigan Junior  <[email protected]>
6987
6988         * stap-probe.c (stap_get_opcode): Update comment.
6989         (stap_get_expected_argument_type): Likewise.
6990         (handle_stap_probe): Likewise.
6991
6992 2019-05-16  Sergio Durigan Junior  <[email protected]>
6993
6994         * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
6995         return type to 'bool'.  Adjust comment.  Use 'bool' when
6996         appropriate.
6997         (i386_stap_parse_special_token_three_arg_disp): Likewise.
6998         * stap-probe.c (stap_parse_argument_1): Likewise.
6999         (stap_is_operator): Likewise.
7000         (stap_is_generic_prefix): Likewise.
7001         (stap_is_register_prefix): Likewise.
7002         (stap_is_register_indirection_prefix): Likewise.
7003         (stap_is_integer_prefix): Likewise.
7004         (stap_generic_check_suffix): Likewise.
7005         (stap_check_integer_suffix): Likewise.
7006         (stap_check_register_suffix): Likewise.
7007         (stap_check_register_indirection_suffix): Likewise.
7008         (stap_parse_register_operand): Likewise.
7009         (stap_parse_single_operand): Likewise.
7010         (stap_parse_argument_1): Likewise.
7011         (stap_probe::get_argument_count): Likewise.
7012         (stap_is_operator): Likewise.
7013
7014 2019-05-16  Tom Tromey  <[email protected]>
7015
7016         * darwin-nat.c (thread_info_from_private_thread_info): Add struct
7017         keyword to foreach.
7018
7019 2019-05-15  Simon Marchi  <[email protected]>
7020
7021         * linux-thread-db.c (try_thread_db_load_1): Change return type
7022         to bool.
7023         (try_thread_db_load): Likewise.
7024         (try_thread_db_load_from_pdir_1): Likewise.
7025         (try_thread_db_load_from_pdir): Likewise.
7026         (try_thread_db_load_from_sdir): Likewise.
7027         (try_thread_db_load_from_dir): Likewise.
7028         (thread_db_load_search): Likewise.
7029         (has_libpthread): Likewise.
7030         (thread_db_load): Likewise.
7031
7032 2019-05-15  Sergio Durigan Junior  <[email protected]>
7033
7034         Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
7035         * dwarf2read.c (parse_macro_definition): Check whether 'body' is
7036         NULL, and complain/return if that's the case.
7037
7038 2019-05-15  John Darrington <[email protected]>
7039
7040         * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
7041         (advance, posn, abstract_read_memory): New functions.
7042         [struct mem_read_abstraction]: New struct.
7043         (s12z_frame_cache): Use opcodes API to interpret stack frame code.
7044
7045 2019-05-14  Tom Tromey  <[email protected]>
7046
7047         * ada-lang.c (coerce_unspec_val_to_type): Only set address when
7048         value is not lval_memory.
7049
7050 2019-05-14  Tom Tromey  <[email protected]>
7051
7052         * solib.c (info_sharedlibrary_command): Style the file name.
7053
7054 2019-05-14  Alan Hayward  <[email protected]>
7055
7056         * aarch64-tdep.c (aarch64_vnh_type): Add half view.
7057         (aarch64_vnv_type): Likewise.
7058         * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
7059         * common/tdesc.c: Likewise.
7060         * common/tdesc.h (enum tdesc_type_kind): Likewise.
7061         * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
7062         * features/aarch64-fpu.xml: Add ieee half view.
7063         * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
7064         * gdbtypes.c (gdbtypes_post_init): Add builtin_half
7065         * gdbtypes.h (struct builtin_type): Likewise.
7066         (struct objfile_type): Likewise.
7067
7068 2019-05-12  Paul Naert  <[email protected]>
7069
7070         * language.c (language_sniff_from_mangled_name): Fix "langauge"
7071         typo.
7072         * location.h (string_to_event_location): Likewise.
7073
7074 2019-05-11  Joel Brobecker  <[email protected]>
7075
7076         GDB 8.3 released.
7077
7078 2019-05-10  Simon Marchi  <[email protected]>
7079
7080         * breakpoint.h (fix_multi_location_breakpoint_output_globally):
7081         New variable declaration.
7082         * breakpoint.c (fix_multi_location_breakpoint_output_globally):
7083         New variable.
7084         (print_one_breakpoint): Use ui_out::test_flags and new global
7085         variable to compute use_fixed_output.
7086         * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
7087         Remove.
7088         * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
7089         (mi_multi_location_breakpoint_output_fixed): Remove.
7090         (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
7091         new variable.
7092         * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
7093         fix_multi_location_breakpoint_output flag if version >= 3.
7094         * ui-out.h (enum ui_out_flag)
7095         <fix_multi_location_breakpoint_output>: New enumerator.
7096
7097 2019-05-10  Simon Marchi  <[email protected]>
7098
7099         * contrib/cc-with-tweaks.sh: Validate dwz's work.
7100
7101 2019-05-10  Tom Tromey  <[email protected]>
7102
7103         * ada-lang.c (catch_ada_completer): New function.
7104         (_initialize_ada_language): Use it.
7105
7106 2019-05-10  Tom Tromey  <[email protected]>
7107
7108         * thread.c (print_thread_info): Make "requested_threads" const.
7109         * gdbthread.h (print_thread_info): Make "requested_threads"
7110         const.
7111         * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
7112         * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
7113
7114 2019-05-08  Tom Tromey  <[email protected]>
7115
7116         * gdbtypes.c (objfile_type_data): Change type.
7117         (objfile_type, _initialize_gdbtypes): Update.
7118
7119 2019-05-08  Tom Tromey  <[email protected]>
7120
7121         * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
7122         (dwarf2_frame_find_fde, dwarf2_build_frame_info)
7123         (_initialize_dwarf2_frame): Update.
7124
7125 2019-05-08  Tom Tromey  <[email protected]>
7126
7127         * objc-lang.c (objc_objfile_data): Change type.
7128         (find_methods): Update.
7129         (_initialize_objc_lang): Remove.
7130
7131 2019-05-08  Tom Tromey  <[email protected]>
7132
7133         * stabsread.c (rs6000_builtin_type_data): Change type.
7134         (rs6000_builtin_type, _initialize_stabsread): Update.
7135
7136 2019-05-08  Tom Tromey  <[email protected]>
7137
7138         * mips-tdep.c (mips_pdr_data): Remove.
7139         (_initialize_mips_tdep): Update.
7140
7141 2019-05-08  Tom Tromey  <[email protected]>
7142
7143         * hppa-tdep.c (hppa_objfile_priv_data): Change type.
7144         (hppa_init_objfile_priv_data, read_unwind_info)
7145         (find_unwind_entry, _initialize_hppa_tdep): Update.
7146
7147 2019-05-08  Tom Tromey  <[email protected]>
7148
7149         * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
7150         (elf_gnu_ifunc_record_cache): Update.  Don't allocate hash table
7151         on obstack.
7152         (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
7153
7154 2019-05-08  Tom Tromey  <[email protected]>
7155
7156         * mdebugread.c (basic_type_data): Change type.
7157         (basic_type, _initialize_mdebugread): Update.
7158
7159 2019-05-08  Tom Tromey  <[email protected]>
7160
7161         * common/gdb_unique_ptr.h (struct noop_deleter): New.
7162
7163 2019-05-08  Tom Tromey  <[email protected]>
7164
7165         * nto-tdep.c (nto_inferior_data_reg): Change type.
7166         (nto_inferior_data): Update.
7167         (nto_inferior_data_cleanup, nto_new_inferior_data)
7168         (_initialize_nto_tdep): Remove.
7169         * nto-tdep.h (struct nto_inferior_data): Add initializers.
7170
7171 2019-05-08  Tom Tromey  <[email protected]>
7172
7173         * ada-lang.c (struct ada_inferior_data): Add initializers.
7174         (ada_inferior_data): Change type.
7175         (ada_inferior_data_cleanup): Remove.
7176         (get_ada_inferior_data, ada_inferior_exit)
7177         (struct ada_pspace_data): Add initializers, destructor.
7178         (ada_pspace_data_handle): Change type.
7179         (get_ada_pspace_data): Update.
7180         (ada_pspace_data_cleanup): Remove.
7181
7182 2019-05-08  Tom Tromey  <[email protected]>
7183
7184         * coffread.c (struct coff_symfile_info): Add initializers.
7185         (coff_objfile_data_key): Move lower.  Change type.
7186         (coff_symfile_init, coff_symfile_read, _initialize_coffread):
7187         Update.
7188         (coff_free_info): Remove.
7189
7190 2019-05-08  Tom Tromey  <[email protected]>
7191
7192         * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
7193         (fbsd_pspace_data_handle): Move lower.  Change type.
7194         (get_fbsd_pspace_data): Update.
7195         (fbsd_pspace_data_cleanup): Remove.
7196         (_initialize_fbsd_tdep): Update.
7197
7198 2019-05-08  Tom Tromey  <[email protected]>
7199
7200         * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
7201         (get_ada_tasks_pspace_data): Update.
7202         (ada_tasks_pspace_data_cleanup): Remove.
7203         (_initialize_tasks): Update.
7204         (ada_tasks_inferior_data_handle): Change type.
7205         (get_ada_tasks_inferior_data): Update.
7206         (ada_tasks_inferior_data_cleanup): Remove.
7207         (struct ada_tasks_pspace_data): Add initializers.
7208
7209 2019-05-08  Tom Tromey  <[email protected]>
7210
7211         * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
7212         * symfile-debug.c (debug_sym_get_probes): Change type.
7213         * stap-probe.c (handle_stap_probe):
7214         (stap_static_probe_ops::get_probes): Change type.
7215         * probe.h (class static_probe_ops) <get_probes>: Change type.
7216         * probe.c (class any_static_probe_ops) <get_probes>: Change type.
7217         (parse_probes_in_pspace): Update.
7218         (find_probes_in_objfile, find_probe_by_pc, collect_probes):
7219         Update.
7220         (any_static_probe_ops::get_probes): Change type.
7221         * elfread.c (elfread_data): New typedef.
7222         (probe_key): Change type.
7223         (elf_get_probes): Likewise.  Update.
7224         (probe_key_free): Remove.
7225         (_initialize_elfread): Update.
7226         * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
7227         Change type.
7228         (dtrace_process_dof_probe, dtrace_process_dof)
7229         (dtrace_static_probe_ops::get_probe): Change type.
7230
7231 2019-05-08  Tom Tromey  <[email protected]>
7232
7233         * xcoffread.c (struct xcoff_symfile_info): Rename from
7234         coff_symfile_info.  Add initializers.
7235         (xcoff_objfile_data_key): Move lower.  Change type.
7236         (XCOFF_DATA): Rewrite.
7237         (xcoff_free_info): Remove.
7238         (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
7239         (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
7240         (xcoff_initial_scan): Update.
7241
7242 2019-05-08  Tom Tromey  <[email protected]>
7243
7244         * solib-svr4.c (struct svr4_info): Add initializers and
7245         destructor.
7246         <probes_table>: Now an htab_up.
7247         (solib_svr4_pspace_data): Change type.
7248         (free_probes_table): Simplify.
7249         (~svr4_info): Rename from svr4_pspace_data_cleanup.
7250         (get_svr4_info, probes_table_htab_remove_objfile_probes)
7251         (probes_table_remove_objfile_probes, register_solib_event_probe)
7252         (solib_event_probe_at, svr4_update_solib_event_breakpoint)
7253         (_initialize_svr4_solib): Update.
7254
7255 2019-05-08  Tom Tromey  <[email protected]>
7256
7257         * remote.c (remote_pspace_data): Change type.
7258         (remote_pspace_data_cleanup): Remove.
7259         (get_remote_exec_file, set_pspace_remote_exec_file)
7260         (_initialize_remote): Update.
7261
7262 2019-05-08  Tom Tromey  <[email protected]>
7263
7264         * breakpoint.c (breakpoint_objfile_key): Change type.
7265         (get_breakpoint_objfile_data): Update.
7266         (free_breakpoint_objfile_data): Remove.
7267         (_initialize_breakpoint): Update.
7268
7269 2019-05-08  Tom Tromey  <[email protected]>
7270
7271         * linux-tdep.c (struct linux_info): Add initializers.
7272         (linux_inferior_data): Move.  Change type.
7273         (invalidate_linux_cache_inf): Update.
7274         (linux_inferior_data_cleanup): Remove.
7275         (get_linux_inferior_data, _initialize_linux_tdep): Update.
7276
7277 2019-05-08  Tom Tromey  <[email protected]>
7278
7279         * auxv.c (auxv_inferior_data): Move.  Change type.
7280         (auxv_inferior_data_cleanup): Remove.
7281         (invalidate_auxv_cache_inf): Rewrite.
7282         (get_auxv_inferior_data, _initialize_auxv): Update.
7283
7284 2019-05-08  Tom Tromey  <[email protected]>
7285
7286         * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
7287         (symfile_debug_objfile_data_key): Change type.
7288         (symfile_debug_installed, debug_qf_has_symbols)
7289         (debug_qf_find_last_source_symtab)
7290         (debug_qf_forget_cached_source_info)
7291         (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
7292         (debug_qf_print_stats, debug_qf_dump)
7293         (debug_qf_expand_symtabs_for_function)
7294         (debug_qf_expand_all_symtabs)
7295         (debug_qf_expand_symtabs_with_fullname)
7296         (debug_qf_map_matching_symbols)
7297         (debug_qf_expand_symtabs_matching)
7298         (debug_qf_find_pc_sect_compunit_symtab)
7299         (debug_qf_map_symbol_filenames)
7300         (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
7301         (debug_sym_new_init, debug_sym_init, debug_sym_read)
7302         (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
7303         (debug_sym_read_linetable, debug_sym_relocate): Update.
7304         (symfile_debug_free_objfile): Remove.
7305         (install_symfile_debug_logging, _initialize_symfile_debug):
7306         Update.
7307
7308 2019-05-08  Tom Tromey  <[email protected]>
7309
7310         * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
7311         allocate_on_obstack.
7312         * dwarf2read.c (dwarf2_objfile_data_key): Change type.
7313         (get_dwarf2_per_objfile): Update.
7314         (set_dwarf2_per_objfile): Remove.
7315         (dwarf2_has_info, dwarf2_get_section_info): Update.
7316         (dwarf2_free_objfile): Remove.
7317         (_initialize_dwarf2_read): Update.
7318
7319 2019-05-08  Tom Tromey  <[email protected]>
7320
7321         * auto-load.c (struct auto_load_pspace_info): Add destructor and
7322         initializers.
7323         <unsupported_script_warning_printed,
7324         script_not_found_warning_printed>: Now bool.
7325         (auto_load_pspace_data): Change type.
7326         (~auto_load_pspace_info): Rename from
7327         auto_load_pspace_data_cleanup.
7328         (get_auto_load_pspace_data, init_loaded_scripts_info)
7329         (clear_section_scripts, maybe_print_unsupported_script_warning)
7330         (maybe_print_script_not_found_warning, _initialize_auto_load):
7331         Update.
7332
7333 2019-05-08  Tom Tromey  <[email protected]>
7334
7335         * objfiles.c (objfile_pspace_info): Add destructor and
7336         initializers.
7337         (objfiles_pspace_data): Change type.
7338         (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
7339         (get_objfile_pspace_data): Update.
7340         (objfiles_bfd_data): Change type.
7341         (get_objfile_bfd_data): Update.
7342         (objfile_bfd_data_free, _initialize_objfiles): Remove.
7343
7344 2019-05-08  Tom Tromey  <[email protected]>
7345
7346         * break-catch-syscall.c (catch_syscall_inferior_data): Move.
7347         Change type.
7348         (get_catch_syscall_inferior_data): Update.
7349         (catch_syscall_inferior_data_cleanup): Remove.
7350         (_initialize_break_catch_syscall): Update.
7351
7352 2019-05-08  Tom Tromey  <[email protected]>
7353
7354         * inflow.c (struct terminal_info): Add destructor and
7355         initializers.
7356         (inflow_inferior_data): Change type.
7357         (~terminal_info): Rename from inflow_inferior_data_cleanup.
7358         (get_inflow_inferior_data, inflow_inferior_exit)
7359         (swap_terminal_info, _initialize_inflow): Update.
7360
7361 2019-05-08  Tom Tromey  <[email protected]>
7362
7363         * target-dcache.c (target_dcache_cleanup): Remove.
7364         (target_dcache_aspace_key): Change type.
7365         (target_dcache_init_p, target_dcache_invalidate)
7366         (target_dcache_get, target_dcache_get_or_init)
7367         (_initialize_target_dcache): Update.
7368         * dcache.h (struct dcache_deleter): New.
7369
7370 2019-05-08  Tom Tromey  <[email protected]>
7371
7372         * symtab.c (struct symbol_cache): Add destructor and
7373         initializers.
7374         (symbol_cache_key): Move.  Change type.
7375         (make_symbol_cache, free_symbol_cache): Remove.
7376         (get_symbol_cache): Update.
7377         (symbol_cache_cleanup): Remove.
7378         (ALL_PSPACES, symbol_cache_flush)
7379         (maintenance_print_symbol_cache)
7380         (maintenance_print_symbol_cache_statistics, _initialize_symtab):
7381         Update.
7382
7383 2019-05-08  Tom Tromey  <[email protected]>
7384
7385         * symtab.c (struct main_info): Add destructor and initializers.
7386         (main_progspace_key): Move.  Change type.
7387         (get_main_info): Update.
7388         (main_info_cleanup): Remove.
7389         (_initialize_symtab): Update.
7390
7391 2019-05-08  Tom Tromey  <[email protected]>
7392
7393         * registry.h (DECLARE_REGISTRY): Define the _key class.
7394
7395 2019-05-08  Andrew Burgess  <[email protected]>
7396
7397         * NEWS: Merge two 'New commands' sections.
7398
7399 2019-05-08  Joel Brobecker  <[email protected]>
7400
7401         * ada-valprint.c (ada_val_print_gnat_array): Remove language
7402         parameter and use Ada language definition instead.
7403         (ada_val_print_ptr): Remove unused language parameter.
7404         (ada_val_print_num): Remove language parameter and use Ada language
7405         definition instead.
7406         (ada_val_print_enum, ada_val_print_flt): Remove unused language
7407         parameter.
7408         (ada_val_print_struct_union, ada_val_print_ref): Remove language
7409         parameter and use Ada language definition instead.
7410         (ada_val_print_1): Update all ada_val_print_xxx calls.
7411         Remove language parameter.
7412         (ada_val_print): Update ada_val_print_1 call.
7413
7414 2019-05-08  Tom Tromey  <[email protected]>
7415
7416         * remote.c (remote_hw_watchpoint_limit)
7417         (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
7418         Now static.
7419
7420 2019-05-08  Tom Tromey  <[email protected]>
7421
7422         * maint.c (_initialize_maint_cmds): Move initialization code to
7423         remote.c.
7424         (watchdog, show_watchdog): Move to remote.c.
7425         * remote.c (watchdog, show_watchdog): Move from maint.c.  Make
7426         "watchdog" static.
7427         (_initialize_remote): Move initialization code from maint.c.
7428         * defs.h (watchdog): Don't declare.
7429
7430 2019-05-08  Tom Tromey  <[email protected]>
7431
7432         * tui/tui-interp.c: Include main.h.
7433         * interps.c: Include main.h.
7434         * main.h (interpreter_p): Declare.
7435         * defs.h (interpreter_p): Don't declare.
7436
7437 2019-05-08  Tom Tromey  <[email protected]>
7438
7439         * dwarf2loc.c: Include dwarf2read.h.
7440         * defs.h (read_unsigned_leb128): Don't declare.
7441         * dwarf2read.h (read_unsigned_leb128): Declare.
7442
7443 2019-05-08  Tom Tromey  <[email protected]>
7444
7445         * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
7446         method.
7447
7448 2019-05-08  Tom Tromey  <[email protected]>
7449
7450         * utils.c (fputs_maybe_filtered): Reset style after paging, even
7451         when no wrap column is set.
7452
7453 2019-05-08  Tom Tromey  <[email protected]>
7454
7455         * c-lang.c (c_get_string): Handle non-C-style arrays.
7456
7457 2019-05-08  Tom Tromey  <[email protected]>
7458
7459         * typeprint.c (print_offset_data::update): Print the bit offset,
7460         not the number of bits remaining.
7461
7462 2019-05-08  Tom Tromey  <[email protected]>
7463
7464         * typeprint.c (print_offset_data::maybe_print_hole): Add extra
7465         padding at end of comment.
7466
7467 2019-05-08  Tom Tromey  <[email protected]>
7468
7469         * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
7470         Compare main types.
7471
7472 2019-05-06  Tom Tromey  <[email protected]>
7473
7474         * common/scoped_mmap.c: Include common-defs.h.
7475         * common/scoped_mmap.h: Don't include config.h.
7476
7477 2019-05-04  Tom Tromey  <[email protected]>
7478
7479         * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
7480         (struct aarch64_call_info): Add initializers.
7481         <si>: Now a std::vector.
7482         (pass_on_stack, aarch64_push_dummy_call): Update.
7483
7484 2019-05-04  Simon Marchi  <[email protected]>
7485             Tom Tromey  <[email protected]>
7486
7487         * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
7488         (ppc_threads): Now a std::vector.  Now static.
7489         (hwdebug_find_thread_points_by_tid)
7490         (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
7491         Update.
7492
7493 2019-05-04  Tom Tromey  <[email protected]>
7494
7495         * arc-tdep.c (arc_tdesc_init): Return bool.
7496
7497 2019-05-04  Tom Tromey  <[email protected]>
7498
7499         * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
7500         Use gdb_assert_not_reached.
7501
7502 2019-05-04  Tom Tromey  <[email protected]>
7503
7504         * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
7505         "false".
7506
7507 2019-05-04  Tom Tromey  <[email protected]>
7508
7509         * arc-tdep.c (arc_tdesc_init): Use bool.
7510
7511 2019-05-04  Tom Tromey  <[email protected]>
7512
7513         * stack.c (select_frame_for_mi): Use "false", not "FALSE".
7514
7515 2019-05-04  Tom Tromey  <[email protected]>
7516
7517         * cli/cli-cmds.c (valid_command_p): Return bool.
7518
7519 2019-05-04  Tom Tromey  <[email protected]>
7520
7521         * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
7522         * command.h (valid_user_defined_cmd_name_p): Channge return type.
7523
7524 2019-05-04  Raul Tambre  <[email protected]>
7525
7526         * python/lib/gdb/prompt.py (_ExtendedPrompt)
7527         <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
7528         operator for comparison.
7529
7530 2019-05-04  Tom Tromey  <[email protected]>
7531
7532         * psymtab.c (psymbol_name_matches, match_partial_symbol)
7533         (lookup_partial_symbol, print_partial_symbols)
7534         (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
7535         (psymbol_compare): Update.
7536         (add_psymbol_to_bcache): Clear the entire psymbol.
7537         (maintenance_check_psymtabs): Update.
7538         * psympriv.h (struct partial_symbol): Don't derive from
7539         general_symbol_info.
7540         <obj_section, unrelocated_address, address,
7541         set_unrelocated_address>: Update.
7542         <ginfo>: New member.
7543         * dwarf-index-write.c (write_psymbols, debug_names::insert)
7544         (debug_names::write_psymbols): Update.
7545
7546 2019-05-04  Tom de Vries  <[email protected]>
7547
7548         * contrib/cc-with-tweaks.sh: Support -n arg.
7549
7550 2019-05-04  Philippe Waroquiers  <[email protected]>
7551
7552         * corelow.c (core_target::detach): Ensure frame cache and
7553         register caches are cleared.
7554         inferior.c (exit_inferior_1): Likewise.
7555
7556 2019-05-03  Sandra Loosemore  <[email protected]>
7557             Tom Tromey  <[email protected]>
7558
7559         * dictionary.c (collate_pending_symbols_by_language): Remove
7560         "struct" from foreach.
7561         * symtab.c (lookup_global_symbol_from_objfile)
7562         (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
7563         foreach.
7564         * ser-tcp.c (net_open): Remove "struct" from foreach.
7565         * objfiles.c (objfile_relocate, objfile_rebase)
7566         (objfile_has_symbols): Remove "struct" from foreach.
7567         * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
7568         from foreach.
7569         * dwarf2read.c (handle_struct_member_die): Remove "struct" from
7570         foreach.
7571         * darwin-nat.c (thread_info_from_private_thread_info): Remove
7572         "struct" from foreach.
7573         * ada-lang.c (create_excep_cond_exprs)
7574         (ada_exception_catchpoint_cond_string): Remove "struct" from
7575         foreach.
7576
7577 2019-05-03  Tom Tromey  <[email protected]>
7578
7579         * ada-exp.y (convert_char_literal): Check suffix of each
7580         enumerator.
7581
7582 2019-05-03  Dilyan Palauzov  <[email protected]>
7583
7584         PR ada/21406:
7585         * ada-exp.y (yywrap): Don't define.
7586         * ada-lex.l (%option): Add noyywrap
7587         (yywrap): Remove.
7588
7589 2019-05-03  Eli Zaretskii  <[email protected]>
7590
7591         * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
7592         _WIN32_WINNT to the XP level, unless already defined to a higher
7593         level.
7594
7595         * unittests/parse-connection-spec-selftests.c:
7596         * ser-tcp.c:
7597         * common/netstuff.c [USE_WIN32API]:  Remove the _WIN32_WINNT
7598         override.
7599
7600         * symfile.c (find_separate_debug_file): Remove colon from the
7601         drive spec of DOS/Windows file names of the target, so that the
7602         file name produced from DEBUGDIR and the target's directory will
7603         be valid on DOS/Windows systems.
7604
7605 2019-05-02  Andrew Burgess  <[email protected]>
7606
7607         * rust-lang.c (val_print_struct): Handle printing structures
7608         containing strings.
7609
7610 2019-05-02  Tom Tromey  <[email protected]>
7611
7612         * valarith.c (_initialize_valarith): Remove.
7613
7614 2019-05-01  Tom Tromey  <[email protected]>
7615
7616         * ada-lang.c (ada_value_primitive_field): Treat more fields as
7617         bitfields.
7618
7619 2019-05-01  Tom Tromey  <[email protected]>
7620
7621         * ada-lang.c (ada_value_assign): Correctly compute starting offset
7622         for big-endian copies.
7623
7624 2019-04-30  Ali Tamur  <[email protected]>
7625         * gdb/dwarf2read.c (read_3_bytes): New declaration.
7626         (read_attribute_value): Added DW_FORM_strx1-4 cases.
7627         (read_3_bytes): New function.
7628
7629 2019-04-30  Joel Brobecker  <[email protected]>
7630
7631         * windows-nat.c (main_thread_id): Delete.
7632         (handle_output_debug_string): Replace main_thread_id by
7633         current_event.dwThreadId.
7634         (fake_create_process): Likewise.
7635         (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
7636         Do not set main_thread_id.
7637         <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
7638         current_event.dwThreadId.
7639         <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
7640
7641 2019-04-30  Joel Brobecker  <[email protected]>
7642
7643         * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
7644         Use current_event.dwThreadId instead of main_thread_id.
7645
7646 2019-04-30  Tom Tromey  <[email protected]>
7647
7648         * ada-lang.c (ada_lookup_simple_minsyms): New function.
7649         (create_excep_cond_exprs): Iterate over program spaces.
7650         (ada_exception_catchpoint_cond_string): Examine all minimal
7651         symbols for exception types.
7652
7653 2019-04-30  Tom Tromey  <[email protected]>
7654
7655         PR c++/24470:
7656         * dwarf2read.c (process_structure_scope): Handle case where type
7657         has template parameters but no symbol was created.
7658
7659 2019-04-30  Andrew Burgess  <[email protected]>
7660             Chris January  <[email protected]>
7661
7662         * f-typeprint.c (f_type_print_base): Print 'allocatable' type
7663         qualifier.
7664         * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
7665
7666 2019-04-30  Andrew Burgess  <[email protected]>
7667
7668         * f-typeprint.c (f_print_type): Update rules for printing
7669         whitespace.
7670         (f_type_print_varspec_suffix): Likewise.
7671
7672 2019-04-30  Andrew Burgess  <[email protected]>
7673             Chris January  <[email protected]>
7674
7675         * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
7676         function arguments.
7677
7678 2019-04-30  Andrew Burgess  <[email protected]>
7679
7680         * f-lang.c (build_fortran_types): Change name of void type to
7681         lower case.
7682         * f-typeprint.c (f_type_print_base): Print the name of the void
7683         type, rather than a fixed string.
7684         * f-valprint.c (f_decorations): Use lower case void string.
7685
7686 2019-04-30  Andrew Burgess  <[email protected]>
7687             Chris January  <[email protected]>
7688
7689         * dwarf2read.c (dwarf2_init_complex_target_type): Use different
7690         types for Fortran.
7691
7692 2019-04-30  Andrew Burgess  <[email protected]>
7693             Chris January  <[email protected]>
7694             David Lecomber  <[email protected]>
7695
7696         * f-exp.y (BINOP_INTRINSIC): New token.
7697         (exp): New parser rule handling BINOP_INTRINSIC.
7698         (f77_keywords): Add new builtin procedures.
7699         * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
7700         UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7701         (operator_length_f): Handle UNOP_FORTRAN_CEILING,
7702         UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7703         (print_unop_subexp_f): New function.
7704         (print_binop_subexp_f): New function.
7705         (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
7706         BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7707         (dump_subexp_body_f): Likewise.
7708         (operator_check_f): Likewise.
7709         * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
7710         BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
7711
7712 2019-04-30  Andrew Burgess  <[email protected]>
7713
7714         * gdb/expprint.c (dump_subexp_body_standard): Remove use of
7715         UNOP_KIND.
7716         * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
7717         * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
7718         * gdb/f-lang.c (evaluate_subexp_f): Likewise.
7719         (operator_length_f): New fuction.
7720         (print_subexp_f): New function.
7721         (op_name_f): New function.
7722         (dump_subexp_body_f): New function.
7723         (operator_check_f): New function.
7724         (exp_descriptor_f): Replace standard expression handling functions
7725         with new functions.
7726         * gdb/fortran-operator.def: New file.
7727         * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
7728         * gdb/std-operator.def: Remove UNOP_KIND.
7729
7730 2019-04-30  Andrew Burgess  <[email protected]>
7731
7732         * std-operator.def: Remove unbalanced, stray double quote
7733         character.
7734
7735 2019-04-29  Andrew Burgess  <[email protected]>
7736             Chris January  <[email protected]>
7737             Daniel Everett  <[email protected]>
7738             Nick Forrington  <[email protected]>
7739             Richard Bunt  <[email protected]>
7740
7741         * cp-valprint.c (cp_print_value_fields): Allow an additional level
7742         of depth when printing anonymous structs or unions.
7743         * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
7744         Don't print either the top-level value, or the children if the
7745         max-depth is exceeded.
7746         (ppscm_print_children): When printing the key of a map, allow one
7747         extra level of depth.
7748         * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
7749         print either the top-level value, or the children if the max-depth
7750         is exceeded.
7751         (print_children): When printing the key of a map, allow one extra
7752         level of depth.
7753         * python/py-value.c (valpy_format_string): Add max_depth keyword.
7754         * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
7755         (user_print_options): Initialise max_depth field.
7756         (val_print_scalar_or_string_type_p): New function.
7757         (val_print): Check to see if the max depth has been reached.
7758         (val_print_check_max_depth): Define new function.
7759         (show_print_max_depth): New function.
7760         (_initialize_valprint): Add 'print max-depth' option.
7761         * valprint.h (struct value_print_options) <max_depth>: New field.
7762         (val_print_check_max_depth): Declare new function.
7763         * NEWS: Document new feature.
7764
7765 2019-04-29  Andrew Burgess  <[email protected]>
7766
7767         * ada-lang.c (ada_language_defn): Initialise new field.
7768         * c-lang.c (c_is_string_type_p): New function.
7769         (c_language_defn): Initialise new field.
7770         (cplus_language_defn): Initialise new field.
7771         (asm_language_defn): Initialise new field.
7772         (minimal_language_defn): Initialise new field.
7773         * c-lang.h (c_is_string_type_p): Declare new function.
7774         * d-lang.c (d_language_defn): Initialise new field.
7775         * f-lang.c (f_is_string_type_p): New function.
7776         (f_language_defn): Initialise new field.
7777         * go-lang.c (go_is_string_type_p): New function.
7778         (go_language_defn): Initialise new field.
7779         * language.c (default_is_string_type_p): New function.
7780         (unknown_language_defn): Initialise new field.
7781         (auto_language_defn): Initialise new field.
7782         * language.h (struct language_defn) <la_is_string_type_p>: New
7783         member variable.
7784         (default_is_string_type_p): Declare new function.
7785         * m2-lang.c (m2_language_defn): Initialise new field.
7786         * objc-lang.c (objc_language_defn): Initialise new field.
7787         * opencl-lang.c (opencl_language_defn): Initialise new field.
7788         * p-lang.c (pascal_is_string_type_p): New function.
7789         (pascal_language_defn): Initialise new field.
7790         * rust-lang.c (rust_is_string_type_p): New function.
7791         (rust_language_defn): Initialise new field.
7792
7793 2019-04-29  Andrew Burgess  <[email protected]>
7794
7795         * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
7796         New field.
7797         * ada-lang.c (ada_language_defn): Initialise new field.
7798         * c-lang.c (c_language_defn): Likewise.
7799         (cplus_language_defn): Likewise.
7800         (asm_language_defn): Likewise.
7801         (minimal_language_defn): Likewise.
7802         * d-lang.c (d_language_defn): Likewise.
7803         * f-lang.c (f_language_defn): Likewise.
7804         * go-lang.c (go_language_defn): Likewise.
7805         * language.c (unknown_language_defn): Likewise.
7806         (auto_language_defn): Likewise.
7807         * m2-lang.c (m2_language_defn): Likewise.
7808         * objc-lang.c (objc_language_defn): Likewise.
7809         * opencl-lang.c (opencl_language_defn): Likewise.
7810         * p-lang.c (pascal_language_defn): Likewise.
7811         * rust-lang.c (rust_language_defn): Likewise.
7812
7813 2019-04-29  Andrew Burgess  <[email protected]>
7814
7815         * ada-lang.c (ada_is_character_type): Change return type to bool.
7816         (ada_is_string_type): Likewise.
7817         * ada-lang.h (ada_is_character_type): Update declaration
7818         (ada_is_string_type): Likewise.
7819
7820 2019-04-27  Philippe Waroquiers  <[email protected]>
7821
7822         Support style in 'frame|thread apply'
7823
7824         * gdbcmd.h (execute_command_to_string): New term_out parameter.
7825         * record.c (record_start, record_stop): Update callers of
7826         execute_command_to_string with false.
7827         * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
7828         * ui-file.h (class ui_file): New term_out and can_emit_style_escape
7829         methods.
7830         (class string_file): New constructor with term_out parameter.
7831         Override methods term_out and can_emit_style_escape.  New member
7832         term_out.
7833         (class stdio_file): Override can_emit_style_escape.
7834         (class tee_file): Override term_out and can_emit_style_escape.
7835         * utils.h (can_emit_style_escape): Remove.
7836         * utils.c (can_emit_style_escape): Likewise.
7837         Update all callers of can_emit_style_escape (SOMESTREAM) to
7838         SOMESTREAM->can_emit_style_escape.
7839         * source-cache.c (source_cache::get_source_lines): Likewise.
7840         * stack.c (frame_apply_command_count): Call execute_command_to_string
7841         passing the term_out characteristic of the current gdb_stdout.
7842         * thread.c (thr_try_catch_cmd): Likewise.
7843         * top.c (execute_command_to_string): pass term_out parameter
7844         to construct the string_file for the command output.
7845         * ui-file.c (term_cli_styling): New function (most code moved
7846         from utils.c can_emit_style_escape).
7847         (string_file::string_file, string_file::can_emit_style_escape,
7848         stdio_file::can_emit_style_escape, tee_file::term_out,
7849         tee_file::can_emit_style_escape): New functions.
7850
7851 2019-04-27  Philippe Waroquiers  <[email protected]>
7852
7853         * NEWS: Mention the new set|show may-call-functions.
7854         * infcall.c (may_call_functions_p): New variable.
7855         (show_may_call_functions_p): New function.
7856         (call_function_by_hand_dummy): Throws an error if not
7857         may-call-functions.
7858         (_initialize_infcall): Call add_setshow_boolean_cmd for
7859         may-call-functions.
7860
7861 2019-04-25  Keith Seitz  <[email protected]>
7862
7863         PR c++/24367
7864         * cp-support.c (inspect_type): Don't attempt substitutions
7865         of symbol with the same name.
7866
7867 2019-04-25  Tom Tromey  <[email protected]>
7868
7869         PR gdb/24475:
7870         * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
7871         static.
7872
7873 2019-04-25  Tom Tromey  <[email protected]>
7874
7875         * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
7876         rvalue reference.
7877         (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
7878         (gdb_xml_parser::parse): Use std::move.
7879         * python/python-internal.h (gdbpy_convert_exception): Take a const
7880         reference.
7881         * python/py-value.c (valpy_getitem, valpy_nonzero): Use
7882         std::move.
7883         * python/py-utils.c (gdbpy_convert_exception): Take a const
7884         reference.
7885         * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
7886         Use std::move.
7887         * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
7888         Use std::move.
7889         * mi/mi-main.c (mi_print_exception): Take a const reference.
7890         * main.c (handle_command_errors): Take a const reference.
7891         * linespec.c (parse_linespec): Use std::move.
7892         * infcall.c (run_inferior_call): Use std::move.
7893         (call_function_by_hand_dummy): Use std::move.
7894         * exec.c (try_open_exec_file): Use std::move.
7895         * exceptions.h (exception_print, exception_fprintf)
7896         (exception_print_same): Update.
7897         * exceptions.c (print_exception, exception_print)
7898         (exception_fprintf, exception_print_same): Change parameters to
7899         const reference.
7900         * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
7901         * common/new-op.c: Use std::move.
7902         * common/common-exceptions.h (struct gdb_exception): Add move
7903         constructor.
7904         (struct gdb_exception_error, struct gdb_exception_quit, struct
7905         gdb_quit_bad_alloc): Change constructor to move constructor.
7906         (throw_exception): Change parameter to rvalue reference.
7907         * common/common-exceptions.c (throw_exception): Take rvalue
7908         reference.
7909         * cli/cli-interp.c (safe_execute_command): Use std::move.
7910         * breakpoint.c (insert_bp_location, location_to_sals): Use
7911         std::move.
7912
7913 2019-04-25  Tom Tromey  <[email protected]>
7914
7915         * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
7916         (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
7917         * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
7918         guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
7919         guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
7920         guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
7921         guile/scm-value.c: Use unpack.
7922         * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
7923         gdbscm_gdb_exception.
7924         (gdbscm_throw_gdb_exception): Likewise.
7925         (struct gdbscm_gdb_exception): New.
7926         (unpack): New function.
7927         (gdbscm_wrap): Use unpack.
7928
7929 2019-04-25  Tom Tromey  <[email protected]>
7930
7931         * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
7932         (gdb_rl_callback_handler): Use std::move.
7933         * common/common-exceptions.h (struct gdb_exception): Add move
7934         assignment operator.
7935         (throw_exception_sjlj): Change "exception" to const reference.
7936         * common/common-exceptions.c (exceptions_state_mc_catch): Update.
7937         (throw_exception_sjlj): Change "exception" to const reference.
7938
7939 2019-04-25  Tom Tromey  <[email protected]>
7940
7941         * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
7942         * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
7943         * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
7944         Update.
7945         * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
7946         Update.
7947         * mi/mi-interp.c (mi_interp::exec): Update.
7948         * linespec.c (parse_linespec): Update.
7949         * infcall.c (run_inferior_call): Update.
7950         * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
7951         * guile/scm-symbol.c (gdbscm_lookup_symbol)
7952         (gdbscm_lookup_global_symbol): Update.
7953         * guile/scm-param.c (gdbscm_parameter_value): Update.
7954         * guile/scm-frame.c (gdbscm_frame_read_register)
7955         (gdbscm_frame_read_var): Update.
7956         * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
7957         * exec.c (try_open_exec_file): Update.
7958         * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
7959         (gdb_rl_callback_handler): Update.
7960         * common/common-exceptions.h (exception_none): Don't declare.
7961         * common/common-exceptions.c (exception_none): Don't define.
7962         (struct catcher) <exception>: Update.
7963         * cli/cli-interp.c (safe_execute_command): Update.
7964         * breakpoint.c (insert_bp_location, location_to_sals): Update.
7965
7966 2019-04-25  Ali Tamur  <[email protected]>
7967
7968         * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
7969         (read_attribute_value): Likewise.
7970         (dwarf2_read_addr_index): Update comment.
7971         (read_str_index): Add DW_FORM_strx.
7972         (dwarf2_string_attr): Likewise.
7973         (dwarf2_const_value_attr): Likewise.
7974         (dump_die_shallow): Likewise.
7975         (dwarf2_fetch_constant_bytes): Likewise.
7976         (skip_form_bytes): Likewise.
7977         * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
7978
7979 2019-04-25  Sergio Durigan Junior  <[email protected]>
7980
7981         PR corefiles/11608
7982         PR corefiles/18187
7983         * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
7984         OFFSET.  Verify if current mapping contains an ELF header.
7985         (linux_find_memory_regions_full): Adjust call to
7986         dump_mapping_p.
7987
7988 2019-04-25  Sandra Loosemore  <[email protected]>
7989             Kang Li <[email protected]>
7990
7991         PR gdb/21600
7992
7993         * dwarf2-frame.c (read_initial_length): Be consistent about using
7994         unsigned representation of length.
7995         (decode_frame_entry_1): Likewise.  Check for wraparound of
7996         end pointer as well as buffer overflow.
7997
7998 2019-04-24  Sergio Durigan Junior  <[email protected]>
7999
8000         * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
8001         "vq".
8002
8003 2019-04-24  Tom Tromey  <[email protected]>
8004
8005         * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
8006
8007 2019-04-23  Andrew Burgess  <[email protected]>
8008
8009         * s12z-tdep.c (s12z_unwind_pc): Delete.
8010         (s12z_unwind_sp): Delete.
8011         (s12z_gdbarch_init): Don't register deleted functions with
8012         gdbarch.
8013
8014 2019-04-23  Andrew Burgess  <[email protected]>
8015
8016         * rl78-tdep.c (rl78_unwind_sp): Delete.
8017         (rl78_gdbarch_init): Don't register deleted function with gdbarch.
8018
8019 2019-04-23  Andrew Burgess  <[email protected]>
8020
8021         * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
8022         (xstormy16_unwind_pc): Delete.
8023         (xstormy16_dummy_id): Delete.
8024         (xstormy16_gdbarch_init): Don't register deleted functions with
8025         gdbarch.
8026
8027 2019-04-23  Andrew Burgess  <[email protected]>
8028
8029         * vax-tdep.c (vax_unwind_pc): Delete.
8030         (vax_gdbarch_init): Don't register deleted function with gdbarch.
8031
8032 2019-04-23  Andrew Burgess  <[email protected]>
8033
8034         * v850-tdep.c (v850_unwind_sp): Delete.
8035         (v850_unwind_pc): Delete.
8036         (v850_dummy_id): Delete.
8037         (v850_gdbarch_init): Don't register deleted functions with
8038         gdbarch.
8039
8040 2019-04-23  Andrew Burgess  <[email protected]>
8041
8042         * tilegx-tdep.c (tilegx_unwind_sp): Delete.
8043         (tilegx_unwind_pc): Delete.
8044         (tilegx_unwind_dummy_id): Delete.
8045         (tilegx_gdbarch_init): Don't register deleted functions with
8046         gdbarch.
8047
8048 2019-04-23  Andrew Burgess  <[email protected]>
8049
8050         * tic6x-tdep.c (tic6x_unwind_sp): Delete.
8051         (tic6x_dummy_id): Delete.
8052         (tic6x_gdbarch_init): Don't register deleted functions with
8053         gdbarch.
8054
8055 2019-04-23  Andrew Burgess  <[email protected]>
8056
8057         * sparc-tdep.c (sparc_unwind_pc): Delete.
8058         (sparc32_gdbarch_init): Don't register deleted function with
8059         gdbarch.
8060
8061 2019-04-23  Andrew Burgess  <[email protected]>
8062
8063         * sh-tdep.c (sh_unwind_sp): Delete.
8064         (sh_unwind_pc): Delete.
8065         (sh_dummy_id): Delete.
8066         (sh_gdbarch_init): Don't register deleted functions with
8067         gdbarch.
8068
8069 2019-04-23  Andrew Burgess  <[email protected]>
8070
8071         * score-tdep.c (score_unwind_sp): Delete.
8072         (score_unwind_pc): Delete.
8073         (score_dummy_id): Delete.
8074         (score_gdbarch_init): Don't register deleted functions with
8075         gdbarch.
8076
8077 2019-04-23  Andrew Burgess  <[email protected]>
8078
8079         * rx-tdep.c (rx_unwind_pc): Delete.
8080         (rx_unwind_sp): Delete.
8081         (rx_dummy_id): Delete.
8082         (rx_gdbarch_init): Don't register deleted functions with
8083         gdbarch.  Update comment.
8084
8085 2019-04-23  Andrew Burgess  <[email protected]>
8086
8087         * rs6000-tdep.c (rs6000_unwind_pc): Delete.
8088         (rs6000_dummy_id): Delete.
8089         (rs6000_gdbarch_init): Don't register deleted functions with
8090         gdbarch.
8091
8092 2019-04-23  Andrew Burgess  <[email protected]>
8093
8094         * or1k-tdep.c (or1k_dummy_id): Delete.
8095         (or1k_gdbarch_init): Don't register deleted function with gdbarch.
8096
8097 2019-04-23  Andrew Burgess  <[email protected]>
8098
8099         * nios2-tdep.c (nios2_dummy_id): Delete.
8100         (nios2_unwind_sp): Delete.
8101         (nios2_gdbarch_init): Don't register deleted functions with
8102         gdbarch.
8103
8104 2019-04-23  Andrew Burgess  <[email protected]>
8105
8106         * nds32-tdep.c (nds32_dummy_id): Delete.
8107         (nds32_unwind_pc): Delete.
8108         (nds32_unwind_sp): Delete.
8109         (nds32_gdbarch_init): Don't register deleted functions with
8110         gdbarch.
8111
8112 2019-04-23  Andrew Burgess  <[email protected]>
8113
8114         * msp430-tdep.c (msp430_unwind_pc): Delete.
8115         (msp430_unwind_sp): Delete.
8116         (msp430_dummy_id): Delete.
8117         (msp430_gdbarch_init): Don't register deleted functions with
8118         gdbarch.
8119
8120 2019-04-23  Andrew Burgess  <[email protected]>
8121
8122         * moxie-tdep.c (moxie_unwind_sp): Delete.
8123         (moxie_unwind_pc): Delete.
8124         (moxie_dummy_id): Delete.
8125         (moxie_gdbarch_init): Don't register deleted functions with
8126         gdbarch.
8127
8128 2019-04-23  Andrew Burgess  <[email protected]>
8129
8130         * mn10300-tdep.c (mn10300_dummy_id): Delete.
8131         (mn10300_unwind_pc): Delete.
8132         (mn10300_unwind_sp): Delete.
8133         (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
8134         mn10300_unwind_sp.
8135         (mn10300_frame_unwind_init): Don't register deleted functions with
8136         gdbarch.
8137
8138 2019-04-23  Andrew Burgess  <[email protected]>
8139
8140         * mep-tdep.c (mep_unwind_pc): Delete.
8141         (mep_unwind_sp): Delete.
8142         (mep_dummy_id): Delete.
8143         (mep_gdbarch_init): Don't register deleted functions with
8144         gdbarch.
8145
8146 2019-04-23  Andrew Burgess  <[email protected]>
8147
8148         * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
8149         (m68hc11_unwind_sp): Delete.
8150         (m68hc11_gdbarch_init): Don't register deleted functions with
8151         gdbarch.
8152
8153 2019-04-23  Andrew Burgess  <[email protected]>
8154
8155         * m32r-tdep.c (m32r_unwind_sp): Delete.
8156         (m32r_unwind_pc): Delete.
8157         (m32r_dummy_id): Delete.
8158         (m32r_gdbarch_init): Don't register deleted functions with
8159         gdbarch.
8160
8161 2019-04-23  Andrew Burgess  <[email protected]>
8162
8163         * m32c-tdep.c (m32c_unwind_pc): Delete.
8164         (m32c_unwind_sp): Delete.
8165         (m32c_dummy_id): Delete.
8166         (m32c_gdbarch_init): Don't register deleted functions with
8167         gdbarch.
8168
8169 2019-04-23  Andrew Burgess  <[email protected]>
8170
8171         * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
8172         (lm32_unwind_pc): Delete.
8173         (lm32_dummy_id): Delete.
8174         (lm32_gdbarch_init): Don't register deleted functions with
8175         gdbarch.
8176
8177 2019-04-23  Andrew Burgess  <[email protected]>
8178
8179         * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
8180         (iq2000_unwind_pc): Delete.
8181         (iq2000_dummy_id): Delete.
8182         (iq2000_gdbarch_init): Don't register deleted functions with
8183         gdbarch.
8184
8185 2019-04-23  Andrew Burgess  <[email protected]>
8186
8187         * nds32-tdep.c (nds32_type_align): Delete.
8188         (nds32_push_dummy_call): Use type_align instead.
8189
8190 2019-04-23  Andrew Burgess  <[email protected]>
8191
8192         * arm-tdep.c (arm_type_align): Only handle vector override case.
8193         (arm_push_dummy_call): Use type_align.
8194         (arm_gdbarch_init): Register arm_type_align gdbarch function.
8195
8196 2019-04-23  Andrew Burgess  <[email protected]>
8197
8198         * aarch64-tdep.c (aarch64_type_align): Only handle vector override
8199         case.
8200         (pass_on_stack): Use type_align.
8201         (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
8202         function.
8203
8204 2019-04-23  Tom Tromey  <[email protected]>
8205
8206         * dwarf2read.c (line_header::file_name_at): Remove unused
8207         overload.
8208
8209 2019-04-23  Tom de Vries  <[email protected]>
8210
8211         PR gdb/24438
8212         * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
8213         invocation.
8214
8215
8216 2019-03-27  Ali Tamur  <[email protected]>
8217
8218         * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
8219         * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
8220         * dwarf2expr.h(dwarf_expr_context::offset): Update comment
8221         (dwarf_expr_context::get_addr_index): Likewise
8222         * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
8223         (symbol_needs_eval_context::get_addr_index): Likewise
8224         (disassemble_dwarf_expression): Add DW_OP_addrx
8225         * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
8226         (read_cutu_die_from_dwo): Update comment
8227         (skip_one_die): Add DW_FORM_addrx
8228         (read_attribute_value): Likewise
8229         (var_decode_location): Add DW_OP_addrx
8230         (dwarf2_const_value_attr): Add DW_FORM_addrx
8231         (dump_die_shallow): Likewise
8232         (dwarf2_fetch_constant_bytes): Likewise
8233         (decode_locdesc): Add DW_OP_addrx
8234         (skip_form_bytes): Add DW_FORM_addrx
8235
8236 2019-04-22  Ali Tamur  <[email protected]>
8237
8238         * MAINTAINERS (Write After Approval): Add self.
8239
8240 2019-04-22  Simon Marchi  <[email protected]>
8241
8242         * solib-svr4.c (get_svr4_info): Add pspace parameter.
8243         (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
8244         (open_symbol_file_object): Likewise.
8245         (svr4_default_sos): Add info parameter.
8246         (svr4_read_so_list): Likewise.
8247         (svr4_current_sos_direct): Adjust functions calls to pass down
8248         info.
8249         (svr4_current_sos_1): Add info parameter.
8250         (svr4_current_sos): Call get_svr4_info, pass info down to
8251         svr4_current_sos_1.
8252         (svr4_fetch_objfile_link_map): Pass objfile->pspace to
8253         get_svr4_info.
8254         (svr4_in_dynsym_resolve_code): Pass current_program_space to
8255         get_svr4_info.
8256         (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
8257         to get_svr4_info.
8258         (probes_table_remove_objfile_probes): Likewise.
8259         (register_solib_event_probe): Add info parameter.
8260         (solist_update_incremental): Pass info parameter down to
8261         svr4_read_so_list.
8262         (disable_probes_interface): Add info parameter.
8263         (svr4_handle_solib_event): Pass current_program_space to
8264         get_svr4_info.  Adjust disable_probes_interface cleanup.
8265         (svr4_create_probe_breakpoints): Add info parameter, pass it
8266         down to register_solib_event_probe.
8267         (svr4_create_solib_event_breakpoints): Add info parameter,
8268         pass it down to svr4_create_probe_breakpoints.
8269         (enable_break): Pass info down to
8270         svr4_create_solib_event_breakpoints.
8271         (svr4_solib_create_inferior_hook): Pass current_program_space to
8272         get_svr4_info.
8273         (svr4_clear_solib): Likewise.
8274
8275 2019-04-22  Pedro Alves  <[email protected]>
8276
8277         * solib-svr4.c (svr4_free_objfile_observer): New.
8278         (probe_and_action::objfile): New field.
8279         (probes_table_htab_remove_objfile_probes)
8280         (probes_table_remove_objfile_probes): New functions.
8281         (register_solib_event_probe): Add 'objfile' parameter.  Store it
8282         in the new probe_and_action.  Don't store the probe in 'lookup'.
8283         (svr4_create_probe_breakpoints): Pass objfile to
8284         register_solib_event_probe.
8285         (_initialize_svr4_solib): Register a free_objfile observer.
8286
8287 2019-04-19  Tom Tromey  <[email protected]>
8288
8289         * common/queue.h: Remove.
8290
8291 2019-04-19  Tom Tromey  <[email protected]>
8292
8293         * event-loop.c: Don't include "common/queue.h".
8294
8295 2019-04-19  Tom Tromey  <[email protected]>
8296
8297         * remote.c (remote_target): Use delete.
8298         * remote-notif.h: Include <list>, not "common/queue.h".
8299         (notif_client_p): Remove typedef.
8300         (remote_notif_state): Add constructor, destructor, initializer.
8301         <notif_queue>: Now a std::list.
8302         (remote_notif_state_xfree): Don't declare.
8303         * remote-notif.c (remote_notif_process, handle_notification)
8304         (remote_notif_state_allocate): Update.
8305         (~remote_notif_state): Rename from remote_notif_state_xfree.
8306
8307 2019-04-19  Tom Tromey  <[email protected]>
8308
8309         * symfile.c (reread_symbols): Update.
8310         * objfiles.c (objfile_register_static_link)
8311         (objfile_lookup_static_link): Update
8312         (~objfile) Don't delete static_links.
8313         * objfiles.h (struct objfile) <static_links>: Now an htab_up.
8314
8315 2019-04-19  Tom Tromey  <[email protected]>
8316
8317         * type-stack.h (struct type_stack) <insert>: Constify string.
8318         * type-stack.c (type_stack::insert): Constify string.
8319         * gdbtypes.h (lookup_template_type): Update.
8320         (address_space_name_to_int): Update.
8321         * gdbtypes.c (address_space_name_to_int): Make space_identifier
8322         const.
8323         (lookup_template_type): Make name const.
8324         * c-exp.y: Update rules.
8325         (lex_one_token, classify_name, classify_inner_name)
8326         (c_print_token): Update.
8327         * p-exp.y: Update rules.
8328         (yylex): Update.
8329         * f-exp.y: Update rules.
8330         (yylex): Update.
8331         * d-exp.y: Update rules.
8332         (lex_one_token, classify_name, classify_inner_name): Update.
8333         * parse.c (write_dollar_variable, copy_name): Return std::string.
8334         * parser-defs.h (copy_name): Change return type.
8335         * m2-exp.y: Update rules.
8336         (yylex): Update.
8337         * go-exp.y (lex_one_token): Update.
8338         Update rules.
8339         (classify_unsafe_function, classify_packaged_name)
8340         (classify_name, yylex): Update.
8341
8342 2019-04-19  Sergei Trofimovich <[email protected]>
8343
8344         * configure.ac: add --enable-source-highlight switch.
8345         * configure: Regenerate.
8346         * top.c (print_gdb_version): plumb --enable-source-highlight
8347         status to "show configuration".
8348
8349 2019-04-19  Tom Tromey  <[email protected]>
8350
8351         * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
8352         Check ADA_TYPE_P.
8353         (empty_record, ada_template_to_fixed_record_type_1)
8354         (template_to_static_fixed_type)
8355         (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
8356         * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
8357         * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
8358         macros.
8359
8360 2019-04-19  Ilya Yu. Malakhov  <[email protected]>
8361
8362         PR symtab/24423:
8363         * source.c (print_source_lines_base): Advance "iter" when a
8364         control character is seen.
8365
8366 2019-04-19  Philippe Waroquiers  <[email protected]>
8367
8368         * inferior.h (struct infcall_suspend_state_deleter):
8369         Catch exception in destructor to avoid crash.
8370
8371 2019-04-19  Philippe Waroquiers  <[email protected]>
8372
8373         * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
8374         close to the add_com "shell".
8375
8376 2019-04-18  Tom Tromey  <[email protected]>
8377
8378         * process-stratum-target.h (class process_stratum_target)
8379         <stratum>: Add "final".
8380
8381 2019-04-17  Tom Tromey  <[email protected]>
8382
8383         * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
8384         against nullptr before use.
8385
8386 2019-04-17  Alan Hayward  <[email protected]>
8387
8388         * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
8389
8390 2019-04-17  Jim Wilson  <[email protected]>
8391             Andrew Burgess  <[email protected]>
8392
8393         * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
8394         code read might fail, assume 4-byte breakpoint in that case.
8395
8396 2019-04-15  Leszek Swirski  <[email protected]>
8397
8398         * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
8399         rather than a hand-rolled POD check when checking for forced MEMORY
8400         classification.
8401
8402 2019-04-15  Alan Hayward  <[email protected]>
8403
8404         * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
8405         * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
8406         function.
8407         (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
8408         (aarch64_sve_regs_copy_from_reg_buf): Likewise.
8409         * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
8410         declaration.
8411
8412 2019-04-15  Alan Hayward  <[email protected]>
8413
8414         * aarch64-linux-nat.c
8415         (aarch64_linux_nat_target::thread_architecture): Add override.
8416         * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
8417         each VQ.
8418
8419 2019-04-15  Alan Hayward  <[email protected]>
8420
8421         * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
8422
8423 2019-04-13  Andrew Burgess  <[email protected]>
8424
8425         * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
8426         target types of size 96-bits, add some additional comments, and
8427         check that the builtin type we found was the correct size.
8428
8429 2019-04-12  Eli Zaretskii  <[email protected]>
8430
8431         * utils.c (prompt_for_continue): Don't restore the styling at the
8432         end, as applied_style has the wrong value.  This fixes styling in
8433         long lists of file names that are interrupted by the "Continue?"
8434         prompt.
8435
8436 2019-04-12  Andrew Burgess  <[email protected]>
8437
8438         * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
8439         * c-lang.c (c_language_defn): Likewise.
8440         (cplus_language_defn): Likewise.
8441         (asm_language_defn): Likewise.
8442         (minimal_language_defn): Likewise.
8443         * d-lang.c (d_language_defn): Likewise.
8444         * f-lang.c (f_language_defn): Likewise.
8445         * go-lang.c (go_language_defn): Likewise.
8446         * language.c (unknown_language_defn): Likewise.
8447         (auto_language_defn): Likewise.
8448         * language.h (struct language_defn): Remove la_magic field.
8449         (LANG_MAGIC): Delete.
8450         * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
8451         * objc-lang.c (objc_language_defn): Likewise.
8452         * opencl-lang.c (opencl_language_defn): Likewise.
8453         * p-lang.c (pascal_language_defn): Likewise.
8454         * rust-lang.c (rust_language_defn): Likewise.
8455
8456 2019-04-11  Andrew Burgess  <[email protected]>
8457
8458         * riscv-tdep.c (riscv_type_align): New function.
8459         (riscv_type_alignment): Delete.
8460         (riscv_arg_location): Use 'type_align'.
8461         (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
8462
8463 2019-04-11  Andrew Burgess  <[email protected]>
8464
8465         * gdbtypes.c (type_align): A struct with no non-static fields also
8466         has alignment of 1.
8467
8468 2019-04-11  Andrew Burgess  <[email protected]>
8469
8470         * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
8471         component to 0.
8472         (riscv_struct_info::riscv_struct_info): Initialise m_offsets
8473         member.
8474         (riscv_struct_info::analyse): New implementation using new
8475         analyse_inner member function.
8476         (riscv_struct_info::field_offset): New member function.
8477         (riscv_struct_info::m_offsets): New member variable.
8478         (riscv_struct_info::analyse_inner): New private member function,
8479         takes the old implementation of riscv_struct_info::analyse but
8480         extended to track field offsets.
8481         (riscv_call_arg_struct): Update the struct folding special cases
8482         to handle cases where empty C++ structs, which are non-zero
8483         length, are found.
8484         (riscv_arg_location): Initialise the length of each location, a
8485         non-zero length now indicates the location is in use.
8486         (riscv_push_dummy_call): Allow for the first location having a
8487         non-zero offset when setting up arguments.
8488         (riscv_return_value): Likewise, but for return values.
8489
8490 2019-04-11  Tom Tromey  <[email protected]>
8491
8492         * utils.c (internal_vproblem): Make "msg" const.
8493
8494 2019-04-11  Alan Hayward  <[email protected]>
8495
8496         * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
8497         * trad-frame.c (trad_frame_reset_saved_regs): New function.
8498         (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
8499         * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
8500
8501 2019-04-10  Kevin Buettner  <[email protected]>
8502
8503         * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
8504         function.
8505         (fill_gregset): Call amd64_linux_collect_native_gregset instead
8506         of amd64_collect_native_gregset.
8507         (amd64_linux_nat_target::store_registers): Likewise.
8508
8509 2019-04-10  Tom Tromey  <[email protected]>
8510
8511         * symtab.c (lookup_global_symbol_from_objfile)
8512         (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
8513         * objfiles.h (class separate_debug_iterator): New.
8514         (class separate_debug_range): New.
8515         (struct objfile) <separate_debug_objfiles>: New method.
8516         (objfile_separate_debug_iterate): Don't declare.
8517         * objfiles.c (separate_debug_iterator::operator++): Rename from
8518         objfile_separate_debug_iterate.
8519         (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
8520         iterator.
8521         * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
8522         iterator.
8523
8524 2019-04-10  Tom Tromey  <[email protected]>
8525
8526         * symfile.c (reread_symbols): Remove old comment.
8527         * objfiles.c (free_all_objfiles): Fix a typo.
8528
8529 2019-04-10  Tom Tromey  <[email protected]>
8530
8531         * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
8532         * minsyms.c (lookup_minimal_symbol): Use foreach.
8533         (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8534         (lookup_minimal_symbol_solib_trampoline): Likewise.
8535         * symfile.c (reread_symbols): Use foreach.
8536
8537 2019-04-09  Ivan Begert  <[email protected]>
8538             Tom Tromey  <[email protected]>
8539
8540         PR rust/24414:
8541         * rust-exp.y (rust_parser::lex_number): Use strtoulst.
8542         (rust_lex_int_test): Change "value" to be LONGEST.
8543         (rust_lex_tests): Add test for long integer literal.
8544
8545 2019-04-09  Tom Tromey  <[email protected]>
8546
8547         * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
8548         to bool.
8549         (extended_remote_target::attach): Update.
8550         (remote_target::remote_notice_new_inferior): Update.
8551         (remote_target::add_current_inferior_and_thread): Update.
8552         * inferior.c (exit_inferior_1): Use "false".
8553         * corelow.c (add_to_thread_list): Make fake_pid_p bool.
8554
8555 2019-04-09  Simon Marchi  <[email protected]>
8556
8557         * infcmd.c (run_command_1): Pass -qualified to tbreak when using
8558         the "start" command.
8559
8560 2019-04-08  Kevin Buettner  <[email protected]>
8561
8562         * python/py-inferior.c (infpy_thread_from_thread_handle):
8563         Adjust comments to reflect renaming of thread_from_thread_handle
8564         to thread_from_handle.  Adjust keywords.  Fix type error message.
8565         (inferior_object_methods): Add thread_from_handle.  Retain
8566         thread_from_thread_handle, but mark it as deprecated.
8567
8568 2019-04-08  Kevin Buettner  <[email protected]>
8569
8570         * gdbthread.h (find_thread_by_handle): Revise declaration.
8571         * thread.c (find_thread_by_handle): Likewise.  Adjust
8572         implementation too.
8573         * python/py-inferior.c (infpy_thread_from_thread_handle): Add
8574         support for buffer objects as handles.
8575
8576 2019-04-08  Kevin Buettner  <[email protected]>
8577
8578         * python/py-infthread.c (thpy_thread_handle): New function.
8579         (thread_object_methods): Register thpy_thread_handle.
8580
8581 2019-04-08  Kevin Buettner  <[email protected]>
8582
8583         * gdbthread.h (thread_to_thread_handle): Declare.
8584         * thread.c (gdbtypes.h): Include.
8585         (thread_to_thread_handle): New function.
8586
8587         * target.h (struct target_ops): Add thread_info_to_thread_handle.
8588         (target_thread_info_to_thread_handle): Declare.
8589         * target.c (target_thread_info_to_thread_handle): New function.
8590         * target-debug.h (target_debug_print_gdb_byte_vector): Define.
8591         * target-delegates.c: Regenerate.
8592
8593         * linux-thread-db.c (class thread_db_target): Add method
8594         thread_info_to_thread_handle.
8595         (thread_db_target::thread_info_to_thread_handle): Define.
8596         * remote.c (class remote_target): Add new method
8597         thread_info_to_thread_handle.
8598         (remote_target::thread_info_to_thread_handle): Define.
8599
8600 2019-04-08  Pedro Alves  <[email protected]>
8601
8602         * common/common-exceptions.c (throw_exception): Don't create
8603         named object to throw; throw directly.
8604         (throw_it): Likewise.  Don't initialize gdb_exception::message
8605         here, with new; pass FMT and AP to the ctor instead.
8606         * common/common-exceptions.h: Include <string>.
8607         (gdb_exception::gdb_exception(enum return_reason, enum errors,
8608         const char *, va_list)): New ctor.  Use std::make_shared.
8609         (gdb_exception_error::gdb_exception_error(enum return_reason, enum
8610         errors)): Delete.
8611         (gdb_exception_error::gdb_exception_error(enum errors, const char
8612         *, va_list)): New.
8613         (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
8614         Add assertion.
8615         (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
8616         errors)): Delete.
8617         (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
8618         (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
8619         Add assertion.
8620
8621 2019-04-08  Tom Tromey  <[email protected]>
8622
8623         * valops.c (value_rtti_indirect_type): Replace throw_exception
8624         with throw.
8625         * tracefile-tfile.c (tfile_target_open): Replace throw_exception
8626         with throw.
8627         * thread.c (thr_try_catch_cmd): Replace throw_exception with
8628         throw.
8629         * target.c (target_translate_tls_address): Replace throw_exception
8630         with throw.
8631         * stack.c (frame_apply_command_count): Replace throw_exception
8632         with throw.
8633         * solib-spu.c (append_ocl_sos): Replace throw_exception with
8634         throw.
8635         * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
8636         with throw.
8637         * rs6000-tdep.c (rs6000_frame_cache)
8638         (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
8639         * remote.c: Replace throw_exception with throw.
8640         * record-full.c (record_full_message, record_full_wait_1)
8641         (record_full_restore): Replace throw_exception with throw.
8642         * record-btrace.c:
8643         (get_thread_current_frame_id, record_btrace_start_replaying)
8644         (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
8645         (cmd_record_btrace_start): Replace throw_exception with throw.
8646         * parse.c (parse_exp_in_context_1): Replace throw_exception with
8647         throw.
8648         * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
8649         (resume_stopped_resumed_lwps): Replace throw_exception with throw.
8650         * linespec.c:
8651         (find_linespec_symbols): Replace throw_exception with throw.
8652         * infrun.c (displaced_step_prepare, resume): Replace
8653         throw_exception with throw.
8654         * infcmd.c (post_create_inferior): Replace throw_exception with
8655         throw.
8656         * inf-loop.c (inferior_event_handler): Replace throw_exception
8657         with throw.
8658         * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
8659         (i386_sigtramp_frame_cache): Replace throw_exception with throw.
8660         * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
8661         (get_prev_frame_always, get_frame_pc_if_available)
8662         (get_frame_address_in_block_if_available, get_frame_language):
8663         Replace throw_exception with throw.
8664         * frame-unwind.c (frame_unwind_try_unwinder): Replace
8665         throw_exception with throw.
8666         * eval.c (fetch_subexp_value, evaluate_var_value)
8667         (evaluate_funcall, evaluate_subexp_standard): Replace
8668         throw_exception with throw.
8669         * dwarf2loc.c (call_site_find_chain)
8670         (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
8671         Replace throw_exception with throw.
8672         * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
8673         with throw.
8674         * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
8675         throw.
8676         * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
8677         * completer.c (complete_line_internal): Replace throw_exception
8678         with throw.
8679         * compile/compile-object-run.c (compile_object_run): Replace
8680         throw_exception with throw.
8681         * cli/cli-script.c (process_next_line): Replace throw_exception
8682         with throw.
8683         * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
8684         (btrace_enable, btrace_maint_update_pt_packets): Replace
8685         throw_exception with throw.
8686         * breakpoint.c (create_breakpoint, save_breakpoints): Replace
8687         throw_exception with throw.
8688         * break-catch-throw.c (re_set_exception_catchpoint): Replace
8689         throw_exception with throw.
8690         * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
8691         (amd64_epilogue_frame_cache): Replace throw_exception with throw.
8692         * aarch64-tdep.c (aarch64_make_prologue_cache)
8693         (aarch64_make_stub_cache): Replace throw_exception with throw.
8694
8695 2019-04-08  Tom Tromey  <[email protected]>
8696
8697         * common/common-exceptions.c (throw_exception): Rename from
8698         throw_exception_cxx.  Remove old copy.  Make argument const.
8699         (throw_it): Create and throw exception objects directly.
8700         * common/common-exceptions.h (throw_exception): Make argument
8701         const.
8702         (struct gdb_exception_error): Add constructor.
8703         (struct gdb_exception_quit): Add constructor.
8704
8705 2019-04-08  Tom Tromey  <[email protected]>
8706
8707         * common/common-exceptions.h (exception_rethrow): Don't declare.
8708         (TRY_SJLJ): Update comment.
8709         (TRY, CATCH, END_CATCH): Remove.
8710         * common/common-exceptions.c (exception_rethrow): Remove.
8711
8712 2019-04-08  Tom Tromey  <[email protected]>
8713
8714         * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
8715         Remove.
8716         (gdb_exception_error): Rename from
8717         gdb_exception_RETURN_MASK_ERROR.
8718         (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
8719         (gdb_quit_bad_alloc): Update.
8720         * aarch64-tdep.c: Update.
8721         * ada-lang.c: Update.
8722         * ada-typeprint.c: Update.
8723         * ada-valprint.c: Update.
8724         * amd64-tdep.c: Update.
8725         * arch-utils.c: Update.
8726         * break-catch-throw.c: Update.
8727         * breakpoint.c: Update.
8728         * btrace.c: Update.
8729         * c-varobj.c: Update.
8730         * cli/cli-cmds.c: Update.
8731         * cli/cli-interp.c: Update.
8732         * cli/cli-script.c: Update.
8733         * common/common-exceptions.c: Update.
8734         * common/new-op.c: Update.
8735         * common/selftest.c: Update.
8736         * compile/compile-c-symbols.c: Update.
8737         * compile/compile-cplus-symbols.c: Update.
8738         * compile/compile-object-load.c: Update.
8739         * compile/compile-object-run.c: Update.
8740         * completer.c: Update.
8741         * corelow.c: Update.
8742         * cp-abi.c: Update.
8743         * cp-support.c: Update.
8744         * cp-valprint.c: Update.
8745         * darwin-nat.c: Update.
8746         * disasm-selftests.c: Update.
8747         * dtrace-probe.c: Update.
8748         * dwarf-index-cache.c: Update.
8749         * dwarf-index-write.c: Update.
8750         * dwarf2-frame-tailcall.c: Update.
8751         * dwarf2-frame.c: Update.
8752         * dwarf2loc.c: Update.
8753         * dwarf2read.c: Update.
8754         * eval.c: Update.
8755         * event-loop.c: Update.
8756         * event-top.c: Update.
8757         * exec.c: Update.
8758         * f-valprint.c: Update.
8759         * fbsd-tdep.c: Update.
8760         * frame-unwind.c: Update.
8761         * frame.c: Update.
8762         * gdbtypes.c: Update.
8763         * gnu-v3-abi.c: Update.
8764         * guile/guile-internal.h: Update.
8765         * guile/scm-block.c: Update.
8766         * guile/scm-breakpoint.c: Update.
8767         * guile/scm-cmd.c: Update.
8768         * guile/scm-disasm.c: Update.
8769         * guile/scm-frame.c: Update.
8770         * guile/scm-lazy-string.c: Update.
8771         * guile/scm-math.c: Update.
8772         * guile/scm-param.c: Update.
8773         * guile/scm-ports.c: Update.
8774         * guile/scm-pretty-print.c: Update.
8775         * guile/scm-symbol.c: Update.
8776         * guile/scm-symtab.c: Update.
8777         * guile/scm-type.c: Update.
8778         * guile/scm-value.c: Update.
8779         * i386-linux-tdep.c: Update.
8780         * i386-tdep.c: Update.
8781         * inf-loop.c: Update.
8782         * infcall.c: Update.
8783         * infcmd.c: Update.
8784         * infrun.c: Update.
8785         * jit.c: Update.
8786         * language.c: Update.
8787         * linespec.c: Update.
8788         * linux-fork.c: Update.
8789         * linux-nat.c: Update.
8790         * linux-tdep.c: Update.
8791         * linux-thread-db.c: Update.
8792         * main.c: Update.
8793         * mi/mi-cmd-break.c: Update.
8794         * mi/mi-cmd-stack.c: Update.
8795         * mi/mi-interp.c: Update.
8796         * mi/mi-main.c: Update.
8797         * objc-lang.c: Update.
8798         * p-valprint.c: Update.
8799         * parse.c: Update.
8800         * ppc-linux-tdep.c: Update.
8801         * printcmd.c: Update.
8802         * python/py-arch.c: Update.
8803         * python/py-breakpoint.c: Update.
8804         * python/py-cmd.c: Update.
8805         * python/py-finishbreakpoint.c: Update.
8806         * python/py-frame.c: Update.
8807         * python/py-framefilter.c: Update.
8808         * python/py-gdb-readline.c: Update.
8809         * python/py-inferior.c: Update.
8810         * python/py-infthread.c: Update.
8811         * python/py-lazy-string.c: Update.
8812         * python/py-linetable.c: Update.
8813         * python/py-objfile.c: Update.
8814         * python/py-param.c: Update.
8815         * python/py-prettyprint.c: Update.
8816         * python/py-progspace.c: Update.
8817         * python/py-record-btrace.c: Update.
8818         * python/py-record.c: Update.
8819         * python/py-symbol.c: Update.
8820         * python/py-type.c: Update.
8821         * python/py-unwind.c: Update.
8822         * python/py-utils.c: Update.
8823         * python/py-value.c: Update.
8824         * python/python.c: Update.
8825         * record-btrace.c: Update.
8826         * record-full.c: Update.
8827         * remote-fileio.c: Update.
8828         * remote.c: Update.
8829         * riscv-tdep.c: Update.
8830         * rs6000-aix-tdep.c: Update.
8831         * rs6000-tdep.c: Update.
8832         * rust-exp.y: Update.
8833         * rust-lang.c: Update.
8834         * s390-tdep.c: Update.
8835         * selftest-arch.c: Update.
8836         * solib-dsbt.c: Update.
8837         * solib-frv.c: Update.
8838         * solib-spu.c: Update.
8839         * solib-svr4.c: Update.
8840         * solib.c: Update.
8841         * sparc64-linux-tdep.c: Update.
8842         * stack.c: Update.
8843         * symfile-mem.c: Update.
8844         * symmisc.c: Update.
8845         * target.c: Update.
8846         * thread.c: Update.
8847         * top.c: Update.
8848         * tracefile-tfile.c: Update.
8849         * tui/tui.c: Update.
8850         * typeprint.c: Update.
8851         * unittests/cli-utils-selftests.c: Update.
8852         * unittests/parse-connection-spec-selftests.c: Update.
8853         * valops.c: Update.
8854         * valprint.c: Update.
8855         * value.c: Update.
8856         * varobj.c: Update.
8857         * windows-nat.c: Update.
8858         * x86-linux-nat.c: Update.
8859         * xml-support.c: Update.
8860
8861 2019-04-08  Tom Tromey  <[email protected]>
8862
8863         * xml-support.c: Use C++ exception handling.
8864         * x86-linux-nat.c: Use C++ exception handling.
8865         * windows-nat.c: Use C++ exception handling.
8866         * varobj.c: Use C++ exception handling.
8867         * value.c: Use C++ exception handling.
8868         * valprint.c: Use C++ exception handling.
8869         * valops.c: Use C++ exception handling.
8870         * unittests/parse-connection-spec-selftests.c: Use C++ exception
8871         handling.
8872         * unittests/cli-utils-selftests.c: Use C++ exception handling.
8873         * typeprint.c: Use C++ exception handling.
8874         * tui/tui.c: Use C++ exception handling.
8875         * tracefile-tfile.c: Use C++ exception handling.
8876         * top.c: Use C++ exception handling.
8877         * thread.c: Use C++ exception handling.
8878         * target.c: Use C++ exception handling.
8879         * symmisc.c: Use C++ exception handling.
8880         * symfile-mem.c: Use C++ exception handling.
8881         * stack.c: Use C++ exception handling.
8882         * sparc64-linux-tdep.c: Use C++ exception handling.
8883         * solib.c: Use C++ exception handling.
8884         * solib-svr4.c: Use C++ exception handling.
8885         * solib-spu.c: Use C++ exception handling.
8886         * solib-frv.c: Use C++ exception handling.
8887         * solib-dsbt.c: Use C++ exception handling.
8888         * selftest-arch.c: Use C++ exception handling.
8889         * s390-tdep.c: Use C++ exception handling.
8890         * rust-lang.c: Use C++ exception handling.
8891         * rust-exp.y: Use C++ exception handling.
8892         * rs6000-tdep.c: Use C++ exception handling.
8893         * rs6000-aix-tdep.c: Use C++ exception handling.
8894         * riscv-tdep.c: Use C++ exception handling.
8895         * remote.c: Use C++ exception handling.
8896         * remote-fileio.c: Use C++ exception handling.
8897         * record-full.c: Use C++ exception handling.
8898         * record-btrace.c: Use C++ exception handling.
8899         * python/python.c: Use C++ exception handling.
8900         * python/py-value.c: Use C++ exception handling.
8901         * python/py-utils.c: Use C++ exception handling.
8902         * python/py-unwind.c: Use C++ exception handling.
8903         * python/py-type.c: Use C++ exception handling.
8904         * python/py-symbol.c: Use C++ exception handling.
8905         * python/py-record.c: Use C++ exception handling.
8906         * python/py-record-btrace.c: Use C++ exception handling.
8907         * python/py-progspace.c: Use C++ exception handling.
8908         * python/py-prettyprint.c: Use C++ exception handling.
8909         * python/py-param.c: Use C++ exception handling.
8910         * python/py-objfile.c: Use C++ exception handling.
8911         * python/py-linetable.c: Use C++ exception handling.
8912         * python/py-lazy-string.c: Use C++ exception handling.
8913         * python/py-infthread.c: Use C++ exception handling.
8914         * python/py-inferior.c: Use C++ exception handling.
8915         * python/py-gdb-readline.c: Use C++ exception handling.
8916         * python/py-framefilter.c: Use C++ exception handling.
8917         * python/py-frame.c: Use C++ exception handling.
8918         * python/py-finishbreakpoint.c: Use C++ exception handling.
8919         * python/py-cmd.c: Use C++ exception handling.
8920         * python/py-breakpoint.c: Use C++ exception handling.
8921         * python/py-arch.c: Use C++ exception handling.
8922         * printcmd.c: Use C++ exception handling.
8923         * ppc-linux-tdep.c: Use C++ exception handling.
8924         * parse.c: Use C++ exception handling.
8925         * p-valprint.c: Use C++ exception handling.
8926         * objc-lang.c: Use C++ exception handling.
8927         * mi/mi-main.c: Use C++ exception handling.
8928         * mi/mi-interp.c: Use C++ exception handling.
8929         * mi/mi-cmd-stack.c: Use C++ exception handling.
8930         * mi/mi-cmd-break.c: Use C++ exception handling.
8931         * main.c: Use C++ exception handling.
8932         * linux-thread-db.c: Use C++ exception handling.
8933         * linux-tdep.c: Use C++ exception handling.
8934         * linux-nat.c: Use C++ exception handling.
8935         * linux-fork.c: Use C++ exception handling.
8936         * linespec.c: Use C++ exception handling.
8937         * language.c: Use C++ exception handling.
8938         * jit.c: Use C++ exception handling.
8939         * infrun.c: Use C++ exception handling.
8940         * infcmd.c: Use C++ exception handling.
8941         * infcall.c: Use C++ exception handling.
8942         * inf-loop.c: Use C++ exception handling.
8943         * i386-tdep.c: Use C++ exception handling.
8944         * i386-linux-tdep.c: Use C++ exception handling.
8945         * guile/scm-value.c: Use C++ exception handling.
8946         * guile/scm-type.c: Use C++ exception handling.
8947         * guile/scm-symtab.c: Use C++ exception handling.
8948         * guile/scm-symbol.c: Use C++ exception handling.
8949         * guile/scm-pretty-print.c: Use C++ exception handling.
8950         * guile/scm-ports.c: Use C++ exception handling.
8951         * guile/scm-param.c: Use C++ exception handling.
8952         * guile/scm-math.c: Use C++ exception handling.
8953         * guile/scm-lazy-string.c: Use C++ exception handling.
8954         * guile/scm-frame.c: Use C++ exception handling.
8955         * guile/scm-disasm.c: Use C++ exception handling.
8956         * guile/scm-cmd.c: Use C++ exception handling.
8957         * guile/scm-breakpoint.c: Use C++ exception handling.
8958         * guile/scm-block.c: Use C++ exception handling.
8959         * guile/guile-internal.h: Use C++ exception handling.
8960         * gnu-v3-abi.c: Use C++ exception handling.
8961         * gdbtypes.c: Use C++ exception handling.
8962         * frame.c: Use C++ exception handling.
8963         * frame-unwind.c: Use C++ exception handling.
8964         * fbsd-tdep.c: Use C++ exception handling.
8965         * f-valprint.c: Use C++ exception handling.
8966         * exec.c: Use C++ exception handling.
8967         * event-top.c: Use C++ exception handling.
8968         * event-loop.c: Use C++ exception handling.
8969         * eval.c: Use C++ exception handling.
8970         * dwarf2read.c: Use C++ exception handling.
8971         * dwarf2loc.c: Use C++ exception handling.
8972         * dwarf2-frame.c: Use C++ exception handling.
8973         * dwarf2-frame-tailcall.c: Use C++ exception handling.
8974         * dwarf-index-write.c: Use C++ exception handling.
8975         * dwarf-index-cache.c: Use C++ exception handling.
8976         * dtrace-probe.c: Use C++ exception handling.
8977         * disasm-selftests.c: Use C++ exception handling.
8978         * darwin-nat.c: Use C++ exception handling.
8979         * cp-valprint.c: Use C++ exception handling.
8980         * cp-support.c: Use C++ exception handling.
8981         * cp-abi.c: Use C++ exception handling.
8982         * corelow.c: Use C++ exception handling.
8983         * completer.c: Use C++ exception handling.
8984         * compile/compile-object-run.c: Use C++ exception handling.
8985         * compile/compile-object-load.c: Use C++ exception handling.
8986         * compile/compile-cplus-symbols.c: Use C++ exception handling.
8987         * compile/compile-c-symbols.c: Use C++ exception handling.
8988         * common/selftest.c: Use C++ exception handling.
8989         * common/new-op.c: Use C++ exception handling.
8990         * cli/cli-script.c: Use C++ exception handling.
8991         * cli/cli-interp.c: Use C++ exception handling.
8992         * cli/cli-cmds.c: Use C++ exception handling.
8993         * c-varobj.c: Use C++ exception handling.
8994         * btrace.c: Use C++ exception handling.
8995         * breakpoint.c: Use C++ exception handling.
8996         * break-catch-throw.c: Use C++ exception handling.
8997         * arch-utils.c: Use C++ exception handling.
8998         * amd64-tdep.c: Use C++ exception handling.
8999         * ada-valprint.c: Use C++ exception handling.
9000         * ada-typeprint.c: Use C++ exception handling.
9001         * ada-lang.c: Use C++ exception handling.
9002         * aarch64-tdep.c: Use C++ exception handling.
9003
9004 2019-04-08  Tom Tromey  <[email protected]>
9005
9006         * xml-support.c (gdb_xml_parser::parse): Update.
9007         * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
9008         * value.c (show_convenience): Update.
9009         * unittests/cli-utils-selftests.c (test_number_or_range_parser)
9010         (test_parse_flags_qcs): Update.
9011         * thread.c (thr_try_catch_cmd): Update.
9012         * target.c (target_translate_tls_address): Update.
9013         * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
9014         (info_frame_command_core, frame_apply_command_count): Update.
9015         * rust-exp.y (rust_lex_exception_test): Update.
9016         * riscv-tdep.c (riscv_print_one_register_info): Update.
9017         * remote.c (remote_target::enable_btrace): Update.
9018         * record-btrace.c (record_btrace_enable_warn): Update.
9019         * python/py-utils.c (gdbpy_convert_exception): Update.
9020         * printcmd.c (do_one_display, print_variable_and_value): Update.
9021         * mi/mi-main.c (mi_print_exception): Update.
9022         * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
9023         * mi/mi-cmd-stack.c (list_arg_or_local): Update.
9024         * linux-nat.c (linux_nat_target::attach): Update.
9025         * linux-fork.c (class scoped_switch_fork_info): Update.
9026         * infrun.c (displaced_step_prepare): Update.
9027         * infcall.c (call_function_by_hand_dummy): Update.
9028         * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
9029         * gnu-v3-abi.c (print_one_vtable): Update.
9030         * frame.c (get_prev_frame_always): Update.
9031         * f-valprint.c (info_common_command_for_block): Update.
9032         * exec.c (try_open_exec_file): Update.
9033         * exceptions.c (print_exception, exception_print)
9034         (exception_fprintf, exception_print_same): Update.
9035         * dwarf2-frame.c (dwarf2_build_frame_info): Update.
9036         * dwarf-index-cache.c (index_cache::store)
9037         (index_cache::lookup_gdb_index): Update.
9038         * darwin-nat.c (maybe_cache_shell): Update.
9039         * cp-valprint.c (cp_print_value_fields): Update.
9040         * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
9041         (gcc_cplus_symbol_address): Update.
9042         * compile/compile-c-symbols.c (gcc_convert_symbol)
9043         (gcc_symbol_address, generate_c_for_for_one_variable): Update.
9044         * common/selftest.c: Update.
9045         * common/common-exceptions.h (struct gdb_exception) <message>: Now
9046         a std::string.
9047         (exception_try_scope_entry, exception_try_scope_exit): Don't
9048         declare.
9049         (struct exception_try_scope): Remove.
9050         (TRY): Don't use exception_try_scope.
9051         (struct gdb_exception): Add constructor, operator=.
9052         <what>: New method.
9053         (struct gdb_exception_RETURN_MASK_ALL)
9054         (struct gdb_exception_RETURN_MASK_ERROR)
9055         (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
9056         (struct gdb_quit_bad_alloc): Update.
9057         * common/common-exceptions.c (exception_none): Change
9058         initializer.
9059         (struct catcher) <state, exception>: Initialize inline.
9060         <prev>: Remove member.
9061         (current_catcher): Remove.
9062         (catchers): New global.
9063         (exceptions_state_mc_init): Simplify.
9064         (catcher_pop): Remove.
9065         (exceptions_state_mc, exceptions_state_mc_catch): Update.
9066         (try_scope_depth, exception_try_scope_entry)
9067         (exception_try_scope_exit): Remove.
9068         (throw_exception_sjlj): Update.
9069         (exception_messages, exception_messages_size): Remove.
9070         (throw_it): Simplify.
9071         (gdb_exception_sliced_copy): Remove.
9072         (throw_exception_cxx): Update.
9073         * cli/cli-script.c (script_from_file): Update.
9074         * breakpoint.c (insert_bp_location, update_breakpoint_locations):
9075         Update.
9076         * ada-valprint.c (ada_val_print): Update.
9077         * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
9078         (create_excep_cond_exprs): Update.
9079
9080 2019-04-08  Tom Tromey  <[email protected]>
9081
9082         * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
9083         (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
9084         (TRY, CATCH, END_CATCH): Remove some definitions.
9085         * common/common-exceptions.c: Don't use GDB_XCPT.
9086         (catcher_list_size): Remove.
9087         (throw_exception, throw_it): Simplify.
9088
9089 2019-04-05  Tom Tromey  <[email protected]>
9090
9091         Revert the header-sorting patch.
9092         * ft32-tdep.c: Revert.
9093         * frv-tdep.c: Revert.
9094         * frv-linux-tdep.c: Revert.
9095         * frame.c: Revert.
9096         * frame-unwind.c: Revert.
9097         * frame-base.c: Revert.
9098         * fork-child.c: Revert.
9099         * findvar.c: Revert.
9100         * findcmd.c: Revert.
9101         * filesystem.c: Revert.
9102         * filename-seen-cache.h: Revert.
9103         * filename-seen-cache.c: Revert.
9104         * fbsd-tdep.c: Revert.
9105         * fbsd-nat.h: Revert.
9106         * fbsd-nat.c: Revert.
9107         * f-valprint.c: Revert.
9108         * f-typeprint.c: Revert.
9109         * f-lang.c: Revert.
9110         * extension.h: Revert.
9111         * extension.c: Revert.
9112         * extension-priv.h: Revert.
9113         * expprint.c: Revert.
9114         * exec.h: Revert.
9115         * exec.c: Revert.
9116         * exceptions.c: Revert.
9117         * event-top.c: Revert.
9118         * event-loop.c: Revert.
9119         * eval.c: Revert.
9120         * elfread.c: Revert.
9121         * dwarf2read.h: Revert.
9122         * dwarf2read.c: Revert.
9123         * dwarf2loc.c: Revert.
9124         * dwarf2expr.h: Revert.
9125         * dwarf2expr.c: Revert.
9126         * dwarf2-frame.c: Revert.
9127         * dwarf2-frame-tailcall.c: Revert.
9128         * dwarf-index-write.h: Revert.
9129         * dwarf-index-write.c: Revert.
9130         * dwarf-index-common.c: Revert.
9131         * dwarf-index-cache.h: Revert.
9132         * dwarf-index-cache.c: Revert.
9133         * dummy-frame.c: Revert.
9134         * dtrace-probe.c: Revert.
9135         * disasm.h: Revert.
9136         * disasm.c: Revert.
9137         * disasm-selftests.c: Revert.
9138         * dictionary.c: Revert.
9139         * dicos-tdep.c: Revert.
9140         * demangle.c: Revert.
9141         * dcache.h: Revert.
9142         * dcache.c: Revert.
9143         * darwin-nat.h: Revert.
9144         * darwin-nat.c: Revert.
9145         * darwin-nat-info.c: Revert.
9146         * d-valprint.c: Revert.
9147         * d-namespace.c: Revert.
9148         * d-lang.c: Revert.
9149         * ctf.c: Revert.
9150         * csky-tdep.c: Revert.
9151         * csky-linux-tdep.c: Revert.
9152         * cris-tdep.c: Revert.
9153         * cris-linux-tdep.c: Revert.
9154         * cp-valprint.c: Revert.
9155         * cp-support.c: Revert.
9156         * cp-namespace.c: Revert.
9157         * cp-abi.c: Revert.
9158         * corelow.c: Revert.
9159         * corefile.c: Revert.
9160         * continuations.c: Revert.
9161         * completer.h: Revert.
9162         * completer.c: Revert.
9163         * complaints.c: Revert.
9164         * coffread.c: Revert.
9165         * coff-pe-read.c: Revert.
9166         * cli-out.h: Revert.
9167         * cli-out.c: Revert.
9168         * charset.c: Revert.
9169         * c-varobj.c: Revert.
9170         * c-valprint.c: Revert.
9171         * c-typeprint.c: Revert.
9172         * c-lang.c: Revert.
9173         * buildsym.c: Revert.
9174         * buildsym-legacy.c: Revert.
9175         * build-id.h: Revert.
9176         * build-id.c: Revert.
9177         * btrace.c: Revert.
9178         * bsd-uthread.c: Revert.
9179         * breakpoint.h: Revert.
9180         * breakpoint.c: Revert.
9181         * break-catch-throw.c: Revert.
9182         * break-catch-syscall.c: Revert.
9183         * break-catch-sig.c: Revert.
9184         * blockframe.c: Revert.
9185         * block.c: Revert.
9186         * bfin-tdep.c: Revert.
9187         * bfin-linux-tdep.c: Revert.
9188         * bfd-target.c: Revert.
9189         * bcache.c: Revert.
9190         * ax-general.c: Revert.
9191         * ax-gdb.h: Revert.
9192         * ax-gdb.c: Revert.
9193         * avr-tdep.c: Revert.
9194         * auxv.c: Revert.
9195         * auto-load.c: Revert.
9196         * arm-wince-tdep.c: Revert.
9197         * arm-tdep.c: Revert.
9198         * arm-symbian-tdep.c: Revert.
9199         * arm-pikeos-tdep.c: Revert.
9200         * arm-obsd-tdep.c: Revert.
9201         * arm-nbsd-tdep.c: Revert.
9202         * arm-nbsd-nat.c: Revert.
9203         * arm-linux-tdep.c: Revert.
9204         * arm-linux-nat.c: Revert.
9205         * arm-fbsd-tdep.c: Revert.
9206         * arm-fbsd-nat.c: Revert.
9207         * arm-bsd-tdep.c: Revert.
9208         * arch-utils.c: Revert.
9209         * arc-tdep.c: Revert.
9210         * arc-newlib-tdep.c: Revert.
9211         * annotate.h: Revert.
9212         * annotate.c: Revert.
9213         * amd64-windows-tdep.c: Revert.
9214         * amd64-windows-nat.c: Revert.
9215         * amd64-tdep.c: Revert.
9216         * amd64-sol2-tdep.c: Revert.
9217         * amd64-obsd-tdep.c: Revert.
9218         * amd64-obsd-nat.c: Revert.
9219         * amd64-nbsd-tdep.c: Revert.
9220         * amd64-nbsd-nat.c: Revert.
9221         * amd64-nat.c: Revert.
9222         * amd64-linux-tdep.c: Revert.
9223         * amd64-linux-nat.c: Revert.
9224         * amd64-fbsd-tdep.c: Revert.
9225         * amd64-fbsd-nat.c: Revert.
9226         * amd64-dicos-tdep.c: Revert.
9227         * amd64-darwin-tdep.c: Revert.
9228         * amd64-bsd-nat.c: Revert.
9229         * alpha-tdep.c: Revert.
9230         * alpha-obsd-tdep.c: Revert.
9231         * alpha-nbsd-tdep.c: Revert.
9232         * alpha-mdebug-tdep.c: Revert.
9233         * alpha-linux-tdep.c: Revert.
9234         * alpha-linux-nat.c: Revert.
9235         * alpha-bsd-tdep.c: Revert.
9236         * alpha-bsd-nat.c: Revert.
9237         * aix-thread.c: Revert.
9238         * agent.c: Revert.
9239         * addrmap.c: Revert.
9240         * ada-varobj.c: Revert.
9241         * ada-valprint.c: Revert.
9242         * ada-typeprint.c: Revert.
9243         * ada-tasks.c: Revert.
9244         * ada-lang.c: Revert.
9245         * aarch64-tdep.c: Revert.
9246         * aarch64-ravenscar-thread.c: Revert.
9247         * aarch64-newlib-tdep.c: Revert.
9248         * aarch64-linux-tdep.c: Revert.
9249         * aarch64-linux-nat.c: Revert.
9250         * aarch64-fbsd-tdep.c: Revert.
9251         * aarch64-fbsd-nat.c: Revert.
9252         * aarch32-linux-nat.c: Revert.
9253
9254 2019-04-05  Tom Tromey  <[email protected]>
9255
9256         * ft32-tdep.c: Sort headers.
9257         * frv-tdep.c: Sort headers.
9258         * frv-linux-tdep.c: Sort headers.
9259         * frame.c: Sort headers.
9260         * frame-unwind.c: Sort headers.
9261         * frame-base.c: Sort headers.
9262         * fork-child.c: Sort headers.
9263         * findvar.c: Sort headers.
9264         * findcmd.c: Sort headers.
9265         * filesystem.c: Sort headers.
9266         * filename-seen-cache.h: Sort headers.
9267         * filename-seen-cache.c: Sort headers.
9268         * fbsd-tdep.c: Sort headers.
9269         * fbsd-nat.h: Sort headers.
9270         * fbsd-nat.c: Sort headers.
9271         * f-valprint.c: Sort headers.
9272         * f-typeprint.c: Sort headers.
9273         * f-lang.c: Sort headers.
9274         * extension.h: Sort headers.
9275         * extension.c: Sort headers.
9276         * extension-priv.h: Sort headers.
9277         * expprint.c: Sort headers.
9278         * exec.h: Sort headers.
9279         * exec.c: Sort headers.
9280         * exceptions.c: Sort headers.
9281         * event-top.c: Sort headers.
9282         * event-loop.c: Sort headers.
9283         * eval.c: Sort headers.
9284         * elfread.c: Sort headers.
9285         * dwarf2read.h: Sort headers.
9286         * dwarf2read.c: Sort headers.
9287         * dwarf2loc.c: Sort headers.
9288         * dwarf2expr.h: Sort headers.
9289         * dwarf2expr.c: Sort headers.
9290         * dwarf2-frame.c: Sort headers.
9291         * dwarf2-frame-tailcall.c: Sort headers.
9292         * dwarf-index-write.h: Sort headers.
9293         * dwarf-index-write.c: Sort headers.
9294         * dwarf-index-common.c: Sort headers.
9295         * dwarf-index-cache.h: Sort headers.
9296         * dwarf-index-cache.c: Sort headers.
9297         * dummy-frame.c: Sort headers.
9298         * dtrace-probe.c: Sort headers.
9299         * disasm.h: Sort headers.
9300         * disasm.c: Sort headers.
9301         * disasm-selftests.c: Sort headers.
9302         * dictionary.c: Sort headers.
9303         * dicos-tdep.c: Sort headers.
9304         * demangle.c: Sort headers.
9305         * dcache.h: Sort headers.
9306         * dcache.c: Sort headers.
9307         * darwin-nat.h: Sort headers.
9308         * darwin-nat.c: Sort headers.
9309         * darwin-nat-info.c: Sort headers.
9310         * d-valprint.c: Sort headers.
9311         * d-namespace.c: Sort headers.
9312         * d-lang.c: Sort headers.
9313         * ctf.c: Sort headers.
9314         * csky-tdep.c: Sort headers.
9315         * csky-linux-tdep.c: Sort headers.
9316         * cris-tdep.c: Sort headers.
9317         * cris-linux-tdep.c: Sort headers.
9318         * cp-valprint.c: Sort headers.
9319         * cp-support.c: Sort headers.
9320         * cp-namespace.c: Sort headers.
9321         * cp-abi.c: Sort headers.
9322         * corelow.c: Sort headers.
9323         * corefile.c: Sort headers.
9324         * continuations.c: Sort headers.
9325         * completer.h: Sort headers.
9326         * completer.c: Sort headers.
9327         * complaints.c: Sort headers.
9328         * coffread.c: Sort headers.
9329         * coff-pe-read.c: Sort headers.
9330         * cli-out.h: Sort headers.
9331         * cli-out.c: Sort headers.
9332         * charset.c: Sort headers.
9333         * c-varobj.c: Sort headers.
9334         * c-valprint.c: Sort headers.
9335         * c-typeprint.c: Sort headers.
9336         * c-lang.c: Sort headers.
9337         * buildsym.c: Sort headers.
9338         * buildsym-legacy.c: Sort headers.
9339         * build-id.h: Sort headers.
9340         * build-id.c: Sort headers.
9341         * btrace.c: Sort headers.
9342         * bsd-uthread.c: Sort headers.
9343         * breakpoint.h: Sort headers.
9344         * breakpoint.c: Sort headers.
9345         * break-catch-throw.c: Sort headers.
9346         * break-catch-syscall.c: Sort headers.
9347         * break-catch-sig.c: Sort headers.
9348         * blockframe.c: Sort headers.
9349         * block.c: Sort headers.
9350         * bfin-tdep.c: Sort headers.
9351         * bfin-linux-tdep.c: Sort headers.
9352         * bfd-target.c: Sort headers.
9353         * bcache.c: Sort headers.
9354         * ax-general.c: Sort headers.
9355         * ax-gdb.h: Sort headers.
9356         * ax-gdb.c: Sort headers.
9357         * avr-tdep.c: Sort headers.
9358         * auxv.c: Sort headers.
9359         * auto-load.c: Sort headers.
9360         * arm-wince-tdep.c: Sort headers.
9361         * arm-tdep.c: Sort headers.
9362         * arm-symbian-tdep.c: Sort headers.
9363         * arm-pikeos-tdep.c: Sort headers.
9364         * arm-obsd-tdep.c: Sort headers.
9365         * arm-nbsd-tdep.c: Sort headers.
9366         * arm-nbsd-nat.c: Sort headers.
9367         * arm-linux-tdep.c: Sort headers.
9368         * arm-linux-nat.c: Sort headers.
9369         * arm-fbsd-tdep.c: Sort headers.
9370         * arm-fbsd-nat.c: Sort headers.
9371         * arm-bsd-tdep.c: Sort headers.
9372         * arch-utils.c: Sort headers.
9373         * arc-tdep.c: Sort headers.
9374         * arc-newlib-tdep.c: Sort headers.
9375         * annotate.h: Sort headers.
9376         * annotate.c: Sort headers.
9377         * amd64-windows-tdep.c: Sort headers.
9378         * amd64-windows-nat.c: Sort headers.
9379         * amd64-tdep.c: Sort headers.
9380         * amd64-sol2-tdep.c: Sort headers.
9381         * amd64-obsd-tdep.c: Sort headers.
9382         * amd64-obsd-nat.c: Sort headers.
9383         * amd64-nbsd-tdep.c: Sort headers.
9384         * amd64-nbsd-nat.c: Sort headers.
9385         * amd64-nat.c: Sort headers.
9386         * amd64-linux-tdep.c: Sort headers.
9387         * amd64-linux-nat.c: Sort headers.
9388         * amd64-fbsd-tdep.c: Sort headers.
9389         * amd64-fbsd-nat.c: Sort headers.
9390         * amd64-dicos-tdep.c: Sort headers.
9391         * amd64-darwin-tdep.c: Sort headers.
9392         * amd64-bsd-nat.c: Sort headers.
9393         * alpha-tdep.c: Sort headers.
9394         * alpha-obsd-tdep.c: Sort headers.
9395         * alpha-nbsd-tdep.c: Sort headers.
9396         * alpha-mdebug-tdep.c: Sort headers.
9397         * alpha-linux-tdep.c: Sort headers.
9398         * alpha-linux-nat.c: Sort headers.
9399         * alpha-bsd-tdep.c: Sort headers.
9400         * alpha-bsd-nat.c: Sort headers.
9401         * aix-thread.c: Sort headers.
9402         * agent.c: Sort headers.
9403         * addrmap.c: Sort headers.
9404         * ada-varobj.c: Sort headers.
9405         * ada-valprint.c: Sort headers.
9406         * ada-typeprint.c: Sort headers.
9407         * ada-tasks.c: Sort headers.
9408         * ada-lang.c: Sort headers.
9409         * aarch64-tdep.c: Sort headers.
9410         * aarch64-ravenscar-thread.c: Sort headers.
9411         * aarch64-newlib-tdep.c: Sort headers.
9412         * aarch64-linux-tdep.c: Sort headers.
9413         * aarch64-linux-nat.c: Sort headers.
9414         * aarch64-fbsd-tdep.c: Sort headers.
9415         * aarch64-fbsd-nat.c: Sort headers.
9416         * aarch32-linux-nat.c: Sort headers.
9417
9418 2019-04-04  Tom Tromey  <[email protected]>
9419
9420         * varobj.c (varobj_create): Update.
9421         * rust-exp.y (struct rust_parser) <update_innermost_block,
9422         lookup_symbol>: New methods.
9423         (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
9424         Rename.
9425         (rust_parser::rust_lookup_type)
9426         (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
9427         * printcmd.c (display_command, do_one_display): Update.
9428         * parser-defs.h (struct parser_state) <parser_state>: Add
9429         "tracker" parameter.
9430         (block_tracker): New member.
9431         (class innermost_block_tracker) <innermost_block_tracker>: Add
9432         "types" parameter.
9433         <reset>: Remove method.
9434         (innermost_block): Don't declare.
9435         (null_post_parser): Update.
9436         * parse.c (innermost_block): Remove global.
9437         (write_dollar_variable): Update.
9438         (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
9439         Remove "tracker_types" parameter.
9440         (parse_expression): Add "tracker" parameter.
9441         (parse_expression_for_completion): Update.
9442         (null_post_parser): Add "tracker" parameter.
9443         * p-exp.y: Update rules.
9444         * m2-exp.y: Update rules.
9445         * language.h (struct language_defn) <la_post_parser>: Add
9446         "tracker" parameter.
9447         * go-exp.y: Update rules.
9448         * f-exp.y: Update rules.
9449         * expression.h (parse_expression, parse_exp_1): Add "tracker"
9450         parameter.
9451         * d-exp.y: Update rules.
9452         * c-exp.y: Update rules.
9453         * breakpoint.c (set_breakpoint_condition): Create an
9454         innermost_block_tracker.
9455         (watch_command_1): Likewise.
9456         * ada-lang.c (resolve): Add "tracker" parameter.
9457         (resolve_subexp): Likewise.
9458         * ada-exp.y (write_var_from_sym): Update.
9459
9460 2019-04-04  Tom Tromey  <[email protected]>
9461
9462         * type-stack.h: New file.
9463         * type-stack.c: New file.
9464         * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
9465         type-stack.h.
9466         (insert_into_type_stack, insert_type, push_type, push_type_int)
9467         (insert_type_address_space, pop_type, pop_type_int)
9468         (pop_typelist, pop_type_stack, append_type_stack)
9469         (push_type_stack, get_type_stack, push_typelist)
9470         (follow_type_instance_flags, follow_types): Don't declare.
9471         * parse.c (type_stack): Remove global.
9472         (parse_exp_in_context): Update.
9473         (insert_into_type_stack, insert_type, push_type, push_type_int)
9474         (insert_type_address_space, pop_type, pop_type_int)
9475         (pop_typelist, pop_type_stack, append_type_stack)
9476         (push_type_stack, get_type_stack, push_typelist)
9477         (follow_type_instance_flags, follow_types): Remove (moved to
9478         type-stack.c).
9479         * f-exp.y (type_stack): New global.
9480         Update rules.
9481         (push_kind_type, f_parse): Update.
9482         * d-exp.y (type_stack): New global.
9483         Update rules.
9484         (d_parse): Update.
9485         * c-exp.y (struct c_parse_state) <type_stack>: New member.
9486         Update rules.
9487         * Makefile.in (COMMON_SFILES): Add type-stack.c.
9488         (HFILES_NO_SRCDIR): Add type-stack.h.
9489
9490 2019-04-04  Tom Tromey  <[email protected]>
9491
9492         * rust-exp.y (rust_parser::lex_identifier, rustyylex)
9493         (rust_parser::convert_ast_to_expression, rust_parse)
9494         (rust_lex_test_completion, rust_lex_tests): Update.
9495         * parser-defs.h (struct expr_completion_state): New.
9496         (struct parser_state) <parser_state>: Add completion parameter.
9497         <mark_struct_expression, mark_completion_tag>: New methods.
9498         <parse_completion, m_completion_state>: New members.
9499         (prefixify_expression, null_post_parser): Update.
9500         (mark_struct_expression, mark_completion_tag): Don't declare.
9501         * parse.c (parse_completion, expout_last_struct)
9502         (expout_tag_completion_type, expout_completion_name): Remove
9503         globals.
9504         (parser_state::mark_struct_expression)
9505         (parser_state::mark_completion_tag): Now methods.
9506         (prefixify_expression): Add last_struct parameter.
9507         (prefixify_subexp): Likewise.
9508         (parse_exp_1): Update.
9509         (parse_exp_in_context): Add cstate parameter.  Update.
9510         (parse_expression_for_completion): Create an
9511         expr_completion_state.
9512         (null_post_parser): Add "completion" parameter.
9513         * p-exp.y: Update rules.
9514         (yylex): Update.
9515         * language.h (struct language_defn) <la_post_parser>: Add
9516         "completing" parameter.
9517         * go-exp.y: Update rules.
9518         (lex_one_token): Update.
9519         * expression.h (parse_completion): Don't declare.
9520         * d-exp.y: Update rules.
9521         (lex_one_token): Update rules.
9522         * c-exp.y: Update rules.
9523         (lex_one_token): Update.
9524         * ada-lang.c (resolve): Add "parse_completion" parameter.
9525         (resolve_subexp): Likewise.
9526         (ada_resolve_function): Likewise.
9527
9528 2019-04-04  Tom Tromey  <[email protected]>
9529
9530         * parser-defs.h (struct parser_state) <start_arglist,
9531         end_arglist>: New methods.
9532         <arglist_len, m_funcall_chain>: New members.
9533         (arglist_len, start_arglist, end_arglist): Don't declare.
9534         * parse.c (arglist_len, funcall_chain): Remove global.
9535         (start_arglist, end_arglist): Remove functions.
9536         (parse_exp_in_context): Update.
9537         * p-exp.y: Update rules.
9538         * m2-exp.y: Update rules.
9539         * go-exp.y: Update rules.
9540         * f-exp.y: Update rules.
9541         * d-exp.y: Update rules.
9542         * c-exp.y: Update rules.
9543
9544 2019-04-04  Tom Tromey  <[email protected]>
9545
9546         * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
9547         lex_operator, push_back>: New methods.
9548         Update all rules.
9549         (rust_parser::lex_hex, lex_escape): Rename and update.
9550         (rust_parser::lex_string, rust_parser::lex_identifier): Update.
9551         (rust_parser::lex_operator): Rename and update.
9552         (rust_parser::lex_number, rustyylex, rustyyerror)
9553         (rust_lex_test_init, rust_lex_test_sequence)
9554         (rust_lex_test_push_back, rust_lex_tests): Update.
9555         * parser-defs.h (struct parser_state) <parser_state>: Add "input"
9556         parameter.
9557         <lexptr, prev_lexptr>: New members.
9558         (lexptr, prev_lexptr): Don't declare.
9559         * parse.c (lexptr, prev_lexptr): Remove globals.
9560         (parse_exp_in_context): Update.
9561         * p-exp.y (yylex, yyerror): Update.
9562         * m2-exp.y (parse_number, yylex, yyerror): Update.
9563         * go-exp.y (lex_one_token, yyerror): Update.
9564         * f-exp.y (match_string_literal, yylex, yyerror): Update.
9565         * d-exp.y (lex_one_token, yyerror): Update.
9566         * c-exp.y (scan_macro_expansion, finished_macro_expansion)
9567         (lex_one_token, yyerror): Update.
9568         * ada-lex.l (YY_INPUT): Update.
9569         (rewind_to_char): Update.
9570         * ada-exp.y (yyerror): Update.
9571
9572 2019-04-04  Tom Tromey  <[email protected]>
9573
9574         * rust-exp.y (rustyylex, rust_lex_tests): Update.
9575         * parser-defs.h (struct parser_state) <parser_state>: Add new
9576         parameter.
9577         <comma_terminates>: New member.
9578         (comma_terminates): Don't declare global.
9579         * parse.c (comma_terminates): Remove global.
9580         (parse_exp_in_context): Update.
9581         * p-exp.y (yylex): Update.
9582         * m2-exp.y (yylex): Update.
9583         * go-exp.y (lex_one_token): Update.
9584         * f-exp.y (yylex): Update.
9585         * d-exp.y (lex_one_token): Update.
9586         * c-exp.y (lex_one_token): Update.
9587         * ada-lex.l: Update.
9588
9589 2019-04-04  Tom Tromey  <[email protected]>
9590
9591         * rust-exp.y (struct rust_parser) <paren_depth>: New member.
9592         (rustyylex, rust_lex_test_init, rust_lex_test_one)
9593         (rust_lex_test_sequence, rust_lex_test_push_back): Update.
9594         * parser-defs.h (paren_depth): Don't declare.
9595         * parse.c (paren_depth): Remove global.
9596         (parse_exp_in_context): Update.
9597         * p-exp.y (paren_depth): New global.
9598         (pascal_parse): Initialize it.
9599         * m2-exp.y (paren_depth): New global.
9600         (m2_parse): Initialize it.
9601         * go-exp.y (paren_depth): New global.
9602         (go_parse): Initialize it.
9603         * f-exp.y (paren_depth): New global.
9604         (f_parse): Initialize it.
9605         * d-exp.y (paren_depth): New global.
9606         (d_parse): Initialize it.
9607         * c-exp.y (paren_depth): New global.
9608         (c_parse): Initialize it.
9609         * ada-lex.l (paren_depth): New global.
9610         (lexer_init): Initialize it.
9611
9612 2019-04-04  Tom Tromey  <[email protected]>
9613
9614         * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
9615         (rust_parser::convert_ast_to_type)
9616         (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
9617         * parser-defs.h (struct parser_state) <parser_state>: Add
9618         parameters.  Initialize new members.
9619         <expression_context_block, expression_context_pc>: New members.
9620         * parse.c (expression_context_block, expression_context_pc):
9621         Remove globals.
9622         (parse_exp_in_context): Update.
9623         * p-exp.y: Update all rules.
9624         (yylex): Update.
9625         * m2-exp.y: Update all rules.
9626         (yylex): Update.
9627         * go-exp.y (yylex): Update.
9628         * f-exp.y (yylex): Update.
9629         * d-exp.y: Update all rules.
9630         (yylex): Update.
9631         * c-exp.y: Update all rules.
9632         (lex_one_token, classify_name, yylex, c_parse): Update.
9633         * ada-exp.y (write_var_or_type, write_name_assoc): Update.
9634
9635 2019-04-04  Tom Tromey  <[email protected]>
9636
9637         * gdbarch.h, gdbarch.c: Rebuild.
9638         * gdbarch.sh (dtrace_parse_probe_argument): Change type.
9639         * stap-probe.h: 
9640         (struct stap_parse_info): Replace "parser_state" with
9641         "expr_builder".
9642         * parser-defs.h (struct expr_builder): Rename from "parser_state".
9643         (parser_state): New class.
9644         * parse.c (expr_builder): Rename.
9645         (expr_builder::release): Rename.
9646         (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
9647         (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
9648         (write_exp_elt_longcst, write_exp_elt_floatcst)
9649         (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
9650         (write_exp_string_vector, write_exp_bitstring)
9651         (write_exp_msymbol, mark_struct_expression)
9652         (write_dollar_variable)
9653         (insert_type_address_space, increase_expout_size): Replace
9654         "parser_state" with "expr_builder".
9655         * dtrace-probe.c: Replace "parser_state" with "expr_builder".
9656         * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
9657         "parser_state" with "expr_builder".
9658
9659 2019-04-04  Tom Tromey  <[email protected]>
9660
9661         * rust-exp.y: Replace "parse_language" with method call.
9662         * p-exp.y: 
9663         (yylex): Replace "parse_language" with method call.
9664         * m2-exp.y: 
9665         (yylex): Replace "parse_language" with method call.
9666         * go-exp.y (classify_name): Replace "parse_language" with method
9667         call.
9668         * f-exp.y (yylex): Replace "parse_language" with method call.
9669         * d-exp.y (lex_one_token): Replace "parse_language" with method
9670         call.
9671         * c-exp.y: 
9672         (lex_one_token, classify_name, yylex): Replace "parse_language"
9673         with method call.
9674         * ada-exp.y (find_primitive_type, type_char)
9675         (type_system_address): Replace "parse_language" with method call.
9676
9677 2019-04-04  Tom Tromey  <[email protected]>
9678
9679         * rust-exp.y: Replace "parse_gdbarch" with method call.
9680         * parse.c (write_dollar_variable, insert_type_address_space):
9681         Replace "parse_gdbarch" with method call.
9682         * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
9683         call.
9684         * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
9685         call.
9686         * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
9687         "parse_gdbarch" with method call.
9688         * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
9689         with method call.
9690         * f-exp.y (parse_type, parse_f_type, yylex): Replace
9691         "parse_gdbarch" with method call.
9692         * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
9693         "parse_gdbarch" with method call.
9694         * c-exp.y (parse_type, parse_number, classify_name): Replace
9695         "parse_gdbarch" with method call.
9696         * ada-lex.l: Replace "parse_gdbarch" with method call.
9697         * ada-exp.y (parse_type, find_primitive_type, type_char)
9698         (type_system_address): Replace "parse_gdbarch" with method call.
9699
9700 2019-04-04  Tom Tromey  <[email protected]>
9701
9702         * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
9703         * stap-probe.c (stap_parse_argument): Update.
9704         * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
9705         initial_size parameter.
9706         * rust-exp.y (rust_lex_tests): Update.
9707         * parse.c (parser_state): Update.
9708         (parse_exp_in_context): Update.
9709         * parser-defs.h (struct parser_state) <parser_state>: Remove
9710         "initial_size" parameter.
9711
9712 2019-04-04  Tom Tromey  <[email protected]>
9713
9714         * parser-defs.h (increase_expout_size): Don't declare.
9715         * parse.c (increase_expout_size): Now static.
9716
9717 2019-04-04  Thomas Schwinge  <[email protected]>
9718
9719         * gnu-nat.c (gnu_nat_target::wait): Fix
9720         target_waitstatus_to_string call.
9721
9722 2019-04-01  Andrew Burgess  <[email protected]>
9723
9724         * eval.c (evaluate_subexp_standard): Handle internal functions
9725         during Fortran function call handling.
9726
9727 2019-04-01  Andrew Burgess  <[email protected]>
9728
9729         * NEWS: Mention new internal functions.
9730         * dwarf2read.c (dwarf2_init_complex_target_type): New function.
9731         (read_base_type): Use dwarf2_init_complex_target_type.
9732         * value.c (creal_internal_fn): New function.
9733         (cimag_internal_fn): New function.
9734         (_initialize_values): Register new internal functions.
9735
9736 2019-04-01  Philippe Waroquiers  <[email protected]>
9737
9738         * infrun.c (stop_all_threads): If debug_infrun, always
9739         trace the wait status after wait_one, using
9740         target_waitstatus_to_string and target_pid_to_str.
9741         (handle_inferior_event): Replace various trace of
9742         wait status kind by a single trace.
9743         * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
9744         wait status kind image by target_waitstatus_to_string.
9745         * target/waitstatus.c (target_waitstatus_to_string): Fix
9746         obsolete comment.
9747
9748 2019-04-01  Tom Tromey  <[email protected]>
9749
9750         PR symtab/23331:
9751         * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
9752
9753 2019-04-01  Sergio Durigan Junior  <[email protected]>
9754             Pedro Alves  <[email protected]>
9755
9756         * top.c (quit_force): Call 'finalize_values'.
9757         * value.c (finalize_values): New function.
9758         * value.h (finalize_values): Declare.
9759
9760 2019-03-30  Eli Zaretskii  <[email protected]>
9761
9762         * NEWS: Announce $_gdb_major and $_gdb_minor.
9763
9764         * top.c (init_gdb_version_vars): New function.
9765         (gdb_init): Call init_gdb_version_vars.
9766
9767 2019-03-29  Tom Tromey  <[email protected]>
9768
9769         * printcmd.c (_initialize_printcmd): Add usage lines.  Update some
9770         help text.  Remove dead code.
9771
9772 2019-03-29  Keith Seitz  <[email protected]>
9773
9774         From Siddhesh Poyarekar:
9775         * f-lang.h (f77_get_upperbound): Return LONGEST.
9776         (f77_get_lowerbound): Likewise.
9777         * f-typeprint.c (f_type_print_varspec_suffix): Expand
9778         UPPER_BOUND and LOWER_BOUND to LONGEST.  Use plongest to format
9779         print them.
9780         (f_type_print_base): Expand UPPER_BOUND to LONGEST.  Use
9781         plongest to format print it.
9782         * f-valprint.c (f77_get_lowerbound): Return LONGEST.
9783         (f77_get_upperbound): Likewise.
9784         (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
9785         LOWER_BOUND to LONGEST.
9786         (f77_create_arrayprint_offset_tbl): Likewise.
9787
9788 2019-03-29  Keith Seitz  <[email protected]>
9789
9790         * ada-lang.c (ada_template_to_fixed_record_type_1): Use
9791         %s/pulongest for TYPE_LENGTH instead of %d in format
9792         strings.
9793         * ada-typerint.c (ada_print_type): Likewise.
9794         * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
9795         * compile/compile-c-support.c (generate_register_struct): Likewise.
9796         * gdbtypes.c (recursive_dump_type): Likewise.
9797         * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
9798         * m2-typeprint.c (m2_array):  Use %s/pulongest for TYPE_LENGTH
9799         instead of %d in format strings.
9800         * riscv-tdep.c (riscv_type_alignment): Cast second argument
9801         to std::min to ULONGEST.
9802         * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
9803         instead of %d in format strings.
9804         * tracepoint.c (info_scope_command): Likewise.
9805         * typeprint.c (print_offset_data::update)
9806         (print_offset_data::finish): Likewise.
9807         * xtensa-tdep.c (xtensa_store_return_value)
9808         (xtensa_push_dummy_call): Likewise.
9809
9810 2019-03-28  Jon Turney  <[email protected]>
9811
9812         * windows-nat.c (display_selector): Fixed format specifications
9813         for 64-bit Cygwin.
9814
9815 2019-03-28  Philippe Waroquiers  <[email protected]>
9816
9817         * infrun.c (follow_exec): Call target_terminal::ours_for_output.
9818
9819 2019-03-28  Sandra Loosemore  <[email protected]>
9820
9821         * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
9822         * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
9823         * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
9824         (nios2_linux_init_abi): Install it.
9825
9826 2019-03-28  Alan Hayward  <[email protected]>
9827
9828         * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
9829
9830 2019-03-28  Alan Hayward  <[email protected]>
9831
9832         * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
9833
9834 2019-03-24  Philippe Waroquiers  <[email protected]>
9835             Tom Tromey  <[email protected]>
9836
9837         * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
9838
9839 2019-03-26  Joel Brobecker  <[email protected]>
9840
9841         * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
9842         (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
9843         method to compute the bounds of range types. Also print "[evaluated]"
9844         if the bounds' values come from a dynamic evaluation.
9845
9846 2019-03-26  Andrew Burgess  <[email protected]>
9847
9848         * cp-valprint.c (cp_print_value_fields): Don't print trailing
9849         whitespace when pretty printing is on.
9850
9851 2019-03-26  Alan Hayward  <[email protected]>
9852
9853         * ppc-linux-nat.c: Add include.
9854
9855 2019-03-26  Alan Hayward  <[email protected]>
9856
9857         * NEWS: Mention AArch64 Pointer Authentication.
9858
9859 2019-03-26  Alan Hayward  <[email protected]>
9860
9861         * arm-linux-nat.c: Add include.
9862
9863 2019-03-25  Simon Marchi  <[email protected]>
9864
9865         * source-cache.c (source_cache::get_source_lines): Re-read
9866         fullname after calling open_source_file.
9867
9868 2019-03-25  John Baldwin  <[email protected]>
9869
9870         * NEWS: Mention TLS support for FreeBSD.
9871
9872 2019-03-25  Tom Tromey  <[email protected]>
9873
9874         * minsyms.c (BUNCH_SIZE): Update comment.
9875         (~minimal_symbol_reader): Remove old comment.
9876         (compact_minimal_symbols): Update comment.
9877         (minimal_symbol_reader::install): Remove old comment.  Update
9878         other comments.
9879
9880 2019-03-25  Alan Hayward  <[email protected]>
9881
9882         * s390-linux-nat.c: Add include.
9883
9884 2019-03-25  Alan Hayward  <[email protected]>
9885
9886         * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
9887         Call linux_get_hwcap.
9888         * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
9889         Likewise.
9890         (aarch64_linux_get_hwcap): Remove function.
9891         * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
9892         declaration.
9893         * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
9894         linux_get_hwcap.
9895         * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
9896         * linux-tdep.c (linux_get_hwcap): Add function.
9897         (linux_get_hwcap2): Likewise.
9898         * linux-tdep.h (linux_get_hwcap): Add declaration.
9899         (linux_get_hwcap2): Likewise.
9900         * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
9901         (ppc_linux_get_hwcap2): Likewise.
9902         (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
9903         linux_get_hwcap.
9904         (ppc_linux_nat_target::insert_watchpoint): Likewise.
9905         (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
9906         (ppc_linux_nat_target::read_description): Likewise.
9907         * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
9908         * s390-linux-nat.c: Likewise.
9909         * s390-linux-tdep.c (s390_core_read_description): Likewise.
9910
9911 2019-03-24  Tom Tromey  <[email protected]>
9912
9913         * ada-lang.c (standard_lookup): Simplify initialization.
9914         (ada_lookup_symbol_nonlocal): Simplify return.
9915         * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
9916         * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
9917         * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
9918         * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
9919         initialization.
9920         * solib.c (solib_global_lookup): Simplify.
9921         * symtab.c (null_block_symbol): Remove.
9922         (symbol_cache_lookup): Simplify returns.
9923         (lookup_language_this): Simplify returns.
9924         (lookup_symbol_aux): Simplify return.
9925         (lookup_local_symbol): Simplify returns.
9926         (lookup_global_symbol_from_objfile): Simplify return.
9927         (lookup_symbol_in_objfile_symtabs)
9928         (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
9929         (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
9930         (lookup_static_symbol, lookup_global_symbol): Simplify return.
9931         * cp-namespace.c (cp_lookup_bare_symbol)
9932         (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
9933         (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
9934         (cp_lookup_nested_symbol): Don't use null_block_symbol.
9935         (cp_lookup_symbol_via_imports): Simplify initialization.
9936         (find_symbol_in_baseclass): Likewise.
9937         * symtab.h (null_block_symbol): Remove.
9938         * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
9939         (d_lookup_nested_symbol, d_lookup_symbol_imports)
9940         (d_lookup_symbol_module): Likewise.
9941         (find_symbol_in_baseclass): Simplify initialization.
9942
9943 2019-03-24  Tom Tromey  <[email protected]>
9944
9945         * expression.h: Don't include symtab.h.
9946         (struct block): Forward declare.
9947
9948 2019-03-24  Tom Tromey  <[email protected]>
9949
9950         * c-exp.y (typebase): Remove casts.
9951         * gdbtypes.c (lookup_unsigned_typename, )
9952         (lookup_signed_typename): Remove cast.
9953         * eval.c (parse_to_comma_and_eval): Remove cast.
9954         * parse.c (write_dollar_variable): Remove cast.
9955         * block.h (struct block) <superblock>: Now const.
9956         * symfile-debug.c (debug_qf_map_matching_symbols): Update.
9957         * psymtab.c (psym_map_matching_symbols): Make "block" const.
9958         (map_block): Make "block" const.
9959         * symfile.h (struct quick_symbol_functions)
9960         <map_matching_symbols>: Constify block argument to "callback".
9961         * symtab.c (basic_lookup_transparent_type_quick): Make "block"
9962         const.
9963         (find_pc_sect_compunit_symtab): Make "b" const.
9964         (find_symbol_at_address): Likewise.
9965         (search_symbols): Likewise.
9966         * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
9967         (dw2_debug_names_lookup_symbol): Likewise.
9968         (dw2_map_matching_symbols): Update.
9969         * p-valprint.c (pascal_val_print): Remove "block".
9970         * ada-lang.c (ada_add_global_exceptions): Make "b" const.
9971         (aux_add_nonlocal_symbols): Make "block" const.
9972         (resolve_subexp): Remove cast.
9973         * linespec.c (iterate_over_all_matching_symtabs): Make "block"
9974         const.
9975         (iterate_over_file_blocks): Likewise.
9976         * f-exp.y (%union) <bval>: Remove.
9977         * coffread.c (patch_opaque_types): Make "b" const.
9978         * spu-tdep.c (spu_catch_start): Make "block" const.
9979         * c-valprint.c (print_unpacked_pointer): Remove "block".
9980         * symmisc.c (dump_symtab_1): Make "b" const.
9981         (block_depth): Make "block" const.
9982         * d-exp.y (%union) <bval>: Remove.
9983         * cp-support.h (cp_lookup_rtti_type): Update.
9984         * cp-support.c (cp_lookup_rtti_type): Make "block" const.
9985         * psymtab.c (psym_lookup_symbol): Make "block" const.
9986         (maintenance_check_psymtabs): Make "b" const.
9987         * python/py-framefilter.c (extract_sym): Make "sym_block" const.
9988         (enumerate_locals, enumerate_args): Update.
9989         * python/py-symtab.c (stpy_global_block): Make "block" const.
9990         (stpy_static_block): Likewise.
9991         * inline-frame.c (block_starting_point_at): Make "new_block"
9992         const.
9993         * block.c (find_block_in_blockvector): Make return type const.
9994         (blockvector_for_pc_sect): Make "b" const.
9995         (find_block_in_blockvector): Make "b" const.
9996
9997 2019-03-23  Tom Tromey  <[email protected]>
9998
9999         * varobj.c (varobj_create): Update.
10000         * symfile.c (clear_symtab_users): Don't reset innermost_block.
10001         * printcmd.c (display_command, do_one_display): Don't reset
10002         innermost_block.
10003         * parser-defs.h (enum innermost_block_tracker_type): Move to
10004         expression.h.
10005         (innermost_block): Update comment.
10006         * parse.c (parse_exp_1): Add tracker_types parameter.
10007         (parse_exp_in_context): Rename from parse_exp_in_context_1.  Add
10008         tracker_types parameter.  Reset innermost_block.
10009         (parse_exp_in_context): Remove.
10010         (parse_expression_for_completion): Update.
10011         * objfiles.c (~objfile): Don't reset expression_context_block or
10012         innermost_block.
10013         * expression.h (enum innermost_block_tracker_type): Move from
10014         parser-defs.h.
10015         (parse_exp_1): Add tracker_types parameter.
10016         * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
10017         reset innermost_block.
10018
10019 2019-03-23  Tom Tromey  <[email protected]>
10020
10021         * objfiles.h: Include bcache.h.
10022
10023 2019-03-23  Tom Tromey  <[email protected]>
10024
10025         * linespec.c (get_current_search_block): Use
10026         scoped_restore_current_language.
10027         * symmisc.c (dump_symtab): Use scoped_restore_current_language.
10028
10029 2019-03-22  Alan Hayward  <[email protected]>
10030             Jiong Wang  <[email protected]>
10031
10032         * aarch64-linux-tdep.c
10033         (aarch64_linux_iterate_over_regset_sections): Check for pauth
10034         section.
10035         * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
10036
10037 2019-03-22  Alan Hayward  <[email protected]>
10038             Jiong Wang  <[email protected]>
10039
10040         * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
10041         instructions.
10042         (aarch64_analyze_prologue_test): Add PACIASP test.
10043         (aarch64_prologue_prev_register): Unmask PC value.
10044
10045 2019-03-22  Alan Hayward  <[email protected]>
10046             Jiong Wang  <[email protected]>
10047
10048         * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
10049         (aarch64_dwarf2_prev_register): Unmask PC value.
10050         (aarch64_dwarf2_frame_init_reg): Init pauth registers.
10051         (aarch64_execute_dwarf_cfa_vendor_op): Check for
10052         DW_CFA_AARCH64_negate_ra_state.
10053         (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
10054
10055 2019-03-22  Alan Hayward  <[email protected]>
10056             Jiong Wang  <[email protected]>
10057
10058         * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
10059         registers.
10060         (aarch64_pseudo_register_name): Likewise.
10061         (aarch64_pseudo_register_type): Likewise.
10062         (aarch64_pseudo_register_reggroup_p): Likewise.
10063         (aarch64_gdbarch_init): Add pauth registers.
10064         * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
10065         (AARCH64_DWARF_PAUTH_DMASK): Likewise.
10066         (AARCH64_DWARF_PAUTH_CMASK): Likewise.
10067         (struct gdbarch_tdep): Add regnum for ra_state.
10068
10069 2019-03-22  Alan Hayward  <[email protected]>
10070             Jiong Wang  <[email protected]>
10071
10072         * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
10073
10074 2019-03-22  Alan Hayward  <[email protected]>
10075             Jiong Wang  <[email protected]>
10076
10077         * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
10078         function.
10079         (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
10080         * aarch64-tdep.c (aarch64_cannot_store_register): New function.
10081         (aarch64_gdbarch_init): Add puth registers.
10082         * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
10083         * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
10084         (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
10085
10086 2019-03-22  Alan Hayward  <[email protected]>
10087             Jiong Wang  <[email protected]>
10088
10089         * aarch64-linux-nat.c
10090         (aarch64_linux_nat_target::read_description): Read PACA hwcap.
10091         * aarch64-linux-tdep.c
10092         (aarch64_linux_core_read_description): Likewise.
10093         (aarch64_linux_get_hwcap): New function.
10094         * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
10095         (aarch64_linux_get_hwcap): New declaration.
10096
10097 2019-03-22  Alan Hayward  <[email protected]>
10098             Jiong Wang  <[email protected]>
10099
10100         * aarch64-linux-nat.c
10101         (aarch64_linux_nat_target::read_description): Add pauth param.
10102         * aarch64-linux-tdep.c
10103         (aarch64_linux_core_read_description): Likewise.
10104         * aarch64-tdep.c (struct target_desc): Add in pauth.
10105         (aarch64_read_description): Add pauth param.
10106         (aarch64_gdbarch_init): Likewise.
10107         * aarch64-tdep.h (aarch64_read_description): Likewise.
10108         * arch/aarch64.c (aarch64_create_target_description): Likewise.
10109         * arch/aarch64.h (aarch64_create_target_description): Likewise.
10110         * features/Makefile: Add new files.
10111         * features/aarch64-pauth.c: New file.
10112         * features/aarch64-pauth.xml: New file.
10113
10114 2019-03-20  Tom Tromey  <[email protected]>
10115
10116         * infrun.c (handle_inferior_event): Rename from
10117         handle_inferior_event_1.  Create a scoped_value_mark.
10118         (handle_inferior_event): Remove.
10119
10120 2019-03-19  Tom Tromey  <[email protected]>
10121
10122         * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
10123         * infrun.h (print_stop_event): Add "displays" parameter.
10124         * infrun.c (print_stop_event): Add "displays" parameter.
10125
10126 2019-03-19  Pedro Alves  <[email protected]>
10127
10128         * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
10129         (tui_ui_out::do_text): Add comments.  Reset M_LINE to 0 instead of
10130         to -1.  Fix TABs vs spaces.
10131         (tui_ui_out::tui_ui_out): Don't initialize fields here.
10132         * tui/tui-out.h (tui_ui_out) Add intro comments.
10133         <m_line, m_start_of_line>: In-class initialize, and add describing
10134         comment.
10135
10136 2019-03-18  Alan Hayward  <[email protected]>
10137
10138         * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
10139         variable names.
10140         (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
10141
10142 2019-03-18  Pedro Alves  <[email protected]>
10143             Eli Zaretskii <[email protected]>
10144
10145         * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
10146         m_line and m_start_of_line.
10147
10148 2019-03-18  Eli Zaretskii  <[email protected]>
10149
10150         * tui/tui-io.c (gdb_wgetch): Don't echo CR.
10151         (tui_getc): When gdb_wgetch returns a CR, behave the same as when
10152         it returns a newline.  This fixes a regression in TU mode, whereby
10153         the next line is output on the same screen line as the user input.
10154
10155 2019-03-18  Tom Tromey  <[email protected]>
10156
10157         * minsyms.c (minimal_symbol_reader::install): Remove call to
10158         obstack_blank.
10159
10160 2019-03-18  Pedro Alves  <[email protected]>
10161
10162         * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
10163         New globals.
10164         (apply_style): New, factored out from ...
10165         (apply_ansi_escape): ... this.  Handle reverse video mode.
10166         (tui_set_reverse_mode): New function.
10167         * tui/tui-io.h (tui_set_reverse_mode): New declaration.
10168         * tui/tui-winsource.c (tui_show_source_line): Use
10169         tui_set_reverse_mode instead of setting A_STANDOUT.
10170         * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
10171         New setter methods.
10172
10173 2019-03-18  Hannes Domani  <[email protected]>
10174
10175         * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
10176         Handle tabs.
10177
10178 2019-03-18  Tom Tromey  <[email protected]>
10179
10180         * ada-lang.c (empty_array): Add "high" parameter.
10181         (ada_evaluate_subexp): Update.
10182
10183 2019-03-17  Sergei Trofimovich <[email protected]>
10184
10185         * unittests/string_view-selftests.c: Define
10186         _initialize_string_view_selftests unconditionally.
10187
10188 2019-03-17  Vladimir Martyanov  <[email protected]>
10189
10190         PR gdb/24350
10191         * windows-nat.c (windows_make_so): Remove unused text_vma variable.
10192
10193 2019-03-17  Vladimir Martyanov  <[email protected]>
10194
10195         PR gdb/24351
10196         * windows-nat.c (display_selector): Fix format specifiers.
10197
10198 2019-03-17  Eli Zaretskii  <[email protected]>
10199
10200         * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
10201         tui_refill_source_window instead of tui_refresh_win, to update the
10202         current execution line.  This fixes redisplay of the current line
10203         when stepping through the code with "next" or "step".
10204
10205 2019-03-16  Eli Zaretskii  <[email protected]>
10206
10207         * source-cache.c (source_cache::get_source_lines): Call
10208         find_source_lines to initialize s->nlines.  This fixes vertical
10209         scrolling of TUI source window when the DOWN arrow is pressed.
10210
10211 2019-03-16  Philippe Waroquiers  <[email protected]>
10212
10213         * auto-load.c (_initialize_auto_load): Fix 'This options has'.
10214         linux-thread-db.c (_initialize_thread_db): Likewise.
10215
10216 2019-03-16  Eli Zaretskii  <[email protected]>
10217
10218         * tui/tui-winsource.c (tui_show_source_line): Revert "Use
10219         wclrtoeol in tui_show_source_line".  This reverts changes made in
10220         commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
10221
10222 2019-03-15  Tom Tromey  <[email protected]>
10223
10224         * symtab.h (struct minimal_symbol): Derive from
10225         general_symbol_info.
10226         (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
10227         (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10228         (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10229         (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10230         (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
10231         (MSYMBOL_SEARCH_NAME): Update.
10232         (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
10233         * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
10234         * minsyms.c (minimal_symbol_reader::record_full): Update.
10235
10236 2019-03-15  Tom Tromey  <[email protected]>
10237
10238         * minsyms.c (minimal_symbol_reader::install): Use memcpy.
10239
10240 2019-03-15  Tom Tromey  <[email protected]>
10241
10242         * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
10243         unique_xmalloc_ptr.
10244         (objfile::msymbols_range::begin, objfile::msymbols_range::end):
10245         Update.
10246         * minsyms.c (lookup_minimal_symbol_by_pc_section)
10247         (build_minimal_symbol_hash_tables)
10248         (minimal_symbol_reader::install): Update.
10249
10250 2019-03-15  Tom Tromey  <[email protected]>
10251
10252         * symtab.c (create_demangled_names_hash): Update.
10253         (symbol_set_names): Update.
10254         * objfiles.h (struct objfile_per_bfd_storage)
10255         <demangled_names_hash>: Now an htab_up.
10256         * objfiles.c (objfile_per_bfd_storage): Simplify.
10257
10258 2019-03-15  Tom Tromey  <[email protected]>
10259
10260         * objfiles.h (struct objfile_per_bfd_storage): Declare
10261         destructor.
10262         * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
10263         New.
10264         (get_objfile_bfd_data): Use new.  Don't initialize
10265         language_of_main.
10266         (free_objfile_per_bfd_storage): Remove.
10267         (objfile_bfd_data_free, objfile::~objfile): Use delete.
10268
10269 2019-03-15  Tom Tromey  <[email protected]>
10270
10271         * symfile.c (reread_symbols): Update.
10272         * objfiles.c (objfile::objfile): Update.
10273         * minsyms.h (terminate_minimal_symbol_table): Don't declare.
10274         * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
10275         comment.
10276         (minimal_symbol_reader::install): Update.
10277         (terminate_minimal_symbol_table): Remove.
10278         * jit.c (jit_object_close_impl): Update.
10279
10280 2019-03-15  Tom Tromey  <[email protected]>
10281
10282         * minsyms.c (minimal_symbol_reader::record_full): Remove some
10283         initializations.
10284
10285 2019-03-15  Tom Tromey  <[email protected]>
10286
10287         * objfiles.h (struct objfile_per_bfd_storage)
10288         <demangled_hash_languages>: Now a bitset.
10289         * minsyms.c (add_minsym_to_demangled_hash_table): Update.
10290         (lookup_minimal_symbol): Update.
10291
10292 2019-03-15  Tom Tromey  <[email protected]>
10293
10294         * minsyms.h (class minimal_symbol_reader) <record_with_info>:
10295         Don't return the symbol.
10296         * coffread.c (record_minimal_symbol): Use record_full.
10297
10298 2019-03-14  Eli Zaretskii  <[email protected]>
10299
10300         The MS-Windows port of ncurses fails to switch to a color pair if
10301         one or both of the colors are the implicit default colors.  This
10302         change records the default colors when TUI is initialized, and
10303         then specifies them explicitly when a color pair uses the default
10304         colors.  This allows color styling in TUI mode on MS-Windows.
10305
10306         * tui/tui-io.c [__MINGW32__]: Include windows.h.  Declare
10307         ncurses_norm_attr.
10308         (tui_initialize_io) [__MINGW32__]: Record the default terminal
10309         colors in ncurses_norm_attr.
10310         (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
10311         "none", replace it with the default color recorded in
10312         ncurses_norm_attr.
10313
10314 2019-03-14  Tom Tromey  <[email protected]>
10315
10316         * source-cache.h (class source_cache) <get_source_lines>: Return
10317         std::string.
10318         * source-cache.c (source_cache::extract_lines): Handle case where
10319         first_pos==npos.  Return std::string.
10320         (source_cache::get_source_lines): Update.
10321
10322 2019-03-14  Tom Tromey  <[email protected]>
10323
10324         * NEWS: Add item for "style sources" commands.
10325         * source-cache.c (source_cache::get_source_lines): Check
10326         source_styling.
10327         * cli/cli-style.c (source_styling): New global.
10328         (_initialize_cli_style): Add "style sources" commands.
10329         (show_style_sources): New function.
10330         * cli/cli-style.h (source_styling): Declare.
10331
10332 2019-03-14  Pedro Alves  <[email protected]>
10333             Tom Tromey  <[email protected]>
10334
10335         * tui/tui-winsource.h (tui_refill_source_window): Declare.
10336         * tui/tui-winsource.c (tui_refill_source_window): New function,
10337         from...
10338         (tui_horizontal_source_scroll): ... here.  Move some logic.
10339         * cli/cli-style.c (set_style_enabled): Notify new observable.
10340         * tui/tui-hooks.c (tui_redisplay_source): New function.
10341         (tui_attach_detach_observers): Attach or detach
10342         tui_redisplay_source.
10343         * observable.h (source_styling_changed): New observable.
10344         * observable.c: Define source_styling_changed observable.
10345
10346 2019-03-13  Tom Tromey  <[email protected]>
10347
10348         * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
10349         (i386_gnu_nat_target::store_registers): Update.
10350         * target-debug.h (target_debug_print_std_string): New macro.
10351         * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10352         * windows-tdep.c (display_one_tib): Update.
10353         * tui/tui-stack.c (tui_make_status_line): Update.
10354         * top.c (print_inferior_quit_action): Update.
10355         * thread.c (thr_try_catch_cmd): Update.
10356         (add_thread_with_info): Update.
10357         (thread_target_id_str): Update.
10358         (thr_try_catch_cmd): Update.
10359         (thread_command): Update.
10360         (thread_find_command): Update.
10361         * record-btrace.c (record_btrace_target::info_record)
10362         (record_btrace_resume_thread, record_btrace_target::resume)
10363         (record_btrace_cancel_resume, record_btrace_step_thread)
10364         (record_btrace_target::wait, record_btrace_target::wait)
10365         (record_btrace_target::wait, record_btrace_target::stop): Update.
10366         * progspace.c (print_program_space): Update.
10367         * process-stratum-target.c
10368         (process_stratum_target::thread_address_space): Update.
10369         * linux-fork.c (linux_fork_mourn_inferior)
10370         (detach_checkpoint_command, info_checkpoints_command)
10371         (linux_fork_context): Update.
10372         (linux_fork_detach): Update.
10373         (class scoped_switch_fork_info): Update.
10374         (delete_checkpoint_command): Update.
10375         * infrun.c (follow_fork_inferior): Update.
10376         (follow_fork_inferior): Update.
10377         (proceed_after_vfork_done): Update.
10378         (handle_vfork_child_exec_or_exit): Update.
10379         (follow_exec): Update.
10380         (displaced_step_prepare_throw): Update.
10381         (displaced_step_restore): Update.
10382         (start_step_over): Update.
10383         (resume_1): Update.
10384         (clear_proceed_status_thread): Update.
10385         (proceed): Update.
10386         (print_target_wait_results): Update.
10387         (do_target_wait): Update.
10388         (context_switch): Update.
10389         (stop_all_threads): Update.
10390         (restart_threads): Update.
10391         (finish_step_over): Update.
10392         (handle_signal_stop): Update.
10393         (switch_back_to_stepped_thread): Update.
10394         (keep_going_pass_signal): Update.
10395         (print_exited_reason): Update.
10396         (normal_stop): Update.
10397         * inferior.c (inferior_pid_to_str): Change return type.
10398         (print_selected_inferior): Update.
10399         (add_inferior): Update.
10400         (detach_inferior): Update.
10401         * dummy-frame.c (fprint_dummy_frames): Update.
10402         * dcache.c (dcache_info_1): Update.
10403         * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
10404         (btrace_fetch, btrace_clear): Update.
10405         * linux-tdep.c (linux_core_pid_to_str): Change return type.
10406         * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
10407         type.
10408         * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
10409         * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
10410         * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
10411         * gdbarch.c, gdbarch.h: Rebuild.
10412         * gdbarch.sh (core_pid_to_str): Change return type.
10413         * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
10414         return type.
10415         (windows_nat_target::pid_to_str): Change return type.
10416         (windows_delete_thread): Update.
10417         (windows_nat_target::attach): Update.
10418         (windows_nat_target::files_info): Update.
10419         * target-delegates.c: Rebuild.
10420         * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
10421         return type.
10422         (sol_thread_target::pid_to_str): Change return type.
10423         * remote.c (class remote_target) <pid_to_str>: Change return
10424         type.
10425         (remote_target::pid_to_str): Change return type.
10426         (extended_remote_target::attach, remote_target::remote_stop_ns)
10427         (remote_target::remote_notif_remove_queued_reply)
10428         (remote_target::push_stop_reply, remote_target::disable_btrace):
10429         Update.
10430         (extended_remote_target::attach): Update.
10431         * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
10432         type.
10433         (gdbsim_target::pid_to_str): Change return type.
10434         * ravenscar-thread.c (struct ravenscar_thread_target)
10435         <pid_to_str>: Change return type.
10436         (ravenscar_thread_target::pid_to_str): Change return type.
10437         * procfs.c (class procfs_target) <pid_to_str>: Change return
10438         type.
10439         (procfs_target::pid_to_str): Change return type.
10440         (procfs_target::attach): Update.
10441         (procfs_target::detach): Update.
10442         (procfs_target::fetch_registers): Update.
10443         (procfs_target::store_registers): Update.
10444         (procfs_target::wait): Update.
10445         (procfs_target::files_info): Update.
10446         * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
10447         * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
10448         return type.
10449         (nto_procfs_target::pid_to_str): Change return type.
10450         (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
10451         * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
10452         return type.
10453         * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
10454         (exit_lwp): Update.
10455         (attach_proc_task_lwp_callback, get_detach_signal)
10456         (detach_one_lwp, resume_lwp, linux_nat_target::resume)
10457         (linux_nat_target::resume, wait_lwp, stop_callback)
10458         (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
10459         (save_stop_reason, select_event_lwp, linux_nat_filter_event)
10460         (linux_nat_wait_1, resume_stopped_resumed_lwps)
10461         (linux_nat_target::wait, linux_nat_stop_lwp): Update.
10462         * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
10463         type.
10464         (inf_ptrace_target::attach): Update.
10465         (inf_ptrace_target::files_info): Update.
10466         * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
10467         type.
10468         (go32_nat_target::pid_to_str): Change return type.
10469         * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
10470         (gnu_nat_target::wait): Update.
10471         (gnu_nat_target::wait): Update.
10472         (gnu_nat_target::resume): Update.
10473         * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
10474         (fbsd_nat_target::wait): Update.
10475         * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
10476         type.
10477         (darwin_nat_target::attach): Update.
10478         * corelow.c (class core_target) <pid_to_str>: Change return type.
10479         (core_target::pid_to_str): Change return type.
10480         * target.c (normal_pid_to_str): Change return type.
10481         (default_pid_to_str): Likewise.
10482         (target_pid_to_str): Change return type.
10483         (target_translate_tls_address): Update.
10484         (target_announce_detach): Update.
10485         * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
10486         return type.
10487         (bsd_uthread_target::pid_to_str): Change return type.
10488         * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
10489         type.
10490         (bsd_kvm_target::pid_to_str): Change return type.
10491         * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
10492         return type.
10493         (aix_thread_target::pid_to_str): Change return type.
10494         * target.h (struct target_ops) <pid_to_str>: Change return type.
10495         (target_pid_to_str, normal_pid_to_str): Likewise.
10496         * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
10497         type.
10498         * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
10499         type.
10500         * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
10501         return type.
10502         * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
10503         type.
10504         * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
10505         type.
10506         * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
10507         return type.
10508
10509 2019-03-13  Simon Marchi  <[email protected]>
10510
10511         * NEWS: Mention that the new default MI version is 3.  Mention
10512         changes to the output of commands and events that deal with
10513         multi-location breakpoints.
10514         * breakpoint.c: Include "mi/mi-out.h".
10515         (print_one_breakpoint): Change output syntax if using MI version
10516         >= 3.
10517         * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
10518         New.
10519         (mi_multi_location_breakpoint_output_fixed): New.
10520         * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
10521         (mi_cmd_fix_multi_location_breakpoint_output): New.
10522         (mi_multi_location_breakpoint_output_fixed): New.
10523         * mi/mi-cmds.c (mi_cmds): Register command
10524         -fix-multi-location-breakpoint-output.
10525         * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
10526         interpreter "mi".
10527
10528 2019-03-13  Simon Marchi  <[email protected]>
10529
10530         * mi/mi-out.h (mi_out_new): Change parameter to const char *.
10531         * mi/mi-out.c (mi_out_new): Change parameter to const char *,
10532         instantiate mi_ui_out based on interpreter name.
10533         * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
10534         * mi/mi-main.c (mi_load_progress): Likewise.
10535
10536 2019-03-12  John Baldwin  <[email protected]>
10537
10538         * NEWS: Combine separate "New targets" sections for 8.3.
10539
10540 2019-03-12  John Baldwin  <[email protected]>
10541
10542         * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
10543         (ppcfbsd_init_abi): Install gdbarch
10544         "fetch_tls_load_module_address" and "get_thread_local_address"
10545         methods.
10546
10547 2019-03-12  John Baldwin  <[email protected]>
10548
10549         * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
10550         (riscv_fbsd_init_abi): Install gdbarch
10551         "fetch_tls_load_module_address" and "get_thread_local_address"
10552         methods.
10553
10554 2019-03-12  John Baldwin  <[email protected]>
10555
10556         * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
10557         (i386fbsd_init_abi): Install gdbarch
10558         "fetch_tls_load_module_address" and "get_thread_local_address"
10559         methods.
10560
10561 2019-03-12  John Baldwin  <[email protected]>
10562
10563         * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
10564         (amd64fbsd_init_abi): Install gdbarch
10565         "fetch_tls_load_module_address" and "get_thread_local_address"
10566         methods.
10567
10568 2019-03-12  John Baldwin  <[email protected]>
10569
10570         * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
10571         (struct fbsd_pspace_data): New type.
10572         (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
10573         (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
10574         (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
10575         (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
10576         * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
10577
10578 2019-03-12  John Baldwin  <[email protected]>
10579
10580         * gdbtypes.c (lookup_struct_elt): New function.
10581         (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
10582         * gdbtypes.h (struct struct_elt): New type.
10583         (lookup_struct_elt): New prototype.
10584
10585 2019-03-12  John Baldwin  <[email protected]>
10586
10587         * gdbtypes.c (lookup_struct_elt_type): Update comment and
10588         remove disabled code block.
10589
10590 2019-03-12  John Baldwin  <[email protected]>
10591
10592         * gdbarch.sh (get_thread_local_address): New method.
10593         * gdbarch.h, gdbarch.c: Regenerate.
10594         * target.c (target_translate_tls_address): Use
10595         gdbarch_get_thread_local_address if present instead of
10596         target::get_thread_local_address.
10597
10598 2019-03-12  John Baldwin  <[email protected]>
10599
10600         * target.h (target::get_thread_local_address): Update comment.
10601
10602 2019-03-12  John Baldwin  <[email protected]>
10603
10604         * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
10605         objfile->separate_debug_objfile_backlink if not NULL.
10606
10607 2019-03-12  John Baldwin  <[email protected]>
10608
10609         * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
10610         tdep->fsbase_regnum instead of constants for fs_base and gs_base.
10611         (amd64bsd_store_inferior_registers): Likewise.
10612         * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
10613         Enable segment base registers.
10614         * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
10615         PT_GETFSBASE and PT_GETGSBASE.
10616         (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
10617         PT_SETGSBASE.
10618         * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
10619         segment base registers.
10620         * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
10621
10622 2019-03-12  John Baldwin  <[email protected]>
10623
10624         * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
10625         Update calls to i386_target_description to add 'segments'
10626         parameter.
10627         * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum.  Don't
10628         add segment base registers.
10629         * arch/i386.c (i386_create_target_description): Add 'segments'
10630         parameter to enable segment base registers.
10631         * arch/i386.h (i386_create_target_description): Likewise.
10632         * features/i386/32bit-segments.xml: New file.
10633         * features/i386/32bit-segments.c: Generate.
10634         * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
10635         call to i386_target_description to add 'segments' parameter.
10636         * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
10637         * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
10638         * i386-linux-tdep.c (i386_linux_read_description): Likewise.
10639         * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
10640         if feature is present.
10641         (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
10642         Add 'segments' parameter to call to i386_target_description.
10643         (i386_target_description): Add 'segments' parameter to enable
10644         segment base registers.
10645         (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
10646         to call to i386_target_description.
10647         * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
10648         (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
10649         Define I386_NUM_REGS.
10650         (i386_target_description): Add 'segments' parameter to enable
10651         segment base registers.
10652
10653 2019-03-12  Eli Zaretskii  <[email protected]>
10654
10655         PR/24325
10656         * source-cache.c: #undef open and close, to avoid unresolved
10657         externals during linking.
10658
10659 2019-03-12  Tom Tromey  <[email protected]>
10660
10661         * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
10662         const.  Add initializers.
10663         (_initialize_remote): Don't initialize ptid globals.
10664
10665 2019-03-12  Pedro Alves  <[email protected]>
10666
10667         * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
10668
10669 2019-03-12  Pedro Alves  <[email protected]>
10670
10671         * cp-name-parser.y (main): Remove unused 'len' variable.
10672
10673 2019-03-12  Tom Tromey  <[email protected]>
10674
10675         * common/ptid.c (null_ptid, minus_one_ptid): Now const.
10676         * common/ptid.h (null_ptid, minus_one_ptid): Now const.
10677
10678 2019-03-12  Tom Tromey  <[email protected]>
10679
10680         * linux-nat.c (iterate_over_lwps): Update.
10681         (stop_callback): Remove parameter.
10682         (stop_wait_callback, detach_callback, resume_set_callback)
10683         (select_singlestep_lwp_callback, set_ignore_sigint)
10684         (status_callback, resumed_callback, resume_clear_callback)
10685         (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
10686         data parameter.
10687         (linux_nat_target::detach, linux_nat_target::resume)
10688         (linux_stop_and_wait_all_lwps, select_event_lwp)
10689         (linux_nat_filter_event, linux_nat_wait_1)
10690         (linux_nat_target::kill, linux_nat_target::stop)
10691         (linux_nat_target::stop): Update.
10692         (linux_nat_resume_callback): Change type.
10693         (resume_stopped_resumed_lwps, count_events_callback)
10694         (select_event_lwp_callback): Likewise.
10695         (linux_stop_lwp, linux_nat_stop_lwp): Update.
10696         * arm-linux-nat.c (struct update_registers_data): Remove.
10697         (update_registers_callback): Change type.
10698         (arm_linux_insert_hw_breakpoint1): Update.
10699         * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
10700         parameter.
10701         (x86_linux_dr_set_addr): Update.
10702         (x86_linux_dr_set_control): Update.
10703         * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
10704         (iterate_over_lwps): Use gdb::function_view.
10705         * nat/aarch64-linux-hw-point.c (struct
10706         aarch64_dr_update_callback_param): Remove.
10707         (debug_reg_change_callback): Change type.
10708         (aarch64_notify_debug_reg_change): Update.
10709         * s390-linux-nat.c (s390_refresh_per_info): Update.
10710
10711 2019-03-11  Tom Tromey  <[email protected]>
10712
10713         * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
10714         redundant assignment to "this_cu".
10715
10716 2019-03-08  Simon Marchi  <[email protected]>
10717
10718         * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
10719
10720 2019-03-08  Simon Marchi  <[email protected]>
10721
10722         * gdbtypes.c (rank_one_type_parm_set): New function extracted
10723         from...
10724         (rank_one_type): ... this.
10725
10726 2019-03-08  Simon Marchi  <[email protected]>
10727
10728         * gdbtypes.c (rank_one_type_parm_struct): New function extracted
10729         from...
10730         (rank_one_type): ... this.
10731
10732 2019-03-08  Simon Marchi  <[email protected]>
10733
10734         * gdbtypes.c (rank_one_type_parm_complex): New function extracted
10735         from...
10736         (rank_one_type): ... this.
10737
10738 2019-03-08  Simon Marchi  <[email protected]>
10739
10740         * gdbtypes.c (rank_one_type_parm_float): New function extracted
10741         from...
10742         (rank_one_type): ... this.
10743
10744 2019-03-08  Simon Marchi  <[email protected]>
10745
10746         * gdbtypes.c (rank_one_type_parm_bool): New function extracted
10747         from...
10748         (rank_one_type): ... this.
10749
10750 2019-03-08  Simon Marchi  <[email protected]>
10751
10752         * gdbtypes.c (rank_one_type_parm_range): New function extracted
10753         from...
10754         (rank_one_type): ... this.
10755
10756 2019-03-08  Simon Marchi  <[email protected]>
10757
10758         * gdbtypes.c (rank_one_type_parm_char): New function extracted
10759         from...
10760         (rank_one_type): ... this.
10761
10762 2019-03-08  Simon Marchi  <[email protected]>
10763
10764         * gdbtypes.c (rank_one_type_parm_enum): New function extracted
10765         from...
10766         (rank_one_type): ... this.
10767
10768 2019-03-08  Simon Marchi  <[email protected]>
10769
10770         * gdbtypes.c (rank_one_type_parm_int): New function extracted
10771         from...
10772         (rank_one_type): ... this.
10773
10774 2019-03-08  Simon Marchi  <[email protected]>
10775
10776         * gdbtypes.c (rank_one_type_parm_func): New function extracted
10777         from...
10778         (rank_one_type): ... this.
10779
10780 2019-03-08  Simon Marchi  <[email protected]>
10781
10782         * gdbtypes.c (rank_one_type_parm_array): New function extracted
10783         from...
10784         (rank_one_type): ... this.
10785
10786 2019-03-08  Simon Marchi  <[email protected]>
10787
10788         * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
10789         from...
10790         (rank_one_type): ... this.
10791
10792 2019-02-27  Philippe Waroquiers  <[email protected]>
10793
10794         * inferior.c (initialize_inferiors): Ensure 'help set/show print
10795         inferior-events' shows the example events.
10796
10797 2019-03-08  Eli Zaretskii  <[email protected]>
10798
10799         Support styling on native MS-Windows console
10800
10801         PR/24315
10802         * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
10803         on MS-Windows if $TERM is not defined.
10804
10805         * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
10806
10807         * posix-hdep.c (gdb_console_fputs):
10808         * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
10809         functions.
10810         * ui-file.h (gdb_console_fputs): Add prototype.
10811
10812         * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
10813         back to fputs only if the former returns zero.
10814
10815 2019-03-07  Tom Tromey  <[email protected]>
10816
10817         * symmisc.c (print_symbol_bcache_statistics): Update.
10818         (print_objfile_statistics): Update.
10819         * symfile.c (allocate_symtab): Update.
10820         * stabsread.c: Don't include bcache.h.
10821         * psymtab.h (struct psymbol_bcache): Don't declare.
10822         (class psymtab_storage) <psymbol_cache>: Now a bcache.
10823         (psymbol_bcache_init, psymbol_bcache_free)
10824         (psymbol_bcache_get_bcache): Don't declare.
10825         * psymtab.c (struct psymbol_bcache): Remove.
10826         (psymtab_storage::psymtab_storage): Update.
10827         (psymtab_storage::~psymtab_storage): Update.
10828         (psymbol_bcache_init, psymbol_bcache_free)
10829         (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
10830         (add_psymbol_to_bcache): Update.
10831         (allocate_psymtab): Update.
10832         * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10833         macro_cache>: No longer pointers.
10834         * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
10835         (free_objfile_per_bfd_storage): Don't call bcache_xfree.
10836         * macrotab.c (macro_bcache): Update.
10837         * macroexp.c: Don't include bcache.h.
10838         * gdbtypes.c (check_types_worklist): Update.
10839         (types_deeply_equal): Remove TRY/CATCH.  Update.
10840         * elfread.c (elf_symtab_read): Update.
10841         * dwarf2read.c: Don't include bcache.h.
10842         * buildsym.c (buildsym_compunit::get_macro_table): Update.
10843         * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
10844         (print_bcache_statistics, bcache_memory_used): Don't declare.
10845         (struct bcache): Move from bcache.c.  Add constructor, destructor,
10846         methods.  Rename all data members.
10847         * bcache.c (struct bcache): Move to bcache.h.
10848         (bcache::expand_hash_table): Rename from expand_hash_table.
10849         (bcache): Remove.
10850         (bcache::insert): Rename from bcache_full.
10851         (bcache::compare): Rename from bcache_compare.
10852         (bcache_xmalloc): Remove.
10853         (bcache::~bcache): Rename from bcache_xfree.
10854         (bcache::print_statistics): Rename from print_bcache_statistics.
10855         (bcache::memory_used): Rename from bcache_memory_used.
10856
10857 2019-03-07  Pedro Alves  <[email protected]>
10858
10859         * infrun.c (normal_stop): Also check for
10860         TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
10861
10862 2019-03-07  Andrew Burgess  <[email protected]>
10863
10864         * f-lang.c (value_from_host_double): Moved to...
10865         * value.c (value_from_host_double): ...here.
10866         * value.h (value_from_host_double): Declare.
10867         * guile/scm-math.c (vlscm_convert_typed_number): Use
10868         value_from_host_double.
10869         (vlscm_convert_number): Likewise.
10870         * guile/scm-value.c (gdbscm_value_to_real): Likewise.
10871         * python/py-value.c (convert_value_from_python): Likewise.
10872
10873 2019-03-06  Tom Tromey  <[email protected]>
10874
10875         * gcore.c (write_gcore_file): Use SCOPE_EXIT.
10876
10877 2019-03-06  Tom Tromey  <[email protected]>
10878
10879         * utils.h (free_current_contents): Don't declare.
10880         * utils.c (free_current_contents): Remove.
10881
10882 2019-03-06  Tom Tromey  <[email protected]>
10883
10884         * top.c (quit_force): Update.
10885         * main.c (captured_command_loop): Update.
10886         * common/new-op.c (operator new): Update.
10887         * common/common-exceptions.c (struct catcher)
10888         <save_cleanup_chain>: Remove member.
10889         (exceptions_state_mc_init): Update.
10890         (exception_try_scope_entry): Return nullptr.
10891         (exception_try_scope_exit, exception_rethrow)
10892         (throw_exception_sjlj, throw_exception_cxx): Update.
10893         * common/cleanups.h (make_cleanup, make_cleanup_dtor)
10894         (all_cleanups, do_cleanups, discard_cleanups)
10895         (discard_final_cleanups, save_cleanups, save_final_cleanups)
10896         (restore_cleanups, restore_final_cleanups): Don't declare.
10897         (do_final_cleanups): Remove parameter.
10898         * common/cleanups.c (cleanup_chain, make_cleanup)
10899         (make_cleanup_dtor, all_cleanups, do_cleanups)
10900         (discard_my_cleanups, discard_cleanups)
10901         (discard_final_cleanups, save_my_cleanups, save_cleanups)
10902         (save_final_cleanups, restore_my_cleanups, restore_cleanups)
10903         (null_cleanup): Remove.
10904         (do_final_cleanups): Remove parameter.
10905
10906 2019-03-06  Tom Tromey  <[email protected]>
10907
10908         * remote.c (remote_target::remote_parse_stop_reply): Use
10909         unique_xmalloc_ptr.
10910
10911 2019-03-06  Tom Tromey  <[email protected]>
10912
10913         * stabsread.c (struct stabs_field_info): Rename from field_info.
10914         <list, fnlist>: Add initializers.
10915         <obstack>: New member.
10916         (read_member_functions, read_struct_fields, read_baseclasses):
10917         Allocate on obstack.  Don't use cleanups.
10918         (read_one_struct_field, read_member_functions, read_struct_fields)
10919         (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
10920         (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
10921         (read_struct_type): Update.
10922
10923 2019-03-06  Tom Tromey  <[email protected]>
10924
10925         * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
10926         * common/filestuff.h (make_cleanup_close): Don't declare.
10927         * common/filestuff.c (do_close_cleanup, make_cleanup_close):
10928         Remove.
10929
10930 2019-03-06  Tom Tromey  <[email protected]>
10931
10932         * solib-aix.c: Use make_scope_exit.
10933
10934 2019-03-06  Tom Tromey  <[email protected]>
10935
10936         * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
10937         Use make_scope_exit.
10938
10939 2019-03-06  Tom Tromey  <[email protected]>
10940
10941         * solib-svr4.c (disable_probes_interface): Remove parameter.
10942         (svr4_handle_solib_event): Use make_scope_exit.
10943
10944 2019-03-06  Tom Tromey  <[email protected]>
10945
10946         * remote.c (struct stop_reply_deleter): Remove.
10947         (stop_reply_up): Update.
10948         (struct stop_reply): Derive from notif_event.  Don't typedef.
10949         <regcache>: Now a std::vector.
10950         (stop_reply_xfree): Remove.
10951         (stop_reply::~stop_reply): Rename from stop_reply_dtr.
10952         (remote_notif_stop_alloc_reply): Return a unique_ptr.  Use new.
10953         (remote_target::discard_pending_stop_replies): Use delete.
10954         (remote_target::remote_parse_stop_reply): Update.
10955         (remote_target::process_stop_reply): Update.
10956         * remote-notif.h (struct notif_event): Add virtual destructor.
10957         Remove "dtr" member.
10958         (struct notif_client) <alloc_event>: Return a unique_ptr.
10959         (notif_event_xfree): Don't declare.
10960         (notif_event_up): New typedef.
10961         * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
10962         (notif_event_xfree, do_notif_event_xfree): Remove.
10963         (remote_notif_state_xfree): Update.
10964
10965 2019-03-06  Tom Tromey  <[email protected]>
10966
10967         * infrun.c (displaced_step_clear_cleanup): Now a
10968         forward_scope_exit type.
10969         (displaced_step_prepare_throw): Update.
10970         (displaced_step_fixup): Update.
10971
10972 2019-03-06  Tom Tromey  <[email protected]>
10973
10974         * inferior.h (class inferior): Update comment.
10975         * gdbthread.h (class thread_info): Update comment.
10976
10977 2019-03-06  Joel Brobecker  <[email protected]>
10978             Tom Tromey  <[email protected]>
10979
10980         * stabsread.h (struct stab_section_list): Remove.
10981         (coffstab_build_psymtabs): Update.
10982         * dbxread.c (symbuf_sections): Now a std::vector.
10983         (sect_idx): New global.
10984         (fill_symbuf): Update.
10985         (coffstab_build_psymtabs): Change type of stabsects parameter.
10986         Update.
10987         * coffread.c (struct coff_symfile_info) <stabsects>: Now a
10988         std::vector.
10989         (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
10990         (coff_locate_sections): Update.
10991         (coff_symfile_read): Remove cleanups.  Update.
10992         (init_stringtab): Add storage parameter.
10993         (free_stringtab, free_stringtab_cleanup): Remove.
10994         (init_lineno): Add storage parameter.
10995         (free_linetab, free_linetab_cleanup): Remove.
10996
10997 2019-03-06  Pedro Alves  <[email protected]>
10998
10999         * linux-fork.c (fork_info::clobber_regs): Delete.
11000         (fork_load_infrun_state): Remove reference to 'clobber_regs'.
11001         (fork_save_infrun_state): Remove 'clobber_regs' parameter.  Update
11002         comment.  Adjust.
11003         (scoped_switch_fork_info::scoped_switch_fork_info)
11004         (checkpoint_command, linux_fork_context): Adjust
11005         fork_save_infrun_state calls.
11006
11007 2019-03-06  Pedro Alves  <[email protected]>
11008
11009         * linux-fork.c (inf_has_multiple_thread_cb): Delete.
11010         (inf_has_multiple_threads): Return 'bool' and rewrite using
11011         inferior_info::threads().
11012
11013 2019-03-06  Pedro Alves  <[email protected]>
11014
11015         * linux-fork.c: Include <list>.
11016         (fork_list): Now a std::list instance.
11017         (fork_info): Add ctor, dtor, and in-class initialize all fields.
11018         (forks_exist_p, find_last_fork): Adjust.
11019         (new_fork): Delete.
11020         (one_fork_p): New.
11021         (add_fork): Adjust.
11022         (free_fork): Delete, folded into fork_info::~fork_info().
11023         (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
11024         Adjust.
11025         (init_fork_list): Delete.
11026         (linux_fork_killall, linux_fork_mourn_inferior)
11027         (linux_fork_detach, info_checkpoints_command): Adjust.
11028         (_initialize_linux_fork): No longer call init_fork_list.
11029
11030 2019-03-06  Pedro Alves  <[email protected]>
11031
11032         * linux-fork.c (new_fork): New, split out of ...
11033         (add_fork): ... this.  Return void.  Move "first fork" special
11034         case from here, to ...
11035         (checkpoint_command): ... here.
11036         * linux-linux.h (add_fork): Return void.
11037
11038 2019-03-06  Andrew Burgess  <[email protected]>
11039
11040         * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
11041
11042 2019-03-06  Andrew Burgess  <[email protected]>
11043             Chris January  <[email protected]>
11044             David Lecomber  <[email protected]>
11045
11046         * f-exp.y: New token, UNOP_INTRINSIC.
11047         (exp): New pattern using UNOP_INTRINSIC token.
11048         (f77_keywords): Add 'abs' keyword.
11049         * f-lang.c: Add 'target-float.h' and 'math.h' includes.
11050         (value_from_host_double): New function.
11051         (evaluate_subexp_f): Support UNOP_ABS.
11052
11053 2019-03-06  Andrew Burgess  <[email protected]>
11054
11055         * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
11056         types.
11057
11058 2019-03-06  Andrew Burgess  <[email protected]>
11059
11060         * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
11061         * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
11062         * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
11063
11064 2019-03-06  Andrew Burgess  <[email protected]>
11065
11066         * f-exp.y (convert_to_kind_type): Handle more type kinds.
11067
11068 2019-03-06  Andrew Burgess  <[email protected]>
11069             Chris January  <[email protected]>
11070
11071         * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
11072         * f-exp.y: Define 'KIND' token.
11073         (exp): New pattern for KIND expressions.
11074         (ptype): Handle types with a kind extension.
11075         (direct_abs_decl): Extend to spot kind extensions.
11076         (f77_keywords): Add 'kind' to the list.
11077         (push_kind_type): New function.
11078         (convert_to_kind_type): New function.
11079         * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
11080         * parse.c (operator_length_standard): Likewise.
11081         * parser-defs.h (enum type_pieces): Add tp_kind.
11082         * std-operator.def: Add UNOP_KIND.
11083
11084 2019-03-06  Andrew Burgess  <[email protected]>
11085
11086         * f-exp.y (f_parse): Set yydebug.
11087
11088 2019-03-06  Andrew Burgess  <[email protected]>
11089
11090         * f-lang.c (evaluate_subexp_f): New function.
11091         (exp_descriptor_f): New global.
11092         (f_language_defn): Use exp_descriptor_f instead of
11093         exp_descriptor_standard.
11094
11095 2019-03-06  Andrew Burgess  <[email protected]>
11096
11097         * f-exp.y (struct token): Add comments.
11098         (dot_ops): Remove uppercase versions and the end marker.
11099         (f77_keywords): Likewise.
11100         (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
11101         entries in the dot_ops array are case insensitive, and use
11102         strncasecmp to compare strings.  Also some whitespace cleanup in
11103         this area.  Similar for the f77_keywords array, except entries in
11104         this list might be case sensitive.
11105
11106 2019-03-06  Andrew Burgess  <[email protected]>
11107
11108         * f-exp.y (struct f77_boolean_val): Add comments.
11109         (boolean_values): Remove uppercase versions, and end marker.
11110         (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
11111         and use strncasecmp to achieve case insensitivity.  Additionally,
11112         perform whitespace cleanup around this code.
11113
11114 2019-03-06  Tom Tromey  <[email protected]>
11115
11116         * remote-sim.c (gdbsim_target_open): Use result of
11117         gdb_argv::release.
11118
11119 2019-03-06  Richard Bunt  <[email protected]>
11120         Dirk Schubert  <[email protected]>
11121         Chris January  <[email protected]>
11122
11123         * eval.c (evaluate_subexp_standard): Call Fortran argument
11124         wrapping logic.
11125         * f-lang.c (struct value): A value which can be passed into a
11126         Fortran function call.
11127         (fortran_argument_convert): Wrap Fortran arguments in a pointer
11128         where appropriate.
11129         (struct type): Value ready for a Fortran function call.
11130         (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
11131         is needed.
11132         * f-lang.h (fortran_argument_convert): Declaration.
11133         (fortran_preserve_arg_pointer): Declaration.
11134         * infcall.c (value_arg_coerce): Call Fortran argument logic.
11135
11136 2019-03-05  Tom Tromey  <[email protected]>
11137
11138         * python/py-prettyprint.c (print_string_repr): Remove #if.
11139         * python/py-utils.c (unicode_to_encoded_string): Remove #if.
11140
11141 2019-03-05  Tom Tromey  <[email protected]>
11142
11143         * target.c (the_dummy_target): Move later.  Change type to
11144         "dummy_target".
11145         (initialize_targets): Don't initialize the_dummy_target.
11146
11147 2019-03-05  Tom Tromey  <[email protected]>
11148
11149         * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
11150         * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
11151
11152 2019-03-05  Tom Tromey  <[email protected]>
11153
11154         * windows-nat.c (windows_nat_target::attach)
11155         (windows_nat_target::detach): Don't call gdb_flush.
11156         * valprint.c (generic_val_print, val_print, val_print_string):
11157         Don't call gdb_flush.
11158         * utils.c (defaulted_query): Don't call gdb_flush.
11159         * typeprint.c (print_type_scalar): Don't call gdb_flush.
11160         * target.c (target_announce_detach): Don't call gdb_flush.
11161         * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
11162         * remote.c (extended_remote_target::attach): Don't call
11163         gdb_flush.
11164         * procfs.c (procfs_target::detach): Don't call gdb_flush.
11165         * printcmd.c (do_examine): Don't call gdb_flush.
11166         (info_display_command): Don't call gdb_flush.
11167         * p-valprint.c (pascal_val_print): Don't call gdb_flush.
11168         * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
11169         * memattr.c (info_mem_command): Don't call gdb_flush.
11170         * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
11171         * m2-valprint.c (m2_val_print): Don't call gdb_flush.
11172         * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
11173         * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
11174         * hppa-tdep.c (unwind_command): Don't call gdb_flush.
11175         * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
11176         (gnu_nat_target::detach): Don't call gdb_flush.
11177         * f-valprint.c (f_val_print): Don't call gdb_flush.
11178         * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
11179         * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
11180         * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
11181         gdb_flush.
11182         * c-valprint.c (c_val_print): Don't call gdb_flush.
11183         * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
11184
11185 2019-03-05  Tom Tromey  <[email protected]>
11186
11187         * varobj.c (update_dynamic_varobj_children): Update.
11188         (install_default_visualizer): Use reset, not release.
11189         * value.c (set_internalvar): Update.
11190         * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
11191         * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
11192         ATTRIBUTE_UNUSED_RESULT.
11193
11194 2019-03-05  Tom Tromey  <[email protected]>
11195
11196         * remote.c (class scoped_remote_fd) <release>: Add
11197         ATTRIBUTE_UNUSED_RESULT.
11198
11199 2019-03-05  Tom Tromey  <[email protected]>
11200
11201         * macroexp.c (struct macro_buffer) <release>: Add
11202         ATTRIBUTE_UNUSED_RESULT.
11203
11204 2019-03-05  Tom Tromey  <[email protected]>
11205
11206         * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
11207         * common/scoped_mmap.h (class scoped_mmap) <release>: Add
11208         ATTRIBUTE_UNUSED_RESULT.
11209
11210 2019-03-05  Tom Tromey  <[email protected]>
11211
11212         * common/scoped_fd.h (class scoped_fd) <release>: Add
11213         ATTRIBUTE_UNUSED_RESULT.
11214
11215 2019-03-05  Tom Tromey  <[email protected]>
11216
11217         * parser-defs.h (struct parser_state) <release>: Add
11218         ATTRIBUTE_UNUSED_RESULT.
11219
11220 2019-03-05  Tom Tromey  <[email protected]>
11221
11222         * utils.h (class gdb_argv) <release>: Add
11223         ATTRIBUTE_UNUSED_RESULT.
11224         * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
11225
11226 2019-03-02  Eli Zaretskii  <[email protected]>
11227
11228         * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
11229         for-loop range, to avoid compiler warnings.
11230
11231         * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
11232         avoid compiler warnings about unused variables.
11233
11234         * NEWS: Mention end of support for native debugging on MS-Windows
11235         before XP.
11236
11237         PR gdb/24292
11238         * common/netstuff.c:
11239         * gdbserver/gdbreplay.c
11240         * gdbserver/remote-utils.c:
11241         * ser-tcp.c:
11242         * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
11243         Include ws2tcpip.h instead of wsiapi.h and winsock2.h.  Redefine
11244         _WIN32_WINNT to 0x0501 if defined to a smaller value, as
11245         'getaddrinfo' and 'freeaddrinfo' were not available before
11246         Windows XP, and mingw.org's MinGW headers by default define
11247         _WIN32_WINNT to 0x500.
11248
11249 2019-03-01  Gary Benson <[email protected]>
11250
11251         * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
11252
11253 2019-02-28  Brian Vandenberg  <[email protected]>
11254             Rainer Orth  <[email protected]>
11255
11256         PR gdb/8527
11257         * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
11258         set_sigint_trap, clear_sigint_trap.
11259
11260 2019-02-27  Philippe Waroquiers  <[email protected]>
11261
11262         * target.c (target_detach): Clear the regcache and the
11263         frame cache.
11264
11265 2019-02-27  Pedro Alves  <[email protected]>
11266
11267         * utils.c (set_screen_size): When we cap the height/width sizes,
11268         tweak the corresponding command variable to show "unlimited":
11269
11270 2019-02-27  Saagar Jha  <[email protected]>
11271             Pedro Alves  <[email protected]>
11272
11273         * utils.c (set_screen_size): Reduce "infinite" rows and columns
11274         before calling rl_set_screen_size.
11275
11276 2019-02-27  Tom Tromey  <[email protected]>
11277
11278         * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
11279         define.
11280         * python/py-value.c: Remove Python 2.4 workaround.
11281         * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
11282         workaround.
11283         * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
11284         Python 2.4 workaround.
11285         * python/python-internal.h: Remove Python 2.4 comment.
11286         (Py_ssize_t): Don't define.
11287         (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
11288         (gdb_Py_DECREF): Remove Python 2.4 workaround.
11289         (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
11290         (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
11291         * python/python.c (do_start_initialization): Remove Python 2.4
11292         workaround.
11293         * python/py-prettyprint.c (class dummy_python_frame): Remove.
11294         (print_children): Remove Python 2.4 workaround.
11295         * python/py-inferior.c (buffer_procs): Remove Python 2.4
11296         workaround.
11297         (CHARBUFFERPROC_NAME): Remove.
11298         * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
11299         Python 2.4 workaround.
11300
11301 2019-02-27  Kevin Buettner  <[email protected]>
11302
11303         * NEWS: Note minimum Python version.
11304
11305 2019-02-27  Kevin Buettner  <[email protected]>
11306
11307         * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
11308         code from these functions.  Remove corresponding ifdefs.  Use
11309         Py_buffer_up instead of explicit calls to PyBuffer_Release.
11310         Remove gotos and target of gotos.
11311         (infpy_search_memory): Likewise.
11312
11313 2019-02-27  Andrew Burgess  <[email protected]>
11314
11315         * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
11316         (hppa_gdbarch_init): Don't register deleted functions with
11317         gdbarch.
11318
11319 2019-02-27  Andrew Burgess  <[email protected]>
11320
11321         * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
11322         (h8300_unwind_sp): Delete.
11323         (h8300_dummy_id): Delete.
11324         (h8300_gdbarch_init): Don't register deleted functions with
11325         gdbarch.
11326
11327 2019-02-27  Andrew Burgess  <[email protected]>
11328
11329         * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
11330         (ft32_unwind_pc): Delete.
11331         (ft32_unwind_sp): Delete.
11332         (ft32_gdbarch_init): Don't register deleted functions with
11333         gdbarch.
11334
11335 2019-02-27  Andrew Burgess  <[email protected]>
11336
11337         * gdb/frv-tdep.c (frv_dummy_id): Delete.
11338         (frv_unwind_pc): Delete.
11339         (frv_unwind_sp): Delete.
11340         (frv_gdbarch_init): Don't register deleted functions with
11341         gdbarch.
11342
11343 2019-02-27  Andrew Burgess  <[email protected]>
11344
11345         * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
11346         (riscv_unwind_pc): Delete.
11347         (riscv_unwind_sp): Delete.
11348         (riscv_gdbarch_init): Don't register deleted functions with
11349         gdbarch.
11350
11351 2019-02-27  Andrew Burgess  <[email protected]>
11352
11353         * gdb/csky-tdep.c (csky_dummy_id): Delete.
11354         (csky_unwind_pc): Delete.
11355         (csky_unwind_sp): Delete.
11356         (csky_gdbarch_init): Don't register deleted functions with
11357         gdbarch.
11358
11359 2019-02-27  Andrew Burgess  <[email protected]>
11360
11361         * gdb/cris-tdep.c (cris_dummy_id): Delete.
11362         (cris_unwind_pc): Delete.
11363         (cris_unwind_sp): Delete.
11364         (cris_gdbarch_init): Don't register deleted functions with
11365         gdbarch.
11366
11367 2019-02-27  Andrew Burgess  <[email protected]>
11368
11369         * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
11370         (bfin_unwind_pc): Delete.
11371         (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
11372
11373 2019-02-27  Andrew Burgess  <[email protected]>
11374
11375         * gdb/arm-tdep.c (arm_dummy_id): Delete.
11376         (arm_unwind_pc): Delete.
11377         (arm_unwind_sp): Delete.
11378         (arm_gdbarch_init): Don't register deleted functions with gdbarch.
11379
11380 2019-02-27  Andrew Burgess  <[email protected]>
11381
11382         * gdb/arc-tdep.c (arc_dummy_id): Delete.
11383         (arc_unwind_pc): Delete.
11384         (arc_unwind_sp): Delete.
11385         (arc_gdbarch_init): Don't register deleted functions with gdbarch.
11386
11387 2019-02-27  Andrew Burgess  <[email protected]>
11388
11389         * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
11390         (alpha_unwind_pc): Delete.
11391         (alpha_gdbarch_init): Don't register deleted functions with
11392         gdbarch.
11393
11394 2019-02-27  Andrew Burgess  <[email protected]>
11395
11396         * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
11397         (aarch64_unwind_pc): Delete.
11398         (aarch64_unwind_sp): Delete.
11399         (aarch64_gdbarch_init): Don't register deleted functions with
11400         gdbarch.
11401
11402 2019-02-27  Andrew Burgess  <[email protected]>
11403
11404         * gdbtypes.c (type_align): Don't consider static members when
11405         computing structure alignment.
11406
11407 2019-02-27  Andrew Burgess  <[email protected]>
11408
11409         * arc-tdep.c (arc_type_align): Provide alignment for basic types,
11410         return 0 for other types.
11411         * arch-utils.c (default_type_align): Always return 0.
11412         * gdbarch.h: Regenerate.
11413         * gdbarch.sh (type_align): Extend comment.
11414         * gdbtypes.c (type_align): Add additional comments, always call
11415         gdbarch_type_align before applying the default rules.
11416         * i386-tdep.c (i386_type_align): Return 0 as the default rule,
11417         generic code will then apply a suitable default.
11418         * nios2-tdep.c (nios2_type_align): Provide alignment for basic
11419         types, return 0 for other types.
11420
11421 2019-02-27  Joel Brobecker  <[email protected]>
11422
11423         * NEWS: Create a new section for the next release branch.
11424         Rename the section of the current branch, now that it has
11425         been cut.
11426
11427 2019-02-27  Joel Brobecker  <[email protected]>
11428
11429         GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
11430         * version.in: Bump version to 8.3.50.DATE-git.
11431
11432 2019-02-26  Simon Marchi  <[email protected]>
11433
11434         * aix-thread.c (ptid_cmp): Remove unused variable.
11435         (get_signaled_thread): Likewise.
11436         (store_regs_user_thread): Likewise.
11437         (store_regs_kernel_thread): Likewise.
11438         (fetch_regs_kernel_thread): Remove shadowed variable.
11439
11440 2019-02-26  Andrew Burgess  <[email protected]>
11441
11442         * features/riscv/32bit-cpu.xml: Add register numbers.
11443         * features/riscv/32bit-fpu.c: Regenerate.
11444         * features/riscv/32bit-fpu.xml: Add register numbers.
11445         * features/riscv/64bit-cpu.xml: Add register numbers.
11446         * features/riscv/64bit-fpu.c: Regenerate.
11447         * features/riscv/64bit-fpu.xml: Add register numbers.
11448
11449 2019-02-26  Kevin Buettner  <[email protected]>
11450
11451         * NEWS: Mention two argument form of gdb.Value constructor.
11452         * python/py-value.c (convert_buffer_and_type_to_value): New
11453         function.
11454         (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
11455         Add support for handling an optional second argument.  Call
11456         convert_buffer_and_type_to_value as appropriate.
11457         * python/python-internal.h (Py_buffer_deleter): New struct.
11458         (Py_buffer_up): New typedef.
11459
11460 2019-02-25  John Baldwin  <[email protected]>
11461
11462         * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
11463         instead of releasing ownership.
11464
11465 2019-02-25  Jordan Rupprecht  <[email protected]>
11466
11467         * dwarf2read.c (open_and_init_dwp_file): Call
11468         elf_numsections instead of bfd_count_sections to initialize
11469         dwp_file->num_sections.
11470
11471 2019-02-25  Tom Tromey  <[email protected]>
11472
11473         * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
11474
11475 2019-02-23  Sergio Durigan Junior  <[email protected]>
11476
11477         * gcore.in: Add '--readnever' option when invoking GDB.
11478
11479 2019-02-22  Simon Marchi  <[email protected]>
11480
11481         * MAINTAINERS: Update my email address.
11482
11483 2019-02-22  Simon Marchi  <[email protected]>
11484
11485         * build-id.c (build_id_to_debug_bfd_1): New function.
11486         (build_id_to_debug_bfd): Look for separate debug file in
11487         sysroot.
11488
11489 2019-02-22  Andrew Burgess  <[email protected]>
11490
11491         * gdbarch.sh: Update the copyright year range that is placed into
11492         generated files.
11493
11494 2019-02-22  Keith Seitz  <[email protected]>
11495
11496         PR symtab/23853
11497         * linespec.c (create_sals_line_offset): Search for the default
11498         symtab's filename instead of its fullname.
11499
11500 2019-02-21  Alan Hayward  <[email protected]>
11501
11502         * NEWS: Update style defaults.
11503
11504 2019-02-21  Alan Hayward  <[email protected]>
11505
11506         * main.c (captured_main_1): Disable styling in batch mode.
11507
11508 2019-02-20  Tom Tromey  <[email protected]>
11509
11510         * symtab.c (symtab_symbol_info): Fix typos.
11511
11512 2019-02-20  Tom Tromey  <[email protected]>
11513
11514         * findcmd.c (_initialize_mem_search): Use upper case for
11515         metasyntactic variables.
11516
11517 2019-02-20  Alan Hayward  <[email protected]>
11518
11519         * aarch64-tdep.c (aarch64_add_reggroups): New function.
11520         (aarch64_gdbarch_init): Call aarch64_add_reggroups.
11521
11522 2019-02-19  Simon Marchi  <[email protected]>
11523
11524         * top.h (source_file_name): Change to std::string.
11525         * top.c (source_file_name): Likewise.
11526         (command_line_input): Adjust.
11527         * cli/cli-script.c (script_from_file): Adjust.
11528
11529 2019-02-19  Tom Tromey  <[email protected]>
11530
11531         * ravenscar-thread.c
11532         (ravenscar_thread_target::update_thread_list): Don't call
11533         ada_build_task_list.
11534         * ada-lang.h (ada_build_task_list): Don't declare.
11535         * ada-tasks.c (struct ada_tasks_inferior_data)
11536         <task_list_valid_p>: Now bool.
11537         (read_known_tasks, ada_task_list_changed)
11538         (ada_tasks_invalidate_inferior_data): Update.
11539         (read_known_tasks_array): Return bool.
11540         (read_known_tasks_list): Likewise.
11541         (read_known_tasks): Return void.
11542         (ada_build_task_list): Now static.
11543
11544 2019-02-18  Andrew Burgess  <[email protected]>
11545
11546         * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
11547         and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
11548
11549 2019-02-18  Philippe Waroquiers  <[email protected]>
11550
11551         * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
11552         variant for ada_tasks_pspace_data_handle and
11553         ada_tasks_inferior_data_handle.
11554         (ada_tasks_pspace_data_cleanup): New function.
11555         (ada_tasks_inferior_data_cleanup): New function.
11556
11557 2019-02-17  Tom Tromey  <[email protected]>
11558
11559         * macrotab.h (macro_source_fullname): Return a std::string.
11560         * macrotab.c (macro_include, check_for_redefinition)
11561         (macro_undef, macro_lookup_definition, foreach_macro)
11562         (foreach_macro_in_scope): Update.
11563         (macro_source_fullname): Return a std::string.
11564         * macrocmd.c (show_pp_source_pos): Update.
11565
11566 2019-02-17  Tom Tromey  <[email protected]>
11567
11568         * macrocmd.c (show_pp_source_pos): Style the file names.
11569
11570 2019-02-17  Tom Tromey  <[email protected]>
11571
11572         PR tui/24197:
11573         * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
11574
11575 2019-02-17  Tom Tromey  <[email protected]>
11576
11577         * ada-lang.c (user_select_syms): Use filtered printing.
11578         * utils.c (wrap_style): New global.
11579         (desired_style): Remove.
11580         (emit_style_escape): Add stream parameter.
11581         (set_output_style, reset_terminal_style, prompt_for_continue):
11582         Update.
11583         (flush_wrap_buffer): Only flush gdb_stdout.
11584         (wrap_here): Set wrap_style.
11585         (fputs_maybe_filtered): Clear the wrap buffer on exception.  Don't
11586         treat escape sequences as a character.  Change when wrap buffer is
11587         flushed.
11588         (fputs_styled): Do not set the output style when the default is
11589         requested.
11590         * ui-style.h (struct ui_file_style) <is_default>: New method.
11591         * source.c (print_source_lines_base): Emit escape sequences in one
11592         piece.
11593
11594 2019-02-17  Joel Brobecker  <[email protected]>
11595
11596         * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
11597         integers and enumeration types.
11598
11599 2019-02-17  Joel Brobecker  <[email protected]>
11600
11601         * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
11602         instead of lookup_symbol_in_language
11603         (do_exact_match): New function.
11604         (ada_get_symbol_name_matcher): Return do_exact_match when
11605         doing a verbatim match.
11606
11607 2019-02-15  Tom Tromey  <[email protected]>
11608
11609         * ravenscar-thread.c (ravenscar_thread_target::resume)
11610         (ravenscar_thread_target::wait): Special case wildcard requests.
11611
11612 2019-02-15  Tom Tromey  <[email protected]>
11613
11614         * ravenscar-thread.c (base_ptid): Remove.
11615         (struct ravenscar_thread_target) <close>: New method.
11616         <m_base_ptid>: New member.
11617         <update_inferior_ptid, active_task, task_is_currently_active,
11618         runtime_initialized>: Declare methods.
11619         <ravenscar_thread_target>: Add constructor.
11620         (ravenscar_thread_target::task_is_currently_active)
11621         (ravenscar_thread_target::update_inferior_ptid)
11622         (ravenscar_runtime_initialized): Rename.  Now methods.
11623         (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
11624         (ravenscar_thread_target::update_thread_list): Update.
11625         (ravenscar_thread_target::active_task): Now method.
11626         (ravenscar_thread_target::store_registers)
11627         (ravenscar_thread_target::prepare_to_store)
11628         (ravenscar_thread_target::prepare_to_store)
11629         (ravenscar_thread_target::mourn_inferior): Update.
11630         (ravenscar_inferior_created): Use "new" to create target.
11631         (ravenscar_thread_target::get_ada_task_ptid): Update.
11632         (_initialize_ravenscar): Don't initialize base_ptid.
11633         (ravenscar_ops): Remove global.
11634
11635 2019-02-15  Tom Tromey  <[email protected]>
11636
11637         * target.h (push_target): Declare new overload.
11638         * target.c (push_target): New overload, taking an rvalue reference.
11639         * remote.c (remote_target::open_1): Use push_target overload.
11640         * corelow.c (core_target_open): Use push_target overload.
11641
11642 2019-02-15  Tom Tromey  <[email protected]>
11643
11644         * ravenscar-thread.c (is_ravenscar_task)
11645         (ravenscar_task_is_currently_active): Return bool.
11646         (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
11647         (_initialize_ravenscar): Remove "(void)".
11648         (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
11649         Return bool.
11650
11651 2019-02-15  Tom Tromey  <[email protected]>
11652
11653         * ravenscar-thread.c (ravenscar_runtime_initializer)
11654         (has_ravenscar_runtime, get_running_thread_id)
11655         (ravenscar_thread_target::resume): Fix indentation.
11656
11657 2019-02-15  Tom Tromey  <[email protected]>
11658
11659         * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
11660         from ravenscar_arch_ops.
11661         (sparc_ravenscar_ops::fetch_registers)
11662         (sparc_ravenscar_ops::store_registers): Now methods.
11663         (sparc_ravenscar_prepare_to_store): Remove.
11664         (sparc_ravenscar_ops): Redefine.
11665         * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
11666         methods and destructor.  Remove members.
11667         * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
11668         (ravenscar_thread_target::store_registers)
11669         (ravenscar_thread_target::prepare_to_store): Update.
11670         * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
11671         Remove.
11672         (struct ppc_ravenscar_powerpc_ops): Derive from
11673         ravenscar_arch_ops.
11674         (ppc_ravenscar_powerpc_ops::fetch_registers)
11675         (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
11676         (ppc_ravenscar_powerpc_ops): Redefine.
11677         (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
11678         (ppc_ravenscar_e500_ops::fetch_registers)
11679         (ppc_ravenscar_e500_ops::store_registers): Now methods.
11680         (ppc_ravenscar_e500_ops): Redefine.
11681         * aarch64-ravenscar-thread.c
11682         (aarch64_ravenscar_generic_prepare_to_store): Remove.
11683         (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
11684         (aarch64_ravenscar_fetch_registers)
11685         (aarch64_ravenscar_store_registers): Now methods.
11686         (aarch64_ravenscar_ops): Redefine.
11687
11688 2019-02-15  Tom Tromey  <[email protected]>
11689
11690         * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
11691         (ravenscar_thread_target::stopped_by_hw_breakpoint)
11692         (ravenscar_thread_target::stopped_by_watchpoint)
11693         (ravenscar_thread_target::stopped_data_address)
11694         (ravenscar_thread_target::core_of_thread): Use scoped_restore.
11695
11696 2019-02-15  Tom Tromey  <[email protected]>
11697
11698         * ravenscar-thread.c: Fix some typos.
11699
11700 2019-02-15  Philippe Waroquiers  <[email protected]>
11701             Tom Tromey  <[email protected]>
11702
11703         * ada-lang.c (ada_exception_sal): Change addr_string to a
11704         std::string.
11705         (create_ada_exception_catchpoint): Update.
11706
11707 2019-02-15  Philippe Waroquiers  <[email protected]>
11708             Tom Tromey  <[email protected]>
11709
11710         * breakpoint.c (~bp_location): Rename from bp_location_dtor.
11711         (bp_location_ops): Remove.
11712         (base_breakpoint_allocate_location): Update.
11713         (free_bp_location): Update.
11714         * ada-lang.c (class ada_catchpoint_location)
11715         <ada_catchpoint_location>: Remove ops parameter.
11716         (ada_catchpoint_location_dtor): Remove.
11717         (ada_catchpoint_location_ops): Remove.
11718         (allocate_location_exception): Update.
11719         * breakpoint.h (struct bp_location_ops): Remove.
11720         (class bp_location) <bp_location>: Remove bp_location_ops
11721         parameter.
11722         <~bp_location>: Add destructor.
11723         <ops>: Remove.
11724
11725 2019-02-14  Thomas Schwinge  <[email protected]>
11726             Pedro Alves  <[email protected]>
11727
11728         * remote.c (remote_target::remote_parse_stop_reply): Avoid using
11729         'PATH_MAX'.
11730
11731 2019-02-14  David Michael  <[email protected]>
11732             Samuel Thibault  <[email protected]>
11733             Thomas Schwinge  <[email protected]>
11734
11735         * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
11736         (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
11737
11738 2019-02-14  Thomas Schwinge  <[email protected]>
11739
11740         * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
11741         (check_empty): Use "const char *".
11742
11743         * gnu-nat.c (gnu_nat_target::detach): Instead of
11744         'detach_inferior (pid)' call
11745         'detach_inferior (find_inferior_pid (pid))'.
11746
11747         * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
11748         'nat/fork-inferior.o'.
11749         * gnu-nat.c: #include "nat/fork-inferior.h".
11750
11751         * gnu-nat.c (gnu_nat_target::detach): Instead of
11752         'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
11753         * gnu-nat.h: #include "inf-child.h".
11754         * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
11755         'i386_gnu_nat_target::fetch_registers'.
11756         (gnu_store_registers): Rename/move to
11757         'i386_gnu_nat_target::store_registers'.
11758
11759         * config/i386/nm-i386gnu.h: Don't "#include" any files.
11760         * gnu-nat.h (mach_thread_info): New function.
11761         * gnu-nat.c (thread_takeover_sc_cmd): Use it.
11762
11763         * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
11764
11765 2019-02-14  Frederic Konrad  <[email protected]>
11766
11767         * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
11768
11769 2019-02-14  Joel Brobecker  <[email protected]>
11770
11771         * windows-nat.c (windows_add_thread): Add new parameter
11772         "main_thread_p" with default value set to false.  Update
11773         function documentation as well as all callers.
11774         (windows_delete_thread): Likewise.
11775         (fake_create_process): Update call to windows_add_thread.
11776         (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
11777         <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
11778         <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
11779         call to windows_delete_thread.
11780
11781 2019-02-13  Simon Marchi  <[email protected]>
11782
11783         * MAINTAINERS: Add Andrew Burgess as global maintainer.
11784
11785 2019-02-12  John Baldwin  <[email protected]>
11786
11787         * symfile.c (find_separate_debug_file): Use canonical path of
11788         sysroot with child_path instead of gdb_sysroot if it is valid.
11789
11790 2019-02-12  John Baldwin  <[email protected]>
11791
11792         * symfile.c (find_separate_debug_file): Use child_path to
11793         determine if an object file is under a sysroot.
11794
11795 2019-02-12  John Baldwin  <[email protected]>
11796
11797         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11798         unittests/child-path-selftests.c.
11799         * common/pathstuff.c (child_path): New function.
11800         * common/pathstuff.h (child_path): New prototype.
11801         * unittests/child-path-selftests.c: New file.
11802
11803 2019-02-12  John Baldwin  <[email protected]>
11804
11805         * symfile.c (find_separate_debug_file): Look for separate debug
11806         files in debug directories under the sysroot.
11807
11808 2019-02-12  Philippe Waroquiers  <[email protected]>
11809
11810         * symtab.h (struct minimal_symbol data_p): New const method.
11811         (struct minimal_symbol text_p): Likewise.
11812         * symtab.c (output_source_filename): Use file name style
11813         to print file name.
11814         (print_symbol_info): Likewise.
11815         (print_msymbol_info): Use address style to print addresses.
11816         Use function name style to print executable text symbols.
11817         (expand_symtab_containing_pc): Use data_p.
11818         (find_pc_sect_compunit_symtab): Likewise.
11819
11820 2019-02-12  Philippe Waroquiers  <[email protected]>
11821
11822         * breakpoint.c (describe_other_breakpoints): Use address style
11823         to print addresses.
11824         (say_where): Likewise.
11825
11826 2019-02-12  Philippe Waroquiers  <[email protected]>
11827
11828         * ada-typeprint.c (print_func_type): Print function name
11829         style to print function name.
11830         * c-typeprint.c (c_print_type_1): Likewise.
11831
11832 2019-02-11  Alan Hayward  <[email protected]>
11833
11834         * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
11835         for execve.
11836
11837 2019-02-10  Philippe Waroquiers  <[email protected]>
11838
11839         * c-exp.y (direct_abs_decl): Use emplace_back to record the
11840         type_stack.
11841
11842 2019-02-10  Joel Brobecker  <[email protected]>
11843
11844         * ada-varobj.c (ada_value_is_changeable_p): Add handling of
11845         TYPE_CODE_REF types.
11846
11847 2019-02-08  Jim Wilson  <[email protected]>
11848
11849         * riscv-linux-tdep.c (riscv_linux_fregmap): New.
11850         (riscv_linux_fregset): New.
11851         (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
11852
11853 2019-02-07  Tom Tromey  <[email protected]>
11854
11855         * thread.c (thread_cancel_execution_command): Update.
11856         * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
11857         methods.
11858         (struct thread_fsm_ops): Remove.
11859         (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
11860         (thread_fsm_should_stop, thread_fsm_return_value)
11861         (thread_fsm_set_finished, thread_fsm_finished_p)
11862         (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
11863         Don't declare.
11864         * mi/mi-interp.c (mi_on_normal_stop_1): Update.
11865         * infrun.c (clear_proceed_status_thread)
11866         (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
11867         (print_stop_event): Update.
11868         * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
11869         Add constructor.
11870         (step_command_fsm_ops): Remove.
11871         (new_step_command_fsm): Remove.
11872         (step_1): Update.
11873         (step_command_fsm::should_stop): Rename from
11874         step_command_fsm_should_stop.
11875         (step_command_fsm::clean_up): Rename from
11876         step_command_fsm_clean_up.
11877         (step_command_fsm::do_async_reply_reason): Rename from
11878         step_command_fsm_async_reply_reason.
11879         (struct until_next_fsm): Inherit from thread_fsm.  Add
11880         constructor.
11881         (until_next_fsm_ops): Remove.
11882         (new_until_next_fsm): Remove.
11883         (until_next_fsm::should_stop): Rename from
11884         until_next_fsm_should_stop.
11885         (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
11886         (until_next_fsm::do_async_reply_reason): Rename from
11887         until_next_fsm_async_reply_reason.
11888         (struct finish_command_fsm): Inherit from thread_fsm.  Add
11889         constructor.  Change type of breakpoint.
11890         (finish_command_fsm_ops): Remove.
11891         (new_finish_command_fsm): Remove.
11892         (finish_command_fsm::should_stop): Rename from
11893         finish_command_fsm_should_stop.
11894         (finish_command_fsm::clean_up): Rename from
11895         finish_command_fsm_clean_up.
11896         (finish_command_fsm::return_value): Rename from
11897         finish_command_fsm_return_value.
11898         (finish_command_fsm::do_async_reply_reason): Rename from
11899         finish_command_fsm_async_reply_reason.
11900         (finish_command): Update.
11901         * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
11902         Add constructor.
11903         (call_thread_fsm_ops): Remove.
11904         (call_thread_fsm::call_thread_fsm): Rename from
11905         new_call_thread_fsm.
11906         (call_thread_fsm::should_stop): Rename from
11907         call_thread_fsm_should_stop.
11908         (call_thread_fsm::should_notify_stop): Rename from
11909         call_thread_fsm_should_notify_stop.
11910         (run_inferior_call, call_function_by_hand_dummy): Update.
11911         * cli/cli-interp.c (should_print_stop_to_console): Update.
11912         * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
11913         Add constructor.  Change type of location_breakpoint,
11914         caller_breakpoint.
11915         (until_break_fsm_ops): Remove.
11916         (new_until_break_fsm): Remove.
11917         (until_break_fsm::should_stop): Rename from
11918         until_break_fsm_should_stop.
11919         (until_break_fsm::clean_up): Rename from
11920         until_break_fsm_clean_up.
11921         (until_break_fsm::do_async_reply_reason): Rename from
11922         until_break_fsm_async_reply_reason.
11923         (until_break_command): Update.
11924         * thread-fsm.c: Remove.
11925         * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
11926
11927 2019-02-07  Tom Tromey  <[email protected]>
11928
11929         * yy-remap.h: Add include guard.
11930         * xtensa-tdep.h: Add include guard.
11931         * xcoffread.h: Rename include guard.
11932         * varobj-iter.h: Add include guard.
11933         * tui/tui.h: Rename include guard.
11934         * tui/tui-winsource.h: Rename include guard.
11935         * tui/tui-wingeneral.h: Rename include guard.
11936         * tui/tui-windata.h: Rename include guard.
11937         * tui/tui-win.h: Rename include guard.
11938         * tui/tui-stack.h: Rename include guard.
11939         * tui/tui-source.h: Rename include guard.
11940         * tui/tui-regs.h: Rename include guard.
11941         * tui/tui-out.h: Rename include guard.
11942         * tui/tui-layout.h: Rename include guard.
11943         * tui/tui-io.h: Rename include guard.
11944         * tui/tui-hooks.h: Rename include guard.
11945         * tui/tui-file.h: Rename include guard.
11946         * tui/tui-disasm.h: Rename include guard.
11947         * tui/tui-data.h: Rename include guard.
11948         * tui/tui-command.h: Rename include guard.
11949         * tic6x-tdep.h: Add include guard.
11950         * target/waitstatus.h: Rename include guard.
11951         * target/wait.h: Rename include guard.
11952         * target/target.h: Rename include guard.
11953         * target/resume.h: Rename include guard.
11954         * target-float.h: Rename include guard.
11955         * stabsread.h: Add include guard.
11956         * rs6000-tdep.h: Add include guard.
11957         * riscv-fbsd-tdep.h: Add include guard.
11958         * regformats/regdef.h: Rename include guard.
11959         * record.h: Rename include guard.
11960         * python/python.h: Rename include guard.
11961         * python/python-internal.h: Rename include guard.
11962         * python/py-stopevent.h: Rename include guard.
11963         * python/py-ref.h: Rename include guard.
11964         * python/py-record.h: Rename include guard.
11965         * python/py-record-full.h: Rename include guard.
11966         * python/py-record-btrace.h: Rename include guard.
11967         * python/py-instruction.h: Rename include guard.
11968         * python/py-events.h: Rename include guard.
11969         * python/py-event.h: Rename include guard.
11970         * procfs.h: Add include guard.
11971         * proc-utils.h: Add include guard.
11972         * p-lang.h: Add include guard.
11973         * or1k-tdep.h: Rename include guard.
11974         * observable.h: Rename include guard.
11975         * nto-tdep.h: Rename include guard.
11976         * nat/x86-linux.h: Rename include guard.
11977         * nat/x86-linux-dregs.h: Rename include guard.
11978         * nat/x86-gcc-cpuid.h: Add include guard.
11979         * nat/x86-dregs.h: Rename include guard.
11980         * nat/x86-cpuid.h: Rename include guard.
11981         * nat/ppc-linux.h: Rename include guard.
11982         * nat/mips-linux-watch.h: Rename include guard.
11983         * nat/linux-waitpid.h: Rename include guard.
11984         * nat/linux-ptrace.h: Rename include guard.
11985         * nat/linux-procfs.h: Rename include guard.
11986         * nat/linux-osdata.h: Rename include guard.
11987         * nat/linux-nat.h: Rename include guard.
11988         * nat/linux-namespaces.h: Rename include guard.
11989         * nat/linux-btrace.h: Rename include guard.
11990         * nat/glibc_thread_db.h: Rename include guard.
11991         * nat/gdb_thread_db.h: Rename include guard.
11992         * nat/gdb_ptrace.h: Rename include guard.
11993         * nat/fork-inferior.h: Rename include guard.
11994         * nat/amd64-linux-siginfo.h: Rename include guard.
11995         * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
11996         * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
11997         * nat/aarch64-linux.h: Rename include guard.
11998         * nat/aarch64-linux-hw-point.h: Rename include guard.
11999         * mn10300-tdep.h: Add include guard.
12000         * mips-linux-tdep.h: Add include guard.
12001         * mi/mi-parse.h: Rename include guard.
12002         * mi/mi-out.h: Rename include guard.
12003         * mi/mi-main.h: Rename include guard.
12004         * mi/mi-interp.h: Rename include guard.
12005         * mi/mi-getopt.h: Rename include guard.
12006         * mi/mi-console.h: Rename include guard.
12007         * mi/mi-common.h: Rename include guard.
12008         * mi/mi-cmds.h: Rename include guard.
12009         * mi/mi-cmd-break.h: Rename include guard.
12010         * m2-lang.h: Add include guard.
12011         * location.h: Rename include guard.
12012         * linux-record.h: Rename include guard.
12013         * linux-nat.h: Add include guard.
12014         * linux-fork.h: Add include guard.
12015         * i386-darwin-tdep.h: Rename include guard.
12016         * hppa-linux-offsets.h: Add include guard.
12017         * guile/guile.h: Rename include guard.
12018         * guile/guile-internal.h: Rename include guard.
12019         * gnu-nat.h: Rename include guard.
12020         * gdb-stabs.h: Rename include guard.
12021         * frv-tdep.h: Add include guard.
12022         * f-lang.h: Add include guard.
12023         * event-loop.h: Add include guard.
12024         * darwin-nat.h: Rename include guard.
12025         * cp-abi.h: Rename include guard.
12026         * config/sparc/nm-sol2.h: Rename include guard.
12027         * config/nm-nto.h: Rename include guard.
12028         * config/nm-linux.h: Add include guard.
12029         * config/i386/nm-i386gnu.h: Rename include guard.
12030         * config/djgpp/nl_types.h: Rename include guard.
12031         * config/djgpp/langinfo.h: Rename include guard.
12032         * compile/gcc-cp-plugin.h: Add include guard.
12033         * compile/gcc-c-plugin.h: Add include guard.
12034         * compile/compile.h: Rename include guard.
12035         * compile/compile-object-run.h: Rename include guard.
12036         * compile/compile-object-load.h: Rename include guard.
12037         * compile/compile-internal.h: Rename include guard.
12038         * compile/compile-cplus.h: Rename include guard.
12039         * compile/compile-c.h: Rename include guard.
12040         * common/xml-utils.h: Rename include guard.
12041         * common/x86-xstate.h: Rename include guard.
12042         * common/version.h: Rename include guard.
12043         * common/vec.h: Rename include guard.
12044         * common/tdesc.h: Rename include guard.
12045         * common/selftest.h: Rename include guard.
12046         * common/scoped_restore.h: Rename include guard.
12047         * common/scoped_mmap.h: Rename include guard.
12048         * common/scoped_fd.h: Rename include guard.
12049         * common/safe-iterator.h: Rename include guard.
12050         * common/run-time-clock.h: Rename include guard.
12051         * common/refcounted-object.h: Rename include guard.
12052         * common/queue.h: Rename include guard.
12053         * common/ptid.h: Rename include guard.
12054         * common/print-utils.h: Rename include guard.
12055         * common/preprocessor.h: Rename include guard.
12056         * common/pathstuff.h: Rename include guard.
12057         * common/observable.h: Rename include guard.
12058         * common/netstuff.h: Rename include guard.
12059         * common/job-control.h: Rename include guard.
12060         * common/host-defs.h: Rename include guard.
12061         * common/gdb_wait.h: Rename include guard.
12062         * common/gdb_vecs.h: Rename include guard.
12063         * common/gdb_unlinker.h: Rename include guard.
12064         * common/gdb_unique_ptr.h: Rename include guard.
12065         * common/gdb_tilde_expand.h: Rename include guard.
12066         * common/gdb_sys_time.h: Rename include guard.
12067         * common/gdb_string_view.h: Rename include guard.
12068         * common/gdb_splay_tree.h: Rename include guard.
12069         * common/gdb_setjmp.h: Rename include guard.
12070         * common/gdb_ref_ptr.h: Rename include guard.
12071         * common/gdb_optional.h: Rename include guard.
12072         * common/gdb_locale.h: Rename include guard.
12073         * common/gdb_assert.h: Rename include guard.
12074         * common/filtered-iterator.h: Rename include guard.
12075         * common/filestuff.h: Rename include guard.
12076         * common/fileio.h: Rename include guard.
12077         * common/environ.h: Rename include guard.
12078         * common/common-utils.h: Rename include guard.
12079         * common/common-types.h: Rename include guard.
12080         * common/common-regcache.h: Rename include guard.
12081         * common/common-inferior.h: Rename include guard.
12082         * common/common-gdbthread.h: Rename include guard.
12083         * common/common-exceptions.h: Rename include guard.
12084         * common/common-defs.h: Rename include guard.
12085         * common/common-debug.h: Rename include guard.
12086         * common/cleanups.h: Rename include guard.
12087         * common/buffer.h: Rename include guard.
12088         * common/btrace-common.h: Rename include guard.
12089         * common/break-common.h: Rename include guard.
12090         * cli/cli-utils.h: Rename include guard.
12091         * cli/cli-style.h: Rename include guard.
12092         * cli/cli-setshow.h: Rename include guard.
12093         * cli/cli-script.h: Rename include guard.
12094         * cli/cli-interp.h: Rename include guard.
12095         * cli/cli-decode.h: Rename include guard.
12096         * cli/cli-cmds.h: Rename include guard.
12097         * charset-list.h: Add include guard.
12098         * buildsym-legacy.h: Rename include guard.
12099         * bfin-tdep.h: Add include guard.
12100         * ax.h: Rename include guard.
12101         * arm-linux-tdep.h: Add include guard.
12102         * arm-fbsd-tdep.h: Add include guard.
12103         * arch/xtensa.h: Rename include guard.
12104         * arch/tic6x.h: Add include guard.
12105         * arch/i386.h: Add include guard.
12106         * arch/arm.h: Rename include guard.
12107         * arch/arm-linux.h: Rename include guard.
12108         * arch/arm-get-next-pcs.h: Rename include guard.
12109         * arch/amd64.h: Add include guard.
12110         * arch/aarch64-insn.h: Rename include guard.
12111         * arch-utils.h: Rename include guard.
12112         * annotate.h: Add include guard.
12113         * amd64-darwin-tdep.h: Rename include guard.
12114         * aarch64-linux-tdep.h: Add include guard.
12115         * aarch64-fbsd-tdep.h: Add include guard.
12116         * aarch32-linux-nat.h: Add include guard.
12117
12118 2019-02-06  Philippe Waroquiers  <[email protected]>
12119
12120         * macrotab.c (macro_define_internal): New function that
12121         factorizes macro_define_object_internal and macro_define_function
12122         code.
12123         (macro_define_object_internal): Use macro_define_internal.
12124         (macro_define_function): Likewise.
12125
12126 2019-02-06  Philippe Waroquiers  <[email protected]>
12127
12128         * macrocmd.c (extract_identifier): Return
12129         a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
12130         callers.
12131
12132 2019-02-06  John Baldwin  <[email protected]>
12133
12134         * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
12135
12136 2019-02-05  Tom Tromey  <[email protected]>
12137
12138         * target.c (target_stack::unpush): Move assertion earlier.
12139
12140 2019-01-30  Tom Tromey  <[email protected]>
12141
12142         PR python/23615:
12143         * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
12144         (gdbpy_parse_and_eval): Likewise.
12145         * python/python-internal.h (gdbpy_allow_threads): New class.
12146
12147 2019-01-28  John Baldwin  <[email protected]>
12148
12149         * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
12150         (aarch64_fbsd_fpregmap): Move earlier.
12151         (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
12152         (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
12153         instead of individual calls to trad_frame_set_reg_addr.
12154         * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
12155         earlier.
12156         (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
12157         (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
12158         instead of individual calls to trad_frame_set_reg_addr.
12159
12160 2019-01-28  Alan Hayward  <[email protected]>
12161
12162         * CONTRIBUTE: Replace contribution list with wiki link.
12163
12164 2019-01-25  Tom Tromey  <[email protected]>
12165
12166         * Makefile.in (GDB_CFLAGS): Don't add -I for common.
12167
12168 2019-01-25  Tom Tromey  <[email protected]>
12169
12170         * xtensa-linux-nat.c: Fix common/ includes.
12171         * xml-support.h: Fix common/ includes.
12172         * xml-support.c: Fix common/ includes.
12173         * x86-linux-nat.c: Fix common/ includes.
12174         * windows-nat.c: Fix common/ includes.
12175         * varobj.h: Fix common/ includes.
12176         * varobj.c: Fix common/ includes.
12177         * value.c: Fix common/ includes.
12178         * valops.c: Fix common/ includes.
12179         * utils.c: Fix common/ includes.
12180         * unittests/xml-utils-selftests.c: Fix common/ includes.
12181         * unittests/utils-selftests.c: Fix common/ includes.
12182         * unittests/unpack-selftests.c: Fix common/ includes.
12183         * unittests/tracepoint-selftests.c: Fix common/ includes.
12184         * unittests/style-selftests.c: Fix common/ includes.
12185         * unittests/string_view-selftests.c: Fix common/ includes.
12186         * unittests/scoped_restore-selftests.c: Fix common/ includes.
12187         * unittests/scoped_mmap-selftests.c: Fix common/ includes.
12188         * unittests/scoped_fd-selftests.c: Fix common/ includes.
12189         * unittests/rsp-low-selftests.c: Fix common/ includes.
12190         * unittests/parse-connection-spec-selftests.c: Fix common/
12191         includes.
12192         * unittests/optional-selftests.c: Fix common/ includes.
12193         * unittests/offset-type-selftests.c: Fix common/ includes.
12194         * unittests/observable-selftests.c: Fix common/ includes.
12195         * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
12196         * unittests/memrange-selftests.c: Fix common/ includes.
12197         * unittests/memory-map-selftests.c: Fix common/ includes.
12198         * unittests/lookup_name_info-selftests.c: Fix common/ includes.
12199         * unittests/function-view-selftests.c: Fix common/ includes.
12200         * unittests/environ-selftests.c: Fix common/ includes.
12201         * unittests/copy_bitwise-selftests.c: Fix common/ includes.
12202         * unittests/common-utils-selftests.c: Fix common/ includes.
12203         * unittests/cli-utils-selftests.c: Fix common/ includes.
12204         * unittests/array-view-selftests.c: Fix common/ includes.
12205         * ui-file.c: Fix common/ includes.
12206         * tui/tui-io.c: Fix common/ includes.
12207         * tracepoint.h: Fix common/ includes.
12208         * tracepoint.c: Fix common/ includes.
12209         * tracefile-tfile.c: Fix common/ includes.
12210         * top.h: Fix common/ includes.
12211         * top.c: Fix common/ includes.
12212         * thread.c: Fix common/ includes.
12213         * target/waitstatus.h: Fix common/ includes.
12214         * target/waitstatus.c: Fix common/ includes.
12215         * target.h: Fix common/ includes.
12216         * target.c: Fix common/ includes.
12217         * target-memory.c: Fix common/ includes.
12218         * target-descriptions.c: Fix common/ includes.
12219         * symtab.h: Fix common/ includes.
12220         * symfile.c: Fix common/ includes.
12221         * stap-probe.c: Fix common/ includes.
12222         * spu-linux-nat.c: Fix common/ includes.
12223         * sparc-nat.c: Fix common/ includes.
12224         * source.c: Fix common/ includes.
12225         * solib.c: Fix common/ includes.
12226         * solib-target.c: Fix common/ includes.
12227         * ser-unix.c: Fix common/ includes.
12228         * ser-tcp.c: Fix common/ includes.
12229         * ser-pipe.c: Fix common/ includes.
12230         * ser-base.c: Fix common/ includes.
12231         * selftest-arch.c: Fix common/ includes.
12232         * s12z-tdep.c: Fix common/ includes.
12233         * rust-exp.y: Fix common/ includes.
12234         * rs6000-aix-tdep.c: Fix common/ includes.
12235         * riscv-tdep.c: Fix common/ includes.
12236         * remote.c: Fix common/ includes.
12237         * remote-notif.h: Fix common/ includes.
12238         * remote-fileio.h: Fix common/ includes.
12239         * remote-fileio.c: Fix common/ includes.
12240         * regcache.h: Fix common/ includes.
12241         * regcache.c: Fix common/ includes.
12242         * record-btrace.c: Fix common/ includes.
12243         * python/python.c: Fix common/ includes.
12244         * python/py-type.c: Fix common/ includes.
12245         * python/py-inferior.c: Fix common/ includes.
12246         * progspace.h: Fix common/ includes.
12247         * producer.c: Fix common/ includes.
12248         * procfs.c: Fix common/ includes.
12249         * proc-api.c: Fix common/ includes.
12250         * printcmd.c: Fix common/ includes.
12251         * ppc-linux-nat.c: Fix common/ includes.
12252         * parser-defs.h: Fix common/ includes.
12253         * osdata.c: Fix common/ includes.
12254         * obsd-nat.c: Fix common/ includes.
12255         * nat/x86-linux.c: Fix common/ includes.
12256         * nat/x86-linux-dregs.c: Fix common/ includes.
12257         * nat/x86-dregs.h: Fix common/ includes.
12258         * nat/x86-dregs.c: Fix common/ includes.
12259         * nat/ppc-linux.c: Fix common/ includes.
12260         * nat/mips-linux-watch.h: Fix common/ includes.
12261         * nat/mips-linux-watch.c: Fix common/ includes.
12262         * nat/linux-waitpid.c: Fix common/ includes.
12263         * nat/linux-ptrace.h: Fix common/ includes.
12264         * nat/linux-ptrace.c: Fix common/ includes.
12265         * nat/linux-procfs.c: Fix common/ includes.
12266         * nat/linux-personality.c: Fix common/ includes.
12267         * nat/linux-osdata.c: Fix common/ includes.
12268         * nat/linux-namespaces.c: Fix common/ includes.
12269         * nat/linux-btrace.h: Fix common/ includes.
12270         * nat/linux-btrace.c: Fix common/ includes.
12271         * nat/fork-inferior.c: Fix common/ includes.
12272         * nat/amd64-linux-siginfo.c: Fix common/ includes.
12273         * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
12274         * nat/aarch64-linux.c: Fix common/ includes.
12275         * nat/aarch64-linux-hw-point.h: Fix common/ includes.
12276         * nat/aarch64-linux-hw-point.c: Fix common/ includes.
12277         * namespace.h: Fix common/ includes.
12278         * mips-linux-tdep.c: Fix common/ includes.
12279         * minsyms.c: Fix common/ includes.
12280         * mi/mi-parse.h: Fix common/ includes.
12281         * mi/mi-main.c: Fix common/ includes.
12282         * mi/mi-cmd-env.c: Fix common/ includes.
12283         * memrange.h: Fix common/ includes.
12284         * memattr.c: Fix common/ includes.
12285         * maint.h: Fix common/ includes.
12286         * maint.c: Fix common/ includes.
12287         * main.c: Fix common/ includes.
12288         * machoread.c: Fix common/ includes.
12289         * location.c: Fix common/ includes.
12290         * linux-thread-db.c: Fix common/ includes.
12291         * linux-nat.c: Fix common/ includes.
12292         * linux-fork.c: Fix common/ includes.
12293         * inline-frame.c: Fix common/ includes.
12294         * infrun.c: Fix common/ includes.
12295         * inflow.c: Fix common/ includes.
12296         * inferior.h: Fix common/ includes.
12297         * inferior.c: Fix common/ includes.
12298         * infcmd.c: Fix common/ includes.
12299         * inf-ptrace.c: Fix common/ includes.
12300         * inf-child.c: Fix common/ includes.
12301         * ia64-linux-nat.c: Fix common/ includes.
12302         * i387-tdep.c: Fix common/ includes.
12303         * i386-tdep.c: Fix common/ includes.
12304         * i386-linux-tdep.c: Fix common/ includes.
12305         * i386-linux-nat.c: Fix common/ includes.
12306         * i386-go32-tdep.c: Fix common/ includes.
12307         * i386-fbsd-tdep.c: Fix common/ includes.
12308         * i386-fbsd-nat.c: Fix common/ includes.
12309         * guile/scm-type.c: Fix common/ includes.
12310         * guile/guile.c: Fix common/ includes.
12311         * go32-nat.c: Fix common/ includes.
12312         * gnu-nat.c: Fix common/ includes.
12313         * gdbthread.h: Fix common/ includes.
12314         * gdbarch-selftests.c: Fix common/ includes.
12315         * gdb_usleep.c: Fix common/ includes.
12316         * gdb_select.h: Fix common/ includes.
12317         * gdb_bfd.c: Fix common/ includes.
12318         * gcore.c: Fix common/ includes.
12319         * fork-child.c: Fix common/ includes.
12320         * findvar.c: Fix common/ includes.
12321         * fbsd-nat.c: Fix common/ includes.
12322         * event-top.c: Fix common/ includes.
12323         * event-loop.c: Fix common/ includes.
12324         * dwarf2read.c: Fix common/ includes.
12325         * dwarf2loc.c: Fix common/ includes.
12326         * dwarf2-frame.c: Fix common/ includes.
12327         * dwarf-index-cache.c: Fix common/ includes.
12328         * dtrace-probe.c: Fix common/ includes.
12329         * disasm-selftests.c: Fix common/ includes.
12330         * defs.h: Fix common/ includes.
12331         * csky-tdep.c: Fix common/ includes.
12332         * cp-valprint.c: Fix common/ includes.
12333         * cp-support.h: Fix common/ includes.
12334         * cp-support.c: Fix common/ includes.
12335         * corelow.c: Fix common/ includes.
12336         * completer.h: Fix common/ includes.
12337         * completer.c: Fix common/ includes.
12338         * compile/compile.c: Fix common/ includes.
12339         * compile/compile-loc2c.c: Fix common/ includes.
12340         * compile/compile-cplus-types.c: Fix common/ includes.
12341         * compile/compile-cplus-symbols.c: Fix common/ includes.
12342         * command.h: Fix common/ includes.
12343         * cli/cli-dump.c: Fix common/ includes.
12344         * cli/cli-cmds.c: Fix common/ includes.
12345         * charset.c: Fix common/ includes.
12346         * build-id.c: Fix common/ includes.
12347         * btrace.h: Fix common/ includes.
12348         * btrace.c: Fix common/ includes.
12349         * breakpoint.h: Fix common/ includes.
12350         * breakpoint.c: Fix common/ includes.
12351         * ax.h: 
12352         (enum agent_op): Fix common/ includes.
12353         * ax-general.c (struct aop_map): Fix common/ includes.
12354         * ax-gdb.c: Fix common/ includes.
12355         * auxv.c: Fix common/ includes.
12356         * auto-load.c: Fix common/ includes.
12357         * arm-tdep.c: Fix common/ includes.
12358         * arch/riscv.c: Fix common/ includes.
12359         * arch/ppc-linux-common.c: Fix common/ includes.
12360         * arch/i386.c: Fix common/ includes.
12361         * arch/arm.c: Fix common/ includes.
12362         * arch/arm-linux.c: Fix common/ includes.
12363         * arch/arm-get-next-pcs.c: Fix common/ includes.
12364         * arch/amd64.c: Fix common/ includes.
12365         * arch/aarch64.c: Fix common/ includes.
12366         * arch/aarch64-insn.c: Fix common/ includes.
12367         * arch-utils.c: Fix common/ includes.
12368         * amd64-windows-tdep.c: Fix common/ includes.
12369         * amd64-tdep.c: Fix common/ includes.
12370         * amd64-sol2-tdep.c: Fix common/ includes.
12371         * amd64-obsd-tdep.c: Fix common/ includes.
12372         * amd64-nbsd-tdep.c: Fix common/ includes.
12373         * amd64-linux-tdep.c: Fix common/ includes.
12374         * amd64-linux-nat.c: Fix common/ includes.
12375         * amd64-fbsd-tdep.c: Fix common/ includes.
12376         * amd64-fbsd-nat.c: Fix common/ includes.
12377         * amd64-dicos-tdep.c: Fix common/ includes.
12378         * amd64-darwin-tdep.c: Fix common/ includes.
12379         * agent.c: Fix common/ includes.
12380         * ada-lang.h: Fix common/ includes.
12381         * ada-lang.c: Fix common/ includes.
12382         * aarch64-tdep.c: Fix common/ includes.
12383
12384 2019-01-25  Tom Tromey  <[email protected]>
12385
12386         * common/create-version.sh: Use common/version.h.
12387
12388 2019-01-24  Pedro Alves  <[email protected]>
12389
12390         * infrun.c (signal_stop, signal_print, signal_program)
12391         (signal_catch, signal_pass): Now arrays instead of pointers.
12392         (update_signals_program_target, do_target_resume)
12393         (signal_catch_update, handle_command, _initialize_infrun): Adjust.
12394         * linux-nat.c (linux_nat_target::pass_signals)
12395         (linux_nat_target::create_inferior, linux_nat_target::attach):
12396         Adjust.
12397         * linux-nat.h (linux_nat_target::pass_signals): Adjust.
12398         * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
12399         * procfs.c (procfs_target::pass_signals): Adjust.
12400         * record-full.c (record_full_target::resume): Adjust.
12401         * remote.c (remote_target::pass_signals)
12402         (remote_target::program_signals): Adjust.
12403         * target-debug.h (target_debug_print_signals): Now takes a
12404         gdb::array_view as parameter.  Adjust.
12405         * target.h (target_ops) <pass_signals, program_signals>: Replace
12406         pointer and length parameters with gdb::array_view.
12407         (target_pass_signals, target_program_signals): Likewise.
12408         * target-delegates.c: Regenerate.
12409
12410 2019-01-24  Pedro Alves  <[email protected]>
12411
12412         * common/forward-scope-exit.h
12413         (forward_scope_exit::forward_scope_exit): Pass arguments to
12414         m_bind_function directly, instead of creating a std::bind and
12415         copying that.
12416
12417 2019-01-24  Alan Hayward  <[email protected]>
12418
12419         * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
12420         for static members.
12421         (pass_in_v_vfp_candidate): Likewise.
12422
12423 2019-01-23  Tom Tromey  <[email protected]>
12424             Pedro Alves  <[email protected]>
12425
12426         * regcache.c (class regcache_invalidator): Remove.
12427         (regcache::raw_write): Use make_scope_exit.
12428
12429 2019-01-23  Tom Tromey  <[email protected]>
12430
12431         * ui-out.h (class ui_out_emit_type): Update comment.
12432
12433 2019-01-23  Tom Tromey  <[email protected]>
12434
12435         * infrun.c (fetch_inferior_event): Update comment.
12436
12437 2019-01-23  Tom Tromey  <[email protected]>
12438             Pedro Alves  <[email protected]>
12439
12440         * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
12441         parameter.
12442         (fetch_inferior_event): Use SCOPE_EXIT.
12443
12444
12445 2019-01-23  Tom Tromey  <[email protected]>
12446             Pedro Alves  <[email protected]>
12447
12448         * infrun.c (disable_thread_events): Delete.
12449         (stop_all_threads): Use SCOPE_EXIT.
12450
12451 2019-01-23  Tom Tromey  <[email protected]>
12452             Pedro Alves  <[email protected]>
12453
12454         * symfile.c: Include forward-scope-exit.h.
12455         (clear_symtab_users_cleanup): Replace forward declaration with
12456         a FORWARD_SCOPE_EXIT.
12457         (syms_from_objfile_1): Use the forward_scope_exit and
12458         gdb::optional instead of cleanup_function.
12459         (reread_symbols): Use the forward_scope_exit instead of
12460         cleanup_function.
12461         (clear_symtab_users_cleanup): Remove function.
12462
12463 2019-01-23  Tom Tromey  <[email protected]>
12464             Pedro Alves  <[email protected]>
12465
12466         * linux-nat.c: Include scope-exit.h.
12467         (cleanup_target_stop): Remove.
12468         (linux_nat_target::static_tracepoint_markers_by_strid): Use
12469         SCOPE_EXIT.
12470
12471 2019-01-23  Tom Tromey  <[email protected]>
12472             Pedro Alves  <[email protected]>
12473
12474         * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
12475         (call_function_by_hand_dummy): Use SCOPE_EXIT.
12476
12477 2019-01-23  Tom Tromey  <[email protected]>
12478             Andrew Burgess  <[email protected]>
12479             Pedro Alves  <[email protected]>
12480
12481         * infrun.c (fetch_inferior_event): Use scope_exit.
12482         * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
12483         * top.c (execute_command): Use scope_exit.
12484         * breakpoint.c (bpstat_do_actions): Use scope_exit.
12485         * utils.c (do_bpstat_clear_actions_cleanup)
12486         (make_bpstat_clear_actions_cleanup): Remove.
12487
12488 2019-01-23  Tom Tromey  <[email protected]>
12489             Pedro Alves  <[email protected]>
12490
12491         * infrun.c: Include "common/scope-exit.h"
12492         (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
12493         (wait_for_inferior): Use SCOPE_EXIT.
12494         (fetch_inferior_event): Use scope_exit.
12495
12496 2019-01-23  Tom Tromey  <[email protected]>
12497             Pedro Alves  <[email protected]>
12498
12499         * breakpoint.c (create_breakpoint): Remove cleanup.
12500
12501 2019-01-23  Tom Tromey  <[email protected]>
12502             Andrew Burgess  <[email protected]>
12503             Pedro Alves  <[email protected]>
12504
12505 2019-01-23  Pedro Alves  <[email protected]>
12506
12507         * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
12508
12509 2019-01-23  Pedro Alves  <[email protected]>
12510             Andrew Burgess  <[email protected]>
12511
12512         * gdbthread.h: Include "common/forward-scope-exit.h".
12513         (scoped_finish_thread_state): Redefine custom class in terms of
12514         forward_scope_exit.
12515
12516 2019-01-23  Pedro Alves  <[email protected]>
12517             Andrew Burgess  <[email protected]>
12518
12519         * common/forward-scope-exit.h: New file.
12520
12521 2019-01-23  Pedro Alves  <[email protected]>
12522             Andrew Burgess  <[email protected]>
12523             Tom Tromey  <[email protected]>
12524
12525         * common/scope-exit.h: New file.
12526
12527 2019-01-23  Pedro Alves  <[email protected]>
12528
12529         * common/preprocessor.h (ESC): Rename to ...
12530         (ESC_PARENS): ... this.
12531         * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
12532         (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
12533
12534 2019-01-23  Tom Tromey  <[email protected]>
12535
12536         * language.h (class scoped_switch_to_sym_language_if_auto):
12537         Initialize m_lang in both cases.
12538
12539 2019-01-23  Alan Hayward  <[email protected]>
12540
12541         * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
12542         with XCNEW.
12543
12544 2019-01-22  Tom Tromey  <[email protected]>
12545
12546         * corelow.c: Do not include sys/file.h.
12547
12548 2019-01-22  Tom Tromey  <[email protected]>
12549
12550         * tui/tui-wingeneral.h: Include gdb_curses.h.
12551
12552 2019-01-22  Tom Tromey  <[email protected]>
12553
12554         * source-cache.h (class source_cache) <get_source_lines,
12555         get_plain_source_lines, extract_lines>: Rename "lines" parameter.
12556
12557 2019-01-22  Tom Tromey  <[email protected]>
12558
12559         * remote-fileio.h (struct remote_target): Declare.
12560
12561 2019-01-22  Tom Tromey  <[email protected]>
12562
12563         * python/py-arch.c: Do not include py-ref.h.
12564         * python/py-bpevent.c: Do not include py-ref.h.
12565         * python/py-cmd.c: Do not include py-ref.h.
12566         * python/py-continueevent.c: Do not include py-ref.h.
12567         * python/py-event.h: Do not include py-ref.h.
12568         * python/py-evtregistry.c: Do not include py-ref.h.
12569         * python/py-finishbreakpoint.c: Do not include py-ref.h.
12570         * python/py-frame.c: Do not include py-ref.h.
12571         * python/py-framefilter.c: Do not include py-ref.h.
12572         * python/py-function.c: Do not include py-ref.h.
12573         * python/py-infevents.c: Do not include py-ref.h.
12574         * python/py-linetable.c: Do not include py-ref.h.
12575         * python/py-objfile.c: Do not include py-ref.h.
12576         * python/py-param.c: Do not include py-ref.h.
12577         * python/py-prettyprint.c: Do not include py-ref.h.
12578         * python/py-progspace.c: Do not include py-ref.h.
12579         * python/py-symbol.c: Do not include py-ref.h.
12580         * python/py-symtab.c: Do not include py-ref.h.
12581         * python/py-type.c: Do not include py-ref.h.
12582         * python/py-unwind.c: Do not include py-ref.h.
12583         * python/py-utils.c: Do not include py-ref.h.
12584         * python/py-value.c: Do not include py-ref.h.
12585         * python/py-varobj.c: Do not include py-ref.h.
12586         * python/py-xmethods.c: Do not include py-ref.h.
12587         * python/python.c: Do not include py-ref.h.
12588         * varobj.c: Do not include py-ref.h.
12589
12590 2019-01-22  Tom Tromey  <[email protected]>
12591
12592         * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
12593         keyword for bcache.
12594
12595 2019-01-22  Tom Tromey  <[email protected]>
12596
12597         * compile/compile-cplus-types.c: Remove a comment by #include.
12598
12599 2019-01-22  Tom Tromey  <[email protected]>
12600
12601         * compile/gcc-c-plugin.h: Include compile-internal.h.
12602
12603 2019-01-22  Tom Tromey  <[email protected]>
12604
12605         * stabsread.c (EXTERN): Do not define.
12606         (symnum, next_symbol_text_func, processing_gcc_compilation)
12607         (within_function, global_sym_chain, global_stabs)
12608         (previous_stab_code, this_object_header_files)
12609         (n_this_object_header_files)
12610         (n_allocated_this_object_header_files): Define.
12611         * stabsread.h (EXTERN): Never define.  Use "extern".
12612
12613 2019-01-22  Philippe Waroquiers  <[email protected]>
12614
12615         * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
12616         history_value.
12617
12618 2019-01-21  Tom Tromey  <[email protected]>
12619
12620         * ui-out.c: Fix includes.
12621         * tui/tui-source.c: Fix includes.
12622         * target.c: Fix includes.
12623         * remote.c: Fix includes.
12624         * regcache.c: Fix includes.
12625         * python/py-block.c: Fix includes.
12626         * printcmd.c: Fix includes.
12627         * or1k-tdep.c: Fix includes.
12628         * mi/mi-main.c: Fix includes.
12629         * m32r-tdep.c: Fix includes.
12630         * csky-tdep.c: Fix includes.
12631         * compile/compile-cplus-types.c: Fix includes.
12632         * cli/cli-interp.c: Fix includes.
12633
12634 2019-01-21  Alan Hayward  <[email protected]>
12635
12636         * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
12637         for padding.
12638
12639 2019-01-16  Tom Tromey  <[email protected]>
12640
12641         * objfiles.h (struct minimal_symbol_iterator): Rename.  Move
12642         earlier.
12643         (struct objfile) <msymbols_range>: Move from top level.
12644         <msymbols>: New method.
12645         (class objfile_msymbols): Remove.
12646         * symtab.c (default_collect_symbol_completion_matches_break_on):
12647         Update.
12648         * symmisc.c (dump_msymbols): Update.
12649         * stabsread.c (scan_file_globals): Update.
12650         * objc-lang.c (info_selectors_command, info_classes_command)
12651         (find_methods): Update.
12652         * minsyms.c (find_solib_trampoline_target): Update.
12653         * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
12654         * coffread.c (coff_symfile_read): Update.
12655         * ada-lang.c (ada_lookup_simple_minsym)
12656         (ada_collect_symbol_completion_matches): Update.
12657
12658 2019-01-16  Tom Tromey  <[email protected]>
12659
12660         * objfiles.h (class objfile_msymbols) <iterator>: Change argument
12661         type.  Remove no-argument constructor.
12662         <iterator::operator++>: Simplify.
12663         <begin>: Update.
12664         <end>: Use minimal_symbol_count.
12665
12666 2019-01-16  Tom Tromey  <[email protected]>
12667
12668         * objfiles.h (struct objfile) <psymtabs>: New method.
12669         (class objfile_psymtabs): Remove.
12670         * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
12671         typedef.
12672         <range>: New method.
12673         (require_partial_symbols): Change return type.
12674         * psymtab.c (require_partial_symbols)
12675         (psym_expand_symtabs_matching): Update.
12676         * mdebugread.c (parse_partial_symbols): Update.
12677         * dbxread.c (dbx_end_psymtab): Update.
12678
12679 2019-01-15  Tom Tromey  <[email protected]>
12680
12681         * symtab.c (lookup_objfile_from_block)
12682         (lookup_symbol_in_objfile_symtabs)
12683         (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
12684         (find_line_symtab, info_sources_command)
12685         (default_collect_symbol_completion_matches_break_on)
12686         (make_source_files_completion_list): Update.
12687         * symmisc.c (print_objfile_statistics, dump_objfile)
12688         (maintenance_print_symbols, maintenance_info_symtabs)
12689         (maintenance_check_symtabs, maintenance_info_line_tables):
12690         Update.
12691         * source.c (select_source_symtab)
12692         (forget_cached_source_info_for_objfile): Update.
12693         * objfiles.h (class objfile_compunits): Remove.
12694         (struct objfile) <compunits_range>: New typedef.
12695         (compunits): New method.
12696         * objfiles.c (objfile_relocate1): Update.
12697         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
12698         * maint.c (count_symtabs_and_blocks): Update.
12699         * linespec.c (iterate_over_all_matching_symtabs): Update.
12700         * cp-support.c (add_symbol_overload_list_qualified): Update.
12701         * coffread.c (coff_symtab_read): Update.
12702         * ada-lang.c (add_nonlocal_symbols)
12703         (ada_collect_symbol_completion_matches)
12704         (ada_add_global_exceptions): Update.
12705
12706 2019-01-15  Tom Tromey  <[email protected]>
12707
12708         * progspace.h (program_space) <objfiles_safe_range>: New
12709         typedef.
12710         <objfiles_safe>: New method.
12711         * objfiles.h (class all_objfiles_safe): Remove.
12712         * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
12713         * jit.c (jit_inferior_exit_hook): Update.
12714
12715 2019-01-17  Tom Tromey  <[email protected]>
12716
12717         * progspace.h (program_space) <objfiles_range>: New typedef.
12718         <objfiles>: New method.
12719         <objfiles_head>: Rename from objfiles.
12720         (object_files): Update.
12721         * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
12722         * guile/scm-pretty-print.c
12723         (ppscm_find_pretty_printer_from_objfiles): Update.
12724         * guile/scm-objfile.c (gdbscm_objfiles): Update.
12725         * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
12726         Update.
12727         * python/py-progspace.c (pspy_get_objfiles): Update.
12728         * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
12729         Update.
12730         * python/py-objfile.c (objfpy_lookup_objfile_by_name)
12731         (objfpy_lookup_objfile_by_build_id): Update.
12732         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
12733         * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
12734         Update.
12735         * symtab.c (iterate_over_symtabs, matching_obj_sections)
12736         (expand_symtab_containing_pc, lookup_objfile_from_block)
12737         (lookup_static_symbol, basic_lookup_transparent_type)
12738         (find_pc_sect_compunit_symtab, find_symbol_at_address)
12739         (find_line_symtab, info_sources_command)
12740         (default_collect_symbol_completion_matches_break_on)
12741         (make_source_files_completion_list, find_main_name): Update.
12742         * symmisc.c (print_symbol_bcache_statistics)
12743         (print_objfile_statistics, maintenance_print_symbols)
12744         (maintenance_print_msymbols, maintenance_print_objfiles)
12745         (maintenance_info_symtabs, maintenance_check_symtabs)
12746         (maintenance_expand_symtabs, maintenance_info_line_tables):
12747         Update.
12748         * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
12749         (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
12750         (map_overlay_command, unmap_overlay_command)
12751         (simple_overlay_update, expand_symtabs_matching)
12752         (map_symbol_filenames): Update.
12753         * symfile-debug.c (set_debug_symfile): Update.
12754         * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
12755         Update.
12756         * source.c (select_source_symtab, forget_cached_source_info):
12757         Update.
12758         * solib.c (solib_read_symbols): Update.
12759         * solib-spu.c (append_ocl_sos): Update.
12760         * psymtab.c (maintenance_print_psymbols)
12761         (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
12762         * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
12763         * printcmd.c (info_symbol_command): Update.
12764         * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
12765         Update.
12766         * objfiles.h (class all_objfiles): Remove.
12767         * objfiles.c (have_partial_symbols, have_full_symbols)
12768         (have_minimal_symbols, qsort_cmp, update_section_map)
12769         (shared_objfile_contains_address_p)
12770         (default_iterate_over_objfiles_in_search_order): Update.
12771         * objc-lang.c (info_selectors_command, info_classes_command)
12772         (find_methods): Update.
12773         * minsyms.c (find_solib_trampoline_target): Update.
12774         * maint.c (maintenance_info_sections)
12775         (maintenance_translate_address, count_symtabs_and_blocks):
12776         Update.
12777         * main.c (captured_main_1): Update.
12778         * linux-thread-db.c (try_thread_db_load_from_pdir)
12779         (has_libpthread): Update.
12780         * linespec.c (iterate_over_all_matching_symtabs)
12781         (search_minsyms_for_name): Update.
12782         * jit.c (jit_find_objf_with_entry_addr): Update.
12783         * hppa-tdep.c (find_unwind_entry)
12784         (hppa_lookup_stub_minimal_symbol): Update.
12785         * gcore.c (gcore_create_callback, objfile_find_memory_regions):
12786         Update.
12787         * elfread.c (elf_gnu_ifunc_resolve_by_cache)
12788         (elf_gnu_ifunc_resolve_by_got): Update.
12789         * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
12790         * dwarf-index-write.c (save_gdb_index_command): Update.
12791         * cp-support.c (add_symbol_overload_list_qualified): Update.
12792         * breakpoint.c (create_overlay_event_breakpoint)
12793         (create_longjmp_master_breakpoint)
12794         (create_std_terminate_master_breakpoint)
12795         (create_exception_master_breakpoint): Update.
12796         * blockframe.c (find_pc_partial_function): Update.
12797         * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
12798         (ada_collect_symbol_completion_matches)
12799         (ada_add_global_exceptions): Update.
12800
12801 2019-01-17  Tom Tromey  <[email protected]>
12802
12803         * solib-target.c (lm_info_target_p): Remove typedef.  Don't
12804         declare VEC.
12805         (solib_target_parse_libraries): Change return type.
12806         (library_list_start_segment, library_list_start_section)
12807         (library_list_end_library, library_list_start_library); Update.
12808         (solib_target_free_library_list): Remove.
12809         (solib_target_parse_libraries): Remove cleanup.  Change return
12810         type.
12811         (solib_target_current_sos): Update.
12812
12813 2019-01-17  Tom Tromey  <tromey@bapiya>
12814
12815         * valprint.c: Replace "the the" with "the".
12816         * symtab.c: Replace "the the" with "the".
12817         * solib.c: Replace "the the" with "the".
12818         * solib-dsbt.c: Replace "the the" with "the".
12819         * linespec.c: Replace "the the" with "the".
12820         * dwarf2loc.h: Replace "the the" with "the".
12821         * amd64-windows-tdep.c: Replace "the the" with "the".
12822         * aarch64-tdep.c: Replace "the the" with "the".
12823
12824 2019-01-16  Keith Seitz  <[email protected]>
12825
12826         PR gdb/23773
12827         * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
12828         <builder>: Rename to ..
12829         <m_builder>: ... this and make private.
12830         (dwarf2_cu::get_builder): New method.  Change all users of
12831         `builder' to use this method.
12832         (dwarf2_start_symtab): Move to ...
12833         (dwarf2_cu::start_symtab): ... here.  Update all callers
12834         (setup_type_unit_groups): Move to ...
12835         (dwarf2_cu::setup_type_unit_groups): ... here.  Update all
12836         callers.
12837         (dwarf2_cu::reset_builder): New method.
12838         (process_full_compunit, process_full_type_unit): Use
12839         dwarf2_cu::reset_builder.
12840         (follow_die_offset): Record the ancestor CU if it is different
12841         from the followed DIE's CU.
12842         (follow_die_sig_1): Likewise.
12843
12844 2019-01-15  Tom Tromey  <[email protected]>
12845
12846         * remote.c (class remote_state) <buf>: Now a char_vector.
12847         <buf_size>: Remove.
12848         (remote_target::getpkt): Change type of buf.  Remove sizeof_buf
12849         parameter.
12850         (remote_target::getpkt_or_notif_sane_1)
12851         (remote_target::getpkt_sane)
12852         (remote_target::getpkt_or_notif_sane): Likewise.
12853         (class remote_target) <putpkt>: New overload.
12854         (remote_target::read_frame): Change type of "buf_p".  Remove
12855         sizeof_p parameter.
12856         (packet_ok): New overload.
12857         (packet_check_result): New overload.
12858         Update all uses.
12859
12860 2019-01-14  Tom Tromey  <[email protected]>
12861
12862         * remote-notif.c (handle_notification, remote_notif_ack)
12863         (remote_notif_parse): Make "buf" const.
12864         * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
12865         const.
12866         (remote_notif_parse, remote_notif_ack, handle_notification):
12867         Likewise.
12868         * remote.c (remote_notif_stop_parse): Make "buf" const.
12869         (remote_target::remote_parse_stop_reply): Make "buf" const.
12870         (remote_notif_stop_ack): Make "buf" const.
12871
12872 2019-01-14  Tom Tromey  <[email protected]>
12873
12874         * remote.c (remote_console_output): Make parameter const.
12875
12876 2019-01-14  Tom Tromey  <[email protected]>
12877
12878         * target-debug.h (target_debug_print_signals): Constify.
12879         * nto-procfs.c (nto_procfs_target::pass_signals): Update.
12880         * procfs.c (procfs_target::pass_signals): Update.
12881         * linux-nat.c (linux_nat_target::pass_signals): Update.
12882         * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
12883         * target-delegates.c: Rebuild.
12884         * remote.c (remote_target::program_signals): Update.
12885         (remote_target::pass_signals): Update.
12886         * target.c (target_pass_signals): Constify argument.
12887         (target_program_signals): Likewise.
12888         * target.h (struct target_ops) <pass_signals, program_signals>:
12889         Constify argument.
12890         (target_pass_signals, target_program_signals): Constify argument.
12891
12892 2019-01-14  Tom Tromey  <[email protected]>
12893
12894         PR tui/28819:
12895         * tui/tui-io.c (gdb_wgetch): Print \r when needed.
12896
12897 2019-01-14  Pedro Franco de Carvalho  <[email protected]>
12898
12899         * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
12900         field.
12901         * rs6000-tdep.c: Include reggroups.h.
12902         (IS_V_ALIAS_PSEUDOREG): Define.
12903         (rs6000_register_name): Return names for the "vX" aliases.
12904         (rs6000_pseudo_register_type): Return type for the "vX" aliases.
12905         (rs6000_pseudo_register_reggroup_p): Restore.  Handle "vX"
12906         aliases.  Call default_register_reggroup_p for all other
12907         pseudo-registers.
12908         (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
12909         New functions.
12910         (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
12911         Handle "vX" aliases.
12912         (v_alias_pseudo_register_collect): New function.
12913         (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
12914         (rs6000_gdbarch_init): Initialize "vX" aliases as
12915         pseudo-registers.  Restore registration of
12916         rs6000_pseudo_register_reggroup_p with
12917         set_tdesc_pseudo_register_reggroup_p.
12918
12919 2019-01-13  Max Filippov  <[email protected]>
12920
12921         * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
12922         tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
12923         set_gdbarch_num_pseudo_regs.
12924
12925 2019-01-12  Philippe Waroquiers  <[email protected]>
12926
12927         * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
12928         Remove arg prefixname, add do_set and do_show.
12929         Add member functions set_list and show_list.
12930         * cli/cli-style.c (class cli_style_option): Update accordingly.
12931         (style_set_list): Move to file scope.
12932         (style_show_list): Likewise.
12933         (set_style): Call help_list.
12934         (show_style): Call cmd_show_list.
12935         (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
12936         Update to use the new macro.
12937
12938 2019-10-12  Joel Brobecker  <[email protected]>
12939
12940         * ada-lang.c (_initialize_ada_language): Expand the help text
12941         for the "catch exception" command.
12942
12943 2019-01-12  Philippe Waroquiers  <[email protected]>
12944
12945         * symtab.c (matching_obj_sections): Initialize obj,
12946         declare it closer to its usage.
12947
12948 2019-01-10  Tom Tromey  <[email protected]>
12949
12950         * thread-iter.h (inf_threads_iterator): Use next_iterator.
12951         (basic_inf_threads_range): Remove.
12952         (inf_threads_range, inf_non_exited_threads_range)
12953         (safe_inf_threads_range): Use next_adapter.
12954
12955 2019-01-10  Keith Seitz  <[email protected]>
12956
12957         PR gdb/23712
12958         PR symtab/23010
12959         * dwarf2read.c (dw2_add_symbol_to_list): Remove.
12960         (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
12961
12962 2019-01-10  Keith Seitz  <[email protected]>
12963
12964         PR gdb/23712
12965         PR symtab/23010
12966         * dictionary.c (pending_to_vector): Remove.
12967         (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12968         Remove _1 suffix, replacing functions of the same name.  Update
12969         all callers.
12970         (dict_create_hashed, dict_create_hashed_expandable)
12971         (dict_create_linear, dict_create_linear_expandable, dict_free)
12972         (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
12973         Make functions static.
12974
12975 2019-01-10  Keith Seitz  <[email protected]>
12976
12977         PR gdb/23712
12978         PR symtab/23010
12979         * dictionary.h (struct dictionary): Replace declaration with
12980         multidictionary.
12981         (dict_create_hashed, dict_create_hashed_expandable)
12982         (dict_create_linear, dict_create_linear_expandable)
12983         (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
12984         (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
12985         (dict_iter_match_next, dict_size): Rename to "mdict_" versions
12986         taking multidictionary argument.
12987         [ALL_DICT_SYMBOLS]: Update for multidictionary.
12988         * block.h (struct block) <dict>: Change to multidictionary
12989         and rename `multidict'.
12990         * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
12991         symmisc.c: Update all dictionary references to multidictionary.
12992
12993 2019-01-10  Keith Seitz  <[email protected]>
12994
12995         PR gdb/23712
12996         PR symtab/23010
12997         * dictionary.c: Include unordered_map.
12998         (pending_to_vector): New function.
12999         (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
13000         Rewrite the non-"_1" functions to take vector instead
13001         of linked list.
13002         (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
13003         "new" _1 versions of the same name.
13004         (multidictionary): Define.
13005         (std::hash<enum language): New definition.
13006         (collate_pending_symbols_by_language, mdict_create_hashed)
13007         (mdict_create_hashed_expandable, mdict_create_linear)
13008         (mdict_create_linear_expandable, mdict_free)
13009         (find_language_dictionary, create_new_language_dictionary)
13010         (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
13011         (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
13012         (mdict_size, mdict_empty): New functions.
13013         * dictionary.h (mdict_iterator): Define.
13014
13015 2019-01-10  Pedro Alves  <[email protected]>
13016
13017         * breakpoint.c (read_uploaded_action)
13018         (create_tracepoint_from_upload): Adjust to use
13019         gdb::unique_xmalloc_ptr.
13020         * ctf.c (ctf_write_uploaded_tp):
13021         (SET_ARRAY_FIELD): Use emplace_back.
13022         (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
13023         * tracefile-tfile.c (tfile_write_uploaded_tp):
13024         * tracepoint.c (parse_tracepoint_definition): Adjust to use
13025         gdb::unique_xmalloc_ptr.
13026         * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
13027         at_string, cond_string, cmd_strings>: Replace char pointers
13028         with gdb::unique_xmalloc_ptr.
13029
13030 2019-01-10  Pedro Alves  <[email protected]>
13031
13032         * solib-target.c (library_list_start_library): Don't xstrdup name.
13033
13034 2019-01-10  Pedro Alves  <[email protected]>
13035
13036         * mdebugread.c (parse_partial_symbols): Use
13037         gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
13038
13039 2019-01-10  Andrew Burgess  <[email protected]>
13040
13041         * linux-fork.c (scoped_switch_fork_info)
13042         <~scoped_switch_fork_info>: Fix incorrect variable name.
13043
13044 2019-01-10  Andrew Burgess  <[email protected]>
13045
13046         * linux-fork.c (scoped_switch_fork_info)
13047         <scoped_switch_fork_info>: Make explicit.
13048         <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
13049
13050 2019-01-10  Tom Tromey  <[email protected]>
13051
13052         * objfiles.h (objfile::reset_psymtabs): Update.
13053         * objfiles.c (objfile::objfile): Update.
13054         * psymtab.h (psymtab_storage::obstack): Update.
13055         (psymtab_storage::m_obstack): Use gdb::optional.
13056         (class psymtab_storage): Update comment.  Remove objfile
13057         parameter.
13058         * psymtab.c (psymtab_storage::psymtab_storage): Update.
13059
13060 2019-01-10  Tom Tromey  <[email protected]>
13061
13062         * psymtab.h (psymtab_storage::allocate_psymtab): New method.
13063         <free_psymtabs>: Now private.
13064         * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
13065         (allocate_psymtab): Use new method.
13066
13067 2019-01-10  Tom Tromey  <[email protected]>
13068
13069         * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
13070         * psymtab.h (psymtab_storage::allocate_dependencies): New method.
13071         * mdebugread.c (parse_partial_symbols): Use
13072         allocate_dependencies.
13073         * dwarf2read.c (dwarf2_create_include_psymtab): Use
13074         allocate_dependencies.
13075         (process_psymtab_comp_unit_reader)
13076         (build_type_psymtab_dependencies): Likewise.
13077         * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
13078
13079 2019-01-10  Tom Tromey  <[email protected]>
13080
13081         * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
13082         PSYMBOL_SET_LANGUAGE.
13083         (allocate_psymtab): Allocate psymtab on the psymtab obstack.
13084
13085 2019-01-10  Tom Tromey  <[email protected]>
13086
13087         * psymtab.h (psymtab_storage::obstack): New method.
13088         <m_obstack>: Rename from obstack; now private.
13089         * psymtab.c (psymtab_storage): Update.
13090         * dwarf2read.c (create_addrmap_from_index)
13091         (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
13092         Update.
13093
13094 2019-01-10  Tom Tromey  <[email protected]>
13095
13096         * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
13097         * objfiles.h (objfile::reset_psymtabs): New method.
13098
13099 2019-01-10  Tom Tromey  <[email protected]>
13100
13101         * symmisc.c (print_symbol_bcache_statistics): Update.
13102         (print_objfile_statistics): Update.
13103         * symfile.c (reread_symbols): Update.
13104         * psymtab.h (class psymtab_storage): New.
13105         * psymtab.c (psymtab_storage): New constructor.
13106         (~psymtab_storage): New destructor.
13107         (require_partial_symbols): Update.
13108         (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
13109         (find_pc_sect_psymtab, find_pc_sect_psymbol)
13110         (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
13111         (psym_dump, recursively_search_psymtabs, psym_has_symbols)
13112         (psym_find_compunit_symtab_by_address, sort_pst_symbols)
13113         (start_psymtab_common, end_psymtab_common)
13114         (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
13115         (allocate_psymtab): Update.
13116         (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
13117         Update.
13118         (dump_psymtab_addrmap, maintenance_print_psymbols)
13119         (maintenance_check_psymtabs): Update.
13120         (class objfile_psymtabs): Move to objfiles.h.
13121         * psympriv.h (discard_psymtab): Now inline.
13122         (psymtab_discarder::psymtab_discarder): Update.
13123         (psymtab_discarder::~psymtab_discarder): Update.
13124         (ALL_OBJFILE_PSYMTABS): Rewrite.
13125         * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
13126         free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
13127         Remove fields.
13128         <partial_symtabs>: New field.
13129         (class objfile_psymtabs): Move from psymtab.h.  Update.
13130         * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
13131         psymbol_cache.
13132         (objfile::~objfile): Don't destroy psymbol_cache.
13133         * mdebugread.c (parse_partial_symbols): Update.
13134         * dwarf2read.c (create_addrmap_from_index)
13135         (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13136         (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
13137         (add_partial_subprogram, dwarf2_ranges_read): Update.
13138         * dwarf-index-write.c (write_address_map)
13139         (write_one_signatured_type, recursively_write_psymbols)
13140         (class debug_names, class debug_names, write_psymtabs_to_index):
13141         Update.
13142
13143 2019-01-10  Tom Tromey  <[email protected]>
13144
13145         * symtab.h (SYMBOL_SET_NAMES): Update.
13146         (symbol_set_names): Update.
13147         (MSYMBOL_SET_NAMES): Update.
13148         * symtab.c (symbol_set_names): Change argument to be an
13149         objfile_per_bfd_storage.
13150         * psymtab.c (add_psymbol_to_bcache): Update.
13151         * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
13152
13153 2019-01-10  Tom Tromey  <[email protected]>
13154
13155         * symtab.c (create_demangled_names_hash): Change argument to be an
13156         objfile_per_bfd_storage.
13157         (symbol_set_names): Update.
13158
13159 2019-01-10  Tom Tromey  <[email protected]>
13160
13161         * xcoffread.c (xcoff_initial_scan): Unconditionally call
13162         init_psymbol_list.
13163         * psymtab.c (init_psymbol_list): Do nothing if already called.
13164         * psympriv.h (init_psymbol_list): Add comment.
13165         * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
13166         init_psymbol_list.
13167         * dbxread.c (dbx_symfile_read): Unconditionally call
13168         init_psymbol_list.
13169
13170 2019-01-10  Tom Tromey  <[email protected]>
13171
13172         * xcoffread.c (scan_xcoff_symtab): Update.
13173         * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
13174         "where".
13175         * mdebugread.c (parse_partial_symbols)
13176         (handle_psymbol_enumerators): Update.
13177         * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
13178         * dbxread.c (read_dbx_symtab): Update.
13179         * psympriv.h (psymbol_placement): New enum.
13180         (add_psymbol_to_list): Update.
13181
13182 2019-01-10  Tom Tromey  <[email protected]>
13183
13184         * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
13185         static_psymbols parameters.
13186         (scan_xcoff_symtab): Update.
13187         * psymtab.c (start_psymtab_common): Remove global_psymbols and
13188         static_psymbols parameters.
13189         * psympriv.h (start_psymtab_common): Update.
13190         * mdebugread.c (parse_partial_symbols): Update.
13191         * dwarf2read.c (create_partial_symtab): Update.
13192         * dbxread.c (read_dbx_symtab): Update.
13193         (start_psymtab): Remove global_psymbols and static_psymbols
13194         parameters.
13195
13196 2019-01-10  Tom Tromey  <[email protected]>
13197
13198         * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
13199         * psymtab.c (allocate_psymtab): Add comment.
13200         * psympriv.h (allocate_psymtab): Add comment.
13201         * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
13202         initializations.
13203         * dbxread.c (dbx_end_psymtab): Remove some initializations.
13204
13205 2019-01-10  Tom Tromey  <[email protected]>
13206
13207         * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
13208         Don't declare.
13209         * mipsread.c: Include mdebugread.h.
13210         * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
13211         Declare.
13212         * elfread.c: Include mdebugread.h.
13213
13214 2019-01-09  Tom Tromey  <[email protected]>
13215
13216         * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
13217         * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
13218         * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
13219         (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
13220         (psym_lookup_symbol, psym_find_last_source_symtab)
13221         (psym_forget_cached_source_info, psym_print_stats)
13222         (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
13223         (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
13224         (psym_map_matching_symbols, psym_expand_symtabs_matching)
13225         (psym_find_compunit_symtab_by_address)
13226         (maintenance_print_psymbols, maintenance_info_psymtabs)
13227         (maintenance_check_psymtabs): Use ranged for.
13228         * psymtab.h (class objfile_psymtabs): New.
13229         (require_partial_symbols): Return objfile_psymtabs.
13230         * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
13231
13232 2019-01-09  Tom Tromey  <[email protected]>
13233
13234         * symfile.c (overlay_invalidate_all, find_pc_overlay)
13235         (find_pc_mapped_section, list_overlays_command)
13236         (map_overlay_command, unmap_overlay_command)
13237         (simple_overlay_update): Use all_objfiles.
13238         * spu-tdep.c (spu_overlay_update): Use all_objfiles.
13239         * printcmd.c (info_symbol_command): Use all_objfiles.
13240         * objfiles.h (ALL_OBJSECTIONS): Remove.
13241         * maint.c (maintenance_translate_address): Use all_objfiles.
13242         * gcore.c (gcore_create_callback): Use all_objfiles.
13243         (objfile_find_memory_regions): Likewise.
13244
13245 2019-01-09  Tom Tromey  <[email protected]>
13246
13247         * symtab.c (find_line_symtab, info_sources_command)
13248         (make_source_files_completion_list): Use objfile_compunits.
13249         * source.c (select_source_symtab): Use objfile_compunits.
13250         * objfiles.h (struct objfile): Update comment.
13251         (ALL_OBJFILES): Remove.
13252         (ALL_FILETABS): Remove.
13253         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
13254         objfile_compunits.
13255
13256 2019-01-09  Tom Tromey  <[email protected]>
13257
13258         * symmisc.c (print_objfile_statistics, dump_objfile)
13259         (maintenance_print_symbols): Use compunit_filetabs.
13260         * source.c (forget_cached_source_info_for_objfile): Use
13261         compunit_filetabs.
13262         * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
13263         (ALL_FILETABS): Use compunit_filetabs.
13264         * objfiles.c (objfile_relocate1): Use compunit_filetabs.
13265         * coffread.c (coff_symtab_read): Use compunit_filetabs.
13266
13267 2019-01-09  Tom Tromey  <[email protected]>
13268
13269         * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
13270         (compunit_filetabs): New.
13271         * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
13272         compunit_filetabs.
13273         (info_sources_command, make_source_files_completion_list): Remove
13274         declaration.
13275         * symmisc.c (print_objfile_statistics, dump_objfile)
13276         (maintenance_print_symbols): Remove declaration.
13277         (maintenance_info_symtabs): Use compunit_filetabs.
13278         (maintenance_info_line_tables): Likewise.
13279         * source.c (select_source_symtab): Change local variable name.
13280         (forget_cached_source_info_for_objfile): Remove declaration.
13281         * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
13282         * objfiles.c (objfile_relocate1): Remove declaration.
13283         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
13284         declaration.
13285         * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
13286         * coffread.c (coff_symtab_read): Remove declaration.
13287         * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
13288         compunit_filetabs.
13289
13290 2019-01-09  Tom Tromey  <[email protected]>
13291
13292         * symtab.c (lookup_objfile_from_block)
13293         (find_pc_sect_compunit_symtab, search_symbols)
13294         (default_collect_symbol_completion_matches_break_on): Use
13295         objfile_compunits.
13296         * objfiles.h (ALL_COMPUNITS): Remove.
13297         * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
13298         * cp-support.c (add_symbol_overload_list_qualified): Use
13299         objfile_compunits.
13300         * ada-lang.c (ada_collect_symbol_completion_matches)
13301         (ada_add_global_exceptions): Use objfile_compunits.
13302
13303 2019-01-09  Tom Tromey  <[email protected]>
13304
13305         * source.c (select_source_symtab)
13306         (forget_cached_source_info_for_objfile): Remove declaration.
13307         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
13308         declaration.
13309         * maint.c (count_symtabs_and_blocks): Remove declaration.
13310         * cp-support.c (add_symbol_overload_list_qualified): Remove
13311         declaration.
13312         * coffread.c (coff_symtab_read): Remove declaration.
13313         * symtab.c (lookup_symbol_in_objfile_symtabs)
13314         (basic_lookup_transparent_type_1): Use objfile_compunits.
13315         (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
13316         (info_sources_command, search_symbols)
13317         (default_collect_symbol_completion_matches_break_on)
13318         (make_source_files_completion_list): Remove declaration.
13319         * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
13320         (ada_collect_symbol_completion_matches)
13321         (ada_add_global_exceptions): Remove declaration.
13322         * linespec.c (iterate_over_all_matching_symtabs): Use
13323         objfile_compunits.
13324         * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
13325         (class objfile_compunits): New.
13326         (ALL_COMPUNITS): Use objfile_compunits.
13327         * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
13328         (maintenance_check_symtabs, maintenance_info_line_tables): Use
13329         objfile_compunits.
13330         * objfiles.c (objfile_relocate1): Use objfile_compunits.
13331
13332 2019-01-09  Tom Tromey  <[email protected]>
13333
13334         * symtab.c (search_symbols)
13335         (default_collect_symbol_completion_matches_break_on): Use
13336         objfile_msymbols.
13337         * ada-lang.c (ada_lookup_simple_minsym)
13338         (ada_collect_symbol_completion_matches): Use objfile_msymbols.
13339         * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
13340         * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
13341         objfile_msymbols.
13342         * coffread.c (coff_symfile_read): Use objfile_msymbols.
13343         * symmisc.c (dump_msymbols): Use objfile_msymbols.
13344         * objc-lang.c (find_methods): Use objfile_msymbols.
13345         (info_selectors_command, info_classes_command): Likewise.
13346         * stabsread.c (scan_file_globals): Use objfile_msymbols.
13347         * objfiles.h (class objfile_msymbols): New.
13348         (ALL_OBJFILE_MSYMBOLS): Remove.
13349         (ALL_MSYMBOLS): Remove.
13350
13351 2019-01-09  Tom Tromey  <[email protected]>
13352
13353         * common/next-iterator.h (next_adapter): Add Iterator template
13354         parameter.
13355         * objfiles.h (ALL_OBJFILES_SAFE): Remove.
13356         (class all_objfiles_safe): New.
13357         * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
13358         * objfiles.c (put_objfile_before): Update comment.
13359         (add_separate_debug_objfile): Likewise.
13360         (free_all_objfiles): Use all_objfiles_safe.
13361         (objfile_purge_solibs): Likewise.
13362
13363 2019-01-09  Tom Tromey  <[email protected]>
13364
13365         * symtab.c (iterate_over_symtabs, matching_obj_sections)
13366         (expand_symtab_containing_pc, lookup_static_symbol)
13367         (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
13368         (find_symbol_at_address, find_line_symtab, find_main_name): Use
13369         all_objfiles.
13370         * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
13371         * breakpoint.c (create_overlay_event_breakpoint)
13372         (create_longjmp_master_breakpoint)
13373         (create_std_terminate_master_breakpoint)
13374         (create_exception_master_breakpoint): Use all_objfiles.
13375         * linux-thread-db.c (try_thread_db_load_from_pdir)
13376         (has_libpthread): Use all_objfiles.
13377         * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
13378         * linespec.c (iterate_over_all_matching_symtabs)
13379         (search_minsyms_for_name): Use all_objfiles.
13380         * maint.c (maintenance_info_sections): Use all_objfiles.
13381         * main.c (captured_main_1): Use all_objfiles.
13382         * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
13383         * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
13384         * guile/scm-pretty-print.c
13385         (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
13386         * solib-spu.c (append_ocl_sos): Use all_objfiles.
13387         * symmisc.c (maintenance_print_symbols): Use all_objfiles.
13388         (maintenance_print_msymbols): Use all_objfiles.
13389         * source.c (select_source_symtab): Use all_objfiles.
13390         * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
13391         * symfile.c (remove_symbol_file_command)
13392         (expand_symtabs_matching, map_symbol_filenames): Use
13393         all_objfiles.
13394         * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
13395         all_objfiles.
13396         * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
13397         * objc-lang.c (find_methods): Use all_objfiles.
13398         * objfiles.c (have_partial_symbols, have_full_symbols)
13399         (have_minimal_symbols, qsort_cmp)
13400         (default_iterate_over_objfiles_in_search_order): Use
13401         all_objfiles.
13402         * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
13403         * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
13404         (maintenance_check_psymtabs): Use all_objfiles.
13405         (ALL_PSYMTABS): Remove.
13406         * compile/compile-object-run.c (do_module_cleanup): Use
13407         all_objfiles.
13408         * blockframe.c (find_pc_partial_function): Use all_objfiles.
13409         * cp-support.c (add_symbol_overload_list_qualified): Use
13410         all_objfiles.
13411         * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
13412         Use all_objfiles.
13413         * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
13414         * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
13415         all_objfiles.
13416         * python/py-objfile.c (objfpy_lookup_objfile_by_name)
13417         (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
13418         * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
13419         Uses all_objfiles.
13420         * solib.c (solib_read_symbols): Use all_objfiles
13421
13422 2019-01-09  Tom Tromey  <[email protected]>
13423
13424         * probe.c (parse_probes_in_pspace): Use all_objfiles.
13425         * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
13426         all_objfiles.
13427         * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
13428         * symmisc.c (print_symbol_bcache_statistics)
13429         (print_objfile_statistics, maintenance_print_objfiles)
13430         (maintenance_info_symtabs, maintenance_check_symtabs)
13431         (maintenance_expand_symtabs, maintenance_info_line_tables): Use
13432         all_objfiles.
13433         * source.c (forget_cached_source_info): Use all_objfiles.
13434         * symfile-debug.c (set_debug_symfile): Use all_objfiles.
13435         * elfread.c (elf_gnu_ifunc_resolve_by_cache)
13436         (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
13437         * objfiles.c (update_section_map): Use all_objfiles.
13438         (shared_objfile_contains_address_p): Likewise.
13439         * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
13440         * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
13441
13442 2019-01-09  Tom Tromey  <[email protected]>
13443
13444         * common/next-iterator.h: New file.
13445         * objfiles.h (class all_objfiles): New.
13446         (struct objfile_iterator): New.
13447
13448 2019-01-09  Philippe Waroquiers  <[email protected]>
13449
13450         * NEWS: Move the description of the changed "frame", "select-frame",
13451          and "info frame" commands to the Changed commands section.
13452
13453 2019-01-09  Simon Marchi  <[email protected]>
13454
13455         * gdbtypes.c (check_stub_method_group): Remove handling of old
13456         mangling schemes.
13457         * linespec.c (find_methods): Likewise.
13458         * stabsread.c (read_member_functions): Likewise.
13459         * valops.c (search_struct_method): Likewise.
13460         (value_struct_elt_for_reference): Likewise.
13461         * NEWS: Mention this change.
13462
13463 2019-01-09  Andrew Burgess  <[email protected]>
13464
13465         * cli/cli-cmds.c (list_command): Pass a source_lines_range to
13466         print_source_lines.
13467         * source.c (print_source_lines_base): Update line number check.
13468         (print_source_lines): New function.
13469         (source_lines_range::source_lines_range): New function.
13470         * source.h (class source_lines_range): New class.
13471         (print_source_lines): New declaration.
13472
13473 2019-01-09  Philippe Waroquiers  <[email protected]>
13474
13475         * linespec.c (linespec_state_destructor): Free self->canonical_names.
13476
13477 2019-01-08  Tom Tromey  <[email protected]>
13478             Simon Marchi  <[email protected]>
13479
13480         PR gdb/24060
13481         * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
13482         * ada-lex.l (DOLLAR_VARIABLE): Likewise.
13483         * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
13484         * f-exp.y (DOLLAR_VARIABLE): Likewise.
13485         * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
13486         * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
13487
13488 2019-01-08  Andrew Burgess  <[email protected]>
13489
13490         * source.c (select_source_symtab): Move header comment to
13491         declaration in source.h.
13492         (forget_cached_source_info_for_objfile): Likewise.
13493         (forget_cached_source_info): Likewise.
13494         (identify_source_line): Likewise.
13495         * source.h (identify_source_line): Move declaration from symtab.h
13496         and add comment from source.c
13497         (print_source_lines): Likewise.
13498         (forget_cached_source_info_for_objfile): Likewise.
13499         (forget_cached_source_info): Likewise.
13500         (select_source_symtab): Likewise.
13501         (enum print_source_lines_flag): Move definition from symtab.h.
13502         * symtab.h (identify_source_line): Move declaration to source.h.
13503         (print_source_lines): Likewise.
13504         (forget_cached_source_info_for_objfile): Likewise.
13505         (forget_cached_source_info): Likewise.
13506         (select_source_symtab): Likewise.
13507         (enum print_source_lines_flag): Move definition to source.h.
13508         * tui/tui-hooks.c: Add 'source.h' include.
13509
13510 2019-01-08  Andrew Burgess  <[email protected]>
13511
13512         * source.c (print_source_lines_base): Handle requests to print
13513         reverse line number sequences, and guard against empty lines
13514         string.
13515
13516 2019-01-08  Andrew Burgess  <[email protected]>
13517
13518         * source.c (print_source_lines_base): Fix skip of '\r' if next
13519         character is '\n'.
13520
13521 2019-01-06  Tom Tromey  <[email protected]>
13522
13523         * c-exp.y (struct c_parse_state) <macro_original_text,
13524         expansion_obstack>: New member.
13525         (macro_original_text, expansion_obstack): Remove globals.
13526         (scan_macro_expansion, scanning_macro_expansion)
13527         (finished_macro_expansion): Update.
13528         (scan_macro_cleanup): Remove.
13529         (yylex, c_parse): Update.
13530
13531 2019-01-06  Tom Tromey  <[email protected]>
13532
13533         * c-exp.y (struct c_parse_state) <strings>: New member.
13534         (operator_stoken): Update.
13535
13536 2019-01-06  Tom Tromey  <[email protected]>
13537
13538         * parser-defs.h (type_ptr): Remove typedef.  Don't declare VEC.
13539         (union type_stack_elt) <typelist_val>: Now a pointer to
13540         std::vector.
13541         (type_stack_cleanup): Don't declare.
13542         (push_typelist): Update.
13543         * parse.c (pop_typelist): Return a std::vector.
13544         (push_typelist): Take a std::vector.
13545         (follow_types): Update.  Do not free args.
13546         (type_stack_cleanup): Remove.
13547         * c-exp.y (struct c_parse_state): New.
13548         (cpstate): New global.
13549         (type_aggregate_p, exp, ptr_operator, parameter_typelist)
13550         (nonempty_typelist): Update.
13551         (func_mod): Create a new vector.
13552         (c_parse): Create a c_parse_state.
13553         (check_parameter_typelist): Do not delete params.
13554         (function_method): Update.  Do not delete type_list.
13555
13556 2019-01-06  Tom Tromey  <[email protected]>
13557
13558         PR gdb/28155:
13559         * python/py-finishbreakpoint.c (bpfinishpy_init): Use
13560         check_typedef.
13561         * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
13562         (print_return_value): Likewise.
13563
13564 2019-01-05  Tom Tromey  <[email protected]>
13565
13566         * contrib/cleanup_check.py: Remove.
13567         * contrib/gcc-with-excheck: Remove.
13568         * contrib/exsummary.py: Remove.
13569         * contrib/excheck.py: Remove.
13570
13571 2019-01-05  Joel Brobecker  <[email protected]>
13572
13573         * thread.c (delete_thread_1): Add gdb_assert that THR is not
13574         NULL. Initialize tpprev to NULL instead of assigning it
13575         to NULL on the next statement.
13576         * windows-nat.c (windows_delete_thread): Remove check for
13577         main_thread_id before printing thread exit notifications.
13578         (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
13579         Remove thread ID check against main_thread_id.
13580         <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
13581         windows_delete_thread.
13582         <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
13583
13584 2019-01-04  Tom Tromey  <[email protected]>
13585
13586         * compile/compile.c (_initialize_compile): Use upper case for
13587         metasyntactic variables.
13588         * symmisc.c (_initialize_symmisc): Use upper case for
13589         metasyntactic variables.
13590         * psymtab.c (_initialize_psymtab): Use upper case for
13591         metasyntactic variables.
13592         * demangle.c (demangle_command): Use upper case for metasyntactic
13593         variables.
13594         (_initialize_demangler): Likewise.
13595         * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
13596         variables.
13597
13598 2019-01-03  Tom Tromey  <[email protected]>
13599
13600         * tui/tui-source.c (tui_set_source_content): Use xstrdup.
13601
13602 2019-01-03  Tom Tromey  <[email protected]>
13603
13604         * python/py-symtab.c (salpy_str): Update.
13605         (struct salpy_sal_object) <symtab>: Now a PyObject.
13606         (salpy_dealloc): Update.
13607         (del_objfile_sal): Use gdbpy_ref.
13608
13609 2019-01-03  Tom Tromey  <[email protected]>
13610
13611         * python/py-type.c (convert_field): Use new_reference.  Return
13612         gdbpy_ref.
13613         (make_fielditem): Return gdbpy_ref.
13614         (typy_fields): Update.
13615         (typy_getitem): Update.
13616         (field_name): Return gdbpy_ref.  Use new_reference.
13617         (typy_iterator_iternext): Update.
13618
13619 2019-01-03  Tom Tromey  <[email protected]>
13620
13621         * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
13622
13623 2019-01-03  Tom Tromey  <[email protected]>
13624
13625         * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
13626         * python/py-type.c (typy_fields_items): Use gdbpy_ref.
13627         * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
13628         (pspy_set_frame_filters, pspy_set_frame_unwinders)
13629         (pspy_set_type_printers): Likewise.
13630         * python/py-function.c (fnpy_init): Use gdbpy_ref.
13631         * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
13632         * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
13633         (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
13634         (objfpy_set_type_printers): Likewise.
13635
13636 2019-01-03  Tom Tromey  <[email protected]>
13637
13638         * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
13639         (gdbpy_print_stack): Use gdbpy_err_fetch.
13640         * python/python-internal.h (class gdbpy_err_fetch): New class.
13641         (class gdbpy_enter) <m_error_type, m_error_value,
13642         m_error_traceback>: Remove.
13643         <m_error>: New member.
13644         (gdbpy_exception_to_string): Don't declare.
13645         * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
13646         * python/py-value.c (convert_value_from_python): Use
13647         gdbpy_err_fetch.
13648         * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
13649         gdbpy_exception_to_string.
13650         (gdbpy_handle_exception): Use gdbpy_err_fetch.
13651         * python/py-prettyprint.c (print_stack_unless_memory_error): Use
13652         gdbpy_err_fetch.
13653
13654 2019-01-03  Andrew Burgess  <[email protected]>
13655
13656         * linux-nat.c (delete_lwp_cleanup): Delete.
13657         (struct lwp_deleter): New struct.
13658         (lwp_info_up): New typedef.
13659         (linux_nat_target::follow_fork): Delete cleanup, and make use of
13660         lwp_info_up.
13661
13662 2019-01-03  Andrew Burgess  <[email protected]>
13663
13664         * linux-fork.c (class scoped_switch_fork_info): New class.
13665         (inferior_call_waitpid): Update to use scoped_switch_fork_info.
13666
13667 2019-01-03  Andrew Burgess  <[email protected]>
13668
13669         * valops.c (find_overload_match): Remove use of null_cleanup, and
13670         calls to do_cleanups.
13671
13672 2019-01-03  Andrew Burgess  <[email protected]>
13673
13674         * compile/compile-cplus-types.c
13675         (compile_cplus_instance::decl_name): Handle changes to
13676         cp_func_name.
13677         * cp-support.c (cp_func_name): Update header comment, update
13678         return type.
13679         * cp-support.h (cp_func_name): Update return type in declaration.
13680         * valops.c (find_overload_match): Move temp_func local to top
13681         level of function and change its type.  Use temp_func to hold and
13682         delete temporary string obtained from cp_func_name.
13683
13684 2019-01-03  Andrew Burgess  <[email protected]>
13685
13686         * remote.c (remote_target::remote_check_symbols): Convert `msg` to
13687         gdb::char_vector, remove cleanup, and update uses of `msg`.
13688
13689 2019-01-03  Jim Wilson  <[email protected]>
13690
13691         * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
13692
13693 2019-01-02  Tom Tromey  <[email protected]>
13694
13695         * xml-tdesc.c (xml_cache): Hold a target_desc_up.
13696         (tdesc_parse_xml): Remove cleanups.
13697         * target-descriptions.h (make_cleanup_free_target_description):
13698         Don't declare.
13699         (target_desc_deleter): New struct.
13700         (target_desc_up): New typedef.
13701         * target-descriptions.c (target_desc_deleter::operator()): Rename
13702         from free_target_description.
13703         (make_cleanup_free_target_description): Remove.
13704
13705 2019-01-02  Tom Tromey  <[email protected]>
13706
13707         * linespec.c (struct linespec_parser): Rename from ls_parser.  Add
13708         constructor, destructor.
13709         (linespec_parser): Remove typedef.
13710         (~linespec_parser): Rename from linespec_parser_delete.
13711         (linespec_lex_to_end, linespec_complete_label)
13712         (linespec_complete): Update.
13713         (decode_line_full): Remove cleanups.
13714         (decode_line_1): Update.
13715
13716 2019-01-02  Tom Tromey  <[email protected]>
13717
13718         * python/python-internal.h (inferior_to_inferior_object): Change
13719         return type.
13720         * python/py-exitedevent.c (create_exited_event_object): Update.
13721         * python/py-inferior.c (inferior_to_inferior_object): Return
13722         gdbpy_ref.
13723         (python_new_inferior, python_inferior_deleted)
13724         (thread_to_thread_object, delete_thread_object)
13725         (build_inferior_list, gdbpy_selected_inferior): Update.
13726         * python/py-infthread.c (create_thread_object): Update.  Also fail
13727         if inferior_to_inferior_object fails.
13728
13729 2019-01-02  Simon Marchi  <[email protected]>
13730
13731         * inferior.h (class inferior) <displaced_step_state>: New field.
13732         * infrun.h (struct displaced_step_state): Move here from
13733         infrun.c.  Initialize fields, add constructor.
13734         <inf>: Remove field.
13735         <reset>: New method.
13736         * infrun.c (struct displaced_step_inferior_state): Move to
13737         infrun.h.
13738         (displaced_step_inferior_states): Remove.
13739         (get_displaced_stepping_state): Adust.
13740         (displaced_step_in_progress_any_inferior): Adjust.
13741         (displaced_step_in_progress_thread): Adjust.
13742         (displaced_step_in_progress): Adjust.
13743         (add_displaced_stepping_state): Remove.
13744         (get_displaced_step_closure_by_addr): Adjust.
13745         (remove_displaced_stepping_state): Remove.
13746         (infrun_inferior_exit): Call displaced_step_state.reset.
13747         (use_displaced_stepping): Don't check for NULL.
13748         (displaced_step_prepare_throw): Call
13749         get_displaced_stepping_state.
13750         (displaced_step_fixup): Don't check for NULL.
13751         (prepare_for_detach): Don't check for NULL.
13752
13753 2019-01-02  Philippe Waroquiers  <[email protected]>
13754
13755         * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
13756          in case of call that did not complete.
13757
13758 2019-01-02  Andrey Utkin  <[email protected]>
13759
13760         * symfile.c (find_separate_debug_file): Fix search of debug files for
13761         remote debuggee.
13762
13763 2019-01-02  Tom Tromey  <[email protected]>
13764
13765         * python/py-inferior.c (gdbpy_initialize_inferior): Fix
13766         indentation.
13767         * python/py-frame.c (frapy_older): Remove cast.
13768         (frapy_newer): Likewise.
13769         * python/py-breakpoint.c (local_setattro): Remove cast.
13770         * python/py-arch.c (archpy_name): Remove local variable.
13771         * python/py-type.c (gdbpy_lookup_type): Remove cast.
13772
13773 2019-01-02  Joel Brobecker  <[email protected]>
13774
13775         * unittests/basic_string_view/element_access/char/empty.cc:
13776         Fix year range in copyright header.
13777
13778 2019-01-01  Andrew Burgess  <[email protected]>
13779
13780         * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
13781         Delete.
13782         <operator==>: Update with for removed field.
13783         <hash>: Likewise.
13784         * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
13785         <isa_features>: ...this.
13786         <abi_features>: New field.
13787         (riscv_isa_flen): Update comment.
13788         (riscv_abi_xlen): New declaration.
13789         (riscv_abi_flen): New declaration.
13790         * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
13791         isa_features.
13792         (riscv_abi_xlen): New function.
13793         (riscv_isa_flen): Update to get answer from isa_features.
13794         (riscv_abi_flen): New function.
13795         (riscv_has_fp_abi): Update to get answer from abi_features.
13796         (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
13797         xlen and flen.
13798         (riscv_call_info) <xlen, flen>: Update comment.
13799         (riscv_call_arg_struct): Remove invalid assertions
13800         (riscv_features_from_gdbarch_info): Update now hw_float_abi field
13801         is removed.
13802         (riscv_gdbarch_init): Gather isa features and abi features
13803         separately, ensure both match on the gdbarch when reusing an old
13804         gdbarch.  Relax an error check to allow 32-bit abi float to run on
13805         a target with 64-bit float hardware.
13806
13807 2019-01-01  Philippe Waroquiers  <[email protected]>
13808
13809         * source.c (search_command_helper): Stop reverse search
13810         when line 1 has been searched.
13811
13812 2019-01-01  Philippe Waroquiers  <[email protected]>
13813
13814         * record-full.c (record_full_base_target::close): Rewrite
13815         record_full_core_buf_list free logic.
13816
13817 2019-01-01  Philippe Waroquiers  <[email protected]>
13818
13819         * break-catch-syscall.c (print_one_catch_syscall): xfree
13820         the last text.
13821
13822 2019-01-01  Joel Brobecker  <[email protected]>
13823
13824         * top.c (print_gdb_version): Update Copyright year in version
13825         message.
13826
13827 2019-01-01  Joel Brobecker  <[email protected]>
13828
13829         Update copyright year range in all GDB files.
13830
13831 2019-01-01, 19  Joel Brobecker  <[email protected]>
13832
13833         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
13834
13835 For older changes see ChangeLog-2018.
13836 \f
13837 Local Variables:
13838 mode: change-log
13839 left-margin: 8
13840 fill-column: 74
13841 version-control: never
13842 coding: utf-8
13843 End:
13844
This page took 0.807896 seconds and 4 git commands to generate.